
MK3-E3DREVO_HF_60W_lang_base:     file format elf32-avr


Disassembly of section .text:

00000000 <__vectors>:
       0:	0c 94 3d 56 	jmp	0xac7a	; 0xac7a <__dtors_end>
       4:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
       8:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
       c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      10:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      14:	0d 94 79 60 	jmp	0x2c0f2	; 0x2c0f2 <__vector_5>
      18:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      1c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      20:	0c 94 75 74 	jmp	0xe8ea	; 0xe8ea <__vector_8>
      24:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      28:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      2c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      30:	0c 94 fa 66 	jmp	0xcdf4	; 0xcdf4 <__vector_12>
      34:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      38:	0d 94 e2 33 	jmp	0x267c4	; 0x267c4 <__vector_14>
      3c:	0d 94 6f 2d 	jmp	0x25ade	; 0x25ade <__vector_15>
      40:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      44:	0d 94 6a 44 	jmp	0x288d4	; 0x288d4 <__vector_17>
      48:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      4c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      50:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      54:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      58:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      5c:	0c 94 a9 73 	jmp	0xe752	; 0xe752 <__vector_23>
      60:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      64:	0d 94 a3 d6 	jmp	0x3ad46	; 0x3ad46 <__vector_25>
      68:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      6c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      70:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      74:	0c 94 ce 8c 	jmp	0x1199c	; 0x1199c <__vector_29>
      78:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      7c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      80:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      84:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      88:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      8c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      90:	0d 94 5f d6 	jmp	0x3acbe	; 0x3acbe <__vector_36>
      94:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      98:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      9c:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      a0:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      a4:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      a8:	0d 94 89 23 	jmp	0x24712	; 0x24712 <__vector_42>
      ac:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      b0:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      b4:	0d 94 6b 23 	jmp	0x246d6	; 0x246d6 <__vector_45>
      b8:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      bc:	0d 94 2c 39 	jmp	0x27258	; 0x27258 <__vector_47>
      c0:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      c4:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      c8:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      cc:	0d 94 2b 23 	jmp	0x24656	; 0x24656 <__vector_51>
      d0:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      d4:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      d8:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      dc:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>
      e0:	0c 94 6e 56 	jmp	0xacdc	; 0xacdc <__bad_interrupt>

000000e4 <__loc_sec_start>:
	...

00000100 <_SEC_LANG>:
     100:	5f 53 45 43 5f 4c 41 4e 47 00 00 00 00 00 00 00     _SEC_LANG.......
	...

00003600 <__loc_pri_start>:
    3600:	ff ff       	.word	0xffff	; ????
    3602:	43 72       	andi	r20, 0x23	; 35
    3604:	61 73       	andi	r22, 0x31	; 49
    3606:	68 20       	and	r6, r8
    3608:	64 65       	ori	r22, 0x54	; 84
    360a:	74 65       	ori	r23, 0x54	; 84
    360c:	63 74       	andi	r22, 0x43	; 67
    360e:	65 64       	ori	r22, 0x45	; 69
    3610:	2e 00       	.word	0x002e	; ????

00003612 <MSG_ZLEVELING_ENFORCED>:
    3612:	ff ff 53 6f 6d 65 20 70 72 6f 62 6c 65 6d 20 65     ..Some problem e
    3622:	6e 63 6f 75 6e 74 65 72 65 64 2c 20 5a 2d 6c 65     ncountered, Z-le
    3632:	76 65 6c 69 6e 67 20 65 6e 66 6f 72 63 65 64 20     veling enforced 
    3642:	2e 2e 2e 00                                         ....

00003646 <MSG_MBL_FAILED>:
    3646:	ff ff 4d 65 73 68 20 62 65 64 20 6c 65 76 65 6c     ..Mesh bed level
    3656:	69 6e 67 20 66 61 69 6c 65 64 2e 20 50 72 69 6e     ing failed. Prin
    3666:	74 20 63 61 6e 63 65 6c 65 64 2e 00                 t canceled..

00003672 <MSG_BED_HEATING_SAFETY_DISABLED>:
    3672:	ff ff 48 65 61 74 69 6e 67 20 64 69 73 61 62 6c     ..Heating disabl
    3682:	65 64 20 62 79 20 73 61 66 65 74 79 20 74 69 6d     ed by safety tim
    3692:	65 72 2e 00                                         er..

00003696 <MSG_STOPPED>:
    3696:	ff ff 53 54 4f 50 50 45 44 2e 00                    ..STOPPED..

000036a1 <MSG_PAUSED_THERMAL_ERROR>:
    36a1:	ff ff 50 41 55 53 45 44 20 54 48 45 52 4d 41 4c     ..PAUSED THERMAL
    36b1:	20 45 52 52 4f 52 00                                 ERROR.

000036b8 <MSG_GCODE_DIFF_CONTINUE>:
    36b8:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    36c8:	66 6f 72 20 61 20 64 69 66 66 65 72 65 6e 74 20     for a different 
    36d8:	6c 65 76 65 6c 2e 00                                level..

000036df <MSG_GCODE_DIFF_CANCELLED>:
    36df:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    36ef:	66 6f 72 20 61 20 64 69 66 66 65 72 65 6e 74 20     for a different 
    36ff:	6c 65 76 65 6c 2e 20 50 6c 65 61 73 65 20 72 65     level. Please re
    370f:	2d 73 6c 69 63 65 20 74 68 65 20 6d 6f 64 65 6c     -slice the model
    371f:	20 61 67 61 69 6e 2e 00                              again..

00003727 <MSG_GCODE_NEWER_FIRMWARE_CONTINUE>:
    3727:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    3737:	66 6f 72 20 61 20 6e 65 77 65 72 20 66 69 72 6d     for a newer firm
    3747:	77 61 72 65 2e 00                                   ware..

0000374d <MSG_GCODE_NEWER_FIRMWARE_CANCELLED>:
    374d:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    375d:	66 6f 72 20 61 20 6e 65 77 65 72 20 66 69 72 6d     for a newer firm
    376d:	77 61 72 65 2e 20 50 6c 65 61 73 65 20 75 70 64     ware. Please upd
    377d:	61 74 65 20 74 68 65 20 66 69 72 6d 77 61 72 65     ate the firmware
    378d:	2e 00                                               ..

0000378f <MSG_GCODE_DIFF_PRINTER_CONTINUE>:
    378f:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    379f:	66 6f 72 20 61 20 64 69 66 66 65 72 65 6e 74 20     for a different 
    37af:	70 72 69 6e 74 65 72 20 74 79 70 65 2e 00           printer type..

000037bd <MSG_GCODE_DIFF_PRINTER_CANCELLED>:
    37bd:	ff ff 47 2d 63 6f 64 65 20 73 6c 69 63 65 64 20     ..G-code sliced 
    37cd:	66 6f 72 20 61 20 64 69 66 66 65 72 65 6e 74 20     for a different 
    37dd:	70 72 69 6e 74 65 72 20 74 79 70 65 2e 20 50 6c     printer type. Pl
    37ed:	65 61 73 65 20 72 65 2d 73 6c 69 63 65 20 74 68     ease re-slice th
    37fd:	65 20 6d 6f 64 65 6c 20 61 67 61 69 6e 2e 00        e model again..

0000380c <MSG_PRESS_TO_PREHEAT>:
    380c:	ff ff 50 72 65 73 73 20 74 68 65 20 6b 6e 6f 62     ..Press the knob
    381c:	20 74 6f 20 70 72 65 68 65 61 74 20 6e 6f 7a 7a      to preheat nozz
    382c:	6c 65 20 61 6e 64 20 63 6f 6e 74 69 6e 75 65 2e     le and continue.
	...

0000383d <MSG_PRESS_TO_UNLOAD>:
    383d:	ff ff 50 6c 65 61 73 65 20 70 72 65 73 73 20 74     ..Please press t
    384d:	68 65 20 6b 6e 6f 62 20 74 6f 20 75 6e 6c 6f 61     he knob to unloa
    385d:	64 20 66 69 6c 61 6d 65 6e 74 00                    d filament.

00003868 <MSG_PRESS>:
    3868:	ff ff 61 6e 64 20 70 72 65 73 73 20 74 68 65 20     ..and press the 
    3878:	6b 6e 6f 62 00                                      knob.

0000387d <MSG_INSERT_FILAMENT>:
    387d:	ff ff 49 6e 73 65 72 74 20 66 69 6c 61 6d 65 6e     ..Insert filamen
    388d:	74 00                                               t.

0000388f <MSG_NOT_COLOR>:
    388f:	ff ff 43 6f 6c 6f 72 20 6e 6f 74 20 63 6f 72 72     ..Color not corr
    389f:	65 63 74 00                                         ect.

000038a3 <MSG_NOT_LOADED>:
    38a3:	ff ff 46 69 6c 61 6d 65 6e 74 20 6e 6f 74 20 6c     ..Filament not l
    38b3:	6f 61 64 65 64 00                                   oaded.

000038b9 <MSG_CORRECTLY>:
    38b9:	ff ff 43 68 61 6e 67 65 64 20 63 6f 72 72 65 63     ..Changed correc
    38c9:	74 6c 79 00                                         tly.

000038cd <MSG_LOADING_COLOR>:
    38cd:	ff ff 4c 6f 61 64 69 6e 67 20 63 6f 6c 6f 72 00     ..Loading color.

000038dd <MSG_CHANGE_SUCCESS>:
    38dd:	ff ff 43 68 61 6e 67 65 20 73 75 63 63 65 73 73     ..Change success
    38ed:	21 00                                               !.

000038ef <MSG_CHECK_IDLER>:
    38ef:	ff ff 50 6c 65 61 73 65 20 6f 70 65 6e 20 69 64     ..Please open id
    38ff:	6c 65 72 20 61 6e 64 20 72 65 6d 6f 76 65 20 66     ler and remove f
    390f:	69 6c 61 6d 65 6e 74 20 6d 61 6e 75 61 6c 6c 79     ilament manually
    391f:	2e 00                                               ..

00003921 <MSG_UNLOAD_SUCCESSFUL>:
    3921:	ff ff 57 61 73 20 66 69 6c 61 6d 65 6e 74 20 75     ..Was filament u
    3931:	6e 6c 6f 61 64 20 73 75 63 63 65 73 73 66 75 6c     nload successful
    3941:	3f 00                                               ?.

00003943 <MSG_NEW_FIRMWARE_PLEASE_UPGRADE>:
    3943:	ff ff 50 6c 65 61 73 65 20 75 70 67 72 61 64 65     ..Please upgrade
    3953:	2e 00                                               ..

00003955 <MSG_NEW_FIRMWARE_AVAILABLE>:
    3955:	ff ff 4e 65 77 20 66 69 72 6d 77 61 72 65 20 76     ..New firmware v
    3965:	65 72 73 69 6f 6e 20 61 76 61 69 6c 61 62 6c 65     ersion available
    3975:	3a 00                                               :.

00003977 <MSG_WAITING_TEMP_PINDA>:
    3977:	ff ff 57 61 69 74 69 6e 67 20 66 6f 72 20 50 49     ..Waiting for PI
    3987:	4e 44 41 20 70 72 6f 62 65 20 63 6f 6f 6c 69 6e     NDA probe coolin
    3997:	67 00                                               g.

00003999 <MSG_PLEASE_WAIT>:
    3999:	ff ff 50 6c 65 61 73 65 20 77 61 69 74 00           ..Please wait.

000039a7 <MSG_NO_MOVE>:
    39a7:	ff ff 4e 6f 20 6d 6f 76 65 2e 00                    ..No move..

000039b2 <MSG_USERWAIT>:
    39b2:	ff ff 57 61 69 74 20 66 6f 72 20 75 73 65 72 2e     ..Wait for user.
    39c2:	2e 2e 00                                            ...

000039c5 <MSG_TEMP_CAL_WARNING>:
    39c5:	ff ff 53 74 61 62 6c 65 20 61 6d 62 69 65 6e 74     ..Stable ambient
    39d5:	20 74 65 6d 70 65 72 61 74 75 72 65 20 32 31 2d      temperature 21-
    39e5:	32 36 43 20 69 73 20 6e 65 65 64 65 64 20 61 20     26C is needed a 
    39f5:	72 69 67 69 64 20 73 74 61 6e 64 20 69 73 20 72     rigid stand is r
    3a05:	65 71 75 69 72 65 64 2e 00                          equired..

00003a0e <MSG_RUN_XYZ>:
    3a0e:	ff ff 50 6c 65 61 73 65 20 72 75 6e 20 58 59 5a     ..Please run XYZ
    3a1e:	20 63 61 6c 69 62 72 61 74 69 6f 6e 20 66 69 72      calibration fir
    3a2e:	73 74 2e 00                                         st..

00003a32 <MSG_EXTRUDER>:
    3a32:	ff ff 45 78 74 72 75 64 65 72 00                    ..Extruder.

00003a3d <MSG_MOVE_Z>:
    3a3d:	ff ff 4d 6f 76 65 20 5a 00                          ..Move Z.

00003a46 <MSG_MOVE_Y>:
    3a46:	ff ff 4d 6f 76 65 20 59 00                          ..Move Y.

00003a4f <MSG_MOVE_X>:
    3a4f:	ff ff 4d 6f 76 65 20 58 00                          ..Move X.

00003a58 <MSG_CRASH_DET_ONLY_IN_NORMAL>:
    3a58:	ff ff 43 72 61 73 68 20 64 65 74 65 63 74 69 6f     ..Crash detectio
    3a68:	6e 20 63 61 6e 0a 62 65 20 74 75 72 6e 65 64 20     n can.be turned 
    3a78:	6f 6e 20 6f 6e 6c 79 20 69 6e 0a 4e 6f 72 6d 61     on only in.Norma
    3a88:	6c 20 6d 6f 64 65 00                                l mode.

00003a8f <MSG_CRASH_DET_STEALTH_FORCE_OFF>:
    3a8f:	ff ff 57 41 52 4e 49 4e 47 3a 0a 43 72 61 73 68     ..WARNING:.Crash
    3a9f:	20 64 65 74 65 63 74 69 6f 6e 0a 64 69 73 61 62      detection.disab
    3aaf:	6c 65 64 20 69 6e 0a 53 74 65 61 6c 74 68 20 6d     led in.Stealth m
    3abf:	6f 64 65 00                                         ode.

00003ac3 <MSG_MODE_CHANGE_IN_PROGRESS>:
    3ac3:	ff ff 4d 6f 64 65 20 63 68 61 6e 67 65 20 69 6e     ..Mode change in
    3ad3:	20 70 72 6f 67 72 65 73 73 2e 2e 2e 00               progress....

00003ae0 <MSG_COPY_SEL_LANG>:
    3ae0:	ff ff 43 6f 70 79 20 73 65 6c 65 63 74 65 64 20     ..Copy selected 
    3af0:	6c 61 6e 67 75 61 67 65 3f 00                       language?.

00003afa <MSG_COMMUNITY_MADE>:
    3afa:	ff ff 43 6f 6d 6d 75 6e 69 74 79 20 6d 61 64 65     ..Community made
	...

00003b0b <MSG_SHEET_OFFSET>:
    3b0b:	ff ff 53 68 65 65 74 20 25 2e 37 73 0a 5a 20 6f     ..Sheet %.7s.Z o
    3b1b:	66 66 73 65 74 3a 20 25 2b 31 2e 33 66 6d 6d 0a     ffset: %+1.3fmm.
    3b2b:	25 63 43 6f 6e 74 69 6e 75 65 0a 25 63 52 65 73     %cContinue.%cRes
    3b3b:	65 74 00                                            et.

00003b3e <MSG_PLEASE_LOAD_PLA>:
    3b3e:	ff ff 50 6c 65 61 73 65 20 6c 6f 61 64 20 66 69     ..Please load fi
    3b4e:	6c 61 6d 65 6e 74 20 66 69 72 73 74 2e 00           lament first..

00003b5c <MSG_SELECT_FILAMENT>:
    3b5c:	ff ff 53 65 6c 65 63 74 20 66 69 6c 61 6d 65 6e     ..Select filamen
    3b6c:	74 3a 00                                            t:.

00003b6f <MSG_CANCEL>:
    3b6f:	ff ff 43 61 6e 63 65 6c 00                          ..Cancel.

00003b78 <MSG_WIZARD_RERUN>:
    3b78:	ff ff 52 75 6e 6e 69 6e 67 20 57 69 7a 61 72 64     ..Running Wizard
    3b88:	20 77 69 6c 6c 20 64 65 6c 65 74 65 20 63 75 72      will delete cur
    3b98:	72 65 6e 74 20 63 61 6c 69 62 72 61 74 69 6f 6e     rent calibration
    3ba8:	20 72 65 73 75 6c 74 73 20 61 6e 64 20 73 74 61      results and sta
    3bb8:	72 74 20 66 72 6f 6d 20 74 68 65 20 62 65 67 69     rt from the begi
    3bc8:	6e 6e 69 6e 67 2e 00                                nning..

00003bcf <MSG_WIZARD_HEATING>:
    3bcf:	ff ff 50 72 65 68 65 61 74 69 6e 67 20 6e 6f 7a     ..Preheating noz
    3bdf:	7a 6c 65 2e 20 50 6c 65 61 73 65 20 77 61 69 74     zle. Please wait
    3bef:	2e 00                                               ..

00003bf1 <MSG_WIZARD_LOAD_FILAMENT>:
    3bf1:	ff ff 50 6c 65 61 73 65 20 69 6e 73 65 72 74 20     ..Please insert 
    3c01:	66 69 6c 61 6d 65 6e 74 20 69 6e 74 6f 20 74 68     filament into th
    3c11:	65 20 65 78 74 72 75 64 65 72 2c 20 74 68 65 6e     e extruder, then
    3c21:	20 70 72 65 73 73 20 74 68 65 20 6b 6e 6f 62 20      press the knob 
    3c31:	74 6f 20 6c 6f 61 64 20 69 74 2e 00                 to load it..

00003c3d <MSG_MMU_INSERT_FILAMENT_FIRST_TUBE>:
    3c3d:	ff ff 50 6c 65 61 73 65 20 69 6e 73 65 72 74 20     ..Please insert 
    3c4d:	66 69 6c 61 6d 65 6e 74 20 69 6e 74 6f 20 74 68     filament into th
    3c5d:	65 20 66 69 72 73 74 20 74 75 62 65 20 6f 66 20     e first tube of 
    3c6d:	74 68 65 20 4d 4d 55 2c 20 74 68 65 6e 20 70 72     the MMU, then pr
    3c7d:	65 73 73 20 74 68 65 20 6b 6e 6f 62 20 74 6f 20     ess the knob to 
    3c8d:	6c 6f 61 64 20 69 74 2e 00                          load it..

00003c96 <MSG_WIZARD_V2_CAL_2>:
    3c96:	ff ff 54 68 65 20 70 72 69 6e 74 65 72 20 77 69     ..The printer wi
    3ca6:	6c 6c 20 73 74 61 72 74 20 70 72 69 6e 74 69 6e     ll start printin
    3cb6:	67 20 61 20 7a 69 67 2d 7a 61 67 20 6c 69 6e 65     g a zig-zag line
    3cc6:	2e 20 52 6f 74 61 74 65 20 74 68 65 20 6b 6e 6f     . Rotate the kno
    3cd6:	62 20 75 6e 74 69 6c 20 79 6f 75 20 72 65 61 63     b until you reac
    3ce6:	68 20 74 68 65 20 6f 70 74 69 6d 61 6c 20 68 65     h the optimal he
    3cf6:	69 67 68 74 2e 20 43 68 65 63 6b 20 74 68 65 20     ight. Check the 
    3d06:	70 69 63 74 75 72 65 73 20 69 6e 20 74 68 65 20     pictures in the 
    3d16:	68 61 6e 64 62 6f 6f 6b 20 28 43 61 6c 69 62 72     handbook (Calibr
    3d26:	61 74 69 6f 6e 20 63 68 61 70 74 65 72 29 2e 00     ation chapter)..

00003d36 <MSG_SELECT_TEMP_MATCHES_MATERIAL>:
    3d36:	ff ff 53 65 6c 65 63 74 20 74 65 6d 70 65 72 61     ..Select tempera
    3d46:	74 75 72 65 20 77 68 69 63 68 20 6d 61 74 63 68     ture which match
    3d56:	65 73 20 79 6f 75 72 20 6d 61 74 65 72 69 61 6c     es your material
    3d66:	2e 00                                               ..

00003d68 <MSG_SELECT_FIL_1ST_LAYERCAL>:
    3d68:	ff ff 53 65 6c 65 63 74 20 61 20 66 69 6c 61 6d     ..Select a filam
    3d78:	65 6e 74 20 66 6f 72 20 74 68 65 20 46 69 72 73     ent for the Firs
    3d88:	74 20 4c 61 79 65 72 20 43 61 6c 69 62 72 61 74     t Layer Calibrat
    3d98:	69 6f 6e 20 61 6e 64 20 73 65 6c 65 63 74 20 69     ion and select i
    3da8:	74 20 69 6e 20 74 68 65 20 6f 6e 2d 73 63 72 65     t in the on-scre
    3db8:	65 6e 20 6d 65 6e 75 2e 00                          en menu..

00003dc1 <MSG_WIZARD_V2_CAL>:
    3dc1:	ff ff 4e 6f 77 20 49 20 77 69 6c 6c 20 63 61 6c     ..Now I will cal
    3dd1:	69 62 72 61 74 65 20 64 69 73 74 61 6e 63 65 20     ibrate distance 
    3de1:	62 65 74 77 65 65 6e 20 74 69 70 20 6f 66 20 74     between tip of t
    3df1:	68 65 20 6e 6f 7a 7a 6c 65 20 61 6e 64 20 68 65     he nozzle and he
    3e01:	61 74 62 65 64 20 73 75 72 66 61 63 65 2e 00        atbed surface..

00003e10 <MSG_Z_CALIBRATION_PROMPT>:
    3e10:	ff ff 5a 20 63 61 6c 69 62 72 61 74 69 6f 6e 20     ..Z calibration 
    3e20:	72 65 63 6f 6d 6d 65 6e 64 65 64 2e 20 52 75 6e     recommended. Run
    3e30:	20 69 74 20 6e 6f 77 3f 00                           it now?.

00003e39 <MSG_REMOVE_STEEL_SHEET>:
    3e39:	ff ff 50 6c 65 61 73 65 20 72 65 6d 6f 76 65 20     ..Please remove 
    3e49:	73 74 65 65 6c 20 73 68 65 65 74 20 66 72 6f 6d     steel sheet from
    3e59:	20 68 65 61 74 62 65 64 2e 00                        heatbed..

00003e63 <MSG_STEEL_SHEET_CHECK>:
    3e63:	ff ff 49 73 20 73 74 65 65 6c 20 73 68 65 65 74     ..Is steel sheet
    3e73:	20 6f 6e 20 68 65 61 74 62 65 64 3f 00               on heatbed?.

00003e80 <MSG_WIZARD_CALIBRATION_FAILED>:
    3e80:	ff ff 50 6c 65 61 73 65 20 63 68 65 63 6b 20 6f     ..Please check o
    3e90:	75 72 20 68 61 6e 64 62 6f 6f 6b 20 61 6e 64 20     ur handbook and 
    3ea0:	66 69 78 20 74 68 65 20 70 72 6f 62 6c 65 6d 2e     fix the problem.
    3eb0:	20 54 68 65 6e 20 72 65 73 75 6d 65 20 74 68 65      Then resume the
    3ec0:	20 57 69 7a 61 72 64 20 62 79 20 72 65 62 6f 6f      Wizard by reboo
    3ed0:	74 69 6e 67 20 74 68 65 20 70 72 69 6e 74 65 72     ting the printer
    3ee0:	2e 00                                               ..

00003ee2 <MSG_WIZARD_DONE>:
    3ee2:	ff ff 41 6c 6c 20 69 73 20 64 6f 6e 65 2e 20 48     ..All is done. H
    3ef2:	61 70 70 79 20 70 72 69 6e 74 69 6e 67 21 00        appy printing!.

00003f01 <MSG_WIZARD_QUIT>:
    3f01:	ff ff 59 6f 75 20 63 61 6e 20 61 6c 77 61 79 73     ..You can always
    3f11:	20 72 65 73 75 6d 65 20 74 68 65 20 57 69 7a 61      resume the Wiza
    3f21:	72 64 20 66 72 6f 6d 20 43 61 6c 69 62 72 61 74     rd from Calibrat
    3f31:	69 6f 6e 20 2d 3e 20 57 69 7a 61 72 64 2e 00        ion -> Wizard..

00003f40 <MSG_ADDITIONAL_SHEETS>:
    3f40:	ff ff 49 66 20 79 6f 75 20 68 61 76 65 20 61 64     ..If you have ad
    3f50:	64 69 74 69 6f 6e 61 6c 20 73 74 65 65 6c 20 73     ditional steel s
    3f60:	68 65 65 74 73 2c 20 63 61 6c 69 62 72 61 74 65     heets, calibrate
    3f70:	20 74 68 65 69 72 20 70 72 65 73 65 74 73 20 69      their presets i
    3f80:	6e 20 53 65 74 74 69 6e 67 73 20 2d 20 48 57 20     n Settings - HW 
    3f90:	53 65 74 75 70 20 2d 20 53 74 65 65 6c 20 73 68     Setup - Steel sh
    3fa0:	65 65 74 73 2e 00                                   eets..

00003fa6 <MSG_WIZARD_CLEAN_HEATBED>:
    3fa6:	ff ff 50 6c 65 61 73 65 20 63 6c 65 61 6e 20 68     ..Please clean h
    3fb6:	65 61 74 62 65 64 20 61 6e 64 20 74 68 65 6e 20     eatbed and then 
    3fc6:	70 72 65 73 73 20 74 68 65 20 6b 6e 6f 62 2e 00     press the knob..

00003fd6 <MSG_WIZARD_REPEAT_V2_CAL>:
    3fd6:	ff ff 44 6f 20 79 6f 75 20 77 61 6e 74 20 74 6f     ..Do you want to
    3fe6:	20 72 65 70 65 61 74 20 6c 61 73 74 20 73 74 65      repeat last ste
    3ff6:	70 20 74 6f 20 72 65 61 64 6a 75 73 74 20 64 69     p to readjust di
    4006:	73 74 61 6e 63 65 20 62 65 74 77 65 65 6e 20 6e     stance between n
    4016:	6f 7a 7a 6c 65 20 61 6e 64 20 68 65 61 74 62 65     ozzle and heatbe
    4026:	64 3f 00                                            d?.

00004029 <MSG_SEL_PREHEAT_TEMP>:
    4029:	ff ff 53 65 6c 65 63 74 20 6e 6f 7a 7a 6c 65 20     ..Select nozzle 
    4039:	70 72 65 68 65 61 74 20 74 65 6d 70 65 72 61 74     preheat temperat
    4049:	75 72 65 20 77 68 69 63 68 20 6d 61 74 63 68 65     ure which matche
    4059:	73 20 79 6f 75 72 20 6d 61 74 65 72 69 61 6c 2e     s your material.
	...

0000406a <MSG_FILAMENT_LOADED>:
    406a:	ff ff 49 73 20 66 69 6c 61 6d 65 6e 74 20 6c 6f     ..Is filament lo
    407a:	61 64 65 64 3f 00                                   aded?.

00004080 <MSG_TM_CAL>:
    4080:	ff ff 54 68 65 72 6d 61 6c 20 6d 6f 64 65 6c 20     ..Thermal model 
    4090:	63 61 6c 2e 20 74 61 6b 65 73 20 61 70 70 72 6f     cal. takes appro
    40a0:	78 2e 20 31 32 20 6d 69 6e 73 2e 20 53 65 65 0a     x. 12 mins. See.
    40b0:	70 72 75 73 61 2e 69 6f 2f 74 6d 2d 63 61 6c 00     prusa.io/tm-cal.

000040c0 <MSG_WIZARD_WILL_PREHEAT>:
    40c0:	ff ff 4e 6f 77 20 49 20 77 69 6c 6c 20 70 72 65     ..Now I will pre
    40d0:	68 65 61 74 20 6e 6f 7a 7a 6c 65 20 66 6f 72 20     heat nozzle for 
    40e0:	50 4c 41 2e 00                                      PLA..

000040e5 <MSG_WIZARD_Z_CAL>:
    40e5:	ff ff 49 20 77 69 6c 6c 20 72 75 6e 20 7a 20 63     ..I will run z c
    40f5:	61 6c 69 62 72 61 74 69 6f 6e 20 6e 6f 77 2e 00     alibration now..

00004105 <MSG_REMOVE_TEST_PRINT>:
    4105:	ff ff 4e 6f 77 20 72 65 6d 6f 76 65 20 74 68 65     ..Now remove the
    4115:	20 74 65 73 74 20 70 72 69 6e 74 20 66 72 6f 6d      test print from
    4125:	20 73 74 65 65 6c 20 73 68 65 65 74 2e 00            steel sheet..

00004133 <MSG_REMOVE_SHIPPING_HELPERS>:
    4133:	ff ff 50 6c 65 61 73 65 20 72 65 6d 6f 76 65 20     ..Please remove 
    4143:	73 68 69 70 70 69 6e 67 20 68 65 6c 70 65 72 73     shipping helpers
    4153:	20 66 69 72 73 74 2e 00                              first..

0000415b <MSG_WIZARD_XYZ_CAL>:
    415b:	ff ff 49 20 77 69 6c 6c 20 72 75 6e 20 78 79 7a     ..I will run xyz
    416b:	20 63 61 6c 69 62 72 61 74 69 6f 6e 20 6e 6f 77      calibration now
    417b:	2e 20 49 74 20 77 69 6c 6c 20 74 61 6b 65 20 75     . It will take u
    418b:	70 20 74 6f 20 32 34 20 6d 69 6e 73 2e 00           p to 24 mins..

00004199 <MSG_WIZARD_SELFTEST>:
    4199:	ff ff 46 69 72 73 74 2c 20 49 20 77 69 6c 6c 20     ..First, I will 
    41a9:	72 75 6e 20 74 68 65 20 73 65 6c 66 74 65 73 74     run the selftest
    41b9:	20 74 6f 20 63 68 65 63 6b 20 6d 6f 73 74 20 63      to check most c
    41c9:	6f 6d 6d 6f 6e 20 61 73 73 65 6d 62 6c 79 20 70     ommon assembly p
    41d9:	72 6f 62 6c 65 6d 73 2e 00                          roblems..

000041e2 <MSG_WIZARD_WELCOME>:
    41e2:	ff ff 48 69 2c 20 49 20 61 6d 20 79 6f 75 72 20     ..Hi, I am your 
    41f2:	4f 72 69 67 69 6e 61 6c 20 50 72 75 73 61 20 69     Original Prusa i
    4202:	33 20 70 72 69 6e 74 65 72 2e 20 57 6f 75 6c 64     3 printer. Would
    4212:	20 79 6f 75 20 6c 69 6b 65 20 6d 65 20 74 6f 20      you like me to 
    4222:	67 75 69 64 65 20 79 6f 75 20 74 68 72 6f 75 67     guide you throug
    4232:	68 20 74 68 65 20 73 65 74 75 70 20 70 72 6f 63     h the setup proc
    4242:	65 73 73 3f 00                                      ess?.

00004247 <MSG_WIZARD_WELCOME_SHIPPING>:
    4247:	ff ff 48 69 2c 20 49 20 61 6d 20 79 6f 75 72 20     ..Hi, I am your 
    4257:	4f 72 69 67 69 6e 61 6c 20 50 72 75 73 61 20 69     Original Prusa i
    4267:	33 20 70 72 69 6e 74 65 72 2e 20 49 20 77 69 6c     3 printer. I wil
    4277:	6c 20 67 75 69 64 65 20 79 6f 75 20 74 68 72 6f     l guide you thro
    4287:	75 67 68 20 61 20 73 68 6f 72 74 20 73 65 74 75     ugh a short setu
    4297:	70 20 70 72 6f 63 65 73 73 2c 20 69 6e 20 77 68     p process, in wh
    42a7:	69 63 68 20 74 68 65 20 5a 2d 61 78 69 73 20 77     ich the Z-axis w
    42b7:	69 6c 6c 20 62 65 20 63 61 6c 69 62 72 61 74 65     ill be calibrate
    42c7:	64 2e 20 54 68 65 6e 2c 20 79 6f 75 20 77 69 6c     d. Then, you wil
    42d7:	6c 20 62 65 20 72 65 61 64 79 20 74 6f 20 70 72     l be ready to pr
    42e7:	69 6e 74 2e 00                                      int..

000042ec <MSG_EXTRUDER_CORRECTION>:
    42ec:	ff ff 45 2d 63 6f 72 72 65 63 74 00                 ..E-correct.

000042f8 <MSG_Z_CORRECTION>:
    42f8:	ff ff 5a 2d 63 6f 72 72 65 63 74 00                 ..Z-correct.

00004304 <MSG_Y_CORRECTION>:
    4304:	ff ff 59 2d 63 6f 72 72 65 63 74 00                 ..Y-correct.

00004310 <MSG_X_CORRECTION>:
    4310:	ff ff 58 2d 63 6f 72 72 65 63 74 00                 ..X-correct.

0000431c <MSG_PAUSE>:
    431c:	ff ff 50 61 75 73 65 00                             ..Pause.

00004324 <MSG_FS_ACTION>:
    4324:	ff ff 46 53 20 41 63 74 69 6f 6e 00                 ..FS Action.

00004330 <MSG_CONTINUE_SHORT>:
    4330:	ff ff 43 6f 6e 74 2e 00                             ..Cont..

00004338 <MSG_FSENSOR_JAM_DETECTION>:
    4338:	ff ff 46 2e 20 6a 61 6d 20 64 65 74 65 63 74 00     ..F. jam detect.

00004348 <MSG_FSENSOR_AUTOLOAD>:
    4348:	ff ff 46 2e 20 61 75 74 6f 6c 6f 61 64 00           ..F. autoload.

00004356 <MSG_FSENSOR_RUNOUT>:
    4356:	ff ff 46 2e 20 72 75 6e 6f 75 74 00                 ..F. runout.

00004362 <MSG_MMU_MODE>:
    4362:	ff ff 4d 4d 55 20 4d 6f 64 65 00                    ..MMU Mode.

0000436d <MSG_CUTTER>:
    436d:	ff ff 43 75 74 74 65 72 00                          ..Cutter.

00004376 <MSG_STEALTH>:
    4376:	ff ff 53 74 65 61 6c 74 68 00                       ..Stealth.

00004380 <MSG_CRASHDETECT>:
    4380:	ff ff 43 72 61 73 68 20 64 65 74 2e 00              ..Crash det..

0000438d <MSG_FAN_SPEED>:
    438d:	ff ff 46 61 6e 20 73 70 65 65 64 00                 ..Fan speed.

00004399 <MSG_BED>:
    4399:	ff ff 42 65 64 00                                   ..Bed.

0000439f <MSG_FANS_CHECK>:
    439f:	ff ff 46 61 6e 73 20 63 68 65 63 6b 00              ..Fans check.

000043ac <MSG_MODEL>:
    43ac:	ff ff 4d 6f 64 65 6c 00                             ..Model.

000043b4 <MSG_NOZZLE>:
    43b4:	ff ff 4e 6f 7a 7a 6c 65 00                          ..Nozzle.

000043bd <MSG_UNLOAD_FILAMENT_REPEAT>:
    43bd:	ff ff 50 6c 65 61 73 65 20 75 6e 6c 6f 61 64 20     ..Please unload 
    43cd:	74 68 65 20 66 69 6c 61 6d 65 6e 74 20 66 69 72     the filament fir
    43dd:	73 74 2c 20 74 68 65 6e 20 72 65 70 65 61 74 20     st, then repeat 
    43ed:	74 68 69 73 20 61 63 74 69 6f 6e 2e 00              this action..

000043fa <MSG_CHECKS>:
    43fa:	ff ff 43 68 65 63 6b 73 00                          ..Checks.

00004403 <MSG_NOZZLE_CNG_MENU>:
    4403:	ff ff 4e 6f 7a 7a 6c 65 20 63 68 61 6e 67 65 00     ..Nozzle change.

00004413 <MSG_SORT_ALPHA>:
    4413:	ff ff 41 6c 70 68 61 62 65 74 00                    ..Alphabet.

0000441e <MSG_SORT>:
    441e:	ff ff 53 6f 72 74 00                                ..Sort.

00004425 <MSG_SORT_TIME>:
    4425:	ff ff 54 69 6d 65 00                                ..Time.

0000442c <MSG_NORMAL>:
    442c:	ff ff 4e 6f 72 6d 61 6c 00                          ..Normal.

00004435 <MSG_SD_CARD>:
    4435:	ff ff 53 44 20 63 61 72 64 00                       ..SD card.

0000443f <MSG_SELECT_LANGUAGE>:
    443f:	ff ff 53 65 6c 65 63 74 20 6c 61 6e 67 75 61 67     ..Select languag
    444f:	65 00                                               e.

00004451 <MSG_RPI_PORT>:
    4451:	ff ff 52 50 69 20 70 6f 72 74 00                    ..RPi port.

0000445c <MSG_LIN_CORRECTION>:
    445c:	ff ff 4c 69 6e 2e 20 63 6f 72 72 65 63 74 69 6f     ..Lin. correctio
    446c:	6e 00                                               n.

0000446e <MSG_HW_SETUP>:
    446e:	ff ff 48 57 20 53 65 74 75 70 00                    ..HW Setup.

00004479 <MSG_LOADING_TEST>:
    4479:	ff ff 4c 6f 61 64 69 6e 67 20 54 65 73 74 00        ..Loading Test.

00004488 <MSG_DISABLE_STEPPERS>:
    4488:	ff ff 44 69 73 61 62 6c 65 20 73 74 65 70 70 65     ..Disable steppe
    4498:	72 73 00                                            rs.

0000449b <MSG_MOVE_AXIS>:
    449b:	ff ff 4d 6f 76 65 20 61 78 69 73 00                 ..Move axis.

000044a7 <MSG_TEMPERATURE>:
    44a7:	ff ff 54 65 6d 70 65 72 61 74 75 72 65 00           ..Temperature.

000044b5 <MSG_PINDA_CALIBRATION>:
    44b5:	ff ff 50 49 4e 44 41 20 63 61 6c 2e 00              ..PINDA cal..

000044c2 <MSG_CALIBRATE_BED_RESET>:
    44c2:	ff ff 52 65 73 65 74 20 58 59 5a 20 63 61 6c 69     ..Reset XYZ cali
    44d2:	62 72 2e 00                                         br..

000044d6 <MSG_PID_EXTRUDER>:
    44d6:	ff ff 50 49 44 20 63 61 6c 69 62 72 61 74 69 6f     ..PID calibratio
    44e6:	6e 00                                               n.

000044e8 <MSG_BED_CORRECTION_MENU>:
    44e8:	ff ff 42 65 64 20 6c 65 76 65 6c 20 63 6f 72 72     ..Bed level corr
    44f8:	65 63 74 00                                         ect.

000044fc <MSG_MESH_BED_LEVELING>:
    44fc:	ff ff 4d 65 73 68 20 42 65 64 20 4c 65 76 65 6c     ..Mesh Bed Level
    450c:	69 6e 67 00                                         ing.

00004510 <MSG_HOMEYZ>:
    4510:	ff ff 43 61 6c 69 62 72 61 74 65 20 5a 00           ..Calibrate Z.

0000451e <MSG_CALIBRATE_BED>:
    451e:	ff ff 43 61 6c 69 62 72 61 74 65 20 58 59 5a 00     ..Calibrate XYZ.

0000452e <MSG_SELFTEST>:
    452e:	ff ff 53 65 6c 66 74 65 73 74 00                    ..Selftest.

00004539 <MSG_BELTTEST>:
    4539:	ff ff 42 65 6c 74 20 74 65 73 74 00                 ..Belt test.

00004545 <MSG_WIZARD>:
    4545:	ff ff 57 69 7a 61 72 64 00                          ..Wizard.

0000454e <MSG_TESTING_FILAMENT>:
    454e:	ff ff 54 65 73 74 69 6e 67 20 66 69 6c 61 6d 65     ..Testing filame
    455e:	6e 74 00                                            nt.

00004561 <MSG_LOAD_ALL>:
    4561:	ff ff 4c 6f 61 64 20 41 6c 6c 00                    ..Load All.

0000456c <MSG_PULL_OUT_FILAMENT>:
    456c:	ff ff 50 6c 65 61 73 65 20 70 75 6c 6c 20 6f 75     ..Please pull ou
    457c:	74 20 66 69 6c 61 6d 65 6e 74 20 69 6d 6d 65 64     t filament immed
    458c:	69 61 74 65 6c 79 00                                iately.

00004593 <MSG_RESET>:
    4593:	ff ff 52 65 73 65 74 00                             ..Reset.

0000459b <MSG_RENAME>:
    459b:	ff ff 52 65 6e 61 6d 65 00                          ..Rename.

000045a4 <MSG_V2_CALIBRATION>:
    45a4:	ff ff 46 69 72 73 74 20 6c 61 79 65 72 20 63 61     ..First layer ca
    45b4:	6c 2e 00                                            l..

000045b7 <MSG_SELECT>:
    45b7:	ff ff 53 65 6c 65 63 74 00                          ..Select.

000045c0 <MSG_STEEL_SHEETS>:
    45c0:	ff ff 53 74 65 65 6c 20 73 68 65 65 74 73 00        ..Steel sheets.

000045cf <MSG_SUPPORT>:
    45cf:	ff ff 53 75 70 70 6f 72 74 00                       ..Support.

000045d9 <MSG_MMU_FAIL_STATS>:
    45d9:	ff ff 46 61 69 6c 20 73 74 61 74 73 20 4d 4d 55     ..Fail stats MMU
	...

000045ea <MSG_FAIL_STATS>:
    45ea:	ff ff 46 61 69 6c 20 73 74 61 74 73 00              ..Fail stats.

000045f7 <MSG_STATISTICS>:
    45f7:	ff ff 53 74 61 74 69 73 74 69 63 73 00              ..Statistics.

00004604 <MSG_CALIBRATION>:
    4604:	ff ff 43 61 6c 69 62 72 61 74 69 6f 6e 00           ..Calibration.

00004612 <MSG_AUTOLOAD_FILAMENT>:
    4612:	ff ff 41 75 74 6f 4c 6f 61 64 20 66 69 6c 61 6d     ..AutoLoad filam
    4622:	65 6e 74 00                                         ent.

00004626 <MSG_LOAD_FILAMENT>:
    4626:	ff ff 4c 6f 61 64 20 66 69 6c 61 6d 65 6e 74 00     ..Load filament.

00004636 <MSG_UNLOAD_FILAMENT>:
    4636:	ff ff 55 6e 6c 6f 61 64 20 66 69 6c 61 6d 65 6e     ..Unload filamen
    4646:	74 00                                               t.

00004648 <MSG_LOAD_TO_NOZZLE>:
    4648:	ff ff 4c 6f 61 64 20 74 6f 20 6e 6f 7a 7a 6c 65     ..Load to nozzle
	...

00004659 <MSG_PRELOAD_TO_MMU>:
    4659:	ff ff 50 72 65 6c 6f 61 64 20 74 6f 20 4d 4d 55     ..Preload to MMU
	...

0000466a <MSG_NOZZLE_DIAMETER>:
    466a:	ff ff 4e 6f 7a 7a 6c 65 20 64 2e 00                 ..Nozzle d..

00004676 <MSG_NO_CARD>:
    4676:	ff ff 4e 6f 20 53 44 20 63 61 72 64 00              ..No SD card.

00004683 <MSG_CARD_MENU>:
    4683:	ff ff 50 72 69 6e 74 20 66 72 6f 6d 20 53 44 00     ..Print from SD.

00004693 <MSG_TM_ACK_ERROR>:
    4693:	ff ff 43 6c 65 61 72 20 54 4d 20 65 72 72 6f 72     ..Clear TM error
	...

000046a4 <MSG_RESUME_PRINT>:
    46a4:	ff ff 52 65 73 75 6d 65 20 70 72 69 6e 74 00        ..Resume print.

000046b3 <MSG_PAUSE_PRINT>:
    46b3:	ff ff 50 61 75 73 65 20 70 72 69 6e 74 00           ..Pause print.

000046c1 <MSG_SET_READY>:
    46c1:	ff ff 53 65 74 20 52 65 61 64 79 00                 ..Set Ready.

000046cd <MSG_SET_NOT_READY>:
    46cd:	ff ff 53 65 74 20 6e 6f 74 20 52 65 61 64 79 00     ..Set not Ready.

000046dd <MSG_PREHEAT>:
    46dd:	ff ff 50 72 65 68 65 61 74 00                       ..Preheat.

000046e7 <MSG_TUNE>:
    46e7:	ff ff 54 75 6e 65 00                                ..Tune.

000046ee <MSG_BABYSTEP_Z>:
    46ee:	ff ff 4c 69 76 65 20 61 64 6a 75 73 74 20 5a 00     ..Live adjust Z.

000046fe <MSG_REPRINT>:
    46fe:	ff ff 52 65 70 72 69 6e 74 00                       ..Reprint.

00004708 <MSG_INFO_SCREEN>:
    4708:	ff ff 49 6e 66 6f 20 73 63 72 65 65 6e 00           ..Info screen.

00004716 <MSG_BRIGHTNESS>:
    4716:	ff ff 42 72 69 67 68 74 6e 65 73 73 00              ..Brightness.

00004723 <MSG_SOUND_BLIND>:
    4723:	ff ff 41 73 73 69 73 74 00                          ..Assist.

0000472c <MSG_SILENT>:
    472c:	ff ff 53 69 6c 65 6e 74 00                          ..Silent.

00004735 <MSG_SOUND_ONCE>:
    4735:	ff ff 4f 6e 63 65 00                                ..Once.

0000473c <MSG_SOUND>:
    473c:	ff ff 53 6f 75 6e 64 00                             ..Sound.

00004744 <MSG_SOUND_LOUD>:
    4744:	ff ff 4c 6f 75 64 00                                ..Loud.

0000474b <MSG_FSENSOR>:
    474b:	ff ff 46 69 6c 2e 20 73 65 6e 73 6f 72 00           ..Fil. sensor.

00004759 <MSG_FILAMENTCHANGE>:
    4759:	ff ff 43 68 61 6e 67 65 20 66 69 6c 61 6d 65 6e     ..Change filamen
    4769:	74 00                                               t.

0000476b <MSG_FLOW>:
    476b:	ff ff 46 6c 6f 77 00                                ..Flow.

00004772 <MSG_SPEED>:
    4772:	ff ff 53 70 65 65 64 00                             ..Speed.

0000477a <MSG_MAGNETS_COMP>:
    477a:	ff ff 4d 61 67 6e 65 74 73 20 63 6f 6d 70 2e 00     ..Magnets comp..

0000478a <MSG_NA>:
    478a:	ff ff 4e 2f 41 00                                   ..N/A.

00004790 <MSG_Z_PROBE_NR>:
    4790:	ff ff 5a 2d 70 72 6f 62 65 20 6e 72 2e 00           ..Z-probe nr..

0000479e <MSG_MESH>:
    479e:	ff ff 4d 65 73 68 00                                ..Mesh.

000047a5 <MSG_TIMEOUT>:
    47a5:	ff ff 54 69 6d 65 6f 75 74 00                       ..Timeout.

000047af <MSG_MODE>:
    47af:	ff ff 4d 6f 64 65 00                                ..Mode.

000047b6 <MSG_AUTO>:
    47b6:	ff ff 41 75 74 6f 00                                ..Auto.

000047bd <MSG_DIM>:
    47bd:	ff ff 44 69 6d 00                                   ..Dim.

000047c3 <MSG_BRIGHT>:
    47c3:	ff ff 42 72 69 67 68 74 00                          ..Bright.

000047cc <MSG_BL_LOW>:
    47cc:	ff ff 4c 65 76 65 6c 20 44 69 6d 6d 65 64 00        ..Level Dimmed.

000047db <MSG_BL_HIGH>:
    47db:	ff ff 4c 65 76 65 6c 20 42 72 69 67 68 74 00        ..Level Bright.

000047ea <MSG_SETTINGS>:
    47ea:	ff ff 53 65 74 74 69 6e 67 73 00                    ..Settings.

000047f5 <MSG_YES>:
    47f5:	ff ff 59 65 73 00                                   ..Yes.

000047fb <MSG_NO>:
    47fb:	ff ff 4e 6f 00                                      ..No.

00004800 <MSG_STOP_PRINT>:
    4800:	ff ff 53 74 6f 70 20 70 72 69 6e 74 00              ..Stop print.

0000480d <MSG_CHECKING_FILE>:
    480d:	ff ff 43 68 65 63 6b 69 6e 67 20 66 69 6c 65 00     ..Checking file.

0000481d <MSG_FILE_INCOMPLETE>:
    481d:	ff ff 46 69 6c 65 20 69 6e 63 6f 6d 70 6c 65 74     ..File incomplet
    482d:	65 2e 00                                            e..

00004830 <MSG_REFRESH>:
    4830:	ff ff 84 52 65 66 72 65 73 68 00                    ...Refresh.

0000483b <MSG_MAIN>:
    483b:	ff ff 4d 61 69 6e 00                                ..Main.

00004842 <MSG_WAITING_TEMP>:
    4842:	ff ff 57 61 69 74 69 6e 67 20 66 6f 72 20 6e 6f     ..Waiting for no
    4852:	7a 7a 6c 65 20 61 6e 64 20 62 65 64 20 63 6f 6f     zzle and bed coo
    4862:	6c 69 6e 67 00                                      ling.

00004867 <MSG_SELFTEST_OK>:
    4867:	ff ff 53 65 6c 66 74 65 73 74 20 4f 4b 00           ..Selftest OK.

00004875 <MSG_SELFTEST_START>:
    4875:	ff ff 53 65 6c 66 74 65 73 74 20 73 74 61 72 74     ..Selftest start
	...

00004886 <MSG_PRINT_FAN_SPEED>:
    4886:	ff ff 50 72 69 6e 74 20 66 61 6e 3a 00              ..Print fan:.

00004893 <MSG_HOTEND_FAN_SPEED>:
    4893:	ff ff 48 6f 74 65 6e 64 20 66 61 6e 3a 00           ..Hotend fan:.

000048a1 <MSG_CALIBRATING_HOME>:
    48a1:	ff ff 43 61 6c 69 62 72 61 74 69 6e 67 20 68 6f     ..Calibrating ho
    48b1:	6d 65 00                                            me.

000048b4 <MSG_SELFTEST_CHECK_ALLCORRECT>:
    48b4:	ff ff 41 6c 6c 20 63 6f 72 72 65 63 74 00           ..All correct.

000048c2 <MSG_SELFTEST_CHECK_FSENSOR>:
    48c2:	ff ff 43 68 65 63 6b 69 6e 67 20 73 65 6e 73 6f     ..Checking senso
    48d2:	72 73 00                                            rs.

000048d5 <MSG_SELFTEST_CHECK_HOTEND>:
    48d5:	ff ff 43 68 65 63 6b 69 6e 67 20 68 6f 74 65 6e     ..Checking hoten
    48e5:	64 00                                               d.

000048e7 <MSG_SELFTEST_CHECK_BED>:
    48e7:	ff ff 43 68 65 63 6b 69 6e 67 20 62 65 64 00        ..Checking bed.

000048f6 <MSG_SELFTEST_CHECK_Z>:
    48f6:	ff ff 43 68 65 63 6b 69 6e 67 20 5a 20 61 78 69     ..Checking Z axi
    4906:	73 00                                               s.

00004908 <MSG_CHECKING_Y>:
    4908:	ff ff 43 68 65 63 6b 69 6e 67 20 59 20 61 78 69     ..Checking Y axi
    4918:	73 00                                               s.

0000491a <MSG_CHECKING_X>:
    491a:	ff ff 43 68 65 63 6b 69 6e 67 20 58 20 61 78 69     ..Checking X axi
    492a:	73 00                                               s.

0000492c <MSG_SELFTEST_CHECK_ENDSTOPS>:
    492c:	ff ff 43 68 65 63 6b 69 6e 67 20 65 6e 64 73 74     ..Checking endst
    493c:	6f 70 73 00                                         ops.

00004940 <MSG_SD_REMOVED>:
    4940:	ff ff 43 61 72 64 20 72 65 6d 6f 76 65 64 00        ..Card removed.

0000494f <MSG_BACK>:
    494f:	ff ff 42 61 63 6b 00                                ..Back.

00004956 <MSG_STRICT>:
    4956:	ff ff 53 74 72 69 63 74 00                          ..Strict.

0000495f <MSG_WARN>:
    495f:	ff ff 57 61 72 6e 00                                ..Warn.

00004966 <MSG_NONE>:
    4966:	ff ff 4e 6f 6e 65 00                                ..None.

0000496d <MSG_NOZZLE_CNG_CHANGED>:
    496d:	ff ff 4e 6f 7a 7a 6c 65 20 63 68 61 6e 67 65 64     ..Nozzle changed
    497d:	3f 00                                               ?.

0000497f <MSG_NOZZLE_CNG_COOLDOWN>:
    497f:	ff ff 4e 6f 7a 7a 6c 65 20 69 73 20 68 6f 74 21     ..Nozzle is hot!
    498f:	20 57 61 69 74 20 66 6f 72 20 63 6f 6f 6c 64 6f      Wait for cooldo
    499f:	77 6e 2e 00                                         wn..

000049a3 <MSG_PID_FINISHED>:
    49a3:	ff ff 50 49 44 20 63 61 6c 2e 20 66 69 6e 69 73     ..PID cal. finis
    49b3:	68 65 64 00                                         hed.

000049b7 <MSG_PID_RUNNING>:
    49b7:	ff ff 50 49 44 20 63 61 6c 2e 00                    ..PID cal..

000049c2 <MSG_PRINT_PAUSED>:
    49c2:	ff ff 50 72 69 6e 74 20 70 61 75 73 65 64 00        ..Print paused.

000049d1 <MSG_PRINT_ABORTED>:
    49d1:	ff ff 50 72 69 6e 74 20 61 62 6f 72 74 65 64 00     ..Print aborted.

000049e1 <MSG_NOZZLE_DIFFERS_CONTINUE>:
    49e1:	ff ff 4e 6f 7a 7a 6c 65 20 64 69 61 6d 65 74 65     ..Nozzle diamete
    49f1:	72 20 64 69 66 66 65 72 73 20 66 72 6f 6d 20 74     r differs from t
    4a01:	68 65 20 47 2d 63 6f 64 65 2e 00                    he G-code..

00004a0c <MSG_NOZZLE_DIFFERS_CANCELLED>:
    4a0c:	ff ff 4e 6f 7a 7a 6c 65 20 64 69 61 6d 65 74 65     ..Nozzle diamete
    4a1c:	72 20 64 69 66 66 65 72 73 20 66 72 6f 6d 20 74     r differs from t
    4a2c:	68 65 20 47 2d 63 6f 64 65 2e 20 50 6c 65 61 73     he G-code. Pleas
    4a3c:	65 20 63 68 65 63 6b 20 74 68 65 20 76 61 6c 75     e check the valu
    4a4c:	65 20 69 6e 20 73 65 74 74 69 6e 67 73 2e 00        e in settings..

00004a5b <MSG_MISSING_FILAMENT>:
    4a5b:	ff ff 54 68 65 72 65 20 69 73 20 6e 6f 20 66 69     ..There is no fi
    4a6b:	6c 61 6d 65 6e 74 20 6c 6f 61 64 65 64 2e 00        lament loaded..

00004a7a <MSG_FW_MK3_DETECTED>:
    4a7a:	ff ff 4d 4b 33 20 66 69 72 6d 77 61 72 65 20 64     ..MK3 firmware d
    4a8a:	65 74 65 63 74 65 64 20 6f 6e 20 4d 4b 33 53 20     etected on MK3S 
    4a9a:	70 72 69 6e 74 65 72 00                             printer.

00004aa2 <MSG_RECOVER_PRINT>:
    4aa2:	ff ff 42 6c 61 63 6b 6f 75 74 20 6f 63 63 75 72     ..Blackout occur
    4ab2:	72 65 64 2e 20 52 65 63 6f 76 65 72 20 70 72 69     red. Recover pri
    4ac2:	6e 74 3f 00                                         nt?.

00004ac6 <MSG_TM_NOT_CAL>:
    4ac6:	ff ff 54 68 65 72 6d 61 6c 20 6d 6f 64 65 6c 20     ..Thermal model 
    4ad6:	6e 6f 74 20 63 61 6c 69 62 72 61 74 65 64 20 79     not calibrated y
    4ae6:	65 74 2e 00                                         et..

00004aea <MSG_FOLLOW_Z_CALIBRATION_FLOW>:
    4aea:	ff ff 54 68 65 72 65 20 69 73 20 73 74 69 6c 6c     ..There is still
    4afa:	20 61 20 6e 65 65 64 20 74 6f 20 6d 61 6b 65 20      a need to make 
    4b0a:	5a 20 63 61 6c 69 62 72 61 74 69 6f 6e 2e 20 50     Z calibration. P
    4b1a:	6c 65 61 73 65 20 66 6f 6c 6c 6f 77 20 74 68 65     lease follow the
    4b2a:	20 6d 61 6e 75 61 6c 2c 20 63 68 61 70 74 65 72      manual, chapter
    4b3a:	20 46 69 72 73 74 20 73 74 65 70 73 2c 20 73 65      First steps, se
    4b4a:	63 74 69 6f 6e 20 43 61 6c 69 62 72 61 74 69 6f     ction Calibratio
    4b5a:	6e 20 66 6c 6f 77 2e 00                             n flow..

00004b62 <MSG_FOLLOW_CALIBRATION_FLOW>:
    4b62:	ff ff 50 72 69 6e 74 65 72 20 68 61 73 20 6e 6f     ..Printer has no
    4b72:	74 20 62 65 65 6e 20 63 61 6c 69 62 72 61 74 65     t been calibrate
    4b82:	64 20 79 65 74 2e 20 50 6c 65 61 73 65 20 66 6f     d yet. Please fo
    4b92:	6c 6c 6f 77 20 74 68 65 20 6d 61 6e 75 61 6c 2c     llow the manual,
    4ba2:	20 63 68 61 70 74 65 72 20 46 69 72 73 74 20 73      chapter First s
    4bb2:	74 65 70 73 2c 20 73 65 63 74 69 6f 6e 20 43 61     teps, section Ca
    4bc2:	6c 69 62 72 61 74 69 6f 6e 20 66 6c 6f 77 2e 00     libration flow..

00004bd2 <MSG_FORCE_SELFTEST>:
    4bd2:	ff ff 53 65 6c 66 74 65 73 74 20 77 69 6c 6c 20     ..Selftest will 
    4be2:	62 65 20 72 75 6e 20 74 6f 20 63 61 6c 69 62 72     be run to calibr
    4bf2:	61 74 65 20 61 63 63 75 72 61 74 65 20 73 65 6e     ate accurate sen
    4c02:	73 6f 72 6c 65 73 73 20 72 65 68 6f 6d 69 6e 67     sorless rehoming
    4c12:	2e 00                                               ..

00004c14 <MSG_DEFAULT_SETTINGS_LOADED>:
    4c14:	ff ff 4f 6c 64 20 73 65 74 74 69 6e 67 73 20 66     ..Old settings f
    4c24:	6f 75 6e 64 2e 20 44 65 66 61 75 6c 74 20 50 49     ound. Default PI
    4c34:	44 2c 20 45 73 74 65 70 73 20 65 74 63 2e 20 77     D, Esteps etc. w
    4c44:	69 6c 6c 20 62 65 20 73 65 74 2e 00                 ill be set..

00004c50 <MSG_CHANGED_BOTH>:
    4c50:	ff ff 57 61 72 6e 69 6e 67 3a 20 62 6f 74 68 20     ..Warning: both 
    4c60:	70 72 69 6e 74 65 72 20 74 79 70 65 20 61 6e 64     printer type and
    4c70:	20 6d 6f 74 68 65 72 62 6f 61 72 64 20 74 79 70      motherboard typ
    4c80:	65 20 63 68 61 6e 67 65 64 2e 00                    e changed..

00004c8b <MSG_CHANGED_PRINTER>:
    4c8b:	ff ff 57 61 72 6e 69 6e 67 3a 20 70 72 69 6e 74     ..Warning: print
    4c9b:	65 72 20 74 79 70 65 20 63 68 61 6e 67 65 64 2e     er type changed.
	...

00004cac <MSG_CHANGED_MOTHERBOARD>:
    4cac:	ff ff 57 61 72 6e 69 6e 67 3a 20 6d 6f 74 68 65     ..Warning: mothe
    4cbc:	72 62 6f 61 72 64 20 74 79 70 65 20 63 68 61 6e     rboard type chan
    4ccc:	67 65 64 2e 00                                      ged..

00004cd1 <MSG_SHEET>:
    4cd1:	ff ff 53 68 65 65 74 00                             ..Sheet.

00004cd9 <MSG_RECOVERING_PRINT>:
    4cd9:	ff ff 52 65 63 6f 76 65 72 69 6e 67 20 70 72 69     ..Recovering pri
    4ce9:	6e 74 00                                            nt.

00004cec <MSG_THERMAL_ANOMALY>:
    4cec:	ff ff 54 48 45 52 4d 41 4c 20 41 4e 4f 4d 41 4c     ..THERMAL ANOMAL
    4cfc:	59 00                                               Y.

00004cfe <MSG_RESUMING_PRINT>:
    4cfe:	ff ff 52 65 73 75 6d 69 6e 67 20 70 72 69 6e 74     ..Resuming print
	...

00004d0f <MSG_PINDA_PREHEAT>:
    4d0f:	ff ff 50 49 4e 44 41 20 48 65 61 74 69 6e 67 00     ..PINDA Heating.

00004d1f <MSG_HOMEYZ_DONE>:
    4d1f:	ff ff 43 61 6c 69 62 72 61 74 69 6f 6e 20 64 6f     ..Calibration do
    4d2f:	6e 65 00                                            ne.

00004d32 <MSG_CALIBRATE_Z_AUTO>:
    4d32:	ff ff 43 61 6c 69 62 72 61 74 69 6e 67 20 5a 00     ..Calibrating Z.

00004d42 <MSG_BED_DONE>:
    4d42:	ff ff 42 65 64 20 64 6f 6e 65 00                    ..Bed done.

00004d4d <MSG_BED_HEATING>:
    4d4d:	ff ff 42 65 64 20 48 65 61 74 69 6e 67 00           ..Bed Heating.

00004d5b <MSG_HEATING_COMPLETE>:
    4d5b:	ff ff 48 65 61 74 69 6e 67 20 64 6f 6e 65 2e 00     ..Heating done..

00004d6b <MSG_HEATING>:
    4d6b:	ff ff 48 65 61 74 69 6e 67 00                       ..Heating.

00004d75 <MSG_MMU_FAILS>:
    4d75:	ff ff 4d 4d 55 20 66 61 69 6c 73 00                 ..MMU fails.

00004d81 <MSG_MMU_LOAD_FAILS>:
    4d81:	ff ff 4d 4d 55 20 6c 6f 61 64 20 66 61 69 6c 73     ..MMU load fails
	...

00004d92 <MSG_MMU_POWER_FAILS>:
    4d92:	ff ff 4d 4d 55 20 70 6f 77 65 72 20 66 61 69 6c     ..MMU power fail
    4da2:	73 00                                               s.

00004da4 <MSG_MATERIAL_CHANGES>:
    4da4:	ff ff 4d 61 74 65 72 69 61 6c 20 63 68 61 6e 67     ..Material chang
    4db4:	65 73 00                                            es.

00004db7 <MSG_TOTAL_FAILURES>:
    4db7:	ff ff 54 6f 74 61 6c 20 66 61 69 6c 75 72 65 73     ..Total failures
	...

00004dc8 <MSG_LAST_PRINT_FAILURES>:
    4dc8:	ff ff 4c 61 73 74 20 70 72 69 6e 74 20 66 61 69     ..Last print fai
    4dd8:	6c 75 72 65 73 00                                   lures.

00004dde <MSG_POWER_FAILURES>:
    4dde:	ff ff 50 6f 77 65 72 20 66 61 69 6c 75 72 65 73     ..Power failures
	...

00004def <MSG_FIL_RUNOUTS>:
    4def:	ff ff 46 69 6c 2e 20 72 75 6e 6f 75 74 73 00        ..Fil. runouts.

00004dfe <MSG_CRASH>:
    4dfe:	ff ff 43 72 61 73 68 00                             ..Crash.

00004e06 <MSG_TOTAL>:
    4e06:	ff ff 54 6f 74 61 6c 00                             ..Total.

00004e0e <MSG_LAST_PRINT>:
    4e0e:	ff ff 4c 61 73 74 20 70 72 69 6e 74 00              ..Last print.

00004e1b <MSG_AMBIENT>:
    4e1b:	ff ff 41 6d 62 69 65 6e 74 00                       ..Ambient.

00004e25 <MSG_MENU_VOLTAGES>:
    4e25:	ff ff 56 6f 6c 74 61 67 65 73 00                    ..Voltages.

00004e30 <MSG_MENU_TEMPERATURES>:
    4e30:	ff ff 54 65 6d 70 65 72 61 74 75 72 65 73 00        ..Temperatures.

00004e3f <MSG_BELT_STATUS>:
    4e3f:	ff ff 42 65 6c 74 20 73 74 61 74 75 73 00           ..Belt status.

00004e4d <MSG_INFO_SENSORS>:
    4e4d:	ff ff 53 65 6e 73 6f 72 20 69 6e 66 6f 00           ..Sensor info.

00004e5b <MSG_INFO_EXTRUDER>:
    4e5b:	ff ff 45 78 74 72 75 64 65 72 20 69 6e 66 6f 00     ..Extruder info.

00004e6b <MSG_XYZ_DETAILS>:
    4e6b:	ff ff 58 59 5a 20 63 61 6c 2e 20 64 65 74 61 69     ..XYZ cal. detai
    4e7b:	6c 73 00                                            ls.

00004e7e <MSG_PRINTER_IP>:
    4e7e:	ff ff 50 72 69 6e 74 65 72 20 49 50 20 41 64 64     ..Printer IP Add
    4e8e:	72 3a 00                                            r:.

00004e91 <MSG_UNKNOWN>:
    4e91:	ff ff 75 6e 6b 6e 6f 77 6e 00                       ..unknown.

00004e9b <MSG_MMU_CONNECTED>:
    4e9b:	ff ff 4d 4d 55 20 63 6f 6e 6e 65 63 74 65 64 00     ..MMU connected.

00004eab <MSG_DATE>:
    4eab:	ff ff 44 61 74 65 3a 00                             ..Date:.

00004eb3 <MSG_TO_UNLOAD_FIL>:
    4eb3:	ff ff 74 6f 20 75 6e 6c 6f 61 64 20 66 69 6c 61     ..to unload fila
    4ec3:	6d 65 6e 74 00                                      ment.

00004ec8 <MSG_TO_LOAD_FIL>:
    4ec8:	ff ff 74 6f 20 6c 6f 61 64 20 66 69 6c 61 6d 65     ..to load filame
    4ed8:	6e 74 00                                            nt.

00004edb <MSG_PRESS_KNOB>:
    4edb:	ff ff 50 72 65 73 73 20 74 68 65 20 6b 6e 6f 62     ..Press the knob
	...

00004eec <MSG_PREHEATING_TO_CUT>:
    4eec:	ff ff 50 72 65 68 65 61 74 69 6e 67 20 74 6f 20     ..Preheating to 
    4efc:	63 75 74 00                                         cut.

00004f00 <MSG_PREHEATING_TO_EJECT>:
    4f00:	ff ff 50 72 65 68 65 61 74 69 6e 67 20 74 6f 20     ..Preheating to 
    4f10:	65 6a 65 63 74 00                                   eject.

00004f16 <MSG_PREHEATING_TO_UNLOAD>:
    4f16:	ff ff 50 72 65 68 65 61 74 69 6e 67 20 74 6f 20     ..Preheating to 
    4f26:	75 6e 6c 6f 61 64 00                                unload.

00004f2d <MSG_PREHEATING_TO_LOAD>:
    4f2d:	ff ff 50 72 65 68 65 61 74 69 6e 67 20 74 6f 20     ..Preheating to 
    4f3d:	6c 6f 61 64 00                                      load.

00004f42 <MSG_COOLDOWN>:
    4f42:	ff ff 43 6f 6f 6c 64 6f 77 6e 00                    ..Cooldown.

00004f4d <MSG_FILAMENT_CLEAN>:
    4f4d:	ff ff 46 69 6c 61 6d 65 6e 74 20 65 78 74 72 75     ..Filament extru
    4f5d:	64 69 6e 67 20 26 20 77 69 74 68 20 63 6f 72 72     ding & with corr
    4f6d:	65 63 74 20 63 6f 6c 6f 72 3f 00                    ect color?.

00004f78 <MSG_EJECT>:
    4f78:	ff ff 45 6a 65 63 74 00                             ..Eject.

00004f80 <MSG_AUTOLOADING_ENABLED>:
    4f80:	ff ff 41 75 74 6f 6c 6f 61 64 69 6e 67 20 66 69     ..Autoloading fi
    4f90:	6c 61 6d 65 6e 74 20 69 73 20 61 63 74 69 76 65     lament is active
    4fa0:	2c 20 6a 75 73 74 20 70 72 65 73 73 20 74 68 65     , just press the
    4fb0:	20 6b 6e 6f 62 20 61 6e 64 20 69 6e 73 65 72 74      knob and insert
    4fc0:	20 66 69 6c 61 6d 65 6e 74 2e 2e 2e 00               filament....

00004fcd <MSG_TOTAL_FILAMENT>:
    4fcd:	ff ff 54 6f 74 61 6c 20 66 69 6c 61 6d 65 6e 74     ..Total filament
	...

00004fde <MSG_TOTAL_PRINT_TIME>:
    4fde:	ff ff 54 6f 74 61 6c 20 70 72 69 6e 74 20 74 69     ..Total print ti
    4fee:	6d 65 00                                            me.

00004ff1 <MSG_FILAMENT_USED>:
    4ff1:	ff ff 46 69 6c 61 6d 65 6e 74 20 75 73 65 64 00     ..Filament used.

00005001 <MSG_PRINT_TIME>:
    5001:	ff ff 50 72 69 6e 74 20 74 69 6d 65 00              ..Print time.

0000500e <MSG_PREHEAT_NOZZLE>:
    500e:	ff ff 50 72 65 68 65 61 74 20 74 68 65 20 6e 6f     ..Preheat the no
    501e:	7a 7a 6c 65 21 00                                   zzle!.

00005024 <MSG_ERROR>:
    5024:	ff ff 45 52 52 4f 52 3a 00                          ..ERROR:.

0000502d <MSG_Y_DIST_FROM_MIN>:
    502d:	ff ff 59 20 64 69 73 74 61 6e 63 65 20 66 72 6f     ..Y distance fro
    503d:	6d 20 6d 69 6e 00                                   m min.

00005043 <MSG_LEFT>:
    5043:	ff ff 4c 65 66 74 00                                ..Left.

0000504a <MSG_RIGHT>:
    504a:	ff ff 52 69 67 68 74 00                             ..Right.

00005052 <MSG_MEASURED_SKEW>:
    5052:	ff ff 4d 65 61 73 75 72 65 64 20 73 6b 65 77 00     ..Measured skew.

00005062 <MSG_SLIGHT_SKEW>:
    5062:	ff ff 53 6c 69 67 68 74 20 73 6b 65 77 00           ..Slight skew.

00005070 <MSG_SEVERE_SKEW>:
    5070:	ff ff 53 65 76 65 72 65 20 73 6b 65 77 00           ..Severe skew.

0000507e <MSG_MEASURED_OFFSET>:
    507e:	ff ff 5b 30 3b 30 5d 20 70 6f 69 6e 74 20 6f 66     ..[0;0] point of
    508e:	66 73 65 74 00                                      fset.

00005093 <MSG_BABYSTEPPING_Z>:
    5093:	ff ff 41 64 6a 75 73 74 69 6e 67 20 5a 00           ..Adjusting Z.

000050a1 <MSG_BED_CORRECTION_REAR>:
    50a1:	ff ff 52 65 61 72 20 73 69 64 65 20 5b e4 6d 5d     ..Rear side [.m]
	...

000050b2 <MSG_BED_CORRECTION_FRONT>:
    50b2:	ff ff 46 72 6f 6e 74 20 73 69 64 65 5b e4 6d 5d     ..Front side[.m]
	...

000050c3 <MSG_BED_CORRECTION_RIGHT>:
    50c3:	ff ff 52 69 67 68 74 20 73 69 64 65 5b e4 6d 5d     ..Right side[.m]
	...

000050d4 <MSG_BED_CORRECTION_LEFT>:
    50d4:	ff ff 4c 65 66 74 20 73 69 64 65 20 5b e4 6d 5d     ..Left side [.m]
	...

000050e5 <MSG_SET_TEMPERATURE>:
    50e5:	ff ff 53 65 74 20 74 65 6d 70 65 72 61 74 75 72     ..Set temperatur
    50f5:	65 3a 00                                            e:.

000050f8 <MSG_PINDA_CAL_FAILED>:
    50f8:	ff ff 50 49 4e 44 41 20 63 61 6c 69 62 72 61 74     ..PINDA calibrat
    5108:	69 6f 6e 20 66 61 69 6c 65 64 00                    ion failed.

00005113 <MSG_PINDA_CALIBRATION_DONE>:
    5113:	ff ff 50 49 4e 44 41 20 63 61 6c 69 62 72 61 74     ..PINDA calibrat
    5123:	69 6f 6e 20 69 73 20 66 69 6e 69 73 68 65 64 20     ion is finished 
    5133:	61 6e 64 20 61 63 74 69 76 65 2e 20 49 74 20 63     and active. It c
    5143:	61 6e 20 62 65 20 64 69 73 61 62 6c 65 64 20 69     an be disabled i
    5153:	6e 20 6d 65 6e 75 20 53 65 74 74 69 6e 67 73 2d     n menu Settings-
    5163:	3e 50 49 4e 44 41 20 63 61 6c 2e 00                 >PINDA cal..

0000516f <MMU2::MSG_PROGRESS_FEED_FSENSOR>:
    516f:	ff ff 46 65 65 64 69 6e 67 20 74 6f 20 46 53 65     ..Feeding to FSe
    517f:	6e 73 6f 72 00                                      nsor.

00005184 <MMU2::MSG_PROGRESS_MOVING_SELECTOR>:
    5184:	ff ff 4d 6f 76 69 6e 67 20 73 65 6c 65 63 74 6f     ..Moving selecto
    5194:	72 00                                               r.

00005196 <MMU2::MSG_PROGRESS_HOMING>:
    5196:	ff ff 48 6f 6d 69 6e 67 00                          ..Homing.

0000519f <MMU2::MSG_PROGRESS_RETRACT_FINDA>:
    519f:	ff ff 52 65 74 72 61 63 74 20 66 72 6f 6d 20 46     ..Retract from F
    51af:	49 4e 44 41 00                                      INDA.

000051b4 <MMU2::MSG_PROGRESS_EJECT_FILAMENT>:
    51b4:	ff ff 45 6a 65 63 74 69 6e 67 20 66 69 6c 61 6d     ..Ejecting filam
    51c4:	65 6e 74 00                                         ent.

000051c8 <MMU2::MSG_PROGRESS_PARK_SELECTOR>:
    51c8:	ff ff 50 61 72 6b 69 6e 67 20 73 65 6c 65 63 74     ..Parking select
    51d8:	6f 72 00                                            or.

000051db <MMU2::MSG_PROGRESS_RETURN_SELECTOR>:
    51db:	ff ff 52 65 74 75 72 6e 69 6e 67 20 73 65 6c 65     ..Returning sele
    51eb:	63 74 6f 72 00                                      ctor.

000051f0 <MMU2::MSG_PROGRESS_PERFORM_CUT>:
    51f0:	ff ff 50 65 72 66 6f 72 6d 69 6e 67 20 63 75 74     ..Performing cut
	...

00005201 <MMU2::MSG_PROGRESS_PUSH_FILAMENT>:
    5201:	ff ff 50 75 73 68 69 6e 67 20 66 69 6c 61 6d 65     ..Pushing filame
    5211:	6e 74 00                                            nt.

00005214 <MMU2::MSG_PROGRESS_PREPARE_BLADE>:
    5214:	ff ff 50 72 65 70 61 72 69 6e 67 20 62 6c 61 64     ..Preparing blad
    5224:	65 00                                               e.

00005226 <MMU2::MSG_PROGRESS_SELECT_SLOT>:
    5226:	ff ff 53 65 6c 65 63 74 69 6e 67 20 66 69 6c 2e     ..Selecting fil.
    5236:	20 73 6c 6f 74 00                                    slot.

0000523c <MSG_UNLOADING_FILAMENT>:
    523c:	ff ff 55 6e 6c 6f 61 64 69 6e 67 20 66 69 6c 61     ..Unloading fila
    524c:	6d 65 6e 74 00                                      ment.

00005251 <MMU2::MSG_PROGRESS_ERR_TMC>:
    5251:	ff ff 45 52 52 20 54 4d 43 20 66 61 69 6c 65 64     ..ERR TMC failed
	...

00005262 <MMU2::MSG_PROGRESS_ERR_HELP_FIL>:
    5262:	ff ff 45 52 52 20 48 65 6c 70 20 66 69 6c 61 6d     ..ERR Help filam
    5272:	65 6e 74 00                                         ent.

00005276 <MMU2::MSG_PROGRESS_ERR_INTERNAL>:
    5276:	ff ff 45 52 52 20 49 6e 74 65 72 6e 61 6c 00        ..ERR Internal.

00005285 <MMU2::MSG_PROGRESS_WAIT_USER>:
    5285:	ff ff 45 52 52 20 57 61 69 74 20 66 6f 72 20 55     ..ERR Wait for U
    5295:	73 65 72 00                                         ser.

00005299 <MSG_FINISHING_MOVEMENTS>:
    5299:	ff ff 46 69 6e 69 73 68 69 6e 67 20 6d 6f 76 65     ..Finishing move
    52a9:	6d 65 6e 74 73 00                                   ments.

000052af <MMU2::MSG_PROGRESS_AVOID_GRIND>:
    52af:	ff ff 41 76 6f 69 64 69 6e 67 20 67 72 69 6e 64     ..Avoiding grind
	...

000052c0 <MMU2::MSG_PROGRESS_FEED_NOZZLE>:
    52c0:	ff ff 46 65 65 64 69 6e 67 20 74 6f 20 6e 6f 7a     ..Feeding to noz
    52d0:	7a 6c 65 00                                         zle.

000052d4 <MMU2::MSG_PROGRESS_FEED_EXTRUDER>:
    52d4:	ff ff 46 65 65 64 69 6e 67 20 74 6f 20 65 78 74     ..Feeding to ext
    52e4:	72 75 64 65 72 00                                   ruder.

000052ea <MMU2::MSG_PROGRESS_FEED_FINDA>:
    52ea:	ff ff 46 65 65 64 69 6e 67 20 74 6f 20 46 49 4e     ..Feeding to FIN
    52fa:	44 41 00                                            DA.

000052fd <MMU2::MSG_PROGRESS_UNLOAD_PULLEY>:
    52fd:	ff ff 55 6e 6c 6f 61 64 69 6e 67 20 74 6f 20 70     ..Unloading to p
    530d:	75 6c 6c 65 79 00                                   ulley.

00005313 <MMU2::MSG_PROGRESS_UNLOAD_FINDA>:
    5313:	ff ff 55 6e 6c 6f 61 64 69 6e 67 20 74 6f 20 46     ..Unloading to F
    5323:	49 4e 44 41 00                                      INDA.

00005328 <MMU2::MSG_PROGRESS_DISENGAGE_IDLER>:
    5328:	ff ff 44 69 73 65 6e 67 61 67 69 6e 67 20 69 64     ..Disengaging id
    5338:	6c 65 72 00                                         ler.

0000533c <MMU2::MSG_PROGRESS_ENGAGE_IDLER>:
    533c:	ff ff 45 6e 67 61 67 69 6e 67 20 69 64 6c 65 72     ..Engaging idler
	...

0000534d <MMU2::MSG_PROGRESS_OK>:
    534d:	ff ff 4f 4b 00                                      ..OK.

00005352 <_ZN4MMU2L23MSG_TITLE_UNKNOWN_ERRORE.lto_priv.530>:
    5352:	ff ff 55 4e 4b 4e 4f 57 4e 20 45 52 52 4f 52 00     ..UNKNOWN ERROR.

00005362 <_ZN4MMU2L25MSG_TITLE_FILAMENT_CHANGEE.lto_priv.529>:
    5362:	ff ff 46 49 4c 41 4d 45 4e 54 20 43 48 41 4e 47     ..FILAMENT CHANG
    5372:	45 00                                               E.

00005374 <_ZN4MMU2L26MSG_TITLE_FILAMENT_EJECTEDE.lto_priv.528>:
    5374:	ff ff 46 49 4c 41 4d 45 4e 54 20 45 4a 45 43 54     ..FILAMENT EJECT
    5384:	45 44 00                                            ED.

00005387 <_ZN4MMU2L25MSG_TITLE_UNLOAD_MANUALLYE.lto_priv.527>:
    5387:	ff ff 55 4e 4c 4f 41 44 20 4d 41 4e 55 41 4c 4c     ..UNLOAD MANUALL
    5397:	59 00                                               Y.

00005399 <_ZN4MMU2L26MSG_TITLE_FW_RUNTIME_ERRORE.lto_priv.526>:
    5399:	ff ff 46 57 20 52 55 4e 54 49 4d 45 20 45 52 52     ..FW RUNTIME ERR
    53a9:	4f 52 00                                            OR.

000053ac <_ZN4MMU2L26MSG_TITLE_FW_UPDATE_NEEDEDE.lto_priv.525>:
    53ac:	ff ff 4d 4d 55 20 46 57 20 55 50 44 41 54 45 20     ..MMU FW UPDATE 
    53bc:	4e 45 45 44 45 44 00                                NEEDED.

000053c3 <_ZN4MMU2L20MSG_TITLE_QUEUE_FULLE.lto_priv.524>:
    53c3:	ff ff 51 55 45 55 45 20 46 55 4c 4c 00              ..QUEUE FULL.

000053d0 <_ZN4MMU2L22MSG_TITLE_INVALID_TOOLE.lto_priv.523>:
    53d0:	ff ff 49 4e 56 41 4c 49 44 20 54 4f 4f 4c 00        ..INVALID TOOL.

000053df <_ZN4MMU2L33MSG_TITLE_FILAMENT_ALREADY_LOADEDE.lto_priv.522>:
    53df:	ff ff 46 49 4c 2e 20 41 4c 52 45 41 44 59 20 4c     ..FIL. ALREADY L
    53ef:	4f 41 44 45 44 00                                   OADED.

000053f5 <_ZN4MMU2L29MSG_TITLE_COMMUNICATION_ERRORE.lto_priv.521>:
    53f5:	ff ff 43 4f 4d 4d 55 4e 49 43 41 54 49 4f 4e 20     ..COMMUNICATION 
    5405:	45 52 52 4f 52 00                                   ERROR.

0000540b <_ZN4MMU2L28MSG_TITLE_MMU_NOT_RESPONDINGE.lto_priv.520>:
    540b:	ff ff 4d 4d 55 20 4e 4f 54 20 52 45 53 50 4f 4e     ..MMU NOT RESPON
    541b:	44 49 4e 47 00                                      DING.

00005420 <_ZN4MMU2L23MSG_TITLE_MMU_MCU_ERRORE.lto_priv.519>:
    5420:	ff ff 4d 4d 55 20 4d 43 55 20 45 52 52 4f 52 00     ..MMU MCU ERROR.

00005430 <_ZN4MMU2L25MSG_TITLE_SELFTEST_FAILEDE.lto_priv.518>:
    5430:	ff ff 4d 4d 55 20 53 45 4c 46 54 45 53 54 20 46     ..MMU SELFTEST F
    5440:	41 49 4c 45 44 00                                   AILED.

00005446 <_ZN4MMU2L28MSG_TITLE_TMC_DRIVER_SHORTEDE.lto_priv.517>:
    5446:	ff ff 54 4d 43 20 44 52 49 56 45 52 20 53 48 4f     ..TMC DRIVER SHO
    5456:	52 54 45 44 00                                      RTED.

0000545b <_ZN4MMU2L32MSG_TITLE_TMC_UNDERVOLTAGE_ERRORE.lto_priv.516>:
    545b:	ff ff 54 4d 43 20 55 4e 44 45 52 56 4f 4c 54 41     ..TMC UNDERVOLTA
    546b:	47 45 20 45 52 52 00                                GE ERR.

00005472 <_ZN4MMU2L26MSG_TITLE_TMC_DRIVER_RESETE.lto_priv.515>:
    5472:	ff ff 54 4d 43 20 44 52 49 56 45 52 20 52 45 53     ..TMC DRIVER RES
    5482:	45 54 00                                            ET.

00005485 <_ZN4MMU2L26MSG_TITLE_TMC_DRIVER_ERRORE.lto_priv.514>:
    5485:	ff ff 54 4d 43 20 44 52 49 56 45 52 20 45 52 52     ..TMC DRIVER ERR
    5495:	4f 52 00                                            OR.

00005498 <_ZN4MMU2L28MSG_TITLE_TMC_OVERHEAT_ERRORE.lto_priv.513>:
    5498:	ff ff 54 4d 43 20 4f 56 45 52 48 45 41 54 20 45     ..TMC OVERHEAT E
    54a8:	52 52 4f 52 00                                      RROR.

000054ad <_ZN4MMU2L33MSG_TITLE_TMC_WARNING_TMC_TOO_HOTE.lto_priv.512>:
    54ad:	ff ff 57 41 52 4e 49 4e 47 20 54 4d 43 20 54 4f     ..WARNING TMC TO
    54bd:	4f 20 48 4f 54 00                                   O HOT.

000054c3 <_ZN4MMU2L27MSG_TITLE_IDLER_CANNOT_MOVEE.lto_priv.511>:
    54c3:	ff ff 49 44 4c 45 52 20 43 41 4e 4e 4f 54 20 4d     ..IDLER CANNOT M
    54d3:	4f 56 45 00                                         OVE.

000054d7 <_ZN4MMU2L27MSG_TITLE_IDLER_CANNOT_HOMEE.lto_priv.510>:
    54d7:	ff ff 49 44 4c 45 52 20 43 41 4e 4e 4f 54 20 48     ..IDLER CANNOT H
    54e7:	4f 4d 45 00                                         OME.

000054eb <_ZN4MMU2L30MSG_TITLE_SELECTOR_CANNOT_MOVEE.lto_priv.509>:
    54eb:	ff ff 53 45 4c 45 43 54 4f 52 20 43 41 4e 4e 4f     ..SELECTOR CANNO
    54fb:	54 20 4d 4f 56 45 00                                T MOVE.

00005502 <_ZN4MMU2L30MSG_TITLE_SELECTOR_CANNOT_HOMEE.lto_priv.508>:
    5502:	ff ff 53 45 4c 45 43 54 4f 52 20 43 41 4e 4e 4f     ..SELECTOR CANNO
    5512:	54 20 48 4f 4d 45 00                                T HOME.

00005519 <_ZN4MMU2L33MSG_TITLE_LOAD_TO_EXTRUDER_FAILEDE.lto_priv.507>:
    5519:	ff ff 4c 4f 41 44 20 54 4f 20 45 58 54 52 2e 20     ..LOAD TO EXTR. 
    5529:	46 41 49 4c 45 44 00                                FAILED.

00005530 <_ZN4MMU2L23MSG_TITLE_INSPECT_FINDAE.lto_priv.506>:
    5530:	ff ff 49 4e 53 50 45 43 54 20 46 49 4e 44 41 00     ..INSPECT FINDA.

00005540 <_ZN4MMU2L27MSG_TITLE_FSENSOR_TOO_EARLYE.lto_priv.505>:
    5540:	ff ff 46 53 45 4e 53 4f 52 20 54 4f 4f 20 45 41     ..FSENSOR TOO EA
    5550:	52 4c 59 00                                         RLY.

00005554 <_ZN4MMU2L28MSG_TITLE_PULLEY_CANNOT_MOVEE.lto_priv.504>:
    5554:	ff ff 50 55 4c 4c 45 59 20 43 41 4e 4e 4f 54 20     ..PULLEY CANNOT 
    5564:	4d 4f 56 45 00                                      MOVE.

00005569 <_ZN4MMU2L32MSG_TITLE_FSENSOR_FILAMENT_STUCKE.lto_priv.503>:
    5569:	ff ff 46 53 45 4e 53 4f 52 20 46 49 4c 2e 20 53     ..FSENSOR FIL. S
    5579:	54 55 43 4b 00                                      TUCK.

0000557e <_ZN4MMU2L31MSG_TITLE_FSENSOR_DIDNT_TRIGGERE.lto_priv.502>:
    557e:	ff ff 46 53 45 4e 53 4f 52 20 44 49 44 4e 54 20     ..FSENSOR DIDNT 
    558e:	54 52 49 47 47 2e 00                                TRIGG..

00005595 <_ZN4MMU2L30MSG_TITLE_FINDA_FILAMENT_STUCKE.lto_priv.501>:
    5595:	ff ff 46 49 4e 44 41 20 46 49 4c 41 4d 2e 20 53     ..FINDA FILAM. S
    55a5:	54 55 43 4b 00                                      TUCK.

000055aa <_ZN4MMU2L29MSG_TITLE_FINDA_DIDNT_TRIGGERE.lto_priv.500>:
    55aa:	ff ff 46 49 4e 44 41 20 44 49 44 4e 54 20 54 52     ..FINDA DIDNT TR
    55ba:	49 47 47 45 52 00                                   IGGER.

000055c0 <MSG_SELFTEST_FAN_NO>:
    55c0:	ff ff 4e 6f 74 20 73 70 69 6e 6e 69 6e 67 00        ..Not spinning.

000055cf <MSG_SELFTEST_FAN_YES>:
    55cf:	ff ff 53 70 69 6e 6e 69 6e 67 00                    ..Spinning.

000055da <MSG_SELFTEST_FAN>:
    55da:	ff ff 46 61 6e 20 74 65 73 74 00                    ..Fan test.

000055e5 <MSG_SELFTEST_FAILED>:
    55e5:	ff ff 53 65 6c 66 74 65 73 74 20 66 61 69 6c 65     ..Selftest faile
    55f5:	64 00                                               d.

000055f7 <MSG_SELFTEST_FILAMENT_SENSOR>:
    55f7:	ff ff 46 69 6c 61 6d 65 6e 74 20 73 65 6e 73 6f     ..Filament senso
    5607:	72 00                                               r.

00005609 <MSG_SELFTEST_SWAPPED>:
    5609:	ff ff 53 77 61 70 70 65 64 00                       ..Swapped.

00005613 <MSG_SELFTEST_FANS>:
    5613:	ff ff 46 72 6f 6e 74 2f 6c 65 66 74 20 66 61 6e     ..Front/left fan
    5623:	73 00                                               s.

00005625 <MSG_SELFTEST_AXIS>:
    5625:	ff ff 41 78 69 73 00                                ..Axis.

0000562c <MSG_SELFTEST_AXIS_LENGTH>:
    562c:	ff ff 41 78 69 73 20 6c 65 6e 67 74 68 00           ..Axis length.

0000563a <MSG_LOOSE_PULLEY>:
    563a:	ff ff 4c 6f 6f 73 65 20 70 75 6c 6c 65 79 00        ..Loose pulley.

00005649 <MSG_SELFTEST_HOTEND_FAN>:
    5649:	ff ff 4c 65 66 74 20 68 6f 74 65 6e 64 20 66 61     ..Left hotend fa
    5659:	6e 3f 00                                            n?.

0000565c <MSG_SELFTEST_PART_FAN>:
    565c:	ff ff 46 72 6f 6e 74 20 70 72 69 6e 74 20 66 61     ..Front print fa
    566c:	6e 3f 00                                            n?.

0000566f <MSG_SELFTEST_ENDSTOP_NOTHIT>:
    566f:	ff ff 45 6e 64 73 74 6f 70 20 6e 6f 74 20 68 69     ..Endstop not hi
    567f:	74 00                                               t.

00005681 <MSG_SELFTEST_ENDSTOP>:
    5681:	ff ff 45 6e 64 73 74 6f 70 00                       ..Endstop.

0000568b <MSG_SELFTEST_MOTOR>:
    568b:	ff ff 4d 6f 74 6f 72 00                             ..Motor.

00005693 <MSG_SELFTEST_ENDSTOPS>:
    5693:	ff ff 45 6e 64 73 74 6f 70 73 00                    ..Endstops.

0000569e <MSG_SELFTEST_WIRINGERROR>:
    569e:	ff ff 57 69 72 69 6e 67 20 65 72 72 6f 72 00        ..Wiring error.

000056ad <MSG_SELFTEST_BEDHEATER>:
    56ad:	ff ff 42 65 64 2f 48 65 61 74 65 72 00              ..Bed/Heater.

000056ba <MSG_SELFTEST_NOTCONNECTED>:
    56ba:	ff ff 4e 6f 74 20 63 6f 6e 6e 65 63 74 65 64 00     ..Not connected.

000056ca <MSG_SELFTEST_HEATERTHERMISTOR>:
    56ca:	ff ff 48 65 61 74 65 72 2f 54 68 65 72 6d 69 73     ..Heater/Thermis
    56da:	74 6f 72 00                                         tor.

000056de <MSG_SELFTEST_PLEASECHECK>:
    56de:	ff ff 50 6c 65 61 73 65 20 63 68 65 63 6b 3a 00     ..Please check:.

000056ee <MSG_SELFTEST_ERROR>:
    56ee:	ff ff 53 65 6c 66 74 65 73 74 20 65 72 72 6f 72     ..Selftest error
    56fe:	21 00                                               !.

00005700 <MSG_BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME>:
    5700:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    5710:	6e 20 61 6c 6c 20 72 69 67 68 74 2e 20 53 6b 65     n all right. Ske
    5720:	77 20 77 69 6c 6c 20 62 65 20 63 6f 72 72 65 63     w will be correc
    5730:	74 65 64 20 61 75 74 6f 6d 61 74 69 63 61 6c 6c     ted automaticall
    5740:	79 2e 00                                            y..

00005743 <MSG_BED_SKEW_OFFSET_DETECTION_SKEW_MILD>:
    5743:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    5753:	6e 20 61 6c 6c 20 72 69 67 68 74 2e 20 58 2f 59     n all right. X/Y
    5763:	20 61 78 65 73 20 61 72 65 20 73 6c 69 67 68 74      axes are slight
    5773:	6c 79 20 73 6b 65 77 65 64 2e 20 47 6f 6f 64 20     ly skewed. Good 
    5783:	6a 6f 62 21 00                                      job!.

00005788 <MSG_BED_SKEW_OFFSET_DETECTION_PERFECT>:
    5788:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    5798:	6e 20 6f 6b 2e 20 58 2f 59 20 61 78 65 73 20 61     n ok. X/Y axes a
    57a8:	72 65 20 70 65 72 70 65 6e 64 69 63 75 6c 61 72     re perpendicular
    57b8:	2e 20 43 6f 6e 67 72 61 74 75 6c 61 74 69 6f 6e     . Congratulation
    57c8:	73 21 00                                            s!.

000057cb <MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_RIGHT_FAR>:
    57cb:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    57db:	6e 20 63 6f 6d 70 72 6f 6d 69 73 65 64 2e 20 52     n compromised. R
    57eb:	69 67 68 74 20 66 72 6f 6e 74 20 63 61 6c 69 62     ight front calib
    57fb:	72 61 74 69 6f 6e 20 70 6f 69 6e 74 20 6e 6f 74     ration point not
    580b:	20 72 65 61 63 68 61 62 6c 65 2e 00                  reachable..

00005817 <MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_BOTH_FAR>:
    5817:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    5827:	6e 20 63 6f 6d 70 72 6f 6d 69 73 65 64 2e 20 46     n compromised. F
    5837:	72 6f 6e 74 20 63 61 6c 69 62 72 61 74 69 6f 6e     ront calibration
    5847:	20 70 6f 69 6e 74 73 20 6e 6f 74 20 72 65 61 63      points not reac
    5857:	68 61 62 6c 65 2e 00                                hable..

0000585e <MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_RIGHT_FAR>:
    585e:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    586e:	6e 20 66 61 69 6c 65 64 2e 20 52 69 67 68 74 20     n failed. Right 
    587e:	66 72 6f 6e 74 20 63 61 6c 69 62 72 61 74 69 6f     front calibratio
    588e:	6e 20 70 6f 69 6e 74 20 6e 6f 74 20 72 65 61 63     n point not reac
    589e:	68 61 62 6c 65 2e 00                                hable..

000058a5 <MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_BOTH_FAR>:
    58a5:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    58b5:	6e 20 66 61 69 6c 65 64 2e 20 46 72 6f 6e 74 20     n failed. Front 
    58c5:	63 61 6c 69 62 72 61 74 69 6f 6e 20 70 6f 69 6e     calibration poin
    58d5:	74 73 20 6e 6f 74 20 72 65 61 63 68 61 62 6c 65     ts not reachable
    58e5:	2e 00                                               ..

000058e7 <MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED>:
    58e7:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    58f7:	6e 20 66 61 69 6c 65 64 2e 20 50 6c 65 61 73 65     n failed. Please
    5907:	20 63 6f 6e 73 75 6c 74 20 74 68 65 20 6d 61 6e      consult the man
    5917:	75 61 6c 2e 00                                      ual..

0000591c <MSG_BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND>:
    591c:	ff ff 58 59 5a 20 63 61 6c 69 62 72 61 74 69 6f     ..XYZ calibratio
    592c:	6e 20 66 61 69 6c 65 64 2e 20 42 65 64 20 63 61     n failed. Bed ca
    593c:	6c 69 62 72 61 74 69 6f 6e 20 70 6f 69 6e 74 20     libration point 
    594c:	77 61 73 20 6e 6f 74 20 66 6f 75 6e 64 2e 00        was not found..

0000595b <MSG_PLACE_STEEL_SHEET>:
    595b:	ff ff 50 6c 65 61 73 65 20 70 6c 61 63 65 20 73     ..Please place s
    596b:	74 65 65 6c 20 73 68 65 65 74 20 6f 6e 20 68 65     teel sheet on he
    597b:	61 74 62 65 64 2e 00                                atbed..

00005982 <MSG_BABYSTEP_Z_NOT_SET>:
    5982:	ff ff 44 69 73 74 61 6e 63 65 20 62 65 74 77 65     ..Distance betwe
    5992:	65 6e 20 74 69 70 20 6f 66 20 74 68 65 20 6e 6f     en tip of the no
    59a2:	7a 7a 6c 65 20 61 6e 64 20 74 68 65 20 62 65 64     zzle and the bed
    59b2:	20 73 75 72 66 61 63 65 20 68 61 73 20 6e 6f 74      surface has not
    59c2:	20 62 65 65 6e 20 73 65 74 20 79 65 74 2e 20 50      been set yet. P
    59d2:	6c 65 61 73 65 20 66 6f 6c 6c 6f 77 20 74 68 65     lease follow the
    59e2:	20 6d 61 6e 75 61 6c 2c 20 63 68 61 70 74 65 72      manual, chapter
    59f2:	20 46 69 72 73 74 20 73 74 65 70 73 2c 20 73 65      First steps, se
    5a02:	63 74 69 6f 6e 20 46 69 72 73 74 20 6c 61 79 65     ction First laye
    5a12:	72 20 63 61 6c 69 62 72 61 74 69 6f 6e 2e 00        r calibration..

00005a21 <MSG_PAPER>:
    5a21:	ff ff 50 6c 61 63 65 20 61 20 73 68 65 65 74 20     ..Place a sheet 
    5a31:	6f 66 20 70 61 70 65 72 20 75 6e 64 65 72 20 74     of paper under t
    5a41:	68 65 20 6e 6f 7a 7a 6c 65 20 64 75 72 69 6e 67     he nozzle during
    5a51:	20 74 68 65 20 63 61 6c 69 62 72 61 74 69 6f 6e      the calibration
    5a61:	20 6f 66 20 66 69 72 73 74 20 34 20 70 6f 69 6e      of first 4 poin
    5a71:	74 73 2e 20 49 66 20 74 68 65 20 6e 6f 7a 7a 6c     ts. If the nozzl
    5a81:	65 20 63 61 74 63 68 65 73 20 74 68 65 20 70 61     e catches the pa
    5a91:	70 65 72 2c 20 70 6f 77 65 72 20 6f 66 66 20 74     per, power off t
    5aa1:	68 65 20 70 72 69 6e 74 65 72 20 69 6d 6d 65 64     he printer immed
    5ab1:	69 61 74 65 6c 79 2e 00                             iately..

00005ab9 <MSG_FIND_BED_OFFSET_AND_SKEW_LINE1>:
    5ab9:	ff ff 53 65 61 72 63 68 69 6e 67 20 62 65 64 20     ..Searching bed 
    5ac9:	63 61 6c 69 62 72 61 74 69 6f 6e 20 70 6f 69 6e     calibration poin
    5ad9:	74 00                                               t.

00005adb <MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1>:
    5adb:	ff ff 4d 65 61 73 75 72 69 6e 67 20 72 65 66 65     ..Measuring refe
    5aeb:	72 65 6e 63 65 20 68 65 69 67 68 74 20 6f 66 20     rence height of 
    5afb:	63 61 6c 69 62 72 61 74 69 6f 6e 20 70 6f 69 6e     calibration poin
    5b0b:	74 00                                               t.

00005b0d <MSG_CONFIRM_NOZZLE_CLEAN>:
    5b0d:	ff ff 50 6c 65 61 73 65 20 63 6c 65 61 6e 20 74     ..Please clean t
    5b1d:	68 65 20 6e 6f 7a 7a 6c 65 20 66 6f 72 20 63 61     he nozzle for ca
    5b2d:	6c 69 62 72 61 74 69 6f 6e 2e 20 43 6c 69 63 6b     libration. Click
    5b3d:	20 77 68 65 6e 20 64 6f 6e 65 2e 00                  when done..

00005b49 <MSG_AUTO_HOME>:
    5b49:	ff ff 41 75 74 6f 20 68 6f 6d 65 00                 ..Auto home.

00005b55 <MSG_CUT_FILAMENT>:
    5b55:	ff ff 43 75 74 20 66 69 6c 61 6d 65 6e 74 00        ..Cut filament.

00005b64 <MSG_EJECT_FROM_MMU>:
    5b64:	ff ff 45 6a 65 63 74 20 66 72 6f 6d 20 4d 4d 55     ..Eject from MMU
	...

00005b75 <MSG_LOADING_FILAMENT>:
    5b75:	ff ff 4c 6f 61 64 69 6e 67 20 66 69 6c 61 6d 65     ..Loading filame
    5b85:	6e 74 00                                            nt.

00005b88 <MSG_MMU_RESTORE_TEMP>:
    5b88:	ff ff 4d 4d 55 20 52 65 74 72 79 3a 20 52 65 73     ..MMU Retry: Res
    5b98:	74 6f 72 69 6e 67 20 74 65 6d 70 65 72 61 74 75     toring temperatu
    5ba8:	72 65 2e 2e 2e 00                                   re....

00005bae <MSG_SORTING_FILES>:
    5bae:	ff ff 53 6f 72 74 69 6e 67 20 66 69 6c 65 73 00     ..Sorting files.

00005bbe <MSG_FILE_CNT>:
    5bbe:	ff ff 53 6f 6d 65 20 66 69 6c 65 73 20 77 69 6c     ..Some files wil
    5bce:	6c 20 6e 6f 74 20 62 65 20 73 6f 72 74 65 64 2e     l not be sorted.
    5bde:	20 4d 61 78 2e 20 4e 6f 2e 20 6f 66 20 66 69 6c      Max. No. of fil
    5bee:	65 73 20 69 6e 20 31 20 66 6f 6c 64 65 72 20 66     es in 1 folder f
    5bfe:	6f 72 20 73 6f 72 74 69 6e 67 20 69 73 20 31 30     or sorting is 10
    5c0e:	30 2e 00                                            0..

00005c11 <MSG_OFF>:
    5c11:	ff ff 4f 66 66 00                                   ..Off.

00005c17 <MSG_ON>:
    5c17:	ff ff 4f 6e 00                                      ..On.

00005c1c <MMU2::MSG_DESC_UNKNOWN_ERROR>:
    5c1c:	ff ff 55 6e 65 78 70 65 63 74 65 64 20 65 72 72     ..Unexpected err
    5c2c:	6f 72 20 6f 63 63 75 72 72 65 64 2e 00              or occurred..

00005c39 <MMU2::MSG_DESC_FILAMENT_CHANGE>:
    5c39:	ff ff 4d 36 30 30 20 46 69 6c 61 6d 65 6e 74 20     ..M600 Filament 
    5c49:	43 68 61 6e 67 65 2e 20 4c 6f 61 64 20 61 20 6e     Change. Load a n
    5c59:	65 77 20 66 69 6c 61 6d 65 6e 74 20 6f 72 20 65     ew filament or e
    5c69:	6a 65 63 74 20 74 68 65 20 6f 6c 64 20 6f 6e 65     ject the old one
    5c79:	2e 00                                               ..

00005c7b <MMU2::MSG_DESC_FILAMENT_EJECTED>:
    5c7b:	ff ff 52 65 6d 6f 76 65 20 74 68 65 20 65 6a 65     ..Remove the eje
    5c8b:	63 74 65 64 20 66 69 6c 61 6d 65 6e 74 20 66 72     cted filament fr
    5c9b:	6f 6d 20 74 68 65 20 66 72 6f 6e 74 20 6f 66 20     om the front of 
    5cab:	74 68 65 20 4d 4d 55 2e 00                          the MMU..

00005cb4 <MMU2::MSG_DESC_UNLOAD_MANUALLY>:
    5cb4:	ff ff 46 69 6c 61 6d 65 6e 74 20 64 65 74 65 63     ..Filament detec
    5cc4:	74 65 64 20 75 6e 65 78 70 65 63 74 65 64 6c 79     ted unexpectedly
    5cd4:	2e 20 45 6e 73 75 72 65 20 6e 6f 20 66 69 6c 61     . Ensure no fila
    5ce4:	6d 65 6e 74 20 69 73 20 6c 6f 61 64 65 64 2e 20     ment is loaded. 
    5cf4:	43 68 65 63 6b 20 74 68 65 20 73 65 6e 73 6f 72     Check the sensor
    5d04:	73 20 61 6e 64 20 77 69 72 69 6e 67 2e 00           s and wiring..

00005d12 <MMU2::MSG_DESC_FW_RUNTIME_ERROR>:
    5d12:	ff ff 49 6e 74 65 72 6e 61 6c 20 72 75 6e 74 69     ..Internal runti
    5d22:	6d 65 20 65 72 72 6f 72 2e 20 54 72 79 20 72 65     me error. Try re
    5d32:	73 65 74 74 69 6e 67 20 74 68 65 20 4d 4d 55 20     setting the MMU 
    5d42:	6f 72 20 75 70 64 61 74 69 6e 67 20 74 68 65 20     or updating the 
    5d52:	66 69 72 6d 77 61 72 65 2e 00                       firmware..

00005d5c <MMU2::MSG_DESC_FW_UPDATE_NEEDED>:
    5d5c:	ff ff 4d 4d 55 20 46 57 20 76 65 72 73 69 6f 6e     ..MMU FW version
    5d6c:	20 69 73 20 69 6e 63 6f 6d 70 61 74 69 62 6c 65      is incompatible
    5d7c:	20 77 69 74 68 20 70 72 69 6e 74 65 72 20 46 57      with printer FW
    5d8c:	2e 55 70 64 61 74 65 20 74 6f 20 76 65 72 73 69     .Update to versi
    5d9c:	6f 6e 20 33 2e 30 2e 33 2e 00                       on 3.0.3..

00005da6 <MMU2::MSG_DESC_QUEUE_FULL>:
    5da6:	ff ff 4d 4d 55 20 46 69 72 6d 77 61 72 65 20 69     ..MMU Firmware i
    5db6:	6e 74 65 72 6e 61 6c 20 65 72 72 6f 72 2c 20 70     nternal error, p
    5dc6:	6c 65 61 73 65 20 72 65 73 65 74 20 74 68 65 20     lease reset the 
    5dd6:	4d 4d 55 2e 00                                      MMU..

00005ddb <MMU2::MSG_DESC_INVALID_TOOL>:
    5ddb:	ff ff 52 65 71 75 65 73 74 65 64 20 66 69 6c 61     ..Requested fila
    5deb:	6d 65 6e 74 20 74 6f 6f 6c 20 69 73 20 6e 6f 74     ment tool is not
    5dfb:	20 61 76 61 69 6c 61 62 6c 65 20 6f 6e 20 74 68      available on th
    5e0b:	69 73 20 68 61 72 64 77 61 72 65 2e 20 43 68 65     is hardware. Che
    5e1b:	63 6b 20 74 68 65 20 47 2d 63 6f 64 65 20 66 6f     ck the G-code fo
    5e2b:	72 20 74 6f 6f 6c 20 69 6e 64 65 78 20 6f 75 74     r tool index out
    5e3b:	20 6f 66 20 72 61 6e 67 65 20 28 54 30 2d 54 34      of range (T0-T4
    5e4b:	29 2e 00                                            )..

00005e4e <MMU2::MSG_DESC_FILAMENT_ALREADY_LOADED>:
    5e4e:	ff ff 43 61 6e 6e 6f 74 20 70 65 72 66 6f 72 6d     ..Cannot perform
    5e5e:	20 74 68 65 20 61 63 74 69 6f 6e 2c 20 66 69 6c      the action, fil
    5e6e:	61 6d 65 6e 74 20 69 73 20 61 6c 72 65 61 64 79     ament is already
    5e7e:	20 6c 6f 61 64 65 64 2e 20 55 6e 6c 6f 61 64 20      loaded. Unload 
    5e8e:	69 74 20 66 69 72 73 74 2e 00                       it first..

00005e98 <MMU2::MSG_DESC_COMMUNICATION_ERROR>:
    5e98:	ff ff 4d 4d 55 20 6e 6f 74 20 72 65 73 70 6f 6e     ..MMU not respon
    5ea8:	64 69 6e 67 20 63 6f 72 72 65 63 74 6c 79 2e 20     ding correctly. 
    5eb8:	43 68 65 63 6b 20 74 68 65 20 77 69 72 69 6e 67     Check the wiring
    5ec8:	20 61 6e 64 20 63 6f 6e 6e 65 63 74 6f 72 73 2e      and connectors.
	...

00005ed9 <MMU2::MSG_DESC_MMU_NOT_RESPONDING>:
    5ed9:	ff ff 4d 4d 55 20 6e 6f 74 20 72 65 73 70 6f 6e     ..MMU not respon
    5ee9:	64 69 6e 67 2e 20 43 68 65 63 6b 20 74 68 65 20     ding. Check the 
    5ef9:	77 69 72 69 6e 67 20 61 6e 64 20 63 6f 6e 6e 65     wiring and conne
    5f09:	63 74 6f 72 73 2e 00                                ctors..

00005f10 <MMU2::MSG_DESC_TMC>:
    5f10:	ff ff 4d 6f 72 65 20 64 65 74 61 69 6c 73 20 6f     ..More details o
    5f20:	6e 6c 69 6e 65 2e 00                                nline..

00005f27 <MMU2::MSG_DESC_IDLER_CANNOT_HOME>:
    5f27:	ff ff 54 68 65 20 49 64 6c 65 72 20 63 61 6e 6e     ..The Idler cann
    5f37:	6f 74 20 68 6f 6d 65 20 70 72 6f 70 65 72 6c 79     ot home properly
    5f47:	2e 20 43 68 65 63 6b 20 66 6f 72 20 61 6e 79 74     . Check for anyt
    5f57:	68 69 6e 67 20 62 6c 6f 63 6b 69 6e 67 20 69 74     hing blocking it
    5f67:	73 20 6d 6f 76 65 6d 65 6e 74 2e 00                 s movement..

00005f73 <MMU2::MSG_DESC_CANNOT_MOVE>:
    5f73:	ff ff 43 61 6e 27 74 20 6d 6f 76 65 20 53 65 6c     ..Can't move Sel
    5f83:	65 63 74 6f 72 20 6f 72 20 49 64 6c 65 72 2e 00     ector or Idler..

00005f93 <MMU2::MSG_DESC_SELECTOR_CANNOT_HOME>:
    5f93:	ff ff 54 68 65 20 53 65 6c 65 63 74 6f 72 20 63     ..The Selector c
    5fa3:	61 6e 6e 6f 74 20 68 6f 6d 65 20 70 72 6f 70 65     annot home prope
    5fb3:	72 6c 79 2e 20 43 68 65 63 6b 20 66 6f 72 20 61     rly. Check for a
    5fc3:	6e 79 74 68 69 6e 67 20 62 6c 6f 63 6b 69 6e 67     nything blocking
    5fd3:	20 69 74 73 20 6d 6f 76 65 6d 65 6e 74 2e 00         its movement..

00005fe2 <MMU2::MSG_DESC_LOAD_TO_EXTRUDER_FAILED>:
    5fe2:	ff ff 4c 6f 61 64 69 6e 67 20 74 6f 20 65 78 74     ..Loading to ext
    5ff2:	72 75 64 65 72 20 66 61 69 6c 65 64 2e 20 49 6e     ruder failed. In
    6002:	73 70 65 63 74 20 74 68 65 20 66 69 6c 61 6d 65     spect the filame
    6012:	6e 74 20 74 69 70 20 73 68 61 70 65 2e 20 52 65     nt tip shape. Re
    6022:	66 69 6e 65 20 74 68 65 20 73 65 6e 73 6f 72 20     fine the sensor 
    6032:	63 61 6c 69 62 72 61 74 69 6f 6e 2c 20 69 66 20     calibration, if 
    6042:	6e 65 65 64 65 64 2e 00                             needed..

0000604a <MMU2::MSG_DESC_INSPECT_FINDA>:
    604a:	ff ff 53 65 6c 65 63 74 6f 72 20 63 61 6e 27 74     ..Selector can't
    605a:	20 6d 6f 76 65 20 64 75 65 20 74 6f 20 46 49 4e      move due to FIN
    606a:	44 41 20 64 65 74 65 63 74 69 6e 67 20 61 20 66     DA detecting a f
    607a:	69 6c 61 6d 65 6e 74 2e 20 4d 61 6b 65 20 73 75     ilament. Make su
    608a:	72 65 20 6e 6f 20 66 69 6c 61 6d 65 6e 74 20 69     re no filament i
    609a:	73 20 69 6e 20 53 65 6c 65 63 74 6f 72 20 61 6e     s in Selector an
    60aa:	64 20 46 49 4e 44 41 20 77 6f 72 6b 73 20 70 72     d FINDA works pr
    60ba:	6f 70 65 72 6c 79 2e 00                             operly..

000060c2 <MMU2::MSG_DESC_FSENSOR_TOO_EARLY>:
    60c2:	ff ff 46 69 6c 61 6d 65 6e 74 20 73 65 6e 73 6f     ..Filament senso
    60d2:	72 20 74 72 69 67 67 65 72 65 64 20 74 6f 6f 20     r triggered too 
    60e2:	65 61 72 6c 79 20 77 68 69 6c 65 20 6c 6f 61 64     early while load
    60f2:	69 6e 67 20 74 6f 20 65 78 74 72 75 64 65 72 2e     ing to extruder.
    6102:	20 43 68 65 63 6b 20 74 68 65 72 65 20 69 73 6e      Check there isn
    6112:	27 74 20 61 6e 79 74 68 69 6e 67 20 73 74 75 63     't anything stuc
    6122:	6b 20 69 6e 20 50 54 46 45 20 74 75 62 65 2e 20     k in PTFE tube. 
    6132:	43 68 65 63 6b 20 74 68 61 74 20 73 65 6e 73 6f     Check that senso
    6142:	72 20 72 65 61 64 73 20 70 72 6f 70 65 72 6c 79     r reads properly
    6152:	2e 00                                               ..

00006154 <MMU2::MSG_DESC_PULLEY_CANNOT_MOVE>:
    6154:	ff ff 50 75 6c 6c 65 79 20 6d 6f 74 6f 72 20 73     ..Pulley motor s
    6164:	74 61 6c 6c 65 64 2e 20 45 6e 73 75 72 65 20 74     talled. Ensure t
    6174:	68 65 20 70 75 6c 6c 65 79 20 63 61 6e 20 6d 6f     he pulley can mo
    6184:	76 65 20 61 6e 64 20 63 68 65 63 6b 20 74 68 65     ve and check the
    6194:	20 77 69 72 69 6e 67 2e 00                           wiring..

0000619d <MMU2::MSG_DESC_FSENSOR_FILAMENT_STUCK>:
    619d:	ff ff 46 69 6c 61 6d 65 6e 74 20 73 65 6e 73 6f     ..Filament senso
    61ad:	72 20 64 69 64 6e 27 74 20 73 77 69 74 63 68 20     r didn't switch 
    61bd:	6f 66 66 20 77 68 69 6c 65 20 75 6e 6c 6f 61 64     off while unload
    61cd:	69 6e 67 20 66 69 6c 61 6d 65 6e 74 2e 20 45 6e     ing filament. En
    61dd:	73 75 72 65 20 66 69 6c 61 6d 65 6e 74 20 63 61     sure filament ca
    61ed:	6e 20 6d 6f 76 65 20 61 6e 64 20 74 68 65 20 73     n move and the s
    61fd:	65 6e 73 6f 72 20 77 6f 72 6b 73 2e 00              ensor works..

0000620a <MMU2::MSG_DESC_FSENSOR_DIDNT_TRIGGER>:
    620a:	ff ff 46 69 6c 61 6d 65 6e 74 20 73 65 6e 73 6f     ..Filament senso
    621a:	72 20 64 69 64 6e 27 74 20 74 72 69 67 67 65 72     r didn't trigger
    622a:	20 77 68 69 6c 65 20 6c 6f 61 64 69 6e 67 20 74      while loading t
    623a:	68 65 20 66 69 6c 61 6d 65 6e 74 2e 20 45 6e 73     he filament. Ens
    624a:	75 72 65 20 74 68 65 20 73 65 6e 73 6f 72 20 69     ure the sensor i
    625a:	73 20 63 61 6c 69 62 72 61 74 65 64 20 61 6e 64     s calibrated and
    626a:	20 74 68 65 20 66 69 6c 61 6d 65 6e 74 20 72 65      the filament re
    627a:	61 63 68 65 64 20 69 74 2e 00                       ached it..

00006284 <MMU2::MSG_DESC_FINDA_FILAMENT_STUCK>:
    6284:	ff ff 46 49 4e 44 41 20 64 69 64 6e 27 74 20 73     ..FINDA didn't s
    6294:	77 69 74 63 68 20 6f 66 66 20 77 68 69 6c 65 20     witch off while 
    62a4:	75 6e 6c 6f 61 64 69 6e 67 20 66 69 6c 61 6d 65     unloading filame
    62b4:	6e 74 2e 20 54 72 79 20 75 6e 6c 6f 61 64 69 6e     nt. Try unloadin
    62c4:	67 20 6d 61 6e 75 61 6c 6c 79 2e 20 45 6e 73 75     g manually. Ensu
    62d4:	72 65 20 66 69 6c 61 6d 65 6e 74 20 63 61 6e 20     re filament can 
    62e4:	6d 6f 76 65 20 61 6e 64 20 46 49 4e 44 41 20 77     move and FINDA w
    62f4:	6f 72 6b 73 2e 00                                   orks..

000062fa <MMU2::MSG_DESC_FINDA_DIDNT_TRIGGER>:
    62fa:	ff ff 46 49 4e 44 41 20 64 69 64 6e 27 74 20 74     ..FINDA didn't t
    630a:	72 69 67 67 65 72 20 77 68 69 6c 65 20 6c 6f 61     rigger while loa
    631a:	64 69 6e 67 20 74 68 65 20 66 69 6c 61 6d 65 6e     ding the filamen
    632a:	74 2e 20 45 6e 73 75 72 65 20 74 68 65 20 66 69     t. Ensure the fi
    633a:	6c 61 6d 65 6e 74 20 63 61 6e 20 6d 6f 76 65 20     lament can move 
    634a:	61 6e 64 20 46 49 4e 44 41 20 77 6f 72 6b 73 2e     and FINDA works.
	...

0000635b <MMU2::MSG_BTN_DISABLE_MMU>:
    635b:	ff ff 44 69 73 61 62 6c 65 00                       ..Disable.

00006365 <MMU2::MSG_BTN_STOP>:
    6365:	ff ff 53 74 6f 70 00                                ..Stop.

0000636c <MMU2::MSG_BTN_LOAD>:
    636c:	ff ff 4c 6f 61 64 00                                ..Load.

00006373 <MMU2::MSG_BTN_UNLOAD>:
    6373:	ff ff 55 6e 6c 6f 61 64 00                          ..Unload.

0000637c <MMU2::MSG_BTN_RESET_MMU>:
    637c:	ff ff 52 65 73 65 74 4d 4d 55 00                    ..ResetMMU.

00006387 <MMU2::MSG_BTN_RETRY>:
    6387:	ff ff 52 65 74 72 79 00                             ..Retry.

0000638f <MSG_BED_LEVELING_FAILED_POINT_LOW>:
    638f:	ff ff 42 65 64 20 6c 65 76 65 6c 69 6e 67 20 66     ..Bed leveling f
    639f:	61 69 6c 65 64 2e 20 53 65 6e 73 6f 72 20 64 69     ailed. Sensor di
    63af:	64 6e 27 74 20 74 72 69 67 67 65 72 2e 20 44 65     dn't trigger. De
    63bf:	62 72 69 73 20 6f 6e 20 6e 6f 7a 7a 6c 65 3f 20     bris on nozzle? 
    63cf:	57 61 69 74 69 6e 67 20 66 6f 72 20 72 65 73 65     Waiting for rese
    63df:	74 2e 00                                            t..

000063e2 <MSG_MMU_SENSITIVITY>:
    63e2:	ff ff 53 65 6e 73 69 74 69 76 69 74 79 00           ..Sensitivity.

000063f0 <MSG_DONE>:
    63f0:	ff ff 44 6f 6e 65 00                                ..Done.

000063f7 <__loc_pri_end>:
    63f7:	65 6e       	ori	r22, 0xE5	; 229
    63f9:	71 75       	andi	r23, 0x51	; 81
    63fb:	65 69       	ori	r22, 0x95	; 149
    63fd:	6e 67       	ori	r22, 0x7E	; 126
    63ff:	20 22       	and	r2, r16
	...

00006402 <get_command()::__c>:
    6402:	44 6f 6e 65 20 70 72 69 6e 74 69 6e 67 20 66 69     Done printing fi
    6412:	6c 65 00                                            le.

00006415 <get_command()::__c>:
    6415:	4e 6f 20 4c 69 6e 65 20 4e 75 6d 62 65 72 20 77     No Line Number w
    6425:	69 74 68 20 63 68 65 63 6b 73 75 6d 2c 20 4c 61     ith checksum, La
    6435:	73 74 20 4c 69 6e 65 3a 20 00                       st Line: .

0000643f <get_command()::__c>:
    643f:	4e 6f 20 43 68 65 63 6b 73 75 6d 20 77 69 74 68     No Checksum with
    644f:	20 6c 69 6e 65 20 6e 75 6d 62 65 72 2c 20 4c 61      line number, La
    645f:	73 74 20 4c 69 6e 65 3a 20 00                       st Line: .

00006469 <get_command()::__c>:
    6469:	63 68 65 63 6b 73 75 6d 20 6d 69 73 6d 61 74 63     checksum mismatc
    6479:	68 2c 20 4c 61 73 74 20 4c 69 6e 65 3a 20 00        h, Last Line: .

00006488 <get_command()::__c>:
    6488:	4c 69 6e 65 20 4e 75 6d 62 65 72 20 69 73 20 6e     Line Number is n
    6498:	6f 74 20 4c 61 73 74 20 4c 69 6e 65 20 4e 75 6d     ot Last Line Num
    64a8:	62 65 72 2b 31 2c 20 4c 61 73 74 20 4c 69 6e 65     ber+1, Last Line
    64b8:	3a 20 00                                            : .

000064bb <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)::__c>:
    64bb:	25 6c 75 20 62 79 74 65 73 20 77 72 69 74 74 65     %lu bytes writte
    64cb:	6e 20 74 6f 20 25 53 20 61 74 20 61 64 64 72 65     n to %S at addre
    64db:	73 73 20 30 78 25 30 34 6c 78 0a 00                 ss 0x%04lx..

000064e7 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)::__c>:
    64e7:	44 25 64 20 2d 20 52 65 61 64 2f 57 72 69 74 65     D%d - Read/Write
    64f7:	20 25 53 0a 00                                       %S..

000064fc <__c.2368>:
    64fc:	3f 3f 00                                            ??.

000064ff <__c.2366>:
    64ff:	52 6f 6d 61 6e 61 00                                Romana.

00006506 <__c.2363>:
    6506:	48 72 76 61 74 73 6b 69 00                          Hrvatski.

0000650f <__c.2360>:
    650f:	4d 61 67 79 61 72 00                                Magyar.

00006516 <__c.2357>:
    6516:	53 6c 6f 76 65 6e 63 69 6e 61 00                    Slovencina.

00006521 <__c.2354>:
    6521:	4e 6f 72 73 6b 00                                   Norsk.

00006527 <__c.2351>:
    6527:	53 76 65 6e 73 6b 61 00                             Svenska.

0000652f <__c.2348>:
    652f:	4e 65 64 65 72 6c 61 6e 64 73 00                    Nederlands.

0000653a <__c.2345>:
    653a:	50 6f 6c 73 6b 69 00                                Polski.

00006541 <__c.2342>:
    6541:	49 74 61 6c 69 61 6e 6f 00                          Italiano.

0000654a <__c.2339>:
    654a:	46 72 61 6e 63 61 69 73 00                          Francais.

00006553 <__c.2336>:
    6553:	45 73 70 61 6e 6f 6c 00                             Espanol.

0000655b <__c.2333>:
    655b:	44 65 75 74 73 63 68 00                             Deutsch.

00006563 <__c.2330>:
    6563:	43 65 73 74 69 6e 61 00                             Cestina.

0000656b <__c.2327>:
    656b:	45 6e 67 6c 69 73 68 00                             English.

00006573 <gcode_M114()::__c>:
    6573:	20 43 6f 75 6e 74 20 58 3a 20 00                     Count X: .

0000657e <gcode_M123()::__c>:
    657e:	45 30 3a 25 64 20 52 50 4d 20 50 52 4e 31 3a 25     E0:%d RPM PRN1:%
    658e:	64 20 52 50 4d 20 45 30 40 3a 25 75 20 50 52 4e     d RPM E0@:%u PRN
    659e:	31 40 3a 25 75 0a 00                                1@:%u..

000065a5 <FlushSerialRequestResend()::__c>:
    65a5:	52 65 73 65 6e 64 00                                Resend.

000065ac <FlushSerialRequestResend()::__c>:
    65ac:	25 53 3a 20 25 6c 64 0a 25 53 0a 00                 %S: %ld.%S..

000065b8 <MSG_HOST_ACTION_NOTIFICATION>:
    65b8:	2f 2f 61 63 74 69 6f 6e 3a 6e 6f 74 69 66 69 63     //action:notific
    65c8:	61 74 69 6f 6e 20 25 53 0a 00                       ation %S..

000065d2 <MSG_FILAMENT_RUNOUT_DETECTED>:
    65d2:	46 69 6c 61 6d 65 6e 74 20 72 75 6e 6f 75 74 20     Filament runout 
    65e2:	64 65 74 65 63 74 65 64 21 00                       detected!.

000065ec <MSG_ERR_STOPPED>:
    65ec:	50 72 69 6e 74 65 72 20 73 74 6f 70 70 65 64 20     Printer stopped 
    65fc:	64 75 65 20 74 6f 20 65 72 72 6f 72 73 2e 20 53     due to errors. S
    660c:	75 70 65 72 76 69 73 69 6f 6e 20 72 65 71 75 69     upervision requi
    661c:	72 65 64 2e 00                                      red..

00006621 <dcode_22()::__c>:
    6621:	64 75 6d 70 20 63 6c 65 61 72 65 64 0a 00           dump cleared..

0000662f <dcode_22()::__c>:
    662f:	6e 6f 20 64 75 6d 70 20 61 76 61 69 6c 61 62 6c     no dump availabl
    663f:	65 0a 00                                            e..

00006642 <dcode_21()::__c>:
    6642:	44 32 31 20 2d 20 72 65 61 64 20 63 72 61 73 68     D21 - read crash
    6652:	20 64 75 6d 70 0a 00                                 dump..

00006659 <dcode_21()::__c>:
    6659:	6e 6f 20 64 75 6d 70 20 61 76 61 69 6c 61 62 6c     no dump availabl
    6669:	65 0a 00                                            e..

0000666c <dcode_20()::__c>:
    666c:	64 75 6d 70 20 63 6f 6d 70 6c 65 74 65 64 20 69     dump completed i
    667c:	6e 20 25 6c 75 6d 73 0a 00                          n %lums..

00006685 <dcode_6()::__c>:
    6685:	58 46 4c 41 53 48 00                                XFLASH.

0000668c <dcode_3()::__c>:
    668c:	45 45 50 52 4f 4d 00                                EEPROM.

00006693 <dcode_2()::__c>:
    6693:	53 52 41 4d 00                                      SRAM.

00006698 <dcode__1()::__c>:
    6698:	44 2d 31 20 2d 20 45 6e 64 6c 65 73 73 20 6c 6f     D-1 - Endless lo
    66a8:	6f 70 0a 00                                         op..

000066ac <TCodes(char*, unsigned char)::__c>:
    66ac:	41 63 74 69 76 65 20 45 78 74 72 75 64 65 72 3a     Active Extruder:
    66bc:	20 30 00                                             0.

000066bf <TCodes(char*, unsigned char)::__c>:
    66bf:	49 6e 76 61 6c 69 64 20 65 78 74 72 75 64 65 72     Invalid extruder
	...

000066d0 <tmc2130_print_currents()::__c>:
    66d0:	74 6d 63 32 31 33 30 5f 70 72 69 6e 74 5f 63 75     tmc2130_print_cu
    66e0:	72 72 65 6e 74 73 28 29 0a 09 48 09 52 0a 58 09     rrents()..H.R.X.
    66f0:	25 64 09 25 64 0a 59 09 25 64 09 25 64 0a 5a 09     %d.%d.Y.%d.%d.Z.
    6700:	25 64 09 25 64 0a 45 09 25 64 09 25 64 0a 00        %d.%d.E.%d.%d..

0000670f <CardReader::getStatus(bool)::__c>:
    670f:	53 44 20 70 72 69 6e 74 69 6e 67 20 62 79 74 65     SD printing byte
    671f:	20 00                                                .

00006721 <MSG_UNKNOWN_COMMAND>:
    6721:	55 6e 6b 6e 6f 77 6e 20 63 6f 6d 6d 61 6e 64 3a     Unknown command:
    6731:	20 22 00                                             ".

00006734 <_ZZ16process_commandsvE3__c__65_>:
    6734:	4d 32 30 30 20 49 6e 76 61 6c 69 64 20 65 78 74     M200 Invalid ext
    6744:	72 75 64 65 72 20 00                                ruder .

0000674b <MSG_Z_MAX>:
    674b:	7a 5f 6d 61 78 3a 20 00                             z_max: .

00006753 <MSG_Z_MIN>:
    6753:	7a 5f 6d 69 6e 3a 20 00                             z_min: .

0000675b <_ZZ16process_commandsvE3__c__64_>:
    675b:	79 5f 6d 61 78 3a 20 00                             y_max: .

00006763 <_ZZ16process_commandsvE3__c__63_>:
    6763:	79 5f 6d 69 6e 3a 20 00                             y_min: .

0000676b <_ZZ16process_commandsvE3__c__62_>:
    676b:	78 5f 6d 61 78 3a 20 00                             x_max: .

00006773 <MSG_ENDSTOP_HIT>:
    6773:	54 52 49 47 47 45 52 45 44 00                       TRIGGERED.

0000677d <MSG_ENDSTOP_OPEN>:
    677d:	6f 70 65 6e 00                                      open.

00006782 <_ZZ16process_commandsvE3__c__61_>:
    6782:	78 5f 6d 69 6e 3a 20 00                             x_min: .

0000678a <_ZZ16process_commandsvE3__c__60_>:
    678a:	52 65 70 6f 72 74 69 6e 67 20 65 6e 64 73 74 6f     Reporting endsto
    679a:	70 20 73 74 61 74 75 73 00                          p status.

000067a3 <MSG_M112_KILL>:
    67a3:	4d 31 31 32 20 63 61 6c 6c 65 64 2e 20 45 6d 65     M112 called. Eme
    67b3:	72 67 65 6e 63 79 20 53 74 6f 70 2e 00              rgency Stop..

000067c0 <MSG_HOST_ACTION_UVLO_RECOVERY_READY>:
    67c0:	2f 2f 61 63 74 69 6f 6e 3a 75 76 6c 6f 5f 72 65     //action:uvlo_re
    67d0:	63 6f 76 65 72 79 5f 72 65 61 64 79 00              covery_ready.

000067dd <MSG_HOST_ACTION_UVLO_AUTO_RECOVERY_READY>:
    67dd:	2f 2f 61 63 74 69 6f 6e 3a 75 76 6c 6f 5f 61 75     //action:uvlo_au
    67ed:	74 6f 5f 72 65 63 6f 76 65 72 79 5f 72 65 61 64     to_recovery_read
    67fd:	79 00                                               y.

000067ff <_ZZ16process_commandsvE3__c__46_>:
    67ff:	25 53 3a 25 6c 75 20 63 6d 0a 25 53 3a 25 6c 75     %S:%lu cm.%S:%lu
    680f:	20 6d 69 6e 0a 00                                    min..

00006815 <_ZZ16process_commandsvE3__c__45_>:
    6815:	53 49 4c 45 4e 54 00                                SILENT.

0000681c <_ZZ16process_commandsvE3__c__44_>:
    681c:	4e 4f 52 4d 41 4c 00                                NORMAL.

00006823 <_ZZ16process_commandsvE3__c__43_>:
    6823:	25 53 20 4d 4f 44 45 3a 20 50 65 72 63 65 6e 74     %S MODE: Percent
    6833:	20 64 6f 6e 65 3a 20 25 68 68 64 3b 20 70 72 69      done: %hhd; pri
    6843:	6e 74 20 74 69 6d 65 20 72 65 6d 61 69 6e 69 6e     nt time remainin
    6853:	67 20 69 6e 20 6d 69 6e 73 3a 20 25 64 3b 20 43     g in mins: %d; C
    6863:	68 61 6e 67 65 20 69 6e 20 6d 69 6e 73 3a 20 25     hange in mins: %
    6873:	64 0a 00                                            d..

00006876 <_ZZ16process_commandsvE3__c__42_>:
    6876:	50 72 69 6e 74 65 72 53 74 61 74 65 3a 20 25 64     PrinterState: %d
    6886:	0a 00                                               ..

00006888 <_ZZ16process_commandsvE3__c__38_>:
    6888:	45 6e 64 20 66 69 6c 65 20 6c 69 73 74 00           End file list.

00006896 <_ZZ16process_commandsvE3__c__37_>:
    6896:	42 65 67 69 6e 20 66 69 6c 65 20 6c 69 73 74 00     Begin file list.

000068a6 <MSG_UNKNOWN_CODE>:
    68a6:	55 6e 6b 6e 6f 77 6e 20 25 63 20 63 6f 64 65 3a     Unknown %c code:
    68b6:	20 25 73 0a 00                                       %s..

000068bb <_ZZ16process_commandsvE3__c__35_>:
    68bb:	0a 50 49 4e 44 41 20 74 65 6d 70 65 72 61 74 75     .PINDA temperatu
    68cb:	72 65 3a 20 25 2e 31 66 20 5a 20 73 68 69 66 74     re: %.1f Z shift
    68db:	20 28 6d 6d 29 3a 20 25 2e 33 66 00                  (mm): %.3f.

000068e7 <_ZZ16process_commandsvE3__c__34_>:
    68e7:	0a 53 74 65 70 3a 20 25 64 2f 36 0a 00              .Step: %d/6..

000068f4 <_ZZ16process_commandsvE3__c__33_>:
    68f4:	0a 53 74 65 70 3a 20 25 64 2f 36 20 28 73 6b 69     .Step: %d/6 (ski
    6904:	70 70 65 64 29 0a 50 49 4e 44 41 20 74 65 6d 70     pped).PINDA temp
    6914:	65 72 61 74 75 72 65 3a 20 25 64 20 5a 20 73 68     erature: %d Z sh
    6924:	69 66 74 20 28 6d 6d 29 3a 30 0a 00                 ift (mm):0..

00006930 <_ZZ16process_commandsvE3__c__32_>:
    6930:	0a 5a 45 52 4f 3a 20 25 2e 33 66 0a 00              .ZERO: %.3f..

0000693d <_ZZ16process_commandsvE3__c__31_>:
    693d:	73 74 61 72 74 20 74 65 6d 70 65 72 61 74 75 72     start temperatur
    694d:	65 3a 20 25 2e 31 66 0a 00                          e: %.1f..

00006956 <_ZZ16process_commandsvE3__c__28_>:
    6956:	25 64 20 20 25 2e 32 66 00                          %d  %.2f.

0000695f <_ZZ16process_commandsvE3__c__27_>:
    695f:	25 53 20 58 3a 20 25 2e 35 66 20 59 3a 20 25 2e     %S X: %.5f Y: %.
    696f:	35 66 20 5a 3a 20 25 2e 35 66 0a 00                 5f Z: %.5f..

0000697b <_ZZ16process_commandsvE3__c__26_>:
    697b:	53 6c 65 65 70 2e 2e 2e 00                          Sleep....

00006984 <_ZZ16process_commandsvE3__c__10_>:
    6984:	45 30 3a 25 64 20 52 50 4d 0a 50 52 4e 30 3a 25     E0:%d RPM.PRN0:%
    6994:	64 20 52 50 4d 0a 00                                d RPM..

0000699b <MSG_G90>:
    699b:	47 39 30 00                                         G90.

0000699f <MSG_M107>:
    699f:	4d 31 30 37 00                                      M107.

000069a4 <lcd_show_sensors_state()::__c>:
    69a4:	42 3a 20 25 33 64 20 20 20 20 20 58 64 3a 25 36     B: %3d     Xd:%6
    69b4:	64 0a 53 3a 20 25 33 64 20 20 20 20 20 59 64 3a     d.S: %3d     Yd:
    69c4:	25 36 64 00                                         %6d.

000069c8 <lcd_show_sensors_state()::__c>:
    69c8:	46 49 4e 44 41 00                                   FINDA.

000069ce <MSG_PINDA>:
    69ce:	50 49 4e 44 41 00                                   PINDA.

000069d4 <lcd_wizard(WizState)::__c>:
    69d4:	57 69 7a 61 72 64 20 65 6e 64 20 73 74 61 74 65     Wizard end state
    69e4:	3a 20 25 64 0a 00                                   : %d..

000069ea <MSG_SPOOL_JOIN>:
    69ea:	53 70 6f 6f 6c 4a 6f 69 6e 00                       SpoolJoin.

000069f4 <MSG_FIRMWARE>:
    69f4:	46 69 72 6d 77 61 72 65 00                          Firmware.

000069fd <lcd_settings_menu()::__c>:
    69fd:	48 42 65 64 20 6f 6e 20 6c 6f 61 64 00              HBed on load.

00006a0a <MSG_TOSHIBA_FLASH_AIR_COMPATIBILITY>:
    6a0a:	46 6c 61 73 68 41 69 72 00                          FlashAir.

00006a13 <lcd_calibration_menu()::__c>:
    6a13:	54 68 65 72 6d 61 6c 20 4d 6f 64 65 6c 20 63 61     Thermal Model ca
    6a23:	6c 2e 00                                            l..

00006a26 <MSG_FANCHECK_PRINT>:
    6a26:	45 72 72 3a 50 52 49 4e 54 20 46 41 4e 20 45 52     Err:PRINT FAN ER
    6a36:	52 4f 52 00                                         ROR.

00006a3a <MSG_FANCHECK_HOTEND>:
    6a3a:	45 72 72 3a 48 4f 54 45 4e 44 20 46 41 4e 20 45     Err:HOTEND FAN E
    6a4a:	52 52 4f 52 00                                      RROR.

00006a4f <MSG_HOST_ACTION_RESUMED>:
    6a4f:	2f 2f 61 63 74 69 6f 6e 3a 72 65 73 75 6d 65 64     //action:resumed
	...

00006a60 <MSG_HOST_ACTION_ASK_RESUME>:
    6a60:	2f 2f 61 63 74 69 6f 6e 3a 72 65 73 75 6d 65 00     //action:resume.

00006a70 <MSG_HOST_ACTION_READY>:
    6a70:	2f 2f 61 63 74 69 6f 6e 3a 72 65 61 64 79 00        //action:ready.

00006a7f <MSG_HOST_ACTION_NOT_READY>:
    6a7f:	2f 2f 61 63 74 69 6f 6e 3a 6e 6f 74 5f 72 65 61     //action:not_rea
    6a8f:	64 79 00                                            dy.

00006a92 <MSG_HOST_ACTION_CANCEL>:
    6a92:	2f 2f 61 63 74 69 6f 6e 3a 63 61 6e 63 65 6c 00     //action:cancel.

00006aa2 <MSG_M84>:
    6aa2:	4d 38 34 00                                         M84.

00006aa6 <lcd_selfcheck_axis_sg(unsigned char)::__c>:
    6aa6:	41 78 69 73 20 6c 65 6e 67 74 68 20 64 69 66 66     Axis length diff
    6ab6:	65 72 65 6e 63 65 3a 25 2e 33 66 0a 00              erence:%.3f..

00006ac3 <lcd_selfcheck_axis_sg(unsigned char)::__c>:
    6ac3:	4d 65 61 73 75 72 65 64 20 61 78 69 73 20 6c 65     Measured axis le
    6ad3:	6e 67 74 68 3a 25 2e 33 66 0a 00                    ngth:%.3f..

00006ade <MSG_OK_CAPS>:
    6ade:	4f 4b 00                                            OK.

00006ae1 <MSG_LCD_STATUS_CHANGED>:
    6ae1:	4c 43 44 20 73 74 61 74 75 73 20 63 68 61 6e 67     LCD status chang
    6af1:	65 64 00                                            ed.

00006af4 <_ZZN10CardReader7releaseEvE3__c.lto_priv.536>:
    6af4:	53 44 20 63 61 72 64 20 72 65 6c 65 61 73 65 64     SD card released
	...

00006b05 <lcd_experimental_menu()::__c>:
    6b05:	46 61 6b 65 20 73 65 72 69 61 6c 20 6e 75 6d 62     Fake serial numb
    6b15:	65 72 00                                            er.

00006b18 <lcd_experimental_menu()::__c>:
    6b18:	45 2d 63 6f 6f 6c 20 6d 6f 64 65 00                 E-cool mode.

00006b24 <MSG_HOST_ACTION_START>:
    6b24:	2f 2f 61 63 74 69 6f 6e 3a 73 74 61 72 74 00        //action:start.

00006b33 <MSG_G91>:
    6b33:	47 39 31 00                                         G91.

00006b37 <MSG_M702>:
    6b37:	4d 37 30 32 00                                      M702.

00006b3c <MSG_M83>:
    6b3c:	4d 38 33 00                                         M83.

00006b40 <G28W>:
    6b40:	47 32 38 20 57 00                                   G28 W.

00006b46 <MSG_M500>:
    6b46:	4d 35 30 30 00                                      M500.

00006b4b <xflash_err_msg()::__c>:
    6b4b:	45 78 74 65 72 6e 61 6c 20 53 50 49 20 66 6c 61     External SPI fla
    6b5b:	73 68 0a 58 46 4c 41 53 48 20 69 73 20 6e 6f 74     sh.XFLASH is not
    6b6b:	20 72 65 73 2d 0a 70 6f 6e 64 69 6e 67 2e 20 4c      res-.ponding. L
    6b7b:	61 6e 67 75 61 67 65 0a 73 77 69 74 63 68 20 75     anguage.switch u
    6b8b:	6e 61 76 61 69 6c 61 62 6c 65 2e 00                 navailable..

00006b97 <xflash_err_msg()::__c>:
    6b97:	58 46 4c 41 53 48 20 6e 6f 74 20 72 65 73 70 6f     XFLASH not respo
    6ba7:	6e 64 69 6e 67 2e 00                                nding..

00006bae <fw_crash_init()::__c>:
    6bae:	46 57 20 63 72 61 73 68 20 64 65 74 65 63 74 65     FW crash detecte
    6bbe:	64 21 20 59 6f 75 20 63 61 6e 20 63 6f 6e 74 69     d! You can conti
    6bce:	6e 75 65 20 70 72 69 6e 74 69 6e 67 2e 20 44 65     nue printing. De
    6bde:	62 75 67 20 64 61 74 61 20 61 76 61 69 6c 61 62     bug data availab
    6bee:	6c 65 20 66 6f 72 20 61 6e 61 6c 79 73 69 73 2e     le for analysis.
    6bfe:	20 43 6f 6e 74 61 63 74 20 73 75 70 70 6f 72 74      Contact support
    6c0e:	20 74 6f 20 73 75 62 6d 69 74 20 64 65 74 61 69      to submit detai
    6c1e:	6c 73 2e 00                                         ls..

00006c22 <fw_crash_init()::__c>:
    6c22:	2f 2f 61 63 74 69 6f 6e 3a 64 75 6d 70 5f 61 76     //action:dump_av
    6c32:	61 69 6c 61 62 6c 65 00                             ailable.

00006c3a <_ZZ5setupE3__c__11_>:
    6c3a:	43 72 61 73 68 44 65 74 65 63 74 20 44 49 53 41     CrashDetect DISA
    6c4a:	42 4c 45 44 00                                      BLED.

00006c4f <_ZZ5setupE3__c__10_>:
    6c4f:	43 72 61 73 68 44 65 74 65 63 74 20 45 4e 41 42     CrashDetect ENAB
    6c5f:	4c 45 44 21 00                                      LED!.

00006c64 <setup::__c>:
    6c64:	20 20 50 6c 61 6e 6e 65 72 42 75 66 66 65 72 42       PlannerBufferB
    6c74:	79 74 65 73 3a 20 00                                ytes: .

00006c7b <setup::__c>:
    6c7b:	20 46 72 65 65 20 4d 65 6d 6f 72 79 3a 20 00         Free Memory: .

00006c8a <setup::__c>:
    6c8a:	20 7c 20 41 75 74 68 6f 72 3a 20 00                  | Author: .

00006c96 <setup::__c>:
    6c96:	20 4c 61 73 74 20 55 70 64 61 74 65 64 3a 20 00      Last Updated: .

00006ca6 <MSG_SOFTWARE_RESET>:
    6ca6:	20 53 6f 66 74 77 61 72 65 20 52 65 73 65 74 00      Software Reset.

00006cb6 <MSG_WATCHDOG_RESET>:
    6cb6:	20 57 61 74 63 68 64 6f 67 20 52 65 73 65 74 00      Watchdog Reset.

00006cc6 <MSG_BROWNOUT_RESET>:
    6cc6:	20 42 72 6f 77 6e 20 6f 75 74 20 52 65 73 65 74      Brown out Reset
	...

00006cd7 <MSG_EXTERNAL_RESET>:
    6cd7:	20 45 78 74 65 72 6e 61 6c 20 52 65 73 65 74 00      External Reset.

00006ce7 <MSG_POWERUP>:
    6ce7:	50 6f 77 65 72 55 70 00                             PowerUp.

00006cef <MSG_SD_ERR_WRITE_TO_FILE>:
    6cef:	65 72 72 6f 72 20 77 72 69 74 69 6e 67 20 74 6f     error writing to
    6cff:	20 66 69 6c 65 00                                    file.

00006d05 <MSG_FILE_SAVED>:
    6d05:	44 6f 6e 65 20 73 61 76 69 6e 67 20 66 69 6c 65     Done saving file
    6d15:	2e 00                                               ..

00006d17 <MSG_OK>:
    6d17:	6f 6b 00                                            ok.

00006d1a <MSG_FILAMENT>:
    6d1a:	46 69 6c 61 6d 65 6e 74 00                          Filament.

00006d23 <MSG_POWERPANIC_DETECTED>:
    6d23:	50 4f 57 45 52 20 50 41 4e 49 43 20 44 45 54 45     POWER PANIC DETE
    6d33:	43 54 45 44 00                                      CTED.

00006d38 <uvlo_()::__c>:
    6d38:	55 56 4c 4f 20 2d 20 65 6e 64 20 25 64 0a 00        UVLO - end %d..

00006d47 <uvlo_tiny()::__c>:
    6d47:	55 56 4c 4f 5f 54 49 4e 59 20 2d 20 65 6e 64 20     UVLO_TINY - end 
    6d57:	25 64 0a 00                                         %d..

00006d5b <print_world_coordinates()::__c>:
    6d5b:	77 6f 72 6c 64 20 63 6f 6f 72 64 69 6e 61 74 65     world coordinate
    6d6b:	73 3a 20 28 25 2e 33 66 2c 20 25 2e 33 66 2c 20     s: (%.3f, %.3f, 
    6d7b:	25 2e 33 66 29 0a 00                                %.3f)..

00006d82 <MSG_M220>:
    6d82:	4d 32 32 30 20 53 25 64 00                          M220 S%d.

00006d8b <recover_print(unsigned char)::__c>:
    6d8b:	44 6f 6e 65 20 72 65 61 64 69 6e 67 20 45 45 50     Done reading EEP
    6d9b:	52 4f 4d 0a 00                                      ROM..

00006da0 <recover_print(unsigned char)::__c>:
    6da0:	54 65 6d 70 65 72 61 74 75 72 65 20 52 65 73 74     Temperature Rest
    6db0:	6f 72 65 64 0a 00                                   ored..

00006db6 <G1_E_F2700>:
    6db6:	47 31 20 45 25 2d 2e 33 66 20 46 32 37 30 30 00     G1 E%-.3f F2700.

00006dc6 <MSG_TMC_OVERTEMP>:
    6dc6:	54 4d 43 20 44 52 49 56 45 52 20 4f 56 45 52 54     TMC DRIVER OVERT
    6dd6:	45 4d 50 00                                         EMP.

00006dda <SetCurrents(unsigned char, MotorCurrents const&)::__c>:
    6dda:	48 6f 6c 64 20 63 75 72 72 65 6e 74 20 74 72 75     Hold current tru
    6dea:	6e 63 61 74 65 64 20 74 6f 20 52 75 6e 20 63 75     ncated to Run cu
    6dfa:	72 72 65 6e 74 00                                   rrent.

00006e00 <lcdui_print_temp(char, int, int)::__c>:
    6e00:	25 63 25 33 64 2f 25 64 81 00                       %c%3d/%d..

00006e0a <lcdui_print_Z_coord()::__c>:
    6e0a:	5a 25 36 2e 32 66 25 63 00                          Z%6.2f%c.

00006e13 <lcdui_print_Z_coord()::__c>:
    6e13:	5a 20 20 20 2d 2d 2d 20 00                          Z   --- .

00006e1c <lcdui_print_feedrate()::__c>:
    6e1c:	86 25 33 64 25 25 00                                .%3d%%.

00006e23 <lcdui_print_percent_done()::__c>:
    6e23:	2d 2d 2d 25 25 00                                   ---%%.

00006e29 <lcdui_print_percent_done()::__c>:
    6e29:	25 33 64 25 25 00                                   %3d%%.

00006e2f <lcdui_print_percent_done()::__c>:
    6e2f:	20 53 44 00                                          SD.

00006e33 <lcdui_print_percent_done()::__c>:
    6e33:	20 20 20 00                                            .

00006e37 <lcdui_print_percent_done()::__c>:
    6e37:	20 48 4f 00                                          HO.

00006e3b <lcdui_print_time()::__c>:
    6e3b:	87 25 33 75 68 20 25 63 25 63 00                    .%3uh %c%c.

00006e46 <lcdui_print_time()::__c>:
    6e46:	87 25 30 32 75 3a 25 30 32 75 25 63 25 63 00        .%02u:%02u%c%c.

00006e55 <MSG_HOST_ACTION_PAUSED>:
    6e55:	2f 2f 61 63 74 69 6f 6e 3a 70 61 75 73 65 64 00     //action:paused.

00006e65 <MSG_HOST_ACTION_ASK_PAUSE>:
    6e65:	2f 2f 61 63 74 69 6f 6e 3a 70 61 75 73 65 00        //action:pause.

00006e74 <_ZZL16lcd_support_menuvE3__c__16_>:
    6e74:	44 75 6d 70 20 6d 65 6d 6f 72 79 00                 Dump memory.

00006e80 <lcd_support_menu()::__c>:
    6e80:	68 65 6c 70 2e 70 72 75 73 61 33 64 2e 63 6f 6d     help.prusa3d.com
	...

00006e91 <lcd_support_menu()::__c>:
    6e91:	66 6f 72 75 6d 2e 70 72 75 73 61 33 64 2e 63 6f     forum.prusa3d.co
    6ea1:	6d 00                                               m.

00006ea3 <lcd_support_menu()::__c>:
    6ea3:	70 72 75 73 61 33 64 2e 63 6f 6d 00                 prusa3d.com.

00006eaf <MSG_M701>:
    6eaf:	4d 37 30 31 00                                      M701.

00006eb4 <lcd_menu_statistics()::__c>:
    6eb4:	25 53 3a 0a 25 31 38 2e 32 66 6d 20 0a 25 53 3a     %S:.%18.2fm .%S:
    6ec4:	0a 25 31 30 6c 64 64 20 25 30 32 64 68 20 25 30     .%10ldd %02dh %0
    6ed4:	32 64 6d 00                                         2dm.

00006ed8 <lcd_menu_statistics()::__c>:
    6ed8:	25 53 3a 0a 25 31 38 2e 32 66 6d 20 0a 25 53 3a     %S:.%18.2fm .%S:
    6ee8:	0a 25 31 30 6c 64 68 20 25 30 32 64 6d 20 25 30     .%10ldh %02dm %0
    6ef8:	32 64 73 00                                         2ds.

00006efc <lcd_menu_xyz_y_min()::__c>:
    6efc:	25 36 2e 32 66 6d 6d 00                             %6.2fmm.

00006f04 <lcd_menu_xyz_y_min()::__c>:
    6f04:	25 53 0a 25 53 0a 25 53 3a 0a 25 53 3a 00           %S.%S.%S:.%S:.

00006f12 <lcd_menu_xyz_skew()::__c>:
    6f12:	25 33 2e 32 66 81 00                                %3.2f..

00006f19 <lcd_menu_xyz_skew()::__c>:
    6f19:	25 2d 31 34 2e 31 34 53 3a 0a 25 53 0a 25 2d 31     %-14.14S:.%S.%-1
    6f29:	34 2e 31 34 53 3a 25 33 2e 32 66 81 0a 25 2d 31     4.14S:%3.2f..%-1
    6f39:	34 2e 31 34 53 3a 25 33 2e 32 66 81 00              4.14S:%3.2f..

00006f46 <lcd_print_state(unsigned char)::__c>:
    6f46:	20 20 30 00                                           0.

00006f4a <lcd_print_state(unsigned char)::__c>:
    6f4a:	20 20 31 00                                           1.

00006f4e <calculate_machine_skew_and_offset_LS(float const*, unsigned char, float const*, float*, float*, float*, signed char)::__c>:
    6f4e:	4d 65 61 73 75 72 65 64 20 73 6b 65 77 73 3a 20     Measured skews: 
    6f5e:	25 66 20 25 66 0a 00                                %f %f..

00006f65 <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    6f65:	46 69 74 74 69 6e 67 20 66 61 69 6c 65 64 20 3d     Fitting failed =
    6f75:	3e 20 63 61 6c 69 62 72 61 74 69 6f 6e 20 66 61     > calibration fa
    6f85:	69 6c 65 64 2e 0a 00                                iled...

00006f8c <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    6f8c:	43 61 6c 69 62 72 61 74 69 6f 6e 20 73 75 63 63     Calibration succ
    6f9c:	65 73 73 2e 0a 00                                   ess...

00006fa2 <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    6fa2:	41 6c 6c 20 34 20 63 61 6c 69 62 72 61 74 69 6f     All 4 calibratio
    6fb2:	6e 20 70 6f 69 6e 74 73 20 66 6f 75 6e 64 2e 0a     n points found..
	...

00006fc3 <gcode_M45(bool, signed char)::__c>:
    6fc3:	31 2f 34 00                                         1/4.

00006fc7 <gcode_M45(bool, signed char)::__c>:
    6fc7:	31 2f 34 00                                         1/4.

00006fcb <gcode_M45(bool, signed char)::__c>:
    6fcb:	31 2f 39 00                                         1/9.

00006fcf <MSG_WELCOME>:
    6fcf:	50 72 75 73 61 20 4d 4b 33 2d 52 48 46 36 30 20     Prusa MK3-RHF60 
    6fdf:	4f 4b 2e 00                                         OK..

00006fe3 <CardReader::mount(bool)::__c>:
    6fe3:	53 44 20 63 61 72 64 20 6f 6b 00                    SD card ok.

00006fee <CardReader::mount(bool)::__c>:
    6fee:	6f 70 65 6e 52 6f 6f 74 20 66 61 69 6c 65 64 00     openRoot failed.

00006ffe <CardReader::mount(bool)::__c>:
    6ffe:	76 6f 6c 75 6d 65 2e 69 6e 69 74 20 66 61 69 6c     volume.init fail
    700e:	65 64 00                                            ed.

00007011 <CardReader::mount(bool)::__c>:
    7011:	53 44 20 69 6e 69 74 20 66 61 69 6c 00              SD init fail.

0000701e <MSG_SD_OPEN_FILE_FAIL>:
    701e:	6f 70 65 6e 20 66 61 69 6c 65 64 2c 20 46 69 6c     open failed, Fil
    702e:	65 3a 20 00                                         e: .

00007032 <CardReader::chdir(char const*, bool)::__c>:
    7032:	43 61 6e 6e 6f 74 20 65 6e 74 65 72 20 73 75 62     Cannot enter sub
    7042:	64 69 72 3a 20 00                                   dir: .

00007048 <MSG_M600>:
    7048:	4d 36 30 30 00                                      M600.

0000704d <MSG_M24>:
    704d:	4d 32 34 00                                         M24.

00007051 <MSG_M23>:
    7051:	4d 32 33 20 25 73 00                                M23 %s.

00007058 <sample_mesh_and_store_reference()::__c>:
    7058:	31 2f 39 00                                         1/9.

0000705c <MMU2::MSG_BTN_MORE>:
    705c:	88 00                                               ..

0000705e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)::__c>:
    705e:	20 74 6f 6f 20 6c 6f 6e 67 20 65 78 74 72 75 73      too long extrus
    706e:	69 6f 6e 20 70 72 65 76 65 6e 74 65 64 00           ion prevented.

0000707c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)::__c>:
    707c:	20 63 6f 6c 64 20 65 78 74 72 75 73 69 6f 6e 20      cold extrusion 
    708c:	70 72 65 76 65 6e 74 65 64 00                       prevented.

00007096 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)::__c>:
    7096:	4d 6f 76 65 20 61 62 6f 72 74 65 64 00              Move aborted.

000070a3 <__noloc_end>:
    70a3:	08 4a       	sbci	r16, 0xA8	; 168
    70a5:	d7 3b       	cpi	r29, 0xB7	; 183
    70a7:	3b ce       	rjmp	.-906    	; 0x6d1f <MSG_FILAMENT+0x5>
    70a9:	01 6e       	ori	r16, 0xE1	; 225
    70ab:	84 bc       	out	0x24, r8	; 36
    70ad:	bf fd       	.word	0xfdbf	; ????
    70af:	c1 2f       	mov	r28, r17
    70b1:	3d 6c       	ori	r19, 0xCD	; 205
    70b3:	74 31       	cpi	r23, 0x14	; 20
    70b5:	9a bd       	out	0x2a, r25	; 42
    70b7:	56 83       	std	Z+6, r21	; 0x06
    70b9:	3d da       	rcall	.-2950   	; 0x6535 <__c.2348+0x6>
    70bb:	3d 00       	.word	0x003d	; ????
    70bd:	c7 7f       	andi	r28, 0xF7	; 247
    70bf:	11 be       	out	0x31, r1	; 49
    70c1:	d9 e4       	ldi	r29, 0x49	; 73
    70c3:	bb 4c       	sbci	r27, 0xCB	; 203
    70c5:	3e 91       	ld	r19, -X
    70c7:	6b aa       	std	Y+51, r6	; 0x33
    70c9:	aa be       	out	0x3a, r10	; 58
    70cb:	00 00       	nop
    70cd:	00 80       	ld	r0, Z
    70cf:	3f 05       	cpc	r19, r15
    70d1:	a8 4c       	sbci	r26, 0xC8	; 200
    70d3:	cd b2       	in	r12, 0x1d	; 29
    70d5:	d4 4e       	sbci	r29, 0xE4	; 228
    70d7:	b9 38       	cpi	r27, 0x89	; 137
    70d9:	36 a9       	ldd	r19, Z+54	; 0x36
    70db:	02 0c       	add	r0, r2
    70dd:	50 b9       	out	0x00, r21	; 0
    70df:	91 86       	std	Z+9, r9	; 0x09
    70e1:	88 08       	sbc	r8, r8
    70e3:	3c a6       	std	Y+44, r3	; 0x2c
    70e5:	aa aa       	std	Y+50, r10	; 0x32
    70e7:	2a be       	out	0x3a, r2	; 58
    70e9:	00 00       	nop
    70eb:	00 80       	ld	r0, Z
    70ed:	3f 07       	cpc	r19, r31
    70ef:	63 42       	sbci	r22, 0x23	; 35
    70f1:	36 b7       	in	r19, 0x36	; 54
    70f3:	9b d8       	rcall	.-3786   	; 0x622b <MMU2::MSG_DESC_FSENSOR_DIDNT_TRIGGER+0x21>
    70f5:	a7 1a       	sub	r10, r23
    70f7:	39 68       	ori	r19, 0x89	; 137
    70f9:	56 18       	sub	r5, r6
    70fb:	ae ba       	out	0x1e, r10	; 30
    70fd:	ab 55       	subi	r26, 0x5B	; 91
    70ff:	8c 1d       	adc	r24, r12
    7101:	3c b7       	in	r19, 0x3c	; 60
    7103:	cc 57       	subi	r28, 0x7C	; 124
    7105:	63 bd       	out	0x23, r22	; 35
    7107:	6d ed       	ldi	r22, 0xDD	; 221
    7109:	fd 75       	andi	r31, 0x5D	; 93
    710b:	3e f6       	brtc	.-114    	; 0x709b <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)::__c+0x5>
    710d:	17 72       	andi	r17, 0x27	; 39
    710f:	31 bf       	out	0x31, r19	; 49
    7111:	00 00       	nop
    7113:	00 80       	ld	r0, Z
    7115:	3f 08       	sbc	r3, r15
    7117:	00 00       	nop
    7119:	00 be       	out	0x30, r0	; 48
    711b:	92 24       	eor	r9, r2
    711d:	49 12       	cpse	r4, r25
    711f:	3e ab       	std	Y+54, r19	; 0x36
    7121:	aa aa       	std	Y+50, r10	; 0x32
    7123:	2a be       	out	0x3a, r2	; 58
    7125:	cd cc       	rjmp	.-1638   	; 0x6ac1 <lcd_selfcheck_axis_sg(unsigned char)::__c+0x1b>
    7127:	cc 4c       	sbci	r28, 0xCC	; 204
    7129:	3e 00       	.word	0x003e	; ????
    712b:	00 00       	nop
    712d:	80 be       	out	0x30, r8	; 48
    712f:	ab aa       	std	Y+51, r10	; 0x33
    7131:	aa aa       	std	Y+50, r10	; 0x32
    7133:	3e 00       	.word	0x003e	; ????
    7135:	00 00       	nop
    7137:	00 bf       	out	0x30, r16	; 48
    7139:	00 00       	nop
    713b:	00 80       	ld	r0, Z
    713d:	3f 00       	.word	0x003f	; ????
    713f:	00 00       	nop
    7141:	00 00       	nop
    7143:	08 41       	sbci	r16, 0x18	; 24
    7145:	78 d3       	rcall	.+1776   	; 0x7837 <default_conf+0xc4>
    7147:	bb 43       	sbci	r27, 0x3B	; 59
    7149:	87 d1       	rcall	.+782    	; 0x7459 <__trampolines_start+0x2e9>
    714b:	13 3d       	cpi	r17, 0xD3	; 211
    714d:	19 0e       	add	r1, r25
    714f:	3c c3       	rjmp	.+1656   	; 0x77c9 <default_conf+0x56>
    7151:	bd 42       	sbci	r27, 0x2D	; 45
    7153:	82 ad       	ldd	r24, Z+58	; 0x3a
    7155:	2b 3e       	cpi	r18, 0xEB	; 235
    7157:	68 ec       	ldi	r22, 0xC8	; 200
    7159:	82 76       	andi	r24, 0x62	; 98
    715b:	be d9       	rcall	.-3204   	; 0x64d9 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)::__c+0x1e>
    715d:	8f e1       	ldi	r24, 0x1F	; 31
    715f:	a9 3e       	cpi	r26, 0xE9	; 233
    7161:	4c 80       	ldd	r4, Y+4	; 0x04
    7163:	ef ff       	.word	0xffef	; ????
    7165:	be 01       	movw	r22, r28
    7167:	c4 ff       	sbrs	r28, 4
    7169:	7f 3f       	cpi	r23, 0xFF	; 255
    716b:	00 00       	nop
    716d:	00 00       	nop
	...

00007170 <__trampolines_start>:
    7170:	0c 94 91 ef 	jmp	0x1df22	; 0x1df22 <lcd_first_layer_calibration_reset()>
    7174:	0c 94 29 fb 	jmp	0x1f652	; 0x1f652 <lcd_wizard(WizState)+0x292>
    7178:	0c 94 78 ea 	jmp	0x1d4f0	; 0x1d4f0 <analogWrite+0xfa>
    717c:	0d 94 cf 08 	jmp	0x2119e	; 0x2119e <lcd_commands() [clone .part.41]+0x2bc>
    7180:	0d 94 69 1d 	jmp	0x23ad2	; 0x23ad2 <lcd_menu_fails_stats() [clone .lto_priv.414]>
    7184:	0c 94 5a e2 	jmp	0x1c4b4	; 0x1c4b4 <mmu_eject_filament(unsigned char)>
    7188:	0c 94 b3 e0 	jmp	0x1c166	; 0x1c166 <lcd_sd_refresh()>
    718c:	0d 94 d8 22 	jmp	0x245b0	; 0x245b0 <mFilamentPrompt()>
    7190:	0c 94 82 cf 	jmp	0x19f04	; 0x19f04 <lcd_mesh_bedleveling()>
    7194:	0c 94 a5 ea 	jmp	0x1d54a	; 0x1d54a <analogWrite+0x154>
    7198:	0c 94 3d 74 	jmp	0xe87a	; 0xe87a <__vector_23+0x128>
    719c:	0c 94 fd f0 	jmp	0x1e1fa	; 0x1e1fa <UserECool_toggle()>
    71a0:	0c 94 e8 e0 	jmp	0x1c1d0	; 0x1c1d0 <lcd_backlight_menu()>
    71a4:	0c 94 a0 d2 	jmp	0x1a540	; 0x1a540 <lcd_hw_setup_menu()>
    71a8:	0c 94 f4 d0 	jmp	0x1a1e8	; 0x1a1e8 <lcd_nozzle_diameter_cycle()>
    71ac:	0d 94 2d a7 	jmp	0x34e5a	; 0x34e5a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x14a>
    71b0:	0c 94 d2 f5 	jmp	0x1eba4	; 0x1eba4 <lcd_print_stop()>
    71b4:	0d 94 94 0a 	jmp	0x21528	; 0x21528 <lcd_commands() [clone .part.41]+0x646>
    71b8:	0c 94 bd d5 	jmp	0x1ab7a	; 0x1ab7a <lcd_main_menu() [clone .lto_priv.451]>
    71bc:	0d 94 cb 19 	jmp	0x23396	; 0x23396 <lcd_menu_fails_stats_mmu_total()>
    71c0:	0c 94 cd ea 	jmp	0x1d59a	; 0x1d59a <analogWrite+0x1a4>
    71c4:	0c 94 0f f1 	jmp	0x1e21e	; 0x1e21e <lcd_silent_mode_set()>
    71c8:	0c 94 9b d1 	jmp	0x1a336	; 0x1a336 <lcd_fsensor_jam_detection_set()>
    71cc:	0c 94 af ea 	jmp	0x1d55e	; 0x1d55e <analogWrite+0x168>
    71d0:	0c 94 54 fb 	jmp	0x1f6a8	; 0x1f6a8 <lcd_wizard(WizState)+0x2e8>
    71d4:	0c 94 b6 e3 	jmp	0x1c76c	; 0x1c76c <lcd_language_menu()>
    71d8:	0d 94 3c 2c 	jmp	0x25878	; 0x25878 <lcdui_print_status_line()+0x17a>
    71dc:	0c 94 1a 74 	jmp	0xe834	; 0xe834 <__vector_23+0xe2>
    71e0:	0c 94 e7 cd 	jmp	0x19bce	; 0x19bce <turnOffPWM+0x96>
    71e4:	0d 94 45 51 	jmp	0x2a28a	; 0x2a28a <mFilamentItem(unsigned int, unsigned int)+0xc4>
    71e8:	0c 94 72 fa 	jmp	0x1f4e4	; 0x1f4e4 <lcd_wizard(WizState)+0x124>
    71ec:	0d 94 41 ad 	jmp	0x35a82	; 0x35a82 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x118>
    71f0:	0c 94 7a 70 	jmp	0xe0f4	; 0xe0f4 <lcd_putchar(char, __file*) [clone .lto_priv.405]>
    71f4:	0c 94 72 da 	jmp	0x1b4e4	; 0x1b4e4 <lcd_tune_menu()>
    71f8:	0c 94 b5 ce 	jmp	0x19d6a	; 0x19d6a <lcd_printer_ready_state_toggle()>
    71fc:	0c 94 df cd 	jmp	0x19bbe	; 0x19bbe <turnOffPWM+0x86>
    7200:	0d 94 76 a0 	jmp	0x340ec	; 0x340ec <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x192>
    7204:	0d 94 98 0a 	jmp	0x21530	; 0x21530 <lcd_commands() [clone .part.41]+0x64e>
    7208:	0d 94 4f 17 	jmp	0x22e9e	; 0x22e9e <lcd_cutter_enabled() [clone .lto_priv.417]>
    720c:	0d 94 56 19 	jmp	0x232ac	; 0x232ac <lcd_menu_fails_stats_total()>
    7210:	0c 94 e1 d0 	jmp	0x1a1c2	; 0x1a1c2 <lcd_sort_type_set()>
    7214:	0d 94 2e 52 	jmp	0x2a45c	; 0x2a45c <lcd_unLoadFilament() [clone .lto_priv.412]>
    7218:	0c 94 aa d4 	jmp	0x1a954	; 0x1a954 <lcd_move_menu_axis()>
    721c:	0d 94 79 52 	jmp	0x2a4f2	; 0x2a4f2 <mFilamentItem_FLEX()>
    7220:	0c 94 fb cd 	jmp	0x19bf6	; 0x19bf6 <turnOffPWM+0xbe>
    7224:	0c 94 22 fa 	jmp	0x1f444	; 0x1f444 <lcd_wizard(WizState)+0x84>
    7228:	0c 94 74 dc 	jmp	0x1b8e8	; 0x1b8e8 <lcd_rename_sheet_menu()>
    722c:	0c 94 8d d4 	jmp	0x1a91a	; 0x1a91a <void select_sheet_menu<(unsigned char)5>()>
    7230:	0c 94 ba cd 	jmp	0x19b74	; 0x19b74 <turnOffPWM+0x3c>
    7234:	0d 94 79 a0 	jmp	0x340f2	; 0x340f2 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x198>
    7238:	0c 94 46 e2 	jmp	0x1c48c	; 0x1c48c <mmu_load_to_nozzle_menu() [clone .lto_priv.446]>
    723c:	0c 94 af ce 	jmp	0x19d5e	; 0x19d5e <lcd_send_action_start()>
    7240:	0c 94 30 ef 	jmp	0x1de60	; 0x1de60 <lcd_reset_sheet()>
    7244:	0c 94 e8 fa 	jmp	0x1f5d0	; 0x1f5d0 <lcd_wizard(WizState)+0x210>
    7248:	0c 94 ed e2 	jmp	0x1c5da	; 0x1c5da <sheets_menu()>
    724c:	0c 94 d9 cd 	jmp	0x19bb2	; 0x19bb2 <turnOffPWM+0x7a>
    7250:	0d 94 98 2c 	jmp	0x25930	; 0x25930 <lcdui_print_status_line()+0x232>
    7254:	0c 94 b9 ea 	jmp	0x1d572	; 0x1d572 <analogWrite+0x17c>
    7258:	0c 94 d5 cd 	jmp	0x19baa	; 0x19baa <turnOffPWM+0x72>
    725c:	0c 94 b5 e2 	jmp	0x1c56a	; 0x1c56a <lcd_community_language_menu()>
    7260:	0c 94 a3 d0 	jmp	0x1a146	; 0x1a146 <lcd_toshiba_flash_air_compatibility_toggle()>
    7264:	0d 94 60 1d 	jmp	0x23ac0	; 0x23ac0 <lcd_move_x() [clone .lto_priv.418]>
    7268:	0d 94 0c 18 	jmp	0x23018	; 0x23018 <lcd_menu_voltages()>
    726c:	0d 94 30 a7 	jmp	0x34e60	; 0x34e60 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x150>
    7270:	0d 94 e1 3f 	jmp	0x27fc2	; 0x27fc2 <lcd_menu_statistics()>
    7274:	0c 94 4a ea 	jmp	0x1d494	; 0x1d494 <analogWrite+0x9e>
    7278:	0c 94 f4 fa 	jmp	0x1f5e8	; 0x1f5e8 <lcd_wizard(WizState)+0x228>
    727c:	0c 94 9b ea 	jmp	0x1d536	; 0x1d536 <analogWrite+0x140>
    7280:	0c 94 3b ea 	jmp	0x1d476	; 0x1d476 <analogWrite+0x80>
    7284:	0c 94 8c ea 	jmp	0x1d518	; 0x1d518 <analogWrite+0x122>
    7288:	0c 94 c0 e1 	jmp	0x1c380	; 0x1c380 <mmu_loading_test_menu() [clone .lto_priv.447]>
    728c:	0c 94 a6 d4 	jmp	0x1a94c	; 0x1a94c <void select_sheet_menu<(unsigned char)0>()>
    7290:	0c 94 e3 cd 	jmp	0x19bc6	; 0x19bc6 <turnOffPWM+0x8e>
    7294:	0d 94 a2 21 	jmp	0x24344	; 0x24344 <lcd_generic_preheat_menu()>
    7298:	0d 94 d5 08 	jmp	0x211aa	; 0x211aa <lcd_commands() [clone .part.41]+0x2c8>
    729c:	0c 94 ea 75 	jmp	0xebd4	; 0xebd4 <eeprom_switch_to_next_sheet()>
    72a0:	0c 94 5e ea 	jmp	0x1d4bc	; 0x1d4bc <analogWrite+0xc6>
    72a4:	0c 94 c3 ea 	jmp	0x1d586	; 0x1d586 <analogWrite+0x190>
    72a8:	0c 94 9c d4 	jmp	0x1a938	; 0x1a938 <void select_sheet_menu<(unsigned char)2>()>
    72ac:	0d 94 0d a0 	jmp	0x3401a	; 0x3401a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xc0>
    72b0:	0d 94 67 17 	jmp	0x22ece	; 0x22ece <lcd_adjust_bed_reset()>
    72b4:	0c 94 b4 f8 	jmp	0x1f168	; 0x1f168 <lcd_selftest_v()>
    72b8:	0c 94 cc cd 	jmp	0x19b98	; 0x19b98 <turnOffPWM+0x60>
    72bc:	0d 94 32 1a 	jmp	0x23464	; 0x23464 <lcd_menu_xyz_offset()>
    72c0:	0c 94 6f d0 	jmp	0x1a0de	; 0x1a0de <lcd_check_model_set()>
    72c4:	0d 94 c8 51 	jmp	0x2a390	; 0x2a390 <mFilamentItem(unsigned int, unsigned int)+0x1ca>
    72c8:	0c 94 94 d1 	jmp	0x1a328	; 0x1a328 <lcd_fsensor_enabled_set()>
    72cc:	0c 94 b1 e1 	jmp	0x1c362	; 0x1c362 <lcd_mmuCutFilament()>
    72d0:	0c 94 88 d4 	jmp	0x1a910	; 0x1a910 <void select_sheet_menu<(unsigned char)6>()>
    72d4:	0c 94 52 da 	jmp	0x1b4a4	; 0x1b4a4 <lcd_control_temperature_menu()>
    72d8:	0d 94 56 11 	jmp	0x222ac	; 0x222ac <uart2_putchar(char, __file*) [clone .lto_priv.397]>
    72dc:	0c 94 0d d8 	jmp	0x1b01a	; 0x1b01a <lcd_settings_menu()>
    72e0:	0c 94 0e fb 	jmp	0x1f61c	; 0x1f61c <lcd_wizard(WizState)+0x25c>
    72e4:	0c 94 0c e4 	jmp	0x1c818	; 0x1c818 <lcd_menu_show_sensors_state()>
    72e8:	0d 94 cb 2c 	jmp	0x25996	; 0x25996 <lcdui_print_status_line()+0x298>
    72ec:	0c 94 2c d5 	jmp	0x1aa58	; 0x1aa58 <lcd_reprint_from_eeprom()>
    72f0:	0c 94 5a f5 	jmp	0x1eab4	; 0x1eab4 <lcd_colorprint_change()>
    72f4:	0d 94 f4 51 	jmp	0x2a3e8	; 0x2a3e8 <mFilamentItem(unsigned int, unsigned int)+0x222>
    72f8:	0d 94 33 a7 	jmp	0x34e66	; 0x34e66 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x156>
    72fc:	0d 94 a3 0c 	jmp	0x21946	; 0x21946 <menu_lcd_lcdupdate_func()>
    7300:	0c 94 74 e2 	jmp	0x1c4e8	; 0x1c4e8 <load_filament_wrapper(unsigned char)>
    7304:	0c 94 65 e2 	jmp	0x1c4ca	; 0x1c4ca <load_all_wrapper()>
    7308:	0d 94 0c 1b 	jmp	0x23618	; 0x23618 <lcd_menu_xyz_y_min()>
    730c:	0d 94 a5 15 	jmp	0x22b4a	; 0x22b4a <lcd_pause_usb_print()>
    7310:	0c 94 c6 f0 	jmp	0x1e18c	; 0x1e18c <lcd_experimental_menu()>
    7314:	0c 94 50 d0 	jmp	0x1a0a0	; 0x1a0a0 <mbl_magnets_elimination_toggle()>
    7318:	0d 94 10 ad 	jmp	0x35a20	; 0x35a20 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xb6>
    731c:	0d 94 29 0b 	jmp	0x21652	; 0x21652 <lcd_commands() [clone .part.41]+0x770>
    7320:	0c 94 ab e1 	jmp	0x1c356	; 0x1c356 <lcd_mmuUnloadFilament()>
    7324:	0d 94 7c a0 	jmp	0x340f8	; 0x340f8 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x19e>
    7328:	0c 94 e8 d4 	jmp	0x1a9d0	; 0x1a9d0 <lcd_checking_menu()>
    732c:	0c 94 54 ea 	jmp	0x1d4a8	; 0x1d4a8 <analogWrite+0xb2>
    7330:	0c 94 a8 e1 	jmp	0x1c350	; 0x1c350 <lcd_mmuLoadFilament()>
    7334:	0c 94 35 d5 	jmp	0x1aa6a	; 0x1aa6a <menu_lcd_longpress_func()>
    7338:	0d 94 d8 18 	jmp	0x231b0	; 0x231b0 <lcd_menu_fails_stats_mmu_print()>
    733c:	0d 94 5d 51 	jmp	0x2a2ba	; 0x2a2ba <mFilamentItem(unsigned int, unsigned int)+0xf4>
    7340:	0c 94 ae fa 	jmp	0x1f55c	; 0x1f55c <lcd_wizard(WizState)+0x19c>
    7344:	0c 94 11 74 	jmp	0xe822	; 0xe822 <__vector_23+0xd0>
    7348:	0d 94 6c 17 	jmp	0x22ed8	; 0x22ed8 <lcd_menu_AutoLoadFilament() [clone .lto_priv.413]>
    734c:	0d 94 2f ad 	jmp	0x35a5e	; 0x35a5e <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xf4>
    7350:	0d 94 69 52 	jmp	0x2a4d2	; 0x2a4d2 <mFilamentItem_HIPS()>
    7354:	0d 94 71 52 	jmp	0x2a4e2	; 0x2a4e2 <mFilamentItem_PP()>
    7358:	0c 94 36 db 	jmp	0x1b66c	; 0x1b66c <lcd_language()>
    735c:	0c 94 22 d0 	jmp	0x1a044	; 0x1a044 <WorkaroundPrusaSN()>
    7360:	0c 94 ff cd 	jmp	0x19bfe	; 0x19bfe <turnOffPWM+0xc6>
    7364:	0d 94 81 52 	jmp	0x2a502	; 0x2a502 <lcd_dump_memory()>
    7368:	0c 94 89 cf 	jmp	0x19f12	; 0x19f12 <lcd_calibrate_pinda()>
    736c:	0d 94 5b 17 	jmp	0x22eb6	; 0x22eb6 <SpoolJoin::SpoolJoin::toggleSpoolJoin()>
    7370:	0d 94 61 52 	jmp	0x2a4c2	; 0x2a4c2 <mFilamentItem_ABS()>
    7374:	0c 94 79 d0 	jmp	0x1a0f2	; 0x1a0f2 <lcd_check_mode_set()>
    7378:	0d 94 4f 22 	jmp	0x2449e	; 0x2449e <lcd_preheat_menu() [clone .lto_priv.409]>
    737c:	0c 94 ca d0 	jmp	0x1a194	; 0x1a194 <lcd_sound_state_set()>
    7380:	0d 94 5b 10 	jmp	0x220b6	; 0x220b6 <loading_test_wrapper(unsigned char)>
    7384:	0c 94 83 d0 	jmp	0x1a106	; 0x1a106 <lcd_fsensor_actionNA_set()>
    7388:	0d 94 31 52 	jmp	0x2a462	; 0x2a462 <mFilamentItem_PLA()>
    738c:	0c 94 15 e0 	jmp	0x1c02a	; 0x1c02a <crash_mode_switch()>
    7390:	0d 94 f1 0f 	jmp	0x21fe2	; 0x21fe2 <lcd_mmu_load_to_nozzle_wrapper(unsigned char)>
    7394:	0d 94 ce a6 	jmp	0x34d9c	; 0x34d9c <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x8c>
    7398:	0d 94 a9 15 	jmp	0x22b52	; 0x22b52 <lcd_set_fan_check() [clone .lto_priv.416]>
    739c:	0c 94 1b e0 	jmp	0x1c036	; 0x1c036 <lcd_crash_mode_info()>
    73a0:	0c 94 ed 73 	jmp	0xe7da	; 0xe7da <__vector_23+0x88>
    73a4:	0c 94 c0 cd 	jmp	0x19b80	; 0x19b80 <turnOffPWM+0x48>
    73a8:	0d 94 39 52 	jmp	0x2a472	; 0x2a472 <mFilamentItem_PET()>
    73ac:	0d 94 80 0b 	jmp	0x21700	; 0x21700 <lcd_commands() [clone .part.41]+0x81e>
    73b0:	0c 94 1f fb 	jmp	0x1f63e	; 0x1f63e <lcd_wizard(WizState)+0x27e>
    73b4:	0d 94 ba 17 	jmp	0x22f74	; 0x22f74 <lcd_menu_temperatures()>
    73b8:	0d 94 c5 d4 	jmp	0x3a98a	; 0x3a98a <MMU2::tuneIdlerStallguardThresholdMenu()>
    73bc:	0d 94 4e 1d 	jmp	0x23a9c	; 0x23a9c <lcd_move_z() [clone .lto_priv.407]>
    73c0:	0c 94 90 cf 	jmp	0x19f20	; 0x19f20 <nozzle_change()>
    73c4:	0c 94 80 d9 	jmp	0x1b300	; 0x1b300 <lcd_calibration_menu()>
    73c8:	0d 94 4f 2c 	jmp	0x2589e	; 0x2589e <lcdui_print_status_line()+0x1a0>
    73cc:	0d 94 27 19 	jmp	0x2324e	; 0x2324e <lcd_menu_belt_status()>
    73d0:	0c 94 ea cf 	jmp	0x19fd4	; 0x19fd4 <fsensor_reinit()>
    73d4:	0d 94 2c ad 	jmp	0x35a58	; 0x35a58 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xee>
    73d8:	0c 94 c8 cd 	jmp	0x19b90	; 0x19b90 <turnOffPWM+0x58>
    73dc:	0c 94 d3 e4 	jmp	0x1c9a6	; 0x1c9a6 <mmu_enable_switch()>
    73e0:	0c 94 ad d0 	jmp	0x1a15a	; 0x1a15a <lcd_second_serial_set()>
    73e4:	0c 94 a4 fa 	jmp	0x1f548	; 0x1f548 <lcd_wizard(WizState)+0x188>
    73e8:	0c 94 8f d0 	jmp	0x1a11e	; 0x1a11e <lcd_fsensor_autoload_set()>
    73ec:	0d 94 93 1f 	jmp	0x23f26	; 0x23f26 <lcd_menu_toolchange_stats_mmu_total()>
    73f0:	0d 94 39 30 	jmp	0x26072	; 0x26072 <lcd_cooldown() [clone .lto_priv.435]>
    73f4:	0d 94 87 16 	jmp	0x22d0e	; 0x22d0e <lcd_adjust_bed()>
    73f8:	0d 94 8c 51 	jmp	0x2a318	; 0x2a318 <mFilamentItem(unsigned int, unsigned int)+0x152>
    73fc:	0c 94 53 f1 	jmp	0x1e2a6	; 0x1e2a6 <lcd_settings_linearity_correction_menu()>
    7400:	0c 94 bf d0 	jmp	0x1a17e	; 0x1a17e <lcd_temp_calibration_set()>
    7404:	0d 94 97 a0 	jmp	0x3412e	; 0x3412e <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x1d4>
    7408:	0c 94 33 ea 	jmp	0x1d466	; 0x1d466 <analogWrite+0x70>
    740c:	0d 94 27 0a 	jmp	0x2144e	; 0x2144e <lcd_commands() [clone .part.41]+0x56c>
    7410:	0c 94 92 d4 	jmp	0x1a924	; 0x1a924 <void select_sheet_menu<(unsigned char)4>()>
    7414:	0c 94 fc f8 	jmp	0x1f1f8	; 0x1f1f8 <lcd_resume_print()>
    7418:	0d 94 28 52 	jmp	0x2a450	; 0x2a450 <lcd_AutoLoadFilament()>
    741c:	0d 94 d3 0d 	jmp	0x21ba6	; 0x21ba6 <lcd_mesh_bed_leveling_settings()>
    7420:	0c 94 ae e1 	jmp	0x1c35c	; 0x1c35c <lcd_mmuEjectFilament()>
    7424:	0d 94 fa 51 	jmp	0x2a3f4	; 0x2a3f4 <mFilamentItem(unsigned int, unsigned int)+0x22e>
    7428:	0c 94 37 fb 	jmp	0x1f66e	; 0x1f66e <lcd_wizard(WizState)+0x2ae>
    742c:	0c 94 4e f0 	jmp	0x1e09c	; 0x1e09c <activate_calibrate_sheet()>
    7430:	0d 94 2b 52 	jmp	0x2a456	; 0x2a456 <lcd_LoadFilament() [clone .lto_priv.411]>
    7434:	0c 94 16 d0 	jmp	0x1a02c	; 0x1a02c <lcd_heat_bed_on_load_toggle()>
    7438:	0d 94 3e 11 	jmp	0x2227c	; 0x2227c <uart2_getchar(__file*) [clone .lto_priv.398]>
    743c:	0c 94 36 e2 	jmp	0x1c46c	; 0x1c46c <mmu_cut_filament_menu() [clone .lto_priv.449]>
    7440:	0d 94 b5 a6 	jmp	0x34d6a	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
    7444:	0c 94 b7 d1 	jmp	0x1a36e	; 0x1a36e <lcd_mmu_mode_toggle()>
    7448:	0d 94 dc 2c 	jmp	0x259b8	; 0x259b8 <lcdui_print_status_line()+0x2ba>
    744c:	0d 94 c1 40 	jmp	0x28182	; 0x28182 <lcd_status_screen()>
    7450:	0c 94 b4 e1 	jmp	0x1c368	; 0x1c368 <lcd_mmuLoadingTest()>
    7454:	0c 94 35 d0 	jmp	0x1a06a	; 0x1a06a <mbl_probe_nr_toggle()>
    7458:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
    745c:	0d 94 ea 0b 	jmp	0x217d4	; 0x217d4 <lcd_commands() [clone .part.41]+0x8f2>
    7460:	0d 94 77 1a 	jmp	0x234ee	; 0x234ee <lcd_menu_xyz_skew()>
    7464:	0d 94 3c ad 	jmp	0x35a78	; 0x35a78 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x10e>
    7468:	0d 94 ca ac 	jmp	0x35994	; 0x35994 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x2a>
    746c:	0d 94 51 52 	jmp	0x2a4a2	; 0x2a4a2 <mFilamentItem_PVB()>
    7470:	0c 94 99 d0 	jmp	0x1a132	; 0x1a132 <lcd_fsensor_runout_set()>
    7474:	0c 94 c8 73 	jmp	0xe790	; 0xe790 <__vector_23+0x3e>
    7478:	0d 94 25 a0 	jmp	0x3404a	; 0x3404a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xf0>
    747c:	0d 94 59 52 	jmp	0x2a4b2	; 0x2a4b2 <mFilamentItem_PA()>
    7480:	0c 94 83 d4 	jmp	0x1a906	; 0x1a906 <void select_sheet_menu<(unsigned char)7>()>
    7484:	0c 94 65 d0 	jmp	0x1a0ca	; 0x1a0ca <lcd_check_version_set()>
    7488:	0c 94 98 fa 	jmp	0x1f530	; 0x1f530 <lcd_wizard(WizState)+0x170>
    748c:	0c 94 0c ce 	jmp	0x19c18	; 0x19c18 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)>
    7490:	0d 94 70 10 	jmp	0x220e0	; 0x220e0 <loading_test_all_wrapper()>
    7494:	0c 94 2f e0 	jmp	0x1c05e	; 0x1c05e <lcd_belttest_v()>
    7498:	0c 94 e2 73 	jmp	0xe7c4	; 0xe7c4 <__vector_23+0x72>
    749c:	0d 94 41 52 	jmp	0x2a482	; 0x2a482 <mFilamentItem_ASA()>
    74a0:	0c 94 5b d0 	jmp	0x1a0b6	; 0x1a0b6 <lcd_check_filament_set()>
    74a4:	0c 94 97 d4 	jmp	0x1a92e	; 0x1a92e <void select_sheet_menu<(unsigned char)3>()>
    74a8:	0d 94 10 a7 	jmp	0x34e20	; 0x34e20 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x110>
    74ac:	0d 94 01 a0 	jmp	0x34002	; 0x34002 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xa8>
    74b0:	0c 94 d2 76 	jmp	0xeda4	; 0xeda4 <uart_putchar(char, __file*)>
    74b4:	0c 94 a1 d4 	jmp	0x1a942	; 0x1a942 <void select_sheet_menu<(unsigned char)1>()>
    74b8:	0d 94 8b a0 	jmp	0x34116	; 0x34116 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x1bc>
    74bc:	0d 94 6a a0 	jmp	0x340d4	; 0x340d4 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x17a>
    74c0:	0c 94 53 f2 	jmp	0x1e4a6	; 0x1e4a6 <lcd_sdcard_menu()>
    74c4:	0c 94 bd e0 	jmp	0x1c17a	; 0x1c17a <lcd_sd_updir()>
    74c8:	0c 94 4f 74 	jmp	0xe89e	; 0xe89e <__vector_23+0x14c>
    74cc:	0d 94 8f 51 	jmp	0x2a31e	; 0x2a31e <mFilamentItem(unsigned int, unsigned int)+0x158>
    74d0:	0d 94 f7 51 	jmp	0x2a3ee	; 0x2a3ee <mFilamentItem(unsigned int, unsigned int)+0x228>
    74d4:	0d 94 33 ad 	jmp	0x35a66	; 0x35a66 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xfc>
    74d8:	0c 94 ed cd 	jmp	0x19bda	; 0x19bda <turnOffPWM+0xa2>
    74dc:	0c 94 71 e1 	jmp	0x1c2e2	; 0x1c2e2 <mmu_preload_filament_menu()>
    74e0:	0d 94 74 17 	jmp	0x22ee8	; 0x22ee8 <lcd_menu_extruder_info()>
    74e4:	0c 94 bc e5 	jmp	0x1cb78	; 0x1cb78 <lcd_v2_calibration()>
    74e8:	0c 94 fb 73 	jmp	0xe7f6	; 0xe7f6 <__vector_23+0xa4>
    74ec:	0c 94 40 fb 	jmp	0x1f680	; 0x1f680 <lcd_wizard(WizState)+0x2c0>
    74f0:	0d 94 be d2 	jmp	0x3a57c	; 0x3a57c <_menu_edit_P()>
    74f4:	0d 94 49 52 	jmp	0x2a492	; 0x2a492 <mFilamentItem_PC()>
    74f8:	0c 94 fa cd 	jmp	0x19bf4	; 0x19bf4 <turnOffPWM+0xbc>
    74fc:	0c 94 b7 e1 	jmp	0x1c36e	; 0x1c36e <change_sheet()>
    7500:	0c 94 fc 63 	jmp	0xc7f8	; 0xc7f8 <_GLOBAL__sub_D_card>
    7504:	0d 94 d6 1d 	jmp	0x23bac	; 0x23bac <lcd_support_menu() [clone .lto_priv.408]>
    7508:	0c 94 2b f9 	jmp	0x1f256	; 0x1f256 <lcd_resume_usb_print()>
    750c:	0d 94 57 1d 	jmp	0x23aae	; 0x23aae <lcd_move_y() [clone .lto_priv.419]>
    7510:	0d 94 92 28 	jmp	0x25124	; 0x25124 <lcd_babystep_z() [clone .lto_priv.406]>
    7514:	0c 94 82 ea 	jmp	0x1d504	; 0x1d504 <analogWrite+0x10e>
    7518:	0c 94 61 e1 	jmp	0x1c2c2	; 0x1c2c2 <backlight_mode_toggle()>
    751c:	0c 94 c4 cd 	jmp	0x19b88	; 0x19b88 <turnOffPWM+0x50>
    7520:	0c 94 3e e2 	jmp	0x1c47c	; 0x1c47c <mmu_fil_eject_menu() [clone .lto_priv.448]>
    7524:	0c 94 cf cd 	jmp	0x19b9e	; 0x19b9e <turnOffPWM+0x66>
    7528:	0d 94 7f a0 	jmp	0x340fe	; 0x340fe <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x1a4>
    752c:	0d 94 77 18 	jmp	0x230ee	; 0x230ee <lcd_menu_fails_stats_print()>
    7530:	0c 94 6e ea 	jmp	0x1d4dc	; 0x1d4dc <analogWrite+0xe6>
    7534:	0d 94 85 51 	jmp	0x2a30a	; 0x2a30a <mFilamentItem(unsigned int, unsigned int)+0x144>
    7538:	0d 94 88 0d 	jmp	0x21b10	; 0x21b10 <lcd_wizard()>
    753c:	0c 94 44 d0 	jmp	0x1a088	; 0x1a088 <mbl_mesh_toggle()>
    7540:	0c 94 40 ea 	jmp	0x1d480	; 0x1d480 <analogWrite+0x8a>
    7544:	0c 94 f1 cd 	jmp	0x19be2	; 0x19be2 <turnOffPWM+0xaa>
    7548:	0d 94 a4 10 	jmp	0x22148	; 0x22148 <lcd_settings_menu()::{lambda()#1}::_FUN()>
    754c:	0c 94 6f d3 	jmp	0x1a6de	; 0x1a6de <lcd_fsensor_settings_menu()>
    7550:	0c 94 07 ce 	jmp	0x19c0e	; 0x19c0e <xyzcal_calc_delay(unsigned int, unsigned int)>
    7554:	0d 94 97 1d 	jmp	0x23b2e	; 0x23b2e <lcd_menu_fails_stats_mmu() [clone .lto_priv.415]>
    7558:	0c 94 66 ea 	jmp	0x1d4cc	; 0x1d4cc <analogWrite+0xd6>
    755c:	0c 94 25 fb 	jmp	0x1f64a	; 0x1f64a <lcd_wizard(WizState)+0x28a>
    7560:	0c 94 74 cf 	jmp	0x19ee8	; 0x19ee8 <lcd_mesh_calibration()>
    7564:	0d 94 82 51 	jmp	0x2a304	; 0x2a304 <mFilamentItem(unsigned int, unsigned int)+0x13e>
    7568:	0d 94 ee 0b 	jmp	0x217dc	; 0x217dc <lcd_commands() [clone .part.41]+0x8fa>
    756c:	0c 94 4e e2 	jmp	0x1c49c	; 0x1c49c <mmu_cut_filament_wrapper(unsigned char)>
    7570:	0c 94 9d ce 	jmp	0x19d3a	; 0x19d3a <lcd_thermal_model_cal()>
    7574:	0d 94 f8 2c 	jmp	0x259f0	; 0x259f0 <lcdui_print_status_line()+0x2f2>
    7578:	0c 94 03 ce 	jmp	0x19c06	; 0x19c06 <check_pinda_1()>
    757c:	0c 94 32 d3 	jmp	0x1a664	; 0x1a664 <lcd_sdcard_stop()>
    7580:	0d 94 71 74 	jmp	0x2e8e2	; 0x2e8e2 <global constructors keyed to 65535_0_adc.cpp.obj.14581>
    7584:	0d 94 c3 1f 	jmp	0x23f86	; 0x23f86 <pid_extruder()>
    7588:	0c 94 25 e0 	jmp	0x1c04a	; 0x1c04a <lcd_crash_mode_info2()>
    758c:	0c 94 7b cf 	jmp	0x19ef6	; 0x19ef6 <lcd_mesh_calibration_z()>
    7590:	0d 94 c3 29 	jmp	0x25386	; 0x25386 <lcd_move_e()>
    7594:	0c 94 f5 cd 	jmp	0x19bea	; 0x19bea <turnOffPWM+0xb2>
    7598:	0d 94 64 2a 	jmp	0x254c8	; 0x254c8 <lcd_pause_print()>

0000759c <__trampolines_end>:
    759c:	6e 61       	ori	r22, 0x1E	; 30
    759e:	6e 00       	.word	0x006e	; ????

000075a0 <__c.2228>:
    75a0:	69 6e 66 00 00 40 7a 10 f3 5a 00 a0 72 4e 18 09     inf..@z..Z..rN..
    75b0:	00 10 a5 d4 e8 00 00 e8 76 48 17 00 00 e4 0b 54     ........vH.....T
    75c0:	02 00 00 ca 9a 3b 00 00 00 e1 f5 05 00 00 80 96     .....;..........
    75d0:	98 00 00 00 40 42 0f 00 00 00 a0 86 01 00 00 00     ....@B..........
    75e0:	10 27 00 00 00 00 e8 03 00 00 00 00 64 00 00 00     .'..........d...
    75f0:	00 00 0a 00 00 00 00 00 01 00 00 00 00 00 2c 76     ..............,v
    7600:	d8 88 dc 67 4f 08 23 df c1 df ae 59 e1 b1 b7 96     ...gO.#....Y....
    7610:	e5 e3 e4 53 c6 3a e6 51 99 76 96 e8 e6 c2 84 26     ...S.:.Q.v.....&
    7620:	eb 89 8c 9b 62 ed 40 7c 6f fc ef bc 9c 9f 40 f2     ....b.@|o.....@.
    7630:	ba a5 6f a5 f4 90 05 5a 2a f7 5c 93 6b 6c f9 67     ..o....Z*.\.kl.g
    7640:	6d c1 1b fc e0 e4 0d 47 fe f5 20 e6 b5 00 d0 ed     m......G.. .....
    7650:	90 2e 03 00 94 35 77 05 00 80 84 1e 08 00 00 20     .....5w........ 
    7660:	4e 0a 00 00 00 c8 0c 33 33 33 33 0f 98 6e 12 83     N......3333..n..
    7670:	11 41 ef 8d 21 14 89 3b e6 55 16 cf fe e6 db 18     .A..!..;.U......
    7680:	d1 84 4b 38 1b f7 7c 1d 90 1d a4 bb e4 24 20 32     ..K8..|......$ 2
    7690:	84 72 5e 22 81 00 c9 f1 24 ec a1 e5 3d 27           .r^"....$...='

0000769e <enquecommand(char const*, bool)::__c>:
    769e:	22 00                                               ".

000076a0 <mp_echo_config_state()::__c>:
	...

000076a1 <mp_echo_config_state()::__c>:
    76a1:	20 45 53 50 00                                       ESP.

000076a6 <mp_echo_config_state()::__c>:
    76a6:	20 4e 53 50 00                                       NSP.

000076ab <mp_echo_config_state()::__c>:
    76ab:	20 4f 46 46 00                                       OFF.

000076b0 <mp_echo_config_state()::__c>:
    76b0:	20 4f 4e 00                                          ON.

000076b4 <mp_echo_config_state()::__c>:
    76b4:	50 56 30 31 00                                      PV01.

000076b9 <mp_echo_config_state()::__c>:
    76b9:	20 5b 4d 50 5d 20 00                                 [MP] .

000076c0 <get_command()::__c>:
    76c0:	25 69 20 68 6f 75 72 73 20 25 69 20 6d 69 6e 75     %i hours %i minu
    76d0:	74 65 73 00                                         tes.

000076d4 <get_command()::__c>:
    76d4:	52 58 20 74 69 6d 65 6f 75 74 00                    RX timeout.

000076df <get_command()::__c>:
    76df:	4d 33 31 30 00                                      M310.

000076e4 <get_command()::__c>:
    76e4:	4d 31 31 32 00                                      M112.

000076e9 <get_command()::__c>:
    76e9:	4d 31 31 30 00                                      M110.

000076ee <get_command()::__c>:
    76ee:	46 75 6c 6c 20 52 58 20 42 75 66 66 65 72 00        Full RX Buffer.

000076fd <Config_StoreSettings()::__c>:
    76fd:	53 65 74 74 69 6e 67 73 20 53 74 6f 72 65 64 00     Settings Stored.

0000770d <thermal_model_load_settings()::__c>:
    770d:	54 4d 3a 20 73 74 6f 72 65 64 20 63 61 6c 69 62     TM: stored calib
    771d:	72 61 74 69 6f 6e 20 69 6e 76 61 6c 69 64 2c 20     ration invalid, 
    772d:	72 65 73 65 74 74 69 6e 67 00                       resetting.

00007737 <Config_RetrieveSettings()::__c>:
    7737:	53 74 6f 72 65 64 20 73 65 74 74 69 6e 67 73 20     Stored settings 
    7747:	72 65 74 72 69 65 76 65 64 00                       retrieved.

00007751 <Config_ResetDefault()::__c>:
    7751:	48 61 72 64 63 6f 64 65 64 20 44 65 66 61 75 6c     Hardcoded Defaul
    7761:	74 20 53 65 74 74 69 6e 67 73 20 4c 6f 61 64 65     t Settings Loade
    7771:	64 00                                               d.

00007773 <default_conf>:
    7773:	56 32 00 00 00 00 c8 42 00 00 c8 42 00 00 c8 43     V2.....B...B...C
    7783:	00 00 8c 43 00 00 48 43 00 00 48 43 00 00 40 41     ...C..HC..HC..@A
    7793:	00 00 f0 42 e8 03 00 00 e8 03 00 00 c8 00 00 00     ...B............
    77a3:	88 13 00 00 00 40 9c 44 00 40 9c 44 00 00 00 00     .....@.D.@.D....
    77b3:	00 00 00 00 20 4e 00 00 00 00 20 41 00 00 20 41     .... N.... A.. A
    77c3:	cd cc cc 3e 00 00 90 40 00 00 00 00 00 00 00 00     ...>...@........
    77d3:	00 00 00 00 cd cc cc 3e 00 00 70 41 07 45 f3 3e     .......>..pA.E.>
    77e3:	01 60 ea 42 8f 42 fc 42 e6 5a 34 3f 4c 62 b0 45     .`.B.B.B.Z4?Lb.E
    77f3:	00 00 00 00 00 40 40 00 00 34 42 00 00 00 00 00     .....@@..4B.....
    7803:	00 00 00 00 00 00 41 00 00 00 e0 3f 00 00 c8 42     ......A....?...B
    7813:	00 00 c8 42 00 00 40 41 00 00 f0 42 c0 03 00 00     ...B..@A...B....
    7823:	c0 03 00 00 c8 00 00 00 88 13 00 00 10 10 10 20     ............... 
    7833:	00 40 9c 44 00 00 80 3f 00 00 00 3f 19 14 00 00     .@.D...?...?....
	...

00007844 <eeprom_default_sheet_name(unsigned char, SheetName&)::__c>:
    7844:	43 75 73 74 6f 6d 00                                Custom.

0000784b <eeprom_default_sheet_name(unsigned char, SheetName&)::__c>:
    784b:	4e 79 6c 6f 6e 50 41 00                             NylonPA.

00007853 <eeprom_default_sheet_name(unsigned char, SheetName&)::__c>:
    7853:	53 61 74 69 6e 20 20 00                             Satin  .

0000785b <eeprom_default_sheet_name(unsigned char, SheetName&)::__c>:
    785b:	54 65 78 74 75 72 00                                Textur.

00007862 <eeprom_default_sheet_name(unsigned char, SheetName&)::__c>:
    7862:	53 6d 6f 6f 74 68 00                                Smooth.

00007869 <fanSpeedError(unsigned char)::__c>:
    7869:	48 6f 74 65 6e 64 20 66 61 6e 20 73 70 65 65 64     Hotend fan speed
    7879:	20 69 73 20 6c 6f 77 65 72 20 74 68 61 6e 20 65      is lower than e
    7889:	78 70 65 63 74 65 64 00                             xpected.

00007891 <fanSpeedError(unsigned char)::__c>:
    7891:	50 72 69 6e 74 20 66 61 6e 20 73 70 65 65 64 20     Print fan speed 
    78a1:	69 73 20 6c 6f 77 65 72 20 74 68 61 6e 20 65 78     is lower than ex
    78b1:	70 65 63 74 65 64 00                                pected.

000078b8 <la10c_mode_change(LA10C_MODE)::__c>:
    78b8:	31 2e 30 00                                         1.0.

000078bc <la10c_mode_change(LA10C_MODE)::__c>:
    78bc:	31 2e 35 00                                         1.5.

000078c0 <la10c_mode_change(LA10C_MODE)::__c>:
    78c0:	55 4e 4b 4e 4f 57 4e 00                             UNKNOWN.

000078c8 <la10c_mode_change(LA10C_MODE)::__c>:
    78c8:	4c 41 31 30 43 3a 20 4c 69 6e 65 61 72 20 41 64     LA10C: Linear Ad
    78d8:	76 61 6e 63 65 20 6d 6f 64 65 3a 20 00              vance mode: .

000078e5 <la10c_jerk(float)::__c>:
    78e5:	4c 41 31 30 43 3a 20 41 64 6a 75 73 74 65 64 20     LA10C: Adjusted 
    78f5:	45 2d 4a 65 72 6b 3a 20 00                          E-Jerk: .

000078fe <_PRI_LANG_SIGNATURE>:
    78fe:	ff ff ff ff                                         ....

00007902 <Font>:
    7902:	3e 0f a8 af 00 48 00 69 96 00 00 df 60 25 55 58     >....H.i....`%UX
    7912:	87 68 04 27 f2 e0 00 5e 34 03 cc 19 60 f3 3c 0e     .h.'...^4...`.<.
    7922:	f8 8f 00 db 08 02 94 92 00 3e 1c 07 9a 87 00 e5     .........>......
    7932:	24 00 85 28 52 7e 06 00 1b e4 00 7e 78 12 70 78     $..(R~.....~x.px
    7942:	70 61 f8 12 78 8f 88 41 78 42 70 78 70 61 78 25     pa..x..AxBpxpax%
    7952:	70 78 70 61 f8 50 78 8f 88 d1 f0 25 27 07 87 61     pxpa.Px....%'..a
    7962:	f0 25 27 8f 88 41 2c 0d 27 aa 50 d1 bc 07 07 87     .%'..A,.'.P.....
    7972:	11 61 be 78 8f 88 11 41 78 52 70 78 70 61 f8 52     .a.x...AxRpxpa.R
    7982:	78 8f 88 41 20 12 78 88 70 63 20 52 78 88 70 63     x..A .x.pc Rx.pc
    7992:	48 52 78 88 87 43 03 11 17 99 70 64 18 12 78 f8     HRx..C....pd..x.
    79a2:	70 65 44 12 f8 f8 f0 45 18 42 78 f8 70 65 18 25     peD....E.Bx.pe.%
    79b2:	78 f8 70 65 18 52 78 f8 70 65 18 50 78 f8 70 65     x.pe.Rx.pe.Px.pe
    79c2:	0c 07 8f 87 23 65 a2 0f 8f 8f 11 45 00 12 06 22     ....#e.....E..."
    79d2:	70 69 00 12 07 22 27 49 00 25 06 22 70 69 00 25     pi..."'I.%."pi.%
    79e2:	07 22 27 49 00 12 06 22 27 6c 02 62 36 a2 70 6c     ."'I..."'l.b6.pl
    79f2:	40 45 6c 44 70 4c 03 62 22 22 70 6c 43 88 88 88     @ElDpL.b""plC...
    7a02:	f0 4c 78 12 bc 88 80 6e 78 52 bc 88 80 6e 38 12     .Lx....nxR...n8.
    7a12:	78 88 70 6f 78 12 78 88 87 4f 38 42 78 88 70 6f     x.pox.x..O8Bx.po
    7a22:	38 25 78 88 70 6f 3a 00 79 ac 78 6f 3d 07 9a ac     8%x.po:.y.xo=...
    7a32:	78 6f 78 50 78 88 87 ef 39 49 78 88 70 6f 08 52     xoxPx...9Ix.po.R
    7a42:	bc 88 80 72 98 52 f8 8f 98 52 20 12 78 70 f0 73     ...r.R...R .xp.s
    7a52:	48 12 78 63 87 53 20 52 78 70 f0 73 48 52 78 63     H.xc.S Rxp.sHRxc
    7a62:	87 53 10 07 87 0f 24 73 12 78 63 87 24 53 60 69     .S....$s.xc.$S`i
    7a72:	9a 98 8b e2 23 04 e4 44 30 74 10 4e 44 43 24 74     ....#..D0t.NDC$t
    7a82:	7c 12 88 89 60 75 3c 50 88 88 70 55 78 25 28 89     |...`u<P..pUx%(.
    7a92:	60 75 79 49 08 89 60 75 3c 12 88 70 70 79 0c 12     `uyI..`u<..ppy..
    7aa2:	88 52 22 59 44 12 f1 24 f0 7a 44 52 f1 24 f0 7a     .R"YD..$.zDR.$.z
    7ab2:	8c 52 f0 36 8f 5a 44 20 f1 24 f0 7a                 .R.6.ZD .$.z

00007abe <row_offsets>:
    7abe:	00 40 14 54                                         .@.T

00007ac2 <pwr_m10>:
    7ac2:	cd cc cc 3d 0a d7 23 3c 17 b7 d1 38 77 cc 2b 32     ...=..#<...8w.+2
    7ad2:	95 95 e6 24 1f b1 4f 0a                             ...$..O.

00007ada <pwr_p10>:
    7ada:	00 00 20 41 00 00 c8 42 00 40 1c 46 20 bc be 4c     .. A...B.@.F ..L
    7aea:	ca 1b 0e 5a ae c5 9d 74                             ...Z...t

00007af2 <pstr_nan>:
    7af2:	4e 41 4e                                            NAN

00007af5 <pstr_inf>:
    7af5:	49 4e 46                                            INF

00007af8 <host_keepalive()::__c>:
    7af8:	62 75 73 79 3a 20 70 61 75 73 65 64 20 66 6f 72     busy: paused for
    7b08:	20 69 6e 70 75 74 00                                 input.

00007b0f <host_keepalive()::__c>:
    7b0f:	62 75 73 79 3a 20 70 61 75 73 65 64 20 66 6f 72     busy: paused for
    7b1f:	20 75 73 65 72 00                                    user.

00007b25 <host_keepalive()::__c>:
    7b25:	62 75 73 79 3a 20 70 72 6f 63 65 73 73 69 6e 67     busy: processing
	...

00007b36 <base_max_pos_P>:
    7b36:	00 00 7f 43 00 80 54 43 00 00 52 43                 ...C..TC..RC

00007b42 <base_min_pos_P>:
    7b42:	00 00 00 00 00 00 80 c0 9a 99 19 3e                 ...........>

00007b4e <base_home_pos_P>:
    7b4e:	00 00 00 00 00 00 80 c0 9a 99 19 3e                 ...........>

00007b5a <home_retract_mm_P>:
    7b5a:	00 00 a0 40 00 00 a0 40 00 00 00 40                 ...@...@...@

00007b66 <homeaxis(unsigned char, unsigned char, unsigned char*)::__c>:
    7b66:	25 33 64 20 73 74 65 70 3d 25 32 64 20 6d 73 63     %3d step=%2d msc
    7b76:	6e 74 3d 25 34 64 0a 00                             nt=%4d..

00007b7e <max_length_P>:
    7b7e:	00 00 7f 43 00 80 58 43 9a d9 51 43                 ...C..XC..QC

00007b8a <home_dir_P>:
    7b8a:	ff ff ff                                            ...

00007b8d <gcode_M105()::__c>:
    7b8d:	20 41 3a 00                                          A:.

00007b91 <gcode_M105()::__c>:
    7b91:	20 50 3a 00                                          P:.

00007b95 <gcode_M105()::__c>:
    7b95:	20 42 40 3a 00                                       B@:.

00007b9a <gcode_M105()::__c>:
    7b9a:	20 40 3a 00                                          @:.

00007b9e <gcode_M105()::__c>:
    7b9e:	20 2f 00                                             /.

00007ba1 <gcode_M105()::__c>:
    7ba1:	20 54 30 3a 00                                       T0:.

00007ba6 <gcode_M105()::__c>:
    7ba6:	20 2f 00                                             /.

00007ba9 <gcode_M105()::__c>:
    7ba9:	20 42 3a 00                                          B:.

00007bad <gcode_M105()::__c>:
    7bad:	20 2f 00                                             /.

00007bb0 <gcode_M105()::__c>:
    7bb0:	54 3a 00                                            T:.

00007bb3 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const::__c>:
    7bb3:	25 53 45 78 63 65 73 73 69 76 65 20 62 65 64 20     %SExcessive bed 
    7bc3:	6c 65 76 65 6c 69 6e 67 20 63 6f 72 72 65 63 74     leveling correct
    7bd3:	69 6f 6e 3a 20 25 69 20 6d 69 63 72 6f 6e 73 0a     ion: %i microns.
	...

00007be4 <gcode_G80()::__c>:
    7be4:	42 65 64 20 6c 65 76 65 6c 69 6e 67 20 66 61 69     Bed leveling fai
    7bf4:	6c 65 64 2e 20 54 6f 6f 20 6d 75 63 68 20 76 61     led. Too much va
    7c04:	72 69 61 74 69 6f 6e 20 66 72 6f 6d 20 65 65 70     riation from eep
    7c14:	72 6f 6d 20 6d 65 73 68 00                          rom mesh.

00007c1d <gcode_G80()::__c>:
    7c1d:	42 65 64 20 6c 65 76 65 6c 69 6e 67 20 66 61 69     Bed leveling fai
    7c2d:	6c 65 64 2e 20 53 65 6e 73 6f 72 20 74 72 69 67     led. Sensor trig
    7c3d:	67 65 72 65 64 20 74 6f 6f 20 73 6f 6f 6e 00        gered too soon.

00007c4c <mesh_bed_leveling::print()::__c>:
    7c4c:	20 20 00                                              .

00007c4f <mesh_bed_leveling::print()::__c>:
    7c4f:	4d 65 61 73 75 72 65 64 20 70 6f 69 6e 74 73 3a     Measured points:
	...

00007c60 <mesh_bed_leveling::print()::__c>:
    7c60:	5a 20 73 65 61 72 63 68 20 68 65 69 67 68 74 3a     Z search height:
    7c70:	20 35 2e 30 66 00                                    5.0f.

00007c76 <mesh_bed_leveling::print()::__c>:
    7c76:	4e 75 6d 20 58 2c 59 3a 20 37 2c 37 00              Num X,Y: 7,7.

00007c83 <gcode_G81_M420()::__c>:
    7c83:	4d 65 73 68 20 62 65 64 20 6c 65 76 65 6c 69 6e     Mesh bed levelin
    7c93:	67 20 6e 6f 74 20 61 63 74 69 76 65 2e 00           g not active..

00007ca1 <gcode_M114()::__c>:
    7ca1:	20 45 3a 00                                          E:.

00007ca5 <gcode_M114()::__c>:
    7ca5:	20 5a 3a 00                                          Z:.

00007ca9 <gcode_M114()::__c>:
    7ca9:	20 59 3a 00                                          Y:.

00007cad <gcode_M114()::__c>:
    7cad:	20 45 3a 00                                          E:.

00007cb1 <gcode_M114()::__c>:
    7cb1:	20 5a 3a 00                                          Z:.

00007cb5 <gcode_M114()::__c>:
    7cb5:	20 59 3a 00                                          Y:.

00007cb9 <gcode_M114()::__c>:
    7cb9:	58 3a 00                                            X:.

00007cbc <SpoolJoin::SpoolJoin::nextSlot()::__c>:
    7cbc:	20 2d 3e 20 00                                       -> .

00007cc1 <SpoolJoin::SpoolJoin::nextSlot()::__c>:
    7cc1:	53 70 6f 6f 6c 4a 6f 69 6e 3a 20 00                 SpoolJoin: .

00007ccd <gcode_M861_print_pinda_cal_eeprom()::comma_sep>:
    7ccd:	2c 20 00                                            , .

00007cd0 <manage_inactivity(bool)::__c>:
    7cd0:	49 6e 61 63 74 69 76 69 74 79 20 53 68 75 74 64     Inactivity Shutd
    7ce0:	6f 77 6e 00                                         own.

00007ce4 <kill(char const*)::__c>:
    7ce4:	4b 49 4c 4c 45 44 2e 00                             KILLED..

00007cec <kill(char const*)::__c>:
    7cec:	50 72 69 6e 74 65 72 20 68 61 6c 74 65 64 2e 20     Printer halted. 
    7cfc:	6b 69 6c 6c 28 29 20 63 61 6c 6c 65 64 21 00        kill() called!.

00007d0b <check_babystep()::__c>:
    7d0b:	5a 20 6c 69 76 65 20 61 64 6a 75 73 74 20 6f 75     Z live adjust ou
    7d1b:	74 20 6f 66 20 72 61 6e 67 65 2e 20 53 65 74 74     t of range. Sett
    7d2b:	69 6e 67 20 74 6f 20 30 2e 20 43 6c 69 63 6b 20     ing to 0. Click 
    7d3b:	74 6f 20 63 6f 6e 74 69 6e 75 65 2e 00              to continue..

00007d48 <check_babystep()::__c>:
    7d48:	5a 20 6c 69 76 65 20 61 64 6a 75 73 74 20 6f 75     Z live adjust ou
    7d58:	74 20 6f 66 20 72 61 6e 67 65 2e 20 53 65 74 74     t of range. Sett
    7d68:	69 6e 67 20 74 6f 20 30 00                          ing to 0.

00007d71 <serialecho_temperatures()::__c>:
    7d71:	20 45 3a 30 20 42 3a 00                              E:0 B:.

00007d79 <serialecho_temperatures()::__c>:
    7d79:	54 3a 00                                            T:.

00007d7c <stop_and_save_print_to_ram(float, float)::__c>:
    7d7c:	47 31 20 5a 25 2d 2e 33 66 20 46 25 2d 2e 33 66     G1 Z%-.3f F%-.3f
	...

00007d8d <TCodeInvalid()::__c>:
    7d8d:	49 6e 76 61 6c 69 64 20 54 20 63 6f 64 65 2e 00     Invalid T code..

00007d9d <duplicate_Tcode_ignored>:
    7d9d:	44 75 70 6c 69 63 61 74 65 20 54 2d 63 6f 64 65     Duplicate T-code
    7dad:	20 69 67 6e 6f 72 65 64 2e 00                        ignored..

00007db7 <gcode_M900()::__c>:
    7db7:	41 64 76 61 6e 63 65 20 4b 3d 00                    Advance K=.

00007dc2 <gcode_M900()::__c>:
    7dc2:	4b 20 6f 75 74 20 6f 66 20 61 6c 6c 6f 77 65 64     K out of allowed
    7dd2:	20 72 61 6e 67 65 21 00                              range!.

00007dda <_sPrinterName>:
    7dda:	4d 4b 33 00                                         MK3.

00007dde <_sPrinterMmuName>:
    7dde:	4d 4b 33 4d 4d 55 33 00                             MK3MMU3.

00007de6 <_nPrinterMmuType>:
    7de6:	5c 76                                               \v

00007de8 <_nPrinterType>:
    7de8:	2c 01                                               ,.

00007dea <lcd_wait_for_heater()::__c>:
    7dea:	25 33 64 2f 25 33 64 00                             %3d/%3d.

00007df2 <M600_wait_for_user()::__c>:
    7df2:	25 33 64 00                                         %3d.

00007df6 <lcd_alright()::__c>:
    7df6:	20 0a 20 0a 20 0a 20 00                              . . . .

00007dfe <Config_PrintSettings(unsigned char)::__c>:
    7dfe:	25 53 53 74 61 74 69 73 74 69 63 73 3a 0a 25 53     %SStatistics:.%S
    7e0e:	20 20 4d 37 38 20 53 25 6c 75 20 54 25 6c 75 0a       M78 S%lu T%lu.
	...

00007e1f <Config_PrintSettings(unsigned char)::__c>:
    7e1f:	25 53 41 72 63 20 53 65 74 74 69 6e 67 73 3a 20     %SArc Settings: 
    7e2f:	50 3a 4d 61 78 20 6c 65 6e 67 74 68 28 6d 6d 29     P:Max length(mm)
    7e3f:	20 53 3a 4d 69 6e 20 6c 65 6e 67 74 68 20 28 6d      S:Min length (m
    7e4f:	6d 29 20 4e 3a 43 6f 72 72 65 63 74 69 6f 6e 73     m) N:Corrections
    7e5f:	20 52 3a 4d 69 6e 20 73 65 67 6d 65 6e 74 73 20      R:Min segments 
    7e6f:	46 3a 53 65 67 6d 65 6e 74 73 2f 73 65 63 2e 0a     F:Segments/sec..
    7e7f:	25 53 20 20 4d 32 31 34 20 50 25 2e 32 66 20 53     %S  M214 P%.2f S
    7e8f:	25 2e 32 66 20 4e 25 64 20 52 25 64 20 46 25 64     %.2f N%d R%d F%d
    7e9f:	0a 00                                               ..

00007ea1 <Config_PrintSettings(unsigned char)::__c>:
    7ea1:	25 53 46 69 6c 61 6d 65 6e 74 20 73 65 74 74 69     %SFilament setti
    7eb1:	6e 67 73 3a 20 44 69 73 61 62 6c 65 64 0a 00        ngs: Disabled..

00007ec0 <Config_PrintSettings(unsigned char)::__c>:
    7ec0:	25 53 46 69 6c 61 6d 65 6e 74 20 73 65 74 74 69     %SFilament setti
    7ed0:	6e 67 73 3a 0a 25 53 20 20 20 4d 32 30 30 20 44     ngs:.%S   M200 D
    7ee0:	25 2e 32 66 0a 00                                   %.2f..

00007ee6 <Config_PrintSettings(unsigned char)::__c>:
    7ee6:	25 53 52 65 74 72 61 63 74 3a 20 53 3d 4c 65 6e     %SRetract: S=Len
    7ef6:	67 74 68 20 28 6d 6d 29 20 46 3a 53 70 65 65 64     gth (mm) F:Speed
    7f06:	20 28 6d 6d 2f 6d 29 20 5a 3a 20 5a 4c 69 66 74      (mm/m) Z: ZLift
    7f16:	20 28 6d 6d 29 0a 25 53 20 20 20 4d 32 30 37 20      (mm).%S   M207 
    7f26:	53 25 2e 32 66 20 46 25 2e 32 66 20 5a 25 2e 32     S%.2f F%.2f Z%.2
    7f36:	66 0a 25 53 52 65 63 6f 76 65 72 3a 20 53 3d 45     f.%SRecover: S=E
    7f46:	78 74 72 61 20 6c 65 6e 67 74 68 20 28 6d 6d 29     xtra length (mm)
    7f56:	20 46 3a 53 70 65 65 64 20 28 6d 6d 2f 6d 29 0a      F:Speed (mm/m).
    7f66:	25 53 20 20 20 4d 32 30 38 20 53 25 2e 32 66 20     %S   M208 S%.2f 
    7f76:	46 25 2e 32 66 0a 25 53 41 75 74 6f 2d 52 65 74     F%.2f.%SAuto-Ret
    7f86:	72 61 63 74 3a 20 53 3d 30 20 74 6f 20 64 69 73     ract: S=0 to dis
    7f96:	61 62 6c 65 2c 20 31 20 74 6f 20 69 6e 74 65 72     able, 1 to inter
    7fa6:	70 72 65 74 20 65 78 74 72 75 64 65 2d 6f 6e 6c     pret extrude-onl
    7fb6:	79 20 6d 6f 76 65 73 20 61 73 20 72 65 74 72 61     y moves as retra
    7fc6:	63 74 73 20 6f 72 20 72 65 63 6f 76 65 72 69 65     cts or recoverie
    7fd6:	73 0a 25 53 20 20 20 4d 32 30 39 20 53 25 64 0a     s.%S   M209 S%d.
	...

00007fe7 <Config_PrintSettings(unsigned char)::__c>:
    7fe7:	25 53 50 49 44 20 68 65 61 74 62 65 64 20 73 65     %SPID heatbed se
    7ff7:	74 74 69 6e 67 73 3a 0a 25 53 20 20 20 4d 33 30     ttings:.%S   M30
    8007:	34 20 50 25 2e 32 66 20 49 25 2e 32 66 20 44 25     4 P%.2f I%.2f D%
    8017:	2e 32 66 0a 00                                      .2f..

0000801c <Config_PrintSettings(unsigned char)::__c>:
    801c:	25 53 50 49 44 20 73 65 74 74 69 6e 67 73 3a 0a     %SPID settings:.
    802c:	25 53 20 20 20 4d 33 30 31 20 50 25 2e 32 66 20     %S   M301 P%.2f 
    803c:	49 25 2e 32 66 20 44 25 2e 32 66 0a 00              I%.2f D%.2f..

00008049 <Config_PrintSettings(unsigned char)::__c>:
    8049:	25 53 53 74 65 70 73 20 70 65 72 20 75 6e 69 74     %SSteps per unit
    8059:	3a 0a 25 53 20 20 4d 39 32 20 58 25 2e 32 66 20     :.%S  M92 X%.2f 
    8069:	59 25 2e 32 66 20 5a 25 2e 32 66 20 45 25 2e 32     Y%.2f Z%.2f E%.2
    8079:	66 0a 25 53 55 53 74 65 70 20 72 65 73 6f 6c 75     f.%SUStep resolu
    8089:	74 69 6f 6e 3a 20 0a 25 53 20 4d 33 35 30 20 58     tion: .%S M350 X
    8099:	25 64 20 59 25 64 20 5a 25 64 20 45 25 64 0a 25     %d Y%d Z%d E%d.%
    80a9:	53 4d 61 78 69 6d 75 6d 20 66 65 65 64 72 61 74     SMaximum feedrat
    80b9:	65 73 20 2d 20 6e 6f 72 6d 61 6c 20 28 6d 6d 2f     es - normal (mm/
    80c9:	73 29 3a 0a 25 53 20 20 4d 32 30 33 20 58 25 2e     s):.%S  M203 X%.
    80d9:	32 66 20 59 25 2e 32 66 20 5a 25 2e 32 66 20 45     2f Y%.2f Z%.2f E
    80e9:	25 2e 32 66 0a 25 53 4d 61 78 69 6d 75 6d 20 66     %.2f.%SMaximum f
    80f9:	65 65 64 72 61 74 65 73 20 2d 20 73 74 65 61 6c     eedrates - steal
    8109:	74 68 20 28 6d 6d 2f 73 29 3a 0a 25 53 20 20 4d     th (mm/s):.%S  M
    8119:	32 30 33 20 58 25 2e 32 66 20 59 25 2e 32 66 20     203 X%.2f Y%.2f 
    8129:	5a 25 2e 32 66 20 45 25 2e 32 66 0a 25 53 4d 61     Z%.2f E%.2f.%SMa
    8139:	78 69 6d 75 6d 20 61 63 63 65 6c 65 72 61 74 69     ximum accelerati
    8149:	6f 6e 20 2d 20 6e 6f 72 6d 61 6c 20 28 6d 6d 2f     on - normal (mm/
    8159:	73 32 29 3a 0a 25 53 20 20 4d 32 30 31 20 58 25     s2):.%S  M201 X%
    8169:	6c 75 20 59 25 6c 75 20 5a 25 6c 75 20 45 25 6c     lu Y%lu Z%lu E%l
    8179:	75 0a 25 53 4d 61 78 69 6d 75 6d 20 61 63 63 65     u.%SMaximum acce
    8189:	6c 65 72 61 74 69 6f 6e 20 2d 20 73 74 65 61 6c     leration - steal
    8199:	74 68 20 28 6d 6d 2f 73 32 29 3a 0a 25 53 20 20     th (mm/s2):.%S  
    81a9:	4d 32 30 31 20 58 25 6c 75 20 59 25 6c 75 20 5a     M201 X%lu Y%lu Z
    81b9:	25 6c 75 20 45 25 6c 75 0a 25 53 41 63 63 65 6c     %lu E%lu.%SAccel
    81c9:	65 72 61 74 69 6f 6e 3a 20 50 3d 70 72 69 6e 74     eration: P=print
    81d9:	2c 20 52 3d 72 65 74 72 61 63 74 2c 20 54 3d 74     , R=retract, T=t
    81e9:	72 61 76 65 6c 0a 25 53 20 20 4d 32 30 34 20 50     ravel.%S  M204 P
    81f9:	25 2e 32 66 20 52 25 2e 32 66 20 54 25 2e 32 66     %.2f R%.2f T%.2f
    8209:	0a 25 53 41 64 76 61 6e 63 65 64 20 76 61 72 69     .%SAdvanced vari
    8219:	61 62 6c 65 73 3a 20 53 3d 4d 69 6e 20 66 65 65     ables: S=Min fee
    8229:	64 72 61 74 65 20 28 6d 6d 2f 73 29 2c 20 54 3d     drate (mm/s), T=
    8239:	4d 69 6e 20 74 72 61 76 65 6c 20 66 65 65 64 72     Min travel feedr
    8249:	61 74 65 20 28 6d 6d 2f 73 29 2c 20 42 3d 6d 69     ate (mm/s), B=mi
    8259:	6e 69 6d 75 6d 20 73 65 67 6d 65 6e 74 20 74 69     nimum segment ti
    8269:	6d 65 20 28 75 73 29 2c 20 58 3d 6d 61 78 69 6d     me (us), X=maxim
    8279:	75 6d 20 58 59 20 6a 65 72 6b 20 28 6d 6d 2f 73     um XY jerk (mm/s
    8289:	29 2c 20 20 5a 3d 6d 61 78 69 6d 75 6d 20 5a 20     ),  Z=maximum Z 
    8299:	6a 65 72 6b 20 28 6d 6d 2f 73 29 2c 20 20 45 3d     jerk (mm/s),  E=
    82a9:	6d 61 78 69 6d 75 6d 20 45 20 6a 65 72 6b 20 28     maximum E jerk (
    82b9:	6d 6d 2f 73 29 0a 25 53 20 20 4d 32 30 35 20 53     mm/s).%S  M205 S
    82c9:	25 2e 32 66 20 54 25 2e 32 66 20 42 25 6c 75 20     %.2f T%.2f B%lu 
    82d9:	58 25 2e 32 66 20 59 25 2e 32 66 20 5a 25 2e 32     X%.2f Y%.2f Z%.2
    82e9:	66 20 45 25 2e 32 66 0a 25 53 48 6f 6d 65 20 6f     f E%.2f.%SHome o
    82f9:	66 66 73 65 74 20 28 6d 6d 29 3a 0a 25 53 20 20     ffset (mm):.%S  
    8309:	4d 32 30 36 20 58 25 2e 32 66 20 59 25 2e 32 66     M206 X%.2f Y%.2f
    8319:	20 5a 25 2e 32 66 0a 00                              Z%.2f..

00008321 <thermal_model_cal::autotune(int)::__c>:
    8321:	54 4d 3a 20 52 5b 25 75 5d 20 65 73 74 69 6d 61     TM: R[%u] estima
    8331:	74 65 2e 00                                         te..

00008335 <thermal_model_cal::autotune(int)::__c>:
    8335:	54 4d 3a 20 25 53 20 52 20 25 64 43 00              TM: %S R %dC.

00008342 <thermal_model_cal::autotune(int)::__c>:
    8342:	54 4d 3a 20 25 53 20 43 20 65 73 74 2e 00           TM: %S C est..

00008350 <thermal_model_cal::autotune(int)::__c>:
    8350:	54 4d 3a 20 63 6f 6f 6c 20 64 6f 77 6e 20 3c 25     TM: cool down <%
    8360:	64 43 00                                            dC.

00008363 <thermal_model_cal::autotune(int)::__c>:
    8363:	72 65 66 69 6e 65 00                                refine.

0000836a <thermal_model_cal::autotune(int)::__c>:
    836a:	69 6e 69 74 69 61 6c 00                             initial.

00008372 <thermal_model_autotune(int, bool)::__c>:
    8372:	54 4d 3a 20 63 61 6c 69 62 72 2e 20 66 61 69 6c     TM: calibr. fail
    8382:	65 64 21 00                                         ed!.

00008386 <thermal_model_autotune(int, bool)::__c>:
    8386:	54 4d 3a 20 63 61 6c 69 62 72 61 74 69 6f 6e 20     TM: calibration 
    8396:	73 74 61 72 74 00                                   start.

0000839c <thermal_model_autotune(int, bool)::__c>:
    839c:	54 4d 3a 20 43 61 6c 2e 20 4e 4f 54 20 49 44 4c     TM: Cal. NOT IDL
    83ac:	45 00                                               E.

000083ae <cap_line(char const*, bool)::__c>:
    83ae:	43 61 70 3a 25 53 3a 25 63 0a 00                    Cap:%S:%c..

000083b9 <extended_capabilities_report()::__c>:
    83b9:	50 52 55 53 41 5f 4d 4d 55 32 00                    PRUSA_MMU2.

000083c4 <extended_capabilities_report()::__c>:
    83c4:	45 58 54 45 4e 44 45 44 5f 4d 32 30 00              EXTENDED_M20.

000083d1 <extended_capabilities_report()::__c>:
    83d1:	41 55 54 4f 52 45 50 4f 52 54 5f 50 4f 53 49 54     AUTOREPORT_POSIT
    83e1:	49 4f 4e 00                                         ION.

000083e5 <extended_capabilities_report()::__c>:
    83e5:	41 55 54 4f 52 45 50 4f 52 54 5f 46 41 4e 53 00     AUTOREPORT_FANS.

000083f5 <extended_capabilities_report()::__c>:
    83f5:	41 55 54 4f 52 45 50 4f 52 54 5f 54 45 4d 50 00     AUTOREPORT_TEMP.

00008405 <show_upgrade_dialog_if_version_newer(char const*)::__c>:
	...

00008406 <FW_VERSION_STR>:
    8406:	33 2e 31 34 2e 31 00                                3.14.1.

0000840d <CardReader::removeFile(char const*)::__c>:
    840d:	44 65 6c 65 74 69 6f 6e 20 66 61 69 6c 65 64 2c     Deletion failed,
    841d:	20 46 69 6c 65 3a 20 00                              File: .

00008425 <CardReader::removeFile(char const*)::__c>:
    8425:	46 69 6c 65 20 64 65 6c 65 74 65 64 3a 00           File deleted:.

00008433 <CardReader::getStatus(bool)::__c>:
    8433:	4e 6f 74 20 53 44 20 70 72 69 6e 74 69 6e 67 00     Not SD printing.

00008443 <CardReader::getStatus(bool)::__c>:
    8443:	50 72 69 6e 74 20 73 61 76 65 64 00                 Print saved.

0000844f <CardReader::getStatus(bool)::__c>:
    844f:	53 44 20 70 72 69 6e 74 20 70 61 75 73 65 64 00     SD print paused.

0000845f <lcd_wait_for_pinda(float)::__c>:
    845f:	25 33 64 2f 25 33 64 00                             %3d/%3d.

00008467 <gcode_PRUSA_BadRAMBoFanTest()::__c>:
    8467:	4f 4b 00                                            OK.

0000846a <gcode_PRUSA_BadRAMBoFanTest()::__c>:
    846a:	42 41 44 00                                         BAD.

0000846e <gcode_PRUSA_BadRAMBoFanTest()::__c>:
    846e:	52 41 4d 42 6f 20 46 41 4e 20 00                    RAMBo FAN .

00008479 <crashdet_detected(unsigned char)::__c>:
    8479:	43 52 41 53 48 5f 43 41 4e 43 45 4c 00              CRASH_CANCEL.

00008486 <crashdet_detected(unsigned char)::__c>:
    8486:	43 52 41 53 48 5f 52 45 43 4f 56 45 52 00           CRASH_RECOVER.

00008494 <crashdet_detected(unsigned char)::__c>:
    8494:	43 52 41 53 48 5f 52 45 43 4f 56 45 52 00           CRASH_RECOVER.

000084a2 <_ZZ16process_commandsvE3__c__97_>:
    84a2:	22 28 32 29 00                                      "(2).

000084a7 <_ZZ16process_commandsvE3__c__96_>:
    84a7:	25 53 3a 20 25 53 0a 00                             %S: %S..

000084af <_ZZ16process_commandsvE3__c__95_>:
    84af:	2c 20 4d 39 30 37 20 45 20 69 67 6e 6f 72 65 64     , M907 E ignored
	...

000084c0 <_ZZ16process_commandsvE3__c__94_>:
    84c0:	6e 6f 20 76 61 6c 69 64 20 63 6f 6d 6d 61 6e 64     no valid command
	...

000084d1 <_ZZ16process_commandsvE3__c__93_>:
    84d1:	7a 65 72 6f 72 69 7a 65 64 00                       zerorized.

000084db <_ZZ16process_commandsvE3__c__92_>:
    84db:	66 61 63 74 6f 72 79 20 72 65 73 74 6f 72 65 64     factory restored
	...

000084ec <_ZZ16process_commandsvE3__c__90_>:
    84ec:	69 6e 64 65 78 2c 20 74 65 6d 70 2c 20 75 73 74     index, temp, ust
    84fc:	65 70 2c 20 75 6d 00                                ep, um.

00008503 <_ZZ16process_commandsvE3__c__91_>:
    8503:	50 49 4e 44 41 20 63 61 6c 20 73 74 61 74 75 73     PINDA cal status
    8513:	3a 20 00                                            : .

00008516 <_ZZ16process_commandsvE3__c__89_>:
    8516:	50 3a 00                                            P:.

00008519 <_ZZ16process_commandsvE3__c__88_>:
    8519:	57 61 69 74 20 66 6f 72 20 50 49 4e 44 41 20 74     Wait for PINDA t
    8529:	61 72 67 65 74 20 74 65 6d 70 65 72 61 74 75 72     arget temperatur
    8539:	65 3a 00                                            e:.

0000853c <_ZZ16process_commandsvE3__c__87_>:
    853c:	20 41 00                                             A.

0000853f <_ZZ16process_commandsvE3__c__86_>:
    853f:	20 50 00                                             P.

00008542 <_ZZ16process_commandsvE3__c__85_>:
    8542:	20 42 00                                             B.

00008545 <_ZZ16process_commandsvE3__c__84_>:
    8545:	20 4c 00                                             L.

00008548 <_ZZ16process_commandsvE3__c__83_>:
    8548:	20 52 00                                             R.

0000854b <_ZZ16process_commandsvE3__c__82_>:
    854b:	20 5a 00                                             Z.

0000854e <_ZZ16process_commandsvE3__c__81_>:
    854e:	20 4e 4f 54 20 49 4e 49 54 49 41 4c 49 5a 45 44      NOT INITIALIZED
	...

0000855f <_ZZ16process_commandsvE3__c__80_>:
    855f:	53 68 65 65 74 20 00                                Sheet .

00008566 <_ZZ16process_commandsvE3__c__79_>:
    8566:	20 5a 20 56 41 4c 55 45 20 4f 55 54 20 4f 46 20      Z VALUE OUT OF 
    8576:	52 41 4e 47 45 00                                   RANGE.

0000857c <_ZZ16process_commandsvE3__c__78_>:
    857c:	49 6e 76 61 6c 69 64 20 73 68 65 65 74 20 49 44     Invalid sheet ID
    858c:	2e 20 41 6c 6c 6f 77 65 64 3a 20 30 2e 2e 00        . Allowed: 0...

0000859b <_ZZ16process_commandsvE3__c__77_>:
    859b:	41 55 54 4f 00                                      AUTO.

000085a0 <_ZZ16process_commandsvE3__c__76_>:
    85a0:	4c 41 4e 47 20 53 45 4c 20 46 4f 52 43 45 44 00     LANG SEL FORCED.

000085b0 <_ZZ16process_commandsvE3__c__75_>:
    85b0:	4d 32 35 36 20 42 25 64 20 44 25 64 20 53 25 64     M256 B%d D%d S%d
    85c0:	20 54 25 75 0a 00                                    T%u..

000085c6 <_ZZ16process_commandsvE3__c__74_>:
    85c6:	20 64 3a 00                                          d:.

000085ca <_ZZ16process_commandsvE3__c__73_>:
    85ca:	20 69 3a 00                                          i:.

000085ce <_ZZ16process_commandsvE3__c__72_>:
    85ce:	20 70 3a 00                                          p:.

000085d2 <_ZZ16process_commandsvE3__c__71_>:
    85d2:	20 64 3a 00                                          d:.

000085d6 <_ZZ16process_commandsvE3__c__70_>:
    85d6:	20 69 3a 00                                          i:.

000085da <_ZZ16process_commandsvE3__c__69_>:
    85da:	20 70 3a 00                                          p:.

000085de <_ZZ16process_commandsvE3__c__68_>:
    85de:	25 69 25 25 0a 00                                   %i%%..

000085e4 <_ZZ16process_commandsvE3__c__67_>:
    85e4:	25 69 25 25 0a 00                                   %i%%..

000085ea <_ZZ16process_commandsvE3__c__66_>:
    85ea:	22 28 31 29 00                                      "(1).

000085ef <_ZZ16process_commandsvE3__c__59_>:
    85ef:	2f 2f 00                                            //.

000085f2 <_ZZ16process_commandsvE3__c__58_>:
	...

000085f3 <_ZZ16process_commandsvE3__c__57_>:
    85f3:	20 45 58 54 52 55 44 45 52 5f 43 4f 55 4e 54 3a      EXTRUDER_COUNT:
    8603:	31 00                                               1.

00008605 <_ZZ16process_commandsvE3__c__56_>:
    8605:	20 4d 41 43 48 49 4e 45 5f 54 59 50 45 3a 00         MACHINE_TYPE:.

00008614 <_ZZ16process_commandsvE3__c__55_>:
    8614:	31 2e 30 00                                         1.0.

00008618 <_ZZ16process_commandsvE3__c__54_>:
    8618:	20 62 61 73 65 64 20 6f 6e 20 4d 61 72 6c 69 6e      based on Marlin
    8628:	20 46 49 52 4d 57 41 52 45 5f 55 52 4c 3a 68 74      FIRMWARE_URL:ht
    8638:	74 70 73 3a 2f 2f 67 69 74 68 75 62 2e 63 6f 6d     tps://github.com
    8648:	2f 70 72 75 73 61 33 64 2f 50 72 75 73 61 2d 46     /prusa3d/Prusa-F
    8658:	69 72 6d 77 61 72 65 20 50 52 4f 54 4f 43 4f 4c     irmware PROTOCOL
    8668:	5f 56 45 52 53 49 4f 4e 3a 00                       _VERSION:.

00008672 <_ZZ16process_commandsvE3__c__53_>:
    8672:	37 37 33 31 30 32 34 65 64 00                       7731024ed.

0000867c <_ZZ16process_commandsvE3__c__52_>:
    867c:	5f 00                                               _.

0000867e <_ZZ16process_commandsvE3__c__51_>:
    867e:	38 32 37 39 00                                      8279.

00008683 <_ZZ16process_commandsvE3__c__50_>:
    8683:	2b 00                                               +.

00008685 <_ZZ16process_commandsvE3__c__49_>:
    8685:	46 49 52 4d 57 41 52 45 5f 4e 41 4d 45 3a 50 72     FIRMWARE_NAME:Pr
    8695:	75 73 61 2d 46 69 72 6d 77 61 72 65 20 00           usa-Firmware .

000086a3 <_ZZ16process_commandsvE3__c__48_>:
    86a3:	4d 31 31 33 20 53 00                                M113 S.

000086aa <_ZZ16process_commandsvE3__c__47_>:
    86aa:	6f 6b 20 00                                         ok .

000086ae <_ZZ16process_commandsvE3__c__41_>:
    86ae:	6e 2f 61 00                                         n/a.

000086b2 <_ZZ16process_commandsvE3__c__40_>:
    86b2:	3f 54 6f 73 68 69 62 61 20 46 6c 61 73 68 41 69     ?Toshiba FlashAi
    86c2:	72 20 47 65 74 49 50 20 66 61 69 6c 65 64 0a 00     r GetIP failed..

000086d2 <sensitive_pins>:
    86d2:	00 01 25 31 1d 0c 40 24 30 1c 0b 45 23 2f 1b 0a     ..%1..@$0..E#/..
    86e2:	17 ff 04 06 22 2b 1a 03 36 37 35 38                 ...."+..6758

000086ee <_ZZ16process_commandsvE3__c__39_>:
    86ee:	25 69 20 6d 69 6e 2c 20 25 69 20 73 65 63 00        %i min, %i sec.

000086fd <_ZZ16process_commandsvE3__c__36_>:
    86fd:	49 6e 76 61 6c 69 64 20 4d 20 63 6f 64 65 3a 20     Invalid M code: 
    870d:	25 73 0a 00                                         %s..

00008711 <_ZZ16process_commandsvE3__c__30_>:
    8711:	50 49 4e 44 41 20 70 72 6f 62 65 20 63 61 6c 69     PINDA probe cali
    8721:	62 72 61 74 69 6f 6e 20 73 74 61 72 74 00           bration start.

0000872f <_ZZ16process_commandsvE3__c__29_>:
    872f:	4e 6f 20 50 49 4e 44 41 20 74 68 65 72 6d 69 73     No PINDA thermis
    873f:	74 6f 72 00                                         tor.

00008743 <_ZZ16process_commandsvE3__c__25_>:
    8743:	73 65 74 00                                         set.

00008747 <_ZZ16process_commandsvE3__c__24_>:
    8747:	6e 6f 7a 7a 6c 65 00                                nozzle.

0000874e <_ZZ16process_commandsvE3__c__23_>:
    874e:	4d 42 4c 00                                         MBL.

00008752 <_ZZ16process_commandsvE3__c__22_>:
    8752:	46 52 00                                            FR.

00008755 <_ZZ16process_commandsvE3__c__21_>:
    8755:	4c 7a 00                                            Lz.

00008758 <_ZZ16process_commandsvE3__c__20_>:
    8758:	4c 61 6e 67 00                                      Lang.

0000875d <_ZZ16process_commandsvE3__c__19_>:
    875d:	31 5f 37 35 6d 6d 5f 4d 4b 33 2d 45 49 4e 53 79     1_75mm_MK3-EINSy
    876d:	5f 31 30 61 2d 45 33 44 52 45 56 4f 5f 48 46 5f     _10a-E3DREVO_HF_
    877d:	36 30 57 00                                         60W.

00008781 <_ZZ16process_commandsvE3__c__18_>:
    8781:	52 65 76 00                                         Rev.

00008785 <_ZZ16process_commandsvE3__c__17_>:
    8785:	33 2e 31 34 2e 31 2d 38 32 37 39 00                 3.14.1-8279.

00008791 <_ZZ16process_commandsvE3__c__16_>:
    8791:	46 69 72 00                                         Fir.

00008795 <_ZZ16process_commandsvE3__c__15_>:
    8795:	53 4e 20 69 6e 76 61 6c 69 64 00                    SN invalid.

000087a0 <_ZZ16process_commandsvE3__c__14_>:
    87a0:	53 4e 00                                            SN.

000087a3 <_ZZ16process_commandsvE3__c__13_>:
    87a3:	52 45 53 45 54 00                                   RESET.

000087a9 <_ZZ16process_commandsvE3__c__12_>:
    87a9:	4d 4d 55 52 45 53 00                                MMURES.

000087b0 <_ZZ16process_commandsvE3__c__11_>:
    87b0:	75 76 6c 6f 00                                      uvlo.

000087b5 <process_commands()::__c>:
    87b5:	46 41 4e 00                                         FAN.

000087b9 <process_commands()::__c>:
    87b9:	46 41 4e 50 49 4e 54 53 54 00                       FANPINTST.

000087c3 <process_commands()::__c>:
    87c3:	50 52 55 53 41 00                                   PRUSA.

000087c9 <process_commands()::__c>:
    87c9:	53 45 54 5f 43 48 4f 50 5f 00                       SET_CHOP_.

000087d3 <process_commands()::__c>:
    87d3:	53 45 54 5f 53 54 45 50 5f 00                       SET_STEP_.

000087dd <process_commands()::__c>:
    87dd:	53 45 54 5f 57 41 56 45 5f 00                       SET_WAVE_.

000087e7 <process_commands()::__c>:
    87e7:	54 4d 43 5f 00                                      TMC_.

000087ec <process_commands()::__c>:
    87ec:	43 52 41 53 48 5f 43 41 4e 43 45 4c 00              CRASH_CANCEL.

000087f9 <process_commands()::__c>:
    87f9:	43 52 41 53 48 5f 52 45 43 4f 56 45 52 00           CRASH_RECOVER.

00008807 <process_commands()::__c>:
    8807:	43 52 41 53 48 5f 44 45 54 45 43 54 45 44 00        CRASH_DETECTED.

00008816 <process_commands()::__c>:
    8816:	43 52 41 53 48 5f 00                                CRASH_.

0000881d <lay1cal_finish()::cmd_cal_finish_8>:
    881d:	4d 31 30 34 53 30 00                                M104S0.

00008824 <lay1cal_finish()::cmd_cal_finish_6>:
    8824:	47 31 58 31 30 59 31 38 30 46 34 30 30 30 00        G1X10Y180F4000.

00008833 <lay1cal_finish()::cmd_cal_finish_5>:
    8833:	47 31 5a 31 30 46 31 33 30 30 00                    G1Z10F1300.

0000883e <lay1cal_finish()::cmd_cal_finish_4>:
    883e:	4d 31 34 30 53 30 00                                M140S0.

00008845 <lay1cal_finish()::cmd_cal_finish_3>:
    8845:	47 31 45 2d 30 2e 30 37 35 46 32 31 30 30 00        G1E-0.075F2100.

00008854 <lay1cal_before_meander()::cmd_pre_meander_6>:
    8854:	4d 32 30 34 53 31 30 30 30 00                       M204S1000.

0000885e <lay1cal_before_meander()::cmd_pre_meander_5>:
    885e:	47 31 5a 35 46 37 32 30 30 00                       G1Z5F7200.

00008868 <lay1cal_before_meander()::cmd_pre_meander_4>:
    8868:	47 31 45 2d 31 2e 35 46 32 31 30 30 00              G1E-1.5F2100.

00008875 <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_11>:
    8875:	47 31 5a 30 2e 32 00                                G1Z0.2.

0000887c <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_10>:
    887c:	47 31 58 32 30 32 2e 35 45 38 46 31 34 30 30 00     G1X202.5E8F1400.

0000888c <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_9>:
    888c:	47 31 59 2d 32 46 31 30 30 30 00                    G1Y-2F1000.

00008897 <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_8>:
    8897:	47 31 58 32 34 30 45 32 35 46 32 32 30 30 00        G1X240E25F2200.

000088a6 <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_6>:
    88a6:	47 31 5a 30 2e 33 46 31 30 30 30 00                 G1Z0.3F1000.

000088b2 <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_5>:
    88b2:	47 31 58 35 35 45 38 46 32 30 30 30 00              G1X55E8F2000.

000088bf <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_4>:
    88bf:	47 31 58 35 45 32 39 46 31 38 30 30 00              G1X5E29F1800.

000088cc <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu_3>:
    88cc:	47 31 58 35 35 45 32 39 46 31 30 37 33 00           G1X55E29F1073.

000088da <zero_extrusion>:
    88da:	47 39 32 45 30 00                                   G92E0.

000088e0 <lay1cal_wait_preheat()::preheat_cmd_4>:
    88e0:	47 32 38 00                                         G28.

000088e4 <lay1cal_wait_preheat()::preheat_cmd_3>:
    88e4:	4d 31 30 39 00                                      M109.

000088e9 <lay1cal_wait_preheat()::preheat_cmd_2>:
    88e9:	4d 31 39 30 00                                      M190.

000088ee <lcd_mesh_bedleveling()::__c>:
    88ee:	47 38 30 00                                         G80.

000088f2 <lcd_mesh_calibration()::__c>:
    88f2:	4d 34 35 00                                         M45.

000088f6 <lcd_mesh_calibration_z()::__c>:
    88f6:	4d 34 35 20 5a 00                                   M45 Z.

000088fc <lcd_calibrate_pinda()::__c>:
    88fc:	47 37 36 00                                         G76.

00008900 <lcd_wizard_load()::__c>:
    8900:	4d 37 30 31 20 50 30 00                             M701 P0.

00008908 <lcd_wizard(WizState)::__c>:
    8908:	57 69 7a 61 72 64 20 73 74 61 74 65 3a 20 25 64     Wizard state: %d
    8918:	0a 00                                               ..

0000891a <SETTINGS_SILENT_MODE()::__c>:
    891a:	4d 39 31 34 00                                      M914.

0000891f <SETTINGS_SILENT_MODE()::__c>:
    891f:	4d 39 31 35 00                                      M915.

00008924 <lcd_hw_setup_menu()::__c>:
    8924:	45 78 70 65 72 69 6d 65 6e 74 61 6c 00              Experimental.

00008931 <lcd_hw_setup_menu()::__c>:
    8931:	30 2e 38 30 00                                      0.80.

00008936 <lcd_hw_setup_menu()::__c>:
    8936:	30 2e 36 30 00                                      0.60.

0000893b <lcd_hw_setup_menu()::__c>:
    893b:	30 2e 34 30 00                                      0.40.

00008940 <lcd_hw_setup_menu()::__c>:
    8940:	30 2e 32 35 00                                      0.25.

00008945 <lcd_settings_menu()::__c>:
    8945:	52 65 73 65 74 20 4d 4d 55 00                       Reset MMU.

0000894f <lcd_settings_menu()::__c>:
    894f:	4d 4d 55 00                                         MMU.

00008953 <lcd_calibration_menu()::__c>:
    8953:	4d 34 34 00                                         M44.

00008957 <lcd_main_menu()::__c>:
    8957:	30 2e 38 30 00                                      0.80.

0000895c <lcd_main_menu()::__c>:
    895c:	30 2e 36 30 00                                      0.60.

00008961 <lcd_main_menu()::__c>:
    8961:	30 2e 34 30 00                                      0.40.

00008966 <lcd_main_menu()::__c>:
    8966:	30 2e 32 35 00                                      0.25.

0000896b <lcd_tune_menu()::__c>:
    896b:	47 32 38 20 58 59 00                                G28 XY.

00008972 <check_commands()::__c>:
    8972:	4d 20 38 34 00                                      M 84.

00008977 <lcd_sdcard_menu()::__c>:
    8977:	85 2e 2e 00                                         ....

0000897b <lcd_belttest()::__c>:
    897b:	59 3a 20 25 75 20 2d 3e 20 2e 2e 2e 00              Y: %u -> ....

00008988 <lcd_belttest()::__c>:
    8988:	58 3a 20 25 75 20 2d 3e 20 2e 2e 2e 00              X: %u -> ....

00008995 <lcd_wait_for_cool_down()::__c>:
    8995:	25 33 64 2f 30 00                                   %3d/0.

0000899b <lcd_wait_for_cool_down()::__c>:
    899b:	25 33 64 2f 30 00                                   %3d/0.

000089a1 <lcd_selfcheck_axis_sg(unsigned char)::__c>:
    89a1:	25 63 20 41 58 49 53 20 53 47 31 3d 25 64 0a 00     %c AXIS SG1=%d..

000089b1 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)::__c>:
    89b1:	48 6f 74 65 6e 64 00                                Hotend.

000089b8 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)::__c>:
    89b8:	42 65 64 00                                         Bed.

000089bc <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)::__c>:
    89bc:	5a 00                                               Z.

000089be <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)::__c>:
    89be:	59 00                                               Y.

000089c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)::__c>:
    89c0:	58 00                                               X.

000089c2 <_ZL13STR_SEPARATOR.lto_priv.444>:
    89c2:	2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d 2d     ----------------
    89d2:	2d 2d 2d 2d 00                                      ----.

000089d7 <WorkaroundPrusaSN()::__c>:
    89d7:	43 5a 50 58 49 6e 76 61 6c 69 64 53 65 72 69 61     CZPXInvalidSeria
    89e7:	6c 4e 72 00                                         lNr.

000089eb <lay1cal_finish()::cmd_cal_finish>:
    89eb:	9b 69 9f 69 45 88 3e 88 33 88 24 88 37 6b 1d 88     .i.iE.>.3.$.7k..
    89fb:	a2 6a                                               .j

000089fd <extrude_fmt_Y>:
    89fd:	47 31 59 25 2e 34 66 45 25 2e 34 66 00              G1Y%.4fE%.4f.

00008a0a <lay1cal_meander_start(float, float)::fmt1>:
    8a0a:	47 31 5a 25 2e 32 66 00                             G1Z%.2f.

00008a12 <lay1cal_meander_start(float, float)::__c>:
    8a12:	47 31 58 35 30 59 31 35 35 00                       G1X50Y155.

00008a1c <lay1cal_before_meander()::cmd_pre_meander>:
    8a1c:	da 88 9b 69 3c 6b 68 88 5e 88 54 88                 ...i<kh.^.T.

00008a28 <extrude_fmt_X>:
    8a28:	47 31 58 25 2e 34 66 45 25 2e 34 66 00              G1X%.4fE%.4f.

00008a35 <feedrate_F1080>:
    8a35:	47 31 46 31 30 38 30 00                             G1F1080.

00008a3d <lay1cal_intro_line(bool, float, float)::cmd_intro_mmu>:
    8a3d:	cc 88 bf 88 b2 88 a6 88 da 88 97 88 8c 88 7c 88     ..............|.
    8a4d:	75 88                                               u.

00008a4f <lay1cal_load_filament(unsigned char)::__c>:
    8a4f:	54 25 64 00                                         T%d.

00008a53 <lay1cal_load_filament(unsigned char)::__c>:
    8a53:	47 31 5a 30 2e 34 00                                G1Z0.4.

00008a5a <lay1cal_load_filament(unsigned char)::__c>:
    8a5a:	47 31 59 2d 33 46 31 30 30 30 00                    G1Y-3F1000.

00008a65 <lay1cal_wait_preheat()::preheat_cmd>:
    8a65:	9f 69 e9 88 e4 88 e0 88 da 88                       .i........

00008a6f <lcd_commands()::__c>:
    8a6f:	4d 38 34 20 58 59 00                                M84 XY.

00008a76 <lcd_commands()::__c>:
    8a76:	47 31 20 58 31 32 35 20 5a 32 30 30 20 46 31 30     G1 X125 Z200 F10
    8a86:	30 30 00                                            00.

00008a89 <lcd_commands()::__c>:
    8a89:	4d 33 31 30 20 41 20 46 31 00                       M310 A F1.

00008a93 <lcd_commands()::__c>:
    8a93:	47 31 20 58 31 32 35 20 59 31 30 35 20 5a 31 20     G1 X125 Y105 Z1 
    8aa3:	46 38 30 30 30 00                                   F8000.

00008aa9 <lcd_commands()::__c>:
    8aa9:	49 6e 76 61 6c 69 64 20 50 49 44 20 63 61 6c 2e     Invalid PID cal.
    8ab9:	20 72 65 73 75 6c 74 73 2e 20 4e 6f 74 20 73 74      results. Not st
    8ac9:	6f 72 65 64 20 74 6f 20 45 45 50 52 4f 4d 2e 00     ored to EEPROM..

00008ad9 <lcd_commands()::__c>:
    8ad9:	4d 33 30 31 20 50 25 2e 32 66 20 49 25 2e 32 66     M301 P%.2f I%.2f
    8ae9:	20 44 25 2e 32 66 00                                 D%.2f.

00008af0 <lcd_commands()::__c>:
    8af0:	4d 33 30 33 20 45 30 20 53 25 33 75 00              M303 E0 S%3u.

00008afd <STR_REVISION_RC>:
    8afd:	52 43 00                                            RC.

00008b00 <STR_REVISION_DEV>:
    8b00:	44 45 56 00                                         DEV.

00008b04 <STR_REVISION_BETA>:
    8b04:	42 45 54 41 00                                      BETA.

00008b09 <STR_REVISION_ALPHA>:
    8b09:	41 4c 50 48 41 00                                   ALPHA.

00008b0f <port_to_mode_PGM>:
    8b0f:	00 00 21 00 24 00 27 00 2a 00 2d 00 30 00 33 00     ..!.$.'.*.-.0.3.
    8b1f:	01 01 00 00 04 01 07 01 0a 01                       ..........

00008b29 <port_to_output_PGM>:
    8b29:	00 00 22 00 25 00 28 00 2b 00 2e 00 31 00 34 00     ..".%.(.+...1.4.
    8b39:	02 01 00 00 05 01 08 01 0b 01                       ..........

00008b43 <port_to_input_PGM>:
    8b43:	00 00 20 00 23 00 26 00 29 00 2c 00 2f 00 32 00     .. .#.&.).,./.2.
    8b53:	00 01 00 00 03 01 06 01 09 01                       ..........

00008b5d <digital_pin_to_port_PGM>:
    8b5d:	05 05 05 05 07 05 08 08 08 08 02 02 02 02 0a 0a     ................
    8b6d:	08 08 04 04 04 04 01 01 01 01 01 01 01 01 03 03     ................
    8b7d:	03 03 03 03 03 03 04 07 07 07 0c 0c 0c 0c 0c 0c     ................
    8b8d:	0c 0c 02 02 02 02 06 06 06 06 06 06 06 06 0b 0b     ................
    8b9d:	0b 0b 0b 0b 0b 0b 07 07 0a 0a 0a 0a 0a 0a 05 05     ................
    8bad:	05 04 04 04 08 08                                   ......

00008bb3 <digital_pin_to_bit_mask_PGM>:
    8bb3:	01 02 10 20 20 08 08 10 20 40 10 20 40 80 02 01     ...  ... @. @...
    8bc3:	02 01 08 04 02 01 01 02 04 08 10 20 40 80 80 40     ........... @..@
    8bd3:	20 10 08 04 02 01 80 04 02 01 80 40 20 10 08 04      ..........@ ...
    8be3:	02 01 08 04 02 01 01 02 04 08 10 20 40 80 01 02     ........... @...
    8bf3:	04 08 10 20 40 80 10 08 04 08 80 10 20 40 04 40     ... @....... @.@
    8c03:	80 10 20 40 04 80                                   .. @..

00008c09 <digital_pin_to_timer_PGM>:
    8c09:	00 00 0a 0b 02 09 0c 0d 0e 08 07 03 04 01 00 00     ................
	...
    8c35:	12 11 10 00 00 00 00 00 00 00 00 00 00 00 00 00     ................
	...

00008c5f <lcd_splash()::__c>:
    8c5f:	33 2e 31 34 2e 31 00                                3.14.1.

00008c66 <lcd_splash()::__c>:
    8c66:	0a 20 4f 72 69 67 69 6e 61 6c 20 50 72 75 73 61     . Original Prusa
    8c76:	20 69 33 0a 20 20 20 50 72 75 73 61 20 52 65 73      i3.   Prusa Res
    8c86:	65 61 72 63 68 0a 25 32 30 2e 32 30 53 00           earch.%20.20S.

00008c94 <update_sec_lang_from_external_flash()::__c>:
    8c94:	4c 61 6e 67 75 61 67 65 20 75 70 64 61 74 65 00     Language update.

00008ca4 <get_PRUSA_SN(char*)::__c>:
    8ca4:	43 5a 50 58 00                                      CZPX.

00008ca9 <get_PRUSA_SN(char*)::__c>:
    8ca9:	3b 53 00                                            ;S.

00008cac <SpoolJoin::SpoolJoin::initSpoolJoinStatus()::__c>:
    8cac:	53 70 6f 6f 6c 4a 6f 69 6e 20 69 73 20 00           SpoolJoin is .

00008cba <adc_init()::__c>:
    8cba:	61 64 63 5f 69 6e 69 74 00                          adc_init.

00008cc3 <reset_menu()::__c>:
    8cc3:	20 0a 20 0a 20 0a 20 00                              . . . .

00008ccb <reset_menu()::__c>:
    8ccb:	41 6c 6c 20 44 61 74 61 00                          All Data.

00008cd4 <reset_menu()::__c>:
    8cd4:	53 65 72 76 69 63 65 20 70 72 65 70 00              Service prep.

00008ce1 <reset_menu()::__c>:
    8ce1:	53 68 69 70 70 69 6e 67 20 70 72 65 70 00           Shipping prep.

00008cef <reset_menu()::__c>:
    8cef:	53 74 61 74 69 73 74 69 63 73 00                    Statistics.

00008cfa <reset_menu()::__c>:
    8cfa:	4c 61 6e 67 75 61 67 65 00                          Language.

00008d03 <_ZZL13factory_resetcE3__c.lto_priv.535>:
    8d03:	45 52 41 53 49 4e 47 20 61 6c 6c 20 64 61 74 61     ERASING all data
	...

00008d14 <factory_reset()::__c>:
    8d14:	46 61 63 74 6f 72 79 20 52 45 53 45 54 00           Factory RESET.

00008d22 <FW_PRUSA3D_MAGIC_STR>:
    8d22:	50 52 55 53 41 33 44 46 57 00                       PRUSA3DFW.

00008d2c <_ZL8MSG_INT4.lto_priv.484>:
    8d2c:	49 4e 54 34 00                                      INT4.

00008d31 <FW_VERSION_NR>:
    8d31:	03 00 0e 00 01 00 40 00                             ......@.

00008d39 <setup::v3_2_0_4>:
    8d39:	03 00 02 00 00 00 04 00                             ........

00008d41 <setup::__c>:
    8d41:	70 72 75 73 61 33 64 00                             prusa3d.

00008d49 <setup::__c>:
    8d49:	32 30 32 35 2d 30 34 2d 32 32 20 32 32 3a 30 33     2025-04-22 22:03
    8d59:	3a 35 33 00                                         :53.

00008d5d <setup::__c>:
    8d5d:	20 33 2e 31 34 2e 31 2d 38 32 37 39 5f 37 37 33      3.14.1-8279_773
    8d6d:	31 30 32 34 65 64 00                                1024ed.

00008d74 <setup::__c>:
    8d74:	73 74 61 72 74 00                                   start.

00008d7a <setup::__c>:
    8d7a:	53 4e 20 75 70 64 61 74 65 20 66 61 69 6c 65 64     SN update failed
	...

00008d8b <setup::__c>:
    8d8b:	53 4e 20 75 70 64 61 74 65 64 00                    SN updated.

00008d96 <setup::__c>:
    8d96:	43 5a 50 58 00                                      CZPX.

00008d9b <loop::__c>:
    8d9b:	43 52 41 53 48 5f 44 45 54 45 43 54 45 44 58 59     CRASH_DETECTEDXY
	...

00008dac <loop::__c>:
    8dac:	43 52 41 53 48 5f 44 45 54 45 43 54 45 44 59 00     CRASH_DETECTEDY.

00008dbc <loop::__c>:
    8dbc:	43 52 41 53 48 5f 44 45 54 45 43 54 45 44 58 00     CRASH_DETECTEDX.

00008dcc <loop::__c>:
    8dcc:	4d 32 39 00                                         M29.

00008dd0 <menu_format_sheet_select_E(Sheet const&, SheetFormatBuffer&)::__c>:
    8dd0:	25 2d 39 2e 39 53 5b 00                             %-9.9S[.

00008dd8 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float)::__c>:
    8dd8:	54 4d 20 65 73 74 69 6d 61 74 69 6f 6e 20 64 69     TM estimation di
    8de8:	64 20 6e 6f 74 20 63 6f 6e 76 65 72 67 65 00        d not converge.

00008df7 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float)::__c>:
    8df7:	54 4d 20 69 74 65 72 3a 25 75 20 76 3a 25 2e 32     TM iter:%u v:%.2
    8e07:	66 20 65 3a 25 2e 33 66 0a 00                       f e:%.3f..

00008e11 <choose_menu_P(char const*, char const*, char const*)::__c>:
    8e11:	20 0a 20 0a 20 00                                    . . .

00008e17 <load_to_nozzle_sequence>:
    8e17:	00 00 48 42 00 00 58 41 9a 99 8d 41 33 33 53 40     ..HB..XA...A33S@

00008e27 <mmu2Magic>:
    8e27:	4d 4d 55 32 3a 00                                   MMU2:.

00008e2d <m2bed>:
    8e2d:	4d 49 4e 54 45 4d 50 20 42 45 44 20 66 69 78 65     MINTEMP BED fixe
    8e3d:	64 00                                               d.

00008e3f <m2hotend>:
    8e3f:	4d 49 4e 54 45 4d 50 20 48 4f 54 45 4e 44 20 66     MINTEMP HOTEND f
    8e4f:	69 78 65 64 00                                      ixed.

00008e54 <recover_machine_state_after_power_panic()::__c>:
    8e54:	72 65 63 6f 76 65 72 5f 6d 61 63 68 69 6e 65 5f     recover_machine_
    8e64:	73 74 61 74 65 5f 61 66 74 65 72 5f 70 6f 77 65     state_after_powe
    8e74:	72 5f 70 61 6e 69 63 2c 20 69 6e 69 74 69 61 6c     r_panic, initial
    8e84:	20 00                                                .

00008e86 <_ZZL25restore_print_from_eeprombE3__c__12_>:
    8e86:	50 52 55 53 41 20 75 76 6c 6f 00                    PRUSA uvlo.

00008e91 <_ZZL25restore_print_from_eeprombE3__c__11_>:
    8e91:	47 34 20 53 30 00                                   G4 S0.

00008e97 <_ZZL25restore_print_from_eeprombE3__c__10_>:
    8e97:	4d 31 31 30 20 4e 25 6c 75 00                       M110 N%lu.

00008ea1 <restore_print_from_eeprom(bool)::__c>:
    8ea1:	4d 32 36 20 53 25 6c 75 00                          M26 S%lu.

00008eaa <restore_print_from_eeprom(bool)::__c>:
    8eaa:	4d 31 30 36 20 53 25 75 00                          M106 S%u.

00008eb3 <restore_print_from_eeprom(bool)::__c>:
    8eb3:	47 31 20 46 25 64 00                                G1 F%d.

00008eba <restore_print_from_eeprom(bool)::__c>:
    8eba:	4d 38 32 00                                         M82.

00008ebe <restore_print_from_eeprom(bool)::__c>:
    8ebe:	47 39 32 20 45 25 2d 2e 33 66 00                    G92 E%-.3f.

00008ec9 <restore_print_from_eeprom(bool)::__c>:
    8ec9:	4d 32 30 34 20 50 25 2d 2e 31 66 20 52 25 2d 2e     M204 P%-.1f R%-.
    8ed9:	31 66 20 54 25 2d 2e 31 66 00                       1f T%-.1f.

00008ee3 <restore_print_from_eeprom(bool)::__c>:
    8ee3:	47 31 20 5a 25 2d 2e 33 66 00                       G1 Z%-.3f.

00008eed <restore_print_from_eeprom(bool)::__c>:
    8eed:	50 52 55 53 41 20 4d 42 4c 20 56 31 00              PRUSA MBL V1.

00008efa <restore_print_from_eeprom(bool)::__c>:
    8efa:	47 31 20 58 25 2d 2e 33 66 20 59 25 2d 2e 33 66     G1 X%-.3f Y%-.3f
    8f0a:	20 46 33 30 30 30 00                                 F3000.

00008f11 <restore_print_from_eeprom(bool)::__c>:
    8f11:	2c 20 66 65 65 64 6d 75 6c 74 69 70 6c 79 3a 00     , feedmultiply:.

00008f21 <restore_print_from_eeprom(bool)::__c>:
    8f21:	46 65 65 64 72 61 74 65 3a 00                       Feedrate:.

00008f2b <recover_print(unsigned char)::__c>:
    8f2b:	47 31 20 45 35 20 46 31 32 30 00                    G1 E5 F120.

00008f36 <recover_print(unsigned char)::__c>:
    8f36:	4d 31 30 39 20 53 25 64 00                          M109 S%d.

00008f3f <recover_print(unsigned char)::__c>:
    8f3f:	4d 31 34 30 20 53 25 64 00                          M140 S%d.

00008f48 <recover_print(unsigned char)::__c>:
    8f48:	4d 31 30 34 20 53 25 64 00                          M104 S%d.

00008f51 <recover_print(unsigned char)::__c>:
    8f51:	47 32 38 20 58 20 59 00                             G28 X Y.

00008f59 <recover_print(unsigned char)::__c>:
    8f59:	47 31 20 5a 25 2e 33 66 20 46 38 30 30 00           G1 Z%.3f F800.

00008f67 <crctab>:
    8f67:	00 00 21 10 42 20 63 30 84 40 a5 50 c6 60 e7 70     ..!.B c0.@.P.`.p
    8f77:	08 81 29 91 4a a1 6b b1 8c c1 ad d1 ce e1 ef f1     ..).J.k.........
    8f87:	31 12 10 02 73 32 52 22 b5 52 94 42 f7 72 d6 62     1...s2R".R.B.r.b
    8f97:	39 93 18 83 7b b3 5a a3 bd d3 9c c3 ff f3 de e3     9...{.Z.........
    8fa7:	62 24 43 34 20 04 01 14 e6 64 c7 74 a4 44 85 54     b$C4 ....d.t.D.T
    8fb7:	6a a5 4b b5 28 85 09 95 ee e5 cf f5 ac c5 8d d5     j.K.(...........
    8fc7:	53 36 72 26 11 16 30 06 d7 76 f6 66 95 56 b4 46     S6r&..0..v.f.V.F
    8fd7:	5b b7 7a a7 19 97 38 87 df f7 fe e7 9d d7 bc c7     [.z...8.........
    8fe7:	c4 48 e5 58 86 68 a7 78 40 08 61 18 02 28 23 38     .H.X.h.x@.a..(#8
    8ff7:	cc c9 ed d9 8e e9 af f9 48 89 69 99 0a a9 2b b9     ........H.i...+.
    9007:	f5 5a d4 4a b7 7a 96 6a 71 1a 50 0a 33 3a 12 2a     .Z.J.z.jq.P.3:.*
    9017:	fd db dc cb bf fb 9e eb 79 9b 58 8b 3b bb 1a ab     ........y.X.;...
    9027:	a6 6c 87 7c e4 4c c5 5c 22 2c 03 3c 60 0c 41 1c     .l.|.L.\",.<`.A.
    9037:	ae ed 8f fd ec cd cd dd 2a ad 0b bd 68 8d 49 9d     ........*...h.I.
    9047:	97 7e b6 6e d5 5e f4 4e 13 3e 32 2e 51 1e 70 0e     .~.n.^.N.>2.Q.p.
    9057:	9f ff be ef dd df fc cf 1b bf 3a af 59 9f 78 8f     ..........:.Y.x.
    9067:	88 91 a9 81 ca b1 eb a1 0c d1 2d c1 4e f1 6f e1     ..........-.N.o.
    9077:	80 10 a1 00 c2 30 e3 20 04 50 25 40 46 70 67 60     .....0. .P%@Fpg`
    9087:	b9 83 98 93 fb a3 da b3 3d c3 1c d3 7f e3 5e f3     ........=.....^.
    9097:	b1 02 90 12 f3 22 d2 32 35 42 14 52 77 62 56 72     .....".25B.RwbVr
    90a7:	ea b5 cb a5 a8 95 89 85 6e f5 4f e5 2c d5 0d c5     ........n.O.,...
    90b7:	e2 34 c3 24 a0 14 81 04 66 74 47 64 24 54 05 44     .4.$....ftGd$T.D
    90c7:	db a7 fa b7 99 87 b8 97 5f e7 7e f7 1d c7 3c d7     ........_.~...<.
    90d7:	d3 26 f2 36 91 06 b0 16 57 66 76 76 15 46 34 56     .&.6....Wfvv.F4V
    90e7:	4c d9 6d c9 0e f9 2f e9 c8 99 e9 89 8a b9 ab a9     L.m.../.........
    90f7:	44 58 65 48 06 78 27 68 c0 18 e1 08 82 38 a3 28     DXeH.x'h.....8.(
    9107:	7d cb 5c db 3f eb 1e fb f9 8b d8 9b bb ab 9a bb     }.\.?...........
    9117:	75 4a 54 5a 37 6a 16 7a f1 0a d0 1a b3 2a 92 3a     uJTZ7j.z.....*.:
    9127:	2e fd 0f ed 6c dd 4d cd aa bd 8b ad e8 9d c9 8d     ....l.M.........
    9137:	26 7c 07 6c 64 5c 45 4c a2 3c 83 2c e0 1c c1 0c     &|.ld\EL.<.,....
    9147:	1f ef 3e ff 5d cf 7c df 9b af ba bf d9 8f f8 9f     ..>.].|.........
    9157:	17 6e 36 7e 55 4e 74 5e 93 2e b2 3e d1 0e f0 1e     .n6~UNt^...>....

00009167 <SdBaseFile::make83Name(char const*, unsigned char*, char const**)::__c>:
    9167:	7c 3c 3e 3f 2f 2a 22 5c 00                          |<>?/*"\.

00009170 <speed_lookuptable_slow>:
    9170:	24 f4 d4 30 50 c3 8e 20 c2 a2 40 17 82 8b 70 11     $..0P.. ..@...p.
    9180:	12 7a 91 0d 81 6c d9 0a a8 61 e1 08 c7 58 66 07     .z...l...a...Xf.
    9190:	61 51 43 06 1e 4b 5d 05 c1 45 a7 04 1a 41 11 04     aQC..K]..E...A..
    91a0:	09 3d 98 03 71 39 31 03 40 36 db 02 65 33 91 02     .=..q91.@6..e3..
    91b0:	d4 30 54 02 80 2e 1d 02 63 2c ee 01 75 2a c5 01     .0T.....c,..u*..
    91c0:	b0 28 a0 01 10 27 81 01 8f 25 64 01 2b 24 4b 01     .(...'...%d.+$K.
    91d0:	e0 22 34 01 ac 21 1f 01 8d 20 0d 01 80 1f fc 00     ."4..!... ......
    91e0:	84 1e ed 00 97 1d df 00 b8 1c d2 00 e6 1b c6 00     ................
    91f0:	20 1b bc 00 64 1a b2 00 b2 19 a8 00 0a 19 a0 00      ...d...........
    9200:	6a 18 99 00 d1 17 91 00 40 17 8b 00 b5 16 84 00     j.......@.......
    9210:	31 16 7e 00 b3 15 79 00 3a 15 73 00 c7 14 6f 00     1.~...y.:.s...o.
    9220:	58 14 6a 00 ee 13 66 00 88 13 63 00 25 13 5e 00     X.j...f...c.%.^.
    9230:	c7 12 5b 00 6c 12 57 00 15 12 54 00 c1 11 51 00     ..[.l.W...T...Q.
    9240:	70 11 4f 00 21 11 4b 00 d6 10 49 00 8d 10 47 00     p.O.!.K...I...G.
    9250:	46 10 44 00 02 10 42 00 c0 0f 40 00 80 0f 3e 00     F.D...B...@...>.
    9260:	42 0f 3c 00 06 0f 3b 00 cb 0e 38 00 93 0e 37 00     B.<...;...8...7.
    9270:	5c 0e 35 00 27 0e 34 00 f3 0d 32 00 c1 0d 31 00     \.5.'.4...2...1.
    9280:	90 0d 30 00 60 0d 2e 00 32 0d 2d 00 05 0d 2c 00     ..0.`...2.-...,.
    9290:	d9 0c 2b 00 ae 0c 29 00 85 0c 29 00 5c 0c 27 00     ..+...)...).\.'.
    92a0:	35 0c 27 00 0e 0c 26 00 e8 0b 24 00 c4 0b 24 00     5.'...&...$...$.
    92b0:	a0 0b 23 00 7d 0b 23 00 5a 0b 21 00 39 0b 21 00     ..#.}.#.Z.!.9.!.
    92c0:	18 0b 20 00 f8 0a 1f 00 d9 0a 1e 00 bb 0a 1e 00     .. .............
    92d0:	9d 0a 1d 00 80 0a 1d 00 63 0a 1c 00 47 0a 1b 00     ........c...G...
    92e0:	2c 0a 1b 00 11 0a 1a 00 f7 09 1a 00 dd 09 19 00     ,...............
    92f0:	c4 09 19 00 ab 09 19 00 92 09 17 00 7b 09 18 00     ............{...
    9300:	63 09 17 00 4c 09 16 00 36 09 16 00 20 09 16 00     c...L...6... ...
    9310:	0a 09 15 00 f5 08 15 00 e0 08 14 00 cc 08 14 00     ................
    9320:	b8 08 14 00 a4 08 14 00 90 08 13 00 7d 08 12 00     ............}...
    9330:	6b 08 13 00 58 08 12 00 46 08 12 00 34 08 11 00     k...X...F...4...
    9340:	23 08 11 00 12 08 11 00 01 08 11 00 f0 07 10 00     #...............
    9350:	e0 07 10 00 d0 07 10 00 c0 07 10 00 b0 07 0f 00     ................
    9360:	a1 07 10 00 91 07 0e 00 83 07 0f 00 74 07 0f 00     ............t...
    9370:	65 07 0e 00 57 07 0e 00 49 07 0e 00 3b 07 0d 00     e...W...I...;...
    9380:	2e 07 0e 00 20 07 0d 00 13 07 0d 00 06 07 0d 00     .... ...........
    9390:	f9 06 0c 00 ed 06 0d 00 e0 06 0c 00 d4 06 0c 00     ................
    93a0:	c8 06 0c 00 bc 06 0c 00 b0 06 0c 00 a4 06 0b 00     ................
    93b0:	99 06 0c 00 8d 06 0b 00 82 06 0b 00 77 06 0b 00     ............w...
    93c0:	6c 06 0b 00 61 06 0a 00 57 06 0b 00 4c 06 0a 00     l...a...W...L...
    93d0:	42 06 0a 00 38 06 0a 00 2e 06 0a 00 24 06 0a 00     B...8.......$...
    93e0:	1a 06 0a 00 10 06 09 00 07 06 0a 00 fd 05 09 00     ................
    93f0:	f4 05 09 00 eb 05 09 00 e2 05 09 00 d9 05 09 00     ................
    9400:	d0 05 09 00 c7 05 09 00 be 05 09 00 b5 05 08 00     ................
    9410:	ad 05 08 00 a5 05 09 00 9c 05 08 00 94 05 08 00     ................
    9420:	8c 05 08 00 84 05 08 00 7c 05 08 00 74 05 08 00     ........|...t...
    9430:	6c 05 07 00 65 05 08 00 5d 05 07 00 56 05 08 00     l...e...]...V...
    9440:	4e 05 07 00 47 05 07 00 40 05 08 00 38 05 07 00     N...G...@...8...
    9450:	31 05 07 00 2a 05 07 00 23 05 07 00 1c 05 06 00     1...*...#.......
    9460:	16 05 07 00 0f 05 07 00 08 05 06 00 02 05 07 00     ................
    9470:	fb 04 06 00 f5 04 07 00 ee 04 06 00 e8 04 06 00     ................
    9480:	e2 04 07 00 db 04 06 00 d5 04 06 00 cf 04 06 00     ................
    9490:	c9 04 06 00 c3 04 06 00 bd 04 06 00 b7 04 06 00     ................
    94a0:	b1 04 05 00 ac 04 06 00 a6 04 06 00 a0 04 05 00     ................
    94b0:	9b 04 06 00 95 04 05 00 90 04 06 00 8a 04 05 00     ................
    94c0:	85 04 05 00 80 04 06 00 7a 04 05 00 75 04 05 00     ........z...u...
    94d0:	70 04 05 00 6b 04 05 00 66 04 05 00 61 04 05 00     p...k...f...a...
    94e0:	5c 04 05 00 57 04 05 00 52 04 05 00 4d 04 05 00     \...W...R...M...
    94f0:	48 04 05 00 43 04 05 00 3e 04 04 00 3a 04 05 00     H...C...>...:...
    9500:	35 04 05 00 30 04 04 00 2c 04 05 00 27 04 04 00     5...0...,...'...
    9510:	23 04 05 00 1e 04 04 00 1a 04 04 00 16 04 05 00     #...............
    9520:	11 04 04 00 0d 04 04 00 09 04 05 00 04 04 04 00     ................
    9530:	00 04 04 00 fc 03 04 00 f8 03 04 00 f4 03 04 00     ................
    9540:	f0 03 04 00 ec 03 04 00 e8 03 04 00 e4 03 04 00     ................
    9550:	e0 03 04 00 dc 03 04 00 d8 03 04 00 d4 03 04 00     ................
    9560:	d0 03 04 00 cc 03 04 00 c8 03 03 00 c5 03 03 00     ................

00009570 <speed_lookuptable_fast>:
    9570:	24 f4 04 d9 20 1b c4 0c 5c 0e 98 04 c4 09 5f 02     $... ...\....._.
    9580:	65 07 71 01 f4 05 f9 00 fb 04 b3 00 48 04 87 00     e.q.........H...
    9590:	c1 03 69 00 58 03 55 00 03 03 45 00 be 02 3a 00     ..i.X.U...E...:.
    95a0:	84 02 31 00 53 02 2a 00 29 02 25 00 04 02 20 00     ..1.S.*.).%... .
    95b0:	e4 01 1c 00 c8 01 19 00 af 01 17 00 98 01 14 00     ................
    95c0:	84 01 13 00 71 01 10 00 61 01 10 00 51 01 0e 00     ....q...a...Q...
    95d0:	43 01 0d 00 36 01 0b 00 2b 01 0b 00 20 01 0b 00     C...6...+... ...
    95e0:	15 01 09 00 0c 01 09 00 03 01 08 00 fb 00 08 00     ................
    95f0:	f3 00 08 00 eb 00 07 00 e4 00 06 00 de 00 06 00     ................
    9600:	d8 00 06 00 d2 00 06 00 cc 00 05 00 c7 00 05 00     ................
    9610:	c2 00 05 00 bd 00 04 00 b9 00 04 00 b5 00 04 00     ................
    9620:	b1 00 04 00 ad 00 04 00 a9 00 04 00 a5 00 03 00     ................
    9630:	a2 00 03 00 9f 00 04 00 9b 00 03 00 98 00 03 00     ................
    9640:	95 00 02 00 93 00 03 00 90 00 03 00 8d 00 02 00     ................
    9650:	8b 00 03 00 88 00 02 00 86 00 02 00 84 00 03 00     ................
    9660:	81 00 02 00 7f 00 02 00 7d 00 02 00 7b 00 02 00     ........}...{...
    9670:	79 00 02 00 77 00 01 00 76 00 02 00 74 00 02 00     y...w...v...t...
    9680:	72 00 01 00 71 00 02 00 6f 00 02 00 6d 00 01 00     r...q...o...m...
    9690:	6c 00 02 00 6a 00 01 00 69 00 02 00 67 00 01 00     l...j...i...g...
    96a0:	66 00 01 00 65 00 01 00 64 00 02 00 62 00 01 00     f...e...d...b...
    96b0:	61 00 01 00 60 00 01 00 5f 00 02 00 5d 00 01 00     a...`..._...]...
    96c0:	5c 00 01 00 5b 00 01 00 5a 00 01 00 59 00 01 00     \...[...Z...Y...
    96d0:	58 00 01 00 57 00 01 00 56 00 01 00 55 00 01 00     X...W...V...U...
    96e0:	54 00 01 00 53 00 00 00 53 00 01 00 52 00 01 00     T...S...S...R...
    96f0:	51 00 01 00 50 00 01 00 4f 00 01 00 4e 00 00 00     Q...P...O...N...
    9700:	4e 00 01 00 4d 00 01 00 4c 00 01 00 4b 00 00 00     N...M...L...K...
    9710:	4b 00 01 00 4a 00 01 00 49 00 01 00 48 00 00 00     K...J...I...H...
    9720:	48 00 01 00 47 00 01 00 46 00 00 00 46 00 01 00     H...G...F...F...
    9730:	45 00 00 00 45 00 01 00 44 00 01 00 43 00 00 00     E...E...D...C...
    9740:	43 00 01 00 42 00 00 00 42 00 01 00 41 00 00 00     C...B...B...A...
    9750:	41 00 01 00 40 00 01 00 3f 00 00 00 3f 00 01 00     A...@...?...?...
    9760:	3e 00 00 00 3e 00 01 00 3d 00 00 00 3d 00 01 00     >...>...=...=...
    9770:	3c 00 00 00 3c 00 00 00 3c 00 01 00 3b 00 00 00     <...<...<...;...
    9780:	3b 00 01 00 3a 00 00 00 3a 00 01 00 39 00 00 00     ;...:...:...9...
    9790:	39 00 01 00 38 00 00 00 38 00 00 00 38 00 01 00     9...8...8...8...
    97a0:	37 00 00 00 37 00 01 00 36 00 00 00 36 00 00 00     7...7...6...6...
    97b0:	36 00 01 00 35 00 00 00 35 00 00 00 35 00 01 00     6...5...5...5...
    97c0:	34 00 00 00 34 00 00 00 34 00 01 00 33 00 00 00     4...4...4...3...
    97d0:	33 00 00 00 33 00 01 00 32 00 00 00 32 00 00 00     3...3...2...2...
    97e0:	32 00 01 00 31 00 00 00 31 00 00 00 31 00 01 00     2...1...1...1...
    97f0:	30 00 00 00 30 00 00 00 30 00 01 00 2f 00 00 00     0...0...0.../...
    9800:	2f 00 00 00 2f 00 00 00 2f 00 01 00 2e 00 00 00     /.../.../.......
    9810:	2e 00 00 00 2e 00 01 00 2d 00 00 00 2d 00 00 00     ........-...-...
    9820:	2d 00 00 00 2d 00 01 00 2c 00 00 00 2c 00 00 00     -...-...,...,...
    9830:	2c 00 00 00 2c 00 01 00 2b 00 00 00 2b 00 00 00     ,...,...+...+...
    9840:	2b 00 00 00 2b 00 01 00 2a 00 00 00 2a 00 00 00     +...+...*...*...
    9850:	2a 00 00 00 2a 00 01 00 29 00 00 00 29 00 00 00     *...*...)...)...
    9860:	29 00 00 00 29 00 00 00 29 00 01 00 28 00 00 00     )...)...)...(...
    9870:	28 00 00 00 28 00 00 00 28 00 00 00 28 00 01 00     (...(...(...(...
    9880:	27 00 00 00 27 00 00 00 27 00 00 00 27 00 00 00     '...'...'...'...
    9890:	27 00 01 00 26 00 00 00 26 00 00 00 26 00 00 00     '...&...&...&...
    98a0:	26 00 00 00 26 00 01 00 25 00 00 00 25 00 00 00     &...&...%...%...
    98b0:	25 00 00 00 25 00 00 00 25 00 00 00 25 00 01 00     %...%...%...%...
    98c0:	24 00 00 00 24 00 00 00 24 00 00 00 24 00 00 00     $...$...$...$...
    98d0:	24 00 01 00 23 00 00 00 23 00 00 00 23 00 00 00     $...#...#...#...
    98e0:	23 00 00 00 23 00 00 00 23 00 00 00 23 00 01 00     #...#...#...#...
    98f0:	22 00 00 00 22 00 00 00 22 00 00 00 22 00 00 00     "..."..."..."...
    9900:	22 00 00 00 22 00 01 00 21 00 00 00 21 00 00 00     "..."...!...!...
    9910:	21 00 00 00 21 00 00 00 21 00 00 00 21 00 00 00     !...!...!...!...
    9920:	21 00 01 00 20 00 00 00 20 00 00 00 20 00 00 00     !... ... ... ...
    9930:	20 00 00 00 20 00 00 00 20 00 00 00 20 00 00 00      ... ... ... ...
    9940:	20 00 01 00 1f 00 00 00 1f 00 00 00 1f 00 00 00      ...............
    9950:	1f 00 00 00 1f 00 00 00 1f 00 00 00 1f 00 01 00     ................
    9960:	1e 00 00 00 1e 00 00 00 1e 00 00 00 1e 00 00 00     ................

00009970 <_ZZ12PID_autotunefiiE3__c__16_>:
    9970:	50 49 44 20 41 75 74 6f 74 75 6e 65 20 66 69 6e     PID Autotune fin
    9980:	69 73 68 65 64 21 20 50 75 74 20 74 68 65 20 6c     ished! Put the l
    9990:	61 73 74 20 4b 70 2c 20 4b 69 20 61 6e 64 20 4b     ast Kp, Ki and K
    99a0:	64 20 63 6f 6e 73 74 61 6e 74 73 20 66 72 6f 6d     d constants from
    99b0:	20 61 62 6f 76 65 20 69 6e 74 6f 20 43 6f 6e 66      above into Conf
    99c0:	69 67 75 72 61 74 69 6f 6e 2e 68 00                 iguration.h.

000099cc <_ZZ12PID_autotunefiiE3__c__15_>:
    99cc:	50 49 44 20 41 75 74 6f 74 75 6e 65 20 66 61 69     PID Autotune fai
    99dc:	6c 65 64 21 20 74 69 6d 65 6f 75 74 00              led! timeout.

000099e9 <_ZZ12PID_autotunefiiE3__c__14_>:
    99e9:	20 40 3a 00                                          @:.

000099ed <_ZZ12PID_autotunefiiE3__c__13_>:
    99ed:	54 3a 00                                            T:.

000099f0 <_ZZ12PID_autotunefiiE3__c__12_>:
    99f0:	42 3a 00                                            B:.

000099f3 <_ZZ12PID_autotunefiiE3__c__11_>:
    99f3:	50 49 44 20 41 75 74 6f 74 75 6e 65 20 66 61 69     PID Autotune fai
    9a03:	6c 65 64 21 20 54 65 6d 70 65 72 61 74 75 72 65     led! Temperature
    9a13:	20 74 6f 6f 20 68 69 67 68 00                        too high.

00009a1d <_ZZ12PID_autotunefiiE3__c__10_>:
    9a1d:	20 4b 64 3a 20 00                                    Kd: .

00009a23 <PID_autotune(float, int, int)::__c>:
    9a23:	20 4b 69 3a 20 00                                    Ki: .

00009a29 <PID_autotune(float, int, int)::__c>:
    9a29:	20 4b 70 3a 20 00                                    Kp: .

00009a2f <PID_autotune(float, int, int)::__c>:
    9a2f:	20 43 6c 61 73 73 69 63 20 50 49 44 20 00            Classic PID .

00009a3d <PID_autotune(float, int, int)::__c>:
    9a3d:	20 54 75 3a 20 00                                    Tu: .

00009a43 <PID_autotune(float, int, int)::__c>:
    9a43:	20 4b 75 3a 20 00                                    Ku: .

00009a49 <PID_autotune(float, int, int)::__c>:
    9a49:	20 6d 61 78 3a 20 00                                 max: .

00009a50 <PID_autotune(float, int, int)::__c>:
    9a50:	20 6d 69 6e 3a 20 00                                 min: .

00009a57 <PID_autotune(float, int, int)::__c>:
    9a57:	20 64 3a 20 00                                       d: .

00009a5c <PID_autotune(float, int, int)::__c>:
    9a5c:	20 62 69 61 73 3a 20 00                              bias: .

00009a64 <PID_autotune(float, int, int)::__c>:
    9a64:	50 49 44 20 41 75 74 6f 74 75 6e 65 20 73 74 61     PID Autotune sta
    9a74:	72 74 00                                            rt.

00009a77 <PID_autotune(float, int, int)::__c>:
    9a77:	50 49 44 20 41 75 74 6f 74 75 6e 65 20 66 61 69     PID Autotune fai
    9a87:	6c 65 64 2e 20 42 61 64 20 65 78 74 72 75 64 65     led. Bad extrude
    9a97:	72 20 6e 75 6d 62 65 72 2e 00                       r number..

00009aa1 <thermal_model::log_usr()::__c>:
    9aa1:	54 4d 4c 20 25 64 20 25 64 20 25 78 20 25 6c 78     TML %d %d %x %lx
    9ab1:	20 25 6c 78 0a 00                                    %lx..

00009ab7 <min_temp_error(unsigned char)::err>:
    9ab7:	4d 49 4e 54 45 4d 50 00                             MINTEMP.

00009abf <bed_min_temp_error()::err>:
    9abf:	4d 49 4e 54 45 4d 50 20 42 45 44 00                 MINTEMP BED.

00009acb <ambient_min_temp_error()::__c>:
    9acb:	4d 49 4e 54 45 4d 50 20 41 4d 42 00                 MINTEMP AMB.

00009ad7 <max_temp_error(unsigned char)::__c>:
    9ad7:	4d 41 58 54 45 4d 50 00                             MAXTEMP.

00009adf <bed_max_temp_error()::__c>:
    9adf:	4d 41 58 54 45 4d 50 20 42 45 44 00                 MAXTEMP BED.

00009aeb <ambient_max_temp_error()::__c>:
    9aeb:	4d 41 58 54 45 4d 50 20 41 4d 42 00                 MAXTEMP AMB.

00009af7 <handle_temp_error()::__c>:
    9af7:	54 4d 3a 20 65 72 72 6f 72 20 63 6c 65 61 72 65     TM: error cleare
    9b07:	64 00                                               d.

00009b09 <handle_temp_error()::__c>:
    9b09:	54 4d 3a 20 65 72 72 6f 72 20 74 72 69 67 67 65     TM: error trigge
    9b19:	72 65 64 21 00                                      red!.

00009b1e <thermal_model::handle_warning()::__c>:
    9b1e:	54 4d 3a 20 65 72 72 6f 72 20 7c 25 66 7c 3e 25     TM: error |%f|>%
    9b2e:	66 0a 00                                            f..

00009b31 <temptable_1>:
    9b31:	70 01 2c 01 90 01 27 01 b0 01 22 01 c0 01 1d 01     p.,...'...".....
    9b41:	f0 01 18 01 10 02 13 01 30 02 0e 01 60 02 09 01     ........0...`...
    9b51:	90 02 04 01 c0 02 ff 00 00 03 fa 00 40 03 f5 00     ............@...
    9b61:	80 03 f0 00 d0 03 eb 00 20 04 e6 00 70 04 e1 00     ........ ...p...
    9b71:	e0 04 dc 00 40 05 d7 00 c0 05 d2 00 40 06 cd 00     ....@.......@...
    9b81:	d0 06 c8 00 80 07 c3 00 30 08 be 00 f0 08 b9 00     ........0.......
    9b91:	c0 09 b4 00 b0 0a af 00 b0 0b aa 00 d0 0c a5 00     ................
    9ba1:	00 0e a0 00 50 0f 9b 00 c0 10 96 00 50 12 91 00     ....P.......P...
    9bb1:	00 14 8c 00 c0 15 87 00 b0 17 82 00 b0 19 7d 00     ..............}.
    9bc1:	d0 1b 78 00 00 1e 73 00 40 20 6e 00 90 22 69 00     ..x...s.@ n.."i.
    9bd1:	f0 24 64 00 40 27 5f 00 90 29 5a 00 e0 2b 55 00     .$d.@'_..)Z..+U.
    9be1:	10 2e 50 00 20 30 4b 00 10 32 46 00 e0 33 41 00     ..P. 0K..2F..3A.
    9bf1:	90 35 3c 00 10 37 37 00 70 38 32 00 a0 39 2d 00     .5<..77.p82..9-.
    9c01:	b0 3a 28 00 a0 3b 23 00 60 3c 1e 00 10 3d 19 00     .:(..;#.`<...=..
    9c11:	90 3d 14 00 10 3e 0f 00 70 3e 0a 00 c0 3e 05 00     .=...>..p>...>..
    9c21:	00 3f 00 00                                         .?..

00009c25 <temptable_2000>:
    9c25:	90 13 7d 00 b0 15 78 00 f0 17 73 00 60 1a 6e 00     ..}...x...s.`.n.
    9c35:	f0 1c 69 00 a0 1f 64 00 50 22 5f 00 20 25 5a 00     ..i...d.P"_. %Z.
    9c45:	e0 27 55 00 90 2a 50 00 20 2d 4b 00 a0 2f 46 00     .'U..*P. -K../F.
    9c55:	f0 31 41 00 10 34 3c 00 f0 35 37 00 a0 37 32 00     .1A..4<..57..72.
    9c65:	20 39 2d 00 60 3a 28 00 70 3b 23 00 60 3c 1e 00      9-.`:(.p;#.`<..
    9c75:	20 3d 19 00 c0 3d 14 00 40 3e 0f 00 a0 3e 0a 00      =...=..@>...>..
    9c85:	f0 3e 05 00 40 3f 00 00 70 3f fb ff 90 3f f6 ff     .>..@?..p?...?..
    9c95:	b0 3f f1 ff c0 3f ec ff d0 3f e7 ff e0 3f e2 ff     .?...?...?...?..
    9ca5:	f0 3f dd ff f0 3f d8 ff                             .?...?..

00009cad <temp_runaway_stop(bool, bool)::__c>:
    9cad:	20 48 4f 54 45 4e 44 20 54 48 45 52 4d 41 4c 20      HOTEND THERMAL 
    9cbd:	52 55 4e 41 57 41 59 00                             RUNAWAY.

00009cc5 <temp_runaway_stop(bool, bool)::__c>:
    9cc5:	20 48 45 41 54 42 45 44 20 54 48 45 52 4d 41 4c      HEATBED THERMAL
    9cd5:	20 52 55 4e 41 57 41 59 00                           RUNAWAY.

00009cde <temp_runaway_stop(bool, bool)::__c>:
    9cde:	54 48 45 52 4d 41 4c 20 52 55 4e 41 57 41 59 00     THERMAL RUNAWAY.

00009cee <temp_runaway_stop(bool, bool)::__c>:
    9cee:	42 45 44 20 54 48 45 52 4d 41 4c 20 52 55 4e 41     BED THERMAL RUNA
    9cfe:	57 41 59 00                                         WAY.

00009d02 <temp_runaway_stop(bool, bool)::__c>:
    9d02:	20 54 48 45 52 4d 41 4c 20 52 55 4e 41 57 41 59      THERMAL RUNAWAY
    9d12:	20 28 50 52 45 48 45 41 54 20 48 4f 54 45 4e 44      (PREHEAT HOTEND
    9d22:	29 00                                               ).

00009d24 <temp_runaway_stop(bool, bool)::__c>:
    9d24:	20 54 48 45 52 4d 41 4c 20 52 55 4e 41 57 41 59      THERMAL RUNAWAY
    9d34:	20 28 50 52 45 48 45 41 54 20 48 45 41 54 42 45      (PREHEAT HEATBE
    9d44:	44 29 00                                            D).

00009d47 <temp_runaway_stop(bool, bool)::__c>:
    9d47:	50 52 45 48 45 41 54 20 45 52 52 4f 52 00           PREHEAT ERROR.

00009d55 <temp_runaway_stop(bool, bool)::__c>:
    9d55:	42 45 44 20 50 52 45 48 45 41 54 20 45 52 52 4f     BED PREHEAT ERRO
    9d65:	52 00                                               R.

00009d67 <temp_error_messagepgm(char const*, unsigned char)::__c>:
    9d67:	20 74 72 69 67 67 65 72 65 64 21 00                  triggered!.

00009d73 <temp_error_messagepgm(char const*, unsigned char)::__c>:
    9d73:	48 65 61 74 65 72 73 20 73 77 69 74 63 68 65 64     Heaters switched
    9d83:	20 6f 66 66 2e 20 00                                 off. .

00009d8a <temp_error_messagepgm(char const*, unsigned char)::__c>:
    9d8a:	3a 20 00                                            : .

00009d8d <temp_error_messagepgm(char const*, unsigned char)::__c>:
    9d8d:	45 72 72 3a 20 00                                   Err: .

00009d93 <lcd_buttons_update()::encrot_table>:
    9d93:	00 ff 01 02 01 00 02 ff ff fe 00 01 fe 01 ff 00     ................

00009da3 <alert_automaton_mintemp::step(float, float)::m1>:
    9da3:	50 6c 65 61 73 65 20 72 65 73 74 61 72 74 00        Please restart.

00009db2 <thermal_model_set_enabled(bool)::__c>:
    9db2:	54 4d 3a 20 69 6e 76 61 6c 69 64 20 70 61 72 61     TM: invalid para
    9dc2:	6d 65 74 65 72 73 2c 20 63 61 6e 6e 6f 74 20 65     meters, cannot e
    9dd2:	6e 61 62 6c 65 00                                   nable.

00009dd8 <thermal_model_report_settings()::__c>:
    9dd8:	25 53 20 20 4d 33 31 30 20 50 25 2e 32 66 20 55     %S  M310 P%.2f U
    9de8:	25 2e 34 66 20 56 25 2e 32 66 20 43 25 2e 32 66     %.4f V%.2f C%.2f
    9df8:	20 44 25 2e 34 66 20 4c 25 75 20 53 25 75 20 42      D%.4f L%u S%u B
    9e08:	25 75 20 45 25 2e 32 66 20 57 25 2e 32 66 20 54     %u E%.2f W%.2f T
    9e18:	25 2e 32 66 0a 00                                   %.2f..

00009e1e <thermal_model_report_settings()::__c>:
    9e1e:	25 53 20 20 4d 33 31 30 20 49 25 75 20 52 25 2e     %S  M310 I%u R%.
    9e2e:	32 66 0a 00                                         2f..

00009e32 <thermal_model_report_settings()::__c>:
    9e32:	54 68 65 72 6d 61 6c 20 4d 6f 64 65 6c 20 73 65     Thermal Model se
    9e42:	74 74 69 6e 67 73 3a 00                             ttings:.

00009e4a <THERMAL_MODEL_R_DEFAULT>:
    9e4a:	cd cc f4 41 00 00 e8 41 00 00 dc 41 00 00 c4 41     ...A...A...A...A
    9e5a:	33 33 bb 41 66 66 b2 41 9a 99 a9 41 9a 99 a1 41     33.Aff.A...A...A
    9e6a:	66 66 9e 41 33 33 9b 41 00 00 98 41 cd cc 94 41     ff.A33.A...A...A
    9e7a:	66 66 92 41 cd cc 90 41 33 33 8f 41 9a 99 8d 41     ff.A...A33.A...A

00009e8a <eMotorCurrentScalingEnabled>:
    9e8a:	45 2d 6d 6f 74 6f 72 20 63 75 72 72 65 6e 74 20     E-motor current 
    9e9a:	73 63 61 6c 69 6e 67 20 65 6e 61 62 6c 65 64 00     scaling enabled.

00009eaa <homing_currents_P>:
    9eaa:	01 08 08 01 0a 0a 01 14 14 01 12 12                 ............

00009eb6 <tmc2130_home_enter(unsigned char)::__c>:
    9eb6:	74 6d 63 32 31 33 30 5f 68 6f 6d 65 5f 65 6e 74     tmc2130_home_ent
    9ec6:	65 72 28 61 78 65 73 5f 6d 61 73 6b 3d 30 78 25     er(axes_mask=0x%
    9ed6:	30 32 78 29 0a 00                                   02x)..

00009edc <tmc2130_home_exit()::__c>:
    9edc:	74 6d 63 32 31 33 30 5f 68 6f 6d 65 5f 65 78 69     tmc2130_home_exi
    9eec:	74 20 74 6d 63 32 31 33 30 5f 73 67 5f 68 6f 6d     t tmc2130_sg_hom
    9efc:	69 6e 67 5f 61 78 65 73 5f 6d 61 73 6b 3d 30 78     ing_axes_mask=0x
    9f0c:	25 30 32 78 0a 00                                   %02x..

00009f12 <tmc2130_home_calibrate(unsigned char)::__c>:
    9f12:	72 65 73 75 6c 74 20 76 61 6c 75 65 3a 20 25 64     result value: %d
    9f22:	0a 00                                               ..

00009f24 <tmc2130_home_calibrate(unsigned char)::__c>:
    9f24:	20 69 3d 25 32 64 20 63 6e 74 3d 25 32 64 20 76      i=%2d cnt=%2d v
    9f34:	61 6c 3d 25 32 64 0a 00                             al=%2d..

00009f3c <tmc2130_home_calibrate(unsigned char)::__c>:
    9f3c:	63 6c 75 73 74 65 72 73 3a 00                       clusters:.

00009f46 <tmc2130_home_calibrate(unsigned char)::__c>:
    9f46:	20 69 3d 25 32 64 20 73 74 65 70 3d 25 32 64 0a      i=%2d step=%2d.
	...

00009f57 <tmc2130_home_calibrate(unsigned char)::__c>:
    9f57:	73 6f 72 74 65 64 20 73 61 6d 70 6c 65 73 3a 00     sorted samples:.

00009f67 <__vector_51::__c>:
    9f67:	55 53 41 52 54 32 20 72 78 20 46 75 6c 6c 21 21     USART2 rx Full!!
    9f77:	21 00                                               !.

00009f79 <lcdui_print_status_line()::__c>:
    9f79:	3a 20 00                                            : .

00009f7c <lcdui_print_status_line()::__c>:
    9f7c:	25 2d 31 32 2e 31 32 53 25 2d 64 2f 36 00           %-12.12S%-d/6.

00009f8a <lcdui_print_status_line()::__c>:
    9f8a:	25 33 64 2f 25 2d 33 64 00                          %3d/%-3d.

00009f93 <lcdui_print_status_line()::__c>:
    9f93:	20 3a 20 00                                          : .

00009f97 <lcdui_print_percent_done()::__c>:
    9f97:	25 33 53 00                                         %3S.

00009f9b <lcdui_print_percent_done()::__c>:
    9f9b:	25 2d 37 73 00                                      %-7s.

00009fa0 <lcdui_print_time()::__c>:
    9fa0:	4e 64 20 25 34 2e 32 66 20 00                       Nd %4.2f .

00009faa <lcd_menu_extruder_info()::__c>:
    9faa:	25 2d 31 35 2e 31 35 53 25 2d 35 64 0a 25 2d 31     %-15.15S%-5d.%-1
    9fba:	35 2e 31 35 53 25 2d 35 64 0a 00                    5.15S%-5d..

00009fc5 <lcd_menu_fails_stats_mmu_print()::__c>:
    9fc5:	25 53 0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64     %S. %-16.16S%-3d
    9fd5:	0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64 00        . %-16.16S%-3d.

00009fe4 <lcd_menu_fails_stats_mmu_total()::__c>:
    9fe4:	25 53 0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64     %S. %-16.16S%-3d
    9ff4:	0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64 0a 20     . %-16.16S%-3d. 
    a004:	25 2d 31 36 2e 31 36 53 25 2d 33 64 00              %-16.16S%-3d.

0000a011 <failStatsFmt>:
    a011:	25 53 0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64     %S. %-16.16S%-3d
    a021:	0a 20 25 2d 31 36 2e 31 36 53 25 2d 33 64 0a 20     . %-16.16S%-3d. 
    a031:	25 2d 37 2e 37 53 58 20 25 2d 33 64 20 20 59 20     %-7.7SX %-3d  Y 
    a041:	25 2d 33 64 00                                      %-3d.

0000a046 <lcd_menu_temperatures_line(char const*, int)::__c>:
    a046:	20 25 73 25 33 64 81 20 0a 00                        %s%3d. ..

0000a050 <lcd_menu_voltages()::__c>:
    a050:	20 50 57 52 3a 20 20 20 20 20 20 25 34 2e 31 66      PWR:      %4.1f
    a060:	56 0a 20 42 45 44 3a 20 20 20 20 20 20 25 34 2e     V. BED:      %4.
    a070:	31 66 56 00                                         1fV.

0000a074 <lcd_menu_belt_status()::__c>:
    a074:	25 53 0a 20 58 20 25 64 0a 20 59 20 25 64 00        %S. X %d. Y %d.

0000a083 <ip4_to_str(char*, unsigned char*)::__c>:
    a083:	25 75 2e 25 75 2e 25 75 2e 25 75 00                 %u.%u.%u.%u.

0000a08f <_ZZL16lcd_support_menuvE3__c__15_>:
    a08f:	20 00                                                .

0000a091 <_ZZL16lcd_support_menuvE3__c__14_>:
    a091:	20 00                                                .

0000a093 <_ZZL16lcd_support_menuvE3__c__13_>:
    a093:	46 6c 61 73 68 41 69 72 20 49 50 20 41 64 64 72     FlashAir IP Addr
    a0a3:	3a 00                                               :.

0000a0a5 <_ZZL16lcd_support_menuvE3__c__12_>:
    a0a5:	4d 4d 55 20 20 20 20 20 20 20 20 4e 2f 41 00        MMU        N/A.

0000a0b4 <_ZZL16lcd_support_menuvE3__c__11_>:
    a0b4:	25 64 2e 25 64 2e 25 64 00                          %d.%d.%d.

0000a0bd <_ZZL16lcd_support_menuvE3__c__10_>:
    a0bd:	20 46 57 3a 00                                       FW:.

0000a0c2 <lcd_support_menu()::__c>:
    a0c2:	32 30 32 35 2d 30 34 2d 32 32 00                    2025-04-22.

0000a0cd <lcd_support_menu()::__c>:
    a0cd:	45 33 44 52 45 56 4f 5f 48 46 5f 36 30 57 00        E3DREVO_HF_60W.

0000a0dc <lcd_support_menu()::__c>:
    a0dc:	45 49 4e 53 79 5f 31 30 61 00                       EINSy_10a.

0000a0e6 <lcd_support_menu()::__c>:
    a0e6:	31 5f 37 35 6d 6d 5f 4d 4b 33 00                    1_75mm_MK3.

0000a0f1 <lcd_support_menu()::__c>:
    a0f1:	20 48 61 73 68 3a 37 37 33 31 30 32 34 65 64 00      Hash:7731024ed.

0000a101 <lcd_support_menu()::__c>:
    a101:	20 52 65 70 6f 3a 70 72 75 73 61 33 64 00            Repo:prusa3d.

0000a10f <lcd_support_menu()::__c>:
    a10f:	20 33 2e 31 34 2e 31 2d 38 32 37 39 00               3.14.1-8279.

0000a11c <lcd_support_menu()::__c>:
    a11c:	46 69 72 6d 77 61 72 65 3a 00                       Firmware:.

0000a126 <mFilamentItem(unsigned int, unsigned int)::__c>:
    a126:	3e 00                                               >.

0000a128 <_ZZ24lcd_generic_preheat_menuvE3__c__20_>:
    a128:	46 4c 45 58 20 2d 20 20 32 34 30 2f 35 30 00        FLEX -  240/50.

0000a137 <_ZZ24lcd_generic_preheat_menuvE3__c__19_>:
    a137:	46 4c 45 58 20 2d 20 20 32 34 30 00                 FLEX -  240.

0000a143 <_ZZ24lcd_generic_preheat_menuvE3__c__18_>:
    a143:	50 50 20 20 20 2d 20 20 32 35 34 2f 31 30 30 00     PP   -  254/100.

0000a153 <_ZZ24lcd_generic_preheat_menuvE3__c__17_>:
    a153:	50 50 20 20 20 2d 20 20 32 35 34 00                 PP   -  254.

0000a15f <_ZZ24lcd_generic_preheat_menuvE3__c__16_>:
    a15f:	48 49 50 53 20 2d 20 20 32 32 30 2f 31 30 30 00     HIPS -  220/100.

0000a16f <_ZZ24lcd_generic_preheat_menuvE3__c__15_>:
    a16f:	48 49 50 53 20 2d 20 20 32 32 30 00                 HIPS -  220.

0000a17b <_ZZ24lcd_generic_preheat_menuvE3__c__14_>:
    a17b:	41 42 53 20 20 2d 20 20 32 35 35 2f 31 30 30 00     ABS  -  255/100.

0000a18b <_ZZ24lcd_generic_preheat_menuvE3__c__13_>:
    a18b:	41 42 53 20 20 2d 20 20 32 35 35 00                 ABS  -  255.

0000a197 <_ZZ24lcd_generic_preheat_menuvE3__c__12_>:
    a197:	50 41 20 20 20 2d 20 20 32 37 35 2f 39 30 00        PA   -  275/90.

0000a1a6 <_ZZ24lcd_generic_preheat_menuvE3__c__11_>:
    a1a6:	50 41 20 20 20 2d 20 20 32 37 35 00                 PA   -  275.

0000a1b2 <_ZZ24lcd_generic_preheat_menuvE3__c__10_>:
    a1b2:	50 56 42 20 20 2d 20 20 32 31 35 2f 37 35 00        PVB  -  215/75.

0000a1c1 <lcd_generic_preheat_menu()::__c>:
    a1c1:	50 56 42 20 20 2d 20 20 32 31 35 00                 PVB  -  215.

0000a1cd <lcd_generic_preheat_menu()::__c>:
    a1cd:	50 43 20 20 20 2d 20 20 32 37 35 2f 31 31 30 00     PC   -  275/110.

0000a1dd <lcd_generic_preheat_menu()::__c>:
    a1dd:	50 43 20 20 20 2d 20 20 32 37 35 00                 PC   -  275.

0000a1e9 <lcd_generic_preheat_menu()::__c>:
    a1e9:	41 53 41 20 20 2d 20 20 32 36 30 2f 31 30 35 00     ASA  -  260/105.

0000a1f9 <lcd_generic_preheat_menu()::__c>:
    a1f9:	41 53 41 20 20 2d 20 20 32 36 30 00                 ASA  -  260.

0000a205 <lcd_generic_preheat_menu()::__c>:
    a205:	50 45 54 20 20 2d 20 20 32 33 30 2f 38 35 00        PET  -  230/85.

0000a214 <lcd_generic_preheat_menu()::__c>:
    a214:	50 45 54 20 20 2d 20 20 32 33 30 00                 PET  -  230.

0000a220 <lcd_generic_preheat_menu()::__c>:
    a220:	50 4c 41 20 20 2d 20 20 32 31 35 2f 36 30 00        PLA  -  215/60.

0000a22f <lcd_generic_preheat_menu()::__c>:
    a22f:	50 4c 41 20 20 2d 20 20 32 31 35 00                 PLA  -  215.

0000a23b <menu_fmt_float31>:
    a23b:	25 2d 31 32 2e 31 32 53 25 2b 38 2e 31 66 00        %-12.12S%+8.1f.

0000a24a <lcd_move_e()::__c>:
    a24a:	45 78 74 72 75 64 65 72 3a 00                       Extruder:.

0000a254 <lcd_menu_xyz_offset()::__c>:
    a254:	25 63 25 31 37 2e 32 66 6d 6d 00                    %c%17.2fmm.

0000a25f <lcd_move_x()::__c>:
    a25f:	58 3a 00                                            X:.

0000a262 <lcd_move_y()::__c>:
    a262:	59 3a 00                                            Y:.

0000a265 <lcd_move_z()::__c>:
    a265:	5a 3a 00                                            Z:.

0000a268 <menu_fmt_float13>:
    a268:	25 63 25 2d 31 33 2e 31 33 53 25 2b 35 2e 33 66     %c%-13.13S%+5.3f
	...

0000a279 <pid_extruder()::__c>:
    a279:	25 33 75 00                                         %3u.

0000a27d <lcd_temp_cal_show_result(bool)::__c>:
    a27d:	50 49 4e 44 41 20 63 61 6c 69 62 72 61 74 69 6f     PINDA calibratio
    a28d:	6e 20 66 61 69 6c 65 64 2e 20 43 6f 6e 74 69 6e     n failed. Contin
    a29d:	75 65 20 77 69 74 68 20 70 72 65 73 73 69 6e 67     ue with pressing
    a2ad:	20 74 68 65 20 6b 6e 6f 62 2e 00                     the knob..

0000a2b8 <lcd_temp_cal_show_result(bool)::__c>:
    a2b8:	50 49 4e 44 41 20 63 61 6c 69 62 72 61 74 69 6f     PINDA calibratio
    a2c8:	6e 20 64 6f 6e 65 2e 20 43 6f 6e 74 69 6e 75 65     n done. Continue
    a2d8:	20 77 69 74 68 20 70 72 65 73 73 69 6e 67 20 74      with pressing t
    a2e8:	68 65 20 6b 6e 6f 62 2e 00                          he knob..

0000a2f1 <temptable_5>:
    a2f1:	10 00 c9 02 10 01 2c 01 40 01 22 01 70 01 18 01     ......,.@.".p...
    a301:	b0 01 0e 01 f0 01 04 01 50 02 fa 00 b0 02 f0 00     ........P.......
    a311:	30 03 e6 00 d0 03 dc 00 90 04 d2 00 70 05 c8 00     0...........p...
    a321:	a0 06 be 00 00 08 b4 00 b0 09 aa 00 d0 0b a0 00     ................
    a331:	60 0e 96 00 60 11 8c 00 00 15 82 00 20 19 78 00     `...`....... .x.
    a341:	c0 1d 6e 00 a0 22 64 00 b0 27 5a 00 90 2c 50 00     ..n.."d..'Z..,P.
    a351:	00 31 46 00 e0 34 3c 00 10 38 32 00 90 3a 28 00     .1F..4<..82..:(.
    a361:	60 3c 1e 00 a0 3d 14 00 80 3e 0a 00 20 3f 00 00     `<...=...>.. ?..

0000a371 <xyzcal_measure_enter()::__c>:
    a371:	4d 65 61 73 75 72 65 20 63 65 6e 74 65 72 20 20     Measure center  
	...

0000a382 <xyzcal_measure_enter()::__c>:
    a382:	78 79 7a 63 61 6c 5f 6d 65 61 73 75 72 65 5f 65     xyzcal_measure_e
    a392:	6e 74 65 72 0a 00                                   nter..

0000a398 <xyzcal_spiral8(int, int, int, int, int, unsigned int, signed char, unsigned int*)::__c>:
    a398:	78 79 7a 63 61 6c 5f 73 70 69 72 61 6c 38 20 63     xyzcal_spiral8 c
    a3a8:	78 3d 25 64 20 63 79 3d 25 64 20 7a 30 3d 25 64     x=%d cy=%d z0=%d
    a3b8:	20 64 7a 3d 25 64 20 72 61 64 69 75 73 3d 25 64      dz=%d radius=%d
    a3c8:	20 61 64 3d 25 64 0a 00                              ad=%d..

0000a3d0 <xyzcal_searchZ()::__c>:
    a3d0:	78 79 7a 63 61 6c 5f 73 65 61 72 63 68 5a 20 6e     xyzcal_searchZ n
    a3e0:	6f 20 73 69 67 6e 61 6c 0a 20 78 3d 25 6c 64 20     o signal. x=%ld 
    a3f0:	79 3d 25 6c 64 20 7a 3d 25 6c 64 0a 00              y=%ld z=%ld..

0000a3fd <xyzcal_searchZ()::__c>:
    a3fd:	20 4f 4e 2d 53 49 47 4e 41 4c 20 61 74 20 78 3d      ON-SIGNAL at x=
    a40d:	25 64 20 79 3d 25 64 20 7a 3d 25 64 20 61 64 3d     %d y=%d z=%d ad=
    a41d:	25 64 0a 00                                         %d..

0000a421 <xyzcal_searchZ()::__c>:
    a421:	78 79 7a 63 61 6c 5f 73 65 61 72 63 68 5a 20 78     xyzcal_searchZ x
    a431:	3d 25 6c 64 20 79 3d 25 6c 64 20 7a 3d 25 6c 64     =%ld y=%ld z=%ld
    a441:	0a 00                                               ..

0000a443 <print_image(unsigned char const*)::__c>:
    a443:	25 30 32 78 00                                      %02x.

0000a448 <xyzcal_scan_and_process()::__c>:
    a448:	20 5b 25 66 20 25 66 5d 20 6d 6d 20 70 61 74 74      [%f %f] mm patt
    a458:	65 72 6e 20 63 65 6e 74 65 72 0a 00                 ern center..

0000a464 <xyzcal_scan_and_process()::__c>:
    a464:	20 5b 25 66 20 25 66 5d 5b 25 66 5d 20 6d 6d 20      [%f %f][%f] mm 
    a474:	64 69 76 65 72 67 65 6e 63 65 0a 00                 divergence..

0000a480 <xyzcal_point_pattern_10>:
    a480:	00 00 f0 00 f8 01 fc 03 fe 07 fe 07 fe 07 fe 07     ................
    a490:	fc 03 f8 01 f0 00 00 00                             ........

0000a498 <xyzcal_point_pattern_08>:
    a498:	00 00 00 00 f0 00 f8 01 fc 03 fc 03 fc 03 fc 03     ................
    a4a8:	f8 01 f0 00 00 00 00 00                             ........

0000a4b0 <xyzcal_measure_leave()::__c>:
    a4b0:	78 79 7a 63 61 6c 5f 6d 65 61 73 75 72 65 5f 6c     xyzcal_measure_l
    a4c0:	65 61 76 65 0a 00                                   eave..

0000a4c6 <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    a4c6:	20 3c 20 00                                          < .

0000a4ca <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    a4ca:	57 41 52 4e 49 4e 47 3a 20 46 72 6f 6e 74 20 70     WARNING: Front p
    a4da:	6f 69 6e 74 20 6e 6f 74 20 72 65 61 63 68 61 62     oint not reachab
    a4ea:	6c 65 2e 20 59 20 63 6f 6f 72 64 69 6e 61 74 65     le. Y coordinate
    a4fa:	3a 00                                               :.

0000a4fc <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
	...

0000a4fd <bed_ref_points_4>:
    a4fd:	00 00 40 41 00 00 c0 40 00 00 5c 43 00 00 c0 40     ..@A...@..\C...@
    a50d:	00 00 5c 43 00 00 46 43 00 00 40 41 00 00 46 43     ..\C..FC..@A..FC

0000a51d <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    a51d:	25 64 2f 34 00                                      %d/4.

0000a522 <find_bed_offset_and_skew(signed char, unsigned char&)::__c>:
    a522:	49 74 65 72 61 74 69 6f 6e 3a 20 00                 Iteration: .

0000a52e <gcode_M45(bool, signed char)::__c>:
    a52e:	43 61 6c 69 62 72 61 74 69 6f 6e 20 66 61 69 6c     Calibration fail
    a53e:	65 64 21 20 43 68 65 63 6b 20 74 68 65 20 61 78     ed! Check the ax
    a54e:	65 73 20 61 6e 64 20 72 75 6e 20 61 67 61 69 6e     es and run again
    a55e:	2e 00                                               ..

0000a560 <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*)::__c>:
    a560:	78 79 7a 63 61 6c 5f 73 70 69 72 61 6c 32 20 63     xyzcal_spiral2 c
    a570:	78 3d 25 64 20 63 79 3d 25 64 20 7a 30 3d 25 64     x=%d cy=%d z0=%d
    a580:	20 64 7a 3d 25 64 20 72 61 64 69 75 73 3d 25 64      dz=%d radius=%d
    a590:	20 61 64 3d 25 64 0a 00                              ad=%d..

0000a598 <endl>:
    a598:	0a 00                                               ..

0000a59a <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*)::__c>:
    a59a:	43 6f 75 6e 74 64 6f 77 6e 3a 20 25 64 20 00        Countdown: %d .

0000a5a9 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*)::__c>:
    a5a9:	25 64 0a 00                                         %d..

0000a5ad <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*)::__c>:
    a5ad:	53 63 61 6e 20 63 6f 75 6e 74 64 6f 77 6e 3a 20     Scan countdown: 
	...

0000a5be <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*)::__c>:
    a5be:	50 61 74 74 65 72 6e 20 63 65 6e 74 65 72 20 5b     Pattern center [
    a5ce:	25 66 20 25 66 5d 2c 20 6d 61 74 63 68 20 25 66     %f %f], match %f
    a5de:	25 25 0a 00                                         %%..

0000a5e2 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char)::__c>:
    a5e2:	20 5b 25 66 2c 20 25 66 5d 5b 25 66 5d 20 66 69      [%f, %f][%f] fi
    a5f2:	6e 61 6c 20 63 69 72 63 6c 65 0a 00                 nal circle..

0000a5fe <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int)::__c>:
    a5fe:	74 6d 63 32 31 33 30 5f 67 6f 74 6f 5f 73 74 65     tmc2130_goto_ste
    a60e:	70 20 25 64 20 25 64 20 25 64 20 25 64 20 0a 00     p %d %d %d %d ..

0000a61e <_ZL16ramming_sequence.lto_priv.401>:
    a61e:	e0 2d 90 3e 89 88 b2 41 11 36 9c 3e 77 77 c1 41     .-.>...A.6.>ww.A
    a62e:	29 cb b0 3e ef ee da 41 ba 49 cc 3e ef ee fc 41     )..>...A.I.>...A
    a63e:	61 c3 f3 3e ef ee 16 42 9c a2 13 3f cd cc 36 42     a..>...B...?..6B
    a64e:	8a b0 11 3f ab aa 56 42 88 63 dd 3d ab aa 56 42     ...?..VB.c.=..VB
    a65e:	b8 af 43 3f 55 55 72 42 18 26 53 3f 33 b3 82 42     ..C?UUrB.&S?3..B
    a66e:	30 2a 59 3f ef 6e 86 42 00 00 70 c1 00 00 c8 42     0*Y?.n.B..p....B
    a67e:	00 00 c4 c1 00 00 a0 41 00 00 e0 c0 00 00 20 41     .......A...... A
    a68e:	00 00 60 c0 00 00 c0 40 00 00 a0 41 22 22 f2 40     ..`....@...A"".@
    a69e:	00 00 a0 c1 9a 99 a1 40 00 00 0c c2 55 55 05 42     .......@....UU.B

0000a6ae <_ZZN4MMU213ProtocolLogic18ResetRetryAttemptsEvE3__c.lto_priv.399>:
    a6ae:	52 65 73 65 74 52 65 74 72 79 41 74 74 65 6d 70     ResetRetryAttemp
    a6be:	74 73 00                                            ts.

0000a6c1 <MMU2::MMU2::manage_response(bool, bool)::__c>:
    a6c1:	43 6f 6f 6c 69 6e 67 20 74 69 6d 65 72 20 73 74     Cooling timer st
    a6d1:	6f 70 70 65 64 00                                   opped.

0000a6d7 <MMU2::MMU2::manage_response(bool, bool)::__c>:
    a6d7:	48 65 61 74 65 72 20 63 6f 6f 6c 64 6f 77 6e 00     Heater cooldown.

0000a6e7 <MMU2::MMU2::manage_response(bool, bool)::__c>:
    a6e7:	43 6f 6f 6c 69 6e 67 20 54 69 6d 65 6f 75 74 20     Cooling Timeout 
    a6f7:	73 74 61 72 74 65 64 00                             started.

0000a6ff <MMU2::MMU2::SaveAndPark(bool)::__c>:
    a6ff:	53 61 76 69 6e 67 20 61 6e 64 20 70 61 72 6b 69     Saving and parki
    a70f:	6e 67 00                                            ng.

0000a712 <MMU2::MMU2::SaveHotendTemp(bool)::__c>:
    a712:	48 65 61 74 65 72 20 63 6f 6f 6c 64 6f 77 6e 20     Heater cooldown 
    a722:	70 65 6e 64 69 6e 67 00                             pending.

0000a72a <MMU2::MMU2::ResumeUnpark()::__c>:
    a72a:	52 65 73 75 6d 69 6e 67 20 58 59 5a 00              Resuming XYZ.

0000a737 <MMU2::MMU2::SetCurrentTool(unsigned char)::__c>:
    a737:	4d 4d 55 32 74 6f 6f 6c 3d 00                       MMU2tool=.

0000a741 <_ZL9mmu2Magic.lto_priv.374>:
    a741:	4d 4d 55 32 3a 00                                   MMU2:.

0000a747 <ofWritingToFile>:
    a747:	57 72 69 74 69 6e 67 20 74 6f 20 66 69 6c 65 3a     Writing to file:
    a757:	20 00                                                .

0000a759 <CardReader::openFileWrite(char const*)::__c>:
    a759:	46 69 6c 65 20 61 6c 72 65 61 64 79 20 6f 70 65     File already ope
    a769:	6e 65 64 00                                         ned.

0000a76d <MMU2::progressTexts>:
    a76d:	4d 53 3c 53 28 53 13 53 fd 52 ea 52 d4 52 c0 52     MS<S(S.S.R.R.R.R
    a77d:	af 52 99 52 28 53 3c 53 85 52 76 52 62 52 51 52     .R.R(S<S.RvRbRQR
    a78d:	3c 52 75 5b 26 52 14 52 01 52 f0 51 db 51 c8 51     <Ru[&R.R.R.Q.Q.Q
    a79d:	b4 51 9f 51 96 51 84 51 6f 51                       .Q.Q.Q.QoQ

0000a7a7 <MMU2::MMU2::CheckFINDARunout()::__c>:
    a7a7:	4d 36 30 30 20 41 55 54 4f 00                       M600 AUTO.

0000a7b1 <MMU2::MMU2::CheckFINDARunout()::__c>:
    a7b1:	46 49 4e 44 41 20 66 69 6c 61 6d 65 6e 74 20 72     FINDA filament r
    a7c1:	75 6e 6f 75 74 21 00                                unout!.

0000a7c8 <MMU2::ProtocolLogic::HandleCommunicationTimeout()::__c>:
    a7c8:	43 6f 6d 6d 75 6e 69 63 61 74 69 6f 6e 20 74 69     Communication ti
    a7d8:	6d 65 6f 75 74 00                                   meout.

0000a7de <MMU2::ProtocolLogic::HandleProtocolError()::__c>:
    a7de:	50 72 6f 74 6f 63 6f 6c 20 45 72 72 6f 72 00        Protocol Error.

0000a7ed <MMU2::supportedMmuFWVersion>:
    a7ed:	03 00 03                                            ...

0000a7f0 <MMU2::ProtocolLogic::Step()::__c>:
    a7f0:	56 65 72 73 69 6f 6e 20 6d 69 73 6d 61 74 63 68     Version mismatch
	...

0000a801 <MMU2::ProtocolLogic::Step()::__c>:
    a801:	43 6f 6d 6d 61 6e 64 20 45 72 72 6f 72 00           Command Error.

0000a80f <MMU2::ProtocolLogic::Step()::__c>:
    a80f:	43 6f 6d 6d 61 6e 64 20 72 65 6a 65 63 74 65 64     Command rejected
	...

0000a820 <MMU2::MMU2::LogicStep(bool)::__c>:
    a820:	4d 4d 55 20 42 75 74 74 6f 6e 20 70 75 73 68 65     MMU Button pushe
    a830:	64 00                                               d.

0000a832 <MMU2::MMU2::RetryIfPossible(ErrorCode)::__c>:
    a832:	52 65 74 72 79 42 75 74 74 6f 6e 50 72 65 73 73     RetryButtonPress
    a842:	65 64 00                                            ed.

0000a845 <_ZN4MMU2L11errorTitlesE.lto_priv.494>:
    a845:	aa 55 95 55 7e 55 69 55 54 55 40 55 30 55 19 55     .U.U~UiUTU@U0U.U
    a855:	02 55 eb 54 d7 54 c3 54 ad 54 ad 54 ad 54 98 54     .U.T.T.T.T.T.T.T
    a865:	98 54 98 54 85 54 85 54 85 54 72 54 72 54 72 54     .T.T.T.T.TrTrTrT
    a875:	5b 54 5b 54 5b 54 46 54 46 54 46 54 30 54 30 54     [T[T[TFTFTFT0T0T
    a885:	30 54 20 54 0b 54 f5 53 df 53 d0 53 c3 53 ac 53     0T T.T.S.S.S.S.S
    a895:	99 53 87 53 74 53 62 53 52 53                       .S.StSbSRS

0000a89f <MMU2::MMU2::Button(unsigned char)::__c>:
    a89f:	42 75 74 74 6f 6e 00                                Button.

0000a8a6 <MMU2::MMU2::CheckUserInput()::__c>:
    a8a6:	43 68 65 63 6b 55 73 65 72 49 6e 70 75 74 2d 62     CheckUserInput-b
    a8b6:	74 6e 4c 4d 52 20 00                                tnLMR .

0000a8bd <_ZZN4MMU231ReportErrorHookSensorLineRenderEvE3__c.lto_priv.493>:
    a8bd:	46 49 3a 20 20 46 53 3a 20 20 20 20 3e 20 20 82     FI:  FS:    >  .
    a8cd:	20 20 20 81 00                                         ..

0000a8d2 <MMU2::MMU2::ResumeHotendTemp()::__c>:
    a8d2:	48 6f 74 65 6e 64 20 74 65 6d 70 65 72 61 74 75     Hotend temperatu
    a8e2:	72 65 20 72 65 61 63 68 65 64 00                    re reached.

0000a8ed <MMU2::MMU2::ResumeHotendTemp()::__c>:
    a8ed:	52 65 73 75 6d 69 6e 67 20 54 65 6d 70 00           Resuming Temp.

0000a8fb <MMU2::MMU2::ResumeHotendTemp()::__c>:
    a8fb:	43 6f 6f 6c 64 6f 77 6e 20 66 6c 61 67 20 63 6c     Cooldown flag cl
    a90b:	65 61 72 65 64 00                                   eared.

0000a911 <wait_for_heater(long, unsigned char)::__c>:
    a911:	20 57 3a 00                                          W:.

0000a915 <wait_for_heater(long, unsigned char)::__c>:
    a915:	20 45 3a 00                                          E:.

0000a919 <wait_for_heater(long, unsigned char)::__c>:
    a919:	54 3a 00                                            T:.

0000a91c <Sd2Card::init(unsigned char)::__c>:
    a91c:	4e 6f 20 30 78 46 46 20 72 65 63 65 69 76 65 64     No 0xFF received
	...

0000a92d <Sd2Card::init(unsigned char)::__c>:
    a92d:	53 65 6e 64 69 6e 67 20 30 78 46 46 00              Sending 0xFF.

0000a93a <ofFileSelected>:
    a93a:	46 69 6c 65 20 73 65 6c 65 63 74 65 64 00           File selected.

0000a948 <ofSize>:
    a948:	20 53 69 7a 65 3a 20 00                              Size: .

0000a950 <ofFileOpened>:
    a950:	46 69 6c 65 20 6f 70 65 6e 65 64 3a 20 00           File opened: .

0000a95e <ofNowFreshFile>:
    a95e:	4e 6f 77 20 66 72 65 73 68 20 66 69 6c 65 3a 20     Now fresh file: 
	...

0000a96f <ofNowDoingFile>:
    a96f:	4e 6f 77 20 64 6f 69 6e 67 20 66 69 6c 65 3a 20     Now doing file: 
	...

0000a980 <ofPos>:
    a980:	22 20 70 6f 73 00                                   " pos.

0000a986 <ofParent>:
    a986:	22 20 70 61 72 65 6e 74 3a 22 00                    " parent:".

0000a991 <ofSubroutineCallTgt>:
    a991:	53 55 42 52 4f 55 54 49 4e 45 20 43 41 4c 4c 20     SUBROUTINE CALL 
    a9a1:	74 61 72 67 65 74 3a 22 00                          target:".

0000a9aa <ofKill>:
    a9aa:	74 72 79 69 6e 67 20 74 6f 20 63 61 6c 6c 20 73     trying to call s
    a9ba:	75 62 2d 67 63 6f 64 65 20 66 69 6c 65 73 20 77     ub-gcode files w
    a9ca:	69 74 68 20 74 6f 6f 20 6d 61 6e 79 20 6c 65 76     ith too many lev
    a9da:	65 6c 73 2e 00                                      els..

0000a9df <pat9125_init_bank1>:
    a9df:	06 28 33 d0 36 c2 3e 01 3f 15 41 32 42 3b 43 f2     .(3.6.>.?.A2B;C.
    a9ef:	44 3b 45 f2 46 22 47 3b 48 f2 49 3b 4a f0 58 98     D;E.F"G;H.I;J.X.
    a9ff:	59 0c 5a 08 5b 0c 5c 08 61 10 67 9b 6e 22 71 07     Y.Z.[.\.a.g.n"q.
    aa0f:	72 08 ff                                            r..

0000aa12 <pat9125_init_bank0>:
    aa12:	09 5a 0d 00 0e f0 19 14 5e 08 20 64 2b 6d 32 2f     .Z......^. d+m2/
    aa22:	ff                                                  .

0000aa23 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::__c>:
    aa23:	20 22 25 73 22 00                                    "%s".

0000aa29 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::__c>:
    aa29:	20 25 23 6c 78 00                                    %#lx.

0000aa2f <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::__c>:
    aa2f:	44 49 52 5f 45 58 49 54 00                          DIR_EXIT.

0000aa38 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::__c>:
    aa38:	44 49 52 5f 45 4e 54 45 52 3a 20 25 73 20 22 25     DIR_ENTER: %s "%
    aa48:	73 22 0a 00                                         s"..

0000aa4c <CardReader::checkautostart(bool)::__c>:
    aa4c:	61 75 74 6f 25 69 2e 67 00                          auto%i.g.

0000aa55 <MMU2::ProtocolLogic::regs16Addrs>:
    aa55:	04 1a                                               ..

0000aa57 <MMU2::ProtocolLogic::DecrementRetryAttempts()::__c>:
    aa57:	44 65 63 72 65 6d 65 6e 74 52 65 74 72 79 41 74     DecrementRetryAt
    aa67:	74 65 6d 70 74 73 00                                tempts.

0000aa6e <MMU2::ProtocolLogic::regs8Addrs>:
    aa6e:	08 1b 1c                                            ...

0000aa71 <MMU2::ProtocolLogic::initRegs8Addrs>:
    aa71:	0b 14                                               ..

0000aa73 <_ZZN4MMU213ProtocolLogic33ResetCommunicationTimeoutAttemptsEvE3__c.lto_priv.400>:
    aa73:	52 53 54 43 6f 6d 6d 54 69 6d 65 6f 75 74 00        RSTCommTimeout.

0000aa82 <MMU2::ProtocolLogic::LogError(char const*)::__c>:
    aa82:	2c 20 6c 61 73 74 20 62 79 74 65 73 3a 20 00        , last bytes: .

0000aa91 <_ZL10bufferFull.lto_priv.554>:
    aa91:	22 20 66 61 69 6c 65 64 3a 20 42 75 66 66 65 72     " failed: Buffer
    aaa1:	20 66 75 6c 6c 21 00                                 full!.

0000aaa8 <errormagic>:
    aaa8:	45 72 72 6f 72 3a 00                                Error:.

0000aaaf <enquecommand_front(char const*, bool)::__c>:
    aaaf:	22 00                                               ".

0000aab1 <enqueingFront>:
    aab1:	45 6e 71 75 65 69 6e 67 20 74 6f 20 74 68 65 20     Enqueing to the 
    aac1:	66 72 6f 6e 74 3a 20 22 00                          front: ".

0000aaca <_ZL9mmu2Magic.lto_priv.375>:
    aaca:	4d 4d 55 32 3a 00                                   MMU2:.

0000aad0 <echomagic>:
    aad0:	65 63 68 6f 3a 00                                   echo:.

0000aad6 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char)::__c>:
    aad6:	3e 53 30 2a 63 36 2e 00                             >S0*c6..

0000aade <MMU2::MMU2::Status()::__c>:
    aade:	4d 4d 55 20 69 73 20 00                             MMU is .

0000aae6 <menu_format_sheet_E(Sheet const&, SheetFormatBuffer&)::__c>:
    aae6:	25 2e 31 30 53 20 00                                %.10S .

0000aaed <menu_draw_P(char, char const*, int)::__c>:
    aaed:	25 34 64 00                                         %4d.

0000aaf1 <sample_mesh_and_store_reference()::__c>:
    aaf1:	45 78 72 65 6d 65 20 73 70 61 6e 20 6f 66 20 74     Exreme span of t
    ab01:	68 65 20 5a 20 76 61 6c 75 65 73 21 00              he Z values!.

0000ab0e <sample_mesh_and_store_reference()::__c>:
    ab0e:	25 64 2f 39 00                                      %d/9.

0000ab13 <mmu2Magic>:
    ab13:	4d 4d 55 32 3a 00                                   MMU2:.

0000ab19 <MMU2::ReportErrorHookDynamicRender()::__c>:
    ab19:	25 33 64 00                                         %3d.

0000ab1d <MMU2::TuneItems>:
    ab1d:	18 01 04 19 02 0a                                   ......

0000ab23 <MMU2::errorDescs>:
    ab23:	fa 62 84 62 0a 62 9d 61 54 61 c2 60 4a 60 e2 5f     .b.b.b.aTa.`J`._
    ab33:	93 5f 73 5f 27 5f 73 5f 10 5f 10 5f 10 5f 10 5f     ._s_'_s_._._._._
    ab43:	10 5f 10 5f 10 5f 10 5f 10 5f 10 5f 10 5f 10 5f     ._._._._._._._._
    ab53:	10 5f 10 5f 10 5f 10 5f 10 5f 10 5f 10 5f 10 5f     ._._._._._._._._
    ab63:	10 5f 10 5f d9 5e 98 5e 4e 5e db 5d a6 5d 5c 5d     ._._.^.^N^.].]\]
    ab73:	12 5d b4 5c 7b 5c 39 5c 1c 5c                       .].\{\9\.\

0000ab7d <MMU2::errorButtons>:
    ab7d:	01 01 01 01 01 01 01 02 71 01 71 01 32 32 32 03     ........q.q.222.
    ab8d:	03 03 03 03 03 03 03 03 03 03 03 03 03 03 03 03     ................
    ab9d:	03 03 93 93 24 38 03 93 03 01 02 56 03              ....$8.....V.

0000abaa <MMU2::errorCodes>:
    abaa:	65 00 66 00 67 00 68 00 69 00 6a 00 6b 00 6c 00     e.f.g.h.i.j.k.l.
    abba:	73 00 74 00 7d 00 7e 00 c9 00 d3 00 dd 00 ca 00     s.t.}.~.........
    abca:	d4 00 de 00 2d 01 37 01 41 01 2e 01 38 01 42 01     ....-.7.A...8.B.
    abda:	2f 01 39 01 43 01 30 01 3a 01 44 01 31 01 3b 01     /.9.C.0.:.D.1.;.
    abea:	45 01 32 01 91 01 92 01 f5 01 f6 01 f7 01 f8 01     E.2.............
    abfa:	f9 01 fa 01 fb 01 fc 01 84 03                       ..........

0000ac04 <MMU2::btnOperation>:
    ac04:	87 63 f0 63 7c 63 73 63 6c 63 78 4f e7 46 65 63     .c.c|csclcxO.Fec
    ac14:	5b 63                                               [c

0000ac16 <MMU2::ReportErrorHookStaticRender(unsigned char)::__c>:
    ac16:	25 2e 32 30 53 0a 70 72 75 73 61 2e 69 6f 2f 30     %.20S.prusa.io/0
    ac26:	34 25 68 75 00                                      4%hu.

0000ac2b <optiboot_xflash_enter()::__c>:
    ac2b:	20 55 70 67 72 61 64 69 6e 67 20 78 66 6c 61 73      Upgrading xflas
    ac3b:	68 0a 20 44 6f 20 6e 6f 74 20 64 69 73 63 6f 6e     h. Do not discon
    ac4b:	6e 65 63 74 21 00                                   nect!.

0000ac51 <entry_magic_cfm>:
    ac51:	77 32 35 78 32 30 63 6c 5f 63 66 6d 0a 00           w25x20cl_cfm..

0000ac5f <entry_magic_receive>:
    ac5f:	77 32 35 78 32 30 63 6c 5f 65 6e 74 65 72 0a 00     w25x20cl_enter..

0000ac6f <entry_magic_send>:
    ac6f:	73 74 61 72 74 0a 00                                start..

0000ac76 <__ctors_start>:
    ac76:	c0 3a       	cpi	r28, 0xA0	; 160

0000ac78 <__ctors_end>:
    ac78:	fc 63       	ori	r31, 0x3C	; 60

0000ac7a <__dtors_end>:
    ac7a:	11 24       	eor	r1, r1
    ac7c:	1f be       	out	0x3f, r1	; 63
    ac7e:	cf ef       	ldi	r28, 0xFF	; 255
    ac80:	d1 e2       	ldi	r29, 0x21	; 33
    ac82:	de bf       	out	0x3e, r29	; 62
    ac84:	cd bf       	out	0x3d, r28	; 61
    ac86:	00 e0       	ldi	r16, 0x00	; 0
    ac88:	0c bf       	out	0x3c, r16	; 60

0000ac8a <__do_copy_data>:
    ac8a:	13 e0       	ldi	r17, 0x03	; 3
    ac8c:	a0 e0       	ldi	r26, 0x00	; 0
    ac8e:	b2 e0       	ldi	r27, 0x02	; 2
    ac90:	ee e4       	ldi	r30, 0x4E	; 78
    ac92:	f6 ec       	ldi	r31, 0xC6	; 198
    ac94:	03 e0       	ldi	r16, 0x03	; 3
    ac96:	0b bf       	out	0x3b, r16	; 59
    ac98:	02 c0       	rjmp	.+4      	; 0xac9e <__do_copy_data+0x14>
    ac9a:	07 90       	elpm	r0, Z+
    ac9c:	0d 92       	st	X+, r0
    ac9e:	a4 32       	cpi	r26, 0x24	; 36
    aca0:	b1 07       	cpc	r27, r17
    aca2:	d9 f7       	brne	.-10     	; 0xac9a <__do_copy_data+0x10>

0000aca4 <__do_clear_bss>:
    aca4:	28 e1       	ldi	r18, 0x18	; 24
    aca6:	a4 e2       	ldi	r26, 0x24	; 36
    aca8:	b3 e0       	ldi	r27, 0x03	; 3
    acaa:	01 c0       	rjmp	.+2      	; 0xacae <.do_clear_bss_start>

0000acac <.do_clear_bss_loop>:
    acac:	1d 92       	st	X+, r1

0000acae <.do_clear_bss_start>:
    acae:	a0 32       	cpi	r26, 0x20	; 32
    acb0:	b2 07       	cpc	r27, r18
    acb2:	e1 f7       	brne	.-8      	; 0xacac <.do_clear_bss_loop>

0000acb4 <__do_global_ctors>:
    acb4:	16 e5       	ldi	r17, 0x56	; 86
    acb6:	cc e3       	ldi	r28, 0x3C	; 60
    acb8:	d6 e5       	ldi	r29, 0x56	; 86
    acba:	00 e0       	ldi	r16, 0x00	; 0
    acbc:	06 c0       	rjmp	.+12     	; 0xacca <__do_global_ctors+0x16>
    acbe:	21 97       	sbiw	r28, 0x01	; 1
    acc0:	01 09       	sbc	r16, r1
    acc2:	80 2f       	mov	r24, r16
    acc4:	fe 01       	movw	r30, r28
    acc6:	0f 94 6b dd 	call	0x3bad6	; 0x3bad6 <__tablejump2__>
    acca:	cb 33       	cpi	r28, 0x3B	; 59
    accc:	d1 07       	cpc	r29, r17
    acce:	80 e0       	ldi	r24, 0x00	; 0
    acd0:	08 07       	cpc	r16, r24
    acd2:	a9 f7       	brne	.-22     	; 0xacbe <__do_global_ctors+0xa>
    acd4:	0e 94 75 fb 	call	0x1f6ea	; 0x1f6ea <main>
    acd8:	0d 94 15 e3 	jmp	0x3c62a	; 0x3c62a <__do_global_dtors>

0000acdc <__bad_interrupt>:
    acdc:	0c 94 f2 66 	jmp	0xcde4	; 0xcde4 <__vector_default>

0000ace0 <vfprintf>:
    ace0:	2f 92       	push	r2
    ace2:	3f 92       	push	r3
    ace4:	4f 92       	push	r4
    ace6:	5f 92       	push	r5
    ace8:	6f 92       	push	r6
    acea:	7f 92       	push	r7
    acec:	8f 92       	push	r8
    acee:	9f 92       	push	r9
    acf0:	af 92       	push	r10
    acf2:	bf 92       	push	r11
    acf4:	cf 92       	push	r12
    acf6:	df 92       	push	r13
    acf8:	ef 92       	push	r14
    acfa:	ff 92       	push	r15
    acfc:	0f 93       	push	r16
    acfe:	1f 93       	push	r17
    ad00:	cf 93       	push	r28
    ad02:	df 93       	push	r29
    ad04:	cd b7       	in	r28, 0x3d	; 61
    ad06:	de b7       	in	r29, 0x3e	; 62
    ad08:	2f 97       	sbiw	r28, 0x0f	; 15
    ad0a:	0f b6       	in	r0, 0x3f	; 63
    ad0c:	f8 94       	cli
    ad0e:	de bf       	out	0x3e, r29	; 62
    ad10:	0f be       	out	0x3f, r0	; 63
    ad12:	cd bf       	out	0x3d, r28	; 61
    ad14:	6c 01       	movw	r12, r24
    ad16:	1b 01       	movw	r2, r22
    ad18:	5a 01       	movw	r10, r20
    ad1a:	fc 01       	movw	r30, r24
    ad1c:	17 82       	std	Z+7, r1	; 0x07
    ad1e:	16 82       	std	Z+6, r1	; 0x06
    ad20:	83 81       	ldd	r24, Z+3	; 0x03
    ad22:	9e 01       	movw	r18, r28
    ad24:	2f 5f       	subi	r18, 0xFF	; 255
    ad26:	3f 4f       	sbci	r19, 0xFF	; 255
    ad28:	49 01       	movw	r8, r18
    ad2a:	81 fd       	sbrc	r24, 1
    ad2c:	d2 c0       	rjmp	.+420    	; 0xaed2 <vfprintf+0x1f2>
    ad2e:	8f ef       	ldi	r24, 0xFF	; 255
    ad30:	9f ef       	ldi	r25, 0xFF	; 255
    ad32:	ee c2       	rjmp	.+1500   	; 0xb310 <vfprintf+0x630>
    ad34:	f1 2c       	mov	r15, r1
    ad36:	51 2c       	mov	r5, r1
    ad38:	00 e0       	ldi	r16, 0x00	; 0
    ad3a:	00 32       	cpi	r16, 0x20	; 32
    ad3c:	38 f4       	brcc	.+14     	; 0xad4c <vfprintf+0x6c>
    ad3e:	8b 32       	cpi	r24, 0x2B	; 43
    ad40:	09 f1       	breq	.+66     	; 0xad84 <vfprintf+0xa4>
    ad42:	90 f4       	brcc	.+36     	; 0xad68 <vfprintf+0x88>
    ad44:	80 32       	cpi	r24, 0x20	; 32
    ad46:	f9 f0       	breq	.+62     	; 0xad86 <vfprintf+0xa6>
    ad48:	83 32       	cpi	r24, 0x23	; 35
    ad4a:	09 f1       	breq	.+66     	; 0xad8e <vfprintf+0xae>
    ad4c:	07 fd       	sbrc	r16, 7
    ad4e:	34 c0       	rjmp	.+104    	; 0xadb8 <vfprintf+0xd8>
    ad50:	20 ed       	ldi	r18, 0xD0	; 208
    ad52:	28 0f       	add	r18, r24
    ad54:	2a 30       	cpi	r18, 0x0A	; 10
    ad56:	20 f5       	brcc	.+72     	; 0xada0 <vfprintf+0xc0>
    ad58:	06 ff       	sbrs	r16, 6
    ad5a:	1b c0       	rjmp	.+54     	; 0xad92 <vfprintf+0xb2>
    ad5c:	fa e0       	ldi	r31, 0x0A	; 10
    ad5e:	ff 9e       	mul	r15, r31
    ad60:	20 0d       	add	r18, r0
    ad62:	11 24       	eor	r1, r1
    ad64:	f2 2e       	mov	r15, r18
    ad66:	05 c0       	rjmp	.+10     	; 0xad72 <vfprintf+0x92>
    ad68:	8d 32       	cpi	r24, 0x2D	; 45
    ad6a:	79 f0       	breq	.+30     	; 0xad8a <vfprintf+0xaa>
    ad6c:	80 33       	cpi	r24, 0x30	; 48
    ad6e:	71 f7       	brne	.-36     	; 0xad4c <vfprintf+0x6c>
    ad70:	01 60       	ori	r16, 0x01	; 1
    ad72:	f1 01       	movw	r30, r2
    ad74:	93 fd       	sbrc	r25, 3
    ad76:	85 91       	lpm	r24, Z+
    ad78:	93 ff       	sbrs	r25, 3
    ad7a:	81 91       	ld	r24, Z+
    ad7c:	1f 01       	movw	r2, r30
    ad7e:	81 11       	cpse	r24, r1
    ad80:	dc cf       	rjmp	.-72     	; 0xad3a <vfprintf+0x5a>
    ad82:	1a c0       	rjmp	.+52     	; 0xadb8 <vfprintf+0xd8>
    ad84:	02 60       	ori	r16, 0x02	; 2
    ad86:	04 60       	ori	r16, 0x04	; 4
    ad88:	f4 cf       	rjmp	.-24     	; 0xad72 <vfprintf+0x92>
    ad8a:	08 60       	ori	r16, 0x08	; 8
    ad8c:	f2 cf       	rjmp	.-28     	; 0xad72 <vfprintf+0x92>
    ad8e:	00 61       	ori	r16, 0x10	; 16
    ad90:	f0 cf       	rjmp	.-32     	; 0xad72 <vfprintf+0x92>
    ad92:	3a e0       	ldi	r19, 0x0A	; 10
    ad94:	53 9e       	mul	r5, r19
    ad96:	20 0d       	add	r18, r0
    ad98:	11 24       	eor	r1, r1
    ad9a:	52 2e       	mov	r5, r18
    ad9c:	00 62       	ori	r16, 0x20	; 32
    ad9e:	e9 cf       	rjmp	.-46     	; 0xad72 <vfprintf+0x92>
    ada0:	8e 32       	cpi	r24, 0x2E	; 46
    ada2:	21 f4       	brne	.+8      	; 0xadac <vfprintf+0xcc>
    ada4:	06 fd       	sbrc	r16, 6
    ada6:	b1 c2       	rjmp	.+1378   	; 0xb30a <vfprintf+0x62a>
    ada8:	00 64       	ori	r16, 0x40	; 64
    adaa:	e3 cf       	rjmp	.-58     	; 0xad72 <vfprintf+0x92>
    adac:	8c 36       	cpi	r24, 0x6C	; 108
    adae:	11 f4       	brne	.+4      	; 0xadb4 <vfprintf+0xd4>
    adb0:	00 68       	ori	r16, 0x80	; 128
    adb2:	df cf       	rjmp	.-66     	; 0xad72 <vfprintf+0x92>
    adb4:	88 36       	cpi	r24, 0x68	; 104
    adb6:	e9 f2       	breq	.-70     	; 0xad72 <vfprintf+0x92>
    adb8:	9b eb       	ldi	r25, 0xBB	; 187
    adba:	98 0f       	add	r25, r24
    adbc:	93 30       	cpi	r25, 0x03	; 3
    adbe:	08 f0       	brcs	.+2      	; 0xadc2 <vfprintf+0xe2>
    adc0:	5f c0       	rjmp	.+190    	; 0xae80 <vfprintf+0x1a0>
    adc2:	00 61       	ori	r16, 0x10	; 16
    adc4:	80 5e       	subi	r24, 0xE0	; 224
    adc6:	06 fd       	sbrc	r16, 6
    adc8:	02 c0       	rjmp	.+4      	; 0xadce <vfprintf+0xee>
    adca:	46 e0       	ldi	r20, 0x06	; 6
    adcc:	f4 2e       	mov	r15, r20
    adce:	10 2f       	mov	r17, r16
    add0:	1f 73       	andi	r17, 0x3F	; 63
    add2:	85 36       	cpi	r24, 0x65	; 101
    add4:	09 f0       	breq	.+2      	; 0xadd8 <vfprintf+0xf8>
    add6:	5b c0       	rjmp	.+182    	; 0xae8e <vfprintf+0x1ae>
    add8:	10 64       	ori	r17, 0x40	; 64
    adda:	17 ff       	sbrs	r17, 7
    addc:	61 c0       	rjmp	.+194    	; 0xaea0 <vfprintf+0x1c0>
    adde:	8f 2d       	mov	r24, r15
    ade0:	9b e3       	ldi	r25, 0x3B	; 59
    ade2:	9f 15       	cp	r25, r15
    ade4:	08 f4       	brcc	.+2      	; 0xade8 <vfprintf+0x108>
    ade6:	8b e3       	ldi	r24, 0x3B	; 59
    ade8:	44 24       	eor	r4, r4
    adea:	43 94       	inc	r4
    adec:	48 0e       	add	r4, r24
    adee:	27 e0       	ldi	r18, 0x07	; 7
    adf0:	35 01       	movw	r6, r10
    adf2:	f4 e0       	ldi	r31, 0x04	; 4
    adf4:	6f 0e       	add	r6, r31
    adf6:	71 1c       	adc	r7, r1
    adf8:	f5 01       	movw	r30, r10
    adfa:	60 81       	ld	r22, Z
    adfc:	71 81       	ldd	r23, Z+1	; 0x01
    adfe:	82 81       	ldd	r24, Z+2	; 0x02
    ae00:	93 81       	ldd	r25, Z+3	; 0x03
    ae02:	04 2d       	mov	r16, r4
    ae04:	a4 01       	movw	r20, r8
    ae06:	0f 94 14 d9 	call	0x3b228	; 0x3b228 <__ftoa_engine>
    ae0a:	5c 01       	movw	r10, r24
    ae0c:	f9 81       	ldd	r31, Y+1	; 0x01
    ae0e:	fc 87       	std	Y+12, r31	; 0x0c
    ae10:	f0 ff       	sbrs	r31, 0
    ae12:	03 c0       	rjmp	.+6      	; 0xae1a <vfprintf+0x13a>
    ae14:	0d e2       	ldi	r16, 0x2D	; 45
    ae16:	f3 ff       	sbrs	r31, 3
    ae18:	07 c0       	rjmp	.+14     	; 0xae28 <vfprintf+0x148>
    ae1a:	0b e2       	ldi	r16, 0x2B	; 43
    ae1c:	11 fd       	sbrc	r17, 1
    ae1e:	04 c0       	rjmp	.+8      	; 0xae28 <vfprintf+0x148>
    ae20:	01 2f       	mov	r16, r17
    ae22:	04 70       	andi	r16, 0x04	; 4
    ae24:	12 fd       	sbrc	r17, 2
    ae26:	00 e2       	ldi	r16, 0x20	; 32
    ae28:	2c 85       	ldd	r18, Y+12	; 0x0c
    ae2a:	2c 70       	andi	r18, 0x0C	; 12
    ae2c:	e2 2e       	mov	r14, r18
    ae2e:	09 f4       	brne	.+2      	; 0xae32 <vfprintf+0x152>
    ae30:	6b c0       	rjmp	.+214    	; 0xaf08 <vfprintf+0x228>
    ae32:	01 11       	cpse	r16, r1
    ae34:	d8 c2       	rjmp	.+1456   	; 0xb3e6 <vfprintf+0x706>
    ae36:	f3 e0       	ldi	r31, 0x03	; 3
    ae38:	e1 2c       	mov	r14, r1
    ae3a:	f5 15       	cp	r31, r5
    ae3c:	a0 f4       	brcc	.+40     	; 0xae66 <vfprintf+0x186>
    ae3e:	83 e0       	ldi	r24, 0x03	; 3
    ae40:	e5 2c       	mov	r14, r5
    ae42:	e8 1a       	sub	r14, r24
    ae44:	13 fd       	sbrc	r17, 3
    ae46:	08 c0       	rjmp	.+16     	; 0xae58 <vfprintf+0x178>
    ae48:	b6 01       	movw	r22, r12
    ae4a:	80 e2       	ldi	r24, 0x20	; 32
    ae4c:	90 e0       	ldi	r25, 0x00	; 0
    ae4e:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    ae52:	ea 94       	dec	r14
    ae54:	e1 10       	cpse	r14, r1
    ae56:	f8 cf       	rjmp	.-16     	; 0xae48 <vfprintf+0x168>
    ae58:	00 23       	and	r16, r16
    ae5a:	29 f0       	breq	.+10     	; 0xae66 <vfprintf+0x186>
    ae5c:	b6 01       	movw	r22, r12
    ae5e:	80 2f       	mov	r24, r16
    ae60:	90 e0       	ldi	r25, 0x00	; 0
    ae62:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    ae66:	3c 85       	ldd	r19, Y+12	; 0x0c
    ae68:	2c e9       	ldi	r18, 0x9C	; 156
    ae6a:	a2 2e       	mov	r10, r18
    ae6c:	25 e7       	ldi	r18, 0x75	; 117
    ae6e:	b2 2e       	mov	r11, r18
    ae70:	33 fd       	sbrc	r19, 3
    ae72:	04 c0       	rjmp	.+8      	; 0xae7c <vfprintf+0x19c>
    ae74:	90 ea       	ldi	r25, 0xA0	; 160
    ae76:	a9 2e       	mov	r10, r25
    ae78:	95 e7       	ldi	r25, 0x75	; 117
    ae7a:	b9 2e       	mov	r11, r25
    ae7c:	10 71       	andi	r17, 0x10	; 16
    ae7e:	22 c0       	rjmp	.+68     	; 0xaec4 <vfprintf+0x1e4>
    ae80:	9b e9       	ldi	r25, 0x9B	; 155
    ae82:	98 0f       	add	r25, r24
    ae84:	93 30       	cpi	r25, 0x03	; 3
    ae86:	08 f0       	brcs	.+2      	; 0xae8a <vfprintf+0x1aa>
    ae88:	47 c1       	rjmp	.+654    	; 0xb118 <vfprintf+0x438>
    ae8a:	0f 7e       	andi	r16, 0xEF	; 239
    ae8c:	9c cf       	rjmp	.-200    	; 0xadc6 <vfprintf+0xe6>
    ae8e:	86 36       	cpi	r24, 0x66	; 102
    ae90:	11 f4       	brne	.+4      	; 0xae96 <vfprintf+0x1b6>
    ae92:	10 68       	ori	r17, 0x80	; 128
    ae94:	a2 cf       	rjmp	.-188    	; 0xadda <vfprintf+0xfa>
    ae96:	ff 20       	and	r15, r15
    ae98:	09 f4       	brne	.+2      	; 0xae9c <vfprintf+0x1bc>
    ae9a:	9f cf       	rjmp	.-194    	; 0xadda <vfprintf+0xfa>
    ae9c:	fa 94       	dec	r15
    ae9e:	9d cf       	rjmp	.-198    	; 0xadda <vfprintf+0xfa>
    aea0:	e7 e0       	ldi	r30, 0x07	; 7
    aea2:	2f 2d       	mov	r18, r15
    aea4:	ef 15       	cp	r30, r15
    aea6:	18 f4       	brcc	.+6      	; 0xaeae <vfprintf+0x1ce>
    aea8:	27 e0       	ldi	r18, 0x07	; 7
    aeaa:	37 e0       	ldi	r19, 0x07	; 7
    aeac:	f3 2e       	mov	r15, r19
    aeae:	41 2c       	mov	r4, r1
    aeb0:	9f cf       	rjmp	.-194    	; 0xadf0 <vfprintf+0x110>
    aeb2:	11 11       	cpse	r17, r1
    aeb4:	80 52       	subi	r24, 0x20	; 32
    aeb6:	b6 01       	movw	r22, r12
    aeb8:	90 e0       	ldi	r25, 0x00	; 0
    aeba:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    aebe:	8f ef       	ldi	r24, 0xFF	; 255
    aec0:	a8 1a       	sub	r10, r24
    aec2:	b8 0a       	sbc	r11, r24
    aec4:	f5 01       	movw	r30, r10
    aec6:	84 91       	lpm	r24, Z
    aec8:	81 11       	cpse	r24, r1
    aeca:	f3 cf       	rjmp	.-26     	; 0xaeb2 <vfprintf+0x1d2>
    aecc:	e1 10       	cpse	r14, r1
    aece:	84 c2       	rjmp	.+1288   	; 0xb3d8 <vfprintf+0x6f8>
    aed0:	53 01       	movw	r10, r6
    aed2:	f6 01       	movw	r30, r12
    aed4:	93 81       	ldd	r25, Z+3	; 0x03
    aed6:	f1 01       	movw	r30, r2
    aed8:	93 fd       	sbrc	r25, 3
    aeda:	85 91       	lpm	r24, Z+
    aedc:	93 ff       	sbrs	r25, 3
    aede:	81 91       	ld	r24, Z+
    aee0:	1f 01       	movw	r2, r30
    aee2:	88 23       	and	r24, r24
    aee4:	09 f4       	brne	.+2      	; 0xaee8 <vfprintf+0x208>
    aee6:	11 c2       	rjmp	.+1058   	; 0xb30a <vfprintf+0x62a>
    aee8:	85 32       	cpi	r24, 0x25	; 37
    aeea:	41 f4       	brne	.+16     	; 0xaefc <vfprintf+0x21c>
    aeec:	93 fd       	sbrc	r25, 3
    aeee:	85 91       	lpm	r24, Z+
    aef0:	93 ff       	sbrs	r25, 3
    aef2:	81 91       	ld	r24, Z+
    aef4:	1f 01       	movw	r2, r30
    aef6:	85 32       	cpi	r24, 0x25	; 37
    aef8:	09 f0       	breq	.+2      	; 0xaefc <vfprintf+0x21c>
    aefa:	1c cf       	rjmp	.-456    	; 0xad34 <vfprintf+0x54>
    aefc:	b6 01       	movw	r22, r12
    aefe:	90 e0       	ldi	r25, 0x00	; 0
    af00:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    af04:	35 01       	movw	r6, r10
    af06:	e4 cf       	rjmp	.-56     	; 0xaed0 <vfprintf+0x1f0>
    af08:	17 ff       	sbrs	r17, 7
    af0a:	6f c0       	rjmp	.+222    	; 0xafea <vfprintf+0x30a>
    af0c:	4a 0c       	add	r4, r10
    af0e:	fc 85       	ldd	r31, Y+12	; 0x0c
    af10:	f4 ff       	sbrs	r31, 4
    af12:	04 c0       	rjmp	.+8      	; 0xaf1c <vfprintf+0x23c>
    af14:	8a 81       	ldd	r24, Y+2	; 0x02
    af16:	81 33       	cpi	r24, 0x31	; 49
    af18:	09 f4       	brne	.+2      	; 0xaf1c <vfprintf+0x23c>
    af1a:	4a 94       	dec	r4
    af1c:	14 14       	cp	r1, r4
    af1e:	0c f0       	brlt	.+2      	; 0xaf22 <vfprintf+0x242>
    af20:	86 c0       	rjmp	.+268    	; 0xb02e <vfprintf+0x34e>
    af22:	28 e0       	ldi	r18, 0x08	; 8
    af24:	24 15       	cp	r18, r4
    af26:	10 f4       	brcc	.+4      	; 0xaf2c <vfprintf+0x24c>
    af28:	88 e0       	ldi	r24, 0x08	; 8
    af2a:	48 2e       	mov	r4, r24
    af2c:	85 e0       	ldi	r24, 0x05	; 5
    af2e:	90 e0       	ldi	r25, 0x00	; 0
    af30:	17 ff       	sbrs	r17, 7
    af32:	06 c0       	rjmp	.+12     	; 0xaf40 <vfprintf+0x260>
    af34:	c5 01       	movw	r24, r10
    af36:	b7 fe       	sbrs	r11, 7
    af38:	02 c0       	rjmp	.+4      	; 0xaf3e <vfprintf+0x25e>
    af3a:	90 e0       	ldi	r25, 0x00	; 0
    af3c:	80 e0       	ldi	r24, 0x00	; 0
    af3e:	01 96       	adiw	r24, 0x01	; 1
    af40:	01 11       	cpse	r16, r1
    af42:	01 96       	adiw	r24, 0x01	; 1
    af44:	ff 20       	and	r15, r15
    af46:	31 f0       	breq	.+12     	; 0xaf54 <vfprintf+0x274>
    af48:	2f 2d       	mov	r18, r15
    af4a:	30 e0       	ldi	r19, 0x00	; 0
    af4c:	2f 5f       	subi	r18, 0xFF	; 255
    af4e:	3f 4f       	sbci	r19, 0xFF	; 255
    af50:	82 0f       	add	r24, r18
    af52:	93 1f       	adc	r25, r19
    af54:	58 16       	cp	r5, r24
    af56:	19 06       	cpc	r1, r25
    af58:	19 f0       	breq	.+6      	; 0xaf60 <vfprintf+0x280>
    af5a:	14 f0       	brlt	.+4      	; 0xaf60 <vfprintf+0x280>
    af5c:	e5 2c       	mov	r14, r5
    af5e:	e8 1a       	sub	r14, r24
    af60:	81 2f       	mov	r24, r17
    af62:	89 70       	andi	r24, 0x09	; 9
    af64:	11 f4       	brne	.+4      	; 0xaf6a <vfprintf+0x28a>
    af66:	e1 10       	cpse	r14, r1
    af68:	67 c0       	rjmp	.+206    	; 0xb038 <vfprintf+0x358>
    af6a:	00 23       	and	r16, r16
    af6c:	29 f0       	breq	.+10     	; 0xaf78 <vfprintf+0x298>
    af6e:	b6 01       	movw	r22, r12
    af70:	80 2f       	mov	r24, r16
    af72:	90 e0       	ldi	r25, 0x00	; 0
    af74:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    af78:	13 fd       	sbrc	r17, 3
    af7a:	02 c0       	rjmp	.+4      	; 0xaf80 <vfprintf+0x2a0>
    af7c:	e1 10       	cpse	r14, r1
    af7e:	63 c0       	rjmp	.+198    	; 0xb046 <vfprintf+0x366>
    af80:	17 ff       	sbrs	r17, 7
    af82:	7c c0       	rjmp	.+248    	; 0xb07c <vfprintf+0x39c>
    af84:	85 01       	movw	r16, r10
    af86:	b7 fe       	sbrs	r11, 7
    af88:	02 c0       	rjmp	.+4      	; 0xaf8e <vfprintf+0x2ae>
    af8a:	10 e0       	ldi	r17, 0x00	; 0
    af8c:	00 e0       	ldi	r16, 0x00	; 0
    af8e:	c5 01       	movw	r24, r10
    af90:	84 19       	sub	r24, r4
    af92:	91 09       	sbc	r25, r1
    af94:	2c 01       	movw	r4, r24
    af96:	6f 2d       	mov	r22, r15
    af98:	70 e0       	ldi	r23, 0x00	; 0
    af9a:	ee 27       	eor	r30, r30
    af9c:	ff 27       	eor	r31, r31
    af9e:	e6 1b       	sub	r30, r22
    afa0:	f7 0b       	sbc	r31, r23
    afa2:	ff 87       	std	Y+15, r31	; 0x0f
    afa4:	ee 87       	std	Y+14, r30	; 0x0e
    afa6:	0f 3f       	cpi	r16, 0xFF	; 255
    afa8:	10 07       	cpc	r17, r16
    afaa:	29 f4       	brne	.+10     	; 0xafb6 <vfprintf+0x2d6>
    afac:	b6 01       	movw	r22, r12
    afae:	8e e2       	ldi	r24, 0x2E	; 46
    afb0:	90 e0       	ldi	r25, 0x00	; 0
    afb2:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    afb6:	a0 16       	cp	r10, r16
    afb8:	b1 06       	cpc	r11, r17
    afba:	0c f4       	brge	.+2      	; 0xafbe <vfprintf+0x2de>
    afbc:	4b c0       	rjmp	.+150    	; 0xb054 <vfprintf+0x374>
    afbe:	40 16       	cp	r4, r16
    afc0:	51 06       	cpc	r5, r17
    afc2:	0c f0       	brlt	.+2      	; 0xafc6 <vfprintf+0x2e6>
    afc4:	47 c0       	rjmp	.+142    	; 0xb054 <vfprintf+0x374>
    afc6:	f5 01       	movw	r30, r10
    afc8:	e0 1b       	sub	r30, r16
    afca:	f1 0b       	sbc	r31, r17
    afcc:	e8 0d       	add	r30, r8
    afce:	f9 1d       	adc	r31, r9
    afd0:	81 81       	ldd	r24, Z+1	; 0x01
    afd2:	01 50       	subi	r16, 0x01	; 1
    afd4:	11 09       	sbc	r17, r1
    afd6:	2e 85       	ldd	r18, Y+14	; 0x0e
    afd8:	3f 85       	ldd	r19, Y+15	; 0x0f
    afda:	02 17       	cp	r16, r18
    afdc:	13 07       	cpc	r17, r19
    afde:	e4 f1       	brlt	.+120    	; 0xb058 <vfprintf+0x378>
    afe0:	b6 01       	movw	r22, r12
    afe2:	90 e0       	ldi	r25, 0x00	; 0
    afe4:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    afe8:	de cf       	rjmp	.-68     	; 0xafa6 <vfprintf+0x2c6>
    afea:	16 fd       	sbrc	r17, 6
    afec:	9f cf       	rjmp	.-194    	; 0xaf2c <vfprintf+0x24c>
    afee:	ef 2d       	mov	r30, r15
    aff0:	f0 e0       	ldi	r31, 0x00	; 0
    aff2:	ea 15       	cp	r30, r10
    aff4:	fb 05       	cpc	r31, r11
    aff6:	34 f0       	brlt	.+12     	; 0xb004 <vfprintf+0x324>
    aff8:	3c ef       	ldi	r19, 0xFC	; 252
    affa:	a3 16       	cp	r10, r19
    affc:	3f ef       	ldi	r19, 0xFF	; 255
    affe:	b3 06       	cpc	r11, r19
    b000:	0c f0       	brlt	.+2      	; 0xb004 <vfprintf+0x324>
    b002:	10 68       	ori	r17, 0x80	; 128
    b004:	32 96       	adiw	r30, 0x02	; 2
    b006:	e8 0d       	add	r30, r8
    b008:	f9 1d       	adc	r31, r9
    b00a:	01 c0       	rjmp	.+2      	; 0xb00e <vfprintf+0x32e>
    b00c:	fa 94       	dec	r15
    b00e:	ff 20       	and	r15, r15
    b010:	19 f0       	breq	.+6      	; 0xb018 <vfprintf+0x338>
    b012:	82 91       	ld	r24, -Z
    b014:	80 33       	cpi	r24, 0x30	; 48
    b016:	d1 f3       	breq	.-12     	; 0xb00c <vfprintf+0x32c>
    b018:	17 ff       	sbrs	r17, 7
    b01a:	88 cf       	rjmp	.-240    	; 0xaf2c <vfprintf+0x24c>
    b01c:	44 24       	eor	r4, r4
    b01e:	43 94       	inc	r4
    b020:	4f 0c       	add	r4, r15
    b022:	fa 14       	cp	r15, r10
    b024:	1b 04       	cpc	r1, r11
    b026:	31 f0       	breq	.+12     	; 0xb034 <vfprintf+0x354>
    b028:	2c f0       	brlt	.+10     	; 0xb034 <vfprintf+0x354>
    b02a:	fa 18       	sub	r15, r10
    b02c:	7f cf       	rjmp	.-258    	; 0xaf2c <vfprintf+0x24c>
    b02e:	44 24       	eor	r4, r4
    b030:	43 94       	inc	r4
    b032:	7c cf       	rjmp	.-264    	; 0xaf2c <vfprintf+0x24c>
    b034:	f1 2c       	mov	r15, r1
    b036:	7a cf       	rjmp	.-268    	; 0xaf2c <vfprintf+0x24c>
    b038:	b6 01       	movw	r22, r12
    b03a:	80 e2       	ldi	r24, 0x20	; 32
    b03c:	90 e0       	ldi	r25, 0x00	; 0
    b03e:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b042:	ea 94       	dec	r14
    b044:	90 cf       	rjmp	.-224    	; 0xaf66 <vfprintf+0x286>
    b046:	b6 01       	movw	r22, r12
    b048:	80 e3       	ldi	r24, 0x30	; 48
    b04a:	90 e0       	ldi	r25, 0x00	; 0
    b04c:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b050:	ea 94       	dec	r14
    b052:	94 cf       	rjmp	.-216    	; 0xaf7c <vfprintf+0x29c>
    b054:	80 e3       	ldi	r24, 0x30	; 48
    b056:	bd cf       	rjmp	.-134    	; 0xafd2 <vfprintf+0x2f2>
    b058:	a0 16       	cp	r10, r16
    b05a:	b1 06       	cpc	r11, r17
    b05c:	41 f4       	brne	.+16     	; 0xb06e <vfprintf+0x38e>
    b05e:	9a 81       	ldd	r25, Y+2	; 0x02
    b060:	96 33       	cpi	r25, 0x36	; 54
    b062:	50 f4       	brcc	.+20     	; 0xb078 <vfprintf+0x398>
    b064:	95 33       	cpi	r25, 0x35	; 53
    b066:	19 f4       	brne	.+6      	; 0xb06e <vfprintf+0x38e>
    b068:	3c 85       	ldd	r19, Y+12	; 0x0c
    b06a:	34 ff       	sbrs	r19, 4
    b06c:	05 c0       	rjmp	.+10     	; 0xb078 <vfprintf+0x398>
    b06e:	b6 01       	movw	r22, r12
    b070:	90 e0       	ldi	r25, 0x00	; 0
    b072:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b076:	2a cf       	rjmp	.-428    	; 0xaecc <vfprintf+0x1ec>
    b078:	81 e3       	ldi	r24, 0x31	; 49
    b07a:	f9 cf       	rjmp	.-14     	; 0xb06e <vfprintf+0x38e>
    b07c:	8a 81       	ldd	r24, Y+2	; 0x02
    b07e:	81 33       	cpi	r24, 0x31	; 49
    b080:	19 f0       	breq	.+6      	; 0xb088 <vfprintf+0x3a8>
    b082:	9c 85       	ldd	r25, Y+12	; 0x0c
    b084:	9f 7e       	andi	r25, 0xEF	; 239
    b086:	9c 87       	std	Y+12, r25	; 0x0c
    b088:	b6 01       	movw	r22, r12
    b08a:	90 e0       	ldi	r25, 0x00	; 0
    b08c:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b090:	ff 20       	and	r15, r15
    b092:	a9 f0       	breq	.+42     	; 0xb0be <vfprintf+0x3de>
    b094:	b6 01       	movw	r22, r12
    b096:	8e e2       	ldi	r24, 0x2E	; 46
    b098:	90 e0       	ldi	r25, 0x00	; 0
    b09a:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b09e:	f3 94       	inc	r15
    b0a0:	f3 94       	inc	r15
    b0a2:	e2 e0       	ldi	r30, 0x02	; 2
    b0a4:	01 e0       	ldi	r16, 0x01	; 1
    b0a6:	0e 0f       	add	r16, r30
    b0a8:	e8 0d       	add	r30, r8
    b0aa:	f9 2d       	mov	r31, r9
    b0ac:	f1 1d       	adc	r31, r1
    b0ae:	80 81       	ld	r24, Z
    b0b0:	b6 01       	movw	r22, r12
    b0b2:	90 e0       	ldi	r25, 0x00	; 0
    b0b4:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b0b8:	e0 2f       	mov	r30, r16
    b0ba:	0f 11       	cpse	r16, r15
    b0bc:	f3 cf       	rjmp	.-26     	; 0xb0a4 <vfprintf+0x3c4>
    b0be:	85 e6       	ldi	r24, 0x65	; 101
    b0c0:	90 e0       	ldi	r25, 0x00	; 0
    b0c2:	14 ff       	sbrs	r17, 4
    b0c4:	02 c0       	rjmp	.+4      	; 0xb0ca <vfprintf+0x3ea>
    b0c6:	85 e4       	ldi	r24, 0x45	; 69
    b0c8:	90 e0       	ldi	r25, 0x00	; 0
    b0ca:	b6 01       	movw	r22, r12
    b0cc:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b0d0:	b7 fc       	sbrc	r11, 7
    b0d2:	06 c0       	rjmp	.+12     	; 0xb0e0 <vfprintf+0x400>
    b0d4:	a1 14       	cp	r10, r1
    b0d6:	b1 04       	cpc	r11, r1
    b0d8:	c1 f4       	brne	.+48     	; 0xb10a <vfprintf+0x42a>
    b0da:	ec 85       	ldd	r30, Y+12	; 0x0c
    b0dc:	e4 ff       	sbrs	r30, 4
    b0de:	15 c0       	rjmp	.+42     	; 0xb10a <vfprintf+0x42a>
    b0e0:	b1 94       	neg	r11
    b0e2:	a1 94       	neg	r10
    b0e4:	b1 08       	sbc	r11, r1
    b0e6:	8d e2       	ldi	r24, 0x2D	; 45
    b0e8:	b6 01       	movw	r22, r12
    b0ea:	90 e0       	ldi	r25, 0x00	; 0
    b0ec:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b0f0:	80 e3       	ldi	r24, 0x30	; 48
    b0f2:	2a e0       	ldi	r18, 0x0A	; 10
    b0f4:	a2 16       	cp	r10, r18
    b0f6:	b1 04       	cpc	r11, r1
    b0f8:	54 f4       	brge	.+20     	; 0xb10e <vfprintf+0x42e>
    b0fa:	b6 01       	movw	r22, r12
    b0fc:	90 e0       	ldi	r25, 0x00	; 0
    b0fe:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b102:	b6 01       	movw	r22, r12
    b104:	c5 01       	movw	r24, r10
    b106:	c0 96       	adiw	r24, 0x30	; 48
    b108:	b4 cf       	rjmp	.-152    	; 0xb072 <vfprintf+0x392>
    b10a:	8b e2       	ldi	r24, 0x2B	; 43
    b10c:	ed cf       	rjmp	.-38     	; 0xb0e8 <vfprintf+0x408>
    b10e:	8f 5f       	subi	r24, 0xFF	; 255
    b110:	fa e0       	ldi	r31, 0x0A	; 10
    b112:	af 1a       	sub	r10, r31
    b114:	b1 08       	sbc	r11, r1
    b116:	ed cf       	rjmp	.-38     	; 0xb0f2 <vfprintf+0x412>
    b118:	83 36       	cpi	r24, 0x63	; 99
    b11a:	c9 f0       	breq	.+50     	; 0xb14e <vfprintf+0x46e>
    b11c:	83 37       	cpi	r24, 0x73	; 115
    b11e:	71 f1       	breq	.+92     	; 0xb17c <vfprintf+0x49c>
    b120:	83 35       	cpi	r24, 0x53	; 83
    b122:	09 f0       	breq	.+2      	; 0xb126 <vfprintf+0x446>
    b124:	5b c0       	rjmp	.+182    	; 0xb1dc <vfprintf+0x4fc>
    b126:	35 01       	movw	r6, r10
    b128:	f2 e0       	ldi	r31, 0x02	; 2
    b12a:	6f 0e       	add	r6, r31
    b12c:	71 1c       	adc	r7, r1
    b12e:	f5 01       	movw	r30, r10
    b130:	a0 80       	ld	r10, Z
    b132:	b1 80       	ldd	r11, Z+1	; 0x01
    b134:	6f 2d       	mov	r22, r15
    b136:	70 e0       	ldi	r23, 0x00	; 0
    b138:	06 fd       	sbrc	r16, 6
    b13a:	02 c0       	rjmp	.+4      	; 0xb140 <vfprintf+0x460>
    b13c:	6f ef       	ldi	r22, 0xFF	; 255
    b13e:	7f ef       	ldi	r23, 0xFF	; 255
    b140:	c5 01       	movw	r24, r10
    b142:	0f 94 57 da 	call	0x3b4ae	; 0x3b4ae <strnlen_P>
    b146:	9d 87       	std	Y+13, r25	; 0x0d
    b148:	8c 87       	std	Y+12, r24	; 0x0c
    b14a:	00 68       	ori	r16, 0x80	; 128
    b14c:	0d c0       	rjmp	.+26     	; 0xb168 <vfprintf+0x488>
    b14e:	35 01       	movw	r6, r10
    b150:	32 e0       	ldi	r19, 0x02	; 2
    b152:	63 0e       	add	r6, r19
    b154:	71 1c       	adc	r7, r1
    b156:	f5 01       	movw	r30, r10
    b158:	80 81       	ld	r24, Z
    b15a:	89 83       	std	Y+1, r24	; 0x01
    b15c:	21 e0       	ldi	r18, 0x01	; 1
    b15e:	30 e0       	ldi	r19, 0x00	; 0
    b160:	3d 87       	std	Y+13, r19	; 0x0d
    b162:	2c 87       	std	Y+12, r18	; 0x0c
    b164:	54 01       	movw	r10, r8
    b166:	0f 77       	andi	r16, 0x7F	; 127
    b168:	03 fd       	sbrc	r16, 3
    b16a:	06 c0       	rjmp	.+12     	; 0xb178 <vfprintf+0x498>
    b16c:	2c 85       	ldd	r18, Y+12	; 0x0c
    b16e:	3d 85       	ldd	r19, Y+13	; 0x0d
    b170:	52 16       	cp	r5, r18
    b172:	13 06       	cpc	r1, r19
    b174:	09 f0       	breq	.+2      	; 0xb178 <vfprintf+0x498>
    b176:	a8 f4       	brcc	.+42     	; 0xb1a2 <vfprintf+0x4c2>
    b178:	e5 2c       	mov	r14, r5
    b17a:	2b c0       	rjmp	.+86     	; 0xb1d2 <vfprintf+0x4f2>
    b17c:	35 01       	movw	r6, r10
    b17e:	32 e0       	ldi	r19, 0x02	; 2
    b180:	63 0e       	add	r6, r19
    b182:	71 1c       	adc	r7, r1
    b184:	f5 01       	movw	r30, r10
    b186:	a0 80       	ld	r10, Z
    b188:	b1 80       	ldd	r11, Z+1	; 0x01
    b18a:	6f 2d       	mov	r22, r15
    b18c:	70 e0       	ldi	r23, 0x00	; 0
    b18e:	06 fd       	sbrc	r16, 6
    b190:	02 c0       	rjmp	.+4      	; 0xb196 <vfprintf+0x4b6>
    b192:	6f ef       	ldi	r22, 0xFF	; 255
    b194:	7f ef       	ldi	r23, 0xFF	; 255
    b196:	c5 01       	movw	r24, r10
    b198:	0f 94 7c da 	call	0x3b4f8	; 0x3b4f8 <strnlen>
    b19c:	9d 87       	std	Y+13, r25	; 0x0d
    b19e:	8c 87       	std	Y+12, r24	; 0x0c
    b1a0:	e2 cf       	rjmp	.-60     	; 0xb166 <vfprintf+0x486>
    b1a2:	b6 01       	movw	r22, r12
    b1a4:	80 e2       	ldi	r24, 0x20	; 32
    b1a6:	90 e0       	ldi	r25, 0x00	; 0
    b1a8:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b1ac:	5a 94       	dec	r5
    b1ae:	de cf       	rjmp	.-68     	; 0xb16c <vfprintf+0x48c>
    b1b0:	f5 01       	movw	r30, r10
    b1b2:	07 fd       	sbrc	r16, 7
    b1b4:	85 91       	lpm	r24, Z+
    b1b6:	07 ff       	sbrs	r16, 7
    b1b8:	81 91       	ld	r24, Z+
    b1ba:	5f 01       	movw	r10, r30
    b1bc:	b6 01       	movw	r22, r12
    b1be:	90 e0       	ldi	r25, 0x00	; 0
    b1c0:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b1c4:	e1 10       	cpse	r14, r1
    b1c6:	ea 94       	dec	r14
    b1c8:	8c 85       	ldd	r24, Y+12	; 0x0c
    b1ca:	9d 85       	ldd	r25, Y+13	; 0x0d
    b1cc:	01 97       	sbiw	r24, 0x01	; 1
    b1ce:	9d 87       	std	Y+13, r25	; 0x0d
    b1d0:	8c 87       	std	Y+12, r24	; 0x0c
    b1d2:	ec 85       	ldd	r30, Y+12	; 0x0c
    b1d4:	fd 85       	ldd	r31, Y+13	; 0x0d
    b1d6:	ef 2b       	or	r30, r31
    b1d8:	59 f7       	brne	.-42     	; 0xb1b0 <vfprintf+0x4d0>
    b1da:	78 ce       	rjmp	.-784    	; 0xaecc <vfprintf+0x1ec>
    b1dc:	84 36       	cpi	r24, 0x64	; 100
    b1de:	19 f0       	breq	.+6      	; 0xb1e6 <vfprintf+0x506>
    b1e0:	89 36       	cpi	r24, 0x69	; 105
    b1e2:	09 f0       	breq	.+2      	; 0xb1e6 <vfprintf+0x506>
    b1e4:	74 c0       	rjmp	.+232    	; 0xb2ce <vfprintf+0x5ee>
    b1e6:	35 01       	movw	r6, r10
    b1e8:	07 ff       	sbrs	r16, 7
    b1ea:	66 c0       	rjmp	.+204    	; 0xb2b8 <vfprintf+0x5d8>
    b1ec:	f4 e0       	ldi	r31, 0x04	; 4
    b1ee:	6f 0e       	add	r6, r31
    b1f0:	71 1c       	adc	r7, r1
    b1f2:	f5 01       	movw	r30, r10
    b1f4:	60 81       	ld	r22, Z
    b1f6:	71 81       	ldd	r23, Z+1	; 0x01
    b1f8:	82 81       	ldd	r24, Z+2	; 0x02
    b1fa:	93 81       	ldd	r25, Z+3	; 0x03
    b1fc:	10 2f       	mov	r17, r16
    b1fe:	1f 76       	andi	r17, 0x6F	; 111
    b200:	97 ff       	sbrs	r25, 7
    b202:	08 c0       	rjmp	.+16     	; 0xb214 <vfprintf+0x534>
    b204:	90 95       	com	r25
    b206:	80 95       	com	r24
    b208:	70 95       	com	r23
    b20a:	61 95       	neg	r22
    b20c:	7f 4f       	sbci	r23, 0xFF	; 255
    b20e:	8f 4f       	sbci	r24, 0xFF	; 255
    b210:	9f 4f       	sbci	r25, 0xFF	; 255
    b212:	10 68       	ori	r17, 0x80	; 128
    b214:	2a e0       	ldi	r18, 0x0A	; 10
    b216:	30 e0       	ldi	r19, 0x00	; 0
    b218:	a4 01       	movw	r20, r8
    b21a:	0f 94 ea db 	call	0x3b7d4	; 0x3b7d4 <__ultoa_invert>
    b21e:	a8 2e       	mov	r10, r24
    b220:	a8 18       	sub	r10, r8
    b222:	ba 2c       	mov	r11, r10
    b224:	01 2f       	mov	r16, r17
    b226:	16 ff       	sbrs	r17, 6
    b228:	0a c0       	rjmp	.+20     	; 0xb23e <vfprintf+0x55e>
    b22a:	0e 7f       	andi	r16, 0xFE	; 254
    b22c:	af 14       	cp	r10, r15
    b22e:	38 f4       	brcc	.+14     	; 0xb23e <vfprintf+0x55e>
    b230:	14 ff       	sbrs	r17, 4
    b232:	04 c0       	rjmp	.+8      	; 0xb23c <vfprintf+0x55c>
    b234:	12 fd       	sbrc	r17, 2
    b236:	02 c0       	rjmp	.+4      	; 0xb23c <vfprintf+0x55c>
    b238:	01 2f       	mov	r16, r17
    b23a:	0e 7e       	andi	r16, 0xEE	; 238
    b23c:	bf 2c       	mov	r11, r15
    b23e:	04 ff       	sbrs	r16, 4
    b240:	a3 c0       	rjmp	.+326    	; 0xb388 <vfprintf+0x6a8>
    b242:	fe 01       	movw	r30, r28
    b244:	ea 0d       	add	r30, r10
    b246:	f1 1d       	adc	r31, r1
    b248:	80 81       	ld	r24, Z
    b24a:	80 33       	cpi	r24, 0x30	; 48
    b24c:	09 f0       	breq	.+2      	; 0xb250 <vfprintf+0x570>
    b24e:	95 c0       	rjmp	.+298    	; 0xb37a <vfprintf+0x69a>
    b250:	09 7e       	andi	r16, 0xE9	; 233
    b252:	f0 2f       	mov	r31, r16
    b254:	f8 70       	andi	r31, 0x08	; 8
    b256:	ef 2e       	mov	r14, r31
    b258:	03 fd       	sbrc	r16, 3
    b25a:	a5 c0       	rjmp	.+330    	; 0xb3a6 <vfprintf+0x6c6>
    b25c:	00 ff       	sbrs	r16, 0
    b25e:	9f c0       	rjmp	.+318    	; 0xb39e <vfprintf+0x6be>
    b260:	fa 2c       	mov	r15, r10
    b262:	b5 14       	cp	r11, r5
    b264:	10 f4       	brcc	.+4      	; 0xb26a <vfprintf+0x58a>
    b266:	f5 0c       	add	r15, r5
    b268:	fb 18       	sub	r15, r11
    b26a:	04 ff       	sbrs	r16, 4
    b26c:	a2 c0       	rjmp	.+324    	; 0xb3b2 <vfprintf+0x6d2>
    b26e:	b6 01       	movw	r22, r12
    b270:	80 e3       	ldi	r24, 0x30	; 48
    b272:	90 e0       	ldi	r25, 0x00	; 0
    b274:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b278:	02 ff       	sbrs	r16, 2
    b27a:	09 c0       	rjmp	.+18     	; 0xb28e <vfprintf+0x5ae>
    b27c:	88 e7       	ldi	r24, 0x78	; 120
    b27e:	90 e0       	ldi	r25, 0x00	; 0
    b280:	01 ff       	sbrs	r16, 1
    b282:	02 c0       	rjmp	.+4      	; 0xb288 <vfprintf+0x5a8>
    b284:	88 e5       	ldi	r24, 0x58	; 88
    b286:	90 e0       	ldi	r25, 0x00	; 0
    b288:	b6 01       	movw	r22, r12
    b28a:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b28e:	af 14       	cp	r10, r15
    b290:	08 f4       	brcc	.+2      	; 0xb294 <vfprintf+0x5b4>
    b292:	9b c0       	rjmp	.+310    	; 0xb3ca <vfprintf+0x6ea>
    b294:	aa 94       	dec	r10
    b296:	0a 2d       	mov	r16, r10
    b298:	10 e0       	ldi	r17, 0x00	; 0
    b29a:	0f 5f       	subi	r16, 0xFF	; 255
    b29c:	1f 4f       	sbci	r17, 0xFF	; 255
    b29e:	08 0d       	add	r16, r8
    b2a0:	19 1d       	adc	r17, r9
    b2a2:	f8 01       	movw	r30, r16
    b2a4:	82 91       	ld	r24, -Z
    b2a6:	8f 01       	movw	r16, r30
    b2a8:	b6 01       	movw	r22, r12
    b2aa:	90 e0       	ldi	r25, 0x00	; 0
    b2ac:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b2b0:	80 16       	cp	r8, r16
    b2b2:	91 06       	cpc	r9, r17
    b2b4:	b1 f7       	brne	.-20     	; 0xb2a2 <vfprintf+0x5c2>
    b2b6:	0a ce       	rjmp	.-1004   	; 0xaecc <vfprintf+0x1ec>
    b2b8:	f2 e0       	ldi	r31, 0x02	; 2
    b2ba:	6f 0e       	add	r6, r31
    b2bc:	71 1c       	adc	r7, r1
    b2be:	f5 01       	movw	r30, r10
    b2c0:	60 81       	ld	r22, Z
    b2c2:	71 81       	ldd	r23, Z+1	; 0x01
    b2c4:	07 2e       	mov	r0, r23
    b2c6:	00 0c       	add	r0, r0
    b2c8:	88 0b       	sbc	r24, r24
    b2ca:	99 0b       	sbc	r25, r25
    b2cc:	97 cf       	rjmp	.-210    	; 0xb1fc <vfprintf+0x51c>
    b2ce:	10 2f       	mov	r17, r16
    b2d0:	85 37       	cpi	r24, 0x75	; 117
    b2d2:	a9 f4       	brne	.+42     	; 0xb2fe <vfprintf+0x61e>
    b2d4:	1f 7e       	andi	r17, 0xEF	; 239
    b2d6:	2a e0       	ldi	r18, 0x0A	; 10
    b2d8:	30 e0       	ldi	r19, 0x00	; 0
    b2da:	35 01       	movw	r6, r10
    b2dc:	17 ff       	sbrs	r17, 7
    b2de:	44 c0       	rjmp	.+136    	; 0xb368 <vfprintf+0x688>
    b2e0:	f4 e0       	ldi	r31, 0x04	; 4
    b2e2:	6f 0e       	add	r6, r31
    b2e4:	71 1c       	adc	r7, r1
    b2e6:	f5 01       	movw	r30, r10
    b2e8:	60 81       	ld	r22, Z
    b2ea:	71 81       	ldd	r23, Z+1	; 0x01
    b2ec:	82 81       	ldd	r24, Z+2	; 0x02
    b2ee:	93 81       	ldd	r25, Z+3	; 0x03
    b2f0:	a4 01       	movw	r20, r8
    b2f2:	0f 94 ea db 	call	0x3b7d4	; 0x3b7d4 <__ultoa_invert>
    b2f6:	a8 2e       	mov	r10, r24
    b2f8:	a8 18       	sub	r10, r8
    b2fa:	1f 77       	andi	r17, 0x7F	; 127
    b2fc:	92 cf       	rjmp	.-220    	; 0xb222 <vfprintf+0x542>
    b2fe:	19 7f       	andi	r17, 0xF9	; 249
    b300:	8f 36       	cpi	r24, 0x6F	; 111
    b302:	79 f1       	breq	.+94     	; 0xb362 <vfprintf+0x682>
    b304:	f0 f4       	brcc	.+60     	; 0xb342 <vfprintf+0x662>
    b306:	88 35       	cpi	r24, 0x58	; 88
    b308:	39 f1       	breq	.+78     	; 0xb358 <vfprintf+0x678>
    b30a:	f6 01       	movw	r30, r12
    b30c:	86 81       	ldd	r24, Z+6	; 0x06
    b30e:	97 81       	ldd	r25, Z+7	; 0x07
    b310:	2f 96       	adiw	r28, 0x0f	; 15
    b312:	0f b6       	in	r0, 0x3f	; 63
    b314:	f8 94       	cli
    b316:	de bf       	out	0x3e, r29	; 62
    b318:	0f be       	out	0x3f, r0	; 63
    b31a:	cd bf       	out	0x3d, r28	; 61
    b31c:	df 91       	pop	r29
    b31e:	cf 91       	pop	r28
    b320:	1f 91       	pop	r17
    b322:	0f 91       	pop	r16
    b324:	ff 90       	pop	r15
    b326:	ef 90       	pop	r14
    b328:	df 90       	pop	r13
    b32a:	cf 90       	pop	r12
    b32c:	bf 90       	pop	r11
    b32e:	af 90       	pop	r10
    b330:	9f 90       	pop	r9
    b332:	8f 90       	pop	r8
    b334:	7f 90       	pop	r7
    b336:	6f 90       	pop	r6
    b338:	5f 90       	pop	r5
    b33a:	4f 90       	pop	r4
    b33c:	3f 90       	pop	r3
    b33e:	2f 90       	pop	r2
    b340:	08 95       	ret
    b342:	80 37       	cpi	r24, 0x70	; 112
    b344:	39 f0       	breq	.+14     	; 0xb354 <vfprintf+0x674>
    b346:	88 37       	cpi	r24, 0x78	; 120
    b348:	01 f7       	brne	.-64     	; 0xb30a <vfprintf+0x62a>
    b34a:	14 fd       	sbrc	r17, 4
    b34c:	14 60       	ori	r17, 0x04	; 4
    b34e:	20 e1       	ldi	r18, 0x10	; 16
    b350:	30 e0       	ldi	r19, 0x00	; 0
    b352:	c3 cf       	rjmp	.-122    	; 0xb2da <vfprintf+0x5fa>
    b354:	10 61       	ori	r17, 0x10	; 16
    b356:	f9 cf       	rjmp	.-14     	; 0xb34a <vfprintf+0x66a>
    b358:	04 fd       	sbrc	r16, 4
    b35a:	16 60       	ori	r17, 0x06	; 6
    b35c:	20 e1       	ldi	r18, 0x10	; 16
    b35e:	32 e0       	ldi	r19, 0x02	; 2
    b360:	bc cf       	rjmp	.-136    	; 0xb2da <vfprintf+0x5fa>
    b362:	28 e0       	ldi	r18, 0x08	; 8
    b364:	30 e0       	ldi	r19, 0x00	; 0
    b366:	b9 cf       	rjmp	.-142    	; 0xb2da <vfprintf+0x5fa>
    b368:	f2 e0       	ldi	r31, 0x02	; 2
    b36a:	6f 0e       	add	r6, r31
    b36c:	71 1c       	adc	r7, r1
    b36e:	f5 01       	movw	r30, r10
    b370:	60 81       	ld	r22, Z
    b372:	71 81       	ldd	r23, Z+1	; 0x01
    b374:	90 e0       	ldi	r25, 0x00	; 0
    b376:	80 e0       	ldi	r24, 0x00	; 0
    b378:	bb cf       	rjmp	.-138    	; 0xb2f0 <vfprintf+0x610>
    b37a:	02 fd       	sbrc	r16, 2
    b37c:	02 c0       	rjmp	.+4      	; 0xb382 <vfprintf+0x6a2>
    b37e:	b3 94       	inc	r11
    b380:	68 cf       	rjmp	.-304    	; 0xb252 <vfprintf+0x572>
    b382:	b3 94       	inc	r11
    b384:	b3 94       	inc	r11
    b386:	65 cf       	rjmp	.-310    	; 0xb252 <vfprintf+0x572>
    b388:	80 2f       	mov	r24, r16
    b38a:	86 78       	andi	r24, 0x86	; 134
    b38c:	09 f4       	brne	.+2      	; 0xb390 <vfprintf+0x6b0>
    b38e:	61 cf       	rjmp	.-318    	; 0xb252 <vfprintf+0x572>
    b390:	f6 cf       	rjmp	.-20     	; 0xb37e <vfprintf+0x69e>
    b392:	b6 01       	movw	r22, r12
    b394:	80 e2       	ldi	r24, 0x20	; 32
    b396:	90 e0       	ldi	r25, 0x00	; 0
    b398:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b39c:	b3 94       	inc	r11
    b39e:	b5 14       	cp	r11, r5
    b3a0:	c0 f3       	brcs	.-16     	; 0xb392 <vfprintf+0x6b2>
    b3a2:	e1 2c       	mov	r14, r1
    b3a4:	62 cf       	rjmp	.-316    	; 0xb26a <vfprintf+0x58a>
    b3a6:	e5 2c       	mov	r14, r5
    b3a8:	eb 18       	sub	r14, r11
    b3aa:	b5 14       	cp	r11, r5
    b3ac:	08 f4       	brcc	.+2      	; 0xb3b0 <vfprintf+0x6d0>
    b3ae:	5d cf       	rjmp	.-326    	; 0xb26a <vfprintf+0x58a>
    b3b0:	f8 cf       	rjmp	.-16     	; 0xb3a2 <vfprintf+0x6c2>
    b3b2:	80 2f       	mov	r24, r16
    b3b4:	86 78       	andi	r24, 0x86	; 134
    b3b6:	09 f4       	brne	.+2      	; 0xb3ba <vfprintf+0x6da>
    b3b8:	6a cf       	rjmp	.-300    	; 0xb28e <vfprintf+0x5ae>
    b3ba:	8b e2       	ldi	r24, 0x2B	; 43
    b3bc:	01 ff       	sbrs	r16, 1
    b3be:	80 e2       	ldi	r24, 0x20	; 32
    b3c0:	07 fd       	sbrc	r16, 7
    b3c2:	8d e2       	ldi	r24, 0x2D	; 45
    b3c4:	b6 01       	movw	r22, r12
    b3c6:	90 e0       	ldi	r25, 0x00	; 0
    b3c8:	60 cf       	rjmp	.-320    	; 0xb28a <vfprintf+0x5aa>
    b3ca:	b6 01       	movw	r22, r12
    b3cc:	80 e3       	ldi	r24, 0x30	; 48
    b3ce:	90 e0       	ldi	r25, 0x00	; 0
    b3d0:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b3d4:	fa 94       	dec	r15
    b3d6:	5b cf       	rjmp	.-330    	; 0xb28e <vfprintf+0x5ae>
    b3d8:	b6 01       	movw	r22, r12
    b3da:	80 e2       	ldi	r24, 0x20	; 32
    b3dc:	90 e0       	ldi	r25, 0x00	; 0
    b3de:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
    b3e2:	ea 94       	dec	r14
    b3e4:	73 cd       	rjmp	.-1306   	; 0xaecc <vfprintf+0x1ec>
    b3e6:	24 e0       	ldi	r18, 0x04	; 4
    b3e8:	e1 2c       	mov	r14, r1
    b3ea:	25 15       	cp	r18, r5
    b3ec:	08 f0       	brcs	.+2      	; 0xb3f0 <vfprintf+0x710>
    b3ee:	36 cd       	rjmp	.-1428   	; 0xae5c <vfprintf+0x17c>
    b3f0:	84 e0       	ldi	r24, 0x04	; 4
    b3f2:	26 cd       	rjmp	.-1460   	; 0xae40 <vfprintf+0x160>

0000b3f4 <restore_interrupted_gcode()>:

uint16_t restore_interrupted_gcode() {
    // When recovering from a previous print move, restore the originally
    // calculated start position on the first USB/SD command. This accounts
    // properly for relative moves
    if (
    b3f4:	20 e0       	ldi	r18, 0x00	; 0
    b3f6:	30 e0       	ldi	r19, 0x00	; 0
    b3f8:	40 e8       	ldi	r20, 0x80	; 128
    b3fa:	5f eb       	ldi	r21, 0xBF	; 191
    b3fc:	60 91 83 02 	lds	r22, 0x0283	; 0x800283 <saved_start_position>
    b400:	70 91 84 02 	lds	r23, 0x0284	; 0x800284 <saved_start_position+0x1>
    b404:	80 91 85 02 	lds	r24, 0x0285	; 0x800285 <saved_start_position+0x2>
    b408:	90 91 86 02 	lds	r25, 0x0286	; 0x800286 <saved_start_position+0x3>
    b40c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    b410:	88 23       	and	r24, r24
    b412:	21 f1       	breq	.+72     	; 0xb45c <restore_interrupted_gcode()+0x68>
        (saved_start_position[0] != SAVED_START_POSITION_UNSET) && (
            (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_SDCARD) ||
    b414:	e0 91 92 12 	lds	r30, 0x1292	; 0x801292 <bufindr>
    b418:	f0 91 93 12 	lds	r31, 0x1293	; 0x801293 <bufindr+0x1>
    b41c:	eb 55       	subi	r30, 0x5B	; 91
    b41e:	ff 4e       	sbci	r31, 0xEF	; 239
uint16_t restore_interrupted_gcode() {
    // When recovering from a previous print move, restore the originally
    // calculated start position on the first USB/SD command. This accounts
    // properly for relative moves
    if (
        (saved_start_position[0] != SAVED_START_POSITION_UNSET) && (
    b420:	80 81       	ld	r24, Z
    b422:	8b 7f       	andi	r24, 0xFB	; 251
    b424:	82 30       	cpi	r24, 0x02	; 2
    b426:	d1 f4       	brne	.+52     	; 0xb45c <restore_interrupted_gcode()+0x68>
            (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_SDCARD) ||
            (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR)
        )
    ) {
        memcpy(current_position, saved_start_position, sizeof(current_position));
    b428:	80 e1       	ldi	r24, 0x10	; 16
    b42a:	e3 e8       	ldi	r30, 0x83	; 131
    b42c:	f2 e0       	ldi	r31, 0x02	; 2
    b42e:	a2 e9       	ldi	r26, 0x92	; 146
    b430:	b6 e0       	ldi	r27, 0x06	; 6
    b432:	01 90       	ld	r0, Z+
    b434:	0d 92       	st	X+, r0
    b436:	8a 95       	dec	r24
    b438:	e1 f7       	brne	.-8      	; 0xb432 <restore_interrupted_gcode()+0x3e>
        saved_start_position[0] = SAVED_START_POSITION_UNSET;
    b43a:	80 e0       	ldi	r24, 0x00	; 0
    b43c:	90 e0       	ldi	r25, 0x00	; 0
    b43e:	a0 e8       	ldi	r26, 0x80	; 128
    b440:	bf eb       	ldi	r27, 0xBF	; 191
    b442:	80 93 83 02 	sts	0x0283, r24	; 0x800283 <saved_start_position>
    b446:	90 93 84 02 	sts	0x0284, r25	; 0x800284 <saved_start_position+0x1>
    b44a:	a0 93 85 02 	sts	0x0285, r26	; 0x800285 <saved_start_position+0x2>
    b44e:	b0 93 86 02 	sts	0x0286, r27	; 0x800286 <saved_start_position+0x3>
        return saved_segment_idx;
    b452:	80 91 69 05 	lds	r24, 0x0569	; 0x800569 <saved_segment_idx>
    b456:	90 91 6a 05 	lds	r25, 0x056A	; 0x80056a <saved_segment_idx+0x1>
    b45a:	08 95       	ret
    }
    else
        return 1; //begin with the first segment
    b45c:	81 e0       	ldi	r24, 0x01	; 1
    b45e:	90 e0       	ldi	r25, 0x00	; 0
}
    b460:	08 95       	ret

0000b462 <axis_is_at_home(unsigned char)>:
XYZ_CONSTS_FROM_CONFIG(float, base_home_pos,   HOME_POS);
XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM);
XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);

static void axis_is_at_home(uint8_t axis) {
    b462:	cf 92       	push	r12
    b464:	df 92       	push	r13
    b466:	ef 92       	push	r14
    b468:	ff 92       	push	r15
    b46a:	0f 93       	push	r16
    b46c:	1f 93       	push	r17
    b46e:	cf 93       	push	r28
    b470:	df 93       	push	r29
type array##_ext(uint8_t axis)                      \
    { return pgm_read_any(&array##_P[axis]); }

XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_max_pos,    MAX_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_home_pos,   HOME_POS);
    b472:	90 e0       	ldi	r25, 0x00	; 0
    b474:	ec 01       	movw	r28, r24
    b476:	cc 0f       	add	r28, r28
    b478:	dd 1f       	adc	r29, r29
    b47a:	cc 0f       	add	r28, r28
    b47c:	dd 1f       	adc	r29, r29
    b47e:	fe 01       	movw	r30, r28
    b480:	e2 5b       	subi	r30, 0xB2	; 178
    b482:	f4 48       	sbci	r31, 0x84	; 132

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    b484:	25 91       	lpm	r18, Z+
    b486:	35 91       	lpm	r19, Z+
    b488:	45 91       	lpm	r20, Z+
    b48a:	54 91       	lpm	r21, Z
XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM);
XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);

static void axis_is_at_home(uint8_t axis) {
  current_position[axis] = base_home_pos(axis) + cs.add_homing[axis];
    b48c:	fe 01       	movw	r30, r28
    b48e:	ea 5e       	subi	r30, 0xEA	; 234
    b490:	f1 4f       	sbci	r31, 0xF1	; 241
    b492:	c0 80       	ld	r12, Z
    b494:	d1 80       	ldd	r13, Z+1	; 0x01
    b496:	e2 80       	ldd	r14, Z+2	; 0x02
    b498:	f3 80       	ldd	r15, Z+3	; 0x03
    b49a:	8e 01       	movw	r16, r28
    b49c:	0e 56       	subi	r16, 0x6E	; 110
    b49e:	19 4f       	sbci	r17, 0xF9	; 249
    b4a0:	c7 01       	movw	r24, r14
    b4a2:	b6 01       	movw	r22, r12
    b4a4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    b4a8:	f8 01       	movw	r30, r16
    b4aa:	60 83       	st	Z, r22
    b4ac:	71 83       	std	Z+1, r23	; 0x01
    b4ae:	82 83       	std	Z+2, r24	; 0x02
    b4b0:	93 83       	std	Z+3, r25	; 0x03
static inline type array(uint8_t axis)              \
    { return pgm_read_any(&array##_P[axis]); }  \
type array##_ext(uint8_t axis)                      \
    { return pgm_read_any(&array##_P[axis]); }

XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
    b4b2:	fe 01       	movw	r30, r28
    b4b4:	ee 5b       	subi	r30, 0xBE	; 190
    b4b6:	f4 48       	sbci	r31, 0x84	; 132

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    b4b8:	25 91       	lpm	r18, Z+
    b4ba:	35 91       	lpm	r19, Z+
    b4bc:	45 91       	lpm	r20, Z+
    b4be:	54 91       	lpm	r21, Z
XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM);
XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);

static void axis_is_at_home(uint8_t axis) {
  current_position[axis] = base_home_pos(axis) + cs.add_homing[axis];
  min_pos[axis] =          base_min_pos(axis) + cs.add_homing[axis];
    b4c0:	8e 01       	movw	r16, r28
    b4c2:	0f 5d       	subi	r16, 0xDF	; 223
    b4c4:	1d 4f       	sbci	r17, 0xFD	; 253
    b4c6:	c7 01       	movw	r24, r14
    b4c8:	b6 01       	movw	r22, r12
    b4ca:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    b4ce:	f8 01       	movw	r30, r16
    b4d0:	60 83       	st	Z, r22
    b4d2:	71 83       	std	Z+1, r23	; 0x01
    b4d4:	82 83       	std	Z+2, r24	; 0x02
    b4d6:	93 83       	std	Z+3, r25	; 0x03
    { return pgm_read_any(&array##_P[axis]); }  \
type array##_ext(uint8_t axis)                      \
    { return pgm_read_any(&array##_P[axis]); }

XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_max_pos,    MAX_POS);
    b4d8:	fe 01       	movw	r30, r28
    b4da:	ea 5c       	subi	r30, 0xCA	; 202
    b4dc:	f4 48       	sbci	r31, 0x84	; 132

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    b4de:	25 91       	lpm	r18, Z+
    b4e0:	35 91       	lpm	r19, Z+
    b4e2:	45 91       	lpm	r20, Z+
    b4e4:	54 91       	lpm	r21, Z
XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);

static void axis_is_at_home(uint8_t axis) {
  current_position[axis] = base_home_pos(axis) + cs.add_homing[axis];
  min_pos[axis] =          base_min_pos(axis) + cs.add_homing[axis];
  max_pos[axis] =          base_max_pos(axis) + cs.add_homing[axis];
    b4e6:	cb 5e       	subi	r28, 0xEB	; 235
    b4e8:	dd 4f       	sbci	r29, 0xFD	; 253
    b4ea:	c7 01       	movw	r24, r14
    b4ec:	b6 01       	movw	r22, r12
    b4ee:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    b4f2:	68 83       	st	Y, r22
    b4f4:	79 83       	std	Y+1, r23	; 0x01
    b4f6:	8a 83       	std	Y+2, r24	; 0x02
    b4f8:	9b 83       	std	Y+3, r25	; 0x03
}
    b4fa:	df 91       	pop	r29
    b4fc:	cf 91       	pop	r28
    b4fe:	1f 91       	pop	r17
    b500:	0f 91       	pop	r16
    b502:	ff 90       	pop	r15
    b504:	ef 90       	pop	r14
    b506:	df 90       	pop	r13
    b508:	cf 90       	pop	r12
    b50a:	08 95       	ret

0000b50c <set_current_to_destination()>:
void plan_set_e_position(const float &e);

// Reset the E position to zero at the start of the next segment
void plan_reset_next_e();

inline void set_current_to_destination() { memcpy(current_position, destination, sizeof(current_position)); }
    b50c:	80 e1       	ldi	r24, 0x10	; 16
    b50e:	e4 e7       	ldi	r30, 0x74	; 116
    b510:	f6 e0       	ldi	r31, 0x06	; 6
    b512:	a2 e9       	ldi	r26, 0x92	; 146
    b514:	b6 e0       	ldi	r27, 0x06	; 6
    b516:	01 90       	ld	r0, Z+
    b518:	0d 92       	st	X+, r0
    b51a:	8a 95       	dec	r24
    b51c:	e1 f7       	brne	.-8      	; 0xb516 <set_current_to_destination()+0xa>
    b51e:	08 95       	ret

0000b520 <lcd_get_row_offset(unsigned char)>:
/// @brief Calculate the LCD row offset
/// @param row LCD row number, ranges from 0 to LCD_HEIGHT - 1
/// @return row offset which the LCD register understands
static uint8_t __attribute__((noinline)) lcd_get_row_offset(uint8_t row)
{
	return pgm_read_byte(row_offsets + min(row, LCD_HEIGHT - 1));
    b520:	e1 ec       	ldi	r30, 0xC1	; 193
    b522:	fa e7       	ldi	r31, 0x7A	; 122
    b524:	83 30       	cpi	r24, 0x03	; 3
    b526:	21 f0       	breq	.+8      	; 0xb530 <lcd_get_row_offset(unsigned char)+0x10>
    b528:	e8 2f       	mov	r30, r24
    b52a:	f0 e0       	ldi	r31, 0x00	; 0
    b52c:	e2 54       	subi	r30, 0x42	; 66
    b52e:	f5 48       	sbci	r31, 0x85	; 133
    b530:	84 91       	lpm	r24, Z
}
    b532:	08 95       	ret

0000b534 <cmdqueue_calc_sd_length()>:
  #endif //SDSUPPORT
}

uint16_t cmdqueue_calc_sd_length()
{
    if (buflen == 0)
    b534:	40 91 a3 10 	lds	r20, 0x10A3	; 0x8010a3 <buflen>
    b538:	50 91 a4 10 	lds	r21, 0x10A4	; 0x8010a4 <buflen+0x1>
        return 0;
    b53c:	90 e0       	ldi	r25, 0x00	; 0
    b53e:	80 e0       	ldi	r24, 0x00	; 0
  #endif //SDSUPPORT
}

uint16_t cmdqueue_calc_sd_length()
{
    if (buflen == 0)
    b540:	41 15       	cp	r20, r1
    b542:	51 05       	cpc	r21, r1
    b544:	b1 f1       	breq	.+108    	; 0xb5b2 <cmdqueue_calc_sd_length()+0x7e>
            char hi;
        } lohi;
        uint16_t value;
    } sdlen_single;
    uint16_t sdlen = 0;
    for (size_t _buflen = buflen, _bufindr = bufindr;;) {
    b546:	20 91 92 12 	lds	r18, 0x1292	; 0x801292 <bufindr>
    b54a:	30 91 93 12 	lds	r19, 0x1293	; 0x801293 <bufindr+0x1>
            char lo;
            char hi;
        } lohi;
        uint16_t value;
    } sdlen_single;
    uint16_t sdlen = 0;
    b54e:	90 e0       	ldi	r25, 0x00	; 0
    b550:	80 e0       	ldi	r24, 0x00	; 0
    for (size_t _buflen = buflen, _bufindr = bufindr;;) {
        if (cmdbuffer[_bufindr] == CMDBUFFER_CURRENT_TYPE_SDCARD) {
    b552:	f9 01       	movw	r30, r18
    b554:	eb 55       	subi	r30, 0x5B	; 91
    b556:	ff 4e       	sbci	r31, 0xEF	; 239
    b558:	a0 81       	ld	r26, Z
    b55a:	a2 30       	cpi	r26, 0x02	; 2
    b55c:	21 f4       	brne	.+8      	; 0xb566 <cmdqueue_calc_sd_length()+0x32>
            sdlen_single.lohi.lo = cmdbuffer[_bufindr + 1];
    b55e:	61 81       	ldd	r22, Z+1	; 0x01
            sdlen_single.lohi.hi = cmdbuffer[_bufindr + 2];
    b560:	72 81       	ldd	r23, Z+2	; 0x02
            sdlen += sdlen_single.value;
    b562:	86 0f       	add	r24, r22
    b564:	97 1f       	adc	r25, r23
        }
        if (-- _buflen == 0)
    b566:	41 50       	subi	r20, 0x01	; 1
    b568:	51 09       	sbc	r21, r1
    b56a:	19 f1       	breq	.+70     	; 0xb5b2 <cmdqueue_calc_sd_length()+0x7e>
    b56c:	f9 01       	movw	r30, r18
    b56e:	e8 55       	subi	r30, 0x58	; 88
    b570:	ff 4e       	sbci	r31, 0xEF	; 239
            break;
        // First skip the current command ID and iterate up to the end of the string.
        for (_bufindr += CMDHDRSIZE; cmdbuffer[_bufindr] != 0; ++ _bufindr) ;
    b572:	a1 91       	ld	r26, Z+
    b574:	9f 01       	movw	r18, r30
    b576:	25 5a       	subi	r18, 0xA5	; 165
    b578:	30 41       	sbci	r19, 0x10	; 16
    b57a:	a1 11       	cpse	r26, r1
    b57c:	fa cf       	rjmp	.-12     	; 0xb572 <cmdqueue_calc_sd_length()+0x3e>
    b57e:	f9 01       	movw	r30, r18
    b580:	eb 55       	subi	r30, 0x5B	; 91
    b582:	ff 4e       	sbci	r31, 0xEF	; 239
        // Second, skip the end of string null character and iterate until a nonzero command ID is found.
        for (++ _bufindr; _bufindr < sizeof(cmdbuffer) && cmdbuffer[_bufindr] == 0; ++ _bufindr) ;
    b584:	2d 3e       	cpi	r18, 0xED	; 237
    b586:	a1 e0       	ldi	r26, 0x01	; 1
    b588:	3a 07       	cpc	r19, r26
    b58a:	30 f4       	brcc	.+12     	; 0xb598 <cmdqueue_calc_sd_length()+0x64>
    b58c:	a1 91       	ld	r26, Z+
    b58e:	a1 11       	cpse	r26, r1
    b590:	e0 cf       	rjmp	.-64     	; 0xb552 <cmdqueue_calc_sd_length()+0x1e>
    b592:	2f 5f       	subi	r18, 0xFF	; 255
    b594:	3f 4f       	sbci	r19, 0xFF	; 255
    b596:	f6 cf       	rjmp	.-20     	; 0xb584 <cmdqueue_calc_sd_length()+0x50>
        // If the end of the buffer was empty,
        if (_bufindr == sizeof(cmdbuffer)) {
    b598:	2d 3e       	cpi	r18, 0xED	; 237
    b59a:	e1 e0       	ldi	r30, 0x01	; 1
    b59c:	3e 07       	cpc	r19, r30
    b59e:	c9 f6       	brne	.-78     	; 0xb552 <cmdqueue_calc_sd_length()+0x1e>
    b5a0:	e5 ea       	ldi	r30, 0xA5	; 165
    b5a2:	f0 e1       	ldi	r31, 0x10	; 16
    b5a4:	9f 01       	movw	r18, r30
    b5a6:	25 5a       	subi	r18, 0xA5	; 165
    b5a8:	30 41       	sbci	r19, 0x10	; 16
            // skip to the start and find the nonzero command.
            for (_bufindr = 0; cmdbuffer[_bufindr] == 0; ++ _bufindr) ;
    b5aa:	a1 91       	ld	r26, Z+
    b5ac:	aa 23       	and	r26, r26
    b5ae:	d1 f3       	breq	.-12     	; 0xb5a4 <cmdqueue_calc_sd_length()+0x70>
    b5b0:	d0 cf       	rjmp	.-96     	; 0xb552 <cmdqueue_calc_sd_length()+0x1e>
        }
    }
    return sdlen;
}
    b5b2:	08 95       	ret

0000b5b4 <adc_setmux(unsigned char)>:
    memset((void*)adc_values, 0, sizeof(adc_values));
}

static void adc_setmux(uint8_t ch)
{
	ch &= 0x0f;
    b5b4:	98 2f       	mov	r25, r24
    b5b6:	9f 70       	andi	r25, 0x0F	; 15
	if (ch & 0x08) ADCSRB |= (1 << MUX5);
    b5b8:	83 ff       	sbrs	r24, 3
    b5ba:	0d c0       	rjmp	.+26     	; 0xb5d6 <adc_setmux(unsigned char)+0x22>
    b5bc:	80 91 7b 00 	lds	r24, 0x007B	; 0x80007b <__TEXT_REGION_LENGTH__+0x7c207b>
    b5c0:	88 60       	ori	r24, 0x08	; 8
	else ADCSRB &= ~(1 << MUX5);
    b5c2:	80 93 7b 00 	sts	0x007B, r24	; 0x80007b <__TEXT_REGION_LENGTH__+0x7c207b>
	ADMUX = (ADMUX & ~(0x07)) | (ch & 0x07);
    b5c6:	80 91 7c 00 	lds	r24, 0x007C	; 0x80007c <__TEXT_REGION_LENGTH__+0x7c207c>
    b5ca:	88 7f       	andi	r24, 0xF8	; 248
    b5cc:	97 70       	andi	r25, 0x07	; 7
    b5ce:	89 2b       	or	r24, r25
    b5d0:	80 93 7c 00 	sts	0x007C, r24	; 0x80007c <__TEXT_REGION_LENGTH__+0x7c207c>
}
    b5d4:	08 95       	ret

static void adc_setmux(uint8_t ch)
{
	ch &= 0x0f;
	if (ch & 0x08) ADCSRB |= (1 << MUX5);
	else ADCSRB &= ~(1 << MUX5);
    b5d6:	80 91 7b 00 	lds	r24, 0x007B	; 0x80007b <__TEXT_REGION_LENGTH__+0x7c207b>
    b5da:	87 7f       	andi	r24, 0xF7	; 247
    b5dc:	f2 cf       	rjmp	.-28     	; 0xb5c2 <adc_setmux(unsigned char)+0xe>

0000b5de <code_value_uint8()>:
static inline bool    code_seen(char code) { return (strchr_pointer = strchr(CMDBUFFER_CURRENT_STRING, code)) != NULL; }
static inline bool    code_seen_P(const char *code_PROGMEM) { return (strchr_pointer = strstr_P(CMDBUFFER_CURRENT_STRING, code_PROGMEM)) != NULL; }
static inline float   code_value()      { return strtod_noE(strchr_pointer+1, NULL);}
static inline long    code_value_long()    { return strtol(strchr_pointer+1, NULL, 10); }
static inline int16_t code_value_short()   { return int16_t(strtol(strchr_pointer+1, NULL, 10)); };
static inline uint8_t code_value_uint8()   { return uint8_t(strtol(strchr_pointer+1, NULL, 10)); };
    b5de:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
    b5e2:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
    b5e6:	4a e0       	ldi	r20, 0x0A	; 10
    b5e8:	50 e0       	ldi	r21, 0x00	; 0
    b5ea:	70 e0       	ldi	r23, 0x00	; 0
    b5ec:	60 e0       	ldi	r22, 0x00	; 0
    b5ee:	01 96       	adiw	r24, 0x01	; 1
    b5f0:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
    b5f4:	86 2f       	mov	r24, r22
    b5f6:	08 95       	ret

0000b5f8 <code_value_short() [clone .lto_priv.543]>:
// Return True if a character was found
static inline bool    code_seen(char code) { return (strchr_pointer = strchr(CMDBUFFER_CURRENT_STRING, code)) != NULL; }
static inline bool    code_seen_P(const char *code_PROGMEM) { return (strchr_pointer = strstr_P(CMDBUFFER_CURRENT_STRING, code_PROGMEM)) != NULL; }
static inline float   code_value()      { return strtod_noE(strchr_pointer+1, NULL);}
static inline long    code_value_long()    { return strtol(strchr_pointer+1, NULL, 10); }
static inline int16_t code_value_short()   { return int16_t(strtol(strchr_pointer+1, NULL, 10)); };
    b5f8:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
    b5fc:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
    b600:	4a e0       	ldi	r20, 0x0A	; 10
    b602:	50 e0       	ldi	r21, 0x00	; 0
    b604:	70 e0       	ldi	r23, 0x00	; 0
    b606:	60 e0       	ldi	r22, 0x00	; 0
    b608:	01 96       	adiw	r24, 0x01	; 1
    b60a:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
    b60e:	cb 01       	movw	r24, r22
    b610:	08 95       	ret

0000b612 <code_value_long() [clone .lto_priv.545]>:

// Return True if a character was found
static inline bool    code_seen(char code) { return (strchr_pointer = strchr(CMDBUFFER_CURRENT_STRING, code)) != NULL; }
static inline bool    code_seen_P(const char *code_PROGMEM) { return (strchr_pointer = strstr_P(CMDBUFFER_CURRENT_STRING, code_PROGMEM)) != NULL; }
static inline float   code_value()      { return strtod_noE(strchr_pointer+1, NULL);}
static inline long    code_value_long()    { return strtol(strchr_pointer+1, NULL, 10); }
    b612:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
    b616:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
    b61a:	4a e0       	ldi	r20, 0x0A	; 10
    b61c:	50 e0       	ldi	r21, 0x00	; 0
    b61e:	70 e0       	ldi	r23, 0x00	; 0
    b620:	60 e0       	ldi	r22, 0x00	; 0
    b622:	01 96       	adiw	r24, 0x01	; 1
    b624:	0d 94 e6 d7 	jmp	0x3afcc	; 0x3afcc <strtol>

0000b628 <FlushSerialRequestResend()>:
  // don't reverse this or there may be problems if the RX interrupt
  // occurs after reading the value of rx_buffer_head but before writing
  // the value to rx_buffer_tail; the previous value of rx_buffer_head
  // may be written to rx_buffer_tail, making it appear as if the buffer
  // were full, not empty.
  rx_buffer.head = rx_buffer.tail;
    b628:	80 91 9b 04 	lds	r24, 0x049B	; 0x80049b <rx_buffer+0x82>
    b62c:	90 91 9c 04 	lds	r25, 0x049C	; 0x80049c <rx_buffer+0x83>
    b630:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
    b634:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>

void FlushSerialRequestResend()
{
  //char cmdbuffer[bufindr][100]="Resend:";
  MYSERIAL.flush();
  printf_P(_N("%S: %ld\n%S\n"), _n("Resend"), gcode_LastN + 1, MSG_OK);
    b638:	87 e1       	ldi	r24, 0x17	; 23
    b63a:	9d e6       	ldi	r25, 0x6D	; 109
    b63c:	9f 93       	push	r25
    b63e:	8f 93       	push	r24
    b640:	80 91 7a 03 	lds	r24, 0x037A	; 0x80037a <gcode_LastN>
    b644:	90 91 7b 03 	lds	r25, 0x037B	; 0x80037b <gcode_LastN+0x1>
    b648:	a0 91 7c 03 	lds	r26, 0x037C	; 0x80037c <gcode_LastN+0x2>
    b64c:	b0 91 7d 03 	lds	r27, 0x037D	; 0x80037d <gcode_LastN+0x3>
    b650:	01 96       	adiw	r24, 0x01	; 1
    b652:	a1 1d       	adc	r26, r1
    b654:	b1 1d       	adc	r27, r1
    b656:	bf 93       	push	r27
    b658:	af 93       	push	r26
    b65a:	9f 93       	push	r25
    b65c:	8f 93       	push	r24
    b65e:	85 ea       	ldi	r24, 0xA5	; 165
    b660:	95 e6       	ldi	r25, 0x65	; 101
    b662:	9f 93       	push	r25
    b664:	8f 93       	push	r24
    b666:	8c ea       	ldi	r24, 0xAC	; 172
    b668:	95 e6       	ldi	r25, 0x65	; 101
    b66a:	9f 93       	push	r25
    b66c:	8f 93       	push	r24
    b66e:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    b672:	8d b7       	in	r24, 0x3d	; 61
    b674:	9e b7       	in	r25, 0x3e	; 62
    b676:	0a 96       	adiw	r24, 0x0a	; 10
    b678:	0f b6       	in	r0, 0x3f	; 63
    b67a:	f8 94       	cli
    b67c:	9e bf       	out	0x3e, r25	; 62
    b67e:	0f be       	out	0x3f, r0	; 63
    b680:	8d bf       	out	0x3d, r24	; 61
}
    b682:	08 95       	ret

0000b684 <eeprom_is_initialized_block(void const*, unsigned int)>:
bool __attribute__((noinline)) eeprom_is_sheet_initialized(uint8_t sheet_num) {
    return (eeprom_read_word(reinterpret_cast<uint16_t*>(&(EEPROM_Sheets_base->s[sheet_num].z_offset))) != EEPROM_EMPTY_VALUE16);
}


bool __attribute__((noinline)) eeprom_is_initialized_block(const void *__p, size_t __n) {
    b684:	0f 93       	push	r16
    b686:	1f 93       	push	r17
    b688:	cf 93       	push	r28
    b68a:	df 93       	push	r29
    b68c:	ec 01       	movw	r28, r24
    b68e:	c6 0f       	add	r28, r22
    b690:	d7 1f       	adc	r29, r23
    const uint8_t *p = (const uint8_t*)__p;
    while (__n--) {
    b692:	8c 17       	cp	r24, r28
    b694:	9d 07       	cpc	r25, r29
    b696:	79 f0       	breq	.+30     	; 0xb6b6 <eeprom_is_initialized_block(void const*, unsigned int)+0x32>
        if (eeprom_read_byte(p++) != EEPROM_EMPTY_VALUE)
    b698:	8c 01       	movw	r16, r24
    b69a:	0f 5f       	subi	r16, 0xFF	; 255
    b69c:	1f 4f       	sbci	r17, 0xFF	; 255
    b69e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    b6a2:	8f 3f       	cpi	r24, 0xFF	; 255
    b6a4:	31 f0       	breq	.+12     	; 0xb6b2 <eeprom_is_initialized_block(void const*, unsigned int)+0x2e>
            return true;
    b6a6:	81 e0       	ldi	r24, 0x01	; 1
    }
    return false;
}
    b6a8:	df 91       	pop	r29
    b6aa:	cf 91       	pop	r28
    b6ac:	1f 91       	pop	r17
    b6ae:	0f 91       	pop	r16
    b6b0:	08 95       	ret


bool __attribute__((noinline)) eeprom_is_initialized_block(const void *__p, size_t __n) {
    const uint8_t *p = (const uint8_t*)__p;
    while (__n--) {
        if (eeprom_read_byte(p++) != EEPROM_EMPTY_VALUE)
    b6b2:	c8 01       	movw	r24, r16
    b6b4:	ee cf       	rjmp	.-36     	; 0xb692 <eeprom_is_initialized_block(void const*, unsigned int)+0xe>
            return true;
    }
    return false;
    b6b6:	80 e0       	ldi	r24, 0x00	; 0
    b6b8:	f7 cf       	rjmp	.-18     	; 0xb6a8 <eeprom_is_initialized_block(void const*, unsigned int)+0x24>

0000b6ba <code_seen(char) [clone .lto_priv.549]>:
#if defined(__cplusplus)
}
#endif

// Return True if a character was found
static inline bool    code_seen(char code) { return (strchr_pointer = strchr(CMDBUFFER_CURRENT_STRING, code)) != NULL; }
    b6ba:	68 2f       	mov	r22, r24
    b6bc:	88 0f       	add	r24, r24
    b6be:	77 0b       	sbc	r23, r23
    b6c0:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
    b6c4:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
    b6c8:	88 55       	subi	r24, 0x58	; 88
    b6ca:	9f 4e       	sbci	r25, 0xEF	; 239
    b6cc:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
    b6d0:	9c 01       	movw	r18, r24
    b6d2:	90 93 96 03 	sts	0x0396, r25	; 0x800396 <strchr_pointer+0x1>
    b6d6:	80 93 95 03 	sts	0x0395, r24	; 0x800395 <strchr_pointer>
    b6da:	81 e0       	ldi	r24, 0x01	; 1
    b6dc:	23 2b       	or	r18, r19
    b6de:	09 f4       	brne	.+2      	; 0xb6e2 <code_seen(char) [clone .lto_priv.549]+0x28>
    b6e0:	80 e0       	ldi	r24, 0x00	; 0
    b6e2:	08 95       	ret

0000b6e4 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const>:
#endif
    babystep_apply(); // Apply Z height correction aka baby stepping before mesh bed leveing gets activated.

    { // Apply the bed level correction to the mesh
        bool eeprom_bed_correction_valid = eeprom_read_byte((unsigned char*)EEPROM_BED_CORRECTION_VALID) == 1;
        auto bedCorrectHelper = [eeprom_bed_correction_valid] (char code, uint8_t *eep_address) -> int8_t {
    b6e4:	0f 93       	push	r16
    b6e6:	1f 93       	push	r17
    b6e8:	cf 93       	push	r28
    b6ea:	df 93       	push	r29
    b6ec:	8c 01       	movw	r16, r24
    b6ee:	86 2f       	mov	r24, r22
    b6f0:	ea 01       	movw	r28, r20
            if (code_seen(code)) {
    b6f2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    b6f6:	88 23       	and	r24, r24
    b6f8:	19 f1       	breq	.+70     	; 0xb740 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const+0x5c>
                // Verify value is within allowed range
                int16_t temp = code_value_short();
    b6fa:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
                if (abs(temp) > BED_ADJUSTMENT_UM_MAX) {
    b6fe:	9c 01       	movw	r18, r24
    b700:	97 ff       	sbrs	r25, 7
    b702:	03 c0       	rjmp	.+6      	; 0xb70a <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const+0x26>
    b704:	31 95       	neg	r19
    b706:	21 95       	neg	r18
    b708:	31 09       	sbc	r19, r1
    b70a:	25 36       	cpi	r18, 0x65	; 101
    b70c:	31 05       	cpc	r19, r1
    b70e:	9c f0       	brlt	.+38     	; 0xb736 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const+0x52>
                    printf_P(PSTR("%SExcessive bed leveling correction: %i microns\n"), errormagic, temp);
    b710:	9f 93       	push	r25
    b712:	8f 93       	push	r24
    b714:	88 ea       	ldi	r24, 0xA8	; 168
    b716:	9a ea       	ldi	r25, 0xAA	; 170
    b718:	9f 93       	push	r25
    b71a:	8f 93       	push	r24
    b71c:	83 eb       	ldi	r24, 0xB3	; 179
    b71e:	9b e7       	ldi	r25, 0x7B	; 123
    b720:	9f 93       	push	r25
    b722:	8f 93       	push	r24
    b724:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    b728:	0f 90       	pop	r0
    b72a:	0f 90       	pop	r0
    b72c:	0f 90       	pop	r0
    b72e:	0f 90       	pop	r0
    b730:	0f 90       	pop	r0
    b732:	0f 90       	pop	r0
                    return (int8_t)temp; // Value is valid, use it
                }
            } else if (eeprom_bed_correction_valid) {
                return (int8_t)eeprom_read_byte(eep_address);
            }
            return 0;
    b734:	80 e0       	ldi	r24, 0x00	; 0
        };
    b736:	df 91       	pop	r29
    b738:	cf 91       	pop	r28
    b73a:	1f 91       	pop	r17
    b73c:	0f 91       	pop	r16
    b73e:	08 95       	ret
                if (abs(temp) > BED_ADJUSTMENT_UM_MAX) {
                    printf_P(PSTR("%SExcessive bed leveling correction: %i microns\n"), errormagic, temp);
                } else {
                    return (int8_t)temp; // Value is valid, use it
                }
            } else if (eeprom_bed_correction_valid) {
    b740:	f8 01       	movw	r30, r16
    b742:	80 81       	ld	r24, Z
    b744:	88 23       	and	r24, r24
    b746:	b1 f3       	breq	.-20     	; 0xb734 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const+0x50>
                return (int8_t)eeprom_read_byte(eep_address);
    b748:	ce 01       	movw	r24, r28
            }
            return 0;
        };
    b74a:	df 91       	pop	r29
    b74c:	cf 91       	pop	r28
    b74e:	1f 91       	pop	r17
    b750:	0f 91       	pop	r16
                    printf_P(PSTR("%SExcessive bed leveling correction: %i microns\n"), errormagic, temp);
                } else {
                    return (int8_t)temp; // Value is valid, use it
                }
            } else if (eeprom_bed_correction_valid) {
                return (int8_t)eeprom_read_byte(eep_address);
    b752:	0d 94 5b dc 	jmp	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>

0000b756 <failstats_reset_print()>:
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
    b756:	60 e0       	ldi	r22, 0x00	; 0
    b758:	86 e6       	ldi	r24, 0x66	; 102
    b75a:	9f e0       	ldi	r25, 0x0F	; 15
    b75c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    b760:	60 e0       	ldi	r22, 0x00	; 0
    b762:	88 e6       	ldi	r24, 0x68	; 104
    b764:	9f e0       	ldi	r25, 0x0F	; 15
    b766:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    b76a:	60 e0       	ldi	r22, 0x00	; 0
    b76c:	85 e6       	ldi	r24, 0x65	; 101
    b76e:	9f e0       	ldi	r25, 0x0F	; 15
    b770:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    b774:	60 e0       	ldi	r22, 0x00	; 0
    b776:	84 e6       	ldi	r24, 0x64	; 100
    b778:	9f e0       	ldi	r25, 0x0F	; 15
    b77a:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    b77e:	60 e0       	ldi	r22, 0x00	; 0
    b780:	82 ed       	ldi	r24, 0xD2	; 210
    b782:	9e e0       	ldi	r25, 0x0E	; 14
    b784:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    b788:	60 e0       	ldi	r22, 0x00	; 0
    b78a:	8f ec       	ldi	r24, 0xCF	; 207
    b78c:	9e e0       	ldi	r25, 0x0E	; 14
    b78e:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0000b792 <cmdqueue_could_enqueue_back(unsigned int)>:
// This function may update bufindw, therefore for the power panic to work, this function must be called
// with the interrupts disabled!
static bool __attribute__((noinline)) cmdqueue_could_enqueue_back(size_t len_asked)
{
    // MAX_CMD_SIZE has to accommodate the zero terminator.
    if (len_asked >= MAX_CMD_SIZE)
    b792:	80 36       	cpi	r24, 0x60	; 96
    b794:	91 05       	cpc	r25, r1
    b796:	f8 f4       	brcc	.+62     	; 0xb7d6 <cmdqueue_could_enqueue_back(unsigned int)+0x44>
        return false;

    if (bufindr == bufindw && buflen > 0)
    b798:	40 91 92 12 	lds	r20, 0x1292	; 0x801292 <bufindr>
    b79c:	50 91 93 12 	lds	r21, 0x1293	; 0x801293 <bufindr+0x1>
    b7a0:	20 91 a0 10 	lds	r18, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
    b7a4:	30 91 a1 10 	lds	r19, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
    b7a8:	42 17       	cp	r20, r18
    b7aa:	53 07       	cpc	r21, r19
    b7ac:	39 f4       	brne	.+14     	; 0xb7bc <cmdqueue_could_enqueue_back(unsigned int)+0x2a>
    b7ae:	60 91 a3 10 	lds	r22, 0x10A3	; 0x8010a3 <buflen>
    b7b2:	70 91 a4 10 	lds	r23, 0x10A4	; 0x8010a4 <buflen+0x1>
    b7b6:	16 16       	cp	r1, r22
    b7b8:	17 06       	cpc	r1, r23
    b7ba:	6c f0       	brlt	.+26     	; 0xb7d6 <cmdqueue_could_enqueue_back(unsigned int)+0x44>
    // If there is some data stored starting at bufindw, len_asked is certainly smaller than
    // the allocated data buffer. Try to reserve a new buffer and to move the already received
    // serial data.
    // How much memory to reserve for the commands pushed to the front?
    // End of the queue, when pushing to the end.
    size_t endw = bufindw + len_asked + (1 + CMDHDRSIZE);
    b7bc:	b9 01       	movw	r22, r18
    b7be:	68 0f       	add	r22, r24
    b7c0:	79 1f       	adc	r23, r25
    b7c2:	fb 01       	movw	r30, r22
    b7c4:	e3 59       	subi	r30, 0x93	; 147
    b7c6:	ff 4f       	sbci	r31, 0xFF	; 255
    if (bufindw < bufindr)
    b7c8:	24 17       	cp	r18, r20
    b7ca:	35 07       	cpc	r19, r21
    b7cc:	30 f4       	brcc	.+12     	; 0xb7da <cmdqueue_could_enqueue_back(unsigned int)+0x48>
        // Simple case. There is a contiguous space between the write buffer and the read buffer.
        return endw + CMDBUFFER_RESERVE_FRONT <= bufindr;
    b7ce:	81 e0       	ldi	r24, 0x01	; 1
    b7d0:	4e 17       	cp	r20, r30
    b7d2:	5f 07       	cpc	r21, r31
    b7d4:	08 f4       	brcc	.+2      	; 0xb7d8 <cmdqueue_could_enqueue_back(unsigned int)+0x46>
// with the interrupts disabled!
static bool __attribute__((noinline)) cmdqueue_could_enqueue_back(size_t len_asked)
{
    // MAX_CMD_SIZE has to accommodate the zero terminator.
    if (len_asked >= MAX_CMD_SIZE)
        return false;
    b7d6:	80 e0       	ldi	r24, 0x00	; 0
        // Be careful! The bufindw needs to be changed atomically for the power panic & filament panic to work.
        ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { bufindw = 0; }
        return true;
    }
    return false;
}
    b7d8:	08 95       	ret
    size_t endw = bufindw + len_asked + (1 + CMDHDRSIZE);
    if (bufindw < bufindr)
        // Simple case. There is a contiguous space between the write buffer and the read buffer.
        return endw + CMDBUFFER_RESERVE_FRONT <= bufindr;
    // Otherwise the free space is split between the start and end.
    if (// Could one fit to the end, including the reserve?
    b7da:	ee 3e       	cpi	r30, 0xEE	; 238
    b7dc:	f1 40       	sbci	r31, 0x01	; 1
    b7de:	f8 f0       	brcs	.+62     	; 0xb81e <cmdqueue_could_enqueue_back(unsigned int)+0x8c>
    // If there is some data stored starting at bufindw, len_asked is certainly smaller than
    // the allocated data buffer. Try to reserve a new buffer and to move the already received
    // serial data.
    // How much memory to reserve for the commands pushed to the front?
    // End of the queue, when pushing to the end.
    size_t endw = bufindw + len_asked + (1 + CMDHDRSIZE);
    b7e0:	6c 5f       	subi	r22, 0xFC	; 252
    b7e2:	7f 4f       	sbci	r23, 0xFF	; 255
    if (bufindw < bufindr)
        // Simple case. There is a contiguous space between the write buffer and the read buffer.
        return endw + CMDBUFFER_RESERVE_FRONT <= bufindr;
    // Otherwise the free space is split between the start and end.
    if (// Could one fit to the end, including the reserve?
        endw + CMDBUFFER_RESERVE_FRONT <= sizeof(cmdbuffer) ||
    b7e4:	6e 3e       	cpi	r22, 0xEE	; 238
    b7e6:	71 40       	sbci	r23, 0x01	; 1
    b7e8:	18 f4       	brcc	.+6      	; 0xb7f0 <cmdqueue_could_enqueue_back(unsigned int)+0x5e>
        // Could one fit to the end, and the reserve to the start?
        (endw <= sizeof(cmdbuffer) && CMDBUFFER_RESERVE_FRONT <= bufindr))
    b7ea:	49 36       	cpi	r20, 0x69	; 105
    b7ec:	51 05       	cpc	r21, r1
    b7ee:	b8 f4       	brcc	.+46     	; 0xb81e <cmdqueue_could_enqueue_back(unsigned int)+0x8c>
        return true;
    // Could one fit both to the start?
    if (len_asked + (1 + CMDHDRSIZE) + CMDBUFFER_RESERVE_FRONT <= bufindr) {
    b7f0:	83 59       	subi	r24, 0x93	; 147
    b7f2:	9f 4f       	sbci	r25, 0xFF	; 255
    b7f4:	48 17       	cp	r20, r24
    b7f6:	59 07       	cpc	r21, r25
    b7f8:	70 f3       	brcs	.-36     	; 0xb7d6 <cmdqueue_could_enqueue_back(unsigned int)+0x44>
        // Mark the rest of the buffer as used.
        memset(cmdbuffer+bufindw, 0, sizeof(cmdbuffer)-bufindw);
    b7fa:	4d ee       	ldi	r20, 0xED	; 237
    b7fc:	51 e0       	ldi	r21, 0x01	; 1
    b7fe:	42 1b       	sub	r20, r18
    b800:	53 0b       	sbc	r21, r19
    b802:	70 e0       	ldi	r23, 0x00	; 0
    b804:	60 e0       	ldi	r22, 0x00	; 0
    b806:	c9 01       	movw	r24, r18
    b808:	8b 55       	subi	r24, 0x5B	; 91
    b80a:	9f 4e       	sbci	r25, 0xEF	; 239
    b80c:	0f 94 8d e2 	call	0x3c51a	; 0x3c51a <memset>
        // and point to the start.
        // Be careful! The bufindw needs to be changed atomically for the power panic & filament panic to work.
        ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { bufindw = 0; }
    b810:	8f b7       	in	r24, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
    b812:	f8 94       	cli
    b814:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
    b818:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
    b81c:	8f bf       	out	0x3f, r24	; 63
    // Otherwise the free space is split between the start and end.
    if (// Could one fit to the end, including the reserve?
        endw + CMDBUFFER_RESERVE_FRONT <= sizeof(cmdbuffer) ||
        // Could one fit to the end, and the reserve to the start?
        (endw <= sizeof(cmdbuffer) && CMDBUFFER_RESERVE_FRONT <= bufindr))
        return true;
    b81e:	81 e0       	ldi	r24, 0x01	; 1
    b820:	08 95       	ret

0000b822 <temp_comp_interpolation(float)>:
		//we have no temp compensation data
	}
}
#endif //ndef PINDA_THERMISTOR

float temp_comp_interpolation(float inp_temperature) {
    b822:	2f 92       	push	r2
    b824:	3f 92       	push	r3
    b826:	4f 92       	push	r4
    b828:	5f 92       	push	r5
    b82a:	6f 92       	push	r6
    b82c:	7f 92       	push	r7
    b82e:	8f 92       	push	r8
    b830:	9f 92       	push	r9
    b832:	af 92       	push	r10
    b834:	bf 92       	push	r11
    b836:	cf 92       	push	r12
    b838:	df 92       	push	r13
    b83a:	ef 92       	push	r14
    b83c:	ff 92       	push	r15
    b83e:	0f 93       	push	r16
    b840:	1f 93       	push	r17
    b842:	cf 93       	push	r28
    b844:	df 93       	push	r29
    b846:	cd b7       	in	r28, 0x3d	; 61
    b848:	de b7       	in	r29, 0x3e	; 62
    b84a:	cc 58       	subi	r28, 0x8C	; 140
    b84c:	d2 40       	sbci	r29, 0x02	; 2
    b84e:	0f b6       	in	r0, 0x3f	; 63
    b850:	f8 94       	cli
    b852:	de bf       	out	0x3e, r29	; 62
    b854:	0f be       	out	0x3f, r0	; 63
    b856:	cd bf       	out	0x3d, r28	; 61
    b858:	cb 58       	subi	r28, 0x8B	; 139
    b85a:	dd 4f       	sbci	r29, 0xFD	; 253
    b85c:	68 83       	st	Y, r22
    b85e:	79 83       	std	Y+1, r23	; 0x01
    b860:	8a 83       	std	Y+2, r24	; 0x02
    b862:	9b 83       	std	Y+3, r25	; 0x03
    b864:	c5 57       	subi	r28, 0x75	; 117
    b866:	d2 40       	sbci	r29, 0x02	; 2

	//cubic spline interpolation

	int n, i, j;
	float h[10], a, b, c, d, sum, s[10] = { 0 }, x[10], F[10], f[10], m[10][10] = { 0 }, temp;
    b868:	fe 01       	movw	r30, r28
    b86a:	e7 54       	subi	r30, 0x47	; 71
    b86c:	fe 4f       	sbci	r31, 0xFE	; 254
    b86e:	88 e2       	ldi	r24, 0x28	; 40
    b870:	df 01       	movw	r26, r30
    b872:	1d 92       	st	X+, r1
    b874:	8a 95       	dec	r24
    b876:	e9 f7       	brne	.-6      	; 0xb872 <temp_comp_interpolation(float)+0x50>
    b878:	e8 5b       	subi	r30, 0xB8	; 184
    b87a:	f1 40       	sbci	r31, 0x01	; 1
    b87c:	1f 01       	movw	r2, r30
    b87e:	80 e9       	ldi	r24, 0x90	; 144
    b880:	91 e0       	ldi	r25, 0x01	; 1
    b882:	df 01       	movw	r26, r30
    b884:	fc 01       	movw	r30, r24
    b886:	1d 92       	st	X+, r1
    b888:	31 97       	sbiw	r30, 0x01	; 1
    b88a:	e9 f7       	brne	.-6      	; 0xb886 <temp_comp_interpolation(float)+0x64>
	int shift[10];
	int temp_C[10];

	n = 6; //number of measured points

	shift[0] = 0;
    b88c:	c7 5a       	subi	r28, 0xA7	; 167
    b88e:	dd 4f       	sbci	r29, 0xFD	; 253
    b890:	19 82       	std	Y+1, r1	; 0x01
    b892:	18 82       	st	Y, r1
    b894:	c9 55       	subi	r28, 0x59	; 89
    b896:	d2 40       	sbci	r29, 0x02	; 2
    b898:	9e 01       	movw	r18, r28
    b89a:	2f 51       	subi	r18, 0x1F	; 31
    b89c:	3e 4f       	sbci	r19, 0xFE	; 254
    b89e:	c1 59       	subi	r28, 0x91	; 145
    b8a0:	dd 4f       	sbci	r29, 0xFD	; 253
    b8a2:	39 83       	std	Y+1, r19	; 0x01
    b8a4:	28 83       	st	Y, r18
    b8a6:	cf 56       	subi	r28, 0x6F	; 111
    b8a8:	d2 40       	sbci	r29, 0x02	; 2
    b8aa:	8e 01       	movw	r16, r28
    b8ac:	07 5a       	subi	r16, 0xA7	; 167
    b8ae:	1d 4f       	sbci	r17, 0xFD	; 253
    b8b0:	ce 01       	movw	r24, r28
    b8b2:	8f 5c       	subi	r24, 0xCF	; 207
    b8b4:	9d 4f       	sbci	r25, 0xFD	; 253
    b8b6:	c3 59       	subi	r28, 0x93	; 147
    b8b8:	dd 4f       	sbci	r29, 0xFD	; 253
    b8ba:	99 83       	std	Y+1, r25	; 0x01
    b8bc:	88 83       	st	Y, r24
    b8be:	cd 56       	subi	r28, 0x6D	; 109
    b8c0:	d2 40       	sbci	r29, 0x02	; 2
    b8c2:	3c 01       	movw	r6, r24
    b8c4:	49 01       	movw	r8, r18
    b8c6:	40 eb       	ldi	r20, 0xB0	; 176
    b8c8:	a4 2e       	mov	r10, r20
    b8ca:	4f e0       	ldi	r20, 0x0F	; 15
    b8cc:	b4 2e       	mov	r11, r20
    b8ce:	53 e2       	ldi	r21, 0x23	; 35
    b8d0:	c5 2e       	mov	r12, r21
    b8d2:	d1 2c       	mov	r13, r1
	for (i = 0; i < n; i++) {
    b8d4:	f1 2c       	mov	r15, r1
    b8d6:	e1 2c       	mov	r14, r1
    static_assert(start_compensating_temp >= PINDA_MINTEMP, "Temperature compensation start point is lower than PINDA_MINTEMP.");
#endif //SUPERPINDA_SUPPORT
#else
		temp_C[i] = 50 + i * 10; //temperature in C
#endif
		x[i] = (float)temp_C[i];
    b8d8:	b6 01       	movw	r22, r12
    b8da:	0d 2c       	mov	r0, r13
    b8dc:	00 0c       	add	r0, r0
    b8de:	88 0b       	sbc	r24, r24
    b8e0:	99 0b       	sbc	r25, r25
    b8e2:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    b8e6:	d4 01       	movw	r26, r8
    b8e8:	6d 93       	st	X+, r22
    b8ea:	7d 93       	st	X+, r23
    b8ec:	8d 93       	st	X+, r24
    b8ee:	9d 93       	st	X+, r25
    b8f0:	4d 01       	movw	r8, r26
		f[i] = (float)shift[i];
    b8f2:	f8 01       	movw	r30, r16
    b8f4:	61 91       	ld	r22, Z+
    b8f6:	71 91       	ld	r23, Z+
    b8f8:	8f 01       	movw	r16, r30
    b8fa:	07 2e       	mov	r0, r23
    b8fc:	00 0c       	add	r0, r0
    b8fe:	88 0b       	sbc	r24, r24
    b900:	99 0b       	sbc	r25, r25
    b902:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    b906:	d3 01       	movw	r26, r6
    b908:	6d 93       	st	X+, r22
    b90a:	7d 93       	st	X+, r23
    b90c:	8d 93       	st	X+, r24
    b90e:	9d 93       	st	X+, r25
    b910:	3d 01       	movw	r6, r26
	int temp_C[10];

	n = 6; //number of measured points

	shift[0] = 0;
	for (i = 0; i < n; i++) {
    b912:	bf ef       	ldi	r27, 0xFF	; 255
    b914:	eb 1a       	sub	r14, r27
    b916:	fb 0a       	sbc	r15, r27
    b918:	e6 e0       	ldi	r30, 0x06	; 6
    b91a:	ee 16       	cp	r14, r30
    b91c:	f1 04       	cpc	r15, r1
    b91e:	09 f0       	breq	.+2      	; 0xb922 <temp_comp_interpolation(float)+0x100>
    b920:	38 c3       	rjmp	.+1648   	; 0xbf92 <temp_comp_interpolation(float)+0x770>
		temp_C[i] = 50 + i * 10; //temperature in C
#endif
		x[i] = (float)temp_C[i];
		f[i] = (float)shift[i];
	}
	if (inp_temperature < x[0]) return 0;
    b922:	cb 58       	subi	r28, 0x8B	; 139
    b924:	dd 4f       	sbci	r29, 0xFD	; 253
    b926:	28 81       	ld	r18, Y
    b928:	39 81       	ldd	r19, Y+1	; 0x01
    b92a:	4a 81       	ldd	r20, Y+2	; 0x02
    b92c:	5b 81       	ldd	r21, Y+3	; 0x03
    b92e:	c5 57       	subi	r28, 0x75	; 117
    b930:	d2 40       	sbci	r29, 0x02	; 2
    b932:	c1 59       	subi	r28, 0x91	; 145
    b934:	dd 4f       	sbci	r29, 0xFD	; 253
    b936:	a8 81       	ld	r26, Y
    b938:	b9 81       	ldd	r27, Y+1	; 0x01
    b93a:	cf 56       	subi	r28, 0x6F	; 111
    b93c:	d2 40       	sbci	r29, 0x02	; 2
    b93e:	6d 91       	ld	r22, X+
    b940:	7d 91       	ld	r23, X+
    b942:	8d 91       	ld	r24, X+
    b944:	9c 91       	ld	r25, X
    b946:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    b94a:	41 2c       	mov	r4, r1
    b94c:	51 2c       	mov	r5, r1
    b94e:	32 01       	movw	r6, r4
    b950:	18 16       	cp	r1, r24
    b952:	0c f4       	brge	.+2      	; 0xb956 <temp_comp_interpolation(float)+0x134>
    b954:	02 c3       	rjmp	.+1540   	; 0xbf5a <temp_comp_interpolation(float)+0x738>
    b956:	c3 59       	subi	r28, 0x93	; 147
    b958:	dd 4f       	sbci	r29, 0xFD	; 253
    b95a:	08 81       	ld	r16, Y
    b95c:	19 81       	ldd	r17, Y+1	; 0x01
    b95e:	cd 56       	subi	r28, 0x6D	; 109
    b960:	d2 40       	sbci	r29, 0x02	; 2
    b962:	0c 5e       	subi	r16, 0xEC	; 236
    b964:	1f 4f       	sbci	r17, 0xFF	; 255
    b966:	c1 59       	subi	r28, 0x91	; 145
    b968:	dd 4f       	sbci	r29, 0xFD	; 253
    b96a:	e8 80       	ld	r14, Y
    b96c:	f9 80       	ldd	r15, Y+1	; 0x01
    b96e:	cf 56       	subi	r28, 0x6F	; 111
    b970:	d2 40       	sbci	r29, 0x02	; 2
    b972:	b4 e1       	ldi	r27, 0x14	; 20
    b974:	eb 0e       	add	r14, r27
    b976:	f1 1c       	adc	r15, r1
    b978:	6e 01       	movw	r12, r28
    b97a:	ef ed       	ldi	r30, 0xDF	; 223
    b97c:	ce 1a       	sub	r12, r30
    b97e:	ed ef       	ldi	r30, 0xFD	; 253
    b980:	de 0a       	sbc	r13, r30
    b982:	9e 01       	movw	r18, r28
    b984:	2b 55       	subi	r18, 0x5B	; 91
    b986:	3e 4f       	sbci	r19, 0xFE	; 254
    b988:	cf 58       	subi	r28, 0x8F	; 143
    b98a:	dd 4f       	sbci	r29, 0xFD	; 253
    b98c:	39 83       	std	Y+1, r19	; 0x01
    b98e:	28 83       	st	Y, r18
    b990:	c1 57       	subi	r28, 0x71	; 113
    b992:	d2 40       	sbci	r29, 0x02	; 2


	for (i = n - 1; i>0; i--) {
		F[i] = (f[i] - f[i - 1]) / (x[i] - x[i - 1]);
    b994:	d8 01       	movw	r26, r16
    b996:	4d 90       	ld	r4, X+
    b998:	5d 90       	ld	r5, X+
    b99a:	6d 90       	ld	r6, X+
    b99c:	7c 90       	ld	r7, X
    b99e:	f7 01       	movw	r30, r14
    b9a0:	60 81       	ld	r22, Z
    b9a2:	71 81       	ldd	r23, Z+1	; 0x01
    b9a4:	82 81       	ldd	r24, Z+2	; 0x02
    b9a6:	93 81       	ldd	r25, Z+3	; 0x03
    b9a8:	d7 01       	movw	r26, r14
    b9aa:	5e 91       	ld	r21, -X
    b9ac:	4e 91       	ld	r20, -X
    b9ae:	3e 91       	ld	r19, -X
    b9b0:	2e 91       	ld	r18, -X
    b9b2:	7d 01       	movw	r14, r26
    b9b4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    b9b8:	4b 01       	movw	r8, r22
    b9ba:	5c 01       	movw	r10, r24
    b9bc:	f8 01       	movw	r30, r16
    b9be:	52 91       	ld	r21, -Z
    b9c0:	42 91       	ld	r20, -Z
    b9c2:	32 91       	ld	r19, -Z
    b9c4:	22 91       	ld	r18, -Z
    b9c6:	8f 01       	movw	r16, r30
    b9c8:	c3 01       	movw	r24, r6
    b9ca:	b2 01       	movw	r22, r4
    b9cc:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    b9d0:	a5 01       	movw	r20, r10
    b9d2:	94 01       	movw	r18, r8
    b9d4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    b9d8:	d6 01       	movw	r26, r12
    b9da:	9e 93       	st	-X, r25
    b9dc:	8e 93       	st	-X, r24
    b9de:	7e 93       	st	-X, r23
    b9e0:	6e 93       	st	-X, r22
    b9e2:	6d 01       	movw	r12, r26
		h[i - 1] = x[i] - x[i - 1];
    b9e4:	cf 58       	subi	r28, 0x8F	; 143
    b9e6:	dd 4f       	sbci	r29, 0xFD	; 253
    b9e8:	e8 81       	ld	r30, Y
    b9ea:	f9 81       	ldd	r31, Y+1	; 0x01
    b9ec:	c1 57       	subi	r28, 0x71	; 113
    b9ee:	d2 40       	sbci	r29, 0x02	; 2
    b9f0:	b2 92       	st	-Z, r11
    b9f2:	a2 92       	st	-Z, r10
    b9f4:	92 92       	st	-Z, r9
    b9f6:	82 92       	st	-Z, r8
    b9f8:	cf 58       	subi	r28, 0x8F	; 143
    b9fa:	dd 4f       	sbci	r29, 0xFD	; 253
    b9fc:	f9 83       	std	Y+1, r31	; 0x01
    b9fe:	e8 83       	st	Y, r30
    ba00:	c1 57       	subi	r28, 0x71	; 113
    ba02:	d2 40       	sbci	r29, 0x02	; 2
		f[i] = (float)shift[i];
	}
	if (inp_temperature < x[0]) return 0;


	for (i = n - 1; i>0; i--) {
    ba04:	c3 59       	subi	r28, 0x93	; 147
    ba06:	dd 4f       	sbci	r29, 0xFD	; 253
    ba08:	28 81       	ld	r18, Y
    ba0a:	39 81       	ldd	r19, Y+1	; 0x01
    ba0c:	cd 56       	subi	r28, 0x6D	; 109
    ba0e:	d2 40       	sbci	r29, 0x02	; 2
    ba10:	02 17       	cp	r16, r18
    ba12:	13 07       	cpc	r17, r19
    ba14:	09 f0       	breq	.+2      	; 0xba18 <temp_comp_interpolation(float)+0x1f6>
    ba16:	be cf       	rjmp	.-132    	; 0xb994 <temp_comp_interpolation(float)+0x172>
    ba18:	4e 01       	movw	r8, r28
    ba1a:	3f e6       	ldi	r19, 0x6F	; 111
    ba1c:	83 1a       	sub	r8, r19
    ba1e:	3e ef       	ldi	r19, 0xFE	; 254
    ba20:	93 0a       	sbc	r9, r19
    ba22:	5e 01       	movw	r10, r28
    ba24:	83 ef       	ldi	r24, 0xF3	; 243
    ba26:	a8 1a       	sub	r10, r24
    ba28:	8d ef       	ldi	r24, 0xFD	; 253
    ba2a:	b8 0a       	sbc	r11, r24
    ba2c:	61 01       	movw	r12, r2
    ba2e:	81 01       	movw	r16, r2
		F[i] = (f[i] - f[i - 1]) / (x[i] - x[i - 1]);
		h[i - 1] = x[i] - x[i - 1];
	}
	//*********** formation of h, s , f matrix **************
	for (i = 1; i<n - 1; i++) {
    ba30:	ee 24       	eor	r14, r14
    ba32:	e3 94       	inc	r14
    ba34:	f1 2c       	mov	r15, r1
		m[i][i] = 2 * (h[i - 1] + h[i]);
    ba36:	d4 01       	movw	r26, r8
    ba38:	4d 90       	ld	r4, X+
    ba3a:	5d 90       	ld	r5, X+
    ba3c:	6d 90       	ld	r6, X+
    ba3e:	7d 90       	ld	r7, X+
    ba40:	4d 01       	movw	r8, r26
    ba42:	2d 91       	ld	r18, X+
    ba44:	3d 91       	ld	r19, X+
    ba46:	4d 91       	ld	r20, X+
    ba48:	5c 91       	ld	r21, X
    ba4a:	c3 01       	movw	r24, r6
    ba4c:	b2 01       	movw	r22, r4
    ba4e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    ba52:	9b 01       	movw	r18, r22
    ba54:	ac 01       	movw	r20, r24
    ba56:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    ba5a:	f8 01       	movw	r30, r16
    ba5c:	64 a7       	std	Z+44, r22	; 0x2c
    ba5e:	75 a7       	std	Z+45, r23	; 0x2d
    ba60:	86 a7       	std	Z+46, r24	; 0x2e
    ba62:	97 a7       	std	Z+47, r25	; 0x2f
		if (i != 1) {
    ba64:	f1 e0       	ldi	r31, 0x01	; 1
    ba66:	ef 16       	cp	r14, r31
    ba68:	f1 04       	cpc	r15, r1
    ba6a:	61 f0       	breq	.+24     	; 0xba84 <temp_comp_interpolation(float)+0x262>
			m[i][i - 1] = h[i - 1];
    ba6c:	d8 01       	movw	r26, r16
    ba6e:	98 96       	adiw	r26, 0x28	; 40
    ba70:	4d 92       	st	X+, r4
    ba72:	5d 92       	st	X+, r5
    ba74:	6d 92       	st	X+, r6
    ba76:	7c 92       	st	X, r7
    ba78:	9b 97       	sbiw	r26, 0x2b	; 43
			m[i - 1][i] = h[i - 1];
    ba7a:	f8 01       	movw	r30, r16
    ba7c:	44 82       	std	Z+4, r4	; 0x04
    ba7e:	55 82       	std	Z+5, r5	; 0x05
    ba80:	66 82       	std	Z+6, r6	; 0x06
    ba82:	77 82       	std	Z+7, r7	; 0x07
		}
		m[i][n - 1] = 6 * (F[i + 1] - F[i]);
    ba84:	ff ef       	ldi	r31, 0xFF	; 255
    ba86:	ef 1a       	sub	r14, r31
    ba88:	ff 0a       	sbc	r15, r31
    ba8a:	f5 01       	movw	r30, r10
    ba8c:	20 81       	ld	r18, Z
    ba8e:	31 81       	ldd	r19, Z+1	; 0x01
    ba90:	42 81       	ldd	r20, Z+2	; 0x02
    ba92:	53 81       	ldd	r21, Z+3	; 0x03
    ba94:	84 e0       	ldi	r24, 0x04	; 4
    ba96:	a8 0e       	add	r10, r24
    ba98:	b1 1c       	adc	r11, r1
    ba9a:	64 81       	ldd	r22, Z+4	; 0x04
    ba9c:	75 81       	ldd	r23, Z+5	; 0x05
    ba9e:	86 81       	ldd	r24, Z+6	; 0x06
    baa0:	97 81       	ldd	r25, Z+7	; 0x07
    baa2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    baa6:	20 e0       	ldi	r18, 0x00	; 0
    baa8:	30 e0       	ldi	r19, 0x00	; 0
    baaa:	40 ec       	ldi	r20, 0xC0	; 192
    baac:	50 e4       	ldi	r21, 0x40	; 64
    baae:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bab2:	d6 01       	movw	r26, r12
    bab4:	dc 96       	adiw	r26, 0x3c	; 60
    bab6:	6d 93       	st	X+, r22
    bab8:	7d 93       	st	X+, r23
    baba:	8d 93       	st	X+, r24
    babc:	9c 93       	st	X, r25
    babe:	df 97       	sbiw	r26, 0x3f	; 63
    bac0:	04 5d       	subi	r16, 0xD4	; 212
    bac2:	1f 4f       	sbci	r17, 0xFF	; 255
    bac4:	b8 e2       	ldi	r27, 0x28	; 40
    bac6:	cb 0e       	add	r12, r27
    bac8:	d1 1c       	adc	r13, r1
	for (i = n - 1; i>0; i--) {
		F[i] = (f[i] - f[i - 1]) / (x[i] - x[i - 1]);
		h[i - 1] = x[i] - x[i - 1];
	}
	//*********** formation of h, s , f matrix **************
	for (i = 1; i<n - 1; i++) {
    baca:	e5 e0       	ldi	r30, 0x05	; 5
    bacc:	ee 16       	cp	r14, r30
    bace:	f1 04       	cpc	r15, r1
    bad0:	09 f0       	breq	.+2      	; 0xbad4 <temp_comp_interpolation(float)+0x2b2>
    bad2:	b1 cf       	rjmp	.-158    	; 0xba36 <temp_comp_interpolation(float)+0x214>
    bad4:	7e 01       	movw	r14, r28
    bad6:	fd e2       	ldi	r31, 0x2D	; 45
    bad8:	ef 0e       	add	r14, r31
    bada:	f1 1c       	adc	r15, r1
    badc:	28 e2       	ldi	r18, 0x28	; 40
    bade:	a2 2e       	mov	r10, r18
    bae0:	b1 2c       	mov	r11, r1
    bae2:	00 eb       	ldi	r16, 0xB0	; 176
    bae4:	1f ef       	ldi	r17, 0xFF	; 255
    bae6:	24 e0       	ldi	r18, 0x04	; 4
    bae8:	22 0e       	add	r2, r18
    baea:	31 1c       	adc	r3, r1
		}
		m[i][n - 1] = 6 * (F[i + 1] - F[i]);
	}
	//*********** forward elimination **************
	for (i = 1; i<n - 2; i++) {
		temp = (m[i + 1][i] / m[i][i]);
    baec:	d7 01       	movw	r26, r14
    baee:	2d 91       	ld	r18, X+
    baf0:	3d 91       	ld	r19, X+
    baf2:	4d 91       	ld	r20, X+
    baf4:	5c 91       	ld	r21, X
    baf6:	13 97       	sbiw	r26, 0x03	; 3
    baf8:	98 96       	adiw	r26, 0x28	; 40
    bafa:	6d 91       	ld	r22, X+
    bafc:	7d 91       	ld	r23, X+
    bafe:	8d 91       	ld	r24, X+
    bb00:	9c 91       	ld	r25, X
    bb02:	9b 97       	sbiw	r26, 0x2b	; 43
    bb04:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    bb08:	2b 01       	movw	r4, r22
    bb0a:	3c 01       	movw	r6, r24
    bb0c:	61 01       	movw	r12, r2
    bb0e:	c0 1a       	sub	r12, r16
    bb10:	d1 0a       	sbc	r13, r17
		for (j = 1; j <= n - 1; j++)
    bb12:	88 24       	eor	r8, r8
    bb14:	83 94       	inc	r8
    bb16:	91 2c       	mov	r9, r1
			m[i + 1][j] -= temp*m[i][j];
    bb18:	f6 01       	movw	r30, r12
    bb1a:	e0 0f       	add	r30, r16
    bb1c:	f1 1f       	adc	r31, r17
    bb1e:	ea 0d       	add	r30, r10
    bb20:	fb 1d       	adc	r31, r11
    bb22:	20 81       	ld	r18, Z
    bb24:	31 81       	ldd	r19, Z+1	; 0x01
    bb26:	42 81       	ldd	r20, Z+2	; 0x02
    bb28:	53 81       	ldd	r21, Z+3	; 0x03
    bb2a:	c3 01       	movw	r24, r6
    bb2c:	b2 01       	movw	r22, r4
    bb2e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bb32:	9b 01       	movw	r18, r22
    bb34:	ac 01       	movw	r20, r24
    bb36:	f6 01       	movw	r30, r12
    bb38:	60 81       	ld	r22, Z
    bb3a:	71 81       	ldd	r23, Z+1	; 0x01
    bb3c:	82 81       	ldd	r24, Z+2	; 0x02
    bb3e:	93 81       	ldd	r25, Z+3	; 0x03
    bb40:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    bb44:	d6 01       	movw	r26, r12
    bb46:	6d 93       	st	X+, r22
    bb48:	7d 93       	st	X+, r23
    bb4a:	8d 93       	st	X+, r24
    bb4c:	9d 93       	st	X+, r25
    bb4e:	6d 01       	movw	r12, r26
		m[i][n - 1] = 6 * (F[i + 1] - F[i]);
	}
	//*********** forward elimination **************
	for (i = 1; i<n - 2; i++) {
		temp = (m[i + 1][i] / m[i][i]);
		for (j = 1; j <= n - 1; j++)
    bb50:	bf ef       	ldi	r27, 0xFF	; 255
    bb52:	8b 1a       	sub	r8, r27
    bb54:	9b 0a       	sbc	r9, r27
    bb56:	e6 e0       	ldi	r30, 0x06	; 6
    bb58:	8e 16       	cp	r8, r30
    bb5a:	91 04       	cpc	r9, r1
    bb5c:	e9 f6       	brne	.-70     	; 0xbb18 <temp_comp_interpolation(float)+0x2f6>
    bb5e:	3c e2       	ldi	r19, 0x2C	; 44
    bb60:	e3 0e       	add	r14, r19
    bb62:	f1 1c       	adc	r15, r1
    bb64:	08 52       	subi	r16, 0x28	; 40
    bb66:	11 09       	sbc	r17, r1
    bb68:	88 e2       	ldi	r24, 0x28	; 40
    bb6a:	a8 0e       	add	r10, r24
    bb6c:	b1 1c       	adc	r11, r1
			m[i - 1][i] = h[i - 1];
		}
		m[i][n - 1] = 6 * (F[i + 1] - F[i]);
	}
	//*********** forward elimination **************
	for (i = 1; i<n - 2; i++) {
    bb6e:	08 33       	cpi	r16, 0x38	; 56
    bb70:	9f ef       	ldi	r25, 0xFF	; 255
    bb72:	19 07       	cpc	r17, r25
    bb74:	09 f0       	breq	.+2      	; 0xbb78 <temp_comp_interpolation(float)+0x356>
    bb76:	ba cf       	rjmp	.-140    	; 0xbaec <temp_comp_interpolation(float)+0x2ca>
    bb78:	1e 01       	movw	r2, r28
    bb7a:	f5 eb       	ldi	r31, 0xB5	; 181
    bb7c:	2f 0e       	add	r2, r31
    bb7e:	31 1c       	adc	r3, r1
    bb80:	6e 01       	movw	r12, r28
    bb82:	21 eb       	ldi	r18, 0xB1	; 177
    bb84:	c2 0e       	add	r12, r18
    bb86:	d1 1c       	adc	r13, r1
    bb88:	7e 01       	movw	r14, r28
    bb8a:	37 e3       	ldi	r19, 0x37	; 55
    bb8c:	e3 1a       	sub	r14, r19
    bb8e:	3e ef       	ldi	r19, 0xFE	; 254
    bb90:	f3 0a       	sbc	r15, r19
		temp = (m[i + 1][i] / m[i][i]);
		for (j = 1; j <= n - 1; j++)
			m[i + 1][j] -= temp*m[i][j];
	}
	//*********** backward substitution *********
	for (i = n - 2; i>0; i--) {
    bb92:	04 e0       	ldi	r16, 0x04	; 4
    bb94:	10 e0       	ldi	r17, 0x00	; 0
    bb96:	48 01       	movw	r8, r16
    bb98:	b1 2c       	mov	r11, r1
    bb9a:	a1 2c       	mov	r10, r1
		sum = 0;
    bb9c:	41 2c       	mov	r4, r1
    bb9e:	51 2c       	mov	r5, r1
    bba0:	32 01       	movw	r6, r4
		for (j = i; j <= n - 2; j++)
			sum += m[i][j] * s[j];
    bba2:	f6 01       	movw	r30, r12
    bba4:	ea 0d       	add	r30, r10
    bba6:	fb 1d       	adc	r31, r11
    bba8:	d7 01       	movw	r26, r14
    bbaa:	aa 0d       	add	r26, r10
    bbac:	bb 1d       	adc	r27, r11
    bbae:	2d 91       	ld	r18, X+
    bbb0:	3d 91       	ld	r19, X+
    bbb2:	4d 91       	ld	r20, X+
    bbb4:	5c 91       	ld	r21, X
    bbb6:	60 81       	ld	r22, Z
    bbb8:	71 81       	ldd	r23, Z+1	; 0x01
    bbba:	82 81       	ldd	r24, Z+2	; 0x02
    bbbc:	93 81       	ldd	r25, Z+3	; 0x03
    bbbe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bbc2:	9b 01       	movw	r18, r22
    bbc4:	ac 01       	movw	r20, r24
    bbc6:	c3 01       	movw	r24, r6
    bbc8:	b2 01       	movw	r22, r4
    bbca:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    bbce:	2b 01       	movw	r4, r22
    bbd0:	3c 01       	movw	r6, r24
			m[i + 1][j] -= temp*m[i][j];
	}
	//*********** backward substitution *********
	for (i = n - 2; i>0; i--) {
		sum = 0;
		for (j = i; j <= n - 2; j++)
    bbd2:	8f ef       	ldi	r24, 0xFF	; 255
    bbd4:	88 1a       	sub	r8, r24
    bbd6:	98 0a       	sbc	r9, r24
    bbd8:	94 e0       	ldi	r25, 0x04	; 4
    bbda:	a9 0e       	add	r10, r25
    bbdc:	b1 1c       	adc	r11, r1
    bbde:	a5 e0       	ldi	r26, 0x05	; 5
    bbe0:	8a 16       	cp	r8, r26
    bbe2:	91 04       	cpc	r9, r1
    bbe4:	f1 f6       	brne	.-68     	; 0xbba2 <temp_comp_interpolation(float)+0x380>
			sum += m[i][j] * s[j];
		s[i] = (m[i][n - 1] - sum) / m[i][i];
    bbe6:	a3 01       	movw	r20, r6
    bbe8:	92 01       	movw	r18, r4
    bbea:	f1 01       	movw	r30, r2
    bbec:	60 81       	ld	r22, Z
    bbee:	71 81       	ldd	r23, Z+1	; 0x01
    bbf0:	82 81       	ldd	r24, Z+2	; 0x02
    bbf2:	93 81       	ldd	r25, Z+3	; 0x03
    bbf4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    bbf8:	d6 01       	movw	r26, r12
    bbfa:	2d 91       	ld	r18, X+
    bbfc:	3d 91       	ld	r19, X+
    bbfe:	4d 91       	ld	r20, X+
    bc00:	5c 91       	ld	r21, X
    bc02:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    bc06:	f7 01       	movw	r30, r14
    bc08:	60 83       	st	Z, r22
    bc0a:	71 83       	std	Z+1, r23	; 0x01
    bc0c:	82 83       	std	Z+2, r24	; 0x02
    bc0e:	93 83       	std	Z+3, r25	; 0x03
		temp = (m[i + 1][i] / m[i][i]);
		for (j = 1; j <= n - 1; j++)
			m[i + 1][j] -= temp*m[i][j];
	}
	//*********** backward substitution *********
	for (i = n - 2; i>0; i--) {
    bc10:	01 50       	subi	r16, 0x01	; 1
    bc12:	11 09       	sbc	r17, r1
    bc14:	f8 e2       	ldi	r31, 0x28	; 40
    bc16:	2f 1a       	sub	r2, r31
    bc18:	31 08       	sbc	r3, r1
    bc1a:	2c e2       	ldi	r18, 0x2C	; 44
    bc1c:	c2 1a       	sub	r12, r18
    bc1e:	d1 08       	sbc	r13, r1
    bc20:	34 e0       	ldi	r19, 0x04	; 4
    bc22:	e3 1a       	sub	r14, r19
    bc24:	f1 08       	sbc	r15, r1
    bc26:	01 15       	cp	r16, r1
    bc28:	11 05       	cpc	r17, r1
    bc2a:	09 f0       	breq	.+2      	; 0xbc2e <temp_comp_interpolation(float)+0x40c>
    bc2c:	b4 cf       	rjmp	.-152    	; 0xbb96 <temp_comp_interpolation(float)+0x374>
			sum += m[i][j] * s[j];
		s[i] = (m[i][n - 1] - sum) / m[i][i];
	}

		for (i = 0; i<n - 1; i++)
			if ((x[i] <= inp_temperature && inp_temperature <= x[i + 1]) || (i == n-2 && inp_temperature > x[i + 1])) {
    bc2e:	cb 50       	subi	r28, 0x0B	; 11
    bc30:	de 4f       	sbci	r29, 0xFE	; 254
    bc32:	88 81       	ld	r24, Y
    bc34:	99 81       	ldd	r25, Y+1	; 0x01
    bc36:	aa 81       	ldd	r26, Y+2	; 0x02
    bc38:	bb 81       	ldd	r27, Y+3	; 0x03
    bc3a:	c5 5f       	subi	r28, 0xF5	; 245
    bc3c:	d1 40       	sbci	r29, 0x01	; 1
    bc3e:	cf 57       	subi	r28, 0x7F	; 127
    bc40:	dd 4f       	sbci	r29, 0xFD	; 253
    bc42:	88 83       	st	Y, r24
    bc44:	99 83       	std	Y+1, r25	; 0x01
    bc46:	aa 83       	std	Y+2, r26	; 0x02
    bc48:	bb 83       	std	Y+3, r27	; 0x03
    bc4a:	c1 58       	subi	r28, 0x81	; 129
    bc4c:	d2 40       	sbci	r29, 0x02	; 2
    bc4e:	1e 01       	movw	r2, r28
    bc50:	97 e4       	ldi	r25, 0x47	; 71
    bc52:	29 1a       	sub	r2, r25
    bc54:	9e ef       	ldi	r25, 0xFE	; 254
    bc56:	39 0a       	sbc	r3, r25
    bc58:	10 e0       	ldi	r17, 0x00	; 0
    bc5a:	00 e0       	ldi	r16, 0x00	; 0
    bc5c:	c1 59       	subi	r28, 0x91	; 145
    bc5e:	dd 4f       	sbci	r29, 0xFD	; 253
    bc60:	a8 81       	ld	r26, Y
    bc62:	b9 81       	ldd	r27, Y+1	; 0x01
    bc64:	cf 56       	subi	r28, 0x6F	; 111
    bc66:	d2 40       	sbci	r29, 0x02	; 2
    bc68:	cd 90       	ld	r12, X+
    bc6a:	dd 90       	ld	r13, X+
    bc6c:	ed 90       	ld	r14, X+
    bc6e:	fd 90       	ld	r15, X+
    bc70:	c1 59       	subi	r28, 0x91	; 145
    bc72:	dd 4f       	sbci	r29, 0xFD	; 253
    bc74:	b9 83       	std	Y+1, r27	; 0x01
    bc76:	a8 83       	st	Y, r26
    bc78:	cf 56       	subi	r28, 0x6F	; 111
    bc7a:	d2 40       	sbci	r29, 0x02	; 2
    bc7c:	cb 58       	subi	r28, 0x8B	; 139
    bc7e:	dd 4f       	sbci	r29, 0xFD	; 253
    bc80:	28 81       	ld	r18, Y
    bc82:	39 81       	ldd	r19, Y+1	; 0x01
    bc84:	4a 81       	ldd	r20, Y+2	; 0x02
    bc86:	5b 81       	ldd	r21, Y+3	; 0x03
    bc88:	c5 57       	subi	r28, 0x75	; 117
    bc8a:	d2 40       	sbci	r29, 0x02	; 2
    bc8c:	c7 01       	movw	r24, r14
    bc8e:	b6 01       	movw	r22, r12
    bc90:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    bc94:	18 16       	cp	r1, r24
    bc96:	b4 f0       	brlt	.+44     	; 0xbcc4 <temp_comp_interpolation(float)+0x4a2>
    bc98:	cb 58       	subi	r28, 0x8B	; 139
    bc9a:	dd 4f       	sbci	r29, 0xFD	; 253
    bc9c:	28 81       	ld	r18, Y
    bc9e:	39 81       	ldd	r19, Y+1	; 0x01
    bca0:	4a 81       	ldd	r20, Y+2	; 0x02
    bca2:	5b 81       	ldd	r21, Y+3	; 0x03
    bca4:	c5 57       	subi	r28, 0x75	; 117
    bca6:	d2 40       	sbci	r29, 0x02	; 2
    bca8:	c1 59       	subi	r28, 0x91	; 145
    bcaa:	dd 4f       	sbci	r29, 0xFD	; 253
    bcac:	e8 81       	ld	r30, Y
    bcae:	f9 81       	ldd	r31, Y+1	; 0x01
    bcb0:	cf 56       	subi	r28, 0x6F	; 111
    bcb2:	d2 40       	sbci	r29, 0x02	; 2
    bcb4:	60 81       	ld	r22, Z
    bcb6:	71 81       	ldd	r23, Z+1	; 0x01
    bcb8:	82 81       	ldd	r24, Z+2	; 0x02
    bcba:	93 81       	ldd	r25, Z+3	; 0x03
    bcbc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    bcc0:	87 ff       	sbrs	r24, 7
    bcc2:	18 c0       	rjmp	.+48     	; 0xbcf4 <temp_comp_interpolation(float)+0x4d2>
    bcc4:	04 30       	cpi	r16, 0x04	; 4
    bcc6:	11 05       	cpc	r17, r1
    bcc8:	09 f0       	breq	.+2      	; 0xbccc <temp_comp_interpolation(float)+0x4aa>
    bcca:	30 c1       	rjmp	.+608    	; 0xbf2c <temp_comp_interpolation(float)+0x70a>
    bccc:	cb 58       	subi	r28, 0x8B	; 139
    bcce:	dd 4f       	sbci	r29, 0xFD	; 253
    bcd0:	28 81       	ld	r18, Y
    bcd2:	39 81       	ldd	r19, Y+1	; 0x01
    bcd4:	4a 81       	ldd	r20, Y+2	; 0x02
    bcd6:	5b 81       	ldd	r21, Y+3	; 0x03
    bcd8:	c5 57       	subi	r28, 0x75	; 117
    bcda:	d2 40       	sbci	r29, 0x02	; 2
    bcdc:	cf 57       	subi	r28, 0x7F	; 127
    bcde:	dd 4f       	sbci	r29, 0xFD	; 253
    bce0:	68 81       	ld	r22, Y
    bce2:	79 81       	ldd	r23, Y+1	; 0x01
    bce4:	8a 81       	ldd	r24, Y+2	; 0x02
    bce6:	9b 81       	ldd	r25, Y+3	; 0x03
    bce8:	c1 58       	subi	r28, 0x81	; 129
    bcea:	d2 40       	sbci	r29, 0x02	; 2
    bcec:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    bcf0:	87 ff       	sbrs	r24, 7
    bcf2:	1c c1       	rjmp	.+568    	; 0xbf2c <temp_comp_interpolation(float)+0x70a>
				a = (s[i + 1] - s[i]) / (6 * h[i]);
    bcf4:	d1 01       	movw	r26, r2
    bcf6:	14 96       	adiw	r26, 0x04	; 4
    bcf8:	8d 90       	ld	r8, X+
    bcfa:	9d 90       	ld	r9, X+
    bcfc:	ad 90       	ld	r10, X+
    bcfe:	bc 90       	ld	r11, X
    bd00:	17 97       	sbiw	r26, 0x07	; 7
    bd02:	8d 91       	ld	r24, X+
    bd04:	9d 91       	ld	r25, X+
    bd06:	0d 90       	ld	r0, X+
    bd08:	bc 91       	ld	r27, X
    bd0a:	a0 2d       	mov	r26, r0
    bd0c:	cf 58       	subi	r28, 0x8F	; 143
    bd0e:	dd 4f       	sbci	r29, 0xFD	; 253
    bd10:	88 83       	st	Y, r24
    bd12:	99 83       	std	Y+1, r25	; 0x01
    bd14:	aa 83       	std	Y+2, r26	; 0x02
    bd16:	bb 83       	std	Y+3, r27	; 0x03
    bd18:	c1 57       	subi	r28, 0x71	; 113
    bd1a:	d2 40       	sbci	r29, 0x02	; 2
    bd1c:	f8 01       	movw	r30, r16
    bd1e:	ee 0f       	add	r30, r30
    bd20:	ff 1f       	adc	r31, r31
    bd22:	ee 0f       	add	r30, r30
    bd24:	ff 1f       	adc	r31, r31
    bd26:	21 e9       	ldi	r18, 0x91	; 145
    bd28:	31 e0       	ldi	r19, 0x01	; 1
    bd2a:	2c 0f       	add	r18, r28
    bd2c:	3d 1f       	adc	r19, r29
    bd2e:	e2 0f       	add	r30, r18
    bd30:	f3 1f       	adc	r31, r19
    bd32:	40 80       	ld	r4, Z
    bd34:	51 80       	ldd	r5, Z+1	; 0x01
    bd36:	62 80       	ldd	r6, Z+2	; 0x02
    bd38:	73 80       	ldd	r7, Z+3	; 0x03
				b = s[i] / 2;
				c = (f[i + 1] - f[i]) / h[i] - (2 * h[i] * s[i] + s[i + 1] * h[i]) / 6;
    bd3a:	c3 59       	subi	r28, 0x93	; 147
    bd3c:	dd 4f       	sbci	r29, 0xFD	; 253
    bd3e:	a8 81       	ld	r26, Y
    bd40:	b9 81       	ldd	r27, Y+1	; 0x01
    bd42:	cd 56       	subi	r28, 0x6D	; 109
    bd44:	d2 40       	sbci	r29, 0x02	; 2
    bd46:	8d 91       	ld	r24, X+
    bd48:	9d 91       	ld	r25, X+
    bd4a:	0d 90       	ld	r0, X+
    bd4c:	bc 91       	ld	r27, X
    bd4e:	a0 2d       	mov	r26, r0
    bd50:	c3 58       	subi	r28, 0x83	; 131
    bd52:	dd 4f       	sbci	r29, 0xFD	; 253
    bd54:	88 83       	st	Y, r24
    bd56:	99 83       	std	Y+1, r25	; 0x01
    bd58:	aa 83       	std	Y+2, r26	; 0x02
    bd5a:	bb 83       	std	Y+3, r27	; 0x03
    bd5c:	cd 57       	subi	r28, 0x7D	; 125
    bd5e:	d2 40       	sbci	r29, 0x02	; 2
				d = f[i];
				sum = a*pow((inp_temperature - x[i]), 3) + b*pow((inp_temperature - x[i]), 2) + c*(inp_temperature - x[i]) + d;
    bd60:	a7 01       	movw	r20, r14
    bd62:	96 01       	movw	r18, r12
    bd64:	cb 58       	subi	r28, 0x8B	; 139
    bd66:	dd 4f       	sbci	r29, 0xFD	; 253
    bd68:	68 81       	ld	r22, Y
    bd6a:	79 81       	ldd	r23, Y+1	; 0x01
    bd6c:	8a 81       	ldd	r24, Y+2	; 0x02
    bd6e:	9b 81       	ldd	r25, Y+3	; 0x03
    bd70:	c5 57       	subi	r28, 0x75	; 117
    bd72:	d2 40       	sbci	r29, 0x02	; 2
    bd74:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    bd78:	6b 01       	movw	r12, r22
    bd7a:	7c 01       	movw	r14, r24
    bd7c:	20 e0       	ldi	r18, 0x00	; 0
    bd7e:	30 e0       	ldi	r19, 0x00	; 0
    bd80:	40 e4       	ldi	r20, 0x40	; 64
    bd82:	50 e4       	ldi	r21, 0x40	; 64
    bd84:	0f 94 f3 e0 	call	0x3c1e6	; 0x3c1e6 <pow>
    bd88:	cb 57       	subi	r28, 0x7B	; 123
    bd8a:	dd 4f       	sbci	r29, 0xFD	; 253
    bd8c:	68 83       	st	Y, r22
    bd8e:	79 83       	std	Y+1, r23	; 0x01
    bd90:	8a 83       	std	Y+2, r24	; 0x02
    bd92:	9b 83       	std	Y+3, r25	; 0x03
    bd94:	c5 58       	subi	r28, 0x85	; 133
    bd96:	d2 40       	sbci	r29, 0x02	; 2

		for (i = 0; i<n - 1; i++)
			if ((x[i] <= inp_temperature && inp_temperature <= x[i + 1]) || (i == n-2 && inp_temperature > x[i + 1])) {
				a = (s[i + 1] - s[i]) / (6 * h[i]);
				b = s[i] / 2;
				c = (f[i + 1] - f[i]) / h[i] - (2 * h[i] * s[i] + s[i + 1] * h[i]) / 6;
    bd98:	c3 58       	subi	r28, 0x83	; 131
    bd9a:	dd 4f       	sbci	r29, 0xFD	; 253
    bd9c:	28 81       	ld	r18, Y
    bd9e:	39 81       	ldd	r19, Y+1	; 0x01
    bda0:	4a 81       	ldd	r20, Y+2	; 0x02
    bda2:	5b 81       	ldd	r21, Y+3	; 0x03
    bda4:	cd 57       	subi	r28, 0x7D	; 125
    bda6:	d2 40       	sbci	r29, 0x02	; 2
    bda8:	c3 59       	subi	r28, 0x93	; 147
    bdaa:	dd 4f       	sbci	r29, 0xFD	; 253
    bdac:	e8 81       	ld	r30, Y
    bdae:	f9 81       	ldd	r31, Y+1	; 0x01
    bdb0:	cd 56       	subi	r28, 0x6D	; 109
    bdb2:	d2 40       	sbci	r29, 0x02	; 2
    bdb4:	64 81       	ldd	r22, Z+4	; 0x04
    bdb6:	75 81       	ldd	r23, Z+5	; 0x05
    bdb8:	86 81       	ldd	r24, Z+6	; 0x06
    bdba:	97 81       	ldd	r25, Z+7	; 0x07
    bdbc:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    bdc0:	a3 01       	movw	r20, r6
    bdc2:	92 01       	movw	r18, r4
    bdc4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    bdc8:	c7 58       	subi	r28, 0x87	; 135
    bdca:	dd 4f       	sbci	r29, 0xFD	; 253
    bdcc:	68 83       	st	Y, r22
    bdce:	79 83       	std	Y+1, r23	; 0x01
    bdd0:	8a 83       	std	Y+2, r24	; 0x02
    bdd2:	9b 83       	std	Y+3, r25	; 0x03
    bdd4:	c9 57       	subi	r28, 0x79	; 121
    bdd6:	d2 40       	sbci	r29, 0x02	; 2
    bdd8:	a3 01       	movw	r20, r6
    bdda:	92 01       	movw	r18, r4
    bddc:	c3 01       	movw	r24, r6
    bdde:	b2 01       	movw	r22, r4
    bde0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    bde4:	cf 58       	subi	r28, 0x8F	; 143
    bde6:	dd 4f       	sbci	r29, 0xFD	; 253
    bde8:	28 81       	ld	r18, Y
    bdea:	39 81       	ldd	r19, Y+1	; 0x01
    bdec:	4a 81       	ldd	r20, Y+2	; 0x02
    bdee:	5b 81       	ldd	r21, Y+3	; 0x03
    bdf0:	c1 57       	subi	r28, 0x71	; 113
    bdf2:	d2 40       	sbci	r29, 0x02	; 2
    bdf4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bdf8:	c7 57       	subi	r28, 0x77	; 119
    bdfa:	dd 4f       	sbci	r29, 0xFD	; 253
    bdfc:	68 83       	st	Y, r22
    bdfe:	79 83       	std	Y+1, r23	; 0x01
    be00:	8a 83       	std	Y+2, r24	; 0x02
    be02:	9b 83       	std	Y+3, r25	; 0x03
    be04:	c9 58       	subi	r28, 0x89	; 137
    be06:	d2 40       	sbci	r29, 0x02	; 2
    be08:	a3 01       	movw	r20, r6
    be0a:	92 01       	movw	r18, r4
    be0c:	c5 01       	movw	r24, r10
    be0e:	b4 01       	movw	r22, r8
    be10:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    be14:	9b 01       	movw	r18, r22
    be16:	ac 01       	movw	r20, r24
    be18:	c7 57       	subi	r28, 0x77	; 119
    be1a:	dd 4f       	sbci	r29, 0xFD	; 253
    be1c:	68 81       	ld	r22, Y
    be1e:	79 81       	ldd	r23, Y+1	; 0x01
    be20:	8a 81       	ldd	r24, Y+2	; 0x02
    be22:	9b 81       	ldd	r25, Y+3	; 0x03
    be24:	c9 58       	subi	r28, 0x89	; 137
    be26:	d2 40       	sbci	r29, 0x02	; 2
    be28:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    be2c:	20 e0       	ldi	r18, 0x00	; 0
    be2e:	30 e0       	ldi	r19, 0x00	; 0
    be30:	40 ec       	ldi	r20, 0xC0	; 192
    be32:	50 e4       	ldi	r21, 0x40	; 64
    be34:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    be38:	9b 01       	movw	r18, r22
    be3a:	ac 01       	movw	r20, r24
    be3c:	c7 58       	subi	r28, 0x87	; 135
    be3e:	dd 4f       	sbci	r29, 0xFD	; 253
    be40:	68 81       	ld	r22, Y
    be42:	79 81       	ldd	r23, Y+1	; 0x01
    be44:	8a 81       	ldd	r24, Y+2	; 0x02
    be46:	9b 81       	ldd	r25, Y+3	; 0x03
    be48:	c9 57       	subi	r28, 0x79	; 121
    be4a:	d2 40       	sbci	r29, 0x02	; 2
    be4c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
				d = f[i];
				sum = a*pow((inp_temperature - x[i]), 3) + b*pow((inp_temperature - x[i]), 2) + c*(inp_temperature - x[i]) + d;
    be50:	a7 01       	movw	r20, r14
    be52:	96 01       	movw	r18, r12
    be54:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    be58:	c7 58       	subi	r28, 0x87	; 135
    be5a:	dd 4f       	sbci	r29, 0xFD	; 253
    be5c:	68 83       	st	Y, r22
    be5e:	79 83       	std	Y+1, r23	; 0x01
    be60:	8a 83       	std	Y+2, r24	; 0x02
    be62:	9b 83       	std	Y+3, r25	; 0x03
    be64:	c9 57       	subi	r28, 0x79	; 121
    be66:	d2 40       	sbci	r29, 0x02	; 2
		s[i] = (m[i][n - 1] - sum) / m[i][i];
	}

		for (i = 0; i<n - 1; i++)
			if ((x[i] <= inp_temperature && inp_temperature <= x[i + 1]) || (i == n-2 && inp_temperature > x[i + 1])) {
				a = (s[i + 1] - s[i]) / (6 * h[i]);
    be68:	cf 58       	subi	r28, 0x8F	; 143
    be6a:	dd 4f       	sbci	r29, 0xFD	; 253
    be6c:	28 81       	ld	r18, Y
    be6e:	39 81       	ldd	r19, Y+1	; 0x01
    be70:	4a 81       	ldd	r20, Y+2	; 0x02
    be72:	5b 81       	ldd	r21, Y+3	; 0x03
    be74:	c1 57       	subi	r28, 0x71	; 113
    be76:	d2 40       	sbci	r29, 0x02	; 2
    be78:	c5 01       	movw	r24, r10
    be7a:	b4 01       	movw	r22, r8
    be7c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    be80:	4b 01       	movw	r8, r22
    be82:	5c 01       	movw	r10, r24
    be84:	20 e0       	ldi	r18, 0x00	; 0
    be86:	30 e0       	ldi	r19, 0x00	; 0
    be88:	40 ec       	ldi	r20, 0xC0	; 192
    be8a:	50 e4       	ldi	r21, 0x40	; 64
    be8c:	c3 01       	movw	r24, r6
    be8e:	b2 01       	movw	r22, r4
    be90:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    be94:	9b 01       	movw	r18, r22
    be96:	ac 01       	movw	r20, r24
    be98:	c5 01       	movw	r24, r10
    be9a:	b4 01       	movw	r22, r8
    be9c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
				b = s[i] / 2;
				c = (f[i + 1] - f[i]) / h[i] - (2 * h[i] * s[i] + s[i + 1] * h[i]) / 6;
				d = f[i];
				sum = a*pow((inp_temperature - x[i]), 3) + b*pow((inp_temperature - x[i]), 2) + c*(inp_temperature - x[i]) + d;
    bea0:	cb 57       	subi	r28, 0x7B	; 123
    bea2:	dd 4f       	sbci	r29, 0xFD	; 253
    bea4:	28 81       	ld	r18, Y
    bea6:	39 81       	ldd	r19, Y+1	; 0x01
    bea8:	4a 81       	ldd	r20, Y+2	; 0x02
    beaa:	5b 81       	ldd	r21, Y+3	; 0x03
    beac:	c5 58       	subi	r28, 0x85	; 133
    beae:	d2 40       	sbci	r29, 0x02	; 2
    beb0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    beb4:	4b 01       	movw	r8, r22
    beb6:	5c 01       	movw	r10, r24
	}

		for (i = 0; i<n - 1; i++)
			if ((x[i] <= inp_temperature && inp_temperature <= x[i + 1]) || (i == n-2 && inp_temperature > x[i + 1])) {
				a = (s[i + 1] - s[i]) / (6 * h[i]);
				b = s[i] / 2;
    beb8:	20 e0       	ldi	r18, 0x00	; 0
    beba:	30 e0       	ldi	r19, 0x00	; 0
    bebc:	40 e0       	ldi	r20, 0x00	; 0
    bebe:	5f e3       	ldi	r21, 0x3F	; 63
    bec0:	cf 58       	subi	r28, 0x8F	; 143
    bec2:	dd 4f       	sbci	r29, 0xFD	; 253
    bec4:	68 81       	ld	r22, Y
    bec6:	79 81       	ldd	r23, Y+1	; 0x01
    bec8:	8a 81       	ldd	r24, Y+2	; 0x02
    beca:	9b 81       	ldd	r25, Y+3	; 0x03
    becc:	c1 57       	subi	r28, 0x71	; 113
    bece:	d2 40       	sbci	r29, 0x02	; 2
    bed0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bed4:	2b 01       	movw	r4, r22
    bed6:	3c 01       	movw	r6, r24
				c = (f[i + 1] - f[i]) / h[i] - (2 * h[i] * s[i] + s[i + 1] * h[i]) / 6;
				d = f[i];
				sum = a*pow((inp_temperature - x[i]), 3) + b*pow((inp_temperature - x[i]), 2) + c*(inp_temperature - x[i]) + d;
    bed8:	a7 01       	movw	r20, r14
    beda:	96 01       	movw	r18, r12
    bedc:	c7 01       	movw	r24, r14
    bede:	b6 01       	movw	r22, r12
    bee0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bee4:	9b 01       	movw	r18, r22
    bee6:	ac 01       	movw	r20, r24
    bee8:	c3 01       	movw	r24, r6
    beea:	b2 01       	movw	r22, r4
    beec:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    bef0:	9b 01       	movw	r18, r22
    bef2:	ac 01       	movw	r20, r24
    bef4:	c5 01       	movw	r24, r10
    bef6:	b4 01       	movw	r22, r8
    bef8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    befc:	9b 01       	movw	r18, r22
    befe:	ac 01       	movw	r20, r24
    bf00:	c7 58       	subi	r28, 0x87	; 135
    bf02:	dd 4f       	sbci	r29, 0xFD	; 253
    bf04:	68 81       	ld	r22, Y
    bf06:	79 81       	ldd	r23, Y+1	; 0x01
    bf08:	8a 81       	ldd	r24, Y+2	; 0x02
    bf0a:	9b 81       	ldd	r25, Y+3	; 0x03
    bf0c:	c9 57       	subi	r28, 0x79	; 121
    bf0e:	d2 40       	sbci	r29, 0x02	; 2
    bf10:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    bf14:	c3 58       	subi	r28, 0x83	; 131
    bf16:	dd 4f       	sbci	r29, 0xFD	; 253
    bf18:	28 81       	ld	r18, Y
    bf1a:	39 81       	ldd	r19, Y+1	; 0x01
    bf1c:	4a 81       	ldd	r20, Y+2	; 0x02
    bf1e:	5b 81       	ldd	r21, Y+3	; 0x03
    bf20:	cd 57       	subi	r28, 0x7D	; 125
    bf22:	d2 40       	sbci	r29, 0x02	; 2
    bf24:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    bf28:	2b 01       	movw	r4, r22
    bf2a:	3c 01       	movw	r6, r24
    bf2c:	0f 5f       	subi	r16, 0xFF	; 255
    bf2e:	1f 4f       	sbci	r17, 0xFF	; 255
    bf30:	f4 e0       	ldi	r31, 0x04	; 4
    bf32:	2f 0e       	add	r2, r31
    bf34:	31 1c       	adc	r3, r1
    bf36:	c3 59       	subi	r28, 0x93	; 147
    bf38:	dd 4f       	sbci	r29, 0xFD	; 253
    bf3a:	28 81       	ld	r18, Y
    bf3c:	39 81       	ldd	r19, Y+1	; 0x01
    bf3e:	cd 56       	subi	r28, 0x6D	; 109
    bf40:	d2 40       	sbci	r29, 0x02	; 2
    bf42:	2c 5f       	subi	r18, 0xFC	; 252
    bf44:	3f 4f       	sbci	r19, 0xFF	; 255
    bf46:	c3 59       	subi	r28, 0x93	; 147
    bf48:	dd 4f       	sbci	r29, 0xFD	; 253
    bf4a:	39 83       	std	Y+1, r19	; 0x01
    bf4c:	28 83       	st	Y, r18
    bf4e:	cd 56       	subi	r28, 0x6D	; 109
    bf50:	d2 40       	sbci	r29, 0x02	; 2
		for (j = i; j <= n - 2; j++)
			sum += m[i][j] * s[j];
		s[i] = (m[i][n - 1] - sum) / m[i][i];
	}

		for (i = 0; i<n - 1; i++)
    bf52:	05 30       	cpi	r16, 0x05	; 5
    bf54:	11 05       	cpc	r17, r1
    bf56:	09 f0       	breq	.+2      	; 0xbf5a <temp_comp_interpolation(float)+0x738>
    bf58:	81 ce       	rjmp	.-766    	; 0xbc5c <temp_comp_interpolation(float)+0x43a>
				sum = a*pow((inp_temperature - x[i]), 3) + b*pow((inp_temperature - x[i]), 2) + c*(inp_temperature - x[i]) + d;
			}

		return sum;

}
    bf5a:	c3 01       	movw	r24, r6
    bf5c:	b2 01       	movw	r22, r4
    bf5e:	c4 57       	subi	r28, 0x74	; 116
    bf60:	dd 4f       	sbci	r29, 0xFD	; 253
    bf62:	0f b6       	in	r0, 0x3f	; 63
    bf64:	f8 94       	cli
    bf66:	de bf       	out	0x3e, r29	; 62
    bf68:	0f be       	out	0x3f, r0	; 63
    bf6a:	cd bf       	out	0x3d, r28	; 61
    bf6c:	df 91       	pop	r29
    bf6e:	cf 91       	pop	r28
    bf70:	1f 91       	pop	r17
    bf72:	0f 91       	pop	r16
    bf74:	ff 90       	pop	r15
    bf76:	ef 90       	pop	r14
    bf78:	df 90       	pop	r13
    bf7a:	cf 90       	pop	r12
    bf7c:	bf 90       	pop	r11
    bf7e:	af 90       	pop	r10
    bf80:	9f 90       	pop	r9
    bf82:	8f 90       	pop	r8
    bf84:	7f 90       	pop	r7
    bf86:	6f 90       	pop	r6
    bf88:	5f 90       	pop	r5
    bf8a:	4f 90       	pop	r4
    bf8c:	3f 90       	pop	r3
    bf8e:	2f 90       	pop	r2
    bf90:	08 95       	ret

	shift[0] = 0;
	for (i = 0; i < n; i++) {
		if (i > 0) {
			//read shift in steps from EEPROM
			shift[i] = eeprom_read_word((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + (i - 1));
    bf92:	c5 01       	movw	r24, r10
    bf94:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    bf98:	d8 01       	movw	r26, r16
    bf9a:	8d 93       	st	X+, r24
    bf9c:	9c 93       	st	X, r25
    bf9e:	b5 e0       	ldi	r27, 0x05	; 5
    bfa0:	cb 0e       	add	r12, r27
    bfa2:	d1 1c       	adc	r13, r1
    bfa4:	e2 e0       	ldi	r30, 0x02	; 2
    bfa6:	ae 0e       	add	r10, r30
    bfa8:	b1 1c       	adc	r11, r1
    bfaa:	96 cc       	rjmp	.-1748   	; 0xb8d8 <temp_comp_interpolation(float)+0xb6>

0000bfac <gcodes_M704_M705_M706(unsigned int)>:
    eFilamentAction = FilamentAction::None;
}

// Common gcode shared by the gcodes. This saves some flash memory
static void gcodes_M704_M705_M706(uint16_t gcode)
{
    bfac:	0f 93       	push	r16
    bfae:	1f 93       	push	r17
    bfb0:	cf 93       	push	r28
    uint8_t mmuSlotIndex = 0xffU;
    if (MMU2::mmu2.Enabled() && code_seen('P'))
    bfb2:	20 91 ba 13 	lds	r18, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
    bfb6:	21 30       	cpi	r18, 0x01	; 1
    bfb8:	79 f5       	brne	.+94     	; 0xc018 <gcodes_M704_M705_M706(unsigned int)+0x6c>
    bfba:	8c 01       	movw	r16, r24
    bfbc:	80 e5       	ldi	r24, 0x50	; 80
    bfbe:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    bfc2:	88 23       	and	r24, r24
    bfc4:	49 f1       	breq	.+82     	; 0xc018 <gcodes_M704_M705_M706(unsigned int)+0x6c>
    {
        mmuSlotIndex = code_value_uint8();
    bfc6:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
    bfca:	c8 2f       	mov	r28, r24
        if (mmuSlotIndex < MMU_FILAMENT_COUNT) {
    bfcc:	85 30       	cpi	r24, 0x05	; 5
    bfce:	20 f5       	brcc	.+72     	; 0xc018 <gcodes_M704_M705_M706(unsigned int)+0x6c>
            switch (gcode)
    bfd0:	01 3c       	cpi	r16, 0xC1	; 193
    bfd2:	82 e0       	ldi	r24, 0x02	; 2
    bfd4:	18 07       	cpc	r17, r24
    bfd6:	49 f0       	breq	.+18     	; 0xbfea <gcodes_M704_M705_M706(unsigned int)+0x3e>
    bfd8:	02 3c       	cpi	r16, 0xC2	; 194
    bfda:	12 40       	sbci	r17, 0x02	; 2
    bfdc:	69 f0       	breq	.+26     	; 0xbff8 <gcodes_M704_M705_M706(unsigned int)+0x4c>
            {
            case 704:
                MMU2::mmu2.load_filament(mmuSlotIndex);
    bfde:	8c 2f       	mov	r24, r28
            default:
                break;
            }
        }
    }
}
    bfe0:	cf 91       	pop	r28
    bfe2:	1f 91       	pop	r17
    bfe4:	0f 91       	pop	r16
        mmuSlotIndex = code_value_uint8();
        if (mmuSlotIndex < MMU_FILAMENT_COUNT) {
            switch (gcode)
            {
            case 704:
                MMU2::mmu2.load_filament(mmuSlotIndex);
    bfe6:	0d 94 94 ad 	jmp	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>
                break;
            case 705:
                MMU2::mmu2.eject_filament(mmuSlotIndex, false);
    bfea:	60 e0       	ldi	r22, 0x00	; 0
    bfec:	8c 2f       	mov	r24, r28
            default:
                break;
            }
        }
    }
}
    bfee:	cf 91       	pop	r28
    bff0:	1f 91       	pop	r17
    bff2:	0f 91       	pop	r16
            {
            case 704:
                MMU2::mmu2.load_filament(mmuSlotIndex);
                break;
            case 705:
                MMU2::mmu2.eject_filament(mmuSlotIndex, false);
    bff4:	0d 94 d7 ad 	jmp	0x35bae	; 0x35bae <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]>
                break;
            case 706:
#ifdef MMU_HAS_CUTTER
                if (eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) != 0){
    bff8:	8e ec       	ldi	r24, 0xCE	; 206
    bffa:	9e e0       	ldi	r25, 0x0E	; 14
    bffc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    c000:	88 23       	and	r24, r24
    c002:	51 f0       	breq	.+20     	; 0xc018 <gcodes_M704_M705_M706(unsigned int)+0x6c>
        IncrementMMUFails();
    }
}

bool MMU2::cut_filament(uint8_t slot, bool enableFullScreenMsg /*= true*/) {
    if (!WaitForMMUReady()) {
    c004:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
    c008:	88 23       	and	r24, r24
    c00a:	31 f0       	breq	.+12     	; 0xc018 <gcodes_M704_M705_M706(unsigned int)+0x6c>
    c00c:	8c 2f       	mov	r24, r28
            default:
                break;
            }
        }
    }
}
    c00e:	cf 91       	pop	r28
    c010:	1f 91       	pop	r17
    c012:	0f 91       	pop	r16
    c014:	0d 94 54 ae 	jmp	0x35ca8	; 0x35ca8 <MMU2::MMU2::cut_filament(unsigned char, bool) [clone .part.39] [clone .constprop.117]>
    c018:	cf 91       	pop	r28
    c01a:	1f 91       	pop	r17
    c01c:	0f 91       	pop	r16
    c01e:	08 95       	ret

0000c020 <change_power_mode_live(unsigned char)>:


#ifdef TMC2130

void change_power_mode_live(uint8_t mode)
{
    c020:	cf 93       	push	r28
    c022:	c8 2f       	mov	r28, r24
  // Wait for the planner queue to drain and for the stepper timer routine to reach an idle state.
		st_synchronize();
    c024:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
		cli();
    c028:	f8 94       	cli
		tmc2130_mode = mode;
    c02a:	c0 93 8c 06 	sts	0x068C, r28	; 0x80068c <tmc2130_mode>
		update_mode_profile();
    c02e:	0f 94 e3 64 	call	0x2c9c6	; 0x2c9c6 <update_mode_profile()>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
    c032:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
        1
#else
        0
#endif
        )
        , enableECool(enableECool) { }
    c036:	88 0f       	add	r24, r24
		tmc2130_init(TMCInitParams(FarmOrUserECool()));
    c038:	82 70       	andi	r24, 0x02	; 2
    c03a:	0f 94 6c 27 	call	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>
    // We may have missed a stepper timer interrupt due to the time spent in the tmc2130_init() routine.
    // Be safe than sorry, reset the stepper timer before re-enabling interrupts.
    st_reset_timer();
    c03e:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
		sei();
    c042:	78 94       	sei
}
    c044:	cf 91       	pop	r28
    c046:	08 95       	ret

0000c048 <code_value() [clone .lto_priv.547]>:
static inline bool    code_seen_P(const char *code_PROGMEM) { return (strchr_pointer = strstr_P(CMDBUFFER_CURRENT_STRING, code_PROGMEM)) != NULL; }
static inline float   code_value()      { return strtod_noE(strchr_pointer+1, NULL);}
    c048:	8f 92       	push	r8
    c04a:	9f 92       	push	r9
    c04c:	af 92       	push	r10
    c04e:	bf 92       	push	r11
    c050:	cf 92       	push	r12
    c052:	df 92       	push	r13
    c054:	ef 92       	push	r14
    c056:	ff 92       	push	r15
    c058:	0f 93       	push	r16
    c05a:	1f 93       	push	r17
    c05c:	cf 93       	push	r28
    c05e:	df 93       	push	r29
    c060:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
    c064:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
    c068:	0f 5f       	subi	r16, 0xFF	; 255
    c06a:	1f 4f       	sbci	r17, 0xFF	; 255

	if (endptr)
		*endptr = (char*)nptr;

	do {
		c = *nptr++;
    c06c:	68 01       	movw	r12, r16
    c06e:	8f ef       	ldi	r24, 0xFF	; 255
    c070:	c8 1a       	sub	r12, r24
    c072:	d8 0a       	sbc	r13, r24
    c074:	d8 01       	movw	r26, r16
    c076:	dc 91       	ld	r29, X
	} while (isspace(c));
    c078:	8d 2f       	mov	r24, r29
    c07a:	90 e0       	ldi	r25, 0x00	; 0
    c07c:	0f 94 ec d9 	call	0x3b3d8	; 0x3b3d8 <isspace>
    c080:	7c 01       	movw	r14, r24
    c082:	89 2b       	or	r24, r25
    c084:	01 f5       	brne	.+64     	; 0xc0c6 <code_value() [clone .lto_priv.547]+0x7e>

	flag = 0;
	if (c == '-') {
    c086:	dd 32       	cpi	r29, 0x2D	; 45
    c088:	01 f5       	brne	.+64     	; 0xc0ca <code_value() [clone .lto_priv.547]+0x82>
		flag = FL_MINUS;
		c = *nptr++;
    c08a:	68 01       	movw	r12, r16
    c08c:	b2 e0       	ldi	r27, 0x02	; 2
    c08e:	cb 0e       	add	r12, r27
    c090:	d1 1c       	adc	r13, r1
    c092:	f8 01       	movw	r30, r16
    c094:	d1 81       	ldd	r29, Z+1	; 0x01
		c = *nptr++;
	} while (isspace(c));

	flag = 0;
	if (c == '-') {
		flag = FL_MINUS;
    c096:	c1 e0       	ldi	r28, 0x01	; 1
	}
	else if (c == '+') {
		c = *nptr++;
	}

	if (!strncasecmp_P(nptr - 1, pstr_inf, 3)) {
    c098:	86 01       	movw	r16, r12
    c09a:	01 50       	subi	r16, 0x01	; 1
    c09c:	11 09       	sbc	r17, r1
    c09e:	43 e0       	ldi	r20, 0x03	; 3
    c0a0:	50 e0       	ldi	r21, 0x00	; 0
    c0a2:	65 ef       	ldi	r22, 0xF5	; 245
    c0a4:	7a e7       	ldi	r23, 0x7A	; 122
    c0a6:	c8 01       	movw	r24, r16
    c0a8:	0f 94 22 da 	call	0x3b444	; 0x3b444 <strncasecmp_P>
    c0ac:	89 2b       	or	r24, r25
    c0ae:	c1 f4       	brne	.+48     	; 0xc0e0 <code_value() [clone .lto_priv.547]+0x98>
		nptr += 2;
		if (!strncasecmp_P(nptr, pstr_inity, 5))
			nptr += 5;
		if (endptr)
			*endptr = (char*)nptr;
		return flag & FL_MINUS ? -INFINITY : +INFINITY;
    c0b0:	60 e0       	ldi	r22, 0x00	; 0
    c0b2:	70 e0       	ldi	r23, 0x00	; 0
    c0b4:	80 e8       	ldi	r24, 0x80	; 128
    c0b6:	9f ef       	ldi	r25, 0xFF	; 255
    c0b8:	c1 11       	cpse	r28, r1
    c0ba:	db c0       	rjmp	.+438    	; 0xc272 <code_value() [clone .lto_priv.547]+0x22a>
    c0bc:	60 e0       	ldi	r22, 0x00	; 0
    c0be:	70 e0       	ldi	r23, 0x00	; 0
    c0c0:	80 e8       	ldi	r24, 0x80	; 128
    c0c2:	9f e7       	ldi	r25, 0x7F	; 127
    c0c4:	d6 c0       	rjmp	.+428    	; 0xc272 <code_value() [clone .lto_priv.547]+0x22a>

	if (endptr)
		*endptr = (char*)nptr;

	do {
		c = *nptr++;
    c0c6:	86 01       	movw	r16, r12
    c0c8:	d1 cf       	rjmp	.-94     	; 0xc06c <code_value() [clone .lto_priv.547]+0x24>
	flag = 0;
	if (c == '-') {
		flag = FL_MINUS;
		c = *nptr++;
	}
	else if (c == '+') {
    c0ca:	db 32       	cpi	r29, 0x2B	; 43
    c0cc:	39 f4       	brne	.+14     	; 0xc0dc <code_value() [clone .lto_priv.547]+0x94>
		c = *nptr++;
    c0ce:	68 01       	movw	r12, r16
    c0d0:	f2 e0       	ldi	r31, 0x02	; 2
    c0d2:	cf 0e       	add	r12, r31
    c0d4:	d1 1c       	adc	r13, r1
    c0d6:	d8 01       	movw	r26, r16
    c0d8:	11 96       	adiw	r26, 0x01	; 1
    c0da:	dc 91       	ld	r29, X

	do {
		c = *nptr++;
	} while (isspace(c));

	flag = 0;
    c0dc:	c0 e0       	ldi	r28, 0x00	; 0
    c0de:	dc cf       	rjmp	.-72     	; 0xc098 <code_value() [clone .lto_priv.547]+0x50>
		return flag & FL_MINUS ? -INFINITY : +INFINITY;
	}

	/* NAN() construction is not realised.
	   Length would be 3 characters only.	*/
	if (!strncasecmp_P(nptr - 1, pstr_nan, 3)) {
    c0e0:	43 e0       	ldi	r20, 0x03	; 3
    c0e2:	50 e0       	ldi	r21, 0x00	; 0
    c0e4:	62 ef       	ldi	r22, 0xF2	; 242
    c0e6:	7a e7       	ldi	r23, 0x7A	; 122
    c0e8:	c8 01       	movw	r24, r16
    c0ea:	0f 94 22 da 	call	0x3b444	; 0x3b444 <strncasecmp_P>
    c0ee:	89 2b       	or	r24, r25
    c0f0:	09 f4       	brne	.+2      	; 0xc0f4 <code_value() [clone .lto_priv.547]+0xac>
    c0f2:	cc c0       	rjmp	.+408    	; 0xc28c <code_value() [clone .lto_priv.547]+0x244>
    c0f4:	f6 01       	movw	r30, r12
			*endptr = (char*)nptr + 2;
		return NAN;
	}

	x.u32 = 0;
	exp = 0;
    c0f6:	10 e0       	ldi	r17, 0x00	; 0
    c0f8:	00 e0       	ldi	r16, 0x00	; 0
		if (endptr)
			*endptr = (char*)nptr + 2;
		return NAN;
	}

	x.u32 = 0;
    c0fa:	20 e0       	ldi	r18, 0x00	; 0
    c0fc:	30 e0       	ldi	r19, 0x00	; 0
    c0fe:	a9 01       	movw	r20, r18
    c100:	6f 01       	movw	r12, r30
	exp = 0;
	while (1) {

		c -= '0';
    c102:	d0 53       	subi	r29, 0x30	; 48

		if (c <= 9) {
    c104:	da 30       	cpi	r29, 0x0A	; 10
    c106:	60 f5       	brcc	.+88     	; 0xc160 <code_value() [clone .lto_priv.547]+0x118>
			flag |= FL_ANY;
    c108:	bc 2e       	mov	r11, r28
    c10a:	68 94       	set
    c10c:	b1 f8       	bld	r11, 1
    c10e:	8c 2f       	mov	r24, r28
    c110:	88 70       	andi	r24, 0x08	; 8
			if (flag & FL_OVFL) {
    c112:	c2 ff       	sbrs	r28, 2
    c114:	09 c0       	rjmp	.+18     	; 0xc128 <code_value() [clone .lto_priv.547]+0xe0>
				if (!(flag & FL_DOT))
    c116:	81 11       	cpse	r24, r1
    c118:	02 c0       	rjmp	.+4      	; 0xc11e <code_value() [clone .lto_priv.547]+0xd6>
					exp += 1;
    c11a:	0f 5f       	subi	r16, 0xFF	; 255
    c11c:	1f 4f       	sbci	r17, 0xFF	; 255
    c11e:	31 96       	adiw	r30, 0x01	; 1
			flag |= FL_DOT;
		}
		else {
			break;
		}
		c = *nptr++;
    c120:	d6 01       	movw	r26, r12
    c122:	dc 91       	ld	r29, X
    c124:	cb 2d       	mov	r28, r11
    c126:	ec cf       	rjmp	.-40     	; 0xc100 <code_value() [clone .lto_priv.547]+0xb8>
			if (flag & FL_OVFL) {
				if (!(flag & FL_DOT))
					exp += 1;
			}
			else {
				if (flag & FL_DOT)
    c128:	88 23       	and	r24, r24
    c12a:	11 f0       	breq	.+4      	; 0xc130 <code_value() [clone .lto_priv.547]+0xe8>
					exp -= 1;
    c12c:	01 50       	subi	r16, 0x01	; 1
    c12e:	11 09       	sbc	r17, r1
				/* x.u32 = x.u32 * 10 + c	*/
				x.u32 = (((x.u32 << 2) + x.u32) << 1) + c;
    c130:	a5 e0       	ldi	r26, 0x05	; 5
    c132:	b0 e0       	ldi	r27, 0x00	; 0
    c134:	0f 94 f0 dc 	call	0x3b9e0	; 0x3b9e0 <__muluhisi3>
    c138:	9b 01       	movw	r18, r22
    c13a:	ac 01       	movw	r20, r24
    c13c:	22 0f       	add	r18, r18
    c13e:	33 1f       	adc	r19, r19
    c140:	44 1f       	adc	r20, r20
    c142:	55 1f       	adc	r21, r21
    c144:	2d 0f       	add	r18, r29
    c146:	31 1d       	adc	r19, r1
    c148:	41 1d       	adc	r20, r1
    c14a:	51 1d       	adc	r21, r1
				if (x.u32 >= (ULONG_MAX - 9) / 10)
    c14c:	28 39       	cpi	r18, 0x98	; 152
    c14e:	b9 e9       	ldi	r27, 0x99	; 153
    c150:	3b 07       	cpc	r19, r27
    c152:	4b 07       	cpc	r20, r27
    c154:	b9 e1       	ldi	r27, 0x19	; 25
    c156:	5b 07       	cpc	r21, r27
    c158:	10 f3       	brcs	.-60     	; 0xc11e <code_value() [clone .lto_priv.547]+0xd6>
					flag |= FL_OVFL;
    c15a:	c6 60       	ori	r28, 0x06	; 6
    c15c:	bc 2e       	mov	r11, r28
    c15e:	df cf       	rjmp	.-66     	; 0xc11e <code_value() [clone .lto_priv.547]+0xd6>
			}

		}
		else if (c == (('.' - '0') & 0xff) && !(flag & FL_DOT)) {
    c160:	de 3f       	cpi	r29, 0xFE	; 254
    c162:	31 f4       	brne	.+12     	; 0xc170 <code_value() [clone .lto_priv.547]+0x128>
    c164:	c3 fd       	sbrc	r28, 3
    c166:	33 c0       	rjmp	.+102    	; 0xc1ce <code_value() [clone .lto_priv.547]+0x186>
			flag |= FL_DOT;
    c168:	bc 2e       	mov	r11, r28
    c16a:	68 94       	set
    c16c:	b3 f8       	bld	r11, 3
    c16e:	d7 cf       	rjmp	.-82     	; 0xc11e <code_value() [clone .lto_priv.547]+0xd6>
		}
		c = *nptr++;
	}

	// Check for exponent "E", but disable capital E
	if (c == (('e' - '0') & 0xff) /*|| c == (('E' - '0') & 0xff)*/)
    c170:	d5 33       	cpi	r29, 0x35	; 53
    c172:	69 f5       	brne	.+90     	; 0xc1ce <code_value() [clone .lto_priv.547]+0x186>
	{
		int i;
		c = *nptr++;
    c174:	80 81       	ld	r24, Z
		i = 2;
		if (c == '-') {
    c176:	8d 32       	cpi	r24, 0x2D	; 45
    c178:	31 f4       	brne	.+12     	; 0xc186 <code_value() [clone .lto_priv.547]+0x13e>
			flag |= FL_MEXP;
    c17a:	c0 61       	ori	r28, 0x10	; 16
			c = *nptr++;
    c17c:	bf 01       	movw	r22, r30
		}
		else if (c == '+') {
			c = *nptr++;
    c17e:	6e 5f       	subi	r22, 0xFE	; 254
    c180:	7f 4f       	sbci	r23, 0xFF	; 255
    c182:	81 81       	ldd	r24, Z+1	; 0x01
    c184:	05 c0       	rjmp	.+10     	; 0xc190 <code_value() [clone .lto_priv.547]+0x148>
    c186:	bf 01       	movw	r22, r30
		i = 2;
		if (c == '-') {
			flag |= FL_MEXP;
			c = *nptr++;
		}
		else if (c == '+') {
    c188:	8b 32       	cpi	r24, 0x2B	; 43
    c18a:	c9 f3       	breq	.-14     	; 0xc17e <code_value() [clone .lto_priv.547]+0x136>

	// Check for exponent "E", but disable capital E
	if (c == (('e' - '0') & 0xff) /*|| c == (('E' - '0') & 0xff)*/)
	{
		int i;
		c = *nptr++;
    c18c:	6f 5f       	subi	r22, 0xFF	; 255
    c18e:	7f 4f       	sbci	r23, 0xFF	; 255
			c = *nptr++;
		}
		else {
			i = 1;
		}
		c -= '0';
    c190:	80 53       	subi	r24, 0x30	; 48
		if (c > 9) {
    c192:	8a 30       	cpi	r24, 0x0A	; 10
    c194:	e0 f4       	brcc	.+56     	; 0xc1ce <code_value() [clone .lto_priv.547]+0x186>
    c196:	fb 01       	movw	r30, r22
			nptr -= i;
		}
		else {
			i = 0;
			do {
				if (i < 3200)
    c198:	b0 e8       	ldi	r27, 0x80	; 128
    c19a:	eb 16       	cp	r14, r27
    c19c:	bc e0       	ldi	r27, 0x0C	; 12
    c19e:	fb 06       	cpc	r15, r27
    c1a0:	5c f4       	brge	.+22     	; 0xc1b8 <code_value() [clone .lto_priv.547]+0x170>
					i = (((i << 2) + i) << 1) + c;	/* i = 10*i + c	*/
    c1a2:	b7 01       	movw	r22, r14
    c1a4:	66 0f       	add	r22, r22
    c1a6:	77 1f       	adc	r23, r23
    c1a8:	66 0f       	add	r22, r22
    c1aa:	77 1f       	adc	r23, r23
    c1ac:	e6 0e       	add	r14, r22
    c1ae:	f7 1e       	adc	r15, r23
    c1b0:	ee 0c       	add	r14, r14
    c1b2:	ff 1c       	adc	r15, r15
    c1b4:	e8 0e       	add	r14, r24
    c1b6:	f1 1c       	adc	r15, r1
				c = *nptr++ - '0';
    c1b8:	81 91       	ld	r24, Z+
    c1ba:	80 53       	subi	r24, 0x30	; 48
			} while (c <= 9);
    c1bc:	8a 30       	cpi	r24, 0x0A	; 10
    c1be:	60 f3       	brcs	.-40     	; 0xc198 <code_value() [clone .lto_priv.547]+0x150>
			if (flag & FL_MEXP)
    c1c0:	c4 ff       	sbrs	r28, 4
    c1c2:	03 c0       	rjmp	.+6      	; 0xc1ca <code_value() [clone .lto_priv.547]+0x182>
				i = -i;
    c1c4:	f1 94       	neg	r15
    c1c6:	e1 94       	neg	r14
    c1c8:	f1 08       	sbc	r15, r1
			exp += i;
    c1ca:	0e 0d       	add	r16, r14
    c1cc:	1f 1d       	adc	r17, r15
	}

	if ((flag & FL_ANY) && endptr)
		*endptr = (char*)nptr - 1;

	x.flt = __floatunsisf(x.u32);		/* manually	*/
    c1ce:	ca 01       	movw	r24, r20
    c1d0:	b9 01       	movw	r22, r18
    c1d2:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
	if ((flag & FL_MINUS) && (flag & FL_ANY))
    c1d6:	c3 70       	andi	r28, 0x03	; 3
    c1d8:	c3 30       	cpi	r28, 0x03	; 3
    c1da:	09 f4       	brne	.+2      	; 0xc1de <code_value() [clone .lto_priv.547]+0x196>
		x.flt = -x.flt;
    c1dc:	90 58       	subi	r25, 0x80	; 128
    c1de:	4b 01       	movw	r8, r22
    c1e0:	5c 01       	movw	r10, r24

	if (x.flt != 0) {
    c1e2:	20 e0       	ldi	r18, 0x00	; 0
    c1e4:	30 e0       	ldi	r19, 0x00	; 0
    c1e6:	a9 01       	movw	r20, r18
    c1e8:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    c1ec:	88 23       	and	r24, r24
    c1ee:	09 f4       	brne	.+2      	; 0xc1f2 <code_value() [clone .lto_priv.547]+0x1aa>
    c1f0:	3e c0       	rjmp	.+124    	; 0xc26e <code_value() [clone .lto_priv.547]+0x226>
		if (exp < 0) {
			nptr = (void*)(pwr_m10 + 5);
			exp = -exp;
		}
		else {
			nptr = (void*)(pwr_p10 + 5);
    c1f2:	ce ee       	ldi	r28, 0xEE	; 238
    c1f4:	da e7       	ldi	r29, 0x7A	; 122
	if ((flag & FL_MINUS) && (flag & FL_ANY))
		x.flt = -x.flt;

	if (x.flt != 0) {
		int pwr;
		if (exp < 0) {
    c1f6:	17 ff       	sbrs	r17, 7
    c1f8:	05 c0       	rjmp	.+10     	; 0xc204 <code_value() [clone .lto_priv.547]+0x1bc>
			nptr = (void*)(pwr_m10 + 5);
			exp = -exp;
    c1fa:	11 95       	neg	r17
    c1fc:	01 95       	neg	r16
    c1fe:	11 09       	sbc	r17, r1
		x.flt = -x.flt;

	if (x.flt != 0) {
		int pwr;
		if (exp < 0) {
			nptr = (void*)(pwr_m10 + 5);
    c200:	c6 ed       	ldi	r28, 0xD6	; 214
    c202:	da e7       	ldi	r29, 0x7A	; 122
    c204:	6e 01       	movw	r12, r28
    c206:	e8 e1       	ldi	r30, 0x18	; 24
    c208:	ce 1a       	sub	r12, r30
    c20a:	d1 08       	sbc	r13, r1
			exp = -exp;
		}
		else {
			nptr = (void*)(pwr_p10 + 5);
    c20c:	80 e2       	ldi	r24, 0x20	; 32
    c20e:	e8 2e       	mov	r14, r24
    c210:	f1 2c       	mov	r15, r1
    c212:	0d c0       	rjmp	.+26     	; 0xc22e <code_value() [clone .lto_priv.547]+0x1e6>
			for (; exp >= pwr; exp -= pwr) {
				union {
					unsigned long u32;
					float flt;
				} y;
				y.u32 = pgm_read_dword((float*)nptr);
    c214:	fe 01       	movw	r30, r28
    c216:	25 91       	lpm	r18, Z+
    c218:	35 91       	lpm	r19, Z+
    c21a:	45 91       	lpm	r20, Z+
    c21c:	54 91       	lpm	r21, Z
		}
		else {
			nptr = (void*)(pwr_p10 + 5);
		}
		for (pwr = 32; pwr; pwr >>= 1) {
			for (; exp >= pwr; exp -= pwr) {
    c21e:	0e 19       	sub	r16, r14
    c220:	1f 09       	sbc	r17, r15
				union {
					unsigned long u32;
					float flt;
				} y;
				y.u32 = pgm_read_dword((float*)nptr);
				x.flt *= y.flt;
    c222:	c5 01       	movw	r24, r10
    c224:	b4 01       	movw	r22, r8
    c226:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    c22a:	4b 01       	movw	r8, r22
    c22c:	5c 01       	movw	r10, r24
    c22e:	d5 01       	movw	r26, r10
    c230:	c4 01       	movw	r24, r8
		}
		else {
			nptr = (void*)(pwr_p10 + 5);
		}
		for (pwr = 32; pwr; pwr >>= 1) {
			for (; exp >= pwr; exp -= pwr) {
    c232:	0e 15       	cp	r16, r14
    c234:	1f 05       	cpc	r17, r15
    c236:	74 f7       	brge	.-36     	; 0xc214 <code_value() [clone .lto_priv.547]+0x1cc>
					float flt;
				} y;
				y.u32 = pgm_read_dword((float*)nptr);
				x.flt *= y.flt;
			}
			nptr -= sizeof(float);
    c238:	24 97       	sbiw	r28, 0x04	; 4
			exp = -exp;
		}
		else {
			nptr = (void*)(pwr_p10 + 5);
		}
		for (pwr = 32; pwr; pwr >>= 1) {
    c23a:	f5 94       	asr	r15
    c23c:	e7 94       	ror	r14
    c23e:	cc 16       	cp	r12, r28
    c240:	dd 06       	cpc	r13, r29
    c242:	a9 f7       	brne	.-22     	; 0xc22e <code_value() [clone .lto_priv.547]+0x1e6>
    not plus or minus infinity, and not NaN.
 */
__ATTR_CONST__ static inline int isfinite (double __x)
{
    unsigned char __exp;
    __asm__ (
    c244:	8a 2f       	mov	r24, r26
    c246:	88 0f       	add	r24, r24
    c248:	8b 2f       	mov	r24, r27
    c24a:	88 1f       	adc	r24, r24
				y.u32 = pgm_read_dword((float*)nptr);
				x.flt *= y.flt;
			}
			nptr -= sizeof(float);
		}
		if (!isfinite(x.flt) || x.flt == 0)
    c24c:	8f 3f       	cpi	r24, 0xFF	; 255
    c24e:	49 f0       	breq	.+18     	; 0xc262 <code_value() [clone .lto_priv.547]+0x21a>
    c250:	20 e0       	ldi	r18, 0x00	; 0
    c252:	30 e0       	ldi	r19, 0x00	; 0
    c254:	a9 01       	movw	r20, r18
    c256:	c5 01       	movw	r24, r10
    c258:	b4 01       	movw	r22, r8
    c25a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    c25e:	81 11       	cpse	r24, r1
    c260:	06 c0       	rjmp	.+12     	; 0xc26e <code_value() [clone .lto_priv.547]+0x226>
			errno = ERANGE;
    c262:	82 e2       	ldi	r24, 0x22	; 34
    c264:	90 e0       	ldi	r25, 0x00	; 0
    c266:	90 93 15 18 	sts	0x1815, r25	; 0x801815 <errno+0x1>
    c26a:	80 93 14 18 	sts	0x1814, r24	; 0x801814 <errno>
	}

	return x.flt;
    c26e:	c5 01       	movw	r24, r10
    c270:	b4 01       	movw	r22, r8
    c272:	df 91       	pop	r29
    c274:	cf 91       	pop	r28
    c276:	1f 91       	pop	r17
    c278:	0f 91       	pop	r16
    c27a:	ff 90       	pop	r15
    c27c:	ef 90       	pop	r14
    c27e:	df 90       	pop	r13
    c280:	cf 90       	pop	r12
    c282:	bf 90       	pop	r11
    c284:	af 90       	pop	r10
    c286:	9f 90       	pop	r9
    c288:	8f 90       	pop	r8
    c28a:	08 95       	ret
	/* NAN() construction is not realised.
	   Length would be 3 characters only.	*/
	if (!strncasecmp_P(nptr - 1, pstr_nan, 3)) {
		if (endptr)
			*endptr = (char*)nptr + 2;
		return NAN;
    c28c:	60 e0       	ldi	r22, 0x00	; 0
    c28e:	70 e0       	ldi	r23, 0x00	; 0
    c290:	80 ec       	ldi	r24, 0xC0	; 192
    c292:	9f e7       	ldi	r25, 0x7F	; 127
    c294:	ee cf       	rjmp	.-36     	; 0xc272 <code_value() [clone .lto_priv.547]+0x22a>

0000c296 <get_coordinates()>:
		}
	}
}
#endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3

void get_coordinates() {
    c296:	2f 92       	push	r2
    c298:	3f 92       	push	r3
    c29a:	4f 92       	push	r4
    c29c:	5f 92       	push	r5
    c29e:	6f 92       	push	r6
    c2a0:	7f 92       	push	r7
    c2a2:	8f 92       	push	r8
    c2a4:	9f 92       	push	r9
    c2a6:	af 92       	push	r10
    c2a8:	bf 92       	push	r11
    c2aa:	cf 92       	push	r12
    c2ac:	df 92       	push	r13
    c2ae:	ef 92       	push	r14
    c2b0:	ff 92       	push	r15
    c2b2:	0f 93       	push	r16
    c2b4:	1f 93       	push	r17
    c2b6:	cf 93       	push	r28
    c2b8:	df 93       	push	r29
    c2ba:	00 d0       	rcall	.+0      	; 0xc2bc <get_coordinates()+0x26>
    c2bc:	cd b7       	in	r28, 0x3d	; 61
    c2be:	de b7       	in	r29, 0x3e	; 62
    c2c0:	8d ed       	ldi	r24, 0xDD	; 221
    c2c2:	c8 2e       	mov	r12, r24
    c2c4:	82 e0       	ldi	r24, 0x02	; 2
    c2c6:	d8 2e       	mov	r13, r24
    c2c8:	84 e7       	ldi	r24, 0x74	; 116
    c2ca:	96 e0       	ldi	r25, 0x06	; 6
    c2cc:	9b 83       	std	Y+3, r25	; 0x03
    c2ce:	8a 83       	std	Y+2, r24	; 0x02
    c2d0:	92 e9       	ldi	r25, 0x92	; 146
    c2d2:	e9 2e       	mov	r14, r25
    c2d4:	96 e0       	ldi	r25, 0x06	; 6
    c2d6:	f9 2e       	mov	r15, r25
  for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i < NUM_AXIS; i++, mask <<= 1) {
    c2d8:	33 24       	eor	r3, r3
    c2da:	33 94       	inc	r3
    c2dc:	00 e0       	ldi	r16, 0x00	; 0
    if(code_seen(axis_codes[i]))
    c2de:	f6 01       	movw	r30, r12
    c2e0:	81 91       	ld	r24, Z+
    c2e2:	6f 01       	movw	r12, r30
    c2e4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    c2e8:	28 2e       	mov	r2, r24
    c2ea:	88 23       	and	r24, r24
    c2ec:	09 f4       	brne	.+2      	; 0xc2f0 <get_coordinates()+0x5a>
    c2ee:	a6 c0       	rjmp	.+332    	; 0xc43c <get_coordinates()+0x1a6>
    {
      bool relative = axis_relative_modes & mask;
    c2f0:	10 91 e5 03 	lds	r17, 0x03E5	; 0x8003e5 <axis_relative_modes>
    c2f4:	13 21       	and	r17, r3
      destination[i] = code_value();
    c2f6:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
    c2fa:	2b 01       	movw	r4, r22
    c2fc:	3c 01       	movw	r6, r24
    c2fe:	ea 81       	ldd	r30, Y+2	; 0x02
    c300:	fb 81       	ldd	r31, Y+3	; 0x03
    c302:	40 82       	st	Z, r4
    c304:	51 82       	std	Z+1, r5	; 0x01
    c306:	62 82       	std	Z+2, r6	; 0x02
    c308:	73 82       	std	Z+3, r7	; 0x03
      if (i == E_AXIS) {
    c30a:	03 30       	cpi	r16, 0x03	; 3
    c30c:	09 f0       	breq	.+2      	; 0xc310 <get_coordinates()+0x7a>
    c30e:	46 c0       	rjmp	.+140    	; 0xc39c <get_coordinates()+0x106>

void get_coordinates() {
  for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i < NUM_AXIS; i++, mask <<= 1) {
    if(code_seen(axis_codes[i]))
    {
      bool relative = axis_relative_modes & mask;
    c310:	f1 e0       	ldi	r31, 0x01	; 1
    c312:	f9 83       	std	Y+1, r31	; 0x01
    c314:	11 11       	cpse	r17, r1
    c316:	01 c0       	rjmp	.+2      	; 0xc31a <get_coordinates()+0x84>
    c318:	19 82       	std	Y+1, r1	; 0x01
      destination[i] = code_value();
      if (i == E_AXIS) {
        float emult = extruder_multiplier[active_extruder];
    c31a:	80 90 93 02 	lds	r8, 0x0293	; 0x800293 <extruder_multiplier>
    c31e:	90 90 94 02 	lds	r9, 0x0294	; 0x800294 <extruder_multiplier+0x1>
    c322:	a0 90 95 02 	lds	r10, 0x0295	; 0x800295 <extruder_multiplier+0x2>
    c326:	b0 90 96 02 	lds	r11, 0x0296	; 0x800296 <extruder_multiplier+0x3>
        if (emult != 1.) {
    c32a:	20 e0       	ldi	r18, 0x00	; 0
    c32c:	30 e0       	ldi	r19, 0x00	; 0
    c32e:	40 e8       	ldi	r20, 0x80	; 128
    c330:	5f e3       	ldi	r21, 0x3F	; 63
    c332:	c5 01       	movw	r24, r10
    c334:	b4 01       	movw	r22, r8
    c336:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    c33a:	88 23       	and	r24, r24
    c33c:	59 f1       	breq	.+86     	; 0xc394 <get_coordinates()+0xfe>
          if (! relative) {
    c33e:	11 11       	cpse	r17, r1
    c340:	15 c0       	rjmp	.+42     	; 0xc36c <get_coordinates()+0xd6>
            destination[i] -= current_position[i];
    c342:	20 91 9e 06 	lds	r18, 0x069E	; 0x80069e <current_position+0xc>
    c346:	30 91 9f 06 	lds	r19, 0x069F	; 0x80069f <current_position+0xd>
    c34a:	40 91 a0 06 	lds	r20, 0x06A0	; 0x8006a0 <current_position+0xe>
    c34e:	50 91 a1 06 	lds	r21, 0x06A1	; 0x8006a1 <current_position+0xf>
    c352:	c3 01       	movw	r24, r6
    c354:	b2 01       	movw	r22, r4
    c356:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    c35a:	60 93 80 06 	sts	0x0680, r22	; 0x800680 <destination+0xc>
    c35e:	70 93 81 06 	sts	0x0681, r23	; 0x800681 <destination+0xd>
    c362:	80 93 82 06 	sts	0x0682, r24	; 0x800682 <destination+0xe>
    c366:	90 93 83 06 	sts	0x0683, r25	; 0x800683 <destination+0xf>
            relative = true;
    c36a:	29 82       	std	Y+1, r2	; 0x01
          }
          destination[i] *= emult;
    c36c:	a5 01       	movw	r20, r10
    c36e:	94 01       	movw	r18, r8
    c370:	60 91 80 06 	lds	r22, 0x0680	; 0x800680 <destination+0xc>
    c374:	70 91 81 06 	lds	r23, 0x0681	; 0x800681 <destination+0xd>
    c378:	80 91 82 06 	lds	r24, 0x0682	; 0x800682 <destination+0xe>
    c37c:	90 91 83 06 	lds	r25, 0x0683	; 0x800683 <destination+0xf>
    c380:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    c384:	60 93 80 06 	sts	0x0680, r22	; 0x800680 <destination+0xc>
    c388:	70 93 81 06 	sts	0x0681, r23	; 0x800681 <destination+0xd>
    c38c:	80 93 82 06 	sts	0x0682, r24	; 0x800682 <destination+0xe>
    c390:	90 93 83 06 	sts	0x0683, r25	; 0x800683 <destination+0xf>
        }
      }
      if (relative)
    c394:	e9 81       	ldd	r30, Y+1	; 0x01
    c396:	e1 11       	cpse	r30, r1
    c398:	03 c0       	rjmp	.+6      	; 0xc3a0 <get_coordinates()+0x10a>
    c39a:	22 c0       	rjmp	.+68     	; 0xc3e0 <get_coordinates()+0x14a>
    c39c:	11 23       	and	r17, r17
    c39e:	99 f0       	breq	.+38     	; 0xc3c6 <get_coordinates()+0x130>
        destination[i] += current_position[i];
    c3a0:	f7 01       	movw	r30, r14
    c3a2:	20 81       	ld	r18, Z
    c3a4:	31 81       	ldd	r19, Z+1	; 0x01
    c3a6:	42 81       	ldd	r20, Z+2	; 0x02
    c3a8:	53 81       	ldd	r21, Z+3	; 0x03
    c3aa:	ea 81       	ldd	r30, Y+2	; 0x02
    c3ac:	fb 81       	ldd	r31, Y+3	; 0x03
    c3ae:	60 81       	ld	r22, Z
    c3b0:	71 81       	ldd	r23, Z+1	; 0x01
    c3b2:	82 81       	ldd	r24, Z+2	; 0x02
    c3b4:	93 81       	ldd	r25, Z+3	; 0x03
    c3b6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    c3ba:	ea 81       	ldd	r30, Y+2	; 0x02
    c3bc:	fb 81       	ldd	r31, Y+3	; 0x03
    c3be:	60 83       	st	Z, r22
    c3c0:	71 83       	std	Z+1, r23	; 0x01
    c3c2:	82 83       	std	Z+2, r24	; 0x02
    c3c4:	93 83       	std	Z+3, r25	; 0x03
	}
}
#endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3

void get_coordinates() {
  for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i < NUM_AXIS; i++, mask <<= 1) {
    c3c6:	0f 5f       	subi	r16, 0xFF	; 255
    c3c8:	33 0c       	add	r3, r3
    c3ca:	8a 81       	ldd	r24, Y+2	; 0x02
    c3cc:	9b 81       	ldd	r25, Y+3	; 0x03
    c3ce:	04 96       	adiw	r24, 0x04	; 4
    c3d0:	9b 83       	std	Y+3, r25	; 0x03
    c3d2:	8a 83       	std	Y+2, r24	; 0x02
    c3d4:	94 e0       	ldi	r25, 0x04	; 4
    c3d6:	e9 0e       	add	r14, r25
    c3d8:	f1 1c       	adc	r15, r1
    c3da:	04 30       	cpi	r16, 0x04	; 4
    c3dc:	09 f0       	breq	.+2      	; 0xc3e0 <get_coordinates()+0x14a>
    c3de:	7f cf       	rjmp	.-258    	; 0xc2de <get_coordinates()+0x48>
	  if (i == Z_AXIS && SilentModeMenu == SILENT_MODE_AUTO) update_currents();
#endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3
    }
    else destination[i] = current_position[i]; //Are these else lines really needed?
  }
  if(code_seen('F')) {
    c3e0:	86 e4       	ldi	r24, 0x46	; 70
    c3e2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    c3e6:	88 23       	and	r24, r24
    c3e8:	99 f0       	breq	.+38     	; 0xc410 <get_coordinates()+0x17a>
    const float next_feedrate = code_value();
    c3ea:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
    c3ee:	6b 01       	movw	r12, r22
    c3f0:	7c 01       	movw	r14, r24
    if(next_feedrate > 0.f) feedrate = next_feedrate;
    c3f2:	20 e0       	ldi	r18, 0x00	; 0
    c3f4:	30 e0       	ldi	r19, 0x00	; 0
    c3f6:	a9 01       	movw	r20, r18
    c3f8:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    c3fc:	18 16       	cp	r1, r24
    c3fe:	44 f4       	brge	.+16     	; 0xc410 <get_coordinates()+0x17a>
    c400:	c0 92 b8 02 	sts	0x02B8, r12	; 0x8002b8 <feedrate>
    c404:	d0 92 b9 02 	sts	0x02B9, r13	; 0x8002b9 <feedrate+0x1>
    c408:	e0 92 ba 02 	sts	0x02BA, r14	; 0x8002ba <feedrate+0x2>
    c40c:	f0 92 bb 02 	sts	0x02BB, r15	; 0x8002bb <feedrate+0x3>
  }
}
    c410:	0f 90       	pop	r0
    c412:	0f 90       	pop	r0
    c414:	0f 90       	pop	r0
    c416:	df 91       	pop	r29
    c418:	cf 91       	pop	r28
    c41a:	1f 91       	pop	r17
    c41c:	0f 91       	pop	r16
    c41e:	ff 90       	pop	r15
    c420:	ef 90       	pop	r14
    c422:	df 90       	pop	r13
    c424:	cf 90       	pop	r12
    c426:	bf 90       	pop	r11
    c428:	af 90       	pop	r10
    c42a:	9f 90       	pop	r9
    c42c:	8f 90       	pop	r8
    c42e:	7f 90       	pop	r7
    c430:	6f 90       	pop	r6
    c432:	5f 90       	pop	r5
    c434:	4f 90       	pop	r4
    c436:	3f 90       	pop	r3
    c438:	2f 90       	pop	r2
    c43a:	08 95       	ret
        destination[i] += current_position[i];
#if MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3
	  if (i == Z_AXIS && SilentModeMenu == SILENT_MODE_AUTO) update_currents();
#endif //MOTHERBOARD == BOARD_RAMBO_MINI_1_0 || MOTHERBOARD == BOARD_RAMBO_MINI_1_3
    }
    else destination[i] = current_position[i]; //Are these else lines really needed?
    c43c:	f7 01       	movw	r30, r14
    c43e:	80 81       	ld	r24, Z
    c440:	91 81       	ldd	r25, Z+1	; 0x01
    c442:	a2 81       	ldd	r26, Z+2	; 0x02
    c444:	b3 81       	ldd	r27, Z+3	; 0x03
    c446:	ea 81       	ldd	r30, Y+2	; 0x02
    c448:	fb 81       	ldd	r31, Y+3	; 0x03
    c44a:	80 83       	st	Z, r24
    c44c:	91 83       	std	Z+1, r25	; 0x01
    c44e:	a2 83       	std	Z+2, r26	; 0x02
    c450:	b3 83       	std	Z+3, r27	; 0x03
    c452:	b9 cf       	rjmp	.-142    	; 0xc3c6 <get_coordinates()+0x130>

0000c454 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)>:
    }
}

void dcode_core(daddr_t addr_start, const daddr_t addr_end, const dcode_mem_t type,
                uint8_t dcode, const char* type_desc)
{
    c454:	2f 92       	push	r2
    c456:	3f 92       	push	r3
    c458:	4f 92       	push	r4
    c45a:	5f 92       	push	r5
    c45c:	6f 92       	push	r6
    c45e:	7f 92       	push	r7
    c460:	8f 92       	push	r8
    c462:	9f 92       	push	r9
    c464:	af 92       	push	r10
    c466:	bf 92       	push	r11
    c468:	cf 92       	push	r12
    c46a:	df 92       	push	r13
    c46c:	ef 92       	push	r14
    c46e:	ff 92       	push	r15
    c470:	0f 93       	push	r16
    c472:	1f 93       	push	r17
    c474:	cf 93       	push	r28
    c476:	df 93       	push	r29
    c478:	cd b7       	in	r28, 0x3d	; 61
    c47a:	de b7       	in	r29, 0x3e	; 62
    c47c:	65 97       	sbiw	r28, 0x15	; 21
    c47e:	0f b6       	in	r0, 0x3f	; 63
    c480:	f8 94       	cli
    c482:	de bf       	out	0x3e, r29	; 62
    c484:	0f be       	out	0x3f, r0	; 63
    c486:	cd bf       	out	0x3d, r28	; 61
    c488:	69 8b       	std	Y+17, r22	; 0x11
    c48a:	7a 8b       	std	Y+18, r23	; 0x12
    c48c:	8b 8b       	std	Y+19, r24	; 0x13
    c48e:	9c 8b       	std	Y+20, r25	; 0x14
    c490:	49 01       	movw	r8, r18
    c492:	5a 01       	movw	r10, r20
    c494:	30 2e       	mov	r3, r16
    c496:	cd 8a       	std	Y+21, r12	; 0x15
    c498:	2d 2c       	mov	r2, r13
    KEEPALIVE_STATE(NOT_BUSY);
    c49a:	81 e0       	ldi	r24, 0x01	; 1
    c49c:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    DBG(_N("D%d - Read/Write %S\n"), dcode, type_desc);
    c4a0:	df 92       	push	r13
    c4a2:	2d 89       	ldd	r18, Y+21	; 0x15
    c4a4:	2f 93       	push	r18
    c4a6:	1f 92       	push	r1
    c4a8:	ef 92       	push	r14
    c4aa:	87 ee       	ldi	r24, 0xE7	; 231
    c4ac:	94 e6       	ldi	r25, 0x64	; 100
    c4ae:	9f 93       	push	r25
    c4b0:	8f 93       	push	r24
    c4b2:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    daddr_t count = -1; // RW the entire space by default
    if (code_seen('A'))
    c4b6:	81 e4       	ldi	r24, 0x41	; 65
    c4b8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    c4bc:	0f 90       	pop	r0
    c4be:	0f 90       	pop	r0
    c4c0:	0f 90       	pop	r0
    c4c2:	0f 90       	pop	r0
    c4c4:	0f 90       	pop	r0
    c4c6:	0f 90       	pop	r0
    c4c8:	88 23       	and	r24, r24
    c4ca:	a1 f0       	breq	.+40     	; 0xc4f4 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xa0>
        addr_start = (strchr_pointer[1] == 'x')?strtol(strchr_pointer + 2, 0, 16):(int)code_value();
    c4cc:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
    c4d0:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
    c4d4:	fc 01       	movw	r30, r24
    c4d6:	21 81       	ldd	r18, Z+1	; 0x01
    c4d8:	28 37       	cpi	r18, 0x78	; 120
    c4da:	09 f0       	breq	.+2      	; 0xc4de <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x8a>
    c4dc:	69 c0       	rjmp	.+210    	; 0xc5b0 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x15c>
    c4de:	40 e1       	ldi	r20, 0x10	; 16
    c4e0:	50 e0       	ldi	r21, 0x00	; 0
    c4e2:	70 e0       	ldi	r23, 0x00	; 0
    c4e4:	60 e0       	ldi	r22, 0x00	; 0
    c4e6:	02 96       	adiw	r24, 0x02	; 2
    c4e8:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
    c4ec:	69 8b       	std	Y+17, r22	; 0x11
    c4ee:	7a 8b       	std	Y+18, r23	; 0x12
    c4f0:	8b 8b       	std	Y+19, r24	; 0x13
    c4f2:	9c 8b       	std	Y+20, r25	; 0x14
    if (code_seen('C'))
    c4f4:	83 e4       	ldi	r24, 0x43	; 67
    c4f6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    c4fa:	88 23       	and	r24, r24
    c4fc:	09 f4       	brne	.+2      	; 0xc500 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xac>
    c4fe:	65 c0       	rjmp	.+202    	; 0xc5ca <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x176>
        count = code_value_long();
    c500:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
    c504:	2b 01       	movw	r4, r22
    c506:	3c 01       	movw	r6, r24
    c508:	c9 88       	ldd	r12, Y+17	; 0x11
    c50a:	da 88       	ldd	r13, Y+18	; 0x12
    c50c:	eb 88       	ldd	r14, Y+19	; 0x13
    c50e:	fc 88       	ldd	r15, Y+20	; 0x14
    c510:	8c 14       	cp	r8, r12
    c512:	9d 04       	cpc	r9, r13
    c514:	ae 04       	cpc	r10, r14
    c516:	bf 04       	cpc	r11, r15
    c518:	10 f4       	brcc	.+4      	; 0xc51e <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xca>
    c51a:	75 01       	movw	r14, r10
    c51c:	64 01       	movw	r12, r8
    if (addr_start > addr_end)
        addr_start = addr_end;
    if ((addr_start + count) > addr_end || (addr_start + count) < addr_start)
    c51e:	d3 01       	movw	r26, r6
    c520:	c2 01       	movw	r24, r4
    c522:	8c 0d       	add	r24, r12
    c524:	9d 1d       	adc	r25, r13
    c526:	ae 1d       	adc	r26, r14
    c528:	bf 1d       	adc	r27, r15
    c52a:	88 16       	cp	r8, r24
    c52c:	99 06       	cpc	r9, r25
    c52e:	aa 06       	cpc	r10, r26
    c530:	bb 06       	cpc	r11, r27
    c532:	28 f0       	brcs	.+10     	; 0xc53e <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xea>
    c534:	8c 15       	cp	r24, r12
    c536:	9d 05       	cpc	r25, r13
    c538:	ae 05       	cpc	r26, r14
    c53a:	bf 05       	cpc	r27, r15
    c53c:	30 f4       	brcc	.+12     	; 0xc54a <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xf6>
        count = addr_end - addr_start;
    c53e:	24 01       	movw	r4, r8
    c540:	35 01       	movw	r6, r10
    c542:	4c 18       	sub	r4, r12
    c544:	5d 08       	sbc	r5, r13
    c546:	6e 08       	sbc	r6, r14
    c548:	7f 08       	sbc	r7, r15
    if (code_seen('X'))
    c54a:	88 e5       	ldi	r24, 0x58	; 88
    c54c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    c550:	88 23       	and	r24, r24
    c552:	09 f4       	brne	.+2      	; 0xc556 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x102>
    c554:	91 c0       	rjmp	.+290    	; 0xc678 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x224>
    {
        uint8_t data[16];
        count = parse_hex(strchr_pointer + 1, data, 16);
    c556:	20 91 95 03 	lds	r18, 0x0395	; 0x800395 <strchr_pointer>
    c55a:	30 91 96 03 	lds	r19, 0x0396	; 0x800396 <strchr_pointer+0x1>
    c55e:	2f 5f       	subi	r18, 0xFF	; 255
    c560:	3f 4f       	sbci	r19, 0xFF	; 255
    c562:	fe 01       	movw	r30, r28
    c564:	31 96       	adiw	r30, 0x01	; 1
    print_hex_byte(val & 0xFF);
}

int parse_hex(const char* hex, uint8_t* data, int count)
{
	int parsed = 0;
    c566:	10 e0       	ldi	r17, 0x00	; 0
    c568:	00 e0       	ldi	r16, 0x00	; 0
    c56a:	4f 01       	movw	r8, r30
    c56c:	d9 01       	movw	r26, r18
	while (*hex)
    c56e:	8c 91       	ld	r24, X
    c570:	2f 5f       	subi	r18, 0xFF	; 255
    c572:	3f 4f       	sbci	r19, 0xFF	; 255
    c574:	88 23       	and	r24, r24
    c576:	09 f4       	brne	.+2      	; 0xc57a <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x126>
    c578:	3f c0       	rjmp	.+126    	; 0xc5f8 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1a4>
	{
		if (count && (parsed >= count)) break;
    c57a:	00 31       	cpi	r16, 0x10	; 16
    c57c:	11 05       	cpc	r17, r1
    c57e:	e1 f1       	breq	.+120    	; 0xc5f8 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1a4>
		char c = *(hex++);
		if (c == ' ') continue;
    c580:	80 32       	cpi	r24, 0x20	; 32
    c582:	a1 f3       	breq	.-24     	; 0xc56c <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x118>
		if (c == '\n') break;
    c584:	8a 30       	cpi	r24, 0x0A	; 10
    c586:	c1 f1       	breq	.+112    	; 0xc5f8 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1a4>
		uint8_t val = 0x00;
		if ((c >= '0') && (c <= '9')) val |= ((c - '0') << 4);
    c588:	90 ed       	ldi	r25, 0xD0	; 208
    c58a:	98 0f       	add	r25, r24
    c58c:	9a 30       	cpi	r25, 0x0A	; 10
    c58e:	10 f5       	brcc	.+68     	; 0xc5d4 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x180>
    c590:	82 95       	swap	r24
    c592:	80 7f       	andi	r24, 0xF0	; 240
		else if ((c >= 'a') && (c <= 'f')) val |= ((c - 'a' + 10) << 4);
		else return -parsed;
		c = *(hex++);
    c594:	9d 01       	movw	r18, r26
    c596:	2e 5f       	subi	r18, 0xFE	; 254
    c598:	3f 4f       	sbci	r19, 0xFF	; 255
		if ((c >= '0') && (c <= '9')) val |= (c - '0');
    c59a:	11 96       	adiw	r26, 0x01	; 1
    c59c:	9c 91       	ld	r25, X
    c59e:	40 ed       	ldi	r20, 0xD0	; 208
    c5a0:	49 0f       	add	r20, r25
    c5a2:	4a 30       	cpi	r20, 0x0A	; 10
    c5a4:	f8 f4       	brcc	.+62     	; 0xc5e4 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x190>
    c5a6:	84 2b       	or	r24, r20
		else if ((c >= 'a') && (c <= 'f')) val |= (c - 'a' + 10);
		else return -parsed;
		data[parsed] = val;
    c5a8:	81 93       	st	Z+, r24
		parsed++;
    c5aa:	0f 5f       	subi	r16, 0xFF	; 255
    c5ac:	1f 4f       	sbci	r17, 0xFF	; 255
    c5ae:	de cf       	rjmp	.-68     	; 0xc56c <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x118>
{
    KEEPALIVE_STATE(NOT_BUSY);
    DBG(_N("D%d - Read/Write %S\n"), dcode, type_desc);
    daddr_t count = -1; // RW the entire space by default
    if (code_seen('A'))
        addr_start = (strchr_pointer[1] == 'x')?strtol(strchr_pointer + 2, 0, 16):(int)code_value();
    c5b0:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
    c5b4:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
    c5b8:	9b 01       	movw	r18, r22
    c5ba:	77 0f       	add	r23, r23
    c5bc:	44 0b       	sbc	r20, r20
    c5be:	55 0b       	sbc	r21, r21
    c5c0:	29 8b       	std	Y+17, r18	; 0x11
    c5c2:	3a 8b       	std	Y+18, r19	; 0x12
    c5c4:	4b 8b       	std	Y+19, r20	; 0x13
    c5c6:	5c 8b       	std	Y+20, r21	; 0x14
    c5c8:	95 cf       	rjmp	.-214    	; 0xc4f4 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xa0>
void dcode_core(daddr_t addr_start, const daddr_t addr_end, const dcode_mem_t type,
                uint8_t dcode, const char* type_desc)
{
    KEEPALIVE_STATE(NOT_BUSY);
    DBG(_N("D%d - Read/Write %S\n"), dcode, type_desc);
    daddr_t count = -1; // RW the entire space by default
    c5ca:	44 24       	eor	r4, r4
    c5cc:	4a 94       	dec	r4
    c5ce:	54 2c       	mov	r5, r4
    c5d0:	32 01       	movw	r6, r4
    c5d2:	9a cf       	rjmp	.-204    	; 0xc508 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0xb4>
		char c = *(hex++);
		if (c == ' ') continue;
		if (c == '\n') break;
		uint8_t val = 0x00;
		if ((c >= '0') && (c <= '9')) val |= ((c - '0') << 4);
		else if ((c >= 'a') && (c <= 'f')) val |= ((c - 'a' + 10) << 4);
    c5d4:	9f e9       	ldi	r25, 0x9F	; 159
    c5d6:	98 0f       	add	r25, r24
    c5d8:	96 30       	cpi	r25, 0x06	; 6
    c5da:	58 f4       	brcc	.+22     	; 0xc5f2 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x19e>
    c5dc:	82 95       	swap	r24
    c5de:	80 7f       	andi	r24, 0xF0	; 240
    c5e0:	80 57       	subi	r24, 0x70	; 112
    c5e2:	d8 cf       	rjmp	.-80     	; 0xc594 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x140>
		else return -parsed;
		c = *(hex++);
		if ((c >= '0') && (c <= '9')) val |= (c - '0');
		else if ((c >= 'a') && (c <= 'f')) val |= (c - 'a' + 10);
    c5e4:	4f e9       	ldi	r20, 0x9F	; 159
    c5e6:	49 0f       	add	r20, r25
    c5e8:	46 30       	cpi	r20, 0x06	; 6
    c5ea:	18 f4       	brcc	.+6      	; 0xc5f2 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x19e>
    c5ec:	97 55       	subi	r25, 0x57	; 87
    c5ee:	89 2b       	or	r24, r25
    c5f0:	db cf       	rjmp	.-74     	; 0xc5a8 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x154>
		else return -parsed;
    c5f2:	11 95       	neg	r17
    c5f4:	01 95       	neg	r16
    c5f6:	11 09       	sbc	r17, r1
    if ((addr_start + count) > addr_end || (addr_start + count) < addr_start)
        count = addr_end - addr_start;
    if (code_seen('X'))
    {
        uint8_t data[16];
        count = parse_hex(strchr_pointer + 1, data, 16);
    c5f8:	28 01       	movw	r4, r16
    c5fa:	01 2e       	mov	r0, r17
    c5fc:	00 0c       	add	r0, r0
    c5fe:	66 08       	sbc	r6, r6
    c600:	77 08       	sbc	r7, r7
        write_mem(addr_start, count, data, type);
    c602:	da 8a       	std	Y+18, r13	; 0x12
    c604:	c9 8a       	std	Y+17, r12	; 0x11
}

// TODO: this only handles SRAM/EEPROM 16bit addresses
void write_mem(uint16_t address, uint16_t count, const uint8_t* data, const dcode_mem_t type)
{
    for (uint16_t i = 0; i < count; i++)
    c606:	b1 2c       	mov	r11, r1
    c608:	a1 2c       	mov	r10, r1
    c60a:	0a 15       	cp	r16, r10
    c60c:	1b 05       	cpc	r17, r11
    c60e:	f1 f0       	breq	.+60     	; 0xc64c <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1f8>
    {
        switch (type)
    c610:	33 20       	and	r3, r3
    c612:	39 f0       	breq	.+14     	; 0xc622 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1ce>
    c614:	31 e0       	ldi	r19, 0x01	; 1
    c616:	33 16       	cp	r3, r19
    c618:	71 f0       	breq	.+28     	; 0xc636 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1e2>
}

// TODO: this only handles SRAM/EEPROM 16bit addresses
void write_mem(uint16_t address, uint16_t count, const uint8_t* data, const dcode_mem_t type)
{
    for (uint16_t i = 0; i < count; i++)
    c61a:	4f ef       	ldi	r20, 0xFF	; 255
    c61c:	a4 1a       	sub	r10, r20
    c61e:	b4 0a       	sbc	r11, r20
    c620:	f4 cf       	rjmp	.-24     	; 0xc60a <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1b6>
    {
        switch (type)
        {
        case dcode_mem_t::sram: *((uint8_t*)address) = data[i]; break;
    c622:	f4 01       	movw	r30, r8
    c624:	ea 0d       	add	r30, r10
    c626:	fb 1d       	adc	r31, r11
    c628:	80 81       	ld	r24, Z
    c62a:	e9 89       	ldd	r30, Y+17	; 0x11
    c62c:	fa 89       	ldd	r31, Y+18	; 0x12
    c62e:	ea 0d       	add	r30, r10
    c630:	fb 1d       	adc	r31, r11
    c632:	80 83       	st	Z, r24
    c634:	f2 cf       	rjmp	.-28     	; 0xc61a <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1c6>
        case dcode_mem_t::eeprom: eeprom_write_byte_notify((uint8_t*)address, data[i]); break;
    c636:	f4 01       	movw	r30, r8
    c638:	ea 0d       	add	r30, r10
    c63a:	fb 1d       	adc	r31, r11
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    c63c:	60 81       	ld	r22, Z
    c63e:	89 89       	ldd	r24, Y+17	; 0x11
    c640:	9a 89       	ldd	r25, Y+18	; 0x12
    c642:	8a 0d       	add	r24, r10
    c644:	9b 1d       	adc	r25, r11
    c646:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>
    c64a:	e7 cf       	rjmp	.-50     	; 0xc61a <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)+0x1c6>
    {
        uint8_t data[16];
        count = parse_hex(strchr_pointer + 1, data, 16);
        write_mem(addr_start, count, data, type);
#if DADDR_SIZE > 16
        DBG(_N("%lu bytes written to %S at address 0x%04lx\n"), count, type_desc, addr_start);
    c64c:	ff 92       	push	r15
    c64e:	ef 92       	push	r14
    c650:	df 92       	push	r13
    c652:	cf 92       	push	r12
    c654:	2f 92       	push	r2
    c656:	5d 89       	ldd	r21, Y+21	; 0x15
    c658:	5f 93       	push	r21
    c65a:	7f 92       	push	r7
    c65c:	6f 92       	push	r6
    c65e:	5f 92       	push	r5
    c660:	4f 92       	push	r4
    c662:	8b eb       	ldi	r24, 0xBB	; 187
    c664:	94 e6       	ldi	r25, 0x64	; 100
    c666:	9f 93       	push	r25
    c668:	8f 93       	push	r24
    c66a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    c66e:	0f b6       	in	r0, 0x3f	; 63
    c670:	f8 94       	cli
    c672:	de bf       	out	0x3e, r29	; 62
    c674:	0f be       	out	0x3f, r0	; 63
    c676:	cd bf       	out	0x3d, r28	; 61
#else
        DBG(_N("%u bytes written to %S at address 0x%08x\n"), count, type_desc, addr_start);
#endif
    }
    print_mem(addr_start, count, type);
    c678:	03 2d       	mov	r16, r3
    c67a:	a3 01       	movw	r20, r6
    c67c:	92 01       	movw	r18, r4
    c67e:	c7 01       	movw	r24, r14
    c680:	b6 01       	movw	r22, r12
    c682:	0f 94 6b 87 	call	0x30ed6	; 0x30ed6 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]>
}
    c686:	65 96       	adiw	r28, 0x15	; 21
    c688:	0f b6       	in	r0, 0x3f	; 63
    c68a:	f8 94       	cli
    c68c:	de bf       	out	0x3e, r29	; 62
    c68e:	0f be       	out	0x3f, r0	; 63
    c690:	cd bf       	out	0x3d, r28	; 61
    c692:	df 91       	pop	r29
    c694:	cf 91       	pop	r28
    c696:	1f 91       	pop	r17
    c698:	0f 91       	pop	r16
    c69a:	ff 90       	pop	r15
    c69c:	ef 90       	pop	r14
    c69e:	df 90       	pop	r13
    c6a0:	cf 90       	pop	r12
    c6a2:	bf 90       	pop	r11
    c6a4:	af 90       	pop	r10
    c6a6:	9f 90       	pop	r9
    c6a8:	8f 90       	pop	r8
    c6aa:	7f 90       	pop	r7
    c6ac:	6f 90       	pop	r6
    c6ae:	5f 90       	pop	r5
    c6b0:	4f 90       	pop	r4
    c6b2:	3f 90       	pop	r3
    c6b4:	2f 90       	pop	r2
    c6b6:	08 95       	ret

0000c6b8 <print_hex_nibble(unsigned char)>:

#define DBG(args...) printf_P(args)

inline void print_hex_nibble(uint8_t val)
{
	putchar((val > 9)?(val - 10 + 'a'):(val + '0'));
    c6b8:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
    c6bc:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
    c6c0:	90 e0       	ldi	r25, 0x00	; 0
    c6c2:	8a 30       	cpi	r24, 0x0A	; 10
    c6c4:	20 f0       	brcs	.+8      	; 0xc6ce <print_hex_nibble(unsigned char)+0x16>
    c6c6:	89 5a       	subi	r24, 0xA9	; 169
    c6c8:	9f 4f       	sbci	r25, 0xFF	; 255
    c6ca:	0d 94 c3 da 	jmp	0x3b586	; 0x3b586 <fputc>
    c6ce:	c0 96       	adiw	r24, 0x30	; 48
    c6d0:	fc cf       	rjmp	.-8      	; 0xc6ca <print_hex_nibble(unsigned char)+0x12>

0000c6d2 <lcd_writebits(unsigned char)>:
	WRITE(LCD_PINS_D0, value & 0x01);
	WRITE(LCD_PINS_D1, value & 0x02);
	WRITE(LCD_PINS_D2, value & 0x04);
	WRITE(LCD_PINS_D3, value & 0x08);
#endif
	WRITE(LCD_PINS_D4, value & 0x10);
    c6d2:	84 ff       	sbrs	r24, 4
    c6d4:	18 c0       	rjmp	.+48     	; 0xc706 <lcd_writebits(unsigned char)+0x34>
    c6d6:	8d 9a       	sbi	0x11, 5	; 17
	WRITE(LCD_PINS_D5, value & 0x20);
    c6d8:	85 ff       	sbrs	r24, 5
    c6da:	17 c0       	rjmp	.+46     	; 0xc70a <lcd_writebits(unsigned char)+0x38>
    c6dc:	a4 9a       	sbi	0x14, 4	; 20
	WRITE(LCD_PINS_D6, value & 0x40);
    c6de:	2f b7       	in	r18, 0x3f	; 63
    c6e0:	86 ff       	sbrs	r24, 6
    c6e2:	15 c0       	rjmp	.+42     	; 0xc70e <lcd_writebits(unsigned char)+0x3c>
    c6e4:	f8 94       	cli
    c6e6:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    c6ea:	90 68       	ori	r25, 0x80	; 128
    c6ec:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    c6f0:	2f bf       	out	0x3f, r18	; 63
	WRITE(LCD_PINS_D7, value & 0x80);
    c6f2:	87 ff       	sbrs	r24, 7
    c6f4:	11 c0       	rjmp	.+34     	; 0xc718 <lcd_writebits(unsigned char)+0x46>
    c6f6:	a3 9a       	sbi	0x14, 3	; 20
static void lcd_print_custom(uint8_t c);
static void lcd_invalidate_custom_characters();

static void lcd_pulseEnable(void)
{
	WRITE(LCD_PINS_ENABLE,HIGH);
    c6f8:	8f 9a       	sbi	0x11, 7	; 17
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
    c6fa:	85 e0       	ldi	r24, 0x05	; 5
    c6fc:	8a 95       	dec	r24
    c6fe:	f1 f7       	brne	.-4      	; 0xc6fc <lcd_writebits(unsigned char)+0x2a>
    c700:	00 00       	nop
	_delay_us(1);    // enable pulse must be >450ns
	WRITE(LCD_PINS_ENABLE,LOW);
    c702:	8f 98       	cbi	0x11, 7	; 17
	WRITE(LCD_PINS_D5, value & 0x20);
	WRITE(LCD_PINS_D6, value & 0x40);
	WRITE(LCD_PINS_D7, value & 0x80);

	lcd_pulseEnable();
}
    c704:	08 95       	ret
	WRITE(LCD_PINS_D0, value & 0x01);
	WRITE(LCD_PINS_D1, value & 0x02);
	WRITE(LCD_PINS_D2, value & 0x04);
	WRITE(LCD_PINS_D3, value & 0x08);
#endif
	WRITE(LCD_PINS_D4, value & 0x10);
    c706:	8d 98       	cbi	0x11, 5	; 17
    c708:	e7 cf       	rjmp	.-50     	; 0xc6d8 <lcd_writebits(unsigned char)+0x6>
	WRITE(LCD_PINS_D5, value & 0x20);
    c70a:	a4 98       	cbi	0x14, 4	; 20
    c70c:	e8 cf       	rjmp	.-48     	; 0xc6de <lcd_writebits(unsigned char)+0xc>
	WRITE(LCD_PINS_D6, value & 0x40);
    c70e:	f8 94       	cli
    c710:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    c714:	9f 77       	andi	r25, 0x7F	; 127
    c716:	ea cf       	rjmp	.-44     	; 0xc6ec <lcd_writebits(unsigned char)+0x1a>
	WRITE(LCD_PINS_D7, value & 0x80);
    c718:	a3 98       	cbi	0x14, 3	; 20
    c71a:	ee cf       	rjmp	.-36     	; 0xc6f8 <lcd_writebits(unsigned char)+0x26>

0000c71c <lcd_send(unsigned char, unsigned char, unsigned int)>:

	lcd_pulseEnable();
}

static void lcd_send(uint8_t data, uint8_t flags, uint16_t duration = LCD_DEFAULT_DELAY)
{
    c71c:	0f 93       	push	r16
    c71e:	1f 93       	push	r17
    c720:	cf 93       	push	r28
    c722:	df 93       	push	r29
    c724:	c8 2f       	mov	r28, r24
    c726:	d6 2f       	mov	r29, r22
    c728:	8a 01       	movw	r16, r20
	WRITE(LCD_PINS_RS,flags&LCD_RS_FLAG);
    c72a:	60 ff       	sbrs	r22, 0
    c72c:	15 c0       	rjmp	.+42     	; 0xc758 <lcd_send(unsigned char, unsigned char, unsigned int)+0x3c>
    c72e:	5d 9a       	sbi	0x0b, 5	; 11
    c730:	8a e1       	ldi	r24, 0x1A	; 26
    c732:	8a 95       	dec	r24
    c734:	f1 f7       	brne	.-4      	; 0xc732 <lcd_send(unsigned char, unsigned char, unsigned int)+0x16>
    c736:	00 c0       	rjmp	.+0      	; 0xc738 <lcd_send(unsigned char, unsigned char, unsigned int)+0x1c>
	_delay_us(5);
	lcd_writebits(data);
    c738:	8c 2f       	mov	r24, r28
    c73a:	0e 94 69 63 	call	0xc6d2	; 0xc6d2 <lcd_writebits(unsigned char)>
#ifndef LCD_8BIT
	if (!(flags & LCD_HALF_FLAG)) {
    c73e:	d1 fd       	sbrc	r29, 1
    c740:	04 c0       	rjmp	.+8      	; 0xc74a <lcd_send(unsigned char, unsigned char, unsigned int)+0x2e>
		// _delay_us(LCD_DEFAULT_DELAY); // should not be needed when sending a two nibble instruction.
		lcd_writebits((data << 4) | (data >> 4)); //force efficient swap opcode even though the lower nibble is ignored in this case
    c742:	8c 2f       	mov	r24, r28
    c744:	82 95       	swap	r24
    c746:	0e 94 69 63 	call	0xc6d2	; 0xc6d2 <lcd_writebits(unsigned char)>
	}
#endif
	delayMicroseconds(duration);
    c74a:	c8 01       	movw	r24, r16
}
    c74c:	df 91       	pop	r29
    c74e:	cf 91       	pop	r28
    c750:	1f 91       	pop	r17
    c752:	0f 91       	pop	r16
	if (!(flags & LCD_HALF_FLAG)) {
		// _delay_us(LCD_DEFAULT_DELAY); // should not be needed when sending a two nibble instruction.
		lcd_writebits((data << 4) | (data >> 4)); //force efficient swap opcode even though the lower nibble is ignored in this case
	}
#endif
	delayMicroseconds(duration);
    c754:	0c 94 68 e9 	jmp	0x1d2d0	; 0x1d2d0 <delayMicroseconds>
	lcd_pulseEnable();
}

static void lcd_send(uint8_t data, uint8_t flags, uint16_t duration = LCD_DEFAULT_DELAY)
{
	WRITE(LCD_PINS_RS,flags&LCD_RS_FLAG);
    c758:	5d 98       	cbi	0x0b, 5	; 11
    c75a:	ea cf       	rjmp	.-44     	; 0xc730 <lcd_send(unsigned char, unsigned char, unsigned int)+0x14>

0000c75c <eeprom_init_default_float(float*, float)>:
        return def;
    }
    return val;
}

void __attribute__((noinline)) eeprom_init_default_float(float *__p, float def) {
    c75c:	cf 92       	push	r12
    c75e:	df 92       	push	r13
    c760:	ef 92       	push	r14
    c762:	ff 92       	push	r15
    c764:	cf 93       	push	r28
    c766:	df 93       	push	r29
    c768:	ec 01       	movw	r28, r24
    c76a:	6a 01       	movw	r12, r20
    c76c:	7b 01       	movw	r14, r22
    if (eeprom_read_dword((uint32_t*)__p) == EEPROM_EMPTY_VALUE32)
    c76e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
    c772:	6f 3f       	cpi	r22, 0xFF	; 255
    c774:	7f 4f       	sbci	r23, 0xFF	; 255
    c776:	8f 4f       	sbci	r24, 0xFF	; 255
    c778:	9f 4f       	sbci	r25, 0xFF	; 255
    c77a:	59 f4       	brne	.+22     	; 0xc792 <eeprom_init_default_float(float*, float)+0x36>
    if (active) {
        float previous_value = eeprom_read_float(dst);
        eeprom_float_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_float(dst, value);
    c77c:	b7 01       	movw	r22, r14
    c77e:	a6 01       	movw	r20, r12
    c780:	ce 01       	movw	r24, r28
}

void __attribute__((noinline)) eeprom_init_default_float(float *__p, float def) {
    if (eeprom_read_dword((uint32_t*)__p) == EEPROM_EMPTY_VALUE32)
        eeprom_write_float_notify(__p, def);
}
    c782:	df 91       	pop	r29
    c784:	cf 91       	pop	r28
    c786:	ff 90       	pop	r15
    c788:	ef 90       	pop	r14
    c78a:	df 90       	pop	r13
    c78c:	cf 90       	pop	r12
    if (active) {
        float previous_value = eeprom_read_float(dst);
        eeprom_float_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_float(dst, value);
    c78e:	0d 94 b1 dc 	jmp	0x3b962	; 0x3b962 <eeprom_write_dword>
}

void __attribute__((noinline)) eeprom_init_default_float(float *__p, float def) {
    if (eeprom_read_dword((uint32_t*)__p) == EEPROM_EMPTY_VALUE32)
        eeprom_write_float_notify(__p, def);
}
    c792:	df 91       	pop	r29
    c794:	cf 91       	pop	r28
    c796:	ff 90       	pop	r15
    c798:	ef 90       	pop	r14
    c79a:	df 90       	pop	r13
    c79c:	cf 90       	pop	r12
    c79e:	08 95       	ret

0000c7a0 <refresh_print_state_in_ram() [clone .part.39]>:
/// This function should backup variables which may be lost
/// For example a power panic in M600 or during MMU error
void refresh_print_state_in_ram()
{
    if (saved_printing) return;
    memcpy(saved_pos, current_position, sizeof(saved_pos));
    c7a0:	80 e1       	ldi	r24, 0x10	; 16
    c7a2:	e2 e9       	ldi	r30, 0x92	; 146
    c7a4:	f6 e0       	ldi	r31, 0x06	; 6
    c7a6:	a3 e7       	ldi	r26, 0x73	; 115
    c7a8:	b2 e0       	ldi	r27, 0x02	; 2
    c7aa:	01 90       	ld	r0, Z+
    c7ac:	0d 92       	st	X+, r0
    c7ae:	8a 95       	dec	r24
    c7b0:	e1 f7       	brne	.-8      	; 0xc7aa <refresh_print_state_in_ram() [clone .part.39]+0xa>
    saved_feedmultiply2 = feedmultiply; //save feedmultiply
    c7b2:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
    c7b6:	90 91 3a 02 	lds	r25, 0x023A	; 0x80023a <feedmultiply+0x1>
    c7ba:	90 93 72 03 	sts	0x0372, r25	; 0x800372 <saved_feedmultiply2+0x1>
    c7be:	80 93 71 03 	sts	0x0371, r24	; 0x800371 <saved_feedmultiply2>
    saved_extruder_temperature = (uint16_t)degTargetHotend(active_extruder);
    c7c2:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
    c7c6:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
    c7ca:	90 93 ad 05 	sts	0x05AD, r25	; 0x8005ad <saved_extruder_temperature+0x1>
    c7ce:	80 93 ac 05 	sts	0x05AC, r24	; 0x8005ac <saved_extruder_temperature>
    saved_bed_temperature = (uint8_t)degTargetBed();
    c7d2:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
    c7d6:	80 93 ae 05 	sts	0x05AE, r24	; 0x8005ae <saved_bed_temperature>
    saved_extruder_relative_mode = axis_relative_modes & E_AXIS_MASK;
    c7da:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
    c7de:	83 fb       	bst	r24, 3
    c7e0:	88 27       	eor	r24, r24
    c7e2:	80 f9       	bld	r24, 0
    c7e4:	80 93 64 05 	sts	0x0564, r24	; 0x800564 <saved_extruder_relative_mode>
    saved_fan_speed = fanSpeed;
    c7e8:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
    c7ec:	80 93 ab 05 	sts	0x05AB, r24	; 0x8005ab <saved_fan_speed>
    isPartialBackupAvailable = true;
    c7f0:	81 e0       	ldi	r24, 0x01	; 1
    c7f2:	80 93 a2 06 	sts	0x06A2, r24	; 0x8006a2 <isPartialBackupAvailable>
}
    c7f6:	08 95       	ret

0000c7f8 <_GLOBAL__sub_D_card>:
    while(!lcd_clicked())
    {
        delay_keep_alive(0);
    }
    KEEPALIVE_STATE(busy_state_backup);
}
    c7f8:	cf 93       	push	r28
    c7fa:	df 93       	push	r29
//------------------------------------------------------------------------------
/**
 * \class SdFile
 * \brief SdBaseFile with Print.
 */
class SdFile : public SdBaseFile/*, public Print*/ {
    c7fc:	80 e2       	ldi	r24, 0x20	; 32
    c7fe:	97 e1       	ldi	r25, 0x17	; 23
    c800:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
#ifdef SDSUPPORT

#define MAX_DIR_DEPTH 6

#include "SdFile.h"
class CardReader
    c804:	8e e5       	ldi	r24, 0x5E	; 94
    c806:	95 e1       	ldi	r25, 0x15	; 21
    c808:	89 2b       	or	r24, r25
    c80a:	51 f0       	breq	.+20     	; 0xc820 <_GLOBAL__sub_D_card+0x28>
    c80c:	c0 e3       	ldi	r28, 0x30	; 48
    c80e:	d6 e1       	ldi	r29, 0x16	; 22
    c810:	a3 97       	sbiw	r28, 0x23	; 35
    c812:	ce 01       	movw	r24, r28
    c814:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
    c818:	85 e1       	ldi	r24, 0x15	; 21
    c81a:	ce 35       	cpi	r28, 0x5E	; 94
    c81c:	d8 07       	cpc	r29, r24
    c81e:	c1 f7       	brne	.-16     	; 0xc810 <_GLOBAL__sub_D_card+0x18>
    c820:	8b e3       	ldi	r24, 0x3B	; 59
    c822:	95 e1       	ldi	r25, 0x15	; 21
    c824:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
    c828:	86 e1       	ldi	r24, 0x16	; 22
    c82a:	95 e1       	ldi	r25, 0x15	; 21
    c82c:	df 91       	pop	r29
    c82e:	cf 91       	pop	r28
    c830:	0c 94 b8 76 	jmp	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>

0000c834 <load_filament_final_feed()>:
    print_time_to_change_normal = PRINT_TIME_REMAINING_INIT;
    print_time_to_change_silent = PRINT_TIME_REMAINING_INIT;
}

void load_filament_final_feed()
{
    c834:	cf 93       	push	r28
    c836:	df 93       	push	r29
	current_position[E_AXIS]+= FILAMENTCHANGE_FINALFEED;
    c838:	c2 e9       	ldi	r28, 0x92	; 146
    c83a:	d6 e0       	ldi	r29, 0x06	; 6
    c83c:	20 e0       	ldi	r18, 0x00	; 0
    c83e:	30 e0       	ldi	r19, 0x00	; 0
    c840:	48 ec       	ldi	r20, 0xC8	; 200
    c842:	51 e4       	ldi	r21, 0x41	; 65
    c844:	6c 85       	ldd	r22, Y+12	; 0x0c
    c846:	7d 85       	ldd	r23, Y+13	; 0x0d
    c848:	8e 85       	ldd	r24, Y+14	; 0x0e
    c84a:	9f 85       	ldd	r25, Y+15	; 0x0f
    c84c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    c850:	6c 87       	std	Y+12, r22	; 0x0c
    c852:	7d 87       	std	Y+13, r23	; 0x0d
    c854:	8e 87       	std	Y+14, r24	; 0x0e
    c856:	9f 87       	std	Y+15, r25	; 0x0f
	plan_buffer_line_curposXYZE(FILAMENTCHANGE_EFEED_FINAL);
    c858:	63 e3       	ldi	r22, 0x33	; 51
    c85a:	73 e3       	ldi	r23, 0x33	; 51
    c85c:	83 e5       	ldi	r24, 0x53	; 83
    c85e:	90 e4       	ldi	r25, 0x40	; 64
}
    c860:	df 91       	pop	r29
    c862:	cf 91       	pop	r28
}

void load_filament_final_feed()
{
	current_position[E_AXIS]+= FILAMENTCHANGE_FINALFEED;
	plan_buffer_line_curposXYZE(FILAMENTCHANGE_EFEED_FINAL);
    c864:	0d 94 88 c0 	jmp	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

0000c868 <cancel_saved_printing()>:
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
    c868:	60 e0       	ldi	r22, 0x00	; 0
    c86a:	85 ea       	ldi	r24, 0xA5	; 165
    c86c:	9f e0       	ldi	r25, 0x0F	; 15
    c86e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    c872:	60 e0       	ldi	r22, 0x00	; 0
    c874:	8f e7       	ldi	r24, 0x7F	; 127
    c876:	9c e0       	ldi	r25, 0x0C	; 12
    c878:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
// Cancel the state related to a currently saved print
void cancel_saved_printing()
{
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO_Z_LIFTED, 0);
    saved_start_position[0] = SAVED_START_POSITION_UNSET;
    c87c:	80 e0       	ldi	r24, 0x00	; 0
    c87e:	90 e0       	ldi	r25, 0x00	; 0
    c880:	a0 e8       	ldi	r26, 0x80	; 128
    c882:	bf eb       	ldi	r27, 0xBF	; 191
    c884:	80 93 83 02 	sts	0x0283, r24	; 0x800283 <saved_start_position>
    c888:	90 93 84 02 	sts	0x0284, r25	; 0x800284 <saved_start_position+0x1>
    c88c:	a0 93 85 02 	sts	0x0285, r26	; 0x800285 <saved_start_position+0x2>
    c890:	b0 93 86 02 	sts	0x0286, r27	; 0x800286 <saved_start_position+0x3>
    saved_printing_type = PowerPanic::PRINT_TYPE_NONE;
    c894:	82 e0       	ldi	r24, 0x02	; 2
    c896:	80 93 6a 02 	sts	0x026A, r24	; 0x80026a <saved_printing_type>
    saved_printing = false;
    c89a:	10 92 a9 0d 	sts	0x0DA9, r1	; 0x800da9 <saved_printing>
}
    c89e:	08 95       	ret

0000c8a0 <restore_extruder_temperature_from_ram()>:

    enquecommandf_P(MSG_M23, filename);
}

void restore_extruder_temperature_from_ram() {
    if ((uint16_t)degTargetHotend(active_extruder) != saved_extruder_temperature)
    c8a0:	80 91 ac 05 	lds	r24, 0x05AC	; 0x8005ac <saved_extruder_temperature>
    c8a4:	90 91 ad 05 	lds	r25, 0x05AD	; 0x8005ad <saved_extruder_temperature+0x1>
    c8a8:	20 91 b6 0d 	lds	r18, 0x0DB6	; 0x800db6 <target_temperature>
    c8ac:	30 91 b7 0d 	lds	r19, 0x0DB7	; 0x800db7 <target_temperature+0x1>
    c8b0:	28 17       	cp	r18, r24
    c8b2:	39 07       	cpc	r19, r25
    c8b4:	71 f0       	breq	.+28     	; 0xc8d2 <restore_extruder_temperature_from_ram()+0x32>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
    c8b6:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
    c8ba:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
    {
        setTargetHotend(saved_extruder_temperature);
        heating_status = HeatingStatus::EXTRUDER_HEATING;
    c8be:	81 e0       	ldi	r24, 0x01	; 1
    c8c0:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>
        wait_for_heater(_millis(), active_extruder);
    c8c4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    c8c8:	0f 94 23 83 	call	0x30646	; 0x30646 <wait_for_heater(long, unsigned char) [clone .constprop.214]>
        heating_status = HeatingStatus::EXTRUDER_HEATING_COMPLETE;
    c8cc:	82 e0       	ldi	r24, 0x02	; 2
    c8ce:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>
    }
}
    c8d2:	08 95       	ret

0000c8d4 <refresh_saved_feedrate_multiplier_in_ram()>:
    saved_fan_speed = fanSpeed;
    isPartialBackupAvailable = true;
}

void __attribute__((noinline)) refresh_saved_feedrate_multiplier_in_ram() {
    if (!saved_printing) {
    c8d4:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
    c8d8:	88 23       	and	r24, r24
    c8da:	41 f0       	breq	.+16     	; 0xc8ec <refresh_saved_feedrate_multiplier_in_ram()+0x18>
        // There is no saved print, therefore nothing to refresh
        return;
    }

    saved_feedmultiply2 = feedmultiply;
    c8dc:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
    c8e0:	90 91 3a 02 	lds	r25, 0x023A	; 0x80023a <feedmultiply+0x1>
    c8e4:	90 93 72 03 	sts	0x0372, r25	; 0x800372 <saved_feedmultiply2+0x1>
    c8e8:	80 93 71 03 	sts	0x0371, r24	; 0x800371 <saved_feedmultiply2>
}
    c8ec:	08 95       	ret

0000c8ee <save_planner_global_state()>:
      //not sd printing nor usb printing
    }
}

void save_planner_global_state() {
    if (current_block && !(mesh_bed_leveling_flag || homing_flag))
    c8ee:	80 91 a1 05 	lds	r24, 0x05A1	; 0x8005a1 <current_block>
    c8f2:	90 91 a2 05 	lds	r25, 0x05A2	; 0x8005a2 <current_block+0x1>
    c8f6:	00 97       	sbiw	r24, 0x00	; 0
    c8f8:	29 f1       	breq	.+74     	; 0xc944 <save_planner_global_state()+0x56>
    c8fa:	20 91 a8 0d 	lds	r18, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
    c8fe:	21 11       	cpse	r18, r1
    c900:	21 c0       	rjmp	.+66     	; 0xc944 <save_planner_global_state()+0x56>
    c902:	20 91 a7 0d 	lds	r18, 0x0DA7	; 0x800da7 <homing_flag>
    c906:	21 11       	cpse	r18, r1
    c908:	1d c0       	rjmp	.+58     	; 0xc944 <save_planner_global_state()+0x56>
    {
        memcpy(saved_start_position, current_block->gcode_start_position, sizeof(saved_start_position));
    c90a:	fc 01       	movw	r30, r24
    c90c:	e8 5a       	subi	r30, 0xA8	; 168
    c90e:	ff 4f       	sbci	r31, 0xFF	; 255
    c910:	20 e1       	ldi	r18, 0x10	; 16
    c912:	a3 e8       	ldi	r26, 0x83	; 131
    c914:	b2 e0       	ldi	r27, 0x02	; 2
    c916:	01 90       	ld	r0, Z+
    c918:	0d 92       	st	X+, r0
    c91a:	2a 95       	dec	r18
    c91c:	e1 f7       	brne	.-8      	; 0xc916 <save_planner_global_state()+0x28>
        saved_feedrate2 = current_block->gcode_feedrate;
    c91e:	fc 01       	movw	r30, r24
    c920:	e6 59       	subi	r30, 0x96	; 150
    c922:	ff 4f       	sbci	r31, 0xFF	; 255
    c924:	20 81       	ld	r18, Z
    c926:	31 81       	ldd	r19, Z+1	; 0x01
    c928:	30 93 5f 05 	sts	0x055F, r19	; 0x80055f <saved_feedrate2+0x1>
    c92c:	20 93 5e 05 	sts	0x055E, r18	; 0x80055e <saved_feedrate2>
        saved_segment_idx = current_block->segment_idx;
    c930:	88 59       	subi	r24, 0x98	; 152
    c932:	9f 4f       	sbci	r25, 0xFF	; 255
    c934:	fc 01       	movw	r30, r24
    c936:	80 81       	ld	r24, Z
    c938:	91 81       	ldd	r25, Z+1	; 0x01
    c93a:	90 93 6a 05 	sts	0x056A, r25	; 0x80056a <saved_segment_idx+0x1>
    c93e:	80 93 69 05 	sts	0x0569, r24	; 0x800569 <saved_segment_idx>
    c942:	08 95       	ret
    }
    else
    {
        saved_start_position[0] = SAVED_START_POSITION_UNSET;
    c944:	80 e0       	ldi	r24, 0x00	; 0
    c946:	90 e0       	ldi	r25, 0x00	; 0
    c948:	a0 e8       	ldi	r26, 0x80	; 128
    c94a:	bf eb       	ldi	r27, 0xBF	; 191
    c94c:	80 93 83 02 	sts	0x0283, r24	; 0x800283 <saved_start_position>
    c950:	90 93 84 02 	sts	0x0284, r25	; 0x800284 <saved_start_position+0x1>
    c954:	a0 93 85 02 	sts	0x0285, r26	; 0x800285 <saved_start_position+0x2>
    c958:	b0 93 86 02 	sts	0x0286, r27	; 0x800286 <saved_start_position+0x3>
        saved_feedrate2 = feedrate;
    c95c:	60 91 b8 02 	lds	r22, 0x02B8	; 0x8002b8 <feedrate>
    c960:	70 91 b9 02 	lds	r23, 0x02B9	; 0x8002b9 <feedrate+0x1>
    c964:	80 91 ba 02 	lds	r24, 0x02BA	; 0x8002ba <feedrate+0x2>
    c968:	90 91 bb 02 	lds	r25, 0x02BB	; 0x8002bb <feedrate+0x3>
    c96c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
    c970:	70 93 5f 05 	sts	0x055F, r23	; 0x80055f <saved_feedrate2+0x1>
    c974:	60 93 5e 05 	sts	0x055E, r22	; 0x80055e <saved_feedrate2>
        saved_segment_idx = 0;
    c978:	10 92 6a 05 	sts	0x056A, r1	; 0x80056a <saved_segment_idx+0x1>
    c97c:	10 92 69 05 	sts	0x0569, r1	; 0x800569 <saved_segment_idx>
    }
}
    c980:	08 95       	ret

0000c982 <save_print_file_state()>:
	SERIAL_PROTOCOLPGM(" E:0 B:");
	SERIAL_PROTOCOL_F(degBed(), 1);
	SERIAL_PROTOCOLLN();
}

void save_print_file_state() {
    c982:	cf 92       	push	r12
    c984:	df 92       	push	r13
    c986:	ef 92       	push	r14
    c988:	ff 92       	push	r15
    uint8_t nlines;
    uint16_t sdlen_cmdqueue;
    uint16_t sdlen_planner;

    if (card.sdprinting) {
    c98a:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
    c98e:	88 23       	and	r24, r24
    c990:	d9 f1       	breq	.+118    	; 0xca08 <save_print_file_state()+0x86>
        saved_sdpos = sdpos_atomic; //atomic sd position of last command added in queue
    c992:	80 91 82 03 	lds	r24, 0x0382	; 0x800382 <sdpos_atomic>
    c996:	90 91 83 03 	lds	r25, 0x0383	; 0x800383 <sdpos_atomic+0x1>
    c99a:	a0 91 84 03 	lds	r26, 0x0384	; 0x800384 <sdpos_atomic+0x2>
    c99e:	b0 91 85 03 	lds	r27, 0x0385	; 0x800385 <sdpos_atomic+0x3>
    c9a2:	80 93 60 05 	sts	0x0560, r24	; 0x800560 <saved_sdpos>
    c9a6:	90 93 61 05 	sts	0x0561, r25	; 0x800561 <saved_sdpos+0x1>
    c9aa:	a0 93 62 05 	sts	0x0562, r26	; 0x800562 <saved_sdpos+0x2>
    c9ae:	b0 93 63 05 	sts	0x0563, r27	; 0x800563 <saved_sdpos+0x3>
        sdlen_planner = planner_calc_sd_length(); //length of sd commands in planner
    c9b2:	0f 94 71 64 	call	0x2c8e2	; 0x2c8e2 <planner_calc_sd_length()>
        saved_sdpos -= sdlen_planner;
    c9b6:	c0 90 60 05 	lds	r12, 0x0560	; 0x800560 <saved_sdpos>
    c9ba:	d0 90 61 05 	lds	r13, 0x0561	; 0x800561 <saved_sdpos+0x1>
    c9be:	e0 90 62 05 	lds	r14, 0x0562	; 0x800562 <saved_sdpos+0x2>
    c9c2:	f0 90 63 05 	lds	r15, 0x0563	; 0x800563 <saved_sdpos+0x3>
    c9c6:	c8 1a       	sub	r12, r24
    c9c8:	d9 0a       	sbc	r13, r25
    c9ca:	e1 08       	sbc	r14, r1
    c9cc:	f1 08       	sbc	r15, r1
    c9ce:	c0 92 60 05 	sts	0x0560, r12	; 0x800560 <saved_sdpos>
    c9d2:	d0 92 61 05 	sts	0x0561, r13	; 0x800561 <saved_sdpos+0x1>
    c9d6:	e0 92 62 05 	sts	0x0562, r14	; 0x800562 <saved_sdpos+0x2>
    c9da:	f0 92 63 05 	sts	0x0563, r15	; 0x800563 <saved_sdpos+0x3>
        sdlen_cmdqueue = cmdqueue_calc_sd_length(); //length of sd commands in cmdqueue
    c9de:	0e 94 9a 5a 	call	0xb534	; 0xb534 <cmdqueue_calc_sd_length()>
        saved_sdpos -= sdlen_cmdqueue;
    c9e2:	c8 1a       	sub	r12, r24
    c9e4:	d9 0a       	sbc	r13, r25
    c9e6:	e1 08       	sbc	r14, r1
    c9e8:	f1 08       	sbc	r15, r1
    c9ea:	c0 92 60 05 	sts	0x0560, r12	; 0x800560 <saved_sdpos>
    c9ee:	d0 92 61 05 	sts	0x0561, r13	; 0x800561 <saved_sdpos+0x1>
    c9f2:	e0 92 62 05 	sts	0x0562, r14	; 0x800562 <saved_sdpos+0x2>
    c9f6:	f0 92 63 05 	sts	0x0563, r15	; 0x800563 <saved_sdpos+0x3>
        saved_printing_type = PowerPanic::PRINT_TYPE_SD;
    c9fa:	10 92 6a 02 	sts	0x026A, r1	; 0x80026a <saved_printing_type>
    }
    else {
        saved_printing_type = PowerPanic::PRINT_TYPE_NONE;
        //not sd printing nor usb printing
    }
}
    c9fe:	ff 90       	pop	r15
    ca00:	ef 90       	pop	r14
    ca02:	df 90       	pop	r13
    ca04:	cf 90       	pop	r12
    ca06:	08 95       	ret
        saved_sdpos -= sdlen_planner;
        sdlen_cmdqueue = cmdqueue_calc_sd_length(); //length of sd commands in cmdqueue
        saved_sdpos -= sdlen_cmdqueue;
        saved_printing_type = PowerPanic::PRINT_TYPE_SD;
    }
    else if (usb_timer.running()) { //reuse saved_sdpos for storing line number
    ca08:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
    ca0c:	88 23       	and	r24, r24
    ca0e:	b1 f1       	breq	.+108    	; 0xca7c <save_print_file_state()+0xfa>
        saved_sdpos = gcode_LastN; //start with line number of command added recently to cmd queue
    ca10:	80 91 7a 03 	lds	r24, 0x037A	; 0x80037a <gcode_LastN>
    ca14:	90 91 7b 03 	lds	r25, 0x037B	; 0x80037b <gcode_LastN+0x1>
    ca18:	a0 91 7c 03 	lds	r26, 0x037C	; 0x80037c <gcode_LastN+0x2>
    ca1c:	b0 91 7d 03 	lds	r27, 0x037D	; 0x80037d <gcode_LastN+0x3>
    ca20:	80 93 60 05 	sts	0x0560, r24	; 0x800560 <saved_sdpos>
    ca24:	90 93 61 05 	sts	0x0561, r25	; 0x800561 <saved_sdpos+0x1>
    ca28:	a0 93 62 05 	sts	0x0562, r26	; 0x800562 <saved_sdpos+0x2>
    ca2c:	b0 93 63 05 	sts	0x0563, r27	; 0x800563 <saved_sdpos+0x3>
        //reuse planner_calc_sd_length function for getting number of lines of commands in planner:
        nlines = planner_calc_sd_length(); //number of lines of commands in planner
    ca30:	0f 94 71 64 	call	0x2c8e2	; 0x2c8e2 <planner_calc_sd_length()>
        saved_sdpos -= nlines;
    ca34:	40 91 60 05 	lds	r20, 0x0560	; 0x800560 <saved_sdpos>
    ca38:	50 91 61 05 	lds	r21, 0x0561	; 0x800561 <saved_sdpos+0x1>
    ca3c:	60 91 62 05 	lds	r22, 0x0562	; 0x800562 <saved_sdpos+0x2>
    ca40:	70 91 63 05 	lds	r23, 0x0563	; 0x800563 <saved_sdpos+0x3>
    ca44:	48 1b       	sub	r20, r24
    ca46:	51 09       	sbc	r21, r1
    ca48:	61 09       	sbc	r22, r1
    ca4a:	71 09       	sbc	r23, r1
        saved_sdpos -= buflen; //number of blocks in cmd buffer
    ca4c:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
    ca50:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
    ca54:	09 2e       	mov	r0, r25
    ca56:	00 0c       	add	r0, r0
    ca58:	aa 0b       	sbc	r26, r26
    ca5a:	bb 0b       	sbc	r27, r27
    ca5c:	48 1b       	sub	r20, r24
    ca5e:	59 0b       	sbc	r21, r25
    ca60:	6a 0b       	sbc	r22, r26
    ca62:	7b 0b       	sbc	r23, r27
    ca64:	40 93 60 05 	sts	0x0560, r20	; 0x800560 <saved_sdpos>
    ca68:	50 93 61 05 	sts	0x0561, r21	; 0x800561 <saved_sdpos+0x1>
    ca6c:	60 93 62 05 	sts	0x0562, r22	; 0x800562 <saved_sdpos+0x2>
    ca70:	70 93 63 05 	sts	0x0563, r23	; 0x800563 <saved_sdpos+0x3>
        saved_printing_type = PowerPanic::PRINT_TYPE_HOST;
    ca74:	81 e0       	ldi	r24, 0x01	; 1
    }
    else {
        saved_printing_type = PowerPanic::PRINT_TYPE_NONE;
    ca76:	80 93 6a 02 	sts	0x026A, r24	; 0x80026a <saved_printing_type>
    ca7a:	c1 cf       	rjmp	.-126    	; 0xc9fe <save_print_file_state()+0x7c>
    ca7c:	82 e0       	ldi	r24, 0x02	; 2
    ca7e:	fb cf       	rjmp	.-10     	; 0xca76 <save_print_file_state()+0xf4>

0000ca80 <calculate_extruder_multipliers()>:
  if (extrudemultiply != 100)
    out *= float(extrudemultiply) * 0.01f;
  return out;
}

void calculate_extruder_multipliers() {
    ca80:	cf 92       	push	r12
    ca82:	df 92       	push	r13
    ca84:	ef 92       	push	r14
    ca86:	ff 92       	push	r15
	extruder_multiplier[0] = calculate_extruder_multiplier(cs.filament_size[0]);
    ca88:	c0 90 56 0e 	lds	r12, 0x0E56	; 0x800e56 <cs+0x98>
    ca8c:	d0 90 57 0e 	lds	r13, 0x0E57	; 0x800e57 <cs+0x99>
    ca90:	e0 90 58 0e 	lds	r14, 0x0E58	; 0x800e58 <cs+0x9a>
    ca94:	f0 90 59 0e 	lds	r15, 0x0E59	; 0x800e59 <cs+0x9b>
    }
}

float calculate_extruder_multiplier(float diameter) {
  float out = 1.f;
  if (cs.volumetric_enabled && diameter > 0.f) {
    ca98:	80 91 55 0e 	lds	r24, 0x0E55	; 0x800e55 <cs+0x97>
    ca9c:	88 23       	and	r24, r24
    ca9e:	09 f4       	brne	.+2      	; 0xcaa2 <calculate_extruder_multipliers()+0x22>
    caa0:	4e c0       	rjmp	.+156    	; 0xcb3e <calculate_extruder_multipliers()+0xbe>
    caa2:	20 e0       	ldi	r18, 0x00	; 0
    caa4:	30 e0       	ldi	r19, 0x00	; 0
    caa6:	a9 01       	movw	r20, r18
    caa8:	c7 01       	movw	r24, r14
    caaa:	b6 01       	movw	r22, r12
    caac:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    cab0:	18 16       	cp	r1, r24
    cab2:	0c f0       	brlt	.+2      	; 0xcab6 <calculate_extruder_multipliers()+0x36>
    cab4:	44 c0       	rjmp	.+136    	; 0xcb3e <calculate_extruder_multipliers()+0xbe>
    float area = M_PI * diameter * diameter * 0.25;
    cab6:	2b ed       	ldi	r18, 0xDB	; 219
    cab8:	3f e0       	ldi	r19, 0x0F	; 15
    caba:	49 e4       	ldi	r20, 0x49	; 73
    cabc:	50 e4       	ldi	r21, 0x40	; 64
    cabe:	c7 01       	movw	r24, r14
    cac0:	b6 01       	movw	r22, r12
    cac2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    cac6:	a7 01       	movw	r20, r14
    cac8:	96 01       	movw	r18, r12
    caca:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    cace:	20 e0       	ldi	r18, 0x00	; 0
    cad0:	30 e0       	ldi	r19, 0x00	; 0
    cad2:	40 e8       	ldi	r20, 0x80	; 128
    cad4:	5e e3       	ldi	r21, 0x3E	; 62
    cad6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    cada:	9b 01       	movw	r18, r22
    cadc:	ac 01       	movw	r20, r24
    out = 1.f / area;
    cade:	60 e0       	ldi	r22, 0x00	; 0
    cae0:	70 e0       	ldi	r23, 0x00	; 0
    cae2:	80 e8       	ldi	r24, 0x80	; 128
    cae4:	9f e3       	ldi	r25, 0x3F	; 63
    cae6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    caea:	6b 01       	movw	r12, r22
    caec:	7c 01       	movw	r14, r24
  }
  if (extrudemultiply != 100)
    caee:	60 91 bc 02 	lds	r22, 0x02BC	; 0x8002bc <extrudemultiply>
    caf2:	70 91 bd 02 	lds	r23, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
    caf6:	64 36       	cpi	r22, 0x64	; 100
    caf8:	71 05       	cpc	r23, r1
    cafa:	a1 f0       	breq	.+40     	; 0xcb24 <calculate_extruder_multipliers()+0xa4>
    out *= float(extrudemultiply) * 0.01f;
    cafc:	07 2e       	mov	r0, r23
    cafe:	00 0c       	add	r0, r0
    cb00:	88 0b       	sbc	r24, r24
    cb02:	99 0b       	sbc	r25, r25
    cb04:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    cb08:	2a e0       	ldi	r18, 0x0A	; 10
    cb0a:	37 ed       	ldi	r19, 0xD7	; 215
    cb0c:	43 e2       	ldi	r20, 0x23	; 35
    cb0e:	5c e3       	ldi	r21, 0x3C	; 60
    cb10:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    cb14:	9b 01       	movw	r18, r22
    cb16:	ac 01       	movw	r20, r24
    cb18:	c7 01       	movw	r24, r14
    cb1a:	b6 01       	movw	r22, r12
    cb1c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    cb20:	6b 01       	movw	r12, r22
    cb22:	7c 01       	movw	r14, r24
  return out;
}

void calculate_extruder_multipliers() {
	extruder_multiplier[0] = calculate_extruder_multiplier(cs.filament_size[0]);
    cb24:	c0 92 93 02 	sts	0x0293, r12	; 0x800293 <extruder_multiplier>
    cb28:	d0 92 94 02 	sts	0x0294, r13	; 0x800294 <extruder_multiplier+0x1>
    cb2c:	e0 92 95 02 	sts	0x0295, r14	; 0x800295 <extruder_multiplier+0x2>
    cb30:	f0 92 96 02 	sts	0x0296, r15	; 0x800296 <extruder_multiplier+0x3>
	extruder_multiplier[1] = calculate_extruder_multiplier(cs.filament_size[1]);
#if EXTRUDERS > 2
	extruder_multiplier[2] = calculate_extruder_multiplier(cs.filament_size[2]);
#endif
#endif
}
    cb34:	ff 90       	pop	r15
    cb36:	ef 90       	pop	r14
    cb38:	df 90       	pop	r13
    cb3a:	cf 90       	pop	r12
    cb3c:	08 95       	ret
        MMU2::mmu2.ClearTMCFailures(); // not stored into EEPROM
    }
}

float calculate_extruder_multiplier(float diameter) {
  float out = 1.f;
    cb3e:	c1 2c       	mov	r12, r1
    cb40:	d1 2c       	mov	r13, r1
    cb42:	80 e8       	ldi	r24, 0x80	; 128
    cb44:	e8 2e       	mov	r14, r24
    cb46:	8f e3       	ldi	r24, 0x3F	; 63
    cb48:	f8 2e       	mov	r15, r24
    cb4a:	d1 cf       	rjmp	.-94     	; 0xcaee <calculate_extruder_multipliers()+0x6e>

0000cb4c <save_statistics()>:

  }
}
#endif //FAST_PWM_FAN

void save_statistics() {
    cb4c:	8f 92       	push	r8
    cb4e:	9f 92       	push	r9
    cb50:	af 92       	push	r10
    cb52:	bf 92       	push	r11
    cb54:	cf 92       	push	r12
    cb56:	df 92       	push	r13
    cb58:	ef 92       	push	r14
    cb5a:	ff 92       	push	r15
    uint32_t _previous_filament = eeprom_init_default_dword((uint32_t *)EEPROM_FILAMENTUSED, 0); //_previous_filament unit: centimeter
    cb5c:	81 ef       	ldi	r24, 0xF1	; 241
    cb5e:	9f e0       	ldi	r25, 0x0F	; 15
    cb60:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    cb64:	6b 01       	movw	r12, r22
    cb66:	7c 01       	movw	r14, r24
    uint32_t _previous_time = eeprom_init_default_dword((uint32_t *)EEPROM_TOTALTIME, 0);        //_previous_time unit: min
    cb68:	8d ee       	ldi	r24, 0xED	; 237
    cb6a:	9f e0       	ldi	r25, 0x0F	; 15
    cb6c:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    cb70:	4b 01       	movw	r8, r22
    cb72:	5c 01       	movw	r10, r24

    uint32_t time_minutes = print_job_timer.duration() / 60;
    cb74:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
    cb78:	2c e3       	ldi	r18, 0x3C	; 60
    cb7a:	30 e0       	ldi	r19, 0x00	; 0
    cb7c:	40 e0       	ldi	r20, 0x00	; 0
    cb7e:	50 e0       	ldi	r21, 0x00	; 0
    cb80:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
    eeprom_update_dword_notify((uint32_t *)EEPROM_TOTALTIME, _previous_time + time_minutes); // EEPROM_TOTALTIME unit: min
    cb84:	ba 01       	movw	r22, r20
    cb86:	a9 01       	movw	r20, r18
    cb88:	48 0d       	add	r20, r8
    cb8a:	59 1d       	adc	r21, r9
    cb8c:	6a 1d       	adc	r22, r10
    cb8e:	7b 1d       	adc	r23, r11
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
    cb90:	8d ee       	ldi	r24, 0xED	; 237
    cb92:	9f e0       	ldi	r25, 0x0F	; 15
    cb94:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
    eeprom_update_dword_notify((uint32_t *)EEPROM_FILAMENTUSED, _previous_filament + (total_filament_used / 1000));
    cb98:	60 91 65 06 	lds	r22, 0x0665	; 0x800665 <total_filament_used>
    cb9c:	70 91 66 06 	lds	r23, 0x0666	; 0x800666 <total_filament_used+0x1>
    cba0:	80 91 67 06 	lds	r24, 0x0667	; 0x800667 <total_filament_used+0x2>
    cba4:	90 91 68 06 	lds	r25, 0x0668	; 0x800668 <total_filament_used+0x3>
    cba8:	28 ee       	ldi	r18, 0xE8	; 232
    cbaa:	33 e0       	ldi	r19, 0x03	; 3
    cbac:	40 e0       	ldi	r20, 0x00	; 0
    cbae:	50 e0       	ldi	r21, 0x00	; 0
    cbb0:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
    cbb4:	ba 01       	movw	r22, r20
    cbb6:	a9 01       	movw	r20, r18
    cbb8:	4c 0d       	add	r20, r12
    cbba:	5d 1d       	adc	r21, r13
    cbbc:	6e 1d       	adc	r22, r14
    cbbe:	7f 1d       	adc	r23, r15
    cbc0:	81 ef       	ldi	r24, 0xF1	; 241
    cbc2:	9f e0       	ldi	r25, 0x0F	; 15
    cbc4:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>

    print_job_timer.reset();
    cbc8:	0f 94 7e 43 	call	0x286fc	; 0x286fc <Stopwatch::reset()>
    total_filament_used = 0;
    cbcc:	10 92 65 06 	sts	0x0665, r1	; 0x800665 <total_filament_used>
    cbd0:	10 92 66 06 	sts	0x0666, r1	; 0x800666 <total_filament_used+0x1>
    cbd4:	10 92 67 06 	sts	0x0667, r1	; 0x800667 <total_filament_used+0x2>
    cbd8:	10 92 68 06 	sts	0x0668, r1	; 0x800668 <total_filament_used+0x3>

    if (MMU2::mmu2.Enabled()) {
    cbdc:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
    cbe0:	81 30       	cpi	r24, 0x01	; 1
    cbe2:	81 f4       	brne	.+32     	; 0xcc04 <save_statistics()+0xb8>
        eeprom_add_dword((uint32_t *)EEPROM_MMU_MATERIAL_CHANGES, MMU2::mmu2.ToolChangeCounter());
    cbe4:	60 91 be 13 	lds	r22, 0x13BE	; 0x8013be <MMU2::mmu2+0x73>
    cbe8:	70 91 bf 13 	lds	r23, 0x13BF	; 0x8013bf <MMU2::mmu2+0x74>
    cbec:	90 e0       	ldi	r25, 0x00	; 0
    cbee:	80 e0       	ldi	r24, 0x00	; 0
    cbf0:	0f 94 87 7b 	call	0x2f70e	; 0x2f70e <eeprom_add_dword(unsigned long*, unsigned long) [clone .constprop.247]>

    /// @return count for toolchange in current print
    inline uint16_t ToolChangeCounter() const { return toolchange_counter; };

    /// Set toolchange counter to zero
    inline void ClearToolChangeCounter() { toolchange_counter = 0; };
    cbf4:	10 92 bf 13 	sts	0x13BF, r1	; 0x8013bf <MMU2::mmu2+0x74>
    cbf8:	10 92 be 13 	sts	0x13BE, r1	; 0x8013be <MMU2::mmu2+0x73>

    inline uint16_t TMCFailures() const { return tmcFailures; }
    inline void IncrementTMCFailures() { ++tmcFailures; }
    inline void ClearTMCFailures() { tmcFailures = 0; }
    cbfc:	10 92 c1 13 	sts	0x13C1, r1	; 0x8013c1 <MMU2::mmu2+0x76>
    cc00:	10 92 c0 13 	sts	0x13C0, r1	; 0x8013c0 <MMU2::mmu2+0x75>
        // @@TODO why were EEPROM_MMU_FAIL_TOT and EEPROM_MMU_LOAD_FAIL_TOT behaving differently - i.e. updated with every change?
        MMU2::mmu2.ClearToolChangeCounter();
        MMU2::mmu2.ClearTMCFailures(); // not stored into EEPROM
    }
}
    cc04:	ff 90       	pop	r15
    cc06:	ef 90       	pop	r14
    cc08:	df 90       	pop	r13
    cc0a:	cf 90       	pop	r12
    cc0c:	bf 90       	pop	r11
    cc0e:	af 90       	pop	r10
    cc10:	9f 90       	pop	r9
    cc12:	8f 90       	pop	r8
    cc14:	08 95       	ret

0000cc16 <gcode_M123()>:
}

#if (defined(FANCHECK) && (((defined(TACH_0) && (TACH_0 >-1)) || (defined(TACH_1) && (TACH_1 > -1)))))
void gcode_M123()
{
  printf_P(_N("E0:%d RPM PRN1:%d RPM E0@:%u PRN1@:%u\n"), 60*fan_speed[active_extruder], 60*fan_speed[1], newFanSpeed, fanSpeed);
    cc16:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
    cc1a:	1f 92       	push	r1
    cc1c:	8f 93       	push	r24
    cc1e:	80 91 6b 03 	lds	r24, 0x036B	; 0x80036b <newFanSpeed>
    cc22:	1f 92       	push	r1
    cc24:	8f 93       	push	r24
    cc26:	e9 ec       	ldi	r30, 0xC9	; 201
    cc28:	f3 e0       	ldi	r31, 0x03	; 3
    cc2a:	42 81       	ldd	r20, Z+2	; 0x02
    cc2c:	53 81       	ldd	r21, Z+3	; 0x03
    cc2e:	2c e3       	ldi	r18, 0x3C	; 60
    cc30:	24 9f       	mul	r18, r20
    cc32:	c0 01       	movw	r24, r0
    cc34:	25 9f       	mul	r18, r21
    cc36:	90 0d       	add	r25, r0
    cc38:	11 24       	eor	r1, r1
    cc3a:	9f 93       	push	r25
    cc3c:	8f 93       	push	r24
    cc3e:	40 81       	ld	r20, Z
    cc40:	51 81       	ldd	r21, Z+1	; 0x01
    cc42:	24 9f       	mul	r18, r20
    cc44:	c0 01       	movw	r24, r0
    cc46:	25 9f       	mul	r18, r21
    cc48:	90 0d       	add	r25, r0
    cc4a:	11 24       	eor	r1, r1
    cc4c:	9f 93       	push	r25
    cc4e:	8f 93       	push	r24
    cc50:	8e e7       	ldi	r24, 0x7E	; 126
    cc52:	95 e6       	ldi	r25, 0x65	; 101
    cc54:	9f 93       	push	r25
    cc56:	8f 93       	push	r24
    cc58:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    cc5c:	8d b7       	in	r24, 0x3d	; 61
    cc5e:	9e b7       	in	r25, 0x3e	; 62
    cc60:	0a 96       	adiw	r24, 0x0a	; 10
    cc62:	0f b6       	in	r0, 0x3f	; 63
    cc64:	f8 94       	cli
    cc66:	9e bf       	out	0x3e, r25	; 62
    cc68:	0f be       	out	0x3f, r0	; 63
    cc6a:	8d bf       	out	0x3d, r24	; 61
}
    cc6c:	08 95       	ret

0000cc6e <force_high_power_mode(bool)>:
    // Be safe than sorry, reset the stepper timer before re-enabling interrupts.
    st_reset_timer();
		sei();
}

void force_high_power_mode(bool start_high_power_section) {
    cc6e:	cf 93       	push	r28
    cc70:	c8 2f       	mov	r28, r24
#ifdef PSU_Delta
	if (start_high_power_section == true) enable_force_z();
#endif //PSU_Delta
	uint8_t silent;
	silent = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
    cc72:	8f ef       	ldi	r24, 0xFF	; 255
    cc74:	9f e0       	ldi	r25, 0x0F	; 15
    cc76:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	if (silent == 1 || tmc2130_mode == TMC2130_MODE_SILENT) {
    cc7a:	81 30       	cpi	r24, 0x01	; 1
    cc7c:	21 f0       	breq	.+8      	; 0xcc86 <force_high_power_mode(bool)+0x18>
    cc7e:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
    cc82:	81 30       	cpi	r24, 0x01	; 1
    cc84:	29 f4       	brne	.+10     	; 0xcc90 <force_high_power_mode(bool)+0x22>
		//we are in silent mode, set to normal mode to enable crash detection
    change_power_mode_live((start_high_power_section == true) ? TMC2130_MODE_NORMAL : TMC2130_MODE_SILENT);
    cc86:	81 e0       	ldi	r24, 0x01	; 1
    cc88:	8c 27       	eor	r24, r28
	}
}
    cc8a:	cf 91       	pop	r28
#endif //PSU_Delta
	uint8_t silent;
	silent = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
	if (silent == 1 || tmc2130_mode == TMC2130_MODE_SILENT) {
		//we are in silent mode, set to normal mode to enable crash detection
    change_power_mode_live((start_high_power_section == true) ? TMC2130_MODE_NORMAL : TMC2130_MODE_SILENT);
    cc8c:	0c 94 10 60 	jmp	0xc020	; 0xc020 <change_power_mode_live(unsigned char)>
	}
}
    cc90:	cf 91       	pop	r28
    cc92:	08 95       	ret

0000cc94 <refresh_cmd_timeout()>:
    endstops_hit_on_purpose();
}

void refresh_cmd_timeout(void)
{
  previous_millis_cmd.start();
    cc94:	86 e8       	ldi	r24, 0x86	; 134
    cc96:	93 e0       	ldi	r25, 0x03	; 3
    cc98:	0d 94 fb 2c 	jmp	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>

0000cc9c <get_feedrate_mm_s(float)>:
	}
}
#endif //TMC2130

float __attribute__((noinline)) get_feedrate_mm_s(const float feedrate_mm_min) {
  return feedrate_mm_min / 60.f;
    cc9c:	20 e0       	ldi	r18, 0x00	; 0
    cc9e:	30 e0       	ldi	r19, 0x00	; 0
    cca0:	40 e7       	ldi	r20, 0x70	; 112
    cca2:	52 e4       	ldi	r21, 0x42	; 66
    cca4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
}
    cca8:	08 95       	ret

0000ccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>:
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
  check_endstops = check;
    ccaa:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
//! @param original_feedmultiply feedmultiply to restore
static void clean_up_after_endstop_move(int original_feedmultiply) {
#ifdef ENDSTOPS_ONLY_FOR_HOMING
    enable_endstops(false);
#endif
    feedrate = saved_feedrate;
    ccae:	40 91 66 03 	lds	r20, 0x0366	; 0x800366 <saved_feedrate>
    ccb2:	50 91 67 03 	lds	r21, 0x0367	; 0x800367 <saved_feedrate+0x1>
    ccb6:	60 91 68 03 	lds	r22, 0x0368	; 0x800368 <saved_feedrate+0x2>
    ccba:	70 91 69 03 	lds	r23, 0x0369	; 0x800369 <saved_feedrate+0x3>
    ccbe:	40 93 b8 02 	sts	0x02B8, r20	; 0x8002b8 <feedrate>
    ccc2:	50 93 b9 02 	sts	0x02B9, r21	; 0x8002b9 <feedrate+0x1>
    ccc6:	60 93 ba 02 	sts	0x02BA, r22	; 0x8002ba <feedrate+0x2>
    ccca:	70 93 bb 02 	sts	0x02BB, r23	; 0x8002bb <feedrate+0x3>
    feedmultiply = original_feedmultiply;
    ccce:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
    ccd2:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
    previous_millis_cmd.start();
    ccd6:	86 e8       	ldi	r24, 0x86	; 134
    ccd8:	93 e0       	ldi	r25, 0x03	; 3
    ccda:	0d 94 fb 2c 	jmp	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>

0000ccde <setup_for_endstop_move(bool) [clone .lto_priv.392]>:
  min_pos[axis] =          base_min_pos(axis) + cs.add_homing[axis];
  max_pos[axis] =          base_max_pos(axis) + cs.add_homing[axis];
}

//! @return original feedmultiply
static int setup_for_endstop_move(bool enable_endstops_now = true) {
    ccde:	1f 93       	push	r17
    cce0:	cf 93       	push	r28
    cce2:	df 93       	push	r29
    cce4:	18 2f       	mov	r17, r24
    saved_feedrate = feedrate;
    cce6:	80 91 b8 02 	lds	r24, 0x02B8	; 0x8002b8 <feedrate>
    ccea:	90 91 b9 02 	lds	r25, 0x02B9	; 0x8002b9 <feedrate+0x1>
    ccee:	a0 91 ba 02 	lds	r26, 0x02BA	; 0x8002ba <feedrate+0x2>
    ccf2:	b0 91 bb 02 	lds	r27, 0x02BB	; 0x8002bb <feedrate+0x3>
    ccf6:	80 93 66 03 	sts	0x0366, r24	; 0x800366 <saved_feedrate>
    ccfa:	90 93 67 03 	sts	0x0367, r25	; 0x800367 <saved_feedrate+0x1>
    ccfe:	a0 93 68 03 	sts	0x0368, r26	; 0x800368 <saved_feedrate+0x2>
    cd02:	b0 93 69 03 	sts	0x0369, r27	; 0x800369 <saved_feedrate+0x3>
    int l_feedmultiply = feedmultiply;
    cd06:	c0 91 39 02 	lds	r28, 0x0239	; 0x800239 <feedmultiply>
    cd0a:	d0 91 3a 02 	lds	r29, 0x023A	; 0x80023a <feedmultiply+0x1>
    feedmultiply = 100;
    cd0e:	84 e6       	ldi	r24, 0x64	; 100
    cd10:	90 e0       	ldi	r25, 0x00	; 0
    cd12:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
    cd16:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
    previous_millis_cmd.start();
    cd1a:	86 e8       	ldi	r24, 0x86	; 134
    cd1c:	93 e0       	ldi	r25, 0x03	; 3
    cd1e:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
    cd22:	10 93 b7 02 	sts	0x02B7, r17	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    enable_endstops(enable_endstops_now);
    return l_feedmultiply;
}
    cd26:	ce 01       	movw	r24, r28
    cd28:	df 91       	pop	r29
    cd2a:	cf 91       	pop	r28
    cd2c:	1f 91       	pop	r17
    cd2e:	08 95       	ret

0000cd30 <factory_reset_stats() [clone .lto_priv.429]>:
    cd30:	40 e0       	ldi	r20, 0x00	; 0
    cd32:	50 e0       	ldi	r21, 0x00	; 0
    cd34:	ba 01       	movw	r22, r20
    cd36:	8d ee       	ldi	r24, 0xED	; 237
    cd38:	9f e0       	ldi	r25, 0x0F	; 15
    cd3a:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
    cd3e:	40 e0       	ldi	r20, 0x00	; 0
    cd40:	50 e0       	ldi	r21, 0x00	; 0
    cd42:	ba 01       	movw	r22, r20
    cd44:	81 ef       	ldi	r24, 0xF1	; 241
    cd46:	9f e0       	ldi	r25, 0x0F	; 15
    cd48:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>

static void factory_reset_stats(){
    eeprom_update_dword_notify((uint32_t *)EEPROM_TOTALTIME, 0);
    eeprom_update_dword_notify((uint32_t *)EEPROM_FILAMENTUSED, 0);

    failstats_reset_print();
    cd4c:	0e 94 ab 5b 	call	0xb756	; 0xb756 <failstats_reset_print()>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
    cd50:	70 e0       	ldi	r23, 0x00	; 0
    cd52:	60 e0       	ldi	r22, 0x00	; 0
    cd54:	85 e0       	ldi	r24, 0x05	; 5
    cd56:	9f e0       	ldi	r25, 0x0F	; 15
    cd58:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    cd5c:	70 e0       	ldi	r23, 0x00	; 0
    cd5e:	60 e0       	ldi	r22, 0x00	; 0
    cd60:	83 e0       	ldi	r24, 0x03	; 3
    cd62:	9f e0       	ldi	r25, 0x0F	; 15
    cd64:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    cd68:	70 e0       	ldi	r23, 0x00	; 0
    cd6a:	60 e0       	ldi	r22, 0x00	; 0
    cd6c:	81 e0       	ldi	r24, 0x01	; 1
    cd6e:	9f e0       	ldi	r25, 0x0F	; 15
    cd70:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    cd74:	70 e0       	ldi	r23, 0x00	; 0
    cd76:	60 e0       	ldi	r22, 0x00	; 0
    cd78:	8f ef       	ldi	r24, 0xFF	; 255
    cd7a:	9e e0       	ldi	r25, 0x0E	; 14
    cd7c:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    cd80:	70 e0       	ldi	r23, 0x00	; 0
    cd82:	60 e0       	ldi	r22, 0x00	; 0
    cd84:	83 ed       	ldi	r24, 0xD3	; 211
    cd86:	9e e0       	ldi	r25, 0x0E	; 14
    cd88:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    cd8c:	70 e0       	ldi	r23, 0x00	; 0
    cd8e:	60 e0       	ldi	r22, 0x00	; 0
    cd90:	80 ed       	ldi	r24, 0xD0	; 208
    cd92:	9e e0       	ldi	r25, 0x0E	; 14
    cd94:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
    cd98:	40 e0       	ldi	r20, 0x00	; 0
    cd9a:	50 e0       	ldi	r21, 0x00	; 0
    cd9c:	ba 01       	movw	r22, r20
    cd9e:	88 ea       	ldi	r24, 0xA8	; 168
    cda0:	9c e0       	ldi	r25, 0x0C	; 12
    cda2:	0d 94 91 dc 	jmp	0x3b922	; 0x3b922 <eeprom_update_dword>

0000cda6 <softReset>:
      wdt_disable();
    }
}

void softReset(void) {
    cli();
    cda6:	f8 94       	cli
				: "n" (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
				"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) |
						_BV(WDE) | (value & 0x07)) )
				: "r0"
		);
    cda8:	88 e1       	ldi	r24, 0x18	; 24
    cdaa:	98 e0       	ldi	r25, 0x08	; 8
    cdac:	0f b6       	in	r0, 0x3f	; 63
    cdae:	f8 94       	cli
    cdb0:	a8 95       	wdr
    cdb2:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
    cdb6:	0f be       	out	0x3f, r0	; 63
    cdb8:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
    cdbc:	ff cf       	rjmp	.-2      	; 0xcdbc <softReset+0x16>

0000cdbe <crash_and_burn(dump_crash_reason) [clone .lto_priv.485]>:
#endif //EMERGENCY_HANDLERS
#endif //WATCHDOG
}

static inline void crash_and_burn(dump_crash_reason reason)
{
    cdbe:	c8 2f       	mov	r28, r24
    WRITE(BEEPER, HIGH);
    cdc0:	9f b7       	in	r25, 0x3f	; 63
    cdc2:	f8 94       	cli
    cdc4:	e2 e0       	ldi	r30, 0x02	; 2
    cdc6:	f1 e0       	ldi	r31, 0x01	; 1
    cdc8:	80 81       	ld	r24, Z
    cdca:	84 60       	ori	r24, 0x04	; 4
    cdcc:	80 83       	st	Z, r24
    cdce:	9f bf       	out	0x3f, r25	; 63
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
    cdd0:	6c 2f       	mov	r22, r28
    cdd2:	83 e0       	ldi	r24, 0x03	; 3
    cdd4:	9d e0       	ldi	r25, 0x0D	; 13
    cdd6:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    eeprom_update_byte_notify((uint8_t*)EEPROM_FW_CRASH_FLAG, (uint8_t)reason);
#ifdef EMERGENCY_DUMP
    xfdump_full_dump_and_reset(reason);
    cdda:	8c 2f       	mov	r24, r28
    cddc:	0e 94 a1 ee 	call	0x1dd42	; 0x1dd42 <xfdump_full_dump_and_reset(dump_crash_reason)>
#elif defined(EMERGENCY_SERIAL_DUMP)
    if(emergency_serial_dump)
        serial_dump_and_reset(reason);
#endif
    softReset();
    cde0:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>

0000cde4 <__vector_default>:
    crash_and_burn(dump_crash_reason::watchdog);
}
#endif

ISR(BADISR_vect)
{
    cde4:	1f 92       	push	r1
    cde6:	0f 92       	push	r0
    cde8:	0f b6       	in	r0, 0x3f	; 63
    cdea:	0f 92       	push	r0
    cdec:	11 24       	eor	r1, r1
    crash_and_burn(dump_crash_reason::bad_isr);
    cdee:	83 e0       	ldi	r24, 0x03	; 3
    cdf0:	0e 94 df 66 	call	0xcdbe	; 0xcdbe <crash_and_burn(dump_crash_reason) [clone .lto_priv.485]>

0000cdf4 <__vector_12>:
}

#ifdef EMERGENCY_HANDLERS
#ifdef WATCHDOG
ISR(WDT_vect)
{
    cdf4:	1f 92       	push	r1
    cdf6:	0f 92       	push	r0
    cdf8:	0f b6       	in	r0, 0x3f	; 63
    cdfa:	0f 92       	push	r0
    cdfc:	11 24       	eor	r1, r1
    crash_and_burn(dump_crash_reason::watchdog);
    cdfe:	82 e0       	ldi	r24, 0x02	; 2
    ce00:	0e 94 df 66 	call	0xcdbe	; 0xcdbe <crash_and_burn(dump_crash_reason) [clone .lto_priv.485]>

0000ce04 <printer_recovering()>:
}
#endif //End DEBUG_PRINTER_STATES

// Block LCD menus when
bool __attribute__((noinline)) printer_recovering() {
    return (eeprom_read_byte((uint8_t*)EEPROM_UVLO) != PowerPanic::NO_PENDING_RECOVERY);
    ce04:	85 ea       	ldi	r24, 0xA5	; 165
    ce06:	9f e0       	ldi	r25, 0x0F	; 15
    ce08:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    ce0c:	91 e0       	ldi	r25, 0x01	; 1
    ce0e:	81 11       	cpse	r24, r1
    ce10:	01 c0       	rjmp	.+2      	; 0xce14 <printer_recovering()+0x10>
    ce12:	90 e0       	ldi	r25, 0x00	; 0
}
    ce14:	89 2f       	mov	r24, r25
    ce16:	08 95       	ret

0000ce18 <printingIsPaused()>:
bool __attribute__((noinline)) printJobOngoing() {
    return (IS_SD_PRINTING || usb_timer.running() || print_job_timer.isRunning());
}

bool printingIsPaused() {
  return did_pause_print || print_job_timer.isPaused();
    ce18:	80 91 e4 03 	lds	r24, 0x03E4	; 0x8003e4 <did_pause_print>
    ce1c:	81 11       	cpse	r24, r1
    ce1e:	06 c0       	rjmp	.+12     	; 0xce2c <printingIsPaused()+0x14>
    ce20:	81 e0       	ldi	r24, 0x01	; 1
    ce22:	90 91 9d 03 	lds	r25, 0x039D	; 0x80039d <Stopwatch::state>
    ce26:	92 30       	cpi	r25, 0x02	; 2
    ce28:	09 f0       	breq	.+2      	; 0xce2c <printingIsPaused()+0x14>
    ce2a:	80 e0       	ldi	r24, 0x00	; 0
}
    ce2c:	08 95       	ret

0000ce2e <printJobOngoing()>:
    WRITE(SUICIDE_PIN, LOW);
  #endif
}

bool __attribute__((noinline)) printJobOngoing() {
    return (IS_SD_PRINTING || usb_timer.running() || print_job_timer.isRunning());
    ce2e:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
    ce32:	81 11       	cpse	r24, r1
    ce34:	0a c0       	rjmp	.+20     	; 0xce4a <printJobOngoing()+0x1c>
    ce36:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
    ce3a:	81 11       	cpse	r24, r1
    ce3c:	06 c0       	rjmp	.+12     	; 0xce4a <printJobOngoing()+0x1c>
    ce3e:	81 e0       	ldi	r24, 0x01	; 1
    ce40:	90 91 9d 03 	lds	r25, 0x039D	; 0x80039d <Stopwatch::state>
    ce44:	91 30       	cpi	r25, 0x01	; 1
    ce46:	09 f0       	breq	.+2      	; 0xce4a <printJobOngoing()+0x1c>
    ce48:	80 e0       	ldi	r24, 0x00	; 0
}
    ce4a:	08 95       	ret

0000ce4c <babystep_allowed()>:
        && !mesh_bed_leveling_flag
        && !homing_flag
        && e_active();
}

bool __attribute__((noinline)) babystep_allowed() {
    ce4c:	cf 93       	push	r28
    ce4e:	df 93       	push	r29
    return ( !homing_flag
    ce50:	c0 91 a7 0d 	lds	r28, 0x0DA7	; 0x800da7 <homing_flag>
        && !mesh_bed_leveling_flag
        && !printingIsPaused()
        && ((lcd_commands_type == LcdCommands::Layer1Cal && CHECK_ALL_HEATERS)
    ce54:	c1 11       	cpse	r28, r1
    ce56:	1f c0       	rjmp	.+62     	; 0xce96 <babystep_allowed()+0x4a>
        && e_active();
}

bool __attribute__((noinline)) babystep_allowed() {
    return ( !homing_flag
        && !mesh_bed_leveling_flag
    ce58:	80 91 a8 0d 	lds	r24, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
    ce5c:	81 11       	cpse	r24, r1
    ce5e:	1c c0       	rjmp	.+56     	; 0xce98 <babystep_allowed()+0x4c>
        && !printingIsPaused()
    ce60:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
    ce64:	81 11       	cpse	r24, r1
    ce66:	18 c0       	rjmp	.+48     	; 0xce98 <babystep_allowed()+0x4c>
        && ((lcd_commands_type == LcdCommands::Layer1Cal && CHECK_ALL_HEATERS)
    ce68:	d0 91 b4 0d 	lds	r29, 0x0DB4	; 0x800db4 <lcd_commands_type>
    ce6c:	d4 30       	cpi	r29, 0x04	; 4
    ce6e:	61 f4       	brne	.+24     	; 0xce88 <babystep_allowed()+0x3c>
    ce70:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
    ce74:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
    ce78:	89 2b       	or	r24, r25
    ce7a:	91 f4       	brne	.+36     	; 0xcea0 <babystep_allowed()+0x54>
    ce7c:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
    ce80:	90 91 73 06 	lds	r25, 0x0673	; 0x800673 <target_temperature_bed+0x1>
    ce84:	89 2b       	or	r24, r25
    ce86:	61 f4       	brne	.+24     	; 0xcea0 <babystep_allowed()+0x54>
            || printJobOngoing()
    ce88:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
    ce8c:	c8 2f       	mov	r28, r24
    ce8e:	81 11       	cpse	r24, r1
    ce90:	03 c0       	rjmp	.+6      	; 0xce98 <babystep_allowed()+0x4c>
            || lcd_commands_type == LcdCommands::Idle
    ce92:	c1 e0       	ldi	r28, 0x01	; 1
    ce94:	d1 11       	cpse	r29, r1

bool __attribute__((noinline)) babystep_allowed() {
    return ( !homing_flag
        && !mesh_bed_leveling_flag
        && !printingIsPaused()
        && ((lcd_commands_type == LcdCommands::Layer1Cal && CHECK_ALL_HEATERS)
    ce96:	c0 e0       	ldi	r28, 0x00	; 0
            || printJobOngoing()
            || lcd_commands_type == LcdCommands::Idle
        )
    );
}
    ce98:	8c 2f       	mov	r24, r28
    ce9a:	df 91       	pop	r29
    ce9c:	cf 91       	pop	r28
    ce9e:	08 95       	ret

bool __attribute__((noinline)) babystep_allowed() {
    return ( !homing_flag
        && !mesh_bed_leveling_flag
        && !printingIsPaused()
        && ((lcd_commands_type == LcdCommands::Layer1Cal && CHECK_ALL_HEATERS)
    cea0:	c1 e0       	ldi	r28, 0x01	; 1
    cea2:	fa cf       	rjmp	.-12     	; 0xce98 <babystep_allowed()+0x4c>

0000cea4 <babystep_allowed_strict()>:
        )
    );
}

bool __attribute__((noinline)) babystep_allowed_strict() {
    return ( babystep_allowed() && current_position[Z_AXIS] < Z_HEIGHT_HIDE_LIVE_ADJUST_MENU);
    cea4:	0e 94 26 67 	call	0xce4c	; 0xce4c <babystep_allowed()>
    cea8:	88 23       	and	r24, r24
    ceaa:	89 f0       	breq	.+34     	; 0xcece <babystep_allowed_strict()+0x2a>
    ceac:	20 e0       	ldi	r18, 0x00	; 0
    ceae:	30 e0       	ldi	r19, 0x00	; 0
    ceb0:	40 e0       	ldi	r20, 0x00	; 0
    ceb2:	50 e4       	ldi	r21, 0x40	; 64
    ceb4:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
    ceb8:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
    cebc:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
    cec0:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
    cec4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    cec8:	88 1f       	adc	r24, r24
    ceca:	88 27       	eor	r24, r24
    cecc:	88 1f       	adc	r24, r24
}
    cece:	08 95       	ret

0000ced0 <printer_active()>:
bool printingIsPaused() {
  return did_pause_print || print_job_timer.isPaused();
}

bool __attribute__((noinline)) printer_active() {
    return printJobOngoing()
    ced0:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
        || printingIsPaused()
        || saved_printing
        || (lcd_commands_type != LcdCommands::Idle)
        || MMU2::mmu2.MMU_PRINT_SAVED()
        || homing_flag
        || mesh_bed_leveling_flag;
    ced4:	81 11       	cpse	r24, r1
    ced6:	18 c0       	rjmp	.+48     	; 0xcf08 <printer_active()+0x38>
  return did_pause_print || print_job_timer.isPaused();
}

bool __attribute__((noinline)) printer_active() {
    return printJobOngoing()
        || printingIsPaused()
    ced8:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
    cedc:	81 11       	cpse	r24, r1
    cede:	14 c0       	rjmp	.+40     	; 0xcf08 <printer_active()+0x38>
        || saved_printing
    cee0:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
    cee4:	81 11       	cpse	r24, r1
    cee6:	10 c0       	rjmp	.+32     	; 0xcf08 <printer_active()+0x38>
        || (lcd_commands_type != LcdCommands::Idle)
    cee8:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
    ceec:	81 11       	cpse	r24, r1
    ceee:	0b c0       	rjmp	.+22     	; 0xcf06 <printer_active()+0x36>
        || MMU2::mmu2.MMU_PRINT_SAVED()
    cef0:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
    cef4:	81 11       	cpse	r24, r1
    cef6:	07 c0       	rjmp	.+14     	; 0xcf06 <printer_active()+0x36>
        || homing_flag
    cef8:	80 91 a7 0d 	lds	r24, 0x0DA7	; 0x800da7 <homing_flag>
    cefc:	81 11       	cpse	r24, r1
    cefe:	04 c0       	rjmp	.+8      	; 0xcf08 <printer_active()+0x38>
        || mesh_bed_leveling_flag;
    cf00:	80 91 a8 0d 	lds	r24, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
    cf04:	08 95       	ret
    cf06:	81 e0       	ldi	r24, 0x01	; 1
}
    cf08:	08 95       	ret

0000cf0a <MotorCurrents::setiHold(unsigned char)>:
        // accordingly
        refreshCurrentScaling();
    }

    void __attribute__((noinline)) setiHold(uint8_t ih) {
        iHold = vSense ? ih : ih >> 1;
    cf0a:	fc 01       	movw	r30, r24
    cf0c:	20 81       	ld	r18, Z
    cf0e:	21 11       	cpse	r18, r1
    cf10:	01 c0       	rjmp	.+2      	; 0xcf14 <MotorCurrents::setiHold(unsigned char)+0xa>
    cf12:	66 95       	lsr	r22
    cf14:	fc 01       	movw	r30, r24
    cf16:	62 83       	std	Z+2, r22	; 0x02
        // Note that iHold cannot change the vSense bit. If iHold is larger
        // than iRun, then iHold is truncated later in SetCurrents()
    }
    cf18:	08 95       	ret

0000cf1a <MotorCurrents::setiRun(unsigned char)>:
    inline uint8_t getOriginaliRun() const { return vSense ? iRun : iRun << 1; }
    inline uint8_t getOriginaliHold() const { return min(vSense ? iHold : iHold << 1, getOriginaliRun()); }
    inline bool iHoldIsClamped() const { return iHold > iRun; }
    inline uint8_t getvSense() const { return vSense; }

    void __attribute__((noinline)) setiRun(uint8_t ir) {
    cf1a:	fc 01       	movw	r30, r24
        iRun = ir;
    cf1c:	61 83       	std	Z+1, r22	; 0x01
    void refreshCurrentScaling() {
        // IMPORTANT: iRun must have range 0 to 63 (2^6) so we can properly
        //            update the current scaling back and forth

        // Detect new vSense value
        const bool newvSense = (iRun < 32);
    cf1e:	21 e0       	ldi	r18, 0x01	; 1
    cf20:	60 32       	cpi	r22, 0x20	; 32
    cf22:	08 f0       	brcs	.+2      	; 0xcf26 <MotorCurrents::setiRun(unsigned char)+0xc>
    cf24:	20 e0       	ldi	r18, 0x00	; 0
        if (vSense != newvSense) {
    cf26:	90 81       	ld	r25, Z
    cf28:	29 17       	cp	r18, r25
    cf2a:	81 f0       	breq	.+32     	; 0xcf4c <MotorCurrents::setiRun(unsigned char)+0x32>
    cf2c:	82 81       	ldd	r24, Z+2	; 0x02
            // Update currents to match current scaling
            if (vSense) {
    cf2e:	99 23       	and	r25, r25
    cf30:	51 f0       	breq	.+20     	; 0xcf46 <MotorCurrents::setiRun(unsigned char)+0x2c>
                // vSense was 1 [V_FS = 0.32V] but is changing to 0 [V_FS = 0.18V]
                // Half both current values to be in sync with current scale range
                iHold >>= 1;
    cf32:	90 e0       	ldi	r25, 0x00	; 0
    cf34:	95 95       	asr	r25
    cf36:	87 95       	ror	r24
    cf38:	82 83       	std	Z+2, r24	; 0x02
                iRun >>= 1;
    cf3a:	70 e0       	ldi	r23, 0x00	; 0
    cf3c:	75 95       	asr	r23
    cf3e:	67 95       	ror	r22
    cf40:	61 83       	std	Z+1, r22	; 0x01
                // Keep in mind, only a change in iRun can change vSense.
                iHold <<= 1;
            }

            // Update vSense
            vSense = newvSense;
    cf42:	20 83       	st	Z, r18
    cf44:	08 95       	ret
            } else {
                // vSense was 0 [V_FS = 0.18V], but is changing to 1 [V_FS = 0.32V]
                // double the Hold current value
                // iRun is expected to already be correct so no shift needed.
                // Keep in mind, only a change in iRun can change vSense.
                iHold <<= 1;
    cf46:	88 0f       	add	r24, r24
    cf48:	82 83       	std	Z+2, r24	; 0x02
    cf4a:	fb cf       	rjmp	.-10     	; 0xcf42 <MotorCurrents::setiRun(unsigned char)+0x28>
            }

            // Update vSense
            vSense = newvSense;
        } else if (!vSense) {
    cf4c:	21 11       	cpse	r18, r1
    cf4e:	04 c0       	rjmp	.+8      	; 0xcf58 <MotorCurrents::setiRun(unsigned char)+0x3e>
            // No change in vSense, but vSense = 0, which means we must scale down the iRun value
            // from range [0, 63] to range [0, 31]
            iRun >>= 1;
    cf50:	70 e0       	ldi	r23, 0x00	; 0
    cf52:	75 95       	asr	r23
    cf54:	67 95       	ror	r22
    cf56:	61 83       	std	Z+1, r22	; 0x01
        iRun = ir;

        // Refresh the vSense bit and take care of updating Hold/Run currents
        // accordingly
        refreshCurrentScaling();
    }
    cf58:	08 95       	ret

0000cf5a <code_seen_P(char const*) [clone .lto_priv.437]>:
}
#endif

// Return True if a character was found
static inline bool    code_seen(char code) { return (strchr_pointer = strchr(CMDBUFFER_CURRENT_STRING, code)) != NULL; }
static inline bool    code_seen_P(const char *code_PROGMEM) { return (strchr_pointer = strstr_P(CMDBUFFER_CURRENT_STRING, code_PROGMEM)) != NULL; }
    cf5a:	20 91 92 12 	lds	r18, 0x1292	; 0x801292 <bufindr>
    cf5e:	30 91 93 12 	lds	r19, 0x1293	; 0x801293 <bufindr+0x1>
    cf62:	bc 01       	movw	r22, r24
    cf64:	c9 01       	movw	r24, r18
    cf66:	88 55       	subi	r24, 0x58	; 88
    cf68:	9f 4e       	sbci	r25, 0xEF	; 239
    cf6a:	0f 94 62 da 	call	0x3b4c4	; 0x3b4c4 <strstr_P>
    cf6e:	9c 01       	movw	r18, r24
    cf70:	90 93 96 03 	sts	0x0396, r25	; 0x800396 <strchr_pointer+0x1>
    cf74:	80 93 95 03 	sts	0x0395, r24	; 0x800395 <strchr_pointer>
    cf78:	81 e0       	ldi	r24, 0x01	; 1
    cf7a:	23 2b       	or	r18, r19
    cf7c:	09 f4       	brne	.+2      	; 0xcf80 <code_seen_P(char const*) [clone .lto_priv.437]+0x26>
    cf7e:	80 e0       	ldi	r24, 0x00	; 0
    cf80:	08 95       	ret

0000cf82 <set_destination_to_current()>:
inline void set_destination_to_current() { memcpy(destination, current_position, sizeof(destination)); }
    cf82:	80 e1       	ldi	r24, 0x10	; 16
    cf84:	e2 e9       	ldi	r30, 0x92	; 146
    cf86:	f6 e0       	ldi	r31, 0x06	; 6
    cf88:	a4 e7       	ldi	r26, 0x74	; 116
    cf8a:	b6 e0       	ldi	r27, 0x06	; 6
    cf8c:	01 90       	ld	r0, Z+
    cf8e:	0d 92       	st	X+, r0
    cf90:	8a 95       	dec	r24
    cf92:	e1 f7       	brne	.-8      	; 0xcf8c <set_destination_to_current()+0xa>
    cf94:	08 95       	ret

0000cf96 <restore_print_from_ram_and_continue(float)>:
//!
//! Internally lcd_update() is called by wait_for_heater().
//!
//! @param e_move
void restore_print_from_ram_and_continue(float e_move)
{
    cf96:	4f 92       	push	r4
    cf98:	5f 92       	push	r5
    cf9a:	6f 92       	push	r6
    cf9c:	7f 92       	push	r7
    cf9e:	8f 92       	push	r8
    cfa0:	9f 92       	push	r9
    cfa2:	af 92       	push	r10
    cfa4:	bf 92       	push	r11
    cfa6:	cf 92       	push	r12
    cfa8:	df 92       	push	r13
    cfaa:	ef 92       	push	r14
    cfac:	ff 92       	push	r15
    cfae:	0f 93       	push	r16
    cfb0:	1f 93       	push	r17
    cfb2:	cf 93       	push	r28
    cfb4:	df 93       	push	r29
    cfb6:	00 d0       	rcall	.+0      	; 0xcfb8 <restore_print_from_ram_and_continue(float)+0x22>
    cfb8:	00 d0       	rcall	.+0      	; 0xcfba <restore_print_from_ram_and_continue(float)+0x24>
    cfba:	1f 92       	push	r1
    cfbc:	1f 92       	push	r1
    cfbe:	cd b7       	in	r28, 0x3d	; 61
    cfc0:	de b7       	in	r29, 0x3e	; 62
    if (!saved_printing) return;
    cfc2:	20 91 a9 0d 	lds	r18, 0x0DA9	; 0x800da9 <saved_printing>
    cfc6:	22 23       	and	r18, r18
    cfc8:	09 f4       	brne	.+2      	; 0xcfcc <restore_print_from_ram_and_continue(float)+0x36>
    cfca:	73 c1       	rjmp	.+742    	; 0xd2b2 <restore_print_from_ram_and_continue(float)+0x31c>

#ifdef FANCHECK
    // Do not allow resume printing if fans are still not ok
    if (fan_check_error == EFCE_REPORTED) return;
    cfcc:	20 91 e6 03 	lds	r18, 0x03E6	; 0x8003e6 <fan_check_error>
    cfd0:	22 30       	cpi	r18, 0x02	; 2
    cfd2:	09 f4       	brne	.+2      	; 0xcfd6 <restore_print_from_ram_and_continue(float)+0x40>
    cfd4:	6e c1       	rjmp	.+732    	; 0xd2b2 <restore_print_from_ram_and_continue(float)+0x31c>
    if (fan_check_error == EFCE_FIXED) fan_check_error = EFCE_OK; //reenable serial stream processing if printing from usb
    cfd6:	20 91 e6 03 	lds	r18, 0x03E6	; 0x8003e6 <fan_check_error>
    cfda:	21 30       	cpi	r18, 0x01	; 1
    cfdc:	11 f4       	brne	.+4      	; 0xcfe2 <restore_print_from_ram_and_continue(float)+0x4c>
    cfde:	10 92 e6 03 	sts	0x03E6, r1	; 0x8003e6 <fan_check_error>
    cfe2:	2b 01       	movw	r4, r22
    cfe4:	3c 01       	movw	r6, r24
#endif

    // Make sure fan is turned off
    fanSpeed = 0;
    cfe6:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>

    // restore bed temperature (bed can be disabled during a thermal warning)
    if ((uint8_t)degBed() != saved_bed_temperature)
    cfea:	10 91 ae 05 	lds	r17, 0x05AE	; 0x8005ae <saved_bed_temperature>
    cfee:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
    cff2:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
    cff6:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
    cffa:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
    cffe:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
    d002:	61 17       	cp	r22, r17
    d004:	31 f0       	breq	.+12     	; 0xd012 <restore_print_from_ram_and_continue(float)+0x7c>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
    d006:	81 2f       	mov	r24, r17
    d008:	90 e0       	ldi	r25, 0x00	; 0
    d00a:	90 93 73 06 	sts	0x0673, r25	; 0x800673 <target_temperature_bed+0x1>
    d00e:	80 93 72 06 	sts	0x0672, r24	; 0x800672 <target_temperature_bed>
        setTargetBed(saved_bed_temperature);
    restore_extruder_temperature_from_ram();
    d012:	0e 94 50 64 	call	0xc8a0	; 0xc8a0 <restore_extruder_temperature_from_ram()>

    // Restore saved fan speed
    fanSpeed = saved_fan_speed;
    d016:	80 91 ab 05 	lds	r24, 0x05AB	; 0x8005ab <saved_fan_speed>
    d01a:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
    axis_relative_modes ^= (-saved_extruder_relative_mode ^ axis_relative_modes) & E_AXIS_MASK;
    d01e:	90 91 e5 03 	lds	r25, 0x03E5	; 0x8003e5 <axis_relative_modes>
    d022:	80 91 64 05 	lds	r24, 0x0564	; 0x800564 <saved_extruder_relative_mode>
    d026:	81 95       	neg	r24
    d028:	89 27       	eor	r24, r25
    d02a:	88 70       	andi	r24, 0x08	; 8
    d02c:	89 27       	eor	r24, r25
    d02e:	80 93 e5 03 	sts	0x03E5, r24	; 0x8003e5 <axis_relative_modes>
    float e = saved_pos[E_AXIS] - e_move;
    d032:	a3 01       	movw	r20, r6
    d034:	92 01       	movw	r18, r4
    d036:	60 91 7f 02 	lds	r22, 0x027F	; 0x80027f <saved_pos+0xc>
    d03a:	70 91 80 02 	lds	r23, 0x0280	; 0x800280 <saved_pos+0xd>
    d03e:	80 91 81 02 	lds	r24, 0x0281	; 0x800281 <saved_pos+0xe>
    d042:	90 91 82 02 	lds	r25, 0x0282	; 0x800282 <saved_pos+0xf>
    d046:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d04a:	6d 83       	std	Y+5, r22	; 0x05
    d04c:	7e 83       	std	Y+6, r23	; 0x06
    d04e:	8f 83       	std	Y+7, r24	; 0x07
    d050:	98 87       	std	Y+8, r25	; 0x08
    plan_set_e_position(e);
    d052:	ce 01       	movw	r24, r28
    d054:	05 96       	adiw	r24, 0x05	; 5
    d056:	0f 94 00 65 	call	0x2ca00	; 0x2ca00 <plan_set_e_position(float const&)>

  #ifdef FANCHECK
    fans_check_enabled = false;
    d05a:	10 92 38 02 	sts	0x0238, r1	; 0x800238 <fans_check_enabled>
  #endif

    // do not restore XY for commands that do not require that
    if (saved_pos[X_AXIS] == X_COORD_INVALID)
    d05e:	20 e0       	ldi	r18, 0x00	; 0
    d060:	30 e0       	ldi	r19, 0x00	; 0
    d062:	40 e8       	ldi	r20, 0x80	; 128
    d064:	5f eb       	ldi	r21, 0xBF	; 191
    d066:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
    d06a:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
    d06e:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
    d072:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
    d076:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d07a:	81 11       	cpse	r24, r1
    d07c:	20 c0       	rjmp	.+64     	; 0xd0be <restore_print_from_ram_and_continue(float)+0x128>
    {
        saved_pos[X_AXIS] = current_position[X_AXIS];
    d07e:	80 91 92 06 	lds	r24, 0x0692	; 0x800692 <current_position>
    d082:	90 91 93 06 	lds	r25, 0x0693	; 0x800693 <current_position+0x1>
    d086:	a0 91 94 06 	lds	r26, 0x0694	; 0x800694 <current_position+0x2>
    d08a:	b0 91 95 06 	lds	r27, 0x0695	; 0x800695 <current_position+0x3>
    d08e:	80 93 73 02 	sts	0x0273, r24	; 0x800273 <saved_pos>
    d092:	90 93 74 02 	sts	0x0274, r25	; 0x800274 <saved_pos+0x1>
    d096:	a0 93 75 02 	sts	0x0275, r26	; 0x800275 <saved_pos+0x2>
    d09a:	b0 93 76 02 	sts	0x0276, r27	; 0x800276 <saved_pos+0x3>
        saved_pos[Y_AXIS] = current_position[Y_AXIS];
    d09e:	80 91 96 06 	lds	r24, 0x0696	; 0x800696 <current_position+0x4>
    d0a2:	90 91 97 06 	lds	r25, 0x0697	; 0x800697 <current_position+0x5>
    d0a6:	a0 91 98 06 	lds	r26, 0x0698	; 0x800698 <current_position+0x6>
    d0aa:	b0 91 99 06 	lds	r27, 0x0699	; 0x800699 <current_position+0x7>
    d0ae:	80 93 77 02 	sts	0x0277, r24	; 0x800277 <saved_pos+0x4>
    d0b2:	90 93 78 02 	sts	0x0278, r25	; 0x800278 <saved_pos+0x5>
    d0b6:	a0 93 79 02 	sts	0x0279, r26	; 0x800279 <saved_pos+0x6>
    d0ba:	b0 93 7a 02 	sts	0x027A, r27	; 0x80027a <saved_pos+0x7>
    }

	//first move print head in XY to the saved position:
	plan_buffer_line(saved_pos[X_AXIS], saved_pos[Y_AXIS], current_position[Z_AXIS], saved_pos[E_AXIS] - e_move, homing_feedrate[Z_AXIS]/13);
    d0be:	a3 01       	movw	r20, r6
    d0c0:	92 01       	movw	r18, r4
    d0c2:	60 91 7f 02 	lds	r22, 0x027F	; 0x80027f <saved_pos+0xc>
    d0c6:	70 91 80 02 	lds	r23, 0x0280	; 0x800280 <saved_pos+0xd>
    d0ca:	80 91 81 02 	lds	r24, 0x0281	; 0x800281 <saved_pos+0xe>
    d0ce:	90 91 82 02 	lds	r25, 0x0282	; 0x800282 <saved_pos+0xf>
    d0d2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d0d6:	69 83       	std	Y+1, r22	; 0x01
    d0d8:	7a 83       	std	Y+2, r23	; 0x02
    d0da:	8b 83       	std	Y+3, r24	; 0x03
    d0dc:	9c 83       	std	Y+4, r25	; 0x04
    d0de:	e0 90 9a 06 	lds	r14, 0x069A	; 0x80069a <current_position+0x8>
    d0e2:	f0 90 9b 06 	lds	r15, 0x069B	; 0x80069b <current_position+0x9>
    d0e6:	00 91 9c 06 	lds	r16, 0x069C	; 0x80069c <current_position+0xa>
    d0ea:	10 91 9d 06 	lds	r17, 0x069D	; 0x80069d <current_position+0xb>
    d0ee:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
    d0f2:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
    d0f6:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
    d0fa:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
    d0fe:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
    d102:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
    d106:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
    d10a:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
    d10e:	1f 92       	push	r1
    d110:	1f 92       	push	r1
    d112:	1f 92       	push	r1
    d114:	1f 92       	push	r1
    d116:	e2 e6       	ldi	r30, 0x62	; 98
    d118:	8e 2e       	mov	r8, r30
    d11a:	e7 e2       	ldi	r30, 0x27	; 39
    d11c:	9e 2e       	mov	r9, r30
    d11e:	e6 e7       	ldi	r30, 0x76	; 118
    d120:	ae 2e       	mov	r10, r30
    d122:	e2 e4       	ldi	r30, 0x42	; 66
    d124:	be 2e       	mov	r11, r30
    d126:	fe 01       	movw	r30, r28
    d128:	31 96       	adiw	r30, 0x01	; 1
    d12a:	6f 01       	movw	r12, r30
    d12c:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
	//then move Z
	plan_buffer_line(saved_pos[X_AXIS], saved_pos[Y_AXIS], saved_pos[Z_AXIS], saved_pos[E_AXIS] - e_move, homing_feedrate[Z_AXIS]/13);
    d130:	a3 01       	movw	r20, r6
    d132:	92 01       	movw	r18, r4
    d134:	60 91 7f 02 	lds	r22, 0x027F	; 0x80027f <saved_pos+0xc>
    d138:	70 91 80 02 	lds	r23, 0x0280	; 0x800280 <saved_pos+0xd>
    d13c:	80 91 81 02 	lds	r24, 0x0281	; 0x800281 <saved_pos+0xe>
    d140:	90 91 82 02 	lds	r25, 0x0282	; 0x800282 <saved_pos+0xf>
    d144:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d148:	69 83       	std	Y+1, r22	; 0x01
    d14a:	7a 83       	std	Y+2, r23	; 0x02
    d14c:	8b 83       	std	Y+3, r24	; 0x03
    d14e:	9c 83       	std	Y+4, r25	; 0x04
    d150:	e0 90 7b 02 	lds	r14, 0x027B	; 0x80027b <saved_pos+0x8>
    d154:	f0 90 7c 02 	lds	r15, 0x027C	; 0x80027c <saved_pos+0x9>
    d158:	00 91 7d 02 	lds	r16, 0x027D	; 0x80027d <saved_pos+0xa>
    d15c:	10 91 7e 02 	lds	r17, 0x027E	; 0x80027e <saved_pos+0xb>
    d160:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
    d164:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
    d168:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
    d16c:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
    d170:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
    d174:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
    d178:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
    d17c:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
    d180:	1f 92       	push	r1
    d182:	1f 92       	push	r1
    d184:	1f 92       	push	r1
    d186:	1f 92       	push	r1
    d188:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
	//and finaly unretract (35mm/s)
	plan_buffer_line(saved_pos[X_AXIS], saved_pos[Y_AXIS], saved_pos[Z_AXIS], saved_pos[E_AXIS], FILAMENTCHANGE_RFEED);
    d18c:	e0 90 7b 02 	lds	r14, 0x027B	; 0x80027b <saved_pos+0x8>
    d190:	f0 90 7c 02 	lds	r15, 0x027C	; 0x80027c <saved_pos+0x9>
    d194:	00 91 7d 02 	lds	r16, 0x027D	; 0x80027d <saved_pos+0xa>
    d198:	10 91 7e 02 	lds	r17, 0x027E	; 0x80027e <saved_pos+0xb>
    d19c:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
    d1a0:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
    d1a4:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
    d1a8:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
    d1ac:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
    d1b0:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
    d1b4:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
    d1b8:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
    d1bc:	1f 92       	push	r1
    d1be:	1f 92       	push	r1
    d1c0:	1f 92       	push	r1
    d1c2:	1f 92       	push	r1
    d1c4:	81 2c       	mov	r8, r1
    d1c6:	91 2c       	mov	r9, r1
    d1c8:	f8 ee       	ldi	r31, 0xE8	; 232
    d1ca:	af 2e       	mov	r10, r31
    d1cc:	f2 e4       	ldi	r31, 0x42	; 66
    d1ce:	bf 2e       	mov	r11, r31
    d1d0:	af e7       	ldi	r26, 0x7F	; 127
    d1d2:	ca 2e       	mov	r12, r26
    d1d4:	a2 e0       	ldi	r26, 0x02	; 2
    d1d6:	da 2e       	mov	r13, r26
    d1d8:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
	st_synchronize();
    d1dc:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

  #ifdef FANCHECK
    fans_check_enabled = true;
    d1e0:	11 e0       	ldi	r17, 0x01	; 1
    d1e2:	10 93 38 02 	sts	0x0238, r17	; 0x800238 <fans_check_enabled>
  #endif

    // restore original feedrate/feedmultiply _after_ restoring the extruder position
	feedrate = saved_feedrate2;
    d1e6:	60 91 5e 05 	lds	r22, 0x055E	; 0x80055e <saved_feedrate2>
    d1ea:	70 91 5f 05 	lds	r23, 0x055F	; 0x80055f <saved_feedrate2+0x1>
    d1ee:	90 e0       	ldi	r25, 0x00	; 0
    d1f0:	80 e0       	ldi	r24, 0x00	; 0
    d1f2:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
    d1f6:	60 93 b8 02 	sts	0x02B8, r22	; 0x8002b8 <feedrate>
    d1fa:	70 93 b9 02 	sts	0x02B9, r23	; 0x8002b9 <feedrate+0x1>
    d1fe:	80 93 ba 02 	sts	0x02BA, r24	; 0x8002ba <feedrate+0x2>
    d202:	90 93 bb 02 	sts	0x02BB, r25	; 0x8002bb <feedrate+0x3>
	feedmultiply = saved_feedmultiply2;
    d206:	80 91 71 03 	lds	r24, 0x0371	; 0x800371 <saved_feedmultiply2>
    d20a:	90 91 72 03 	lds	r25, 0x0372	; 0x800372 <saved_feedmultiply2+0x1>
    d20e:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
    d212:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>

	memcpy(current_position, saved_pos, sizeof(saved_pos));
    d216:	80 e1       	ldi	r24, 0x10	; 16
    d218:	e3 e7       	ldi	r30, 0x73	; 115
    d21a:	f2 e0       	ldi	r31, 0x02	; 2
    d21c:	a2 e9       	ldi	r26, 0x92	; 146
    d21e:	b6 e0       	ldi	r27, 0x06	; 6
    d220:	01 90       	ld	r0, Z+
    d222:	0d 92       	st	X+, r0
    d224:	8a 95       	dec	r24
    d226:	e1 f7       	brne	.-8      	; 0xd220 <restore_print_from_ram_and_continue(float)+0x28a>
	set_destination_to_current();
    d228:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
        //not sd printing nor usb printing
    }
}

void restore_print_file_state() {
    if (saved_printing_type == PowerPanic::PRINT_TYPE_SD) { //was sd printing
    d22c:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
    d230:	0f b6       	in	r0, 0x3f	; 63
    d232:	f8 94       	cli
    d234:	de bf       	out	0x3e, r29	; 62
    d236:	0f be       	out	0x3f, r0	; 63
    d238:	cd bf       	out	0x3d, r28	; 61
    d23a:	81 11       	cpse	r24, r1
    d23c:	51 c0       	rjmp	.+162    	; 0xd2e0 <restore_print_from_ram_and_continue(float)+0x34a>
        card.setIndex(saved_sdpos);
    d23e:	60 91 60 05 	lds	r22, 0x0560	; 0x800560 <saved_sdpos>
    d242:	70 91 61 05 	lds	r23, 0x0561	; 0x800561 <saved_sdpos+0x1>
    d246:	80 91 62 05 	lds	r24, 0x0562	; 0x800562 <saved_sdpos+0x2>
    d24a:	90 91 63 05 	lds	r25, 0x0563	; 0x800563 <saved_sdpos+0x3>
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
    d24e:	60 93 a4 17 	sts	0x17A4, r22	; 0x8017a4 <card+0x316>
    d252:	70 93 a5 17 	sts	0x17A5, r23	; 0x8017a5 <card+0x317>
    d256:	80 93 a6 17 	sts	0x17A6, r24	; 0x8017a6 <card+0x318>
    d25a:	90 93 a7 17 	sts	0x17A7, r25	; 0x8017a7 <card+0x319>
    d25e:	0f 94 de 76 	call	0x2edbc	; 0x2edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>
        sdpos_atomic = saved_sdpos;
    d262:	80 91 60 05 	lds	r24, 0x0560	; 0x800560 <saved_sdpos>
    d266:	90 91 61 05 	lds	r25, 0x0561	; 0x800561 <saved_sdpos+0x1>
    d26a:	a0 91 62 05 	lds	r26, 0x0562	; 0x800562 <saved_sdpos+0x2>
    d26e:	b0 91 63 05 	lds	r27, 0x0563	; 0x800563 <saved_sdpos+0x3>
    d272:	80 93 82 03 	sts	0x0382, r24	; 0x800382 <sdpos_atomic>
    d276:	90 93 83 03 	sts	0x0383, r25	; 0x800383 <sdpos_atomic+0x1>
    d27a:	a0 93 84 03 	sts	0x0384, r26	; 0x800384 <sdpos_atomic+0x2>
    d27e:	b0 93 85 03 	sts	0x0385, r27	; 0x800385 <sdpos_atomic+0x3>
        card.sdprinting = true;
    d282:	10 93 90 14 	sts	0x1490, r17	; 0x801490 <card+0x2>
    d286:	60 e0       	ldi	r22, 0x00	; 0
    d288:	85 ea       	ldi	r24, 0xA5	; 165
    d28a:	9f e0       	ldi	r25, 0x0F	; 15
    d28c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    d290:	60 e0       	ldi	r22, 0x00	; 0
    d292:	8f e7       	ldi	r24, 0x7F	; 127
    d294:	9c e0       	ldi	r25, 0x0C	; 12
    d296:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	set_destination_to_current();

    restore_print_file_state();
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO_Z_LIFTED, 0);
	lcd_setstatuspgm(MSG_WELCOME);
    d29a:	8f ec       	ldi	r24, 0xCF	; 207
    d29c:	9f e6       	ldi	r25, 0x6F	; 111
    d29e:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    saved_printing_type = PowerPanic::PRINT_TYPE_NONE;
    d2a2:	82 e0       	ldi	r24, 0x02	; 2
    d2a4:	80 93 6a 02 	sts	0x026A, r24	; 0x80026a <saved_printing_type>
	saved_printing = false;
    d2a8:	10 92 a9 0d 	sts	0x0DA9, r1	; 0x800da9 <saved_printing>
    planner_aborted = true; // unroll the stack
    d2ac:	81 e0       	ldi	r24, 0x01	; 1
    d2ae:	80 93 ac 0d 	sts	0x0DAC, r24	; 0x800dac <planner_aborted>
}
    d2b2:	28 96       	adiw	r28, 0x08	; 8
    d2b4:	0f b6       	in	r0, 0x3f	; 63
    d2b6:	f8 94       	cli
    d2b8:	de bf       	out	0x3e, r29	; 62
    d2ba:	0f be       	out	0x3f, r0	; 63
    d2bc:	cd bf       	out	0x3d, r28	; 61
    d2be:	df 91       	pop	r29
    d2c0:	cf 91       	pop	r28
    d2c2:	1f 91       	pop	r17
    d2c4:	0f 91       	pop	r16
    d2c6:	ff 90       	pop	r15
    d2c8:	ef 90       	pop	r14
    d2ca:	df 90       	pop	r13
    d2cc:	cf 90       	pop	r12
    d2ce:	bf 90       	pop	r11
    d2d0:	af 90       	pop	r10
    d2d2:	9f 90       	pop	r9
    d2d4:	8f 90       	pop	r8
    d2d6:	7f 90       	pop	r7
    d2d8:	6f 90       	pop	r6
    d2da:	5f 90       	pop	r5
    d2dc:	4f 90       	pop	r4
    d2de:	08 95       	ret
void restore_print_file_state() {
    if (saved_printing_type == PowerPanic::PRINT_TYPE_SD) { //was sd printing
        card.setIndex(saved_sdpos);
        sdpos_atomic = saved_sdpos;
        card.sdprinting = true;
    } else if (saved_printing_type == PowerPanic::PRINT_TYPE_HOST) { //was usb printing
    d2e0:	81 30       	cpi	r24, 0x01	; 1
    d2e2:	89 f6       	brne	.-94     	; 0xd286 <restore_print_from_ram_and_continue(float)+0x2f0>
        gcode_LastN = saved_sdpos; //saved_sdpos was reused for storing line number when usb printing
    d2e4:	80 91 60 05 	lds	r24, 0x0560	; 0x800560 <saved_sdpos>
    d2e8:	90 91 61 05 	lds	r25, 0x0561	; 0x800561 <saved_sdpos+0x1>
    d2ec:	a0 91 62 05 	lds	r26, 0x0562	; 0x800562 <saved_sdpos+0x2>
    d2f0:	b0 91 63 05 	lds	r27, 0x0563	; 0x800563 <saved_sdpos+0x3>
    d2f4:	80 93 7a 03 	sts	0x037A, r24	; 0x80037a <gcode_LastN>
    d2f8:	90 93 7b 03 	sts	0x037B, r25	; 0x80037b <gcode_LastN+0x1>
    d2fc:	a0 93 7c 03 	sts	0x037C, r26	; 0x80037c <gcode_LastN+0x2>
    d300:	b0 93 7d 03 	sts	0x037D, r27	; 0x80037d <gcode_LastN+0x3>
        serial_count = 0;
    d304:	10 92 9f 10 	sts	0x109F, r1	; 0x80109f <serial_count+0x1>
    d308:	10 92 9e 10 	sts	0x109E, r1	; 0x80109e <serial_count>
        FlushSerialRequestResend();
    d30c:	0e 94 14 5b 	call	0xb628	; 0xb628 <FlushSerialRequestResend()>
    d310:	ba cf       	rjmp	.-140    	; 0xd286 <restore_print_from_ram_and_continue(float)+0x2f0>

0000d312 <world2machine(float&, float&)>:
extern void world2machine_initialize();
extern void world2machine_read_valid(float vec_x[2], float vec_y[2], float cntr[2]);
extern void world2machine_update_current();

inline void world2machine(float &x, float &y)
{
    d312:	3f 92       	push	r3
    d314:	4f 92       	push	r4
    d316:	5f 92       	push	r5
    d318:	6f 92       	push	r6
    d31a:	7f 92       	push	r7
    d31c:	8f 92       	push	r8
    d31e:	9f 92       	push	r9
    d320:	af 92       	push	r10
    d322:	bf 92       	push	r11
    d324:	cf 92       	push	r12
    d326:	df 92       	push	r13
    d328:	ef 92       	push	r14
    d32a:	ff 92       	push	r15
    d32c:	0f 93       	push	r16
    d32e:	1f 93       	push	r17
    d330:	cf 93       	push	r28
    d332:	df 93       	push	r29
	if (world2machine_correction_mode == WORLD2MACHINE_CORRECTION_NONE) {
    d334:	30 90 0f 18 	lds	r3, 0x180F	; 0x80180f <world2machine_correction_mode>
    d338:	33 20       	and	r3, r3
    d33a:	09 f4       	brne	.+2      	; 0xd33e <world2machine(float&, float&)+0x2c>
    d33c:	80 c0       	rjmp	.+256    	; 0xd43e <world2machine(float&, float&)+0x12c>
    d33e:	8b 01       	movw	r16, r22
    d340:	ec 01       	movw	r28, r24
		// No correction.
	} else {
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
    d342:	31 fe       	sbrs	r3, 1
    d344:	54 c0       	rjmp	.+168    	; 0xd3ee <world2machine(float&, float&)+0xdc>
			// Firs the skew & rotation correction.
			float out_x = world2machine_rotation_and_skew[0][0] * x + world2machine_rotation_and_skew[0][1] * y;
    d346:	88 80       	ld	r8, Y
    d348:	99 80       	ldd	r9, Y+1	; 0x01
    d34a:	aa 80       	ldd	r10, Y+2	; 0x02
    d34c:	bb 80       	ldd	r11, Y+3	; 0x03
    d34e:	fb 01       	movw	r30, r22
    d350:	c0 80       	ld	r12, Z
    d352:	d1 80       	ldd	r13, Z+1	; 0x01
    d354:	e2 80       	ldd	r14, Z+2	; 0x02
    d356:	f3 80       	ldd	r15, Z+3	; 0x03
			float out_y = world2machine_rotation_and_skew[1][0] * x + world2machine_rotation_and_skew[1][1] * y;
    d358:	20 91 e4 17 	lds	r18, 0x17E4	; 0x8017e4 <world2machine_rotation_and_skew+0x8>
    d35c:	30 91 e5 17 	lds	r19, 0x17E5	; 0x8017e5 <world2machine_rotation_and_skew+0x9>
    d360:	40 91 e6 17 	lds	r20, 0x17E6	; 0x8017e6 <world2machine_rotation_and_skew+0xa>
    d364:	50 91 e7 17 	lds	r21, 0x17E7	; 0x8017e7 <world2machine_rotation_and_skew+0xb>
    d368:	c5 01       	movw	r24, r10
    d36a:	b4 01       	movw	r22, r8
    d36c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d370:	2b 01       	movw	r4, r22
    d372:	3c 01       	movw	r6, r24
    d374:	20 91 e8 17 	lds	r18, 0x17E8	; 0x8017e8 <world2machine_rotation_and_skew+0xc>
    d378:	30 91 e9 17 	lds	r19, 0x17E9	; 0x8017e9 <world2machine_rotation_and_skew+0xd>
    d37c:	40 91 ea 17 	lds	r20, 0x17EA	; 0x8017ea <world2machine_rotation_and_skew+0xe>
    d380:	50 91 eb 17 	lds	r21, 0x17EB	; 0x8017eb <world2machine_rotation_and_skew+0xf>
    d384:	c7 01       	movw	r24, r14
    d386:	b6 01       	movw	r22, r12
    d388:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d38c:	9b 01       	movw	r18, r22
    d38e:	ac 01       	movw	r20, r24
    d390:	c3 01       	movw	r24, r6
    d392:	b2 01       	movw	r22, r4
    d394:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d398:	2b 01       	movw	r4, r22
    d39a:	3c 01       	movw	r6, r24
	if (world2machine_correction_mode == WORLD2MACHINE_CORRECTION_NONE) {
		// No correction.
	} else {
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
			// Firs the skew & rotation correction.
			float out_x = world2machine_rotation_and_skew[0][0] * x + world2machine_rotation_and_skew[0][1] * y;
    d39c:	20 91 dc 17 	lds	r18, 0x17DC	; 0x8017dc <world2machine_rotation_and_skew>
    d3a0:	30 91 dd 17 	lds	r19, 0x17DD	; 0x8017dd <world2machine_rotation_and_skew+0x1>
    d3a4:	40 91 de 17 	lds	r20, 0x17DE	; 0x8017de <world2machine_rotation_and_skew+0x2>
    d3a8:	50 91 df 17 	lds	r21, 0x17DF	; 0x8017df <world2machine_rotation_and_skew+0x3>
    d3ac:	c5 01       	movw	r24, r10
    d3ae:	b4 01       	movw	r22, r8
    d3b0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d3b4:	4b 01       	movw	r8, r22
    d3b6:	5c 01       	movw	r10, r24
    d3b8:	20 91 e0 17 	lds	r18, 0x17E0	; 0x8017e0 <world2machine_rotation_and_skew+0x4>
    d3bc:	30 91 e1 17 	lds	r19, 0x17E1	; 0x8017e1 <world2machine_rotation_and_skew+0x5>
    d3c0:	40 91 e2 17 	lds	r20, 0x17E2	; 0x8017e2 <world2machine_rotation_and_skew+0x6>
    d3c4:	50 91 e3 17 	lds	r21, 0x17E3	; 0x8017e3 <world2machine_rotation_and_skew+0x7>
    d3c8:	c7 01       	movw	r24, r14
    d3ca:	b6 01       	movw	r22, r12
    d3cc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d3d0:	9b 01       	movw	r18, r22
    d3d2:	ac 01       	movw	r20, r24
    d3d4:	c5 01       	movw	r24, r10
    d3d6:	b4 01       	movw	r22, r8
    d3d8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
			float out_y = world2machine_rotation_and_skew[1][0] * x + world2machine_rotation_and_skew[1][1] * y;
			x = out_x;
    d3dc:	68 83       	st	Y, r22
    d3de:	79 83       	std	Y+1, r23	; 0x01
    d3e0:	8a 83       	std	Y+2, r24	; 0x02
    d3e2:	9b 83       	std	Y+3, r25	; 0x03
			y = out_y;
    d3e4:	f8 01       	movw	r30, r16
    d3e6:	40 82       	st	Z, r4
    d3e8:	51 82       	std	Z+1, r5	; 0x01
    d3ea:	62 82       	std	Z+2, r6	; 0x02
    d3ec:	73 82       	std	Z+3, r7	; 0x03
		}
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SHIFT) {
    d3ee:	30 fe       	sbrs	r3, 0
    d3f0:	26 c0       	rjmp	.+76     	; 0xd43e <world2machine(float&, float&)+0x12c>
			// Then add the offset.
			x += world2machine_shift[0];
    d3f2:	20 91 07 18 	lds	r18, 0x1807	; 0x801807 <world2machine_shift>
    d3f6:	30 91 08 18 	lds	r19, 0x1808	; 0x801808 <world2machine_shift+0x1>
    d3fa:	40 91 09 18 	lds	r20, 0x1809	; 0x801809 <world2machine_shift+0x2>
    d3fe:	50 91 0a 18 	lds	r21, 0x180A	; 0x80180a <world2machine_shift+0x3>
    d402:	68 81       	ld	r22, Y
    d404:	79 81       	ldd	r23, Y+1	; 0x01
    d406:	8a 81       	ldd	r24, Y+2	; 0x02
    d408:	9b 81       	ldd	r25, Y+3	; 0x03
    d40a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d40e:	68 83       	st	Y, r22
    d410:	79 83       	std	Y+1, r23	; 0x01
    d412:	8a 83       	std	Y+2, r24	; 0x02
    d414:	9b 83       	std	Y+3, r25	; 0x03
			y += world2machine_shift[1];
    d416:	20 91 0b 18 	lds	r18, 0x180B	; 0x80180b <world2machine_shift+0x4>
    d41a:	30 91 0c 18 	lds	r19, 0x180C	; 0x80180c <world2machine_shift+0x5>
    d41e:	40 91 0d 18 	lds	r20, 0x180D	; 0x80180d <world2machine_shift+0x6>
    d422:	50 91 0e 18 	lds	r21, 0x180E	; 0x80180e <world2machine_shift+0x7>
    d426:	f8 01       	movw	r30, r16
    d428:	60 81       	ld	r22, Z
    d42a:	71 81       	ldd	r23, Z+1	; 0x01
    d42c:	82 81       	ldd	r24, Z+2	; 0x02
    d42e:	93 81       	ldd	r25, Z+3	; 0x03
    d430:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d434:	f8 01       	movw	r30, r16
    d436:	60 83       	st	Z, r22
    d438:	71 83       	std	Z+1, r23	; 0x01
    d43a:	82 83       	std	Z+2, r24	; 0x02
    d43c:	93 83       	std	Z+3, r25	; 0x03
		}
	}
}
    d43e:	df 91       	pop	r29
    d440:	cf 91       	pop	r28
    d442:	1f 91       	pop	r17
    d444:	0f 91       	pop	r16
    d446:	ff 90       	pop	r15
    d448:	ef 90       	pop	r14
    d44a:	df 90       	pop	r13
    d44c:	cf 90       	pop	r12
    d44e:	bf 90       	pop	r11
    d450:	af 90       	pop	r10
    d452:	9f 90       	pop	r9
    d454:	8f 90       	pop	r8
    d456:	7f 90       	pop	r7
    d458:	6f 90       	pop	r6
    d45a:	5f 90       	pop	r5
    d45c:	4f 90       	pop	r4
    d45e:	3f 90       	pop	r3
    d460:	08 95       	ret

0000d462 <world2machine_clamp(float&, float&)>:
		}
	}
}

inline bool world2machine_clamp(float &x, float &y)
{
    d462:	2f 92       	push	r2
    d464:	3f 92       	push	r3
    d466:	4f 92       	push	r4
    d468:	5f 92       	push	r5
    d46a:	6f 92       	push	r6
    d46c:	7f 92       	push	r7
    d46e:	8f 92       	push	r8
    d470:	9f 92       	push	r9
    d472:	af 92       	push	r10
    d474:	bf 92       	push	r11
    d476:	cf 92       	push	r12
    d478:	df 92       	push	r13
    d47a:	ef 92       	push	r14
    d47c:	ff 92       	push	r15
    d47e:	0f 93       	push	r16
    d480:	1f 93       	push	r17
    d482:	cf 93       	push	r28
    d484:	df 93       	push	r29
    d486:	00 d0       	rcall	.+0      	; 0xd488 <world2machine_clamp(float&, float&)+0x26>
    d488:	00 d0       	rcall	.+0      	; 0xd48a <world2machine_clamp(float&, float&)+0x28>
    d48a:	1f 92       	push	r1
    d48c:	1f 92       	push	r1
    d48e:	cd b7       	in	r28, 0x3d	; 61
    d490:	de b7       	in	r29, 0x3e	; 62
    d492:	8c 01       	movw	r16, r24
    d494:	1b 01       	movw	r2, r22
	}
}

inline void world2machine(const float &x, const float &y, float &out_x, float &out_y)
{
    out_x = x;
    d496:	fc 01       	movw	r30, r24
    d498:	80 81       	ld	r24, Z
    d49a:	91 81       	ldd	r25, Z+1	; 0x01
    d49c:	a2 81       	ldd	r26, Z+2	; 0x02
    d49e:	b3 81       	ldd	r27, Z+3	; 0x03
    d4a0:	89 83       	std	Y+1, r24	; 0x01
    d4a2:	9a 83       	std	Y+2, r25	; 0x02
    d4a4:	ab 83       	std	Y+3, r26	; 0x03
    d4a6:	bc 83       	std	Y+4, r27	; 0x04
    out_y = y;
    d4a8:	fb 01       	movw	r30, r22
    d4aa:	80 81       	ld	r24, Z
    d4ac:	91 81       	ldd	r25, Z+1	; 0x01
    d4ae:	a2 81       	ldd	r26, Z+2	; 0x02
    d4b0:	b3 81       	ldd	r27, Z+3	; 0x03
    d4b2:	8d 83       	std	Y+5, r24	; 0x05
    d4b4:	9e 83       	std	Y+6, r25	; 0x06
    d4b6:	af 83       	std	Y+7, r26	; 0x07
    d4b8:	b8 87       	std	Y+8, r27	; 0x08
    world2machine(out_x, out_y);
    d4ba:	be 01       	movw	r22, r28
    d4bc:	6b 5f       	subi	r22, 0xFB	; 251
    d4be:	7f 4f       	sbci	r23, 0xFF	; 255
    d4c0:	ce 01       	movw	r24, r28
    d4c2:	01 96       	adiw	r24, 0x01	; 1
    d4c4:	0e 94 89 69 	call	0xd312	; 0xd312 <world2machine(float&, float&)>
inline bool world2machine_clamp(float &x, float &y)
{
	bool clamped = false;
	float tmpx, tmpy;
    world2machine(x, y, tmpx, tmpy);
    if (tmpx < X_MIN_POS) {
    d4c8:	c9 80       	ldd	r12, Y+1	; 0x01
    d4ca:	da 80       	ldd	r13, Y+2	; 0x02
    d4cc:	eb 80       	ldd	r14, Y+3	; 0x03
    d4ce:	fc 80       	ldd	r15, Y+4	; 0x04
    d4d0:	20 e0       	ldi	r18, 0x00	; 0
    d4d2:	30 e0       	ldi	r19, 0x00	; 0
    d4d4:	a9 01       	movw	r20, r18
    d4d6:	c7 01       	movw	r24, r14
    d4d8:	b6 01       	movw	r22, r12
    d4da:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d4de:	87 ff       	sbrs	r24, 7
    d4e0:	35 c0       	rjmp	.+106    	; 0xd54c <world2machine_clamp(float&, float&)+0xea>
        tmpx = X_MIN_POS;
    d4e2:	19 82       	std	Y+1, r1	; 0x01
    d4e4:	1a 82       	std	Y+2, r1	; 0x02
    d4e6:	1b 82       	std	Y+3, r1	; 0x03
    d4e8:	1c 82       	std	Y+4, r1	; 0x04
        clamped = true;
    } else if (tmpx > X_MAX_POS) {
        tmpx = X_MAX_POS;
        clamped = true;
    d4ea:	ff 24       	eor	r15, r15
    d4ec:	f3 94       	inc	r15
    }

    if (tmpy < Y_MIN_POS) {
    d4ee:	8d 80       	ldd	r8, Y+5	; 0x05
    d4f0:	9e 80       	ldd	r9, Y+6	; 0x06
    d4f2:	af 80       	ldd	r10, Y+7	; 0x07
    d4f4:	b8 84       	ldd	r11, Y+8	; 0x08
    d4f6:	20 e0       	ldi	r18, 0x00	; 0
    d4f8:	30 e0       	ldi	r19, 0x00	; 0
    d4fa:	40 e8       	ldi	r20, 0x80	; 128
    d4fc:	50 ec       	ldi	r21, 0xC0	; 192
    d4fe:	c5 01       	movw	r24, r10
    d500:	b4 01       	movw	r22, r8
    d502:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d506:	87 ff       	sbrs	r24, 7
    d508:	35 c0       	rjmp	.+106    	; 0xd574 <world2machine_clamp(float&, float&)+0x112>
        tmpy = Y_MIN_POS;
    d50a:	80 e0       	ldi	r24, 0x00	; 0
    d50c:	90 e0       	ldi	r25, 0x00	; 0
    d50e:	a0 e8       	ldi	r26, 0x80	; 128
    d510:	b0 ec       	ldi	r27, 0xC0	; 192
        clamped = true;
    } else if (tmpy > Y_MAX_POS) {
        tmpy = Y_MAX_POS;
    d512:	8d 83       	std	Y+5, r24	; 0x05
    d514:	9e 83       	std	Y+6, r25	; 0x06
    d516:	af 83       	std	Y+7, r26	; 0x07
    d518:	b8 87       	std	Y+8, r27	; 0x08
        clamped = true;
    }
    if (clamped)
        machine2world(tmpx, tmpy, x, y);
    d51a:	cd 80       	ldd	r12, Y+5	; 0x05
    d51c:	de 80       	ldd	r13, Y+6	; 0x06
    d51e:	ef 80       	ldd	r14, Y+7	; 0x07
    d520:	f8 84       	ldd	r15, Y+8	; 0x08
    d522:	89 80       	ldd	r8, Y+1	; 0x01
    d524:	9a 80       	ldd	r9, Y+2	; 0x02
    d526:	ab 80       	ldd	r10, Y+3	; 0x03
    d528:	bc 80       	ldd	r11, Y+4	; 0x04
    world2machine(out_x, out_y);
}

inline void machine2world(float x, float y, float &out_x, float &out_y)
{
	if (world2machine_correction_mode == WORLD2MACHINE_CORRECTION_NONE) {
    d52a:	70 90 0f 18 	lds	r7, 0x180F	; 0x80180f <world2machine_correction_mode>
    d52e:	71 10       	cpse	r7, r1
    d530:	4c c0       	rjmp	.+152    	; 0xd5ca <world2machine_clamp(float&, float&)+0x168>
		// No correction.
		out_x = x;
    d532:	f8 01       	movw	r30, r16
    d534:	80 82       	st	Z, r8
    d536:	91 82       	std	Z+1, r9	; 0x01
    d538:	a2 82       	std	Z+2, r10	; 0x02
    d53a:	b3 82       	std	Z+3, r11	; 0x03
		out_y = y;
    d53c:	f1 01       	movw	r30, r2
    d53e:	c0 82       	st	Z, r12
    d540:	d1 82       	std	Z+1, r13	; 0x01
    d542:	e2 82       	std	Z+2, r14	; 0x02
    d544:	f3 82       	std	Z+3, r15	; 0x03
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SHIFT) {
			// Then add the offset.
			x -= world2machine_shift[0];
			y -= world2machine_shift[1];
		}
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
    d546:	ff 24       	eor	r15, r15
    d548:	f3 94       	inc	r15
    d54a:	25 c0       	rjmp	.+74     	; 0xd596 <world2machine_clamp(float&, float&)+0x134>
	float tmpx, tmpy;
    world2machine(x, y, tmpx, tmpy);
    if (tmpx < X_MIN_POS) {
        tmpx = X_MIN_POS;
        clamped = true;
    } else if (tmpx > X_MAX_POS) {
    d54c:	20 e0       	ldi	r18, 0x00	; 0
    d54e:	30 e0       	ldi	r19, 0x00	; 0
    d550:	4f e7       	ldi	r20, 0x7F	; 127
    d552:	53 e4       	ldi	r21, 0x43	; 67
    d554:	c7 01       	movw	r24, r14
    d556:	b6 01       	movw	r22, r12
    d558:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
	}
}

inline bool world2machine_clamp(float &x, float &y)
{
	bool clamped = false;
    d55c:	f1 2c       	mov	r15, r1
	float tmpx, tmpy;
    world2machine(x, y, tmpx, tmpy);
    if (tmpx < X_MIN_POS) {
        tmpx = X_MIN_POS;
        clamped = true;
    } else if (tmpx > X_MAX_POS) {
    d55e:	18 16       	cp	r1, r24
    d560:	34 f6       	brge	.-116    	; 0xd4ee <world2machine_clamp(float&, float&)+0x8c>
        tmpx = X_MAX_POS;
    d562:	80 e0       	ldi	r24, 0x00	; 0
    d564:	90 e0       	ldi	r25, 0x00	; 0
    d566:	af e7       	ldi	r26, 0x7F	; 127
    d568:	b3 e4       	ldi	r27, 0x43	; 67
    d56a:	89 83       	std	Y+1, r24	; 0x01
    d56c:	9a 83       	std	Y+2, r25	; 0x02
    d56e:	ab 83       	std	Y+3, r26	; 0x03
    d570:	bc 83       	std	Y+4, r27	; 0x04
    d572:	bb cf       	rjmp	.-138    	; 0xd4ea <world2machine_clamp(float&, float&)+0x88>
    }

    if (tmpy < Y_MIN_POS) {
        tmpy = Y_MIN_POS;
        clamped = true;
    } else if (tmpy > Y_MAX_POS) {
    d574:	20 e0       	ldi	r18, 0x00	; 0
    d576:	30 e8       	ldi	r19, 0x80	; 128
    d578:	44 e5       	ldi	r20, 0x54	; 84
    d57a:	53 e4       	ldi	r21, 0x43	; 67
    d57c:	c5 01       	movw	r24, r10
    d57e:	b4 01       	movw	r22, r8
    d580:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    d584:	18 16       	cp	r1, r24
    d586:	2c f4       	brge	.+10     	; 0xd592 <world2machine_clamp(float&, float&)+0x130>
        tmpy = Y_MAX_POS;
    d588:	80 e0       	ldi	r24, 0x00	; 0
    d58a:	90 e8       	ldi	r25, 0x80	; 128
    d58c:	a4 e5       	ldi	r26, 0x54	; 84
    d58e:	b3 e4       	ldi	r27, 0x43	; 67
    d590:	c0 cf       	rjmp	.-128    	; 0xd512 <world2machine_clamp(float&, float&)+0xb0>
        clamped = true;
    }
    if (clamped)
    d592:	f1 10       	cpse	r15, r1
    d594:	c2 cf       	rjmp	.-124    	; 0xd51a <world2machine_clamp(float&, float&)+0xb8>
        machine2world(tmpx, tmpy, x, y);
    return clamped;
}
    d596:	8f 2d       	mov	r24, r15
    d598:	28 96       	adiw	r28, 0x08	; 8
    d59a:	0f b6       	in	r0, 0x3f	; 63
    d59c:	f8 94       	cli
    d59e:	de bf       	out	0x3e, r29	; 62
    d5a0:	0f be       	out	0x3f, r0	; 63
    d5a2:	cd bf       	out	0x3d, r28	; 61
    d5a4:	df 91       	pop	r29
    d5a6:	cf 91       	pop	r28
    d5a8:	1f 91       	pop	r17
    d5aa:	0f 91       	pop	r16
    d5ac:	ff 90       	pop	r15
    d5ae:	ef 90       	pop	r14
    d5b0:	df 90       	pop	r13
    d5b2:	cf 90       	pop	r12
    d5b4:	bf 90       	pop	r11
    d5b6:	af 90       	pop	r10
    d5b8:	9f 90       	pop	r9
    d5ba:	8f 90       	pop	r8
    d5bc:	7f 90       	pop	r7
    d5be:	6f 90       	pop	r6
    d5c0:	5f 90       	pop	r5
    d5c2:	4f 90       	pop	r4
    d5c4:	3f 90       	pop	r3
    d5c6:	2f 90       	pop	r2
    d5c8:	08 95       	ret
	if (world2machine_correction_mode == WORLD2MACHINE_CORRECTION_NONE) {
		// No correction.
		out_x = x;
		out_y = y;
	} else {
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SHIFT) {
    d5ca:	70 fe       	sbrs	r7, 0
    d5cc:	1c c0       	rjmp	.+56     	; 0xd606 <world2machine_clamp(float&, float&)+0x1a4>
			// Then add the offset.
			x -= world2machine_shift[0];
    d5ce:	20 91 07 18 	lds	r18, 0x1807	; 0x801807 <world2machine_shift>
    d5d2:	30 91 08 18 	lds	r19, 0x1808	; 0x801808 <world2machine_shift+0x1>
    d5d6:	40 91 09 18 	lds	r20, 0x1809	; 0x801809 <world2machine_shift+0x2>
    d5da:	50 91 0a 18 	lds	r21, 0x180A	; 0x80180a <world2machine_shift+0x3>
    d5de:	c5 01       	movw	r24, r10
    d5e0:	b4 01       	movw	r22, r8
    d5e2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d5e6:	4b 01       	movw	r8, r22
    d5e8:	5c 01       	movw	r10, r24
			y -= world2machine_shift[1];
    d5ea:	20 91 0b 18 	lds	r18, 0x180B	; 0x80180b <world2machine_shift+0x4>
    d5ee:	30 91 0c 18 	lds	r19, 0x180C	; 0x80180c <world2machine_shift+0x5>
    d5f2:	40 91 0d 18 	lds	r20, 0x180D	; 0x80180d <world2machine_shift+0x6>
    d5f6:	50 91 0e 18 	lds	r21, 0x180E	; 0x80180e <world2machine_shift+0x7>
    d5fa:	c7 01       	movw	r24, r14
    d5fc:	b6 01       	movw	r22, r12
    d5fe:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d602:	6b 01       	movw	r12, r22
    d604:	7c 01       	movw	r14, r24
		}
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
    d606:	71 fe       	sbrs	r7, 1
    d608:	9e cf       	rjmp	.-196    	; 0xd546 <world2machine_clamp(float&, float&)+0xe4>
			// Firs the skew & rotation correction.
			out_x = world2machine_rotation_and_skew_inv[0][0] * x + world2machine_rotation_and_skew_inv[0][1] * y;
    d60a:	20 91 f7 17 	lds	r18, 0x17F7	; 0x8017f7 <world2machine_rotation_and_skew_inv>
    d60e:	30 91 f8 17 	lds	r19, 0x17F8	; 0x8017f8 <world2machine_rotation_and_skew_inv+0x1>
    d612:	40 91 f9 17 	lds	r20, 0x17F9	; 0x8017f9 <world2machine_rotation_and_skew_inv+0x2>
    d616:	50 91 fa 17 	lds	r21, 0x17FA	; 0x8017fa <world2machine_rotation_and_skew_inv+0x3>
    d61a:	c5 01       	movw	r24, r10
    d61c:	b4 01       	movw	r22, r8
    d61e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d622:	2b 01       	movw	r4, r22
    d624:	3c 01       	movw	r6, r24
    d626:	20 91 fb 17 	lds	r18, 0x17FB	; 0x8017fb <world2machine_rotation_and_skew_inv+0x4>
    d62a:	30 91 fc 17 	lds	r19, 0x17FC	; 0x8017fc <world2machine_rotation_and_skew_inv+0x5>
    d62e:	40 91 fd 17 	lds	r20, 0x17FD	; 0x8017fd <world2machine_rotation_and_skew_inv+0x6>
    d632:	50 91 fe 17 	lds	r21, 0x17FE	; 0x8017fe <world2machine_rotation_and_skew_inv+0x7>
    d636:	c7 01       	movw	r24, r14
    d638:	b6 01       	movw	r22, r12
    d63a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d63e:	9b 01       	movw	r18, r22
    d640:	ac 01       	movw	r20, r24
    d642:	c3 01       	movw	r24, r6
    d644:	b2 01       	movw	r22, r4
    d646:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d64a:	f8 01       	movw	r30, r16
    d64c:	60 83       	st	Z, r22
    d64e:	71 83       	std	Z+1, r23	; 0x01
    d650:	82 83       	std	Z+2, r24	; 0x02
    d652:	93 83       	std	Z+3, r25	; 0x03
			out_y = world2machine_rotation_and_skew_inv[1][0] * x + world2machine_rotation_and_skew_inv[1][1] * y;
    d654:	20 91 ff 17 	lds	r18, 0x17FF	; 0x8017ff <world2machine_rotation_and_skew_inv+0x8>
    d658:	30 91 00 18 	lds	r19, 0x1800	; 0x801800 <world2machine_rotation_and_skew_inv+0x9>
    d65c:	40 91 01 18 	lds	r20, 0x1801	; 0x801801 <world2machine_rotation_and_skew_inv+0xa>
    d660:	50 91 02 18 	lds	r21, 0x1802	; 0x801802 <world2machine_rotation_and_skew_inv+0xb>
    d664:	c5 01       	movw	r24, r10
    d666:	b4 01       	movw	r22, r8
    d668:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d66c:	4b 01       	movw	r8, r22
    d66e:	5c 01       	movw	r10, r24
    d670:	20 91 03 18 	lds	r18, 0x1803	; 0x801803 <world2machine_rotation_and_skew_inv+0xc>
    d674:	30 91 04 18 	lds	r19, 0x1804	; 0x801804 <world2machine_rotation_and_skew_inv+0xd>
    d678:	40 91 05 18 	lds	r20, 0x1805	; 0x801805 <world2machine_rotation_and_skew_inv+0xe>
    d67c:	50 91 06 18 	lds	r21, 0x1806	; 0x801806 <world2machine_rotation_and_skew_inv+0xf>
    d680:	c7 01       	movw	r24, r14
    d682:	b6 01       	movw	r22, r12
    d684:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d688:	9b 01       	movw	r18, r22
    d68a:	ac 01       	movw	r20, r24
    d68c:	c5 01       	movw	r24, r10
    d68e:	b4 01       	movw	r22, r8
    d690:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d694:	f1 01       	movw	r30, r2
    d696:	60 83       	st	Z, r22
    d698:	71 83       	std	Z+1, r23	; 0x01
    d69a:	82 83       	std	Z+2, r24	; 0x02
    d69c:	93 83       	std	Z+3, r25	; 0x03
    d69e:	53 cf       	rjmp	.-346    	; 0xd546 <world2machine_clamp(float&, float&)+0xe4>

0000d6a0 <clamp_to_software_endstops(float*)>:
    if(next_feedrate > 0.f) feedrate = next_feedrate;
  }
}

void clamp_to_software_endstops(float target[3])
{
    d6a0:	cf 92       	push	r12
    d6a2:	df 92       	push	r13
    d6a4:	ef 92       	push	r14
    d6a6:	ff 92       	push	r15
    d6a8:	cf 93       	push	r28
    d6aa:	df 93       	push	r29
    d6ac:	ec 01       	movw	r28, r24
#ifdef DEBUG_DISABLE_SWLIMITS
	return;
#endif //DEBUG_DISABLE_SWLIMITS
    world2machine_clamp(target[0], target[1]);
    d6ae:	bc 01       	movw	r22, r24
    d6b0:	6c 5f       	subi	r22, 0xFC	; 252
    d6b2:	7f 4f       	sbci	r23, 0xFF	; 255
    d6b4:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>

    // Clamp the Z coordinate.
    if (min_software_endstops) {
        if (target[Z_AXIS] < min_pos[Z_AXIS]) target[Z_AXIS] = min_pos[Z_AXIS];
    d6b8:	c0 90 29 02 	lds	r12, 0x0229	; 0x800229 <min_pos+0x8>
    d6bc:	d0 90 2a 02 	lds	r13, 0x022A	; 0x80022a <min_pos+0x9>
    d6c0:	e0 90 2b 02 	lds	r14, 0x022B	; 0x80022b <min_pos+0xa>
    d6c4:	f0 90 2c 02 	lds	r15, 0x022C	; 0x80022c <min_pos+0xb>
    d6c8:	a7 01       	movw	r20, r14
    d6ca:	96 01       	movw	r18, r12
    d6cc:	68 85       	ldd	r22, Y+8	; 0x08
    d6ce:	79 85       	ldd	r23, Y+9	; 0x09
    d6d0:	8a 85       	ldd	r24, Y+10	; 0x0a
    d6d2:	9b 85       	ldd	r25, Y+11	; 0x0b
    d6d4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d6d8:	87 ff       	sbrs	r24, 7
    d6da:	04 c0       	rjmp	.+8      	; 0xd6e4 <clamp_to_software_endstops(float*)+0x44>
    d6dc:	c8 86       	std	Y+8, r12	; 0x08
    d6de:	d9 86       	std	Y+9, r13	; 0x09
    d6e0:	ea 86       	std	Y+10, r14	; 0x0a
    d6e2:	fb 86       	std	Y+11, r15	; 0x0b
    }
    if (max_software_endstops) {
        if (target[Z_AXIS] > max_pos[Z_AXIS]) target[Z_AXIS] = max_pos[Z_AXIS];
    d6e4:	c0 90 1d 02 	lds	r12, 0x021D	; 0x80021d <max_pos+0x8>
    d6e8:	d0 90 1e 02 	lds	r13, 0x021E	; 0x80021e <max_pos+0x9>
    d6ec:	e0 90 1f 02 	lds	r14, 0x021F	; 0x80021f <max_pos+0xa>
    d6f0:	f0 90 20 02 	lds	r15, 0x0220	; 0x800220 <max_pos+0xb>
    d6f4:	a7 01       	movw	r20, r14
    d6f6:	96 01       	movw	r18, r12
    d6f8:	68 85       	ldd	r22, Y+8	; 0x08
    d6fa:	79 85       	ldd	r23, Y+9	; 0x09
    d6fc:	8a 85       	ldd	r24, Y+10	; 0x0a
    d6fe:	9b 85       	ldd	r25, Y+11	; 0x0b
    d700:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    d704:	18 16       	cp	r1, r24
    d706:	24 f4       	brge	.+8      	; 0xd710 <clamp_to_software_endstops(float*)+0x70>
    d708:	c8 86       	std	Y+8, r12	; 0x08
    d70a:	d9 86       	std	Y+9, r13	; 0x09
    d70c:	ea 86       	std	Y+10, r14	; 0x0a
    d70e:	fb 86       	std	Y+11, r15	; 0x0b
    }
}
    d710:	df 91       	pop	r29
    d712:	cf 91       	pop	r28
    d714:	ff 90       	pop	r15
    d716:	ef 90       	pop	r14
    d718:	df 90       	pop	r13
    d71a:	cf 90       	pop	r12
    d71c:	08 95       	ret

0000d71e <prepare_move(unsigned int)>:
        plan_buffer_line(x, y, z, e, feed_rate, current_position);
    }
#endif  // MESH_BED_LEVELING

void prepare_move(uint16_t start_segment_idx)
{
    d71e:	2f 92       	push	r2
    d720:	3f 92       	push	r3
    d722:	4f 92       	push	r4
    d724:	5f 92       	push	r5
    d726:	6f 92       	push	r6
    d728:	7f 92       	push	r7
    d72a:	8f 92       	push	r8
    d72c:	9f 92       	push	r9
    d72e:	af 92       	push	r10
    d730:	bf 92       	push	r11
    d732:	cf 92       	push	r12
    d734:	df 92       	push	r13
    d736:	ef 92       	push	r14
    d738:	ff 92       	push	r15
    d73a:	0f 93       	push	r16
    d73c:	1f 93       	push	r17
    d73e:	cf 93       	push	r28
    d740:	df 93       	push	r29
    d742:	cd b7       	in	r28, 0x3d	; 61
    d744:	de b7       	in	r29, 0x3e	; 62
    d746:	a2 97       	sbiw	r28, 0x22	; 34
    d748:	0f b6       	in	r0, 0x3f	; 63
    d74a:	f8 94       	cli
    d74c:	de bf       	out	0x3e, r29	; 62
    d74e:	0f be       	out	0x3f, r0	; 63
    d750:	cd bf       	out	0x3d, r28	; 61
    d752:	1c 01       	movw	r2, r24
  clamp_to_software_endstops(destination);
    d754:	84 e7       	ldi	r24, 0x74	; 116
    d756:	96 e0       	ldi	r25, 0x06	; 6
    d758:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
  previous_millis_cmd.start();
    d75c:	86 e8       	ldi	r24, 0x86	; 134
    d75e:	93 e0       	ldi	r25, 0x03	; 3
    d760:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>

  // Do not use feedmultiply for E or Z only moves
  if((current_position[X_AXIS] == destination[X_AXIS]) && (current_position[Y_AXIS] == destination[Y_AXIS])) {
    d764:	40 90 92 06 	lds	r4, 0x0692	; 0x800692 <current_position>
    d768:	50 90 93 06 	lds	r5, 0x0693	; 0x800693 <current_position+0x1>
    d76c:	60 90 94 06 	lds	r6, 0x0694	; 0x800694 <current_position+0x2>
    d770:	70 90 95 06 	lds	r7, 0x0695	; 0x800695 <current_position+0x3>
    d774:	c0 90 74 06 	lds	r12, 0x0674	; 0x800674 <destination>
    d778:	d0 90 75 06 	lds	r13, 0x0675	; 0x800675 <destination+0x1>
    d77c:	e0 90 76 06 	lds	r14, 0x0676	; 0x800676 <destination+0x2>
    d780:	f0 90 77 06 	lds	r15, 0x0677	; 0x800677 <destination+0x3>
    d784:	a7 01       	movw	r20, r14
    d786:	96 01       	movw	r18, r12
    d788:	c3 01       	movw	r24, r6
    d78a:	b2 01       	movw	r22, r4
    d78c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d790:	81 11       	cpse	r24, r1
    d792:	3f c0       	rjmp	.+126    	; 0xd812 <prepare_move(unsigned int)+0xf4>
    d794:	20 91 78 06 	lds	r18, 0x0678	; 0x800678 <destination+0x4>
    d798:	30 91 79 06 	lds	r19, 0x0679	; 0x800679 <destination+0x5>
    d79c:	40 91 7a 06 	lds	r20, 0x067A	; 0x80067a <destination+0x6>
    d7a0:	50 91 7b 06 	lds	r21, 0x067B	; 0x80067b <destination+0x7>
    d7a4:	60 91 96 06 	lds	r22, 0x0696	; 0x800696 <current_position+0x4>
    d7a8:	70 91 97 06 	lds	r23, 0x0697	; 0x800697 <current_position+0x5>
    d7ac:	80 91 98 06 	lds	r24, 0x0698	; 0x800698 <current_position+0x6>
    d7b0:	90 91 99 06 	lds	r25, 0x0699	; 0x800699 <current_position+0x7>
    d7b4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    d7b8:	81 11       	cpse	r24, r1
    d7ba:	2b c0       	rjmp	.+86     	; 0xd812 <prepare_move(unsigned int)+0xf4>
      plan_buffer_line_destinationXYZE(feedrate/60);
    d7bc:	20 e0       	ldi	r18, 0x00	; 0
    d7be:	30 e0       	ldi	r19, 0x00	; 0
    d7c0:	40 e7       	ldi	r20, 0x70	; 112
    d7c2:	52 e4       	ldi	r21, 0x42	; 66
    d7c4:	60 91 b8 02 	lds	r22, 0x02B8	; 0x8002b8 <feedrate>
    d7c8:	70 91 b9 02 	lds	r23, 0x02B9	; 0x8002b9 <feedrate+0x1>
    d7cc:	80 91 ba 02 	lds	r24, 0x02BA	; 0x8002ba <feedrate+0x2>
    d7d0:	90 91 bb 02 	lds	r25, 0x02BB	; 0x8002bb <feedrate+0x3>
    d7d4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    d7d8:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
#else
     plan_buffer_line_destinationXYZE(feedrate*feedmultiply*(1./(60.f*100.f)));
#endif
  }

  set_current_to_destination();
    d7dc:	0e 94 86 5a 	call	0xb50c	; 0xb50c <set_current_to_destination()>
}
    d7e0:	a2 96       	adiw	r28, 0x22	; 34
    d7e2:	0f b6       	in	r0, 0x3f	; 63
    d7e4:	f8 94       	cli
    d7e6:	de bf       	out	0x3e, r29	; 62
    d7e8:	0f be       	out	0x3f, r0	; 63
    d7ea:	cd bf       	out	0x3d, r28	; 61
    d7ec:	df 91       	pop	r29
    d7ee:	cf 91       	pop	r28
    d7f0:	1f 91       	pop	r17
    d7f2:	0f 91       	pop	r16
    d7f4:	ff 90       	pop	r15
    d7f6:	ef 90       	pop	r14
    d7f8:	df 90       	pop	r13
    d7fa:	cf 90       	pop	r12
    d7fc:	bf 90       	pop	r11
    d7fe:	af 90       	pop	r10
    d800:	9f 90       	pop	r9
    d802:	8f 90       	pop	r8
    d804:	7f 90       	pop	r7
    d806:	6f 90       	pop	r6
    d808:	5f 90       	pop	r5
    d80a:	4f 90       	pop	r4
    d80c:	3f 90       	pop	r3
    d80e:	2f 90       	pop	r2
    d810:	08 95       	ret
  if((current_position[X_AXIS] == destination[X_AXIS]) && (current_position[Y_AXIS] == destination[Y_AXIS])) {
      plan_buffer_line_destinationXYZE(feedrate/60);
  }
  else {
#ifdef MESH_BED_LEVELING
    mesh_plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feedrate*feedmultiply*(1./(60.f*100.f)), start_segment_idx);
    d812:	60 91 39 02 	lds	r22, 0x0239	; 0x800239 <feedmultiply>
    d816:	70 91 3a 02 	lds	r23, 0x023A	; 0x80023a <feedmultiply+0x1>
    d81a:	07 2e       	mov	r0, r23
    d81c:	00 0c       	add	r0, r0
    d81e:	88 0b       	sbc	r24, r24
    d820:	99 0b       	sbc	r25, r25
    d822:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    d826:	20 91 b8 02 	lds	r18, 0x02B8	; 0x8002b8 <feedrate>
    d82a:	30 91 b9 02 	lds	r19, 0x02B9	; 0x8002b9 <feedrate+0x1>
    d82e:	40 91 ba 02 	lds	r20, 0x02BA	; 0x8002ba <feedrate+0x2>
    d832:	50 91 bb 02 	lds	r21, 0x02BB	; 0x8002bb <feedrate+0x3>
    d836:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d83a:	2e e3       	ldi	r18, 0x3E	; 62
    d83c:	33 ec       	ldi	r19, 0xC3	; 195
    d83e:	4e e2       	ldi	r20, 0x2E	; 46
    d840:	59 e3       	ldi	r21, 0x39	; 57
    d842:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d846:	6f 83       	std	Y+7, r22	; 0x07
    d848:	78 87       	std	Y+8, r23	; 0x08
    d84a:	89 87       	std	Y+9, r24	; 0x09
    d84c:	9a 87       	std	Y+10, r25	; 0x0a
void mesh_plan_buffer_line(const float &x, const float &y, const float &z, const float &e, const float &feed_rate, uint16_t start_segment_idx = 0) {
        float dx = x - current_position[X_AXIS];
        float dy = y - current_position[Y_AXIS];
        uint16_t n_segments = 0;

        if (mbl.active) {
    d84e:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
    d852:	88 23       	and	r24, r24
    d854:	09 f4       	brne	.+2      	; 0xd858 <prepare_move(unsigned int)+0x13a>
    d856:	0f c1       	rjmp	.+542    	; 0xda76 <prepare_move(unsigned int)+0x358>
        return 1; //begin with the first segment
}

#ifdef MESH_BED_LEVELING
void mesh_plan_buffer_line(const float &x, const float &y, const float &z, const float &e, const float &feed_rate, uint16_t start_segment_idx = 0) {
        float dx = x - current_position[X_AXIS];
    d858:	a3 01       	movw	r20, r6
    d85a:	92 01       	movw	r18, r4
    d85c:	c7 01       	movw	r24, r14
    d85e:	b6 01       	movw	r22, r12
    d860:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d864:	2b 01       	movw	r4, r22
    d866:	3c 01       	movw	r6, r24
        float dy = y - current_position[Y_AXIS];
    d868:	20 91 96 06 	lds	r18, 0x0696	; 0x800696 <current_position+0x4>
    d86c:	30 91 97 06 	lds	r19, 0x0697	; 0x800697 <current_position+0x5>
    d870:	40 91 98 06 	lds	r20, 0x0698	; 0x800698 <current_position+0x6>
    d874:	50 91 99 06 	lds	r21, 0x0699	; 0x800699 <current_position+0x7>
    d878:	60 91 78 06 	lds	r22, 0x0678	; 0x800678 <destination+0x4>
    d87c:	70 91 79 06 	lds	r23, 0x0679	; 0x800679 <destination+0x5>
    d880:	80 91 7a 06 	lds	r24, 0x067A	; 0x80067a <destination+0x6>
    d884:	90 91 7b 06 	lds	r25, 0x067B	; 0x80067b <destination+0x7>
    d888:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d88c:	6b 87       	std	Y+11, r22	; 0x0b
    d88e:	7c 87       	std	Y+12, r23	; 0x0c
    d890:	8d 87       	std	Y+13, r24	; 0x0d
    d892:	9e 87       	std	Y+14, r25	; 0x0e
        uint16_t n_segments = 0;

        if (mbl.active) {
            float len = fabs(dx) + fabs(dy);
    d894:	c3 01       	movw	r24, r6
    d896:	b2 01       	movw	r22, r4
    d898:	9f 77       	andi	r25, 0x7F	; 127
    d89a:	2b 85       	ldd	r18, Y+11	; 0x0b
    d89c:	3c 85       	ldd	r19, Y+12	; 0x0c
    d89e:	4d 85       	ldd	r20, Y+13	; 0x0d
    d8a0:	5e 85       	ldd	r21, Y+14	; 0x0e
    d8a2:	5f 77       	andi	r21, 0x7F	; 127
    d8a4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d8a8:	6b 01       	movw	r12, r22
    d8aa:	7c 01       	movw	r14, r24
            if (len > 0)
    d8ac:	20 e0       	ldi	r18, 0x00	; 0
    d8ae:	30 e0       	ldi	r19, 0x00	; 0
    d8b0:	a9 01       	movw	r20, r18
    d8b2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    d8b6:	18 16       	cp	r1, r24
    d8b8:	0c f0       	brlt	.+2      	; 0xd8bc <prepare_move(unsigned int)+0x19e>
    d8ba:	dd c0       	rjmp	.+442    	; 0xda76 <prepare_move(unsigned int)+0x358>
                // Split to 3cm segments or shorter.
                n_segments = uint16_t(ceil(len / 30.f));
    d8bc:	20 e0       	ldi	r18, 0x00	; 0
    d8be:	30 e0       	ldi	r19, 0x00	; 0
    d8c0:	40 ef       	ldi	r20, 0xF0	; 240
    d8c2:	51 e4       	ldi	r21, 0x41	; 65
    d8c4:	c7 01       	movw	r24, r14
    d8c6:	b6 01       	movw	r22, r12
    d8c8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    d8cc:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
    d8d0:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
    d8d4:	7e 83       	std	Y+6, r23	; 0x06
    d8d6:	6d 83       	std	Y+5, r22	; 0x05
        }

        if (n_segments > 1 && start_segment_idx) {
    d8d8:	62 30       	cpi	r22, 0x02	; 2
    d8da:	71 05       	cpc	r23, r1
    d8dc:	08 f4       	brcc	.+2      	; 0xd8e0 <prepare_move(unsigned int)+0x1c2>
    d8de:	cb c0       	rjmp	.+406    	; 0xda76 <prepare_move(unsigned int)+0x358>
    d8e0:	21 14       	cp	r2, r1
    d8e2:	31 04       	cpc	r3, r1
    d8e4:	09 f4       	brne	.+2      	; 0xd8e8 <prepare_move(unsigned int)+0x1ca>
    d8e6:	c7 c0       	rjmp	.+398    	; 0xda76 <prepare_move(unsigned int)+0x358>

            float dz = z - current_position[Z_AXIS];
    d8e8:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
    d8ec:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
    d8f0:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
    d8f4:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
    d8f8:	60 91 7c 06 	lds	r22, 0x067C	; 0x80067c <destination+0x8>
    d8fc:	70 91 7d 06 	lds	r23, 0x067D	; 0x80067d <destination+0x9>
    d900:	80 91 7e 06 	lds	r24, 0x067E	; 0x80067e <destination+0xa>
    d904:	90 91 7f 06 	lds	r25, 0x067F	; 0x80067f <destination+0xb>
    d908:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d90c:	6f 87       	std	Y+15, r22	; 0x0f
    d90e:	78 8b       	std	Y+16, r23	; 0x10
    d910:	89 8b       	std	Y+17, r24	; 0x11
    d912:	9a 8b       	std	Y+18, r25	; 0x12
            float de = e - current_position[E_AXIS];
    d914:	20 91 9e 06 	lds	r18, 0x069E	; 0x80069e <current_position+0xc>
    d918:	30 91 9f 06 	lds	r19, 0x069F	; 0x80069f <current_position+0xd>
    d91c:	40 91 a0 06 	lds	r20, 0x06A0	; 0x8006a0 <current_position+0xe>
    d920:	50 91 a1 06 	lds	r21, 0x06A1	; 0x8006a1 <current_position+0xf>
    d924:	60 91 80 06 	lds	r22, 0x0680	; 0x800680 <destination+0xc>
    d928:	70 91 81 06 	lds	r23, 0x0681	; 0x800681 <destination+0xd>
    d92c:	80 91 82 06 	lds	r24, 0x0682	; 0x800682 <destination+0xe>
    d930:	90 91 83 06 	lds	r25, 0x0683	; 0x800683 <destination+0xf>
    d934:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    d938:	6b 8b       	std	Y+19, r22	; 0x13
    d93a:	7c 8b       	std	Y+20, r23	; 0x14
    d93c:	8d 8b       	std	Y+21, r24	; 0x15
    d93e:	9e 8b       	std	Y+22, r25	; 0x16

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
                float t = float(i) / float(n_segments);
    d940:	ad 81       	ldd	r26, Y+5	; 0x05
    d942:	be 81       	ldd	r27, Y+6	; 0x06
    d944:	cd 01       	movw	r24, r26
    d946:	b0 e0       	ldi	r27, 0x00	; 0
    d948:	a0 e0       	ldi	r26, 0x00	; 0
    d94a:	8f 8f       	std	Y+31, r24	; 0x1f
    d94c:	98 a3       	std	Y+32, r25	; 0x20
    d94e:	a9 a3       	std	Y+33, r26	; 0x21
    d950:	ba a3       	std	Y+34, r27	; 0x22
        if (n_segments > 1 && start_segment_idx) {

            float dz = z - current_position[Z_AXIS];
            float de = e - current_position[E_AXIS];

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
    d952:	2d 81       	ldd	r18, Y+5	; 0x05
    d954:	3e 81       	ldd	r19, Y+6	; 0x06
    d956:	22 16       	cp	r2, r18
    d958:	33 06       	cpc	r3, r19
    d95a:	08 f0       	brcs	.+2      	; 0xd95e <prepare_move(unsigned int)+0x240>
    d95c:	8c c0       	rjmp	.+280    	; 0xda76 <prepare_move(unsigned int)+0x358>
                float t = float(i) / float(n_segments);
    d95e:	b1 01       	movw	r22, r2
    d960:	90 e0       	ldi	r25, 0x00	; 0
    d962:	80 e0       	ldi	r24, 0x00	; 0
    d964:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
    d968:	6b 01       	movw	r12, r22
    d96a:	7c 01       	movw	r14, r24
    d96c:	6f 8d       	ldd	r22, Y+31	; 0x1f
    d96e:	78 a1       	ldd	r23, Y+32	; 0x20
    d970:	89 a1       	ldd	r24, Y+33	; 0x21
    d972:	9a a1       	ldd	r25, Y+34	; 0x22
    d974:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
    d978:	9b 01       	movw	r18, r22
    d97a:	ac 01       	movw	r20, r24
    d97c:	c7 01       	movw	r24, r14
    d97e:	b6 01       	movw	r22, r12
    d980:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    d984:	6b 01       	movw	r12, r22
    d986:	7c 01       	movw	r14, r24
                plan_buffer_line(current_position[X_AXIS] + t * dx,
                                 current_position[Y_AXIS] + t * dy,
                                 current_position[Z_AXIS] + t * dz,
                                 current_position[E_AXIS] + t * de,
    d988:	ac 01       	movw	r20, r24
    d98a:	9b 01       	movw	r18, r22
    d98c:	6b 89       	ldd	r22, Y+19	; 0x13
    d98e:	7c 89       	ldd	r23, Y+20	; 0x14
    d990:	8d 89       	ldd	r24, Y+21	; 0x15
    d992:	9e 89       	ldd	r25, Y+22	; 0x16
    d994:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    d998:	9b 01       	movw	r18, r22
    d99a:	ac 01       	movw	r20, r24
    d99c:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
    d9a0:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
    d9a4:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
    d9a8:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
    d9ac:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d9b0:	69 83       	std	Y+1, r22	; 0x01
    d9b2:	7a 83       	std	Y+2, r23	; 0x02
    d9b4:	8b 83       	std	Y+3, r24	; 0x03
    d9b6:	9c 83       	std	Y+4, r25	; 0x04

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
                float t = float(i) / float(n_segments);
                plan_buffer_line(current_position[X_AXIS] + t * dx,
                                 current_position[Y_AXIS] + t * dy,
                                 current_position[Z_AXIS] + t * dz,
    d9b8:	a7 01       	movw	r20, r14
    d9ba:	96 01       	movw	r18, r12
    d9bc:	6f 85       	ldd	r22, Y+15	; 0x0f
    d9be:	78 89       	ldd	r23, Y+16	; 0x10
    d9c0:	89 89       	ldd	r24, Y+17	; 0x11
    d9c2:	9a 89       	ldd	r25, Y+18	; 0x12
    d9c4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
            float dz = z - current_position[Z_AXIS];
            float de = e - current_position[E_AXIS];

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
                float t = float(i) / float(n_segments);
                plan_buffer_line(current_position[X_AXIS] + t * dx,
    d9c8:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
    d9cc:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
    d9d0:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
    d9d4:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
    d9d8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    d9dc:	6f 8b       	std	Y+23, r22	; 0x17
    d9de:	78 8f       	std	Y+24, r23	; 0x18
    d9e0:	89 8f       	std	Y+25, r24	; 0x19
    d9e2:	9a 8f       	std	Y+26, r25	; 0x1a
                                 current_position[Y_AXIS] + t * dy,
    d9e4:	a7 01       	movw	r20, r14
    d9e6:	96 01       	movw	r18, r12
    d9e8:	6b 85       	ldd	r22, Y+11	; 0x0b
    d9ea:	7c 85       	ldd	r23, Y+12	; 0x0c
    d9ec:	8d 85       	ldd	r24, Y+13	; 0x0d
    d9ee:	9e 85       	ldd	r25, Y+14	; 0x0e
    d9f0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
            float dz = z - current_position[Z_AXIS];
            float de = e - current_position[E_AXIS];

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
                float t = float(i) / float(n_segments);
                plan_buffer_line(current_position[X_AXIS] + t * dx,
    d9f4:	20 91 96 06 	lds	r18, 0x0696	; 0x800696 <current_position+0x4>
    d9f8:	30 91 97 06 	lds	r19, 0x0697	; 0x800697 <current_position+0x5>
    d9fc:	40 91 98 06 	lds	r20, 0x0698	; 0x800698 <current_position+0x6>
    da00:	50 91 99 06 	lds	r21, 0x0699	; 0x800699 <current_position+0x7>
    da04:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    da08:	6b 8f       	std	Y+27, r22	; 0x1b
    da0a:	7c 8f       	std	Y+28, r23	; 0x1c
    da0c:	8d 8f       	std	Y+29, r24	; 0x1d
    da0e:	9e 8f       	std	Y+30, r25	; 0x1e
    da10:	a7 01       	movw	r20, r14
    da12:	96 01       	movw	r18, r12
    da14:	c3 01       	movw	r24, r6
    da16:	b2 01       	movw	r22, r4
    da18:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    da1c:	20 91 92 06 	lds	r18, 0x0692	; 0x800692 <current_position>
    da20:	30 91 93 06 	lds	r19, 0x0693	; 0x800693 <current_position+0x1>
    da24:	40 91 94 06 	lds	r20, 0x0694	; 0x800694 <current_position+0x2>
    da28:	50 91 95 06 	lds	r21, 0x0695	; 0x800695 <current_position+0x3>
    da2c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    da30:	3f 92       	push	r3
    da32:	2f 92       	push	r2
    da34:	a2 e9       	ldi	r26, 0x92	; 146
    da36:	b6 e0       	ldi	r27, 0x06	; 6
    da38:	bf 93       	push	r27
    da3a:	af 93       	push	r26
    da3c:	8f 80       	ldd	r8, Y+7	; 0x07
    da3e:	98 84       	ldd	r9, Y+8	; 0x08
    da40:	a9 84       	ldd	r10, Y+9	; 0x09
    da42:	ba 84       	ldd	r11, Y+10	; 0x0a
    da44:	de 01       	movw	r26, r28
    da46:	11 96       	adiw	r26, 0x01	; 1
    da48:	6d 01       	movw	r12, r26
    da4a:	ef 88       	ldd	r14, Y+23	; 0x17
    da4c:	f8 8c       	ldd	r15, Y+24	; 0x18
    da4e:	09 8d       	ldd	r16, Y+25	; 0x19
    da50:	1a 8d       	ldd	r17, Y+26	; 0x1a
    da52:	2b 8d       	ldd	r18, Y+27	; 0x1b
    da54:	3c 8d       	ldd	r19, Y+28	; 0x1c
    da56:	4d 8d       	ldd	r20, Y+29	; 0x1d
    da58:	5e 8d       	ldd	r21, Y+30	; 0x1e
    da5a:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
                                 current_position[Y_AXIS] + t * dy,
                                 current_position[Z_AXIS] + t * dz,
                                 current_position[E_AXIS] + t * de,
                                 feed_rate, current_position, i);
                if (planner_aborted)
    da5e:	0f 90       	pop	r0
    da60:	0f 90       	pop	r0
    da62:	0f 90       	pop	r0
    da64:	0f 90       	pop	r0
    da66:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
    da6a:	81 11       	cpse	r24, r1
    da6c:	b7 ce       	rjmp	.-658    	; 0xd7dc <prepare_move(unsigned int)+0xbe>
        if (n_segments > 1 && start_segment_idx) {

            float dz = z - current_position[Z_AXIS];
            float de = e - current_position[E_AXIS];

            for (uint16_t i = start_segment_idx; i < n_segments; ++ i) {
    da6e:	bf ef       	ldi	r27, 0xFF	; 255
    da70:	2b 1a       	sub	r2, r27
    da72:	3b 0a       	sbc	r3, r27
    da74:	6e cf       	rjmp	.-292    	; 0xd952 <prepare_move(unsigned int)+0x234>
                if (planner_aborted)
                    return;
            }
        }
        // The rest of the path.
        plan_buffer_line(x, y, z, e, feed_rate, current_position);
    da76:	e0 90 7c 06 	lds	r14, 0x067C	; 0x80067c <destination+0x8>
    da7a:	f0 90 7d 06 	lds	r15, 0x067D	; 0x80067d <destination+0x9>
    da7e:	00 91 7e 06 	lds	r16, 0x067E	; 0x80067e <destination+0xa>
    da82:	10 91 7f 06 	lds	r17, 0x067F	; 0x80067f <destination+0xb>
    da86:	20 91 78 06 	lds	r18, 0x0678	; 0x800678 <destination+0x4>
    da8a:	30 91 79 06 	lds	r19, 0x0679	; 0x800679 <destination+0x5>
    da8e:	40 91 7a 06 	lds	r20, 0x067A	; 0x80067a <destination+0x6>
    da92:	50 91 7b 06 	lds	r21, 0x067B	; 0x80067b <destination+0x7>
    da96:	60 91 74 06 	lds	r22, 0x0674	; 0x800674 <destination>
    da9a:	70 91 75 06 	lds	r23, 0x0675	; 0x800675 <destination+0x1>
    da9e:	80 91 76 06 	lds	r24, 0x0676	; 0x800676 <destination+0x2>
    daa2:	90 91 77 06 	lds	r25, 0x0677	; 0x800677 <destination+0x3>
    daa6:	1f 92       	push	r1
    daa8:	1f 92       	push	r1
    daaa:	e2 e9       	ldi	r30, 0x92	; 146
    daac:	f6 e0       	ldi	r31, 0x06	; 6
    daae:	ff 93       	push	r31
    dab0:	ef 93       	push	r30
    dab2:	8f 80       	ldd	r8, Y+7	; 0x07
    dab4:	98 84       	ldd	r9, Y+8	; 0x08
    dab6:	a9 84       	ldd	r10, Y+9	; 0x09
    dab8:	ba 84       	ldd	r11, Y+10	; 0x0a
    daba:	e0 e8       	ldi	r30, 0x80	; 128
    dabc:	ce 2e       	mov	r12, r30
    dabe:	e6 e0       	ldi	r30, 0x06	; 6
    dac0:	de 2e       	mov	r13, r30
    dac2:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
    dac6:	0f 90       	pop	r0
    dac8:	0f 90       	pop	r0
    daca:	0f 90       	pop	r0
    dacc:	0f 90       	pop	r0
    dace:	86 ce       	rjmp	.-756    	; 0xd7dc <prepare_move(unsigned int)+0xbe>

0000dad0 <raise_z(float)>:

/// @brief Safely move Z-axis by distance delta (mm)
/// @param delta travel distance in mm
/// @returns The actual travel distance in mm. Endstop may limit the requested move.
float raise_z(float delta)
{
    dad0:	cf 92       	push	r12
    dad2:	df 92       	push	r13
    dad4:	ef 92       	push	r14
    dad6:	ff 92       	push	r15
    dad8:	cf 93       	push	r28
    dada:	9b 01       	movw	r18, r22
    dadc:	ac 01       	movw	r20, r24
    float travel_z = current_position[Z_AXIS];
    dade:	c0 90 9a 06 	lds	r12, 0x069A	; 0x80069a <current_position+0x8>
    dae2:	d0 90 9b 06 	lds	r13, 0x069B	; 0x80069b <current_position+0x9>
    dae6:	e0 90 9c 06 	lds	r14, 0x069C	; 0x80069c <current_position+0xa>
    daea:	f0 90 9d 06 	lds	r15, 0x069D	; 0x80069d <current_position+0xb>

    // Prepare to move Z axis
    current_position[Z_AXIS] += delta;
    daee:	c7 01       	movw	r24, r14
    daf0:	b6 01       	movw	r22, r12
    daf2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    daf6:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
    dafa:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
    dafe:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
    db02:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>

#if defined(Z_MIN_PIN) && (Z_MIN_PIN > -1) && !defined(DEBUG_DISABLE_ZMINLIMIT)
    bool z_min_endstop = (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING);
    db06:	83 b1       	in	r24, 0x03	; 3
#else
    bool z_min_endstop = false;
#endif

    if (axis_known_position[Z_AXIS] || z_min_endstop)
    db08:	90 91 91 06 	lds	r25, 0x0691	; 0x800691 <axis_known_position+0x2>
    db0c:	91 11       	cpse	r25, r1
    db0e:	02 c0       	rjmp	.+4      	; 0xdb14 <raise_z(float)+0x44>
    db10:	84 ff       	sbrs	r24, 4
    db12:	26 c0       	rjmp	.+76     	; 0xdb60 <raise_z(float)+0x90>
    {
        // current position is known or very low, it's safe to raise Z
        clamp_to_software_endstops(current_position);
    db14:	82 e9       	ldi	r24, 0x92	; 146
    db16:	96 e0       	ldi	r25, 0x06	; 6
    db18:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
        plan_buffer_line_curposXYZE(max_feedrate[Z_AXIS]);
    db1c:	e0 91 71 02 	lds	r30, 0x0271	; 0x800271 <max_feedrate>
    db20:	f0 91 72 02 	lds	r31, 0x0272	; 0x800272 <max_feedrate+0x1>
    db24:	60 85       	ldd	r22, Z+8	; 0x08
    db26:	71 85       	ldd	r23, Z+9	; 0x09
    db28:	82 85       	ldd	r24, Z+10	; 0x0a
    db2a:	93 85       	ldd	r25, Z+11	; 0x0b
    db2c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
    db30:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        // Get the final travel distance
        travel_z = current_position[Z_AXIS] - travel_z;
    db34:	a7 01       	movw	r20, r14
    db36:	96 01       	movw	r18, r12
    db38:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
    db3c:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
    db40:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
    db44:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
    db48:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    db4c:	6b 01       	movw	r12, r22
    db4e:	7c 01       	movw	r14, r24
#endif //TMC2130
        enable_z_endstop(z_endstop_enabled);
    }

    return travel_z;
}
    db50:	c7 01       	movw	r24, r14
    db52:	b6 01       	movw	r22, r12
    db54:	cf 91       	pop	r28
    db56:	ff 90       	pop	r15
    db58:	ef 90       	pop	r14
    db5a:	df 90       	pop	r13
    db5c:	cf 90       	pop	r12
    db5e:	08 95       	ret

        // Get the final travel distance
        travel_z = current_position[Z_AXIS] - travel_z;
    } else {
        // ensure Z is powered in normal mode to overcome initial load
        enable_z();
    db60:	15 98       	cbi	0x02, 5	; 2
        st_synchronize();
    db62:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        // rely on crashguard to limit damage
        bool z_endstop_enabled = enable_z_endstop(true);
    db66:	81 e0       	ldi	r24, 0x01	; 1
    db68:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
    db6c:	c8 2f       	mov	r28, r24
#ifdef TMC2130
        tmc2130_home_enter(Z_AXIS_MASK);
    db6e:	84 e0       	ldi	r24, 0x04	; 4
    db70:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>
#endif //TMC2130
        plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 60);
    db74:	65 e5       	ldi	r22, 0x55	; 85
    db76:	75 e5       	ldi	r23, 0x55	; 85
    db78:	85 e5       	ldi	r24, 0x55	; 85
    db7a:	91 e4       	ldi	r25, 0x41	; 65
    db7c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
    db80:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        // Get the final travel distance
        travel_z = st_get_position_mm(Z_AXIS) - travel_z;
    db84:	82 e0       	ldi	r24, 0x02	; 2
    db86:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
    db8a:	a7 01       	movw	r20, r14
    db8c:	96 01       	movw	r18, r12
    db8e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    db92:	6b 01       	movw	r12, r22
    db94:	7c 01       	movw	r14, r24
#ifdef TMC2130
        if (endstop_z_hit_on_purpose())
    db96:	0f 94 fc 4e 	call	0x29df8	; 0x29df8 <endstop_z_hit_on_purpose()>
    db9a:	88 23       	and	r24, r24
    db9c:	91 f0       	breq	.+36     	; 0xdbc2 <raise_z(float)+0xf2>
        {
            // not necessarily exact, but will avoid further vertical moves
            current_position[Z_AXIS] = max_pos[Z_AXIS];
    db9e:	80 91 1d 02 	lds	r24, 0x021D	; 0x80021d <max_pos+0x8>
    dba2:	90 91 1e 02 	lds	r25, 0x021E	; 0x80021e <max_pos+0x9>
    dba6:	a0 91 1f 02 	lds	r26, 0x021F	; 0x80021f <max_pos+0xa>
    dbaa:	b0 91 20 02 	lds	r27, 0x0220	; 0x800220 <max_pos+0xb>
    dbae:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
    dbb2:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
    dbb6:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
    dbba:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            plan_set_position_curposXYZE();
    dbbe:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
        }
        tmc2130_home_exit();
    dbc2:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
#endif //TMC2130
        enable_z_endstop(z_endstop_enabled);
    dbc6:	8c 2f       	mov	r24, r28
    dbc8:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
    dbcc:	c1 cf       	rjmp	.-126    	; 0xdb50 <raise_z(float)+0x80>

0000dbce <raise_z_above(float)>:
//
// contrarily to a simple move, this function will carefully plan a move
// when the current Z position is unknown. In such cases, stallguard is
// enabled and will prevent prolonged pushing against the Z tops
void raise_z_above(float target)
{
    dbce:	8f 92       	push	r8
    dbd0:	9f 92       	push	r9
    dbd2:	af 92       	push	r10
    dbd4:	bf 92       	push	r11
    dbd6:	cf 92       	push	r12
    dbd8:	df 92       	push	r13
    dbda:	ef 92       	push	r14
    dbdc:	ff 92       	push	r15
    dbde:	4b 01       	movw	r8, r22
    dbe0:	5c 01       	movw	r10, r24
    if (current_position[Z_AXIS] >= target)
    dbe2:	c0 90 9a 06 	lds	r12, 0x069A	; 0x80069a <current_position+0x8>
    dbe6:	d0 90 9b 06 	lds	r13, 0x069B	; 0x80069b <current_position+0x9>
    dbea:	e0 90 9c 06 	lds	r14, 0x069C	; 0x80069c <current_position+0xa>
    dbee:	f0 90 9d 06 	lds	r15, 0x069D	; 0x80069d <current_position+0xb>
    dbf2:	ac 01       	movw	r20, r24
    dbf4:	9b 01       	movw	r18, r22
    dbf6:	c7 01       	movw	r24, r14
    dbf8:	b6 01       	movw	r22, r12
    dbfa:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    dbfe:	87 ff       	sbrs	r24, 7
    dc00:	11 c0       	rjmp	.+34     	; 0xdc24 <raise_z_above(float)+0x56>
        return;

    // Use absolute value in case the current position is unknown
    raise_z(fabs(current_position[Z_AXIS] - target));
    dc02:	a5 01       	movw	r20, r10
    dc04:	94 01       	movw	r18, r8
    dc06:	c7 01       	movw	r24, r14
    dc08:	b6 01       	movw	r22, r12
    dc0a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    dc0e:	9f 77       	andi	r25, 0x7F	; 127
}
    dc10:	ff 90       	pop	r15
    dc12:	ef 90       	pop	r14
    dc14:	df 90       	pop	r13
    dc16:	cf 90       	pop	r12
    dc18:	bf 90       	pop	r11
    dc1a:	af 90       	pop	r10
    dc1c:	9f 90       	pop	r9
    dc1e:	8f 90       	pop	r8
{
    if (current_position[Z_AXIS] >= target)
        return;

    // Use absolute value in case the current position is unknown
    raise_z(fabs(current_position[Z_AXIS] - target));
    dc20:	0c 94 68 6d 	jmp	0xdad0	; 0xdad0 <raise_z(float)>
}
    dc24:	ff 90       	pop	r15
    dc26:	ef 90       	pop	r14
    dc28:	df 90       	pop	r13
    dc2a:	cf 90       	pop	r12
    dc2c:	bf 90       	pop	r11
    dc2e:	af 90       	pop	r10
    dc30:	9f 90       	pop	r9
    dc32:	8f 90       	pop	r8
    dc34:	08 95       	ret

0000dc36 <lcd_frame_start()>:

static void lcd_invalidate_custom_characters() {
	memset(lcd_custom_characters, 0x7F, sizeof(lcd_custom_characters));
}

void lcd_frame_start() {
    dc36:	ee e5       	ldi	r30, 0x5E	; 94
    dc38:	f3 e0       	ldi	r31, 0x03	; 3
		}
		else { //character is no longer used (or invalid?), mark it as unused
#ifdef DEBUG_CUSTOM_CHARACTERS
			printf_P(PSTR("discarded char %02x at slot %u\n"), c, i);
#endif // DEBUG_CUSTOM_CHARACTERS
			lcd_custom_characters[i] = 0x7F;
    dc3a:	9f e7       	ldi	r25, 0x7F	; 127
}

void lcd_frame_start() {
	// check all custom characters and discard unused ones
	for (uint8_t i = 0; i < 8; i++) {
		uint8_t c = lcd_custom_characters[i];
    dc3c:	81 91       	ld	r24, Z+
		if (c == 0x7F) { //slot empty
    dc3e:	8f 37       	cpi	r24, 0x7F	; 127
    dc40:	31 f0       	breq	.+12     	; 0xdc4e <lcd_frame_start()+0x18>
    dc42:	df 01       	movw	r26, r30
    dc44:	11 97       	sbiw	r26, 0x01	; 1
			continue;
		}
		else if (c & 0x80) { //slot was used on the last frame update, mark it as potentially unused this time
    dc46:	87 ff       	sbrs	r24, 7
    dc48:	07 c0       	rjmp	.+14     	; 0xdc58 <lcd_frame_start()+0x22>
			lcd_custom_characters[i] = c & 0x7F;
    dc4a:	8f 77       	andi	r24, 0x7F	; 127
    dc4c:	8c 93       	st	X, r24
	memset(lcd_custom_characters, 0x7F, sizeof(lcd_custom_characters));
}

void lcd_frame_start() {
	// check all custom characters and discard unused ones
	for (uint8_t i = 0; i < 8; i++) {
    dc4e:	83 e0       	ldi	r24, 0x03	; 3
    dc50:	e6 36       	cpi	r30, 0x66	; 102
    dc52:	f8 07       	cpc	r31, r24
    dc54:	99 f7       	brne	.-26     	; 0xdc3c <lcd_frame_start()+0x6>
	for (uint8_t i = 0; i < 8; i++) {
		printf_P(PSTR(" %02x"), lcd_custom_characters[i]);
	}
	printf_P(PSTR("\n"));
#endif // DEBUG_CUSTOM_CHARACTERS
}
    dc56:	08 95       	ret
		}
		else { //character is no longer used (or invalid?), mark it as unused
#ifdef DEBUG_CUSTOM_CHARACTERS
			printf_P(PSTR("discarded char %02x at slot %u\n"), c, i);
#endif // DEBUG_CUSTOM_CHARACTERS
			lcd_custom_characters[i] = 0x7F;
    dc58:	9c 93       	st	X, r25
    dc5a:	f9 cf       	rjmp	.-14     	; 0xdc4e <lcd_frame_start()+0x18>

0000dc5c <lcd_update(unsigned char)>:
	}
}

void lcd_update(uint8_t lcdDrawUpdateOverride)
{
	if (lcd_draw_update < lcdDrawUpdateOverride)
    dc5c:	90 91 6d 02 	lds	r25, 0x026D	; 0x80026d <lcd_draw_update>
    dc60:	98 17       	cp	r25, r24
    dc62:	10 f4       	brcc	.+4      	; 0xdc68 <lcd_update(unsigned char)+0xc>
		lcd_draw_update = lcdDrawUpdateOverride;
    dc64:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>

	if (!lcd_update_enabled) return;
    dc68:	80 91 6e 02 	lds	r24, 0x026E	; 0x80026e <lcd_update_enabled>
    dc6c:	88 23       	and	r24, r24
    dc6e:	39 f0       	breq	.+14     	; 0xdc7e <lcd_update(unsigned char)+0x22>

	if (lcd_lcdupdate_func)
    dc70:	e0 91 15 04 	lds	r30, 0x0415	; 0x800415 <lcd_lcdupdate_func>
    dc74:	f0 91 16 04 	lds	r31, 0x0416	; 0x800416 <lcd_lcdupdate_func+0x1>
    dc78:	30 97       	sbiw	r30, 0x00	; 0
    dc7a:	09 f0       	breq	.+2      	; 0xdc7e <lcd_update(unsigned char)+0x22>
		lcd_lcdupdate_func();
    dc7c:	19 94       	eijmp
}
    dc7e:	08 95       	ret

0000dc80 <lcd_printf_P(char const*, ...)>:
	lcd_set_cursor(c, r);
	return fputs_P(str, lcdout);
}

int lcd_printf_P(const char* format, ...)
{
    dc80:	cf 93       	push	r28
    dc82:	df 93       	push	r29
    dc84:	cd b7       	in	r28, 0x3d	; 61
    dc86:	de b7       	in	r29, 0x3e	; 62
    dc88:	ae 01       	movw	r20, r28
    dc8a:	4a 5f       	subi	r20, 0xFA	; 250
    dc8c:	5f 4f       	sbci	r21, 0xFF	; 255
    dc8e:	fa 01       	movw	r30, r20
    dc90:	61 91       	ld	r22, Z+
    dc92:	71 91       	ld	r23, Z+
    dc94:	af 01       	movw	r20, r30
	va_list args;
	va_start(args, format);
	int ret = vfprintf_P(lcdout, format, args);
    dc96:	83 e0       	ldi	r24, 0x03	; 3
    dc98:	94 e0       	ldi	r25, 0x04	; 4
    dc9a:	0f 94 a2 db 	call	0x3b744	; 0x3b744 <vfprintf_P>
	va_end(args);
	return ret;
}
    dc9e:	df 91       	pop	r29
    dca0:	cf 91       	pop	r28
    dca2:	08 95       	ret

0000dca4 <lcd_puts_P(char const*)>:
	return fputc(ch, lcdout);
}

int lcd_puts_P(const char* str)
{
	return fputs_P(str, lcdout);
    dca4:	63 e0       	ldi	r22, 0x03	; 3
    dca6:	74 e0       	ldi	r23, 0x04	; 4
    dca8:	0d 94 f3 da 	jmp	0x3b5e6	; 0x3b5e6 <fputs_P>

0000dcac <lcd_putc(char)>:
	lcd_command(LCD_SETDDRAMADDR | lcd_ddram_address); // no need for masking the address
}

int lcd_putc(char c)
{
	return fputc(c, lcdout);
    dcac:	63 e0       	ldi	r22, 0x03	; 3
    dcae:	74 e0       	ldi	r23, 0x04	; 4
    dcb0:	08 2e       	mov	r0, r24
    dcb2:	00 0c       	add	r0, r0
    dcb4:	99 0b       	sbc	r25, r25
    dcb6:	0d 94 c3 da 	jmp	0x3b586	; 0x3b586 <fputc>

0000dcba <lcd_space(unsigned char)>:
	va_end(args);
	return ret;
}

void lcd_space(uint8_t n)
{
    dcba:	cf 93       	push	r28
    dcbc:	c8 2f       	mov	r28, r24
	while (n--) lcd_putc(' ');
    dcbe:	c1 50       	subi	r28, 0x01	; 1
    dcc0:	20 f0       	brcs	.+8      	; 0xdcca <lcd_space(unsigned char)+0x10>
    dcc2:	80 e2       	ldi	r24, 0x20	; 32
    dcc4:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
    dcc8:	fa cf       	rjmp	.-12     	; 0xdcbe <lcd_space(unsigned char)+0x4>
}
    dcca:	cf 91       	pop	r28
    dccc:	08 95       	ret

0000dcce <lcd_set_cursor(unsigned char, unsigned char)>:
{
	return pgm_read_byte(row_offsets + min(row, LCD_HEIGHT - 1));
}

void lcd_set_cursor(uint8_t col, uint8_t row)
{
    dcce:	cf 93       	push	r28
    dcd0:	c8 2f       	mov	r28, r24
    dcd2:	86 2f       	mov	r24, r22

/// @brief set the current LCD row
/// @param row LCD row number, ranges from 0 to LCD_HEIGHT - 1
static void FORCE_INLINE lcd_set_current_row(uint8_t row)
{
	lcd_currline = min(row, LCD_HEIGHT - 1);
    dcd4:	64 30       	cpi	r22, 0x04	; 4
    dcd6:	08 f0       	brcs	.+2      	; 0xdcda <lcd_set_cursor(unsigned char, unsigned char)+0xc>
    dcd8:	83 e0       	ldi	r24, 0x03	; 3
    dcda:	80 93 5d 03 	sts	0x035D, r24	; 0x80035d <lcd_currline>
}

void lcd_set_cursor(uint8_t col, uint8_t row)
{
	lcd_set_current_row(row);
    uint8_t addr = col + lcd_get_row_offset(lcd_currline);
    dcde:	0e 94 90 5a 	call	0xb520	; 0xb520 <lcd_get_row_offset(unsigned char)>
    dce2:	8c 0f       	add	r24, r28
	lcd_ddram_address = addr;
    dce4:	80 93 5c 03 	sts	0x035C, r24	; 0x80035c <lcd_ddram_address>
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    dce8:	44 e6       	ldi	r20, 0x64	; 100
    dcea:	50 e0       	ldi	r21, 0x00	; 0
    dcec:	60 e0       	ldi	r22, 0x00	; 0
    dcee:	80 68       	ori	r24, 0x80	; 128
{
	lcd_set_current_row(row);
    uint8_t addr = col + lcd_get_row_offset(lcd_currline);
	lcd_ddram_address = addr;
	lcd_command(LCD_SETDDRAMADDR | addr);
}
    dcf0:	cf 91       	pop	r28
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    dcf2:	0c 94 8e 63 	jmp	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>

0000dcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>:
{
	return fputs_P(str, lcdout);
}

int lcd_puts_at_P(uint8_t c, uint8_t r, const char* str)
{
    dcf6:	cf 93       	push	r28
    dcf8:	df 93       	push	r29
    dcfa:	ea 01       	movw	r28, r20
	lcd_set_cursor(c, r);
    dcfc:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	return fputs_P(str, lcdout);
    dd00:	63 e0       	ldi	r22, 0x03	; 3
    dd02:	74 e0       	ldi	r23, 0x04	; 4
    dd04:	ce 01       	movw	r24, r28
}
    dd06:	df 91       	pop	r29
    dd08:	cf 91       	pop	r28
}

int lcd_puts_at_P(uint8_t c, uint8_t r, const char* str)
{
	lcd_set_cursor(c, r);
	return fputs_P(str, lcdout);
    dd0a:	0d 94 f3 da 	jmp	0x3b5e6	; 0x3b5e6 <fputs_P>

0000dd0e <lcd_putc_at(unsigned char, unsigned char, char)>:
{
	return fputc(c, lcdout);
}

int lcd_putc_at(uint8_t c, uint8_t r, char ch)
{
    dd0e:	cf 93       	push	r28
    dd10:	c4 2f       	mov	r28, r20
	lcd_set_cursor(c, r);
    dd12:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	return fputc(ch, lcdout);
    dd16:	63 e0       	ldi	r22, 0x03	; 3
    dd18:	74 e0       	ldi	r23, 0x04	; 4
    dd1a:	8c 2f       	mov	r24, r28
    dd1c:	cc 0f       	add	r28, r28
    dd1e:	99 0b       	sbc	r25, r25
}
    dd20:	cf 91       	pop	r28
}

int lcd_putc_at(uint8_t c, uint8_t r, char ch)
{
	lcd_set_cursor(c, r);
	return fputc(ch, lcdout);
    dd22:	0d 94 c3 da 	jmp	0x3b586	; 0x3b586 <fputc>

0000dd26 <lcd_home()>:
}

// Set cursor position to zero and in DDRAM. It does not unshift the display.
void lcd_home(void)
{
	lcd_set_cursor(0, 0);
    dd26:	60 e0       	ldi	r22, 0x00	; 0
    dd28:	80 e0       	ldi	r24, 0x00	; 0
    dd2a:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_ddram_address = 0;
    dd2e:	10 92 5c 03 	sts	0x035C, r1	; 0x80035c <lcd_ddram_address>
}
    dd32:	08 95       	ret

0000dd34 <lcd_clear()>:
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    dd34:	40 e4       	ldi	r20, 0x40	; 64
    dd36:	56 e0       	ldi	r21, 0x06	; 6
    dd38:	60 e0       	ldi	r22, 0x00	; 0
    dd3a:	81 e0       	ldi	r24, 0x01	; 1
    dd3c:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>

// Clear display, set cursor position to zero and unshift the display. It also invalidates all custom characters
void lcd_clear(void)
{
	lcd_command(LCD_CLEARDISPLAY, 1600);
	lcd_currline = 0;
    dd40:	10 92 5d 03 	sts	0x035D, r1	; 0x80035d <lcd_currline>
	lcd_ddram_address = 0;
    dd44:	10 92 5c 03 	sts	0x035C, r1	; 0x80035c <lcd_ddram_address>
	lcd_send(charToSend, HIGH);
	lcd_ddram_address++; // no need for preventing ddram overflow
}

static void lcd_invalidate_custom_characters() {
	memset(lcd_custom_characters, 0x7F, sizeof(lcd_custom_characters));
    dd48:	48 e0       	ldi	r20, 0x08	; 8
    dd4a:	50 e0       	ldi	r21, 0x00	; 0
    dd4c:	6f e7       	ldi	r22, 0x7F	; 127
    dd4e:	70 e0       	ldi	r23, 0x00	; 0
    dd50:	8e e5       	ldi	r24, 0x5E	; 94
    dd52:	93 e0       	ldi	r25, 0x03	; 3
    dd54:	0d 94 8d e2 	jmp	0x3c51a	; 0x3c51a <memset>

0000dd58 <lcd_update_enable(unsigned char)>:
}

void lcd_update_enable(uint8_t enabled)
{
	// printf_P(PSTR("lcd_update_enable(%u -> %u)\n"), lcd_update_enabled, enabled);
	if (lcd_update_enabled != enabled)
    dd58:	90 91 6e 02 	lds	r25, 0x026E	; 0x80026e <lcd_update_enabled>
    dd5c:	98 17       	cp	r25, r24
    dd5e:	09 f1       	breq	.+66     	; 0xdda2 <lcd_update_enable(unsigned char)+0x4a>
	{
		lcd_update_enabled = enabled;
    dd60:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
		if (enabled)
    dd64:	88 23       	and	r24, r24
    dd66:	e9 f0       	breq	.+58     	; 0xdda2 <lcd_update_enable(unsigned char)+0x4a>
		{ // Reset encoder position. This is equivalent to re-entering a menu.
			lcd_encoder = 0;
    dd68:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
    dd6c:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
			lcd_encoder_diff = 0;
    dd70:	10 92 d1 05 	sts	0x05D1, r1	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>
			// Enabling the normal LCD update procedure.
			// Reset the timeout interval.
			lcd_timeoutToStatus.start();
    dd74:	8c ed       	ldi	r24, 0xDC	; 220
    dd76:	93 e0       	ldi	r25, 0x03	; 3
    dd78:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
			// Force the keypad update now.
			lcd_next_update_millis = _millis() - 1;
    dd7c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    dd80:	61 50       	subi	r22, 0x01	; 1
    dd82:	71 09       	sbc	r23, r1
    dd84:	81 09       	sbc	r24, r1
    dd86:	91 09       	sbc	r25, r1
    dd88:	60 93 d8 03 	sts	0x03D8, r22	; 0x8003d8 <lcd_next_update_millis>
    dd8c:	70 93 d9 03 	sts	0x03D9, r23	; 0x8003d9 <lcd_next_update_millis+0x1>
    dd90:	80 93 da 03 	sts	0x03DA, r24	; 0x8003da <lcd_next_update_millis+0x2>
    dd94:	90 93 db 03 	sts	0x03DB, r25	; 0x8003db <lcd_next_update_millis+0x3>
			// Full update.
			lcd_clear();
    dd98:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
			lcd_update(2);
    dd9c:	82 e0       	ldi	r24, 0x02	; 2
    dd9e:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
		} else
		{
			// Clear the LCD always, or let it to the caller?
		}
	}
}
    dda2:	08 95       	ret

0000dda4 <lcd_begin(unsigned char) [clone .lto_priv.433]>:
		lcd_ddram_address++; // no need for preventing ddram overflow
	}
}

static void lcd_begin(uint8_t clear)
{
    dda4:	cf 93       	push	r28
    dda6:	c8 2f       	mov	r28, r24
	lcd_currline = 0;
    dda8:	10 92 5d 03 	sts	0x035D, r1	; 0x80035d <lcd_currline>
	lcd_ddram_address = 0;
    ddac:	10 92 5c 03 	sts	0x035C, r1	; 0x80035c <lcd_ddram_address>
	lcd_send(charToSend, HIGH);
	lcd_ddram_address++; // no need for preventing ddram overflow
}

static void lcd_invalidate_custom_characters() {
	memset(lcd_custom_characters, 0x7F, sizeof(lcd_custom_characters));
    ddb0:	48 e0       	ldi	r20, 0x08	; 8
    ddb2:	50 e0       	ldi	r21, 0x00	; 0
    ddb4:	6f e7       	ldi	r22, 0x7F	; 127
    ddb6:	70 e0       	ldi	r23, 0x00	; 0
    ddb8:	8e e5       	ldi	r24, 0x5E	; 94
    ddba:	93 e0       	ldi	r25, 0x03	; 3
    ddbc:	0f 94 8d e2 	call	0x3c51a	; 0x3c51a <memset>
	lcd_currline = 0;
	lcd_ddram_address = 0;

	lcd_invalidate_custom_characters();

	lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 4500); // wait min 4.1ms
    ddc0:	44 e9       	ldi	r20, 0x94	; 148
    ddc2:	51 e1       	ldi	r21, 0x11	; 17
    ddc4:	62 e0       	ldi	r22, 0x02	; 2
    ddc6:	80 e3       	ldi	r24, 0x30	; 48
    ddc8:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
	// second try
	lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 150);
    ddcc:	46 e9       	ldi	r20, 0x96	; 150
    ddce:	50 e0       	ldi	r21, 0x00	; 0
    ddd0:	62 e0       	ldi	r22, 0x02	; 2
    ddd2:	80 e3       	ldi	r24, 0x30	; 48
    ddd4:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
	// third go!
	lcd_send(LCD_FUNCTIONSET | LCD_8BITMODE, LOW | LCD_HALF_FLAG, 150);
    ddd8:	46 e9       	ldi	r20, 0x96	; 150
    ddda:	50 e0       	ldi	r21, 0x00	; 0
    dddc:	62 e0       	ldi	r22, 0x02	; 2
    ddde:	80 e3       	ldi	r24, 0x30	; 48
    dde0:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
#ifndef LCD_8BIT
	// set to 4-bit interface
	lcd_send(LCD_FUNCTIONSET | LCD_4BITMODE, LOW | LCD_HALF_FLAG, 150);
    dde4:	46 e9       	ldi	r20, 0x96	; 150
    dde6:	50 e0       	ldi	r21, 0x00	; 0
    dde8:	62 e0       	ldi	r22, 0x02	; 2
    ddea:	80 e2       	ldi	r24, 0x20	; 32
    ddec:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
#endif

	// finally, set # lines, font size, etc.0
	lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
    ddf0:	80 91 11 04 	lds	r24, 0x0411	; 0x800411 <_ZL19lcd_displayfunction.lto_priv.551>
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    ddf4:	44 e6       	ldi	r20, 0x64	; 100
    ddf6:	50 e0       	ldi	r21, 0x00	; 0
    ddf8:	60 e0       	ldi	r22, 0x00	; 0
    ddfa:	80 62       	ori	r24, 0x20	; 32
    ddfc:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
}

// Turn the display on/off (quickly)
void lcd_display(void)
{
    lcd_displaycontrol |= LCD_DISPLAYON;
    de00:	84 e0       	ldi	r24, 0x04	; 4
    de02:	80 93 5b 03 	sts	0x035B, r24	; 0x80035b <lcd_displaycontrol>
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    de06:	44 e6       	ldi	r20, 0x64	; 100
    de08:	50 e0       	ldi	r21, 0x00	; 0
    de0a:	60 e0       	ldi	r22, 0x00	; 0
    de0c:	8c e0       	ldi	r24, 0x0C	; 12
    de0e:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
	lcd_command(LCD_FUNCTIONSET | lcd_displayfunction);
	// turn the display on with no cursor or blinking default
	lcd_displaycontrol = LCD_CURSOROFF | LCD_BLINKOFF;
	lcd_display();
	// clear it off
	if (clear) lcd_clear();
    de12:	c1 11       	cpse	r28, r1
    de14:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    de18:	44 e6       	ldi	r20, 0x64	; 100
    de1a:	50 e0       	ldi	r21, 0x00	; 0
    de1c:	60 e0       	ldi	r22, 0x00	; 0
    de1e:	86 e0       	ldi	r24, 0x06	; 6
	if (clear) lcd_clear();
	// Initialize to default text direction (for romance languages)
	lcd_displaymode = LCD_ENTRYLEFT | LCD_ENTRYSHIFTDECREMENT;
	// set the entry mode
	lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
}
    de20:	cf 91       	pop	r28
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    de22:	0c 94 8e 63 	jmp	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>

0000de26 <lcd_refresh()>:
	fdev_setup_stream(lcdout, lcd_putchar, NULL, _FDEV_SETUP_WRITE); //setup lcdout stream
}

void lcd_refresh(void)
{
    lcd_begin(1);
    de26:	81 e0       	ldi	r24, 0x01	; 1
    de28:	0c 94 d2 6e 	jmp	0xdda4	; 0xdda4 <lcd_begin(unsigned char) [clone .lto_priv.433]>

0000de2c <lcd_write(unsigned char) [clone .lto_priv.432]>:
{
	lcd_send(value, LOW, duration);
}

static void lcd_write(uint8_t value)
{
    de2c:	cf 92       	push	r12
    de2e:	df 92       	push	r13
    de30:	ff 92       	push	r15
    de32:	0f 93       	push	r16
    de34:	1f 93       	push	r17
    de36:	cf 93       	push	r28
    de38:	df 93       	push	r29
    de3a:	00 d0       	rcall	.+0      	; 0xde3c <lcd_write(unsigned char) [clone .lto_priv.432]+0x10>
    de3c:	00 d0       	rcall	.+0      	; 0xde3e <lcd_write(unsigned char) [clone .lto_priv.432]+0x12>
    de3e:	1f 92       	push	r1
    de40:	1f 92       	push	r1
    de42:	cd b7       	in	r28, 0x3d	; 61
    de44:	de b7       	in	r29, 0x3e	; 62
	if (value == '\n') {
    de46:	8a 30       	cpi	r24, 0x0A	; 10
    de48:	d9 f4       	brne	.+54     	; 0xde80 <lcd_write(unsigned char) [clone .lto_priv.432]+0x54>
		if (lcd_currline > 3) lcd_currline = -1;
    de4a:	80 91 5d 03 	lds	r24, 0x035D	; 0x80035d <lcd_currline>
    de4e:	84 30       	cpi	r24, 0x04	; 4
    de50:	18 f0       	brcs	.+6      	; 0xde58 <lcd_write(unsigned char) [clone .lto_priv.432]+0x2c>
    de52:	8f ef       	ldi	r24, 0xFF	; 255
    de54:	80 93 5d 03 	sts	0x035D, r24	; 0x80035d <lcd_currline>
		lcd_set_cursor(0, lcd_currline + 1); // LF
    de58:	60 91 5d 03 	lds	r22, 0x035D	; 0x80035d <lcd_currline>
    de5c:	6f 5f       	subi	r22, 0xFF	; 255
    de5e:	80 e0       	ldi	r24, 0x00	; 0
    de60:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_print_custom(value);
	} else {
		lcd_send(value, HIGH);
		lcd_ddram_address++; // no need for preventing ddram overflow
	}
}
    de64:	28 96       	adiw	r28, 0x08	; 8
    de66:	0f b6       	in	r0, 0x3f	; 63
    de68:	f8 94       	cli
    de6a:	de bf       	out	0x3e, r29	; 62
    de6c:	0f be       	out	0x3f, r0	; 63
    de6e:	cd bf       	out	0x3d, r28	; 61
    de70:	df 91       	pop	r29
    de72:	cf 91       	pop	r28
    de74:	1f 91       	pop	r17
    de76:	0f 91       	pop	r16
    de78:	ff 90       	pop	r15
    de7a:	df 90       	pop	r13
    de7c:	cf 90       	pop	r12
    de7e:	08 95       	ret
static void lcd_write(uint8_t value)
{
	if (value == '\n') {
		if (lcd_currline > 3) lcd_currline = -1;
		lcd_set_cursor(0, lcd_currline + 1); // LF
	} else if ((value >= 0x80) && (value < (0x80 + CUSTOM_CHARACTERS_CNT))) {
    de80:	90 e8       	ldi	r25, 0x80	; 128
    de82:	98 0f       	add	r25, r24
		lcd_print_custom(value);
	} else {
		lcd_send(value, HIGH);
    de84:	44 e6       	ldi	r20, 0x64	; 100
    de86:	50 e0       	ldi	r21, 0x00	; 0
    de88:	61 e0       	ldi	r22, 0x01	; 1
static void lcd_write(uint8_t value)
{
	if (value == '\n') {
		if (lcd_currline > 3) lcd_currline = -1;
		lcd_set_cursor(0, lcd_currline + 1); // LF
	} else if ((value >= 0x80) && (value < (0x80 + CUSTOM_CHARACTERS_CNT))) {
    de8a:	9a 34       	cpi	r25, 0x4A	; 74
    de8c:	08 f5       	brcc	.+66     	; 0xded0 <lcd_write(unsigned char) [clone .lto_priv.432]+0xa4>
// Custom character data

// #define DEBUG_CUSTOM_CHARACTERS

static void lcd_print_custom(uint8_t c) {
	uint8_t charToSend = pgm_read_byte(&Font[c - 0x80].alternate); // in case no empty slot is found, use the alternate character.
    de8e:	48 2f       	mov	r20, r24
    de90:	40 58       	subi	r20, 0x80	; 128
    de92:	55 0b       	sbc	r21, r21
    de94:	9a 01       	movw	r18, r20
    de96:	96 e0       	ldi	r25, 0x06	; 6
    de98:	92 9f       	mul	r25, r18
    de9a:	a0 01       	movw	r20, r0
    de9c:	93 9f       	mul	r25, r19
    de9e:	50 0d       	add	r21, r0
    dea0:	11 24       	eor	r1, r1
    dea2:	fa 01       	movw	r30, r20
    dea4:	e9 5f       	subi	r30, 0xF9	; 249
    dea6:	f6 48       	sbci	r31, 0x86	; 134
    dea8:	f4 90       	lpm	r15, Z
    deaa:	ee e5       	ldi	r30, 0x5E	; 94
    deac:	f3 e0       	ldi	r31, 0x03	; 3
    deae:	30 e0       	ldi	r19, 0x00	; 0
    deb0:	20 e0       	ldi	r18, 0x00	; 0
	int8_t slotToUse = -1;
    deb2:	9f ef       	ldi	r25, 0xFF	; 255

	for (uint8_t i = 0; i < 8; i++) {
		// first check if we already have the character in the lcd memory
		if ((lcd_custom_characters[i] & 0x7F) == (c & 0x7F)) {
    deb4:	61 91       	ld	r22, Z+
    deb6:	78 2f       	mov	r23, r24
    deb8:	76 27       	eor	r23, r22
    deba:	7f 77       	andi	r23, 0x7F	; 127
    debc:	89 f4       	brne	.+34     	; 0xdee0 <lcd_write(unsigned char) [clone .lto_priv.432]+0xb4>
			lcd_custom_characters[i] = c; // mark the custom character as used
    debe:	f9 01       	movw	r30, r18
    dec0:	e2 5a       	subi	r30, 0xA2	; 162
    dec2:	fc 4f       	sbci	r31, 0xFC	; 252
    dec4:	80 83       	st	Z, r24
    dec6:	f2 2e       	mov	r15, r18
#ifdef DEBUG_CUSTOM_CHARACTERS
	printf_P(PSTR("created char %02x at slot %u\n"), c, slotToUse);
#endif // DEBUG_CUSTOM_CHARACTERS

sendChar:
	lcd_send(charToSend, HIGH);
    dec8:	44 e6       	ldi	r20, 0x64	; 100
    deca:	50 e0       	ldi	r21, 0x00	; 0
    decc:	61 e0       	ldi	r22, 0x01	; 1
    dece:	8f 2d       	mov	r24, r15
		if (lcd_currline > 3) lcd_currline = -1;
		lcd_set_cursor(0, lcd_currline + 1); // LF
	} else if ((value >= 0x80) && (value < (0x80 + CUSTOM_CHARACTERS_CNT))) {
		lcd_print_custom(value);
	} else {
		lcd_send(value, HIGH);
    ded0:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
		lcd_ddram_address++; // no need for preventing ddram overflow
    ded4:	80 91 5c 03 	lds	r24, 0x035C	; 0x80035c <lcd_ddram_address>
    ded8:	8f 5f       	subi	r24, 0xFF	; 255
    deda:	80 93 5c 03 	sts	0x035C, r24	; 0x80035c <lcd_ddram_address>
    dede:	c2 cf       	rjmp	.-124    	; 0xde64 <lcd_write(unsigned char) [clone .lto_priv.432]+0x38>
			charToSend = i; // send the found custom character id
#ifdef DEBUG_CUSTOM_CHARACTERS
			printf_P(PSTR("found char %02x at slot %u\n"), c, i);
#endif // DEBUG_CUSTOM_CHARACTERS
			goto sendChar;
		} else if (lcd_custom_characters[i] == 0x7F) { //found an empty slot. create a new custom character and send it
    dee0:	6f 37       	cpi	r22, 0x7F	; 127
    dee2:	09 f0       	breq	.+2      	; 0xdee6 <lcd_write(unsigned char) [clone .lto_priv.432]+0xba>
    dee4:	3c c0       	rjmp	.+120    	; 0xdf5e <forBegin_7108+0x58>
			lcd_custom_characters[i] = c; // mark the custom character as used
    dee6:	f9 01       	movw	r30, r18
    dee8:	e2 5a       	subi	r30, 0xA2	; 162
    deea:	fc 4f       	sbci	r31, 0xFC	; 252
    deec:	80 83       	st	Z, r24
			slotToUse = i;
    deee:	92 2f       	mov	r25, r18
#ifdef DEBUG_CUSTOM_CHARACTERS
	printf_P(PSTR("replaced char %02x at slot %u\n"), lcd_custom_characters[slotToUse], slotToUse);
#endif // DEBUG_CUSTOM_CHARACTERS

createChar:
	charToSend = slotToUse;
    def0:	f9 2e       	mov	r15, r25
	lcd_createChar_P(slotToUse, &Font[c - 0x80]);
    def2:	fa 01       	movw	r30, r20
    def4:	ee 5f       	subi	r30, 0xFE	; 254
    def6:	f6 48       	sbci	r31, 0x86	; 134
		"dec __zero_reg__" "\n\t"
		"brne forBegin_%=" "\n\t"

		: "=&d" (temp), "=&r" (colByte)
		: "z" (char_p), "e" (charmap)
	);
    def8:	8e 01       	movw	r16, r28
    defa:	0f 5f       	subi	r16, 0xFF	; 255
    defc:	1f 4f       	sbci	r17, 0xFF	; 255
    defe:	d8 01       	movw	r26, r16
    df00:	95 91       	lpm	r25, Z+
    df02:	88 e0       	ldi	r24, 0x08	; 8
    df04:	18 2e       	mov	r1, r24

0000df06 <forBegin_7108>:
    df06:	10 fe       	sbrs	r1, 0
    df08:	05 90       	lpm	r0, Z+
    df0a:	02 94       	swap	r0
    df0c:	80 2d       	mov	r24, r0
    df0e:	97 95       	ror	r25
    df10:	88 1f       	adc	r24, r24
    df12:	8d 93       	st	X+, r24
    df14:	1a 94       	dec	r1
    df16:	b9 f7       	brne	.-18     	; 0xdf06 <forBegin_7108>

	lcd_command(LCD_SETCGRAMADDR | (location << 3));
    df18:	bf 2d       	mov	r27, r15
    df1a:	e8 e0       	ldi	r30, 0x08	; 8
    df1c:	be 02       	muls	r27, r30
    df1e:	c0 01       	movw	r24, r0
    df20:	11 24       	eor	r1, r1
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    df22:	44 e6       	ldi	r20, 0x64	; 100
    df24:	50 e0       	ldi	r21, 0x00	; 0
    df26:	60 e0       	ldi	r22, 0x00	; 0
    df28:	80 64       	ori	r24, 0x40	; 64
    df2a:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
    df2e:	6e 01       	movw	r12, r28
    df30:	f9 e0       	ldi	r31, 0x09	; 9
    df32:	cf 0e       	add	r12, r31
    df34:	d1 1c       	adc	r13, r1
		: "z" (char_p), "e" (charmap)
	);

	lcd_command(LCD_SETCGRAMADDR | (location << 3));
	for (uint8_t i = 0; i < 8; i++) {
		lcd_send(charmap[i], HIGH);
    df36:	44 e6       	ldi	r20, 0x64	; 100
    df38:	50 e0       	ldi	r21, 0x00	; 0
    df3a:	61 e0       	ldi	r22, 0x01	; 1
    df3c:	d8 01       	movw	r26, r16
    df3e:	8d 91       	ld	r24, X+
    df40:	8d 01       	movw	r16, r26
    df42:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
		: "=&d" (temp), "=&r" (colByte)
		: "z" (char_p), "e" (charmap)
	);

	lcd_command(LCD_SETCGRAMADDR | (location << 3));
	for (uint8_t i = 0; i < 8; i++) {
    df46:	c0 16       	cp	r12, r16
    df48:	d1 06       	cpc	r13, r17
    df4a:	a9 f7       	brne	.-22     	; 0xdf36 <forBegin_7108+0x30>
		lcd_send(charmap[i], HIGH);
	}
	lcd_command(LCD_SETDDRAMADDR | lcd_ddram_address); // no need for masking the address
    df4c:	80 91 5c 03 	lds	r24, 0x035C	; 0x80035c <lcd_ddram_address>
	delayMicroseconds(duration);
}

static void lcd_command(uint8_t value, uint16_t duration = LCD_DEFAULT_DELAY)
{
	lcd_send(value, LOW, duration);
    df50:	44 e6       	ldi	r20, 0x64	; 100
    df52:	50 e0       	ldi	r21, 0x00	; 0
    df54:	60 e0       	ldi	r22, 0x00	; 0
    df56:	80 68       	ori	r24, 0x80	; 128
    df58:	0e 94 8e 63 	call	0xc71c	; 0xc71c <lcd_send(unsigned char, unsigned char, unsigned int)>
    df5c:	b5 cf       	rjmp	.-150    	; 0xdec8 <lcd_write(unsigned char) [clone .lto_priv.432]+0x9c>
			goto sendChar;
		} else if (lcd_custom_characters[i] == 0x7F) { //found an empty slot. create a new custom character and send it
			lcd_custom_characters[i] = c; // mark the custom character as used
			slotToUse = i;
			goto createChar;
		} else if (!(lcd_custom_characters[i] & 0x80)) { // found potentially unused slot. Remember it in case it's needed
    df5e:	67 ff       	sbrs	r22, 7
			slotToUse = i;
    df60:	92 2f       	mov	r25, r18
    df62:	2f 5f       	subi	r18, 0xFF	; 255
    df64:	3f 4f       	sbci	r19, 0xFF	; 255

static void lcd_print_custom(uint8_t c) {
	uint8_t charToSend = pgm_read_byte(&Font[c - 0x80].alternate); // in case no empty slot is found, use the alternate character.
	int8_t slotToUse = -1;

	for (uint8_t i = 0; i < 8; i++) {
    df66:	28 30       	cpi	r18, 0x08	; 8
    df68:	31 05       	cpc	r19, r1
    df6a:	09 f0       	breq	.+2      	; 0xdf6e <forBegin_7108+0x68>
    df6c:	a3 cf       	rjmp	.-186    	; 0xdeb4 <lcd_write(unsigned char) [clone .lto_priv.432]+0x88>
	}

	// If this point was reached, then there is no empty slot available.
	// If there exists any potentially unused slot, then use that one instead.
	// Otherwise, use the alternate form of the character.
	if (slotToUse < 0) {
    df6e:	9f 3f       	cpi	r25, 0xFF	; 255
    df70:	09 f0       	breq	.+2      	; 0xdf74 <forBegin_7108+0x6e>
    df72:	be cf       	rjmp	.-132    	; 0xdef0 <lcd_write(unsigned char) [clone .lto_priv.432]+0xc4>
    df74:	a9 cf       	rjmp	.-174    	; 0xdec8 <lcd_write(unsigned char) [clone .lto_priv.432]+0x9c>

0000df76 <lcd_printNumber(unsigned long, unsigned char)>:
	else
		lcd_printNumber(n, base);
}

void lcd_printNumber(unsigned long n, uint8_t base)
{
    df76:	8f 92       	push	r8
    df78:	9f 92       	push	r9
    df7a:	af 92       	push	r10
    df7c:	bf 92       	push	r11
    df7e:	ef 92       	push	r14
    df80:	ff 92       	push	r15
    df82:	0f 93       	push	r16
    df84:	1f 93       	push	r17
    df86:	cf 93       	push	r28
    df88:	df 93       	push	r29
    df8a:	cd b7       	in	r28, 0x3d	; 61
    df8c:	de b7       	in	r29, 0x3e	; 62
    df8e:	a0 97       	sbiw	r28, 0x20	; 32
    df90:	0f b6       	in	r0, 0x3f	; 63
    df92:	f8 94       	cli
    df94:	de bf       	out	0x3e, r29	; 62
    df96:	0f be       	out	0x3f, r0	; 63
    df98:	cd bf       	out	0x3d, r28	; 61
	unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
	uint8_t i = 0;
	if (n == 0)
    df9a:	61 15       	cp	r22, r1
    df9c:	71 05       	cpc	r23, r1
    df9e:	81 05       	cpc	r24, r1
    dfa0:	91 05       	cpc	r25, r1
    dfa2:	99 f4       	brne	.+38     	; 0xdfca <lcd_printNumber(unsigned long, unsigned char)+0x54>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
    dfa4:	80 e3       	ldi	r24, 0x30	; 48
		buf[i++] = n % base;
		n /= base;
	}
	for (; i > 0; i--)
		lcd_print((char) (buf[i - 1] < 10 ?	'0' + buf[i - 1] : 'A' + buf[i - 1] - 10));
}
    dfa6:	a0 96       	adiw	r28, 0x20	; 32
    dfa8:	0f b6       	in	r0, 0x3f	; 63
    dfaa:	f8 94       	cli
    dfac:	de bf       	out	0x3e, r29	; 62
    dfae:	0f be       	out	0x3f, r0	; 63
    dfb0:	cd bf       	out	0x3d, r28	; 61
    dfb2:	df 91       	pop	r29
    dfb4:	cf 91       	pop	r28
    dfb6:	1f 91       	pop	r17
    dfb8:	0f 91       	pop	r16
    dfba:	ff 90       	pop	r15
    dfbc:	ef 90       	pop	r14
    dfbe:	bf 90       	pop	r11
    dfc0:	af 90       	pop	r10
    dfc2:	9f 90       	pop	r9
    dfc4:	8f 90       	pop	r8
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
    dfc6:	0c 94 16 6f 	jmp	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
}

void lcd_printNumber(unsigned long n, uint8_t base)
{
	unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
	uint8_t i = 0;
    dfca:	00 e0       	ldi	r16, 0x00	; 0
		lcd_print('0');
		return;
	}
	while (n > 0)
	{
		buf[i++] = n % base;
    dfcc:	84 2e       	mov	r8, r20
    dfce:	91 2c       	mov	r9, r1
    dfd0:	b1 2c       	mov	r11, r1
    dfd2:	a1 2c       	mov	r10, r1
    dfd4:	9e 01       	movw	r18, r28
    dfd6:	2f 5f       	subi	r18, 0xFF	; 255
    dfd8:	3f 4f       	sbci	r19, 0xFF	; 255
    dfda:	79 01       	movw	r14, r18
    dfdc:	a5 01       	movw	r20, r10
    dfde:	94 01       	movw	r18, r8
    dfe0:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
    dfe4:	f7 01       	movw	r30, r14
    dfe6:	e0 0f       	add	r30, r16
    dfe8:	f1 1d       	adc	r31, r1
    dfea:	60 83       	st	Z, r22
		n /= base;
    dfec:	b9 01       	movw	r22, r18
    dfee:	ca 01       	movw	r24, r20
		lcd_print('0');
		return;
	}
	while (n > 0)
	{
		buf[i++] = n % base;
    dff0:	0f 5f       	subi	r16, 0xFF	; 255
	if (n == 0)
	{
		lcd_print('0');
		return;
	}
	while (n > 0)
    dff2:	61 15       	cp	r22, r1
    dff4:	71 05       	cpc	r23, r1
    dff6:	81 05       	cpc	r24, r1
    dff8:	91 05       	cpc	r25, r1
    dffa:	81 f7       	brne	.-32     	; 0xdfdc <lcd_printNumber(unsigned long, unsigned char)+0x66>
    dffc:	0e 0d       	add	r16, r14
    dffe:	1f 2d       	mov	r17, r15
    e000:	11 1d       	adc	r17, r1
	{
		buf[i++] = n % base;
		n /= base;
	}
	for (; i > 0; i--)
    e002:	e0 16       	cp	r14, r16
    e004:	f1 06       	cpc	r15, r17
    e006:	59 f0       	breq	.+22     	; 0xe01e <lcd_printNumber(unsigned long, unsigned char)+0xa8>
		lcd_print((char) (buf[i - 1] < 10 ?	'0' + buf[i - 1] : 'A' + buf[i - 1] - 10));
    e008:	f8 01       	movw	r30, r16
    e00a:	82 91       	ld	r24, -Z
    e00c:	8f 01       	movw	r16, r30
    e00e:	8a 30       	cpi	r24, 0x0A	; 10
    e010:	20 f4       	brcc	.+8      	; 0xe01a <lcd_printNumber(unsigned long, unsigned char)+0xa4>
    e012:	80 5d       	subi	r24, 0xD0	; 208
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
    e014:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
    e018:	f4 cf       	rjmp	.-24     	; 0xe002 <lcd_printNumber(unsigned long, unsigned char)+0x8c>
	{
		buf[i++] = n % base;
		n /= base;
	}
	for (; i > 0; i--)
		lcd_print((char) (buf[i - 1] < 10 ?	'0' + buf[i - 1] : 'A' + buf[i - 1] - 10));
    e01a:	89 5c       	subi	r24, 0xC9	; 201
    e01c:	fb cf       	rjmp	.-10     	; 0xe014 <lcd_printNumber(unsigned long, unsigned char)+0x9e>
}
    e01e:	a0 96       	adiw	r28, 0x20	; 32
    e020:	0f b6       	in	r0, 0x3f	; 63
    e022:	f8 94       	cli
    e024:	de bf       	out	0x3e, r29	; 62
    e026:	0f be       	out	0x3f, r0	; 63
    e028:	cd bf       	out	0x3d, r28	; 61
    e02a:	df 91       	pop	r29
    e02c:	cf 91       	pop	r28
    e02e:	1f 91       	pop	r17
    e030:	0f 91       	pop	r16
    e032:	ff 90       	pop	r15
    e034:	ef 90       	pop	r14
    e036:	bf 90       	pop	r11
    e038:	af 90       	pop	r10
    e03a:	9f 90       	pop	r9
    e03c:	8f 90       	pop	r8
    e03e:	08 95       	ret

0000e040 <lcd_print(long, int) [clone .part.3]>:
void lcd_print(unsigned int n, int base)
{
	lcd_print((unsigned long) n, base);
}

void lcd_print(long n, int base)
    e040:	cf 92       	push	r12
    e042:	df 92       	push	r13
    e044:	ef 92       	push	r14
    e046:	ff 92       	push	r15
    e048:	6b 01       	movw	r12, r22
    e04a:	7c 01       	movw	r14, r24
{
	if (base == 0)
		lcd_write(n);
	else if (base == 10)
	{
		if (n < 0)
    e04c:	f7 fe       	sbrs	r15, 7
    e04e:	0b c0       	rjmp	.+22     	; 0xe066 <lcd_print(long, int) [clone .part.3]+0x26>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
    e050:	8d e2       	ldi	r24, 0x2D	; 45
    e052:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
	else if (base == 10)
	{
		if (n < 0)
		{
			lcd_print('-');
			n = -n;
    e056:	f0 94       	com	r15
    e058:	e0 94       	com	r14
    e05a:	d0 94       	com	r13
    e05c:	c0 94       	com	r12
    e05e:	c1 1c       	adc	r12, r1
    e060:	d1 1c       	adc	r13, r1
    e062:	e1 1c       	adc	r14, r1
    e064:	f1 1c       	adc	r15, r1
		}
		lcd_printNumber(n, 10);
    e066:	4a e0       	ldi	r20, 0x0A	; 10
    e068:	c7 01       	movw	r24, r14
    e06a:	b6 01       	movw	r22, r12
	}
	else
		lcd_printNumber(n, base);
}
    e06c:	ff 90       	pop	r15
    e06e:	ef 90       	pop	r14
    e070:	df 90       	pop	r13
    e072:	cf 90       	pop	r12
		if (n < 0)
		{
			lcd_print('-');
			n = -n;
		}
		lcd_printNumber(n, 10);
    e074:	0c 94 bb 6f 	jmp	0xdf76	; 0xdf76 <lcd_printNumber(unsigned long, unsigned char)>

0000e078 <lcd_print_pad_P(char const*, unsigned char)>:
    lcd_space(len);
    return len;
}

uint8_t lcd_print_pad_P(const char* s, uint8_t len)
{
    e078:	0f 93       	push	r16
    e07a:	1f 93       	push	r17
    e07c:	cf 93       	push	r28
    e07e:	8c 01       	movw	r16, r24
    e080:	c6 2f       	mov	r28, r22
    while (len && pgm_read_byte(s)) {
    e082:	cc 23       	and	r28, r28
    e084:	59 f0       	breq	.+22     	; 0xe09c <lcd_print_pad_P(char const*, unsigned char)+0x24>
    e086:	f8 01       	movw	r30, r16
    e088:	24 91       	lpm	r18, Z
    e08a:	22 23       	and	r18, r18
    e08c:	39 f0       	breq	.+14     	; 0xe09c <lcd_print_pad_P(char const*, unsigned char)+0x24>
        lcd_write(pgm_read_byte(s++));
    e08e:	0f 5f       	subi	r16, 0xFF	; 255
    e090:	1f 4f       	sbci	r17, 0xFF	; 255
    e092:	84 91       	lpm	r24, Z
    e094:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
        --len;
    e098:	c1 50       	subi	r28, 0x01	; 1
    e09a:	f3 cf       	rjmp	.-26     	; 0xe082 <lcd_print_pad_P(char const*, unsigned char)+0xa>
    }
    lcd_space(len);
    e09c:	8c 2f       	mov	r24, r28
    e09e:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
    return len;
}
    e0a2:	8c 2f       	mov	r24, r28
    e0a4:	cf 91       	pop	r28
    e0a6:	1f 91       	pop	r17
    e0a8:	0f 91       	pop	r16
    e0aa:	08 95       	ret

0000e0ac <lcd_print_pad(char const*, unsigned char)>:
{
	while (*s) lcd_write(*(s++));
}

uint8_t lcd_print_pad(const char* s, uint8_t len)
{
    e0ac:	0f 93       	push	r16
    e0ae:	1f 93       	push	r17
    e0b0:	cf 93       	push	r28
    e0b2:	8c 01       	movw	r16, r24
    e0b4:	c6 2f       	mov	r28, r22
    while (len && *s) {
    e0b6:	cc 23       	and	r28, r28
    e0b8:	49 f0       	breq	.+18     	; 0xe0cc <lcd_print_pad(char const*, unsigned char)+0x20>
    e0ba:	f8 01       	movw	r30, r16
    e0bc:	81 91       	ld	r24, Z+
    e0be:	8f 01       	movw	r16, r30
    e0c0:	88 23       	and	r24, r24
    e0c2:	21 f0       	breq	.+8      	; 0xe0cc <lcd_print_pad(char const*, unsigned char)+0x20>
        lcd_write(*(s++));
    e0c4:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
        --len;
    e0c8:	c1 50       	subi	r28, 0x01	; 1
    e0ca:	f5 cf       	rjmp	.-22     	; 0xe0b6 <lcd_print_pad(char const*, unsigned char)+0xa>
    }
    lcd_space(len);
    e0cc:	8c 2f       	mov	r24, r28
    e0ce:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
    return len;
}
    e0d2:	8c 2f       	mov	r24, r28
    e0d4:	cf 91       	pop	r28
    e0d6:	1f 91       	pop	r17
    e0d8:	0f 91       	pop	r16
    e0da:	08 95       	ret

0000e0dc <lcd_print(char const*)>:
	while (n--) lcd_putc(' ');
}


void lcd_print(const char* s)
{
    e0dc:	cf 93       	push	r28
    e0de:	df 93       	push	r29
    e0e0:	ec 01       	movw	r28, r24
	while (*s) lcd_write(*(s++));
    e0e2:	89 91       	ld	r24, Y+
    e0e4:	88 23       	and	r24, r24
    e0e6:	19 f0       	breq	.+6      	; 0xe0ee <lcd_print(char const*)+0x12>
    e0e8:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
    e0ec:	fa cf       	rjmp	.-12     	; 0xe0e2 <lcd_print(char const*)+0x6>
}
    e0ee:	df 91       	pop	r29
    e0f0:	cf 91       	pop	r28
    e0f2:	08 95       	ret

0000e0f4 <lcd_putchar(char, __file*) [clone .lto_priv.405]>:
	lcd_command(LCD_ENTRYMODESET | lcd_displaymode);
}

static int lcd_putchar(char c, FILE *)
{
	lcd_write(c);
    e0f4:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
	return 0;
}
    e0f8:	90 e0       	ldi	r25, 0x00	; 0
    e0fa:	80 e0       	ldi	r24, 0x00	; 0
    e0fc:	08 95       	ret

0000e0fe <lcd_consume_click()>:
extern void lcd_frame_start();

//! @brief Consume click and longpress event
inline void lcd_consume_click()
{
    lcd_click_trigger = 0;
    e0fe:	10 92 a8 03 	sts	0x03A8, r1	; 0x8003a8 <lcd_click_trigger>
    lcd_longpress_trigger = 0;
    e102:	10 92 d4 05 	sts	0x05D4, r1	; 0x8005d4 <lcd_longpress_trigger>
}
    e106:	08 95       	ret

0000e108 <lcd_clicked()>:
//! Generally is used in modal dialogs.
//!
//! @retval 0 not clicked
//! @retval nonzero clicked
uint8_t lcd_clicked(void)
{
    e108:	cf 93       	push	r28
	bool clicked = LCD_CLICKED;
    e10a:	80 91 a8 03 	lds	r24, 0x03A8	; 0x8003a8 <lcd_click_trigger>
    e10e:	c1 e0       	ldi	r28, 0x01	; 1
    e110:	81 11       	cpse	r24, r1
    e112:	04 c0       	rjmp	.+8      	; 0xe11c <lcd_clicked()+0x14>
    e114:	c0 e0       	ldi	r28, 0x00	; 0
	if(clicked)
	{
	    lcd_consume_click();
	}
    return clicked;
}
    e116:	8c 2f       	mov	r24, r28
    e118:	cf 91       	pop	r28
    e11a:	08 95       	ret
uint8_t lcd_clicked(void)
{
	bool clicked = LCD_CLICKED;
	if(clicked)
	{
	    lcd_consume_click();
    e11c:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
    e120:	fa cf       	rjmp	.-12     	; 0xe116 <lcd_clicked()+0xe>

0000e122 <lang_get_code.part.3>:
	if (lang == LANG_ID_PRI) return LANG_CODE_EN; //primary lang = EN
#ifdef XFLASH
	if (lang == LANG_ID_SEC)
	{
		uint16_t ui = _SEC_LANG_TABLE; //table pointer
		if (pgm_read_dword(((uint32_t*)(ui + 0))) != LANG_MAGIC) return LANG_CODE_XX; //magic not valid
    e122:	e0 e0       	ldi	r30, 0x00	; 0
    e124:	f1 e0       	ldi	r31, 0x01	; 1
    e126:	85 91       	lpm	r24, Z+
    e128:	95 91       	lpm	r25, Z+
    e12a:	a5 91       	lpm	r26, Z+
    e12c:	b4 91       	lpm	r27, Z
    e12e:	85 3a       	cpi	r24, 0xA5	; 165
    e130:	9a 45       	sbci	r25, 0x5A	; 90
    e132:	a4 4b       	sbci	r26, 0xB4	; 180
    e134:	bb 44       	sbci	r27, 0x4B	; 75
    e136:	29 f4       	brne	.+10     	; 0xe142 <lang_get_code.part.3+0x20>
		return pgm_read_word(((uint32_t*)(ui + 10))); //return lang code from progmem
    e138:	ea e0       	ldi	r30, 0x0A	; 10
    e13a:	f1 e0       	ldi	r31, 0x01	; 1
    e13c:	85 91       	lpm	r24, Z+
    e13e:	94 91       	lpm	r25, Z
    e140:	08 95       	ret
	if (lang == LANG_ID_PRI) return LANG_CODE_EN; //primary lang = EN
#ifdef XFLASH
	if (lang == LANG_ID_SEC)
	{
		uint16_t ui = _SEC_LANG_TABLE; //table pointer
		if (pgm_read_dword(((uint32_t*)(ui + 0))) != LANG_MAGIC) return LANG_CODE_XX; //magic not valid
    e142:	8f e3       	ldi	r24, 0x3F	; 63
    e144:	9f e3       	ldi	r25, 0x3F	; 63
		table += pgm_read_word((uint16_t*)(table + 4));
		count++;
	}
#endif //XFLASH
	return LANG_CODE_XX;
}
    e146:	08 95       	ret

0000e148 <lang_is_selected>:
	eeprom_update_byte((unsigned char*)EEPROM_LANG, LANG_ID_FORCE_SELECTION);
}

uint8_t lang_is_selected(void)
{
	uint8_t lang_eeprom = eeprom_read_byte((unsigned char*)EEPROM_LANG);
    e148:	8e ef       	ldi	r24, 0xFE	; 254
    e14a:	9f e0       	ldi	r25, 0x0F	; 15
    e14c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	return (lang_eeprom != LANG_ID_FORCE_SELECTION) && (lang_eeprom == lang_selected);
    e150:	8e 3f       	cpi	r24, 0xFE	; 254
    e152:	39 f0       	breq	.+14     	; 0xe162 <lang_is_selected+0x1a>
    e154:	91 e0       	ldi	r25, 0x01	; 1
    e156:	20 91 5a 03 	lds	r18, 0x035A	; 0x80035a <lang_selected>
    e15a:	28 13       	cpse	r18, r24
    e15c:	90 e0       	ldi	r25, 0x00	; 0
    e15e:	89 2f       	mov	r24, r25
    e160:	08 95       	ret
    e162:	80 e0       	ldi	r24, 0x00	; 0
}
    e164:	08 95       	ret

0000e166 <lang_reset>:
	return _n("??");
}

void lang_reset(void)
{
	lang_selected = 0;
    e166:	10 92 5a 03 	sts	0x035A, r1	; 0x80035a <lang_selected>
	eeprom_update_byte((unsigned char*)EEPROM_LANG, LANG_ID_FORCE_SELECTION);
    e16a:	6e ef       	ldi	r22, 0xFE	; 254
    e16c:	8e ef       	ldi	r24, 0xFE	; 254
    e16e:	9f e0       	ldi	r25, 0x0F	; 15
    e170:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0000e174 <lang_get_name_by_code>:
	return LANG_CODE_XX;
}

const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
    e174:	85 37       	cpi	r24, 0x75	; 117
    e176:	28 e6       	ldi	r18, 0x68	; 104
    e178:	92 07       	cpc	r25, r18
    e17a:	09 f4       	brne	.+2      	; 0xe17e <lang_get_name_by_code+0xa>
    e17c:	59 c0       	rjmp	.+178    	; 0xe230 <lang_get_name_by_code+0xbc>
    e17e:	f8 f4       	brcc	.+62     	; 0xe1be <lang_get_name_by_code+0x4a>
    e180:	8e 36       	cpi	r24, 0x6E	; 110
    e182:	25 e6       	ldi	r18, 0x65	; 101
    e184:	92 07       	cpc	r25, r18
    e186:	09 f4       	brne	.+2      	; 0xe18a <lang_get_name_by_code+0x16>
    e188:	59 c0       	rjmp	.+178    	; 0xe23c <lang_get_name_by_code+0xc8>
    e18a:	50 f4       	brcc	.+20     	; 0xe1a0 <lang_get_name_by_code+0x2c>
    e18c:	83 37       	cpi	r24, 0x73	; 115
    e18e:	23 e6       	ldi	r18, 0x63	; 99
    e190:	92 07       	cpc	r25, r18
    e192:	b1 f1       	breq	.+108    	; 0xe200 <lang_get_name_by_code+0x8c>
    e194:	85 36       	cpi	r24, 0x65	; 101
    e196:	94 46       	sbci	r25, 0x64	; 100
    e198:	b1 f1       	breq	.+108    	; 0xe206 <lang_get_name_by_code+0x92>
//#ifdef COMMUNITY_LANG_GROUP1_QR
//	case LANG_CODE_QR: return _n("New language"); //community contribution
//#endif // COMMUNITY_LANG_GROUP1_QR
#endif // COMMUNITY_LANGUAGE_SUPPORT
	}
	return _n("??");
    e19a:	8c ef       	ldi	r24, 0xFC	; 252
    e19c:	94 e6       	ldi	r25, 0x64	; 100
    e19e:	08 95       	ret
	return LANG_CODE_XX;
}

const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
    e1a0:	82 37       	cpi	r24, 0x72	; 114
    e1a2:	26 e6       	ldi	r18, 0x66	; 102
    e1a4:	92 07       	cpc	r25, r18
    e1a6:	91 f1       	breq	.+100    	; 0xe20c <lang_get_name_by_code+0x98>
    e1a8:	82 37       	cpi	r24, 0x72	; 114
    e1aa:	28 e6       	ldi	r18, 0x68	; 104
    e1ac:	92 07       	cpc	r25, r18
    e1ae:	09 f4       	brne	.+2      	; 0xe1b2 <lang_get_name_by_code+0x3e>
    e1b0:	42 c0       	rjmp	.+132    	; 0xe236 <lang_get_name_by_code+0xc2>
    e1b2:	83 37       	cpi	r24, 0x73	; 115
    e1b4:	95 46       	sbci	r25, 0x65	; 101
    e1b6:	89 f7       	brne	.-30     	; 0xe19a <lang_get_name_by_code+0x26>
	{
	case LANG_CODE_EN: return _n("English");
	case LANG_CODE_CZ: return _n("Cestina");
	case LANG_CODE_DE: return _n("Deutsch");
	case LANG_CODE_ES: return _n("Espanol");
    e1b8:	83 e5       	ldi	r24, 0x53	; 83
    e1ba:	95 e6       	ldi	r25, 0x65	; 101
    e1bc:	08 95       	ret
	return LANG_CODE_XX;
}

const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
    e1be:	8c 36       	cpi	r24, 0x6C	; 108
    e1c0:	20 e7       	ldi	r18, 0x70	; 112
    e1c2:	92 07       	cpc	r25, r18
    e1c4:	31 f1       	breq	.+76     	; 0xe212 <lang_get_name_by_code+0x9e>
    e1c6:	70 f4       	brcc	.+28     	; 0xe1e4 <lang_get_name_by_code+0x70>
    e1c8:	8c 36       	cpi	r24, 0x6C	; 108
    e1ca:	2e e6       	ldi	r18, 0x6E	; 110
    e1cc:	92 07       	cpc	r25, r18
    e1ce:	21 f1       	breq	.+72     	; 0xe218 <lang_get_name_by_code+0xa4>
    e1d0:	8f 36       	cpi	r24, 0x6F	; 111
    e1d2:	2e e6       	ldi	r18, 0x6E	; 110
    e1d4:	92 07       	cpc	r25, r18
    e1d6:	31 f1       	breq	.+76     	; 0xe224 <lang_get_name_by_code+0xb0>
    e1d8:	84 37       	cpi	r24, 0x74	; 116
    e1da:	99 46       	sbci	r25, 0x69	; 105
    e1dc:	f1 f6       	brne	.-68     	; 0xe19a <lang_get_name_by_code+0x26>
	case LANG_CODE_EN: return _n("English");
	case LANG_CODE_CZ: return _n("Cestina");
	case LANG_CODE_DE: return _n("Deutsch");
	case LANG_CODE_ES: return _n("Espanol");
	case LANG_CODE_FR: return _n("Francais");
	case LANG_CODE_IT: return _n("Italiano");
    e1de:	81 e4       	ldi	r24, 0x41	; 65
    e1e0:	95 e6       	ldi	r25, 0x65	; 101
    e1e2:	08 95       	ret
	return LANG_CODE_XX;
}

const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
    e1e4:	8b 36       	cpi	r24, 0x6B	; 107
    e1e6:	23 e7       	ldi	r18, 0x73	; 115
    e1e8:	92 07       	cpc	r25, r18
    e1ea:	f9 f0       	breq	.+62     	; 0xe22a <lang_get_name_by_code+0xb6>
    e1ec:	86 37       	cpi	r24, 0x76	; 118
    e1ee:	23 e7       	ldi	r18, 0x73	; 115
    e1f0:	92 07       	cpc	r25, r18
    e1f2:	a9 f0       	breq	.+42     	; 0xe21e <lang_get_name_by_code+0xaa>
    e1f4:	8f 36       	cpi	r24, 0x6F	; 111
    e1f6:	92 47       	sbci	r25, 0x72	; 114
    e1f8:	81 f6       	brne	.-96     	; 0xe19a <lang_get_name_by_code+0x26>
#endif // COMMUNITY_LANG_GROUP1_HR
#ifdef COMMUNITY_LANG_GROUP2_LT
	case LANG_CODE_LT: return _n("Lietuviu"); //community Lithuanian contribution
#endif // COMMUNITY_LANG_GROUP2_LT
#ifdef COMMUNITY_LANG_GROUP1_RO
	case LANG_CODE_RO: return _n("Romana"); //community Romanian contribution
    e1fa:	8f ef       	ldi	r24, 0xFF	; 255
    e1fc:	94 e6       	ldi	r25, 0x64	; 100
    e1fe:	08 95       	ret
const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
	{
	case LANG_CODE_EN: return _n("English");
	case LANG_CODE_CZ: return _n("Cestina");
    e200:	83 e6       	ldi	r24, 0x63	; 99
    e202:	95 e6       	ldi	r25, 0x65	; 101
    e204:	08 95       	ret
	case LANG_CODE_DE: return _n("Deutsch");
    e206:	8b e5       	ldi	r24, 0x5B	; 91
    e208:	95 e6       	ldi	r25, 0x65	; 101
    e20a:	08 95       	ret
	case LANG_CODE_ES: return _n("Espanol");
	case LANG_CODE_FR: return _n("Francais");
    e20c:	8a e4       	ldi	r24, 0x4A	; 74
    e20e:	95 e6       	ldi	r25, 0x65	; 101
    e210:	08 95       	ret
	case LANG_CODE_IT: return _n("Italiano");
	case LANG_CODE_PL: return _n("Polski");
    e212:	8a e3       	ldi	r24, 0x3A	; 58
    e214:	95 e6       	ldi	r25, 0x65	; 101
    e216:	08 95       	ret
#ifdef COMMUNITY_LANGUAGE_SUPPORT //Community language support
#ifdef COMMUNITY_LANG_GROUP1_NL
	case LANG_CODE_NL: return _n("Nederlands"); //community Dutch contribution
    e218:	8f e2       	ldi	r24, 0x2F	; 47
    e21a:	95 e6       	ldi	r25, 0x65	; 101
    e21c:	08 95       	ret
#endif // COMMUNITY_LANG_GROUP1_NL
#ifdef COMMUNITY_LANG_GROUP1_SV
	case LANG_CODE_SV: return _n("Svenska"); //community Swedish contribution
    e21e:	87 e2       	ldi	r24, 0x27	; 39
    e220:	95 e6       	ldi	r25, 0x65	; 101
    e222:	08 95       	ret
#endif // COMMUNITY_LANG_GROUP1_SV
#ifdef COMMUNITY_LANG_GROUP1_NO
	case LANG_CODE_NO: return _n("Norsk"); //community Swedish contribution
    e224:	81 e2       	ldi	r24, 0x21	; 33
    e226:	95 e6       	ldi	r25, 0x65	; 101
    e228:	08 95       	ret
#endif // COMMUNITY_LANG_GROUP1_NO
#ifdef COMMUNITY_LANG_GROUP1_DA
	case LANG_CODE_DA: return _n("Dansk"); //community Danish contribution
#endif // COMMUNITY_LANG_GROUP1_DA
#ifdef COMMUNITY_LANG_GROUP1_SK
	case LANG_CODE_SK: return _n("Slovencina"); //community Slovak contribution
    e22a:	86 e1       	ldi	r24, 0x16	; 22
    e22c:	95 e6       	ldi	r25, 0x65	; 101
    e22e:	08 95       	ret
#endif // COMMUNITY_LANG_GROUP1_SK
#ifdef COMMUNITY_LANG_GROUP1_SL
	case LANG_CODE_SL: return _n("Slovenscina"); //community Slovanian contribution
#endif // COMMUNITY_LANG_GROUP1_SL
#ifdef COMMUNITY_LANG_GROUP1_HU
	case LANG_CODE_HU: return _n("Magyar"); //community Hungarian contribution
    e230:	8f e0       	ldi	r24, 0x0F	; 15
    e232:	95 e6       	ldi	r25, 0x65	; 101
    e234:	08 95       	ret
#endif // COMMUNITY_LANG_GROUP1_HU
#ifdef COMMUNITY_LANG_GROUP1_LB
	case LANG_CODE_LB: return _n("Letzebuergesch"); //community Luxembourgish contribution
#endif // COMMUNITY_LANG_GROUP1_LB
#ifdef COMMUNITY_LANG_GROUP1_HR
	case LANG_CODE_HR: return _n("Hrvatski"); //community Croatian contribution
    e236:	86 e0       	ldi	r24, 0x06	; 6
    e238:	95 e6       	ldi	r25, 0x65	; 101
    e23a:	08 95       	ret

const char* lang_get_name_by_code(uint16_t code)
{
	switch (code)
	{
	case LANG_CODE_EN: return _n("English");
    e23c:	8b e6       	ldi	r24, 0x6B	; 107
    e23e:	95 e6       	ldi	r25, 0x65	; 101
//	case LANG_CODE_QR: return _n("New language"); //community contribution
//#endif // COMMUNITY_LANG_GROUP1_QR
#endif // COMMUNITY_LANGUAGE_SUPPORT
	}
	return _n("??");
}
    e240:	08 95       	ret

0000e242 <lang_get_code>:
#endif //XFLASH
	return 0;
}

uint16_t lang_get_code(uint8_t lang)
{
    e242:	cf 92       	push	r12
    e244:	df 92       	push	r13
    e246:	ef 92       	push	r14
    e248:	ff 92       	push	r15
    e24a:	1f 93       	push	r17
    e24c:	cf 93       	push	r28
    e24e:	df 93       	push	r29
    e250:	cd b7       	in	r28, 0x3d	; 61
    e252:	de b7       	in	r29, 0x3e	; 62
    e254:	60 97       	sbiw	r28, 0x10	; 16
    e256:	0f b6       	in	r0, 0x3f	; 63
    e258:	f8 94       	cli
    e25a:	de bf       	out	0x3e, r29	; 62
    e25c:	0f be       	out	0x3f, r0	; 63
    e25e:	cd bf       	out	0x3d, r28	; 61
	if (lang == LANG_ID_PRI) return LANG_CODE_EN; //primary lang = EN
    e260:	88 23       	and	r24, r24
    e262:	c1 f1       	breq	.+112    	; 0xe2d4 <lang_get_code+0x92>
    e264:	18 2f       	mov	r17, r24
#ifdef XFLASH
	if (lang == LANG_ID_SEC)
    e266:	81 30       	cpi	r24, 0x01	; 1
    e268:	81 f4       	brne	.+32     	; 0xe28a <lang_get_code+0x48>
    e26a:	0e 94 91 70 	call	0xe122	; 0xe122 <lang_get_code.part.3>
		table += pgm_read_word((uint16_t*)(table + 4));
		count++;
	}
#endif //XFLASH
	return LANG_CODE_XX;
}
    e26e:	60 96       	adiw	r28, 0x10	; 16
    e270:	0f b6       	in	r0, 0x3f	; 63
    e272:	f8 94       	cli
    e274:	de bf       	out	0x3e, r29	; 62
    e276:	0f be       	out	0x3f, r0	; 63
    e278:	cd bf       	out	0x3d, r28	; 61
    e27a:	df 91       	pop	r29
    e27c:	cf 91       	pop	r28
    e27e:	1f 91       	pop	r17
    e280:	ff 90       	pop	r15
    e282:	ef 90       	pop	r14
    e284:	df 90       	pop	r13
    e286:	cf 90       	pop	r12
    e288:	08 95       	ret
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
    e28a:	8c e5       	ldi	r24, 0x5C	; 92
    e28c:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
    e28e:	1d bc       	out	0x2d, r1	; 45
		return pgm_read_word(((uint32_t*)(ui + 10))); //return lang code from progmem
	}
	XFLASH_SPI_ENTER();
	uint32_t addr = LANG_OFFSET;
	lang_table_header_t header; //table header structure
	lang--;
    e290:	11 50       	subi	r17, 0x01	; 1
		uint16_t ui = _SEC_LANG_TABLE; //table pointer
		if (pgm_read_dword(((uint32_t*)(ui + 0))) != LANG_MAGIC) return LANG_CODE_XX; //magic not valid
		return pgm_read_word(((uint32_t*)(ui + 10))); //return lang code from progmem
	}
	XFLASH_SPI_ENTER();
	uint32_t addr = LANG_OFFSET;
    e292:	c1 2c       	mov	r12, r1
    e294:	d1 2c       	mov	r13, r1
    e296:	76 01       	movw	r14, r12
	lang_table_header_t header; //table header structure
	lang--;
	while (1)
	{
		xflash_rd_data(addr, (uint8_t*)&header, sizeof(lang_table_header_t)); //read table header from xflash
    e298:	20 e1       	ldi	r18, 0x10	; 16
    e29a:	30 e0       	ldi	r19, 0x00	; 0
    e29c:	ae 01       	movw	r20, r28
    e29e:	4f 5f       	subi	r20, 0xFF	; 255
    e2a0:	5f 4f       	sbci	r21, 0xFF	; 255
    e2a2:	c7 01       	movw	r24, r14
    e2a4:	b6 01       	movw	r22, r12
    e2a6:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
		if (header.magic != LANG_MAGIC) break; //break if not valid
    e2aa:	89 81       	ldd	r24, Y+1	; 0x01
    e2ac:	9a 81       	ldd	r25, Y+2	; 0x02
    e2ae:	ab 81       	ldd	r26, Y+3	; 0x03
    e2b0:	bc 81       	ldd	r27, Y+4	; 0x04
    e2b2:	85 3a       	cpi	r24, 0xA5	; 165
    e2b4:	9a 45       	sbci	r25, 0x5A	; 90
    e2b6:	a4 4b       	sbci	r26, 0xB4	; 180
    e2b8:	bb 44       	sbci	r27, 0x4B	; 75
    e2ba:	79 f4       	brne	.+30     	; 0xe2da <lang_get_code+0x98>
		if (--lang == 0) return header.code;
    e2bc:	11 50       	subi	r17, 0x01	; 1
    e2be:	19 f4       	brne	.+6      	; 0xe2c6 <lang_get_code+0x84>
    e2c0:	8b 85       	ldd	r24, Y+11	; 0x0b
    e2c2:	9c 85       	ldd	r25, Y+12	; 0x0c
    e2c4:	d4 cf       	rjmp	.-88     	; 0xe26e <lang_get_code+0x2c>
		addr += header.size; //calc address of next table
    e2c6:	8d 81       	ldd	r24, Y+5	; 0x05
    e2c8:	9e 81       	ldd	r25, Y+6	; 0x06
    e2ca:	c8 0e       	add	r12, r24
    e2cc:	d9 1e       	adc	r13, r25
    e2ce:	e1 1c       	adc	r14, r1
    e2d0:	f1 1c       	adc	r15, r1
    e2d2:	e2 cf       	rjmp	.-60     	; 0xe298 <lang_get_code+0x56>
	return 0;
}

uint16_t lang_get_code(uint8_t lang)
{
	if (lang == LANG_ID_PRI) return LANG_CODE_EN; //primary lang = EN
    e2d4:	8e e6       	ldi	r24, 0x6E	; 110
    e2d6:	95 e6       	ldi	r25, 0x65	; 101
    e2d8:	ca cf       	rjmp	.-108    	; 0xe26e <lang_get_code+0x2c>
		if (count == lang) return pgm_read_word(((uint16_t*)(table + 10))); //read language code
		table += pgm_read_word((uint16_t*)(table + 4));
		count++;
	}
#endif //XFLASH
	return LANG_CODE_XX;
    e2da:	8f e3       	ldi	r24, 0x3F	; 63
    e2dc:	9f e3       	ldi	r25, 0x3F	; 63
    e2de:	c7 cf       	rjmp	.-114    	; 0xe26e <lang_get_code+0x2c>

0000e2e0 <lang_get_count>:
	sum = (sum >> 8) | ((sum & 0xff) << 8); //swap bytes
	return (sum == lt_sum);
}

uint8_t lang_get_count()
{
    e2e0:	cf 92       	push	r12
    e2e2:	df 92       	push	r13
    e2e4:	ef 92       	push	r14
    e2e6:	ff 92       	push	r15
    e2e8:	1f 93       	push	r17
    e2ea:	cf 93       	push	r28
    e2ec:	df 93       	push	r29
    e2ee:	cd b7       	in	r28, 0x3d	; 61
    e2f0:	de b7       	in	r29, 0x3e	; 62
    e2f2:	60 97       	sbiw	r28, 0x10	; 16
    e2f4:	0f b6       	in	r0, 0x3f	; 63
    e2f6:	f8 94       	cli
    e2f8:	de bf       	out	0x3e, r29	; 62
    e2fa:	0f be       	out	0x3f, r0	; 63
    e2fc:	cd bf       	out	0x3d, r28	; 61
	if (pgm_read_dword(((uint32_t*)(_PRI_LANG_SIGNATURE))) == 0xffffffff)
    e2fe:	ee ef       	ldi	r30, 0xFE	; 254
    e300:	f8 e7       	ldi	r31, 0x78	; 120
    e302:	85 91       	lpm	r24, Z+
    e304:	95 91       	lpm	r25, Z+
    e306:	a5 91       	lpm	r26, Z+
    e308:	b4 91       	lpm	r27, Z
		return 1; //signature not set - only primary language will be available
    e30a:	11 e0       	ldi	r17, 0x01	; 1
	return (sum == lt_sum);
}

uint8_t lang_get_count()
{
	if (pgm_read_dword(((uint32_t*)(_PRI_LANG_SIGNATURE))) == 0xffffffff)
    e30c:	8f 3f       	cpi	r24, 0xFF	; 255
    e30e:	9f 4f       	sbci	r25, 0xFF	; 255
    e310:	af 4f       	sbci	r26, 0xFF	; 255
    e312:	bf 4f       	sbci	r27, 0xFF	; 255
    e314:	09 f1       	breq	.+66     	; 0xe358 <lang_get_count+0x78>
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
    e316:	8c e5       	ldi	r24, 0x5C	; 92
    e318:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
    e31a:	1d bc       	out	0x2d, r1	; 45
		return 1; //signature not set - only primary language will be available
#ifdef XFLASH
	XFLASH_SPI_ENTER();
	uint8_t count = 2; //count = 1+n (primary + secondary + all in xflash)
	uint32_t addr = LANG_OFFSET;
    e31c:	c1 2c       	mov	r12, r1
    e31e:	d1 2c       	mov	r13, r1
    e320:	76 01       	movw	r14, r12
{
	if (pgm_read_dword(((uint32_t*)(_PRI_LANG_SIGNATURE))) == 0xffffffff)
		return 1; //signature not set - only primary language will be available
#ifdef XFLASH
	XFLASH_SPI_ENTER();
	uint8_t count = 2; //count = 1+n (primary + secondary + all in xflash)
    e322:	12 e0       	ldi	r17, 0x02	; 2
	uint32_t addr = LANG_OFFSET;
	lang_table_header_t header; //table header structure
	while (1)
	{
		xflash_rd_data(addr, (uint8_t*)&header, sizeof(lang_table_header_t)); //read table header from xflash
    e324:	20 e1       	ldi	r18, 0x10	; 16
    e326:	30 e0       	ldi	r19, 0x00	; 0
    e328:	ae 01       	movw	r20, r28
    e32a:	4f 5f       	subi	r20, 0xFF	; 255
    e32c:	5f 4f       	sbci	r21, 0xFF	; 255
    e32e:	c7 01       	movw	r24, r14
    e330:	b6 01       	movw	r22, r12
    e332:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
		if (header.magic != LANG_MAGIC) break; //break if magic not valid
    e336:	89 81       	ldd	r24, Y+1	; 0x01
    e338:	9a 81       	ldd	r25, Y+2	; 0x02
    e33a:	ab 81       	ldd	r26, Y+3	; 0x03
    e33c:	bc 81       	ldd	r27, Y+4	; 0x04
    e33e:	85 3a       	cpi	r24, 0xA5	; 165
    e340:	9a 45       	sbci	r25, 0x5A	; 90
    e342:	a4 4b       	sbci	r26, 0xB4	; 180
    e344:	bb 44       	sbci	r27, 0x4B	; 75
    e346:	41 f4       	brne	.+16     	; 0xe358 <lang_get_count+0x78>
		addr += header.size; //calc address of next table
    e348:	8d 81       	ldd	r24, Y+5	; 0x05
    e34a:	9e 81       	ldd	r25, Y+6	; 0x06
    e34c:	c8 0e       	add	r12, r24
    e34e:	d9 1e       	adc	r13, r25
    e350:	e1 1c       	adc	r14, r1
    e352:	f1 1c       	adc	r15, r1
		count++; //inc counter
    e354:	1f 5f       	subi	r17, 0xFF	; 255
    e356:	e6 cf       	rjmp	.-52     	; 0xe324 <lang_get_count+0x44>
		table += pgm_read_word((uint16_t*)(table + 4));
		count++;
	}
#endif //XFLASH
	return count;
}
    e358:	81 2f       	mov	r24, r17
    e35a:	60 96       	adiw	r28, 0x10	; 16
    e35c:	0f b6       	in	r0, 0x3f	; 63
    e35e:	f8 94       	cli
    e360:	de bf       	out	0x3e, r29	; 62
    e362:	0f be       	out	0x3f, r0	; 63
    e364:	cd bf       	out	0x3d, r28	; 61
    e366:	df 91       	pop	r29
    e368:	cf 91       	pop	r28
    e36a:	1f 91       	pop	r17
    e36c:	ff 90       	pop	r15
    e36e:	ef 90       	pop	r14
    e370:	df 90       	pop	r13
    e372:	cf 90       	pop	r12
    e374:	08 95       	ret

0000e376 <lang_select>:
		return s + 2;//zero length string == not translated, return orig. str.
	return (const char*)((char*)lang_table + ui); //return calculated pointer
}

uint8_t lang_select(uint8_t lang)
{
    e376:	0f 93       	push	r16
    e378:	1f 93       	push	r17
    e37a:	cf 93       	push	r28
    e37c:	c8 2f       	mov	r28, r24
	if (lang == LANG_ID_PRI) //primary language
    e37e:	81 11       	cpse	r24, r1
    e380:	06 c0       	rjmp	.+12     	; 0xe38e <lang_select+0x18>
	{
		lang_table = 0;
    e382:	10 92 59 03 	sts	0x0359, r1	; 0x800359 <lang_table+0x1>
    e386:	10 92 58 03 	sts	0x0358, r1	; 0x800358 <lang_table>
		lang_selected = lang;
    e38a:	10 92 5a 03 	sts	0x035A, r1	; 0x80035a <lang_selected>
	}
#ifdef XFLASH
	if (lang_get_code(lang) == lang_get_code(LANG_ID_SEC)) lang = LANG_ID_SEC;
    e38e:	8c 2f       	mov	r24, r28
    e390:	0e 94 21 71 	call	0xe242	; 0xe242 <lang_get_code>
    e394:	8c 01       	movw	r16, r24
    e396:	0e 94 91 70 	call	0xe122	; 0xe122 <lang_get_code.part.3>
    e39a:	08 17       	cp	r16, r24
    e39c:	19 07       	cpc	r17, r25
    e39e:	19 f0       	breq	.+6      	; 0xe3a6 <lang_select+0x30>
	if (lang == LANG_ID_SEC) //current secondary language
    e3a0:	c1 30       	cpi	r28, 0x01	; 1
    e3a2:	09 f0       	breq	.+2      	; 0xe3a6 <lang_select+0x30>
    e3a4:	3e c0       	rjmp	.+124    	; 0xe422 <lang_select+0xac>
	{
		if (pgm_read_dword(((uint32_t*)_SEC_LANG_TABLE)) == LANG_MAGIC) //magic valid
    e3a6:	e0 e0       	ldi	r30, 0x00	; 0
    e3a8:	f1 e0       	ldi	r31, 0x01	; 1
    e3aa:	85 91       	lpm	r24, Z+
    e3ac:	95 91       	lpm	r25, Z+
    e3ae:	a5 91       	lpm	r26, Z+
    e3b0:	b4 91       	lpm	r27, Z
    e3b2:	85 3a       	cpi	r24, 0xA5	; 165
    e3b4:	9a 45       	sbci	r25, 0x5A	; 90
    e3b6:	a4 4b       	sbci	r26, 0xB4	; 180
    e3b8:	bb 44       	sbci	r27, 0x4B	; 75
    e3ba:	09 f0       	breq	.+2      	; 0xe3be <lang_select+0x48>
    e3bc:	31 c0       	rjmp	.+98     	; 0xe420 <lang_select+0xaa>
}

uint8_t lang_check(uint16_t addr)
{
	uint16_t sum = 0;
	uint16_t size = pgm_read_word((uint16_t*)(addr + 4));
    e3be:	e4 e0       	ldi	r30, 0x04	; 4
    e3c0:	f1 e0       	ldi	r31, 0x01	; 1
    e3c2:	65 91       	lpm	r22, Z+
    e3c4:	74 91       	lpm	r23, Z
	uint16_t lt_sum = pgm_read_word((uint16_t*)(addr + 8));
    e3c6:	e8 e0       	ldi	r30, 0x08	; 8
    e3c8:	f1 e0       	ldi	r31, 0x01	; 1
    e3ca:	45 91       	lpm	r20, Z+
    e3cc:	54 91       	lpm	r21, Z
	uint16_t i; for (i = 0; i < size; i++)
    e3ce:	30 e0       	ldi	r19, 0x00	; 0
    e3d0:	20 e0       	ldi	r18, 0x00	; 0
	return 0;
}

uint8_t lang_check(uint16_t addr)
{
	uint16_t sum = 0;
    e3d2:	90 e0       	ldi	r25, 0x00	; 0
    e3d4:	80 e0       	ldi	r24, 0x00	; 0
	uint16_t size = pgm_read_word((uint16_t*)(addr + 4));
	uint16_t lt_sum = pgm_read_word((uint16_t*)(addr + 8));
	uint16_t i; for (i = 0; i < size; i++)
    e3d6:	62 17       	cp	r22, r18
    e3d8:	73 07       	cpc	r23, r19
    e3da:	89 f5       	brne	.+98     	; 0xe43e <lang_select+0xc8>
		sum += (uint16_t)pgm_read_byte((uint8_t*)(addr + i)) << ((i & 1)?0:8);
	sum -= lt_sum; //subtract checksum
    e3dc:	84 1b       	sub	r24, r20
    e3de:	95 0b       	sbc	r25, r21
	sum = (sum >> 8) | ((sum & 0xff) << 8); //swap bytes
    e3e0:	98 27       	eor	r25, r24
    e3e2:	89 27       	eor	r24, r25
    e3e4:	98 27       	eor	r25, r24
	if (lang_get_code(lang) == lang_get_code(LANG_ID_SEC)) lang = LANG_ID_SEC;
	if (lang == LANG_ID_SEC) //current secondary language
	{
		if (pgm_read_dword(((uint32_t*)_SEC_LANG_TABLE)) == LANG_MAGIC) //magic valid
		{
			if (lang_check(_SEC_LANG_TABLE))
    e3e6:	48 17       	cp	r20, r24
    e3e8:	59 07       	cpc	r21, r25
    e3ea:	d1 f4       	brne	.+52     	; 0xe420 <lang_select+0xaa>
				if (pgm_read_dword(((uint32_t*)(_SEC_LANG_TABLE + 12))) == pgm_read_dword(((uint32_t*)(_PRI_LANG_SIGNATURE)))) //signature valid
    e3ec:	ec e0       	ldi	r30, 0x0C	; 12
    e3ee:	f1 e0       	ldi	r31, 0x01	; 1
    e3f0:	45 91       	lpm	r20, Z+
    e3f2:	55 91       	lpm	r21, Z+
    e3f4:	65 91       	lpm	r22, Z+
    e3f6:	74 91       	lpm	r23, Z
    e3f8:	ee ef       	ldi	r30, 0xFE	; 254
    e3fa:	f8 e7       	ldi	r31, 0x78	; 120
    e3fc:	85 91       	lpm	r24, Z+
    e3fe:	95 91       	lpm	r25, Z+
    e400:	a5 91       	lpm	r26, Z+
    e402:	b4 91       	lpm	r27, Z
    e404:	48 17       	cp	r20, r24
    e406:	59 07       	cpc	r21, r25
    e408:	6a 07       	cpc	r22, r26
    e40a:	7b 07       	cpc	r23, r27
    e40c:	49 f4       	brne	.+18     	; 0xe420 <lang_select+0xaa>
				{
					lang_table = (lang_table_t*)(_SEC_LANG_TABLE); // set table pointer
    e40e:	80 e0       	ldi	r24, 0x00	; 0
    e410:	91 e0       	ldi	r25, 0x01	; 1
    e412:	90 93 59 03 	sts	0x0359, r25	; 0x800359 <lang_table+0x1>
    e416:	80 93 58 03 	sts	0x0358, r24	; 0x800358 <lang_table>
					lang_selected = lang; // set language id
    e41a:	81 e0       	ldi	r24, 0x01	; 1
    e41c:	80 93 5a 03 	sts	0x035A, r24	; 0x80035a <lang_selected>
	if (lang == LANG_ID_SEC) //current secondary language
	{
		if (pgm_read_dword(((uint32_t*)_SEC_LANG_TABLE)) == LANG_MAGIC) //magic valid
		{
			if (lang_check(_SEC_LANG_TABLE))
				if (pgm_read_dword(((uint32_t*)(_SEC_LANG_TABLE + 12))) == pgm_read_dword(((uint32_t*)(_PRI_LANG_SIGNATURE)))) //signature valid
    e420:	c1 e0       	ldi	r28, 0x01	; 1
					lang_selected = lang; // set language id
				}
		}
	}
#endif //XFLASH
	if (lang_selected == lang)
    e422:	80 91 5a 03 	lds	r24, 0x035A	; 0x80035a <lang_selected>
    e426:	8c 13       	cpse	r24, r28
    e428:	1c c0       	rjmp	.+56     	; 0xe462 <lang_select+0xec>
	{
		eeprom_update_byte((unsigned char*)EEPROM_LANG, lang_selected);
    e42a:	6c 2f       	mov	r22, r28
    e42c:	8e ef       	ldi	r24, 0xFE	; 254
    e42e:	9f e0       	ldi	r25, 0x0F	; 15
    e430:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
		return 1;
    e434:	81 e0       	ldi	r24, 0x01	; 1
	}
	return 0;
}
    e436:	cf 91       	pop	r28
    e438:	1f 91       	pop	r17
    e43a:	0f 91       	pop	r16
    e43c:	08 95       	ret
{
	uint16_t sum = 0;
	uint16_t size = pgm_read_word((uint16_t*)(addr + 4));
	uint16_t lt_sum = pgm_read_word((uint16_t*)(addr + 8));
	uint16_t i; for (i = 0; i < size; i++)
		sum += (uint16_t)pgm_read_byte((uint8_t*)(addr + i)) << ((i & 1)?0:8);
    e43e:	f9 01       	movw	r30, r18
    e440:	e0 50       	subi	r30, 0x00	; 0
    e442:	ff 4f       	sbci	r31, 0xFF	; 255
    e444:	e4 91       	lpm	r30, Z
    e446:	f0 e0       	ldi	r31, 0x00	; 0
    e448:	a8 e0       	ldi	r26, 0x08	; 8
    e44a:	20 fd       	sbrc	r18, 0
    e44c:	a0 e0       	ldi	r26, 0x00	; 0
    e44e:	02 c0       	rjmp	.+4      	; 0xe454 <lang_select+0xde>
    e450:	ee 0f       	add	r30, r30
    e452:	ff 1f       	adc	r31, r31
    e454:	aa 95       	dec	r26
    e456:	e2 f7       	brpl	.-8      	; 0xe450 <lang_select+0xda>
    e458:	8e 0f       	add	r24, r30
    e45a:	9f 1f       	adc	r25, r31
uint8_t lang_check(uint16_t addr)
{
	uint16_t sum = 0;
	uint16_t size = pgm_read_word((uint16_t*)(addr + 4));
	uint16_t lt_sum = pgm_read_word((uint16_t*)(addr + 8));
	uint16_t i; for (i = 0; i < size; i++)
    e45c:	2f 5f       	subi	r18, 0xFF	; 255
    e45e:	3f 4f       	sbci	r19, 0xFF	; 255
    e460:	ba cf       	rjmp	.-140    	; 0xe3d6 <lang_select+0x60>
	if (lang_selected == lang)
	{
		eeprom_update_byte((unsigned char*)EEPROM_LANG, lang_selected);
		return 1;
	}
	return 0;
    e462:	80 e0       	ldi	r24, 0x00	; 0
    e464:	e8 cf       	rjmp	.-48     	; 0xe436 <lang_select+0xc0>

0000e466 <lang_get_translation>:
//lang_table pointer
lang_table_t* lang_table = 0;

const char* lang_get_translation(const char* s)
{
	if (lang_selected == 0) return s + 2; //primary language selected, return orig. str.
    e466:	20 91 5a 03 	lds	r18, 0x035A	; 0x80035a <lang_selected>
    e46a:	21 11       	cpse	r18, r1
    e46c:	04 c0       	rjmp	.+8      	; 0xe476 <lang_get_translation+0x10>
    e46e:	fc 01       	movw	r30, r24
    e470:	32 96       	adiw	r30, 0x02	; 2
	if (ui == 0xffff) return s + 2; //id not assigned, return orig. str.
	ui = pgm_read_word(((uint16_t*)(((char*)lang_table + 16 + ui*2)))); //read relative offset
	if (pgm_read_byte(((uint8_t*)((char*)lang_table + ui))) == 0) //read first character
		return s + 2;//zero length string == not translated, return orig. str.
	return (const char*)((char*)lang_table + ui); //return calculated pointer
}
    e472:	cf 01       	movw	r24, r30
    e474:	08 95       	ret
lang_table_t* lang_table = 0;

const char* lang_get_translation(const char* s)
{
	if (lang_selected == 0) return s + 2; //primary language selected, return orig. str.
	if (lang_table == 0) return s + 2; //sec. lang table not found, return orig. str.
    e476:	40 91 58 03 	lds	r20, 0x0358	; 0x800358 <lang_table>
    e47a:	50 91 59 03 	lds	r21, 0x0359	; 0x800359 <lang_table+0x1>
    e47e:	41 15       	cp	r20, r1
    e480:	51 05       	cpc	r21, r1
    e482:	a9 f3       	breq	.-22     	; 0xe46e <lang_get_translation+0x8>
	uint16_t ui = pgm_read_word(((uint16_t*)s)); //read string id
    e484:	fc 01       	movw	r30, r24
    e486:	25 91       	lpm	r18, Z+
    e488:	34 91       	lpm	r19, Z
	if (ui == 0xffff) return s + 2; //id not assigned, return orig. str.
    e48a:	2f 3f       	cpi	r18, 0xFF	; 255
    e48c:	32 07       	cpc	r19, r18
    e48e:	79 f3       	breq	.-34     	; 0xe46e <lang_get_translation+0x8>
	ui = pgm_read_word(((uint16_t*)(((char*)lang_table + 16 + ui*2)))); //read relative offset
    e490:	f9 01       	movw	r30, r18
    e492:	38 96       	adiw	r30, 0x08	; 8
    e494:	ee 0f       	add	r30, r30
    e496:	ff 1f       	adc	r31, r31
    e498:	e4 0f       	add	r30, r20
    e49a:	f5 1f       	adc	r31, r21
    e49c:	25 91       	lpm	r18, Z+
    e49e:	34 91       	lpm	r19, Z
	if (pgm_read_byte(((uint8_t*)((char*)lang_table + ui))) == 0) //read first character
    e4a0:	fa 01       	movw	r30, r20
    e4a2:	e2 0f       	add	r30, r18
    e4a4:	f3 1f       	adc	r31, r19
    e4a6:	24 91       	lpm	r18, Z
    e4a8:	22 23       	and	r18, r18
    e4aa:	09 f3       	breq	.-62     	; 0xe46e <lang_get_translation+0x8>
    e4ac:	e2 cf       	rjmp	.-60     	; 0xe472 <lang_get_translation+0xc>

0000e4ae <M600_load_filament_movements(char const*)>:
		}
		sound_wait_for_user_reset();
}

void M600_load_filament_movements(const char* filament_name)
{
    e4ae:	cf 93       	push	r28
    e4b0:	df 93       	push	r29
    e4b2:	ec 01       	movw	r28, r24
	current_position[E_AXIS]+= FILAMENTCHANGE_FIRSTFEED;
    e4b4:	20 e0       	ldi	r18, 0x00	; 0
    e4b6:	30 e0       	ldi	r19, 0x00	; 0
    e4b8:	4c e8       	ldi	r20, 0x8C	; 140
    e4ba:	52 e4       	ldi	r21, 0x42	; 66
    e4bc:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
    e4c0:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
    e4c4:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
    e4c8:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
    e4cc:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    e4d0:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
    e4d4:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
    e4d8:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
    e4dc:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
	plan_buffer_line_curposXYZE(FILAMENTCHANGE_EFEED_FIRST);
    e4e0:	60 e0       	ldi	r22, 0x00	; 0
    e4e2:	70 e0       	ldi	r23, 0x00	; 0
    e4e4:	80 ea       	ldi	r24, 0xA0	; 160
    e4e6:	91 e4       	ldi	r25, 0x41	; 65
    e4e8:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	load_filament_final_feed();
    e4ec:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>
}


void lcd_loading_filament(const char* filament_name) {

  lcd_clear();
    e4f0:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

  lcd_puts_at_P(0, 0, _T(MSG_LOADING_FILAMENT));
    e4f4:	85 e7       	ldi	r24, 0x75	; 117
    e4f6:	9b e5       	ldi	r25, 0x5B	; 91
    e4f8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    e4fc:	ac 01       	movw	r20, r24
    e4fe:	60 e0       	ldi	r22, 0x00	; 0
    e500:	80 e0       	ldi	r24, 0x00	; 0
    e502:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  if (filament_name[0]) {
    e506:	88 81       	ld	r24, Y
    e508:	88 23       	and	r24, r24
    e50a:	39 f0       	breq	.+14     	; 0xe51a <M600_load_filament_movements(char const*)+0x6c>
      lcd_set_cursor(0, 1);
    e50c:	61 e0       	ldi	r22, 0x01	; 1
    e50e:	80 e0       	ldi	r24, 0x00	; 0
    e510:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
      lcd_print(filament_name);
    e514:	ce 01       	movw	r24, r28
    e516:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
  }
  lcd_puts_at_P(0, 2, _T(MSG_PLEASE_WAIT));
    e51a:	89 e9       	ldi	r24, 0x99	; 153
    e51c:	99 e3       	ldi	r25, 0x39	; 57
    e51e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    e522:	ac 01       	movw	r20, r24
    e524:	62 e0       	ldi	r22, 0x02	; 2
    e526:	80 e0       	ldi	r24, 0x00	; 0
    e528:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  uint16_t slow_seq_time = (FILAMENTCHANGE_FINALFEED * 1000ul) / FILAMENTCHANGE_EFEED_FINAL;
  uint16_t fast_seq_time = (FILAMENTCHANGE_FIRSTFEED * 1000ul) / FILAMENTCHANGE_EFEED_FIRST;
  lcd_loading_progress_bar(slow_seq_time + fast_seq_time); //show progress bar for total time of filament loading fast + slow sequence
    e52c:	83 e4       	ldi	r24, 0x43	; 67
    e52e:	9b e2       	ldi	r25, 0x2B	; 43
    e530:	0f 94 7b 21 	call	0x242f6	; 0x242f6 <lcd_loading_progress_bar(unsigned int) [clone .lto_priv.560]>
	lcd_loading_filament(filament_name);
	st_synchronize();
}
    e534:	df 91       	pop	r29
    e536:	cf 91       	pop	r28
{
	current_position[E_AXIS]+= FILAMENTCHANGE_FIRSTFEED;
	plan_buffer_line_curposXYZE(FILAMENTCHANGE_EFEED_FIRST);
	load_filament_final_feed();
	lcd_loading_filament(filament_name);
	st_synchronize();
    e538:	0d 94 f4 43 	jmp	0x287e8	; 0x287e8 <st_synchronize()>

0000e53c <mmu_M600_unload_filament()>:
 * A fullscreen message showing "Unloading Filament x"
 * should be shown on the LCD and LCD updates should be
 * are disabled in the meantime.
 */
static void mmu_M600_unload_filament() {
    if (MMU2::mmu2.get_current_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN) return;
    e53c:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
    e540:	8f 3f       	cpi	r24, 0xFF	; 255
    e542:	11 f1       	breq	.+68     	; 0xe588 <mmu_M600_unload_filament()+0x4c>

    lcd_update_enable(false);
    e544:	80 e0       	ldi	r24, 0x00	; 0
    e546:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
    lcd_clear();
    e54a:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    lcd_puts_at_P(0, 1, _T(MSG_UNLOADING_FILAMENT));
    e54e:	8c e3       	ldi	r24, 0x3C	; 60
    e550:	92 e5       	ldi	r25, 0x52	; 82
    e552:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    e556:	ac 01       	movw	r20, r24
    e558:	61 e0       	ldi	r22, 0x01	; 1
    e55a:	80 e0       	ldi	r24, 0x00	; 0
    e55c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
    e560:	80 e2       	ldi	r24, 0x20	; 32
    e562:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
    lcd_print(' ');
    lcd_print(MMU2::mmu2.get_current_tool() + 1);
    e566:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
    e56a:	68 2f       	mov	r22, r24
    e56c:	70 e0       	ldi	r23, 0x00	; 0
    e56e:	6f 5f       	subi	r22, 0xFF	; 255
    e570:	7f 4f       	sbci	r23, 0xFF	; 255
	lcd_print((unsigned long) b, base);
}

void lcd_print(int n, int base)
{
	lcd_print((long) n, base);
    e572:	07 2e       	mov	r0, r23
    e574:	00 0c       	add	r0, r0
    e576:	88 0b       	sbc	r24, r24
    e578:	99 0b       	sbc	r25, r25
    e57a:	0e 94 20 70 	call	0xe040	; 0xe040 <lcd_print(long, int) [clone .part.3]>

    // unload just current filament for multimaterial printers (used also in M702)
    MMU2::mmu2.unload();
    e57e:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
    lcd_update_enable(true);
    e582:	81 e0       	ldi	r24, 0x01	; 1
    e584:	0c 94 ac 6e 	jmp	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
}
    e588:	08 95       	ret

0000e58a <calibrate_z_auto()>:
}


#ifdef TMC2130
bool calibrate_z_auto()
{
    e58a:	4f 92       	push	r4
    e58c:	5f 92       	push	r5
    e58e:	6f 92       	push	r6
    e590:	7f 92       	push	r7
    e592:	8f 92       	push	r8
    e594:	9f 92       	push	r9
    e596:	af 92       	push	r10
    e598:	bf 92       	push	r11
    e59a:	ef 92       	push	r14
    e59c:	ff 92       	push	r15
    e59e:	0f 93       	push	r16
    e5a0:	1f 93       	push	r17
    e5a2:	cf 93       	push	r28
    e5a4:	df 93       	push	r29
	//lcd_display_message_fullscreen_P(_T(MSG_CALIBRATE_Z_AUTO));
	lcd_clear();
    e5a6:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	lcd_puts_at_P(0, 1, _T(MSG_CALIBRATE_Z_AUTO));
    e5aa:	82 e3       	ldi	r24, 0x32	; 50
    e5ac:	9d e4       	ldi	r25, 0x4D	; 77
    e5ae:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    e5b2:	ac 01       	movw	r20, r24
    e5b4:	61 e0       	ldi	r22, 0x01	; 1
    e5b6:	80 e0       	ldi	r24, 0x00	; 0
    e5b8:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
    e5bc:	d0 91 b7 02 	lds	r29, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
  check_endstops = check;
    e5c0:	81 e0       	ldi	r24, 0x01	; 1
    e5c2:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
DEFINE_PGM_READ_ANY(signed char, byte);
    e5c6:	ec e8       	ldi	r30, 0x8C	; 140
    e5c8:	fb e7       	ldi	r31, 0x7B	; 123
    e5ca:	c4 91       	lpm	r28, Z
	//lcd_display_message_fullscreen_P(_T(MSG_CALIBRATE_Z_AUTO));
	lcd_clear();
	lcd_puts_at_P(0, 1, _T(MSG_CALIBRATE_Z_AUTO));
	bool endstops_enabled = enable_endstops(true);
	int axis_up_dir = -home_dir(Z_AXIS);
	tmc2130_home_enter(Z_AXIS_MASK);
    e5cc:	84 e0       	ldi	r24, 0x04	; 4
    e5ce:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>
	current_position[Z_AXIS] = 0;
    e5d2:	82 e9       	ldi	r24, 0x92	; 146
    e5d4:	e8 2e       	mov	r14, r24
    e5d6:	86 e0       	ldi	r24, 0x06	; 6
    e5d8:	f8 2e       	mov	r15, r24
    e5da:	f7 01       	movw	r30, r14
    e5dc:	10 86       	std	Z+8, r1	; 0x08
    e5de:	11 86       	std	Z+9, r1	; 0x09
    e5e0:	12 86       	std	Z+10, r1	; 0x0a
    e5e2:	13 86       	std	Z+11, r1	; 0x0b
	plan_set_position_curposXYZE();
    e5e4:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
	set_destination_to_current();
    e5e8:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    e5ec:	e6 e8       	ldi	r30, 0x86	; 134
    e5ee:	fb e7       	ldi	r31, 0x7B	; 123
    e5f0:	85 90       	lpm	r8, Z+
    e5f2:	95 90       	lpm	r9, Z+
    e5f4:	a5 90       	lpm	r10, Z+
    e5f6:	b4 90       	lpm	r11, Z
	int axis_up_dir = -home_dir(Z_AXIS);
	tmc2130_home_enter(Z_AXIS_MASK);
	current_position[Z_AXIS] = 0;
	plan_set_position_curposXYZE();
	set_destination_to_current();
	destination[Z_AXIS] += (1.1 * max_length(Z_AXIS) * axis_up_dir);
    e5f8:	04 e7       	ldi	r16, 0x74	; 116
    e5fa:	16 e0       	ldi	r17, 0x06	; 6
{
	//lcd_display_message_fullscreen_P(_T(MSG_CALIBRATE_Z_AUTO));
	lcd_clear();
	lcd_puts_at_P(0, 1, _T(MSG_CALIBRATE_Z_AUTO));
	bool endstops_enabled = enable_endstops(true);
	int axis_up_dir = -home_dir(Z_AXIS);
    e5fc:	8c 2f       	mov	r24, r28
    e5fe:	99 27       	eor	r25, r25
    e600:	81 95       	neg	r24
    e602:	0c f4       	brge	.+2      	; 0xe606 <calibrate_z_auto()+0x7c>
    e604:	90 95       	com	r25
    e606:	bc 01       	movw	r22, r24
	tmc2130_home_enter(Z_AXIS_MASK);
	current_position[Z_AXIS] = 0;
	plan_set_position_curposXYZE();
	set_destination_to_current();
	destination[Z_AXIS] += (1.1 * max_length(Z_AXIS) * axis_up_dir);
    e608:	07 2e       	mov	r0, r23
    e60a:	00 0c       	add	r0, r0
    e60c:	88 0b       	sbc	r24, r24
    e60e:	99 0b       	sbc	r25, r25
    e610:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    e614:	2b 01       	movw	r4, r22
    e616:	3c 01       	movw	r6, r24
    e618:	2d ec       	ldi	r18, 0xCD	; 205
    e61a:	3c ec       	ldi	r19, 0xCC	; 204
    e61c:	4c e8       	ldi	r20, 0x8C	; 140
    e61e:	5f e3       	ldi	r21, 0x3F	; 63
    e620:	c5 01       	movw	r24, r10
    e622:	b4 01       	movw	r22, r8
    e624:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    e628:	9b 01       	movw	r18, r22
    e62a:	ac 01       	movw	r20, r24
    e62c:	c3 01       	movw	r24, r6
    e62e:	b2 01       	movw	r22, r4
    e630:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    e634:	f8 01       	movw	r30, r16
    e636:	20 85       	ldd	r18, Z+8	; 0x08
    e638:	31 85       	ldd	r19, Z+9	; 0x09
    e63a:	42 85       	ldd	r20, Z+10	; 0x0a
    e63c:	53 85       	ldd	r21, Z+11	; 0x0b
    e63e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    e642:	f8 01       	movw	r30, r16
    e644:	60 87       	std	Z+8, r22	; 0x08
    e646:	71 87       	std	Z+9, r23	; 0x09
    e648:	82 87       	std	Z+10, r24	; 0x0a
    e64a:	93 87       	std	Z+11, r25	; 0x0b
	feedrate = homing_feedrate[Z_AXIS];
    e64c:	80 e0       	ldi	r24, 0x00	; 0
    e64e:	90 e0       	ldi	r25, 0x00	; 0
    e650:	a8 e4       	ldi	r26, 0x48	; 72
    e652:	b4 e4       	ldi	r27, 0x44	; 68
    e654:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    e658:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    e65c:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    e660:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
	plan_buffer_line_destinationXYZE(feedrate / 60);
    e664:	65 e5       	ldi	r22, 0x55	; 85
    e666:	75 e5       	ldi	r23, 0x55	; 85
    e668:	85 e5       	ldi	r24, 0x55	; 85
    e66a:	91 e4       	ldi	r25, 0x41	; 65
    e66c:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
	st_synchronize();
    e670:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	//	current_position[axis] = 0;
	//	plan_set_position_curposXYZE();
	tmc2130_home_exit();
    e674:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
    e678:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	enable_endstops(false);
	current_position[Z_AXIS] = 0;
    e67c:	f7 01       	movw	r30, r14
    e67e:	10 86       	std	Z+8, r1	; 0x08
    e680:	11 86       	std	Z+9, r1	; 0x09
    e682:	12 86       	std	Z+10, r1	; 0x0a
    e684:	13 86       	std	Z+11, r1	; 0x0b
	plan_set_position_curposXYZE();
    e686:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
	set_destination_to_current();
    e68a:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
	destination[Z_AXIS] += 10 * axis_up_dir; //10mm up
    e68e:	f6 ef       	ldi	r31, 0xF6	; 246
    e690:	cf 02       	muls	r28, r31
    e692:	b0 01       	movw	r22, r0
    e694:	11 24       	eor	r1, r1
    e696:	07 2e       	mov	r0, r23
    e698:	00 0c       	add	r0, r0
    e69a:	88 0b       	sbc	r24, r24
    e69c:	99 0b       	sbc	r25, r25
    e69e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    e6a2:	9b 01       	movw	r18, r22
    e6a4:	ac 01       	movw	r20, r24
    e6a6:	f8 01       	movw	r30, r16
    e6a8:	60 85       	ldd	r22, Z+8	; 0x08
    e6aa:	71 85       	ldd	r23, Z+9	; 0x09
    e6ac:	82 85       	ldd	r24, Z+10	; 0x0a
    e6ae:	93 85       	ldd	r25, Z+11	; 0x0b
    e6b0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    e6b4:	f8 01       	movw	r30, r16
    e6b6:	60 87       	std	Z+8, r22	; 0x08
    e6b8:	71 87       	std	Z+9, r23	; 0x09
    e6ba:	82 87       	std	Z+10, r24	; 0x0a
    e6bc:	93 87       	std	Z+11, r25	; 0x0b
	feedrate = homing_feedrate[Z_AXIS] / 2;
    e6be:	80 e0       	ldi	r24, 0x00	; 0
    e6c0:	90 e0       	ldi	r25, 0x00	; 0
    e6c2:	a8 ec       	ldi	r26, 0xC8	; 200
    e6c4:	b3 e4       	ldi	r27, 0x43	; 67
    e6c6:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    e6ca:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    e6ce:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    e6d2:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
	plan_buffer_line_destinationXYZE(feedrate / 60);
    e6d6:	65 e5       	ldi	r22, 0x55	; 85
    e6d8:	75 e5       	ldi	r23, 0x55	; 85
    e6da:	85 ed       	ldi	r24, 0xD5	; 213
    e6dc:	90 e4       	ldi	r25, 0x40	; 64
    e6de:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
	st_synchronize();
    e6e2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    e6e6:	d0 93 b7 02 	sts	0x02B7, r29	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	enable_endstops(endstops_enabled);
	current_position[Z_AXIS] = Z_MAX_POS + Z_MAX_POS_XYZ_CALIBRATION_CORRECTION;
    e6ea:	80 e0       	ldi	r24, 0x00	; 0
    e6ec:	90 e0       	ldi	r25, 0x00	; 0
    e6ee:	a4 e5       	ldi	r26, 0x54	; 84
    e6f0:	b3 e4       	ldi	r27, 0x43	; 67
    e6f2:	f7 01       	movw	r30, r14
    e6f4:	80 87       	std	Z+8, r24	; 0x08
    e6f6:	91 87       	std	Z+9, r25	; 0x09
    e6f8:	a2 87       	std	Z+10, r26	; 0x0a
    e6fa:	b3 87       	std	Z+11, r27	; 0x0b
	plan_set_position_curposXYZE();
    e6fc:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
	return true;
}
    e700:	81 e0       	ldi	r24, 0x01	; 1
    e702:	df 91       	pop	r29
    e704:	cf 91       	pop	r28
    e706:	1f 91       	pop	r17
    e708:	0f 91       	pop	r16
    e70a:	ff 90       	pop	r15
    e70c:	ef 90       	pop	r14
    e70e:	bf 90       	pop	r11
    e710:	af 90       	pop	r10
    e712:	9f 90       	pop	r9
    e714:	8f 90       	pop	r8
    e716:	7f 90       	pop	r7
    e718:	6f 90       	pop	r6
    e71a:	5f 90       	pop	r5
    e71c:	4f 90       	pop	r4
    e71e:	08 95       	ret

0000e720 <crashdet_fmt_error(char*, unsigned char)>:
  restore_print_from_ram_and_continue(default_retraction); //XYZ = orig, E +1mm unretract
//babystep_apply();
}

void crashdet_fmt_error(char* buf, uint8_t mask)
{
    e720:	cf 93       	push	r28
    e722:	df 93       	push	r29
    e724:	ec 01       	movw	r28, r24
    if(mask & X_AXIS_MASK) *buf++ = axis_codes[X_AXIS];
    e726:	60 ff       	sbrs	r22, 0
    e728:	03 c0       	rjmp	.+6      	; 0xe730 <crashdet_fmt_error(char*, unsigned char)+0x10>
    e72a:	28 e5       	ldi	r18, 0x58	; 88
    e72c:	28 83       	st	Y, r18
    e72e:	21 96       	adiw	r28, 0x01	; 1
    if(mask & Y_AXIS_MASK) *buf++ = axis_codes[Y_AXIS];
    e730:	61 ff       	sbrs	r22, 1
    e732:	03 c0       	rjmp	.+6      	; 0xe73a <crashdet_fmt_error(char*, unsigned char)+0x1a>
    e734:	29 e5       	ldi	r18, 0x59	; 89
    e736:	28 83       	st	Y, r18
    e738:	21 96       	adiw	r28, 0x01	; 1
    *buf++ = ' ';
    e73a:	80 e2       	ldi	r24, 0x20	; 32
    e73c:	89 93       	st	Y+, r24
    strcpy_P(buf, _T(MSG_CRASH_DETECTED));
    e73e:	80 e0       	ldi	r24, 0x00	; 0
    e740:	96 e3       	ldi	r25, 0x36	; 54
    e742:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    e746:	bc 01       	movw	r22, r24
    e748:	ce 01       	movw	r24, r28
}
    e74a:	df 91       	pop	r29
    e74c:	cf 91       	pop	r28
void crashdet_fmt_error(char* buf, uint8_t mask)
{
    if(mask & X_AXIS_MASK) *buf++ = axis_codes[X_AXIS];
    if(mask & Y_AXIS_MASK) *buf++ = axis_codes[Y_AXIS];
    *buf++ = ' ';
    strcpy_P(buf, _T(MSG_CRASH_DETECTED));
    e74e:	0d 94 12 da 	jmp	0x3b424	; 0x3b424 <strcpy_P>

0000e752 <__vector_23>:
/// that may further reduce the CPU cycles required by the bed heating automaton
/// Due to the nature of bed heating the reduced PID precision may not be a major issue, however doing 8x less ISR(timer0_ovf) may significantly improve the performance
static const uint8_t slowInc = 1;

ISR(TIMER0_OVF_vect)          // timer compare interrupt service routine
{
    e752:	1f 92       	push	r1
    e754:	0f 92       	push	r0
    e756:	0f b6       	in	r0, 0x3f	; 63
    e758:	0f 92       	push	r0
    e75a:	11 24       	eor	r1, r1
    e75c:	0b b6       	in	r0, 0x3b	; 59
    e75e:	0f 92       	push	r0
    e760:	2f 93       	push	r18
    e762:	8f 93       	push	r24
    e764:	9f 93       	push	r25
    e766:	ef 93       	push	r30
    e768:	ff 93       	push	r31
	switch(state){
    e76a:	e0 91 53 03 	lds	r30, 0x0353	; 0x800353 <state>
    e76e:	e8 30       	cpi	r30, 0x08	; 8
    e770:	e8 f4       	brcc	.+58     	; 0xe7ac <__vector_23+0x5a>
    e772:	f0 e0       	ldi	r31, 0x00	; 0
    e774:	88 27       	eor	r24, r24
    e776:	e0 54       	subi	r30, 0x40	; 64
    e778:	fc 48       	sbci	r31, 0x8C	; 140
    e77a:	8f 4f       	sbci	r24, 0xFF	; 255
    e77c:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
    e780:	c8 73       	andi	r28, 0x38	; 56
    e782:	e2 73       	andi	r30, 0x32	; 50
    e784:	ed 73       	andi	r30, 0x3D	; 61
    e786:	fb 73       	andi	r31, 0x3B	; 59
    e788:	11 74       	andi	r17, 0x41	; 65
    e78a:	1a 74       	andi	r17, 0x4A	; 74
    e78c:	3d 74       	andi	r19, 0x4D	; 77
    e78e:	4f 74       	andi	r20, 0x4F	; 79
	case States::ZERO_START:
		if (bedPWMDisabled) return; // stay in the OFF state and do not change the output pin
    e790:	80 91 8d 06 	lds	r24, 0x068D	; 0x80068d <bedPWMDisabled>
    e794:	81 11       	cpse	r24, r1
    e796:	0a c0       	rjmp	.+20     	; 0xe7ac <__vector_23+0x5a>
		pwm = soft_pwm_bed << 1;// expecting soft_pwm_bed to be 7bit!
    e798:	80 91 1d 06 	lds	r24, 0x061D	; 0x80061d <soft_pwm_bed>
    e79c:	88 0f       	add	r24, r24
    e79e:	80 93 52 03 	sts	0x0352, r24	; 0x800352 <pwm>
		if( pwm != 0 ){
    e7a2:	88 23       	and	r24, r24
    e7a4:	19 f0       	breq	.+6      	; 0xe7ac <__vector_23+0x5a>
			state = States::ZERO;     // do nothing, let it tick once again after the 30Hz period
    e7a6:	81 e0       	ldi	r24, 0x01	; 1
		// In any case update our cache of pwm value for the next whole cycle from soft_pwm_bed
		slowCounter += slowInc; // this does software timer_clk/256 or less (depends on slowInc)
		if( slowCounter > pwm ){
			return;
		} // otherwise moving towards RISE
		state = States::ZERO_TO_RISE; // and finalize the change in a transitional state RISE0
    e7a8:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
		TCNT0 = 128;
		OCR0B = 255;
		TCCR0B = (1 << CS01); // change prescaler to 8, i.e. 7.8kHz
		break;
    }
}
    e7ac:	ff 91       	pop	r31
    e7ae:	ef 91       	pop	r30
    e7b0:	9f 91       	pop	r25
    e7b2:	8f 91       	pop	r24
    e7b4:	2f 91       	pop	r18
    e7b6:	0f 90       	pop	r0
    e7b8:	0b be       	out	0x3b, r0	; 59
    e7ba:	0f 90       	pop	r0
    e7bc:	0f be       	out	0x3f, r0	; 63
    e7be:	0f 90       	pop	r0
    e7c0:	1f 90       	pop	r1
    e7c2:	18 95       	reti
			state = States::ZERO;     // do nothing, let it tick once again after the 30Hz period
		}
		break;
	case States::ZERO: // end of state ZERO - we'll either stay in ZERO or change to RISE
		// In any case update our cache of pwm value for the next whole cycle from soft_pwm_bed
		slowCounter += slowInc; // this does software timer_clk/256 or less (depends on slowInc)
    e7c4:	80 91 51 03 	lds	r24, 0x0351	; 0x800351 <slowCounter>
    e7c8:	8f 5f       	subi	r24, 0xFF	; 255
    e7ca:	80 93 51 03 	sts	0x0351, r24	; 0x800351 <slowCounter>
		if( slowCounter > pwm ){
    e7ce:	90 91 52 03 	lds	r25, 0x0352	; 0x800352 <pwm>
    e7d2:	98 17       	cp	r25, r24
    e7d4:	58 f3       	brcs	.-42     	; 0xe7ac <__vector_23+0x5a>
			return;
		} // otherwise moving towards RISE
		state = States::ZERO_TO_RISE; // and finalize the change in a transitional state RISE0
    e7d6:	82 e0       	ldi	r24, 0x02	; 2
    e7d8:	e7 cf       	rjmp	.-50     	; 0xe7a8 <__vector_23+0x56>
	// even though it may look like the ZERO state may be glued together with the ZERO_TO_RISE, don't do it
	// the timer must tick once more in order to get rid of occasional output pin toggles.
	case States::ZERO_TO_RISE:  // special state for handling transition between prescalers and switching inverted->non-inverted fast-PWM without toggling the output pin.
		// It must be done in consequent steps, otherwise the pin will get flipped up and down during one PWM cycle.
		// Also beware of the correct sequence of the following timer control registers initialization - it really matters!
		state = States::RISE;     // prepare for standard RISE cycles
    e7da:	83 e0       	ldi	r24, 0x03	; 3
    e7dc:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
		fastCounter = fastMax - 1;// we'll do 16-1 cycles of RISE
    e7e0:	8f e0       	ldi	r24, 0x0F	; 15
    e7e2:	80 93 50 03 	sts	0x0350, r24	; 0x800350 <fastCounter>
		TCNT0 = 255;              // force overflow on the next clock cycle
    e7e6:	8f ef       	ldi	r24, 0xFF	; 255
    e7e8:	86 bd       	out	0x26, r24	; 38
		TCCR0B = (1 << CS00);     // change prescaler to 1, i.e. 62.5kHz
    e7ea:	81 e0       	ldi	r24, 0x01	; 1
    e7ec:	85 bd       	out	0x25, r24	; 37
		TCCR0A &= ~(1 << COM0B0); // Clear OC0B on Compare Match, set OC0B at BOTTOM (non-inverting mode)
    e7ee:	84 b5       	in	r24, 0x24	; 36
    e7f0:	8f 7e       	andi	r24, 0xEF	; 239
		fastCounter = fastMax - 1;// we'll do 16-1 cycles of RISE
		TCNT0 = 255;              // force overflow on the next clock cycle
		TCCR0B = (1 << CS00);     // change prescaler to 1, i.e. 62.5kHz
		// must switch to inverting mode already here, because it takes a whole PWM cycle and it would make a "1" at the end of this pwm cycle
		// COM0B1 remains set both in inverting and non-inverting mode
		TCCR0A |= (1 << COM0B0);  // inverting mode
    e7f2:	84 bd       	out	0x24, r24	; 36
    e7f4:	db cf       	rjmp	.-74     	; 0xe7ac <__vector_23+0x5a>
		TCNT0 = 255;              // force overflow on the next clock cycle
		TCCR0B = (1 << CS00);     // change prescaler to 1, i.e. 62.5kHz
		TCCR0A &= ~(1 << COM0B0); // Clear OC0B on Compare Match, set OC0B at BOTTOM (non-inverting mode)
		break;
	case States::RISE:
		OCR0B = (fastMax - fastCounter) << fastShift;
    e7f6:	80 91 50 03 	lds	r24, 0x0350	; 0x800350 <fastCounter>
    e7fa:	82 95       	swap	r24
    e7fc:	80 7f       	andi	r24, 0xF0	; 240
    e7fe:	81 95       	neg	r24
    e800:	88 bd       	out	0x28, r24	; 40
		if( fastCounter ){
    e802:	80 91 50 03 	lds	r24, 0x0350	; 0x800350 <fastCounter>
    e806:	88 23       	and	r24, r24
    e808:	21 f0       	breq	.+8      	; 0xe812 <__vector_23+0xc0>
		break;
	case States::FALL:
		OCR0B = (fastMax - fastCounter) << fastShift; // this is the same as in RISE, because now we are setting the zero part of duty due to inverting mode
		//TCCR0A |= (1 << COM0B0); // already set in ONE_TO_FALL
		if( fastCounter ){
			--fastCounter;
    e80a:	81 50       	subi	r24, 0x01	; 1
    e80c:	80 93 50 03 	sts	0x0350, r24	; 0x800350 <fastCounter>
    e810:	cd cf       	rjmp	.-102    	; 0xe7ac <__vector_23+0x5a>
	case States::RISE:
		OCR0B = (fastMax - fastCounter) << fastShift;
		if( fastCounter ){
			--fastCounter;
		} else { // end of RISE cycles, changing into state ONE
			state = States::RISE_TO_ONE;
    e812:	84 e0       	ldi	r24, 0x04	; 4
    e814:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
			OCR0B = 255;          // full duty
    e818:	8f ef       	ldi	r24, 0xFF	; 255
    e81a:	88 bd       	out	0x28, r24	; 40
			TCNT0 = 254;          // make the timer overflow in the next cycle
    e81c:	8e ef       	ldi	r24, 0xFE	; 254
    e81e:	86 bd       	out	0x26, r24	; 38
    e820:	c5 cf       	rjmp	.-118    	; 0xe7ac <__vector_23+0x5a>
			// @@TODO these constants are still subject to investigation
		}
		break;
	case States::RISE_TO_ONE:
		state = States::ONE;
    e822:	85 e0       	ldi	r24, 0x05	; 5
    e824:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
		OCR0B = 255;              // full duty
    e828:	8f ef       	ldi	r24, 0xFF	; 255
    e82a:	88 bd       	out	0x28, r24	; 40
		TCNT0 = 255;              // make the timer overflow in the next cycle
    e82c:	86 bd       	out	0x26, r24	; 38
		break;
	case States::FALL_TO_ZERO:
		state = States::ZERO_START; // go to read new soft_pwm_bed value for the next cycle
		TCNT0 = 128;
		OCR0B = 255;
		TCCR0B = (1 << CS01); // change prescaler to 8, i.e. 7.8kHz
    e82e:	82 e0       	ldi	r24, 0x02	; 2
    e830:	85 bd       	out	0x25, r24	; 37
    e832:	bc cf       	rjmp	.-136    	; 0xe7ac <__vector_23+0x5a>
		OCR0B = 255;              // full duty
		TCNT0 = 255;              // make the timer overflow in the next cycle
		TCCR0B = (1 << CS01);     // change prescaler to 8, i.e. 7.8kHz
		break;
	case States::ONE:             // state ONE - we'll either stay in ONE or change to FALL
		OCR0B = 255;
    e834:	2f ef       	ldi	r18, 0xFF	; 255
    e836:	28 bd       	out	0x28, r18	; 40
		if (bedPWMDisabled) return; // stay in the ON state and do not change the output pin
    e838:	80 91 8d 06 	lds	r24, 0x068D	; 0x80068d <bedPWMDisabled>
    e83c:	81 11       	cpse	r24, r1
    e83e:	b6 cf       	rjmp	.-148    	; 0xe7ac <__vector_23+0x5a>
		slowCounter += slowInc;   // this does software timer_clk/256 or less
    e840:	80 91 51 03 	lds	r24, 0x0351	; 0x800351 <slowCounter>
    e844:	8f 5f       	subi	r24, 0xFF	; 255
    e846:	80 93 51 03 	sts	0x0351, r24	; 0x800351 <slowCounter>
		if( slowCounter < pwm ){
    e84a:	90 91 52 03 	lds	r25, 0x0352	; 0x800352 <pwm>
    e84e:	89 17       	cp	r24, r25
    e850:	08 f4       	brcc	.+2      	; 0xe854 <__vector_23+0x102>
    e852:	ac cf       	rjmp	.-168    	; 0xe7ac <__vector_23+0x5a>
			return;
		}
		if( (soft_pwm_bed << 1) >= (255 - slowInc - 1) ){  //@@TODO simplify & explain
    e854:	80 91 1d 06 	lds	r24, 0x061D	; 0x80061d <soft_pwm_bed>
    e858:	90 e0       	ldi	r25, 0x00	; 0
    e85a:	8f 37       	cpi	r24, 0x7F	; 127
    e85c:	91 05       	cpc	r25, r1
    e85e:	0c f0       	brlt	.+2      	; 0xe862 <__vector_23+0x110>
    e860:	a5 cf       	rjmp	.-182    	; 0xe7ac <__vector_23+0x5a>
			// if slowInc==2, soft_pwm == 251 will be the first to do short drops to zero. 252 will keep full heating
			return;           // want full duty for the next ONE cycle again - so keep on heating and just wait for the next timer ovf
		}
		// otherwise moving towards FALL
		state=States::FALL;
    e862:	86 e0       	ldi	r24, 0x06	; 6
    e864:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
		fastCounter = fastMax - 1;// we'll do 16-1 cycles of RISE
    e868:	8f e0       	ldi	r24, 0x0F	; 15
    e86a:	80 93 50 03 	sts	0x0350, r24	; 0x800350 <fastCounter>
		TCNT0 = 255;              // force overflow on the next clock cycle
    e86e:	26 bd       	out	0x26, r18	; 38
		TCCR0B = (1 << CS00);     // change prescaler to 1, i.e. 62.5kHz
    e870:	81 e0       	ldi	r24, 0x01	; 1
    e872:	85 bd       	out	0x25, r24	; 37
		// must switch to inverting mode already here, because it takes a whole PWM cycle and it would make a "1" at the end of this pwm cycle
		// COM0B1 remains set both in inverting and non-inverting mode
		TCCR0A |= (1 << COM0B0);  // inverting mode
    e874:	84 b5       	in	r24, 0x24	; 36
    e876:	80 61       	ori	r24, 0x10	; 16
    e878:	bc cf       	rjmp	.-136    	; 0xe7f2 <__vector_23+0xa0>
		break;
	case States::FALL:
		OCR0B = (fastMax - fastCounter) << fastShift; // this is the same as in RISE, because now we are setting the zero part of duty due to inverting mode
    e87a:	80 91 50 03 	lds	r24, 0x0350	; 0x800350 <fastCounter>
    e87e:	82 95       	swap	r24
    e880:	80 7f       	andi	r24, 0xF0	; 240
    e882:	81 95       	neg	r24
    e884:	88 bd       	out	0x28, r24	; 40
		//TCCR0A |= (1 << COM0B0); // already set in ONE_TO_FALL
		if( fastCounter ){
    e886:	80 91 50 03 	lds	r24, 0x0350	; 0x800350 <fastCounter>
    e88a:	81 11       	cpse	r24, r1
    e88c:	be cf       	rjmp	.-132    	; 0xe80a <__vector_23+0xb8>
			--fastCounter;
		} else {   // end of FALL cycles, changing into state ZERO
			state = States::FALL_TO_ZERO;
    e88e:	87 e0       	ldi	r24, 0x07	; 7
    e890:	80 93 53 03 	sts	0x0353, r24	; 0x800353 <state>
			TCNT0 = 128; //@@TODO again - need to wait long enough to propagate the timer state changes
    e894:	80 e8       	ldi	r24, 0x80	; 128
    e896:	86 bd       	out	0x26, r24	; 38
			OCR0B = 255;
    e898:	8f ef       	ldi	r24, 0xFF	; 255
    e89a:	88 bd       	out	0x28, r24	; 40
    e89c:	87 cf       	rjmp	.-242    	; 0xe7ac <__vector_23+0x5a>
		}
		break;
	case States::FALL_TO_ZERO:
		state = States::ZERO_START; // go to read new soft_pwm_bed value for the next cycle
    e89e:	10 92 53 03 	sts	0x0353, r1	; 0x800353 <state>
		TCNT0 = 128;
    e8a2:	80 e8       	ldi	r24, 0x80	; 128
    e8a4:	86 bd       	out	0x26, r24	; 38
		OCR0B = 255;
    e8a6:	8f ef       	ldi	r24, 0xFF	; 255
    e8a8:	88 bd       	out	0x28, r24	; 40
    e8aa:	c1 cf       	rjmp	.-126    	; 0xe82e <__vector_23+0xdc>

0000e8ac <Filament_sensor::setEnabled(bool)>:
#else // FILAMENT_SENSOR
FSensorBlockRunout::FSensorBlockRunout() { }
FSensorBlockRunout::~FSensorBlockRunout() { }
#endif // FILAMENT_SENSOR

void Filament_sensor::setEnabled(bool enabled) {
    e8ac:	cf 93       	push	r28
    e8ae:	c8 2f       	mov	r28, r24
    e8b0:	68 2f       	mov	r22, r24
    e8b2:	87 e6       	ldi	r24, 0x67	; 103
    e8b4:	9f e0       	ldi	r25, 0x0F	; 15
    e8b6:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    eeprom_update_byte_notify((uint8_t *)EEPROM_FSENSOR, enabled);
    if (enabled) {
    e8ba:	cc 23       	and	r28, r28
    e8bc:	19 f0       	breq	.+6      	; 0xe8c4 <Filament_sensor::setEnabled(bool)+0x18>
        fsensor.init();
    } else {
        fsensor.deinit();
    }
}
    e8be:	cf 91       	pop	r28
#endif // FILAMENT_SENSOR

void Filament_sensor::setEnabled(bool enabled) {
    eeprom_update_byte_notify((uint8_t *)EEPROM_FSENSOR, enabled);
    if (enabled) {
        fsensor.init();
    e8c0:	0d 94 7b 7c 	jmp	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
}

void PAT9125_sensor::deinit() {
//    puts_P(PSTR("fsensor::deinit()"));
    ; //
    state = State::disabled;
    e8c4:	10 92 aa 17 	sts	0x17AA, r1	; 0x8017aa <fsensor>
    filter = 0;
    e8c8:	10 92 b6 17 	sts	0x17B6, r1	; 0x8017b6 <fsensor+0xc>
    if (enabled) {
        fsensor.init();
    } else {
        fsensor.deinit();
    }
}
    e8cc:	cf 91       	pop	r28
    e8ce:	08 95       	ret

0000e8d0 <resetFanCheck()>:
#endif
#endif //DEBUG_DISABLE_FANCHECK
}

void resetFanCheck() {
    fan_measuring = false;
    e8d0:	10 92 6f 06 	sts	0x066F, r1	; 0x80066f <fan_measuring>
    extruder_autofan_last_check = _millis();
    e8d4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    e8d8:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
    e8dc:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
    e8e0:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
    e8e4:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
}
    e8e8:	08 95       	ret

0000e8ea <__vector_8>:
	EIMSK |= (1 << 7);
}

// The fan interrupt is triggered at maximum 325Hz (may be a bit more due to component tollerances),
// and it takes 4.24 us to process (the interrupt invocation overhead not taken into account).
ISR(INT7_vect) {
    e8ea:	1f 92       	push	r1
    e8ec:	0f 92       	push	r0
    e8ee:	0f b6       	in	r0, 0x3f	; 63
    e8f0:	0f 92       	push	r0
    e8f2:	11 24       	eor	r1, r1
    e8f4:	2f 93       	push	r18
    e8f6:	4f 93       	push	r20
    e8f8:	5f 93       	push	r21
    e8fa:	6f 93       	push	r22
    e8fc:	7f 93       	push	r23
    e8fe:	8f 93       	push	r24
    e900:	9f 93       	push	r25
    e902:	af 93       	push	r26
    e904:	bf 93       	push	r27
	//measuring speed now works for fanSpeed > 18 (approximately), which is sufficient because MIN_PRINT_FAN_SPEED is higher
#ifdef FAN_SOFT_PWM
	if (!fan_measuring || (fanSpeedSoftPwm < MIN_PRINT_FAN_SPEED)) return;
    e906:	80 91 6f 06 	lds	r24, 0x066F	; 0x80066f <fan_measuring>
    e90a:	88 23       	and	r24, r24
    e90c:	f1 f0       	breq	.+60     	; 0xe94a <__vector_8+0x60>
    e90e:	80 91 a6 04 	lds	r24, 0x04A6	; 0x8004a6 <fanSpeedSoftPwm>
    e912:	8b 34       	cpi	r24, 0x4B	; 75
    e914:	d0 f0       	brcs	.+52     	; 0xe94a <__vector_8+0x60>
#else //FAN_SOFT_PWM
	if (fanSpeed < MIN_PRINT_FAN_SPEED) return;
#endif //FAN_SOFT_PWM

	if ((1 << 6) & EICRB) { //interrupt was triggered by rising edge
    e916:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
    e91a:	86 ff       	sbrs	r24, 6
    e91c:	24 c0       	rjmp	.+72     	; 0xe966 <__vector_8+0x7c>

// An unsynchronized equivalent to a standard Arduino _millis() function.
// To be used inside an interrupt routine.
FORCE_INLINE unsigned long millis_nc() {
#ifdef SYSTEM_TIMER_2
	return timer2_millis;
    e91e:	80 91 3b 06 	lds	r24, 0x063B	; 0x80063b <timer2_millis>
    e922:	90 91 3c 06 	lds	r25, 0x063C	; 0x80063c <timer2_millis+0x1>
    e926:	a0 91 3d 06 	lds	r26, 0x063D	; 0x80063d <timer2_millis+0x2>
    e92a:	b0 91 3e 06 	lds	r27, 0x063E	; 0x80063e <timer2_millis+0x3>
		t_fan_rising_edge = millis_nc();
    e92e:	80 93 49 03 	sts	0x0349, r24	; 0x800349 <t_fan_rising_edge>
    e932:	90 93 4a 03 	sts	0x034A, r25	; 0x80034a <t_fan_rising_edge+0x1>
    e936:	a0 93 4b 03 	sts	0x034B, r26	; 0x80034b <t_fan_rising_edge+0x2>
    e93a:	b0 93 4c 03 	sts	0x034C, r27	; 0x80034c <t_fan_rising_edge+0x3>
	else { //interrupt was triggered by falling edge
		if ((millis_nc() - t_fan_rising_edge) >= FAN_PULSE_WIDTH_LIMIT) {//this pulse was from sensor and not from pwm
			fan_edge_counter[1] += 2; //we are currently counting all edges so lets count two edges for one pulse
		}
	}
	EICRB ^= (1 << 6); //change edge
    e93e:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
    e942:	90 e4       	ldi	r25, 0x40	; 64
    e944:	89 27       	eor	r24, r25
    e946:	80 93 6a 00 	sts	0x006A, r24	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
}
    e94a:	bf 91       	pop	r27
    e94c:	af 91       	pop	r26
    e94e:	9f 91       	pop	r25
    e950:	8f 91       	pop	r24
    e952:	7f 91       	pop	r23
    e954:	6f 91       	pop	r22
    e956:	5f 91       	pop	r21
    e958:	4f 91       	pop	r20
    e95a:	2f 91       	pop	r18
    e95c:	0f 90       	pop	r0
    e95e:	0f be       	out	0x3f, r0	; 63
    e960:	0f 90       	pop	r0
    e962:	1f 90       	pop	r1
    e964:	18 95       	reti
    e966:	80 91 3b 06 	lds	r24, 0x063B	; 0x80063b <timer2_millis>
    e96a:	90 91 3c 06 	lds	r25, 0x063C	; 0x80063c <timer2_millis+0x1>
    e96e:	a0 91 3d 06 	lds	r26, 0x063D	; 0x80063d <timer2_millis+0x2>
    e972:	b0 91 3e 06 	lds	r27, 0x063E	; 0x80063e <timer2_millis+0x3>

	if ((1 << 6) & EICRB) { //interrupt was triggered by rising edge
		t_fan_rising_edge = millis_nc();
	}
	else { //interrupt was triggered by falling edge
		if ((millis_nc() - t_fan_rising_edge) >= FAN_PULSE_WIDTH_LIMIT) {//this pulse was from sensor and not from pwm
    e976:	40 91 49 03 	lds	r20, 0x0349	; 0x800349 <t_fan_rising_edge>
    e97a:	50 91 4a 03 	lds	r21, 0x034A	; 0x80034a <t_fan_rising_edge+0x1>
    e97e:	60 91 4b 03 	lds	r22, 0x034B	; 0x80034b <t_fan_rising_edge+0x2>
    e982:	70 91 4c 03 	lds	r23, 0x034C	; 0x80034c <t_fan_rising_edge+0x3>
    e986:	84 1b       	sub	r24, r20
    e988:	95 0b       	sbc	r25, r21
    e98a:	a6 0b       	sbc	r26, r22
    e98c:	b7 0b       	sbc	r27, r23
    e98e:	20 91 e7 03 	lds	r18, 0x03E7	; 0x8003e7 <fanSpeed>
    e992:	44 e0       	ldi	r20, 0x04	; 4
    e994:	50 e0       	ldi	r21, 0x00	; 0
    e996:	60 e0       	ldi	r22, 0x00	; 0
    e998:	70 e0       	ldi	r23, 0x00	; 0
    e99a:	25 36       	cpi	r18, 0x65	; 101
    e99c:	20 f0       	brcs	.+8      	; 0xe9a6 <__vector_8+0xbc>
    e99e:	43 e0       	ldi	r20, 0x03	; 3
    e9a0:	50 e0       	ldi	r21, 0x00	; 0
    e9a2:	60 e0       	ldi	r22, 0x00	; 0
    e9a4:	70 e0       	ldi	r23, 0x00	; 0
    e9a6:	84 17       	cp	r24, r20
    e9a8:	95 07       	cpc	r25, r21
    e9aa:	a6 07       	cpc	r26, r22
    e9ac:	b7 07       	cpc	r27, r23
    e9ae:	38 f2       	brcs	.-114    	; 0xe93e <__vector_8+0x54>
			fan_edge_counter[1] += 2; //we are currently counting all edges so lets count two edges for one pulse
    e9b0:	80 91 e4 05 	lds	r24, 0x05E4	; 0x8005e4 <fan_edge_counter+0x2>
    e9b4:	90 91 e5 05 	lds	r25, 0x05E5	; 0x8005e5 <fan_edge_counter+0x3>
    e9b8:	02 96       	adiw	r24, 0x02	; 2
    e9ba:	90 93 e5 05 	sts	0x05E5, r25	; 0x8005e5 <fan_edge_counter+0x3>
    e9be:	80 93 e4 05 	sts	0x05E4, r24	; 0x8005e4 <fan_edge_counter+0x2>
    e9c2:	bd cf       	rjmp	.-134    	; 0xe93e <__vector_8+0x54>

0000e9c4 <setExtruderAutoFanState(unsigned char)>:
void setExtruderAutoFanState(uint8_t state)
{
    //If bit 1 is set (0x02), then the hotend fan speed won't be adjusted according to temperature. Useful for forcing
    //the fan to either On or Off during certain tests/errors.

    fanState = state;
    e9c4:	80 93 4d 03 	sts	0x034D, r24	; 0x80034d <fanState>
    newFanSpeed = 0;
    if (fanState & 0x01)
    e9c8:	80 fd       	sbrc	r24, 0
    e9ca:	1c c0       	rjmp	.+56     	; 0xea04 <setExtruderAutoFanState(unsigned char)+0x40>
{
    //If bit 1 is set (0x02), then the hotend fan speed won't be adjusted according to temperature. Useful for forcing
    //the fan to either On or Off during certain tests/errors.

    fanState = state;
    newFanSpeed = 0;
    e9cc:	10 92 6b 03 	sts	0x036B, r1	; 0x80036b <newFanSpeed>
        else newFanSpeed = EXTRUDER_AUTO_FAN_SPEED;
#else //EXTRUDER_ALTFAN_DETECT
        newFanSpeed = EXTRUDER_AUTO_FAN_SPEED;
#endif //EXTRUDER_ALTFAN_DETECT
    }
    timer4_set_fan0(newFanSpeed);
    e9d0:	20 91 6b 03 	lds	r18, 0x036B	; 0x80036b <newFanSpeed>
}

#ifdef EXTRUDER_0_AUTO_FAN_PIN
void timer4_set_fan0(uint8_t duty)
{
	if (duty == 0 || duty == 255)
    e9d4:	8f ef       	ldi	r24, 0xFF	; 255
    e9d6:	82 0f       	add	r24, r18
    e9d8:	8e 3f       	cpi	r24, 0xFE	; 254
    e9da:	e8 f0       	brcs	.+58     	; 0xea16 <setExtruderAutoFanState(unsigned char)+0x52>
	{
		// We use digital logic if the duty cycle is 0% or 100%
		TCCR4A &= ~_BV(COM4C1);
    e9dc:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
    e9e0:	87 7f       	andi	r24, 0xF7	; 247
    e9e2:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
		OCR4C = 0;
    e9e6:	10 92 ad 00 	sts	0x00AD, r1	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
    e9ea:	10 92 ac 00 	sts	0x00AC, r1	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
		WRITE(EXTRUDER_0_AUTO_FAN_PIN, duty);
    e9ee:	9f b7       	in	r25, 0x3f	; 63
    e9f0:	22 23       	and	r18, r18
    e9f2:	61 f0       	breq	.+24     	; 0xea0c <setExtruderAutoFanState(unsigned char)+0x48>
    e9f4:	f8 94       	cli
    e9f6:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    e9fa:	80 62       	ori	r24, 0x20	; 32
    e9fc:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    ea00:	9f bf       	out	0x3f, r25	; 63
    ea02:	08 95       	ret
    {
#ifdef EXTRUDER_ALTFAN_DETECT
        if (altfanStatus.isAltfan && !altfanStatus.altfanOverride) newFanSpeed = EXTRUDER_ALTFAN_SPEED_SILENT;
        else newFanSpeed = EXTRUDER_AUTO_FAN_SPEED;
#else //EXTRUDER_ALTFAN_DETECT
        newFanSpeed = EXTRUDER_AUTO_FAN_SPEED;
    ea04:	8f ef       	ldi	r24, 0xFF	; 255
    ea06:	80 93 6b 03 	sts	0x036B, r24	; 0x80036b <newFanSpeed>
    ea0a:	e2 cf       	rjmp	.-60     	; 0xe9d0 <setExtruderAutoFanState(unsigned char)+0xc>
    ea0c:	f8 94       	cli
    ea0e:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    ea12:	8f 7d       	andi	r24, 0xDF	; 223
    ea14:	f3 cf       	rjmp	.-26     	; 0xe9fc <setExtruderAutoFanState(unsigned char)+0x38>
	else
	{
		// Use the timer for fan speed. Enable the timer compare output and set the duty cycle.
		// This function also handles the impossible scenario of a fan speed change during a Tone.
		// Better be safe than sorry.
		CRITICAL_SECTION_START;
    ea16:	ef b7       	in	r30, 0x3f	; 63
    ea18:	f8 94       	cli
		// Enable the PWM output on the fan pin.
		TCCR4A |= _BV(COM4C1);
    ea1a:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
    ea1e:	88 60       	ori	r24, 0x08	; 8
    ea20:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
		OCR4C = (((uint16_t)duty) * ((uint16_t)((TIMSK4 & _BV(OCIE4A)) ? OCR4A : 255U))) / 255U;
    ea24:	30 e0       	ldi	r19, 0x00	; 0
    ea26:	80 91 72 00 	lds	r24, 0x0072	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
    ea2a:	4f ef       	ldi	r20, 0xFF	; 255
    ea2c:	50 e0       	ldi	r21, 0x00	; 0
    ea2e:	81 ff       	sbrs	r24, 1
    ea30:	04 c0       	rjmp	.+8      	; 0xea3a <setExtruderAutoFanState(unsigned char)+0x76>
    ea32:	40 91 a8 00 	lds	r20, 0x00A8	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
    ea36:	50 91 a9 00 	lds	r21, 0x00A9	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
    ea3a:	24 9f       	mul	r18, r20
    ea3c:	c0 01       	movw	r24, r0
    ea3e:	25 9f       	mul	r18, r21
    ea40:	90 0d       	add	r25, r0
    ea42:	34 9f       	mul	r19, r20
    ea44:	90 0d       	add	r25, r0
    ea46:	11 24       	eor	r1, r1
    ea48:	6f ef       	ldi	r22, 0xFF	; 255
    ea4a:	70 e0       	ldi	r23, 0x00	; 0
    ea4c:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
    ea50:	70 93 ad 00 	sts	0x00AD, r23	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
    ea54:	60 93 ac 00 	sts	0x00AC, r22	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
		CRITICAL_SECTION_END;
    ea58:	ef bf       	out	0x3f, r30	; 63
#endif //EXTRUDER_ALTFAN_DETECT
    }
    timer4_set_fan0(newFanSpeed);
}
    ea5a:	08 95       	ret

0000ea5c <checkExtruderAutoFans()>:
}

#endif //EXTRUDER_ALTFAN_DETECT

void checkExtruderAutoFans()
{
    ea5c:	1f 93       	push	r17
    ea5e:	cf 93       	push	r28
    ea60:	df 93       	push	r29
#if defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1
    if (!(fanState & 0x02))
    ea62:	d0 91 4d 03 	lds	r29, 0x034D	; 0x80034d <fanState>
    ea66:	d1 fd       	sbrc	r29, 1
    ea68:	1d c0       	rjmp	.+58     	; 0xeaa4 <checkExtruderAutoFans()+0x48>
    temp_error_state.assert = true;
}

bool get_temp_error()
{
    return temp_error_state.v;
    ea6a:	10 91 1b 05 	lds	r17, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    {
        fanState &= ~1;
        fanState |= current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE;
    ea6e:	c1 e0       	ldi	r28, 0x01	; 1
    ea70:	20 e0       	ldi	r18, 0x00	; 0
    ea72:	30 e0       	ldi	r19, 0x00	; 0
    ea74:	48 e4       	ldi	r20, 0x48	; 72
    ea76:	52 e4       	ldi	r21, 0x42	; 66
    ea78:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
    ea7c:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
    ea80:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
    ea84:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
    ea88:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    ea8c:	18 16       	cp	r1, r24
    ea8e:	0c f0       	brlt	.+2      	; 0xea92 <checkExtruderAutoFans()+0x36>
    ea90:	c0 e0       	ldi	r28, 0x00	; 0
void checkExtruderAutoFans()
{
#if defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1
    if (!(fanState & 0x02))
    {
        fanState &= ~1;
    ea92:	de 7f       	andi	r29, 0xFE	; 254
        fanState |= current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE;
    ea94:	cd 2b       	or	r28, r29
    ea96:	81 e0       	ldi	r24, 0x01	; 1
    ea98:	11 11       	cpse	r17, r1
    ea9a:	01 c0       	rjmp	.+2      	; 0xea9e <checkExtruderAutoFans()+0x42>
    ea9c:	80 e0       	ldi	r24, 0x00	; 0
        fanState |= get_temp_error();
    ea9e:	c8 2b       	or	r28, r24
    eaa0:	c0 93 4d 03 	sts	0x034D, r28	; 0x80034d <fanState>
    }
    setExtruderAutoFanState(fanState);
    eaa4:	80 91 4d 03 	lds	r24, 0x034D	; 0x80034d <fanState>
#endif
}
    eaa8:	df 91       	pop	r29
    eaaa:	cf 91       	pop	r28
    eaac:	1f 91       	pop	r17
    {
        fanState &= ~1;
        fanState |= current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE;
        fanState |= get_temp_error();
    }
    setExtruderAutoFanState(fanState);
    eaae:	0c 94 e2 74 	jmp	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>

0000eab2 <eeprom_init_default_block(void*, unsigned int, void const*)>:
void __attribute__((noinline)) eeprom_init_default_float(float *__p, float def) {
    if (eeprom_read_dword((uint32_t*)__p) == EEPROM_EMPTY_VALUE32)
        eeprom_write_float_notify(__p, def);
}

void __attribute__((noinline)) eeprom_init_default_block(void *__p, size_t __n, const void *def) {
    eab2:	ef 92       	push	r14
    eab4:	ff 92       	push	r15
    eab6:	0f 93       	push	r16
    eab8:	1f 93       	push	r17
    eaba:	cf 93       	push	r28
    eabc:	df 93       	push	r29
    eabe:	ec 01       	movw	r28, r24
    eac0:	8b 01       	movw	r16, r22
    eac2:	7a 01       	movw	r14, r20
    if (!eeprom_is_initialized_block(__p, __n))
    eac4:	0e 94 42 5b 	call	0xb684	; 0xb684 <eeprom_is_initialized_block(void const*, unsigned int)>
    eac8:	81 11       	cpse	r24, r1
    eaca:	0b c0       	rjmp	.+22     	; 0xeae2 <eeprom_init_default_block(void*, unsigned int, void const*)+0x30>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
    eacc:	a8 01       	movw	r20, r16
    eace:	be 01       	movw	r22, r28
    ead0:	c7 01       	movw	r24, r14
}

void __attribute__((noinline)) eeprom_init_default_block(void *__p, size_t __n, const void *def) {
    if (!eeprom_is_initialized_block(__p, __n))
        eeprom_update_block_notify(def, __p, __n);
}
    ead2:	df 91       	pop	r29
    ead4:	cf 91       	pop	r28
    ead6:	1f 91       	pop	r17
    ead8:	0f 91       	pop	r16
    eada:	ff 90       	pop	r15
    eadc:	ef 90       	pop	r14
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
    eade:	0d 94 6f dc 	jmp	0x3b8de	; 0x3b8de <eeprom_update_block>
}

void __attribute__((noinline)) eeprom_init_default_block(void *__p, size_t __n, const void *def) {
    if (!eeprom_is_initialized_block(__p, __n))
        eeprom_update_block_notify(def, __p, __n);
}
    eae2:	df 91       	pop	r29
    eae4:	cf 91       	pop	r28
    eae6:	1f 91       	pop	r17
    eae8:	0f 91       	pop	r16
    eaea:	ff 90       	pop	r15
    eaec:	ef 90       	pop	r14
    eaee:	08 95       	ret

0000eaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>:
        return def;
    }
    return val;
}

uint16_t __attribute__((noinline)) eeprom_init_default_word(uint16_t *__p, uint16_t def) {
    eaf0:	0f 93       	push	r16
    eaf2:	1f 93       	push	r17
    eaf4:	cf 93       	push	r28
    eaf6:	df 93       	push	r29
    eaf8:	8c 01       	movw	r16, r24
    eafa:	d6 2f       	mov	r29, r22
    eafc:	c7 2f       	mov	r28, r23
    uint16_t val = eeprom_read_word(__p);
    eafe:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    if (val == EEPROM_EMPTY_VALUE16) {
    eb02:	8f 3f       	cpi	r24, 0xFF	; 255
    eb04:	98 07       	cpc	r25, r24
    eb06:	39 f4       	brne	.+14     	; 0xeb16 <eeprom_init_default_word(unsigned int*, unsigned int)+0x26>
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
    eb08:	6d 2f       	mov	r22, r29
    eb0a:	7c 2f       	mov	r23, r28
    eb0c:	c8 01       	movw	r24, r16
    eb0e:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>

uint16_t __attribute__((noinline)) eeprom_init_default_word(uint16_t *__p, uint16_t def) {
    uint16_t val = eeprom_read_word(__p);
    if (val == EEPROM_EMPTY_VALUE16) {
        eeprom_write_word_notify(__p, def);
        return def;
    eb12:	8d 2f       	mov	r24, r29
    eb14:	9c 2f       	mov	r25, r28
    }
    return val;
}
    eb16:	df 91       	pop	r29
    eb18:	cf 91       	pop	r28
    eb1a:	1f 91       	pop	r17
    eb1c:	0f 91       	pop	r16
    eb1e:	08 95       	ret

0000eb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>:
void __attribute__((noinline)) eeprom_add_dword(uint32_t *__p, uint32_t add) {
    eeprom_write_dword_notify(__p, eeprom_read_dword(__p) + add);
}


uint8_t __attribute__((noinline)) eeprom_init_default_byte(uint8_t *__p, uint8_t def) {
    eb20:	0f 93       	push	r16
    eb22:	1f 93       	push	r17
    eb24:	cf 93       	push	r28
    eb26:	8c 01       	movw	r16, r24
    eb28:	c6 2f       	mov	r28, r22
    uint8_t val = eeprom_read_byte(__p);
    eb2a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    if (val == EEPROM_EMPTY_VALUE) {
    eb2e:	8f 3f       	cpi	r24, 0xFF	; 255
    eb30:	29 f4       	brne	.+10     	; 0xeb3c <eeprom_init_default_byte(unsigned char*, unsigned char)+0x1c>
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    eb32:	6c 2f       	mov	r22, r28
    eb34:	c8 01       	movw	r24, r16
    eb36:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>

uint8_t __attribute__((noinline)) eeprom_init_default_byte(uint8_t *__p, uint8_t def) {
    uint8_t val = eeprom_read_byte(__p);
    if (val == EEPROM_EMPTY_VALUE) {
        eeprom_write_byte_notify(__p, def);
        return def;
    eb3a:	8c 2f       	mov	r24, r28
    }
    return val;
}
    eb3c:	cf 91       	pop	r28
    eb3e:	1f 91       	pop	r17
    eb40:	0f 91       	pop	r16
    eb42:	08 95       	ret

0000eb44 <eeprom_increment_word(unsigned int*)>:

void __attribute__((noinline)) eeprom_increment_byte(uint8_t *__p) {
    eeprom_write_byte_notify(__p, eeprom_read_byte(__p) + 1);
}

void __attribute__((noinline)) eeprom_increment_word(uint16_t *__p) {
    eb44:	cf 93       	push	r28
    eb46:	df 93       	push	r29
    eb48:	ec 01       	movw	r28, r24
    eeprom_write_word_notify(__p, eeprom_read_word(__p) + 1);
    eb4a:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    eb4e:	bc 01       	movw	r22, r24
    eb50:	6f 5f       	subi	r22, 0xFF	; 255
    eb52:	7f 4f       	sbci	r23, 0xFF	; 255
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
    eb54:	ce 01       	movw	r24, r28
    eeprom_write_byte_notify(__p, eeprom_read_byte(__p) + 1);
}

void __attribute__((noinline)) eeprom_increment_word(uint16_t *__p) {
    eeprom_write_word_notify(__p, eeprom_read_word(__p) + 1);
}
    eb56:	df 91       	pop	r29
    eb58:	cf 91       	pop	r28
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
    eb5a:	0d 94 b9 dc 	jmp	0x3b972	; 0x3b972 <eeprom_write_word>

0000eb5e <eeprom_increment_byte(unsigned char*)>:

void eeprom_toggle(uint8_t *__p) {
    eeprom_write_byte_notify(__p, !eeprom_read_byte(__p));
}

void __attribute__((noinline)) eeprom_increment_byte(uint8_t *__p) {
    eb5e:	cf 93       	push	r28
    eb60:	df 93       	push	r29
    eb62:	ec 01       	movw	r28, r24
    eeprom_write_byte_notify(__p, eeprom_read_byte(__p) + 1);
    eb64:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    eb68:	61 e0       	ldi	r22, 0x01	; 1
    eb6a:	68 0f       	add	r22, r24
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    eb6c:	ce 01       	movw	r24, r28
    eeprom_write_byte_notify(__p, !eeprom_read_byte(__p));
}

void __attribute__((noinline)) eeprom_increment_byte(uint8_t *__p) {
    eeprom_write_byte_notify(__p, eeprom_read_byte(__p) + 1);
}
    eb6e:	df 91       	pop	r29
    eb70:	cf 91       	pop	r28
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    eb72:	0d 94 a3 dc 	jmp	0x3b946	; 0x3b946 <eeprom_write_byte>

0000eb76 <eeprom_toggle(unsigned char*)>:
    while (__n--) {
        eeprom_update_byte_notify(dst++, pgm_read_byte(src++));
    }
}

void eeprom_toggle(uint8_t *__p) {
    eb76:	cf 93       	push	r28
    eb78:	df 93       	push	r29
    eb7a:	ec 01       	movw	r28, r24
    eeprom_write_byte_notify(__p, !eeprom_read_byte(__p));
    eb7c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    eb80:	61 e0       	ldi	r22, 0x01	; 1
    eb82:	81 11       	cpse	r24, r1
    eb84:	60 e0       	ldi	r22, 0x00	; 0
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    eb86:	ce 01       	movw	r24, r28
    }
}

void eeprom_toggle(uint8_t *__p) {
    eeprom_write_byte_notify(__p, !eeprom_read_byte(__p));
}
    eb88:	df 91       	pop	r29
    eb8a:	cf 91       	pop	r28
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    eb8c:	0d 94 a3 dc 	jmp	0x3b946	; 0x3b946 <eeprom_write_byte>

0000eb90 <eeprom_is_sheet_initialized(unsigned char)>:
    sheet = eeprom_next_initialized_sheet(sheet);
    if (sheet >= 0) eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), sheet);
}

bool __attribute__((noinline)) eeprom_is_sheet_initialized(uint8_t sheet_num) {
    return (eeprom_read_word(reinterpret_cast<uint16_t*>(&(EEPROM_Sheets_base->s[sheet_num].z_offset))) != EEPROM_EMPTY_VALUE16);
    eb90:	2b e0       	ldi	r18, 0x0B	; 11
    eb92:	82 9f       	mul	r24, r18
    eb94:	c0 01       	movw	r24, r0
    eb96:	11 24       	eor	r1, r1
    eb98:	80 5b       	subi	r24, 0xB0	; 176
    eb9a:	92 4f       	sbci	r25, 0xF2	; 242
    eb9c:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    eba0:	21 e0       	ldi	r18, 0x01	; 1
    eba2:	01 96       	adiw	r24, 0x01	; 1
    eba4:	09 f4       	brne	.+2      	; 0xeba8 <eeprom_is_sheet_initialized(unsigned char)+0x18>
    eba6:	20 e0       	ldi	r18, 0x00	; 0
}
    eba8:	82 2f       	mov	r24, r18
    ebaa:	08 95       	ret

0000ebac <eeprom_next_initialized_sheet(signed char)>:
//!
//! @param sheet Current sheet
//! @return next initialized sheet
//! @retval -1 no sheet is initialized
int8_t eeprom_next_initialized_sheet(int8_t sheet)
{
    ebac:	cf 93       	push	r28
    ebae:	df 93       	push	r29
    ebb0:	c8 2f       	mov	r28, r24
    ebb2:	d8 e0       	ldi	r29, 0x08	; 8
    for (int8_t i = 0; i < static_cast<int8_t>(sizeof(Sheets::s)/sizeof(Sheet)); ++i)
    {
        ++sheet;
    ebb4:	cf 5f       	subi	r28, 0xFF	; 255
        if (sheet >= static_cast<int8_t>(sizeof(Sheets::s)/sizeof(Sheet))) sheet = 0;
    ebb6:	c8 30       	cpi	r28, 0x08	; 8
    ebb8:	0c f0       	brlt	.+2      	; 0xebbc <eeprom_next_initialized_sheet(signed char)+0x10>
    ebba:	c0 e0       	ldi	r28, 0x00	; 0
        if (eeprom_is_sheet_initialized(sheet)) return sheet;
    ebbc:	8c 2f       	mov	r24, r28
    ebbe:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
    ebc2:	81 11       	cpse	r24, r1
    ebc4:	03 c0       	rjmp	.+6      	; 0xebcc <eeprom_next_initialized_sheet(signed char)+0x20>
    ebc6:	d1 50       	subi	r29, 0x01	; 1
//! @param sheet Current sheet
//! @return next initialized sheet
//! @retval -1 no sheet is initialized
int8_t eeprom_next_initialized_sheet(int8_t sheet)
{
    for (int8_t i = 0; i < static_cast<int8_t>(sizeof(Sheets::s)/sizeof(Sheet)); ++i)
    ebc8:	a9 f7       	brne	.-22     	; 0xebb4 <eeprom_next_initialized_sheet(signed char)+0x8>
    {
        ++sheet;
        if (sheet >= static_cast<int8_t>(sizeof(Sheets::s)/sizeof(Sheet))) sheet = 0;
        if (eeprom_is_sheet_initialized(sheet)) return sheet;
    }
    return -1;
    ebca:	cf ef       	ldi	r28, 0xFF	; 255
}
    ebcc:	8c 2f       	mov	r24, r28
    ebce:	df 91       	pop	r29
    ebd0:	cf 91       	pop	r28
    ebd2:	08 95       	ret

0000ebd4 <eeprom_switch_to_next_sheet()>:
#endif //DEBUG_EEPROM_CHANGES
}

void eeprom_switch_to_next_sheet()
{
    int8_t sheet = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
    ebd4:	81 ea       	ldi	r24, 0xA1	; 161
    ebd6:	9d e0       	ldi	r25, 0x0D	; 13
    ebd8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>

    sheet = eeprom_next_initialized_sheet(sheet);
    ebdc:	0e 94 d6 75 	call	0xebac	; 0xebac <eeprom_next_initialized_sheet(signed char)>
    if (sheet >= 0) eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), sheet);
    ebe0:	87 fd       	sbrc	r24, 7
    ebe2:	05 c0       	rjmp	.+10     	; 0xebee <eeprom_switch_to_next_sheet()+0x1a>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
    ebe4:	68 2f       	mov	r22, r24
    ebe6:	81 ea       	ldi	r24, 0xA1	; 161
    ebe8:	9d e0       	ldi	r25, 0x0D	; 13
    ebea:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
{
    int8_t sheet = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));

    sheet = eeprom_next_initialized_sheet(sheet);
    if (sheet >= 0) eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), sheet);
}
    ebee:	08 95       	ret

0000ebf0 <eeprom_default_sheet_name(unsigned char, SheetName&)>:
//! | 7     | Custom2   |
//!
//! @param[in] index
//! @param[out] sheetName
void eeprom_default_sheet_name(uint8_t index, SheetName &sheetName)
{
    ebf0:	0f 93       	push	r16
    ebf2:	1f 93       	push	r17
    ebf4:	cf 93       	push	r28
    ebf6:	c8 2f       	mov	r28, r24
    ebf8:	8b 01       	movw	r16, r22
    static_assert(8 == sizeof(SheetName),"Default sheet name needs to be adjusted.");

    if (index < 2)
    {
        strcpy_P(sheetName.c, PSTR("Smooth"));
    ebfa:	62 e6       	ldi	r22, 0x62	; 98
    ebfc:	78 e7       	ldi	r23, 0x78	; 120
//! @param[out] sheetName
void eeprom_default_sheet_name(uint8_t index, SheetName &sheetName)
{
    static_assert(8 == sizeof(SheetName),"Default sheet name needs to be adjusted.");

    if (index < 2)
    ebfe:	82 30       	cpi	r24, 0x02	; 2
    ec00:	70 f0       	brcs	.+28     	; 0xec1e <eeprom_default_sheet_name(unsigned char, SheetName&)+0x2e>
    {
        strcpy_P(sheetName.c, PSTR("Smooth"));
    }
    else if (index < 4)
    {
        strcpy_P(sheetName.c, PSTR("Textur"));
    ec02:	6b e5       	ldi	r22, 0x5B	; 91
    ec04:	78 e7       	ldi	r23, 0x78	; 120

    if (index < 2)
    {
        strcpy_P(sheetName.c, PSTR("Smooth"));
    }
    else if (index < 4)
    ec06:	84 30       	cpi	r24, 0x04	; 4
    ec08:	50 f0       	brcs	.+20     	; 0xec1e <eeprom_default_sheet_name(unsigned char, SheetName&)+0x2e>
    {
        strcpy_P(sheetName.c, PSTR("Textur"));
    }
    else if (index < 5)
    {
        strcpy_P(sheetName.c, PSTR("Satin  "));
    ec0a:	63 e5       	ldi	r22, 0x53	; 83
    ec0c:	78 e7       	ldi	r23, 0x78	; 120
    }
    else if (index < 4)
    {
        strcpy_P(sheetName.c, PSTR("Textur"));
    }
    else if (index < 5)
    ec0e:	84 30       	cpi	r24, 0x04	; 4
    ec10:	31 f0       	breq	.+12     	; 0xec1e <eeprom_default_sheet_name(unsigned char, SheetName&)+0x2e>
    {
        strcpy_P(sheetName.c, PSTR("Satin  "));
    }
    else if (index < 6)
    {
        strcpy_P(sheetName.c, PSTR("NylonPA"));
    ec12:	6b e4       	ldi	r22, 0x4B	; 75
    ec14:	78 e7       	ldi	r23, 0x78	; 120
    }
    else if (index < 5)
    {
        strcpy_P(sheetName.c, PSTR("Satin  "));
    }
    else if (index < 6)
    ec16:	85 30       	cpi	r24, 0x05	; 5
    ec18:	11 f0       	breq	.+4      	; 0xec1e <eeprom_default_sheet_name(unsigned char, SheetName&)+0x2e>
    {
        strcpy_P(sheetName.c, PSTR("NylonPA"));
    }
    else
    {
        strcpy_P(sheetName.c, PSTR("Custom"));
    ec1a:	64 e4       	ldi	r22, 0x44	; 68
    ec1c:	78 e7       	ldi	r23, 0x78	; 120
    ec1e:	c8 01       	movw	r24, r16
    ec20:	0f 94 12 da 	call	0x3b424	; 0x3b424 <strcpy_P>
    }
    if (index <4 || index >5)
    ec24:	8c ef       	ldi	r24, 0xFC	; 252
    ec26:	8c 0f       	add	r24, r28
    ec28:	82 30       	cpi	r24, 0x02	; 2
    ec2a:	28 f0       	brcs	.+10     	; 0xec36 <eeprom_default_sheet_name(unsigned char, SheetName&)+0x46>
    {
        sheetName.c[6] = '0' + ((index % 2)+1);
    ec2c:	c1 70       	andi	r28, 0x01	; 1
    ec2e:	cf 5c       	subi	r28, 0xCF	; 207
    ec30:	f8 01       	movw	r30, r16
    ec32:	c6 83       	std	Z+6, r28	; 0x06
        sheetName.c[7] = '\0';
    ec34:	17 82       	std	Z+7, r1	; 0x07
    }
}
    ec36:	cf 91       	pop	r28
    ec38:	1f 91       	pop	r17
    ec3a:	0f 91       	pop	r16
    ec3c:	08 95       	ret

0000ec3e <eeprom_adjust_bed_reset()>:
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
    ec3e:	61 e0       	ldi	r22, 0x01	; 1
    ec40:	80 ec       	ldi	r24, 0xC0	; 192
    ec42:	9f e0       	ldi	r25, 0x0F	; 15
    ec44:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    ec48:	60 e0       	ldi	r22, 0x00	; 0
    ec4a:	8f eb       	ldi	r24, 0xBF	; 191
    ec4c:	9f e0       	ldi	r25, 0x0F	; 15
    ec4e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    ec52:	60 e0       	ldi	r22, 0x00	; 0
    ec54:	8e eb       	ldi	r24, 0xBE	; 190
    ec56:	9f e0       	ldi	r25, 0x0F	; 15
    ec58:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    ec5c:	60 e0       	ldi	r22, 0x00	; 0
    ec5e:	8d eb       	ldi	r24, 0xBD	; 189
    ec60:	9f e0       	ldi	r25, 0x0F	; 15
    ec62:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    ec66:	60 e0       	ldi	r22, 0x00	; 0
    ec68:	8c eb       	ldi	r24, 0xBC	; 188
    ec6a:	9f e0       	ldi	r25, 0x0F	; 15
    ec6c:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0000ec70 <print_hex_byte(unsigned char)>:
}

void print_hex_byte(uint8_t val)
{
    ec70:	cf 93       	push	r28
    ec72:	c8 2f       	mov	r28, r24
	print_hex_nibble(val >> 4);
    ec74:	82 95       	swap	r24
    ec76:	8f 70       	andi	r24, 0x0F	; 15
    ec78:	0e 94 5c 63 	call	0xc6b8	; 0xc6b8 <print_hex_nibble(unsigned char)>
	print_hex_nibble(val & 15);
    ec7c:	8c 2f       	mov	r24, r28
    ec7e:	8f 70       	andi	r24, 0x0F	; 15
}
    ec80:	cf 91       	pop	r28
}

void print_hex_byte(uint8_t val)
{
	print_hex_nibble(val >> 4);
	print_hex_nibble(val & 15);
    ec82:	0c 94 5c 63 	jmp	0xc6b8	; 0xc6b8 <print_hex_nibble(unsigned char)>

0000ec86 <cmdqueue_pop_front()>:

// Pop the currently processed command from the queue.
// It is expected, that there is at least one command in the queue.
bool cmdqueue_pop_front()
{
    if (buflen > 0) {
    ec86:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
    ec8a:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
    ec8e:	18 16       	cp	r1, r24
    ec90:	19 06       	cpc	r1, r25
    ec92:	0c f0       	brlt	.+2      	; 0xec96 <cmdqueue_pop_front()+0x10>
    ec94:	43 c0       	rjmp	.+134    	; 0xed1c <cmdqueue_pop_front()+0x96>
        SERIAL_ECHO(serial_count);
        SERIAL_ECHOPGM(", bufsize ");
        SERIAL_ECHO(sizeof(cmdbuffer));
        SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */
        if (-- buflen == 0) {
    ec96:	01 97       	sbiw	r24, 0x01	; 1
    ec98:	90 93 a4 10 	sts	0x10A4, r25	; 0x8010a4 <buflen+0x1>
    ec9c:	80 93 a3 10 	sts	0x10A3, r24	; 0x8010a3 <buflen>
    eca0:	89 2b       	or	r24, r25
    eca2:	a1 f4       	brne	.+40     	; 0xeccc <cmdqueue_pop_front()+0x46>
            // Empty buffer.
            if (serial_count == 0)
    eca4:	80 91 9e 10 	lds	r24, 0x109E	; 0x80109e <serial_count>
    eca8:	90 91 9f 10 	lds	r25, 0x109F	; 0x80109f <serial_count+0x1>
    ecac:	89 2b       	or	r24, r25
    ecae:	21 f4       	brne	.+8      	; 0xecb8 <cmdqueue_pop_front()+0x32>
                // No serial communication is pending. Reset both pointers to zero.
                bufindw = 0;
    ecb0:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
    ecb4:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
            bufindr = bufindw;
    ecb8:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
    ecbc:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
    ecc0:	90 93 93 12 	sts	0x1293, r25	; 0x801293 <bufindr+0x1>
    ecc4:	80 93 92 12 	sts	0x1292, r24	; 0x801292 <bufindr>
            SERIAL_ECHOPGM(" new command on the top: ");
            SERIAL_ECHO(cmdbuffer+bufindr+CMDHDRSIZE);
            SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */
        }
        return true;
    ecc8:	81 e0       	ldi	r24, 0x01	; 1
    ecca:	08 95       	ret
                bufindw = 0;
            bufindr = bufindw;
        } else {
            // There is at least one ready line in the buffer.
            // First skip the current command ID and iterate up to the end of the string.
            for (bufindr += CMDHDRSIZE; cmdbuffer[bufindr] != 0; ++ bufindr) ;
    eccc:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
    ecd0:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
    ecd4:	03 96       	adiw	r24, 0x03	; 3
    ecd6:	fc 01       	movw	r30, r24
    ecd8:	eb 55       	subi	r30, 0x5B	; 91
    ecda:	ff 4e       	sbci	r31, 0xEF	; 239
    ecdc:	20 81       	ld	r18, Z
    ecde:	01 96       	adiw	r24, 0x01	; 1
    ece0:	21 11       	cpse	r18, r1
    ece2:	f9 cf       	rjmp	.-14     	; 0xecd6 <cmdqueue_pop_front()+0x50>
    ece4:	fc 01       	movw	r30, r24
    ece6:	eb 55       	subi	r30, 0x5B	; 91
    ece8:	ff 4e       	sbci	r31, 0xEF	; 239
            // Second, skip the end of string null character and iterate until a nonzero command ID is found.
            for (++ bufindr; bufindr < sizeof(cmdbuffer) && cmdbuffer[bufindr] == 0; ++ bufindr) ;
    ecea:	8d 3e       	cpi	r24, 0xED	; 237
    ecec:	21 e0       	ldi	r18, 0x01	; 1
    ecee:	92 07       	cpc	r25, r18
    ecf0:	40 f4       	brcc	.+16     	; 0xed02 <cmdqueue_pop_front()+0x7c>
    ecf2:	41 91       	ld	r20, Z+
    ecf4:	9c 01       	movw	r18, r24
    ecf6:	2f 5f       	subi	r18, 0xFF	; 255
    ecf8:	3f 4f       	sbci	r19, 0xFF	; 255
    ecfa:	41 11       	cpse	r20, r1
    ecfc:	e1 cf       	rjmp	.-62     	; 0xecc0 <cmdqueue_pop_front()+0x3a>
    ecfe:	c9 01       	movw	r24, r18
    ed00:	f4 cf       	rjmp	.-24     	; 0xecea <cmdqueue_pop_front()+0x64>
            // If the end of the buffer was empty,
            if (bufindr == sizeof(cmdbuffer)) {
    ed02:	e5 ea       	ldi	r30, 0xA5	; 165
    ed04:	f0 e1       	ldi	r31, 0x10	; 16
    ed06:	8d 3e       	cpi	r24, 0xED	; 237
    ed08:	21 e0       	ldi	r18, 0x01	; 1
    ed0a:	92 07       	cpc	r25, r18
    ed0c:	c9 f6       	brne	.-78     	; 0xecc0 <cmdqueue_pop_front()+0x3a>
    ed0e:	cf 01       	movw	r24, r30
    ed10:	85 5a       	subi	r24, 0xA5	; 165
    ed12:	90 41       	sbci	r25, 0x10	; 16
                // skip to the start and find the nonzero command.
                for (bufindr = 0; cmdbuffer[bufindr] == 0; ++ bufindr) ;
    ed14:	21 91       	ld	r18, Z+
    ed16:	22 23       	and	r18, r18
    ed18:	d1 f3       	breq	.-12     	; 0xed0e <cmdqueue_pop_front()+0x88>
    ed1a:	d2 cf       	rjmp	.-92     	; 0xecc0 <cmdqueue_pop_front()+0x3a>
            SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */
        }
        return true;
    }
    return false;
    ed1c:	80 e0       	ldi	r24, 0x00	; 0
}
    ed1e:	08 95       	ret

0000ed20 <MarlinSerial::available()>:
    static int read(void);
    static void flush(void);

    static /*FORCE_INLINE*/ int available(void)
    {
      return (unsigned int)(RX_BUFFER_SIZE + rx_buffer.head - rx_buffer.tail) % RX_BUFFER_SIZE;
    ed20:	80 91 99 04 	lds	r24, 0x0499	; 0x800499 <rx_buffer+0x80>
    ed24:	90 91 9a 04 	lds	r25, 0x049A	; 0x80049a <rx_buffer+0x81>
    ed28:	20 91 9b 04 	lds	r18, 0x049B	; 0x80049b <rx_buffer+0x82>
    ed2c:	30 91 9c 04 	lds	r19, 0x049C	; 0x80049c <rx_buffer+0x83>
    ed30:	82 1b       	sub	r24, r18
    ed32:	93 0b       	sbc	r25, r19
    }
    ed34:	8f 77       	andi	r24, 0x7F	; 127
    ed36:	99 27       	eor	r25, r25
    ed38:	08 95       	ret

0000ed3a <createFilename(char*, directoryEntry const&)>:
  autostart_atmillis.start(); // reset timer
}

char *createFilename(char *buffer,const dir_t &p) //buffer>12characters
{
  char *pos=buffer;
    ed3a:	fc 01       	movw	r30, r24
  for (uint8_t i = 0; i < 11; i++)
    ed3c:	20 e0       	ldi	r18, 0x00	; 0
  {
    if (p.name[i] == ' ')continue;
    if (i == 8)
    {
      *pos++='.';
    ed3e:	3e e2       	ldi	r19, 0x2E	; 46
char *createFilename(char *buffer,const dir_t &p) //buffer>12characters
{
  char *pos=buffer;
  for (uint8_t i = 0; i < 11; i++)
  {
    if (p.name[i] == ' ')continue;
    ed40:	db 01       	movw	r26, r22
    ed42:	4d 91       	ld	r20, X+
    ed44:	bd 01       	movw	r22, r26
    ed46:	40 32       	cpi	r20, 0x20	; 32
    ed48:	49 f0       	breq	.+18     	; 0xed5c <createFilename(char*, directoryEntry const&)+0x22>
    if (i == 8)
    ed4a:	28 30       	cpi	r18, 0x08	; 8
    ed4c:	11 f4       	brne	.+4      	; 0xed52 <createFilename(char*, directoryEntry const&)+0x18>
    {
      *pos++='.';
    ed4e:	30 83       	st	Z, r19
    ed50:	31 96       	adiw	r30, 0x01	; 1
    }
    *pos++=p.name[i];
    ed52:	db 01       	movw	r26, r22
    ed54:	11 97       	sbiw	r26, 0x01	; 1
    ed56:	4c 91       	ld	r20, X
    ed58:	40 83       	st	Z, r20
    ed5a:	31 96       	adiw	r30, 0x01	; 1
}

char *createFilename(char *buffer,const dir_t &p) //buffer>12characters
{
  char *pos=buffer;
  for (uint8_t i = 0; i < 11; i++)
    ed5c:	2f 5f       	subi	r18, 0xFF	; 255
    ed5e:	2b 30       	cpi	r18, 0x0B	; 11
    ed60:	79 f7       	brne	.-34     	; 0xed40 <createFilename(char*, directoryEntry const&)+0x6>
    {
      *pos++='.';
    }
    *pos++=p.name[i];
  }
  *pos++=0;
    ed62:	10 82       	st	Z, r1
  return buffer;
}
    ed64:	08 95       	ret

0000ed66 <SdBaseFile::rewind()>:
public:
  int8_t readDir(dir_t* dir, char* longFilename);
  static bool remove(SdBaseFile* dirFile, const char* path);
  bool remove();
  /** Set the file's current position to zero. */
  void rewind() {seekSet(0);}
    ed66:	40 e0       	ldi	r20, 0x00	; 0
    ed68:	50 e0       	ldi	r21, 0x00	; 0
    ed6a:	ba 01       	movw	r22, r20
    ed6c:	0d 94 d4 57 	jmp	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>

0000ed70 <SdBaseFile::~SdBaseFile()>:
class SdBaseFile {
 public:
  /** Create an instance. */
  SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {}
  SdBaseFile(const char* path, uint8_t oflag);
  ~SdBaseFile() {if(isOpen()) close();}
    ed70:	fc 01       	movw	r30, r24
    ed72:	23 81       	ldd	r18, Z+3	; 0x03
    ed74:	21 11       	cpse	r18, r1
    ed76:	0d 94 b2 59 	jmp	0x2b364	; 0x2b364 <SdBaseFile::close()>
    ed7a:	08 95       	ret

0000ed7c <MarlinSerial::write(unsigned char)>:
      M_UDRx = c;
    }
    */
	static void write(uint8_t c)
	{
		if (selectedSerialPort == 0)
    ed7c:	90 91 39 05 	lds	r25, 0x0539	; 0x800539 <selectedSerialPort>
    ed80:	91 11       	cpse	r25, r1
    ed82:	07 c0       	rjmp	.+14     	; 0xed92 <MarlinSerial::write(unsigned char)+0x16>
		{
			while (!((M_UCSRxA) & (1 << M_UDREx)));
    ed84:	90 91 c0 00 	lds	r25, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
    ed88:	95 ff       	sbrs	r25, 5
    ed8a:	fc cf       	rjmp	.-8      	; 0xed84 <MarlinSerial::write(unsigned char)+0x8>
			M_UDRx = c;
    ed8c:	80 93 c6 00 	sts	0x00C6, r24	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
    ed90:	08 95       	ret
		}
		else if (selectedSerialPort == 1)
    ed92:	91 30       	cpi	r25, 0x01	; 1
    ed94:	31 f4       	brne	.+12     	; 0xeda2 <MarlinSerial::write(unsigned char)+0x26>
		{
			while (!((UCSR1A) & (1 << UDRE1)));
    ed96:	90 91 c8 00 	lds	r25, 0x00C8	; 0x8000c8 <__TEXT_REGION_LENGTH__+0x7c20c8>
    ed9a:	95 ff       	sbrs	r25, 5
    ed9c:	fc cf       	rjmp	.-8      	; 0xed96 <MarlinSerial::write(unsigned char)+0x1a>
			UDR1 = c;
    ed9e:	80 93 ce 00 	sts	0x00CE, r24	; 0x8000ce <__TEXT_REGION_LENGTH__+0x7c20ce>
		}
	}
    eda2:	08 95       	ret

0000eda4 <uart_putchar(char, __file*)>:
static FILE _uartout;
#define uartout (&_uartout)

int uart_putchar(char c, FILE *)
{
	MYSERIAL.write(c);
    eda4:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
	return 0;
}
    eda8:	90 e0       	ldi	r25, 0x00	; 0
    edaa:	80 e0       	ldi	r24, 0x00	; 0
    edac:	08 95       	ret

0000edae <serialprintPGM(char const*)>:
void serial_echopair_P(const char *s_P, double v)
    { serialprintPGM(s_P); SERIAL_ECHO(v); }
void serial_echopair_P(const char *s_P, unsigned long v)
    { serialprintPGM(s_P); SERIAL_ECHO(v); }

void serialprintPGM(const char *str) {
    edae:	cf 93       	push	r28
    edb0:	df 93       	push	r29
    edb2:	ec 01       	movw	r28, r24
    while(uint8_t ch = pgm_read_byte(str)) {
    edb4:	fe 01       	movw	r30, r28
    edb6:	84 91       	lpm	r24, Z
    edb8:	88 23       	and	r24, r24
    edba:	21 f0       	breq	.+8      	; 0xedc4 <serialprintPGM(char const*)+0x16>
        MYSERIAL.write((char)ch);
    edbc:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
        ++str;
    edc0:	21 96       	adiw	r28, 0x01	; 1
    edc2:	f8 cf       	rjmp	.-16     	; 0xedb4 <serialprintPGM(char const*)+0x6>
    }
}
    edc4:	df 91       	pop	r29
    edc6:	cf 91       	pop	r28
    edc8:	08 95       	ret

0000edca <serialecho_temperatures()>:
        // Turn off the print fan
        fanSpeed = 0;
    }
}

void serialecho_temperatures() {
    edca:	cf 92       	push	r12
    edcc:	df 92       	push	r13
    edce:	ef 92       	push	r14
    edd0:	ff 92       	push	r15
//inline so that there is no performance decrease.
//deg=degreeCelsius

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degHotend(uint8_t extruder) {
  return current_temperature[extruder];
    edd2:	c0 90 b0 0d 	lds	r12, 0x0DB0	; 0x800db0 <current_temperature>
    edd6:	d0 90 b1 0d 	lds	r13, 0x0DB1	; 0x800db1 <current_temperature+0x1>
    edda:	e0 90 b2 0d 	lds	r14, 0x0DB2	; 0x800db2 <current_temperature+0x2>
    edde:	f0 90 b3 0d 	lds	r15, 0x0DB3	; 0x800db3 <current_temperature+0x3>
	float tt = degHotend(active_extruder);
	SERIAL_PROTOCOLPGM("T:");
    ede2:	89 e7       	ldi	r24, 0x79	; 121
    ede4:	9d e7       	ldi	r25, 0x7D	; 125
    ede6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
    edea:	42 e0       	ldi	r20, 0x02	; 2
    edec:	c7 01       	movw	r24, r14
    edee:	b6 01       	movw	r22, r12
    edf0:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL(tt);
	SERIAL_PROTOCOLPGM(" E:0 B:");
    edf4:	81 e7       	ldi	r24, 0x71	; 113
    edf6:	9d e7       	ldi	r25, 0x7D	; 125
    edf8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    edfc:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
    ee00:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
    ee04:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
    ee08:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
    ee0c:	41 e0       	ldi	r20, 0x01	; 1
    ee0e:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL_F(degBed(), 1);
	SERIAL_PROTOCOLLN();
}
    ee12:	ff 90       	pop	r15
    ee14:	ef 90       	pop	r14
    ee16:	df 90       	pop	r13
    ee18:	cf 90       	pop	r12
	float tt = degHotend(active_extruder);
	SERIAL_PROTOCOLPGM("T:");
	SERIAL_PROTOCOL(tt);
	SERIAL_PROTOCOLPGM(" E:0 B:");
	SERIAL_PROTOCOL_F(degBed(), 1);
	SERIAL_PROTOCOLLN();
    ee1a:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0000ee1e <gcode_M861_print_pinda_cal_eeprom()>:
    }
}

/// @brief Helper function to reduce code size in M861
/// by extracting common code into one function
static void gcode_M861_print_pinda_cal_eeprom() {
    ee1e:	4f 92       	push	r4
    ee20:	5f 92       	push	r5
    ee22:	6f 92       	push	r6
    ee24:	7f 92       	push	r7
    ee26:	8f 92       	push	r8
    ee28:	9f 92       	push	r9
    ee2a:	af 92       	push	r10
    ee2c:	bf 92       	push	r11
    ee2e:	cf 92       	push	r12
    ee30:	df 92       	push	r13
    ee32:	ef 92       	push	r14
    ee34:	ff 92       	push	r15
    ee36:	0f 93       	push	r16
    ee38:	1f 93       	push	r17
    ee3a:	cf 93       	push	r28
    ee3c:	df 93       	push	r29
    ee3e:	cc 24       	eor	r12, r12
    ee40:	ca 94       	dec	r12
    ee42:	dc 2c       	mov	r13, r12
    ee44:	76 01       	movw	r14, r12
    ee46:	0e ea       	ldi	r16, 0xAE	; 174
    ee48:	1f e0       	ldi	r17, 0x0F	; 15
    ee4a:	93 e2       	ldi	r25, 0x23	; 35
    ee4c:	89 2e       	mov	r8, r25
    ee4e:	91 2c       	mov	r9, r1
    ee50:	a1 2c       	mov	r10, r1
    ee52:	b1 2c       	mov	r11, r1
    int16_t usteps = 0;
    float mm = 0;
    ee54:	41 2c       	mov	r4, r1
    ee56:	51 2c       	mov	r5, r1
    ee58:	32 01       	movw	r6, r4
}

/// @brief Helper function to reduce code size in M861
/// by extracting common code into one function
static void gcode_M861_print_pinda_cal_eeprom() {
    int16_t usteps = 0;
    ee5a:	d0 e0       	ldi	r29, 0x00	; 0
    ee5c:	c0 e0       	ldi	r28, 0x00	; 0
    float mm = 0;
    static const char comma_sep[] PROGMEM = ", ";
    for (uint8_t i = 0; i < 6; i++) {
        if(i > 0) {
    ee5e:	8f ef       	ldi	r24, 0xFF	; 255
    ee60:	c8 16       	cp	r12, r24
    ee62:	09 f4       	brne	.+2      	; 0xee66 <gcode_M861_print_pinda_cal_eeprom()+0x48>
    ee64:	5d c0       	rjmp	.+186    	; 0xef20 <gcode_M861_print_pinda_cal_eeprom()+0x102>
            usteps = eeprom_read_word((uint16_t*) EEPROM_PROBE_TEMP_SHIFT + (i - 1));
    ee66:	c8 01       	movw	r24, r16
    ee68:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    ee6c:	ec 01       	movw	r28, r24
            mm = ((float)usteps) / cs.axis_steps_per_mm[Z_AXIS];
    ee6e:	bc 01       	movw	r22, r24
    ee70:	99 0f       	add	r25, r25
    ee72:	88 0b       	sbc	r24, r24
    ee74:	99 0b       	sbc	r25, r25
    ee76:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    ee7a:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
    ee7e:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
    ee82:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
    ee86:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
    ee8a:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    ee8e:	2b 01       	movw	r4, r22
    ee90:	3c 01       	movw	r6, r24
    ee92:	c7 01       	movw	r24, r14
    ee94:	b6 01       	movw	r22, r12
    ee96:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
            SERIAL_PROTOCOL(i - 1);
        } else {
          SERIAL_PROTOCOLRPGM(MSG_NA);
        }
        SERIAL_PROTOCOLRPGM(comma_sep);
    ee9a:	8d ec       	ldi	r24, 0xCD	; 205
    ee9c:	9c e7       	ldi	r25, 0x7C	; 124
    ee9e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    eea2:	c5 01       	movw	r24, r10
    eea4:	b4 01       	movw	r22, r8
    eea6:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
        SERIAL_PROTOCOL(35 + (i * 5));
        SERIAL_PROTOCOLRPGM(comma_sep);
    eeaa:	8d ec       	ldi	r24, 0xCD	; 205
    eeac:	9c e7       	ldi	r25, 0x7C	; 124
    eeae:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
    eeb2:	be 01       	movw	r22, r28
    eeb4:	0d 2e       	mov	r0, r29
    eeb6:	00 0c       	add	r0, r0
    eeb8:	88 0b       	sbc	r24, r24
    eeba:	99 0b       	sbc	r25, r25
    eebc:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
        SERIAL_PROTOCOL(usteps);
        SERIAL_PROTOCOLRPGM(comma_sep);
    eec0:	8d ec       	ldi	r24, 0xCD	; 205
    eec2:	9c e7       	ldi	r25, 0x7C	; 124
    eec4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_PROTOCOLLN(mm * 1000);
    eec8:	20 e0       	ldi	r18, 0x00	; 0
    eeca:	30 e0       	ldi	r19, 0x00	; 0
    eecc:	4a e7       	ldi	r20, 0x7A	; 122
    eece:	54 e4       	ldi	r21, 0x44	; 68
    eed0:	c3 01       	movw	r24, r6
    eed2:	b2 01       	movw	r22, r4
    eed4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    eed8:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
    eedc:	85 e0       	ldi	r24, 0x05	; 5
    eede:	88 0e       	add	r8, r24
    eee0:	91 1c       	adc	r9, r1
    eee2:	a1 1c       	adc	r10, r1
    eee4:	b1 1c       	adc	r11, r1
    eee6:	0e 5f       	subi	r16, 0xFE	; 254
    eee8:	1f 4f       	sbci	r17, 0xFF	; 255
    eeea:	8f ef       	ldi	r24, 0xFF	; 255
    eeec:	c8 1a       	sub	r12, r24
    eeee:	d8 0a       	sbc	r13, r24
    eef0:	e8 0a       	sbc	r14, r24
    eef2:	f8 0a       	sbc	r15, r24
/// by extracting common code into one function
static void gcode_M861_print_pinda_cal_eeprom() {
    int16_t usteps = 0;
    float mm = 0;
    static const char comma_sep[] PROGMEM = ", ";
    for (uint8_t i = 0; i < 6; i++) {
    eef4:	0a 3b       	cpi	r16, 0xBA	; 186
    eef6:	8f e0       	ldi	r24, 0x0F	; 15
    eef8:	18 07       	cpc	r17, r24
    eefa:	09 f0       	breq	.+2      	; 0xeefe <gcode_M861_print_pinda_cal_eeprom()+0xe0>
    eefc:	b0 cf       	rjmp	.-160    	; 0xee5e <gcode_M861_print_pinda_cal_eeprom()+0x40>
        SERIAL_PROTOCOLRPGM(comma_sep);
        SERIAL_PROTOCOL(usteps);
        SERIAL_PROTOCOLRPGM(comma_sep);
        SERIAL_PROTOCOLLN(mm * 1000);
    }
}
    eefe:	df 91       	pop	r29
    ef00:	cf 91       	pop	r28
    ef02:	1f 91       	pop	r17
    ef04:	0f 91       	pop	r16
    ef06:	ff 90       	pop	r15
    ef08:	ef 90       	pop	r14
    ef0a:	df 90       	pop	r13
    ef0c:	cf 90       	pop	r12
    ef0e:	bf 90       	pop	r11
    ef10:	af 90       	pop	r10
    ef12:	9f 90       	pop	r9
    ef14:	8f 90       	pop	r8
    ef16:	7f 90       	pop	r7
    ef18:	6f 90       	pop	r6
    ef1a:	5f 90       	pop	r5
    ef1c:	4f 90       	pop	r4
    ef1e:	08 95       	ret
        if(i > 0) {
            usteps = eeprom_read_word((uint16_t*) EEPROM_PROBE_TEMP_SHIFT + (i - 1));
            mm = ((float)usteps) / cs.axis_steps_per_mm[Z_AXIS];
            SERIAL_PROTOCOL(i - 1);
        } else {
          SERIAL_PROTOCOLRPGM(MSG_NA);
    ef20:	8a e8       	ldi	r24, 0x8A	; 138
    ef22:	97 e4       	ldi	r25, 0x47	; 71
    ef24:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    ef28:	b8 cf       	rjmp	.-144    	; 0xee9a <gcode_M861_print_pinda_cal_eeprom()+0x7c>

0000ef2a <mmu_M600_load_filament(bool)>:

/// @brief load filament for mmu v2
/// @par nozzle_temp nozzle temperature to load filament
static void mmu_M600_load_filament(bool automatic) {
    uint8_t slot;
    if (automatic) {
    ef2a:	88 23       	and	r24, r24
    ef2c:	71 f1       	breq	.+92     	; 0xef8a <mmu_M600_load_filament(bool)+0x60>
    currentMMUSlot = slot;
}

uint8_t SpoolJoin::nextSlot()
{
    SERIAL_ECHOPGM("SpoolJoin: ");
    ef2e:	81 ec       	ldi	r24, 0xC1	; 193
    ef30:	9c e7       	ldi	r25, 0x7C	; 124
    ef32:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    ef36:	60 91 49 13 	lds	r22, 0x1349	; 0x801349 <SpoolJoin::spooljoin>
    ef3a:	70 e0       	ldi	r23, 0x00	; 0
    ef3c:	90 e0       	ldi	r25, 0x00	; 0
    ef3e:	80 e0       	ldi	r24, 0x00	; 0
    ef40:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
    SERIAL_ECHO((int)currentMMUSlot);

    if (currentMMUSlot >= MMU_FILAMENT_COUNT-1) currentMMUSlot = 0;
    ef44:	80 91 49 13 	lds	r24, 0x1349	; 0x801349 <SpoolJoin::spooljoin>
    ef48:	84 30       	cpi	r24, 0x04	; 4
    ef4a:	d8 f0       	brcs	.+54     	; 0xef82 <mmu_M600_load_filament(bool)+0x58>
    ef4c:	10 92 49 13 	sts	0x1349, r1	; 0x801349 <SpoolJoin::spooljoin>
    else currentMMUSlot++;

    SERIAL_ECHOPGM(" -> ");
    ef50:	8c eb       	ldi	r24, 0xBC	; 188
    ef52:	9c e7       	ldi	r25, 0x7C	; 124
    ef54:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLN((int)currentMMUSlot);
    ef58:	80 91 49 13 	lds	r24, 0x1349	; 0x801349 <SpoolJoin::spooljoin>
    ef5c:	90 e0       	ldi	r25, 0x00	; 0
    ef5e:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>

    return currentMMUSlot;
    ef62:	80 91 49 13 	lds	r24, 0x1349	; 0x801349 <SpoolJoin::spooljoin>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
    ef66:	20 91 ac 05 	lds	r18, 0x05AC	; 0x8005ac <saved_extruder_temperature>
    ef6a:	30 91 ad 05 	lds	r19, 0x05AD	; 0x8005ad <saved_extruder_temperature+0x1>
    ef6e:	30 93 b7 0d 	sts	0x0DB7, r19	; 0x800db7 <target_temperature+0x1>
    ef72:	20 93 b6 0d 	sts	0x0DB6, r18	; 0x800db6 <target_temperature>
        slot = choose_menu_P(_T(MSG_SELECT_FILAMENT), MSG_FILAMENT);
    }

    setTargetHotend(saved_extruder_temperature);

    MMU2::mmu2.load_filament_to_nozzle(slot);
    ef76:	0f 94 bc 0f 	call	0x21f78	; 0x21f78 <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]>

    load_filament_final_feed(); // @@TODO verify
    ef7a:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>
    st_synchronize();
    ef7e:	0d 94 f4 43 	jmp	0x287e8	; 0x287e8 <st_synchronize()>
{
    SERIAL_ECHOPGM("SpoolJoin: ");
    SERIAL_ECHO((int)currentMMUSlot);

    if (currentMMUSlot >= MMU_FILAMENT_COUNT-1) currentMMUSlot = 0;
    else currentMMUSlot++;
    ef82:	8f 5f       	subi	r24, 0xFF	; 255
    ef84:	80 93 49 13 	sts	0x1349, r24	; 0x801349 <SpoolJoin::spooljoin>
    ef88:	e3 cf       	rjmp	.-58     	; 0xef50 <mmu_M600_load_filament(bool)+0x26>
    uint8_t slot;
    if (automatic) {
        slot = SpoolJoin::spooljoin.nextSlot();
    } else {
        // Only ask for the slot if automatic/SpoolJoin is off
        slot = choose_menu_P(_T(MSG_SELECT_FILAMENT), MSG_FILAMENT);
    ef8a:	8c e5       	ldi	r24, 0x5C	; 92
    ef8c:	9b e3       	ldi	r25, 0x3B	; 59
    ef8e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    ef92:	70 e0       	ldi	r23, 0x00	; 0
    ef94:	60 e0       	ldi	r22, 0x00	; 0
    ef96:	0e 94 e8 e4 	call	0x1c9d0	; 0x1c9d0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]>
    ef9a:	e5 cf       	rjmp	.-54     	; 0xef66 <mmu_M600_load_filament(bool)+0x3c>

0000ef9c <gcode_M114()>:

	return final_result;
}

void gcode_M114()
{
    ef9c:	cf 93       	push	r28
    ef9e:	df 93       	push	r29
	SERIAL_PROTOCOLPGM("X:");
    efa0:	89 eb       	ldi	r24, 0xB9	; 185
    efa2:	9c e7       	ldi	r25, 0x7C	; 124
    efa4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOL(current_position[X_AXIS]);
    efa8:	c2 e9       	ldi	r28, 0x92	; 146
    efaa:	d6 e0       	ldi	r29, 0x06	; 6
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
    efac:	68 81       	ld	r22, Y
    efae:	79 81       	ldd	r23, Y+1	; 0x01
    efb0:	8a 81       	ldd	r24, Y+2	; 0x02
    efb2:	9b 81       	ldd	r25, Y+3	; 0x03
    efb4:	42 e0       	ldi	r20, 0x02	; 2
    efb6:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOLPGM(" Y:");
    efba:	85 eb       	ldi	r24, 0xB5	; 181
    efbc:	9c e7       	ldi	r25, 0x7C	; 124
    efbe:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    efc2:	6c 81       	ldd	r22, Y+4	; 0x04
    efc4:	7d 81       	ldd	r23, Y+5	; 0x05
    efc6:	8e 81       	ldd	r24, Y+6	; 0x06
    efc8:	9f 81       	ldd	r25, Y+7	; 0x07
    efca:	42 e0       	ldi	r20, 0x02	; 2
    efcc:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL(current_position[Y_AXIS]);
	SERIAL_PROTOCOLPGM(" Z:");
    efd0:	81 eb       	ldi	r24, 0xB1	; 177
    efd2:	9c e7       	ldi	r25, 0x7C	; 124
    efd4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    efd8:	68 85       	ldd	r22, Y+8	; 0x08
    efda:	79 85       	ldd	r23, Y+9	; 0x09
    efdc:	8a 85       	ldd	r24, Y+10	; 0x0a
    efde:	9b 85       	ldd	r25, Y+11	; 0x0b
    efe0:	42 e0       	ldi	r20, 0x02	; 2
    efe2:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL(current_position[Z_AXIS]);
	SERIAL_PROTOCOLPGM(" E:");
    efe6:	8d ea       	ldi	r24, 0xAD	; 173
    efe8:	9c e7       	ldi	r25, 0x7C	; 124
    efea:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    efee:	6c 85       	ldd	r22, Y+12	; 0x0c
    eff0:	7d 85       	ldd	r23, Y+13	; 0x0d
    eff2:	8e 85       	ldd	r24, Y+14	; 0x0e
    eff4:	9f 85       	ldd	r25, Y+15	; 0x0f
    eff6:	42 e0       	ldi	r20, 0x02	; 2
    eff8:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL(current_position[E_AXIS]);

	SERIAL_PROTOCOLRPGM(_n(" Count X: "));////MSG_COUNT_X
    effc:	83 e7       	ldi	r24, 0x73	; 115
    effe:	95 e6       	ldi	r25, 0x65	; 101
    f000:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOL(float(st_get_position(X_AXIS)) / cs.axis_steps_per_mm[X_AXIS]);
    f004:	80 e0       	ldi	r24, 0x00	; 0
    f006:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
    f00a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f00e:	ce eb       	ldi	r28, 0xBE	; 190
    f010:	dd e0       	ldi	r29, 0x0D	; 13
    f012:	2c 81       	ldd	r18, Y+4	; 0x04
    f014:	3d 81       	ldd	r19, Y+5	; 0x05
    f016:	4e 81       	ldd	r20, Y+6	; 0x06
    f018:	5f 81       	ldd	r21, Y+7	; 0x07
    f01a:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    f01e:	42 e0       	ldi	r20, 0x02	; 2
    f020:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOLPGM(" Y:");
    f024:	89 ea       	ldi	r24, 0xA9	; 169
    f026:	9c e7       	ldi	r25, 0x7C	; 124
    f028:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOL(float(st_get_position(Y_AXIS)) / cs.axis_steps_per_mm[Y_AXIS]);
    f02c:	81 e0       	ldi	r24, 0x01	; 1
    f02e:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
    f032:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f036:	28 85       	ldd	r18, Y+8	; 0x08
    f038:	39 85       	ldd	r19, Y+9	; 0x09
    f03a:	4a 85       	ldd	r20, Y+10	; 0x0a
    f03c:	5b 85       	ldd	r21, Y+11	; 0x0b
    f03e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    f042:	42 e0       	ldi	r20, 0x02	; 2
    f044:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOLPGM(" Z:");
    f048:	85 ea       	ldi	r24, 0xA5	; 165
    f04a:	9c e7       	ldi	r25, 0x7C	; 124
    f04c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOL(float(st_get_position(Z_AXIS)) / cs.axis_steps_per_mm[Z_AXIS]);
    f050:	82 e0       	ldi	r24, 0x02	; 2
    f052:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
    f056:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f05a:	2c 85       	ldd	r18, Y+12	; 0x0c
    f05c:	3d 85       	ldd	r19, Y+13	; 0x0d
    f05e:	4e 85       	ldd	r20, Y+14	; 0x0e
    f060:	5f 85       	ldd	r21, Y+15	; 0x0f
    f062:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    f066:	42 e0       	ldi	r20, 0x02	; 2
    f068:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOLPGM(" E:");
    f06c:	81 ea       	ldi	r24, 0xA1	; 161
    f06e:	9c e7       	ldi	r25, 0x7C	; 124
    f070:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOLLN(float(st_get_position(E_AXIS)) / cs.axis_steps_per_mm[E_AXIS]);
    f074:	83 e0       	ldi	r24, 0x03	; 3
    f076:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
    f07a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f07e:	28 89       	ldd	r18, Y+16	; 0x10
    f080:	39 89       	ldd	r19, Y+17	; 0x11
    f082:	4a 89       	ldd	r20, Y+18	; 0x12
    f084:	5b 89       	ldd	r21, Y+19	; 0x13
    f086:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
}
    f08a:	df 91       	pop	r29
    f08c:	cf 91       	pop	r28
	SERIAL_PROTOCOLPGM(" Y:");
	SERIAL_PROTOCOL(float(st_get_position(Y_AXIS)) / cs.axis_steps_per_mm[Y_AXIS]);
	SERIAL_PROTOCOLPGM(" Z:");
	SERIAL_PROTOCOL(float(st_get_position(Z_AXIS)) / cs.axis_steps_per_mm[Z_AXIS]);
	SERIAL_PROTOCOLPGM(" E:");
	SERIAL_PROTOCOLLN(float(st_get_position(E_AXIS)) / cs.axis_steps_per_mm[E_AXIS]);
    f08e:	0d 94 f6 75 	jmp	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>

0000f092 <gcode_M105()>:
#endif //TMC2130

void gcode_M105()
{
#if defined(TEMP_0_PIN) && TEMP_0_PIN > -1
    SERIAL_PROTOCOLPGM("T:");
    f092:	80 eb       	ldi	r24, 0xB0	; 176
    f094:	9b e7       	ldi	r25, 0x7B	; 123
    f096:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    f09a:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
    f09e:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
    f0a2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
    f0a6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
    f0aa:	41 e0       	ldi	r20, 0x01	; 1
    f0ac:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(degHotend(active_extruder),1);
    SERIAL_PROTOCOLPGM(" /");
    f0b0:	8d ea       	ldi	r24, 0xAD	; 173
    f0b2:	9b e7       	ldi	r25, 0x7B	; 123
    f0b4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
    f0b8:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
    f0bc:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
    f0c0:	07 2e       	mov	r0, r23
    f0c2:	00 0c       	add	r0, r0
    f0c4:	88 0b       	sbc	r24, r24
    f0c6:	99 0b       	sbc	r25, r25
    f0c8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f0cc:	41 e0       	ldi	r20, 0x01	; 1
    f0ce:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(degTargetHotend(active_extruder),1);
#if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1
    SERIAL_PROTOCOLPGM(" B:");
    f0d2:	89 ea       	ldi	r24, 0xA9	; 169
    f0d4:	9b e7       	ldi	r25, 0x7B	; 123
    f0d6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    f0da:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
    f0de:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
    f0e2:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
    f0e6:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
    f0ea:	41 e0       	ldi	r20, 0x01	; 1
    f0ec:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(degBed(),1);
    SERIAL_PROTOCOLPGM(" /");
    f0f0:	86 ea       	ldi	r24, 0xA6	; 166
    f0f2:	9b e7       	ldi	r25, 0x7B	; 123
    f0f4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
};

FORCE_INLINE float degTargetBed() {
  return target_temperature_bed;
    f0f8:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
    f0fc:	70 91 73 06 	lds	r23, 0x0673	; 0x800673 <target_temperature_bed+0x1>
    f100:	07 2e       	mov	r0, r23
    f102:	00 0c       	add	r0, r0
    f104:	88 0b       	sbc	r24, r24
    f106:	99 0b       	sbc	r25, r25
    f108:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f10c:	41 e0       	ldi	r20, 0x01	; 1
    f10e:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(degTargetBed(),1);
#endif //TEMP_BED_PIN
    SERIAL_PROTOCOLPGM(" T0:");
    f112:	81 ea       	ldi	r24, 0xA1	; 161
    f114:	9b e7       	ldi	r25, 0x7B	; 123
    f116:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    f11a:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
    f11e:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
    f122:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
    f126:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
    f12a:	41 e0       	ldi	r20, 0x01	; 1
    f12c:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(degHotend(active_extruder),1);
    SERIAL_PROTOCOLPGM(" /");
    f130:	8e e9       	ldi	r24, 0x9E	; 158
    f132:	9b e7       	ldi	r25, 0x7B	; 123
    f134:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
    f138:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
    f13c:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
    f140:	07 2e       	mov	r0, r23
    f142:	00 0c       	add	r0, r0
    f144:	88 0b       	sbc	r24, r24
    f146:	99 0b       	sbc	r25, r25
    f148:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f14c:	41 e0       	ldi	r20, 0x01	; 1
    f14e:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
#else
    SERIAL_ERROR_START;
    SERIAL_ERRORLNRPGM(_n("No thermistors - no temperature"));////MSG_ERR_NO_THERMISTORS
#endif

    SERIAL_PROTOCOLPGM(" @:");
    f152:	8a e9       	ldi	r24, 0x9A	; 154
    f154:	9b e7       	ldi	r25, 0x7B	; 123
    f156:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
    f15a:	60 91 16 05 	lds	r22, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
    f15e:	70 e0       	ldi	r23, 0x00	; 0
    f160:	90 e0       	ldi	r25, 0x00	; 0
    f162:	80 e0       	ldi	r24, 0x00	; 0
    f164:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
    SERIAL_PROTOCOLPGM("W");
#else
    SERIAL_PROTOCOL(getHeaterPower(active_extruder));
#endif

    SERIAL_PROTOCOLPGM(" B@:");
    f168:	85 e9       	ldi	r24, 0x95	; 149
    f16a:	9b e7       	ldi	r25, 0x7B	; 123
    f16c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    f170:	60 91 1d 06 	lds	r22, 0x061D	; 0x80061d <soft_pwm_bed>
    f174:	70 e0       	ldi	r23, 0x00	; 0
    f176:	90 e0       	ldi	r25, 0x00	; 0
    f178:	80 e0       	ldi	r24, 0x00	; 0
    f17a:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
#else
    SERIAL_PROTOCOL(getHeaterPower(-1));
#endif

#ifdef PINDA_THERMISTOR
    SERIAL_PROTOCOLPGM(" P:");
    f17e:	81 e9       	ldi	r24, 0x91	; 145
    f180:	9b e7       	ldi	r25, 0x7B	; 123
    f182:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
    f186:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
    f18a:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
    f18e:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
    f192:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
    f196:	41 e0       	ldi	r20, 0x01	; 1
    f198:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    SERIAL_PROTOCOL_F(current_temperature_pinda,1);
#endif //PINDA_THERMISTOR

#ifdef AMBIENT_THERMISTOR
    SERIAL_PROTOCOLPGM(" A:");
    f19c:	8d e8       	ldi	r24, 0x8D	; 141
    f19e:	9b e7       	ldi	r25, 0x7B	; 123
    f1a0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    f1a4:	60 91 56 06 	lds	r22, 0x0656	; 0x800656 <current_temperature_ambient>
    f1a8:	70 91 57 06 	lds	r23, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
    f1ac:	80 91 58 06 	lds	r24, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
    f1b0:	90 91 59 06 	lds	r25, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
    f1b4:	41 e0       	ldi	r20, 0x01	; 1
    f1b6:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
        SERIAL_PROTOCOL_F(100 * (1 + (PtA * (raw/OVERSAMPLENR)) + (PtB * sq((raw/OVERSAMPLENR)))), 5);
        SERIAL_PROTOCOLPGM(" Rx0->");
        SERIAL_PROTOCOL_F(raw, 5);
    }
#endif
    SERIAL_PROTOCOLLN();
    f1ba:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0000f1be <host_autoreport()>:
        }
    }

    inline void TimerStart() { auto_report_timer.start(); }
    inline bool TimerRunning()const { return auto_report_timer.running(); }
    inline bool TimerExpired() { return auto_report_timer.expired(auto_report_period * 1000ul); }
    f1be:	20 91 88 14 	lds	r18, 0x1488	; 0x801488 <autoReportFeatures+0x1>
    f1c2:	30 e0       	ldi	r19, 0x00	; 0
    f1c4:	a8 ee       	ldi	r26, 0xE8	; 232
    f1c6:	b3 e0       	ldi	r27, 0x03	; 3
    f1c8:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
    f1cc:	ab 01       	movw	r20, r22
    f1ce:	bc 01       	movw	r22, r24
    f1d0:	89 e8       	ldi	r24, 0x89	; 137
    f1d2:	94 e1       	ldi	r25, 0x14	; 20
    f1d4:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
 * Output autoreport values according to features requested in M155
 */
#if defined(AUTO_REPORT)
void host_autoreport()
{
    if (autoReportFeatures.TimerExpired())
    f1d8:	88 23       	and	r24, r24
    f1da:	99 f0       	breq	.+38     	; 0xf202 <host_autoreport()+0x44>
    f1dc:	80 91 87 14 	lds	r24, 0x1487	; 0x801487 <autoReportFeatures>
    {
        if(autoReportFeatures.Temp()){
    f1e0:	80 fd       	sbrc	r24, 0
            gcode_M105();
    f1e2:	0e 94 49 78 	call	0xf092	; 0xf092 <gcode_M105()>
    f1e6:	80 91 87 14 	lds	r24, 0x1487	; 0x801487 <autoReportFeatures>
        }
        if(autoReportFeatures.Pos()){
    f1ea:	82 fd       	sbrc	r24, 2
            gcode_M114();
    f1ec:	0e 94 ce 77 	call	0xef9c	; 0xef9c <gcode_M114()>
    f1f0:	80 91 87 14 	lds	r24, 0x1487	; 0x801487 <autoReportFeatures>
        }
#if defined(AUTO_REPORT) && (defined(FANCHECK) && (((defined(TACH_0) && (TACH_0 >-1)) || (defined(TACH_1) && (TACH_1 > -1)))))
        if(autoReportFeatures.Fans()){
    f1f4:	81 fd       	sbrc	r24, 1
            gcode_M123();
    f1f6:	0e 94 0b 66 	call	0xcc16	; 0xcc16 <gcode_M123()>
        } else{
          auto_report_timer.stop();
        }
    }

    inline void TimerStart() { auto_report_timer.start(); }
    f1fa:	89 e8       	ldi	r24, 0x89	; 137
    f1fc:	94 e1       	ldi	r25, 0x14	; 20
    f1fe:	0d 94 fb 2c 	jmp	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
            gcode_M123();
        }
#endif //AUTO_REPORT and (FANCHECK and TACH_0 or TACH_1)
        autoReportFeatures.TimerStart();
    }
}
    f202:	08 95       	ret

0000f204 <serialprintlnPGM(char const*)>:
        ++str;
    }
}

void serialprintlnPGM(const char *str) {
    serialprintPGM(str);
    f204:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    MYSERIAL.println();
    f208:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0000f20c <check_babystep()>:
#endif //TEMP_RESIDENCY_TIME
	}
}

void check_babystep()
{
    f20c:	cf 93       	push	r28
	int babystep_z = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)));
    f20e:	81 ea       	ldi	r24, 0xA1	; 161
    f210:	9d e0       	ldi	r25, 0x0D	; 13
    f212:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	}
}

void check_babystep()
{
	int babystep_z = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
    f216:	cb e0       	ldi	r28, 0x0B	; 11
    f218:	8c 9f       	mul	r24, r28
    f21a:	c0 01       	movw	r24, r0
    f21c:	11 24       	eor	r1, r1
    f21e:	80 5b       	subi	r24, 0xB0	; 176
    f220:	92 4f       	sbci	r25, 0xF2	; 242
    f222:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)));

	if ((babystep_z < Z_BABYSTEP_MIN) || (babystep_z > Z_BABYSTEP_MAX)) {
    f226:	81 56       	subi	r24, 0x61	; 97
    f228:	90 4f       	sbci	r25, 0xF0	; 240
    f22a:	80 3a       	cpi	r24, 0xA0	; 160
    f22c:	9f 40       	sbci	r25, 0x0F	; 15
    f22e:	c8 f0       	brcs	.+50     	; 0xf262 <check_babystep()+0x56>
		babystep_z = 0; //if babystep value is out of min max range, set it to 0
		SERIAL_ECHOLNPGM("Z live adjust out of range. Setting to 0");
    f230:	88 e4       	ldi	r24, 0x48	; 72
    f232:	9d e7       	ldi	r25, 0x7D	; 125
    f234:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
		eeprom_write_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),
    f238:	81 ea       	ldi	r24, 0xA1	; 161
    f23a:	9d e0       	ldi	r25, 0x0D	; 13
    f23c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)));

	if ((babystep_z < Z_BABYSTEP_MIN) || (babystep_z > Z_BABYSTEP_MAX)) {
		babystep_z = 0; //if babystep value is out of min max range, set it to 0
		SERIAL_ECHOLNPGM("Z live adjust out of range. Setting to 0");
		eeprom_write_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
    f240:	8c 9f       	mul	r24, r28
    f242:	c0 01       	movw	r24, r0
    f244:	11 24       	eor	r1, r1
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
    f246:	70 e0       	ldi	r23, 0x00	; 0
    f248:	60 e0       	ldi	r22, 0x00	; 0
    f24a:	80 5b       	subi	r24, 0xB0	; 176
    f24c:	92 4f       	sbci	r25, 0xF2	; 242
    f24e:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),
                    babystep_z);
		lcd_show_fullscreen_message_and_wait_P(PSTR("Z live adjust out of range. Setting to 0. Click to continue."));
    f252:	8b e0       	ldi	r24, 0x0B	; 11
    f254:	9d e7       	ldi	r25, 0x7D	; 125
    f256:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
		lcd_update_enable(true);
    f25a:	81 e0       	ldi	r24, 0x01	; 1
	}
}
    f25c:	cf 91       	pop	r28
		SERIAL_ECHOLNPGM("Z live adjust out of range. Setting to 0");
		eeprom_write_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
            s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),
                    babystep_z);
		lcd_show_fullscreen_message_and_wait_P(PSTR("Z live adjust out of range. Setting to 0. Click to continue."));
		lcd_update_enable(true);
    f25e:	0c 94 ac 6e 	jmp	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	}
}
    f262:	cf 91       	pop	r28
    f264:	08 95       	ret

0000f266 <ThermalStop(bool)>:
// This either pauses (for thermal model errors) or stops *without recovery* depending on
// "allow_recovery". If recovery is allowed, this forces a printer-initiated instantanenous pause
// (just like an LCD pause) that bypasses the host pausing functionality. In this state the printer
// is kept in busy state and *must* be recovered from the LCD.
void ThermalStop(bool allow_recovery)
{
    f266:	ff 92       	push	r15
    f268:	0f 93       	push	r16
    f26a:	1f 93       	push	r17
    f26c:	cf 93       	push	r28
    f26e:	df 93       	push	r29
    if(Stopped == false) {
    f270:	90 91 11 05 	lds	r25, 0x0511	; 0x800511 <Stopped>
    f274:	91 11       	cpse	r25, r1
    f276:	4f c0       	rjmp	.+158    	; 0xf316 <ThermalStop(bool)+0xb0>
    f278:	c8 2f       	mov	r28, r24
        Stopped = true;
    f27a:	81 e0       	ldi	r24, 0x01	; 1
    f27c:	80 93 11 05 	sts	0x0511, r24	; 0x800511 <Stopped>

        // Either pause or stop the print
        if(allow_recovery && printJobOngoing()) {
    f280:	cc 23       	and	r28, r28
    f282:	11 f1       	breq	.+68     	; 0xf2c8 <ThermalStop(bool)+0x62>
    f284:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
    f288:	88 23       	and	r24, r24
    f28a:	f1 f0       	breq	.+60     	; 0xf2c8 <ThermalStop(bool)+0x62>
            if (!printingIsPaused()) {
    f28c:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
    f290:	81 11       	cpse	r24, r1
    f292:	22 c0       	rjmp	.+68     	; 0xf2d8 <ThermalStop(bool)+0x72>
                lcd_setalertstatuspgm(_T(MSG_PAUSED_THERMAL_ERROR), LCD_STATUS_CRITICAL);
    f294:	81 ea       	ldi	r24, 0xA1	; 161
    f296:	96 e3       	ldi	r25, 0x36	; 54
    f298:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    f29c:	63 e0       	ldi	r22, 0x03	; 3
    f29e:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
                // we cannot make a distinction for the host here, the pause must be instantaneous
                // so we call the lcd_pause_print to save the print state internally. Thermal errors
                // disable heaters and save the original temperatures to saved_*, which will get
                // overwritten by stop_and_save_print_to_ram. For this corner-case, re-instate the
                // original values after the pause handler is called.
                uint8_t bed_temp = saved_bed_temperature;
    f2a2:	f0 90 ae 05 	lds	r15, 0x05AE	; 0x8005ae <saved_bed_temperature>
                uint16_t ext_temp = saved_extruder_temperature;
    f2a6:	00 91 ac 05 	lds	r16, 0x05AC	; 0x8005ac <saved_extruder_temperature>
    f2aa:	10 91 ad 05 	lds	r17, 0x05AD	; 0x8005ad <saved_extruder_temperature+0x1>
                uint8_t fan_speed = saved_fan_speed;
    f2ae:	d0 91 ab 05 	lds	r29, 0x05AB	; 0x8005ab <saved_fan_speed>
                lcd_pause_print();
    f2b2:	0f 94 64 2a 	call	0x254c8	; 0x254c8 <lcd_pause_print()>
                saved_bed_temperature = bed_temp;
    f2b6:	f0 92 ae 05 	sts	0x05AE, r15	; 0x8005ae <saved_bed_temperature>
                saved_extruder_temperature = ext_temp;
    f2ba:	10 93 ad 05 	sts	0x05AD, r17	; 0x8005ad <saved_extruder_temperature+0x1>
    f2be:	00 93 ac 05 	sts	0x05AC, r16	; 0x8005ac <saved_extruder_temperature>
                saved_fan_speed = fan_speed;
    f2c2:	d0 93 ab 05 	sts	0x05AB, r29	; 0x8005ab <saved_fan_speed>
    f2c6:	08 c0       	rjmp	.+16     	; 0xf2d8 <ThermalStop(bool)+0x72>
            }
        } else {
            // We got a hard thermal error and/or there is no print going on. Just stop.
            print_stop(false, true);
    f2c8:	61 e0       	ldi	r22, 0x01	; 1
    f2ca:	80 e0       	ldi	r24, 0x00	; 0
    f2cc:	0e 94 7f f5 	call	0x1eafe	; 0x1eafe <print_stop(bool, bool)>
        }

        // Report the error on the serial
        serialprintPGM(allow_recovery ? echomagic : errormagic);
    f2d0:	88 ea       	ldi	r24, 0xA8	; 168
    f2d2:	9a ea       	ldi	r25, 0xAA	; 170
    f2d4:	cc 23       	and	r28, r28
    f2d6:	11 f0       	breq	.+4      	; 0xf2dc <ThermalStop(bool)+0x76>
    f2d8:	80 ed       	ldi	r24, 0xD0	; 208
    f2da:	9a ea       	ldi	r25, 0xAA	; 170
    f2dc:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ERRORLNRPGM(MSG_ERR_STOPPED);
    f2e0:	8c ee       	ldi	r24, 0xEC	; 236
    f2e2:	95 e6       	ldi	r25, 0x65	; 101
    f2e4:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

        // Eventually report the stopped status on the lcd (though this is usually overridden by a
        // higher-priority alert status message)
        LCD_MESSAGERPGM(_T(MSG_STOPPED));
    f2e8:	86 e9       	ldi	r24, 0x96	; 150
    f2ea:	96 e3       	ldi	r25, 0x36	; 54
    f2ec:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    f2f0:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

        // Make a warning sound! We cannot use Sound_MakeCustom as this would stop further moves.
        // Turn on the speaker here (if not already), and turn it off when back in the main loop.
        WRITE(BEEPER, HIGH);
    f2f4:	9f b7       	in	r25, 0x3f	; 63
    f2f6:	f8 94       	cli
    f2f8:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    f2fc:	84 60       	ori	r24, 0x04	; 4
    f2fe:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
    f302:	9f bf       	out	0x3f, r25	; 63

        // Always return to the status screen to ensure the NEW error is immediately shown.
        lcd_return_to_status();
    f304:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>

        if(!allow_recovery) {
    f308:	c1 11       	cpse	r28, r1
    f30a:	05 c0       	rjmp	.+10     	; 0xf316 <ThermalStop(bool)+0xb0>
            // prevent menu access for all fatal errors
            menu_set_block(MENU_BLOCK_THERMAL_ERROR);
    f30c:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
    f310:	81 60       	ori	r24, 0x01	; 1
    f312:	80 93 d6 03 	sts	0x03D6, r24	; 0x8003d6 <menu_block_mask>
        }
    }
}
    f316:	df 91       	pop	r29
    f318:	cf 91       	pop	r28
    f31a:	1f 91       	pop	r17
    f31c:	0f 91       	pop	r16
    f31e:	ff 90       	pop	r15
    f320:	08 95       	ret

0000f322 <kill(char const*)>:
#endif //AUTO_REPORT
  host_keepalive();
  M79_timer_update_status();
}

void kill(const char *full_screen_message) {
    f322:	ec 01       	movw	r28, r24
    cli(); // Stop interrupts
    f324:	f8 94       	cli
    disable_heater();
    f326:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>

    disable_x();
    f32a:	17 9a       	sbi	0x02, 7	; 2
    f32c:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
    disable_y();
    f330:	16 9a       	sbi	0x02, 6	; 2
    f332:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
    poweroff_z();
    disable_e0();
    f336:	14 9a       	sbi	0x02, 4	; 2

    SERIAL_ERROR_START;
    f338:	88 ea       	ldi	r24, 0xA8	; 168
    f33a:	9a ea       	ldi	r25, 0xAA	; 170
    f33c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORLNRPGM(PSTR("Printer halted. kill() called!"));
    f340:	8c ee       	ldi	r24, 0xEC	; 236
    f342:	9c e7       	ldi	r25, 0x7C	; 124
    f344:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    if (full_screen_message != NULL) {
    f348:	20 97       	sbiw	r28, 0x00	; 0
    f34a:	79 f0       	breq	.+30     	; 0xf36a <kill(char const*)+0x48>
        SERIAL_ERRORLNRPGM(full_screen_message);
    f34c:	ce 01       	movw	r24, r28
    f34e:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    f352:	be 01       	movw	r22, r28
    f354:	85 e9       	ldi	r24, 0x95	; 149
    f356:	9c e0       	ldi	r25, 0x0C	; 12
    f358:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
    f35c:	62 e4       	ldi	r22, 0x42	; 66
    f35e:	84 e9       	ldi	r24, 0x94	; 148
    f360:	9c e0       	ldi	r25, 0x0C	; 12
    f362:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>

    // update eeprom with the correct kill message to be shown on startup
    eeprom_write_word_notify((uint16_t*)EEPROM_KILL_MESSAGE, (uint16_t)full_screen_message);
    eeprom_write_byte_notify((uint8_t*)EEPROM_KILL_PENDING_FLAG, KILL_PENDING_FLAG);

    softReset();
    f366:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>
    SERIAL_ERRORLNRPGM(PSTR("Printer halted. kill() called!"));

    if (full_screen_message != NULL) {
        SERIAL_ERRORLNRPGM(full_screen_message);
    } else {
        full_screen_message = PSTR("KILLED.");
    f36a:	c4 ee       	ldi	r28, 0xE4	; 228
    f36c:	dc e7       	ldi	r29, 0x7C	; 124
    f36e:	f1 cf       	rjmp	.-30     	; 0xf352 <kill(char const*)+0x30>

0000f370 <check_Z_crash()>:
#endif //TMC2130

#ifdef TMC2130
void check_Z_crash(void)
{
	if (!READ(Z_TMC2130_DIAG)) { //Z crash
    f370:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
    f374:	86 fd       	sbrc	r24, 6
    f376:	35 c0       	rjmp	.+106    	; 0xf3e2 <check_Z_crash()+0x72>
		FORCE_HIGH_POWER_END;
    f378:	80 e0       	ldi	r24, 0x00	; 0
    f37a:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
		current_position[Z_AXIS] = 0;
    f37e:	10 92 9a 06 	sts	0x069A, r1	; 0x80069a <current_position+0x8>
    f382:	10 92 9b 06 	sts	0x069B, r1	; 0x80069b <current_position+0x9>
    f386:	10 92 9c 06 	sts	0x069C, r1	; 0x80069c <current_position+0xa>
    f38a:	10 92 9d 06 	sts	0x069D, r1	; 0x80069d <current_position+0xb>
		plan_set_position_curposXYZE();
    f38e:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
		current_position[Z_AXIS] += MESH_HOME_Z_SEARCH;
    f392:	20 e0       	ldi	r18, 0x00	; 0
    f394:	30 e0       	ldi	r19, 0x00	; 0
    f396:	40 ea       	ldi	r20, 0xA0	; 160
    f398:	50 e4       	ldi	r21, 0x40	; 64
    f39a:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
    f39e:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
    f3a2:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
    f3a6:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
    f3aa:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    f3ae:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
    f3b2:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
    f3b6:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
    f3ba:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
		plan_buffer_line_curposXYZE(max_feedrate[Z_AXIS]);
    f3be:	e0 91 71 02 	lds	r30, 0x0271	; 0x800271 <max_feedrate>
    f3c2:	f0 91 72 02 	lds	r31, 0x0272	; 0x800272 <max_feedrate+0x1>
    f3c6:	60 85       	ldd	r22, Z+8	; 0x08
    f3c8:	71 85       	ldd	r23, Z+9	; 0x09
    f3ca:	82 85       	ldd	r24, Z+10	; 0x0a
    f3cc:	93 85       	ldd	r25, Z+11	; 0x0b
    f3ce:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
		st_synchronize();
    f3d2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
		kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
    f3d6:	8f e8       	ldi	r24, 0x8F	; 143
    f3d8:	93 e6       	ldi	r25, 0x63	; 99
    f3da:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    f3de:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>
	}
}
    f3e2:	08 95       	ret

0000f3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>:
#ifdef TMC2130
void homeaxis(uint8_t axis, uint8_t cnt, uint8_t* pstep)
#else
void homeaxis(uint8_t axis, uint8_t cnt)
#endif //TMC2130
{
    f3e4:	2f 92       	push	r2
    f3e6:	3f 92       	push	r3
    f3e8:	4f 92       	push	r4
    f3ea:	5f 92       	push	r5
    f3ec:	6f 92       	push	r6
    f3ee:	7f 92       	push	r7
    f3f0:	8f 92       	push	r8
    f3f2:	9f 92       	push	r9
    f3f4:	af 92       	push	r10
    f3f6:	bf 92       	push	r11
    f3f8:	cf 92       	push	r12
    f3fa:	df 92       	push	r13
    f3fc:	ef 92       	push	r14
    f3fe:	ff 92       	push	r15
    f400:	0f 93       	push	r16
    f402:	1f 93       	push	r17
    f404:	cf 93       	push	r28
    f406:	df 93       	push	r29
    f408:	cd b7       	in	r28, 0x3d	; 61
    f40a:	de b7       	in	r29, 0x3e	; 62
    f40c:	60 97       	sbiw	r28, 0x10	; 16
    f40e:	0f b6       	in	r0, 0x3f	; 63
    f410:	f8 94       	cli
    f412:	de bf       	out	0x3e, r29	; 62
    f414:	0f be       	out	0x3f, r0	; 63
    f416:	cd bf       	out	0x3d, r28	; 61
    f418:	28 2e       	mov	r2, r24
    f41a:	6e 87       	std	Y+14, r22	; 0x0e
    f41c:	5a 87       	std	Y+10, r21	; 0x0a
    f41e:	49 87       	std	Y+9, r20	; 0x09
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
    f420:	20 91 b7 02 	lds	r18, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    f424:	2d 87       	std	Y+13, r18	; 0x0d
  check_endstops = check;
    f426:	77 24       	eor	r7, r7
    f428:	73 94       	inc	r7
    f42a:	70 92 b7 02 	sts	0x02B7, r7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	bool endstops_enabled  = enable_endstops(true); //RP: endstops should be allways enabled durring homing
#define HOMEAXIS_DO(LETTER) \
((LETTER##_MIN_PIN > -1 && LETTER##_HOME_DIR==-1) || (LETTER##_MAX_PIN > -1 && LETTER##_HOME_DIR==1))
    if ((axis==X_AXIS)?HOMEAXIS_DO(X):(axis==Y_AXIS)?HOMEAXIS_DO(Y):0)
    f42e:	42 e0       	ldi	r20, 0x02	; 2
    f430:	84 17       	cp	r24, r20
    f432:	09 f4       	brne	.+2      	; 0xf436 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x52>
    f434:	d4 c1       	rjmp	.+936    	; 0xf7de <homeaxis(unsigned char, unsigned char, unsigned char*)+0x3fa>
XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_max_pos,    MAX_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_home_pos,   HOME_POS);
XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
XYZ_CONSTS_FROM_CONFIG(float, home_retract_mm, HOME_RETRACT_MM);
XYZ_CONSTS_FROM_CONFIG(signed char, home_dir,  HOME_DIR);
    f436:	08 2f       	mov	r16, r24
    f438:	10 e0       	ldi	r17, 0x00	; 0
    f43a:	f8 01       	movw	r30, r16
    f43c:	e6 57       	subi	r30, 0x76	; 118
    f43e:	f4 48       	sbci	r31, 0x84	; 132
#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
DEFINE_PGM_READ_ANY(signed char, byte);
    f440:	34 90       	lpm	r3, Z
	bool endstops_enabled  = enable_endstops(true); //RP: endstops should be allways enabled durring homing
#define HOMEAXIS_DO(LETTER) \
((LETTER##_MIN_PIN > -1 && LETTER##_HOME_DIR==-1) || (LETTER##_MAX_PIN > -1 && LETTER##_HOME_DIR==1))
    if ((axis==X_AXIS)?HOMEAXIS_DO(X):(axis==Y_AXIS)?HOMEAXIS_DO(Y):0)
	{
        int axis_home_dir = home_dir(axis);
    f442:	83 2d       	mov	r24, r3
    f444:	03 2c       	mov	r0, r3
    f446:	00 0c       	add	r0, r0
    f448:	99 0b       	sbc	r25, r25
    f44a:	9c 87       	std	Y+12, r25	; 0x0c
    f44c:	8b 87       	std	Y+11, r24	; 0x0b
        feedrate = homing_feedrate[axis];
    f44e:	d8 01       	movw	r26, r16
    f450:	aa 0f       	add	r26, r26
    f452:	bb 1f       	adc	r27, r27
    f454:	aa 0f       	add	r26, r26
    f456:	bb 1f       	adc	r27, r27
    f458:	ba 83       	std	Y+2, r27	; 0x02
    f45a:	a9 83       	std	Y+1, r26	; 0x01
    f45c:	fd 01       	movw	r30, r26
    f45e:	e3 53       	subi	r30, 0x33	; 51
    f460:	fd 4f       	sbci	r31, 0xFD	; 253
    f462:	80 81       	ld	r24, Z
    f464:	91 81       	ldd	r25, Z+1	; 0x01
    f466:	a2 81       	ldd	r26, Z+2	; 0x02
    f468:	b3 81       	ldd	r27, Z+3	; 0x03
    f46a:	8b 83       	std	Y+3, r24	; 0x03
    f46c:	9c 83       	std	Y+4, r25	; 0x04
    f46e:	ad 83       	std	Y+5, r26	; 0x05
    f470:	be 83       	std	Y+6, r27	; 0x06
    f472:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    f476:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    f47a:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    f47e:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
        float feedrate_mm_s = get_feedrate_mm_s(feedrate);
    f482:	bc 01       	movw	r22, r24
    f484:	cd 01       	movw	r24, r26
    f486:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
    f48a:	6b 01       	movw	r12, r22
    f48c:	7c 01       	movw	r14, r24

#ifdef TMC2130
    	tmc2130_home_enter(X_AXIS_MASK << axis);
    f48e:	81 e0       	ldi	r24, 0x01	; 1
    f490:	02 2c       	mov	r0, r2
    f492:	01 c0       	rjmp	.+2      	; 0xf496 <homeaxis(unsigned char, unsigned char, unsigned char*)+0xb2>
    f494:	88 0f       	add	r24, r24
    f496:	0a 94       	dec	r0
    f498:	ea f7       	brpl	.-6      	; 0xf494 <homeaxis(unsigned char, unsigned char, unsigned char*)+0xb0>
    f49a:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>


        // Move away a bit, so that the print head does not touch the end position,
        // and the following movement to endstop has a chance to achieve the required velocity
        // for the stall guard to work.
        current_position[axis] = 0;
    f49e:	a9 81       	ldd	r26, Y+1	; 0x01
    f4a0:	ba 81       	ldd	r27, Y+2	; 0x02
    f4a2:	ae 56       	subi	r26, 0x6E	; 110
    f4a4:	b9 4f       	sbci	r27, 0xF9	; 249
    f4a6:	b8 87       	std	Y+8, r27	; 0x08
    f4a8:	af 83       	std	Y+7, r26	; 0x07
    f4aa:	fd 01       	movw	r30, r26
    f4ac:	10 82       	st	Z, r1
    f4ae:	11 82       	std	Z+1, r1	; 0x01
    f4b0:	12 82       	std	Z+2, r1	; 0x02
    f4b2:	13 82       	std	Z+3, r1	; 0x03
        plan_set_position_curposXYZE();
    f4b4:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
		set_destination_to_current();
    f4b8:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
//        destination[axis] = 11.f;
        destination[axis] = -3.f * axis_home_dir;
    f4bc:	63 2d       	mov	r22, r3
    f4be:	03 2c       	mov	r0, r3
    f4c0:	00 0c       	add	r0, r0
    f4c2:	77 0b       	sbc	r23, r23
    f4c4:	88 0b       	sbc	r24, r24
    f4c6:	99 0b       	sbc	r25, r25
    f4c8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f4cc:	4b 01       	movw	r8, r22
    f4ce:	5c 01       	movw	r10, r24
    f4d0:	49 81       	ldd	r20, Y+1	; 0x01
    f4d2:	5a 81       	ldd	r21, Y+2	; 0x02
    f4d4:	4c 58       	subi	r20, 0x8C	; 140
    f4d6:	59 4f       	sbci	r21, 0xF9	; 249
    f4d8:	58 8b       	std	Y+16, r21	; 0x10
    f4da:	4f 87       	std	Y+15, r20	; 0x0f
    f4dc:	20 e0       	ldi	r18, 0x00	; 0
    f4de:	30 e0       	ldi	r19, 0x00	; 0
    f4e0:	40 e4       	ldi	r20, 0x40	; 64
    f4e2:	50 ec       	ldi	r21, 0xC0	; 192
    f4e4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f4e8:	af 85       	ldd	r26, Y+15	; 0x0f
    f4ea:	b8 89       	ldd	r27, Y+16	; 0x10
    f4ec:	6d 93       	st	X+, r22
    f4ee:	7d 93       	st	X+, r23
    f4f0:	8d 93       	st	X+, r24
    f4f2:	9c 93       	st	X, r25
    f4f4:	13 97       	sbiw	r26, 0x03	; 3
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f4f6:	c7 01       	movw	r24, r14
    f4f8:	b6 01       	movw	r22, r12
    f4fa:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f4fe:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        // Move away from the possible collision with opposite endstop with the collision detection disabled.
        endstops_hit_on_purpose();
    f502:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
    f506:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
        enable_endstops(false);
        current_position[axis] = 0;
    f50a:	ef 81       	ldd	r30, Y+7	; 0x07
    f50c:	f8 85       	ldd	r31, Y+8	; 0x08
    f50e:	10 82       	st	Z, r1
    f510:	11 82       	std	Z+1, r1	; 0x01
    f512:	12 82       	std	Z+2, r1	; 0x02
    f514:	13 82       	std	Z+3, r1	; 0x03
        plan_set_position_curposXYZE();
    f516:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
        destination[axis] = 1. * axis_home_dir;
    f51a:	af 85       	ldd	r26, Y+15	; 0x0f
    f51c:	b8 89       	ldd	r27, Y+16	; 0x10
    f51e:	8d 92       	st	X+, r8
    f520:	9d 92       	st	X+, r9
    f522:	ad 92       	st	X+, r10
    f524:	bc 92       	st	X, r11
    f526:	13 97       	sbiw	r26, 0x03	; 3
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f528:	c7 01       	movw	r24, r14
    f52a:	b6 01       	movw	r22, r12
    f52c:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f530:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    f534:	70 92 b7 02 	sts	0x02B7, r7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    { return pgm_read_any(&array##_P[axis]); }

XYZ_CONSTS_FROM_CONFIG(float, base_min_pos,    MIN_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_max_pos,    MAX_POS);
XYZ_CONSTS_FROM_CONFIG(float, base_home_pos,   HOME_POS);
XYZ_CONSTS_FROM_CONFIG(float, max_length,      MAX_LENGTH);
    f538:	e9 81       	ldd	r30, Y+1	; 0x01
    f53a:	fa 81       	ldd	r31, Y+2	; 0x02
    f53c:	e2 58       	subi	r30, 0x82	; 130
    f53e:	f4 48       	sbci	r31, 0x84	; 132

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    f540:	45 90       	lpm	r4, Z+
    f542:	55 90       	lpm	r5, Z+
    f544:	65 90       	lpm	r6, Z+
    f546:	74 90       	lpm	r7, Z
        destination[axis] = 1. * axis_home_dir;
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
        st_synchronize();
        // Now continue to move up to the left end stop with the collision detection enabled.
        enable_endstops(true);
        destination[axis] = 1.1 * axis_home_dir * max_length(axis);
    f548:	2d ec       	ldi	r18, 0xCD	; 205
    f54a:	3c ec       	ldi	r19, 0xCC	; 204
    f54c:	4c e8       	ldi	r20, 0x8C	; 140
    f54e:	5f e3       	ldi	r21, 0x3F	; 63
    f550:	c5 01       	movw	r24, r10
    f552:	b4 01       	movw	r22, r8
    f554:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f558:	a3 01       	movw	r20, r6
    f55a:	92 01       	movw	r18, r4
    f55c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f560:	ef 85       	ldd	r30, Y+15	; 0x0f
    f562:	f8 89       	ldd	r31, Y+16	; 0x10
    f564:	60 83       	st	Z, r22
    f566:	71 83       	std	Z+1, r23	; 0x01
    f568:	82 83       	std	Z+2, r24	; 0x02
    f56a:	93 83       	std	Z+3, r25	; 0x03
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f56c:	c7 01       	movw	r24, r14
    f56e:	b6 01       	movw	r22, r12
    f570:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f574:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    f578:	71 2c       	mov	r7, r1
    f57a:	61 2c       	mov	r6, r1
		for (uint8_t i = 0; i < cnt; i++)
		{
			// Move away from the collision to a known distance from the left end stop with the collision detection disabled.
			endstops_hit_on_purpose();
			enable_endstops(false);
			current_position[axis] = 0;
    f57c:	4f 80       	ldd	r4, Y+7	; 0x07
    f57e:	58 84       	ldd	r5, Y+8	; 0x08
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
        st_synchronize();
		for (uint8_t i = 0; i < cnt; i++)
		{
			// Move away from the collision to a known distance from the left end stop with the collision detection disabled.
			endstops_hit_on_purpose();
    f580:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
    f584:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
			enable_endstops(false);
			current_position[axis] = 0;
    f588:	d2 01       	movw	r26, r4
    f58a:	1d 92       	st	X+, r1
    f58c:	1d 92       	st	X+, r1
    f58e:	1d 92       	st	X+, r1
    f590:	1c 92       	st	X, r1
    f592:	13 97       	sbiw	r26, 0x03	; 3
			plan_set_position_curposXYZE();
    f594:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
			destination[axis] = -10.f * axis_home_dir;
    f598:	20 e0       	ldi	r18, 0x00	; 0
    f59a:	30 e0       	ldi	r19, 0x00	; 0
    f59c:	40 e2       	ldi	r20, 0x20	; 32
    f59e:	51 ec       	ldi	r21, 0xC1	; 193
    f5a0:	c5 01       	movw	r24, r10
    f5a2:	b4 01       	movw	r22, r8
    f5a4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f5a8:	ef 85       	ldd	r30, Y+15	; 0x0f
    f5aa:	f8 89       	ldd	r31, Y+16	; 0x10
    f5ac:	60 83       	st	Z, r22
    f5ae:	71 83       	std	Z+1, r23	; 0x01
    f5b0:	82 83       	std	Z+2, r24	; 0x02
    f5b2:	93 83       	std	Z+3, r25	; 0x03
			plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f5b4:	c7 01       	movw	r24, r14
    f5b6:	b6 01       	movw	r22, r12
    f5b8:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
			st_synchronize();
    f5bc:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
			endstops_hit_on_purpose();
    f5c0:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
    f5c4:	f1 e0       	ldi	r31, 0x01	; 1
    f5c6:	f0 93 b7 02 	sts	0x02B7, r31	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
			// Now move left up to the collision, this time with a repeatable velocity.
			enable_endstops(true);
			destination[axis] = 11.f * axis_home_dir;
    f5ca:	20 e0       	ldi	r18, 0x00	; 0
    f5cc:	30 e0       	ldi	r19, 0x00	; 0
    f5ce:	40 e3       	ldi	r20, 0x30	; 48
    f5d0:	51 e4       	ldi	r21, 0x41	; 65
    f5d2:	c5 01       	movw	r24, r10
    f5d4:	b4 01       	movw	r22, r8
    f5d6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f5da:	af 85       	ldd	r26, Y+15	; 0x0f
    f5dc:	b8 89       	ldd	r27, Y+16	; 0x10
    f5de:	6d 93       	st	X+, r22
    f5e0:	7d 93       	st	X+, r23
    f5e2:	8d 93       	st	X+, r24
    f5e4:	9c 93       	st	X, r25
    f5e6:	13 97       	sbiw	r26, 0x03	; 3
#ifdef TMC2130
			feedrate = homing_feedrate[axis];
    f5e8:	8b 81       	ldd	r24, Y+3	; 0x03
    f5ea:	9c 81       	ldd	r25, Y+4	; 0x04
    f5ec:	ad 81       	ldd	r26, Y+5	; 0x05
    f5ee:	be 81       	ldd	r27, Y+6	; 0x06
    f5f0:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    f5f4:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    f5f8:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    f5fc:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
#else //TMC2130
			feedrate = homing_feedrate[axis] / 2;
      feedrate_mm_s = get_feedrate_mm_s(feedrate);
#endif //TMC2130
			plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f600:	c7 01       	movw	r24, r14
    f602:	b6 01       	movw	r22, r12
    f604:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
			st_synchronize();
    f608:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#ifdef TMC2130
			uint16_t mscnt = tmc2130_rd_MSCNT(axis);
    f60c:	82 2d       	mov	r24, r2
    f60e:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
    f612:	9c 01       	movw	r18, r24
    f614:	44 e0       	ldi	r20, 0x04	; 4
    f616:	36 95       	lsr	r19
    f618:	27 95       	ror	r18
    f61a:	4a 95       	dec	r20
    f61c:	e1 f7       	brne	.-8      	; 0xf616 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x232>
			if (pstep) pstep[i] = mscnt >> 4;
    f61e:	a9 85       	ldd	r26, Y+9	; 0x09
    f620:	ba 85       	ldd	r27, Y+10	; 0x0a
    f622:	10 97       	sbiw	r26, 0x00	; 0
    f624:	21 f0       	breq	.+8      	; 0xf62e <homeaxis(unsigned char, unsigned char, unsigned char*)+0x24a>
    f626:	fd 01       	movw	r30, r26
    f628:	e6 0d       	add	r30, r6
    f62a:	f7 1d       	adc	r31, r7
    f62c:	20 83       	st	Z, r18
			printf_P(PSTR("%3d step=%2d mscnt=%4d\n"), i, mscnt >> 4, mscnt);
    f62e:	9f 93       	push	r25
    f630:	8f 93       	push	r24
    f632:	3f 93       	push	r19
    f634:	2f 93       	push	r18
    f636:	7f 92       	push	r7
    f638:	6f 92       	push	r6
    f63a:	e6 e6       	ldi	r30, 0x66	; 102
    f63c:	fb e7       	ldi	r31, 0x7B	; 123
    f63e:	ff 93       	push	r31
    f640:	ef 93       	push	r30
    f642:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    f646:	4f ef       	ldi	r20, 0xFF	; 255
    f648:	64 1a       	sub	r6, r20
    f64a:	74 0a       	sbc	r7, r20
        // Now continue to move up to the left end stop with the collision detection enabled.
        enable_endstops(true);
        destination[axis] = 1.1 * axis_home_dir * max_length(axis);
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
        st_synchronize();
		for (uint8_t i = 0; i < cnt; i++)
    f64c:	0f b6       	in	r0, 0x3f	; 63
    f64e:	f8 94       	cli
    f650:	de bf       	out	0x3e, r29	; 62
    f652:	0f be       	out	0x3f, r0	; 63
    f654:	cd bf       	out	0x3d, r28	; 61
    f656:	9e 85       	ldd	r25, Y+14	; 0x0e
    f658:	69 16       	cp	r6, r25
    f65a:	08 f4       	brcc	.+2      	; 0xf65e <homeaxis(unsigned char, unsigned char, unsigned char*)+0x27a>
    f65c:	91 cf       	rjmp	.-222    	; 0xf580 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x19c>
			uint16_t mscnt = tmc2130_rd_MSCNT(axis);
			if (pstep) pstep[i] = mscnt >> 4;
			printf_P(PSTR("%3d step=%2d mscnt=%4d\n"), i, mscnt >> 4, mscnt);
#endif //TMC2130
		}
		endstops_hit_on_purpose();
    f65e:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
    f662:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
		enable_endstops(false);

#ifdef TMC2130
		uint8_t orig = tmc2130_home_origin[axis];
		uint8_t back = tmc2130_home_bsteps[axis];
		if (tmc2130_home_enabled && (orig <= 63))
    f666:	80 91 f2 04 	lds	r24, 0x04F2	; 0x8004f2 <tmc2130_home_enabled>
    f66a:	88 23       	and	r24, r24
    f66c:	09 f4       	brne	.+2      	; 0xf670 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x28c>
    f66e:	b2 c0       	rjmp	.+356    	; 0xf7d4 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x3f0>
		}
		endstops_hit_on_purpose();
		enable_endstops(false);

#ifdef TMC2130
		uint8_t orig = tmc2130_home_origin[axis];
    f670:	f8 01       	movw	r30, r16
    f672:	ed 50       	subi	r30, 0x0D	; 13
    f674:	fb 4f       	sbci	r31, 0xFB	; 251
    f676:	60 81       	ld	r22, Z
		uint8_t back = tmc2130_home_bsteps[axis];
		if (tmc2130_home_enabled && (orig <= 63))
    f678:	60 34       	cpi	r22, 0x40	; 64
    f67a:	08 f0       	brcs	.+2      	; 0xf67e <homeaxis(unsigned char, unsigned char, unsigned char*)+0x29a>
    f67c:	ab c0       	rjmp	.+342    	; 0xf7d4 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x3f0>
		endstops_hit_on_purpose();
		enable_endstops(false);

#ifdef TMC2130
		uint8_t orig = tmc2130_home_origin[axis];
		uint8_t back = tmc2130_home_bsteps[axis];
    f67e:	f8 01       	movw	r30, r16
    f680:	e6 5a       	subi	r30, 0xA6	; 166
    f682:	fd 4f       	sbci	r31, 0xFD	; 253
    f684:	a0 81       	ld	r26, Z
    f686:	ab 83       	std	Y+3, r26	; 0x03
	return stat;
}

uint16_t tmc2130_get_res(uint8_t axis)
{
	return tmc2130_mres2usteps(tmc2130_mres[axis]);
    f688:	f8 01       	movw	r30, r16
    f68a:	eb 50       	subi	r30, 0x0B	; 11
    f68c:	fb 4f       	sbci	r31, 0xFB	; 251
    f68e:	80 81       	ld	r24, Z
    f690:	40 e0       	ldi	r20, 0x00	; 0
    f692:	51 e0       	ldi	r21, 0x01	; 1
    f694:	02 c0       	rjmp	.+4      	; 0xf69a <homeaxis(unsigned char, unsigned char, unsigned char*)+0x2b6>
    f696:	56 95       	lsr	r21
    f698:	47 95       	ror	r20
    f69a:	8a 95       	dec	r24
    f69c:	e2 f7       	brpl	.-8      	; 0xf696 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x2b2>
		if (tmc2130_home_enabled && (orig <= 63))
		{
			tmc2130_goto_step(axis, orig, 2, 1000, tmc2130_get_res(axis));
    f69e:	82 2d       	mov	r24, r2
    f6a0:	0f 94 e2 8b 	call	0x317c4	; 0x317c4 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]>
			if (back > 0)
    f6a4:	bb 81       	ldd	r27, Y+3	; 0x03
    f6a6:	bb 23       	and	r27, r27
    f6a8:	39 f0       	breq	.+14     	; 0xf6b8 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x2d4>
				tmc2130_do_steps(axis, back, -axis_home_dir, 1000);
    f6aa:	43 2d       	mov	r20, r3
    f6ac:	41 95       	neg	r20
    f6ae:	6b 2f       	mov	r22, r27
    f6b0:	70 e0       	ldi	r23, 0x00	; 0
		}
		else
			tmc2130_do_steps(axis, 8, -axis_home_dir, 1000);
    f6b2:	82 2d       	mov	r24, r2
    f6b4:	0f 94 b3 8b 	call	0x31766	; 0x31766 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]>
		tmc2130_home_exit();
    f6b8:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
#endif //TMC2130

        axis_is_at_home(axis);
    f6bc:	82 2d       	mov	r24, r2
    f6be:	0e 94 31 5a 	call	0xb462	; 0xb462 <axis_is_at_home(unsigned char)>
        axis_known_position[axis] = true;
    f6c2:	f8 01       	movw	r30, r16
    f6c4:	e1 57       	subi	r30, 0x71	; 113
    f6c6:	f9 4f       	sbci	r31, 0xF9	; 249
    f6c8:	81 e0       	ldi	r24, 0x01	; 1
    f6ca:	80 83       	st	Z, r24
        // Move from minimum
#ifdef TMC2130
        float dist = - axis_home_dir * 0.01f * tmc2130_home_fsteps[axis];
    f6cc:	6b 85       	ldd	r22, Y+11	; 0x0b
    f6ce:	7c 85       	ldd	r23, Y+12	; 0x0c
    f6d0:	71 95       	neg	r23
    f6d2:	61 95       	neg	r22
    f6d4:	71 09       	sbc	r23, r1
    f6d6:	07 2e       	mov	r0, r23
    f6d8:	00 0c       	add	r0, r0
    f6da:	88 0b       	sbc	r24, r24
    f6dc:	99 0b       	sbc	r25, r25
    f6de:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f6e2:	2a e0       	ldi	r18, 0x0A	; 10
    f6e4:	37 ed       	ldi	r19, 0xD7	; 215
    f6e6:	43 e2       	ldi	r20, 0x23	; 35
    f6e8:	5c e3       	ldi	r21, 0x3C	; 60
    f6ea:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f6ee:	4b 01       	movw	r8, r22
    f6f0:	5c 01       	movw	r10, r24
    f6f2:	f8 01       	movw	r30, r16
    f6f4:	e8 5a       	subi	r30, 0xA8	; 168
    f6f6:	fd 4f       	sbci	r31, 0xFD	; 253
    f6f8:	60 81       	ld	r22, Z
    f6fa:	70 e0       	ldi	r23, 0x00	; 0
    f6fc:	90 e0       	ldi	r25, 0x00	; 0
    f6fe:	80 e0       	ldi	r24, 0x00	; 0
    f700:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f704:	9b 01       	movw	r18, r22
    f706:	ac 01       	movw	r20, r24
    f708:	c5 01       	movw	r24, r10
    f70a:	b4 01       	movw	r22, r8
    f70c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f710:	4b 01       	movw	r8, r22
    f712:	5c 01       	movw	r10, r24
#else //TMC2130
        float dist = - axis_home_dir * 0.01f * 64;
#endif //TMC2130
        current_position[axis] -= dist;
    f714:	e9 81       	ldd	r30, Y+1	; 0x01
    f716:	fa 81       	ldd	r31, Y+2	; 0x02
    f718:	ee 56       	subi	r30, 0x6E	; 110
    f71a:	f9 4f       	sbci	r31, 0xF9	; 249
    f71c:	fc 83       	std	Y+4, r31	; 0x04
    f71e:	eb 83       	std	Y+3, r30	; 0x03
    f720:	ac 01       	movw	r20, r24
    f722:	9b 01       	movw	r18, r22
    f724:	60 81       	ld	r22, Z
    f726:	71 81       	ldd	r23, Z+1	; 0x01
    f728:	82 81       	ldd	r24, Z+2	; 0x02
    f72a:	93 81       	ldd	r25, Z+3	; 0x03
    f72c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    f730:	ab 81       	ldd	r26, Y+3	; 0x03
    f732:	bc 81       	ldd	r27, Y+4	; 0x04
    f734:	6d 93       	st	X+, r22
    f736:	7d 93       	st	X+, r23
    f738:	8d 93       	st	X+, r24
    f73a:	9c 93       	st	X, r25
    f73c:	13 97       	sbiw	r26, 0x03	; 3
        plan_set_position_curposXYZE();
    f73e:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
        current_position[axis] += dist;
    f742:	eb 81       	ldd	r30, Y+3	; 0x03
    f744:	fc 81       	ldd	r31, Y+4	; 0x04
    f746:	20 81       	ld	r18, Z
    f748:	31 81       	ldd	r19, Z+1	; 0x01
    f74a:	42 81       	ldd	r20, Z+2	; 0x02
    f74c:	53 81       	ldd	r21, Z+3	; 0x03
    f74e:	c5 01       	movw	r24, r10
    f750:	b4 01       	movw	r22, r8
    f752:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    f756:	ab 81       	ldd	r26, Y+3	; 0x03
    f758:	bc 81       	ldd	r27, Y+4	; 0x04
    f75a:	6d 93       	st	X+, r22
    f75c:	7d 93       	st	X+, r23
    f75e:	8d 93       	st	X+, r24
    f760:	9c 93       	st	X, r25
    f762:	13 97       	sbiw	r26, 0x03	; 3
        destination[axis] = current_position[axis];
    f764:	e9 81       	ldd	r30, Y+1	; 0x01
    f766:	fa 81       	ldd	r31, Y+2	; 0x02
    f768:	ec 58       	subi	r30, 0x8C	; 140
    f76a:	f9 4f       	sbci	r31, 0xF9	; 249
    f76c:	60 83       	st	Z, r22
    f76e:	71 83       	std	Z+1, r23	; 0x01
    f770:	82 83       	std	Z+2, r24	; 0x02
    f772:	93 83       	std	Z+3, r25	; 0x03
        plan_buffer_line_destinationXYZE(0.5f*feedrate_mm_s);
    f774:	20 e0       	ldi	r18, 0x00	; 0
    f776:	30 e0       	ldi	r19, 0x00	; 0
    f778:	40 e0       	ldi	r20, 0x00	; 0
    f77a:	5f e3       	ldi	r21, 0x3F	; 63
    f77c:	c7 01       	movw	r24, r14
    f77e:	b6 01       	movw	r22, r12
    f780:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f784:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f788:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

   		feedrate = 0.0;
    f78c:	10 92 b8 02 	sts	0x02B8, r1	; 0x8002b8 <feedrate>
    f790:	10 92 b9 02 	sts	0x02B9, r1	; 0x8002b9 <feedrate+0x1>
    f794:	10 92 ba 02 	sts	0x02BA, r1	; 0x8002ba <feedrate+0x2>
    f798:	10 92 bb 02 	sts	0x02BB, r1	; 0x8002bb <feedrate+0x3>
    f79c:	fd 85       	ldd	r31, Y+13	; 0x0d
    f79e:	f0 93 b7 02 	sts	0x02B7, r31	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#ifdef TMC2130
		FORCE_HIGH_POWER_END;
#endif
    }
    enable_endstops(endstops_enabled);
}
    f7a2:	60 96       	adiw	r28, 0x10	; 16
    f7a4:	0f b6       	in	r0, 0x3f	; 63
    f7a6:	f8 94       	cli
    f7a8:	de bf       	out	0x3e, r29	; 62
    f7aa:	0f be       	out	0x3f, r0	; 63
    f7ac:	cd bf       	out	0x3d, r28	; 61
    f7ae:	df 91       	pop	r29
    f7b0:	cf 91       	pop	r28
    f7b2:	1f 91       	pop	r17
    f7b4:	0f 91       	pop	r16
    f7b6:	ff 90       	pop	r15
    f7b8:	ef 90       	pop	r14
    f7ba:	df 90       	pop	r13
    f7bc:	cf 90       	pop	r12
    f7be:	bf 90       	pop	r11
    f7c0:	af 90       	pop	r10
    f7c2:	9f 90       	pop	r9
    f7c4:	8f 90       	pop	r8
    f7c6:	7f 90       	pop	r7
    f7c8:	6f 90       	pop	r6
    f7ca:	5f 90       	pop	r5
    f7cc:	4f 90       	pop	r4
    f7ce:	3f 90       	pop	r3
    f7d0:	2f 90       	pop	r2
    f7d2:	08 95       	ret
			tmc2130_goto_step(axis, orig, 2, 1000, tmc2130_get_res(axis));
			if (back > 0)
				tmc2130_do_steps(axis, back, -axis_home_dir, 1000);
		}
		else
			tmc2130_do_steps(axis, 8, -axis_home_dir, 1000);
    f7d4:	43 2d       	mov	r20, r3
    f7d6:	41 95       	neg	r20
    f7d8:	68 e0       	ldi	r22, 0x08	; 8
    f7da:	70 e0       	ldi	r23, 0x00	; 0
    f7dc:	6a cf       	rjmp	.-300    	; 0xf6b2 <homeaxis(unsigned char, unsigned char, unsigned char*)+0x2ce>
   		feedrate = 0.0;
    }
    else if ((axis==Z_AXIS)?HOMEAXIS_DO(Z):0)
	{
#ifdef TMC2130
		FORCE_HIGH_POWER_START;
    f7de:	81 e0       	ldi	r24, 0x01	; 1
    f7e0:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
DEFINE_PGM_READ_ANY(signed char, byte);
    f7e4:	ec e8       	ldi	r30, 0x8C	; 140
    f7e6:	fb e7       	ldi	r31, 0x7B	; 123
    f7e8:	b4 91       	lpm	r27, Z
    f7ea:	b9 83       	std	Y+1, r27	; 0x01
	{
#ifdef TMC2130
		FORCE_HIGH_POWER_START;
#endif
        int axis_home_dir = home_dir(axis);
        current_position[axis] = 0;
    f7ec:	10 92 9a 06 	sts	0x069A, r1	; 0x80069a <current_position+0x8>
    f7f0:	10 92 9b 06 	sts	0x069B, r1	; 0x80069b <current_position+0x9>
    f7f4:	10 92 9c 06 	sts	0x069C, r1	; 0x80069c <current_position+0xa>
    f7f8:	10 92 9d 06 	sts	0x069D, r1	; 0x80069d <current_position+0xb>
        plan_set_position_curposXYZE();
    f7fc:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    f800:	e6 e8       	ldi	r30, 0x86	; 134
    f802:	fb e7       	ldi	r31, 0x7B	; 123
    f804:	85 90       	lpm	r8, Z+
    f806:	95 90       	lpm	r9, Z+
    f808:	a5 90       	lpm	r10, Z+
    f80a:	b4 90       	lpm	r11, Z
		FORCE_HIGH_POWER_START;
#endif
        int axis_home_dir = home_dir(axis);
        current_position[axis] = 0;
        plan_set_position_curposXYZE();
        destination[axis] = 1.5 * max_length(axis) * axis_home_dir;
    f80c:	e9 81       	ldd	r30, Y+1	; 0x01
    f80e:	6e 2f       	mov	r22, r30
    f810:	ee 0f       	add	r30, r30
    f812:	77 0b       	sbc	r23, r23
    f814:	88 0b       	sbc	r24, r24
    f816:	99 0b       	sbc	r25, r25
    f818:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    f81c:	6b 01       	movw	r12, r22
    f81e:	7c 01       	movw	r14, r24
    f820:	20 e0       	ldi	r18, 0x00	; 0
    f822:	30 e0       	ldi	r19, 0x00	; 0
    f824:	40 ec       	ldi	r20, 0xC0	; 192
    f826:	5f e3       	ldi	r21, 0x3F	; 63
    f828:	c5 01       	movw	r24, r10
    f82a:	b4 01       	movw	r22, r8
    f82c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f830:	a7 01       	movw	r20, r14
    f832:	96 01       	movw	r18, r12
    f834:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f838:	60 93 7c 06 	sts	0x067C, r22	; 0x80067c <destination+0x8>
    f83c:	70 93 7d 06 	sts	0x067D, r23	; 0x80067d <destination+0x9>
    f840:	80 93 7e 06 	sts	0x067E, r24	; 0x80067e <destination+0xa>
    f844:	90 93 7f 06 	sts	0x067F, r25	; 0x80067f <destination+0xb>
        feedrate = homing_feedrate[axis];
    f848:	80 e0       	ldi	r24, 0x00	; 0
    f84a:	90 e0       	ldi	r25, 0x00	; 0
    f84c:	a8 e4       	ldi	r26, 0x48	; 72
    f84e:	b4 e4       	ldi	r27, 0x44	; 68
    f850:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    f854:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    f858:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    f85c:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
        float feedrate_mm_s = get_feedrate_mm_s(feedrate);
    f860:	bc 01       	movw	r22, r24
    f862:	cd 01       	movw	r24, r26
    f864:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
    f868:	4b 01       	movw	r8, r22
    f86a:	5c 01       	movw	r10, r24
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f86c:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f870:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#ifdef TMC2130
        check_Z_crash();
    f874:	0e 94 b8 79 	call	0xf370	; 0xf370 <check_Z_crash()>
#endif //TMC2130
        current_position[axis] = 0;
    f878:	10 92 9a 06 	sts	0x069A, r1	; 0x80069a <current_position+0x8>
    f87c:	10 92 9b 06 	sts	0x069B, r1	; 0x80069b <current_position+0x9>
    f880:	10 92 9c 06 	sts	0x069C, r1	; 0x80069c <current_position+0xa>
    f884:	10 92 9d 06 	sts	0x069D, r1	; 0x80069d <current_position+0xb>
        plan_set_position_curposXYZE();
    f888:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    f88c:	e2 e6       	ldi	r30, 0x62	; 98
    f88e:	fb e7       	ldi	r31, 0x7B	; 123
    f890:	65 91       	lpm	r22, Z+
    f892:	75 91       	lpm	r23, Z+
    f894:	85 91       	lpm	r24, Z+
    f896:	94 91       	lpm	r25, Z
#ifdef TMC2130
        check_Z_crash();
#endif //TMC2130
        current_position[axis] = 0;
        plan_set_position_curposXYZE();
        destination[axis] = -home_retract_mm(axis) * axis_home_dir;
    f898:	90 58       	subi	r25, 0x80	; 128
    f89a:	a7 01       	movw	r20, r14
    f89c:	96 01       	movw	r18, r12
    f89e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f8a2:	60 93 7c 06 	sts	0x067C, r22	; 0x80067c <destination+0x8>
    f8a6:	70 93 7d 06 	sts	0x067D, r23	; 0x80067d <destination+0x9>
    f8aa:	80 93 7e 06 	sts	0x067E, r24	; 0x80067e <destination+0xa>
    f8ae:	90 93 7f 06 	sts	0x067F, r25	; 0x80067f <destination+0xb>
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f8b2:	c5 01       	movw	r24, r10
    f8b4:	b4 01       	movw	r22, r8
    f8b6:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f8ba:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

#define DEFINE_PGM_READ_ANY(type, reader)       \
    static inline type pgm_read_any(const type *p)  \
    { return pgm_read_##reader##_near(p); }

DEFINE_PGM_READ_ANY(float,       float);
    f8be:	e2 e6       	ldi	r30, 0x62	; 98
    f8c0:	fb e7       	ldi	r31, 0x7B	; 123
    f8c2:	65 91       	lpm	r22, Z+
    f8c4:	75 91       	lpm	r23, Z+
    f8c6:	85 91       	lpm	r24, Z+
    f8c8:	94 91       	lpm	r25, Z
        current_position[axis] = 0;
        plan_set_position_curposXYZE();
        destination[axis] = -home_retract_mm(axis) * axis_home_dir;
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
        st_synchronize();
        destination[axis] = 2*home_retract_mm(axis) * axis_home_dir;
    f8ca:	9b 01       	movw	r18, r22
    f8cc:	ac 01       	movw	r20, r24
    f8ce:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    f8d2:	a7 01       	movw	r20, r14
    f8d4:	96 01       	movw	r18, r12
    f8d6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    f8da:	60 93 7c 06 	sts	0x067C, r22	; 0x80067c <destination+0x8>
    f8de:	70 93 7d 06 	sts	0x067D, r23	; 0x80067d <destination+0x9>
    f8e2:	80 93 7e 06 	sts	0x067E, r24	; 0x80067e <destination+0xa>
    f8e6:	90 93 7f 06 	sts	0x067F, r25	; 0x80067f <destination+0xb>
        feedrate = homing_feedrate[axis] / 2;
    f8ea:	80 e0       	ldi	r24, 0x00	; 0
    f8ec:	90 e0       	ldi	r25, 0x00	; 0
    f8ee:	a8 ec       	ldi	r26, 0xC8	; 200
    f8f0:	b3 e4       	ldi	r27, 0x43	; 67
    f8f2:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    f8f6:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    f8fa:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    f8fe:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
        feedrate_mm_s = get_feedrate_mm_s(feedrate);
    f902:	bc 01       	movw	r22, r24
    f904:	cd 01       	movw	r24, r26
    f906:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
        plan_buffer_line_destinationXYZE(feedrate_mm_s);
    f90a:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
        st_synchronize();
    f90e:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#ifdef TMC2130
        check_Z_crash();
    f912:	0e 94 b8 79 	call	0xf370	; 0xf370 <check_Z_crash()>
#endif //TMC2130
        axis_is_at_home(axis);
    f916:	82 e0       	ldi	r24, 0x02	; 2
    f918:	0e 94 31 5a 	call	0xb462	; 0xb462 <axis_is_at_home(unsigned char)>
        destination[axis] = current_position[axis];
    f91c:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
    f920:	90 91 9b 06 	lds	r25, 0x069B	; 0x80069b <current_position+0x9>
    f924:	a0 91 9c 06 	lds	r26, 0x069C	; 0x80069c <current_position+0xa>
    f928:	b0 91 9d 06 	lds	r27, 0x069D	; 0x80069d <current_position+0xb>
    f92c:	80 93 7c 06 	sts	0x067C, r24	; 0x80067c <destination+0x8>
    f930:	90 93 7d 06 	sts	0x067D, r25	; 0x80067d <destination+0x9>
    f934:	a0 93 7e 06 	sts	0x067E, r26	; 0x80067e <destination+0xa>
    f938:	b0 93 7f 06 	sts	0x067F, r27	; 0x80067f <destination+0xb>
        feedrate = 0.0;
    f93c:	10 92 b8 02 	sts	0x02B8, r1	; 0x8002b8 <feedrate>
    f940:	10 92 b9 02 	sts	0x02B9, r1	; 0x8002b9 <feedrate+0x1>
    f944:	10 92 ba 02 	sts	0x02BA, r1	; 0x8002ba <feedrate+0x2>
    f948:	10 92 bb 02 	sts	0x02BB, r1	; 0x8002bb <feedrate+0x3>
        endstops_hit_on_purpose();
    f94c:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
        axis_known_position[axis] = true;
    f950:	70 92 91 06 	sts	0x0691, r7	; 0x800691 <axis_known_position+0x2>
#ifdef TMC2130
		FORCE_HIGH_POWER_END;
    f954:	80 e0       	ldi	r24, 0x00	; 0
    f956:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
    f95a:	20 cf       	rjmp	.-448    	; 0xf79c <homeaxis(unsigned char, unsigned char, unsigned char*)+0x3b8>

0000f95c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)>:
#ifdef TMC2130
static void gcode_G28(bool home_x_axis, long home_x_value, bool home_y_axis, long home_y_value, bool home_z_axis, long home_z_value, bool calib, bool without_mbl)
#else
static void gcode_G28(bool home_x_axis, long home_x_value, bool home_y_axis, long home_y_value, bool home_z_axis, long home_z_value, bool without_mbl)
#endif //TMC2130
{
    f95c:	2f 92       	push	r2
    f95e:	3f 92       	push	r3
    f960:	4f 92       	push	r4
    f962:	5f 92       	push	r5
    f964:	6f 92       	push	r6
    f966:	7f 92       	push	r7
    f968:	8f 92       	push	r8
    f96a:	9f 92       	push	r9
    f96c:	af 92       	push	r10
    f96e:	bf 92       	push	r11
    f970:	cf 92       	push	r12
    f972:	df 92       	push	r13
    f974:	ef 92       	push	r14
    f976:	ff 92       	push	r15
    f978:	0f 93       	push	r16
    f97a:	1f 93       	push	r17
    f97c:	cf 93       	push	r28
    f97e:	df 93       	push	r29
    f980:	00 d0       	rcall	.+0      	; 0xf982 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x26>
    f982:	1f 92       	push	r1
    f984:	1f 92       	push	r1
    f986:	cd b7       	in	r28, 0x3d	; 61
    f988:	de b7       	in	r29, 0x3e	; 62
    f98a:	d8 2e       	mov	r13, r24
    f98c:	2a 01       	movw	r4, r20
    f98e:	3b 01       	movw	r6, r22
    f990:	32 2e       	mov	r3, r18
    f992:	e9 82       	std	Y+1, r14	; 0x01
    f994:	fa 82       	std	Y+2, r15	; 0x02
    f996:	0b 83       	std	Y+3, r16	; 0x03
    f998:	1c 83       	std	Y+4, r17	; 0x04
	// Flag for the display update routine and to disable the print cancelation during homing.
	st_synchronize();
    f99a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	homing_flag = true;
    f99e:	81 e0       	ldi	r24, 0x01	; 1
    f9a0:	80 93 a7 0d 	sts	0x0DA7, r24	; 0x800da7 <homing_flag>
	bool home_x = home_x_axis;
	bool home_y = home_y_axis;
	bool home_z = home_z_axis;

	// Either all X,Y,Z codes are present, or none of them.
	bool home_all_axes = home_x == home_y && home_x == home_z;
    f9a4:	fc 2c       	mov	r15, r12
    f9a6:	e3 2c       	mov	r14, r3
    f9a8:	d3 10       	cpse	r13, r3
    f9aa:	10 c0       	rjmp	.+32     	; 0xf9cc <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x70>
    f9ac:	ed 2c       	mov	r14, r13
    f9ae:	dc 10       	cpse	r13, r12
    f9b0:	0d c0       	rjmp	.+26     	; 0xf9cc <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x70>
		// No X/Y/Z code provided means to home all axes.
		home_x = home_y = home_z = true;

	//if we are homing all axes, first move z higher to protect heatbed/steel sheet
	if (home_all_axes) {
        raise_z_above(MESH_HOME_Z_SEARCH);
    f9b2:	60 e0       	ldi	r22, 0x00	; 0
    f9b4:	70 e0       	ldi	r23, 0x00	; 0
    f9b6:	80 ea       	ldi	r24, 0xA0	; 160
    f9b8:	90 e4       	ldi	r25, 0x40	; 64
    f9ba:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>

	// Either all X,Y,Z codes are present, or none of them.
	bool home_all_axes = home_x == home_y && home_x == home_z;
	if (home_all_axes)
		// No X/Y/Z code provided means to home all axes.
		home_x = home_y = home_z = true;
    f9be:	ff 24       	eor	r15, r15
    f9c0:	f3 94       	inc	r15
    f9c2:	ee 24       	eor	r14, r14
    f9c4:	e3 94       	inc	r14
    f9c6:	22 24       	eor	r2, r2
    f9c8:	23 94       	inc	r2
    f9ca:	01 c0       	rjmp	.+2      	; 0xf9ce <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x72>
	bool home_x = home_x_axis;
	bool home_y = home_y_axis;
	bool home_z = home_z_axis;

	// Either all X,Y,Z codes are present, or none of them.
	bool home_all_axes = home_x == home_y && home_x == home_z;
    f9cc:	2d 2c       	mov	r2, r13
	}

      // Reset world2machine_rotation_and_skew and world2machine_shift, therefore
      // the planner will not perform any adjustments in the XY plane.
      // Wait for the motors to stop and update the current position with the absolute values.
      world2machine_revert_to_uncorrected();
    f9ce:	0f 94 75 ce 	call	0x39cea	; 0x39cea <world2machine_revert_to_uncorrected()>
      // For mesh bed leveling deactivate the matrix temporarily.
      // It is necessary to disable the bed leveling for the X and Y homing moves, so that the move is performed
      // in a single axis only.
      // In case of re-homing the X or Y axes only, the mesh bed leveling is restored after G28.
#ifdef MESH_BED_LEVELING
      uint8_t mbl_was_active = mbl.active;
    f9d2:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
    f9d6:	8d 83       	std	Y+5, r24	; 0x05
      mbl.active = 0;
    f9d8:	10 92 c2 13 	sts	0x13C2, r1	; 0x8013c2 <mbl>
      current_position[Z_AXIS] = st_get_position_mm(Z_AXIS);
    f9dc:	82 e0       	ldi	r24, 0x02	; 2
    f9de:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
    f9e2:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
    f9e6:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
    f9ea:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
    f9ee:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
#endif

      // Reset baby stepping to zero, if the babystepping has already been loaded before.
      if (home_z)
    f9f2:	f1 10       	cpse	r15, r1
        babystep_undo();
    f9f4:	0f 94 1a ca 	call	0x39434	; 0x39434 <babystep_undo()>

      int l_feedmultiply = setup_for_endstop_move();
    f9f8:	81 e0       	ldi	r24, 0x01	; 1
    f9fa:	0e 94 6f 66 	call	0xccde	; 0xccde <setup_for_endstop_move(bool) [clone .lto_priv.392]>
    f9fe:	8c 01       	movw	r16, r24

      set_destination_to_current();
    fa00:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
      feedrate = 0.0;
    fa04:	10 92 b8 02 	sts	0x02B8, r1	; 0x8002b8 <feedrate>
    fa08:	10 92 b9 02 	sts	0x02B9, r1	; 0x8002b9 <feedrate+0x1>
    fa0c:	10 92 ba 02 	sts	0x02BA, r1	; 0x8002ba <feedrate+0x2>
    fa10:	10 92 bb 02 	sts	0x02BB, r1	; 0x8002bb <feedrate+0x3>
        current_position[Z_AXIS] = destination[Z_AXIS];
      }
      #endif /* QUICK_HOME */

#ifdef TMC2130
      if(home_x)
    fa14:	22 20       	and	r2, r2
    fa16:	09 f4       	brne	.+2      	; 0xfa1a <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xbe>
    fa18:	77 c1       	rjmp	.+750    	; 0xfd08 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x3ac>
	  {
		if (!calib)
    fa1a:	9b 8d       	ldd	r25, Y+27	; 0x1b
    fa1c:	91 11       	cpse	r25, r1
    fa1e:	6a c1       	rjmp	.+724    	; 0xfcf4 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x398>
			homeaxis(X_AXIS);
    fa20:	50 e0       	ldi	r21, 0x00	; 0
    fa22:	40 e0       	ldi	r20, 0x00	; 0
    fa24:	61 e0       	ldi	r22, 0x01	; 1
    fa26:	80 e0       	ldi	r24, 0x00	; 0
    fa28:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
		else
			tmc2130_home_calibrate(X_AXIS);
	  }

      if(home_y)
    fa2c:	ee 20       	and	r14, r14
    fa2e:	31 f0       	breq	.+12     	; 0xfa3c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xe0>
	  {
		if (!calib)
	        homeaxis(Y_AXIS);
    fa30:	50 e0       	ldi	r21, 0x00	; 0
    fa32:	40 e0       	ldi	r20, 0x00	; 0
    fa34:	61 e0       	ldi	r22, 0x01	; 1
    fa36:	81 e0       	ldi	r24, 0x01	; 1
    fa38:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
      if(home_x) homeaxis(X_AXIS);
      if(home_y) homeaxis(Y_AXIS);
#endif //TMC2130


      if(home_x_axis && home_x_value != 0)
    fa3c:	dd 20       	and	r13, r13
    fa3e:	e9 f0       	breq	.+58     	; 0xfa7a <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x11e>
    fa40:	41 14       	cp	r4, r1
    fa42:	51 04       	cpc	r5, r1
    fa44:	61 04       	cpc	r6, r1
    fa46:	71 04       	cpc	r7, r1
    fa48:	c1 f0       	breq	.+48     	; 0xfa7a <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x11e>
        current_position[X_AXIS]=home_x_value+cs.add_homing[X_AXIS];
    fa4a:	c3 01       	movw	r24, r6
    fa4c:	b2 01       	movw	r22, r4
    fa4e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    fa52:	9b 01       	movw	r18, r22
    fa54:	ac 01       	movw	r20, r24
    fa56:	60 91 16 0e 	lds	r22, 0x0E16	; 0x800e16 <cs+0x58>
    fa5a:	70 91 17 0e 	lds	r23, 0x0E17	; 0x800e17 <cs+0x59>
    fa5e:	80 91 18 0e 	lds	r24, 0x0E18	; 0x800e18 <cs+0x5a>
    fa62:	90 91 19 0e 	lds	r25, 0x0E19	; 0x800e19 <cs+0x5b>
    fa66:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    fa6a:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
    fa6e:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
    fa72:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
    fa76:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>

      if(home_y_axis && home_y_value != 0)
    fa7a:	33 20       	and	r3, r3
    fa7c:	01 f1       	breq	.+64     	; 0xfabe <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x162>
    fa7e:	89 81       	ldd	r24, Y+1	; 0x01
    fa80:	9a 81       	ldd	r25, Y+2	; 0x02
    fa82:	ab 81       	ldd	r26, Y+3	; 0x03
    fa84:	bc 81       	ldd	r27, Y+4	; 0x04
    fa86:	00 97       	sbiw	r24, 0x00	; 0
    fa88:	a1 05       	cpc	r26, r1
    fa8a:	b1 05       	cpc	r27, r1
    fa8c:	c1 f0       	breq	.+48     	; 0xfabe <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x162>
        current_position[Y_AXIS]=home_y_value+cs.add_homing[Y_AXIS];
    fa8e:	bc 01       	movw	r22, r24
    fa90:	cd 01       	movw	r24, r26
    fa92:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    fa96:	9b 01       	movw	r18, r22
    fa98:	ac 01       	movw	r20, r24
    fa9a:	60 91 1a 0e 	lds	r22, 0x0E1A	; 0x800e1a <cs+0x5c>
    fa9e:	70 91 1b 0e 	lds	r23, 0x0E1B	; 0x800e1b <cs+0x5d>
    faa2:	80 91 1c 0e 	lds	r24, 0x0E1C	; 0x800e1c <cs+0x5e>
    faa6:	90 91 1d 0e 	lds	r25, 0x0E1D	; 0x800e1d <cs+0x5f>
    faaa:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    faae:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
    fab2:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
    fab6:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
    faba:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>

      #if Z_HOME_DIR < 0                      // If homing towards BED do Z last
          if(home_z) {
    fabe:	ff 20       	and	r15, r15
    fac0:	09 f4       	brne	.+2      	; 0xfac4 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x168>
    fac2:	a2 c0       	rjmp	.+324    	; 0xfc08 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x2ac>
            #ifdef MESH_BED_LEVELING  // If Mesh bed leveling, move X&Y to safe position for home
              raise_z_above(MESH_HOME_Z_SEARCH);
    fac4:	60 e0       	ldi	r22, 0x00	; 0
    fac6:	70 e0       	ldi	r23, 0x00	; 0
    fac8:	80 ea       	ldi	r24, 0xA0	; 160
    faca:	90 e4       	ldi	r25, 0x40	; 64
    facc:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
              if (!axis_known_position[X_AXIS]) homeaxis(X_AXIS);
    fad0:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
    fad4:	81 11       	cpse	r24, r1
    fad6:	05 c0       	rjmp	.+10     	; 0xfae2 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x186>
    fad8:	50 e0       	ldi	r21, 0x00	; 0
    fada:	40 e0       	ldi	r20, 0x00	; 0
    fadc:	61 e0       	ldi	r22, 0x01	; 1
    fade:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
              if (!axis_known_position[Y_AXIS]) homeaxis(Y_AXIS);
    fae2:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
    fae6:	81 11       	cpse	r24, r1
    fae8:	06 c0       	rjmp	.+12     	; 0xfaf6 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x19a>
    faea:	50 e0       	ldi	r21, 0x00	; 0
    faec:	40 e0       	ldi	r20, 0x00	; 0
    faee:	61 e0       	ldi	r22, 0x01	; 1
    faf0:	81 e0       	ldi	r24, 0x01	; 1
    faf2:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
              // 1st mesh bed leveling measurement point, corrected.
              world2machine_initialize();
    faf6:	0f 94 da ce 	call	0x39db4	; 0x39db4 <world2machine_initialize()>
              world2machine(pgm_read_float(bed_ref_points_4), pgm_read_float(bed_ref_points_4+1), destination[X_AXIS], destination[Y_AXIS]);
    fafa:	e1 e0       	ldi	r30, 0x01	; 1
    fafc:	f5 ea       	ldi	r31, 0xA5	; 165
    fafe:	85 91       	lpm	r24, Z+
    fb00:	95 91       	lpm	r25, Z+
    fb02:	a5 91       	lpm	r26, Z+
    fb04:	b4 91       	lpm	r27, Z
    fb06:	ed ef       	ldi	r30, 0xFD	; 253
    fb08:	f4 ea       	ldi	r31, 0xA4	; 164
    fb0a:	45 91       	lpm	r20, Z+
    fb0c:	55 91       	lpm	r21, Z+
    fb0e:	65 91       	lpm	r22, Z+
    fb10:	74 91       	lpm	r23, Z
	}
}

inline void world2machine(const float &x, const float &y, float &out_x, float &out_y)
{
    out_x = x;
    fb12:	40 93 74 06 	sts	0x0674, r20	; 0x800674 <destination>
    fb16:	50 93 75 06 	sts	0x0675, r21	; 0x800675 <destination+0x1>
    fb1a:	60 93 76 06 	sts	0x0676, r22	; 0x800676 <destination+0x2>
    fb1e:	70 93 77 06 	sts	0x0677, r23	; 0x800677 <destination+0x3>
    out_y = y;
    fb22:	80 93 78 06 	sts	0x0678, r24	; 0x800678 <destination+0x4>
    fb26:	90 93 79 06 	sts	0x0679, r25	; 0x800679 <destination+0x5>
    fb2a:	a0 93 7a 06 	sts	0x067A, r26	; 0x80067a <destination+0x6>
    fb2e:	b0 93 7b 06 	sts	0x067B, r27	; 0x80067b <destination+0x7>
    world2machine(out_x, out_y);
    fb32:	68 e7       	ldi	r22, 0x78	; 120
    fb34:	76 e0       	ldi	r23, 0x06	; 6
    fb36:	84 e7       	ldi	r24, 0x74	; 116
    fb38:	96 e0       	ldi	r25, 0x06	; 6
    fb3a:	0e 94 89 69 	call	0xd312	; 0xd312 <world2machine(float&, float&)>
              world2machine_reset();
    fb3e:	0f 94 3c ce 	call	0x39c78	; 0x39c78 <world2machine_reset()>
              if (destination[Y_AXIS] < Y_MIN_POS)
    fb42:	20 e0       	ldi	r18, 0x00	; 0
    fb44:	30 e0       	ldi	r19, 0x00	; 0
    fb46:	40 e8       	ldi	r20, 0x80	; 128
    fb48:	50 ec       	ldi	r21, 0xC0	; 192
    fb4a:	60 91 78 06 	lds	r22, 0x0678	; 0x800678 <destination+0x4>
    fb4e:	70 91 79 06 	lds	r23, 0x0679	; 0x800679 <destination+0x5>
    fb52:	80 91 7a 06 	lds	r24, 0x067A	; 0x80067a <destination+0x6>
    fb56:	90 91 7b 06 	lds	r25, 0x067B	; 0x80067b <destination+0x7>
    fb5a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
    fb5e:	87 ff       	sbrs	r24, 7
    fb60:	0c c0       	rjmp	.+24     	; 0xfb7a <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x21e>
                  destination[Y_AXIS] = Y_MIN_POS;
    fb62:	80 e0       	ldi	r24, 0x00	; 0
    fb64:	90 e0       	ldi	r25, 0x00	; 0
    fb66:	a0 e8       	ldi	r26, 0x80	; 128
    fb68:	b0 ec       	ldi	r27, 0xC0	; 192
    fb6a:	80 93 78 06 	sts	0x0678, r24	; 0x800678 <destination+0x4>
    fb6e:	90 93 79 06 	sts	0x0679, r25	; 0x800679 <destination+0x5>
    fb72:	a0 93 7a 06 	sts	0x067A, r26	; 0x80067a <destination+0x6>
    fb76:	b0 93 7b 06 	sts	0x067B, r27	; 0x80067b <destination+0x7>
              feedrate = homing_feedrate[X_AXIS] / 20;
    fb7a:	80 e0       	ldi	r24, 0x00	; 0
    fb7c:	90 e0       	ldi	r25, 0x00	; 0
    fb7e:	a6 e1       	ldi	r26, 0x16	; 22
    fb80:	b3 e4       	ldi	r27, 0x43	; 67
    fb82:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
    fb86:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
    fb8a:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
    fb8e:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>
    fb92:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#ifdef DEBUG_BUILD
              SERIAL_ECHOLNPGM("plan_set_position()");
              MYSERIAL.println(current_position[X_AXIS]);MYSERIAL.println(current_position[Y_AXIS]);
              MYSERIAL.println(current_position[Z_AXIS]);MYSERIAL.println(current_position[E_AXIS]);
#endif
              plan_set_position_curposXYZE();
    fb96:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
              SERIAL_ECHOLNPGM("plan_buffer_line()");
              MYSERIAL.println(destination[X_AXIS]);MYSERIAL.println(destination[Y_AXIS]);
              MYSERIAL.println(destination[Z_AXIS]);MYSERIAL.println(destination[E_AXIS]);
              MYSERIAL.println(feedrate);MYSERIAL.println(active_extruder);
#endif
              plan_buffer_line_destinationXYZE(feedrate);
    fb9a:	60 91 b8 02 	lds	r22, 0x02B8	; 0x8002b8 <feedrate>
    fb9e:	70 91 b9 02 	lds	r23, 0x02B9	; 0x8002b9 <feedrate+0x1>
    fba2:	80 91 ba 02 	lds	r24, 0x02BA	; 0x8002ba <feedrate+0x2>
    fba6:	90 91 bb 02 	lds	r25, 0x02BB	; 0x8002bb <feedrate+0x3>
    fbaa:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>
              st_synchronize();
    fbae:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
              current_position[X_AXIS] = destination[X_AXIS];
    fbb2:	80 91 74 06 	lds	r24, 0x0674	; 0x800674 <destination>
    fbb6:	90 91 75 06 	lds	r25, 0x0675	; 0x800675 <destination+0x1>
    fbba:	a0 91 76 06 	lds	r26, 0x0676	; 0x800676 <destination+0x2>
    fbbe:	b0 91 77 06 	lds	r27, 0x0677	; 0x800677 <destination+0x3>
    fbc2:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
    fbc6:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
    fbca:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
    fbce:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
              current_position[Y_AXIS] = destination[Y_AXIS];
    fbd2:	80 91 78 06 	lds	r24, 0x0678	; 0x800678 <destination+0x4>
    fbd6:	90 91 79 06 	lds	r25, 0x0679	; 0x800679 <destination+0x5>
    fbda:	a0 91 7a 06 	lds	r26, 0x067A	; 0x80067a <destination+0x6>
    fbde:	b0 91 7b 06 	lds	r27, 0x067B	; 0x80067b <destination+0x7>
    fbe2:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
    fbe6:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
    fbea:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
    fbee:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
    fbf2:	81 e0       	ldi	r24, 0x01	; 1
    fbf4:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
              enable_endstops(true);
              endstops_hit_on_purpose();
    fbf8:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
              homeaxis(Z_AXIS);
    fbfc:	50 e0       	ldi	r21, 0x00	; 0
    fbfe:	40 e0       	ldi	r20, 0x00	; 0
    fc00:	61 e0       	ldi	r22, 0x01	; 1
    fc02:	82 e0       	ldi	r24, 0x02	; 2
    fc04:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
              homeaxis(Z_AXIS);
            #endif // MESH_BED_LEVELING
          }
      #endif // Z_HOME_DIR < 0

      if(home_z_axis && home_z_value != 0)
    fc08:	cc 20       	and	r12, r12
    fc0a:	e9 f0       	breq	.+58     	; 0xfc46 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x2ea>
    fc0c:	81 14       	cp	r8, r1
    fc0e:	91 04       	cpc	r9, r1
    fc10:	a1 04       	cpc	r10, r1
    fc12:	b1 04       	cpc	r11, r1
    fc14:	c1 f0       	breq	.+48     	; 0xfc46 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x2ea>
        current_position[Z_AXIS]=home_z_value+cs.add_homing[Z_AXIS];
    fc16:	c5 01       	movw	r24, r10
    fc18:	b4 01       	movw	r22, r8
    fc1a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    fc1e:	9b 01       	movw	r18, r22
    fc20:	ac 01       	movw	r20, r24
    fc22:	60 91 1e 0e 	lds	r22, 0x0E1E	; 0x800e1e <cs+0x60>
    fc26:	70 91 1f 0e 	lds	r23, 0x0E1F	; 0x800e1f <cs+0x61>
    fc2a:	80 91 20 0e 	lds	r24, 0x0E20	; 0x800e20 <cs+0x62>
    fc2e:	90 91 21 0e 	lds	r25, 0x0E21	; 0x800e21 <cs+0x63>
    fc32:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    fc36:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
    fc3a:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
    fc3e:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
    fc42:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>

      // Set the planner and stepper routine positions.
      // At this point the mesh bed leveling and world2machine corrections are disabled and current_position
      // contains the machine coordinates.
      plan_set_position_curposXYZE();
    fc46:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>

      clean_up_after_endstop_move(l_feedmultiply);
    fc4a:	c8 01       	movw	r24, r16
    fc4c:	0e 94 55 66 	call	0xccaa	; 0xccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>
      endstops_hit_on_purpose();
    fc50:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>

    // Load the machine correction matrix
    world2machine_initialize();
    fc54:	0f 94 da ce 	call	0x39db4	; 0x39db4 <world2machine_initialize()>
    // and correct the current_position XY axes to match the transformed coordinate system.
    world2machine_update_current();
    fc58:	0f 94 78 cc 	call	0x398f0	; 0x398f0 <world2machine_update_current()>

#ifdef MESH_BED_LEVELING
	if (home_x_axis || home_y_axis || without_mbl || home_z_axis)
    fc5c:	d1 10       	cpse	r13, r1
    fc5e:	07 c0       	rjmp	.+14     	; 0xfc6e <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x312>
    fc60:	31 10       	cpse	r3, r1
    fc62:	05 c0       	rjmp	.+10     	; 0xfc6e <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x312>
    fc64:	8c 8d       	ldd	r24, Y+28	; 0x1c
    fc66:	81 11       	cpse	r24, r1
    fc68:	02 c0       	rjmp	.+4      	; 0xfc6e <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x312>
    fc6a:	cc 20       	and	r12, r12
    fc6c:	39 f1       	breq	.+78     	; 0xfcbc <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x360>
    {
      if (! home_z && mbl_was_active) {
    fc6e:	f1 10       	cpse	r15, r1
    fc70:	25 c0       	rjmp	.+74     	; 0xfcbc <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x360>
    fc72:	9d 81       	ldd	r25, Y+5	; 0x05
    fc74:	99 23       	and	r25, r25
    fc76:	11 f1       	breq	.+68     	; 0xfcbc <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x360>
        // Re-enable the mesh bed leveling if only the X and Y axes were re-homed.
        mbl.active = true;
    fc78:	81 e0       	ldi	r24, 0x01	; 1
    fc7a:	80 93 c2 13 	sts	0x13C2, r24	; 0x8013c2 <mbl>
        // and re-adjust the current logical Z axis with the bed leveling offset applicable at the current XY position.
        current_position[Z_AXIS] -= mbl.get_z(st_get_position_mm(X_AXIS), st_get_position_mm(Y_AXIS));
    fc7e:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
    fc82:	6b 01       	movw	r12, r22
    fc84:	7c 01       	movw	r14, r24
    fc86:	80 e0       	ldi	r24, 0x00	; 0
    fc88:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
    fc8c:	a7 01       	movw	r20, r14
    fc8e:	96 01       	movw	r18, r12
    fc90:	0f 94 f0 a1 	call	0x343e0	; 0x343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>
    fc94:	9b 01       	movw	r18, r22
    fc96:	ac 01       	movw	r20, r24
    fc98:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
    fc9c:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
    fca0:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
    fca4:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
    fca8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
    fcac:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
    fcb0:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
    fcb4:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
    fcb8:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
    }
#endif

      prusa_statistics(20);

      st_synchronize();
    fcbc:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	  homing_flag = false;
    fcc0:	10 92 a7 0d 	sts	0x0DA7, r1	; 0x800da7 <homing_flag>
#if 0
      SERIAL_ECHOPGM("G28, final ");  print_world_coordinates();
      SERIAL_ECHOPGM("G28, final ");  print_physical_coordinates();
      SERIAL_ECHOPGM("G28, final ");  print_mesh_bed_leveling_table();
#endif
}
    fcc4:	0f 90       	pop	r0
    fcc6:	0f 90       	pop	r0
    fcc8:	0f 90       	pop	r0
    fcca:	0f 90       	pop	r0
    fccc:	0f 90       	pop	r0
    fcce:	df 91       	pop	r29
    fcd0:	cf 91       	pop	r28
    fcd2:	1f 91       	pop	r17
    fcd4:	0f 91       	pop	r16
    fcd6:	ff 90       	pop	r15
    fcd8:	ef 90       	pop	r14
    fcda:	df 90       	pop	r13
    fcdc:	cf 90       	pop	r12
    fcde:	bf 90       	pop	r11
    fce0:	af 90       	pop	r10
    fce2:	9f 90       	pop	r9
    fce4:	8f 90       	pop	r8
    fce6:	7f 90       	pop	r7
    fce8:	6f 90       	pop	r6
    fcea:	5f 90       	pop	r5
    fcec:	4f 90       	pop	r4
    fcee:	3f 90       	pop	r3
    fcf0:	2f 90       	pop	r2
    fcf2:	08 95       	ret
      if(home_x)
	  {
		if (!calib)
			homeaxis(X_AXIS);
		else
			tmc2130_home_calibrate(X_AXIS);
    fcf4:	80 e0       	ldi	r24, 0x00	; 0
    fcf6:	0f 94 a7 23 	call	0x2474e	; 0x2474e <tmc2130_home_calibrate(unsigned char)>
	  }

      if(home_y)
    fcfa:	ee 20       	and	r14, r14
    fcfc:	09 f4       	brne	.+2      	; 0xfd00 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x3a4>
    fcfe:	9e ce       	rjmp	.-708    	; 0xfa3c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xe0>
	  {
		if (!calib)
	        homeaxis(Y_AXIS);
		else
			tmc2130_home_calibrate(Y_AXIS);
    fd00:	81 e0       	ldi	r24, 0x01	; 1
    fd02:	0f 94 a7 23 	call	0x2474e	; 0x2474e <tmc2130_home_calibrate(unsigned char)>
    fd06:	9a ce       	rjmp	.-716    	; 0xfa3c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xe0>
			homeaxis(X_AXIS);
		else
			tmc2130_home_calibrate(X_AXIS);
	  }

      if(home_y)
    fd08:	ee 20       	and	r14, r14
    fd0a:	09 f4       	brne	.+2      	; 0xfd0e <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x3b2>
    fd0c:	97 ce       	rjmp	.-722    	; 0xfa3c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xe0>
	  {
		if (!calib)
    fd0e:	ab 8d       	ldd	r26, Y+27	; 0x1b
    fd10:	aa 23       	and	r26, r26
    fd12:	09 f4       	brne	.+2      	; 0xfd16 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x3ba>
    fd14:	8d ce       	rjmp	.-742    	; 0xfa30 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0xd4>
    fd16:	f4 cf       	rjmp	.-24     	; 0xfd00 <gcode_G28(bool, long, bool, long, bool, long, bool, bool)+0x3a4>

0000fd18 <gcode_G28(bool, bool, bool)>:
      SERIAL_ECHOPGM("G28, final ");  print_mesh_bed_leveling_table();
#endif
}

static void gcode_G28(bool home_x_axis, bool home_y_axis, bool home_z_axis)
{
    fd18:	8f 92       	push	r8
    fd1a:	9f 92       	push	r9
    fd1c:	af 92       	push	r10
    fd1e:	bf 92       	push	r11
    fd20:	cf 92       	push	r12
    fd22:	ef 92       	push	r14
    fd24:	ff 92       	push	r15
    fd26:	0f 93       	push	r16
    fd28:	1f 93       	push	r17
    fd2a:	26 2f       	mov	r18, r22
#ifdef TMC2130
    gcode_G28(home_x_axis, 0, home_y_axis, 0, home_z_axis, 0, false, true);
    fd2c:	91 e0       	ldi	r25, 0x01	; 1
    fd2e:	9f 93       	push	r25
    fd30:	1f 92       	push	r1
    fd32:	81 2c       	mov	r8, r1
    fd34:	91 2c       	mov	r9, r1
    fd36:	54 01       	movw	r10, r8
    fd38:	c4 2e       	mov	r12, r20
    fd3a:	e1 2c       	mov	r14, r1
    fd3c:	f1 2c       	mov	r15, r1
    fd3e:	87 01       	movw	r16, r14
    fd40:	40 e0       	ldi	r20, 0x00	; 0
    fd42:	50 e0       	ldi	r21, 0x00	; 0
    fd44:	ba 01       	movw	r22, r20
    fd46:	0e 94 ae 7c 	call	0xf95c	; 0xf95c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)>
    fd4a:	0f 90       	pop	r0
    fd4c:	0f 90       	pop	r0
#else
    gcode_G28(home_x_axis, 0, home_y_axis, 0, home_z_axis, 0, true);
#endif //TMC2130
}
    fd4e:	1f 91       	pop	r17
    fd50:	0f 91       	pop	r16
    fd52:	ff 90       	pop	r15
    fd54:	ef 90       	pop	r14
    fd56:	cf 90       	pop	r12
    fd58:	bf 90       	pop	r11
    fd5a:	af 90       	pop	r10
    fd5c:	9f 90       	pop	r9
    fd5e:	8f 90       	pop	r8
    fd60:	08 95       	ret

0000fd62 <ClearToSend()>:

// Confirm the execution of a command, if sent from a serial line.
// Execution of a command from a SD card will not be confirmed.
void ClearToSend()
{
	previous_millis_cmd.start();
    fd62:	86 e8       	ldi	r24, 0x86	; 134
    fd64:	93 e0       	ldi	r25, 0x03	; 3
    fd66:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
	if (buflen && ((CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB) || (CMDBUFFER_CURRENT_TYPE == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR)))
    fd6a:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
    fd6e:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
    fd72:	89 2b       	or	r24, r25
    fd74:	79 f0       	breq	.+30     	; 0xfd94 <ClearToSend()+0x32>
    fd76:	e0 91 92 12 	lds	r30, 0x1292	; 0x801292 <bufindr>
    fd7a:	f0 91 93 12 	lds	r31, 0x1293	; 0x801293 <bufindr+0x1>
    fd7e:	eb 55       	subi	r30, 0x5B	; 91
    fd80:	ff 4e       	sbci	r31, 0xEF	; 239
    fd82:	80 81       	ld	r24, Z
    fd84:	81 30       	cpi	r24, 0x01	; 1
    fd86:	11 f0       	breq	.+4      	; 0xfd8c <ClearToSend()+0x2a>
    fd88:	86 30       	cpi	r24, 0x06	; 6
    fd8a:	21 f4       	brne	.+8      	; 0xfd94 <ClearToSend()+0x32>
		SERIAL_PROTOCOLLNRPGM(MSG_OK);
    fd8c:	87 e1       	ldi	r24, 0x17	; 23
    fd8e:	9d e6       	ldi	r25, 0x6D	; 109
    fd90:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
}
    fd94:	08 95       	ret

0000fd96 <cmdqueue_reset()>:

void cmdqueue_reset()
{
	while (buflen)
    fd96:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
    fd9a:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
    fd9e:	89 2b       	or	r24, r25
    fda0:	29 f0       	breq	.+10     	; 0xfdac <cmdqueue_reset()+0x16>
	{
		// printf_P(PSTR("dumping: \"%s\" of type %u\n"), cmdbuffer+bufindr+CMDHDRSIZE, CMDBUFFER_CURRENT_TYPE);
		ClearToSend();
    fda2:	0e 94 b1 7e 	call	0xfd62	; 0xfd62 <ClearToSend()>
		cmdqueue_pop_front();
    fda6:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
    fdaa:	f5 cf       	rjmp	.-22     	; 0xfd96 <cmdqueue_reset()>
	}
	bufindr = 0;
    fdac:	10 92 93 12 	sts	0x1293, r1	; 0x801293 <bufindr+0x1>
    fdb0:	10 92 92 12 	sts	0x1292, r1	; 0x801292 <bufindr>
	bufindw = 0;
    fdb4:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
    fdb8:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>

	//commands are removed from command queue after process_command() function is finished
	//reseting command queue and enqueing new commands during some (usually long running) command processing would cause that new commands are immediately removed from queue (or damaged)
	//this will ensure that all new commands which are enqueued after cmdqueue reset, will be always executed
	cmdbuffer_front_already_processed = true;
    fdbc:	81 e0       	ldi	r24, 0x01	; 1
    fdbe:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
}
    fdc2:	08 95       	ret

0000fdc4 <gcode_G81_M420()>:
}

// G81_M420 Mesh bed leveling status

static void gcode_G81_M420()
{
    fdc4:	ef 92       	push	r14
    fdc6:	ff 92       	push	r15
    fdc8:	0f 93       	push	r16
    fdca:	1f 93       	push	r17
    fdcc:	cf 93       	push	r28
    fdce:	df 93       	push	r29
    if (mbl.active) {
    fdd0:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
    fdd4:	88 23       	and	r24, r24
    fdd6:	89 f1       	breq	.+98     	; 0xfe3a <gcode_G81_M420()+0x76>
        }
    }
}

void mesh_bed_leveling::print() {
    SERIAL_PROTOCOLLNPGM("Num X,Y: " STRINGIFY(MESH_NUM_X_POINTS) "," STRINGIFY(MESH_NUM_Y_POINTS));
    fdd8:	86 e7       	ldi	r24, 0x76	; 118
    fdda:	9c e7       	ldi	r25, 0x7C	; 124
    fddc:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    SERIAL_PROTOCOLLNPGM("Z search height: " STRINGIFY(MESH_HOME_Z_SEARCH));
    fde0:	80 e6       	ldi	r24, 0x60	; 96
    fde2:	9c e7       	ldi	r25, 0x7C	; 124
    fde4:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    SERIAL_PROTOCOLLNPGM("Measured points:");
    fde8:	8f e4       	ldi	r24, 0x4F	; 79
    fdea:	9c e7       	ldi	r25, 0x7C	; 124
    fdec:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    for (uint8_t y = MESH_NUM_Y_POINTS; y-- > 0;) {
    fdf0:	c7 e0       	ldi	r28, 0x07	; 7
    fdf2:	dc e1       	ldi	r29, 0x1C	; 28
    fdf4:	c1 50       	subi	r28, 0x01	; 1
    fdf6:	58 f1       	brcs	.+86     	; 0xfe4e <gcode_G81_M420()+0x8a>
    fdf8:	cd 9f       	mul	r28, r29
    fdfa:	70 01       	movw	r14, r0
    fdfc:	11 24       	eor	r1, r1
    fdfe:	01 e0       	ldi	r16, 0x01	; 1
    fe00:	10 e0       	ldi	r17, 0x00	; 0
        for (uint8_t x = 0; x < MESH_NUM_X_POINTS; x++) {
            SERIAL_PROTOCOLPGM("  ");
    fe02:	8c e4       	ldi	r24, 0x4C	; 76
    fe04:	9c e7       	ldi	r25, 0x7C	; 124
    fe06:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_PROTOCOL_F(z_values[y][x], 5);
    fe0a:	f8 01       	movw	r30, r16
    fe0c:	ee 0f       	add	r30, r30
    fe0e:	ff 1f       	adc	r31, r31
    fe10:	ee 0f       	add	r30, r30
    fe12:	ff 1f       	adc	r31, r31
    fe14:	ee 0d       	add	r30, r14
    fe16:	ff 1d       	adc	r31, r15
    fe18:	e1 54       	subi	r30, 0x41	; 65
    fe1a:	fc 4e       	sbci	r31, 0xEC	; 236
    fe1c:	60 81       	ld	r22, Z
    fe1e:	71 81       	ldd	r23, Z+1	; 0x01
    fe20:	82 81       	ldd	r24, Z+2	; 0x02
    fe22:	93 81       	ldd	r25, Z+3	; 0x03
    fe24:	45 e0       	ldi	r20, 0x05	; 5
    fe26:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
    fe2a:	0f 5f       	subi	r16, 0xFF	; 255
    fe2c:	1f 4f       	sbci	r17, 0xFF	; 255
void mesh_bed_leveling::print() {
    SERIAL_PROTOCOLLNPGM("Num X,Y: " STRINGIFY(MESH_NUM_X_POINTS) "," STRINGIFY(MESH_NUM_Y_POINTS));
    SERIAL_PROTOCOLLNPGM("Z search height: " STRINGIFY(MESH_HOME_Z_SEARCH));
    SERIAL_PROTOCOLLNPGM("Measured points:");
    for (uint8_t y = MESH_NUM_Y_POINTS; y-- > 0;) {
        for (uint8_t x = 0; x < MESH_NUM_X_POINTS; x++) {
    fe2e:	08 30       	cpi	r16, 0x08	; 8
    fe30:	11 05       	cpc	r17, r1
    fe32:	39 f7       	brne	.-50     	; 0xfe02 <gcode_G81_M420()+0x3e>
            SERIAL_PROTOCOLPGM("  ");
            SERIAL_PROTOCOL_F(z_values[y][x], 5);
        }
        SERIAL_PROTOCOLLN();
    fe34:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
    fe38:	dd cf       	rjmp	.-70     	; 0xfdf4 <gcode_G81_M420()+0x30>
        mbl.print();
        } else SERIAL_PROTOCOLLNPGM("Mesh bed leveling not active.");
    fe3a:	83 e8       	ldi	r24, 0x83	; 131
    fe3c:	9c e7       	ldi	r25, 0x7C	; 124
    return;
}
    fe3e:	df 91       	pop	r29
    fe40:	cf 91       	pop	r28
    fe42:	1f 91       	pop	r17
    fe44:	0f 91       	pop	r16
    fe46:	ff 90       	pop	r15
    fe48:	ef 90       	pop	r14

static void gcode_G81_M420()
{
    if (mbl.active) {
        mbl.print();
        } else SERIAL_PROTOCOLLNPGM("Mesh bed leveling not active.");
    fe4a:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    return;
}
    fe4e:	df 91       	pop	r29
    fe50:	cf 91       	pop	r28
    fe52:	1f 91       	pop	r17
    fe54:	0f 91       	pop	r16
    fe56:	ff 90       	pop	r15
    fe58:	ef 90       	pop	r14
    fe5a:	08 95       	ret

0000fe5c <host_keepalive()>:

/**
* Output a "busy" message at regular intervals
* while the machine is not accepting commands.
*/
void host_keepalive() {
    fe5c:	8f 92       	push	r8
    fe5e:	9f 92       	push	r9
    fe60:	af 92       	push	r10
    fe62:	bf 92       	push	r11
    fe64:	cf 92       	push	r12
    fe66:	df 92       	push	r13
    fe68:	ef 92       	push	r14
    fe6a:	ff 92       	push	r15
#ifndef HOST_KEEPALIVE_FEATURE
  return;
#endif //HOST_KEEPALIVE_FEATURE
  if (farm_mode) return;
  long ms = _millis();
    fe6c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    fe70:	6b 01       	movw	r12, r22
    fe72:	7c 01       	movw	r14, r24

  if (host_keepalive_interval && busy_state != NOT_BUSY) {
    fe74:	20 91 2f 02 	lds	r18, 0x022F	; 0x80022f <host_keepalive_interval>
    fe78:	22 23       	and	r18, r18
    fe7a:	09 f1       	breq	.+66     	; 0xfebe <host_keepalive()+0x62>
    fe7c:	40 91 be 02 	lds	r20, 0x02BE	; 0x8002be <busy_state>
    fe80:	41 30       	cpi	r20, 0x01	; 1
    fe82:	e9 f0       	breq	.+58     	; 0xfebe <host_keepalive()+0x62>
    if ((ms - prev_busy_signal_ms) < (long)(1000L * host_keepalive_interval)) return;
    fe84:	80 91 10 02 	lds	r24, 0x0210	; 0x800210 <prev_busy_signal_ms>
    fe88:	90 91 11 02 	lds	r25, 0x0211	; 0x800211 <prev_busy_signal_ms+0x1>
    fe8c:	a0 91 12 02 	lds	r26, 0x0212	; 0x800212 <prev_busy_signal_ms+0x2>
    fe90:	b0 91 13 02 	lds	r27, 0x0213	; 0x800213 <prev_busy_signal_ms+0x3>
    fe94:	46 01       	movw	r8, r12
    fe96:	57 01       	movw	r10, r14
    fe98:	88 1a       	sub	r8, r24
    fe9a:	99 0a       	sbc	r9, r25
    fe9c:	aa 0a       	sbc	r10, r26
    fe9e:	bb 0a       	sbc	r11, r27
    fea0:	30 e0       	ldi	r19, 0x00	; 0
    fea2:	a8 ee       	ldi	r26, 0xE8	; 232
    fea4:	b3 e0       	ldi	r27, 0x03	; 3
    fea6:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
    feaa:	86 16       	cp	r8, r22
    feac:	97 06       	cpc	r9, r23
    feae:	a8 06       	cpc	r10, r24
    feb0:	b9 06       	cpc	r11, r25
    feb2:	6c f0       	brlt	.+26     	; 0xfece <host_keepalive()+0x72>
     switch (busy_state) {
    feb4:	44 30       	cpi	r20, 0x04	; 4
    feb6:	31 f1       	breq	.+76     	; 0xff04 <host_keepalive()+0xa8>
    feb8:	9c f4       	brge	.+38     	; 0xfee0 <host_keepalive()+0x84>
    feba:	42 30       	cpi	r20, 0x02	; 2
    febc:	d4 f4       	brge	.+52     	; 0xfef2 <host_keepalive()+0x96>
        break;
      default:
	break;
    }
  }
  prev_busy_signal_ms = ms;
    febe:	c0 92 10 02 	sts	0x0210, r12	; 0x800210 <prev_busy_signal_ms>
    fec2:	d0 92 11 02 	sts	0x0211, r13	; 0x800211 <prev_busy_signal_ms+0x1>
    fec6:	e0 92 12 02 	sts	0x0212, r14	; 0x800212 <prev_busy_signal_ms+0x2>
    feca:	f0 92 13 02 	sts	0x0213, r15	; 0x800213 <prev_busy_signal_ms+0x3>
}
    fece:	ff 90       	pop	r15
    fed0:	ef 90       	pop	r14
    fed2:	df 90       	pop	r13
    fed4:	cf 90       	pop	r12
    fed6:	bf 90       	pop	r11
    fed8:	af 90       	pop	r10
    feda:	9f 90       	pop	r9
    fedc:	8f 90       	pop	r8
    fede:	08 95       	ret
  if (farm_mode) return;
  long ms = _millis();

  if (host_keepalive_interval && busy_state != NOT_BUSY) {
    if ((ms - prev_busy_signal_ms) < (long)(1000L * host_keepalive_interval)) return;
     switch (busy_state) {
    fee0:	45 30       	cpi	r20, 0x05	; 5
    fee2:	69 f7       	brne	.-38     	; 0xfebe <host_keepalive()+0x62>
      case PAUSED_FOR_USER:
        SERIAL_ECHO_START;
        SERIAL_ECHOLNPGM("busy: paused for user");
        break;
      case PAUSED_FOR_INPUT:
        SERIAL_ECHO_START;
    fee4:	80 ed       	ldi	r24, 0xD0	; 208
    fee6:	9a ea       	ldi	r25, 0xAA	; 170
    fee8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLNPGM("busy: paused for input");
    feec:	88 ef       	ldi	r24, 0xF8	; 248
    feee:	9a e7       	ldi	r25, 0x7A	; 122
    fef0:	06 c0       	rjmp	.+12     	; 0xfefe <host_keepalive()+0xa2>
  if (host_keepalive_interval && busy_state != NOT_BUSY) {
    if ((ms - prev_busy_signal_ms) < (long)(1000L * host_keepalive_interval)) return;
     switch (busy_state) {
      case IN_HANDLER:
      case IN_PROCESS:
        SERIAL_ECHO_START;
    fef2:	80 ed       	ldi	r24, 0xD0	; 208
    fef4:	9a ea       	ldi	r25, 0xAA	; 170
    fef6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLNPGM("busy: processing");
    fefa:	85 e2       	ldi	r24, 0x25	; 37
    fefc:	9b e7       	ldi	r25, 0x7B	; 123
        SERIAL_ECHO_START;
        SERIAL_ECHOLNPGM("busy: paused for user");
        break;
      case PAUSED_FOR_INPUT:
        SERIAL_ECHO_START;
        SERIAL_ECHOLNPGM("busy: paused for input");
    fefe:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    ff02:	dd cf       	rjmp	.-70     	; 0xfebe <host_keepalive()+0x62>
      case IN_PROCESS:
        SERIAL_ECHO_START;
        SERIAL_ECHOLNPGM("busy: processing");
        break;
      case PAUSED_FOR_USER:
        SERIAL_ECHO_START;
    ff04:	80 ed       	ldi	r24, 0xD0	; 208
    ff06:	9a ea       	ldi	r25, 0xAA	; 170
    ff08:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLNPGM("busy: paused for user");
    ff0c:	8f e0       	ldi	r24, 0x0F	; 15
    ff0e:	9b e7       	ldi	r25, 0x7B	; 123
    ff10:	f6 cf       	rjmp	.-20     	; 0xfefe <host_keepalive()+0xa2>

0000ff12 <checkFans()>:
    //}
}
#endif //TACH_0

void checkFans()
{
    ff12:	cf 92       	push	r12
    ff14:	df 92       	push	r13
    ff16:	ef 92       	push	r14
    ff18:	ff 92       	push	r15
    ff1a:	0f 93       	push	r16
    ff1c:	1f 93       	push	r17
    ff1e:	cf 93       	push	r28
    ff20:	df 93       	push	r29
    ff22:	1f 92       	push	r1
    ff24:	1f 92       	push	r1
    ff26:	cd b7       	in	r28, 0x3d	; 61
    ff28:	de b7       	in	r29, 0x3e	; 62
#ifndef DEBUG_DISABLE_FANCHECK
#if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)

#ifdef FAN_SOFT_PWM
#ifdef FANCHECK
  if ((_millis() - extruder_autofan_last_check > FAN_CHECK_PERIOD) && (!fan_measuring)) {
    ff2a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    ff2e:	00 91 c0 17 	lds	r16, 0x17C0	; 0x8017c0 <extruder_autofan_last_check>
    ff32:	10 91 c1 17 	lds	r17, 0x17C1	; 0x8017c1 <extruder_autofan_last_check+0x1>
    ff36:	20 91 c2 17 	lds	r18, 0x17C2	; 0x8017c2 <extruder_autofan_last_check+0x2>
    ff3a:	30 91 c3 17 	lds	r19, 0x17C3	; 0x8017c3 <extruder_autofan_last_check+0x3>
    ff3e:	60 1b       	sub	r22, r16
    ff40:	71 0b       	sbc	r23, r17
    ff42:	82 0b       	sbc	r24, r18
    ff44:	93 0b       	sbc	r25, r19
    ff46:	69 38       	cpi	r22, 0x89	; 137
    ff48:	73 41       	sbci	r23, 0x13	; 19
    ff4a:	81 05       	cpc	r24, r1
    ff4c:	91 05       	cpc	r25, r1
    ff4e:	d0 f0       	brcs	.+52     	; 0xff84 <checkFans()+0x72>
    ff50:	80 91 6f 06 	lds	r24, 0x066F	; 0x80066f <fan_measuring>
    ff54:	81 11       	cpse	r24, r1
    ff56:	16 c0       	rjmp	.+44     	; 0xff84 <checkFans()+0x72>
	  extruder_autofan_last_check = _millis();
    ff58:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    ff5c:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
    ff60:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
    ff64:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
    ff68:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
	  fanSpeedBckp = fanSpeedSoftPwm;
    ff6c:	80 91 a6 04 	lds	r24, 0x04A6	; 0x8004a6 <fanSpeedSoftPwm>
    ff70:	80 93 14 02 	sts	0x0214, r24	; 0x800214 <fanSpeedBckp>

	  if (fanSpeedSoftPwm >= MIN_PRINT_FAN_SPEED) { //if we are in rage where we are doing fan check, set full PWM range for a short time to measure fan RPM by reading tacho signal without modulation by PWM signal
    ff74:	8b 34       	cpi	r24, 0x4B	; 75
    ff76:	18 f0       	brcs	.+6      	; 0xff7e <checkFans()+0x6c>
		//  printf_P(PSTR("fanSpeedSoftPwm 1: %d\n"), fanSpeedSoftPwm);
		  fanSpeedSoftPwm = 255;
    ff78:	8f ef       	ldi	r24, 0xFF	; 255
    ff7a:	80 93 a6 04 	sts	0x04A6, r24	; 0x8004a6 <fanSpeedSoftPwm>
	  }
	  fan_measuring = true;
    ff7e:	81 e0       	ldi	r24, 0x01	; 1
    ff80:	80 93 6f 06 	sts	0x066F, r24	; 0x80066f <fan_measuring>
  }
  if ((_millis() - extruder_autofan_last_check > FAN_CHECK_DURATION) && (fan_measuring)) {
    ff84:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    ff88:	00 91 c0 17 	lds	r16, 0x17C0	; 0x8017c0 <extruder_autofan_last_check>
    ff8c:	10 91 c1 17 	lds	r17, 0x17C1	; 0x8017c1 <extruder_autofan_last_check+0x1>
    ff90:	20 91 c2 17 	lds	r18, 0x17C2	; 0x8017c2 <extruder_autofan_last_check+0x2>
    ff94:	30 91 c3 17 	lds	r19, 0x17C3	; 0x8017c3 <extruder_autofan_last_check+0x3>
    ff98:	60 1b       	sub	r22, r16
    ff9a:	71 0b       	sbc	r23, r17
    ff9c:	82 0b       	sbc	r24, r18
    ff9e:	93 0b       	sbc	r25, r19
    ffa0:	65 36       	cpi	r22, 0x65	; 101
    ffa2:	71 05       	cpc	r23, r1
    ffa4:	81 05       	cpc	r24, r1
    ffa6:	91 05       	cpc	r25, r1
    ffa8:	08 f4       	brcc	.+2      	; 0xffac <checkFans()+0x9a>
    ffaa:	57 c1       	rjmp	.+686    	; 0x1025a <checkFans()+0x348>
    ffac:	80 91 6f 06 	lds	r24, 0x066F	; 0x80066f <fan_measuring>
    ffb0:	88 23       	and	r24, r24
    ffb2:	09 f4       	brne	.+2      	; 0xffb6 <checkFans()+0xa4>
    ffb4:	52 c1       	rjmp	.+676    	; 0x1025a <checkFans()+0x348>
#if (defined(FANCHECK) && (((defined(TACH_0) && (TACH_0 >-1)) || (defined(TACH_1) && (TACH_1 > -1)))))

void countFanSpeed()
{
    //SERIAL_ECHOPGM("edge counter 1:"); MYSERIAL.println(fan_edge_counter[1]);
    fan_speed[0] = (fan_edge_counter[0] * (float(250) / (_millis() - extruder_autofan_last_check)));
    ffb6:	60 91 e2 05 	lds	r22, 0x05E2	; 0x8005e2 <fan_edge_counter>
    ffba:	70 91 e3 05 	lds	r23, 0x05E3	; 0x8005e3 <fan_edge_counter+0x1>
    ffbe:	07 2e       	mov	r0, r23
    ffc0:	00 0c       	add	r0, r0
    ffc2:	88 0b       	sbc	r24, r24
    ffc4:	99 0b       	sbc	r25, r25
    ffc6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    ffca:	6b 01       	movw	r12, r22
    ffcc:	7c 01       	movw	r14, r24
    ffce:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    ffd2:	00 91 c0 17 	lds	r16, 0x17C0	; 0x8017c0 <extruder_autofan_last_check>
    ffd6:	10 91 c1 17 	lds	r17, 0x17C1	; 0x8017c1 <extruder_autofan_last_check+0x1>
    ffda:	20 91 c2 17 	lds	r18, 0x17C2	; 0x8017c2 <extruder_autofan_last_check+0x2>
    ffde:	30 91 c3 17 	lds	r19, 0x17C3	; 0x8017c3 <extruder_autofan_last_check+0x3>
    ffe2:	60 1b       	sub	r22, r16
    ffe4:	71 0b       	sbc	r23, r17
    ffe6:	82 0b       	sbc	r24, r18
    ffe8:	93 0b       	sbc	r25, r19
    ffea:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
    ffee:	9b 01       	movw	r18, r22
    fff0:	ac 01       	movw	r20, r24
    fff2:	60 e0       	ldi	r22, 0x00	; 0
    fff4:	70 e0       	ldi	r23, 0x00	; 0
    fff6:	8a e7       	ldi	r24, 0x7A	; 122
    fff8:	93 e4       	ldi	r25, 0x43	; 67
    fffa:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
    fffe:	a7 01       	movw	r20, r14
   10000:	96 01       	movw	r18, r12
   10002:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   10006:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1000a:	70 93 ca 03 	sts	0x03CA, r23	; 0x8003ca <fan_speed+0x1>
   1000e:	60 93 c9 03 	sts	0x03C9, r22	; 0x8003c9 <fan_speed>
    fan_speed[1] = (fan_edge_counter[1] * (float(250) / (_millis() - extruder_autofan_last_check)));
   10012:	60 91 e4 05 	lds	r22, 0x05E4	; 0x8005e4 <fan_edge_counter+0x2>
   10016:	70 91 e5 05 	lds	r23, 0x05E5	; 0x8005e5 <fan_edge_counter+0x3>
   1001a:	07 2e       	mov	r0, r23
   1001c:	00 0c       	add	r0, r0
   1001e:	88 0b       	sbc	r24, r24
   10020:	99 0b       	sbc	r25, r25
   10022:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   10026:	6b 01       	movw	r12, r22
   10028:	7c 01       	movw	r14, r24
   1002a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   1002e:	00 91 c0 17 	lds	r16, 0x17C0	; 0x8017c0 <extruder_autofan_last_check>
   10032:	10 91 c1 17 	lds	r17, 0x17C1	; 0x8017c1 <extruder_autofan_last_check+0x1>
   10036:	20 91 c2 17 	lds	r18, 0x17C2	; 0x8017c2 <extruder_autofan_last_check+0x2>
   1003a:	30 91 c3 17 	lds	r19, 0x17C3	; 0x8017c3 <extruder_autofan_last_check+0x3>
   1003e:	60 1b       	sub	r22, r16
   10040:	71 0b       	sbc	r23, r17
   10042:	82 0b       	sbc	r24, r18
   10044:	93 0b       	sbc	r25, r19
   10046:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   1004a:	9b 01       	movw	r18, r22
   1004c:	ac 01       	movw	r20, r24
   1004e:	60 e0       	ldi	r22, 0x00	; 0
   10050:	70 e0       	ldi	r23, 0x00	; 0
   10052:	8a e7       	ldi	r24, 0x7A	; 122
   10054:	93 e4       	ldi	r25, 0x43	; 67
   10056:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1005a:	a7 01       	movw	r20, r14
   1005c:	96 01       	movw	r18, r12
   1005e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   10062:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   10066:	8b 01       	movw	r16, r22
   10068:	70 93 cc 03 	sts	0x03CC, r23	; 0x8003cc <fan_speed+0x3>
   1006c:	60 93 cb 03 	sts	0x03CB, r22	; 0x8003cb <fan_speed+0x2>
    /*SERIAL_ECHOPGM("time interval: "); MYSERIAL.println(_millis() - extruder_autofan_last_check);
    SERIAL_ECHOPGM("hotend fan speed:"); MYSERIAL.print(fan_speed[0]); SERIAL_ECHOPGM("; edge counter:"); MYSERIAL.println(fan_edge_counter[0]);
    SERIAL_ECHOPGM("print fan speed:"); MYSERIAL.print(fan_speed[1]); SERIAL_ECHOPGM("; edge counter:"); MYSERIAL.println(fan_edge_counter[1]);
    SERIAL_ECHOLNPGM(" ");*/
    fan_edge_counter[0] = 0;
   10070:	10 92 e3 05 	sts	0x05E3, r1	; 0x8005e3 <fan_edge_counter+0x1>
   10074:	10 92 e2 05 	sts	0x05E2, r1	; 0x8005e2 <fan_edge_counter>
    fan_edge_counter[1] = 0;
   10078:	10 92 e5 05 	sts	0x05E5, r1	; 0x8005e5 <fan_edge_counter+0x3>
   1007c:	10 92 e4 05 	sts	0x05E4, r1	; 0x8005e4 <fan_edge_counter+0x2>

void checkFanSpeed()
{
    uint8_t max_fan_errors[2];
#ifdef FAN_SOFT_PWM
    max_fan_errors[1] = 3;  // 15 seconds (Print fan)
   10080:	83 e0       	ldi	r24, 0x03	; 3
   10082:	8a 83       	std	Y+2, r24	; 0x02
    max_fan_errors[0] = 2;  // 10 seconds (Hotend fan)
   10084:	82 e0       	ldi	r24, 0x02	; 2
   10086:	89 83       	std	Y+1, r24	; 0x01
#else //FAN_SOFT_PWM
    max_fan_errors[1] = 15; // 15 seconds (Print fan)
    max_fan_errors[0] = 5;  // 5  seconds (Hotend fan)
#endif //FAN_SOFT_PWM

    if(fans_check_enabled)
   10088:	80 91 38 02 	lds	r24, 0x0238	; 0x800238 <fans_check_enabled>
   1008c:	88 23       	and	r24, r24
   1008e:	51 f0       	breq	.+20     	; 0x100a4 <checkFans()+0x192>
        fans_check_enabled = (eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED) > 0);
   10090:	87 e8       	ldi	r24, 0x87	; 135
   10092:	9f e0       	ldi	r25, 0x0F	; 15
   10094:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   10098:	91 e0       	ldi	r25, 0x01	; 1
   1009a:	81 11       	cpse	r24, r1
   1009c:	01 c0       	rjmp	.+2      	; 0x100a0 <checkFans()+0x18e>
   1009e:	90 e0       	ldi	r25, 0x00	; 0
   100a0:	90 93 38 02 	sts	0x0238, r25	; 0x800238 <fans_check_enabled>
    static uint8_t fan_speed_errors[2] = { 0,0 };
#if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 >-1))
    if ((fan_speed[0] < 20) && (current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE)){ fan_speed_errors[0]++;}
   100a4:	80 91 c9 03 	lds	r24, 0x03C9	; 0x8003c9 <fan_speed>
   100a8:	90 91 ca 03 	lds	r25, 0x03CA	; 0x8003ca <fan_speed+0x1>
   100ac:	44 97       	sbiw	r24, 0x14	; 20
   100ae:	0c f0       	brlt	.+2      	; 0x100b2 <checkFans()+0x1a0>
   100b0:	9d c0       	rjmp	.+314    	; 0x101ec <checkFans()+0x2da>
   100b2:	20 e0       	ldi	r18, 0x00	; 0
   100b4:	30 e0       	ldi	r19, 0x00	; 0
   100b6:	48 e4       	ldi	r20, 0x48	; 72
   100b8:	52 e4       	ldi	r21, 0x42	; 66
   100ba:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   100be:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   100c2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   100c6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   100ca:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   100ce:	18 16       	cp	r1, r24
   100d0:	0c f0       	brlt	.+2      	; 0x100d4 <checkFans()+0x1c2>
   100d2:	8c c0       	rjmp	.+280    	; 0x101ec <checkFans()+0x2da>
   100d4:	80 91 4e 03 	lds	r24, 0x034E	; 0x80034e <checkFanSpeed()::fan_speed_errors>
   100d8:	8f 5f       	subi	r24, 0xFF	; 255
   100da:	80 93 4e 03 	sts	0x034E, r24	; 0x80034e <checkFanSpeed()::fan_speed_errors>
    else fan_speed_errors[0] = 0;
#endif
#if (defined(FANCHECK) && defined(TACH_1) && (TACH_1 >-1))
    if ((fan_speed[1] < 5) && ((blocks_queued() ? block_buffer[block_buffer_tail].fan_speed : fanSpeed) > MIN_PRINT_FAN_SPEED)) fan_speed_errors[1]++;
   100de:	05 30       	cpi	r16, 0x05	; 5
   100e0:	11 05       	cpc	r17, r1
   100e2:	0c f0       	brlt	.+2      	; 0x100e6 <checkFans()+0x1d4>
   100e4:	89 c0       	rjmp	.+274    	; 0x101f8 <checkFans()+0x2e6>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   100e6:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   100ea:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   100ee:	98 17       	cp	r25, r24
   100f0:	09 f4       	brne	.+2      	; 0x100f4 <checkFans()+0x1e2>
   100f2:	7f c0       	rjmp	.+254    	; 0x101f2 <checkFans()+0x2e0>
   100f4:	e0 91 a6 0d 	lds	r30, 0x0DA6	; 0x800da6 <block_buffer_tail>
   100f8:	8e e6       	ldi	r24, 0x6E	; 110
   100fa:	e8 9f       	mul	r30, r24
   100fc:	f0 01       	movw	r30, r0
   100fe:	11 24       	eor	r1, r1
   10100:	e5 5f       	subi	r30, 0xF5	; 245
   10102:	f8 4f       	sbci	r31, 0xF8	; 248
   10104:	80 81       	ld	r24, Z
   10106:	8c 34       	cpi	r24, 0x4C	; 76
   10108:	08 f4       	brcc	.+2      	; 0x1010c <checkFans()+0x1fa>
   1010a:	76 c0       	rjmp	.+236    	; 0x101f8 <checkFans()+0x2e6>
   1010c:	80 91 4f 03 	lds	r24, 0x034F	; 0x80034f <checkFanSpeed()::fan_speed_errors+0x1>
   10110:	8f 5f       	subi	r24, 0xFF	; 255
   10112:	80 93 4f 03 	sts	0x034F, r24	; 0x80034f <checkFanSpeed()::fan_speed_errors+0x1>
    else fan_speed_errors[1] = 0;
#endif

    // drop the fan_check_error flag when both fans are ok
    if( fan_speed_errors[0] == 0 && fan_speed_errors[1] == 0 && fan_check_error == EFCE_REPORTED){
   10116:	80 91 4e 03 	lds	r24, 0x034E	; 0x80034e <checkFanSpeed()::fan_speed_errors>
   1011a:	81 11       	cpse	r24, r1
   1011c:	0b c0       	rjmp	.+22     	; 0x10134 <checkFans()+0x222>
   1011e:	80 91 4f 03 	lds	r24, 0x034F	; 0x80034f <checkFanSpeed()::fan_speed_errors+0x1>
   10122:	81 11       	cpse	r24, r1
   10124:	07 c0       	rjmp	.+14     	; 0x10134 <checkFans()+0x222>
   10126:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   1012a:	82 30       	cpi	r24, 0x02	; 2
   1012c:	19 f4       	brne	.+6      	; 0x10134 <checkFans()+0x222>
        // we may even send some info to the LCD from here
        fan_check_error = EFCE_FIXED;
   1012e:	81 e0       	ldi	r24, 0x01	; 1
   10130:	80 93 e6 03 	sts	0x03E6, r24	; 0x8003e6 <fan_check_error>
    }
    if ((fan_check_error == EFCE_FIXED) && !printer_active()){
   10134:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   10138:	81 30       	cpi	r24, 0x01	; 1
   1013a:	61 f4       	brne	.+24     	; 0x10154 <checkFans()+0x242>
   1013c:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   10140:	81 11       	cpse	r24, r1
   10142:	08 c0       	rjmp	.+16     	; 0x10154 <checkFans()+0x242>
        fan_check_error = EFCE_OK; //if the issue is fixed while the printer is doing nothing, reenable processing immediately.
   10144:	10 92 e6 03 	sts	0x03E6, r1	; 0x8003e6 <fan_check_error>
    lcd_setalertstatus_(message, severity, true);
}

void lcd_reset_alert_level()
{
    lcd_status_message_level = 0;
   10148:	10 92 d5 03 	sts	0x03D5, r1	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
        lcd_reset_alert_level(); //for another fan speed error
        lcd_setstatuspgm(MSG_WELCOME); // Reset the status line message to visually show the error is gone
   1014c:	8f ec       	ldi	r24, 0xCF	; 207
   1014e:	9f e6       	ldi	r25, 0x6F	; 111
   10150:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    }
    if (fans_check_enabled && (fan_check_error != EFCE_REPORTED))
   10154:	80 91 38 02 	lds	r24, 0x0238	; 0x800238 <fans_check_enabled>
   10158:	88 23       	and	r24, r24
   1015a:	09 f4       	brne	.+2      	; 0x1015e <checkFans()+0x24c>
   1015c:	6e c0       	rjmp	.+220    	; 0x1023a <checkFans()+0x328>
   1015e:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   10162:	82 30       	cpi	r24, 0x02	; 2
   10164:	09 f4       	brne	.+2      	; 0x10168 <checkFans()+0x256>
   10166:	69 c0       	rjmp	.+210    	; 0x1023a <checkFans()+0x328>
   10168:	8e e4       	ldi	r24, 0x4E	; 78
   1016a:	e8 2e       	mov	r14, r24
   1016c:	83 e0       	ldi	r24, 0x03	; 3
   1016e:	f8 2e       	mov	r15, r24
   10170:	fe 01       	movw	r30, r28
   10172:	31 96       	adiw	r30, 0x01	; 1
   10174:	6f 01       	movw	r12, r30
    {
        for (uint8_t fan = 0; fan < 2; fan++)
   10176:	10 e0       	ldi	r17, 0x00	; 0
    }
}

void fanSpeedError(unsigned char _fan) {
    if (fan_check_error == EFCE_REPORTED) return;
    fan_check_error = EFCE_REPORTED;
   10178:	02 e0       	ldi	r16, 0x02	; 2
    }
    if (fans_check_enabled && (fan_check_error != EFCE_REPORTED))
    {
        for (uint8_t fan = 0; fan < 2; fan++)
        {
            if (fan_speed_errors[fan] > max_fan_errors[fan])
   1017a:	f7 01       	movw	r30, r14
   1017c:	91 91       	ld	r25, Z+
   1017e:	7f 01       	movw	r14, r30
   10180:	f6 01       	movw	r30, r12
   10182:	81 91       	ld	r24, Z+
   10184:	6f 01       	movw	r12, r30
   10186:	89 17       	cp	r24, r25
   10188:	68 f5       	brcc	.+90     	; 0x101e4 <checkFans()+0x2d2>
            {
                fan_speed_errors[fan] = 0;
   1018a:	f7 01       	movw	r30, r14
   1018c:	31 97       	sbiw	r30, 0x01	; 1
   1018e:	10 82       	st	Z, r1
        LCD_ALERTMESSAGERPGM(lcdMsg);
    }
}

void fanSpeedError(unsigned char _fan) {
    if (fan_check_error == EFCE_REPORTED) return;
   10190:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   10194:	82 30       	cpi	r24, 0x02	; 2
   10196:	31 f1       	breq	.+76     	; 0x101e4 <checkFans()+0x2d2>
    fan_check_error = EFCE_REPORTED;
   10198:	00 93 e6 03 	sts	0x03E6, r16	; 0x8003e6 <fan_check_error>

    if (printJobOngoing()) {
   1019c:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   101a0:	88 23       	and	r24, r24
   101a2:	81 f1       	breq	.+96     	; 0x10204 <checkFans()+0x2f2>
        // A print is ongoing, pause the print normally
        if(!printingIsPaused()) {
   101a4:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   101a8:	81 11       	cpse	r24, r1
   101aa:	06 c0       	rjmp	.+12     	; 0x101b8 <checkFans()+0x2a6>
            if (usb_timer.running())
   101ac:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
   101b0:	88 23       	and	r24, r24
   101b2:	29 f1       	breq	.+74     	; 0x101fe <checkFans()+0x2ec>
                lcd_pause_usb_print();
   101b4:	0f 94 a5 15 	call	0x22b4a	; 0x22b4a <lcd_pause_usb_print()>
    else {
        // Nothing is going on, but still turn off heaters and report the error
        setTargetHotend(0);
        heating_status = HeatingStatus::NO_HEATING;
    }
    switch (_fan) {
   101b8:	11 30       	cpi	r17, 0x01	; 1
   101ba:	59 f1       	breq	.+86     	; 0x10212 <checkFans()+0x300>
//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps.
//! Extracted from fanSpeedError to save some space.
//! @param serialMsg pointer into PROGMEM, this text will be printed to the serial port
//! @param lcdMsg pointer into PROGMEM, this text will be printed onto the LCD
static void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){
    SERIAL_ECHOLNRPGM(serialMsg);
   101bc:	89 e6       	ldi	r24, 0x69	; 105
   101be:	98 e7       	ldi	r25, 0x78	; 120
   101c0:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    if (get_message_level() == 0) {
   101c4:	80 91 d5 03 	lds	r24, 0x03D5	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
   101c8:	81 11       	cpse	r24, r1
   101ca:	0c c0       	rjmp	.+24     	; 0x101e4 <checkFans()+0x2d2>
        Sound_MakeCustom(200,0,true);
   101cc:	41 e0       	ldi	r20, 0x01	; 1
   101ce:	70 e0       	ldi	r23, 0x00	; 0
   101d0:	60 e0       	ldi	r22, 0x00	; 0
   101d2:	88 ec       	ldi	r24, 0xC8	; 200
   101d4:	90 e0       	ldi	r25, 0x00	; 0
   101d6:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
        LCD_ALERTMESSAGERPGM(lcdMsg);
   101da:	62 e0       	ldi	r22, 0x02	; 2
   101dc:	8a e3       	ldi	r24, 0x3A	; 58
   101de:	9a e6       	ldi	r25, 0x6A	; 106
   101e0:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
        lcd_reset_alert_level(); //for another fan speed error
        lcd_setstatuspgm(MSG_WELCOME); // Reset the status line message to visually show the error is gone
    }
    if (fans_check_enabled && (fan_check_error != EFCE_REPORTED))
    {
        for (uint8_t fan = 0; fan < 2; fan++)
   101e4:	11 30       	cpi	r17, 0x01	; 1
   101e6:	49 f1       	breq	.+82     	; 0x1023a <checkFans()+0x328>
   101e8:	11 e0       	ldi	r17, 0x01	; 1
   101ea:	c7 cf       	rjmp	.-114    	; 0x1017a <checkFans()+0x268>
    if(fans_check_enabled)
        fans_check_enabled = (eeprom_read_byte((uint8_t*)EEPROM_FAN_CHECK_ENABLED) > 0);
    static uint8_t fan_speed_errors[2] = { 0,0 };
#if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 >-1))
    if ((fan_speed[0] < 20) && (current_temperature[0] > EXTRUDER_AUTO_FAN_TEMPERATURE)){ fan_speed_errors[0]++;}
    else fan_speed_errors[0] = 0;
   101ec:	10 92 4e 03 	sts	0x034E, r1	; 0x80034e <checkFanSpeed()::fan_speed_errors>
   101f0:	76 cf       	rjmp	.-276    	; 0x100de <checkFans()+0x1cc>
#endif
#if (defined(FANCHECK) && defined(TACH_1) && (TACH_1 >-1))
    if ((fan_speed[1] < 5) && ((blocks_queued() ? block_buffer[block_buffer_tail].fan_speed : fanSpeed) > MIN_PRINT_FAN_SPEED)) fan_speed_errors[1]++;
   101f2:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
   101f6:	87 cf       	rjmp	.-242    	; 0x10106 <checkFans()+0x1f4>
    else fan_speed_errors[1] = 0;
   101f8:	10 92 4f 03 	sts	0x034F, r1	; 0x80034f <checkFanSpeed()::fan_speed_errors+0x1>
   101fc:	8c cf       	rjmp	.-232    	; 0x10116 <checkFans()+0x204>
        // A print is ongoing, pause the print normally
        if(!printingIsPaused()) {
            if (usb_timer.running())
                lcd_pause_usb_print();
            else
                lcd_pause_print();
   101fe:	0f 94 64 2a 	call	0x254c8	; 0x254c8 <lcd_pause_print()>
   10202:	da cf       	rjmp	.-76     	; 0x101b8 <checkFans()+0x2a6>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   10204:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   10208:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
        }
    }
    else {
        // Nothing is going on, but still turn off heaters and report the error
        setTargetHotend(0);
        heating_status = HeatingStatus::NO_HEATING;
   1020c:	10 92 e3 03 	sts	0x03E3, r1	; 0x8003e3 <heating_status>
   10210:	d3 cf       	rjmp	.-90     	; 0x101b8 <checkFans()+0x2a6>
//! Prints serialMsg to serial port, displays lcdMsg onto the LCD and beeps.
//! Extracted from fanSpeedError to save some space.
//! @param serialMsg pointer into PROGMEM, this text will be printed to the serial port
//! @param lcdMsg pointer into PROGMEM, this text will be printed onto the LCD
static void fanSpeedErrorBeep(const char *serialMsg, const char *lcdMsg){
    SERIAL_ECHOLNRPGM(serialMsg);
   10212:	81 e9       	ldi	r24, 0x91	; 145
   10214:	98 e7       	ldi	r25, 0x78	; 120
   10216:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    if (get_message_level() == 0) {
   1021a:	80 91 d5 03 	lds	r24, 0x03D5	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
   1021e:	81 11       	cpse	r24, r1
   10220:	0c c0       	rjmp	.+24     	; 0x1023a <checkFans()+0x328>
        Sound_MakeCustom(200,0,true);
   10222:	41 e0       	ldi	r20, 0x01	; 1
   10224:	70 e0       	ldi	r23, 0x00	; 0
   10226:	60 e0       	ldi	r22, 0x00	; 0
   10228:	88 ec       	ldi	r24, 0xC8	; 200
   1022a:	90 e0       	ldi	r25, 0x00	; 0
   1022c:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
        LCD_ALERTMESSAGERPGM(lcdMsg);
   10230:	62 e0       	ldi	r22, 0x02	; 2
   10232:	86 e2       	ldi	r24, 0x26	; 38
   10234:	9a e6       	ldi	r25, 0x6A	; 106
   10236:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
  }
  if ((_millis() - extruder_autofan_last_check > FAN_CHECK_DURATION) && (fan_measuring)) {
	  countFanSpeed();
	  checkFanSpeed();
	  //printf_P(PSTR("fanSpeedSoftPwm 1: %d\n"), fanSpeedSoftPwm);
	  fanSpeedSoftPwm = fanSpeedBckp;
   1023a:	80 91 14 02 	lds	r24, 0x0214	; 0x800214 <fanSpeedBckp>
   1023e:	80 93 a6 04 	sts	0x04A6, r24	; 0x8004a6 <fanSpeedSoftPwm>
	  //printf_P(PSTR("fan PWM: %d; extr fanSpeed measured: %d; print fan speed measured: %d \n"), fanSpeedBckp, fan_speed[0], fan_speed[1]);
	  extruder_autofan_last_check = _millis();
   10242:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   10246:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
   1024a:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
   1024e:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
   10252:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
	  fan_measuring = false;
   10256:	10 92 6f 06 	sts	0x066F, r1	; 0x80066f <fan_measuring>
  }
#endif //FAN_SOFT_PWM

#endif
#endif //DEBUG_DISABLE_FANCHECK
}
   1025a:	0f 90       	pop	r0
   1025c:	0f 90       	pop	r0
   1025e:	df 91       	pop	r29
   10260:	cf 91       	pop	r28
   10262:	1f 91       	pop	r17
   10264:	0f 91       	pop	r16
   10266:	ff 90       	pop	r15
   10268:	ef 90       	pop	r14
   1026a:	df 90       	pop	r13
   1026c:	cf 90       	pop	r12
	  //printf_P(PSTR("fan PWM: %d; extr fanSpeed measured: %d; print fan speed measured: %d \n"), fanSpeedBckp, fan_speed[0], fan_speed[1]);
	  extruder_autofan_last_check = _millis();
	  fan_measuring = false;
  }
#endif //FANCHECK
  checkExtruderAutoFans();
   1026e:	0c 94 2e 75 	jmp	0xea5c	; 0xea5c <checkExtruderAutoFans()>

00010272 <la10c_jerk(float)>:
        return (k >= 0? la10c_convert(k): -1);
}


float la10c_jerk(float j)
{
   10272:	cf 92       	push	r12
   10274:	df 92       	push	r13
   10276:	ef 92       	push	r14
   10278:	ff 92       	push	r15
   1027a:	6b 01       	movw	r12, r22
   1027c:	7c 01       	movw	r14, r24
    la10c_orig_jerk = j;
   1027e:	c0 92 54 03 	sts	0x0354, r12	; 0x800354 <la10c_orig_jerk>
   10282:	d0 92 55 03 	sts	0x0355, r13	; 0x800355 <la10c_orig_jerk+0x1>
   10286:	e0 92 56 03 	sts	0x0356, r14	; 0x800356 <la10c_orig_jerk+0x2>
   1028a:	f0 92 57 03 	sts	0x0357, r15	; 0x800357 <la10c_orig_jerk+0x3>

    if(la10c_mode != LA10C_LA10)
   1028e:	80 91 70 03 	lds	r24, 0x0370	; 0x800370 <la10c_mode>
   10292:	82 30       	cpi	r24, 0x02	; 2
   10294:	b1 f4       	brne	.+44     	; 0x102c2 <la10c_jerk(float)+0x50>
        return j;

    // check for a compatible range of values prior to convert (be sure that
    // a higher E-jerk would still be compatible wrt the E accell range)
    if(j < 4.5 && cs.max_acceleration_mm_per_s2_normal[E_AXIS] < 2000)
   10296:	20 e0       	ldi	r18, 0x00	; 0
   10298:	30 e0       	ldi	r19, 0x00	; 0
   1029a:	40 e9       	ldi	r20, 0x90	; 144
   1029c:	50 e4       	ldi	r21, 0x40	; 64
   1029e:	c7 01       	movw	r24, r14
   102a0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   102a4:	87 ff       	sbrs	r24, 7
   102a6:	14 c0       	rjmp	.+40     	; 0x102d0 <la10c_jerk(float)+0x5e>
   102a8:	80 91 ee 0d 	lds	r24, 0x0DEE	; 0x800dee <cs+0x30>
   102ac:	90 91 ef 0d 	lds	r25, 0x0DEF	; 0x800def <cs+0x31>
   102b0:	a0 91 f0 0d 	lds	r26, 0x0DF0	; 0x800df0 <cs+0x32>
   102b4:	b0 91 f1 0d 	lds	r27, 0x0DF1	; 0x800df1 <cs+0x33>
   102b8:	80 3d       	cpi	r24, 0xD0	; 208
   102ba:	97 40       	sbci	r25, 0x07	; 7
   102bc:	a1 05       	cpc	r26, r1
   102be:	b1 05       	cpc	r27, r1
   102c0:	20 f5       	brcc	.+72     	; 0x1030a <la10c_jerk(float)+0x98>
        j;

    SERIAL_ECHOPGM("LA10C: Adjusted E-Jerk: ");
    SERIAL_ECHOLN(j);
    return j;
}
   102c2:	c7 01       	movw	r24, r14
   102c4:	b6 01       	movw	r22, r12
   102c6:	ff 90       	pop	r15
   102c8:	ef 90       	pop	r14
   102ca:	df 90       	pop	r13
   102cc:	cf 90       	pop	r12
   102ce:	08 95       	ret

    // bring low E-jerk values into equivalent LA 1.5 values by
    // flattening the response in the (0.3-4.5) range using a piecewise
    // function. Is it truly worth to preserve the difference between
    // 1.5/2.5 E-jerk for LA1.0? Probably not, but we try nonetheless.
    j = j < 0.3? j * 11.5:
   102d0:	2a e9       	ldi	r18, 0x9A	; 154
   102d2:	39 e9       	ldi	r19, 0x99	; 153
   102d4:	49 e9       	ldi	r20, 0x99	; 153
   102d6:	5e e3       	ldi	r21, 0x3E	; 62
   102d8:	c7 01       	movw	r24, r14
   102da:	b6 01       	movw	r22, r12
   102dc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   102e0:	87 ff       	sbrs	r24, 7
   102e2:	0a c0       	rjmp	.+20     	; 0x102f8 <la10c_jerk(float)+0x86>
   102e4:	20 e0       	ldi	r18, 0x00	; 0
   102e6:	30 e0       	ldi	r19, 0x00	; 0
   102e8:	48 e3       	ldi	r20, 0x38	; 56
   102ea:	51 e4       	ldi	r21, 0x41	; 65
   102ec:	c7 01       	movw	r24, r14
   102ee:	b6 01       	movw	r22, r12
   102f0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   102f4:	6b 01       	movw	r12, r22
   102f6:	7c 01       	movw	r14, r24
        j < 4.5? j * 0.25 + 3.375:
        j;

    SERIAL_ECHOPGM("LA10C: Adjusted E-Jerk: ");
   102f8:	85 ee       	ldi	r24, 0xE5	; 229
   102fa:	98 e7       	ldi	r25, 0x78	; 120
   102fc:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLN(j);
   10300:	c7 01       	movw	r24, r14
   10302:	b6 01       	movw	r22, r12
   10304:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   10308:	dc cf       	rjmp	.-72     	; 0x102c2 <la10c_jerk(float)+0x50>

    // bring low E-jerk values into equivalent LA 1.5 values by
    // flattening the response in the (0.3-4.5) range using a piecewise
    // function. Is it truly worth to preserve the difference between
    // 1.5/2.5 E-jerk for LA1.0? Probably not, but we try nonetheless.
    j = j < 0.3? j * 11.5:
   1030a:	2a e9       	ldi	r18, 0x9A	; 154
   1030c:	39 e9       	ldi	r19, 0x99	; 153
   1030e:	49 e9       	ldi	r20, 0x99	; 153
   10310:	5e e3       	ldi	r21, 0x3E	; 62
   10312:	c7 01       	movw	r24, r14
   10314:	b6 01       	movw	r22, r12
   10316:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1031a:	87 fd       	sbrc	r24, 7
   1031c:	e3 cf       	rjmp	.-58     	; 0x102e4 <la10c_jerk(float)+0x72>
        j < 4.5? j * 0.25 + 3.375:
   1031e:	20 e0       	ldi	r18, 0x00	; 0
   10320:	30 e0       	ldi	r19, 0x00	; 0
   10322:	40 e8       	ldi	r20, 0x80	; 128
   10324:	5e e3       	ldi	r21, 0x3E	; 62
   10326:	c7 01       	movw	r24, r14
   10328:	b6 01       	movw	r22, r12
   1032a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>

    // bring low E-jerk values into equivalent LA 1.5 values by
    // flattening the response in the (0.3-4.5) range using a piecewise
    // function. Is it truly worth to preserve the difference between
    // 1.5/2.5 E-jerk for LA1.0? Probably not, but we try nonetheless.
    j = j < 0.3? j * 11.5:
   1032e:	20 e0       	ldi	r18, 0x00	; 0
   10330:	30 e0       	ldi	r19, 0x00	; 0
   10332:	48 e5       	ldi	r20, 0x58	; 88
   10334:	50 e4       	ldi	r21, 0x40	; 64
   10336:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1033a:	dc cf       	rjmp	.-72     	; 0x102f4 <la10c_jerk(float)+0x82>

0001033c <la10c_mode_change(LA10C_MODE)>:
    return la10c_mode;
}


void la10c_mode_change(LA10C_MODE mode)
{
   1033c:	cf 92       	push	r12
   1033e:	df 92       	push	r13
   10340:	ef 92       	push	r14
   10342:	ff 92       	push	r15
   10344:	cf 93       	push	r28
    if(mode == la10c_mode) return;
   10346:	90 91 70 03 	lds	r25, 0x0370	; 0x800370 <la10c_mode>
   1034a:	98 17       	cp	r25, r24
   1034c:	b9 f1       	breq	.+110    	; 0x103bc <la10c_mode_change(LA10C_MODE)+0x80>
   1034e:	c8 2f       	mov	r28, r24

    // always restore to the last unadjusted E-jerk value
    if(la10c_orig_jerk)
   10350:	c0 90 54 03 	lds	r12, 0x0354	; 0x800354 <la10c_orig_jerk>
   10354:	d0 90 55 03 	lds	r13, 0x0355	; 0x800355 <la10c_orig_jerk+0x1>
   10358:	e0 90 56 03 	lds	r14, 0x0356	; 0x800356 <la10c_orig_jerk+0x2>
   1035c:	f0 90 57 03 	lds	r15, 0x0357	; 0x800357 <la10c_orig_jerk+0x3>
   10360:	20 e0       	ldi	r18, 0x00	; 0
   10362:	30 e0       	ldi	r19, 0x00	; 0
   10364:	a9 01       	movw	r20, r18
   10366:	c7 01       	movw	r24, r14
   10368:	b6 01       	movw	r22, r12
   1036a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1036e:	88 23       	and	r24, r24
   10370:	41 f0       	breq	.+16     	; 0x10382 <la10c_mode_change(LA10C_MODE)+0x46>
        cs.max_jerk[E_AXIS] = la10c_orig_jerk;
   10372:	c0 92 12 0e 	sts	0x0E12, r12	; 0x800e12 <cs+0x54>
   10376:	d0 92 13 0e 	sts	0x0E13, r13	; 0x800e13 <cs+0x55>
   1037a:	e0 92 14 0e 	sts	0x0E14, r14	; 0x800e14 <cs+0x56>
   1037e:	f0 92 15 0e 	sts	0x0E15, r15	; 0x800e15 <cs+0x57>

    SERIAL_ECHOPGM("LA10C: Linear Advance mode: ");
   10382:	88 ec       	ldi	r24, 0xC8	; 200
   10384:	98 e7       	ldi	r25, 0x78	; 120
   10386:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    switch(mode)
   1038a:	c1 30       	cpi	r28, 0x01	; 1
   1038c:	11 f1       	breq	.+68     	; 0x103d2 <la10c_mode_change(LA10C_MODE)+0x96>
   1038e:	e0 f0       	brcs	.+56     	; 0x103c8 <la10c_mode_change(LA10C_MODE)+0x8c>
   10390:	c2 30       	cpi	r28, 0x02	; 2
   10392:	11 f1       	breq	.+68     	; 0x103d8 <la10c_mode_change(LA10C_MODE)+0x9c>
    {
    case LA10C_UNKNOWN: SERIAL_ECHOLNPGM("UNKNOWN"); break;
    case LA10C_LA15:    SERIAL_ECHOLNPGM("1.5"); break;
    case LA10C_LA10:    SERIAL_ECHOLNPGM("1.0"); break;
    }
    la10c_mode = mode;
   10394:	c0 93 70 03 	sts	0x0370, r28	; 0x800370 <la10c_mode>

    // adjust the E-jerk if needed
    cs.max_jerk[E_AXIS] = la10c_jerk(cs.max_jerk[E_AXIS]);
   10398:	60 91 12 0e 	lds	r22, 0x0E12	; 0x800e12 <cs+0x54>
   1039c:	70 91 13 0e 	lds	r23, 0x0E13	; 0x800e13 <cs+0x55>
   103a0:	80 91 14 0e 	lds	r24, 0x0E14	; 0x800e14 <cs+0x56>
   103a4:	90 91 15 0e 	lds	r25, 0x0E15	; 0x800e15 <cs+0x57>
   103a8:	0e 94 39 81 	call	0x10272	; 0x10272 <la10c_jerk(float)>
   103ac:	60 93 12 0e 	sts	0x0E12, r22	; 0x800e12 <cs+0x54>
   103b0:	70 93 13 0e 	sts	0x0E13, r23	; 0x800e13 <cs+0x55>
   103b4:	80 93 14 0e 	sts	0x0E14, r24	; 0x800e14 <cs+0x56>
   103b8:	90 93 15 0e 	sts	0x0E15, r25	; 0x800e15 <cs+0x57>
}
   103bc:	cf 91       	pop	r28
   103be:	ff 90       	pop	r15
   103c0:	ef 90       	pop	r14
   103c2:	df 90       	pop	r13
   103c4:	cf 90       	pop	r12
   103c6:	08 95       	ret
        cs.max_jerk[E_AXIS] = la10c_orig_jerk;

    SERIAL_ECHOPGM("LA10C: Linear Advance mode: ");
    switch(mode)
    {
    case LA10C_UNKNOWN: SERIAL_ECHOLNPGM("UNKNOWN"); break;
   103c8:	80 ec       	ldi	r24, 0xC0	; 192
   103ca:	98 e7       	ldi	r25, 0x78	; 120
    case LA10C_LA15:    SERIAL_ECHOLNPGM("1.5"); break;
    case LA10C_LA10:    SERIAL_ECHOLNPGM("1.0"); break;
   103cc:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   103d0:	e1 cf       	rjmp	.-62     	; 0x10394 <la10c_mode_change(LA10C_MODE)+0x58>

    SERIAL_ECHOPGM("LA10C: Linear Advance mode: ");
    switch(mode)
    {
    case LA10C_UNKNOWN: SERIAL_ECHOLNPGM("UNKNOWN"); break;
    case LA10C_LA15:    SERIAL_ECHOLNPGM("1.5"); break;
   103d2:	8c eb       	ldi	r24, 0xBC	; 188
   103d4:	98 e7       	ldi	r25, 0x78	; 120
   103d6:	fa cf       	rjmp	.-12     	; 0x103cc <la10c_mode_change(LA10C_MODE)+0x90>
    case LA10C_LA10:    SERIAL_ECHOLNPGM("1.0"); break;
   103d8:	88 eb       	ldi	r24, 0xB8	; 184
   103da:	98 e7       	ldi	r25, 0x78	; 120
   103dc:	f7 cf       	rjmp	.-18     	; 0x103cc <la10c_mode_change(LA10C_MODE)+0x90>

000103de <finishAndDisableSteppers()>:

bool IsStopped() { return Stopped; };

void finishAndDisableSteppers()
{
  st_synchronize();
   103de:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
  disable_x();
   103e2:	17 9a       	sbi	0x02, 7	; 2
   103e4:	ef e8       	ldi	r30, 0x8F	; 143
   103e6:	f6 e0       	ldi	r31, 0x06	; 6
   103e8:	10 82       	st	Z, r1
  disable_y();
   103ea:	16 9a       	sbi	0x02, 6	; 2
   103ec:	11 82       	std	Z+1, r1	; 0x01
  disable_z();
  disable_e0();
   103ee:	14 9a       	sbi	0x02, 4	; 2
};

// Explicitly set/get/reset the interpretation mode for la10c_value()
void la10c_mode_change(LA10C_MODE mode);
LA10C_MODE la10c_mode_get();
static inline void la10c_reset() { la10c_mode_change(LA10C_UNKNOWN); }
   103f0:	80 e0       	ldi	r24, 0x00	; 0
   103f2:	0e 94 9e 81 	call	0x1033c	; 0x1033c <la10c_mode_change(LA10C_MODE)>
    return percent_done;
}

static void print_time_remaining_init()
{
    print_time_remaining_normal = PRINT_TIME_REMAINING_INIT;
   103f6:	8f ef       	ldi	r24, 0xFF	; 255
   103f8:	9f ef       	ldi	r25, 0xFF	; 255
   103fa:	90 93 b2 02 	sts	0x02B2, r25	; 0x8002b2 <print_time_remaining_normal+0x1>
   103fe:	80 93 b1 02 	sts	0x02B1, r24	; 0x8002b1 <print_time_remaining_normal>
    print_percent_done_normal = PRINT_PERCENT_DONE_INIT;
   10402:	2f ef       	ldi	r18, 0xFF	; 255
   10404:	20 93 ae 02 	sts	0x02AE, r18	; 0x8002ae <print_percent_done_normal>
    print_time_remaining_silent = PRINT_TIME_REMAINING_INIT;
   10408:	90 93 b6 02 	sts	0x02B6, r25	; 0x8002b6 <print_time_remaining_silent+0x1>
   1040c:	80 93 b5 02 	sts	0x02B5, r24	; 0x8002b5 <print_time_remaining_silent>
    print_percent_done_silent = PRINT_PERCENT_DONE_INIT;
   10410:	20 93 ad 02 	sts	0x02AD, r18	; 0x8002ad <print_percent_done_silent>
    print_time_to_change_normal = PRINT_TIME_REMAINING_INIT;
   10414:	90 93 b0 02 	sts	0x02B0, r25	; 0x8002b0 <print_time_to_change_normal+0x1>
   10418:	80 93 af 02 	sts	0x02AF, r24	; 0x8002af <print_time_to_change_normal>
    print_time_to_change_silent = PRINT_TIME_REMAINING_INIT;
   1041c:	90 93 b4 02 	sts	0x02B4, r25	; 0x8002b4 <print_time_to_change_silent+0x1>
   10420:	80 93 b3 02 	sts	0x02B3, r24	; 0x8002b3 <print_time_to_change_silent>
  la10c_reset();
#endif

  //in the end of print set estimated time to end of print and extruders used during print to default values for next print
  print_time_remaining_init();
}
   10424:	08 95       	ret

00010426 <Config_ResetDefault()>:
}
#endif

void Config_ResetDefault()
{
    memcpy_P(&cs,&default_conf, sizeof(cs));
   10426:	41 ed       	ldi	r20, 0xD1	; 209
   10428:	50 e0       	ldi	r21, 0x00	; 0
   1042a:	63 e7       	ldi	r22, 0x73	; 115
   1042c:	77 e7       	ldi	r23, 0x77	; 119
   1042e:	8e eb       	ldi	r24, 0xBE	; 190
   10430:	9d e0       	ldi	r25, 0x0D	; 13
   10432:	0f 94 f5 d9 	call	0x3b3ea	; 0x3b3ea <memcpy_P>

  // steps per sq second need to be updated to agree with the units per sq second
    reset_acceleration_rates();
   10436:	0f 94 a1 64 	call	0x2c942	; 0x2c942 <reset_acceleration_rates()>

#ifdef PIDTEMP
    updatePID();
   1043a:	0f 94 df 3b 	call	0x277be	; 0x277be <updatePID()>
#endif//PIDTEMP
#ifdef THERMAL_MODEL
    thermal_model_reset_settings();
   1043e:	0f 94 b4 32 	call	0x26568	; 0x26568 <thermal_model_reset_settings()>
#endif

  calculate_extruder_multipliers();
   10442:	0e 94 40 65 	call	0xca80	; 0xca80 <calculate_extruder_multipliers()>

SERIAL_ECHO_START;
   10446:	80 ed       	ldi	r24, 0xD0	; 208
   10448:	9a ea       	ldi	r25, 0xAA	; 170
   1044a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
SERIAL_ECHOLNPGM("Hardcoded Default Settings Loaded");
   1044e:	81 e5       	ldi	r24, 0x51	; 81
   10450:	97 e7       	ldi	r25, 0x77	; 119
   10452:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

00010456 <Config_StoreSettings()>:
    DEFAULT_ARC_SEGMENTS_PER_SEC
};


void Config_StoreSettings()
{
   10456:	cf 93       	push	r28
   10458:	df 93       	push	r29
  strcpy_P(cs.version, default_conf.version);
   1045a:	63 e7       	ldi	r22, 0x73	; 115
   1045c:	77 e7       	ldi	r23, 0x77	; 119
   1045e:	8e eb       	ldi	r24, 0xBE	; 190
   10460:	9d e0       	ldi	r25, 0x0D	; 13
   10462:	0f 94 12 da 	call	0x3b424	; 0x3b424 <strcpy_P>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   10466:	41 ed       	ldi	r20, 0xD1	; 209
   10468:	50 e0       	ldi	r21, 0x00	; 0
   1046a:	64 e1       	ldi	r22, 0x14	; 20
   1046c:	70 e0       	ldi	r23, 0x00	; 0
   1046e:	8e eb       	ldi	r24, 0xBE	; 190
   10470:	9d e0       	ldi	r25, 0x0D	; 13
   10472:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   10476:	60 91 1d 05 	lds	r22, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   1047a:	82 e0       	ldi	r24, 0x02	; 2
   1047c:	9d e0       	ldi	r25, 0x0D	; 13
   1047e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
}

void thermal_model_save_settings()
{
    eeprom_update_byte_notify((uint8_t*)EEPROM_THERMAL_MODEL_ENABLE, thermal_model::enabled);
    eeprom_update_float_notify((float*)EEPROM_THERMAL_MODEL_P, thermal_model::data.P);
   10482:	c0 eb       	ldi	r28, 0xB0	; 176
   10484:	d2 e1       	ldi	r29, 0x12	; 18
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   10486:	4a a5       	ldd	r20, Y+42	; 0x2a
   10488:	5b a5       	ldd	r21, Y+43	; 0x2b
   1048a:	6c a5       	ldd	r22, Y+44	; 0x2c
   1048c:	7d a5       	ldd	r23, Y+45	; 0x2d
   1048e:	8e ef       	ldi	r24, 0xFE	; 254
   10490:	9c e0       	ldi	r25, 0x0C	; 12
   10492:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   10496:	4e a5       	ldd	r20, Y+46	; 0x2e
   10498:	5f a5       	ldd	r21, Y+47	; 0x2f
   1049a:	68 a9       	ldd	r22, Y+48	; 0x30
   1049c:	79 a9       	ldd	r23, Y+49	; 0x31
   1049e:	82 ea       	ldi	r24, 0xA2	; 162
   104a0:	9c e0       	ldi	r25, 0x0C	; 12
   104a2:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   104a6:	4a a9       	ldd	r20, Y+50	; 0x32
   104a8:	5b a9       	ldd	r21, Y+51	; 0x33
   104aa:	6c a9       	ldd	r22, Y+52	; 0x34
   104ac:	7d a9       	ldd	r23, Y+53	; 0x35
   104ae:	8e e9       	ldi	r24, 0x9E	; 158
   104b0:	9c e0       	ldi	r25, 0x0C	; 12
   104b2:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   104b6:	4e a9       	ldd	r20, Y+54	; 0x36
   104b8:	5f a9       	ldd	r21, Y+55	; 0x37
   104ba:	68 ad       	ldd	r22, Y+56	; 0x38
   104bc:	79 ad       	ldd	r23, Y+57	; 0x39
   104be:	8a ef       	ldi	r24, 0xFA	; 250
   104c0:	9c e0       	ldi	r25, 0x0C	; 12
   104c2:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   104c6:	4a ad       	ldd	r20, Y+58	; 0x3a
   104c8:	5b ad       	ldd	r21, Y+59	; 0x3b
   104ca:	6c ad       	ldd	r22, Y+60	; 0x3c
   104cc:	7d ad       	ldd	r23, Y+61	; 0x3d
   104ce:	8a e9       	ldi	r24, 0x9A	; 154
   104d0:	9c e0       	ldi	r25, 0x0C	; 12
   104d2:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   104d6:	6e ad       	ldd	r22, Y+62	; 0x3e
   104d8:	7f ad       	ldd	r23, Y+63	; 0x3f
   104da:	88 e9       	ldi	r24, 0x98	; 152
   104dc:	9c e0       	ldi	r25, 0x0C	; 12
   104de:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   104e2:	40 e4       	ldi	r20, 0x40	; 64
   104e4:	50 e0       	ldi	r21, 0x00	; 0
   104e6:	6a eb       	ldi	r22, 0xBA	; 186
   104e8:	7c e0       	ldi	r23, 0x0C	; 12
   104ea:	80 ef       	ldi	r24, 0xF0	; 240
   104ec:	92 e1       	ldi	r25, 0x12	; 18
   104ee:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   104f2:	40 91 30 13 	lds	r20, 0x1330	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   104f6:	50 91 31 13 	lds	r21, 0x1331	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   104fa:	60 91 32 13 	lds	r22, 0x1332	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   104fe:	70 91 33 13 	lds	r23, 0x1333	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
   10502:	86 eb       	ldi	r24, 0xB6	; 182
   10504:	9c e0       	ldi	r25, 0x0C	; 12
   10506:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   1050a:	40 91 34 13 	lds	r20, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   1050e:	50 91 35 13 	lds	r21, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   10512:	60 91 36 13 	lds	r22, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   10516:	70 91 37 13 	lds	r23, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
   1051a:	82 eb       	ldi	r24, 0xB2	; 178
   1051c:	9c e0       	ldi	r25, 0x0C	; 12
   1051e:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   10522:	40 91 38 13 	lds	r20, 0x1338	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   10526:	50 91 39 13 	lds	r21, 0x1339	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   1052a:	60 91 3a 13 	lds	r22, 0x133A	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   1052e:	70 91 3b 13 	lds	r23, 0x133B	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
   10532:	8e ea       	ldi	r24, 0xAE	; 174
   10534:	9c e0       	ldi	r25, 0x0C	; 12
   10536:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
  eeprom_update_block_notify(reinterpret_cast<uint8_t*>(&cs), reinterpret_cast<uint8_t*>(EEPROM_M500_base), sizeof(cs));
#ifdef THERMAL_MODEL
  thermal_model_save_settings();
#endif

  SERIAL_ECHO_START;
   1053a:	80 ed       	ldi	r24, 0xD0	; 208
   1053c:	9a ea       	ldi	r25, 0xAA	; 170
   1053e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  SERIAL_ECHOLNPGM("Settings Stored");
   10542:	8d ef       	ldi	r24, 0xFD	; 253
   10544:	96 e7       	ldi	r25, 0x76	; 118
}
   10546:	df 91       	pop	r29
   10548:	cf 91       	pop	r28
#ifdef THERMAL_MODEL
  thermal_model_save_settings();
#endif

  SERIAL_ECHO_START;
  SERIAL_ECHOLNPGM("Settings Stored");
   1054a:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

0001054e <get_command()>:
{
    cmdbuffer_front_already_processed = true;
}

void get_command()
{
   1054e:	2f 92       	push	r2
   10550:	3f 92       	push	r3
   10552:	4f 92       	push	r4
   10554:	5f 92       	push	r5
   10556:	6f 92       	push	r6
   10558:	7f 92       	push	r7
   1055a:	8f 92       	push	r8
   1055c:	9f 92       	push	r9
   1055e:	af 92       	push	r10
   10560:	bf 92       	push	r11
   10562:	cf 92       	push	r12
   10564:	df 92       	push	r13
   10566:	ef 92       	push	r14
   10568:	ff 92       	push	r15
   1056a:	0f 93       	push	r16
   1056c:	1f 93       	push	r17
   1056e:	cf 93       	push	r28
   10570:	df 93       	push	r29
   10572:	cd b7       	in	r28, 0x3d	; 61
   10574:	de b7       	in	r29, 0x3e	; 62
   10576:	a2 97       	sbiw	r28, 0x22	; 34
   10578:	0f b6       	in	r0, 0x3f	; 63
   1057a:	f8 94       	cli
   1057c:	de bf       	out	0x3e, r29	; 62
   1057e:	0f be       	out	0x3f, r0	; 63
   10580:	cd bf       	out	0x3d, r28	; 61
    // Test and reserve space for the new command string.
    if (! cmdqueue_could_enqueue_back(MAX_CMD_SIZE - 1))
   10582:	8f e5       	ldi	r24, 0x5F	; 95
   10584:	90 e0       	ldi	r25, 0x00	; 0
   10586:	0e 94 c9 5b 	call	0xb792	; 0xb792 <cmdqueue_could_enqueue_back(unsigned int)>
   1058a:	88 23       	and	r24, r24
   1058c:	09 f4       	brne	.+2      	; 0x10590 <get_command()+0x42>
   1058e:	91 c0       	rjmp	.+290    	; 0x106b2 <get_command()+0x164>
      return;

	if (MYSERIAL.available() == RX_BUFFER_SIZE - 1) { //compare number of chars buffered in rx buffer with rx buffer size
   10590:	0e 94 90 76 	call	0xed20	; 0xed20 <MarlinSerial::available()>
   10594:	8f 37       	cpi	r24, 0x7F	; 127
   10596:	91 05       	cpc	r25, r1
   10598:	61 f4       	brne	.+24     	; 0x105b2 <get_command()+0x64>
  // don't reverse this or there may be problems if the RX interrupt
  // occurs after reading the value of rx_buffer_head but before writing
  // the value to rx_buffer_tail; the previous value of rx_buffer_head
  // may be written to rx_buffer_tail, making it appear as if the buffer
  // were full, not empty.
  rx_buffer.head = rx_buffer.tail;
   1059a:	80 91 9b 04 	lds	r24, 0x049B	; 0x80049b <rx_buffer+0x82>
   1059e:	90 91 9c 04 	lds	r25, 0x049C	; 0x80049c <rx_buffer+0x83>
   105a2:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
   105a6:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>
		MYSERIAL.flush();
		SERIAL_ECHOLNPGM("Full RX Buffer");   //if buffer was full, there is danger that reading of last gcode will not be completed
   105aa:	8e ee       	ldi	r24, 0xEE	; 238
   105ac:	96 e7       	ldi	r25, 0x76	; 118
   105ae:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   105b2:	1e 01       	movw	r2, r28
   105b4:	2f e1       	ldi	r18, 0x1F	; 31
   105b6:	22 0e       	add	r2, r18
   105b8:	31 1c       	adc	r3, r1
        }

        // Command is complete: store the current line into buffer, move to the next line.

		// Store type of entry
        cmdbuffer[bufindw] = gcode_N >= 0 ? CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR : CMDBUFFER_CURRENT_TYPE_USB;
   105ba:	dd 24       	eor	r13, r13
   105bc:	d3 94       	inc	r13
		MYSERIAL.flush();
		SERIAL_ECHOLNPGM("Full RX Buffer");   //if buffer was full, there is danger that reading of last gcode will not be completed
	}

  // start of serial line processing loop
  while (((MYSERIAL.available() > 0 && !saved_printing) || (MYSERIAL.available() > 0 && printingIsPaused())) && !cmdqueue_serial_disabled) {  //is print is saved (crash detection or filament detection), dont process data from serial line
   105be:	0e 94 90 76 	call	0xed20	; 0xed20 <MarlinSerial::available()>
   105c2:	18 16       	cp	r1, r24
   105c4:	19 06       	cpc	r1, r25
   105c6:	0c f0       	brlt	.+2      	; 0x105ca <get_command()+0x7c>
   105c8:	68 c0       	rjmp	.+208    	; 0x1069a <get_command()+0x14c>
   105ca:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   105ce:	88 23       	and	r24, r24
   105d0:	29 f0       	breq	.+10     	; 0x105dc <get_command()+0x8e>
   105d2:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   105d6:	88 23       	and	r24, r24
   105d8:	09 f4       	brne	.+2      	; 0x105dc <get_command()+0x8e>
   105da:	5f c0       	rjmp	.+190    	; 0x1069a <get_command()+0x14c>
   105dc:	80 91 a6 03 	lds	r24, 0x03A6	; 0x8003a6 <cmdqueue_serial_disabled>
   105e0:	81 11       	cpse	r24, r1
   105e2:	5b c0       	rjmp	.+182    	; 0x1069a <get_command()+0x14c>

#ifdef ENABLE_MEATPACK
    // MeatPack Changes
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      const int rec = MYSERIAL.read();
   105e4:	0f 94 43 d6 	call	0x3ac86	; 0x3ac86 <MarlinSerial::read()>
      if (rec < 0) continue;
   105e8:	97 fd       	sbrc	r25, 7
   105ea:	e9 cf       	rjmp	.-46     	; 0x105be <get_command()+0x70>

      mp_handle_rx_char((uint8_t)rec);
   105ec:	28 2f       	mov	r18, r24
//==========================================================================
void mp_handle_rx_char(const uint8_t c) {

    // Check for commit complete
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (c == (uint8_t)(MeatPack_CommandByte)) {
   105ee:	8f 3f       	cpi	r24, 0xFF	; 255
   105f0:	09 f0       	breq	.+2      	; 0x105f4 <get_command()+0xa6>
   105f2:	7b c0       	rjmp	.+246    	; 0x106ea <get_command()+0x19c>
        if (mp_cmd_count > 0) {
   105f4:	80 91 40 03 	lds	r24, 0x0340	; 0x800340 <mp_cmd_count>
   105f8:	88 23       	and	r24, r24
   105fa:	09 f4       	brne	.+2      	; 0x105fe <get_command()+0xb0>
   105fc:	73 c0       	rjmp	.+230    	; 0x106e4 <get_command()+0x196>
            mp_cmd_active = 1;
   105fe:	d0 92 3f 03 	sts	0x033F, r13	; 0x80033f <mp_cmd_active>
            mp_cmd_count = 0;
   10602:	10 92 40 03 	sts	0x0340, r1	; 0x800340 <mp_cmd_count>
      char c_res[2] = {0, 0};
   10606:	1f 8e       	std	Y+31, r1	; 0x1f
   10608:	18 a2       	std	Y+32, r1	; 0x20
    mp_handle_rx_char_inner(c);
}

//==========================================================================
uint8_t mp_get_result_char(char* const __restrict out) {
    if (mp_char_out_count > 0) {
   1060a:	c0 90 43 03 	lds	r12, 0x0343	; 0x800343 <mp_char_out_count>
   1060e:	cc 20       	and	r12, r12
   10610:	b1 f2       	breq	.-84     	; 0x105be <get_command()+0x70>
        const uint8_t res = mp_char_out_count;
        for (uint8_t i = 0; i < mp_char_out_count; ++i)
            out[i] = (char)mp_char_out_buf[i];
   10612:	80 91 41 03 	lds	r24, 0x0341	; 0x800341 <mp_char_out_buf>
   10616:	8f 8f       	std	Y+31, r24	; 0x1f

//==========================================================================
uint8_t mp_get_result_char(char* const __restrict out) {
    if (mp_char_out_count > 0) {
        const uint8_t res = mp_char_out_count;
        for (uint8_t i = 0; i < mp_char_out_count; ++i)
   10618:	91 e0       	ldi	r25, 0x01	; 1
   1061a:	9c 15       	cp	r25, r12
   1061c:	18 f4       	brcc	.+6      	; 0x10624 <get_command()+0xd6>
            out[i] = (char)mp_char_out_buf[i];
   1061e:	80 91 42 03 	lds	r24, 0x0342	; 0x800342 <mp_char_out_buf+0x1>
   10622:	88 a3       	std	Y+32, r24	; 0x20
        mp_char_out_count = 0;
   10624:	10 92 43 03 	sts	0x0343, r1	; 0x800343 <mp_char_out_count>
   10628:	3a a2       	std	Y+34, r3	; 0x22
   1062a:	29 a2       	std	Y+33, r2	; 0x21
      const uint8_t char_count = mp_get_result_char(c_res);
      // Note -- Paired bracket in preproc switch below
      for (uint8_t i = 0; i < char_count; ++i) { char serial_char = c_res[i];
   1062c:	89 a1       	ldd	r24, Y+33	; 0x21
   1062e:	82 19       	sub	r24, r2
   10630:	8c 15       	cp	r24, r12
   10632:	28 f6       	brcc	.-118    	; 0x105be <get_command()+0x70>
   10634:	e9 a1       	ldd	r30, Y+33	; 0x21
   10636:	fa a1       	ldd	r31, Y+34	; 0x22
   10638:	11 91       	ld	r17, Z+
   1063a:	fa a3       	std	Y+34, r31	; 0x22
   1063c:	e9 a3       	std	Y+33, r30	; 0x21
#else
    char serial_char = MYSERIAL.read();
#endif

    serialTimeoutTimer.start();
   1063e:	86 e4       	ldi	r24, 0x46	; 70
   10640:	93 e0       	ldi	r25, 0x03	; 3
   10642:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>

    if (serial_char < 0)
   10646:	17 fd       	sbrc	r17, 7
   10648:	f1 cf       	rjmp	.-30     	; 0x1062c <get_command()+0xde>
   1064a:	80 91 9e 10 	lds	r24, 0x109E	; 0x80109e <serial_count>
   1064e:	90 91 9f 10 	lds	r25, 0x109F	; 0x80109f <serial_count+0x1>
        // Ignore extended ASCII characters. These characters have no meaning in the G-code apart from the file names
        // and Marlin does not support such file names anyway.
        // Serial characters with a highest bit set to 1 are generated when the USB cable is unplugged, leading
        // to a hang-up of the print process from an SD card.
        continue;
    if(serial_char == '\n' ||
   10652:	1a 30       	cpi	r17, 0x0A	; 10
   10654:	09 f4       	brne	.+2      	; 0x10658 <get_command()+0x10a>
   10656:	4a c1       	rjmp	.+660    	; 0x108ec <get_command()+0x39e>
   10658:	1d 30       	cpi	r17, 0x0D	; 13
   1065a:	09 f4       	brne	.+2      	; 0x1065e <get_command()+0x110>
   1065c:	47 c1       	rjmp	.+654    	; 0x108ec <get_command()+0x39e>
       serial_char == '\r' ||
   1065e:	8f 35       	cpi	r24, 0x5F	; 95
   10660:	91 05       	cpc	r25, r1
   10662:	0c f0       	brlt	.+2      	; 0x10666 <get_command()+0x118>
   10664:	48 c1       	rjmp	.+656    	; 0x108f6 <get_command()+0x3a8>
      if (MYSERIAL.available() == 0 || ! cmdqueue_could_enqueue_back(MAX_CMD_SIZE-1))
          return;
    } // end of "end of line" processing
    else {
      // Not an "end of line" symbol. Store the new character into a buffer.
      if(serial_char == ';') comment_mode = true;
   10666:	1b 33       	cpi	r17, 0x3B	; 59
   10668:	11 f4       	brne	.+4      	; 0x1066e <get_command()+0x120>
   1066a:	d0 92 45 03 	sts	0x0345, r13	; 0x800345 <comment_mode>
      if(!comment_mode) cmdbuffer[bufindw+CMDHDRSIZE+serial_count++] = serial_char;
   1066e:	20 91 45 03 	lds	r18, 0x0345	; 0x800345 <comment_mode>
   10672:	21 11       	cpse	r18, r1
   10674:	db cf       	rjmp	.-74     	; 0x1062c <get_command()+0xde>
   10676:	9c 01       	movw	r18, r24
   10678:	2f 5f       	subi	r18, 0xFF	; 255
   1067a:	3f 4f       	sbci	r19, 0xFF	; 255
   1067c:	30 93 9f 10 	sts	0x109F, r19	; 0x80109f <serial_count+0x1>
   10680:	20 93 9e 10 	sts	0x109E, r18	; 0x80109e <serial_count>
   10684:	20 91 a0 10 	lds	r18, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10688:	30 91 a1 10 	lds	r19, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   1068c:	2b 55       	subi	r18, 0x5B	; 91
   1068e:	3f 4e       	sbci	r19, 0xEF	; 239
   10690:	82 0f       	add	r24, r18
   10692:	93 1f       	adc	r25, r19
   10694:	fc 01       	movw	r30, r24
   10696:	13 83       	std	Z+3, r17	; 0x03
   10698:	c9 cf       	rjmp	.-110    	; 0x1062c <get_command()+0xde>
    #ifdef ENABLE_MEATPACK
     }
    #endif
  } // end of serial line processing loop

    if (serial_count > 0 && serialTimeoutTimer.expired(farm_mode ? 800 : 2000)) {
   1069a:	80 91 9e 10 	lds	r24, 0x109E	; 0x80109e <serial_count>
   1069e:	90 91 9f 10 	lds	r25, 0x109F	; 0x80109f <serial_count+0x1>
   106a2:	18 16       	cp	r1, r24
   106a4:	19 06       	cpc	r1, r25
   106a6:	0c f4       	brge	.+2      	; 0x106aa <get_command()+0x15c>
   106a8:	56 c2       	rjmp	.+1196   	; 0x10b56 <get_command()+0x608>
        SERIAL_ECHOLNPGM("RX timeout");
        return;
    }

  #ifdef SDSUPPORT
  if(!card.sdprinting || !card.isFileOpen() || serial_count!=0){
   106aa:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   106ae:	81 11       	cpse	r24, r1
   106b0:	66 c2       	rjmp	.+1228   	; 0x10b7e <get_command()+0x630>
            prusa_statistics(6);
      }
  }

  #endif //SDSUPPORT
}
   106b2:	a2 96       	adiw	r28, 0x22	; 34
   106b4:	0f b6       	in	r0, 0x3f	; 63
   106b6:	f8 94       	cli
   106b8:	de bf       	out	0x3e, r29	; 62
   106ba:	0f be       	out	0x3f, r0	; 63
   106bc:	cd bf       	out	0x3d, r28	; 61
   106be:	df 91       	pop	r29
   106c0:	cf 91       	pop	r28
   106c2:	1f 91       	pop	r17
   106c4:	0f 91       	pop	r16
   106c6:	ff 90       	pop	r15
   106c8:	ef 90       	pop	r14
   106ca:	df 90       	pop	r13
   106cc:	cf 90       	pop	r12
   106ce:	bf 90       	pop	r11
   106d0:	af 90       	pop	r10
   106d2:	9f 90       	pop	r9
   106d4:	8f 90       	pop	r8
   106d6:	7f 90       	pop	r7
   106d8:	6f 90       	pop	r6
   106da:	5f 90       	pop	r5
   106dc:	4f 90       	pop	r4
   106de:	3f 90       	pop	r3
   106e0:	2f 90       	pop	r2
   106e2:	08 95       	ret
        if (mp_cmd_count > 0) {
            mp_cmd_active = 1;
            mp_cmd_count = 0;
        }
        else
            ++mp_cmd_count;
   106e4:	d0 92 40 03 	sts	0x0340, r13	; 0x800340 <mp_cmd_count>
   106e8:	8e cf       	rjmp	.-228    	; 0x10606 <get_command()+0xb8>
        return;
    }

    if (mp_cmd_active > 0) {
   106ea:	30 91 3f 03 	lds	r19, 0x033F	; 0x80033f <mp_cmd_active>
   106ee:	33 23       	and	r19, r19
   106f0:	09 f4       	brne	.+2      	; 0x106f4 <get_command()+0x1a6>
   106f2:	57 c0       	rjmp	.+174    	; 0x107a2 <get_command()+0x254>

}

//==========================================================================
void FORCE_INLINE mp_handle_cmd(const MeatPack_Command c) {
    switch (c) {
   106f4:	89 3f       	cpi	r24, 0xF9	; 249
   106f6:	09 f4       	brne	.+2      	; 0x106fa <get_command()+0x1ac>
   106f8:	3f c0       	rjmp	.+126    	; 0x10778 <get_command()+0x22a>
   106fa:	80 f5       	brcc	.+96     	; 0x1075c <get_command()+0x20e>
   106fc:	86 3f       	cpi	r24, 0xF6	; 246
   106fe:	09 f4       	brne	.+2      	; 0x10702 <get_command()+0x1b4>
   10700:	48 c0       	rjmp	.+144    	; 0x10792 <get_command()+0x244>
#ifdef MP_DEBUG
        SERIAL_ECHOLNPGM("[MPDBG] RESET REC");
#endif
    } break;
    case MPCommand_EnableNoSpaces: {
        mp_config |= MPConfig_NoSpaces;
   10702:	80 91 3e 03 	lds	r24, 0x033E	; 0x80033e <mp_config>
   10706:	82 60       	ori	r24, 0x02	; 2

}

//==========================================================================
void FORCE_INLINE mp_handle_cmd(const MeatPack_Command c) {
    switch (c) {
   10708:	27 3f       	cpi	r18, 0xF7	; 247
   1070a:	79 f1       	breq	.+94     	; 0x1076a <get_command()+0x21c>
        mp_handle_output_char(c);
}

//==========================================================================
void FORCE_INLINE mp_echo_config_state() {
    SERIAL_ECHOPGM(" [MP] "); // Add space at idx 0 just in case first character is dropped due to timing/sync issues.
   1070c:	89 eb       	ldi	r24, 0xB9	; 185
   1070e:	96 e7       	ldi	r25, 0x76	; 118
   10710:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

    // NOTE: if any configuration vars are added below, the outgoing sync text for host plugin
    // should not contain the "PV' substring, as this is used to indicate protocol version
    SERIAL_ECHOPGM(MeatPack_ProtocolVersion);
   10714:	84 eb       	ldi	r24, 0xB4	; 180
   10716:	96 e7       	ldi	r25, 0x76	; 118
   10718:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

    // Echo current state
    if (mp_config & MPConfig_Active)
   1071c:	10 91 3e 03 	lds	r17, 0x033E	; 0x80033e <mp_config>
        SERIAL_ECHOPGM(" ON");
   10720:	80 eb       	ldi	r24, 0xB0	; 176
   10722:	96 e7       	ldi	r25, 0x76	; 118
    // NOTE: if any configuration vars are added below, the outgoing sync text for host plugin
    // should not contain the "PV' substring, as this is used to indicate protocol version
    SERIAL_ECHOPGM(MeatPack_ProtocolVersion);

    // Echo current state
    if (mp_config & MPConfig_Active)
   10724:	10 fd       	sbrc	r17, 0
   10726:	02 c0       	rjmp	.+4      	; 0x1072c <get_command()+0x1de>
        SERIAL_ECHOPGM(" ON");
    else
        SERIAL_ECHOPGM(" OFF");
   10728:	8b ea       	ldi	r24, 0xAB	; 171
   1072a:	96 e7       	ldi	r25, 0x76	; 118
   1072c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

    if (mp_config & MPConfig_NoSpaces)
   10730:	01 2f       	mov	r16, r17
   10732:	02 70       	andi	r16, 0x02	; 2
        SERIAL_ECHOPGM(" NSP"); // [N]o [SP]aces
   10734:	86 ea       	ldi	r24, 0xA6	; 166
   10736:	96 e7       	ldi	r25, 0x76	; 118
    if (mp_config & MPConfig_Active)
        SERIAL_ECHOPGM(" ON");
    else
        SERIAL_ECHOPGM(" OFF");

    if (mp_config & MPConfig_NoSpaces)
   10738:	11 fd       	sbrc	r17, 1
   1073a:	02 c0       	rjmp	.+4      	; 0x10740 <get_command()+0x1f2>
        SERIAL_ECHOPGM(" NSP"); // [N]o [SP]aces
    else
        SERIAL_ECHOPGM(" ESP"); // [E]nabled [SP]aces
   1073c:	81 ea       	ldi	r24, 0xA1	; 161
   1073e:	96 e7       	ldi	r25, 0x76	; 118
   10740:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

    SERIAL_ECHOLNPGM("");
   10744:	80 ea       	ldi	r24, 0xA0	; 160
   10746:	96 e7       	ldi	r25, 0x76	; 118
   10748:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    // Validate config vars
#ifdef USE_LOOKUP_TABLE
    if (mp_config & MPConfig_NoSpaces)
   1074c:	00 23       	and	r16, r16
   1074e:	29 f1       	breq	.+74     	; 0x1079a <get_command()+0x24c>
        MeatPackLookupTbl[MeatPack_SpaceCharIdx] = (uint8_t)(MeatPack_SpaceCharReplace);
   10750:	45 e4       	ldi	r20, 0x45	; 69
   10752:	40 93 0b 02 	sts	0x020B, r20	; 0x80020b <__DATA_REGION_ORIGIN__+0xb>
        return;
    }

    if (mp_cmd_active > 0) {
        mp_handle_cmd((MeatPack_Command)c);
        mp_cmd_active = 0;
   10756:	10 92 3f 03 	sts	0x033F, r1	; 0x80033f <mp_cmd_active>
   1075a:	55 cf       	rjmp	.-342    	; 0x10606 <get_command()+0xb8>

}

//==========================================================================
void FORCE_INLINE mp_handle_cmd(const MeatPack_Command c) {
    switch (c) {
   1075c:	8a 3f       	cpi	r24, 0xFA	; 250
   1075e:	41 f0       	breq	.+16     	; 0x10770 <get_command()+0x222>
    case MPCommand_EnablePacking: {
        mp_config |= MPConfig_Active;
   10760:	80 91 3e 03 	lds	r24, 0x033E	; 0x80033e <mp_config>
   10764:	81 60       	ori	r24, 0x01	; 1

}

//==========================================================================
void FORCE_INLINE mp_handle_cmd(const MeatPack_Command c) {
    switch (c) {
   10766:	2b 3f       	cpi	r18, 0xFB	; 251
   10768:	89 f6       	brne	.-94     	; 0x1070c <get_command()+0x1be>
#ifdef MP_DEBUG
        SERIAL_ECHOLNPGM("[MPDBG] ENABL NSP");
#endif
    } break;
    case MPCommand_DisableNoSpaces: {
        mp_config &= ~(MPConfig_NoSpaces);
   1076a:	80 93 3e 03 	sts	0x033E, r24	; 0x80033e <mp_config>
   1076e:	ce cf       	rjmp	.-100    	; 0x1070c <get_command()+0x1be>
#ifdef MP_DEBUG
        SERIAL_ECHOLNPGM("[MPDBG] ENABL REC");
#endif
    } break;
    case MPCommand_DisablePacking: {
        mp_config &= ~(MPConfig_Active);
   10770:	80 91 3e 03 	lds	r24, 0x033E	; 0x80033e <mp_config>
   10774:	8e 7f       	andi	r24, 0xFE	; 254
   10776:	f9 cf       	rjmp	.-14     	; 0x1076a <get_command()+0x21c>
    return out;
}

//==============================================================================
void FORCE_INLINE mp_reset_state() {
    mp_char_out_count = 0;
   10778:	10 92 43 03 	sts	0x0343, r1	; 0x800343 <mp_char_out_count>
    mp_cmd_active = MPCommand_None;
   1077c:	10 92 3f 03 	sts	0x033F, r1	; 0x80033f <mp_cmd_active>
    mp_config = MPConfig_None;
   10780:	10 92 3e 03 	sts	0x033E, r1	; 0x80033e <mp_config>
    mp_char_buf = 0;
   10784:	10 92 3d 03 	sts	0x033D, r1	; 0x80033d <mp_char_buf>
    mp_cmd_count = 0;
   10788:	10 92 40 03 	sts	0x0340, r1	; 0x800340 <mp_cmd_count>
    mp_cmd_active = 0;
    mp_full_char_queue = 0;
   1078c:	10 92 3c 03 	sts	0x033C, r1	; 0x80033c <mp_full_char_queue>
   10790:	bd cf       	rjmp	.-134    	; 0x1070c <get_command()+0x1be>
#ifdef MP_DEBUG
        SERIAL_ECHOLNPGM("[MPDBG] ENABL NSP");
#endif
    } break;
    case MPCommand_DisableNoSpaces: {
        mp_config &= ~(MPConfig_NoSpaces);
   10792:	80 91 3e 03 	lds	r24, 0x033E	; 0x80033e <mp_config>
   10796:	8d 7f       	andi	r24, 0xFD	; 253
   10798:	e8 cf       	rjmp	.-48     	; 0x1076a <get_command()+0x21c>
    // Validate config vars
#ifdef USE_LOOKUP_TABLE
    if (mp_config & MPConfig_NoSpaces)
        MeatPackLookupTbl[MeatPack_SpaceCharIdx] = (uint8_t)(MeatPack_SpaceCharReplace);
    else
        MeatPackLookupTbl[MeatPack_SpaceCharIdx] = ' ';
   1079a:	50 e2       	ldi	r21, 0x20	; 32
   1079c:	50 93 0b 02 	sts	0x020B, r21	; 0x80020b <__DATA_REGION_ORIGIN__+0xb>
   107a0:	da cf       	rjmp	.-76     	; 0x10756 <get_command()+0x208>
        mp_handle_cmd((MeatPack_Command)c);
        mp_cmd_active = 0;
        return;
    }

    if (mp_cmd_count > 0) {
   107a2:	20 91 40 03 	lds	r18, 0x0340	; 0x800340 <mp_cmd_count>
   107a6:	40 91 3e 03 	lds	r20, 0x033E	; 0x80033e <mp_config>
   107aa:	22 23       	and	r18, r18
   107ac:	31 f1       	breq	.+76     	; 0x107fa <get_command()+0x2ac>
   107ae:	e0 91 43 03 	lds	r30, 0x0343	; 0x800343 <mp_char_out_count>
//==========================================================================
void FORCE_INLINE mp_handle_rx_char_inner(const uint8_t c) {

    // Packing enabled, handle character and re-arrange them appropriately.
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (mp_config & MPConfig_Active) {
   107b2:	40 ff       	sbrs	r20, 0
   107b4:	49 c0       	rjmp	.+146    	; 0x10848 <get_command()+0x2fa>
        if (mp_full_char_queue > 0) {
   107b6:	30 91 3c 03 	lds	r19, 0x033C	; 0x80033c <mp_full_char_queue>
   107ba:	33 23       	and	r19, r19
   107bc:	09 f4       	brne	.+2      	; 0x107c0 <get_command()+0x272>
   107be:	40 c0       	rjmp	.+128    	; 0x10840 <get_command()+0x2f2>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   107c0:	21 e0       	ldi	r18, 0x01	; 1
   107c2:	2e 0f       	add	r18, r30
   107c4:	20 93 43 03 	sts	0x0343, r18	; 0x800343 <mp_char_out_count>
   107c8:	ae 2f       	mov	r26, r30
   107ca:	b0 e0       	ldi	r27, 0x00	; 0
   107cc:	af 5b       	subi	r26, 0xBF	; 191
   107ce:	bc 4f       	sbci	r27, 0xFC	; 252
   107d0:	ff ef       	ldi	r31, 0xFF	; 255
   107d2:	fc 93       	st	X, r31
    // Packing enabled, handle character and re-arrange them appropriately.
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (mp_config & MPConfig_Active) {
        if (mp_full_char_queue > 0) {
            mp_handle_output_char(c);
                if (mp_char_buf > 0) {
   107d4:	50 91 3d 03 	lds	r21, 0x033D	; 0x80033d <mp_char_buf>
   107d8:	55 23       	and	r21, r21
   107da:	51 f0       	breq	.+20     	; 0x107f0 <get_command()+0x2a2>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   107dc:	ee 5f       	subi	r30, 0xFE	; 254
   107de:	e0 93 43 03 	sts	0x0343, r30	; 0x800343 <mp_char_out_count>
   107e2:	e2 2f       	mov	r30, r18
   107e4:	f0 e0       	ldi	r31, 0x00	; 0
   107e6:	ef 5b       	subi	r30, 0xBF	; 191
   107e8:	fc 4f       	sbci	r31, 0xFC	; 252
   107ea:	50 83       	st	Z, r21
    if (mp_config & MPConfig_Active) {
        if (mp_full_char_queue > 0) {
            mp_handle_output_char(c);
                if (mp_char_buf > 0) {
                    mp_handle_output_char(mp_char_buf);
                        mp_char_buf = 0;
   107ec:	10 92 3d 03 	sts	0x033D, r1	; 0x80033d <mp_char_buf>
                }
            --mp_full_char_queue;
   107f0:	31 50       	subi	r19, 0x01	; 1
   107f2:	30 93 3c 03 	sts	0x033C, r19	; 0x80033c <mp_full_char_queue>
        return;
    }

    if (mp_cmd_count > 0) {
        mp_handle_rx_char_inner((uint8_t)(MeatPack_CommandByte));
        mp_cmd_count = 0;
   107f6:	10 92 40 03 	sts	0x0340, r1	; 0x800340 <mp_cmd_count>
   107fa:	e0 91 43 03 	lds	r30, 0x0343	; 0x800343 <mp_char_out_count>
//==========================================================================
void FORCE_INLINE mp_handle_rx_char_inner(const uint8_t c) {

    // Packing enabled, handle character and re-arrange them appropriately.
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (mp_config & MPConfig_Active) {
   107fe:	40 ff       	sbrs	r20, 0
   10800:	6c c0       	rjmp	.+216    	; 0x108da <get_command()+0x38c>
        if (mp_full_char_queue > 0) {
   10802:	20 91 3c 03 	lds	r18, 0x033C	; 0x80033c <mp_full_char_queue>
   10806:	22 23       	and	r18, r18
   10808:	49 f1       	breq	.+82     	; 0x1085c <get_command()+0x30e>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   1080a:	91 e0       	ldi	r25, 0x01	; 1
   1080c:	9e 0f       	add	r25, r30
   1080e:	90 93 43 03 	sts	0x0343, r25	; 0x800343 <mp_char_out_count>
   10812:	ae 2f       	mov	r26, r30
   10814:	b0 e0       	ldi	r27, 0x00	; 0
   10816:	af 5b       	subi	r26, 0xBF	; 191
   10818:	bc 4f       	sbci	r27, 0xFC	; 252
   1081a:	8c 93       	st	X, r24
    // Packing enabled, handle character and re-arrange them appropriately.
    // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    if (mp_config & MPConfig_Active) {
        if (mp_full_char_queue > 0) {
            mp_handle_output_char(c);
                if (mp_char_buf > 0) {
   1081c:	80 91 3d 03 	lds	r24, 0x033D	; 0x80033d <mp_char_buf>
   10820:	88 23       	and	r24, r24
   10822:	51 f0       	breq	.+20     	; 0x10838 <get_command()+0x2ea>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   10824:	ee 5f       	subi	r30, 0xFE	; 254
   10826:	e0 93 43 03 	sts	0x0343, r30	; 0x800343 <mp_char_out_count>
   1082a:	e9 2f       	mov	r30, r25
   1082c:	f0 e0       	ldi	r31, 0x00	; 0
   1082e:	ef 5b       	subi	r30, 0xBF	; 191
   10830:	fc 4f       	sbci	r31, 0xFC	; 252
   10832:	80 83       	st	Z, r24
    if (mp_config & MPConfig_Active) {
        if (mp_full_char_queue > 0) {
            mp_handle_output_char(c);
                if (mp_char_buf > 0) {
                    mp_handle_output_char(mp_char_buf);
                        mp_char_buf = 0;
   10834:	10 92 3d 03 	sts	0x033D, r1	; 0x80033d <mp_char_buf>
                }
            --mp_full_char_queue;
   10838:	21 50       	subi	r18, 0x01	; 1
   1083a:	20 93 3c 03 	sts	0x033C, r18	; 0x80033c <mp_full_char_queue>
   1083e:	e3 ce       	rjmp	.-570    	; 0x10606 <get_command()+0xb8>
            uint8_t buf[2] = { 0,0 };
            const uint8_t res = mp_unpack_chars(c, buf);

            if (res & MeatPack_NextPackedFirst) {
                ++mp_full_char_queue;
                if (res & MeatPack_NextPackedSecond) ++mp_full_char_queue;
   10840:	22 e0       	ldi	r18, 0x02	; 2
   10842:	20 93 3c 03 	sts	0x033C, r18	; 0x80033c <mp_full_char_queue>
   10846:	d7 cf       	rjmp	.-82     	; 0x107f6 <get_command()+0x2a8>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   10848:	21 e0       	ldi	r18, 0x01	; 1
   1084a:	2e 0f       	add	r18, r30
   1084c:	20 93 43 03 	sts	0x0343, r18	; 0x800343 <mp_char_out_count>
   10850:	f0 e0       	ldi	r31, 0x00	; 0
   10852:	ef 5b       	subi	r30, 0xBF	; 191
   10854:	fc 4f       	sbci	r31, 0xFC	; 252
   10856:	5f ef       	ldi	r21, 0xFF	; 255
   10858:	50 83       	st	Z, r21
   1085a:	cd cf       	rjmp	.-102    	; 0x107f6 <get_command()+0x2a8>
   1085c:	a8 2f       	mov	r26, r24
   1085e:	af 70       	andi	r26, 0x0F	; 15
                        mp_char_buf = 0;
                }
            --mp_full_char_queue;
        }
        else {
            uint8_t buf[2] = { 0,0 };
   10860:	40 e0       	ldi	r20, 0x00	; 0
uint8_t FORCE_INLINE mp_unpack_chars(const uint8_t pk, uint8_t* __restrict const chars_out) {
    uint8_t out = 0;

#ifdef USE_LOOKUP_TABLE
    // If lower 4 bytes is 0b1111, the higher 4 are unused, and next char is full.
    if ((pk & MeatPack_FirstNotPacked) == MeatPack_FirstNotPacked) out |= MeatPack_NextPackedFirst;
   10862:	31 e0       	ldi	r19, 0x01	; 1
   10864:	af 30       	cpi	r26, 0x0F	; 15
   10866:	29 f0       	breq	.+10     	; 0x10872 <get_command()+0x324>
   10868:	b0 e0       	ldi	r27, 0x00	; 0
    else chars_out[0] = MeatPackLookupTbl[(pk & 0xF)]; // Assign lower char
   1086a:	a0 50       	subi	r26, 0x00	; 0
   1086c:	be 4f       	sbci	r27, 0xFE	; 254
   1086e:	4c 91       	ld	r20, X
// low = (packed >> 4) & 0xF;
// high = (packed & 0xF);

//==========================================================================
uint8_t FORCE_INLINE mp_unpack_chars(const uint8_t pk, uint8_t* __restrict const chars_out) {
    uint8_t out = 0;
   10870:	30 e0       	ldi	r19, 0x00	; 0
    // If lower 4 bytes is 0b1111, the higher 4 are unused, and next char is full.
    if ((pk & MeatPack_FirstNotPacked) == MeatPack_FirstNotPacked) out |= MeatPack_NextPackedFirst;
    else chars_out[0] = MeatPackLookupTbl[(pk & 0xF)]; // Assign lower char

    // Check if upper 4 bytes is 0b1111... if so, we don't need the second char.
    if ((pk & MeatPack_SecondNotPacked) == MeatPack_SecondNotPacked) out |= MeatPack_NextPackedSecond;
   10872:	58 2f       	mov	r21, r24
   10874:	50 7f       	andi	r21, 0xF0	; 240
   10876:	50 3f       	cpi	r21, 0xF0	; 240
   10878:	59 f4       	brne	.+22     	; 0x10890 <get_command()+0x342>
   1087a:	32 60       	ori	r19, 0x02	; 2
        }
        else {
            uint8_t buf[2] = { 0,0 };
            const uint8_t res = mp_unpack_chars(c, buf);

            if (res & MeatPack_NextPackedFirst) {
   1087c:	30 ff       	sbrs	r19, 0
   1087e:	13 c0       	rjmp	.+38     	; 0x108a6 <get_command()+0x358>
                ++mp_full_char_queue;
   10880:	d0 92 3c 03 	sts	0x033C, r13	; 0x80033c <mp_full_char_queue>
                if (res & MeatPack_NextPackedSecond) ++mp_full_char_queue;
   10884:	31 ff       	sbrs	r19, 1
   10886:	0c c0       	rjmp	.+24     	; 0x108a0 <get_command()+0x352>
   10888:	82 e0       	ldi	r24, 0x02	; 2
   1088a:	80 93 3c 03 	sts	0x033C, r24	; 0x80033c <mp_full_char_queue>
   1088e:	bb ce       	rjmp	.-650    	; 0x10606 <get_command()+0xb8>
    if ((pk & MeatPack_FirstNotPacked) == MeatPack_FirstNotPacked) out |= MeatPack_NextPackedFirst;
    else chars_out[0] = MeatPackLookupTbl[(pk & 0xF)]; // Assign lower char

    // Check if upper 4 bytes is 0b1111... if so, we don't need the second char.
    if ((pk & MeatPack_SecondNotPacked) == MeatPack_SecondNotPacked) out |= MeatPack_NextPackedSecond;
    else chars_out[1] = MeatPackLookupTbl[((pk >> 4) & 0xf)]; // Assign upper char
   10890:	82 95       	swap	r24
   10892:	8f 70       	andi	r24, 0x0F	; 15
   10894:	a8 2f       	mov	r26, r24
   10896:	b0 e0       	ldi	r27, 0x00	; 0
   10898:	a0 50       	subi	r26, 0x00	; 0
   1089a:	be 4f       	sbci	r27, 0xFE	; 254
   1089c:	2c 91       	ld	r18, X
   1089e:	ee cf       	rjmp	.-36     	; 0x1087c <get_command()+0x32e>
            const uint8_t res = mp_unpack_chars(c, buf);

            if (res & MeatPack_NextPackedFirst) {
                ++mp_full_char_queue;
                if (res & MeatPack_NextPackedSecond) ++mp_full_char_queue;
                else mp_char_buf = buf[1];
   108a0:	20 93 3d 03 	sts	0x033D, r18	; 0x80033d <mp_char_buf>
   108a4:	b0 ce       	rjmp	.-672    	; 0x10606 <get_command()+0xb8>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   108a6:	81 e0       	ldi	r24, 0x01	; 1
   108a8:	8e 0f       	add	r24, r30
   108aa:	80 93 43 03 	sts	0x0343, r24	; 0x800343 <mp_char_out_count>
   108ae:	ae 2f       	mov	r26, r30
   108b0:	b0 e0       	ldi	r27, 0x00	; 0
   108b2:	af 5b       	subi	r26, 0xBF	; 191
   108b4:	bc 4f       	sbci	r27, 0xFC	; 252
   108b6:	4c 93       	st	X, r20
                if (res & MeatPack_NextPackedSecond) ++mp_full_char_queue;
                else mp_char_buf = buf[1];
            }
            else {
                mp_handle_output_char(buf[0]);
                if (buf[0] != '\n') {
   108b8:	4a 30       	cpi	r20, 0x0A	; 10
   108ba:	09 f4       	brne	.+2      	; 0x108be <get_command()+0x370>
   108bc:	a4 ce       	rjmp	.-696    	; 0x10606 <get_command()+0xb8>
                    if (res & MeatPack_NextPackedSecond) ++mp_full_char_queue;
   108be:	31 ff       	sbrs	r19, 1
   108c0:	03 c0       	rjmp	.+6      	; 0x108c8 <get_command()+0x37a>
   108c2:	d0 92 3c 03 	sts	0x033C, r13	; 0x80033c <mp_full_char_queue>
   108c6:	9f ce       	rjmp	.-706    	; 0x10606 <get_command()+0xb8>
#ifdef MP_DEBUG
uint32_t mp_chars_decoded = 0;
#endif

void FORCE_INLINE mp_handle_output_char(const uint8_t c) {
    mp_char_out_buf[mp_char_out_count++] = c;
   108c8:	ee 5f       	subi	r30, 0xFE	; 254
   108ca:	e0 93 43 03 	sts	0x0343, r30	; 0x800343 <mp_char_out_count>
   108ce:	e8 2f       	mov	r30, r24
   108d0:	f0 e0       	ldi	r31, 0x00	; 0
   108d2:	ef 5b       	subi	r30, 0xBF	; 191
   108d4:	fc 4f       	sbci	r31, 0xFC	; 252
   108d6:	20 83       	st	Z, r18
   108d8:	96 ce       	rjmp	.-724    	; 0x10606 <get_command()+0xb8>
   108da:	91 e0       	ldi	r25, 0x01	; 1
   108dc:	9e 0f       	add	r25, r30
   108de:	90 93 43 03 	sts	0x0343, r25	; 0x800343 <mp_char_out_count>
   108e2:	f0 e0       	ldi	r31, 0x00	; 0
   108e4:	ef 5b       	subi	r30, 0xBF	; 191
   108e6:	fc 4f       	sbci	r31, 0xFC	; 252
   108e8:	80 83       	st	Z, r24
   108ea:	8d ce       	rjmp	.-742    	; 0x10606 <get_command()+0xb8>
        continue;
    if(serial_char == '\n' ||
       serial_char == '\r' ||
       serial_count >= (MAX_CMD_SIZE - 1) )
    {
      if(!serial_count) { //if empty line
   108ec:	00 97       	sbiw	r24, 0x00	; 0
   108ee:	19 f4       	brne	.+6      	; 0x108f6 <get_command()+0x3a8>
        comment_mode = false; //for new command
   108f0:	10 92 45 03 	sts	0x0345, r1	; 0x800345 <comment_mode>
   108f4:	de ce       	rjmp	.-580    	; 0x106b2 <get_command()+0x164>
   108f6:	00 91 a0 10 	lds	r16, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   108fa:	10 91 a1 10 	lds	r17, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
        return;
      }
      cmdbuffer[bufindw+serial_count+CMDHDRSIZE] = 0; // terminate string
   108fe:	08 55       	subi	r16, 0x58	; 88
   10900:	1f 4e       	sbci	r17, 0xEF	; 239
   10902:	80 0f       	add	r24, r16
   10904:	91 1f       	adc	r25, r17
   10906:	fc 01       	movw	r30, r24
   10908:	10 82       	st	Z, r1
      char* cmd_head = cmdbuffer+bufindw+CMDHDRSIZE; // current command pointer
      char* cmd_start = cmd_head; // pointer past the line number (if any)
   1090a:	1a 83       	std	Y+2, r17	; 0x02
   1090c:	09 83       	std	Y+1, r16	; 0x01

      if(!comment_mode){
   1090e:	80 91 45 03 	lds	r24, 0x0345	; 0x800345 <comment_mode>
   10912:	81 11       	cpse	r24, r1
   10914:	03 c1       	rjmp	.+518    	; 0x10b1c <get_command()+0x5ce>
		  long gcode_N = -1; // seen line number

		  // Line numbers must be first in buffer
		  if (*cmd_head == 'N') {
   10916:	f8 01       	movw	r30, r16
   10918:	80 81       	ld	r24, Z
   1091a:	8e 34       	cpi	r24, 0x4E	; 78
   1091c:	09 f0       	breq	.+2      	; 0x10920 <get_command()+0x3d2>
   1091e:	8a c0       	rjmp	.+276    	; 0x10a34 <get_command()+0x4e6>

			  // Line number met: decode the number, then move cmd_start past all spaces.
			  gcode_N = (strtol(cmd_head+1, &cmd_start, 10));
   10920:	4a e0       	ldi	r20, 0x0A	; 10
   10922:	50 e0       	ldi	r21, 0x00	; 0
   10924:	be 01       	movw	r22, r28
   10926:	6f 5f       	subi	r22, 0xFF	; 255
   10928:	7f 4f       	sbci	r23, 0xFF	; 255
   1092a:	c8 01       	movw	r24, r16
   1092c:	01 96       	adiw	r24, 0x01	; 1
   1092e:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   10932:	2b 01       	movw	r4, r22
   10934:	3c 01       	movw	r6, r24
			  while (*cmd_start == ' ') ++cmd_start;
   10936:	e9 80       	ldd	r14, Y+1	; 0x01
   10938:	fa 80       	ldd	r15, Y+2	; 0x02
   1093a:	f7 01       	movw	r30, r14
   1093c:	80 81       	ld	r24, Z
   1093e:	80 32       	cpi	r24, 0x20	; 32
   10940:	31 f4       	brne	.+12     	; 0x1094e <get_command()+0x400>
   10942:	ff ef       	ldi	r31, 0xFF	; 255
   10944:	ef 1a       	sub	r14, r31
   10946:	ff 0a       	sbc	r15, r31
   10948:	fa 82       	std	Y+2, r15	; 0x02
   1094a:	e9 82       	std	Y+1, r14	; 0x01
   1094c:	f4 cf       	rjmp	.-24     	; 0x10936 <get_command()+0x3e8>

			  // Test whether the successive lines are stamped with an increasing line number ID.
			  if(gcode_N != gcode_LastN+1 && strncmp_P(cmd_start, PSTR("M110"), 4)) {
   1094e:	80 90 7a 03 	lds	r8, 0x037A	; 0x80037a <gcode_LastN>
   10952:	90 90 7b 03 	lds	r9, 0x037B	; 0x80037b <gcode_LastN+0x1>
   10956:	a0 90 7c 03 	lds	r10, 0x037C	; 0x80037c <gcode_LastN+0x2>
   1095a:	b0 90 7d 03 	lds	r11, 0x037D	; 0x80037d <gcode_LastN+0x3>
   1095e:	d5 01       	movw	r26, r10
   10960:	c4 01       	movw	r24, r8
   10962:	01 96       	adiw	r24, 0x01	; 1
   10964:	a1 1d       	adc	r26, r1
   10966:	b1 1d       	adc	r27, r1
   10968:	84 15       	cp	r24, r4
   1096a:	95 05       	cpc	r25, r5
   1096c:	a6 05       	cpc	r26, r6
   1096e:	b7 05       	cpc	r27, r7
   10970:	49 f0       	breq	.+18     	; 0x10984 <get_command()+0x436>
   10972:	44 e0       	ldi	r20, 0x04	; 4
   10974:	50 e0       	ldi	r21, 0x00	; 0
   10976:	69 ee       	ldi	r22, 0xE9	; 233
   10978:	76 e7       	ldi	r23, 0x76	; 118
   1097a:	c7 01       	movw	r24, r14
   1097c:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   10980:	89 2b       	or	r24, r25
   10982:	a1 f4       	brne	.+40     	; 0x109ac <get_command()+0x45e>
				  FlushSerialRequestResend();
				  serial_count = 0;
				  return;
			  }

			  if((strchr_pointer = strchr(cmd_start, '*')) != NULL)
   10984:	6a e2       	ldi	r22, 0x2A	; 42
   10986:	70 e0       	ldi	r23, 0x00	; 0
   10988:	c7 01       	movw	r24, r14
   1098a:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   1098e:	90 93 96 03 	sts	0x0396, r25	; 0x800396 <strchr_pointer+0x1>
   10992:	80 93 95 03 	sts	0x0395, r24	; 0x800395 <strchr_pointer>
   10996:	00 97       	sbiw	r24, 0x00	; 0
   10998:	09 f4       	brne	.+2      	; 0x1099c <get_command()+0x44e>
   1099a:	45 c0       	rjmp	.+138    	; 0x10a26 <get_command()+0x4d8>
   1099c:	f8 01       	movw	r30, r16
			  {
				  byte checksum = 0;
   1099e:	f1 2c       	mov	r15, r1
				  char *p = cmd_head;
				  while (p != strchr_pointer)
   109a0:	e8 17       	cp	r30, r24
   109a2:	f9 07       	cpc	r31, r25
   109a4:	71 f0       	breq	.+28     	; 0x109c2 <get_command()+0x474>
					  checksum = checksum^(*p++);
   109a6:	21 91       	ld	r18, Z+
   109a8:	f2 26       	eor	r15, r18
   109aa:	fa cf       	rjmp	.-12     	; 0x109a0 <get_command()+0x452>
			  while (*cmd_start == ' ') ++cmd_start;

			  // Test whether the successive lines are stamped with an increasing line number ID.
			  if(gcode_N != gcode_LastN+1 && strncmp_P(cmd_start, PSTR("M110"), 4)) {
				  // Line numbers not sent in succession and M110 not seen.
				  SERIAL_ERROR_START;
   109ac:	88 ea       	ldi	r24, 0xA8	; 168
   109ae:	9a ea       	ldi	r25, 0xAA	; 170
   109b0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
				  SERIAL_ERRORRPGM(_n("Line Number is not Last Line Number+1, Last Line: "));////MSG_ERR_LINE_NO
   109b4:	88 e8       	ldi	r24, 0x88	; 136
   109b6:	94 e6       	ldi	r25, 0x64	; 100
				  *strchr_pointer = 0;
			  }
			  else
			  {
				  SERIAL_ERROR_START;
				  SERIAL_ERRORRPGM(_n("No Checksum with line number, Last Line: "));////MSG_ERR_NO_CHECKSUM
   109b8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   109bc:	c5 01       	movw	r24, r10
   109be:	b4 01       	movw	r22, r8
   109c0:	15 c0       	rjmp	.+42     	; 0x109ec <get_command()+0x49e>
			  {
				  byte checksum = 0;
				  char *p = cmd_head;
				  while (p != strchr_pointer)
					  checksum = checksum^(*p++);
				  if (code_value_short() != (int16_t)checksum) {
   109c2:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   109c6:	f8 16       	cp	r15, r24
   109c8:	19 06       	cpc	r1, r25
   109ca:	d9 f0       	breq	.+54     	; 0x10a02 <get_command()+0x4b4>
					  SERIAL_ERROR_START;
   109cc:	88 ea       	ldi	r24, 0xA8	; 168
   109ce:	9a ea       	ldi	r25, 0xAA	; 170
   109d0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
					  SERIAL_ERRORRPGM(_n("checksum mismatch, Last Line: "));////MSG_ERR_CHECKSUM_MISMATCH
   109d4:	89 e6       	ldi	r24, 0x69	; 105
   109d6:	94 e6       	ldi	r25, 0x64	; 100
   109d8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   109dc:	60 91 7a 03 	lds	r22, 0x037A	; 0x80037a <gcode_LastN>
   109e0:	70 91 7b 03 	lds	r23, 0x037B	; 0x80037b <gcode_LastN+0x1>
   109e4:	80 91 7c 03 	lds	r24, 0x037C	; 0x80037c <gcode_LastN+0x2>
   109e8:	90 91 7d 03 	lds	r25, 0x037D	; 0x80037d <gcode_LastN+0x3>
   109ec:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
}

void MarlinSerial::println(long n, int base)
{
  print(n, base);
  println();
   109f0:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
					  SERIAL_ERRORLN(gcode_LastN);
					  FlushSerialRequestResend();
   109f4:	0e 94 14 5b 	call	0xb628	; 0xb628 <FlushSerialRequestResend()>
					  serial_count = 0;
   109f8:	10 92 9f 10 	sts	0x109F, r1	; 0x80109f <serial_count+0x1>
   109fc:	10 92 9e 10 	sts	0x109E, r1	; 0x80109e <serial_count>
   10a00:	58 ce       	rjmp	.-848    	; 0x106b2 <get_command()+0x164>
					  return;
				  }
				  // If no errors, remove the checksum and continue parsing.
				  *strchr_pointer = 0;
   10a02:	e0 91 95 03 	lds	r30, 0x0395	; 0x800395 <strchr_pointer>
   10a06:	f0 91 96 03 	lds	r31, 0x0396	; 0x800396 <strchr_pointer+0x1>
   10a0a:	10 82       	st	Z, r1
                return;
            }
        }

        // Handle KILL early, even when Stopped
        if(strcmp_P(cmd_start, PSTR("M112")) == 0)
   10a0c:	e9 80       	ldd	r14, Y+1	; 0x01
   10a0e:	fa 80       	ldd	r15, Y+2	; 0x02
   10a10:	64 ee       	ldi	r22, 0xE4	; 228
   10a12:	76 e7       	ldi	r23, 0x76	; 118
   10a14:	c7 01       	movw	r24, r14
   10a16:	0f 94 09 da 	call	0x3b412	; 0x3b412 <strcmp_P>
   10a1a:	89 2b       	or	r24, r25
   10a1c:	39 f5       	brne	.+78     	; 0x10a6c <get_command()+0x51e>
          kill(MSG_M112_KILL);
   10a1e:	83 ea       	ldi	r24, 0xA3	; 163
   10a20:	97 e6       	ldi	r25, 0x67	; 103
   10a22:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>
				  // If no errors, remove the checksum and continue parsing.
				  *strchr_pointer = 0;
			  }
			  else
			  {
				  SERIAL_ERROR_START;
   10a26:	88 ea       	ldi	r24, 0xA8	; 168
   10a28:	9a ea       	ldi	r25, 0xAA	; 170
   10a2a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
				  SERIAL_ERRORRPGM(_n("No Checksum with line number, Last Line: "));////MSG_ERR_NO_CHECKSUM
   10a2e:	8f e3       	ldi	r24, 0x3F	; 63
   10a30:	94 e6       	ldi	r25, 0x64	; 100
   10a32:	c2 cf       	rjmp	.-124    	; 0x109b8 <get_command()+0x46a>
			  }
		}
        else
        {
            // move cmd_start past all spaces
            while (*cmd_start == ' ') ++cmd_start;
   10a34:	89 81       	ldd	r24, Y+1	; 0x01
   10a36:	9a 81       	ldd	r25, Y+2	; 0x02
   10a38:	fc 01       	movw	r30, r24
   10a3a:	20 81       	ld	r18, Z
   10a3c:	20 32       	cpi	r18, 0x20	; 32
   10a3e:	21 f4       	brne	.+8      	; 0x10a48 <get_command()+0x4fa>
   10a40:	01 96       	adiw	r24, 0x01	; 1
   10a42:	9a 83       	std	Y+2, r25	; 0x02
   10a44:	89 83       	std	Y+1, r24	; 0x01
   10a46:	f6 cf       	rjmp	.-20     	; 0x10a34 <get_command()+0x4e6>

            // if we didn't receive 'N' but still see '*'
            if (strchr(cmd_start, '*') != NULL)
   10a48:	6a e2       	ldi	r22, 0x2A	; 42
   10a4a:	70 e0       	ldi	r23, 0x00	; 0
   10a4c:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   10a50:	89 2b       	or	r24, r25
   10a52:	39 f0       	breq	.+14     	; 0x10a62 <get_command()+0x514>
            {
                SERIAL_ERROR_START;
   10a54:	88 ea       	ldi	r24, 0xA8	; 168
   10a56:	9a ea       	ldi	r25, 0xAA	; 170
   10a58:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
                SERIAL_ERRORRPGM(_n("No Line Number with checksum, Last Line: "));////MSG_ERR_NO_LINENUMBER_WITH_CHECKSUM
   10a5c:	85 e1       	ldi	r24, 0x15	; 21
   10a5e:	94 e6       	ldi	r25, 0x64	; 100
   10a60:	bb cf       	rjmp	.-138    	; 0x109d8 <get_command()+0x48a>
      cmdbuffer[bufindw+serial_count+CMDHDRSIZE] = 0; // terminate string
      char* cmd_head = cmdbuffer+bufindw+CMDHDRSIZE; // current command pointer
      char* cmd_start = cmd_head; // pointer past the line number (if any)

      if(!comment_mode){
		  long gcode_N = -1; // seen line number
   10a62:	44 24       	eor	r4, r4
   10a64:	4a 94       	dec	r4
   10a66:	54 2c       	mov	r5, r4
   10a68:	32 01       	movw	r6, r4
   10a6a:	d0 cf       	rjmp	.-96     	; 0x10a0c <get_command()+0x4be>
        if(strcmp_P(cmd_start, PSTR("M112")) == 0)
          kill(MSG_M112_KILL);

        // Bypass Stopped for some commands
        bool allow_when_stopped = false;
        if(strncmp_P(cmd_start, PSTR("M310"), 4) == 0)
   10a6c:	44 e0       	ldi	r20, 0x04	; 4
   10a6e:	50 e0       	ldi	r21, 0x00	; 0
   10a70:	6f ed       	ldi	r22, 0xDF	; 223
   10a72:	76 e7       	ldi	r23, 0x76	; 118
   10a74:	c7 01       	movw	r24, r14
   10a76:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   10a7a:	5c 01       	movw	r10, r24
            allow_when_stopped = true;

        // Handle the USB timer
        if ((*cmd_start == 'G') && (GetPrinterState() != PrinterState::IsSDPrinting)) {
   10a7c:	f7 01       	movw	r30, r14
   10a7e:	80 81       	ld	r24, Z
   10a80:	87 34       	cpi	r24, 0x47	; 71
   10a82:	81 f4       	brne	.+32     	; 0x10aa4 <get_command()+0x556>
   10a84:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   10a88:	85 30       	cpi	r24, 0x05	; 5
   10a8a:	61 f0       	breq	.+24     	; 0x10aa4 <get_command()+0x556>
            usb_timer.start();
   10a8c:	8e e0       	ldi	r24, 0x0E	; 14
   10a8e:	95 e0       	ldi	r25, 0x05	; 5
   10a90:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
PrinterState GetPrinterState() {
    return printer_state;
}

PrinterState SetPrinterState(PrinterState status) {
    return printer_state = status;
   10a94:	f6 e0       	ldi	r31, 0x06	; 6
   10a96:	f0 93 b8 0d 	sts	0x0DB8, r31	; 0x800db8 <_ZL13printer_state.lto_priv.403>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   10a9a:	60 e0       	ldi	r22, 0x00	; 0
   10a9c:	85 ea       	ldi	r24, 0xA5	; 165
   10a9e:	9f e0       	ldi	r25, 0x0F	; 15
   10aa0:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
            SetPrinterState(PrinterState::IsHostPrinting); //set printer state busy printing to hide LCD menu while USB printing
            eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
        }
        if (allow_when_stopped == false && Stopped == true) {
   10aa4:	ab 28       	or	r10, r11
   10aa6:	21 f0       	breq	.+8      	; 0x10ab0 <get_command()+0x562>
   10aa8:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   10aac:	81 11       	cpse	r24, r1
   10aae:	a4 cf       	rjmp	.-184    	; 0x109f8 <get_command()+0x4aa>
        }

        // Command is complete: store the current line into buffer, move to the next line.

		// Store type of entry
        cmdbuffer[bufindw] = gcode_N >= 0 ? CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR : CMDBUFFER_CURRENT_TYPE_USB;
   10ab0:	26 e0       	ldi	r18, 0x06	; 6
   10ab2:	77 fc       	sbrc	r7, 7
   10ab4:	21 e0       	ldi	r18, 0x01	; 1
   10ab6:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10aba:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10abe:	fc 01       	movw	r30, r24
   10ac0:	eb 55       	subi	r30, 0x5B	; 91
   10ac2:	ff 4e       	sbci	r31, 0xEF	; 239
   10ac4:	20 83       	st	Z, r18
        SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */

        // Store the command itself (without line number or checksum)
        size_t cmd_len;
        if (cmd_head == cmd_start)
   10ac6:	49 81       	ldd	r20, Y+1	; 0x01
   10ac8:	5a 81       	ldd	r21, Y+2	; 0x02
            cmd_len = strlen(cmd_start) + 1;
   10aca:	f8 01       	movw	r30, r16
        SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */

        // Store the command itself (without line number or checksum)
        size_t cmd_len;
        if (cmd_head == cmd_start)
   10acc:	da 01       	movw	r26, r20
   10ace:	40 17       	cp	r20, r16
   10ad0:	51 07       	cpc	r21, r17
   10ad2:	a1 f5       	brne	.+104    	; 0x10b3c <get_command()+0x5ee>
            cmd_len = strlen(cmd_start) + 1;
   10ad4:	01 90       	ld	r0, Z+
   10ad6:	00 20       	and	r0, r0
   10ad8:	e9 f7       	brne	.-6      	; 0x10ad4 <get_command()+0x586>
   10ada:	9f 01       	movw	r18, r30
   10adc:	20 1b       	sub	r18, r16
   10ade:	31 0b       	sbc	r19, r17
            // strip the line number
            cmd_len = 0;
            do { cmd_head[cmd_len] = cmd_start[cmd_len]; }
            while (cmd_head[cmd_len++]);
        }
        bufindw += cmd_len + CMDHDRSIZE;
   10ae0:	03 96       	adiw	r24, 0x03	; 3
   10ae2:	28 0f       	add	r18, r24
   10ae4:	39 1f       	adc	r19, r25
        if (bufindw == sizeof(cmdbuffer))
   10ae6:	2d 3e       	cpi	r18, 0xED	; 237
   10ae8:	f1 e0       	ldi	r31, 0x01	; 1
   10aea:	3f 07       	cpc	r19, r31
   10aec:	79 f1       	breq	.+94     	; 0x10b4c <get_command()+0x5fe>
            // strip the line number
            cmd_len = 0;
            do { cmd_head[cmd_len] = cmd_start[cmd_len]; }
            while (cmd_head[cmd_len++]);
        }
        bufindw += cmd_len + CMDHDRSIZE;
   10aee:	30 93 a1 10 	sts	0x10A1, r19	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10af2:	20 93 a0 10 	sts	0x10A0, r18	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
        if (bufindw == sizeof(cmdbuffer))
            bufindw = 0;
        ++ buflen;
   10af6:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   10afa:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   10afe:	01 96       	adiw	r24, 0x01	; 1
   10b00:	90 93 a4 10 	sts	0x10A4, r25	; 0x8010a4 <buflen+0x1>
   10b04:	80 93 a3 10 	sts	0x10A3, r24	; 0x8010a3 <buflen>

        // Update the processed gcode line
        if (gcode_N >= 0)
   10b08:	77 fc       	sbrc	r7, 7
   10b0a:	08 c0       	rjmp	.+16     	; 0x10b1c <get_command()+0x5ce>
            gcode_LastN = gcode_N;
   10b0c:	40 92 7a 03 	sts	0x037A, r4	; 0x80037a <gcode_LastN>
   10b10:	50 92 7b 03 	sts	0x037B, r5	; 0x80037b <gcode_LastN+0x1>
   10b14:	60 92 7c 03 	sts	0x037C, r6	; 0x80037c <gcode_LastN+0x2>
   10b18:	70 92 7d 03 	sts	0x037D, r7	; 0x80037d <gcode_LastN+0x3>
        SERIAL_ECHOPGM("Number of commands in the buffer: ");
        SERIAL_ECHO(buflen);
        SERIAL_ECHOLNPGM("");
#endif /* CMDBUFFER_DEBUG */
      } // end of 'not comment mode'
      serial_count = 0; //clear buffer
   10b1c:	10 92 9f 10 	sts	0x109F, r1	; 0x80109f <serial_count+0x1>
   10b20:	10 92 9e 10 	sts	0x109E, r1	; 0x80109e <serial_count>
      // Don't call cmdqueue_could_enqueue_back if there are no characters waiting
      // in the queue, as this function will reserve the memory.
      if (MYSERIAL.available() == 0 || ! cmdqueue_could_enqueue_back(MAX_CMD_SIZE-1))
   10b24:	0e 94 90 76 	call	0xed20	; 0xed20 <MarlinSerial::available()>
   10b28:	89 2b       	or	r24, r25
   10b2a:	09 f4       	brne	.+2      	; 0x10b2e <get_command()+0x5e0>
   10b2c:	c2 cd       	rjmp	.-1148   	; 0x106b2 <get_command()+0x164>
   10b2e:	8f e5       	ldi	r24, 0x5F	; 95
   10b30:	90 e0       	ldi	r25, 0x00	; 0
   10b32:	0e 94 c9 5b 	call	0xb792	; 0xb792 <cmdqueue_could_enqueue_back(unsigned int)>
   10b36:	81 11       	cpse	r24, r1
   10b38:	79 cd       	rjmp	.-1294   	; 0x1062c <get_command()+0xde>
   10b3a:	bb cd       	rjmp	.-1162   	; 0x106b2 <get_command()+0x164>
        if (cmd_head == cmd_start)
            cmd_len = strlen(cmd_start) + 1;
        else {
            // strip the line number
            cmd_len = 0;
            do { cmd_head[cmd_len] = cmd_start[cmd_len]; }
   10b3c:	6d 91       	ld	r22, X+
   10b3e:	61 93       	st	Z+, r22
   10b40:	9d 01       	movw	r18, r26
   10b42:	24 1b       	sub	r18, r20
   10b44:	35 0b       	sbc	r19, r21
            while (cmd_head[cmd_len++]);
   10b46:	61 11       	cpse	r22, r1
   10b48:	f9 cf       	rjmp	.-14     	; 0x10b3c <get_command()+0x5ee>
   10b4a:	ca cf       	rjmp	.-108    	; 0x10ae0 <get_command()+0x592>
        }
        bufindw += cmd_len + CMDHDRSIZE;
        if (bufindw == sizeof(cmdbuffer))
            bufindw = 0;
   10b4c:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10b50:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10b54:	d0 cf       	rjmp	.-96     	; 0x10af6 <get_command()+0x5a8>
    #ifdef ENABLE_MEATPACK
     }
    #endif
  } // end of serial line processing loop

    if (serial_count > 0 && serialTimeoutTimer.expired(farm_mode ? 800 : 2000)) {
   10b56:	60 ed       	ldi	r22, 0xD0	; 208
   10b58:	77 e0       	ldi	r23, 0x07	; 7
   10b5a:	86 e4       	ldi	r24, 0x46	; 70
   10b5c:	93 e0       	ldi	r25, 0x03	; 3
   10b5e:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   10b62:	88 23       	and	r24, r24
   10b64:	09 f4       	brne	.+2      	; 0x10b68 <get_command()+0x61a>
   10b66:	a1 cd       	rjmp	.-1214   	; 0x106aa <get_command()+0x15c>
        comment_mode = false;
   10b68:	10 92 45 03 	sts	0x0345, r1	; 0x800345 <comment_mode>
        serial_count = 0;
   10b6c:	10 92 9f 10 	sts	0x109F, r1	; 0x80109f <serial_count+0x1>
   10b70:	10 92 9e 10 	sts	0x109E, r1	; 0x80109e <serial_count>
        SERIAL_ECHOLNPGM("RX timeout");
   10b74:	84 ed       	ldi	r24, 0xD4	; 212
   10b76:	96 e7       	ldi	r25, 0x76	; 118
   10b78:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   10b7c:	9a cd       	rjmp	.-1228   	; 0x106b2 <get_command()+0x164>
        return;
    }

  #ifdef SDSUPPORT
  if(!card.sdprinting || !card.isFileOpen() || serial_count!=0){
   10b7e:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   10b82:	88 23       	and	r24, r24
   10b84:	09 f4       	brne	.+2      	; 0x10b88 <get_command()+0x63a>
   10b86:	95 cd       	rjmp	.-1238   	; 0x106b2 <get_command()+0x164>
   10b88:	80 91 9e 10 	lds	r24, 0x109E	; 0x80109e <serial_count>
   10b8c:	90 91 9f 10 	lds	r25, 0x109F	; 0x80109f <serial_count+0x1>
   10b90:	89 2b       	or	r24, r25
   10b92:	09 f0       	breq	.+2      	; 0x10b96 <get_command()+0x648>
   10b94:	8e cd       	rjmp	.-1252   	; 0x106b2 <get_command()+0x164>
  //'#' stops reading from SD to the buffer prematurely, so procedural macro calls are possible
  // if it occurs, stop_buffering is triggered and the buffer is ran dry.
  // this character _can_ occur in serial com, due to checksums. however, no checksums are used in SD printing

  static bool stop_buffering=false;
  if(buflen==0) stop_buffering=false;
   10b96:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   10b9a:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   10b9e:	89 2b       	or	r24, r25
   10ba0:	11 f4       	brne	.+4      	; 0x10ba6 <get_command()+0x658>
   10ba2:	10 92 44 03 	sts	0x0344, r1	; 0x800344 <get_command()::stop_buffering>

}

eof_or_fail:
    // make the rdptr point to a safe location - end of file
    gfReadPtr = gfBlockBuffBegin() + 512;
   10ba6:	2d e9       	ldi	r18, 0x9D	; 157
   10ba8:	e2 2e       	mov	r14, r18
   10baa:	20 e1       	ldi	r18, 0x10	; 16
   10bac:	f2 2e       	mov	r15, r18
        return; // prevent cycling indefinitely - let manage_heaters do their job
      }
      // The new command buffer could be updated non-atomically, because it is not yet considered
      // to be inside the active queue.
      sd_count.value = card.get_sdpos() - sdpos_atomic;
      cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_SDCARD;
   10bae:	32 e0       	ldi	r19, 0x02	; 2
   10bb0:	d3 2e       	mov	r13, r19
     || serial_char == '#'
     || serial_count >= (MAX_CMD_SIZE - 1)
     || n==-1
    ){
      if(serial_char=='#')
        stop_buffering=true;
   10bb2:	cc 24       	eor	r12, r12
   10bb4:	c3 94       	inc	r12
    } lohi;
    uint16_t value;
  } sd_count;
  sd_count.value = 0;
  // Reads whole lines from the SD card. Never leaves a half-filled line in the cmdbuffer.
  while( !card.eof() && !stop_buffering) {
   10bb6:	40 91 a4 17 	lds	r20, 0x17A4	; 0x8017a4 <card+0x316>
   10bba:	50 91 a5 17 	lds	r21, 0x17A5	; 0x8017a5 <card+0x317>
   10bbe:	60 91 a6 17 	lds	r22, 0x17A6	; 0x8017a6 <card+0x318>
   10bc2:	70 91 a7 17 	lds	r23, 0x17A7	; 0x8017a7 <card+0x319>
   10bc6:	80 91 9d 17 	lds	r24, 0x179D	; 0x80179d <card+0x30f>
   10bca:	90 91 9e 17 	lds	r25, 0x179E	; 0x80179e <card+0x310>
   10bce:	a0 91 9f 17 	lds	r26, 0x179F	; 0x80179f <card+0x311>
   10bd2:	b0 91 a0 17 	lds	r27, 0x17A0	; 0x8017a0 <card+0x312>
   10bd6:	48 17       	cp	r20, r24
   10bd8:	59 07       	cpc	r21, r25
   10bda:	6a 07       	cpc	r22, r26
   10bdc:	7b 07       	cpc	r23, r27
   10bde:	08 f0       	brcs	.+2      	; 0x10be2 <get_command()+0x694>
   10be0:	2f c1       	rjmp	.+606    	; 0x10e40 <cycle+0x236>
   10be2:	80 91 44 03 	lds	r24, 0x0344	; 0x800344 <get_command()::stop_buffering>
   10be6:	81 11       	cpse	r24, r1
   10be8:	2b c1       	rjmp	.+598    	; 0x10e40 <cycle+0x236>
: "r22"          /* modifying register R22 - so that the compiler knows */ \
)

// avoid calling the default heavy-weight read() for just one byte
int16_t SdFile::readFilteredGcode(){
    if( ! gfEnsureBlock() ){
   10bea:	0f 94 c5 7b 	call	0x2f78a	; 0x2f78a <SdFile::gfEnsureBlock() [clone .constprop.243]>
   10bee:	88 23       	and	r24, r24
   10bf0:	49 f1       	breq	.+82     	; 0x10c44 <cycle+0x3a>
        goto eof_or_fail; // this is unfortunate :( ... other calls are using the cache and we can loose the data block of our gcode file
    }
    // assume, we have the 512B block cache filled and terminated with a '\n'
    {
    const uint8_t *start = gfReadPtr;
   10bf2:	20 91 3b 17 	lds	r18, 0x173B	; 0x80173b <card+0x2ad>
   10bf6:	30 91 3c 17 	lds	r19, 0x173C	; 0x80173c <card+0x2ae>
    // to gfReadPtr within this method, because it is a class member variable.
    // The compiler cannot see, if omitting read/write won't have any incorrect side-effects to the rest of the whole FW.
    // So this trick explicitly states, that rdPtr is a local variable limited to the scope of this method,
    // therefore the compiler can omit read/write to it (keep it in registers!) as it sees fit.
    // And it does! Codesize dropped by 68B!
    const uint8_t *rdPtr = gfReadPtr;
   10bfa:	89 01       	movw	r16, r18
    if( ! gfEnsureBlock() ){
        goto eof_or_fail; // this is unfortunate :( ... other calls are using the cache and we can loose the data block of our gcode file
    }
    // assume, we have the 512B block cache filled and terminated with a '\n'
    {
    const uint8_t *start = gfReadPtr;
   10bfc:	9b ef       	ldi	r25, 0xFB	; 251
   10bfe:	b9 2e       	mov	r11, r25

    // the same applies to gfXBegin, codesize dropped another 100B!
    const uint8_t *blockBuffBegin = gfBlockBuffBegin();

    uint8_t consecutiveCommentLines = 0;
    while( *rdPtr == ';' ){
   10c00:	f8 01       	movw	r30, r16
   10c02:	80 81       	ld	r24, Z
   10c04:	8b 33       	cpi	r24, 0x3B	; 59
   10c06:	51 f5       	brne	.+84     	; 0x10c5c <cycle+0x52>
            //   11c68:	brne	.-12     	; 0x11c5e <get_command()+0x524>

            // Still, even that was suboptimal as the compiler seems not to understand the usage of ld r22, Z+ (the plus is important)
            // aka automatic increment of the Z register (R30:R31 pair)
            // There is no other way than pure ASM!
            find_endl(rdPtr, rdPtr);
   10c08:	f8 01       	movw	r30, r16

00010c0a <cycle>:
   10c0a:	61 91       	ld	r22, Z+
   10c0c:	6a 30       	cpi	r22, 0x0A	; 10
   10c0e:	e9 f7       	brne	.-6      	; 0x10c0a <cycle>
   10c10:	8f 01       	movw	r16, r30

            // found a newline, prepare the next block if block cache end reached
            if( rdPtr - blockBuffBegin > 512 ){
   10c12:	cf 01       	movw	r24, r30
   10c14:	8d 59       	subi	r24, 0x9D	; 157
   10c16:	9e 40       	sbci	r25, 0x0E	; 14
   10c18:	81 30       	cpi	r24, 0x01	; 1
   10c1a:	92 40       	sbci	r25, 0x02	; 2
   10c1c:	d4 f0       	brlt	.+52     	; 0x10c52 <cycle+0x48>
                // at the end of block cache, fill new data in
                gfUpdateCurrentPosition( rdPtr - start - 1 );
   10c1e:	c8 01       	movw	r24, r16
   10c20:	82 1b       	sub	r24, r18
   10c22:	93 0b       	sbc	r25, r19
   10c24:	01 97       	sbiw	r24, 0x01	; 1
   10c26:	0f 94 b6 7b 	call	0x2f76c	; 0x2f76c <SdFile::gfUpdateCurrentPosition(unsigned int) [clone .constprop.245]>
                if( ! gfComputeNextFileBlock() )goto eof_or_fail;
   10c2a:	80 e2       	ldi	r24, 0x20	; 32
   10c2c:	97 e1       	ldi	r25, 0x17	; 23
   10c2e:	0f 94 5b 57 	call	0x2aeb6	; 0x2aeb6 <SdFile::gfComputeNextFileBlock()>
   10c32:	88 23       	and	r24, r24
   10c34:	39 f0       	breq	.+14     	; 0x10c44 <cycle+0x3a>
                if( ! gfEnsureBlock() )goto eof_or_fail; // fetch it into RAM
   10c36:	0f 94 c5 7b 	call	0x2f78a	; 0x2f78a <SdFile::gfEnsureBlock() [clone .constprop.243]>
                rdPtr = start = blockBuffBegin;
   10c3a:	2d e9       	ldi	r18, 0x9D	; 157
   10c3c:	3e e0       	ldi	r19, 0x0E	; 14
   10c3e:	89 01       	movw	r16, r18
            // found a newline, prepare the next block if block cache end reached
            if( rdPtr - blockBuffBegin > 512 ){
                // at the end of block cache, fill new data in
                gfUpdateCurrentPosition( rdPtr - start - 1 );
                if( ! gfComputeNextFileBlock() )goto eof_or_fail;
                if( ! gfEnsureBlock() )goto eof_or_fail; // fetch it into RAM
   10c40:	81 11       	cpse	r24, r1
   10c42:	e2 cf       	rjmp	.-60     	; 0x10c08 <get_command()+0x6ba>

}

eof_or_fail:
    // make the rdptr point to a safe location - end of file
    gfReadPtr = gfBlockBuffBegin() + 512;
   10c44:	f0 92 3c 17 	sts	0x173C, r15	; 0x80173c <card+0x2ae>
   10c48:	e0 92 3b 17 	sts	0x173B, r14	; 0x80173b <card+0x2ad>
    return -1;
   10c4c:	0f ef       	ldi	r16, 0xFF	; 255
   10c4e:	1f ef       	ldi	r17, 0xFF	; 255
   10c50:	37 c0       	rjmp	.+110    	; 0x10cc0 <cycle+0xb6>
   10c52:	ba 94       	dec	r11
                gfUpdateCurrentPosition( rdPtr - start - 1 );
                if( ! gfComputeNextFileBlock() )goto eof_or_fail;
                if( ! gfEnsureBlock() )goto eof_or_fail; // fetch it into RAM
                rdPtr = start = blockBuffBegin;
            } else {
                if(consecutiveCommentLines >= 250){
   10c54:	b1 10       	cpse	r11, r1
   10c56:	d5 c0       	rjmp	.+426    	; 0x10e02 <cycle+0x1f8>
                // peek the next byte - we are inside the block at least at 511th index - still safe
                if( *rdPtr == ';' ){
                    // consecutive comment
                    ++consecutiveCommentLines;
                } else {
                    --rdPtr; // unget the already consumed newline
   10c58:	01 50       	subi	r16, 0x01	; 1
   10c5a:	11 09       	sbc	r17, r1
            }
        }
    }
emit_char:
    {
        gfUpdateCurrentPosition( rdPtr - start + 1 );
   10c5c:	c8 01       	movw	r24, r16
   10c5e:	82 1b       	sub	r24, r18
   10c60:	93 0b       	sbc	r25, r19
   10c62:	01 96       	adiw	r24, 0x01	; 1
   10c64:	0f 94 b6 7b 	call	0x2f76c	; 0x2f76c <SdFile::gfUpdateCurrentPosition(unsigned int) [clone .constprop.245]>
        int16_t rv = *rdPtr++;
   10c68:	c8 01       	movw	r24, r16
   10c6a:	01 96       	adiw	r24, 0x01	; 1
   10c6c:	f8 01       	movw	r30, r16
   10c6e:	00 81       	ld	r16, Z
   10c70:	10 e0       	ldi	r17, 0x00	; 0

        if( curPosition_ >= fileSize_ ){
   10c72:	80 90 28 17 	lds	r8, 0x1728	; 0x801728 <card+0x29a>
   10c76:	90 90 29 17 	lds	r9, 0x1729	; 0x801729 <card+0x29b>
   10c7a:	a0 90 2a 17 	lds	r10, 0x172A	; 0x80172a <card+0x29c>
   10c7e:	b0 90 2b 17 	lds	r11, 0x172B	; 0x80172b <card+0x29d>
   10c82:	40 91 31 17 	lds	r20, 0x1731	; 0x801731 <card+0x2a3>
   10c86:	50 91 32 17 	lds	r21, 0x1732	; 0x801732 <card+0x2a4>
   10c8a:	60 91 33 17 	lds	r22, 0x1733	; 0x801733 <card+0x2a5>
   10c8e:	70 91 34 17 	lds	r23, 0x1734	; 0x801734 <card+0x2a6>
   10c92:	84 16       	cp	r8, r20
   10c94:	95 06       	cpc	r9, r21
   10c96:	a6 06       	cpc	r10, r22
   10c98:	b7 06       	cpc	r11, r23
   10c9a:	a0 f6       	brcc	.-88     	; 0x10c44 <cycle+0x3a>
            // past the end of file
            goto eof_or_fail;
        } else if( rdPtr - blockBuffBegin >= 512 ){
   10c9c:	9c 01       	movw	r18, r24
   10c9e:	2d 59       	subi	r18, 0x9D	; 157
   10ca0:	3e 40       	sbci	r19, 0x0E	; 14
   10ca2:	21 15       	cp	r18, r1
   10ca4:	32 40       	sbci	r19, 0x02	; 2
   10ca6:	44 f0       	brlt	.+16     	; 0x10cb8 <cycle+0xae>
            // past the end of current bufferred block - prepare the next one...
            if( ! gfComputeNextFileBlock() )goto eof_or_fail;
   10ca8:	80 e2       	ldi	r24, 0x20	; 32
   10caa:	97 e1       	ldi	r25, 0x17	; 23
   10cac:	0f 94 5b 57 	call	0x2aeb6	; 0x2aeb6 <SdFile::gfComputeNextFileBlock()>
   10cb0:	88 23       	and	r24, r24
   10cb2:	41 f2       	breq	.-112    	; 0x10c44 <cycle+0x3a>
            // don't need to force fetch the block here, it will get loaded on the next call
            rdPtr = blockBuffBegin;
   10cb4:	8d e9       	ldi	r24, 0x9D	; 157
   10cb6:	9e e0       	ldi	r25, 0x0E	; 14
        }

        // save the current read ptr for the next run
        gfReadPtr = rdPtr;
   10cb8:	90 93 3c 17 	sts	0x173C, r25	; 0x80173c <card+0x2ae>
   10cbc:	80 93 3b 17 	sts	0x173B, r24	; 0x80173b <card+0x2ad>
  bool createContiguous(SdBaseFile* dirFile,
          const char* path, uint32_t size);
  /** \return The current cluster number for a file or directory. */
  uint32_t curCluster() const {return curCluster_;}
  /** \return The current position for a file or directory. */
  uint32_t curPosition() const {return curPosition_;}
   10cc0:	40 91 28 17 	lds	r20, 0x1728	; 0x801728 <card+0x29a>
   10cc4:	50 91 29 17 	lds	r21, 0x1729	; 0x801729 <card+0x29b>
   10cc8:	60 91 2a 17 	lds	r22, 0x172A	; 0x80172a <card+0x29c>
   10ccc:	70 91 2b 17 	lds	r23, 0x172B	; 0x80172b <card+0x29d>
  FORCE_INLINE bool isFileOpen() { return file.isOpen(); }
  bool eof() { return sdpos>=filesize; }
  FORCE_INLINE int16_t getFilteredGcodeChar()
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
   10cd0:	40 93 a4 17 	sts	0x17A4, r20	; 0x8017a4 <card+0x316>
   10cd4:	50 93 a5 17 	sts	0x17A5, r21	; 0x8017a5 <card+0x317>
   10cd8:	60 93 a6 17 	sts	0x17A6, r22	; 0x8017a6 <card+0x318>
   10cdc:	70 93 a7 17 	sts	0x17A7, r23	; 0x8017a7 <card+0x319>
   10ce0:	80 91 9e 10 	lds	r24, 0x109E	; 0x80109e <serial_count>
   10ce4:	90 91 9f 10 	lds	r25, 0x109F	; 0x80109f <serial_count+0x1>
    int16_t n=card.getFilteredGcodeChar();
    char serial_char = (char)n;
    if( serial_char == '\n'
   10ce8:	0a 30       	cpi	r16, 0x0A	; 10
   10cea:	61 f0       	breq	.+24     	; 0x10d04 <cycle+0xfa>
     || serial_char == '\r'
   10cec:	0d 30       	cpi	r16, 0x0D	; 13
   10cee:	51 f0       	breq	.+20     	; 0x10d04 <cycle+0xfa>
     || serial_char == '#'
   10cf0:	03 32       	cpi	r16, 0x23	; 35
   10cf2:	09 f4       	brne	.+2      	; 0x10cf6 <cycle+0xec>
   10cf4:	8c c0       	rjmp	.+280    	; 0x10e0e <cycle+0x204>
     || serial_count >= (MAX_CMD_SIZE - 1)
   10cf6:	8f 35       	cpi	r24, 0x5F	; 95
   10cf8:	91 05       	cpc	r25, r1
   10cfa:	3c f4       	brge	.+14     	; 0x10d0a <cycle+0x100>
     || n==-1
   10cfc:	0f 3f       	cpi	r16, 0xFF	; 255
   10cfe:	10 07       	cpc	r17, r16
   10d00:	09 f0       	breq	.+2      	; 0x10d04 <cycle+0xfa>
   10d02:	8c c0       	rjmp	.+280    	; 0x10e1c <cycle+0x212>
    ){
      if(serial_char=='#')
        stop_buffering=true;

      if(!serial_count)
   10d04:	00 97       	sbiw	r24, 0x00	; 0
   10d06:	09 f4       	brne	.+2      	; 0x10d0a <cycle+0x100>
   10d08:	d4 cc       	rjmp	.-1624   	; 0x106b2 <get_command()+0x164>
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
  FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;};
  FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;};
  FORCE_INLINE uint32_t get_sdpos() { if (!isFileOpen()) return 0; else return(sdpos); };
   10d0a:	20 91 23 17 	lds	r18, 0x1723	; 0x801723 <card+0x295>
   10d0e:	21 11       	cpse	r18, r1
   10d10:	03 c0       	rjmp	.+6      	; 0x10d18 <cycle+0x10e>
   10d12:	40 e0       	ldi	r20, 0x00	; 0
   10d14:	50 e0       	ldi	r21, 0x00	; 0
   10d16:	ba 01       	movw	r22, r20
        // to the following non-empty line.
        return; // prevent cycling indefinitely - let manage_heaters do their job
      }
      // The new command buffer could be updated non-atomically, because it is not yet considered
      // to be inside the active queue.
      sd_count.value = card.get_sdpos() - sdpos_atomic;
   10d18:	20 91 82 03 	lds	r18, 0x0382	; 0x800382 <sdpos_atomic>
   10d1c:	30 91 83 03 	lds	r19, 0x0383	; 0x800383 <sdpos_atomic+0x1>
   10d20:	42 1b       	sub	r20, r18
   10d22:	53 0b       	sbc	r21, r19
      cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_SDCARD;
   10d24:	a0 91 a0 10 	lds	r26, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10d28:	b0 91 a1 10 	lds	r27, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10d2c:	fd 01       	movw	r30, r26
   10d2e:	eb 55       	subi	r30, 0x5B	; 91
   10d30:	ff 4e       	sbci	r31, 0xEF	; 239
   10d32:	d0 82       	st	Z, r13
      cmdbuffer[bufindw+1] = sd_count.lohi.lo;
   10d34:	41 83       	std	Z+1, r20	; 0x01
      cmdbuffer[bufindw+2] = sd_count.lohi.hi;
   10d36:	52 83       	std	Z+2, r21	; 0x02
   10d38:	13 96       	adiw	r26, 0x03	; 3
      cmdbuffer[bufindw+serial_count+CMDHDRSIZE] = 0; //terminate string
   10d3a:	8b 55       	subi	r24, 0x5B	; 91
   10d3c:	9f 4e       	sbci	r25, 0xEF	; 239
   10d3e:	fc 01       	movw	r30, r24
   10d40:	ea 0f       	add	r30, r26
   10d42:	fb 1f       	adc	r31, r27
   10d44:	10 82       	st	Z, r1
      // Calculate the length before disabling the interrupts.
      uint8_t len = strlen(cmdbuffer+bufindw+CMDHDRSIZE) + (1 + CMDHDRSIZE);
   10d46:	ab 55       	subi	r26, 0x5B	; 91
   10d48:	bf 4e       	sbci	r27, 0xEF	; 239
   10d4a:	fd 01       	movw	r30, r26
   10d4c:	01 90       	ld	r0, Z+
   10d4e:	00 20       	and	r0, r0
   10d50:	e9 f7       	brne	.-6      	; 0x10d4c <cycle+0x142>
   10d52:	31 97       	sbiw	r30, 0x01	; 1
   10d54:	ea 1b       	sub	r30, r26
   10d56:	fb 0b       	sbc	r31, r27
//      MYSERIAL.print(cmdbuffer);
//      SERIAL_ECHOPGM("buflen:");
//      MYSERIAL.print(buflen+1);
      sd_count.value = 0;

      cli();
   10d58:	f8 94       	cli
      // This block locks the interrupts globally for 3.56 us,
      // which corresponds to a maximum repeat frequency of 280.70 kHz.
      // This blocking is safe in the context of a 10kHz stepper driver interrupt
      // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz.
      ++ buflen;
   10d5a:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   10d5e:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   10d62:	01 96       	adiw	r24, 0x01	; 1
   10d64:	90 93 a4 10 	sts	0x10A4, r25	; 0x8010a4 <buflen+0x1>
   10d68:	80 93 a3 10 	sts	0x10A3, r24	; 0x8010a3 <buflen>
      cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_SDCARD;
      cmdbuffer[bufindw+1] = sd_count.lohi.lo;
      cmdbuffer[bufindw+2] = sd_count.lohi.hi;
      cmdbuffer[bufindw+serial_count+CMDHDRSIZE] = 0; //terminate string
      // Calculate the length before disabling the interrupts.
      uint8_t len = strlen(cmdbuffer+bufindw+CMDHDRSIZE) + (1 + CMDHDRSIZE);
   10d6c:	ec 5f       	subi	r30, 0xFC	; 252
      // This block locks the interrupts globally for 3.56 us,
      // which corresponds to a maximum repeat frequency of 280.70 kHz.
      // This blocking is safe in the context of a 10kHz stepper driver interrupt
      // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz.
      ++ buflen;
      bufindw += len;
   10d6e:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10d72:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10d76:	e8 0f       	add	r30, r24
   10d78:	f9 2f       	mov	r31, r25
   10d7a:	f1 1d       	adc	r31, r1
   10d7c:	f0 93 a1 10 	sts	0x10A1, r31	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10d80:	e0 93 a0 10 	sts	0x10A0, r30	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10d84:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   10d88:	88 23       	and	r24, r24
   10d8a:	09 f4       	brne	.+2      	; 0x10d8e <cycle+0x184>
   10d8c:	43 c0       	rjmp	.+134    	; 0x10e14 <cycle+0x20a>
   10d8e:	80 91 a4 17 	lds	r24, 0x17A4	; 0x8017a4 <card+0x316>
   10d92:	90 91 a5 17 	lds	r25, 0x17A5	; 0x8017a5 <card+0x317>
   10d96:	a0 91 a6 17 	lds	r26, 0x17A6	; 0x8017a6 <card+0x318>
   10d9a:	b0 91 a7 17 	lds	r27, 0x17A7	; 0x8017a7 <card+0x319>
      sdpos_atomic = card.get_sdpos();
   10d9e:	80 93 82 03 	sts	0x0382, r24	; 0x800382 <sdpos_atomic>
   10da2:	90 93 83 03 	sts	0x0383, r25	; 0x800383 <sdpos_atomic+0x1>
   10da6:	a0 93 84 03 	sts	0x0384, r26	; 0x800384 <sdpos_atomic+0x2>
   10daa:	b0 93 85 03 	sts	0x0385, r27	; 0x800385 <sdpos_atomic+0x3>
      if (bufindw == sizeof(cmdbuffer))
   10dae:	ed 3e       	cpi	r30, 0xED	; 237
   10db0:	f1 40       	sbci	r31, 0x01	; 1
   10db2:	21 f4       	brne	.+8      	; 0x10dbc <cycle+0x1b2>
          bufindw = 0;
   10db4:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10db8:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
      sei();
   10dbc:	78 94       	sei

      comment_mode = false; //for new command
   10dbe:	10 92 45 03 	sts	0x0345, r1	; 0x800345 <comment_mode>
      serial_count = 0; //clear buffer
   10dc2:	10 92 9f 10 	sts	0x109F, r1	; 0x80109f <serial_count+0x1>
   10dc6:	10 92 9e 10 	sts	0x109E, r1	; 0x80109e <serial_count>

      if(card.eof()) break;
   10dca:	40 91 a4 17 	lds	r20, 0x17A4	; 0x8017a4 <card+0x316>
   10dce:	50 91 a5 17 	lds	r21, 0x17A5	; 0x8017a5 <card+0x317>
   10dd2:	60 91 a6 17 	lds	r22, 0x17A6	; 0x8017a6 <card+0x318>
   10dd6:	70 91 a7 17 	lds	r23, 0x17A7	; 0x8017a7 <card+0x319>
   10dda:	80 91 9d 17 	lds	r24, 0x179D	; 0x80179d <card+0x30f>
   10dde:	90 91 9e 17 	lds	r25, 0x179E	; 0x80179e <card+0x310>
   10de2:	a0 91 9f 17 	lds	r26, 0x179F	; 0x80179f <card+0x311>
   10de6:	b0 91 a0 17 	lds	r27, 0x17A0	; 0x8017a0 <card+0x312>
   10dea:	48 17       	cp	r20, r24
   10dec:	59 07       	cpc	r21, r25
   10dee:	6a 07       	cpc	r22, r26
   10df0:	7b 07       	cpc	r23, r27
   10df2:	30 f5       	brcc	.+76     	; 0x10e40 <cycle+0x236>

      // The following line will reserve buffer space if available.
      if (! cmdqueue_could_enqueue_back(MAX_CMD_SIZE-1))
   10df4:	8f e5       	ldi	r24, 0x5F	; 95
   10df6:	90 e0       	ldi	r25, 0x00	; 0
   10df8:	0e 94 c9 5b 	call	0xb792	; 0xb792 <cmdqueue_could_enqueue_back(unsigned int)>
   10dfc:	81 11       	cpse	r24, r1
   10dfe:	db ce       	rjmp	.-586    	; 0x10bb6 <get_command()+0x668>
   10e00:	58 cc       	rjmp	.-1872   	; 0x106b2 <get_command()+0x164>
                if(consecutiveCommentLines >= 250){
                    --rdPtr; // unget the already consumed newline
                    goto emit_char;
                }
                // peek the next byte - we are inside the block at least at 511th index - still safe
                if( *rdPtr == ';' ){
   10e02:	f8 01       	movw	r30, r16
   10e04:	80 81       	ld	r24, Z
   10e06:	8b 33       	cpi	r24, 0x3B	; 59
   10e08:	09 f4       	brne	.+2      	; 0x10e0c <cycle+0x202>
   10e0a:	fa ce       	rjmp	.-524    	; 0x10c00 <get_command()+0x6b2>
   10e0c:	25 cf       	rjmp	.-438    	; 0x10c58 <cycle+0x4e>
     || serial_char == '#'
     || serial_count >= (MAX_CMD_SIZE - 1)
     || n==-1
    ){
      if(serial_char=='#')
        stop_buffering=true;
   10e0e:	c0 92 44 03 	sts	0x0344, r12	; 0x800344 <get_command()::stop_buffering>
   10e12:	78 cf       	rjmp	.-272    	; 0x10d04 <cycle+0xfa>
   10e14:	80 e0       	ldi	r24, 0x00	; 0
   10e16:	90 e0       	ldi	r25, 0x00	; 0
   10e18:	dc 01       	movw	r26, r24
   10e1a:	c1 cf       	rjmp	.-126    	; 0x10d9e <cycle+0x194>
          return;
    }
    else
    {
        // there are no comments coming from the filtered file
        cmdbuffer[bufindw+CMDHDRSIZE+serial_count++] = serial_char;
   10e1c:	9c 01       	movw	r18, r24
   10e1e:	2f 5f       	subi	r18, 0xFF	; 255
   10e20:	3f 4f       	sbci	r19, 0xFF	; 255
   10e22:	30 93 9f 10 	sts	0x109F, r19	; 0x80109f <serial_count+0x1>
   10e26:	20 93 9e 10 	sts	0x109E, r18	; 0x80109e <serial_count>
   10e2a:	20 91 a0 10 	lds	r18, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10e2e:	30 91 a1 10 	lds	r19, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10e32:	2b 55       	subi	r18, 0x5B	; 91
   10e34:	3f 4e       	sbci	r19, 0xEF	; 239
   10e36:	82 0f       	add	r24, r18
   10e38:	93 1f       	adc	r25, r19
   10e3a:	fc 01       	movw	r30, r24
   10e3c:	03 83       	std	Z+3, r16	; 0x03
   10e3e:	bb ce       	rjmp	.-650    	; 0x10bb6 <get_command()+0x668>
    }
  }
  if(card.eof())
   10e40:	40 91 a4 17 	lds	r20, 0x17A4	; 0x8017a4 <card+0x316>
   10e44:	50 91 a5 17 	lds	r21, 0x17A5	; 0x8017a5 <card+0x317>
   10e48:	60 91 a6 17 	lds	r22, 0x17A6	; 0x8017a6 <card+0x318>
   10e4c:	70 91 a7 17 	lds	r23, 0x17A7	; 0x8017a7 <card+0x319>
   10e50:	80 91 9d 17 	lds	r24, 0x179D	; 0x80179d <card+0x30f>
   10e54:	90 91 9e 17 	lds	r25, 0x179E	; 0x80179e <card+0x310>
   10e58:	a0 91 9f 17 	lds	r26, 0x179F	; 0x80179f <card+0x311>
   10e5c:	b0 91 a0 17 	lds	r27, 0x17A0	; 0x8017a0 <card+0x312>
   10e60:	48 17       	cp	r20, r24
   10e62:	59 07       	cpc	r21, r25
   10e64:	6a 07       	cpc	r22, r26
   10e66:	7b 07       	cpc	r23, r27
   10e68:	08 f4       	brcc	.+2      	; 0x10e6c <cycle+0x262>
   10e6a:	23 cc       	rjmp	.-1978   	; 0x106b2 <get_command()+0x164>
  {
      // file was fully buffered, but commands might still need to be planned!
      // do *not* clear sdprinting until all SD commands are consumed to ensure
      // SD state can be resumed from a saved printing state. sdprinting is only
      // cleared by printingHasFinished after peforming all remaining moves.
      if(!cmdqueue_calc_sd_length())
   10e6c:	0e 94 9a 5a 	call	0xb534	; 0xb534 <cmdqueue_calc_sd_length()>
   10e70:	89 2b       	or	r24, r25
   10e72:	09 f0       	breq	.+2      	; 0x10e76 <cycle+0x26c>
   10e74:	1e cc       	rjmp	.-1988   	; 0x106b2 <get_command()+0x164>
    lastnr++;
}

void CardReader::closefile(bool store_location)
{
  file.sync();
   10e76:	80 e2       	ldi	r24, 0x20	; 32
   10e78:	97 e1       	ldi	r25, 0x17	; 23
   10e7a:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
  file.close();
   10e7e:	80 e2       	ldi	r24, 0x20	; 32
   10e80:	97 e1       	ldi	r25, 0x17	; 23
   10e82:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
  saving = false;
   10e86:	10 92 8e 14 	sts	0x148E, r1	; 0x80148e <card>
  logging = false;
   10e8a:	10 92 8f 14 	sts	0x148F, r1	; 0x80148f <card+0x1>
      {
          // queue is complete, but before we process EOF commands prevent
          // re-entry by disabling SD processing from any st_synchronize call
          card.closefile();

          SERIAL_PROTOCOLLNRPGM(_n("Done printing file"));////MSG_FILE_PRINTED
   10e8e:	82 e0       	ldi	r24, 0x02	; 2
   10e90:	94 e6       	ldi	r25, 0x64	; 100
   10e92:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
          char time[30];
          uint32_t t = print_job_timer.duration() / 60;
   10e96:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   10e9a:	6b 01       	movw	r12, r22
   10e9c:	7c 01       	movw	r14, r24
          int hours, minutes;
          minutes = t % 60;
          hours = t / 60;
          save_statistics();
   10e9e:	0e 94 a6 65 	call	0xcb4c	; 0xcb4c <save_statistics()>
          // re-entry by disabling SD processing from any st_synchronize call
          card.closefile();

          SERIAL_PROTOCOLLNRPGM(_n("Done printing file"));////MSG_FILE_PRINTED
          char time[30];
          uint32_t t = print_job_timer.duration() / 60;
   10ea2:	8c e3       	ldi	r24, 0x3C	; 60
   10ea4:	88 2e       	mov	r8, r24
   10ea6:	91 2c       	mov	r9, r1
   10ea8:	a1 2c       	mov	r10, r1
   10eaa:	b1 2c       	mov	r11, r1
   10eac:	c7 01       	movw	r24, r14
   10eae:	b6 01       	movw	r22, r12
   10eb0:	a5 01       	movw	r20, r10
   10eb2:	94 01       	movw	r18, r8
   10eb4:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
          int hours, minutes;
          minutes = t % 60;
   10eb8:	ca 01       	movw	r24, r20
   10eba:	b9 01       	movw	r22, r18
   10ebc:	a5 01       	movw	r20, r10
   10ebe:	94 01       	movw	r18, r8
   10ec0:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
          hours = t / 60;
          save_statistics();
          sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes);
   10ec4:	7f 93       	push	r23
   10ec6:	6f 93       	push	r22
          SERIAL_PROTOCOLLNRPGM(_n("Done printing file"));////MSG_FILE_PRINTED
          char time[30];
          uint32_t t = print_job_timer.duration() / 60;
          int hours, minutes;
          minutes = t % 60;
          hours = t / 60;
   10ec8:	c7 01       	movw	r24, r14
   10eca:	b6 01       	movw	r22, r12
   10ecc:	20 e1       	ldi	r18, 0x10	; 16
   10ece:	3e e0       	ldi	r19, 0x0E	; 14
   10ed0:	40 e0       	ldi	r20, 0x00	; 0
   10ed2:	50 e0       	ldi	r21, 0x00	; 0
   10ed4:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
          save_statistics();
          sprintf_P(time, PSTR("%i hours %i minutes"),hours, minutes);
   10ed8:	3f 93       	push	r19
   10eda:	2f 93       	push	r18
   10edc:	80 ec       	ldi	r24, 0xC0	; 192
   10ede:	96 e7       	ldi	r25, 0x76	; 118
   10ee0:	9f 93       	push	r25
   10ee2:	8f 93       	push	r24
   10ee4:	8e 01       	movw	r16, r28
   10ee6:	0f 5f       	subi	r16, 0xFF	; 255
   10ee8:	1f 4f       	sbci	r17, 0xFF	; 255
   10eea:	1f 93       	push	r17
   10eec:	0f 93       	push	r16
   10eee:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
          SERIAL_ECHO_START;
   10ef2:	80 ed       	ldi	r24, 0xD0	; 208
   10ef4:	9a ea       	ldi	r25, 0xAA	; 170
   10ef6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOLN(time);
   10efa:	c8 01       	movw	r24, r16
   10efc:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
#ifndef SHOW_FILENAME_AFTER_FINISH
          lcd_setstatus(time);
   10f00:	c8 01       	movw	r24, r16
   10f02:	0e 94 6e f5 	call	0x1eadc	; 0x1eadc <lcd_setstatus(char const*)>
#endif //SHOW_FILENAME_AFTER_FINISH
          card.printingHasFinished();
   10f06:	0f 94 c5 81 	call	0x3038a	; 0x3038a <CardReader::printingHasFinished() [clone .constprop.220]>
    if(!autostart_stilltocheck)
      return;
    if(autostart_atmillis.expired(5000))
      return;
  }
  autostart_stilltocheck = false;
   10f0a:	10 92 69 02 	sts	0x0269, r1	; 0x800269 <_ZZN10CardReader14checkautostartEbE22autostart_stilltocheck.lto_priv.553>
  if(!mounted)
   10f0e:	0f b6       	in	r0, 0x3f	; 63
   10f10:	f8 94       	cli
   10f12:	de bf       	out	0x3e, r29	; 62
   10f14:	0f be       	out	0x3f, r0	; 63
   10f16:	cd bf       	out	0x3d, r28	; 61
   10f18:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   10f1c:	88 23       	and	r24, r24
   10f1e:	19 f0       	breq	.+6      	; 0x10f26 <cycle+0x31c>
   10f20:	0f 94 f9 76 	call	0x2edf2	; 0x2edf2 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]>
   10f24:	c6 cb       	rjmp	.-2164   	; 0x106b2 <get_command()+0x164>
  {
    mount();
   10f26:	81 e0       	ldi	r24, 0x01	; 1
   10f28:	0f 94 04 82 	call	0x30408	; 0x30408 <CardReader::mount(bool) [clone .constprop.216]>
    if(!mounted) //fail
   10f2c:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   10f30:	81 11       	cpse	r24, r1
   10f32:	f6 cf       	rjmp	.-20     	; 0x10f20 <cycle+0x316>
   10f34:	be cb       	rjmp	.-2180   	; 0x106b2 <get_command()+0x164>

00010f36 <MarlinSerial::write(char const*)>:
    static void printFloat(double, uint8_t);


  public:

    static /*FORCE_INLINE*/ void write(const char *str)
   10f36:	cf 93       	push	r28
   10f38:	df 93       	push	r29
   10f3a:	ec 01       	movw	r28, r24
    {
      while (*str)
   10f3c:	89 91       	ld	r24, Y+
   10f3e:	88 23       	and	r24, r24
   10f40:	19 f0       	breq	.+6      	; 0x10f48 <MarlinSerial::write(char const*)+0x12>
        write(*str++);
   10f42:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
   10f46:	fa cf       	rjmp	.-12     	; 0x10f3c <MarlinSerial::write(char const*)+0x6>
    }
   10f48:	df 91       	pop	r29
   10f4a:	cf 91       	pop	r28
   10f4c:	08 95       	ret

00010f4e <enquecommand(char const*, bool)>:
//adds an command to the main command buffer
//thats really done in a non-safe way.
//needs overworking someday
// Currently the maximum length of a command piped through this function is around 20 characters
void enquecommand(const char *cmd, bool from_progmem)
{
   10f4e:	ff 92       	push	r15
   10f50:	0f 93       	push	r16
   10f52:	1f 93       	push	r17
   10f54:	cf 93       	push	r28
   10f56:	df 93       	push	r29
   10f58:	ec 01       	movw	r28, r24
   10f5a:	f6 2e       	mov	r15, r22
    size_t len = from_progmem ? strlen_P(cmd) : strlen(cmd);
   10f5c:	66 23       	and	r22, r22
   10f5e:	09 f4       	brne	.+2      	; 0x10f62 <enquecommand(char const*, bool)+0x14>
   10f60:	4b c0       	rjmp	.+150    	; 0x10ff8 <enquecommand(char const*, bool)+0xaa>
#else
extern size_t __strlen_P(const char *) __ATTR_CONST__;  /* internal helper function */
__attribute__((__always_inline__)) static __inline__ size_t strlen_P(const char * s);
static __inline__ size_t strlen_P(const char *s) {
  return __builtin_constant_p(__builtin_strlen(s))
     ? __builtin_strlen(s) : __strlen_P(s);
   10f62:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
   10f66:	8c 01       	movw	r16, r24
    // Does cmd fit the queue while leaving sufficient space at the front for the chained commands?
    // If it fits, it may move bufindw, so it points to a contiguous buffer, which fits cmd.
    if (cmdqueue_could_enqueue_back(len)) {
   10f68:	c8 01       	movw	r24, r16
   10f6a:	0e 94 c9 5b 	call	0xb792	; 0xb792 <cmdqueue_could_enqueue_back(unsigned int)>
   10f6e:	88 23       	and	r24, r24
   10f70:	09 f4       	brne	.+2      	; 0x10f74 <enquecommand(char const*, bool)+0x26>
   10f72:	53 c0       	rjmp	.+166    	; 0x1101a <enquecommand(char const*, bool)+0xcc>
        // This is dangerous if a mixing of serial and this happens
        // This may easily be tested: If serial_count > 0, we have a problem.
        cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_UI;
   10f74:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10f78:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10f7c:	fc 01       	movw	r30, r24
   10f7e:	eb 55       	subi	r30, 0x5B	; 91
   10f80:	ff 4e       	sbci	r31, 0xEF	; 239
   10f82:	23 e0       	ldi	r18, 0x03	; 3
   10f84:	20 83       	st	Z, r18
   10f86:	88 55       	subi	r24, 0x58	; 88
   10f88:	9f 4e       	sbci	r25, 0xEF	; 239
        if (from_progmem)
            strcpy_P(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
   10f8a:	be 01       	movw	r22, r28
    // If it fits, it may move bufindw, so it points to a contiguous buffer, which fits cmd.
    if (cmdqueue_could_enqueue_back(len)) {
        // This is dangerous if a mixing of serial and this happens
        // This may easily be tested: If serial_count > 0, we have a problem.
        cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_UI;
        if (from_progmem)
   10f8c:	ff 20       	and	r15, r15
   10f8e:	e9 f1       	breq	.+122    	; 0x1100a <enquecommand(char const*, bool)+0xbc>
            strcpy_P(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
   10f90:	0f 94 12 da 	call	0x3b424	; 0x3b424 <strcpy_P>
        else
            strcpy(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
        SERIAL_ECHO_START;
   10f94:	80 ed       	ldi	r24, 0xD0	; 208
   10f96:	9a ea       	ldi	r25, 0xAA	; 170
   10f98:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(MSG_Enqueing);
   10f9c:	87 ef       	ldi	r24, 0xF7	; 247
   10f9e:	93 e6       	ldi	r25, 0x63	; 99
   10fa0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHO(cmdbuffer + bufindw + CMDHDRSIZE);
   10fa4:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10fa8:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
      }
    }*/

    static FORCE_INLINE void print(const char *str)
    {
      write(str);
   10fac:	88 55       	subi	r24, 0x58	; 88
   10fae:	9f 4e       	sbci	r25, 0xEF	; 239
   10fb0:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
        SERIAL_ECHOLNPGM("\"");
   10fb4:	8e e9       	ldi	r24, 0x9E	; 158
   10fb6:	96 e7       	ldi	r25, 0x76	; 118
   10fb8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        bufindw += len + (CMDHDRSIZE + 1);
   10fbc:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   10fc0:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10fc4:	04 96       	adiw	r24, 0x04	; 4
   10fc6:	08 0f       	add	r16, r24
   10fc8:	19 1f       	adc	r17, r25
        if (bufindw == sizeof(cmdbuffer))
   10fca:	0d 3e       	cpi	r16, 0xED	; 237
   10fcc:	81 e0       	ldi	r24, 0x01	; 1
   10fce:	18 07       	cpc	r17, r24
   10fd0:	f9 f0       	breq	.+62     	; 0x11010 <enquecommand(char const*, bool)+0xc2>
            strcpy(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
        SERIAL_ECHO_START;
        SERIAL_ECHORPGM(MSG_Enqueing);
        SERIAL_ECHO(cmdbuffer + bufindw + CMDHDRSIZE);
        SERIAL_ECHOLNPGM("\"");
        bufindw += len + (CMDHDRSIZE + 1);
   10fd2:	10 93 a1 10 	sts	0x10A1, r17	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   10fd6:	00 93 a0 10 	sts	0x10A0, r16	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
        if (bufindw == sizeof(cmdbuffer))
            bufindw = 0;
        ++ buflen;
   10fda:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   10fde:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   10fe2:	01 96       	adiw	r24, 0x01	; 1
   10fe4:	90 93 a4 10 	sts	0x10A4, r25	; 0x8010a4 <buflen+0x1>
   10fe8:	80 93 a3 10 	sts	0x10A3, r24	; 0x8010a3 <buflen>
        SERIAL_ECHOLNRPGM(bufferFull);
#ifdef CMDBUFFER_DEBUG
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    }
}
   10fec:	df 91       	pop	r29
   10fee:	cf 91       	pop	r28
   10ff0:	1f 91       	pop	r17
   10ff2:	0f 91       	pop	r16
   10ff4:	ff 90       	pop	r15
   10ff6:	08 95       	ret
//thats really done in a non-safe way.
//needs overworking someday
// Currently the maximum length of a command piped through this function is around 20 characters
void enquecommand(const char *cmd, bool from_progmem)
{
    size_t len = from_progmem ? strlen_P(cmd) : strlen(cmd);
   10ff8:	fc 01       	movw	r30, r24
   10ffa:	01 90       	ld	r0, Z+
   10ffc:	00 20       	and	r0, r0
   10ffe:	e9 f7       	brne	.-6      	; 0x10ffa <enquecommand(char const*, bool)+0xac>
   11000:	31 97       	sbiw	r30, 0x01	; 1
   11002:	8f 01       	movw	r16, r30
   11004:	08 1b       	sub	r16, r24
   11006:	19 0b       	sbc	r17, r25
   11008:	af cf       	rjmp	.-162    	; 0x10f68 <enquecommand(char const*, bool)+0x1a>
        // This may easily be tested: If serial_count > 0, we have a problem.
        cmdbuffer[bufindw] = CMDBUFFER_CURRENT_TYPE_UI;
        if (from_progmem)
            strcpy_P(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
        else
            strcpy(cmdbuffer + bufindw + CMDHDRSIZE, cmd);
   1100a:	0f 94 c6 e2 	call	0x3c58c	; 0x3c58c <strcpy>
   1100e:	c2 cf       	rjmp	.-124    	; 0x10f94 <enquecommand(char const*, bool)+0x46>
        SERIAL_ECHORPGM(MSG_Enqueing);
        SERIAL_ECHO(cmdbuffer + bufindw + CMDHDRSIZE);
        SERIAL_ECHOLNPGM("\"");
        bufindw += len + (CMDHDRSIZE + 1);
        if (bufindw == sizeof(cmdbuffer))
            bufindw = 0;
   11010:	10 92 a1 10 	sts	0x10A1, r1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   11014:	10 92 a0 10 	sts	0x10A0, r1	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   11018:	e0 cf       	rjmp	.-64     	; 0x10fda <enquecommand(char const*, bool)+0x8c>
        ++ buflen;
#ifdef CMDBUFFER_DEBUG
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    } else {
        SERIAL_ERROR_START;
   1101a:	88 ea       	ldi	r24, 0xA8	; 168
   1101c:	9a ea       	ldi	r25, 0xAA	; 170
   1101e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(MSG_Enqueing);
   11022:	87 ef       	ldi	r24, 0xF7	; 247
   11024:	93 e6       	ldi	r25, 0x63	; 99
   11026:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if (from_progmem)
            SERIAL_PROTOCOLRPGM(cmd);
   1102a:	ce 01       	movw	r24, r28
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    } else {
        SERIAL_ERROR_START;
        SERIAL_ECHORPGM(MSG_Enqueing);
        if (from_progmem)
   1102c:	ff 20       	and	r15, r15
   1102e:	59 f0       	breq	.+22     	; 0x11046 <enquecommand(char const*, bool)+0xf8>
            SERIAL_PROTOCOLRPGM(cmd);
   11030:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        else
            SERIAL_ECHO(cmd);
        SERIAL_ECHOLNRPGM(bufferFull);
   11034:	81 e9       	ldi	r24, 0x91	; 145
   11036:	9a ea       	ldi	r25, 0xAA	; 170
#ifdef CMDBUFFER_DEBUG
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    }
}
   11038:	df 91       	pop	r29
   1103a:	cf 91       	pop	r28
   1103c:	1f 91       	pop	r17
   1103e:	0f 91       	pop	r16
   11040:	ff 90       	pop	r15
        SERIAL_ECHORPGM(MSG_Enqueing);
        if (from_progmem)
            SERIAL_PROTOCOLRPGM(cmd);
        else
            SERIAL_ECHO(cmd);
        SERIAL_ECHOLNRPGM(bufferFull);
   11042:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   11046:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   1104a:	f4 cf       	rjmp	.-24     	; 0x11034 <enquecommand(char const*, bool)+0xe6>

0001104c <lay1cal_common_enqueue_loop(char const* const*, unsigned char) [clone .lto_priv.436]>:
{
    return extrusion_width - layer_height * (overlap_factor - M_PI/4);
}

// Common code extracted into one function to reduce code size
static void lay1cal_common_enqueue_loop(const char * const * cmd_sequence, const uint8_t steps) {
   1104c:	0f 93       	push	r16
   1104e:	1f 93       	push	r17
   11050:	cf 93       	push	r28
   11052:	df 93       	push	r29
   11054:	d6 2f       	mov	r29, r22
   11056:	8c 01       	movw	r16, r24
    for (uint8_t i = 0; i < steps; ++i)
   11058:	c0 e0       	ldi	r28, 0x00	; 0
    {
        void * const pgm_ptr = pgm_read_ptr(cmd_sequence + i);
   1105a:	f8 01       	movw	r30, r16
   1105c:	85 91       	lpm	r24, Z+
   1105e:	94 91       	lpm	r25, Z

        // M702 is currently only used with MMU enabled
        if (pgm_ptr == MSG_M702 && !MMU2::mmu2.Enabled()) {
   11060:	2b e6       	ldi	r18, 0x6B	; 107
   11062:	87 33       	cpi	r24, 0x37	; 55
   11064:	92 07       	cpc	r25, r18
   11066:	21 f4       	brne	.+8      	; 0x11070 <lay1cal_common_enqueue_loop(char const* const*, unsigned char) [clone .lto_priv.436]+0x24>
   11068:	20 91 ba 13 	lds	r18, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1106c:	21 30       	cpi	r18, 0x01	; 1
   1106e:	19 f4       	brne	.+6      	; 0x11076 <lay1cal_common_enqueue_loop(char const* const*, unsigned char) [clone .lto_priv.436]+0x2a>
            continue;
        }

        enquecommand_P(static_cast<char*>(pgm_ptr));
   11070:	61 e0       	ldi	r22, 0x01	; 1
   11072:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    return extrusion_width - layer_height * (overlap_factor - M_PI/4);
}

// Common code extracted into one function to reduce code size
static void lay1cal_common_enqueue_loop(const char * const * cmd_sequence, const uint8_t steps) {
    for (uint8_t i = 0; i < steps; ++i)
   11076:	cf 5f       	subi	r28, 0xFF	; 255
   11078:	0e 5f       	subi	r16, 0xFE	; 254
   1107a:	1f 4f       	sbci	r17, 0xFF	; 255
   1107c:	dc 13       	cpse	r29, r28
   1107e:	ed cf       	rjmp	.-38     	; 0x1105a <lay1cal_common_enqueue_loop(char const* const*, unsigned char) [clone .lto_priv.436]+0xe>
            continue;
        }

        enquecommand_P(static_cast<char*>(pgm_ptr));
    }
}
   11080:	df 91       	pop	r29
   11082:	cf 91       	pop	r28
   11084:	1f 91       	pop	r17
   11086:	0f 91       	pop	r16
   11088:	08 95       	ret

0001108a <enquecommandf_P(char const*, ...)>:
static const char bufferFull[] PROGMEM = "\" failed: Buffer full!";
static const char enqueingFront[] PROGMEM = "Enqueing to the front: \"";


void enquecommandf_P(const char *fmt, ...)
{
   1108a:	cf 93       	push	r28
   1108c:	df 93       	push	r29
   1108e:	cd b7       	in	r28, 0x3d	; 61
   11090:	de b7       	in	r29, 0x3e	; 62
   11092:	6e 97       	sbiw	r28, 0x1e	; 30
   11094:	0f b6       	in	r0, 0x3f	; 63
   11096:	f8 94       	cli
   11098:	de bf       	out	0x3e, r29	; 62
   1109a:	0f be       	out	0x3f, r0	; 63
   1109c:	cd bf       	out	0x3d, r28	; 61
   1109e:	9e 01       	movw	r18, r28
   110a0:	2c 5d       	subi	r18, 0xDC	; 220
   110a2:	3f 4f       	sbci	r19, 0xFF	; 255
   110a4:	f9 01       	movw	r30, r18
   110a6:	41 91       	ld	r20, Z+
   110a8:	51 91       	ld	r21, Z+
   110aa:	9f 01       	movw	r18, r30
    // MAX_CMD_SIZE is 96, but for formatting
    // string we usually don't need more than 30 bytes
    char cmd_buffer[30];
    va_list ap;
    va_start(ap, fmt);
    vsnprintf_P(cmd_buffer, sizeof(cmd_buffer), fmt, ap);
   110ac:	6e e1       	ldi	r22, 0x1E	; 30
   110ae:	70 e0       	ldi	r23, 0x00	; 0
   110b0:	ce 01       	movw	r24, r28
   110b2:	01 96       	adiw	r24, 0x01	; 1
   110b4:	0f 94 b1 db 	call	0x3b762	; 0x3b762 <vsnprintf_P>
    va_end(ap);

    enquecommand(cmd_buffer, false);
   110b8:	60 e0       	ldi	r22, 0x00	; 0
   110ba:	ce 01       	movw	r24, r28
   110bc:	01 96       	adiw	r24, 0x01	; 1
   110be:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
}
   110c2:	6e 96       	adiw	r28, 0x1e	; 30
   110c4:	0f b6       	in	r0, 0x3f	; 63
   110c6:	f8 94       	cli
   110c8:	de bf       	out	0x3e, r29	; 62
   110ca:	0f be       	out	0x3f, r0	; 63
   110cc:	cd bf       	out	0x3d, r28	; 61
   110ce:	df 91       	pop	r29
   110d0:	cf 91       	pop	r28
   110d2:	08 95       	ret

000110d4 <restore_file_from_sd()>:
  }
}

/// @brief Read saved filename from EEPROM and send g-code command: M23 <filename>
void restore_file_from_sd()
{
   110d4:	ef 92       	push	r14
   110d6:	ff 92       	push	r15
   110d8:	0f 93       	push	r16
   110da:	1f 93       	push	r17
   110dc:	cf 93       	push	r28
   110de:	df 93       	push	r29
   110e0:	cd b7       	in	r28, 0x3d	; 61
   110e2:	de b7       	in	r29, 0x3e	; 62
   110e4:	6b 97       	sbiw	r28, 0x1b	; 27
   110e6:	0f b6       	in	r0, 0x3f	; 63
   110e8:	f8 94       	cli
   110ea:	de bf       	out	0x3e, r29	; 62
   110ec:	0f be       	out	0x3f, r0	; 63
   110ee:	cd bf       	out	0x3d, r28	; 61
    char filename[FILENAME_LENGTH];
    char dir_name[9];
    char extension_ptr[5];
    uint8_t depth = eeprom_read_byte((uint8_t*)EEPROM_DIR_DEPTH);
   110f0:	8a e5       	ldi	r24, 0x5A	; 90
   110f2:	9f e0       	ldi	r25, 0x0F	; 15
   110f4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   110f8:	e8 2e       	mov	r14, r24
   110fa:	0a e0       	ldi	r16, 0x0A	; 10
   110fc:	1f e0       	ldi	r17, 0x0F	; 15

    for (uint8_t i = 0; i < depth; i++) {
   110fe:	f1 2c       	mov	r15, r1
        card.chdir(dir_name, false);
    }

    // Recover DOS 8.3 filename without extension.
    // Short filenames are always null terminated.
    eeprom_read_block(filename, (const char *)EEPROM_FILENAME, 8);
   11100:	48 e0       	ldi	r20, 0x08	; 8
   11102:	50 e0       	ldi	r21, 0x00	; 0
    char filename[FILENAME_LENGTH];
    char dir_name[9];
    char extension_ptr[5];
    uint8_t depth = eeprom_read_byte((uint8_t*)EEPROM_DIR_DEPTH);

    for (uint8_t i = 0; i < depth; i++) {
   11104:	fe 14       	cp	r15, r14
   11106:	79 f0       	breq	.+30     	; 0x11126 <restore_file_from_sd()+0x52>
        eeprom_read_block(dir_name, (const char *)EEPROM_DIRS + 8 * i, 8);
   11108:	b8 01       	movw	r22, r16
   1110a:	ce 01       	movw	r24, r28
   1110c:	0e 96       	adiw	r24, 0x0e	; 14
   1110e:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
        dir_name[8] = '\0';
   11112:	1e 8a       	std	Y+22, r1	; 0x16
        card.chdir(dir_name, false);
   11114:	60 e0       	ldi	r22, 0x00	; 0
   11116:	ce 01       	movw	r24, r28
   11118:	0e 96       	adiw	r24, 0x0e	; 14
   1111a:	0f 94 56 7f 	call	0x2feac	; 0x2feac <CardReader::chdir(char const*, bool) [clone .constprop.224]>
    char filename[FILENAME_LENGTH];
    char dir_name[9];
    char extension_ptr[5];
    uint8_t depth = eeprom_read_byte((uint8_t*)EEPROM_DIR_DEPTH);

    for (uint8_t i = 0; i < depth; i++) {
   1111e:	f3 94       	inc	r15
   11120:	08 5f       	subi	r16, 0xF8	; 248
   11122:	1f 4f       	sbci	r17, 0xFF	; 255
   11124:	ed cf       	rjmp	.-38     	; 0x11100 <restore_file_from_sd()+0x2c>
        card.chdir(dir_name, false);
    }

    // Recover DOS 8.3 filename without extension.
    // Short filenames are always null terminated.
    eeprom_read_block(filename, (const char *)EEPROM_FILENAME, 8);
   11126:	65 e9       	ldi	r22, 0x95	; 149
   11128:	7f e0       	ldi	r23, 0x0F	; 15
   1112a:	8e 01       	movw	r16, r28
   1112c:	0f 5f       	subi	r16, 0xFF	; 255
   1112e:	1f 4f       	sbci	r17, 0xFF	; 255
   11130:	c8 01       	movw	r24, r16
   11132:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>

    // Add null delimiter in case all 8 characters were not NULL
    filename[8] = '\0';
   11136:	19 86       	std	Y+9, r1	; 0x09

    // Add extension to complete the DOS 8.3 filename e.g. ".gco" or ".g"
    extension_ptr[0] = '.';
   11138:	8e e2       	ldi	r24, 0x2E	; 46
   1113a:	8f 8b       	std	Y+23, r24	; 0x17
    eeprom_read_block(&extension_ptr[1], (const char *)EEPROM_FILENAME_EXTENSION, 3);
   1113c:	43 e0       	ldi	r20, 0x03	; 3
   1113e:	50 e0       	ldi	r21, 0x00	; 0
   11140:	61 e9       	ldi	r22, 0x91	; 145
   11142:	7c e0       	ldi	r23, 0x0C	; 12
   11144:	ce 01       	movw	r24, r28
   11146:	48 96       	adiw	r24, 0x18	; 24
   11148:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    extension_ptr[4] = '\0';
   1114c:	1b 8e       	std	Y+27, r1	; 0x1b
    strcat(filename, extension_ptr);
   1114e:	be 01       	movw	r22, r28
   11150:	69 5e       	subi	r22, 0xE9	; 233
   11152:	7f 4f       	sbci	r23, 0xFF	; 255
   11154:	c8 01       	movw	r24, r16
   11156:	0f 94 a7 e2 	call	0x3c54e	; 0x3c54e <strcat>

    enquecommandf_P(MSG_M23, filename);
   1115a:	1f 93       	push	r17
   1115c:	0f 93       	push	r16
   1115e:	81 e5       	ldi	r24, 0x51	; 81
   11160:	90 e7       	ldi	r25, 0x70	; 112
   11162:	9f 93       	push	r25
   11164:	8f 93       	push	r24
   11166:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   1116a:	0f 90       	pop	r0
   1116c:	0f 90       	pop	r0
   1116e:	0f 90       	pop	r0
   11170:	0f 90       	pop	r0
}
   11172:	6b 96       	adiw	r28, 0x1b	; 27
   11174:	0f b6       	in	r0, 0x3f	; 63
   11176:	f8 94       	cli
   11178:	de bf       	out	0x3e, r29	; 62
   1117a:	0f be       	out	0x3f, r0	; 63
   1117c:	cd bf       	out	0x3d, r28	; 61
   1117e:	df 91       	pop	r29
   11180:	cf 91       	pop	r28
   11182:	1f 91       	pop	r17
   11184:	0f 91       	pop	r16
   11186:	ff 90       	pop	r15
   11188:	ef 90       	pop	r14
   1118a:	08 95       	ret

0001118c <stop_and_save_print_to_ram(float, float)>:
//! If printing from USB, line number is saved.
//!
//! @param z_move
//! @param e_move
void stop_and_save_print_to_ram(float z_move, float e_move)
{
   1118c:	bf 92       	push	r11
   1118e:	cf 92       	push	r12
   11190:	df 92       	push	r13
   11192:	ef 92       	push	r14
   11194:	ff 92       	push	r15
   11196:	0f 93       	push	r16
   11198:	1f 93       	push	r17
   1119a:	cf 93       	push	r28
   1119c:	df 93       	push	r29
	if (saved_printing) return;
   1119e:	e0 91 a9 0d 	lds	r30, 0x0DA9	; 0x800da9 <saved_printing>
   111a2:	e1 11       	cpse	r30, r1
   111a4:	b1 c0       	rjmp	.+354    	; 0x11308 <stop_and_save_print_to_ram(float, float)+0x17c>
   111a6:	05 2f       	mov	r16, r21
   111a8:	14 2f       	mov	r17, r20
   111aa:	e9 01       	movw	r28, r18
   111ac:	6b 01       	movw	r12, r22
   111ae:	7c 01       	movw	r14, r24

	cli();
   111b0:	f8 94       	cli
	save_print_file_state();
   111b2:	0e 94 c1 64 	call	0xc982	; 0xc982 <save_print_file_state()>

    // save the global state at planning time
    const bool pos_invalid = mesh_bed_leveling_flag || homing_flag;
   111b6:	b0 90 a8 0d 	lds	r11, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   111ba:	b1 10       	cpse	r11, r1
   111bc:	02 c0       	rjmp	.+4      	; 0x111c2 <stop_and_save_print_to_ram(float, float)+0x36>
   111be:	b0 90 a7 0d 	lds	r11, 0x0DA7	; 0x800da7 <homing_flag>
    save_planner_global_state();
   111c2:	0e 94 77 64 	call	0xc8ee	; 0xc8ee <save_planner_global_state()>

	planner_abort_hard(); //abort printing
   111c6:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>

	memcpy(saved_pos, current_position, sizeof(saved_pos));
   111ca:	80 e1       	ldi	r24, 0x10	; 16
   111cc:	e2 e9       	ldi	r30, 0x92	; 146
   111ce:	f6 e0       	ldi	r31, 0x06	; 6
   111d0:	a3 e7       	ldi	r26, 0x73	; 115
   111d2:	b2 e0       	ldi	r27, 0x02	; 2
   111d4:	01 90       	ld	r0, Z+
   111d6:	0d 92       	st	X+, r0
   111d8:	8a 95       	dec	r24
   111da:	e1 f7       	brne	.-8      	; 0x111d4 <stop_and_save_print_to_ram(float, float)+0x48>
    if (pos_invalid) saved_pos[X_AXIS] = X_COORD_INVALID;
   111dc:	bb 20       	and	r11, r11
   111de:	61 f0       	breq	.+24     	; 0x111f8 <stop_and_save_print_to_ram(float, float)+0x6c>
   111e0:	80 e0       	ldi	r24, 0x00	; 0
   111e2:	90 e0       	ldi	r25, 0x00	; 0
   111e4:	a0 e8       	ldi	r26, 0x80	; 128
   111e6:	bf eb       	ldi	r27, 0xBF	; 191
   111e8:	80 93 73 02 	sts	0x0273, r24	; 0x800273 <saved_pos>
   111ec:	90 93 74 02 	sts	0x0274, r25	; 0x800274 <saved_pos+0x1>
   111f0:	a0 93 75 02 	sts	0x0275, r26	; 0x800275 <saved_pos+0x2>
   111f4:	b0 93 76 02 	sts	0x0276, r27	; 0x800276 <saved_pos+0x3>

    saved_feedmultiply2 = feedmultiply; //save feedmultiply
   111f8:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
   111fc:	90 91 3a 02 	lds	r25, 0x023A	; 0x80023a <feedmultiply+0x1>
   11200:	90 93 72 03 	sts	0x0372, r25	; 0x800372 <saved_feedmultiply2+0x1>
   11204:	80 93 71 03 	sts	0x0371, r24	; 0x800371 <saved_feedmultiply2>
	saved_extruder_temperature = (uint16_t)degTargetHotend(active_extruder);
   11208:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   1120c:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   11210:	90 93 ad 05 	sts	0x05AD, r25	; 0x8005ad <saved_extruder_temperature+0x1>
   11214:	80 93 ac 05 	sts	0x05AC, r24	; 0x8005ac <saved_extruder_temperature>
	saved_bed_temperature = (uint8_t)degTargetBed();
   11218:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   1121c:	80 93 ae 05 	sts	0x05AE, r24	; 0x8005ae <saved_bed_temperature>
	saved_extruder_relative_mode = axis_relative_modes & E_AXIS_MASK;
   11220:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   11224:	83 fb       	bst	r24, 3
   11226:	88 27       	eor	r24, r24
   11228:	80 f9       	bld	r24, 0
   1122a:	80 93 64 05 	sts	0x0564, r24	; 0x800564 <saved_extruder_relative_mode>
	saved_fan_speed = fanSpeed;
   1122e:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
   11232:	80 93 ab 05 	sts	0x05AB, r24	; 0x8005ab <saved_fan_speed>
	cmdqueue_reset(); //empty cmdqueue
   11236:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
	card.sdprinting = false;
   1123a:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
//	card.closefile();
	saved_printing = true;
   1123e:	81 e0       	ldi	r24, 0x01	; 1
   11240:	80 93 a9 0d 	sts	0x0DA9, r24	; 0x800da9 <saved_printing>
  // We may have missed a stepper timer interrupt. Be safe than sorry, reset the stepper timer before re-enabling interrupts.
  st_reset_timer();
   11244:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
	sei();
   11248:	78 94       	sei
	if ((z_move != 0) || (e_move != 0)) { // extruder or z move
   1124a:	20 e0       	ldi	r18, 0x00	; 0
   1124c:	30 e0       	ldi	r19, 0x00	; 0
   1124e:	a9 01       	movw	r20, r18
   11250:	c7 01       	movw	r24, r14
   11252:	b6 01       	movw	r22, r12
   11254:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>

    // Rather than calling plan_buffer_line directly, push the move into the command queue so that
    // the caller can continue processing. This is used during powerpanic to save the state as we
    // move away from the print.

    if(e_move)
   11258:	20 e0       	ldi	r18, 0x00	; 0
   1125a:	30 e0       	ldi	r19, 0x00	; 0
   1125c:	a9 01       	movw	r20, r18
   1125e:	f8 01       	movw	r30, r16
   11260:	6c 2f       	mov	r22, r28
   11262:	7d 2f       	mov	r23, r29
//	card.closefile();
	saved_printing = true;
  // We may have missed a stepper timer interrupt. Be safe than sorry, reset the stepper timer before re-enabling interrupts.
  st_reset_timer();
	sei();
	if ((z_move != 0) || (e_move != 0)) { // extruder or z move
   11264:	81 11       	cpse	r24, r1
   11266:	5a c0       	rjmp	.+180    	; 0x1131c <stop_and_save_print_to_ram(float, float)+0x190>
   11268:	8f 2f       	mov	r24, r31
   1126a:	90 2f       	mov	r25, r16
   1126c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   11270:	88 23       	and	r24, r24
   11272:	09 f4       	brne	.+2      	; 0x11276 <stop_and_save_print_to_ram(float, float)+0xea>
   11274:	49 c0       	rjmp	.+146    	; 0x11308 <stop_and_save_print_to_ram(float, float)+0x17c>
    // move away from the print.

    if(e_move)
    {
        // First unretract (relative extrusion)
        if(!saved_extruder_relative_mode){
   11276:	80 91 64 05 	lds	r24, 0x0564	; 0x800564 <saved_extruder_relative_mode>
   1127a:	81 11       	cpse	r24, r1
   1127c:	05 c0       	rjmp	.+10     	; 0x11288 <stop_and_save_print_to_ram(float, float)+0xfc>
            enquecommand_P(MSG_M83);
   1127e:	61 e0       	ldi	r22, 0x01	; 1
   11280:	8c e3       	ldi	r24, 0x3C	; 60
   11282:	9b e6       	ldi	r25, 0x6B	; 107
   11284:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        // A single sprintf may not be faster, but is definitely 20B shorter
        // than a sequence of commands building the string piece by piece
        // A snprintf would have been a safer call, but since it is not used
        // in the whole program, its implementation would bring more bytes to the total size
        // The behavior of dtostrf 8,3 should be roughly the same as %-0.3
        enquecommandf_P(G1_E_F2700, e_move);
   11288:	0f 93       	push	r16
   1128a:	1f 93       	push	r17
   1128c:	df 93       	push	r29
   1128e:	cf 93       	push	r28
   11290:	86 eb       	ldi	r24, 0xB6	; 182
   11292:	9d e6       	ldi	r25, 0x6D	; 109
   11294:	9f 93       	push	r25
   11296:	8f 93       	push	r24
   11298:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    }

    if(z_move)
   1129c:	0f 90       	pop	r0
   1129e:	0f 90       	pop	r0
   112a0:	0f 90       	pop	r0
   112a2:	0f 90       	pop	r0
   112a4:	0f 90       	pop	r0
   112a6:	0f 90       	pop	r0
   112a8:	20 e0       	ldi	r18, 0x00	; 0
   112aa:	30 e0       	ldi	r19, 0x00	; 0
   112ac:	a9 01       	movw	r20, r18
   112ae:	c7 01       	movw	r24, r14
   112b0:	b6 01       	movw	r22, r12
   112b2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   112b6:	88 23       	and	r24, r24
   112b8:	21 f1       	breq	.+72     	; 0x11302 <stop_and_save_print_to_ram(float, float)+0x176>
    {
        // Then lift Z axis
        enquecommandf_P(PSTR("G1 Z%-.3f F%-.3f"), saved_pos[Z_AXIS] + z_move, homing_feedrate[Z_AXIS]);
   112ba:	84 e4       	ldi	r24, 0x44	; 68
   112bc:	8f 93       	push	r24
   112be:	88 e4       	ldi	r24, 0x48	; 72
   112c0:	8f 93       	push	r24
   112c2:	1f 92       	push	r1
   112c4:	1f 92       	push	r1
   112c6:	20 91 7b 02 	lds	r18, 0x027B	; 0x80027b <saved_pos+0x8>
   112ca:	30 91 7c 02 	lds	r19, 0x027C	; 0x80027c <saved_pos+0x9>
   112ce:	40 91 7d 02 	lds	r20, 0x027D	; 0x80027d <saved_pos+0xa>
   112d2:	50 91 7e 02 	lds	r21, 0x027E	; 0x80027e <saved_pos+0xb>
   112d6:	c7 01       	movw	r24, r14
   112d8:	b6 01       	movw	r22, r12
   112da:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   112de:	9f 93       	push	r25
   112e0:	8f 93       	push	r24
   112e2:	7f 93       	push	r23
   112e4:	6f 93       	push	r22
   112e6:	8c e7       	ldi	r24, 0x7C	; 124
   112e8:	9d e7       	ldi	r25, 0x7D	; 125
   112ea:	9f 93       	push	r25
   112ec:	8f 93       	push	r24
   112ee:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   112f2:	8d b7       	in	r24, 0x3d	; 61
   112f4:	9e b7       	in	r25, 0x3e	; 62
   112f6:	0a 96       	adiw	r24, 0x0a	; 10
   112f8:	0f b6       	in	r0, 0x3f	; 63
   112fa:	f8 94       	cli
   112fc:	9e bf       	out	0x3e, r25	; 62
   112fe:	0f be       	out	0x3f, r0	; 63
   11300:	8d bf       	out	0x3d, r24	; 61

// Mark the command at the top of the command queue as new.
// Therefore it will not be removed from the queue.
void repeatcommand_front()
{
    cmdbuffer_front_already_processed = true;
   11302:	81 e0       	ldi	r24, 0x01	; 1
   11304:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>

    // If this call is invoked from the main Arduino loop() function, let the caller know that the command
    // in the command queue is not the original command, but a new one, so it should not be removed from the queue.
    repeatcommand_front();
  }
}
   11308:	df 91       	pop	r29
   1130a:	cf 91       	pop	r28
   1130c:	1f 91       	pop	r17
   1130e:	0f 91       	pop	r16
   11310:	ff 90       	pop	r15
   11312:	ef 90       	pop	r14
   11314:	df 90       	pop	r13
   11316:	cf 90       	pop	r12
   11318:	bf 90       	pop	r11
   1131a:	08 95       	ret

    // Rather than calling plan_buffer_line directly, push the move into the command queue so that
    // the caller can continue processing. This is used during powerpanic to save the state as we
    // move away from the print.

    if(e_move)
   1131c:	8f 2f       	mov	r24, r31
   1131e:	90 2f       	mov	r25, r16
   11320:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   11324:	88 23       	and	r24, r24
   11326:	49 f2       	breq	.-110    	; 0x112ba <stop_and_save_print_to_ram(float, float)+0x12e>
   11328:	a6 cf       	rjmp	.-180    	; 0x11276 <stop_and_save_print_to_ram(float, float)+0xea>

0001132a <backlight_update()>:
    eeprom_update_word_notify((uint16_t *)EEPROM_BACKLIGHT_TIMEOUT, backlightTimer_period);
}

void backlight_update()
{
    if (!backlightSupport) return;
   1132a:	80 91 02 04 	lds	r24, 0x0402	; 0x800402 <backlightSupport>
   1132e:	88 23       	and	r24, r24
   11330:	21 f1       	breq	.+72     	; 0x1137a <backlight_update()+0x50>

    if (backlightMode == BACKLIGHT_MODE_AUTO)
   11332:	80 91 4f 02 	lds	r24, 0x024F	; 0x80024f <backlightMode>
   11336:	82 30       	cpi	r24, 0x02	; 2
   11338:	e9 f4       	brne	.+58     	; 0x11374 <backlight_update()+0x4a>
    {
        if (backlightTimer.expired((uint32_t)backlightTimer_period * 1000ul)) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
   1133a:	a0 91 4d 02 	lds	r26, 0x024D	; 0x80024d <backlightTimer_period>
   1133e:	b0 91 4e 02 	lds	r27, 0x024E	; 0x80024e <backlightTimer_period+0x1>
   11342:	28 ee       	ldi	r18, 0xE8	; 232
   11344:	33 e0       	ldi	r19, 0x03	; 3
   11346:	0f 94 7b dd 	call	0x3baf6	; 0x3baf6 <__usmulhisi3>
   1134a:	ab 01       	movw	r20, r22
   1134c:	bc 01       	movw	r22, r24
   1134e:	87 e3       	ldi	r24, 0x37	; 55
   11350:	93 e0       	ldi	r25, 0x03	; 3
   11352:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   11356:	88 23       	and	r24, r24
   11358:	31 f0       	breq	.+12     	; 0x11366 <backlight_update()+0x3c>
        else if (backlightTimer.running()) analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
        else {/*do nothing*/;} //display is dimmed.
    }
    else if (backlightMode == BACKLIGHT_MODE_DIM) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
   1135a:	60 91 00 04 	lds	r22, 0x0400	; 0x800400 <backlightLevel_LOW>
    else analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
   1135e:	70 e0       	ldi	r23, 0x00	; 0
   11360:	85 e0       	ldi	r24, 0x05	; 5
   11362:	0c 94 fb e9 	jmp	0x1d3f6	; 0x1d3f6 <analogWrite>
    if (!backlightSupport) return;

    if (backlightMode == BACKLIGHT_MODE_AUTO)
    {
        if (backlightTimer.expired((uint32_t)backlightTimer_period * 1000ul)) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
        else if (backlightTimer.running()) analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
   11366:	80 91 37 03 	lds	r24, 0x0337	; 0x800337 <backlightTimer>
   1136a:	88 23       	and	r24, r24
   1136c:	31 f0       	breq	.+12     	; 0x1137a <backlight_update()+0x50>
        else {/*do nothing*/;} //display is dimmed.
    }
    else if (backlightMode == BACKLIGHT_MODE_DIM) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
    else analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
   1136e:	60 91 01 04 	lds	r22, 0x0401	; 0x800401 <backlightLevel_HIGH>
   11372:	f5 cf       	rjmp	.-22     	; 0x1135e <backlight_update()+0x34>
    {
        if (backlightTimer.expired((uint32_t)backlightTimer_period * 1000ul)) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
        else if (backlightTimer.running()) analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
        else {/*do nothing*/;} //display is dimmed.
    }
    else if (backlightMode == BACKLIGHT_MODE_DIM) analogWrite(LCD_BL_PIN, backlightLevel_LOW);
   11374:	81 11       	cpse	r24, r1
   11376:	fb cf       	rjmp	.-10     	; 0x1136e <backlight_update()+0x44>
   11378:	f0 cf       	rjmp	.-32     	; 0x1135a <backlight_update()+0x30>
    else analogWrite(LCD_BL_PIN, backlightLevel_HIGH);
}
   1137a:	08 95       	ret

0001137c <backlight_save()>:
   1137c:	60 91 01 04 	lds	r22, 0x0401	; 0x800401 <backlightLevel_HIGH>
   11380:	84 e3       	ldi	r24, 0x34	; 52
   11382:	9d e0       	ldi	r25, 0x0D	; 13
   11384:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   11388:	60 91 00 04 	lds	r22, 0x0400	; 0x800400 <backlightLevel_LOW>
   1138c:	83 e3       	ldi	r24, 0x33	; 51
   1138e:	9d e0       	ldi	r25, 0x0D	; 13
   11390:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   11394:	60 91 4f 02 	lds	r22, 0x024F	; 0x80024f <backlightMode>
   11398:	82 e3       	ldi	r24, 0x32	; 50
   1139a:	9d e0       	ldi	r25, 0x0D	; 13
   1139c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   113a0:	60 91 4d 02 	lds	r22, 0x024D	; 0x80024d <backlightTimer_period>
   113a4:	70 91 4e 02 	lds	r23, 0x024E	; 0x80024e <backlightTimer_period+0x1>
   113a8:	80 e3       	ldi	r24, 0x30	; 48
   113aa:	9d e0       	ldi	r25, 0x0D	; 13
   113ac:	0d 94 9d dc 	jmp	0x3b93a	; 0x3b93a <eeprom_update_word>

000113b0 <force_bl_on(bool)>:
    backlight_update();
}

void force_bl_on(bool section_start)
{
    if (section_start)
   113b0:	88 23       	and	r24, r24
   113b2:	61 f0       	breq	.+24     	; 0x113cc <force_bl_on(bool)+0x1c>
    {
        backlightMode = BACKLIGHT_MODE_BRIGHT;
   113b4:	81 e0       	ldi	r24, 0x01	; 1
   113b6:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
        if (backlightLevel_HIGH < LCD_BACKLIGHT_FORCE_ON) backlightLevel_HIGH = LCD_BACKLIGHT_FORCE_ON;
   113ba:	80 91 01 04 	lds	r24, 0x0401	; 0x800401 <backlightLevel_HIGH>
   113be:	8e 31       	cpi	r24, 0x1E	; 30
   113c0:	18 f4       	brcc	.+6      	; 0x113c8 <force_bl_on(bool)+0x18>
   113c2:	8e e1       	ldi	r24, 0x1E	; 30
    }
    else
    {
        backlightMode = eeprom_read_byte((uint8_t *)EEPROM_BACKLIGHT_MODE);
        backlightLevel_HIGH = eeprom_read_byte((uint8_t *)EEPROM_BACKLIGHT_LEVEL_HIGH);
   113c4:	80 93 01 04 	sts	0x0401, r24	; 0x800401 <backlightLevel_HIGH>
    }
    backlight_update();
   113c8:	0c 94 95 89 	jmp	0x1132a	; 0x1132a <backlight_update()>
        backlightMode = BACKLIGHT_MODE_BRIGHT;
        if (backlightLevel_HIGH < LCD_BACKLIGHT_FORCE_ON) backlightLevel_HIGH = LCD_BACKLIGHT_FORCE_ON;
    }
    else
    {
        backlightMode = eeprom_read_byte((uint8_t *)EEPROM_BACKLIGHT_MODE);
   113cc:	82 e3       	ldi	r24, 0x32	; 50
   113ce:	9d e0       	ldi	r25, 0x0D	; 13
   113d0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   113d4:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
        backlightLevel_HIGH = eeprom_read_byte((uint8_t *)EEPROM_BACKLIGHT_LEVEL_HIGH);
   113d8:	84 e3       	ldi	r24, 0x34	; 52
   113da:	9d e0       	ldi	r25, 0x0D	; 13
   113dc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   113e0:	f1 cf       	rjmp	.-30     	; 0x113c4 <force_bl_on(bool)+0x14>

000113e2 <backlightTimer_reset() [clone .lto_priv.434]>:
int16_t backlightTimer_period = LCD_BACKLIGHT_TIMEOUT;
LongTimer backlightTimer;

static void backlightTimer_reset() //used for resetting the timer and waking the display. Triggered on user interactions.
{
    if (!backlightSupport) return;
   113e2:	80 91 02 04 	lds	r24, 0x0402	; 0x800402 <backlightSupport>
   113e6:	88 23       	and	r24, r24
   113e8:	31 f0       	breq	.+12     	; 0x113f6 <backlightTimer_reset() [clone .lto_priv.434]+0x14>
    backlightTimer.start();
   113ea:	87 e3       	ldi	r24, 0x37	; 55
   113ec:	93 e0       	ldi	r25, 0x03	; 3
   113ee:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
    backlight_update();
   113f2:	0c 94 95 89 	jmp	0x1132a	; 0x1132a <backlight_update()>
}
   113f6:	08 95       	ret

000113f8 <backlight_wake(unsigned char)>:
    }
    backlight_update();
}

void backlight_wake(const uint8_t flashNo)
{
   113f8:	ff 92       	push	r15
   113fa:	0f 93       	push	r16
   113fc:	1f 93       	push	r17
   113fe:	cf 93       	push	r28
   11400:	df 93       	push	r29
    if (!backlightSupport) return;
   11402:	90 91 02 04 	lds	r25, 0x0402	; 0x800402 <backlightSupport>
   11406:	99 23       	and	r25, r25
   11408:	99 f1       	breq	.+102    	; 0x11470 <backlight_wake(unsigned char)+0x78>

    if (flashNo)
   1140a:	88 23       	and	r24, r24
   1140c:	51 f1       	breq	.+84     	; 0x11462 <backlight_wake(unsigned char)+0x6a>
    {
        uint8_t backlightMode_bck = backlightMode;
   1140e:	00 91 4f 02 	lds	r16, 0x024F	; 0x80024f <backlightMode>
        for (uint8_t i = 0; i < (((backlightMode_bck == BACKLIGHT_MODE_AUTO) && !backlightTimer.running()) + (flashNo * 2)); i++)
   11412:	c8 2f       	mov	r28, r24
   11414:	d0 e0       	ldi	r29, 0x00	; 0
   11416:	cc 0f       	add	r28, r28
   11418:	dd 1f       	adc	r29, r29
   1141a:	10 e0       	ldi	r17, 0x00	; 0
   1141c:	ff 24       	eor	r15, r15
   1141e:	f3 94       	inc	r15
   11420:	21 2f       	mov	r18, r17
   11422:	30 e0       	ldi	r19, 0x00	; 0
   11424:	80 91 37 03 	lds	r24, 0x0337	; 0x800337 <backlightTimer>
   11428:	8f 25       	eor	r24, r15
   1142a:	02 30       	cpi	r16, 0x02	; 2
   1142c:	09 f0       	breq	.+2      	; 0x11430 <backlight_wake(unsigned char)+0x38>
   1142e:	80 e0       	ldi	r24, 0x00	; 0
   11430:	8c 0f       	add	r24, r28
   11432:	9d 2f       	mov	r25, r29
   11434:	91 1d       	adc	r25, r1
   11436:	28 17       	cp	r18, r24
   11438:	39 07       	cpc	r19, r25
   1143a:	8c f4       	brge	.+34     	; 0x1145e <backlight_wake(unsigned char)+0x66>
        {
            backlightMode = !backlightMode; //toggles between BACKLIGHT_MODE_BRIGHT and BACKLIGHT_MODE_DIM
   1143c:	81 e0       	ldi	r24, 0x01	; 1
   1143e:	90 91 4f 02 	lds	r25, 0x024F	; 0x80024f <backlightMode>
   11442:	91 11       	cpse	r25, r1
   11444:	80 e0       	ldi	r24, 0x00	; 0
   11446:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
            backlight_update();
   1144a:	0e 94 95 89 	call	0x1132a	; 0x1132a <backlight_update()>
            _delay(BL_FLASH_DELAY_MS);
   1144e:	69 e1       	ldi	r22, 0x19	; 25
   11450:	70 e0       	ldi	r23, 0x00	; 0
   11452:	80 e0       	ldi	r24, 0x00	; 0
   11454:	90 e0       	ldi	r25, 0x00	; 0
   11456:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
    if (!backlightSupport) return;

    if (flashNo)
    {
        uint8_t backlightMode_bck = backlightMode;
        for (uint8_t i = 0; i < (((backlightMode_bck == BACKLIGHT_MODE_AUTO) && !backlightTimer.running()) + (flashNo * 2)); i++)
   1145a:	1f 5f       	subi	r17, 0xFF	; 255
   1145c:	e1 cf       	rjmp	.-62     	; 0x11420 <backlight_wake(unsigned char)+0x28>
        {
            backlightMode = !backlightMode; //toggles between BACKLIGHT_MODE_BRIGHT and BACKLIGHT_MODE_DIM
            backlight_update();
            _delay(BL_FLASH_DELAY_MS);
        }
        backlightMode = backlightMode_bck;
   1145e:	00 93 4f 02 	sts	0x024F, r16	; 0x80024f <backlightMode>
    }
    backlightTimer_reset();
}
   11462:	df 91       	pop	r29
   11464:	cf 91       	pop	r28
   11466:	1f 91       	pop	r17
   11468:	0f 91       	pop	r16
   1146a:	ff 90       	pop	r15
            backlight_update();
            _delay(BL_FLASH_DELAY_MS);
        }
        backlightMode = backlightMode_bck;
    }
    backlightTimer_reset();
   1146c:	0c 94 f1 89 	jmp	0x113e2	; 0x113e2 <backlightTimer_reset() [clone .lto_priv.434]>
}
   11470:	df 91       	pop	r29
   11472:	cf 91       	pop	r28
   11474:	1f 91       	pop	r17
   11476:	0f 91       	pop	r16
   11478:	ff 90       	pop	r15
   1147a:	08 95       	ret

0001147c <manage_inactivity(bool)>:
    }
}
#endif //SAFETYTIMER

void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument set in Marlin.h
{
   1147c:	0f 93       	push	r16
   1147e:	1f 93       	push	r17
   11480:	cf 93       	push	r28
   11482:	df 93       	push	r29
   11484:	c8 2f       	mov	r28, r24
    state = State::disabled;
    filter = 0;
}

bool PAT9125_sensor::update() {
    switch (state) {
   11486:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1148a:	81 30       	cpi	r24, 0x01	; 1
   1148c:	09 f4       	brne	.+2      	; 0x11490 <manage_inactivity(bool)+0x14>
   1148e:	41 c0       	rjmp	.+130    	; 0x11512 <manage_inactivity(bool)+0x96>
   11490:	82 30       	cpi	r24, 0x02	; 2
   11492:	09 f4       	brne	.+2      	; 0x11496 <manage_inactivity(bool)+0x1a>
   11494:	57 c0       	rjmp	.+174    	; 0x11544 <manage_inactivity(bool)+0xc8>
 *
 * If safetytimer_inactive_time is zero, feature is disabled (heating is never turned off because of inactivity)
 */
static void handleSafetyTimer()
{
    if (printer_active() || !(CHECK_ALL_HEATERS) || !safetytimer_inactive_time)
   11496:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   1149a:	81 11       	cpse	r24, r1
   1149c:	f9 c0       	rjmp	.+498    	; 0x11690 <manage_inactivity(bool)+0x214>
   1149e:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   114a2:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   114a6:	00 97       	sbiw	r24, 0x00	; 0
   114a8:	39 f4       	brne	.+14     	; 0x114b8 <manage_inactivity(bool)+0x3c>
   114aa:	20 91 72 06 	lds	r18, 0x0672	; 0x800672 <target_temperature_bed>
   114ae:	30 91 73 06 	lds	r19, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   114b2:	23 2b       	or	r18, r19
   114b4:	09 f4       	brne	.+2      	; 0x114b8 <manage_inactivity(bool)+0x3c>
   114b6:	ec c0       	rjmp	.+472    	; 0x11690 <manage_inactivity(bool)+0x214>
   114b8:	40 91 30 02 	lds	r20, 0x0230	; 0x800230 <safetytimer_inactive_time>
   114bc:	50 91 31 02 	lds	r21, 0x0231	; 0x800231 <safetytimer_inactive_time+0x1>
   114c0:	60 91 32 02 	lds	r22, 0x0232	; 0x800232 <safetytimer_inactive_time+0x2>
   114c4:	70 91 33 02 	lds	r23, 0x0233	; 0x800233 <safetytimer_inactive_time+0x3>
   114c8:	41 15       	cp	r20, r1
   114ca:	51 05       	cpc	r21, r1
   114cc:	61 05       	cpc	r22, r1
   114ce:	71 05       	cpc	r23, r1
   114d0:	09 f4       	brne	.+2      	; 0x114d4 <manage_inactivity(bool)+0x58>
   114d2:	de c0       	rjmp	.+444    	; 0x11690 <manage_inactivity(bool)+0x214>
    {
        safetyTimer.stop();
    }
    else if ((CHECK_ALL_HEATERS) && !safetyTimer.running())
   114d4:	89 2b       	or	r24, r25
   114d6:	31 f4       	brne	.+12     	; 0x114e4 <manage_inactivity(bool)+0x68>
   114d8:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   114dc:	90 91 73 06 	lds	r25, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   114e0:	89 2b       	or	r24, r25
   114e2:	29 f0       	breq	.+10     	; 0x114ee <manage_inactivity(bool)+0x72>
   114e4:	80 91 da 05 	lds	r24, 0x05DA	; 0x8005da <safetyTimer>
   114e8:	88 23       	and	r24, r24
   114ea:	09 f4       	brne	.+2      	; 0x114ee <manage_inactivity(bool)+0x72>
   114ec:	39 c1       	rjmp	.+626    	; 0x11760 <manage_inactivity(bool)+0x2e4>
    {
        safetyTimer.start();
    }
    else if (safetyTimer.expired(farm_mode?FARM_DEFAULT_SAFETYTIMER_TIME_ms:safetytimer_inactive_time))
   114ee:	8a ed       	ldi	r24, 0xDA	; 218
   114f0:	95 e0       	ldi	r25, 0x05	; 5
   114f2:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   114f6:	88 23       	and	r24, r24
   114f8:	09 f4       	brne	.+2      	; 0x114fc <manage_inactivity(bool)+0x80>
   114fa:	cc c0       	rjmp	.+408    	; 0x11694 <manage_inactivity(bool)+0x218>
    {
        disable_heater();
   114fc:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_BED_HEATING_SAFETY_DISABLED));
   11500:	82 e7       	ldi	r24, 0x72	; 114
   11502:	96 e3       	ldi	r25, 0x36	; 54
   11504:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   11508:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        lcd_return_to_status();
   1150c:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
   11510:	c1 c0       	rjmp	.+386    	; 0x11694 <manage_inactivity(bool)+0x218>
    case State::initializing:
        if (!updatePAT9125()) {
   11512:	0f 94 2a 7d 	call	0x2fa54	; 0x2fa54 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]>
   11516:	88 23       	and	r24, r24
   11518:	09 f4       	brne	.+2      	; 0x1151c <manage_inactivity(bool)+0xa0>
   1151a:	bd cf       	rjmp	.-134    	; 0x11496 <manage_inactivity(bool)+0x1a>
class PAT9125_sensor: public Filament_sensor {
public:
    void init();
    void deinit();
    bool update();
    bool getFilamentPresent() const { return filterFilPresent; }
   1151c:	81 e0       	ldi	r24, 0x01	; 1
   1151e:	90 91 b7 17 	lds	r25, 0x17B7	; 0x8017b7 <fsensor+0xd>
   11522:	91 11       	cpse	r25, r1
   11524:	01 c0       	rjmp	.+2      	; 0x11528 <manage_inactivity(bool)+0xac>
   11526:	80 e0       	ldi	r24, 0x00	; 0
            break; // still not stable. Stay in the initialization state.
        }
        oldFilamentPresent =
   11528:	80 93 ad 17 	sts	0x17AD, r24	; 0x8017ad <fsensor+0x3>
            getFilamentPresent(); // initialize the current filament state so that we don't create a switching event right after the sensor is ready.
        oldPos = pat9125_y;
   1152c:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   11530:	90 91 90 0e 	lds	r25, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   11534:	90 93 ba 17 	sts	0x17BA, r25	; 0x8017ba <fsensor+0x10>
   11538:	80 93 b9 17 	sts	0x17B9, r24	; 0x8017b9 <fsensor+0xf>
        state = State::ready;
   1153c:	82 e0       	ldi	r24, 0x02	; 2
   1153e:	80 93 aa 17 	sts	0x17AA, r24	; 0x8017aa <fsensor>
   11542:	a9 cf       	rjmp	.-174    	; 0x11496 <manage_inactivity(bool)+0x1a>
        break;
    case State::ready: {
        updatePAT9125();
   11544:	0f 94 2a 7d 	call	0x2fa54	; 0x2fa54 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]>
        postponedLoadEvent = false;
   11548:	10 92 ae 17 	sts	0x17AE, r1	; 0x8017ae <fsensor+0x4>
        sensorActionOnError = SensorActionOnError::_Continue;
    }
}

bool Filament_sensor::checkFilamentEvents() {
    if (state != State::ready)
   1154c:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   11550:	82 30       	cpi	r24, 0x02	; 2
   11552:	09 f0       	breq	.+2      	; 0x11556 <manage_inactivity(bool)+0xda>
   11554:	a0 cf       	rjmp	.-192    	; 0x11496 <manage_inactivity(bool)+0x1a>
        return false;
    if (eventBlankingTimer.running() && !eventBlankingTimer.expired(100)) { // event blanking for 100ms
   11556:	80 91 af 17 	lds	r24, 0x17AF	; 0x8017af <fsensor+0x5>
   1155a:	81 11       	cpse	r24, r1
   1155c:	40 c0       	rjmp	.+128    	; 0x115de <manage_inactivity(bool)+0x162>
   1155e:	d0 91 b7 17 	lds	r29, 0x17B7	; 0x8017b7 <fsensor+0xd>
   11562:	81 e0       	ldi	r24, 0x01	; 1
   11564:	d1 11       	cpse	r29, r1
   11566:	01 c0       	rjmp	.+2      	; 0x1156a <manage_inactivity(bool)+0xee>
   11568:	80 e0       	ldi	r24, 0x00	; 0
        return false;
    }

    bool newFilamentPresent = fsensor.getFilamentPresent();
    if (oldFilamentPresent != newFilamentPresent) {
   1156a:	90 91 ad 17 	lds	r25, 0x17AD	; 0x8017ad <fsensor+0x3>
   1156e:	89 17       	cp	r24, r25
   11570:	09 f4       	brne	.+2      	; 0x11574 <manage_inactivity(bool)+0xf8>
   11572:	91 cf       	rjmp	.-222    	; 0x11496 <manage_inactivity(bool)+0x1a>
        oldFilamentPresent = newFilamentPresent;
   11574:	80 93 ad 17 	sts	0x17AD, r24	; 0x8017ad <fsensor+0x3>
        eventBlankingTimer.start();
   11578:	8f ea       	ldi	r24, 0xAF	; 175
   1157a:	97 e1       	ldi	r25, 0x17	; 23
   1157c:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
        if (newFilamentPresent) { // filament insertion
   11580:	dd 23       	and	r29, r29
   11582:	b1 f1       	breq	.+108    	; 0x115f0 <manage_inactivity(bool)+0x174>
}

void Filament_sensor::triggerFilamentInserted() {
    if (autoLoadEnabled
        && (eFilamentAction == FilamentAction::None)
        && !(
   11584:	80 91 ab 17 	lds	r24, 0x17AB	; 0x8017ab <fsensor+0x1>
   11588:	88 23       	and	r24, r24
   1158a:	11 f1       	breq	.+68     	; 0x115d0 <manage_inactivity(bool)+0x154>
    return false;
}

void Filament_sensor::triggerFilamentInserted() {
    if (autoLoadEnabled
        && (eFilamentAction == FilamentAction::None)
   1158c:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   11590:	81 11       	cpse	r24, r1
   11592:	1e c0       	rjmp	.+60     	; 0x115d0 <manage_inactivity(bool)+0x154>
        && !(
   11594:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   11598:	81 30       	cpi	r24, 0x01	; 1
   1159a:	d1 f0       	breq	.+52     	; 0x115d0 <manage_inactivity(bool)+0x154>
}

//return the nr of buffered moves
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
   1159c:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   115a0:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   115a4:	89 1b       	sub	r24, r25
   115a6:	8f 70       	andi	r24, 0x0F	; 15
            MMU2::mmu2.Enabled() // quick and dirty hack to prevent spurious runouts while the MMU is in charge
            || moves_planned() != 0
   115a8:	99 f4       	brne	.+38     	; 0x115d0 <manage_inactivity(bool)+0x154>
            || printJobOngoing()
   115aa:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   115ae:	81 11       	cpse	r24, r1
   115b0:	0f c0       	rjmp	.+30     	; 0x115d0 <manage_inactivity(bool)+0x154>
            || (lcd_commands_type == LcdCommands::Layer1Cal)
   115b2:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   115b6:	84 30       	cpi	r24, 0x04	; 4
   115b8:	59 f0       	breq	.+22     	; 0x115d0 <manage_inactivity(bool)+0x154>
            || eeprom_read_byte((uint8_t *)EEPROM_WIZARD_ACTIVE)
   115ba:	8f e5       	ldi	r24, 0x5F	; 95
   115bc:	9f e0       	ldi	r25, 0x0F	; 15
   115be:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
}

void Filament_sensor::triggerFilamentInserted() {
    if (autoLoadEnabled
        && (eFilamentAction == FilamentAction::None)
        && !(
   115c2:	81 11       	cpse	r24, r1
   115c4:	05 c0       	rjmp	.+10     	; 0x115d0 <manage_inactivity(bool)+0x154>
            || printJobOngoing()
            || (lcd_commands_type == LcdCommands::Layer1Cal)
            || eeprom_read_byte((uint8_t *)EEPROM_WIZARD_ACTIVE)
            )
        ) {
        menu_submenu(lcd_AutoLoadFilament, true);
   115c6:	61 e0       	ldi	r22, 0x01	; 1
   115c8:	8c e0       	ldi	r24, 0x0C	; 12
   115ca:	9a e3       	ldi	r25, 0x3A	; 58
   115cc:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
        oldFilamentPresent = newFilamentPresent;
        eventBlankingTimer.start();
        if (newFilamentPresent) { // filament insertion
//            puts_P(PSTR("filament inserted"));
            triggerFilamentInserted();
            postponedLoadEvent = true;
   115d0:	81 e0       	ldi	r24, 0x01	; 1
   115d2:	80 93 ae 17 	sts	0x17AE, r24	; 0x8017ae <fsensor+0x4>

void manage_inactivity(bool ignore_stepper_queue/*=false*/) //default argument set in Marlin.h
{
#ifdef FILAMENT_SENSOR
    if (fsensor.update()) {
        lcd_draw_update = 1; //cause lcd update so that fsensor event polling can be done from the lcd draw routine.
   115d6:	81 e0       	ldi	r24, 0x01	; 1
   115d8:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
   115dc:	5c cf       	rjmp	.-328    	; 0x11496 <manage_inactivity(bool)+0x1a>
}

bool Filament_sensor::checkFilamentEvents() {
    if (state != State::ready)
        return false;
    if (eventBlankingTimer.running() && !eventBlankingTimer.expired(100)) { // event blanking for 100ms
   115de:	64 e6       	ldi	r22, 0x64	; 100
   115e0:	70 e0       	ldi	r23, 0x00	; 0
   115e2:	8f ea       	ldi	r24, 0xAF	; 175
   115e4:	97 e1       	ldi	r25, 0x17	; 23
   115e6:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   115ea:	81 11       	cpse	r24, r1
   115ec:	b8 cf       	rjmp	.-144    	; 0x1155e <manage_inactivity(bool)+0xe2>
   115ee:	53 cf       	rjmp	.-346    	; 0x11496 <manage_inactivity(bool)+0x1a>
        && (eFilamentAction == FilamentAction::None)
        && (
            moves_planned() != 0
            || printJobOngoing()
        )
        && !(
   115f0:	80 91 ac 17 	lds	r24, 0x17AC	; 0x8017ac <fsensor+0x2>
   115f4:	88 23       	and	r24, r24
   115f6:	79 f3       	breq	.-34     	; 0x115d6 <manage_inactivity(bool)+0x15a>
}

void Filament_sensor::triggerFilamentRemoved() {
//    SERIAL_ECHOLNPGM("triggerFilamentRemoved");
    if (runoutEnabled
        && (eFilamentAction == FilamentAction::None)
   115f8:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   115fc:	81 11       	cpse	r24, r1
   115fe:	eb cf       	rjmp	.-42     	; 0x115d6 <manage_inactivity(bool)+0x15a>
   11600:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   11604:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   11608:	89 1b       	sub	r24, r25
   1160a:	8f 70       	andi	r24, 0x0F	; 15
        && (
   1160c:	21 f4       	brne	.+8      	; 0x11616 <manage_inactivity(bool)+0x19a>
            moves_planned() != 0
            || printJobOngoing()
   1160e:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   11612:	88 23       	and	r24, r24
   11614:	01 f3       	breq	.-64     	; 0x115d6 <manage_inactivity(bool)+0x15a>
        )
        && !(
   11616:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   1161a:	81 11       	cpse	r24, r1
   1161c:	dc cf       	rjmp	.-72     	; 0x115d6 <manage_inactivity(bool)+0x15a>
            saved_printing
            || MMU2::mmu2.Enabled() // quick and dirty hack to prevent spurious runouts just before the toolchange
   1161e:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   11622:	81 30       	cpi	r24, 0x01	; 1
   11624:	c1 f2       	breq	.-80     	; 0x115d6 <manage_inactivity(bool)+0x15a>
            || (lcd_commands_type == LcdCommands::Layer1Cal)
   11626:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1162a:	84 30       	cpi	r24, 0x04	; 4
   1162c:	a1 f2       	breq	.-88     	; 0x115d6 <manage_inactivity(bool)+0x15a>
            || eeprom_read_byte((uint8_t *)EEPROM_WIZARD_ACTIVE)
   1162e:	8f e5       	ldi	r24, 0x5F	; 95
   11630:	9f e0       	ldi	r25, 0x0F	; 15
   11632:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
        && (eFilamentAction == FilamentAction::None)
        && (
            moves_planned() != 0
            || printJobOngoing()
        )
        && !(
   11636:	81 11       	cpse	r24, r1
   11638:	ce cf       	rjmp	.-100    	; 0x115d6 <manage_inactivity(bool)+0x15a>
}

//! @brief Send a notification to the host. Param 'message' must reside in program memory!
void sendHostNotification_P(const char* message)
{
    printf_P(MSG_HOST_ACTION_NOTIFICATION, message);
   1163a:	82 ed       	ldi	r24, 0xD2	; 210
   1163c:	95 e6       	ldi	r25, 0x65	; 101
   1163e:	9f 93       	push	r25
   11640:	8f 93       	push	r24
   11642:	88 eb       	ldi	r24, 0xB8	; 184
   11644:	95 e6       	ldi	r25, 0x65	; 101
   11646:	9f 93       	push	r25
   11648:	8f 93       	push	r24
   1164a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>


void Filament_sensor::filRunout() {
//    SERIAL_ECHOLNPGM("filRunout");
    sendHostNotification_P(MSG_FILAMENT_RUNOUT_DETECTED);
    runoutEnabled = false;
   1164e:	10 92 ac 17 	sts	0x17AC, r1	; 0x8017ac <fsensor+0x2>
    autoLoadEnabled = false;
   11652:	10 92 ab 17 	sts	0x17AB, r1	; 0x8017ab <fsensor+0x1>
    stop_and_save_print_to_ram(0, 0);
   11656:	20 e0       	ldi	r18, 0x00	; 0
   11658:	30 e0       	ldi	r19, 0x00	; 0
   1165a:	a9 01       	movw	r20, r18
   1165c:	ca 01       	movw	r24, r20
   1165e:	b9 01       	movw	r22, r18
   11660:	0e 94 c6 88 	call	0x1118c	; 0x1118c <stop_and_save_print_to_ram(float, float)>
    restore_print_from_ram_and_continue(0);
   11664:	60 e0       	ldi	r22, 0x00	; 0
   11666:	70 e0       	ldi	r23, 0x00	; 0
   11668:	cb 01       	movw	r24, r22
   1166a:	0e 94 cb 67 	call	0xcf96	; 0xcf96 <restore_print_from_ram_and_continue(float)>
    eeprom_increment_byte((uint8_t *)EEPROM_FERROR_COUNT);
   1166e:	85 e6       	ldi	r24, 0x65	; 101
   11670:	9f e0       	ldi	r25, 0x0F	; 15
   11672:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t *)EEPROM_FERROR_COUNT_TOT);
   11676:	81 e0       	ldi	r24, 0x01	; 1
   11678:	9f e0       	ldi	r25, 0x0F	; 15
   1167a:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>
    enquecommand_front_P(MSG_M600);
   1167e:	88 e4       	ldi	r24, 0x48	; 72
   11680:	90 e7       	ldi	r25, 0x70	; 112
   11682:	0f 94 3f 76 	call	0x2ec7e	; 0x2ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>
   11686:	0f 90       	pop	r0
   11688:	0f 90       	pop	r0
   1168a:	0f 90       	pop	r0
   1168c:	0f 90       	pop	r0
   1168e:	a3 cf       	rjmp	.-186    	; 0x115d6 <manage_inactivity(bool)+0x15a>
    inline constexpr Timer()
    : m_isRunning(false)
    , m_started(0) {};

    void start();
    void stop(){m_isRunning = false;}
   11690:	10 92 da 05 	sts	0x05DA, r1	; 0x8005da <safetyTimer>
#if defined(KILL_PIN) && KILL_PIN > -1
	static int killCount = 0;   // make the inactivity button a bit less responsive
   const int KILL_DELAY = 10000;
#endif

    if(buflen < (BUFSIZE-1)){
   11694:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   11698:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   1169c:	03 97       	sbiw	r24, 0x03	; 3
   1169e:	14 f4       	brge	.+4      	; 0x116a4 <manage_inactivity(bool)+0x228>
        get_command();
   116a0:	0e 94 a7 82 	call	0x1054e	; 0x1054e <get_command()>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   116a4:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   116a8:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
    }

    if (blocks_queued() && GetPrinterState() == PrinterState::IsHostPrinting && usb_timer.expired((USB_TIMER_TIMEOUT) / 2))
   116ac:	98 17       	cp	r25, r24
   116ae:	81 f0       	breq	.+32     	; 0x116d0 <manage_inactivity(bool)+0x254>
   116b0:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   116b4:	86 30       	cpi	r24, 0x06	; 6
   116b6:	61 f4       	brne	.+24     	; 0x116d0 <manage_inactivity(bool)+0x254>
   116b8:	68 e8       	ldi	r22, 0x88	; 136
   116ba:	73 e1       	ldi	r23, 0x13	; 19
   116bc:	8e e0       	ldi	r24, 0x0E	; 14
   116be:	95 e0       	ldi	r25, 0x05	; 5
   116c0:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   116c4:	88 23       	and	r24, r24
   116c6:	21 f0       	breq	.+8      	; 0x116d0 <manage_inactivity(bool)+0x254>
    {
        // Handle the case where planned moves may take a longer time to execute than the USB timer period.
        // An example is the toolchange unload sequence generated by PrusaSlicer with default settings.
        usb_timer.start();
   116c8:	8e e0       	ldi	r24, 0x0E	; 14
   116ca:	95 e0       	ldi	r25, 0x05	; 5
   116cc:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
    }

  if(max_inactive_time && previous_millis_cmd.expired(max_inactive_time))
   116d0:	40 91 7e 03 	lds	r20, 0x037E	; 0x80037e <max_inactive_time>
   116d4:	50 91 7f 03 	lds	r21, 0x037F	; 0x80037f <max_inactive_time+0x1>
   116d8:	60 91 80 03 	lds	r22, 0x0380	; 0x800380 <max_inactive_time+0x2>
   116dc:	70 91 81 03 	lds	r23, 0x0381	; 0x800381 <max_inactive_time+0x3>
   116e0:	41 15       	cp	r20, r1
   116e2:	51 05       	cpc	r21, r1
   116e4:	61 05       	cpc	r22, r1
   116e6:	71 05       	cpc	r23, r1
   116e8:	09 f0       	breq	.+2      	; 0x116ec <manage_inactivity(bool)+0x270>
   116ea:	3f c0       	rjmp	.+126    	; 0x1176a <manage_inactivity(bool)+0x2ee>
    kill(PSTR("Inactivity Shutdown"));
  if(stepper_inactive_time && previous_millis_cmd.expired(stepper_inactive_time)) {
   116ec:	40 91 34 02 	lds	r20, 0x0234	; 0x800234 <stepper_inactive_time>
   116f0:	50 91 35 02 	lds	r21, 0x0235	; 0x800235 <stepper_inactive_time+0x1>
   116f4:	60 91 36 02 	lds	r22, 0x0236	; 0x800236 <stepper_inactive_time+0x2>
   116f8:	70 91 37 02 	lds	r23, 0x0237	; 0x800237 <stepper_inactive_time+0x3>
   116fc:	41 15       	cp	r20, r1
   116fe:	51 05       	cpc	r21, r1
   11700:	61 05       	cpc	r22, r1
   11702:	71 05       	cpc	r23, r1
   11704:	a9 f0       	breq	.+42     	; 0x11730 <manage_inactivity(bool)+0x2b4>
   11706:	86 e8       	ldi	r24, 0x86	; 134
   11708:	93 e0       	ldi	r25, 0x03	; 3
   1170a:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   1170e:	88 23       	and	r24, r24
   11710:	79 f0       	breq	.+30     	; 0x11730 <manage_inactivity(bool)+0x2b4>
   11712:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   11716:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
    if(blocks_queued() == false && ignore_stepper_queue == false) {
   1171a:	98 13       	cpse	r25, r24
   1171c:	09 c0       	rjmp	.+18     	; 0x11730 <manage_inactivity(bool)+0x2b4>
   1171e:	c1 11       	cpse	r28, r1
   11720:	07 c0       	rjmp	.+14     	; 0x11730 <manage_inactivity(bool)+0x2b4>
      disable_x();
   11722:	17 9a       	sbi	0x02, 7	; 2
   11724:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
      disable_y();
   11728:	16 9a       	sbi	0x02, 6	; 2
   1172a:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
      disable_z();
      disable_e0();
   1172e:	14 9a       	sbi	0x02, 4	; 2
{
  uint8_t x_active = 0;
  uint8_t y_active = 0;
  uint8_t z_active = 0;
  uint8_t e_active = 0;
  uint8_t tail_fan_speed = fanSpeed;
   11730:	c0 91 e7 03 	lds	r28, 0x03E7	; 0x8003e7 <fanSpeed>
  block_t *block;

  if(block_buffer_tail != block_buffer_head)
   11734:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   11738:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   1173c:	98 17       	cp	r25, r24
   1173e:	01 f1       	breq	.+64     	; 0x11780 <manage_inactivity(bool)+0x304>
  {
    uint8_t block_index = block_buffer_tail;
   11740:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
    tail_fan_speed = block_buffer[block_index].fan_speed;
   11744:	9e e6       	ldi	r25, 0x6E	; 110
   11746:	89 9f       	mul	r24, r25
   11748:	f0 01       	movw	r30, r0
   1174a:	11 24       	eor	r1, r1
   1174c:	e5 5f       	subi	r30, 0xF5	; 245
   1174e:	f8 4f       	sbci	r31, 0xF8	; 248
   11750:	c0 81       	ld	r28, Z
    while(block_index != block_buffer_head)
   11752:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   11756:	98 17       	cp	r25, r24
   11758:	99 f0       	breq	.+38     	; 0x11780 <manage_inactivity(bool)+0x304>
      block = &block_buffer[block_index];
      if(block->steps[X_AXIS].wide != 0) x_active++;
      if(block->steps[Y_AXIS].wide != 0) y_active++;
      if(block->steps[Z_AXIS].wide != 0) z_active++;
      if(block->steps[E_AXIS].wide != 0) e_active++;
      block_index = (block_index+1) & (BLOCK_BUFFER_SIZE - 1);
   1175a:	8f 5f       	subi	r24, 0xFF	; 255
   1175c:	8f 70       	andi	r24, 0x0F	; 15
   1175e:	f9 cf       	rjmp	.-14     	; 0x11752 <manage_inactivity(bool)+0x2d6>
    {
        safetyTimer.stop();
    }
    else if ((CHECK_ALL_HEATERS) && !safetyTimer.running())
    {
        safetyTimer.start();
   11760:	8a ed       	ldi	r24, 0xDA	; 218
   11762:	95 e0       	ldi	r25, 0x05	; 5
   11764:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
   11768:	95 cf       	rjmp	.-214    	; 0x11694 <manage_inactivity(bool)+0x218>
        // Handle the case where planned moves may take a longer time to execute than the USB timer period.
        // An example is the toolchange unload sequence generated by PrusaSlicer with default settings.
        usb_timer.start();
    }

  if(max_inactive_time && previous_millis_cmd.expired(max_inactive_time))
   1176a:	86 e8       	ldi	r24, 0x86	; 134
   1176c:	93 e0       	ldi	r25, 0x03	; 3
   1176e:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   11772:	88 23       	and	r24, r24
   11774:	09 f4       	brne	.+2      	; 0x11778 <manage_inactivity(bool)+0x2fc>
   11776:	ba cf       	rjmp	.-140    	; 0x116ec <manage_inactivity(bool)+0x270>
    kill(PSTR("Inactivity Shutdown"));
   11778:	80 ed       	ldi	r24, 0xD0	; 208
   1177a:	9c e7       	ldi	r25, 0x7C	; 124
   1177c:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>
  if((DISABLE_Z) && (z_active == 0)) disable_z();
  if((DISABLE_E) && (e_active == 0)) disable_e0();
#if defined(FAN_PIN) && FAN_PIN > -1
  #ifdef FAN_KICKSTART_TIME
    static unsigned long fan_kick_end;
    if (tail_fan_speed) {
   11780:	cc 23       	and	r28, r28
   11782:	09 f4       	brne	.+2      	; 0x11786 <manage_inactivity(bool)+0x30a>
   11784:	9f c0       	rjmp	.+318    	; 0x118c4 <manage_inactivity(bool)+0x448>
      if (fan_kick_end == 0) {
   11786:	80 91 6c 03 	lds	r24, 0x036C	; 0x80036c <check_axes_activity()::fan_kick_end>
   1178a:	90 91 6d 03 	lds	r25, 0x036D	; 0x80036d <check_axes_activity()::fan_kick_end+0x1>
   1178e:	a0 91 6e 03 	lds	r26, 0x036E	; 0x80036e <check_axes_activity()::fan_kick_end+0x2>
   11792:	b0 91 6f 03 	lds	r27, 0x036F	; 0x80036f <check_axes_activity()::fan_kick_end+0x3>
   11796:	89 2b       	or	r24, r25
   11798:	8a 2b       	or	r24, r26
   1179a:	8b 2b       	or	r24, r27
   1179c:	81 f4       	brne	.+32     	; 0x117be <manage_inactivity(bool)+0x342>
        // Just starting up fan - run at full power.
        fan_kick_end = _millis() + FAN_KICKSTART_TIME;
   1179e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   117a2:	60 5e       	subi	r22, 0xE0	; 224
   117a4:	7c 4f       	sbci	r23, 0xFC	; 252
   117a6:	8f 4f       	sbci	r24, 0xFF	; 255
   117a8:	9f 4f       	sbci	r25, 0xFF	; 255
   117aa:	60 93 6c 03 	sts	0x036C, r22	; 0x80036c <check_axes_activity()::fan_kick_end>
   117ae:	70 93 6d 03 	sts	0x036D, r23	; 0x80036d <check_axes_activity()::fan_kick_end+0x1>
   117b2:	80 93 6e 03 	sts	0x036E, r24	; 0x80036e <check_axes_activity()::fan_kick_end+0x2>
   117b6:	90 93 6f 03 	sts	0x036F, r25	; 0x80036f <check_axes_activity()::fan_kick_end+0x3>
        tail_fan_speed = 255;
      } else if (fan_kick_end > _millis())
        // Fan still spinning up.
        tail_fan_speed = 255;
   117ba:	cf ef       	ldi	r28, 0xFF	; 255
   117bc:	0f c0       	rjmp	.+30     	; 0x117dc <manage_inactivity(bool)+0x360>
    if (tail_fan_speed) {
      if (fan_kick_end == 0) {
        // Just starting up fan - run at full power.
        fan_kick_end = _millis() + FAN_KICKSTART_TIME;
        tail_fan_speed = 255;
      } else if (fan_kick_end > _millis())
   117be:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   117c2:	00 91 6c 03 	lds	r16, 0x036C	; 0x80036c <check_axes_activity()::fan_kick_end>
   117c6:	10 91 6d 03 	lds	r17, 0x036D	; 0x80036d <check_axes_activity()::fan_kick_end+0x1>
   117ca:	20 91 6e 03 	lds	r18, 0x036E	; 0x80036e <check_axes_activity()::fan_kick_end+0x2>
   117ce:	30 91 6f 03 	lds	r19, 0x036F	; 0x80036f <check_axes_activity()::fan_kick_end+0x3>
   117d2:	60 17       	cp	r22, r16
   117d4:	71 07       	cpc	r23, r17
   117d6:	82 07       	cpc	r24, r18
   117d8:	93 07       	cpc	r25, r19
   117da:	78 f3       	brcs	.-34     	; 0x117ba <manage_inactivity(bool)+0x33e>
    } else {
      fan_kick_end = 0;
    }
  #endif//FAN_KICKSTART_TIME
  #ifdef FAN_SOFT_PWM
	if (fan_measuring) { //if measurement is currently in process, fanSpeedSoftPwm must remain set to 255, but we must update fanSpeedBckp value
   117dc:	80 91 6f 06 	lds	r24, 0x066F	; 0x80066f <fan_measuring>
   117e0:	88 23       	and	r24, r24
   117e2:	09 f4       	brne	.+2      	; 0x117e6 <manage_inactivity(bool)+0x36a>
   117e4:	78 c0       	rjmp	.+240    	; 0x118d6 <manage_inactivity(bool)+0x45a>
		fanSpeedBckp = tail_fan_speed;
   117e6:	c0 93 14 02 	sts	0x0214, r28	; 0x800214 <fanSpeedBckp>
void MMU2::mmu_loop() {
    // We only leave this method if the current command was successfully completed - that's the Marlin's way of blocking operation
    // Atomic compare_exchange would have been the most appropriate solution here, but this gets called only in Marlin's task,
    // so thread safety should be kept
    static bool avoidRecursion = false;
    if (avoidRecursion) {
   117ea:	80 91 0c 05 	lds	r24, 0x050C	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
   117ee:	81 11       	cpse	r24, r1
   117f0:	07 c0       	rjmp	.+14     	; 0x11800 <manage_inactivity(bool)+0x384>
        return;
    }
    avoidRecursion = true;
   117f2:	81 e0       	ldi	r24, 0x01	; 1
   117f4:	80 93 0c 05 	sts	0x050C, r24	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
    mmu_loop_inner(true);
   117f8:	0f 94 41 a7 	call	0x34e82	; 0x34e82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]>
    avoidRecursion = false;
   117fc:	10 92 0c 05 	sts	0x050C, r1	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
  lcd_draw_update = 2;
  lcd_beeper_quick_feedback();
}

void lcd_knob_update() {
	if (lcd_backlight_wake_trigger) {
   11800:	80 91 d3 05 	lds	r24, 0x05D3	; 0x8005d3 <_ZL26lcd_backlight_wake_trigger.lto_priv.540>
   11804:	88 23       	and	r24, r24
   11806:	e1 f1       	breq	.+120    	; 0x11880 <manage_inactivity(bool)+0x404>
		lcd_backlight_wake_trigger = false;
   11808:	10 92 d3 05 	sts	0x05D3, r1	; 0x8005d3 <_ZL26lcd_backlight_wake_trigger.lto_priv.540>
		backlight_wake();
   1180c:	80 e0       	ldi	r24, 0x00	; 0
   1180e:	0e 94 fc 89 	call	0x113f8	; 0x113f8 <backlight_wake(unsigned char)>
		bool did_rotate = false;
		ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   11812:	4f b7       	in	r20, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   11814:	f8 94       	cli
			if (abs(lcd_encoder_diff) >= ENCODER_PULSES_PER_STEP) {
   11816:	80 91 d1 05 	lds	r24, 0x05D1	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>
   1181a:	28 2f       	mov	r18, r24
   1181c:	08 2e       	mov	r0, r24
   1181e:	00 0c       	add	r0, r0
   11820:	33 0b       	sbc	r19, r19
   11822:	37 ff       	sbrs	r19, 7
   11824:	03 c0       	rjmp	.+6      	; 0x1182c <manage_inactivity(bool)+0x3b0>
   11826:	31 95       	neg	r19
   11828:	21 95       	neg	r18
   1182a:	31 09       	sbc	r19, r1
   1182c:	24 30       	cpi	r18, 0x04	; 4
   1182e:	31 05       	cpc	r19, r1
   11830:	0c f4       	brge	.+2      	; 0x11834 <manage_inactivity(bool)+0x3b8>
   11832:	54 c0       	rjmp	.+168    	; 0x118dc <manage_inactivity(bool)+0x460>
				lcd_encoder += lcd_encoder_diff / ENCODER_PULSES_PER_STEP;
   11834:	98 2f       	mov	r25, r24
   11836:	87 ff       	sbrs	r24, 7
   11838:	02 c0       	rjmp	.+4      	; 0x1183e <manage_inactivity(bool)+0x3c2>
   1183a:	93 e0       	ldi	r25, 0x03	; 3
   1183c:	98 0f       	add	r25, r24
   1183e:	95 95       	asr	r25
   11840:	95 95       	asr	r25
   11842:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   11846:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1184a:	29 0f       	add	r18, r25
   1184c:	31 1d       	adc	r19, r1
   1184e:	97 fd       	sbrc	r25, 7
   11850:	3a 95       	dec	r19
   11852:	30 93 71 06 	sts	0x0671, r19	; 0x800671 <lcd_encoder+0x1>
   11856:	20 93 70 06 	sts	0x0670, r18	; 0x800670 <lcd_encoder>
				lcd_encoder_diff %= ENCODER_PULSES_PER_STEP;
   1185a:	83 78       	andi	r24, 0x83	; 131
   1185c:	87 ff       	sbrs	r24, 7
   1185e:	03 c0       	rjmp	.+6      	; 0x11866 <manage_inactivity(bool)+0x3ea>
   11860:	81 50       	subi	r24, 0x01	; 1
   11862:	8c 6f       	ori	r24, 0xFC	; 252
   11864:	8f 5f       	subi	r24, 0xFF	; 255
   11866:	80 93 d1 05 	sts	0x05D1, r24	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   1186a:	4f bf       	out	0x3f, r20	; 63
				// Get lcd_encoder_diff in sync with the encoder hard steps.
				// We assume that a click happens only when the knob is rotated into a stable position
				lcd_encoder_diff = 0;
			}
		}
		Sound_MakeSound(did_rotate ? e_SOUND_TYPE_EncoderMove : e_SOUND_TYPE_ButtonEcho);
   1186c:	86 e0       	ldi	r24, 0x06	; 6
   1186e:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>

		if (lcd_draw_update == 0) {
   11872:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   11876:	81 11       	cpse	r24, r1
   11878:	03 c0       	rjmp	.+6      	; 0x11880 <manage_inactivity(bool)+0x404>
			// Update LCD rendering at minimum
			lcd_draw_update = 1;
   1187a:	81 e0       	ldi	r24, 0x01	; 1
   1187c:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
  #endif
  check_axes_activity();
  MMU2::mmu2.mmu_loop();

  lcd_knob_update();
  backlight_update();
   11880:	0e 94 95 89 	call	0x1132a	; 0x1132a <backlight_update()>

  // handle longpress
  if(lcd_longpress_trigger)
   11884:	80 91 d4 05 	lds	r24, 0x05D4	; 0x8005d4 <lcd_longpress_trigger>
   11888:	88 23       	and	r24, r24
   1188a:	61 f0       	breq	.+24     	; 0x118a4 <manage_inactivity(bool)+0x428>
  {
      lcd_consume_click(); // Reset trigger to prevent recursion
   1188c:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
      // long press is not possible in modal mode, wait until ready
      if (lcd_longpress_func && lcd_update_enabled)
   11890:	e0 91 17 04 	lds	r30, 0x0417	; 0x800417 <lcd_longpress_func>
   11894:	f0 91 18 04 	lds	r31, 0x0418	; 0x800418 <lcd_longpress_func+0x1>
   11898:	30 97       	sbiw	r30, 0x00	; 0
   1189a:	21 f0       	breq	.+8      	; 0x118a4 <manage_inactivity(bool)+0x428>
   1189c:	80 91 6e 02 	lds	r24, 0x026E	; 0x80026e <lcd_update_enabled>
   118a0:	81 11       	cpse	r24, r1
      {
          lcd_longpress_func();
   118a2:	19 95       	eicall
      }
  }

#if defined(AUTO_REPORT)
  host_autoreport();
   118a4:	0e 94 df 78 	call	0xf1be	; 0xf1be <host_autoreport()>
#endif //AUTO_REPORT
  host_keepalive();
   118a8:	0e 94 2e 7f 	call	0xfe5c	; 0xfe5c <host_keepalive()>
bool M79_timer_get_status() {
    return M79_timer.running();
}

void M79_timer_update_status() {
    M79_timer.expired(M79_TIMEOUT);
   118ac:	40 e3       	ldi	r20, 0x30	; 48
   118ae:	55 e7       	ldi	r21, 0x75	; 117
   118b0:	60 e0       	ldi	r22, 0x00	; 0
   118b2:	70 e0       	ldi	r23, 0x00	; 0
   118b4:	8e e9       	ldi	r24, 0x9E	; 158
   118b6:	93 e0       	ldi	r25, 0x03	; 3
  M79_timer_update_status();
}
   118b8:	df 91       	pop	r29
   118ba:	cf 91       	pop	r28
   118bc:	1f 91       	pop	r17
   118be:	0f 91       	pop	r16
   118c0:	0d 94 3c 2b 	jmp	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
        tail_fan_speed = 255;
      } else if (fan_kick_end > _millis())
        // Fan still spinning up.
        tail_fan_speed = 255;
    } else {
      fan_kick_end = 0;
   118c4:	10 92 6c 03 	sts	0x036C, r1	; 0x80036c <check_axes_activity()::fan_kick_end>
   118c8:	10 92 6d 03 	sts	0x036D, r1	; 0x80036d <check_axes_activity()::fan_kick_end+0x1>
   118cc:	10 92 6e 03 	sts	0x036E, r1	; 0x80036e <check_axes_activity()::fan_kick_end+0x2>
   118d0:	10 92 6f 03 	sts	0x036F, r1	; 0x80036f <check_axes_activity()::fan_kick_end+0x3>
   118d4:	83 cf       	rjmp	.-250    	; 0x117dc <manage_inactivity(bool)+0x360>
  #ifdef FAN_SOFT_PWM
	if (fan_measuring) { //if measurement is currently in process, fanSpeedSoftPwm must remain set to 255, but we must update fanSpeedBckp value
		fanSpeedBckp = tail_fan_speed;
	}
	else {
		fanSpeedSoftPwm = tail_fan_speed;
   118d6:	c0 93 a6 04 	sts	0x04A6, r28	; 0x8004a6 <fanSpeedSoftPwm>
   118da:	87 cf       	rjmp	.-242    	; 0x117ea <manage_inactivity(bool)+0x36e>
				did_rotate = true;
			}
			else {
				// Get lcd_encoder_diff in sync with the encoder hard steps.
				// We assume that a click happens only when the knob is rotated into a stable position
				lcd_encoder_diff = 0;
   118dc:	10 92 d1 05 	sts	0x05D1, r1	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>
   118e0:	4f bf       	out	0x3f, r20	; 63
			}
		}
		Sound_MakeSound(did_rotate ? e_SOUND_TYPE_EncoderMove : e_SOUND_TYPE_ButtonEcho);
   118e2:	80 e0       	ldi	r24, 0x00	; 0
   118e4:	c4 cf       	rjmp	.-120    	; 0x1186e <manage_inactivity(bool)+0x3f2>

000118e6 <delay_keep_alive(unsigned int)>:
#endif
#endif
}

void delay_keep_alive(unsigned int ms)
{
   118e6:	cf 93       	push	r28
   118e8:	df 93       	push	r29
   118ea:	ec 01       	movw	r28, r24
    for (;;) {
        manage_heater();
   118ec:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        // Manage inactivity, but don't disable steppers on timeout.
        manage_inactivity(true);
   118f0:	81 e0       	ldi	r24, 0x01	; 1
   118f2:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
        lcd_update(0);
   118f6:	80 e0       	ldi	r24, 0x00	; 0
   118f8:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
        if (ms == 0)
   118fc:	20 97       	sbiw	r28, 0x00	; 0
   118fe:	99 f0       	breq	.+38     	; 0x11926 <delay_keep_alive(unsigned int)+0x40>
            break;
        else if (ms >= 50) {
   11900:	c2 33       	cpi	r28, 0x32	; 50
   11902:	d1 05       	cpc	r29, r1
   11904:	40 f0       	brcs	.+16     	; 0x11916 <delay_keep_alive(unsigned int)+0x30>
            _delay(50);
   11906:	62 e3       	ldi	r22, 0x32	; 50
   11908:	70 e0       	ldi	r23, 0x00	; 0
   1190a:	80 e0       	ldi	r24, 0x00	; 0
   1190c:	90 e0       	ldi	r25, 0x00	; 0
   1190e:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
            ms -= 50;
   11912:	e2 97       	sbiw	r28, 0x32	; 50
   11914:	eb cf       	rjmp	.-42     	; 0x118ec <delay_keep_alive(unsigned int)+0x6>
        } else {
			_delay(ms);
   11916:	be 01       	movw	r22, r28
   11918:	90 e0       	ldi	r25, 0x00	; 0
   1191a:	80 e0       	ldi	r24, 0x00	; 0
   1191c:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
            ms = 0;
   11920:	d0 e0       	ldi	r29, 0x00	; 0
   11922:	c0 e0       	ldi	r28, 0x00	; 0
   11924:	e3 cf       	rjmp	.-58     	; 0x118ec <delay_keep_alive(unsigned int)+0x6>
        }
    }
}
   11926:	df 91       	pop	r29
   11928:	cf 91       	pop	r28
   1192a:	08 95       	ret

0001192c <mmu_M600_filament_change_screen(unsigned char)>:
/// @brief Re-use the MMU error screen UI to present choices for filament change
/// There are two button actions, Load and Eject
/// Load will exit the screen and continue as normally by asking the user which slot to load from
/// Eject will eject the depleted filament, very useful after FINDA runout events.
/// @param eject_slot the MMU slot to eject if the user selects the Eject button choice
static void mmu_M600_filament_change_screen(uint8_t eject_slot) {
   1192c:	cf 93       	push	r28
   1192e:	df 93       	push	r29
   11930:	c8 2f       	mov	r28, r24
    inline Buttons GetPrinterButtonOperation() {
        return printerButtonOperation;
    }

    inline void ClearPrinterButtonOperation() {
        printerButtonOperation = Buttons::NoButton;
   11932:	df ef       	ldi	r29, 0xFF	; 255
    MMU2::Buttons btn;
    for(;;)
    {
        manage_heater();
   11934:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity(true);
   11938:	81 e0       	ldi	r24, 0x01	; 1
   1193a:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
   1193e:	80 91 b8 13 	lds	r24, 0x13B8	; 0x8013b8 <MMU2::mmu2+0x6d>

        btn = MMU2::mmu2.GetPrinterButtonOperation();
        if (btn != MMU2::Buttons::NoButton)
   11942:	8f 3f       	cpi	r24, 0xFF	; 255
   11944:	d9 f4       	brne	.+54     	; 0x1197c <mmu_M600_filament_change_screen(unsigned char)+0x50>
    // special handling of explicit printer errors
    return IsPrinterError() ? StepStatus::PrinterError : currentStatus;
}

uint8_t ProtocolLogic::CommandInProgress() const {
    if (currentScope != Scope::Command) {
   11946:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   1194a:	84 30       	cpi	r24, 0x04	; 4
   1194c:	21 f4       	brne	.+8      	; 0x11956 <mmu_M600_filament_change_screen(unsigned char)+0x2a>
    };
    inline void InvokeErrorScreen(ErrorCode ec) {
        // The printer may not raise an error when the MMU is busy
        if (!logic.CommandInProgress() // MMU must not be busy
            && MMUCurrentErrorCode() == ErrorCode::OK // The protocol must not be in error state
            && lastErrorCode != ec) // The error code is not a duplicate
   1194e:	80 91 50 13 	lds	r24, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   11952:	81 11       	cpse	r24, r1
   11954:	ef cf       	rjmp	.-34     	; 0x11934 <mmu_M600_filament_change_screen(unsigned char)+0x8>
        return lastReadRegisterValue;
    };
    inline void InvokeErrorScreen(ErrorCode ec) {
        // The printer may not raise an error when the MMU is busy
        if (!logic.CommandInProgress() // MMU must not be busy
            && MMUCurrentErrorCode() == ErrorCode::OK // The protocol must not be in error state
   11956:	80 91 8b 13 	lds	r24, 0x138B	; 0x80138b <MMU2::mmu2+0x40>
   1195a:	90 91 8c 13 	lds	r25, 0x138C	; 0x80138c <MMU2::mmu2+0x41>
   1195e:	01 97       	sbiw	r24, 0x01	; 1
   11960:	49 f7       	brne	.-46     	; 0x11934 <mmu_M600_filament_change_screen(unsigned char)+0x8>
            && lastErrorCode != ec) // The error code is not a duplicate
   11962:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   11966:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   1196a:	89 32       	cpi	r24, 0x29	; 41
   1196c:	90 48       	sbci	r25, 0x80	; 128
   1196e:	11 f3       	breq	.-60     	; 0x11934 <mmu_M600_filament_change_screen(unsigned char)+0x8>
        {
            ReportError(ec, ErrorSource::ErrorSourcePrinter);
   11970:	60 e0       	ldi	r22, 0x00	; 0
   11972:	89 e2       	ldi	r24, 0x29	; 41
   11974:	90 e8       	ldi	r25, 0x80	; 128
   11976:	0f 94 30 84 	call	0x30860	; 0x30860 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]>
   1197a:	dc cf       	rjmp	.-72     	; 0x11934 <mmu_M600_filament_change_screen(unsigned char)+0x8>
    inline Buttons GetPrinterButtonOperation() {
        return printerButtonOperation;
    }

    inline void ClearPrinterButtonOperation() {
        printerButtonOperation = Buttons::NoButton;
   1197c:	d0 93 b8 13 	sts	0x13B8, r29	; 0x8013b8 <MMU2::mmu2+0x6d>
        {
            MMU2::mmu2.ClearPrinterButtonOperation();

            if (btn == MMU2::Buttons::Eject) {
   11980:	85 30       	cpi	r24, 0x05	; 5
   11982:	39 f4       	brne	.+14     	; 0x11992 <mmu_M600_filament_change_screen(unsigned char)+0x66>
                if (eject_slot != (uint8_t)MMU2::FILAMENT_UNKNOWN) {
   11984:	cf 3f       	cpi	r28, 0xFF	; 255
   11986:	f9 f2       	breq	.-66     	; 0x11946 <mmu_M600_filament_change_screen(unsigned char)+0x1a>
                    MMU2::mmu2.eject_filament(eject_slot, true);
   11988:	61 e0       	ldi	r22, 0x01	; 1
   1198a:	8c 2f       	mov	r24, r28
   1198c:	0f 94 d7 ad 	call	0x35bae	; 0x35bae <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]>
   11990:	d1 cf       	rjmp	.-94     	; 0x11934 <mmu_M600_filament_change_screen(unsigned char)+0x8>
                    // the operation is done. We must be careful to not raise FILAMENT_CHANGE
                    // screen too quickly
                    continue;
                }
            }
            else if (btn == MMU2::Buttons::Load)
   11992:	84 30       	cpi	r24, 0x04	; 4
   11994:	c1 f6       	brne	.-80     	; 0x11946 <mmu_M600_filament_change_screen(unsigned char)+0x1a>
            }
        }

        MMU2::mmu2.InvokeErrorScreen(ErrorCode::FILAMENT_CHANGE);
    }
}
   11996:	df 91       	pop	r29
   11998:	cf 91       	pop	r28
   1199a:	08 95       	ret

0001199c <__vector_29>:
#ifdef ADC_CALLBACK
extern void ADC_CALLBACK();
#endif //ADC_CALLBACK

ISR(ADC_vect)
{
   1199c:	1f 92       	push	r1
   1199e:	0f 92       	push	r0
   119a0:	0f b6       	in	r0, 0x3f	; 63
   119a2:	0f 92       	push	r0
   119a4:	11 24       	eor	r1, r1
   119a6:	0b b6       	in	r0, 0x3b	; 59
   119a8:	0f 92       	push	r0
   119aa:	2f 93       	push	r18
   119ac:	3f 93       	push	r19
   119ae:	4f 93       	push	r20
   119b0:	5f 93       	push	r21
   119b2:	6f 93       	push	r22
   119b4:	7f 93       	push	r23
   119b6:	8f 93       	push	r24
   119b8:	9f 93       	push	r25
   119ba:	af 93       	push	r26
   119bc:	bf 93       	push	r27
   119be:	ef 93       	push	r30
   119c0:	ff 93       	push	r31
    adc_values[adc_channel] += ADC;
   119c2:	20 91 78 00 	lds	r18, 0x0078	; 0x800078 <__TEXT_REGION_LENGTH__+0x7c2078>
   119c6:	30 91 79 00 	lds	r19, 0x0079	; 0x800079 <__TEXT_REGION_LENGTH__+0x7c2079>
   119ca:	e0 91 36 03 	lds	r30, 0x0336	; 0x800336 <adc_channel>
   119ce:	f0 e0       	ldi	r31, 0x00	; 0
   119d0:	ee 0f       	add	r30, r30
   119d2:	ff 1f       	adc	r31, r31
   119d4:	ea 5d       	subi	r30, 0xDA	; 218
   119d6:	fc 4f       	sbci	r31, 0xFC	; 252
   119d8:	80 81       	ld	r24, Z
   119da:	91 81       	ldd	r25, Z+1	; 0x01
   119dc:	82 0f       	add	r24, r18
   119de:	93 1f       	adc	r25, r19
   119e0:	91 83       	std	Z+1, r25	; 0x01
   119e2:	80 83       	st	Z, r24
    if (++adc_count == ADC_OVRSAMPL)
   119e4:	80 91 25 03 	lds	r24, 0x0325	; 0x800325 <adc_count>
   119e8:	8f 5f       	subi	r24, 0xFF	; 255
   119ea:	80 93 25 03 	sts	0x0325, r24	; 0x800325 <adc_count>
   119ee:	80 31       	cpi	r24, 0x10	; 16
   119f0:	09 f0       	breq	.+2      	; 0x119f4 <__vector_29+0x58>
   119f2:	56 c0       	rjmp	.+172    	; 0x11aa0 <__vector_29+0x104>
    {
        // go to the next channel
        if (++adc_channel == ADC_CHAN_CNT) {
   119f4:	80 91 36 03 	lds	r24, 0x0336	; 0x800336 <adc_channel>
   119f8:	8f 5f       	subi	r24, 0xFF	; 255
   119fa:	80 93 36 03 	sts	0x0336, r24	; 0x800336 <adc_channel>
   119fe:	88 30       	cpi	r24, 0x08	; 8
   11a00:	09 f0       	breq	.+2      	; 0x11a04 <__vector_29+0x68>
   11a02:	46 c0       	rjmp	.+140    	; 0x11a90 <__vector_29+0xf4>
#endif

// ISR callback from adc when sampling finished
void adc_callback()
{
    current_temperature_raw[0] = adc_values[ADC_PIN_IDX(TEMP_0_PIN)]; //heater
   11a04:	80 91 26 03 	lds	r24, 0x0326	; 0x800326 <adc_values>
   11a08:	90 91 27 03 	lds	r25, 0x0327	; 0x800327 <adc_values+0x1>
   11a0c:	90 93 0c 06 	sts	0x060C, r25	; 0x80060c <current_temperature_raw+0x1>
   11a10:	80 93 0b 06 	sts	0x060B, r24	; 0x80060b <current_temperature_raw>
    current_temperature_bed_raw = adc_values[ADC_PIN_IDX(TEMP_BED_PIN)];
   11a14:	80 91 2a 03 	lds	r24, 0x032A	; 0x80032a <adc_values+0x4>
   11a18:	90 91 2b 03 	lds	r25, 0x032B	; 0x80032b <adc_values+0x5>
   11a1c:	90 93 0a 06 	sts	0x060A, r25	; 0x80060a <current_temperature_bed_raw+0x1>
   11a20:	80 93 09 06 	sts	0x0609, r24	; 0x800609 <current_temperature_bed_raw>
#ifdef PINDA_THERMISTOR
    current_temperature_raw_pinda = adc_values[ADC_PIN_IDX(TEMP_PINDA_PIN)];
   11a24:	80 91 2c 03 	lds	r24, 0x032C	; 0x80032c <adc_values+0x6>
   11a28:	90 91 2d 03 	lds	r25, 0x032D	; 0x80032d <adc_values+0x7>
   11a2c:	90 93 08 06 	sts	0x0608, r25	; 0x800608 <current_temperature_raw_pinda+0x1>
   11a30:	80 93 07 06 	sts	0x0607, r24	; 0x800607 <current_temperature_raw_pinda>
#endif //PINDA_THERMISTOR
#ifdef AMBIENT_THERMISTOR
    current_temperature_raw_ambient = adc_values[ADC_PIN_IDX(TEMP_AMBIENT_PIN)]; // 5->6
   11a34:	80 91 30 03 	lds	r24, 0x0330	; 0x800330 <adc_values+0xa>
   11a38:	90 91 31 03 	lds	r25, 0x0331	; 0x800331 <adc_values+0xb>
   11a3c:	90 93 16 06 	sts	0x0616, r25	; 0x800616 <current_temperature_raw_ambient+0x1>
   11a40:	80 93 15 06 	sts	0x0615, r24	; 0x800615 <current_temperature_raw_ambient>
#endif //AMBIENT_THERMISTOR
#ifdef VOLT_PWR_PIN
    current_voltage_raw_pwr = adc_values[ADC_PIN_IDX(VOLT_PWR_PIN)];
   11a44:	80 91 2e 03 	lds	r24, 0x032E	; 0x80032e <adc_values+0x8>
   11a48:	90 91 2f 03 	lds	r25, 0x032F	; 0x80032f <adc_values+0x9>
   11a4c:	90 93 5d 06 	sts	0x065D, r25	; 0x80065d <current_voltage_raw_pwr+0x1>
   11a50:	80 93 5c 06 	sts	0x065C, r24	; 0x80065c <current_voltage_raw_pwr>
#endif
#ifdef VOLT_BED_PIN
    current_voltage_raw_bed = adc_values[ADC_PIN_IDX(VOLT_BED_PIN)]; // 6->9
   11a54:	80 91 34 03 	lds	r24, 0x0334	; 0x800334 <adc_values+0xe>
   11a58:	90 91 35 03 	lds	r25, 0x0335	; 0x800335 <adc_values+0xf>
   11a5c:	90 93 5b 06 	sts	0x065B, r25	; 0x80065b <current_voltage_raw_bed+0x1>
   11a60:	80 93 5a 06 	sts	0x065A, r24	; 0x80065a <current_voltage_raw_bed>
#endif
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    fsensor.voltUpdate(adc_values[ADC_PIN_IDX(VOLT_IR_PIN)]);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    adc_values_ready = true;
   11a64:	81 e0       	ldi	r24, 0x01	; 1
   11a66:	80 93 1c 05 	sts	0x051C, r24	; 0x80051c <_ZL16adc_values_ready.lto_priv.459>
                break;
            }
        }
    }
    ADCSRA |= (1 << ADSC); //start conversion
}
   11a6a:	ff 91       	pop	r31
   11a6c:	ef 91       	pop	r30
   11a6e:	bf 91       	pop	r27
   11a70:	af 91       	pop	r26
   11a72:	9f 91       	pop	r25
   11a74:	8f 91       	pop	r24
   11a76:	7f 91       	pop	r23
   11a78:	6f 91       	pop	r22
   11a7a:	5f 91       	pop	r21
   11a7c:	4f 91       	pop	r20
   11a7e:	3f 91       	pop	r19
   11a80:	2f 91       	pop	r18
   11a82:	0f 90       	pop	r0
   11a84:	0b be       	out	0x3b, r0	; 59
   11a86:	0f 90       	pop	r0
   11a88:	0f be       	out	0x3f, r0	; 63
   11a8a:	0f 90       	pop	r0
   11a8c:	1f 90       	pop	r1
   11a8e:	18 95       	reti
   11a90:	80 91 24 03 	lds	r24, 0x0324	; 0x800324 <__data_end>
            return; // do not start the next measurement since there are no channels remaining
        }

        // find the next channel
        while (++adc_channel_idx) {
            if (ADC_CHAN_MSK & (1 << adc_channel_idx)) {
   11a94:	4f e5       	ldi	r20, 0x5F	; 95
   11a96:	53 e0       	ldi	r21, 0x03	; 3
#endif
            return; // do not start the next measurement since there are no channels remaining
        }

        // find the next channel
        while (++adc_channel_idx) {
   11a98:	8f 5f       	subi	r24, 0xFF	; 255
   11a9a:	41 f4       	brne	.+16     	; 0x11aac <__vector_29+0x110>
   11a9c:	10 92 24 03 	sts	0x0324, r1	; 0x800324 <__data_end>
                adc_count = 0;
                break;
            }
        }
    }
    ADCSRA |= (1 << ADSC); //start conversion
   11aa0:	80 91 7a 00 	lds	r24, 0x007A	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   11aa4:	80 64       	ori	r24, 0x40	; 64
   11aa6:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   11aaa:	df cf       	rjmp	.-66     	; 0x11a6a <__vector_29+0xce>
            return; // do not start the next measurement since there are no channels remaining
        }

        // find the next channel
        while (++adc_channel_idx) {
            if (ADC_CHAN_MSK & (1 << adc_channel_idx)) {
   11aac:	9a 01       	movw	r18, r20
   11aae:	08 2e       	mov	r0, r24
   11ab0:	02 c0       	rjmp	.+4      	; 0x11ab6 <__vector_29+0x11a>
   11ab2:	35 95       	asr	r19
   11ab4:	27 95       	ror	r18
   11ab6:	0a 94       	dec	r0
   11ab8:	e2 f7       	brpl	.-8      	; 0x11ab2 <__vector_29+0x116>
   11aba:	20 ff       	sbrs	r18, 0
   11abc:	ed cf       	rjmp	.-38     	; 0x11a98 <__vector_29+0xfc>
   11abe:	80 93 24 03 	sts	0x0324, r24	; 0x800324 <__data_end>
                adc_setmux(adc_channel_idx);
   11ac2:	0e 94 da 5a 	call	0xb5b4	; 0xb5b4 <adc_setmux(unsigned char)>
                adc_count = 0;
   11ac6:	10 92 25 03 	sts	0x0325, r1	; 0x800325 <adc_count>
   11aca:	ea cf       	rjmp	.-44     	; 0x11aa0 <__vector_29+0x104>

00011acc <adc_start_cycle()>:
	if (ch & 0x08) ADCSRB |= (1 << MUX5);
	else ADCSRB &= ~(1 << MUX5);
	ADMUX = (ADMUX & ~(0x07)) | (ch & 0x07);
}

void adc_start_cycle() {
   11acc:	cf 93       	push	r28
   11ace:	df 93       	push	r29
static void adc_reset()
{
    static const uint8_t first_channel_idx = 0;
    static_assert((1 << first_channel_idx) & ADC_CHAN_MSK);

    ADCSRA &= ~(1 << ADSC); //stop conversion just in case
   11ad0:	ca e7       	ldi	r28, 0x7A	; 122
   11ad2:	d0 e0       	ldi	r29, 0x00	; 0
   11ad4:	88 81       	ld	r24, Y
   11ad6:	8f 7b       	andi	r24, 0xBF	; 191
   11ad8:	88 83       	st	Y, r24
    adc_count = 0;
   11ada:	10 92 25 03 	sts	0x0325, r1	; 0x800325 <adc_count>
    adc_channel = 0;
   11ade:	10 92 36 03 	sts	0x0336, r1	; 0x800336 <adc_channel>
    adc_channel_idx = first_channel_idx;
   11ae2:	10 92 24 03 	sts	0x0324, r1	; 0x800324 <__data_end>
    adc_setmux(adc_channel_idx);
   11ae6:	80 e0       	ldi	r24, 0x00	; 0
   11ae8:	0e 94 da 5a 	call	0xb5b4	; 0xb5b4 <adc_setmux(unsigned char)>
    memset((void*)adc_values, 0, sizeof(adc_values));
   11aec:	e6 e2       	ldi	r30, 0x26	; 38
   11aee:	f3 e0       	ldi	r31, 0x03	; 3
   11af0:	80 e1       	ldi	r24, 0x10	; 16
   11af2:	df 01       	movw	r26, r30
   11af4:	1d 92       	st	X+, r1
   11af6:	8a 95       	dec	r24
   11af8:	e9 f7       	brne	.-6      	; 0x11af4 <adc_start_cycle()+0x28>
	ADMUX = (ADMUX & ~(0x07)) | (ch & 0x07);
}

void adc_start_cycle() {
	adc_reset();
	ADCSRA |= (1 << ADSC); //start conversion
   11afa:	88 81       	ld	r24, Y
   11afc:	80 64       	ori	r24, 0x40	; 64
   11afe:	88 83       	st	Y, r24
}
   11b00:	df 91       	pop	r29
   11b02:	cf 91       	pop	r28
   11b04:	08 95       	ret

00011b06 <gcode_G80()>:
}


// G80 - Automatic mesh bed leveling
static void gcode_G80()
{
   11b06:	2f 92       	push	r2
   11b08:	3f 92       	push	r3
   11b0a:	4f 92       	push	r4
   11b0c:	5f 92       	push	r5
   11b0e:	6f 92       	push	r6
   11b10:	7f 92       	push	r7
   11b12:	8f 92       	push	r8
   11b14:	9f 92       	push	r9
   11b16:	af 92       	push	r10
   11b18:	bf 92       	push	r11
   11b1a:	cf 92       	push	r12
   11b1c:	df 92       	push	r13
   11b1e:	ef 92       	push	r14
   11b20:	ff 92       	push	r15
   11b22:	0f 93       	push	r16
   11b24:	1f 93       	push	r17
   11b26:	cf 93       	push	r28
   11b28:	df 93       	push	r29
   11b2a:	cd b7       	in	r28, 0x3d	; 61
   11b2c:	de b7       	in	r29, 0x3e	; 62
   11b2e:	a4 97       	sbiw	r28, 0x24	; 36
   11b30:	0f b6       	in	r0, 0x3f	; 63
   11b32:	f8 94       	cli
   11b34:	de bf       	out	0x3e, r29	; 62
   11b36:	0f be       	out	0x3f, r0	; 63
   11b38:	cd bf       	out	0x3d, r28	; 61
    constexpr float XY_AXIS_FEEDRATE = (homing_feedrate[X_AXIS] * 3) / 60;
    constexpr float Z_LIFT_FEEDRATE = homing_feedrate[Z_AXIS] / 60;
    constexpr float Z_CALIBRATION_THRESHOLD_TIGHT = 0.6f; // used for 7x7 MBL
    constexpr float Z_CALIBRATION_THRESHOLD_RELAXED = 1.f; // used for 3x3 MBL
    constexpr float MESH_HOME_Z_SEARCH_FAST = 0.35f;
    st_synchronize();
   11b3a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    if (planner_aborted)
   11b3e:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   11b42:	81 11       	cpse	r24, r1
   11b44:	17 c0       	rjmp	.+46     	; 0x11b74 <gcode_G80()+0x6e>
        return;

    mesh_bed_leveling_flag = true;
   11b46:	81 e0       	ldi	r24, 0x01	; 1
   11b48:	80 93 a8 0d 	sts	0x0DA8, r24	; 0x800da8 <mesh_bed_leveling_flag>

    // Firstly check if we know where we are
    if (!(axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && axis_known_position[Z_AXIS])) {
   11b4c:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
   11b50:	88 23       	and	r24, r24
   11b52:	49 f0       	breq	.+18     	; 0x11b66 <gcode_G80()+0x60>
   11b54:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
   11b58:	88 23       	and	r24, r24
   11b5a:	29 f0       	breq	.+10     	; 0x11b66 <gcode_G80()+0x60>
   11b5c:	20 91 91 06 	lds	r18, 0x0691	; 0x800691 <axis_known_position+0x2>
   11b60:	2f 83       	std	Y+7, r18	; 0x07
   11b62:	21 11       	cpse	r18, r1
   11b64:	20 c0       	rjmp	.+64     	; 0x11ba6 <gcode_G80()+0xa0>
   11b66:	81 e0       	ldi	r24, 0x01	; 1
   11b68:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
        // We don't know where we are! HOME!
        // Push the commands to the front of the message queue in the reverse order!
        // There shall be always enough space reserved for these commands.
        repeatcommand_front(); // repeat G80 with all its parameters
        enquecommand_front_P(G28W);
   11b6c:	80 e4       	ldi	r24, 0x40	; 64
   11b6e:	9b e6       	ldi	r25, 0x6B	; 107
   11b70:	0f 94 3f 76 	call	0x2ec7e	; 0x2ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>
    custom_message_state = custom_message_state_old;
    lcd_update(2);

    st_synchronize();
    mesh_bed_leveling_flag = false;
}
   11b74:	a4 96       	adiw	r28, 0x24	; 36
   11b76:	0f b6       	in	r0, 0x3f	; 63
   11b78:	f8 94       	cli
   11b7a:	de bf       	out	0x3e, r29	; 62
   11b7c:	0f be       	out	0x3f, r0	; 63
   11b7e:	cd bf       	out	0x3d, r28	; 61
   11b80:	df 91       	pop	r29
   11b82:	cf 91       	pop	r28
   11b84:	1f 91       	pop	r17
   11b86:	0f 91       	pop	r16
   11b88:	ff 90       	pop	r15
   11b8a:	ef 90       	pop	r14
   11b8c:	df 90       	pop	r13
   11b8e:	cf 90       	pop	r12
   11b90:	bf 90       	pop	r11
   11b92:	af 90       	pop	r10
   11b94:	9f 90       	pop	r9
   11b96:	8f 90       	pop	r8
   11b98:	7f 90       	pop	r7
   11b9a:	6f 90       	pop	r6
   11b9c:	5f 90       	pop	r5
   11b9e:	4f 90       	pop	r4
   11ba0:	3f 90       	pop	r3
   11ba2:	2f 90       	pop	r2
   11ba4:	08 95       	ret
        return;
    }
    run = false;
#endif //PINDA_THERMISTOR

    uint8_t nMeasPoints = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
   11ba6:	8b ea       	ldi	r24, 0xAB	; 171
   11ba8:	9d e0       	ldi	r25, 0x0D	; 13
   11baa:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   11bae:	18 2f       	mov	r17, r24
    if (uint8_t codeSeen = code_seen('N'), value = code_value_uint8(); codeSeen && (value == 7 || value == 3))
   11bb0:	8e e4       	ldi	r24, 0x4E	; 78
   11bb2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11bb6:	08 2f       	mov	r16, r24
   11bb8:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   11bbc:	8e 83       	std	Y+6, r24	; 0x06
   11bbe:	00 23       	and	r16, r16
   11bc0:	29 f0       	breq	.+10     	; 0x11bcc <gcode_G80()+0xc6>
   11bc2:	87 30       	cpi	r24, 0x07	; 7
   11bc4:	09 f4       	brne	.+2      	; 0x11bc8 <gcode_G80()+0xc2>
   11bc6:	c9 c0       	rjmp	.+402    	; 0x11d5a <gcode_G80()+0x254>
   11bc8:	83 30       	cpi	r24, 0x03	; 3
   11bca:	29 f0       	breq	.+10     	; 0x11bd6 <gcode_G80()+0xd0>
      nMeasPoints = value;

    // 7x7 region MBL needs tighter thresholds for triggering a Z realignment. This is because you want to have as little of a misalignment as possible between
    // the "inner" MBL region and "outer" MBL region which is interpolated from Z calibration values.
    const float Z_CALIBRATION_THRESHOLD = (nMeasPoints == 3) ? Z_CALIBRATION_THRESHOLD_RELAXED : Z_CALIBRATION_THRESHOLD_TIGHT;
   11bcc:	13 30       	cpi	r17, 0x03	; 3
   11bce:	09 f0       	breq	.+2      	; 0x11bd2 <gcode_G80()+0xcc>
   11bd0:	c3 c0       	rjmp	.+390    	; 0x11d58 <gcode_G80()+0x252>
   11bd2:	63 e0       	ldi	r22, 0x03	; 3
   11bd4:	6e 83       	std	Y+6, r22	; 0x06
   11bd6:	80 e0       	ldi	r24, 0x00	; 0
   11bd8:	90 e0       	ldi	r25, 0x00	; 0
   11bda:	a0 e8       	ldi	r26, 0x80	; 128
   11bdc:	bf e3       	ldi	r27, 0x3F	; 63
   11bde:	8a 83       	std	Y+2, r24	; 0x02
   11be0:	9b 83       	std	Y+3, r25	; 0x03
   11be2:	ac 83       	std	Y+4, r26	; 0x04
   11be4:	bd 83       	std	Y+5, r27	; 0x05

    uint8_t nProbeRetryCount = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
   11be6:	8a ea       	ldi	r24, 0xAA	; 170
   11be8:	9d e0       	ldi	r25, 0x0D	; 13
   11bea:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   11bee:	88 8f       	std	Y+24, r24	; 0x18
    if (uint8_t codeSeen = code_seen('C'), value = code_value_uint8(); codeSeen && value >= 1 && value <= 10)
   11bf0:	83 e4       	ldi	r24, 0x43	; 67
   11bf2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11bf6:	18 2f       	mov	r17, r24
   11bf8:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   11bfc:	11 23       	and	r17, r17
   11bfe:	29 f0       	breq	.+10     	; 0x11c0a <gcode_G80()+0x104>
   11c00:	88 23       	and	r24, r24
   11c02:	19 f0       	breq	.+6      	; 0x11c0a <gcode_G80()+0x104>
   11c04:	8b 30       	cpi	r24, 0x0B	; 11
   11c06:	08 f4       	brcc	.+2      	; 0x11c0a <gcode_G80()+0x104>
   11c08:	88 8f       	std	Y+24, r24	; 0x18
      nProbeRetryCount = value;

    const float area_min_x = code_seen('X') ? code_value() - x_mesh_density - X_PROBE_OFFSET_FROM_EXTRUDER : -INFINITY;
   11c0a:	88 e5       	ldi	r24, 0x58	; 88
   11c0c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11c10:	88 23       	and	r24, r24
   11c12:	09 f4       	brne	.+2      	; 0x11c16 <gcode_G80()+0x110>
   11c14:	ab c0       	rjmp	.+342    	; 0x11d6c <gcode_G80()+0x266>
   11c16:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   11c1a:	20 e0       	ldi	r18, 0x00	; 0
   11c1c:	30 e0       	ldi	r19, 0x00	; 0
   11c1e:	48 e0       	ldi	r20, 0x08	; 8
   11c20:	52 e4       	ldi	r21, 0x42	; 66
   11c22:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   11c26:	20 e0       	ldi	r18, 0x00	; 0
   11c28:	30 e0       	ldi	r19, 0x00	; 0
   11c2a:	48 eb       	ldi	r20, 0xB8	; 184
   11c2c:	51 e4       	ldi	r21, 0x41	; 65
   11c2e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   11c32:	6a 87       	std	Y+10, r22	; 0x0a
   11c34:	7b 87       	std	Y+11, r23	; 0x0b
   11c36:	8c 87       	std	Y+12, r24	; 0x0c
   11c38:	9d 87       	std	Y+13, r25	; 0x0d
    const float area_min_y = code_seen('Y') ? code_value() - y_mesh_density - Y_PROBE_OFFSET_FROM_EXTRUDER : -INFINITY;
   11c3a:	89 e5       	ldi	r24, 0x59	; 89
   11c3c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11c40:	88 23       	and	r24, r24
   11c42:	09 f4       	brne	.+2      	; 0x11c46 <gcode_G80()+0x140>
   11c44:	9c c0       	rjmp	.+312    	; 0x11d7e <gcode_G80()+0x278>
   11c46:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   11c4a:	20 e0       	ldi	r18, 0x00	; 0
   11c4c:	30 e0       	ldi	r19, 0x00	; 0
   11c4e:	48 e0       	ldi	r20, 0x08	; 8
   11c50:	52 e4       	ldi	r21, 0x42	; 66
   11c52:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   11c56:	20 e0       	ldi	r18, 0x00	; 0
   11c58:	30 e0       	ldi	r19, 0x00	; 0
   11c5a:	40 ea       	ldi	r20, 0xA0	; 160
   11c5c:	50 e4       	ldi	r21, 0x40	; 64
   11c5e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   11c62:	6c 8b       	std	Y+20, r22	; 0x14
   11c64:	7d 8b       	std	Y+21, r23	; 0x15
   11c66:	8e 8b       	std	Y+22, r24	; 0x16
   11c68:	9f 8b       	std	Y+23, r25	; 0x17
    const float area_max_x = code_seen('W') ? area_min_x + code_value() + 2 * x_mesh_density : INFINITY;
   11c6a:	87 e5       	ldi	r24, 0x57	; 87
   11c6c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11c70:	88 23       	and	r24, r24
   11c72:	09 f4       	brne	.+2      	; 0x11c76 <gcode_G80()+0x170>
   11c74:	89 c0       	rjmp	.+274    	; 0x11d88 <gcode_G80()+0x282>
   11c76:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   11c7a:	2a 85       	ldd	r18, Y+10	; 0x0a
   11c7c:	3b 85       	ldd	r19, Y+11	; 0x0b
   11c7e:	4c 85       	ldd	r20, Y+12	; 0x0c
   11c80:	5d 85       	ldd	r21, Y+13	; 0x0d
   11c82:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   11c86:	20 e0       	ldi	r18, 0x00	; 0
   11c88:	30 e0       	ldi	r19, 0x00	; 0
   11c8a:	48 e8       	ldi	r20, 0x88	; 136
   11c8c:	52 e4       	ldi	r21, 0x42	; 66
   11c8e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   11c92:	69 8f       	std	Y+25, r22	; 0x19
   11c94:	7a 8f       	std	Y+26, r23	; 0x1a
   11c96:	8b 8f       	std	Y+27, r24	; 0x1b
   11c98:	9c 8f       	std	Y+28, r25	; 0x1c
    const float area_max_y = code_seen('H') ? area_min_y + code_value() + 2 * y_mesh_density : INFINITY;
   11c9a:	88 e4       	ldi	r24, 0x48	; 72
   11c9c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   11ca0:	88 23       	and	r24, r24
   11ca2:	09 f4       	brne	.+2      	; 0x11ca6 <gcode_G80()+0x1a0>
   11ca4:	7a c0       	rjmp	.+244    	; 0x11d9a <gcode_G80()+0x294>
   11ca6:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   11caa:	2c 89       	ldd	r18, Y+20	; 0x14
   11cac:	3d 89       	ldd	r19, Y+21	; 0x15
   11cae:	4e 89       	ldd	r20, Y+22	; 0x16
   11cb0:	5f 89       	ldd	r21, Y+23	; 0x17
   11cb2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   11cb6:	20 e0       	ldi	r18, 0x00	; 0
   11cb8:	30 e0       	ldi	r19, 0x00	; 0
   11cba:	48 e8       	ldi	r20, 0x88	; 136
   11cbc:	52 e4       	ldi	r21, 0x42	; 66
   11cbe:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   11cc2:	6d 8f       	std	Y+29, r22	; 0x1d
   11cc4:	7e 8f       	std	Y+30, r23	; 0x1e
   11cc6:	8f 8f       	std	Y+31, r24	; 0x1f
   11cc8:	98 a3       	std	Y+32, r25	; 0x20

    mbl.reset(); //reset mesh bed leveling
   11cca:	0f 94 8c 8c 	call	0x31918	; 0x31918 <mesh_bed_leveling::reset() [clone .constprop.100]>
    mbl.z_values[0][0] = min_pos[Z_AXIS];
   11cce:	80 91 29 02 	lds	r24, 0x0229	; 0x800229 <min_pos+0x8>
   11cd2:	90 91 2a 02 	lds	r25, 0x022A	; 0x80022a <min_pos+0x9>
   11cd6:	a0 91 2b 02 	lds	r26, 0x022B	; 0x80022b <min_pos+0xa>
   11cda:	b0 91 2c 02 	lds	r27, 0x022C	; 0x80022c <min_pos+0xb>
   11cde:	80 93 c3 13 	sts	0x13C3, r24	; 0x8013c3 <mbl+0x1>
   11ce2:	90 93 c4 13 	sts	0x13C4, r25	; 0x8013c4 <mbl+0x2>
   11ce6:	a0 93 c5 13 	sts	0x13C5, r26	; 0x8013c5 <mbl+0x3>
   11cea:	b0 93 c6 13 	sts	0x13C6, r27	; 0x8013c6 <mbl+0x4>

    // Reset baby stepping to zero, if the babystepping has already been loaded before.
    babystep_undo();
   11cee:	0f 94 1a ca 	call	0x39434	; 0x39434 <babystep_undo()>
   11cf2:	05 ec       	ldi	r16, 0xC5	; 197
   11cf4:	1f e0       	ldi	r17, 0x0F	; 15
bool is_bed_z_jitter_data_valid()
// offsets of the Z heiths of the calibration points from the first point are saved as 16bit signed int, scaled to tenths of microns
// if at least one 16bit integer has different value then -1 (0x0FFFF), data are considered valid and function returns true, otherwise it returns false
{
	for (int8_t i = 0; i < 8; ++i) {
		if (eeprom_read_word((uint16_t*)(EEPROM_BED_CALIBRATION_Z_JITTER + i * 2)) != 0x0FFFF)
   11cf6:	c8 01       	movw	r24, r16
   11cf8:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   11cfc:	01 96       	adiw	r24, 0x01	; 1
   11cfe:	09 f0       	breq	.+2      	; 0x11d02 <gcode_G80()+0x1fc>
   11d00:	51 c0       	rjmp	.+162    	; 0x11da4 <gcode_G80()+0x29e>
   11d02:	0e 5f       	subi	r16, 0xFE	; 254
   11d04:	1f 4f       	sbci	r17, 0xFF	; 255

bool is_bed_z_jitter_data_valid()
// offsets of the Z heiths of the calibration points from the first point are saved as 16bit signed int, scaled to tenths of microns
// if at least one 16bit integer has different value then -1 (0x0FFFF), data are considered valid and function returns true, otherwise it returns false
{
	for (int8_t i = 0; i < 8; ++i) {
   11d06:	05 3d       	cpi	r16, 0xD5	; 213
   11d08:	8f e0       	ldi	r24, 0x0F	; 15
   11d0a:	18 07       	cpc	r17, r24
   11d0c:	a1 f7       	brne	.-24     	; 0x11cf6 <gcode_G80()+0x1f0>
		if (eeprom_read_word((uint16_t*)(EEPROM_BED_CALIBRATION_Z_JITTER + i * 2)) != 0x0FFFF)
            return true;
	}
    return false;
   11d0e:	21 2c       	mov	r2, r1
   11d10:	a2 ec       	ldi	r26, 0xC2	; 194
   11d12:	b3 e1       	ldi	r27, 0x13	; 19
   11d14:	ba a3       	std	Y+34, r27	; 0x22
   11d16:	a9 a3       	std	Y+33, r26	; 0x21
// offsets of the Z heiths of the calibration points from the first point are saved as 16bit signed int, scaled to tenths of microns
// if at least one 16bit integer has different value then -1 (0x0FFFF), data are considered valid and function returns true, otherwise it returns false
{
	for (int8_t i = 0; i < 8; ++i) {
		if (eeprom_read_word((uint16_t*)(EEPROM_BED_CALIBRATION_Z_JITTER + i * 2)) != 0x0FFFF)
            return true;
   11d18:	b9 87       	std	Y+9, r27	; 0x09
   11d1a:	a8 87       	std	Y+8, r26	; 0x08
   11d1c:	51 2c       	mov	r5, r1
   11d1e:	41 2c       	mov	r4, r1

    // Initialize the default mesh from eeprom and calculate how many points are to be probed
    bool has_z = is_bed_z_jitter_data_valid(); //checks if we have data from Z calibration (offsets of the Z heiths of the 8 calibration points from the first point)
    uint8_t meshPointsToProbe = 0;
   11d20:	31 2c       	mov	r3, r1
   11d22:	04 2d       	mov	r16, r4
    for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
        for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
            bool isOn3x3Mesh = ((row % 3 == 0) && (col % 3 == 0));
   11d24:	84 2d       	mov	r24, r4
   11d26:	63 e0       	ldi	r22, 0x03	; 3
   11d28:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   11d2c:	98 8b       	std	Y+16, r25	; 0x10
   11d2e:	68 84       	ldd	r6, Y+8	; 0x08
   11d30:	79 84       	ldd	r7, Y+9	; 0x09

    // Initialize the default mesh from eeprom and calculate how many points are to be probed
    bool has_z = is_bed_z_jitter_data_valid(); //checks if we have data from Z calibration (offsets of the Z heiths of the 8 calibration points from the first point)
    uint8_t meshPointsToProbe = 0;
    for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
        for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
   11d32:	10 e0       	ldi	r17, 0x00	; 0
            bool isOn3x3Mesh = ((row % 3 == 0) && (col % 3 == 0));
   11d34:	f8 89       	ldd	r31, Y+16	; 0x10
   11d36:	f1 11       	cpse	r31, r1
   11d38:	37 c0       	rjmp	.+110    	; 0x11da8 <gcode_G80()+0x2a2>
   11d3a:	81 2f       	mov	r24, r17
   11d3c:	63 e0       	ldi	r22, 0x03	; 3
   11d3e:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   11d42:	91 11       	cpse	r25, r1
   11d44:	31 c0       	rjmp	.+98     	; 0x11da8 <gcode_G80()+0x2a2>
            if (isOn3x3Mesh) {
                if (has_z && (row || col)) {
   11d46:	21 10       	cpse	r2, r1
   11d48:	3f c1       	rjmp	.+638    	; 0x11fc8 <gcode_G80()+0x4c2>
            } else {
                mbl.set_z(col, row, NAN);
            }

            // check for points that are skipped
            if (nMeasPoints == 3) {
   11d4a:	7e 81       	ldd	r23, Y+6	; 0x06
   11d4c:	73 30       	cpi	r23, 0x03	; 3
   11d4e:	09 f4       	brne	.+2      	; 0x11d52 <gcode_G80()+0x24c>
   11d50:	70 c0       	rjmp	.+224    	; 0x11e32 <gcode_G80()+0x32c>
   11d52:	8f 81       	ldd	r24, Y+7	; 0x07
   11d54:	8e 87       	std	Y+14, r24	; 0x0e
   11d56:	37 c0       	rjmp	.+110    	; 0x11dc6 <gcode_G80()+0x2c0>
    if (uint8_t codeSeen = code_seen('N'), value = code_value_uint8(); codeSeen && (value == 7 || value == 3))
      nMeasPoints = value;

    // 7x7 region MBL needs tighter thresholds for triggering a Z realignment. This is because you want to have as little of a misalignment as possible between
    // the "inner" MBL region and "outer" MBL region which is interpolated from Z calibration values.
    const float Z_CALIBRATION_THRESHOLD = (nMeasPoints == 3) ? Z_CALIBRATION_THRESHOLD_RELAXED : Z_CALIBRATION_THRESHOLD_TIGHT;
   11d58:	1e 83       	std	Y+6, r17	; 0x06
   11d5a:	6a e9       	ldi	r22, 0x9A	; 154
   11d5c:	79 e9       	ldi	r23, 0x99	; 153
   11d5e:	89 e1       	ldi	r24, 0x19	; 25
   11d60:	9f e3       	ldi	r25, 0x3F	; 63
   11d62:	6a 83       	std	Y+2, r22	; 0x02
   11d64:	7b 83       	std	Y+3, r23	; 0x03
   11d66:	8c 83       	std	Y+4, r24	; 0x04
   11d68:	9d 83       	std	Y+5, r25	; 0x05
   11d6a:	3d cf       	rjmp	.-390    	; 0x11be6 <gcode_G80()+0xe0>

    uint8_t nProbeRetryCount = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
    if (uint8_t codeSeen = code_seen('C'), value = code_value_uint8(); codeSeen && value >= 1 && value <= 10)
      nProbeRetryCount = value;

    const float area_min_x = code_seen('X') ? code_value() - x_mesh_density - X_PROBE_OFFSET_FROM_EXTRUDER : -INFINITY;
   11d6c:	80 e0       	ldi	r24, 0x00	; 0
   11d6e:	90 e0       	ldi	r25, 0x00	; 0
   11d70:	a0 e8       	ldi	r26, 0x80	; 128
   11d72:	bf ef       	ldi	r27, 0xFF	; 255
   11d74:	8a 87       	std	Y+10, r24	; 0x0a
   11d76:	9b 87       	std	Y+11, r25	; 0x0b
   11d78:	ac 87       	std	Y+12, r26	; 0x0c
   11d7a:	bd 87       	std	Y+13, r27	; 0x0d
   11d7c:	5e cf       	rjmp	.-324    	; 0x11c3a <gcode_G80()+0x134>
    const float area_min_y = code_seen('Y') ? code_value() - y_mesh_density - Y_PROBE_OFFSET_FROM_EXTRUDER : -INFINITY;
   11d7e:	60 e0       	ldi	r22, 0x00	; 0
   11d80:	70 e0       	ldi	r23, 0x00	; 0
   11d82:	80 e8       	ldi	r24, 0x80	; 128
   11d84:	9f ef       	ldi	r25, 0xFF	; 255
   11d86:	6d cf       	rjmp	.-294    	; 0x11c62 <gcode_G80()+0x15c>
    const float area_max_x = code_seen('W') ? area_min_x + code_value() + 2 * x_mesh_density : INFINITY;
   11d88:	80 e0       	ldi	r24, 0x00	; 0
   11d8a:	90 e0       	ldi	r25, 0x00	; 0
   11d8c:	a0 e8       	ldi	r26, 0x80	; 128
   11d8e:	bf e7       	ldi	r27, 0x7F	; 127
   11d90:	89 8f       	std	Y+25, r24	; 0x19
   11d92:	9a 8f       	std	Y+26, r25	; 0x1a
   11d94:	ab 8f       	std	Y+27, r26	; 0x1b
   11d96:	bc 8f       	std	Y+28, r27	; 0x1c
   11d98:	80 cf       	rjmp	.-256    	; 0x11c9a <gcode_G80()+0x194>
    const float area_max_y = code_seen('H') ? area_min_y + code_value() + 2 * y_mesh_density : INFINITY;
   11d9a:	60 e0       	ldi	r22, 0x00	; 0
   11d9c:	70 e0       	ldi	r23, 0x00	; 0
   11d9e:	80 e8       	ldi	r24, 0x80	; 128
   11da0:	9f e7       	ldi	r25, 0x7F	; 127
   11da2:	8f cf       	rjmp	.-226    	; 0x11cc2 <gcode_G80()+0x1bc>
   11da4:	2f 80       	ldd	r2, Y+7	; 0x07
   11da6:	b4 cf       	rjmp	.-152    	; 0x11d10 <gcode_G80()+0x20a>
    void reset();

    static float get_x(int i) { return BED_X(i) + X_PROBE_OFFSET_FROM_EXTRUDER; }
    static float get_y(int i) { return BED_Y(i) + Y_PROBE_OFFSET_FROM_EXTRUDER; }
    float get_z(float x, float y);
    void set_z(uint8_t ix, uint8_t iy, float z) { z_values[iy][ix] = z; }
   11da8:	60 e0       	ldi	r22, 0x00	; 0
   11daa:	70 e0       	ldi	r23, 0x00	; 0
   11dac:	80 ec       	ldi	r24, 0xC0	; 192
   11dae:	9f e7       	ldi	r25, 0x7F	; 127
   11db0:	d3 01       	movw	r26, r6
   11db2:	11 96       	adiw	r26, 0x01	; 1
   11db4:	6d 93       	st	X+, r22
   11db6:	7d 93       	st	X+, r23
   11db8:	8d 93       	st	X+, r24
   11dba:	9c 93       	st	X, r25
   11dbc:	14 97       	sbiw	r26, 0x04	; 4
            } else {
                mbl.set_z(col, row, NAN);
            }

            // check for points that are skipped
            if (nMeasPoints == 3) {
   11dbe:	be 81       	ldd	r27, Y+6	; 0x06
   11dc0:	b3 30       	cpi	r27, 0x03	; 3
   11dc2:	c1 f1       	breq	.+112    	; 0x11e34 <gcode_G80()+0x32e>
   11dc4:	1e 86       	std	Y+14, r1	; 0x0e
                if (!isOn3x3Mesh)
                    continue;
            } else {
                const float x_pos = BED_X(col);
   11dc6:	81 2f       	mov	r24, r17
   11dc8:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   11dcc:	4b 01       	movw	r8, r22
   11dce:	5c 01       	movw	r10, r24
                const float y_pos = BED_Y(row);
   11dd0:	80 2f       	mov	r24, r16
   11dd2:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   11dd6:	6b 01       	movw	r12, r22
   11dd8:	7c 01       	movw	r14, r24
                if ((x_pos < area_min_x || x_pos > area_max_x || y_pos < area_min_y || y_pos > area_max_y) && (!isOn3x3Mesh || has_z)) {
   11dda:	a5 01       	movw	r20, r10
   11ddc:	94 01       	movw	r18, r8
   11dde:	6a 85       	ldd	r22, Y+10	; 0x0a
   11de0:	7b 85       	ldd	r23, Y+11	; 0x0b
   11de2:	8c 85       	ldd	r24, Y+12	; 0x0c
   11de4:	9d 85       	ldd	r25, Y+13	; 0x0d
   11de6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   11dea:	18 16       	cp	r1, r24
   11dec:	0c f4       	brge	.+2      	; 0x11df0 <gcode_G80()+0x2ea>
   11dee:	1c c1       	rjmp	.+568    	; 0x12028 <gcode_G80()+0x522>
   11df0:	29 8d       	ldd	r18, Y+25	; 0x19
   11df2:	3a 8d       	ldd	r19, Y+26	; 0x1a
   11df4:	4b 8d       	ldd	r20, Y+27	; 0x1b
   11df6:	5c 8d       	ldd	r21, Y+28	; 0x1c
   11df8:	c5 01       	movw	r24, r10
   11dfa:	b4 01       	movw	r22, r8
   11dfc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   11e00:	18 16       	cp	r1, r24
   11e02:	0c f4       	brge	.+2      	; 0x11e06 <gcode_G80()+0x300>
   11e04:	11 c1       	rjmp	.+546    	; 0x12028 <gcode_G80()+0x522>
   11e06:	a7 01       	movw	r20, r14
   11e08:	96 01       	movw	r18, r12
   11e0a:	6c 89       	ldd	r22, Y+20	; 0x14
   11e0c:	7d 89       	ldd	r23, Y+21	; 0x15
   11e0e:	8e 89       	ldd	r24, Y+22	; 0x16
   11e10:	9f 89       	ldd	r25, Y+23	; 0x17
   11e12:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   11e16:	18 16       	cp	r1, r24
   11e18:	0c f4       	brge	.+2      	; 0x11e1c <gcode_G80()+0x316>
   11e1a:	06 c1       	rjmp	.+524    	; 0x12028 <gcode_G80()+0x522>
   11e1c:	2d 8d       	ldd	r18, Y+29	; 0x1d
   11e1e:	3e 8d       	ldd	r19, Y+30	; 0x1e
   11e20:	4f 8d       	ldd	r20, Y+31	; 0x1f
   11e22:	58 a1       	ldd	r21, Y+32	; 0x20
   11e24:	c7 01       	movw	r24, r14
   11e26:	b6 01       	movw	r22, r12
   11e28:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   11e2c:	18 16       	cp	r1, r24
   11e2e:	0c f4       	brge	.+2      	; 0x11e32 <gcode_G80()+0x32c>
   11e30:	fb c0       	rjmp	.+502    	; 0x12028 <gcode_G80()+0x522>
                    continue;
                }
            }

            // increment the total point counter if the points are not skipped
            meshPointsToProbe++;
   11e32:	33 94       	inc	r3

    // Initialize the default mesh from eeprom and calculate how many points are to be probed
    bool has_z = is_bed_z_jitter_data_valid(); //checks if we have data from Z calibration (offsets of the Z heiths of the 8 calibration points from the first point)
    uint8_t meshPointsToProbe = 0;
    for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
        for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
   11e34:	1f 5f       	subi	r17, 0xFF	; 255
   11e36:	24 e0       	ldi	r18, 0x04	; 4
   11e38:	62 0e       	add	r6, r18
   11e3a:	71 1c       	adc	r7, r1
   11e3c:	17 30       	cpi	r17, 0x07	; 7
   11e3e:	09 f0       	breq	.+2      	; 0x11e42 <gcode_G80()+0x33c>
   11e40:	79 cf       	rjmp	.-270    	; 0x11d34 <gcode_G80()+0x22e>
   11e42:	6f ef       	ldi	r22, 0xFF	; 255
   11e44:	46 1a       	sub	r4, r22
   11e46:	56 0a       	sbc	r5, r22
   11e48:	88 85       	ldd	r24, Y+8	; 0x08
   11e4a:	99 85       	ldd	r25, Y+9	; 0x09
   11e4c:	4c 96       	adiw	r24, 0x1c	; 28
   11e4e:	99 87       	std	Y+9, r25	; 0x09
   11e50:	88 87       	std	Y+8, r24	; 0x08
    babystep_undo();

    // Initialize the default mesh from eeprom and calculate how many points are to be probed
    bool has_z = is_bed_z_jitter_data_valid(); //checks if we have data from Z calibration (offsets of the Z heiths of the 8 calibration points from the first point)
    uint8_t meshPointsToProbe = 0;
    for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
   11e52:	97 e0       	ldi	r25, 0x07	; 7
   11e54:	49 16       	cp	r4, r25
   11e56:	51 04       	cpc	r5, r1
   11e58:	09 f0       	breq	.+2      	; 0x11e5c <gcode_G80()+0x356>
   11e5a:	63 cf       	rjmp	.-314    	; 0x11d22 <gcode_G80()+0x21c>

            // increment the total point counter if the points are not skipped
            meshPointsToProbe++;
        }
    }
    mbl.upsample_3x3(); //upsample the default mesh
   11e5c:	0f 94 35 a3 	call	0x3466a	; 0x3466a <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]>

    // Save custom message state, set a new custom message state to display: Calibrating point 9.
    CustomMsg custom_message_type_old = custom_message_type;
   11e60:	a0 91 c4 06 	lds	r26, 0x06C4	; 0x8006c4 <custom_message_type>
   11e64:	af 83       	std	Y+7, r26	; 0x07
    uint8_t custom_message_state_old = custom_message_state;
   11e66:	b0 91 f7 03 	lds	r27, 0x03F7	; 0x8003f7 <custom_message_state>
   11e6a:	b8 87       	std	Y+8, r27	; 0x08
    custom_message_type = CustomMsg::MeshBedLeveling;
   11e6c:	81 e0       	ldi	r24, 0x01	; 1
   11e6e:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
    custom_message_state = meshPointsToProbe + 10;
   11e72:	8a e0       	ldi	r24, 0x0A	; 10
   11e74:	83 0d       	add	r24, r3
   11e76:	80 93 f7 03 	sts	0x03F7, r24	; 0x8003f7 <custom_message_state>
    lcd_update(1);
   11e7a:	81 e0       	ldi	r24, 0x01	; 1
   11e7c:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

    // Lift Z to a safe position before probing the first point
    current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   11e80:	80 e0       	ldi	r24, 0x00	; 0
   11e82:	90 e0       	ldi	r25, 0x00	; 0
   11e84:	a0 ea       	ldi	r26, 0xA0	; 160
   11e86:	b0 e4       	ldi	r27, 0x40	; 64
   11e88:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   11e8c:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   11e90:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   11e94:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
    plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
   11e98:	65 e5       	ldi	r22, 0x55	; 85
   11e9a:	75 e5       	ldi	r23, 0x55	; 85
   11e9c:	85 e5       	ldi	r24, 0x55	; 85
   11e9e:	91 e4       	ldi	r25, 0x41	; 65
   11ea0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

    // Cycle through all points and probe them
    int l_feedmultiply = setup_for_endstop_move(false); //save feedrate and feedmultiply, sets feedmultiply to 100
   11ea4:	80 e0       	ldi	r24, 0x00	; 0
   11ea6:	0e 94 6f 66 	call	0xccde	; 0xccde <setup_for_endstop_move(bool) [clone .lto_priv.392]>
   11eaa:	9c a3       	std	Y+36, r25	; 0x24
   11eac:	8b a3       	std	Y+35, r24	; 0x23
   11eae:	31 2c       	mov	r3, r1
    uint8_t mesh_point = 0; //index number of calibration point
    while (mesh_point != MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS) {
        // Get coords of a measuring point.
        uint8_t ix = mesh_point % MESH_NUM_X_POINTS; // from 0 to MESH_NUM_X_POINTS - 1
   11eb0:	83 2d       	mov	r24, r3
   11eb2:	67 e0       	ldi	r22, 0x07	; 7
   11eb4:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   11eb8:	f8 2e       	mov	r15, r24
   11eba:	09 2f       	mov	r16, r25
        uint8_t iy = mesh_point / MESH_NUM_X_POINTS;
        if (iy & 1) ix = (MESH_NUM_X_POINTS - 1) - ix; // Zig zag
   11ebc:	68 2f       	mov	r22, r24
   11ebe:	70 e0       	ldi	r23, 0x00	; 0
   11ec0:	7f 87       	std	Y+15, r23	; 0x0f
   11ec2:	6e 87       	std	Y+14, r22	; 0x0e
   11ec4:	80 ff       	sbrs	r24, 0
   11ec6:	03 c0       	rjmp	.+6      	; 0x11ece <gcode_G80()+0x3c8>
   11ec8:	76 e0       	ldi	r23, 0x06	; 6
   11eca:	79 1b       	sub	r23, r25
   11ecc:	07 2f       	mov	r16, r23
        bool isOn3x3Mesh = ((ix % 3 == 0) && (iy % 3 == 0));
   11ece:	80 2f       	mov	r24, r16
   11ed0:	63 e0       	ldi	r22, 0x03	; 3
   11ed2:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   11ed6:	91 11       	cpse	r25, r1
   11ed8:	05 c0       	rjmp	.+10     	; 0x11ee4 <gcode_G80()+0x3de>
   11eda:	8f 2d       	mov	r24, r15
   11edc:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   11ee0:	11 e0       	ldi	r17, 0x01	; 1
   11ee2:	91 11       	cpse	r25, r1
   11ee4:	10 e0       	ldi	r17, 0x00	; 0
        float x_pos = BED_X(ix);
   11ee6:	80 2f       	mov	r24, r16
   11ee8:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   11eec:	68 8b       	std	Y+16, r22	; 0x10
   11eee:	79 8b       	std	Y+17, r23	; 0x11
   11ef0:	8a 8b       	std	Y+18, r24	; 0x12
   11ef2:	9b 8b       	std	Y+19, r25	; 0x13
        float y_pos = BED_Y(iy);
   11ef4:	8f 2d       	mov	r24, r15
   11ef6:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   11efa:	4b 01       	movw	r8, r22
   11efc:	5c 01       	movw	r10, r24

        if (nMeasPoints == 3) {
   11efe:	8e 81       	ldd	r24, Y+6	; 0x06
   11f00:	83 30       	cpi	r24, 0x03	; 3
   11f02:	09 f0       	breq	.+2      	; 0x11f06 <gcode_G80()+0x400>
   11f04:	99 c0       	rjmp	.+306    	; 0x12038 <gcode_G80()+0x532>
            if (!isOn3x3Mesh) {
   11f06:	11 11       	cpse	r17, r1
   11f08:	c8 c0       	rjmp	.+400    	; 0x1209a <gcode_G80()+0x594>
   11f0a:	27 e0       	ldi	r18, 0x07	; 7
   11f0c:	ae 85       	ldd	r26, Y+14	; 0x0e
   11f0e:	bf 85       	ldd	r27, Y+15	; 0x0f
   11f10:	2a 9f       	mul	r18, r26
   11f12:	f0 01       	movw	r30, r0
   11f14:	2b 9f       	mul	r18, r27
   11f16:	f0 0d       	add	r31, r0
   11f18:	11 24       	eor	r1, r1
   11f1a:	e0 0f       	add	r30, r16
   11f1c:	f1 1d       	adc	r31, r1
   11f1e:	ee 0f       	add	r30, r30
   11f20:	ff 1f       	adc	r31, r31
   11f22:	ee 0f       	add	r30, r30
   11f24:	ff 1f       	adc	r31, r31
   11f26:	ee 53       	subi	r30, 0x3E	; 62
   11f28:	fc 4e       	sbci	r31, 0xEC	; 236
   11f2a:	60 e0       	ldi	r22, 0x00	; 0
   11f2c:	70 e0       	ldi	r23, 0x00	; 0
   11f2e:	80 ec       	ldi	r24, 0xC0	; 192
   11f30:	9f e7       	ldi	r25, 0x7F	; 127
   11f32:	61 83       	std	Z+1, r22	; 0x01
   11f34:	72 83       	std	Z+2, r23	; 0x02
   11f36:	83 83       	std	Z+3, r24	; 0x03
   11f38:	94 83       	std	Z+4, r25	; 0x04
   11f3a:	33 94       	inc	r3
    plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);

    // Cycle through all points and probe them
    int l_feedmultiply = setup_for_endstop_move(false); //save feedrate and feedmultiply, sets feedmultiply to 100
    uint8_t mesh_point = 0; //index number of calibration point
    while (mesh_point != MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS) {
   11f3c:	e1 e3       	ldi	r30, 0x31	; 49
   11f3e:	3e 12       	cpse	r3, r30
   11f40:	b7 cf       	rjmp	.-146    	; 0x11eb0 <gcode_G80()+0x3aa>

        custom_message_state--;
        mesh_point++;
        lcd_update(1);
    }
    current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   11f42:	80 e0       	ldi	r24, 0x00	; 0
   11f44:	90 e0       	ldi	r25, 0x00	; 0
   11f46:	a0 ea       	ldi	r26, 0xA0	; 160
   11f48:	b0 e4       	ldi	r27, 0x40	; 64
   11f4a:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   11f4e:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   11f52:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   11f56:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
    plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
   11f5a:	65 e5       	ldi	r22, 0x55	; 85
   11f5c:	75 e5       	ldi	r23, 0x55	; 85
   11f5e:	85 e5       	ldi	r24, 0x55	; 85
   11f60:	91 e4       	ldi	r25, 0x41	; 65
   11f62:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   11f66:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    static uint8_t g80_fail_cnt = 0;
    if (mesh_point != MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS) {
   11f6a:	b1 e3       	ldi	r27, 0x31	; 49
   11f6c:	3b 16       	cp	r3, r27
   11f6e:	09 f4       	brne	.+2      	; 0x11f72 <gcode_G80()+0x46c>
   11f70:	33 c2       	rjmp	.+1126   	; 0x123d8 <gcode_G80()+0x8d2>
        if (g80_fail_cnt++ >= 1) {
   11f72:	80 91 6a 03 	lds	r24, 0x036A	; 0x80036a <gcode_G80()::g80_fail_cnt>
   11f76:	91 e0       	ldi	r25, 0x01	; 1
   11f78:	98 0f       	add	r25, r24
   11f7a:	90 93 6a 03 	sts	0x036A, r25	; 0x80036a <gcode_G80()::g80_fail_cnt>
   11f7e:	88 23       	and	r24, r24
   11f80:	09 f4       	brne	.+2      	; 0x11f84 <gcode_G80()+0x47e>
   11f82:	d3 c1       	rjmp	.+934    	; 0x1232a <gcode_G80()+0x824>
            print_stop();
   11f84:	60 e0       	ldi	r22, 0x00	; 0
   11f86:	80 e0       	ldi	r24, 0x00	; 0
   11f88:	0e 94 7f f5 	call	0x1eafe	; 0x1eafe <print_stop(bool, bool)>
            lcd_show_fullscreen_message_and_wait_P(_T(MSG_MBL_FAILED));
   11f8c:	86 e4       	ldi	r24, 0x46	; 70
   11f8e:	96 e3       	ldi	r25, 0x36	; 54
   11f90:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   11f94:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
            lcd_z_calibration_prompt(false);
   11f98:	80 e0       	ldi	r24, 0x00	; 0
   11f9a:	0f 94 c2 0d 	call	0x21b84	; 0x21b84 <lcd_z_calibration_prompt(bool)>
        current_position[E_AXIS] += default_retraction;
        plan_buffer_line_curposXYZE(400);
    }
#endif // !PINDA_THERMISTOR
exit:
    KEEPALIVE_STATE(NOT_BUSY);
   11f9e:	81 e0       	ldi	r24, 0x01	; 1
   11fa0:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    // Restore custom message state
    lcd_setstatuspgm(MSG_WELCOME);
   11fa4:	8f ec       	ldi	r24, 0xCF	; 207
   11fa6:	9f e6       	ldi	r25, 0x6F	; 111
   11fa8:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    custom_message_type = custom_message_type_old;
   11fac:	2f 81       	ldd	r18, Y+7	; 0x07
   11fae:	20 93 c4 06 	sts	0x06C4, r18	; 0x8006c4 <custom_message_type>
    custom_message_state = custom_message_state_old;
   11fb2:	68 85       	ldd	r22, Y+8	; 0x08
   11fb4:	60 93 f7 03 	sts	0x03F7, r22	; 0x8003f7 <custom_message_state>
    lcd_update(2);
   11fb8:	82 e0       	ldi	r24, 0x02	; 2
   11fba:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

    st_synchronize();
   11fbe:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    mesh_bed_leveling_flag = false;
   11fc2:	10 92 a8 0d 	sts	0x0DA8, r1	; 0x800da8 <mesh_bed_leveling_flag>
   11fc6:	d6 cd       	rjmp	.-1108   	; 0x11b74 <gcode_G80()+0x6e>
    uint8_t meshPointsToProbe = 0;
    for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
        for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
            bool isOn3x3Mesh = ((row % 3 == 0) && (col % 3 == 0));
            if (isOn3x3Mesh) {
                if (has_z && (row || col)) {
   11fc8:	01 11       	cpse	r16, r1
   11fca:	03 c0       	rjmp	.+6      	; 0x11fd2 <gcode_G80()+0x4cc>
   11fcc:	11 23       	and	r17, r17
   11fce:	09 f4       	brne	.+2      	; 0x11fd2 <gcode_G80()+0x4cc>
   11fd0:	bc ce       	rjmp	.-648    	; 0x11d4a <gcode_G80()+0x244>
                    // Reconstruct the mesh saved in eeprom
                    uint16_t z_offset_u = eeprom_read_word((uint16_t*)(EEPROM_BED_CALIBRATION_Z_JITTER + 2 * ((col/3) + row - 1)));
   11fd2:	81 2f       	mov	r24, r17
   11fd4:	63 e0       	ldi	r22, 0x03	; 3
   11fd6:	0f 94 16 dd 	call	0x3ba2c	; 0x3ba2c <__divmodqi4>
   11fda:	84 0d       	add	r24, r4
   11fdc:	95 2d       	mov	r25, r5
   11fde:	91 1d       	adc	r25, r1
   11fe0:	88 0f       	add	r24, r24
   11fe2:	99 1f       	adc	r25, r25
   11fe4:	8d 53       	subi	r24, 0x3D	; 61
   11fe6:	90 4f       	sbci	r25, 0xF0	; 240
   11fe8:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
                    const float z0 = mbl.z_values[0][0] + *reinterpret_cast<int16_t*>(&z_offset_u) * 0.01;
   11fec:	bc 01       	movw	r22, r24
   11fee:	99 0f       	add	r25, r25
   11ff0:	88 0b       	sbc	r24, r24
   11ff2:	99 0b       	sbc	r25, r25
   11ff4:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   11ff8:	2a e0       	ldi	r18, 0x0A	; 10
   11ffa:	37 ed       	ldi	r19, 0xD7	; 215
   11ffc:	43 e2       	ldi	r20, 0x23	; 35
   11ffe:	5c e3       	ldi	r21, 0x3C	; 60
   12000:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   12004:	9b 01       	movw	r18, r22
   12006:	ac 01       	movw	r20, r24
   12008:	60 91 c3 13 	lds	r22, 0x13C3	; 0x8013c3 <mbl+0x1>
   1200c:	70 91 c4 13 	lds	r23, 0x13C4	; 0x8013c4 <mbl+0x2>
   12010:	80 91 c5 13 	lds	r24, 0x13C5	; 0x8013c5 <mbl+0x3>
   12014:	90 91 c6 13 	lds	r25, 0x13C6	; 0x8013c6 <mbl+0x4>
   12018:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1201c:	f3 01       	movw	r30, r6
   1201e:	61 83       	std	Z+1, r22	; 0x01
   12020:	72 83       	std	Z+2, r23	; 0x02
   12022:	83 83       	std	Z+3, r24	; 0x03
   12024:	94 83       	std	Z+4, r25	; 0x04
   12026:	91 ce       	rjmp	.-734    	; 0x11d4a <gcode_G80()+0x244>
                if (!isOn3x3Mesh)
                    continue;
            } else {
                const float x_pos = BED_X(col);
                const float y_pos = BED_Y(row);
                if ((x_pos < area_min_x || x_pos > area_max_x || y_pos < area_min_y || y_pos > area_max_y) && (!isOn3x3Mesh || has_z)) {
   12028:	fe 85       	ldd	r31, Y+14	; 0x0e
   1202a:	ff 23       	and	r31, r31
   1202c:	09 f4       	brne	.+2      	; 0x12030 <gcode_G80()+0x52a>
   1202e:	02 cf       	rjmp	.-508    	; 0x11e34 <gcode_G80()+0x32e>
   12030:	22 20       	and	r2, r2
   12032:	09 f4       	brne	.+2      	; 0x12036 <gcode_G80()+0x530>
   12034:	fe ce       	rjmp	.-516    	; 0x11e32 <gcode_G80()+0x32c>
   12036:	fe ce       	rjmp	.-516    	; 0x11e34 <gcode_G80()+0x32e>
            if (!isOn3x3Mesh) {
                mesh_point++;
                mbl.set_z(ix, iy, NAN);
                continue; //skip
            }
        } else if ((x_pos < area_min_x || x_pos > area_max_x || y_pos < area_min_y || y_pos > area_max_y) && (!isOn3x3Mesh || has_z)) {
   12038:	28 89       	ldd	r18, Y+16	; 0x10
   1203a:	39 89       	ldd	r19, Y+17	; 0x11
   1203c:	4a 89       	ldd	r20, Y+18	; 0x12
   1203e:	5b 89       	ldd	r21, Y+19	; 0x13
   12040:	6a 85       	ldd	r22, Y+10	; 0x0a
   12042:	7b 85       	ldd	r23, Y+11	; 0x0b
   12044:	8c 85       	ldd	r24, Y+12	; 0x0c
   12046:	9d 85       	ldd	r25, Y+13	; 0x0d
   12048:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1204c:	18 16       	cp	r1, r24
   1204e:	04 f1       	brlt	.+64     	; 0x12090 <gcode_G80()+0x58a>
   12050:	28 89       	ldd	r18, Y+16	; 0x10
   12052:	39 89       	ldd	r19, Y+17	; 0x11
   12054:	4a 89       	ldd	r20, Y+18	; 0x12
   12056:	5b 89       	ldd	r21, Y+19	; 0x13
   12058:	69 8d       	ldd	r22, Y+25	; 0x19
   1205a:	7a 8d       	ldd	r23, Y+26	; 0x1a
   1205c:	8b 8d       	ldd	r24, Y+27	; 0x1b
   1205e:	9c 8d       	ldd	r25, Y+28	; 0x1c
   12060:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   12064:	87 fd       	sbrc	r24, 7
   12066:	14 c0       	rjmp	.+40     	; 0x12090 <gcode_G80()+0x58a>
   12068:	a5 01       	movw	r20, r10
   1206a:	94 01       	movw	r18, r8
   1206c:	6c 89       	ldd	r22, Y+20	; 0x14
   1206e:	7d 89       	ldd	r23, Y+21	; 0x15
   12070:	8e 89       	ldd	r24, Y+22	; 0x16
   12072:	9f 89       	ldd	r25, Y+23	; 0x17
   12074:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   12078:	18 16       	cp	r1, r24
   1207a:	54 f0       	brlt	.+20     	; 0x12090 <gcode_G80()+0x58a>
   1207c:	a5 01       	movw	r20, r10
   1207e:	94 01       	movw	r18, r8
   12080:	6d 8d       	ldd	r22, Y+29	; 0x1d
   12082:	7e 8d       	ldd	r23, Y+30	; 0x1e
   12084:	8f 8d       	ldd	r24, Y+31	; 0x1f
   12086:	98 a1       	ldd	r25, Y+32	; 0x20
   12088:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1208c:	87 ff       	sbrs	r24, 7
   1208e:	05 c0       	rjmp	.+10     	; 0x1209a <gcode_G80()+0x594>
   12090:	11 23       	and	r17, r17
   12092:	09 f4       	brne	.+2      	; 0x12096 <gcode_G80()+0x590>
   12094:	52 cf       	rjmp	.-348    	; 0x11f3a <gcode_G80()+0x434>
   12096:	21 10       	cpse	r2, r1
   12098:	50 cf       	rjmp	.-352    	; 0x11f3a <gcode_G80()+0x434>
            mesh_point++;
            continue; //skip
        }

        // Move Z up to the probe height of the current Z point.
        const float z0 = mbl.z_values[iy][ix];
   1209a:	10 e0       	ldi	r17, 0x00	; 0
   1209c:	a7 e0       	ldi	r26, 0x07	; 7
   1209e:	8e 85       	ldd	r24, Y+14	; 0x0e
   120a0:	9f 85       	ldd	r25, Y+15	; 0x0f
   120a2:	a8 9f       	mul	r26, r24
   120a4:	f0 01       	movw	r30, r0
   120a6:	a9 9f       	mul	r26, r25
   120a8:	f0 0d       	add	r31, r0
   120aa:	11 24       	eor	r1, r1
   120ac:	e0 0f       	add	r30, r16
   120ae:	f1 1f       	adc	r31, r17
   120b0:	ee 0f       	add	r30, r30
   120b2:	ff 1f       	adc	r31, r31
   120b4:	ee 0f       	add	r30, r30
   120b6:	ff 1f       	adc	r31, r31
   120b8:	ee 53       	subi	r30, 0x3E	; 62
   120ba:	fc 4e       	sbci	r31, 0xEC	; 236
   120bc:	41 80       	ldd	r4, Z+1	; 0x01
   120be:	52 80       	ldd	r5, Z+2	; 0x02
   120c0:	63 80       	ldd	r6, Z+3	; 0x03
   120c2:	74 80       	ldd	r7, Z+4	; 0x04
        const float init_z_bckp = !has_z ? MESH_HOME_Z_SEARCH : z0 + MESH_HOME_Z_SEARCH_FAST;
   120c4:	c1 2c       	mov	r12, r1
   120c6:	d1 2c       	mov	r13, r1
   120c8:	e0 ea       	ldi	r30, 0xA0	; 160
   120ca:	ee 2e       	mov	r14, r30
   120cc:	e0 e4       	ldi	r30, 0x40	; 64
   120ce:	fe 2e       	mov	r15, r30
   120d0:	22 20       	and	r2, r2
   120d2:	51 f0       	breq	.+20     	; 0x120e8 <gcode_G80()+0x5e2>
   120d4:	23 e3       	ldi	r18, 0x33	; 51
   120d6:	33 e3       	ldi	r19, 0x33	; 51
   120d8:	43 eb       	ldi	r20, 0xB3	; 179
   120da:	5e e3       	ldi	r21, 0x3E	; 62
   120dc:	c3 01       	movw	r24, r6
   120de:	b2 01       	movw	r22, r4
   120e0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   120e4:	6b 01       	movw	r12, r22
   120e6:	7c 01       	movw	r14, r24
        if (init_z_bckp > current_position[Z_AXIS]) {
   120e8:	a7 01       	movw	r20, r14
   120ea:	96 01       	movw	r18, r12
   120ec:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   120f0:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   120f4:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   120f8:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   120fc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   12100:	87 ff       	sbrs	r24, 7
   12102:	10 c0       	rjmp	.+32     	; 0x12124 <gcode_G80()+0x61e>
            current_position[Z_AXIS] = init_z_bckp;
   12104:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   12108:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   1210c:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   12110:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
   12114:	65 e5       	ldi	r22, 0x55	; 85
   12116:	75 e5       	ldi	r23, 0x55	; 85
   12118:	85 e5       	ldi	r24, 0x55	; 85
   1211a:	91 e4       	ldi	r25, 0x41	; 65
   1211c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   12120:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        }

        // Move to XY position of the sensor point.
        current_position[X_AXIS] = x_pos;
   12124:	68 89       	ldd	r22, Y+16	; 0x10
   12126:	79 89       	ldd	r23, Y+17	; 0x11
   12128:	8a 89       	ldd	r24, Y+18	; 0x12
   1212a:	9b 89       	ldd	r25, Y+19	; 0x13
   1212c:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   12130:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   12134:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   12138:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = y_pos;
   1213c:	80 92 96 06 	sts	0x0696, r8	; 0x800696 <current_position+0x4>
   12140:	90 92 97 06 	sts	0x0697, r9	; 0x800697 <current_position+0x5>
   12144:	a0 92 98 06 	sts	0x0698, r10	; 0x800698 <current_position+0x6>
   12148:	b0 92 99 06 	sts	0x0699, r11	; 0x800699 <current_position+0x7>

        world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
   1214c:	66 e9       	ldi	r22, 0x96	; 150
   1214e:	76 e0       	ldi	r23, 0x06	; 6
   12150:	82 e9       	ldi	r24, 0x92	; 146
   12152:	96 e0       	ldi	r25, 0x06	; 6
   12154:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>

        plan_buffer_line_curposXYZE(XY_AXIS_FEEDRATE);
   12158:	60 e0       	ldi	r22, 0x00	; 0
   1215a:	70 e0       	ldi	r23, 0x00	; 0
   1215c:	86 e1       	ldi	r24, 0x16	; 22
   1215e:	93 e4       	ldi	r25, 0x43	; 67
   12160:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   12164:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        if (planner_aborted)
   12168:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   1216c:	88 23       	and	r24, r24
   1216e:	39 f0       	breq	.+14     	; 0x1217e <gcode_G80()+0x678>
        {
            custom_message_type = custom_message_type_old;
   12170:	7f 81       	ldd	r23, Y+7	; 0x07
   12172:	70 93 c4 06 	sts	0x06C4, r23	; 0x8006c4 <custom_message_type>
            custom_message_state = custom_message_state_old;
   12176:	88 85       	ldd	r24, Y+8	; 0x08
   12178:	80 93 f7 03 	sts	0x03F7, r24	; 0x8003f7 <custom_message_state>
   1217c:	fb cc       	rjmp	.-1546   	; 0x11b74 <gcode_G80()+0x6e>
            return;
        }

        // Go down until endstop is hit
        if (!find_bed_induction_sensor_point_z(has_z ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetryCount)) { //if we have data from z calibration max allowed difference is 1mm for each point, if we dont have data max difference is 10mm from initial point
   1217e:	81 2c       	mov	r8, r1
   12180:	91 2c       	mov	r9, r1
   12182:	70 e2       	ldi	r23, 0x20	; 32
   12184:	a7 2e       	mov	r10, r23
   12186:	71 ec       	ldi	r23, 0xC1	; 193
   12188:	b7 2e       	mov	r11, r23
   1218a:	22 20       	and	r2, r2
   1218c:	51 f0       	breq	.+20     	; 0x121a2 <gcode_G80()+0x69c>
   1218e:	2a 81       	ldd	r18, Y+2	; 0x02
   12190:	3b 81       	ldd	r19, Y+3	; 0x03
   12192:	4c 81       	ldd	r20, Y+4	; 0x04
   12194:	5d 81       	ldd	r21, Y+5	; 0x05
   12196:	c3 01       	movw	r24, r6
   12198:	b2 01       	movw	r22, r4
   1219a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1219e:	4b 01       	movw	r8, r22
   121a0:	5c 01       	movw	r10, r24
   121a2:	48 8d       	ldd	r20, Y+24	; 0x18
   121a4:	c5 01       	movw	r24, r10
   121a6:	b4 01       	movw	r22, r8
   121a8:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
   121ac:	81 11       	cpse	r24, r1
   121ae:	0b c0       	rjmp	.+22     	; 0x121c6 <gcode_G80()+0x6c0>
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
            plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
            st_synchronize();

            if (!find_bed_induction_sensor_point_z(has_z ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetryCount)) { //if we have data from z calibration max allowed difference is 1mm for each point, if we dont have data max difference is 10mm from initial point
                printf_P(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
   121b0:	8f e8       	ldi	r24, 0x8F	; 143
   121b2:	93 e6       	ldi	r25, 0x63	; 99
   121b4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   121b8:	9f 93       	push	r25
   121ba:	8f 93       	push	r24
   121bc:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   121c0:	0f 90       	pop	r0
   121c2:	0f 90       	pop	r0
   121c4:	be ce       	rjmp	.-644    	; 0x11f42 <gcode_G80()+0x43c>
        // Go down until endstop is hit
        if (!find_bed_induction_sensor_point_z(has_z ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetryCount)) { //if we have data from z calibration max allowed difference is 1mm for each point, if we dont have data max difference is 10mm from initial point
            printf_P(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
            break;
        }
        if (init_z_bckp - current_position[Z_AXIS] < 0.f) { //broken cable or initial Z coordinate too low. Go to MESH_HOME_Z_SEARCH and repeat last step (z-probe) again to distinguish between these two cases.
   121c6:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
   121ca:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
   121ce:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
   121d2:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
   121d6:	c7 01       	movw	r24, r14
   121d8:	b6 01       	movw	r22, r12
   121da:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   121de:	20 e0       	ldi	r18, 0x00	; 0
   121e0:	30 e0       	ldi	r19, 0x00	; 0
   121e2:	a9 01       	movw	r20, r18
   121e4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   121e8:	87 ff       	sbrs	r24, 7
   121ea:	36 c0       	rjmp	.+108    	; 0x12258 <gcode_G80()+0x752>
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   121ec:	60 e0       	ldi	r22, 0x00	; 0
   121ee:	70 e0       	ldi	r23, 0x00	; 0
   121f0:	80 ea       	ldi	r24, 0xA0	; 160
   121f2:	90 e4       	ldi	r25, 0x40	; 64
   121f4:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   121f8:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   121fc:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   12200:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
   12204:	65 e5       	ldi	r22, 0x55	; 85
   12206:	75 e5       	ldi	r23, 0x55	; 85
   12208:	85 e5       	ldi	r24, 0x55	; 85
   1220a:	91 e4       	ldi	r25, 0x41	; 65
   1220c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   12210:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

            if (!find_bed_induction_sensor_point_z(has_z ? z0 - Z_CALIBRATION_THRESHOLD : -10.f, nProbeRetryCount)) { //if we have data from z calibration max allowed difference is 1mm for each point, if we dont have data max difference is 10mm from initial point
   12214:	48 8d       	ldd	r20, Y+24	; 0x18
   12216:	c5 01       	movw	r24, r10
   12218:	b4 01       	movw	r22, r8
   1221a:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
   1221e:	88 23       	and	r24, r24
   12220:	39 f2       	breq	.-114    	; 0x121b0 <gcode_G80()+0x6aa>
                printf_P(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
                break;
            }
            if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
   12222:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
   12226:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
   1222a:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
   1222e:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
   12232:	60 e0       	ldi	r22, 0x00	; 0
   12234:	70 e0       	ldi	r23, 0x00	; 0
   12236:	80 ea       	ldi	r24, 0xA0	; 160
   12238:	90 e4       	ldi	r25, 0x40	; 64
   1223a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1223e:	2d ec       	ldi	r18, 0xCD	; 205
   12240:	3c ec       	ldi	r19, 0xCC	; 204
   12242:	4c ec       	ldi	r20, 0xCC	; 204
   12244:	5d e3       	ldi	r21, 0x3D	; 61
   12246:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1224a:	87 ff       	sbrs	r24, 7
   1224c:	05 c0       	rjmp	.+10     	; 0x12258 <gcode_G80()+0x752>
                puts_P(PSTR("Bed leveling failed. Sensor triggered too soon"));
   1224e:	8d e1       	ldi	r24, 0x1D	; 29
   12250:	9c e7       	ldi	r25, 0x7C	; 124
                break;
            }
        }
        if (has_z && fabs(z0 - current_position[Z_AXIS]) > Z_CALIBRATION_THRESHOLD) { //if we have data from z calibration, max. allowed difference is 1mm for each point
            puts_P(PSTR("Bed leveling failed. Too much variation from eeprom mesh"));
   12252:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   12256:	75 ce       	rjmp	.-790    	; 0x11f42 <gcode_G80()+0x43c>
   12258:	c0 90 9a 06 	lds	r12, 0x069A	; 0x80069a <current_position+0x8>
   1225c:	d0 90 9b 06 	lds	r13, 0x069B	; 0x80069b <current_position+0x9>
   12260:	e0 90 9c 06 	lds	r14, 0x069C	; 0x80069c <current_position+0xa>
   12264:	f0 90 9d 06 	lds	r15, 0x069D	; 0x80069d <current_position+0xb>
            if (MESH_HOME_Z_SEARCH - current_position[Z_AXIS] < 0.1f) {
                puts_P(PSTR("Bed leveling failed. Sensor triggered too soon"));
                break;
            }
        }
        if (has_z && fabs(z0 - current_position[Z_AXIS]) > Z_CALIBRATION_THRESHOLD) { //if we have data from z calibration, max. allowed difference is 1mm for each point
   12268:	22 20       	and	r2, r2
   1226a:	a1 f0       	breq	.+40     	; 0x12294 <gcode_G80()+0x78e>
   1226c:	a7 01       	movw	r20, r14
   1226e:	96 01       	movw	r18, r12
   12270:	c3 01       	movw	r24, r6
   12272:	b2 01       	movw	r22, r4
   12274:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   12278:	9b 01       	movw	r18, r22
   1227a:	ac 01       	movw	r20, r24
   1227c:	5f 77       	andi	r21, 0x7F	; 127
   1227e:	6a 81       	ldd	r22, Y+2	; 0x02
   12280:	7b 81       	ldd	r23, Y+3	; 0x03
   12282:	8c 81       	ldd	r24, Y+4	; 0x04
   12284:	9d 81       	ldd	r25, Y+5	; 0x05
   12286:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1228a:	87 ff       	sbrs	r24, 7
   1228c:	03 c0       	rjmp	.+6      	; 0x12294 <gcode_G80()+0x78e>
            puts_P(PSTR("Bed leveling failed. Too much variation from eeprom mesh"));
   1228e:	84 ee       	ldi	r24, 0xE4	; 228
   12290:	9b e7       	ldi	r25, 0x7B	; 123
   12292:	df cf       	rjmp	.-66     	; 0x12252 <gcode_G80()+0x74c>
}

#ifdef PINDA_THERMISTOR
float temp_compensation_pinda_thermistor_offset(float temperature_pinda)
{
	if (!eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE)) return 0;
   12294:	8f ea       	ldi	r24, 0xAF	; 175
   12296:	9f e0       	ldi	r25, 0x0F	; 15
   12298:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1229c:	88 23       	and	r24, r24
   1229e:	09 f4       	brne	.+2      	; 0x122a2 <gcode_G80()+0x79c>
   122a0:	40 c0       	rjmp	.+128    	; 0x12322 <gcode_G80()+0x81c>
bool calibration_status_get(CalibrationStatus components);
void calibration_status_set(CalibrationStatus components);
void calibration_status_clear(CalibrationStatus components);

// PINDA has an independent calibration flag
inline bool calibration_status_pinda() { return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA); }
   122a2:	86 ea       	ldi	r24, 0xA6	; 166
   122a4:	9f e0       	ldi	r25, 0x0F	; 15
   122a6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	if (!calibration_status_pinda()) return 0;
   122aa:	88 23       	and	r24, r24
   122ac:	d1 f1       	breq	.+116    	; 0x12322 <gcode_G80()+0x81c>
	return temp_comp_interpolation(temperature_pinda) / cs.axis_steps_per_mm[Z_AXIS];
   122ae:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   122b2:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   122b6:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   122ba:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   122be:	0e 94 11 5c 	call	0xb822	; 0xb822 <temp_comp_interpolation(float)>
   122c2:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   122c6:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   122ca:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   122ce:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   122d2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   122d6:	9b 01       	movw	r18, r22
   122d8:	ac 01       	movw	r20, r24
   122da:	e7 e0       	ldi	r30, 0x07	; 7
   122dc:	ae 85       	ldd	r26, Y+14	; 0x0e
   122de:	bf 85       	ldd	r27, Y+15	; 0x0f
   122e0:	ea 9f       	mul	r30, r26
   122e2:	c0 01       	movw	r24, r0
   122e4:	eb 9f       	mul	r30, r27
   122e6:	90 0d       	add	r25, r0
   122e8:	11 24       	eor	r1, r1
   122ea:	08 0f       	add	r16, r24
   122ec:	19 1f       	adc	r17, r25
   122ee:	00 0f       	add	r16, r16
   122f0:	11 1f       	adc	r17, r17
   122f2:	00 0f       	add	r16, r16
   122f4:	11 1f       	adc	r17, r17
   122f6:	0e 53       	subi	r16, 0x3E	; 62
   122f8:	1c 4e       	sbci	r17, 0xEC	; 236
            break;
        }

#ifdef PINDA_THERMISTOR
        float offset_z = temp_compensation_pinda_thermistor_offset(current_temperature_pinda);
        mbl.set_z(ix, iy, current_position[Z_AXIS] - offset_z); //store measured z values z_values[iy][ix] = z - offset_z;
   122fa:	c7 01       	movw	r24, r14
   122fc:	b6 01       	movw	r22, r12
   122fe:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   12302:	d8 01       	movw	r26, r16
   12304:	11 96       	adiw	r26, 0x01	; 1
   12306:	6d 93       	st	X+, r22
   12308:	7d 93       	st	X+, r23
   1230a:	8d 93       	st	X+, r24
   1230c:	9c 93       	st	X, r25
   1230e:	14 97       	sbiw	r26, 0x04	; 4
#else
        mbl.set_z(ix, iy, current_position[Z_AXIS]); //store measured z values z_values[iy][ix] = z;
#endif //PINDA_THERMISTOR

        custom_message_state--;
   12310:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   12314:	81 50       	subi	r24, 0x01	; 1
   12316:	80 93 f7 03 	sts	0x03F7, r24	; 0x8003f7 <custom_message_state>
        mesh_point++;
        lcd_update(1);
   1231a:	81 e0       	ldi	r24, 0x01	; 1
   1231c:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   12320:	0c ce       	rjmp	.-1000   	; 0x11f3a <gcode_G80()+0x434>
}

#ifdef PINDA_THERMISTOR
float temp_compensation_pinda_thermistor_offset(float temperature_pinda)
{
	if (!eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE)) return 0;
   12322:	20 e0       	ldi	r18, 0x00	; 0
   12324:	30 e0       	ldi	r19, 0x00	; 0
   12326:	a9 01       	movw	r20, r18
   12328:	d8 cf       	rjmp	.-80     	; 0x122da <gcode_G80()+0x7d4>
            print_stop();
            lcd_show_fullscreen_message_and_wait_P(_T(MSG_MBL_FAILED));
            lcd_z_calibration_prompt(false);
            goto exit;
        }
        Sound_MakeSound(e_SOUND_TYPE_StandardAlert);
   1232a:	85 e0       	ldi	r24, 0x05	; 5
   1232c:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
            raise_z(-1);
            enable_z_endstop(true);
#ifdef TMC2130
            tmc2130_home_enter(Z_AXIS_MASK);
#endif // TMC2130
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   12330:	c1 2c       	mov	r12, r1
   12332:	d1 2c       	mov	r13, r1
   12334:	90 ea       	ldi	r25, 0xA0	; 160
   12336:	e9 2e       	mov	r14, r25
   12338:	90 e4       	ldi	r25, 0x40	; 64
   1233a:	f9 2e       	mov	r15, r25
            goto exit;
        }
        Sound_MakeSound(e_SOUND_TYPE_StandardAlert);
        bool bState;
        do   {                             // repeat until Z-leveling o.k.
            lcd_display_message_fullscreen_P(_T(MSG_ZLEVELING_ENFORCED));
   1233c:	82 e1       	ldi	r24, 0x12	; 18
   1233e:	96 e3       	ldi	r25, 0x36	; 54
   12340:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   12344:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
#ifdef TMC2130
            lcd_wait_for_click_delay(MSG_BED_LEVELING_FAILED_TIMEOUT);
   12348:	8e e1       	ldi	r24, 0x1E	; 30
   1234a:	90 e0       	ldi	r25, 0x00	; 0
   1234c:	0f 94 3b 3b 	call	0x27676	; 0x27676 <lcd_wait_for_click_delay(unsigned int)>
            calibrate_z_auto();           // Z-leveling (X-assembly stay up!!!)
   12350:	0e 94 c5 72 	call	0xe58a	; 0xe58a <calibrate_z_auto()>
#else // TMC2130
            lcd_wait_for_click_delay(0);  // ~ no timeout
            lcd_calibrate_z_end_stop_manual(true); // Z-leveling (X-assembly stay up!!!)
#endif // TMC2130
            // ~ Z-homing (can not be used "G28", because X & Y-homing would have been done before (Z-homing))
            bState=enable_z_endstop(false);
   12354:	80 e0       	ldi	r24, 0x00	; 0
   12356:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
   1235a:	18 2f       	mov	r17, r24
            raise_z(-1);
   1235c:	60 e0       	ldi	r22, 0x00	; 0
   1235e:	70 e0       	ldi	r23, 0x00	; 0
   12360:	80 e8       	ldi	r24, 0x80	; 128
   12362:	9f eb       	ldi	r25, 0xBF	; 191
   12364:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
            enable_z_endstop(true);
   12368:	81 e0       	ldi	r24, 0x01	; 1
   1236a:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
#ifdef TMC2130
            tmc2130_home_enter(Z_AXIS_MASK);
   1236e:	84 e0       	ldi	r24, 0x04	; 4
   12370:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>
#endif // TMC2130
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   12374:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   12378:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   1237c:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   12380:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(Z_LIFT_FEEDRATE);
   12384:	65 e5       	ldi	r22, 0x55	; 85
   12386:	75 e5       	ldi	r23, 0x55	; 85
   12388:	85 e5       	ldi	r24, 0x55	; 85
   1238a:	91 e4       	ldi	r25, 0x41	; 65
   1238c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   12390:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#ifdef TMC2130
            tmc2130_home_exit();
   12394:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
#endif // TMC2130
            enable_z_endstop(bState);
   12398:	81 2f       	mov	r24, r17
   1239a:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
        } while (st_get_position_mm(Z_AXIS) > MESH_HOME_Z_SEARCH); // i.e. Z-leveling not o.k.
   1239e:	82 e0       	ldi	r24, 0x02	; 2
   123a0:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   123a4:	20 e0       	ldi	r18, 0x00	; 0
   123a6:	30 e0       	ldi	r19, 0x00	; 0
   123a8:	40 ea       	ldi	r20, 0xA0	; 160
   123aa:	50 e4       	ldi	r21, 0x40	; 64
   123ac:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   123b0:	18 16       	cp	r1, r24
   123b2:	24 f2       	brlt	.-120    	; 0x1233c <gcode_G80()+0x836>

        custom_message_type = custom_message_type_old;
   123b4:	ef 81       	ldd	r30, Y+7	; 0x07
   123b6:	e0 93 c4 06 	sts	0x06C4, r30	; 0x8006c4 <custom_message_type>
        custom_message_state = custom_message_state_old;
   123ba:	f8 85       	ldd	r31, Y+8	; 0x08
   123bc:	f0 93 f7 03 	sts	0x03F7, r31	; 0x8003f7 <custom_message_state>
        lcd_update_enable(true);           // display / status-line recovery
   123c0:	81 e0       	ldi	r24, 0x01	; 1
   123c2:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        gcode_G28(true, true, true);       // X & Y & Z-homing (must be after individual Z-homing (problem with spool-holder)!)
   123c6:	41 e0       	ldi	r20, 0x01	; 1
   123c8:	61 e0       	ldi	r22, 0x01	; 1
   123ca:	81 e0       	ldi	r24, 0x01	; 1
   123cc:	0e 94 8c 7e 	call	0xfd18	; 0xfd18 <gcode_G28(bool, bool, bool)>
   123d0:	81 e0       	ldi	r24, 0x01	; 1
   123d2:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
   123d6:	ce cb       	rjmp	.-2148   	; 0x11b74 <gcode_G80()+0x6e>
        repeatcommand_front();             // re-run (i.e. of "G80")
        return;
    }
    g80_fail_cnt = 0; // no fail was detected. Reset the error counter.
   123d8:	10 92 6a 03 	sts	0x036A, r1	; 0x80036a <gcode_G80()::g80_fail_cnt>

    clean_up_after_endstop_move(l_feedmultiply);
   123dc:	8b a1       	ldd	r24, Y+35	; 0x23
   123de:	9c a1       	ldd	r25, Y+36	; 0x24
   123e0:	0e 94 55 66 	call	0xccaa	; 0xccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>
    }
}

void babystep_apply()
{
    babystep_load();
   123e4:	0f 94 c4 c9 	call	0x39388	; 0x39388 <babystep_load()>
    shift_z(- float(babystepLoadZ) / float(cs.axis_steps_per_mm[Z_AXIS]));
   123e8:	60 91 8a 06 	lds	r22, 0x068A	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
   123ec:	70 91 8b 06 	lds	r23, 0x068B	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   123f0:	07 2e       	mov	r0, r23
   123f2:	00 0c       	add	r0, r0
   123f4:	88 0b       	sbc	r24, r24
   123f6:	99 0b       	sbc	r25, r25
   123f8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   123fc:	90 58       	subi	r25, 0x80	; 128
   123fe:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   12402:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   12406:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   1240a:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   1240e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   12412:	0f 94 e0 c9 	call	0x393c0	; 0x393c0 <shift_z(float) [clone .lto_priv.562]>
    if(eeprom_read_byte((uint8_t *)EEPROM_TEMP_CAL_ACTIVE) && calibration_status_pinda() == true) temp_compensation_apply(); //apply PINDA temperature compensation
#endif
    babystep_apply(); // Apply Z height correction aka baby stepping before mesh bed leveing gets activated.

    { // Apply the bed level correction to the mesh
        bool eeprom_bed_correction_valid = eeprom_read_byte((unsigned char*)EEPROM_BED_CORRECTION_VALID) == 1;
   12416:	80 ec       	ldi	r24, 0xC0	; 192
   12418:	9f e0       	ldi	r25, 0x0F	; 15
   1241a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1241e:	91 e0       	ldi	r25, 0x01	; 1
   12420:	81 30       	cpi	r24, 0x01	; 1
   12422:	09 f0       	breq	.+2      	; 0x12426 <gcode_G80()+0x920>
   12424:	90 e0       	ldi	r25, 0x00	; 0
                }
            } else if (eeprom_bed_correction_valid) {
                return (int8_t)eeprom_read_byte(eep_address);
            }
            return 0;
        };
   12426:	99 83       	std	Y+1, r25	; 0x01
        const int8_t correction[4] = {
            bedCorrectHelper('L', (uint8_t*)EEPROM_BED_CORRECTION_LEFT),
   12428:	4f eb       	ldi	r20, 0xBF	; 191
   1242a:	5f e0       	ldi	r21, 0x0F	; 15
   1242c:	6c e4       	ldi	r22, 0x4C	; 76
   1242e:	ce 01       	movw	r24, r28
   12430:	01 96       	adiw	r24, 0x01	; 1
   12432:	0e 94 72 5b 	call	0xb6e4	; 0xb6e4 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const>
   12436:	f8 2e       	mov	r15, r24
            bedCorrectHelper('R', (uint8_t*)EEPROM_BED_CORRECTION_RIGHT),
   12438:	4e eb       	ldi	r20, 0xBE	; 190
   1243a:	5f e0       	ldi	r21, 0x0F	; 15
   1243c:	62 e5       	ldi	r22, 0x52	; 82
   1243e:	ce 01       	movw	r24, r28
   12440:	01 96       	adiw	r24, 0x01	; 1
   12442:	0e 94 72 5b 	call	0xb6e4	; 0xb6e4 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const>
   12446:	08 2f       	mov	r16, r24
            bedCorrectHelper('F', (uint8_t*)EEPROM_BED_CORRECTION_FRONT),
   12448:	4d eb       	ldi	r20, 0xBD	; 189
   1244a:	5f e0       	ldi	r21, 0x0F	; 15
   1244c:	66 e4       	ldi	r22, 0x46	; 70
   1244e:	ce 01       	movw	r24, r28
   12450:	01 96       	adiw	r24, 0x01	; 1
   12452:	0e 94 72 5b 	call	0xb6e4	; 0xb6e4 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const>
   12456:	18 2f       	mov	r17, r24
            bedCorrectHelper('B', (uint8_t*)EEPROM_BED_CORRECTION_REAR),
   12458:	4c eb       	ldi	r20, 0xBC	; 188
   1245a:	5f e0       	ldi	r21, 0x0F	; 15
   1245c:	62 e4       	ldi	r22, 0x42	; 66
   1245e:	ce 01       	movw	r24, r28
   12460:	01 96       	adiw	r24, 0x01	; 1
   12462:	0e 94 72 5b 	call	0xb6e4	; 0xb6e4 <gcode_G80()::{lambda(char, unsigned char*)#1}::operator()(char, unsigned char*) const>
   12466:	21 2f       	mov	r18, r17
   12468:	11 0f       	add	r17, r17
   1246a:	33 0b       	sbc	r19, r19
   1246c:	08 2e       	mov	r0, r24
   1246e:	00 0c       	add	r0, r0
   12470:	99 0b       	sbc	r25, r25
   12472:	5c 01       	movw	r10, r24
   12474:	a2 1a       	sub	r10, r18
   12476:	b3 0a       	sbc	r11, r19
   12478:	8f 2d       	mov	r24, r15
   1247a:	ff 0c       	add	r15, r15
   1247c:	99 0b       	sbc	r25, r25
   1247e:	28 0f       	add	r18, r24
   12480:	39 1f       	adc	r19, r25
   12482:	46 e0       	ldi	r20, 0x06	; 6
   12484:	42 9f       	mul	r20, r18
   12486:	60 01       	movw	r12, r0
   12488:	43 9f       	mul	r20, r19
   1248a:	d0 0c       	add	r13, r0
   1248c:	11 24       	eor	r1, r1
   1248e:	f1 2c       	mov	r15, r1
   12490:	e1 2c       	mov	r14, r1
   12492:	00 2e       	mov	r0, r16
   12494:	00 0c       	add	r0, r0
   12496:	11 0b       	sbc	r17, r17
   12498:	08 1b       	sub	r16, r24
   1249a:	19 0b       	sbc	r17, r25
   1249c:	b7 01       	movw	r22, r14
   1249e:	6d 53       	subi	r22, 0x3D	; 61
   124a0:	7c 4e       	sbci	r23, 0xEC	; 236
   124a2:	3b 01       	movw	r6, r22
   124a4:	46 01       	movw	r8, r12
   124a6:	77 e0       	ldi	r23, 0x07	; 7
   124a8:	7a 83       	std	Y+2, r23	; 0x02
        };
        for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
            for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
                constexpr float scaler = 0.001f / (MESH_NUM_X_POINTS - 1);
                mbl.z_values[row][col] += scaler * (
   124aa:	d3 01       	movw	r26, r6
   124ac:	2d 90       	ld	r2, X+
   124ae:	3d 90       	ld	r3, X+
   124b0:	4d 90       	ld	r4, X+
   124b2:	5d 90       	ld	r5, X+
   124b4:	3d 01       	movw	r6, r26
   124b6:	fd 01       	movw	r30, r26
   124b8:	34 97       	sbiw	r30, 0x04	; 4
   124ba:	fb 87       	std	Y+11, r31	; 0x0b
   124bc:	ea 87       	std	Y+10, r30	; 0x0a
   124be:	b4 01       	movw	r22, r8
   124c0:	09 2c       	mov	r0, r9
   124c2:	00 0c       	add	r0, r0
   124c4:	88 0b       	sbc	r24, r24
   124c6:	99 0b       	sbc	r25, r25
   124c8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   124cc:	2f e3       	ldi	r18, 0x3F	; 63
   124ce:	33 ec       	ldi	r19, 0xC3	; 195
   124d0:	4e e2       	ldi	r20, 0x2E	; 46
   124d2:	59 e3       	ldi	r21, 0x39	; 57
   124d4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   124d8:	a2 01       	movw	r20, r4
   124da:	91 01       	movw	r18, r2
   124dc:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   124e0:	aa 85       	ldd	r26, Y+10	; 0x0a
   124e2:	bb 85       	ldd	r27, Y+11	; 0x0b
   124e4:	6d 93       	st	X+, r22
   124e6:	7d 93       	st	X+, r23
   124e8:	8d 93       	st	X+, r24
   124ea:	9c 93       	st	X, r25
   124ec:	13 97       	sbiw	r26, 0x03	; 3
   124ee:	ba 81       	ldd	r27, Y+2	; 0x02
   124f0:	b1 50       	subi	r27, 0x01	; 1
   124f2:	ba 83       	std	Y+2, r27	; 0x02
   124f4:	80 0e       	add	r8, r16
   124f6:	91 1e       	adc	r9, r17
            bedCorrectHelper('R', (uint8_t*)EEPROM_BED_CORRECTION_RIGHT),
            bedCorrectHelper('F', (uint8_t*)EEPROM_BED_CORRECTION_FRONT),
            bedCorrectHelper('B', (uint8_t*)EEPROM_BED_CORRECTION_REAR),
        };
        for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
            for (uint8_t col = 0; col < MESH_NUM_X_POINTS; col++) {
   124f8:	b1 11       	cpse	r27, r1
   124fa:	d7 cf       	rjmp	.-82     	; 0x124aa <gcode_G80()+0x9a4>
   124fc:	ca 0c       	add	r12, r10
   124fe:	db 1c       	adc	r13, r11
   12500:	ec e1       	ldi	r30, 0x1C	; 28
   12502:	ee 0e       	add	r14, r30
   12504:	f1 1c       	adc	r15, r1
            bedCorrectHelper('L', (uint8_t*)EEPROM_BED_CORRECTION_LEFT),
            bedCorrectHelper('R', (uint8_t*)EEPROM_BED_CORRECTION_RIGHT),
            bedCorrectHelper('F', (uint8_t*)EEPROM_BED_CORRECTION_FRONT),
            bedCorrectHelper('B', (uint8_t*)EEPROM_BED_CORRECTION_REAR),
        };
        for (uint8_t row = 0; row < MESH_NUM_Y_POINTS; row++) {
   12506:	f4 ec       	ldi	r31, 0xC4	; 196
   12508:	ef 16       	cp	r14, r31
   1250a:	f1 04       	cpc	r15, r1
   1250c:	39 f6       	brne	.-114    	; 0x1249c <gcode_G80()+0x996>
                + correction[3] * row);
            }
        }
    }

    mbl.upsample_3x3(); //interpolation from 3x3 to 7x7 points using largrangian polynomials while using the same array z_values[iy][ix] for storing (just coppying measured data to new destination and interpolating between them)
   1250e:	0f 94 35 a3 	call	0x3466a	; 0x3466a <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]>

    { // apply magnet compensation
        uint8_t useMagnetCompensation = code_seen('M') ? code_value_uint8() : eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION);
   12512:	8d e4       	ldi	r24, 0x4D	; 77
   12514:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   12518:	88 23       	and	r24, r24
   1251a:	09 f4       	brne	.+2      	; 0x1251e <gcode_G80()+0xa18>
   1251c:	84 c0       	rjmp	.+264    	; 0x12626 <gcode_G80()+0xb20>
   1251e:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
        if (nMeasPoints == 7 && useMagnetCompensation) {
   12522:	2e 81       	ldd	r18, Y+6	; 0x06
   12524:	27 30       	cpi	r18, 0x07	; 7
   12526:	09 f0       	breq	.+2      	; 0x1252a <gcode_G80()+0xa24>
   12528:	94 c0       	rjmp	.+296    	; 0x12652 <gcode_G80()+0xb4c>
   1252a:	88 23       	and	r24, r24
   1252c:	09 f4       	brne	.+2      	; 0x12530 <gcode_G80()+0xa2a>
   1252e:	91 c0       	rjmp	.+290    	; 0x12652 <gcode_G80()+0xb4c>
   12530:	bb 24       	eor	r11, r11
   12532:	b3 94       	inc	r11
   12534:	aa 24       	eor	r10, r10
   12536:	aa 94       	dec	r10
   12538:	ab 0c       	add	r10, r11
   1253a:	09 a1       	ldd	r16, Y+33	; 0x21
   1253c:	1a a1       	ldd	r17, Y+34	; 0x22
		//printf_P(PSTR("result: Z = %f \n\n"), mbl.z_values[y][x]);
}

void mbl_magnet_elimination() {
    for (uint8_t y = 0; y < MESH_NUM_Y_POINTS; y++) {
		for (uint8_t x = 0; x < MESH_NUM_X_POINTS; x++) {
   1253e:	61 2c       	mov	r6, r1
void mbl_single_point_interpolation(uint8_t x, uint8_t y) {
	//printf_P(PSTR("x = %d; y = %d \n"), x, y);
		uint8_t count = 0;
		float z = 0;
		if (mbl_point_measurement_valid(x, y + 1)) { z += mbl.z_values[y + 1][x]; /*printf_P(PSTR("x; y+1: Z = %f \n"), mbl.z_values[y + 1][x]);*/ count++; }
		if (mbl_point_measurement_valid(x, y - 1)) { z += mbl.z_values[y - 1][x]; /*printf_P(PSTR("x; y-1: Z = %f \n"), mbl.z_values[y - 1][x]);*/ count++; }
   12540:	8e ef       	ldi	r24, 0xFE	; 254
   12542:	88 2e       	mov	r8, r24
   12544:	8b 0c       	add	r8, r11
}

void mbl_magnet_elimination() {
    for (uint8_t y = 0; y < MESH_NUM_Y_POINTS; y++) {
		for (uint8_t x = 0; x < MESH_NUM_X_POINTS; x++) {
			if (!mbl_point_measurement_valid(x, y)) {
   12546:	6a 2d       	mov	r22, r10
   12548:	86 2d       	mov	r24, r6
   1254a:	0f 94 8f c9 	call	0x3931e	; 0x3931e <mbl_point_measurement_valid(unsigned char, unsigned char)>
   1254e:	99 24       	eor	r9, r9
   12550:	93 94       	inc	r9
   12552:	96 0c       	add	r9, r6
   12554:	81 11       	cpse	r24, r1
   12556:	6e c0       	rjmp	.+220    	; 0x12634 <gcode_G80()+0xb2e>

void mbl_single_point_interpolation(uint8_t x, uint8_t y) {
	//printf_P(PSTR("x = %d; y = %d \n"), x, y);
		uint8_t count = 0;
		float z = 0;
		if (mbl_point_measurement_valid(x, y + 1)) { z += mbl.z_values[y + 1][x]; /*printf_P(PSTR("x; y+1: Z = %f \n"), mbl.z_values[y + 1][x]);*/ count++; }
   12558:	6b 2d       	mov	r22, r11
   1255a:	86 2d       	mov	r24, r6
   1255c:	0f 94 8f c9 	call	0x3931e	; 0x3931e <mbl_point_measurement_valid(unsigned char, unsigned char)>
}

void mbl_single_point_interpolation(uint8_t x, uint8_t y) {
	//printf_P(PSTR("x = %d; y = %d \n"), x, y);
		uint8_t count = 0;
		float z = 0;
   12560:	c1 2c       	mov	r12, r1
   12562:	d1 2c       	mov	r13, r1
   12564:	76 01       	movw	r14, r12
        return (valid_points_mask[6 - iy] & (1 << (6 - ix)));
}

void mbl_single_point_interpolation(uint8_t x, uint8_t y) {
	//printf_P(PSTR("x = %d; y = %d \n"), x, y);
		uint8_t count = 0;
   12566:	71 2c       	mov	r7, r1
		float z = 0;
		if (mbl_point_measurement_valid(x, y + 1)) { z += mbl.z_values[y + 1][x]; /*printf_P(PSTR("x; y+1: Z = %f \n"), mbl.z_values[y + 1][x]);*/ count++; }
   12568:	88 23       	and	r24, r24
   1256a:	81 f0       	breq	.+32     	; 0x1258c <gcode_G80()+0xa86>
   1256c:	20 e0       	ldi	r18, 0x00	; 0
   1256e:	30 e0       	ldi	r19, 0x00	; 0
   12570:	a9 01       	movw	r20, r18
   12572:	d8 01       	movw	r26, r16
   12574:	5d 96       	adiw	r26, 0x1d	; 29
   12576:	6d 91       	ld	r22, X+
   12578:	7d 91       	ld	r23, X+
   1257a:	8d 91       	ld	r24, X+
   1257c:	9c 91       	ld	r25, X
   1257e:	90 97       	sbiw	r26, 0x20	; 32
   12580:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   12584:	6b 01       	movw	r12, r22
   12586:	7c 01       	movw	r14, r24
   12588:	77 24       	eor	r7, r7
   1258a:	73 94       	inc	r7
		if (mbl_point_measurement_valid(x, y - 1)) { z += mbl.z_values[y - 1][x]; /*printf_P(PSTR("x; y-1: Z = %f \n"), mbl.z_values[y - 1][x]);*/ count++; }
   1258c:	68 2d       	mov	r22, r8
   1258e:	86 2d       	mov	r24, r6
   12590:	0f 94 8f c9 	call	0x3931e	; 0x3931e <mbl_point_measurement_valid(unsigned char, unsigned char)>
   12594:	88 23       	and	r24, r24
   12596:	69 f0       	breq	.+26     	; 0x125b2 <gcode_G80()+0xaac>
   12598:	f8 01       	movw	r30, r16
   1259a:	7b 97       	sbiw	r30, 0x1b	; 27
   1259c:	20 81       	ld	r18, Z
   1259e:	31 81       	ldd	r19, Z+1	; 0x01
   125a0:	42 81       	ldd	r20, Z+2	; 0x02
   125a2:	53 81       	ldd	r21, Z+3	; 0x03
   125a4:	c7 01       	movw	r24, r14
   125a6:	b6 01       	movw	r22, r12
   125a8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   125ac:	6b 01       	movw	r12, r22
   125ae:	7c 01       	movw	r14, r24
   125b0:	73 94       	inc	r7
		if (mbl_point_measurement_valid(x + 1, y)) { z += mbl.z_values[y][x + 1]; /*printf_P(PSTR("x+1; y: Z = %f \n"), mbl.z_values[y][x + 1]);*/ count++; }
   125b2:	6a 2d       	mov	r22, r10
   125b4:	89 2d       	mov	r24, r9
   125b6:	0f 94 8f c9 	call	0x3931e	; 0x3931e <mbl_point_measurement_valid(unsigned char, unsigned char)>
   125ba:	88 23       	and	r24, r24
   125bc:	61 f0       	breq	.+24     	; 0x125d6 <gcode_G80()+0xad0>
   125be:	f8 01       	movw	r30, r16
   125c0:	25 81       	ldd	r18, Z+5	; 0x05
   125c2:	36 81       	ldd	r19, Z+6	; 0x06
   125c4:	47 81       	ldd	r20, Z+7	; 0x07
   125c6:	50 85       	ldd	r21, Z+8	; 0x08
   125c8:	c7 01       	movw	r24, r14
   125ca:	b6 01       	movw	r22, r12
   125cc:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   125d0:	6b 01       	movw	r12, r22
   125d2:	7c 01       	movw	r14, r24
   125d4:	73 94       	inc	r7
		if (mbl_point_measurement_valid(x - 1, y)) { z += mbl.z_values[y][x - 1]; /*printf_P(PSTR("x-1; y: Z = %f \n"), mbl.z_values[y][x - 1]);*/ count++; }
   125d6:	6a 2d       	mov	r22, r10
   125d8:	8f ef       	ldi	r24, 0xFF	; 255
   125da:	86 0d       	add	r24, r6
   125dc:	0f 94 8f c9 	call	0x3931e	; 0x3931e <mbl_point_measurement_valid(unsigned char, unsigned char)>
   125e0:	88 23       	and	r24, r24
   125e2:	31 f1       	breq	.+76     	; 0x12630 <gcode_G80()+0xb2a>
   125e4:	f8 01       	movw	r30, r16
   125e6:	33 97       	sbiw	r30, 0x03	; 3
   125e8:	20 81       	ld	r18, Z
   125ea:	31 81       	ldd	r19, Z+1	; 0x01
   125ec:	42 81       	ldd	r20, Z+2	; 0x02
   125ee:	53 81       	ldd	r21, Z+3	; 0x03
   125f0:	c7 01       	movw	r24, r14
   125f2:	b6 01       	movw	r22, r12
   125f4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   125f8:	6b 01       	movw	r12, r22
   125fa:	7c 01       	movw	r14, r24
   125fc:	73 94       	inc	r7
		if(count != 0) mbl.z_values[y][x] = z / count; //if we have at least one valid point in surrounding area use average value, otherwise use inaccurately measured Z-coordinate
   125fe:	67 2d       	mov	r22, r7
   12600:	70 e0       	ldi	r23, 0x00	; 0
   12602:	90 e0       	ldi	r25, 0x00	; 0
   12604:	80 e0       	ldi	r24, 0x00	; 0
   12606:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1260a:	9b 01       	movw	r18, r22
   1260c:	ac 01       	movw	r20, r24
   1260e:	c7 01       	movw	r24, r14
   12610:	b6 01       	movw	r22, r12
   12612:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   12616:	d8 01       	movw	r26, r16
   12618:	11 96       	adiw	r26, 0x01	; 1
   1261a:	6d 93       	st	X+, r22
   1261c:	7d 93       	st	X+, r23
   1261e:	8d 93       	st	X+, r24
   12620:	9c 93       	st	X, r25
   12622:	14 97       	sbiw	r26, 0x04	; 4
   12624:	07 c0       	rjmp	.+14     	; 0x12634 <gcode_G80()+0xb2e>
    }

    mbl.upsample_3x3(); //interpolation from 3x3 to 7x7 points using largrangian polynomials while using the same array z_values[iy][ix] for storing (just coppying measured data to new destination and interpolating between them)

    { // apply magnet compensation
        uint8_t useMagnetCompensation = code_seen('M') ? code_value_uint8() : eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION);
   12626:	8c ea       	ldi	r24, 0xAC	; 172
   12628:	9d e0       	ldi	r25, 0x0D	; 13
   1262a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1262e:	79 cf       	rjmp	.-270    	; 0x12522 <gcode_G80()+0xa1c>
   12630:	71 10       	cpse	r7, r1
   12632:	e5 cf       	rjmp	.-54     	; 0x125fe <gcode_G80()+0xaf8>
		//printf_P(PSTR("result: Z = %f \n\n"), mbl.z_values[y][x]);
}

void mbl_magnet_elimination() {
    for (uint8_t y = 0; y < MESH_NUM_Y_POINTS; y++) {
		for (uint8_t x = 0; x < MESH_NUM_X_POINTS; x++) {
   12634:	69 2c       	mov	r6, r9
   12636:	0c 5f       	subi	r16, 0xFC	; 252
   12638:	1f 4f       	sbci	r17, 0xFF	; 255
   1263a:	b7 e0       	ldi	r27, 0x07	; 7
   1263c:	9b 12       	cpse	r9, r27
   1263e:	83 cf       	rjmp	.-250    	; 0x12546 <gcode_G80()+0xa40>
   12640:	b3 94       	inc	r11
   12642:	e9 a1       	ldd	r30, Y+33	; 0x21
   12644:	fa a1       	ldd	r31, Y+34	; 0x22
   12646:	7c 96       	adiw	r30, 0x1c	; 28
   12648:	fa a3       	std	Y+34, r31	; 0x22
   1264a:	e9 a3       	std	Y+33, r30	; 0x21
		if(count != 0) mbl.z_values[y][x] = z / count; //if we have at least one valid point in surrounding area use average value, otherwise use inaccurately measured Z-coordinate
		//printf_P(PSTR("result: Z = %f \n\n"), mbl.z_values[y][x]);
}

void mbl_magnet_elimination() {
    for (uint8_t y = 0; y < MESH_NUM_Y_POINTS; y++) {
   1264c:	f8 e0       	ldi	r31, 0x08	; 8
   1264e:	bf 12       	cpse	r11, r31
   12650:	71 cf       	rjmp	.-286    	; 0x12534 <gcode_G80()+0xa2e>
        if (nMeasPoints == 7 && useMagnetCompensation) {
            mbl_magnet_elimination();
        }
    }

    mbl.active = 1; //activate mesh bed leveling
   12652:	81 e0       	ldi	r24, 0x01	; 1
   12654:	80 93 c2 13 	sts	0x13C2, r24	; 0x8013c2 <mbl>

    if (code_seen('O') && !code_value_uint8()) {
   12658:	8f e4       	ldi	r24, 0x4F	; 79
   1265a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1265e:	81 11       	cpse	r24, r1
   12660:	03 c0       	rjmp	.+6      	; 0x12668 <gcode_G80()+0xb62>
        // Don't let the manage_inactivity() function remove power from the motors.
        refresh_cmd_timeout();
    } else {
        go_home_with_z_lift();
   12662:	0f 94 35 ca 	call	0x3946a	; 0x3946a <go_home_with_z_lift()>
   12666:	9b cc       	rjmp	.-1738   	; 0x11f9e <gcode_G80()+0x498>
        }
    }

    mbl.active = 1; //activate mesh bed leveling

    if (code_seen('O') && !code_value_uint8()) {
   12668:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   1266c:	81 11       	cpse	r24, r1
   1266e:	f9 cf       	rjmp	.-14     	; 0x12662 <gcode_G80()+0xb5c>
        // Don't let the manage_inactivity() function remove power from the motors.
        refresh_cmd_timeout();
   12670:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
   12674:	94 cc       	rjmp	.-1752   	; 0x11f9e <gcode_G80()+0x498>

00012676 <Config_RetrieveSettings()>:

//! @brief Read M500 configuration
//! @retval true Succeeded. Stored settings retrieved or default settings retrieved in case EEPROM cs was empty.
//! @retval false Failed. Default settings has been retrieved, because of version mismatch
bool Config_RetrieveSettings()
{
   12676:	4f 92       	push	r4
   12678:	5f 92       	push	r5
   1267a:	6f 92       	push	r6
   1267c:	7f 92       	push	r7
   1267e:	8f 92       	push	r8
   12680:	9f 92       	push	r9
   12682:	af 92       	push	r10
   12684:	bf 92       	push	r11
   12686:	ef 92       	push	r14
   12688:	ff 92       	push	r15
   1268a:	0f 93       	push	r16
   1268c:	1f 93       	push	r17
   1268e:	cf 93       	push	r28
   12690:	df 93       	push	r29
   12692:	1f 92       	push	r1
   12694:	cd b7       	in	r28, 0x3d	; 61
   12696:	de b7       	in	r29, 0x3e	; 62
    eeprom_read_block(reinterpret_cast<uint8_t*>(cs.version), reinterpret_cast<uint8_t*>(EEPROM_M500_base->version), sizeof(cs.version));
   12698:	44 e0       	ldi	r20, 0x04	; 4
   1269a:	50 e0       	ldi	r21, 0x00	; 0
   1269c:	64 e1       	ldi	r22, 0x14	; 20
   1269e:	70 e0       	ldi	r23, 0x00	; 0
   126a0:	8e eb       	ldi	r24, 0xBE	; 190
   126a2:	9d e0       	ldi	r25, 0x0D	; 13
   126a4:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    //  SERIAL_ECHOLN("Version: [" << ver << "] Stored version: [" << cs.version << "]");
    if (strncmp_P(cs.version, default_conf.version, sizeof(EEPROM_VERSION)) == 0)  // version number match
   126a8:	43 e0       	ldi	r20, 0x03	; 3
   126aa:	50 e0       	ldi	r21, 0x00	; 0
   126ac:	63 e7       	ldi	r22, 0x73	; 115
   126ae:	77 e7       	ldi	r23, 0x77	; 119
   126b0:	8e eb       	ldi	r24, 0xBE	; 190
   126b2:	9d e0       	ldi	r25, 0x0D	; 13
   126b4:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   126b8:	89 2b       	or	r24, r25
   126ba:	09 f0       	breq	.+2      	; 0x126be <Config_RetrieveSettings()+0x48>
   126bc:	a0 c1       	rjmp	.+832    	; 0x129fe <Config_RetrieveSettings()+0x388>
    {
        // Initialize arc interpolation settings in eeprom if they are not already
        eeprom_init_default_float(&EEPROM_M500_base->mm_per_arc_segment, pgm_read_float(&default_conf.mm_per_arc_segment));
   126be:	e7 e3       	ldi	r30, 0x37	; 55
   126c0:	f8 e7       	ldi	r31, 0x78	; 120
   126c2:	45 91       	lpm	r20, Z+
   126c4:	55 91       	lpm	r21, Z+
   126c6:	65 91       	lpm	r22, Z+
   126c8:	74 91       	lpm	r23, Z
   126ca:	88 ed       	ldi	r24, 0xD8	; 216
   126cc:	90 e0       	ldi	r25, 0x00	; 0
   126ce:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>
        eeprom_init_default_float(&EEPROM_M500_base->min_mm_per_arc_segment, pgm_read_float(&default_conf.min_mm_per_arc_segment));
   126d2:	eb e3       	ldi	r30, 0x3B	; 59
   126d4:	f8 e7       	ldi	r31, 0x78	; 120
   126d6:	45 91       	lpm	r20, Z+
   126d8:	55 91       	lpm	r21, Z+
   126da:	65 91       	lpm	r22, Z+
   126dc:	74 91       	lpm	r23, Z
   126de:	8c ed       	ldi	r24, 0xDC	; 220
   126e0:	90 e0       	ldi	r25, 0x00	; 0
   126e2:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>
        eeprom_init_default_byte(&EEPROM_M500_base->n_arc_correction, pgm_read_byte(&default_conf.n_arc_correction));
   126e6:	ef e3       	ldi	r30, 0x3F	; 63
   126e8:	f8 e7       	ldi	r31, 0x78	; 120
   126ea:	64 91       	lpm	r22, Z
   126ec:	80 ee       	ldi	r24, 0xE0	; 224
   126ee:	90 e0       	ldi	r25, 0x00	; 0
   126f0:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
        eeprom_init_default_word(&EEPROM_M500_base->min_arc_segments, pgm_read_word(&default_conf.min_arc_segments));
   126f4:	e0 e4       	ldi	r30, 0x40	; 64
   126f6:	f8 e7       	ldi	r31, 0x78	; 120
   126f8:	65 91       	lpm	r22, Z+
   126fa:	74 91       	lpm	r23, Z
   126fc:	81 ee       	ldi	r24, 0xE1	; 225
   126fe:	90 e0       	ldi	r25, 0x00	; 0
   12700:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
        eeprom_init_default_word(&EEPROM_M500_base->arc_segments_per_sec, pgm_read_word(&default_conf.arc_segments_per_sec));
   12704:	e2 e4       	ldi	r30, 0x42	; 66
   12706:	f8 e7       	ldi	r31, 0x78	; 120
   12708:	65 91       	lpm	r22, Z+
   1270a:	74 91       	lpm	r23, Z
   1270c:	83 ee       	ldi	r24, 0xE3	; 227
   1270e:	90 e0       	ldi	r25, 0x00	; 0
   12710:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>

        // Initialize the travel_acceleration in eeprom if not already
        eeprom_init_default_float(&EEPROM_M500_base->travel_acceleration, pgm_read_float(&default_conf.travel_acceleration));
   12714:	e3 e3       	ldi	r30, 0x33	; 51
   12716:	f8 e7       	ldi	r31, 0x78	; 120
   12718:	45 91       	lpm	r20, Z+
   1271a:	55 91       	lpm	r21, Z+
   1271c:	65 91       	lpm	r22, Z+
   1271e:	74 91       	lpm	r23, Z
   12720:	84 ed       	ldi	r24, 0xD4	; 212
   12722:	90 e0       	ldi	r25, 0x00	; 0
   12724:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>

        // Initialize the max_feedrate_silent and max_acceleration_mm_per_s2_silent in eeprom if not already
        eeprom_init_default_block(&EEPROM_M500_base->max_feedrate_silent, sizeof(EEPROM_M500_base->max_feedrate_silent), default_conf.max_feedrate_silent);
   12728:	4f e0       	ldi	r20, 0x0F	; 15
   1272a:	58 e7       	ldi	r21, 0x78	; 120
   1272c:	60 e1       	ldi	r22, 0x10	; 16
   1272e:	70 e0       	ldi	r23, 0x00	; 0
   12730:	80 eb       	ldi	r24, 0xB0	; 176
   12732:	90 e0       	ldi	r25, 0x00	; 0
   12734:	0e 94 59 75 	call	0xeab2	; 0xeab2 <eeprom_init_default_block(void*, unsigned int, void const*)>
        eeprom_init_default_block(&EEPROM_M500_base->max_acceleration_mm_per_s2_silent, sizeof(EEPROM_M500_base->max_acceleration_mm_per_s2_silent), default_conf.max_acceleration_mm_per_s2_silent);
   12738:	4f e1       	ldi	r20, 0x1F	; 31
   1273a:	58 e7       	ldi	r21, 0x78	; 120
   1273c:	60 e1       	ldi	r22, 0x10	; 16
   1273e:	70 e0       	ldi	r23, 0x00	; 0
   12740:	80 ec       	ldi	r24, 0xC0	; 192
   12742:	90 e0       	ldi	r25, 0x00	; 0
   12744:	0e 94 59 75 	call	0xeab2	; 0xeab2 <eeprom_init_default_block(void*, unsigned int, void const*)>

#ifdef TMC2130
        eeprom_init_default_block(&EEPROM_M500_base->axis_ustep_resolution, sizeof(EEPROM_M500_base->axis_ustep_resolution), default_conf.axis_ustep_resolution);
   12748:	4f e2       	ldi	r20, 0x2F	; 47
   1274a:	58 e7       	ldi	r21, 0x78	; 120
   1274c:	64 e0       	ldi	r22, 0x04	; 4
   1274e:	70 e0       	ldi	r23, 0x00	; 0
   12750:	80 ed       	ldi	r24, 0xD0	; 208
   12752:	90 e0       	ldi	r25, 0x00	; 0
   12754:	0e 94 59 75 	call	0xeab2	; 0xeab2 <eeprom_init_default_block(void*, unsigned int, void const*)>
#endif // TMC2130

        // load the CS to RAM
        eeprom_read_block(reinterpret_cast<uint8_t*>(&cs), reinterpret_cast<uint8_t*>(EEPROM_M500_base), sizeof(cs));
   12758:	41 ed       	ldi	r20, 0xD1	; 209
   1275a:	50 e0       	ldi	r21, 0x00	; 0
   1275c:	64 e1       	ldi	r22, 0x14	; 20
   1275e:	70 e0       	ldi	r23, 0x00	; 0
   12760:	8e eb       	ldi	r24, 0xBE	; 190
   12762:	9d e0       	ldi	r25, 0x0D	; 13
   12764:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
        calculate_extruder_multipliers();
   12768:	0e 94 40 65 	call	0xca80	; 0xca80 <calculate_extruder_multipliers()>
   1276c:	0e eb       	ldi	r16, 0xBE	; 190
   1276e:	1d e0       	ldi	r17, 0x0D	; 13
   12770:	8a e5       	ldi	r24, 0x5A	; 90
   12772:	e8 2e       	mov	r14, r24
   12774:	8e e0       	ldi	r24, 0x0E	; 14
   12776:	f8 2e       	mov	r15, r24
      if (cs.max_feedrate_normal[j] > NORMAL_MAX_FEEDRATE_XY)
        cs.max_feedrate_normal[j] = NORMAL_MAX_FEEDRATE_XY;
      if (cs.max_feedrate_silent[j] > SILENT_MAX_FEEDRATE_XY)
        cs.max_feedrate_silent[j] = SILENT_MAX_FEEDRATE_XY;
      if (cs.max_acceleration_mm_per_s2_normal[j] > NORMAL_MAX_ACCEL_XY)
        cs.max_acceleration_mm_per_s2_normal[j] = NORMAL_MAX_ACCEL_XY;
   12778:	94 ec       	ldi	r25, 0xC4	; 196
   1277a:	89 2e       	mov	r8, r25
   1277c:	99 e0       	ldi	r25, 0x09	; 9
   1277e:	99 2e       	mov	r9, r25
   12780:	a1 2c       	mov	r10, r1
   12782:	b1 2c       	mov	r11, r1
      if (cs.max_acceleration_mm_per_s2_silent[j] > SILENT_MAX_ACCEL_XY)
        cs.max_acceleration_mm_per_s2_silent[j] = SILENT_MAX_ACCEL_XY;
   12784:	20 ec       	ldi	r18, 0xC0	; 192
   12786:	42 2e       	mov	r4, r18
   12788:	23 e0       	ldi	r18, 0x03	; 3
   1278a:	52 2e       	mov	r5, r18
   1278c:	61 2c       	mov	r6, r1
   1278e:	71 2c       	mov	r7, r1
        calculate_extruder_multipliers();

#ifdef TMC2130
    for (uint8_t j = X_AXIS; j <= Y_AXIS; j++)
    {
      if (cs.max_feedrate_normal[j] > NORMAL_MAX_FEEDRATE_XY)
   12790:	20 e0       	ldi	r18, 0x00	; 0
   12792:	30 e0       	ldi	r19, 0x00	; 0
   12794:	48 e4       	ldi	r20, 0x48	; 72
   12796:	53 e4       	ldi	r21, 0x43	; 67
   12798:	f8 01       	movw	r30, r16
   1279a:	64 89       	ldd	r22, Z+20	; 0x14
   1279c:	75 89       	ldd	r23, Z+21	; 0x15
   1279e:	86 89       	ldd	r24, Z+22	; 0x16
   127a0:	97 89       	ldd	r25, Z+23	; 0x17
   127a2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   127a6:	18 16       	cp	r1, r24
   127a8:	4c f4       	brge	.+18     	; 0x127bc <Config_RetrieveSettings()+0x146>
        cs.max_feedrate_normal[j] = NORMAL_MAX_FEEDRATE_XY;
   127aa:	80 e0       	ldi	r24, 0x00	; 0
   127ac:	90 e0       	ldi	r25, 0x00	; 0
   127ae:	a8 e4       	ldi	r26, 0x48	; 72
   127b0:	b3 e4       	ldi	r27, 0x43	; 67
   127b2:	f8 01       	movw	r30, r16
   127b4:	84 8b       	std	Z+20, r24	; 0x14
   127b6:	95 8b       	std	Z+21, r25	; 0x15
   127b8:	a6 8b       	std	Z+22, r26	; 0x16
   127ba:	b7 8b       	std	Z+23, r27	; 0x17
      if (cs.max_feedrate_silent[j] > SILENT_MAX_FEEDRATE_XY)
   127bc:	f7 01       	movw	r30, r14
   127be:	61 91       	ld	r22, Z+
   127c0:	71 91       	ld	r23, Z+
   127c2:	81 91       	ld	r24, Z+
   127c4:	91 91       	ld	r25, Z+
   127c6:	7f 01       	movw	r14, r30
   127c8:	20 e0       	ldi	r18, 0x00	; 0
   127ca:	30 e0       	ldi	r19, 0x00	; 0
   127cc:	48 ec       	ldi	r20, 0xC8	; 200
   127ce:	52 e4       	ldi	r21, 0x42	; 66
   127d0:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   127d4:	18 16       	cp	r1, r24
   127d6:	54 f4       	brge	.+20     	; 0x127ec <Config_RetrieveSettings()+0x176>
        cs.max_feedrate_silent[j] = SILENT_MAX_FEEDRATE_XY;
   127d8:	80 e0       	ldi	r24, 0x00	; 0
   127da:	90 e0       	ldi	r25, 0x00	; 0
   127dc:	a8 ec       	ldi	r26, 0xC8	; 200
   127de:	b2 e4       	ldi	r27, 0x42	; 66
   127e0:	f7 01       	movw	r30, r14
   127e2:	34 97       	sbiw	r30, 0x04	; 4
   127e4:	80 83       	st	Z, r24
   127e6:	91 83       	std	Z+1, r25	; 0x01
   127e8:	a2 83       	std	Z+2, r26	; 0x02
   127ea:	b3 83       	std	Z+3, r27	; 0x03
      if (cs.max_acceleration_mm_per_s2_normal[j] > NORMAL_MAX_ACCEL_XY)
   127ec:	f8 01       	movw	r30, r16
   127ee:	84 a1       	ldd	r24, Z+36	; 0x24
   127f0:	95 a1       	ldd	r25, Z+37	; 0x25
   127f2:	a6 a1       	ldd	r26, Z+38	; 0x26
   127f4:	b7 a1       	ldd	r27, Z+39	; 0x27
   127f6:	85 3c       	cpi	r24, 0xC5	; 197
   127f8:	99 40       	sbci	r25, 0x09	; 9
   127fa:	a1 05       	cpc	r26, r1
   127fc:	b1 05       	cpc	r27, r1
   127fe:	28 f0       	brcs	.+10     	; 0x1280a <Config_RetrieveSettings()+0x194>
        cs.max_acceleration_mm_per_s2_normal[j] = NORMAL_MAX_ACCEL_XY;
   12800:	f8 01       	movw	r30, r16
   12802:	84 a2       	std	Z+36, r8	; 0x24
   12804:	95 a2       	std	Z+37, r9	; 0x25
   12806:	a6 a2       	std	Z+38, r10	; 0x26
   12808:	b7 a2       	std	Z+39, r11	; 0x27
      if (cs.max_acceleration_mm_per_s2_silent[j] > SILENT_MAX_ACCEL_XY)
   1280a:	f7 01       	movw	r30, r14
   1280c:	84 85       	ldd	r24, Z+12	; 0x0c
   1280e:	95 85       	ldd	r25, Z+13	; 0x0d
   12810:	a6 85       	ldd	r26, Z+14	; 0x0e
   12812:	b7 85       	ldd	r27, Z+15	; 0x0f
   12814:	81 3c       	cpi	r24, 0xC1	; 193
   12816:	93 40       	sbci	r25, 0x03	; 3
   12818:	a1 05       	cpc	r26, r1
   1281a:	b1 05       	cpc	r27, r1
   1281c:	28 f0       	brcs	.+10     	; 0x12828 <Config_RetrieveSettings()+0x1b2>
        cs.max_acceleration_mm_per_s2_silent[j] = SILENT_MAX_ACCEL_XY;
   1281e:	f7 01       	movw	r30, r14
   12820:	44 86       	std	Z+12, r4	; 0x0c
   12822:	55 86       	std	Z+13, r5	; 0x0d
   12824:	66 86       	std	Z+14, r6	; 0x0e
   12826:	77 86       	std	Z+15, r7	; 0x0f
   12828:	0c 5f       	subi	r16, 0xFC	; 252
   1282a:	1f 4f       	sbci	r17, 0xFF	; 255
        // load the CS to RAM
        eeprom_read_block(reinterpret_cast<uint8_t*>(&cs), reinterpret_cast<uint8_t*>(EEPROM_M500_base), sizeof(cs));
        calculate_extruder_multipliers();

#ifdef TMC2130
    for (uint8_t j = X_AXIS; j <= Y_AXIS; j++)
   1282c:	fd e0       	ldi	r31, 0x0D	; 13
   1282e:	06 3c       	cpi	r16, 0xC6	; 198
   12830:	1f 07       	cpc	r17, r31
   12832:	09 f0       	breq	.+2      	; 0x12836 <Config_RetrieveSettings()+0x1c0>
   12834:	ad cf       	rjmp	.-166    	; 0x12790 <Config_RetrieveSettings()+0x11a>
        cs.max_acceleration_mm_per_s2_normal[j] = NORMAL_MAX_ACCEL_XY;
      if (cs.max_acceleration_mm_per_s2_silent[j] > SILENT_MAX_ACCEL_XY)
        cs.max_acceleration_mm_per_s2_silent[j] = SILENT_MAX_ACCEL_XY;
    }

    tmc2130_set_res(X_AXIS, cs.axis_ustep_resolution[X_AXIS]);
   12836:	60 91 7a 0e 	lds	r22, 0x0E7A	; 0x800e7a <cs+0xbc>
   1283a:	70 e0       	ldi	r23, 0x00	; 0
   1283c:	80 e0       	ldi	r24, 0x00	; 0
   1283e:	0f 94 06 26 	call	0x24c0c	; 0x24c0c <tmc2130_set_res(unsigned char, unsigned int)>
    tmc2130_set_res(Y_AXIS, cs.axis_ustep_resolution[Y_AXIS]);
   12842:	60 91 7b 0e 	lds	r22, 0x0E7B	; 0x800e7b <cs+0xbd>
   12846:	70 e0       	ldi	r23, 0x00	; 0
   12848:	81 e0       	ldi	r24, 0x01	; 1
   1284a:	0f 94 06 26 	call	0x24c0c	; 0x24c0c <tmc2130_set_res(unsigned char, unsigned int)>
    tmc2130_set_res(Z_AXIS, cs.axis_ustep_resolution[Z_AXIS]);
   1284e:	60 91 7c 0e 	lds	r22, 0x0E7C	; 0x800e7c <cs+0xbe>
   12852:	70 e0       	ldi	r23, 0x00	; 0
   12854:	82 e0       	ldi	r24, 0x02	; 2
   12856:	0f 94 06 26 	call	0x24c0c	; 0x24c0c <tmc2130_set_res(unsigned char, unsigned int)>
    tmc2130_set_res(E_AXIS, cs.axis_ustep_resolution[E_AXIS]);
   1285a:	60 91 7d 0e 	lds	r22, 0x0E7D	; 0x800e7d <cs+0xbf>
   1285e:	70 e0       	ldi	r23, 0x00	; 0
   12860:	83 e0       	ldi	r24, 0x03	; 3
   12862:	0f 94 06 26 	call	0x24c0c	; 0x24c0c <tmc2130_set_res(unsigned char, unsigned int)>
#endif //TMC2130

		reset_acceleration_rates();
   12866:	0f 94 a1 64 	call	0x2c942	; 0x2c942 <reset_acceleration_rates()>

    // Call updatePID (similar to when we have processed M301)
    updatePID();
   1286a:	0f 94 df 3b 	call	0x277be	; 0x277be <updatePID()>
}

void thermal_model_load_settings()
{
    static_assert(THERMAL_MODEL_R_SIZE == 16); // ensure we don't desync with the eeprom table
    TempMgrGuard temp_mgr_guard;
   1286e:	ce 01       	movw	r24, r28
   12870:	01 96       	adiw	r24, 0x01	; 1
   12872:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>

    // handle upgrade from a model without UVDL (FW<3.13, TM VER<1): model is retro-compatible,
    // reset UV to an identity without doing any special handling
    eeprom_init_default_float((float*)EEPROM_THERMAL_MODEL_U, THERMAL_MODEL_DEF(U));
   12876:	44 e3       	ldi	r20, 0x34	; 52
   12878:	50 e8       	ldi	r21, 0x80	; 128
   1287a:	67 eb       	ldi	r22, 0xB7	; 183
   1287c:	7a eb       	ldi	r23, 0xBA	; 186
   1287e:	82 ea       	ldi	r24, 0xA2	; 162
   12880:	9c e0       	ldi	r25, 0x0C	; 12
   12882:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>
    eeprom_init_default_float((float*)EEPROM_THERMAL_MODEL_V, THERMAL_MODEL_DEF(V));
   12886:	46 e6       	ldi	r20, 0x66	; 102
   12888:	56 e6       	ldi	r21, 0x66	; 102
   1288a:	66 e8       	ldi	r22, 0x86	; 134
   1288c:	7f e3       	ldi	r23, 0x3F	; 63
   1288e:	8e e9       	ldi	r24, 0x9E	; 158
   12890:	9c e0       	ldi	r25, 0x0C	; 12
   12892:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>
    eeprom_init_default_float((float*)EEPROM_THERMAL_MODEL_D, THERMAL_MODEL_DEF(fS));
   12896:	4a e9       	ldi	r20, 0x9A	; 154
   12898:	59 e9       	ldi	r21, 0x99	; 153
   1289a:	69 e1       	ldi	r22, 0x19	; 25
   1289c:	7e e3       	ldi	r23, 0x3E	; 62
   1289e:	8a e9       	ldi	r24, 0x9A	; 154
   128a0:	9c e0       	ldi	r25, 0x0C	; 12
   128a2:	0e 94 ae 63 	call	0xc75c	; 0xc75c <eeprom_init_default_float(float*, float)>
    eeprom_init_default_word((uint16_t*)EEPROM_THERMAL_MODEL_L, THERMAL_MODEL_DEF(LAG));
   128a6:	6e e0       	ldi	r22, 0x0E	; 14
   128a8:	71 e0       	ldi	r23, 0x01	; 1
   128aa:	88 e9       	ldi	r24, 0x98	; 152
   128ac:	9c e0       	ldi	r25, 0x0C	; 12
   128ae:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_byte((uint8_t*)EEPROM_THERMAL_MODEL_VER, THERMAL_MODEL_DEF(VER));
   128b2:	61 e0       	ldi	r22, 0x01	; 1
   128b4:	87 e9       	ldi	r24, 0x97	; 151
   128b6:	9c e0       	ldi	r25, 0x0C	; 12
   128b8:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>

    thermal_model::enabled = eeprom_read_byte((uint8_t*)EEPROM_THERMAL_MODEL_ENABLE);
   128bc:	82 e0       	ldi	r24, 0x02	; 2
   128be:	9d e0       	ldi	r25, 0x0D	; 13
   128c0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   128c4:	91 e0       	ldi	r25, 0x01	; 1
   128c6:	81 11       	cpse	r24, r1
   128c8:	01 c0       	rjmp	.+2      	; 0x128cc <Config_RetrieveSettings()+0x256>
   128ca:	90 e0       	ldi	r25, 0x00	; 0
   128cc:	90 93 1d 05 	sts	0x051D, r25	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
    thermal_model::data.P = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_P);
   128d0:	8e ef       	ldi	r24, 0xFE	; 254
   128d2:	9c e0       	ldi	r25, 0x0C	; 12
   128d4:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   128d8:	60 93 da 12 	sts	0x12DA, r22	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   128dc:	70 93 db 12 	sts	0x12DB, r23	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   128e0:	80 93 dc 12 	sts	0x12DC, r24	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   128e4:	90 93 dd 12 	sts	0x12DD, r25	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
    thermal_model::data.U = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_U);
   128e8:	82 ea       	ldi	r24, 0xA2	; 162
   128ea:	9c e0       	ldi	r25, 0x0C	; 12
   128ec:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   128f0:	60 93 de 12 	sts	0x12DE, r22	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   128f4:	70 93 df 12 	sts	0x12DF, r23	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   128f8:	80 93 e0 12 	sts	0x12E0, r24	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   128fc:	90 93 e1 12 	sts	0x12E1, r25	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
    thermal_model::data.V = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_V);
   12900:	8e e9       	ldi	r24, 0x9E	; 158
   12902:	9c e0       	ldi	r25, 0x0C	; 12
   12904:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   12908:	60 93 e2 12 	sts	0x12E2, r22	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   1290c:	70 93 e3 12 	sts	0x12E3, r23	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   12910:	80 93 e4 12 	sts	0x12E4, r24	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   12914:	90 93 e5 12 	sts	0x12E5, r25	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
    thermal_model::data.C = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_C);
   12918:	8a ef       	ldi	r24, 0xFA	; 250
   1291a:	9c e0       	ldi	r25, 0x0C	; 12
   1291c:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   12920:	60 93 e6 12 	sts	0x12E6, r22	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   12924:	70 93 e7 12 	sts	0x12E7, r23	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   12928:	80 93 e8 12 	sts	0x12E8, r24	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   1292c:	90 93 e9 12 	sts	0x12E9, r25	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
    thermal_model::data.fS = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_D);
   12930:	8a e9       	ldi	r24, 0x9A	; 154
   12932:	9c e0       	ldi	r25, 0x0C	; 12
   12934:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   12938:	60 93 ea 12 	sts	0x12EA, r22	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   1293c:	70 93 eb 12 	sts	0x12EB, r23	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   12940:	80 93 ec 12 	sts	0x12EC, r24	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   12944:	90 93 ed 12 	sts	0x12ED, r25	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
    thermal_model_set_lag(eeprom_read_word((uint16_t*)EEPROM_THERMAL_MODEL_L));
   12948:	88 e9       	ldi	r24, 0x98	; 152
   1294a:	9c e0       	ldi	r25, 0x0C	; 12
   1294c:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   12950:	0f 94 8e 2f 	call	0x25f1c	; 0x25f1c <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]>
    eeprom_read_block(&thermal_model::data.R[0], (float*)EEPROM_THERMAL_MODEL_R, THERMAL_MODEL_R_SIZE * sizeof(float));
   12954:	40 e4       	ldi	r20, 0x40	; 64
   12956:	50 e0       	ldi	r21, 0x00	; 0
   12958:	6a eb       	ldi	r22, 0xBA	; 186
   1295a:	7c e0       	ldi	r23, 0x0C	; 12
   1295c:	80 ef       	ldi	r24, 0xF0	; 240
   1295e:	92 e1       	ldi	r25, 0x12	; 18
   12960:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    thermal_model::data.Ta_corr = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_Ta_corr);
   12964:	86 eb       	ldi	r24, 0xB6	; 182
   12966:	9c e0       	ldi	r25, 0x0C	; 12
   12968:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   1296c:	60 93 30 13 	sts	0x1330, r22	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   12970:	70 93 31 13 	sts	0x1331, r23	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   12974:	80 93 32 13 	sts	0x1332, r24	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   12978:	90 93 33 13 	sts	0x1333, r25	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
    thermal_model::data.warn = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_W);
   1297c:	82 eb       	ldi	r24, 0xB2	; 178
   1297e:	9c e0       	ldi	r25, 0x0C	; 12
   12980:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   12984:	60 93 34 13 	sts	0x1334, r22	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   12988:	70 93 35 13 	sts	0x1335, r23	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   1298c:	80 93 36 13 	sts	0x1336, r24	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   12990:	90 93 37 13 	sts	0x1337, r25	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
    thermal_model::data.err = eeprom_read_float((float*)EEPROM_THERMAL_MODEL_E);
   12994:	8e ea       	ldi	r24, 0xAE	; 174
   12996:	9c e0       	ldi	r25, 0x0C	; 12
   12998:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   1299c:	60 93 38 13 	sts	0x1338, r22	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   129a0:	70 93 39 13 	sts	0x1339, r23	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   129a4:	80 93 3a 13 	sts	0x133A, r24	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   129a8:	90 93 3b 13 	sts	0x133B, r25	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>

    if(!thermal_model::calibrated()) {
   129ac:	0f 94 ad 2f 	call	0x25f5a	; 0x25f5a <thermal_model::calibrated() [clone .lto_priv.563]>
   129b0:	81 11       	cpse	r24, r1
   129b2:	06 c0       	rjmp	.+12     	; 0x129c0 <Config_RetrieveSettings()+0x34a>
        SERIAL_ECHOLNPGM("TM: stored calibration invalid, resetting");
   129b4:	8d e0       	ldi	r24, 0x0D	; 13
   129b6:	97 e7       	ldi	r25, 0x77	; 119
   129b8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        thermal_model_reset_settings();
   129bc:	0f 94 b4 32 	call	0x26568	; 0x26568 <thermal_model_reset_settings()>
    }
    thermal_model::setup();
   129c0:	0f 94 15 30 	call	0x2602a	; 0x2602a <thermal_model::setup() [clone .lto_priv.555]>
}

void thermal_model_load_settings()
{
    static_assert(THERMAL_MODEL_R_SIZE == 16); // ensure we don't desync with the eeprom table
    TempMgrGuard temp_mgr_guard;
   129c4:	ce 01       	movw	r24, r28
   129c6:	01 96       	adiw	r24, 0x01	; 1
   129c8:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
#ifdef THERMAL_MODEL
    thermal_model_load_settings();
#endif

        SERIAL_ECHO_START;
   129cc:	80 ed       	ldi	r24, 0xD0	; 208
   129ce:	9a ea       	ldi	r25, 0xAA	; 170
   129d0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLNPGM("Stored settings retrieved");
   129d4:	87 e3       	ldi	r24, 0x37	; 55
   129d6:	97 e7       	ldi	r25, 0x77	; 119
   129d8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   129dc:	81 e0       	ldi	r24, 0x01	; 1
        if (eeprom_is_initialized_block(EEPROM_M500_base->version, sizeof(EEPROM_M500_base->version))) {
            return false;
        }
    }
    return true;
}
   129de:	0f 90       	pop	r0
   129e0:	df 91       	pop	r29
   129e2:	cf 91       	pop	r28
   129e4:	1f 91       	pop	r17
   129e6:	0f 91       	pop	r16
   129e8:	ff 90       	pop	r15
   129ea:	ef 90       	pop	r14
   129ec:	bf 90       	pop	r11
   129ee:	af 90       	pop	r10
   129f0:	9f 90       	pop	r9
   129f2:	8f 90       	pop	r8
   129f4:	7f 90       	pop	r7
   129f6:	6f 90       	pop	r6
   129f8:	5f 90       	pop	r5
   129fa:	4f 90       	pop	r4
   129fc:	08 95       	ret
        SERIAL_ECHO_START;
        SERIAL_ECHOLNPGM("Stored settings retrieved");
    }
    else
    {
        Config_ResetDefault();
   129fe:	0e 94 13 82 	call	0x10426	; 0x10426 <Config_ResetDefault()>
        //Return false to inform user that eeprom version was changed and firmware is using default hardcoded settings now.
        //In case that storing to eeprom was not used yet, do not inform user that hardcoded settings are used.
        if (eeprom_is_initialized_block(EEPROM_M500_base->version, sizeof(EEPROM_M500_base->version))) {
   12a02:	64 e0       	ldi	r22, 0x04	; 4
   12a04:	70 e0       	ldi	r23, 0x00	; 0
   12a06:	84 e1       	ldi	r24, 0x14	; 20
   12a08:	90 e0       	ldi	r25, 0x00	; 0
   12a0a:	0e 94 42 5b 	call	0xb684	; 0xb684 <eeprom_is_initialized_block(void const*, unsigned int)>
   12a0e:	91 e0       	ldi	r25, 0x01	; 1
   12a10:	89 27       	eor	r24, r25
   12a12:	e5 cf       	rjmp	.-54     	; 0x129de <Config_RetrieveSettings()+0x368>

00012a14 <process_commands() [clone .part.46]>:
They are shown in order of appearance in the code.
There are reasons why some G Codes aren't in numerical order.
*/


void process_commands()
   12a14:	2f 92       	push	r2
   12a16:	3f 92       	push	r3
   12a18:	4f 92       	push	r4
   12a1a:	5f 92       	push	r5
   12a1c:	6f 92       	push	r6
   12a1e:	7f 92       	push	r7
   12a20:	8f 92       	push	r8
   12a22:	9f 92       	push	r9
   12a24:	af 92       	push	r10
   12a26:	bf 92       	push	r11
   12a28:	cf 92       	push	r12
   12a2a:	df 92       	push	r13
   12a2c:	ef 92       	push	r14
   12a2e:	ff 92       	push	r15
   12a30:	0f 93       	push	r16
   12a32:	1f 93       	push	r17
   12a34:	cf 93       	push	r28
   12a36:	df 93       	push	r29
   12a38:	cd b7       	in	r28, 0x3d	; 61
   12a3a:	de b7       	in	r29, 0x3e	; 62
   12a3c:	cf 58       	subi	r28, 0x8F	; 143
   12a3e:	d1 09       	sbc	r29, r1
   12a40:	0f b6       	in	r0, 0x3f	; 63
   12a42:	f8 94       	cli
   12a44:	de bf       	out	0x3e, r29	; 62
   12a46:	0f be       	out	0x3f, r0	; 63
   12a48:	cd bf       	out	0x3d, r28	; 61
#endif /* CMDBUFFER_DEBUG */

  unsigned long codenum; //throw away variable

  // PRUSA GCODES
  KEEPALIVE_STATE(IN_HANDLER);
   12a4a:	82 e0       	ldi	r24, 0x02	; 2
   12a4c:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
        - TMC_SET_STEP
        - TMC_SET_CHOP
    */
	if (false) {} // allow chaining of optional next else if blocks
#ifdef TMC2130
	else if (strncmp_P(CMDBUFFER_CURRENT_STRING, PSTR("CRASH_"), 6) == 0)
   12a50:	a0 90 92 12 	lds	r10, 0x1292	; 0x801292 <bufindr>
   12a54:	b0 90 93 12 	lds	r11, 0x1293	; 0x801293 <bufindr+0x1>
   12a58:	85 01       	movw	r16, r10
   12a5a:	08 55       	subi	r16, 0x58	; 88
   12a5c:	1f 4e       	sbci	r17, 0xEF	; 239
   12a5e:	46 e0       	ldi	r20, 0x06	; 6
   12a60:	50 e0       	ldi	r21, 0x00	; 0
   12a62:	66 e1       	ldi	r22, 0x16	; 22
   12a64:	78 e8       	ldi	r23, 0x88	; 136
   12a66:	c8 01       	movw	r24, r16
   12a68:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12a6c:	89 2b       	or	r24, r25
   12a6e:	09 f0       	breq	.+2      	; 0x12a72 <process_commands() [clone .part.46]+0x5e>
   12a70:	b8 c0       	rjmp	.+368    	; 0x12be2 <process_commands() [clone .part.46]+0x1ce>
	{

    // ### CRASH_DETECTED - TMC2130
    // ---------------------------------
	  if(code_seen_P(PSTR("CRASH_DETECTED")))
   12a72:	87 e0       	ldi	r24, 0x07	; 7
   12a74:	98 e8       	ldi	r25, 0x88	; 136
   12a76:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12a7a:	88 23       	and	r24, r24
   12a7c:	09 f4       	brne	.+2      	; 0x12a80 <process_commands() [clone .part.46]+0x6c>
   12a7e:	91 c0       	rjmp	.+290    	; 0x12ba2 <process_commands() [clone .part.46]+0x18e>
	  {
		  uint8_t mask = 0;
		  if (code_seen('X')) mask |= X_AXIS_MASK;
   12a80:	88 e5       	ldi	r24, 0x58	; 88
   12a82:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   12a86:	18 2f       	mov	r17, r24
		  if (code_seen('Y')) mask |= Y_AXIS_MASK;
   12a88:	89 e5       	ldi	r24, 0x59	; 89
   12a8a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   12a8e:	81 11       	cpse	r24, r1
   12a90:	12 60       	ori	r17, 0x02	; 2
    strcpy_P(buf, _T(MSG_CRASH_DETECTED));
}

void crashdet_detected(uint8_t mask)
{
	st_synchronize();
   12a92:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	static uint8_t crashDet_counter = 0;
	static uint8_t crashDet_axes = 0;
	bool automatic_recovery_after_crash = true;
	char msg[LCD_WIDTH+1] = "";
   12a96:	1a 82       	std	Y+2, r1	; 0x02
   12a98:	19 82       	std	Y+1, r1	; 0x01
   12a9a:	fe 01       	movw	r30, r28
   12a9c:	33 96       	adiw	r30, 0x03	; 3
   12a9e:	83 e1       	ldi	r24, 0x13	; 19
   12aa0:	df 01       	movw	r26, r30
   12aa2:	1d 92       	st	X+, r1
   12aa4:	8a 95       	dec	r24
   12aa6:	e9 f7       	brne	.-6      	; 0x12aa2 <process_commands() [clone .part.46]+0x8e>

    if (crashDetTimer.expired(CRASHDET_TIMER * 1000ul)) {
   12aa8:	48 ec       	ldi	r20, 0xC8	; 200
   12aaa:	5f ea       	ldi	r21, 0xAF	; 175
   12aac:	60 e0       	ldi	r22, 0x00	; 0
   12aae:	70 e0       	ldi	r23, 0x00	; 0
   12ab0:	85 e7       	ldi	r24, 0x75	; 117
   12ab2:	93 e0       	ldi	r25, 0x03	; 3
   12ab4:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   12ab8:	81 11       	cpse	r24, r1
        crashDet_counter = 0;
   12aba:	10 92 74 03 	sts	0x0374, r1	; 0x800374 <crashdet_detected(unsigned char)::crashDet_counter>
    }
    if(++crashDet_counter >= CRASHDET_COUNTER_MAX) {
   12abe:	00 91 74 03 	lds	r16, 0x0374	; 0x800374 <crashdet_detected(unsigned char)::crashDet_counter>
   12ac2:	0f 5f       	subi	r16, 0xFF	; 255
   12ac4:	00 93 74 03 	sts	0x0374, r16	; 0x800374 <crashdet_detected(unsigned char)::crashDet_counter>
        automatic_recovery_after_crash = false;
    }
    crashDetTimer.start();
   12ac8:	85 e7       	ldi	r24, 0x75	; 117
   12aca:	93 e0       	ldi	r25, 0x03	; 3
   12acc:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
    crashDet_axes |= mask;
   12ad0:	80 91 73 03 	lds	r24, 0x0373	; 0x800373 <crashdet_detected(unsigned char)::crashDet_axes>
   12ad4:	81 2b       	or	r24, r17
   12ad6:	80 93 73 03 	sts	0x0373, r24	; 0x800373 <crashdet_detected(unsigned char)::crashDet_axes>

	if (mask & X_AXIS_MASK) {
   12ada:	10 ff       	sbrs	r17, 0
   12adc:	08 c0       	rjmp	.+16     	; 0x12aee <process_commands() [clone .part.46]+0xda>
		eeprom_increment_byte((uint8_t*)EEPROM_CRASH_COUNT_X);
   12ade:	86 e6       	ldi	r24, 0x66	; 102
   12ae0:	9f e0       	ldi	r25, 0x0F	; 15
   12ae2:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
		eeprom_increment_word((uint16_t*)EEPROM_CRASH_COUNT_X_TOT);
   12ae6:	85 e0       	ldi	r24, 0x05	; 5
   12ae8:	9f e0       	ldi	r25, 0x0F	; 15
   12aea:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>
	}
	if (mask & Y_AXIS_MASK) {
   12aee:	11 ff       	sbrs	r17, 1
   12af0:	08 c0       	rjmp	.+16     	; 0x12b02 <process_commands() [clone .part.46]+0xee>
		eeprom_increment_byte((uint8_t*)EEPROM_CRASH_COUNT_Y);
   12af2:	88 e6       	ldi	r24, 0x68	; 104
   12af4:	9f e0       	ldi	r25, 0x0F	; 15
   12af6:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
		eeprom_increment_word((uint16_t*)EEPROM_CRASH_COUNT_Y_TOT);
   12afa:	83 e0       	ldi	r24, 0x03	; 3
   12afc:	9f e0       	ldi	r25, 0x0F	; 15
   12afe:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>
	}

    lcd_update_enable(true);
   12b02:	81 e0       	ldi	r24, 0x01	; 1
   12b04:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
    lcd_update(2);
   12b08:	82 e0       	ldi	r24, 0x02	; 2
   12b0a:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
    // prepare the status message with the _current_ axes status
    crashdet_fmt_error(msg, mask);
   12b0e:	61 2f       	mov	r22, r17
   12b10:	ce 01       	movw	r24, r28
   12b12:	01 96       	adiw	r24, 0x01	; 1
   12b14:	0e 94 90 73 	call	0xe720	; 0xe720 <crashdet_fmt_error(char*, unsigned char)>
    lcd_setstatus(msg);
   12b18:	ce 01       	movw	r24, r28
   12b1a:	01 96       	adiw	r24, 0x01	; 1
   12b1c:	0e 94 6e f5 	call	0x1eadc	; 0x1eadc <lcd_setstatus(char const*)>

	gcode_G28(true, true, false); //home X and Y
   12b20:	40 e0       	ldi	r20, 0x00	; 0
   12b22:	61 e0       	ldi	r22, 0x01	; 1
   12b24:	81 e0       	ldi	r24, 0x01	; 1
   12b26:	0e 94 8c 7e 	call	0xfd18	; 0xfd18 <gcode_G28(bool, bool, bool)>

	if (automatic_recovery_after_crash) {
		enquecommand_P(PSTR("CRASH_RECOVER"));
   12b2a:	61 e0       	ldi	r22, 0x01	; 1
   12b2c:	84 e9       	ldi	r24, 0x94	; 148
   12b2e:	94 e8       	ldi	r25, 0x84	; 132
    crashdet_fmt_error(msg, mask);
    lcd_setstatus(msg);

	gcode_G28(true, true, false); //home X and Y

	if (automatic_recovery_after_crash) {
   12b30:	03 30       	cpi	r16, 0x03	; 3
   12b32:	60 f1       	brcs	.+88     	; 0x12b8c <process_commands() [clone .part.46]+0x178>
   12b34:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   12b38:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
		enquecommand_P(PSTR("CRASH_RECOVER"));
	}else{
		setTargetHotend(0);

        // notify the user of *all* the axes previously affected, not just the last one
        lcd_update_enable(false);
   12b3c:	80 e0       	ldi	r24, 0x00	; 0
   12b3e:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        lcd_clear();
   12b42:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
        crashdet_fmt_error(msg, crashDet_axes);
   12b46:	60 91 73 03 	lds	r22, 0x0373	; 0x800373 <crashdet_detected(unsigned char)::crashDet_axes>
   12b4a:	ce 01       	movw	r24, r28
   12b4c:	01 96       	adiw	r24, 0x01	; 1
   12b4e:	0e 94 90 73 	call	0xe720	; 0xe720 <crashdet_fmt_error(char*, unsigned char)>
        crashDet_axes = 0;
   12b52:	10 92 73 03 	sts	0x0373, r1	; 0x800373 <crashdet_detected(unsigned char)::crashDet_axes>
        lcd_print(msg);
   12b56:	ce 01       	movw	r24, r28
   12b58:	01 96       	adiw	r24, 0x01	; 1
   12b5a:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>

        // ask whether to resume printing
        lcd_puts_at_P(0, 1, _T(MSG_RESUME_PRINT));
   12b5e:	84 ea       	ldi	r24, 0xA4	; 164
   12b60:	96 e4       	ldi	r25, 0x46	; 70
   12b62:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   12b66:	ac 01       	movw	r20, r24
   12b68:	61 e0       	ldi	r22, 0x01	; 1
   12b6a:	80 e0       	ldi	r24, 0x00	; 0
   12b6c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        lcd_putc('?');
   12b70:	8f e3       	ldi	r24, 0x3F	; 63
   12b72:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
//! @retval 0 yes choice selected by user
//! @retval 1 no choice selected by user
//! @retval 0xFF button timeout (only possible if allow_timeouting is true)
uint8_t lcd_show_yes_no_and_wait(bool allow_timeouting, uint8_t default_selection)
{
    return lcd_show_multiscreen_message_yes_no_and_wait_P(NULL, allow_timeouting, default_selection);
   12b76:	40 e0       	ldi	r20, 0x00	; 0
   12b78:	60 e0       	ldi	r22, 0x00	; 0
   12b7a:	90 e0       	ldi	r25, 0x00	; 0
   12b7c:	80 e0       	ldi	r24, 0x00	; 0
   12b7e:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
        uint8_t yesno = lcd_show_yes_no_and_wait(false, LCD_LEFT_BUTTON_CHOICE);
		if (yesno == LCD_LEFT_BUTTON_CHOICE)
		{
			enquecommand_P(PSTR("CRASH_RECOVER"));
   12b82:	61 e0       	ldi	r22, 0x01	; 1

        // ask whether to resume printing
        lcd_puts_at_P(0, 1, _T(MSG_RESUME_PRINT));
        lcd_putc('?');
        uint8_t yesno = lcd_show_yes_no_and_wait(false, LCD_LEFT_BUTTON_CHOICE);
		if (yesno == LCD_LEFT_BUTTON_CHOICE)
   12b84:	81 11       	cpse	r24, r1
   12b86:	0a c0       	rjmp	.+20     	; 0x12b9c <process_commands() [clone .part.46]+0x188>
		{
			enquecommand_P(PSTR("CRASH_RECOVER"));
   12b88:	86 e8       	ldi	r24, 0x86	; 134
   12b8a:	94 e8       	ldi	r25, 0x84	; 132
		}
		else // LCD_MIDDLE_BUTTON_CHOICE
		{
			enquecommand_P(PSTR("CRASH_CANCEL"));
   12b8c:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    SERIAL_ECHO_START;
    SERIAL_ECHORPGM(MSG_UNKNOWN_COMMAND);
    SERIAL_ECHO(CMDBUFFER_CURRENT_STRING);
    SERIAL_ECHOLNPGM("\"(2)");
  }
  KEEPALIVE_STATE(NOT_BUSY);
   12b90:	81 e0       	ldi	r24, 0x01	; 1
   12b92:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
  ClearToSend();
   12b96:	0e 94 b1 7e 	call	0xfd62	; 0xfd62 <ClearToSend()>
   12b9a:	5e c3       	rjmp	.+1724   	; 0x13258 <process_commands() [clone .part.46]+0x844>
		{
			enquecommand_P(PSTR("CRASH_RECOVER"));
		}
		else // LCD_MIDDLE_BUTTON_CHOICE
		{
			enquecommand_P(PSTR("CRASH_CANCEL"));
   12b9c:	89 e7       	ldi	r24, 0x79	; 121
   12b9e:	94 e8       	ldi	r25, 0x84	; 132
   12ba0:	f5 cf       	rjmp	.-22     	; 0x12b8c <process_commands() [clone .part.46]+0x178>
		  crashdet_detected(mask);
	  }

    // ### CRASH_RECOVER - TMC2130
    // ----------------------------------
	  else if(code_seen_P(PSTR("CRASH_RECOVER")))
   12ba2:	89 ef       	ldi	r24, 0xF9	; 249
   12ba4:	97 e8       	ldi	r25, 0x87	; 135
   12ba6:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12baa:	88 23       	and	r24, r24
   12bac:	69 f0       	breq	.+26     	; 0x12bc8 <process_commands() [clone .part.46]+0x1b4>
	}
}

void crashdet_recover()
{
	if (!printingIsPaused()) crashdet_restore_print_and_continue();
   12bae:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   12bb2:	81 11       	cpse	r24, r1
   12bb4:	06 c0       	rjmp	.+12     	; 0x12bc2 <process_commands() [clone .part.46]+0x1ae>
	stop_and_save_print_to_ram(pause_position[Z_AXIS], -default_retraction); //XY - no change, Pause Z LIFT mm up, E -1mm retract
}

void crashdet_restore_print_and_continue()
{
  restore_print_from_ram_and_continue(default_retraction); //XYZ = orig, E +1mm unretract
   12bb6:	60 e0       	ldi	r22, 0x00	; 0
   12bb8:	70 e0       	ldi	r23, 0x00	; 0
   12bba:	80 e8       	ldi	r24, 0x80	; 128
   12bbc:	9f e3       	ldi	r25, 0x3F	; 63
   12bbe:	0e 94 cb 67 	call	0xcf96	; 0xcf96 <restore_print_from_ram_and_continue(float)>
}

void crashdet_recover()
{
	if (!printingIsPaused()) crashdet_restore_print_and_continue();
	crashdet_use_eeprom_setting();
   12bc2:	0f 94 61 27 	call	0x24ec2	; 0x24ec2 <crashdet_use_eeprom_setting()>
   12bc6:	e4 cf       	rjmp	.-56     	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
	  else if(code_seen_P(PSTR("CRASH_RECOVER")))
		  crashdet_recover();

    // ### CRASH_CANCEL - TMC2130
    // ----------------------------------
	  else if(code_seen_P(PSTR("CRASH_CANCEL")))
   12bc8:	8c ee       	ldi	r24, 0xEC	; 236
   12bca:	97 e8       	ldi	r25, 0x87	; 135
   12bcc:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12bd0:	88 23       	and	r24, r24
   12bd2:	f1 f2       	breq	.-68     	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
}

/// Crash detection cancels the print
void crashdet_cancel() {
    // Restore crash detection
    crashdet_use_eeprom_setting();
   12bd4:	0f 94 61 27 	call	0x24ec2	; 0x24ec2 <crashdet_use_eeprom_setting()>

    // Abort the print
    print_stop();
   12bd8:	60 e0       	ldi	r22, 0x00	; 0
   12bda:	80 e0       	ldi	r24, 0x00	; 0
   12bdc:	0e 94 7f f5 	call	0x1eafe	; 0x1eafe <print_stop(bool, bool)>
   12be0:	d7 cf       	rjmp	.-82     	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    // ### CRASH_CANCEL - TMC2130
    // ----------------------------------
	  else if(code_seen_P(PSTR("CRASH_CANCEL")))
		  crashdet_cancel();
	}
	else if (strncmp_P(CMDBUFFER_CURRENT_STRING, PSTR("TMC_"), 4) == 0)
   12be2:	44 e0       	ldi	r20, 0x04	; 4
   12be4:	50 e0       	ldi	r21, 0x00	; 0
   12be6:	67 ee       	ldi	r22, 0xE7	; 231
   12be8:	77 e8       	ldi	r23, 0x87	; 135
   12bea:	c8 01       	movw	r24, r16
   12bec:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12bf0:	89 2b       	or	r24, r25
   12bf2:	09 f0       	breq	.+2      	; 0x12bf6 <process_commands() [clone .part.46]+0x1e2>
   12bf4:	fc c0       	rjmp	.+504    	; 0x12dee <process_commands() [clone .part.46]+0x3da>
	{

    // ### TMC_SET_WAVE_
    // --------------------
		if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_WAVE_"), 9) == 0)
   12bf6:	85 01       	movw	r16, r10
   12bf8:	04 55       	subi	r16, 0x54	; 84
   12bfa:	1f 4e       	sbci	r17, 0xEF	; 239
   12bfc:	49 e0       	ldi	r20, 0x09	; 9
   12bfe:	50 e0       	ldi	r21, 0x00	; 0
   12c00:	6d ed       	ldi	r22, 0xDD	; 221
   12c02:	77 e8       	ldi	r23, 0x87	; 135
   12c04:	c8 01       	movw	r24, r16
   12c06:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12c0a:	89 2b       	or	r24, r25
   12c0c:	c9 f4       	brne	.+50     	; 0x12c40 <process_commands() [clone .part.46]+0x22c>
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
   12c0e:	f5 01       	movw	r30, r10
   12c10:	eb 54       	subi	r30, 0x4B	; 75
   12c12:	ff 4e       	sbci	r31, 0xEF	; 239
   12c14:	10 81       	ld	r17, Z
			axis = (axis == 'E')?3:(axis - 'X');
   12c16:	15 34       	cpi	r17, 0x45	; 69
   12c18:	89 f0       	breq	.+34     	; 0x12c3c <process_commands() [clone .part.46]+0x228>
   12c1a:	18 55       	subi	r17, 0x58	; 88
			if (axis < 4)
   12c1c:	14 30       	cpi	r17, 0x04	; 4
   12c1e:	08 f0       	brcs	.+2      	; 0x12c22 <process_commands() [clone .part.46]+0x20e>
   12c20:	b7 cf       	rjmp	.-146    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
			{
				uint8_t fac = (uint8_t)strtol(CMDBUFFER_CURRENT_STRING + 14, NULL, 10);
   12c22:	4a e0       	ldi	r20, 0x0A	; 10
   12c24:	50 e0       	ldi	r21, 0x00	; 0
   12c26:	70 e0       	ldi	r23, 0x00	; 0
   12c28:	60 e0       	ldi	r22, 0x00	; 0
   12c2a:	c5 01       	movw	r24, r10
   12c2c:	8a 54       	subi	r24, 0x4A	; 74
   12c2e:	9f 4e       	sbci	r25, 0xEF	; 239
   12c30:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
				tmc2130_set_wave(axis, 247, fac);
   12c34:	81 2f       	mov	r24, r17
   12c36:	0f 94 cb 88 	call	0x31196	; 0x31196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>
   12c3a:	aa cf       	rjmp	.-172    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    // ### TMC_SET_WAVE_
    // --------------------
		if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_WAVE_"), 9) == 0)
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
			axis = (axis == 'E')?3:(axis - 'X');
   12c3c:	13 e0       	ldi	r17, 0x03	; 3
   12c3e:	f1 cf       	rjmp	.-30     	; 0x12c22 <process_commands() [clone .part.46]+0x20e>
			}
		}

    // ### TMC_SET_STEP_
    //  ------------------
		else if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_STEP_"), 9) == 0)
   12c40:	49 e0       	ldi	r20, 0x09	; 9
   12c42:	50 e0       	ldi	r21, 0x00	; 0
   12c44:	63 ed       	ldi	r22, 0xD3	; 211
   12c46:	77 e8       	ldi	r23, 0x87	; 135
   12c48:	c8 01       	movw	r24, r16
   12c4a:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12c4e:	89 2b       	or	r24, r25
   12c50:	51 f5       	brne	.+84     	; 0x12ca6 <process_commands() [clone .part.46]+0x292>
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
   12c52:	f5 01       	movw	r30, r10
   12c54:	eb 54       	subi	r30, 0x4B	; 75
   12c56:	ff 4e       	sbci	r31, 0xEF	; 239
   12c58:	10 81       	ld	r17, Z
			axis = (axis == 'E')?3:(axis - 'X');
   12c5a:	15 34       	cpi	r17, 0x45	; 69
   12c5c:	11 f1       	breq	.+68     	; 0x12ca2 <process_commands() [clone .part.46]+0x28e>
   12c5e:	18 55       	subi	r17, 0x58	; 88
			if (axis < 4)
   12c60:	14 30       	cpi	r17, 0x04	; 4
   12c62:	08 f0       	brcs	.+2      	; 0x12c66 <process_commands() [clone .part.46]+0x252>
   12c64:	95 cf       	rjmp	.-214    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
			{
				uint8_t step = (uint8_t)strtol(CMDBUFFER_CURRENT_STRING + 14, NULL, 10);
   12c66:	4a e0       	ldi	r20, 0x0A	; 10
   12c68:	50 e0       	ldi	r21, 0x00	; 0
   12c6a:	70 e0       	ldi	r23, 0x00	; 0
   12c6c:	60 e0       	ldi	r22, 0x00	; 0
   12c6e:	c5 01       	movw	r24, r10
   12c70:	8a 54       	subi	r24, 0x4A	; 74
   12c72:	9f 4e       	sbci	r25, 0xEF	; 239
   12c74:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   12c78:	e1 2f       	mov	r30, r17
   12c7a:	f0 e0       	ldi	r31, 0x00	; 0
   12c7c:	eb 50       	subi	r30, 0x0B	; 11
   12c7e:	fb 4f       	sbci	r31, 0xFB	; 251
   12c80:	80 81       	ld	r24, Z
   12c82:	40 e0       	ldi	r20, 0x00	; 0
   12c84:	51 e0       	ldi	r21, 0x01	; 1
   12c86:	02 c0       	rjmp	.+4      	; 0x12c8c <process_commands() [clone .part.46]+0x278>
   12c88:	56 95       	lsr	r21
   12c8a:	47 95       	ror	r20
   12c8c:	8a 95       	dec	r24
   12c8e:	e2 f7       	brpl	.-8      	; 0x12c88 <process_commands() [clone .part.46]+0x274>
				uint16_t res = tmc2130_get_res(axis);
				tmc2130_goto_step(axis, step & (4*res - 1), 2, 1000, res);
   12c90:	84 2f       	mov	r24, r20
   12c92:	88 0f       	add	r24, r24
   12c94:	88 0f       	add	r24, r24
   12c96:	81 50       	subi	r24, 0x01	; 1
   12c98:	68 23       	and	r22, r24
   12c9a:	81 2f       	mov	r24, r17
   12c9c:	0f 94 e2 8b 	call	0x317c4	; 0x317c4 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]>
   12ca0:	77 cf       	rjmp	.-274    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    // ### TMC_SET_STEP_
    //  ------------------
		else if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_STEP_"), 9) == 0)
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
			axis = (axis == 'E')?3:(axis - 'X');
   12ca2:	13 e0       	ldi	r17, 0x03	; 3
   12ca4:	e0 cf       	rjmp	.-64     	; 0x12c66 <process_commands() [clone .part.46]+0x252>
			}
		}

    // ### TMC_SET_CHOP_
    //  -------------------
		else if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_CHOP_"), 9) == 0)
   12ca6:	49 e0       	ldi	r20, 0x09	; 9
   12ca8:	50 e0       	ldi	r21, 0x00	; 0
   12caa:	69 ec       	ldi	r22, 0xC9	; 201
   12cac:	77 e8       	ldi	r23, 0x87	; 135
   12cae:	c8 01       	movw	r24, r16
   12cb0:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12cb4:	89 2b       	or	r24, r25
   12cb6:	09 f0       	breq	.+2      	; 0x12cba <process_commands() [clone .part.46]+0x2a6>
   12cb8:	6b cf       	rjmp	.-298    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
   12cba:	f5 01       	movw	r30, r10
   12cbc:	eb 54       	subi	r30, 0x4B	; 75
   12cbe:	ff 4e       	sbci	r31, 0xEF	; 239
   12cc0:	80 81       	ld	r24, Z
			axis = (axis == 'E')?3:(axis - 'X');
   12cc2:	85 34       	cpi	r24, 0x45	; 69
   12cc4:	09 f4       	brne	.+2      	; 0x12cc8 <process_commands() [clone .part.46]+0x2b4>
   12cc6:	90 c0       	rjmp	.+288    	; 0x12de8 <process_commands() [clone .part.46]+0x3d4>
   12cc8:	98 ea       	ldi	r25, 0xA8	; 168
   12cca:	c9 2e       	mov	r12, r25
   12ccc:	c8 0e       	add	r12, r24
			if (axis < 4)
   12cce:	b3 e0       	ldi	r27, 0x03	; 3
   12cd0:	bc 15       	cp	r27, r12
   12cd2:	08 f4       	brcc	.+2      	; 0x12cd6 <process_commands() [clone .part.46]+0x2c2>
   12cd4:	5d cf       	rjmp	.-326    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
			{
				uint8_t chop0 = tmc2130_chopper_config[axis].toff;
   12cd6:	ec 2c       	mov	r14, r12
   12cd8:	f1 2c       	mov	r15, r1
   12cda:	47 01       	movw	r8, r14
   12cdc:	88 0c       	add	r8, r8
   12cde:	99 1c       	adc	r9, r9
   12ce0:	f4 01       	movw	r30, r8
   12ce2:	eb 55       	subi	r30, 0x5B	; 91
   12ce4:	fd 4f       	sbci	r31, 0xFD	; 253
   12ce6:	00 81       	ld	r16, Z
   12ce8:	20 2f       	mov	r18, r16
   12cea:	2f 70       	andi	r18, 0x0F	; 15
				uint8_t chop1 = tmc2130_chopper_config[axis].hstr;
   12cec:	10 2f       	mov	r17, r16
   12cee:	12 95       	swap	r17
   12cf0:	17 70       	andi	r17, 0x07	; 7
				uint8_t chop2 = tmc2130_chopper_config[axis].hend;
   12cf2:	00 1f       	adc	r16, r16
   12cf4:	00 27       	eor	r16, r16
   12cf6:	00 1f       	adc	r16, r16
   12cf8:	61 81       	ldd	r22, Z+1	; 0x01
   12cfa:	67 70       	andi	r22, 0x07	; 7
   12cfc:	66 0f       	add	r22, r22
   12cfe:	06 2b       	or	r16, r22
				uint8_t chop3 = tmc2130_chopper_config[axis].tbl;
   12d00:	f4 01       	movw	r30, r8
   12d02:	ea 55       	subi	r30, 0x5A	; 90
   12d04:	fd 4f       	sbci	r31, 0xFD	; 253
   12d06:	d0 80       	ld	r13, Z
   12d08:	d6 94       	lsr	r13
   12d0a:	d6 94       	lsr	r13
   12d0c:	d6 94       	lsr	r13
   12d0e:	ed 2d       	mov	r30, r13
   12d10:	e3 70       	andi	r30, 0x03	; 3
   12d12:	de 2e       	mov	r13, r30
				char* str_end = 0;
   12d14:	1a 82       	std	Y+2, r1	; 0x02
   12d16:	19 82       	std	Y+1, r1	; 0x01
				if (CMDBUFFER_CURRENT_STRING[14])
   12d18:	c5 01       	movw	r24, r10
   12d1a:	8a 54       	subi	r24, 0x4A	; 74
   12d1c:	9f 4e       	sbci	r25, 0xEF	; 239
   12d1e:	dc 01       	movw	r26, r24
   12d20:	3c 91       	ld	r19, X
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
			axis = (axis == 'E')?3:(axis - 'X');
			if (axis < 4)
			{
				uint8_t chop0 = tmc2130_chopper_config[axis].toff;
   12d22:	b2 2e       	mov	r11, r18
				uint8_t chop1 = tmc2130_chopper_config[axis].hstr;
				uint8_t chop2 = tmc2130_chopper_config[axis].hend;
				uint8_t chop3 = tmc2130_chopper_config[axis].tbl;
				char* str_end = 0;
				if (CMDBUFFER_CURRENT_STRING[14])
   12d24:	33 23       	and	r19, r19
   12d26:	e1 f1       	breq	.+120    	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
				{
					chop0 = (uint8_t)strtol(CMDBUFFER_CURRENT_STRING + 14, &str_end, 10) & 15;
   12d28:	4a e0       	ldi	r20, 0x0A	; 10
   12d2a:	50 e0       	ldi	r21, 0x00	; 0
   12d2c:	be 01       	movw	r22, r28
   12d2e:	6f 5f       	subi	r22, 0xFF	; 255
   12d30:	7f 4f       	sbci	r23, 0xFF	; 255
   12d32:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   12d36:	6f 70       	andi	r22, 0x0F	; 15
   12d38:	b6 2e       	mov	r11, r22
					if (str_end && *str_end)
   12d3a:	89 81       	ldd	r24, Y+1	; 0x01
   12d3c:	9a 81       	ldd	r25, Y+2	; 0x02
   12d3e:	00 97       	sbiw	r24, 0x00	; 0
   12d40:	79 f1       	breq	.+94     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
   12d42:	fc 01       	movw	r30, r24
   12d44:	20 81       	ld	r18, Z
   12d46:	22 23       	and	r18, r18
   12d48:	59 f1       	breq	.+86     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
					{
						chop1 = (uint8_t)strtol(str_end, &str_end, 10) & 7;
   12d4a:	4a e0       	ldi	r20, 0x0A	; 10
   12d4c:	50 e0       	ldi	r21, 0x00	; 0
   12d4e:	be 01       	movw	r22, r28
   12d50:	6f 5f       	subi	r22, 0xFF	; 255
   12d52:	7f 4f       	sbci	r23, 0xFF	; 255
   12d54:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   12d58:	16 2f       	mov	r17, r22
   12d5a:	17 70       	andi	r17, 0x07	; 7
						if (str_end && *str_end)
   12d5c:	89 81       	ldd	r24, Y+1	; 0x01
   12d5e:	9a 81       	ldd	r25, Y+2	; 0x02
   12d60:	00 97       	sbiw	r24, 0x00	; 0
   12d62:	f1 f0       	breq	.+60     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
   12d64:	dc 01       	movw	r26, r24
   12d66:	2c 91       	ld	r18, X
   12d68:	22 23       	and	r18, r18
   12d6a:	d1 f0       	breq	.+52     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
						{
							chop2 = (uint8_t)strtol(str_end, &str_end, 10) & 15;
   12d6c:	4a e0       	ldi	r20, 0x0A	; 10
   12d6e:	50 e0       	ldi	r21, 0x00	; 0
   12d70:	be 01       	movw	r22, r28
   12d72:	6f 5f       	subi	r22, 0xFF	; 255
   12d74:	7f 4f       	sbci	r23, 0xFF	; 255
   12d76:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   12d7a:	06 2f       	mov	r16, r22
   12d7c:	0f 70       	andi	r16, 0x0F	; 15
							if (str_end && *str_end)
   12d7e:	89 81       	ldd	r24, Y+1	; 0x01
   12d80:	9a 81       	ldd	r25, Y+2	; 0x02
   12d82:	00 97       	sbiw	r24, 0x00	; 0
   12d84:	69 f0       	breq	.+26     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
   12d86:	fc 01       	movw	r30, r24
   12d88:	20 81       	ld	r18, Z
   12d8a:	22 23       	and	r18, r18
   12d8c:	49 f0       	breq	.+18     	; 0x12da0 <process_commands() [clone .part.46]+0x38c>
								chop3 = (uint8_t)strtol(str_end, &str_end, 10) & 3;
   12d8e:	4a e0       	ldi	r20, 0x0A	; 10
   12d90:	50 e0       	ldi	r21, 0x00	; 0
   12d92:	be 01       	movw	r22, r28
   12d94:	6f 5f       	subi	r22, 0xFF	; 255
   12d96:	7f 4f       	sbci	r23, 0xFF	; 255
   12d98:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   12d9c:	63 70       	andi	r22, 0x03	; 3
   12d9e:	d6 2e       	mov	r13, r22
						}
					}
				}
				tmc2130_chopper_config[axis].toff = chop0;
   12da0:	f4 01       	movw	r30, r8
   12da2:	eb 55       	subi	r30, 0x5B	; 91
   12da4:	fd 4f       	sbci	r31, 0xFD	; 253
				tmc2130_chopper_config[axis].hstr = chop1 & 7;
   12da6:	17 70       	andi	r17, 0x07	; 7
   12da8:	12 95       	swap	r17
   12daa:	10 7f       	andi	r17, 0xF0	; 240
				tmc2130_chopper_config[axis].hend = chop2 & 15;
   12dac:	60 2f       	mov	r22, r16
   12dae:	67 95       	ror	r22
   12db0:	66 27       	eor	r22, r22
   12db2:	67 95       	ror	r22
   12db4:	1b 29       	or	r17, r11
   12db6:	16 2b       	or	r17, r22
   12db8:	10 83       	st	Z, r17
   12dba:	60 2f       	mov	r22, r16
   12dbc:	66 95       	lsr	r22
   12dbe:	01 81       	ldd	r16, Z+1	; 0x01
   12dc0:	00 7e       	andi	r16, 0xE0	; 224
				tmc2130_chopper_config[axis].tbl = chop3 & 3;
   12dc2:	2d 2d       	mov	r18, r13
   12dc4:	23 70       	andi	r18, 0x03	; 3
   12dc6:	d2 2e       	mov	r13, r18
   12dc8:	dd 0c       	add	r13, r13
   12dca:	dd 0c       	add	r13, r13
   12dcc:	dd 0c       	add	r13, r13
   12dce:	06 2b       	or	r16, r22
   12dd0:	d0 2a       	or	r13, r16
   12dd2:	d1 82       	std	Z+1, r13	; 0x01
				tmc2130_setup_chopper(axis, tmc2130_mres[axis]);
   12dd4:	f7 01       	movw	r30, r14
   12dd6:	eb 50       	subi	r30, 0x0B	; 11
   12dd8:	fb 4f       	sbci	r31, 0xFB	; 251
   12dda:	50 e0       	ldi	r21, 0x00	; 0
   12ddc:	40 e0       	ldi	r20, 0x00	; 0
   12dde:	60 81       	ld	r22, Z
   12de0:	8c 2d       	mov	r24, r12
   12de2:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
   12de6:	d4 ce       	rjmp	.-600    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    // ### TMC_SET_CHOP_
    //  -------------------
		else if (strncmp_P(CMDBUFFER_CURRENT_STRING + 4, PSTR("SET_CHOP_"), 9) == 0)
		{
			uint8_t axis = *(CMDBUFFER_CURRENT_STRING + 13);
			axis = (axis == 'E')?3:(axis - 'X');
   12de8:	03 e0       	ldi	r16, 0x03	; 3
   12dea:	c0 2e       	mov	r12, r16
   12dec:	74 cf       	rjmp	.-280    	; 0x12cd6 <process_commands() [clone .part.46]+0x2c2>
		st_backlash_y = bl;
		printf_P(_N("st_backlash_y = %d\n"), st_backlash_y);
	}
#endif //BACKLASH_Y
#endif //TMC2130
  else if(strncmp_P(CMDBUFFER_CURRENT_STRING, PSTR("PRUSA"), 5) == 0) {
   12dee:	45 e0       	ldi	r20, 0x05	; 5
   12df0:	50 e0       	ldi	r21, 0x00	; 0
   12df2:	63 ec       	ldi	r22, 0xC3	; 195
   12df4:	77 e8       	ldi	r23, 0x87	; 135
   12df6:	c8 01       	movw	r24, r16
   12df8:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   12dfc:	89 2b       	or	r24, r25
   12dfe:	09 f0       	breq	.+2      	; 0x12e02 <process_commands() [clone .part.46]+0x3ee>
   12e00:	64 c1       	rjmp	.+712    	; 0x130ca <process_commands() [clone .part.46]+0x6b6>
      - `nozzle D<diameter>` - check the nozzle diameter (farm mode only), works like M862.1 P, e.g. `PRUSA nozzle D0.4`
      - `nozzle` - prints nozzle diameter (farm mode only), works like M862.1 P, e.g. `PRUSA nozzle`
    */

        if (farm_prusa_code_seen()) {}
        else if(code_seen_P(PSTR("FANPINTST"))) {
   12e02:	89 eb       	ldi	r24, 0xB9	; 185
   12e04:	97 e8       	ldi	r25, 0x87	; 135
   12e06:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12e0a:	88 23       	and	r24, r24
   12e0c:	09 f4       	brne	.+2      	; 0x12e10 <process_commands() [clone .part.46]+0x3fc>
   12e0e:	3c c0       	rjmp	.+120    	; 0x12e88 <process_commands() [clone .part.46]+0x474>
//! So basically we are interested in maximum time, the minima are mostly the same.
//! May be that's why the bad RAMBo's still produce some fan RPM reading, but not corresponding to reality
static void gcode_PRUSA_BadRAMBoFanTest(){
    //printf_P(PSTR("Enter fan pin test\n"));
#if !defined(DEBUG_DISABLE_FANCHECK) && defined(FANCHECK) && defined(TACH_1) && TACH_1 >-1
	fan_measuring = false; // prevent EXTINT7 breaking into the measurement
   12e10:	10 92 6f 06 	sts	0x066F, r1	; 0x80066f <fan_measuring>
   12e14:	14 e6       	ldi	r17, 0x64	; 100
	unsigned long tach1max = 0;
   12e16:	c1 2c       	mov	r12, r1
   12e18:	d1 2c       	mov	r13, r1
   12e1a:	76 01       	movw	r14, r12
	uint8_t tach1cntr = 0;
	for( /* nothing */; tach1cntr < 100; ++tach1cntr){
		//printf_P(PSTR("TACH_1: %d\n"), tach1cntr);
		SET_OUTPUT(TACH_1);
   12e1c:	6f 9a       	sbi	0x0d, 7	; 13
		WRITE(TACH_1, LOW);
   12e1e:	77 98       	cbi	0x0e, 7	; 14
		_delay(20); // the delay may be lower
   12e20:	64 e1       	ldi	r22, 0x14	; 20
   12e22:	70 e0       	ldi	r23, 0x00	; 0
   12e24:	80 e0       	ldi	r24, 0x00	; 0
   12e26:	90 e0       	ldi	r25, 0x00	; 0
   12e28:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
		unsigned long tachMeasure = _micros();
   12e2c:	0f 94 39 28 	call	0x25072	; 0x25072 <micros2>
   12e30:	4b 01       	movw	r8, r22
   12e32:	5c 01       	movw	r10, r24
		cli();
   12e34:	f8 94       	cli
		SET_INPUT(TACH_1);
   12e36:	6f 98       	cbi	0x0d, 7	; 13
		// just wait brutally in an endless cycle until we reach HIGH
		// if this becomes a problem it may be improved to non-endless cycle
		while( READ(TACH_1) == 0 ) ;
   12e38:	67 9b       	sbis	0x0c, 7	; 12
   12e3a:	fe cf       	rjmp	.-4      	; 0x12e38 <process_commands() [clone .part.46]+0x424>
		sei();
   12e3c:	78 94       	sei
		tachMeasure = _micros() - tachMeasure;
   12e3e:	0f 94 39 28 	call	0x25072	; 0x25072 <micros2>
   12e42:	dc 01       	movw	r26, r24
   12e44:	cb 01       	movw	r24, r22
   12e46:	88 19       	sub	r24, r8
   12e48:	99 09       	sbc	r25, r9
   12e4a:	aa 09       	sbc	r26, r10
   12e4c:	bb 09       	sbc	r27, r11
   12e4e:	c8 16       	cp	r12, r24
   12e50:	d9 06       	cpc	r13, r25
   12e52:	ea 06       	cpc	r14, r26
   12e54:	fb 06       	cpc	r15, r27
   12e56:	10 f4       	brcc	.+4      	; 0x12e5c <process_commands() [clone .part.46]+0x448>
   12e58:	6c 01       	movw	r12, r24
   12e5a:	7d 01       	movw	r14, r26
   12e5c:	11 50       	subi	r17, 0x01	; 1
    //printf_P(PSTR("Enter fan pin test\n"));
#if !defined(DEBUG_DISABLE_FANCHECK) && defined(FANCHECK) && defined(TACH_1) && TACH_1 >-1
	fan_measuring = false; // prevent EXTINT7 breaking into the measurement
	unsigned long tach1max = 0;
	uint8_t tach1cntr = 0;
	for( /* nothing */; tach1cntr < 100; ++tach1cntr){
   12e5e:	f1 f6       	brne	.-68     	; 0x12e1c <process_commands() [clone .part.46]+0x408>
		if( tach1max < tachMeasure )
		tach1max = tachMeasure;
		//printf_P(PSTR("TACH_1: %d: capacitor check time=%lu us\n"), (int)tach1cntr, tachMeasure);
	}
	//printf_P(PSTR("TACH_1: max=%lu us\n"), tach1max);
	SERIAL_PROTOCOLPGM("RAMBo FAN ");
   12e60:	8e e6       	ldi	r24, 0x6E	; 110
   12e62:	94 e8       	ldi	r25, 0x84	; 132
   12e64:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	if( tach1max > 500 ){
		// bad RAMBo
		SERIAL_PROTOCOLLNPGM("BAD");
   12e68:	8a e6       	ldi	r24, 0x6A	; 106
   12e6a:	94 e8       	ldi	r25, 0x84	; 132
		tach1max = tachMeasure;
		//printf_P(PSTR("TACH_1: %d: capacitor check time=%lu us\n"), (int)tach1cntr, tachMeasure);
	}
	//printf_P(PSTR("TACH_1: max=%lu us\n"), tach1max);
	SERIAL_PROTOCOLPGM("RAMBo FAN ");
	if( tach1max > 500 ){
   12e6c:	35 ef       	ldi	r19, 0xF5	; 245
   12e6e:	c3 16       	cp	r12, r19
   12e70:	31 e0       	ldi	r19, 0x01	; 1
   12e72:	d3 06       	cpc	r13, r19
   12e74:	e1 04       	cpc	r14, r1
   12e76:	f1 04       	cpc	r15, r1
   12e78:	10 f4       	brcc	.+4      	; 0x12e7e <process_commands() [clone .part.46]+0x46a>
		// bad RAMBo
		SERIAL_PROTOCOLLNPGM("BAD");
	} else {
		SERIAL_PROTOCOLLNPGM("OK");
   12e7a:	87 e6       	ldi	r24, 0x67	; 103
   12e7c:	94 e8       	ldi	r25, 0x84	; 132
   12e7e:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    }
	// cleanup after the test function
	SET_INPUT(TACH_1);
   12e82:	6f 98       	cbi	0x0d, 7	; 13
	WRITE(TACH_1, HIGH);
   12e84:	77 9a       	sbi	0x0e, 7	; 14
   12e86:	84 ce       	rjmp	.-760    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    */

        if (farm_prusa_code_seen()) {}
        else if(code_seen_P(PSTR("FANPINTST"))) {
            gcode_PRUSA_BadRAMBoFanTest();
        } else if (code_seen_P(PSTR("FAN"))) { // PRUSA FAN
   12e88:	85 eb       	ldi	r24, 0xB5	; 181
   12e8a:	97 e8       	ldi	r25, 0x87	; 135
   12e8c:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12e90:	88 23       	and	r24, r24
   12e92:	21 f1       	breq	.+72     	; 0x12edc <process_commands() [clone .part.46]+0x4c8>
            printf_P(_N("E0:%d RPM\nPRN0:%d RPM\n"), 60*fan_speed[0], 60*fan_speed[1]);
   12e94:	40 91 cb 03 	lds	r20, 0x03CB	; 0x8003cb <fan_speed+0x2>
   12e98:	50 91 cc 03 	lds	r21, 0x03CC	; 0x8003cc <fan_speed+0x3>
   12e9c:	2c e3       	ldi	r18, 0x3C	; 60
   12e9e:	24 9f       	mul	r18, r20
   12ea0:	c0 01       	movw	r24, r0
   12ea2:	25 9f       	mul	r18, r21
   12ea4:	90 0d       	add	r25, r0
   12ea6:	11 24       	eor	r1, r1
   12ea8:	9f 93       	push	r25
   12eaa:	8f 93       	push	r24
   12eac:	40 91 c9 03 	lds	r20, 0x03C9	; 0x8003c9 <fan_speed>
   12eb0:	50 91 ca 03 	lds	r21, 0x03CA	; 0x8003ca <fan_speed+0x1>
   12eb4:	24 9f       	mul	r18, r20
   12eb6:	c0 01       	movw	r24, r0
   12eb8:	25 9f       	mul	r18, r21
   12eba:	90 0d       	add	r25, r0
   12ebc:	11 24       	eor	r1, r1
   12ebe:	9f 93       	push	r25
   12ec0:	8f 93       	push	r24
   12ec2:	84 e8       	ldi	r24, 0x84	; 132
   12ec4:	99 e6       	ldi	r25, 0x69	; 105
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)

#endif //DEBUG_DCODES

    default:
        printf_P(MSG_UNKNOWN_CODE, 'D', cmdbuffer + bufindr + CMDHDRSIZE);
   12ec6:	9f 93       	push	r25
   12ec8:	8f 93       	push	r24
   12eca:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   12ece:	0f 90       	pop	r0
   12ed0:	0f 90       	pop	r0
   12ed2:	0f 90       	pop	r0
   12ed4:	0f 90       	pop	r0
   12ed6:	0f 90       	pop	r0
   12ed8:	0f 90       	pop	r0
   12eda:	5a ce       	rjmp	.-844    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
        if (farm_prusa_code_seen()) {}
        else if(code_seen_P(PSTR("FANPINTST"))) {
            gcode_PRUSA_BadRAMBoFanTest();
        } else if (code_seen_P(PSTR("FAN"))) { // PRUSA FAN
            printf_P(_N("E0:%d RPM\nPRN0:%d RPM\n"), 60*fan_speed[0], 60*fan_speed[1]);
        } else if (code_seen_P(PSTR("uvlo"))) { // PRUSA uvlo
   12edc:	80 eb       	ldi	r24, 0xB0	; 176
   12ede:	97 e8       	ldi	r25, 0x87	; 135
   12ee0:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12ee4:	88 23       	and	r24, r24
   12ee6:	11 f1       	breq	.+68     	; 0x12f2c <process_commands() [clone .part.46]+0x518>
            if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE) == PowerPanic::PRINT_TYPE_SD) {
   12ee8:	8c e8       	ldi	r24, 0x8C	; 140
   12eea:	9f e0       	ldi	r25, 0x0F	; 15
   12eec:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   12ef0:	81 11       	cpse	r24, r1
   12ef2:	10 c0       	rjmp	.+32     	; 0x12f14 <process_commands() [clone .part.46]+0x500>
                // M24 - Start SD print
                enquecommand_P(MSG_M24);
   12ef4:	61 e0       	ldi	r22, 0x01	; 1
   12ef6:	8d e4       	ldi	r24, 0x4D	; 77
   12ef8:	90 e7       	ldi	r25, 0x70	; 112
   12efa:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   12efe:	60 e0       	ldi	r22, 0x00	; 0
   12f00:	85 ea       	ldi	r24, 0xA5	; 165
   12f02:	9f e0       	ldi	r25, 0x0F	; 15
   12f04:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   12f08:	60 e0       	ldi	r22, 0x00	; 0
   12f0a:	8f e7       	ldi	r24, 0x7F	; 127
   12f0c:	9c e0       	ldi	r25, 0x0C	; 12
   12f0e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   12f12:	3e ce       	rjmp	.-900    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>

                // Print is recovered, clear the recovery flag
                eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
                eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO_Z_LIFTED, 0);
            } else if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE) == PowerPanic::PRINT_TYPE_HOST) {
   12f14:	81 30       	cpi	r24, 0x01	; 1
   12f16:	09 f0       	breq	.+2      	; 0x12f1a <process_commands() [clone .part.46]+0x506>
   12f18:	3b ce       	rjmp	.-906    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
                // For Host prints we need to start the timer so that the pause has any effect
                // this will allow g-codes to be processed while in the paused state
                // For SD prints, M24 starts the timer
                print_job_timer.start();
   12f1a:	0f 94 99 43 	call	0x28732	; 0x28732 <Stopwatch::start()>
                usb_timer.start();
   12f1e:	8e e0       	ldi	r24, 0x0E	; 14
   12f20:	95 e0       	ldi	r25, 0x05	; 5
   12f22:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>

                // Park the extruder to the side and don't resume the print
                // we must assume that the host as not fully booted up at this point
                lcd_pause_print();
   12f26:	0f 94 64 2a 	call	0x254c8	; 0x254c8 <lcd_pause_print()>
   12f2a:	32 ce       	rjmp	.-924    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            }
        } else if (code_seen_P(PSTR("MMURES"))) { // PRUSA MMURES
   12f2c:	89 ea       	ldi	r24, 0xA9	; 169
   12f2e:	97 e8       	ldi	r25, 0x87	; 135
   12f30:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12f34:	88 23       	and	r24, r24
   12f36:	21 f0       	breq	.+8      	; 0x12f40 <process_commands() [clone .part.46]+0x52c>
        break;
    }
}

void MMU2::ResetX0() {
    logic.ResetMMU(); // Send soft reset
   12f38:	80 e0       	ldi	r24, 0x00	; 0
   12f3a:	0f 94 88 10 	call	0x22110	; 0x22110 <MMU2::ProtocolLogic::ResetMMU(unsigned char) [clone .constprop.48]>
   12f3e:	28 ce       	rjmp	.-944    	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            MMU2::mmu2.Reset(MMU2::MMU2::Software);
        } else if (code_seen_P(PSTR("RESET"))) { // PRUSA RESET
   12f40:	83 ea       	ldi	r24, 0xA3	; 163
   12f42:	97 e8       	ldi	r25, 0x87	; 135
   12f44:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12f48:	88 23       	and	r24, r24
   12f4a:	51 f0       	breq	.+20     	; 0x12f60 <process_commands() [clone .part.46]+0x54c>
#if defined(XFLASH) && defined(BOOTAPP)
            boot_app_magic = 0;
   12f4c:	10 92 fc 1f 	sts	0x1FFC, r1	; 0x801ffc <__bss_end+0x7dc>
   12f50:	10 92 fd 1f 	sts	0x1FFD, r1	; 0x801ffd <__bss_end+0x7dd>
   12f54:	10 92 fe 1f 	sts	0x1FFE, r1	; 0x801ffe <__bss_end+0x7de>
   12f58:	10 92 ff 1f 	sts	0x1FFF, r1	; 0x801fff <__bss_end+0x7df>
#endif //defined(XFLASH) && defined(BOOTAPP)
            softReset();
   12f5c:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>
        } else if (code_seen_P(PSTR("SN"))) { // PRUSA SN
   12f60:	80 ea       	ldi	r24, 0xA0	; 160
   12f62:	97 e8       	ldi	r25, 0x87	; 135
   12f64:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12f68:	88 23       	and	r24, r24
   12f6a:	a9 f0       	breq	.+42     	; 0x12f96 <process_commands() [clone .part.46]+0x582>
            char SN[20];
            eeprom_read_block(SN, (uint8_t*)EEPROM_PRUSA_SN, 20);
   12f6c:	44 e1       	ldi	r20, 0x14	; 20
   12f6e:	50 e0       	ldi	r21, 0x00	; 0
   12f70:	65 e1       	ldi	r22, 0x15	; 21
   12f72:	7d e0       	ldi	r23, 0x0D	; 13
   12f74:	ce 01       	movw	r24, r28
   12f76:	01 96       	adiw	r24, 0x01	; 1
   12f78:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
            if (SN[19])
   12f7c:	8c 89       	ldd	r24, Y+20	; 0x14
   12f7e:	88 23       	and	r24, r24
   12f80:	29 f0       	breq	.+10     	; 0x12f8c <process_commands() [clone .part.46]+0x578>
                puts_P(PSTR("SN invalid"));
   12f82:	85 e9       	ldi	r24, 0x95	; 149
   12f84:	97 e8       	ldi	r25, 0x87	; 135
   12f86:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   12f8a:	02 ce       	rjmp	.-1020   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            else
                puts(SN);
   12f8c:	ce 01       	movw	r24, r28
   12f8e:	01 96       	adiw	r24, 0x01	; 1
   12f90:	0f 94 ea e2 	call	0x3c5d4	; 0x3c5d4 <puts>
   12f94:	fd cd       	rjmp	.-1030   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
        } else if(code_seen_P(PSTR("Fir"))){ // PRUSA Fir
   12f96:	81 e9       	ldi	r24, 0x91	; 145
   12f98:	97 e8       	ldi	r25, 0x87	; 135
   12f9a:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12f9e:	88 23       	and	r24, r24
   12fa0:	29 f0       	breq	.+10     	; 0x12fac <process_commands() [clone .part.46]+0x598>

            SERIAL_PROTOCOLLNPGM(FW_VERSION_FULL);
   12fa2:	85 e8       	ldi	r24, 0x85	; 133
   12fa4:	97 e8       	ldi	r25, 0x87	; 135
  else
  {
    SERIAL_ECHO_START;
    SERIAL_ECHORPGM(MSG_UNKNOWN_COMMAND);
    SERIAL_ECHO(CMDBUFFER_CURRENT_STRING);
    SERIAL_ECHOLNPGM("\"(2)");
   12fa6:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   12faa:	f2 cd       	rjmp	.-1052   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
                puts(SN);
        } else if(code_seen_P(PSTR("Fir"))){ // PRUSA Fir

            SERIAL_PROTOCOLLNPGM(FW_VERSION_FULL);

    } else if(code_seen_P(PSTR("Rev"))){ // PRUSA Rev
   12fac:	81 e8       	ldi	r24, 0x81	; 129
   12fae:	97 e8       	ldi	r25, 0x87	; 135
   12fb0:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12fb4:	88 23       	and	r24, r24
   12fb6:	19 f0       	breq	.+6      	; 0x12fbe <process_commands() [clone .part.46]+0x5aa>

      SERIAL_PROTOCOLLNPGM(FILAMENT_SIZE "-" ELECTRONICS "-" NOZZLE_TYPE );
   12fb8:	8d e5       	ldi	r24, 0x5D	; 93
   12fba:	97 e8       	ldi	r25, 0x87	; 135
   12fbc:	f4 cf       	rjmp	.-24     	; 0x12fa6 <process_commands() [clone .part.46]+0x592>

    } else if(code_seen_P(PSTR("Lang"))) { // PRUSA Lang
   12fbe:	88 e5       	ldi	r24, 0x58	; 88
   12fc0:	97 e8       	ldi	r25, 0x87	; 135
   12fc2:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12fc6:	88 23       	and	r24, r24
   12fc8:	19 f0       	breq	.+6      	; 0x12fd0 <process_commands() [clone .part.46]+0x5bc>
	lcd_clear();
	Sound_MakeCustom(100,0,false);
	switch (level) {

	case 0: // Level 0: Language reset
		lang_reset();
   12fca:	0e 94 b3 70 	call	0xe166	; 0xe166 <lang_reset>
   12fce:	e0 cd       	rjmp	.-1088   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
      SERIAL_PROTOCOLLNPGM(FILAMENT_SIZE "-" ELECTRONICS "-" NOZZLE_TYPE );

    } else if(code_seen_P(PSTR("Lang"))) { // PRUSA Lang
        lang_reset();

    } else if(code_seen_P(PSTR("Lz"))) { // PRUSA Lz
   12fd0:	85 e5       	ldi	r24, 0x55	; 85
   12fd2:	97 e8       	ldi	r25, 0x87	; 135
   12fd4:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   12fd8:	88 23       	and	r24, r24
   12fda:	79 f0       	breq	.+30     	; 0x12ffa <process_commands() [clone .part.46]+0x5e6>
      eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);
   12fdc:	81 ea       	ldi	r24, 0xA1	; 161
   12fde:	9d e0       	ldi	r25, 0x0D	; 13
   12fe0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   12fe4:	4b e0       	ldi	r20, 0x0B	; 11
   12fe6:	84 9f       	mul	r24, r20
   12fe8:	c0 01       	movw	r24, r0
   12fea:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   12fec:	70 e0       	ldi	r23, 0x00	; 0
   12fee:	60 e0       	ldi	r22, 0x00	; 0
   12ff0:	80 5b       	subi	r24, 0xB0	; 176
   12ff2:	92 4f       	sbci	r25, 0xF2	; 242
   12ff4:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   12ff8:	cb cd       	rjmp	.-1130   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>

    } else if(code_seen_P(PSTR("FR"))) { // PRUSA FR
   12ffa:	82 e5       	ldi	r24, 0x52	; 82
   12ffc:	97 e8       	ldi	r25, 0x87	; 135
   12ffe:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   13002:	88 23       	and	r24, r24
   13004:	51 f0       	breq	.+20     	; 0x1301a <process_commands() [clone .part.46]+0x606>
// Factory reset function
// This function is used to erase parts or whole EEPROM memory which is used for storing calibration and and so on.
// Level input parameter sets depth of reset
static void factory_reset(char level)
{
	lcd_clear();
   13006:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	Sound_MakeCustom(100,0,false);
   1300a:	40 e0       	ldi	r20, 0x00	; 0
   1300c:	70 e0       	ldi	r23, 0x00	; 0
   1300e:	60 e0       	ldi	r22, 0x00	; 0
   13010:	84 e6       	ldi	r24, 0x64	; 100
   13012:	90 e0       	ldi	r25, 0x00	; 0
   13014:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
   13018:	d8 cf       	rjmp	.-80     	; 0x12fca <process_commands() [clone .part.46]+0x5b6>
      eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);

    } else if(code_seen_P(PSTR("FR"))) { // PRUSA FR
        // Factory full reset
        factory_reset(0);
    } else if(code_seen_P(PSTR("MBL"))) { // PRUSA MBL
   1301a:	8e e4       	ldi	r24, 0x4E	; 78
   1301c:	97 e8       	ldi	r25, 0x87	; 135
   1301e:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   13022:	88 23       	and	r24, r24
   13024:	e1 f0       	breq	.+56     	; 0x1305e <process_commands() [clone .part.46]+0x64a>
        // Change the MBL status without changing the logical Z position.
        if(code_seen('V')) {
   13026:	86 e5       	ldi	r24, 0x56	; 86
   13028:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1302c:	88 23       	and	r24, r24
   1302e:	09 f4       	brne	.+2      	; 0x13032 <process_commands() [clone .part.46]+0x61e>
   13030:	af cd       	rjmp	.-1186   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            bool value = code_value_short();
   13032:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   13036:	11 e0       	ldi	r17, 0x01	; 1
   13038:	89 2b       	or	r24, r25
   1303a:	09 f4       	brne	.+2      	; 0x1303e <process_commands() [clone .part.46]+0x62a>
   1303c:	10 e0       	ldi	r17, 0x00	; 0
            st_synchronize();
   1303e:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            if(value != mbl.active) {
   13042:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
   13046:	90 e0       	ldi	r25, 0x00	; 0
   13048:	18 17       	cp	r17, r24
   1304a:	19 06       	cpc	r1, r25
   1304c:	09 f4       	brne	.+2      	; 0x13050 <process_commands() [clone .part.46]+0x63c>
   1304e:	a0 cd       	rjmp	.-1216   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
                mbl.active = value;
   13050:	10 93 c2 13 	sts	0x13C2, r17	; 0x8013c2 <mbl>
                // Use plan_set_z_position to reset the physical values
                plan_set_z_position(current_position[Z_AXIS]);
   13054:	8a e9       	ldi	r24, 0x9A	; 154
   13056:	96 e0       	ldi	r25, 0x06	; 6
   13058:	0f 94 33 65 	call	0x2ca66	; 0x2ca66 <plan_set_z_position(float const&)>
   1305c:	99 cd       	rjmp	.-1230   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            }
        }
    } else if (code_seen_P(PSTR("nozzle"))) { // PRUSA nozzle
   1305e:	87 e4       	ldi	r24, 0x47	; 71
   13060:	97 e8       	ldi	r25, 0x87	; 135
   13062:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   13066:	88 23       	and	r24, r24
   13068:	09 f4       	brne	.+2      	; 0x1306c <process_commands() [clone .part.46]+0x658>
   1306a:	92 cd       	rjmp	.-1244   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            uint16_t nDiameter;
            if(code_seen('D')) {
   1306c:	84 e4       	ldi	r24, 0x44	; 68
   1306e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   13072:	88 23       	and	r24, r24
   13074:	a1 f0       	breq	.+40     	; 0x1309e <process_commands() [clone .part.46]+0x68a>
                nDiameter=(uint16_t)(code_value()*1000.0+0.5); // [,um]
   13076:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1307a:	20 e0       	ldi	r18, 0x00	; 0
   1307c:	30 e0       	ldi	r19, 0x00	; 0
   1307e:	4a e7       	ldi	r20, 0x7A	; 122
   13080:	54 e4       	ldi	r21, 0x44	; 68
   13082:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13086:	20 e0       	ldi	r18, 0x00	; 0
   13088:	30 e0       	ldi	r19, 0x00	; 0
   1308a:	40 e0       	ldi	r20, 0x00	; 0
   1308c:	5f e3       	ldi	r21, 0x3F	; 63
   1308e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13092:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
                nozzle_diameter_check(nDiameter);
   13096:	cb 01       	movw	r24, r22
   13098:	0e 94 15 f6 	call	0x1ec2a	; 0x1ec2a <nozzle_diameter_check(unsigned int)>
   1309c:	79 cd       	rjmp	.-1294   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            } else if(code_seen_P(PSTR("set")) && farm_mode) {
   1309e:	83 e4       	ldi	r24, 0x43	; 67
   130a0:	97 e8       	ldi	r25, 0x87	; 135
   130a2:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
                strchr_pointer++;                  // skip 1st char (~ 's')
                strchr_pointer++;                  // skip 2nd char (~ 'e')
                nDiameter=(uint16_t)(code_value()*1000.0+0.5); // [,um]
                eeprom_update_byte_notify((uint8_t*)EEPROM_NOZZLE_DIAMETER,(uint8_t)ClNozzleDiameter::_Diameter_Undef); // for correct synchronization after farm-mode exiting
                eeprom_update_word_notify((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM,nDiameter);
            } else SERIAL_PROTOCOLLN((float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
   130a6:	85 ea       	ldi	r24, 0xA5	; 165
   130a8:	9d e0       	ldi	r25, 0x0D	; 13
   130aa:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   130ae:	bc 01       	movw	r22, r24
   130b0:	90 e0       	ldi	r25, 0x00	; 0
   130b2:	80 e0       	ldi	r24, 0x00	; 0
   130b4:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   130b8:	20 e0       	ldi	r18, 0x00	; 0
   130ba:	30 e0       	ldi	r19, 0x00	; 0
   130bc:	4a e7       	ldi	r20, 0x7A	; 122
   130be:	54 e4       	ldi	r21, 0x44	; 68
   130c0:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   130c4:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   130c8:	63 cd       	rjmp	.-1338   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    }
  }
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
   130ca:	d8 01       	movw	r26, r16
   130cc:	8c 91       	ld	r24, X
   130ce:	87 34       	cpi	r24, 0x47	; 71
   130d0:	11 f0       	breq	.+4      	; 0x130d6 <process_commands() [clone .part.46]+0x6c2>
   130d2:	0c 94 00 a4 	jmp	0x14800	; 0x14800 <process_commands() [clone .part.46]+0x1dec>
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
   130d6:	10 93 96 03 	sts	0x0396, r17	; 0x800396 <strchr_pointer+0x1>
   130da:	00 93 95 03 	sts	0x0395, r16	; 0x800395 <strchr_pointer>
	gcode_in_progress = code_value_short();
   130de:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   130e2:	90 93 94 03 	sts	0x0394, r25	; 0x800394 <gcode_in_progress+0x1>
   130e6:	80 93 93 03 	sts	0x0393, r24	; 0x800393 <gcode_in_progress>
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   130ea:	8e 31       	cpi	r24, 0x1E	; 30
   130ec:	91 05       	cpc	r25, r1
   130ee:	09 f4       	brne	.+2      	; 0x130f2 <process_commands() [clone .part.46]+0x6de>
   130f0:	da c6       	rjmp	.+3508   	; 0x13ea6 <process_commands() [clone .part.46]+0x1492>
   130f2:	0c f0       	brlt	.+2      	; 0x130f6 <process_commands() [clone .part.46]+0x6e2>
   130f4:	45 c1       	rjmp	.+650    	; 0x13380 <process_commands() [clone .part.46]+0x96c>
   130f6:	84 30       	cpi	r24, 0x04	; 4
   130f8:	91 05       	cpc	r25, r1
   130fa:	09 f4       	brne	.+2      	; 0x130fe <process_commands() [clone .part.46]+0x6ea>
   130fc:	7e c6       	rjmp	.+3324   	; 0x13dfa <process_commands() [clone .part.46]+0x13e6>
   130fe:	0c f0       	brlt	.+2      	; 0x13102 <process_commands() [clone .part.46]+0x6ee>
   13100:	c5 c0       	rjmp	.+394    	; 0x1328c <process_commands() [clone .part.46]+0x878>
   13102:	97 fd       	sbrc	r25, 7
   13104:	cb c0       	rjmp	.+406    	; 0x1329c <process_commands() [clone .part.46]+0x888>
   13106:	02 97       	sbiw	r24, 0x02	; 2
   13108:	0c f0       	brlt	.+2      	; 0x1310c <process_commands() [clone .part.46]+0x6f8>
   1310a:	fc c1       	rjmp	.+1016   	; 0x13504 <process_commands() [clone .part.46]+0xaf0>

    */
    case 0: // G0 -> G1
    case 1: // G1
        {
        uint16_t start_segment_idx = restore_interrupted_gcode();
   1310c:	0e 94 fa 59 	call	0xb3f4	; 0xb3f4 <restore_interrupted_gcode()>
   13110:	8c 01       	movw	r16, r24
        get_coordinates(); // For X Y Z E F
   13112:	0e 94 4b 61 	call	0xc296	; 0xc296 <get_coordinates()>

		if (total_filament_used > ((current_position[E_AXIS] - destination[E_AXIS]) * 100)) { //protection against total_filament_used overflow
   13116:	60 91 65 06 	lds	r22, 0x0665	; 0x800665 <total_filament_used>
   1311a:	70 91 66 06 	lds	r23, 0x0666	; 0x800666 <total_filament_used+0x1>
   1311e:	80 91 67 06 	lds	r24, 0x0667	; 0x800667 <total_filament_used+0x2>
   13122:	90 91 68 06 	lds	r25, 0x0668	; 0x800668 <total_filament_used+0x3>
   13126:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   1312a:	6b 01       	movw	r12, r22
   1312c:	7c 01       	movw	r14, r24
   1312e:	40 90 9e 06 	lds	r4, 0x069E	; 0x80069e <current_position+0xc>
   13132:	50 90 9f 06 	lds	r5, 0x069F	; 0x80069f <current_position+0xd>
   13136:	60 90 a0 06 	lds	r6, 0x06A0	; 0x8006a0 <current_position+0xe>
   1313a:	70 90 a1 06 	lds	r7, 0x06A1	; 0x8006a1 <current_position+0xf>
   1313e:	80 90 80 06 	lds	r8, 0x0680	; 0x800680 <destination+0xc>
   13142:	90 90 81 06 	lds	r9, 0x0681	; 0x800681 <destination+0xd>
   13146:	a0 90 82 06 	lds	r10, 0x0682	; 0x800682 <destination+0xe>
   1314a:	b0 90 83 06 	lds	r11, 0x0683	; 0x800683 <destination+0xf>
   1314e:	a5 01       	movw	r20, r10
   13150:	94 01       	movw	r18, r8
   13152:	c3 01       	movw	r24, r6
   13154:	b2 01       	movw	r22, r4
   13156:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1315a:	20 e0       	ldi	r18, 0x00	; 0
   1315c:	30 e0       	ldi	r19, 0x00	; 0
   1315e:	48 ec       	ldi	r20, 0xC8	; 200
   13160:	52 e4       	ldi	r21, 0x42	; 66
   13162:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13166:	9b 01       	movw	r18, r22
   13168:	ac 01       	movw	r20, r24
   1316a:	c7 01       	movw	r24, r14
   1316c:	b6 01       	movw	r22, r12
   1316e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   13172:	18 16       	cp	r1, r24
   13174:	d4 f4       	brge	.+52     	; 0x131aa <process_commands() [clone .part.46]+0x796>
			total_filament_used = total_filament_used + ((destination[E_AXIS] - current_position[E_AXIS]) * 100);
   13176:	a3 01       	movw	r20, r6
   13178:	92 01       	movw	r18, r4
   1317a:	c5 01       	movw	r24, r10
   1317c:	b4 01       	movw	r22, r8
   1317e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13182:	20 e0       	ldi	r18, 0x00	; 0
   13184:	30 e0       	ldi	r19, 0x00	; 0
   13186:	48 ec       	ldi	r20, 0xC8	; 200
   13188:	52 e4       	ldi	r21, 0x42	; 66
   1318a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1318e:	a7 01       	movw	r20, r14
   13190:	96 01       	movw	r18, r12
   13192:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13196:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   1319a:	60 93 65 06 	sts	0x0665, r22	; 0x800665 <total_filament_used>
   1319e:	70 93 66 06 	sts	0x0666, r23	; 0x800666 <total_filament_used+0x1>
   131a2:	80 93 67 06 	sts	0x0667, r24	; 0x800667 <total_filament_used+0x2>
   131a6:	90 93 68 06 	sts	0x0668, r25	; 0x800668 <total_filament_used+0x3>
		}

#ifdef FWRETRACT
        if(cs.autoretract_enabled) {
   131aa:	80 91 40 0e 	lds	r24, 0x0E40	; 0x800e40 <cs+0x82>
   131ae:	88 23       	and	r24, r24
   131b0:	09 f4       	brne	.+2      	; 0x131b4 <process_commands() [clone .part.46]+0x7a0>
   131b2:	a4 c1       	rjmp	.+840    	; 0x134fc <process_commands() [clone .part.46]+0xae8>
            if( !(code_seen('X') || code_seen('Y') || code_seen('Z')) && code_seen('E')) {
   131b4:	88 e5       	ldi	r24, 0x58	; 88
   131b6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   131ba:	81 11       	cpse	r24, r1
   131bc:	9f c1       	rjmp	.+830    	; 0x134fc <process_commands() [clone .part.46]+0xae8>
   131be:	89 e5       	ldi	r24, 0x59	; 89
   131c0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   131c4:	81 11       	cpse	r24, r1
   131c6:	9a c1       	rjmp	.+820    	; 0x134fc <process_commands() [clone .part.46]+0xae8>
   131c8:	8a e5       	ldi	r24, 0x5A	; 90
   131ca:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   131ce:	81 11       	cpse	r24, r1
   131d0:	95 c1       	rjmp	.+810    	; 0x134fc <process_commands() [clone .part.46]+0xae8>
   131d2:	85 e4       	ldi	r24, 0x45	; 69
   131d4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   131d8:	88 23       	and	r24, r24
   131da:	09 f4       	brne	.+2      	; 0x131de <process_commands() [clone .part.46]+0x7ca>
   131dc:	8f c1       	rjmp	.+798    	; 0x134fc <process_commands() [clone .part.46]+0xae8>
                float echange=destination[E_AXIS]-current_position[E_AXIS];
   131de:	20 91 9e 06 	lds	r18, 0x069E	; 0x80069e <current_position+0xc>
   131e2:	30 91 9f 06 	lds	r19, 0x069F	; 0x80069f <current_position+0xd>
   131e6:	40 91 a0 06 	lds	r20, 0x06A0	; 0x8006a0 <current_position+0xe>
   131ea:	50 91 a1 06 	lds	r21, 0x06A1	; 0x8006a1 <current_position+0xf>
   131ee:	60 91 80 06 	lds	r22, 0x0680	; 0x800680 <destination+0xc>
   131f2:	70 91 81 06 	lds	r23, 0x0681	; 0x800681 <destination+0xd>
   131f6:	80 91 82 06 	lds	r24, 0x0682	; 0x800682 <destination+0xe>
   131fa:	90 91 83 06 	lds	r25, 0x0683	; 0x800683 <destination+0xf>
   131fe:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13202:	6b 01       	movw	r12, r22
   13204:	7c 01       	movw	r14, r24
                if((echange<-MIN_RETRACT && !retracted[active_extruder]) || (echange>MIN_RETRACT && retracted[active_extruder])) { //move appears to be an attempt to retract or recover
   13206:	2d ec       	ldi	r18, 0xCD	; 205
   13208:	3c ec       	ldi	r19, 0xCC	; 204
   1320a:	4c ec       	ldi	r20, 0xCC	; 204
   1320c:	5d eb       	ldi	r21, 0xBD	; 189
   1320e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   13212:	87 ff       	sbrs	r24, 7
   13214:	65 c1       	rjmp	.+714    	; 0x134e0 <process_commands() [clone .part.46]+0xacc>
   13216:	80 91 8e 06 	lds	r24, 0x068E	; 0x80068e <retracted>
   1321a:	81 11       	cpse	r24, r1
   1321c:	0c 94 14 cd 	jmp	0x19a28	; 0x19a28 <process_commands() [clone .part.46]+0x7014>
                    st_synchronize();
   13220:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
                    current_position[E_AXIS] = destination[E_AXIS]; //hide the slicer-generated retract/recover from calculations
   13224:	80 91 80 06 	lds	r24, 0x0680	; 0x800680 <destination+0xc>
   13228:	90 91 81 06 	lds	r25, 0x0681	; 0x800681 <destination+0xd>
   1322c:	a0 91 82 06 	lds	r26, 0x0682	; 0x800682 <destination+0xe>
   13230:	b0 91 83 06 	lds	r27, 0x0683	; 0x800683 <destination+0xf>
   13234:	80 93 9e 06 	sts	0x069E, r24	; 0x80069e <current_position+0xc>
   13238:	90 93 9f 06 	sts	0x069F, r25	; 0x80069f <current_position+0xd>
   1323c:	a0 93 a0 06 	sts	0x06A0, r26	; 0x8006a0 <current_position+0xe>
   13240:	b0 93 a1 06 	sts	0x06A1, r27	; 0x8006a1 <current_position+0xf>
                    plan_set_e_position(current_position[E_AXIS]); //AND from the planner
   13244:	8e e9       	ldi	r24, 0x9E	; 158
   13246:	96 e0       	ldi	r25, 0x06	; 6
   13248:	0f 94 00 65 	call	0x2ca00	; 0x2ca00 <plan_set_e_position(float const&)>
                    retract(!retracted[active_extruder]);
   1324c:	90 91 8e 06 	lds	r25, 0x068E	; 0x80068e <retracted>
   13250:	81 e0       	ldi	r24, 0x01	; 1
   13252:	89 27       	eor	r24, r25
   13254:	0f 94 67 8a 	call	0x314ce	; 0x314ce <retract(bool, bool) [clone .constprop.106]>
    SERIAL_ECHO(CMDBUFFER_CURRENT_STRING);
    SERIAL_ECHOLNPGM("\"(2)");
  }
  KEEPALIVE_STATE(NOT_BUSY);
  ClearToSend();
}
   13258:	c1 57       	subi	r28, 0x71	; 113
   1325a:	df 4f       	sbci	r29, 0xFF	; 255
   1325c:	0f b6       	in	r0, 0x3f	; 63
   1325e:	f8 94       	cli
   13260:	de bf       	out	0x3e, r29	; 62
   13262:	0f be       	out	0x3f, r0	; 63
   13264:	cd bf       	out	0x3d, r28	; 61
   13266:	df 91       	pop	r29
   13268:	cf 91       	pop	r28
   1326a:	1f 91       	pop	r17
   1326c:	0f 91       	pop	r16
   1326e:	ff 90       	pop	r15
   13270:	ef 90       	pop	r14
   13272:	df 90       	pop	r13
   13274:	cf 90       	pop	r12
   13276:	bf 90       	pop	r11
   13278:	af 90       	pop	r10
   1327a:	9f 90       	pop	r9
   1327c:	8f 90       	pop	r8
   1327e:	7f 90       	pop	r7
   13280:	6f 90       	pop	r6
   13282:	5f 90       	pop	r5
   13284:	4f 90       	pop	r4
   13286:	3f 90       	pop	r3
   13288:	2f 90       	pop	r2
   1328a:	08 95       	ret
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   1328c:	8b 30       	cpi	r24, 0x0B	; 11
   1328e:	91 05       	cpc	r25, r1
   13290:	09 f4       	brne	.+2      	; 0x13294 <process_commands() [clone .part.46]+0x880>
   13292:	00 c6       	rjmp	.+3072   	; 0x13e94 <process_commands() [clone .part.46]+0x1480>
   13294:	dc f4       	brge	.+54     	; 0x132cc <process_commands() [clone .part.46]+0x8b8>
   13296:	0a 97       	sbiw	r24, 0x0a	; 10
   13298:	09 f4       	brne	.+2      	; 0x1329c <process_commands() [clone .part.46]+0x888>
   1329a:	f8 c5       	rjmp	.+3056   	; 0x13e8c <process_commands() [clone .part.46]+0x1478>
    case 99:
        farm_gcode_g99();
        break;
#endif //PRUSA_FARM
	default:
		printf_P(MSG_UNKNOWN_CODE, 'G', cmdbuffer + bufindr + CMDHDRSIZE);
   1329c:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   132a0:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   132a4:	88 55       	subi	r24, 0x58	; 88
   132a6:	9f 4e       	sbci	r25, 0xEF	; 239
   132a8:	9f 93       	push	r25
   132aa:	8f 93       	push	r24
   132ac:	1f 92       	push	r1
   132ae:	87 e4       	ldi	r24, 0x47	; 71
   132b0:	8f 93       	push	r24
   132b2:	86 ea       	ldi	r24, 0xA6	; 166
   132b4:	98 e6       	ldi	r25, 0x68	; 104
   132b6:	9f 93       	push	r25
   132b8:	8f 93       	push	r24
   132ba:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   132be:	0f 90       	pop	r0
   132c0:	0f 90       	pop	r0
   132c2:	0f 90       	pop	r0
   132c4:	0f 90       	pop	r0
   132c6:	0f 90       	pop	r0
   132c8:	0f 90       	pop	r0
   132ca:	a5 c0       	rjmp	.+330    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   132cc:	85 31       	cpi	r24, 0x15	; 21
   132ce:	91 05       	cpc	r25, r1
   132d0:	09 f4       	brne	.+2      	; 0x132d4 <process_commands() [clone .part.46]+0x8c0>
   132d2:	a1 c0       	rjmp	.+322    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   132d4:	4c 97       	sbiw	r24, 0x1c	; 28
   132d6:	11 f7       	brne	.-60     	; 0x1329c <process_commands() [clone .part.46]+0x888>
    {
      long home_x_value = 0;
      long home_y_value = 0;
      long home_z_value = 0;
      // Which axes should be homed?
      bool home_x = code_seen(axis_codes[X_AXIS]);
   132d8:	88 e5       	ldi	r24, 0x58	; 88
   132da:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   132de:	38 2e       	mov	r3, r24
     - `W` - Suppress mesh bed leveling if `X`, `Y` or `Z` are not provided
     - `C` - Calibrate X and Y origin (home) - Only on MK3/s
    */
    case 28:
    {
      long home_x_value = 0;
   132e0:	41 2c       	mov	r4, r1
   132e2:	51 2c       	mov	r5, r1
   132e4:	32 01       	movw	r6, r4
      long home_y_value = 0;
      long home_z_value = 0;
      // Which axes should be homed?
      bool home_x = code_seen(axis_codes[X_AXIS]);
      if (home_x) home_x_value = code_value_long();
   132e6:	88 23       	and	r24, r24
   132e8:	21 f0       	breq	.+8      	; 0x132f2 <process_commands() [clone .part.46]+0x8de>
   132ea:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   132ee:	2b 01       	movw	r4, r22
   132f0:	3c 01       	movw	r6, r24
      bool home_y = code_seen(axis_codes[Y_AXIS]);
   132f2:	89 e5       	ldi	r24, 0x59	; 89
   132f4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   132f8:	28 2e       	mov	r2, r24
      if (home_y) home_y_value = code_value_long();
   132fa:	88 23       	and	r24, r24
   132fc:	09 f4       	brne	.+2      	; 0x13300 <process_commands() [clone .part.46]+0x8ec>
   132fe:	cc c5       	rjmp	.+2968   	; 0x13e98 <process_commands() [clone .part.46]+0x1484>
   13300:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   13304:	6e 96       	adiw	r28, 0x1e	; 30
   13306:	6c af       	std	Y+60, r22	; 0x3c
   13308:	7d af       	std	Y+61, r23	; 0x3d
   1330a:	8e af       	std	Y+62, r24	; 0x3e
   1330c:	9f af       	std	Y+63, r25	; 0x3f
   1330e:	6e 97       	sbiw	r28, 0x1e	; 30
      bool home_z = code_seen(axis_codes[Z_AXIS]);
   13310:	8a e5       	ldi	r24, 0x5A	; 90
   13312:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   13316:	d8 2e       	mov	r13, r24
    */
    case 28:
    {
      long home_x_value = 0;
      long home_y_value = 0;
      long home_z_value = 0;
   13318:	81 2c       	mov	r8, r1
   1331a:	91 2c       	mov	r9, r1
   1331c:	54 01       	movw	r10, r8
      bool home_x = code_seen(axis_codes[X_AXIS]);
      if (home_x) home_x_value = code_value_long();
      bool home_y = code_seen(axis_codes[Y_AXIS]);
      if (home_y) home_y_value = code_value_long();
      bool home_z = code_seen(axis_codes[Z_AXIS]);
      if (home_z) home_z_value = code_value_long();
   1331e:	88 23       	and	r24, r24
   13320:	21 f0       	breq	.+8      	; 0x1332a <process_commands() [clone .part.46]+0x916>
   13322:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   13326:	4b 01       	movw	r8, r22
   13328:	5c 01       	movw	r10, r24
      bool without_mbl = code_seen('W');
   1332a:	87 e5       	ldi	r24, 0x57	; 87
   1332c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   13330:	67 96       	adiw	r28, 0x17	; 23
   13332:	8f af       	std	Y+63, r24	; 0x3f
   13334:	67 97       	sbiw	r28, 0x17	; 23
      // calibrate?
#ifdef TMC2130
      bool calib = code_seen('C');
   13336:	83 e4       	ldi	r24, 0x43	; 67
   13338:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
      gcode_G28(home_x, home_x_value, home_y, home_y_value, home_z, home_z_value, calib, without_mbl);
   1333c:	67 96       	adiw	r28, 0x17	; 23
   1333e:	ff ad       	ldd	r31, Y+63	; 0x3f
   13340:	67 97       	sbiw	r28, 0x17	; 23
   13342:	ff 93       	push	r31
   13344:	8f 93       	push	r24
   13346:	cd 2c       	mov	r12, r13
   13348:	6e 96       	adiw	r28, 0x1e	; 30
   1334a:	ec ac       	ldd	r14, Y+60	; 0x3c
   1334c:	fd ac       	ldd	r15, Y+61	; 0x3d
   1334e:	0e ad       	ldd	r16, Y+62	; 0x3e
   13350:	1f ad       	ldd	r17, Y+63	; 0x3f
   13352:	6e 97       	sbiw	r28, 0x1e	; 30
   13354:	22 2d       	mov	r18, r2
   13356:	b3 01       	movw	r22, r6
   13358:	a2 01       	movw	r20, r4
   1335a:	83 2d       	mov	r24, r3
   1335c:	0e 94 ae 7c 	call	0xf95c	; 0xf95c <gcode_G28(bool, long, bool, long, bool, long, bool, bool)>
#else
      gcode_G28(home_x, home_x_value, home_y, home_y_value, home_z, home_z_value, without_mbl);
#endif //TMC2130
      if ((home_x || home_y || without_mbl || home_z) == false) {
   13360:	0f 90       	pop	r0
   13362:	0f 90       	pop	r0
   13364:	31 10       	cpse	r3, r1
   13366:	57 c0       	rjmp	.+174    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   13368:	21 10       	cpse	r2, r1
   1336a:	55 c0       	rjmp	.+170    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   1336c:	67 96       	adiw	r28, 0x17	; 23
   1336e:	2f ad       	ldd	r18, Y+63	; 0x3f
   13370:	67 97       	sbiw	r28, 0x17	; 23
   13372:	21 11       	cpse	r18, r1
   13374:	50 c0       	rjmp	.+160    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   13376:	d1 10       	cpse	r13, r1
   13378:	4e c0       	rjmp	.+156    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
      - `W` - area width (on X axis)
      - `H` - area height (on Y axis)
    */

	case 80: {
        gcode_G80();
   1337a:	0e 94 83 8d 	call	0x11b06	; 0x11b06 <gcode_G80()>
   1337e:	4b c0       	rjmp	.+150    	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   13380:	86 35       	cpi	r24, 0x56	; 86
   13382:	91 05       	cpc	r25, r1
   13384:	11 f4       	brne	.+4      	; 0x1338a <process_commands() [clone .part.46]+0x976>
   13386:	0c 94 af a3 	jmp	0x1475e	; 0x1475e <process_commands() [clone .part.46]+0x1d4a>
   1338a:	b4 f5       	brge	.+108    	; 0x133f8 <process_commands() [clone .part.46]+0x9e4>
   1338c:	8c 34       	cpi	r24, 0x4C	; 76
   1338e:	91 05       	cpc	r25, r1
   13390:	09 f4       	brne	.+2      	; 0x13394 <process_commands() [clone .part.46]+0x980>
   13392:	df c5       	rjmp	.+3006   	; 0x13f52 <process_commands() [clone .part.46]+0x153e>
   13394:	3c f5       	brge	.+78     	; 0x133e4 <process_commands() [clone .part.46]+0x9d0>
   13396:	08 e2       	ldi	r16, 0x28	; 40
   13398:	10 e0       	ldi	r17, 0x00	; 0
  Show/print PINDA temperature interpolating.
  */
	case 75:
	{
		for (uint8_t i = 40; i <= 110; i++)
			printf_P(_N("%d  %.2f"), i, temp_comp_interpolation(i));
   1339a:	f6 e5       	ldi	r31, 0x56	; 86
   1339c:	ef 2e       	mov	r14, r31
   1339e:	f9 e6       	ldi	r31, 0x69	; 105
   133a0:	ff 2e       	mov	r15, r31
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   133a2:	8b 34       	cpi	r24, 0x4B	; 75
   133a4:	91 05       	cpc	r25, r1
   133a6:	09 f0       	breq	.+2      	; 0x133aa <process_commands() [clone .part.46]+0x996>
   133a8:	79 cf       	rjmp	.-270    	; 0x1329c <process_commands() [clone .part.46]+0x888>
  Show/print PINDA temperature interpolating.
  */
	case 75:
	{
		for (uint8_t i = 40; i <= 110; i++)
			printf_P(_N("%d  %.2f"), i, temp_comp_interpolation(i));
   133aa:	60 2f       	mov	r22, r16
   133ac:	70 e0       	ldi	r23, 0x00	; 0
   133ae:	90 e0       	ldi	r25, 0x00	; 0
   133b0:	80 e0       	ldi	r24, 0x00	; 0
   133b2:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   133b6:	0e 94 11 5c 	call	0xb822	; 0xb822 <temp_comp_interpolation(float)>
   133ba:	9f 93       	push	r25
   133bc:	8f 93       	push	r24
   133be:	7f 93       	push	r23
   133c0:	6f 93       	push	r22
   133c2:	1f 93       	push	r17
   133c4:	0f 93       	push	r16
   133c6:	ff 92       	push	r15
   133c8:	ef 92       	push	r14
   133ca:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   133ce:	0f 5f       	subi	r16, 0xFF	; 255
   133d0:	1f 4f       	sbci	r17, 0xFF	; 255
  ### G75 - Print temperature interpolation <a href="https://reprap.org/wiki/G-code#G75:_Print_temperature_interpolation">G75: Print temperature interpolation</a>
  Show/print PINDA temperature interpolating.
  */
	case 75:
	{
		for (uint8_t i = 40; i <= 110; i++)
   133d2:	0f b6       	in	r0, 0x3f	; 63
   133d4:	f8 94       	cli
   133d6:	de bf       	out	0x3e, r29	; 62
   133d8:	0f be       	out	0x3f, r0	; 63
   133da:	cd bf       	out	0x3d, r28	; 61
   133dc:	0f 36       	cpi	r16, 0x6F	; 111
   133de:	11 05       	cpc	r17, r1
   133e0:	21 f7       	brne	.-56     	; 0x133aa <process_commands() [clone .part.46]+0x996>
   133e2:	19 c0       	rjmp	.+50     	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   133e4:	80 35       	cpi	r24, 0x50	; 80
   133e6:	91 05       	cpc	r25, r1
   133e8:	41 f2       	breq	.-112    	; 0x1337a <process_commands() [clone .part.46]+0x966>
   133ea:	81 35       	cpi	r24, 0x51	; 81
   133ec:	91 05       	cpc	r25, r1
   133ee:	09 f0       	breq	.+2      	; 0x133f2 <process_commands() [clone .part.46]+0x9de>
   133f0:	55 cf       	rjmp	.-342    	; 0x1329c <process_commands() [clone .part.46]+0x888>
        /*!
        ### G81 - Mesh bed leveling status <a href="https://reprap.org/wiki/G-code#G81:_Mesh_bed_leveling_status">G81: Mesh bed leveling status</a>
        Prints mesh bed leveling status and bed profile if activated.
        */
        case 81: {
            gcode_G81_M420();
   133f2:	0e 94 e2 7e 	call	0xfdc4	; 0xfdc4 <gcode_G81_M420()>
   133f6:	0f c0       	rjmp	.+30     	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   133f8:	8a 35       	cpi	r24, 0x5A	; 90
   133fa:	91 05       	cpc	r25, r1
   133fc:	11 f4       	brne	.+4      	; 0x13402 <process_commands() [clone .part.46]+0x9ee>
   133fe:	0c 94 b9 a3 	jmp	0x14772	; 0x14772 <process_commands() [clone .part.46]+0x1d5e>
   13402:	74 f4       	brge	.+28     	; 0x13420 <process_commands() [clone .part.46]+0xa0c>
   13404:	87 35       	cpi	r24, 0x57	; 87
   13406:	91 05       	cpc	r25, r1
   13408:	11 f4       	brne	.+4      	; 0x1340e <process_commands() [clone .part.46]+0x9fa>
   1340a:	0c 94 b4 a3 	jmp	0x14768	; 0x14768 <process_commands() [clone .part.46]+0x1d54>
   1340e:	88 35       	cpi	r24, 0x58	; 88
   13410:	91 05       	cpc	r25, r1
   13412:	09 f0       	breq	.+2      	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   13414:	43 cf       	rjmp	.-378    	; 0x1329c <process_commands() [clone .part.46]+0x888>
#endif //PRUSA_FARM
	default:
		printf_P(MSG_UNKNOWN_CODE, 'G', cmdbuffer + bufindr + CMDHDRSIZE);
    }
//	printf_P(_N("END G-CODE=%u\n"), gcode_in_progress);
	gcode_in_progress = 0;
   13416:	10 92 94 03 	sts	0x0394, r1	; 0x800394 <gcode_in_progress+0x1>
   1341a:	10 92 93 03 	sts	0x0393, r1	; 0x800393 <gcode_in_progress>
   1341e:	b8 cb       	rjmp	.-2192   	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
  else if(*CMDBUFFER_CURRENT_STRING == 'G')
  {
	strchr_pointer = CMDBUFFER_CURRENT_STRING;
	gcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN G-CODE=%u\n"), gcode_in_progress);
    switch (gcode_in_progress)
   13420:	8b 35       	cpi	r24, 0x5B	; 91
   13422:	91 05       	cpc	r25, r1
   13424:	11 f4       	brne	.+4      	; 0x1342a <process_commands() [clone .part.46]+0xa16>
   13426:	0c 94 c0 a3 	jmp	0x14780	; 0x14780 <process_commands() [clone .part.46]+0x1d6c>
   1342a:	8c 35       	cpi	r24, 0x5C	; 92
   1342c:	91 05       	cpc	r25, r1
   1342e:	09 f0       	breq	.+2      	; 0x13432 <process_commands() [clone .part.46]+0xa1e>
   13430:	35 cf       	rjmp	.-406    	; 0x1329c <process_commands() [clone .part.46]+0x888>
   13432:	bd ed       	ldi	r27, 0xDD	; 221
   13434:	cb 2e       	mov	r12, r27
   13436:	b2 e0       	ldi	r27, 0x02	; 2
   13438:	db 2e       	mov	r13, r27
   1343a:	8e 01       	movw	r16, r28
   1343c:	0f 5b       	subi	r16, 0xBF	; 191
   1343e:	1f 4f       	sbci	r17, 0xFF	; 255
   13440:	9e 01       	movw	r18, r28
   13442:	2f 5f       	subi	r18, 0xFF	; 255
   13444:	3f 4f       	sbci	r19, 0xFF	; 255
   13446:	79 01       	movw	r14, r18
   13448:	81 ee       	ldi	r24, 0xE1	; 225
   1344a:	88 2e       	mov	r8, r24
   1344c:	82 e0       	ldi	r24, 0x02	; 2
   1344e:	98 2e       	mov	r9, r24
   13450:	58 01       	movw	r10, r16
   13452:	39 01       	movw	r6, r18
    float values[NUM_AXIS];

    // Check which axes need to be set
    for(uint8_t i = 0; i < NUM_AXIS; ++i)
    {
        codes[i] = code_seen(axis_codes[i]);
   13454:	d6 01       	movw	r26, r12
   13456:	8d 91       	ld	r24, X+
   13458:	6d 01       	movw	r12, r26
   1345a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1345e:	f5 01       	movw	r30, r10
   13460:	81 93       	st	Z+, r24
   13462:	5f 01       	movw	r10, r30
        if(codes[i])
   13464:	88 23       	and	r24, r24
   13466:	41 f0       	breq	.+16     	; 0x13478 <process_commands() [clone .part.46]+0xa64>
            values[i] = code_value();
   13468:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1346c:	d7 01       	movw	r26, r14
   1346e:	6d 93       	st	X+, r22
   13470:	7d 93       	st	X+, r23
   13472:	8d 93       	st	X+, r24
   13474:	9c 93       	st	X, r25
   13476:	13 97       	sbiw	r26, 0x03	; 3
   13478:	b4 e0       	ldi	r27, 0x04	; 4
   1347a:	eb 0e       	add	r14, r27
   1347c:	f1 1c       	adc	r15, r1
{
    bool codes[NUM_AXIS];
    float values[NUM_AXIS];

    // Check which axes need to be set
    for(uint8_t i = 0; i < NUM_AXIS; ++i)
   1347e:	8c 14       	cp	r8, r12
   13480:	9d 04       	cpc	r9, r13
   13482:	41 f7       	brne	.-48     	; 0x13454 <process_commands() [clone .part.46]+0xa40>
        codes[i] = code_seen(axis_codes[i]);
        if(codes[i])
            values[i] = code_value();
    }

    if((codes[E_AXIS] && values[E_AXIS] == 0) &&
   13484:	f8 01       	movw	r30, r16
   13486:	d3 80       	ldd	r13, Z+3	; 0x03
   13488:	dd 20       	and	r13, r13
   1348a:	11 f4       	brne	.+4      	; 0x13490 <process_commands() [clone .part.46]+0xa7c>
   1348c:	0c 94 c4 a3 	jmp	0x14788	; 0x14788 <process_commands() [clone .part.46]+0x1d74>
   13490:	20 e0       	ldi	r18, 0x00	; 0
   13492:	30 e0       	ldi	r19, 0x00	; 0
   13494:	a9 01       	movw	r20, r18
   13496:	6d 85       	ldd	r22, Y+13	; 0x0d
   13498:	7e 85       	ldd	r23, Y+14	; 0x0e
   1349a:	8f 85       	ldd	r24, Y+15	; 0x0f
   1349c:	98 89       	ldd	r25, Y+16	; 0x10
   1349e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   134a2:	81 11       	cpse	r24, r1
   134a4:	0c 94 c4 a3 	jmp	0x14788	; 0x14788 <process_commands() [clone .part.46]+0x1d74>
   134a8:	d8 01       	movw	r26, r16
   134aa:	8c 91       	ld	r24, X
   134ac:	81 11       	cpse	r24, r1
   134ae:	0c 94 c4 a3 	jmp	0x14788	; 0x14788 <process_commands() [clone .part.46]+0x1d74>
       (!codes[X_AXIS] && !codes[Y_AXIS] && !codes[Z_AXIS]))
   134b2:	11 96       	adiw	r26, 0x01	; 1
   134b4:	8c 91       	ld	r24, X
   134b6:	11 97       	sbiw	r26, 0x01	; 1
   134b8:	81 11       	cpse	r24, r1
   134ba:	0c 94 c4 a3 	jmp	0x14788	; 0x14788 <process_commands() [clone .part.46]+0x1d74>
   134be:	12 96       	adiw	r26, 0x02	; 2
   134c0:	8c 91       	ld	r24, X
   134c2:	81 11       	cpse	r24, r1
   134c4:	0c 94 c4 a3 	jmp	0x14788	; 0x14788 <process_commands() [clone .part.46]+0x1d74>
    {
        // As a special optimization, when _just_ clearing the E position
        // we schedule a flag asynchronously along with the next block to
        // reset the starting E position instead of stopping the planner
        current_position[E_AXIS] = 0;
   134c8:	10 92 9e 06 	sts	0x069E, r1	; 0x80069e <current_position+0xc>
   134cc:	10 92 9f 06 	sts	0x069F, r1	; 0x80069f <current_position+0xd>
   134d0:	10 92 a0 06 	sts	0x06A0, r1	; 0x8006a0 <current_position+0xe>
   134d4:	10 92 a1 06 	sts	0x06A1, r1	; 0x8006a1 <current_position+0xf>
  st_set_e_position(position[E_AXIS]);
}

void plan_reset_next_e()
{
    plan_reset_next_e_queue = true;
   134d8:	81 e0       	ldi	r24, 0x01	; 1
   134da:	80 93 b8 04 	sts	0x04B8, r24	; 0x8004b8 <_ZL23plan_reset_next_e_queue.lto_priv.488>
   134de:	9b cf       	rjmp	.-202    	; 0x13416 <process_commands() [clone .part.46]+0xa02>

#ifdef FWRETRACT
        if(cs.autoretract_enabled) {
            if( !(code_seen('X') || code_seen('Y') || code_seen('Z')) && code_seen('E')) {
                float echange=destination[E_AXIS]-current_position[E_AXIS];
                if((echange<-MIN_RETRACT && !retracted[active_extruder]) || (echange>MIN_RETRACT && retracted[active_extruder])) { //move appears to be an attempt to retract or recover
   134e0:	2d ec       	ldi	r18, 0xCD	; 205
   134e2:	3c ec       	ldi	r19, 0xCC	; 204
   134e4:	4c ec       	ldi	r20, 0xCC	; 204
   134e6:	5d e3       	ldi	r21, 0x3D	; 61
   134e8:	c7 01       	movw	r24, r14
   134ea:	b6 01       	movw	r22, r12
   134ec:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   134f0:	18 16       	cp	r1, r24
   134f2:	24 f4       	brge	.+8      	; 0x134fc <process_commands() [clone .part.46]+0xae8>
   134f4:	80 91 8e 06 	lds	r24, 0x068E	; 0x80068e <retracted>
   134f8:	81 11       	cpse	r24, r1
   134fa:	92 ce       	rjmp	.-732    	; 0x13220 <process_commands() [clone .part.46]+0x80c>
                }
            }
        }
#endif //FWRETRACT

        prepare_move(start_segment_idx);
   134fc:	c8 01       	movw	r24, r16
   134fe:	0e 94 8f 6b 	call	0xd71e	; 0xd71e <prepare_move(unsigned int)>
   13502:	89 cf       	rjmp	.-238    	; 0x13416 <process_commands() [clone .part.46]+0xa02>

    */
    case 2:
    case 3:
    {
        uint16_t start_segment_idx = restore_interrupted_gcode();
   13504:	0e 94 fa 59 	call	0xb3f4	; 0xb3f4 <restore_interrupted_gcode()>
   13508:	e0 96       	adiw	r28, 0x30	; 48
   1350a:	9f af       	std	Y+63, r25	; 0x3f
   1350c:	8e af       	std	Y+62, r24	; 0x3e
   1350e:	e0 97       	sbiw	r28, 0x30	; 48
#ifdef SF_ARC_FIX
        bool relative_mode_backup = relative_mode;
        relative_mode = true;
#endif
        get_coordinates(); // For X Y Z E F
   13510:	0e 94 4b 61 	call	0xc296	; 0xc296 <get_coordinates()>
#ifdef SF_ARC_FIX
        relative_mode=relative_mode_backup;
#endif

        offset[0] = code_seen('I') ? code_value() : 0.f;
   13514:	89 e4       	ldi	r24, 0x49	; 73
   13516:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1351a:	88 23       	and	r24, r24
   1351c:	09 f4       	brne	.+2      	; 0x13520 <process_commands() [clone .part.46]+0xb0c>
   1351e:	00 c4       	rjmp	.+2048   	; 0x13d20 <process_commands() [clone .part.46]+0x130c>
   13520:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   13524:	60 93 8b 03 	sts	0x038B, r22	; 0x80038b <offset>
   13528:	70 93 8c 03 	sts	0x038C, r23	; 0x80038c <offset+0x1>
   1352c:	80 93 8d 03 	sts	0x038D, r24	; 0x80038d <offset+0x2>
   13530:	90 93 8e 03 	sts	0x038E, r25	; 0x80038e <offset+0x3>
        offset[1] = code_seen('J') ? code_value() : 0.f;
   13534:	8a e4       	ldi	r24, 0x4A	; 74
   13536:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1353a:	c1 2c       	mov	r12, r1
   1353c:	d1 2c       	mov	r13, r1
   1353e:	76 01       	movw	r14, r12
   13540:	88 23       	and	r24, r24
   13542:	21 f0       	breq	.+8      	; 0x1354c <process_commands() [clone .part.46]+0xb38>
   13544:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   13548:	6b 01       	movw	r12, r22
   1354a:	7c 01       	movw	r14, r24
   1354c:	c0 92 8f 03 	sts	0x038F, r12	; 0x80038f <offset+0x4>
   13550:	d0 92 90 03 	sts	0x0390, r13	; 0x800390 <offset+0x5>
   13554:	e0 92 91 03 	sts	0x0391, r14	; 0x800391 <offset+0x6>
   13558:	f0 92 92 03 	sts	0x0392, r15	; 0x800392 <offset+0x7>

        prepare_arc_move((gcode_in_progress == 2), start_segment_idx);
   1355c:	e0 91 93 03 	lds	r30, 0x0393	; 0x800393 <gcode_in_progress>
   13560:	f0 91 94 03 	lds	r31, 0x0394	; 0x800394 <gcode_in_progress+0x1>
   13564:	c2 57       	subi	r28, 0x72	; 114
   13566:	df 4f       	sbci	r29, 0xFF	; 255
   13568:	f9 83       	std	Y+1, r31	; 0x01
   1356a:	e8 83       	st	Y, r30
   1356c:	ce 58       	subi	r28, 0x8E	; 142
   1356e:	d0 40       	sbci	r29, 0x00	; 0

  set_current_to_destination();
}

void prepare_arc_move(bool isclockwise, uint16_t start_segment_idx) {
    float r = hypot(offset[X_AXIS], offset[Y_AXIS]); // Compute arc radius for mc_arc
   13570:	80 90 8b 03 	lds	r8, 0x038B	; 0x80038b <offset>
   13574:	90 90 8c 03 	lds	r9, 0x038C	; 0x80038c <offset+0x1>
   13578:	a0 90 8d 03 	lds	r10, 0x038D	; 0x80038d <offset+0x2>
   1357c:	b0 90 8e 03 	lds	r11, 0x038E	; 0x80038e <offset+0x3>
   13580:	a7 01       	movw	r20, r14
   13582:	96 01       	movw	r18, r12
   13584:	c5 01       	movw	r24, r10
   13586:	b4 01       	movw	r22, r8
   13588:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
   1358c:	ae 96       	adiw	r28, 0x2e	; 46
   1358e:	6c af       	std	Y+60, r22	; 0x3c
   13590:	7d af       	std	Y+61, r23	; 0x3d
   13592:	8e af       	std	Y+62, r24	; 0x3e
   13594:	9f af       	std	Y+63, r25	; 0x3f
   13596:	ae 97       	sbiw	r28, 0x2e	; 46
    // Trace the arc
    mc_arc(current_position, destination, offset, (feedrate * feedmultiply) * (1.f / 6000.f), r, isclockwise, start_segment_idx);
   13598:	60 91 39 02 	lds	r22, 0x0239	; 0x800239 <feedmultiply>
   1359c:	70 91 3a 02 	lds	r23, 0x023A	; 0x80023a <feedmultiply+0x1>
   135a0:	07 2e       	mov	r0, r23
   135a2:	00 0c       	add	r0, r0
   135a4:	88 0b       	sbc	r24, r24
   135a6:	99 0b       	sbc	r25, r25
   135a8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   135ac:	20 91 b8 02 	lds	r18, 0x02B8	; 0x8002b8 <feedrate>
   135b0:	30 91 b9 02 	lds	r19, 0x02B9	; 0x8002b9 <feedrate+0x1>
   135b4:	40 91 ba 02 	lds	r20, 0x02BA	; 0x8002ba <feedrate+0x2>
   135b8:	50 91 bb 02 	lds	r21, 0x02BB	; 0x8002bb <feedrate+0x3>
   135bc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   135c0:	2e e3       	ldi	r18, 0x3E	; 62
   135c2:	33 ec       	ldi	r19, 0xC3	; 195
   135c4:	4e e2       	ldi	r20, 0x2E	; 46
   135c6:	59 e3       	ldi	r21, 0x39	; 57
   135c8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   135cc:	aa 96       	adiw	r28, 0x2a	; 42
   135ce:	6c af       	std	Y+60, r22	; 0x3c
   135d0:	7d af       	std	Y+61, r23	; 0x3d
   135d2:	8e af       	std	Y+62, r24	; 0x3e
   135d4:	9f af       	std	Y+63, r25	; 0x3f
   135d6:	aa 97       	sbiw	r28, 0x2a	; 42
// The arc is approximated by generating a huge number of tiny, linear segments. The length of each
// segment is configured in settings.mm_per_arc_segment.
void mc_arc(const float* position, float* target, const float* offset, float feed_rate, float radius, bool isclockwise, uint16_t start_segment_idx)
{
    float start_position[4];
    memcpy(start_position, position, sizeof(start_position));
   135d8:	80 e1       	ldi	r24, 0x10	; 16
   135da:	e2 e9       	ldi	r30, 0x92	; 146
   135dc:	f6 e0       	ldi	r31, 0x06	; 6
   135de:	de 01       	movw	r26, r28
   135e0:	11 96       	adiw	r26, 0x01	; 1
   135e2:	01 90       	ld	r0, Z+
   135e4:	0d 92       	st	X+, r0
   135e6:	8a 95       	dec	r24
   135e8:	e1 f7       	brne	.-8      	; 0x135e2 <process_commands() [clone .part.46]+0xbce>

    float r_axis_x = -offset[X_AXIS];  // Radius vector from center to current location
   135ea:	a5 01       	movw	r20, r10
   135ec:	94 01       	movw	r18, r8
   135ee:	50 58       	subi	r21, 0x80	; 128
   135f0:	6a 96       	adiw	r28, 0x1a	; 26
   135f2:	2c af       	std	Y+60, r18	; 0x3c
   135f4:	3d af       	std	Y+61, r19	; 0x3d
   135f6:	4e af       	std	Y+62, r20	; 0x3e
   135f8:	5f af       	std	Y+63, r21	; 0x3f
   135fa:	6a 97       	sbiw	r28, 0x1a	; 26
    float r_axis_y = -offset[Y_AXIS];
   135fc:	d7 01       	movw	r26, r14
   135fe:	c6 01       	movw	r24, r12
   13600:	b0 58       	subi	r27, 0x80	; 128
   13602:	6e 96       	adiw	r28, 0x1e	; 30
   13604:	8c af       	std	Y+60, r24	; 0x3c
   13606:	9d af       	std	Y+61, r25	; 0x3d
   13608:	ae af       	std	Y+62, r26	; 0x3e
   1360a:	bf af       	std	Y+63, r27	; 0x3f
   1360c:	6e 97       	sbiw	r28, 0x1e	; 30
    float center_axis_x = start_position[X_AXIS] - r_axis_x;
   1360e:	29 81       	ldd	r18, Y+1	; 0x01
   13610:	3a 81       	ldd	r19, Y+2	; 0x02
   13612:	4b 81       	ldd	r20, Y+3	; 0x03
   13614:	5c 81       	ldd	r21, Y+4	; 0x04
   13616:	e6 96       	adiw	r28, 0x36	; 54
   13618:	2c af       	std	Y+60, r18	; 0x3c
   1361a:	3d af       	std	Y+61, r19	; 0x3d
   1361c:	4e af       	std	Y+62, r20	; 0x3e
   1361e:	5f af       	std	Y+63, r21	; 0x3f
   13620:	e6 97       	sbiw	r28, 0x36	; 54
   13622:	c5 01       	movw	r24, r10
   13624:	b4 01       	movw	r22, r8
   13626:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1362a:	ea 96       	adiw	r28, 0x3a	; 58
   1362c:	6c af       	std	Y+60, r22	; 0x3c
   1362e:	7d af       	std	Y+61, r23	; 0x3d
   13630:	8e af       	std	Y+62, r24	; 0x3e
   13632:	9f af       	std	Y+63, r25	; 0x3f
   13634:	ea 97       	sbiw	r28, 0x3a	; 58
    float center_axis_y = start_position[Y_AXIS] - r_axis_y;
   13636:	8d 81       	ldd	r24, Y+5	; 0x05
   13638:	9e 81       	ldd	r25, Y+6	; 0x06
   1363a:	af 81       	ldd	r26, Y+7	; 0x07
   1363c:	b8 85       	ldd	r27, Y+8	; 0x08
   1363e:	ee 96       	adiw	r28, 0x3e	; 62
   13640:	8c af       	std	Y+60, r24	; 0x3c
   13642:	9d af       	std	Y+61, r25	; 0x3d
   13644:	ae af       	std	Y+62, r26	; 0x3e
   13646:	bf af       	std	Y+63, r27	; 0x3f
   13648:	ee 97       	sbiw	r28, 0x3e	; 62
   1364a:	9c 01       	movw	r18, r24
   1364c:	ad 01       	movw	r20, r26
   1364e:	c7 01       	movw	r24, r14
   13650:	b6 01       	movw	r22, r12
   13652:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13656:	ce 57       	subi	r28, 0x7E	; 126
   13658:	df 4f       	sbci	r29, 0xFF	; 255
   1365a:	68 83       	st	Y, r22
   1365c:	79 83       	std	Y+1, r23	; 0x01
   1365e:	8a 83       	std	Y+2, r24	; 0x02
   13660:	9b 83       	std	Y+3, r25	; 0x03
   13662:	c2 58       	subi	r28, 0x82	; 130
   13664:	d0 40       	sbci	r29, 0x00	; 0
    float travel_z = target[Z_AXIS] - start_position[Z_AXIS];
   13666:	29 85       	ldd	r18, Y+9	; 0x09
   13668:	3a 85       	ldd	r19, Y+10	; 0x0a
   1366a:	4b 85       	ldd	r20, Y+11	; 0x0b
   1366c:	5c 85       	ldd	r21, Y+12	; 0x0c
   1366e:	60 91 7c 06 	lds	r22, 0x067C	; 0x80067c <destination+0x8>
   13672:	70 91 7d 06 	lds	r23, 0x067D	; 0x80067d <destination+0x9>
   13676:	80 91 7e 06 	lds	r24, 0x067E	; 0x80067e <destination+0xa>
   1367a:	90 91 7f 06 	lds	r25, 0x067F	; 0x80067f <destination+0xb>
   1367e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13682:	c2 58       	subi	r28, 0x82	; 130
   13684:	df 4f       	sbci	r29, 0xFF	; 255
   13686:	68 83       	st	Y, r22
   13688:	79 83       	std	Y+1, r23	; 0x01
   1368a:	8a 83       	std	Y+2, r24	; 0x02
   1368c:	9b 83       	std	Y+3, r25	; 0x03
   1368e:	ce 57       	subi	r28, 0x7E	; 126
   13690:	d0 40       	sbci	r29, 0x00	; 0
    float rt_x = target[X_AXIS] - center_axis_x;
   13692:	20 91 74 06 	lds	r18, 0x0674	; 0x800674 <destination>
   13696:	30 91 75 06 	lds	r19, 0x0675	; 0x800675 <destination+0x1>
   1369a:	40 91 76 06 	lds	r20, 0x0676	; 0x800676 <destination+0x2>
   1369e:	50 91 77 06 	lds	r21, 0x0677	; 0x800677 <destination+0x3>
   136a2:	ca 57       	subi	r28, 0x7A	; 122
   136a4:	df 4f       	sbci	r29, 0xFF	; 255
   136a6:	28 83       	st	Y, r18
   136a8:	39 83       	std	Y+1, r19	; 0x01
   136aa:	4a 83       	std	Y+2, r20	; 0x02
   136ac:	5b 83       	std	Y+3, r21	; 0x03
   136ae:	c6 58       	subi	r28, 0x86	; 134
   136b0:	d0 40       	sbci	r29, 0x00	; 0
   136b2:	ea 96       	adiw	r28, 0x3a	; 58
   136b4:	2c ad       	ldd	r18, Y+60	; 0x3c
   136b6:	3d ad       	ldd	r19, Y+61	; 0x3d
   136b8:	4e ad       	ldd	r20, Y+62	; 0x3e
   136ba:	5f ad       	ldd	r21, Y+63	; 0x3f
   136bc:	ea 97       	sbiw	r28, 0x3a	; 58
   136be:	ca 57       	subi	r28, 0x7A	; 122
   136c0:	df 4f       	sbci	r29, 0xFF	; 255
   136c2:	68 81       	ld	r22, Y
   136c4:	79 81       	ldd	r23, Y+1	; 0x01
   136c6:	8a 81       	ldd	r24, Y+2	; 0x02
   136c8:	9b 81       	ldd	r25, Y+3	; 0x03
   136ca:	c6 58       	subi	r28, 0x86	; 134
   136cc:	d0 40       	sbci	r29, 0x00	; 0
   136ce:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   136d2:	6b 01       	movw	r12, r22
   136d4:	7c 01       	movw	r14, r24
    float rt_y = target[Y_AXIS] - center_axis_y;
   136d6:	80 91 78 06 	lds	r24, 0x0678	; 0x800678 <destination+0x4>
   136da:	90 91 79 06 	lds	r25, 0x0679	; 0x800679 <destination+0x5>
   136de:	a0 91 7a 06 	lds	r26, 0x067A	; 0x80067a <destination+0x6>
   136e2:	b0 91 7b 06 	lds	r27, 0x067B	; 0x80067b <destination+0x7>
   136e6:	c6 57       	subi	r28, 0x76	; 118
   136e8:	df 4f       	sbci	r29, 0xFF	; 255
   136ea:	88 83       	st	Y, r24
   136ec:	99 83       	std	Y+1, r25	; 0x01
   136ee:	aa 83       	std	Y+2, r26	; 0x02
   136f0:	bb 83       	std	Y+3, r27	; 0x03
   136f2:	ca 58       	subi	r28, 0x8A	; 138
   136f4:	d0 40       	sbci	r29, 0x00	; 0
   136f6:	ce 57       	subi	r28, 0x7E	; 126
   136f8:	df 4f       	sbci	r29, 0xFF	; 255
   136fa:	28 81       	ld	r18, Y
   136fc:	39 81       	ldd	r19, Y+1	; 0x01
   136fe:	4a 81       	ldd	r20, Y+2	; 0x02
   13700:	5b 81       	ldd	r21, Y+3	; 0x03
   13702:	c2 58       	subi	r28, 0x82	; 130
   13704:	d0 40       	sbci	r29, 0x00	; 0
   13706:	bc 01       	movw	r22, r24
   13708:	cd 01       	movw	r24, r26
   1370a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1370e:	4b 01       	movw	r8, r22
   13710:	5c 01       	movw	r10, r24
    // 20200419 - Add a variable that will be used to hold the arc segment length
    float mm_per_arc_segment = cs.mm_per_arc_segment;
   13712:	30 90 82 0e 	lds	r3, 0x0E82	; 0x800e82 <cs+0xc4>
   13716:	20 90 83 0e 	lds	r2, 0x0E83	; 0x800e83 <cs+0xc5>
   1371a:	90 91 84 0e 	lds	r25, 0x0E84	; 0x800e84 <cs+0xc6>
   1371e:	6f 96       	adiw	r28, 0x1f	; 31
   13720:	9f af       	std	Y+63, r25	; 0x3f
   13722:	6f 97       	sbiw	r28, 0x1f	; 31
   13724:	a0 91 85 0e 	lds	r26, 0x0E85	; 0x800e85 <cs+0xc7>
   13728:	a3 96       	adiw	r28, 0x23	; 35
   1372a:	af af       	std	Y+63, r26	; 0x3f
   1372c:	a3 97       	sbiw	r28, 0x23	; 35
    // 20210109 - Add a variable to hold the n_arc_correction value
    unsigned char n_arc_correction = cs.n_arc_correction;

    // CCW angle between start_position and target from circle center. Only one atan2() trig computation required.
    float angular_travel_total = atan2(r_axis_x * rt_y - r_axis_y * rt_x, r_axis_x * rt_x + r_axis_y * rt_y);
   1372e:	a7 01       	movw	r20, r14
   13730:	96 01       	movw	r18, r12
   13732:	6a 96       	adiw	r28, 0x1a	; 26
   13734:	6c ad       	ldd	r22, Y+60	; 0x3c
   13736:	7d ad       	ldd	r23, Y+61	; 0x3d
   13738:	8e ad       	ldd	r24, Y+62	; 0x3e
   1373a:	9f ad       	ldd	r25, Y+63	; 0x3f
   1373c:	6a 97       	sbiw	r28, 0x1a	; 26
   1373e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13742:	2b 01       	movw	r4, r22
   13744:	3c 01       	movw	r6, r24
   13746:	a5 01       	movw	r20, r10
   13748:	94 01       	movw	r18, r8
   1374a:	6e 96       	adiw	r28, 0x1e	; 30
   1374c:	6c ad       	ldd	r22, Y+60	; 0x3c
   1374e:	7d ad       	ldd	r23, Y+61	; 0x3d
   13750:	8e ad       	ldd	r24, Y+62	; 0x3e
   13752:	9f ad       	ldd	r25, Y+63	; 0x3f
   13754:	6e 97       	sbiw	r28, 0x1e	; 30
   13756:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1375a:	9b 01       	movw	r18, r22
   1375c:	ac 01       	movw	r20, r24
   1375e:	c3 01       	movw	r24, r6
   13760:	b2 01       	movw	r22, r4
   13762:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13766:	2b 01       	movw	r4, r22
   13768:	3c 01       	movw	r6, r24
   1376a:	a5 01       	movw	r20, r10
   1376c:	94 01       	movw	r18, r8
   1376e:	6a 96       	adiw	r28, 0x1a	; 26
   13770:	6c ad       	ldd	r22, Y+60	; 0x3c
   13772:	7d ad       	ldd	r23, Y+61	; 0x3d
   13774:	8e ad       	ldd	r24, Y+62	; 0x3e
   13776:	9f ad       	ldd	r25, Y+63	; 0x3f
   13778:	6a 97       	sbiw	r28, 0x1a	; 26
   1377a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1377e:	4b 01       	movw	r8, r22
   13780:	5c 01       	movw	r10, r24
   13782:	a7 01       	movw	r20, r14
   13784:	96 01       	movw	r18, r12
   13786:	6e 96       	adiw	r28, 0x1e	; 30
   13788:	6c ad       	ldd	r22, Y+60	; 0x3c
   1378a:	7d ad       	ldd	r23, Y+61	; 0x3d
   1378c:	8e ad       	ldd	r24, Y+62	; 0x3e
   1378e:	9f ad       	ldd	r25, Y+63	; 0x3f
   13790:	6e 97       	sbiw	r28, 0x1e	; 30
   13792:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13796:	9b 01       	movw	r18, r22
   13798:	ac 01       	movw	r20, r24
   1379a:	c5 01       	movw	r24, r10
   1379c:	b4 01       	movw	r22, r8
   1379e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   137a2:	a3 01       	movw	r20, r6
   137a4:	92 01       	movw	r18, r4
   137a6:	0f 94 02 de 	call	0x3bc04	; 0x3bc04 <atan2>
   137aa:	6b 01       	movw	r12, r22
   137ac:	7c 01       	movw	r14, r24
    if (angular_travel_total < 0) { angular_travel_total += 2 * M_PI; }
   137ae:	20 e0       	ldi	r18, 0x00	; 0
   137b0:	30 e0       	ldi	r19, 0x00	; 0
   137b2:	a9 01       	movw	r20, r18
   137b4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   137b8:	87 ff       	sbrs	r24, 7
   137ba:	0a c0       	rjmp	.+20     	; 0x137d0 <process_commands() [clone .part.46]+0xdbc>
   137bc:	2b ed       	ldi	r18, 0xDB	; 219
   137be:	3f e0       	ldi	r19, 0x0F	; 15
   137c0:	49 ec       	ldi	r20, 0xC9	; 201
   137c2:	50 e4       	ldi	r21, 0x40	; 64
   137c4:	c7 01       	movw	r24, r14
   137c6:	b6 01       	movw	r22, r12
   137c8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   137cc:	6b 01       	movw	r12, r22
   137ce:	7c 01       	movw	r14, r24

    if (cs.min_arc_segments > 0)
   137d0:	60 91 8b 0e 	lds	r22, 0x0E8B	; 0x800e8b <cs+0xcd>
   137d4:	70 91 8c 0e 	lds	r23, 0x0E8C	; 0x800e8c <cs+0xce>
   137d8:	61 15       	cp	r22, r1
   137da:	71 05       	cpc	r23, r1
   137dc:	09 f4       	brne	.+2      	; 0x137e0 <process_commands() [clone .part.46]+0xdcc>
   137de:	a4 c2       	rjmp	.+1352   	; 0x13d28 <process_commands() [clone .part.46]+0x1314>
    {
        // 20200417 - FormerLurker - Implement MIN_ARC_SEGMENTS if it is defined - from Marlin 2.0 implementation
        // Do this before converting the angular travel for clockwise rotation
        mm_per_arc_segment = radius * ((2.0f * M_PI) / cs.min_arc_segments);
   137e0:	90 e0       	ldi	r25, 0x00	; 0
   137e2:	80 e0       	ldi	r24, 0x00	; 0
   137e4:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   137e8:	9b 01       	movw	r18, r22
   137ea:	ac 01       	movw	r20, r24
   137ec:	6b ed       	ldi	r22, 0xDB	; 219
   137ee:	7f e0       	ldi	r23, 0x0F	; 15
   137f0:	89 ec       	ldi	r24, 0xC9	; 201
   137f2:	90 e4       	ldi	r25, 0x40	; 64
   137f4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   137f8:	ae 96       	adiw	r28, 0x2e	; 46
   137fa:	2c ad       	ldd	r18, Y+60	; 0x3c
   137fc:	3d ad       	ldd	r19, Y+61	; 0x3d
   137fe:	4e ad       	ldd	r20, Y+62	; 0x3e
   13800:	5f ad       	ldd	r21, Y+63	; 0x3f
   13802:	ae 97       	sbiw	r28, 0x2e	; 46
   13804:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13808:	5b 01       	movw	r10, r22
   1380a:	8c 01       	movw	r16, r24
    }
    if (cs.arc_segments_per_sec > 0)
   1380c:	60 91 8d 0e 	lds	r22, 0x0E8D	; 0x800e8d <cs+0xcf>
   13810:	70 91 8e 0e 	lds	r23, 0x0E8E	; 0x800e8e <cs+0xd0>
   13814:	61 15       	cp	r22, r1
   13816:	71 05       	cpc	r23, r1
   13818:	f1 f0       	breq	.+60     	; 0x13856 <process_commands() [clone .part.46]+0xe42>
    {
        // 20200417 - FormerLurker - Implement MIN_ARC_SEGMENTS if it is defined - from Marlin 2.0 implementation
        float mm_per_arc_segment_sec = feed_rate / (60.f * float(cs.arc_segments_per_sec));
   1381a:	90 e0       	ldi	r25, 0x00	; 0
   1381c:	80 e0       	ldi	r24, 0x00	; 0
   1381e:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   13822:	20 e0       	ldi	r18, 0x00	; 0
   13824:	30 e0       	ldi	r19, 0x00	; 0
   13826:	40 e7       	ldi	r20, 0x70	; 112
   13828:	52 e4       	ldi	r21, 0x42	; 66
   1382a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1382e:	9b 01       	movw	r18, r22
   13830:	ac 01       	movw	r20, r24
   13832:	aa 96       	adiw	r28, 0x2a	; 42
   13834:	6c ad       	ldd	r22, Y+60	; 0x3c
   13836:	7d ad       	ldd	r23, Y+61	; 0x3d
   13838:	8e ad       	ldd	r24, Y+62	; 0x3e
   1383a:	9f ad       	ldd	r25, Y+63	; 0x3f
   1383c:	aa 97       	sbiw	r28, 0x2a	; 42
   1383e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   13842:	3b 01       	movw	r6, r22
   13844:	4c 01       	movw	r8, r24
        if (mm_per_arc_segment_sec < mm_per_arc_segment)
   13846:	95 01       	movw	r18, r10
   13848:	a8 01       	movw	r20, r16
   1384a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1384e:	87 ff       	sbrs	r24, 7
   13850:	02 c0       	rjmp	.+4      	; 0x13856 <process_commands() [clone .part.46]+0xe42>
            mm_per_arc_segment = mm_per_arc_segment_sec;
   13852:	53 01       	movw	r10, r6
   13854:	84 01       	movw	r16, r8
    }

    // Note:  no need to check to see if min_mm_per_arc_segment is enabled or not (i.e. = 0), since mm_per_arc_segment can never be below 0.
    if (mm_per_arc_segment < cs.min_mm_per_arc_segment)
   13856:	40 90 86 0e 	lds	r4, 0x0E86	; 0x800e86 <cs+0xc8>
   1385a:	50 90 87 0e 	lds	r5, 0x0E87	; 0x800e87 <cs+0xc9>
   1385e:	60 90 88 0e 	lds	r6, 0x0E88	; 0x800e88 <cs+0xca>
   13862:	70 90 89 0e 	lds	r7, 0x0E89	; 0x800e89 <cs+0xcb>
   13866:	95 01       	movw	r18, r10
   13868:	a8 01       	movw	r20, r16
   1386a:	b2 01       	movw	r22, r4
   1386c:	c3 01       	movw	r24, r6
   1386e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   13872:	18 16       	cp	r1, r24
   13874:	c4 f0       	brlt	.+48     	; 0x138a6 <process_commands() [clone .part.46]+0xe92>
    {
        // 20200417 - FormerLurker - Implement MIN_MM_PER_ARC_SEGMENT if it is defined
        // This prevents a very high number of segments from being generated for curves of a short radius
        mm_per_arc_segment = cs.min_mm_per_arc_segment;
    }
    else if (mm_per_arc_segment > cs.mm_per_arc_segment) {
   13876:	95 01       	movw	r18, r10
   13878:	a8 01       	movw	r20, r16
   1387a:	63 2d       	mov	r22, r3
   1387c:	72 2d       	mov	r23, r2
   1387e:	6f 96       	adiw	r28, 0x1f	; 31
   13880:	8f ad       	ldd	r24, Y+63	; 0x3f
   13882:	6f 97       	sbiw	r28, 0x1f	; 31
   13884:	a3 96       	adiw	r28, 0x23	; 35
   13886:	9f ad       	ldd	r25, Y+63	; 0x3f
   13888:	a3 97       	sbiw	r28, 0x23	; 35
   1388a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1388e:	25 01       	movw	r4, r10
   13890:	38 01       	movw	r6, r16
   13892:	87 ff       	sbrs	r24, 7
   13894:	08 c0       	rjmp	.+16     	; 0x138a6 <process_commands() [clone .part.46]+0xe92>
        // 20210113 - This can be implemented in an else if since  we can't be below the min AND above the max at the same time.
        // 20200417 - FormerLurker - Implement MIN_MM_PER_ARC_SEGMENT if it is defined
        mm_per_arc_segment = cs.mm_per_arc_segment;
   13896:	43 2c       	mov	r4, r3
   13898:	52 2c       	mov	r5, r2
   1389a:	6f 96       	adiw	r28, 0x1f	; 31
   1389c:	6f ac       	ldd	r6, Y+63	; 0x3f
   1389e:	6f 97       	sbiw	r28, 0x1f	; 31
   138a0:	a3 96       	adiw	r28, 0x23	; 35
   138a2:	7f ac       	ldd	r7, Y+63	; 0x3f
   138a4:	a3 97       	sbiw	r28, 0x23	; 35
    }

    // Adjust the angular travel if the direction is clockwise
    if (isclockwise) { angular_travel_total -= 2 * M_PI; }
   138a6:	c2 57       	subi	r28, 0x72	; 114
   138a8:	df 4f       	sbci	r29, 0xFF	; 255
   138aa:	e8 81       	ld	r30, Y
   138ac:	f9 81       	ldd	r31, Y+1	; 0x01
   138ae:	ce 58       	subi	r28, 0x8E	; 142
   138b0:	d0 40       	sbci	r29, 0x00	; 0
   138b2:	32 97       	sbiw	r30, 0x02	; 2
   138b4:	51 f4       	brne	.+20     	; 0x138ca <process_commands() [clone .part.46]+0xeb6>
   138b6:	2b ed       	ldi	r18, 0xDB	; 219
   138b8:	3f e0       	ldi	r19, 0x0F	; 15
   138ba:	49 ec       	ldi	r20, 0xC9	; 201
   138bc:	50 e4       	ldi	r21, 0x40	; 64
   138be:	c7 01       	movw	r24, r14
   138c0:	b6 01       	movw	r22, r12
   138c2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   138c6:	6b 01       	movw	r12, r22
   138c8:	7c 01       	movw	r14, r24

    //20141002:full circle for G03 did not work, e.g. G03 X80 Y80 I20 J0 F2000 is giving an Angle of zero so head is not moving
    //to compensate when start pos = target pos && angle is zero -> angle = 2Pi
    if (start_position[X_AXIS] == target[X_AXIS] && start_position[Y_AXIS] == target[Y_AXIS] && angular_travel_total == 0)
   138ca:	ca 57       	subi	r28, 0x7A	; 122
   138cc:	df 4f       	sbci	r29, 0xFF	; 255
   138ce:	28 81       	ld	r18, Y
   138d0:	39 81       	ldd	r19, Y+1	; 0x01
   138d2:	4a 81       	ldd	r20, Y+2	; 0x02
   138d4:	5b 81       	ldd	r21, Y+3	; 0x03
   138d6:	c6 58       	subi	r28, 0x86	; 134
   138d8:	d0 40       	sbci	r29, 0x00	; 0
   138da:	e6 96       	adiw	r28, 0x36	; 54
   138dc:	6c ad       	ldd	r22, Y+60	; 0x3c
   138de:	7d ad       	ldd	r23, Y+61	; 0x3d
   138e0:	8e ad       	ldd	r24, Y+62	; 0x3e
   138e2:	9f ad       	ldd	r25, Y+63	; 0x3f
   138e4:	e6 97       	sbiw	r28, 0x36	; 54
   138e6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   138ea:	81 11       	cpse	r24, r1
   138ec:	25 c0       	rjmp	.+74     	; 0x13938 <process_commands() [clone .part.46]+0xf24>
   138ee:	c6 57       	subi	r28, 0x76	; 118
   138f0:	df 4f       	sbci	r29, 0xFF	; 255
   138f2:	28 81       	ld	r18, Y
   138f4:	39 81       	ldd	r19, Y+1	; 0x01
   138f6:	4a 81       	ldd	r20, Y+2	; 0x02
   138f8:	5b 81       	ldd	r21, Y+3	; 0x03
   138fa:	ca 58       	subi	r28, 0x8A	; 138
   138fc:	d0 40       	sbci	r29, 0x00	; 0
   138fe:	ee 96       	adiw	r28, 0x3e	; 62
   13900:	6c ad       	ldd	r22, Y+60	; 0x3c
   13902:	7d ad       	ldd	r23, Y+61	; 0x3d
   13904:	8e ad       	ldd	r24, Y+62	; 0x3e
   13906:	9f ad       	ldd	r25, Y+63	; 0x3f
   13908:	ee 97       	sbiw	r28, 0x3e	; 62
   1390a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1390e:	81 11       	cpse	r24, r1
   13910:	13 c0       	rjmp	.+38     	; 0x13938 <process_commands() [clone .part.46]+0xf24>
   13912:	20 e0       	ldi	r18, 0x00	; 0
   13914:	30 e0       	ldi	r19, 0x00	; 0
   13916:	a9 01       	movw	r20, r18
   13918:	c7 01       	movw	r24, r14
   1391a:	b6 01       	movw	r22, r12
   1391c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   13920:	81 11       	cpse	r24, r1
   13922:	0a c0       	rjmp	.+20     	; 0x13938 <process_commands() [clone .part.46]+0xf24>
    {
        angular_travel_total += 2 * M_PI;
   13924:	2b ed       	ldi	r18, 0xDB	; 219
   13926:	3f e0       	ldi	r19, 0x0F	; 15
   13928:	49 ec       	ldi	r20, 0xC9	; 201
   1392a:	50 e4       	ldi	r21, 0x40	; 64
   1392c:	c7 01       	movw	r24, r14
   1392e:	b6 01       	movw	r22, r12
   13930:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13934:	6b 01       	movw	r12, r22
   13936:	7c 01       	movw	r14, r24
    }
    //end fix G03

    // 20200417 - FormerLurker - rename millimeters_of_travel to millimeters_of_travel_arc to better describe what we are
    // calculating here
    const float millimeters_of_travel_arc = hypot(angular_travel_total * radius, fabs(travel_z));
   13938:	a7 01       	movw	r20, r14
   1393a:	96 01       	movw	r18, r12
   1393c:	ae 96       	adiw	r28, 0x2e	; 46
   1393e:	6c ad       	ldd	r22, Y+60	; 0x3c
   13940:	7d ad       	ldd	r23, Y+61	; 0x3d
   13942:	8e ad       	ldd	r24, Y+62	; 0x3e
   13944:	9f ad       	ldd	r25, Y+63	; 0x3f
   13946:	ae 97       	sbiw	r28, 0x2e	; 46
   13948:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1394c:	c2 58       	subi	r28, 0x82	; 130
   1394e:	df 4f       	sbci	r29, 0xFF	; 255
   13950:	28 81       	ld	r18, Y
   13952:	39 81       	ldd	r19, Y+1	; 0x01
   13954:	4a 81       	ldd	r20, Y+2	; 0x02
   13956:	5b 81       	ldd	r21, Y+3	; 0x03
   13958:	ce 57       	subi	r28, 0x7E	; 126
   1395a:	d0 40       	sbci	r29, 0x00	; 0
   1395c:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
   13960:	4b 01       	movw	r8, r22
   13962:	5c 01       	movw	r10, r24
    if (millimeters_of_travel_arc < 0.001) { return; }
   13964:	2f e6       	ldi	r18, 0x6F	; 111
   13966:	32 e1       	ldi	r19, 0x12	; 18
   13968:	43 e8       	ldi	r20, 0x83	; 131
   1396a:	5a e3       	ldi	r21, 0x3A	; 58
   1396c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   13970:	87 fd       	sbrc	r24, 7
   13972:	cf c1       	rjmp	.+926    	; 0x13d12 <process_commands() [clone .part.46]+0x12fe>

    // Calculate the number of arc segments
    unsigned short segments = static_cast<unsigned short>(ceil(millimeters_of_travel_arc / mm_per_arc_segment));
   13974:	92 01       	movw	r18, r4
   13976:	a3 01       	movw	r20, r6
   13978:	c5 01       	movw	r24, r10
   1397a:	b4 01       	movw	r22, r8
   1397c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   13980:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   13984:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   13988:	a4 96       	adiw	r28, 0x24	; 36
   1398a:	7f af       	std	Y+63, r23	; 0x3f
   1398c:	6e af       	std	Y+62, r22	; 0x3e
   1398e:	a4 97       	sbiw	r28, 0x24	; 36
       Finding a faster way to approximate sin, knowing that there can be substantial deviations from the true
       arc when using the previous approximation, would be beneficial.
    */

    // If there is only one segment, no need to do a bunch of work since this is a straight line!
    if (segments > 1 && start_segment_idx)
   13990:	62 30       	cpi	r22, 0x02	; 2
   13992:	71 05       	cpc	r23, r1
   13994:	08 f4       	brcc	.+2      	; 0x13998 <process_commands() [clone .part.46]+0xf84>
   13996:	8b c1       	rjmp	.+790    	; 0x13cae <process_commands() [clone .part.46]+0x129a>
   13998:	e0 96       	adiw	r28, 0x30	; 48
   1399a:	4e ad       	ldd	r20, Y+62	; 0x3e
   1399c:	5f ad       	ldd	r21, Y+63	; 0x3f
   1399e:	e0 97       	sbiw	r28, 0x30	; 48
   139a0:	45 2b       	or	r20, r21
   139a2:	09 f4       	brne	.+2      	; 0x139a6 <process_commands() [clone .part.46]+0xf92>
   139a4:	84 c1       	rjmp	.+776    	; 0x13cae <process_commands() [clone .part.46]+0x129a>
    float rt_x = target[X_AXIS] - center_axis_x;
    float rt_y = target[Y_AXIS] - center_axis_y;
    // 20200419 - Add a variable that will be used to hold the arc segment length
    float mm_per_arc_segment = cs.mm_per_arc_segment;
    // 20210109 - Add a variable to hold the n_arc_correction value
    unsigned char n_arc_correction = cs.n_arc_correction;
   139a6:	50 91 8a 0e 	lds	r21, 0x0E8A	; 0x800e8a <cs+0xcc>
   139aa:	6f 96       	adiw	r28, 0x1f	; 31
   139ac:	5f af       	std	Y+63, r21	; 0x3f
   139ae:	6f 97       	sbiw	r28, 0x1f	; 31
    // If there is only one segment, no need to do a bunch of work since this is a straight line!
    if (segments > 1 && start_segment_idx)
    {
        // Calculate theta per segments, and linear (z) travel per segment, e travel per segment
        // as well as the small angle approximation for sin and cos.
        const float theta_per_segment = angular_travel_total / segments,
   139b0:	90 e0       	ldi	r25, 0x00	; 0
   139b2:	80 e0       	ldi	r24, 0x00	; 0
   139b4:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   139b8:	4b 01       	movw	r8, r22
   139ba:	5c 01       	movw	r10, r24
   139bc:	ac 01       	movw	r20, r24
   139be:	9b 01       	movw	r18, r22
   139c0:	c7 01       	movw	r24, r14
   139c2:	b6 01       	movw	r22, r12
   139c4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   139c8:	2b 01       	movw	r4, r22
   139ca:	3c 01       	movw	r6, r24
            linear_per_segment = travel_z / (segments),
   139cc:	a5 01       	movw	r20, r10
   139ce:	94 01       	movw	r18, r8
   139d0:	c2 58       	subi	r28, 0x82	; 130
   139d2:	df 4f       	sbci	r29, 0xFF	; 255
   139d4:	68 81       	ld	r22, Y
   139d6:	79 81       	ldd	r23, Y+1	; 0x01
   139d8:	8a 81       	ldd	r24, Y+2	; 0x02
   139da:	9b 81       	ldd	r25, Y+3	; 0x03
   139dc:	ce 57       	subi	r28, 0x7E	; 126
   139de:	d0 40       	sbci	r29, 0x00	; 0
   139e0:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   139e4:	ee 96       	adiw	r28, 0x3e	; 62
   139e6:	6c af       	std	Y+60, r22	; 0x3c
   139e8:	7d af       	std	Y+61, r23	; 0x3d
   139ea:	8e af       	std	Y+62, r24	; 0x3e
   139ec:	9f af       	std	Y+63, r25	; 0x3f
   139ee:	ee 97       	sbiw	r28, 0x3e	; 62
            segment_extruder_travel = (target[E_AXIS] - start_position[E_AXIS]) / (segments),
   139f0:	2d 85       	ldd	r18, Y+13	; 0x0d
   139f2:	3e 85       	ldd	r19, Y+14	; 0x0e
   139f4:	4f 85       	ldd	r20, Y+15	; 0x0f
   139f6:	58 89       	ldd	r21, Y+16	; 0x10
   139f8:	60 91 80 06 	lds	r22, 0x0680	; 0x800680 <destination+0xc>
   139fc:	70 91 81 06 	lds	r23, 0x0681	; 0x800681 <destination+0xd>
   13a00:	80 91 82 06 	lds	r24, 0x0682	; 0x800682 <destination+0xe>
   13a04:	90 91 83 06 	lds	r25, 0x0683	; 0x800683 <destination+0xf>
   13a08:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13a0c:	a5 01       	movw	r20, r10
   13a0e:	94 01       	movw	r18, r8
   13a10:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   13a14:	c2 58       	subi	r28, 0x82	; 130
   13a16:	df 4f       	sbci	r29, 0xFF	; 255
   13a18:	68 83       	st	Y, r22
   13a1a:	79 83       	std	Y+1, r23	; 0x01
   13a1c:	8a 83       	std	Y+2, r24	; 0x02
   13a1e:	9b 83       	std	Y+3, r25	; 0x03
   13a20:	ce 57       	subi	r28, 0x7E	; 126
   13a22:	d0 40       	sbci	r29, 0x00	; 0
            sq_theta_per_segment = theta_per_segment * theta_per_segment,
   13a24:	a3 01       	movw	r20, r6
   13a26:	92 01       	movw	r18, r4
   13a28:	c3 01       	movw	r24, r6
   13a2a:	b2 01       	movw	r22, r4
   13a2c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13a30:	6b 01       	movw	r12, r22
   13a32:	7c 01       	movw	r14, r24
            sin_T = theta_per_segment - sq_theta_per_segment * theta_per_segment / 6,
   13a34:	ac 01       	movw	r20, r24
   13a36:	9b 01       	movw	r18, r22
   13a38:	c3 01       	movw	r24, r6
   13a3a:	b2 01       	movw	r22, r4
   13a3c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13a40:	20 e0       	ldi	r18, 0x00	; 0
   13a42:	30 e0       	ldi	r19, 0x00	; 0
   13a44:	40 ec       	ldi	r20, 0xC0	; 192
   13a46:	50 e4       	ldi	r21, 0x40	; 64
   13a48:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   13a4c:	9b 01       	movw	r18, r22
   13a4e:	ac 01       	movw	r20, r24
   13a50:	c3 01       	movw	r24, r6
   13a52:	b2 01       	movw	r22, r4
   13a54:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13a58:	ae 96       	adiw	r28, 0x2e	; 46
   13a5a:	6c af       	std	Y+60, r22	; 0x3c
   13a5c:	7d af       	std	Y+61, r23	; 0x3d
   13a5e:	8e af       	std	Y+62, r24	; 0x3e
   13a60:	9f af       	std	Y+63, r25	; 0x3f
   13a62:	ae 97       	sbiw	r28, 0x2e	; 46
            cos_T = 1 - 0.5f * sq_theta_per_segment;
   13a64:	20 e0       	ldi	r18, 0x00	; 0
   13a66:	30 e0       	ldi	r19, 0x00	; 0
   13a68:	40 e0       	ldi	r20, 0x00	; 0
   13a6a:	5f e3       	ldi	r21, 0x3F	; 63
   13a6c:	c7 01       	movw	r24, r14
   13a6e:	b6 01       	movw	r22, r12
   13a70:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13a74:	9b 01       	movw	r18, r22
   13a76:	ac 01       	movw	r20, r24
   13a78:	60 e0       	ldi	r22, 0x00	; 0
   13a7a:	70 e0       	ldi	r23, 0x00	; 0
   13a7c:	80 e8       	ldi	r24, 0x80	; 128
   13a7e:	9f e3       	ldi	r25, 0x3F	; 63
   13a80:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13a84:	e6 96       	adiw	r28, 0x36	; 54
   13a86:	6c af       	std	Y+60, r22	; 0x3c
   13a88:	7d af       	std	Y+61, r23	; 0x3d
   13a8a:	8e af       	std	Y+62, r24	; 0x3e
   13a8c:	9f af       	std	Y+63, r25	; 0x3f
   13a8e:	e6 97       	sbiw	r28, 0x36	; 54
        // Loop through all but one of the segments.  The last one can be done simply
        // by moving to the target.
        for (uint16_t i = 1; i < segments; i++) {
   13a90:	22 24       	eor	r2, r2
   13a92:	23 94       	inc	r2
   13a94:	31 2c       	mov	r3, r1
            if (n_arc_correction-- == 0) {
   13a96:	6f 96       	adiw	r28, 0x1f	; 31
   13a98:	8f ad       	ldd	r24, Y+63	; 0x3f
   13a9a:	6f 97       	sbiw	r28, 0x1f	; 31
   13a9c:	81 11       	cpse	r24, r1
   13a9e:	4d c1       	rjmp	.+666    	; 0x13d3a <process_commands() [clone .part.46]+0x1326>
                // Calculate the actual position for r_axis_x and r_axis_y
                const float cos_Ti = cos(i * theta_per_segment), sin_Ti = sin(i * theta_per_segment);
   13aa0:	b1 01       	movw	r22, r2
   13aa2:	90 e0       	ldi	r25, 0x00	; 0
   13aa4:	80 e0       	ldi	r24, 0x00	; 0
   13aa6:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   13aaa:	a3 01       	movw	r20, r6
   13aac:	92 01       	movw	r18, r4
   13aae:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13ab2:	6b 01       	movw	r12, r22
   13ab4:	7c 01       	movw	r14, r24
   13ab6:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   13aba:	6e 96       	adiw	r28, 0x1e	; 30
   13abc:	6c af       	std	Y+60, r22	; 0x3c
   13abe:	7d af       	std	Y+61, r23	; 0x3d
   13ac0:	8e af       	std	Y+62, r24	; 0x3e
   13ac2:	9f af       	std	Y+63, r25	; 0x3f
   13ac4:	6e 97       	sbiw	r28, 0x1e	; 30
   13ac6:	c7 01       	movw	r24, r14
   13ac8:	b6 01       	movw	r22, r12
   13aca:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   13ace:	4b 01       	movw	r8, r22
   13ad0:	5c 01       	movw	r10, r24
                r_axis_x = -offset[X_AXIS] * cos_Ti + offset[Y_AXIS] * sin_Ti;
   13ad2:	c0 90 8b 03 	lds	r12, 0x038B	; 0x80038b <offset>
   13ad6:	d0 90 8c 03 	lds	r13, 0x038C	; 0x80038c <offset+0x1>
   13ada:	e0 90 8d 03 	lds	r14, 0x038D	; 0x80038d <offset+0x2>
   13ade:	f0 90 8e 03 	lds	r15, 0x038E	; 0x80038e <offset+0x3>
   13ae2:	f7 fa       	bst	r15, 7
   13ae4:	f0 94       	com	r15
   13ae6:	f7 f8       	bld	r15, 7
   13ae8:	f0 94       	com	r15
   13aea:	20 91 8f 03 	lds	r18, 0x038F	; 0x80038f <offset+0x4>
   13aee:	30 91 90 03 	lds	r19, 0x0390	; 0x800390 <offset+0x5>
   13af2:	40 91 91 03 	lds	r20, 0x0391	; 0x800391 <offset+0x6>
   13af6:	50 91 92 03 	lds	r21, 0x0392	; 0x800392 <offset+0x7>
   13afa:	a2 96       	adiw	r28, 0x22	; 34
   13afc:	2c af       	std	Y+60, r18	; 0x3c
   13afe:	3d af       	std	Y+61, r19	; 0x3d
   13b00:	4e af       	std	Y+62, r20	; 0x3e
   13b02:	5f af       	std	Y+63, r21	; 0x3f
   13b04:	a2 97       	sbiw	r28, 0x22	; 34
   13b06:	a7 01       	movw	r20, r14
   13b08:	96 01       	movw	r18, r12
   13b0a:	6e 96       	adiw	r28, 0x1e	; 30
   13b0c:	6c ad       	ldd	r22, Y+60	; 0x3c
   13b0e:	7d ad       	ldd	r23, Y+61	; 0x3d
   13b10:	8e ad       	ldd	r24, Y+62	; 0x3e
   13b12:	9f ad       	ldd	r25, Y+63	; 0x3f
   13b14:	6e 97       	sbiw	r28, 0x1e	; 30
   13b16:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13b1a:	6a 96       	adiw	r28, 0x1a	; 26
   13b1c:	6c af       	std	Y+60, r22	; 0x3c
   13b1e:	7d af       	std	Y+61, r23	; 0x3d
   13b20:	8e af       	std	Y+62, r24	; 0x3e
   13b22:	9f af       	std	Y+63, r25	; 0x3f
   13b24:	6a 97       	sbiw	r28, 0x1a	; 26
   13b26:	a2 96       	adiw	r28, 0x22	; 34
   13b28:	2c ad       	ldd	r18, Y+60	; 0x3c
   13b2a:	3d ad       	ldd	r19, Y+61	; 0x3d
   13b2c:	4e ad       	ldd	r20, Y+62	; 0x3e
   13b2e:	5f ad       	ldd	r21, Y+63	; 0x3f
   13b30:	a2 97       	sbiw	r28, 0x22	; 34
   13b32:	c5 01       	movw	r24, r10
   13b34:	b4 01       	movw	r22, r8
   13b36:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13b3a:	9b 01       	movw	r18, r22
   13b3c:	ac 01       	movw	r20, r24
   13b3e:	6a 96       	adiw	r28, 0x1a	; 26
   13b40:	6c ad       	ldd	r22, Y+60	; 0x3c
   13b42:	7d ad       	ldd	r23, Y+61	; 0x3d
   13b44:	8e ad       	ldd	r24, Y+62	; 0x3e
   13b46:	9f ad       	ldd	r25, Y+63	; 0x3f
   13b48:	6a 97       	sbiw	r28, 0x1a	; 26
   13b4a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13b4e:	6a 96       	adiw	r28, 0x1a	; 26
   13b50:	6c af       	std	Y+60, r22	; 0x3c
   13b52:	7d af       	std	Y+61, r23	; 0x3d
   13b54:	8e af       	std	Y+62, r24	; 0x3e
   13b56:	9f af       	std	Y+63, r25	; 0x3f
   13b58:	6a 97       	sbiw	r28, 0x1a	; 26
                r_axis_y = -offset[X_AXIS] * sin_Ti - offset[Y_AXIS] * cos_Ti;
   13b5a:	a7 01       	movw	r20, r14
   13b5c:	96 01       	movw	r18, r12
   13b5e:	c5 01       	movw	r24, r10
   13b60:	b4 01       	movw	r22, r8
   13b62:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13b66:	6b 01       	movw	r12, r22
   13b68:	7c 01       	movw	r14, r24
   13b6a:	a2 96       	adiw	r28, 0x22	; 34
   13b6c:	2c ad       	ldd	r18, Y+60	; 0x3c
   13b6e:	3d ad       	ldd	r19, Y+61	; 0x3d
   13b70:	4e ad       	ldd	r20, Y+62	; 0x3e
   13b72:	5f ad       	ldd	r21, Y+63	; 0x3f
   13b74:	a2 97       	sbiw	r28, 0x22	; 34
   13b76:	6e 96       	adiw	r28, 0x1e	; 30
   13b78:	6c ad       	ldd	r22, Y+60	; 0x3c
   13b7a:	7d ad       	ldd	r23, Y+61	; 0x3d
   13b7c:	8e ad       	ldd	r24, Y+62	; 0x3e
   13b7e:	9f ad       	ldd	r25, Y+63	; 0x3f
   13b80:	6e 97       	sbiw	r28, 0x1e	; 30
   13b82:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13b86:	9b 01       	movw	r18, r22
   13b88:	ac 01       	movw	r20, r24
   13b8a:	c7 01       	movw	r24, r14
   13b8c:	b6 01       	movw	r22, r12
   13b8e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13b92:	6e 96       	adiw	r28, 0x1e	; 30
   13b94:	6c af       	std	Y+60, r22	; 0x3c
   13b96:	7d af       	std	Y+61, r23	; 0x3d
   13b98:	8e af       	std	Y+62, r24	; 0x3e
   13b9a:	9f af       	std	Y+63, r25	; 0x3f
   13b9c:	6e 97       	sbiw	r28, 0x1e	; 30
                // reset n_arc_correction
                n_arc_correction = cs.n_arc_correction;
   13b9e:	30 91 8a 0e 	lds	r19, 0x0E8A	; 0x800e8a <cs+0xcc>
   13ba2:	6f 96       	adiw	r28, 0x1f	; 31
   13ba4:	3f af       	std	Y+63, r19	; 0x3f
   13ba6:	6f 97       	sbiw	r28, 0x1f	; 31
                r_axis_x = r_axis_x * cos_T - r_axis_y * sin_T;
                r_axis_y = r_axisi;
            }

            // Update Position
            start_position[X_AXIS] = center_axis_x + r_axis_x;
   13ba8:	6a 96       	adiw	r28, 0x1a	; 26
   13baa:	2c ad       	ldd	r18, Y+60	; 0x3c
   13bac:	3d ad       	ldd	r19, Y+61	; 0x3d
   13bae:	4e ad       	ldd	r20, Y+62	; 0x3e
   13bb0:	5f ad       	ldd	r21, Y+63	; 0x3f
   13bb2:	6a 97       	sbiw	r28, 0x1a	; 26
   13bb4:	ea 96       	adiw	r28, 0x3a	; 58
   13bb6:	6c ad       	ldd	r22, Y+60	; 0x3c
   13bb8:	7d ad       	ldd	r23, Y+61	; 0x3d
   13bba:	8e ad       	ldd	r24, Y+62	; 0x3e
   13bbc:	9f ad       	ldd	r25, Y+63	; 0x3f
   13bbe:	ea 97       	sbiw	r28, 0x3a	; 58
   13bc0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13bc4:	69 83       	std	Y+1, r22	; 0x01
   13bc6:	7a 83       	std	Y+2, r23	; 0x02
   13bc8:	8b 83       	std	Y+3, r24	; 0x03
   13bca:	9c 83       	std	Y+4, r25	; 0x04
            start_position[Y_AXIS] = center_axis_y + r_axis_y;
   13bcc:	6e 96       	adiw	r28, 0x1e	; 30
   13bce:	2c ad       	ldd	r18, Y+60	; 0x3c
   13bd0:	3d ad       	ldd	r19, Y+61	; 0x3d
   13bd2:	4e ad       	ldd	r20, Y+62	; 0x3e
   13bd4:	5f ad       	ldd	r21, Y+63	; 0x3f
   13bd6:	6e 97       	sbiw	r28, 0x1e	; 30
   13bd8:	ce 57       	subi	r28, 0x7E	; 126
   13bda:	df 4f       	sbci	r29, 0xFF	; 255
   13bdc:	68 81       	ld	r22, Y
   13bde:	79 81       	ldd	r23, Y+1	; 0x01
   13be0:	8a 81       	ldd	r24, Y+2	; 0x02
   13be2:	9b 81       	ldd	r25, Y+3	; 0x03
   13be4:	c2 58       	subi	r28, 0x82	; 130
   13be6:	d0 40       	sbci	r29, 0x00	; 0
   13be8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13bec:	6d 83       	std	Y+5, r22	; 0x05
   13bee:	7e 83       	std	Y+6, r23	; 0x06
   13bf0:	8f 83       	std	Y+7, r24	; 0x07
   13bf2:	98 87       	std	Y+8, r25	; 0x08
            start_position[Z_AXIS] += linear_per_segment;
   13bf4:	ee 96       	adiw	r28, 0x3e	; 62
   13bf6:	2c ad       	ldd	r18, Y+60	; 0x3c
   13bf8:	3d ad       	ldd	r19, Y+61	; 0x3d
   13bfa:	4e ad       	ldd	r20, Y+62	; 0x3e
   13bfc:	5f ad       	ldd	r21, Y+63	; 0x3f
   13bfe:	ee 97       	sbiw	r28, 0x3e	; 62
   13c00:	69 85       	ldd	r22, Y+9	; 0x09
   13c02:	7a 85       	ldd	r23, Y+10	; 0x0a
   13c04:	8b 85       	ldd	r24, Y+11	; 0x0b
   13c06:	9c 85       	ldd	r25, Y+12	; 0x0c
   13c08:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13c0c:	69 87       	std	Y+9, r22	; 0x09
   13c0e:	7a 87       	std	Y+10, r23	; 0x0a
   13c10:	8b 87       	std	Y+11, r24	; 0x0b
   13c12:	9c 87       	std	Y+12, r25	; 0x0c
            start_position[E_AXIS] += segment_extruder_travel;
   13c14:	c2 58       	subi	r28, 0x82	; 130
   13c16:	df 4f       	sbci	r29, 0xFF	; 255
   13c18:	28 81       	ld	r18, Y
   13c1a:	39 81       	ldd	r19, Y+1	; 0x01
   13c1c:	4a 81       	ldd	r20, Y+2	; 0x02
   13c1e:	5b 81       	ldd	r21, Y+3	; 0x03
   13c20:	ce 57       	subi	r28, 0x7E	; 126
   13c22:	d0 40       	sbci	r29, 0x00	; 0
   13c24:	6d 85       	ldd	r22, Y+13	; 0x0d
   13c26:	7e 85       	ldd	r23, Y+14	; 0x0e
   13c28:	8f 85       	ldd	r24, Y+15	; 0x0f
   13c2a:	98 89       	ldd	r25, Y+16	; 0x10
   13c2c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13c30:	6d 87       	std	Y+13, r22	; 0x0d
   13c32:	7e 87       	std	Y+14, r23	; 0x0e
   13c34:	8f 87       	std	Y+15, r24	; 0x0f
   13c36:	98 8b       	std	Y+16, r25	; 0x10
            // Clamp to the calculated position.
            clamp_to_software_endstops(start_position);
   13c38:	ce 01       	movw	r24, r28
   13c3a:	01 96       	adiw	r24, 0x01	; 1
   13c3c:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
            // Insert the segment into the buffer
            if (i >= start_segment_idx)
   13c40:	e0 96       	adiw	r28, 0x30	; 48
   13c42:	8e ad       	ldd	r24, Y+62	; 0x3e
   13c44:	9f ad       	ldd	r25, Y+63	; 0x3f
   13c46:	e0 97       	sbiw	r28, 0x30	; 48
   13c48:	28 16       	cp	r2, r24
   13c4a:	39 06       	cpc	r3, r25
   13c4c:	08 f1       	brcs	.+66     	; 0x13c90 <process_commands() [clone .part.46]+0x127c>
                plan_buffer_line(start_position[X_AXIS], start_position[Y_AXIS], start_position[Z_AXIS], start_position[E_AXIS], feed_rate, position, i);
   13c4e:	e9 84       	ldd	r14, Y+9	; 0x09
   13c50:	fa 84       	ldd	r15, Y+10	; 0x0a
   13c52:	0b 85       	ldd	r16, Y+11	; 0x0b
   13c54:	1c 85       	ldd	r17, Y+12	; 0x0c
   13c56:	2d 81       	ldd	r18, Y+5	; 0x05
   13c58:	3e 81       	ldd	r19, Y+6	; 0x06
   13c5a:	4f 81       	ldd	r20, Y+7	; 0x07
   13c5c:	58 85       	ldd	r21, Y+8	; 0x08
   13c5e:	69 81       	ldd	r22, Y+1	; 0x01
   13c60:	7a 81       	ldd	r23, Y+2	; 0x02
   13c62:	8b 81       	ldd	r24, Y+3	; 0x03
   13c64:	9c 81       	ldd	r25, Y+4	; 0x04
   13c66:	3f 92       	push	r3
   13c68:	2f 92       	push	r2
   13c6a:	a2 e9       	ldi	r26, 0x92	; 146
   13c6c:	b6 e0       	ldi	r27, 0x06	; 6
   13c6e:	bf 93       	push	r27
   13c70:	af 93       	push	r26
   13c72:	aa 96       	adiw	r28, 0x2a	; 42
   13c74:	8c ac       	ldd	r8, Y+60	; 0x3c
   13c76:	9d ac       	ldd	r9, Y+61	; 0x3d
   13c78:	ae ac       	ldd	r10, Y+62	; 0x3e
   13c7a:	bf ac       	ldd	r11, Y+63	; 0x3f
   13c7c:	aa 97       	sbiw	r28, 0x2a	; 42
   13c7e:	de 01       	movw	r26, r28
   13c80:	1d 96       	adiw	r26, 0x0d	; 13
   13c82:	6d 01       	movw	r12, r26
   13c84:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
   13c88:	0f 90       	pop	r0
   13c8a:	0f 90       	pop	r0
   13c8c:	0f 90       	pop	r0
   13c8e:	0f 90       	pop	r0
            // Handle the situation where the planner is aborted hard.
            if (planner_aborted)
   13c90:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   13c94:	81 11       	cpse	r24, r1
   13c96:	3d c0       	rjmp	.+122    	; 0x13d12 <process_commands() [clone .part.46]+0x12fe>
            sq_theta_per_segment = theta_per_segment * theta_per_segment,
            sin_T = theta_per_segment - sq_theta_per_segment * theta_per_segment / 6,
            cos_T = 1 - 0.5f * sq_theta_per_segment;
        // Loop through all but one of the segments.  The last one can be done simply
        // by moving to the target.
        for (uint16_t i = 1; i < segments; i++) {
   13c98:	bf ef       	ldi	r27, 0xFF	; 255
   13c9a:	2b 1a       	sub	r2, r27
   13c9c:	3b 0a       	sbc	r3, r27
   13c9e:	a4 96       	adiw	r28, 0x24	; 36
   13ca0:	ee ad       	ldd	r30, Y+62	; 0x3e
   13ca2:	ff ad       	ldd	r31, Y+63	; 0x3f
   13ca4:	a4 97       	sbiw	r28, 0x24	; 36
   13ca6:	e2 15       	cp	r30, r2
   13ca8:	f3 05       	cpc	r31, r3
   13caa:	09 f0       	breq	.+2      	; 0x13cae <process_commands() [clone .part.46]+0x129a>
   13cac:	f4 ce       	rjmp	.-536    	; 0x13a96 <process_commands() [clone .part.46]+0x1082>
            if (planner_aborted)
                return;
        }
    }
    // Clamp to the target position.
    clamp_to_software_endstops(target);
   13cae:	84 e7       	ldi	r24, 0x74	; 116
   13cb0:	96 e0       	ldi	r25, 0x06	; 6
   13cb2:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
    // Ensure last segment arrives at target location.
    plan_buffer_line(target[X_AXIS], target[Y_AXIS], target[Z_AXIS], target[E_AXIS], feed_rate, position, 0);
   13cb6:	e0 90 7c 06 	lds	r14, 0x067C	; 0x80067c <destination+0x8>
   13cba:	f0 90 7d 06 	lds	r15, 0x067D	; 0x80067d <destination+0x9>
   13cbe:	00 91 7e 06 	lds	r16, 0x067E	; 0x80067e <destination+0xa>
   13cc2:	10 91 7f 06 	lds	r17, 0x067F	; 0x80067f <destination+0xb>
   13cc6:	20 91 78 06 	lds	r18, 0x0678	; 0x800678 <destination+0x4>
   13cca:	30 91 79 06 	lds	r19, 0x0679	; 0x800679 <destination+0x5>
   13cce:	40 91 7a 06 	lds	r20, 0x067A	; 0x80067a <destination+0x6>
   13cd2:	50 91 7b 06 	lds	r21, 0x067B	; 0x80067b <destination+0x7>
   13cd6:	60 91 74 06 	lds	r22, 0x0674	; 0x800674 <destination>
   13cda:	70 91 75 06 	lds	r23, 0x0675	; 0x800675 <destination+0x1>
   13cde:	80 91 76 06 	lds	r24, 0x0676	; 0x800676 <destination+0x2>
   13ce2:	90 91 77 06 	lds	r25, 0x0677	; 0x800677 <destination+0x3>
   13ce6:	1f 92       	push	r1
   13ce8:	1f 92       	push	r1
   13cea:	e2 e9       	ldi	r30, 0x92	; 146
   13cec:	f6 e0       	ldi	r31, 0x06	; 6
   13cee:	ff 93       	push	r31
   13cf0:	ef 93       	push	r30
   13cf2:	aa 96       	adiw	r28, 0x2a	; 42
   13cf4:	8c ac       	ldd	r8, Y+60	; 0x3c
   13cf6:	9d ac       	ldd	r9, Y+61	; 0x3d
   13cf8:	ae ac       	ldd	r10, Y+62	; 0x3e
   13cfa:	bf ac       	ldd	r11, Y+63	; 0x3f
   13cfc:	aa 97       	sbiw	r28, 0x2a	; 42
   13cfe:	a0 e8       	ldi	r26, 0x80	; 128
   13d00:	ca 2e       	mov	r12, r26
   13d02:	a6 e0       	ldi	r26, 0x06	; 6
   13d04:	da 2e       	mov	r13, r26
   13d06:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
   13d0a:	0f 90       	pop	r0
   13d0c:	0f 90       	pop	r0
   13d0e:	0f 90       	pop	r0
   13d10:	0f 90       	pop	r0
    // As far as the parser is concerned, the position is now == target. In reality the
    // motion control system might still be processing the action and the real tool position
    // in any intermediate location.
    set_current_to_destination();
   13d12:	0e 94 86 5a 	call	0xb50c	; 0xb50c <set_current_to_destination()>
    previous_millis_cmd.start();
   13d16:	86 e8       	ldi	r24, 0x86	; 134
   13d18:	93 e0       	ldi	r25, 0x03	; 3
   13d1a:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
   13d1e:	7b cb       	rjmp	.-2314   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
        get_coordinates(); // For X Y Z E F
#ifdef SF_ARC_FIX
        relative_mode=relative_mode_backup;
#endif

        offset[0] = code_seen('I') ? code_value() : 0.f;
   13d20:	60 e0       	ldi	r22, 0x00	; 0
   13d22:	70 e0       	ldi	r23, 0x00	; 0
   13d24:	cb 01       	movw	r24, r22
   13d26:	fe cb       	rjmp	.-2052   	; 0x13524 <process_commands() [clone .part.46]+0xb10>
    float center_axis_y = start_position[Y_AXIS] - r_axis_y;
    float travel_z = target[Z_AXIS] - start_position[Z_AXIS];
    float rt_x = target[X_AXIS] - center_axis_x;
    float rt_y = target[Y_AXIS] - center_axis_y;
    // 20200419 - Add a variable that will be used to hold the arc segment length
    float mm_per_arc_segment = cs.mm_per_arc_segment;
   13d28:	a3 2c       	mov	r10, r3
   13d2a:	b2 2c       	mov	r11, r2
   13d2c:	6f 96       	adiw	r28, 0x1f	; 31
   13d2e:	0f ad       	ldd	r16, Y+63	; 0x3f
   13d30:	6f 97       	sbiw	r28, 0x1f	; 31
   13d32:	a3 96       	adiw	r28, 0x23	; 35
   13d34:	1f ad       	ldd	r17, Y+63	; 0x3f
   13d36:	a3 97       	sbiw	r28, 0x23	; 35
   13d38:	69 cd       	rjmp	.-1326   	; 0x1380c <process_commands() [clone .part.46]+0xdf8>
            sin_T = theta_per_segment - sq_theta_per_segment * theta_per_segment / 6,
            cos_T = 1 - 0.5f * sq_theta_per_segment;
        // Loop through all but one of the segments.  The last one can be done simply
        // by moving to the target.
        for (uint16_t i = 1; i < segments; i++) {
            if (n_arc_correction-- == 0) {
   13d3a:	6f 96       	adiw	r28, 0x1f	; 31
   13d3c:	4f ad       	ldd	r20, Y+63	; 0x3f
   13d3e:	6f 97       	sbiw	r28, 0x1f	; 31
   13d40:	41 50       	subi	r20, 0x01	; 1
   13d42:	6f 96       	adiw	r28, 0x1f	; 31
   13d44:	4f af       	std	Y+63, r20	; 0x3f
   13d46:	6f 97       	sbiw	r28, 0x1f	; 31
                // reset n_arc_correction
                n_arc_correction = cs.n_arc_correction;
            }
            else {
                // Calculate X and Y using the small angle approximation
                const float r_axisi = r_axis_x * sin_T + r_axis_y * cos_T;
   13d48:	ae 96       	adiw	r28, 0x2e	; 46
   13d4a:	2c ad       	ldd	r18, Y+60	; 0x3c
   13d4c:	3d ad       	ldd	r19, Y+61	; 0x3d
   13d4e:	4e ad       	ldd	r20, Y+62	; 0x3e
   13d50:	5f ad       	ldd	r21, Y+63	; 0x3f
   13d52:	ae 97       	sbiw	r28, 0x2e	; 46
   13d54:	6a 96       	adiw	r28, 0x1a	; 26
   13d56:	6c ad       	ldd	r22, Y+60	; 0x3c
   13d58:	7d ad       	ldd	r23, Y+61	; 0x3d
   13d5a:	8e ad       	ldd	r24, Y+62	; 0x3e
   13d5c:	9f ad       	ldd	r25, Y+63	; 0x3f
   13d5e:	6a 97       	sbiw	r28, 0x1a	; 26
   13d60:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13d64:	6b 01       	movw	r12, r22
   13d66:	7c 01       	movw	r14, r24
   13d68:	e6 96       	adiw	r28, 0x36	; 54
   13d6a:	2c ad       	ldd	r18, Y+60	; 0x3c
   13d6c:	3d ad       	ldd	r19, Y+61	; 0x3d
   13d6e:	4e ad       	ldd	r20, Y+62	; 0x3e
   13d70:	5f ad       	ldd	r21, Y+63	; 0x3f
   13d72:	e6 97       	sbiw	r28, 0x36	; 54
   13d74:	6e 96       	adiw	r28, 0x1e	; 30
   13d76:	6c ad       	ldd	r22, Y+60	; 0x3c
   13d78:	7d ad       	ldd	r23, Y+61	; 0x3d
   13d7a:	8e ad       	ldd	r24, Y+62	; 0x3e
   13d7c:	9f ad       	ldd	r25, Y+63	; 0x3f
   13d7e:	6e 97       	sbiw	r28, 0x1e	; 30
   13d80:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13d84:	9b 01       	movw	r18, r22
   13d86:	ac 01       	movw	r20, r24
   13d88:	c7 01       	movw	r24, r14
   13d8a:	b6 01       	movw	r22, r12
   13d8c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   13d90:	7b 01       	movw	r14, r22
   13d92:	8c 01       	movw	r16, r24
                r_axis_x = r_axis_x * cos_T - r_axis_y * sin_T;
   13d94:	e6 96       	adiw	r28, 0x36	; 54
   13d96:	2c ad       	ldd	r18, Y+60	; 0x3c
   13d98:	3d ad       	ldd	r19, Y+61	; 0x3d
   13d9a:	4e ad       	ldd	r20, Y+62	; 0x3e
   13d9c:	5f ad       	ldd	r21, Y+63	; 0x3f
   13d9e:	e6 97       	sbiw	r28, 0x36	; 54
   13da0:	6a 96       	adiw	r28, 0x1a	; 26
   13da2:	6c ad       	ldd	r22, Y+60	; 0x3c
   13da4:	7d ad       	ldd	r23, Y+61	; 0x3d
   13da6:	8e ad       	ldd	r24, Y+62	; 0x3e
   13da8:	9f ad       	ldd	r25, Y+63	; 0x3f
   13daa:	6a 97       	sbiw	r28, 0x1a	; 26
   13dac:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13db0:	4b 01       	movw	r8, r22
   13db2:	5c 01       	movw	r10, r24
   13db4:	ae 96       	adiw	r28, 0x2e	; 46
   13db6:	2c ad       	ldd	r18, Y+60	; 0x3c
   13db8:	3d ad       	ldd	r19, Y+61	; 0x3d
   13dba:	4e ad       	ldd	r20, Y+62	; 0x3e
   13dbc:	5f ad       	ldd	r21, Y+63	; 0x3f
   13dbe:	ae 97       	sbiw	r28, 0x2e	; 46
   13dc0:	6e 96       	adiw	r28, 0x1e	; 30
   13dc2:	6c ad       	ldd	r22, Y+60	; 0x3c
   13dc4:	7d ad       	ldd	r23, Y+61	; 0x3d
   13dc6:	8e ad       	ldd	r24, Y+62	; 0x3e
   13dc8:	9f ad       	ldd	r25, Y+63	; 0x3f
   13dca:	6e 97       	sbiw	r28, 0x1e	; 30
   13dcc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13dd0:	9b 01       	movw	r18, r22
   13dd2:	ac 01       	movw	r20, r24
   13dd4:	c5 01       	movw	r24, r10
   13dd6:	b4 01       	movw	r22, r8
   13dd8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   13ddc:	6a 96       	adiw	r28, 0x1a	; 26
   13dde:	6c af       	std	Y+60, r22	; 0x3c
   13de0:	7d af       	std	Y+61, r23	; 0x3d
   13de2:	8e af       	std	Y+62, r24	; 0x3e
   13de4:	9f af       	std	Y+63, r25	; 0x3f
   13de6:	6a 97       	sbiw	r28, 0x1a	; 26
                r_axis_y = r_axisi;
   13de8:	c7 01       	movw	r24, r14
   13dea:	d8 01       	movw	r26, r16
   13dec:	6e 96       	adiw	r28, 0x1e	; 30
   13dee:	8c af       	std	Y+60, r24	; 0x3c
   13df0:	9d af       	std	Y+61, r25	; 0x3d
   13df2:	ae af       	std	Y+62, r26	; 0x3e
   13df4:	bf af       	std	Y+63, r27	; 0x3f
   13df6:	6e 97       	sbiw	r28, 0x1e	; 30
   13df8:	d7 ce       	rjmp	.-594    	; 0x13ba8 <process_commands() [clone .part.46]+0x1194>
      - `S` - Time to wait, in seconds

    */
    case 4:
      codenum = 0;
      if(code_seen('P')) codenum = code_value(); // milliseconds to wait
   13dfa:	80 e5       	ldi	r24, 0x50	; 80
   13dfc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
      - `P` - Time to wait, in milliseconds
      - `S` - Time to wait, in seconds

    */
    case 4:
      codenum = 0;
   13e00:	c1 2c       	mov	r12, r1
   13e02:	d1 2c       	mov	r13, r1
   13e04:	76 01       	movw	r14, r12
      if(code_seen('P')) codenum = code_value(); // milliseconds to wait
   13e06:	88 23       	and	r24, r24
   13e08:	31 f0       	breq	.+12     	; 0x13e16 <process_commands() [clone .part.46]+0x1402>
   13e0a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   13e0e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   13e12:	6b 01       	movw	r12, r22
   13e14:	7c 01       	movw	r14, r24
      if(code_seen('S')) codenum = code_value() * 1000; // seconds to wait
   13e16:	83 e5       	ldi	r24, 0x53	; 83
   13e18:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   13e1c:	88 23       	and	r24, r24
   13e1e:	61 f0       	breq	.+24     	; 0x13e38 <process_commands() [clone .part.46]+0x1424>
   13e20:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   13e24:	20 e0       	ldi	r18, 0x00	; 0
   13e26:	30 e0       	ldi	r19, 0x00	; 0
   13e28:	4a e7       	ldi	r20, 0x7A	; 122
   13e2a:	54 e4       	ldi	r21, 0x44	; 68
   13e2c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   13e30:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   13e34:	6b 01       	movw	r12, r22
   13e36:	7c 01       	movw	r14, r24
      if(codenum != 0)
   13e38:	c1 14       	cp	r12, r1
   13e3a:	d1 04       	cpc	r13, r1
   13e3c:	e1 04       	cpc	r14, r1
   13e3e:	f1 04       	cpc	r15, r1
   13e40:	41 f0       	breq	.+16     	; 0x13e52 <process_commands() [clone .part.46]+0x143e>
      {
        if(custom_message_type != CustomMsg::M117)
   13e42:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   13e46:	87 30       	cpi	r24, 0x07	; 7
   13e48:	21 f0       	breq	.+8      	; 0x13e52 <process_commands() [clone .part.46]+0x143e>
        {
          LCD_MESSAGERPGM(_n("Sleep..."));////MSG_DWELL
   13e4a:	8b e7       	ldi	r24, 0x7B	; 123
   13e4c:	99 e6       	ldi	r25, 0x69	; 105
   13e4e:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        }
      }
      st_synchronize();
   13e52:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
      codenum += _millis();  // keep track of when we started waiting
   13e56:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   13e5a:	c6 0e       	add	r12, r22
   13e5c:	d7 1e       	adc	r13, r23
   13e5e:	e8 1e       	adc	r14, r24
   13e60:	f9 1e       	adc	r15, r25
      previous_millis_cmd.start();
   13e62:	86 e8       	ldi	r24, 0x86	; 134
   13e64:	93 e0       	ldi	r25, 0x03	; 3
   13e66:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
      while(_millis() < codenum) {
   13e6a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   13e6e:	6c 15       	cp	r22, r12
   13e70:	7d 05       	cpc	r23, r13
   13e72:	8e 05       	cpc	r24, r14
   13e74:	9f 05       	cpc	r25, r15
   13e76:	08 f0       	brcs	.+2      	; 0x13e7a <process_commands() [clone .part.46]+0x1466>
   13e78:	ce ca       	rjmp	.-2660   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
        manage_heater();
   13e7a:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity();
   13e7e:	80 e0       	ldi	r24, 0x00	; 0
   13e80:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
        lcd_update(0);
   13e84:	80 e0       	ldi	r24, 0x00	; 0
   13e86:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   13e8a:	ef cf       	rjmp	.-34     	; 0x13e6a <process_commands() [clone .part.46]+0x1456>
    case 10:
       #if EXTRUDERS > 1
        retracted_swap[active_extruder]=(code_seen('S') && code_value_long() == 1); // checks for swap retract argument
        retract(true,retracted_swap[active_extruder]);
       #else
        retract(true);
   13e8c:	81 e0       	ldi	r24, 0x01	; 1
    */
    case 11:
       #if EXTRUDERS > 1
        retract(false,retracted_swap[active_extruder]);
       #else
        retract(false);
   13e8e:	0f 94 67 8a 	call	0x314ce	; 0x314ce <retract(bool, bool) [clone .constprop.106]>
   13e92:	c1 ca       	rjmp	.-2686   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   13e94:	80 e0       	ldi	r24, 0x00	; 0
   13e96:	fb cf       	rjmp	.-10     	; 0x13e8e <process_commands() [clone .part.46]+0x147a>
     - `C` - Calibrate X and Y origin (home) - Only on MK3/s
    */
    case 28:
    {
      long home_x_value = 0;
      long home_y_value = 0;
   13e98:	6e 96       	adiw	r28, 0x1e	; 30
   13e9a:	1c ae       	std	Y+60, r1	; 0x3c
   13e9c:	1d ae       	std	Y+61, r1	; 0x3d
   13e9e:	1e ae       	std	Y+62, r1	; 0x3e
   13ea0:	1f ae       	std	Y+63, r1	; 0x3f
   13ea2:	6e 97       	sbiw	r28, 0x1e	; 30
   13ea4:	35 ca       	rjmp	.-2966   	; 0x13310 <process_commands() [clone .part.46]+0x8fc>
    Sensor must be over the bed.
    The maximum travel distance before an error is triggered is 10mm.
    */
    case 30:
        {
            st_synchronize();
   13ea6:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            homing_flag = true;
   13eaa:	81 e0       	ldi	r24, 0x01	; 1
   13eac:	80 93 a7 0d 	sts	0x0DA7, r24	; 0x800da7 <homing_flag>

            // TODO: make sure the bed_level_rotation_matrix is identity or the planner will get set incorectly
            int l_feedmultiply = setup_for_endstop_move();
   13eb0:	0e 94 6f 66 	call	0xccde	; 0xccde <setup_for_endstop_move(bool) [clone .lto_priv.392]>
   13eb4:	8c 01       	movw	r16, r24

            feedrate = homing_feedrate[Z_AXIS];
   13eb6:	80 e0       	ldi	r24, 0x00	; 0
   13eb8:	90 e0       	ldi	r25, 0x00	; 0
   13eba:	a8 e4       	ldi	r26, 0x48	; 72
   13ebc:	b4 e4       	ldi	r27, 0x44	; 68
   13ebe:	80 93 b8 02 	sts	0x02B8, r24	; 0x8002b8 <feedrate>
   13ec2:	90 93 b9 02 	sts	0x02B9, r25	; 0x8002b9 <feedrate+0x1>
   13ec6:	a0 93 ba 02 	sts	0x02BA, r26	; 0x8002ba <feedrate+0x2>
   13eca:	b0 93 bb 02 	sts	0x02BB, r27	; 0x8002bb <feedrate+0x3>

            find_bed_induction_sensor_point_z(-10.f, 3);
   13ece:	43 e0       	ldi	r20, 0x03	; 3
   13ed0:	60 e0       	ldi	r22, 0x00	; 0
   13ed2:	70 e0       	ldi	r23, 0x00	; 0
   13ed4:	80 e2       	ldi	r24, 0x20	; 32
   13ed6:	91 ec       	ldi	r25, 0xC1	; 193
   13ed8:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>

			printf_P(_N("%S X: %.5f Y: %.5f Z: %.5f\n"), _T(MSG_BED), _x, _y, _z);
   13edc:	70 90 9a 06 	lds	r7, 0x069A	; 0x80069a <current_position+0x8>
   13ee0:	60 90 9b 06 	lds	r6, 0x069B	; 0x80069b <current_position+0x9>
   13ee4:	50 90 9c 06 	lds	r5, 0x069C	; 0x80069c <current_position+0xa>
   13ee8:	40 90 9d 06 	lds	r4, 0x069D	; 0x80069d <current_position+0xb>
   13eec:	b0 90 96 06 	lds	r11, 0x0696	; 0x800696 <current_position+0x4>
   13ef0:	a0 90 97 06 	lds	r10, 0x0697	; 0x800697 <current_position+0x5>
   13ef4:	90 90 98 06 	lds	r9, 0x0698	; 0x800698 <current_position+0x6>
   13ef8:	80 90 99 06 	lds	r8, 0x0699	; 0x800699 <current_position+0x7>
   13efc:	f0 90 92 06 	lds	r15, 0x0692	; 0x800692 <current_position>
   13f00:	e0 90 93 06 	lds	r14, 0x0693	; 0x800693 <current_position+0x1>
   13f04:	d0 90 94 06 	lds	r13, 0x0694	; 0x800694 <current_position+0x2>
   13f08:	c0 90 95 06 	lds	r12, 0x0695	; 0x800695 <current_position+0x3>
   13f0c:	89 e9       	ldi	r24, 0x99	; 153
   13f0e:	93 e4       	ldi	r25, 0x43	; 67
   13f10:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   13f14:	4f 92       	push	r4
   13f16:	5f 92       	push	r5
   13f18:	6f 92       	push	r6
   13f1a:	7f 92       	push	r7
   13f1c:	8f 92       	push	r8
   13f1e:	9f 92       	push	r9
   13f20:	af 92       	push	r10
   13f22:	bf 92       	push	r11
   13f24:	cf 92       	push	r12
   13f26:	df 92       	push	r13
   13f28:	ef 92       	push	r14
   13f2a:	ff 92       	push	r15
   13f2c:	9f 93       	push	r25
   13f2e:	8f 93       	push	r24
   13f30:	8f e5       	ldi	r24, 0x5F	; 95
   13f32:	99 e6       	ldi	r25, 0x69	; 105
   13f34:	9f 93       	push	r25
   13f36:	8f 93       	push	r24
   13f38:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

            clean_up_after_endstop_move(l_feedmultiply);
   13f3c:	c8 01       	movw	r24, r16
   13f3e:	0e 94 55 66 	call	0xccaa	; 0xccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>
            homing_flag = false;
   13f42:	10 92 a7 0d 	sts	0x0DA7, r1	; 0x800da7 <homing_flag>
   13f46:	0f b6       	in	r0, 0x3f	; 63
   13f48:	f8 94       	cli
   13f4a:	de bf       	out	0x3e, r29	; 62
   13f4c:	0f be       	out	0x3f, r0	; 63
   13f4e:	cd bf       	out	0x3d, r28	; 61
   13f50:	62 ca       	rjmp	.-2876   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  ```
  */
  case 76:
	{
#ifdef PINDA_THERMISTOR
        if (!has_temperature_compensation())
   13f52:	20 e0       	ldi	r18, 0x00	; 0
   13f54:	30 e0       	ldi	r19, 0x00	; 0
   13f56:	40 e2       	ldi	r20, 0x20	; 32
   13f58:	51 e4       	ldi	r21, 0x41	; 65
   13f5a:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   13f5e:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   13f62:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   13f66:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   13f6a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   13f6e:	87 ff       	sbrs	r24, 7
   13f70:	05 c0       	rjmp	.+10     	; 0x13f7c <process_commands() [clone .part.46]+0x1568>
        {
            SERIAL_ECHOLNPGM("No PINDA thermistor");
   13f72:	8f e2       	ldi	r24, 0x2F	; 47
   13f74:	97 e8       	ldi	r25, 0x87	; 135
   13f76:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   13f7a:	4d ca       	rjmp	.-2918   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
            break;
        }

        if (!calibration_status_get(CALIBRATION_STATUS_XYZ)) {
   13f7c:	82 e0       	ldi	r24, 0x02	; 2
   13f7e:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   13f82:	81 11       	cpse	r24, r1
   13f84:	07 c0       	rjmp	.+14     	; 0x13f94 <process_commands() [clone .part.46]+0x1580>
            //we need to know accurate position of first calibration point
            //if xyz calibration was not performed yet, interrupt temperature calibration and inform user that xyz cal. is needed
            lcd_show_fullscreen_message_and_wait_P(_T(MSG_RUN_XYZ));
   13f86:	8e e0       	ldi	r24, 0x0E	; 14
   13f88:	9a e3       	ldi	r25, 0x3A	; 58
   13f8a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   13f8e:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   13f92:	41 ca       	rjmp	.-2942   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
            break;
        }

        if (!(axis_known_position[X_AXIS] && axis_known_position[Y_AXIS] && axis_known_position[Z_AXIS]))
   13f94:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
   13f98:	88 23       	and	r24, r24
   13f9a:	41 f0       	breq	.+16     	; 0x13fac <process_commands() [clone .part.46]+0x1598>
   13f9c:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
   13fa0:	88 23       	and	r24, r24
   13fa2:	21 f0       	breq	.+8      	; 0x13fac <process_commands() [clone .part.46]+0x1598>
   13fa4:	10 91 91 06 	lds	r17, 0x0691	; 0x800691 <axis_known_position+0x2>
   13fa8:	11 11       	cpse	r17, r1
   13faa:	08 c0       	rjmp	.+16     	; 0x13fbc <process_commands() [clone .part.46]+0x15a8>
   13fac:	81 e0       	ldi	r24, 0x01	; 1
   13fae:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
        {
            // We don't know where we are! HOME!
            // Push the commands to the front of the message queue in the reverse order!
            // There shall be always enough space reserved for these commands.
            repeatcommand_front(); // repeat G76 with all its parameters
            enquecommand_front_P(G28W);
   13fb2:	80 e4       	ldi	r24, 0x40	; 64
   13fb4:	9b e6       	ldi	r25, 0x6B	; 107
   13fb6:	0f 94 3f 76 	call	0x2ec7e	; 0x2ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>
   13fba:	2d ca       	rjmp	.-2982   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
            break;
        }
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_TEMP_CAL_WARNING));
   13fbc:	85 ec       	ldi	r24, 0xC5	; 197
   13fbe:	99 e3       	ldi	r25, 0x39	; 57
   13fc0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   13fc4:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        uint8_t result = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false);
   13fc8:	83 e6       	ldi	r24, 0x63	; 99
   13fca:	9e e3       	ldi	r25, 0x3E	; 62
   13fcc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   13fd0:	41 e0       	ldi	r20, 0x01	; 1
   13fd2:	60 e0       	ldi	r22, 0x00	; 0
   13fd4:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>

        if (result == LCD_LEFT_BUTTON_CHOICE)
   13fd8:	81 11       	cpse	r24, r1
   13fda:	61 c0       	rjmp	.+194    	; 0x1409e <process_commands() [clone .part.46]+0x168a>
        {
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   13fdc:	80 e0       	ldi	r24, 0x00	; 0
   13fde:	90 e0       	ldi	r25, 0x00	; 0
   13fe0:	a0 ea       	ldi	r26, 0xA0	; 160
   13fe2:	b0 e4       	ldi	r27, 0x40	; 64
   13fe4:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   13fe8:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   13fec:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   13ff0:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(3000 / 60);
   13ff4:	60 e0       	ldi	r22, 0x00	; 0
   13ff6:	70 e0       	ldi	r23, 0x00	; 0
   13ff8:	88 e4       	ldi	r24, 0x48	; 72
   13ffa:	92 e4       	ldi	r25, 0x42	; 66
   13ffc:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            current_position[Z_AXIS] = 50;
   14000:	80 e0       	ldi	r24, 0x00	; 0
   14002:	90 e0       	ldi	r25, 0x00	; 0
   14004:	a8 e4       	ldi	r26, 0x48	; 72
   14006:	b2 e4       	ldi	r27, 0x42	; 66
   14008:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   1400c:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   14010:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   14014:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            current_position[Y_AXIS] = 180;
   14018:	80 e0       	ldi	r24, 0x00	; 0
   1401a:	90 e0       	ldi	r25, 0x00	; 0
   1401c:	a4 e3       	ldi	r26, 0x34	; 52
   1401e:	b3 e4       	ldi	r27, 0x43	; 67
   14020:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   14024:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   14028:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   1402c:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
            plan_buffer_line_curposXYZE(3000 / 60);
   14030:	60 e0       	ldi	r22, 0x00	; 0
   14032:	70 e0       	ldi	r23, 0x00	; 0
   14034:	88 e4       	ldi	r24, 0x48	; 72
   14036:	92 e4       	ldi	r25, 0x42	; 66
   14038:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   1403c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            lcd_show_fullscreen_message_and_wait_P(_T(MSG_REMOVE_STEEL_SHEET));
   14040:	89 e3       	ldi	r24, 0x39	; 57
   14042:	9e e3       	ldi	r25, 0x3E	; 62
   14044:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   14048:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
            current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4 + 1);
   1404c:	e1 e0       	ldi	r30, 0x01	; 1
   1404e:	f5 ea       	ldi	r31, 0xA5	; 165
   14050:	85 91       	lpm	r24, Z+
   14052:	95 91       	lpm	r25, Z+
   14054:	a5 91       	lpm	r26, Z+
   14056:	b4 91       	lpm	r27, Z
   14058:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   1405c:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   14060:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   14064:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
            current_position[X_AXIS] = pgm_read_float(bed_ref_points_4);
   14068:	ed ef       	ldi	r30, 0xFD	; 253
   1406a:	f4 ea       	ldi	r31, 0xA4	; 164
   1406c:	85 91       	lpm	r24, Z+
   1406e:	95 91       	lpm	r25, Z+
   14070:	a5 91       	lpm	r26, Z+
   14072:	b4 91       	lpm	r27, Z
   14074:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   14078:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   1407c:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   14080:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
            plan_buffer_line_curposXYZE(3000 / 60);
   14084:	60 e0       	ldi	r22, 0x00	; 0
   14086:	70 e0       	ldi	r23, 0x00	; 0
   14088:	88 e4       	ldi	r24, 0x48	; 72
   1408a:	92 e4       	ldi	r25, 0x42	; 66
   1408c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   14090:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            gcode_G28(false, false, true);
   14094:	41 e0       	ldi	r20, 0x01	; 1
   14096:	60 e0       	ldi	r22, 0x00	; 0
   14098:	80 e0       	ldi	r24, 0x00	; 0
   1409a:	0e 94 8c 7e 	call	0xfd18	; 0xfd18 <gcode_G28(bool, bool, bool)>

        }
        if ((current_temperature_pinda > 35) && (farm_mode == false)) {
   1409e:	20 e0       	ldi	r18, 0x00	; 0
   140a0:	30 e0       	ldi	r19, 0x00	; 0
   140a2:	4c e0       	ldi	r20, 0x0C	; 12
   140a4:	52 e4       	ldi	r21, 0x42	; 66
   140a6:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   140aa:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   140ae:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   140b2:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   140b6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   140ba:	18 16       	cp	r1, r24
   140bc:	0c f0       	brlt	.+2      	; 0x140c0 <process_commands() [clone .part.46]+0x16ac>
   140be:	73 c0       	rjmp	.+230    	; 0x141a6 <process_commands() [clone .part.46]+0x1792>
            //waiting for PIDNA probe to cool down in case that we are not in farm mode
            current_position[Z_AXIS] = 100;
   140c0:	80 e0       	ldi	r24, 0x00	; 0
   140c2:	90 e0       	ldi	r25, 0x00	; 0
   140c4:	a8 ec       	ldi	r26, 0xC8	; 200
   140c6:	b2 e4       	ldi	r27, 0x42	; 66
   140c8:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   140cc:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   140d0:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   140d4:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(3000 / 60);
   140d8:	60 e0       	ldi	r22, 0x00	; 0
   140da:	70 e0       	ldi	r23, 0x00	; 0
   140dc:	88 e4       	ldi	r24, 0x48	; 72
   140de:	92 e4       	ldi	r25, 0x42	; 66
   140e0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

}

#ifdef PINDA_THERMISTOR
bool lcd_wait_for_pinda(float temp) {
	disable_heater();
   140e4:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
	LongTimer pinda_timeout;
   140e8:	19 82       	std	Y+1, r1	; 0x01
   140ea:	1a 82       	std	Y+2, r1	; 0x02
   140ec:	1b 82       	std	Y+3, r1	; 0x03
   140ee:	1c 82       	std	Y+4, r1	; 0x04
   140f0:	1d 82       	std	Y+5, r1	; 0x05
	pinda_timeout.start();
   140f2:	ce 01       	movw	r24, r28
   140f4:	01 96       	adiw	r24, 0x01	; 1
   140f6:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>

	while (current_temperature_pinda > temp){
		lcd_display_message_fullscreen_P(_T(MSG_WAITING_TEMP_PINDA));

		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
		lcd_printf_P(PSTR("%3d/%3d"), (int16_t)current_temperature_pinda, (int16_t) temp);
   140fa:	03 e2       	ldi	r16, 0x23	; 35
   140fc:	ef e5       	ldi	r30, 0x5F	; 95
   140fe:	ee 2e       	mov	r14, r30
   14100:	e4 e8       	ldi	r30, 0x84	; 132
   14102:	fe 2e       	mov	r15, r30
	disable_heater();
	LongTimer pinda_timeout;
	pinda_timeout.start();
	bool target_temp_reached = true;

	while (current_temperature_pinda > temp){
   14104:	20 e0       	ldi	r18, 0x00	; 0
   14106:	30 e0       	ldi	r19, 0x00	; 0
   14108:	4c e0       	ldi	r20, 0x0C	; 12
   1410a:	52 e4       	ldi	r21, 0x42	; 66
   1410c:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   14110:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   14114:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   14118:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   1411c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   14120:	18 16       	cp	r1, r24
   14122:	c4 f5       	brge	.+112    	; 0x14194 <process_commands() [clone .part.46]+0x1780>
		lcd_display_message_fullscreen_P(_T(MSG_WAITING_TEMP_PINDA));
   14124:	87 e7       	ldi	r24, 0x77	; 119
   14126:	99 e3       	ldi	r25, 0x39	; 57
   14128:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1412c:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>

		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
   14130:	42 e8       	ldi	r20, 0x82	; 130
   14132:	64 e0       	ldi	r22, 0x04	; 4
   14134:	80 e0       	ldi	r24, 0x00	; 0
   14136:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
		lcd_printf_P(PSTR("%3d/%3d"), (int16_t)current_temperature_pinda, (int16_t) temp);
   1413a:	1f 92       	push	r1
   1413c:	0f 93       	push	r16
   1413e:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   14142:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   14146:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   1414a:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   1414e:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   14152:	7f 93       	push	r23
   14154:	6f 93       	push	r22
   14156:	ff 92       	push	r15
   14158:	ef 92       	push	r14
   1415a:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		lcd_putc(LCD_STR_DEGREE[0]);
   1415e:	81 e8       	ldi	r24, 0x81	; 129
   14160:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		delay_keep_alive(1000);
   14164:	88 ee       	ldi	r24, 0xE8	; 232
   14166:	93 e0       	ldi	r25, 0x03	; 3
   14168:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
		serialecho_temperatures();
   1416c:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
		if (pinda_timeout.expired(8 * 60 * 1000ul)) { //PINDA cooling from 60 C to 35 C takes about 7 minutes
   14170:	40 e0       	ldi	r20, 0x00	; 0
   14172:	53 e5       	ldi	r21, 0x53	; 83
   14174:	67 e0       	ldi	r22, 0x07	; 7
   14176:	70 e0       	ldi	r23, 0x00	; 0
   14178:	ce 01       	movw	r24, r28
   1417a:	01 96       	adiw	r24, 0x01	; 1
   1417c:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   14180:	0f 90       	pop	r0
   14182:	0f 90       	pop	r0
   14184:	0f 90       	pop	r0
   14186:	0f 90       	pop	r0
   14188:	0f 90       	pop	r0
   1418a:	0f 90       	pop	r0
   1418c:	88 23       	and	r24, r24
   1418e:	09 f4       	brne	.+2      	; 0x14192 <process_commands() [clone .part.46]+0x177e>
   14190:	b9 cf       	rjmp	.-142    	; 0x14104 <process_commands() [clone .part.46]+0x16f0>
			target_temp_reached = false;
   14192:	10 e0       	ldi	r17, 0x00	; 0
			break;
		}
	}
	lcd_update_enable(true);
   14194:	81 e0       	ldi	r24, 0x01	; 1
   14196:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
            if (lcd_wait_for_pinda(35) == false) { //waiting for PINDA probe to cool, if this takes more then time expected, temp. cal. fails
   1419a:	11 11       	cpse	r17, r1
   1419c:	04 c0       	rjmp	.+8      	; 0x141a6 <process_commands() [clone .part.46]+0x1792>
                lcd_temp_cal_show_result(false);
   1419e:	80 e0       	ldi	r24, 0x00	; 0
   141a0:	0f 94 48 21 	call	0x24290	; 0x24290 <lcd_temp_cal_show_result(bool)>
   141a4:	38 c9       	rjmp	.-3472   	; 0x13416 <process_commands() [clone .part.46]+0xa02>
                break;
            }
        }

        st_synchronize();
   141a6:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        homing_flag = true; // keep homing on to avoid babystepping while the LCD is enabled
   141aa:	81 e0       	ldi	r24, 0x01	; 1
   141ac:	80 93 a7 0d 	sts	0x0DA7, r24	; 0x800da7 <homing_flag>

        lcd_update_enable(true);
   141b0:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        SERIAL_ECHOLNPGM("PINDA probe calibration start");
   141b4:	81 e1       	ldi	r24, 0x11	; 17
   141b6:	97 e8       	ldi	r25, 0x87	; 135
   141b8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

        float zero_z;
        int z_shift = 0; //unit: steps
        float start_temp = 5 * (int)(current_temperature_pinda / 5);
   141bc:	80 90 99 03 	lds	r8, 0x0399	; 0x800399 <current_temperature_pinda>
   141c0:	90 90 9a 03 	lds	r9, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   141c4:	a0 90 9b 03 	lds	r10, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   141c8:	b0 90 9c 03 	lds	r11, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   141cc:	20 e0       	ldi	r18, 0x00	; 0
   141ce:	30 e0       	ldi	r19, 0x00	; 0
   141d0:	40 ea       	ldi	r20, 0xA0	; 160
   141d2:	50 e4       	ldi	r21, 0x40	; 64
   141d4:	c5 01       	movw	r24, r10
   141d6:	b4 01       	movw	r22, r8
   141d8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   141dc:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   141e0:	25 e0       	ldi	r18, 0x05	; 5
   141e2:	26 9f       	mul	r18, r22
   141e4:	a0 01       	movw	r20, r0
   141e6:	27 9f       	mul	r18, r23
   141e8:	50 0d       	add	r21, r0
   141ea:	11 24       	eor	r1, r1
   141ec:	ba 01       	movw	r22, r20
   141ee:	55 0f       	add	r21, r21
   141f0:	88 0b       	sbc	r24, r24
   141f2:	99 0b       	sbc	r25, r25
   141f4:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   141f8:	1b 01       	movw	r2, r22
   141fa:	7c 01       	movw	r14, r24
        if (start_temp < 35) start_temp = 35;
   141fc:	20 e0       	ldi	r18, 0x00	; 0
   141fe:	30 e0       	ldi	r19, 0x00	; 0
   14200:	4c e0       	ldi	r20, 0x0C	; 12
   14202:	52 e4       	ldi	r21, 0x42	; 66
   14204:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   14208:	87 ff       	sbrs	r24, 7
   1420a:	06 c0       	rjmp	.+12     	; 0x14218 <process_commands() [clone .part.46]+0x1804>
   1420c:	21 2c       	mov	r2, r1
   1420e:	31 2c       	mov	r3, r1
   14210:	6c e0       	ldi	r22, 0x0C	; 12
   14212:	e6 2e       	mov	r14, r22
   14214:	72 e4       	ldi	r23, 0x42	; 66
   14216:	f7 2e       	mov	r15, r23
        if (start_temp < current_temperature_pinda) start_temp += 5;
   14218:	22 2d       	mov	r18, r2
   1421a:	33 2d       	mov	r19, r3
   1421c:	4e 2d       	mov	r20, r14
   1421e:	5f 2d       	mov	r21, r15
   14220:	c5 01       	movw	r24, r10
   14222:	b4 01       	movw	r22, r8
   14224:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   14228:	18 16       	cp	r1, r24
   1422a:	64 f4       	brge	.+24     	; 0x14244 <process_commands() [clone .part.46]+0x1830>
   1422c:	20 e0       	ldi	r18, 0x00	; 0
   1422e:	30 e0       	ldi	r19, 0x00	; 0
   14230:	40 ea       	ldi	r20, 0xA0	; 160
   14232:	50 e4       	ldi	r21, 0x40	; 64
   14234:	62 2d       	mov	r22, r2
   14236:	73 2d       	mov	r23, r3
   14238:	8e 2d       	mov	r24, r14
   1423a:	9f 2d       	mov	r25, r15
   1423c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   14240:	1b 01       	movw	r2, r22
   14242:	7c 01       	movw	r14, r24
        printf_P(_N("start temperature: %.1f\n"), start_temp);
   14244:	ff 92       	push	r15
   14246:	ef 92       	push	r14
   14248:	3f 92       	push	r3
   1424a:	2f 92       	push	r2
   1424c:	8d e3       	ldi	r24, 0x3D	; 61
   1424e:	99 e6       	ldi	r25, 0x69	; 105
   14250:	9f 93       	push	r25
   14252:	8f 93       	push	r24
   14254:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

        setTargetBed(70 + (start_temp - 30));
   14258:	20 e0       	ldi	r18, 0x00	; 0
   1425a:	30 e0       	ldi	r19, 0x00	; 0
   1425c:	40 ef       	ldi	r20, 0xF0	; 240
   1425e:	51 e4       	ldi	r21, 0x41	; 65
   14260:	62 2d       	mov	r22, r2
   14262:	73 2d       	mov	r23, r3
   14264:	8e 2d       	mov	r24, r14
   14266:	9f 2d       	mov	r25, r15
   14268:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1426c:	20 e0       	ldi	r18, 0x00	; 0
   1426e:	30 e0       	ldi	r19, 0x00	; 0
   14270:	4c e8       	ldi	r20, 0x8C	; 140
   14272:	52 e4       	ldi	r21, 0x42	; 66
   14274:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   14278:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1427c:	70 93 73 06 	sts	0x0673, r23	; 0x800673 <target_temperature_bed+0x1>
   14280:	60 93 72 06 	sts	0x0672, r22	; 0x800672 <target_temperature_bed>

        custom_message_type = CustomMsg::TempCal;
   14284:	84 e0       	ldi	r24, 0x04	; 4
   14286:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
        custom_message_state = 1;
   1428a:	81 e0       	ldi	r24, 0x01	; 1
   1428c:	80 93 f7 03 	sts	0x03F7, r24	; 0x8003f7 <custom_message_state>
        lcd_setstatuspgm(_T(MSG_PINDA_CALIBRATION));
   14290:	85 eb       	ldi	r24, 0xB5	; 181
   14292:	94 e4       	ldi	r25, 0x44	; 68
   14294:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   14298:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   1429c:	80 e0       	ldi	r24, 0x00	; 0
   1429e:	90 e0       	ldi	r25, 0x00	; 0
   142a0:	a0 ea       	ldi	r26, 0xA0	; 160
   142a2:	b0 e4       	ldi	r27, 0x40	; 64
   142a4:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   142a8:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   142ac:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   142b0:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
        plan_buffer_line_curposXYZE(3000 / 60);
   142b4:	60 e0       	ldi	r22, 0x00	; 0
   142b6:	70 e0       	ldi	r23, 0x00	; 0
   142b8:	88 e4       	ldi	r24, 0x48	; 72
   142ba:	92 e4       	ldi	r25, 0x42	; 66
   142bc:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        current_position[X_AXIS] = PINDA_PREHEAT_X;
   142c0:	80 e0       	ldi	r24, 0x00	; 0
   142c2:	90 e0       	ldi	r25, 0x00	; 0
   142c4:	a0 ea       	ldi	r26, 0xA0	; 160
   142c6:	b1 e4       	ldi	r27, 0x41	; 65
   142c8:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   142cc:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   142d0:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   142d4:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = PINDA_PREHEAT_Y;
   142d8:	80 e0       	ldi	r24, 0x00	; 0
   142da:	90 e0       	ldi	r25, 0x00	; 0
   142dc:	a0 e7       	ldi	r26, 0x70	; 112
   142de:	b2 e4       	ldi	r27, 0x42	; 66
   142e0:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   142e4:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   142e8:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   142ec:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
        plan_buffer_line_curposXYZE(3000 / 60);
   142f0:	60 e0       	ldi	r22, 0x00	; 0
   142f2:	70 e0       	ldi	r23, 0x00	; 0
   142f4:	88 e4       	ldi	r24, 0x48	; 72
   142f6:	92 e4       	ldi	r25, 0x42	; 66
   142f8:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        current_position[Z_AXIS] = PINDA_PREHEAT_Z;
   142fc:	8a e9       	ldi	r24, 0x9A	; 154
   142fe:	99 e9       	ldi	r25, 0x99	; 153
   14300:	a9 e1       	ldi	r26, 0x19	; 25
   14302:	be e3       	ldi	r27, 0x3E	; 62
   14304:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   14308:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   1430c:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   14310:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
        plan_buffer_line_curposXYZE(3000 / 60);
   14314:	60 e0       	ldi	r22, 0x00	; 0
   14316:	70 e0       	ldi	r23, 0x00	; 0
   14318:	88 e4       	ldi	r24, 0x48	; 72
   1431a:	92 e4       	ldi	r25, 0x42	; 66
   1431c:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   14320:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   14324:	0f 90       	pop	r0
   14326:	0f 90       	pop	r0
   14328:	0f 90       	pop	r0
   1432a:	0f 90       	pop	r0
   1432c:	0f 90       	pop	r0
   1432e:	0f 90       	pop	r0

        while (current_temperature_pinda < start_temp)
   14330:	20 91 99 03 	lds	r18, 0x0399	; 0x800399 <current_temperature_pinda>
   14334:	30 91 9a 03 	lds	r19, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   14338:	40 91 9b 03 	lds	r20, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   1433c:	50 91 9c 03 	lds	r21, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   14340:	62 2d       	mov	r22, r2
   14342:	73 2d       	mov	r23, r3
   14344:	8e 2d       	mov	r24, r14
   14346:	9f 2d       	mov	r25, r15
   14348:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1434c:	18 16       	cp	r1, r24
   1434e:	3c f4       	brge	.+14     	; 0x1435e <process_commands() [clone .part.46]+0x194a>
        {
            delay_keep_alive(1000);
   14350:	88 ee       	ldi	r24, 0xE8	; 232
   14352:	93 e0       	ldi	r25, 0x03	; 3
   14354:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
            serialecho_temperatures();
   14358:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
   1435c:	e9 cf       	rjmp	.-46     	; 0x14330 <process_commands() [clone .part.46]+0x191c>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1435e:	60 e0       	ldi	r22, 0x00	; 0
   14360:	86 ea       	ldi	r24, 0xA6	; 166
   14362:	9f e0       	ldi	r25, 0x0F	; 15
   14364:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        }

        eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA, 0); //invalidate temp. calibration in case that in will be aborted during the calibration process

        current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   14368:	80 e0       	ldi	r24, 0x00	; 0
   1436a:	90 e0       	ldi	r25, 0x00	; 0
   1436c:	a0 ea       	ldi	r26, 0xA0	; 160
   1436e:	b0 e4       	ldi	r27, 0x40	; 64
   14370:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   14374:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   14378:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   1437c:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
        plan_buffer_line_curposXYZE(3000 / 60);
   14380:	60 e0       	ldi	r22, 0x00	; 0
   14382:	70 e0       	ldi	r23, 0x00	; 0
   14384:	88 e4       	ldi	r24, 0x48	; 72
   14386:	92 e4       	ldi	r25, 0x42	; 66
   14388:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        current_position[X_AXIS] = pgm_read_float(bed_ref_points_4);
   1438c:	ed ef       	ldi	r30, 0xFD	; 253
   1438e:	f4 ea       	ldi	r31, 0xA4	; 164
   14390:	85 91       	lpm	r24, Z+
   14392:	95 91       	lpm	r25, Z+
   14394:	a5 91       	lpm	r26, Z+
   14396:	b4 91       	lpm	r27, Z
   14398:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   1439c:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   143a0:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   143a4:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4 + 1);
   143a8:	e1 e0       	ldi	r30, 0x01	; 1
   143aa:	f5 ea       	ldi	r31, 0xA5	; 165
   143ac:	85 91       	lpm	r24, Z+
   143ae:	95 91       	lpm	r25, Z+
   143b0:	a5 91       	lpm	r26, Z+
   143b2:	b4 91       	lpm	r27, Z
   143b4:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   143b8:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   143bc:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   143c0:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
        plan_buffer_line_curposXYZE(3000 / 60);
   143c4:	60 e0       	ldi	r22, 0x00	; 0
   143c6:	70 e0       	ldi	r23, 0x00	; 0
   143c8:	88 e4       	ldi	r24, 0x48	; 72
   143ca:	92 e4       	ldi	r25, 0x42	; 66
   143cc:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   143d0:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        bool find_z_result = find_bed_induction_sensor_point_z(-1.f);
   143d4:	43 e0       	ldi	r20, 0x03	; 3
   143d6:	60 e0       	ldi	r22, 0x00	; 0
   143d8:	70 e0       	ldi	r23, 0x00	; 0
   143da:	80 e8       	ldi	r24, 0x80	; 128
   143dc:	9f eb       	ldi	r25, 0xBF	; 191
   143de:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
        if (find_z_result == false) {
   143e2:	81 11       	cpse	r24, r1
   143e4:	06 c0       	rjmp	.+12     	; 0x143f2 <process_commands() [clone .part.46]+0x19de>

            printf_P(_N("\nPINDA temperature: %.1f Z shift (mm): %.3f"), current_temperature_pinda, current_position[Z_AXIS] - zero_z);

            eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
        }
        lcd_temp_cal_show_result(true);
   143e6:	0f 94 48 21 	call	0x24290	; 0x24290 <lcd_temp_cal_show_result(bool)>
        homing_flag = false;
   143ea:	10 92 a7 0d 	sts	0x0DA7, r1	; 0x800da7 <homing_flag>
   143ee:	0c 94 0b 9a 	jmp	0x13416	; 0x13416 <process_commands() [clone .part.46]+0xa02>
        if (find_z_result == false) {
            lcd_temp_cal_show_result(find_z_result);
            homing_flag = false;
            break;
        }
        zero_z = current_position[Z_AXIS];
   143f2:	90 91 9a 06 	lds	r25, 0x069A	; 0x80069a <current_position+0x8>
   143f6:	67 96       	adiw	r28, 0x17	; 23
   143f8:	9f af       	std	Y+63, r25	; 0x3f
   143fa:	67 97       	sbiw	r28, 0x17	; 23
   143fc:	a0 91 9b 06 	lds	r26, 0x069B	; 0x80069b <current_position+0x9>
   14400:	6b 96       	adiw	r28, 0x1b	; 27
   14402:	af af       	std	Y+63, r26	; 0x3f
   14404:	6b 97       	sbiw	r28, 0x1b	; 27
   14406:	b0 91 9c 06 	lds	r27, 0x069C	; 0x80069c <current_position+0xa>
   1440a:	6f 96       	adiw	r28, 0x1f	; 31
   1440c:	bf af       	std	Y+63, r27	; 0x3f
   1440e:	6f 97       	sbiw	r28, 0x1f	; 31
   14410:	e0 91 9d 06 	lds	r30, 0x069D	; 0x80069d <current_position+0xb>
   14414:	a7 96       	adiw	r28, 0x27	; 39
   14416:	ef af       	std	Y+63, r30	; 0x3f
   14418:	a7 97       	sbiw	r28, 0x27	; 39

        printf_P(_N("\nZERO: %.3f\n"), current_position[Z_AXIS]);
   1441a:	ef 93       	push	r30
   1441c:	bf 93       	push	r27
   1441e:	af 93       	push	r26
   14420:	9f 93       	push	r25
   14422:	80 e3       	ldi	r24, 0x30	; 48
   14424:	99 e6       	ldi	r25, 0x69	; 105
   14426:	9f 93       	push	r25
   14428:	8f 93       	push	r24
   1442a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   1442e:	0f 90       	pop	r0
   14430:	0f 90       	pop	r0
   14432:	0f 90       	pop	r0
   14434:	0f 90       	pop	r0
   14436:	0f 90       	pop	r0
   14438:	0f 90       	pop	r0
   1443a:	4e ea       	ldi	r20, 0xAE	; 174
   1443c:	84 2e       	mov	r8, r20
   1443e:	4f e0       	ldi	r20, 0x0F	; 15
   14440:	94 2e       	mov	r9, r20
   14442:	53 e2       	ldi	r21, 0x23	; 35
   14444:	c5 2e       	mov	r12, r21
   14446:	d1 2c       	mov	r13, r1

        int i = -1; for (; i < 5; i++)
   14448:	0f ef       	ldi	r16, 0xFF	; 255
   1444a:	1f ef       	ldi	r17, 0xFF	; 255
        {
            float temp = (40 + i * 5);
   1444c:	b6 01       	movw	r22, r12
   1444e:	0d 2c       	mov	r0, r13
   14450:	00 0c       	add	r0, r0
   14452:	88 0b       	sbc	r24, r24
   14454:	99 0b       	sbc	r25, r25
   14456:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1445a:	2b 01       	movw	r4, r22
   1445c:	3c 01       	movw	r6, r24
            printf_P(_N("\nStep: %d/6 (skipped)\nPINDA temperature: %d Z shift (mm):0\n"), i + 2, (40 + i*5));
   1445e:	df 92       	push	r13
   14460:	cf 92       	push	r12
   14462:	c8 01       	movw	r24, r16
   14464:	02 96       	adiw	r24, 0x02	; 2
   14466:	9f 93       	push	r25
   14468:	8f 93       	push	r24
   1446a:	24 ef       	ldi	r18, 0xF4	; 244
   1446c:	38 e6       	ldi	r19, 0x68	; 104
   1446e:	3f 93       	push	r19
   14470:	2f 93       	push	r18
   14472:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   14476:	58 01       	movw	r10, r16
   14478:	5f ef       	ldi	r21, 0xFF	; 255
   1447a:	a5 1a       	sub	r10, r21
   1447c:	b5 0a       	sbc	r11, r21
            if (i >= 0) {
   1447e:	0f 90       	pop	r0
   14480:	0f 90       	pop	r0
   14482:	0f 90       	pop	r0
   14484:	0f 90       	pop	r0
   14486:	0f 90       	pop	r0
   14488:	0f 90       	pop	r0
   1448a:	11 f4       	brne	.+4      	; 0x14490 <process_commands() [clone .part.46]+0x1a7c>
   1448c:	0c 94 22 cd 	jmp	0x19a44	; 0x19a44 <process_commands() [clone .part.46]+0x7030>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   14490:	70 e0       	ldi	r23, 0x00	; 0
   14492:	60 e0       	ldi	r22, 0x00	; 0
   14494:	c4 01       	movw	r24, r8
   14496:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
                eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
            }
            if (start_temp <= temp) break;
   1449a:	a3 01       	movw	r20, r6
   1449c:	92 01       	movw	r18, r4
   1449e:	62 2d       	mov	r22, r2
   144a0:	73 2d       	mov	r23, r3
   144a2:	8e 2d       	mov	r24, r14
   144a4:	9f 2d       	mov	r25, r15
   144a6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   144aa:	18 16       	cp	r1, r24
   144ac:	44 f4       	brge	.+16     	; 0x144be <process_commands() [clone .part.46]+0x1aaa>
        }
        zero_z = current_position[Z_AXIS];

        printf_P(_N("\nZERO: %.3f\n"), current_position[Z_AXIS]);

        int i = -1; for (; i < 5; i++)
   144ae:	85 e0       	ldi	r24, 0x05	; 5
   144b0:	a8 16       	cp	r10, r24
   144b2:	b1 04       	cpc	r11, r1
   144b4:	11 f0       	breq	.+4      	; 0x144ba <process_commands() [clone .part.46]+0x1aa6>
   144b6:	0c 94 2e cd 	jmp	0x19a5c	; 0x19a5c <process_commands() [clone .part.46]+0x7048>
   144ba:	05 e0       	ldi	r16, 0x05	; 5
   144bc:	10 e0       	ldi	r17, 0x00	; 0
   144be:	58 01       	movw	r10, r16
   144c0:	97 e2       	ldi	r25, 0x27	; 39
   144c2:	a9 1a       	sub	r10, r25
   144c4:	98 ef       	ldi	r25, 0xF8	; 248
   144c6:	b9 0a       	sbc	r11, r25
   144c8:	aa 0c       	add	r10, r10
   144ca:	bb 1c       	adc	r11, r11
   144cc:	85 e0       	ldi	r24, 0x05	; 5
   144ce:	80 9f       	mul	r24, r16
   144d0:	10 01       	movw	r2, r0
   144d2:	81 9f       	mul	r24, r17
   144d4:	30 0c       	add	r3, r0
   144d6:	11 24       	eor	r1, r1
   144d8:	0d 5f       	subi	r16, 0xFD	; 253
   144da:	1f 4f       	sbci	r17, 0xFF	; 255
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
            plan_buffer_line_curposXYZE(3000 / 60);
            current_position[X_AXIS] = PINDA_PREHEAT_X;
            current_position[Y_AXIS] = PINDA_PREHEAT_Y;
            plan_buffer_line_curposXYZE(3000 / 60);
            current_position[Z_AXIS] = PINDA_PREHEAT_Z;
   144dc:	2a e9       	ldi	r18, 0x9A	; 154
   144de:	42 2e       	mov	r4, r18
   144e0:	29 e9       	ldi	r18, 0x99	; 153
   144e2:	52 2e       	mov	r5, r18
   144e4:	29 e1       	ldi	r18, 0x19	; 25
   144e6:	62 2e       	mov	r6, r18
   144e8:	2e e3       	ldi	r18, 0x3E	; 62
   144ea:	72 2e       	mov	r7, r18
                lcd_temp_cal_show_result(find_z_result);
                break;
            }
            z_shift = (int)((current_position[Z_AXIS] - zero_z)*cs.axis_steps_per_mm[Z_AXIS]);

            printf_P(_N("\nPINDA temperature: %.1f Z shift (mm): %.3f"), current_temperature_pinda, current_position[Z_AXIS] - zero_z);
   144ec:	3b eb       	ldi	r19, 0xBB	; 187
   144ee:	83 2e       	mov	r8, r19
   144f0:	38 e6       	ldi	r19, 0x68	; 104
   144f2:	93 2e       	mov	r9, r19
                eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
            }
            if (start_temp <= temp) break;
        }

        for (i++; i < 5; i++)
   144f4:	c8 01       	movw	r24, r16
   144f6:	02 97       	sbiw	r24, 0x02	; 2
   144f8:	05 97       	sbiw	r24, 0x05	; 5
   144fa:	0c f0       	brlt	.+2      	; 0x144fe <process_commands() [clone .part.46]+0x1aea>
   144fc:	d4 c0       	rjmp	.+424    	; 0x146a6 <process_commands() [clone .part.46]+0x1c92>
        {
            float temp = (40 + i * 5);
   144fe:	b1 01       	movw	r22, r2
   14500:	63 5d       	subi	r22, 0xD3	; 211
   14502:	7f 4f       	sbci	r23, 0xFF	; 255
   14504:	07 2e       	mov	r0, r23
   14506:	00 0c       	add	r0, r0
   14508:	88 0b       	sbc	r24, r24
   1450a:	99 0b       	sbc	r25, r25
   1450c:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   14510:	6b 01       	movw	r12, r22
   14512:	7c 01       	movw	r14, r24
            printf_P(_N("\nStep: %d/6\n"), i + 2);
   14514:	1f 93       	push	r17
   14516:	0f 93       	push	r16
   14518:	a7 ee       	ldi	r26, 0xE7	; 231
   1451a:	b8 e6       	ldi	r27, 0x68	; 104
   1451c:	bf 93       	push	r27
   1451e:	af 93       	push	r26
   14520:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
            custom_message_state = i + 2;
   14524:	00 93 f7 03 	sts	0x03F7, r16	; 0x8003f7 <custom_message_state>
            setTargetBed(50 + 10 * (temp - 30) / 5);
   14528:	20 e0       	ldi	r18, 0x00	; 0
   1452a:	30 e0       	ldi	r19, 0x00	; 0
   1452c:	40 ef       	ldi	r20, 0xF0	; 240
   1452e:	51 e4       	ldi	r21, 0x41	; 65
   14530:	c7 01       	movw	r24, r14
   14532:	b6 01       	movw	r22, r12
   14534:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   14538:	20 e0       	ldi	r18, 0x00	; 0
   1453a:	30 e0       	ldi	r19, 0x00	; 0
   1453c:	40 e2       	ldi	r20, 0x20	; 32
   1453e:	51 e4       	ldi	r21, 0x41	; 65
   14540:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   14544:	20 e0       	ldi	r18, 0x00	; 0
   14546:	30 e0       	ldi	r19, 0x00	; 0
   14548:	40 ea       	ldi	r20, 0xA0	; 160
   1454a:	50 e4       	ldi	r21, 0x40	; 64
   1454c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   14550:	20 e0       	ldi	r18, 0x00	; 0
   14552:	30 e0       	ldi	r19, 0x00	; 0
   14554:	48 e4       	ldi	r20, 0x48	; 72
   14556:	52 e4       	ldi	r21, 0x42	; 66
   14558:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1455c:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   14560:	70 93 73 06 	sts	0x0673, r23	; 0x800673 <target_temperature_bed+0x1>
   14564:	60 93 72 06 	sts	0x0672, r22	; 0x800672 <target_temperature_bed>
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   14568:	80 e0       	ldi	r24, 0x00	; 0
   1456a:	90 e0       	ldi	r25, 0x00	; 0
   1456c:	a0 ea       	ldi	r26, 0xA0	; 160
   1456e:	b0 e4       	ldi	r27, 0x40	; 64
   14570:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   14574:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   14578:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   1457c:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(3000 / 60);
   14580:	60 e0       	ldi	r22, 0x00	; 0
   14582:	70 e0       	ldi	r23, 0x00	; 0
   14584:	88 e4       	ldi	r24, 0x48	; 72
   14586:	92 e4       	ldi	r25, 0x42	; 66
   14588:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            current_position[X_AXIS] = PINDA_PREHEAT_X;
   1458c:	20 e0       	ldi	r18, 0x00	; 0
   1458e:	30 e0       	ldi	r19, 0x00	; 0
   14590:	40 ea       	ldi	r20, 0xA0	; 160
   14592:	51 e4       	ldi	r21, 0x41	; 65
   14594:	20 93 92 06 	sts	0x0692, r18	; 0x800692 <current_position>
   14598:	30 93 93 06 	sts	0x0693, r19	; 0x800693 <current_position+0x1>
   1459c:	40 93 94 06 	sts	0x0694, r20	; 0x800694 <current_position+0x2>
   145a0:	50 93 95 06 	sts	0x0695, r21	; 0x800695 <current_position+0x3>
            current_position[Y_AXIS] = PINDA_PREHEAT_Y;
   145a4:	80 e0       	ldi	r24, 0x00	; 0
   145a6:	90 e0       	ldi	r25, 0x00	; 0
   145a8:	a0 e7       	ldi	r26, 0x70	; 112
   145aa:	b2 e4       	ldi	r27, 0x42	; 66
   145ac:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   145b0:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   145b4:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   145b8:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
            plan_buffer_line_curposXYZE(3000 / 60);
   145bc:	60 e0       	ldi	r22, 0x00	; 0
   145be:	70 e0       	ldi	r23, 0x00	; 0
   145c0:	88 e4       	ldi	r24, 0x48	; 72
   145c2:	92 e4       	ldi	r25, 0x42	; 66
   145c4:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            current_position[Z_AXIS] = PINDA_PREHEAT_Z;
   145c8:	40 92 9a 06 	sts	0x069A, r4	; 0x80069a <current_position+0x8>
   145cc:	50 92 9b 06 	sts	0x069B, r5	; 0x80069b <current_position+0x9>
   145d0:	60 92 9c 06 	sts	0x069C, r6	; 0x80069c <current_position+0xa>
   145d4:	70 92 9d 06 	sts	0x069D, r7	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(3000 / 60);
   145d8:	60 e0       	ldi	r22, 0x00	; 0
   145da:	70 e0       	ldi	r23, 0x00	; 0
   145dc:	88 e4       	ldi	r24, 0x48	; 72
   145de:	92 e4       	ldi	r25, 0x42	; 66
   145e0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   145e4:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   145e8:	0f 90       	pop	r0
   145ea:	0f 90       	pop	r0
   145ec:	0f 90       	pop	r0
   145ee:	0f 90       	pop	r0
            while (current_temperature_pinda < temp)
   145f0:	20 91 99 03 	lds	r18, 0x0399	; 0x800399 <current_temperature_pinda>
   145f4:	30 91 9a 03 	lds	r19, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   145f8:	40 91 9b 03 	lds	r20, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   145fc:	50 91 9c 03 	lds	r21, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   14600:	c7 01       	movw	r24, r14
   14602:	b6 01       	movw	r22, r12
   14604:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   14608:	18 16       	cp	r1, r24
   1460a:	3c f4       	brge	.+14     	; 0x1461a <process_commands() [clone .part.46]+0x1c06>
            {
                delay_keep_alive(1000);
   1460c:	88 ee       	ldi	r24, 0xE8	; 232
   1460e:	93 e0       	ldi	r25, 0x03	; 3
   14610:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
                serialecho_temperatures();
   14614:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
   14618:	eb cf       	rjmp	.-42     	; 0x145f0 <process_commands() [clone .part.46]+0x1bdc>
            }
            current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   1461a:	80 e0       	ldi	r24, 0x00	; 0
   1461c:	90 e0       	ldi	r25, 0x00	; 0
   1461e:	a0 ea       	ldi	r26, 0xA0	; 160
   14620:	b0 e4       	ldi	r27, 0x40	; 64
   14622:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   14626:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   1462a:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   1462e:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
            plan_buffer_line_curposXYZE(3000 / 60);
   14632:	60 e0       	ldi	r22, 0x00	; 0
   14634:	70 e0       	ldi	r23, 0x00	; 0
   14636:	88 e4       	ldi	r24, 0x48	; 72
   14638:	92 e4       	ldi	r25, 0x42	; 66
   1463a:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            current_position[X_AXIS] = pgm_read_float(bed_ref_points_4);
   1463e:	ed ef       	ldi	r30, 0xFD	; 253
   14640:	f4 ea       	ldi	r31, 0xA4	; 164
   14642:	85 91       	lpm	r24, Z+
   14644:	95 91       	lpm	r25, Z+
   14646:	a5 91       	lpm	r26, Z+
   14648:	b4 91       	lpm	r27, Z
   1464a:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   1464e:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   14652:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   14656:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
            current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4 + 1);
   1465a:	e1 e0       	ldi	r30, 0x01	; 1
   1465c:	f5 ea       	ldi	r31, 0xA5	; 165
   1465e:	85 91       	lpm	r24, Z+
   14660:	95 91       	lpm	r25, Z+
   14662:	a5 91       	lpm	r26, Z+
   14664:	b4 91       	lpm	r27, Z
   14666:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   1466a:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   1466e:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   14672:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
            plan_buffer_line_curposXYZE(3000 / 60);
   14676:	60 e0       	ldi	r22, 0x00	; 0
   14678:	70 e0       	ldi	r23, 0x00	; 0
   1467a:	88 e4       	ldi	r24, 0x48	; 72
   1467c:	92 e4       	ldi	r25, 0x42	; 66
   1467e:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
            st_synchronize();
   14682:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            find_z_result = find_bed_induction_sensor_point_z(-1.f);
   14686:	43 e0       	ldi	r20, 0x03	; 3
   14688:	60 e0       	ldi	r22, 0x00	; 0
   1468a:	70 e0       	ldi	r23, 0x00	; 0
   1468c:	80 e8       	ldi	r24, 0x80	; 128
   1468e:	9f eb       	ldi	r25, 0xBF	; 191
   14690:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
   14694:	95 e0       	ldi	r25, 0x05	; 5
   14696:	29 0e       	add	r2, r25
   14698:	31 1c       	adc	r3, r1
   1469a:	0f 5f       	subi	r16, 0xFF	; 255
   1469c:	1f 4f       	sbci	r17, 0xFF	; 255
            if (find_z_result == false) {
   1469e:	81 11       	cpse	r24, r1
   146a0:	04 c0       	rjmp	.+8      	; 0x146aa <process_commands() [clone .part.46]+0x1c96>
                lcd_temp_cal_show_result(find_z_result);
   146a2:	0f 94 48 21 	call	0x24290	; 0x24290 <lcd_temp_cal_show_result(bool)>

            printf_P(_N("\nPINDA temperature: %.1f Z shift (mm): %.3f"), current_temperature_pinda, current_position[Z_AXIS] - zero_z);

            eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
        }
        lcd_temp_cal_show_result(true);
   146a6:	81 e0       	ldi	r24, 0x01	; 1
   146a8:	9e ce       	rjmp	.-708    	; 0x143e6 <process_commands() [clone .part.46]+0x19d2>
            find_z_result = find_bed_induction_sensor_point_z(-1.f);
            if (find_z_result == false) {
                lcd_temp_cal_show_result(find_z_result);
                break;
            }
            z_shift = (int)((current_position[Z_AXIS] - zero_z)*cs.axis_steps_per_mm[Z_AXIS]);
   146aa:	67 96       	adiw	r28, 0x17	; 23
   146ac:	7f ad       	ldd	r23, Y+63	; 0x3f
   146ae:	67 97       	sbiw	r28, 0x17	; 23
   146b0:	6b 96       	adiw	r28, 0x1b	; 27
   146b2:	6f ad       	ldd	r22, Y+63	; 0x3f
   146b4:	6b 97       	sbiw	r28, 0x1b	; 27
   146b6:	6f 96       	adiw	r28, 0x1f	; 31
   146b8:	9f ad       	ldd	r25, Y+63	; 0x3f
   146ba:	6f 97       	sbiw	r28, 0x1f	; 31
   146bc:	a7 96       	adiw	r28, 0x27	; 39
   146be:	8f ad       	ldd	r24, Y+63	; 0x3f
   146c0:	a7 97       	sbiw	r28, 0x27	; 39
   146c2:	27 2f       	mov	r18, r23
   146c4:	36 2f       	mov	r19, r22
   146c6:	49 2f       	mov	r20, r25
   146c8:	58 2f       	mov	r21, r24
   146ca:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   146ce:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   146d2:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   146d6:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   146da:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   146de:	f6 2e       	mov	r15, r22
   146e0:	e7 2e       	mov	r14, r23
   146e2:	d8 2e       	mov	r13, r24
   146e4:	c9 2e       	mov	r12, r25
   146e6:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   146ea:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   146ee:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   146f2:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   146f6:	d7 01       	movw	r26, r14
   146f8:	f6 01       	movw	r30, r12
   146fa:	6b 2f       	mov	r22, r27
   146fc:	7a 2f       	mov	r23, r26
   146fe:	8f 2f       	mov	r24, r31
   14700:	9e 2f       	mov	r25, r30
   14702:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   14706:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1470a:	a6 96       	adiw	r28, 0x26	; 38
   1470c:	6c af       	std	Y+60, r22	; 0x3c
   1470e:	7d af       	std	Y+61, r23	; 0x3d
   14710:	8e af       	std	Y+62, r24	; 0x3e
   14712:	9f af       	std	Y+63, r25	; 0x3f
   14714:	a6 97       	sbiw	r28, 0x26	; 38

            printf_P(_N("\nPINDA temperature: %.1f Z shift (mm): %.3f"), current_temperature_pinda, current_position[Z_AXIS] - zero_z);
   14716:	cf 92       	push	r12
   14718:	df 92       	push	r13
   1471a:	ef 92       	push	r14
   1471c:	ff 92       	push	r15
   1471e:	80 91 9c 03 	lds	r24, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   14722:	8f 93       	push	r24
   14724:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   14728:	8f 93       	push	r24
   1472a:	80 91 9a 03 	lds	r24, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   1472e:	8f 93       	push	r24
   14730:	80 91 99 03 	lds	r24, 0x0399	; 0x800399 <current_temperature_pinda>
   14734:	8f 93       	push	r24
   14736:	9f 92       	push	r9
   14738:	8f 92       	push	r8
   1473a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   1473e:	a4 96       	adiw	r28, 0x24	; 36
   14740:	6e ad       	ldd	r22, Y+62	; 0x3e
   14742:	7f ad       	ldd	r23, Y+63	; 0x3f
   14744:	a4 97       	sbiw	r28, 0x24	; 36
   14746:	c5 01       	movw	r24, r10
   14748:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   1474c:	a2 e0       	ldi	r26, 0x02	; 2
   1474e:	aa 0e       	add	r10, r26
   14750:	b1 1c       	adc	r11, r1
   14752:	0f b6       	in	r0, 0x3f	; 63
   14754:	f8 94       	cli
   14756:	de bf       	out	0x3e, r29	; 62
   14758:	0f be       	out	0x3f, r0	; 63
   1475a:	cd bf       	out	0x3d, r28	; 61
   1475c:	cb ce       	rjmp	.-618    	; 0x144f4 <process_commands() [clone .part.46]+0x1ae0>

        This G-code will be performed at the start of a calibration script.
        (Prusa3D specific)
        */
        case 86:
            calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
   1475e:	80 e1       	ldi	r24, 0x10	; 16
   14760:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
   14764:	0c 94 0b 9a 	jmp	0x13416	; 0x13416 <process_commands() [clone .part.46]+0xa02>

        This G-code will be performed at the end of a calibration script.
        (Prusa3D specific)
        */
        case 87:
            calibration_status_set(CALIBRATION_STATUS_LIVE_ADJUST);
   14768:	80 e1       	ldi	r24, 0x10	; 16
   1476a:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
   1476e:	0c 94 0b 9a 	jmp	0x13416	; 0x13416 <process_commands() [clone .part.46]+0xa02>
    /*!
    ### G90 - Switch off relative mode <a href="https://reprap.org/wiki/G-code#G90:_Set_to_Absolute_Positioning">G90: Set to Absolute Positioning</a>
    All coordinates from now on are absolute relative to the origin of the machine. E axis is left intact.
    */
    case 90: {
		axis_relative_modes &= ~(X_AXIS_MASK | Y_AXIS_MASK | Z_AXIS_MASK);
   14772:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   14776:	88 7f       	andi	r24, 0xF8	; 248
    /*!
    ### G91 - Switch on relative mode <a href="https://reprap.org/wiki/G-code#G91:_Set_to_Relative_Positioning">G91: Set to Relative Positioning</a>
    All coordinates from now on are relative to the last position. E axis is left intact.
    */
    case 91: {
		axis_relative_modes |= X_AXIS_MASK | Y_AXIS_MASK | Z_AXIS_MASK;
   14778:	80 93 e5 03 	sts	0x03E5, r24	; 0x8003e5 <axis_relative_modes>
   1477c:	0c 94 0b 9a 	jmp	0x13416	; 0x13416 <process_commands() [clone .part.46]+0xa02>
   14780:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   14784:	87 60       	ori	r24, 0x07	; 7
   14786:	f8 cf       	rjmp	.-16     	; 0x14778 <process_commands() [clone .part.46]+0x1d64>
        plan_reset_next_e();
    }
    else
    {
        // In any other case we're forced to synchronize
        st_synchronize();
   14788:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   1478c:	f1 2c       	mov	r15, r1
   1478e:	e1 2c       	mov	r14, r1
        for(uint8_t i = 0; i < 3; ++i)
        {
            if(codes[i])
   14790:	f8 01       	movw	r30, r16
   14792:	81 91       	ld	r24, Z+
   14794:	8f 01       	movw	r16, r30
   14796:	88 23       	and	r24, r24
   14798:	d1 f0       	breq	.+52     	; 0x147ce <process_commands() [clone .part.46]+0x1dba>
                current_position[i] = values[i] + cs.add_homing[i];
   1479a:	97 01       	movw	r18, r14
   1479c:	2e 56       	subi	r18, 0x6E	; 110
   1479e:	39 4f       	sbci	r19, 0xF9	; 249
   147a0:	59 01       	movw	r10, r18
   147a2:	f3 01       	movw	r30, r6
   147a4:	ee 0d       	add	r30, r14
   147a6:	ff 1d       	adc	r31, r15
   147a8:	20 81       	ld	r18, Z
   147aa:	31 81       	ldd	r19, Z+1	; 0x01
   147ac:	42 81       	ldd	r20, Z+2	; 0x02
   147ae:	53 81       	ldd	r21, Z+3	; 0x03
   147b0:	f7 01       	movw	r30, r14
   147b2:	ea 5e       	subi	r30, 0xEA	; 234
   147b4:	f1 4f       	sbci	r31, 0xF1	; 241
   147b6:	60 81       	ld	r22, Z
   147b8:	71 81       	ldd	r23, Z+1	; 0x01
   147ba:	82 81       	ldd	r24, Z+2	; 0x02
   147bc:	93 81       	ldd	r25, Z+3	; 0x03
   147be:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   147c2:	d5 01       	movw	r26, r10
   147c4:	6d 93       	st	X+, r22
   147c6:	7d 93       	st	X+, r23
   147c8:	8d 93       	st	X+, r24
   147ca:	9c 93       	st	X, r25
   147cc:	13 97       	sbiw	r26, 0x03	; 3
   147ce:	b4 e0       	ldi	r27, 0x04	; 4
   147d0:	eb 0e       	add	r14, r27
   147d2:	f1 1c       	adc	r15, r1
    }
    else
    {
        // In any other case we're forced to synchronize
        st_synchronize();
        for(uint8_t i = 0; i < 3; ++i)
   147d4:	ec e0       	ldi	r30, 0x0C	; 12
   147d6:	ee 16       	cp	r14, r30
   147d8:	f1 04       	cpc	r15, r1
   147da:	d1 f6       	brne	.-76     	; 0x14790 <process_commands() [clone .part.46]+0x1d7c>
        {
            if(codes[i])
                current_position[i] = values[i] + cs.add_homing[i];
        }
        if(codes[E_AXIS])
   147dc:	dd 20       	and	r13, r13
   147de:	61 f0       	breq	.+24     	; 0x147f8 <process_commands() [clone .part.46]+0x1de4>
            current_position[E_AXIS] = values[E_AXIS];
   147e0:	8d 85       	ldd	r24, Y+13	; 0x0d
   147e2:	9e 85       	ldd	r25, Y+14	; 0x0e
   147e4:	af 85       	ldd	r26, Y+15	; 0x0f
   147e6:	b8 89       	ldd	r27, Y+16	; 0x10
   147e8:	80 93 9e 06 	sts	0x069E, r24	; 0x80069e <current_position+0xc>
   147ec:	90 93 9f 06 	sts	0x069F, r25	; 0x80069f <current_position+0xd>
   147f0:	a0 93 a0 06 	sts	0x06A0, r26	; 0x8006a0 <current_position+0xe>
   147f4:	b0 93 a1 06 	sts	0x06A1, r27	; 0x8006a1 <current_position+0xf>

        // Set all at once
        plan_set_position_curposXYZE();
   147f8:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
   147fc:	0c 94 0b 9a 	jmp	0x13416	; 0x13416 <process_commands() [clone .part.46]+0xa02>
  /*!
  ---------------------------------------------------------------------------------
  # M Commands
  */

  else  if(*CMDBUFFER_CURRENT_STRING == 'M')
   14800:	8d 34       	cpi	r24, 0x4D	; 77
   14802:	11 f0       	breq	.+4      	; 0x14808 <process_commands() [clone .part.46]+0x1df4>
   14804:	0c 94 93 cb 	jmp	0x19726	; 0x19726 <process_commands() [clone .part.46]+0x6d12>
  {
	  strchr_pointer = CMDBUFFER_CURRENT_STRING;
   14808:	10 93 96 03 	sts	0x0396, r17	; 0x800396 <strchr_pointer+0x1>
   1480c:	00 93 95 03 	sts	0x0395, r16	; 0x800395 <strchr_pointer>
   14810:	f8 01       	movw	r30, r16
   14812:	31 96       	adiw	r30, 0x01	; 1

	  int index;
	  for (index = 1; *(strchr_pointer + index) == ' ' || *(strchr_pointer + index) == '\t'; index++);
   14814:	81 91       	ld	r24, Z+
   14816:	80 32       	cpi	r24, 0x20	; 32
   14818:	e9 f3       	breq	.-6      	; 0x14814 <process_commands() [clone .part.46]+0x1e00>
   1481a:	89 30       	cpi	r24, 0x09	; 9
   1481c:	d9 f3       	breq	.-10     	; 0x14814 <process_commands() [clone .part.46]+0x1e00>

	 /*for (++strchr_pointer; *strchr_pointer == ' ' || *strchr_pointer == '\t'; ++strchr_pointer);*/
	  if (*(strchr_pointer+index) < '0' || *(strchr_pointer+index) > '9') {
   1481e:	80 53       	subi	r24, 0x30	; 48
   14820:	8a 30       	cpi	r24, 0x0A	; 10
   14822:	70 f0       	brcs	.+28     	; 0x14840 <process_commands() [clone .part.46]+0x1e2c>
		  printf_P(PSTR("Invalid M code: %s\n"), cmdbuffer + bufindr + CMDHDRSIZE);
   14824:	1f 93       	push	r17
   14826:	0f 93       	push	r16
   14828:	8d ef       	ldi	r24, 0xFD	; 253
   1482a:	96 e8       	ldi	r25, 0x86	; 134
   1482c:	9f 93       	push	r25
   1482e:	8f 93       	push	r24
   14830:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   14834:	0f 90       	pop	r0
   14836:	0f 90       	pop	r0
   14838:	0f 90       	pop	r0
   1483a:	0f 90       	pop	r0
   1483c:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>

	  } else
	  {
	  mcode_in_progress = code_value_short();
   14840:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   14844:	90 93 ab 0d 	sts	0x0DAB, r25	; 0x800dab <_ZL17mcode_in_progress.lto_priv.532+0x1>
   14848:	80 93 aa 0d 	sts	0x0DAA, r24	; 0x800daa <_ZL17mcode_in_progress.lto_priv.532>
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   1484c:	89 3c       	cpi	r24, 0xC9	; 201
   1484e:	91 05       	cpc	r25, r1
   14850:	11 f4       	brne	.+4      	; 0x14856 <process_commands() [clone .part.46]+0x1e42>
   14852:	0c 94 4c b8 	jmp	0x17098	; 0x17098 <process_commands() [clone .part.46]+0x4684>
   14856:	0c f0       	brlt	.+2      	; 0x1485a <process_commands() [clone .part.46]+0x1e46>
   14858:	40 c3       	rjmp	.+1664   	; 0x14eda <process_commands() [clone .part.46]+0x24c6>
   1485a:	8e 34       	cpi	r24, 0x4E	; 78
   1485c:	91 05       	cpc	r25, r1
   1485e:	11 f4       	brne	.+4      	; 0x14864 <process_commands() [clone .part.46]+0x1e50>
   14860:	0c 94 ae b3 	jmp	0x1675c	; 0x1675c <process_commands() [clone .part.46]+0x3d48>
   14864:	0c f0       	brlt	.+2      	; 0x14868 <process_commands() [clone .part.46]+0x1e54>
   14866:	35 c2       	rjmp	.+1130   	; 0x14cd2 <process_commands() [clone .part.46]+0x22be>
   14868:	8c 31       	cpi	r24, 0x1C	; 28
   1486a:	91 05       	cpc	r25, r1
   1486c:	11 f4       	brne	.+4      	; 0x14872 <process_commands() [clone .part.46]+0x1e5e>
   1486e:	0c 94 0d b2 	jmp	0x1641a	; 0x1641a <process_commands() [clone .part.46]+0x3a06>
   14872:	0c f0       	brlt	.+2      	; 0x14876 <process_commands() [clone .part.46]+0x1e62>
   14874:	00 c1       	rjmp	.+512    	; 0x14a76 <process_commands() [clone .part.46]+0x2062>
   14876:	85 31       	cpi	r24, 0x15	; 21
   14878:	91 05       	cpc	r25, r1
   1487a:	11 f4       	brne	.+4      	; 0x14880 <process_commands() [clone .part.46]+0x1e6c>
   1487c:	0c 94 26 b1 	jmp	0x1624c	; 0x1624c <process_commands() [clone .part.46]+0x3838>
   14880:	0c f0       	brlt	.+2      	; 0x14884 <process_commands() [clone .part.46]+0x1e70>
   14882:	5e c0       	rjmp	.+188    	; 0x14940 <process_commands() [clone .part.46]+0x1f2c>
   14884:	81 31       	cpi	r24, 0x11	; 17
   14886:	91 05       	cpc	r25, r1
   14888:	11 f4       	brne	.+4      	; 0x1488e <process_commands() [clone .part.46]+0x1e7a>
   1488a:	0c 94 1b b1 	jmp	0x16236	; 0x16236 <process_commands() [clone .part.46]+0x3822>
   1488e:	ec f4       	brge	.+58     	; 0x148ca <process_commands() [clone .part.46]+0x1eb6>
   14890:	02 97       	sbiw	r24, 0x02	; 2
   14892:	10 f4       	brcc	.+4      	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
   14894:	0c 94 8f b0 	jmp	0x1611e	; 0x1611e <process_commands() [clone .part.46]+0x370a>

    /*!
    #### End of M-Commands
    */
	default:
		printf_P(MSG_UNKNOWN_CODE, 'M', cmdbuffer + bufindr + CMDHDRSIZE);
   14898:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   1489c:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   148a0:	88 55       	subi	r24, 0x58	; 88
   148a2:	9f 4e       	sbci	r25, 0xEF	; 239
   148a4:	9f 93       	push	r25
   148a6:	8f 93       	push	r24
   148a8:	1f 92       	push	r1
   148aa:	8d e4       	ldi	r24, 0x4D	; 77
   148ac:	8f 93       	push	r24
   148ae:	86 ea       	ldi	r24, 0xA6	; 166
   148b0:	98 e6       	ldi	r25, 0x68	; 104
   148b2:	9f 93       	push	r25
   148b4:	8f 93       	push	r24
   148b6:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   148ba:	0f 90       	pop	r0
   148bc:	0f 90       	pop	r0
   148be:	0f 90       	pop	r0
   148c0:	0f 90       	pop	r0
   148c2:	0f 90       	pop	r0
   148c4:	0f 90       	pop	r0
   148c6:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   148ca:	82 31       	cpi	r24, 0x12	; 18
   148cc:	91 05       	cpc	r25, r1
   148ce:	11 f4       	brne	.+4      	; 0x148d4 <process_commands() [clone .part.46]+0x1ec0>
   148d0:	0c 94 65 b5 	jmp	0x16aca	; 0x16aca <process_commands() [clone .part.46]+0x40b6>
   148d4:	44 97       	sbiw	r24, 0x14	; 20
   148d6:	01 f7       	brne	.-64     	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
    - `T` - Report timestamps as well. The value is one uint32_t encoded as hex. Requires host software parsing (Cap:EXTENDED_M20).
    - `L` - Reports long filenames instead of just short filenames. Requires host software parsing (Cap:EXTENDED_M20).
    */
    case 20:
      KEEPALIVE_STATE(NOT_BUSY); // do not send busy messages during listing. Inhibits the output of manage_heater()
   148d8:	81 e0       	ldi	r24, 0x01	; 1
   148da:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
      SERIAL_PROTOCOLLNRPGM(_N("Begin file list"));////MSG_BEGIN_FILE_LIST
   148de:	86 e9       	ldi	r24, 0x96	; 150
   148e0:	98 e6       	ldi	r25, 0x68	; 104
   148e2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
      card.ls(CardReader::ls_param(code_seen('L'), code_seen('T')));
   148e6:	84 e5       	ldi	r24, 0x54	; 84
   148e8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   148ec:	18 2f       	mov	r17, r24
   148ee:	8c e4       	ldi	r24, 0x4C	; 76
   148f0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   148f4:	00 e0       	ldi	r16, 0x00	; 0
   148f6:	80 fb       	bst	r24, 0
   148f8:	00 f9       	bld	r16, 0
   148fa:	10 fb       	bst	r17, 0
   148fc:	01 f9       	bld	r16, 1
		} // while readDir
}

void CardReader::ls(ls_param params)
{
  root.rewind();
   148fe:	86 e1       	ldi	r24, 0x16	; 22
   14900:	95 e1       	ldi	r25, 0x15	; 21
   14902:	0e 94 b3 76 	call	0xed66	; 0xed66 <SdBaseFile::rewind()>
  lsDive("",root, NULL, LS_SerialPrint, params);
   14906:	83 e2       	ldi	r24, 0x23	; 35
   14908:	e6 e1       	ldi	r30, 0x16	; 22
   1490a:	f5 e1       	ldi	r31, 0x15	; 21
   1490c:	de 01       	movw	r26, r28
   1490e:	11 96       	adiw	r26, 0x01	; 1
   14910:	01 90       	ld	r0, Z+
   14912:	0d 92       	st	X+, r0
   14914:	8a 95       	dec	r24
   14916:	e1 f7       	brne	.-8      	; 0x14910 <process_commands() [clone .part.46]+0x1efc>
   14918:	20 e0       	ldi	r18, 0x00	; 0
   1491a:	50 e0       	ldi	r21, 0x00	; 0
   1491c:	40 e0       	ldi	r20, 0x00	; 0
   1491e:	be 01       	movw	r22, r28
   14920:	6f 5f       	subi	r22, 0xFF	; 255
   14922:	7f 4f       	sbci	r23, 0xFF	; 255
   14924:	89 ef       	ldi	r24, 0xF9	; 249
   14926:	92 e0       	ldi	r25, 0x02	; 2
   14928:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   1492c:	ce 01       	movw	r24, r28
   1492e:	01 96       	adiw	r24, 0x01	; 1
   14930:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
      SERIAL_PROTOCOLLNRPGM(_N("End file list"));////MSG_END_FILE_LIST
   14934:	88 e8       	ldi	r24, 0x88	; 136
   14936:	98 e6       	ldi	r25, 0x68	; 104
   14938:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   1493c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14940:	88 31       	cpi	r24, 0x18	; 24
   14942:	91 05       	cpc	r25, r1
   14944:	11 f4       	brne	.+4      	; 0x1494a <process_commands() [clone .part.46]+0x1f36>
   14946:	0c 94 37 b1 	jmp	0x1626e	; 0x1626e <process_commands() [clone .part.46]+0x385a>
   1494a:	94 f4       	brge	.+36     	; 0x14970 <process_commands() [clone .part.46]+0x1f5c>
   1494c:	86 31       	cpi	r24, 0x16	; 22
   1494e:	91 05       	cpc	r25, r1
   14950:	11 f4       	brne	.+4      	; 0x14956 <process_commands() [clone .part.46]+0x1f42>
   14952:	0c 94 2a b1 	jmp	0x16254	; 0x16254 <process_commands() [clone .part.46]+0x3840>
   14956:	47 97       	sbiw	r24, 0x17	; 23
   14958:	09 f0       	breq	.+2      	; 0x1495c <process_commands() [clone .part.46]+0x1f48>
   1495a:	9e cf       	rjmp	.-196    	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

        M23 [filename]

    */
    case 23:
      card.openFileReadFilteredGcode(strchr_pointer + 4, true);
   1495c:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   14960:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   14964:	61 e0       	ldi	r22, 0x01	; 1
   14966:	04 96       	adiw	r24, 0x04	; 4
   14968:	0f 94 8d 80 	call	0x3011a	; 0x3011a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]>
   1496c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14970:	8a 31       	cpi	r24, 0x1A	; 26
   14972:	91 05       	cpc	r25, r1
   14974:	11 f4       	brne	.+4      	; 0x1497a <process_commands() [clone .part.46]+0x1f66>
   14976:	0c 94 7d b1 	jmp	0x162fa	; 0x162fa <process_commands() [clone .part.46]+0x38e6>
   1497a:	14 f0       	brlt	.+4      	; 0x14980 <process_commands() [clone .part.46]+0x1f6c>
   1497c:	0c 94 9f b1 	jmp	0x1633e	; 0x1633e <process_commands() [clone .part.46]+0x392a>
   14980:	0d ed       	ldi	r16, 0xDD	; 221
   14982:	12 e0       	ldi	r17, 0x02	; 2
   14984:	ff e3       	ldi	r31, 0x3F	; 63
   14986:	af 2e       	mov	r10, r31
   14988:	f2 e0       	ldi	r31, 0x02	; 2
   1498a:	bf 2e       	mov	r11, r31
   1498c:	a1 e2       	ldi	r26, 0x21	; 33
   1498e:	ca 2e       	mov	r12, r26
   14990:	a2 e0       	ldi	r26, 0x02	; 2
   14992:	da 2e       	mov	r13, r26
   14994:	b5 e1       	ldi	r27, 0x15	; 21
   14996:	eb 2e       	mov	r14, r27
   14998:	b2 e0       	ldi	r27, 0x02	; 2
   1499a:	fb 2e       	mov	r15, r27
   1499c:	80 ee       	ldi	r24, 0xE0	; 224
   1499e:	88 2e       	mov	r8, r24
   149a0:	82 e0       	ldi	r24, 0x02	; 2
   149a2:	98 2e       	mov	r9, r24
    case 125:
    case 601:
    {
        //Set new pause position for all three axis XYZ
        for (uint8_t axis = 0; axis < E_AXIS; axis++) {
          if (code_seen(axis_codes[axis])) {
   149a4:	f8 01       	movw	r30, r16
   149a6:	81 91       	ld	r24, Z+
   149a8:	8f 01       	movw	r16, r30
   149aa:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   149ae:	88 23       	and	r24, r24
   149b0:	21 f1       	breq	.+72     	; 0x149fa <process_commands() [clone .part.46]+0x1fe6>
            //Check that the positions are within hardware limits
            pause_position[axis] = constrain(code_value(), min_pos[axis], max_pos[axis]);
   149b2:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   149b6:	d6 01       	movw	r26, r12
   149b8:	4d 90       	ld	r4, X+
   149ba:	5d 90       	ld	r5, X+
   149bc:	6d 90       	ld	r6, X+
   149be:	7c 90       	ld	r7, X
   149c0:	a3 01       	movw	r20, r6
   149c2:	92 01       	movw	r18, r4
   149c4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   149c8:	87 fd       	sbrc	r24, 7
   149ca:	11 c0       	rjmp	.+34     	; 0x149ee <process_commands() [clone .part.46]+0x1fda>
   149cc:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   149d0:	f7 01       	movw	r30, r14
   149d2:	40 80       	ld	r4, Z
   149d4:	51 80       	ldd	r5, Z+1	; 0x01
   149d6:	62 80       	ldd	r6, Z+2	; 0x02
   149d8:	73 80       	ldd	r7, Z+3	; 0x03
   149da:	a3 01       	movw	r20, r6
   149dc:	92 01       	movw	r18, r4
   149de:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   149e2:	18 16       	cp	r1, r24
   149e4:	24 f0       	brlt	.+8      	; 0x149ee <process_commands() [clone .part.46]+0x1fda>
   149e6:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   149ea:	2b 01       	movw	r4, r22
   149ec:	3c 01       	movw	r6, r24
   149ee:	d5 01       	movw	r26, r10
   149f0:	4d 92       	st	X+, r4
   149f2:	5d 92       	st	X+, r5
   149f4:	6d 92       	st	X+, r6
   149f6:	7c 92       	st	X, r7
   149f8:	13 97       	sbiw	r26, 0x03	; 3
   149fa:	b4 e0       	ldi	r27, 0x04	; 4
   149fc:	ab 0e       	add	r10, r27
   149fe:	b1 1c       	adc	r11, r1
   14a00:	e4 e0       	ldi	r30, 0x04	; 4
   14a02:	ce 0e       	add	r12, r30
   14a04:	d1 1c       	adc	r13, r1
   14a06:	f4 e0       	ldi	r31, 0x04	; 4
   14a08:	ef 0e       	add	r14, r31
   14a0a:	f1 1c       	adc	r15, r1
    case 25:
    case 125:
    case 601:
    {
        //Set new pause position for all three axis XYZ
        for (uint8_t axis = 0; axis < E_AXIS; axis++) {
   14a0c:	80 16       	cp	r8, r16
   14a0e:	91 06       	cpc	r9, r17
   14a10:	49 f6       	brne	.-110    	; 0x149a4 <process_commands() [clone .part.46]+0x1f90>
            //Check that the positions are within hardware limits
            pause_position[axis] = constrain(code_value(), min_pos[axis], max_pos[axis]);
          }
        }
        //Set default or new pause position without pausing
        if (code_seen('S')) {
   14a12:	83 e5       	ldi	r24, 0x53	; 83
   14a14:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14a18:	88 23       	and	r24, r24
   14a1a:	11 f4       	brne	.+4      	; 0x14a20 <process_commands() [clone .part.46]+0x200c>
   14a1c:	0c 94 11 c4 	jmp	0x18822	; 0x18822 <process_commands() [clone .part.46]+0x5e0e>
            if ( code_value_uint8() == 0 ) {
   14a20:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   14a24:	81 11       	cpse	r24, r1
   14a26:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                pause_position[X_AXIS] = X_PAUSE_POS;
   14a2a:	80 e0       	ldi	r24, 0x00	; 0
   14a2c:	90 e0       	ldi	r25, 0x00	; 0
   14a2e:	a8 e4       	ldi	r26, 0x48	; 72
   14a30:	b2 e4       	ldi	r27, 0x42	; 66
   14a32:	80 93 3f 02 	sts	0x023F, r24	; 0x80023f <_ZL14pause_position.lto_priv.483>
   14a36:	90 93 40 02 	sts	0x0240, r25	; 0x800240 <_ZL14pause_position.lto_priv.483+0x1>
   14a3a:	a0 93 41 02 	sts	0x0241, r26	; 0x800241 <_ZL14pause_position.lto_priv.483+0x2>
   14a3e:	b0 93 42 02 	sts	0x0242, r27	; 0x800242 <_ZL14pause_position.lto_priv.483+0x3>
                pause_position[Y_AXIS] = Y_PAUSE_POS;
   14a42:	80 e0       	ldi	r24, 0x00	; 0
   14a44:	90 e0       	ldi	r25, 0x00	; 0
   14a46:	ae e3       	ldi	r26, 0x3E	; 62
   14a48:	b3 e4       	ldi	r27, 0x43	; 67
   14a4a:	80 93 43 02 	sts	0x0243, r24	; 0x800243 <_ZL14pause_position.lto_priv.483+0x4>
   14a4e:	90 93 44 02 	sts	0x0244, r25	; 0x800244 <_ZL14pause_position.lto_priv.483+0x5>
   14a52:	a0 93 45 02 	sts	0x0245, r26	; 0x800245 <_ZL14pause_position.lto_priv.483+0x6>
   14a56:	b0 93 46 02 	sts	0x0246, r27	; 0x800246 <_ZL14pause_position.lto_priv.483+0x7>
                pause_position[Z_AXIS] = Z_PAUSE_LIFT;
   14a5a:	80 e0       	ldi	r24, 0x00	; 0
   14a5c:	90 e0       	ldi	r25, 0x00	; 0
   14a5e:	a0 ea       	ldi	r26, 0xA0	; 160
   14a60:	b1 e4       	ldi	r27, 0x41	; 65
   14a62:	80 93 47 02 	sts	0x0247, r24	; 0x800247 <_ZL14pause_position.lto_priv.483+0x8>
   14a66:	90 93 48 02 	sts	0x0248, r25	; 0x800248 <_ZL14pause_position.lto_priv.483+0x9>
   14a6a:	a0 93 49 02 	sts	0x0249, r26	; 0x800249 <_ZL14pause_position.lto_priv.483+0xa>
   14a6e:	b0 93 4a 02 	sts	0x024A, r27	; 0x80024a <_ZL14pause_position.lto_priv.483+0xb>
   14a72:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14a76:	8d 32       	cpi	r24, 0x2D	; 45
   14a78:	91 05       	cpc	r25, r1
   14a7a:	11 f4       	brne	.+4      	; 0x14a80 <process_commands() [clone .part.46]+0x206c>
   14a7c:	0c 94 b2 b2 	jmp	0x16564	; 0x16564 <process_commands() [clone .part.46]+0x3b50>
   14a80:	0c f0       	brlt	.+2      	; 0x14a84 <process_commands() [clone .part.46]+0x2070>
   14a82:	f0 c0       	rjmp	.+480    	; 0x14c64 <process_commands() [clone .part.46]+0x2250>
   14a84:	8f 31       	cpi	r24, 0x1F	; 31
   14a86:	91 05       	cpc	r25, r1
   14a88:	11 f4       	brne	.+4      	; 0x14a8e <process_commands() [clone .part.46]+0x207a>
   14a8a:	0c 94 3f b2 	jmp	0x1647e	; 0x1647e <process_commands() [clone .part.46]+0x3a6a>
   14a8e:	0c f0       	brlt	.+2      	; 0x14a92 <process_commands() [clone .part.46]+0x207e>
   14a90:	6a c0       	rjmp	.+212    	; 0x14b66 <process_commands() [clone .part.46]+0x2152>
   14a92:	8d 31       	cpi	r24, 0x1D	; 29
   14a94:	91 05       	cpc	r25, r1
   14a96:	11 f4       	brne	.+4      	; 0x14a9c <process_commands() [clone .part.46]+0x2088>
   14a98:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   14a9c:	4e 97       	sbiw	r24, 0x1e	; 30
   14a9e:	09 f0       	breq	.+2      	; 0x14aa2 <process_commands() [clone .part.46]+0x208e>
   14aa0:	fb ce       	rjmp	.-522    	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

        M30 [filename]

    */
    case 30:
      if (card.mounted){
   14aa2:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   14aa6:	88 23       	and	r24, r24
   14aa8:	11 f4       	brne	.+4      	; 0x14aae <process_commands() [clone .part.46]+0x209a>
   14aaa:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    lastnr++;
}

void CardReader::closefile(bool store_location)
{
  file.sync();
   14aae:	80 e2       	ldi	r24, 0x20	; 32
   14ab0:	97 e1       	ldi	r25, 0x17	; 23
   14ab2:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
  file.close();
   14ab6:	80 e2       	ldi	r24, 0x20	; 32
   14ab8:	97 e1       	ldi	r25, 0x17	; 23
   14aba:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
  saving = false;
   14abe:	10 92 8e 14 	sts	0x148E, r1	; 0x80148e <card>
  logging = false;
   14ac2:	10 92 8f 14 	sts	0x148F, r1	; 0x80148f <card+0x1>
        card.closefile();
        card.removeFile(strchr_pointer + 4);
   14ac6:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
   14aca:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
   14ace:	0c 5f       	subi	r16, 0xFC	; 252
   14ad0:	1f 4f       	sbci	r17, 0xFF	; 255
    }
}

void CardReader::removeFile(const char* name)
{
    if(!mounted) return;
   14ad2:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   14ad6:	88 23       	and	r24, r24
   14ad8:	11 f4       	brne	.+4      	; 0x14ade <process_commands() [clone .part.46]+0x20ca>
   14ada:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    file.close();
   14ade:	80 e2       	ldi	r24, 0x20	; 32
   14ae0:	97 e1       	ldi	r25, 0x17	; 23
   14ae2:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
    sdprinting = false;
   14ae6:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>

    const char *fname=name;
   14aea:	23 96       	adiw	r28, 0x03	; 3
   14aec:	1f af       	std	Y+63, r17	; 0x3f
   14aee:	0e af       	std	Y+62, r16	; 0x3e
   14af0:	23 97       	sbiw	r28, 0x03	; 3
    if (!diveSubfolder(fname))
   14af2:	ce 01       	movw	r24, r28
   14af4:	8f 5b       	subi	r24, 0xBF	; 191
   14af6:	9f 4f       	sbci	r25, 0xFF	; 255
   14af8:	0f 94 08 80 	call	0x30010	; 0x30010 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]>
   14afc:	88 23       	and	r24, r24
   14afe:	11 f4       	brne	.+4      	; 0x14b04 <process_commands() [clone .part.46]+0x20f0>
   14b00:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      return;

    if (file.remove(curDir, fname))
   14b04:	23 96       	adiw	r28, 0x03	; 3
   14b06:	4e ad       	ldd	r20, Y+62	; 0x3e
   14b08:	5f ad       	ldd	r21, Y+63	; 0x3f
   14b0a:	23 97       	sbiw	r28, 0x03	; 3
   14b0c:	60 91 39 15 	lds	r22, 0x1539	; 0x801539 <card+0xab>
   14b10:	70 91 3a 15 	lds	r23, 0x153A	; 0x80153a <card+0xac>
 * \brief Base class for SdFile with Print and C++ streams.
 */
class SdBaseFile {
 public:
  /** Create an instance. */
  SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {}
   14b14:	19 82       	std	Y+1, r1	; 0x01
   14b16:	1c 82       	std	Y+4, r1	; 0x04
 * \a dirFile is not a directory, \a path is not found
 * or an I/O error occurred.
 */
bool SdBaseFile::remove(SdBaseFile* dirFile, const char* path) {
  SdBaseFile file;
  if (!file.open(dirFile, path, O_WRITE)) goto fail;
   14b18:	22 e0       	ldi	r18, 0x02	; 2
   14b1a:	ce 01       	movw	r24, r28
   14b1c:	01 96       	adiw	r24, 0x01	; 1
   14b1e:	0f 94 5a 65 	call	0x2cab4	; 0x2cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>
   14b22:	81 11       	cpse	r24, r1
   14b24:	0c 94 15 b2 	jmp	0x1642a	; 0x1642a <process_commands() [clone .part.46]+0x3a16>
  return file.remove();

 fail:
  // can't set iostate - static function
  return false;
   14b28:	10 e0       	ldi	r17, 0x00	; 0
 * Reasons for failure include the file is a directory, is read only,
 * \a dirFile is not a directory, \a path is not found
 * or an I/O error occurred.
 */
bool SdBaseFile::remove(SdBaseFile* dirFile, const char* path) {
  SdBaseFile file;
   14b2a:	ce 01       	movw	r24, r28
   14b2c:	01 96       	adiw	r24, 0x01	; 1
   14b2e:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
   14b32:	11 23       	and	r17, r17
   14b34:	11 f4       	brne	.+4      	; 0x14b3a <process_commands() [clone .part.46]+0x2126>
   14b36:	0c 94 2f b2 	jmp	0x1645e	; 0x1645e <process_commands() [clone .part.46]+0x3a4a>
    {
      SERIAL_PROTOCOLPGM("File deleted:");
   14b3a:	85 e2       	ldi	r24, 0x25	; 37
   14b3c:	94 e8       	ldi	r25, 0x84	; 132
   14b3e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_PROTOCOLLN(fname);
   14b42:	23 96       	adiw	r28, 0x03	; 3
   14b44:	8e ad       	ldd	r24, Y+62	; 0x3e
   14b46:	9f ad       	ldd	r25, Y+63	; 0x3f
   14b48:	23 97       	sbiw	r28, 0x03	; 3
   14b4a:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
      sdpos = 0;
   14b4e:	10 92 a4 17 	sts	0x17A4, r1	; 0x8017a4 <card+0x316>
   14b52:	10 92 a5 17 	sts	0x17A5, r1	; 0x8017a5 <card+0x317>
   14b56:	10 92 a6 17 	sts	0x17A6, r1	; 0x8017a6 <card+0x318>
   14b5a:	10 92 a7 17 	sts	0x17A7, r1	; 0x8017a7 <card+0x319>
	  #ifdef SDCARD_SORT_ALPHA
		  presort();
   14b5e:	0f 94 d4 7d 	call	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
   14b62:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14b66:	8a 32       	cpi	r24, 0x2A	; 42
   14b68:	91 05       	cpc	r25, r1
   14b6a:	11 f4       	brne	.+4      	; 0x14b70 <process_commands() [clone .part.46]+0x215c>
   14b6c:	0c 94 66 b2 	jmp	0x164cc	; 0x164cc <process_commands() [clone .part.46]+0x3ab8>
   14b70:	8c 32       	cpi	r24, 0x2C	; 44
   14b72:	91 05       	cpc	r25, r1
   14b74:	11 f4       	brne	.+4      	; 0x14b7a <process_commands() [clone .part.46]+0x2166>
   14b76:	0c 94 99 b2 	jmp	0x16532	; 0x16532 <process_commands() [clone .part.46]+0x3b1e>
   14b7a:	80 97       	sbiw	r24, 0x20	; 32
   14b7c:	09 f0       	breq	.+2      	; 0x14b80 <process_commands() [clone .part.46]+0x216c>
   14b7e:	8c ce       	rjmp	.-744    	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
      - `S` - Starting file offset

    */
    case 32:
    {
      if(card.sdprinting) {
   14b80:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   14b84:	81 11       	cpse	r24, r1
        st_synchronize();
   14b86:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

      }

      const char* namestartpos = (strchr(strchr_pointer + 4,'!'));   //find ! to indicate filename string start.
   14b8a:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
   14b8e:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
   14b92:	0c 5f       	subi	r16, 0xFC	; 252
   14b94:	1f 4f       	sbci	r17, 0xFF	; 255
   14b96:	61 e2       	ldi	r22, 0x21	; 33
   14b98:	70 e0       	ldi	r23, 0x00	; 0
   14b9a:	c8 01       	movw	r24, r16
   14b9c:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
      if(namestartpos==NULL)
   14ba0:	00 97       	sbiw	r24, 0x00	; 0
   14ba2:	19 f0       	breq	.+6      	; 0x14baa <process_commands() [clone .part.46]+0x2196>
      {
        namestartpos=strchr_pointer + 4; //default name position, 4 letters after the M
      }
      else
        namestartpos++; //to skip the '!'
   14ba4:	8c 01       	movw	r16, r24
   14ba6:	0f 5f       	subi	r16, 0xFF	; 255
   14ba8:	1f 4f       	sbci	r17, 0xFF	; 255

      bool call_procedure=(code_seen('P'));
   14baa:	80 e5       	ldi	r24, 0x50	; 80
   14bac:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14bb0:	f8 2e       	mov	r15, r24

      if(strchr_pointer>namestartpos)
   14bb2:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   14bb6:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   14bba:	08 17       	cp	r16, r24
   14bbc:	19 07       	cpc	r17, r25
   14bbe:	08 f4       	brcc	.+2      	; 0x14bc2 <process_commands() [clone .part.46]+0x21ae>
        call_procedure=false;  //false alert, 'P' found within filename
   14bc0:	f1 2c       	mov	r15, r1

      if( card.mounted )
   14bc2:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   14bc6:	88 23       	and	r24, r24
   14bc8:	11 f4       	brne	.+4      	; 0x14bce <process_commands() [clone .part.46]+0x21ba>
   14bca:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        card.openFileReadFilteredGcode(namestartpos,!call_procedure);
   14bce:	61 e0       	ldi	r22, 0x01	; 1
   14bd0:	6f 25       	eor	r22, r15
   14bd2:	c8 01       	movw	r24, r16
   14bd4:	0f 94 8d 80 	call	0x3011a	; 0x3011a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]>
        if(code_seen('S'))
   14bd8:	83 e5       	ldi	r24, 0x53	; 83
   14bda:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14bde:	88 23       	and	r24, r24
   14be0:	99 f0       	breq	.+38     	; 0x14c08 <process_commands() [clone .part.46]+0x21f4>
          if(strchr_pointer<namestartpos) //only if "S" is occuring _before_ the filename
   14be2:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   14be6:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   14bea:	80 17       	cp	r24, r16
   14bec:	91 07       	cpc	r25, r17
   14bee:	60 f4       	brcc	.+24     	; 0x14c08 <process_commands() [clone .part.46]+0x21f4>
            card.setIndex(code_value_long());
   14bf0:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
   14bf4:	60 93 a4 17 	sts	0x17A4, r22	; 0x8017a4 <card+0x316>
   14bf8:	70 93 a5 17 	sts	0x17A5, r23	; 0x8017a5 <card+0x317>
   14bfc:	80 93 a6 17 	sts	0x17A6, r24	; 0x8017a6 <card+0x318>
   14c00:	90 93 a7 17 	sts	0x17A7, r25	; 0x8017a7 <card+0x319>
   14c04:	0f 94 de 76 	call	0x2edbc	; 0x2edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>
  SERIAL_ECHOLNRPGM(_n("SD card released"));////MSG_SD_CARD_RELEASED
}

void CardReader::startFileprint()
{
  if(mounted)
   14c08:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   14c0c:	88 23       	and	r24, r24
   14c0e:	31 f0       	breq	.+12     	; 0x14c1c <process_commands() [clone .part.46]+0x2208>
  {
    sdprinting = true;
   14c10:	81 e0       	ldi	r24, 0x01	; 1
   14c12:	80 93 90 14 	sts	0x1490, r24	; 0x801490 <card+0x2>
   14c16:	85 e0       	ldi	r24, 0x05	; 5
   14c18:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
        card.startFileprint();
        if(!call_procedure)
   14c1c:	f1 10       	cpse	r15, r1
   14c1e:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
  FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;};
  FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;};
  FORCE_INLINE uint32_t get_sdpos() { if (!isFileOpen()) return 0; else return(sdpos); };
   14c22:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   14c26:	88 23       	and	r24, r24
   14c28:	61 f0       	breq	.+24     	; 0x14c42 <process_commands() [clone .part.46]+0x222e>
        {
            if(!card.get_sdpos())
   14c2a:	80 91 a4 17 	lds	r24, 0x17A4	; 0x8017a4 <card+0x316>
   14c2e:	90 91 a5 17 	lds	r25, 0x17A5	; 0x8017a5 <card+0x317>
   14c32:	a0 91 a6 17 	lds	r26, 0x17A6	; 0x8017a6 <card+0x318>
   14c36:	b0 91 a7 17 	lds	r27, 0x17A7	; 0x8017a7 <card+0x319>
   14c3a:	89 2b       	or	r24, r25
   14c3c:	8a 2b       	or	r24, r26
   14c3e:	8b 2b       	or	r24, r27
   14c40:	69 f4       	brne	.+26     	; 0x14c5c <process_commands() [clone .part.46]+0x2248>
            {
                // A new print has started from scratch, reset stats
                failstats_reset_print();
   14c42:	0e 94 ab 5b 	call	0xb756	; 0xb756 <failstats_reset_print()>
                sdpos_atomic = 0;
   14c46:	10 92 82 03 	sts	0x0382, r1	; 0x800382 <sdpos_atomic>
   14c4a:	10 92 83 03 	sts	0x0383, r1	; 0x800383 <sdpos_atomic+0x1>
   14c4e:	10 92 84 03 	sts	0x0384, r1	; 0x800384 <sdpos_atomic+0x2>
   14c52:	10 92 85 03 	sts	0x0385, r1	; 0x800385 <sdpos_atomic+0x3>
   14c56:	80 e0       	ldi	r24, 0x00	; 0
   14c58:	0e 94 9e 81 	call	0x1033c	; 0x1033c <la10c_mode_change(LA10C_MODE)>
#ifndef LA_NOCOMPAT
                la10c_reset();
#endif
            }
            print_job_timer.start(); // procedure calls count as normal print time.
   14c5c:	0f 94 99 43 	call	0x28732	; 0x28732 <Stopwatch::start()>
   14c60:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14c64:	89 34       	cpi	r24, 0x49	; 73
   14c66:	91 05       	cpc	r25, r1
   14c68:	11 f4       	brne	.+4      	; 0x14c6e <process_commands() [clone .part.46]+0x225a>
   14c6a:	0c 94 f6 b2 	jmp	0x165ec	; 0x165ec <process_commands() [clone .part.46]+0x3bd8>
   14c6e:	f4 f4       	brge	.+60     	; 0x14cac <process_commands() [clone .part.46]+0x2298>
   14c70:	8e 32       	cpi	r24, 0x2E	; 46
   14c72:	91 05       	cpc	r25, r1
   14c74:	11 f4       	brne	.+4      	; 0x14c7a <process_commands() [clone .part.46]+0x2266>
   14c76:	0c 94 b8 b2 	jmp	0x16570	; 0x16570 <process_commands() [clone .part.46]+0x3b5c>
   14c7a:	88 34       	cpi	r24, 0x48	; 72
   14c7c:	91 05       	cpc	r25, r1
   14c7e:	09 f0       	breq	.+2      	; 0x14c82 <process_commands() [clone .part.46]+0x226e>
   14c80:	0b ce       	rjmp	.-1002   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
        - `Snnn` - Set printer state 0 = not_ready, 1 = ready
    */
    case 72:
    {
        if(code_seen('S')){
   14c82:	83 e5       	ldi	r24, 0x53	; 83
   14c84:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14c88:	88 23       	and	r24, r24
   14c8a:	11 f4       	brne	.+4      	; 0x14c90 <process_commands() [clone .part.46]+0x227c>
   14c8c:	0c 94 e7 b2 	jmp	0x165ce	; 0x165ce <process_commands() [clone .part.46]+0x3bba>
            switch (code_value_uint8()){
   14c90:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   14c94:	88 23       	and	r24, r24
   14c96:	11 f4       	brne	.+4      	; 0x14c9c <process_commands() [clone .part.46]+0x2288>
   14c98:	0c 94 e4 b2 	jmp	0x165c8	; 0x165c8 <process_commands() [clone .part.46]+0x3bb4>
   14c9c:	81 30       	cpi	r24, 0x01	; 1
   14c9e:	11 f0       	breq	.+4      	; 0x14ca4 <process_commands() [clone .part.46]+0x2290>
   14ca0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   14ca4:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   14ca8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14cac:	8c 34       	cpi	r24, 0x4C	; 76
   14cae:	91 05       	cpc	r25, r1
   14cb0:	11 f4       	brne	.+4      	; 0x14cb6 <process_commands() [clone .part.46]+0x22a2>
   14cb2:	0c 94 96 b3 	jmp	0x1672c	; 0x1672c <process_commands() [clone .part.46]+0x3d18>
   14cb6:	14 f0       	brlt	.+4      	; 0x14cbc <process_commands() [clone .part.46]+0x22a8>
   14cb8:	0c 94 a9 b3 	jmp	0x16752	; 0x16752 <process_commands() [clone .part.46]+0x3d3e>
   14cbc:	8b 34       	cpi	r24, 0x4B	; 75
   14cbe:	91 05       	cpc	r25, r1
   14cc0:	09 f0       	breq	.+2      	; 0x14cc4 <process_commands() [clone .part.46]+0x22b0>
   14cc2:	ea cd       	rjmp	.-1068   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    /*!
    ### M75 - Start the print job timer <a href="https://reprap.org/wiki/G-code#M75:_Start_the_print_job_timer">M75: Start the print job timer</a>
    */
    case 75:
    {
        if (!filament_presence_check()) {
   14cc4:	0e 94 e7 f5 	call	0x1ebce	; 0x1ebce <filament_presence_check()>
   14cc8:	88 23       	and	r24, r24
   14cca:	11 f4       	brne	.+4      	; 0x14cd0 <process_commands() [clone .part.46]+0x22bc>
   14ccc:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   14cd0:	c5 cf       	rjmp	.-118    	; 0x14c5c <process_commands() [clone .part.46]+0x2248>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14cd2:	8e 36       	cpi	r24, 0x6E	; 110
   14cd4:	91 05       	cpc	r25, r1
   14cd6:	11 f4       	brne	.+4      	; 0x14cdc <process_commands() [clone .part.46]+0x22c8>
   14cd8:	0c 94 5c b6 	jmp	0x16cb8	; 0x16cb8 <process_commands() [clone .part.46]+0x42a4>
   14cdc:	0c f0       	brlt	.+2      	; 0x14ce0 <process_commands() [clone .part.46]+0x22cc>
   14cde:	86 c0       	rjmp	.+268    	; 0x14dec <process_commands() [clone .part.46]+0x23d8>
   14ce0:	86 35       	cpi	r24, 0x56	; 86
   14ce2:	91 05       	cpc	r25, r1
   14ce4:	11 f4       	brne	.+4      	; 0x14cea <process_commands() [clone .part.46]+0x22d6>
   14ce6:	0c 94 b5 b5 	jmp	0x16b6a	; 0x16b6a <process_commands() [clone .part.46]+0x4156>
   14cea:	d4 f5       	brge	.+116    	; 0x14d60 <process_commands() [clone .part.46]+0x234c>
   14cec:	83 35       	cpi	r24, 0x53	; 83
   14cee:	91 05       	cpc	r25, r1
   14cf0:	11 f4       	brne	.+4      	; 0x14cf6 <process_commands() [clone .part.46]+0x22e2>
   14cf2:	0c 94 5f b5 	jmp	0x16abe	; 0x16abe <process_commands() [clone .part.46]+0x40aa>
   14cf6:	84 f4       	brge	.+32     	; 0x14d18 <process_commands() [clone .part.46]+0x2304>
   14cf8:	8f 34       	cpi	r24, 0x4F	; 79
   14cfa:	91 05       	cpc	r25, r1
   14cfc:	11 f4       	brne	.+4      	; 0x14d02 <process_commands() [clone .part.46]+0x22ee>
   14cfe:	0c 94 19 b4 	jmp	0x16832	; 0x16832 <process_commands() [clone .part.46]+0x3e1e>
   14d02:	82 35       	cpi	r24, 0x52	; 82
   14d04:	91 05       	cpc	r25, r1
   14d06:	09 f0       	breq	.+2      	; 0x14d0a <process_commands() [clone .part.46]+0x22f6>
   14d08:	c7 cd       	rjmp	.-1138   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    /*!
    ### M82 - Set E axis to absolute mode <a href="https://reprap.org/wiki/G-code#M82:_Set_extruder_to_absolute_mode">M82: Set extruder to absolute mode</a>
    Makes the extruder interpret extrusion as absolute positions.
    */
    case 82:
      axis_relative_modes &= ~E_AXIS_MASK;
   14d0a:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   14d0e:	87 7f       	andi	r24, 0xF7	; 247
   14d10:	80 93 e5 03 	sts	0x03E5, r24	; 0x8003e5 <axis_relative_modes>
   14d14:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14d18:	84 35       	cpi	r24, 0x54	; 84
   14d1a:	91 05       	cpc	r25, r1
   14d1c:	11 f4       	brne	.+4      	; 0x14d22 <process_commands() [clone .part.46]+0x230e>
   14d1e:	0c 94 65 b5 	jmp	0x16aca	; 0x16aca <process_commands() [clone .part.46]+0x40b6>
   14d22:	85 35       	cpi	r24, 0x55	; 85
   14d24:	91 05       	cpc	r25, r1
   14d26:	09 f0       	breq	.+2      	; 0x14d2a <process_commands() [clone .part.46]+0x2316>
   14d28:	b7 cd       	rjmp	.-1170   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

    #### Parameters
    - `S` - specifies the time in seconds. If a value of 0 is specified, the timer is disabled.
    */
    case 85: // M85
      if(code_seen('S')) {
   14d2a:	83 e5       	ldi	r24, 0x53	; 83
   14d2c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14d30:	88 23       	and	r24, r24
   14d32:	11 f4       	brne	.+4      	; 0x14d38 <process_commands() [clone .part.46]+0x2324>
   14d34:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        max_inactive_time = code_value() * 1000;
   14d38:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14d3c:	20 e0       	ldi	r18, 0x00	; 0
   14d3e:	30 e0       	ldi	r19, 0x00	; 0
   14d40:	4a e7       	ldi	r20, 0x7A	; 122
   14d42:	54 e4       	ldi	r21, 0x44	; 68
   14d44:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   14d48:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   14d4c:	60 93 7e 03 	sts	0x037E, r22	; 0x80037e <max_inactive_time>
   14d50:	70 93 7f 03 	sts	0x037F, r23	; 0x80037f <max_inactive_time+0x1>
   14d54:	80 93 80 03 	sts	0x0380, r24	; 0x800380 <max_inactive_time+0x2>
   14d58:	90 93 81 03 	sts	0x0381, r25	; 0x800381 <max_inactive_time+0x3>
   14d5c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14d60:	89 36       	cpi	r24, 0x69	; 105
   14d62:	91 05       	cpc	r25, r1
   14d64:	11 f4       	brne	.+4      	; 0x14d6a <process_commands() [clone .part.46]+0x2356>
   14d66:	0c 94 75 b4 	jmp	0x168ea	; 0x168ea <process_commands() [clone .part.46]+0x3ed6>
   14d6a:	d4 f4       	brge	.+52     	; 0x14da0 <process_commands() [clone .part.46]+0x238c>
   14d6c:	8c 35       	cpi	r24, 0x5C	; 92
   14d6e:	91 05       	cpc	r25, r1
   14d70:	11 f4       	brne	.+4      	; 0x14d76 <process_commands() [clone .part.46]+0x2362>
   14d72:	0c 94 d2 b5 	jmp	0x16ba4	; 0x16ba4 <process_commands() [clone .part.46]+0x4190>
   14d76:	88 36       	cpi	r24, 0x68	; 104
   14d78:	91 05       	cpc	r25, r1
   14d7a:	09 f0       	breq	.+2      	; 0x14d7e <process_commands() [clone .part.46]+0x236a>
   14d7c:	8d cd       	rjmp	.-1254   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
  #### Parameters
       - `S` - Target temperature
    */
    case 104: // M104
    {
          if (code_seen('S'))
   14d7e:	83 e5       	ldi	r24, 0x53	; 83
   14d80:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14d84:	88 23       	and	r24, r24
   14d86:	11 f4       	brne	.+4      	; 0x14d8c <process_commands() [clone .part.46]+0x2378>
   14d88:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
          {
              setTargetHotend(code_value());
   14d8c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   14d90:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   14d94:	70 93 b7 0d 	sts	0x0DB7, r23	; 0x800db7 <target_temperature+0x1>
   14d98:	60 93 b6 0d 	sts	0x0DB6, r22	; 0x800db6 <target_temperature>
   14d9c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14da0:	8b 36       	cpi	r24, 0x6B	; 107
   14da2:	91 05       	cpc	r25, r1
   14da4:	11 f4       	brne	.+4      	; 0x14daa <process_commands() [clone .part.46]+0x2396>
   14da6:	0c 94 5c b5 	jmp	0x16ab8	; 0x16ab8 <process_commands() [clone .part.46]+0x40a4>
   14daa:	14 f4       	brge	.+4      	; 0x14db0 <process_commands() [clone .part.46]+0x239c>
   14dac:	0c 94 4e b5 	jmp	0x16a9c	; 0x16a9c <process_commands() [clone .part.46]+0x4088>
   14db0:	8d 36       	cpi	r24, 0x6D	; 109
   14db2:	91 05       	cpc	r25, r1
   14db4:	09 f0       	breq	.+2      	; 0x14db8 <process_commands() [clone .part.46]+0x23a4>
   14db6:	70 cd       	rjmp	.-1312   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    Command always waits for both cool down and heat up.
    If no parameters are supplied waits for previously set extruder temperature.
    */
    case 109:
    {
      LCD_MESSAGERPGM(_T(MSG_HEATING));
   14db8:	8b e6       	ldi	r24, 0x6B	; 107
   14dba:	9d e4       	ldi	r25, 0x4D	; 77
   14dbc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   14dc0:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
	  heating_status = HeatingStatus::EXTRUDER_HEATING;
   14dc4:	81 e0       	ldi	r24, 0x01	; 1
   14dc6:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>
      prusa_statistics(1);

#ifdef AUTOTEMP
        autotemp_enabled=false;
      #endif
      if (code_seen('S')) {
   14dca:	83 e5       	ldi	r24, 0x53	; 83
   14dcc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14dd0:	88 23       	and	r24, r24
   14dd2:	11 f4       	brne	.+4      	; 0x14dd8 <process_commands() [clone .part.46]+0x23c4>
   14dd4:	0c 94 89 b4 	jmp	0x16912	; 0x16912 <process_commands() [clone .part.46]+0x3efe>
          setTargetHotend(code_value());
            } else if (code_seen('R')) {
                setTargetHotend(code_value());
   14dd8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14ddc:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   14de0:	70 93 b7 0d 	sts	0x0DB7, r23	; 0x800db7 <target_temperature+0x1>
   14de4:	60 93 b6 0d 	sts	0x0DB6, r22	; 0x800db6 <target_temperature>
   14de8:	0c 94 8f b4 	jmp	0x1691e	; 0x1691e <process_commands() [clone .part.46]+0x3f0a>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14dec:	87 37       	cpi	r24, 0x77	; 119
   14dee:	91 05       	cpc	r25, r1
   14df0:	11 f4       	brne	.+4      	; 0x14df6 <process_commands() [clone .part.46]+0x23e2>
   14df2:	0c 94 a1 b7 	jmp	0x16f42	; 0x16f42 <process_commands() [clone .part.46]+0x452e>
   14df6:	ac f5       	brge	.+106    	; 0x14e62 <process_commands() [clone .part.46]+0x244e>
   14df8:	82 37       	cpi	r24, 0x72	; 114
   14dfa:	91 05       	cpc	r25, r1
   14dfc:	11 f4       	brne	.+4      	; 0x14e02 <process_commands() [clone .part.46]+0x23ee>
   14dfe:	0c 94 56 b7 	jmp	0x16eac	; 0x16eac <process_commands() [clone .part.46]+0x4498>
   14e02:	b4 f4       	brge	.+44     	; 0x14e30 <process_commands() [clone .part.46]+0x241c>
   14e04:	80 37       	cpi	r24, 0x70	; 112
   14e06:	91 05       	cpc	r25, r1
   14e08:	11 f4       	brne	.+4      	; 0x14e0e <process_commands() [clone .part.46]+0x23fa>
   14e0a:	0c 94 62 b4 	jmp	0x168c4	; 0x168c4 <process_commands() [clone .part.46]+0x3eb0>
   14e0e:	81 37       	cpi	r24, 0x71	; 113
   14e10:	91 05       	cpc	r25, r1
   14e12:	09 f0       	breq	.+2      	; 0x14e16 <process_commands() [clone .part.46]+0x2402>
   14e14:	41 cd       	rjmp	.-1406   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

    #### Parameters
    - `S` - Seconds. Default is 2 seconds between "busy" messages
    */
	case 113:
		if (code_seen('S')) {
   14e16:	83 e5       	ldi	r24, 0x53	; 83
   14e18:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14e1c:	88 23       	and	r24, r24
   14e1e:	11 f4       	brne	.+4      	; 0x14e24 <process_commands() [clone .part.46]+0x2410>
   14e20:	0c 94 6d b6 	jmp	0x16cda	; 0x16cda <process_commands() [clone .part.46]+0x42c6>
			host_keepalive_interval = code_value_uint8();
   14e24:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   14e28:	80 93 2f 02 	sts	0x022F, r24	; 0x80022f <host_keepalive_interval>
   14e2c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14e30:	85 37       	cpi	r24, 0x75	; 117
   14e32:	91 05       	cpc	r25, r1
   14e34:	11 f4       	brne	.+4      	; 0x14e3a <process_commands() [clone .part.46]+0x2426>
   14e36:	0c 94 59 b7 	jmp	0x16eb2	; 0x16eb2 <process_commands() [clone .part.46]+0x449e>
   14e3a:	14 f0       	brlt	.+4      	; 0x14e40 <process_commands() [clone .part.46]+0x242c>
   14e3c:	0c 94 69 b7 	jmp	0x16ed2	; 0x16ed2 <process_commands() [clone .part.46]+0x44be>
   14e40:	83 37       	cpi	r24, 0x73	; 115
   14e42:	91 05       	cpc	r25, r1
   14e44:	09 f0       	breq	.+2      	; 0x14e48 <process_commands() [clone .part.46]+0x2434>
   14e46:	28 cd       	rjmp	.-1456   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
    - V - Report current installed firmware version
    - U - Firmware version provided by G-code to be compared to current one.
    */
	case 115: // M115
      if (code_seen('V')) {
   14e48:	86 e5       	ldi	r24, 0x56	; 86
   14e4a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14e4e:	88 23       	and	r24, r24
   14e50:	11 f4       	brne	.+4      	; 0x14e56 <process_commands() [clone .part.46]+0x2442>
   14e52:	0c 94 82 b6 	jmp	0x16d04	; 0x16d04 <process_commands() [clone .part.46]+0x42f0>
          // Report the Prusa version number.
          SERIAL_PROTOCOLLNRPGM(FW_VERSION_STR_P());
   14e56:	86 e0       	ldi	r24, 0x06	; 6
   14e58:	94 e8       	ldi	r25, 0x84	; 132
   14e5a:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   14e5e:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14e62:	8c 38       	cpi	r24, 0x8C	; 140
   14e64:	91 05       	cpc	r25, r1
   14e66:	11 f4       	brne	.+4      	; 0x14e6c <process_commands() [clone .part.46]+0x2458>
   14e68:	0c 94 66 b4 	jmp	0x168cc	; 0x168cc <process_commands() [clone .part.46]+0x3eb8>
   14e6c:	54 f4       	brge	.+20     	; 0x14e82 <process_commands() [clone .part.46]+0x246e>
   14e6e:	8b 37       	cpi	r24, 0x7B	; 123
   14e70:	91 05       	cpc	r25, r1
   14e72:	11 f4       	brne	.+4      	; 0x14e78 <process_commands() [clone .part.46]+0x2464>
   14e74:	0c 94 06 b8 	jmp	0x1700c	; 0x1700c <process_commands() [clone .part.46]+0x45f8>
   14e78:	8d 37       	cpi	r24, 0x7D	; 125
   14e7a:	91 05       	cpc	r25, r1
   14e7c:	09 f4       	brne	.+2      	; 0x14e80 <process_commands() [clone .part.46]+0x246c>
   14e7e:	80 cd       	rjmp	.-1280   	; 0x14980 <process_commands() [clone .part.46]+0x1f6c>
   14e80:	0b cd       	rjmp	.-1514   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
   14e82:	8e 3b       	cpi	r24, 0xBE	; 190
   14e84:	91 05       	cpc	r25, r1
   14e86:	11 f4       	brne	.+4      	; 0x14e8c <process_commands() [clone .part.46]+0x2478>
   14e88:	0c 94 bf b4 	jmp	0x1697e	; 0x1697e <process_commands() [clone .part.46]+0x3f6a>
   14e8c:	88 3c       	cpi	r24, 0xC8	; 200
   14e8e:	91 05       	cpc	r25, r1
   14e90:	11 f4       	brne	.+4      	; 0x14e96 <process_commands() [clone .part.46]+0x2482>
   14e92:	0c 94 09 b8 	jmp	0x17012	; 0x17012 <process_commands() [clone .part.46]+0x45fe>
   14e96:	8b 39       	cpi	r24, 0x9B	; 155
   14e98:	91 05       	cpc	r25, r1
   14e9a:	09 f0       	breq	.+2      	; 0x14e9e <process_commands() [clone .part.46]+0x248a>
   14e9c:	fd cc       	rjmp	.-1542   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
          bit 6 = free
          bit 7 = free
     */
    case 155:
    {
        if (code_seen('S')){
   14e9e:	83 e5       	ldi	r24, 0x53	; 83
   14ea0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14ea4:	88 23       	and	r24, r24
   14ea6:	61 f0       	breq	.+24     	; 0x14ec0 <process_commands() [clone .part.46]+0x24ac>
            autoReportFeatures.SetPeriod( code_value_uint8() );
   14ea8:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
    inline void SetMask(uint8_t mask){ arFunctionsActive.byte = mask; }

    /// sets the autoreporting timer's period
    /// setting it to zero stops the timer
    void SetPeriod(uint8_t p){
        auto_report_period = p;
   14eac:	80 93 88 14 	sts	0x1488, r24	; 0x801488 <autoReportFeatures+0x1>
        if (auto_report_period != 0){
   14eb0:	88 23       	and	r24, r24
   14eb2:	11 f4       	brne	.+4      	; 0x14eb8 <process_commands() [clone .part.46]+0x24a4>
   14eb4:	0c 94 81 b4 	jmp	0x16902	; 0x16902 <process_commands() [clone .part.46]+0x3eee>
          auto_report_timer.start();
   14eb8:	89 e8       	ldi	r24, 0x89	; 137
   14eba:	94 e1       	ldi	r25, 0x14	; 20
   14ebc:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
    case 155:
    {
        if (code_seen('S')){
            autoReportFeatures.SetPeriod( code_value_uint8() );
        }
        if (code_seen('C')){
   14ec0:	83 e4       	ldi	r24, 0x43	; 67
   14ec2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14ec6:	88 23       	and	r24, r24
   14ec8:	11 f4       	brne	.+4      	; 0x14ece <process_commands() [clone .part.46]+0x24ba>
   14eca:	0c 94 85 b4 	jmp	0x1690a	; 0x1690a <process_commands() [clone .part.46]+0x3ef6>
            autoReportFeatures.SetMask(code_value_uint8());
   14ece:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
    inline void SetFans(uint8_t v){ arFunctionsActive.bits.fans = v; }

    inline bool Pos()const { return arFunctionsActive.bits.pos != 0; }
    inline void SetPos(uint8_t v){ arFunctionsActive.bits.pos = v; }

    inline void SetMask(uint8_t mask){ arFunctionsActive.byte = mask; }
   14ed2:	80 93 87 14 	sts	0x1487, r24	; 0x801487 <autoReportFeatures>
   14ed6:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14eda:	85 3f       	cpi	r24, 0xF5	; 245
   14edc:	f1 e0       	ldi	r31, 0x01	; 1
   14ede:	9f 07       	cpc	r25, r31
   14ee0:	11 f4       	brne	.+4      	; 0x14ee6 <process_commands() [clone .part.46]+0x24d2>
   14ee2:	0c 94 f3 bf 	jmp	0x17fe6	; 0x17fe6 <process_commands() [clone .part.46]+0x55d2>
   14ee6:	0c f0       	brlt	.+2      	; 0x14eea <process_commands() [clone .part.46]+0x24d6>
   14ee8:	60 c4       	rjmp	.+2240   	; 0x157aa <process_commands() [clone .part.46]+0x2d96>
   14eea:	81 15       	cp	r24, r1
   14eec:	31 e0       	ldi	r19, 0x01	; 1
   14eee:	93 07       	cpc	r25, r19
   14ef0:	11 f4       	brne	.+4      	; 0x14ef6 <process_commands() [clone .part.46]+0x24e2>
   14ef2:	0c 94 75 bb 	jmp	0x176ea	; 0x176ea <process_commands() [clone .part.46]+0x4cd6>
   14ef6:	0c f0       	brlt	.+2      	; 0x14efa <process_commands() [clone .part.46]+0x24e6>
   14ef8:	24 c1       	rjmp	.+584    	; 0x15142 <process_commands() [clone .part.46]+0x272e>
   14efa:	80 3d       	cpi	r24, 0xD0	; 208
   14efc:	91 05       	cpc	r25, r1
   14efe:	11 f4       	brne	.+4      	; 0x14f04 <process_commands() [clone .part.46]+0x24f0>
   14f00:	0c 94 b8 b9 	jmp	0x17370	; 0x17370 <process_commands() [clone .part.46]+0x495c>
   14f04:	0c f0       	brlt	.+2      	; 0x14f08 <process_commands() [clone .part.46]+0x24f4>
   14f06:	77 c0       	rjmp	.+238    	; 0x14ff6 <process_commands() [clone .part.46]+0x25e2>
   14f08:	8d 3c       	cpi	r24, 0xCD	; 205
   14f0a:	91 05       	cpc	r25, r1
   14f0c:	11 f4       	brne	.+4      	; 0x14f12 <process_commands() [clone .part.46]+0x24fe>
   14f0e:	0c 94 22 b9 	jmp	0x17244	; 0x17244 <process_commands() [clone .part.46]+0x4830>
   14f12:	ac f5       	brge	.+106    	; 0x14f7e <process_commands() [clone .part.46]+0x256a>
   14f14:	8b 3c       	cpi	r24, 0xCB	; 203
   14f16:	91 05       	cpc	r25, r1
   14f18:	11 f4       	brne	.+4      	; 0x14f1e <process_commands() [clone .part.46]+0x250a>
   14f1a:	0c 94 99 b8 	jmp	0x17132	; 0x17132 <process_commands() [clone .part.46]+0x471e>
   14f1e:	8c 3c       	cpi	r24, 0xCC	; 204
   14f20:	91 05       	cpc	r25, r1
   14f22:	09 f0       	breq	.+2      	; 0x14f26 <process_commands() [clone .part.46]+0x2512>
   14f24:	b9 cc       	rjmp	.-1678   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    - `R` - filmanent only moves
    - `T` - travel moves (as of now T is ignored)
    */
    case 204:
      {
        if(code_seen('S')) {
   14f26:	83 e5       	ldi	r24, 0x53	; 83
   14f28:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14f2c:	88 23       	and	r24, r24
   14f2e:	11 f4       	brne	.+4      	; 0x14f34 <process_commands() [clone .part.46]+0x2520>
   14f30:	0c 94 f1 b8 	jmp	0x171e2	; 0x171e2 <process_commands() [clone .part.46]+0x47ce>
          // Legacy acceleration format. This format is used by the legacy Marlin, MK2 or MK3 firmware,
          // and it is also generated by Slic3r to control acceleration per extrusion type
          // (there is a separate acceleration settings in Slicer for perimeter, first layer etc).
          cs.acceleration = cs.travel_acceleration = code_value();
   14f34:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14f38:	60 93 7e 0e 	sts	0x0E7E, r22	; 0x800e7e <cs+0xc0>
   14f3c:	70 93 7f 0e 	sts	0x0E7F, r23	; 0x800e7f <cs+0xc1>
   14f40:	80 93 80 0e 	sts	0x0E80, r24	; 0x800e80 <cs+0xc2>
   14f44:	90 93 81 0e 	sts	0x0E81, r25	; 0x800e81 <cs+0xc3>
   14f48:	60 93 f2 0d 	sts	0x0DF2, r22	; 0x800df2 <cs+0x34>
   14f4c:	70 93 f3 0d 	sts	0x0DF3, r23	; 0x800df3 <cs+0x35>
   14f50:	80 93 f4 0d 	sts	0x0DF4, r24	; 0x800df4 <cs+0x36>
   14f54:	90 93 f5 0d 	sts	0x0DF5, r25	; 0x800df5 <cs+0x37>
          // Interpret the T value as retract acceleration in the old Marlin format.
          if(code_seen('T'))
   14f58:	84 e5       	ldi	r24, 0x54	; 84
   14f5a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14f5e:	88 23       	and	r24, r24
   14f60:	11 f4       	brne	.+4      	; 0x14f66 <process_commands() [clone .part.46]+0x2552>
   14f62:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            cs.retract_acceleration = code_value();
   14f66:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14f6a:	60 93 f6 0d 	sts	0x0DF6, r22	; 0x800df6 <cs+0x38>
   14f6e:	70 93 f7 0d 	sts	0x0DF7, r23	; 0x800df7 <cs+0x39>
   14f72:	80 93 f8 0d 	sts	0x0DF8, r24	; 0x800df8 <cs+0x3a>
   14f76:	90 93 f9 0d 	sts	0x0DF9, r25	; 0x800df9 <cs+0x3b>
   14f7a:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14f7e:	8e 3c       	cpi	r24, 0xCE	; 206
   14f80:	91 05       	cpc	r25, r1
   14f82:	11 f4       	brne	.+4      	; 0x14f88 <process_commands() [clone .part.46]+0x2574>
   14f84:	0c 94 9b b9 	jmp	0x17336	; 0x17336 <process_commands() [clone .part.46]+0x4922>
   14f88:	8f 3c       	cpi	r24, 0xCF	; 207
   14f8a:	91 05       	cpc	r25, r1
   14f8c:	09 f0       	breq	.+2      	; 0x14f90 <process_commands() [clone .part.46]+0x257c>
   14f8e:	84 cc       	rjmp	.-1784   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    - `F` - retraction feedrate, in mm/min
    - `Z` - additional zlift/hop
    */
    case 207: //M207 - set retract length S[positive mm] F[feedrate mm/min] Z[additional zlift/hop]
    {
      if(code_seen('S'))
   14f90:	83 e5       	ldi	r24, 0x53	; 83
   14f92:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14f96:	88 23       	and	r24, r24
   14f98:	51 f0       	breq	.+20     	; 0x14fae <process_commands() [clone .part.46]+0x259a>
      {
        cs.retract_length = code_value() ;
   14f9a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14f9e:	60 93 41 0e 	sts	0x0E41, r22	; 0x800e41 <cs+0x83>
   14fa2:	70 93 42 0e 	sts	0x0E42, r23	; 0x800e42 <cs+0x84>
   14fa6:	80 93 43 0e 	sts	0x0E43, r24	; 0x800e43 <cs+0x85>
   14faa:	90 93 44 0e 	sts	0x0E44, r25	; 0x800e44 <cs+0x86>
      }
      if(code_seen('F'))
   14fae:	86 e4       	ldi	r24, 0x46	; 70
   14fb0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14fb4:	88 23       	and	r24, r24
   14fb6:	61 f0       	breq	.+24     	; 0x14fd0 <process_commands() [clone .part.46]+0x25bc>
      {
        cs.retract_feedrate = get_feedrate_mm_s(code_value());
   14fb8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14fbc:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
   14fc0:	60 93 45 0e 	sts	0x0E45, r22	; 0x800e45 <cs+0x87>
   14fc4:	70 93 46 0e 	sts	0x0E46, r23	; 0x800e46 <cs+0x88>
   14fc8:	80 93 47 0e 	sts	0x0E47, r24	; 0x800e47 <cs+0x89>
   14fcc:	90 93 48 0e 	sts	0x0E48, r25	; 0x800e48 <cs+0x8a>
      }
      if(code_seen('Z'))
   14fd0:	8a e5       	ldi	r24, 0x5A	; 90
   14fd2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   14fd6:	88 23       	and	r24, r24
   14fd8:	11 f4       	brne	.+4      	; 0x14fde <process_commands() [clone .part.46]+0x25ca>
   14fda:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        cs.retract_zlift = code_value() ;
   14fde:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   14fe2:	60 93 49 0e 	sts	0x0E49, r22	; 0x800e49 <cs+0x8b>
   14fe6:	70 93 4a 0e 	sts	0x0E4A, r23	; 0x800e4a <cs+0x8c>
   14fea:	80 93 4b 0e 	sts	0x0E4B, r24	; 0x800e4b <cs+0x8d>
   14fee:	90 93 4c 0e 	sts	0x0E4C, r25	; 0x800e4c <cs+0x8e>
   14ff2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   14ff6:	8c 3d       	cpi	r24, 0xDC	; 220
   14ff8:	91 05       	cpc	r25, r1
   14ffa:	11 f4       	brne	.+4      	; 0x15000 <process_commands() [clone .part.46]+0x25ec>
   14ffc:	0c 94 1f ba 	jmp	0x1743e	; 0x1743e <process_commands() [clone .part.46]+0x4a2a>
   15000:	0c f0       	brlt	.+2      	; 0x15004 <process_commands() [clone .part.46]+0x25f0>
   15002:	82 c0       	rjmp	.+260    	; 0x15108 <process_commands() [clone .part.46]+0x26f4>
   15004:	81 3d       	cpi	r24, 0xD1	; 209
   15006:	91 05       	cpc	r25, r1
   15008:	11 f4       	brne	.+4      	; 0x1500e <process_commands() [clone .part.46]+0x25fa>
   1500a:	0c 94 dc b9 	jmp	0x173b8	; 0x173b8 <process_commands() [clone .part.46]+0x49a4>
   1500e:	86 3d       	cpi	r24, 0xD6	; 214
   15010:	91 05       	cpc	r25, r1
   15012:	09 f0       	breq	.+2      	; 0x15016 <process_commands() [clone .part.46]+0x2602>
   15014:	41 cc       	rjmp	.-1918   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
            greater than or less than the minimum and maximum segment length.  Set to 0 to disable.
    */
    case 214:
    {
        // Extract all possible parameters if they appear
        float p = code_seen('P') ? code_value() : cs.mm_per_arc_segment;
   15016:	80 e5       	ldi	r24, 0x50	; 80
   15018:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1501c:	88 23       	and	r24, r24
   1501e:	11 f4       	brne	.+4      	; 0x15024 <process_commands() [clone .part.46]+0x2610>
   15020:	0c 94 0b ba 	jmp	0x17416	; 0x17416 <process_commands() [clone .part.46]+0x4a02>
   15024:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15028:	2b 01       	movw	r4, r22
   1502a:	3c 01       	movw	r6, r24
        float s = code_seen('S') ? code_value() : cs.min_mm_per_arc_segment;
   1502c:	83 e5       	ldi	r24, 0x53	; 83
   1502e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15032:	88 23       	and	r24, r24
   15034:	11 f4       	brne	.+4      	; 0x1503a <process_commands() [clone .part.46]+0x2626>
   15036:	0c 94 15 ba 	jmp	0x1742a	; 0x1742a <process_commands() [clone .part.46]+0x4a16>
   1503a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1503e:	4b 01       	movw	r8, r22
   15040:	5c 01       	movw	r10, r24
        unsigned char n = code_seen('N') ? code_value() : cs.n_arc_correction;
   15042:	8e e4       	ldi	r24, 0x4E	; 78
   15044:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15048:	d0 90 8a 0e 	lds	r13, 0x0E8A	; 0x800e8a <cs+0xcc>
   1504c:	88 23       	and	r24, r24
   1504e:	29 f0       	breq	.+10     	; 0x1505a <process_commands() [clone .part.46]+0x2646>
   15050:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15054:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   15058:	d6 2e       	mov	r13, r22
        unsigned short r = code_seen('R') ? code_value() : cs.min_arc_segments;
   1505a:	82 e5       	ldi	r24, 0x52	; 82
   1505c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15060:	e0 90 8b 0e 	lds	r14, 0x0E8B	; 0x800e8b <cs+0xcd>
   15064:	f0 90 8c 0e 	lds	r15, 0x0E8C	; 0x800e8c <cs+0xce>
   15068:	88 23       	and	r24, r24
   1506a:	29 f0       	breq	.+10     	; 0x15076 <process_commands() [clone .part.46]+0x2662>
   1506c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15070:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   15074:	7b 01       	movw	r14, r22
        unsigned short f = code_seen('F') ? code_value() : cs.arc_segments_per_sec;
   15076:	86 e4       	ldi	r24, 0x46	; 70
   15078:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1507c:	00 91 8d 0e 	lds	r16, 0x0E8D	; 0x800e8d <cs+0xcf>
   15080:	10 91 8e 0e 	lds	r17, 0x0E8E	; 0x800e8e <cs+0xd0>
   15084:	88 23       	and	r24, r24
   15086:	29 f0       	breq	.+10     	; 0x15092 <process_commands() [clone .part.46]+0x267e>
   15088:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1508c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   15090:	8b 01       	movw	r16, r22

        // Ensure mm_per_arc_segment is greater than 0, and that min_mm_per_arc_segment is sero or greater than or equal to mm_per_arc_segment
        if (p <=0 || s < 0 || p < s)
   15092:	20 e0       	ldi	r18, 0x00	; 0
   15094:	30 e0       	ldi	r19, 0x00	; 0
   15096:	a9 01       	movw	r20, r18
   15098:	c3 01       	movw	r24, r6
   1509a:	b2 01       	movw	r22, r4
   1509c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   150a0:	18 16       	cp	r1, r24
   150a2:	14 f0       	brlt	.+4      	; 0x150a8 <process_commands() [clone .part.46]+0x2694>
   150a4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   150a8:	20 e0       	ldi	r18, 0x00	; 0
   150aa:	30 e0       	ldi	r19, 0x00	; 0
   150ac:	a9 01       	movw	r20, r18
   150ae:	c5 01       	movw	r24, r10
   150b0:	b4 01       	movw	r22, r8
   150b2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   150b6:	87 ff       	sbrs	r24, 7
   150b8:	02 c0       	rjmp	.+4      	; 0x150be <process_commands() [clone .part.46]+0x26aa>
   150ba:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   150be:	a5 01       	movw	r20, r10
   150c0:	94 01       	movw	r18, r8
   150c2:	c3 01       	movw	r24, r6
   150c4:	b2 01       	movw	r22, r4
   150c6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   150ca:	87 ff       	sbrs	r24, 7
   150cc:	02 c0       	rjmp	.+4      	; 0x150d2 <process_commands() [clone .part.46]+0x26be>
   150ce:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        {
            // Should we display some error here?
            break;
        }

        cs.mm_per_arc_segment = p;
   150d2:	40 92 82 0e 	sts	0x0E82, r4	; 0x800e82 <cs+0xc4>
   150d6:	50 92 83 0e 	sts	0x0E83, r5	; 0x800e83 <cs+0xc5>
   150da:	60 92 84 0e 	sts	0x0E84, r6	; 0x800e84 <cs+0xc6>
   150de:	70 92 85 0e 	sts	0x0E85, r7	; 0x800e85 <cs+0xc7>
        cs.min_mm_per_arc_segment = s;
   150e2:	80 92 86 0e 	sts	0x0E86, r8	; 0x800e86 <cs+0xc8>
   150e6:	90 92 87 0e 	sts	0x0E87, r9	; 0x800e87 <cs+0xc9>
   150ea:	a0 92 88 0e 	sts	0x0E88, r10	; 0x800e88 <cs+0xca>
   150ee:	b0 92 89 0e 	sts	0x0E89, r11	; 0x800e89 <cs+0xcb>
        cs.n_arc_correction = n;
   150f2:	d0 92 8a 0e 	sts	0x0E8A, r13	; 0x800e8a <cs+0xcc>
        cs.min_arc_segments = r;
   150f6:	f0 92 8c 0e 	sts	0x0E8C, r15	; 0x800e8c <cs+0xce>
   150fa:	e0 92 8b 0e 	sts	0x0E8B, r14	; 0x800e8b <cs+0xcd>
        cs.arc_segments_per_sec = f;
   150fe:	10 93 8e 0e 	sts	0x0E8E, r17	; 0x800e8e <cs+0xd0>
   15102:	00 93 8d 0e 	sts	0x0E8D, r16	; 0x800e8d <cs+0xcf>
   15106:	ef c7       	rjmp	.+4062   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15108:	82 3e       	cpi	r24, 0xE2	; 226
   1510a:	91 05       	cpc	r25, r1
   1510c:	11 f4       	brne	.+4      	; 0x15112 <process_commands() [clone .part.46]+0x26fe>
   1510e:	0c 94 70 ba 	jmp	0x174e0	; 0x174e0 <process_commands() [clone .part.46]+0x4acc>
   15112:	80 3f       	cpi	r24, 0xF0	; 240
   15114:	91 05       	cpc	r25, r1
   15116:	09 f4       	brne	.+2      	; 0x1511a <process_commands() [clone .part.46]+0x2706>
   15118:	e6 c7       	rjmp	.+4044   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   1511a:	8d 3d       	cpi	r24, 0xDD	; 221
   1511c:	91 05       	cpc	r25, r1
   1511e:	09 f0       	breq	.+2      	; 0x15122 <process_commands() [clone .part.46]+0x270e>
   15120:	bb cb       	rjmp	.-2186   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
    - `S` - Extrude factor override percentage (0..100 or higher), default 100%
    */
    case 221:
    {
        if (code_seen('S'))
   15122:	83 e5       	ldi	r24, 0x53	; 83
   15124:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15128:	88 23       	and	r24, r24
   1512a:	11 f4       	brne	.+4      	; 0x15130 <process_commands() [clone .part.46]+0x271c>
   1512c:	0c 94 5e ba 	jmp	0x174bc	; 0x174bc <process_commands() [clone .part.46]+0x4aa8>
        {
            extrudemultiply = code_value_short();
   15130:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   15134:	90 93 bd 02 	sts	0x02BD, r25	; 0x8002bd <extrudemultiply+0x1>
   15138:	80 93 bc 02 	sts	0x02BC, r24	; 0x8002bc <extrudemultiply>
            calculate_extruder_multipliers();
   1513c:	0e 94 40 65 	call	0xca80	; 0xca80 <calculate_extruder_multipliers()>
   15140:	d2 c7       	rjmp	.+4004   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15142:	8e 35       	cpi	r24, 0x5E	; 94
   15144:	51 e0       	ldi	r21, 0x01	; 1
   15146:	95 07       	cpc	r25, r21
   15148:	11 f4       	brne	.+4      	; 0x1514e <process_commands() [clone .part.46]+0x273a>
   1514a:	0c 94 a5 c9 	jmp	0x1934a	; 0x1934a <process_commands() [clone .part.46]+0x6936>
   1514e:	0c f0       	brlt	.+2      	; 0x15152 <process_commands() [clone .part.46]+0x273e>
   15150:	ec c2       	rjmp	.+1496   	; 0x1572a <process_commands() [clone .part.46]+0x2d16>
   15152:	8e 32       	cpi	r24, 0x2E	; 46
   15154:	b1 e0       	ldi	r27, 0x01	; 1
   15156:	9b 07       	cpc	r25, r27
   15158:	11 f4       	brne	.+4      	; 0x1515e <process_commands() [clone .part.46]+0x274a>
   1515a:	0c 94 d3 bb 	jmp	0x177a6	; 0x177a6 <process_commands() [clone .part.46]+0x4d92>
   1515e:	0c f0       	brlt	.+2      	; 0x15162 <process_commands() [clone .part.46]+0x274e>
   15160:	82 c0       	rjmp	.+260    	; 0x15266 <process_commands() [clone .part.46]+0x2852>
   15162:	8c 32       	cpi	r24, 0x2C	; 44
   15164:	f1 e0       	ldi	r31, 0x01	; 1
   15166:	9f 07       	cpc	r25, r31
   15168:	11 f4       	brne	.+4      	; 0x1516e <process_commands() [clone .part.46]+0x275a>
   1516a:	0c 94 c9 ba 	jmp	0x17592	; 0x17592 <process_commands() [clone .part.46]+0x4b7e>
   1516e:	8d 32       	cpi	r24, 0x2D	; 45
   15170:	91 40       	sbci	r25, 0x01	; 1
   15172:	09 f0       	breq	.+2      	; 0x15176 <process_commands() [clone .part.46]+0x2762>
   15174:	91 cb       	rjmp	.-2270   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    - `I` - integral (Ki)
    - `D` - derivative (Kd)
    */
    case 301:
      {
        if(code_seen('P')) cs.Kp = code_value();
   15176:	80 e5       	ldi	r24, 0x50	; 80
   15178:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1517c:	88 23       	and	r24, r24
   1517e:	51 f0       	breq	.+20     	; 0x15194 <process_commands() [clone .part.46]+0x2780>
   15180:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15184:	60 93 26 0e 	sts	0x0E26, r22	; 0x800e26 <cs+0x68>
   15188:	70 93 27 0e 	sts	0x0E27, r23	; 0x800e27 <cs+0x69>
   1518c:	80 93 28 0e 	sts	0x0E28, r24	; 0x800e28 <cs+0x6a>
   15190:	90 93 29 0e 	sts	0x0E29, r25	; 0x800e29 <cs+0x6b>
        if(code_seen('I')) cs.Ki = scalePID_i(code_value());
   15194:	89 e4       	ldi	r24, 0x49	; 73
   15196:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1519a:	88 23       	and	r24, r24
   1519c:	81 f0       	breq	.+32     	; 0x151be <process_commands() [clone .part.46]+0x27aa>
   1519e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   151a2:	2c ea       	ldi	r18, 0xAC	; 172
   151a4:	35 ec       	ldi	r19, 0xC5	; 197
   151a6:	47 e2       	ldi	r20, 0x27	; 39
   151a8:	5e e3       	ldi	r21, 0x3E	; 62
   151aa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   151ae:	60 93 2a 0e 	sts	0x0E2A, r22	; 0x800e2a <cs+0x6c>
   151b2:	70 93 2b 0e 	sts	0x0E2B, r23	; 0x800e2b <cs+0x6d>
   151b6:	80 93 2c 0e 	sts	0x0E2C, r24	; 0x800e2c <cs+0x6e>
   151ba:	90 93 2d 0e 	sts	0x0E2D, r25	; 0x800e2d <cs+0x6f>
        if(code_seen('D')) cs.Kd = scalePID_d(code_value());
   151be:	84 e4       	ldi	r24, 0x44	; 68
   151c0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   151c4:	88 23       	and	r24, r24
   151c6:	81 f0       	breq	.+32     	; 0x151e8 <process_commands() [clone .part.46]+0x27d4>
   151c8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
}

float unscalePID_i(float i)
{
	return i/PID_dT;
   151cc:	2c ea       	ldi	r18, 0xAC	; 172
   151ce:	35 ec       	ldi	r19, 0xC5	; 197
   151d0:	47 e2       	ldi	r20, 0x27	; 39
   151d2:	5e e3       	ldi	r21, 0x3E	; 62
   151d4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   151d8:	60 93 2e 0e 	sts	0x0E2E, r22	; 0x800e2e <cs+0x70>
   151dc:	70 93 2f 0e 	sts	0x0E2F, r23	; 0x800e2f <cs+0x71>
   151e0:	80 93 30 0e 	sts	0x0E30, r24	; 0x800e30 <cs+0x72>
   151e4:	90 93 31 0e 	sts	0x0E31, r25	; 0x800e31 <cs+0x73>

        updatePID();
   151e8:	0f 94 df 3b 	call	0x277be	; 0x277be <updatePID()>
        SERIAL_PROTOCOLRPGM(MSG_OK);
   151ec:	87 e1       	ldi	r24, 0x17	; 23
   151ee:	9d e6       	ldi	r25, 0x6D	; 109
   151f0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_PROTOCOLPGM(" p:");
   151f4:	8a ed       	ldi	r24, 0xDA	; 218
   151f6:	95 e8       	ldi	r25, 0x85	; 133
   151f8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   151fc:	60 91 26 0e 	lds	r22, 0x0E26	; 0x800e26 <cs+0x68>
   15200:	70 91 27 0e 	lds	r23, 0x0E27	; 0x800e27 <cs+0x69>
   15204:	80 91 28 0e 	lds	r24, 0x0E28	; 0x800e28 <cs+0x6a>
   15208:	90 91 29 0e 	lds	r25, 0x0E29	; 0x800e29 <cs+0x6b>
   1520c:	42 e0       	ldi	r20, 0x02	; 2
   1520e:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
        SERIAL_PROTOCOL(cs.Kp);
        SERIAL_PROTOCOLPGM(" i:");
   15212:	86 ed       	ldi	r24, 0xD6	; 214
   15214:	95 e8       	ldi	r25, 0x85	; 133
   15216:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   1521a:	2c ea       	ldi	r18, 0xAC	; 172
   1521c:	35 ec       	ldi	r19, 0xC5	; 197
   1521e:	47 e2       	ldi	r20, 0x27	; 39
   15220:	5e e3       	ldi	r21, 0x3E	; 62
   15222:	60 91 2a 0e 	lds	r22, 0x0E2A	; 0x800e2a <cs+0x6c>
   15226:	70 91 2b 0e 	lds	r23, 0x0E2B	; 0x800e2b <cs+0x6d>
   1522a:	80 91 2c 0e 	lds	r24, 0x0E2C	; 0x800e2c <cs+0x6e>
   1522e:	90 91 2d 0e 	lds	r25, 0x0E2D	; 0x800e2d <cs+0x6f>
   15232:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   15236:	42 e0       	ldi	r20, 0x02	; 2
   15238:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
        SERIAL_PROTOCOL(unscalePID_i(cs.Ki));
        SERIAL_PROTOCOLPGM(" d:");
   1523c:	82 ed       	ldi	r24, 0xD2	; 210
   1523e:	95 e8       	ldi	r25, 0x85	; 133
   15240:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   15244:	2c ea       	ldi	r18, 0xAC	; 172
   15246:	35 ec       	ldi	r19, 0xC5	; 197
   15248:	47 e2       	ldi	r20, 0x27	; 39
   1524a:	5e e3       	ldi	r21, 0x3E	; 62
   1524c:	60 91 2e 0e 	lds	r22, 0x0E2E	; 0x800e2e <cs+0x70>
   15250:	70 91 2f 0e 	lds	r23, 0x0E2F	; 0x800e2f <cs+0x71>
   15254:	80 91 30 0e 	lds	r24, 0x0E30	; 0x800e30 <cs+0x72>
   15258:	90 91 31 0e 	lds	r25, 0x0E31	; 0x800e31 <cs+0x73>
   1525c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
        SERIAL_PROTOCOLLN(unscalePID_d(cs.Kd));
   15260:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   15264:	40 c7       	rjmp	.+3712   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15266:	80 33       	cpi	r24, 0x30	; 48
   15268:	31 e0       	ldi	r19, 0x01	; 1
   1526a:	93 07       	cpc	r25, r19
   1526c:	11 f4       	brne	.+4      	; 0x15272 <process_commands() [clone .part.46]+0x285e>
   1526e:	0c 94 fc ba 	jmp	0x175f8	; 0x175f8 <process_commands() [clone .part.46]+0x4be4>
   15272:	14 f4       	brge	.+4      	; 0x15278 <process_commands() [clone .part.46]+0x2864>
   15274:	0c 94 e3 bb 	jmp	0x177c6	; 0x177c6 <process_commands() [clone .part.46]+0x4db2>
   15278:	86 33       	cpi	r24, 0x36	; 54
   1527a:	91 40       	sbci	r25, 0x01	; 1
   1527c:	09 f0       	breq	.+2      	; 0x15280 <process_commands() [clone .part.46]+0x286c>
   1527e:	0c cb       	rjmp	.-2536   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
        int8_t I = -1, S = -1, B = -1, F = -1;
        int16_t A = -1, L = -1;
        if(code_seen('I')) I = code_value_short();
   15280:	89 e4       	ldi	r24, 0x49	; 73
   15282:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15286:	88 23       	and	r24, r24
   15288:	11 f4       	brne	.+4      	; 0x1528e <process_commands() [clone .part.46]+0x287a>
   1528a:	0c 94 16 bc 	jmp	0x1782c	; 0x1782c <process_commands() [clone .part.46]+0x4e18>
   1528e:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   15292:	ab 96       	adiw	r28, 0x2b	; 43
   15294:	8f af       	std	Y+63, r24	; 0x3f
   15296:	ab 97       	sbiw	r28, 0x2b	; 43
        if(code_seen('R')) R = code_value();
   15298:	82 e5       	ldi	r24, 0x52	; 82
   1529a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1529e:	88 23       	and	r24, r24
   152a0:	11 f4       	brne	.+4      	; 0x152a6 <process_commands() [clone .part.46]+0x2892>
   152a2:	0c 94 1c bc 	jmp	0x17838	; 0x17838 <process_commands() [clone .part.46]+0x4e24>
   152a6:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   152aa:	e2 96       	adiw	r28, 0x32	; 50
   152ac:	6c af       	std	Y+60, r22	; 0x3c
   152ae:	7d af       	std	Y+61, r23	; 0x3d
   152b0:	8e af       	std	Y+62, r24	; 0x3e
   152b2:	9f af       	std	Y+63, r25	; 0x3f
   152b4:	e2 97       	sbiw	r28, 0x32	; 50
        if(code_seen('P')) P = code_value();
   152b6:	80 e5       	ldi	r24, 0x50	; 80
   152b8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    - `F` - force model self-test state (0=off 1=on) during autotune using current values
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
   152bc:	c1 2c       	mov	r12, r1
   152be:	d1 2c       	mov	r13, r1
   152c0:	f0 ec       	ldi	r31, 0xC0	; 192
   152c2:	ef 2e       	mov	r14, r31
   152c4:	ff e7       	ldi	r31, 0x7F	; 127
   152c6:	ff 2e       	mov	r15, r31
        int8_t I = -1, S = -1, B = -1, F = -1;
        int16_t A = -1, L = -1;
        if(code_seen('I')) I = code_value_short();
        if(code_seen('R')) R = code_value();
        if(code_seen('P')) P = code_value();
   152c8:	88 23       	and	r24, r24
   152ca:	21 f0       	breq	.+8      	; 0x152d4 <process_commands() [clone .part.46]+0x28c0>
   152cc:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   152d0:	6b 01       	movw	r12, r22
   152d2:	7c 01       	movw	r14, r24
        if(code_seen('U')) U = code_value();
   152d4:	85 e5       	ldi	r24, 0x55	; 85
   152d6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   152da:	88 23       	and	r24, r24
   152dc:	11 f4       	brne	.+4      	; 0x152e2 <process_commands() [clone .part.46]+0x28ce>
   152de:	0c 94 28 bc 	jmp	0x17850	; 0x17850 <process_commands() [clone .part.46]+0x4e3c>
   152e2:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   152e6:	6e 96       	adiw	r28, 0x1e	; 30
   152e8:	6c af       	std	Y+60, r22	; 0x3c
   152ea:	7d af       	std	Y+61, r23	; 0x3d
   152ec:	8e af       	std	Y+62, r24	; 0x3e
   152ee:	9f af       	std	Y+63, r25	; 0x3f
   152f0:	6e 97       	sbiw	r28, 0x1e	; 30
        if(code_seen('V')) V = code_value();
   152f2:	86 e5       	ldi	r24, 0x56	; 86
   152f4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   152f8:	88 23       	and	r24, r24
   152fa:	11 f4       	brne	.+4      	; 0x15300 <process_commands() [clone .part.46]+0x28ec>
   152fc:	0c 94 34 bc 	jmp	0x17868	; 0x17868 <process_commands() [clone .part.46]+0x4e54>
   15300:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15304:	a2 96       	adiw	r28, 0x22	; 34
   15306:	6c af       	std	Y+60, r22	; 0x3c
   15308:	7d af       	std	Y+61, r23	; 0x3d
   1530a:	8e af       	std	Y+62, r24	; 0x3e
   1530c:	9f af       	std	Y+63, r25	; 0x3f
   1530e:	a2 97       	sbiw	r28, 0x22	; 34
        if(code_seen('C')) C = code_value();
   15310:	83 e4       	ldi	r24, 0x43	; 67
   15312:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15316:	88 23       	and	r24, r24
   15318:	11 f4       	brne	.+4      	; 0x1531e <process_commands() [clone .part.46]+0x290a>
   1531a:	0c 94 40 bc 	jmp	0x17880	; 0x17880 <process_commands() [clone .part.46]+0x4e6c>
   1531e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15322:	6a 96       	adiw	r28, 0x1a	; 26
   15324:	6c af       	std	Y+60, r22	; 0x3c
   15326:	7d af       	std	Y+61, r23	; 0x3d
   15328:	8e af       	std	Y+62, r24	; 0x3e
   1532a:	9f af       	std	Y+63, r25	; 0x3f
   1532c:	6a 97       	sbiw	r28, 0x1a	; 26
        if(code_seen('D')) D = code_value();
   1532e:	84 e4       	ldi	r24, 0x44	; 68
   15330:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15334:	88 23       	and	r24, r24
   15336:	11 f4       	brne	.+4      	; 0x1533c <process_commands() [clone .part.46]+0x2928>
   15338:	0c 94 4c bc 	jmp	0x17898	; 0x17898 <process_commands() [clone .part.46]+0x4e84>
   1533c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15340:	aa 96       	adiw	r28, 0x2a	; 42
   15342:	6c af       	std	Y+60, r22	; 0x3c
   15344:	7d af       	std	Y+61, r23	; 0x3d
   15346:	8e af       	std	Y+62, r24	; 0x3e
   15348:	9f af       	std	Y+63, r25	; 0x3f
   1534a:	aa 97       	sbiw	r28, 0x2a	; 42
        if(code_seen('L')) L = code_value_short();
   1534c:	8c e4       	ldi	r24, 0x4C	; 76
   1534e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
        int8_t I = -1, S = -1, B = -1, F = -1;
        int16_t A = -1, L = -1;
   15352:	0f ef       	ldi	r16, 0xFF	; 255
   15354:	1f ef       	ldi	r17, 0xFF	; 255
        if(code_seen('P')) P = code_value();
        if(code_seen('U')) U = code_value();
        if(code_seen('V')) V = code_value();
        if(code_seen('C')) C = code_value();
        if(code_seen('D')) D = code_value();
        if(code_seen('L')) L = code_value_short();
   15356:	88 23       	and	r24, r24
   15358:	19 f0       	breq	.+6      	; 0x15360 <process_commands() [clone .part.46]+0x294c>
   1535a:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   1535e:	8c 01       	movw	r16, r24
        if(code_seen('S')) S = code_value_short();
   15360:	83 e5       	ldi	r24, 0x53	; 83
   15362:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15366:	88 23       	and	r24, r24
   15368:	11 f4       	brne	.+4      	; 0x1536e <process_commands() [clone .part.46]+0x295a>
   1536a:	0c 94 58 bc 	jmp	0x178b0	; 0x178b0 <process_commands() [clone .part.46]+0x4e9c>
   1536e:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   15372:	e3 96       	adiw	r28, 0x33	; 51
   15374:	8f af       	std	Y+63, r24	; 0x3f
   15376:	e3 97       	sbiw	r28, 0x33	; 51
        if(code_seen('B')) B = code_value_short();
   15378:	82 e4       	ldi	r24, 0x42	; 66
   1537a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1537e:	88 23       	and	r24, r24
   15380:	11 f4       	brne	.+4      	; 0x15386 <process_commands() [clone .part.46]+0x2972>
   15382:	0c 94 5e bc 	jmp	0x178bc	; 0x178bc <process_commands() [clone .part.46]+0x4ea8>
   15386:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   1538a:	e7 96       	adiw	r28, 0x37	; 55
   1538c:	8f af       	std	Y+63, r24	; 0x3f
   1538e:	e7 97       	sbiw	r28, 0x37	; 55
        if(code_seen('T')) T = code_value();
   15390:	84 e5       	ldi	r24, 0x54	; 84
   15392:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15396:	88 23       	and	r24, r24
   15398:	11 f4       	brne	.+4      	; 0x1539e <process_commands() [clone .part.46]+0x298a>
   1539a:	0c 94 64 bc 	jmp	0x178c8	; 0x178c8 <process_commands() [clone .part.46]+0x4eb4>
   1539e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   153a2:	a6 96       	adiw	r28, 0x26	; 38
   153a4:	6c af       	std	Y+60, r22	; 0x3c
   153a6:	7d af       	std	Y+61, r23	; 0x3d
   153a8:	8e af       	std	Y+62, r24	; 0x3e
   153aa:	9f af       	std	Y+63, r25	; 0x3f
   153ac:	a6 97       	sbiw	r28, 0x26	; 38
        if(code_seen('E')) E = code_value();
   153ae:	85 e4       	ldi	r24, 0x45	; 69
   153b0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    - `F` - force model self-test state (0=off 1=on) during autotune using current values
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
   153b4:	41 2c       	mov	r4, r1
   153b6:	51 2c       	mov	r5, r1
   153b8:	e0 ec       	ldi	r30, 0xC0	; 192
   153ba:	6e 2e       	mov	r6, r30
   153bc:	ef e7       	ldi	r30, 0x7F	; 127
   153be:	7e 2e       	mov	r7, r30
        if(code_seen('D')) D = code_value();
        if(code_seen('L')) L = code_value_short();
        if(code_seen('S')) S = code_value_short();
        if(code_seen('B')) B = code_value_short();
        if(code_seen('T')) T = code_value();
        if(code_seen('E')) E = code_value();
   153c0:	88 23       	and	r24, r24
   153c2:	21 f0       	breq	.+8      	; 0x153cc <process_commands() [clone .part.46]+0x29b8>
   153c4:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   153c8:	2b 01       	movw	r4, r22
   153ca:	3c 01       	movw	r6, r24
        if(code_seen('W')) W = code_value();
   153cc:	87 e5       	ldi	r24, 0x57	; 87
   153ce:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    - `F` - force model self-test state (0=off 1=on) during autotune using current values
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
   153d2:	81 2c       	mov	r8, r1
   153d4:	91 2c       	mov	r9, r1
   153d6:	70 ec       	ldi	r23, 0xC0	; 192
   153d8:	a7 2e       	mov	r10, r23
   153da:	7f e7       	ldi	r23, 0x7F	; 127
   153dc:	b7 2e       	mov	r11, r23
        if(code_seen('L')) L = code_value_short();
        if(code_seen('S')) S = code_value_short();
        if(code_seen('B')) B = code_value_short();
        if(code_seen('T')) T = code_value();
        if(code_seen('E')) E = code_value();
        if(code_seen('W')) W = code_value();
   153de:	88 23       	and	r24, r24
   153e0:	21 f0       	breq	.+8      	; 0x153ea <process_commands() [clone .part.46]+0x29d6>
   153e2:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   153e6:	4b 01       	movw	r8, r22
   153e8:	5c 01       	movw	r10, r24
        if(code_seen('A')) A = code_value_short();
   153ea:	81 e4       	ldi	r24, 0x41	; 65
   153ec:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
        int8_t I = -1, S = -1, B = -1, F = -1;
        int16_t A = -1, L = -1;
   153f0:	22 24       	eor	r2, r2
   153f2:	2a 94       	dec	r2
   153f4:	32 2c       	mov	r3, r2
        if(code_seen('S')) S = code_value_short();
        if(code_seen('B')) B = code_value_short();
        if(code_seen('T')) T = code_value();
        if(code_seen('E')) E = code_value();
        if(code_seen('W')) W = code_value();
        if(code_seen('A')) A = code_value_short();
   153f6:	88 23       	and	r24, r24
   153f8:	19 f0       	breq	.+6      	; 0x15400 <process_commands() [clone .part.46]+0x29ec>
   153fa:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   153fe:	1c 01       	movw	r2, r24
        if(code_seen('F')) F = code_value_short();
   15400:	86 e4       	ldi	r24, 0x46	; 70
   15402:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15406:	88 23       	and	r24, r24
   15408:	11 f4       	brne	.+4      	; 0x1540e <process_commands() [clone .part.46]+0x29fa>
   1540a:	0c 94 70 bc 	jmp	0x178e0	; 0x178e0 <process_commands() [clone .part.46]+0x4ecc>
   1540e:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   15412:	eb 96       	adiw	r28, 0x3b	; 59
   15414:	8f af       	std	Y+63, r24	; 0x3f
   15416:	eb 97       	sbiw	r28, 0x3b	; 59

        // report values if nothing has been requested
        if(isnan(R) && isnan(P) && isnan(U) && isnan(V) && isnan(C) && isnan(D) && isnan(T) && isnan(W) && isnan(E)
   15418:	e2 96       	adiw	r28, 0x32	; 50
   1541a:	2c ad       	ldd	r18, Y+60	; 0x3c
   1541c:	3d ad       	ldd	r19, Y+61	; 0x3d
   1541e:	4e ad       	ldd	r20, Y+62	; 0x3e
   15420:	5f ad       	ldd	r21, Y+63	; 0x3f
   15422:	e2 97       	sbiw	r28, 0x32	; 50
   15424:	ca 01       	movw	r24, r20
   15426:	b9 01       	movw	r22, r18
   15428:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1542c:	88 23       	and	r24, r24
   1542e:	11 f4       	brne	.+4      	; 0x15434 <process_commands() [clone .part.46]+0x2a20>
   15430:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   15434:	a7 01       	movw	r20, r14
   15436:	96 01       	movw	r18, r12
   15438:	c7 01       	movw	r24, r14
   1543a:	b6 01       	movw	r22, r12
   1543c:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   15440:	88 23       	and	r24, r24
   15442:	11 f4       	brne	.+4      	; 0x15448 <process_commands() [clone .part.46]+0x2a34>
   15444:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   15448:	6e 96       	adiw	r28, 0x1e	; 30
   1544a:	2c ad       	ldd	r18, Y+60	; 0x3c
   1544c:	3d ad       	ldd	r19, Y+61	; 0x3d
   1544e:	4e ad       	ldd	r20, Y+62	; 0x3e
   15450:	5f ad       	ldd	r21, Y+63	; 0x3f
   15452:	6e 97       	sbiw	r28, 0x1e	; 30
   15454:	ca 01       	movw	r24, r20
   15456:	b9 01       	movw	r22, r18
   15458:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1545c:	88 23       	and	r24, r24
   1545e:	11 f4       	brne	.+4      	; 0x15464 <process_commands() [clone .part.46]+0x2a50>
   15460:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   15464:	a2 96       	adiw	r28, 0x22	; 34
   15466:	2c ad       	ldd	r18, Y+60	; 0x3c
   15468:	3d ad       	ldd	r19, Y+61	; 0x3d
   1546a:	4e ad       	ldd	r20, Y+62	; 0x3e
   1546c:	5f ad       	ldd	r21, Y+63	; 0x3f
   1546e:	a2 97       	sbiw	r28, 0x22	; 34
   15470:	ca 01       	movw	r24, r20
   15472:	b9 01       	movw	r22, r18
   15474:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   15478:	88 23       	and	r24, r24
   1547a:	11 f4       	brne	.+4      	; 0x15480 <process_commands() [clone .part.46]+0x2a6c>
   1547c:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   15480:	6a 96       	adiw	r28, 0x1a	; 26
   15482:	2c ad       	ldd	r18, Y+60	; 0x3c
   15484:	3d ad       	ldd	r19, Y+61	; 0x3d
   15486:	4e ad       	ldd	r20, Y+62	; 0x3e
   15488:	5f ad       	ldd	r21, Y+63	; 0x3f
   1548a:	6a 97       	sbiw	r28, 0x1a	; 26
   1548c:	ca 01       	movw	r24, r20
   1548e:	b9 01       	movw	r22, r18
   15490:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   15494:	88 23       	and	r24, r24
   15496:	11 f4       	brne	.+4      	; 0x1549c <process_commands() [clone .part.46]+0x2a88>
   15498:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   1549c:	aa 96       	adiw	r28, 0x2a	; 42
   1549e:	2c ad       	ldd	r18, Y+60	; 0x3c
   154a0:	3d ad       	ldd	r19, Y+61	; 0x3d
   154a2:	4e ad       	ldd	r20, Y+62	; 0x3e
   154a4:	5f ad       	ldd	r21, Y+63	; 0x3f
   154a6:	aa 97       	sbiw	r28, 0x2a	; 42
   154a8:	ca 01       	movw	r24, r20
   154aa:	b9 01       	movw	r22, r18
   154ac:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   154b0:	88 23       	and	r24, r24
   154b2:	11 f4       	brne	.+4      	; 0x154b8 <process_commands() [clone .part.46]+0x2aa4>
   154b4:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   154b8:	a6 96       	adiw	r28, 0x26	; 38
   154ba:	2c ad       	ldd	r18, Y+60	; 0x3c
   154bc:	3d ad       	ldd	r19, Y+61	; 0x3d
   154be:	4e ad       	ldd	r20, Y+62	; 0x3e
   154c0:	5f ad       	ldd	r21, Y+63	; 0x3f
   154c2:	a6 97       	sbiw	r28, 0x26	; 38
   154c4:	ca 01       	movw	r24, r20
   154c6:	b9 01       	movw	r22, r18
   154c8:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   154cc:	88 23       	and	r24, r24
   154ce:	11 f4       	brne	.+4      	; 0x154d4 <process_commands() [clone .part.46]+0x2ac0>
   154d0:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   154d4:	a5 01       	movw	r20, r10
   154d6:	94 01       	movw	r18, r8
   154d8:	c5 01       	movw	r24, r10
   154da:	b4 01       	movw	r22, r8
   154dc:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   154e0:	88 23       	and	r24, r24
   154e2:	11 f4       	brne	.+4      	; 0x154e8 <process_commands() [clone .part.46]+0x2ad4>
   154e4:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   154e8:	a3 01       	movw	r20, r6
   154ea:	92 01       	movw	r18, r4
   154ec:	c3 01       	movw	r24, r6
   154ee:	b2 01       	movw	r22, r4
   154f0:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   154f4:	88 23       	and	r24, r24
   154f6:	11 f4       	brne	.+4      	; 0x154fc <process_commands() [clone .part.46]+0x2ae8>
   154f8:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
        && I < 0 && S < 0 && B < 0 && A < 0 && L < 0) {
   154fc:	ab 96       	adiw	r28, 0x2b	; 43
   154fe:	af ad       	ldd	r26, Y+63	; 0x3f
   15500:	ab 97       	sbiw	r28, 0x2b	; 43
   15502:	a7 fd       	sbrc	r26, 7
   15504:	02 c0       	rjmp	.+4      	; 0x1550a <process_commands() [clone .part.46]+0x2af6>
   15506:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   1550a:	e3 96       	adiw	r28, 0x33	; 51
   1550c:	bf ad       	ldd	r27, Y+63	; 0x3f
   1550e:	e3 97       	sbiw	r28, 0x33	; 51
   15510:	b7 fd       	sbrc	r27, 7
   15512:	02 c0       	rjmp	.+4      	; 0x15518 <process_commands() [clone .part.46]+0x2b04>
   15514:	0c 94 7a bc 	jmp	0x178f4	; 0x178f4 <process_commands() [clone .part.46]+0x4ee0>
   15518:	e7 96       	adiw	r28, 0x37	; 55
   1551a:	ef ad       	ldd	r30, Y+63	; 0x3f
   1551c:	e7 97       	sbiw	r28, 0x37	; 55
   1551e:	e7 fd       	sbrc	r30, 7
   15520:	02 c0       	rjmp	.+4      	; 0x15526 <process_commands() [clone .part.46]+0x2b12>
   15522:	0c 94 7f bc 	jmp	0x178fe	; 0x178fe <process_commands() [clone .part.46]+0x4eea>
   15526:	37 fc       	sbrc	r3, 7
   15528:	02 c0       	rjmp	.+4      	; 0x1552e <process_commands() [clone .part.46]+0x2b1a>
   1552a:	0c 94 ca bc 	jmp	0x17994	; 0x17994 <process_commands() [clone .part.46]+0x4f80>
   1552e:	17 ff       	sbrs	r17, 7
   15530:	02 c0       	rjmp	.+4      	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   15532:	0c 94 76 bc 	jmp	0x178ec	; 0x178ec <process_commands() [clone .part.46]+0x4ed8>
    thermal_model::data.L = samples * intv_ms;
}

void thermal_model_set_params(float P, float U, float V, float C, float D, int16_t L, float Ta_corr, float warn, float err)
{
    TempMgrGuard temp_mgr_guard;
   15536:	ce 01       	movw	r24, r28
   15538:	01 96       	adiw	r24, 0x01	; 1
   1553a:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>

    if(!isnan(P) && P > 0) thermal_model::data.P = P;
   1553e:	a7 01       	movw	r20, r14
   15540:	96 01       	movw	r18, r12
   15542:	c7 01       	movw	r24, r14
   15544:	b6 01       	movw	r22, r12
   15546:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1554a:	88 23       	and	r24, r24
   1554c:	11 f4       	brne	.+4      	; 0x15552 <process_commands() [clone .part.46]+0x2b3e>
   1554e:	0c 94 6e bd 	jmp	0x17adc	; 0x17adc <process_commands() [clone .part.46]+0x50c8>
    if(!isnan(U)) thermal_model::data.U = U;
   15552:	6e 96       	adiw	r28, 0x1e	; 30
   15554:	2c ad       	ldd	r18, Y+60	; 0x3c
   15556:	3d ad       	ldd	r19, Y+61	; 0x3d
   15558:	4e ad       	ldd	r20, Y+62	; 0x3e
   1555a:	5f ad       	ldd	r21, Y+63	; 0x3f
   1555c:	6e 97       	sbiw	r28, 0x1e	; 30
   1555e:	ca 01       	movw	r24, r20
   15560:	b9 01       	movw	r22, r18
   15562:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   15566:	81 11       	cpse	r24, r1
   15568:	0e c0       	rjmp	.+28     	; 0x15586 <process_commands() [clone .part.46]+0x2b72>
   1556a:	6e 96       	adiw	r28, 0x1e	; 30
   1556c:	8c ad       	ldd	r24, Y+60	; 0x3c
   1556e:	9d ad       	ldd	r25, Y+61	; 0x3d
   15570:	ae ad       	ldd	r26, Y+62	; 0x3e
   15572:	bf ad       	ldd	r27, Y+63	; 0x3f
   15574:	6e 97       	sbiw	r28, 0x1e	; 30
   15576:	80 93 de 12 	sts	0x12DE, r24	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   1557a:	90 93 df 12 	sts	0x12DF, r25	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   1557e:	a0 93 e0 12 	sts	0x12E0, r26	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   15582:	b0 93 e1 12 	sts	0x12E1, r27	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
    if(!isnan(V)) thermal_model::data.V = V;
   15586:	a2 96       	adiw	r28, 0x22	; 34
   15588:	2c ad       	ldd	r18, Y+60	; 0x3c
   1558a:	3d ad       	ldd	r19, Y+61	; 0x3d
   1558c:	4e ad       	ldd	r20, Y+62	; 0x3e
   1558e:	5f ad       	ldd	r21, Y+63	; 0x3f
   15590:	a2 97       	sbiw	r28, 0x22	; 34
   15592:	ca 01       	movw	r24, r20
   15594:	b9 01       	movw	r22, r18
   15596:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1559a:	81 11       	cpse	r24, r1
   1559c:	0e c0       	rjmp	.+28     	; 0x155ba <process_commands() [clone .part.46]+0x2ba6>
   1559e:	a2 96       	adiw	r28, 0x22	; 34
   155a0:	2c ad       	ldd	r18, Y+60	; 0x3c
   155a2:	3d ad       	ldd	r19, Y+61	; 0x3d
   155a4:	4e ad       	ldd	r20, Y+62	; 0x3e
   155a6:	5f ad       	ldd	r21, Y+63	; 0x3f
   155a8:	a2 97       	sbiw	r28, 0x22	; 34
   155aa:	20 93 e2 12 	sts	0x12E2, r18	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   155ae:	30 93 e3 12 	sts	0x12E3, r19	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   155b2:	40 93 e4 12 	sts	0x12E4, r20	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   155b6:	50 93 e5 12 	sts	0x12E5, r21	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
    if(!isnan(C) && C > 0) thermal_model::data.C = C;
   155ba:	6a 96       	adiw	r28, 0x1a	; 26
   155bc:	2c ad       	ldd	r18, Y+60	; 0x3c
   155be:	3d ad       	ldd	r19, Y+61	; 0x3d
   155c0:	4e ad       	ldd	r20, Y+62	; 0x3e
   155c2:	5f ad       	ldd	r21, Y+63	; 0x3f
   155c4:	6a 97       	sbiw	r28, 0x1a	; 26
   155c6:	ca 01       	movw	r24, r20
   155c8:	b9 01       	movw	r22, r18
   155ca:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   155ce:	81 11       	cpse	r24, r1
   155d0:	1b c0       	rjmp	.+54     	; 0x15608 <process_commands() [clone .part.46]+0x2bf4>
   155d2:	20 e0       	ldi	r18, 0x00	; 0
   155d4:	30 e0       	ldi	r19, 0x00	; 0
   155d6:	a9 01       	movw	r20, r18
   155d8:	6a 96       	adiw	r28, 0x1a	; 26
   155da:	6c ad       	ldd	r22, Y+60	; 0x3c
   155dc:	7d ad       	ldd	r23, Y+61	; 0x3d
   155de:	8e ad       	ldd	r24, Y+62	; 0x3e
   155e0:	9f ad       	ldd	r25, Y+63	; 0x3f
   155e2:	6a 97       	sbiw	r28, 0x1a	; 26
   155e4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   155e8:	18 16       	cp	r1, r24
   155ea:	74 f4       	brge	.+28     	; 0x15608 <process_commands() [clone .part.46]+0x2bf4>
   155ec:	6a 96       	adiw	r28, 0x1a	; 26
   155ee:	8c ad       	ldd	r24, Y+60	; 0x3c
   155f0:	9d ad       	ldd	r25, Y+61	; 0x3d
   155f2:	ae ad       	ldd	r26, Y+62	; 0x3e
   155f4:	bf ad       	ldd	r27, Y+63	; 0x3f
   155f6:	6a 97       	sbiw	r28, 0x1a	; 26
   155f8:	80 93 e6 12 	sts	0x12E6, r24	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   155fc:	90 93 e7 12 	sts	0x12E7, r25	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   15600:	a0 93 e8 12 	sts	0x12E8, r26	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   15604:	b0 93 e9 12 	sts	0x12E9, r27	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
    if(!isnan(D)) thermal_model::data.fS = D;
   15608:	aa 96       	adiw	r28, 0x2a	; 42
   1560a:	2c ad       	ldd	r18, Y+60	; 0x3c
   1560c:	3d ad       	ldd	r19, Y+61	; 0x3d
   1560e:	4e ad       	ldd	r20, Y+62	; 0x3e
   15610:	5f ad       	ldd	r21, Y+63	; 0x3f
   15612:	aa 97       	sbiw	r28, 0x2a	; 42
   15614:	ca 01       	movw	r24, r20
   15616:	b9 01       	movw	r22, r18
   15618:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1561c:	81 11       	cpse	r24, r1
   1561e:	0e c0       	rjmp	.+28     	; 0x1563c <process_commands() [clone .part.46]+0x2c28>
   15620:	aa 96       	adiw	r28, 0x2a	; 42
   15622:	2c ad       	ldd	r18, Y+60	; 0x3c
   15624:	3d ad       	ldd	r19, Y+61	; 0x3d
   15626:	4e ad       	ldd	r20, Y+62	; 0x3e
   15628:	5f ad       	ldd	r21, Y+63	; 0x3f
   1562a:	aa 97       	sbiw	r28, 0x2a	; 42
   1562c:	20 93 ea 12 	sts	0x12EA, r18	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   15630:	30 93 eb 12 	sts	0x12EB, r19	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   15634:	40 93 ec 12 	sts	0x12EC, r20	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   15638:	50 93 ed 12 	sts	0x12ED, r21	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
    if(L >= 0) thermal_model_set_lag(L);
   1563c:	17 fd       	sbrc	r17, 7
   1563e:	03 c0       	rjmp	.+6      	; 0x15646 <process_commands() [clone .part.46]+0x2c32>
   15640:	c8 01       	movw	r24, r16
   15642:	0f 94 8e 2f 	call	0x25f1c	; 0x25f1c <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]>
    if(!isnan(Ta_corr)) thermal_model::data.Ta_corr = Ta_corr;
   15646:	a6 96       	adiw	r28, 0x26	; 38
   15648:	2c ad       	ldd	r18, Y+60	; 0x3c
   1564a:	3d ad       	ldd	r19, Y+61	; 0x3d
   1564c:	4e ad       	ldd	r20, Y+62	; 0x3e
   1564e:	5f ad       	ldd	r21, Y+63	; 0x3f
   15650:	a6 97       	sbiw	r28, 0x26	; 38
   15652:	ca 01       	movw	r24, r20
   15654:	b9 01       	movw	r22, r18
   15656:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1565a:	81 11       	cpse	r24, r1
   1565c:	0e c0       	rjmp	.+28     	; 0x1567a <process_commands() [clone .part.46]+0x2c66>
   1565e:	a6 96       	adiw	r28, 0x26	; 38
   15660:	8c ad       	ldd	r24, Y+60	; 0x3c
   15662:	9d ad       	ldd	r25, Y+61	; 0x3d
   15664:	ae ad       	ldd	r26, Y+62	; 0x3e
   15666:	bf ad       	ldd	r27, Y+63	; 0x3f
   15668:	a6 97       	sbiw	r28, 0x26	; 38
   1566a:	80 93 30 13 	sts	0x1330, r24	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   1566e:	90 93 31 13 	sts	0x1331, r25	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   15672:	a0 93 32 13 	sts	0x1332, r26	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   15676:	b0 93 33 13 	sts	0x1333, r27	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
    if(!isnan(warn) && warn > 0) thermal_model::data.warn = warn;
   1567a:	a5 01       	movw	r20, r10
   1567c:	94 01       	movw	r18, r8
   1567e:	c5 01       	movw	r24, r10
   15680:	b4 01       	movw	r22, r8
   15682:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   15686:	81 11       	cpse	r24, r1
   15688:	11 c0       	rjmp	.+34     	; 0x156ac <process_commands() [clone .part.46]+0x2c98>
   1568a:	20 e0       	ldi	r18, 0x00	; 0
   1568c:	30 e0       	ldi	r19, 0x00	; 0
   1568e:	a9 01       	movw	r20, r18
   15690:	c5 01       	movw	r24, r10
   15692:	b4 01       	movw	r22, r8
   15694:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   15698:	18 16       	cp	r1, r24
   1569a:	44 f4       	brge	.+16     	; 0x156ac <process_commands() [clone .part.46]+0x2c98>
   1569c:	80 92 34 13 	sts	0x1334, r8	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   156a0:	90 92 35 13 	sts	0x1335, r9	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   156a4:	a0 92 36 13 	sts	0x1336, r10	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   156a8:	b0 92 37 13 	sts	0x1337, r11	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
    if(!isnan(err) && err > 0) thermal_model::data.err = err;
   156ac:	a3 01       	movw	r20, r6
   156ae:	92 01       	movw	r18, r4
   156b0:	c3 01       	movw	r24, r6
   156b2:	b2 01       	movw	r22, r4
   156b4:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   156b8:	81 11       	cpse	r24, r1
   156ba:	11 c0       	rjmp	.+34     	; 0x156de <process_commands() [clone .part.46]+0x2cca>
   156bc:	20 e0       	ldi	r18, 0x00	; 0
   156be:	30 e0       	ldi	r19, 0x00	; 0
   156c0:	a9 01       	movw	r20, r18
   156c2:	c3 01       	movw	r24, r6
   156c4:	b2 01       	movw	r22, r4
   156c6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   156ca:	18 16       	cp	r1, r24
   156cc:	44 f4       	brge	.+16     	; 0x156de <process_commands() [clone .part.46]+0x2cca>
   156ce:	40 92 38 13 	sts	0x1338, r4	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   156d2:	50 92 39 13 	sts	0x1339, r5	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   156d6:	60 92 3a 13 	sts	0x133A, r6	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   156da:	70 92 3b 13 	sts	0x133B, r7	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>

    // ensure warn <= err
    if (thermal_model::data.warn > thermal_model::data.err)
   156de:	c0 90 38 13 	lds	r12, 0x1338	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   156e2:	d0 90 39 13 	lds	r13, 0x1339	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   156e6:	e0 90 3a 13 	lds	r14, 0x133A	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   156ea:	f0 90 3b 13 	lds	r15, 0x133B	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
   156ee:	a7 01       	movw	r20, r14
   156f0:	96 01       	movw	r18, r12
   156f2:	60 91 34 13 	lds	r22, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   156f6:	70 91 35 13 	lds	r23, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   156fa:	80 91 36 13 	lds	r24, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   156fe:	90 91 37 13 	lds	r25, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
   15702:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   15706:	18 16       	cp	r1, r24
   15708:	44 f4       	brge	.+16     	; 0x1571a <process_commands() [clone .part.46]+0x2d06>
        thermal_model::data.warn = thermal_model::data.err;
   1570a:	c0 92 34 13 	sts	0x1334, r12	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   1570e:	d0 92 35 13 	sts	0x1335, r13	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   15712:	e0 92 36 13 	sts	0x1336, r14	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   15716:	f0 92 37 13 	sts	0x1337, r15	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>

    thermal_model::setup();
   1571a:	0f 94 15 30 	call	0x2602a	; 0x2602a <thermal_model::setup() [clone .lto_priv.555]>
    thermal_model::data.L = samples * intv_ms;
}

void thermal_model_set_params(float P, float U, float V, float C, float D, int16_t L, float Ta_corr, float warn, float err)
{
    TempMgrGuard temp_mgr_guard;
   1571e:	ce 01       	movw	r24, r28
   15720:	01 96       	adiw	r24, 0x01	; 1
   15722:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
   15726:	0c 94 f0 bc 	jmp	0x179e0	; 0x179e0 <process_commands() [clone .part.46]+0x4fcc>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   1572a:	85 39       	cpi	r24, 0x95	; 149
   1572c:	a1 e0       	ldi	r26, 0x01	; 1
   1572e:	9a 07       	cpc	r25, r26
   15730:	11 f4       	brne	.+4      	; 0x15736 <process_commands() [clone .part.46]+0x2d22>
   15732:	0c 94 e6 bf 	jmp	0x17fcc	; 0x17fcc <process_commands() [clone .part.46]+0x55b8>
   15736:	2c f5       	brge	.+74     	; 0x15782 <process_commands() [clone .part.46]+0x2d6e>
   15738:	80 39       	cpi	r24, 0x90	; 144
   1573a:	e1 e0       	ldi	r30, 0x01	; 1
   1573c:	9e 07       	cpc	r25, r30
   1573e:	11 f4       	brne	.+4      	; 0x15744 <process_commands() [clone .part.46]+0x2d30>
   15740:	0c 94 e2 bf 	jmp	0x17fc4	; 0x17fc4 <process_commands() [clone .part.46]+0x55b0>
   15744:	83 39       	cpi	r24, 0x93	; 147
   15746:	91 40       	sbci	r25, 0x01	; 1
   15748:	09 f0       	breq	.+2      	; 0x1574c <process_commands() [clone .part.46]+0x2d38>
   1574a:	a6 c8       	rjmp	.-3764   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    */
    case 403:
	{
		// currently three different materials are needed (default, flex and PVA)
		// add storing this information for different load/unload profiles etc. in the future
		if (MMU2::mmu2.Enabled())
   1574c:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   15750:	81 30       	cpi	r24, 0x01	; 1
   15752:	09 f0       	breq	.+2      	; 0x15756 <process_commands() [clone .part.46]+0x2d42>
   15754:	c8 c4       	rjmp	.+2448   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		{
			uint8_t extruder = 255;
			uint8_t filament = FILAMENT_UNDEFINED;
			if(code_seen('E')) extruder = code_value_uint8();
   15756:	85 e4       	ldi	r24, 0x45	; 69
   15758:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1575c:	81 11       	cpse	r24, r1
   1575e:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
			if(code_seen('F')) filament = code_value_uint8();
   15762:	86 e4       	ldi	r24, 0x46	; 70
   15764:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15768:	81 11       	cpse	r24, r1
   1576a:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
    MMU2_ECHO_MSGRPGM(PSTR("MMU2tool="));
    SERIAL_ECHOLN((int)ex);
}

bool MMU2::set_filament_type(uint8_t /*slot*/, uint8_t /*type*/) {
    if (!WaitForMMUReady()) {
   1576e:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   15772:	88 23       	and	r24, r24
   15774:	09 f4       	brne	.+2      	; 0x15778 <process_commands() [clone .part.46]+0x2d64>
   15776:	b7 c4       	rjmp	.+2414   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    //    slot = slot; // @@TODO
    //    type = type; // @@TODO
    // cmd_arg = filamentType;
    // command(MMU_CMD_F0 + index);

    if (!manage_response(false, false)) {
   15778:	60 e0       	ldi	r22, 0x00	; 0
   1577a:	80 e0       	ldi	r24, 0x00	; 0
   1577c:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   15780:	b2 c4       	rjmp	.+2404   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15782:	84 3a       	cpi	r24, 0xA4	; 164
   15784:	21 e0       	ldi	r18, 0x01	; 1
   15786:	92 07       	cpc	r25, r18
   15788:	11 f4       	brne	.+4      	; 0x1578e <process_commands() [clone .part.46]+0x2d7a>
   1578a:	0c 94 eb bf 	jmp	0x17fd6	; 0x17fd6 <process_commands() [clone .part.46]+0x55c2>
   1578e:	84 3f       	cpi	r24, 0xF4	; 244
   15790:	31 e0       	ldi	r19, 0x01	; 1
   15792:	93 07       	cpc	r25, r19
   15794:	11 f4       	brne	.+4      	; 0x1579a <process_commands() [clone .part.46]+0x2d86>
   15796:	0c 94 ef bf 	jmp	0x17fde	; 0x17fde <process_commands() [clone .part.46]+0x55ca>
   1579a:	86 39       	cpi	r24, 0x96	; 150
   1579c:	91 40       	sbci	r25, 0x01	; 1
   1579e:	09 f0       	breq	.+2      	; 0x157a2 <process_commands() [clone .part.46]+0x2d8e>
   157a0:	7b c8       	rjmp	.-3850   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

    */

    case 406: // M406 Disable Filament Sensor
    {
        fsensor.setEnabled(0);
   157a2:	80 e0       	ldi	r24, 0x00	; 0
   157a4:	0e 94 56 74 	call	0xe8ac	; 0xe8ac <Filament_sensor::setEnabled(bool)>
   157a8:	9e c4       	rjmp	.+2364   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   157aa:	83 3c       	cpi	r24, 0xC3	; 195
   157ac:	52 e0       	ldi	r21, 0x02	; 2
   157ae:	95 07       	cpc	r25, r21
   157b0:	11 f4       	brne	.+4      	; 0x157b6 <process_commands() [clone .part.46]+0x2da2>
   157b2:	0c 94 29 cb 	jmp	0x19652	; 0x19652 <process_commands() [clone .part.46]+0x6c3e>
   157b6:	0c f0       	brlt	.+2      	; 0x157ba <process_commands() [clone .part.46]+0x2da6>
   157b8:	e3 c3       	rjmp	.+1990   	; 0x15f80 <process_commands() [clone .part.46]+0x356c>
   157ba:	8a 35       	cpi	r24, 0x5A	; 90
   157bc:	b2 e0       	ldi	r27, 0x02	; 2
   157be:	9b 07       	cpc	r25, r27
   157c0:	11 f4       	brne	.+4      	; 0x157c6 <process_commands() [clone .part.46]+0x2db2>
   157c2:	0c 94 20 c4 	jmp	0x18840	; 0x18840 <process_commands() [clone .part.46]+0x5e2c>
   157c6:	0c f0       	brlt	.+2      	; 0x157ca <process_commands() [clone .part.46]+0x2db6>
   157c8:	76 c3       	rjmp	.+1772   	; 0x15eb6 <process_commands() [clone .part.46]+0x34a2>
   157ca:	8d 3f       	cpi	r24, 0xFD	; 253
   157cc:	f1 e0       	ldi	r31, 0x01	; 1
   157ce:	9f 07       	cpc	r25, r31
   157d0:	11 f4       	brne	.+4      	; 0x157d6 <process_commands() [clone .part.46]+0x2dc2>
   157d2:	0c 94 09 c0 	jmp	0x18012	; 0x18012 <process_commands() [clone .part.46]+0x55fe>
   157d6:	0c f0       	brlt	.+2      	; 0x157da <process_commands() [clone .part.46]+0x2dc6>
   157d8:	2e c3       	rjmp	.+1628   	; 0x15e36 <process_commands() [clone .part.46]+0x3422>
   157da:	86 3f       	cpi	r24, 0xF6	; 246
   157dc:	31 e0       	ldi	r19, 0x01	; 1
   157de:	93 07       	cpc	r25, r19
   157e0:	11 f4       	brne	.+4      	; 0x157e6 <process_commands() [clone .part.46]+0x2dd2>
   157e2:	0c 94 f7 bf 	jmp	0x17fee	; 0x17fee <process_commands() [clone .part.46]+0x55da>
   157e6:	87 3f       	cpi	r24, 0xF7	; 247
   157e8:	91 40       	sbci	r25, 0x01	; 1
   157ea:	09 f0       	breq	.+2      	; 0x157ee <process_commands() [clone .part.46]+0x2dda>
   157ec:	55 c8       	rjmp	.-3926   	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

#ifndef DISABLE_M503
void Config_PrintSettings(uint8_t level)
{  // Always have this function, even with EEPROM_SETTINGS disabled, the current values will be shown
#ifdef TMC2130
  printf_P(PSTR(
   157ee:	80 91 21 0e 	lds	r24, 0x0E21	; 0x800e21 <cs+0x63>
   157f2:	8f 93       	push	r24
   157f4:	80 91 20 0e 	lds	r24, 0x0E20	; 0x800e20 <cs+0x62>
   157f8:	8f 93       	push	r24
   157fa:	80 91 1f 0e 	lds	r24, 0x0E1F	; 0x800e1f <cs+0x61>
   157fe:	8f 93       	push	r24
   15800:	80 91 1e 0e 	lds	r24, 0x0E1E	; 0x800e1e <cs+0x60>
   15804:	8f 93       	push	r24
   15806:	80 91 1d 0e 	lds	r24, 0x0E1D	; 0x800e1d <cs+0x5f>
   1580a:	8f 93       	push	r24
   1580c:	80 91 1c 0e 	lds	r24, 0x0E1C	; 0x800e1c <cs+0x5e>
   15810:	8f 93       	push	r24
   15812:	80 91 1b 0e 	lds	r24, 0x0E1B	; 0x800e1b <cs+0x5d>
   15816:	8f 93       	push	r24
   15818:	80 91 1a 0e 	lds	r24, 0x0E1A	; 0x800e1a <cs+0x5c>
   1581c:	8f 93       	push	r24
   1581e:	80 91 19 0e 	lds	r24, 0x0E19	; 0x800e19 <cs+0x5b>
   15822:	8f 93       	push	r24
   15824:	80 91 18 0e 	lds	r24, 0x0E18	; 0x800e18 <cs+0x5a>
   15828:	8f 93       	push	r24
   1582a:	80 91 17 0e 	lds	r24, 0x0E17	; 0x800e17 <cs+0x59>
   1582e:	8f 93       	push	r24
   15830:	80 91 16 0e 	lds	r24, 0x0E16	; 0x800e16 <cs+0x58>
   15834:	8f 93       	push	r24
   15836:	00 ed       	ldi	r16, 0xD0	; 208
   15838:	1a ea       	ldi	r17, 0xAA	; 170
   1583a:	1f 93       	push	r17
   1583c:	0f 93       	push	r16
   1583e:	1f 93       	push	r17
   15840:	0f 93       	push	r16
   15842:	80 91 15 0e 	lds	r24, 0x0E15	; 0x800e15 <cs+0x57>
   15846:	8f 93       	push	r24
   15848:	80 91 14 0e 	lds	r24, 0x0E14	; 0x800e14 <cs+0x56>
   1584c:	8f 93       	push	r24
   1584e:	80 91 13 0e 	lds	r24, 0x0E13	; 0x800e13 <cs+0x55>
   15852:	8f 93       	push	r24
   15854:	80 91 12 0e 	lds	r24, 0x0E12	; 0x800e12 <cs+0x54>
   15858:	8f 93       	push	r24
   1585a:	80 91 11 0e 	lds	r24, 0x0E11	; 0x800e11 <cs+0x53>
   1585e:	8f 93       	push	r24
   15860:	80 91 10 0e 	lds	r24, 0x0E10	; 0x800e10 <cs+0x52>
   15864:	8f 93       	push	r24
   15866:	80 91 0f 0e 	lds	r24, 0x0E0F	; 0x800e0f <cs+0x51>
   1586a:	8f 93       	push	r24
   1586c:	80 91 0e 0e 	lds	r24, 0x0E0E	; 0x800e0e <cs+0x50>
   15870:	8f 93       	push	r24
   15872:	80 91 0d 0e 	lds	r24, 0x0E0D	; 0x800e0d <cs+0x4f>
   15876:	8f 93       	push	r24
   15878:	80 91 0c 0e 	lds	r24, 0x0E0C	; 0x800e0c <cs+0x4e>
   1587c:	8f 93       	push	r24
   1587e:	80 91 0b 0e 	lds	r24, 0x0E0B	; 0x800e0b <cs+0x4d>
   15882:	8f 93       	push	r24
   15884:	80 91 0a 0e 	lds	r24, 0x0E0A	; 0x800e0a <cs+0x4c>
   15888:	8f 93       	push	r24
   1588a:	80 91 09 0e 	lds	r24, 0x0E09	; 0x800e09 <cs+0x4b>
   1588e:	8f 93       	push	r24
   15890:	80 91 08 0e 	lds	r24, 0x0E08	; 0x800e08 <cs+0x4a>
   15894:	8f 93       	push	r24
   15896:	80 91 07 0e 	lds	r24, 0x0E07	; 0x800e07 <cs+0x49>
   1589a:	8f 93       	push	r24
   1589c:	80 91 06 0e 	lds	r24, 0x0E06	; 0x800e06 <cs+0x48>
   158a0:	8f 93       	push	r24
   158a2:	80 91 05 0e 	lds	r24, 0x0E05	; 0x800e05 <cs+0x47>
   158a6:	8f 93       	push	r24
   158a8:	80 91 04 0e 	lds	r24, 0x0E04	; 0x800e04 <cs+0x46>
   158ac:	8f 93       	push	r24
   158ae:	80 91 03 0e 	lds	r24, 0x0E03	; 0x800e03 <cs+0x45>
   158b2:	8f 93       	push	r24
   158b4:	80 91 02 0e 	lds	r24, 0x0E02	; 0x800e02 <cs+0x44>
   158b8:	8f 93       	push	r24
   158ba:	80 91 01 0e 	lds	r24, 0x0E01	; 0x800e01 <cs+0x43>
   158be:	8f 93       	push	r24
   158c0:	80 91 00 0e 	lds	r24, 0x0E00	; 0x800e00 <cs+0x42>
   158c4:	8f 93       	push	r24
   158c6:	80 91 ff 0d 	lds	r24, 0x0DFF	; 0x800dff <cs+0x41>
   158ca:	8f 93       	push	r24
   158cc:	80 91 fe 0d 	lds	r24, 0x0DFE	; 0x800dfe <cs+0x40>
   158d0:	8f 93       	push	r24
   158d2:	80 91 fd 0d 	lds	r24, 0x0DFD	; 0x800dfd <cs+0x3f>
   158d6:	8f 93       	push	r24
   158d8:	80 91 fc 0d 	lds	r24, 0x0DFC	; 0x800dfc <cs+0x3e>
   158dc:	8f 93       	push	r24
   158de:	80 91 fb 0d 	lds	r24, 0x0DFB	; 0x800dfb <cs+0x3d>
   158e2:	8f 93       	push	r24
   158e4:	80 91 fa 0d 	lds	r24, 0x0DFA	; 0x800dfa <cs+0x3c>
   158e8:	8f 93       	push	r24
   158ea:	1f 93       	push	r17
   158ec:	0f 93       	push	r16
   158ee:	1f 93       	push	r17
   158f0:	0f 93       	push	r16
   158f2:	80 91 81 0e 	lds	r24, 0x0E81	; 0x800e81 <cs+0xc3>
   158f6:	8f 93       	push	r24
   158f8:	80 91 80 0e 	lds	r24, 0x0E80	; 0x800e80 <cs+0xc2>
   158fc:	8f 93       	push	r24
   158fe:	80 91 7f 0e 	lds	r24, 0x0E7F	; 0x800e7f <cs+0xc1>
   15902:	8f 93       	push	r24
   15904:	80 91 7e 0e 	lds	r24, 0x0E7E	; 0x800e7e <cs+0xc0>
   15908:	8f 93       	push	r24
   1590a:	80 91 f9 0d 	lds	r24, 0x0DF9	; 0x800df9 <cs+0x3b>
   1590e:	8f 93       	push	r24
   15910:	80 91 f8 0d 	lds	r24, 0x0DF8	; 0x800df8 <cs+0x3a>
   15914:	8f 93       	push	r24
   15916:	80 91 f7 0d 	lds	r24, 0x0DF7	; 0x800df7 <cs+0x39>
   1591a:	8f 93       	push	r24
   1591c:	80 91 f6 0d 	lds	r24, 0x0DF6	; 0x800df6 <cs+0x38>
   15920:	8f 93       	push	r24
   15922:	80 91 f5 0d 	lds	r24, 0x0DF5	; 0x800df5 <cs+0x37>
   15926:	8f 93       	push	r24
   15928:	80 91 f4 0d 	lds	r24, 0x0DF4	; 0x800df4 <cs+0x36>
   1592c:	8f 93       	push	r24
   1592e:	80 91 f3 0d 	lds	r24, 0x0DF3	; 0x800df3 <cs+0x35>
   15932:	8f 93       	push	r24
   15934:	80 91 f2 0d 	lds	r24, 0x0DF2	; 0x800df2 <cs+0x34>
   15938:	8f 93       	push	r24
   1593a:	1f 93       	push	r17
   1593c:	0f 93       	push	r16
   1593e:	1f 93       	push	r17
   15940:	0f 93       	push	r16
   15942:	80 91 79 0e 	lds	r24, 0x0E79	; 0x800e79 <cs+0xbb>
   15946:	8f 93       	push	r24
   15948:	80 91 78 0e 	lds	r24, 0x0E78	; 0x800e78 <cs+0xba>
   1594c:	8f 93       	push	r24
   1594e:	80 91 77 0e 	lds	r24, 0x0E77	; 0x800e77 <cs+0xb9>
   15952:	8f 93       	push	r24
   15954:	80 91 76 0e 	lds	r24, 0x0E76	; 0x800e76 <cs+0xb8>
   15958:	8f 93       	push	r24
   1595a:	80 91 75 0e 	lds	r24, 0x0E75	; 0x800e75 <cs+0xb7>
   1595e:	8f 93       	push	r24
   15960:	80 91 74 0e 	lds	r24, 0x0E74	; 0x800e74 <cs+0xb6>
   15964:	8f 93       	push	r24
   15966:	80 91 73 0e 	lds	r24, 0x0E73	; 0x800e73 <cs+0xb5>
   1596a:	8f 93       	push	r24
   1596c:	80 91 72 0e 	lds	r24, 0x0E72	; 0x800e72 <cs+0xb4>
   15970:	8f 93       	push	r24
   15972:	80 91 71 0e 	lds	r24, 0x0E71	; 0x800e71 <cs+0xb3>
   15976:	8f 93       	push	r24
   15978:	80 91 70 0e 	lds	r24, 0x0E70	; 0x800e70 <cs+0xb2>
   1597c:	8f 93       	push	r24
   1597e:	80 91 6f 0e 	lds	r24, 0x0E6F	; 0x800e6f <cs+0xb1>
   15982:	8f 93       	push	r24
   15984:	80 91 6e 0e 	lds	r24, 0x0E6E	; 0x800e6e <cs+0xb0>
   15988:	8f 93       	push	r24
   1598a:	80 91 6d 0e 	lds	r24, 0x0E6D	; 0x800e6d <cs+0xaf>
   1598e:	8f 93       	push	r24
   15990:	80 91 6c 0e 	lds	r24, 0x0E6C	; 0x800e6c <cs+0xae>
   15994:	8f 93       	push	r24
   15996:	80 91 6b 0e 	lds	r24, 0x0E6B	; 0x800e6b <cs+0xad>
   1599a:	8f 93       	push	r24
   1599c:	80 91 6a 0e 	lds	r24, 0x0E6A	; 0x800e6a <cs+0xac>
   159a0:	8f 93       	push	r24
   159a2:	1f 93       	push	r17
   159a4:	0f 93       	push	r16
   159a6:	1f 93       	push	r17
   159a8:	0f 93       	push	r16
   159aa:	80 91 f1 0d 	lds	r24, 0x0DF1	; 0x800df1 <cs+0x33>
   159ae:	8f 93       	push	r24
   159b0:	80 91 f0 0d 	lds	r24, 0x0DF0	; 0x800df0 <cs+0x32>
   159b4:	8f 93       	push	r24
   159b6:	80 91 ef 0d 	lds	r24, 0x0DEF	; 0x800def <cs+0x31>
   159ba:	8f 93       	push	r24
   159bc:	80 91 ee 0d 	lds	r24, 0x0DEE	; 0x800dee <cs+0x30>
   159c0:	8f 93       	push	r24
   159c2:	80 91 ed 0d 	lds	r24, 0x0DED	; 0x800ded <cs+0x2f>
   159c6:	8f 93       	push	r24
   159c8:	80 91 ec 0d 	lds	r24, 0x0DEC	; 0x800dec <cs+0x2e>
   159cc:	8f 93       	push	r24
   159ce:	80 91 eb 0d 	lds	r24, 0x0DEB	; 0x800deb <cs+0x2d>
   159d2:	8f 93       	push	r24
   159d4:	80 91 ea 0d 	lds	r24, 0x0DEA	; 0x800dea <cs+0x2c>
   159d8:	8f 93       	push	r24
   159da:	80 91 e9 0d 	lds	r24, 0x0DE9	; 0x800de9 <cs+0x2b>
   159de:	8f 93       	push	r24
   159e0:	80 91 e8 0d 	lds	r24, 0x0DE8	; 0x800de8 <cs+0x2a>
   159e4:	8f 93       	push	r24
   159e6:	80 91 e7 0d 	lds	r24, 0x0DE7	; 0x800de7 <cs+0x29>
   159ea:	8f 93       	push	r24
   159ec:	80 91 e6 0d 	lds	r24, 0x0DE6	; 0x800de6 <cs+0x28>
   159f0:	8f 93       	push	r24
   159f2:	80 91 e5 0d 	lds	r24, 0x0DE5	; 0x800de5 <cs+0x27>
   159f6:	8f 93       	push	r24
   159f8:	80 91 e4 0d 	lds	r24, 0x0DE4	; 0x800de4 <cs+0x26>
   159fc:	8f 93       	push	r24
   159fe:	80 91 e3 0d 	lds	r24, 0x0DE3	; 0x800de3 <cs+0x25>
   15a02:	8f 93       	push	r24
   15a04:	80 91 e2 0d 	lds	r24, 0x0DE2	; 0x800de2 <cs+0x24>
   15a08:	8f 93       	push	r24
   15a0a:	1f 93       	push	r17
   15a0c:	0f 93       	push	r16
   15a0e:	1f 93       	push	r17
   15a10:	0f 93       	push	r16
   15a12:	80 91 69 0e 	lds	r24, 0x0E69	; 0x800e69 <cs+0xab>
   15a16:	8f 93       	push	r24
   15a18:	80 91 68 0e 	lds	r24, 0x0E68	; 0x800e68 <cs+0xaa>
   15a1c:	8f 93       	push	r24
   15a1e:	80 91 67 0e 	lds	r24, 0x0E67	; 0x800e67 <cs+0xa9>
   15a22:	8f 93       	push	r24
   15a24:	80 91 66 0e 	lds	r24, 0x0E66	; 0x800e66 <cs+0xa8>
   15a28:	8f 93       	push	r24
   15a2a:	80 91 65 0e 	lds	r24, 0x0E65	; 0x800e65 <cs+0xa7>
   15a2e:	8f 93       	push	r24
   15a30:	80 91 64 0e 	lds	r24, 0x0E64	; 0x800e64 <cs+0xa6>
   15a34:	8f 93       	push	r24
   15a36:	80 91 63 0e 	lds	r24, 0x0E63	; 0x800e63 <cs+0xa5>
   15a3a:	8f 93       	push	r24
   15a3c:	80 91 62 0e 	lds	r24, 0x0E62	; 0x800e62 <cs+0xa4>
   15a40:	8f 93       	push	r24
   15a42:	80 91 61 0e 	lds	r24, 0x0E61	; 0x800e61 <cs+0xa3>
   15a46:	8f 93       	push	r24
   15a48:	80 91 60 0e 	lds	r24, 0x0E60	; 0x800e60 <cs+0xa2>
   15a4c:	8f 93       	push	r24
   15a4e:	80 91 5f 0e 	lds	r24, 0x0E5F	; 0x800e5f <cs+0xa1>
   15a52:	8f 93       	push	r24
   15a54:	80 91 5e 0e 	lds	r24, 0x0E5E	; 0x800e5e <cs+0xa0>
   15a58:	8f 93       	push	r24
   15a5a:	80 91 5d 0e 	lds	r24, 0x0E5D	; 0x800e5d <cs+0x9f>
   15a5e:	8f 93       	push	r24
   15a60:	80 91 5c 0e 	lds	r24, 0x0E5C	; 0x800e5c <cs+0x9e>
   15a64:	8f 93       	push	r24
   15a66:	80 91 5b 0e 	lds	r24, 0x0E5B	; 0x800e5b <cs+0x9d>
   15a6a:	8f 93       	push	r24
   15a6c:	80 91 5a 0e 	lds	r24, 0x0E5A	; 0x800e5a <cs+0x9c>
   15a70:	8f 93       	push	r24
   15a72:	1f 93       	push	r17
   15a74:	0f 93       	push	r16
   15a76:	1f 93       	push	r17
   15a78:	0f 93       	push	r16
   15a7a:	80 91 e1 0d 	lds	r24, 0x0DE1	; 0x800de1 <cs+0x23>
   15a7e:	8f 93       	push	r24
   15a80:	80 91 e0 0d 	lds	r24, 0x0DE0	; 0x800de0 <cs+0x22>
   15a84:	8f 93       	push	r24
   15a86:	80 91 df 0d 	lds	r24, 0x0DDF	; 0x800ddf <cs+0x21>
   15a8a:	8f 93       	push	r24
   15a8c:	80 91 de 0d 	lds	r24, 0x0DDE	; 0x800dde <cs+0x20>
   15a90:	8f 93       	push	r24
   15a92:	80 91 dd 0d 	lds	r24, 0x0DDD	; 0x800ddd <cs+0x1f>
   15a96:	8f 93       	push	r24
   15a98:	80 91 dc 0d 	lds	r24, 0x0DDC	; 0x800ddc <cs+0x1e>
   15a9c:	8f 93       	push	r24
   15a9e:	80 91 db 0d 	lds	r24, 0x0DDB	; 0x800ddb <cs+0x1d>
   15aa2:	8f 93       	push	r24
   15aa4:	80 91 da 0d 	lds	r24, 0x0DDA	; 0x800dda <cs+0x1c>
   15aa8:	8f 93       	push	r24
   15aaa:	80 91 d9 0d 	lds	r24, 0x0DD9	; 0x800dd9 <cs+0x1b>
   15aae:	8f 93       	push	r24
   15ab0:	80 91 d8 0d 	lds	r24, 0x0DD8	; 0x800dd8 <cs+0x1a>
   15ab4:	8f 93       	push	r24
   15ab6:	80 91 d7 0d 	lds	r24, 0x0DD7	; 0x800dd7 <cs+0x19>
   15aba:	8f 93       	push	r24
   15abc:	80 91 d6 0d 	lds	r24, 0x0DD6	; 0x800dd6 <cs+0x18>
   15ac0:	8f 93       	push	r24
   15ac2:	80 91 d5 0d 	lds	r24, 0x0DD5	; 0x800dd5 <cs+0x17>
   15ac6:	8f 93       	push	r24
   15ac8:	80 91 d4 0d 	lds	r24, 0x0DD4	; 0x800dd4 <cs+0x16>
   15acc:	8f 93       	push	r24
   15ace:	80 91 d3 0d 	lds	r24, 0x0DD3	; 0x800dd3 <cs+0x15>
   15ad2:	8f 93       	push	r24
   15ad4:	80 91 d2 0d 	lds	r24, 0x0DD2	; 0x800dd2 <cs+0x14>
   15ad8:	8f 93       	push	r24
   15ada:	1f 93       	push	r17
   15adc:	0f 93       	push	r16
   15ade:	1f 93       	push	r17
   15ae0:	0f 93       	push	r16
   15ae2:	80 91 7d 0e 	lds	r24, 0x0E7D	; 0x800e7d <cs+0xbf>
   15ae6:	1f 92       	push	r1
   15ae8:	8f 93       	push	r24
   15aea:	80 91 7c 0e 	lds	r24, 0x0E7C	; 0x800e7c <cs+0xbe>
   15aee:	1f 92       	push	r1
   15af0:	8f 93       	push	r24
   15af2:	80 91 7b 0e 	lds	r24, 0x0E7B	; 0x800e7b <cs+0xbd>
   15af6:	1f 92       	push	r1
   15af8:	8f 93       	push	r24
   15afa:	80 91 7a 0e 	lds	r24, 0x0E7A	; 0x800e7a <cs+0xbc>
   15afe:	1f 92       	push	r1
   15b00:	8f 93       	push	r24
   15b02:	1f 93       	push	r17
   15b04:	0f 93       	push	r16
   15b06:	1f 93       	push	r17
   15b08:	0f 93       	push	r16
   15b0a:	80 91 d1 0d 	lds	r24, 0x0DD1	; 0x800dd1 <cs+0x13>
   15b0e:	8f 93       	push	r24
   15b10:	80 91 d0 0d 	lds	r24, 0x0DD0	; 0x800dd0 <cs+0x12>
   15b14:	8f 93       	push	r24
   15b16:	80 91 cf 0d 	lds	r24, 0x0DCF	; 0x800dcf <cs+0x11>
   15b1a:	8f 93       	push	r24
   15b1c:	80 91 ce 0d 	lds	r24, 0x0DCE	; 0x800dce <cs+0x10>
   15b20:	8f 93       	push	r24
   15b22:	80 91 cd 0d 	lds	r24, 0x0DCD	; 0x800dcd <cs+0xf>
   15b26:	8f 93       	push	r24
   15b28:	80 91 cc 0d 	lds	r24, 0x0DCC	; 0x800dcc <cs+0xe>
   15b2c:	8f 93       	push	r24
   15b2e:	80 91 cb 0d 	lds	r24, 0x0DCB	; 0x800dcb <cs+0xd>
   15b32:	8f 93       	push	r24
   15b34:	80 91 ca 0d 	lds	r24, 0x0DCA	; 0x800dca <cs+0xc>
   15b38:	8f 93       	push	r24
   15b3a:	80 91 c9 0d 	lds	r24, 0x0DC9	; 0x800dc9 <cs+0xb>
   15b3e:	8f 93       	push	r24
   15b40:	80 91 c8 0d 	lds	r24, 0x0DC8	; 0x800dc8 <cs+0xa>
   15b44:	8f 93       	push	r24
   15b46:	80 91 c7 0d 	lds	r24, 0x0DC7	; 0x800dc7 <cs+0x9>
   15b4a:	8f 93       	push	r24
   15b4c:	80 91 c6 0d 	lds	r24, 0x0DC6	; 0x800dc6 <cs+0x8>
   15b50:	8f 93       	push	r24
   15b52:	80 91 c5 0d 	lds	r24, 0x0DC5	; 0x800dc5 <cs+0x7>
   15b56:	8f 93       	push	r24
   15b58:	80 91 c4 0d 	lds	r24, 0x0DC4	; 0x800dc4 <cs+0x6>
   15b5c:	8f 93       	push	r24
   15b5e:	80 91 c3 0d 	lds	r24, 0x0DC3	; 0x800dc3 <cs+0x5>
   15b62:	8f 93       	push	r24
   15b64:	80 91 c2 0d 	lds	r24, 0x0DC2	; 0x800dc2 <cs+0x4>
   15b68:	8f 93       	push	r24
   15b6a:	1f 93       	push	r17
   15b6c:	0f 93       	push	r16
   15b6e:	1f 93       	push	r17
   15b70:	0f 93       	push	r16
   15b72:	89 e4       	ldi	r24, 0x49	; 73
   15b74:	90 e8       	ldi	r25, 0x80	; 128
   15b76:	9f 93       	push	r25
   15b78:	8f 93       	push	r24
   15b7a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
		echomagic, echomagic, cs.minimumfeedrate, cs.mintravelfeedrate, cs.min_segment_time_us, cs.max_jerk[X_AXIS], cs.max_jerk[Y_AXIS], cs.max_jerk[Z_AXIS], cs.max_jerk[E_AXIS],
		echomagic, echomagic, cs.add_homing[X_AXIS], cs.add_homing[Y_AXIS], cs.add_homing[Z_AXIS]
#endif //TMC2130
  );
#ifdef PIDTEMP
  printf_P(PSTR("%SPID settings:\n%S   M301 P%.2f I%.2f D%.2f\n"),
   15b7e:	0f b6       	in	r0, 0x3f	; 63
   15b80:	f8 94       	cli
   15b82:	de bf       	out	0x3e, r29	; 62
   15b84:	0f be       	out	0x3f, r0	; 63
   15b86:	cd bf       	out	0x3d, r28	; 61
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   15b88:	2c ea       	ldi	r18, 0xAC	; 172
   15b8a:	35 ec       	ldi	r19, 0xC5	; 197
   15b8c:	47 e2       	ldi	r20, 0x27	; 39
   15b8e:	5e e3       	ldi	r21, 0x3E	; 62
   15b90:	60 91 2e 0e 	lds	r22, 0x0E2E	; 0x800e2e <cs+0x70>
   15b94:	70 91 2f 0e 	lds	r23, 0x0E2F	; 0x800e2f <cs+0x71>
   15b98:	80 91 30 0e 	lds	r24, 0x0E30	; 0x800e30 <cs+0x72>
   15b9c:	90 91 31 0e 	lds	r25, 0x0E31	; 0x800e31 <cs+0x73>
   15ba0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   15ba4:	9f 93       	push	r25
   15ba6:	8f 93       	push	r24
   15ba8:	7f 93       	push	r23
   15baa:	6f 93       	push	r22
}

float unscalePID_i(float i)
{
	return i/PID_dT;
   15bac:	2c ea       	ldi	r18, 0xAC	; 172
   15bae:	35 ec       	ldi	r19, 0xC5	; 197
   15bb0:	47 e2       	ldi	r20, 0x27	; 39
   15bb2:	5e e3       	ldi	r21, 0x3E	; 62
   15bb4:	60 91 2a 0e 	lds	r22, 0x0E2A	; 0x800e2a <cs+0x6c>
   15bb8:	70 91 2b 0e 	lds	r23, 0x0E2B	; 0x800e2b <cs+0x6d>
   15bbc:	80 91 2c 0e 	lds	r24, 0x0E2C	; 0x800e2c <cs+0x6e>
   15bc0:	90 91 2d 0e 	lds	r25, 0x0E2D	; 0x800e2d <cs+0x6f>
   15bc4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   15bc8:	9f 93       	push	r25
   15bca:	8f 93       	push	r24
   15bcc:	7f 93       	push	r23
   15bce:	6f 93       	push	r22
   15bd0:	80 91 29 0e 	lds	r24, 0x0E29	; 0x800e29 <cs+0x6b>
   15bd4:	8f 93       	push	r24
   15bd6:	80 91 28 0e 	lds	r24, 0x0E28	; 0x800e28 <cs+0x6a>
   15bda:	8f 93       	push	r24
   15bdc:	80 91 27 0e 	lds	r24, 0x0E27	; 0x800e27 <cs+0x69>
   15be0:	8f 93       	push	r24
   15be2:	80 91 26 0e 	lds	r24, 0x0E26	; 0x800e26 <cs+0x68>
   15be6:	8f 93       	push	r24
   15be8:	1f 93       	push	r17
   15bea:	0f 93       	push	r16
   15bec:	1f 93       	push	r17
   15bee:	0f 93       	push	r16
   15bf0:	8c e1       	ldi	r24, 0x1C	; 28
   15bf2:	90 e8       	ldi	r25, 0x80	; 128
   15bf4:	9f 93       	push	r25
   15bf6:	8f 93       	push	r24
   15bf8:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   15bfc:	2c ea       	ldi	r18, 0xAC	; 172
   15bfe:	35 ec       	ldi	r19, 0xC5	; 197
   15c00:	47 e2       	ldi	r20, 0x27	; 39
   15c02:	5e e3       	ldi	r21, 0x3E	; 62
   15c04:	60 91 3a 0e 	lds	r22, 0x0E3A	; 0x800e3a <cs+0x7c>
   15c08:	70 91 3b 0e 	lds	r23, 0x0E3B	; 0x800e3b <cs+0x7d>
   15c0c:	80 91 3c 0e 	lds	r24, 0x0E3C	; 0x800e3c <cs+0x7e>
   15c10:	90 91 3d 0e 	lds	r25, 0x0E3D	; 0x800e3d <cs+0x7f>
   15c14:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    echomagic, echomagic, cs.Kp, unscalePID_i(cs.Ki), unscalePID_d(cs.Kd));
#endif
#ifdef PIDTEMPBED
  printf_P(PSTR("%SPID heatbed settings:\n%S   M304 P%.2f I%.2f D%.2f\n"),
   15c18:	9f 93       	push	r25
   15c1a:	8f 93       	push	r24
   15c1c:	7f 93       	push	r23
   15c1e:	6f 93       	push	r22
}

float unscalePID_i(float i)
{
	return i/PID_dT;
   15c20:	2c ea       	ldi	r18, 0xAC	; 172
   15c22:	35 ec       	ldi	r19, 0xC5	; 197
   15c24:	47 e2       	ldi	r20, 0x27	; 39
   15c26:	5e e3       	ldi	r21, 0x3E	; 62
   15c28:	60 91 36 0e 	lds	r22, 0x0E36	; 0x800e36 <cs+0x78>
   15c2c:	70 91 37 0e 	lds	r23, 0x0E37	; 0x800e37 <cs+0x79>
   15c30:	80 91 38 0e 	lds	r24, 0x0E38	; 0x800e38 <cs+0x7a>
   15c34:	90 91 39 0e 	lds	r25, 0x0E39	; 0x800e39 <cs+0x7b>
   15c38:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   15c3c:	9f 93       	push	r25
   15c3e:	8f 93       	push	r24
   15c40:	7f 93       	push	r23
   15c42:	6f 93       	push	r22
   15c44:	80 91 35 0e 	lds	r24, 0x0E35	; 0x800e35 <cs+0x77>
   15c48:	8f 93       	push	r24
   15c4a:	80 91 34 0e 	lds	r24, 0x0E34	; 0x800e34 <cs+0x76>
   15c4e:	8f 93       	push	r24
   15c50:	80 91 33 0e 	lds	r24, 0x0E33	; 0x800e33 <cs+0x75>
   15c54:	8f 93       	push	r24
   15c56:	80 91 32 0e 	lds	r24, 0x0E32	; 0x800e32 <cs+0x74>
   15c5a:	8f 93       	push	r24
   15c5c:	1f 93       	push	r17
   15c5e:	0f 93       	push	r16
   15c60:	1f 93       	push	r17
   15c62:	0f 93       	push	r16
   15c64:	87 ee       	ldi	r24, 0xE7	; 231
   15c66:	9f e7       	ldi	r25, 0x7F	; 127
   15c68:	9f 93       	push	r25
   15c6a:	8f 93       	push	r24
   15c6c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    echomagic, echomagic, cs.bedKp, unscalePID_i(cs.bedKi), unscalePID_d(cs.bedKd));
#endif
#ifdef FWRETRACT
  printf_P(PSTR(
   15c70:	0f b6       	in	r0, 0x3f	; 63
   15c72:	f8 94       	cli
   15c74:	de bf       	out	0x3e, r29	; 62
   15c76:	0f be       	out	0x3f, r0	; 63
   15c78:	cd bf       	out	0x3d, r28	; 61
   15c7a:	80 91 40 0e 	lds	r24, 0x0E40	; 0x800e40 <cs+0x82>
   15c7e:	1f 92       	push	r1
   15c80:	8f 93       	push	r24
   15c82:	1f 93       	push	r17
   15c84:	0f 93       	push	r16
   15c86:	1f 93       	push	r17
   15c88:	0f 93       	push	r16
   15c8a:	20 e0       	ldi	r18, 0x00	; 0
   15c8c:	30 e0       	ldi	r19, 0x00	; 0
   15c8e:	40 e7       	ldi	r20, 0x70	; 112
   15c90:	52 e4       	ldi	r21, 0x42	; 66
   15c92:	60 91 51 0e 	lds	r22, 0x0E51	; 0x800e51 <cs+0x93>
   15c96:	70 91 52 0e 	lds	r23, 0x0E52	; 0x800e52 <cs+0x94>
   15c9a:	80 91 53 0e 	lds	r24, 0x0E53	; 0x800e53 <cs+0x95>
   15c9e:	90 91 54 0e 	lds	r25, 0x0E54	; 0x800e54 <cs+0x96>
   15ca2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   15ca6:	9f 93       	push	r25
   15ca8:	8f 93       	push	r24
   15caa:	7f 93       	push	r23
   15cac:	6f 93       	push	r22
   15cae:	80 91 50 0e 	lds	r24, 0x0E50	; 0x800e50 <cs+0x92>
   15cb2:	8f 93       	push	r24
   15cb4:	80 91 4f 0e 	lds	r24, 0x0E4F	; 0x800e4f <cs+0x91>
   15cb8:	8f 93       	push	r24
   15cba:	80 91 4e 0e 	lds	r24, 0x0E4E	; 0x800e4e <cs+0x90>
   15cbe:	8f 93       	push	r24
   15cc0:	80 91 4d 0e 	lds	r24, 0x0E4D	; 0x800e4d <cs+0x8f>
   15cc4:	8f 93       	push	r24
   15cc6:	1f 93       	push	r17
   15cc8:	0f 93       	push	r16
   15cca:	1f 93       	push	r17
   15ccc:	0f 93       	push	r16
   15cce:	80 91 4c 0e 	lds	r24, 0x0E4C	; 0x800e4c <cs+0x8e>
   15cd2:	8f 93       	push	r24
   15cd4:	80 91 4b 0e 	lds	r24, 0x0E4B	; 0x800e4b <cs+0x8d>
   15cd8:	8f 93       	push	r24
   15cda:	80 91 4a 0e 	lds	r24, 0x0E4A	; 0x800e4a <cs+0x8c>
   15cde:	8f 93       	push	r24
   15ce0:	80 91 49 0e 	lds	r24, 0x0E49	; 0x800e49 <cs+0x8b>
   15ce4:	8f 93       	push	r24
   15ce6:	20 e0       	ldi	r18, 0x00	; 0
   15ce8:	30 e0       	ldi	r19, 0x00	; 0
   15cea:	40 e7       	ldi	r20, 0x70	; 112
   15cec:	52 e4       	ldi	r21, 0x42	; 66
   15cee:	60 91 45 0e 	lds	r22, 0x0E45	; 0x800e45 <cs+0x87>
   15cf2:	70 91 46 0e 	lds	r23, 0x0E46	; 0x800e46 <cs+0x88>
   15cf6:	80 91 47 0e 	lds	r24, 0x0E47	; 0x800e47 <cs+0x89>
   15cfa:	90 91 48 0e 	lds	r25, 0x0E48	; 0x800e48 <cs+0x8a>
   15cfe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   15d02:	9f 93       	push	r25
   15d04:	8f 93       	push	r24
   15d06:	7f 93       	push	r23
   15d08:	6f 93       	push	r22
   15d0a:	80 91 44 0e 	lds	r24, 0x0E44	; 0x800e44 <cs+0x86>
   15d0e:	8f 93       	push	r24
   15d10:	80 91 43 0e 	lds	r24, 0x0E43	; 0x800e43 <cs+0x85>
   15d14:	8f 93       	push	r24
   15d16:	80 91 42 0e 	lds	r24, 0x0E42	; 0x800e42 <cs+0x84>
   15d1a:	8f 93       	push	r24
   15d1c:	80 91 41 0e 	lds	r24, 0x0E41	; 0x800e41 <cs+0x83>
   15d20:	8f 93       	push	r24
   15d22:	1f 93       	push	r17
   15d24:	0f 93       	push	r16
   15d26:	1f 93       	push	r17
   15d28:	0f 93       	push	r16
   15d2a:	86 ee       	ldi	r24, 0xE6	; 230
   15d2c:	9e e7       	ldi	r25, 0x7E	; 126
   15d2e:	9f 93       	push	r25
   15d30:	8f 93       	push	r24
   15d32:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
  );
#if EXTRUDERS > 1
  printf_P(PSTR("%SMulti-extruder settings:\n%S   Swap retract length (mm):    %.2f\n%S   Swap rec. addl. length (mm): %.2f\n"),
    echomagic, echomagic, retract_length_swap, echomagic, retract_recover_length_swap);
#endif
  if (cs.volumetric_enabled) {
   15d36:	0f b6       	in	r0, 0x3f	; 63
   15d38:	f8 94       	cli
   15d3a:	de bf       	out	0x3e, r29	; 62
   15d3c:	0f be       	out	0x3f, r0	; 63
   15d3e:	cd bf       	out	0x3d, r28	; 61
   15d40:	80 91 55 0e 	lds	r24, 0x0E55	; 0x800e55 <cs+0x97>
   15d44:	88 23       	and	r24, r24
   15d46:	11 f4       	brne	.+4      	; 0x15d4c <process_commands() [clone .part.46]+0x3338>
   15d48:	0c 94 fb bf 	jmp	0x17ff6	; 0x17ff6 <process_commands() [clone .part.46]+0x55e2>
    printf_P(PSTR("%SFilament settings:\n%S   M200 D%.2f\n"),
   15d4c:	80 91 59 0e 	lds	r24, 0x0E59	; 0x800e59 <cs+0x9b>
   15d50:	8f 93       	push	r24
   15d52:	80 91 58 0e 	lds	r24, 0x0E58	; 0x800e58 <cs+0x9a>
   15d56:	8f 93       	push	r24
   15d58:	80 91 57 0e 	lds	r24, 0x0E57	; 0x800e57 <cs+0x99>
   15d5c:	8f 93       	push	r24
   15d5e:	80 91 56 0e 	lds	r24, 0x0E56	; 0x800e56 <cs+0x98>
   15d62:	8f 93       	push	r24
   15d64:	1f 93       	push	r17
   15d66:	0f 93       	push	r16
   15d68:	1f 93       	push	r17
   15d6a:	0f 93       	push	r16
   15d6c:	80 ec       	ldi	r24, 0xC0	; 192
   15d6e:	9e e7       	ldi	r25, 0x7E	; 126
   15d70:	9f 93       	push	r25
   15d72:	8f 93       	push	r24
   15d74:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   15d78:	0f b6       	in	r0, 0x3f	; 63
   15d7a:	f8 94       	cli
   15d7c:	de bf       	out	0x3e, r29	; 62
   15d7e:	0f be       	out	0x3f, r0	; 63
   15d80:	cd bf       	out	0x3d, r28	; 61
    printf_P(PSTR("%SLinear advance settings:%S   M900 K%.2f\n"),
                 echomagic, echomagic, extruder_advance_K);
#endif //LIN_ADVANCE
  }
    // Arc Interpolation Settings
    printf_P(PSTR(
   15d82:	80 91 8e 0e 	lds	r24, 0x0E8E	; 0x800e8e <cs+0xd0>
   15d86:	8f 93       	push	r24
   15d88:	80 91 8d 0e 	lds	r24, 0x0E8D	; 0x800e8d <cs+0xcf>
   15d8c:	8f 93       	push	r24
   15d8e:	80 91 8c 0e 	lds	r24, 0x0E8C	; 0x800e8c <cs+0xce>
   15d92:	8f 93       	push	r24
   15d94:	80 91 8b 0e 	lds	r24, 0x0E8B	; 0x800e8b <cs+0xcd>
   15d98:	8f 93       	push	r24
   15d9a:	80 91 8a 0e 	lds	r24, 0x0E8A	; 0x800e8a <cs+0xcc>
   15d9e:	1f 92       	push	r1
   15da0:	8f 93       	push	r24
   15da2:	80 91 89 0e 	lds	r24, 0x0E89	; 0x800e89 <cs+0xcb>
   15da6:	8f 93       	push	r24
   15da8:	80 91 88 0e 	lds	r24, 0x0E88	; 0x800e88 <cs+0xca>
   15dac:	8f 93       	push	r24
   15dae:	80 91 87 0e 	lds	r24, 0x0E87	; 0x800e87 <cs+0xc9>
   15db2:	8f 93       	push	r24
   15db4:	80 91 86 0e 	lds	r24, 0x0E86	; 0x800e86 <cs+0xc8>
   15db8:	8f 93       	push	r24
   15dba:	80 91 85 0e 	lds	r24, 0x0E85	; 0x800e85 <cs+0xc7>
   15dbe:	8f 93       	push	r24
   15dc0:	80 91 84 0e 	lds	r24, 0x0E84	; 0x800e84 <cs+0xc6>
   15dc4:	8f 93       	push	r24
   15dc6:	80 91 83 0e 	lds	r24, 0x0E83	; 0x800e83 <cs+0xc5>
   15dca:	8f 93       	push	r24
   15dcc:	80 91 82 0e 	lds	r24, 0x0E82	; 0x800e82 <cs+0xc4>
   15dd0:	8f 93       	push	r24
   15dd2:	00 ed       	ldi	r16, 0xD0	; 208
   15dd4:	1a ea       	ldi	r17, 0xAA	; 170
   15dd6:	1f 93       	push	r17
   15dd8:	0f 93       	push	r16
   15dda:	1f 93       	push	r17
   15ddc:	0f 93       	push	r16
   15dde:	8f e1       	ldi	r24, 0x1F	; 31
   15de0:	9e e7       	ldi	r25, 0x7E	; 126
   15de2:	9f 93       	push	r25
   15de4:	8f 93       	push	r24
   15de6:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        "%SArc Settings: P:Max length(mm) S:Min length (mm) N:Corrections R:Min segments F:Segments/sec.\n%S  M214 P%.2f S%.2f N%d R%d F%d\n"),
        echomagic, echomagic, cs.mm_per_arc_segment, cs.min_mm_per_arc_segment, cs.n_arc_correction, cs.min_arc_segments, cs.arc_segments_per_sec);
#ifdef THERMAL_MODEL
    thermal_model_report_settings();
   15dea:	0f 94 cd 2e 	call	0x25d9a	; 0x25d9a <thermal_model_report_settings()>
#endif
		printf_P(PSTR(
   15dee:	8d ee       	ldi	r24, 0xED	; 237
   15df0:	9f e0       	ldi	r25, 0x0F	; 15
   15df2:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   15df6:	f6 2e       	mov	r15, r22
   15df8:	e7 2e       	mov	r14, r23
   15dfa:	d8 2e       	mov	r13, r24
   15dfc:	c9 2e       	mov	r12, r25
   15dfe:	81 ef       	ldi	r24, 0xF1	; 241
   15e00:	9f e0       	ldi	r25, 0x0F	; 15
   15e02:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   15e06:	cf 92       	push	r12
   15e08:	df 92       	push	r13
   15e0a:	ef 92       	push	r14
   15e0c:	ff 92       	push	r15
   15e0e:	9f 93       	push	r25
   15e10:	8f 93       	push	r24
   15e12:	7f 93       	push	r23
   15e14:	6f 93       	push	r22
   15e16:	1f 93       	push	r17
   15e18:	0f 93       	push	r16
   15e1a:	1f 93       	push	r17
   15e1c:	0f 93       	push	r16
   15e1e:	8e ef       	ldi	r24, 0xFE	; 254
   15e20:	9d e7       	ldi	r25, 0x7D	; 125
   15e22:	9f 93       	push	r25
   15e24:	8f 93       	push	r24
   15e26:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   15e2a:	0f b6       	in	r0, 0x3f	; 63
   15e2c:	f8 94       	cli
   15e2e:	de bf       	out	0x3e, r29	; 62
   15e30:	0f be       	out	0x3f, r0	; 63
   15e32:	cd bf       	out	0x3d, r28	; 61
   15e34:	58 c1       	rjmp	.+688    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   15e36:	88 35       	cpi	r24, 0x58	; 88
   15e38:	52 e0       	ldi	r21, 0x02	; 2
   15e3a:	95 07       	cpc	r25, r21
   15e3c:	11 f4       	brne	.+4      	; 0x15e42 <process_commands() [clone .part.46]+0x342e>
   15e3e:	0c 94 15 c0 	jmp	0x1802a	; 0x1802a <process_commands() [clone .part.46]+0x5616>
   15e42:	14 f0       	brlt	.+4      	; 0x15e48 <process_commands() [clone .part.46]+0x3434>
   15e44:	0c 94 c0 a4 	jmp	0x14980	; 0x14980 <process_commands() [clone .part.46]+0x1f6c>
   15e48:	88 32       	cpi	r24, 0x28	; 40
   15e4a:	92 40       	sbci	r25, 0x02	; 2
   15e4c:	11 f0       	breq	.+4      	; 0x15e52 <process_commands() [clone .part.46]+0x343e>
   15e4e:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
        - `P` - The IP address in xxx.xxx.xxx.xxx format. Eg: P192.168.1.14
    */
    case 552:
    {
        if (code_seen('P'))
   15e52:	80 e5       	ldi	r24, 0x50	; 80
   15e54:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15e58:	88 23       	and	r24, r24
   15e5a:	09 f4       	brne	.+2      	; 0x15e5e <process_commands() [clone .part.46]+0x344a>
   15e5c:	44 c1       	rjmp	.+648    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        {
            uint8_t valCnt = 0;
            IP_address = 0;
   15e5e:	10 92 5e 06 	sts	0x065E, r1	; 0x80065e <IP_address>
   15e62:	10 92 5f 06 	sts	0x065F, r1	; 0x80065f <IP_address+0x1>
   15e66:	10 92 60 06 	sts	0x0660, r1	; 0x800660 <IP_address+0x2>
   15e6a:	10 92 61 06 	sts	0x0661, r1	; 0x800661 <IP_address+0x3>
   15e6e:	0e e5       	ldi	r16, 0x5E	; 94
   15e70:	16 e0       	ldi	r17, 0x06	; 6
   15e72:	42 e6       	ldi	r20, 0x62	; 98
   15e74:	e4 2e       	mov	r14, r20
   15e76:	46 e0       	ldi	r20, 0x06	; 6
   15e78:	f4 2e       	mov	r15, r20
            do
            {
                *strchr_pointer = '*';
   15e7a:	5a e2       	ldi	r21, 0x2A	; 42
   15e7c:	d5 2e       	mov	r13, r21
   15e7e:	e0 91 95 03 	lds	r30, 0x0395	; 0x800395 <strchr_pointer>
   15e82:	f0 91 96 03 	lds	r31, 0x0396	; 0x800396 <strchr_pointer+0x1>
   15e86:	d0 82       	st	Z, r13
                ((uint8_t*)&IP_address)[valCnt] = code_value_short();
   15e88:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   15e8c:	d8 01       	movw	r26, r16
   15e8e:	8d 93       	st	X+, r24
   15e90:	8d 01       	movw	r16, r26
                valCnt++;
            } while ((valCnt < 4) && code_seen('.'));
   15e92:	ea 16       	cp	r14, r26
   15e94:	fb 06       	cpc	r15, r27
   15e96:	09 f4       	brne	.+2      	; 0x15e9a <process_commands() [clone .part.46]+0x3486>
   15e98:	26 c1       	rjmp	.+588    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   15e9a:	8e e2       	ldi	r24, 0x2E	; 46
   15e9c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15ea0:	81 11       	cpse	r24, r1
   15ea2:	ed cf       	rjmp	.-38     	; 0x15e7e <process_commands() [clone .part.46]+0x346a>

            if (valCnt != 4)
                IP_address = 0;
   15ea4:	10 92 5e 06 	sts	0x065E, r1	; 0x80065e <IP_address>
   15ea8:	10 92 5f 06 	sts	0x065F, r1	; 0x80065f <IP_address+0x1>
   15eac:	10 92 60 06 	sts	0x0660, r1	; 0x800660 <IP_address+0x2>
   15eb0:	10 92 61 06 	sts	0x0661, r1	; 0x800661 <IP_address+0x3>
   15eb4:	18 c1       	rjmp	.+560    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15eb6:	8e 3b       	cpi	r24, 0xBE	; 190
   15eb8:	e2 e0       	ldi	r30, 0x02	; 2
   15eba:	9e 07       	cpc	r25, r30
   15ebc:	11 f4       	brne	.+4      	; 0x15ec2 <process_commands() [clone .part.46]+0x34ae>
   15ebe:	0c 94 e9 ca 	jmp	0x195d2	; 0x195d2 <process_commands() [clone .part.46]+0x6bbe>
   15ec2:	0c f0       	brlt	.+2      	; 0x15ec6 <process_commands() [clone .part.46]+0x34b2>
   15ec4:	4a c0       	rjmp	.+148    	; 0x15f5a <process_commands() [clone .part.46]+0x3546>
   15ec6:	8b 35       	cpi	r24, 0x5B	; 91
   15ec8:	22 e0       	ldi	r18, 0x02	; 2
   15eca:	92 07       	cpc	r25, r18
   15ecc:	11 f4       	brne	.+4      	; 0x15ed2 <process_commands() [clone .part.46]+0x34be>
   15ece:	0c 94 28 c4 	jmp	0x18850	; 0x18850 <process_commands() [clone .part.46]+0x5e3c>
   15ed2:	8d 3b       	cpi	r24, 0xBD	; 189
   15ed4:	92 40       	sbci	r25, 0x02	; 2
   15ed6:	11 f0       	breq	.+4      	; 0x15edc <process_commands() [clone .part.46]+0x34c8>
   15ed8:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    case 701:
    {
        uint8_t mmuSlotIndex = 0xffU;
        float fastLoadLength = FILAMENTCHANGE_FIRSTFEED; // Only used without MMU
        float z_target = 0;
        if( MMU2::mmu2.Enabled() )
   15edc:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   15ee0:	81 30       	cpi	r24, 0x01	; 1
   15ee2:	11 f4       	brne	.+4      	; 0x15ee8 <process_commands() [clone .part.46]+0x34d4>
   15ee4:	0c 94 8a ca 	jmp	0x19514	; 0x19514 <process_commands() [clone .part.46]+0x6b00>
    - `L` - Extrude distance for insertion (positive value)(manual reload)
    - `Z` - Move the Z axis by this distance. Default value is 0 to maintain backwards compatibility with older gcodes.
    */
    case 701:
    {
        uint8_t mmuSlotIndex = 0xffU;
   15ee8:	1f ef       	ldi	r17, 0xFF	; 255
            if( code_seen('P') || code_seen('T') ) {
                mmuSlotIndex = code_value_uint8();
            }
        }

        if (code_seen('L')) fastLoadLength = code_value();
   15eea:	8c e4       	ldi	r24, 0x4C	; 76
   15eec:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    - `Z` - Move the Z axis by this distance. Default value is 0 to maintain backwards compatibility with older gcodes.
    */
    case 701:
    {
        uint8_t mmuSlotIndex = 0xffU;
        float fastLoadLength = FILAMENTCHANGE_FIRSTFEED; // Only used without MMU
   15ef0:	c1 2c       	mov	r12, r1
   15ef2:	d1 2c       	mov	r13, r1
   15ef4:	6c e8       	ldi	r22, 0x8C	; 140
   15ef6:	e6 2e       	mov	r14, r22
   15ef8:	62 e4       	ldi	r22, 0x42	; 66
   15efa:	f6 2e       	mov	r15, r22
            if( code_seen('P') || code_seen('T') ) {
                mmuSlotIndex = code_value_uint8();
            }
        }

        if (code_seen('L')) fastLoadLength = code_value();
   15efc:	88 23       	and	r24, r24
   15efe:	21 f0       	breq	.+8      	; 0x15f08 <process_commands() [clone .part.46]+0x34f4>
   15f00:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15f04:	6b 01       	movw	r12, r22
   15f06:	7c 01       	movw	r14, r24

        // Z lift. For safety only allow positive values
        if (code_seen('Z')) z_target = fabs(code_value());
   15f08:	8a e5       	ldi	r24, 0x5A	; 90
   15f0a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15f0e:	88 23       	and	r24, r24
   15f10:	11 f4       	brne	.+4      	; 0x15f16 <process_commands() [clone .part.46]+0x3502>
   15f12:	0c 94 9b ca 	jmp	0x19536	; 0x19536 <process_commands() [clone .part.46]+0x6b22>
   15f16:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   15f1a:	9f 77       	andi	r25, 0x7F	; 127
        
        // Raise the Z axis
        float delta = raise_z(z_target);
   15f1c:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
   15f20:	4b 01       	movw	r8, r22
   15f22:	5c 01       	movw	r10, r24

        // Load filament
        gcode_M701(fastLoadLength, mmuSlotIndex, !code_seen('Z')); // if no z -> trigger MIN_Z_FOR_LOAD for backwards compatibility on 3.12 and older FW 
   15f24:	8a e5       	ldi	r24, 0x5A	; 90
   15f26:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15f2a:	08 2f       	mov	r16, r24
    }
    custom_message_type = CustomMsg::Status;
}

void gcode_M701(float fastLoadLength, uint8_t mmuSlotIndex, bool raise_z_axis = false){
    FSensorBlockRunout fsBlockRunout;
   15f2c:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

    prusa_statistics(22);

    if (MMU2::mmu2.Enabled()) {
   15f30:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   15f34:	81 30       	cpi	r24, 0x01	; 1
   15f36:	11 f0       	breq	.+4      	; 0x15f3c <process_commands() [clone .part.46]+0x3528>
   15f38:	0c 94 a0 ca 	jmp	0x19540	; 0x19540 <process_commands() [clone .part.46]+0x6b2c>
        if (mmuSlotIndex < MMU_FILAMENT_COUNT) {
   15f3c:	15 30       	cpi	r17, 0x05	; 5
   15f3e:	18 f4       	brcc	.+6      	; 0x15f46 <process_commands() [clone .part.46]+0x3532>
          MMU2::mmu2.load_filament_to_nozzle(mmuSlotIndex);
   15f40:	81 2f       	mov	r24, r17
   15f42:	0f 94 bc 0f 	call	0x21f78	; 0x21f78 <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]>
        lcd_update(2);
        lcd_setstatuspgm(MSG_WELCOME);
        custom_message_type = CustomMsg::Status;
    }

    eFilamentAction = FilamentAction::None;
   15f46:	10 92 a7 03 	sts	0x03A7, r1	; 0x8003a7 <eFilamentAction>
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
//    SERIAL_ECHOLNPGM("FSBlockRunout");
}

FSensorBlockRunout::~FSensorBlockRunout() {
    fsensor.settings_init(); // restore filament runout state.
   15f4a:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>

        // Load filament
        gcode_M701(fastLoadLength, mmuSlotIndex, !code_seen('Z')); // if no z -> trigger MIN_Z_FOR_LOAD for backwards compatibility on 3.12 and older FW 

        // Restore Z axis
        raise_z(-delta);
   15f4e:	c5 01       	movw	r24, r10
   15f50:	b4 01       	movw	r22, r8
   15f52:	90 58       	subi	r25, 0x80	; 128
   15f54:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
   15f58:	c6 c0       	rjmp	.+396    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15f5a:	81 3c       	cpi	r24, 0xC1	; 193
   15f5c:	42 e0       	ldi	r20, 0x02	; 2
   15f5e:	94 07       	cpc	r25, r20
   15f60:	11 f4       	brne	.+4      	; 0x15f66 <process_commands() [clone .part.46]+0x3552>
   15f62:	0c 94 1d cb 	jmp	0x1963a	; 0x1963a <process_commands() [clone .part.46]+0x6c26>
   15f66:	14 f0       	brlt	.+4      	; 0x15f6c <process_commands() [clone .part.46]+0x3558>
   15f68:	0c 94 23 cb 	jmp	0x19646	; 0x19646 <process_commands() [clone .part.46]+0x6c32>
   15f6c:	80 3c       	cpi	r24, 0xC0	; 192
   15f6e:	92 40       	sbci	r25, 0x02	; 2
   15f70:	11 f0       	breq	.+4      	; 0x15f76 <process_commands() [clone .part.46]+0x3562>
   15f72:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    #### Parameters
    - `P` - n index of slot (zero based, so 0-4 like T0 and T4)
    */
    case 704:
    {
        gcodes_M704_M705_M706(704);
   15f76:	80 ec       	ldi	r24, 0xC0	; 192
   15f78:	92 e0       	ldi	r25, 0x02	; 2
   15f7a:	0e 94 d6 5f 	call	0xbfac	; 0xbfac <gcodes_M704_M705_M706(unsigned int)>
   15f7e:	b3 c0       	rjmp	.+358    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   15f80:	84 38       	cpi	r24, 0x84	; 132
   15f82:	b3 e0       	ldi	r27, 0x03	; 3
   15f84:	9b 07       	cpc	r25, r27
   15f86:	11 f4       	brne	.+4      	; 0x15f8c <process_commands() [clone .part.46]+0x3578>
   15f88:	0c 94 d2 c7 	jmp	0x18fa4	; 0x18fa4 <process_commands() [clone .part.46]+0x6590>
   15f8c:	0c f0       	brlt	.+2      	; 0x15f90 <process_commands() [clone .part.46]+0x357c>
   15f8e:	99 c0       	rjmp	.+306    	; 0x160c2 <process_commands() [clone .part.46]+0x36ae>
   15f90:	82 35       	cpi	r24, 0x52	; 82
   15f92:	f3 e0       	ldi	r31, 0x03	; 3
   15f94:	9f 07       	cpc	r25, r31
   15f96:	11 f4       	brne	.+4      	; 0x15f9c <process_commands() [clone .part.46]+0x3588>
   15f98:	0c 94 2e c4 	jmp	0x1885c	; 0x1885c <process_commands() [clone .part.46]+0x5e48>
   15f9c:	9c f5       	brge	.+102    	; 0x16004 <process_commands() [clone .part.46]+0x35f0>
   15f9e:	84 3c       	cpi	r24, 0xC4	; 196
   15fa0:	32 e0       	ldi	r19, 0x02	; 2
   15fa2:	93 07       	cpc	r25, r19
   15fa4:	11 f4       	brne	.+4      	; 0x15faa <process_commands() [clone .part.46]+0x3596>
   15fa6:	0c 94 46 cb 	jmp	0x1968c	; 0x1968c <process_commands() [clone .part.46]+0x6c78>
   15faa:	85 3c       	cpi	r24, 0xC5	; 197
   15fac:	92 40       	sbci	r25, 0x02	; 2
   15fae:	11 f0       	breq	.+4      	; 0x15fb4 <process_commands() [clone .part.46]+0x35a0>
   15fb0:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

    M709    - Serial message if en- or disabled
    */
    case 709:
    {
        if (code_seen('S'))
   15fb4:	83 e5       	ldi	r24, 0x53	; 83
   15fb6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15fba:	88 23       	and	r24, r24
   15fbc:	51 f0       	breq	.+20     	; 0x15fd2 <process_commands() [clone .part.46]+0x35be>
        {
            switch (code_value_uint8())
   15fbe:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   15fc2:	88 23       	and	r24, r24
   15fc4:	11 f4       	brne	.+4      	; 0x15fca <process_commands() [clone .part.46]+0x35b6>
   15fc6:	0c 94 72 cb 	jmp	0x196e4	; 0x196e4 <process_commands() [clone .part.46]+0x6cd0>
   15fca:	81 30       	cpi	r24, 0x01	; 1
   15fcc:	11 f4       	brne	.+4      	; 0x15fd2 <process_commands() [clone .part.46]+0x35be>
   15fce:	0c 94 7f cb 	jmp	0x196fe	; 0x196fe <process_commands() [clone .part.46]+0x6cea>
                break;
            default:
                break;
            }
        }
        if (MMU2::mmu2.Enabled() && code_seen('X'))
   15fd2:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   15fd6:	81 30       	cpi	r24, 0x01	; 1
   15fd8:	91 f4       	brne	.+36     	; 0x15ffe <process_commands() [clone .part.46]+0x35ea>
   15fda:	88 e5       	ldi	r24, 0x58	; 88
   15fdc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   15fe0:	88 23       	and	r24, r24
   15fe2:	69 f0       	breq	.+26     	; 0x15ffe <process_commands() [clone .part.46]+0x35ea>
        {
            switch (code_value_uint8())
   15fe4:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   15fe8:	81 30       	cpi	r24, 0x01	; 1
   15fea:	11 f4       	brne	.+4      	; 0x15ff0 <process_commands() [clone .part.46]+0x35dc>
   15fec:	0c 94 8d cb 	jmp	0x1971a	; 0x1971a <process_commands() [clone .part.46]+0x6d06>
   15ff0:	10 f4       	brcc	.+4      	; 0x15ff6 <process_commands() [clone .part.46]+0x35e2>
   15ff2:	0c 94 88 cb 	jmp	0x19710	; 0x19710 <process_commands() [clone .part.46]+0x6cfc>
   15ff6:	8a 32       	cpi	r24, 0x2A	; 42
   15ff8:	11 f4       	brne	.+4      	; 0x15ffe <process_commands() [clone .part.46]+0x35ea>
   15ffa:	0c 94 91 cb 	jmp	0x19722	; 0x19722 <process_commands() [clone .part.46]+0x6d0e>
                break;
            default:
                break;
            }
        }
    MMU2::mmu2.Status();
   15ffe:	0f 94 25 76 	call	0x2ec4a	; 0x2ec4a <MMU2::MMU2::Status() [clone .constprop.342]>
   16002:	71 c0       	rjmp	.+226    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   16004:	8d 35       	cpi	r24, 0x5D	; 93
   16006:	53 e0       	ldi	r21, 0x03	; 3
   16008:	95 07       	cpc	r25, r21
   1600a:	11 f4       	brne	.+4      	; 0x16010 <process_commands() [clone .part.46]+0x35fc>
   1600c:	0c 94 a4 c5 	jmp	0x18b48	; 0x18b48 <process_commands() [clone .part.46]+0x6134>
   16010:	8e 35       	cpi	r24, 0x5E	; 94
   16012:	a3 e0       	ldi	r26, 0x03	; 3
   16014:	9a 07       	cpc	r25, r26
   16016:	11 f4       	brne	.+4      	; 0x1601c <process_commands() [clone .part.46]+0x3608>
   16018:	0c 94 3c c6 	jmp	0x18c78	; 0x18c78 <process_commands() [clone .part.46]+0x6264>
   1601c:	8c 35       	cpi	r24, 0x5C	; 92
   1601e:	93 40       	sbci	r25, 0x03	; 3
   16020:	11 f0       	breq	.+4      	; 0x16026 <process_commands() [clone .part.46]+0x3612>
   16022:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    */
	case 860:
	{
		int set_target_pinda = 0;

		if (code_seen('S')) {
   16026:	83 e5       	ldi	r24, 0x53	; 83
   16028:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1602c:	88 23       	and	r24, r24
   1602e:	09 f4       	brne	.+2      	; 0x16032 <process_commands() [clone .part.46]+0x361e>
   16030:	5a c0       	rjmp	.+180    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
			set_target_pinda = code_value_short();
   16032:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   16036:	8c 01       	movw	r16, r24
		}
		else {
			break;
		}

		LCD_MESSAGERPGM(_T(MSG_PLEASE_WAIT));
   16038:	89 e9       	ldi	r24, 0x99	; 153
   1603a:	99 e3       	ldi	r25, 0x39	; 57
   1603c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   16040:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

		SERIAL_PROTOCOLPGM("Wait for PINDA target temperature:");
   16044:	89 e1       	ldi	r24, 0x19	; 25
   16046:	95 e8       	ldi	r25, 0x85	; 133
   16048:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
		SERIAL_PROTOCOLLN(set_target_pinda);
   1604c:	c8 01       	movw	r24, r16
   1604e:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>

		codenum = _millis();
   16052:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   16056:	4b 01       	movw	r8, r22
   16058:	5c 01       	movw	r10, r24
		cancel_heatup = false;
   1605a:	10 92 b5 0d 	sts	0x0DB5, r1	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>

		bool is_pinda_cooling = false;
		if (!(CHECK_ALL_HEATERS)) is_pinda_cooling = true;
   1605e:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   16062:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   16066:	89 2b       	or	r24, r25
   16068:	41 f4       	brne	.+16     	; 0x1607a <process_commands() [clone .part.46]+0x3666>
   1606a:	ff 24       	eor	r15, r15
   1606c:	f3 94       	inc	r15
   1606e:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   16072:	90 91 73 06 	lds	r25, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   16076:	89 2b       	or	r24, r25
   16078:	09 f0       	breq	.+2      	; 0x1607c <process_commands() [clone .part.46]+0x3668>
		SERIAL_PROTOCOLLN(set_target_pinda);

		codenum = _millis();
		cancel_heatup = false;

		bool is_pinda_cooling = false;
   1607a:	f1 2c       	mov	r15, r1
		if (!(CHECK_ALL_HEATERS)) is_pinda_cooling = true;

		while ( ((!is_pinda_cooling) && (!cancel_heatup) && (current_temperature_pinda < set_target_pinda)) || (is_pinda_cooling && (current_temperature_pinda > set_target_pinda)) ) {
   1607c:	28 01       	movw	r4, r16
   1607e:	01 2e       	mov	r0, r17
   16080:	00 0c       	add	r0, r0
   16082:	66 08       	sbc	r6, r6
   16084:	77 08       	sbc	r7, r7
   16086:	f1 10       	cpse	r15, r1
   16088:	0c 94 64 c5 	jmp	0x18ac8	; 0x18ac8 <process_commands() [clone .part.46]+0x60b4>
   1608c:	80 91 b5 0d 	lds	r24, 0x0DB5	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
   16090:	81 11       	cpse	r24, r1
   16092:	12 c0       	rjmp	.+36     	; 0x160b8 <process_commands() [clone .part.46]+0x36a4>
   16094:	c3 01       	movw	r24, r6
   16096:	b2 01       	movw	r22, r4
   16098:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1609c:	20 91 99 03 	lds	r18, 0x0399	; 0x800399 <current_temperature_pinda>
   160a0:	30 91 9a 03 	lds	r19, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   160a4:	40 91 9b 03 	lds	r20, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   160a8:	50 91 9c 03 	lds	r21, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   160ac:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   160b0:	18 16       	cp	r1, r24
   160b2:	14 f4       	brge	.+4      	; 0x160b8 <process_commands() [clone .part.46]+0x36a4>
   160b4:	0c 94 76 c5 	jmp	0x18aec	; 0x18aec <process_commands() [clone .part.46]+0x60d8>
			}
			manage_heater();
			manage_inactivity();
			lcd_update(0);
		}
		LCD_MESSAGERPGM(MSG_OK);
   160b8:	87 e1       	ldi	r24, 0x17	; 23
   160ba:	9d e6       	ldi	r25, 0x6D	; 109
   160bc:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   160c0:	12 c0       	rjmp	.+36     	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   160c2:	81 39       	cpi	r24, 0x91	; 145
   160c4:	e3 e0       	ldi	r30, 0x03	; 3
   160c6:	9e 07       	cpc	r25, r30
   160c8:	11 f4       	brne	.+4      	; 0x160ce <process_commands() [clone .part.46]+0x36ba>
   160ca:	0c 94 05 c9 	jmp	0x1920a	; 0x1920a <process_commands() [clone .part.46]+0x67f6>
   160ce:	8c f4       	brge	.+34     	; 0x160f2 <process_commands() [clone .part.46]+0x36de>
   160d0:	8b 38       	cpi	r24, 0x8B	; 139
   160d2:	23 e0       	ldi	r18, 0x03	; 3
   160d4:	92 07       	cpc	r25, r18
   160d6:	11 f4       	brne	.+4      	; 0x160dc <process_commands() [clone .part.46]+0x36c8>
   160d8:	0c 94 81 c8 	jmp	0x19102	; 0x19102 <process_commands() [clone .part.46]+0x66ee>
   160dc:	8c 38       	cpi	r24, 0x8C	; 140
   160de:	93 40       	sbci	r25, 0x03	; 3
   160e0:	11 f0       	breq	.+4      	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   160e2:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>
    */
	default:
		printf_P(MSG_UNKNOWN_CODE, 'M', cmdbuffer + bufindr + CMDHDRSIZE);
    }
//  printf_P(_N("END M-CODE=%u\n"), mcode_in_progress);
	mcode_in_progress = 0;
   160e6:	10 92 ab 0d 	sts	0x0DAB, r1	; 0x800dab <_ZL17mcode_in_progress.lto_priv.532+0x1>
   160ea:	10 92 aa 0d 	sts	0x0DAA, r1	; 0x800daa <_ZL17mcode_in_progress.lto_priv.532>
   160ee:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
	  } else
	  {
	  mcode_in_progress = code_value_short();
//	printf_P(_N("BEGIN M-CODE=%u\n"), mcode_in_progress);

    switch(mcode_in_progress)
   160f2:	84 39       	cpi	r24, 0x94	; 148
   160f4:	43 e0       	ldi	r20, 0x03	; 3
   160f6:	94 07       	cpc	r25, r20
   160f8:	14 f4       	brge	.+4      	; 0x160fe <process_commands() [clone .part.46]+0x36ea>
   160fa:	0c 94 54 c9 	jmp	0x192a8	; 0x192a8 <process_commands() [clone .part.46]+0x6894>
   160fe:	80 3a       	cpi	r24, 0xA0	; 160
   16100:	93 40       	sbci	r25, 0x03	; 3
   16102:	11 f0       	breq	.+4      	; 0x16108 <process_commands() [clone .part.46]+0x36f4>
   16104:	0c 94 4c a4 	jmp	0x14898	; 0x14898 <process_commands() [clone .part.46]+0x1e84>

        M928 [filename]

    */
    case 928:
      card.openLogFile(strchr_pointer+5);
   16108:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   1610c:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
  }
}

void CardReader::openLogFile(const char* name)
{
  logging = true;
   16110:	21 e0       	ldi	r18, 0x01	; 1
   16112:	20 93 8f 14 	sts	0x148F, r18	; 0x80148f <card+0x1>
  openFileWrite(name);
   16116:	05 96       	adiw	r24, 0x05	; 5
   16118:	0f 94 a8 86 	call	0x30d50	; 0x30d50 <CardReader::openFileWrite(char const*) [clone .constprop.182]>
   1611c:	e4 cf       	rjmp	.-56     	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `string` - Must for M1 and optional for M0 message to display on the LCD
    */

    case 0:
    case 1: {
        const char *src = strchr_pointer + 2;
   1611e:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
   16122:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16126:	0e 5f       	subi	r16, 0xFE	; 254
   16128:	1f 4f       	sbci	r17, 0xFF	; 255
        codenum = 0;
        if (code_seen('P')) codenum = code_value_long(); // milliseconds to wait
   1612a:	80 e5       	ldi	r24, 0x50	; 80
   1612c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    */

    case 0:
    case 1: {
        const char *src = strchr_pointer + 2;
        codenum = 0;
   16130:	c1 2c       	mov	r12, r1
   16132:	d1 2c       	mov	r13, r1
   16134:	76 01       	movw	r14, r12
        if (code_seen('P')) codenum = code_value_long(); // milliseconds to wait
   16136:	88 23       	and	r24, r24
   16138:	21 f0       	breq	.+8      	; 0x16142 <process_commands() [clone .part.46]+0x372e>
   1613a:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   1613e:	6b 01       	movw	r12, r22
   16140:	7c 01       	movw	r14, r24
        if (code_seen('S')) codenum = code_value_long() * 1000; // seconds to wait
   16142:	83 e5       	ldi	r24, 0x53	; 83
   16144:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16148:	88 23       	and	r24, r24
   1614a:	51 f0       	breq	.+20     	; 0x16160 <process_commands() [clone .part.46]+0x374c>
   1614c:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   16150:	9b 01       	movw	r18, r22
   16152:	ac 01       	movw	r20, r24
   16154:	a8 ee       	ldi	r26, 0xE8	; 232
   16156:	b3 e0       	ldi	r27, 0x03	; 3
   16158:	0f 94 f0 dc 	call	0x3b9e0	; 0x3b9e0 <__muluhisi3>
   1615c:	6b 01       	movw	r12, r22
   1615e:	7c 01       	movw	r14, r24
   16160:	c8 01       	movw	r24, r16
   16162:	0f 5f       	subi	r16, 0xFF	; 255
   16164:	1f 4f       	sbci	r17, 0xFF	; 255
        bool expiration_time_set = bool(codenum);

        while (*src == ' ') ++src;
   16166:	dc 01       	movw	r26, r24
   16168:	4c 91       	ld	r20, X
   1616a:	40 32       	cpi	r20, 0x20	; 32
   1616c:	c9 f3       	breq	.-14     	; 0x16160 <process_commands() [clone .part.46]+0x374c>
        custom_message_type = CustomMsg::M0Wait;
   1616e:	26 e0       	ldi	r18, 0x06	; 6
   16170:	20 93 c4 06 	sts	0x06C4, r18	; 0x8006c4 <custom_message_type>
        if (!expiration_time_set && *src != '\0') {
   16174:	c1 14       	cp	r12, r1
   16176:	d1 04       	cpc	r13, r1
   16178:	e1 04       	cpc	r14, r1
   1617a:	f1 04       	cpc	r15, r1
   1617c:	a1 f5       	brne	.+104    	; 0x161e6 <process_commands() [clone .part.46]+0x37d2>
   1617e:	2c 91       	ld	r18, X
   16180:	22 23       	and	r18, r18
   16182:	89 f1       	breq	.+98     	; 0x161e6 <process_commands() [clone .part.46]+0x37d2>
            lcd_setstatus(src);
   16184:	0e 94 6e f5 	call	0x1eadc	; 0x1eadc <lcd_setstatus(char const*)>
                LCD_MESSAGERPGM(_T(MSG_USERWAIT));
            } else {
                custom_message_type = CustomMsg::Status; // let the lcd display the name of the printed G-code file in farm mode
            }
        }
        st_synchronize();
   16188:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        menu_set_block(MENU_BLOCK_STATUS_SCREEN_M0);
   1618c:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   16190:	84 60       	ori	r24, 0x04	; 4
   16192:	80 93 d6 03 	sts	0x03D6, r24	; 0x8003d6 <menu_block_mask>
        previous_millis_cmd.start();
   16196:	86 e8       	ldi	r24, 0x86	; 134
   16198:	93 e0       	ldi	r25, 0x03	; 3
   1619a:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
        if (expiration_time_set) {
   1619e:	c1 14       	cp	r12, r1
   161a0:	d1 04       	cpc	r13, r1
   161a2:	e1 04       	cpc	r14, r1
   161a4:	f1 04       	cpc	r15, r1
   161a6:	79 f1       	breq	.+94     	; 0x16206 <process_commands() [clone .part.46]+0x37f2>
            codenum += _millis();  // keep track of when we started waiting
   161a8:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   161ac:	c6 0e       	add	r12, r22
   161ae:	d7 1e       	adc	r13, r23
   161b0:	e8 1e       	adc	r14, r24
   161b2:	f9 1e       	adc	r15, r25
            KEEPALIVE_STATE(PAUSED_FOR_USER);
   161b4:	84 e0       	ldi	r24, 0x04	; 4
   161b6:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
            while(_millis() < codenum && !lcd_clicked()) {
   161ba:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   161be:	6c 15       	cp	r22, r12
   161c0:	7d 05       	cpc	r23, r13
   161c2:	8e 05       	cpc	r24, r14
   161c4:	9f 05       	cpc	r25, r15
   161c6:	b0 f0       	brcs	.+44     	; 0x161f4 <process_commands() [clone .part.46]+0x37e0>
                delay_keep_alive(0);
            }
            KEEPALIVE_STATE(IN_HANDLER);
   161c8:	82 e0       	ldi	r24, 0x02	; 2
   161ca:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
        } else {
            marlin_wait_for_click();
        }
        menu_unset_block(MENU_BLOCK_STATUS_SCREEN_M0);
   161ce:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   161d2:	8b 7f       	andi	r24, 0xFB	; 251
   161d4:	80 93 d6 03 	sts	0x03D6, r24	; 0x8003d6 <menu_block_mask>
        if (IS_SD_PRINTING)
   161d8:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   161dc:	88 23       	and	r24, r24
   161de:	31 f1       	breq	.+76     	; 0x1622c <process_commands() [clone .part.46]+0x3818>
            custom_message_type = CustomMsg::Status;
   161e0:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
   161e4:	80 cf       	rjmp	.-256    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        } else {
            // farmers want to abuse a bug from the previous firmware releases
            // - they need to see the filename on the status screen instead of "Wait for user..."
            // So we won't update the message in farm mode...
            if( ! farm_mode){
                LCD_MESSAGERPGM(_T(MSG_USERWAIT));
   161e6:	82 eb       	ldi	r24, 0xB2	; 178
   161e8:	99 e3       	ldi	r25, 0x39	; 57
   161ea:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   161ee:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   161f2:	ca cf       	rjmp	.-108    	; 0x16188 <process_commands() [clone .part.46]+0x3774>
        menu_set_block(MENU_BLOCK_STATUS_SCREEN_M0);
        previous_millis_cmd.start();
        if (expiration_time_set) {
            codenum += _millis();  // keep track of when we started waiting
            KEEPALIVE_STATE(PAUSED_FOR_USER);
            while(_millis() < codenum && !lcd_clicked()) {
   161f4:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   161f8:	81 11       	cpse	r24, r1
   161fa:	e6 cf       	rjmp	.-52     	; 0x161c8 <process_commands() [clone .part.46]+0x37b4>
                delay_keep_alive(0);
   161fc:	90 e0       	ldi	r25, 0x00	; 0
   161fe:	80 e0       	ldi	r24, 0x00	; 0
   16200:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   16204:	da cf       	rjmp	.-76     	; 0x161ba <process_commands() [clone .part.46]+0x37a6>
//! @brief Wait for click
//!
//! Set
void marlin_wait_for_click()
{
    int8_t busy_state_backup = busy_state;
   16206:	10 91 be 02 	lds	r17, 0x02BE	; 0x8002be <busy_state>
    KEEPALIVE_STATE(PAUSED_FOR_USER);
   1620a:	84 e0       	ldi	r24, 0x04	; 4
   1620c:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    lcd_consume_click();
   16210:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
    while(!lcd_clicked())
   16214:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   16218:	81 11       	cpse	r24, r1
   1621a:	05 c0       	rjmp	.+10     	; 0x16226 <process_commands() [clone .part.46]+0x3812>
    {
        delay_keep_alive(0);
   1621c:	90 e0       	ldi	r25, 0x00	; 0
   1621e:	80 e0       	ldi	r24, 0x00	; 0
   16220:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   16224:	f7 cf       	rjmp	.-18     	; 0x16214 <process_commands() [clone .part.46]+0x3800>
    }
    KEEPALIVE_STATE(busy_state_backup);
   16226:	10 93 be 02 	sts	0x02BE, r17	; 0x8002be <busy_state>
   1622a:	d1 cf       	rjmp	.-94     	; 0x161ce <process_commands() [clone .part.46]+0x37ba>
        }
        menu_unset_block(MENU_BLOCK_STATUS_SCREEN_M0);
        if (IS_SD_PRINTING)
            custom_message_type = CustomMsg::Status;
        else
            LCD_MESSAGERPGM(MSG_WELCOME);
   1622c:	8f ec       	ldi	r24, 0xCF	; 207
   1622e:	9f e6       	ldi	r25, 0x6F	; 111
   16230:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   16234:	58 cf       	rjmp	.-336    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M17 - Enable all axes <a href="https://reprap.org/wiki/G-code#M17:_Enable.2FPower_all_stepper_motors">M17: Enable/Power all stepper motors</a>
    */

    case 17:
        LCD_MESSAGERPGM(_T(MSG_NO_MOVE));
   16236:	87 ea       	ldi	r24, 0xA7	; 167
   16238:	99 e3       	ldi	r25, 0x39	; 57
   1623a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1623e:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        enable_x();
   16242:	17 98       	cbi	0x02, 7	; 2
        enable_y();
   16244:	16 98       	cbi	0x02, 6	; 2
        enable_z();
   16246:	15 98       	cbi	0x02, 5	; 2
        enable_e0();
   16248:	14 98       	cbi	0x02, 4	; 2
   1624a:	4d cf       	rjmp	.-358    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M21 - Init SD card <a href="https://reprap.org/wiki/G-code#M21:_Initialize_SD_card">M21: Initialize SD card</a>
    */
    case 21:
      card.mount();
   1624c:	81 e0       	ldi	r24, 0x01	; 1
   1624e:	0f 94 04 82 	call	0x30408	; 0x30408 <CardReader::mount(bool) [clone .constprop.216]>
   16252:	49 cf       	rjmp	.-366    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		presort_flag = true;
#endif
}
void CardReader::release()
{
  sdprinting = false;
   16254:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
  mounted = false;
   16258:	10 92 91 14 	sts	0x1491, r1	; 0x801491 <card+0x3>
  SERIAL_ECHO_START;
   1625c:	80 ed       	ldi	r24, 0xD0	; 208
   1625e:	9a ea       	ldi	r25, 0xAA	; 170
   16260:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  SERIAL_ECHOLNRPGM(_n("SD card released"));////MSG_SD_CARD_RELEASED
   16264:	84 ef       	ldi	r24, 0xF4	; 244
   16266:	9a e6       	ldi	r25, 0x6A	; 106
   16268:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   1626c:	3c cf       	rjmp	.-392    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M24 - Start SD print <a href="https://reprap.org/wiki/G-code#M24:_Start.2Fresume_SD_print">M24: Start/resume SD print</a>
    */
    case 24:
    if (printingIsPaused())
   1626e:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   16272:	88 23       	and	r24, r24
   16274:	19 f0       	breq	.+6      	; 0x1627c <process_commands() [clone .part.46]+0x3868>
      lcd_resume_print();
   16276:	0e 94 fc f8 	call	0x1f1f8	; 0x1f1f8 <lcd_resume_print()>
   1627a:	35 cf       	rjmp	.-406    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    else
    {
      if (!filament_presence_check()) {
   1627c:	0e 94 e7 f5 	call	0x1ebce	; 0x1ebce <filament_presence_check()>
   16280:	88 23       	and	r24, r24
   16282:	09 f4       	brne	.+2      	; 0x16286 <process_commands() [clone .part.46]+0x3872>
   16284:	30 cf       	rjmp	.-416    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16286:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   1628a:	88 23       	and	r24, r24
   1628c:	61 f0       	breq	.+24     	; 0x162a6 <process_commands() [clone .part.46]+0x3892>
        // Print was aborted
        break;
      }

      if (!card.get_sdpos())
   1628e:	80 91 a4 17 	lds	r24, 0x17A4	; 0x8017a4 <card+0x316>
   16292:	90 91 a5 17 	lds	r25, 0x17A5	; 0x8017a5 <card+0x317>
   16296:	a0 91 a6 17 	lds	r26, 0x17A6	; 0x8017a6 <card+0x318>
   1629a:	b0 91 a7 17 	lds	r27, 0x17A7	; 0x8017a7 <card+0x319>
   1629e:	89 2b       	or	r24, r25
   162a0:	8a 2b       	or	r24, r26
   162a2:	8b 2b       	or	r24, r27
   162a4:	69 f4       	brne	.+26     	; 0x162c0 <process_commands() [clone .part.46]+0x38ac>
      {
              // A new print has started from scratch, reset stats
              failstats_reset_print();
   162a6:	0e 94 ab 5b 	call	0xb756	; 0xb756 <failstats_reset_print()>
              sdpos_atomic = 0;
   162aa:	10 92 82 03 	sts	0x0382, r1	; 0x800382 <sdpos_atomic>
   162ae:	10 92 83 03 	sts	0x0383, r1	; 0x800383 <sdpos_atomic+0x1>
   162b2:	10 92 84 03 	sts	0x0384, r1	; 0x800384 <sdpos_atomic+0x2>
   162b6:	10 92 85 03 	sts	0x0385, r1	; 0x800385 <sdpos_atomic+0x3>
   162ba:	80 e0       	ldi	r24, 0x00	; 0
   162bc:	0e 94 9e 81 	call	0x1033c	; 0x1033c <la10c_mode_change(LA10C_MODE)>
}

void CardReader::startFileprint()
{
  if(mounted)
   162c0:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   162c4:	88 23       	and	r24, r24
   162c6:	31 f0       	breq	.+12     	; 0x162d4 <process_commands() [clone .part.46]+0x38c0>
  {
    sdprinting = true;
   162c8:	81 e0       	ldi	r24, 0x01	; 1
   162ca:	80 93 90 14 	sts	0x1490, r24	; 0x801490 <card+0x2>
   162ce:	85 e0       	ldi	r24, 0x05	; 5
   162d0:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
        la10c_reset();
#endif
      }

      card.startFileprint();
      print_job_timer.start();
   162d4:	0f 94 99 43 	call	0x28732	; 0x28732 <Stopwatch::start()>
      if (MMU2::mmu2.Enabled())
   162d8:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   162dc:	81 30       	cpi	r24, 0x01	; 1
   162de:	09 f0       	breq	.+2      	; 0x162e2 <process_commands() [clone .part.46]+0x38ce>
   162e0:	02 cf       	rjmp	.-508    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        if (MMU2::mmu2.FindaDetectsFilament() && !fsensor.getFilamentPresent())
   162e2:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   162e6:	88 23       	and	r24, r24
   162e8:	09 f4       	brne	.+2      	; 0x162ec <process_commands() [clone .part.46]+0x38d8>
   162ea:	fd ce       	rjmp	.-518    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   162ec:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   162f0:	81 11       	cpse	r24, r1
   162f2:	f9 ce       	rjmp	.-526    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        { // Filament only half way into the PTFE. Unload the filament.
          MMU2::mmu2.unload();
   162f4:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
   162f8:	f6 ce       	rjmp	.-532    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    #### Parameters
      - `S` - Index in bytes
    */
    case 26:
      if(card.mounted && code_seen('S')) {
   162fa:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   162fe:	88 23       	and	r24, r24
   16300:	09 f4       	brne	.+2      	; 0x16304 <process_commands() [clone .part.46]+0x38f0>
   16302:	f1 ce       	rjmp	.-542    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16304:	83 e5       	ldi	r24, 0x53	; 83
   16306:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1630a:	88 23       	and	r24, r24
   1630c:	09 f4       	brne	.+2      	; 0x16310 <process_commands() [clone .part.46]+0x38fc>
   1630e:	eb ce       	rjmp	.-554    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        long index = code_value_long();
   16310:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   16314:	6b 01       	movw	r12, r22
   16316:	7c 01       	movw	r14, r24
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
   16318:	c0 92 a4 17 	sts	0x17A4, r12	; 0x8017a4 <card+0x316>
   1631c:	d0 92 a5 17 	sts	0x17A5, r13	; 0x8017a5 <card+0x317>
   16320:	e0 92 a6 17 	sts	0x17A6, r14	; 0x8017a6 <card+0x318>
   16324:	f0 92 a7 17 	sts	0x17A7, r15	; 0x8017a7 <card+0x319>
   16328:	0f 94 de 76 	call	0x2edbc	; 0x2edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>
        card.setIndex(index);
        // We don't disable interrupt during update of sdpos_atomic
        // as we expect, that SD card print is not active in this moment
        sdpos_atomic = index;
   1632c:	c0 92 82 03 	sts	0x0382, r12	; 0x800382 <sdpos_atomic>
   16330:	d0 92 83 03 	sts	0x0383, r13	; 0x800383 <sdpos_atomic+0x1>
   16334:	e0 92 84 03 	sts	0x0384, r14	; 0x800384 <sdpos_atomic+0x2>
   16338:	f0 92 85 03 	sts	0x0385, r15	; 0x800385 <sdpos_atomic+0x3>
   1633c:	d4 ce       	rjmp	.-600    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    #### Parameters
      - `P` - Show full SFN path instead of LFN only.
    */
    case 27:
      card.getStatus(code_seen('P'));
   1633e:	80 e5       	ldi	r24, 0x50	; 80
   16340:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16344:	18 2f       	mov	r17, r24
	return filesize;
}

void CardReader::getStatus(bool arg_P)
{
    if (printingIsPaused())
   16346:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1634a:	88 23       	and	r24, r24
   1634c:	91 f0       	breq	.+36     	; 0x16372 <process_commands() [clone .part.46]+0x395e>
    {
        if (saved_printing && (saved_printing_type == PowerPanic::PRINT_TYPE_SD))
   1634e:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   16352:	88 23       	and	r24, r24
   16354:	49 f0       	breq	.+18     	; 0x16368 <process_commands() [clone .part.46]+0x3954>
   16356:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
   1635a:	81 11       	cpse	r24, r1
   1635c:	05 c0       	rjmp	.+10     	; 0x16368 <process_commands() [clone .part.46]+0x3954>
            SERIAL_PROTOCOLLNPGM("SD print paused");
   1635e:	8f e4       	ldi	r24, 0x4F	; 79
   16360:	94 e8       	ldi	r25, 0x84	; 132
   16362:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   16366:	bf ce       	rjmp	.-642    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        else
            SERIAL_PROTOCOLLNPGM("Print saved");
   16368:	83 e4       	ldi	r24, 0x43	; 67
   1636a:	94 e8       	ldi	r25, 0x84	; 132
   1636c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   16370:	ba ce       	rjmp	.-652    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    }
    else if (sdprinting)
   16372:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   16376:	88 23       	and	r24, r24
   16378:	09 f4       	brne	.+2      	; 0x1637c <process_commands() [clone .part.46]+0x3968>
   1637a:	4a c0       	rjmp	.+148    	; 0x16410 <process_commands() [clone .part.46]+0x39fc>
    {
        if (arg_P)
   1637c:	11 23       	and	r17, r17
   1637e:	e1 f1       	breq	.+120    	; 0x163f8 <process_commands() [clone .part.46]+0x39e4>
        {
            printAbsFilenameFast();
   16380:	0f 94 63 7b 	call	0x2f6c6	; 0x2f6c6 <CardReader::printAbsFilenameFast() [clone .constprop.250]>
            SERIAL_PROTOCOLLN();
   16384:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
        }
        else
            SERIAL_PROTOCOLLN(LONGEST_FILENAME);

        SERIAL_PROTOCOLRPGM(_N("SD printing byte "));////MSG_SD_PRINTING_BYTE
   16388:	8f e0       	ldi	r24, 0x0F	; 15
   1638a:	97 e6       	ldi	r25, 0x67	; 103
   1638c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   16390:	60 91 a4 17 	lds	r22, 0x17A4	; 0x8017a4 <card+0x316>
   16394:	70 91 a5 17 	lds	r23, 0x17A5	; 0x8017a5 <card+0x317>
   16398:	80 91 a6 17 	lds	r24, 0x17A6	; 0x8017a6 <card+0x318>
   1639c:	90 91 a7 17 	lds	r25, 0x17A7	; 0x8017a7 <card+0x319>
   163a0:	4a e0       	ldi	r20, 0x0A	; 10
   163a2:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   163a6:	8f e2       	ldi	r24, 0x2F	; 47
   163a8:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   163ac:	60 91 9d 17 	lds	r22, 0x179D	; 0x80179d <card+0x30f>
   163b0:	70 91 9e 17 	lds	r23, 0x179E	; 0x80179e <card+0x310>
   163b4:	80 91 9f 17 	lds	r24, 0x179F	; 0x80179f <card+0x311>
   163b8:	90 91 a0 17 	lds	r25, 0x17A0	; 0x8017a0 <card+0x312>
   163bc:	4a e0       	ldi	r20, 0x0A	; 10
   163be:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
}

void MarlinSerial::println(unsigned long n, int base)
{
  print(n, base);
  println();
   163c2:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
        SERIAL_PROTOCOL(sdpos);
        SERIAL_PROTOCOL('/');
        SERIAL_PROTOCOLLN(filesize);
        uint16_t time = print_job_timer.duration() / 60;
   163c6:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   163ca:	2c e3       	ldi	r18, 0x3C	; 60
   163cc:	30 e0       	ldi	r19, 0x00	; 0
   163ce:	40 e0       	ldi	r20, 0x00	; 0
   163d0:	50 e0       	ldi	r21, 0x00	; 0
   163d2:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
        SERIAL_PROTOCOL((int)(time / 60));
   163d6:	c9 01       	movw	r24, r18
   163d8:	6c e3       	ldi	r22, 0x3C	; 60
   163da:	70 e0       	ldi	r23, 0x00	; 0
   163dc:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   163e0:	8c 01       	movw	r16, r24
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   163e2:	90 e0       	ldi	r25, 0x00	; 0
   163e4:	80 e0       	ldi	r24, 0x00	; 0
   163e6:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   163ea:	8a e3       	ldi	r24, 0x3A	; 58
   163ec:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
        SERIAL_PROTOCOL(':');
        SERIAL_PROTOCOLLN((int)(time % 60));
   163f0:	c8 01       	movw	r24, r16
   163f2:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
   163f6:	77 ce       	rjmp	.-786    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        {
            printAbsFilenameFast();
            SERIAL_PROTOCOLLN();
        }
        else
            SERIAL_PROTOCOLLN(LONGEST_FILENAME);
   163f8:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   163fc:	88 23       	and	r24, r24
   163fe:	29 f0       	breq	.+10     	; 0x1640a <process_commands() [clone .part.46]+0x39f6>
   16400:	87 ea       	ldi	r24, 0xA7	; 167
   16402:	94 e1       	ldi	r25, 0x14	; 20
   16404:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   16408:	bf cf       	rjmp	.-130    	; 0x16388 <process_commands() [clone .part.46]+0x3974>
   1640a:	82 e9       	ldi	r24, 0x92	; 146
   1640c:	94 e1       	ldi	r25, 0x14	; 20
   1640e:	fa cf       	rjmp	.-12     	; 0x16404 <process_commands() [clone .part.46]+0x39f0>
        SERIAL_PROTOCOL((int)(time / 60));
        SERIAL_PROTOCOL(':');
        SERIAL_PROTOCOLLN((int)(time % 60));
    }
    else
        SERIAL_PROTOCOLLNPGM("Not SD printing");
   16410:	83 e3       	ldi	r24, 0x33	; 51
   16412:	94 e8       	ldi	r25, 0x84	; 132
   16414:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   16418:	66 ce       	rjmp	.-820    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M28 - Start SD write <a href="https://reprap.org/wiki/G-code#M28:_Begin_write_to_SD_card">M28: Begin write to SD card</a>
    */
    case 28:
      card.openFileWrite(strchr_pointer+4);
   1641a:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   1641e:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16422:	04 96       	adiw	r24, 0x04	; 4
   16424:	0f 94 a8 86 	call	0x30d50	; 0x30d50 <CardReader::openFileWrite(char const*) [clone .constprop.182]>
   16428:	5e ce       	rjmp	.-836    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
 * or an I/O error occurred.
 */
bool SdBaseFile::remove() {
  dir_t* d;
  // free any clusters - will fail if read-only or directory
  if (!truncate(0)) goto fail;
   1642a:	ce 01       	movw	r24, r28
   1642c:	01 96       	adiw	r24, 0x01	; 1
   1642e:	0f 94 bf 77 	call	0x2ef7e	; 0x2ef7e <SdBaseFile::truncate(unsigned long) [clone .constprop.263]>
   16432:	88 23       	and	r24, r24
   16434:	11 f4       	brne	.+4      	; 0x1643a <process_commands() [clone .part.46]+0x3a26>
   16436:	0c 94 94 a5 	jmp	0x14b28	; 0x14b28 <process_commands() [clone .part.46]+0x2114>

  // cache directory entry
  d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE);
   1643a:	61 e0       	ldi	r22, 0x01	; 1
   1643c:	ce 01       	movw	r24, r28
   1643e:	01 96       	adiw	r24, 0x01	; 1
   16440:	0f 94 63 59 	call	0x2b2c6	; 0x2b2c6 <SdBaseFile::cacheDirEntry(unsigned char)>
  if (!d) goto fail;
   16444:	00 97       	sbiw	r24, 0x00	; 0
   16446:	11 f4       	brne	.+4      	; 0x1644c <process_commands() [clone .part.46]+0x3a38>
   16448:	0c 94 94 a5 	jmp	0x14b28	; 0x14b28 <process_commands() [clone .part.46]+0x2114>

  // mark entry deleted
  d->name[0] = DIR_NAME_DELETED;
   1644c:	25 ee       	ldi	r18, 0xE5	; 229
   1644e:	fc 01       	movw	r30, r24
   16450:	20 83       	st	Z, r18

  // set this file closed
  type_ = FAT_FILE_TYPE_CLOSED;
   16452:	1c 82       	std	Y+4, r1	; 0x04

  // write entry to SD
  return vol_->cacheFlush();
   16454:	0f 94 57 54 	call	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>
   16458:	18 2f       	mov	r17, r24
   1645a:	0c 94 95 a5 	jmp	0x14b2a	; 0x14b2a <process_commands() [clone .part.46]+0x2116>
		  presort();
	  #endif
    }
    else
    {
      SERIAL_PROTOCOLPGM("Deletion failed, File: ");
   1645e:	8d e0       	ldi	r24, 0x0D	; 13
   16460:	94 e8       	ldi	r25, 0x84	; 132
   16462:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   16466:	23 96       	adiw	r28, 0x03	; 3
   16468:	8e ad       	ldd	r24, Y+62	; 0x3e
   1646a:	9f ad       	ldd	r25, Y+63	; 0x3f
   1646c:	23 97       	sbiw	r28, 0x03	; 3
   1646e:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   16472:	8e e2       	ldi	r24, 0x2E	; 46
   16474:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::println(char c, int base)
{
  print(c, base);
  println();
   16478:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   1647c:	34 ce       	rjmp	.-920    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    ### M31 - Report current print time <a href="https://reprap.org/wiki/G-code#M31:_Output_time_since_last_M109_or_SD_card_start_to_serial">M31: Output time since last M109 or SD card start to serial</a>
    */
    case 31: //M31 take time since the start of the SD print or an M109 command
      {
      char time[30];
      uint32_t t = print_job_timer.duration();
   1647e:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
      int16_t sec, min;
      min = t / 60;
      sec = t % 60;
   16482:	2c e3       	ldi	r18, 0x3C	; 60
   16484:	30 e0       	ldi	r19, 0x00	; 0
   16486:	40 e0       	ldi	r20, 0x00	; 0
   16488:	50 e0       	ldi	r21, 0x00	; 0
   1648a:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
      sprintf_P(time, PSTR("%i min, %i sec"), min, sec);
   1648e:	7f 93       	push	r23
   16490:	6f 93       	push	r22
   16492:	3f 93       	push	r19
   16494:	2f 93       	push	r18
   16496:	8e ee       	ldi	r24, 0xEE	; 238
   16498:	96 e8       	ldi	r25, 0x86	; 134
   1649a:	9f 93       	push	r25
   1649c:	8f 93       	push	r24
   1649e:	8e 01       	movw	r16, r28
   164a0:	0f 5f       	subi	r16, 0xFF	; 255
   164a2:	1f 4f       	sbci	r17, 0xFF	; 255
   164a4:	1f 93       	push	r17
   164a6:	0f 93       	push	r16
   164a8:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
      SERIAL_ECHO_START;
   164ac:	80 ed       	ldi	r24, 0xD0	; 208
   164ae:	9a ea       	ldi	r25, 0xAA	; 170
   164b0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_ECHOLN(time);
   164b4:	c8 01       	movw	r24, r16
   164b6:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
      lcd_setstatus(time);
   164ba:	c8 01       	movw	r24, r16
   164bc:	0e 94 6e f5 	call	0x1eadc	; 0x1eadc <lcd_setstatus(char const*)>
      autotempShutdown();
   164c0:	0f b6       	in	r0, 0x3f	; 63
   164c2:	f8 94       	cli
   164c4:	de bf       	out	0x3e, r29	; 62
   164c6:	0f be       	out	0x3f, r0	; 63
   164c8:	cd bf       	out	0x3d, r28	; 61
   164ca:	0d ce       	rjmp	.-998    	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    #### Parameters
    - `P` - Pin number.
    - `S` - Pin value. If the pin is analog, values are from 0 to 255. If the pin is digital, values are from 0 to 1.
    */
    case 42:
      if (code_seen('S'))
   164cc:	83 e5       	ldi	r24, 0x53	; 83
   164ce:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   164d2:	88 23       	and	r24, r24
   164d4:	09 f4       	brne	.+2      	; 0x164d8 <process_commands() [clone .part.46]+0x3ac4>
   164d6:	07 ce       	rjmp	.-1010   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        uint8_t pin_status = code_value_uint8();
   164d8:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   164dc:	08 2f       	mov	r16, r24
        int8_t pin_number = LED_PIN;
        if (code_seen('P'))
   164de:	80 e5       	ldi	r24, 0x50	; 80
   164e0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    */
    case 42:
      if (code_seen('S'))
      {
        uint8_t pin_status = code_value_uint8();
        int8_t pin_number = LED_PIN;
   164e4:	1d e0       	ldi	r17, 0x0D	; 13
        if (code_seen('P'))
   164e6:	88 23       	and	r24, r24
   164e8:	19 f0       	breq	.+6      	; 0x164f0 <process_commands() [clone .part.46]+0x3adc>
          pin_number = code_value_uint8();
   164ea:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   164ee:	18 2f       	mov	r17, r24
   164f0:	e2 ed       	ldi	r30, 0xD2	; 210
   164f2:	f6 e8       	ldi	r31, 0x86	; 134
   164f4:	8e ee       	ldi	r24, 0xEE	; 238
   164f6:	96 e8       	ldi	r25, 0x86	; 134
        for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(sensitive_pins[0])); i++)
        {
          if ((int8_t)pgm_read_byte(&sensitive_pins[i]) == pin_number)
   164f8:	24 91       	lpm	r18, Z
   164fa:	21 17       	cp	r18, r17
   164fc:	09 f4       	brne	.+2      	; 0x16500 <process_commands() [clone .part.46]+0x3aec>
   164fe:	f3 cd       	rjmp	.-1050   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16500:	31 96       	adiw	r30, 0x01	; 1
      {
        uint8_t pin_status = code_value_uint8();
        int8_t pin_number = LED_PIN;
        if (code_seen('P'))
          pin_number = code_value_uint8();
        for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(sensitive_pins[0])); i++)
   16502:	8e 17       	cp	r24, r30
   16504:	9f 07       	cpc	r25, r31
   16506:	c1 f7       	brne	.-16     	; 0x164f8 <process_commands() [clone .part.46]+0x3ae4>
            pin_number = -1;
            break;
          }
        }
      #if defined(FAN_PIN) && FAN_PIN > -1
        if (pin_number == FAN_PIN)
   16508:	16 30       	cpi	r17, 0x06	; 6
   1650a:	81 f4       	brne	.+32     	; 0x1652c <process_commands() [clone .part.46]+0x3b18>
          fanSpeed = pin_status;
   1650c:	00 93 e7 03 	sts	0x03E7, r16	; 0x8003e7 <fanSpeed>
      #endif
        if (pin_number > -1)
        {
          pinMode(pin_number, OUTPUT);
   16510:	61 e0       	ldi	r22, 0x01	; 1
   16512:	81 2f       	mov	r24, r17
   16514:	0e 94 ca e9 	call	0x1d394	; 0x1d394 <pinMode>
          digitalWrite(pin_number, pin_status);
   16518:	60 2f       	mov	r22, r16
   1651a:	81 2f       	mov	r24, r17
   1651c:	0e 94 9c e9 	call	0x1d338	; 0x1d338 <digitalWrite>
          analogWrite(pin_number, pin_status);
   16520:	60 2f       	mov	r22, r16
   16522:	70 e0       	ldi	r23, 0x00	; 0
   16524:	81 2f       	mov	r24, r17
   16526:	0e 94 fb e9 	call	0x1d3f6	; 0x1d3f6 <analogWrite>
   1652a:	dd cd       	rjmp	.-1094   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        }
      #if defined(FAN_PIN) && FAN_PIN > -1
        if (pin_number == FAN_PIN)
          fanSpeed = pin_status;
      #endif
        if (pin_number > -1)
   1652c:	17 fd       	sbrc	r17, 7
   1652e:	db cd       	rjmp	.-1098   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16530:	ef cf       	rjmp	.-34     	; 0x16510 <process_commands() [clone .part.46]+0x3afc>
    ### M44 - Reset the bed skew and offset calibration <a href="https://reprap.org/wiki/G-code#M44:_Reset_the_bed_skew_and_offset_calibration">M44: Reset the bed skew and offset calibration</a>
    */
    case 44: // M44: Prusa3D: Reset the bed skew and offset calibration.

        // Reset the baby step value and the baby step applied flag.
        calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
   16532:	80 e1       	ldi	r24, 0x10	; 16
   16534:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
        eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);
   16538:	81 ea       	ldi	r24, 0xA1	; 161
   1653a:	9d e0       	ldi	r25, 0x0D	; 13
   1653c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   16540:	3b e0       	ldi	r19, 0x0B	; 11
   16542:	83 9f       	mul	r24, r19
   16544:	c0 01       	movw	r24, r0
   16546:	11 24       	eor	r1, r1
   16548:	70 e0       	ldi	r23, 0x00	; 0
   1654a:	60 e0       	ldi	r22, 0x00	; 0
   1654c:	80 5b       	subi	r24, 0xB0	; 176
   1654e:	92 4f       	sbci	r25, 0xF2	; 242
   16550:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>

        // Reset the skew and offset in both RAM and EEPROM.
        calibration_status_clear(CALIBRATION_STATUS_XYZ);
   16554:	82 e0       	ldi	r24, 0x02	; 2
   16556:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
        reset_bed_offset_and_skew();
   1655a:	0f 94 94 ce 	call	0x39d28	; 0x39d28 <reset_bed_offset_and_skew()>

        // Reset world2machine_rotation_and_skew and world2machine_shift, therefore
        // the planner will not perform any adjustments in the XY plane.
        // Wait for the motors to stop and update the current position with the absolute values.
        world2machine_revert_to_uncorrected();
   1655e:	0f 94 75 ce 	call	0x39cea	; 0x39cea <world2machine_revert_to_uncorrected()>
   16562:	c1 cd       	rjmp	.-1150   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    */
    case 45: // M45: Prusa3D: bed skew and offset with manual Z up
    {
		int8_t verbosity_level = 0;
		bool only_Z = code_seen('Z');
   16564:	8a e5       	ldi	r24, 0x5A	; 90
   16566:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
			// Just 'V' without a number counts as V1.
			char c = strchr_pointer[1];
			verbosity_level = (c == ' ' || c == '\t' || c == 0) ? 1 : code_value_short();
		}
		#endif //SUPPORT_VERBOSITY
		gcode_M45(only_Z, verbosity_level);
   1656a:	0f 94 e4 8d 	call	0x31bc8	; 0x31bc8 <gcode_M45(bool, signed char) [clone .constprop.76]>
   1656e:	bb cd       	rjmp	.-1162   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    ### M46 - Show the assigned IP address <a href="https://reprap.org/wiki/G-code#M46:_Show_the_assigned_IP_address">M46: Show the assigned IP address.</a>
    */
    case 46:
    {
        // M46: Prusa3D: Show the assigned IP address.
        if (card.ToshibaFlashAir_isEnabled()) {
   16570:	80 91 01 17 	lds	r24, 0x1701	; 0x801701 <card+0x273>
   16574:	88 23       	and	r24, r24
   16576:	19 f1       	breq	.+70     	; 0x165be <process_commands() [clone .part.46]+0x3baa>
            uint8_t ip[4];
            if (card.ToshibaFlashAir_GetIP(ip)) {
   16578:	ce 01       	movw	r24, r28
   1657a:	01 96       	adiw	r24, 0x01	; 1
   1657c:	0f 94 10 87 	call	0x30e20	; 0x30e20 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]>
   16580:	88 23       	and	r24, r24
   16582:	c1 f0       	breq	.+48     	; 0x165b4 <process_commands() [clone .part.46]+0x3ba0>
  }
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
   16584:	89 81       	ldd	r24, Y+1	; 0x01
   16586:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   1658a:	8e e2       	ldi	r24, 0x2E	; 46
   1658c:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
  }
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
   16590:	8a 81       	ldd	r24, Y+2	; 0x02
   16592:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   16596:	8e e2       	ldi	r24, 0x2E	; 46
   16598:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
  }
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
   1659c:	8b 81       	ldd	r24, Y+3	; 0x03
   1659e:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   165a2:	8e e2       	ldi	r24, 0x2E	; 46
   165a4:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
  }
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
   165a8:	8c 81       	ldd	r24, Y+4	; 0x04
   165aa:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::println(unsigned char b, int base)
{
  print(b, base);
  println();
   165ae:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   165b2:	99 cd       	rjmp	.-1230   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                SERIAL_PROTOCOL('.');
                SERIAL_PROTOCOL(uint8_t(ip[2]));
                SERIAL_PROTOCOL('.');
                SERIAL_PROTOCOLLN(uint8_t(ip[3]));
            } else {
                SERIAL_PROTOCOLPGM("?Toshiba FlashAir GetIP failed\n");
   165b4:	82 eb       	ldi	r24, 0xB2	; 178
   165b6:	96 e8       	ldi	r25, 0x86	; 134
   165b8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   165bc:	94 cd       	rjmp	.-1240   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            }
        } else {
            SERIAL_PROTOCOLLNPGM("n/a");
   165be:	8e ea       	ldi	r24, 0xAE	; 174
   165c0:	96 e8       	ldi	r25, 0x86	; 134
   165c2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   165c6:	8f cd       	rjmp	.-1250   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   165c8:	10 92 b8 0d 	sts	0x0DB8, r1	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   165cc:	8c cd       	rjmp	.-1256   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                break;
            default:
                break;
            }
        } else {
            printf_P(_N("PrinterState: %d\n"),uint8_t(GetPrinterState()));
   165ce:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   165d2:	1f 92       	push	r1
   165d4:	8f 93       	push	r24
   165d6:	86 e7       	ldi	r24, 0x76	; 118
   165d8:	98 e6       	ldi	r25, 0x68	; 104
   165da:	9f 93       	push	r25
   165dc:	8f 93       	push	r24
   165de:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   165e2:	0f 90       	pop	r0
   165e4:	0f 90       	pop	r0
   165e6:	0f 90       	pop	r0
   165e8:	0f 90       	pop	r0
   165ea:	7d cd       	rjmp	.-1286   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        - `C` - Time to change/pause/user interaction in normal mode
        - `D` - Time to change/pause/user interaction in silent mode
    */
    case 73: //M73 show percent done, time remaining and time to change/pause
    {
        if(code_seen('P')) print_percent_done_normal = code_value_uint8();
   165ec:	80 e5       	ldi	r24, 0x50	; 80
   165ee:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   165f2:	88 23       	and	r24, r24
   165f4:	21 f0       	breq	.+8      	; 0x165fe <process_commands() [clone .part.46]+0x3bea>
   165f6:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   165fa:	80 93 ae 02 	sts	0x02AE, r24	; 0x8002ae <print_percent_done_normal>
        if(code_seen('R')) print_time_remaining_normal = code_value();
   165fe:	82 e5       	ldi	r24, 0x52	; 82
   16600:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16604:	88 23       	and	r24, r24
   16606:	41 f0       	breq	.+16     	; 0x16618 <process_commands() [clone .part.46]+0x3c04>
   16608:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1660c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16610:	70 93 b2 02 	sts	0x02B2, r23	; 0x8002b2 <print_time_remaining_normal+0x1>
   16614:	60 93 b1 02 	sts	0x02B1, r22	; 0x8002b1 <print_time_remaining_normal>
        if(code_seen('Q')) print_percent_done_silent = code_value_uint8();
   16618:	81 e5       	ldi	r24, 0x51	; 81
   1661a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1661e:	88 23       	and	r24, r24
   16620:	21 f0       	breq	.+8      	; 0x1662a <process_commands() [clone .part.46]+0x3c16>
   16622:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   16626:	80 93 ad 02 	sts	0x02AD, r24	; 0x8002ad <print_percent_done_silent>
        if(code_seen('S')) print_time_remaining_silent = code_value();
   1662a:	83 e5       	ldi	r24, 0x53	; 83
   1662c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16630:	88 23       	and	r24, r24
   16632:	41 f0       	breq	.+16     	; 0x16644 <process_commands() [clone .part.46]+0x3c30>
   16634:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16638:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   1663c:	70 93 b6 02 	sts	0x02B6, r23	; 0x8002b6 <print_time_remaining_silent+0x1>
   16640:	60 93 b5 02 	sts	0x02B5, r22	; 0x8002b5 <print_time_remaining_silent>
        if(code_seen('C')){
   16644:	83 e4       	ldi	r24, 0x43	; 67
   16646:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1664a:	88 23       	and	r24, r24
   1664c:	a9 f0       	breq	.+42     	; 0x16678 <process_commands() [clone .part.46]+0x3c64>
            float print_time_to_change_normal_f = code_value();
   1664e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16652:	6b 01       	movw	r12, r22
   16654:	7c 01       	movw	r14, r24
            print_time_to_change_normal = ( print_time_to_change_normal_f <= 0 ) ? PRINT_TIME_REMAINING_INIT : print_time_to_change_normal_f;
   16656:	20 e0       	ldi	r18, 0x00	; 0
   16658:	30 e0       	ldi	r19, 0x00	; 0
   1665a:	a9 01       	movw	r20, r18
   1665c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   16660:	6f ef       	ldi	r22, 0xFF	; 255
   16662:	7f ef       	ldi	r23, 0xFF	; 255
   16664:	18 16       	cp	r1, r24
   16666:	24 f4       	brge	.+8      	; 0x16670 <process_commands() [clone .part.46]+0x3c5c>
   16668:	c7 01       	movw	r24, r14
   1666a:	b6 01       	movw	r22, r12
   1666c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16670:	70 93 b0 02 	sts	0x02B0, r23	; 0x8002b0 <print_time_to_change_normal+0x1>
   16674:	60 93 af 02 	sts	0x02AF, r22	; 0x8002af <print_time_to_change_normal>
        }
        if(code_seen('D')){
   16678:	84 e4       	ldi	r24, 0x44	; 68
   1667a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1667e:	88 23       	and	r24, r24
   16680:	a9 f0       	breq	.+42     	; 0x166ac <process_commands() [clone .part.46]+0x3c98>
            float print_time_to_change_silent_f = code_value();
   16682:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16686:	6b 01       	movw	r12, r22
   16688:	7c 01       	movw	r14, r24
            print_time_to_change_silent = ( print_time_to_change_silent_f <= 0 ) ? PRINT_TIME_REMAINING_INIT : print_time_to_change_silent_f;
   1668a:	20 e0       	ldi	r18, 0x00	; 0
   1668c:	30 e0       	ldi	r19, 0x00	; 0
   1668e:	a9 01       	movw	r20, r18
   16690:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   16694:	6f ef       	ldi	r22, 0xFF	; 255
   16696:	7f ef       	ldi	r23, 0xFF	; 255
   16698:	18 16       	cp	r1, r24
   1669a:	24 f4       	brge	.+8      	; 0x166a4 <process_commands() [clone .part.46]+0x3c90>
   1669c:	c7 01       	movw	r24, r14
   1669e:	b6 01       	movw	r22, r12
   166a0:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   166a4:	70 93 b4 02 	sts	0x02B4, r23	; 0x8002b4 <print_time_to_change_silent+0x1>
   166a8:	60 93 b3 02 	sts	0x02B3, r22	; 0x8002b3 <print_time_to_change_silent>
        }
        {
            const char* _msg_mode_done_remain = _N("%S MODE: Percent done: %hhd; print time remaining in mins: %d; Change in mins: %d\n");
            printf_P(_msg_mode_done_remain, _N("NORMAL"), int8_t(print_percent_done_normal), print_time_remaining_normal, print_time_to_change_normal);
   166ac:	80 91 b0 02 	lds	r24, 0x02B0	; 0x8002b0 <print_time_to_change_normal+0x1>
   166b0:	8f 93       	push	r24
   166b2:	80 91 af 02 	lds	r24, 0x02AF	; 0x8002af <print_time_to_change_normal>
   166b6:	8f 93       	push	r24
   166b8:	80 91 b2 02 	lds	r24, 0x02B2	; 0x8002b2 <print_time_remaining_normal+0x1>
   166bc:	8f 93       	push	r24
   166be:	80 91 b1 02 	lds	r24, 0x02B1	; 0x8002b1 <print_time_remaining_normal>
   166c2:	8f 93       	push	r24
   166c4:	80 91 ae 02 	lds	r24, 0x02AE	; 0x8002ae <print_percent_done_normal>
   166c8:	28 2f       	mov	r18, r24
   166ca:	08 2e       	mov	r0, r24
   166cc:	00 0c       	add	r0, r0
   166ce:	33 0b       	sbc	r19, r19
   166d0:	3f 93       	push	r19
   166d2:	8f 93       	push	r24
   166d4:	8c e1       	ldi	r24, 0x1C	; 28
   166d6:	98 e6       	ldi	r25, 0x68	; 104
   166d8:	9f 93       	push	r25
   166da:	8f 93       	push	r24
   166dc:	03 e2       	ldi	r16, 0x23	; 35
   166de:	18 e6       	ldi	r17, 0x68	; 104
   166e0:	1f 93       	push	r17
   166e2:	0f 93       	push	r16
   166e4:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
            printf_P(_msg_mode_done_remain, _N("SILENT"), int8_t(print_percent_done_silent), print_time_remaining_silent, print_time_to_change_silent);
   166e8:	80 91 b4 02 	lds	r24, 0x02B4	; 0x8002b4 <print_time_to_change_silent+0x1>
   166ec:	8f 93       	push	r24
   166ee:	80 91 b3 02 	lds	r24, 0x02B3	; 0x8002b3 <print_time_to_change_silent>
   166f2:	8f 93       	push	r24
   166f4:	80 91 b6 02 	lds	r24, 0x02B6	; 0x8002b6 <print_time_remaining_silent+0x1>
   166f8:	8f 93       	push	r24
   166fa:	80 91 b5 02 	lds	r24, 0x02B5	; 0x8002b5 <print_time_remaining_silent>
   166fe:	8f 93       	push	r24
   16700:	80 91 ad 02 	lds	r24, 0x02AD	; 0x8002ad <print_percent_done_silent>
   16704:	28 2f       	mov	r18, r24
   16706:	08 2e       	mov	r0, r24
   16708:	00 0c       	add	r0, r0
   1670a:	33 0b       	sbc	r19, r19
   1670c:	3f 93       	push	r19
   1670e:	8f 93       	push	r24
   16710:	85 e1       	ldi	r24, 0x15	; 21
   16712:	98 e6       	ldi	r25, 0x68	; 104
   16714:	9f 93       	push	r25
   16716:	8f 93       	push	r24
   16718:	1f 93       	push	r17
   1671a:	0f 93       	push	r16
   1671c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16720:	0f b6       	in	r0, 0x3f	; 63
   16722:	f8 94       	cli
   16724:	de bf       	out	0x3e, r29	; 62
   16726:	0f be       	out	0x3f, r0	; 63
   16728:	cd bf       	out	0x3d, r28	; 61
   1672a:	dd cc       	rjmp	.-1606   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
  }
  else return false;
}

bool Stopwatch::pause() {
  if (isRunning()) {
   1672c:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
   16730:	81 30       	cpi	r24, 0x01	; 1
   16732:	09 f0       	breq	.+2      	; 0x16736 <process_commands() [clone .part.46]+0x3d22>
   16734:	d8 cc       	rjmp	.-1616   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    state = PAUSED;
   16736:	82 e0       	ldi	r24, 0x02	; 2
   16738:	80 93 9d 03 	sts	0x039D, r24	; 0x80039d <Stopwatch::state>
    stopTimestamp = _millis();
   1673c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   16740:	60 93 52 06 	sts	0x0652, r22	; 0x800652 <Stopwatch::stopTimestamp>
   16744:	70 93 53 06 	sts	0x0653, r23	; 0x800653 <Stopwatch::stopTimestamp+0x1>
   16748:	80 93 54 06 	sts	0x0654, r24	; 0x800654 <Stopwatch::stopTimestamp+0x2>
   1674c:	90 93 55 06 	sts	0x0655, r25	; 0x800655 <Stopwatch::stopTimestamp+0x3>
   16750:	ca cc       	rjmp	.-1644   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M77 - Stop the print job timer <a href="https://reprap.org/wiki/G-code#M77:_Stop_the_print_job_timer">M77: Stop the print job timer</a>
    */
    case 77:
    {
        print_job_timer.stop();
   16752:	0f 94 bd 43 	call	0x2877a	; 0x2877a <Stopwatch::stop()>
        save_statistics();
   16756:	0e 94 a6 65 	call	0xcb4c	; 0xcb4c <save_statistics()>
   1675a:	c5 cc       	rjmp	.-1654   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        const char *_m_fil;
        const char *_m_time;
        uint32_t _cm = 0;
        uint32_t _min = 0;

        if (printJobOngoing()) {
   1675c:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   16760:	88 23       	and	r24, r24
   16762:	c1 f1       	breq	.+112    	; 0x167d4 <process_commands() [clone .part.46]+0x3dc0>
          _m_fil = _O(MSG_FILAMENT_USED);
          _m_time = _O(MSG_PRINT_TIME);
          _cm = (uint32_t)total_filament_used / 1000;
   16764:	60 91 65 06 	lds	r22, 0x0665	; 0x800665 <total_filament_used>
   16768:	70 91 66 06 	lds	r23, 0x0666	; 0x800666 <total_filament_used+0x1>
   1676c:	80 91 67 06 	lds	r24, 0x0667	; 0x800667 <total_filament_used+0x2>
   16770:	90 91 68 06 	lds	r25, 0x0668	; 0x800668 <total_filament_used+0x3>
   16774:	28 ee       	ldi	r18, 0xE8	; 232
   16776:	33 e0       	ldi	r19, 0x03	; 3
   16778:	40 e0       	ldi	r20, 0x00	; 0
   1677a:	50 e0       	ldi	r21, 0x00	; 0
   1677c:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   16780:	12 2f       	mov	r17, r18
   16782:	03 2f       	mov	r16, r19
   16784:	f4 2e       	mov	r15, r20
   16786:	e5 2e       	mov	r14, r21
          _min = print_job_timer.duration() / 60;
   16788:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   1678c:	2c e3       	ldi	r18, 0x3C	; 60
   1678e:	30 e0       	ldi	r19, 0x00	; 0
   16790:	40 e0       	ldi	r20, 0x00	; 0
   16792:	50 e0       	ldi	r21, 0x00	; 0
   16794:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   16798:	b9 01       	movw	r22, r18
   1679a:	ca 01       	movw	r24, r20
        uint32_t _cm = 0;
        uint32_t _min = 0;

        if (printJobOngoing()) {
          _m_fil = _O(MSG_FILAMENT_USED);
          _m_time = _O(MSG_PRINT_TIME);
   1679c:	43 e0       	ldi	r20, 0x03	; 3
   1679e:	50 e5       	ldi	r21, 0x50	; 80
        const char *_m_time;
        uint32_t _cm = 0;
        uint32_t _min = 0;

        if (printJobOngoing()) {
          _m_fil = _O(MSG_FILAMENT_USED);
   167a0:	23 ef       	ldi	r18, 0xF3	; 243
   167a2:	3f e4       	ldi	r19, 0x4F	; 79
          _m_fil = _O(MSG_TOTAL_FILAMENT);
          _m_time = _O(MSG_TOTAL_PRINT_TIME);
          _cm = eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED);
          _min = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME);
        }
        printf_P(_N("%S:%lu cm\n%S:%lu min\n"),_m_fil,_cm,_m_time,_min);
   167a4:	9f 93       	push	r25
   167a6:	8f 93       	push	r24
   167a8:	7f 93       	push	r23
   167aa:	6f 93       	push	r22
   167ac:	5f 93       	push	r21
   167ae:	4f 93       	push	r20
   167b0:	ef 92       	push	r14
   167b2:	ff 92       	push	r15
   167b4:	0f 93       	push	r16
   167b6:	1f 93       	push	r17
   167b8:	3f 93       	push	r19
   167ba:	2f 93       	push	r18
   167bc:	8f ef       	ldi	r24, 0xFF	; 255
   167be:	97 e6       	ldi	r25, 0x67	; 103
   167c0:	9f 93       	push	r25
   167c2:	8f 93       	push	r24
   167c4:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   167c8:	0f b6       	in	r0, 0x3f	; 63
   167ca:	f8 94       	cli
   167cc:	de bf       	out	0x3e, r29	; 62
   167ce:	0f be       	out	0x3f, r0	; 63
   167d0:	cd bf       	out	0x3d, r28	; 61
   167d2:	89 cc       	rjmp	.-1774   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
          _m_fil = _O(MSG_FILAMENT_USED);
          _m_time = _O(MSG_PRINT_TIME);
          _cm = (uint32_t)total_filament_used / 1000;
          _min = print_job_timer.duration() / 60;
        } else {
          if (code_seen('S')) {
   167d4:	83 e5       	ldi	r24, 0x53	; 83
   167d6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   167da:	88 23       	and	r24, r24
   167dc:	51 f0       	breq	.+20     	; 0x167f2 <process_commands() [clone .part.46]+0x3dde>
          eeprom_update_dword_notify((uint32_t *)EEPROM_FILAMENTUSED, code_value());
   167de:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   167e2:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   167e6:	ab 01       	movw	r20, r22
   167e8:	bc 01       	movw	r22, r24
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
   167ea:	81 ef       	ldi	r24, 0xF1	; 241
   167ec:	9f e0       	ldi	r25, 0x0F	; 15
   167ee:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
          }
          if (code_seen('T')) {
   167f2:	84 e5       	ldi	r24, 0x54	; 84
   167f4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   167f8:	88 23       	and	r24, r24
   167fa:	51 f0       	breq	.+20     	; 0x16810 <process_commands() [clone .part.46]+0x3dfc>
          eeprom_update_dword_notify((uint32_t *)EEPROM_TOTALTIME, code_value());
   167fc:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16800:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16804:	ab 01       	movw	r20, r22
   16806:	bc 01       	movw	r22, r24
   16808:	8d ee       	ldi	r24, 0xED	; 237
   1680a:	9f e0       	ldi	r25, 0x0F	; 15
   1680c:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
          }
          _m_fil = _O(MSG_TOTAL_FILAMENT);
          _m_time = _O(MSG_TOTAL_PRINT_TIME);
          _cm = eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED);
   16810:	81 ef       	ldi	r24, 0xF1	; 241
   16812:	9f e0       	ldi	r25, 0x0F	; 15
   16814:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   16818:	16 2f       	mov	r17, r22
   1681a:	07 2f       	mov	r16, r23
   1681c:	f8 2e       	mov	r15, r24
   1681e:	e9 2e       	mov	r14, r25
          _min = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME);
   16820:	8d ee       	ldi	r24, 0xED	; 237
   16822:	9f e0       	ldi	r25, 0x0F	; 15
   16824:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
          }
          if (code_seen('T')) {
          eeprom_update_dword_notify((uint32_t *)EEPROM_TOTALTIME, code_value());
          }
          _m_fil = _O(MSG_TOTAL_FILAMENT);
          _m_time = _O(MSG_TOTAL_PRINT_TIME);
   16828:	40 ee       	ldi	r20, 0xE0	; 224
   1682a:	5f e4       	ldi	r21, 0x4F	; 79
          eeprom_update_dword_notify((uint32_t *)EEPROM_FILAMENTUSED, code_value());
          }
          if (code_seen('T')) {
          eeprom_update_dword_notify((uint32_t *)EEPROM_TOTALTIME, code_value());
          }
          _m_fil = _O(MSG_TOTAL_FILAMENT);
   1682c:	2f ec       	ldi	r18, 0xCF	; 207
   1682e:	3f e4       	ldi	r19, 0x4F	; 79
   16830:	b9 cf       	rjmp	.-142    	; 0x167a4 <process_commands() [clone .part.46]+0x3d90>
void ResetHostStatusScreenName() {
    memset(host_status_screen_name, 0, sizeof(host_status_screen_name));
}

void M79_timer_restart() {
    M79_timer.start();
   16832:	8e e9       	ldi	r24, 0x9E	; 158
   16834:	93 e0       	ldi	r25, 0x03	; 3
   16836:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
       - `S` - Quoted string containing two characters e.g. "PL"
    */
    case 79:
        M79_timer_restart();

        if (code_seen('S'))
   1683a:	83 e5       	ldi	r24, 0x53	; 83
   1683c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16840:	88 23       	and	r24, r24
   16842:	09 f1       	breq	.+66     	; 0x16886 <process_commands() [clone .part.46]+0x3e72>
    , found(false)
    {
        const char * pStrEnd = NULL;

        // Start of the string
        this->ptr = strchr(pStr, '"');
   16844:	62 e2       	ldi	r22, 0x22	; 34
   16846:	70 e0       	ldi	r23, 0x00	; 0
   16848:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   1684c:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16850:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   16854:	8c 01       	movw	r16, r24
        if (!this->ptr) {
   16856:	89 2b       	or	r24, r25
   16858:	b1 f0       	breq	.+44     	; 0x16886 <process_commands() [clone .part.46]+0x3e72>
            // First quote not found
            return;
        }

        // Skip the leading quote
        this->ptr++;
   1685a:	0f 5f       	subi	r16, 0xFF	; 255
   1685c:	1f 4f       	sbci	r17, 0xFF	; 255

        // End of the string
        pStrEnd = strchr(this->ptr, '"');
   1685e:	62 e2       	ldi	r22, 0x22	; 34
   16860:	70 e0       	ldi	r23, 0x00	; 0
   16862:	c8 01       	movw	r24, r16
   16864:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
        if(!pStrEnd) {
   16868:	89 2b       	or	r24, r25
   1686a:	69 f0       	breq	.+26     	; 0x16886 <process_commands() [clone .part.46]+0x3e72>
char * GetHostStatusScreenName() {
    return host_status_screen_name;
}

void ResetHostStatusScreenName() {
    memset(host_status_screen_name, 0, sizeof(host_status_screen_name));
   1686c:	ec e4       	ldi	r30, 0x4C	; 76
   1686e:	f6 e0       	ldi	r31, 0x06	; 6
   16870:	83 e0       	ldi	r24, 0x03	; 3
   16872:	df 01       	movw	r26, r30
   16874:	1d 92       	st	X+, r1
   16876:	8a 95       	dec	r24
   16878:	e9 f7       	brne	.-6      	; 0x16874 <process_commands() [clone .part.46]+0x3e60>

static LongTimer M79_timer;
static char host_status_screen_name[3];

void SetHostStatusScreenName(const char * name) {
    strncpy(host_status_screen_name, name, 2);
   1687a:	42 e0       	ldi	r20, 0x02	; 2
   1687c:	50 e0       	ldi	r21, 0x00	; 0
   1687e:	b8 01       	movw	r22, r16
   16880:	cf 01       	movw	r24, r30
   16882:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
        }
#ifdef DEBUG_PRINTER_STATES
        debug_printer_states();
#endif //DEBUG_PRINTER_STATES

        if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE) == PowerPanic::PRINT_TYPE_HOST
   16886:	8c e8       	ldi	r24, 0x8C	; 140
   16888:	9f e0       	ldi	r25, 0x0F	; 15
   1688a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
           && printer_recovering()
           && printingIsPaused()) {
   1688e:	81 30       	cpi	r24, 0x01	; 1
   16890:	09 f0       	breq	.+2      	; 0x16894 <process_commands() [clone .part.46]+0x3e80>
   16892:	29 cc       	rjmp	.-1966   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
#ifdef DEBUG_PRINTER_STATES
        debug_printer_states();
#endif //DEBUG_PRINTER_STATES

        if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE) == PowerPanic::PRINT_TYPE_HOST
           && printer_recovering()
   16894:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   16898:	88 23       	and	r24, r24
   1689a:	09 f4       	brne	.+2      	; 0x1689e <process_commands() [clone .part.46]+0x3e8a>
   1689c:	24 cc       	rjmp	.-1976   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
           && printingIsPaused()) {
   1689e:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   168a2:	88 23       	and	r24, r24
   168a4:	09 f4       	brne	.+2      	; 0x168a8 <process_commands() [clone .part.46]+0x3e94>
   168a6:	1f cc       	rjmp	.-1986   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            // The print is in a paused state. The print was recovered following a power panic
            // but up to this point the printer has been waiting for the M79 from the host
            // Send action to the host, so the host can resume the print. It is up to the host
            // to resume the print correctly.
            if (uvlo_auto_recovery_ready) {
   168a8:	80 91 ed 04 	lds	r24, 0x04ED	; 0x8004ed <_ZL24uvlo_auto_recovery_ready.lto_priv.533>
   168ac:	88 23       	and	r24, r24
   168ae:	29 f0       	breq	.+10     	; 0x168ba <process_commands() [clone .part.46]+0x3ea6>
                SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_UVLO_AUTO_RECOVERY_READY);
   168b0:	8d ed       	ldi	r24, 0xDD	; 221
   168b2:	97 e6       	ldi	r25, 0x67	; 103
   168b4:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   168b8:	16 cc       	rjmp	.-2004   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            } else {
                SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_UVLO_RECOVERY_READY);
   168ba:	80 ec       	ldi	r24, 0xC0	; 192
   168bc:	97 e6       	ldi	r25, 0x67	; 103
   168be:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   168c2:	11 cc       	rjmp	.-2014   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M112 - Emergency stop <a href="https://reprap.org/wiki/G-code#M112:_Full_.28Emergency.29_Stop">M112: Full (Emergency) Stop</a>
    It is processed much earlier as to bypass the cmdqueue.
    */
    case 112:
      kill(MSG_M112_KILL);
   168c4:	83 ea       	ldi	r24, 0xA3	; 163
   168c6:	97 e6       	ldi	r25, 0x67	; 103
   168c8:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>

    #### Parameters
       - `S` - Target temperature
    */
    case 140:
      if (code_seen('S')) setTargetBed(code_value());
   168cc:	83 e5       	ldi	r24, 0x53	; 83
   168ce:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   168d2:	88 23       	and	r24, r24
   168d4:	09 f4       	brne	.+2      	; 0x168d8 <process_commands() [clone .part.46]+0x3ec4>
   168d6:	07 cc       	rjmp	.-2034   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   168d8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   168dc:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   168e0:	70 93 73 06 	sts	0x0673, r23	; 0x800673 <target_temperature_bed+0x1>
   168e4:	60 93 72 06 	sts	0x0672, r22	; 0x800672 <target_temperature_bed>
   168e8:	fe cb       	rjmp	.-2052   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      ok T:20.2 /0.0 B:19.1 /0.0 T0:20.2 /0.0 @:0 B@:0 P:19.8 A:26.4

    */
    case 105:
    {
      SERIAL_PROTOCOLPGM("ok ");
   168ea:	8a ea       	ldi	r24, 0xAA	; 170
   168ec:	96 e8       	ldi	r25, 0x86	; 134
   168ee:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      gcode_M105();
   168f2:	0e 94 49 78 	call	0xf092	; 0xf092 <gcode_M105()>
      cmdqueue_pop_front(); //prevent an ok after the command since this command uses an ok at the beginning.
   168f6:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
      cmdbuffer_front_already_processed = true;
   168fa:	81 e0       	ldi	r24, 0x01	; 1
   168fc:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
   16900:	f2 cb       	rjmp	.-2076   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16902:	10 92 89 14 	sts	0x1489, r1	; 0x801489 <autoReportFeatures+0x2>
   16906:	0c 94 60 a7 	jmp	0x14ec0	; 0x14ec0 <process_commands() [clone .part.46]+0x24ac>
    inline void SetFans(uint8_t v){ arFunctionsActive.bits.fans = v; }

    inline bool Pos()const { return arFunctionsActive.bits.pos != 0; }
    inline void SetPos(uint8_t v){ arFunctionsActive.bits.pos = v; }

    inline void SetMask(uint8_t mask){ arFunctionsActive.byte = mask; }
   1690a:	81 e0       	ldi	r24, 0x01	; 1
   1690c:	80 93 87 14 	sts	0x1487, r24	; 0x801487 <autoReportFeatures>
   16910:	ea cb       	rjmp	.-2092   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
#ifdef AUTOTEMP
        autotemp_enabled=false;
      #endif
      if (code_seen('S')) {
          setTargetHotend(code_value());
            } else if (code_seen('R')) {
   16912:	82 e5       	ldi	r24, 0x52	; 82
   16914:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16918:	81 11       	cpse	r24, r1
   1691a:	0c 94 ec a6 	jmp	0x14dd8	; 0x14dd8 <process_commands() [clone .part.46]+0x23c4>
          autotemp_factor=code_value();
          autotemp_enabled=true;
        }
      #endif

      codenum = _millis();
   1691e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   16922:	6b 01       	movw	r12, r22
   16924:	7c 01       	movw	r14, r24
};

FORCE_INLINE bool isHeatingHotend(uint8_t extruder){
  return target_temperature[extruder] > current_temperature[extruder];
   16926:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   1692a:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   1692e:	07 2e       	mov	r0, r23
   16930:	00 0c       	add	r0, r0
   16932:	88 0b       	sbc	r24, r24
   16934:	99 0b       	sbc	r25, r25
   16936:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1693a:	11 e0       	ldi	r17, 0x01	; 1
   1693c:	20 91 b0 0d 	lds	r18, 0x0DB0	; 0x800db0 <current_temperature>
   16940:	30 91 b1 0d 	lds	r19, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   16944:	40 91 b2 0d 	lds	r20, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   16948:	50 91 b3 0d 	lds	r21, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1694c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   16950:	18 16       	cp	r1, r24
   16952:	0c f0       	brlt	.+2      	; 0x16956 <process_commands() [clone .part.46]+0x3f42>
   16954:	10 e0       	ldi	r17, 0x00	; 0

      /* See if we are heating up or cooling down */
      target_direction = isHeatingHotend(active_extruder); // true if heating, false if cooling
   16956:	10 93 af 0d 	sts	0x0DAF, r17	; 0x800daf <_ZL16target_direction.lto_priv.534>

      wait_for_heater(codenum, active_extruder); //loops until target temperature is reached
   1695a:	c7 01       	movw	r24, r14
   1695c:	b6 01       	movw	r22, r12
   1695e:	0f 94 23 83 	call	0x30646	; 0x30646 <wait_for_heater(long, unsigned char) [clone .constprop.214]>

        LCD_MESSAGERPGM(_T(MSG_HEATING_COMPLETE));
   16962:	8b e5       	ldi	r24, 0x5B	; 91
   16964:	9d e4       	ldi	r25, 0x4D	; 77
   16966:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1696a:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
		heating_status = HeatingStatus::EXTRUDER_HEATING_COMPLETE;
   1696e:	82 e0       	ldi	r24, 0x02	; 2
   16970:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>
        prusa_statistics(2);

        previous_millis_cmd.start();
   16974:	86 e8       	ldi	r24, 0x86	; 134
   16976:	93 e0       	ldi	r25, 0x03	; 3
   16978:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
   1697c:	b4 cb       	rjmp	.-2200   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    */
    case 190:
    #if defined(TEMP_BED_PIN) && TEMP_BED_PIN > -1
    {
        bool CooldownNoWait = false;
        LCD_MESSAGERPGM(_T(MSG_BED_HEATING));
   1697e:	8d e4       	ldi	r24, 0x4D	; 77
   16980:	9d e4       	ldi	r25, 0x4D	; 77
   16982:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   16986:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
		heating_status = HeatingStatus::BED_HEATING;
   1698a:	83 e0       	ldi	r24, 0x03	; 3
   1698c:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>
        prusa_statistics(1);
        if (code_seen('S'))
   16990:	83 e5       	ldi	r24, 0x53	; 83
   16992:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16996:	18 2f       	mov	r17, r24
   16998:	88 23       	and	r24, r24
   1699a:	49 f0       	breq	.+18     	; 0x169ae <process_commands() [clone .part.46]+0x3f9a>
          setTargetBed(code_value());
          CooldownNoWait = true;
        }
		else if (code_seen('R'))
		{
          setTargetBed(code_value());
   1699c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
  target_temperature[0] = celsius;
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   169a0:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   169a4:	70 93 73 06 	sts	0x0673, r23	; 0x800673 <target_temperature_bed+0x1>
   169a8:	60 93 72 06 	sts	0x0672, r22	; 0x800672 <target_temperature_bed>
   169ac:	05 c0       	rjmp	.+10     	; 0x169b8 <process_commands() [clone .part.46]+0x3fa4>
        if (code_seen('S'))
		{
          setTargetBed(code_value());
          CooldownNoWait = true;
        }
		else if (code_seen('R'))
   169ae:	82 e5       	ldi	r24, 0x52	; 82
   169b0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   169b4:	81 11       	cpse	r24, r1
   169b6:	f2 cf       	rjmp	.-28     	; 0x1699c <process_commands() [clone .part.46]+0x3f88>
		{
          setTargetBed(code_value());
        }
        codenum = _millis();
   169b8:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   169bc:	6b 01       	movw	r12, r22
   169be:	7c 01       	movw	r14, r24

        cancel_heatup = false;
   169c0:	10 92 b5 0d 	sts	0x0DB5, r1	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
FORCE_INLINE bool isHeatingHotend(uint8_t extruder){
  return target_temperature[extruder] > current_temperature[extruder];
};

FORCE_INLINE bool isHeatingBed() {
  return target_temperature_bed > current_temperature_bed;
   169c4:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
   169c8:	70 91 73 06 	lds	r23, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   169cc:	07 2e       	mov	r0, r23
   169ce:	00 0c       	add	r0, r0
   169d0:	88 0b       	sbc	r24, r24
   169d2:	99 0b       	sbc	r25, r25
   169d4:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   169d8:	01 e0       	ldi	r16, 0x01	; 1
   169da:	20 91 ee 04 	lds	r18, 0x04EE	; 0x8004ee <current_temperature_bed>
   169de:	30 91 ef 04 	lds	r19, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   169e2:	40 91 f0 04 	lds	r20, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   169e6:	50 91 f1 04 	lds	r21, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   169ea:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   169ee:	18 16       	cp	r1, r24
   169f0:	0c f0       	brlt	.+2      	; 0x169f4 <process_commands() [clone .part.46]+0x3fe0>
   169f2:	00 e0       	ldi	r16, 0x00	; 0
        target_direction = isHeatingBed(); // true if heating, false if cooling
   169f4:	00 93 af 0d 	sts	0x0DAF, r16	; 0x800daf <_ZL16target_direction.lto_priv.534>

        while ( (!cancel_heatup) && (target_direction ? (isHeatingBed()) : (isCoolingBed()&&(CooldownNoWait==false))) )
   169f8:	80 91 b5 0d 	lds	r24, 0x0DB5	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
   169fc:	81 11       	cpse	r24, r1
   169fe:	1c c0       	rjmp	.+56     	; 0x16a38 <process_commands() [clone .part.46]+0x4024>
   16a00:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
   16a04:	70 91 73 06 	lds	r23, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   16a08:	07 2e       	mov	r0, r23
   16a0a:	00 0c       	add	r0, r0
   16a0c:	88 0b       	sbc	r24, r24
   16a0e:	99 0b       	sbc	r25, r25
   16a10:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   16a14:	9b 01       	movw	r18, r22
   16a16:	ac 01       	movw	r20, r24
   16a18:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   16a1c:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   16a20:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   16a24:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   16a28:	e0 91 af 0d 	lds	r30, 0x0DAF	; 0x800daf <_ZL16target_direction.lto_priv.534>
   16a2c:	ee 23       	and	r30, r30
   16a2e:	91 f0       	breq	.+36     	; 0x16a54 <process_commands() [clone .part.46]+0x4040>
   16a30:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   16a34:	87 fd       	sbrc	r24, 7
   16a36:	14 c0       	rjmp	.+40     	; 0x16a60 <process_commands() [clone .part.46]+0x404c>
          }
          manage_heater();
          manage_inactivity();
          lcd_update(0);
        }
        LCD_MESSAGERPGM(_T(MSG_BED_DONE));
   16a38:	82 e4       	ldi	r24, 0x42	; 66
   16a3a:	9d e4       	ldi	r25, 0x4D	; 77
   16a3c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   16a40:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
		heating_status = HeatingStatus::BED_HEATING_COMPLETE;
   16a44:	84 e0       	ldi	r24, 0x04	; 4
   16a46:	80 93 e3 03 	sts	0x03E3, r24	; 0x8003e3 <heating_status>

        previous_millis_cmd.start();
   16a4a:	86 e8       	ldi	r24, 0x86	; 134
   16a4c:	93 e0       	ldi	r25, 0x03	; 3
   16a4e:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
   16a52:	49 cb       	rjmp	.-2414   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        codenum = _millis();

        cancel_heatup = false;
        target_direction = isHeatingBed(); // true if heating, false if cooling

        while ( (!cancel_heatup) && (target_direction ? (isHeatingBed()) : (isCoolingBed()&&(CooldownNoWait==false))) )
   16a54:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   16a58:	18 16       	cp	r1, r24
   16a5a:	74 f7       	brge	.-36     	; 0x16a38 <process_commands() [clone .part.46]+0x4024>
   16a5c:	11 11       	cpse	r17, r1
   16a5e:	ec cf       	rjmp	.-40     	; 0x16a38 <process_commands() [clone .part.46]+0x4024>
        {
          if (lcd_commands_type == LcdCommands::LongPause) {
   16a60:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   16a64:	82 30       	cpi	r24, 0x02	; 2
   16a66:	41 f3       	breq	.-48     	; 0x16a38 <process_commands() [clone .part.46]+0x4024>
            // Print was suddenly paused, break out of the loop
            // This can happen when the firmware report a fan error
            break;
          }

          if(( _millis() - codenum) > 1000 ) //Print Temp Reading every 1 second while heating up.
   16a68:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   16a6c:	6c 19       	sub	r22, r12
   16a6e:	7d 09       	sbc	r23, r13
   16a70:	8e 09       	sbc	r24, r14
   16a72:	9f 09       	sbc	r25, r15
   16a74:	69 3e       	cpi	r22, 0xE9	; 233
   16a76:	73 40       	sbci	r23, 0x03	; 3
   16a78:	81 05       	cpc	r24, r1
   16a7a:	91 05       	cpc	r25, r1
   16a7c:	30 f0       	brcs	.+12     	; 0x16a8a <process_commands() [clone .part.46]+0x4076>
          {
			  if (!farm_mode) {
				  serialecho_temperatures();
   16a7e:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
			  }
				  codenum = _millis();
   16a82:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   16a86:	6b 01       	movw	r12, r22
   16a88:	7c 01       	movw	r14, r24

          }
          manage_heater();
   16a8a:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
          manage_inactivity();
   16a8e:	80 e0       	ldi	r24, 0x00	; 0
   16a90:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
          lcd_update(0);
   16a94:	80 e0       	ldi	r24, 0x00	; 0
   16a96:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   16a9a:	ae cf       	rjmp	.-164    	; 0x169f8 <process_commands() [clone .part.46]+0x3fe4>

    #### Parameters
      - `S` - Specifies the duty cycle of the print fan. Allowed values are 0-255. If it's omitted, a value of 255 is used.
    */
    case 106: // M106 Sxxx Fan On S<speed> 0 .. 255
        if (code_seen('S')){
   16a9c:	83 e5       	ldi	r24, 0x53	; 83
   16a9e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16aa2:	88 23       	and	r24, r24
   16aa4:	29 f0       	breq	.+10     	; 0x16ab0 <process_commands() [clone .part.46]+0x409c>
           fanSpeed = code_value_uint8();
   16aa6:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   16aaa:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
   16aae:	1b cb       	rjmp	.-2506   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        }
        else {
          fanSpeed = 255;
   16ab0:	8f ef       	ldi	r24, 0xFF	; 255
   16ab2:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
   16ab6:	17 cb       	rjmp	.-2514   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M107 - Fan off <a href="https://reprap.org/wiki/G-code#M107:_Fan_Off">M107: Fan Off</a>
    */
    case 107:
        fanSpeed = 0;
   16ab8:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>
   16abc:	14 cb       	rjmp	.-2520   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M83 - Set E axis to relative mode <a href="https://reprap.org/wiki/G-code#M83:_Set_extruder_to_relative_mode">M83: Set extruder to relative mode</a>
    Makes the extruder interpret extrusion values as relative positions.
    */
    case 83:
      axis_relative_modes |= E_AXIS_MASK;
   16abe:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   16ac2:	88 60       	ori	r24, 0x08	; 8
   16ac4:	80 93 e5 03 	sts	0x03E5, r24	; 0x8003e5 <axis_relative_modes>
   16ac8:	0e cb       	rjmp	.-2532   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    ### M18 - Disable steppers <a href="https://reprap.org/wiki/G-code#M18:_Disable_all_stepper_motors">M18: Disable all stepper motors</a>
    Equal to M84 (compatibility)
    */
    case 18: //compatibility
    case 84: // M84
      if(code_seen('S')){
   16aca:	83 e5       	ldi	r24, 0x53	; 83
   16acc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16ad0:	88 23       	and	r24, r24
   16ad2:	99 f0       	breq	.+38     	; 0x16afa <process_commands() [clone .part.46]+0x40e6>
        stepper_inactive_time = code_value() * 1000;
   16ad4:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16ad8:	20 e0       	ldi	r18, 0x00	; 0
   16ada:	30 e0       	ldi	r19, 0x00	; 0
   16adc:	4a e7       	ldi	r20, 0x7A	; 122
   16ade:	54 e4       	ldi	r21, 0x44	; 68
   16ae0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   16ae4:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16ae8:	60 93 34 02 	sts	0x0234, r22	; 0x800234 <stepper_inactive_time>
   16aec:	70 93 35 02 	sts	0x0235, r23	; 0x800235 <stepper_inactive_time+0x1>
   16af0:	80 93 36 02 	sts	0x0236, r24	; 0x800236 <stepper_inactive_time+0x2>
   16af4:	90 93 37 02 	sts	0x0237, r25	; 0x800237 <stepper_inactive_time+0x3>
   16af8:	f6 ca       	rjmp	.-2580   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      }
      else
      {
        bool all_axis = !((code_seen(axis_codes[X_AXIS])) || (code_seen(axis_codes[Y_AXIS])) || (code_seen(axis_codes[Z_AXIS]))|| (code_seen(axis_codes[E_AXIS])));
   16afa:	88 e5       	ldi	r24, 0x58	; 88
   16afc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b00:	88 23       	and	r24, r24
   16b02:	d1 f0       	breq	.+52     	; 0x16b38 <process_commands() [clone .part.46]+0x4124>
          disable_e0();
          finishAndDisableSteppers();
        }
        else
        {
          st_synchronize();
   16b04:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
      if (code_seen('X')) disable_x();
   16b08:	88 e5       	ldi	r24, 0x58	; 88
   16b0a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b0e:	81 11       	cpse	r24, r1
   16b10:	28 c0       	rjmp	.+80     	; 0x16b62 <process_commands() [clone .part.46]+0x414e>
      if (code_seen('Y')) disable_y();
   16b12:	89 e5       	ldi	r24, 0x59	; 89
   16b14:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b18:	88 23       	and	r24, r24
   16b1a:	19 f0       	breq	.+6      	; 0x16b22 <process_commands() [clone .part.46]+0x410e>
   16b1c:	16 9a       	sbi	0x02, 6	; 2
   16b1e:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
      if (code_seen('Z')) disable_z();
   16b22:	8a e5       	ldi	r24, 0x5A	; 90
   16b24:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
#if (E0_ENABLE_PIN != X_ENABLE_PIN) // Only enable on boards that have seperate ENABLE_PINS
      if (code_seen('E')) disable_e0();
   16b28:	85 e4       	ldi	r24, 0x45	; 69
   16b2a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b2e:	88 23       	and	r24, r24
   16b30:	09 f4       	brne	.+2      	; 0x16b34 <process_commands() [clone .part.46]+0x4120>
   16b32:	d9 ca       	rjmp	.-2638   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16b34:	14 9a       	sbi	0x02, 4	; 2
   16b36:	d7 ca       	rjmp	.-2642   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      if(code_seen('S')){
        stepper_inactive_time = code_value() * 1000;
      }
      else
      {
        bool all_axis = !((code_seen(axis_codes[X_AXIS])) || (code_seen(axis_codes[Y_AXIS])) || (code_seen(axis_codes[Z_AXIS]))|| (code_seen(axis_codes[E_AXIS])));
   16b38:	89 e5       	ldi	r24, 0x59	; 89
   16b3a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b3e:	81 11       	cpse	r24, r1
   16b40:	e1 cf       	rjmp	.-62     	; 0x16b04 <process_commands() [clone .part.46]+0x40f0>
   16b42:	8a e5       	ldi	r24, 0x5A	; 90
   16b44:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b48:	81 11       	cpse	r24, r1
   16b4a:	dc cf       	rjmp	.-72     	; 0x16b04 <process_commands() [clone .part.46]+0x40f0>
   16b4c:	85 e4       	ldi	r24, 0x45	; 69
   16b4e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b52:	81 11       	cpse	r24, r1
   16b54:	d7 cf       	rjmp	.-82     	; 0x16b04 <process_commands() [clone .part.46]+0x40f0>
        if(all_axis)
        {
          st_synchronize();
   16b56:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
          disable_e0();
   16b5a:	14 9a       	sbi	0x02, 4	; 2
          finishAndDisableSteppers();
   16b5c:	0e 94 ef 81 	call	0x103de	; 0x103de <finishAndDisableSteppers()>
   16b60:	c2 ca       	rjmp	.-2684   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        }
        else
        {
          st_synchronize();
      if (code_seen('X')) disable_x();
   16b62:	17 9a       	sbi	0x02, 7	; 2
   16b64:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
   16b68:	d4 cf       	rjmp	.-88     	; 0x16b12 <process_commands() [clone .part.46]+0x40fe>

    #### Parameters
    - `S` - specifies the time in seconds. If a value of 0 is specified, the timer is disabled.
    */
	case 86:
	  if (code_seen('S')) {
   16b6a:	83 e5       	ldi	r24, 0x53	; 83
   16b6c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16b70:	88 23       	and	r24, r24
   16b72:	09 f4       	brne	.+2      	; 0x16b76 <process_commands() [clone .part.46]+0x4162>
   16b74:	b8 ca       	rjmp	.-2704   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	    safetytimer_inactive_time = code_value() * 1000;
   16b76:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16b7a:	20 e0       	ldi	r18, 0x00	; 0
   16b7c:	30 e0       	ldi	r19, 0x00	; 0
   16b7e:	4a e7       	ldi	r20, 0x7A	; 122
   16b80:	54 e4       	ldi	r21, 0x44	; 68
   16b82:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   16b86:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16b8a:	60 93 30 02 	sts	0x0230, r22	; 0x800230 <safetytimer_inactive_time>
   16b8e:	70 93 31 02 	sts	0x0231, r23	; 0x800231 <safetytimer_inactive_time+0x1>
   16b92:	80 93 32 02 	sts	0x0232, r24	; 0x800232 <safetytimer_inactive_time+0x2>
   16b96:	90 93 33 02 	sts	0x0233, r25	; 0x800233 <safetytimer_inactive_time+0x3>
		safetyTimer.start();
   16b9a:	8a ed       	ldi	r24, 0xDA	; 218
   16b9c:	95 e0       	ldi	r25, 0x05	; 5
   16b9e:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
   16ba2:	a1 ca       	rjmp	.-2750   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16ba4:	fd ed       	ldi	r31, 0xDD	; 221
   16ba6:	cf 2e       	mov	r12, r31
   16ba8:	f2 e0       	ldi	r31, 0x02	; 2
   16baa:	df 2e       	mov	r13, r31
   16bac:	ae eb       	ldi	r26, 0xBE	; 190
   16bae:	ea 2e       	mov	r14, r26
   16bb0:	ad e0       	ldi	r26, 0x0D	; 13
   16bb2:	fa 2e       	mov	r15, r26
    - `Y` - Steps per mm for the Y drive
    - `Z` - Steps per mm for the Z drive
    - `E` - Steps per mm for the extruder drive
    */
    case 92:
      for(int8_t i=0; i < NUM_AXIS; i++)
   16bb4:	10 e0       	ldi	r17, 0x00	; 0
      {
        if(code_seen(axis_codes[i]))
   16bb6:	f6 01       	movw	r30, r12
   16bb8:	81 91       	ld	r24, Z+
   16bba:	6f 01       	movw	r12, r30
   16bbc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16bc0:	88 23       	and	r24, r24
   16bc2:	09 f4       	brne	.+2      	; 0x16bc6 <process_commands() [clone .part.46]+0x41b2>
   16bc4:	67 c0       	rjmp	.+206    	; 0x16c94 <process_commands() [clone .part.46]+0x4280>
        {
          float value = code_value();
   16bc6:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   16bca:	2b 01       	movw	r4, r22
   16bcc:	3c 01       	movw	r6, r24
          if(i == E_AXIS) { // E
   16bce:	13 30       	cpi	r17, 0x03	; 3
   16bd0:	09 f0       	breq	.+2      	; 0x16bd4 <process_commands() [clone .part.46]+0x41c0>
   16bd2:	6a c0       	rjmp	.+212    	; 0x16ca8 <process_commands() [clone .part.46]+0x4294>
            if(value < 20.0) {
   16bd4:	20 e0       	ldi	r18, 0x00	; 0
   16bd6:	30 e0       	ldi	r19, 0x00	; 0
   16bd8:	40 ea       	ldi	r20, 0xA0	; 160
   16bda:	51 e4       	ldi	r21, 0x41	; 65
   16bdc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   16be0:	87 ff       	sbrs	r24, 7
   16be2:	4e c0       	rjmp	.+156    	; 0x16c80 <process_commands() [clone .part.46]+0x426c>
              const float factor = cs.axis_steps_per_mm[E_AXIS] / value; // increase e constants if M92 E14 is given for netfab.
   16be4:	a3 01       	movw	r20, r6
   16be6:	92 01       	movw	r18, r4
   16be8:	60 91 ce 0d 	lds	r22, 0x0DCE	; 0x800dce <cs+0x10>
   16bec:	70 91 cf 0d 	lds	r23, 0x0DCF	; 0x800dcf <cs+0x11>
   16bf0:	80 91 d0 0d 	lds	r24, 0x0DD0	; 0x800dd0 <cs+0x12>
   16bf4:	90 91 d1 0d 	lds	r25, 0x0DD1	; 0x800dd1 <cs+0x13>
   16bf8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   16bfc:	4b 01       	movw	r8, r22
   16bfe:	5c 01       	movw	r10, r24
              cs.max_jerk[E_AXIS] *= factor;
   16c00:	ac 01       	movw	r20, r24
   16c02:	9b 01       	movw	r18, r22
   16c04:	60 91 12 0e 	lds	r22, 0x0E12	; 0x800e12 <cs+0x54>
   16c08:	70 91 13 0e 	lds	r23, 0x0E13	; 0x800e13 <cs+0x55>
   16c0c:	80 91 14 0e 	lds	r24, 0x0E14	; 0x800e14 <cs+0x56>
   16c10:	90 91 15 0e 	lds	r25, 0x0E15	; 0x800e15 <cs+0x57>
   16c14:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   16c18:	60 93 12 0e 	sts	0x0E12, r22	; 0x800e12 <cs+0x54>
   16c1c:	70 93 13 0e 	sts	0x0E13, r23	; 0x800e13 <cs+0x55>
   16c20:	80 93 14 0e 	sts	0x0E14, r24	; 0x800e14 <cs+0x56>
   16c24:	90 93 15 0e 	sts	0x0E15, r25	; 0x800e15 <cs+0x57>
              max_feedrate[E_AXIS] *= factor;
   16c28:	20 90 71 02 	lds	r2, 0x0271	; 0x800271 <max_feedrate>
   16c2c:	30 90 72 02 	lds	r3, 0x0272	; 0x800272 <max_feedrate+0x1>
   16c30:	a5 01       	movw	r20, r10
   16c32:	94 01       	movw	r18, r8
   16c34:	d1 01       	movw	r26, r2
   16c36:	1c 96       	adiw	r26, 0x0c	; 12
   16c38:	6d 91       	ld	r22, X+
   16c3a:	7d 91       	ld	r23, X+
   16c3c:	8d 91       	ld	r24, X+
   16c3e:	9c 91       	ld	r25, X
   16c40:	1f 97       	sbiw	r26, 0x0f	; 15
   16c42:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   16c46:	f1 01       	movw	r30, r2
   16c48:	64 87       	std	Z+12, r22	; 0x0c
   16c4a:	75 87       	std	Z+13, r23	; 0x0d
   16c4c:	86 87       	std	Z+14, r24	; 0x0e
   16c4e:	97 87       	std	Z+15, r25	; 0x0f
              max_acceleration_steps_per_s2[E_AXIS] *= factor;
   16c50:	60 91 5a 05 	lds	r22, 0x055A	; 0x80055a <max_acceleration_steps_per_s2+0xc>
   16c54:	70 91 5b 05 	lds	r23, 0x055B	; 0x80055b <max_acceleration_steps_per_s2+0xd>
   16c58:	80 91 5c 05 	lds	r24, 0x055C	; 0x80055c <max_acceleration_steps_per_s2+0xe>
   16c5c:	90 91 5d 05 	lds	r25, 0x055D	; 0x80055d <max_acceleration_steps_per_s2+0xf>
   16c60:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   16c64:	a5 01       	movw	r20, r10
   16c66:	94 01       	movw	r18, r8
   16c68:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   16c6c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   16c70:	60 93 5a 05 	sts	0x055A, r22	; 0x80055a <max_acceleration_steps_per_s2+0xc>
   16c74:	70 93 5b 05 	sts	0x055B, r23	; 0x80055b <max_acceleration_steps_per_s2+0xd>
   16c78:	80 93 5c 05 	sts	0x055C, r24	; 0x80055c <max_acceleration_steps_per_s2+0xe>
   16c7c:	90 93 5d 05 	sts	0x055D, r25	; 0x80055d <max_acceleration_steps_per_s2+0xf>
            }
            cs.axis_steps_per_mm[E_AXIS] = value;
   16c80:	40 92 ce 0d 	sts	0x0DCE, r4	; 0x800dce <cs+0x10>
   16c84:	50 92 cf 0d 	sts	0x0DCF, r5	; 0x800dcf <cs+0x11>
   16c88:	60 92 d0 0d 	sts	0x0DD0, r6	; 0x800dd0 <cs+0x12>
   16c8c:	70 92 d1 0d 	sts	0x0DD1, r7	; 0x800dd1 <cs+0x13>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            fsensor.init();
   16c90:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
   16c94:	b4 e0       	ldi	r27, 0x04	; 4
   16c96:	eb 0e       	add	r14, r27
   16c98:	f1 1c       	adc	r15, r1
   16c9a:	1f 5f       	subi	r17, 0xFF	; 255
    - `Y` - Steps per mm for the Y drive
    - `Z` - Steps per mm for the Z drive
    - `E` - Steps per mm for the extruder drive
    */
    case 92:
      for(int8_t i=0; i < NUM_AXIS; i++)
   16c9c:	14 30       	cpi	r17, 0x04	; 4
   16c9e:	09 f0       	breq	.+2      	; 0x16ca2 <process_commands() [clone .part.46]+0x428e>
   16ca0:	8a cf       	rjmp	.-236    	; 0x16bb6 <process_commands() [clone .part.46]+0x41a2>
          } else {
            cs.axis_steps_per_mm[i] = value;
          }
        }
      }
      reset_acceleration_rates();
   16ca2:	0f 94 a1 64 	call	0x2c942	; 0x2c942 <reset_acceleration_rates()>
   16ca6:	1f ca       	rjmp	.-3010   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            cs.axis_steps_per_mm[E_AXIS] = value;
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            fsensor.init();
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
          } else {
            cs.axis_steps_per_mm[i] = value;
   16ca8:	d7 01       	movw	r26, r14
   16caa:	14 96       	adiw	r26, 0x04	; 4
   16cac:	4d 92       	st	X+, r4
   16cae:	5d 92       	st	X+, r5
   16cb0:	6d 92       	st	X+, r6
   16cb2:	7c 92       	st	X, r7
   16cb4:	17 97       	sbiw	r26, 0x07	; 7
   16cb6:	ee cf       	rjmp	.-36     	; 0x16c94 <process_commands() [clone .part.46]+0x4280>

    #### Parameters
    - `N` - Line number
    */
    case 110:
      if (code_seen('N'))
   16cb8:	8e e4       	ldi	r24, 0x4E	; 78
   16cba:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16cbe:	88 23       	and	r24, r24
   16cc0:	09 f4       	brne	.+2      	; 0x16cc4 <process_commands() [clone .part.46]+0x42b0>
   16cc2:	11 ca       	rjmp	.-3038   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	    gcode_LastN = code_value_long();
   16cc4:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
   16cc8:	60 93 7a 03 	sts	0x037A, r22	; 0x80037a <gcode_LastN>
   16ccc:	70 93 7b 03 	sts	0x037B, r23	; 0x80037b <gcode_LastN+0x1>
   16cd0:	80 93 7c 03 	sts	0x037C, r24	; 0x80037c <gcode_LastN+0x2>
   16cd4:	90 93 7d 03 	sts	0x037D, r25	; 0x80037d <gcode_LastN+0x3>
   16cd8:	06 ca       	rjmp	.-3060   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	case 113:
		if (code_seen('S')) {
			host_keepalive_interval = code_value_uint8();
		}
		else {
			SERIAL_ECHO_START;
   16cda:	80 ed       	ldi	r24, 0xD0	; 208
   16cdc:	9a ea       	ldi	r25, 0xAA	; 170
   16cde:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
			SERIAL_ECHOPAIR("M113 S", (unsigned long)host_keepalive_interval);
   16ce2:	c0 90 2f 02 	lds	r12, 0x022F	; 0x80022f <host_keepalive_interval>
   16ce6:	d1 2c       	mov	r13, r1
   16ce8:	f1 2c       	mov	r15, r1
   16cea:	e1 2c       	mov	r14, r1
void serial_echopair_P(const char *s_P, float v)
    { serialprintPGM(s_P); SERIAL_ECHO(v); }
void serial_echopair_P(const char *s_P, double v)
    { serialprintPGM(s_P); SERIAL_ECHO(v); }
void serial_echopair_P(const char *s_P, unsigned long v)
    { serialprintPGM(s_P); SERIAL_ECHO(v); }
   16cec:	83 ea       	ldi	r24, 0xA3	; 163
   16cee:	96 e8       	ldi	r25, 0x86	; 134
   16cf0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   16cf4:	4a e0       	ldi	r20, 0x0A	; 10
   16cf6:	c7 01       	movw	r24, r14
   16cf8:	b6 01       	movw	r22, r12
   16cfa:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
			host_keepalive_interval = code_value_uint8();
		}
		else {
			SERIAL_ECHO_START;
			SERIAL_ECHOPAIR("M113 S", (unsigned long)host_keepalive_interval);
			SERIAL_PROTOCOLLN();
   16cfe:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   16d02:	f1 c9       	rjmp	.-3102   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    */
	case 115: // M115
      if (code_seen('V')) {
          // Report the Prusa version number.
          SERIAL_PROTOCOLLNRPGM(FW_VERSION_STR_P());
      } else if (code_seen('U')) {
   16d04:	85 e5       	ldi	r24, 0x55	; 85
   16d06:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   16d0a:	88 23       	and	r24, r24
   16d0c:	09 f4       	brne	.+2      	; 0x16d10 <process_commands() [clone .part.46]+0x42fc>
   16d0e:	5a c0       	rjmp	.+180    	; 0x16dc4 <process_commands() [clone .part.46]+0x43b0>
          // Check the firmware version provided. If the firmware version provided by the U code is higher than the currently running firmware,
          // pause the print for 30s and ask the user to upgrade the firmware.
          show_upgrade_dialog_if_version_newer(++ strchr_pointer);
   16d10:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
   16d14:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16d18:	0f 5f       	subi	r16, 0xFF	; 255
   16d1a:	1f 4f       	sbci	r17, 0xFF	; 255
   16d1c:	10 93 96 03 	sts	0x0396, r17	; 0x800396 <strchr_pointer+0x1>
   16d20:	00 93 95 03 	sts	0x0395, r16	; 0x800395 <strchr_pointer>
    return false;
}

bool show_upgrade_dialog_if_version_newer(const char *version_string)
{
    if(oCheckVersion == ClCheckMode::_None)
   16d24:	80 91 e9 04 	lds	r24, 0x04E9	; 0x8004e9 <oCheckVersion>
   16d28:	88 23       	and	r24, r24
   16d2a:	09 f4       	brne	.+2      	; 0x16d2e <process_commands() [clone .part.46]+0x431a>
   16d2c:	dc c9       	rjmp	.-3144   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

// 1 - yes, 0 - false, -1 - error;
inline int8_t is_provided_version_newer(const char *version_string)
{
    uint16_t ver_gcode[4];
    if (! parse_version(version_string, ver_gcode))
   16d2e:	be 01       	movw	r22, r28
   16d30:	6f 5f       	subi	r22, 0xFF	; 255
   16d32:	7f 4f       	sbci	r23, 0xFF	; 255
   16d34:	c8 01       	movw	r24, r16
   16d36:	0e 94 56 f0 	call	0x1e0ac	; 0x1e0ac <parse_version(char const*, unsigned int*)>
   16d3a:	88 23       	and	r24, r24
   16d3c:	09 f4       	brne	.+2      	; 0x16d40 <process_commands() [clone .part.46]+0x432c>
   16d3e:	d3 c9       	rjmp	.-3162   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16d40:	81 e3       	ldi	r24, 0x31	; 49
   16d42:	9d e8       	ldi	r25, 0x8D	; 141
   16d44:	de 01       	movw	r26, r28
   16d46:	11 96       	adiw	r26, 0x01	; 1
   16d48:	be 01       	movw	r22, r28
   16d4a:	67 5f       	subi	r22, 0xF7	; 247
   16d4c:	7f 4f       	sbci	r23, 0xFF	; 255
        return -1;
    for (uint8_t i = 0; i < 4; ++ i)
    {
        uint16_t v = (uint16_t)pgm_read_word(&FW_VERSION_NR[i]);
   16d4e:	fc 01       	movw	r30, r24
   16d50:	45 91       	lpm	r20, Z+
   16d52:	54 91       	lpm	r21, Z
        if (ver_gcode[i] > v)
   16d54:	2d 91       	ld	r18, X+
   16d56:	3d 91       	ld	r19, X+
   16d58:	42 17       	cp	r20, r18
   16d5a:	53 07       	cpc	r21, r19
   16d5c:	10 f4       	brcc	.+4      	; 0x16d62 <process_commands() [clone .part.46]+0x434e>
   16d5e:	0c 94 44 cd 	jmp	0x19a88	; 0x19a88 <process_commands() [clone .part.46]+0x7074>
            return 1;
        else if (ver_gcode[i] < v)
   16d62:	24 17       	cp	r18, r20
   16d64:	35 07       	cpc	r19, r21
   16d66:	08 f4       	brcc	.+2      	; 0x16d6a <process_commands() [clone .part.46]+0x4356>
   16d68:	be c9       	rjmp	.-3204   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   16d6a:	02 96       	adiw	r24, 0x02	; 2
inline int8_t is_provided_version_newer(const char *version_string)
{
    uint16_t ver_gcode[4];
    if (! parse_version(version_string, ver_gcode))
        return -1;
    for (uint8_t i = 0; i < 4; ++ i)
   16d6c:	a6 17       	cp	r26, r22
   16d6e:	b7 07       	cpc	r27, r23
   16d70:	71 f7       	brne	.-36     	; 0x16d4e <process_commands() [clone .part.46]+0x433a>
   16d72:	b9 c9       	rjmp	.-3214   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    if (upgrade) {
        lcd_display_message_fullscreen_P(_T(MSG_NEW_FIRMWARE_AVAILABLE));
        lcd_puts_at_P(0, 2, PSTR(""));
        for (const char *c = version_string; ! is_whitespace_or_nl_or_eol(*c); ++ c)
            lcd_putc(*c);
        lcd_puts_at_P(0, 3, _T(MSG_NEW_FIRMWARE_PLEASE_UPGRADE));
   16d74:	83 e4       	ldi	r24, 0x43	; 67
   16d76:	99 e3       	ldi	r25, 0x39	; 57
   16d78:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   16d7c:	ac 01       	movw	r20, r24
   16d7e:	63 e0       	ldi	r22, 0x03	; 3
   16d80:	80 e0       	ldi	r24, 0x00	; 0
   16d82:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        Sound_MakeCustom(50,1000,false);
   16d86:	40 e0       	ldi	r20, 0x00	; 0
   16d88:	68 ee       	ldi	r22, 0xE8	; 232
   16d8a:	73 e0       	ldi	r23, 0x03	; 3
   16d8c:	82 e3       	ldi	r24, 0x32	; 50
   16d8e:	90 e0       	ldi	r25, 0x00	; 0
   16d90:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
        delay_keep_alive(500);
   16d94:	84 ef       	ldi	r24, 0xF4	; 244
   16d96:	91 e0       	ldi	r25, 0x01	; 1
   16d98:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
        Sound_MakeCustom(50,1000,false);
   16d9c:	40 e0       	ldi	r20, 0x00	; 0
   16d9e:	68 ee       	ldi	r22, 0xE8	; 232
   16da0:	73 e0       	ldi	r23, 0x03	; 3
   16da2:	82 e3       	ldi	r24, 0x32	; 50
   16da4:	90 e0       	ldi	r25, 0x00	; 0
   16da6:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
        lcd_wait_for_click_delay(30);
   16daa:	8e e1       	ldi	r24, 0x1E	; 30
   16dac:	90 e0       	ldi	r25, 0x00	; 0
   16dae:	0f 94 3b 3b 	call	0x27676	; 0x27676 <lcd_wait_for_click_delay(unsigned int)>
        lcd_update_enable(true);
   16db2:	81 e0       	ldi	r24, 0x01	; 1
   16db4:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        lcd_clear();
   16db8:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
        lcd_update(0);
   16dbc:	80 e0       	ldi	r24, 0x00	; 0
   16dbe:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   16dc2:	91 c9       	rjmp	.-3294   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      } else {
          char custom_mendel_name[MAX_CUSTOM_MENDEL_NAME_LENGTH];
          eeprom_read_block(custom_mendel_name,(char*)EEPROM_CUSTOM_MENDEL_NAME,MAX_CUSTOM_MENDEL_NAME_LENGTH);
   16dc4:	41 e1       	ldi	r20, 0x11	; 17
   16dc6:	50 e0       	ldi	r21, 0x00	; 0
   16dc8:	60 e8       	ldi	r22, 0x80	; 128
   16dca:	7c e0       	ldi	r23, 0x0C	; 12
   16dcc:	ce 01       	movw	r24, r28
   16dce:	01 96       	adiw	r24, 0x01	; 1
   16dd0:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
          SERIAL_ECHOPGM("FIRMWARE_NAME:Prusa-Firmware ");
   16dd4:	85 e8       	ldi	r24, 0x85	; 133
   16dd6:	96 e8       	ldi	r25, 0x86	; 134
   16dd8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHORPGM(FW_VERSION_STR_P());
   16ddc:	86 e0       	ldi	r24, 0x06	; 6
   16dde:	94 e8       	ldi	r25, 0x84	; 132
   16de0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM("+");
   16de4:	83 e8       	ldi	r24, 0x83	; 131
   16de6:	96 e8       	ldi	r25, 0x86	; 134
   16de8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM(STR(FW_COMMITNR));
   16dec:	8e e7       	ldi	r24, 0x7E	; 126
   16dee:	96 e8       	ldi	r25, 0x86	; 134
   16df0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM("_");
   16df4:	8c e7       	ldi	r24, 0x7C	; 124
   16df6:	96 e8       	ldi	r25, 0x86	; 134
   16df8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM(FW_COMMIT_HASH);
   16dfc:	82 e7       	ldi	r24, 0x72	; 114
   16dfe:	96 e8       	ldi	r25, 0x86	; 134
   16e00:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM(" based on Marlin FIRMWARE_URL:https://github.com/prusa3d/Prusa-Firmware PROTOCOL_VERSION:");
   16e04:	88 e1       	ldi	r24, 0x18	; 24
   16e06:	96 e8       	ldi	r25, 0x86	; 134
   16e08:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM(PROTOCOL_VERSION);
   16e0c:	84 e1       	ldi	r24, 0x14	; 20
   16e0e:	96 e8       	ldi	r25, 0x86	; 134
   16e10:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
          SERIAL_ECHOPGM(" MACHINE_TYPE:");
   16e14:	85 e0       	ldi	r24, 0x05	; 5
   16e16:	96 e8       	ldi	r25, 0x86	; 134
   16e18:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   16e1c:	ce 01       	movw	r24, r28
   16e1e:	01 96       	adiw	r24, 0x01	; 1
   16e20:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
          SERIAL_PROTOCOL(custom_mendel_name);
          SERIAL_ECHOPGM(" EXTRUDER_COUNT:" STRINGIFY(EXTRUDERS));
   16e24:	83 ef       	ldi	r24, 0xF3	; 243
   16e26:	95 e8       	ldi	r25, 0x85	; 133
   16e28:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
#ifdef MACHINE_UUID
          SERIAL_ECHOPGM(" UUID:");
          SERIAL_ECHOPGM(MACHINE_UUID);
#endif //MACHINE_UUID
          SERIAL_ECHOLNPGM("");
   16e2c:	82 ef       	ldi	r24, 0xF2	; 242
   16e2e:	95 e8       	ldi	r25, 0x85	; 133
   16e30:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
}

#ifdef EXTENDED_CAPABILITIES_REPORT

static void cap_line(const char* name, bool ena = false) {
    printf_P(PSTR("Cap:%S:%c\n"), name, (char)ena + '0');
   16e34:	1f 92       	push	r1
   16e36:	e1 e3       	ldi	r30, 0x31	; 49
   16e38:	fe 2e       	mov	r15, r30
   16e3a:	ff 92       	push	r15
   16e3c:	85 ef       	ldi	r24, 0xF5	; 245
   16e3e:	93 e8       	ldi	r25, 0x83	; 131
   16e40:	9f 93       	push	r25
   16e42:	8f 93       	push	r24
   16e44:	0e ea       	ldi	r16, 0xAE	; 174
   16e46:	13 e8       	ldi	r17, 0x83	; 131
   16e48:	1f 93       	push	r17
   16e4a:	0f 93       	push	r16
   16e4c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16e50:	1f 92       	push	r1
   16e52:	ff 92       	push	r15
   16e54:	85 ee       	ldi	r24, 0xE5	; 229
   16e56:	93 e8       	ldi	r25, 0x83	; 131
   16e58:	9f 93       	push	r25
   16e5a:	8f 93       	push	r24
   16e5c:	1f 93       	push	r17
   16e5e:	0f 93       	push	r16
   16e60:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16e64:	1f 92       	push	r1
   16e66:	ff 92       	push	r15
   16e68:	81 ed       	ldi	r24, 0xD1	; 209
   16e6a:	93 e8       	ldi	r25, 0x83	; 131
   16e6c:	9f 93       	push	r25
   16e6e:	8f 93       	push	r24
   16e70:	1f 93       	push	r17
   16e72:	0f 93       	push	r16
   16e74:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16e78:	1f 92       	push	r1
   16e7a:	ff 92       	push	r15
   16e7c:	84 ec       	ldi	r24, 0xC4	; 196
   16e7e:	93 e8       	ldi	r25, 0x83	; 131
   16e80:	9f 93       	push	r25
   16e82:	8f 93       	push	r24
   16e84:	1f 93       	push	r17
   16e86:	0f 93       	push	r16
   16e88:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16e8c:	1f 92       	push	r1
   16e8e:	ff 92       	push	r15
   16e90:	89 eb       	ldi	r24, 0xB9	; 185
   16e92:	93 e8       	ldi	r25, 0x83	; 131
   16e94:	9f 93       	push	r25
   16e96:	8f 93       	push	r24
   16e98:	1f 93       	push	r17
   16e9a:	0f 93       	push	r16
   16e9c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   16ea0:	0f b6       	in	r0, 0x3f	; 63
   16ea2:	f8 94       	cli
   16ea4:	de bf       	out	0x3e, r29	; 62
   16ea6:	0f be       	out	0x3f, r0	; 63
   16ea8:	cd bf       	out	0x3d, r28	; 61
   16eaa:	1d c9       	rjmp	.-3526   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M114 - Get current position <a href="https://reprap.org/wiki/G-code#M114:_Get_Current_Position">M114: Get Current Position</a>
    */
    case 114:
		gcode_M114();
   16eac:	0e 94 ce 77 	call	0xef9c	; 0xef9c <gcode_M114()>
   16eb0:	1a c9       	rjmp	.-3532   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    /*!
    ### M117 - Display Message <a href="https://reprap.org/wiki/G-code#M117:_Display_Message">M117: Display Message</a>
    */
    case 117: {
        const char *src = strchr_pointer + 4; // "M117"
   16eb2:	e0 91 95 03 	lds	r30, 0x0395	; 0x800395 <strchr_pointer>
   16eb6:	f0 91 96 03 	lds	r31, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16eba:	cf 01       	movw	r24, r30
   16ebc:	04 96       	adiw	r24, 0x04	; 4
        lcd_setstatus(*src == ' '? src + 1: src);
   16ebe:	24 81       	ldd	r18, Z+4	; 0x04
   16ec0:	20 32       	cpi	r18, 0x20	; 32
   16ec2:	09 f4       	brne	.+2      	; 0x16ec6 <process_commands() [clone .part.46]+0x44b2>
   16ec4:	01 96       	adiw	r24, 0x01	; 1
   16ec6:	0e 94 6e f5 	call	0x1eadc	; 0x1eadc <lcd_setstatus(char const*)>
        custom_message_type = CustomMsg::M117;
   16eca:	87 e0       	ldi	r24, 0x07	; 7
   16ecc:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
   16ed0:	0a c9       	rjmp	.-3564   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `E1` - Prepend echo: to the message. Some hosts will display echo messages differently when preceded by echo:.
    - `String` - Message string. If omitted, a blank line will be sent.
    */
    case 118: {
        bool hasE = false, hasA = false;
        char *p = strchr_pointer + 5;
   16ed2:	00 91 95 03 	lds	r16, 0x0395	; 0x800395 <strchr_pointer>
   16ed6:	10 91 96 03 	lds	r17, 0x0396	; 0x800396 <strchr_pointer+0x1>
   16eda:	0b 5f       	subi	r16, 0xFB	; 251
   16edc:	1f 4f       	sbci	r17, 0xFF	; 255
   16ede:	83 e0       	ldi	r24, 0x03	; 3
    - `A1` - Prepend // to denote a comment or action command. Hosts like OctoPrint can interpret such commands to perform special actions. See your host’s documentation.
    - `E1` - Prepend echo: to the message. Some hosts will display echo messages differently when preceded by echo:.
    - `String` - Message string. If omitted, a blank line will be sent.
    */
    case 118: {
        bool hasE = false, hasA = false;
   16ee0:	f1 2c       	mov	r15, r1
   16ee2:	40 e0       	ldi	r20, 0x00	; 0
   16ee4:	81 50       	subi	r24, 0x01	; 1
        char *p = strchr_pointer + 5;

        for (uint8_t i = 2; i--;) {
   16ee6:	e9 f0       	breq	.+58     	; 0x16f22 <process_commands() [clone .part.46]+0x450e>
          // A1, E1, and Pn are always parsed out
          if (!((p[0] == 'A' || p[0] == 'E') && p[1] == '1')) break;
   16ee8:	d8 01       	movw	r26, r16
   16eea:	9c 91       	ld	r25, X
   16eec:	29 2f       	mov	r18, r25
   16eee:	2b 7f       	andi	r18, 0xFB	; 251
   16ef0:	21 34       	cpi	r18, 0x41	; 65
   16ef2:	b9 f4       	brne	.+46     	; 0x16f22 <process_commands() [clone .part.46]+0x450e>
   16ef4:	11 96       	adiw	r26, 0x01	; 1
   16ef6:	2c 91       	ld	r18, X
   16ef8:	21 33       	cpi	r18, 0x31	; 49
   16efa:	99 f4       	brne	.+38     	; 0x16f22 <process_commands() [clone .part.46]+0x450e>
          switch (p[0]) {
   16efc:	91 34       	cpi	r25, 0x41	; 65
   16efe:	71 f0       	breq	.+28     	; 0x16f1c <process_commands() [clone .part.46]+0x4508>
   16f00:	95 34       	cpi	r25, 0x45	; 69
   16f02:	09 f4       	brne	.+2      	; 0x16f06 <process_commands() [clone .part.46]+0x44f2>
            case 'A': hasA = true; break;
            case 'E': hasE = true; break;
   16f04:	41 e0       	ldi	r20, 0x01	; 1
          }
          p += 2;
   16f06:	98 01       	movw	r18, r16
   16f08:	2e 5f       	subi	r18, 0xFE	; 254
   16f0a:	3f 4f       	sbci	r19, 0xFF	; 255
   16f0c:	89 01       	movw	r16, r18
   16f0e:	2f 5f       	subi	r18, 0xFF	; 255
   16f10:	3f 4f       	sbci	r19, 0xFF	; 255
          while (*p == ' ') ++p;
   16f12:	f8 01       	movw	r30, r16
   16f14:	90 81       	ld	r25, Z
   16f16:	90 32       	cpi	r25, 0x20	; 32
   16f18:	c9 f3       	breq	.-14     	; 0x16f0c <process_commands() [clone .part.46]+0x44f8>
   16f1a:	e4 cf       	rjmp	.-56     	; 0x16ee4 <process_commands() [clone .part.46]+0x44d0>

        for (uint8_t i = 2; i--;) {
          // A1, E1, and Pn are always parsed out
          if (!((p[0] == 'A' || p[0] == 'E') && p[1] == '1')) break;
          switch (p[0]) {
            case 'A': hasA = true; break;
   16f1c:	ff 24       	eor	r15, r15
   16f1e:	f3 94       	inc	r15
   16f20:	f2 cf       	rjmp	.-28     	; 0x16f06 <process_commands() [clone .part.46]+0x44f2>
          }
          p += 2;
          while (*p == ' ') ++p;
        }

        if (hasE) SERIAL_ECHO_START;
   16f22:	44 23       	and	r20, r20
   16f24:	21 f0       	breq	.+8      	; 0x16f2e <process_commands() [clone .part.46]+0x451a>
   16f26:	80 ed       	ldi	r24, 0xD0	; 208
   16f28:	9a ea       	ldi	r25, 0xAA	; 170
   16f2a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if (hasA) SERIAL_ECHOPGM("//");
   16f2e:	ff 20       	and	r15, r15
   16f30:	21 f0       	breq	.+8      	; 0x16f3a <process_commands() [clone .part.46]+0x4526>
   16f32:	8f ee       	ldi	r24, 0xEF	; 239
   16f34:	95 e8       	ldi	r25, 0x85	; 133
   16f36:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

        SERIAL_ECHOLN(p);
   16f3a:	c8 01       	movw	r24, r16
   16f3c:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   16f40:	d2 c8       	rjmp	.-3676   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M119 - Get endstop states <a href="https://reprap.org/wiki/G-code#M119:_Get_Endstop_Status">M119: Get Endstop Status</a>
    Returns the current state of the configured X, Y, Z endstops. Takes into account any 'inverted endstop' settings, so one can confirm that the machine is interpreting the endstops correctly.
    */
    case 119:
    SERIAL_PROTOCOLRPGM(_N("Reporting endstop status"));////MSG_M119_REPORT
   16f42:	8a e8       	ldi	r24, 0x8A	; 138
   16f44:	97 e6       	ldi	r25, 0x67	; 103
   16f46:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_PROTOCOLLN();
   16f4a:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #if defined(X_MIN_PIN) && X_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_min: "));////MSG_X_MIN
   16f4e:	82 e8       	ldi	r24, 0x82	; 130
   16f50:	97 e6       	ldi	r25, 0x67	; 103
   16f52:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING){
   16f56:	1e 99       	sbic	0x03, 6	; 3
   16f58:	47 c0       	rjmp	.+142    	; 0x16fe8 <process_commands() [clone .part.46]+0x45d4>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16f5a:	8d e7       	ldi	r24, 0x7D	; 125
   16f5c:	97 e6       	ldi	r25, 0x67	; 103
    SERIAL_PROTOCOLRPGM(_N("Reporting endstop status"));////MSG_M119_REPORT
    SERIAL_PROTOCOLLN();
      #if defined(X_MIN_PIN) && X_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_min: "));////MSG_X_MIN
        if(READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16f5e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16f62:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #endif
      #if defined(X_MAX_PIN) && X_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_max: "));////MSG_X_MAX
   16f66:	8b e6       	ldi	r24, 0x6B	; 107
   16f68:	97 e6       	ldi	r25, 0x67	; 103
   16f6a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING){
   16f6e:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   16f72:	82 fd       	sbrc	r24, 2
   16f74:	3c c0       	rjmp	.+120    	; 0x16fee <process_commands() [clone .part.46]+0x45da>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16f76:	8d e7       	ldi	r24, 0x7D	; 125
   16f78:	97 e6       	ldi	r25, 0x67	; 103
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(X_MAX_PIN) && X_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_max: "));////MSG_X_MAX
        if(READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16f7a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16f7e:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #endif
      #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_min: "));////MSG_Y_MIN
   16f82:	83 e6       	ldi	r24, 0x63	; 99
   16f84:	97 e6       	ldi	r25, 0x67	; 103
   16f86:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING){
   16f8a:	1d 99       	sbic	0x03, 5	; 3
   16f8c:	33 c0       	rjmp	.+102    	; 0x16ff4 <process_commands() [clone .part.46]+0x45e0>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16f8e:	8d e7       	ldi	r24, 0x7D	; 125
   16f90:	97 e6       	ldi	r25, 0x67	; 103
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_min: "));////MSG_Y_MIN
        if(READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16f92:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16f96:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #endif
      #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_max: "));////MSG_Y_MAX
   16f9a:	8b e5       	ldi	r24, 0x5B	; 91
   16f9c:	97 e6       	ldi	r25, 0x67	; 103
   16f9e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING){
   16fa2:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   16fa6:	87 fd       	sbrc	r24, 7
   16fa8:	28 c0       	rjmp	.+80     	; 0x16ffa <process_commands() [clone .part.46]+0x45e6>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16faa:	8d e7       	ldi	r24, 0x7D	; 125
   16fac:	97 e6       	ldi	r25, 0x67	; 103
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_max: "));////MSG_Y_MAX
        if(READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16fae:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16fb2:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #endif
      #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MIN);
   16fb6:	83 e5       	ldi	r24, 0x53	; 83
   16fb8:	97 e6       	ldi	r25, 0x67	; 103
   16fba:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING){
   16fbe:	1c 99       	sbic	0x03, 4	; 3
   16fc0:	1f c0       	rjmp	.+62     	; 0x17000 <process_commands() [clone .part.46]+0x45ec>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16fc2:	8d e7       	ldi	r24, 0x7D	; 125
   16fc4:	97 e6       	ldi	r25, 0x67	; 103
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MIN);
        if(READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16fc6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16fca:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
      #endif
      #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MAX);
   16fce:	8b e4       	ldi	r24, 0x4B	; 75
   16fd0:	97 e6       	ldi	r25, 0x67	; 103
   16fd2:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if(READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING){
   16fd6:	01 9b       	sbis	0x00, 1	; 0
   16fd8:	16 c0       	rjmp	.+44     	; 0x17006 <process_commands() [clone .part.46]+0x45f2>
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
   16fda:	8d e7       	ldi	r24, 0x7D	; 125
   16fdc:	97 e6       	ldi	r25, 0x67	; 103
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MAX);
        if(READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16fde:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        }else{
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_OPEN);
        }
        SERIAL_PROTOCOLLN();
   16fe2:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   16fe6:	7f c8       	rjmp	.-3842   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    SERIAL_PROTOCOLRPGM(_N("Reporting endstop status"));////MSG_M119_REPORT
    SERIAL_PROTOCOLLN();
      #if defined(X_MIN_PIN) && X_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_min: "));////MSG_X_MIN
        if(READ(X_MIN_PIN)^X_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16fe8:	83 e7       	ldi	r24, 0x73	; 115
   16fea:	97 e6       	ldi	r25, 0x67	; 103
   16fec:	b8 cf       	rjmp	.-144    	; 0x16f5e <process_commands() [clone .part.46]+0x454a>
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(X_MAX_PIN) && X_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("x_max: "));////MSG_X_MAX
        if(READ(X_MAX_PIN)^X_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16fee:	83 e7       	ldi	r24, 0x73	; 115
   16ff0:	97 e6       	ldi	r25, 0x67	; 103
   16ff2:	c3 cf       	rjmp	.-122    	; 0x16f7a <process_commands() [clone .part.46]+0x4566>
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_min: "));////MSG_Y_MIN
        if(READ(Y_MIN_PIN)^Y_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16ff4:	83 e7       	ldi	r24, 0x73	; 115
   16ff6:	97 e6       	ldi	r25, 0x67	; 103
   16ff8:	cc cf       	rjmp	.-104    	; 0x16f92 <process_commands() [clone .part.46]+0x457e>
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(_n("y_max: "));////MSG_Y_MAX
        if(READ(Y_MAX_PIN)^Y_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   16ffa:	83 e7       	ldi	r24, 0x73	; 115
   16ffc:	97 e6       	ldi	r25, 0x67	; 103
   16ffe:	d7 cf       	rjmp	.-82     	; 0x16fae <process_commands() [clone .part.46]+0x459a>
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MIN);
        if(READ(Z_MIN_PIN)^Z_MIN_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   17000:	83 e7       	ldi	r24, 0x73	; 115
   17002:	97 e6       	ldi	r25, 0x67	; 103
   17004:	e0 cf       	rjmp	.-64     	; 0x16fc6 <process_commands() [clone .part.46]+0x45b2>
        SERIAL_PROTOCOLLN();
      #endif
      #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
        SERIAL_PROTOCOLRPGM(MSG_Z_MAX);
        if(READ(Z_MAX_PIN)^Z_MAX_ENDSTOP_INVERTING){
          SERIAL_PROTOCOLRPGM(MSG_ENDSTOP_HIT);
   17006:	83 e7       	ldi	r24, 0x73	; 115
   17008:	97 e6       	ldi	r25, 0x67	; 103
   1700a:	e9 cf       	rjmp	.-46     	; 0x16fde <process_commands() [clone .part.46]+0x45ca>

    E0:3240 RPM PRN1:4560 RPM E0@:255 PRN1@:255

    */
    case 123:
    gcode_M123();
   1700c:	0e 94 0b 66 	call	0xcc16	; 0xcc16 <gcode_M123()>
   17010:	6a c8       	rjmp	.-3884   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    */
    case 200: // M200 D<millimeters> set filament diameter and set E axis units to cubic millimeters (use S0 to set back to millimeters).
      {

        uint8_t extruder = active_extruder;
        if(code_seen('T')) {
   17012:	84 e5       	ldi	r24, 0x54	; 84
   17014:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17018:	88 23       	and	r24, r24
   1701a:	69 f0       	breq	.+26     	; 0x17036 <process_commands() [clone .part.46]+0x4622>
          extruder = code_value_uint8();
   1701c:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
		  if(extruder >= EXTRUDERS) {
   17020:	88 23       	and	r24, r24
   17022:	49 f0       	breq	.+18     	; 0x17036 <process_commands() [clone .part.46]+0x4622>
            SERIAL_ECHO_START;
   17024:	80 ed       	ldi	r24, 0xD0	; 208
   17026:	9a ea       	ldi	r25, 0xAA	; 170
   17028:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   1702c:	84 e3       	ldi	r24, 0x34	; 52
   1702e:	97 e6       	ldi	r25, 0x67	; 103
   17030:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   17034:	58 c8       	rjmp	.-3920   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            SERIAL_ECHO(_n("M200 Invalid extruder "));////MSG_M200_INVALID_EXTRUDER
            break;
          }
        }
        if(code_seen('D')) {
   17036:	84 e4       	ldi	r24, 0x44	; 68
   17038:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1703c:	88 23       	and	r24, r24
   1703e:	09 f4       	brne	.+2      	; 0x17042 <process_commands() [clone .part.46]+0x462e>
   17040:	52 c8       	rjmp	.-3932   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		  float diameter = code_value();
   17042:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
		  if (diameter == 0.0) {
   17046:	20 e0       	ldi	r18, 0x00	; 0
   17048:	30 e0       	ldi	r19, 0x00	; 0
   1704a:	a9 01       	movw	r20, r18
   1704c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   17050:	81 11       	cpse	r24, r1
   17052:	05 c0       	rjmp	.+10     	; 0x1705e <process_commands() [clone .part.46]+0x464a>
			// setting any extruder filament size disables volumetric on the assumption that
			// slicers either generate in extruder values as cubic mm or as as filament feeds
			// for all extruders
		    cs.volumetric_enabled = false;
   17054:	10 92 55 0e 	sts	0x0E55, r1	; 0x800e55 <cs+0x97>
		  }
        } else {
          //reserved for setting filament diameter via UFID or filament measuring device
          break;
        }
		calculate_extruder_multipliers();
   17058:	0e 94 40 65 	call	0xca80	; 0xca80 <calculate_extruder_multipliers()>
   1705c:	44 c8       	rjmp	.-3960   	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
			// setting any extruder filament size disables volumetric on the assumption that
			// slicers either generate in extruder values as cubic mm or as as filament feeds
			// for all extruders
		    cs.volumetric_enabled = false;
		  } else {
            cs.filament_size[extruder] = code_value();
   1705e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17062:	6b 01       	movw	r12, r22
   17064:	7c 01       	movw	r14, r24
			// make sure all extruders have some sane value for the filament size
			cs.filament_size[0] = (cs.filament_size[0] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : cs.filament_size[0]);
   17066:	20 e0       	ldi	r18, 0x00	; 0
   17068:	30 e0       	ldi	r19, 0x00	; 0
   1706a:	a9 01       	movw	r20, r18
   1706c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   17070:	81 11       	cpse	r24, r1
   17072:	06 c0       	rjmp	.+12     	; 0x17080 <process_commands() [clone .part.46]+0x466c>
   17074:	c1 2c       	mov	r12, r1
   17076:	d1 2c       	mov	r13, r1
   17078:	70 ee       	ldi	r23, 0xE0	; 224
   1707a:	e7 2e       	mov	r14, r23
   1707c:	7f e3       	ldi	r23, 0x3F	; 63
   1707e:	f7 2e       	mov	r15, r23
   17080:	c0 92 56 0e 	sts	0x0E56, r12	; 0x800e56 <cs+0x98>
   17084:	d0 92 57 0e 	sts	0x0E57, r13	; 0x800e57 <cs+0x99>
   17088:	e0 92 58 0e 	sts	0x0E58, r14	; 0x800e58 <cs+0x9a>
   1708c:	f0 92 59 0e 	sts	0x0E59, r15	; 0x800e59 <cs+0x9b>
				cs.filament_size[1] = (cs.filament_size[1] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : cs.filament_size[1]);
				#if EXTRUDERS > 2
					cs.filament_size[2] = (cs.filament_size[2] == 0.0 ? DEFAULT_NOMINAL_FILAMENT_DIA : cs.filament_size[2]);
				#endif
            #endif
			cs.volumetric_enabled = true;
   17090:	81 e0       	ldi	r24, 0x01	; 1
   17092:	80 93 55 0e 	sts	0x0E55, r24	; 0x800e55 <cs+0x97>
   17096:	e0 cf       	rjmp	.-64     	; 0x17058 <process_commands() [clone .part.46]+0x4644>
   17098:	5d ed       	ldi	r21, 0xDD	; 221
   1709a:	c5 2e       	mov	r12, r21
   1709c:	52 e0       	ldi	r21, 0x02	; 2
   1709e:	d5 2e       	mov	r13, r21
   170a0:	6e eb       	ldi	r22, 0xBE	; 190
   170a2:	e6 2e       	mov	r14, r22
   170a4:	6d e0       	ldi	r22, 0x0D	; 13
   170a6:	f6 2e       	mov	r15, r22
    - `Y` - Acceleration for Y axis in units/s^2
    - `Z` - Acceleration for Z axis in units/s^2
    - `E` - Acceleration for the active or specified extruder in units/s^2
    */
    case 201:
		for (int8_t i = 0; i < NUM_AXIS; i++)
   170a8:	10 e0       	ldi	r17, 0x00	; 0
		{
			if (code_seen(axis_codes[i]))
   170aa:	d6 01       	movw	r26, r12
   170ac:	8d 91       	ld	r24, X+
   170ae:	6d 01       	movw	r12, r26
   170b0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   170b4:	88 23       	and	r24, r24
   170b6:	41 f1       	breq	.+80     	; 0x17108 <process_commands() [clone .part.46]+0x46f4>
			{
				unsigned long val = code_value();
   170b8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   170bc:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
#ifdef TMC2130
				unsigned long val_silent = val;
				if ((i == X_AXIS) || (i == Y_AXIS))
   170c0:	12 30       	cpi	r17, 0x02	; 2
   170c2:	4c f5       	brge	.+82     	; 0x17116 <process_commands() [clone .part.46]+0x4702>
				{
					if (val > NORMAL_MAX_ACCEL_XY)
   170c4:	65 3c       	cpi	r22, 0xC5	; 197
   170c6:	b9 e0       	ldi	r27, 0x09	; 9
   170c8:	7b 07       	cpc	r23, r27
   170ca:	81 05       	cpc	r24, r1
   170cc:	91 05       	cpc	r25, r1
   170ce:	40 f5       	brcc	.+80     	; 0x17120 <process_commands() [clone .part.46]+0x470c>
   170d0:	56 2f       	mov	r21, r22
   170d2:	47 2f       	mov	r20, r23
   170d4:	38 2f       	mov	r19, r24
   170d6:	29 2f       	mov	r18, r25
   170d8:	61 3c       	cpi	r22, 0xC1	; 193
   170da:	e3 e0       	ldi	r30, 0x03	; 3
   170dc:	7e 07       	cpc	r23, r30
   170de:	81 05       	cpc	r24, r1
   170e0:	91 05       	cpc	r25, r1
   170e2:	20 f0       	brcs	.+8      	; 0x170ec <process_commands() [clone .part.46]+0x46d8>
   170e4:	50 ec       	ldi	r21, 0xC0	; 192
   170e6:	43 e0       	ldi	r20, 0x03	; 3
   170e8:	30 e0       	ldi	r19, 0x00	; 0
   170ea:	20 e0       	ldi	r18, 0x00	; 0
						val = NORMAL_MAX_ACCEL_XY;
					if (val_silent > SILENT_MAX_ACCEL_XY)
						val_silent = SILENT_MAX_ACCEL_XY;
				}
				cs.max_acceleration_mm_per_s2_normal[i] = val;
   170ec:	d7 01       	movw	r26, r14
   170ee:	94 96       	adiw	r26, 0x24	; 36
   170f0:	6d 93       	st	X+, r22
   170f2:	7d 93       	st	X+, r23
   170f4:	8d 93       	st	X+, r24
   170f6:	9c 93       	st	X, r25
   170f8:	97 97       	sbiw	r26, 0x27	; 39
				cs.max_acceleration_mm_per_s2_silent[i] = val_silent;
   170fa:	f7 01       	movw	r30, r14
   170fc:	e4 55       	subi	r30, 0x54	; 84
   170fe:	ff 4f       	sbci	r31, 0xFF	; 255
   17100:	50 83       	st	Z, r21
   17102:	41 83       	std	Z+1, r20	; 0x01
   17104:	32 83       	std	Z+2, r19	; 0x02
   17106:	23 83       	std	Z+3, r18	; 0x03
   17108:	b4 e0       	ldi	r27, 0x04	; 4
   1710a:	eb 0e       	add	r14, r27
   1710c:	f1 1c       	adc	r15, r1
   1710e:	1f 5f       	subi	r17, 0xFF	; 255
    - `Y` - Acceleration for Y axis in units/s^2
    - `Z` - Acceleration for Z axis in units/s^2
    - `E` - Acceleration for the active or specified extruder in units/s^2
    */
    case 201:
		for (int8_t i = 0; i < NUM_AXIS; i++)
   17110:	14 30       	cpi	r17, 0x04	; 4
   17112:	59 f6       	brne	.-106    	; 0x170aa <process_commands() [clone .part.46]+0x4696>
   17114:	c6 cd       	rjmp	.-1140   	; 0x16ca2 <process_commands() [clone .part.46]+0x428e>
		{
			if (code_seen(axis_codes[i]))
			{
				unsigned long val = code_value();
   17116:	56 2f       	mov	r21, r22
   17118:	47 2f       	mov	r20, r23
   1711a:	38 2f       	mov	r19, r24
   1711c:	29 2f       	mov	r18, r25
   1711e:	e6 cf       	rjmp	.-52     	; 0x170ec <process_commands() [clone .part.46]+0x46d8>
				if ((i == X_AXIS) || (i == Y_AXIS))
				{
					if (val > NORMAL_MAX_ACCEL_XY)
						val = NORMAL_MAX_ACCEL_XY;
					if (val_silent > SILENT_MAX_ACCEL_XY)
						val_silent = SILENT_MAX_ACCEL_XY;
   17120:	50 ec       	ldi	r21, 0xC0	; 192
   17122:	43 e0       	ldi	r20, 0x03	; 3
   17124:	30 e0       	ldi	r19, 0x00	; 0
   17126:	20 e0       	ldi	r18, 0x00	; 0
#ifdef TMC2130
				unsigned long val_silent = val;
				if ((i == X_AXIS) || (i == Y_AXIS))
				{
					if (val > NORMAL_MAX_ACCEL_XY)
						val = NORMAL_MAX_ACCEL_XY;
   17128:	64 ec       	ldi	r22, 0xC4	; 196
   1712a:	79 e0       	ldi	r23, 0x09	; 9
   1712c:	80 e0       	ldi	r24, 0x00	; 0
   1712e:	90 e0       	ldi	r25, 0x00	; 0
   17130:	dd cf       	rjmp	.-70     	; 0x170ec <process_commands() [clone .part.46]+0x46d8>
   17132:	3d ed       	ldi	r19, 0xDD	; 221
   17134:	a3 2e       	mov	r10, r19
   17136:	32 e0       	ldi	r19, 0x02	; 2
   17138:	b3 2e       	mov	r11, r19
   1713a:	4e eb       	ldi	r20, 0xBE	; 190
   1713c:	c4 2e       	mov	r12, r20
   1713e:	4d e0       	ldi	r20, 0x0D	; 13
   17140:	d4 2e       	mov	r13, r20
    - `Y` - Maximum feedrate for Y axis
    - `Z` - Maximum feedrate for Z axis
    - `E` - Maximum feedrate for extruder drives
    */
    case 203: // M203 max feedrate mm/sec
		for (uint8_t i = 0; i < NUM_AXIS; i++)
   17142:	91 2c       	mov	r9, r1
		{
			if (code_seen(axis_codes[i]))
   17144:	f5 01       	movw	r30, r10
   17146:	81 91       	ld	r24, Z+
   17148:	5f 01       	movw	r10, r30
   1714a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1714e:	88 23       	and	r24, r24
   17150:	71 f1       	breq	.+92     	; 0x171ae <process_commands() [clone .part.46]+0x479a>
			{
				float val = code_value();
   17152:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17156:	7b 01       	movw	r14, r22
   17158:	8c 01       	movw	r16, r24
#ifdef TMC2130
				float val_silent = val;
				if ((i == X_AXIS) || (i == Y_AXIS))
   1715a:	f1 e0       	ldi	r31, 0x01	; 1
   1715c:	f9 15       	cp	r31, r9
   1715e:	b8 f1       	brcs	.+110    	; 0x171ce <process_commands() [clone .part.46]+0x47ba>
				{
					if (val > NORMAL_MAX_FEEDRATE_XY)
   17160:	20 e0       	ldi	r18, 0x00	; 0
   17162:	30 e0       	ldi	r19, 0x00	; 0
   17164:	48 e4       	ldi	r20, 0x48	; 72
   17166:	53 e4       	ldi	r21, 0x43	; 67
   17168:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1716c:	18 16       	cp	r1, r24
   1716e:	44 f1       	brlt	.+80     	; 0x171c0 <process_commands() [clone .part.46]+0x47ac>
    case 203: // M203 max feedrate mm/sec
		for (uint8_t i = 0; i < NUM_AXIS; i++)
		{
			if (code_seen(axis_codes[i]))
			{
				float val = code_value();
   17170:	5e 2c       	mov	r5, r14
   17172:	6f 2c       	mov	r6, r15
   17174:	70 2e       	mov	r7, r16
   17176:	81 2e       	mov	r8, r17
				float val_silent = val;
				if ((i == X_AXIS) || (i == Y_AXIS))
				{
					if (val > NORMAL_MAX_FEEDRATE_XY)
						val = NORMAL_MAX_FEEDRATE_XY;
					if (val_silent > SILENT_MAX_FEEDRATE_XY)
   17178:	20 e0       	ldi	r18, 0x00	; 0
   1717a:	30 e0       	ldi	r19, 0x00	; 0
   1717c:	48 ec       	ldi	r20, 0xC8	; 200
   1717e:	52 e4       	ldi	r21, 0x42	; 66
   17180:	b7 01       	movw	r22, r14
   17182:	c8 01       	movw	r24, r16
   17184:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   17188:	18 16       	cp	r1, r24
   1718a:	34 f1       	brlt	.+76     	; 0x171d8 <process_commands() [clone .part.46]+0x47c4>
						val_silent = SILENT_MAX_FEEDRATE_XY;
				}
				cs.max_feedrate_normal[i] = val;
   1718c:	85 2d       	mov	r24, r5
   1718e:	96 2d       	mov	r25, r6
   17190:	a7 2d       	mov	r26, r7
   17192:	b8 2d       	mov	r27, r8
   17194:	f6 01       	movw	r30, r12
   17196:	84 8b       	std	Z+20, r24	; 0x14
   17198:	95 8b       	std	Z+21, r25	; 0x15
   1719a:	a6 8b       	std	Z+22, r26	; 0x16
   1719c:	b7 8b       	std	Z+23, r27	; 0x17
				cs.max_feedrate_silent[i] = val_silent;
   1719e:	c7 01       	movw	r24, r14
   171a0:	d8 01       	movw	r26, r16
   171a2:	e4 56       	subi	r30, 0x64	; 100
   171a4:	ff 4f       	sbci	r31, 0xFF	; 255
   171a6:	80 83       	st	Z, r24
   171a8:	91 83       	std	Z+1, r25	; 0x01
   171aa:	a2 83       	std	Z+2, r26	; 0x02
   171ac:	b3 83       	std	Z+3, r27	; 0x03
    - `Y` - Maximum feedrate for Y axis
    - `Z` - Maximum feedrate for Z axis
    - `E` - Maximum feedrate for extruder drives
    */
    case 203: // M203 max feedrate mm/sec
		for (uint8_t i = 0; i < NUM_AXIS; i++)
   171ae:	93 94       	inc	r9
   171b0:	f4 e0       	ldi	r31, 0x04	; 4
   171b2:	cf 0e       	add	r12, r31
   171b4:	d1 1c       	adc	r13, r1
   171b6:	24 e0       	ldi	r18, 0x04	; 4
   171b8:	92 12       	cpse	r9, r18
   171ba:	c4 cf       	rjmp	.-120    	; 0x17144 <process_commands() [clone .part.46]+0x4730>
   171bc:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
#ifdef TMC2130
				float val_silent = val;
				if ((i == X_AXIS) || (i == Y_AXIS))
				{
					if (val > NORMAL_MAX_FEEDRATE_XY)
						val = NORMAL_MAX_FEEDRATE_XY;
   171c0:	51 2c       	mov	r5, r1
   171c2:	61 2c       	mov	r6, r1
   171c4:	98 e4       	ldi	r25, 0x48	; 72
   171c6:	79 2e       	mov	r7, r25
   171c8:	23 e4       	ldi	r18, 0x43	; 67
   171ca:	82 2e       	mov	r8, r18
   171cc:	d5 cf       	rjmp	.-86     	; 0x17178 <process_commands() [clone .part.46]+0x4764>
    case 203: // M203 max feedrate mm/sec
		for (uint8_t i = 0; i < NUM_AXIS; i++)
		{
			if (code_seen(axis_codes[i]))
			{
				float val = code_value();
   171ce:	56 2e       	mov	r5, r22
   171d0:	6f 2c       	mov	r6, r15
   171d2:	78 2e       	mov	r7, r24
   171d4:	81 2e       	mov	r8, r17
   171d6:	da cf       	rjmp	.-76     	; 0x1718c <process_commands() [clone .part.46]+0x4778>
				if ((i == X_AXIS) || (i == Y_AXIS))
				{
					if (val > NORMAL_MAX_FEEDRATE_XY)
						val = NORMAL_MAX_FEEDRATE_XY;
					if (val_silent > SILENT_MAX_FEEDRATE_XY)
						val_silent = SILENT_MAX_FEEDRATE_XY;
   171d8:	e1 2c       	mov	r14, r1
   171da:	f1 2c       	mov	r15, r1
   171dc:	08 ec       	ldi	r16, 0xC8	; 200
   171de:	12 e4       	ldi	r17, 0x42	; 66
   171e0:	d5 cf       	rjmp	.-86     	; 0x1718c <process_commands() [clone .part.46]+0x4778>
          // Interpret the T value as retract acceleration in the old Marlin format.
          if(code_seen('T'))
            cs.retract_acceleration = code_value();
        } else {
          // New acceleration format, compatible with the upstream Marlin.
          if(code_seen('P'))
   171e2:	80 e5       	ldi	r24, 0x50	; 80
   171e4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   171e8:	88 23       	and	r24, r24
   171ea:	51 f0       	breq	.+20     	; 0x17200 <process_commands() [clone .part.46]+0x47ec>
            cs.acceleration = code_value();
   171ec:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   171f0:	60 93 f2 0d 	sts	0x0DF2, r22	; 0x800df2 <cs+0x34>
   171f4:	70 93 f3 0d 	sts	0x0DF3, r23	; 0x800df3 <cs+0x35>
   171f8:	80 93 f4 0d 	sts	0x0DF4, r24	; 0x800df4 <cs+0x36>
   171fc:	90 93 f5 0d 	sts	0x0DF5, r25	; 0x800df5 <cs+0x37>
          if(code_seen('R'))
   17200:	82 e5       	ldi	r24, 0x52	; 82
   17202:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17206:	88 23       	and	r24, r24
   17208:	51 f0       	breq	.+20     	; 0x1721e <process_commands() [clone .part.46]+0x480a>
            cs.retract_acceleration = code_value();
   1720a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1720e:	60 93 f6 0d 	sts	0x0DF6, r22	; 0x800df6 <cs+0x38>
   17212:	70 93 f7 0d 	sts	0x0DF7, r23	; 0x800df7 <cs+0x39>
   17216:	80 93 f8 0d 	sts	0x0DF8, r24	; 0x800df8 <cs+0x3a>
   1721a:	90 93 f9 0d 	sts	0x0DF9, r25	; 0x800df9 <cs+0x3b>
          if(code_seen('T'))
   1721e:	84 e5       	ldi	r24, 0x54	; 84
   17220:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17224:	88 23       	and	r24, r24
   17226:	11 f4       	brne	.+4      	; 0x1722c <process_commands() [clone .part.46]+0x4818>
   17228:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            cs.travel_acceleration = code_value();
   1722c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17230:	60 93 7e 0e 	sts	0x0E7E, r22	; 0x800e7e <cs+0xc0>
   17234:	70 93 7f 0e 	sts	0x0E7F, r23	; 0x800e7f <cs+0xc1>
   17238:	80 93 80 0e 	sts	0x0E80, r24	; 0x800e80 <cs+0xc2>
   1723c:	90 93 81 0e 	sts	0x0E81, r25	; 0x800e81 <cs+0xc3>
   17240:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `Z` - Maximum Z jerk (units/s)
    - `E` - Maximum E jerk (units/s)
    */
    case 205:
    {
      if(code_seen('S')) cs.minimumfeedrate = code_value();
   17244:	83 e5       	ldi	r24, 0x53	; 83
   17246:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1724a:	88 23       	and	r24, r24
   1724c:	51 f0       	breq	.+20     	; 0x17262 <process_commands() [clone .part.46]+0x484e>
   1724e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17252:	60 93 fa 0d 	sts	0x0DFA, r22	; 0x800dfa <cs+0x3c>
   17256:	70 93 fb 0d 	sts	0x0DFB, r23	; 0x800dfb <cs+0x3d>
   1725a:	80 93 fc 0d 	sts	0x0DFC, r24	; 0x800dfc <cs+0x3e>
   1725e:	90 93 fd 0d 	sts	0x0DFD, r25	; 0x800dfd <cs+0x3f>
      if(code_seen('T')) cs.mintravelfeedrate = code_value();
   17262:	84 e5       	ldi	r24, 0x54	; 84
   17264:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17268:	88 23       	and	r24, r24
   1726a:	51 f0       	breq	.+20     	; 0x17280 <process_commands() [clone .part.46]+0x486c>
   1726c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17270:	60 93 fe 0d 	sts	0x0DFE, r22	; 0x800dfe <cs+0x40>
   17274:	70 93 ff 0d 	sts	0x0DFF, r23	; 0x800dff <cs+0x41>
   17278:	80 93 00 0e 	sts	0x0E00, r24	; 0x800e00 <cs+0x42>
   1727c:	90 93 01 0e 	sts	0x0E01, r25	; 0x800e01 <cs+0x43>
      if(code_seen('B')) cs.min_segment_time_us = (uint32_t)code_value();
   17280:	82 e4       	ldi	r24, 0x42	; 66
   17282:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17286:	88 23       	and	r24, r24
   17288:	61 f0       	breq	.+24     	; 0x172a2 <process_commands() [clone .part.46]+0x488e>
   1728a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1728e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   17292:	60 93 02 0e 	sts	0x0E02, r22	; 0x800e02 <cs+0x44>
   17296:	70 93 03 0e 	sts	0x0E03, r23	; 0x800e03 <cs+0x45>
   1729a:	80 93 04 0e 	sts	0x0E04, r24	; 0x800e04 <cs+0x46>
   1729e:	90 93 05 0e 	sts	0x0E05, r25	; 0x800e05 <cs+0x47>
      if(code_seen('X')) cs.max_jerk[X_AXIS] = cs.max_jerk[Y_AXIS] = code_value();
   172a2:	88 e5       	ldi	r24, 0x58	; 88
   172a4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   172a8:	88 23       	and	r24, r24
   172aa:	91 f0       	breq	.+36     	; 0x172d0 <process_commands() [clone .part.46]+0x48bc>
   172ac:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   172b0:	60 93 0a 0e 	sts	0x0E0A, r22	; 0x800e0a <cs+0x4c>
   172b4:	70 93 0b 0e 	sts	0x0E0B, r23	; 0x800e0b <cs+0x4d>
   172b8:	80 93 0c 0e 	sts	0x0E0C, r24	; 0x800e0c <cs+0x4e>
   172bc:	90 93 0d 0e 	sts	0x0E0D, r25	; 0x800e0d <cs+0x4f>
   172c0:	60 93 06 0e 	sts	0x0E06, r22	; 0x800e06 <cs+0x48>
   172c4:	70 93 07 0e 	sts	0x0E07, r23	; 0x800e07 <cs+0x49>
   172c8:	80 93 08 0e 	sts	0x0E08, r24	; 0x800e08 <cs+0x4a>
   172cc:	90 93 09 0e 	sts	0x0E09, r25	; 0x800e09 <cs+0x4b>
      if(code_seen('Y')) cs.max_jerk[Y_AXIS] = code_value();
   172d0:	89 e5       	ldi	r24, 0x59	; 89
   172d2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   172d6:	88 23       	and	r24, r24
   172d8:	51 f0       	breq	.+20     	; 0x172ee <process_commands() [clone .part.46]+0x48da>
   172da:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   172de:	60 93 0a 0e 	sts	0x0E0A, r22	; 0x800e0a <cs+0x4c>
   172e2:	70 93 0b 0e 	sts	0x0E0B, r23	; 0x800e0b <cs+0x4d>
   172e6:	80 93 0c 0e 	sts	0x0E0C, r24	; 0x800e0c <cs+0x4e>
   172ea:	90 93 0d 0e 	sts	0x0E0D, r25	; 0x800e0d <cs+0x4f>
      if(code_seen('Z')) cs.max_jerk[Z_AXIS] = code_value();
   172ee:	8a e5       	ldi	r24, 0x5A	; 90
   172f0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   172f4:	88 23       	and	r24, r24
   172f6:	51 f0       	breq	.+20     	; 0x1730c <process_commands() [clone .part.46]+0x48f8>
   172f8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   172fc:	60 93 0e 0e 	sts	0x0E0E, r22	; 0x800e0e <cs+0x50>
   17300:	70 93 0f 0e 	sts	0x0E0F, r23	; 0x800e0f <cs+0x51>
   17304:	80 93 10 0e 	sts	0x0E10, r24	; 0x800e10 <cs+0x52>
   17308:	90 93 11 0e 	sts	0x0E11, r25	; 0x800e11 <cs+0x53>
      if(code_seen('E'))
   1730c:	85 e4       	ldi	r24, 0x45	; 69
   1730e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17312:	88 23       	and	r24, r24
   17314:	11 f4       	brne	.+4      	; 0x1731a <process_commands() [clone .part.46]+0x4906>
   17316:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
          float e = code_value();
   1731a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
#ifndef LA_NOCOMPAT
          e = la10c_jerk(e);
   1731e:	0e 94 39 81 	call	0x10272	; 0x10272 <la10c_jerk(float)>
#endif
          cs.max_jerk[E_AXIS] = e;
   17322:	60 93 12 0e 	sts	0x0E12, r22	; 0x800e12 <cs+0x54>
   17326:	70 93 13 0e 	sts	0x0E13, r23	; 0x800e13 <cs+0x55>
   1732a:	80 93 14 0e 	sts	0x0E14, r24	; 0x800e14 <cs+0x56>
   1732e:	90 93 15 0e 	sts	0x0E15, r25	; 0x800e15 <cs+0x57>
   17332:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   17336:	0d ed       	ldi	r16, 0xDD	; 221
   17338:	12 e0       	ldi	r17, 0x02	; 2
   1733a:	86 e1       	ldi	r24, 0x16	; 22
   1733c:	e8 2e       	mov	r14, r24
   1733e:	8e e0       	ldi	r24, 0x0E	; 14
   17340:	f8 2e       	mov	r15, r24
    - `Z` - Z axis offset
    */
    case 206:
      for(uint8_t i=0; i < 3; i++)
      {
        if(code_seen(axis_codes[i])) cs.add_homing[i] = code_value();
   17342:	d8 01       	movw	r26, r16
   17344:	8d 91       	ld	r24, X+
   17346:	8d 01       	movw	r16, r26
   17348:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1734c:	88 23       	and	r24, r24
   1734e:	39 f0       	breq	.+14     	; 0x1735e <process_commands() [clone .part.46]+0x494a>
   17350:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17354:	f7 01       	movw	r30, r14
   17356:	60 83       	st	Z, r22
   17358:	71 83       	std	Z+1, r23	; 0x01
   1735a:	82 83       	std	Z+2, r24	; 0x02
   1735c:	93 83       	std	Z+3, r25	; 0x03
   1735e:	f4 e0       	ldi	r31, 0x04	; 4
   17360:	ef 0e       	add	r14, r31
   17362:	f1 1c       	adc	r15, r1
    - `X` - X axis offset
    - `Y` - Y axis offset
    - `Z` - Z axis offset
    */
    case 206:
      for(uint8_t i=0; i < 3; i++)
   17364:	22 e0       	ldi	r18, 0x02	; 2
   17366:	00 3e       	cpi	r16, 0xE0	; 224
   17368:	12 07       	cpc	r17, r18
   1736a:	59 f7       	brne	.-42     	; 0x17342 <process_commands() [clone .part.46]+0x492e>
   1736c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `S` - positive length surplus to the M207 Snnn, in mm
    - `F` - feedrate, in mm/sec
    */
    case 208: // M208 - set retract recover length S[positive mm surplus to the M207 S*] F[feedrate mm/min]
    {
      if(code_seen('S'))
   17370:	83 e5       	ldi	r24, 0x53	; 83
   17372:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17376:	88 23       	and	r24, r24
   17378:	51 f0       	breq	.+20     	; 0x1738e <process_commands() [clone .part.46]+0x497a>
      {
        cs.retract_recover_length = code_value() ;
   1737a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1737e:	60 93 4d 0e 	sts	0x0E4D, r22	; 0x800e4d <cs+0x8f>
   17382:	70 93 4e 0e 	sts	0x0E4E, r23	; 0x800e4e <cs+0x90>
   17386:	80 93 4f 0e 	sts	0x0E4F, r24	; 0x800e4f <cs+0x91>
   1738a:	90 93 50 0e 	sts	0x0E50, r25	; 0x800e50 <cs+0x92>
      }
      if(code_seen('F'))
   1738e:	86 e4       	ldi	r24, 0x46	; 70
   17390:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17394:	88 23       	and	r24, r24
   17396:	11 f4       	brne	.+4      	; 0x1739c <process_commands() [clone .part.46]+0x4988>
   17398:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        cs.retract_recover_feedrate = get_feedrate_mm_s(code_value());
   1739c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   173a0:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
   173a4:	60 93 51 0e 	sts	0x0E51, r22	; 0x800e51 <cs+0x93>
   173a8:	70 93 52 0e 	sts	0x0E52, r23	; 0x800e52 <cs+0x94>
   173ac:	80 93 53 0e 	sts	0x0E53, r24	; 0x800e53 <cs+0x95>
   173b0:	90 93 54 0e 	sts	0x0E54, r25	; 0x800e54 <cs+0x96>
   173b4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    #### Parameters
    - `S` - 1=true or 0=false
    */
    case 209: // M209 - S<1=true/0=false> enable automatic retract detect if the slicer did not support G10/11: every normal extrude-only move will be classified as retract depending on the direction.
    {
      if(code_seen('S'))
   173b8:	83 e5       	ldi	r24, 0x53	; 83
   173ba:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   173be:	88 23       	and	r24, r24
   173c0:	11 f4       	brne	.+4      	; 0x173c6 <process_commands() [clone .part.46]+0x49b2>
   173c2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        switch(code_value_uint8())
   173c6:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   173ca:	88 23       	and	r24, r24
   173cc:	c1 f0       	breq	.+48     	; 0x173fe <process_commands() [clone .part.46]+0x49ea>
   173ce:	81 30       	cpi	r24, 0x01	; 1
   173d0:	e1 f0       	breq	.+56     	; 0x1740a <process_commands() [clone .part.46]+0x49f6>
            #if EXTRUDERS > 2
              retracted[2]=false;
            #endif
          }break;
          default:
            SERIAL_ECHO_START;
   173d2:	80 ed       	ldi	r24, 0xD0	; 208
   173d4:	9a ea       	ldi	r25, 0xAA	; 170
   173d6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_ECHORPGM(MSG_UNKNOWN_COMMAND);
   173da:	81 e2       	ldi	r24, 0x21	; 33
   173dc:	97 e6       	ldi	r25, 0x67	; 103
   173de:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_ECHO(CMDBUFFER_CURRENT_STRING);
   173e2:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   173e6:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   173ea:	88 55       	subi	r24, 0x58	; 88
   173ec:	9f 4e       	sbci	r25, 0xEF	; 239
   173ee:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
            SERIAL_ECHOLNPGM("\"(1)");
   173f2:	8a ee       	ldi	r24, 0xEA	; 234
   173f4:	95 e8       	ldi	r25, 0x85	; 133
   173f6:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   173fa:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
      {
        switch(code_value_uint8())
        {
          case 0:
          {
            cs.autoretract_enabled=false;
   173fe:	10 92 40 0e 	sts	0x0E40, r1	; 0x800e40 <cs+0x82>
            retracted[0]=false;
   17402:	10 92 8e 06 	sts	0x068E, r1	; 0x80068e <retracted>
   17406:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
              retracted[2]=false;
            #endif
          }break;
          case 1:
          {
            cs.autoretract_enabled=true;
   1740a:	80 93 40 0e 	sts	0x0E40, r24	; 0x800e40 <cs+0x82>
            retracted[0]=false;
   1740e:	10 92 8e 06 	sts	0x068E, r1	; 0x80068e <retracted>
   17412:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            greater than or less than the minimum and maximum segment length.  Set to 0 to disable.
    */
    case 214:
    {
        // Extract all possible parameters if they appear
        float p = code_seen('P') ? code_value() : cs.mm_per_arc_segment;
   17416:	40 90 82 0e 	lds	r4, 0x0E82	; 0x800e82 <cs+0xc4>
   1741a:	50 90 83 0e 	lds	r5, 0x0E83	; 0x800e83 <cs+0xc5>
   1741e:	60 90 84 0e 	lds	r6, 0x0E84	; 0x800e84 <cs+0xc6>
   17422:	70 90 85 0e 	lds	r7, 0x0E85	; 0x800e85 <cs+0xc7>
   17426:	0c 94 16 a8 	jmp	0x1502c	; 0x1502c <process_commands() [clone .part.46]+0x2618>
        float s = code_seen('S') ? code_value() : cs.min_mm_per_arc_segment;
   1742a:	80 90 86 0e 	lds	r8, 0x0E86	; 0x800e86 <cs+0xc8>
   1742e:	90 90 87 0e 	lds	r9, 0x0E87	; 0x800e87 <cs+0xc9>
   17432:	a0 90 88 0e 	lds	r10, 0x0E88	; 0x800e88 <cs+0xca>
   17436:	b0 90 89 0e 	lds	r11, 0x0E89	; 0x800e89 <cs+0xcb>
   1743a:	0c 94 21 a8 	jmp	0x15042	; 0x15042 <process_commands() [clone .part.46]+0x262e>
    - `R` - Restore previous speed factor
    */
    case 220:
    {
        bool codesWereSeen = false;
        if (code_seen('B')) //backup current speed factor
   1743e:	82 e4       	ldi	r24, 0x42	; 66
   17440:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17444:	18 2f       	mov	r17, r24
   17446:	88 23       	and	r24, r24
   17448:	41 f0       	breq	.+16     	; 0x1745a <process_commands() [clone .part.46]+0x4a46>
        {
            saved_feedmultiply_mm = feedmultiply;
   1744a:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
   1744e:	90 91 3a 02 	lds	r25, 0x023A	; 0x80023a <feedmultiply+0x1>
   17452:	90 93 2e 02 	sts	0x022E, r25	; 0x80022e <saved_feedmultiply_mm+0x1>
   17456:	80 93 2d 02 	sts	0x022D, r24	; 0x80022d <saved_feedmultiply_mm>
            codesWereSeen = true;
        }
        if (code_seen('S'))
   1745a:	83 e5       	ldi	r24, 0x53	; 83
   1745c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17460:	08 2f       	mov	r16, r24
   17462:	88 23       	and	r24, r24
   17464:	39 f0       	breq	.+14     	; 0x17474 <process_commands() [clone .part.46]+0x4a60>
        {
            feedmultiply = code_value_short();
   17466:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   1746a:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
   1746e:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
            codesWereSeen = true;
   17472:	10 2f       	mov	r17, r16
        }
        if (code_seen('R')) //restore previous feedmultiply
   17474:	82 e5       	ldi	r24, 0x52	; 82
   17476:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1747a:	88 23       	and	r24, r24
   1747c:	51 f0       	breq	.+20     	; 0x17492 <process_commands() [clone .part.46]+0x4a7e>
        {
            feedmultiply = saved_feedmultiply_mm;
   1747e:	80 91 2d 02 	lds	r24, 0x022D	; 0x80022d <saved_feedmultiply_mm>
   17482:	90 91 2e 02 	lds	r25, 0x022E	; 0x80022e <saved_feedmultiply_mm+0x1>
   17486:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
   1748a:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
   1748e:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            codesWereSeen = true;
        }
        if (!codesWereSeen)
   17492:	11 11       	cpse	r17, r1
   17494:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        {
            printf_P(PSTR("%i%%\n"), feedmultiply);
   17498:	80 91 3a 02 	lds	r24, 0x023A	; 0x80023a <feedmultiply+0x1>
   1749c:	8f 93       	push	r24
   1749e:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
   174a2:	8f 93       	push	r24
   174a4:	84 ee       	ldi	r24, 0xE4	; 228
   174a6:	95 e8       	ldi	r25, 0x85	; 133
   174a8:	9f 93       	push	r25
   174aa:	8f 93       	push	r24
   174ac:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   174b0:	0f 90       	pop	r0
   174b2:	0f 90       	pop	r0
   174b4:	0f 90       	pop	r0
   174b6:	0f 90       	pop	r0
   174b8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            extrudemultiply = code_value_short();
            calculate_extruder_multipliers();
        }
        else
        {
            printf_P(PSTR("%i%%\n"), extrudemultiply);
   174bc:	80 91 bd 02 	lds	r24, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
   174c0:	8f 93       	push	r24
   174c2:	80 91 bc 02 	lds	r24, 0x02BC	; 0x8002bc <extrudemultiply>
   174c6:	8f 93       	push	r24
   174c8:	8e ed       	ldi	r24, 0xDE	; 222
   174ca:	95 e8       	ldi	r25, 0x85	; 133
   174cc:	9f 93       	push	r25
   174ce:	8f 93       	push	r24
   174d0:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   174d4:	0f 90       	pop	r0
   174d6:	0f 90       	pop	r0
   174d8:	0f 90       	pop	r0
   174da:	0f 90       	pop	r0
   174dc:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `P` - pin number
    - `S` - pin state
    */
	case 226:
	{
      if(code_seen('P')){
   174e0:	80 e5       	ldi	r24, 0x50	; 80
   174e2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   174e6:	88 23       	and	r24, r24
   174e8:	11 f4       	brne	.+4      	; 0x174ee <process_commands() [clone .part.46]+0x4ada>
   174ea:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        int pin_number = code_value_short(); // pin number
   174ee:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   174f2:	7c 01       	movw	r14, r24
        int pin_state = -1; // required pin state - default is inverted

        if(code_seen('S')) pin_state = code_value_short(); // required pin state
   174f4:	83 e5       	ldi	r24, 0x53	; 83
   174f6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    */
	case 226:
	{
      if(code_seen('P')){
        int pin_number = code_value_short(); // pin number
        int pin_state = -1; // required pin state - default is inverted
   174fa:	0f ef       	ldi	r16, 0xFF	; 255
   174fc:	1f ef       	ldi	r17, 0xFF	; 255

        if(code_seen('S')) pin_state = code_value_short(); // required pin state
   174fe:	88 23       	and	r24, r24
   17500:	19 f0       	breq	.+6      	; 0x17508 <process_commands() [clone .part.46]+0x4af4>
   17502:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   17506:	8c 01       	movw	r16, r24

        if(pin_state >= -1 && pin_state <= 1){
   17508:	c8 01       	movw	r24, r16
   1750a:	01 96       	adiw	r24, 0x01	; 1
   1750c:	03 97       	sbiw	r24, 0x03	; 3
   1750e:	10 f0       	brcs	.+4      	; 0x17514 <process_commands() [clone .part.46]+0x4b00>
   17510:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   17514:	e2 ed       	ldi	r30, 0xD2	; 210
   17516:	f6 e8       	ldi	r31, 0x86	; 134

          for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(sensitive_pins[0])); i++)
          {
            if (((int8_t)pgm_read_byte(&sensitive_pins[i]) == pin_number))
   17518:	84 91       	lpm	r24, Z
   1751a:	08 2e       	mov	r0, r24
   1751c:	00 0c       	add	r0, r0
   1751e:	99 0b       	sbc	r25, r25
   17520:	e8 16       	cp	r14, r24
   17522:	f9 06       	cpc	r15, r25
   17524:	11 f4       	brne	.+4      	; 0x1752a <process_commands() [clone .part.46]+0x4b16>
   17526:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   1752a:	31 96       	adiw	r30, 0x01	; 1

        if(code_seen('S')) pin_state = code_value_short(); // required pin state

        if(pin_state >= -1 && pin_state <= 1){

          for(int8_t i = 0; i < (int8_t)(sizeof(sensitive_pins)/sizeof(sensitive_pins[0])); i++)
   1752c:	36 e8       	ldi	r19, 0x86	; 134
   1752e:	ee 3e       	cpi	r30, 0xEE	; 238
   17530:	f3 07       	cpc	r31, r19
   17532:	91 f7       	brne	.-28     	; 0x17518 <process_commands() [clone .part.46]+0x4b04>
              pin_number = -1;
              break;
            }
          }

          if (pin_number > -1)
   17534:	f7 fe       	sbrs	r15, 7
   17536:	02 c0       	rjmp	.+4      	; 0x1753c <process_commands() [clone .part.46]+0x4b28>
   17538:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
          {
            int target = LOW;

            st_synchronize();
   1753c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

            pinMode(pin_number, INPUT);
   17540:	de 2c       	mov	r13, r14
   17542:	60 e0       	ldi	r22, 0x00	; 0
   17544:	8e 2d       	mov	r24, r14
   17546:	0e 94 ca e9 	call	0x1d394	; 0x1d394 <pinMode>

            switch(pin_state){
   1754a:	0f 3f       	cpi	r16, 0xFF	; 255
   1754c:	10 07       	cpc	r17, r16
   1754e:	b1 f0       	breq	.+44     	; 0x1757c <process_commands() [clone .part.46]+0x4b68>
   17550:	01 30       	cpi	r16, 0x01	; 1
   17552:	11 05       	cpc	r17, r1
   17554:	11 f0       	breq	.+4      	; 0x1755a <process_commands() [clone .part.46]+0x4b46>
            }
          }

          if (pin_number > -1)
          {
            int target = LOW;
   17556:	10 e0       	ldi	r17, 0x00	; 0
   17558:	00 e0       	ldi	r16, 0x00	; 0
            case -1:
              target = !digitalRead(pin_number);
              break;
            }

            while(digitalRead(pin_number) != target){
   1755a:	8d 2d       	mov	r24, r13
   1755c:	0e 94 73 e9 	call	0x1d2e6	; 0x1d2e6 <digitalRead>
   17560:	80 17       	cp	r24, r16
   17562:	91 07       	cpc	r25, r17
   17564:	11 f4       	brne	.+4      	; 0x1756a <process_commands() [clone .part.46]+0x4b56>
   17566:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
              manage_heater();
   1756a:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
              manage_inactivity();
   1756e:	80 e0       	ldi	r24, 0x00	; 0
   17570:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
              lcd_update(0);
   17574:	80 e0       	ldi	r24, 0x00	; 0
   17576:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   1757a:	ef cf       	rjmp	.-34     	; 0x1755a <process_commands() [clone .part.46]+0x4b46>
            case 0:
              target = LOW;
              break;

            case -1:
              target = !digitalRead(pin_number);
   1757c:	8e 2d       	mov	r24, r14
   1757e:	0e 94 73 e9 	call	0x1d2e6	; 0x1d2e6 <digitalRead>
   17582:	31 e0       	ldi	r19, 0x01	; 1
   17584:	20 e0       	ldi	r18, 0x00	; 0
   17586:	89 2b       	or	r24, r25
   17588:	09 f0       	breq	.+2      	; 0x1758c <process_commands() [clone .part.46]+0x4b78>
   1758a:	30 e0       	ldi	r19, 0x00	; 0
   1758c:	03 2f       	mov	r16, r19
   1758e:	12 2f       	mov	r17, r18
   17590:	e4 cf       	rjmp	.-56     	; 0x1755a <process_commands() [clone .part.46]+0x4b46>
    - `S` - frequency in Hz. Not all firmware versions support this parameter
    - `P` - duration in milliseconds max 3500ms
    */
    case 300: // M300
    {
      uint16_t beepP = code_seen('P') ? min(code_value(), 3500) : 1000;
   17592:	80 e5       	ldi	r24, 0x50	; 80
   17594:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17598:	08 ee       	ldi	r16, 0xE8	; 232
   1759a:	13 e0       	ldi	r17, 0x03	; 3
   1759c:	88 23       	and	r24, r24
   1759e:	89 f0       	breq	.+34     	; 0x175c2 <process_commands() [clone .part.46]+0x4bae>
   175a0:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   175a4:	20 e0       	ldi	r18, 0x00	; 0
   175a6:	30 ec       	ldi	r19, 0xC0	; 192
   175a8:	4a e5       	ldi	r20, 0x5A	; 90
   175aa:	55 e4       	ldi	r21, 0x45	; 69
   175ac:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   175b0:	0c ea       	ldi	r16, 0xAC	; 172
   175b2:	1d e0       	ldi	r17, 0x0D	; 13
   175b4:	87 ff       	sbrs	r24, 7
   175b6:	05 c0       	rjmp	.+10     	; 0x175c2 <process_commands() [clone .part.46]+0x4bae>
   175b8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   175bc:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   175c0:	8b 01       	movw	r16, r22
      uint16_t beepS;
      if (!code_seen('S'))
   175c2:	83 e5       	ldi	r24, 0x53	; 83
   175c4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   175c8:	88 23       	and	r24, r24
   175ca:	71 f0       	breq	.+28     	; 0x175e8 <process_commands() [clone .part.46]+0x4bd4>
          beepS = 0;
      else {
          beepS = code_value();
   175cc:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   175d0:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
          if (!beepS) {
   175d4:	61 15       	cp	r22, r1
   175d6:	71 05       	cpc	r23, r1
   175d8:	49 f4       	brne	.+18     	; 0x175ec <process_commands() [clone .part.46]+0x4bd8>
              // handle S0 as a pause
              _delay(beepP);
   175da:	b8 01       	movw	r22, r16
   175dc:	90 e0       	ldi	r25, 0x00	; 0
   175de:	80 e0       	ldi	r24, 0x00	; 0
   175e0:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
   175e4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    case 300: // M300
    {
      uint16_t beepP = code_seen('P') ? min(code_value(), 3500) : 1000;
      uint16_t beepS;
      if (!code_seen('S'))
          beepS = 0;
   175e8:	70 e0       	ldi	r23, 0x00	; 0
   175ea:	60 e0       	ldi	r22, 0x00	; 0
              // handle S0 as a pause
              _delay(beepP);
              break;
          }
      }
      Sound_MakeCustom(beepP, beepS, false);
   175ec:	40 e0       	ldi	r20, 0x00	; 0
   175ee:	c8 01       	movw	r24, r16
   175f0:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
   175f4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `I` - integral (Ki)
    - `D` - derivative (Kd)
    */
    case 304:
      {
        if(code_seen('P')) cs.bedKp = code_value();
   175f8:	80 e5       	ldi	r24, 0x50	; 80
   175fa:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   175fe:	88 23       	and	r24, r24
   17600:	51 f0       	breq	.+20     	; 0x17616 <process_commands() [clone .part.46]+0x4c02>
   17602:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17606:	60 93 32 0e 	sts	0x0E32, r22	; 0x800e32 <cs+0x74>
   1760a:	70 93 33 0e 	sts	0x0E33, r23	; 0x800e33 <cs+0x75>
   1760e:	80 93 34 0e 	sts	0x0E34, r24	; 0x800e34 <cs+0x76>
   17612:	90 93 35 0e 	sts	0x0E35, r25	; 0x800e35 <cs+0x77>
        if(code_seen('I')) cs.bedKi = scalePID_i(code_value());
   17616:	89 e4       	ldi	r24, 0x49	; 73
   17618:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1761c:	88 23       	and	r24, r24
   1761e:	81 f0       	breq	.+32     	; 0x17640 <process_commands() [clone .part.46]+0x4c2c>
   17620:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   17624:	2c ea       	ldi	r18, 0xAC	; 172
   17626:	35 ec       	ldi	r19, 0xC5	; 197
   17628:	47 e2       	ldi	r20, 0x27	; 39
   1762a:	5e e3       	ldi	r21, 0x3E	; 62
   1762c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   17630:	60 93 36 0e 	sts	0x0E36, r22	; 0x800e36 <cs+0x78>
   17634:	70 93 37 0e 	sts	0x0E37, r23	; 0x800e37 <cs+0x79>
   17638:	80 93 38 0e 	sts	0x0E38, r24	; 0x800e38 <cs+0x7a>
   1763c:	90 93 39 0e 	sts	0x0E39, r25	; 0x800e39 <cs+0x7b>
        if(code_seen('D')) cs.bedKd = scalePID_d(code_value());
   17640:	84 e4       	ldi	r24, 0x44	; 68
   17642:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17646:	88 23       	and	r24, r24
   17648:	81 f0       	breq	.+32     	; 0x1766a <process_commands() [clone .part.46]+0x4c56>
   1764a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
}

float unscalePID_i(float i)
{
	return i/PID_dT;
   1764e:	2c ea       	ldi	r18, 0xAC	; 172
   17650:	35 ec       	ldi	r19, 0xC5	; 197
   17652:	47 e2       	ldi	r20, 0x27	; 39
   17654:	5e e3       	ldi	r21, 0x3E	; 62
   17656:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1765a:	60 93 3a 0e 	sts	0x0E3A, r22	; 0x800e3a <cs+0x7c>
   1765e:	70 93 3b 0e 	sts	0x0E3B, r23	; 0x800e3b <cs+0x7d>
   17662:	80 93 3c 0e 	sts	0x0E3C, r24	; 0x800e3c <cs+0x7e>
   17666:	90 93 3d 0e 	sts	0x0E3D, r25	; 0x800e3d <cs+0x7f>

        updatePID();
   1766a:	0f 94 df 3b 	call	0x277be	; 0x277be <updatePID()>
       	SERIAL_PROTOCOLRPGM(MSG_OK);
   1766e:	87 e1       	ldi	r24, 0x17	; 23
   17670:	9d e6       	ldi	r25, 0x6D	; 109
   17672:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_PROTOCOLPGM(" p:");
   17676:	8e ec       	ldi	r24, 0xCE	; 206
   17678:	95 e8       	ldi	r25, 0x85	; 133
   1767a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   1767e:	60 91 32 0e 	lds	r22, 0x0E32	; 0x800e32 <cs+0x74>
   17682:	70 91 33 0e 	lds	r23, 0x0E33	; 0x800e33 <cs+0x75>
   17686:	80 91 34 0e 	lds	r24, 0x0E34	; 0x800e34 <cs+0x76>
   1768a:	90 91 35 0e 	lds	r25, 0x0E35	; 0x800e35 <cs+0x77>
   1768e:	42 e0       	ldi	r20, 0x02	; 2
   17690:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
        SERIAL_PROTOCOL(cs.bedKp);
        SERIAL_PROTOCOLPGM(" i:");
   17694:	8a ec       	ldi	r24, 0xCA	; 202
   17696:	95 e8       	ldi	r25, 0x85	; 133
   17698:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   1769c:	2c ea       	ldi	r18, 0xAC	; 172
   1769e:	35 ec       	ldi	r19, 0xC5	; 197
   176a0:	47 e2       	ldi	r20, 0x27	; 39
   176a2:	5e e3       	ldi	r21, 0x3E	; 62
   176a4:	60 91 36 0e 	lds	r22, 0x0E36	; 0x800e36 <cs+0x78>
   176a8:	70 91 37 0e 	lds	r23, 0x0E37	; 0x800e37 <cs+0x79>
   176ac:	80 91 38 0e 	lds	r24, 0x0E38	; 0x800e38 <cs+0x7a>
   176b0:	90 91 39 0e 	lds	r25, 0x0E39	; 0x800e39 <cs+0x7b>
   176b4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   176b8:	42 e0       	ldi	r20, 0x02	; 2
   176ba:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
        SERIAL_PROTOCOL(unscalePID_i(cs.bedKi));
        SERIAL_PROTOCOLPGM(" d:");
   176be:	86 ec       	ldi	r24, 0xC6	; 198
   176c0:	95 e8       	ldi	r25, 0x85	; 133
   176c2:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
#ifdef PIDTEMP
// Apply the scale factors to the PID values

float scalePID_i(float i)
{
	return i*PID_dT;
   176c6:	2c ea       	ldi	r18, 0xAC	; 172
   176c8:	35 ec       	ldi	r19, 0xC5	; 197
   176ca:	47 e2       	ldi	r20, 0x27	; 39
   176cc:	5e e3       	ldi	r21, 0x3E	; 62
   176ce:	60 91 3a 0e 	lds	r22, 0x0E3A	; 0x800e3a <cs+0x7c>
   176d2:	70 91 3b 0e 	lds	r23, 0x0E3B	; 0x800e3b <cs+0x7d>
   176d6:	80 91 3c 0e 	lds	r24, 0x0E3C	; 0x800e3c <cs+0x7e>
   176da:	90 91 3d 0e 	lds	r25, 0x0E3D	; 0x800e3d <cs+0x7f>
   176de:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
        SERIAL_PROTOCOLLN(unscalePID_d(cs.bedKd));
   176e2:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   176e6:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `T` - Brightness timeout  (15 - 900), default 15 seconds
    */
    #ifdef LCD_BL_PIN
     case 256:
    {
      if (backlightSupport) {
   176ea:	80 91 02 04 	lds	r24, 0x0402	; 0x800402 <backlightSupport>
   176ee:	88 23       	and	r24, r24
   176f0:	11 f4       	brne	.+4      	; 0x176f6 <process_commands() [clone .part.46]+0x4ce2>
   176f2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        if (code_seen('B') ) backlightLevel_HIGH = code_value_uint8();
   176f6:	82 e4       	ldi	r24, 0x42	; 66
   176f8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   176fc:	88 23       	and	r24, r24
   176fe:	21 f0       	breq	.+8      	; 0x17708 <process_commands() [clone .part.46]+0x4cf4>
   17700:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   17704:	80 93 01 04 	sts	0x0401, r24	; 0x800401 <backlightLevel_HIGH>
        if (code_seen('D')) backlightLevel_LOW = code_value_uint8();
   17708:	84 e4       	ldi	r24, 0x44	; 68
   1770a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1770e:	88 23       	and	r24, r24
   17710:	21 f0       	breq	.+8      	; 0x1771a <process_commands() [clone .part.46]+0x4d06>
   17712:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   17716:	80 93 00 04 	sts	0x0400, r24	; 0x800400 <backlightLevel_LOW>
        if (code_seen('S')) {
   1771a:	83 e5       	ldi	r24, 0x53	; 83
   1771c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17720:	88 23       	and	r24, r24
   17722:	31 f0       	breq	.+12     	; 0x17730 <process_commands() [clone .part.46]+0x4d1c>
          uint8_t mode = code_value_uint8();
   17724:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
          if (mode <= BACKLIGHT_MODE_AUTO) {
   17728:	83 30       	cpi	r24, 0x03	; 3
   1772a:	10 f4       	brcc	.+4      	; 0x17730 <process_commands() [clone .part.46]+0x4d1c>
            backlightMode = static_cast<Backlight_Mode>(mode);
   1772c:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
         }
        }
        if (code_seen('T')) backlightTimer_period = constrain(code_value_short(), LCD_BACKLIGHT_TIMEOUT, LCD_BACKLIGHT_TIMEOUT*60);
   17730:	84 e5       	ldi	r24, 0x54	; 84
   17732:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   17736:	88 23       	and	r24, r24
   17738:	79 f0       	breq	.+30     	; 0x17758 <process_commands() [clone .part.46]+0x4d44>
   1773a:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   1773e:	0f 97       	sbiw	r24, 0x0f	; 15
   17740:	64 f1       	brlt	.+88     	; 0x1779a <process_commands() [clone .part.46]+0x4d86>
   17742:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   17746:	85 38       	cpi	r24, 0x85	; 133
   17748:	93 40       	sbci	r25, 0x03	; 3
   1774a:	54 f5       	brge	.+84     	; 0x177a0 <process_commands() [clone .part.46]+0x4d8c>
   1774c:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   17750:	90 93 4e 02 	sts	0x024E, r25	; 0x80024e <backlightTimer_period+0x1>
   17754:	80 93 4d 02 	sts	0x024D, r24	; 0x80024d <backlightTimer_period>
        printf_P(PSTR("M256 B%d D%d S%d T%u\n"), backlightLevel_HIGH, backlightLevel_LOW, backlightMode, backlightTimer_period);
   17758:	80 91 4e 02 	lds	r24, 0x024E	; 0x80024e <backlightTimer_period+0x1>
   1775c:	8f 93       	push	r24
   1775e:	80 91 4d 02 	lds	r24, 0x024D	; 0x80024d <backlightTimer_period>
   17762:	8f 93       	push	r24
   17764:	80 91 4f 02 	lds	r24, 0x024F	; 0x80024f <backlightMode>
   17768:	1f 92       	push	r1
   1776a:	8f 93       	push	r24
   1776c:	80 91 00 04 	lds	r24, 0x0400	; 0x800400 <backlightLevel_LOW>
   17770:	1f 92       	push	r1
   17772:	8f 93       	push	r24
   17774:	80 91 01 04 	lds	r24, 0x0401	; 0x800401 <backlightLevel_HIGH>
   17778:	1f 92       	push	r1
   1777a:	8f 93       	push	r24
   1777c:	80 eb       	ldi	r24, 0xB0	; 176
   1777e:	95 e8       	ldi	r25, 0x85	; 133
   17780:	9f 93       	push	r25
   17782:	8f 93       	push	r24
   17784:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        backlight_save();
   17788:	0e 94 be 89 	call	0x1137c	; 0x1137c <backlight_save()>
   1778c:	0f b6       	in	r0, 0x3f	; 63
   1778e:	f8 94       	cli
   17790:	de bf       	out	0x3e, r29	; 62
   17792:	0f be       	out	0x3f, r0	; 63
   17794:	cd bf       	out	0x3d, r28	; 61
   17796:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
          uint8_t mode = code_value_uint8();
          if (mode <= BACKLIGHT_MODE_AUTO) {
            backlightMode = static_cast<Backlight_Mode>(mode);
         }
        }
        if (code_seen('T')) backlightTimer_period = constrain(code_value_short(), LCD_BACKLIGHT_TIMEOUT, LCD_BACKLIGHT_TIMEOUT*60);
   1779a:	8f e0       	ldi	r24, 0x0F	; 15
   1779c:	90 e0       	ldi	r25, 0x00	; 0
   1779e:	d8 cf       	rjmp	.-80     	; 0x17750 <process_commands() [clone .part.46]+0x4d3c>
   177a0:	84 e8       	ldi	r24, 0x84	; 132
   177a2:	93 e0       	ldi	r25, 0x03	; 3
   177a4:	d5 cf       	rjmp	.-86     	; 0x17750 <process_commands() [clone .part.46]+0x4d3c>
    - `S` - Cold extrude minimum temperature
    */
    case 302:
    {
	  int temp = 0;
	  if (code_seen('S')) temp=code_value_short();
   177a6:	83 e5       	ldi	r24, 0x53	; 83
   177a8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   177ac:	88 23       	and	r24, r24
   177ae:	41 f0       	breq	.+16     	; 0x177c0 <process_commands() [clone .part.46]+0x4dac>
   177b0:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
}

#ifdef PREVENT_DANGEROUS_EXTRUDE
void set_extrude_min_temp(int temp)
{
  extrude_min_temp = temp;
   177b4:	90 93 6c 02 	sts	0x026C, r25	; 0x80026c <extrude_min_temp+0x1>
   177b8:	80 93 6b 02 	sts	0x026B, r24	; 0x80026b <extrude_min_temp>
   177bc:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    #### Parameters
    - `S` - Cold extrude minimum temperature
    */
    case 302:
    {
	  int temp = 0;
   177c0:	90 e0       	ldi	r25, 0x00	; 0
   177c2:	80 e0       	ldi	r24, 0x00	; 0
   177c4:	f7 cf       	rjmp	.-18     	; 0x177b4 <process_commands() [clone .part.46]+0x4da0>
    case 303:
    {
      float temp = 150.0;
      int e = 0;
      int c = 5;
      if (code_seen('E')) e = code_value_short();
   177c6:	85 e4       	ldi	r24, 0x45	; 69
   177c8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
      - `C` - Cycles, default `5`
    */
    case 303:
    {
      float temp = 150.0;
      int e = 0;
   177cc:	10 e0       	ldi	r17, 0x00	; 0
   177ce:	00 e0       	ldi	r16, 0x00	; 0
      int c = 5;
      if (code_seen('E')) e = code_value_short();
   177d0:	88 23       	and	r24, r24
   177d2:	59 f0       	breq	.+22     	; 0x177ea <process_commands() [clone .part.46]+0x4dd6>
   177d4:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   177d8:	8c 01       	movw	r16, r24
        if (e < 0)
          temp = 70;
   177da:	c1 2c       	mov	r12, r1
   177dc:	d1 2c       	mov	r13, r1
   177de:	ac e8       	ldi	r26, 0x8C	; 140
   177e0:	ea 2e       	mov	r14, r26
   177e2:	a2 e4       	ldi	r26, 0x42	; 66
   177e4:	fa 2e       	mov	r15, r26
    {
      float temp = 150.0;
      int e = 0;
      int c = 5;
      if (code_seen('E')) e = code_value_short();
        if (e < 0)
   177e6:	97 fd       	sbrc	r25, 7
   177e8:	06 c0       	rjmp	.+12     	; 0x177f6 <process_commands() [clone .part.46]+0x4de2>
      - `S` - Target temperature, default `210°C` for hotend, 70 for bed
      - `C` - Cycles, default `5`
    */
    case 303:
    {
      float temp = 150.0;
   177ea:	c1 2c       	mov	r12, r1
   177ec:	d1 2c       	mov	r13, r1
   177ee:	b6 e1       	ldi	r27, 0x16	; 22
   177f0:	eb 2e       	mov	r14, r27
   177f2:	b3 e4       	ldi	r27, 0x43	; 67
   177f4:	fb 2e       	mov	r15, r27
      int e = 0;
      int c = 5;
      if (code_seen('E')) e = code_value_short();
        if (e < 0)
          temp = 70;
      if (code_seen('S')) temp = code_value();
   177f6:	83 e5       	ldi	r24, 0x53	; 83
   177f8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   177fc:	88 23       	and	r24, r24
   177fe:	21 f0       	breq	.+8      	; 0x17808 <process_commands() [clone .part.46]+0x4df4>
   17800:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   17804:	6b 01       	movw	r12, r22
   17806:	7c 01       	movw	r14, r24
      if (code_seen('C')) c = code_value_short();
   17808:	83 e4       	ldi	r24, 0x43	; 67
   1780a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1780e:	88 23       	and	r24, r24
   17810:	51 f0       	breq	.+20     	; 0x17826 <process_commands() [clone .part.46]+0x4e12>
   17812:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
      PID_autotune(temp, e, c);
   17816:	9c 01       	movw	r18, r24
   17818:	a8 01       	movw	r20, r16
   1781a:	c7 01       	movw	r24, r14
   1781c:	b6 01       	movw	r22, r12
   1781e:	0f 94 0c 3c 	call	0x27818	; 0x27818 <PID_autotune(float, int, int)>
   17822:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    */
    case 303:
    {
      float temp = 150.0;
      int e = 0;
      int c = 5;
   17826:	85 e0       	ldi	r24, 0x05	; 5
   17828:	90 e0       	ldi	r25, 0x00	; 0
   1782a:	f5 cf       	rjmp	.-22     	; 0x17816 <process_commands() [clone .part.46]+0x4e02>
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
        int8_t I = -1, S = -1, B = -1, F = -1;
   1782c:	9f ef       	ldi	r25, 0xFF	; 255
   1782e:	ab 96       	adiw	r28, 0x2b	; 43
   17830:	9f af       	std	Y+63, r25	; 0x3f
   17832:	ab 97       	sbiw	r28, 0x2b	; 43
   17834:	0c 94 4c a9 	jmp	0x15298	; 0x15298 <process_commands() [clone .part.46]+0x2884>
    - `F` - force model self-test state (0=off 1=on) during autotune using current values
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
   17838:	20 e0       	ldi	r18, 0x00	; 0
   1783a:	30 e0       	ldi	r19, 0x00	; 0
   1783c:	40 ec       	ldi	r20, 0xC0	; 192
   1783e:	5f e7       	ldi	r21, 0x7F	; 127
   17840:	e2 96       	adiw	r28, 0x32	; 50
   17842:	2c af       	std	Y+60, r18	; 0x3c
   17844:	3d af       	std	Y+61, r19	; 0x3d
   17846:	4e af       	std	Y+62, r20	; 0x3e
   17848:	5f af       	std	Y+63, r21	; 0x3f
   1784a:	e2 97       	sbiw	r28, 0x32	; 50
   1784c:	0c 94 5b a9 	jmp	0x152b6	; 0x152b6 <process_commands() [clone .part.46]+0x28a2>
   17850:	80 e0       	ldi	r24, 0x00	; 0
   17852:	90 e0       	ldi	r25, 0x00	; 0
   17854:	a0 ec       	ldi	r26, 0xC0	; 192
   17856:	bf e7       	ldi	r27, 0x7F	; 127
   17858:	6e 96       	adiw	r28, 0x1e	; 30
   1785a:	8c af       	std	Y+60, r24	; 0x3c
   1785c:	9d af       	std	Y+61, r25	; 0x3d
   1785e:	ae af       	std	Y+62, r26	; 0x3e
   17860:	bf af       	std	Y+63, r27	; 0x3f
   17862:	6e 97       	sbiw	r28, 0x1e	; 30
   17864:	0c 94 79 a9 	jmp	0x152f2	; 0x152f2 <process_commands() [clone .part.46]+0x28de>
   17868:	20 e0       	ldi	r18, 0x00	; 0
   1786a:	30 e0       	ldi	r19, 0x00	; 0
   1786c:	40 ec       	ldi	r20, 0xC0	; 192
   1786e:	5f e7       	ldi	r21, 0x7F	; 127
   17870:	a2 96       	adiw	r28, 0x22	; 34
   17872:	2c af       	std	Y+60, r18	; 0x3c
   17874:	3d af       	std	Y+61, r19	; 0x3d
   17876:	4e af       	std	Y+62, r20	; 0x3e
   17878:	5f af       	std	Y+63, r21	; 0x3f
   1787a:	a2 97       	sbiw	r28, 0x22	; 34
   1787c:	0c 94 88 a9 	jmp	0x15310	; 0x15310 <process_commands() [clone .part.46]+0x28fc>
   17880:	80 e0       	ldi	r24, 0x00	; 0
   17882:	90 e0       	ldi	r25, 0x00	; 0
   17884:	a0 ec       	ldi	r26, 0xC0	; 192
   17886:	bf e7       	ldi	r27, 0x7F	; 127
   17888:	6a 96       	adiw	r28, 0x1a	; 26
   1788a:	8c af       	std	Y+60, r24	; 0x3c
   1788c:	9d af       	std	Y+61, r25	; 0x3d
   1788e:	ae af       	std	Y+62, r26	; 0x3e
   17890:	bf af       	std	Y+63, r27	; 0x3f
   17892:	6a 97       	sbiw	r28, 0x1a	; 26
   17894:	0c 94 97 a9 	jmp	0x1532e	; 0x1532e <process_commands() [clone .part.46]+0x291a>
   17898:	20 e0       	ldi	r18, 0x00	; 0
   1789a:	30 e0       	ldi	r19, 0x00	; 0
   1789c:	40 ec       	ldi	r20, 0xC0	; 192
   1789e:	5f e7       	ldi	r21, 0x7F	; 127
   178a0:	aa 96       	adiw	r28, 0x2a	; 42
   178a2:	2c af       	std	Y+60, r18	; 0x3c
   178a4:	3d af       	std	Y+61, r19	; 0x3d
   178a6:	4e af       	std	Y+62, r20	; 0x3e
   178a8:	5f af       	std	Y+63, r21	; 0x3f
   178aa:	aa 97       	sbiw	r28, 0x2a	; 42
   178ac:	0c 94 a6 a9 	jmp	0x1534c	; 0x1534c <process_commands() [clone .part.46]+0x2938>
        int8_t I = -1, S = -1, B = -1, F = -1;
   178b0:	3f ef       	ldi	r19, 0xFF	; 255
   178b2:	e3 96       	adiw	r28, 0x33	; 51
   178b4:	3f af       	std	Y+63, r19	; 0x3f
   178b6:	e3 97       	sbiw	r28, 0x33	; 51
   178b8:	0c 94 bc a9 	jmp	0x15378	; 0x15378 <process_commands() [clone .part.46]+0x2964>
   178bc:	4f ef       	ldi	r20, 0xFF	; 255
   178be:	e7 96       	adiw	r28, 0x37	; 55
   178c0:	4f af       	std	Y+63, r20	; 0x3f
   178c2:	e7 97       	sbiw	r28, 0x37	; 55
   178c4:	0c 94 c8 a9 	jmp	0x15390	; 0x15390 <process_commands() [clone .part.46]+0x297c>
    - `F` - force model self-test state (0=off 1=on) during autotune using current values
    */
    case 310:
    {
        // parse all parameters
        float R = NAN, P = NAN, U = NAN, V = NAN, C = NAN, D = NAN, T = NAN, W = NAN, E = NAN;
   178c8:	80 e0       	ldi	r24, 0x00	; 0
   178ca:	90 e0       	ldi	r25, 0x00	; 0
   178cc:	a0 ec       	ldi	r26, 0xC0	; 192
   178ce:	bf e7       	ldi	r27, 0x7F	; 127
   178d0:	a6 96       	adiw	r28, 0x26	; 38
   178d2:	8c af       	std	Y+60, r24	; 0x3c
   178d4:	9d af       	std	Y+61, r25	; 0x3d
   178d6:	ae af       	std	Y+62, r26	; 0x3e
   178d8:	bf af       	std	Y+63, r27	; 0x3f
   178da:	a6 97       	sbiw	r28, 0x26	; 38
   178dc:	0c 94 d7 a9 	jmp	0x153ae	; 0x153ae <process_commands() [clone .part.46]+0x299a>
        int8_t I = -1, S = -1, B = -1, F = -1;
   178e0:	9f ef       	ldi	r25, 0xFF	; 255
   178e2:	eb 96       	adiw	r28, 0x3b	; 59
   178e4:	9f af       	std	Y+63, r25	; 0x3f
   178e6:	eb 97       	sbiw	r28, 0x3b	; 59
   178e8:	0c 94 0c aa 	jmp	0x15418	; 0x15418 <process_commands() [clone .part.46]+0x2a04>
        if(code_seen('F')) F = code_value_short();

        // report values if nothing has been requested
        if(isnan(R) && isnan(P) && isnan(U) && isnan(V) && isnan(C) && isnan(D) && isnan(T) && isnan(W) && isnan(E)
        && I < 0 && S < 0 && B < 0 && A < 0 && L < 0) {
            thermal_model_report_settings();
   178ec:	0f 94 cd 2e 	call	0x25d9a	; 0x25d9a <thermal_model_report_settings()>
   178f0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            break;
        }

        // update all parameters
        if(B >= 0)
   178f4:	e7 96       	adiw	r28, 0x37	; 55
   178f6:	ff ad       	ldd	r31, Y+63	; 0x3f
   178f8:	e7 97       	sbiw	r28, 0x37	; 55
   178fa:	f7 fd       	sbrc	r31, 7
   178fc:	09 c0       	rjmp	.+18     	; 0x17910 <process_commands() [clone .part.46]+0x4efc>
            thermal_model_set_warn_beep(B);
   178fe:	81 e0       	ldi	r24, 0x01	; 1
   17900:	e7 96       	adiw	r28, 0x37	; 55
   17902:	2f ad       	ldd	r18, Y+63	; 0x3f
   17904:	e7 97       	sbiw	r28, 0x37	; 55
   17906:	21 11       	cpse	r18, r1
   17908:	01 c0       	rjmp	.+2      	; 0x1790c <process_commands() [clone .part.46]+0x4ef8>
   1790a:	80 e0       	ldi	r24, 0x00	; 0
        SERIAL_ECHOLNPGM("TM: invalid parameters, cannot enable");
}

void thermal_model_set_warn_beep(bool enabled)
{
    thermal_model::warn_beep = enabled;
   1790c:	80 93 3d 02 	sts	0x023D, r24	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
        if(!isnan(P) || !isnan(U) || !isnan(V) || !isnan(C) || !isnan(D) || (L >= 0) || !isnan(T) || !isnan(W) || !isnan(E))
   17910:	a7 01       	movw	r20, r14
   17912:	96 01       	movw	r18, r12
   17914:	c7 01       	movw	r24, r14
   17916:	b6 01       	movw	r22, r12
   17918:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1791c:	88 23       	and	r24, r24
   1791e:	11 f4       	brne	.+4      	; 0x17924 <process_commands() [clone .part.46]+0x4f10>
   17920:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   17924:	6e 96       	adiw	r28, 0x1e	; 30
   17926:	2c ad       	ldd	r18, Y+60	; 0x3c
   17928:	3d ad       	ldd	r19, Y+61	; 0x3d
   1792a:	4e ad       	ldd	r20, Y+62	; 0x3e
   1792c:	5f ad       	ldd	r21, Y+63	; 0x3f
   1792e:	6e 97       	sbiw	r28, 0x1e	; 30
   17930:	ca 01       	movw	r24, r20
   17932:	b9 01       	movw	r22, r18
   17934:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17938:	88 23       	and	r24, r24
   1793a:	11 f4       	brne	.+4      	; 0x17940 <process_commands() [clone .part.46]+0x4f2c>
   1793c:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   17940:	a2 96       	adiw	r28, 0x22	; 34
   17942:	2c ad       	ldd	r18, Y+60	; 0x3c
   17944:	3d ad       	ldd	r19, Y+61	; 0x3d
   17946:	4e ad       	ldd	r20, Y+62	; 0x3e
   17948:	5f ad       	ldd	r21, Y+63	; 0x3f
   1794a:	a2 97       	sbiw	r28, 0x22	; 34
   1794c:	ca 01       	movw	r24, r20
   1794e:	b9 01       	movw	r22, r18
   17950:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17954:	88 23       	and	r24, r24
   17956:	11 f4       	brne	.+4      	; 0x1795c <process_commands() [clone .part.46]+0x4f48>
   17958:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   1795c:	6a 96       	adiw	r28, 0x1a	; 26
   1795e:	2c ad       	ldd	r18, Y+60	; 0x3c
   17960:	3d ad       	ldd	r19, Y+61	; 0x3d
   17962:	4e ad       	ldd	r20, Y+62	; 0x3e
   17964:	5f ad       	ldd	r21, Y+63	; 0x3f
   17966:	6a 97       	sbiw	r28, 0x1a	; 26
   17968:	ca 01       	movw	r24, r20
   1796a:	b9 01       	movw	r22, r18
   1796c:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17970:	88 23       	and	r24, r24
   17972:	11 f4       	brne	.+4      	; 0x17978 <process_commands() [clone .part.46]+0x4f64>
   17974:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   17978:	aa 96       	adiw	r28, 0x2a	; 42
   1797a:	2c ad       	ldd	r18, Y+60	; 0x3c
   1797c:	3d ad       	ldd	r19, Y+61	; 0x3d
   1797e:	4e ad       	ldd	r20, Y+62	; 0x3e
   17980:	5f ad       	ldd	r21, Y+63	; 0x3f
   17982:	aa 97       	sbiw	r28, 0x2a	; 42
   17984:	ca 01       	movw	r24, r20
   17986:	b9 01       	movw	r22, r18
   17988:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1798c:	88 23       	and	r24, r24
   1798e:	11 f4       	brne	.+4      	; 0x17994 <process_commands() [clone .part.46]+0x4f80>
   17990:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   17994:	17 fd       	sbrc	r17, 7
   17996:	02 c0       	rjmp	.+4      	; 0x1799c <process_commands() [clone .part.46]+0x4f88>
   17998:	0c 94 65 cd 	jmp	0x19aca	; 0x19aca <process_commands() [clone .part.46]+0x70b6>
   1799c:	a6 96       	adiw	r28, 0x26	; 38
   1799e:	2c ad       	ldd	r18, Y+60	; 0x3c
   179a0:	3d ad       	ldd	r19, Y+61	; 0x3d
   179a2:	4e ad       	ldd	r20, Y+62	; 0x3e
   179a4:	5f ad       	ldd	r21, Y+63	; 0x3f
   179a6:	a6 97       	sbiw	r28, 0x26	; 38
   179a8:	ca 01       	movw	r24, r20
   179aa:	b9 01       	movw	r22, r18
   179ac:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   179b0:	88 23       	and	r24, r24
   179b2:	11 f4       	brne	.+4      	; 0x179b8 <process_commands() [clone .part.46]+0x4fa4>
   179b4:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   179b8:	a5 01       	movw	r20, r10
   179ba:	94 01       	movw	r18, r8
   179bc:	c5 01       	movw	r24, r10
   179be:	b4 01       	movw	r22, r8
   179c0:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   179c4:	88 23       	and	r24, r24
   179c6:	11 f4       	brne	.+4      	; 0x179cc <process_commands() [clone .part.46]+0x4fb8>
   179c8:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
   179cc:	a3 01       	movw	r20, r6
   179ce:	92 01       	movw	r18, r4
   179d0:	c3 01       	movw	r24, r6
   179d2:	b2 01       	movw	r22, r4
   179d4:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   179d8:	88 23       	and	r24, r24
   179da:	11 f4       	brne	.+4      	; 0x179e0 <process_commands() [clone .part.46]+0x4fcc>
   179dc:	0c 94 9b aa 	jmp	0x15536	; 0x15536 <process_commands() [clone .part.46]+0x2b22>
            thermal_model_set_params(P, U, V, C, D, L, T, W, E);
        if(I >= 0 && !isnan(R))
   179e0:	ab 96       	adiw	r28, 0x2b	; 43
   179e2:	9f ad       	ldd	r25, Y+63	; 0x3f
   179e4:	ab 97       	sbiw	r28, 0x2b	; 43
   179e6:	97 fd       	sbrc	r25, 7
   179e8:	3b c0       	rjmp	.+118    	; 0x17a60 <process_commands() [clone .part.46]+0x504c>
   179ea:	e2 96       	adiw	r28, 0x32	; 50
   179ec:	2c ad       	ldd	r18, Y+60	; 0x3c
   179ee:	3d ad       	ldd	r19, Y+61	; 0x3d
   179f0:	4e ad       	ldd	r20, Y+62	; 0x3e
   179f2:	5f ad       	ldd	r21, Y+63	; 0x3f
   179f4:	e2 97       	sbiw	r28, 0x32	; 50
   179f6:	ca 01       	movw	r24, r20
   179f8:	b9 01       	movw	r22, r18
   179fa:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   179fe:	81 11       	cpse	r24, r1
   17a00:	2f c0       	rjmp	.+94     	; 0x17a60 <process_commands() [clone .part.46]+0x504c>
    thermal_model::setup();
}

void thermal_model_set_resistance(uint8_t index, float R)
{
    if(index >= THERMAL_MODEL_R_SIZE || R <= 0)
   17a02:	ab 96       	adiw	r28, 0x2b	; 43
   17a04:	af ad       	ldd	r26, Y+63	; 0x3f
   17a06:	ab 97       	sbiw	r28, 0x2b	; 43
   17a08:	a0 31       	cpi	r26, 0x10	; 16
   17a0a:	54 f5       	brge	.+84     	; 0x17a60 <process_commands() [clone .part.46]+0x504c>
   17a0c:	20 e0       	ldi	r18, 0x00	; 0
   17a0e:	30 e0       	ldi	r19, 0x00	; 0
   17a10:	a9 01       	movw	r20, r18
   17a12:	e2 96       	adiw	r28, 0x32	; 50
   17a14:	6c ad       	ldd	r22, Y+60	; 0x3c
   17a16:	7d ad       	ldd	r23, Y+61	; 0x3d
   17a18:	8e ad       	ldd	r24, Y+62	; 0x3e
   17a1a:	9f ad       	ldd	r25, Y+63	; 0x3f
   17a1c:	e2 97       	sbiw	r28, 0x32	; 50
   17a1e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   17a22:	18 16       	cp	r1, r24
   17a24:	ec f4       	brge	.+58     	; 0x17a60 <process_commands() [clone .part.46]+0x504c>
        return;

    TempMgrGuard temp_mgr_guard;
   17a26:	ce 01       	movw	r24, r28
   17a28:	01 96       	adiw	r24, 0x01	; 1
   17a2a:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
    thermal_model::data.R[index] = R;
   17a2e:	ab 96       	adiw	r28, 0x2b	; 43
   17a30:	bf ad       	ldd	r27, Y+63	; 0x3f
   17a32:	ab 97       	sbiw	r28, 0x2b	; 43
   17a34:	24 e0       	ldi	r18, 0x04	; 4
   17a36:	b2 02       	muls	r27, r18
   17a38:	f0 01       	movw	r30, r0
   17a3a:	11 24       	eor	r1, r1
   17a3c:	e0 51       	subi	r30, 0x10	; 16
   17a3e:	fd 4e       	sbci	r31, 0xED	; 237
   17a40:	e2 96       	adiw	r28, 0x32	; 50
   17a42:	8c ad       	ldd	r24, Y+60	; 0x3c
   17a44:	9d ad       	ldd	r25, Y+61	; 0x3d
   17a46:	ae ad       	ldd	r26, Y+62	; 0x3e
   17a48:	bf ad       	ldd	r27, Y+63	; 0x3f
   17a4a:	e2 97       	sbiw	r28, 0x32	; 50
   17a4c:	80 83       	st	Z, r24
   17a4e:	91 83       	std	Z+1, r25	; 0x01
   17a50:	a2 83       	std	Z+2, r26	; 0x02
   17a52:	b3 83       	std	Z+3, r27	; 0x03
    thermal_model::setup();
   17a54:	0f 94 15 30 	call	0x2602a	; 0x2602a <thermal_model::setup() [clone .lto_priv.555]>
void thermal_model_set_resistance(uint8_t index, float R)
{
    if(index >= THERMAL_MODEL_R_SIZE || R <= 0)
        return;

    TempMgrGuard temp_mgr_guard;
   17a58:	ce 01       	movw	r24, r28
   17a5a:	01 96       	adiw	r24, 0x01	; 1
   17a5c:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
            thermal_model_set_resistance(I, R);

        // enable the model last, if requested
        if(S >= 0) thermal_model_set_enabled(S);
   17a60:	e3 96       	adiw	r28, 0x33	; 51
   17a62:	9f ad       	ldd	r25, Y+63	; 0x3f
   17a64:	e3 97       	sbiw	r28, 0x33	; 51
   17a66:	97 fd       	sbrc	r25, 7
   17a68:	06 c0       	rjmp	.+12     	; 0x17a76 <process_commands() [clone .part.46]+0x5062>
   17a6a:	81 e0       	ldi	r24, 0x01	; 1
   17a6c:	91 11       	cpse	r25, r1
   17a6e:	01 c0       	rjmp	.+2      	; 0x17a72 <process_commands() [clone .part.46]+0x505e>
   17a70:	80 e0       	ldi	r24, 0x00	; 0
   17a72:	0f 94 49 33 	call	0x26692	; 0x26692 <thermal_model_set_enabled(bool)>

        // run autotune
        if(A >= 0) thermal_model_autotune(A, F > 0);
   17a76:	37 fe       	sbrs	r3, 7
   17a78:	02 c0       	rjmp	.+4      	; 0x17a7e <process_commands() [clone .part.46]+0x506a>
   17a7a:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   17a7e:	11 e0       	ldi	r17, 0x01	; 1
   17a80:	eb 96       	adiw	r28, 0x3b	; 59
   17a82:	af ad       	ldd	r26, Y+63	; 0x3f
   17a84:	eb 97       	sbiw	r28, 0x3b	; 59
   17a86:	1a 16       	cp	r1, r26
   17a88:	0c f0       	brlt	.+2      	; 0x17a8c <process_commands() [clone .part.46]+0x5078>
   17a8a:	10 e0       	ldi	r17, 0x00	; 0
    float orig_C, orig_R[THERMAL_MODEL_R_SIZE];
    bool orig_enabled;
    static_assert(sizeof(orig_R) == sizeof(thermal_model::data.R));

    // fail-safe error state
    thermal_model_autotune_err = true;
   17a8c:	81 e0       	ldi	r24, 0x01	; 1
   17a8e:	80 93 3c 02 	sts	0x023C, r24	; 0x80023c <_ZL26thermal_model_autotune_err.lto_priv.538>
}

//return the nr of buffered moves
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
   17a92:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   17a96:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   17a9a:	89 1b       	sub	r24, r25
   17a9c:	8f 70       	andi	r24, 0x0F	; 15

    char tm_message[LCD_WIDTH+1];
    if(moves_planned() || (lcd_commands_type != LcdCommands::ThermalModel && printer_active())) {
   17a9e:	41 f4       	brne	.+16     	; 0x17ab0 <process_commands() [clone .part.46]+0x509c>
   17aa0:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   17aa4:	85 30       	cpi	r24, 0x05	; 5
   17aa6:	79 f1       	breq	.+94     	; 0x17b06 <process_commands() [clone .part.46]+0x50f2>
   17aa8:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   17aac:	88 23       	and	r24, r24
   17aae:	59 f1       	breq	.+86     	; 0x17b06 <process_commands() [clone .part.46]+0x50f2>
        sprintf_P(tm_message, PSTR("TM: Cal. NOT IDLE"));
   17ab0:	8c e9       	ldi	r24, 0x9C	; 156
   17ab2:	93 e8       	ldi	r25, 0x83	; 131
   17ab4:	9f 93       	push	r25
   17ab6:	8f 93       	push	r24
   17ab8:	e1 e0       	ldi	r30, 0x01	; 1
   17aba:	f0 e0       	ldi	r31, 0x00	; 0
   17abc:	ec 0f       	add	r30, r28
   17abe:	fd 1f       	adc	r31, r29
   17ac0:	ff 93       	push	r31
   17ac2:	ef 93       	push	r30
   17ac4:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
        lcd_setstatus_serial(tm_message);
   17ac8:	ce 01       	movw	r24, r28
   17aca:	01 96       	adiw	r24, 0x01	; 1
   17acc:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
        return;
   17ad0:	0f 90       	pop	r0
   17ad2:	0f 90       	pop	r0
   17ad4:	0f 90       	pop	r0
   17ad6:	0f 90       	pop	r0
   17ad8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

void thermal_model_set_params(float P, float U, float V, float C, float D, int16_t L, float Ta_corr, float warn, float err)
{
    TempMgrGuard temp_mgr_guard;

    if(!isnan(P) && P > 0) thermal_model::data.P = P;
   17adc:	20 e0       	ldi	r18, 0x00	; 0
   17ade:	30 e0       	ldi	r19, 0x00	; 0
   17ae0:	a9 01       	movw	r20, r18
   17ae2:	c7 01       	movw	r24, r14
   17ae4:	b6 01       	movw	r22, r12
   17ae6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   17aea:	18 16       	cp	r1, r24
   17aec:	14 f0       	brlt	.+4      	; 0x17af2 <process_commands() [clone .part.46]+0x50de>
   17aee:	0c 94 a9 aa 	jmp	0x15552	; 0x15552 <process_commands() [clone .part.46]+0x2b3e>
   17af2:	c0 92 da 12 	sts	0x12DA, r12	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   17af6:	d0 92 db 12 	sts	0x12DB, r13	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   17afa:	e0 92 dc 12 	sts	0x12DC, r14	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   17afe:	f0 92 dd 12 	sts	0x12DD, r15	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
   17b02:	0c 94 a9 aa 	jmp	0x15552	; 0x15552 <process_commands() [clone .part.46]+0x2b3e>
        lcd_setstatus_serial(tm_message);
        return;
    }

    // lockout the printer during calibration
    KEEPALIVE_STATE(IN_PROCESS);
   17b06:	83 e0       	ldi	r24, 0x03	; 3
   17b08:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    menu_set_block(MENU_BLOCK_THERMAL_MODEL_AUTOTUNE);
   17b0c:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   17b10:	82 60       	ori	r24, 0x02	; 2
   17b12:	80 93 d6 03 	sts	0x03D6, r24	; 0x8003d6 <menu_block_mask>
    lcd_return_to_status();
   17b16:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>

    // save the original model data and set the model checking state during self-calibration
    orig_C = thermal_model::data.C;
   17b1a:	20 91 e6 12 	lds	r18, 0x12E6	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   17b1e:	30 91 e7 12 	lds	r19, 0x12E7	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   17b22:	40 91 e8 12 	lds	r20, 0x12E8	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   17b26:	50 91 e9 12 	lds	r21, 0x12E9	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
   17b2a:	6e 96       	adiw	r28, 0x1e	; 30
   17b2c:	2c af       	std	Y+60, r18	; 0x3c
   17b2e:	3d af       	std	Y+61, r19	; 0x3d
   17b30:	4e af       	std	Y+62, r20	; 0x3e
   17b32:	5f af       	std	Y+63, r21	; 0x3f
   17b34:	6e 97       	sbiw	r28, 0x1e	; 30
    memcpy(orig_R, thermal_model::data.R, sizeof(thermal_model::data.R));
   17b36:	80 e4       	ldi	r24, 0x40	; 64
   17b38:	e0 ef       	ldi	r30, 0xF0	; 240
   17b3a:	f2 e1       	ldi	r31, 0x12	; 18
   17b3c:	de 01       	movw	r26, r28
   17b3e:	11 96       	adiw	r26, 0x01	; 1
   17b40:	01 90       	ld	r0, Z+
   17b42:	0d 92       	st	X+, r0
   17b44:	8a 95       	dec	r24
   17b46:	e1 f7       	brne	.-8      	; 0x17b40 <process_commands() [clone .part.46]+0x512c>
    orig_enabled = thermal_model::enabled;
   17b48:	30 91 1d 05 	lds	r19, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   17b4c:	67 96       	adiw	r28, 0x17	; 23
   17b4e:	3f af       	std	Y+63, r19	; 0x3f
   17b50:	67 97       	sbiw	r28, 0x17	; 23
    thermal_model_reset_enabled(selftest);
   17b52:	81 2f       	mov	r24, r17
   17b54:	0f 94 6b 33 	call	0x266d6	; 0x266d6 <thermal_model_reset_enabled(bool) [clone .lto_priv.420]>

    // autotune
    SERIAL_ECHOLNPGM("TM: calibration start");
   17b58:	86 e8       	ldi	r24, 0x86	; 134
   17b5a:	93 e8       	ldi	r25, 0x83	; 131
   17b5c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    thermal_model_autotune_err = thermal_model_cal::autotune(temp > 0 ? temp : THERMAL_MODEL_CAL_T_high);
   17b60:	21 14       	cp	r2, r1
   17b62:	31 04       	cpc	r3, r1
   17b64:	19 f4       	brne	.+6      	; 0x17b6c <process_commands() [clone .part.46]+0x5158>
   17b66:	56 ee       	ldi	r21, 0xE6	; 230
   17b68:	25 2e       	mov	r2, r21
   17b6a:	31 2c       	mov	r3, r1
    uint16_t samples;
    float e;
    char tm_message[LCD_WIDTH+1];

    // bootstrap C/R values without fan
    set_fan_speed(0);
   17b6c:	80 e0       	ldi	r24, 0x00	; 0
   17b6e:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
   17b72:	32 e0       	ldi	r19, 0x02	; 2
   17b74:	43 2e       	mov	r4, r19
   17b76:	51 2c       	mov	r5, r1

    for(uint8_t i = 0; i != 2; ++i) {
        const char* PROGMEM verb = (i == 0? PSTR("initial"): PSTR("refine"));
   17b78:	4a e6       	ldi	r20, 0x6A	; 106
   17b7a:	64 2e       	mov	r6, r20
   17b7c:	43 e8       	ldi	r20, 0x83	; 131
   17b7e:	74 2e       	mov	r7, r20
   17b80:	ae 01       	movw	r20, r28
   17b82:	4f 5b       	subi	r20, 0xBF	; 191
   17b84:	5f 4f       	sbci	r21, 0xFF	; 255
   17b86:	4a 01       	movw	r8, r20
        target_temperature[0] = 0;
        if(current_temperature[0] >= THERMAL_MODEL_CAL_T_low) {
            sprintf_P(tm_message, PSTR("TM: cool down <%dC"), THERMAL_MODEL_CAL_T_low);
   17b88:	12 e3       	ldi	r17, 0x32	; 50
    // bootstrap C/R values without fan
    set_fan_speed(0);

    for(uint8_t i = 0; i != 2; ++i) {
        const char* PROGMEM verb = (i == 0? PSTR("initial"): PSTR("refine"));
        target_temperature[0] = 0;
   17b8a:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   17b8e:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
        if(current_temperature[0] >= THERMAL_MODEL_CAL_T_low) {
   17b92:	20 e0       	ldi	r18, 0x00	; 0
   17b94:	30 e0       	ldi	r19, 0x00	; 0
   17b96:	48 e4       	ldi	r20, 0x48	; 72
   17b98:	52 e4       	ldi	r21, 0x42	; 66
   17b9a:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   17b9e:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   17ba2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   17ba6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   17baa:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   17bae:	87 fd       	sbrc	r24, 7
   17bb0:	58 c0       	rjmp	.+176    	; 0x17c62 <process_commands() [clone .part.46]+0x524e>
            sprintf_P(tm_message, PSTR("TM: cool down <%dC"), THERMAL_MODEL_CAL_T_low);
   17bb2:	1f 92       	push	r1
   17bb4:	1f 93       	push	r17
   17bb6:	80 e5       	ldi	r24, 0x50	; 80
   17bb8:	93 e8       	ldi	r25, 0x83	; 131
   17bba:	9f 93       	push	r25
   17bbc:	8f 93       	push	r24
   17bbe:	9f 92       	push	r9
   17bc0:	8f 92       	push	r8
   17bc2:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
            lcd_setstatus_serial(tm_message);
   17bc6:	c4 01       	movw	r24, r8
   17bc8:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
    }
}

static void cooldown(float temp)
{
    uint8_t old_speed = fanSpeed;
   17bcc:	00 91 e7 03 	lds	r16, 0x03E7	; 0x8003e7 <fanSpeed>
    set_fan_speed(255);
   17bd0:	8f ef       	ldi	r24, 0xFF	; 255
   17bd2:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
   17bd6:	0f 90       	pop	r0
   17bd8:	0f 90       	pop	r0
   17bda:	0f 90       	pop	r0
   17bdc:	0f 90       	pop	r0
   17bde:	0f 90       	pop	r0
   17be0:	0f 90       	pop	r0
    while(current_temperature[0] >= temp) {
   17be2:	c0 90 b0 0d 	lds	r12, 0x0DB0	; 0x800db0 <current_temperature>
   17be6:	d0 90 b1 0d 	lds	r13, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   17bea:	e0 90 b2 0d 	lds	r14, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   17bee:	f0 90 b3 0d 	lds	r15, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   17bf2:	20 e0       	ldi	r18, 0x00	; 0
   17bf4:	30 e0       	ldi	r19, 0x00	; 0
   17bf6:	48 e4       	ldi	r20, 0x48	; 72
   17bf8:	52 e4       	ldi	r21, 0x42	; 66
   17bfa:	c7 01       	movw	r24, r14
   17bfc:	b6 01       	movw	r22, r12
   17bfe:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   17c02:	87 fd       	sbrc	r24, 7
   17c04:	27 c0       	rjmp	.+78     	; 0x17c54 <process_commands() [clone .part.46]+0x5240>
        if(temp_error_state.v) break;
   17c06:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   17c0a:	81 11       	cpse	r24, r1
   17c0c:	23 c0       	rjmp	.+70     	; 0x17c54 <process_commands() [clone .part.46]+0x5240>
        float ambient = current_temperature_ambient + thermal_model::data.Ta_corr;
   17c0e:	20 91 56 06 	lds	r18, 0x0656	; 0x800656 <current_temperature_ambient>
   17c12:	30 91 57 06 	lds	r19, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
   17c16:	40 91 58 06 	lds	r20, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
   17c1a:	50 91 59 06 	lds	r21, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
   17c1e:	60 91 30 13 	lds	r22, 0x1330	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   17c22:	70 91 31 13 	lds	r23, 0x1331	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   17c26:	80 91 32 13 	lds	r24, 0x1332	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   17c2a:	90 91 33 13 	lds	r25, 0x1333	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
   17c2e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
        if(current_temperature[0] < (ambient + TEMP_HYSTERESIS)) {
   17c32:	20 e0       	ldi	r18, 0x00	; 0
   17c34:	30 e0       	ldi	r19, 0x00	; 0
   17c36:	40 ea       	ldi	r20, 0xA0	; 160
   17c38:	50 e4       	ldi	r21, 0x40	; 64
   17c3a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   17c3e:	9b 01       	movw	r18, r22
   17c40:	ac 01       	movw	r20, r24
   17c42:	c7 01       	movw	r24, r14
   17c44:	b6 01       	movw	r22, r12
   17c46:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   17c4a:	87 fd       	sbrc	r24, 7
   17c4c:	03 c0       	rjmp	.+6      	; 0x17c54 <process_commands() [clone .part.46]+0x5240>
            // do not get stuck waiting very close to ambient temperature
            break;
        }
        waiting_handler();
   17c4e:	0f 94 90 3b 	call	0x27720	; 0x27720 <thermal_model_cal::waiting_handler() [clone .lto_priv.423]>
   17c52:	c7 cf       	rjmp	.-114    	; 0x17be2 <process_commands() [clone .part.46]+0x51ce>
    }
    set_fan_speed(old_speed);
   17c54:	80 2f       	mov	r24, r16
   17c56:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
        target_temperature[0] = 0;
        if(current_temperature[0] >= THERMAL_MODEL_CAL_T_low) {
            sprintf_P(tm_message, PSTR("TM: cool down <%dC"), THERMAL_MODEL_CAL_T_low);
            lcd_setstatus_serial(tm_message);
            cooldown(THERMAL_MODEL_CAL_T_low);
            wait(10000);
   17c5a:	80 e1       	ldi	r24, 0x10	; 16
   17c5c:	97 e2       	ldi	r25, 0x27	; 39
   17c5e:	0f 94 bd 3b 	call	0x2777a	; 0x2777a <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]>
        }

        sprintf_P(tm_message, PSTR("TM: %S C est."), verb);
   17c62:	7f 92       	push	r7
   17c64:	6f 92       	push	r6
   17c66:	e2 e4       	ldi	r30, 0x42	; 66
   17c68:	f3 e8       	ldi	r31, 0x83	; 131
   17c6a:	ff 93       	push	r31
   17c6c:	ef 93       	push	r30
   17c6e:	9f 92       	push	r9
   17c70:	8f 92       	push	r8
   17c72:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
        lcd_setstatus_serial(tm_message);
   17c76:	c4 01       	movw	r24, r8
   17c78:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
        target_temperature[0] = cal_temp;
   17c7c:	30 92 b7 0d 	sts	0x0DB7, r3	; 0x800db7 <target_temperature+0x1>
   17c80:	20 92 b6 0d 	sts	0x0DB6, r2	; 0x800db6 <target_temperature>
        samples = record();
   17c84:	0f 94 d8 10 	call	0x221b0	; 0x221b0 <thermal_model_cal::record(unsigned int) [clone .constprop.39]>
   17c88:	5c 01       	movw	r10, r24
        if(temp_error_state.v || !samples)
   17c8a:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   17c8e:	0f 90       	pop	r0
   17c90:	0f 90       	pop	r0
   17c92:	0f 90       	pop	r0
   17c94:	0f 90       	pop	r0
   17c96:	0f 90       	pop	r0
   17c98:	0f 90       	pop	r0
   17c9a:	81 11       	cpse	r24, r1
   17c9c:	7a c0       	rjmp	.+244    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
   17c9e:	a1 14       	cp	r10, r1
   17ca0:	b1 04       	cpc	r11, r1
   17ca2:	09 f4       	brne	.+2      	; 0x17ca6 <process_commands() [clone .part.46]+0x5292>
   17ca4:	76 c0       	rjmp	.+236    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
            return true;

        // we need a high R value for the initial C guess
        if(isnan(thermal_model::data.R[0]))
   17ca6:	60 91 f0 12 	lds	r22, 0x12F0	; 0x8012f0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x40>
   17caa:	70 91 f1 12 	lds	r23, 0x12F1	; 0x8012f1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x41>
   17cae:	80 91 f2 12 	lds	r24, 0x12F2	; 0x8012f2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x42>
   17cb2:	90 91 f3 12 	lds	r25, 0x12F3	; 0x8012f3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x43>
   17cb6:	9b 01       	movw	r18, r22
   17cb8:	ac 01       	movw	r20, r24
   17cba:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17cbe:	88 23       	and	r24, r24
   17cc0:	61 f0       	breq	.+24     	; 0x17cda <process_commands() [clone .part.46]+0x52c6>
            thermal_model::data.R[0] = THERMAL_MODEL_CAL_R_high;
   17cc2:	80 e0       	ldi	r24, 0x00	; 0
   17cc4:	90 e0       	ldi	r25, 0x00	; 0
   17cc6:	a8 e4       	ldi	r26, 0x48	; 72
   17cc8:	b2 e4       	ldi	r27, 0x42	; 66
   17cca:	80 93 f0 12 	sts	0x12F0, r24	; 0x8012f0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x40>
   17cce:	90 93 f1 12 	sts	0x12F1, r25	; 0x8012f1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x41>
   17cd2:	a0 93 f2 12 	sts	0x12F2, r26	; 0x8012f2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x42>
   17cd6:	b0 93 f3 12 	sts	0x12F3, r27	; 0x8012f3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x43>

        e = estimate(samples, &thermal_model::data.C,
   17cda:	c0 90 56 06 	lds	r12, 0x0656	; 0x800656 <current_temperature_ambient>
   17cde:	d0 90 57 06 	lds	r13, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
   17ce2:	e0 90 58 06 	lds	r14, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
   17ce6:	f0 90 59 06 	lds	r15, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
   17cea:	00 e0       	ldi	r16, 0x00	; 0
   17cec:	20 e0       	ldi	r18, 0x00	; 0
   17cee:	30 e0       	ldi	r19, 0x00	; 0
   17cf0:	40 ea       	ldi	r20, 0xA0	; 160
   17cf2:	51 e4       	ldi	r21, 0x41	; 65
   17cf4:	66 ee       	ldi	r22, 0xE6	; 230
   17cf6:	72 e1       	ldi	r23, 0x12	; 18
   17cf8:	c5 01       	movw	r24, r10
   17cfa:	0e 94 9c e7 	call	0x1cf38	; 0x1cf38 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]>
            THERMAL_MODEL_CAL_C_low, THERMAL_MODEL_CAL_C_high,
            THERMAL_MODEL_CAL_C_thr, THERMAL_MODEL_CAL_C_itr,
            0, current_temperature_ambient);
        if(isnan(e))
   17cfe:	9b 01       	movw	r18, r22
   17d00:	ac 01       	movw	r20, r24
   17d02:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17d06:	81 11       	cpse	r24, r1
   17d08:	44 c0       	rjmp	.+136    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
            return true;

        wait_temp();
   17d0a:	0f 94 9b 3b 	call	0x27736	; 0x27736 <thermal_model_cal::wait_temp() [clone .lto_priv.559]>
        if(i) break; // we don't need to refine R
   17d0e:	4a 94       	dec	r4
   17d10:	45 28       	or	r4, r5
   17d12:	09 f4       	brne	.+2      	; 0x17d16 <process_commands() [clone .part.46]+0x5302>
   17d14:	85 c0       	rjmp	.+266    	; 0x17e20 <process_commands() [clone .part.46]+0x540c>
        wait(30000); // settle PID regulation
   17d16:	80 e3       	ldi	r24, 0x30	; 48
   17d18:	95 e7       	ldi	r25, 0x75	; 117
   17d1a:	0f 94 bd 3b 	call	0x2777a	; 0x2777a <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]>

        sprintf_P(tm_message, PSTR("TM: %S R %dC"), verb, cal_temp);
   17d1e:	3f 92       	push	r3
   17d20:	2f 92       	push	r2
   17d22:	7f 92       	push	r7
   17d24:	6f 92       	push	r6
   17d26:	45 e3       	ldi	r20, 0x35	; 53
   17d28:	53 e8       	ldi	r21, 0x83	; 131
   17d2a:	5f 93       	push	r21
   17d2c:	4f 93       	push	r20
   17d2e:	9f 92       	push	r9
   17d30:	8f 92       	push	r8
   17d32:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
        lcd_setstatus_serial(tm_message);
   17d36:	c4 01       	movw	r24, r8
   17d38:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
        samples = record();
   17d3c:	0f 94 d8 10 	call	0x221b0	; 0x221b0 <thermal_model_cal::record(unsigned int) [clone .constprop.39]>
        if(temp_error_state.v || !samples)
   17d40:	20 91 1b 05 	lds	r18, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   17d44:	0f b6       	in	r0, 0x3f	; 63
   17d46:	f8 94       	cli
   17d48:	de bf       	out	0x3e, r29	; 62
   17d4a:	0f be       	out	0x3f, r0	; 63
   17d4c:	cd bf       	out	0x3d, r28	; 61
   17d4e:	21 11       	cpse	r18, r1
   17d50:	20 c0       	rjmp	.+64     	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
   17d52:	00 97       	sbiw	r24, 0x00	; 0
   17d54:	f1 f0       	breq	.+60     	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
            return true;

        e = estimate(samples, &thermal_model::data.R[0],
   17d56:	c0 90 56 06 	lds	r12, 0x0656	; 0x800656 <current_temperature_ambient>
   17d5a:	d0 90 57 06 	lds	r13, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
   17d5e:	e0 90 58 06 	lds	r14, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
   17d62:	f0 90 59 06 	lds	r15, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
   17d66:	20 e0       	ldi	r18, 0x00	; 0
   17d68:	30 e0       	ldi	r19, 0x00	; 0
   17d6a:	48 e4       	ldi	r20, 0x48	; 72
   17d6c:	52 e4       	ldi	r21, 0x42	; 66
   17d6e:	60 ef       	ldi	r22, 0xF0	; 240
   17d70:	72 e1       	ldi	r23, 0x12	; 18
   17d72:	0e 94 9c e7 	call	0x1cf38	; 0x1cf38 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]>

    // bootstrap C/R values without fan
    set_fan_speed(0);

    for(uint8_t i = 0; i != 2; ++i) {
        const char* PROGMEM verb = (i == 0? PSTR("initial"): PSTR("refine"));
   17d76:	03 e6       	ldi	r16, 0x63	; 99
   17d78:	60 2e       	mov	r6, r16
   17d7a:	03 e8       	ldi	r16, 0x83	; 131
   17d7c:	70 2e       	mov	r7, r16
   17d7e:	44 24       	eor	r4, r4
   17d80:	43 94       	inc	r4
   17d82:	51 2c       	mov	r5, r1

        e = estimate(samples, &thermal_model::data.R[0],
            THERMAL_MODEL_CAL_R_low, THERMAL_MODEL_CAL_R_high,
            THERMAL_MODEL_CAL_R_thr, THERMAL_MODEL_CAL_R_itr,
            0, current_temperature_ambient);
        if(isnan(e))
   17d84:	9b 01       	movw	r18, r22
   17d86:	ac 01       	movw	r20, r24
   17d88:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17d8c:	88 23       	and	r24, r24
   17d8e:	09 f4       	brne	.+2      	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
   17d90:	fc ce       	rjmp	.-520    	; 0x17b8a <process_commands() [clone .part.46]+0x5176>
        sprintf_P(tm_message, PSTR("TM: %S C est."), verb);
        lcd_setstatus_serial(tm_message);
        target_temperature[0] = cal_temp;
        samples = record();
        if(temp_error_state.v || !samples)
            return true;
   17d92:	81 e0       	ldi	r24, 0x01	; 1
    orig_enabled = thermal_model::enabled;
    thermal_model_reset_enabled(selftest);

    // autotune
    SERIAL_ECHOLNPGM("TM: calibration start");
    thermal_model_autotune_err = thermal_model_cal::autotune(temp > 0 ? temp : THERMAL_MODEL_CAL_T_high);
   17d94:	80 93 3c 02 	sts	0x023C, r24	; 0x80023c <_ZL26thermal_model_autotune_err.lto_priv.538>

    // always reset temperature
    disable_heater();
   17d98:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>

    if(thermal_model_autotune_err) {
   17d9c:	80 91 3c 02 	lds	r24, 0x023C	; 0x80023c <_ZL26thermal_model_autotune_err.lto_priv.538>
   17da0:	88 23       	and	r24, r24
   17da2:	09 f4       	brne	.+2      	; 0x17da6 <process_commands() [clone .part.46]+0x5392>
   17da4:	fd c0       	rjmp	.+506    	; 0x17fa0 <process_commands() [clone .part.46]+0x558c>
        sprintf_P(tm_message, PSTR("TM: calibr. failed!"));
   17da6:	82 e7       	ldi	r24, 0x72	; 114
   17da8:	93 e8       	ldi	r25, 0x83	; 131
   17daa:	9f 93       	push	r25
   17dac:	8f 93       	push	r24
   17dae:	9f 92       	push	r9
   17db0:	8f 92       	push	r8
   17db2:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
        lcd_setstatus_serial(tm_message);
   17db6:	c4 01       	movw	r24, r8
   17db8:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
        if(temp_error_state.v)
   17dbc:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   17dc0:	0f 90       	pop	r0
   17dc2:	0f 90       	pop	r0
   17dc4:	0f 90       	pop	r0
   17dc6:	0f 90       	pop	r0
   17dc8:	88 23       	and	r24, r24
   17dca:	19 f0       	breq	.+6      	; 0x17dd2 <process_commands() [clone .part.46]+0x53be>
            thermal_model_cal::set_fan_speed(255);
   17dcc:	8f ef       	ldi	r24, 0xFF	; 255
   17dce:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>

        // show calibrated values before overwriting them
        thermal_model_report_settings();
   17dd2:	0f 94 cd 2e 	call	0x25d9a	; 0x25d9a <thermal_model_report_settings()>

        // restore original state
        thermal_model::data.C = orig_C;
   17dd6:	6e 96       	adiw	r28, 0x1e	; 30
   17dd8:	2c ad       	ldd	r18, Y+60	; 0x3c
   17dda:	3d ad       	ldd	r19, Y+61	; 0x3d
   17ddc:	4e ad       	ldd	r20, Y+62	; 0x3e
   17dde:	5f ad       	ldd	r21, Y+63	; 0x3f
   17de0:	6e 97       	sbiw	r28, 0x1e	; 30
   17de2:	20 93 e6 12 	sts	0x12E6, r18	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   17de6:	30 93 e7 12 	sts	0x12E7, r19	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   17dea:	40 93 e8 12 	sts	0x12E8, r20	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   17dee:	50 93 e9 12 	sts	0x12E9, r21	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
        memcpy(thermal_model::data.R, orig_R, sizeof(thermal_model::data.R));
   17df2:	80 e4       	ldi	r24, 0x40	; 64
   17df4:	fe 01       	movw	r30, r28
   17df6:	31 96       	adiw	r30, 0x01	; 1
   17df8:	a0 ef       	ldi	r26, 0xF0	; 240
   17dfa:	b2 e1       	ldi	r27, 0x12	; 18
   17dfc:	01 90       	ld	r0, Z+
   17dfe:	0d 92       	st	X+, r0
   17e00:	8a 95       	dec	r24
   17e02:	e1 f7       	brne	.-8      	; 0x17dfc <process_commands() [clone .part.46]+0x53e8>
        thermal_model_set_enabled(orig_enabled);
   17e04:	67 96       	adiw	r28, 0x17	; 23
   17e06:	8f ad       	ldd	r24, Y+63	; 0x3f
   17e08:	67 97       	sbiw	r28, 0x17	; 23
   17e0a:	0f 94 49 33 	call	0x26692	; 0x26692 <thermal_model_set_enabled(bool)>
        thermal_model_cal::set_fan_speed(0);
        thermal_model_set_enabled(orig_enabled);
        thermal_model_report_settings();
    }

    lcd_consume_click();
   17e0e:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
    menu_unset_block(MENU_BLOCK_THERMAL_MODEL_AUTOTUNE);
   17e12:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   17e16:	8d 7f       	andi	r24, 0xFD	; 253
   17e18:	80 93 d6 03 	sts	0x03D6, r24	; 0x8003d6 <menu_block_mask>
   17e1c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    // Estimate fan losses at regular intervals, starting from full speed to avoid low-speed
    // kickstart issues, although this requires us to wait more for the PID stabilization.
    // Normally exhibits logarithmic behavior with the stock fan+shroud, so the shorter interval
    // at lower speeds is helpful to increase the resolution of the interpolation.
    set_fan_speed(255);
   17e20:	8f ef       	ldi	r24, 0xFF	; 255
   17e22:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
    wait(30000);
   17e26:	80 e3       	ldi	r24, 0x30	; 48
   17e28:	95 e7       	ldi	r25, 0x75	; 117
   17e2a:	0f 94 bd 3b 	call	0x2777a	; 0x2777a <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]>
   17e2e:	fc e2       	ldi	r31, 0x2C	; 44
   17e30:	6f 2e       	mov	r6, r31
   17e32:	f3 e1       	ldi	r31, 0x13	; 19
   17e34:	7f 2e       	mov	r7, r31
   17e36:	1f ef       	ldi	r17, 0xFF	; 255
   17e38:	af e0       	ldi	r26, 0x0F	; 15
   17e3a:	aa 2e       	mov	r10, r26
   17e3c:	b1 2c       	mov	r11, r1

    for(int8_t i = THERMAL_MODEL_R_SIZE - 1; i > 0; i -= THERMAL_MODEL_CAL_R_STEP) {
        // always disable the checker while estimating fan resistance as the difference
        // (esp with 3rd-party blowers) can be massive
        thermal_model::data.R[i] = NAN;
   17e3e:	21 2c       	mov	r2, r1
   17e40:	31 2c       	mov	r3, r1
   17e42:	b0 ec       	ldi	r27, 0xC0	; 192
   17e44:	4b 2e       	mov	r4, r27
   17e46:	bf e7       	ldi	r27, 0x7F	; 127
   17e48:	5b 2e       	mov	r5, r27
   17e4a:	f3 01       	movw	r30, r6
   17e4c:	20 82       	st	Z, r2
   17e4e:	31 82       	std	Z+1, r3	; 0x01
   17e50:	42 82       	std	Z+2, r4	; 0x02
   17e52:	53 82       	std	Z+3, r5	; 0x03

        uint8_t speed = 256 / THERMAL_MODEL_R_SIZE * (i + 1) - 1;
        set_fan_speed(speed);
   17e54:	81 2f       	mov	r24, r17
   17e56:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
        wait(10000);
   17e5a:	80 e1       	ldi	r24, 0x10	; 16
   17e5c:	97 e2       	ldi	r25, 0x27	; 39
   17e5e:	0f 94 bd 3b 	call	0x2777a	; 0x2777a <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]>

        sprintf_P(tm_message, PSTR("TM: R[%u] estimate."), (unsigned)i);
   17e62:	bf 92       	push	r11
   17e64:	af 92       	push	r10
   17e66:	21 e2       	ldi	r18, 0x21	; 33
   17e68:	33 e8       	ldi	r19, 0x83	; 131
   17e6a:	3f 93       	push	r19
   17e6c:	2f 93       	push	r18
   17e6e:	9f 92       	push	r9
   17e70:	8f 92       	push	r8
   17e72:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
        lcd_setstatus_serial(tm_message);
   17e76:	c4 01       	movw	r24, r8
   17e78:	0e 94 31 f2 	call	0x1e462	; 0x1e462 <lcd_setstatus_serial(char const*)>
        samples = record();
   17e7c:	0f 94 d8 10 	call	0x221b0	; 0x221b0 <thermal_model_cal::record(unsigned int) [clone .constprop.39]>
        if(temp_error_state.v || !samples)
   17e80:	20 91 1b 05 	lds	r18, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   17e84:	0f 90       	pop	r0
   17e86:	0f 90       	pop	r0
   17e88:	0f 90       	pop	r0
   17e8a:	0f 90       	pop	r0
   17e8c:	0f 90       	pop	r0
   17e8e:	0f 90       	pop	r0
   17e90:	21 11       	cpse	r18, r1
   17e92:	7f cf       	rjmp	.-258    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
   17e94:	00 97       	sbiw	r24, 0x00	; 0
   17e96:	09 f4       	brne	.+2      	; 0x17e9a <process_commands() [clone .part.46]+0x5486>
   17e98:	7c cf       	rjmp	.-264    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
            return true;

        // a fixed fan pwm (the norminal value) is used here, as soft_pwm_fan will be modified
        // during fan measurements and we'd like to include that skew during normal operation.
        e = estimate(samples, &thermal_model::data.R[i],
   17e9a:	c0 90 56 06 	lds	r12, 0x0656	; 0x800656 <current_temperature_ambient>
   17e9e:	d0 90 57 06 	lds	r13, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
   17ea2:	e0 90 58 06 	lds	r14, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
   17ea6:	f0 90 59 06 	lds	r15, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
   17eaa:	20 91 f0 12 	lds	r18, 0x12F0	; 0x8012f0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x40>
   17eae:	30 91 f1 12 	lds	r19, 0x12F1	; 0x8012f1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x41>
   17eb2:	40 91 f2 12 	lds	r20, 0x12F2	; 0x8012f2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x42>
   17eb6:	50 91 f3 12 	lds	r21, 0x12F3	; 0x8012f3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x43>
   17eba:	0a 2d       	mov	r16, r10
   17ebc:	b3 01       	movw	r22, r6
   17ebe:	0e 94 9c e7 	call	0x1cf38	; 0x1cf38 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]>
            THERMAL_MODEL_CAL_R_low, thermal_model::data.R[0], THERMAL_MODEL_CAL_R_thr, THERMAL_MODEL_CAL_R_itr,
            i, current_temperature_ambient);
        if(isnan(e))
   17ec2:	9b 01       	movw	r18, r22
   17ec4:	ac 01       	movw	r20, r24
   17ec6:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   17eca:	81 11       	cpse	r24, r1
   17ecc:	62 cf       	rjmp	.-316    	; 0x17d92 <process_commands() [clone .part.46]+0x537e>
   17ece:	54 e0       	ldi	r21, 0x04	; 4
   17ed0:	a5 1a       	sub	r10, r21
   17ed2:	b1 08       	sbc	r11, r1
   17ed4:	80 e1       	ldi	r24, 0x10	; 16
   17ed6:	68 1a       	sub	r6, r24
   17ed8:	71 08       	sbc	r7, r1
   17eda:	10 54       	subi	r17, 0x40	; 64
    // Normally exhibits logarithmic behavior with the stock fan+shroud, so the shorter interval
    // at lower speeds is helpful to increase the resolution of the interpolation.
    set_fan_speed(255);
    wait(30000);

    for(int8_t i = THERMAL_MODEL_R_SIZE - 1; i > 0; i -= THERMAL_MODEL_CAL_R_STEP) {
   17edc:	9f ef       	ldi	r25, 0xFF	; 255
   17ede:	a9 16       	cp	r10, r25
   17ee0:	b9 06       	cpc	r11, r25
   17ee2:	09 f0       	breq	.+2      	; 0x17ee6 <process_commands() [clone .part.46]+0x54d2>
   17ee4:	b2 cf       	rjmp	.-156    	; 0x17e4a <process_commands() [clone .part.46]+0x5436>
   17ee6:	78 e2       	ldi	r23, 0x28	; 40
   17ee8:	e7 2e       	mov	r14, r23
   17eea:	73 e1       	ldi	r23, 0x13	; 19
   17eec:	f7 2e       	mov	r15, r23
   17eee:	0e e0       	ldi	r16, 0x0E	; 14
   17ef0:	10 e0       	ldi	r17, 0x00	; 0
            return true;
    }

    // interpolate remaining steps to speed-up calibration
    // TODO: verify that the sampled values are monotically increasing?
    int8_t next = THERMAL_MODEL_R_SIZE - 1;
   17ef2:	ef e0       	ldi	r30, 0x0F	; 15
   17ef4:	3e 2e       	mov	r3, r30
    for(uint8_t i = THERMAL_MODEL_R_SIZE - 2; i != 0; --i) {
        if(!((THERMAL_MODEL_R_SIZE - i - 1) % THERMAL_MODEL_CAL_R_STEP)) {
   17ef6:	8f e0       	ldi	r24, 0x0F	; 15
   17ef8:	90 e0       	ldi	r25, 0x00	; 0
   17efa:	80 1b       	sub	r24, r16
   17efc:	91 0b       	sbc	r25, r17
   17efe:	83 70       	andi	r24, 0x03	; 3
   17f00:	99 27       	eor	r25, r25
   17f02:	89 2b       	or	r24, r25
   17f04:	59 f4       	brne	.+22     	; 0x17f1c <process_commands() [clone .part.46]+0x5508>
            next = i;
   17f06:	30 2e       	mov	r3, r16
   17f08:	01 50       	subi	r16, 0x01	; 1
   17f0a:	11 09       	sbc	r17, r1
   17f0c:	f4 e0       	ldi	r31, 0x04	; 4
   17f0e:	ef 1a       	sub	r14, r31
   17f10:	f1 08       	sbc	r15, r1
    }

    // interpolate remaining steps to speed-up calibration
    // TODO: verify that the sampled values are monotically increasing?
    int8_t next = THERMAL_MODEL_R_SIZE - 1;
    for(uint8_t i = THERMAL_MODEL_R_SIZE - 2; i != 0; --i) {
   17f12:	01 15       	cp	r16, r1
   17f14:	11 05       	cpc	r17, r1
   17f16:	79 f7       	brne	.-34     	; 0x17ef6 <process_commands() [clone .part.46]+0x54e2>
        float f = (float)(i - prev) / THERMAL_MODEL_CAL_R_STEP;
        float d = (thermal_model::data.R[next] - thermal_model::data.R[prev]);
        thermal_model::data.R[i] = thermal_model::data.R[prev] + d * f;
    }

    return false;
   17f18:	80 e0       	ldi	r24, 0x00	; 0
   17f1a:	3c cf       	rjmp	.-392    	; 0x17d94 <process_commands() [clone .part.46]+0x5380>
    for(uint8_t i = THERMAL_MODEL_R_SIZE - 2; i != 0; --i) {
        if(!((THERMAL_MODEL_R_SIZE - i - 1) % THERMAL_MODEL_CAL_R_STEP)) {
            next = i;
            continue;
        }
        int8_t prev = next - THERMAL_MODEL_CAL_R_STEP;
   17f1c:	8c ef       	ldi	r24, 0xFC	; 252
   17f1e:	83 0d       	add	r24, r3
        if(prev < 0) prev = 0;
        float f = (float)(i - prev) / THERMAL_MODEL_CAL_R_STEP;
   17f20:	87 fd       	sbrc	r24, 7
   17f22:	80 e0       	ldi	r24, 0x00	; 0
   17f24:	08 2e       	mov	r0, r24
   17f26:	00 0c       	add	r0, r0
   17f28:	99 0b       	sbc	r25, r25
        float d = (thermal_model::data.R[next] - thermal_model::data.R[prev]);
   17f2a:	fc 01       	movw	r30, r24
   17f2c:	ee 0f       	add	r30, r30
   17f2e:	ff 1f       	adc	r31, r31
   17f30:	ee 0f       	add	r30, r30
   17f32:	ff 1f       	adc	r31, r31
   17f34:	e0 51       	subi	r30, 0x10	; 16
   17f36:	fd 4e       	sbci	r31, 0xED	; 237
   17f38:	40 80       	ld	r4, Z
   17f3a:	51 80       	ldd	r5, Z+1	; 0x01
   17f3c:	62 80       	ldd	r6, Z+2	; 0x02
   17f3e:	73 80       	ldd	r7, Z+3	; 0x03
            next = i;
            continue;
        }
        int8_t prev = next - THERMAL_MODEL_CAL_R_STEP;
        if(prev < 0) prev = 0;
        float f = (float)(i - prev) / THERMAL_MODEL_CAL_R_STEP;
   17f40:	b8 01       	movw	r22, r16
   17f42:	68 1b       	sub	r22, r24
   17f44:	79 0b       	sbc	r23, r25
   17f46:	07 2e       	mov	r0, r23
   17f48:	00 0c       	add	r0, r0
   17f4a:	88 0b       	sbc	r24, r24
   17f4c:	99 0b       	sbc	r25, r25
   17f4e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   17f52:	20 e0       	ldi	r18, 0x00	; 0
   17f54:	30 e0       	ldi	r19, 0x00	; 0
   17f56:	40 e8       	ldi	r20, 0x80	; 128
   17f58:	5e e3       	ldi	r21, 0x3E	; 62
   17f5a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   17f5e:	5b 01       	movw	r10, r22
   17f60:	6c 01       	movw	r12, r24
        float d = (thermal_model::data.R[next] - thermal_model::data.R[prev]);
   17f62:	a3 2d       	mov	r26, r3
   17f64:	b4 e0       	ldi	r27, 0x04	; 4
   17f66:	ab 02       	muls	r26, r27
   17f68:	f0 01       	movw	r30, r0
   17f6a:	11 24       	eor	r1, r1
   17f6c:	e0 51       	subi	r30, 0x10	; 16
   17f6e:	fd 4e       	sbci	r31, 0xED	; 237
   17f70:	a3 01       	movw	r20, r6
   17f72:	92 01       	movw	r18, r4
   17f74:	60 81       	ld	r22, Z
   17f76:	71 81       	ldd	r23, Z+1	; 0x01
   17f78:	82 81       	ldd	r24, Z+2	; 0x02
   17f7a:	93 81       	ldd	r25, Z+3	; 0x03
   17f7c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   17f80:	9b 01       	movw	r18, r22
   17f82:	ac 01       	movw	r20, r24
        thermal_model::data.R[i] = thermal_model::data.R[prev] + d * f;
   17f84:	c6 01       	movw	r24, r12
   17f86:	b5 01       	movw	r22, r10
   17f88:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   17f8c:	a3 01       	movw	r20, r6
   17f8e:	92 01       	movw	r18, r4
   17f90:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   17f94:	f7 01       	movw	r30, r14
   17f96:	60 83       	st	Z, r22
   17f98:	71 83       	std	Z+1, r23	; 0x01
   17f9a:	82 83       	std	Z+2, r24	; 0x02
   17f9c:	93 83       	std	Z+3, r25	; 0x03
   17f9e:	b4 cf       	rjmp	.-152    	; 0x17f08 <process_commands() [clone .part.46]+0x54f4>
        // restore original state
        thermal_model::data.C = orig_C;
        memcpy(thermal_model::data.R, orig_R, sizeof(thermal_model::data.R));
        thermal_model_set_enabled(orig_enabled);
    } else {
        calibration_status_set(CALIBRATION_STATUS_THERMAL_MODEL);
   17fa0:	88 e0       	ldi	r24, 0x08	; 8
   17fa2:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
        lcd_setstatuspgm(MSG_WELCOME);
   17fa6:	8f ec       	ldi	r24, 0xCF	; 207
   17fa8:	9f e6       	ldi	r25, 0x6F	; 111
   17faa:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        thermal_model_cal::set_fan_speed(0);
   17fae:	80 e0       	ldi	r24, 0x00	; 0
   17fb0:	0f 94 c3 2e 	call	0x25d86	; 0x25d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>
        thermal_model_set_enabled(orig_enabled);
   17fb4:	67 96       	adiw	r28, 0x17	; 23
   17fb6:	8f ad       	ldd	r24, Y+63	; 0x3f
   17fb8:	67 97       	sbiw	r28, 0x17	; 23
   17fba:	0f 94 49 33 	call	0x26692	; 0x26692 <thermal_model_set_enabled(bool)>
        thermal_model_report_settings();
   17fbe:	0f 94 cd 2e 	call	0x25d9a	; 0x25d9a <thermal_model_report_settings()>
   17fc2:	25 cf       	rjmp	.-438    	; 0x17e0e <process_commands() [clone .part.46]+0x53fa>
        M400

    */
    case 400:
    {
      st_synchronize();
   17fc4:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   17fc8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>

    */

    case 405: // M405 Enable Filament Sensor
    {
        fsensor.setEnabled(1);
   17fcc:	81 e0       	ldi	r24, 0x01	; 1
   17fce:	0e 94 56 74 	call	0xe8ac	; 0xe8ac <Filament_sensor::setEnabled(bool)>
   17fd2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        M420

    */
    case 420: // M420 Mesh bed leveling status
    {
        gcode_G81_M420();
   17fd6:	0e 94 e2 7e 	call	0xfdc4	; 0xfdc4 <gcode_G81_M420()>
   17fda:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        M500

    */
    case 500:
    {
        Config_StoreSettings();
   17fde:	0e 94 2b 82 	call	0x10456	; 0x10456 <Config_StoreSettings()>
   17fe2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        M501

    */
    case 501:
    {
        Config_RetrieveSettings();
   17fe6:	0e 94 3b 93 	call	0x12676	; 0x12676 <Config_RetrieveSettings()>
   17fea:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        M502

    */
    case 502:
    {
        Config_ResetDefault();
   17fee:	0e 94 13 82 	call	0x10426	; 0x10426 <Config_ResetDefault()>
   17ff2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    printf_P(PSTR("%S   M200 T1 D%.2f\n"),
      echomagic, echomagic, cs.filament_size[2]);
#endif
#endif
    } else {
        printf_P(PSTR("%SFilament settings: Disabled\n"), echomagic);
   17ff6:	1f 93       	push	r17
   17ff8:	0f 93       	push	r16
   17ffa:	81 ea       	ldi	r24, 0xA1	; 161
   17ffc:	9e e7       	ldi	r25, 0x7E	; 126
   17ffe:	9f 93       	push	r25
   18000:	8f 93       	push	r24
   18002:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   18006:	0f 90       	pop	r0
   18008:	0f 90       	pop	r0
   1800a:	0f 90       	pop	r0
   1800c:	0f 90       	pop	r0
   1800e:	0c 94 c1 ae 	jmp	0x15d82	; 0x15d82 <process_commands() [clone .part.46]+0x336e>
        M509

    */
    case 509:
    {
		lang_reset();
   18012:	0e 94 b3 70 	call	0xe166	; 0xe166 <lang_reset>
        SERIAL_ECHO_START;
   18016:	80 ed       	ldi	r24, 0xD0	; 208
   18018:	9a ea       	ldi	r25, 0xAA	; 170
   1801a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_PROTOCOLPGM("LANG SEL FORCED");
   1801e:	80 ea       	ldi	r24, 0xA0	; 160
   18020:	95 e8       	ldi	r25, 0x85	; 133
   18022:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   18026:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `C`    - filament name to show during loading
    - `AUTO` - Automatically (only with MMU)
    */
    case 600: //Pause for filament change X[pos] Y[pos] Z[relative lift] E[initial retract] L[later retract distance for removal] C"[filament name to show during loading]"
    {
    st_synchronize();
   1802a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
/// e.g. feedrate, Z-axis position etc.
/// This function should backup variables which may be lost
/// For example a power panic in M600 or during MMU error
void refresh_print_state_in_ram()
{
    if (saved_printing) return;
   1802e:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   18032:	81 11       	cpse	r24, r1
   18034:	02 c0       	rjmp	.+4      	; 0x1803a <process_commands() [clone .part.46]+0x5626>
   18036:	0e 94 d0 63 	call	0xc7a0	; 0xc7a0 <refresh_print_state_in_ram() [clone .part.39]>
    float e_shift_init = FILAMENTCHANGE_FIRSTRETRACT;
    float e_shift_late = FILAMENTCHANGE_FINALRETRACT;
    bool automatic = false;

    //Retract extruder
    if (code_seen('E')) e_shift_init = code_value();
   1803a:	85 e4       	ldi	r24, 0x45	; 69
   1803c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    refresh_print_state_in_ram();

    float x_position = FILAMENTCHANGE_XPOS;
    float y_position = FILAMENTCHANGE_YPOS;
    float z_shift = MIN_Z_FOR_SWAP;
    float e_shift_init = FILAMENTCHANGE_FIRSTRETRACT;
   18040:	81 2c       	mov	r8, r1
   18042:	91 2c       	mov	r9, r1
   18044:	a1 2c       	mov	r10, r1
   18046:	30 ec       	ldi	r19, 0xC0	; 192
   18048:	b3 2e       	mov	r11, r19
    float e_shift_late = FILAMENTCHANGE_FINALRETRACT;
    bool automatic = false;

    //Retract extruder
    if (code_seen('E')) e_shift_init = code_value();
   1804a:	88 23       	and	r24, r24
   1804c:	21 f0       	breq	.+8      	; 0x18056 <process_commands() [clone .part.46]+0x5642>
   1804e:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   18052:	4b 01       	movw	r8, r22
   18054:	5c 01       	movw	r10, r24
    if (code_seen('L')) e_shift_late = code_value();
   18056:	8c e4       	ldi	r24, 0x4C	; 76
   18058:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>

    float x_position = FILAMENTCHANGE_XPOS;
    float y_position = FILAMENTCHANGE_YPOS;
    float z_shift = MIN_Z_FOR_SWAP;
    float e_shift_init = FILAMENTCHANGE_FIRSTRETRACT;
    float e_shift_late = FILAMENTCHANGE_FINALRETRACT;
   1805c:	c1 2c       	mov	r12, r1
   1805e:	d1 2c       	mov	r13, r1
   18060:	76 01       	movw	r14, r12
    bool automatic = false;

    //Retract extruder
    if (code_seen('E')) e_shift_init = code_value();
    if (code_seen('L')) e_shift_late = code_value();
   18062:	88 23       	and	r24, r24
   18064:	21 f0       	breq	.+8      	; 0x1806e <process_commands() [clone .part.46]+0x565a>
   18066:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1806a:	6b 01       	movw	r12, r22
   1806c:	7c 01       	movw	r14, r24

    // Z lift. For safety only allow positive values
    if (code_seen('Z')) z_shift = fabs(code_value());
   1806e:	8a e5       	ldi	r24, 0x5A	; 90
   18070:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    // take a partial back up of print state into RAM (current position, etc.)
    refresh_print_state_in_ram();

    float x_position = FILAMENTCHANGE_XPOS;
    float y_position = FILAMENTCHANGE_YPOS;
    float z_shift = MIN_Z_FOR_SWAP;
   18074:	41 2c       	mov	r4, r1
   18076:	51 2c       	mov	r5, r1
   18078:	28 ed       	ldi	r18, 0xD8	; 216
   1807a:	62 2e       	mov	r6, r18
   1807c:	21 e4       	ldi	r18, 0x41	; 65
   1807e:	72 2e       	mov	r7, r18
    //Retract extruder
    if (code_seen('E')) e_shift_init = code_value();
    if (code_seen('L')) e_shift_late = code_value();

    // Z lift. For safety only allow positive values
    if (code_seen('Z')) z_shift = fabs(code_value());
   18080:	88 23       	and	r24, r24
   18082:	31 f0       	breq	.+12     	; 0x18090 <process_commands() [clone .part.46]+0x567c>
   18084:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   18088:	2b 01       	movw	r4, r22
   1808a:	3c 01       	movw	r6, r24
   1808c:	e8 94       	clt
   1808e:	77 f8       	bld	r7, 7

    //Move XY to side
    if (code_seen('X')) x_position = code_value();
   18090:	88 e5       	ldi	r24, 0x58	; 88
   18092:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18096:	88 23       	and	r24, r24
   18098:	09 f4       	brne	.+2      	; 0x1809c <process_commands() [clone .part.46]+0x5688>
   1809a:	49 c1       	rjmp	.+658    	; 0x1832e <process_commands() [clone .part.46]+0x591a>
   1809c:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   180a0:	6a 96       	adiw	r28, 0x1a	; 26
   180a2:	6c af       	std	Y+60, r22	; 0x3c
   180a4:	7d af       	std	Y+61, r23	; 0x3d
   180a6:	8e af       	std	Y+62, r24	; 0x3e
   180a8:	9f af       	std	Y+63, r25	; 0x3f
   180aa:	6a 97       	sbiw	r28, 0x1a	; 26
    if (code_seen('Y')) y_position = code_value();
   180ac:	89 e5       	ldi	r24, 0x59	; 89
   180ae:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   180b2:	88 23       	and	r24, r24
   180b4:	09 f4       	brne	.+2      	; 0x180b8 <process_commands() [clone .part.46]+0x56a4>
   180b6:	46 c1       	rjmp	.+652    	; 0x18344 <process_commands() [clone .part.46]+0x5930>
   180b8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   180bc:	6e 96       	adiw	r28, 0x1e	; 30
   180be:	6c af       	std	Y+60, r22	; 0x3c
   180c0:	7d af       	std	Y+61, r23	; 0x3d
   180c2:	8e af       	std	Y+62, r24	; 0x3e
   180c4:	9f af       	std	Y+63, r25	; 0x3f
   180c6:	6e 97       	sbiw	r28, 0x1e	; 30

    // Filament name to show during the loading
    char filament_name[LCD_WIDTH + 1] = "";
   180c8:	1a 82       	std	Y+2, r1	; 0x02
   180ca:	19 82       	std	Y+1, r1	; 0x01
   180cc:	fe 01       	movw	r30, r28
   180ce:	33 96       	adiw	r30, 0x03	; 3
   180d0:	83 e1       	ldi	r24, 0x13	; 19
   180d2:	df 01       	movw	r26, r30
   180d4:	1d 92       	st	X+, r1
   180d6:	8a 95       	dec	r24
   180d8:	e9 f7       	brne	.-6      	; 0x180d4 <process_commands() [clone .part.46]+0x56c0>
    if (code_seen('C')) {
   180da:	83 e4       	ldi	r24, 0x43	; 67
   180dc:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   180e0:	88 23       	and	r24, r24
   180e2:	f9 f0       	breq	.+62     	; 0x18122 <process_commands() [clone .part.46]+0x570e>
    , found(false)
    {
        const char * pStrEnd = NULL;

        // Start of the string
        this->ptr = strchr(pStr, '"');
   180e4:	62 e2       	ldi	r22, 0x22	; 34
   180e6:	70 e0       	ldi	r23, 0x00	; 0
   180e8:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   180ec:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   180f0:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   180f4:	8c 01       	movw	r16, r24
        if (!this->ptr) {
   180f6:	89 2b       	or	r24, r25
   180f8:	a1 f0       	breq	.+40     	; 0x18122 <process_commands() [clone .part.46]+0x570e>
            // First quote not found
            return;
        }

        // Skip the leading quote
        this->ptr++;
   180fa:	0f 5f       	subi	r16, 0xFF	; 255
   180fc:	1f 4f       	sbci	r17, 0xFF	; 255

        // End of the string
        pStrEnd = strchr(this->ptr, '"');
   180fe:	62 e2       	ldi	r22, 0x22	; 34
   18100:	70 e0       	ldi	r23, 0x00	; 0
   18102:	c8 01       	movw	r24, r16
   18104:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
        if(!pStrEnd) {
   18108:	00 97       	sbiw	r24, 0x00	; 0
   1810a:	59 f0       	breq	.+22     	; 0x18122 <process_commands() [clone .part.46]+0x570e>
            // Second quote not found
            return;
        }
        this->len = pStrEnd - this->ptr;
   1810c:	80 1b       	sub	r24, r16
        unquoted_string str = unquoted_string(strchr_pointer);
        if (str.WasFound()) {
            const uint8_t len = min(str.GetLength(), LCD_WIDTH);
   1810e:	84 31       	cpi	r24, 0x14	; 20
   18110:	08 f0       	brcs	.+2      	; 0x18114 <process_commands() [clone .part.46]+0x5700>
   18112:	84 e1       	ldi	r24, 0x14	; 20
            memcpy(filament_name, str.GetUnquotedString(), len);
   18114:	48 2f       	mov	r20, r24
   18116:	50 e0       	ldi	r21, 0x00	; 0
   18118:	b8 01       	movw	r22, r16
   1811a:	ce 01       	movw	r24, r28
   1811c:	01 96       	adiw	r24, 0x01	; 1
   1811e:	0f 94 84 e2 	call	0x3c508	; 0x3c508 <memcpy>
        }
    }

    if (MMU2::mmu2.Enabled() && code_seen_P(PSTR("AUTO")))
   18122:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
    float x_position = FILAMENTCHANGE_XPOS;
    float y_position = FILAMENTCHANGE_YPOS;
    float z_shift = MIN_Z_FOR_SWAP;
    float e_shift_init = FILAMENTCHANGE_FIRSTRETRACT;
    float e_shift_late = FILAMENTCHANGE_FINALRETRACT;
    bool automatic = false;
   18126:	10 e0       	ldi	r17, 0x00	; 0
            const uint8_t len = min(str.GetLength(), LCD_WIDTH);
            memcpy(filament_name, str.GetUnquotedString(), len);
        }
    }

    if (MMU2::mmu2.Enabled() && code_seen_P(PSTR("AUTO")))
   18128:	81 30       	cpi	r24, 0x01	; 1
   1812a:	29 f4       	brne	.+10     	; 0x18136 <process_commands() [clone .part.46]+0x5722>
   1812c:	8b e9       	ldi	r24, 0x9B	; 155
   1812e:	95 e8       	ldi	r25, 0x85	; 133
   18130:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   18134:	18 2f       	mov	r17, r24
    load_filament_final_feed(); // @@TODO verify
    st_synchronize();
}

static void gcode_M600(const bool automatic, const float x_position, const float y_position, const float z_shift, const float e_shift, const float e_shift_late, const char* filament_name) {
    st_synchronize();
   18136:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    uint8_t eject_slot = 0;

    prusa_statistics(22);

    // Turn off the fan
    fanSpeed = 0;
   1813a:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>

    // Retract E
    if (!printingIsPaused())
   1813e:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   18142:	81 11       	cpse	r24, r1
   18144:	06 c1       	rjmp	.+524    	; 0x18352 <process_commands() [clone .part.46]+0x593e>
    {
      current_position[E_AXIS] += e_shift;
   18146:	a5 01       	movw	r20, r10
   18148:	94 01       	movw	r18, r8
   1814a:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   1814e:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   18152:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   18156:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   1815a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1815e:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   18162:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   18166:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   1816a:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
      plan_buffer_line_curposXYZE(FILAMENTCHANGE_RFEED);
   1816e:	60 e0       	ldi	r22, 0x00	; 0
   18170:	70 e0       	ldi	r23, 0x00	; 0
   18172:	88 ee       	ldi	r24, 0xE8	; 232
   18174:	92 e4       	ldi	r25, 0x42	; 66
   18176:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
      st_synchronize();
   1817a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
      SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_PAUSED);
   1817e:	85 e5       	ldi	r24, 0x55	; 85
   18180:	9e e6       	ldi	r25, 0x6E	; 110
   18182:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        // Filament change can be issued via the Tune menu
        restore_extruder_temperature_from_ram();
    }

    // Raise the Z axis
    raise_z(z_shift);
   18186:	c3 01       	movw	r24, r6
   18188:	b2 01       	movw	r22, r4
   1818a:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>

    // Move XY to side
    current_position[X_AXIS] = x_position;
   1818e:	6a 96       	adiw	r28, 0x1a	; 26
   18190:	2c ad       	ldd	r18, Y+60	; 0x3c
   18192:	3d ad       	ldd	r19, Y+61	; 0x3d
   18194:	4e ad       	ldd	r20, Y+62	; 0x3e
   18196:	5f ad       	ldd	r21, Y+63	; 0x3f
   18198:	6a 97       	sbiw	r28, 0x1a	; 26
   1819a:	20 93 92 06 	sts	0x0692, r18	; 0x800692 <current_position>
   1819e:	30 93 93 06 	sts	0x0693, r19	; 0x800693 <current_position+0x1>
   181a2:	40 93 94 06 	sts	0x0694, r20	; 0x800694 <current_position+0x2>
   181a6:	50 93 95 06 	sts	0x0695, r21	; 0x800695 <current_position+0x3>
    current_position[Y_AXIS] = y_position;
   181aa:	6e 96       	adiw	r28, 0x1e	; 30
   181ac:	8c ad       	ldd	r24, Y+60	; 0x3c
   181ae:	9d ad       	ldd	r25, Y+61	; 0x3d
   181b0:	ae ad       	ldd	r26, Y+62	; 0x3e
   181b2:	bf ad       	ldd	r27, Y+63	; 0x3f
   181b4:	6e 97       	sbiw	r28, 0x1e	; 30
   181b6:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   181ba:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   181be:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   181c2:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
    plan_buffer_line_curposXYZE(FILAMENTCHANGE_XYFEED);
   181c6:	60 e0       	ldi	r22, 0x00	; 0
   181c8:	70 e0       	ldi	r23, 0x00	; 0
   181ca:	88 e4       	ldi	r24, 0x48	; 72
   181cc:	92 e4       	ldi	r25, 0x42	; 66
   181ce:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   181d2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    bool repeat = false;
   181d6:	67 96       	adiw	r28, 0x17	; 23
   181d8:	1f ae       	std	Y+63, r1	; 0x3f
   181da:	67 97       	sbiw	r28, 0x17	; 23
    st_synchronize();

    // When using an MMU, save the currently use slot number
    // so the firmware can know which slot to eject after the filament
    // is unloaded.
    uint8_t eject_slot = 0;
   181dc:	b1 2c       	mov	r11, r1
#endif //PINDA_THERMISTOR

void lcd_wait_for_heater() {
		lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
		lcd_printf_P(PSTR("%3d/%3d"), (int16_t)degHotend(active_extruder), (int16_t) degTargetHotend(active_extruder));
   181de:	0a ee       	ldi	r16, 0xEA	; 234
   181e0:	20 2e       	mov	r2, r16
   181e2:	0d e7       	ldi	r16, 0x7D	; 125
   181e4:	30 2e       	mov	r3, r16
				delay_keep_alive(4);

				if (lcd_clicked()) {
					setTargetHotend(saved_extruder_temperature);
					lcd_wait_for_heater();
					wait_for_user_state = 2;
   181e6:	82 e0       	ldi	r24, 0x02	; 2
   181e8:	a8 2e       	mov	r10, r24
					lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
					waiting_start_time = _millis();
					wait_for_user_state = 0;
				} else {
					lcd_set_cursor(1, 4);
					lcd_printf_P(PSTR("%3d"), (int16_t)degHotend(active_extruder));
   181ea:	92 ef       	ldi	r25, 0xF2	; 242
   181ec:	89 2e       	mov	r8, r25
   181ee:	9d e7       	ldi	r25, 0x7D	; 125
   181f0:	99 2e       	mov	r9, r25
    st_synchronize();

    bool repeat = false;
    do {
        // Unload filament
        if (MMU2::mmu2.Enabled()) {
   181f2:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   181f6:	81 30       	cpi	r24, 0x01	; 1
   181f8:	09 f0       	breq	.+2      	; 0x181fc <process_commands() [clone .part.46]+0x57e8>
   181fa:	ae c0       	rjmp	.+348    	; 0x18358 <process_commands() [clone .part.46]+0x5944>
            eject_slot = MMU2::mmu2.get_current_tool();
   181fc:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   18200:	b8 2e       	mov	r11, r24
            mmu_M600_unload_filament();
   18202:	0e 94 9e 72 	call	0xe53c	; 0xe53c <mmu_M600_unload_filament()>
        } else {
            // Beep, manage nozzle heater and wait for user to start unload filament
            M600_wait_for_user();
            unload_filament(e_shift_late);
        }
        st_synchronize();          // finish moves
   18206:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        FSensorBlockRunout fsBlockRunout;
   1820a:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

        if (!MMU2::mmu2.Enabled())
   1820e:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   18212:	81 30       	cpi	r24, 0x01	; 1
   18214:	09 f4       	brne	.+2      	; 0x18218 <process_commands() [clone .part.46]+0x5804>
   18216:	6e c1       	rjmp	.+732    	; 0x184f4 <process_commands() [clone .part.46]+0x5ae0>
        {
            KEEPALIVE_STATE(PAUSED_FOR_USER);
   18218:	84 e0       	ldi	r24, 0x04	; 4
   1821a:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
            uint8_t choice =
                lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_UNLOAD_SUCCESSFUL), false, LCD_LEFT_BUTTON_CHOICE);
   1821e:	81 e2       	ldi	r24, 0x21	; 33
   18220:	99 e3       	ldi	r25, 0x39	; 57
   18222:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18226:	40 e0       	ldi	r20, 0x00	; 0
   18228:	60 e0       	ldi	r22, 0x00	; 0
   1822a:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
   1822e:	08 2f       	mov	r16, r24
            lcd_update_enable(false);
   18230:	80 e0       	ldi	r24, 0x00	; 0
   18232:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
            if (choice == LCD_MIDDLE_BUTTON_CHOICE) {
   18236:	01 30       	cpi	r16, 0x01	; 1
   18238:	29 f5       	brne	.+74     	; 0x18284 <process_commands() [clone .part.46]+0x5870>
                lcd_clear();
   1823a:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
                lcd_puts_at_P(0, 2, _T(MSG_PLEASE_WAIT));
   1823e:	89 e9       	ldi	r24, 0x99	; 153
   18240:	99 e3       	ldi	r25, 0x39	; 57
   18242:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18246:	ac 01       	movw	r20, r24
   18248:	62 e0       	ldi	r22, 0x02	; 2
   1824a:	80 e0       	ldi	r24, 0x00	; 0
   1824c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
                current_position[X_AXIS] = 100;
   18250:	80 e0       	ldi	r24, 0x00	; 0
   18252:	90 e0       	ldi	r25, 0x00	; 0
   18254:	a8 ec       	ldi	r26, 0xC8	; 200
   18256:	b2 e4       	ldi	r27, 0x42	; 66
   18258:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   1825c:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   18260:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   18264:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
                plan_buffer_line_curposXYZE(FILAMENTCHANGE_XYFEED);
   18268:	60 e0       	ldi	r22, 0x00	; 0
   1826a:	70 e0       	ldi	r23, 0x00	; 0
   1826c:	88 e4       	ldi	r24, 0x48	; 72
   1826e:	92 e4       	ldi	r25, 0x42	; 66
   18270:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
                st_synchronize();
   18274:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
                lcd_show_fullscreen_message_and_wait_P(_T(MSG_CHECK_IDLER));
   18278:	8f ee       	ldi	r24, 0xEF	; 239
   1827a:	98 e3       	ldi	r25, 0x38	; 56
   1827c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18280:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
     preheat_or_continue(FilamentAction::UnLoad);
}

void lcd_wait_interact(const char* filament_name) {

  lcd_clear();
   18284:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

  lcd_puts_at_P(0, 0, _T(MSG_INSERT_FILAMENT));
   18288:	8d e7       	ldi	r24, 0x7D	; 125
   1828a:	98 e3       	ldi	r25, 0x38	; 56
   1828c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18290:	ac 01       	movw	r20, r24
   18292:	60 e0       	ldi	r22, 0x00	; 0
   18294:	80 e0       	ldi	r24, 0x00	; 0
   18296:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  lcd_set_cursor(0, 1);
   1829a:	61 e0       	ldi	r22, 0x01	; 1
   1829c:	80 e0       	ldi	r24, 0x00	; 0
   1829e:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
  if (filament_name[0]) {
   182a2:	89 81       	ldd	r24, Y+1	; 0x01
   182a4:	88 23       	and	r24, r24
   182a6:	41 f0       	breq	.+16     	; 0x182b8 <process_commands() [clone .part.46]+0x58a4>
      lcd_print(filament_name);
   182a8:	ce 01       	movw	r24, r28
   182aa:	01 96       	adiw	r24, 0x01	; 1
   182ac:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
      lcd_set_cursor(0, 2);
   182b0:	62 e0       	ldi	r22, 0x02	; 2
   182b2:	80 e0       	ldi	r24, 0x00	; 0
   182b4:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
  }
#ifdef FILAMENT_SENSOR
  if (!fsensor.getAutoLoadEnabled())
   182b8:	80 91 ab 17 	lds	r24, 0x17AB	; 0x8017ab <fsensor+0x1>
   182bc:	81 11       	cpse	r24, r1
   182be:	06 c0       	rjmp	.+12     	; 0x182cc <process_commands() [clone .part.46]+0x58b8>
#endif //FILAMENT_SENSOR
  {
    lcd_puts_P(_T(MSG_PRESS));
   182c0:	88 e6       	ldi	r24, 0x68	; 104
   182c2:	98 e3       	ldi	r25, 0x38	; 56
   182c4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   182c8:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

void M600_load_filament(const char* filament_name) {
	//load filament for single material and MMU
	lcd_wait_interact(filament_name);

	KEEPALIVE_STATE(PAUSED_FOR_USER);
   182cc:	84 e0       	ldi	r24, 0x04	; 4
   182ce:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

	while(!lcd_clicked())
   182d2:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   182d6:	81 11       	cpse	r24, r1
   182d8:	10 c0       	rjmp	.+32     	; 0x182fa <process_commands() [clone .part.46]+0x58e6>
	{
		manage_heater();
   182da:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
		manage_inactivity(true);
   182de:	81 e0       	ldi	r24, 0x01	; 1
   182e0:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
#ifdef FILAMENT_SENSOR
		if (fsensor.getFilamentLoadEvent()) {
   182e4:	80 91 ae 17 	lds	r24, 0x17AE	; 0x8017ae <fsensor+0x4>
   182e8:	88 23       	and	r24, r24
   182ea:	99 f3       	breq	.-26     	; 0x182d2 <process_commands() [clone .part.46]+0x58be>
			Sound_MakeCustom(50,1000,false);
   182ec:	40 e0       	ldi	r20, 0x00	; 0
   182ee:	68 ee       	ldi	r22, 0xE8	; 232
   182f0:	73 e0       	ldi	r23, 0x03	; 3
   182f2:	82 e3       	ldi	r24, 0x32	; 50
   182f4:	90 e0       	ldi	r25, 0x00	; 0
   182f6:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
			break;
		}
#endif //FILAMENT_SENSOR
	}
	KEEPALIVE_STATE(IN_HANDLER);
   182fa:	a0 92 be 02 	sts	0x02BE, r10	; 0x8002be <busy_state>

	M600_load_filament_movements(filament_name);
   182fe:	ce 01       	movw	r24, r28
   18300:	01 96       	adiw	r24, 0x01	; 1
   18302:	0e 94 57 72 	call	0xe4ae	; 0xe4ae <M600_load_filament_movements(char const*)>

	Sound_MakeCustom(50,1000,false);
   18306:	40 e0       	ldi	r20, 0x00	; 0
   18308:	68 ee       	ldi	r22, 0xE8	; 232
   1830a:	73 e0       	ldi	r23, 0x03	; 3
   1830c:	82 e3       	ldi	r24, 0x32	; 50
   1830e:	90 e0       	ldi	r25, 0x00	; 0
   18310:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
bool M600_check_state_and_repeat(const char* filament_name)
{
    uint8_t lcd_change_filament_state = 10;
    while (lcd_change_filament_state != 0 && lcd_change_filament_state != 3)
    {
        KEEPALIVE_STATE(PAUSED_FOR_USER);
   18314:	b4 e0       	ldi	r27, 0x04	; 4
   18316:	7b 2e       	mov	r7, r27
        else // MMU is enabled
        {
            if (!automatic) mmu_M600_filament_change_screen(eject_slot);
            mmu_M600_load_filament(automatic);
        }
        if (!automatic)
   18318:	11 23       	and	r17, r17
   1831a:	09 f4       	brne	.+2      	; 0x1831e <process_commands() [clone .part.46]+0x590a>
   1831c:	00 c1       	rjmp	.+512    	; 0x1851e <process_commands() [clone .part.46]+0x5b0a>
   1831e:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
    current_position[Y_AXIS] = y_position;
    plan_buffer_line_curposXYZE(FILAMENTCHANGE_XYFEED);
    st_synchronize();

    bool repeat = false;
    do {
   18322:	67 96       	adiw	r28, 0x17	; 23
   18324:	4f ad       	ldd	r20, Y+63	; 0x3f
   18326:	67 97       	sbiw	r28, 0x17	; 23
   18328:	41 11       	cpse	r20, r1
   1832a:	63 cf       	rjmp	.-314    	; 0x181f2 <process_commands() [clone .part.46]+0x57de>
   1832c:	a1 c1       	rjmp	.+834    	; 0x18670 <process_commands() [clone .part.46]+0x5c5c>

    // In case a power panic happens while waiting for the user
    // take a partial back up of print state into RAM (current position, etc.)
    refresh_print_state_in_ram();

    float x_position = FILAMENTCHANGE_XPOS;
   1832e:	20 e0       	ldi	r18, 0x00	; 0
   18330:	30 e0       	ldi	r19, 0x00	; 0
   18332:	43 e5       	ldi	r20, 0x53	; 83
   18334:	53 e4       	ldi	r21, 0x43	; 67
   18336:	6a 96       	adiw	r28, 0x1a	; 26
   18338:	2c af       	std	Y+60, r18	; 0x3c
   1833a:	3d af       	std	Y+61, r19	; 0x3d
   1833c:	4e af       	std	Y+62, r20	; 0x3e
   1833e:	5f af       	std	Y+63, r21	; 0x3f
   18340:	6a 97       	sbiw	r28, 0x1a	; 26
   18342:	b4 ce       	rjmp	.-664    	; 0x180ac <process_commands() [clone .part.46]+0x5698>
    float y_position = FILAMENTCHANGE_YPOS;
   18344:	6e 96       	adiw	r28, 0x1e	; 30
   18346:	1c ae       	std	Y+60, r1	; 0x3c
   18348:	1d ae       	std	Y+61, r1	; 0x3d
   1834a:	1e ae       	std	Y+62, r1	; 0x3e
   1834c:	1f ae       	std	Y+63, r1	; 0x3f
   1834e:	6e 97       	sbiw	r28, 0x1e	; 30
   18350:	bb ce       	rjmp	.-650    	; 0x180c8 <process_commands() [clone .part.46]+0x56b4>
      st_synchronize();
      SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_PAUSED);
    } else {
        // Print is paused and the extruder may be cold
        // Filament change can be issued via the Tune menu
        restore_extruder_temperature_from_ram();
   18352:	0e 94 50 64 	call	0xc8a0	; 0xc8a0 <restore_extruder_temperature_from_ram()>
   18356:	17 cf       	rjmp	.-466    	; 0x18186 <process_commands() [clone .part.46]+0x5772>
//!
//! Beep, manage nozzle heater and wait for user to start unload filament
//! If times out, active extruder temperature is set to 0.
void M600_wait_for_user() {

		KEEPALIVE_STATE(PAUSED_FOR_USER);
   18358:	84 e0       	ldi	r24, 0x04	; 4
   1835a:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

		unsigned long waiting_start_time = _millis();
   1835e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   18362:	2b 01       	movw	r4, r22
   18364:	3c 01       	movw	r6, r24
		uint8_t wait_for_user_state = 0;
		lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
   18366:	8d e3       	ldi	r24, 0x3D	; 61
   18368:	98 e3       	ldi	r25, 0x38	; 56
   1836a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1836e:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>

		while (!(wait_for_user_state == 0 && lcd_clicked())){
   18372:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   18376:	08 2f       	mov	r16, r24
   18378:	81 11       	cpse	r24, r1
   1837a:	38 c0       	rjmp	.+112    	; 0x183ec <process_commands() [clone .part.46]+0x59d8>

			switch (wait_for_user_state) {
			case 0: //nozzle is hot, waiting for user to press the knob to unload filament
				delay_keep_alive(4);

				if (_millis() > waiting_start_time + (unsigned long)M600_TIMEOUT * 1000) {
   1837c:	a3 01       	movw	r20, r6
   1837e:	92 01       	movw	r18, r4
   18380:	20 54       	subi	r18, 0x40	; 64
   18382:	38 4d       	sbci	r19, 0xD8	; 216
   18384:	46 4f       	sbci	r20, 0xF6	; 246
   18386:	5f 4f       	sbci	r21, 0xFF	; 255
   18388:	6e 96       	adiw	r28, 0x1e	; 30
   1838a:	2c af       	std	Y+60, r18	; 0x3c
   1838c:	3d af       	std	Y+61, r19	; 0x3d
   1838e:	4e af       	std	Y+62, r20	; 0x3e
   18390:	5f af       	std	Y+63, r21	; 0x3f
   18392:	6e 97       	sbiw	r28, 0x1e	; 30
		unsigned long waiting_start_time = _millis();
		uint8_t wait_for_user_state = 0;
		lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));

		while (!(wait_for_user_state == 0 && lcd_clicked())){
			manage_heater();
   18394:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
			manage_inactivity(true);
   18398:	81 e0       	ldi	r24, 0x01	; 1
   1839a:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
      if (wait_for_user_state != 2) sound_wait_for_user();
   1839e:	02 30       	cpi	r16, 0x02	; 2
   183a0:	09 f4       	brne	.+2      	; 0x183a4 <process_commands() [clone .part.46]+0x5990>
   183a2:	67 c0       	rjmp	.+206    	; 0x18472 <process_commands() [clone .part.46]+0x5a5e>
   183a4:	0f 94 2c 53 	call	0x2a658	; 0x2a658 <sound_wait_for_user()>
					st_synchronize();
					disable_e0();
				}
				break;
			case 1: //nozzle target temperature is set to zero, waiting for user to start nozzle preheat
				delay_keep_alive(4);
   183a8:	84 e0       	ldi	r24, 0x04	; 4
   183aa:	90 e0       	ldi	r25, 0x00	; 0
		while (!(wait_for_user_state == 0 && lcd_clicked())){
			manage_heater();
			manage_inactivity(true);
      if (wait_for_user_state != 2) sound_wait_for_user();

			switch (wait_for_user_state) {
   183ac:	01 30       	cpi	r16, 0x01	; 1
   183ae:	39 f1       	breq	.+78     	; 0x183fe <process_commands() [clone .part.46]+0x59ea>
			case 0: //nozzle is hot, waiting for user to press the knob to unload filament
				delay_keep_alive(4);
   183b0:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>

				if (_millis() > waiting_start_time + (unsigned long)M600_TIMEOUT * 1000) {
   183b4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   183b8:	6e 96       	adiw	r28, 0x1e	; 30
   183ba:	2c ad       	ldd	r18, Y+60	; 0x3c
   183bc:	3d ad       	ldd	r19, Y+61	; 0x3d
   183be:	4e ad       	ldd	r20, Y+62	; 0x3e
   183c0:	5f ad       	ldd	r21, Y+63	; 0x3f
   183c2:	6e 97       	sbiw	r28, 0x1e	; 30
   183c4:	26 17       	cp	r18, r22
   183c6:	37 07       	cpc	r19, r23
   183c8:	48 07       	cpc	r20, r24
   183ca:	59 07       	cpc	r21, r25
   183cc:	90 f6       	brcc	.-92     	; 0x18372 <process_commands() [clone .part.46]+0x595e>
					lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_PREHEAT));
   183ce:	8c e0       	ldi	r24, 0x0C	; 12
   183d0:	98 e3       	ldi	r25, 0x38	; 56
   183d2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   183d6:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   183da:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   183de:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
					wait_for_user_state = 1;
					setTargetHotend(0);
					st_synchronize();
   183e2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
					disable_e0();
   183e6:	14 9a       	sbi	0x02, 4	; 2
			case 0: //nozzle is hot, waiting for user to press the knob to unload filament
				delay_keep_alive(4);

				if (_millis() > waiting_start_time + (unsigned long)M600_TIMEOUT * 1000) {
					lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_PREHEAT));
					wait_for_user_state = 1;
   183e8:	01 e0       	ldi	r16, 0x01	; 1
   183ea:	d4 cf       	rjmp	.-88     	; 0x18394 <process_commands() [clone .part.46]+0x5980>
   183ec:	10 92 6b 05 	sts	0x056B, r1	; 0x80056b <_ZL10beep_timer.lto_priv.496>

/// @brief Resets the global state of sound_wait_for_user()
void sound_wait_for_user_reset()
{
     beep_timer.stop();
     bFirst = false;
   183f0:	10 92 6e 05 	sts	0x056E, r1	; 0x80056e <_ZL6bFirst.lto_priv.497>
            eject_slot = MMU2::mmu2.get_current_tool();
            mmu_M600_unload_filament();
        } else {
            // Beep, manage nozzle heater and wait for user to start unload filament
            M600_wait_for_user();
            unload_filament(e_shift_late);
   183f4:	c7 01       	movw	r24, r14
   183f6:	b6 01       	movw	r22, r12
   183f8:	0e 94 34 f9 	call	0x1f268	; 0x1f268 <unload_filament(float)>
   183fc:	04 cf       	rjmp	.-504    	; 0x18206 <process_commands() [clone .part.46]+0x57f2>
					st_synchronize();
					disable_e0();
				}
				break;
			case 1: //nozzle target temperature is set to zero, waiting for user to start nozzle preheat
				delay_keep_alive(4);
   183fe:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>

				if (lcd_clicked()) {
   18402:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   18406:	88 23       	and	r24, r24
   18408:	29 f2       	breq	.-118    	; 0x18394 <process_commands() [clone .part.46]+0x5980>
   1840a:	80 91 ac 05 	lds	r24, 0x05AC	; 0x8005ac <saved_extruder_temperature>
   1840e:	90 91 ad 05 	lds	r25, 0x05AD	; 0x8005ad <saved_extruder_temperature+0x1>
   18412:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
   18416:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
	return target_temp_reached;
}
#endif //PINDA_THERMISTOR

void lcd_wait_for_heater() {
		lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
   1841a:	8f ec       	ldi	r24, 0xCF	; 207
   1841c:	9b e3       	ldi	r25, 0x3B	; 59
   1841e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18422:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
   18426:	42 e8       	ldi	r20, 0x82	; 130
   18428:	64 e0       	ldi	r22, 0x04	; 4
   1842a:	80 e0       	ldi	r24, 0x00	; 0
   1842c:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
		lcd_printf_P(PSTR("%3d/%3d"), (int16_t)degHotend(active_extruder), (int16_t) degTargetHotend(active_extruder));
   18430:	80 91 b7 0d 	lds	r24, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   18434:	8f 93       	push	r24
   18436:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   1843a:	8f 93       	push	r24
   1843c:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   18440:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   18444:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   18448:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1844c:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   18450:	7f 93       	push	r23
   18452:	6f 93       	push	r22
   18454:	3f 92       	push	r3
   18456:	2f 92       	push	r2
   18458:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		lcd_putc(LCD_STR_DEGREE[0]);
   1845c:	81 e8       	ldi	r24, 0x81	; 129
   1845e:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   18462:	0f 90       	pop	r0
   18464:	0f 90       	pop	r0
   18466:	0f 90       	pop	r0
   18468:	0f 90       	pop	r0
   1846a:	0f 90       	pop	r0
   1846c:	0f 90       	pop	r0
					setTargetHotend(saved_extruder_temperature);
					lcd_wait_for_heater();
					wait_for_user_state = 2;
   1846e:	02 e0       	ldi	r16, 0x02	; 2
   18470:	91 cf       	rjmp	.-222    	; 0x18394 <process_commands() [clone .part.46]+0x5980>
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
   18472:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   18476:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   1847a:	07 2e       	mov	r0, r23
   1847c:	00 0c       	add	r0, r0
   1847e:	88 0b       	sbc	r24, r24
   18480:	99 0b       	sbc	r25, r25
   18482:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
				}
				break;
			case 2: //waiting for nozzle to reach target temperature
				if (fabs(degTargetHotend(active_extruder) - degHotend(active_extruder)) < TEMP_HYSTERESIS) {
   18486:	20 91 b0 0d 	lds	r18, 0x0DB0	; 0x800db0 <current_temperature>
   1848a:	30 91 b1 0d 	lds	r19, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1848e:	40 91 b2 0d 	lds	r20, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   18492:	50 91 b3 0d 	lds	r21, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   18496:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1849a:	9f 77       	andi	r25, 0x7F	; 127
   1849c:	20 e0       	ldi	r18, 0x00	; 0
   1849e:	30 e0       	ldi	r19, 0x00	; 0
   184a0:	40 ea       	ldi	r20, 0xA0	; 160
   184a2:	50 e4       	ldi	r21, 0x40	; 64
   184a4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   184a8:	87 ff       	sbrs	r24, 7
   184aa:	0b c0       	rjmp	.+22     	; 0x184c2 <process_commands() [clone .part.46]+0x5aae>
					lcd_display_message_fullscreen_P(_T(MSG_PRESS_TO_UNLOAD));
   184ac:	8d e3       	ldi	r24, 0x3D	; 61
   184ae:	98 e3       	ldi	r25, 0x38	; 56
   184b0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   184b4:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
					waiting_start_time = _millis();
   184b8:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   184bc:	2b 01       	movw	r4, r22
   184be:	3c 01       	movw	r6, r24
   184c0:	58 cf       	rjmp	.-336    	; 0x18372 <process_commands() [clone .part.46]+0x595e>
					wait_for_user_state = 0;
				} else {
					lcd_set_cursor(1, 4);
   184c2:	64 e0       	ldi	r22, 0x04	; 4
   184c4:	81 e0       	ldi	r24, 0x01	; 1
   184c6:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
					lcd_printf_P(PSTR("%3d"), (int16_t)degHotend(active_extruder));
   184ca:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   184ce:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   184d2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   184d6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   184da:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   184de:	7f 93       	push	r23
   184e0:	6f 93       	push	r22
   184e2:	9f 92       	push	r9
   184e4:	8f 92       	push	r8
   184e6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   184ea:	0f 90       	pop	r0
   184ec:	0f 90       	pop	r0
   184ee:	0f 90       	pop	r0
   184f0:	0f 90       	pop	r0
   184f2:	50 cf       	rjmp	.-352    	; 0x18394 <process_commands() [clone .part.46]+0x5980>
            }
            M600_load_filament(filament_name);
        }
        else // MMU is enabled
        {
            if (!automatic) mmu_M600_filament_change_screen(eject_slot);
   184f4:	11 11       	cpse	r17, r1
   184f6:	03 c0       	rjmp	.+6      	; 0x184fe <process_commands() [clone .part.46]+0x5aea>
   184f8:	8b 2d       	mov	r24, r11
   184fa:	0e 94 96 8c 	call	0x1192c	; 0x1192c <mmu_M600_filament_change_screen(unsigned char)>
            mmu_M600_load_filament(automatic);
   184fe:	81 2f       	mov	r24, r17
   18500:	0e 94 95 77 	call	0xef2a	; 0xef2a <mmu_M600_load_filament(bool)>
   18504:	07 cf       	rjmp	.-498    	; 0x18314 <process_commands() [clone .part.46]+0x5900>
                    cursor_pos--;
                else
                    Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
            } else if (lcd_encoder > 0) {
                // Rotating knob clockwise
                if (cursor_pos < 3)
   18506:	03 30       	cpi	r16, 0x03	; 3
   18508:	10 f4       	brcc	.+4      	; 0x1850e <process_commands() [clone .part.46]+0x5afa>
                    cursor_pos++;
   1850a:	0f 5f       	subi	r16, 0xFF	; 255
   1850c:	49 c0       	rjmp	.+146    	; 0x185a0 <process_commands() [clone .part.46]+0x5b8c>
                else
                    Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   1850e:	87 e0       	ldi	r24, 0x07	; 7
   18510:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
   18514:	45 c0       	rjmp	.+138    	; 0x185a0 <process_commands() [clone .part.46]+0x5b8c>
                mmu_M600_filament_change_screen(eject_slot);

                // After user clicks knob, MMU will load the filament
                mmu_M600_load_filament(false);
            } else {
                M600_load_filament_movements(filament_name);
   18516:	ce 01       	movw	r24, r28
   18518:	01 96       	adiw	r24, 0x01	; 1
   1851a:	0e 94 57 72 	call	0xe4ae	; 0xe4ae <M600_load_filament_movements(char const*)>
bool M600_check_state_and_repeat(const char* filament_name)
{
    uint8_t lcd_change_filament_state = 10;
    while (lcd_change_filament_state != 0 && lcd_change_filament_state != 3)
    {
        KEEPALIVE_STATE(PAUSED_FOR_USER);
   1851e:	70 92 be 02 	sts	0x02BE, r7	; 0x8002be <busy_state>


uint8_t lcd_alright() {
    uint8_t cursor_pos = 0;

    lcd_clear();
   18522:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    lcd_puts_at_P(1, 0, _T(MSG_CORRECTLY));
   18526:	89 eb       	ldi	r24, 0xB9	; 185
   18528:	98 e3       	ldi	r25, 0x38	; 56
   1852a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1852e:	ac 01       	movw	r20, r24
   18530:	60 e0       	ldi	r22, 0x00	; 0
   18532:	81 e0       	ldi	r24, 0x01	; 1
   18534:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_puts_at_P(1, 1, _T(MSG_NOT_LOADED));
   18538:	83 ea       	ldi	r24, 0xA3	; 163
   1853a:	98 e3       	ldi	r25, 0x38	; 56
   1853c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18540:	ac 01       	movw	r20, r24
   18542:	61 e0       	ldi	r22, 0x01	; 1
   18544:	81 e0       	ldi	r24, 0x01	; 1
   18546:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_puts_at_P(1, 2, _T(MSG_NOT_COLOR));
   1854a:	8f e8       	ldi	r24, 0x8F	; 143
   1854c:	98 e3       	ldi	r25, 0x38	; 56
   1854e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18552:	ac 01       	movw	r20, r24
   18554:	62 e0       	ldi	r22, 0x02	; 2
   18556:	81 e0       	ldi	r24, 0x01	; 1
   18558:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_puts_at_P(1, 3, _T(MSG_UNLOAD_FILAMENT));
   1855c:	86 e3       	ldi	r24, 0x36	; 54
   1855e:	96 e4       	ldi	r25, 0x46	; 70
   18560:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18564:	ac 01       	movw	r20, r24
   18566:	63 e0       	ldi	r22, 0x03	; 3
   18568:	81 e0       	ldi	r24, 0x01	; 1
   1856a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_putc_at(0, cursor_pos, '>');
   1856e:	4e e3       	ldi	r20, 0x3E	; 62
   18570:	60 e0       	ldi	r22, 0x00	; 0
   18572:	80 e0       	ldi	r24, 0x00	; 0
   18574:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>

    lcd_consume_click();
   18578:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>




uint8_t lcd_alright() {
    uint8_t cursor_pos = 0;
   1857c:	00 e0       	ldi	r16, 0x00	; 0
    lcd_putc_at(0, cursor_pos, '>');

    lcd_consume_click();
    while (1)
    {
        manage_heater();
   1857e:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity(true);
   18582:	81 e0       	ldi	r24, 0x01	; 1
   18584:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>

        if (lcd_encoder)
   18588:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   1858c:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   18590:	00 97       	sbiw	r24, 0x00	; 0
   18592:	d9 f0       	breq	.+54     	; 0x185ca <process_commands() [clone .part.46]+0x5bb6>
        {

            if (lcd_encoder < 0 ) {
   18594:	97 ff       	sbrs	r25, 7
   18596:	b7 cf       	rjmp	.-146    	; 0x18506 <process_commands() [clone .part.46]+0x5af2>
                // Rotating knob counter clockwise
                if (cursor_pos > 0)
   18598:	00 23       	and	r16, r16
   1859a:	09 f4       	brne	.+2      	; 0x1859e <process_commands() [clone .part.46]+0x5b8a>
   1859c:	b8 cf       	rjmp	.-144    	; 0x1850e <process_commands() [clone .part.46]+0x5afa>
                    cursor_pos--;
   1859e:	01 50       	subi	r16, 0x01	; 1
                else
                    Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
            }

            // Update '>' render only
            lcd_puts_at_P(0, 0, PSTR(" \n \n \n "));
   185a0:	46 ef       	ldi	r20, 0xF6	; 246
   185a2:	5d e7       	ldi	r21, 0x7D	; 125
   185a4:	60 e0       	ldi	r22, 0x00	; 0
   185a6:	80 e0       	ldi	r24, 0x00	; 0
   185a8:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
            lcd_putc_at(0, cursor_pos, '>');
   185ac:	4e e3       	ldi	r20, 0x3E	; 62
   185ae:	60 2f       	mov	r22, r16
   185b0:	80 e0       	ldi	r24, 0x00	; 0
   185b2:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>

            // Consume rotation event and make feedback sound
            lcd_encoder = 0;
   185b6:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   185ba:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
            _delay(100);
   185be:	64 e6       	ldi	r22, 0x64	; 100
   185c0:	70 e0       	ldi	r23, 0x00	; 0
   185c2:	80 e0       	ldi	r24, 0x00	; 0
   185c4:	90 e0       	ldi	r25, 0x00	; 0
   185c6:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
        }

        if (lcd_clicked())
   185ca:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   185ce:	88 23       	and	r24, r24
   185d0:	b1 f2       	breq	.-84     	; 0x1857e <process_commands() [clone .part.46]+0x5b6a>
        {
            lcd_clear();
   185d2:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
            lcd_return_to_status();
   185d6:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
        lcd_change_filament_state = lcd_alright();
        KEEPALIVE_STATE(IN_HANDLER);
   185da:	a0 92 be 02 	sts	0x02BE, r10	; 0x8002be <busy_state>
        switch(lcd_change_filament_state)
   185de:	02 30       	cpi	r16, 0x02	; 2
   185e0:	b1 f0       	breq	.+44     	; 0x1860e <process_commands() [clone .part.46]+0x5bfa>
   185e2:	03 30       	cpi	r16, 0x03	; 3
   185e4:	09 f4       	brne	.+2      	; 0x185e8 <process_commands() [clone .part.46]+0x5bd4>
   185e6:	f8 c0       	rjmp	.+496    	; 0x187d8 <process_commands() [clone .part.46]+0x5dc4>
   185e8:	01 30       	cpi	r16, 0x01	; 1
   185ea:	81 f5       	brne	.+96     	; 0x1864c <process_commands() [clone .part.46]+0x5c38>
        {
        // Filament failed to load so load it again
        case 1:
            if (MMU2::mmu2.Enabled()) {
   185ec:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   185f0:	81 30       	cpi	r24, 0x01	; 1
   185f2:	09 f0       	breq	.+2      	; 0x185f6 <process_commands() [clone .part.46]+0x5be2>
   185f4:	90 cf       	rjmp	.-224    	; 0x18516 <process_commands() [clone .part.46]+0x5b02>
                uint8_t eject_slot = MMU2::mmu2.get_current_tool();
   185f6:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   185fa:	08 2f       	mov	r16, r24

                // Unload filament
                mmu_M600_unload_filament();
   185fc:	0e 94 9e 72 	call	0xe53c	; 0xe53c <mmu_M600_unload_filament()>

                // Ask to remove any old filament and load new
                mmu_M600_filament_change_screen(eject_slot);
   18600:	80 2f       	mov	r24, r16
   18602:	0e 94 96 8c 	call	0x1192c	; 0x1192c <mmu_M600_filament_change_screen(unsigned char)>

                // After user clicks knob, MMU will load the filament
                mmu_M600_load_filament(false);
   18606:	80 e0       	ldi	r24, 0x00	; 0
   18608:	0e 94 95 77 	call	0xef2a	; 0xef2a <mmu_M600_load_filament(bool)>
   1860c:	88 cf       	rjmp	.-240    	; 0x1851e <process_commands() [clone .part.46]+0x5b0a>
            }
            break;

        // Filament loaded properly but color is not clear
        case 2:
            st_synchronize();
   1860e:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            load_filament_final_feed();
   18612:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>


void lcd_loading_color() {
	//we are extruding 25mm with feedrate 200mm/min -> 7.5 seconds for whole action, 0.375 s for one character

  lcd_clear();
   18616:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

  lcd_puts_at_P(0, 0, _T(MSG_LOADING_COLOR));
   1861a:	8d ec       	ldi	r24, 0xCD	; 205
   1861c:	98 e3       	ldi	r25, 0x38	; 56
   1861e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18622:	ac 01       	movw	r20, r24
   18624:	60 e0       	ldi	r22, 0x00	; 0
   18626:	80 e0       	ldi	r24, 0x00	; 0
   18628:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  lcd_puts_at_P(0, 2, _T(MSG_PLEASE_WAIT));
   1862c:	89 e9       	ldi	r24, 0x99	; 153
   1862e:	99 e3       	ldi	r25, 0x39	; 57
   18630:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18634:	ac 01       	movw	r20, r24
   18636:	62 e0       	ldi	r22, 0x02	; 2
   18638:	80 e0       	ldi	r24, 0x00	; 0
   1863a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  lcd_loading_progress_bar((FILAMENTCHANGE_FINALFEED * 1000ul) / FILAMENTCHANGE_EFEED_FINAL); //show progress bar during filament loading slow sequence
   1863e:	87 e9       	ldi	r24, 0x97	; 151
   18640:	9d e1       	ldi	r25, 0x1D	; 29
   18642:	0f 94 7b 21 	call	0x242f6	; 0x242f6 <lcd_loading_progress_bar(unsigned int) [clone .lto_priv.560]>
            lcd_loading_color();
            st_synchronize();
   18646:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   1864a:	69 cf       	rjmp	.-302    	; 0x1851e <process_commands() [clone .part.46]+0x5b0a>
}


void lcd_change_success() {

  lcd_clear();
   1864c:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

  lcd_puts_at_P(0, 2, _T(MSG_CHANGE_SUCCESS));
   18650:	8d ed       	ldi	r24, 0xDD	; 221
   18652:	98 e3       	ldi	r25, 0x38	; 56
   18654:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18658:	ac 01       	movw	r20, r24
   1865a:	62 e0       	ldi	r22, 0x02	; 2
   1865c:	80 e0       	ldi	r24, 0x00	; 0
   1865e:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

//! @brief Wait for user to check the state
bool M600_check_state_and_repeat(const char* filament_name)
{
    uint8_t lcd_change_filament_state = 10;
    while (lcd_change_filament_state != 0 && lcd_change_filament_state != 3)
   18662:	00 23       	and	r16, r16
   18664:	19 f0       	breq	.+6      	; 0x1866c <process_commands() [clone .part.46]+0x5c58>
   18666:	03 30       	cpi	r16, 0x03	; 3
   18668:	09 f0       	breq	.+2      	; 0x1866c <process_commands() [clone .part.46]+0x5c58>
   1866a:	59 cf       	rjmp	.-334    	; 0x1851e <process_commands() [clone .part.46]+0x5b0a>
   1866c:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
        if (!automatic)
            repeat = M600_check_state_and_repeat(filament_name);
    }
    while (repeat);

    lcd_update_enable(true);
   18670:	81 e0       	ldi	r24, 0x01	; 1
   18672:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>

    // Not let's go back to print
    fanSpeed = saved_fan_speed;
   18676:	80 91 ab 05 	lds	r24, 0x05AB	; 0x8005ab <saved_fan_speed>
   1867a:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>

    // Feed a little of filament to stabilize pressure
    if (!automatic) {
   1867e:	11 11       	cpse	r17, r1
   18680:	27 c0       	rjmp	.+78     	; 0x186d0 <process_commands() [clone .part.46]+0x5cbc>
        if (printingIsPaused())
   18682:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   18686:	c0 90 9e 06 	lds	r12, 0x069E	; 0x80069e <current_position+0xc>
   1868a:	d0 90 9f 06 	lds	r13, 0x069F	; 0x80069f <current_position+0xd>
   1868e:	e0 90 a0 06 	lds	r14, 0x06A0	; 0x8006a0 <current_position+0xe>
   18692:	f0 90 a1 06 	lds	r15, 0x06A1	; 0x8006a1 <current_position+0xf>
   18696:	88 23       	and	r24, r24
   18698:	09 f4       	brne	.+2      	; 0x1869c <process_commands() [clone .part.46]+0x5c88>
   1869a:	a3 c0       	rjmp	.+326    	; 0x187e2 <process_commands() [clone .part.46]+0x5dce>
        {
            // Return to retracted state during a pause
            // @todo is retraction really needed? E-position is reverted a few lines below
            current_position[E_AXIS] -= default_retraction;
   1869c:	20 e0       	ldi	r18, 0x00	; 0
   1869e:	30 e0       	ldi	r19, 0x00	; 0
   186a0:	40 e8       	ldi	r20, 0x80	; 128
   186a2:	5f e3       	ldi	r21, 0x3F	; 63
   186a4:	c7 01       	movw	r24, r14
   186a6:	b6 01       	movw	r22, r12
   186a8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   186ac:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   186b0:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   186b4:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   186b8:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
            plan_buffer_line_curposXYZE(FILAMENTCHANGE_RFEED);
   186bc:	60 e0       	ldi	r22, 0x00	; 0
   186be:	70 e0       	ldi	r23, 0x00	; 0
   186c0:	88 ee       	ldi	r24, 0xE8	; 232
   186c2:	92 e4       	ldi	r25, 0x42	; 66
   186c4:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   186c8:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   186cc:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
            plan_buffer_line_curposXYZE(FILAMENTCHANGE_EXFEED);
        }
    }

    // Move XY back
    plan_buffer_line(saved_pos[X_AXIS], saved_pos[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_XYFEED);
   186d0:	e0 90 9a 06 	lds	r14, 0x069A	; 0x80069a <current_position+0x8>
   186d4:	f0 90 9b 06 	lds	r15, 0x069B	; 0x80069b <current_position+0x9>
   186d8:	00 91 9c 06 	lds	r16, 0x069C	; 0x80069c <current_position+0xa>
   186dc:	10 91 9d 06 	lds	r17, 0x069D	; 0x80069d <current_position+0xb>
   186e0:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
   186e4:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
   186e8:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
   186ec:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
   186f0:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
   186f4:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
   186f8:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
   186fc:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
   18700:	1f 92       	push	r1
   18702:	1f 92       	push	r1
   18704:	1f 92       	push	r1
   18706:	1f 92       	push	r1
   18708:	81 2c       	mov	r8, r1
   1870a:	91 2c       	mov	r9, r1
   1870c:	e8 e4       	ldi	r30, 0x48	; 72
   1870e:	ae 2e       	mov	r10, r30
   18710:	e2 e4       	ldi	r30, 0x42	; 66
   18712:	be 2e       	mov	r11, r30
   18714:	fe e9       	ldi	r31, 0x9E	; 158
   18716:	cf 2e       	mov	r12, r31
   18718:	f6 e0       	ldi	r31, 0x06	; 6
   1871a:	df 2e       	mov	r13, r31
   1871c:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
    st_synchronize();
   18720:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    // Move Z back
    plan_buffer_line(saved_pos[X_AXIS], saved_pos[Y_AXIS], saved_pos[Z_AXIS], current_position[E_AXIS], FILAMENTCHANGE_ZFEED);
   18724:	e0 90 7b 02 	lds	r14, 0x027B	; 0x80027b <saved_pos+0x8>
   18728:	f0 90 7c 02 	lds	r15, 0x027C	; 0x80027c <saved_pos+0x9>
   1872c:	00 91 7d 02 	lds	r16, 0x027D	; 0x80027d <saved_pos+0xa>
   18730:	10 91 7e 02 	lds	r17, 0x027E	; 0x80027e <saved_pos+0xb>
   18734:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
   18738:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
   1873c:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
   18740:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
   18744:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
   18748:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
   1874c:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
   18750:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
   18754:	1f 92       	push	r1
   18756:	1f 92       	push	r1
   18758:	1f 92       	push	r1
   1875a:	1f 92       	push	r1
   1875c:	81 2c       	mov	r8, r1
   1875e:	91 2c       	mov	r9, r1
   18760:	a0 e7       	ldi	r26, 0x70	; 112
   18762:	aa 2e       	mov	r10, r26
   18764:	a1 e4       	ldi	r26, 0x41	; 65
   18766:	ba 2e       	mov	r11, r26
   18768:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
    st_synchronize();
   1876c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    // Set E position to original
    plan_set_e_position(saved_pos[E_AXIS]);
   18770:	8f e7       	ldi	r24, 0x7F	; 127
   18772:	92 e0       	ldi	r25, 0x02	; 2
   18774:	0f 94 00 65 	call	0x2ca00	; 0x2ca00 <plan_set_e_position(float const&)>

    memcpy(current_position, saved_pos, sizeof(saved_pos));
   18778:	80 e1       	ldi	r24, 0x10	; 16
   1877a:	e3 e7       	ldi	r30, 0x73	; 115
   1877c:	f2 e0       	ldi	r31, 0x02	; 2
   1877e:	a2 e9       	ldi	r26, 0x92	; 146
   18780:	b6 e0       	ldi	r27, 0x06	; 6
   18782:	01 90       	ld	r0, Z+
   18784:	0d 92       	st	X+, r0
   18786:	8a 95       	dec	r24
   18788:	e1 f7       	brne	.-8      	; 0x18782 <process_commands() [clone .part.46]+0x5d6e>
    set_destination_to_current();
   1878a:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>

    // Recover feed rate
    feedmultiply = saved_feedmultiply2;
   1878e:	80 91 71 03 	lds	r24, 0x0371	; 0x800371 <saved_feedmultiply2>
   18792:	90 91 72 03 	lds	r25, 0x0372	; 0x800372 <saved_feedmultiply2+0x1>
   18796:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
   1879a:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
    enquecommandf_P(MSG_M220, saved_feedmultiply2);
   1879e:	9f 93       	push	r25
   187a0:	8f 93       	push	r24
   187a2:	82 e8       	ldi	r24, 0x82	; 130
   187a4:	9d e6       	ldi	r25, 0x6D	; 109
   187a6:	9f 93       	push	r25
   187a8:	8f 93       	push	r24
   187aa:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>

    if (printingIsPaused()) {
   187ae:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   187b2:	0f b6       	in	r0, 0x3f	; 63
   187b4:	f8 94       	cli
   187b6:	de bf       	out	0x3e, r29	; 62
   187b8:	0f be       	out	0x3f, r0	; 63
   187ba:	cd bf       	out	0x3d, r28	; 61
   187bc:	88 23       	and	r24, r24
   187be:	41 f1       	breq	.+80     	; 0x18810 <process_commands() [clone .part.46]+0x5dfc>
      lcd_setstatuspgm(_T(MSG_PRINT_PAUSED));
   187c0:	82 ec       	ldi	r24, 0xC2	; 194
   187c2:	99 e4       	ldi	r25, 0x49	; 73
   187c4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   187c8:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    }
    else {
      lcd_setstatuspgm(MSG_WELCOME);
      SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_RESUMED);
    }
    custom_message_type = CustomMsg::Status;
   187cc:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>

void clear_print_state_in_ram()
{
    // Set flag to false in order to avoid using
    // the saved values during power panic
    isPartialBackupAvailable = false;
   187d0:	10 92 a2 06 	sts	0x06A2, r1	; 0x8006a2 <isPartialBackupAvailable>
   187d4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            st_synchronize();
            break;

        // Unload filament
        case 3:
           return true;
   187d8:	31 e0       	ldi	r19, 0x01	; 1
   187da:	67 96       	adiw	r28, 0x17	; 23
   187dc:	3f af       	std	Y+63, r19	; 0x3f
   187de:	67 97       	sbiw	r28, 0x17	; 23
   187e0:	9e cd       	rjmp	.-1220   	; 0x1831e <process_commands() [clone .part.46]+0x590a>
            setTargetHotend(0);
        }
        else
        {
            // Feed a little of filament to stabilize pressure
            current_position[E_AXIS] += FILAMENTCHANGE_RECFEED;
   187e2:	20 e0       	ldi	r18, 0x00	; 0
   187e4:	30 e0       	ldi	r19, 0x00	; 0
   187e6:	40 ea       	ldi	r20, 0xA0	; 160
   187e8:	50 e4       	ldi	r21, 0x40	; 64
   187ea:	c7 01       	movw	r24, r14
   187ec:	b6 01       	movw	r22, r12
   187ee:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   187f2:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   187f6:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   187fa:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   187fe:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
            plan_buffer_line_curposXYZE(FILAMENTCHANGE_EXFEED);
   18802:	60 e0       	ldi	r22, 0x00	; 0
   18804:	70 e0       	ldi	r23, 0x00	; 0
   18806:	80 e0       	ldi	r24, 0x00	; 0
   18808:	90 e4       	ldi	r25, 0x40	; 64
   1880a:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
   1880e:	60 cf       	rjmp	.-320    	; 0x186d0 <process_commands() [clone .part.46]+0x5cbc>

    if (printingIsPaused()) {
      lcd_setstatuspgm(_T(MSG_PRINT_PAUSED));
    }
    else {
      lcd_setstatuspgm(MSG_WELCOME);
   18810:	8f ec       	ldi	r24, 0xCF	; 207
   18812:	9f e6       	ldi	r25, 0x6F	; 111
   18814:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
      SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_RESUMED);
   18818:	8f e4       	ldi	r24, 0x4F	; 79
   1881a:	9a e6       	ldi	r25, 0x6A	; 106
   1881c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   18820:	d5 cf       	rjmp	.-86     	; 0x187cc <process_commands() [clone .part.46]+0x5db8>
        SERIAL_ECHOPGM("Y:");
        SERIAL_ECHOLN(pause_position[Y_AXIS]);
        SERIAL_ECHOPGM("Z:");
        SERIAL_ECHOLN(pause_position[Z_AXIS]);
*/
        if (!printingIsPaused()) {
   18822:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   18826:	81 11       	cpse	r24, r1
   18828:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            st_synchronize();
   1882c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            ClearToSend(); //send OK even before the command finishes executing because we want to make sure it is not skipped because of cmdqueue_pop_front();
   18830:	0e 94 b1 7e 	call	0xfd62	; 0xfd62 <ClearToSend()>
            cmdqueue_pop_front(); //trick because we want skip this command (M601) after restore
   18834:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
            lcd_pause_print();
   18838:	0f 94 64 2a 	call	0x254c8	; 0x254c8 <lcd_pause_print()>
   1883c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    /*!
    ### M602 - Resume print <a href="https://reprap.org/wiki/G-code#M602:_Resume_print">M602: Resume print</a>
    */
    case 602:
    {
        if (printingIsPaused()) lcd_resume_print();
   18840:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   18844:	88 23       	and	r24, r24
   18846:	11 f4       	brne	.+4      	; 0x1884c <process_commands() [clone .part.46]+0x5e38>
   18848:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   1884c:	0c 94 3b b1 	jmp	0x16276	; 0x16276 <process_commands() [clone .part.46]+0x3862>
    /*!
    ### M603 - Stop print <a href="https://reprap.org/wiki/G-code#M603:_Stop_print">M603: Stop print</a>
    */

    case 603: {
        print_stop();
   18850:	60 e0       	ldi	r22, 0x00	; 0
   18852:	80 e0       	ldi	r24, 0x00	; 0
   18854:	0e 94 7f f5 	call	0x1eafe	; 0x1eafe <print_stop(bool, bool)>
   18858:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
	float z_val = 0;
	char strLabel[8];
	uint8_t iBedC = 0;
	uint8_t iPindaC = 0;
	bool bIsActive=false;
	strLabel[7] = '\0'; // null terminate.
   1885c:	18 86       	std	Y+8, r1	; 0x08
	size_t max_sheets = sizeof(EEPROM_Sheets_base->s)/sizeof(EEPROM_Sheets_base->s[0]);

	if (code_seen('S')) {
   1885e:	83 e5       	ldi	r24, 0x53	; 83
   18860:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18864:	88 23       	and	r24, r24
   18866:	b1 f0       	breq	.+44     	; 0x18894 <process_commands() [clone .part.46]+0x5e80>
		iSel = code_value_uint8();
   18868:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   1886c:	18 2f       	mov	r17, r24
		if (iSel>=max_sheets)
   1886e:	88 30       	cpi	r24, 0x08	; 8
   18870:	b0 f0       	brcs	.+44     	; 0x1889e <process_commands() [clone .part.46]+0x5e8a>
		{
			SERIAL_PROTOCOLPGM("Invalid sheet ID. Allowed: 0..");
   18872:	8c e7       	ldi	r24, 0x7C	; 124
   18874:	95 e8       	ldi	r25, 0x85	; 133
   18876:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   1887a:	4a e0       	ldi	r20, 0x0A	; 10
   1887c:	67 e0       	ldi	r22, 0x07	; 7
   1887e:	70 e0       	ldi	r23, 0x00	; 0
   18880:	80 e0       	ldi	r24, 0x00	; 0
   18882:	90 e0       	ldi	r25, 0x00	; 0
   18884:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
			SERIAL_PROTOCOL(max_sheets-1);
			SERIAL_PROTOCOLLN("");
   18888:	89 ef       	ldi	r24, 0xF9	; 249
   1888a:	92 e0       	ldi	r25, 0x02	; 2
   1888c:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   18890:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
			break; // invalid sheet ID
		}
	} else {
		iSel = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
   18894:	81 ea       	ldi	r24, 0xA1	; 161
   18896:	9d e0       	ldi	r25, 0x0D	; 13
   18898:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1889c:	18 2f       	mov	r17, r24
	}

	if (code_seen('Z')){
   1889e:	8a e5       	ldi	r24, 0x5A	; 90
   188a0:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   188a4:	88 23       	and	r24, r24
   188a6:	09 f4       	brne	.+2      	; 0x188aa <process_commands() [clone .part.46]+0x5e96>
   188a8:	d7 c0       	rjmp	.+430    	; 0x18a58 <process_commands() [clone .part.46]+0x6044>
		z_val = code_value();
   188aa:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   188ae:	2b 01       	movw	r4, r22
   188b0:	3c 01       	movw	r6, r24
		zraw = z_val*cs.axis_steps_per_mm[Z_AXIS];
   188b2:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   188b6:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   188ba:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   188be:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   188c2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   188c6:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   188ca:	6b 01       	movw	r12, r22
		if ((zraw < Z_BABYSTEP_MIN) || (zraw > Z_BABYSTEP_MAX))
   188cc:	9b 01       	movw	r18, r22
   188ce:	21 56       	subi	r18, 0x61	; 97
   188d0:	30 4f       	sbci	r19, 0xF0	; 240
   188d2:	20 3a       	cpi	r18, 0xA0	; 160
   188d4:	3f 40       	sbci	r19, 0x0F	; 15
   188d6:	30 f0       	brcs	.+12     	; 0x188e4 <process_commands() [clone .part.46]+0x5ed0>
		{
			SERIAL_PROTOCOLLNPGM(" Z VALUE OUT OF RANGE");
   188d8:	86 e6       	ldi	r24, 0x66	; 102
   188da:	95 e8       	ldi	r25, 0x85	; 133
   188dc:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   188e0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
			break;
		}
		eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[iSel].z_offset)),zraw);
   188e4:	5b e0       	ldi	r21, 0x0B	; 11
   188e6:	15 9f       	mul	r17, r21
   188e8:	90 01       	movw	r18, r0
   188ea:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   188ec:	c9 01       	movw	r24, r18
   188ee:	80 5b       	subi	r24, 0xB0	; 176
   188f0:	92 4f       	sbci	r25, 0xF2	; 242
   188f2:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
	{
		zraw = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[iSel].z_offset)));
		z_val = ((float)zraw/cs.axis_steps_per_mm[Z_AXIS]);
	}

	if (code_seen('L'))
   188f6:	8c e4       	ldi	r24, 0x4C	; 76
   188f8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   188fc:	bb e0       	ldi	r27, 0x0B	; 11
   188fe:	1b 9f       	mul	r17, r27
   18900:	70 01       	movw	r14, r0
   18902:	11 24       	eor	r1, r1
   18904:	57 01       	movw	r10, r14
   18906:	e7 eb       	ldi	r30, 0xB7	; 183
   18908:	ae 1a       	sub	r10, r30
   1890a:	e2 ef       	ldi	r30, 0xF2	; 242
   1890c:	be 0a       	sbc	r11, r30
   1890e:	88 23       	and	r24, r24
   18910:	09 f4       	brne	.+2      	; 0x18914 <process_commands() [clone .part.46]+0x5f00>
   18912:	be c0       	rjmp	.+380    	; 0x18a90 <process_commands() [clone .part.46]+0x607c>
	{
		char *src = strchr_pointer + 1;
   18914:	e0 91 95 03 	lds	r30, 0x0395	; 0x800395 <strchr_pointer>
   18918:	f0 91 96 03 	lds	r31, 0x0396	; 0x800396 <strchr_pointer+0x1>
   1891c:	31 96       	adiw	r30, 0x01	; 1
   1891e:	bf 01       	movw	r22, r30
		while (*src == ' ') ++src;
   18920:	81 91       	ld	r24, Z+
   18922:	80 32       	cpi	r24, 0x20	; 32
   18924:	e1 f3       	breq	.-8      	; 0x1891e <process_commands() [clone .part.46]+0x5f0a>
		if (*src != '\0')
   18926:	88 23       	and	r24, r24
   18928:	31 f0       	breq	.+12     	; 0x18936 <process_commands() [clone .part.46]+0x5f22>
		{
			strncpy(strLabel,src,7);
   1892a:	47 e0       	ldi	r20, 0x07	; 7
   1892c:	50 e0       	ldi	r21, 0x00	; 0
   1892e:	ce 01       	movw	r24, r28
   18930:	01 96       	adiw	r24, 0x01	; 1
   18932:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   18936:	47 e0       	ldi	r20, 0x07	; 7
   18938:	50 e0       	ldi	r21, 0x00	; 0
   1893a:	b5 01       	movw	r22, r10
   1893c:	ce 01       	movw	r24, r28
   1893e:	01 96       	adiw	r24, 0x01	; 1
   18940:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
	else
	{
		eeprom_read_block(strLabel, EEPROM_Sheets_base->s[iSel].name, sizeof(Sheet::name));
	}

	if (code_seen('B'))
   18944:	82 e4       	ldi	r24, 0x42	; 66
   18946:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1894a:	57 01       	movw	r10, r14
   1894c:	fe ea       	ldi	r31, 0xAE	; 174
   1894e:	af 1a       	sub	r10, r31
   18950:	f2 ef       	ldi	r31, 0xF2	; 242
   18952:	bf 0a       	sbc	r11, r31
   18954:	88 23       	and	r24, r24
   18956:	09 f4       	brne	.+2      	; 0x1895a <process_commands() [clone .part.46]+0x5f46>
   18958:	a3 c0       	rjmp	.+326    	; 0x18aa0 <process_commands() [clone .part.46]+0x608c>
	{
		iBedC = code_value_uint8();
   1895a:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   1895e:	98 2e       	mov	r9, r24
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   18960:	68 2f       	mov	r22, r24
   18962:	c5 01       	movw	r24, r10
   18964:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	else
	{
		iBedC = eeprom_read_byte(&EEPROM_Sheets_base->s[iSel].bed_temp);
	}

	if (code_seen('P'))
   18968:	80 e5       	ldi	r24, 0x50	; 80
   1896a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1896e:	2d ea       	ldi	r18, 0xAD	; 173
   18970:	e2 1a       	sub	r14, r18
   18972:	22 ef       	ldi	r18, 0xF2	; 242
   18974:	f2 0a       	sbc	r15, r18
   18976:	88 23       	and	r24, r24
   18978:	09 f4       	brne	.+2      	; 0x1897c <process_commands() [clone .part.46]+0x5f68>
   1897a:	97 c0       	rjmp	.+302    	; 0x18aaa <process_commands() [clone .part.46]+0x6096>
	{
		iPindaC = code_value_uint8();
   1897c:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   18980:	b8 2e       	mov	r11, r24
   18982:	68 2f       	mov	r22, r24
   18984:	c7 01       	movw	r24, r14
   18986:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	else
	{
		iPindaC = eeprom_read_byte(&EEPROM_Sheets_base->s[iSel].pinda_temp);
	}

	if (code_seen('A'))
   1898a:	81 e4       	ldi	r24, 0x41	; 65
   1898c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18990:	88 23       	and	r24, r24
   18992:	09 f4       	brne	.+2      	; 0x18996 <process_commands() [clone .part.46]+0x5f82>
   18994:	8f c0       	rjmp	.+286    	; 0x18ab4 <process_commands() [clone .part.46]+0x60a0>
	{
		bIsActive |= code_value_uint8() || (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == iSel);
   18996:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   1899a:	81 11       	cpse	r24, r1
   1899c:	06 c0       	rjmp	.+12     	; 0x189aa <process_commands() [clone .part.46]+0x5f96>
   1899e:	81 ea       	ldi	r24, 0xA1	; 161
   189a0:	9d e0       	ldi	r25, 0x0D	; 13
   189a2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   189a6:	18 13       	cpse	r17, r24
   189a8:	8d c0       	rjmp	.+282    	; 0x18ac4 <process_commands() [clone .part.46]+0x60b0>
		if(bIsActive && eeprom_is_sheet_initialized(iSel)) {
   189aa:	81 2f       	mov	r24, r17
   189ac:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   189b0:	08 2f       	mov	r16, r24
   189b2:	88 23       	and	r24, r24
   189b4:	29 f0       	breq	.+10     	; 0x189c0 <process_commands() [clone .part.46]+0x5fac>
   189b6:	61 2f       	mov	r22, r17
   189b8:	81 ea       	ldi	r24, 0xA1	; 161
   189ba:	9d e0       	ldi	r25, 0x0D	; 13
   189bc:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	else
	{
		bIsActive = (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == iSel);
	}

	SERIAL_PROTOCOLPGM("Sheet ");
   189c0:	8f e5       	ldi	r24, 0x5F	; 95
   189c2:	95 e8       	ldi	r25, 0x85	; 133
   189c4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   189c8:	61 2f       	mov	r22, r17
   189ca:	70 e0       	ldi	r23, 0x00	; 0
   189cc:	90 e0       	ldi	r25, 0x00	; 0
   189ce:	80 e0       	ldi	r24, 0x00	; 0
   189d0:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
	SERIAL_PROTOCOL((int)iSel);
	if (!eeprom_is_sheet_initialized(iSel))
   189d4:	81 2f       	mov	r24, r17
   189d6:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   189da:	81 11       	cpse	r24, r1
   189dc:	04 c0       	rjmp	.+8      	; 0x189e6 <process_commands() [clone .part.46]+0x5fd2>
		SERIAL_PROTOCOLLNPGM(" NOT INITIALIZED");
   189de:	8e e4       	ldi	r24, 0x4E	; 78
   189e0:	95 e8       	ldi	r25, 0x85	; 133
   189e2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>


	SERIAL_PROTOCOLPGM(" Z");
   189e6:	8b e4       	ldi	r24, 0x4B	; 75
   189e8:	95 e8       	ldi	r25, 0x85	; 133
   189ea:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   189ee:	44 e0       	ldi	r20, 0x04	; 4
   189f0:	c3 01       	movw	r24, r6
   189f2:	b2 01       	movw	r22, r4
   189f4:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
	SERIAL_PROTOCOL_F(z_val,4);
	SERIAL_PROTOCOLPGM(" R");
   189f8:	88 e4       	ldi	r24, 0x48	; 72
   189fa:	95 e8       	ldi	r25, 0x85	; 133
   189fc:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   18a00:	b6 01       	movw	r22, r12
   18a02:	dd 0c       	add	r13, r13
   18a04:	88 0b       	sbc	r24, r24
   18a06:	99 0b       	sbc	r25, r25
   18a08:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
	SERIAL_PROTOCOL((int)zraw);
	SERIAL_PROTOCOLPGM(" L");
   18a0c:	85 e4       	ldi	r24, 0x45	; 69
   18a0e:	95 e8       	ldi	r25, 0x85	; 133
   18a10:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   18a14:	ce 01       	movw	r24, r28
   18a16:	01 96       	adiw	r24, 0x01	; 1
   18a18:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
	SERIAL_PROTOCOL(strLabel);
	SERIAL_PROTOCOLPGM(" B");
   18a1c:	82 e4       	ldi	r24, 0x42	; 66
   18a1e:	95 e8       	ldi	r25, 0x85	; 133
   18a20:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   18a24:	69 2d       	mov	r22, r9
   18a26:	70 e0       	ldi	r23, 0x00	; 0
   18a28:	90 e0       	ldi	r25, 0x00	; 0
   18a2a:	80 e0       	ldi	r24, 0x00	; 0
   18a2c:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
	SERIAL_PROTOCOL((int)iBedC);
	SERIAL_PROTOCOLPGM(" P");
   18a30:	8f e3       	ldi	r24, 0x3F	; 63
   18a32:	95 e8       	ldi	r25, 0x85	; 133
   18a34:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   18a38:	6b 2d       	mov	r22, r11
   18a3a:	70 e0       	ldi	r23, 0x00	; 0
   18a3c:	90 e0       	ldi	r25, 0x00	; 0
   18a3e:	80 e0       	ldi	r24, 0x00	; 0
   18a40:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
	SERIAL_PROTOCOL((int)iPindaC);
	SERIAL_PROTOCOLPGM(" A");
   18a44:	8c e3       	ldi	r24, 0x3C	; 60
   18a46:	95 e8       	ldi	r25, 0x85	; 133
   18a48:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_PROTOCOLLN((int)bIsActive);
   18a4c:	80 2f       	mov	r24, r16
   18a4e:	90 e0       	ldi	r25, 0x00	; 0
   18a50:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
   18a54:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		}
		eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[iSel].z_offset)),zraw);
	}
	else
	{
		zraw = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[iSel].z_offset)));
   18a58:	ab e0       	ldi	r26, 0x0B	; 11
   18a5a:	1a 9f       	mul	r17, r26
   18a5c:	c0 01       	movw	r24, r0
   18a5e:	11 24       	eor	r1, r1
   18a60:	80 5b       	subi	r24, 0xB0	; 176
   18a62:	92 4f       	sbci	r25, 0xF2	; 242
   18a64:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18a68:	6c 01       	movw	r12, r24
		z_val = ((float)zraw/cs.axis_steps_per_mm[Z_AXIS]);
   18a6a:	bc 01       	movw	r22, r24
   18a6c:	99 0f       	add	r25, r25
   18a6e:	88 0b       	sbc	r24, r24
   18a70:	99 0b       	sbc	r25, r25
   18a72:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   18a76:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   18a7a:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   18a7e:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   18a82:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   18a86:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   18a8a:	2b 01       	movw	r4, r22
   18a8c:	3c 01       	movw	r6, r24
   18a8e:	33 cf       	rjmp	.-410    	; 0x188f6 <process_commands() [clone .part.46]+0x5ee2>
		}
		eeprom_update_block_notify(strLabel,EEPROM_Sheets_base->s[iSel].name,sizeof(Sheet::name));
	}
	else
	{
		eeprom_read_block(strLabel, EEPROM_Sheets_base->s[iSel].name, sizeof(Sheet::name));
   18a90:	47 e0       	ldi	r20, 0x07	; 7
   18a92:	50 e0       	ldi	r21, 0x00	; 0
   18a94:	b5 01       	movw	r22, r10
   18a96:	ce 01       	movw	r24, r28
   18a98:	01 96       	adiw	r24, 0x01	; 1
   18a9a:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
   18a9e:	52 cf       	rjmp	.-348    	; 0x18944 <process_commands() [clone .part.46]+0x5f30>
		iBedC = code_value_uint8();
		eeprom_update_byte_notify(&EEPROM_Sheets_base->s[iSel].bed_temp, iBedC);
	}
	else
	{
		iBedC = eeprom_read_byte(&EEPROM_Sheets_base->s[iSel].bed_temp);
   18aa0:	c5 01       	movw	r24, r10
   18aa2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   18aa6:	98 2e       	mov	r9, r24
   18aa8:	5f cf       	rjmp	.-322    	; 0x18968 <process_commands() [clone .part.46]+0x5f54>
		iPindaC = code_value_uint8();
		eeprom_update_byte_notify(&EEPROM_Sheets_base->s[iSel].pinda_temp, iPindaC);
	}
	else
	{
		iPindaC = eeprom_read_byte(&EEPROM_Sheets_base->s[iSel].pinda_temp);
   18aaa:	c7 01       	movw	r24, r14
   18aac:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   18ab0:	b8 2e       	mov	r11, r24
   18ab2:	6b cf       	rjmp	.-298    	; 0x1898a <process_commands() [clone .part.46]+0x5f76>
            bIsActive = 0;
        }
	}
	else
	{
		bIsActive = (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == iSel);
   18ab4:	81 ea       	ldi	r24, 0xA1	; 161
   18ab6:	9d e0       	ldi	r25, 0x0D	; 13
   18ab8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   18abc:	01 e0       	ldi	r16, 0x01	; 1
   18abe:	18 17       	cp	r17, r24
   18ac0:	09 f4       	brne	.+2      	; 0x18ac4 <process_commands() [clone .part.46]+0x60b0>
   18ac2:	7e cf       	rjmp	.-260    	; 0x189c0 <process_commands() [clone .part.46]+0x5fac>
	{
		bIsActive |= code_value_uint8() || (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == iSel);
		if(bIsActive && eeprom_is_sheet_initialized(iSel)) {
            eeprom_update_byte_notify(&EEPROM_Sheets_base->active_sheet, iSel);
        } else {
            bIsActive = 0;
   18ac4:	00 e0       	ldi	r16, 0x00	; 0
   18ac6:	7c cf       	rjmp	.-264    	; 0x189c0 <process_commands() [clone .part.46]+0x5fac>
		cancel_heatup = false;

		bool is_pinda_cooling = false;
		if (!(CHECK_ALL_HEATERS)) is_pinda_cooling = true;

		while ( ((!is_pinda_cooling) && (!cancel_heatup) && (current_temperature_pinda < set_target_pinda)) || (is_pinda_cooling && (current_temperature_pinda > set_target_pinda)) ) {
   18ac8:	c3 01       	movw	r24, r6
   18aca:	b2 01       	movw	r22, r4
   18acc:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   18ad0:	20 91 99 03 	lds	r18, 0x0399	; 0x800399 <current_temperature_pinda>
   18ad4:	30 91 9a 03 	lds	r19, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   18ad8:	40 91 9b 03 	lds	r20, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   18adc:	50 91 9c 03 	lds	r21, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   18ae0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   18ae4:	87 fd       	sbrc	r24, 7
   18ae6:	02 c0       	rjmp	.+4      	; 0x18aec <process_commands() [clone .part.46]+0x60d8>
   18ae8:	0c 94 5c b0 	jmp	0x160b8	; 0x160b8 <process_commands() [clone .part.46]+0x36a4>
			if ((_millis() - codenum) > 1000) //Print Temp Reading every 1 second while waiting.
   18aec:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   18af0:	68 19       	sub	r22, r8
   18af2:	79 09       	sbc	r23, r9
   18af4:	8a 09       	sbc	r24, r10
   18af6:	9b 09       	sbc	r25, r11
   18af8:	69 3e       	cpi	r22, 0xE9	; 233
   18afa:	73 40       	sbci	r23, 0x03	; 3
   18afc:	81 05       	cpc	r24, r1
   18afe:	91 05       	cpc	r25, r1
   18b00:	c8 f0       	brcs	.+50     	; 0x18b34 <process_commands() [clone .part.46]+0x6120>
			{
				SERIAL_PROTOCOLPGM("P:");
   18b02:	86 e1       	ldi	r24, 0x16	; 22
   18b04:	95 e8       	ldi	r25, 0x85	; 133
   18b06:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   18b0a:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   18b0e:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   18b12:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   18b16:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   18b1a:	41 e0       	ldi	r20, 0x01	; 1
   18b1c:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   18b20:	8f e2       	ldi	r24, 0x2F	; 47
   18b22:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
				SERIAL_PROTOCOL_F(current_temperature_pinda, 1);
				SERIAL_PROTOCOL('/');
				SERIAL_PROTOCOLLN(set_target_pinda);
   18b26:	c8 01       	movw	r24, r16
   18b28:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
				codenum = _millis();
   18b2c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   18b30:	4b 01       	movw	r8, r22
   18b32:	5c 01       	movw	r10, r24
			}
			manage_heater();
   18b34:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
			manage_inactivity();
   18b38:	80 e0       	ldi	r24, 0x00	; 0
   18b3a:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
			lcd_update(0);
   18b3e:	80 e0       	ldi	r24, 0x00	; 0
   18b40:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   18b44:	0c 94 43 b0 	jmp	0x16086	; 0x16086 <process_commands() [clone .part.46]+0x3672>
    - `S` - Microsteps
    - `I` - Table index
    */
	case 861: {
		const char * const _header = PSTR("index, temp, ustep, um");
		if (code_seen('?')) { // ? - Print out current EEPROM offset values
   18b48:	8f e3       	ldi	r24, 0x3F	; 63
   18b4a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18b4e:	88 23       	and	r24, r24
   18b50:	c9 f0       	breq	.+50     	; 0x18b84 <process_commands() [clone .part.46]+0x6170>
			SERIAL_PROTOCOLPGM("PINDA cal status: ");
   18b52:	83 e0       	ldi	r24, 0x03	; 3
   18b54:	95 e8       	ldi	r25, 0x85	; 133
   18b56:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
bool calibration_status_get(CalibrationStatus components);
void calibration_status_set(CalibrationStatus components);
void calibration_status_clear(CalibrationStatus components);

// PINDA has an independent calibration flag
inline bool calibration_status_pinda() { return eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA); }
   18b5a:	86 ea       	ldi	r24, 0xA6	; 166
   18b5c:	9f e0       	ldi	r25, 0x0F	; 15
   18b5e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   18b62:	21 e0       	ldi	r18, 0x01	; 1
   18b64:	30 e0       	ldi	r19, 0x00	; 0
   18b66:	81 11       	cpse	r24, r1
   18b68:	02 c0       	rjmp	.+4      	; 0x18b6e <process_commands() [clone .part.46]+0x615a>
   18b6a:	30 e0       	ldi	r19, 0x00	; 0
   18b6c:	20 e0       	ldi	r18, 0x00	; 0
			SERIAL_PROTOCOLLN(calibration_status_pinda());
   18b6e:	c9 01       	movw	r24, r18
   18b70:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
			SERIAL_PROTOCOLLNRPGM(_header);
   18b74:	8c ee       	ldi	r24, 0xEC	; 236
   18b76:	94 e8       	ldi	r25, 0x84	; 132
   18b78:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
			gcode_M861_print_pinda_cal_eeprom();
   18b7c:	0e 94 0f 77 	call	0xee1e	; 0xee1e <gcode_M861_print_pinda_cal_eeprom()>
   18b80:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		}
		else if (code_seen('!')) { // ! - Set factory default values
   18b84:	81 e2       	ldi	r24, 0x21	; 33
   18b86:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18b8a:	88 23       	and	r24, r24
   18b8c:	49 f1       	breq	.+82     	; 0x18be0 <process_commands() [clone .part.46]+0x61cc>
   18b8e:	61 e0       	ldi	r22, 0x01	; 1
   18b90:	86 ea       	ldi	r24, 0xA6	; 166
   18b92:	9f e0       	ldi	r25, 0x0F	; 15
   18b94:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   18b98:	68 e0       	ldi	r22, 0x08	; 8
   18b9a:	70 e0       	ldi	r23, 0x00	; 0
   18b9c:	80 eb       	ldi	r24, 0xB0	; 176
   18b9e:	9f e0       	ldi	r25, 0x0F	; 15
   18ba0:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   18ba4:	68 e1       	ldi	r22, 0x18	; 24
   18ba6:	70 e0       	ldi	r23, 0x00	; 0
   18ba8:	82 eb       	ldi	r24, 0xB2	; 178
   18baa:	9f e0       	ldi	r25, 0x0F	; 15
   18bac:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   18bb0:	60 e3       	ldi	r22, 0x30	; 48
   18bb2:	70 e0       	ldi	r23, 0x00	; 0
   18bb4:	84 eb       	ldi	r24, 0xB4	; 180
   18bb6:	9f e0       	ldi	r25, 0x0F	; 15
   18bb8:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   18bbc:	60 e5       	ldi	r22, 0x50	; 80
   18bbe:	70 e0       	ldi	r23, 0x00	; 0
   18bc0:	86 eb       	ldi	r24, 0xB6	; 182
   18bc2:	9f e0       	ldi	r25, 0x0F	; 15
   18bc4:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   18bc8:	68 e7       	ldi	r22, 0x78	; 120
   18bca:	70 e0       	ldi	r23, 0x00	; 0
   18bcc:	88 eb       	ldi	r24, 0xB8	; 184
   18bce:	9f e0       	ldi	r25, 0x0F	; 15
   18bd0:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
			eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + 2, z_shift);
			z_shift = 80;   //55C - 200um -  80usteps
			eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + 3, z_shift);
			z_shift = 120;  //60C - 300um - 120usteps
			eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + 4, z_shift);
			SERIAL_PROTOCOLLNPGM("factory restored");
   18bd4:	8b ed       	ldi	r24, 0xDB	; 219
   18bd6:	94 e8       	ldi	r25, 0x84	; 132
   18bd8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   18bdc:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		}
		else if (code_seen('Z')) { // Z - Set all values to 0 (effectively disabling PINDA temperature compensation)
   18be0:	8a e5       	ldi	r24, 0x5A	; 90
   18be2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18be6:	88 23       	and	r24, r24
   18be8:	c1 f0       	breq	.+48     	; 0x18c1a <process_commands() [clone .part.46]+0x6206>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   18bea:	61 e0       	ldi	r22, 0x01	; 1
   18bec:	86 ea       	ldi	r24, 0xA6	; 166
   18bee:	9f e0       	ldi	r25, 0x0F	; 15
   18bf0:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   18bf4:	00 eb       	ldi	r16, 0xB0	; 176
   18bf6:	1f e0       	ldi	r17, 0x0F	; 15
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   18bf8:	70 e0       	ldi	r23, 0x00	; 0
   18bfa:	60 e0       	ldi	r22, 0x00	; 0
   18bfc:	c8 01       	movw	r24, r16
   18bfe:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   18c02:	0e 5f       	subi	r16, 0xFE	; 254
   18c04:	1f 4f       	sbci	r17, 0xFF	; 255
			eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA, 1);
			int16_t z_shift = 0;
			for (uint8_t i = 0; i < 5; i++) {
   18c06:	0a 3b       	cpi	r16, 0xBA	; 186
   18c08:	4f e0       	ldi	r20, 0x0F	; 15
   18c0a:	14 07       	cpc	r17, r20
   18c0c:	a9 f7       	brne	.-22     	; 0x18bf8 <process_commands() [clone .part.46]+0x61e4>
				eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
			}
			SERIAL_PROTOCOLLNPGM("zerorized");
   18c0e:	81 ed       	ldi	r24, 0xD1	; 209
   18c10:	94 e8       	ldi	r25, 0x84	; 132
   18c12:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   18c16:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
		}
		else if (code_seen('S')) { // Sxxx Iyyy - Set compensation ustep value S for compensation table index I
   18c1a:	83 e5       	ldi	r24, 0x53	; 83
   18c1c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18c20:	88 23       	and	r24, r24
   18c22:	21 f1       	breq	.+72     	; 0x18c6c <process_commands() [clone .part.46]+0x6258>
			int16_t usteps = code_value_short();
   18c24:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   18c28:	8c 01       	movw	r16, r24
			if (code_seen('I')) {
   18c2a:	89 e4       	ldi	r24, 0x49	; 73
   18c2c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18c30:	88 23       	and	r24, r24
   18c32:	11 f4       	brne	.+4      	; 0x18c38 <process_commands() [clone .part.46]+0x6224>
   18c34:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
			    uint8_t index = code_value_uint8();
   18c38:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
				if (index < 5) {
   18c3c:	85 30       	cpi	r24, 0x05	; 5
   18c3e:	10 f0       	brcs	.+4      	; 0x18c44 <process_commands() [clone .part.46]+0x6230>
   18c40:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
					eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + index, usteps);
   18c44:	90 e0       	ldi	r25, 0x00	; 0
   18c46:	88 52       	subi	r24, 0x28	; 40
   18c48:	98 4f       	sbci	r25, 0xF8	; 248
   18c4a:	b8 01       	movw	r22, r16
   18c4c:	88 0f       	add	r24, r24
   18c4e:	99 1f       	adc	r25, r25
   18c50:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
					SERIAL_PROTOCOLLNRPGM(MSG_OK);
   18c54:	87 e1       	ldi	r24, 0x17	; 23
   18c56:	9d e6       	ldi	r25, 0x6D	; 109
   18c58:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
					SERIAL_PROTOCOLLNRPGM(_header);
   18c5c:	8c ee       	ldi	r24, 0xEC	; 236
   18c5e:	94 e8       	ldi	r25, 0x84	; 132
   18c60:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
					gcode_M861_print_pinda_cal_eeprom();
   18c64:	0e 94 0f 77 	call	0xee1e	; 0xee1e <gcode_M861_print_pinda_cal_eeprom()>
   18c68:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
				}
			}
		}
		else {
			SERIAL_PROTOCOLLNPGM("no valid command");
   18c6c:	80 ec       	ldi	r24, 0xC0	; 192
   18c6e:	94 e8       	ldi	r25, 0x84	; 132
   18c70:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   18c74:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    */
    case 862: // M862: print checking
    {
        // Read the decimal by multiplying the float value by 10 e.g. 862.1 becomes 8621
        // This method consumes less flash memory compared to checking the string length.
        ClPrintChecking nCommand = static_cast<ClPrintChecking>((uint16_t)(code_value()*10) - 8620u);
   18c78:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   18c7c:	20 e0       	ldi	r18, 0x00	; 0
   18c7e:	30 e0       	ldi	r19, 0x00	; 0
   18c80:	40 e2       	ldi	r20, 0x20	; 32
   18c82:	51 e4       	ldi	r21, 0x41	; 65
   18c84:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   18c88:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   18c8c:	6c 5a       	subi	r22, 0xAC	; 172
        switch(nCommand)
   18c8e:	63 30       	cpi	r22, 0x03	; 3
   18c90:	09 f4       	brne	.+2      	; 0x18c94 <process_commands() [clone .part.46]+0x6280>
   18c92:	a2 c0       	rjmp	.+324    	; 0x18dd8 <process_commands() [clone .part.46]+0x63c4>
   18c94:	98 f5       	brcc	.+102    	; 0x18cfc <process_commands() [clone .part.46]+0x62e8>
   18c96:	61 30       	cpi	r22, 0x01	; 1
   18c98:	09 f4       	brne	.+2      	; 0x18c9c <process_commands() [clone .part.46]+0x6288>
   18c9a:	59 c0       	rjmp	.+178    	; 0x18d4e <process_commands() [clone .part.46]+0x633a>
   18c9c:	62 30       	cpi	r22, 0x02	; 2
   18c9e:	11 f0       	breq	.+4      	; 0x18ca4 <process_commands() [clone .part.46]+0x6290>
   18ca0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        ,(uint8_t)oCheckModel
    );
}

uint16_t nPrinterType(bool bMMu) {
    if (bMMu) {
   18ca4:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
        return pgm_read_word(&_nPrinterMmuType);
   18ca8:	e6 ee       	ldi	r30, 0xE6	; 230
   18caa:	fd e7       	ldi	r31, 0x7D	; 125
        ,(uint8_t)oCheckModel
    );
}

uint16_t nPrinterType(bool bMMu) {
    if (bMMu) {
   18cac:	81 30       	cpi	r24, 0x01	; 1
   18cae:	11 f0       	breq	.+4      	; 0x18cb4 <process_commands() [clone .part.46]+0x62a0>
        return pgm_read_word(&_nPrinterMmuType);
    }
    else {
        return pgm_read_word(&_nPrinterType);
   18cb0:	e8 ee       	ldi	r30, 0xE8	; 232
   18cb2:	fd e7       	ldi	r31, 0x7D	; 125
   18cb4:	05 91       	lpm	r16, Z+
   18cb6:	14 91       	lpm	r17, Z
                    else if(code_seen('Q'))
                         SERIAL_PROTOCOLLN((float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
                    break;
               case ClPrintChecking::_Model: {    // ~ .2
                    uint16_t type = nPrinterType(MMU2::mmu2.Enabled());
                    if(code_seen('P'))
   18cb8:	80 e5       	ldi	r24, 0x50	; 80
   18cba:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18cbe:	88 23       	and	r24, r24
   18cc0:	09 f4       	brne	.+2      	; 0x18cc4 <process_commands() [clone .part.46]+0x62b0>
   18cc2:	79 c0       	rjmp	.+242    	; 0x18db6 <process_commands() [clone .part.46]+0x63a2>
                         {
                         uint16_t nPrinterModel;
                         nPrinterModel=(uint16_t)code_value_long();
   18cc4:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
        menu_submenu(lcd_hw_setup_menu);
    }
}

void printer_model_check(uint16_t nPrinterModel, uint16_t actualPrinterModel) {
    if (oCheckModel == ClCheckMode::_None)
   18cc8:	f0 90 ea 04 	lds	r15, 0x04EA	; 0x8004ea <oCheckModel>
   18ccc:	ff 20       	and	r15, r15
   18cce:	11 f4       	brne	.+4      	; 0x18cd4 <process_commands() [clone .part.46]+0x62c0>
   18cd0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        return;
    if (nPrinterModel == actualPrinterModel)
   18cd4:	60 17       	cp	r22, r16
   18cd6:	71 07       	cpc	r23, r17
   18cd8:	11 f4       	brne	.+4      	; 0x18cde <process_commands() [clone .part.46]+0x62ca>
   18cda:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    // SERIAL_ECHOLNPGM("Printer model differs from the G-code ...");
    // SERIAL_ECHOPGM("actual  : ");
    // SERIAL_ECHOLN(actualPrinterModel);
    // SERIAL_ECHOPGM("expected: ");
    // SERIAL_ECHOLN(nPrinterModel);
    render_M862_warnings(
   18cde:	8d eb       	ldi	r24, 0xBD	; 189
   18ce0:	97 e3       	ldi	r25, 0x37	; 55
   18ce2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18ce6:	8c 01       	movw	r16, r24
   18ce8:	8f e8       	ldi	r24, 0x8F	; 143
   18cea:	97 e3       	ldi	r25, 0x37	; 55
   18cec:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18cf0:	4f 2d       	mov	r20, r15
   18cf2:	b8 01       	movw	r22, r16
   18cf4:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
   18cf8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    case 862: // M862: print checking
    {
        // Read the decimal by multiplying the float value by 10 e.g. 862.1 becomes 8621
        // This method consumes less flash memory compared to checking the string length.
        ClPrintChecking nCommand = static_cast<ClPrintChecking>((uint16_t)(code_value()*10) - 8620u);
        switch(nCommand)
   18cfc:	64 30       	cpi	r22, 0x04	; 4
   18cfe:	09 f4       	brne	.+2      	; 0x18d02 <process_commands() [clone .part.46]+0x62ee>
   18d00:	be c0       	rjmp	.+380    	; 0x18e7e <process_commands() [clone .part.46]+0x646a>
   18d02:	65 30       	cpi	r22, 0x05	; 5
   18d04:	11 f0       	breq	.+4      	; 0x18d0a <process_commands() [clone .part.46]+0x62f6>
   18d06:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         fw_version_check(++strchr_pointer);
                    else if(code_seen('Q'))
                         SERIAL_PROTOCOLLNRPGM(FW_VERSION_STR_P());
                    break;
               case ClPrintChecking::_Gcode:      // ~ .5
                    if(code_seen('P'))
   18d0a:	80 e5       	ldi	r24, 0x50	; 80
   18d0c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18d10:	88 23       	and	r24, r24
   18d12:	09 f4       	brne	.+2      	; 0x18d16 <process_commands() [clone .part.46]+0x6302>
   18d14:	3a c1       	rjmp	.+628    	; 0x18f8a <process_commands() [clone .part.46]+0x6576>
                         {
                         uint16_t nGcodeLevel;
                         nGcodeLevel=(uint16_t)code_value_long();
   18d16:	0e 94 09 5b 	call	0xb612	; 0xb612 <code_value_long() [clone .lto_priv.545]>
done:
    return true;
}

void gcode_level_check(uint16_t nGcodeLevel) {
    if (oCheckGcode == ClCheckMode::_None)
   18d1a:	10 91 e8 04 	lds	r17, 0x04E8	; 0x8004e8 <oCheckGcode>
   18d1e:	11 23       	and	r17, r17
   18d20:	11 f4       	brne	.+4      	; 0x18d26 <process_commands() [clone .part.46]+0x6312>
   18d22:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        return;
    if (nGcodeLevel <= (uint16_t)GCODE_LEVEL)
   18d26:	62 30       	cpi	r22, 0x02	; 2
   18d28:	71 05       	cpc	r23, r1
   18d2a:	10 f4       	brcc	.+4      	; 0x18d30 <process_commands() [clone .part.46]+0x631c>
   18d2c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    // SERIAL_ECHOPGM("actual  : ");
    // SERIAL_ECHOLN(GCODE_LEVEL);
    // SERIAL_ECHOPGM("expected: ");
    // SERIAL_ECHOLN(nGcodeLevel);

    render_M862_warnings(
   18d30:	8f ed       	ldi	r24, 0xDF	; 223
   18d32:	96 e3       	ldi	r25, 0x36	; 54
   18d34:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18d38:	7c 01       	movw	r14, r24
   18d3a:	88 eb       	ldi	r24, 0xB8	; 184
   18d3c:	96 e3       	ldi	r25, 0x36	; 54
   18d3e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18d42:	41 2f       	mov	r20, r17
   18d44:	b7 01       	movw	r22, r14
   18d46:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
   18d4a:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        ClPrintChecking nCommand = static_cast<ClPrintChecking>((uint16_t)(code_value()*10) - 8620u);
        switch(nCommand)
               {
               case ClPrintChecking::_Nozzle:     // ~ .1
                    uint16_t nDiameter;
                    if(code_seen('P'))
   18d4e:	80 e5       	ldi	r24, 0x50	; 80
   18d50:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18d54:	88 23       	and	r24, r24
   18d56:	a9 f0       	breq	.+42     	; 0x18d82 <process_commands() [clone .part.46]+0x636e>
                         {
                         nDiameter=(uint16_t)(code_value()*1000.0+0.5); // [,um]
   18d58:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   18d5c:	20 e0       	ldi	r18, 0x00	; 0
   18d5e:	30 e0       	ldi	r19, 0x00	; 0
   18d60:	4a e7       	ldi	r20, 0x7A	; 122
   18d62:	54 e4       	ldi	r21, 0x44	; 68
   18d64:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   18d68:	20 e0       	ldi	r18, 0x00	; 0
   18d6a:	30 e0       	ldi	r19, 0x00	; 0
   18d6c:	40 e0       	ldi	r20, 0x00	; 0
   18d6e:	5f e3       	ldi	r21, 0x3F	; 63
   18d70:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   18d74:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
                         nozzle_diameter_check(nDiameter);
   18d78:	cb 01       	movw	r24, r22
   18d7a:	0e 94 15 f6 	call	0x1ec2a	; 0x1ec2a <nozzle_diameter_check(unsigned int)>
   18d7e:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         }
                    else if(code_seen('Q'))
   18d82:	81 e5       	ldi	r24, 0x51	; 81
   18d84:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18d88:	88 23       	and	r24, r24
   18d8a:	11 f4       	brne	.+4      	; 0x18d90 <process_commands() [clone .part.46]+0x637c>
   18d8c:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         SERIAL_PROTOCOLLN((float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
   18d90:	85 ea       	ldi	r24, 0xA5	; 165
   18d92:	9d e0       	ldi	r25, 0x0D	; 13
   18d94:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18d98:	bc 01       	movw	r22, r24
   18d9a:	90 e0       	ldi	r25, 0x00	; 0
   18d9c:	80 e0       	ldi	r24, 0x00	; 0
   18d9e:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   18da2:	20 e0       	ldi	r18, 0x00	; 0
   18da4:	30 e0       	ldi	r19, 0x00	; 0
   18da6:	4a e7       	ldi	r20, 0x7A	; 122
   18da8:	54 e4       	ldi	r21, 0x44	; 68
   18daa:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   18dae:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   18db2:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         uint16_t nPrinterModel;
                         nPrinterModel=(uint16_t)code_value_long();
                         // based on current state of MMU (active/stopped/connecting) perform a runtime update of the printer type
                         printer_model_check(nPrinterModel, type);
                         }
                    else if(code_seen('Q'))
   18db6:	81 e5       	ldi	r24, 0x51	; 81
   18db8:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18dbc:	88 23       	and	r24, r24
   18dbe:	11 f4       	brne	.+4      	; 0x18dc4 <process_commands() [clone .part.46]+0x63b0>
   18dc0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
  print((long) n, base);
}

void MarlinSerial::print(unsigned int n, int base)
{
  print((unsigned long) n, base);
   18dc4:	b8 01       	movw	r22, r16
   18dc6:	90 e0       	ldi	r25, 0x00	; 0
   18dc8:	80 e0       	ldi	r24, 0x00	; 0
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   18dca:	4a e0       	ldi	r20, 0x0A	; 10
   18dcc:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
}

void MarlinSerial::println(unsigned int n, int base)
{
  print(n, base);
  println();
   18dd0:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   18dd4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        return pgm_read_word(&_nPrinterType);
    }
}

const char *sPrinterType(bool bMMu) {
    if (bMMu) {
   18dd8:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
        return _sPrinterMmuName;
   18ddc:	6e ed       	ldi	r22, 0xDE	; 222
   18dde:	e6 2e       	mov	r14, r22
   18de0:	6d e7       	ldi	r22, 0x7D	; 125
   18de2:	f6 2e       	mov	r15, r22
        return pgm_read_word(&_nPrinterType);
    }
}

const char *sPrinterType(bool bMMu) {
    if (bMMu) {
   18de4:	81 30       	cpi	r24, 0x01	; 1
   18de6:	21 f0       	breq	.+8      	; 0x18df0 <process_commands() [clone .part.46]+0x63dc>
        return _sPrinterMmuName;
    }
    else {
        return _sPrinterName;
   18de8:	5a ed       	ldi	r21, 0xDA	; 218
   18dea:	e5 2e       	mov	r14, r21
   18dec:	5d e7       	ldi	r21, 0x7D	; 125
   18dee:	f5 2e       	mov	r15, r21
                         SERIAL_PROTOCOLLN(type);
               } break;
               case ClPrintChecking::_Smodel: {    // ~ .3
                    const char *type = sPrinterType(MMU2::mmu2.Enabled());
                    if(code_seen('P'))
   18df0:	80 e5       	ldi	r24, 0x50	; 80
   18df2:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18df6:	88 23       	and	r24, r24
   18df8:	b1 f1       	breq	.+108    	; 0x18e66 <process_commands() [clone .part.46]+0x6452>
    , found(false)
    {
        const char * pStrEnd = NULL;

        // Start of the string
        this->ptr = strchr(pStr, '"');
   18dfa:	62 e2       	ldi	r22, 0x22	; 34
   18dfc:	70 e0       	ldi	r23, 0x00	; 0
   18dfe:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   18e02:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   18e06:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   18e0a:	8c 01       	movw	r16, r24
        if (!this->ptr) {
   18e0c:	89 2b       	or	r24, r25
   18e0e:	d1 f0       	breq	.+52     	; 0x18e44 <process_commands() [clone .part.46]+0x6430>
            // First quote not found
            return;
        }

        // Skip the leading quote
        this->ptr++;
   18e10:	0f 5f       	subi	r16, 0xFF	; 255
   18e12:	1f 4f       	sbci	r17, 0xFF	; 255

        // End of the string
        pStrEnd = strchr(this->ptr, '"');
   18e14:	62 e2       	ldi	r22, 0x22	; 34
   18e16:	70 e0       	ldi	r23, 0x00	; 0
   18e18:	c8 01       	movw	r24, r16
   18e1a:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
        if(!pStrEnd) {
   18e1e:	00 97       	sbiw	r24, 0x00	; 0
   18e20:	89 f0       	breq	.+34     	; 0x18e44 <process_commands() [clone .part.46]+0x6430>
            // Second quote not found
            return;
        }
        this->len = pStrEnd - this->ptr;
   18e22:	d8 2e       	mov	r13, r24
   18e24:	d0 1a       	sub	r13, r16
   18e26:	c7 01       	movw	r24, r14
   18e28:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
    unquoted_string smodel = unquoted_string(pStrPos);

    if(smodel.WasFound()) {
        const uint8_t compareLength = strlen_P(actualPrinterSModel);

        if(compareLength == smodel.GetLength()) {
   18e2c:	d8 12       	cpse	r13, r24
   18e2e:	0a c0       	rjmp	.+20     	; 0x18e44 <process_commands() [clone .part.46]+0x6430>
            if (strncmp_P(smodel.GetUnquotedString(), actualPrinterSModel, compareLength) == 0) return;
   18e30:	ac 01       	movw	r20, r24
   18e32:	55 27       	eor	r21, r21
   18e34:	b7 01       	movw	r22, r14
   18e36:	c8 01       	movw	r24, r16
   18e38:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   18e3c:	89 2b       	or	r24, r25
   18e3e:	11 f4       	brne	.+4      	; 0x18e44 <process_commands() [clone .part.46]+0x6430>
   18e40:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        }
    }

    render_M862_warnings(
   18e44:	f0 90 ea 04 	lds	r15, 0x04EA	; 0x8004ea <oCheckModel>
   18e48:	8d eb       	ldi	r24, 0xBD	; 189
   18e4a:	97 e3       	ldi	r25, 0x37	; 55
   18e4c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18e50:	8c 01       	movw	r16, r24
   18e52:	8f e8       	ldi	r24, 0x8F	; 143
   18e54:	97 e3       	ldi	r25, 0x37	; 55
   18e56:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18e5a:	4f 2d       	mov	r20, r15
   18e5c:	b8 01       	movw	r22, r16
   18e5e:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
   18e62:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                    {
                        printer_smodel_check(strchr_pointer, type);
                    }
                    else if(code_seen('Q'))
   18e66:	81 e5       	ldi	r24, 0x51	; 81
   18e68:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18e6c:	88 23       	and	r24, r24
   18e6e:	11 f4       	brne	.+4      	; 0x18e74 <process_commands() [clone .part.46]+0x6460>
   18e70:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         SERIAL_PROTOCOLLNRPGM(type);
   18e74:	c7 01       	movw	r24, r14
   18e76:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   18e7a:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
               } break;
               case ClPrintChecking::_Version:    // ~ .4
                    if(code_seen('P'))
   18e7e:	80 e5       	ldi	r24, 0x50	; 80
   18e80:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18e84:	88 23       	and	r24, r24
   18e86:	09 f4       	brne	.+2      	; 0x18e8a <process_commands() [clone .part.46]+0x6476>
   18e88:	77 c0       	rjmp	.+238    	; 0x18f78 <process_commands() [clone .part.46]+0x6564>
                         fw_version_check(++strchr_pointer);
   18e8a:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   18e8e:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   18e92:	01 96       	adiw	r24, 0x01	; 1
   18e94:	90 93 96 03 	sts	0x0396, r25	; 0x800396 <strchr_pointer+0x1>
   18e98:	80 93 95 03 	sts	0x0395, r24	; 0x800395 <strchr_pointer>
        return ((uint8_t)ClCompareValue::_Less);
    return ((uint8_t)ClCompareValue::_Equal);
}

void fw_version_check(const char *pVersion) {
    if (oCheckVersion == ClCheckMode::_None)
   18e9c:	20 91 e9 04 	lds	r18, 0x04E9	; 0x8004e9 <oCheckVersion>
   18ea0:	22 23       	and	r18, r18
   18ea2:	11 f4       	brne	.+4      	; 0x18ea8 <process_commands() [clone .part.46]+0x6494>
   18ea4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        return;

    uint16_t aVersion[4];
    uint8_t nCompareValueResult;
    parse_version(pVersion, aVersion);
   18ea8:	be 01       	movw	r22, r28
   18eaa:	6f 5f       	subi	r22, 0xFF	; 255
   18eac:	7f 4f       	sbci	r23, 0xFF	; 255
   18eae:	0e 94 56 f0 	call	0x1e0ac	; 0x1e0ac <parse_version(char const*, unsigned int*)>
    nCompareValueResult = mCompareValue(aVersion[0], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MAJOR)) << 6;
   18eb2:	8a e0       	ldi	r24, 0x0A	; 10
   18eb4:	90 e0       	ldi	r25, 0x00	; 0
   18eb6:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18eba:	29 81       	ldd	r18, Y+1	; 0x01
   18ebc:	3a 81       	ldd	r19, Y+2	; 0x02
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
        return ((uint8_t)ClCompareValue::_Greater);
   18ebe:	12 e0       	ldi	r17, 0x02	; 2
        ,(uint8_t)oCheckModel
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
   18ec0:	82 17       	cp	r24, r18
   18ec2:	93 07       	cpc	r25, r19
   18ec4:	28 f0       	brcs	.+10     	; 0x18ed0 <process_commands() [clone .part.46]+0x64bc>
        return ((uint8_t)ClCompareValue::_Greater);
    if (nX < nY)
   18ec6:	11 e0       	ldi	r17, 0x01	; 1
   18ec8:	28 17       	cp	r18, r24
   18eca:	39 07       	cpc	r19, r25
   18ecc:	08 f4       	brcc	.+2      	; 0x18ed0 <process_commands() [clone .part.46]+0x64bc>
   18ece:	10 e0       	ldi	r17, 0x00	; 0
        return;

    uint16_t aVersion[4];
    uint8_t nCompareValueResult;
    parse_version(pVersion, aVersion);
    nCompareValueResult = mCompareValue(aVersion[0], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MAJOR)) << 6;
   18ed0:	12 95       	swap	r17
   18ed2:	11 0f       	add	r17, r17
   18ed4:	11 0f       	add	r17, r17
   18ed6:	10 7c       	andi	r17, 0xC0	; 192
    nCompareValueResult += mCompareValue(aVersion[1], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MINOR)) << 4;
   18ed8:	8c e0       	ldi	r24, 0x0C	; 12
   18eda:	90 e0       	ldi	r25, 0x00	; 0
   18edc:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18ee0:	ac 01       	movw	r20, r24
   18ee2:	2b 81       	ldd	r18, Y+3	; 0x03
   18ee4:	3c 81       	ldd	r19, Y+4	; 0x04
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
        return ((uint8_t)ClCompareValue::_Greater);
   18ee6:	82 e0       	ldi	r24, 0x02	; 2
        ,(uint8_t)oCheckModel
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
   18ee8:	42 17       	cp	r20, r18
   18eea:	53 07       	cpc	r21, r19
   18eec:	28 f0       	brcs	.+10     	; 0x18ef8 <process_commands() [clone .part.46]+0x64e4>
        return ((uint8_t)ClCompareValue::_Greater);
    if (nX < nY)
   18eee:	81 e0       	ldi	r24, 0x01	; 1
   18ef0:	24 17       	cp	r18, r20
   18ef2:	35 07       	cpc	r19, r21
   18ef4:	08 f4       	brcc	.+2      	; 0x18ef8 <process_commands() [clone .part.46]+0x64e4>
   18ef6:	80 e0       	ldi	r24, 0x00	; 0

    uint16_t aVersion[4];
    uint8_t nCompareValueResult;
    parse_version(pVersion, aVersion);
    nCompareValueResult = mCompareValue(aVersion[0], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MAJOR)) << 6;
    nCompareValueResult += mCompareValue(aVersion[1], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MINOR)) << 4;
   18ef8:	50 e1       	ldi	r21, 0x10	; 16
   18efa:	85 9f       	mul	r24, r21
   18efc:	c0 01       	movw	r24, r0
   18efe:	11 24       	eor	r1, r1
   18f00:	18 0f       	add	r17, r24
    nCompareValueResult += mCompareValue(aVersion[2], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_REVISION)) << 2;
   18f02:	8e e0       	ldi	r24, 0x0E	; 14
   18f04:	90 e0       	ldi	r25, 0x00	; 0
   18f06:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18f0a:	ac 01       	movw	r20, r24
   18f0c:	2d 81       	ldd	r18, Y+5	; 0x05
   18f0e:	3e 81       	ldd	r19, Y+6	; 0x06
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
        return ((uint8_t)ClCompareValue::_Greater);
   18f10:	82 e0       	ldi	r24, 0x02	; 2
        ,(uint8_t)oCheckModel
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
   18f12:	42 17       	cp	r20, r18
   18f14:	53 07       	cpc	r21, r19
   18f16:	28 f0       	brcs	.+10     	; 0x18f22 <process_commands() [clone .part.46]+0x650e>
        return ((uint8_t)ClCompareValue::_Greater);
    if (nX < nY)
   18f18:	81 e0       	ldi	r24, 0x01	; 1
   18f1a:	24 17       	cp	r18, r20
   18f1c:	35 07       	cpc	r19, r21
   18f1e:	08 f4       	brcc	.+2      	; 0x18f22 <process_commands() [clone .part.46]+0x650e>
   18f20:	80 e0       	ldi	r24, 0x00	; 0
    uint16_t aVersion[4];
    uint8_t nCompareValueResult;
    parse_version(pVersion, aVersion);
    nCompareValueResult = mCompareValue(aVersion[0], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MAJOR)) << 6;
    nCompareValueResult += mCompareValue(aVersion[1], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MINOR)) << 4;
    nCompareValueResult += mCompareValue(aVersion[2], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_REVISION)) << 2;
   18f22:	a4 e0       	ldi	r26, 0x04	; 4
   18f24:	8a 9f       	mul	r24, r26
   18f26:	c0 01       	movw	r24, r0
   18f28:	11 24       	eor	r1, r1
   18f2a:	18 0f       	add	r17, r24
    nCompareValueResult += mCompareValue(aVersion[3], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_FLAVOR));
   18f2c:	80 e1       	ldi	r24, 0x10	; 16
   18f2e:	90 e0       	ldi	r25, 0x00	; 0
   18f30:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   18f34:	ac 01       	movw	r20, r24
   18f36:	2f 81       	ldd	r18, Y+7	; 0x07
   18f38:	38 85       	ldd	r19, Y+8	; 0x08
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
        return ((uint8_t)ClCompareValue::_Greater);
   18f3a:	92 e0       	ldi	r25, 0x02	; 2
        ,(uint8_t)oCheckModel
    );
}

uint8_t mCompareValue(uint16_t nX, uint16_t nY) {
    if (nX > nY)
   18f3c:	42 17       	cp	r20, r18
   18f3e:	53 07       	cpc	r21, r19
   18f40:	28 f0       	brcs	.+10     	; 0x18f4c <process_commands() [clone .part.46]+0x6538>
        return ((uint8_t)ClCompareValue::_Greater);
    if (nX < nY)
   18f42:	91 e0       	ldi	r25, 0x01	; 1
   18f44:	24 17       	cp	r18, r20
   18f46:	35 07       	cpc	r19, r21
   18f48:	08 f4       	brcc	.+2      	; 0x18f4c <process_commands() [clone .part.46]+0x6538>
   18f4a:	90 e0       	ldi	r25, 0x00	; 0
    uint8_t nCompareValueResult;
    parse_version(pVersion, aVersion);
    nCompareValueResult = mCompareValue(aVersion[0], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MAJOR)) << 6;
    nCompareValueResult += mCompareValue(aVersion[1], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_MINOR)) << 4;
    nCompareValueResult += mCompareValue(aVersion[2], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_REVISION)) << 2;
    nCompareValueResult += mCompareValue(aVersion[3], eeprom_read_word((uint16_t *)EEPROM_FIRMWARE_VERSION_FLAVOR));
   18f4c:	19 0f       	add	r17, r25
    if (nCompareValueResult <= COMPARE_VALUE_EQUAL)
   18f4e:	16 35       	cpi	r17, 0x56	; 86
   18f50:	10 f4       	brcc	.+4      	; 0x18f56 <process_commands() [clone .part.46]+0x6542>
   18f52:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    SERIAL_ECHO(aVersion[2]);
    SERIAL_ECHO('.');
    SERIAL_ECHOLN(aVersion[3]);
*/

    render_M862_warnings(
   18f56:	f0 90 e9 04 	lds	r15, 0x04E9	; 0x8004e9 <oCheckVersion>
   18f5a:	8d e4       	ldi	r24, 0x4D	; 77
   18f5c:	97 e3       	ldi	r25, 0x37	; 55
   18f5e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18f62:	8c 01       	movw	r16, r24
   18f64:	87 e2       	ldi	r24, 0x27	; 39
   18f66:	97 e3       	ldi	r25, 0x37	; 55
   18f68:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   18f6c:	4f 2d       	mov	r20, r15
   18f6e:	b8 01       	movw	r22, r16
   18f70:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
   18f74:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                    else if(code_seen('Q'))
   18f78:	81 e5       	ldi	r24, 0x51	; 81
   18f7a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18f7e:	88 23       	and	r24, r24
   18f80:	11 f4       	brne	.+4      	; 0x18f86 <process_commands() [clone .part.46]+0x6572>
   18f82:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
   18f86:	0c 94 2b a7 	jmp	0x14e56	; 0x14e56 <process_commands() [clone .part.46]+0x2442>
                         {
                         uint16_t nGcodeLevel;
                         nGcodeLevel=(uint16_t)code_value_long();
                         gcode_level_check(nGcodeLevel);
                         }
                    else if(code_seen('Q'))
   18f8a:	81 e5       	ldi	r24, 0x51	; 81
   18f8c:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18f90:	88 23       	and	r24, r24
   18f92:	11 f4       	brne	.+4      	; 0x18f98 <process_commands() [clone .part.46]+0x6584>
   18f94:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                         SERIAL_PROTOCOLLN(GCODE_LEVEL);
   18f98:	81 e0       	ldi	r24, 0x01	; 1
   18f9a:	90 e0       	ldi	r25, 0x00	; 0
   18f9c:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
   18fa0:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    * M900: Set and/or Get advance K factor
    *
    *  K<factor>                  Set advance K factor
    */
inline void gcode_M900() {
    float newK = code_seen('K') ? code_value() : -2;
   18fa4:	8b e4       	ldi	r24, 0x4B	; 75
   18fa6:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   18faa:	c1 2c       	mov	r12, r1
   18fac:	d1 2c       	mov	r13, r1
   18fae:	e1 2c       	mov	r14, r1
   18fb0:	40 ec       	ldi	r20, 0xC0	; 192
   18fb2:	f4 2e       	mov	r15, r20
   18fb4:	88 23       	and	r24, r24
   18fb6:	49 f1       	breq	.+82     	; 0x1900a <process_commands() [clone .part.46]+0x65f6>
   18fb8:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   18fbc:	6b 01       	movw	r12, r22
   18fbe:	7c 01       	movw	r14, r24
    if (newK >= 0 && newK < LA_K_MAX)
        extruder_advance_K = newK;
    else
        SERIAL_ECHOLNPGM("K out of allowed range!");
#else
    if (newK == 0)
   18fc0:	20 e0       	ldi	r18, 0x00	; 0
   18fc2:	30 e0       	ldi	r19, 0x00	; 0
   18fc4:	a9 01       	movw	r20, r18
   18fc6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   18fca:	81 11       	cpse	r24, r1
   18fcc:	1e c0       	rjmp	.+60     	; 0x1900a <process_commands() [clone .part.46]+0x65f6>
    {
        extruder_advance_K = 0;
   18fce:	10 92 65 05 	sts	0x0565, r1	; 0x800565 <extruder_advance_K>
   18fd2:	10 92 66 05 	sts	0x0566, r1	; 0x800566 <extruder_advance_K+0x1>
   18fd6:	10 92 67 05 	sts	0x0567, r1	; 0x800567 <extruder_advance_K+0x2>
   18fda:	10 92 68 05 	sts	0x0568, r1	; 0x800568 <extruder_advance_K+0x3>
   18fde:	0e 94 9e 81 	call	0x1033c	; 0x1033c <la10c_mode_change(LA10C_MODE)>
        else
            extruder_advance_K = newK;
    }
#endif

    SERIAL_ECHO_START;
   18fe2:	80 ed       	ldi	r24, 0xD0	; 208
   18fe4:	9a ea       	ldi	r25, 0xAA	; 170
   18fe6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOPGM("Advance K=");
   18fea:	87 eb       	ldi	r24, 0xB7	; 183
   18fec:	9d e7       	ldi	r25, 0x7D	; 125
   18fee:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLN(extruder_advance_K);
   18ff2:	60 91 65 05 	lds	r22, 0x0565	; 0x800565 <extruder_advance_K>
   18ff6:	70 91 66 05 	lds	r23, 0x0566	; 0x800566 <extruder_advance_K+0x1>
   18ffa:	80 91 67 05 	lds	r24, 0x0567	; 0x800567 <extruder_advance_K+0x2>
   18ffe:	90 91 68 05 	lds	r25, 0x0568	; 0x800568 <extruder_advance_K+0x3>
   19002:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   19006:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
}


float la10c_value(float k)
{
    if(la10c_mode == LA10C_UNKNOWN)
   1900a:	80 91 70 03 	lds	r24, 0x0370	; 0x800370 <la10c_mode>
   1900e:	81 11       	cpse	r24, r1
   19010:	1b c0       	rjmp	.+54     	; 0x19048 <process_commands() [clone .part.46]+0x6634>
    {
        // do not autodetect until a valid value is seen
        if(k == 0)
            return 0;
        else if(k < 0)
   19012:	20 e0       	ldi	r18, 0x00	; 0
   19014:	30 e0       	ldi	r19, 0x00	; 0
   19016:	a9 01       	movw	r20, r18
   19018:	c7 01       	movw	r24, r14
   1901a:	b6 01       	movw	r22, r12
   1901c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   19020:	87 ff       	sbrs	r24, 7
   19022:	05 c0       	rjmp	.+10     	; 0x1902e <process_commands() [clone .part.46]+0x661a>
    }
    else
    {
        newK = la10c_value(newK);
        if (newK < 0)
            SERIAL_ECHOLNPGM("K out of allowed range!");
   19024:	82 ec       	ldi	r24, 0xC2	; 194
   19026:	9d e7       	ldi	r25, 0x7D	; 125
   19028:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   1902c:	da cf       	rjmp	.-76     	; 0x18fe2 <process_commands() [clone .part.46]+0x65ce>
            return -1;

        la10c_mode_change(k < LA_LA10_MIN? LA10C_LA15: LA10C_LA10);
   1902e:	20 e0       	ldi	r18, 0x00	; 0
   19030:	30 e0       	ldi	r19, 0x00	; 0
   19032:	40 e2       	ldi	r20, 0x20	; 32
   19034:	51 e4       	ldi	r21, 0x41	; 65
   19036:	c7 01       	movw	r24, r14
   19038:	b6 01       	movw	r22, r12
   1903a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1903e:	87 ff       	sbrs	r24, 7
   19040:	2c c0       	rjmp	.+88     	; 0x1909a <process_commands() [clone .part.46]+0x6686>
   19042:	81 e0       	ldi	r24, 0x01	; 1
   19044:	0e 94 9e 81 	call	0x1033c	; 0x1033c <la10c_mode_change(LA10C_MODE)>
    }

    if(la10c_mode == LA10C_LA15)
   19048:	80 91 70 03 	lds	r24, 0x0370	; 0x800370 <la10c_mode>
        return (k >= 0 && k < LA_K_MAX? k: -1);
   1904c:	20 e0       	ldi	r18, 0x00	; 0
   1904e:	30 e0       	ldi	r19, 0x00	; 0
   19050:	a9 01       	movw	r20, r18
            return -1;

        la10c_mode_change(k < LA_LA10_MIN? LA10C_LA15: LA10C_LA10);
    }

    if(la10c_mode == LA10C_LA15)
   19052:	81 30       	cpi	r24, 0x01	; 1
   19054:	21 f5       	brne	.+72     	; 0x1909e <process_commands() [clone .part.46]+0x668a>
        return (k >= 0 && k < LA_K_MAX? k: -1);
   19056:	c7 01       	movw	r24, r14
   19058:	b6 01       	movw	r22, r12
   1905a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1905e:	87 fd       	sbrc	r24, 7
   19060:	e1 cf       	rjmp	.-62     	; 0x19024 <process_commands() [clone .part.46]+0x6610>
   19062:	20 e0       	ldi	r18, 0x00	; 0
   19064:	30 e0       	ldi	r19, 0x00	; 0
   19066:	40 e2       	ldi	r20, 0x20	; 32
   19068:	51 e4       	ldi	r21, 0x41	; 65
   1906a:	c7 01       	movw	r24, r14
   1906c:	b6 01       	movw	r22, r12
   1906e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   19072:	87 ff       	sbrs	r24, 7
   19074:	d7 cf       	rjmp	.-82     	; 0x19024 <process_commands() [clone .part.46]+0x6610>
        la10c_reset();
    }
    else
    {
        newK = la10c_value(newK);
        if (newK < 0)
   19076:	20 e0       	ldi	r18, 0x00	; 0
   19078:	30 e0       	ldi	r19, 0x00	; 0
   1907a:	a9 01       	movw	r20, r18
   1907c:	c7 01       	movw	r24, r14
   1907e:	b6 01       	movw	r22, r12
   19080:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   19084:	87 fd       	sbrc	r24, 7
   19086:	ce cf       	rjmp	.-100    	; 0x19024 <process_commands() [clone .part.46]+0x6610>
            SERIAL_ECHOLNPGM("K out of allowed range!");
        else
            extruder_advance_K = newK;
   19088:	c0 92 65 05 	sts	0x0565, r12	; 0x800565 <extruder_advance_K>
   1908c:	d0 92 66 05 	sts	0x0566, r13	; 0x800566 <extruder_advance_K+0x1>
   19090:	e0 92 67 05 	sts	0x0567, r14	; 0x800567 <extruder_advance_K+0x2>
   19094:	f0 92 68 05 	sts	0x0568, r15	; 0x800568 <extruder_advance_K+0x3>
   19098:	a4 cf       	rjmp	.-184    	; 0x18fe2 <process_commands() [clone .part.46]+0x65ce>
        if(k == 0)
            return 0;
        else if(k < 0)
            return -1;

        la10c_mode_change(k < LA_LA10_MIN? LA10C_LA15: LA10C_LA10);
   1909a:	82 e0       	ldi	r24, 0x02	; 2
   1909c:	d3 cf       	rjmp	.-90     	; 0x19044 <process_commands() [clone .part.46]+0x6630>
    }

    if(la10c_mode == LA10C_LA15)
        return (k >= 0 && k < LA_K_MAX? k: -1);
    else
        return (k >= 0? la10c_convert(k): -1);
   1909e:	c7 01       	movw	r24, r14
   190a0:	b6 01       	movw	r22, r12
   190a2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   190a6:	87 fd       	sbrc	r24, 7
   190a8:	bd cf       	rjmp	.-134    	; 0x19024 <process_commands() [clone .part.46]+0x6610>


// Approximate a LA10 value to a LA15 equivalent.
static float la10c_convert(float k)
{
    float new_K = k * 0.002 - 0.01;
   190aa:	2f e6       	ldi	r18, 0x6F	; 111
   190ac:	32 e1       	ldi	r19, 0x12	; 18
   190ae:	43 e0       	ldi	r20, 0x03	; 3
   190b0:	5b e3       	ldi	r21, 0x3B	; 59
   190b2:	c7 01       	movw	r24, r14
   190b4:	b6 01       	movw	r22, r12
   190b6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   190ba:	2a e0       	ldi	r18, 0x0A	; 10
   190bc:	37 ed       	ldi	r19, 0xD7	; 215
   190be:	43 e2       	ldi	r20, 0x23	; 35
   190c0:	5c e3       	ldi	r21, 0x3C	; 60
   190c2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   190c6:	6b 01       	movw	r12, r22
   190c8:	7c 01       	movw	r14, r24
    return new_K < 0? 0:
   190ca:	20 e0       	ldi	r18, 0x00	; 0
   190cc:	30 e0       	ldi	r19, 0x00	; 0
   190ce:	a9 01       	movw	r20, r18
   190d0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   190d4:	87 fd       	sbrc	r24, 7
   190d6:	11 c0       	rjmp	.+34     	; 0x190fa <process_commands() [clone .part.46]+0x66e6>
           new_K > (LA_K_MAX - FLT_EPSILON)? (LA_K_MAX - FLT_EPSILON):
   190d8:	20 e0       	ldi	r18, 0x00	; 0
   190da:	30 e0       	ldi	r19, 0x00	; 0
   190dc:	40 e2       	ldi	r20, 0x20	; 32
   190de:	51 e4       	ldi	r21, 0x41	; 65
   190e0:	c7 01       	movw	r24, r14
   190e2:	b6 01       	movw	r22, r12
   190e4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   190e8:	18 16       	cp	r1, r24
   190ea:	2c f6       	brge	.-118    	; 0x19076 <process_commands() [clone .part.46]+0x6662>
   190ec:	c1 2c       	mov	r12, r1
   190ee:	d1 2c       	mov	r13, r1
   190f0:	30 e2       	ldi	r19, 0x20	; 32
   190f2:	e3 2e       	mov	r14, r19
   190f4:	31 e4       	ldi	r19, 0x41	; 65
   190f6:	f3 2e       	mov	r15, r19
   190f8:	c7 cf       	rjmp	.-114    	; 0x19088 <process_commands() [clone .part.46]+0x6674>

// Approximate a LA10 value to a LA15 equivalent.
static float la10c_convert(float k)
{
    float new_K = k * 0.002 - 0.01;
    return new_K < 0? 0:
   190fa:	c1 2c       	mov	r12, r1
   190fc:	d1 2c       	mov	r13, r1
   190fe:	76 01       	movw	r14, r12
   19100:	c3 cf       	rjmp	.-122    	; 0x19088 <process_commands() [clone .part.46]+0x6674>
   19102:	9d ed       	ldi	r25, 0xDD	; 221
   19104:	89 2e       	mov	r8, r25
   19106:	92 e0       	ldi	r25, 0x02	; 2
   19108:	99 2e       	mov	r9, r25
   1910a:	0d e5       	ldi	r16, 0x5D	; 93
   1910c:	12 e0       	ldi	r17, 0x02	; 2
   1910e:	25 ef       	ldi	r18, 0xF5	; 245
   19110:	a2 2e       	mov	r10, r18
   19112:	24 e0       	ldi	r18, 0x04	; 4
   19114:	b2 2e       	mov	r11, r18
    */
    case 907:
    {
#ifdef TMC2130
        // See tmc2130_cur2val() for translation to 0 .. 63 range
        for (uint_least8_t i = 0; i < NUM_AXIS; i++){
   19116:	71 2c       	mov	r7, r1
            if(code_seen(axis_codes[i])){
   19118:	f4 01       	movw	r30, r8
   1911a:	81 91       	ld	r24, Z+
   1911c:	4f 01       	movw	r8, r30
   1911e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   19122:	88 23       	and	r24, r24
   19124:	09 f4       	brne	.+2      	; 0x19128 <process_commands() [clone .part.46]+0x6714>
   19126:	45 c0       	rjmp	.+138    	; 0x191b2 <process_commands() [clone .part.46]+0x679e>
                if( i == E_AXIS && FarmOrUserECool() ){
   19128:	f3 e0       	ldi	r31, 0x03	; 3
   1912a:	7f 12       	cpse	r7, r31
   1912c:	04 c0       	rjmp	.+8      	; 0x19136 <process_commands() [clone .part.46]+0x6722>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
   1912e:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   19132:	81 11       	cpse	r24, r1
   19134:	61 c0       	rjmp	.+194    	; 0x191f8 <process_commands() [clone .part.46]+0x67e4>
                    SERIAL_ECHORPGM(eMotorCurrentScalingEnabled);
                    SERIAL_ECHOLNPGM(", M907 E ignored");
                    continue;
                }
                float cur_mA = code_value();
   19136:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1913a:	6b 01       	movw	r12, r22
   1913c:	7c 01       	movw	r14, r24
//! | 1020 | 62 | |
//! | 1029 | 63 | |

uint8_t tmc2130_cur2val(float cur)
{
	if (cur < 0) cur = 0; //limit min
   1913e:	20 e0       	ldi	r18, 0x00	; 0
   19140:	30 e0       	ldi	r19, 0x00	; 0
   19142:	a9 01       	movw	r20, r18
   19144:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   19148:	87 fd       	sbrc	r24, 7
   1914a:	46 c0       	rjmp	.+140    	; 0x191d8 <process_commands() [clone .part.46]+0x67c4>
	if (cur > 1029) cur = 1029; //limit max
   1914c:	20 e0       	ldi	r18, 0x00	; 0
   1914e:	30 ea       	ldi	r19, 0xA0	; 160
   19150:	40 e8       	ldi	r20, 0x80	; 128
   19152:	54 e4       	ldi	r21, 0x44	; 68
   19154:	c7 01       	movw	r24, r14
   19156:	b6 01       	movw	r22, r12
   19158:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1915c:	18 16       	cp	r1, r24
   1915e:	a4 f1       	brlt	.+104    	; 0x191c8 <process_commands() [clone .part.46]+0x67b4>
	//540mA is threshold for switch from high sense to low sense
	//for higher currents is maximum current 1029mA
	if (cur >= 540) return 63 * (float)cur / 1029;
   19160:	20 e0       	ldi	r18, 0x00	; 0
   19162:	30 e0       	ldi	r19, 0x00	; 0
   19164:	47 e0       	ldi	r20, 0x07	; 7
   19166:	54 e4       	ldi	r21, 0x44	; 68
   19168:	c7 01       	movw	r24, r14
   1916a:	b6 01       	movw	r22, r12
   1916c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   19170:	87 fd       	sbrc	r24, 7
   19172:	35 c0       	rjmp	.+106    	; 0x191de <process_commands() [clone .part.46]+0x67ca>
   19174:	20 e0       	ldi	r18, 0x00	; 0
   19176:	30 e0       	ldi	r19, 0x00	; 0
   19178:	4c e7       	ldi	r20, 0x7C	; 124
   1917a:	52 e4       	ldi	r21, 0x42	; 66
   1917c:	c7 01       	movw	r24, r14
   1917e:	b6 01       	movw	r22, r12
   19180:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   19184:	20 e0       	ldi	r18, 0x00	; 0
   19186:	30 ea       	ldi	r19, 0xA0	; 160
   19188:	40 e8       	ldi	r20, 0x80	; 128
   1918a:	54 e4       	ldi	r21, 0x44	; 68
	//for lower currents must be the value divided by 1.125 (= 0.18*2/0.32)
	return 63 * (float)cur / (1029 * 1.125);
   1918c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   19190:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   19194:	f6 2e       	mov	r15, r22
                uint8_t val = tmc2130_cur2val(cur_mA);
                currents[i].setiHold(val);
   19196:	c8 01       	movw	r24, r16
   19198:	0e 94 85 67 	call	0xcf0a	; 0xcf0a <MotorCurrents::setiHold(unsigned char)>
                currents[i].setiRun(val);
   1919c:	6f 2d       	mov	r22, r15
   1919e:	c8 01       	movw	r24, r16
   191a0:	0e 94 8d 67 	call	0xcf1a	; 0xcf1a <MotorCurrents::setiRun(unsigned char)>
                tmc2130_setup_chopper(i, tmc2130_mres[i]);
   191a4:	50 e0       	ldi	r21, 0x00	; 0
   191a6:	40 e0       	ldi	r20, 0x00	; 0
   191a8:	d5 01       	movw	r26, r10
   191aa:	6c 91       	ld	r22, X
   191ac:	87 2d       	mov	r24, r7
   191ae:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
    */
    case 907:
    {
#ifdef TMC2130
        // See tmc2130_cur2val() for translation to 0 .. 63 range
        for (uint_least8_t i = 0; i < NUM_AXIS; i++){
   191b2:	73 94       	inc	r7
   191b4:	0d 5f       	subi	r16, 0xFD	; 253
   191b6:	1f 4f       	sbci	r17, 0xFF	; 255
   191b8:	bf ef       	ldi	r27, 0xFF	; 255
   191ba:	ab 1a       	sub	r10, r27
   191bc:	bb 0a       	sbc	r11, r27
   191be:	e4 e0       	ldi	r30, 0x04	; 4
   191c0:	7e 12       	cpse	r7, r30
   191c2:	aa cf       	rjmp	.-172    	; 0x19118 <process_commands() [clone .part.46]+0x6704>
   191c4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
//! | 1029 | 63 | |

uint8_t tmc2130_cur2val(float cur)
{
	if (cur < 0) cur = 0; //limit min
	if (cur > 1029) cur = 1029; //limit max
   191c8:	c1 2c       	mov	r12, r1
   191ca:	80 ea       	ldi	r24, 0xA0	; 160
   191cc:	d8 2e       	mov	r13, r24
   191ce:	80 e8       	ldi	r24, 0x80	; 128
   191d0:	e8 2e       	mov	r14, r24
   191d2:	84 e4       	ldi	r24, 0x44	; 68
   191d4:	f8 2e       	mov	r15, r24
   191d6:	ce cf       	rjmp	.-100    	; 0x19174 <process_commands() [clone .part.46]+0x6760>
//! | 1020 | 62 | |
//! | 1029 | 63 | |

uint8_t tmc2130_cur2val(float cur)
{
	if (cur < 0) cur = 0; //limit min
   191d8:	c1 2c       	mov	r12, r1
   191da:	d1 2c       	mov	r13, r1
   191dc:	76 01       	movw	r14, r12
	if (cur > 1029) cur = 1029; //limit max
	//540mA is threshold for switch from high sense to low sense
	//for higher currents is maximum current 1029mA
	if (cur >= 540) return 63 * (float)cur / 1029;
	//for lower currents must be the value divided by 1.125 (= 0.18*2/0.32)
	return 63 * (float)cur / (1029 * 1.125);
   191de:	20 e0       	ldi	r18, 0x00	; 0
   191e0:	30 e0       	ldi	r19, 0x00	; 0
   191e2:	4c e7       	ldi	r20, 0x7C	; 124
   191e4:	52 e4       	ldi	r21, 0x42	; 66
   191e6:	c7 01       	movw	r24, r14
   191e8:	b6 01       	movw	r22, r12
   191ea:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   191ee:	20 e0       	ldi	r18, 0x00	; 0
   191f0:	34 eb       	ldi	r19, 0xB4	; 180
   191f2:	40 e9       	ldi	r20, 0x90	; 144
   191f4:	54 e4       	ldi	r21, 0x44	; 68
   191f6:	ca cf       	rjmp	.-108    	; 0x1918c <process_commands() [clone .part.46]+0x6778>
            if(code_seen(axis_codes[i])){
                if( i == E_AXIS && FarmOrUserECool() ){
                    SERIAL_ECHORPGM(eMotorCurrentScalingEnabled);
   191f8:	8a e8       	ldi	r24, 0x8A	; 138
   191fa:	9e e9       	ldi	r25, 0x9E	; 158
   191fc:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
                    SERIAL_ECHOLNPGM(", M907 E ignored");
   19200:	8f ea       	ldi	r24, 0xAF	; 175
   19202:	94 e8       	ldi	r25, 0x84	; 132
   19204:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   19208:	d4 cf       	rjmp	.-88     	; 0x191b2 <process_commands() [clone .part.46]+0x679e>
   1920a:	a0 90 67 02 	lds	r10, 0x0267	; 0x800267 <currents+0xa>
        , iRun((ir < 32) ? ir : (ir >> 1))
        , iHold((ir < 32) ? ih : (ih >> 1)) {}

    inline uint8_t getiRun() const { return iRun; }
    inline uint8_t getiHold() const { return min(iHold, iRun); }
    inline uint8_t getOriginaliRun() const { return vSense ? iRun : iRun << 1; }
   1920e:	80 91 66 02 	lds	r24, 0x0266	; 0x800266 <currents+0x9>
   19212:	81 11       	cpse	r24, r1
   19214:	01 c0       	rjmp	.+2      	; 0x19218 <process_commands() [clone .part.46]+0x6804>
   19216:	aa 0c       	add	r10, r10
	SetCurrents(axis, *curr);
}

void tmc2130_print_currents()
{
	printf_P(_n("tmc2130_print_currents()\n\tH\tR\nX\t%d\t%d\nY\t%d\t%d\nZ\t%d\t%d\nE\t%d\t%d\n"),
   19218:	b1 2c       	mov	r11, r1
		currents[0].getOriginaliHold(), currents[0].getOriginaliRun(),
		currents[1].getOriginaliHold(), currents[1].getOriginaliRun(),
		currents[2].getOriginaliHold(), currents[2].getOriginaliRun(),
		currents[3].getOriginaliHold(), currents[3].getOriginaliRun()
   1921a:	86 e6       	ldi	r24, 0x66	; 102
   1921c:	92 e0       	ldi	r25, 0x02	; 2
   1921e:	0f 94 22 28 	call	0x25044	; 0x25044 <MotorCurrents::getOriginaliHold() const>
   19222:	88 2e       	mov	r8, r24
   19224:	c0 90 64 02 	lds	r12, 0x0264	; 0x800264 <currents+0x7>
   19228:	80 91 63 02 	lds	r24, 0x0263	; 0x800263 <currents+0x6>
   1922c:	81 11       	cpse	r24, r1
   1922e:	01 c0       	rjmp	.+2      	; 0x19232 <process_commands() [clone .part.46]+0x681e>
   19230:	cc 0c       	add	r12, r12
	SetCurrents(axis, *curr);
}

void tmc2130_print_currents()
{
	printf_P(_n("tmc2130_print_currents()\n\tH\tR\nX\t%d\t%d\nY\t%d\t%d\nZ\t%d\t%d\nE\t%d\t%d\n"),
   19232:	d1 2c       	mov	r13, r1
		currents[0].getOriginaliHold(), currents[0].getOriginaliRun(),
		currents[1].getOriginaliHold(), currents[1].getOriginaliRun(),
		currents[2].getOriginaliHold(), currents[2].getOriginaliRun(),
   19234:	83 e6       	ldi	r24, 0x63	; 99
   19236:	92 e0       	ldi	r25, 0x02	; 2
   19238:	0f 94 22 28 	call	0x25044	; 0x25044 <MotorCurrents::getOriginaliHold() const>
   1923c:	98 2e       	mov	r9, r24
   1923e:	00 91 61 02 	lds	r16, 0x0261	; 0x800261 <currents+0x4>
   19242:	80 91 60 02 	lds	r24, 0x0260	; 0x800260 <currents+0x3>
   19246:	81 11       	cpse	r24, r1
   19248:	01 c0       	rjmp	.+2      	; 0x1924c <process_commands() [clone .part.46]+0x6838>
   1924a:	00 0f       	add	r16, r16
	SetCurrents(axis, *curr);
}

void tmc2130_print_currents()
{
	printf_P(_n("tmc2130_print_currents()\n\tH\tR\nX\t%d\t%d\nY\t%d\t%d\nZ\t%d\t%d\nE\t%d\t%d\n"),
   1924c:	10 e0       	ldi	r17, 0x00	; 0
		currents[0].getOriginaliHold(), currents[0].getOriginaliRun(),
		currents[1].getOriginaliHold(), currents[1].getOriginaliRun(),
   1924e:	80 e6       	ldi	r24, 0x60	; 96
   19250:	92 e0       	ldi	r25, 0x02	; 2
   19252:	0f 94 22 28 	call	0x25044	; 0x25044 <MotorCurrents::getOriginaliHold() const>
   19256:	e8 2e       	mov	r14, r24
   19258:	f0 90 5e 02 	lds	r15, 0x025E	; 0x80025e <currents+0x1>
   1925c:	80 91 5d 02 	lds	r24, 0x025D	; 0x80025d <currents>
   19260:	81 11       	cpse	r24, r1
   19262:	01 c0       	rjmp	.+2      	; 0x19266 <process_commands() [clone .part.46]+0x6852>
   19264:	ff 0c       	add	r15, r15
}

void tmc2130_print_currents()
{
	printf_P(_n("tmc2130_print_currents()\n\tH\tR\nX\t%d\t%d\nY\t%d\t%d\nZ\t%d\t%d\nE\t%d\t%d\n"),
		currents[0].getOriginaliHold(), currents[0].getOriginaliRun(),
   19266:	8d e5       	ldi	r24, 0x5D	; 93
   19268:	92 e0       	ldi	r25, 0x02	; 2
   1926a:	0f 94 22 28 	call	0x25044	; 0x25044 <MotorCurrents::getOriginaliHold() const>
	SetCurrents(axis, *curr);
}

void tmc2130_print_currents()
{
	printf_P(_n("tmc2130_print_currents()\n\tH\tR\nX\t%d\t%d\nY\t%d\t%d\nZ\t%d\t%d\nE\t%d\t%d\n"),
   1926e:	bf 92       	push	r11
   19270:	af 92       	push	r10
   19272:	1f 92       	push	r1
   19274:	8f 92       	push	r8
   19276:	df 92       	push	r13
   19278:	cf 92       	push	r12
   1927a:	1f 92       	push	r1
   1927c:	9f 92       	push	r9
   1927e:	1f 93       	push	r17
   19280:	0f 93       	push	r16
   19282:	1f 92       	push	r1
   19284:	ef 92       	push	r14
   19286:	1f 92       	push	r1
   19288:	ff 92       	push	r15
   1928a:	1f 92       	push	r1
   1928c:	8f 93       	push	r24
   1928e:	80 ed       	ldi	r24, 0xD0	; 208
   19290:	96 e6       	ldi	r25, 0x66	; 102
   19292:	9f 93       	push	r25
   19294:	8f 93       	push	r24
   19296:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   1929a:	0f b6       	in	r0, 0x3f	; 63
   1929c:	f8 94       	cli
   1929e:	de bf       	out	0x3e, r29	; 62
   192a0:	0f be       	out	0x3f, r0	; 63
   192a2:	cd bf       	out	0x3d, r28	; 61
   192a4:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    - `Q` - Print effective silent/normal status. (Does not report override)
    */
    case 914:
    case 915:
    {
    uint8_t newMode = (mcode_in_progress==914) ? TMC2130_MODE_NORMAL : TMC2130_MODE_SILENT;
   192a8:	11 e0       	ldi	r17, 0x01	; 1
   192aa:	82 39       	cpi	r24, 0x92	; 146
   192ac:	93 40       	sbci	r25, 0x03	; 3
   192ae:	09 f4       	brne	.+2      	; 0x192b2 <process_commands() [clone .part.46]+0x689e>
   192b0:	10 e0       	ldi	r17, 0x00	; 0
    //printf_P(_n("tmc2130mode/smm/eep: %d %d %d %d"),tmc2130_mode,SilentModeMenu,eeprom_read_byte((uint8_t*)EEPROM_SILENT), bEnableForce_z);
    if (code_seen('R'))
   192b2:	82 e5       	ldi	r24, 0x52	; 82
   192b4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   192b8:	88 23       	and	r24, r24
   192ba:	81 f0       	breq	.+32     	; 0x192dc <process_commands() [clone .part.46]+0x68c8>
    {
        newMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
   192bc:	8f ef       	ldi	r24, 0xFF	; 255
   192be:	9f e0       	ldi	r25, 0x0F	; 15
   192c0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   192c4:	18 2f       	mov	r17, r24
            tmc2130_mode == TMC2130_MODE_NORMAL ?
            _O(MSG_NORMAL) : _O(MSG_SILENT)
        );

    }
      if (tmc2130_mode != newMode
   192c6:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
   192ca:	81 17       	cp	r24, r17
   192cc:	11 f4       	brne	.+4      	; 0x192d2 <process_commands() [clone .part.46]+0x68be>
   192ce:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        )
      {
#ifdef PSU_Delta
        enable_force_z();
#endif
        change_power_mode_live(newMode);
   192d2:	81 2f       	mov	r24, r17
   192d4:	0e 94 10 60 	call	0xc020	; 0xc020 <change_power_mode_live(unsigned char)>
   192d8:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    //printf_P(_n("tmc2130mode/smm/eep: %d %d %d %d"),tmc2130_mode,SilentModeMenu,eeprom_read_byte((uint8_t*)EEPROM_SILENT), bEnableForce_z);
    if (code_seen('R'))
    {
        newMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
    }
    else if (code_seen('P'))
   192dc:	80 e5       	ldi	r24, 0x50	; 80
   192de:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   192e2:	88 23       	and	r24, r24
   192e4:	89 f0       	breq	.+34     	; 0x19308 <process_commands() [clone .part.46]+0x68f4>
    {
        uint8_t newMenuMode = (mcode_in_progress==914) ? SILENT_MODE_NORMAL : SILENT_MODE_STEALTH;
   192e6:	01 e0       	ldi	r16, 0x01	; 1
   192e8:	80 91 aa 0d 	lds	r24, 0x0DAA	; 0x800daa <_ZL17mcode_in_progress.lto_priv.532>
   192ec:	90 91 ab 0d 	lds	r25, 0x0DAB	; 0x800dab <_ZL17mcode_in_progress.lto_priv.532+0x1>
   192f0:	82 39       	cpi	r24, 0x92	; 146
   192f2:	93 40       	sbci	r25, 0x03	; 3
   192f4:	09 f4       	brne	.+2      	; 0x192f8 <process_commands() [clone .part.46]+0x68e4>
   192f6:	00 e0       	ldi	r16, 0x00	; 0
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   192f8:	60 2f       	mov	r22, r16
   192fa:	8f ef       	ldi	r24, 0xFF	; 255
   192fc:	9f e0       	ldi	r25, 0x0F	; 15
   192fe:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        eeprom_update_byte_notify((unsigned char *)EEPROM_SILENT, newMenuMode);
        SilentModeMenu = newMenuMode;
   19302:	00 93 a4 03 	sts	0x03A4, r16	; 0x8003a4 <SilentModeMenu>
   19306:	df cf       	rjmp	.-66     	; 0x192c6 <process_commands() [clone .part.46]+0x68b2>
        //printf_P(_n("tmc2130mode/smm/eep: %d %d %d %d"),tmc2130_mode,SilentModeMenu,eeprom_read_byte((uint8_t*)EEPROM_SILENT), bEnableForce_z);
    }
    else if (code_seen('Q'))
   19308:	81 e5       	ldi	r24, 0x51	; 81
   1930a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1930e:	88 23       	and	r24, r24
   19310:	d1 f2       	breq	.-76     	; 0x192c6 <process_commands() [clone .part.46]+0x68b2>
    {
        printf_P(PSTR("%S: %S\n"), _O(MSG_MODE),
   19312:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
   19316:	81 11       	cpse	r24, r1
   19318:	15 c0       	rjmp	.+42     	; 0x19344 <process_commands() [clone .part.46]+0x6930>
   1931a:	8e e2       	ldi	r24, 0x2E	; 46
   1931c:	94 e4       	ldi	r25, 0x44	; 68
   1931e:	9f 93       	push	r25
   19320:	8f 93       	push	r24
   19322:	81 eb       	ldi	r24, 0xB1	; 177
   19324:	97 e4       	ldi	r25, 0x47	; 71
   19326:	9f 93       	push	r25
   19328:	8f 93       	push	r24
   1932a:	87 ea       	ldi	r24, 0xA7	; 167
   1932c:	94 e8       	ldi	r25, 0x84	; 132
   1932e:	9f 93       	push	r25
   19330:	8f 93       	push	r24
   19332:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   19336:	0f 90       	pop	r0
   19338:	0f 90       	pop	r0
   1933a:	0f 90       	pop	r0
   1933c:	0f 90       	pop	r0
   1933e:	0f 90       	pop	r0
   19340:	0f 90       	pop	r0
   19342:	c1 cf       	rjmp	.-126    	; 0x192c6 <process_commands() [clone .part.46]+0x68b2>
   19344:	8e e2       	ldi	r24, 0x2E	; 46
   19346:	97 e4       	ldi	r25, 0x47	; 71
   19348:	ea cf       	rjmp	.-44     	; 0x1931e <process_commands() [clone .part.46]+0x690a>
   1934a:	8d ed       	ldi	r24, 0xDD	; 221
   1934c:	92 e0       	ldi	r25, 0x02	; 2
   1934e:	6c 96       	adiw	r28, 0x1c	; 28
   19350:	9f af       	std	Y+63, r25	; 0x3f
   19352:	8e af       	std	Y+62, r24	; 0x3e
   19354:	6c 97       	sbiw	r28, 0x1c	; 28
   19356:	ee eb       	ldi	r30, 0xBE	; 190
   19358:	ee 2e       	mov	r14, r30
   1935a:	ed e0       	ldi	r30, 0x0D	; 13
   1935c:	fe 2e       	mov	r15, r30
   1935e:	f3 ea       	ldi	r31, 0xA3	; 163
   19360:	cf 2e       	mov	r12, r31
   19362:	f6 e0       	ldi	r31, 0x06	; 6
   19364:	df 2e       	mov	r13, r31
   19366:	a5 ef       	ldi	r26, 0xF5	; 245
   19368:	8a 2e       	mov	r8, r26
   1936a:	a4 e0       	ldi	r26, 0x04	; 4
   1936c:	9a 2e       	mov	r9, r26
   1936e:	ba e7       	ldi	r27, 0x7A	; 122
   19370:	2b 2e       	mov	r2, r27
   19372:	be e0       	ldi	r27, 0x0E	; 14
   19374:	3b 2e       	mov	r3, r27
    - `S` - All axes new resolution
    */
    case 350:
    {
	#ifdef TMC2130
		for (uint_least8_t i=0; i<NUM_AXIS; i++)
   19376:	67 96       	adiw	r28, 0x17	; 23
   19378:	1f ae       	std	Y+63, r1	; 0x3f
   1937a:	67 97       	sbiw	r28, 0x17	; 23
		{
			if(code_seen(axis_codes[i]))
   1937c:	6c 96       	adiw	r28, 0x1c	; 28
   1937e:	ae ad       	ldd	r26, Y+62	; 0x3e
   19380:	bf ad       	ldd	r27, Y+63	; 0x3f
   19382:	6c 97       	sbiw	r28, 0x1c	; 28
   19384:	8d 91       	ld	r24, X+
   19386:	6c 96       	adiw	r28, 0x1c	; 28
   19388:	bf af       	std	Y+63, r27	; 0x3f
   1938a:	ae af       	std	Y+62, r26	; 0x3e
   1938c:	6c 97       	sbiw	r28, 0x1c	; 28
   1938e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   19392:	b8 2e       	mov	r11, r24
   19394:	88 23       	and	r24, r24
   19396:	09 f4       	brne	.+2      	; 0x1939a <process_commands() [clone .part.46]+0x6986>
   19398:	7c c0       	rjmp	.+248    	; 0x19492 <process_commands() [clone .part.46]+0x6a7e>
			{
				uint16_t res_new = code_value();
   1939a:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   1939e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   193a2:	2b 01       	movw	r4, r22
   193a4:	8b 01       	movw	r16, r22
#ifdef ALLOW_ALL_MRES
				bool res_valid = res_new > 0 && res_new <= 256 && !(res_new & (res_new - 1)); // must be a power of two
#else
				bool res_valid = (res_new == 8) || (res_new == 16) || (res_new == 32); // resolutions valid for all axis
   193a6:	68 30       	cpi	r22, 0x08	; 8
   193a8:	71 05       	cpc	r23, r1
   193aa:	09 f4       	brne	.+2      	; 0x193ae <process_commands() [clone .part.46]+0x699a>
   193ac:	60 c3       	rjmp	.+1728   	; 0x19a6e <process_commands() [clone .part.46]+0x705a>
   193ae:	60 31       	cpi	r22, 0x10	; 16
   193b0:	71 05       	cpc	r23, r1
   193b2:	09 f4       	brne	.+2      	; 0x193b6 <process_commands() [clone .part.46]+0x69a2>
   193b4:	5c c3       	rjmp	.+1720   	; 0x19a6e <process_commands() [clone .part.46]+0x705a>
   193b6:	81 e0       	ldi	r24, 0x01	; 1
   193b8:	00 32       	cpi	r16, 0x20	; 32
   193ba:	11 05       	cpc	r17, r1
   193bc:	09 f0       	breq	.+2      	; 0x193c0 <process_commands() [clone .part.46]+0x69ac>
   193be:	80 e0       	ldi	r24, 0x00	; 0
				res_valid |= (i != E_AXIS) && ((res_new == 1) || (res_new == 2) || (res_new == 4)); // resolutions valid for X Y Z only
   193c0:	67 96       	adiw	r28, 0x17	; 23
   193c2:	bf ad       	ldd	r27, Y+63	; 0x3f
   193c4:	67 97       	sbiw	r28, 0x17	; 23
   193c6:	b3 30       	cpi	r27, 0x03	; 3
   193c8:	09 f4       	brne	.+2      	; 0x193cc <process_commands() [clone .part.46]+0x69b8>
   193ca:	5c c3       	rjmp	.+1720   	; 0x19a84 <process_commands() [clone .part.46]+0x7070>
   193cc:	92 01       	movw	r18, r4
   193ce:	21 50       	subi	r18, 0x01	; 1
   193d0:	31 09       	sbc	r19, r1
   193d2:	22 30       	cpi	r18, 0x02	; 2
   193d4:	31 05       	cpc	r19, r1
   193d6:	08 f0       	brcs	.+2      	; 0x193da <process_commands() [clone .part.46]+0x69c6>
   193d8:	50 c3       	rjmp	.+1696   	; 0x19a7a <process_commands() [clone .part.46]+0x7066>
   193da:	9b 2d       	mov	r25, r11
   193dc:	89 2b       	or	r24, r25
				res_valid |= (i == E_AXIS) && ((res_new == 64) || (res_new == 128)); // resolutions valid for E only
   193de:	67 96       	adiw	r28, 0x17	; 23
   193e0:	ef ad       	ldd	r30, Y+63	; 0x3f
   193e2:	67 97       	sbiw	r28, 0x17	; 23
   193e4:	e3 30       	cpi	r30, 0x03	; 3
   193e6:	41 f4       	brne	.+16     	; 0x193f8 <process_commands() [clone .part.46]+0x69e4>
   193e8:	00 34       	cpi	r16, 0x40	; 64
   193ea:	11 05       	cpc	r17, r1
   193ec:	31 f0       	breq	.+12     	; 0x193fa <process_commands() [clone .part.46]+0x69e6>
   193ee:	bb 24       	eor	r11, r11
   193f0:	b3 94       	inc	r11
   193f2:	00 38       	cpi	r16, 0x80	; 128
   193f4:	11 05       	cpc	r17, r1
   193f6:	09 f0       	breq	.+2      	; 0x193fa <process_commands() [clone .part.46]+0x69e6>
   193f8:	b1 2c       	mov	r11, r1
#endif
				if (res_valid)
   193fa:	81 11       	cpse	r24, r1
   193fc:	03 c0       	rjmp	.+6      	; 0x19404 <process_commands() [clone .part.46]+0x69f0>
   193fe:	bb 20       	and	r11, r11
   19400:	09 f4       	brne	.+2      	; 0x19404 <process_commands() [clone .part.46]+0x69f0>
   19402:	47 c0       	rjmp	.+142    	; 0x19492 <process_commands() [clone .part.46]+0x6a7e>
				{
					st_synchronize();
   19404:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	return stat;
}

uint16_t tmc2130_get_res(uint8_t axis)
{
	return tmc2130_mres2usteps(tmc2130_mres[axis]);
   19408:	d4 01       	movw	r26, r8
   1940a:	8c 91       	ld	r24, X
   1940c:	a1 2c       	mov	r10, r1
   1940e:	bb 24       	eor	r11, r11
   19410:	b3 94       	inc	r11
   19412:	02 c0       	rjmp	.+4      	; 0x19418 <process_commands() [clone .part.46]+0x6a04>
   19414:	b6 94       	lsr	r11
   19416:	a7 94       	ror	r10
   19418:	8a 95       	dec	r24
   1941a:	e2 f7       	brpl	.-8      	; 0x19414 <process_commands() [clone .part.46]+0x6a00>
					uint16_t res = tmc2130_get_res(i);
					tmc2130_set_res(i, res_new);
   1941c:	b2 01       	movw	r22, r4
   1941e:	67 96       	adiw	r28, 0x17	; 23
   19420:	8f ad       	ldd	r24, Y+63	; 0x3f
   19422:	67 97       	sbiw	r28, 0x17	; 23
   19424:	0f 94 06 26 	call	0x24c0c	; 0x24c0c <tmc2130_set_res(unsigned char, unsigned int)>
					cs.axis_ustep_resolution[i] = res_new;
   19428:	f1 01       	movw	r30, r2
   1942a:	40 82       	st	Z, r4
					if (res_new > res)
   1942c:	a0 16       	cp	r10, r16
   1942e:	b1 06       	cpc	r11, r17
   19430:	08 f0       	brcs	.+2      	; 0x19434 <process_commands() [clone .part.46]+0x6a20>
   19432:	47 c0       	rjmp	.+142    	; 0x194c2 <process_commands() [clone .part.46]+0x6aae>
					{
						uint16_t fac = (res_new / res);
   19434:	c8 01       	movw	r24, r16
   19436:	b5 01       	movw	r22, r10
   19438:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
						cs.axis_steps_per_mm[i] *= fac;
   1943c:	2b 01       	movw	r4, r22
   1943e:	71 2c       	mov	r7, r1
   19440:	61 2c       	mov	r6, r1
   19442:	c3 01       	movw	r24, r6
   19444:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   19448:	9b 01       	movw	r18, r22
   1944a:	ac 01       	movw	r20, r24
   1944c:	d7 01       	movw	r26, r14
   1944e:	14 96       	adiw	r26, 0x04	; 4
   19450:	6d 91       	ld	r22, X+
   19452:	7d 91       	ld	r23, X+
   19454:	8d 91       	ld	r24, X+
   19456:	9c 91       	ld	r25, X
   19458:	17 97       	sbiw	r26, 0x07	; 7
   1945a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1945e:	f7 01       	movw	r30, r14
   19460:	64 83       	std	Z+4, r22	; 0x04
   19462:	75 83       	std	Z+5, r23	; 0x05
   19464:	86 83       	std	Z+6, r24	; 0x06
   19466:	97 83       	std	Z+7, r25	; 0x07
						position[i] *= fac;
   19468:	d6 01       	movw	r26, r12
   1946a:	2d 91       	ld	r18, X+
   1946c:	3d 91       	ld	r19, X+
   1946e:	4d 91       	ld	r20, X+
   19470:	5c 91       	ld	r21, X
   19472:	c3 01       	movw	r24, r6
   19474:	b2 01       	movw	r22, r4
   19476:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   1947a:	f6 01       	movw	r30, r12
   1947c:	60 83       	st	Z, r22
   1947e:	71 83       	std	Z+1, r23	; 0x01
   19480:	82 83       	std	Z+2, r24	; 0x02
   19482:	93 83       	std	Z+3, r25	; 0x03
						uint16_t fac = (res / res_new);
						cs.axis_steps_per_mm[i] /= fac;
						position[i] /= fac;
					}
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
					if (i == E_AXIS)
   19484:	67 96       	adiw	r28, 0x17	; 23
   19486:	ff ad       	ldd	r31, Y+63	; 0x3f
   19488:	67 97       	sbiw	r28, 0x17	; 23
   1948a:	f3 30       	cpi	r31, 0x03	; 3
   1948c:	11 f4       	brne	.+4      	; 0x19492 <process_commands() [clone .part.46]+0x6a7e>
						fsensor.init();
   1948e:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
    - `S` - All axes new resolution
    */
    case 350:
    {
	#ifdef TMC2130
		for (uint_least8_t i=0; i<NUM_AXIS; i++)
   19492:	67 96       	adiw	r28, 0x17	; 23
   19494:	2f ad       	ldd	r18, Y+63	; 0x3f
   19496:	67 97       	sbiw	r28, 0x17	; 23
   19498:	2f 5f       	subi	r18, 0xFF	; 255
   1949a:	67 96       	adiw	r28, 0x17	; 23
   1949c:	2f af       	std	Y+63, r18	; 0x3f
   1949e:	67 97       	sbiw	r28, 0x17	; 23
   194a0:	34 e0       	ldi	r19, 0x04	; 4
   194a2:	e3 0e       	add	r14, r19
   194a4:	f1 1c       	adc	r15, r1
   194a6:	44 e0       	ldi	r20, 0x04	; 4
   194a8:	c4 0e       	add	r12, r20
   194aa:	d1 1c       	adc	r13, r1
   194ac:	5f ef       	ldi	r21, 0xFF	; 255
   194ae:	85 1a       	sub	r8, r21
   194b0:	95 0a       	sbc	r9, r21
   194b2:	8f ef       	ldi	r24, 0xFF	; 255
   194b4:	28 1a       	sub	r2, r24
   194b6:	38 0a       	sbc	r3, r24
   194b8:	24 30       	cpi	r18, 0x04	; 4
   194ba:	09 f0       	breq	.+2      	; 0x194be <process_commands() [clone .part.46]+0x6aaa>
   194bc:	5f cf       	rjmp	.-322    	; 0x1937c <process_commands() [clone .part.46]+0x6968>
   194be:	0c 94 51 b6 	jmp	0x16ca2	; 0x16ca2 <process_commands() [clone .part.46]+0x428e>
						cs.axis_steps_per_mm[i] *= fac;
						position[i] *= fac;
					}
					else
					{
						uint16_t fac = (res / res_new);
   194c2:	c5 01       	movw	r24, r10
   194c4:	b8 01       	movw	r22, r16
   194c6:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
						cs.axis_steps_per_mm[i] /= fac;
   194ca:	2b 01       	movw	r4, r22
   194cc:	71 2c       	mov	r7, r1
   194ce:	61 2c       	mov	r6, r1
   194d0:	c3 01       	movw	r24, r6
   194d2:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   194d6:	9b 01       	movw	r18, r22
   194d8:	ac 01       	movw	r20, r24
   194da:	d7 01       	movw	r26, r14
   194dc:	14 96       	adiw	r26, 0x04	; 4
   194de:	6d 91       	ld	r22, X+
   194e0:	7d 91       	ld	r23, X+
   194e2:	8d 91       	ld	r24, X+
   194e4:	9c 91       	ld	r25, X
   194e6:	17 97       	sbiw	r26, 0x07	; 7
   194e8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   194ec:	f7 01       	movw	r30, r14
   194ee:	64 83       	std	Z+4, r22	; 0x04
   194f0:	75 83       	std	Z+5, r23	; 0x05
   194f2:	86 83       	std	Z+6, r24	; 0x06
   194f4:	97 83       	std	Z+7, r25	; 0x07
						position[i] /= fac;
   194f6:	d6 01       	movw	r26, r12
   194f8:	6d 91       	ld	r22, X+
   194fa:	7d 91       	ld	r23, X+
   194fc:	8d 91       	ld	r24, X+
   194fe:	9c 91       	ld	r25, X
   19500:	a3 01       	movw	r20, r6
   19502:	92 01       	movw	r18, r4
   19504:	0f 94 4c dd 	call	0x3ba98	; 0x3ba98 <__divmodsi4>
   19508:	f6 01       	movw	r30, r12
   1950a:	20 83       	st	Z, r18
   1950c:	31 83       	std	Z+1, r19	; 0x01
   1950e:	42 83       	std	Z+2, r20	; 0x02
   19510:	53 83       	std	Z+3, r21	; 0x03
   19512:	b8 cf       	rjmp	.-144    	; 0x19484 <process_commands() [clone .part.46]+0x6a70>
        uint8_t mmuSlotIndex = 0xffU;
        float fastLoadLength = FILAMENTCHANGE_FIRSTFEED; // Only used without MMU
        float z_target = 0;
        if( MMU2::mmu2.Enabled() )
        {
            if( code_seen('P') || code_seen('T') ) {
   19514:	80 e5       	ldi	r24, 0x50	; 80
   19516:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1951a:	88 23       	and	r24, r24
   1951c:	29 f0       	breq	.+10     	; 0x19528 <process_commands() [clone .part.46]+0x6b14>
                mmuSlotIndex = code_value_uint8();
   1951e:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   19522:	18 2f       	mov	r17, r24
   19524:	0c 94 75 af 	jmp	0x15eea	; 0x15eea <process_commands() [clone .part.46]+0x34d6>
        uint8_t mmuSlotIndex = 0xffU;
        float fastLoadLength = FILAMENTCHANGE_FIRSTFEED; // Only used without MMU
        float z_target = 0;
        if( MMU2::mmu2.Enabled() )
        {
            if( code_seen('P') || code_seen('T') ) {
   19528:	84 e5       	ldi	r24, 0x54	; 84
   1952a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   1952e:	81 11       	cpse	r24, r1
   19530:	f6 cf       	rjmp	.-20     	; 0x1951e <process_commands() [clone .part.46]+0x6b0a>
   19532:	0c 94 74 af 	jmp	0x15ee8	; 0x15ee8 <process_commands() [clone .part.46]+0x34d4>
    */
    case 701:
    {
        uint8_t mmuSlotIndex = 0xffU;
        float fastLoadLength = FILAMENTCHANGE_FIRSTFEED; // Only used without MMU
        float z_target = 0;
   19536:	60 e0       	ldi	r22, 0x00	; 0
   19538:	70 e0       	ldi	r23, 0x00	; 0
   1953a:	cb 01       	movw	r24, r22
   1953c:	0c 94 8e af 	jmp	0x15f1c	; 0x15f1c <process_commands() [clone .part.46]+0x3508>
    if (MMU2::mmu2.Enabled()) {
        if (mmuSlotIndex < MMU_FILAMENT_COUNT) {
          MMU2::mmu2.load_filament_to_nozzle(mmuSlotIndex);
        } // else do nothing
    } else {
        custom_message_type = CustomMsg::FilamentLoading;
   19540:	82 e0       	ldi	r24, 0x02	; 2
   19542:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
        lcd_setstatuspgm(_T(MSG_LOADING_FILAMENT));
   19546:	85 e7       	ldi	r24, 0x75	; 117
   19548:	9b e5       	ldi	r25, 0x5B	; 91
   1954a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1954e:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

        current_position[E_AXIS] += fastLoadLength;
   19552:	a7 01       	movw	r20, r14
   19554:	96 01       	movw	r18, r12
   19556:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   1955a:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   1955e:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   19562:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   19566:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1956a:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   1956e:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   19572:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   19576:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
        plan_buffer_line_curposXYZE(FILAMENTCHANGE_EFEED_FIRST); //fast sequence
   1957a:	60 e0       	ldi	r22, 0x00	; 0
   1957c:	70 e0       	ldi	r23, 0x00	; 0
   1957e:	80 ea       	ldi	r24, 0xA0	; 160
   19580:	91 e4       	ldi	r25, 0x41	; 65
   19582:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

        if (raise_z_axis) { // backwards compatibility for 3.12 and older FW
   19586:	01 11       	cpse	r16, r1
   19588:	06 c0       	rjmp	.+12     	; 0x19596 <process_commands() [clone .part.46]+0x6b82>
          raise_z_above(MIN_Z_FOR_LOAD);
   1958a:	60 e0       	ldi	r22, 0x00	; 0
   1958c:	70 e0       	ldi	r23, 0x00	; 0
   1958e:	8c e0       	ldi	r24, 0x0C	; 12
   19590:	92 e4       	ldi	r25, 0x42	; 66
   19592:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
        }

        load_filament_final_feed(); // slow sequence
   19596:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>
        st_synchronize();
   1959a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

        Sound_MakeCustom(50, 500, false);
   1959e:	40 e0       	ldi	r20, 0x00	; 0
   195a0:	64 ef       	ldi	r22, 0xF4	; 244
   195a2:	71 e0       	ldi	r23, 0x01	; 1
   195a4:	82 e3       	ldi	r24, 0x32	; 50
   195a6:	90 e0       	ldi	r25, 0x00	; 0
   195a8:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>

        if (!farm_mode && (eFilamentAction != FilamentAction::None)) {
   195ac:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   195b0:	81 11       	cpse	r24, r1
            lcd_load_filament_color_check();
   195b2:	0f 94 9e 50 	call	0x2a13c	; 0x2a13c <lcd_load_filament_color_check()>
        #ifdef COMMUNITY_PREVENT_OOZE
        // Retract filament to prevent oozing
        retract_for_ooze_prevention();
        #endif //COMMUNITY_PREVENT_OOZE

        lcd_update_enable(true);
   195b6:	81 e0       	ldi	r24, 0x01	; 1
   195b8:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        lcd_update(2);
   195bc:	82 e0       	ldi	r24, 0x02	; 2
   195be:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
        lcd_setstatuspgm(MSG_WELCOME);
   195c2:	8f ec       	ldi	r24, 0xCF	; 207
   195c4:	9f e6       	ldi	r25, 0x6F	; 111
   195c6:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        custom_message_type = CustomMsg::Status;
   195ca:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
   195ce:	0c 94 a3 af 	jmp	0x15f46	; 0x15f46 <process_commands() [clone .part.46]+0x3532>
    */
    case 702:
    {
        float z_target = 0;
        float unloadLength = FILAMENTCHANGE_FINALRETRACT;
        if (code_seen('U')) unloadLength = code_value();
   195d2:	85 e5       	ldi	r24, 0x55	; 85
   195d4:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
    - `Z` - Move the Z axis by this distance. Default value is 0 to maintain backwards compatibility with older gcodes.
    */
    case 702:
    {
        float z_target = 0;
        float unloadLength = FILAMENTCHANGE_FINALRETRACT;
   195d8:	c1 2c       	mov	r12, r1
   195da:	d1 2c       	mov	r13, r1
   195dc:	76 01       	movw	r14, r12
        if (code_seen('U')) unloadLength = code_value();
   195de:	88 23       	and	r24, r24
   195e0:	21 f0       	breq	.+8      	; 0x195ea <process_commands() [clone .part.46]+0x6bd6>
   195e2:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   195e6:	6b 01       	movw	r12, r22
   195e8:	7c 01       	movw	r14, r24

        // For safety only allow positive values
        if (code_seen('Z')) z_target = fabs(code_value());
   195ea:	8a e5       	ldi	r24, 0x5A	; 90
   195ec:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   195f0:	88 23       	and	r24, r24
   195f2:	a1 f0       	breq	.+40     	; 0x1961c <process_commands() [clone .part.46]+0x6c08>
   195f4:	0e 94 24 60 	call	0xc048	; 0xc048 <code_value() [clone .lto_priv.547]>
   195f8:	9f 77       	andi	r25, 0x7F	; 127
        else raise_z_above(MIN_Z_FOR_UNLOAD); // backwards compatibility for 3.12 and older FW

        // Raise the Z axis
        float delta = raise_z(z_target);
   195fa:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
   195fe:	4b 01       	movw	r8, r22
   19600:	5c 01       	movw	r10, r24

        // Unload filament
        if (MMU2::mmu2.Enabled())  MMU2::mmu2.unload();
   19602:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19606:	81 30       	cpi	r24, 0x01	; 1
   19608:	99 f4       	brne	.+38     	; 0x19630 <process_commands() [clone .part.46]+0x6c1c>
   1960a:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
        else unload_filament(unloadLength);

        // Restore Z axis
        raise_z(-delta);
   1960e:	c5 01       	movw	r24, r10
   19610:	b4 01       	movw	r22, r8
   19612:	90 58       	subi	r25, 0x80	; 128
   19614:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
   19618:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        float unloadLength = FILAMENTCHANGE_FINALRETRACT;
        if (code_seen('U')) unloadLength = code_value();

        // For safety only allow positive values
        if (code_seen('Z')) z_target = fabs(code_value());
        else raise_z_above(MIN_Z_FOR_UNLOAD); // backwards compatibility for 3.12 and older FW
   1961c:	60 e0       	ldi	r22, 0x00	; 0
   1961e:	70 e0       	ldi	r23, 0x00	; 0
   19620:	8c e0       	ldi	r24, 0x0C	; 12
   19622:	92 e4       	ldi	r25, 0x42	; 66
   19624:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
    - `U` - Retract distance for removal (manual reload). Default value is FILAMENTCHANGE_FINALRETRACT.
    - `Z` - Move the Z axis by this distance. Default value is 0 to maintain backwards compatibility with older gcodes.
    */
    case 702:
    {
        float z_target = 0;
   19628:	60 e0       	ldi	r22, 0x00	; 0
   1962a:	70 e0       	ldi	r23, 0x00	; 0
   1962c:	cb 01       	movw	r24, r22
   1962e:	e5 cf       	rjmp	.-54     	; 0x195fa <process_commands() [clone .part.46]+0x6be6>
        // Raise the Z axis
        float delta = raise_z(z_target);

        // Unload filament
        if (MMU2::mmu2.Enabled())  MMU2::mmu2.unload();
        else unload_filament(unloadLength);
   19630:	c7 01       	movw	r24, r14
   19632:	b6 01       	movw	r22, r12
   19634:	0e 94 34 f9 	call	0x1f268	; 0x1f268 <unload_filament(float)>
   19638:	ea cf       	rjmp	.-44     	; 0x1960e <process_commands() [clone .part.46]+0x6bfa>
    #### Parameters
    - `P` - n index of slot (zero based, so 0-4 like T0 and T4)
    */
    case 705:
    {
        gcodes_M704_M705_M706(705);
   1963a:	81 ec       	ldi	r24, 0xC1	; 193
   1963c:	92 e0       	ldi	r25, 0x02	; 2
   1963e:	0e 94 d6 5f 	call	0xbfac	; 0xbfac <gcodes_M704_M705_M706(unsigned int)>
   19642:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    #### Parameters
    - `P` - n index of slot (zero based, so 0-4 like T0 and T4)
    */
    case 706:
    {
        gcodes_M704_M705_M706(706);
   19646:	82 ec       	ldi	r24, 0xC2	; 194
   19648:	92 e0       	ldi	r25, 0x02	; 2
   1964a:	0e 94 d6 5f 	call	0xbfac	; 0xbfac <gcodes_M704_M705_M706(unsigned int)>
   1964e:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    M707 A0x1b - Read a 8bit integer from register 0x1b and prints the result onto the serial line.

    Does nothing if the A parameter is not present or if MMU is not enabled.
    */
    case 707: {
        if ( MMU2::mmu2.Enabled() ) {
   19652:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19656:	81 30       	cpi	r24, 0x01	; 1
   19658:	11 f0       	breq	.+4      	; 0x1965e <process_commands() [clone .part.46]+0x6c4a>
   1965a:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            if( code_seen('A') ) {
   1965e:	81 e4       	ldi	r24, 0x41	; 65
   19660:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   19664:	88 23       	and	r24, r24
   19666:	11 f4       	brne	.+4      	; 0x1966c <process_commands() [clone .part.46]+0x6c58>
   19668:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                MMU2::mmu2.ReadRegister(uint8_t(strtol(strchr_pointer+1, NULL, 16)));
   1966c:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   19670:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   19674:	40 e1       	ldi	r20, 0x10	; 16
   19676:	50 e0       	ldi	r21, 0x00	; 0
   19678:	70 e0       	ldi	r23, 0x00	; 0
   1967a:	60 e0       	ldi	r22, 0x00	; 0
   1967c:	01 96       	adiw	r24, 0x01	; 1
   1967e:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   19682:	86 2f       	mov	r24, r22
   19684:	0f 94 a7 10 	call	0x2214e	; 0x2214e <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]>
   19688:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
    M708 A0x1b X05 - Write to register 0x1b the value 05.

    Does nothing if A parameter is missing or if MMU is not enabled.
    */
    case 708: {
        if ( MMU2::mmu2.Enabled() ){
   1968c:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19690:	81 30       	cpi	r24, 0x01	; 1
   19692:	11 f0       	breq	.+4      	; 0x19698 <process_commands() [clone .part.46]+0x6c84>
   19694:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
            uint8_t addr = 0;
            if( code_seen('A') ) {
   19698:	81 e4       	ldi	r24, 0x41	; 65
   1969a:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>

    Does nothing if A parameter is missing or if MMU is not enabled.
    */
    case 708: {
        if ( MMU2::mmu2.Enabled() ){
            uint8_t addr = 0;
   1969e:	10 e0       	ldi	r17, 0x00	; 0
            if( code_seen('A') ) {
   196a0:	88 23       	and	r24, r24
   196a2:	61 f0       	breq	.+24     	; 0x196bc <process_commands() [clone .part.46]+0x6ca8>
                addr = uint8_t(strtol(strchr_pointer+1, NULL, 16));
   196a4:	80 91 95 03 	lds	r24, 0x0395	; 0x800395 <strchr_pointer>
   196a8:	90 91 96 03 	lds	r25, 0x0396	; 0x800396 <strchr_pointer+0x1>
   196ac:	40 e1       	ldi	r20, 0x10	; 16
   196ae:	50 e0       	ldi	r21, 0x00	; 0
   196b0:	70 e0       	ldi	r23, 0x00	; 0
   196b2:	60 e0       	ldi	r22, 0x00	; 0
   196b4:	01 96       	adiw	r24, 0x01	; 1
   196b6:	0f 94 e6 d7 	call	0x3afcc	; 0x3afcc <strtol>
   196ba:	16 2f       	mov	r17, r22
            }
            uint16_t data = 0;
            if( code_seen('X') ) {
   196bc:	88 e5       	ldi	r24, 0x58	; 88
   196be:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   196c2:	88 23       	and	r24, r24
   196c4:	61 f0       	breq	.+24     	; 0x196de <process_commands() [clone .part.46]+0x6cca>
                data = code_value_short();
   196c6:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
            }
            if(addr){
   196ca:	11 23       	and	r17, r17
   196cc:	11 f4       	brne	.+4      	; 0x196d2 <process_commands() [clone .part.46]+0x6cbe>
   196ce:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
                MMU2::mmu2.WriteRegister(addr, data);
   196d2:	bc 01       	movw	r22, r24
   196d4:	81 2f       	mov	r24, r17
   196d6:	0e 94 29 e9 	call	0x1d252	; 0x1d252 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]>
   196da:	0c 94 73 b0 	jmp	0x160e6	; 0x160e6 <process_commands() [clone .part.46]+0x36d2>
        if ( MMU2::mmu2.Enabled() ){
            uint8_t addr = 0;
            if( code_seen('A') ) {
                addr = uint8_t(strtol(strchr_pointer+1, NULL, 16));
            }
            uint16_t data = 0;
   196de:	90 e0       	ldi	r25, 0x00	; 0
   196e0:	80 e0       	ldi	r24, 0x00	; 0
   196e2:	f3 cf       	rjmp	.-26     	; 0x196ca <process_commands() [clone .part.46]+0x6cb6>
   196e4:	60 e0       	ldi	r22, 0x00	; 0
   196e6:	8c ea       	ldi	r24, 0xAC	; 172
   196e8:	9c e0       	ldi	r25, 0x0C	; 12
   196ea:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    StopKeepPowered();
    PowerOff();
}

void MMU2::StopKeepPowered() {
    state = xState::Stopped;
   196ee:	10 92 ba 13 	sts	0x13BA, r1	; 0x8013ba <MMU2::mmu2+0x6f>
    protocol.ResetResponseDecoder(); // important - finished delayed restart relies on this
    StartSeqRestart();
}

void ProtocolLogic::Stop() {
    state = State::Stopped;
   196f2:	10 92 68 13 	sts	0x1368, r1	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Stopped;
   196f6:	10 92 4d 13 	sts	0x134D, r1	; 0x80134d <MMU2::mmu2+0x2>
   196fa:	0c 94 e9 af 	jmp	0x15fd2	; 0x15fd2 <process_commands() [clone .part.46]+0x35be>
   196fe:	61 e0       	ldi	r22, 0x01	; 1
   19700:	8c ea       	ldi	r24, 0xAC	; 172
   19702:	9c e0       	ldi	r25, 0x0C	; 12
   19704:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
                eeprom_update_byte_notify((uint8_t *)EEPROM_MMU_ENABLED, false);
                MMU2::mmu2.Stop();
                break;
            case 1:
                eeprom_update_byte_notify((uint8_t *)EEPROM_MMU_ENABLED, true);
                MMU2::mmu2.Start();
   19708:	0e 94 75 e4 	call	0x1c8ea	; 0x1c8ea <MMU2::MMU2::Start() [clone .constprop.65]>
   1970c:	0c 94 e9 af 	jmp	0x15fd2	; 0x15fd2 <process_commands() [clone .part.46]+0x35be>
        break;
    }
}

void MMU2::ResetX0() {
    logic.ResetMMU(); // Send soft reset
   19710:	80 e0       	ldi	r24, 0x00	; 0
}

void MMU2::ResetX42() {
    logic.ResetMMU(42);
   19712:	0f 94 88 10 	call	0x22110	; 0x22110 <MMU2::ProtocolLogic::ResetMMU(unsigned char) [clone .constprop.48]>
   19716:	0c 94 ff af 	jmp	0x15ffe	; 0x15ffe <process_commands() [clone .part.46]+0x35ea>
}

void MMU2::TriggerResetPin() {
    reset();
   1971a:	0f 94 d9 c5 	call	0x38bb2	; 0x38bb2 <MMU2::reset()>
   1971e:	0c 94 ff af 	jmp	0x15ffe	; 0x15ffe <process_commands() [clone .part.46]+0x35ea>
void MMU2::ResetX0() {
    logic.ResetMMU(); // Send soft reset
}

void MMU2::ResetX42() {
    logic.ResetMMU(42);
   19722:	8a e2       	ldi	r24, 0x2A	; 42
   19724:	f6 cf       	rjmp	.-20     	; 0x19712 <process_commands() [clone .part.46]+0x6cfe>
    T<extruder nr.> - Selects the filament position. A Gcode to load a filament to the nozzle must follow.
    Tx - Printer asks user to select a filament position. Then loads the filament from the MMU unit into the extruder wheels only. G-code to heat up the nozzle follows.
    Tc - Loads the filament tip from the extruder wheels into the nozzle.
    T? - acts the same as Tx followed by Tc
  */
  else if(*CMDBUFFER_CURRENT_STRING == 'T') {
   19726:	84 35       	cpi	r24, 0x54	; 84
   19728:	09 f0       	breq	.+2      	; 0x1972c <process_commands() [clone .part.46]+0x6d18>
   1972a:	79 c0       	rjmp	.+242    	; 0x1981e <process_commands() [clone .part.46]+0x6e0a>
        strchr_pointer = CMDBUFFER_CURRENT_STRING;
   1972c:	10 93 96 03 	sts	0x0396, r17	; 0x800396 <strchr_pointer+0x1>
   19730:	00 93 95 03 	sts	0x0395, r16	; 0x800395 <strchr_pointer>
        processing_tcode = true;
   19734:	81 e0       	ldi	r24, 0x01	; 1
   19736:	80 93 a3 03 	sts	0x03A3, r24	; 0x8003a3 <processing_tcode>
        TCodes(strchr_pointer, code_value_uint8());
   1973a:	0e 94 ef 5a 	call	0xb5de	; 0xb5de <code_value_uint8()>
   1973e:	18 2f       	mov	r17, r24
   19740:	20 91 95 03 	lds	r18, 0x0395	; 0x800395 <strchr_pointer>
   19744:	30 91 96 03 	lds	r19, 0x0396	; 0x800396 <strchr_pointer+0x1>
inline void TCodeInvalid() {
    SERIAL_ECHOLNPGM("Invalid T code.");
}

void TCodes(char *const strchr_pointer, const uint8_t codeValue) {
    uint8_t index = 1;
   19748:	91 e0       	ldi	r25, 0x01	; 1
    for ( /*nothing*/ ; strchr_pointer[index] == ' ' || strchr_pointer[index] == '\t'; index++)
   1974a:	79 01       	movw	r14, r18
   1974c:	e9 0e       	add	r14, r25
   1974e:	f1 1c       	adc	r15, r1
   19750:	d7 01       	movw	r26, r14
   19752:	8c 91       	ld	r24, X
   19754:	80 32       	cpi	r24, 0x20	; 32
   19756:	11 f0       	breq	.+4      	; 0x1975c <process_commands() [clone .part.46]+0x6d48>
   19758:	89 30       	cpi	r24, 0x09	; 9
   1975a:	11 f4       	brne	.+4      	; 0x19760 <process_commands() [clone .part.46]+0x6d4c>
   1975c:	9f 5f       	subi	r25, 0xFF	; 255
   1975e:	f5 cf       	rjmp	.-22     	; 0x1974a <process_commands() [clone .part.46]+0x6d36>
        ;

    strchr_pointer[index] = tolower(strchr_pointer[index]);
   19760:	08 2e       	mov	r0, r24
   19762:	00 0c       	add	r0, r0
   19764:	99 0b       	sbc	r25, r25
   19766:	0f 94 6f e2 	call	0x3c4de	; 0x3c4de <tolower>
   1976a:	f7 01       	movw	r30, r14
   1976c:	80 83       	st	Z, r24
#include <stdio.h>

static const char duplicate_Tcode_ignored[] PROGMEM = "Duplicate T-code ignored.";

inline bool IsInvalidTCode(char *const s, uint8_t i) {
    return ((s[i] < '0' || s[i] > '4') && s[i] != '?' && s[i] != 'x' && s[i] != 'c');
   1976e:	90 ed       	ldi	r25, 0xD0	; 208
   19770:	98 0f       	add	r25, r24
   19772:	95 30       	cpi	r25, 0x05	; 5
   19774:	58 f0       	brcs	.+22     	; 0x1978c <process_commands() [clone .part.46]+0x6d78>
   19776:	8f 33       	cpi	r24, 0x3F	; 63
   19778:	59 f0       	breq	.+22     	; 0x19790 <process_commands() [clone .part.46]+0x6d7c>
   1977a:	88 37       	cpi	r24, 0x78	; 120
   1977c:	49 f0       	breq	.+18     	; 0x19790 <process_commands() [clone .part.46]+0x6d7c>
   1977e:	83 36       	cpi	r24, 0x63	; 99
   19780:	f1 f0       	breq	.+60     	; 0x197be <process_commands() [clone .part.46]+0x6daa>
}

inline void TCodeInvalid() {
    SERIAL_ECHOLNPGM("Invalid T code.");
   19782:	8d e8       	ldi	r24, 0x8D	; 141
   19784:	9d e7       	ldi	r25, 0x7D	; 125
        } else {
            SERIAL_ECHO_START;
            if (codeValue >= EXTRUDERS) {
                SERIAL_ECHO('T');
                SERIAL_ECHOLN(codeValue + '0');
                SERIAL_ECHOLNRPGM(_n("Invalid extruder")); ////MSG_INVALID_EXTRUDER
   19786:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   1978a:	13 c0       	rjmp	.+38     	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>

    strchr_pointer[index] = tolower(strchr_pointer[index]);

    if (IsInvalidTCode(strchr_pointer, index)){
        TCodeInvalid();
    } else if (strchr_pointer[index] == 'x' || strchr_pointer[index] == '?'){
   1978c:	8f 33       	cpi	r24, 0x3F	; 63
   1978e:	a9 f4       	brne	.+42     	; 0x197ba <process_commands() [clone .part.46]+0x6da6>
        // load to extruder gears; if mmu is not present do nothing
        if (MMU2::mmu2.Enabled()) {
   19790:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19794:	81 30       	cpi	r24, 0x01	; 1
   19796:	69 f4       	brne	.+26     	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>
            MMU2::mmu2.tool_change(strchr_pointer[index], choose_menu_P(_T(MSG_SELECT_FILAMENT), MSG_FILAMENT));
   19798:	8c e5       	ldi	r24, 0x5C	; 92
   1979a:	9b e3       	ldi	r25, 0x3B	; 59
   1979c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   197a0:	70 e0       	ldi	r23, 0x00	; 0
   197a2:	60 e0       	ldi	r22, 0x00	; 0
   197a4:	0e 94 e8 e4 	call	0x1c9d0	; 0x1c9d0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]>
   197a8:	68 2f       	mov	r22, r24
   197aa:	d7 01       	movw	r26, r14
   197ac:	8c 91       	ld	r24, X
        }
    } else if (strchr_pointer[index] == 'c'){
        // load from extruder gears to nozzle (nozzle should be preheated)
        if (MMU2::mmu2.Enabled()) {
            MMU2::mmu2.tool_change(strchr_pointer[index], MMU2::mmu2.get_current_tool());
   197ae:	0f 94 26 10 	call	0x2204c	; 0x2204c <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]>
        processing_tcode = false;
   197b2:	10 92 a3 03 	sts	0x03A3, r1	; 0x8003a3 <processing_tcode>
   197b6:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    } else if (strchr_pointer[index] == 'x' || strchr_pointer[index] == '?'){
        // load to extruder gears; if mmu is not present do nothing
        if (MMU2::mmu2.Enabled()) {
            MMU2::mmu2.tool_change(strchr_pointer[index], choose_menu_P(_T(MSG_SELECT_FILAMENT), MSG_FILAMENT));
        }
    } else if (strchr_pointer[index] == 'c'){
   197ba:	83 36       	cpi	r24, 0x63	; 99
   197bc:	49 f4       	brne	.+18     	; 0x197d0 <process_commands() [clone .part.46]+0x6dbc>
        // load from extruder gears to nozzle (nozzle should be preheated)
        if (MMU2::mmu2.Enabled()) {
   197be:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   197c2:	81 30       	cpi	r24, 0x01	; 1
   197c4:	b1 f7       	brne	.-20     	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>
            MMU2::mmu2.tool_change(strchr_pointer[index], MMU2::mmu2.get_current_tool());
   197c6:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   197ca:	68 2f       	mov	r22, r24
   197cc:	83 e6       	ldi	r24, 0x63	; 99
   197ce:	ef cf       	rjmp	.-34     	; 0x197ae <process_commands() [clone .part.46]+0x6d9a>
        }
    } else { // Process T0 ... T4
        if (MMU2::mmu2.Enabled()) {
   197d0:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   197d4:	81 30       	cpi	r24, 0x01	; 1
   197d6:	69 f4       	brne	.+26     	; 0x197f2 <process_commands() [clone .part.46]+0x6dde>
            if (codeValue == MMU2::mmu2.get_current_tool()){
   197d8:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   197dc:	18 13       	cpse	r17, r24
   197de:	05 c0       	rjmp	.+10     	; 0x197ea <process_commands() [clone .part.46]+0x6dd6>
                // don't execute the same T-code twice in a row
                puts_P(duplicate_Tcode_ignored);
   197e0:	8d e9       	ldi	r24, 0x9D	; 157
   197e2:	9d e7       	ldi	r25, 0x7D	; 125
   197e4:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   197e8:	e4 cf       	rjmp	.-56     	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>
#if defined(MMU_HAS_CUTTER) && defined(MMU_ALWAYS_CUT)
                if (EEPROM_MMU_CUTTER_ENABLED_always == eeprom_read_byte((uint8_t *)EEPROM_MMU_CUTTER_ENABLED)) {
                    MMU2::mmu2.cut_filament(codeValue);
                }
#endif // defined(MMU_HAS_CUTTER) && defined(MMU_ALWAYS_CUT)
                MMU2::mmu2.tool_change(codeValue);
   197ea:	81 2f       	mov	r24, r17
   197ec:	0f 94 03 10 	call	0x22006	; 0x22006 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]>
   197f0:	e0 cf       	rjmp	.-64     	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>
            }
        } else {
            SERIAL_ECHO_START;
   197f2:	80 ed       	ldi	r24, 0xD0	; 208
   197f4:	9a ea       	ldi	r25, 0xAA	; 170
   197f6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            if (codeValue >= EXTRUDERS) {
   197fa:	11 23       	and	r17, r17
   197fc:	59 f0       	breq	.+22     	; 0x19814 <process_commands() [clone .part.46]+0x6e00>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   197fe:	84 e5       	ldi	r24, 0x54	; 84
   19800:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
                SERIAL_ECHO('T');
                SERIAL_ECHOLN(codeValue + '0');
   19804:	81 2f       	mov	r24, r17
   19806:	90 e0       	ldi	r25, 0x00	; 0
   19808:	c0 96       	adiw	r24, 0x30	; 48
   1980a:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
                SERIAL_ECHOLNRPGM(_n("Invalid extruder")); ////MSG_INVALID_EXTRUDER
   1980e:	8f eb       	ldi	r24, 0xBF	; 191
   19810:	96 e6       	ldi	r25, 0x66	; 102
   19812:	b9 cf       	rjmp	.-142    	; 0x19786 <process_commands() [clone .part.46]+0x6d72>
//                    next_feedrate = code_value();
//                    if (next_feedrate > 0.0) {
//                        feedrate = next_feedrate;
//                    }
//                }
                SERIAL_ECHORPGM(_n("Active Extruder: 0")); ////MSG_ACTIVE_EXTRUDER
   19814:	8c ea       	ldi	r24, 0xAC	; 172
   19816:	96 e6       	ldi	r25, 0x66	; 102
   19818:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   1981c:	ca cf       	rjmp	.-108    	; 0x197b2 <process_commands() [clone .part.46]+0x6d9e>

  /**
  *---------------------------------------------------------------------------------
  *# D codes
  */
  else if(*CMDBUFFER_CURRENT_STRING == 'D') // D codes (debug)
   1981e:	84 34       	cpi	r24, 0x44	; 68
   19820:	09 f0       	breq	.+2      	; 0x19824 <process_commands() [clone .part.46]+0x6e10>
   19822:	ee c0       	rjmp	.+476    	; 0x19a00 <process_commands() [clone .part.46]+0x6fec>
  {
    strchr_pointer = CMDBUFFER_CURRENT_STRING;
   19824:	10 93 96 03 	sts	0x0396, r17	; 0x800396 <strchr_pointer+0x1>
   19828:	00 93 95 03 	sts	0x0395, r16	; 0x800395 <strchr_pointer>
    switch(code_value_short())
   1982c:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   19830:	86 30       	cpi	r24, 0x06	; 6
   19832:	91 05       	cpc	r25, r1
   19834:	09 f4       	brne	.+2      	; 0x19838 <process_commands() [clone .part.46]+0x6e24>
   19836:	79 c0       	rjmp	.+242    	; 0x1992a <process_commands() [clone .part.46]+0x6f16>
   19838:	9c f4       	brge	.+38     	; 0x19860 <process_commands() [clone .part.46]+0x6e4c>
   1983a:	82 30       	cpi	r24, 0x02	; 2
   1983c:	91 05       	cpc	r25, r1
   1983e:	09 f4       	brne	.+2      	; 0x19842 <process_commands() [clone .part.46]+0x6e2e>
   19840:	52 c0       	rjmp	.+164    	; 0x198e6 <process_commands() [clone .part.46]+0x6ed2>
   19842:	83 30       	cpi	r24, 0x03	; 3
   19844:	91 05       	cpc	r25, r1
   19846:	09 f4       	brne	.+2      	; 0x1984a <process_commands() [clone .part.46]+0x6e36>
   19848:	61 c0       	rjmp	.+194    	; 0x1990c <process_commands() [clone .part.46]+0x6ef8>
   1984a:	01 96       	adiw	r24, 0x01	; 1
   1984c:	89 f4       	brne	.+34     	; 0x19870 <process_commands() [clone .part.46]+0x6e5c>

    *
    */
void dcode__1()
{
	DBG(_N("D-1 - Endless loop\n"));
   1984e:	88 e9       	ldi	r24, 0x98	; 152
   19850:	96 e6       	ldi	r25, 0x66	; 102
   19852:	9f 93       	push	r25
   19854:	8f 93       	push	r24
   19856:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   1985a:	0f 90       	pop	r0
   1985c:	0f 90       	pop	r0
   1985e:	ff cf       	rjmp	.-2      	; 0x1985e <process_commands() [clone .part.46]+0x6e4a>
   19860:	85 31       	cpi	r24, 0x15	; 21
   19862:	91 05       	cpc	r25, r1
   19864:	09 f4       	brne	.+2      	; 0x19868 <process_commands() [clone .part.46]+0x6e54>
   19866:	8d c0       	rjmp	.+282    	; 0x19982 <process_commands() [clone .part.46]+0x6f6e>
   19868:	94 f4       	brge	.+36     	; 0x1988e <process_commands() [clone .part.46]+0x6e7a>
   1986a:	44 97       	sbiw	r24, 0x14	; 20
   1986c:	09 f4       	brne	.+2      	; 0x19870 <process_commands() [clone .part.46]+0x6e5c>
   1986e:	69 c0       	rjmp	.+210    	; 0x19942 <process_commands() [clone .part.46]+0x6f2e>
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)

#endif //DEBUG_DCODES

    default:
        printf_P(MSG_UNKNOWN_CODE, 'D', cmdbuffer + bufindr + CMDHDRSIZE);
   19870:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   19874:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   19878:	88 55       	subi	r24, 0x58	; 88
   1987a:	9f 4e       	sbci	r25, 0xEF	; 239
   1987c:	9f 93       	push	r25
   1987e:	8f 93       	push	r24
   19880:	1f 92       	push	r1
   19882:	84 e4       	ldi	r24, 0x44	; 68
   19884:	8f 93       	push	r24
   19886:	86 ea       	ldi	r24, 0xA6	; 166
   19888:	98 e6       	ldi	r25, 0x68	; 104
   1988a:	0c 94 63 97 	jmp	0x12ec6	; 0x12ec6 <process_commands() [clone .part.46]+0x4b2>
  *# D codes
  */
  else if(*CMDBUFFER_CURRENT_STRING == 'D') // D codes (debug)
  {
    strchr_pointer = CMDBUFFER_CURRENT_STRING;
    switch(code_value_short())
   1988e:	86 31       	cpi	r24, 0x16	; 22
   19890:	91 05       	cpc	r25, r1
   19892:	09 f4       	brne	.+2      	; 0x19896 <process_commands() [clone .part.46]+0x6e82>
   19894:	9b c0       	rjmp	.+310    	; 0x199cc <process_commands() [clone .part.46]+0x6fb8>
   19896:	86 34       	cpi	r24, 0x46	; 70
   19898:	91 05       	cpc	r25, r1
   1989a:	51 f7       	brne	.-44     	; 0x19870 <process_commands() [clone .part.46]+0x6e5c>

    #### Parameters
    - `S` - Enable 0-1 (default 0)
    */
    case 70: {
        if(code_seen('S'))
   1989c:	83 e5       	ldi	r24, 0x53	; 83
   1989e:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   198a2:	88 23       	and	r24, r24
   198a4:	11 f4       	brne	.+4      	; 0x198aa <process_commands() [clone .part.46]+0x6e96>
   198a6:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
            thermal_model_log_enable(code_value_short());
   198aa:	0e 94 fc 5a 	call	0xb5f8	; 0xb5f8 <code_value_short() [clone .lto_priv.543]>
   198ae:	11 e0       	ldi	r17, 0x01	; 1
   198b0:	00 97       	sbiw	r24, 0x00	; 0
   198b2:	09 f4       	brne	.+2      	; 0x198b6 <process_commands() [clone .part.46]+0x6ea2>
   198b4:	10 e0       	ldi	r17, 0x00	; 0
}

#ifdef THERMAL_MODEL_DEBUG
void thermal_model_log_enable(bool enable)
{
    if(enable) {
   198b6:	89 2b       	or	r24, r25
   198b8:	91 f0       	breq	.+36     	; 0x198de <process_commands() [clone .part.46]+0x6eca>
        TempMgrGuard temp_mgr_guard;
   198ba:	ce 01       	movw	r24, r28
   198bc:	01 96       	adiw	r24, 0x01	; 1
   198be:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
        thermal_model::log_buf.entry.stamp = _millis();
   198c2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   198c6:	60 93 24 06 	sts	0x0624, r22	; 0x800624 <_ZN13thermal_modelL7log_bufE.lto_priv.539>
   198ca:	70 93 25 06 	sts	0x0625, r23	; 0x800625 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x1>
   198ce:	80 93 26 06 	sts	0x0626, r24	; 0x800626 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x2>
   198d2:	90 93 27 06 	sts	0x0627, r25	; 0x800627 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x3>

#ifdef THERMAL_MODEL_DEBUG
void thermal_model_log_enable(bool enable)
{
    if(enable) {
        TempMgrGuard temp_mgr_guard;
   198d6:	ce 01       	movw	r24, r28
   198d8:	01 96       	adiw	r24, 0x01	; 1
   198da:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
        thermal_model::log_buf.entry.stamp = _millis();
    }
    thermal_model::log_buf.enabled = enable;
   198de:	10 93 34 06 	sts	0x0634, r17	; 0x800634 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x10>
   198e2:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
	- The hex data needs to be lowercase

    */
void dcode_2()
{
    dcode_core(RAMSTART, RAMEND+1, dcode_mem_t::sram, 2, _N("SRAM"));
   198e6:	43 e9       	ldi	r20, 0x93	; 147
   198e8:	c4 2e       	mov	r12, r20
   198ea:	46 e6       	ldi	r20, 0x66	; 102
   198ec:	d4 2e       	mov	r13, r20
   198ee:	52 e0       	ldi	r21, 0x02	; 2
   198f0:	e5 2e       	mov	r14, r21
   198f2:	00 e0       	ldi	r16, 0x00	; 0
   198f4:	20 e0       	ldi	r18, 0x00	; 0
   198f6:	32 e2       	ldi	r19, 0x22	; 34
   198f8:	40 e0       	ldi	r20, 0x00	; 0
   198fa:	50 e0       	ldi	r21, 0x00	; 0
   198fc:	60 e0       	ldi	r22, 0x00	; 0
   198fe:	72 e0       	ldi	r23, 0x02	; 2
   19900:	80 e0       	ldi	r24, 0x00	; 0
   19902:	90 e0       	ldi	r25, 0x00	; 0
	- The hex data needs to be lowercase
	- Writing is currently not implemented
    */
void dcode_6()
{
    dcode_core(0x0, XFLASH_SIZE, dcode_mem_t::xflash, 6, _N("XFLASH"));
   19904:	0e 94 2a 62 	call	0xc454	; 0xc454 <dcode_core(unsigned long, unsigned long, dcode_mem_t, unsigned char, char const*)>
   19908:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
	- The hex data needs to be lowercase

    */
void dcode_3()
{
    dcode_core(0, EEPROM_SIZE, dcode_mem_t::eeprom, 3, _N("EEPROM"));
   1990c:	2c e8       	ldi	r18, 0x8C	; 140
   1990e:	c2 2e       	mov	r12, r18
   19910:	26 e6       	ldi	r18, 0x66	; 102
   19912:	d2 2e       	mov	r13, r18
   19914:	33 e0       	ldi	r19, 0x03	; 3
   19916:	e3 2e       	mov	r14, r19
   19918:	01 e0       	ldi	r16, 0x01	; 1
   1991a:	20 e0       	ldi	r18, 0x00	; 0
   1991c:	30 e1       	ldi	r19, 0x10	; 16
   1991e:	40 e0       	ldi	r20, 0x00	; 0
   19920:	50 e0       	ldi	r21, 0x00	; 0
	- The hex data needs to be lowercase
	- Writing is currently not implemented
    */
void dcode_6()
{
    dcode_core(0x0, XFLASH_SIZE, dcode_mem_t::xflash, 6, _N("XFLASH"));
   19922:	60 e0       	ldi	r22, 0x00	; 0
   19924:	70 e0       	ldi	r23, 0x00	; 0
   19926:	cb 01       	movw	r24, r22
   19928:	ed cf       	rjmp	.-38     	; 0x19904 <process_commands() [clone .part.46]+0x6ef0>
   1992a:	85 e8       	ldi	r24, 0x85	; 133
   1992c:	c8 2e       	mov	r12, r24
   1992e:	86 e6       	ldi	r24, 0x66	; 102
   19930:	d8 2e       	mov	r13, r24
   19932:	96 e0       	ldi	r25, 0x06	; 6
   19934:	e9 2e       	mov	r14, r25
   19936:	03 e0       	ldi	r16, 0x03	; 3
   19938:	20 e0       	ldi	r18, 0x00	; 0
   1993a:	30 e0       	ldi	r19, 0x00	; 0
   1993c:	44 e0       	ldi	r20, 0x04	; 4
   1993e:	50 e0       	ldi	r21, 0x00	; 0
   19940:	f0 cf       	rjmp	.-32     	; 0x19922 <process_commands() [clone .part.46]+0x6f0e>
#ifdef XFLASH_DUMP
#include "xflash_dump.h"

void dcode_20()
{
    if(code_seen('E'))
   19942:	85 e4       	ldi	r24, 0x45	; 69
   19944:	0e 94 5d 5b 	call	0xb6ba	; 0xb6ba <code_seen(char) [clone .lto_priv.549]>
   19948:	88 23       	and	r24, r24
   1994a:	29 f0       	breq	.+10     	; 0x19956 <process_commands() [clone .part.46]+0x6f42>
        xfdump_full_dump_and_reset();
   1994c:	80 e0       	ldi	r24, 0x00	; 0
   1994e:	0e 94 a1 ee 	call	0x1dd42	; 0x1dd42 <xfdump_full_dump_and_reset(dump_crash_reason)>
   19952:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    else
    {
        unsigned long ts = _millis();
   19956:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   1995a:	6b 01       	movw	r12, r22
   1995c:	7c 01       	movw	r14, r24
        xfdump_dump();
   1995e:	0e 94 cf ee 	call	0x1dd9e	; 0x1dd9e <xfdump_dump()>
        ts = _millis() - ts;
   19962:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   19966:	dc 01       	movw	r26, r24
   19968:	cb 01       	movw	r24, r22
   1996a:	8c 19       	sub	r24, r12
   1996c:	9d 09       	sbc	r25, r13
   1996e:	ae 09       	sbc	r26, r14
   19970:	bf 09       	sbc	r27, r15
        DBG(_N("dump completed in %lums\n"), ts);
   19972:	bf 93       	push	r27
   19974:	af 93       	push	r26
   19976:	9f 93       	push	r25
   19978:	8f 93       	push	r24
   1997a:	8c e6       	ldi	r24, 0x6C	; 108
   1997c:	96 e6       	ldi	r25, 0x66	; 102
   1997e:	0c 94 63 97 	jmp	0x12ec6	; 0x12ec6 <process_commands() [clone .part.46]+0x4b2>
    }
}

void dcode_21()
{
    if(!xfdump_check_state())
   19982:	90 e0       	ldi	r25, 0x00	; 0
   19984:	80 e0       	ldi	r24, 0x00	; 0
   19986:	0e 94 ed ed 	call	0x1dbda	; 0x1dbda <xfdump_check_state(dump_crash_reason*)>
   1998a:	81 11       	cpse	r24, r1
   1998c:	07 c0       	rjmp	.+14     	; 0x1999c <process_commands() [clone .part.46]+0x6f88>
        DBG(_N("no dump available\n"));
   1998e:	89 e5       	ldi	r24, 0x59	; 89
   19990:	96 e6       	ldi	r25, 0x66	; 102
    if(!xfdump_check_state())
        DBG(_N("no dump available\n"));
    else
    {
        xfdump_reset();
        DBG(_N("dump cleared\n"));
   19992:	9f 93       	push	r25
   19994:	8f 93       	push	r24
   19996:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   1999a:	14 c0       	rjmp	.+40     	; 0x199c4 <process_commands() [clone .part.46]+0x6fb0>
{
    if(!xfdump_check_state())
        DBG(_N("no dump available\n"));
    else
    {
        KEEPALIVE_STATE(NOT_BUSY);
   1999c:	81 e0       	ldi	r24, 0x01	; 1
   1999e:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
        DBG(_N("D21 - read crash dump\n"));
   199a2:	82 e4       	ldi	r24, 0x42	; 66
   199a4:	96 e6       	ldi	r25, 0x66	; 102
   199a6:	9f 93       	push	r25
   199a8:	8f 93       	push	r24
   199aa:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        print_mem(DUMP_OFFSET, sizeof(dump_t), dcode_mem_t::xflash);
   199ae:	03 e0       	ldi	r16, 0x03	; 3
   199b0:	20 e0       	ldi	r18, 0x00	; 0
   199b2:	33 e2       	ldi	r19, 0x23	; 35
   199b4:	40 e0       	ldi	r20, 0x00	; 0
   199b6:	50 e0       	ldi	r21, 0x00	; 0
   199b8:	60 e0       	ldi	r22, 0x00	; 0
   199ba:	70 ed       	ldi	r23, 0xD0	; 208
   199bc:	83 e0       	ldi	r24, 0x03	; 3
   199be:	90 e0       	ldi	r25, 0x00	; 0
   199c0:	0f 94 6b 87 	call	0x30ed6	; 0x30ed6 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]>
    if(!xfdump_check_state())
        DBG(_N("no dump available\n"));
    else
    {
        xfdump_reset();
        DBG(_N("dump cleared\n"));
   199c4:	0f 90       	pop	r0
   199c6:	0f 90       	pop	r0
   199c8:	0c 94 c8 95 	jmp	0x12b90	; 0x12b90 <process_commands() [clone .part.46]+0x17c>
    }
}

void dcode_22()
{
    if(!xfdump_check_state())
   199cc:	90 e0       	ldi	r25, 0x00	; 0
   199ce:	80 e0       	ldi	r24, 0x00	; 0
   199d0:	0e 94 ed ed 	call	0x1dbda	; 0x1dbda <xfdump_check_state(dump_crash_reason*)>
   199d4:	81 11       	cpse	r24, r1
   199d6:	03 c0       	rjmp	.+6      	; 0x199de <process_commands() [clone .part.46]+0x6fca>
        DBG(_N("no dump available\n"));
   199d8:	8f e2       	ldi	r24, 0x2F	; 47
   199da:	96 e6       	ldi	r25, 0x66	; 102
   199dc:	da cf       	rjmp	.-76     	; 0x19992 <process_commands() [clone .part.46]+0x6f7e>
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   199de:	8c e5       	ldi	r24, 0x5C	; 92
   199e0:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   199e2:	1d bc       	out	0x2d, r1	; 45


void xfdump_reset()
{
    XFLASH_SPI_ENTER();
    xflash_enable_wr();
   199e4:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
	_CS_HIGH();
}

void xflash_sector_erase(uint32_t addr)
{
	return xflash_erase(_CMD_SECTOR_ERASE, addr);
   199e8:	40 e0       	ldi	r20, 0x00	; 0
   199ea:	50 ed       	ldi	r21, 0xD0	; 208
   199ec:	63 e0       	ldi	r22, 0x03	; 3
   199ee:	70 e0       	ldi	r23, 0x00	; 0
   199f0:	80 e2       	ldi	r24, 0x20	; 32
   199f2:	0e 94 a7 ed 	call	0x1db4e	; 0x1db4e <xflash_erase>
    xflash_sector_erase(DUMP_OFFSET + offsetof(dump_t, header.magic));
    xflash_wait_busy();
   199f6:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
    else
    {
        xfdump_reset();
        DBG(_N("dump cleared\n"));
   199fa:	81 e2       	ldi	r24, 0x21	; 33
   199fc:	96 e6       	ldi	r25, 0x66	; 102
   199fe:	c9 cf       	rjmp	.-110    	; 0x19992 <process_commands() [clone .part.46]+0x6f7e>
	}
  }

  else
  {
    SERIAL_ECHO_START;
   19a00:	80 ed       	ldi	r24, 0xD0	; 208
   19a02:	9a ea       	ldi	r25, 0xAA	; 170
   19a04:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHORPGM(MSG_UNKNOWN_COMMAND);
   19a08:	81 e2       	ldi	r24, 0x21	; 33
   19a0a:	97 e6       	ldi	r25, 0x67	; 103
   19a0c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHO(CMDBUFFER_CURRENT_STRING);
   19a10:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   19a14:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   19a18:	88 55       	subi	r24, 0x58	; 88
   19a1a:	9f 4e       	sbci	r25, 0xEF	; 239
   19a1c:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
    SERIAL_ECHOLNPGM("\"(2)");
   19a20:	82 ea       	ldi	r24, 0xA2	; 162
   19a22:	94 e8       	ldi	r25, 0x84	; 132
   19a24:	0c 94 d3 97 	jmp	0x12fa6	; 0x12fa6 <process_commands() [clone .part.46]+0x592>

#ifdef FWRETRACT
        if(cs.autoretract_enabled) {
            if( !(code_seen('X') || code_seen('Y') || code_seen('Z')) && code_seen('E')) {
                float echange=destination[E_AXIS]-current_position[E_AXIS];
                if((echange<-MIN_RETRACT && !retracted[active_extruder]) || (echange>MIN_RETRACT && retracted[active_extruder])) { //move appears to be an attempt to retract or recover
   19a28:	2d ec       	ldi	r18, 0xCD	; 205
   19a2a:	3c ec       	ldi	r19, 0xCC	; 204
   19a2c:	4c ec       	ldi	r20, 0xCC	; 204
   19a2e:	5d e3       	ldi	r21, 0x3D	; 61
   19a30:	c7 01       	movw	r24, r14
   19a32:	b6 01       	movw	r22, r12
   19a34:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   19a38:	18 16       	cp	r1, r24
   19a3a:	14 f4       	brge	.+4      	; 0x19a40 <process_commands() [clone .part.46]+0x702c>
   19a3c:	0c 94 10 99 	jmp	0x13220	; 0x13220 <process_commands() [clone .part.46]+0x80c>
   19a40:	0c 94 7e 9a 	jmp	0x134fc	; 0x134fc <process_commands() [clone .part.46]+0xae8>
            float temp = (40 + i * 5);
            printf_P(_N("\nStep: %d/6 (skipped)\nPINDA temperature: %d Z shift (mm):0\n"), i + 2, (40 + i*5));
            if (i >= 0) {
                eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
            }
            if (start_temp <= temp) break;
   19a44:	a3 01       	movw	r20, r6
   19a46:	92 01       	movw	r18, r4
   19a48:	62 2d       	mov	r22, r2
   19a4a:	73 2d       	mov	r23, r3
   19a4c:	8e 2d       	mov	r24, r14
   19a4e:	9f 2d       	mov	r25, r15
   19a50:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   19a54:	18 16       	cp	r1, r24
   19a56:	14 f0       	brlt	.+4      	; 0x19a5c <process_commands() [clone .part.46]+0x7048>
   19a58:	0c 94 5f a2 	jmp	0x144be	; 0x144be <process_commands() [clone .part.46]+0x1aaa>
   19a5c:	e5 e0       	ldi	r30, 0x05	; 5
   19a5e:	ce 0e       	add	r12, r30
   19a60:	d1 1c       	adc	r13, r1
   19a62:	f2 e0       	ldi	r31, 0x02	; 2
   19a64:	8f 0e       	add	r8, r31
   19a66:	91 1c       	adc	r9, r1
        SERIAL_ECHOLNPGM("PINDA probe calibration start");

        float zero_z;
        int z_shift = 0; //unit: steps
        float start_temp = 5 * (int)(current_temperature_pinda / 5);
        if (start_temp < 35) start_temp = 35;
   19a68:	85 01       	movw	r16, r10
   19a6a:	0c 94 26 a2 	jmp	0x1444c	; 0x1444c <process_commands() [clone .part.46]+0x1a38>
				uint16_t res_new = code_value();
#ifdef ALLOW_ALL_MRES
				bool res_valid = res_new > 0 && res_new <= 256 && !(res_new & (res_new - 1)); // must be a power of two
#else
				bool res_valid = (res_new == 8) || (res_new == 16) || (res_new == 32); // resolutions valid for all axis
				res_valid |= (i != E_AXIS) && ((res_new == 1) || (res_new == 2) || (res_new == 4)); // resolutions valid for X Y Z only
   19a6e:	67 96       	adiw	r28, 0x17	; 23
   19a70:	2f ad       	ldd	r18, Y+63	; 0x3f
   19a72:	67 97       	sbiw	r28, 0x17	; 23
   19a74:	8b 2d       	mov	r24, r11
   19a76:	23 30       	cpi	r18, 0x03	; 3
   19a78:	29 f0       	breq	.+10     	; 0x19a84 <process_commands() [clone .part.46]+0x7070>
   19a7a:	91 e0       	ldi	r25, 0x01	; 1
   19a7c:	04 30       	cpi	r16, 0x04	; 4
   19a7e:	11 05       	cpc	r17, r1
   19a80:	09 f4       	brne	.+2      	; 0x19a84 <process_commands() [clone .part.46]+0x7070>
   19a82:	ac cc       	rjmp	.-1704   	; 0x193dc <process_commands() [clone .part.46]+0x69c8>
   19a84:	90 e0       	ldi	r25, 0x00	; 0
   19a86:	aa cc       	rjmp	.-1708   	; 0x193dc <process_commands() [clone .part.46]+0x69c8>
    int8_t upgrade = is_provided_version_newer(version_string);
    if (upgrade < 0)
        return false;

    if (upgrade) {
        lcd_display_message_fullscreen_P(_T(MSG_NEW_FIRMWARE_AVAILABLE));
   19a88:	85 e5       	ldi	r24, 0x55	; 85
   19a8a:	99 e3       	ldi	r25, 0x39	; 57
   19a8c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19a90:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
        lcd_puts_at_P(0, 2, PSTR(""));
   19a94:	45 e0       	ldi	r20, 0x05	; 5
   19a96:	54 e8       	ldi	r21, 0x84	; 132
   19a98:	62 e0       	ldi	r22, 0x02	; 2
   19a9a:	80 e0       	ldi	r24, 0x00	; 0
   19a9c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        for (const char *c = version_string; ! is_whitespace_or_nl_or_eol(*c); ++ c)
   19aa0:	f8 01       	movw	r30, r16
   19aa2:	81 91       	ld	r24, Z+
   19aa4:	8f 01       	movw	r16, r30
    return c == ' ' || c == '\t' || c == '\n' || c == '\r';
}

inline bool is_whitespace_or_nl_or_eol(char c)
{
    return c == 0 || c == ' ' || c == '\t' || c == '\n' || c == '\r';
   19aa6:	98 2f       	mov	r25, r24
   19aa8:	9f 7d       	andi	r25, 0xDF	; 223
   19aaa:	11 f4       	brne	.+4      	; 0x19ab0 <process_commands() [clone .part.46]+0x709c>
   19aac:	0c 94 ba b6 	jmp	0x16d74	; 0x16d74 <process_commands() [clone .part.46]+0x4360>
   19ab0:	97 ef       	ldi	r25, 0xF7	; 247
   19ab2:	98 0f       	add	r25, r24
   19ab4:	92 30       	cpi	r25, 0x02	; 2
   19ab6:	10 f4       	brcc	.+4      	; 0x19abc <process_commands() [clone .part.46]+0x70a8>
   19ab8:	0c 94 ba b6 	jmp	0x16d74	; 0x16d74 <process_commands() [clone .part.46]+0x4360>
   19abc:	8d 30       	cpi	r24, 0x0D	; 13
   19abe:	11 f4       	brne	.+4      	; 0x19ac4 <process_commands() [clone .part.46]+0x70b0>
   19ac0:	0c 94 ba b6 	jmp	0x16d74	; 0x16d74 <process_commands() [clone .part.46]+0x4360>

    if (upgrade) {
        lcd_display_message_fullscreen_P(_T(MSG_NEW_FIRMWARE_AVAILABLE));
        lcd_puts_at_P(0, 2, PSTR(""));
        for (const char *c = version_string; ! is_whitespace_or_nl_or_eol(*c); ++ c)
            lcd_putc(*c);
   19ac4:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   19ac8:	eb cf       	rjmp	.-42     	; 0x19aa0 <process_commands() [clone .part.46]+0x708c>
    thermal_model::data.L = samples * intv_ms;
}

void thermal_model_set_params(float P, float U, float V, float C, float D, int16_t L, float Ta_corr, float warn, float err)
{
    TempMgrGuard temp_mgr_guard;
   19aca:	ce 01       	movw	r24, r28
   19acc:	01 96       	adiw	r24, 0x01	; 1
   19ace:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
   19ad2:	0c 94 a9 aa 	jmp	0x15552	; 0x15552 <process_commands() [clone .part.46]+0x2b3e>

00019ad6 <MarlinSerial::begin(long) [clone .constprop.64]>:


uint8_t check_pinda_0()
{
	return _PINDA?0:1;
}
   19ad6:	22 e0       	ldi	r18, 0x02	; 2
   19ad8:	20 93 c0 00 	sts	0x00C0, r18	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   19adc:	10 92 c5 00 	sts	0x00C5, r1	; 0x8000c5 <__TEXT_REGION_LENGTH__+0x7c20c5>
   19ae0:	90 e1       	ldi	r25, 0x10	; 16
   19ae2:	90 93 c4 00 	sts	0x00C4, r25	; 0x8000c4 <__TEXT_REGION_LENGTH__+0x7c20c4>
   19ae6:	80 91 c1 00 	lds	r24, 0x00C1	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19aea:	80 61       	ori	r24, 0x10	; 16
   19aec:	80 93 c1 00 	sts	0x00C1, r24	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19af0:	80 91 c1 00 	lds	r24, 0x00C1	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19af4:	88 60       	ori	r24, 0x08	; 8
   19af6:	80 93 c1 00 	sts	0x00C1, r24	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19afa:	80 91 c1 00 	lds	r24, 0x00C1	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19afe:	80 68       	ori	r24, 0x80	; 128
   19b00:	80 93 c1 00 	sts	0x00C1, r24	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   19b04:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   19b08:	81 30       	cpi	r24, 0x01	; 1
   19b0a:	a9 f4       	brne	.+42     	; 0x19b36 <MarlinSerial::begin(long) [clone .constprop.64]+0x60>
   19b0c:	20 93 c8 00 	sts	0x00C8, r18	; 0x8000c8 <__TEXT_REGION_LENGTH__+0x7c20c8>
   19b10:	10 92 cd 00 	sts	0x00CD, r1	; 0x8000cd <__TEXT_REGION_LENGTH__+0x7c20cd>
   19b14:	90 93 cc 00 	sts	0x00CC, r25	; 0x8000cc <__TEXT_REGION_LENGTH__+0x7c20cc>
   19b18:	80 91 c9 00 	lds	r24, 0x00C9	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b1c:	80 61       	ori	r24, 0x10	; 16
   19b1e:	80 93 c9 00 	sts	0x00C9, r24	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b22:	80 91 c9 00 	lds	r24, 0x00C9	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b26:	88 60       	ori	r24, 0x08	; 8
   19b28:	80 93 c9 00 	sts	0x00C9, r24	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b2c:	80 91 c9 00 	lds	r24, 0x00C9	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b30:	80 68       	ori	r24, 0x80	; 128
   19b32:	80 93 c9 00 	sts	0x00C9, r24	; 0x8000c9 <__TEXT_REGION_LENGTH__+0x7c20c9>
   19b36:	08 95       	ret

00019b38 <turnOffPWM>:
   19b38:	81 50       	subi	r24, 0x01	; 1
   19b3a:	82 31       	cpi	r24, 0x12	; 18
   19b3c:	08 f0       	brcs	.+2      	; 0x19b40 <turnOffPWM+0x8>
   19b3e:	5a c0       	rjmp	.+180    	; 0x19bf4 <turnOffPWM+0xbc>
   19b40:	e8 2f       	mov	r30, r24
   19b42:	f0 e0       	ldi	r31, 0x00	; 0
   19b44:	88 27       	eor	r24, r24
   19b46:	e8 55       	subi	r30, 0x58	; 88
   19b48:	f2 43       	sbci	r31, 0x32	; 50
   19b4a:	8f 4f       	sbci	r24, 0xFF	; 255
   19b4c:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   19b50:	c8 cd       	rjmp	.-1136   	; 0x196e2 <process_commands() [clone .part.46]+0x6cce>
   19b52:	cc cd       	rjmp	.-1128   	; 0x196ec <process_commands() [clone .part.46]+0x6cd8>
   19b54:	ba cd       	rjmp	.-1164   	; 0x196ca <process_commands() [clone .part.46]+0x6cb6>
   19b56:	c0 cd       	rjmp	.-1152   	; 0x196d8 <process_commands() [clone .part.46]+0x6cc4>
   19b58:	c4 cd       	rjmp	.-1144   	; 0x196e2 <process_commands() [clone .part.46]+0x6cce>
   19b5a:	fa cd       	rjmp	.-1036   	; 0x19750 <process_commands() [clone .part.46]+0x6d3c>
   19b5c:	cf cd       	rjmp	.-1122   	; 0x196fc <process_commands() [clone .part.46]+0x6ce8>
   19b5e:	d5 cd       	rjmp	.-1110   	; 0x1970a <process_commands() [clone .part.46]+0x6cf6>
   19b60:	d9 cd       	rjmp	.-1102   	; 0x19714 <process_commands() [clone .part.46]+0x6d00>
   19b62:	df cd       	rjmp	.-1090   	; 0x19722 <process_commands() [clone .part.46]+0x6d0e>
   19b64:	e3 cd       	rjmp	.-1082   	; 0x1972c <process_commands() [clone .part.46]+0x6d18>
   19b66:	e7 cd       	rjmp	.-1074   	; 0x19736 <process_commands() [clone .part.46]+0x6d22>
   19b68:	ed cd       	rjmp	.-1062   	; 0x19744 <process_commands() [clone .part.46]+0x6d30>
   19b6a:	f1 cd       	rjmp	.-1054   	; 0x1974e <process_commands() [clone .part.46]+0x6d3a>
   19b6c:	fa cd       	rjmp	.-1036   	; 0x19762 <process_commands() [clone .part.46]+0x6d4e>
   19b6e:	f5 cd       	rjmp	.-1046   	; 0x1975a <process_commands() [clone .part.46]+0x6d46>
   19b70:	fb cd       	rjmp	.-1034   	; 0x19768 <process_commands() [clone .part.46]+0x6d54>
   19b72:	ff cd       	rjmp	.-1026   	; 0x19772 <process_commands() [clone .part.46]+0x6d5e>
   19b74:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   19b78:	8f 77       	andi	r24, 0x7F	; 127
   19b7a:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   19b7e:	08 95       	ret
   19b80:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   19b84:	8f 7d       	andi	r24, 0xDF	; 223
   19b86:	f9 cf       	rjmp	.-14     	; 0x19b7a <turnOffPWM+0x42>
   19b88:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   19b8c:	87 7f       	andi	r24, 0xF7	; 247
   19b8e:	f5 cf       	rjmp	.-22     	; 0x19b7a <turnOffPWM+0x42>
   19b90:	84 b5       	in	r24, 0x24	; 36
   19b92:	8f 77       	andi	r24, 0x7F	; 127
   19b94:	84 bd       	out	0x24, r24	; 36
   19b96:	08 95       	ret
   19b98:	84 b5       	in	r24, 0x24	; 36
   19b9a:	8f 7d       	andi	r24, 0xDF	; 223
   19b9c:	fb cf       	rjmp	.-10     	; 0x19b94 <turnOffPWM+0x5c>
   19b9e:	80 91 b0 00 	lds	r24, 0x00B0	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   19ba2:	8f 77       	andi	r24, 0x7F	; 127
   19ba4:	80 93 b0 00 	sts	0x00B0, r24	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   19ba8:	08 95       	ret
   19baa:	80 91 b0 00 	lds	r24, 0x00B0	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   19bae:	8f 7d       	andi	r24, 0xDF	; 223
   19bb0:	f9 cf       	rjmp	.-14     	; 0x19ba4 <turnOffPWM+0x6c>
   19bb2:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   19bb6:	8f 77       	andi	r24, 0x7F	; 127
   19bb8:	80 93 90 00 	sts	0x0090, r24	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   19bbc:	08 95       	ret
   19bbe:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   19bc2:	8f 7d       	andi	r24, 0xDF	; 223
   19bc4:	f9 cf       	rjmp	.-14     	; 0x19bb8 <turnOffPWM+0x80>
   19bc6:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   19bca:	87 7f       	andi	r24, 0xF7	; 247
   19bcc:	f5 cf       	rjmp	.-22     	; 0x19bb8 <turnOffPWM+0x80>
   19bce:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   19bd2:	8f 77       	andi	r24, 0x7F	; 127
   19bd4:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   19bd8:	08 95       	ret
   19bda:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   19bde:	8f 7d       	andi	r24, 0xDF	; 223
   19be0:	f9 cf       	rjmp	.-14     	; 0x19bd4 <turnOffPWM+0x9c>
   19be2:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   19be6:	87 7f       	andi	r24, 0xF7	; 247
   19be8:	f5 cf       	rjmp	.-22     	; 0x19bd4 <turnOffPWM+0x9c>
   19bea:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   19bee:	8f 77       	andi	r24, 0x7F	; 127
   19bf0:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   19bf4:	08 95       	ret
   19bf6:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   19bfa:	8f 7d       	andi	r24, 0xDF	; 223
   19bfc:	f9 cf       	rjmp	.-14     	; 0x19bf0 <turnOffPWM+0xb8>
   19bfe:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   19c02:	87 7f       	andi	r24, 0xF7	; 247
   19c04:	f5 cf       	rjmp	.-22     	; 0x19bf0 <turnOffPWM+0xb8>

00019c06 <check_pinda_1()>:
   19c06:	83 b1       	in	r24, 0x03	; 3
   19c08:	82 95       	swap	r24
   19c0a:	81 70       	andi	r24, 0x01	; 1
   19c0c:	08 95       	ret

00019c0e <xyzcal_calc_delay(unsigned int, unsigned int)>:
}
#else //SM4_ACCEL_TEST
uint16_t xyzcal_calc_delay(uint16_t, uint16_t)
{
    return xyzcal_sm4_delay;
}
   19c0e:	80 91 fd 03 	lds	r24, 0x03FD	; 0x8003fd <xyzcal_sm4_delay>
   19c12:	90 91 fe 03 	lds	r25, 0x03FE	; 0x8003fe <xyzcal_sm4_delay+0x1>
   19c16:	08 95       	ret

00019c18 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)>:
}

uint8_t xyzcal_dm = 0;

void xyzcal_update_pos(uint16_t dx, uint16_t dy, uint16_t dz, uint16_t)
{
   19c18:	cf 92       	push	r12
   19c1a:	df 92       	push	r13
   19c1c:	ef 92       	push	r14
   19c1e:	ff 92       	push	r15
//	DBG(_n("xyzcal_update_pos dx=%d dy=%d dz=%d dir=%02x\n"), dx, dy, dz, xyzcal_dm);
	if (xyzcal_dm&1) count_position[0] -= dx; else count_position[0] += dx;
   19c20:	20 91 ff 03 	lds	r18, 0x03FF	; 0x8003ff <xyzcal_dm>
   19c24:	b0 e0       	ldi	r27, 0x00	; 0
   19c26:	a0 e0       	ldi	r26, 0x00	; 0
   19c28:	c0 90 b3 06 	lds	r12, 0x06B3	; 0x8006b3 <count_position>
   19c2c:	d0 90 b4 06 	lds	r13, 0x06B4	; 0x8006b4 <count_position+0x1>
   19c30:	e0 90 b5 06 	lds	r14, 0x06B5	; 0x8006b5 <count_position+0x2>
   19c34:	f0 90 b6 06 	lds	r15, 0x06B6	; 0x8006b6 <count_position+0x3>
   19c38:	20 ff       	sbrs	r18, 0
   19c3a:	42 c0       	rjmp	.+132    	; 0x19cc0 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0xa8>
   19c3c:	c8 1a       	sub	r12, r24
   19c3e:	d9 0a       	sbc	r13, r25
   19c40:	ea 0a       	sbc	r14, r26
   19c42:	fb 0a       	sbc	r15, r27
   19c44:	c0 92 b3 06 	sts	0x06B3, r12	; 0x8006b3 <count_position>
   19c48:	d0 92 b4 06 	sts	0x06B4, r13	; 0x8006b4 <count_position+0x1>
   19c4c:	e0 92 b5 06 	sts	0x06B5, r14	; 0x8006b5 <count_position+0x2>
   19c50:	f0 92 b6 06 	sts	0x06B6, r15	; 0x8006b6 <count_position+0x3>
   19c54:	cb 01       	movw	r24, r22
   19c56:	b0 e0       	ldi	r27, 0x00	; 0
   19c58:	a0 e0       	ldi	r26, 0x00	; 0
	if (xyzcal_dm&2) count_position[1] -= dy; else count_position[1] += dy;
   19c5a:	c0 90 b7 06 	lds	r12, 0x06B7	; 0x8006b7 <count_position+0x4>
   19c5e:	d0 90 b8 06 	lds	r13, 0x06B8	; 0x8006b8 <count_position+0x5>
   19c62:	e0 90 b9 06 	lds	r14, 0x06B9	; 0x8006b9 <count_position+0x6>
   19c66:	f0 90 ba 06 	lds	r15, 0x06BA	; 0x8006ba <count_position+0x7>
   19c6a:	21 ff       	sbrs	r18, 1
   19c6c:	36 c0       	rjmp	.+108    	; 0x19cda <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0xc2>
   19c6e:	c8 1a       	sub	r12, r24
   19c70:	d9 0a       	sbc	r13, r25
   19c72:	ea 0a       	sbc	r14, r26
   19c74:	fb 0a       	sbc	r15, r27
   19c76:	c0 92 b7 06 	sts	0x06B7, r12	; 0x8006b7 <count_position+0x4>
   19c7a:	d0 92 b8 06 	sts	0x06B8, r13	; 0x8006b8 <count_position+0x5>
   19c7e:	e0 92 b9 06 	sts	0x06B9, r14	; 0x8006b9 <count_position+0x6>
   19c82:	f0 92 ba 06 	sts	0x06BA, r15	; 0x8006ba <count_position+0x7>
   19c86:	70 e0       	ldi	r23, 0x00	; 0
   19c88:	60 e0       	ldi	r22, 0x00	; 0
	if (xyzcal_dm&4) count_position[2] -= dz; else count_position[2] += dz;
   19c8a:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   19c8e:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   19c92:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   19c96:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   19c9a:	22 ff       	sbrs	r18, 2
   19c9c:	2b c0       	rjmp	.+86     	; 0x19cf4 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0xdc>
   19c9e:	84 1b       	sub	r24, r20
   19ca0:	95 0b       	sbc	r25, r21
   19ca2:	a6 0b       	sbc	r26, r22
   19ca4:	b7 0b       	sbc	r27, r23
   19ca6:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   19caa:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   19cae:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   19cb2:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
//	DBG(_n(" after xyzcal_update_pos x=%ld y=%ld z=%ld\n"), count_position[0], count_position[1], count_position[2]);
}
   19cb6:	ff 90       	pop	r15
   19cb8:	ef 90       	pop	r14
   19cba:	df 90       	pop	r13
   19cbc:	cf 90       	pop	r12
   19cbe:	08 95       	ret
uint8_t xyzcal_dm = 0;

void xyzcal_update_pos(uint16_t dx, uint16_t dy, uint16_t dz, uint16_t)
{
//	DBG(_n("xyzcal_update_pos dx=%d dy=%d dz=%d dir=%02x\n"), dx, dy, dz, xyzcal_dm);
	if (xyzcal_dm&1) count_position[0] -= dx; else count_position[0] += dx;
   19cc0:	8c 0d       	add	r24, r12
   19cc2:	9d 1d       	adc	r25, r13
   19cc4:	ae 1d       	adc	r26, r14
   19cc6:	bf 1d       	adc	r27, r15
   19cc8:	80 93 b3 06 	sts	0x06B3, r24	; 0x8006b3 <count_position>
   19ccc:	90 93 b4 06 	sts	0x06B4, r25	; 0x8006b4 <count_position+0x1>
   19cd0:	a0 93 b5 06 	sts	0x06B5, r26	; 0x8006b5 <count_position+0x2>
   19cd4:	b0 93 b6 06 	sts	0x06B6, r27	; 0x8006b6 <count_position+0x3>
   19cd8:	bd cf       	rjmp	.-134    	; 0x19c54 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0x3c>
	if (xyzcal_dm&2) count_position[1] -= dy; else count_position[1] += dy;
   19cda:	8c 0d       	add	r24, r12
   19cdc:	9d 1d       	adc	r25, r13
   19cde:	ae 1d       	adc	r26, r14
   19ce0:	bf 1d       	adc	r27, r15
   19ce2:	80 93 b7 06 	sts	0x06B7, r24	; 0x8006b7 <count_position+0x4>
   19ce6:	90 93 b8 06 	sts	0x06B8, r25	; 0x8006b8 <count_position+0x5>
   19cea:	a0 93 b9 06 	sts	0x06B9, r26	; 0x8006b9 <count_position+0x6>
   19cee:	b0 93 ba 06 	sts	0x06BA, r27	; 0x8006ba <count_position+0x7>
   19cf2:	c9 cf       	rjmp	.-110    	; 0x19c86 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0x6e>
	if (xyzcal_dm&4) count_position[2] -= dz; else count_position[2] += dz;
   19cf4:	84 0f       	add	r24, r20
   19cf6:	95 1f       	adc	r25, r21
   19cf8:	a6 1f       	adc	r26, r22
   19cfa:	b7 1f       	adc	r27, r23
   19cfc:	d4 cf       	rjmp	.-88     	; 0x19ca6 <xyzcal_update_pos(unsigned int, unsigned int, unsigned int, unsigned int)+0x8e>

00019cfe <Number(char const*, unsigned int*)>:
inline bool is_digit(char c)
{
    return c >= '0' && c <= '9';
}

char const * __attribute__((noinline)) Number(char const *str, uint16_t *v){
   19cfe:	fb 01       	movw	r30, r22
    *v = 0;
   19d00:	11 82       	std	Z+1, r1	; 0x01
   19d02:	10 82       	st	Z, r1
    while(is_digit(*str)){
        *v *= 10;
   19d04:	6a e0       	ldi	r22, 0x0A	; 10
    return c == 0 || c == ' ' || c == '\t' || c == '\n' || c == '\r';
}

inline bool is_digit(char c)
{
    return c >= '0' && c <= '9';
   19d06:	dc 01       	movw	r26, r24
   19d08:	2c 91       	ld	r18, X
   19d0a:	20 53       	subi	r18, 0x30	; 48
}

char const * __attribute__((noinline)) Number(char const *str, uint16_t *v){
    *v = 0;
    while(is_digit(*str)){
   19d0c:	2a 30       	cpi	r18, 0x0A	; 10
   19d0e:	a0 f4       	brcc	.+40     	; 0x19d38 <Number(char const*, unsigned int*)+0x3a>
        *v *= 10;
   19d10:	40 81       	ld	r20, Z
   19d12:	51 81       	ldd	r21, Z+1	; 0x01
   19d14:	64 9f       	mul	r22, r20
   19d16:	90 01       	movw	r18, r0
   19d18:	65 9f       	mul	r22, r21
   19d1a:	30 0d       	add	r19, r0
   19d1c:	11 24       	eor	r1, r1
   19d1e:	31 83       	std	Z+1, r19	; 0x01
   19d20:	20 83       	st	Z, r18
        *v += *str - '0';
   19d22:	4d 91       	ld	r20, X+
   19d24:	cd 01       	movw	r24, r26
   19d26:	20 53       	subi	r18, 0x30	; 48
   19d28:	31 09       	sbc	r19, r1
   19d2a:	24 0f       	add	r18, r20
   19d2c:	31 1d       	adc	r19, r1
   19d2e:	47 fd       	sbrc	r20, 7
   19d30:	3a 95       	dec	r19
   19d32:	31 83       	std	Z+1, r19	; 0x01
   19d34:	20 83       	st	Z, r18
   19d36:	e7 cf       	rjmp	.-50     	; 0x19d06 <Number(char const*, unsigned int*)+0x8>
        ++str;
    }
    return str;
}
   19d38:	08 95       	ret

00019d3a <lcd_thermal_model_cal()>:
}

#ifdef THERMAL_MODEL
void lcd_thermal_model_cal()
{
    lcd_commands_type = LcdCommands::ThermalModel;
   19d3a:	85 e0       	ldi	r24, 0x05	; 5
   19d3c:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
    lcd_return_to_status();
   19d40:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019d44 <lcd_check_update_RAM(ClCheckMode*)>:
        case ClNozzleDiameter::_Diameter_800: MENU_ITEM_TOGGLE_P(_T(MSG_NOZZLE_DIAMETER), PSTR("0.80"), lcd_nozzle_diameter_cycle); break;\
    }\
}\
while (0)

static void lcd_check_update_RAM(ClCheckMode * oCheckSetting) {
   19d44:	fc 01       	movw	r30, r24
    switch(*oCheckSetting) {
   19d46:	80 81       	ld	r24, Z
   19d48:	88 23       	and	r24, r24
   19d4a:	21 f0       	breq	.+8      	; 0x19d54 <lcd_check_update_RAM(ClCheckMode*)+0x10>
   19d4c:	81 30       	cpi	r24, 0x01	; 1
   19d4e:	29 f4       	brne	.+10     	; 0x19d5a <lcd_check_update_RAM(ClCheckMode*)+0x16>
        case ClCheckMode::_None:
            *oCheckSetting = ClCheckMode::_Warn;
            break;
        case ClCheckMode::_Warn:
            *oCheckSetting = ClCheckMode::_Strict;
   19d50:	82 e0       	ldi	r24, 0x02	; 2
   19d52:	01 c0       	rjmp	.+2      	; 0x19d56 <lcd_check_update_RAM(ClCheckMode*)+0x12>
while (0)

static void lcd_check_update_RAM(ClCheckMode * oCheckSetting) {
    switch(*oCheckSetting) {
        case ClCheckMode::_None:
            *oCheckSetting = ClCheckMode::_Warn;
   19d54:	81 e0       	ldi	r24, 0x01	; 1
            break;
        case ClCheckMode::_Warn:
            *oCheckSetting = ClCheckMode::_Strict;
   19d56:	80 83       	st	Z, r24
   19d58:	08 95       	ret
            break;
        case ClCheckMode::_Strict:
            *oCheckSetting = ClCheckMode::_None;
   19d5a:	10 82       	st	Z, r1
            break;
        default:
            *oCheckSetting = ClCheckMode::_None;
    }
}
   19d5c:	08 95       	ret

00019d5e <lcd_send_action_start()>:
}

//! @brief Send host action "start"
void lcd_send_action_start()
{
    SERIAL_PROTOCOLLNRPGM(MSG_HOST_ACTION_START);
   19d5e:	84 e2       	ldi	r24, 0x24	; 36
   19d60:	9b e6       	ldi	r25, 0x6B	; 107
   19d62:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    lcd_return_to_status();
   19d66:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019d6a <lcd_printer_ready_state_toggle()>:
//! Sends the printer state for next print via LCD menu to host
//! The host has to set the printer ready state with `M72` to keep printer in sync with the host
//! @endcode
static void lcd_printer_ready_state_toggle()
{
    if (GetPrinterState() == PrinterState::IsReady) {
   19d6a:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   19d6e:	81 30       	cpi	r24, 0x01	; 1
   19d70:	21 f4       	brne	.+8      	; 0x19d7a <lcd_printer_ready_state_toggle()+0x10>
        SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_NOT_READY);
   19d72:	8f e7       	ldi	r24, 0x7F	; 127
   19d74:	9a e6       	ldi	r25, 0x6A	; 106
    }
    else {
        SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_READY);
   19d76:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   19d7a:	80 e7       	ldi	r24, 0x70	; 112
   19d7c:	9a e6       	ldi	r25, 0x6A	; 106
   19d7e:	fb cf       	rjmp	.-10     	; 0x19d76 <lcd_printer_ready_state_toggle()+0xc>

00019d80 <MMU2::MMU2::execute_load_to_nozzle_sequence() [clone .constprop.53]>:
    planner_synchronize();

    Disable_E0();
}

void MMU2::execute_load_to_nozzle_sequence() {
   19d80:	cf 93       	push	r28
   19d82:	df 93       	push	r29
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   19d84:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
float planner_get_current_position_E() {
    return current_position[E_AXIS];
}

void planner_set_current_position_E(float e) {
        current_position[E_AXIS] = e;
   19d88:	c2 e9       	ldi	r28, 0x92	; 146
   19d8a:	d6 e0       	ldi	r29, 0x06	; 6
    planner_synchronize();
    // Compensate for configurable Extra Loading Distance
    planner_set_current_position_E(planner_get_current_position_E() - (logic.ExtraLoadDistance() - MMU2_FILAMENT_SENSOR_POSITION));
   19d8c:	60 91 97 13 	lds	r22, 0x1397	; 0x801397 <MMU2::mmu2+0x4c>
   19d90:	70 e0       	ldi	r23, 0x00	; 0
   19d92:	90 e0       	ldi	r25, 0x00	; 0
   19d94:	80 e0       	ldi	r24, 0x00	; 0
   19d96:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   19d9a:	20 e0       	ldi	r18, 0x00	; 0
   19d9c:	30 e0       	ldi	r19, 0x00	; 0
   19d9e:	40 e8       	ldi	r20, 0x80	; 128
   19da0:	51 e4       	ldi	r21, 0x41	; 65
   19da2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   19da6:	9b 01       	movw	r18, r22
   19da8:	ac 01       	movw	r20, r24
   19daa:	6c 85       	ldd	r22, Y+12	; 0x0c
   19dac:	7d 85       	ldd	r23, Y+13	; 0x0d
   19dae:	8e 85       	ldd	r24, Y+14	; 0x0e
   19db0:	9f 85       	ldd	r25, Y+15	; 0x0f
   19db2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   19db6:	6c 87       	std	Y+12, r22	; 0x0c
   19db8:	7d 87       	std	Y+13, r23	; 0x0d
   19dba:	8e 87       	std	Y+14, r24	; 0x0e
   19dbc:	9f 87       	std	Y+15, r25	; 0x0f
    execute_extruder_sequence(load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof(load_to_nozzle_sequence[0]));
   19dbe:	62 e0       	ldi	r22, 0x02	; 2
   19dc0:	87 e1       	ldi	r24, 0x17	; 23
   19dc2:	9e e8       	ldi	r25, 0x8E	; 142
}
   19dc4:	df 91       	pop	r29
   19dc6:	cf 91       	pop	r28

void MMU2::execute_load_to_nozzle_sequence() {
    planner_synchronize();
    // Compensate for configurable Extra Loading Distance
    planner_set_current_position_E(planner_get_current_position_E() - (logic.ExtraLoadDistance() - MMU2_FILAMENT_SENSOR_POSITION));
    execute_extruder_sequence(load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof(load_to_nozzle_sequence[0]));
   19dc8:	0d 94 9a 88 	jmp	0x31134	; 0x31134 <MMU2::MMU2::execute_extruder_sequence(E_Step const*, unsigned char) [clone .constprop.132]>

00019dcc <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]>:
        }
    }
    menu_item++;
}

void __attribute__((noinline)) menu_item_function_E(const Sheet &sheet, menu_func_t func)
   19dcc:	df 92       	push	r13
   19dce:	ef 92       	push	r14
   19dd0:	ff 92       	push	r15
   19dd2:	0f 93       	push	r16
   19dd4:	1f 93       	push	r17
   19dd6:	cf 93       	push	r28
   19dd8:	df 93       	push	r29
   19dda:	cd b7       	in	r28, 0x3d	; 61
   19ddc:	de b7       	in	r29, 0x3e	; 62
   19dde:	63 97       	sbiw	r28, 0x13	; 19
   19de0:	0f b6       	in	r0, 0x3f	; 63
   19de2:	f8 94       	cli
   19de4:	de bf       	out	0x3e, r29	; 62
   19de6:	0f be       	out	0x3f, r0	; 63
   19de8:	cd bf       	out	0x3d, r28	; 61
{
    if (menu_item == menu_line)
   19dea:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   19dee:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   19df2:	32 13       	cpse	r19, r18
   19df4:	73 c0       	rjmp	.+230    	; 0x19edc <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x110>
   19df6:	7c 01       	movw	r14, r24
    {
        if (lcd_draw_update) menu_draw_item_select_sheet_E(' ', sheet);
   19df8:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   19dfc:	88 23       	and	r24, r24
   19dfe:	09 f4       	brne	.+2      	; 0x19e02 <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x36>
   19e00:	45 c0       	rjmp	.+138    	; 0x19e8c <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0xc0>
//!
//! @param[in] sheet_E Sheet in EEPROM
//! @param[out] buffer for formatted output
void menu_format_sheet_select_E(const Sheet &sheet_E, SheetFormatBuffer &buffer)
{
    uint_least8_t index = sprintf_P(buffer.c,PSTR("%-9.9S["), _T(MSG_SHEET));
   19e02:	81 ed       	ldi	r24, 0xD1	; 209
   19e04:	9c e4       	ldi	r25, 0x4C	; 76
   19e06:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19e0a:	9f 93       	push	r25
   19e0c:	8f 93       	push	r24
   19e0e:	80 ed       	ldi	r24, 0xD0	; 208
   19e10:	9d e8       	ldi	r25, 0x8D	; 141
   19e12:	9f 93       	push	r25
   19e14:	8f 93       	push	r24
   19e16:	8e 01       	movw	r16, r28
   19e18:	0f 5f       	subi	r16, 0xFF	; 255
   19e1a:	1f 4f       	sbci	r17, 0xFF	; 255
   19e1c:	1f 93       	push	r17
   19e1e:	0f 93       	push	r16
   19e20:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
   19e24:	d8 2e       	mov	r13, r24
    eeprom_read_block(&(buffer.c[index]), sheet_E.name, sizeof(sheet_E.name)/sizeof(sheet_E.name[0]));
   19e26:	47 e0       	ldi	r20, 0x07	; 7
   19e28:	50 e0       	ldi	r21, 0x00	; 0
   19e2a:	b7 01       	movw	r22, r14
   19e2c:	80 0f       	add	r24, r16
   19e2e:	91 2f       	mov	r25, r17
   19e30:	91 1d       	adc	r25, r1
   19e32:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
   19e36:	0f 90       	pop	r0
   19e38:	0f 90       	pop	r0
   19e3a:	0f 90       	pop	r0
   19e3c:	0f 90       	pop	r0
   19e3e:	0f 90       	pop	r0
   19e40:	0f 90       	pop	r0
   19e42:	20 e0       	ldi	r18, 0x00	; 0
   19e44:	82 2f       	mov	r24, r18
   19e46:	8d 0d       	add	r24, r13
   19e48:	90 e0       	ldi	r25, 0x00	; 0
    for (const uint_least8_t start = index; static_cast<uint_least8_t>(index - start) < sizeof(sheet_E.name)/sizeof(sheet_E.name[0]); ++index)
   19e4a:	27 30       	cpi	r18, 0x07	; 7
   19e4c:	39 f0       	breq	.+14     	; 0x19e5c <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x90>
   19e4e:	2f 5f       	subi	r18, 0xFF	; 255
    {
        if (buffer.c[index] == '\0') break;
   19e50:	f8 01       	movw	r30, r16
   19e52:	e8 0f       	add	r30, r24
   19e54:	f9 1f       	adc	r31, r25
   19e56:	30 81       	ld	r19, Z
   19e58:	31 11       	cpse	r19, r1
   19e5a:	f4 cf       	rjmp	.-24     	; 0x19e44 <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x78>
    }
	buffer.c[index] = ']';
   19e5c:	f8 01       	movw	r30, r16
   19e5e:	e8 0f       	add	r30, r24
   19e60:	f9 1f       	adc	r31, r25
   19e62:	2d e5       	ldi	r18, 0x5D	; 93
   19e64:	20 83       	st	Z, r18
    buffer.c[index + 1] = '\0';
   19e66:	8c 0f       	add	r24, r28
   19e68:	9d 1f       	adc	r25, r29
   19e6a:	fc 01       	movw	r30, r24
   19e6c:	12 82       	std	Z+2, r1	; 0x02

static void menu_draw_item_select_sheet_E(char type_char, const Sheet &sheet)
{
    SheetFormatBuffer buffer;
    menu_format_sheet_select_E(sheet, buffer);
    lcd_putc_at(0, menu_row, menu_selection_mark());
   19e6e:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   19e72:	48 2f       	mov	r20, r24
   19e74:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   19e78:	80 e0       	ldi	r24, 0x00	; 0
   19e7a:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_print_pad(buffer.c, LCD_WIDTH - 2);
   19e7e:	62 e1       	ldi	r22, 0x12	; 18
   19e80:	c8 01       	movw	r24, r16
   19e82:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
    lcd_putc(type_char);
   19e86:	80 e2       	ldi	r24, 0x20	; 32
   19e88:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
void __attribute__((noinline)) menu_item_function_E(const Sheet &sheet, menu_func_t func)
{
    if (menu_item == menu_line)
    {
        if (lcd_draw_update) menu_draw_item_select_sheet_E(' ', sheet);
        if (menu_clicked && (lcd_encoder == menu_item))
   19e8c:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   19e90:	88 23       	and	r24, r24
   19e92:	21 f1       	breq	.+72     	; 0x19edc <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x110>
   19e94:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   19e98:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   19e9c:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   19ea0:	28 17       	cp	r18, r24
   19ea2:	19 06       	cpc	r1, r25
   19ea4:	d9 f4       	brne	.+54     	; 0x19edc <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0x110>
        {
            lcd_update_enabled = 0;
   19ea6:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
            if (func) func();
   19eaa:	8a ee       	ldi	r24, 0xEA	; 234
   19eac:	95 e7       	ldi	r25, 0x75	; 117
   19eae:	89 2b       	or	r24, r25
   19eb0:	11 f0       	breq	.+4      	; 0x19eb6 <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0xea>
   19eb2:	0e 94 ea 75 	call	0xebd4	; 0xebd4 <eeprom_switch_to_next_sheet()>
            lcd_update_enabled = 1;
   19eb6:	81 e0       	ldi	r24, 0x01	; 1
   19eb8:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
            menu_item_ret();
   19ebc:	0f 94 bb d0 	call	0x3a176	; 0x3a176 <menu_item_ret()>
            return;
        }
    }
    menu_item++;
}
   19ec0:	63 96       	adiw	r28, 0x13	; 19
   19ec2:	0f b6       	in	r0, 0x3f	; 63
   19ec4:	f8 94       	cli
   19ec6:	de bf       	out	0x3e, r29	; 62
   19ec8:	0f be       	out	0x3f, r0	; 63
   19eca:	cd bf       	out	0x3d, r28	; 61
   19ecc:	df 91       	pop	r29
   19ece:	cf 91       	pop	r28
   19ed0:	1f 91       	pop	r17
   19ed2:	0f 91       	pop	r16
   19ed4:	ff 90       	pop	r15
   19ed6:	ef 90       	pop	r14
   19ed8:	df 90       	pop	r13
   19eda:	08 95       	ret
            lcd_update_enabled = 1;
            menu_item_ret();
            return;
        }
    }
    menu_item++;
   19edc:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   19ee0:	8f 5f       	subi	r24, 0xFF	; 255
   19ee2:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
   19ee6:	ec cf       	rjmp	.-40     	; 0x19ec0 <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]+0xf4>

00019ee8 <lcd_mesh_calibration()>:
	lcd_return_to_status();
}

void lcd_mesh_calibration()
{
  enquecommand_P(PSTR("M45"));
   19ee8:	61 e0       	ldi	r22, 0x01	; 1
   19eea:	82 ef       	ldi	r24, 0xF2	; 242
   19eec:	98 e8       	ldi	r25, 0x88	; 136
   19eee:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
  lcd_return_to_status();
   19ef2:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019ef6 <lcd_mesh_calibration_z()>:
}

void lcd_mesh_calibration_z()
{
  enquecommand_P(PSTR("M45 Z"));
   19ef6:	61 e0       	ldi	r22, 0x01	; 1
   19ef8:	86 ef       	ldi	r24, 0xF6	; 246
   19efa:	98 e8       	ldi	r25, 0x88	; 136
   19efc:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
  lcd_return_to_status();
   19f00:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019f04 <lcd_mesh_bedleveling()>:
}
#endif //(LANG_MODE != 0)

void lcd_mesh_bedleveling()
{
	enquecommand_P(PSTR("G80"));
   19f04:	61 e0       	ldi	r22, 0x01	; 1
   19f06:	8e ee       	ldi	r24, 0xEE	; 238
   19f08:	98 e8       	ldi	r25, 0x88	; 136
   19f0a:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
	lcd_return_to_status();
   19f0e:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019f12 <lcd_calibrate_pinda()>:
	MYSERIAL.begin(BAUDRATE);
}
#endif //HAS_SECOND_SERIAL_PORT

void lcd_calibrate_pinda() {
	enquecommand_P(PSTR("G76"));
   19f12:	61 e0       	ldi	r22, 0x01	; 1
   19f14:	8c ef       	ldi	r24, 0xFC	; 252
   19f16:	98 e8       	ldi	r25, 0x88	; 136
   19f18:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
	lcd_return_to_status();
   19f1c:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00019f20 <nozzle_change()>:
}

static void nozzle_change()
{
#ifdef FILAMENT_SENSOR
    if (fsensor.isEnabled() && fsensor.getFilamentPresent()) {
   19f20:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   19f24:	88 23       	and	r24, r24
   19f26:	61 f0       	breq	.+24     	; 0x19f40 <nozzle_change()+0x20>
   19f28:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   19f2c:	88 23       	and	r24, r24
   19f2e:	41 f0       	breq	.+16     	; 0x19f40 <nozzle_change()+0x20>
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_UNLOAD_FILAMENT_REPEAT));
   19f30:	8d eb       	ldi	r24, 0xBD	; 189
   19f32:	93 e4       	ldi	r25, 0x43	; 67
   19f34:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19f38:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        lcd_return_to_status();
        return;
    }
#endif //FILAMENT_SENSOR
    lcd_commands_type = LcdCommands::NozzleCNG;
    lcd_return_to_status();
   19f3c:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_UNLOAD_FILAMENT_REPEAT));
        lcd_return_to_status();
        return;
    }
#endif //FILAMENT_SENSOR
    lcd_commands_type = LcdCommands::NozzleCNG;
   19f40:	86 e0       	ldi	r24, 0x06	; 6
   19f42:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
   19f46:	fa cf       	rjmp	.-12     	; 0x19f3c <nozzle_change()+0x1c>

00019f48 <wizard_lay1cal_message(bool)>:
    // When MMU is disabled P parameter is ignored
    enquecommand_P(PSTR("M701 P0"));
}

static void wizard_lay1cal_message(bool cold)
{
   19f48:	cf 93       	push	r28
   19f4a:	c8 2f       	mov	r28, r24
    lcd_show_fullscreen_message_and_wait_P(
   19f4c:	81 ec       	ldi	r24, 0xC1	; 193
   19f4e:	9d e3       	ldi	r25, 0x3D	; 61
   19f50:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19f54:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
            _T(MSG_WIZARD_V2_CAL));
    if (MMU2::mmu2.Enabled())
   19f58:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19f5c:	81 30       	cpi	r24, 0x01	; 1
   19f5e:	69 f4       	brne	.+26     	; 0x19f7a <wizard_lay1cal_message(bool)+0x32>
    {
        lcd_show_fullscreen_message_and_wait_P(
   19f60:	88 e6       	ldi	r24, 0x68	; 104
   19f62:	9d e3       	ldi	r25, 0x3D	; 61
                _T(MSG_SELECT_FIL_1ST_LAYERCAL));
    }
    else if (cold)
    {
        lcd_show_fullscreen_message_and_wait_P(
   19f64:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19f68:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
                _T(MSG_SELECT_TEMP_MATCHES_MATERIAL));
    }
    lcd_show_fullscreen_message_and_wait_P(
   19f6c:	86 e9       	ldi	r24, 0x96	; 150
   19f6e:	9c e3       	ldi	r25, 0x3C	; 60
   19f70:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
            _T(MSG_WIZARD_V2_CAL_2));
}
   19f74:	cf 91       	pop	r28
    else if (cold)
    {
        lcd_show_fullscreen_message_and_wait_P(
                _T(MSG_SELECT_TEMP_MATCHES_MATERIAL));
    }
    lcd_show_fullscreen_message_and_wait_P(
   19f76:	0d 94 fd 20 	jmp	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
    if (MMU2::mmu2.Enabled())
    {
        lcd_show_fullscreen_message_and_wait_P(
                _T(MSG_SELECT_FIL_1ST_LAYERCAL));
    }
    else if (cold)
   19f7a:	cc 23       	and	r28, r28
   19f7c:	b9 f3       	breq	.-18     	; 0x19f6c <wizard_lay1cal_message(bool)+0x24>
    {
        lcd_show_fullscreen_message_and_wait_P(
   19f7e:	86 e3       	ldi	r24, 0x36	; 54
   19f80:	9d e3       	ldi	r25, 0x3D	; 61
   19f82:	f0 cf       	rjmp	.-32     	; 0x19f64 <wizard_lay1cal_message(bool)+0x1c>

00019f84 <lcd_wizard_load()>:
    }

}

static void lcd_wizard_load() {
    if (MMU2::mmu2.Enabled()) {
   19f84:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   19f88:	81 30       	cpi	r24, 0x01	; 1
   19f8a:	71 f4       	brne	.+28     	; 0x19fa8 <lcd_wizard_load()+0x24>
        lcd_show_fullscreen_message_and_wait_P(
   19f8c:	8d e3       	ldi	r24, 0x3D	; 61
   19f8e:	9c e3       	ldi	r25, 0x3C	; 60
   19f90:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19f94:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
            _T(MSG_MMU_INSERT_FILAMENT_FIRST_TUBE));
        // NOTE: a full screen message showing which filament is being inserted
        // is performed by M701. For this reason MSG_LOADING_FILAMENT is not
        // used here when a MMU is used.
        eFilamentAction = FilamentAction::MmuLoad;
   19f98:	84 e0       	ldi	r24, 0x04	; 4
        lcd_show_fullscreen_message_and_wait_P(
            _T(MSG_WIZARD_LOAD_FILAMENT));
        lcd_update_enable(false);
        lcd_clear();
        lcd_puts_at_P(0, 2, _T(MSG_LOADING_FILAMENT));
        eFilamentAction = FilamentAction::Load;
   19f9a:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
    }

    // When MMU is disabled P parameter is ignored
    enquecommand_P(PSTR("M701 P0"));
   19f9e:	61 e0       	ldi	r22, 0x01	; 1
   19fa0:	80 e0       	ldi	r24, 0x00	; 0
   19fa2:	99 e8       	ldi	r25, 0x89	; 137
   19fa4:	0c 94 a7 87 	jmp	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        // NOTE: a full screen message showing which filament is being inserted
        // is performed by M701. For this reason MSG_LOADING_FILAMENT is not
        // used here when a MMU is used.
        eFilamentAction = FilamentAction::MmuLoad;
    } else {
        lcd_show_fullscreen_message_and_wait_P(
   19fa8:	81 ef       	ldi	r24, 0xF1	; 241
   19faa:	9b e3       	ldi	r25, 0x3B	; 59
   19fac:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19fb0:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
            _T(MSG_WIZARD_LOAD_FILAMENT));
        lcd_update_enable(false);
   19fb4:	80 e0       	ldi	r24, 0x00	; 0
   19fb6:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
        lcd_clear();
   19fba:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
        lcd_puts_at_P(0, 2, _T(MSG_LOADING_FILAMENT));
   19fbe:	85 e7       	ldi	r24, 0x75	; 117
   19fc0:	9b e5       	ldi	r25, 0x5B	; 91
   19fc2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   19fc6:	ac 01       	movw	r20, r24
   19fc8:	62 e0       	ldi	r22, 0x02	; 2
   19fca:	80 e0       	ldi	r24, 0x00	; 0
   19fcc:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        eFilamentAction = FilamentAction::Load;
   19fd0:	81 e0       	ldi	r24, 0x01	; 1
   19fd2:	e3 cf       	rjmp	.-58     	; 0x19f9a <lcd_wizard_load()+0x16>

00019fd4 <fsensor_reinit()>:
#endif // TMC2130

#ifdef FILAMENT_SENSOR

static void fsensor_reinit() {
    fsensor.init();
   19fd4:	0d 94 7b 7c 	jmp	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>

00019fd8 <Tag(char const*, char const*, unsigned char, unsigned int, unsigned int*)>:

bool __attribute__((noinline)) Tag(const char *str, const char *tag_P, uint8_t tagSize, uint16_t tagMask, uint16_t *v){
   19fd8:	cf 92       	push	r12
   19fda:	df 92       	push	r13
   19fdc:	ef 92       	push	r14
   19fde:	ff 92       	push	r15
   19fe0:	0f 93       	push	r16
   19fe2:	1f 93       	push	r17
   19fe4:	cf 93       	push	r28
   19fe6:	df 93       	push	r29
   19fe8:	6c 01       	movw	r12, r24
   19fea:	79 01       	movw	r14, r18
    if( ! strncmp_P(str, tag_P, tagSize) ){
   19fec:	c4 2f       	mov	r28, r20
   19fee:	d0 e0       	ldi	r29, 0x00	; 0
   19ff0:	ae 01       	movw	r20, r28
   19ff2:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   19ff6:	89 2b       	or	r24, r25
   19ff8:	b9 f4       	brne	.+46     	; 0x1a028 <Tag(char const*, char const*, unsigned char, unsigned int, unsigned int*)+0x50>
        Number(str + tagSize, v);
   19ffa:	b8 01       	movw	r22, r16
   19ffc:	c6 01       	movw	r24, r12
   19ffe:	8c 0f       	add	r24, r28
   1a000:	9d 1f       	adc	r25, r29
   1a002:	0e 94 7f ce 	call	0x19cfe	; 0x19cfe <Number(char const*, unsigned int*)>
        *v |= tagMask;
   1a006:	f8 01       	movw	r30, r16
   1a008:	20 81       	ld	r18, Z
   1a00a:	31 81       	ldd	r19, Z+1	; 0x01
   1a00c:	2e 29       	or	r18, r14
   1a00e:	3f 29       	or	r19, r15
   1a010:	31 83       	std	Z+1, r19	; 0x01
   1a012:	20 83       	st	Z, r18
        return true;
   1a014:	81 e0       	ldi	r24, 0x01	; 1
    }
    return false;
}
   1a016:	df 91       	pop	r29
   1a018:	cf 91       	pop	r28
   1a01a:	1f 91       	pop	r17
   1a01c:	0f 91       	pop	r16
   1a01e:	ff 90       	pop	r15
   1a020:	ef 90       	pop	r14
   1a022:	df 90       	pop	r13
   1a024:	cf 90       	pop	r12
   1a026:	08 95       	ret
    if( ! strncmp_P(str, tag_P, tagSize) ){
        Number(str + tagSize, v);
        *v |= tagMask;
        return true;
    }
    return false;
   1a028:	80 e0       	ldi	r24, 0x00	; 0
   1a02a:	f5 cf       	rjmp	.-22     	; 0x1a016 <Tag(char const*, char const*, unsigned char, unsigned int, unsigned int*)+0x3e>

0001a02c <lcd_heat_bed_on_load_toggle()>:
}
#endif //PINDA_TEMP_COMP

void lcd_heat_bed_on_load_toggle()
{
    uint8_t value = eeprom_read_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT);
   1a02c:	87 ea       	ldi	r24, 0xA7	; 167
   1a02e:	9c e0       	ldi	r25, 0x0C	; 12
   1a030:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    if (value > 1)
        value = 1;
   1a034:	61 e0       	ldi	r22, 0x01	; 1
#endif //PINDA_TEMP_COMP

void lcd_heat_bed_on_load_toggle()
{
    uint8_t value = eeprom_read_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT);
    if (value > 1)
   1a036:	82 30       	cpi	r24, 0x02	; 2
   1a038:	08 f4       	brcc	.+2      	; 0x1a03c <lcd_heat_bed_on_load_toggle()+0x10>
   1a03a:	68 27       	eor	r22, r24
   1a03c:	87 ea       	ldi	r24, 0xA7	; 167
   1a03e:	9c e0       	ldi	r25, 0x0C	; 12
   1a040:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a044 <WorkaroundPrusaSN()>:
bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
}

#ifdef PRUSA_SN_SUPPORT
void WorkaroundPrusaSN() {
   1a044:	cf 93       	push	r28
   1a046:	df 93       	push	r29
   1a048:	c5 e1       	ldi	r28, 0x15	; 21
   1a04a:	dd e0       	ldi	r29, 0x0D	; 13
    const char *SN = PSTR("CZPXInvalidSerialNr");
    for (uint8_t i = 0; i < 20; i++) {
        eeprom_update_byte_notify((uint8_t*)EEPROM_PRUSA_SN + i, pgm_read_byte(SN++));
   1a04c:	fe 01       	movw	r30, r28
   1a04e:	ee 53       	subi	r30, 0x3E	; 62
   1a050:	f3 48       	sbci	r31, 0x83	; 131
   1a052:	64 91       	lpm	r22, Z
   1a054:	ce 01       	movw	r24, r28
   1a056:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1a05a:	21 96       	adiw	r28, 0x01	; 1
}

#ifdef PRUSA_SN_SUPPORT
void WorkaroundPrusaSN() {
    const char *SN = PSTR("CZPXInvalidSerialNr");
    for (uint8_t i = 0; i < 20; i++) {
   1a05c:	c9 32       	cpi	r28, 0x29	; 41
   1a05e:	8d e0       	ldi	r24, 0x0D	; 13
   1a060:	d8 07       	cpc	r29, r24
   1a062:	a1 f7       	brne	.-24     	; 0x1a04c <WorkaroundPrusaSN()+0x8>
        eeprom_update_byte_notify((uint8_t*)EEPROM_PRUSA_SN + i, pgm_read_byte(SN++));
    }
}
   1a064:	df 91       	pop	r29
   1a066:	cf 91       	pop	r28
   1a068:	08 95       	ret

0001a06a <mbl_probe_nr_toggle()>:
	else mesh_nr = 3;
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_POINTS_NR, mesh_nr);
}

static void mbl_probe_nr_toggle() {
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
   1a06a:	8a ea       	ldi	r24, 0xAA	; 170
   1a06c:	9d e0       	ldi	r25, 0x0D	; 13
   1a06e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	switch (mbl_z_probe_nr) {
		case 1: mbl_z_probe_nr = 3; break;
		case 3: mbl_z_probe_nr = 5; break;
   1a072:	65 e0       	ldi	r22, 0x05	; 5
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_POINTS_NR, mesh_nr);
}

static void mbl_probe_nr_toggle() {
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
	switch (mbl_z_probe_nr) {
   1a074:	83 30       	cpi	r24, 0x03	; 3
   1a076:	21 f0       	breq	.+8      	; 0x1a080 <mbl_probe_nr_toggle()+0x16>
		case 1: mbl_z_probe_nr = 3; break;
		case 3: mbl_z_probe_nr = 5; break;
		case 5: mbl_z_probe_nr = 1; break;
   1a078:	61 e0       	ldi	r22, 0x01	; 1
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_POINTS_NR, mesh_nr);
}

static void mbl_probe_nr_toggle() {
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
	switch (mbl_z_probe_nr) {
   1a07a:	85 30       	cpi	r24, 0x05	; 5
   1a07c:	09 f0       	breq	.+2      	; 0x1a080 <mbl_probe_nr_toggle()+0x16>
		case 1: mbl_z_probe_nr = 3; break;
   1a07e:	63 e0       	ldi	r22, 0x03	; 3
   1a080:	8a ea       	ldi	r24, 0xAA	; 170
   1a082:	9d e0       	ldi	r25, 0x0D	; 13
   1a084:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a088 <mbl_mesh_toggle()>:
	magnet_elimination = !magnet_elimination;
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION, (uint8_t)magnet_elimination);
}

static void mbl_mesh_toggle() {
	uint8_t mesh_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
   1a088:	8b ea       	ldi	r24, 0xAB	; 171
   1a08a:	9d e0       	ldi	r25, 0x0D	; 13
   1a08c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	if(mesh_nr == 3) mesh_nr = 7;
	else mesh_nr = 3;
   1a090:	63 e0       	ldi	r22, 0x03	; 3
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION, (uint8_t)magnet_elimination);
}

static void mbl_mesh_toggle() {
	uint8_t mesh_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
	if(mesh_nr == 3) mesh_nr = 7;
   1a092:	83 30       	cpi	r24, 0x03	; 3
   1a094:	09 f4       	brne	.+2      	; 0x1a098 <mbl_mesh_toggle()+0x10>
   1a096:	67 e0       	ldi	r22, 0x07	; 7
   1a098:	8b ea       	ldi	r24, 0xAB	; 171
   1a09a:	9d e0       	ldi	r25, 0x0D	; 13
   1a09c:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a0a0 <mbl_magnets_elimination_toggle()>:
#endif //LCD_BL_PIN
	MENU_END();
}

static void mbl_magnets_elimination_toggle() {
	bool magnet_elimination = (eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION) > 0);
   1a0a0:	8c ea       	ldi	r24, 0xAC	; 172
   1a0a2:	9d e0       	ldi	r25, 0x0D	; 13
   1a0a4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	magnet_elimination = !magnet_elimination;
   1a0a8:	61 e0       	ldi	r22, 0x01	; 1
   1a0aa:	81 11       	cpse	r24, r1
   1a0ac:	60 e0       	ldi	r22, 0x00	; 0
   1a0ae:	8c ea       	ldi	r24, 0xAC	; 172
   1a0b0:	9d e0       	ldi	r25, 0x0D	; 13
   1a0b2:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a0b6 <lcd_check_filament_set()>:
    lcd_check_update_RAM(&oCheckVersion);
    eeprom_update_byte_notify((uint8_t*)EEPROM_CHECK_VERSION,(uint8_t)oCheckVersion);
}

static void lcd_check_filament_set() {
    lcd_check_update_RAM(&oCheckFilament);
   1a0b6:	87 ee       	ldi	r24, 0xE7	; 231
   1a0b8:	94 e0       	ldi	r25, 0x04	; 4
   1a0ba:	0e 94 a2 ce 	call	0x19d44	; 0x19d44 <lcd_check_update_RAM(ClCheckMode*)>
   1a0be:	60 91 e7 04 	lds	r22, 0x04E7	; 0x8004e7 <oCheckFilament>
   1a0c2:	80 e2       	ldi	r24, 0x20	; 32
   1a0c4:	9c e0       	ldi	r25, 0x0C	; 12
   1a0c6:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a0ca <lcd_check_version_set()>:
    lcd_check_update_RAM(&oCheckModel);
    eeprom_update_byte_notify((uint8_t*)EEPROM_CHECK_MODEL,(uint8_t)oCheckModel);
}

static void lcd_check_version_set() {
    lcd_check_update_RAM(&oCheckVersion);
   1a0ca:	89 ee       	ldi	r24, 0xE9	; 233
   1a0cc:	94 e0       	ldi	r25, 0x04	; 4
   1a0ce:	0e 94 a2 ce 	call	0x19d44	; 0x19d44 <lcd_check_update_RAM(ClCheckMode*)>
   1a0d2:	60 91 e9 04 	lds	r22, 0x04E9	; 0x8004e9 <oCheckVersion>
   1a0d6:	83 ea       	ldi	r24, 0xA3	; 163
   1a0d8:	9d e0       	ldi	r25, 0x0D	; 13
   1a0da:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a0de <lcd_check_model_set()>:
    lcd_check_update_RAM(&oCheckMode);
    eeprom_update_byte_notify((uint8_t*)EEPROM_CHECK_MODE,(uint8_t)oCheckMode);
}

static void lcd_check_model_set() {
    lcd_check_update_RAM(&oCheckModel);
   1a0de:	8a ee       	ldi	r24, 0xEA	; 234
   1a0e0:	94 e0       	ldi	r25, 0x04	; 4
   1a0e2:	0e 94 a2 ce 	call	0x19d44	; 0x19d44 <lcd_check_update_RAM(ClCheckMode*)>
   1a0e6:	60 91 ea 04 	lds	r22, 0x04EA	; 0x8004ea <oCheckModel>
   1a0ea:	84 ea       	ldi	r24, 0xA4	; 164
   1a0ec:	9d e0       	ldi	r25, 0x0D	; 13
   1a0ee:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a0f2 <lcd_check_mode_set()>:
            *oCheckSetting = ClCheckMode::_None;
    }
}

static void lcd_check_mode_set() {
    lcd_check_update_RAM(&oCheckMode);
   1a0f2:	8c ee       	ldi	r24, 0xEC	; 236
   1a0f4:	94 e0       	ldi	r25, 0x04	; 4
   1a0f6:	0e 94 a2 ce 	call	0x19d44	; 0x19d44 <lcd_check_update_RAM(ClCheckMode*)>
   1a0fa:	60 91 ec 04 	lds	r22, 0x04EC	; 0x8004ec <oCheckMode>
   1a0fe:	88 ea       	ldi	r24, 0xA8	; 168
   1a100:	9d e0       	ldi	r25, 0x0D	; 13
   1a102:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a106 <lcd_fsensor_actionNA_set()>:
#endif //FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125

static void lcd_fsensor_actionNA_set(void)
{
    Filament_sensor::SensorActionOnError act = fsensor.getActionOnError();
    switch(act) {
   1a106:	80 91 b2 17 	lds	r24, 0x17B2	; 0x8017b2 <fsensor+0x8>
        case Filament_sensor::SensorActionOnError::_Continue:
            act = Filament_sensor::SensorActionOnError::_Pause;
            break;
        case Filament_sensor::SensorActionOnError::_Pause:
            act = Filament_sensor::SensorActionOnError::_Continue;
   1a10a:	60 e0       	ldi	r22, 0x00	; 0
#endif //FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125

static void lcd_fsensor_actionNA_set(void)
{
    Filament_sensor::SensorActionOnError act = fsensor.getActionOnError();
    switch(act) {
   1a10c:	81 11       	cpse	r24, r1
   1a10e:	01 c0       	rjmp	.+2      	; 0x1a112 <lcd_fsensor_actionNA_set()+0xc>
        case Filament_sensor::SensorActionOnError::_Continue:
            act = Filament_sensor::SensorActionOnError::_Pause;
   1a110:	61 e0       	ldi	r22, 0x01	; 1
        eeprom_update_byte_notify((uint8_t *)EEPROM_FSENS_RUNOUT_ENABLED, state);
    }
}

void Filament_sensor::setActionOnError(SensorActionOnError state, bool updateEEPROM) {
    sensorActionOnError = state;
   1a112:	60 93 b2 17 	sts	0x17B2, r22	; 0x8017b2 <fsensor+0x8>
   1a116:	87 e4       	ldi	r24, 0x47	; 71
   1a118:	9d e0       	ldi	r25, 0x0D	; 13
   1a11a:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a11e <lcd_fsensor_autoload_set()>:
static void lcd_fsensor_runout_set() {
    fsensor.setRunoutEnabled(!fsensor.getRunoutEnabled(), true);
}

static void lcd_fsensor_autoload_set() {
    fsensor.setAutoLoadEnabled(!fsensor.getAutoLoadEnabled(), true);
   1a11e:	ea ea       	ldi	r30, 0xAA	; 170
   1a120:	f7 e1       	ldi	r31, 0x17	; 23
   1a122:	61 81       	ldd	r22, Z+1	; 0x01
   1a124:	81 e0       	ldi	r24, 0x01	; 1
   1a126:	68 27       	eor	r22, r24
        fsensor.deinit();
    }
}

void Filament_sensor::setAutoLoadEnabled(bool state, bool updateEEPROM) {
    autoLoadEnabled = state;
   1a128:	61 83       	std	Z+1, r22	; 0x01
   1a12a:	87 e0       	ldi	r24, 0x07	; 7
   1a12c:	9f e0       	ldi	r25, 0x0F	; 15
   1a12e:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a132 <lcd_fsensor_runout_set()>:
static void lcd_fsensor_enabled_set(void) {
    fsensor.setEnabled(!fsensor.isEnabled());
}

static void lcd_fsensor_runout_set() {
    fsensor.setRunoutEnabled(!fsensor.getRunoutEnabled(), true);
   1a132:	ea ea       	ldi	r30, 0xAA	; 170
   1a134:	f7 e1       	ldi	r31, 0x17	; 23
   1a136:	62 81       	ldd	r22, Z+2	; 0x02
   1a138:	81 e0       	ldi	r24, 0x01	; 1
   1a13a:	68 27       	eor	r22, r24
        eeprom_update_byte_notify((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED, state);
    }
}

void Filament_sensor::setRunoutEnabled(bool state, bool updateEEPROM) {
    runoutEnabled = state;
   1a13c:	62 83       	std	Z+2, r22	; 0x02
   1a13e:	85 ed       	ldi	r24, 0xD5	; 213
   1a140:	9e e0       	ldi	r25, 0x0E	; 14
   1a142:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a146 <lcd_toshiba_flash_air_compatibility_toggle()>:
	lcd_return_to_status();
}

void lcd_toshiba_flash_air_compatibility_toggle()
{
   card.ToshibaFlashAir_enable(! card.ToshibaFlashAir_isEnabled());
   1a146:	e1 e0       	ldi	r30, 0x01	; 1
   1a148:	f7 e1       	ldi	r31, 0x17	; 23
   1a14a:	60 81       	ld	r22, Z
   1a14c:	81 e0       	ldi	r24, 0x01	; 1
   1a14e:	68 27       	eor	r22, r24
  bool writeStop();

  // Toshiba FlashAir support
  uint8_t readExtMemory(uint8_t mio, uint8_t func, uint32_t addr, uint16_t count, uint8_t* dst);

  void setFlashAirCompatible(bool flashAirCompatible) { flash_air_compatible_ = flashAirCompatible; }
   1a150:	60 83       	st	Z, r22
   1a152:	8b eb       	ldi	r24, 0xBB	; 187
   1a154:	9f e0       	ldi	r25, 0x0F	; 15
   1a156:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a15a <lcd_second_serial_set()>:
	eeprom_update_byte_notify((unsigned char *)EEPROM_TEMP_CAL_ACTIVE, temp_cal_active);
}

#ifdef HAS_SECOND_SERIAL_PORT
void lcd_second_serial_set() {
	if(selectedSerialPort == 1) selectedSerialPort = 0;
   1a15a:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   1a15e:	81 30       	cpi	r24, 0x01	; 1
   1a160:	51 f4       	brne	.+20     	; 0x1a176 <lcd_second_serial_set()+0x1c>
   1a162:	10 92 39 05 	sts	0x0539, r1	; 0x800539 <selectedSerialPort>
   1a166:	60 91 39 05 	lds	r22, 0x0539	; 0x800539 <selectedSerialPort>
   1a16a:	88 e0       	ldi	r24, 0x08	; 8
   1a16c:	9f e0       	ldi	r25, 0x0F	; 15
   1a16e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	else selectedSerialPort = 1;
	eeprom_update_byte_notify((unsigned char *)EEPROM_SECOND_SERIAL_ACTIVE, selectedSerialPort);
	MYSERIAL.begin(BAUDRATE);
   1a172:	0c 94 6b cd 	jmp	0x19ad6	; 0x19ad6 <MarlinSerial::begin(long) [clone .constprop.64]>
}

#ifdef HAS_SECOND_SERIAL_PORT
void lcd_second_serial_set() {
	if(selectedSerialPort == 1) selectedSerialPort = 0;
	else selectedSerialPort = 1;
   1a176:	81 e0       	ldi	r24, 0x01	; 1
   1a178:	80 93 39 05 	sts	0x0539, r24	; 0x800539 <selectedSerialPort>
   1a17c:	f4 cf       	rjmp	.-24     	; 0x1a166 <lcd_second_serial_set()+0xc>

0001a17e <lcd_temp_calibration_set()>:
  enquecommand_P(PSTR("M45 Z"));
  lcd_return_to_status();
}

void lcd_temp_calibration_set() {
	bool temp_cal_active = eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE);
   1a17e:	8f ea       	ldi	r24, 0xAF	; 175
   1a180:	9f e0       	ldi	r25, 0x0F	; 15
   1a182:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	temp_cal_active = !temp_cal_active;
   1a186:	61 e0       	ldi	r22, 0x01	; 1
   1a188:	81 11       	cpse	r24, r1
   1a18a:	60 e0       	ldi	r22, 0x00	; 0
   1a18c:	8f ea       	ldi	r24, 0xAF	; 175
   1a18e:	9f e0       	ldi	r25, 0x0F	; 15
   1a190:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a194 <lcd_sound_state_set()>:
eeprom_update_byte_notify((uint8_t*)EEPROM_SOUND_MODE,(uint8_t)eSoundMode);
}

void Sound_CycleState(void)
{
switch(eSoundMode)
   1a194:	80 91 de 04 	lds	r24, 0x04DE	; 0x8004de <eSoundMode>
   1a198:	81 30       	cpi	r24, 0x01	; 1
   1a19a:	71 f0       	breq	.+28     	; 0x1a1b8 <lcd_sound_state_set()+0x24>
   1a19c:	20 f0       	brcs	.+8      	; 0x1a1a6 <lcd_sound_state_set()+0x12>
   1a19e:	82 30       	cpi	r24, 0x02	; 2
   1a1a0:	69 f4       	brne	.+26     	; 0x1a1bc <lcd_sound_state_set()+0x28>
          break;
     case e_SOUND_MODE_ONCE:
          eSoundMode=e_SOUND_MODE_SILENT;
          break;
     case e_SOUND_MODE_SILENT:
          eSoundMode=e_SOUND_MODE_BLIND;
   1a1a2:	83 e0       	ldi	r24, 0x03	; 3
   1a1a4:	01 c0       	rjmp	.+2      	; 0x1a1a8 <lcd_sound_state_set()+0x14>
void Sound_CycleState(void)
{
switch(eSoundMode)
     {
     case e_SOUND_MODE_LOUD:
          eSoundMode=e_SOUND_MODE_ONCE;
   1a1a6:	81 e0       	ldi	r24, 0x01	; 1
          break;
     case e_SOUND_MODE_ONCE:
          eSoundMode=e_SOUND_MODE_SILENT;
   1a1a8:	80 93 de 04 	sts	0x04DE, r24	; 0x8004de <eSoundMode>
   1a1ac:	60 91 de 04 	lds	r22, 0x04DE	; 0x8004de <eSoundMode>
   1a1b0:	87 ed       	ldi	r24, 0xD7	; 215
   1a1b2:	9e e0       	ldi	r25, 0x0E	; 14
   1a1b4:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1a1b8:	82 e0       	ldi	r24, 0x02	; 2
   1a1ba:	f6 cf       	rjmp	.-20     	; 0x1a1a8 <lcd_sound_state_set()+0x14>
          break;
     case e_SOUND_MODE_SILENT:
          eSoundMode=e_SOUND_MODE_BLIND;
          break;
     case e_SOUND_MODE_BLIND:
          eSoundMode=e_SOUND_MODE_LOUD;
   1a1bc:	10 92 de 04 	sts	0x04DE, r1	; 0x8004de <eSoundMode>
   1a1c0:	f5 cf       	rjmp	.-22     	; 0x1a1ac <lcd_sound_state_set()+0x18>

0001a1c2 <lcd_sort_type_set()>:
}

#ifdef SDCARD_SORT_ALPHA
static void lcd_sort_type_set() {
	uint8_t sdSort;
	sdSort = eeprom_read_byte((uint8_t*) EEPROM_SD_SORT);
   1a1c2:	89 e0       	ldi	r24, 0x09	; 9
   1a1c4:	9f e0       	ldi	r25, 0x0F	; 15
   1a1c6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
	switch (sdSort) {
		case SD_SORT_TIME: sdSort = SD_SORT_ALPHA; break;
   1a1ca:	61 e0       	ldi	r22, 0x01	; 1

#ifdef SDCARD_SORT_ALPHA
static void lcd_sort_type_set() {
	uint8_t sdSort;
	sdSort = eeprom_read_byte((uint8_t*) EEPROM_SD_SORT);
	switch (sdSort) {
   1a1cc:	88 23       	and	r24, r24
   1a1ce:	21 f0       	breq	.+8      	; 0x1a1d8 <lcd_sort_type_set()+0x16>
		case SD_SORT_TIME: sdSort = SD_SORT_ALPHA; break;
		case SD_SORT_ALPHA: sdSort = SD_SORT_NONE; break;
   1a1d0:	62 e0       	ldi	r22, 0x02	; 2

#ifdef SDCARD_SORT_ALPHA
static void lcd_sort_type_set() {
	uint8_t sdSort;
	sdSort = eeprom_read_byte((uint8_t*) EEPROM_SD_SORT);
	switch (sdSort) {
   1a1d2:	81 30       	cpi	r24, 0x01	; 1
   1a1d4:	09 f0       	breq	.+2      	; 0x1a1d8 <lcd_sort_type_set()+0x16>
		case SD_SORT_TIME: sdSort = SD_SORT_ALPHA; break;
		case SD_SORT_ALPHA: sdSort = SD_SORT_NONE; break;
		default: sdSort = SD_SORT_TIME;
   1a1d6:	60 e0       	ldi	r22, 0x00	; 0
   1a1d8:	89 e0       	ldi	r24, 0x09	; 9
   1a1da:	9f e0       	ldi	r25, 0x0F	; 15
   1a1dc:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	}
	eeprom_update_byte_notify((uint8_t*)EEPROM_SD_SORT, sdSort);
	card.presort_flag = true;
   1a1e0:	81 e0       	ldi	r24, 0x01	; 1
   1a1e2:	80 93 df 14 	sts	0x14DF, r24	; 0x8014df <card+0x51>
}
   1a1e6:	08 95       	ret

0001a1e8 <lcd_nozzle_diameter_cycle()>:
            MENU_ITEM_TOGGLE_P(_T(MSG_SOUND), _T(MSG_SOUND_LOUD), lcd_sound_state_set);\
    }\
}\
while (0)

static void lcd_nozzle_diameter_cycle(void) {
   1a1e8:	cf 93       	push	r28
   1a1ea:	df 93       	push	r29
    uint16_t nDiameter;
    switch(oNozzleDiameter){
   1a1ec:	80 91 eb 04 	lds	r24, 0x04EB	; 0x8004eb <oNozzleDiameter>
   1a1f0:	8c 33       	cpi	r24, 0x3C	; 60
   1a1f2:	e1 f0       	breq	.+56     	; 0x1a22c <lcd_nozzle_diameter_cycle()+0x44>
   1a1f4:	80 35       	cpi	r24, 0x50	; 80
   1a1f6:	01 f1       	breq	.+64     	; 0x1a238 <lcd_nozzle_diameter_cycle()+0x50>
   1a1f8:	88 32       	cpi	r24, 0x28	; 40
   1a1fa:	91 f0       	breq	.+36     	; 0x1a220 <lcd_nozzle_diameter_cycle()+0x38>
    case ClNozzleDiameter::_Diameter_250:
        oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
   1a1fc:	88 e2       	ldi	r24, 0x28	; 40
   1a1fe:	80 93 eb 04 	sts	0x04EB, r24	; 0x8004eb <oNozzleDiameter>
        nDiameter=400;
   1a202:	c0 e9       	ldi	r28, 0x90	; 144
   1a204:	d1 e0       	ldi	r29, 0x01	; 1
   1a206:	60 91 eb 04 	lds	r22, 0x04EB	; 0x8004eb <oNozzleDiameter>
   1a20a:	87 ea       	ldi	r24, 0xA7	; 167
   1a20c:	9d e0       	ldi	r25, 0x0D	; 13
   1a20e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   1a212:	be 01       	movw	r22, r28
   1a214:	85 ea       	ldi	r24, 0xA5	; 165
   1a216:	9d e0       	ldi	r25, 0x0D	; 13
        oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
        nDiameter=400;
    }
    eeprom_update_byte_notify((uint8_t*)EEPROM_NOZZLE_DIAMETER,(uint8_t)oNozzleDiameter);
    eeprom_update_word_notify((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM,nDiameter);
}
   1a218:	df 91       	pop	r29
   1a21a:	cf 91       	pop	r28
   1a21c:	0d 94 9d dc 	jmp	0x3b93a	; 0x3b93a <eeprom_update_word>
    case ClNozzleDiameter::_Diameter_250:
        oNozzleDiameter=ClNozzleDiameter::_Diameter_400;
        nDiameter=400;
        break;
    case ClNozzleDiameter::_Diameter_400:
        oNozzleDiameter=ClNozzleDiameter::_Diameter_600;
   1a220:	8c e3       	ldi	r24, 0x3C	; 60
   1a222:	80 93 eb 04 	sts	0x04EB, r24	; 0x8004eb <oNozzleDiameter>
        nDiameter=600;
   1a226:	c8 e5       	ldi	r28, 0x58	; 88
   1a228:	d2 e0       	ldi	r29, 0x02	; 2
   1a22a:	ed cf       	rjmp	.-38     	; 0x1a206 <lcd_nozzle_diameter_cycle()+0x1e>
        break;
    case ClNozzleDiameter::_Diameter_600:
        oNozzleDiameter=ClNozzleDiameter::_Diameter_800;
   1a22c:	80 e5       	ldi	r24, 0x50	; 80
   1a22e:	80 93 eb 04 	sts	0x04EB, r24	; 0x8004eb <oNozzleDiameter>
        nDiameter=800;
   1a232:	c0 e2       	ldi	r28, 0x20	; 32
   1a234:	d3 e0       	ldi	r29, 0x03	; 3
   1a236:	e7 cf       	rjmp	.-50     	; 0x1a206 <lcd_nozzle_diameter_cycle()+0x1e>
        break;
    case ClNozzleDiameter::_Diameter_800:
        oNozzleDiameter=ClNozzleDiameter::_Diameter_250;
   1a238:	89 e1       	ldi	r24, 0x19	; 25
   1a23a:	80 93 eb 04 	sts	0x04EB, r24	; 0x8004eb <oNozzleDiameter>
        nDiameter=250;
   1a23e:	ca ef       	ldi	r28, 0xFA	; 250
   1a240:	d0 e0       	ldi	r29, 0x00	; 0
   1a242:	e1 cf       	rjmp	.-62     	; 0x1a206 <lcd_nozzle_diameter_cycle()+0x1e>

0001a244 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])>:
    }
    return 0;
}

bool eeprom_fw_version_older_than_p(const uint16_t (&ver_req)[4])
{
   1a244:	0f 93       	push	r16
   1a246:	1f 93       	push	r17
   1a248:	cf 93       	push	r28
   1a24a:	df 93       	push	r29
   1a24c:	00 d0       	rcall	.+0      	; 0x1a24e <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0xa>
   1a24e:	00 d0       	rcall	.+0      	; 0x1a250 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0xc>
   1a250:	1f 92       	push	r1
   1a252:	1f 92       	push	r1
   1a254:	cd b7       	in	r28, 0x3d	; 61
   1a256:	de b7       	in	r29, 0x3e	; 62
   1a258:	8c 01       	movw	r16, r24
    uint16_t ver_eeprom[4];
    ver_eeprom[0] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_MAJOR);
   1a25a:	8a e0       	ldi	r24, 0x0A	; 10
   1a25c:	90 e0       	ldi	r25, 0x00	; 0
   1a25e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1a262:	9a 83       	std	Y+2, r25	; 0x02
   1a264:	89 83       	std	Y+1, r24	; 0x01
    ver_eeprom[1] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_MINOR);
   1a266:	8c e0       	ldi	r24, 0x0C	; 12
   1a268:	90 e0       	ldi	r25, 0x00	; 0
   1a26a:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1a26e:	9c 83       	std	Y+4, r25	; 0x04
   1a270:	8b 83       	std	Y+3, r24	; 0x03
    ver_eeprom[2] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_REVISION);
   1a272:	8e e0       	ldi	r24, 0x0E	; 14
   1a274:	90 e0       	ldi	r25, 0x00	; 0
   1a276:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1a27a:	9e 83       	std	Y+6, r25	; 0x06
   1a27c:	8d 83       	std	Y+5, r24	; 0x05
    ver_eeprom[3] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_FLAVOR);
   1a27e:	80 e1       	ldi	r24, 0x10	; 16
   1a280:	90 e0       	ldi	r25, 0x00	; 0
   1a282:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1a286:	98 87       	std	Y+8, r25	; 0x08
   1a288:	8f 83       	std	Y+7, r24	; 0x07
   1a28a:	c8 01       	movw	r24, r16
   1a28c:	de 01       	movw	r26, r28
   1a28e:	11 96       	adiw	r26, 0x01	; 1
   1a290:	be 01       	movw	r22, r28
   1a292:	67 5f       	subi	r22, 0xF7	; 247
   1a294:	7f 4f       	sbci	r23, 0xFF	; 255

    for (uint8_t i = 0; i < 4; ++i) {
        uint16_t v = pgm_read_word(&ver_req[i]);
   1a296:	fc 01       	movw	r30, r24
   1a298:	25 91       	lpm	r18, Z+
   1a29a:	34 91       	lpm	r19, Z
        if (v > ver_eeprom[i])
   1a29c:	4d 91       	ld	r20, X+
   1a29e:	5d 91       	ld	r21, X+
   1a2a0:	42 17       	cp	r20, r18
   1a2a2:	53 07       	cpc	r21, r19
   1a2a4:	48 f0       	brcs	.+18     	; 0x1a2b8 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0x74>
            return true;
        else if (v < ver_eeprom[i])
   1a2a6:	24 17       	cp	r18, r20
   1a2a8:	35 07       	cpc	r19, r21
   1a2aa:	20 f0       	brcs	.+8      	; 0x1a2b4 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0x70>
   1a2ac:	02 96       	adiw	r24, 0x02	; 2
    ver_eeprom[0] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_MAJOR);
    ver_eeprom[1] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_MINOR);
    ver_eeprom[2] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_REVISION);
    ver_eeprom[3] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_FLAVOR);

    for (uint8_t i = 0; i < 4; ++i) {
   1a2ae:	a6 17       	cp	r26, r22
   1a2b0:	b7 07       	cpc	r27, r23
   1a2b2:	89 f7       	brne	.-30     	; 0x1a296 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0x52>
            return true;
        else if (v < ver_eeprom[i])
            break;
    }

    return false;
   1a2b4:	80 e0       	ldi	r24, 0x00	; 0
   1a2b6:	01 c0       	rjmp	.+2      	; 0x1a2ba <eeprom_fw_version_older_than_p(unsigned int const (&) [4])+0x76>
    ver_eeprom[3] = eeprom_read_word((uint16_t*)EEPROM_FIRMWARE_VERSION_FLAVOR);

    for (uint8_t i = 0; i < 4; ++i) {
        uint16_t v = pgm_read_word(&ver_req[i]);
        if (v > ver_eeprom[i])
            return true;
   1a2b8:	81 e0       	ldi	r24, 0x01	; 1
        else if (v < ver_eeprom[i])
            break;
    }

    return false;
}
   1a2ba:	28 96       	adiw	r28, 0x08	; 8
   1a2bc:	0f b6       	in	r0, 0x3f	; 63
   1a2be:	f8 94       	cli
   1a2c0:	de bf       	out	0x3e, r29	; 62
   1a2c2:	0f be       	out	0x3f, r0	; 63
   1a2c4:	cd bf       	out	0x3d, r28	; 61
   1a2c6:	df 91       	pop	r29
   1a2c8:	cf 91       	pop	r28
   1a2ca:	1f 91       	pop	r17
   1a2cc:	0f 91       	pop	r16
   1a2ce:	08 95       	ret

0001a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>:

	return (_progress >= _progress_scale * 2) ? 0 : _progress;
}

static void lcd_selftest_screen_step(const uint8_t _row, const uint8_t _col, const uint8_t _state, const char *_name_PROGMEM, const char _indicator)
{
   1a2d0:	0f 93       	push	r16
   1a2d2:	1f 93       	push	r17
   1a2d4:	cf 93       	push	r28
   1a2d6:	df 93       	push	r29
   1a2d8:	98 2f       	mov	r25, r24
   1a2da:	86 2f       	mov	r24, r22
   1a2dc:	14 2f       	mov	r17, r20
   1a2de:	e9 01       	movw	r28, r18
	lcd_set_cursor(_col, _row);
   1a2e0:	69 2f       	mov	r22, r25
   1a2e2:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	switch (_state)
   1a2e6:	11 30       	cpi	r17, 0x01	; 1
   1a2e8:	21 f0       	breq	.+8      	; 0x1a2f2 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)+0x22>
   1a2ea:	12 30       	cpi	r17, 0x02	; 2
   1a2ec:	79 f0       	breq	.+30     	; 0x1a30c <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)+0x3c>
		lcd_puts_P(_name_PROGMEM);
		lcd_putc(':');
		lcd_puts_P(MSG_OK_CAPS);
		break;
	default:
		lcd_puts_P(_name_PROGMEM);
   1a2ee:	ce 01       	movw	r24, r28
   1a2f0:	15 c0       	rjmp	.+42     	; 0x1a31c <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)+0x4c>
{
	lcd_set_cursor(_col, _row);
	switch (_state)
	{
	case 1:
		lcd_puts_P(_name_PROGMEM);
   1a2f2:	ce 01       	movw	r24, r28
   1a2f4:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
		lcd_putc(':');
   1a2f8:	8a e3       	ldi	r24, 0x3A	; 58
   1a2fa:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		lcd_putc(_indicator);
   1a2fe:	80 2f       	mov	r24, r16
		lcd_puts_P(MSG_OK_CAPS);
		break;
	default:
		lcd_puts_P(_name_PROGMEM);
	}
}
   1a300:	df 91       	pop	r29
   1a302:	cf 91       	pop	r28
   1a304:	1f 91       	pop	r17
   1a306:	0f 91       	pop	r16
	switch (_state)
	{
	case 1:
		lcd_puts_P(_name_PROGMEM);
		lcd_putc(':');
		lcd_putc(_indicator);
   1a308:	0c 94 56 6e 	jmp	0xdcac	; 0xdcac <lcd_putc(char)>
		break;
	case 2:
		lcd_puts_P(_name_PROGMEM);
   1a30c:	ce 01       	movw	r24, r28
   1a30e:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
		lcd_putc(':');
   1a312:	8a e3       	ldi	r24, 0x3A	; 58
   1a314:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		lcd_puts_P(MSG_OK_CAPS);
   1a318:	8e ed       	ldi	r24, 0xDE	; 222
   1a31a:	9a e6       	ldi	r25, 0x6A	; 106
		break;
	default:
		lcd_puts_P(_name_PROGMEM);
	}
}
   1a31c:	df 91       	pop	r29
   1a31e:	cf 91       	pop	r28
   1a320:	1f 91       	pop	r17
   1a322:	0f 91       	pop	r16
		lcd_puts_P(_name_PROGMEM);
		lcd_putc(':');
		lcd_puts_P(MSG_OK_CAPS);
		break;
	default:
		lcd_puts_P(_name_PROGMEM);
   1a324:	0c 94 52 6e 	jmp	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

0001a328 <lcd_fsensor_enabled_set()>:
static void fsensor_reinit() {
    fsensor.init();
}

static void lcd_fsensor_enabled_set(void) {
    fsensor.setEnabled(!fsensor.isEnabled());
   1a328:	81 e0       	ldi	r24, 0x01	; 1
   1a32a:	90 91 aa 17 	lds	r25, 0x17AA	; 0x8017aa <fsensor>
   1a32e:	91 11       	cpse	r25, r1
   1a330:	80 e0       	ldi	r24, 0x00	; 0
   1a332:	0c 94 56 74 	jmp	0xe8ac	; 0xe8ac <Filament_sensor::setEnabled(bool)>

0001a336 <lcd_fsensor_jam_detection_set()>:
static void lcd_fsensor_autoload_set() {
    fsensor.setAutoLoadEnabled(!fsensor.getAutoLoadEnabled(), true);
}

#if FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125
static void lcd_fsensor_jam_detection_set() {
   1a336:	0f 93       	push	r16
   1a338:	1f 93       	push	r17
   1a33a:	cf 93       	push	r28
    fsensor.setJamDetectionEnabled(!fsensor.getJamDetectionEnabled(), true);
   1a33c:	0a ea       	ldi	r16, 0xAA	; 170
   1a33e:	17 e1       	ldi	r17, 0x17	; 23
   1a340:	f8 01       	movw	r30, r16
   1a342:	c6 85       	ldd	r28, Z+14	; 0x0e
   1a344:	81 e0       	ldi	r24, 0x01	; 1
   1a346:	c8 27       	eor	r28, r24
    return fsensorDetected;
}
#endif

void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
    jamDetection = state;
   1a348:	c6 87       	std	Z+14, r28	; 0x0e
    oldPos = pat9125_y;
   1a34a:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   1a34e:	90 91 90 0e 	lds	r25, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   1a352:	90 8b       	std	Z+16, r25	; 0x10
   1a354:	87 87       	std	Z+15, r24	; 0x0f
    resetStepCount();
   1a356:	0f 94 2c 7c 	call	0x2f858	; 0x2f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>
    jamErrCnt = 0;
   1a35a:	f8 01       	movw	r30, r16
   1a35c:	15 8a       	std	Z+21, r1	; 0x15
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1a35e:	6c 2f       	mov	r22, r28
   1a360:	8d ea       	ldi	r24, 0xAD	; 173
   1a362:	9c e0       	ldi	r25, 0x0C	; 12
}
   1a364:	cf 91       	pop	r28
   1a366:	1f 91       	pop	r17
   1a368:	0f 91       	pop	r16
   1a36a:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001a36e <lcd_mmu_mode_toggle()>:
    Sound_CycleState();
}

#ifndef MMU_FORCE_STEALTH_MODE
static void lcd_mmu_mode_toggle() {
    eeprom_toggle((uint8_t*)EEPROM_MMU_STEALTH);
   1a36e:	89 ea       	ldi	r24, 0xA9	; 169
   1a370:	9d e0       	ldi	r25, 0x0D	; 13
   1a372:	0c 94 bb 75 	jmp	0xeb76	; 0xeb76 <eeprom_toggle(unsigned char*)>

0001a376 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]>:
static void lcd_check_filament_set() {
    lcd_check_update_RAM(&oCheckFilament);
    eeprom_update_byte_notify((uint8_t*)EEPROM_CHECK_FILAMENT,(uint8_t)oCheckFilament);
}

static void settings_check_toggle(ClCheckMode * oCheckSetting, const char* msg, void (*func)(void)) {
   1a376:	0f 93       	push	r16
   1a378:	1f 93       	push	r17
   1a37a:	cf 93       	push	r28
   1a37c:	df 93       	push	r29
   1a37e:	eb 01       	movw	r28, r22
   1a380:	8a 01       	movw	r16, r20
    switch(*oCheckSetting) {
   1a382:	81 30       	cpi	r24, 0x01	; 1
   1a384:	81 f0       	breq	.+32     	; 0x1a3a6 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]+0x30>
   1a386:	82 30       	cpi	r24, 0x02	; 2
   1a388:	89 f0       	breq	.+34     	; 0x1a3ac <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]+0x36>
        case ClCheckMode::_None:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_NONE), func);
   1a38a:	86 e6       	ldi	r24, 0x66	; 102
   1a38c:	99 e4       	ldi	r25, 0x49	; 73
            break;
        case ClCheckMode::_Warn:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_WARN), func);
            break;
        case ClCheckMode::_Strict:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_STRICT), func);
   1a38e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a392:	22 e0       	ldi	r18, 0x02	; 2
   1a394:	a8 01       	movw	r20, r16
   1a396:	bc 01       	movw	r22, r24
   1a398:	ce 01       	movw	r24, r28
            break;
        default:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_NONE), func);
    }
}
   1a39a:	df 91       	pop	r29
   1a39c:	cf 91       	pop	r28
   1a39e:	1f 91       	pop	r17
   1a3a0:	0f 91       	pop	r16
            break;
        case ClCheckMode::_Warn:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_WARN), func);
            break;
        case ClCheckMode::_Strict:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_STRICT), func);
   1a3a2:	0d 94 64 d3 	jmp	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
    switch(*oCheckSetting) {
        case ClCheckMode::_None:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_NONE), func);
            break;
        case ClCheckMode::_Warn:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_WARN), func);
   1a3a6:	8f e5       	ldi	r24, 0x5F	; 95
   1a3a8:	99 e4       	ldi	r25, 0x49	; 73
   1a3aa:	f1 cf       	rjmp	.-30     	; 0x1a38e <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]+0x18>
            break;
        case ClCheckMode::_Strict:
            MENU_ITEM_TOGGLE_P(msg, _T(MSG_STRICT), func);
   1a3ac:	86 e5       	ldi	r24, 0x56	; 86
   1a3ae:	99 e4       	ldi	r25, 0x49	; 73
   1a3b0:	ee cf       	rjmp	.-36     	; 0x1a38e <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]+0x18>

0001a3b2 <SETTINGS_FANS_CHECK()>:
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_BED), &target_temperature_bed, 0, BED_MAXTEMP - 5, LCD_JUMP_BED_TEMP);
#endif
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_FAN_SPEED), &fanSpeed, 0, 255, LCD_JUMP_FAN_SPEED);
}

void SETTINGS_FANS_CHECK() {
   1a3b2:	cf 93       	push	r28
   1a3b4:	df 93       	push	r29
    MENU_ITEM_TOGGLE_P(_T(MSG_FANS_CHECK), fans_check_enabled ? _T(MSG_ON) : _T(MSG_OFF), lcd_set_fan_check);
   1a3b6:	80 91 38 02 	lds	r24, 0x0238	; 0x800238 <fans_check_enabled>
   1a3ba:	88 23       	and	r24, r24
   1a3bc:	89 f0       	breq	.+34     	; 0x1a3e0 <SETTINGS_FANS_CHECK()+0x2e>
   1a3be:	87 e1       	ldi	r24, 0x17	; 23
   1a3c0:	9c e5       	ldi	r25, 0x5C	; 92
   1a3c2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a3c6:	ec 01       	movw	r28, r24
   1a3c8:	8f e9       	ldi	r24, 0x9F	; 159
   1a3ca:	93 e4       	ldi	r25, 0x43	; 67
   1a3cc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a3d0:	22 e0       	ldi	r18, 0x02	; 2
   1a3d2:	4c ec       	ldi	r20, 0xCC	; 204
   1a3d4:	59 e3       	ldi	r21, 0x39	; 57
   1a3d6:	be 01       	movw	r22, r28
}
   1a3d8:	df 91       	pop	r29
   1a3da:	cf 91       	pop	r28
#endif
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_FAN_SPEED), &fanSpeed, 0, 255, LCD_JUMP_FAN_SPEED);
}

void SETTINGS_FANS_CHECK() {
    MENU_ITEM_TOGGLE_P(_T(MSG_FANS_CHECK), fans_check_enabled ? _T(MSG_ON) : _T(MSG_OFF), lcd_set_fan_check);
   1a3dc:	0d 94 64 d3 	jmp	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
   1a3e0:	81 e1       	ldi	r24, 0x11	; 17
   1a3e2:	9c e5       	ldi	r25, 0x5C	; 92
   1a3e4:	ee cf       	rjmp	.-36     	; 0x1a3c2 <SETTINGS_FANS_CHECK()+0x10>

0001a3e6 <SETTINGS_SILENT_MODE()>:
    eeprom_toggle((uint8_t *)EEPROM_MMU_ENABLED);
    MMU2::mmu2.Status();
}

static void SETTINGS_SILENT_MODE()
{
   1a3e6:	cf 93       	push	r28
   1a3e8:	df 93       	push	r29
    if (!farm_mode)
    { // dont show in menu if we are in farm mode
#ifdef TMC2130
        uint8_t eeprom_mode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
   1a3ea:	8f ef       	ldi	r24, 0xFF	; 255
   1a3ec:	9f e0       	ldi	r25, 0x0F	; 15
   1a3ee:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
		bool bDesync = tmc2130_mode ^ eeprom_mode;
   1a3f2:	90 91 8c 06 	lds	r25, 0x068C	; 0x80068c <tmc2130_mode>
        if (eeprom_mode == SILENT_MODE_NORMAL)
   1a3f6:	81 11       	cpse	r24, r1
   1a3f8:	35 c0       	rjmp	.+106    	; 0x1a464 <SETTINGS_SILENT_MODE()+0x7e>
        {
            if (bDesync)
   1a3fa:	99 23       	and	r25, r25
   1a3fc:	11 f1       	breq	.+68     	; 0x1a442 <SETTINGS_SILENT_MODE()+0x5c>
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M915"), lcd_silent_mode_set);
   1a3fe:	8f ea       	ldi	r24, 0xAF	; 175
   1a400:	97 e4       	ldi	r25, 0x47	; 71
   1a402:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a406:	22 e0       	ldi	r18, 0x02	; 2
   1a408:	4f e0       	ldi	r20, 0x0F	; 15
   1a40a:	51 ef       	ldi	r21, 0xF1	; 241
   1a40c:	6f e1       	ldi	r22, 0x1F	; 31
   1a40e:	79 e8       	ldi	r23, 0x89	; 137
            }
			else
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_NORMAL), lcd_silent_mode_set);
   1a410:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            }
            MENU_ITEM_TOGGLE_P(_T(MSG_CRASHDETECT), eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET) ? _T(MSG_ON) : _T(MSG_OFF), crash_mode_switch);
   1a414:	89 e6       	ldi	r24, 0x69	; 105
   1a416:	9f e0       	ldi	r25, 0x0F	; 15
   1a418:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1a41c:	88 23       	and	r24, r24
   1a41e:	f9 f0       	breq	.+62     	; 0x1a45e <SETTINGS_SILENT_MODE()+0x78>
   1a420:	87 e1       	ldi	r24, 0x17	; 23
   1a422:	9c e5       	ldi	r25, 0x5C	; 92
   1a424:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a428:	ec 01       	movw	r28, r24
   1a42a:	80 e8       	ldi	r24, 0x80	; 128
   1a42c:	93 e4       	ldi	r25, 0x43	; 67
   1a42e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a432:	22 e0       	ldi	r18, 0x02	; 2
   1a434:	45 e1       	ldi	r20, 0x15	; 21
   1a436:	50 ee       	ldi	r21, 0xE0	; 224
   1a438:	be 01       	movw	r22, r28
            MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_HIGH_POWER), lcd_silent_mode_set);
            break; // (probably) not needed
        }
#endif // TMC2130
    }
}
   1a43a:	df 91       	pop	r29
   1a43c:	cf 91       	pop	r28
            }
			else
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_STEALTH), lcd_silent_mode_set);
            }
            MENU_ITEM_TOGGLE_P(_T(MSG_CRASHDETECT), NULL, lcd_crash_mode_info);
   1a43e:	0d 94 64 d3 	jmp	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M915"), lcd_silent_mode_set);
            }
			else
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_NORMAL), lcd_silent_mode_set);
   1a442:	8c e2       	ldi	r24, 0x2C	; 44
   1a444:	94 e4       	ldi	r25, 0x44	; 68
   1a446:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a44a:	ec 01       	movw	r28, r24
   1a44c:	8f ea       	ldi	r24, 0xAF	; 175
   1a44e:	97 e4       	ldi	r25, 0x47	; 71
   1a450:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a454:	22 e0       	ldi	r18, 0x02	; 2
   1a456:	4f e0       	ldi	r20, 0x0F	; 15
   1a458:	51 ef       	ldi	r21, 0xF1	; 241
   1a45a:	be 01       	movw	r22, r28
   1a45c:	d9 cf       	rjmp	.-78     	; 0x1a410 <SETTINGS_SILENT_MODE()+0x2a>
            }
            MENU_ITEM_TOGGLE_P(_T(MSG_CRASHDETECT), eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET) ? _T(MSG_ON) : _T(MSG_OFF), crash_mode_switch);
   1a45e:	81 e1       	ldi	r24, 0x11	; 17
   1a460:	9c e5       	ldi	r25, 0x5C	; 92
   1a462:	e0 cf       	rjmp	.-64     	; 0x1a424 <SETTINGS_SILENT_MODE()+0x3e>
        }
        else
        {
            if (bDesync)
   1a464:	98 17       	cp	r25, r24
   1a466:	a9 f0       	breq	.+42     	; 0x1a492 <SETTINGS_SILENT_MODE()+0xac>
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M914") , lcd_silent_mode_set);
   1a468:	8f ea       	ldi	r24, 0xAF	; 175
   1a46a:	97 e4       	ldi	r25, 0x47	; 71
   1a46c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a470:	22 e0       	ldi	r18, 0x02	; 2
   1a472:	4f e0       	ldi	r20, 0x0F	; 15
   1a474:	51 ef       	ldi	r21, 0xF1	; 241
   1a476:	6a e1       	ldi	r22, 0x1A	; 26
   1a478:	79 e8       	ldi	r23, 0x89	; 137
            }
			else
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_STEALTH), lcd_silent_mode_set);
   1a47a:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            }
            MENU_ITEM_TOGGLE_P(_T(MSG_CRASHDETECT), NULL, lcd_crash_mode_info);
   1a47e:	80 e8       	ldi	r24, 0x80	; 128
   1a480:	93 e4       	ldi	r25, 0x43	; 67
   1a482:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a486:	22 e0       	ldi	r18, 0x02	; 2
   1a488:	4b e1       	ldi	r20, 0x1B	; 27
   1a48a:	50 ee       	ldi	r21, 0xE0	; 224
   1a48c:	70 e0       	ldi	r23, 0x00	; 0
   1a48e:	60 e0       	ldi	r22, 0x00	; 0
   1a490:	d4 cf       	rjmp	.-88     	; 0x1a43a <SETTINGS_SILENT_MODE()+0x54>
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), PSTR("M914") , lcd_silent_mode_set);
            }
			else
            {
                MENU_ITEM_TOGGLE_P(_T(MSG_MODE), _T(MSG_STEALTH), lcd_silent_mode_set);
   1a492:	86 e7       	ldi	r24, 0x76	; 118
   1a494:	93 e4       	ldi	r25, 0x43	; 67
   1a496:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a49a:	ec 01       	movw	r28, r24
   1a49c:	8f ea       	ldi	r24, 0xAF	; 175
   1a49e:	97 e4       	ldi	r25, 0x47	; 71
   1a4a0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a4a4:	22 e0       	ldi	r18, 0x02	; 2
   1a4a6:	4f e0       	ldi	r20, 0x0F	; 15
   1a4a8:	51 ef       	ldi	r21, 0xF1	; 241
   1a4aa:	be 01       	movw	r22, r28
   1a4ac:	e6 cf       	rjmp	.-52     	; 0x1a47a <SETTINGS_SILENT_MODE()+0x94>

0001a4ae <menuitems_MMU_settings_common()>:
}

#endif //FILAMENT_SENSOR

static void menuitems_MMU_settings_common()
{
   1a4ae:	cf 93       	push	r28
   1a4b0:	df 93       	push	r29
    }
}

bool SpoolJoin::isSpoolJoinEnabled()
{
    if(eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN) == (uint8_t)EEPROM::Enabled) {
   1a4b2:	86 ed       	ldi	r24, 0xD6	; 214
   1a4b4:	9e e0       	ldi	r25, 0x0E	; 14
   1a4b6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1a4ba:	81 30       	cpi	r24, 0x01	; 1
   1a4bc:	c1 f5       	brne	.+112    	; 0x1a52e <menuitems_MMU_settings_common()+0x80>
    MENU_ITEM_TOGGLE_P(MSG_SPOOL_JOIN, SpoolJoin::spooljoin.isSpoolJoinEnabled() ? _T(MSG_ON) : _T(MSG_OFF), SpoolJoin::spooljoin.toggleSpoolJoin);
   1a4be:	87 e1       	ldi	r24, 0x17	; 23
   1a4c0:	9c e5       	ldi	r25, 0x5C	; 92
   1a4c2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a4c6:	22 e0       	ldi	r18, 0x02	; 2
   1a4c8:	46 eb       	ldi	r20, 0xB6	; 182
   1a4ca:	59 e3       	ldi	r21, 0x39	; 57
   1a4cc:	bc 01       	movw	r22, r24
   1a4ce:	8a ee       	ldi	r24, 0xEA	; 234
   1a4d0:	99 e6       	ldi	r25, 0x69	; 105
   1a4d2:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>

#ifdef MMU_HAS_CUTTER
    if (EEPROM_MMU_CUTTER_ENABLED_enabled == eeprom_read_byte((uint8_t *)EEPROM_MMU_CUTTER_ENABLED))
   1a4d6:	8e ec       	ldi	r24, 0xCE	; 206
   1a4d8:	9e e0       	ldi	r25, 0x0E	; 14
   1a4da:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1a4de:	81 30       	cpi	r24, 0x01	; 1
   1a4e0:	49 f5       	brne	.+82     	; 0x1a534 <menuitems_MMU_settings_common()+0x86>
    {
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_ON), lcd_cutter_enabled);
   1a4e2:	87 e1       	ldi	r24, 0x17	; 23
   1a4e4:	9c e5       	ldi	r25, 0x5C	; 92
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_ALWAYS), lcd_cutter_enabled);
    }
#endif
    else
    {
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_OFF), lcd_cutter_enabled);
   1a4e6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a4ea:	ec 01       	movw	r28, r24
   1a4ec:	8d e6       	ldi	r24, 0x6D	; 109
   1a4ee:	93 e4       	ldi	r25, 0x43	; 67
   1a4f0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a4f4:	22 e0       	ldi	r18, 0x02	; 2
   1a4f6:	44 e0       	ldi	r20, 0x04	; 4
   1a4f8:	59 e3       	ldi	r21, 0x39	; 57
   1a4fa:	be 01       	movw	r22, r28
   1a4fc:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
    }
#endif // MMU_HAS_CUTTER

#ifndef MMU_FORCE_STEALTH_MODE
    MENU_ITEM_TOGGLE_P(_T(MSG_MMU_MODE), eeprom_read_byte((uint8_t *)EEPROM_MMU_STEALTH) ? _T(MSG_STEALTH) : _T(MSG_NORMAL), lcd_mmu_mode_toggle);
   1a500:	89 ea       	ldi	r24, 0xA9	; 169
   1a502:	9d e0       	ldi	r25, 0x0D	; 13
   1a504:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1a508:	88 23       	and	r24, r24
   1a50a:	b9 f0       	breq	.+46     	; 0x1a53a <menuitems_MMU_settings_common()+0x8c>
   1a50c:	86 e7       	ldi	r24, 0x76	; 118
   1a50e:	93 e4       	ldi	r25, 0x43	; 67
   1a510:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a514:	ec 01       	movw	r28, r24
   1a516:	82 e6       	ldi	r24, 0x62	; 98
   1a518:	93 e4       	ldi	r25, 0x43	; 67
   1a51a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a51e:	22 e0       	ldi	r18, 0x02	; 2
   1a520:	47 eb       	ldi	r20, 0xB7	; 183
   1a522:	51 ed       	ldi	r21, 0xD1	; 209
   1a524:	be 01       	movw	r22, r28
#endif // MMU_FORCE_STEALTH_MODE
}
   1a526:	df 91       	pop	r29
   1a528:	cf 91       	pop	r28
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_OFF), lcd_cutter_enabled);
    }
#endif // MMU_HAS_CUTTER

#ifndef MMU_FORCE_STEALTH_MODE
    MENU_ITEM_TOGGLE_P(_T(MSG_MMU_MODE), eeprom_read_byte((uint8_t *)EEPROM_MMU_STEALTH) ? _T(MSG_STEALTH) : _T(MSG_NORMAL), lcd_mmu_mode_toggle);
   1a52a:	0d 94 64 d3 	jmp	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>

#endif //FILAMENT_SENSOR

static void menuitems_MMU_settings_common()
{
    MENU_ITEM_TOGGLE_P(MSG_SPOOL_JOIN, SpoolJoin::spooljoin.isSpoolJoinEnabled() ? _T(MSG_ON) : _T(MSG_OFF), SpoolJoin::spooljoin.toggleSpoolJoin);
   1a52e:	81 e1       	ldi	r24, 0x11	; 17
   1a530:	9c e5       	ldi	r25, 0x5C	; 92
   1a532:	c7 cf       	rjmp	.-114    	; 0x1a4c2 <menuitems_MMU_settings_common()+0x14>
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_ALWAYS), lcd_cutter_enabled);
    }
#endif
    else
    {
        MENU_ITEM_TOGGLE_P(_T(MSG_CUTTER), _T(MSG_OFF), lcd_cutter_enabled);
   1a534:	81 e1       	ldi	r24, 0x11	; 17
   1a536:	9c e5       	ldi	r25, 0x5C	; 92
   1a538:	d6 cf       	rjmp	.-84     	; 0x1a4e6 <menuitems_MMU_settings_common()+0x38>
    }
#endif // MMU_HAS_CUTTER

#ifndef MMU_FORCE_STEALTH_MODE
    MENU_ITEM_TOGGLE_P(_T(MSG_MMU_MODE), eeprom_read_byte((uint8_t *)EEPROM_MMU_STEALTH) ? _T(MSG_STEALTH) : _T(MSG_NORMAL), lcd_mmu_mode_toggle);
   1a53a:	8c e2       	ldi	r24, 0x2C	; 44
   1a53c:	94 e4       	ldi	r25, 0x44	; 68
   1a53e:	e8 cf       	rjmp	.-48     	; 0x1a510 <menuitems_MMU_settings_common()+0x62>

0001a540 <lcd_hw_setup_menu()>:
        uint8_t experimental_menu_visibility;
    } _menu_data_t;
    static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
    _menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);

    if (_md->status == 0 || lcd_draw_update)
   1a540:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   1a544:	88 23       	and	r24, r24
   1a546:	21 f0       	breq	.+8      	; 0x1a550 <lcd_hw_setup_menu()+0x10>
   1a548:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   1a54c:	88 23       	and	r24, r24
   1a54e:	51 f0       	breq	.+20     	; 0x1a564 <lcd_hw_setup_menu()+0x24>
    {
        _md->status = 1;
   1a550:	81 e0       	ldi	r24, 0x01	; 1
   1a552:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
        _md->experimental_menu_visibility = eeprom_init_default_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY, 0);
   1a556:	60 e0       	ldi	r22, 0x00	; 0
   1a558:	8a e2       	ldi	r24, 0x2A	; 42
   1a55a:	9d e0       	ldi	r25, 0x0D	; 13
   1a55c:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1a560:	80 93 aa 03 	sts	0x03AA, r24	; 0x8003aa <menu_data+0x1>
    }


    MENU_BEGIN();
   1a564:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a568:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1a56c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a570:	84 30       	cpi	r24, 0x04	; 4
   1a572:	08 f0       	brcs	.+2      	; 0x1a576 <lcd_hw_setup_menu()+0x36>
   1a574:	76 c0       	rjmp	.+236    	; 0x1a662 <lcd_hw_setup_menu()+0x122>
   1a576:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(bSettings?MSG_SETTINGS:MSG_BACK)); // i.e. default menu-item / menu-item after checking mismatch
   1a57a:	80 91 fc 03 	lds	r24, 0x03FC	; 0x8003fc <bSettings>
   1a57e:	81 11       	cpse	r24, r1
   1a580:	3f c0       	rjmp	.+126    	; 0x1a600 <lcd_hw_setup_menu()+0xc0>
   1a582:	8f e4       	ldi	r24, 0x4F	; 79
   1a584:	99 e4       	ldi	r25, 0x49	; 73
   1a586:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a58a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

    MENU_ITEM_SUBMENU_P(_T(MSG_STEEL_SHEETS), sheets_menu);
   1a58e:	80 ec       	ldi	r24, 0xC0	; 192
   1a590:	95 e4       	ldi	r25, 0x45	; 69
   1a592:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a596:	6d ee       	ldi	r22, 0xED	; 237
   1a598:	72 ee       	ldi	r23, 0xE2	; 226
   1a59a:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    SETTINGS_NOZZLE;
   1a59e:	80 91 eb 04 	lds	r24, 0x04EB	; 0x8004eb <oNozzleDiameter>
   1a5a2:	8c 33       	cpi	r24, 0x3C	; 60
   1a5a4:	09 f4       	brne	.+2      	; 0x1a5a8 <lcd_hw_setup_menu()+0x68>
   1a5a6:	49 c0       	rjmp	.+146    	; 0x1a63a <lcd_hw_setup_menu()+0xfa>
   1a5a8:	70 f5       	brcc	.+92     	; 0x1a606 <lcd_hw_setup_menu()+0xc6>
   1a5aa:	89 31       	cpi	r24, 0x19	; 25
   1a5ac:	d1 f1       	breq	.+116    	; 0x1a622 <lcd_hw_setup_menu()+0xe2>
   1a5ae:	88 32       	cpi	r24, 0x28	; 40
   1a5b0:	71 f1       	breq	.+92     	; 0x1a60e <lcd_hw_setup_menu()+0xce>
    MENU_ITEM_FUNCTION_P(_T(MSG_NOZZLE_CNG_MENU),nozzle_change);
   1a5b2:	83 e0       	ldi	r24, 0x03	; 3
   1a5b4:	94 e4       	ldi	r25, 0x44	; 68
   1a5b6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a5ba:	60 e9       	ldi	r22, 0x90	; 144
   1a5bc:	7f ec       	ldi	r23, 0xCF	; 207
   1a5be:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_ITEM_SUBMENU_P(_T(MSG_CHECKS), lcd_checking_menu);
   1a5c2:	8a ef       	ldi	r24, 0xFA	; 250
   1a5c4:	93 e4       	ldi	r25, 0x43	; 67
   1a5c6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a5ca:	68 ee       	ldi	r22, 0xE8	; 232
   1a5cc:	74 ed       	ldi	r23, 0xD4	; 212
   1a5ce:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    //! Fsensor Detection isn't ready for mmu yet it is temporarily disabled.
    //! @todo Don't forget to remove this as soon Fsensor Detection works with mmu
    if(!MMU2::mmu2.Enabled()) MENU_ITEM_FUNCTION_P(PSTR("Fsensor Detection"), lcd_detect_IRsensor);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)

    if (_md->experimental_menu_visibility)
   1a5d2:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   1a5d6:	88 23       	and	r24, r24
   1a5d8:	31 f0       	breq	.+12     	; 0x1a5e6 <lcd_hw_setup_menu()+0xa6>
    {
        MENU_ITEM_SUBMENU_P(PSTR("Experimental"), lcd_experimental_menu);////MSG_MENU_EXPERIMENTAL c=18
   1a5da:	66 ec       	ldi	r22, 0xC6	; 198
   1a5dc:	70 ef       	ldi	r23, 0xF0	; 240
   1a5de:	84 e2       	ldi	r24, 0x24	; 36
   1a5e0:	99 e8       	ldi	r25, 0x89	; 137
   1a5e2:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	//!
	//! This menu allows the user to en-/disable the SuperPINDA manualy
	MENU_ITEM_TOGGLE_P(_N("SuperPINDA"), eeprom_read_byte((uint8_t *)EEPROM_PINDA_TEMP_COMPENSATION) ? _T(MSG_YES) : _T(MSG_NO), lcd_pinda_temp_compensation_toggle);
#endif //PINDA_TEMP_COMP

    MENU_END();
   1a5e6:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
        _md->status = 1;
        _md->experimental_menu_visibility = eeprom_init_default_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY, 0);
    }


    MENU_BEGIN();
   1a5ea:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a5ee:	8f 5f       	subi	r24, 0xFF	; 255
   1a5f0:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1a5f4:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1a5f8:	8f 5f       	subi	r24, 0xFF	; 255
   1a5fa:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1a5fe:	b6 cf       	rjmp	.-148    	; 0x1a56c <lcd_hw_setup_menu()+0x2c>
    MENU_ITEM_BACK_P(_T(bSettings?MSG_SETTINGS:MSG_BACK)); // i.e. default menu-item / menu-item after checking mismatch
   1a600:	8a ee       	ldi	r24, 0xEA	; 234
   1a602:	97 e4       	ldi	r25, 0x47	; 71
   1a604:	c0 cf       	rjmp	.-128    	; 0x1a586 <lcd_hw_setup_menu()+0x46>

    MENU_ITEM_SUBMENU_P(_T(MSG_STEEL_SHEETS), sheets_menu);
    SETTINGS_NOZZLE;
   1a606:	80 35       	cpi	r24, 0x50	; 80
   1a608:	11 f1       	breq	.+68     	; 0x1a64e <lcd_hw_setup_menu()+0x10e>
   1a60a:	8f 3f       	cpi	r24, 0xFF	; 255
   1a60c:	91 f6       	brne	.-92     	; 0x1a5b2 <lcd_hw_setup_menu()+0x72>
   1a60e:	8a e6       	ldi	r24, 0x6A	; 106
   1a610:	96 e4       	ldi	r25, 0x46	; 70
   1a612:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a616:	22 e0       	ldi	r18, 0x02	; 2
   1a618:	44 ef       	ldi	r20, 0xF4	; 244
   1a61a:	50 ed       	ldi	r21, 0xD0	; 208
   1a61c:	6b e3       	ldi	r22, 0x3B	; 59
   1a61e:	79 e8       	ldi	r23, 0x89	; 137
   1a620:	09 c0       	rjmp	.+18     	; 0x1a634 <lcd_hw_setup_menu()+0xf4>
   1a622:	8a e6       	ldi	r24, 0x6A	; 106
   1a624:	96 e4       	ldi	r25, 0x46	; 70
   1a626:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a62a:	22 e0       	ldi	r18, 0x02	; 2
   1a62c:	44 ef       	ldi	r20, 0xF4	; 244
   1a62e:	50 ed       	ldi	r21, 0xD0	; 208
   1a630:	60 e4       	ldi	r22, 0x40	; 64
   1a632:	79 e8       	ldi	r23, 0x89	; 137
   1a634:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
   1a638:	bc cf       	rjmp	.-136    	; 0x1a5b2 <lcd_hw_setup_menu()+0x72>
   1a63a:	8a e6       	ldi	r24, 0x6A	; 106
   1a63c:	96 e4       	ldi	r25, 0x46	; 70
   1a63e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a642:	22 e0       	ldi	r18, 0x02	; 2
   1a644:	44 ef       	ldi	r20, 0xF4	; 244
   1a646:	50 ed       	ldi	r21, 0xD0	; 208
   1a648:	66 e3       	ldi	r22, 0x36	; 54
   1a64a:	79 e8       	ldi	r23, 0x89	; 137
   1a64c:	f3 cf       	rjmp	.-26     	; 0x1a634 <lcd_hw_setup_menu()+0xf4>
   1a64e:	8a e6       	ldi	r24, 0x6A	; 106
   1a650:	96 e4       	ldi	r25, 0x46	; 70
   1a652:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a656:	22 e0       	ldi	r18, 0x02	; 2
   1a658:	44 ef       	ldi	r20, 0xF4	; 244
   1a65a:	50 ed       	ldi	r21, 0xD0	; 208
   1a65c:	61 e3       	ldi	r22, 0x31	; 49
   1a65e:	79 e8       	ldi	r23, 0x89	; 137
   1a660:	e9 cf       	rjmp	.-46     	; 0x1a634 <lcd_hw_setup_menu()+0xf4>
	//! This menu allows the user to en-/disable the SuperPINDA manualy
	MENU_ITEM_TOGGLE_P(_N("SuperPINDA"), eeprom_read_byte((uint8_t *)EEPROM_PINDA_TEMP_COMPENSATION) ? _T(MSG_YES) : _T(MSG_NO), lcd_pinda_temp_compensation_toggle);
#endif //PINDA_TEMP_COMP

    MENU_END();
}
   1a662:	08 95       	ret

0001a664 <lcd_sdcard_stop()>:
    lcd_return_to_status();
}
#endif //THERMAL_MODEL

void lcd_sdcard_stop()
{
   1a664:	cf 93       	push	r28
    // Show static message
    lcd_puts_at_P(0, 0, _T(MSG_STOP_PRINT));
   1a666:	80 e0       	ldi	r24, 0x00	; 0
   1a668:	98 e4       	ldi	r25, 0x48	; 72
   1a66a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a66e:	ac 01       	movw	r20, r24
   1a670:	60 e0       	ldi	r22, 0x00	; 0
   1a672:	80 e0       	ldi	r24, 0x00	; 0
   1a674:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_putc_at(0, 1, '\n');
   1a678:	4a e0       	ldi	r20, 0x0A	; 10
   1a67a:	61 e0       	ldi	r22, 0x01	; 1
   1a67c:	80 e0       	ldi	r24, 0x00	; 0
   1a67e:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>

    MENU_BEGIN();
   1a682:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a686:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
    // Skip first two LCD rows used by static message
    if(menu_row == 0) menu_row = 2;
   1a68a:	c2 e0       	ldi	r28, 0x02	; 2
{
    // Show static message
    lcd_puts_at_P(0, 0, _T(MSG_STOP_PRINT));
    lcd_putc_at(0, 1, '\n');

    MENU_BEGIN();
   1a68c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a690:	84 30       	cpi	r24, 0x04	; 4
   1a692:	18 f5       	brcc	.+70     	; 0x1a6da <lcd_sdcard_stop()+0x76>
   1a694:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    // Skip first two LCD rows used by static message
    if(menu_row == 0) menu_row = 2;
   1a698:	81 11       	cpse	r24, r1
   1a69a:	02 c0       	rjmp	.+4      	; 0x1a6a0 <lcd_sdcard_stop()+0x3c>
   1a69c:	c0 93 12 05 	sts	0x0512, r28	; 0x800512 <menu_row>

    // Show No options first, the default selection
    MENU_ITEM_FUNCTION_P(_T(MSG_NO), lcd_return_to_status);
   1a6a0:	8b ef       	ldi	r24, 0xFB	; 251
   1a6a2:	97 e4       	ldi	r25, 0x47	; 71
   1a6a4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a6a8:	6c e2       	ldi	r22, 0x2C	; 44
   1a6aa:	7a e3       	ldi	r23, 0x3A	; 58
   1a6ac:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_ITEM_FUNCTION_P(_T(MSG_YES), lcd_print_stop);
   1a6b0:	85 ef       	ldi	r24, 0xF5	; 245
   1a6b2:	97 e4       	ldi	r25, 0x47	; 71
   1a6b4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a6b8:	62 ed       	ldi	r22, 0xD2	; 210
   1a6ba:	75 ef       	ldi	r23, 0xF5	; 245
   1a6bc:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_END();
   1a6c0:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
{
    // Show static message
    lcd_puts_at_P(0, 0, _T(MSG_STOP_PRINT));
    lcd_putc_at(0, 1, '\n');

    MENU_BEGIN();
   1a6c4:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a6c8:	8f 5f       	subi	r24, 0xFF	; 255
   1a6ca:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1a6ce:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1a6d2:	8f 5f       	subi	r24, 0xFF	; 255
   1a6d4:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1a6d8:	d9 cf       	rjmp	.-78     	; 0x1a68c <lcd_sdcard_stop()+0x28>

    // Show No options first, the default selection
    MENU_ITEM_FUNCTION_P(_T(MSG_NO), lcd_return_to_status);
    MENU_ITEM_FUNCTION_P(_T(MSG_YES), lcd_print_stop);
    MENU_END();
}
   1a6da:	cf 91       	pop	r28
   1a6dc:	08 95       	ret

0001a6de <lcd_fsensor_settings_menu()>:
            act = Filament_sensor::SensorActionOnError::_Continue;
    }
    fsensor.setActionOnError(act, true);
}

static void lcd_fsensor_settings_menu() {
   1a6de:	cf 93       	push	r28
   1a6e0:	df 93       	push	r29
    MENU_BEGIN();
   1a6e2:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a6e6:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1a6ea:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a6ee:	84 30       	cpi	r24, 0x04	; 4
   1a6f0:	08 f0       	brcs	.+2      	; 0x1a6f4 <lcd_fsensor_settings_menu()+0x16>
   1a6f2:	bd c0       	rjmp	.+378    	; 0x1a86e <lcd_fsensor_settings_menu()+0x190>
   1a6f4:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_BACK));
   1a6f8:	8f e4       	ldi	r24, 0x4F	; 79
   1a6fa:	99 e4       	ldi	r25, 0x49	; 73
   1a6fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a700:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

    MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR), fsensor.isEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_enabled_set);
   1a704:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1a708:	88 23       	and	r24, r24
   1a70a:	09 f4       	brne	.+2      	; 0x1a70e <lcd_fsensor_settings_menu()+0x30>
   1a70c:	4e c0       	rjmp	.+156    	; 0x1a7aa <lcd_fsensor_settings_menu()+0xcc>
   1a70e:	87 e1       	ldi	r24, 0x17	; 23
   1a710:	9c e5       	ldi	r25, 0x5C	; 92
   1a712:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a716:	ec 01       	movw	r28, r24
   1a718:	8b e4       	ldi	r24, 0x4B	; 75
   1a71a:	97 e4       	ldi	r25, 0x47	; 71
   1a71c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a720:	22 e0       	ldi	r18, 0x02	; 2
   1a722:	44 e9       	ldi	r20, 0x94	; 148
   1a724:	51 ed       	ldi	r21, 0xD1	; 209
   1a726:	be 01       	movw	r22, r28
   1a728:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
   1a72c:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>

    if (fsensor.isEnabled()) {
   1a730:	88 23       	and	r24, r24
   1a732:	09 f4       	brne	.+2      	; 0x1a736 <lcd_fsensor_settings_menu()+0x58>
   1a734:	8c c0       	rjmp	.+280    	; 0x1a84e <lcd_fsensor_settings_menu()+0x170>
        if (fsensor.isError()) {
   1a736:	83 30       	cpi	r24, 0x03	; 3
   1a738:	d9 f5       	brne	.+118    	; 0x1a7b0 <lcd_fsensor_settings_menu()+0xd2>
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_RUNOUT), _T(MSG_NA), fsensor_reinit);
   1a73a:	8a e8       	ldi	r24, 0x8A	; 138
   1a73c:	97 e4       	ldi	r25, 0x47	; 71
   1a73e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a742:	ec 01       	movw	r28, r24
   1a744:	86 e5       	ldi	r24, 0x56	; 86
   1a746:	93 e4       	ldi	r25, 0x43	; 67
   1a748:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a74c:	22 e0       	ldi	r18, 0x02	; 2
   1a74e:	4a ee       	ldi	r20, 0xEA	; 234
   1a750:	5f ec       	ldi	r21, 0xCF	; 207
   1a752:	be 01       	movw	r22, r28
   1a754:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), _T(MSG_NA), fsensor_reinit);
   1a758:	8a e8       	ldi	r24, 0x8A	; 138
   1a75a:	97 e4       	ldi	r25, 0x47	; 71
   1a75c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a760:	ec 01       	movw	r28, r24
   1a762:	88 e4       	ldi	r24, 0x48	; 72
   1a764:	93 e4       	ldi	r25, 0x43	; 67
   1a766:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a76a:	22 e0       	ldi	r18, 0x02	; 2
   1a76c:	4a ee       	ldi	r20, 0xEA	; 234
   1a76e:	5f ec       	ldi	r21, 0xCF	; 207
   1a770:	be 01       	movw	r22, r28
   1a772:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), _T(MSG_NA), fsensor_reinit);
   1a776:	8a e8       	ldi	r24, 0x8A	; 138
   1a778:	97 e4       	ldi	r25, 0x47	; 71
   1a77a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a77e:	ec 01       	movw	r28, r24
   1a780:	88 e3       	ldi	r24, 0x38	; 56
   1a782:	93 e4       	ldi	r25, 0x43	; 67
   1a784:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a788:	22 e0       	ldi	r18, 0x02	; 2
   1a78a:	4a ee       	ldi	r20, 0xEA	; 234
   1a78c:	5f ec       	ldi	r21, 0xCF	; 207
        }
        else {
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_RUNOUT), fsensor.getRunoutEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_runout_set);
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), fsensor.getAutoLoadEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_autoload_set);
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), fsensor.getJamDetectionEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_jam_detection_set);
   1a78e:	be 01       	movw	r22, r28
   1a790:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
        }

        switch(fsensor.getActionOnError()) {
   1a794:	80 91 b2 17 	lds	r24, 0x17B2	; 0x8017b2 <fsensor+0x8>
   1a798:	88 23       	and	r24, r24
   1a79a:	09 f4       	brne	.+2      	; 0x1a79e <lcd_fsensor_settings_menu()+0xc0>
   1a79c:	49 c0       	rjmp	.+146    	; 0x1a830 <lcd_fsensor_settings_menu()+0x152>
   1a79e:	81 30       	cpi	r24, 0x01	; 1
   1a7a0:	09 f4       	brne	.+2      	; 0x1a7a4 <lcd_fsensor_settings_menu()+0xc6>
   1a7a2:	62 c0       	rjmp	.+196    	; 0x1a868 <lcd_fsensor_settings_menu()+0x18a>
                break;
            case Filament_sensor::SensorActionOnError::_Pause:
                MENU_ITEM_TOGGLE_P(_T(MSG_FS_ACTION), _T(MSG_PAUSE), lcd_fsensor_actionNA_set);
                break;
            default:
                lcd_fsensor_actionNA_set();
   1a7a4:	0e 94 83 d0 	call	0x1a106	; 0x1a106 <lcd_fsensor_actionNA_set()>
   1a7a8:	52 c0       	rjmp	.+164    	; 0x1a84e <lcd_fsensor_settings_menu()+0x170>

static void lcd_fsensor_settings_menu() {
    MENU_BEGIN();
    MENU_ITEM_BACK_P(_T(MSG_BACK));

    MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR), fsensor.isEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_enabled_set);
   1a7aa:	81 e1       	ldi	r24, 0x11	; 17
   1a7ac:	9c e5       	ldi	r25, 0x5C	; 92
   1a7ae:	b1 cf       	rjmp	.-158    	; 0x1a712 <lcd_fsensor_settings_menu()+0x34>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), _T(MSG_NA), fsensor_reinit);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
        }
        else {
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_RUNOUT), fsensor.getRunoutEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_runout_set);
   1a7b0:	80 91 ac 17 	lds	r24, 0x17AC	; 0x8017ac <fsensor+0x2>
   1a7b4:	88 23       	and	r24, r24
   1a7b6:	99 f1       	breq	.+102    	; 0x1a81e <lcd_fsensor_settings_menu()+0x140>
   1a7b8:	87 e1       	ldi	r24, 0x17	; 23
   1a7ba:	9c e5       	ldi	r25, 0x5C	; 92
   1a7bc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a7c0:	ec 01       	movw	r28, r24
   1a7c2:	86 e5       	ldi	r24, 0x56	; 86
   1a7c4:	93 e4       	ldi	r25, 0x43	; 67
   1a7c6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a7ca:	22 e0       	ldi	r18, 0x02	; 2
   1a7cc:	49 e9       	ldi	r20, 0x99	; 153
   1a7ce:	50 ed       	ldi	r21, 0xD0	; 208
   1a7d0:	be 01       	movw	r22, r28
   1a7d2:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), fsensor.getAutoLoadEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_autoload_set);
   1a7d6:	80 91 ab 17 	lds	r24, 0x17AB	; 0x8017ab <fsensor+0x1>
   1a7da:	88 23       	and	r24, r24
   1a7dc:	19 f1       	breq	.+70     	; 0x1a824 <lcd_fsensor_settings_menu()+0x146>
   1a7de:	87 e1       	ldi	r24, 0x17	; 23
   1a7e0:	9c e5       	ldi	r25, 0x5C	; 92
   1a7e2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a7e6:	ec 01       	movw	r28, r24
   1a7e8:	88 e4       	ldi	r24, 0x48	; 72
   1a7ea:	93 e4       	ldi	r25, 0x43	; 67
   1a7ec:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a7f0:	22 e0       	ldi	r18, 0x02	; 2
   1a7f2:	4f e8       	ldi	r20, 0x8F	; 143
   1a7f4:	50 ed       	ldi	r21, 0xD0	; 208
   1a7f6:	be 01       	movw	r22, r28
   1a7f8:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), fsensor.getJamDetectionEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_jam_detection_set);
   1a7fc:	80 91 b8 17 	lds	r24, 0x17B8	; 0x8017b8 <fsensor+0xe>
   1a800:	88 23       	and	r24, r24
   1a802:	99 f0       	breq	.+38     	; 0x1a82a <lcd_fsensor_settings_menu()+0x14c>
   1a804:	87 e1       	ldi	r24, 0x17	; 23
   1a806:	9c e5       	ldi	r25, 0x5C	; 92
   1a808:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a80c:	ec 01       	movw	r28, r24
   1a80e:	88 e3       	ldi	r24, 0x38	; 56
   1a810:	93 e4       	ldi	r25, 0x43	; 67
   1a812:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a816:	22 e0       	ldi	r18, 0x02	; 2
   1a818:	4b e9       	ldi	r20, 0x9B	; 155
   1a81a:	51 ed       	ldi	r21, 0xD1	; 209
   1a81c:	b8 cf       	rjmp	.-144    	; 0x1a78e <lcd_fsensor_settings_menu()+0xb0>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), _T(MSG_NA), fsensor_reinit);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
        }
        else {
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_RUNOUT), fsensor.getRunoutEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_runout_set);
   1a81e:	81 e1       	ldi	r24, 0x11	; 17
   1a820:	9c e5       	ldi	r25, 0x5C	; 92
   1a822:	cc cf       	rjmp	.-104    	; 0x1a7bc <lcd_fsensor_settings_menu()+0xde>
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_AUTOLOAD), fsensor.getAutoLoadEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_autoload_set);
   1a824:	81 e1       	ldi	r24, 0x11	; 17
   1a826:	9c e5       	ldi	r25, 0x5C	; 92
   1a828:	dc cf       	rjmp	.-72     	; 0x1a7e2 <lcd_fsensor_settings_menu()+0x104>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            MENU_ITEM_TOGGLE_P(_T(MSG_FSENSOR_JAM_DETECTION), fsensor.getJamDetectionEnabled() ? _T(MSG_ON) : _T(MSG_OFF), lcd_fsensor_jam_detection_set);
   1a82a:	81 e1       	ldi	r24, 0x11	; 17
   1a82c:	9c e5       	ldi	r25, 0x5C	; 92
   1a82e:	ec cf       	rjmp	.-40     	; 0x1a808 <lcd_fsensor_settings_menu()+0x12a>
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
        }

        switch(fsensor.getActionOnError()) {
            case Filament_sensor::SensorActionOnError::_Continue:
                MENU_ITEM_TOGGLE_P(_T(MSG_FS_ACTION), _T(MSG_CONTINUE_SHORT), lcd_fsensor_actionNA_set);
   1a830:	80 e3       	ldi	r24, 0x30	; 48
   1a832:	93 e4       	ldi	r25, 0x43	; 67
                break;
            case Filament_sensor::SensorActionOnError::_Pause:
                MENU_ITEM_TOGGLE_P(_T(MSG_FS_ACTION), _T(MSG_PAUSE), lcd_fsensor_actionNA_set);
   1a834:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a838:	ec 01       	movw	r28, r24
   1a83a:	84 e2       	ldi	r24, 0x24	; 36
   1a83c:	93 e4       	ldi	r25, 0x43	; 67
   1a83e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a842:	22 e0       	ldi	r18, 0x02	; 2
   1a844:	43 e8       	ldi	r20, 0x83	; 131
   1a846:	50 ed       	ldi	r21, 0xD0	; 208
   1a848:	be 01       	movw	r22, r28
   1a84a:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
            default:
                lcd_fsensor_actionNA_set();
        }
    }

    MENU_END();
   1a84e:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    }
    fsensor.setActionOnError(act, true);
}

static void lcd_fsensor_settings_menu() {
    MENU_BEGIN();
   1a852:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a856:	8f 5f       	subi	r24, 0xFF	; 255
   1a858:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1a85c:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1a860:	8f 5f       	subi	r24, 0xFF	; 255
   1a862:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1a866:	41 cf       	rjmp	.-382    	; 0x1a6ea <lcd_fsensor_settings_menu()+0xc>
        switch(fsensor.getActionOnError()) {
            case Filament_sensor::SensorActionOnError::_Continue:
                MENU_ITEM_TOGGLE_P(_T(MSG_FS_ACTION), _T(MSG_CONTINUE_SHORT), lcd_fsensor_actionNA_set);
                break;
            case Filament_sensor::SensorActionOnError::_Pause:
                MENU_ITEM_TOGGLE_P(_T(MSG_FS_ACTION), _T(MSG_PAUSE), lcd_fsensor_actionNA_set);
   1a868:	8c e1       	ldi	r24, 0x1C	; 28
   1a86a:	93 e4       	ldi	r25, 0x43	; 67
   1a86c:	e3 cf       	rjmp	.-58     	; 0x1a834 <lcd_fsensor_settings_menu()+0x156>
                lcd_fsensor_actionNA_set();
        }
    }

    MENU_END();
}
   1a86e:	df 91       	pop	r29
   1a870:	cf 91       	pop	r28
   1a872:	08 95       	ret

0001a874 <lcd_sheet_menu()>:
    lcd_first_layer_calibration_reset();
}

static void lcd_sheet_menu()
{
    MENU_BEGIN();
   1a874:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a878:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1a87c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a880:	84 30       	cpi	r24, 0x04	; 4
   1a882:	08 f0       	brcs	.+2      	; 0x1a886 <lcd_sheet_menu()+0x12>
   1a884:	3f c0       	rjmp	.+126    	; 0x1a904 <lcd_sheet_menu()+0x90>
   1a886:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_STEEL_SHEETS));
   1a88a:	80 ec       	ldi	r24, 0xC0	; 192
   1a88c:	95 e4       	ldi	r25, 0x45	; 69
   1a88e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a892:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

	if(eeprom_is_sheet_initialized(selected_sheet)){
   1a896:	80 91 e2 03 	lds	r24, 0x03E2	; 0x8003e2 <selected_sheet>
   1a89a:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   1a89e:	88 23       	and	r24, r24
   1a8a0:	41 f0       	breq	.+16     	; 0x1a8b2 <lcd_sheet_menu()+0x3e>
	    MENU_ITEM_SUBMENU_P(_T(MSG_SELECT), change_sheet);
   1a8a2:	87 eb       	ldi	r24, 0xB7	; 183
   1a8a4:	95 e4       	ldi	r25, 0x45	; 69
   1a8a6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a8aa:	67 eb       	ldi	r22, 0xB7	; 183
   1a8ac:	71 ee       	ldi	r23, 0xE1	; 225
   1a8ae:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	}

    if (lcd_commands_type == LcdCommands::Idle)
   1a8b2:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1a8b6:	81 11       	cpse	r24, r1
   1a8b8:	08 c0       	rjmp	.+16     	; 0x1a8ca <lcd_sheet_menu()+0x56>
    {
        MENU_ITEM_SUBMENU_P(_T(MSG_V2_CALIBRATION), activate_calibrate_sheet);
   1a8ba:	84 ea       	ldi	r24, 0xA4	; 164
   1a8bc:	95 e4       	ldi	r25, 0x45	; 69
   1a8be:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a8c2:	6e e4       	ldi	r22, 0x4E	; 78
   1a8c4:	70 ef       	ldi	r23, 0xF0	; 240
   1a8c6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
    MENU_ITEM_SUBMENU_P(_T(MSG_RENAME), lcd_rename_sheet_menu);
   1a8ca:	8b e9       	ldi	r24, 0x9B	; 155
   1a8cc:	95 e4       	ldi	r25, 0x45	; 69
   1a8ce:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a8d2:	64 e7       	ldi	r22, 0x74	; 116
   1a8d4:	7c ed       	ldi	r23, 0xDC	; 220
   1a8d6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_reset_sheet);
   1a8da:	83 e9       	ldi	r24, 0x93	; 147
   1a8dc:	95 e4       	ldi	r25, 0x45	; 69
   1a8de:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a8e2:	60 e3       	ldi	r22, 0x30	; 48
   1a8e4:	7f ee       	ldi	r23, 0xEF	; 239
   1a8e6:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>

    MENU_END();
   1a8ea:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    lcd_first_layer_calibration_reset();
}

static void lcd_sheet_menu()
{
    MENU_BEGIN();
   1a8ee:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a8f2:	8f 5f       	subi	r24, 0xFF	; 255
   1a8f4:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1a8f8:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1a8fc:	8f 5f       	subi	r24, 0xFF	; 255
   1a8fe:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1a902:	bc cf       	rjmp	.-136    	; 0x1a87c <lcd_sheet_menu()+0x8>
    }
    MENU_ITEM_SUBMENU_P(_T(MSG_RENAME), lcd_rename_sheet_menu);
	MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_reset_sheet);

    MENU_END();
}
   1a904:	08 95       	ret

0001a906 <void select_sheet_menu<(unsigned char)7>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a906:	87 e0       	ldi	r24, 0x07	; 7
   1a908:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a90c:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a910 <void select_sheet_menu<(unsigned char)6>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a910:	86 e0       	ldi	r24, 0x06	; 6
   1a912:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a916:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a91a <void select_sheet_menu<(unsigned char)5>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a91a:	85 e0       	ldi	r24, 0x05	; 5
   1a91c:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a920:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a924 <void select_sheet_menu<(unsigned char)4>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a924:	84 e0       	ldi	r24, 0x04	; 4
   1a926:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a92a:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a92e <void select_sheet_menu<(unsigned char)3>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a92e:	83 e0       	ldi	r24, 0x03	; 3
   1a930:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a934:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a938 <void select_sheet_menu<(unsigned char)2>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a938:	82 e0       	ldi	r24, 0x02	; 2
   1a93a:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a93e:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a942 <void select_sheet_menu<(unsigned char)1>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a942:	81 e0       	ldi	r24, 0x01	; 1
   1a944:	80 93 e2 03 	sts	0x03E2, r24	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a948:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a94c <void select_sheet_menu<(unsigned char)0>()>:
}

template <uint8_t number>
static void select_sheet_menu()
{
    selected_sheet = number;
   1a94c:	10 92 e2 03 	sts	0x03E2, r1	; 0x8003e2 <selected_sheet>
    lcd_sheet_menu();
   1a950:	0c 94 3a d4 	jmp	0x1a874	; 0x1a874 <lcd_sheet_menu()>

0001a954 <lcd_move_menu_axis()>:
	menu_back_if_clicked();
}

void lcd_move_menu_axis()
{
	MENU_BEGIN();
   1a954:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a958:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1a95c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a960:	84 30       	cpi	r24, 0x04	; 4
   1a962:	a8 f5       	brcc	.+106    	; 0x1a9ce <lcd_move_menu_axis()+0x7a>
   1a964:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
   1a968:	8a ee       	ldi	r24, 0xEA	; 234
   1a96a:	97 e4       	ldi	r25, 0x47	; 71
   1a96c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a970:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_X), lcd_move_x);
   1a974:	8f e4       	ldi	r24, 0x4F	; 79
   1a976:	9a e3       	ldi	r25, 0x3A	; 58
   1a978:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a97c:	62 e3       	ldi	r22, 0x32	; 50
   1a97e:	79 e3       	ldi	r23, 0x39	; 57
   1a980:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_Y), lcd_move_y);
   1a984:	86 e4       	ldi	r24, 0x46	; 70
   1a986:	9a e3       	ldi	r25, 0x3A	; 58
   1a988:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a98c:	66 e8       	ldi	r22, 0x86	; 134
   1a98e:	7a e3       	ldi	r23, 0x3A	; 58
   1a990:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_Z), lcd_move_z);
   1a994:	8d e3       	ldi	r24, 0x3D	; 61
   1a996:	9a e3       	ldi	r25, 0x3A	; 58
   1a998:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a99c:	6e ed       	ldi	r22, 0xDE	; 222
   1a99e:	79 e3       	ldi	r23, 0x39	; 57
   1a9a0:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_EXTRUDER), lcd_move_e);
   1a9a4:	82 e3       	ldi	r24, 0x32	; 50
   1a9a6:	9a e3       	ldi	r25, 0x3A	; 58
   1a9a8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a9ac:	68 ec       	ldi	r22, 0xC8	; 200
   1a9ae:	7a e3       	ldi	r23, 0x3A	; 58
   1a9b0:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_END();
   1a9b4:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
	menu_back_if_clicked();
}

void lcd_move_menu_axis()
{
	MENU_BEGIN();
   1a9b8:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a9bc:	8f 5f       	subi	r24, 0xFF	; 255
   1a9be:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1a9c2:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1a9c6:	8f 5f       	subi	r24, 0xFF	; 255
   1a9c8:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1a9cc:	c7 cf       	rjmp	.-114    	; 0x1a95c <lcd_move_menu_axis()+0x8>
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_X), lcd_move_x);
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_Y), lcd_move_y);
	MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_Z), lcd_move_z);
	MENU_ITEM_SUBMENU_P(_T(MSG_EXTRUDER), lcd_move_e);
	MENU_END();
}
   1a9ce:	08 95       	ret

0001a9d0 <lcd_checking_menu()>:
    }
}

static void lcd_checking_menu(void)
{
    MENU_BEGIN();
   1a9d0:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1a9d4:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1a9d8:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1a9dc:	84 30       	cpi	r24, 0x04	; 4
   1a9de:	d8 f5       	brcc	.+118    	; 0x1aa56 <lcd_checking_menu()+0x86>
   1a9e0:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_HW_SETUP));
   1a9e4:	8e e6       	ldi	r24, 0x6E	; 110
   1a9e6:	94 e4       	ldi	r25, 0x44	; 68
   1a9e8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a9ec:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    settings_check_toggle(&oCheckMode, _T(MSG_NOZZLE), lcd_check_mode_set);
   1a9f0:	84 eb       	ldi	r24, 0xB4	; 180
   1a9f2:	93 e4       	ldi	r25, 0x43	; 67
   1a9f4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1a9f8:	49 e7       	ldi	r20, 0x79	; 121
   1a9fa:	50 ed       	ldi	r21, 0xD0	; 208
   1a9fc:	bc 01       	movw	r22, r24
   1a9fe:	80 91 ec 04 	lds	r24, 0x04EC	; 0x8004ec <oCheckMode>
   1aa02:	0e 94 bb d1 	call	0x1a376	; 0x1a376 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]>
    settings_check_toggle(&oCheckModel, _T(MSG_MODEL), lcd_check_model_set);
   1aa06:	8c ea       	ldi	r24, 0xAC	; 172
   1aa08:	93 e4       	ldi	r25, 0x43	; 67
   1aa0a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aa0e:	4f e6       	ldi	r20, 0x6F	; 111
   1aa10:	50 ed       	ldi	r21, 0xD0	; 208
   1aa12:	bc 01       	movw	r22, r24
   1aa14:	80 91 ea 04 	lds	r24, 0x04EA	; 0x8004ea <oCheckModel>
   1aa18:	0e 94 bb d1 	call	0x1a376	; 0x1a376 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]>
    settings_check_toggle(&oCheckVersion, MSG_FIRMWARE, lcd_check_version_set);
   1aa1c:	45 e6       	ldi	r20, 0x65	; 101
   1aa1e:	50 ed       	ldi	r21, 0xD0	; 208
   1aa20:	64 ef       	ldi	r22, 0xF4	; 244
   1aa22:	79 e6       	ldi	r23, 0x69	; 105
   1aa24:	80 91 e9 04 	lds	r24, 0x04E9	; 0x8004e9 <oCheckVersion>
   1aa28:	0e 94 bb d1 	call	0x1a376	; 0x1a376 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]>
    settings_check_toggle(&oCheckFilament, MSG_FILAMENT, lcd_check_filament_set);
   1aa2c:	4b e5       	ldi	r20, 0x5B	; 91
   1aa2e:	50 ed       	ldi	r21, 0xD0	; 208
   1aa30:	6a e1       	ldi	r22, 0x1A	; 26
   1aa32:	7d e6       	ldi	r23, 0x6D	; 109
   1aa34:	80 91 e7 04 	lds	r24, 0x04E7	; 0x8004e7 <oCheckFilament>
   1aa38:	0e 94 bb d1 	call	0x1a376	; 0x1a376 <settings_check_toggle(ClCheckMode*, char const*, void (*)()) [clone .isra.3]>
    MENU_END();
   1aa3c:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    }
}

static void lcd_checking_menu(void)
{
    MENU_BEGIN();
   1aa40:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1aa44:	8f 5f       	subi	r24, 0xFF	; 255
   1aa46:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1aa4a:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1aa4e:	8f 5f       	subi	r24, 0xFF	; 255
   1aa50:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1aa54:	c1 cf       	rjmp	.-126    	; 0x1a9d8 <lcd_checking_menu()+0x8>
    settings_check_toggle(&oCheckMode, _T(MSG_NOZZLE), lcd_check_mode_set);
    settings_check_toggle(&oCheckModel, _T(MSG_MODEL), lcd_check_model_set);
    settings_check_toggle(&oCheckVersion, MSG_FIRMWARE, lcd_check_version_set);
    settings_check_toggle(&oCheckFilament, MSG_FILAMENT, lcd_check_filament_set);
    MENU_END();
}
   1aa56:	08 95       	ret

0001aa58 <lcd_reprint_from_eeprom()>:
        value = !value;
    eeprom_update_byte_notify((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT, value);
}

void lcd_reprint_from_eeprom() {
    restore_file_from_sd();
   1aa58:	0e 94 6a 88 	call	0x110d4	; 0x110d4 <restore_file_from_sd()>

    // M24: Start/resume SD print
    enquecommand_P(MSG_M24);
   1aa5c:	61 e0       	ldi	r22, 0x01	; 1
   1aa5e:	8d e4       	ldi	r24, 0x4D	; 77
   1aa60:	90 e7       	ldi	r25, 0x70	; 112
   1aa62:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    lcd_return_to_status();
   1aa66:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

0001aa6a <menu_lcd_longpress_func()>:
{
	return lcd_status_message_level;
}

void menu_lcd_longpress_func(void)
{
   1aa6a:	cf 93       	push	r28
   1aa6c:	df 93       	push	r29
    // Wake up the LCD backlight and,
    // start LCD inactivity timer
    lcd_timeoutToStatus.start();
   1aa6e:	8c ed       	ldi	r24, 0xDC	; 220
   1aa70:	93 e0       	ldi	r25, 0x03	; 3
   1aa72:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
    if (homing_flag || mesh_bed_leveling_flag || menu_menu == lcd_babystep_z || menu_menu == lcd_move_z || menu_is_any_block() || Stopped)
   1aa76:	80 91 a7 0d 	lds	r24, 0x0DA7	; 0x800da7 <homing_flag>
   1aa7a:	81 11       	cpse	r24, r1
   1aa7c:	18 c0       	rjmp	.+48     	; 0x1aaae <menu_lcd_longpress_func()+0x44>
   1aa7e:	80 91 a8 0d 	lds	r24, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   1aa82:	81 11       	cpse	r24, r1
   1aa84:	14 c0       	rjmp	.+40     	; 0x1aaae <menu_lcd_longpress_func()+0x44>
   1aa86:	c0 91 13 04 	lds	r28, 0x0413	; 0x800413 <menu_menu>
   1aa8a:	d0 91 14 04 	lds	r29, 0x0414	; 0x800414 <menu_menu+0x1>
   1aa8e:	8a e3       	ldi	r24, 0x3A	; 58
   1aa90:	c8 38       	cpi	r28, 0x88	; 136
   1aa92:	d8 07       	cpc	r29, r24
   1aa94:	61 f0       	breq	.+24     	; 0x1aaae <menu_lcd_longpress_func()+0x44>
   1aa96:	89 e3       	ldi	r24, 0x39	; 57
   1aa98:	ce 3d       	cpi	r28, 0xDE	; 222
   1aa9a:	d8 07       	cpc	r29, r24
   1aa9c:	41 f0       	breq	.+16     	; 0x1aaae <menu_lcd_longpress_func()+0x44>
   1aa9e:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   1aaa2:	81 11       	cpse	r24, r1
   1aaa4:	04 c0       	rjmp	.+8      	; 0x1aaae <menu_lcd_longpress_func()+0x44>
   1aaa6:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   1aaaa:	88 23       	and	r24, r24
   1aaac:	31 f0       	breq	.+12     	; 0x1aaba <menu_lcd_longpress_func()+0x50>
    {
        // disable longpress during re-entry, while homing, calibration or if a serious error
        lcd_draw_update = 2;
   1aaae:	82 e0       	ldi	r24, 0x02	; 2
   1aab0:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
            menu_submenu(lcd_move_z);
        } else {
            lcd_quick_feedback();
        }
    }
}
   1aab4:	df 91       	pop	r29
   1aab6:	cf 91       	pop	r28
   1aab8:	08 95       	ret
    {
        // disable longpress during re-entry, while homing, calibration or if a serious error
        lcd_draw_update = 2;
        return;
    }
    if (menu_menu == lcd_hw_setup_menu)
   1aaba:	82 ed       	ldi	r24, 0xD2	; 210
   1aabc:	c0 3a       	cpi	r28, 0xA0	; 160
   1aabe:	d8 07       	cpc	r29, r24
   1aac0:	49 f4       	brne	.+18     	; 0x1aad4 <menu_lcd_longpress_func()+0x6a>
    {
        // only toggle the experimental menu visibility flag
        lcd_draw_update = 2;
   1aac2:	82 e0       	ldi	r24, 0x02	; 2
   1aac4:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
        eeprom_toggle((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY);
   1aac8:	8a e2       	ldi	r24, 0x2A	; 42
   1aaca:	9d e0       	ldi	r25, 0x0D	; 13
            menu_submenu(lcd_move_z);
        } else {
            lcd_quick_feedback();
        }
    }
}
   1aacc:	df 91       	pop	r29
   1aace:	cf 91       	pop	r28
    }
    if (menu_menu == lcd_hw_setup_menu)
    {
        // only toggle the experimental menu visibility flag
        lcd_draw_update = 2;
        eeprom_toggle((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY);
   1aad0:	0c 94 bb 75 	jmp	0xeb76	; 0xeb76 <eeprom_toggle(unsigned char*)>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   1aad4:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   1aad8:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
        return;
    }

    // explicitely listed menus which are allowed to rise the move-z or live-adj-z functions
    // The lists are not the same for both functions, so first decide which function is to be performed
    if (blocks_queued() || printJobOngoing()){ // long press as live-adj-z
   1aadc:	98 13       	cpse	r25, r24
   1aade:	04 c0       	rjmp	.+8      	; 0x1aae8 <menu_lcd_longpress_func()+0x7e>
   1aae0:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   1aae4:	88 23       	and	r24, r24
   1aae6:	61 f0       	breq	.+24     	; 0x1ab00 <menu_lcd_longpress_func()+0x96>
        if ( babystep_allowed_strict()
   1aae8:	0e 94 52 67 	call	0xcea4	; 0xcea4 <babystep_allowed_strict()>
        && (menu_menu == lcd_status_screen // and in listed menus...
   1aaec:	81 11       	cpse	r24, r1
   1aaee:	10 c0       	rjmp	.+32     	; 0x1ab10 <menu_lcd_longpress_func()+0xa6>
	Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
}

void lcd_quick_feedback(void)
{
  lcd_draw_update = 2;
   1aaf0:	82 e0       	ldi	r24, 0x02	; 2
   1aaf2:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
	}
    return clicked;
}

void lcd_beeper_quick_feedback(void) {
	Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
   1aaf6:	80 e0       	ldi	r24, 0x00	; 0
            menu_submenu(lcd_move_z);
        } else {
            lcd_quick_feedback();
        }
    }
}
   1aaf8:	df 91       	pop	r29
   1aafa:	cf 91       	pop	r28
   1aafc:	0d 94 13 4f 	jmp	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
            menu_submenu(lcd_babystep_z);
        } else {
            lcd_quick_feedback();
        }
    } else { // long press as move-z
        if (menu_menu == lcd_status_screen
   1ab00:	8a e3       	ldi	r24, 0x3A	; 58
   1ab02:	c6 32       	cpi	r28, 0x26	; 38
   1ab04:	d8 07       	cpc	r29, r24
   1ab06:	e1 f4       	brne	.+56     	; 0x1ab40 <menu_lcd_longpress_func()+0xd6>
#if (LANG_MODE != 0)
        || menu_menu == lcd_language
#endif
        || menu_menu == lcd_support_menu
        ){
            menu_submenu(lcd_move_z);
   1ab08:	60 e0       	ldi	r22, 0x00	; 0
   1ab0a:	8e ed       	ldi	r24, 0xDE	; 222
   1ab0c:	99 e3       	ldi	r25, 0x39	; 57
   1ab0e:	14 c0       	rjmp	.+40     	; 0x1ab38 <menu_lcd_longpress_func()+0xce>

    // explicitely listed menus which are allowed to rise the move-z or live-adj-z functions
    // The lists are not the same for both functions, so first decide which function is to be performed
    if (blocks_queued() || printJobOngoing()){ // long press as live-adj-z
        if ( babystep_allowed_strict()
        && (menu_menu == lcd_status_screen // and in listed menus...
   1ab10:	8a e3       	ldi	r24, 0x3A	; 58
   1ab12:	c6 32       	cpi	r28, 0x26	; 38
   1ab14:	d8 07       	cpc	r29, r24
   1ab16:	59 f0       	breq	.+22     	; 0x1ab2e <menu_lcd_longpress_func()+0xc4>
          || menu_menu == lcd_main_menu
   1ab18:	85 ed       	ldi	r24, 0xD5	; 213
   1ab1a:	cd 3b       	cpi	r28, 0xBD	; 189
   1ab1c:	d8 07       	cpc	r29, r24
   1ab1e:	39 f0       	breq	.+14     	; 0x1ab2e <menu_lcd_longpress_func()+0xc4>
          || menu_menu == lcd_tune_menu
   1ab20:	8a ed       	ldi	r24, 0xDA	; 218
   1ab22:	c2 37       	cpi	r28, 0x72	; 114
   1ab24:	d8 07       	cpc	r29, r24
   1ab26:	19 f0       	breq	.+6      	; 0x1ab2e <menu_lcd_longpress_func()+0xc4>
          || menu_menu == lcd_support_menu
   1ab28:	c2 58       	subi	r28, 0x82	; 130
   1ab2a:	da 43       	sbci	r29, 0x3A	; 58
   1ab2c:	09 f7       	brne	.-62     	; 0x1aaf0 <menu_lcd_longpress_func()+0x86>
           )
        ){
            lcd_clear();
   1ab2e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
            menu_submenu(lcd_babystep_z);
   1ab32:	60 e0       	ldi	r22, 0x00	; 0
   1ab34:	88 e8       	ldi	r24, 0x88	; 136
   1ab36:	9a e3       	ldi	r25, 0x3A	; 58
            menu_submenu(lcd_move_z);
        } else {
            lcd_quick_feedback();
        }
    }
}
   1ab38:	df 91       	pop	r29
   1ab3a:	cf 91       	pop	r28
#if (LANG_MODE != 0)
        || menu_menu == lcd_language
#endif
        || menu_menu == lcd_support_menu
        ){
            menu_submenu(lcd_move_z);
   1ab3c:	0d 94 42 d3 	jmp	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
        } else {
            lcd_quick_feedback();
        }
    } else { // long press as move-z
        if (menu_menu == lcd_status_screen
        || menu_menu == lcd_main_menu
   1ab40:	85 ed       	ldi	r24, 0xD5	; 213
   1ab42:	cd 3b       	cpi	r28, 0xBD	; 189
   1ab44:	d8 07       	cpc	r29, r24
   1ab46:	01 f3       	breq	.-64     	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
        || menu_menu == lcd_preheat_menu
   1ab48:	89 e3       	ldi	r24, 0x39	; 57
   1ab4a:	cc 3b       	cpi	r28, 0xBC	; 188
   1ab4c:	d8 07       	cpc	r29, r24
   1ab4e:	e1 f2       	breq	.-72     	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
        || menu_menu == lcd_sdcard_menu
   1ab50:	82 ef       	ldi	r24, 0xF2	; 242
   1ab52:	c3 35       	cpi	r28, 0x53	; 83
   1ab54:	d8 07       	cpc	r29, r24
   1ab56:	c1 f2       	breq	.-80     	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
        || menu_menu == lcd_settings_menu
   1ab58:	88 ed       	ldi	r24, 0xD8	; 216
   1ab5a:	cd 30       	cpi	r28, 0x0D	; 13
   1ab5c:	d8 07       	cpc	r29, r24
   1ab5e:	a1 f2       	breq	.-88     	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
        || menu_menu == lcd_control_temperature_menu
   1ab60:	8a ed       	ldi	r24, 0xDA	; 218
   1ab62:	c2 35       	cpi	r28, 0x52	; 82
   1ab64:	d8 07       	cpc	r29, r24
   1ab66:	81 f2       	breq	.-96     	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
#if (LANG_MODE != 0)
        || menu_menu == lcd_language
   1ab68:	8b ed       	ldi	r24, 0xDB	; 219
   1ab6a:	c6 33       	cpi	r28, 0x36	; 54
   1ab6c:	d8 07       	cpc	r29, r24
   1ab6e:	61 f2       	breq	.-104    	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>
#endif
        || menu_menu == lcd_support_menu
   1ab70:	c2 58       	subi	r28, 0x82	; 130
   1ab72:	da 43       	sbci	r29, 0x3A	; 58
   1ab74:	09 f0       	breq	.+2      	; 0x1ab78 <menu_lcd_longpress_func()+0x10e>
   1ab76:	bc cf       	rjmp	.-136    	; 0x1aaf0 <menu_lcd_longpress_func()+0x86>
   1ab78:	c7 cf       	rjmp	.-114    	; 0x1ab08 <menu_lcd_longpress_func()+0x9e>

0001ab7a <lcd_main_menu() [clone .lto_priv.451]>:
//! | Fail stats         | allways
//! | Fail stats MMU     | mmu
//! | Support            | allways
//! @endcode
static void lcd_main_menu()
{
   1ab7a:	1f 93       	push	r17
   1ab7c:	cf 93       	push	r28
   1ab7e:	df 93       	push	r29

    MENU_BEGIN();
   1ab80:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1ab84:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
#endif //SDSUPPORT
        if(!farm_mode) {
            const int8_t sheet = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
            const int8_t nextSheet = eeprom_next_initialized_sheet(sheet);
            if ((nextSheet >= 0) && (sheet != nextSheet)) { // show menu only if we have 2 or more sheets initialized
                MENU_ITEM_FUNCTION_E(EEPROM_Sheets_base->s[sheet], eeprom_switch_to_next_sheet);
   1ab88:	1b e0       	ldi	r17, 0x0B	; 11
#ifdef SDSUPPORT //!@todo SDSUPPORT undefined creates several issues in source code
            if (card.mounted
                || lcd_commands_type != LcdCommands::Idle) {
                if (!card.isFileOpen()) {
                    if (!usb_timer.running() && (lcd_commands_type == LcdCommands::Idle)) {
                        bMain=true;               // flag ('fake parameter') for 'lcd_sdcard_menu()' function
   1ab8a:	d1 e0       	ldi	r29, 0x01	; 1
//! | Support            | allways
//! @endcode
static void lcd_main_menu()
{

    MENU_BEGIN();
   1ab8c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1ab90:	84 30       	cpi	r24, 0x04	; 4
   1ab92:	08 f0       	brcs	.+2      	; 0x1ab96 <lcd_main_menu() [clone .lto_priv.451]+0x1c>
   1ab94:	3e c2       	rjmp	.+1148   	; 0x1b012 <lcd_main_menu() [clone .lto_priv.451]+0x498>
   1ab96:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>

    // Majkl superawesome menu


    MENU_ITEM_BACK_P(_T(MSG_INFO_SCREEN));
   1ab9a:	88 e0       	ldi	r24, 0x08	; 8
   1ab9c:	97 e4       	ldi	r25, 0x47	; 71
   1ab9e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aba2:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_FUNCTION_P(PSTR("recover print"), recover_print);
    MENU_ITEM_FUNCTION_P(PSTR("power panic"), uvlo_);
#endif //TMC2130_DEBUG

    // Menu item for reprint
    if (!printer_active() && !printer_recovering() && (heating_status == HeatingStatus::NO_HEATING)) {
   1aba6:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   1abaa:	81 11       	cpse	r24, r1
   1abac:	19 c0       	rjmp	.+50     	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
   1abae:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   1abb2:	81 11       	cpse	r24, r1
   1abb4:	15 c0       	rjmp	.+42     	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
   1abb6:	80 91 e3 03 	lds	r24, 0x03E3	; 0x8003e3 <heating_status>
   1abba:	81 11       	cpse	r24, r1
   1abbc:	11 c0       	rjmp	.+34     	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
#include "printer_state.h"

static PrinterState printer_state;

PrinterState GetPrinterState() {
    return printer_state;
   1abbe:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
        if ((GetPrinterState() == PrinterState::SDPrintingFinished) && card.mounted) {
   1abc2:	83 30       	cpi	r24, 0x03	; 3
   1abc4:	09 f0       	breq	.+2      	; 0x1abc8 <lcd_main_menu() [clone .lto_priv.451]+0x4e>
   1abc6:	51 c0       	rjmp	.+162    	; 0x1ac6a <lcd_main_menu() [clone .lto_priv.451]+0xf0>
   1abc8:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   1abcc:	88 23       	and	r24, r24
   1abce:	41 f0       	breq	.+16     	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
            MENU_ITEM_FUNCTION_P(_T(MSG_REPRINT), lcd_reprint_from_eeprom);
   1abd0:	8e ef       	ldi	r24, 0xFE	; 254
   1abd2:	96 e4       	ldi	r25, 0x46	; 70
   1abd4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1abd8:	6c e2       	ldi	r22, 0x2C	; 44
   1abda:	75 ed       	ldi	r23, 0xD5	; 213
        } else if ((GetPrinterState() == PrinterState::HostPrintingFinished) && M79_timer_get_status()) {
            MENU_ITEM_FUNCTION_P(_T(MSG_REPRINT), lcd_send_action_start);
   1abdc:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
        }
    }

    // Menu is never shown when idle
    if (babystep_allowed_strict() && (printJobOngoing() || lcd_commands_type == LcdCommands::Layer1Cal))
   1abe0:	0e 94 52 67 	call	0xcea4	; 0xcea4 <babystep_allowed_strict()>
   1abe4:	88 23       	and	r24, r24
   1abe6:	81 f0       	breq	.+32     	; 0x1ac08 <lcd_main_menu() [clone .lto_priv.451]+0x8e>
   1abe8:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   1abec:	81 11       	cpse	r24, r1
   1abee:	04 c0       	rjmp	.+8      	; 0x1abf8 <lcd_main_menu() [clone .lto_priv.451]+0x7e>
   1abf0:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1abf4:	84 30       	cpi	r24, 0x04	; 4
   1abf6:	41 f4       	brne	.+16     	; 0x1ac08 <lcd_main_menu() [clone .lto_priv.451]+0x8e>
        MENU_ITEM_SUBMENU_P(_T(MSG_BABYSTEP_Z), lcd_babystep_z);//8
   1abf8:	8e ee       	ldi	r24, 0xEE	; 238
   1abfa:	96 e4       	ldi	r25, 0x46	; 70
   1abfc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ac00:	68 e8       	ldi	r22, 0x88	; 136
   1ac02:	7a e3       	ldi	r23, 0x3A	; 58
   1ac04:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

    if (farm_mode)
        MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);//8

    if (!printer_recovering()) {
   1ac08:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   1ac0c:	81 11       	cpse	r24, r1
   1ac0e:	61 c0       	rjmp	.+194    	; 0x1acd2 <lcd_main_menu() [clone .lto_priv.451]+0x158>
}

//return the nr of buffered moves
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
   1ac10:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   1ac14:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   1ac18:	89 1b       	sub	r24, r25
   1ac1a:	8f 70       	andi	r24, 0x0F	; 15
        if ( moves_planned() || printer_active()
#ifdef FANCHECK
         || fan_check_error == EFCE_REPORTED
   1ac1c:	a9 f5       	brne	.+106    	; 0x1ac88 <lcd_main_menu() [clone .lto_priv.451]+0x10e>

    if (farm_mode)
        MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);//8

    if (!printer_recovering()) {
        if ( moves_planned() || printer_active()
   1ac1e:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   1ac22:	81 11       	cpse	r24, r1
   1ac24:	31 c0       	rjmp	.+98     	; 0x1ac88 <lcd_main_menu() [clone .lto_priv.451]+0x10e>
#ifdef FANCHECK
         || fan_check_error == EFCE_REPORTED
   1ac26:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   1ac2a:	82 30       	cpi	r24, 0x02	; 2
   1ac2c:	69 f1       	breq	.+90     	; 0x1ac88 <lcd_main_menu() [clone .lto_priv.451]+0x10e>
#endif //End FANCHECK
        ) {
            MENU_ITEM_SUBMENU_P(_T(MSG_TUNE), lcd_tune_menu);
        } else if (!Stopped) {
   1ac2e:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   1ac32:	81 11       	cpse	r24, r1
   1ac34:	31 c0       	rjmp	.+98     	; 0x1ac98 <lcd_main_menu() [clone .lto_priv.451]+0x11e>
            MENU_ITEM_SUBMENU_P(_T(MSG_PREHEAT), lcd_preheat_menu);
   1ac36:	8d ed       	ldi	r24, 0xDD	; 221
   1ac38:	96 e4       	ldi	r25, 0x46	; 70
   1ac3a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ac3e:	6c eb       	ldi	r22, 0xBC	; 188
   1ac40:	79 e3       	ldi	r23, 0x39	; 57
   1ac42:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
            if (M79_timer_get_status()) {
   1ac46:	80 91 9e 03 	lds	r24, 0x039E	; 0x80039e <_ZL9M79_timer.lto_priv.452>
   1ac4a:	88 23       	and	r24, r24
   1ac4c:	29 f1       	breq	.+74     	; 0x1ac98 <lcd_main_menu() [clone .lto_priv.451]+0x11e>
                #ifndef REPLACE_SETREADY
                if(GetPrinterState() == PrinterState::IsReady) {
   1ac4e:	80 91 b8 0d 	lds	r24, 0x0DB8	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   1ac52:	81 30       	cpi	r24, 0x01	; 1
   1ac54:	09 f0       	breq	.+2      	; 0x1ac58 <lcd_main_menu() [clone .lto_priv.451]+0xde>
   1ac56:	7e c0       	rjmp	.+252    	; 0x1ad54 <lcd_main_menu() [clone .lto_priv.451]+0x1da>
                    MENU_ITEM_FUNCTION_P(_T(MSG_SET_NOT_READY), lcd_printer_ready_state_toggle);
   1ac58:	8d ec       	ldi	r24, 0xCD	; 205
   1ac5a:	96 e4       	ldi	r25, 0x46	; 70
                } else {
                    MENU_ITEM_FUNCTION_P(_T(MSG_SET_READY), lcd_printer_ready_state_toggle);
   1ac5c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ac60:	65 eb       	ldi	r22, 0xB5	; 181
   1ac62:	7e ec       	ldi	r23, 0xCE	; 206
   1ac64:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
   1ac68:	17 c0       	rjmp	.+46     	; 0x1ac98 <lcd_main_menu() [clone .lto_priv.451]+0x11e>

    // Menu item for reprint
    if (!printer_active() && !printer_recovering() && (heating_status == HeatingStatus::NO_HEATING)) {
        if ((GetPrinterState() == PrinterState::SDPrintingFinished) && card.mounted) {
            MENU_ITEM_FUNCTION_P(_T(MSG_REPRINT), lcd_reprint_from_eeprom);
        } else if ((GetPrinterState() == PrinterState::HostPrintingFinished) && M79_timer_get_status()) {
   1ac6a:	84 30       	cpi	r24, 0x04	; 4
   1ac6c:	09 f0       	breq	.+2      	; 0x1ac70 <lcd_main_menu() [clone .lto_priv.451]+0xf6>
   1ac6e:	b8 cf       	rjmp	.-144    	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
   1ac70:	80 91 9e 03 	lds	r24, 0x039E	; 0x80039e <_ZL9M79_timer.lto_priv.452>
   1ac74:	88 23       	and	r24, r24
   1ac76:	09 f4       	brne	.+2      	; 0x1ac7a <lcd_main_menu() [clone .lto_priv.451]+0x100>
   1ac78:	b3 cf       	rjmp	.-154    	; 0x1abe0 <lcd_main_menu() [clone .lto_priv.451]+0x66>
            MENU_ITEM_FUNCTION_P(_T(MSG_REPRINT), lcd_send_action_start);
   1ac7a:	8e ef       	ldi	r24, 0xFE	; 254
   1ac7c:	96 e4       	ldi	r25, 0x46	; 70
   1ac7e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ac82:	6f ea       	ldi	r22, 0xAF	; 175
   1ac84:	7e ec       	ldi	r23, 0xCE	; 206
   1ac86:	aa cf       	rjmp	.-172    	; 0x1abdc <lcd_main_menu() [clone .lto_priv.451]+0x62>
        if ( moves_planned() || printer_active()
#ifdef FANCHECK
         || fan_check_error == EFCE_REPORTED
#endif //End FANCHECK
        ) {
            MENU_ITEM_SUBMENU_P(_T(MSG_TUNE), lcd_tune_menu);
   1ac88:	87 ee       	ldi	r24, 0xE7	; 231
   1ac8a:	96 e4       	ldi	r25, 0x46	; 70
   1ac8c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ac90:	62 e7       	ldi	r22, 0x72	; 114
   1ac92:	7a ed       	ldi	r23, 0xDA	; 218
   1ac94:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
                #else
                    MENU_ITEM_FUNCTION_P(_T(MSG_HOSTPRINT), lcd_send_action_start);
                #endif //REPLACE_SETREADY
            }
        }
        if (mesh_bed_leveling_flag == false && homing_flag == false && !printingIsPaused() && !processing_tcode) {
   1ac98:	c0 91 a8 0d 	lds	r28, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   1ac9c:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1aca0:	c1 11       	cpse	r28, r1
   1aca2:	17 c0       	rjmp	.+46     	; 0x1acd2 <lcd_main_menu() [clone .lto_priv.451]+0x158>
   1aca4:	90 91 a7 0d 	lds	r25, 0x0DA7	; 0x800da7 <homing_flag>
   1aca8:	91 11       	cpse	r25, r1
   1acaa:	13 c0       	rjmp	.+38     	; 0x1acd2 <lcd_main_menu() [clone .lto_priv.451]+0x158>
   1acac:	81 11       	cpse	r24, r1
   1acae:	15 c0       	rjmp	.+42     	; 0x1acda <lcd_main_menu() [clone .lto_priv.451]+0x160>
   1acb0:	80 91 a3 03 	lds	r24, 0x03A3	; 0x8003a3 <processing_tcode>
   1acb4:	81 11       	cpse	r24, r1
   1acb6:	0d c0       	rjmp	.+26     	; 0x1acd2 <lcd_main_menu() [clone .lto_priv.451]+0x158>
            if (usb_timer.running()) {
   1acb8:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
   1acbc:	88 23       	and	r24, r24
   1acbe:	09 f4       	brne	.+2      	; 0x1acc2 <lcd_main_menu() [clone .lto_priv.451]+0x148>
   1acc0:	4c c0       	rjmp	.+152    	; 0x1ad5a <lcd_main_menu() [clone .lto_priv.451]+0x1e0>
                MENU_ITEM_FUNCTION_P(_T(MSG_PAUSE_PRINT), lcd_pause_usb_print);
   1acc2:	83 eb       	ldi	r24, 0xB3	; 179
   1acc4:	96 e4       	ldi	r25, 0x46	; 70
   1acc6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1acca:	66 e8       	ldi	r22, 0x86	; 134
   1accc:	79 e3       	ldi	r23, 0x39	; 57
            } else if (IS_SD_PRINTING) {
                MENU_ITEM_FUNCTION_P(_T(MSG_PAUSE_PRINT), lcd_pause_print);
   1acce:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
            }
        }
    }
    if (printingIsPaused()
   1acd2:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
        && !get_temp_error()
#ifdef FANCHECK
        && fan_check_error != EFCE_REPORTED
#endif //FANCHECK
        && (saved_printing_type != PowerPanic::PRINT_TYPE_NONE || saved_printing)
        && custom_message_type != CustomMsg::Resuming) {
   1acd6:	88 23       	and	r24, r24
   1acd8:	f1 f0       	breq	.+60     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
    temp_error_state.assert = true;
}

bool get_temp_error()
{
    return temp_error_state.v;
   1acda:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
            }
        }
    }
    if (printingIsPaused()
        // only allow resuming if hardware errors (temperature or fan) are cleared
        && !get_temp_error()
   1acde:	81 11       	cpse	r24, r1
   1ace0:	1a c0       	rjmp	.+52     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
#ifdef FANCHECK
        && fan_check_error != EFCE_REPORTED
   1ace2:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   1ace6:	82 30       	cpi	r24, 0x02	; 2
   1ace8:	b1 f0       	breq	.+44     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
#endif //FANCHECK
        && (saved_printing_type != PowerPanic::PRINT_TYPE_NONE || saved_printing)
   1acea:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
   1acee:	82 30       	cpi	r24, 0x02	; 2
   1acf0:	21 f4       	brne	.+8      	; 0x1acfa <lcd_main_menu() [clone .lto_priv.451]+0x180>
   1acf2:	90 91 a9 0d 	lds	r25, 0x0DA9	; 0x800da9 <saved_printing>
   1acf6:	99 23       	and	r25, r25
   1acf8:	71 f0       	breq	.+28     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
        && custom_message_type != CustomMsg::Resuming) {
   1acfa:	90 91 c4 06 	lds	r25, 0x06C4	; 0x8006c4 <custom_message_type>
   1acfe:	98 30       	cpi	r25, 0x08	; 8
   1ad00:	51 f0       	breq	.+20     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
        if (saved_printing_type == PowerPanic::PRINT_TYPE_SD) {
   1ad02:	81 11       	cpse	r24, r1
   1ad04:	36 c0       	rjmp	.+108    	; 0x1ad72 <lcd_main_menu() [clone .lto_priv.451]+0x1f8>
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);
   1ad06:	84 ea       	ldi	r24, 0xA4	; 164
   1ad08:	96 e4       	ldi	r25, 0x46	; 70
   1ad0a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ad0e:	6c ef       	ldi	r22, 0xFC	; 252
   1ad10:	78 ef       	ldi	r23, 0xF8	; 248
        } else if ((saved_printing_type == PowerPanic::PRINT_TYPE_HOST) && (M79_timer_get_status())) {
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_usb_print);
   1ad12:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        }
    }
    if((printJobOngoing() || printingIsPaused() || (printer_recovering()))
   1ad16:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
        && (custom_message_type != CustomMsg::MeshBedLeveling) && !processing_tcode) {
   1ad1a:	81 11       	cpse	r24, r1
   1ad1c:	08 c0       	rjmp	.+16     	; 0x1ad2e <lcd_main_menu() [clone .lto_priv.451]+0x1b4>
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);
        } else if ((saved_printing_type == PowerPanic::PRINT_TYPE_HOST) && (M79_timer_get_status())) {
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_usb_print);
        }
    }
    if((printJobOngoing() || printingIsPaused() || (printer_recovering()))
   1ad1e:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1ad22:	81 11       	cpse	r24, r1
   1ad24:	04 c0       	rjmp	.+8      	; 0x1ad2e <lcd_main_menu() [clone .lto_priv.451]+0x1b4>
   1ad26:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   1ad2a:	88 23       	and	r24, r24
   1ad2c:	41 f0       	breq	.+16     	; 0x1ad3e <lcd_main_menu() [clone .lto_priv.451]+0x1c4>
        && (custom_message_type != CustomMsg::MeshBedLeveling) && !processing_tcode) {
   1ad2e:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   1ad32:	81 30       	cpi	r24, 0x01	; 1
   1ad34:	21 f0       	breq	.+8      	; 0x1ad3e <lcd_main_menu() [clone .lto_priv.451]+0x1c4>
   1ad36:	80 91 a3 03 	lds	r24, 0x03A3	; 0x8003a3 <processing_tcode>
   1ad3a:	88 23       	and	r24, r24
   1ad3c:	39 f1       	breq	.+78     	; 0x1ad8c <lcd_main_menu() [clone .lto_priv.451]+0x212>
        MENU_ITEM_SUBMENU_P(_T(MSG_STOP_PRINT), lcd_sdcard_stop);
    }
#ifdef THERMAL_MODEL
    else if(Stopped) {
   1ad3e:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   1ad42:	88 23       	and	r24, r24
   1ad44:	59 f1       	breq	.+86     	; 0x1ad9c <lcd_main_menu() [clone .lto_priv.451]+0x222>
        MENU_ITEM_SUBMENU_P(_T(MSG_TM_ACK_ERROR), lcd_print_stop);
   1ad46:	83 e9       	ldi	r24, 0x93	; 147
   1ad48:	96 e4       	ldi	r25, 0x46	; 70
   1ad4a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ad4e:	62 ed       	ldi	r22, 0xD2	; 210
   1ad50:	75 ef       	ldi	r23, 0xF5	; 245
   1ad52:	22 c0       	rjmp	.+68     	; 0x1ad98 <lcd_main_menu() [clone .lto_priv.451]+0x21e>
            if (M79_timer_get_status()) {
                #ifndef REPLACE_SETREADY
                if(GetPrinterState() == PrinterState::IsReady) {
                    MENU_ITEM_FUNCTION_P(_T(MSG_SET_NOT_READY), lcd_printer_ready_state_toggle);
                } else {
                    MENU_ITEM_FUNCTION_P(_T(MSG_SET_READY), lcd_printer_ready_state_toggle);
   1ad54:	81 ec       	ldi	r24, 0xC1	; 193
   1ad56:	96 e4       	ldi	r25, 0x46	; 70
   1ad58:	81 cf       	rjmp	.-254    	; 0x1ac5c <lcd_main_menu() [clone .lto_priv.451]+0xe2>
            }
        }
        if (mesh_bed_leveling_flag == false && homing_flag == false && !printingIsPaused() && !processing_tcode) {
            if (usb_timer.running()) {
                MENU_ITEM_FUNCTION_P(_T(MSG_PAUSE_PRINT), lcd_pause_usb_print);
            } else if (IS_SD_PRINTING) {
   1ad5a:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   1ad5e:	88 23       	and	r24, r24
   1ad60:	09 f4       	brne	.+2      	; 0x1ad64 <lcd_main_menu() [clone .lto_priv.451]+0x1ea>
   1ad62:	b7 cf       	rjmp	.-146    	; 0x1acd2 <lcd_main_menu() [clone .lto_priv.451]+0x158>
                MENU_ITEM_FUNCTION_P(_T(MSG_PAUSE_PRINT), lcd_pause_print);
   1ad64:	83 eb       	ldi	r24, 0xB3	; 179
   1ad66:	96 e4       	ldi	r25, 0x46	; 70
   1ad68:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ad6c:	6c ec       	ldi	r22, 0xCC	; 204
   1ad6e:	7a e3       	ldi	r23, 0x3A	; 58
   1ad70:	ae cf       	rjmp	.-164    	; 0x1acce <lcd_main_menu() [clone .lto_priv.451]+0x154>
#endif //FANCHECK
        && (saved_printing_type != PowerPanic::PRINT_TYPE_NONE || saved_printing)
        && custom_message_type != CustomMsg::Resuming) {
        if (saved_printing_type == PowerPanic::PRINT_TYPE_SD) {
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_print);
        } else if ((saved_printing_type == PowerPanic::PRINT_TYPE_HOST) && (M79_timer_get_status())) {
   1ad72:	81 30       	cpi	r24, 0x01	; 1
   1ad74:	81 f6       	brne	.-96     	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
   1ad76:	80 91 9e 03 	lds	r24, 0x039E	; 0x80039e <_ZL9M79_timer.lto_priv.452>
   1ad7a:	88 23       	and	r24, r24
   1ad7c:	61 f2       	breq	.-104    	; 0x1ad16 <lcd_main_menu() [clone .lto_priv.451]+0x19c>
                MENU_ITEM_SUBMENU_P(_T(MSG_RESUME_PRINT), lcd_resume_usb_print);
   1ad7e:	84 ea       	ldi	r24, 0xA4	; 164
   1ad80:	96 e4       	ldi	r25, 0x46	; 70
   1ad82:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ad86:	6b e2       	ldi	r22, 0x2B	; 43
   1ad88:	79 ef       	ldi	r23, 0xF9	; 249
   1ad8a:	c3 cf       	rjmp	.-122    	; 0x1ad12 <lcd_main_menu() [clone .lto_priv.451]+0x198>
        }
    }
    if((printJobOngoing() || printingIsPaused() || (printer_recovering()))
        && (custom_message_type != CustomMsg::MeshBedLeveling) && !processing_tcode) {
        MENU_ITEM_SUBMENU_P(_T(MSG_STOP_PRINT), lcd_sdcard_stop);
   1ad8c:	80 e0       	ldi	r24, 0x00	; 0
   1ad8e:	98 e4       	ldi	r25, 0x48	; 72
   1ad90:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ad94:	62 e3       	ldi	r22, 0x32	; 50
   1ad96:	73 ed       	ldi	r23, 0xD3	; 211
    }
#ifdef THERMAL_MODEL
    else if(Stopped) {
        MENU_ITEM_SUBMENU_P(_T(MSG_TM_ACK_ERROR), lcd_print_stop);
   1ad98:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
#endif

    // only allow starting SD print if hardware errors (temperature or fan) are cleared
    if (!printer_recovering() && !printer_active() && !get_temp_error()
   1ad9c:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
#ifdef FANCHECK
        && fan_check_error != EFCE_REPORTED
   1ada0:	81 11       	cpse	r24, r1
   1ada2:	9e c0       	rjmp	.+316    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
        MENU_ITEM_SUBMENU_P(_T(MSG_TM_ACK_ERROR), lcd_print_stop);
    }
#endif

    // only allow starting SD print if hardware errors (temperature or fan) are cleared
    if (!printer_recovering() && !printer_active() && !get_temp_error()
   1ada4:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   1ada8:	81 11       	cpse	r24, r1
   1adaa:	9a c0       	rjmp	.+308    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
   1adac:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   1adb0:	81 11       	cpse	r24, r1
   1adb2:	96 c0       	rjmp	.+300    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
#ifdef FANCHECK
        && fan_check_error != EFCE_REPORTED
   1adb4:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   1adb8:	82 30       	cpi	r24, 0x02	; 2
   1adba:	09 f4       	brne	.+2      	; 0x1adbe <lcd_main_menu() [clone .lto_priv.451]+0x244>
   1adbc:	91 c0       	rjmp	.+290    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
#endif //FANCHECK
        ) {
#ifdef SDSUPPORT //!@todo SDSUPPORT undefined creates several issues in source code
            if (card.mounted
   1adbe:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   1adc2:	81 11       	cpse	r24, r1
   1adc4:	05 c0       	rjmp	.+10     	; 0x1add0 <lcd_main_menu() [clone .lto_priv.451]+0x256>
                || lcd_commands_type != LcdCommands::Idle) {
   1adc6:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1adca:	88 23       	and	r24, r24
   1adcc:	09 f4       	brne	.+2      	; 0x1add0 <lcd_main_menu() [clone .lto_priv.451]+0x256>
   1adce:	b9 c0       	rjmp	.+370    	; 0x1af42 <lcd_main_menu() [clone .lto_priv.451]+0x3c8>
                if (!card.isFileOpen()) {
   1add0:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   1add4:	81 11       	cpse	r24, r1
   1add6:	12 c0       	rjmp	.+36     	; 0x1adfc <lcd_main_menu() [clone .lto_priv.451]+0x282>
                    if (!usb_timer.running() && (lcd_commands_type == LcdCommands::Idle)) {
   1add8:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
   1addc:	81 11       	cpse	r24, r1
   1adde:	0e c0       	rjmp	.+28     	; 0x1adfc <lcd_main_menu() [clone .lto_priv.451]+0x282>
   1ade0:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1ade4:	81 11       	cpse	r24, r1
   1ade6:	0a c0       	rjmp	.+20     	; 0x1adfc <lcd_main_menu() [clone .lto_priv.451]+0x282>
                        bMain=true;               // flag ('fake parameter') for 'lcd_sdcard_menu()' function
   1ade8:	d0 93 e1 03 	sts	0x03E1, r29	; 0x8003e1 <bMain>
                        MENU_ITEM_SUBMENU_P(_T(MSG_CARD_MENU), lcd_sdcard_menu);
   1adec:	83 e8       	ldi	r24, 0x83	; 131
   1adee:	96 e4       	ldi	r25, 0x46	; 70
   1adf0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1adf4:	63 e5       	ldi	r22, 0x53	; 83
   1adf6:	72 ef       	ldi	r23, 0xF2	; 242
   1adf8:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
            MENU_ITEM_GCODE_P(_T(MSG_INIT_SDCARD), PSTR("M21")); // Manually initialize the SD-card via user interface
#endif //SDCARDDETECT
         }
#endif //SDSUPPORT
        if(!farm_mode) {
            const int8_t sheet = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
   1adfc:	81 ea       	ldi	r24, 0xA1	; 161
   1adfe:	9d e0       	ldi	r25, 0x0D	; 13
   1ae00:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1ae04:	c8 2f       	mov	r28, r24
            const int8_t nextSheet = eeprom_next_initialized_sheet(sheet);
   1ae06:	0e 94 d6 75 	call	0xebac	; 0xebac <eeprom_next_initialized_sheet(signed char)>
            if ((nextSheet >= 0) && (sheet != nextSheet)) { // show menu only if we have 2 or more sheets initialized
   1ae0a:	87 fd       	sbrc	r24, 7
   1ae0c:	09 c0       	rjmp	.+18     	; 0x1ae20 <lcd_main_menu() [clone .lto_priv.451]+0x2a6>
   1ae0e:	c8 17       	cp	r28, r24
   1ae10:	39 f0       	breq	.+14     	; 0x1ae20 <lcd_main_menu() [clone .lto_priv.451]+0x2a6>
                MENU_ITEM_FUNCTION_E(EEPROM_Sheets_base->s[sheet], eeprom_switch_to_next_sheet);
   1ae12:	c1 02       	muls	r28, r17
   1ae14:	c0 01       	movw	r24, r0
   1ae16:	11 24       	eor	r1, r1
   1ae18:	87 5b       	subi	r24, 0xB7	; 183
   1ae1a:	92 4f       	sbci	r25, 0xF2	; 242
   1ae1c:	0e 94 e6 ce 	call	0x19dcc	; 0x19dcc <menu_item_function_E(Sheet const&, void (*)()) [clone .constprop.17]>
            }
#ifdef QUICK_NOZZLE_CHANGE
            SETTINGS_NOZZLE;
   1ae20:	80 91 eb 04 	lds	r24, 0x04EB	; 0x8004eb <oNozzleDiameter>
   1ae24:	8c 33       	cpi	r24, 0x3C	; 60
   1ae26:	09 f4       	brne	.+2      	; 0x1ae2a <lcd_main_menu() [clone .lto_priv.451]+0x2b0>
   1ae28:	b0 c0       	rjmp	.+352    	; 0x1af8a <lcd_main_menu() [clone .lto_priv.451]+0x410>
   1ae2a:	08 f0       	brcs	.+2      	; 0x1ae2e <lcd_main_menu() [clone .lto_priv.451]+0x2b4>
   1ae2c:	93 c0       	rjmp	.+294    	; 0x1af54 <lcd_main_menu() [clone .lto_priv.451]+0x3da>
   1ae2e:	89 31       	cpi	r24, 0x19	; 25
   1ae30:	09 f4       	brne	.+2      	; 0x1ae34 <lcd_main_menu() [clone .lto_priv.451]+0x2ba>
   1ae32:	9f c0       	rjmp	.+318    	; 0x1af72 <lcd_main_menu() [clone .lto_priv.451]+0x3f8>
   1ae34:	88 32       	cpi	r24, 0x28	; 40
   1ae36:	09 f4       	brne	.+2      	; 0x1ae3a <lcd_main_menu() [clone .lto_priv.451]+0x2c0>
   1ae38:	92 c0       	rjmp	.+292    	; 0x1af5e <lcd_main_menu() [clone .lto_priv.451]+0x3e4>
#endif //QUICK_NOZZLE_CHANGE

        }

        if (!((eFilamentAction != FilamentAction::None) || Stopped )) {
   1ae3a:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   1ae3e:	81 11       	cpse	r24, r1
   1ae40:	4f c0       	rjmp	.+158    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
   1ae42:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   1ae46:	81 11       	cpse	r24, r1
   1ae48:	4b c0       	rjmp	.+150    	; 0x1aee0 <lcd_main_menu() [clone .lto_priv.451]+0x366>
            if (MMU2::mmu2.Enabled()) {
   1ae4a:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1ae4e:	81 30       	cpi	r24, 0x01	; 1
   1ae50:	09 f0       	breq	.+2      	; 0x1ae54 <lcd_main_menu() [clone .lto_priv.451]+0x2da>
   1ae52:	af c0       	rjmp	.+350    	; 0x1afb2 <lcd_main_menu() [clone .lto_priv.451]+0x438>
                if(!MMU2::mmu2.FindaDetectsFilament() && !fsensor.getFilamentPresent()) {
   1ae54:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   1ae58:	81 11       	cpse	r24, r1
   1ae5a:	0c c0       	rjmp	.+24     	; 0x1ae74 <lcd_main_menu() [clone .lto_priv.451]+0x2fa>
   1ae5c:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   1ae60:	81 11       	cpse	r24, r1
   1ae62:	08 c0       	rjmp	.+16     	; 0x1ae74 <lcd_main_menu() [clone .lto_priv.451]+0x2fa>
                    // The MMU 'Load filament' state machine will reject the command if any
                    // filament sensor is reporting a detected filament
                    MENU_ITEM_SUBMENU_P(_T(MSG_PRELOAD_TO_MMU), mmu_preload_filament_menu);
   1ae64:	89 e5       	ldi	r24, 0x59	; 89
   1ae66:	96 e4       	ldi	r25, 0x46	; 70
   1ae68:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ae6c:	61 e7       	ldi	r22, 0x71	; 113
   1ae6e:	71 ee       	ldi	r23, 0xE1	; 225
   1ae70:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
            }
                MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_TO_NOZZLE), lcd_mmuLoadFilament);
   1ae74:	88 e4       	ldi	r24, 0x48	; 72
   1ae76:	96 e4       	ldi	r25, 0x46	; 70
   1ae78:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ae7c:	68 ea       	ldi	r22, 0xA8	; 168
   1ae7e:	71 ee       	ldi	r23, 0xE1	; 225
   1ae80:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
                MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_mmuUnloadFilament);
   1ae84:	86 e3       	ldi	r24, 0x36	; 54
   1ae86:	96 e4       	ldi	r25, 0x46	; 70
   1ae88:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ae8c:	6b ea       	ldi	r22, 0xAB	; 171
   1ae8e:	71 ee       	ldi	r23, 0xE1	; 225
   1ae90:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
                MENU_ITEM_SUBMENU_P(_T(MSG_EJECT_FROM_MMU), lcd_mmuEjectFilament);
   1ae94:	84 e6       	ldi	r24, 0x64	; 100
   1ae96:	9b e5       	ldi	r25, 0x5B	; 91
   1ae98:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ae9c:	6e ea       	ldi	r22, 0xAE	; 174
   1ae9e:	71 ee       	ldi	r23, 0xE1	; 225
   1aea0:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#ifdef  MMU_HAS_CUTTER
                if (eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) != 0) {
   1aea4:	8e ec       	ldi	r24, 0xCE	; 206
   1aea6:	9e e0       	ldi	r25, 0x0E	; 14
   1aea8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1aeac:	88 23       	and	r24, r24
   1aeae:	41 f0       	breq	.+16     	; 0x1aec0 <lcd_main_menu() [clone .lto_priv.451]+0x346>
                    MENU_ITEM_SUBMENU_P(_T(MSG_CUT_FILAMENT), lcd_mmuCutFilament);
   1aeb0:	85 e5       	ldi	r24, 0x55	; 85
   1aeb2:	9b e5       	ldi	r25, 0x5B	; 91
   1aeb4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aeb8:	61 eb       	ldi	r22, 0xB1	; 177
   1aeba:	71 ee       	ldi	r23, 0xE1	; 225
                    }
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY 
                } else {
#endif //FILAMENT_SENSOR
                    MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);
                    MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament);
   1aebc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#ifdef FILAMENT_SENSOR
                }
#endif //FILAMENT_SENSOR
            }
            MENU_ITEM_SUBMENU_P(_T(MSG_SETTINGS), lcd_settings_menu);
   1aec0:	8a ee       	ldi	r24, 0xEA	; 234
   1aec2:	97 e4       	ldi	r25, 0x47	; 71
   1aec4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aec8:	6d e0       	ldi	r22, 0x0D	; 13
   1aeca:	78 ed       	ldi	r23, 0xD8	; 216
   1aecc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
            MENU_ITEM_SUBMENU_P(_T(MSG_CALIBRATION), lcd_calibration_menu);
   1aed0:	84 e0       	ldi	r24, 0x04	; 4
   1aed2:	96 e4       	ldi	r25, 0x46	; 70
   1aed4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aed8:	60 e8       	ldi	r22, 0x80	; 128
   1aeda:	79 ed       	ldi	r23, 0xD9	; 217
   1aedc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        }
    }

        MENU_ITEM_SUBMENU_P(_T(MSG_STATISTICS), lcd_menu_statistics);
   1aee0:	87 ef       	ldi	r24, 0xF7	; 247
   1aee2:	95 e4       	ldi	r25, 0x45	; 69
   1aee4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aee8:	68 e3       	ldi	r22, 0x38	; 56
   1aeea:	79 e3       	ldi	r23, 0x39	; 57
   1aeec:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

#if defined(TMC2130) || defined(FILAMENT_SENSOR)
        MENU_ITEM_SUBMENU_P(_T(MSG_FAIL_STATS), lcd_menu_fails_stats);
   1aef0:	8a ee       	ldi	r24, 0xEA	; 234
   1aef2:	95 e4       	ldi	r25, 0x45	; 69
   1aef4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1aef8:	60 ec       	ldi	r22, 0xC0	; 192
   1aefa:	78 e3       	ldi	r23, 0x38	; 56
   1aefc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif
    if (MMU2::mmu2.Enabled()) {
   1af00:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1af04:	81 30       	cpi	r24, 0x01	; 1
   1af06:	41 f4       	brne	.+16     	; 0x1af18 <lcd_main_menu() [clone .lto_priv.451]+0x39e>
        MENU_ITEM_SUBMENU_P(_T(MSG_MMU_FAIL_STATS), lcd_menu_fails_stats_mmu);
   1af08:	89 ed       	ldi	r24, 0xD9	; 217
   1af0a:	95 e4       	ldi	r25, 0x45	; 69
   1af0c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af10:	6a ea       	ldi	r22, 0xAA	; 170
   1af12:	7a e3       	ldi	r23, 0x3A	; 58
   1af14:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    if (!printer_active() && M79_timer_get_status()) {
        MENU_ITEM_FUNCTION_P(_T(MSG_SHUTDOWN_HOST), lcd_shutdown_menu);
    }
#endif //HOST_SHUTOWN

    MENU_ITEM_SUBMENU_P(_T(MSG_SUPPORT), lcd_support_menu);
   1af18:	8f ec       	ldi	r24, 0xCF	; 207
   1af1a:	95 e4       	ldi	r25, 0x45	; 69
   1af1c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af20:	62 e8       	ldi	r22, 0x82	; 130
   1af22:	7a e3       	ldi	r23, 0x3A	; 58
   1af24:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

    MENU_END();
   1af28:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
//! | Support            | allways
//! @endcode
static void lcd_main_menu()
{

    MENU_BEGIN();
   1af2c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1af30:	8f 5f       	subi	r24, 0xFF	; 255
   1af32:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1af36:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1af3a:	8f 5f       	subi	r24, 0xFF	; 255
   1af3c:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1af40:	25 ce       	rjmp	.-950    	; 0x1ab8c <lcd_main_menu() [clone .lto_priv.451]+0x12>
#if SDCARDDETECT < 1
             MENU_ITEM_GCODE_P(_T(MSG_CNG_SDCARD), PSTR("M21"));  // SD-card changed by user
#endif //SDCARDDETECT
                }
            } else {
                bMain=true;                                   // flag (i.e. 'fake parameter') for 'lcd_sdcard_menu()' function
   1af42:	d0 93 e1 03 	sts	0x03E1, r29	; 0x8003e1 <bMain>
                MENU_ITEM_BACK_P(_T(MSG_NO_CARD));
   1af46:	86 e7       	ldi	r24, 0x76	; 118
   1af48:	96 e4       	ldi	r25, 0x46	; 70
   1af4a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af4e:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
   1af52:	54 cf       	rjmp	.-344    	; 0x1adfc <lcd_main_menu() [clone .lto_priv.451]+0x282>
            const int8_t nextSheet = eeprom_next_initialized_sheet(sheet);
            if ((nextSheet >= 0) && (sheet != nextSheet)) { // show menu only if we have 2 or more sheets initialized
                MENU_ITEM_FUNCTION_E(EEPROM_Sheets_base->s[sheet], eeprom_switch_to_next_sheet);
            }
#ifdef QUICK_NOZZLE_CHANGE
            SETTINGS_NOZZLE;
   1af54:	80 35       	cpi	r24, 0x50	; 80
   1af56:	19 f1       	breq	.+70     	; 0x1af9e <lcd_main_menu() [clone .lto_priv.451]+0x424>
   1af58:	8f 3f       	cpi	r24, 0xFF	; 255
   1af5a:	09 f0       	breq	.+2      	; 0x1af5e <lcd_main_menu() [clone .lto_priv.451]+0x3e4>
   1af5c:	6e cf       	rjmp	.-292    	; 0x1ae3a <lcd_main_menu() [clone .lto_priv.451]+0x2c0>
   1af5e:	8a e6       	ldi	r24, 0x6A	; 106
   1af60:	96 e4       	ldi	r25, 0x46	; 70
   1af62:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af66:	22 e0       	ldi	r18, 0x02	; 2
   1af68:	44 ef       	ldi	r20, 0xF4	; 244
   1af6a:	50 ed       	ldi	r21, 0xD0	; 208
   1af6c:	61 e6       	ldi	r22, 0x61	; 97
   1af6e:	79 e8       	ldi	r23, 0x89	; 137
   1af70:	09 c0       	rjmp	.+18     	; 0x1af84 <lcd_main_menu() [clone .lto_priv.451]+0x40a>
   1af72:	8a e6       	ldi	r24, 0x6A	; 106
   1af74:	96 e4       	ldi	r25, 0x46	; 70
   1af76:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af7a:	22 e0       	ldi	r18, 0x02	; 2
   1af7c:	44 ef       	ldi	r20, 0xF4	; 244
   1af7e:	50 ed       	ldi	r21, 0xD0	; 208
   1af80:	66 e6       	ldi	r22, 0x66	; 102
   1af82:	79 e8       	ldi	r23, 0x89	; 137
   1af84:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
   1af88:	58 cf       	rjmp	.-336    	; 0x1ae3a <lcd_main_menu() [clone .lto_priv.451]+0x2c0>
   1af8a:	8a e6       	ldi	r24, 0x6A	; 106
   1af8c:	96 e4       	ldi	r25, 0x46	; 70
   1af8e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1af92:	22 e0       	ldi	r18, 0x02	; 2
   1af94:	44 ef       	ldi	r20, 0xF4	; 244
   1af96:	50 ed       	ldi	r21, 0xD0	; 208
   1af98:	6c e5       	ldi	r22, 0x5C	; 92
   1af9a:	79 e8       	ldi	r23, 0x89	; 137
   1af9c:	f3 cf       	rjmp	.-26     	; 0x1af84 <lcd_main_menu() [clone .lto_priv.451]+0x40a>
   1af9e:	8a e6       	ldi	r24, 0x6A	; 106
   1afa0:	96 e4       	ldi	r25, 0x46	; 70
   1afa2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1afa6:	22 e0       	ldi	r18, 0x02	; 2
   1afa8:	44 ef       	ldi	r20, 0xF4	; 244
   1afaa:	50 ed       	ldi	r21, 0xD0	; 208
   1afac:	67 e5       	ldi	r22, 0x57	; 87
   1afae:	79 e8       	ldi	r23, 0x89	; 137
   1afb0:	e9 cf       	rjmp	.-46     	; 0x1af84 <lcd_main_menu() [clone .lto_priv.451]+0x40a>
                    MENU_ITEM_SUBMENU_P(_T(MSG_CUT_FILAMENT), lcd_mmuCutFilament);
                }
#endif //MMU_HAS_CUTTER
            } else {
#ifdef FILAMENT_SENSOR
                if (fsensor.isEnabled()) {
   1afb2:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1afb6:	88 23       	and	r24, r24
   1afb8:	19 f1       	breq	.+70     	; 0x1b000 <lcd_main_menu() [clone .lto_priv.451]+0x486>
                    if (!fsensor.getAutoLoadEnabled()) {
   1afba:	80 91 ab 17 	lds	r24, 0x17AB	; 0x8017ab <fsensor+0x1>
   1afbe:	81 11       	cpse	r24, r1
   1afc0:	08 c0       	rjmp	.+16     	; 0x1afd2 <lcd_main_menu() [clone .lto_priv.451]+0x458>
                        MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);
   1afc2:	86 e2       	ldi	r24, 0x26	; 38
   1afc4:	96 e4       	ldi	r25, 0x46	; 70
   1afc6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1afca:	68 e1       	ldi	r22, 0x18	; 24
   1afcc:	7a e3       	ldi	r23, 0x3A	; 58
   1afce:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
                    }
                    if (fsensor.getFilamentPresent()) {
   1afd2:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   1afd6:	88 23       	and	r24, r24
   1afd8:	39 f0       	breq	.+14     	; 0x1afe8 <lcd_main_menu() [clone .lto_priv.451]+0x46e>
                    }
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY 
                } else {
#endif //FILAMENT_SENSOR
                    MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);
                    MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament);
   1afda:	86 e3       	ldi	r24, 0x36	; 54
   1afdc:	96 e4       	ldi	r25, 0x46	; 70
   1afde:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1afe2:	6a e0       	ldi	r22, 0x0A	; 10
   1afe4:	79 e3       	ldi	r23, 0x39	; 57
   1afe6:	6a cf       	rjmp	.-300    	; 0x1aebc <lcd_main_menu() [clone .lto_priv.451]+0x342>
                    if (fsensor.getFilamentPresent()) {
                        MENU_ITEM_SUBMENU_P(_T(MSG_UNLOAD_FILAMENT), lcd_unLoadFilament);
                    }
#ifndef REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY
                    else {
                        if (fsensor.getAutoLoadEnabled()) {
   1afe8:	80 91 ab 17 	lds	r24, 0x17AB	; 0x8017ab <fsensor+0x1>
   1afec:	88 23       	and	r24, r24
   1afee:	09 f4       	brne	.+2      	; 0x1aff2 <lcd_main_menu() [clone .lto_priv.451]+0x478>
   1aff0:	67 cf       	rjmp	.-306    	; 0x1aec0 <lcd_main_menu() [clone .lto_priv.451]+0x346>
                            MENU_ITEM_SUBMENU_P(_T(MSG_AUTOLOAD_FILAMENT), lcd_menu_AutoLoadFilament);
   1aff2:	82 e1       	ldi	r24, 0x12	; 18
   1aff4:	96 e4       	ldi	r25, 0x46	; 70
   1aff6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1affa:	64 ea       	ldi	r22, 0xA4	; 164
   1affc:	79 e3       	ldi	r23, 0x39	; 57
   1affe:	5e cf       	rjmp	.-324    	; 0x1aebc <lcd_main_menu() [clone .lto_priv.451]+0x342>
                        }                        
                    }
#endif //REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY 
                } else {
#endif //FILAMENT_SENSOR
                    MENU_ITEM_SUBMENU_P(_T(MSG_LOAD_FILAMENT), lcd_LoadFilament);
   1b000:	86 e2       	ldi	r24, 0x26	; 38
   1b002:	96 e4       	ldi	r25, 0x46	; 70
   1b004:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b008:	68 e1       	ldi	r22, 0x18	; 24
   1b00a:	7a e3       	ldi	r23, 0x3A	; 58
   1b00c:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
   1b010:	e4 cf       	rjmp	.-56     	; 0x1afda <lcd_main_menu() [clone .lto_priv.451]+0x460>
#endif //HOST_SHUTOWN

    MENU_ITEM_SUBMENU_P(_T(MSG_SUPPORT), lcd_support_menu);

    MENU_END();
}
   1b012:	df 91       	pop	r29
   1b014:	cf 91       	pop	r28
   1b016:	1f 91       	pop	r17
   1b018:	08 95       	ret

0001b01a <lcd_settings_menu()>:

    MENU_END();
}

static void lcd_settings_menu()
{
   1b01a:	1f 93       	push	r17
   1b01c:	cf 93       	push	r28
   1b01e:	df 93       	push	r29
	SilentModeMenu = eeprom_read_byte((uint8_t*) EEPROM_SILENT);
   1b020:	8f ef       	ldi	r24, 0xFF	; 255
   1b022:	9f e0       	ldi	r25, 0x0F	; 15
   1b024:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b028:	80 93 a4 03 	sts	0x03A4, r24	; 0x8003a4 <SilentModeMenu>
	MENU_BEGIN();
   1b02c:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1b030:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
    SETTINGS_FANS_CHECK();
    SETTINGS_SILENT_MODE();

    if(!farm_mode)
    {
        bSettings=true;                              // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
   1b034:	11 e0       	ldi	r17, 0x01	; 1
}

static void lcd_settings_menu()
{
	SilentModeMenu = eeprom_read_byte((uint8_t*) EEPROM_SILENT);
	MENU_BEGIN();
   1b036:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b03a:	84 30       	cpi	r24, 0x04	; 4
   1b03c:	08 f0       	brcs	.+2      	; 0x1b040 <lcd_settings_menu()+0x26>
   1b03e:	5c c1       	rjmp	.+696    	; 0x1b2f8 <lcd_settings_menu()+0x2de>
   1b040:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1b044:	8b e3       	ldi	r24, 0x3B	; 59
   1b046:	98 e4       	ldi	r25, 0x48	; 72
   1b048:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b04c:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

	MENU_ITEM_SUBMENU_P(_T(MSG_TEMPERATURE), lcd_control_temperature_menu);
   1b050:	87 ea       	ldi	r24, 0xA7	; 167
   1b052:	94 e4       	ldi	r25, 0x44	; 68
   1b054:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b058:	62 e5       	ldi	r22, 0x52	; 82
   1b05a:	7a ed       	ldi	r23, 0xDA	; 218
   1b05c:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

	if (!printer_active() || printingIsPaused())
   1b060:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   1b064:	88 23       	and	r24, r24
   1b066:	21 f0       	breq	.+8      	; 0x1b070 <lcd_settings_menu()+0x56>
   1b068:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1b06c:	88 23       	and	r24, r24
   1b06e:	81 f0       	breq	.+32     	; 0x1b090 <lcd_settings_menu()+0x76>
    {
	    MENU_ITEM_SUBMENU_P(_T(MSG_MOVE_AXIS), lcd_move_menu_axis);
   1b070:	8b e9       	ldi	r24, 0x9B	; 155
   1b072:	94 e4       	ldi	r25, 0x44	; 68
   1b074:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b078:	6a ea       	ldi	r22, 0xAA	; 170
   1b07a:	74 ed       	ldi	r23, 0xD4	; 212
   1b07c:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	    MENU_ITEM_GCODE_P(_T(MSG_DISABLE_STEPPERS), MSG_M84);
   1b080:	88 e8       	ldi	r24, 0x88	; 136
   1b082:	94 e4       	ldi	r25, 0x44	; 68
   1b084:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b088:	62 ea       	ldi	r22, 0xA2	; 162
   1b08a:	7a e6       	ldi	r23, 0x6A	; 106
   1b08c:	0f 94 cb d0 	call	0x3a196	; 0x3a196 <menu_item_gcode_P(char const*, char const*)>
    }

#ifdef FILAMENT_SENSOR
    MENU_ITEM_SUBMENU_P(_T(MSG_FSENSOR), lcd_fsensor_settings_menu);
   1b090:	8b e4       	ldi	r24, 0x4B	; 75
   1b092:	97 e4       	ldi	r25, 0x47	; 71
   1b094:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b098:	6f e6       	ldi	r22, 0x6F	; 111
   1b09a:	73 ed       	ldi	r23, 0xD3	; 211
   1b09c:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //FILAMENT_SENSOR

    MENU_ITEM_TOGGLE_P(PSTR("MMU"), eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED) ? _T(MSG_ON) : _T(MSG_OFF), mmu_enable_switch);
   1b0a0:	8c ea       	ldi	r24, 0xAC	; 172
   1b0a2:	9c e0       	ldi	r25, 0x0C	; 12
   1b0a4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b0a8:	88 23       	and	r24, r24
   1b0aa:	09 f4       	brne	.+2      	; 0x1b0ae <lcd_settings_menu()+0x94>
   1b0ac:	ac c0       	rjmp	.+344    	; 0x1b206 <lcd_settings_menu()+0x1ec>
   1b0ae:	87 e1       	ldi	r24, 0x17	; 23
   1b0b0:	9c e5       	ldi	r25, 0x5C	; 92
   1b0b2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b0b6:	22 e0       	ldi	r18, 0x02	; 2
   1b0b8:	43 ed       	ldi	r20, 0xD3	; 211
   1b0ba:	54 ee       	ldi	r21, 0xE4	; 228
   1b0bc:	bc 01       	movw	r22, r24
   1b0be:	8f e4       	ldi	r24, 0x4F	; 79
   1b0c0:	99 e8       	ldi	r25, 0x89	; 137
   1b0c2:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
    if (eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED))
   1b0c6:	8c ea       	ldi	r24, 0xAC	; 172
   1b0c8:	9c e0       	ldi	r25, 0x0C	; 12
   1b0ca:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b0ce:	88 23       	and	r24, r24
   1b0d0:	31 f0       	breq	.+12     	; 0x1b0de <lcd_settings_menu()+0xc4>
    { // Communication with MMU not required to reset MMU
        MENU_ITEM_FUNCTION_P(PSTR("Reset MMU"), []() { MMU2::mmu2.Reset(MMU2::MMU2::ResetForm::Software); });
   1b0d2:	64 ea       	ldi	r22, 0xA4	; 164
   1b0d4:	7a e3       	ldi	r23, 0x3A	; 58
   1b0d6:	85 e4       	ldi	r24, 0x45	; 69
   1b0d8:	99 e8       	ldi	r25, 0x89	; 137
   1b0da:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    }

    if (MMU2::mmu2.Enabled())
   1b0de:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1b0e2:	81 30       	cpi	r24, 0x01	; 1
   1b0e4:	51 f4       	brne	.+20     	; 0x1b0fa <lcd_settings_menu()+0xe0>
    { // Only show menus when communicating with MMU
        menuitems_MMU_settings_common();
   1b0e6:	0e 94 57 d2 	call	0x1a4ae	; 0x1a4ae <menuitems_MMU_settings_common()>
        MENU_ITEM_SUBMENU_P(_T(MSG_LOADING_TEST), lcd_mmuLoadingTest);
   1b0ea:	89 e7       	ldi	r24, 0x79	; 121
   1b0ec:	94 e4       	ldi	r25, 0x44	; 68
   1b0ee:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b0f2:	64 eb       	ldi	r22, 0xB4	; 180
   1b0f4:	71 ee       	ldi	r23, 0xE1	; 225
   1b0f6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }

    SETTINGS_FANS_CHECK();
   1b0fa:	0e 94 d9 d1 	call	0x1a3b2	; 0x1a3b2 <SETTINGS_FANS_CHECK()>
    SETTINGS_SILENT_MODE();
   1b0fe:	0e 94 f3 d1 	call	0x1a3e6	; 0x1a3e6 <SETTINGS_SILENT_MODE()>

    if(!farm_mode)
    {
        bSettings=true;                              // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
   1b102:	10 93 fc 03 	sts	0x03FC, r17	; 0x8003fc <bSettings>
        MENU_ITEM_SUBMENU_P(_T(MSG_HW_SETUP), lcd_hw_setup_menu);
   1b106:	8e e6       	ldi	r24, 0x6E	; 110
   1b108:	94 e4       	ldi	r25, 0x44	; 68
   1b10a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b10e:	60 ea       	ldi	r22, 0xA0	; 160
   1b110:	72 ed       	ldi	r23, 0xD2	; 210
   1b112:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    } else MENU_ITEM_FUNCTION_P(_T(MSG_NOZZLE_CNG_MENU),nozzle_change);

	MENU_ITEM_SUBMENU_P(_T(MSG_MESH_BED_LEVELING), lcd_mesh_bed_leveling_settings);
   1b116:	8c ef       	ldi	r24, 0xFC	; 252
   1b118:	94 e4       	ldi	r25, 0x44	; 68
   1b11a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b11e:	6e e0       	ldi	r22, 0x0E	; 14
   1b120:	7a e3       	ldi	r23, 0x3A	; 58
   1b122:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

#if defined (TMC2130) && defined (LINEARITY_CORRECTION)
    MENU_ITEM_SUBMENU_P(_T(MSG_LIN_CORRECTION), lcd_settings_linearity_correction_menu);
   1b126:	8c e5       	ldi	r24, 0x5C	; 92
   1b128:	94 e4       	ldi	r25, 0x44	; 68
   1b12a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b12e:	63 e5       	ldi	r22, 0x53	; 83
   1b130:	71 ef       	ldi	r23, 0xF1	; 241
   1b132:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //LINEARITY_CORRECTION && TMC2130
#ifdef PINDA_THERMISTOR
    if(has_temperature_compensation())
   1b136:	20 e0       	ldi	r18, 0x00	; 0
   1b138:	30 e0       	ldi	r19, 0x00	; 0
   1b13a:	40 e2       	ldi	r20, 0x20	; 32
   1b13c:	51 e4       	ldi	r21, 0x41	; 65
   1b13e:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   1b142:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   1b146:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   1b14a:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   1b14e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1b152:	87 fd       	sbrc	r24, 7
   1b154:	16 c0       	rjmp	.+44     	; 0x1b182 <lcd_settings_menu()+0x168>
        MENU_ITEM_TOGGLE_P(_T(MSG_PINDA_CALIBRATION), eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE) ? _T(MSG_ON) : _T(MSG_OFF), lcd_temp_calibration_set);
   1b156:	8f ea       	ldi	r24, 0xAF	; 175
   1b158:	9f e0       	ldi	r25, 0x0F	; 15
   1b15a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b15e:	88 23       	and	r24, r24
   1b160:	09 f4       	brne	.+2      	; 0x1b164 <lcd_settings_menu()+0x14a>
   1b162:	54 c0       	rjmp	.+168    	; 0x1b20c <lcd_settings_menu()+0x1f2>
   1b164:	87 e1       	ldi	r24, 0x17	; 23
   1b166:	9c e5       	ldi	r25, 0x5C	; 92
   1b168:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b16c:	ec 01       	movw	r28, r24
   1b16e:	85 eb       	ldi	r24, 0xB5	; 181
   1b170:	94 e4       	ldi	r25, 0x44	; 68
   1b172:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b176:	22 e0       	ldi	r18, 0x02	; 2
   1b178:	4f eb       	ldi	r20, 0xBF	; 191
   1b17a:	50 ed       	ldi	r21, 0xD0	; 208
   1b17c:	be 01       	movw	r22, r28
   1b17e:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#endif
#ifdef HAS_SECOND_SERIAL_PORT
    MENU_ITEM_TOGGLE_P(_T(MSG_RPI_PORT), (selectedSerialPort == 0) ? _T(MSG_OFF) : _T(MSG_ON), lcd_second_serial_set);
   1b182:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   1b186:	81 11       	cpse	r24, r1
   1b188:	44 c0       	rjmp	.+136    	; 0x1b212 <lcd_settings_menu()+0x1f8>
   1b18a:	81 e1       	ldi	r24, 0x11	; 17
   1b18c:	9c e5       	ldi	r25, 0x5C	; 92
   1b18e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b192:	ec 01       	movw	r28, r24
   1b194:	81 e5       	ldi	r24, 0x51	; 81
   1b196:	94 e4       	ldi	r25, 0x44	; 68
   1b198:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b19c:	22 e0       	ldi	r18, 0x02	; 2
   1b19e:	4d ea       	ldi	r20, 0xAD	; 173
   1b1a0:	50 ed       	ldi	r21, 0xD0	; 208
   1b1a2:	be 01       	movw	r22, r28
   1b1a4:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#endif //HAS_SECOND_SERIAL

    if (!printingIsPaused()) MENU_ITEM_SUBMENU_P(_T(MSG_BABYSTEP_Z), lcd_babystep_z);
   1b1a8:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1b1ac:	81 11       	cpse	r24, r1
   1b1ae:	08 c0       	rjmp	.+16     	; 0x1b1c0 <lcd_settings_menu()+0x1a6>
   1b1b0:	8e ee       	ldi	r24, 0xEE	; 238
   1b1b2:	96 e4       	ldi	r25, 0x46	; 70
   1b1b4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b1b8:	68 e8       	ldi	r22, 0x88	; 136
   1b1ba:	7a e3       	ldi	r23, 0x3A	; 58
   1b1bc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

#if (LANG_MODE != 0)
	MENU_ITEM_SUBMENU_P(_T(MSG_SELECT_LANGUAGE), lcd_language_menu);
   1b1c0:	8f e3       	ldi	r24, 0x3F	; 63
   1b1c2:	94 e4       	ldi	r25, 0x44	; 68
   1b1c4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b1c8:	66 eb       	ldi	r22, 0xB6	; 182
   1b1ca:	73 ee       	ldi	r23, 0xE3	; 227
   1b1cc:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //(LANG_MODE != 0)

    if (!farm_mode) { //SD related settings are not available in farm mode
        if (card.ToshibaFlashAir_isEnabled())
   1b1d0:	80 91 01 17 	lds	r24, 0x1701	; 0x801701 <card+0x273>
   1b1d4:	88 23       	and	r24, r24
   1b1d6:	01 f1       	breq	.+64     	; 0x1b218 <lcd_settings_menu()+0x1fe>
            MENU_ITEM_TOGGLE_P(_T(MSG_SD_CARD), MSG_TOSHIBA_FLASH_AIR_COMPATIBILITY, lcd_toshiba_flash_air_compatibility_toggle);
   1b1d8:	85 e3       	ldi	r24, 0x35	; 53
   1b1da:	94 e4       	ldi	r25, 0x44	; 68
   1b1dc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b1e0:	22 e0       	ldi	r18, 0x02	; 2
   1b1e2:	43 ea       	ldi	r20, 0xA3	; 163
   1b1e4:	50 ed       	ldi	r21, 0xD0	; 208
   1b1e6:	6a e0       	ldi	r22, 0x0A	; 10
   1b1e8:	7a e6       	ldi	r23, 0x6A	; 106
        else
            MENU_ITEM_TOGGLE_P(_T(MSG_SD_CARD), _T(MSG_NORMAL), lcd_toshiba_flash_air_compatibility_toggle);
   1b1ea:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#ifdef SDCARD_SORT_ALPHA
        switch (eeprom_read_byte((uint8_t*) EEPROM_SD_SORT)) {
   1b1ee:	89 e0       	ldi	r24, 0x09	; 9
   1b1f0:	9f e0       	ldi	r25, 0x0F	; 15
   1b1f2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b1f6:	88 23       	and	r24, r24
   1b1f8:	e9 f0       	breq	.+58     	; 0x1b234 <lcd_settings_menu()+0x21a>
   1b1fa:	81 30       	cpi	r24, 0x01	; 1
   1b1fc:	09 f4       	brne	.+2      	; 0x1b200 <lcd_settings_menu()+0x1e6>
   1b1fe:	6d c0       	rjmp	.+218    	; 0x1b2da <lcd_settings_menu()+0x2c0>
            case SD_SORT_TIME: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_TIME), lcd_sort_type_set); break;
            case SD_SORT_ALPHA: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_ALPHA), lcd_sort_type_set); break;
            default: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_NONE), lcd_sort_type_set);
   1b200:	86 e6       	ldi	r24, 0x66	; 102
   1b202:	99 e4       	ldi	r25, 0x49	; 73
   1b204:	19 c0       	rjmp	.+50     	; 0x1b238 <lcd_settings_menu()+0x21e>

#ifdef FILAMENT_SENSOR
    MENU_ITEM_SUBMENU_P(_T(MSG_FSENSOR), lcd_fsensor_settings_menu);
#endif //FILAMENT_SENSOR

    MENU_ITEM_TOGGLE_P(PSTR("MMU"), eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED) ? _T(MSG_ON) : _T(MSG_OFF), mmu_enable_switch);
   1b206:	81 e1       	ldi	r24, 0x11	; 17
   1b208:	9c e5       	ldi	r25, 0x5C	; 92
   1b20a:	53 cf       	rjmp	.-346    	; 0x1b0b2 <lcd_settings_menu()+0x98>
#if defined (TMC2130) && defined (LINEARITY_CORRECTION)
    MENU_ITEM_SUBMENU_P(_T(MSG_LIN_CORRECTION), lcd_settings_linearity_correction_menu);
#endif //LINEARITY_CORRECTION && TMC2130
#ifdef PINDA_THERMISTOR
    if(has_temperature_compensation())
        MENU_ITEM_TOGGLE_P(_T(MSG_PINDA_CALIBRATION), eeprom_read_byte((unsigned char *)EEPROM_TEMP_CAL_ACTIVE) ? _T(MSG_ON) : _T(MSG_OFF), lcd_temp_calibration_set);
   1b20c:	81 e1       	ldi	r24, 0x11	; 17
   1b20e:	9c e5       	ldi	r25, 0x5C	; 92
   1b210:	ab cf       	rjmp	.-170    	; 0x1b168 <lcd_settings_menu()+0x14e>
#endif
#ifdef HAS_SECOND_SERIAL_PORT
    MENU_ITEM_TOGGLE_P(_T(MSG_RPI_PORT), (selectedSerialPort == 0) ? _T(MSG_OFF) : _T(MSG_ON), lcd_second_serial_set);
   1b212:	87 e1       	ldi	r24, 0x17	; 23
   1b214:	9c e5       	ldi	r25, 0x5C	; 92
   1b216:	bb cf       	rjmp	.-138    	; 0x1b18e <lcd_settings_menu()+0x174>

    if (!farm_mode) { //SD related settings are not available in farm mode
        if (card.ToshibaFlashAir_isEnabled())
            MENU_ITEM_TOGGLE_P(_T(MSG_SD_CARD), MSG_TOSHIBA_FLASH_AIR_COMPATIBILITY, lcd_toshiba_flash_air_compatibility_toggle);
        else
            MENU_ITEM_TOGGLE_P(_T(MSG_SD_CARD), _T(MSG_NORMAL), lcd_toshiba_flash_air_compatibility_toggle);
   1b218:	8c e2       	ldi	r24, 0x2C	; 44
   1b21a:	94 e4       	ldi	r25, 0x44	; 68
   1b21c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b220:	ec 01       	movw	r28, r24
   1b222:	85 e3       	ldi	r24, 0x35	; 53
   1b224:	94 e4       	ldi	r25, 0x44	; 68
   1b226:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b22a:	22 e0       	ldi	r18, 0x02	; 2
   1b22c:	43 ea       	ldi	r20, 0xA3	; 163
   1b22e:	50 ed       	ldi	r21, 0xD0	; 208
   1b230:	be 01       	movw	r22, r28
   1b232:	db cf       	rjmp	.-74     	; 0x1b1ea <lcd_settings_menu()+0x1d0>
#ifdef SDCARD_SORT_ALPHA
        switch (eeprom_read_byte((uint8_t*) EEPROM_SD_SORT)) {
            case SD_SORT_TIME: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_TIME), lcd_sort_type_set); break;
   1b234:	85 e2       	ldi	r24, 0x25	; 37
   1b236:	94 e4       	ldi	r25, 0x44	; 68
            case SD_SORT_ALPHA: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_ALPHA), lcd_sort_type_set); break;
            default: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_NONE), lcd_sort_type_set);
   1b238:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b23c:	ec 01       	movw	r28, r24
   1b23e:	8e e1       	ldi	r24, 0x1E	; 30
   1b240:	94 e4       	ldi	r25, 0x44	; 68
   1b242:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b246:	22 e0       	ldi	r18, 0x02	; 2
   1b248:	41 ee       	ldi	r20, 0xE1	; 225
   1b24a:	50 ed       	ldi	r21, 0xD0	; 208
   1b24c:	be 01       	movw	r22, r28
   1b24e:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
        }
    }
#endif //SDCARD_SORT_ALPHA

	SETTINGS_SOUND;
   1b252:	80 91 de 04 	lds	r24, 0x04DE	; 0x8004de <eSoundMode>
   1b256:	82 30       	cpi	r24, 0x02	; 2
   1b258:	09 f4       	brne	.+2      	; 0x1b25c <lcd_settings_menu()+0x242>
   1b25a:	45 c0       	rjmp	.+138    	; 0x1b2e6 <lcd_settings_menu()+0x2cc>
   1b25c:	83 30       	cpi	r24, 0x03	; 3
   1b25e:	09 f4       	brne	.+2      	; 0x1b262 <lcd_settings_menu()+0x248>
   1b260:	45 c0       	rjmp	.+138    	; 0x1b2ec <lcd_settings_menu()+0x2d2>
   1b262:	81 30       	cpi	r24, 0x01	; 1
   1b264:	e9 f1       	breq	.+122    	; 0x1b2e0 <lcd_settings_menu()+0x2c6>
   1b266:	84 e4       	ldi	r24, 0x44	; 68
   1b268:	97 e4       	ldi	r25, 0x47	; 71
   1b26a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b26e:	ec 01       	movw	r28, r24
   1b270:	8c e3       	ldi	r24, 0x3C	; 60
   1b272:	97 e4       	ldi	r25, 0x47	; 71
   1b274:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b278:	22 e0       	ldi	r18, 0x02	; 2
   1b27a:	4a ec       	ldi	r20, 0xCA	; 202
   1b27c:	50 ed       	ldi	r21, 0xD0	; 208
   1b27e:	be 01       	movw	r22, r28
   1b280:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>

#ifdef LCD_BL_PIN
    if (backlightSupport)
   1b284:	80 91 02 04 	lds	r24, 0x0402	; 0x800402 <backlightSupport>
   1b288:	88 23       	and	r24, r24
   1b28a:	41 f0       	breq	.+16     	; 0x1b29c <lcd_settings_menu()+0x282>
    {
        MENU_ITEM_SUBMENU_P(_T(MSG_BRIGHTNESS), lcd_backlight_menu);
   1b28c:	86 e1       	ldi	r24, 0x16	; 22
   1b28e:	97 e4       	ldi	r25, 0x47	; 71
   1b290:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b294:	68 ee       	ldi	r22, 0xE8	; 232
   1b296:	70 ee       	ldi	r23, 0xE0	; 224
   1b298:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
#endif //LCD_BL_PIN

    //! Enables/disables the bed heating while heating the nozzle for loading/unloading filament
    MENU_ITEM_TOGGLE_P(_N("HBed on load"), eeprom_read_byte((uint8_t *)EEPROM_HEAT_BED_ON_LOAD_FILAMENT) ? _T(MSG_YES) : _T(MSG_NO), lcd_heat_bed_on_load_toggle); ////MSG_HEAT_BED_ON_LOAD c=12
   1b29c:	87 ea       	ldi	r24, 0xA7	; 167
   1b29e:	9c e0       	ldi	r25, 0x0C	; 12
   1b2a0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b2a4:	88 23       	and	r24, r24
   1b2a6:	29 f1       	breq	.+74     	; 0x1b2f2 <lcd_settings_menu()+0x2d8>
   1b2a8:	85 ef       	ldi	r24, 0xF5	; 245
   1b2aa:	97 e4       	ldi	r25, 0x47	; 71
   1b2ac:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b2b0:	22 e0       	ldi	r18, 0x02	; 2
   1b2b2:	46 e1       	ldi	r20, 0x16	; 22
   1b2b4:	50 ed       	ldi	r21, 0xD0	; 208
   1b2b6:	bc 01       	movw	r22, r24
   1b2b8:	8d ef       	ldi	r24, 0xFD	; 253
   1b2ba:	99 e6       	ldi	r25, 0x69	; 105
   1b2bc:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
	if (farm_mode)
	{
		MENU_ITEM_FUNCTION_P(PSTR("Disable farm mode"), lcd_disable_farm_mode);
	}

	MENU_END();
   1b2c0:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
}

static void lcd_settings_menu()
{
	SilentModeMenu = eeprom_read_byte((uint8_t*) EEPROM_SILENT);
	MENU_BEGIN();
   1b2c4:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b2c8:	8f 5f       	subi	r24, 0xFF	; 255
   1b2ca:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1b2ce:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1b2d2:	8f 5f       	subi	r24, 0xFF	; 255
   1b2d4:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1b2d8:	ae ce       	rjmp	.-676    	; 0x1b036 <lcd_settings_menu()+0x1c>
        else
            MENU_ITEM_TOGGLE_P(_T(MSG_SD_CARD), _T(MSG_NORMAL), lcd_toshiba_flash_air_compatibility_toggle);
#ifdef SDCARD_SORT_ALPHA
        switch (eeprom_read_byte((uint8_t*) EEPROM_SD_SORT)) {
            case SD_SORT_TIME: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_TIME), lcd_sort_type_set); break;
            case SD_SORT_ALPHA: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_SORT_ALPHA), lcd_sort_type_set); break;
   1b2da:	83 e1       	ldi	r24, 0x13	; 19
   1b2dc:	94 e4       	ldi	r25, 0x44	; 68
   1b2de:	ac cf       	rjmp	.-168    	; 0x1b238 <lcd_settings_menu()+0x21e>
            default: MENU_ITEM_TOGGLE_P(_T(MSG_SORT), _T(MSG_NONE), lcd_sort_type_set);
        }
    }
#endif //SDCARD_SORT_ALPHA

	SETTINGS_SOUND;
   1b2e0:	85 e3       	ldi	r24, 0x35	; 53
   1b2e2:	97 e4       	ldi	r25, 0x47	; 71
   1b2e4:	c2 cf       	rjmp	.-124    	; 0x1b26a <lcd_settings_menu()+0x250>
   1b2e6:	8c e2       	ldi	r24, 0x2C	; 44
   1b2e8:	97 e4       	ldi	r25, 0x47	; 71
   1b2ea:	bf cf       	rjmp	.-130    	; 0x1b26a <lcd_settings_menu()+0x250>
   1b2ec:	83 e2       	ldi	r24, 0x23	; 35
   1b2ee:	97 e4       	ldi	r25, 0x47	; 71
   1b2f0:	bc cf       	rjmp	.-136    	; 0x1b26a <lcd_settings_menu()+0x250>
        MENU_ITEM_SUBMENU_P(_T(MSG_BRIGHTNESS), lcd_backlight_menu);
    }
#endif //LCD_BL_PIN

    //! Enables/disables the bed heating while heating the nozzle for loading/unloading filament
    MENU_ITEM_TOGGLE_P(_N("HBed on load"), eeprom_read_byte((uint8_t *)EEPROM_HEAT_BED_ON_LOAD_FILAMENT) ? _T(MSG_YES) : _T(MSG_NO), lcd_heat_bed_on_load_toggle); ////MSG_HEAT_BED_ON_LOAD c=12
   1b2f2:	8b ef       	ldi	r24, 0xFB	; 251
   1b2f4:	97 e4       	ldi	r25, 0x47	; 71
   1b2f6:	da cf       	rjmp	.-76     	; 0x1b2ac <lcd_settings_menu()+0x292>
	{
		MENU_ITEM_FUNCTION_P(PSTR("Disable farm mode"), lcd_disable_farm_mode);
	}

	MENU_END();
}
   1b2f8:	df 91       	pop	r29
   1b2fa:	cf 91       	pop	r28
   1b2fc:	1f 91       	pop	r17
   1b2fe:	08 95       	ret

0001b300 <lcd_calibration_menu()>:
}
#endif //TMC2130

static void lcd_calibration_menu()
{
    MENU_BEGIN();
   1b300:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1b304:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1b308:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b30c:	84 30       	cpi	r24, 0x04	; 4
   1b30e:	08 f0       	brcs	.+2      	; 0x1b312 <lcd_calibration_menu()+0x12>
   1b310:	8f c0       	rjmp	.+286    	; 0x1b430 <lcd_calibration_menu()+0x130>
   1b312:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1b316:	8b e3       	ldi	r24, 0x3B	; 59
   1b318:	98 e4       	ldi	r25, 0x48	; 72
   1b31a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b31e:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_FUNCTION_P(_T(MSG_WIZARD), lcd_wizard);
   1b322:	85 e4       	ldi	r24, 0x45	; 69
   1b324:	95 e4       	ldi	r25, 0x45	; 69
   1b326:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b32a:	6c e9       	ldi	r22, 0x9C	; 156
   1b32c:	7a e3       	ldi	r23, 0x3A	; 58
   1b32e:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    if (lcd_commands_type == LcdCommands::Idle)
   1b332:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1b336:	81 11       	cpse	r24, r1
   1b338:	08 c0       	rjmp	.+16     	; 0x1b34a <lcd_calibration_menu()+0x4a>
    {
        MENU_ITEM_SUBMENU_P(_T(MSG_V2_CALIBRATION), lcd_first_layer_calibration_reset);
   1b33a:	84 ea       	ldi	r24, 0xA4	; 164
   1b33c:	95 e4       	ldi	r25, 0x45	; 69
   1b33e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b342:	61 e9       	ldi	r22, 0x91	; 145
   1b344:	7f ee       	ldi	r23, 0xEF	; 239
   1b346:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
    MENU_ITEM_GCODE_P(_T(MSG_AUTO_HOME), G28W);
   1b34a:	89 e4       	ldi	r24, 0x49	; 73
   1b34c:	9b e5       	ldi	r25, 0x5B	; 91
   1b34e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b352:	60 e4       	ldi	r22, 0x40	; 64
   1b354:	7b e6       	ldi	r23, 0x6B	; 107
   1b356:	0f 94 cb d0 	call	0x3a196	; 0x3a196 <menu_item_gcode_P(char const*, char const*)>
#ifdef TMC2130
    MENU_ITEM_FUNCTION_P(_T(MSG_BELTTEST), lcd_belttest_v);
   1b35a:	89 e3       	ldi	r24, 0x39	; 57
   1b35c:	95 e4       	ldi	r25, 0x45	; 69
   1b35e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b362:	6f e2       	ldi	r22, 0x2F	; 47
   1b364:	70 ee       	ldi	r23, 0xE0	; 224
   1b366:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
#endif //TMC2130
    MENU_ITEM_FUNCTION_P(_T(MSG_SELFTEST), lcd_selftest_v);
   1b36a:	8e e2       	ldi	r24, 0x2E	; 46
   1b36c:	95 e4       	ldi	r25, 0x45	; 69
   1b36e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b372:	64 eb       	ldi	r22, 0xB4	; 180
   1b374:	78 ef       	ldi	r23, 0xF8	; 248
   1b376:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    // MK2
    MENU_ITEM_FUNCTION_P(_T(MSG_CALIBRATE_BED), lcd_mesh_calibration);
   1b37a:	8e e1       	ldi	r24, 0x1E	; 30
   1b37c:	95 e4       	ldi	r25, 0x45	; 69
   1b37e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b382:	64 e7       	ldi	r22, 0x74	; 116
   1b384:	7f ec       	ldi	r23, 0xCF	; 207
   1b386:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    // "Calibrate Z" with storing the reference values to EEPROM.
    MENU_ITEM_FUNCTION_P(_T(MSG_HOMEYZ), lcd_mesh_calibration_z);
   1b38a:	80 e1       	ldi	r24, 0x10	; 16
   1b38c:	95 e4       	ldi	r25, 0x45	; 69
   1b38e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b392:	6b e7       	ldi	r22, 0x7B	; 123
   1b394:	7f ec       	ldi	r23, 0xCF	; 207
   1b396:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>

    MENU_ITEM_SUBMENU_P(_T(MSG_MESH_BED_LEVELING), lcd_mesh_bedleveling); ////MSG_MESH_BED_LEVELING c=18
   1b39a:	8c ef       	ldi	r24, 0xFC	; 252
   1b39c:	94 e4       	ldi	r25, 0x44	; 68
   1b39e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b3a2:	62 e8       	ldi	r22, 0x82	; 130
   1b3a4:	7f ec       	ldi	r23, 0xCF	; 207
   1b3a6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

    MENU_ITEM_SUBMENU_P(_T(MSG_BED_CORRECTION_MENU), lcd_adjust_bed);
   1b3aa:	88 ee       	ldi	r24, 0xE8	; 232
   1b3ac:	94 e4       	ldi	r25, 0x44	; 68
   1b3ae:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b3b2:	6a ef       	ldi	r22, 0xFA	; 250
   1b3b4:	79 e3       	ldi	r23, 0x39	; 57
   1b3b6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    MENU_ITEM_SUBMENU_P(_T(MSG_PID_EXTRUDER), pid_extruder);
   1b3ba:	86 ed       	ldi	r24, 0xD6	; 214
   1b3bc:	94 e4       	ldi	r25, 0x44	; 68
   1b3be:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b3c2:	62 ec       	ldi	r22, 0xC2	; 194
   1b3c4:	7a e3       	ldi	r23, 0x3A	; 58
   1b3c6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#ifndef TMC2130
    MENU_ITEM_SUBMENU_P(_T(MSG_SHOW_END_STOPS), menu_show_end_stops);
#endif
    MENU_ITEM_GCODE_P(_T(MSG_CALIBRATE_BED_RESET), PSTR("M44"));
   1b3ca:	82 ec       	ldi	r24, 0xC2	; 194
   1b3cc:	94 e4       	ldi	r25, 0x44	; 68
   1b3ce:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b3d2:	63 e5       	ldi	r22, 0x53	; 83
   1b3d4:	79 e8       	ldi	r23, 0x89	; 137
   1b3d6:	0f 94 cb d0 	call	0x3a196	; 0x3a196 <menu_item_gcode_P(char const*, char const*)>
#ifdef PINDA_THERMISTOR
    if(has_temperature_compensation())
   1b3da:	20 e0       	ldi	r18, 0x00	; 0
   1b3dc:	30 e0       	ldi	r19, 0x00	; 0
   1b3de:	40 e2       	ldi	r20, 0x20	; 32
   1b3e0:	51 e4       	ldi	r21, 0x41	; 65
   1b3e2:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   1b3e6:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   1b3ea:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   1b3ee:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   1b3f2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1b3f6:	87 fd       	sbrc	r24, 7
   1b3f8:	08 c0       	rjmp	.+16     	; 0x1b40a <lcd_calibration_menu()+0x10a>
        MENU_ITEM_FUNCTION_P(_T(MSG_PINDA_CALIBRATION), lcd_calibrate_pinda);
   1b3fa:	85 eb       	ldi	r24, 0xB5	; 181
   1b3fc:	94 e4       	ldi	r25, 0x44	; 68
   1b3fe:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b402:	69 e8       	ldi	r22, 0x89	; 137
   1b404:	7f ec       	ldi	r23, 0xCF	; 207
   1b406:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
#endif

#ifdef THERMAL_MODEL
    MENU_ITEM_FUNCTION_P(_n("Thermal Model cal."), lcd_thermal_model_cal);
   1b40a:	6d e9       	ldi	r22, 0x9D	; 157
   1b40c:	7e ec       	ldi	r23, 0xCE	; 206
   1b40e:	83 e1       	ldi	r24, 0x13	; 19
   1b410:	9a e6       	ldi	r25, 0x6A	; 106
   1b412:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
#endif //THERMAL_MODEL

    MENU_END();
   1b416:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
}
#endif //TMC2130

static void lcd_calibration_menu()
{
    MENU_BEGIN();
   1b41a:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b41e:	8f 5f       	subi	r24, 0xFF	; 255
   1b420:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1b424:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1b428:	8f 5f       	subi	r24, 0xFF	; 255
   1b42a:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1b42e:	6c cf       	rjmp	.-296    	; 0x1b308 <lcd_calibration_menu()+0x8>
#ifdef THERMAL_MODEL
    MENU_ITEM_FUNCTION_P(_n("Thermal Model cal."), lcd_thermal_model_cal);
#endif //THERMAL_MODEL

    MENU_END();
}
   1b430:	08 95       	ret

0001b432 <menuitems_temperature_common()>:
        }
#endif // TMC2130
    }
}

static void menuitems_temperature_common() {
   1b432:	ef 92       	push	r14
   1b434:	ff 92       	push	r15
   1b436:	0f 93       	push	r16
   1b438:	1f 93       	push	r17
#if TEMP_SENSOR_0 != 0
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_NOZZLE), &target_temperature[0], 0, HEATER_0_MAXTEMP - 10, LCD_JUMP_HOTEND_TEMP);
   1b43a:	84 eb       	ldi	r24, 0xB4	; 180
   1b43c:	93 e4       	ldi	r25, 0x43	; 67
   1b43e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b442:	28 ec       	ldi	r18, 0xC8	; 200
   1b444:	e2 2e       	mov	r14, r18
   1b446:	f1 2c       	mov	r15, r1
   1b448:	07 e2       	ldi	r16, 0x27	; 39
   1b44a:	11 e0       	ldi	r17, 0x01	; 1
   1b44c:	30 e0       	ldi	r19, 0x00	; 0
   1b44e:	20 e0       	ldi	r18, 0x00	; 0
   1b450:	40 e1       	ldi	r20, 0x10	; 16
   1b452:	66 eb       	ldi	r22, 0xB6	; 182
   1b454:	7d e0       	ldi	r23, 0x0D	; 13
   1b456:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
#endif
#if TEMP_SENSOR_BED != 0
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_BED), &target_temperature_bed, 0, BED_MAXTEMP - 5, LCD_JUMP_BED_TEMP);
   1b45a:	89 e9       	ldi	r24, 0x99	; 153
   1b45c:	93 e4       	ldi	r25, 0x43	; 67
   1b45e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b462:	32 e3       	ldi	r19, 0x32	; 50
   1b464:	e3 2e       	mov	r14, r19
   1b466:	f1 2c       	mov	r15, r1
   1b468:	08 e7       	ldi	r16, 0x78	; 120
   1b46a:	10 e0       	ldi	r17, 0x00	; 0
   1b46c:	30 e0       	ldi	r19, 0x00	; 0
   1b46e:	20 e0       	ldi	r18, 0x00	; 0
   1b470:	40 e1       	ldi	r20, 0x10	; 16
   1b472:	62 e7       	ldi	r22, 0x72	; 114
   1b474:	76 e0       	ldi	r23, 0x06	; 6
   1b476:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
#endif
    MENU_ITEM_EDIT_int3_jmp_P(_T(MSG_FAN_SPEED), &fanSpeed, 0, 255, LCD_JUMP_FAN_SPEED);
   1b47a:	8d e8       	ldi	r24, 0x8D	; 141
   1b47c:	93 e4       	ldi	r25, 0x43	; 67
   1b47e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b482:	4f e7       	ldi	r20, 0x7F	; 127
   1b484:	e4 2e       	mov	r14, r20
   1b486:	f1 2c       	mov	r15, r1
   1b488:	0f ef       	ldi	r16, 0xFF	; 255
   1b48a:	10 e0       	ldi	r17, 0x00	; 0
   1b48c:	30 e0       	ldi	r19, 0x00	; 0
   1b48e:	20 e0       	ldi	r18, 0x00	; 0
   1b490:	48 e0       	ldi	r20, 0x08	; 8
   1b492:	67 ee       	ldi	r22, 0xE7	; 231
   1b494:	73 e0       	ldi	r23, 0x03	; 3
   1b496:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
}
   1b49a:	1f 91       	pop	r17
   1b49c:	0f 91       	pop	r16
   1b49e:	ff 90       	pop	r15
   1b4a0:	ef 90       	pop	r14
   1b4a2:	08 95       	ret

0001b4a4 <lcd_control_temperature_menu()>:
}
#endif //LCD_BL_PIN

static void lcd_control_temperature_menu()
{
  MENU_BEGIN();
   1b4a4:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1b4a8:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1b4ac:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b4b0:	84 30       	cpi	r24, 0x04	; 4
   1b4b2:	b8 f4       	brcc	.+46     	; 0x1b4e2 <lcd_control_temperature_menu()+0x3e>
   1b4b4:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
  MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
   1b4b8:	8a ee       	ldi	r24, 0xEA	; 234
   1b4ba:	97 e4       	ldi	r25, 0x47	; 71
   1b4bc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b4c0:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

  menuitems_temperature_common();
   1b4c4:	0e 94 19 da 	call	0x1b432	; 0x1b432 <menuitems_temperature_common()>

  MENU_END();
   1b4c8:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
}
#endif //LCD_BL_PIN

static void lcd_control_temperature_menu()
{
  MENU_BEGIN();
   1b4cc:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b4d0:	8f 5f       	subi	r24, 0xFF	; 255
   1b4d2:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1b4d6:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1b4da:	8f 5f       	subi	r24, 0xFF	; 255
   1b4dc:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1b4e0:	e5 cf       	rjmp	.-54     	; 0x1b4ac <lcd_control_temperature_menu()+0x8>
  MENU_ITEM_BACK_P(_T(MSG_SETTINGS));

  menuitems_temperature_common();

  MENU_END();
}
   1b4e2:	08 95       	ret

0001b4e4 <lcd_tune_menu()>:
#define MENU_ITEM_EDIT_advance_K() do { lcd_advance_K(); } while (0)
#endif


static void lcd_tune_menu()
{
   1b4e4:	ef 92       	push	r14
   1b4e6:	ff 92       	push	r15
   1b4e8:	0f 93       	push	r16
   1b4ea:	1f 93       	push	r17
   1b4ec:	cf 93       	push	r28
   1b4ee:	df 93       	push	r29
   1b4f0:	80 91 bc 02 	lds	r24, 0x02BC	; 0x8002bc <extrudemultiply>
   1b4f4:	90 91 bd 02 	lds	r25, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
		//! it needs to be applied.
		int16_t extrudemultiply;
	} _menu_data_t;
	static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
	_menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);
	if (_md->status == 0)
   1b4f8:	20 91 b6 03 	lds	r18, 0x03B6	; 0x8003b6 <menu_data+0xd>
   1b4fc:	21 11       	cpse	r18, r1
   1b4fe:	97 c0       	rjmp	.+302    	; 0x1b62e <lcd_tune_menu()+0x14a>
	{
		// Menu was entered. Mark the menu as entered and save the current extrudemultiply value.
		_md->status = 1;
   1b500:	21 e0       	ldi	r18, 0x01	; 1
   1b502:	20 93 b6 03 	sts	0x03B6, r18	; 0x8003b6 <menu_data+0xd>
		_md->extrudemultiply = extrudemultiply;
   1b506:	90 93 b8 03 	sts	0x03B8, r25	; 0x8003b8 <menu_data+0xf>
   1b50a:	80 93 b7 03 	sts	0x03B7, r24	; 0x8003b7 <menu_data+0xe>
		// extrudemultiply has been changed from the child menu. Apply the new value.
		_md->extrudemultiply = extrudemultiply;
		calculate_extruder_multipliers();
	}

	SilentModeMenu = eeprom_read_byte((uint8_t*) EEPROM_SILENT);
   1b50e:	8f ef       	ldi	r24, 0xFF	; 255
   1b510:	9f e0       	ldi	r25, 0x0F	; 15
   1b512:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1b516:	80 93 a4 03 	sts	0x03A4, r24	; 0x8003a4 <SilentModeMenu>

	MENU_BEGIN();
   1b51a:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1b51e:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1b522:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b526:	84 30       	cpi	r24, 0x04	; 4
   1b528:	08 f0       	brcs	.+2      	; 0x1b52c <lcd_tune_menu()+0x48>
   1b52a:	99 c0       	rjmp	.+306    	; 0x1b65e <lcd_tune_menu()+0x17a>
   1b52c:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	ON_MENU_LEAVE(
   1b530:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   1b534:	81 11       	cpse	r24, r1
   1b536:	0e 94 6a 64 	call	0xc8d4	; 0xc8d4 <refresh_saved_feedrate_multiplier_in_ram()>
		refresh_saved_feedrate_multiplier_in_ram();
	);
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1b53a:	8b e3       	ldi	r24, 0x3B	; 59
   1b53c:	98 e4       	ldi	r25, 0x48	; 72
   1b53e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b542:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	MENU_ITEM_EDIT_int3_P(_T(MSG_SPEED), &feedmultiply, 10, 999);
   1b546:	82 e7       	ldi	r24, 0x72	; 114
   1b548:	97 e4       	ldi	r25, 0x47	; 71
   1b54a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b54e:	f1 2c       	mov	r15, r1
   1b550:	e1 2c       	mov	r14, r1
   1b552:	07 ee       	ldi	r16, 0xE7	; 231
   1b554:	13 e0       	ldi	r17, 0x03	; 3
   1b556:	2a e0       	ldi	r18, 0x0A	; 10
   1b558:	30 e0       	ldi	r19, 0x00	; 0
   1b55a:	40 e1       	ldi	r20, 0x10	; 16
   1b55c:	69 e3       	ldi	r22, 0x39	; 57
   1b55e:	72 e0       	ldi	r23, 0x02	; 2
   1b560:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>

	menuitems_temperature_common();
   1b564:	0e 94 19 da 	call	0x1b432	; 0x1b432 <menuitems_temperature_common()>

	MENU_ITEM_EDIT_int3_P(_T(MSG_FLOW), &extrudemultiply, 10, 999);
   1b568:	8b e6       	ldi	r24, 0x6B	; 107
   1b56a:	97 e4       	ldi	r25, 0x47	; 71
   1b56c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b570:	2a e0       	ldi	r18, 0x0A	; 10
   1b572:	30 e0       	ldi	r19, 0x00	; 0
   1b574:	40 e1       	ldi	r20, 0x10	; 16
   1b576:	6c eb       	ldi	r22, 0xBC	; 188
   1b578:	72 e0       	ldi	r23, 0x02	; 2
   1b57a:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
#ifdef LA_LIVE_K
	MENU_ITEM_EDIT_advance_K();
#endif
#ifdef FILAMENTCHANGEENABLE
    if (!farm_mode)
        MENU_ITEM_FUNCTION_P(_T(MSG_FILAMENTCHANGE), lcd_colorprint_change);
   1b57e:	89 e5       	ldi	r24, 0x59	; 89
   1b580:	97 e4       	ldi	r25, 0x47	; 71
   1b582:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b586:	6a e5       	ldi	r22, 0x5A	; 90
   1b588:	75 ef       	ldi	r23, 0xF5	; 245
   1b58a:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
#endif
    if (printingIsPaused()) {// Don't allow rehome if actively printing. Maaaaybe it could work to insert on the fly, seems too risky.
   1b58e:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   1b592:	88 23       	and	r24, r24
   1b594:	41 f0       	breq	.+16     	; 0x1b5a6 <lcd_tune_menu()+0xc2>
        MENU_ITEM_GCODE_P(_T(MSG_AUTO_HOME),PSTR("G28 XY"));
   1b596:	89 e4       	ldi	r24, 0x49	; 73
   1b598:	9b e5       	ldi	r25, 0x5B	; 91
   1b59a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b59e:	6b e6       	ldi	r22, 0x6B	; 107
   1b5a0:	79 e8       	ldi	r23, 0x89	; 137
   1b5a2:	0f 94 cb d0 	call	0x3a196	; 0x3a196 <menu_item_gcode_P(char const*, char const*)>
    }
#ifdef FILAMENT_SENSOR
    MENU_ITEM_SUBMENU_P(_T(MSG_FSENSOR), lcd_fsensor_settings_menu);
   1b5a6:	8b e4       	ldi	r24, 0x4B	; 75
   1b5a8:	97 e4       	ldi	r25, 0x47	; 71
   1b5aa:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b5ae:	6f e6       	ldi	r22, 0x6F	; 111
   1b5b0:	73 ed       	ldi	r23, 0xD3	; 211
   1b5b2:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //FILAMENT_SENSOR

    if (MMU2::mmu2.Enabled())
   1b5b6:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1b5ba:	81 30       	cpi	r24, 0x01	; 1
   1b5bc:	11 f4       	brne	.+4      	; 0x1b5c2 <lcd_tune_menu()+0xde>
    {
        menuitems_MMU_settings_common();
   1b5be:	0e 94 57 d2 	call	0x1a4ae	; 0x1a4ae <menuitems_MMU_settings_common()>
    }

    SETTINGS_FANS_CHECK();
   1b5c2:	0e 94 d9 d1 	call	0x1a3b2	; 0x1a3b2 <SETTINGS_FANS_CHECK()>
    SETTINGS_SILENT_MODE();
   1b5c6:	0e 94 f3 d1 	call	0x1a3e6	; 0x1a3e6 <SETTINGS_SILENT_MODE()>
    SETTINGS_SOUND;
   1b5ca:	80 91 de 04 	lds	r24, 0x04DE	; 0x8004de <eSoundMode>
   1b5ce:	82 30       	cpi	r24, 0x02	; 2
   1b5d0:	09 f4       	brne	.+2      	; 0x1b5d4 <lcd_tune_menu()+0xf0>
   1b5d2:	3f c0       	rjmp	.+126    	; 0x1b652 <lcd_tune_menu()+0x16e>
   1b5d4:	83 30       	cpi	r24, 0x03	; 3
   1b5d6:	09 f4       	brne	.+2      	; 0x1b5da <lcd_tune_menu()+0xf6>
   1b5d8:	3f c0       	rjmp	.+126    	; 0x1b658 <lcd_tune_menu()+0x174>
   1b5da:	81 30       	cpi	r24, 0x01	; 1
   1b5dc:	b9 f1       	breq	.+110    	; 0x1b64c <lcd_tune_menu()+0x168>
   1b5de:	84 e4       	ldi	r24, 0x44	; 68
   1b5e0:	97 e4       	ldi	r25, 0x47	; 71
   1b5e2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b5e6:	ec 01       	movw	r28, r24
   1b5e8:	8c e3       	ldi	r24, 0x3C	; 60
   1b5ea:	97 e4       	ldi	r25, 0x47	; 71
   1b5ec:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b5f0:	22 e0       	ldi	r18, 0x02	; 2
   1b5f2:	4a ec       	ldi	r20, 0xCA	; 202
   1b5f4:	50 ed       	ldi	r21, 0xD0	; 208
   1b5f6:	be 01       	movw	r22, r28
   1b5f8:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#ifdef LCD_BL_PIN
    if (backlightSupport)
   1b5fc:	80 91 02 04 	lds	r24, 0x0402	; 0x800402 <backlightSupport>
   1b600:	88 23       	and	r24, r24
   1b602:	41 f0       	breq	.+16     	; 0x1b614 <lcd_tune_menu()+0x130>
    {
        MENU_ITEM_SUBMENU_P(_T(MSG_BRIGHTNESS), lcd_backlight_menu);
   1b604:	86 e1       	ldi	r24, 0x16	; 22
   1b606:	97 e4       	ldi	r25, 0x47	; 71
   1b608:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b60c:	68 ee       	ldi	r22, 0xE8	; 232
   1b60e:	70 ee       	ldi	r23, 0xE0	; 224
   1b610:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
#endif //LCD_BL_PIN
	MENU_END();
   1b614:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
		calculate_extruder_multipliers();
	}

	SilentModeMenu = eeprom_read_byte((uint8_t*) EEPROM_SILENT);

	MENU_BEGIN();
   1b618:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1b61c:	8f 5f       	subi	r24, 0xFF	; 255
   1b61e:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1b622:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1b626:	8f 5f       	subi	r24, 0xFF	; 255
   1b628:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1b62c:	7a cf       	rjmp	.-268    	; 0x1b522 <lcd_tune_menu()+0x3e>
	{
		// Menu was entered. Mark the menu as entered and save the current extrudemultiply value.
		_md->status = 1;
		_md->extrudemultiply = extrudemultiply;
	}
	else if (_md->extrudemultiply != extrudemultiply)
   1b62e:	20 91 b7 03 	lds	r18, 0x03B7	; 0x8003b7 <menu_data+0xe>
   1b632:	30 91 b8 03 	lds	r19, 0x03B8	; 0x8003b8 <menu_data+0xf>
   1b636:	28 17       	cp	r18, r24
   1b638:	39 07       	cpc	r19, r25
   1b63a:	09 f4       	brne	.+2      	; 0x1b63e <lcd_tune_menu()+0x15a>
   1b63c:	68 cf       	rjmp	.-304    	; 0x1b50e <lcd_tune_menu()+0x2a>
	{
		// extrudemultiply has been changed from the child menu. Apply the new value.
		_md->extrudemultiply = extrudemultiply;
   1b63e:	90 93 b8 03 	sts	0x03B8, r25	; 0x8003b8 <menu_data+0xf>
   1b642:	80 93 b7 03 	sts	0x03B7, r24	; 0x8003b7 <menu_data+0xe>
		calculate_extruder_multipliers();
   1b646:	0e 94 40 65 	call	0xca80	; 0xca80 <calculate_extruder_multipliers()>
   1b64a:	61 cf       	rjmp	.-318    	; 0x1b50e <lcd_tune_menu()+0x2a>
        menuitems_MMU_settings_common();
    }

    SETTINGS_FANS_CHECK();
    SETTINGS_SILENT_MODE();
    SETTINGS_SOUND;
   1b64c:	85 e3       	ldi	r24, 0x35	; 53
   1b64e:	97 e4       	ldi	r25, 0x47	; 71
   1b650:	c8 cf       	rjmp	.-112    	; 0x1b5e2 <lcd_tune_menu()+0xfe>
   1b652:	8c e2       	ldi	r24, 0x2C	; 44
   1b654:	97 e4       	ldi	r25, 0x47	; 71
   1b656:	c5 cf       	rjmp	.-118    	; 0x1b5e2 <lcd_tune_menu()+0xfe>
   1b658:	83 e2       	ldi	r24, 0x23	; 35
   1b65a:	97 e4       	ldi	r25, 0x47	; 71
   1b65c:	c2 cf       	rjmp	.-124    	; 0x1b5e2 <lcd_tune_menu()+0xfe>
    {
        MENU_ITEM_SUBMENU_P(_T(MSG_BRIGHTNESS), lcd_backlight_menu);
    }
#endif //LCD_BL_PIN
	MENU_END();
}
   1b65e:	df 91       	pop	r29
   1b660:	cf 91       	pop	r28
   1b662:	1f 91       	pop	r17
   1b664:	0f 91       	pop	r16
   1b666:	ff 90       	pop	r15
   1b668:	ef 90       	pop	r14
   1b66a:	08 95       	ret

0001b66c <lcd_language()>:
	}
}

#if (LANG_MODE != 0)
void lcd_language()
{
   1b66c:	cf 93       	push	r28
   1b66e:	df 93       	push	r29
	lcd_update_enable(true);
   1b670:	81 e0       	ldi	r24, 0x01	; 1
   1b672:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	menu_goto(lcd_language_menu, 0, true, true);
   1b676:	21 e0       	ldi	r18, 0x01	; 1
   1b678:	41 e0       	ldi	r20, 0x01	; 1
   1b67a:	70 e0       	ldi	r23, 0x00	; 0
   1b67c:	60 e0       	ldi	r22, 0x00	; 0
   1b67e:	86 eb       	ldi	r24, 0xB6	; 182
   1b680:	93 ee       	ldi	r25, 0xE3	; 227
   1b682:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
   1b686:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
	lcd_timeoutToStatus.stop(); //infinite timeout
	while ((menu_menu != lcd_status_screen) && (!lang_is_selected()))
   1b68a:	c0 91 13 04 	lds	r28, 0x0413	; 0x800413 <menu_menu>
   1b68e:	d0 91 14 04 	lds	r29, 0x0414	; 0x800414 <menu_menu+0x1>
   1b692:	0e 94 a4 70 	call	0xe148	; 0xe148 <lang_is_selected>
   1b696:	c6 52       	subi	r28, 0x26	; 38
   1b698:	da 43       	sbci	r29, 0x3A	; 58
   1b69a:	39 f0       	breq	.+14     	; 0x1b6aa <lcd_language()+0x3e>
   1b69c:	81 11       	cpse	r24, r1
   1b69e:	07 c0       	rjmp	.+14     	; 0x1b6ae <lcd_language()+0x42>
	{
		delay_keep_alive(50);
   1b6a0:	82 e3       	ldi	r24, 0x32	; 50
   1b6a2:	90 e0       	ldi	r25, 0x00	; 0
   1b6a4:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   1b6a8:	f0 cf       	rjmp	.-32     	; 0x1b68a <lcd_language()+0x1e>
	}
	if (lang_is_selected())
   1b6aa:	88 23       	and	r24, r24
   1b6ac:	21 f0       	breq	.+8      	; 0x1b6b6 <lcd_language()+0x4a>
		lcd_return_to_status();
	else
		lang_select(LANG_ID_PRI);
}
   1b6ae:	df 91       	pop	r29
   1b6b0:	cf 91       	pop	r28
	while ((menu_menu != lcd_status_screen) && (!lang_is_selected()))
	{
		delay_keep_alive(50);
	}
	if (lang_is_selected())
		lcd_return_to_status();
   1b6b2:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
	else
		lang_select(LANG_ID_PRI);
   1b6b6:	80 e0       	ldi	r24, 0x00	; 0
}
   1b6b8:	df 91       	pop	r29
   1b6ba:	cf 91       	pop	r28
		delay_keep_alive(50);
	}
	if (lang_is_selected())
		lcd_return_to_status();
	else
		lang_select(LANG_ID_PRI);
   1b6bc:	0c 94 bb 71 	jmp	0xe376	; 0xe376 <lang_select>

0001b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>:
}

#endif //FANCHECK

static uint8_t lcd_selftest_screen(TestScreen screen, uint8_t _progress, uint8_t _progress_scale, bool _clear, uint16_t _delay)
{
   1b6c0:	bf 92       	push	r11
   1b6c2:	cf 92       	push	r12
   1b6c4:	df 92       	push	r13
   1b6c6:	ef 92       	push	r14
   1b6c8:	ff 92       	push	r15
   1b6ca:	0f 93       	push	r16
   1b6cc:	1f 93       	push	r17
   1b6ce:	cf 93       	push	r28
   1b6d0:	df 93       	push	r29
   1b6d2:	c8 2f       	mov	r28, r24
   1b6d4:	f6 2e       	mov	r15, r22
   1b6d6:	e4 2e       	mov	r14, r20
   1b6d8:	b2 2e       	mov	r11, r18
   1b6da:	68 01       	movw	r12, r16

	lcd_update_enable(false);
   1b6dc:	80 e0       	ldi	r24, 0x00	; 0
   1b6de:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	const char _indicator = (_progress >= _progress_scale) ? '-' : '|';
   1b6e2:	dc e7       	ldi	r29, 0x7C	; 124
   1b6e4:	fe 14       	cp	r15, r14
   1b6e6:	08 f0       	brcs	.+2      	; 0x1b6ea <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x2a>
   1b6e8:	dd e2       	ldi	r29, 0x2D	; 45
	if (_clear)
   1b6ea:	bb 20       	and	r11, r11
   1b6ec:	09 f1       	breq	.+66     	; 0x1b730 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x70>
		lcd_clear();
   1b6ee:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	else
		lcd_home();

	if (screen == TestScreen::ExtruderFan) lcd_puts_P(_T(MSG_SELFTEST_FAN));
   1b6f2:	c1 11       	cpse	r28, r1
   1b6f4:	20 c0       	rjmp	.+64     	; 0x1b736 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x76>
	if (screen == TestScreen::PrintFan) lcd_puts_P(_T(MSG_SELFTEST_FAN));
	if (screen == TestScreen::FansOk) lcd_puts_P(_T(MSG_SELFTEST_FAN));
   1b6f6:	8a ed       	ldi	r24, 0xDA	; 218
   1b6f8:	95 e5       	ldi	r25, 0x55	; 85
	if (screen == TestScreen::EndStops) lcd_puts_P(_T(MSG_SELFTEST_CHECK_ENDSTOPS));
	if (screen == TestScreen::AxisX) lcd_puts_P(_T(MSG_CHECKING_X));
	if (screen == TestScreen::AxisY) lcd_puts_P(_T(MSG_CHECKING_Y));
	if (screen == TestScreen::AxisZ) lcd_puts_P(_T(MSG_SELFTEST_CHECK_Z));
	if (screen == TestScreen::Bed) lcd_puts_P(_T(MSG_SELFTEST_CHECK_BED));
   1b6fa:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b6fe:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
	if (screen == TestScreen::Hotend
	    || screen == TestScreen::HotendOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_HOTEND));
   1b702:	88 ef       	ldi	r24, 0xF8	; 248
   1b704:	8c 0f       	add	r24, r28
	if (screen == TestScreen::EndStops) lcd_puts_P(_T(MSG_SELFTEST_CHECK_ENDSTOPS));
	if (screen == TestScreen::AxisX) lcd_puts_P(_T(MSG_CHECKING_X));
	if (screen == TestScreen::AxisY) lcd_puts_P(_T(MSG_CHECKING_Y));
	if (screen == TestScreen::AxisZ) lcd_puts_P(_T(MSG_SELFTEST_CHECK_Z));
	if (screen == TestScreen::Bed) lcd_puts_P(_T(MSG_SELFTEST_CHECK_BED));
	if (screen == TestScreen::Hotend
   1b706:	82 30       	cpi	r24, 0x02	; 2
   1b708:	78 f5       	brcc	.+94     	; 0x1b768 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xa8>
	    || screen == TestScreen::HotendOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_HOTEND));
   1b70a:	85 ed       	ldi	r24, 0xD5	; 213
   1b70c:	98 e4       	ldi	r25, 0x48	; 72
   1b70e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b712:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
	if (screen == TestScreen::Fsensor) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
	if (screen == TestScreen::FsensorOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
	if (screen == TestScreen::AllCorrect) lcd_puts_P(_T(MSG_SELFTEST_CHECK_ALLCORRECT));
   1b716:	84 eb       	ldi	r24, 0xB4	; 180
   1b718:	98 e4       	ldi	r25, 0x48	; 72
   1b71a:	cc 30       	cpi	r28, 0x0C	; 12
   1b71c:	49 f1       	breq	.+82     	; 0x1b770 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xb0>
	if (screen == TestScreen::Failed) lcd_puts_P(_T(MSG_SELFTEST_FAILED));
   1b71e:	85 ee       	ldi	r24, 0xE5	; 229
   1b720:	95 e5       	ldi	r25, 0x55	; 85
   1b722:	cd 30       	cpi	r28, 0x0D	; 13
   1b724:	29 f1       	breq	.+74     	; 0x1b770 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xb0>
	if (screen == TestScreen::Home) lcd_puts_P(_T(MSG_CALIBRATING_HOME));
   1b726:	ce 30       	cpi	r28, 0x0E	; 14
   1b728:	39 f5       	brne	.+78     	; 0x1b778 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xb8>
   1b72a:	81 ea       	ldi	r24, 0xA1	; 161
   1b72c:	98 e4       	ldi	r25, 0x48	; 72
   1b72e:	20 c0       	rjmp	.+64     	; 0x1b770 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xb0>
	lcd_update_enable(false);
	const char _indicator = (_progress >= _progress_scale) ? '-' : '|';
	if (_clear)
		lcd_clear();
	else
		lcd_home();
   1b730:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
   1b734:	de cf       	rjmp	.-68     	; 0x1b6f2 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x32>

	if (screen == TestScreen::ExtruderFan) lcd_puts_P(_T(MSG_SELFTEST_FAN));
	if (screen == TestScreen::PrintFan) lcd_puts_P(_T(MSG_SELFTEST_FAN));
   1b736:	c1 30       	cpi	r28, 0x01	; 1
   1b738:	f1 f2       	breq	.-68     	; 0x1b6f6 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x36>
	if (screen == TestScreen::FansOk) lcd_puts_P(_T(MSG_SELFTEST_FAN));
   1b73a:	c2 30       	cpi	r28, 0x02	; 2
   1b73c:	e1 f2       	breq	.-72     	; 0x1b6f6 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x36>
	if (screen == TestScreen::EndStops) lcd_puts_P(_T(MSG_SELFTEST_CHECK_ENDSTOPS));
   1b73e:	8c e2       	ldi	r24, 0x2C	; 44
   1b740:	99 e4       	ldi	r25, 0x49	; 73
   1b742:	c3 30       	cpi	r28, 0x03	; 3
   1b744:	d1 f2       	breq	.-76     	; 0x1b6fa <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x3a>
	if (screen == TestScreen::AxisX) lcd_puts_P(_T(MSG_CHECKING_X));
   1b746:	8a e1       	ldi	r24, 0x1A	; 26
   1b748:	99 e4       	ldi	r25, 0x49	; 73
   1b74a:	c4 30       	cpi	r28, 0x04	; 4
   1b74c:	b1 f2       	breq	.-84     	; 0x1b6fa <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x3a>
	if (screen == TestScreen::AxisY) lcd_puts_P(_T(MSG_CHECKING_Y));
   1b74e:	88 e0       	ldi	r24, 0x08	; 8
   1b750:	99 e4       	ldi	r25, 0x49	; 73
   1b752:	c5 30       	cpi	r28, 0x05	; 5
   1b754:	91 f2       	breq	.-92     	; 0x1b6fa <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x3a>
	if (screen == TestScreen::AxisZ) lcd_puts_P(_T(MSG_SELFTEST_CHECK_Z));
   1b756:	86 ef       	ldi	r24, 0xF6	; 246
   1b758:	98 e4       	ldi	r25, 0x48	; 72
   1b75a:	c6 30       	cpi	r28, 0x06	; 6
   1b75c:	71 f2       	breq	.-100    	; 0x1b6fa <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x3a>
	if (screen == TestScreen::Bed) lcd_puts_P(_T(MSG_SELFTEST_CHECK_BED));
   1b75e:	c7 30       	cpi	r28, 0x07	; 7
   1b760:	81 f6       	brne	.-96     	; 0x1b702 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x42>
   1b762:	87 ee       	ldi	r24, 0xE7	; 231
   1b764:	98 e4       	ldi	r25, 0x48	; 72
   1b766:	c9 cf       	rjmp	.-110    	; 0x1b6fa <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x3a>
	if (screen == TestScreen::Hotend
	    || screen == TestScreen::HotendOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_HOTEND));
	if (screen == TestScreen::Fsensor) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
   1b768:	ca 30       	cpi	r28, 0x0A	; 10
   1b76a:	99 f5       	brne	.+102    	; 0x1b7d2 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x112>
	if (screen == TestScreen::FsensorOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
   1b76c:	82 ec       	ldi	r24, 0xC2	; 194
   1b76e:	98 e4       	ldi	r25, 0x48	; 72
	if (screen == TestScreen::AllCorrect) lcd_puts_P(_T(MSG_SELFTEST_CHECK_ALLCORRECT));
	if (screen == TestScreen::Failed) lcd_puts_P(_T(MSG_SELFTEST_FAILED));
	if (screen == TestScreen::Home) lcd_puts_P(_T(MSG_CALIBRATING_HOME));
   1b770:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b774:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

	lcd_puts_at_P(0, 1, STR_SEPARATOR);
   1b778:	42 ec       	ldi	r20, 0xC2	; 194
   1b77a:	59 e8       	ldi	r21, 0x89	; 137
   1b77c:	61 e0       	ldi	r22, 0x01	; 1
   1b77e:	80 e0       	ldi	r24, 0x00	; 0
   1b780:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	if ((screen >= TestScreen::ExtruderFan) && (screen <= TestScreen::FansOk))
   1b784:	c3 30       	cpi	r28, 0x03	; 3
   1b786:	70 f5       	brcc	.+92     	; 0x1b7e4 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x124>
	{
		//SERIAL_ECHOLNPGM("Fan test");
		lcd_puts_at_P(0, 2, _T(MSG_HOTEND_FAN_SPEED));
   1b788:	83 e9       	ldi	r24, 0x93	; 147
   1b78a:	98 e4       	ldi	r25, 0x48	; 72
   1b78c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b790:	ac 01       	movw	r20, r24
   1b792:	62 e0       	ldi	r22, 0x02	; 2
   1b794:	80 e0       	ldi	r24, 0x00	; 0
   1b796:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(18, 2);
   1b79a:	62 e0       	ldi	r22, 0x02	; 2
   1b79c:	82 e1       	ldi	r24, 0x12	; 18
   1b79e:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		(screen < TestScreen::PrintFan) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b7a2:	c1 11       	cpse	r28, r1
   1b7a4:	1a c0       	rjmp	.+52     	; 0x1b7da <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x11a>
   1b7a6:	8d 2f       	mov	r24, r29
   1b7a8:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		lcd_puts_at_P(0, 3, _T(MSG_PRINT_FAN_SPEED));
   1b7ac:	86 e8       	ldi	r24, 0x86	; 134
   1b7ae:	98 e4       	ldi	r25, 0x48	; 72
   1b7b0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b7b4:	ac 01       	movw	r20, r24
   1b7b6:	63 e0       	ldi	r22, 0x03	; 3
   1b7b8:	80 e0       	ldi	r24, 0x00	; 0
   1b7ba:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(18, 3);
   1b7be:	63 e0       	ldi	r22, 0x03	; 3
   1b7c0:	82 e1       	ldi	r24, 0x12	; 18
   1b7c2:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		(screen < TestScreen::FansOk) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b7c6:	c2 30       	cpi	r28, 0x02	; 2
   1b7c8:	19 f1       	breq	.+70     	; 0x1b810 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x150>
	else if (screen >= TestScreen::Fsensor && screen <= TestScreen::FsensorOk)
	{
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
		lcd_putc(':');
		lcd_set_cursor(18, 2);
		(screen == TestScreen::Fsensor) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b7ca:	8d 2f       	mov	r24, r29
   1b7cc:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   1b7d0:	23 c0       	rjmp	.+70     	; 0x1b818 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x158>
	if (screen == TestScreen::AxisZ) lcd_puts_P(_T(MSG_SELFTEST_CHECK_Z));
	if (screen == TestScreen::Bed) lcd_puts_P(_T(MSG_SELFTEST_CHECK_BED));
	if (screen == TestScreen::Hotend
	    || screen == TestScreen::HotendOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_HOTEND));
	if (screen == TestScreen::Fsensor) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
	if (screen == TestScreen::FsensorOk) lcd_puts_P(_T(MSG_SELFTEST_CHECK_FSENSOR));
   1b7d2:	cb 30       	cpi	r28, 0x0B	; 11
   1b7d4:	09 f0       	breq	.+2      	; 0x1b7d8 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x118>
   1b7d6:	9f cf       	rjmp	.-194    	; 0x1b716 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x56>
   1b7d8:	c9 cf       	rjmp	.-110    	; 0x1b76c <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xac>
	if ((screen >= TestScreen::ExtruderFan) && (screen <= TestScreen::FansOk))
	{
		//SERIAL_ECHOLNPGM("Fan test");
		lcd_puts_at_P(0, 2, _T(MSG_HOTEND_FAN_SPEED));
		lcd_set_cursor(18, 2);
		(screen < TestScreen::PrintFan) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b7da:	8e ed       	ldi	r24, 0xDE	; 222
   1b7dc:	9a e6       	ldi	r25, 0x6A	; 106
   1b7de:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   1b7e2:	e4 cf       	rjmp	.-56     	; 0x1b7ac <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0xec>
		lcd_puts_at_P(0, 3, _T(MSG_PRINT_FAN_SPEED));
		lcd_set_cursor(18, 3);
		(screen < TestScreen::FansOk) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
	}
	else if (screen >= TestScreen::Fsensor && screen <= TestScreen::FsensorOk)
   1b7e4:	86 ef       	ldi	r24, 0xF6	; 246
   1b7e6:	8c 0f       	add	r24, r28
   1b7e8:	82 30       	cpi	r24, 0x02	; 2
   1b7ea:	a8 f5       	brcc	.+106    	; 0x1b856 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x196>
	{
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
   1b7ec:	87 ef       	ldi	r24, 0xF7	; 247
   1b7ee:	95 e5       	ldi	r25, 0x55	; 85
   1b7f0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1b7f4:	ac 01       	movw	r20, r24
   1b7f6:	62 e0       	ldi	r22, 0x02	; 2
   1b7f8:	80 e0       	ldi	r24, 0x00	; 0
   1b7fa:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_putc(':');
   1b7fe:	8a e3       	ldi	r24, 0x3A	; 58
   1b800:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		lcd_set_cursor(18, 2);
   1b804:	62 e0       	ldi	r22, 0x02	; 2
   1b806:	82 e1       	ldi	r24, 0x12	; 18
   1b808:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		(screen == TestScreen::Fsensor) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b80c:	ca 30       	cpi	r28, 0x0A	; 10
   1b80e:	e9 f2       	breq	.-70     	; 0x1b7ca <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x10a>
		lcd_puts_at_P(0, 2, _T(MSG_HOTEND_FAN_SPEED));
		lcd_set_cursor(18, 2);
		(screen < TestScreen::PrintFan) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
		lcd_puts_at_P(0, 3, _T(MSG_PRINT_FAN_SPEED));
		lcd_set_cursor(18, 3);
		(screen < TestScreen::FansOk) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
   1b810:	8e ed       	ldi	r24, 0xDE	; 222
   1b812:	9a e6       	ldi	r25, 0x6A	; 106
   1b814:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

		_step_block = TestScreen::Hotend;
		lcd_selftest_screen_step(3, 9, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("Hotend"), _indicator);
	}

	if (_delay > 0) delay_keep_alive(_delay);
   1b818:	c1 14       	cp	r12, r1
   1b81a:	d1 04       	cpc	r13, r1
   1b81c:	19 f0       	breq	.+6      	; 0x1b824 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x164>
   1b81e:	c6 01       	movw	r24, r12
   1b820:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
	_progress++;
   1b824:	81 e0       	ldi	r24, 0x01	; 1
   1b826:	8f 0d       	add	r24, r15

	return (_progress >= _progress_scale * 2) ? 0 : _progress;
   1b828:	48 2f       	mov	r20, r24
   1b82a:	50 e0       	ldi	r21, 0x00	; 0
   1b82c:	92 e0       	ldi	r25, 0x02	; 2
   1b82e:	24 e0       	ldi	r18, 0x04	; 4
   1b830:	30 e0       	ldi	r19, 0x00	; 0
   1b832:	e9 16       	cp	r14, r25
   1b834:	11 f0       	breq	.+4      	; 0x1b83a <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x17a>
   1b836:	26 e0       	ldi	r18, 0x06	; 6
   1b838:	30 e0       	ldi	r19, 0x00	; 0
   1b83a:	42 17       	cp	r20, r18
   1b83c:	53 07       	cpc	r21, r19
   1b83e:	0c f0       	brlt	.+2      	; 0x1b842 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x182>
   1b840:	80 e0       	ldi	r24, 0x00	; 0
}
   1b842:	df 91       	pop	r29
   1b844:	cf 91       	pop	r28
   1b846:	1f 91       	pop	r17
   1b848:	0f 91       	pop	r16
   1b84a:	ff 90       	pop	r15
   1b84c:	ef 90       	pop	r14
   1b84e:	df 90       	pop	r13
   1b850:	cf 90       	pop	r12
   1b852:	bf 90       	pop	r11
   1b854:	08 95       	ret
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
		lcd_putc(':');
		lcd_set_cursor(18, 2);
		(screen == TestScreen::Fsensor) ? (void)lcd_putc(_indicator) : (void)lcd_puts_P(MSG_OK_CAPS);
	}
	else if (screen < TestScreen::Fsensor)
   1b856:	ca 30       	cpi	r28, 0x0A	; 10
   1b858:	f8 f6       	brcc	.-66     	; 0x1b818 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x158>
	{
		//SERIAL_ECHOLNPGM("Other tests");

		TestScreen _step_block = TestScreen::AxisX;
		lcd_selftest_screen_step(2, 2, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("X"), _indicator);
   1b85a:	41 e0       	ldi	r20, 0x01	; 1
   1b85c:	c4 30       	cpi	r28, 0x04	; 4
   1b85e:	21 f0       	breq	.+8      	; 0x1b868 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1a8>
   1b860:	42 e0       	ldi	r20, 0x02	; 2
   1b862:	c3 30       	cpi	r28, 0x03	; 3
   1b864:	09 f4       	brne	.+2      	; 0x1b868 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1a8>
   1b866:	40 e0       	ldi	r20, 0x00	; 0
   1b868:	0d 2f       	mov	r16, r29
   1b86a:	20 ec       	ldi	r18, 0xC0	; 192
   1b86c:	39 e8       	ldi	r19, 0x89	; 137
   1b86e:	62 e0       	ldi	r22, 0x02	; 2
   1b870:	82 e0       	ldi	r24, 0x02	; 2
   1b872:	0e 94 68 d1 	call	0x1a2d0	; 0x1a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>

		_step_block = TestScreen::AxisY;
		lcd_selftest_screen_step(2, 8, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("Y"), _indicator);
   1b876:	41 e0       	ldi	r20, 0x01	; 1
   1b878:	c5 30       	cpi	r28, 0x05	; 5
   1b87a:	21 f0       	breq	.+8      	; 0x1b884 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1c4>
   1b87c:	42 e0       	ldi	r20, 0x02	; 2
   1b87e:	c5 30       	cpi	r28, 0x05	; 5
   1b880:	08 f4       	brcc	.+2      	; 0x1b884 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1c4>
   1b882:	40 e0       	ldi	r20, 0x00	; 0
   1b884:	0d 2f       	mov	r16, r29
   1b886:	2e eb       	ldi	r18, 0xBE	; 190
   1b888:	39 e8       	ldi	r19, 0x89	; 137
   1b88a:	68 e0       	ldi	r22, 0x08	; 8
   1b88c:	82 e0       	ldi	r24, 0x02	; 2
   1b88e:	0e 94 68 d1 	call	0x1a2d0	; 0x1a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>

		_step_block = TestScreen::AxisZ;
		lcd_selftest_screen_step(2, 14, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("Z"), _indicator);
   1b892:	41 e0       	ldi	r20, 0x01	; 1
   1b894:	c6 30       	cpi	r28, 0x06	; 6
   1b896:	21 f0       	breq	.+8      	; 0x1b8a0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1e0>
   1b898:	42 e0       	ldi	r20, 0x02	; 2
   1b89a:	c6 30       	cpi	r28, 0x06	; 6
   1b89c:	08 f4       	brcc	.+2      	; 0x1b8a0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1e0>
   1b89e:	40 e0       	ldi	r20, 0x00	; 0
   1b8a0:	0d 2f       	mov	r16, r29
   1b8a2:	2c eb       	ldi	r18, 0xBC	; 188
   1b8a4:	39 e8       	ldi	r19, 0x89	; 137
   1b8a6:	6e e0       	ldi	r22, 0x0E	; 14
   1b8a8:	82 e0       	ldi	r24, 0x02	; 2
   1b8aa:	0e 94 68 d1 	call	0x1a2d0	; 0x1a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>

		_step_block = TestScreen::Bed;
		lcd_selftest_screen_step(3, 0, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("Bed"), _indicator);
   1b8ae:	41 e0       	ldi	r20, 0x01	; 1
   1b8b0:	c7 30       	cpi	r28, 0x07	; 7
   1b8b2:	21 f0       	breq	.+8      	; 0x1b8bc <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1fc>
   1b8b4:	42 e0       	ldi	r20, 0x02	; 2
   1b8b6:	c7 30       	cpi	r28, 0x07	; 7
   1b8b8:	08 f4       	brcc	.+2      	; 0x1b8bc <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x1fc>
   1b8ba:	40 e0       	ldi	r20, 0x00	; 0
   1b8bc:	0d 2f       	mov	r16, r29
   1b8be:	28 eb       	ldi	r18, 0xB8	; 184
   1b8c0:	39 e8       	ldi	r19, 0x89	; 137
   1b8c2:	60 e0       	ldi	r22, 0x00	; 0
   1b8c4:	83 e0       	ldi	r24, 0x03	; 3
   1b8c6:	0e 94 68 d1 	call	0x1a2d0	; 0x1a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>

		_step_block = TestScreen::Hotend;
		lcd_selftest_screen_step(3, 9, ((screen == _step_block) ? 1 : (screen < _step_block) ? 0 : 2), PSTR("Hotend"), _indicator);
   1b8ca:	41 e0       	ldi	r20, 0x01	; 1
   1b8cc:	c8 30       	cpi	r28, 0x08	; 8
   1b8ce:	21 f0       	breq	.+8      	; 0x1b8d8 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x218>
   1b8d0:	42 e0       	ldi	r20, 0x02	; 2
   1b8d2:	c8 30       	cpi	r28, 0x08	; 8
   1b8d4:	08 f4       	brcc	.+2      	; 0x1b8d8 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x218>
   1b8d6:	40 e0       	ldi	r20, 0x00	; 0
   1b8d8:	0d 2f       	mov	r16, r29
   1b8da:	21 eb       	ldi	r18, 0xB1	; 177
   1b8dc:	39 e8       	ldi	r19, 0x89	; 137
   1b8de:	69 e0       	ldi	r22, 0x09	; 9
   1b8e0:	83 e0       	ldi	r24, 0x03	; 3
   1b8e2:	0e 94 68 d1 	call	0x1a2d0	; 0x1a2d0 <lcd_selftest_screen_step(unsigned char, unsigned char, unsigned char, char const*, char)>
   1b8e6:	98 cf       	rjmp	.-208    	; 0x1b818 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)+0x158>

0001b8e8 <lcd_rename_sheet_menu()>:
{
    printf_P(MSG_HOST_ACTION_NOTIFICATION, message);
}

static void lcd_rename_sheet_menu()
{
   1b8e8:	cf 93       	push	r28
   1b8ea:	df 93       	push	r29
        unsigned char name[sizeof(Sheet::name)];
    };
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"MenuData doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if (!menuData->initialized)
   1b8ec:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   1b8f0:	81 11       	cpse	r24, r1
   1b8f2:	18 c0       	rjmp	.+48     	; 0x1b924 <lcd_rename_sheet_menu()+0x3c>
    {
        eeprom_read_block(menuData->name, EEPROM_Sheets_base->s[selected_sheet].name, sizeof(Sheet::name));
   1b8f4:	60 91 e2 03 	lds	r22, 0x03E2	; 0x8003e2 <selected_sheet>
   1b8f8:	8b e0       	ldi	r24, 0x0B	; 11
   1b8fa:	68 9f       	mul	r22, r24
   1b8fc:	b0 01       	movw	r22, r0
   1b8fe:	11 24       	eor	r1, r1
   1b900:	67 5b       	subi	r22, 0xB7	; 183
   1b902:	72 4f       	sbci	r23, 0xF2	; 242
   1b904:	47 e0       	ldi	r20, 0x07	; 7
   1b906:	50 e0       	ldi	r21, 0x00	; 0
   1b908:	8b ea       	ldi	r24, 0xAB	; 171
   1b90a:	93 e0       	ldi	r25, 0x03	; 3
   1b90c:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
        lcd_encoder = menuData->name[0];
   1b910:	80 91 ab 03 	lds	r24, 0x03AB	; 0x8003ab <menu_data+0x2>
   1b914:	90 e0       	ldi	r25, 0x00	; 0
   1b916:	90 93 71 06 	sts	0x0671, r25	; 0x800671 <lcd_encoder+0x1>
   1b91a:	80 93 70 06 	sts	0x0670, r24	; 0x800670 <lcd_encoder>
        menuData->initialized = true;
   1b91e:	81 e0       	ldi	r24, 0x01	; 1
   1b920:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
    }
    if (lcd_encoder < 0x20) lcd_encoder = 0x20;
   1b924:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   1b928:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1b92c:	80 97       	sbiw	r24, 0x20	; 32
   1b92e:	34 f4       	brge	.+12     	; 0x1b93c <lcd_rename_sheet_menu()+0x54>
   1b930:	80 e2       	ldi	r24, 0x20	; 32
   1b932:	90 e0       	ldi	r25, 0x00	; 0
   1b934:	90 93 71 06 	sts	0x0671, r25	; 0x800671 <lcd_encoder+0x1>
   1b938:	80 93 70 06 	sts	0x0670, r24	; 0x800670 <lcd_encoder>
    if (lcd_encoder > 0xFF) lcd_encoder = 0xFF;
   1b93c:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   1b940:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1b944:	8f 3f       	cpi	r24, 0xFF	; 255
   1b946:	91 05       	cpc	r25, r1
   1b948:	39 f0       	breq	.+14     	; 0x1b958 <lcd_rename_sheet_menu()+0x70>
   1b94a:	34 f0       	brlt	.+12     	; 0x1b958 <lcd_rename_sheet_menu()+0x70>
   1b94c:	8f ef       	ldi	r24, 0xFF	; 255
   1b94e:	90 e0       	ldi	r25, 0x00	; 0
   1b950:	90 93 71 06 	sts	0x0671, r25	; 0x800671 <lcd_encoder+0x1>
   1b954:	80 93 70 06 	sts	0x0670, r24	; 0x800670 <lcd_encoder>

    menuData->name[menuData->selected] = lcd_encoder;
   1b958:	e0 91 aa 03 	lds	r30, 0x03AA	; 0x8003aa <menu_data+0x1>
   1b95c:	f0 e0       	ldi	r31, 0x00	; 0
   1b95e:	e7 55       	subi	r30, 0x57	; 87
   1b960:	fc 4f       	sbci	r31, 0xFC	; 252
   1b962:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   1b966:	82 83       	std	Z+2, r24	; 0x02
    lcd_home();
   1b968:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
   1b96c:	cb ea       	ldi	r28, 0xAB	; 171
   1b96e:	d3 e0       	ldi	r29, 0x03	; 3
    for (uint_least8_t i = 0; i < sizeof(Sheet::name); ++i)
    {
        lcd_putc(menuData->name[i]);
   1b970:	89 91       	ld	r24, Y+
   1b972:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
    if (lcd_encoder < 0x20) lcd_encoder = 0x20;
    if (lcd_encoder > 0xFF) lcd_encoder = 0xFF;

    menuData->name[menuData->selected] = lcd_encoder;
    lcd_home();
    for (uint_least8_t i = 0; i < sizeof(Sheet::name); ++i)
   1b976:	83 e0       	ldi	r24, 0x03	; 3
   1b978:	c2 3b       	cpi	r28, 0xB2	; 178
   1b97a:	d8 07       	cpc	r29, r24
   1b97c:	c9 f7       	brne	.-14     	; 0x1b970 <lcd_rename_sheet_menu()+0x88>
    {
        lcd_putc(menuData->name[i]);
    }
    lcd_putc_at(menuData->selected, 1, '^');
   1b97e:	4e e5       	ldi	r20, 0x5E	; 94
   1b980:	61 e0       	ldi	r22, 0x01	; 1
   1b982:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   1b986:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    if (menuData->selected > 0)
   1b98a:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   1b98e:	88 23       	and	r24, r24
   1b990:	29 f0       	breq	.+10     	; 0x1b99c <lcd_rename_sheet_menu()+0xb4>
    {
        lcd_putc_at(menuData->selected-1, 1, ' ');
   1b992:	40 e2       	ldi	r20, 0x20	; 32
   1b994:	61 e0       	ldi	r22, 0x01	; 1
   1b996:	81 50       	subi	r24, 0x01	; 1
   1b998:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    }
    if (lcd_clicked())
   1b99c:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1b9a0:	88 23       	and	r24, r24
   1b9a2:	99 f0       	breq	.+38     	; 0x1b9ca <lcd_rename_sheet_menu()+0xe2>
    {
        if ((menuData->selected + 1u) < sizeof(Sheet::name))
   1b9a4:	e0 91 aa 03 	lds	r30, 0x03AA	; 0x8003aa <menu_data+0x1>
   1b9a8:	8e 2f       	mov	r24, r30
   1b9aa:	90 e0       	ldi	r25, 0x00	; 0
   1b9ac:	01 96       	adiw	r24, 0x01	; 1
   1b9ae:	07 97       	sbiw	r24, 0x07	; 7
   1b9b0:	78 f4       	brcc	.+30     	; 0x1b9d0 <lcd_rename_sheet_menu()+0xe8>
        {
            lcd_encoder = menuData->name[++(menuData->selected)];
   1b9b2:	ef 5f       	subi	r30, 0xFF	; 255
   1b9b4:	e0 93 aa 03 	sts	0x03AA, r30	; 0x8003aa <menu_data+0x1>
   1b9b8:	f0 e0       	ldi	r31, 0x00	; 0
   1b9ba:	e7 55       	subi	r30, 0x57	; 87
   1b9bc:	fc 4f       	sbci	r31, 0xFC	; 252
   1b9be:	82 81       	ldd	r24, Z+2	; 0x02
   1b9c0:	90 e0       	ldi	r25, 0x00	; 0
   1b9c2:	90 93 71 06 	sts	0x0671, r25	; 0x800671 <lcd_encoder+0x1>
   1b9c6:	80 93 70 06 	sts	0x0670, r24	; 0x800670 <lcd_encoder>
                EEPROM_Sheets_base->s[selected_sheet].name,
                sizeof(Sheet::name));
            menu_back();
        }
    }
}
   1b9ca:	df 91       	pop	r29
   1b9cc:	cf 91       	pop	r28
   1b9ce:	08 95       	ret
        {
            lcd_encoder = menuData->name[++(menuData->selected)];
        }
        else
        {
            eeprom_update_block_notify(menuData->name,
   1b9d0:	60 91 e2 03 	lds	r22, 0x03E2	; 0x8003e2 <selected_sheet>
   1b9d4:	8b e0       	ldi	r24, 0x0B	; 11
   1b9d6:	68 9f       	mul	r22, r24
   1b9d8:	b0 01       	movw	r22, r0
   1b9da:	11 24       	eor	r1, r1
   1b9dc:	67 5b       	subi	r22, 0xB7	; 183
   1b9de:	72 4f       	sbci	r23, 0xF2	; 242
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   1b9e0:	47 e0       	ldi	r20, 0x07	; 7
   1b9e2:	50 e0       	ldi	r21, 0x00	; 0
   1b9e4:	8b ea       	ldi	r24, 0xAB	; 171
   1b9e6:	93 e0       	ldi	r25, 0x03	; 3
   1b9e8:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
                EEPROM_Sheets_base->s[selected_sheet].name,
                sizeof(Sheet::name));
            menu_back();
        }
    }
}
   1b9ec:	df 91       	pop	r29
   1b9ee:	cf 91       	pop	r28
        else
        {
            eeprom_update_block_notify(menuData->name,
                EEPROM_Sheets_base->s[selected_sheet].name,
                sizeof(Sheet::name));
            menu_back();
   1b9f0:	0d 94 9d d4 	jmp	0x3a93a	; 0x3a93a <menu_back()>

0001b9f4 <lcd_selfcheck_check_heater(bool)>:
	manage_inactivity(true);
	return _result;
}

static bool lcd_selfcheck_check_heater(bool _isbed)
{
   1b9f4:	8f 92       	push	r8
   1b9f6:	9f 92       	push	r9
   1b9f8:	af 92       	push	r10
   1b9fa:	bf 92       	push	r11
   1b9fc:	cf 92       	push	r12
   1b9fe:	df 92       	push	r13
   1ba00:	ef 92       	push	r14
   1ba02:	ff 92       	push	r15
   1ba04:	0f 93       	push	r16
   1ba06:	1f 93       	push	r17
   1ba08:	cf 93       	push	r28
   1ba0a:	df 93       	push	r29
   1ba0c:	f8 2e       	mov	r15, r24
   1ba0e:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1ba12:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1ba16:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1ba1a:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1ba1e:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1ba22:	4b 01       	movw	r8, r22
   1ba24:	6b 01       	movw	r12, r22
   1ba26:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   1ba2a:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   1ba2e:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   1ba32:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   1ba36:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1ba3a:	eb 01       	movw	r28, r22
	uint8_t _progress = 0;
	int _checked_snapshot = (_isbed) ? degBed() : degHotend(0);
   1ba3c:	ff 20       	and	r15, r15
   1ba3e:	09 f4       	brne	.+2      	; 0x1ba42 <lcd_selfcheck_check_heater(bool)+0x4e>
   1ba40:	a6 c0       	rjmp	.+332    	; 0x1bb8e <lcd_selfcheck_check_heater(bool)+0x19a>
   1ba42:	6b 01       	movw	r12, r22
	int _opposite_snapshot = (_isbed) ? degHotend(0) : degBed();
   1ba44:	e4 01       	movw	r28, r8
	uint8_t _cycles = (_isbed) ? 180 : 60; //~ 90s / 30s
   1ba46:	24 eb       	ldi	r18, 0xB4	; 180
   1ba48:	92 2e       	mov	r9, r18

	target_temperature[0] = (_isbed) ? 0 : 200;
   1ba4a:	90 e0       	ldi	r25, 0x00	; 0
   1ba4c:	80 e0       	ldi	r24, 0x00	; 0
   1ba4e:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
   1ba52:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
	target_temperature_bed = (_isbed) ? 100 : 0;
   1ba56:	84 e6       	ldi	r24, 0x64	; 100
   1ba58:	90 e0       	ldi	r25, 0x00	; 0
   1ba5a:	f1 10       	cpse	r15, r1
   1ba5c:	02 c0       	rjmp	.+4      	; 0x1ba62 <lcd_selfcheck_check_heater(bool)+0x6e>
   1ba5e:	90 e0       	ldi	r25, 0x00	; 0
   1ba60:	80 e0       	ldi	r24, 0x00	; 0
   1ba62:	90 93 73 06 	sts	0x0673, r25	; 0x800673 <target_temperature_bed+0x1>
   1ba66:	80 93 72 06 	sts	0x0672, r24	; 0x800672 <target_temperature_bed>
    thermal_model::reinitialize();
}

bool thermal_model_enabled()
{
    return thermal_model::enabled;
   1ba6a:	e0 90 1d 05 	lds	r14, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
#ifdef THERMAL_MODEL
	bool tm_was_enabled = thermal_model_enabled();
	thermal_model_set_enabled(false);
   1ba6e:	80 e0       	ldi	r24, 0x00	; 0
   1ba70:	0f 94 49 33 	call	0x26692	; 0x26692 <thermal_model_set_enabled(bool)>
#endif //THERMAL_MODEL
	manage_heater();
   1ba74:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	manage_inactivity(true);
   1ba78:	81 e0       	ldi	r24, 0x01	; 1
   1ba7a:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>

    for(uint8_t _counter = 0; _counter < _cycles && !Stopped; ++_counter)
   1ba7e:	b1 2c       	mov	r11, r1
	return _result;
}

static bool lcd_selfcheck_check_heater(bool _isbed)
{
	uint8_t _progress = 0;
   1ba80:	a1 2c       	mov	r10, r1
		}
		else {
			MYSERIAL.print("Hotend temp:");
			MYSERIAL.println(degHotend(0));
		}*/
		if(_counter%5 == 0) serialecho_temperatures(); //show temperatures once in two seconds
   1ba82:	85 e0       	ldi	r24, 0x05	; 5
   1ba84:	88 2e       	mov	r8, r24
	thermal_model_set_enabled(false);
#endif //THERMAL_MODEL
	manage_heater();
	manage_inactivity(true);

    for(uint8_t _counter = 0; _counter < _cycles && !Stopped; ++_counter)
   1ba86:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   1ba8a:	81 11       	cpse	r24, r1
   1ba8c:	1c c0       	rjmp	.+56     	; 0x1bac6 <lcd_selfcheck_check_heater(bool)+0xd2>
    {
		manage_heater();
   1ba8e:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
		manage_inactivity(true);
   1ba92:	81 e0       	ldi	r24, 0x01	; 1
   1ba94:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
		_progress = (_isbed?
   1ba98:	00 e9       	ldi	r16, 0x90	; 144
   1ba9a:	11 e0       	ldi	r17, 0x01	; 1
   1ba9c:	20 e0       	ldi	r18, 0x00	; 0
   1ba9e:	42 e0       	ldi	r20, 0x02	; 2
   1baa0:	6a 2d       	mov	r22, r10
   1baa2:	87 e0       	ldi	r24, 0x07	; 7
   1baa4:	f1 10       	cpse	r15, r1
   1baa6:	01 c0       	rjmp	.+2      	; 0x1baaa <lcd_selfcheck_check_heater(bool)+0xb6>
   1baa8:	88 e0       	ldi	r24, 0x08	; 8
   1baaa:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1baae:	a8 2e       	mov	r10, r24
		}
		else {
			MYSERIAL.print("Hotend temp:");
			MYSERIAL.println(degHotend(0));
		}*/
		if(_counter%5 == 0) serialecho_temperatures(); //show temperatures once in two seconds
   1bab0:	8b 2d       	mov	r24, r11
   1bab2:	68 2d       	mov	r22, r8
   1bab4:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   1bab8:	91 11       	cpse	r25, r1
   1baba:	02 c0       	rjmp	.+4      	; 0x1bac0 <lcd_selfcheck_check_heater(bool)+0xcc>
   1babc:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
	thermal_model_set_enabled(false);
#endif //THERMAL_MODEL
	manage_heater();
	manage_inactivity(true);

    for(uint8_t _counter = 0; _counter < _cycles && !Stopped; ++_counter)
   1bac0:	b3 94       	inc	r11
   1bac2:	b9 10       	cpse	r11, r9
   1bac4:	e0 cf       	rjmp	.-64     	; 0x1ba86 <lcd_selfcheck_check_heater(bool)+0x92>
			MYSERIAL.println(degHotend(0));
		}*/
		if(_counter%5 == 0) serialecho_temperatures(); //show temperatures once in two seconds
	}

	target_temperature[0] = 0;
   1bac6:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   1baca:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
	target_temperature_bed = 0;
   1bace:	10 92 73 06 	sts	0x0673, r1	; 0x800673 <target_temperature_bed+0x1>
   1bad2:	10 92 72 06 	sts	0x0672, r1	; 0x800672 <target_temperature_bed>
	manage_heater();
   1bad6:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
   1bada:	b6 01       	movw	r22, r12
   1badc:	dd 0c       	add	r13, r13
   1bade:	88 0b       	sbc	r24, r24
   1bae0:	99 0b       	sbc	r25, r25
   1bae2:	4e 01       	movw	r8, r28
   1bae4:	dd 0f       	add	r29, r29
   1bae6:	aa 08       	sbc	r10, r10
   1bae8:	bb 08       	sbc	r11, r11

	int _checked_result = (_isbed) ? degBed() - _checked_snapshot : degHotend(0) - _checked_snapshot;
   1baea:	ff 20       	and	r15, r15
   1baec:	09 f4       	brne	.+2      	; 0x1baf0 <lcd_selfcheck_check_heater(bool)+0xfc>
   1baee:	54 c0       	rjmp	.+168    	; 0x1bb98 <lcd_selfcheck_check_heater(bool)+0x1a4>
   1baf0:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1baf4:	9b 01       	movw	r18, r22
   1baf6:	ac 01       	movw	r20, r24
   1baf8:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   1bafc:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   1bb00:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   1bb04:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   1bb08:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bb0c:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1bb10:	eb 01       	movw	r28, r22
	int _opposite_result = (_isbed) ? degHotend(0) - _opposite_snapshot : degBed() - _opposite_snapshot;
   1bb12:	c5 01       	movw	r24, r10
   1bb14:	b4 01       	movw	r22, r8
   1bb16:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1bb1a:	9b 01       	movw	r18, r22
   1bb1c:	ac 01       	movw	r20, r24
   1bb1e:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1bb22:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1bb26:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1bb2a:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1bb2e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bb32:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
	MYSERIAL.print("Opposite result:");
	MYSERIAL.println(_opposite_result);
	*/

    bool _stepresult = false;
    if (Stopped || _opposite_result < ((_isbed) ? 30 : 9))
   1bb36:	10 91 11 05 	lds	r17, 0x0511	; 0x800511 <Stopped>
   1bb3a:	11 11       	cpse	r17, r1
   1bb3c:	0c c0       	rjmp	.+24     	; 0x1bb56 <lcd_selfcheck_check_heater(bool)+0x162>
   1bb3e:	f1 10       	cpse	r15, r1
   1bb40:	4b c0       	rjmp	.+150    	; 0x1bbd8 <lcd_selfcheck_check_heater(bool)+0x1e4>
   1bb42:	69 30       	cpi	r22, 0x09	; 9
   1bb44:	71 05       	cpc	r23, r1
   1bb46:	0c f0       	brlt	.+2      	; 0x1bb4a <lcd_selfcheck_check_heater(bool)+0x156>
   1bb48:	4d c0       	rjmp	.+154    	; 0x1bbe4 <lcd_selfcheck_check_heater(bool)+0x1f0>
    {
        if (!Stopped && _checked_result >= ((_isbed) ? 9 : 30))
   1bb4a:	8e e1       	ldi	r24, 0x1E	; 30
   1bb4c:	90 e0       	ldi	r25, 0x00	; 0
            _stepresult = true;
   1bb4e:	11 e0       	ldi	r17, 0x01	; 1
	*/

    bool _stepresult = false;
    if (Stopped || _opposite_result < ((_isbed) ? 30 : 9))
    {
        if (!Stopped && _checked_result >= ((_isbed) ? 9 : 30))
   1bb50:	c8 17       	cp	r28, r24
   1bb52:	d9 07       	cpc	r29, r25
   1bb54:	34 f4       	brge	.+12     	; 0x1bb62 <lcd_selfcheck_check_heater(bool)+0x16e>
            _stepresult = true;
        else
            lcd_selftest_error(TestError::Heater, "", "");
   1bb56:	69 ef       	ldi	r22, 0xF9	; 249
   1bb58:	72 e0       	ldi	r23, 0x02	; 2
   1bb5a:	80 e0       	ldi	r24, 0x00	; 0
   1bb5c:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
	MYSERIAL.println(_checked_result);
	MYSERIAL.print("Opposite result:");
	MYSERIAL.println(_opposite_result);
	*/

    bool _stepresult = false;
   1bb60:	10 e0       	ldi	r17, 0x00	; 0
    {
        lcd_selftest_error(TestError::Bed, "", "");
    }

#ifdef THERMAL_MODEL
	thermal_model_set_enabled(tm_was_enabled);
   1bb62:	8e 2d       	mov	r24, r14
   1bb64:	0f 94 49 33 	call	0x26692	; 0x26692 <thermal_model_set_enabled(bool)>
#endif //THERMAL_MODEL
	manage_heater();
   1bb68:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	manage_inactivity(true);
   1bb6c:	81 e0       	ldi	r24, 0x01	; 1
   1bb6e:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
	return _stepresult;

}
   1bb72:	81 2f       	mov	r24, r17
   1bb74:	df 91       	pop	r29
   1bb76:	cf 91       	pop	r28
   1bb78:	1f 91       	pop	r17
   1bb7a:	0f 91       	pop	r16
   1bb7c:	ff 90       	pop	r15
   1bb7e:	ef 90       	pop	r14
   1bb80:	df 90       	pop	r13
   1bb82:	cf 90       	pop	r12
   1bb84:	bf 90       	pop	r11
   1bb86:	af 90       	pop	r10
   1bb88:	9f 90       	pop	r9
   1bb8a:	8f 90       	pop	r8
   1bb8c:	08 95       	ret
static bool lcd_selfcheck_check_heater(bool _isbed)
{
	uint8_t _progress = 0;
	int _checked_snapshot = (_isbed) ? degBed() : degHotend(0);
	int _opposite_snapshot = (_isbed) ? degHotend(0) : degBed();
	uint8_t _cycles = (_isbed) ? 180 : 60; //~ 90s / 30s
   1bb8e:	9c e3       	ldi	r25, 0x3C	; 60
   1bb90:	99 2e       	mov	r9, r25

	target_temperature[0] = (_isbed) ? 0 : 200;
   1bb92:	88 ec       	ldi	r24, 0xC8	; 200
   1bb94:	90 e0       	ldi	r25, 0x00	; 0
   1bb96:	5b cf       	rjmp	.-330    	; 0x1ba4e <lcd_selfcheck_check_heater(bool)+0x5a>

	target_temperature[0] = 0;
	target_temperature_bed = 0;
	manage_heater();

	int _checked_result = (_isbed) ? degBed() - _checked_snapshot : degHotend(0) - _checked_snapshot;
   1bb98:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1bb9c:	9b 01       	movw	r18, r22
   1bb9e:	ac 01       	movw	r20, r24
   1bba0:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1bba4:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1bba8:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1bbac:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1bbb0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bbb4:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1bbb8:	eb 01       	movw	r28, r22
	int _opposite_result = (_isbed) ? degHotend(0) - _opposite_snapshot : degBed() - _opposite_snapshot;
   1bbba:	c5 01       	movw	r24, r10
   1bbbc:	b4 01       	movw	r22, r8
   1bbbe:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1bbc2:	9b 01       	movw	r18, r22
   1bbc4:	ac 01       	movw	r20, r24
   1bbc6:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   1bbca:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   1bbce:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   1bbd2:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   1bbd6:	ab cf       	rjmp	.-170    	; 0x1bb2e <lcd_selfcheck_check_heater(bool)+0x13a>
	*/

    bool _stepresult = false;
    if (Stopped || _opposite_result < ((_isbed) ? 30 : 9))
    {
        if (!Stopped && _checked_result >= ((_isbed) ? 9 : 30))
   1bbd8:	89 e0       	ldi	r24, 0x09	; 9
   1bbda:	90 e0       	ldi	r25, 0x00	; 0
	MYSERIAL.print("Opposite result:");
	MYSERIAL.println(_opposite_result);
	*/

    bool _stepresult = false;
    if (Stopped || _opposite_result < ((_isbed) ? 30 : 9))
   1bbdc:	6e 31       	cpi	r22, 0x1E	; 30
   1bbde:	71 05       	cpc	r23, r1
   1bbe0:	0c f4       	brge	.+2      	; 0x1bbe4 <lcd_selfcheck_check_heater(bool)+0x1f0>
   1bbe2:	b5 cf       	rjmp	.-150    	; 0x1bb4e <lcd_selfcheck_check_heater(bool)+0x15a>
        else
            lcd_selftest_error(TestError::Heater, "", "");
    }
    else
    {
        lcd_selftest_error(TestError::Bed, "", "");
   1bbe4:	69 ef       	ldi	r22, 0xF9	; 249
   1bbe6:	72 e0       	ldi	r23, 0x02	; 2
   1bbe8:	81 e0       	ldi	r24, 0x01	; 1
   1bbea:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
   1bbee:	b9 cf       	rjmp	.-142    	; 0x1bb62 <lcd_selfcheck_check_heater(bool)+0x16e>

0001bbf0 <reset_crash_det(unsigned char)>:
	return(_result);
}

#ifdef TMC2130

static void reset_crash_det(uint8_t axis) {
   1bbf0:	cf 93       	push	r28
   1bbf2:	df 93       	push	r29
	current_position[axis] += 10;
   1bbf4:	94 e0       	ldi	r25, 0x04	; 4
   1bbf6:	89 9f       	mul	r24, r25
   1bbf8:	e0 01       	movw	r28, r0
   1bbfa:	11 24       	eor	r1, r1
   1bbfc:	ce 56       	subi	r28, 0x6E	; 110
   1bbfe:	d9 4f       	sbci	r29, 0xF9	; 249
   1bc00:	20 e0       	ldi	r18, 0x00	; 0
   1bc02:	30 e0       	ldi	r19, 0x00	; 0
   1bc04:	40 e2       	ldi	r20, 0x20	; 32
   1bc06:	51 e4       	ldi	r21, 0x41	; 65
   1bc08:	68 81       	ld	r22, Y
   1bc0a:	79 81       	ldd	r23, Y+1	; 0x01
   1bc0c:	8a 81       	ldd	r24, Y+2	; 0x02
   1bc0e:	9b 81       	ldd	r25, Y+3	; 0x03
   1bc10:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1bc14:	68 83       	st	Y, r22
   1bc16:	79 83       	std	Y+1, r23	; 0x01
   1bc18:	8a 83       	std	Y+2, r24	; 0x02
   1bc1a:	9b 83       	std	Y+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1bc1c:	60 e0       	ldi	r22, 0x00	; 0
   1bc1e:	70 e0       	ldi	r23, 0x00	; 0
   1bc20:	84 e3       	ldi	r24, 0x34	; 52
   1bc22:	92 e4       	ldi	r25, 0x42	; 66
   1bc24:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	st_synchronize();
   1bc28:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	crashdet_use_eeprom_setting();
}
   1bc2c:	df 91       	pop	r29
   1bc2e:	cf 91       	pop	r28

static void reset_crash_det(uint8_t axis) {
	current_position[axis] += 10;
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
	st_synchronize();
	crashdet_use_eeprom_setting();
   1bc30:	0d 94 61 27 	jmp	0x24ec2	; 0x24ec2 <crashdet_use_eeprom_setting()>

0001bc34 <lcd_selfcheck_axis_sg(unsigned char)>:
}

static bool lcd_selfcheck_axis_sg(uint8_t axis) {
   1bc34:	2f 92       	push	r2
   1bc36:	3f 92       	push	r3
   1bc38:	4f 92       	push	r4
   1bc3a:	5f 92       	push	r5
   1bc3c:	6f 92       	push	r6
   1bc3e:	7f 92       	push	r7
   1bc40:	8f 92       	push	r8
   1bc42:	9f 92       	push	r9
   1bc44:	af 92       	push	r10
   1bc46:	bf 92       	push	r11
   1bc48:	cf 92       	push	r12
   1bc4a:	df 92       	push	r13
   1bc4c:	ef 92       	push	r14
   1bc4e:	ff 92       	push	r15
   1bc50:	1f 93       	push	r17
   1bc52:	cf 93       	push	r28
   1bc54:	df 93       	push	r29
   1bc56:	00 d0       	rcall	.+0      	; 0x1bc58 <lcd_selfcheck_axis_sg(unsigned char)+0x24>
   1bc58:	00 d0       	rcall	.+0      	; 0x1bc5a <lcd_selfcheck_axis_sg(unsigned char)+0x26>
   1bc5a:	1f 92       	push	r1
   1bc5c:	cd b7       	in	r28, 0x3d	; 61
   1bc5e:	de b7       	in	r29, 0x3e	; 62
   1bc60:	18 2f       	mov	r17, r24
// each axis length is measured twice
	float axis_length, current_position_init, current_position_final;
	float measured_axis_length[2];
	float margin = 60;
	float max_error_mm = 5;
	switch (axis) {
   1bc62:	68 2e       	mov	r6, r24
   1bc64:	71 2c       	mov	r7, r1
	case 0: axis_length = X_MAX_POS; break;
	case 1: axis_length = Y_MAX_POS - Y_MIN_POS + 4; break;
   1bc66:	81 2c       	mov	r8, r1
   1bc68:	20 e8       	ldi	r18, 0x80	; 128
   1bc6a:	92 2e       	mov	r9, r18
   1bc6c:	2c e5       	ldi	r18, 0x5C	; 92
   1bc6e:	a2 2e       	mov	r10, r18
   1bc70:	23 e4       	ldi	r18, 0x43	; 67
   1bc72:	b2 2e       	mov	r11, r18
// each axis length is measured twice
	float axis_length, current_position_init, current_position_final;
	float measured_axis_length[2];
	float margin = 60;
	float max_error_mm = 5;
	switch (axis) {
   1bc74:	81 30       	cpi	r24, 0x01	; 1
   1bc76:	31 f0       	breq	.+12     	; 0x1bc84 <lcd_selfcheck_axis_sg(unsigned char)+0x50>
	case 0: axis_length = X_MAX_POS; break;
   1bc78:	81 2c       	mov	r8, r1
   1bc7a:	91 2c       	mov	r9, r1
   1bc7c:	9f e7       	ldi	r25, 0x7F	; 127
   1bc7e:	a9 2e       	mov	r10, r25
   1bc80:	93 e4       	ldi	r25, 0x43	; 67
   1bc82:	b9 2e       	mov	r11, r25
	case 1: axis_length = Y_MAX_POS - Y_MIN_POS + 4; break;
	default: axis_length = 210; break;
	}

	tmc2130_sg_stop_on_crash = false;
   1bc84:	10 92 5c 02 	sts	0x025C, r1	; 0x80025c <tmc2130_sg_stop_on_crash>
	tmc2130_home_exit();
   1bc88:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
   1bc8c:	81 e0       	ldi	r24, 0x01	; 1
   1bc8e:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	enable_endstops(true);


	raise_z_above(MESH_HOME_Z_SEARCH);
   1bc92:	60 e0       	ldi	r22, 0x00	; 0
   1bc94:	70 e0       	ldi	r23, 0x00	; 0
   1bc96:	80 ea       	ldi	r24, 0xA0	; 160
   1bc98:	90 e4       	ldi	r25, 0x40	; 64
   1bc9a:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
	tmc2130_home_enter(1 << axis);
   1bc9e:	81 e0       	ldi	r24, 0x01	; 1
   1bca0:	01 2e       	mov	r0, r17
   1bca2:	01 c0       	rjmp	.+2      	; 0x1bca6 <lcd_selfcheck_axis_sg(unsigned char)+0x72>
   1bca4:	88 0f       	add	r24, r24
   1bca6:	0a 94       	dec	r0
   1bca8:	ea f7       	brpl	.-6      	; 0x1bca4 <lcd_selfcheck_axis_sg(unsigned char)+0x70>
   1bcaa:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>

// first axis length measurement begin

	current_position[axis] -= (axis_length + margin);
   1bcae:	20 e0       	ldi	r18, 0x00	; 0
   1bcb0:	30 e0       	ldi	r19, 0x00	; 0
   1bcb2:	40 e7       	ldi	r20, 0x70	; 112
   1bcb4:	52 e4       	ldi	r21, 0x42	; 66
   1bcb6:	c5 01       	movw	r24, r10
   1bcb8:	b4 01       	movw	r22, r8
   1bcba:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1bcbe:	69 83       	std	Y+1, r22	; 0x01
   1bcc0:	7a 83       	std	Y+2, r23	; 0x02
   1bcc2:	8b 83       	std	Y+3, r24	; 0x03
   1bcc4:	9c 83       	std	Y+4, r25	; 0x04
   1bcc6:	13 01       	movw	r2, r6
   1bcc8:	22 0c       	add	r2, r2
   1bcca:	33 1c       	adc	r3, r3
   1bccc:	22 0c       	add	r2, r2
   1bcce:	33 1c       	adc	r3, r3
   1bcd0:	c1 01       	movw	r24, r2
   1bcd2:	8e 56       	subi	r24, 0x6E	; 110
   1bcd4:	99 4f       	sbci	r25, 0xF9	; 249
   1bcd6:	9e 83       	std	Y+6, r25	; 0x06
   1bcd8:	8d 83       	std	Y+5, r24	; 0x05
   1bcda:	29 81       	ldd	r18, Y+1	; 0x01
   1bcdc:	3a 81       	ldd	r19, Y+2	; 0x02
   1bcde:	4b 81       	ldd	r20, Y+3	; 0x03
   1bce0:	5c 81       	ldd	r21, Y+4	; 0x04
   1bce2:	fc 01       	movw	r30, r24
   1bce4:	60 81       	ld	r22, Z
   1bce6:	71 81       	ldd	r23, Z+1	; 0x01
   1bce8:	82 81       	ldd	r24, Z+2	; 0x02
   1bcea:	93 81       	ldd	r25, Z+3	; 0x03
   1bcec:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bcf0:	ed 81       	ldd	r30, Y+5	; 0x05
   1bcf2:	fe 81       	ldd	r31, Y+6	; 0x06
   1bcf4:	60 83       	st	Z, r22
   1bcf6:	71 83       	std	Z+1, r23	; 0x01
   1bcf8:	82 83       	std	Z+2, r24	; 0x02
   1bcfa:	93 83       	std	Z+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1bcfc:	60 e0       	ldi	r22, 0x00	; 0
   1bcfe:	70 e0       	ldi	r23, 0x00	; 0
   1bd00:	84 e3       	ldi	r24, 0x34	; 52
   1bd02:	92 e4       	ldi	r25, 0x42	; 66
   1bd04:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>


	st_synchronize();
   1bd08:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#endif
}

void tmc2130_sg_measure_start(uint8_t axis)
{
	tmc2130_sg_measure = axis;
   1bd0c:	10 93 3b 02 	sts	0x023B, r17	; 0x80023b <_ZL18tmc2130_sg_measure.lto_priv.475>
	tmc2130_sg_measure_cnt = 0;
   1bd10:	10 92 cd 03 	sts	0x03CD, r1	; 0x8003cd <_ZL22tmc2130_sg_measure_cnt.lto_priv.477>
   1bd14:	10 92 ce 03 	sts	0x03CE, r1	; 0x8003ce <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x1>
   1bd18:	10 92 cf 03 	sts	0x03CF, r1	; 0x8003cf <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x2>
   1bd1c:	10 92 d0 03 	sts	0x03D0, r1	; 0x8003d0 <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x3>
	tmc2130_sg_measure_val = 0;
   1bd20:	10 92 d1 03 	sts	0x03D1, r1	; 0x8003d1 <_ZL22tmc2130_sg_measure_val.lto_priv.476>
   1bd24:	10 92 d2 03 	sts	0x03D2, r1	; 0x8003d2 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x1>
   1bd28:	10 92 d3 03 	sts	0x03D3, r1	; 0x8003d3 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x2>
   1bd2c:	10 92 d4 03 	sts	0x03D4, r1	; 0x8003d4 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x3>

	tmc2130_sg_measure_start(axis);

	current_position_init = st_get_position_mm(axis);
   1bd30:	81 2f       	mov	r24, r17
   1bd32:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   1bd36:	6b 01       	movw	r12, r22
   1bd38:	7c 01       	movw	r14, r24

	current_position[axis] += 2 * margin;
   1bd3a:	20 e0       	ldi	r18, 0x00	; 0
   1bd3c:	30 e0       	ldi	r19, 0x00	; 0
   1bd3e:	40 ef       	ldi	r20, 0xF0	; 240
   1bd40:	52 e4       	ldi	r21, 0x42	; 66
   1bd42:	ed 81       	ldd	r30, Y+5	; 0x05
   1bd44:	fe 81       	ldd	r31, Y+6	; 0x06
   1bd46:	60 81       	ld	r22, Z
   1bd48:	71 81       	ldd	r23, Z+1	; 0x01
   1bd4a:	82 81       	ldd	r24, Z+2	; 0x02
   1bd4c:	93 81       	ldd	r25, Z+3	; 0x03
   1bd4e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1bd52:	ed 81       	ldd	r30, Y+5	; 0x05
   1bd54:	fe 81       	ldd	r31, Y+6	; 0x06
   1bd56:	60 83       	st	Z, r22
   1bd58:	71 83       	std	Z+1, r23	; 0x01
   1bd5a:	82 83       	std	Z+2, r24	; 0x02
   1bd5c:	93 83       	std	Z+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1bd5e:	60 e0       	ldi	r22, 0x00	; 0
   1bd60:	70 e0       	ldi	r23, 0x00	; 0
   1bd62:	84 e3       	ldi	r24, 0x34	; 52
   1bd64:	92 e4       	ldi	r25, 0x42	; 66
   1bd66:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	st_synchronize();
   1bd6a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	current_position[axis] += axis_length;
   1bd6e:	a5 01       	movw	r20, r10
   1bd70:	94 01       	movw	r18, r8
   1bd72:	ed 81       	ldd	r30, Y+5	; 0x05
   1bd74:	fe 81       	ldd	r31, Y+6	; 0x06
   1bd76:	60 81       	ld	r22, Z
   1bd78:	71 81       	ldd	r23, Z+1	; 0x01
   1bd7a:	82 81       	ldd	r24, Z+2	; 0x02
   1bd7c:	93 81       	ldd	r25, Z+3	; 0x03
   1bd7e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1bd82:	ed 81       	ldd	r30, Y+5	; 0x05
   1bd84:	fe 81       	ldd	r31, Y+6	; 0x06
   1bd86:	60 83       	st	Z, r22
   1bd88:	71 83       	std	Z+1, r23	; 0x01
   1bd8a:	82 83       	std	Z+2, r24	; 0x02
   1bd8c:	93 83       	std	Z+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1bd8e:	60 e0       	ldi	r22, 0x00	; 0
   1bd90:	70 e0       	ldi	r23, 0x00	; 0
   1bd92:	84 e3       	ldi	r24, 0x34	; 52
   1bd94:	92 e4       	ldi	r25, 0x42	; 66
   1bd96:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

	st_synchronize();
   1bd9a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
}

uint16_t tmc2130_sg_measure_stop()
{
	tmc2130_sg_measure = 0xff;
   1bd9e:	8f ef       	ldi	r24, 0xFF	; 255
   1bda0:	80 93 3b 02 	sts	0x023B, r24	; 0x80023b <_ZL18tmc2130_sg_measure.lto_priv.475>
	return tmc2130_sg_measure_val / tmc2130_sg_measure_cnt;
   1bda4:	60 91 d1 03 	lds	r22, 0x03D1	; 0x8003d1 <_ZL22tmc2130_sg_measure_val.lto_priv.476>
   1bda8:	70 91 d2 03 	lds	r23, 0x03D2	; 0x8003d2 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x1>
   1bdac:	80 91 d3 03 	lds	r24, 0x03D3	; 0x8003d3 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x2>
   1bdb0:	90 91 d4 03 	lds	r25, 0x03D4	; 0x8003d4 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x3>
   1bdb4:	20 91 cd 03 	lds	r18, 0x03CD	; 0x8003cd <_ZL22tmc2130_sg_measure_cnt.lto_priv.477>
   1bdb8:	30 91 ce 03 	lds	r19, 0x03CE	; 0x8003ce <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x1>
   1bdbc:	40 91 cf 03 	lds	r20, 0x03CF	; 0x8003cf <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x2>
   1bdc0:	50 91 d0 03 	lds	r21, 0x03D0	; 0x8003d0 <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x3>
   1bdc4:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   1bdc8:	2d 83       	std	Y+5, r18	; 0x05
   1bdca:	3f 83       	std	Y+7, r19	; 0x07

	uint16_t sg1 = tmc2130_sg_measure_stop();
	printf_P(PSTR("%c AXIS SG1=%d\n"), 'X'+axis, sg1);
   1bdcc:	3f 93       	push	r19
   1bdce:	2f 93       	push	r18
   1bdd0:	f8 e5       	ldi	r31, 0x58	; 88
   1bdd2:	6f 0e       	add	r6, r31
   1bdd4:	71 1c       	adc	r7, r1
   1bdd6:	7f 92       	push	r7
   1bdd8:	6f 92       	push	r6
   1bdda:	81 ea       	ldi	r24, 0xA1	; 161
   1bddc:	99 e8       	ldi	r25, 0x89	; 137
   1bdde:	9f 93       	push	r25
   1bde0:	8f 93       	push	r24
   1bde2:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	eeprom_write_word_notify(((uint16_t*)((axis == X_AXIS)?EEPROM_BELTSTATUS_X:EEPROM_BELTSTATUS_Y)), sg1);
   1bde6:	0f 90       	pop	r0
   1bde8:	0f 90       	pop	r0
   1bdea:	0f 90       	pop	r0
   1bdec:	0f 90       	pop	r0
   1bdee:	0f 90       	pop	r0
   1bdf0:	0f 90       	pop	r0
   1bdf2:	8b e5       	ldi	r24, 0x5B	; 91
   1bdf4:	9f e0       	ldi	r25, 0x0F	; 15
   1bdf6:	11 11       	cpse	r17, r1
   1bdf8:	02 c0       	rjmp	.+4      	; 0x1bdfe <lcd_selfcheck_axis_sg(unsigned char)+0x1ca>
   1bdfa:	8d e5       	ldi	r24, 0x5D	; 93
   1bdfc:	9f e0       	ldi	r25, 0x0F	; 15
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
   1bdfe:	6d 81       	ldd	r22, Y+5	; 0x05
   1be00:	7f 81       	ldd	r23, Y+7	; 0x07
   1be02:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>

	current_position_final = st_get_position_mm(axis);
   1be06:	81 2f       	mov	r24, r17
   1be08:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   1be0c:	2b 01       	movw	r4, r22
   1be0e:	3c 01       	movw	r6, r24
	measured_axis_length[0] = fabs(current_position_final - current_position_init);
   1be10:	a7 01       	movw	r20, r14
   1be12:	96 01       	movw	r18, r12
   1be14:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1be18:	6b 01       	movw	r12, r22
   1be1a:	7c 01       	movw	r14, r24
   1be1c:	e8 94       	clt
   1be1e:	f7 f8       	bld	r15, 7


// first measurement end and second measurement begin


	current_position[axis] -= margin;
   1be20:	c1 01       	movw	r24, r2
   1be22:	8e 56       	subi	r24, 0x6E	; 110
   1be24:	99 4f       	sbci	r25, 0xF9	; 249
   1be26:	9e 83       	std	Y+6, r25	; 0x06
   1be28:	8d 83       	std	Y+5, r24	; 0x05
   1be2a:	20 e0       	ldi	r18, 0x00	; 0
   1be2c:	30 e0       	ldi	r19, 0x00	; 0
   1be2e:	40 e7       	ldi	r20, 0x70	; 112
   1be30:	52 e4       	ldi	r21, 0x42	; 66
   1be32:	fc 01       	movw	r30, r24
   1be34:	60 81       	ld	r22, Z
   1be36:	71 81       	ldd	r23, Z+1	; 0x01
   1be38:	82 81       	ldd	r24, Z+2	; 0x02
   1be3a:	93 81       	ldd	r25, Z+3	; 0x03
   1be3c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1be40:	ed 81       	ldd	r30, Y+5	; 0x05
   1be42:	fe 81       	ldd	r31, Y+6	; 0x06
   1be44:	60 83       	st	Z, r22
   1be46:	71 83       	std	Z+1, r23	; 0x01
   1be48:	82 83       	std	Z+2, r24	; 0x02
   1be4a:	93 83       	std	Z+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1be4c:	60 e0       	ldi	r22, 0x00	; 0
   1be4e:	70 e0       	ldi	r23, 0x00	; 0
   1be50:	84 e3       	ldi	r24, 0x34	; 52
   1be52:	92 e4       	ldi	r25, 0x42	; 66
   1be54:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	st_synchronize();
   1be58:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	current_position[axis] -= (axis_length + margin);
   1be5c:	29 81       	ldd	r18, Y+1	; 0x01
   1be5e:	3a 81       	ldd	r19, Y+2	; 0x02
   1be60:	4b 81       	ldd	r20, Y+3	; 0x03
   1be62:	5c 81       	ldd	r21, Y+4	; 0x04
   1be64:	ed 81       	ldd	r30, Y+5	; 0x05
   1be66:	fe 81       	ldd	r31, Y+6	; 0x06
   1be68:	60 81       	ld	r22, Z
   1be6a:	71 81       	ldd	r23, Z+1	; 0x01
   1be6c:	82 81       	ldd	r24, Z+2	; 0x02
   1be6e:	93 81       	ldd	r25, Z+3	; 0x03
   1be70:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1be74:	ed 81       	ldd	r30, Y+5	; 0x05
   1be76:	fe 81       	ldd	r31, Y+6	; 0x06
   1be78:	60 83       	st	Z, r22
   1be7a:	71 83       	std	Z+1, r23	; 0x01
   1be7c:	82 83       	std	Z+2, r24	; 0x02
   1be7e:	93 83       	std	Z+3, r25	; 0x03
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1be80:	60 e0       	ldi	r22, 0x00	; 0
   1be82:	70 e0       	ldi	r23, 0x00	; 0
   1be84:	84 e3       	ldi	r24, 0x34	; 52
   1be86:	92 e4       	ldi	r25, 0x42	; 66
   1be88:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

	st_synchronize();
   1be8c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	current_position_init = st_get_position_mm(axis);
   1be90:	81 2f       	mov	r24, r17
   1be92:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   1be96:	9b 01       	movw	r18, r22
   1be98:	ac 01       	movw	r20, r24

	measured_axis_length[1] = fabs(current_position_final - current_position_init);
   1be9a:	c3 01       	movw	r24, r6
   1be9c:	b2 01       	movw	r22, r4
   1be9e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bea2:	2b 01       	movw	r4, r22
   1bea4:	3c 01       	movw	r6, r24
   1bea6:	e8 94       	clt
   1bea8:	77 f8       	bld	r7, 7

	tmc2130_home_exit();
   1beaa:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>

//end of second measurement, now check for possible errors:

	for(uint_least8_t i = 0; i < 2; i++){ //check if measured axis length corresponds to expected length
		printf_P(_N("Measured axis length:%.3f\n"), measured_axis_length[i]);
   1beae:	ff 92       	push	r15
   1beb0:	ef 92       	push	r14
   1beb2:	df 92       	push	r13
   1beb4:	cf 92       	push	r12
   1beb6:	83 ec       	ldi	r24, 0xC3	; 195
   1beb8:	9a e6       	ldi	r25, 0x6A	; 106
   1beba:	9f 93       	push	r25
   1bebc:	8f 93       	push	r24
   1bebe:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
		if (fabs(measured_axis_length[i] - axis_length) > max_error_mm) {
   1bec2:	a5 01       	movw	r20, r10
   1bec4:	94 01       	movw	r18, r8
   1bec6:	c7 01       	movw	r24, r14
   1bec8:	b6 01       	movw	r22, r12
   1beca:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bece:	9f 77       	andi	r25, 0x7F	; 127
   1bed0:	0f 90       	pop	r0
   1bed2:	0f 90       	pop	r0
   1bed4:	0f 90       	pop	r0
   1bed6:	0f 90       	pop	r0
   1bed8:	0f 90       	pop	r0
   1beda:	0f 90       	pop	r0
   1bedc:	20 e0       	ldi	r18, 0x00	; 0
   1bede:	30 e0       	ldi	r19, 0x00	; 0
   1bee0:	40 ea       	ldi	r20, 0xA0	; 160
   1bee2:	50 e4       	ldi	r21, 0x40	; 64
   1bee4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1bee8:	18 16       	cp	r1, r24
   1beea:	0c f4       	brge	.+2      	; 0x1beee <lcd_selfcheck_axis_sg(unsigned char)+0x2ba>
   1beec:	53 c0       	rjmp	.+166    	; 0x1bf94 <lcd_selfcheck_axis_sg(unsigned char)+0x360>
	tmc2130_home_exit();

//end of second measurement, now check for possible errors:

	for(uint_least8_t i = 0; i < 2; i++){ //check if measured axis length corresponds to expected length
		printf_P(_N("Measured axis length:%.3f\n"), measured_axis_length[i]);
   1beee:	7f 92       	push	r7
   1bef0:	6f 92       	push	r6
   1bef2:	5f 92       	push	r5
   1bef4:	4f 92       	push	r4
   1bef6:	83 ec       	ldi	r24, 0xC3	; 195
   1bef8:	9a e6       	ldi	r25, 0x6A	; 106
   1befa:	9f 93       	push	r25
   1befc:	8f 93       	push	r24
   1befe:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
		if (fabs(measured_axis_length[i] - axis_length) > max_error_mm) {
   1bf02:	a5 01       	movw	r20, r10
   1bf04:	94 01       	movw	r18, r8
   1bf06:	c3 01       	movw	r24, r6
   1bf08:	b2 01       	movw	r22, r4
   1bf0a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bf0e:	9f 77       	andi	r25, 0x7F	; 127
   1bf10:	0f 90       	pop	r0
   1bf12:	0f 90       	pop	r0
   1bf14:	0f 90       	pop	r0
   1bf16:	0f 90       	pop	r0
   1bf18:	0f 90       	pop	r0
   1bf1a:	0f 90       	pop	r0
   1bf1c:	20 e0       	ldi	r18, 0x00	; 0
   1bf1e:	30 e0       	ldi	r19, 0x00	; 0
   1bf20:	40 ea       	ldi	r20, 0xA0	; 160
   1bf22:	50 e4       	ldi	r21, 0x40	; 64
   1bf24:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1bf28:	18 16       	cp	r1, r24
   1bf2a:	a4 f1       	brlt	.+104    	; 0x1bf94 <lcd_selfcheck_axis_sg(unsigned char)+0x360>
			endstops_hit_on_purpose();
			return false;
		}
	}

		printf_P(_N("Axis length difference:%.3f\n"), fabs(measured_axis_length[0] - measured_axis_length[1]));
   1bf2c:	a3 01       	movw	r20, r6
   1bf2e:	92 01       	movw	r18, r4
   1bf30:	c7 01       	movw	r24, r14
   1bf32:	b6 01       	movw	r22, r12
   1bf34:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1bf38:	6b 01       	movw	r12, r22
   1bf3a:	7c 01       	movw	r14, r24
   1bf3c:	e8 94       	clt
   1bf3e:	f7 f8       	bld	r15, 7
   1bf40:	ff 92       	push	r15
   1bf42:	ef 92       	push	r14
   1bf44:	df 92       	push	r13
   1bf46:	cf 92       	push	r12
   1bf48:	86 ea       	ldi	r24, 0xA6	; 166
   1bf4a:	9a e6       	ldi	r25, 0x6A	; 106
   1bf4c:	9f 93       	push	r25
   1bf4e:	8f 93       	push	r24
   1bf50:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

		if (fabs(measured_axis_length[0] - measured_axis_length[1]) > 1) { //check if difference between first and second measurement is low
   1bf54:	0f 90       	pop	r0
   1bf56:	0f 90       	pop	r0
   1bf58:	0f 90       	pop	r0
   1bf5a:	0f 90       	pop	r0
   1bf5c:	0f 90       	pop	r0
   1bf5e:	0f 90       	pop	r0
   1bf60:	20 e0       	ldi	r18, 0x00	; 0
   1bf62:	30 e0       	ldi	r19, 0x00	; 0
   1bf64:	40 e8       	ldi	r20, 0x80	; 128
   1bf66:	5f e3       	ldi	r21, 0x3F	; 63
   1bf68:	c7 01       	movw	r24, r14
   1bf6a:	b6 01       	movw	r22, r12
   1bf6c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1bf70:	18 16       	cp	r1, r24
   1bf72:	0c f4       	brge	.+2      	; 0x1bf76 <lcd_selfcheck_axis_sg(unsigned char)+0x342>
   1bf74:	44 c0       	rjmp	.+136    	; 0x1bffe <lcd_selfcheck_axis_sg(unsigned char)+0x3ca>
			plan_set_position_curposXYZE();
			reset_crash_det(axis);
			endstops_hit_on_purpose();
			return false;
		}
		current_position[axis] = 0;
   1bf76:	ed 81       	ldd	r30, Y+5	; 0x05
   1bf78:	fe 81       	ldd	r31, Y+6	; 0x06
   1bf7a:	10 82       	st	Z, r1
   1bf7c:	11 82       	std	Z+1, r1	; 0x01
   1bf7e:	12 82       	std	Z+2, r1	; 0x02
   1bf80:	13 82       	std	Z+3, r1	; 0x03
		plan_set_position_curposXYZE();
   1bf82:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
		reset_crash_det(axis);
   1bf86:	81 2f       	mov	r24, r17
   1bf88:	0e 94 f8 dd 	call	0x1bbf0	; 0x1bbf0 <reset_crash_det(unsigned char)>
		endstops_hit_on_purpose();
   1bf8c:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
		return true;
   1bf90:	81 e0       	ldi	r24, 0x01	; 1
   1bf92:	1d c0       	rjmp	.+58     	; 0x1bfce <lcd_selfcheck_axis_sg(unsigned char)+0x39a>
   1bf94:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
			enable_endstops(false);

			const char *_error_1;

			if (axis == X_AXIS) _error_1 = "X";
			if (axis == Y_AXIS) _error_1 = "Y";
   1bf98:	63 ee       	ldi	r22, 0xE3	; 227
   1bf9a:	72 e0       	ldi	r23, 0x02	; 2
   1bf9c:	11 30       	cpi	r17, 0x01	; 1
   1bf9e:	11 f0       	breq	.+4      	; 0x1bfa4 <lcd_selfcheck_axis_sg(unsigned char)+0x370>
   1bfa0:	61 ee       	ldi	r22, 0xE1	; 225
   1bfa2:	72 e0       	ldi	r23, 0x02	; 2
			if (axis == Z_AXIS) _error_1 = "Z";

			lcd_selftest_error(TestError::Axis, _error_1, "");
   1bfa4:	88 e0       	ldi	r24, 0x08	; 8
   1bfa6:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
			current_position[axis] = 0;
   1bfaa:	f1 01       	movw	r30, r2
   1bfac:	ee 56       	subi	r30, 0x6E	; 110
   1bfae:	f9 4f       	sbci	r31, 0xF9	; 249
   1bfb0:	10 82       	st	Z, r1
   1bfb2:	11 82       	std	Z+1, r1	; 0x01
   1bfb4:	12 82       	std	Z+2, r1	; 0x02
   1bfb6:	13 82       	std	Z+3, r1	; 0x03
			plan_set_position_curposXYZE();
   1bfb8:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
			reset_crash_det(axis);
   1bfbc:	81 2f       	mov	r24, r17
   1bfbe:	0e 94 f8 dd 	call	0x1bbf0	; 0x1bbf0 <reset_crash_det(unsigned char)>
   1bfc2:	81 e0       	ldi	r24, 0x01	; 1
   1bfc4:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>

			lcd_selftest_error(TestError::Pulley, _error_1, "");
			current_position[axis] = 0;
			plan_set_position_curposXYZE();
			reset_crash_det(axis);
			endstops_hit_on_purpose();
   1bfc8:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
			return false;
   1bfcc:	80 e0       	ldi	r24, 0x00	; 0
		current_position[axis] = 0;
		plan_set_position_curposXYZE();
		reset_crash_det(axis);
		endstops_hit_on_purpose();
		return true;
}
   1bfce:	27 96       	adiw	r28, 0x07	; 7
   1bfd0:	0f b6       	in	r0, 0x3f	; 63
   1bfd2:	f8 94       	cli
   1bfd4:	de bf       	out	0x3e, r29	; 62
   1bfd6:	0f be       	out	0x3f, r0	; 63
   1bfd8:	cd bf       	out	0x3d, r28	; 61
   1bfda:	df 91       	pop	r29
   1bfdc:	cf 91       	pop	r28
   1bfde:	1f 91       	pop	r17
   1bfe0:	ff 90       	pop	r15
   1bfe2:	ef 90       	pop	r14
   1bfe4:	df 90       	pop	r13
   1bfe6:	cf 90       	pop	r12
   1bfe8:	bf 90       	pop	r11
   1bfea:	af 90       	pop	r10
   1bfec:	9f 90       	pop	r9
   1bfee:	8f 90       	pop	r8
   1bff0:	7f 90       	pop	r7
   1bff2:	6f 90       	pop	r6
   1bff4:	5f 90       	pop	r5
   1bff6:	4f 90       	pop	r4
   1bff8:	3f 90       	pop	r3
   1bffa:	2f 90       	pop	r2
   1bffc:	08 95       	ret
		if (fabs(measured_axis_length[0] - measured_axis_length[1]) > 1) { //check if difference between first and second measurement is low
			//loose pulleys
			const char *_error_1;

			if (axis == X_AXIS) _error_1 = "X";
			if (axis == Y_AXIS) _error_1 = "Y";
   1bffe:	63 ee       	ldi	r22, 0xE3	; 227
   1c000:	72 e0       	ldi	r23, 0x02	; 2
   1c002:	11 30       	cpi	r17, 0x01	; 1
   1c004:	11 f0       	breq	.+4      	; 0x1c00a <lcd_selfcheck_axis_sg(unsigned char)+0x3d6>
   1c006:	61 ee       	ldi	r22, 0xE1	; 225
   1c008:	72 e0       	ldi	r23, 0x02	; 2
			if (axis == Z_AXIS) _error_1 = "Z";

			lcd_selftest_error(TestError::Pulley, _error_1, "");
   1c00a:	87 e0       	ldi	r24, 0x07	; 7
   1c00c:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
			current_position[axis] = 0;
   1c010:	f1 01       	movw	r30, r2
   1c012:	ee 56       	subi	r30, 0x6E	; 110
   1c014:	f9 4f       	sbci	r31, 0xF9	; 249
   1c016:	10 82       	st	Z, r1
   1c018:	11 82       	std	Z+1, r1	; 0x01
   1c01a:	12 82       	std	Z+2, r1	; 0x02
   1c01c:	13 82       	std	Z+3, r1	; 0x03
			plan_set_position_curposXYZE();
   1c01e:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
			reset_crash_det(axis);
   1c022:	81 2f       	mov	r24, r17
   1c024:	0e 94 f8 dd 	call	0x1bbf0	; 0x1bbf0 <reset_crash_det(unsigned char)>
   1c028:	cf cf       	rjmp	.-98     	; 0x1bfc8 <lcd_selfcheck_axis_sg(unsigned char)+0x394>

0001c02a <crash_mode_switch()>:
}

#ifdef TMC2130
static void crash_mode_switch()
{
    eeprom_toggle((uint8_t*)EEPROM_CRASH_DET);
   1c02a:	89 e6       	ldi	r24, 0x69	; 105
   1c02c:	9f e0       	ldi	r25, 0x0F	; 15
   1c02e:	0e 94 bb 75 	call	0xeb76	; 0xeb76 <eeprom_toggle(unsigned char*)>
    crashdet_use_eeprom_setting();
   1c032:	0d 94 61 27 	jmp	0x24ec2	; 0x24ec2 <crashdet_use_eeprom_setting()>

0001c036 <lcd_crash_mode_info()>:
#endif //SDCARD_SORT_ALPHA

#ifdef TMC2130
static void lcd_crash_mode_info()
{
    lcd_home();
   1c036:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_puts_P(_T(MSG_CRASH_DET_ONLY_IN_NORMAL));
   1c03a:	88 e5       	ldi	r24, 0x58	; 88
   1c03c:	9a e3       	ldi	r25, 0x3A	; 58
   1c03e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c042:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    menu_back_if_clicked();
   1c046:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

0001c04a <lcd_crash_mode_info2()>:
}

static void lcd_crash_mode_info2()
{
    lcd_home();
   1c04a:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_puts_P(_T(MSG_CRASH_DET_STEALTH_FORCE_OFF));
   1c04e:	8f e8       	ldi	r24, 0x8F	; 143
   1c050:	9a e3       	ldi	r25, 0x3A	; 58
   1c052:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c056:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    menu_back_if_clicked();
   1c05a:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

0001c05e <lcd_belttest_v()>:
		default: _md->menuState = _uninitialized; //shouldn't ever happen. Anyways, initialize the menu.
	}
}
#ifdef TMC2130
static void lcd_belttest_v()
{
   1c05e:	0f 93       	push	r16
   1c060:	1f 93       	push	r17
   1c062:	cf 93       	push	r28
   1c064:	df 93       	push	r29
    menu_back_if_clicked();
}

void lcd_belttest()
{
    lcd_clear();
   1c066:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	// Belttest requires high power mode. Enable it.
	FORCE_HIGH_POWER_START;
   1c06a:	81 e0       	ldi	r24, 0x01	; 1
   1c06c:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>

    uint16_t   X = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_X));
   1c070:	8d e5       	ldi	r24, 0x5D	; 93
   1c072:	9f e0       	ldi	r25, 0x0F	; 15
   1c074:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1c078:	ec 01       	movw	r28, r24
    uint16_t   Y = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_Y));
   1c07a:	8b e5       	ldi	r24, 0x5B	; 91
   1c07c:	9f e0       	ldi	r25, 0x0F	; 15
   1c07e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1c082:	18 2f       	mov	r17, r24
   1c084:	09 2f       	mov	r16, r25
    lcd_puts_P(_T(MSG_CHECKING_X));
   1c086:	8a e1       	ldi	r24, 0x1A	; 26
   1c088:	99 e4       	ldi	r25, 0x49	; 73
   1c08a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c08e:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
	lcd_set_cursor(0,1), lcd_printf_P(PSTR("X: %u -> ..."),X);
   1c092:	61 e0       	ldi	r22, 0x01	; 1
   1c094:	80 e0       	ldi	r24, 0x00	; 0
   1c096:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   1c09a:	df 93       	push	r29
   1c09c:	cf 93       	push	r28
   1c09e:	88 e8       	ldi	r24, 0x88	; 136
   1c0a0:	99 e8       	ldi	r25, 0x89	; 137
   1c0a2:	9f 93       	push	r25
   1c0a4:	8f 93       	push	r24
   1c0a6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
    KEEPALIVE_STATE(IN_HANDLER);
   1c0aa:	82 e0       	ldi	r24, 0x02	; 2
   1c0ac:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

	// N.B: it doesn't make sense to handle !lcd_selfcheck...() because selftest_sg throws its own error screen
	// that clobbers ours, with more info than we could provide. So on fail we just fall through to take us back to status.
    if (lcd_selfcheck_axis_sg(X_AXIS)){
   1c0b0:	80 e0       	ldi	r24, 0x00	; 0
   1c0b2:	0e 94 1a de 	call	0x1bc34	; 0x1bc34 <lcd_selfcheck_axis_sg(unsigned char)>
   1c0b6:	0f 90       	pop	r0
   1c0b8:	0f 90       	pop	r0
   1c0ba:	0f 90       	pop	r0
   1c0bc:	0f 90       	pop	r0
   1c0be:	88 23       	and	r24, r24
   1c0c0:	09 f4       	brne	.+2      	; 0x1c0c4 <lcd_belttest_v()+0x66>
   1c0c2:	45 c0       	rjmp	.+138    	; 0x1c14e <lcd_belttest_v()+0xf0>
		X = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_X));
   1c0c4:	8d e5       	ldi	r24, 0x5D	; 93
   1c0c6:	9f e0       	ldi	r25, 0x0F	; 15
   1c0c8:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1c0cc:	ec 01       	movw	r28, r24
		lcd_set_cursor(10, 1);
   1c0ce:	61 e0       	ldi	r22, 0x01	; 1
   1c0d0:	8a e0       	ldi	r24, 0x0A	; 10
   1c0d2:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_print((long) n, base);
}

void lcd_print(unsigned int n, int base)
{
	lcd_print((unsigned long) n, base);
   1c0d6:	be 01       	movw	r22, r28
   1c0d8:	90 e0       	ldi	r25, 0x00	; 0
   1c0da:	80 e0       	ldi	r24, 0x00	; 0
void lcd_print(unsigned long n, int base)
{
	if (base == 0)
		lcd_write(n);
	else
		lcd_printNumber(n, base);
   1c0dc:	4a e0       	ldi	r20, 0x0A	; 10
   1c0de:	0e 94 bb 6f 	call	0xdf76	; 0xdf76 <lcd_printNumber(unsigned long, unsigned char)>
		lcd_print(X); // Show new X value next to old one.
		lcd_puts_at_P(0, 2, _T(MSG_CHECKING_Y));
   1c0e2:	88 e0       	ldi	r24, 0x08	; 8
   1c0e4:	99 e4       	ldi	r25, 0x49	; 73
   1c0e6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c0ea:	ac 01       	movw	r20, r24
   1c0ec:	62 e0       	ldi	r22, 0x02	; 2
   1c0ee:	80 e0       	ldi	r24, 0x00	; 0
   1c0f0:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(0, 3), lcd_printf_P(PSTR("Y: %u -> ..."),Y);
   1c0f4:	63 e0       	ldi	r22, 0x03	; 3
   1c0f6:	80 e0       	ldi	r24, 0x00	; 0
   1c0f8:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   1c0fc:	0f 93       	push	r16
   1c0fe:	1f 93       	push	r17
   1c100:	8b e7       	ldi	r24, 0x7B	; 123
   1c102:	99 e8       	ldi	r25, 0x89	; 137
   1c104:	9f 93       	push	r25
   1c106:	8f 93       	push	r24
   1c108:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		if (lcd_selfcheck_axis_sg(Y_AXIS))
   1c10c:	81 e0       	ldi	r24, 0x01	; 1
   1c10e:	0e 94 1a de 	call	0x1bc34	; 0x1bc34 <lcd_selfcheck_axis_sg(unsigned char)>
   1c112:	0f 90       	pop	r0
   1c114:	0f 90       	pop	r0
   1c116:	0f 90       	pop	r0
   1c118:	0f 90       	pop	r0
   1c11a:	88 23       	and	r24, r24
   1c11c:	c1 f0       	breq	.+48     	; 0x1c14e <lcd_belttest_v()+0xf0>
		{
			Y = eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_Y));
   1c11e:	8b e5       	ldi	r24, 0x5B	; 91
   1c120:	9f e0       	ldi	r25, 0x0F	; 15
   1c122:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1c126:	ec 01       	movw	r28, r24
			lcd_set_cursor(10, 3);
   1c128:	63 e0       	ldi	r22, 0x03	; 3
   1c12a:	8a e0       	ldi	r24, 0x0A	; 10
   1c12c:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_print((long) n, base);
}

void lcd_print(unsigned int n, int base)
{
	lcd_print((unsigned long) n, base);
   1c130:	be 01       	movw	r22, r28
   1c132:	90 e0       	ldi	r25, 0x00	; 0
   1c134:	80 e0       	ldi	r24, 0x00	; 0
void lcd_print(unsigned long n, int base)
{
	if (base == 0)
		lcd_write(n);
	else
		lcd_printNumber(n, base);
   1c136:	4a e0       	ldi	r20, 0x0A	; 10
   1c138:	0e 94 bb 6f 	call	0xdf76	; 0xdf76 <lcd_printNumber(unsigned long, unsigned char)>
			lcd_print(Y);
			lcd_putc_at(19, 3, LCD_STR_UPLEVEL[0]);
   1c13c:	43 e8       	ldi	r20, 0x83	; 131
   1c13e:	63 e0       	ldi	r22, 0x03	; 3
   1c140:	83 e1       	ldi	r24, 0x13	; 19
   1c142:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
			lcd_wait_for_click_delay(10);
   1c146:	8a e0       	ldi	r24, 0x0A	; 10
   1c148:	90 e0       	ldi	r25, 0x00	; 0
   1c14a:	0f 94 3b 3b 	call	0x27676	; 0x27676 <lcd_wait_for_click_delay(unsigned int)>
		}
    }

	FORCE_HIGH_POWER_END;
   1c14e:	80 e0       	ldi	r24, 0x00	; 0
   1c150:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
    KEEPALIVE_STATE(NOT_BUSY);
   1c154:	81 e0       	ldi	r24, 0x01	; 1
   1c156:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
#ifdef TMC2130
static void lcd_belttest_v()
{
    lcd_belttest();
    menu_back_if_clicked();
}
   1c15a:	df 91       	pop	r29
   1c15c:	cf 91       	pop	r28
   1c15e:	1f 91       	pop	r17
   1c160:	0f 91       	pop	r16
}
#ifdef TMC2130
static void lcd_belttest_v()
{
    lcd_belttest();
    menu_back_if_clicked();
   1c162:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

0001c166 <lcd_sd_refresh()>:
static void lcd_sd_refresh()
{
#if SDCARDDETECT == -1
  card.mount();
#else
  card.presort();
   1c166:	0f 94 d4 7d 	call	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
#endif
  menu_top = 0;
   1c16a:	10 92 a5 03 	sts	0x03A5, r1	; 0x8003a5 <menu_top>
  lcd_encoder = 0;
   1c16e:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   1c172:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
  menu_data_reset(); //Forces reloading of cached variables.
   1c176:	0d 94 f7 d1 	jmp	0x3a3ee	; 0x3a3ee <menu_data_reset()>

0001c17a <lcd_sd_updir()>:
  }
}

void CardReader::updir()
{
  if(workDirDepth > 0)
   1c17a:	80 91 30 16 	lds	r24, 0x1630	; 0x801630 <card+0x1a2>
   1c17e:	88 23       	and	r24, r24
   1c180:	f9 f0       	breq	.+62     	; 0x1c1c0 <lcd_sd_updir()+0x46>
  {
    --workDirDepth;
   1c182:	81 50       	subi	r24, 0x01	; 1
   1c184:	80 93 30 16 	sts	0x1630, r24	; 0x801630 <card+0x1a2>
    workDir = workDirParents[0];
   1c188:	93 e2       	ldi	r25, 0x23	; 35
   1c18a:	ee e5       	ldi	r30, 0x5E	; 94
   1c18c:	f5 e1       	ldi	r31, 0x15	; 21
   1c18e:	ab e3       	ldi	r26, 0x3B	; 59
   1c190:	b5 e1       	ldi	r27, 0x15	; 21
   1c192:	01 90       	ld	r0, Z+
   1c194:	0d 92       	st	X+, r0
   1c196:	9a 95       	dec	r25
   1c198:	e1 f7       	brne	.-8      	; 0x1c192 <lcd_sd_updir()+0x18>
   1c19a:	2e e5       	ldi	r18, 0x5E	; 94
   1c19c:	35 e1       	ldi	r19, 0x15	; 21
    for (uint8_t d = 0; d < workDirDepth; d++)
   1c19e:	90 e0       	ldi	r25, 0x00	; 0
   1c1a0:	98 17       	cp	r25, r24
   1c1a2:	60 f4       	brcc	.+24     	; 0x1c1bc <lcd_sd_updir()+0x42>
    {
        workDirParents[d] = workDirParents[d+1];
   1c1a4:	43 e2       	ldi	r20, 0x23	; 35
   1c1a6:	f9 01       	movw	r30, r18
   1c1a8:	b3 96       	adiw	r30, 0x23	; 35
   1c1aa:	d9 01       	movw	r26, r18
   1c1ac:	01 90       	ld	r0, Z+
   1c1ae:	0d 92       	st	X+, r0
   1c1b0:	4a 95       	dec	r20
   1c1b2:	e1 f7       	brne	.-8      	; 0x1c1ac <lcd_sd_updir()+0x32>
{
  if(workDirDepth > 0)
  {
    --workDirDepth;
    workDir = workDirParents[0];
    for (uint8_t d = 0; d < workDirDepth; d++)
   1c1b4:	9f 5f       	subi	r25, 0xFF	; 255
   1c1b6:	2d 5d       	subi	r18, 0xDD	; 221
   1c1b8:	3f 4f       	sbci	r19, 0xFF	; 255
   1c1ba:	f2 cf       	rjmp	.-28     	; 0x1c1a0 <lcd_sd_updir()+0x26>
    {
        workDirParents[d] = workDirParents[d+1];
    }
	#ifdef SDCARD_SORT_ALPHA
    presort();
   1c1bc:	0f 94 d4 7d 	call	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
}

static void lcd_sd_updir()
{
  card.updir();
  menu_top = 0;
   1c1c0:	10 92 a5 03 	sts	0x03A5, r1	; 0x8003a5 <menu_top>
  lcd_encoder = 0;
   1c1c4:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   1c1c8:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
  menu_data_reset(); //Forces reloading of cached variables.
   1c1cc:	0d 94 f7 d1 	jmp	0x3a3ee	; 0x3a3ee <menu_data_reset()>

0001c1d0 <lcd_backlight_menu()>:
    }
    backlight_save();
}

static void lcd_backlight_menu()
{
   1c1d0:	ef 92       	push	r14
   1c1d2:	ff 92       	push	r15
   1c1d4:	0f 93       	push	r16
   1c1d6:	1f 93       	push	r17
   1c1d8:	cf 93       	push	r28
   1c1da:	df 93       	push	r29
    MENU_BEGIN();
   1c1dc:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c1e0:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c1e4:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c1e8:	84 30       	cpi	r24, 0x04	; 4
   1c1ea:	08 f0       	brcs	.+2      	; 0x1c1ee <lcd_backlight_menu()+0x1e>
   1c1ec:	63 c0       	rjmp	.+198    	; 0x1c2b4 <lcd_backlight_menu()+0xe4>
   1c1ee:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    ON_MENU_LEAVE(
   1c1f2:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   1c1f6:	81 11       	cpse	r24, r1
   1c1f8:	0e 94 be 89 	call	0x1137c	; 0x1137c <backlight_save()>
        backlight_save();
    );

    MENU_ITEM_BACK_P(_T(MSG_BACK));
   1c1fc:	8f e4       	ldi	r24, 0x4F	; 79
   1c1fe:	99 e4       	ldi	r25, 0x49	; 73
   1c200:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c204:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BL_HIGH), &backlightLevel_HIGH, backlightLevel_LOW, 255);
   1c208:	c0 91 00 04 	lds	r28, 0x0400	; 0x800400 <backlightLevel_LOW>
   1c20c:	d0 e0       	ldi	r29, 0x00	; 0
   1c20e:	8b ed       	ldi	r24, 0xDB	; 219
   1c210:	97 e4       	ldi	r25, 0x47	; 71
   1c212:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c216:	f1 2c       	mov	r15, r1
   1c218:	e1 2c       	mov	r14, r1
   1c21a:	0f ef       	ldi	r16, 0xFF	; 255
   1c21c:	10 e0       	ldi	r17, 0x00	; 0
   1c21e:	9e 01       	movw	r18, r28
   1c220:	48 e0       	ldi	r20, 0x08	; 8
   1c222:	61 e0       	ldi	r22, 0x01	; 1
   1c224:	74 e0       	ldi	r23, 0x04	; 4
   1c226:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BL_LOW), &backlightLevel_LOW, 0, backlightLevel_HIGH);
   1c22a:	00 91 01 04 	lds	r16, 0x0401	; 0x800401 <backlightLevel_HIGH>
   1c22e:	10 e0       	ldi	r17, 0x00	; 0
   1c230:	8c ec       	ldi	r24, 0xCC	; 204
   1c232:	97 e4       	ldi	r25, 0x47	; 71
   1c234:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c238:	30 e0       	ldi	r19, 0x00	; 0
   1c23a:	20 e0       	ldi	r18, 0x00	; 0
   1c23c:	48 e0       	ldi	r20, 0x08	; 8
   1c23e:	60 e0       	ldi	r22, 0x00	; 0
   1c240:	74 e0       	ldi	r23, 0x04	; 4
   1c242:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
	MENU_ITEM_TOGGLE_P(_T(MSG_MODE), ((backlightMode==BACKLIGHT_MODE_BRIGHT) ? _T(MSG_BRIGHT) : ((backlightMode==BACKLIGHT_MODE_DIM) ? _T(MSG_DIM) : _T(MSG_AUTO))), backlight_mode_toggle);
   1c246:	80 91 4f 02 	lds	r24, 0x024F	; 0x80024f <backlightMode>
   1c24a:	81 30       	cpi	r24, 0x01	; 1
   1c24c:	59 f5       	brne	.+86     	; 0x1c2a4 <lcd_backlight_menu()+0xd4>
   1c24e:	83 ec       	ldi	r24, 0xC3	; 195
   1c250:	97 e4       	ldi	r25, 0x47	; 71
   1c252:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c256:	ec 01       	movw	r28, r24
   1c258:	8f ea       	ldi	r24, 0xAF	; 175
   1c25a:	97 e4       	ldi	r25, 0x47	; 71
   1c25c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c260:	22 e0       	ldi	r18, 0x02	; 2
   1c262:	41 e6       	ldi	r20, 0x61	; 97
   1c264:	51 ee       	ldi	r21, 0xE1	; 225
   1c266:	be 01       	movw	r22, r28
   1c268:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_TIMEOUT), &backlightTimer_period, LCD_BACKLIGHT_TIMEOUT, LCD_BACKLIGHT_TIMEOUT*60);
   1c26c:	85 ea       	ldi	r24, 0xA5	; 165
   1c26e:	97 e4       	ldi	r25, 0x47	; 71
   1c270:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c274:	f1 2c       	mov	r15, r1
   1c276:	e1 2c       	mov	r14, r1
   1c278:	04 e8       	ldi	r16, 0x84	; 132
   1c27a:	13 e0       	ldi	r17, 0x03	; 3
   1c27c:	2f e0       	ldi	r18, 0x0F	; 15
   1c27e:	30 e0       	ldi	r19, 0x00	; 0
   1c280:	40 e1       	ldi	r20, 0x10	; 16
   1c282:	6d e4       	ldi	r22, 0x4D	; 77
   1c284:	72 e0       	ldi	r23, 0x02	; 2
   1c286:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>

    MENU_END();
   1c28a:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    backlight_save();
}

static void lcd_backlight_menu()
{
    MENU_BEGIN();
   1c28e:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c292:	8f 5f       	subi	r24, 0xFF	; 255
   1c294:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c298:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c29c:	8f 5f       	subi	r24, 0xFF	; 255
   1c29e:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c2a2:	a0 cf       	rjmp	.-192    	; 0x1c1e4 <lcd_backlight_menu()+0x14>
    );

    MENU_ITEM_BACK_P(_T(MSG_BACK));
    MENU_ITEM_EDIT_int3_P(_T(MSG_BL_HIGH), &backlightLevel_HIGH, backlightLevel_LOW, 255);
    MENU_ITEM_EDIT_int3_P(_T(MSG_BL_LOW), &backlightLevel_LOW, 0, backlightLevel_HIGH);
	MENU_ITEM_TOGGLE_P(_T(MSG_MODE), ((backlightMode==BACKLIGHT_MODE_BRIGHT) ? _T(MSG_BRIGHT) : ((backlightMode==BACKLIGHT_MODE_DIM) ? _T(MSG_DIM) : _T(MSG_AUTO))), backlight_mode_toggle);
   1c2a4:	81 11       	cpse	r24, r1
   1c2a6:	03 c0       	rjmp	.+6      	; 0x1c2ae <lcd_backlight_menu()+0xde>
   1c2a8:	8d eb       	ldi	r24, 0xBD	; 189
   1c2aa:	97 e4       	ldi	r25, 0x47	; 71
   1c2ac:	d2 cf       	rjmp	.-92     	; 0x1c252 <lcd_backlight_menu()+0x82>
   1c2ae:	86 eb       	ldi	r24, 0xB6	; 182
   1c2b0:	97 e4       	ldi	r25, 0x47	; 71
   1c2b2:	cf cf       	rjmp	.-98     	; 0x1c252 <lcd_backlight_menu()+0x82>
    MENU_ITEM_EDIT_int3_P(_T(MSG_TIMEOUT), &backlightTimer_period, LCD_BACKLIGHT_TIMEOUT, LCD_BACKLIGHT_TIMEOUT*60);

    MENU_END();
}
   1c2b4:	df 91       	pop	r29
   1c2b6:	cf 91       	pop	r28
   1c2b8:	1f 91       	pop	r17
   1c2ba:	0f 91       	pop	r16
   1c2bc:	ff 90       	pop	r15
   1c2be:	ef 90       	pop	r14
   1c2c0:	08 95       	ret

0001c2c2 <backlight_mode_toggle()>:
}

#ifdef LCD_BL_PIN
static void backlight_mode_toggle()
{
    switch (backlightMode)
   1c2c2:	80 91 4f 02 	lds	r24, 0x024F	; 0x80024f <backlightMode>
   1c2c6:	88 23       	and	r24, r24
   1c2c8:	31 f0       	breq	.+12     	; 0x1c2d6 <backlight_mode_toggle()+0x14>
   1c2ca:	81 30       	cpi	r24, 0x01	; 1
   1c2cc:	41 f4       	brne	.+16     	; 0x1c2de <backlight_mode_toggle()+0x1c>
    {
        case BACKLIGHT_MODE_BRIGHT: backlightMode = BACKLIGHT_MODE_DIM; break;
   1c2ce:	10 92 4f 02 	sts	0x024F, r1	; 0x80024f <backlightMode>
        case BACKLIGHT_MODE_DIM: backlightMode = BACKLIGHT_MODE_AUTO; break;
        case BACKLIGHT_MODE_AUTO: backlightMode = BACKLIGHT_MODE_BRIGHT; break;
        default: backlightMode = BACKLIGHT_MODE_BRIGHT; break;
    }
    backlight_save();
   1c2d2:	0c 94 be 89 	jmp	0x1137c	; 0x1137c <backlight_save()>
static void backlight_mode_toggle()
{
    switch (backlightMode)
    {
        case BACKLIGHT_MODE_BRIGHT: backlightMode = BACKLIGHT_MODE_DIM; break;
        case BACKLIGHT_MODE_DIM: backlightMode = BACKLIGHT_MODE_AUTO; break;
   1c2d6:	82 e0       	ldi	r24, 0x02	; 2
        case BACKLIGHT_MODE_AUTO: backlightMode = BACKLIGHT_MODE_BRIGHT; break;
   1c2d8:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
   1c2dc:	fa cf       	rjmp	.-12     	; 0x1c2d2 <backlight_mode_toggle()+0x10>
   1c2de:	81 e0       	ldi	r24, 0x01	; 1
   1c2e0:	fb cf       	rjmp	.-10     	; 0x1c2d8 <backlight_mode_toggle()+0x16>

0001c2e2 <mmu_preload_filament_menu()>:

static inline void load_filament_wrapper(uint8_t i){
    MMU2::mmu2.load_filament(i);
}

static void mmu_preload_filament_menu() {
   1c2e2:	cf 93       	push	r28
    MENU_BEGIN();
   1c2e4:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c2e8:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c2ec:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c2f0:	84 30       	cpi	r24, 0x04	; 4
   1c2f2:	60 f5       	brcc	.+88     	; 0x1c34c <mmu_preload_filament_menu()+0x6a>
   1c2f4:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1c2f8:	8b e3       	ldi	r24, 0x3B	; 59
   1c2fa:	98 e4       	ldi	r25, 0x48	; 72
   1c2fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c300:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), load_all_wrapper);
   1c304:	81 e6       	ldi	r24, 0x61	; 97
   1c306:	95 e4       	ldi	r25, 0x45	; 69
   1c308:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c30c:	65 e6       	ldi	r22, 0x65	; 101
   1c30e:	72 ee       	ldi	r23, 0xE2	; 226
   1c310:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c314:	c0 e0       	ldi	r28, 0x00	; 0
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', load_filament_wrapper, i);
   1c316:	86 e2       	ldi	r24, 0x26	; 38
   1c318:	96 e4       	ldi	r25, 0x46	; 70
   1c31a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c31e:	61 e3       	ldi	r22, 0x31	; 49
   1c320:	6c 0f       	add	r22, r28
   1c322:	2c 2f       	mov	r18, r28
   1c324:	44 e7       	ldi	r20, 0x74	; 116
   1c326:	52 ee       	ldi	r21, 0xE2	; 226
   1c328:	0f 94 fb d0 	call	0x3a1f6	; 0x3a1f6 <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)>

static void mmu_preload_filament_menu() {
    MENU_BEGIN();
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), load_all_wrapper);
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c32c:	cf 5f       	subi	r28, 0xFF	; 255
   1c32e:	c5 30       	cpi	r28, 0x05	; 5
   1c330:	91 f7       	brne	.-28     	; 0x1c316 <mmu_preload_filament_menu()+0x34>
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', load_filament_wrapper, i);
    MENU_END();
   1c332:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
static inline void load_filament_wrapper(uint8_t i){
    MMU2::mmu2.load_filament(i);
}

static void mmu_preload_filament_menu() {
    MENU_BEGIN();
   1c336:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c33a:	8f 5f       	subi	r24, 0xFF	; 255
   1c33c:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c340:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c344:	8f 5f       	subi	r24, 0xFF	; 255
   1c346:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c34a:	d0 cf       	rjmp	.-96     	; 0x1c2ec <mmu_preload_filament_menu()+0xa>
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), load_all_wrapper);
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', load_filament_wrapper, i);
    MENU_END();
}
   1c34c:	cf 91       	pop	r28
   1c34e:	08 95       	ret

0001c350 <lcd_mmuLoadFilament()>:
static void lcd_mmuCutFilament() {
    preheat_or_continue(FilamentAction::MmuCut);
}

static void lcd_mmuLoadFilament() {
    preheat_or_continue(FilamentAction::MmuLoad);
   1c350:	84 e0       	ldi	r24, 0x04	; 4
   1c352:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0001c356 <lcd_mmuUnloadFilament()>:
}

static void lcd_mmuUnloadFilament() {
    preheat_or_continue(FilamentAction::MmuUnLoad);
   1c356:	85 e0       	ldi	r24, 0x05	; 5
   1c358:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0001c35c <lcd_mmuEjectFilament()>:
}

static void lcd_mmuEjectFilament() {
    preheat_or_continue(FilamentAction::MmuEject);
   1c35c:	86 e0       	ldi	r24, 0x06	; 6
   1c35e:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0001c362 <lcd_mmuCutFilament()>:
static void lcd_mmuLoadingTest() {
    preheat_or_continue(FilamentAction::MmuLoadingTest);
}

static void lcd_mmuCutFilament() {
    preheat_or_continue(FilamentAction::MmuCut);
   1c362:	87 e0       	ldi	r24, 0x07	; 7
   1c364:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0001c368 <lcd_mmuLoadingTest()>:
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', loading_test_wrapper, i);
    MENU_END();
}

static void lcd_mmuLoadingTest() {
    preheat_or_continue(FilamentAction::MmuLoadingTest);
   1c368:	88 e0       	ldi	r24, 0x08	; 8
   1c36a:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0001c36e <change_sheet()>:
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1c36e:	60 91 e2 03 	lds	r22, 0x03E2	; 0x8003e2 <selected_sheet>
   1c372:	81 ea       	ldi	r24, 0xA1	; 161
   1c374:	9d e0       	ldi	r25, 0x0D	; 13
   1c376:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
}

static void change_sheet()
{
	eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), selected_sheet);
    menu_back(3);
   1c37a:	83 e0       	ldi	r24, 0x03	; 3
   1c37c:	0d 94 81 d4 	jmp	0x3a902	; 0x3a902 <menu_back(unsigned char)>

0001c380 <mmu_loading_test_menu() [clone .lto_priv.447]>:

    // Clear the filament action
    clearFilamentAction();
}

static void mmu_loading_test_menu() {
   1c380:	cf 93       	push	r28
    MENU_BEGIN();
   1c382:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c386:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c38a:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c38e:	84 30       	cpi	r24, 0x04	; 4
   1c390:	88 f5       	brcc	.+98     	; 0x1c3f4 <mmu_loading_test_menu() [clone .lto_priv.447]+0x74>
   1c392:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    ON_MENU_LEAVE(
   1c396:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   1c39a:	81 11       	cpse	r24, r1
   1c39c:	0f 94 9f 21 	call	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
        clearFilamentAction();
    );
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1c3a0:	8b e3       	ldi	r24, 0x3B	; 59
   1c3a2:	98 e4       	ldi	r25, 0x48	; 72
   1c3a4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c3a8:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), loading_test_all_wrapper);
   1c3ac:	81 e6       	ldi	r24, 0x61	; 97
   1c3ae:	95 e4       	ldi	r25, 0x45	; 69
   1c3b0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c3b4:	68 e4       	ldi	r22, 0x48	; 72
   1c3b6:	7a e3       	ldi	r23, 0x3A	; 58
   1c3b8:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c3bc:	c0 e0       	ldi	r28, 0x00	; 0
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', loading_test_wrapper, i);
   1c3be:	86 e2       	ldi	r24, 0x26	; 38
   1c3c0:	96 e4       	ldi	r25, 0x46	; 70
   1c3c2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c3c6:	61 e3       	ldi	r22, 0x31	; 49
   1c3c8:	6c 0f       	add	r22, r28
   1c3ca:	2c 2f       	mov	r18, r28
   1c3cc:	40 ec       	ldi	r20, 0xC0	; 192
   1c3ce:	59 e3       	ldi	r21, 0x39	; 57
   1c3d0:	0f 94 fb d0 	call	0x3a1f6	; 0x3a1f6 <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)>
    ON_MENU_LEAVE(
        clearFilamentAction();
    );
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), loading_test_all_wrapper);
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c3d4:	cf 5f       	subi	r28, 0xFF	; 255
   1c3d6:	c5 30       	cpi	r28, 0x05	; 5
   1c3d8:	91 f7       	brne	.-28     	; 0x1c3be <mmu_loading_test_menu() [clone .lto_priv.447]+0x3e>
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', loading_test_wrapper, i);
    MENU_END();
   1c3da:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    // Clear the filament action
    clearFilamentAction();
}

static void mmu_loading_test_menu() {
    MENU_BEGIN();
   1c3de:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c3e2:	8f 5f       	subi	r24, 0xFF	; 255
   1c3e4:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c3e8:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c3ec:	8f 5f       	subi	r24, 0xFF	; 255
   1c3ee:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c3f2:	cb cf       	rjmp	.-106    	; 0x1c38a <mmu_loading_test_menu() [clone .lto_priv.447]+0xa>
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    MENU_ITEM_FUNCTION_P(_T(MSG_LOAD_ALL), loading_test_all_wrapper);
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', loading_test_wrapper, i);
    MENU_END();
}
   1c3f4:	cf 91       	pop	r28
   1c3f6:	08 95       	ret

0001c3f8 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))>:
}

// Helper function to save code size by reducing duplicated code
// These menus are not time critical
static void mmu_common_choose_filament_menu(const char * label, void (*menuAction)(uint8_t))
{
   1c3f8:	ef 92       	push	r14
   1c3fa:	ff 92       	push	r15
   1c3fc:	0f 93       	push	r16
   1c3fe:	1f 93       	push	r17
   1c400:	cf 93       	push	r28
   1c402:	8c 01       	movw	r16, r24
   1c404:	7b 01       	movw	r14, r22
    MENU_BEGIN();
   1c406:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c40a:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c40e:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c412:	84 30       	cpi	r24, 0x04	; 4
   1c414:	28 f5       	brcc	.+74     	; 0x1c460 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))+0x68>
   1c416:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    ON_MENU_LEAVE(
   1c41a:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   1c41e:	81 11       	cpse	r24, r1
   1c420:	0f 94 9f 21 	call	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
        clearFilamentAction();
    );
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
   1c424:	8b e3       	ldi	r24, 0x3B	; 59
   1c426:	98 e4       	ldi	r25, 0x48	; 72
   1c428:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c42c:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c430:	c0 e0       	ldi	r28, 0x00	; 0
        MENU_ITEM_FUNCTION_NR_P(label, i + '1', menuAction, i);
   1c432:	61 e3       	ldi	r22, 0x31	; 49
   1c434:	6c 0f       	add	r22, r28
   1c436:	2c 2f       	mov	r18, r28
   1c438:	a7 01       	movw	r20, r14
   1c43a:	c8 01       	movw	r24, r16
   1c43c:	0f 94 fb d0 	call	0x3a1f6	; 0x3a1f6 <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)>
    MENU_BEGIN();
    ON_MENU_LEAVE(
        clearFilamentAction();
    );
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
   1c440:	cf 5f       	subi	r28, 0xFF	; 255
   1c442:	c5 30       	cpi	r28, 0x05	; 5
   1c444:	b1 f7       	brne	.-20     	; 0x1c432 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))+0x3a>
        MENU_ITEM_FUNCTION_NR_P(label, i + '1', menuAction, i);
    MENU_END();
   1c446:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>

// Helper function to save code size by reducing duplicated code
// These menus are not time critical
static void mmu_common_choose_filament_menu(const char * label, void (*menuAction)(uint8_t))
{
    MENU_BEGIN();
   1c44a:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c44e:	8f 5f       	subi	r24, 0xFF	; 255
   1c450:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c454:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c458:	8f 5f       	subi	r24, 0xFF	; 255
   1c45a:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c45e:	d7 cf       	rjmp	.-82     	; 0x1c40e <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))+0x16>
    );
    MENU_ITEM_BACK_P(_T(MSG_MAIN));
    for (uint8_t i = 0; i < MMU_FILAMENT_COUNT; i++)
        MENU_ITEM_FUNCTION_NR_P(label, i + '1', menuAction, i);
    MENU_END();
}
   1c460:	cf 91       	pop	r28
   1c462:	1f 91       	pop	r17
   1c464:	0f 91       	pop	r16
   1c466:	ff 90       	pop	r15
   1c468:	ef 90       	pop	r14
   1c46a:	08 95       	ret

0001c46c <mmu_cut_filament_menu() [clone .lto_priv.449]>:
static inline void mmu_cut_filament_wrapper(uint8_t index){
    MMU2::mmu2.cut_filament(index);
}

static void mmu_cut_filament_menu() {
    mmu_common_choose_filament_menu(_T(MSG_CUT_FILAMENT), mmu_cut_filament_wrapper);
   1c46c:	85 e5       	ldi	r24, 0x55	; 85
   1c46e:	9b e5       	ldi	r25, 0x5B	; 91
   1c470:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c474:	6e e4       	ldi	r22, 0x4E	; 78
   1c476:	72 ee       	ldi	r23, 0xE2	; 226
   1c478:	0c 94 fc e1 	jmp	0x1c3f8	; 0x1c3f8 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))>

0001c47c <mmu_fil_eject_menu() [clone .lto_priv.448]>:
    // Clear the filament action
    clearFilamentAction();
}

static void mmu_fil_eject_menu() {
    mmu_common_choose_filament_menu(_T(MSG_EJECT_FROM_MMU), mmu_eject_filament);
   1c47c:	84 e6       	ldi	r24, 0x64	; 100
   1c47e:	9b e5       	ldi	r25, 0x5B	; 91
   1c480:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c484:	6a e5       	ldi	r22, 0x5A	; 90
   1c486:	72 ee       	ldi	r23, 0xE2	; 226
   1c488:	0c 94 fc e1 	jmp	0x1c3f8	; 0x1c3f8 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))>

0001c48c <mmu_load_to_nozzle_menu() [clone .lto_priv.446]>:
        MENU_ITEM_FUNCTION_NR_P(label, i + '1', menuAction, i);
    MENU_END();
}

static void mmu_load_to_nozzle_menu() {
    mmu_common_choose_filament_menu(_T(MSG_LOAD_FILAMENT), lcd_mmu_load_to_nozzle_wrapper);
   1c48c:	86 e2       	ldi	r24, 0x26	; 38
   1c48e:	96 e4       	ldi	r25, 0x46	; 70
   1c490:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c494:	68 ec       	ldi	r22, 0xC8	; 200
   1c496:	79 e3       	ldi	r23, 0x39	; 57
   1c498:	0c 94 fc e1 	jmp	0x1c3f8	; 0x1c3f8 <mmu_common_choose_filament_menu(char const*, void (*)(unsigned char))>

0001c49c <mmu_cut_filament_wrapper(unsigned char)>:
static void mmu_fil_eject_menu() {
    mmu_common_choose_filament_menu(_T(MSG_EJECT_FROM_MMU), mmu_eject_filament);
}

#ifdef MMU_HAS_CUTTER
static inline void mmu_cut_filament_wrapper(uint8_t index){
   1c49c:	cf 93       	push	r28
   1c49e:	c8 2f       	mov	r28, r24
        IncrementMMUFails();
    }
}

bool MMU2::cut_filament(uint8_t slot, bool enableFullScreenMsg /*= true*/) {
    if (!WaitForMMUReady()) {
   1c4a0:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   1c4a4:	88 23       	and	r24, r24
   1c4a6:	21 f0       	breq	.+8      	; 0x1c4b0 <mmu_cut_filament_wrapper(unsigned char)+0x14>
   1c4a8:	8c 2f       	mov	r24, r28
    MMU2::mmu2.cut_filament(index);
}
   1c4aa:	cf 91       	pop	r28
   1c4ac:	0d 94 54 ae 	jmp	0x35ca8	; 0x35ca8 <MMU2::MMU2::cut_filament(unsigned char, bool) [clone .part.39] [clone .constprop.117]>
   1c4b0:	cf 91       	pop	r28
   1c4b2:	08 95       	ret

0001c4b4 <mmu_eject_filament(unsigned char)>:

static void mmu_load_to_nozzle_menu() {
    mmu_common_choose_filament_menu(_T(MSG_LOAD_FILAMENT), lcd_mmu_load_to_nozzle_wrapper);
}

static void mmu_eject_filament(uint8_t filament) {
   1c4b4:	cf 93       	push	r28
   1c4b6:	c8 2f       	mov	r28, r24
    menu_back();
   1c4b8:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
    MMU2::mmu2.eject_filament(filament, true);
   1c4bc:	61 e0       	ldi	r22, 0x01	; 1
   1c4be:	8c 2f       	mov	r24, r28
   1c4c0:	0f 94 d7 ad 	call	0x35bae	; 0x35bae <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]>

    // Clear the filament action
    clearFilamentAction();
}
   1c4c4:	cf 91       	pop	r28
static void mmu_eject_filament(uint8_t filament) {
    menu_back();
    MMU2::mmu2.eject_filament(filament, true);

    // Clear the filament action
    clearFilamentAction();
   1c4c6:	0d 94 9f 21 	jmp	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>

0001c4ca <load_all_wrapper()>:

}

static inline void load_all_wrapper(){
    for(uint8_t i = 0; i < MMU_FILAMENT_COUNT; ++i){
        MMU2::mmu2.load_filament(i);
   1c4ca:	80 e0       	ldi	r24, 0x00	; 0
   1c4cc:	0f 94 94 ad 	call	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>
   1c4d0:	81 e0       	ldi	r24, 0x01	; 1
   1c4d2:	0f 94 94 ad 	call	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>
   1c4d6:	82 e0       	ldi	r24, 0x02	; 2
   1c4d8:	0f 94 94 ad 	call	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>
   1c4dc:	83 e0       	ldi	r24, 0x03	; 3
   1c4de:	0f 94 94 ad 	call	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>
   1c4e2:	84 e0       	ldi	r24, 0x04	; 4
   1c4e4:	0d 94 94 ad 	jmp	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>

0001c4e8 <load_filament_wrapper(unsigned char)>:
    }
}

static inline void load_filament_wrapper(uint8_t i){
    MMU2::mmu2.load_filament(i);
   1c4e8:	0d 94 94 ad 	jmp	0x35b28	; 0x35b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>

0001c4ec <menu_setlang(unsigned char)>:
}
#endif //TMC2130

#if (LANG_MODE != 0)
static void menu_setlang(uint8_t lang)
{
   1c4ec:	cf 93       	push	r28
   1c4ee:	c8 2f       	mov	r28, r24
	if (!lang_select(lang))
   1c4f0:	0e 94 bb 71 	call	0xe376	; 0xe376 <lang_select>
   1c4f4:	81 11       	cpse	r24, r1
   1c4f6:	37 c0       	rjmp	.+110    	; 0x1c566 <menu_setlang(unsigned char)+0x7a>
	{
		if (lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_COPY_SEL_LANG), false, LCD_LEFT_BUTTON_CHOICE) == LCD_LEFT_BUTTON_CHOICE)
   1c4f8:	80 ee       	ldi	r24, 0xE0	; 224
   1c4fa:	9a e3       	ldi	r25, 0x3A	; 58
   1c4fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c500:	40 e0       	ldi	r20, 0x00	; 0
   1c502:	60 e0       	ldi	r22, 0x00	; 0
   1c504:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
   1c508:	81 11       	cpse	r24, r1
   1c50a:	20 c0       	rjmp	.+64     	; 0x1c54c <menu_setlang(unsigned char)+0x60>
#endif //(LANG_MODE == 0)


void lang_boot_update_start(uint8_t lang)
{
	uint8_t cnt = lang_get_count();
   1c50c:	0e 94 70 71 	call	0xe2e0	; 0xe2e0 <lang_get_count>
	if ((lang < 2) || (lang > cnt)) return; //only languages from xflash can be selected
   1c510:	c2 30       	cpi	r28, 0x02	; 2
   1c512:	e0 f0       	brcs	.+56     	; 0x1c54c <menu_setlang(unsigned char)+0x60>
   1c514:	8c 17       	cp	r24, r28
   1c516:	d0 f0       	brcs	.+52     	; 0x1c54c <menu_setlang(unsigned char)+0x60>
	softReset();
}

void bootapp_reboot_user0(uint8_t reserved)
{
	cli();
   1c518:	f8 94       	cli
	boot_app_magic = BOOT_APP_MAGIC;
   1c51a:	8a ea       	ldi	r24, 0xAA	; 170
   1c51c:	95 e5       	ldi	r25, 0x55	; 85
   1c51e:	dc 01       	movw	r26, r24
   1c520:	80 93 fc 1f 	sts	0x1FFC, r24	; 0x801ffc <__bss_end+0x7dc>
   1c524:	90 93 fd 1f 	sts	0x1FFD, r25	; 0x801ffd <__bss_end+0x7dd>
   1c528:	a0 93 fe 1f 	sts	0x1FFE, r26	; 0x801ffe <__bss_end+0x7de>
   1c52c:	b0 93 ff 1f 	sts	0x1FFF, r27	; 0x801fff <__bss_end+0x7df>
	boot_app_flags = BOOT_APP_FLG_USER0;
   1c530:	80 e8       	ldi	r24, 0x80	; 128
   1c532:	80 93 fb 1f 	sts	0x1FFB, r24	; 0x801ffb <__bss_end+0x7db>
	boot_copy_size = 0;
   1c536:	10 92 f9 1f 	sts	0x1FF9, r1	; 0x801ff9 <__bss_end+0x7d9>
   1c53a:	10 92 f8 1f 	sts	0x1FF8, r1	; 0x801ff8 <__bss_end+0x7d8>
	bootapp_reboot_user0(lang << 3);
   1c53e:	cc 0f       	add	r28, r28
   1c540:	cc 0f       	add	r28, r28
   1c542:	cc 0f       	add	r28, r28
	boot_reserved = reserved;
   1c544:	c0 93 fa 1f 	sts	0x1FFA, r28	; 0x801ffa <__bss_end+0x7da>
	// bootapp_print_vars();
	softReset();
   1c548:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>
			lang_boot_update_start(lang);
		lcd_update_enable(true);
   1c54c:	81 e0       	ldi	r24, 0x01	; 1
   1c54e:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
		menu_goto(lcd_language_menu, 0, true, true);
   1c552:	21 e0       	ldi	r18, 0x01	; 1
   1c554:	41 e0       	ldi	r20, 0x01	; 1
   1c556:	70 e0       	ldi	r23, 0x00	; 0
   1c558:	60 e0       	ldi	r22, 0x00	; 0
   1c55a:	86 eb       	ldi	r24, 0xB6	; 182
   1c55c:	93 ee       	ldi	r25, 0xE3	; 227
   1c55e:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
   1c562:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
		lcd_timeoutToStatus.stop(); //infinite timeout
	}
}
   1c566:	cf 91       	pop	r28
   1c568:	08 95       	ret

0001c56a <lcd_community_language_menu()>:

#ifdef COMMUNITY_LANGUAGE_SUPPORT
#ifdef XFLASH
static void lcd_community_language_menu()
{
   1c56a:	cf 93       	push	r28
   1c56c:	df 93       	push	r29
	MENU_BEGIN();
   1c56e:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c572:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c576:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c57a:	84 30       	cpi	r24, 0x04	; 4
   1c57c:	58 f5       	brcc	.+86     	; 0x1c5d4 <lcd_community_language_menu()+0x6a>
   1c57e:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	uint8_t cnt = lang_get_count();
   1c582:	0e 94 70 71 	call	0xe2e0	; 0xe2e0 <lang_get_count>
   1c586:	d8 2f       	mov	r29, r24
	MENU_ITEM_BACK_P(_T(MSG_SELECT_LANGUAGE)); //Back to previous Menu
   1c588:	8f e3       	ldi	r24, 0x3F	; 63
   1c58a:	94 e4       	ldi	r25, 0x44	; 68
   1c58c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c590:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	for (uint8_t i = 8; i < cnt; i++) //all community languages
   1c594:	c8 e0       	ldi	r28, 0x08	; 8
   1c596:	cd 17       	cp	r28, r29
   1c598:	80 f4       	brcc	.+32     	; 0x1c5ba <lcd_community_language_menu()+0x50>
		if (menu_item_text_P(lang_get_name_by_code(lang_get_code(i))))
   1c59a:	8c 2f       	mov	r24, r28
   1c59c:	0e 94 21 71 	call	0xe242	; 0xe242 <lang_get_code>
   1c5a0:	0e 94 ba 70 	call	0xe174	; 0xe174 <lang_get_name_by_code>
   1c5a4:	0f 94 83 d1 	call	0x3a306	; 0x3a306 <menu_item_text_P(char const*)>
   1c5a8:	88 23       	and	r24, r24
   1c5aa:	29 f0       	breq	.+10     	; 0x1c5b6 <lcd_community_language_menu()+0x4c>
		{
			menu_setlang(i);
   1c5ac:	8c 2f       	mov	r24, r28
			return;
		}
	MENU_END();
}
   1c5ae:	df 91       	pop	r29
   1c5b0:	cf 91       	pop	r28
	uint8_t cnt = lang_get_count();
	MENU_ITEM_BACK_P(_T(MSG_SELECT_LANGUAGE)); //Back to previous Menu
	for (uint8_t i = 8; i < cnt; i++) //all community languages
		if (menu_item_text_P(lang_get_name_by_code(lang_get_code(i))))
		{
			menu_setlang(i);
   1c5b2:	0c 94 76 e2 	jmp	0x1c4ec	; 0x1c4ec <menu_setlang(unsigned char)>
static void lcd_community_language_menu()
{
	MENU_BEGIN();
	uint8_t cnt = lang_get_count();
	MENU_ITEM_BACK_P(_T(MSG_SELECT_LANGUAGE)); //Back to previous Menu
	for (uint8_t i = 8; i < cnt; i++) //all community languages
   1c5b6:	cf 5f       	subi	r28, 0xFF	; 255
   1c5b8:	ee cf       	rjmp	.-36     	; 0x1c596 <lcd_community_language_menu()+0x2c>
		if (menu_item_text_P(lang_get_name_by_code(lang_get_code(i))))
		{
			menu_setlang(i);
			return;
		}
	MENU_END();
   1c5ba:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>

#ifdef COMMUNITY_LANGUAGE_SUPPORT
#ifdef XFLASH
static void lcd_community_language_menu()
{
	MENU_BEGIN();
   1c5be:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c5c2:	8f 5f       	subi	r24, 0xFF	; 255
   1c5c4:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c5c8:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c5cc:	8f 5f       	subi	r24, 0xFF	; 255
   1c5ce:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c5d2:	d1 cf       	rjmp	.-94     	; 0x1c576 <lcd_community_language_menu()+0xc>
		{
			menu_setlang(i);
			return;
		}
	MENU_END();
}
   1c5d4:	df 91       	pop	r29
   1c5d6:	cf 91       	pop	r28
   1c5d8:	08 95       	ret

0001c5da <sheets_menu()>:
    lcd_sheet_menu();
}

static void sheets_menu()
{
    MENU_BEGIN();
   1c5da:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c5de:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c5e2:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c5e6:	84 30       	cpi	r24, 0x04	; 4
   1c5e8:	08 f0       	brcs	.+2      	; 0x1c5ec <sheets_menu()+0x12>
   1c5ea:	45 c0       	rjmp	.+138    	; 0x1c676 <sheets_menu()+0x9c>
   1c5ec:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_HW_SETUP));
   1c5f0:	8e e6       	ldi	r24, 0x6E	; 110
   1c5f2:	94 e4       	ldi	r25, 0x44	; 68
   1c5f4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c5f8:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[0], select_sheet_menu<0>);
   1c5fc:	66 ea       	ldi	r22, 0xA6	; 166
   1c5fe:	74 ed       	ldi	r23, 0xD4	; 212
   1c600:	89 e4       	ldi	r24, 0x49	; 73
   1c602:	9d e0       	ldi	r25, 0x0D	; 13
   1c604:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[1], select_sheet_menu<1>);
   1c608:	61 ea       	ldi	r22, 0xA1	; 161
   1c60a:	74 ed       	ldi	r23, 0xD4	; 212
   1c60c:	84 e5       	ldi	r24, 0x54	; 84
   1c60e:	9d e0       	ldi	r25, 0x0D	; 13
   1c610:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[2], select_sheet_menu<2>);
   1c614:	6c e9       	ldi	r22, 0x9C	; 156
   1c616:	74 ed       	ldi	r23, 0xD4	; 212
   1c618:	8f e5       	ldi	r24, 0x5F	; 95
   1c61a:	9d e0       	ldi	r25, 0x0D	; 13
   1c61c:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[3], select_sheet_menu<3>);
   1c620:	67 e9       	ldi	r22, 0x97	; 151
   1c622:	74 ed       	ldi	r23, 0xD4	; 212
   1c624:	8a e6       	ldi	r24, 0x6A	; 106
   1c626:	9d e0       	ldi	r25, 0x0D	; 13
   1c628:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[4], select_sheet_menu<4>);
   1c62c:	62 e9       	ldi	r22, 0x92	; 146
   1c62e:	74 ed       	ldi	r23, 0xD4	; 212
   1c630:	85 e7       	ldi	r24, 0x75	; 117
   1c632:	9d e0       	ldi	r25, 0x0D	; 13
   1c634:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[5], select_sheet_menu<5>);
   1c638:	6d e8       	ldi	r22, 0x8D	; 141
   1c63a:	74 ed       	ldi	r23, 0xD4	; 212
   1c63c:	80 e8       	ldi	r24, 0x80	; 128
   1c63e:	9d e0       	ldi	r25, 0x0D	; 13
   1c640:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[6], select_sheet_menu<6>);
   1c644:	68 e8       	ldi	r22, 0x88	; 136
   1c646:	74 ed       	ldi	r23, 0xD4	; 212
   1c648:	8b e8       	ldi	r24, 0x8B	; 139
   1c64a:	9d e0       	ldi	r25, 0x0D	; 13
   1c64c:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[7], select_sheet_menu<7>);
   1c650:	63 e8       	ldi	r22, 0x83	; 131
   1c652:	74 ed       	ldi	r23, 0xD4	; 212
   1c654:	86 e9       	ldi	r24, 0x96	; 150
   1c656:	9d e0       	ldi	r25, 0x0D	; 13
   1c658:	0f 94 03 d4 	call	0x3a806	; 0x3a806 <menu_item_submenu_E(Sheet const&, void (*)())>
    MENU_END();
   1c65c:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    lcd_sheet_menu();
}

static void sheets_menu()
{
    MENU_BEGIN();
   1c660:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c664:	8f 5f       	subi	r24, 0xFF	; 255
   1c666:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c66a:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c66e:	8f 5f       	subi	r24, 0xFF	; 255
   1c670:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c674:	b6 cf       	rjmp	.-148    	; 0x1c5e2 <sheets_menu()+0x8>
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[4], select_sheet_menu<4>);
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[5], select_sheet_menu<5>);
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[6], select_sheet_menu<6>);
    MENU_ITEM_SUBMENU_E(EEPROM_Sheets_base->s[7], select_sheet_menu<7>);
    MENU_END();
}
   1c676:	08 95       	ret

0001c678 <wait_preheat()>:
		lang_select(LANG_ID_PRI);
}
#endif

static void wait_preheat()
{
   1c678:	cf 92       	push	r12
   1c67a:	df 92       	push	r13
   1c67c:	ef 92       	push	r14
   1c67e:	ff 92       	push	r15
    current_position[Z_AXIS] = 100; //move in z axis to make space for loading filament
   1c680:	80 e0       	ldi	r24, 0x00	; 0
   1c682:	90 e0       	ldi	r25, 0x00	; 0
   1c684:	a8 ec       	ldi	r26, 0xC8	; 200
   1c686:	b2 e4       	ldi	r27, 0x42	; 66
   1c688:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   1c68c:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   1c690:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   1c694:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
    plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 60);
   1c698:	65 e5       	ldi	r22, 0x55	; 85
   1c69a:	75 e5       	ldi	r23, 0x55	; 85
   1c69c:	85 e5       	ldi	r24, 0x55	; 85
   1c69e:	91 e4       	ldi	r25, 0x41	; 65
   1c6a0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    delay_keep_alive(2000);
   1c6a4:	80 ed       	ldi	r24, 0xD0	; 208
   1c6a6:	97 e0       	ldi	r25, 0x07	; 7
   1c6a8:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
    lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
   1c6ac:	8f ec       	ldi	r24, 0xCF	; 207
   1c6ae:	9b e3       	ldi	r25, 0x3B	; 59
   1c6b0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c6b4:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
   1c6b8:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   1c6bc:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   1c6c0:	07 2e       	mov	r0, r23
   1c6c2:	00 0c       	add	r0, r0
   1c6c4:	88 0b       	sbc	r24, r24
   1c6c6:	99 0b       	sbc	r25, r25
   1c6c8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1c6cc:	9b 01       	movw	r18, r22
   1c6ce:	ac 01       	movw	r20, r24
    while (fabs(degHotend(0) - degTargetHotend(0)) > TEMP_HYSTERESIS) {
   1c6d0:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1c6d4:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1c6d8:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1c6dc:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1c6e0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1c6e4:	9f 77       	andi	r25, 0x7F	; 127
   1c6e6:	20 e0       	ldi	r18, 0x00	; 0
   1c6e8:	30 e0       	ldi	r19, 0x00	; 0
   1c6ea:	40 ea       	ldi	r20, 0xA0	; 160
   1c6ec:	50 e4       	ldi	r21, 0x40	; 64
   1c6ee:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1c6f2:	18 16       	cp	r1, r24
   1c6f4:	b4 f5       	brge	.+108    	; 0x1c762 <wait_preheat()+0xea>
        lcd_display_message_fullscreen_P(_T(MSG_WIZARD_HEATING));
   1c6f6:	8f ec       	ldi	r24, 0xCF	; 207
   1c6f8:	9b e3       	ldi	r25, 0x3B	; 59
   1c6fa:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c6fe:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>

        lcd_set_cursor(0, 4);
   1c702:	64 e0       	ldi	r22, 0x04	; 4
   1c704:	80 e0       	ldi	r24, 0x00	; 0
   1c706:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   1c70a:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   1c70e:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   1c712:	07 2e       	mov	r0, r23
   1c714:	00 0c       	add	r0, r0
   1c716:	88 0b       	sbc	r24, r24
   1c718:	99 0b       	sbc	r25, r25
   1c71a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
	    //Print the hotend temperature (9 chars total)
		lcdui_print_temp(LCD_STR_THERMOMETER[0], (int)(degHotend(0) + 0.5), (int)(degTargetHotend(0) + 0.5));
   1c71e:	20 e0       	ldi	r18, 0x00	; 0
   1c720:	30 e0       	ldi	r19, 0x00	; 0
   1c722:	40 e0       	ldi	r20, 0x00	; 0
   1c724:	5f e3       	ldi	r21, 0x3F	; 63
   1c726:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1c72a:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1c72e:	6b 01       	movw	r12, r22
   1c730:	20 e0       	ldi	r18, 0x00	; 0
   1c732:	30 e0       	ldi	r19, 0x00	; 0
   1c734:	40 e0       	ldi	r20, 0x00	; 0
   1c736:	5f e3       	ldi	r21, 0x3F	; 63
   1c738:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1c73c:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1c740:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1c744:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1c748:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1c74c:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1c750:	a6 01       	movw	r20, r12
   1c752:	82 e8       	ldi	r24, 0x82	; 130
   1c754:	0f 94 85 22 	call	0x2450a	; 0x2450a <lcdui_print_temp(char, int, int)>
        delay_keep_alive(1000);
   1c758:	88 ee       	ldi	r24, 0xE8	; 232
   1c75a:	93 e0       	ldi	r25, 0x03	; 3
   1c75c:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   1c760:	ab cf       	rjmp	.-170    	; 0x1c6b8 <wait_preheat()+0x40>
    }

}
   1c762:	ff 90       	pop	r15
   1c764:	ef 90       	pop	r14
   1c766:	df 90       	pop	r13
   1c768:	cf 90       	pop	r12
   1c76a:	08 95       	ret

0001c76c <lcd_language_menu()>:
}
#endif //XFLASH
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL

static void lcd_language_menu()
{
   1c76c:	cf 93       	push	r28
	MENU_BEGIN();
   1c76e:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1c772:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1c776:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c77a:	84 30       	cpi	r24, 0x04	; 4
   1c77c:	08 f0       	brcs	.+2      	; 0x1c780 <lcd_language_menu()+0x14>
   1c77e:	4a c0       	rjmp	.+148    	; 0x1c814 <lcd_language_menu()+0xa8>
   1c780:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	if (lang_is_selected()) MENU_ITEM_BACK_P(_T(MSG_SETTINGS)); //
   1c784:	0e 94 a4 70 	call	0xe148	; 0xe148 <lang_is_selected>
   1c788:	88 23       	and	r24, r24
   1c78a:	31 f0       	breq	.+12     	; 0x1c798 <lcd_language_menu()+0x2c>
   1c78c:	8a ee       	ldi	r24, 0xEA	; 234
   1c78e:	97 e4       	ldi	r25, 0x47	; 71
   1c790:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c794:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	if (menu_item_text_P(lang_get_name_by_code(lang_get_code(0)))) //primary language
   1c798:	8e e6       	ldi	r24, 0x6E	; 110
   1c79a:	95 e6       	ldi	r25, 0x65	; 101
   1c79c:	0e 94 ba 70 	call	0xe174	; 0xe174 <lang_get_name_by_code>
   1c7a0:	0f 94 83 d1 	call	0x3a306	; 0x3a306 <menu_item_text_P(char const*)>
   1c7a4:	88 23       	and	r24, r24
   1c7a6:	21 f0       	breq	.+8      	; 0x1c7b0 <lcd_language_menu()+0x44>
	{
		menu_setlang(0);
   1c7a8:	80 e0       	ldi	r24, 0x00	; 0
		MENU_ITEM_SUBMENU_P(_T(MSG_COMMUNITY_MADE), lcd_community_language_menu);
#endif //XFLASH
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL

	MENU_END();
}
   1c7aa:	cf 91       	pop	r28
#else //XFLASH
		for (uint8_t i = 1; i < cnt; i++) //all seconday languages (MK2/25)
#endif //XFLASH
			if (menu_item_text_P(lang_get_name_by_code(lang_get_code(i))))
			{
				menu_setlang(i);
   1c7ac:	0c 94 76 e2 	jmp	0x1c4ec	; 0x1c4ec <menu_setlang(unsigned char)>
	if (menu_item_text_P(lang_get_name_by_code(lang_get_code(0)))) //primary language
	{
		menu_setlang(0);
		return;
	}
	uint8_t cnt = lang_get_count();
   1c7b0:	0e 94 70 71 	call	0xe2e0	; 0xe2e0 <lang_get_count>
			menu_setlang(1);
			return;
		}
	}
	else
		for (uint8_t i = 2; i < 8; i++) //skip seconday language - solved in lang_select (MK3) 'i < 8'  for 7 official languages
   1c7b4:	c2 e0       	ldi	r28, 0x02	; 2
		menu_setlang(0);
		return;
	}
	uint8_t cnt = lang_get_count();
#ifdef XFLASH
	if (cnt == 2) //display secondary language in case of clear xflash
   1c7b6:	82 30       	cpi	r24, 0x02	; 2
   1c7b8:	51 f4       	brne	.+20     	; 0x1c7ce <lcd_language_menu()+0x62>
   1c7ba:	0e 94 91 70 	call	0xe122	; 0xe122 <lang_get_code.part.3>
	{
		if (menu_item_text_P(lang_get_name_by_code(lang_get_code(1))))
   1c7be:	0e 94 ba 70 	call	0xe174	; 0xe174 <lang_get_name_by_code>
   1c7c2:	0f 94 83 d1 	call	0x3a306	; 0x3a306 <menu_item_text_P(char const*)>
   1c7c6:	88 23       	and	r24, r24
   1c7c8:	81 f0       	breq	.+32     	; 0x1c7ea <lcd_language_menu()+0x7e>
		{
			menu_setlang(1);
   1c7ca:	81 e0       	ldi	r24, 0x01	; 1
   1c7cc:	ee cf       	rjmp	.-36     	; 0x1c7aa <lcd_language_menu()+0x3e>
	else
		for (uint8_t i = 2; i < 8; i++) //skip seconday language - solved in lang_select (MK3) 'i < 8'  for 7 official languages
#else //XFLASH
		for (uint8_t i = 1; i < cnt; i++) //all seconday languages (MK2/25)
#endif //XFLASH
			if (menu_item_text_P(lang_get_name_by_code(lang_get_code(i))))
   1c7ce:	8c 2f       	mov	r24, r28
   1c7d0:	0e 94 21 71 	call	0xe242	; 0xe242 <lang_get_code>
   1c7d4:	0e 94 ba 70 	call	0xe174	; 0xe174 <lang_get_name_by_code>
   1c7d8:	0f 94 83 d1 	call	0x3a306	; 0x3a306 <menu_item_text_P(char const*)>
   1c7dc:	88 23       	and	r24, r24
   1c7de:	11 f0       	breq	.+4      	; 0x1c7e4 <lcd_language_menu()+0x78>
			{
				menu_setlang(i);
   1c7e0:	8c 2f       	mov	r24, r28
   1c7e2:	e3 cf       	rjmp	.-58     	; 0x1c7aa <lcd_language_menu()+0x3e>
			menu_setlang(1);
			return;
		}
	}
	else
		for (uint8_t i = 2; i < 8; i++) //skip seconday language - solved in lang_select (MK3) 'i < 8'  for 7 official languages
   1c7e4:	cf 5f       	subi	r28, 0xFF	; 255
   1c7e6:	c8 30       	cpi	r28, 0x08	; 8
   1c7e8:	91 f7       	brne	.-28     	; 0x1c7ce <lcd_language_menu()+0x62>
				return;
			}

#ifdef COMMUNITY_LANGUAGE_SUPPORT
#ifdef XFLASH
		MENU_ITEM_SUBMENU_P(_T(MSG_COMMUNITY_MADE), lcd_community_language_menu);
   1c7ea:	8a ef       	ldi	r24, 0xFA	; 250
   1c7ec:	9a e3       	ldi	r25, 0x3A	; 58
   1c7ee:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c7f2:	65 eb       	ldi	r22, 0xB5	; 181
   1c7f4:	72 ee       	ldi	r23, 0xE2	; 226
   1c7f6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //XFLASH
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL

	MENU_END();
   1c7fa:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
#endif //XFLASH
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL

static void lcd_language_menu()
{
	MENU_BEGIN();
   1c7fe:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1c802:	8f 5f       	subi	r24, 0xFF	; 255
   1c804:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1c808:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1c80c:	8f 5f       	subi	r24, 0xFF	; 255
   1c80e:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1c812:	b1 cf       	rjmp	.-158    	; 0x1c776 <lcd_language_menu()+0xa>
		MENU_ITEM_SUBMENU_P(_T(MSG_COMMUNITY_MADE), lcd_community_language_menu);
#endif //XFLASH
#endif //COMMUNITY_LANGUAGE_SUPPORT && W52X20CL

	MENU_END();
}
   1c814:	cf 91       	pop	r28
   1c816:	08 95       	ret

0001c818 <lcd_menu_show_sensors_state()>:
                 pat9125_s, pat9125_y);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
}

void lcd_menu_show_sensors_state()                // NOT static due to using inside "Marlin_main" module ("manage_inactivity()")
{
   1c818:	cf 93       	push	r28
   1c81a:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
{
	//0: N/A; 1: OFF; 2: ON
	uint8_t pinda_state = STATE_NA;
	uint8_t idler_state = STATE_NA;

	pinda_state = READ(Z_MIN_PIN);
   1c81e:	c3 b1       	in	r28, 0x03	; 3
	lcd_puts_at_P(0, 0, MSG_PINDA);
   1c820:	4e ec       	ldi	r20, 0xCE	; 206
   1c822:	59 e6       	ldi	r21, 0x69	; 105
   1c824:	60 e0       	ldi	r22, 0x00	; 0
   1c826:	80 e0       	ldi	r24, 0x00	; 0
   1c828:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	lcd_set_cursor(LCD_WIDTH - 14, 0);
   1c82c:	60 e0       	ldi	r22, 0x00	; 0
   1c82e:	86 e0       	ldi	r24, 0x06	; 6
   1c830:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_print_state(pinda_state);
   1c834:	c4 fb       	bst	r28, 4
   1c836:	88 27       	eor	r24, r24
   1c838:	80 f9       	bld	r24, 0
   1c83a:	0f 94 96 20 	call	0x2412c	; 0x2412c <lcd_print_state(unsigned char) [clone .lto_priv.440]>

	if (MMU2::mmu2.Enabled()) {
   1c83e:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1c842:	81 30       	cpi	r24, 0x01	; 1
   1c844:	99 f4       	brne	.+38     	; 0x1c86c <lcd_menu_show_sensors_state()+0x54>
    inline bool Running() const {
        return state == State::Running;
    }

    inline bool FindaPressed() const {
        return regs8[0];
   1c846:	c1 e0       	ldi	r28, 0x01	; 1
   1c848:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   1c84c:	81 11       	cpse	r24, r1
   1c84e:	01 c0       	rjmp	.+2      	; 0x1c852 <lcd_menu_show_sensors_state()+0x3a>
   1c850:	c0 e0       	ldi	r28, 0x00	; 0
		const uint8_t finda_state = MMU2::mmu2.FindaDetectsFilament();
		lcd_puts_at_P(10, 0, _n("FINDA"));////MSG_FINDA c=5
   1c852:	48 ec       	ldi	r20, 0xC8	; 200
   1c854:	59 e6       	ldi	r21, 0x69	; 105
   1c856:	60 e0       	ldi	r22, 0x00	; 0
   1c858:	8a e0       	ldi	r24, 0x0A	; 10
   1c85a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(LCD_WIDTH - 3, 0);
   1c85e:	60 e0       	ldi	r22, 0x00	; 0
   1c860:	81 e1       	ldi	r24, 0x11	; 17
   1c862:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_print_state(finda_state);
   1c866:	8c 2f       	mov	r24, r28
   1c868:	0f 94 96 20 	call	0x2412c	; 0x2412c <lcd_print_state(unsigned char) [clone .lto_priv.440]>
   1c86c:	c1 e0       	ldi	r28, 0x01	; 1
   1c86e:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   1c872:	81 11       	cpse	r24, r1
   1c874:	01 c0       	rjmp	.+2      	; 0x1c878 <lcd_menu_show_sensors_state()+0x60>
   1c876:	c0 e0       	ldi	r28, 0x00	; 0
	}
#ifdef FILAMENT_SENSOR
	idler_state = fsensor.getFilamentPresent();
	lcd_puts_at_P(0, 1, _T(MSG_FSENSOR));
   1c878:	8b e4       	ldi	r24, 0x4B	; 75
   1c87a:	97 e4       	ldi	r25, 0x47	; 71
   1c87c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1c880:	ac 01       	movw	r20, r24
   1c882:	61 e0       	ldi	r22, 0x01	; 1
   1c884:	80 e0       	ldi	r24, 0x00	; 0
   1c886:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	lcd_set_cursor(LCD_WIDTH - 3, 1);
   1c88a:	61 e0       	ldi	r22, 0x01	; 1
   1c88c:	81 e1       	ldi	r24, 0x11	; 17
   1c88e:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_print_state(idler_state);
   1c892:	8c 2f       	mov	r24, r28
   1c894:	0f 94 96 20 	call	0x2412c	; 0x2412c <lcd_print_state(unsigned char) [clone .lto_priv.440]>
    //  auto-exposure algorithm. When the chip is tracking on a reflective surface, the Shutter is small.
    //  When the chip is tracking on a surface that absorbs IR (or doesn't reflect it), the Shutter is large.
    //  The maximum value of the shutter is 17. The value of 16 seems to be reported as 17 even though the
    //  Brightness value changes correctly as if the shutter changed to 16 (probably some bug with the sensor).
    //  The shutter algorithm tries to keep the B value in the 70-110 range.
    lcd_set_cursor(0, 2);
   1c898:	62 e0       	ldi	r22, 0x02	; 2
   1c89a:	80 e0       	ldi	r24, 0x00	; 0
   1c89c:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
    lcd_printf_P(_N("B: %3d     Xd:%6d\n"
   1c8a0:	80 91 90 0e 	lds	r24, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   1c8a4:	8f 93       	push	r24
   1c8a6:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   1c8aa:	8f 93       	push	r24
   1c8ac:	80 91 bb 0d 	lds	r24, 0x0DBB	; 0x800dbb <pat9125_s>
   1c8b0:	1f 92       	push	r1
   1c8b2:	8f 93       	push	r24
   1c8b4:	80 91 98 03 	lds	r24, 0x0398	; 0x800398 <pat9125_x+0x1>
   1c8b8:	8f 93       	push	r24
   1c8ba:	80 91 97 03 	lds	r24, 0x0397	; 0x800397 <pat9125_x>
   1c8be:	8f 93       	push	r24
   1c8c0:	80 91 ba 0d 	lds	r24, 0x0DBA	; 0x800dba <pat9125_b>
   1c8c4:	1f 92       	push	r1
   1c8c6:	8f 93       	push	r24
   1c8c8:	84 ea       	ldi	r24, 0xA4	; 164
   1c8ca:	99 e6       	ldi	r25, 0x69	; 105
   1c8cc:	9f 93       	push	r25
   1c8ce:	8f 93       	push	r24
   1c8d0:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>

void lcd_menu_show_sensors_state()                // NOT static due to using inside "Marlin_main" module ("manage_inactivity()")
{
	lcd_timeoutToStatus.stop();
	lcd_show_sensors_state();
	menu_back_if_clicked();
   1c8d4:	8d b7       	in	r24, 0x3d	; 61
   1c8d6:	9e b7       	in	r25, 0x3e	; 62
   1c8d8:	0a 96       	adiw	r24, 0x0a	; 10
   1c8da:	0f b6       	in	r0, 0x3f	; 63
   1c8dc:	f8 94       	cli
   1c8de:	9e bf       	out	0x3e, r25	; 62
   1c8e0:	0f be       	out	0x3f, r0	; 63
   1c8e2:	8d bf       	out	0x3d, r24	; 61
}
   1c8e4:	cf 91       	pop	r28

void lcd_menu_show_sensors_state()                // NOT static due to using inside "Marlin_main" module ("manage_inactivity()")
{
	lcd_timeoutToStatus.stop();
	lcd_show_sensors_state();
	menu_back_if_clicked();
   1c8e6:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

0001c8ea <MMU2::MMU2::Start() [clone .constprop.65]>:
    } else {
        SERIAL_ECHOLNRPGM(_O(MSG_OFF));
    }
}

void MMU2::Start() {
   1c8ea:	1f 93       	push	r17
   1c8ec:	cf 93       	push	r28
   1c8ee:	df 93       	push	r29
}

//uart init (io + FILE stream)
void uart2_init(uint32_t baudRate)
{
	DDRH &=	~0x01;
   1c8f0:	e1 e0       	ldi	r30, 0x01	; 1
   1c8f2:	f1 e0       	ldi	r31, 0x01	; 1
   1c8f4:	80 81       	ld	r24, Z
   1c8f6:	8e 7f       	andi	r24, 0xFE	; 254
   1c8f8:	80 83       	st	Z, r24
	PORTH |= 0x01;
   1c8fa:	e2 e0       	ldi	r30, 0x02	; 2
   1c8fc:	f1 e0       	ldi	r31, 0x01	; 1
   1c8fe:	80 81       	ld	r24, Z
   1c900:	81 60       	ori	r24, 0x01	; 1
   1c902:	80 83       	st	Z, r24
//#include <avr/interrupt.h>


void rbuf_ini(uint8_t* ptr, uint8_t l)
{
	ptr[0] = l;
   1c904:	ea e3       	ldi	r30, 0x3A	; 58
   1c906:	f5 e0       	ldi	r31, 0x05	; 5
   1c908:	90 e1       	ldi	r25, 0x10	; 16
   1c90a:	90 83       	st	Z, r25
	ptr[1] = 0;
   1c90c:	11 82       	std	Z+1, r1	; 0x01
	ptr[2] = 0;
   1c90e:	12 82       	std	Z+2, r1	; 0x02
	rbuf_ini(uart2_ibuf, sizeof(uart2_ibuf) - 4);
	UCSR2A |= (1 << U2X2); // baudrate multiplier
   1c910:	e0 ed       	ldi	r30, 0xD0	; 208
   1c912:	f0 e0       	ldi	r31, 0x00	; 0
   1c914:	80 81       	ld	r24, Z
   1c916:	82 60       	ori	r24, 0x02	; 2
   1c918:	80 83       	st	Z, r24
	UBRR2L = UART_BAUD_SELECT(baudRate, F_CPU); // select baudrate
   1c91a:	90 93 d4 00 	sts	0x00D4, r25	; 0x8000d4 <__TEXT_REGION_LENGTH__+0x7c20d4>
	UCSR2B = (1 << RXEN2) | (1 << TXEN2); // enable receiver and transmitter
   1c91e:	e1 ed       	ldi	r30, 0xD1	; 209
   1c920:	f0 e0       	ldi	r31, 0x00	; 0
   1c922:	88 e1       	ldi	r24, 0x18	; 24
   1c924:	80 83       	st	Z, r24
	UCSR2B |= (1 << RXCIE2); // enable rx interrupt
   1c926:	80 81       	ld	r24, Z
   1c928:	80 68       	ori	r24, 0x80	; 128
   1c92a:	80 83       	st	Z, r24
	fdev_setup_stream(uart2io, uart2_putchar, uart2_getchar, _FDEV_SETUP_WRITE | _FDEV_SETUP_READ); //setup uart2 i/o stream
   1c92c:	e4 e9       	ldi	r30, 0x94	; 148
   1c92e:	f2 e1       	ldi	r31, 0x12	; 18
   1c930:	8c e6       	ldi	r24, 0x6C	; 108
   1c932:	99 e3       	ldi	r25, 0x39	; 57
   1c934:	91 87       	std	Z+9, r25	; 0x09
   1c936:	80 87       	std	Z+8, r24	; 0x08
   1c938:	8c e1       	ldi	r24, 0x1C	; 28
   1c93a:	9a e3       	ldi	r25, 0x3A	; 58
   1c93c:	93 87       	std	Z+11, r25	; 0x0b
   1c93e:	82 87       	std	Z+10, r24	; 0x0a
   1c940:	13 e0       	ldi	r17, 0x03	; 3
   1c942:	13 83       	std	Z+3, r17	; 0x03
   1c944:	15 86       	std	Z+13, r1	; 0x0d
   1c946:	14 86       	std	Z+12, r1	; 0x0c
namespace MMU2 {

// On MK3 we cannot do actual power cycle on HW. Instead trigger a hardware reset.
void power_on() {
#ifdef MMU_HWRESET
    WRITE(MMU_RST_PIN, 1);
   1c948:	9f b7       	in	r25, 0x3f	; 63
   1c94a:	f8 94       	cli
   1c94c:	e5 e0       	ldi	r30, 0x05	; 5
   1c94e:	f1 e0       	ldi	r31, 0x01	; 1
   1c950:	80 81       	ld	r24, Z
   1c952:	80 62       	ori	r24, 0x20	; 32
   1c954:	80 83       	st	Z, r24
   1c956:	9f bf       	out	0x3f, r25	; 63
    SET_OUTPUT(MMU_RST_PIN); // setup reset pin
   1c958:	e4 e0       	ldi	r30, 0x04	; 4
   1c95a:	f1 e0       	ldi	r31, 0x01	; 1
   1c95c:	80 81       	ld	r24, Z
   1c95e:	80 62       	ori	r24, 0x20	; 32
   1c960:	80 83       	st	Z, r24
#endif //MMU_HWRESET

    reset();
   1c962:	0f 94 d9 c5 	call	0x38bb2	; 0x38bb2 <MMU2::reset()>
    mmu2Serial.begin(MMU_BAUD);

    PowerOn();
    mmu2Serial.flush(); // make sure the UART buffer is clear before starting communication

    SetCurrentTool(MMU2_NO_TOOL);
   1c966:	83 e6       	ldi	r24, 0x63	; 99
   1c968:	0f 94 42 88 	call	0x31084	; 0x31084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>
        retryAttempts--;
    }
}

void ProtocolLogic::ResetRetryAttempts() {
    SERIAL_ECHOLNPGM("ResetRetryAttempts");
   1c96c:	8e ea       	ldi	r24, 0xAE	; 174
   1c96e:	96 ea       	ldi	r25, 0xA6	; 166
   1c970:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    retryAttempts = MAX_RETRIES;
   1c974:	cb e4       	ldi	r28, 0x4B	; 75
   1c976:	d3 e1       	ldi	r29, 0x13	; 19
   1c978:	10 93 9f 13 	sts	0x139F, r17	; 0x80139f <MMU2::mmu2+0x54>
}

void ProtocolLogic::ResetCommunicationTimeoutAttempts() {
    SERIAL_ECHOLNPGM("RSTCommTimeout");
   1c97c:	83 e7       	ldi	r24, 0x73	; 115
   1c97e:	9a ea       	ldi	r25, 0xAA	; 170
   1c980:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    /// @returns the initial cause which started this drop out event
    inline StepStatus InitialCause() const { return cause; }

    /// Rearms the object for further processing - basically call this once the MMU responds with something meaningful (e.g. S0 A2)
    inline void Reset() { occurrences = maxOccurrences; }
   1c984:	8a e0       	ldi	r24, 0x0A	; 10
   1c986:	8c 8b       	std	Y+20, r24	; 0x14

    // start the communication
    logic.ResetRetryAttempts();
    logic.ResetCommunicationTimeoutAttempts();

    state = xState::Connecting;
   1c988:	82 e0       	ldi	r24, 0x02	; 2
   1c98a:	80 93 ba 13 	sts	0x13BA, r24	; 0x8013ba <MMU2::mmu2+0x6f>
    initRegs8[0] = extraLoadDistance;
    initRegs8[1] = pulleySlowFeedrate;
}

void ProtocolLogic::Start() {
    state = State::InitSequence;
   1c98e:	81 e0       	ldi	r24, 0x01	; 1
   1c990:	8d 8f       	std	Y+29, r24	; 0x1d
    currentScope = Scope::StartSeq;
   1c992:	8a 83       	std	Y+2, r24	; 0x02
        rqState = RequestStates::Code;
    }

    /// resets the internal response decoding state (typically after an error)
    void ResetResponseDecoder() {
        rspState = ResponseStates::RequestCode;
   1c994:	1c a2       	std	Y+36, r1	; 0x24
    LogRequestMsg(txbuff, len);
    RecordUARTActivity();
}

void ProtocolLogic::StartSeqRestart() {
    retries = maxRetries;
   1c996:	86 e0       	ldi	r24, 0x06	; 6
   1c998:	8c 83       	std	Y+4, r24	; 0x04
    SendVersion(0);
   1c99a:	80 e0       	ldi	r24, 0x00	; 0
    logic.Start();
}
   1c99c:	df 91       	pop	r29
   1c99e:	cf 91       	pop	r28
   1c9a0:	1f 91       	pop	r17
   1c9a2:	0d 94 bb a5 	jmp	0x34b76	; 0x34b76 <MMU2::ProtocolLogic::SendVersion(unsigned char) [clone .constprop.309]>

0001c9a6 <mmu_enable_switch()>:
#endif // MMU_FORCE_STEALTH_MODE
}

static void mmu_enable_switch()
{
    uint8_t current_state = eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED);
   1c9a6:	8c ea       	ldi	r24, 0xAC	; 172
   1c9a8:	9c e0       	ldi	r25, 0x0C	; 12
   1c9aa:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>

    if (current_state)
   1c9ae:	88 23       	and	r24, r24
   1c9b0:	61 f0       	breq	.+24     	; 0x1c9ca <mmu_enable_switch()+0x24>
    StopKeepPowered();
    PowerOff();
}

void MMU2::StopKeepPowered() {
    state = xState::Stopped;
   1c9b2:	10 92 ba 13 	sts	0x13BA, r1	; 0x8013ba <MMU2::mmu2+0x6f>
    protocol.ResetResponseDecoder(); // important - finished delayed restart relies on this
    StartSeqRestart();
}

void ProtocolLogic::Stop() {
    state = State::Stopped;
   1c9b6:	10 92 68 13 	sts	0x1368, r1	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Stopped;
   1c9ba:	10 92 4d 13 	sts	0x134D, r1	; 0x80134d <MMU2::mmu2+0x2>
    else
    {
        MMU2::mmu2.Start();
    }

    eeprom_toggle((uint8_t *)EEPROM_MMU_ENABLED);
   1c9be:	8c ea       	ldi	r24, 0xAC	; 172
   1c9c0:	9c e0       	ldi	r25, 0x0C	; 12
   1c9c2:	0e 94 bb 75 	call	0xeb76	; 0xeb76 <eeprom_toggle(unsigned char*)>
    MMU2::mmu2.Status();
   1c9c6:	0d 94 25 76 	jmp	0x2ec4a	; 0x2ec4a <MMU2::MMU2::Status() [clone .constprop.342]>
    {
        MMU2::mmu2.Stop();
    }
    else
    {
        MMU2::mmu2.Start();
   1c9ca:	0e 94 75 e4 	call	0x1c8ea	; 0x1c8ea <MMU2::MMU2::Start() [clone .constprop.65]>
   1c9ce:	f7 cf       	rjmp	.-18     	; 0x1c9be <mmu_enable_switch()+0x18>

0001c9d0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]>:
//!
//! @param header Header text
//! @param item Item text
//! @param last_item Last item text, or nullptr if there is no Last item
//! @return selected item index, first item index is 0
uint8_t choose_menu_P(const char *header, const char *item, const char *last_item)
   1c9d0:	4f 92       	push	r4
   1c9d2:	5f 92       	push	r5
   1c9d4:	6f 92       	push	r6
   1c9d6:	7f 92       	push	r7
   1c9d8:	8f 92       	push	r8
   1c9da:	9f 92       	push	r9
   1c9dc:	af 92       	push	r10
   1c9de:	bf 92       	push	r11
   1c9e0:	cf 92       	push	r12
   1c9e2:	df 92       	push	r13
   1c9e4:	ef 92       	push	r14
   1c9e6:	ff 92       	push	r15
   1c9e8:	0f 93       	push	r16
   1c9ea:	1f 93       	push	r17
   1c9ec:	cf 93       	push	r28
   1c9ee:	df 93       	push	r29
   1c9f0:	6c 01       	movw	r12, r24
   1c9f2:	7b 01       	movw	r14, r22
   1c9f4:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
{
    //following code should handle 3 to 127 number of items well
    const int8_t items_no = last_item?(MMU2::mmu2.Enabled()?6:5):(MMU2::mmu2.Enabled()?5:4);
   1c9f8:	67 2b       	or	r22, r23
   1c9fa:	29 f0       	breq	.+10     	; 0x1ca06 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x36>
   1c9fc:	06 e0       	ldi	r16, 0x06	; 6
   1c9fe:	81 30       	cpi	r24, 0x01	; 1
   1ca00:	29 f0       	breq	.+10     	; 0x1ca0c <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x3c>
   1ca02:	05 e0       	ldi	r16, 0x05	; 5
   1ca04:	03 c0       	rjmp	.+6      	; 0x1ca0c <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x3c>
   1ca06:	04 e0       	ldi	r16, 0x04	; 4
   1ca08:	81 30       	cpi	r24, 0x01	; 1
   1ca0a:	d9 f3       	breq	.-10     	; 0x1ca02 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x32>
    const uint8_t item_len = item?strlen_P(item):0;
	int8_t first = 0;
	int8_t cursor_pos = 1;

	lcd_clear();
   1ca0c:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

	KEEPALIVE_STATE(PAUSED_FOR_USER);
   1ca10:	84 e0       	ldi	r24, 0x04	; 4
   1ca12:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
{
    //following code should handle 3 to 127 number of items well
    const int8_t items_no = last_item?(MMU2::mmu2.Enabled()?6:5):(MMU2::mmu2.Enabled()?5:4);
    const uint8_t item_len = item?strlen_P(item):0;
	int8_t first = 0;
	int8_t cursor_pos = 1;
   1ca16:	c1 e0       	ldi	r28, 0x01	; 1
uint8_t choose_menu_P(const char *header, const char *item, const char *last_item)
{
    //following code should handle 3 to 127 number of items well
    const int8_t items_no = last_item?(MMU2::mmu2.Enabled()?6:5):(MMU2::mmu2.Enabled()?5:4);
    const uint8_t item_len = item?strlen_P(item):0;
	int8_t first = 0;
   1ca18:	81 2c       	mov	r8, r1
		}

		if (cursor_pos > 3)
		{
            cursor_pos = 3;
            if (first < items_no - 3)
   1ca1a:	03 50       	subi	r16, 0x03	; 3
   1ca1c:	11 0b       	sbc	r17, r17
	lcd_clear();

	KEEPALIVE_STATE(PAUSED_FOR_USER);
	while (1)
	{
		manage_heater();
   1ca1e:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity(true);
   1ca22:	81 e0       	ldi	r24, 0x01	; 1
   1ca24:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>

		if (lcd_encoder)
   1ca28:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   1ca2c:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1ca30:	00 97       	sbiw	r24, 0x00	; 0
   1ca32:	09 f4       	brne	.+2      	; 0x1ca36 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x66>
   1ca34:	9d c0       	rjmp	.+314    	; 0x1cb70 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x1a0>
		{
            if (lcd_encoder < 0)
   1ca36:	97 ff       	sbrs	r25, 7
   1ca38:	88 c0       	rjmp	.+272    	; 0x1cb4a <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x17a>
            {
                cursor_pos--;
   1ca3a:	c1 50       	subi	r28, 0x01	; 1

            if (lcd_encoder > 0)
            {
                cursor_pos++;
            }
            lcd_encoder = 0;
   1ca3c:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   1ca40:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
		}

		if (cursor_pos > 3)
   1ca44:	c4 30       	cpi	r28, 0x04	; 4
   1ca46:	0c f4       	brge	.+2      	; 0x1ca4a <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x7a>
   1ca48:	86 c0       	rjmp	.+268    	; 0x1cb56 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x186>
		{
            cursor_pos = 3;
            if (first < items_no - 3)
   1ca4a:	88 2d       	mov	r24, r8
   1ca4c:	08 2c       	mov	r0, r8
   1ca4e:	00 0c       	add	r0, r0
   1ca50:	99 0b       	sbc	r25, r25
   1ca52:	80 17       	cp	r24, r16
   1ca54:	91 07       	cpc	r25, r17
   1ca56:	0c f0       	brlt	.+2      	; 0x1ca5a <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x8a>
   1ca58:	7a c0       	rjmp	.+244    	; 0x1cb4e <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x17e>
            {
                first++;
   1ca5a:	83 94       	inc	r8
                lcd_clear();
   1ca5c:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
            lcd_encoder = 0;
		}

		if (cursor_pos > 3)
		{
            cursor_pos = 3;
   1ca60:	c3 e0       	ldi	r28, 0x03	; 3
            } else { // here we are at the very end of the list
				Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
            }
        }

        if (header) lcd_puts_at_P(0,0,header);
   1ca62:	c1 14       	cp	r12, r1
   1ca64:	d1 04       	cpc	r13, r1
   1ca66:	29 f0       	breq	.+10     	; 0x1ca72 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0xa2>
   1ca68:	a6 01       	movw	r20, r12
   1ca6a:	60 e0       	ldi	r22, 0x00	; 0
   1ca6c:	80 e0       	ldi	r24, 0x00	; 0
   1ca6e:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

        const bool last_visible = (first == items_no - 3);
   1ca72:	a8 2c       	mov	r10, r8
   1ca74:	08 2c       	mov	r0, r8
   1ca76:	00 0c       	add	r0, r0
   1ca78:	bb 08       	sbc	r11, r11
        const uint_least8_t ordinary_items = (last_item&&last_visible)?2:3;
   1ca7a:	e1 14       	cp	r14, r1
   1ca7c:	f1 04       	cpc	r15, r1
   1ca7e:	29 f0       	breq	.+10     	; 0x1ca8a <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0xba>
   1ca80:	82 e0       	ldi	r24, 0x02	; 2
   1ca82:	98 2e       	mov	r9, r24
   1ca84:	a0 16       	cp	r10, r16
   1ca86:	b1 06       	cpc	r11, r17
   1ca88:	11 f0       	breq	.+4      	; 0x1ca8e <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0xbe>
   1ca8a:	93 e0       	ldi	r25, 0x03	; 3
   1ca8c:	99 2e       	mov	r9, r25

        for (uint_least8_t i = 0; i < ordinary_items; i++)
   1ca8e:	d0 e0       	ldi	r29, 0x00	; 0
        {
            if (item) lcd_puts_at_P(1, i + 1, item);
   1ca90:	df 5f       	subi	r29, 0xFF	; 255
   1ca92:	4a e1       	ldi	r20, 0x1A	; 26
   1ca94:	5d e6       	ldi	r21, 0x6D	; 109
   1ca96:	6d 2f       	mov	r22, r29
   1ca98:	81 e0       	ldi	r24, 0x01	; 1
   1ca9a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        if (header) lcd_puts_at_P(0,0,header);

        const bool last_visible = (first == items_no - 3);
        const uint_least8_t ordinary_items = (last_item&&last_visible)?2:3;

        for (uint_least8_t i = 0; i < ordinary_items; i++)
   1ca9e:	9d 12       	cpse	r9, r29
   1caa0:	f7 cf       	rjmp	.-18     	; 0x1ca90 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0xc0>
   1caa2:	48 2c       	mov	r4, r8
   1caa4:	08 2c       	mov	r0, r8
   1caa6:	00 0c       	add	r0, r0
   1caa8:	55 08       	sbc	r5, r5
   1caaa:	66 08       	sbc	r6, r6
   1caac:	77 08       	sbc	r7, r7
   1caae:	8f ef       	ldi	r24, 0xFF	; 255
   1cab0:	48 1a       	sub	r4, r24
   1cab2:	58 0a       	sbc	r5, r24
   1cab4:	68 0a       	sbc	r6, r24
   1cab6:	78 0a       	sbc	r7, r24
        {
            if (item) lcd_puts_at_P(1, i + 1, item);
        }

        for (uint_least8_t i = 0; i < ordinary_items; i++)
   1cab8:	91 2c       	mov	r9, r1
        {
            lcd_set_cursor(2 + item_len, i+1);
   1caba:	93 94       	inc	r9
   1cabc:	69 2d       	mov	r22, r9
   1cabe:	8a e0       	ldi	r24, 0x0A	; 10
   1cac0:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   1cac4:	c3 01       	movw	r24, r6
   1cac6:	b2 01       	movw	r22, r4
   1cac8:	0e 94 20 70 	call	0xe040	; 0xe040 <lcd_print(long, int) [clone .part.3]>
   1cacc:	8f ef       	ldi	r24, 0xFF	; 255
   1cace:	48 1a       	sub	r4, r24
   1cad0:	58 0a       	sbc	r5, r24
   1cad2:	68 0a       	sbc	r6, r24
   1cad4:	78 0a       	sbc	r7, r24
        for (uint_least8_t i = 0; i < ordinary_items; i++)
        {
            if (item) lcd_puts_at_P(1, i + 1, item);
        }

        for (uint_least8_t i = 0; i < ordinary_items; i++)
   1cad6:	d9 11       	cpse	r29, r9
   1cad8:	f0 cf       	rjmp	.-32     	; 0x1caba <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0xea>
        {
            lcd_set_cursor(2 + item_len, i+1);
            lcd_print(first + i + 1);
        }

        if (last_item&&last_visible) lcd_puts_at_P(1, 3, last_item);
   1cada:	e1 14       	cp	r14, r1
   1cadc:	f1 04       	cpc	r15, r1
   1cade:	41 f0       	breq	.+16     	; 0x1caf0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x120>
   1cae0:	a0 16       	cp	r10, r16
   1cae2:	b1 06       	cpc	r11, r17
   1cae4:	29 f4       	brne	.+10     	; 0x1caf0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x120>
   1cae6:	a7 01       	movw	r20, r14
   1cae8:	63 e0       	ldi	r22, 0x03	; 3
   1caea:	81 e0       	ldi	r24, 0x01	; 1
   1caec:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

        lcd_puts_at_P(0, 1, PSTR(" \n \n "));
   1caf0:	41 e1       	ldi	r20, 0x11	; 17
   1caf2:	5e e8       	ldi	r21, 0x8E	; 142
   1caf4:	61 e0       	ldi	r22, 0x01	; 1
   1caf6:	80 e0       	ldi	r24, 0x00	; 0
   1caf8:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        lcd_putc_at(0, cursor_pos, '>');
   1cafc:	4e e3       	ldi	r20, 0x3E	; 62
   1cafe:	6c 2f       	mov	r22, r28
   1cb00:	80 e0       	ldi	r24, 0x00	; 0
   1cb02:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
        _delay(100);
   1cb06:	64 e6       	ldi	r22, 0x64	; 100
   1cb08:	70 e0       	ldi	r23, 0x00	; 0
   1cb0a:	80 e0       	ldi	r24, 0x00	; 0
   1cb0c:	90 e0       	ldi	r25, 0x00	; 0
   1cb0e:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>

		if (lcd_clicked())
   1cb12:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1cb16:	88 23       	and	r24, r24
   1cb18:	09 f4       	brne	.+2      	; 0x1cb1c <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x14c>
   1cb1a:	81 cf       	rjmp	.-254    	; 0x1ca1e <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x4e>
		{
		    KEEPALIVE_STATE(IN_HANDLER);
   1cb1c:	82 e0       	ldi	r24, 0x02	; 2
   1cb1e:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
			return(cursor_pos + first - 1);
   1cb22:	8f ef       	ldi	r24, 0xFF	; 255
   1cb24:	8c 0f       	add	r24, r28
   1cb26:	88 0d       	add	r24, r8
		}
	}
}
   1cb28:	df 91       	pop	r29
   1cb2a:	cf 91       	pop	r28
   1cb2c:	1f 91       	pop	r17
   1cb2e:	0f 91       	pop	r16
   1cb30:	ff 90       	pop	r15
   1cb32:	ef 90       	pop	r14
   1cb34:	df 90       	pop	r13
   1cb36:	cf 90       	pop	r12
   1cb38:	bf 90       	pop	r11
   1cb3a:	af 90       	pop	r10
   1cb3c:	9f 90       	pop	r9
   1cb3e:	8f 90       	pop	r8
   1cb40:	7f 90       	pop	r7
   1cb42:	6f 90       	pop	r6
   1cb44:	5f 90       	pop	r5
   1cb46:	4f 90       	pop	r4
   1cb48:	08 95       	ret
                cursor_pos--;
            }

            if (lcd_encoder > 0)
            {
                cursor_pos++;
   1cb4a:	cf 5f       	subi	r28, 0xFF	; 255
   1cb4c:	77 cf       	rjmp	.-274    	; 0x1ca3c <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x6c>
            if (first < items_no - 3)
            {
                first++;
                lcd_clear();
            } else { // here we are at the very end of the list
				Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   1cb4e:	87 e0       	ldi	r24, 0x07	; 7
   1cb50:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
   1cb54:	85 cf       	rjmp	.-246    	; 0x1ca60 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x90>
            }
        }

        if (cursor_pos < 1)
   1cb56:	c1 11       	cpse	r28, r1
   1cb58:	84 cf       	rjmp	.-248    	; 0x1ca62 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x92>
        {
            cursor_pos = 1;
            if (first > 0)
   1cb5a:	18 14       	cp	r1, r8
   1cb5c:	2c f4       	brge	.+10     	; 0x1cb68 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x198>
            {
                first--;
   1cb5e:	8a 94       	dec	r8
                lcd_clear();
   1cb60:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
            }
        }

        if (cursor_pos < 1)
        {
            cursor_pos = 1;
   1cb64:	c1 e0       	ldi	r28, 0x01	; 1
   1cb66:	7d cf       	rjmp	.-262    	; 0x1ca62 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x92>
            if (first > 0)
            {
                first--;
                lcd_clear();
            } else { // here we are at the very end of the list
				Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   1cb68:	87 e0       	ldi	r24, 0x07	; 7
   1cb6a:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
   1cb6e:	fa cf       	rjmp	.-12     	; 0x1cb64 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x194>
                cursor_pos++;
            }
            lcd_encoder = 0;
		}

		if (cursor_pos > 3)
   1cb70:	c4 30       	cpi	r28, 0x04	; 4
   1cb72:	0c f0       	brlt	.+2      	; 0x1cb76 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x1a6>
   1cb74:	6a cf       	rjmp	.-300    	; 0x1ca4a <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x7a>
   1cb76:	75 cf       	rjmp	.-278    	; 0x1ca62 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]+0x92>

0001cb78 <lcd_v2_calibration()>:
    lcd_printf_P(_T(MSG_SHEET_OFFSET),
            sheet_name, offset, menuData->reset ? ' ' : '>', menuData->reset ? '>' : ' ');// \n denotes line break, %.7s is replaced by 7 character long sheet name, %+1.3f is replaced by 6 character long floating point number, %c is replaced by > or white space (one character) based on whether first or second option is selected. % denoted place holders can not be reordered.

}

void lcd_v2_calibration() {
   1cb78:	cf 93       	push	r28
   1cb7a:	df 93       	push	r29
	if (MMU2::mmu2.Enabled()) {
   1cb7c:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1cb80:	81 30       	cpi	r24, 0x01	; 1
   1cb82:	e9 f4       	brne	.+58     	; 0x1cbbe <lcd_v2_calibration()+0x46>
		const uint8_t filament = choose_menu_P(
   1cb84:	8f e6       	ldi	r24, 0x6F	; 111
   1cb86:	9b e3       	ldi	r25, 0x3B	; 59
   1cb88:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1cb8c:	ec 01       	movw	r28, r24
   1cb8e:	8c e5       	ldi	r24, 0x5C	; 92
   1cb90:	9b e3       	ldi	r25, 0x3B	; 59
   1cb92:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
			_T(MSG_SELECT_FILAMENT),
			MSG_FILAMENT,_T(MSG_CANCEL));
   1cb96:	be 01       	movw	r22, r28
   1cb98:	0e 94 e8 e4 	call	0x1c9d0	; 0x1c9d0 <choose_menu_P(char const*, char const*, char const*) [clone .constprop.50]>
		if (filament < MMU_FILAMENT_COUNT) {
   1cb9c:	85 30       	cpi	r24, 0x05	; 5
   1cb9e:	98 f5       	brcc	.+102    	; 0x1cc06 <lcd_v2_calibration()+0x8e>
			lay1cal_filament = filament;
   1cba0:	80 93 fa 03 	sts	0x03FA, r24	; 0x8003fa <lay1cal_filament>
			return;
		}
	}
#endif //FILAMENT_SENSOR

	eFilamentAction = FilamentAction::Lay1Cal;
   1cba4:	8a e0       	ldi	r24, 0x0A	; 10
   1cba6:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
	menu_goto(lcd_generic_preheat_menu, 0, true);
   1cbaa:	20 e0       	ldi	r18, 0x00	; 0
   1cbac:	41 e0       	ldi	r20, 0x01	; 1
   1cbae:	70 e0       	ldi	r23, 0x00	; 0
   1cbb0:	60 e0       	ldi	r22, 0x00	; 0
   1cbb2:	8a e4       	ldi	r24, 0x4A	; 74
   1cbb4:	99 e3       	ldi	r25, 0x39	; 57
}
   1cbb6:	df 91       	pop	r29
   1cbb8:	cf 91       	pop	r28
		}
	}
#endif //FILAMENT_SENSOR

	eFilamentAction = FilamentAction::Lay1Cal;
	menu_goto(lcd_generic_preheat_menu, 0, true);
   1cbba:	0d 94 ff d1 	jmp	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
			menu_back();
			return;
		}
	}
#ifdef FILAMENT_SENSOR
	else if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
   1cbbe:	8f e5       	ldi	r24, 0x5F	; 95
   1cbc0:	9f e0       	ldi	r25, 0x0F	; 15
   1cbc2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1cbc6:	81 11       	cpse	r24, r1
   1cbc8:	ed cf       	rjmp	.-38     	; 0x1cba4 <lcd_v2_calibration()+0x2c>
	{
		bool loaded = false;
		if (fsensor.isReady()) {
   1cbca:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1cbce:	82 30       	cpi	r24, 0x02	; 2
   1cbd0:	f1 f4       	brne	.+60     	; 0x1cc0e <lcd_v2_calibration()+0x96>
   1cbd2:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   1cbd6:	81 11       	cpse	r24, r1
   1cbd8:	e5 cf       	rjmp	.-54     	; 0x1cba4 <lcd_v2_calibration()+0x2c>
			loaded = !lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_LOADED), false, LCD_MIDDLE_BUTTON_CHOICE);
			lcd_update_enabled = true;
		}

		if (!loaded) {
			lcd_display_message_fullscreen_P(_T(MSG_PLEASE_LOAD_PLA));
   1cbda:	8e e3       	ldi	r24, 0x3E	; 62
   1cbdc:	9b e3       	ldi	r25, 0x3B	; 59
   1cbde:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1cbe2:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
			lcd_consume_click();
   1cbe6:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
   1cbea:	c4 e1       	ldi	r28, 0x14	; 20
			for (uint_least8_t i = 0; i < 20; i++) { //wait max. 2s
				delay_keep_alive(100);
   1cbec:	84 e6       	ldi	r24, 0x64	; 100
   1cbee:	90 e0       	ldi	r25, 0x00	; 0
   1cbf0:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
				if (lcd_clicked()) {
   1cbf4:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1cbf8:	81 11       	cpse	r24, r1
   1cbfa:	02 c0       	rjmp	.+4      	; 0x1cc00 <lcd_v2_calibration()+0x88>
   1cbfc:	c1 50       	subi	r28, 0x01	; 1
		}

		if (!loaded) {
			lcd_display_message_fullscreen_P(_T(MSG_PLEASE_LOAD_PLA));
			lcd_consume_click();
			for (uint_least8_t i = 0; i < 20; i++) { //wait max. 2s
   1cbfe:	b1 f7       	brne	.-20     	; 0x1cbec <lcd_v2_calibration()+0x74>
				delay_keep_alive(100);
				if (lcd_clicked()) {
					break;
				}
			}
			lcd_update_enabled = true;
   1cc00:	81 e0       	ldi	r24, 0x01	; 1
   1cc02:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
	}
#endif //FILAMENT_SENSOR

	eFilamentAction = FilamentAction::Lay1Cal;
	menu_goto(lcd_generic_preheat_menu, 0, true);
}
   1cc06:	df 91       	pop	r29
   1cc08:	cf 91       	pop	r28
				if (lcd_clicked()) {
					break;
				}
			}
			lcd_update_enabled = true;
			menu_back();
   1cc0a:	0d 94 9d d4 	jmp	0x3a93a	; 0x3a93a <menu_back()>
	{
		bool loaded = false;
		if (fsensor.isReady()) {
			loaded = fsensor.getFilamentPresent();
		} else {
			loaded = !lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_LOADED), false, LCD_MIDDLE_BUTTON_CHOICE);
   1cc0e:	8a e6       	ldi	r24, 0x6A	; 106
   1cc10:	90 e4       	ldi	r25, 0x40	; 64
   1cc12:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1cc16:	41 e0       	ldi	r20, 0x01	; 1
   1cc18:	60 e0       	ldi	r22, 0x00	; 0
   1cc1a:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
   1cc1e:	91 e0       	ldi	r25, 0x01	; 1
   1cc20:	81 11       	cpse	r24, r1
   1cc22:	90 e0       	ldi	r25, 0x00	; 0
			lcd_update_enabled = true;
   1cc24:	81 e0       	ldi	r24, 0x01	; 1
   1cc26:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
		}

		if (!loaded) {
   1cc2a:	91 11       	cpse	r25, r1
   1cc2c:	bb cf       	rjmp	.-138    	; 0x1cba4 <lcd_v2_calibration()+0x2c>
   1cc2e:	d5 cf       	rjmp	.-86     	; 0x1cbda <lcd_v2_calibration()+0x62>

0001cc30 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]>:
{
    const float a_ = !isnan(a) ? a : nanv;
    return (a_ * (1.f - f)) + (b * f);
}

void model_data::step(uint8_t heater_pwm, uint8_t fan_pwm, float heater_temp, float ambient_temp)
   1cc30:	2f 92       	push	r2
   1cc32:	3f 92       	push	r3
   1cc34:	4f 92       	push	r4
   1cc36:	5f 92       	push	r5
   1cc38:	6f 92       	push	r6
   1cc3a:	7f 92       	push	r7
   1cc3c:	8f 92       	push	r8
   1cc3e:	9f 92       	push	r9
   1cc40:	af 92       	push	r10
   1cc42:	bf 92       	push	r11
   1cc44:	cf 92       	push	r12
   1cc46:	df 92       	push	r13
   1cc48:	ef 92       	push	r14
   1cc4a:	ff 92       	push	r15
   1cc4c:	0f 93       	push	r16
   1cc4e:	1f 93       	push	r17
   1cc50:	cf 93       	push	r28
   1cc52:	df 93       	push	r29
   1cc54:	00 d0       	rcall	.+0      	; 0x1cc56 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x26>
   1cc56:	00 d0       	rcall	.+0      	; 0x1cc58 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x28>
   1cc58:	1f 92       	push	r1
   1cc5a:	cd b7       	in	r28, 0x3d	; 61
   1cc5c:	de b7       	in	r29, 0x3e	; 62
   1cc5e:	69 83       	std	Y+1, r22	; 0x01
   1cc60:	49 01       	movw	r8, r18
   1cc62:	5a 01       	movw	r10, r20
   1cc64:	27 01       	movw	r4, r14
{
    constexpr float soft_pwm_inv = 1. / ((1 << 7) - 1);

    // input values
    const float heater_scale = soft_pwm_inv * heater_pwm;
   1cc66:	68 2f       	mov	r22, r24
   1cc68:	70 e0       	ldi	r23, 0x00	; 0
   1cc6a:	90 e0       	ldi	r25, 0x00	; 0
   1cc6c:	80 e0       	ldi	r24, 0x00	; 0
   1cc6e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1cc72:	24 e0       	ldi	r18, 0x04	; 4
   1cc74:	32 e0       	ldi	r19, 0x02	; 2
   1cc76:	41 e0       	ldi	r20, 0x01	; 1
   1cc78:	5c e3       	ldi	r21, 0x3C	; 60
   1cc7a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    const float cur_heater_temp = heater_temp;
    const float cur_ambient_temp = ambient_temp + Ta_corr;
    const float cur_R = R[fan_pwm]; // resistance at current fan power (K/W)

    float dP = P * heater_scale; // current power [W]
   1cc7e:	20 91 da 12 	lds	r18, 0x12DA	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   1cc82:	30 91 db 12 	lds	r19, 0x12DB	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   1cc86:	40 91 dc 12 	lds	r20, 0x12DC	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   1cc8a:	50 91 dd 12 	lds	r21, 0x12DD	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
   1cc8e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1cc92:	6b 01       	movw	r12, r22
   1cc94:	7c 01       	movw	r14, r24
    dP *= (cur_heater_temp * U) + V; // linear temp. correction
   1cc96:	20 91 de 12 	lds	r18, 0x12DE	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   1cc9a:	30 91 df 12 	lds	r19, 0x12DF	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   1cc9e:	40 91 e0 12 	lds	r20, 0x12E0	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   1cca2:	50 91 e1 12 	lds	r21, 0x12E1	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
   1cca6:	c5 01       	movw	r24, r10
   1cca8:	b4 01       	movw	r22, r8
   1ccaa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1ccae:	20 91 e2 12 	lds	r18, 0x12E2	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   1ccb2:	30 91 e3 12 	lds	r19, 0x12E3	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   1ccb6:	40 91 e4 12 	lds	r20, 0x12E4	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   1ccba:	50 91 e5 12 	lds	r21, 0x12E5	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
   1ccbe:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1ccc2:	a7 01       	movw	r20, r14
   1ccc4:	96 01       	movw	r18, r12
   1ccc6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1ccca:	6b 01       	movw	r12, r22
   1cccc:	7c 01       	movw	r14, r24
    constexpr float soft_pwm_inv = 1. / ((1 << 7) - 1);

    // input values
    const float heater_scale = soft_pwm_inv * heater_pwm;
    const float cur_heater_temp = heater_temp;
    const float cur_ambient_temp = ambient_temp + Ta_corr;
   1ccce:	20 91 30 13 	lds	r18, 0x1330	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   1ccd2:	30 91 31 13 	lds	r19, 0x1331	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   1ccd6:	40 91 32 13 	lds	r20, 0x1332	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   1ccda:	50 91 33 13 	lds	r21, 0x1333	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
   1ccde:	c8 01       	movw	r24, r16
   1cce0:	b2 01       	movw	r22, r4
   1cce2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1cce6:	9b 01       	movw	r18, r22
   1cce8:	ac 01       	movw	r20, r24
    const float cur_R = R[fan_pwm]; // resistance at current fan power (K/W)

    float dP = P * heater_scale; // current power [W]
    dP *= (cur_heater_temp * U) + V; // linear temp. correction
    float dPl = (cur_heater_temp - cur_ambient_temp) / cur_R; // [W] leakage power
   1ccea:	c5 01       	movw	r24, r10
   1ccec:	b4 01       	movw	r22, r8
   1ccee:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>

    // input values
    const float heater_scale = soft_pwm_inv * heater_pwm;
    const float cur_heater_temp = heater_temp;
    const float cur_ambient_temp = ambient_temp + Ta_corr;
    const float cur_R = R[fan_pwm]; // resistance at current fan power (K/W)
   1ccf2:	39 81       	ldd	r19, Y+1	; 0x01
   1ccf4:	24 e0       	ldi	r18, 0x04	; 4
   1ccf6:	32 9f       	mul	r19, r18
   1ccf8:	f0 01       	movw	r30, r0
   1ccfa:	11 24       	eor	r1, r1
   1ccfc:	e0 51       	subi	r30, 0x10	; 16
   1ccfe:	fd 4e       	sbci	r31, 0xED	; 237

    float dP = P * heater_scale; // current power [W]
    dP *= (cur_heater_temp * U) + V; // linear temp. correction
    float dPl = (cur_heater_temp - cur_ambient_temp) / cur_R; // [W] leakage power
   1cd00:	20 81       	ld	r18, Z
   1cd02:	31 81       	ldd	r19, Z+1	; 0x01
   1cd04:	42 81       	ldd	r20, Z+2	; 0x02
   1cd06:	53 81       	ldd	r21, Z+3	; 0x03
   1cd08:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1cd0c:	9b 01       	movw	r18, r22
   1cd0e:	ac 01       	movw	r20, r24
    float dT = (dP - dPl) * C_i; // expected temperature difference (K)
   1cd10:	c7 01       	movw	r24, r14
   1cd12:	b6 01       	movw	r22, r12
   1cd14:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1cd18:	20 91 3d 13 	lds	r18, 0x133D	; 0x80133d <_ZN13thermal_modelL4dataE.lto_priv.402+0x8d>
   1cd1c:	30 91 3e 13 	lds	r19, 0x133E	; 0x80133e <_ZN13thermal_modelL4dataE.lto_priv.402+0x8e>
   1cd20:	40 91 3f 13 	lds	r20, 0x133F	; 0x80133f <_ZN13thermal_modelL4dataE.lto_priv.402+0x8f>
   1cd24:	50 91 40 13 	lds	r21, 0x1340	; 0x801340 <_ZN13thermal_modelL4dataE.lto_priv.402+0x90>
   1cd28:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1cd2c:	6f 83       	std	Y+7, r22	; 0x07
   1cd2e:	79 83       	std	Y+1, r23	; 0x01
   1cd30:	18 2f       	mov	r17, r24
   1cd32:	09 2f       	mov	r16, r25

    // filter and lag dT
    uint8_t dT_next_idx = (dT_lag_idx == (dT_lag_size - 1) ? 0: dT_lag_idx + 1);
   1cd34:	20 91 d1 12 	lds	r18, 0x12D1	; 0x8012d1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x21>
   1cd38:	e2 2f       	mov	r30, r18
   1cd3a:	f0 e0       	ldi	r31, 0x00	; 0
   1cd3c:	80 91 d0 12 	lds	r24, 0x12D0	; 0x8012d0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x20>
   1cd40:	81 50       	subi	r24, 0x01	; 1
   1cd42:	99 0b       	sbc	r25, r25
   1cd44:	e8 17       	cp	r30, r24
   1cd46:	f9 07       	cpc	r31, r25
   1cd48:	09 f4       	brne	.+2      	; 0x1cd4c <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x11c>
   1cd4a:	f4 c0       	rjmp	.+488    	; 0x1cf34 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x304>
   1cd4c:	2f 5f       	subi	r18, 0xFF	; 255
   1cd4e:	2e 83       	std	Y+6, r18	; 0x06
    float dT_lag = dT_lag_buf[dT_next_idx];
   1cd50:	5e 81       	ldd	r21, Y+6	; 0x06
   1cd52:	44 e0       	ldi	r20, 0x04	; 4
   1cd54:	54 9f       	mul	r21, r20
   1cd56:	10 01       	movw	r2, r0
   1cd58:	11 24       	eor	r1, r1
   1cd5a:	d1 01       	movw	r26, r2
   1cd5c:	a0 55       	subi	r26, 0x50	; 80
   1cd5e:	bd 4e       	sbci	r27, 0xED	; 237
   1cd60:	2d 91       	ld	r18, X+
   1cd62:	3d 91       	ld	r19, X+
   1cd64:	4d 91       	ld	r20, X+
   1cd66:	5c 91       	ld	r21, X
   1cd68:	2a 83       	std	Y+2, r18	; 0x02
   1cd6a:	3b 83       	std	Y+3, r19	; 0x03
   1cd6c:	4c 83       	std	Y+4, r20	; 0x04
   1cd6e:	5d 83       	std	Y+5, r21	; 0x05
    float dT_lag_prev = dT_lag_buf[dT_lag_idx];
   1cd70:	ee 0f       	add	r30, r30
   1cd72:	ff 1f       	adc	r31, r31
   1cd74:	ee 0f       	add	r30, r30
   1cd76:	ff 1f       	adc	r31, r31
   1cd78:	e0 55       	subi	r30, 0x50	; 80
   1cd7a:	fd 4e       	sbci	r31, 0xED	; 237
   1cd7c:	40 80       	ld	r4, Z
   1cd7e:	51 80       	ldd	r5, Z+1	; 0x01
   1cd80:	62 80       	ldd	r6, Z+2	; 0x02
   1cd82:	73 80       	ldd	r7, Z+3	; 0x03
    float dT_f = iir_mul(dT_lag_prev, dT, fS, dT);
   1cd84:	c0 90 ea 12 	lds	r12, 0x12EA	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   1cd88:	d0 90 eb 12 	lds	r13, 0x12EB	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   1cd8c:	e0 90 ec 12 	lds	r14, 0x12EC	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   1cd90:	f0 90 ed 12 	lds	r15, 0x12ED	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
    flag_bits.uninitialized = false;
}

static constexpr float iir_mul(const float a, const float b, const float f, const float nanv)
{
    const float a_ = !isnan(a) ? a : nanv;
   1cd94:	92 01       	movw	r18, r4
   1cd96:	a3 01       	movw	r20, r6
   1cd98:	b2 01       	movw	r22, r4
   1cd9a:	c3 01       	movw	r24, r6
   1cd9c:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1cda0:	88 23       	and	r24, r24
   1cda2:	21 f0       	breq	.+8      	; 0x1cdac <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x17c>
   1cda4:	4f 80       	ldd	r4, Y+7	; 0x07
   1cda6:	59 80       	ldd	r5, Y+1	; 0x01
   1cda8:	61 2e       	mov	r6, r17
   1cdaa:	70 2e       	mov	r7, r16
    // filter and lag dT
    uint8_t dT_next_idx = (dT_lag_idx == (dT_lag_size - 1) ? 0: dT_lag_idx + 1);
    float dT_lag = dT_lag_buf[dT_next_idx];
    float dT_lag_prev = dT_lag_buf[dT_lag_idx];
    float dT_f = iir_mul(dT_lag_prev, dT, fS, dT);
    dT_lag_buf[dT_next_idx] = dT_f;
   1cdac:	a1 01       	movw	r20, r2
   1cdae:	40 55       	subi	r20, 0x50	; 80
   1cdb0:	5d 4e       	sbci	r21, 0xED	; 237
   1cdb2:	1a 01       	movw	r2, r20
}

static constexpr float iir_mul(const float a, const float b, const float f, const float nanv)
{
    const float a_ = !isnan(a) ? a : nanv;
    return (a_ * (1.f - f)) + (b * f);
   1cdb4:	a7 01       	movw	r20, r14
   1cdb6:	96 01       	movw	r18, r12
   1cdb8:	60 e0       	ldi	r22, 0x00	; 0
   1cdba:	70 e0       	ldi	r23, 0x00	; 0
   1cdbc:	80 e8       	ldi	r24, 0x80	; 128
   1cdbe:	9f e3       	ldi	r25, 0x3F	; 63
   1cdc0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1cdc4:	92 01       	movw	r18, r4
   1cdc6:	a3 01       	movw	r20, r6
   1cdc8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1cdcc:	2b 01       	movw	r4, r22
   1cdce:	3c 01       	movw	r6, r24
   1cdd0:	a7 01       	movw	r20, r14
   1cdd2:	96 01       	movw	r18, r12
   1cdd4:	6f 81       	ldd	r22, Y+7	; 0x07
   1cdd6:	79 81       	ldd	r23, Y+1	; 0x01
   1cdd8:	81 2f       	mov	r24, r17
   1cdda:	90 2f       	mov	r25, r16
   1cddc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1cde0:	9b 01       	movw	r18, r22
   1cde2:	ac 01       	movw	r20, r24
   1cde4:	c3 01       	movw	r24, r6
   1cde6:	b2 01       	movw	r22, r4
   1cde8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    // filter and lag dT
    uint8_t dT_next_idx = (dT_lag_idx == (dT_lag_size - 1) ? 0: dT_lag_idx + 1);
    float dT_lag = dT_lag_buf[dT_next_idx];
    float dT_lag_prev = dT_lag_buf[dT_lag_idx];
    float dT_f = iir_mul(dT_lag_prev, dT, fS, dT);
    dT_lag_buf[dT_next_idx] = dT_f;
   1cdec:	f1 01       	movw	r30, r2
   1cdee:	60 83       	st	Z, r22
   1cdf0:	71 83       	std	Z+1, r23	; 0x01
   1cdf2:	82 83       	std	Z+2, r24	; 0x02
   1cdf4:	93 83       	std	Z+3, r25	; 0x03
    dT_lag_idx = dT_next_idx;
   1cdf6:	fe 81       	ldd	r31, Y+6	; 0x06
   1cdf8:	f0 93 d1 12 	sts	0x12D1, r31	; 0x8012d1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x21>

    // calculate and filter dT_err
    float dT_err = (cur_heater_temp - T_prev) - dT_lag;
   1cdfc:	20 91 d6 12 	lds	r18, 0x12D6	; 0x8012d6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x26>
   1ce00:	30 91 d7 12 	lds	r19, 0x12D7	; 0x8012d7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x27>
   1ce04:	40 91 d8 12 	lds	r20, 0x12D8	; 0x8012d8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x28>
   1ce08:	50 91 d9 12 	lds	r21, 0x12D9	; 0x8012d9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x29>
   1ce0c:	c5 01       	movw	r24, r10
   1ce0e:	b4 01       	movw	r22, r8
   1ce10:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1ce14:	2a 81       	ldd	r18, Y+2	; 0x02
   1ce16:	3b 81       	ldd	r19, Y+3	; 0x03
   1ce18:	4c 81       	ldd	r20, Y+4	; 0x04
   1ce1a:	5d 81       	ldd	r21, Y+5	; 0x05
   1ce1c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1ce20:	2b 01       	movw	r4, r22
   1ce22:	3c 01       	movw	r6, r24
    float dT_err_f = iir_mul(dT_err_prev, dT_err, THERMAL_MODEL_fE, 0.);
   1ce24:	c0 90 d2 12 	lds	r12, 0x12D2	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   1ce28:	d0 90 d3 12 	lds	r13, 0x12D3	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   1ce2c:	e0 90 d4 12 	lds	r14, 0x12D4	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   1ce30:	f0 90 d5 12 	lds	r15, 0x12D5	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>
    flag_bits.uninitialized = false;
}

static constexpr float iir_mul(const float a, const float b, const float f, const float nanv)
{
    const float a_ = !isnan(a) ? a : nanv;
   1ce34:	a7 01       	movw	r20, r14
   1ce36:	96 01       	movw	r18, r12
   1ce38:	c7 01       	movw	r24, r14
   1ce3a:	b6 01       	movw	r22, r12
   1ce3c:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   1ce40:	88 23       	and	r24, r24
   1ce42:	19 f0       	breq	.+6      	; 0x1ce4a <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x21a>
   1ce44:	c1 2c       	mov	r12, r1
   1ce46:	d1 2c       	mov	r13, r1
   1ce48:	76 01       	movw	r14, r12
    return (a_ * (1.f - f)) + (b * f);
   1ce4a:	23 e3       	ldi	r18, 0x33	; 51
   1ce4c:	33 e3       	ldi	r19, 0x33	; 51
   1ce4e:	43 e7       	ldi	r20, 0x73	; 115
   1ce50:	5f e3       	ldi	r21, 0x3F	; 63
   1ce52:	c7 01       	movw	r24, r14
   1ce54:	b6 01       	movw	r22, r12
   1ce56:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1ce5a:	6b 01       	movw	r12, r22
   1ce5c:	7c 01       	movw	r14, r24
   1ce5e:	2d ec       	ldi	r18, 0xCD	; 205
   1ce60:	3c ec       	ldi	r19, 0xCC	; 204
   1ce62:	4c e4       	ldi	r20, 0x4C	; 76
   1ce64:	5d e3       	ldi	r21, 0x3D	; 61
   1ce66:	c3 01       	movw	r24, r6
   1ce68:	b2 01       	movw	r22, r4
   1ce6a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1ce6e:	9b 01       	movw	r18, r22
   1ce70:	ac 01       	movw	r20, r24
   1ce72:	c7 01       	movw	r24, r14
   1ce74:	b6 01       	movw	r22, r12
   1ce76:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    dT_lag_idx = dT_next_idx;

    // calculate and filter dT_err
    float dT_err = (cur_heater_temp - T_prev) - dT_lag;
    float dT_err_f = iir_mul(dT_err_prev, dT_err, THERMAL_MODEL_fE, 0.);
    T_prev = cur_heater_temp;
   1ce7a:	80 92 d6 12 	sts	0x12D6, r8	; 0x8012d6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x26>
   1ce7e:	90 92 d7 12 	sts	0x12D7, r9	; 0x8012d7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x27>
   1ce82:	a0 92 d8 12 	sts	0x12D8, r10	; 0x8012d8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x28>
   1ce86:	b0 92 d9 12 	sts	0x12D9, r11	; 0x8012d9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x29>
    dT_err_prev = dT_err_f;
   1ce8a:	60 93 d2 12 	sts	0x12D2, r22	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   1ce8e:	70 93 d3 12 	sts	0x12D3, r23	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   1ce92:	80 93 d4 12 	sts	0x12D4, r24	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   1ce96:	90 93 d5 12 	sts	0x12D5, r25	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>

    // check and trigger errors
    flag_bits.error = (fabsf(dT_err_f) > err_s);
   1ce9a:	6b 01       	movw	r12, r22
   1ce9c:	7c 01       	movw	r14, r24
   1ce9e:	e8 94       	clt
   1cea0:	f7 f8       	bld	r15, 7
   1cea2:	21 e0       	ldi	r18, 0x01	; 1
   1cea4:	29 83       	std	Y+1, r18	; 0x01
   1cea6:	20 91 45 13 	lds	r18, 0x1345	; 0x801345 <_ZN13thermal_modelL4dataE.lto_priv.402+0x95>
   1ceaa:	30 91 46 13 	lds	r19, 0x1346	; 0x801346 <_ZN13thermal_modelL4dataE.lto_priv.402+0x96>
   1ceae:	40 91 47 13 	lds	r20, 0x1347	; 0x801347 <_ZN13thermal_modelL4dataE.lto_priv.402+0x97>
   1ceb2:	50 91 48 13 	lds	r21, 0x1348	; 0x801348 <_ZN13thermal_modelL4dataE.lto_priv.402+0x98>
   1ceb6:	c7 01       	movw	r24, r14
   1ceb8:	b6 01       	movw	r22, r12
   1ceba:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1cebe:	18 16       	cp	r1, r24
   1cec0:	0c f0       	brlt	.+2      	; 0x1cec4 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x294>
   1cec2:	19 82       	std	Y+1, r1	; 0x01
   1cec4:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   1cec8:	39 81       	ldd	r19, Y+1	; 0x01
   1ceca:	30 fb       	bst	r19, 0
   1cecc:	81 f9       	bld	r24, 1
   1cece:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
    flag_bits.warning = (fabsf(dT_err_f) > warn_s);
   1ced2:	41 e0       	ldi	r20, 0x01	; 1
   1ced4:	49 83       	std	Y+1, r20	; 0x01
   1ced6:	20 91 41 13 	lds	r18, 0x1341	; 0x801341 <_ZN13thermal_modelL4dataE.lto_priv.402+0x91>
   1ceda:	30 91 42 13 	lds	r19, 0x1342	; 0x801342 <_ZN13thermal_modelL4dataE.lto_priv.402+0x92>
   1cede:	40 91 43 13 	lds	r20, 0x1343	; 0x801343 <_ZN13thermal_modelL4dataE.lto_priv.402+0x93>
   1cee2:	50 91 44 13 	lds	r21, 0x1344	; 0x801344 <_ZN13thermal_modelL4dataE.lto_priv.402+0x94>
   1cee6:	c7 01       	movw	r24, r14
   1cee8:	b6 01       	movw	r22, r12
   1ceea:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1ceee:	18 16       	cp	r1, r24
   1cef0:	0c f0       	brlt	.+2      	; 0x1cef4 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x2c4>
   1cef2:	19 82       	std	Y+1, r1	; 0x01
   1cef4:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   1cef8:	59 81       	ldd	r21, Y+1	; 0x01
   1cefa:	50 fb       	bst	r21, 0
   1cefc:	82 f9       	bld	r24, 2
   1cefe:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
}
   1cf02:	27 96       	adiw	r28, 0x07	; 7
   1cf04:	0f b6       	in	r0, 0x3f	; 63
   1cf06:	f8 94       	cli
   1cf08:	de bf       	out	0x3e, r29	; 62
   1cf0a:	0f be       	out	0x3f, r0	; 63
   1cf0c:	cd bf       	out	0x3d, r28	; 61
   1cf0e:	df 91       	pop	r29
   1cf10:	cf 91       	pop	r28
   1cf12:	1f 91       	pop	r17
   1cf14:	0f 91       	pop	r16
   1cf16:	ff 90       	pop	r15
   1cf18:	ef 90       	pop	r14
   1cf1a:	df 90       	pop	r13
   1cf1c:	cf 90       	pop	r12
   1cf1e:	bf 90       	pop	r11
   1cf20:	af 90       	pop	r10
   1cf22:	9f 90       	pop	r9
   1cf24:	8f 90       	pop	r8
   1cf26:	7f 90       	pop	r7
   1cf28:	6f 90       	pop	r6
   1cf2a:	5f 90       	pop	r5
   1cf2c:	4f 90       	pop	r4
   1cf2e:	3f 90       	pop	r3
   1cf30:	2f 90       	pop	r2
   1cf32:	08 95       	ret
    dP *= (cur_heater_temp * U) + V; // linear temp. correction
    float dPl = (cur_heater_temp - cur_ambient_temp) / cur_R; // [W] leakage power
    float dT = (dP - dPl) * C_i; // expected temperature difference (K)

    // filter and lag dT
    uint8_t dT_next_idx = (dT_lag_idx == (dT_lag_size - 1) ? 0: dT_lag_idx + 1);
   1cf34:	1e 82       	std	Y+6, r1	; 0x06
   1cf36:	0c cf       	rjmp	.-488    	; 0x1cd50 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]+0x120>

0001cf38 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]>:
    float d = GOLDEN_RATIO * (bounds[1] - bounds[0]);
    points[0] = bounds[0] + d;
    points[1] = bounds[1] - d;
}

static float estimate(uint16_t samples,
   1cf38:	2f 92       	push	r2
   1cf3a:	3f 92       	push	r3
   1cf3c:	4f 92       	push	r4
   1cf3e:	5f 92       	push	r5
   1cf40:	6f 92       	push	r6
   1cf42:	7f 92       	push	r7
   1cf44:	8f 92       	push	r8
   1cf46:	9f 92       	push	r9
   1cf48:	af 92       	push	r10
   1cf4a:	bf 92       	push	r11
   1cf4c:	cf 92       	push	r12
   1cf4e:	df 92       	push	r13
   1cf50:	ef 92       	push	r14
   1cf52:	ff 92       	push	r15
   1cf54:	0f 93       	push	r16
   1cf56:	1f 93       	push	r17
   1cf58:	cf 93       	push	r28
   1cf5a:	df 93       	push	r29
   1cf5c:	cd b7       	in	r28, 0x3d	; 61
   1cf5e:	de b7       	in	r29, 0x3e	; 62
   1cf60:	a4 97       	sbiw	r28, 0x24	; 36
   1cf62:	0f b6       	in	r0, 0x3f	; 63
   1cf64:	f8 94       	cli
   1cf66:	de bf       	out	0x3e, r29	; 62
   1cf68:	0f be       	out	0x3f, r0	; 63
   1cf6a:	cd bf       	out	0x3d, r28	; 61
   1cf6c:	9b 8f       	std	Y+27, r25	; 0x1b
   1cf6e:	8a 8f       	std	Y+26, r24	; 0x1a
   1cf70:	7a 8b       	std	Y+18, r23	; 0x12
   1cf72:	69 8b       	std	Y+17, r22	; 0x11
   1cf74:	2b 8b       	std	Y+19, r18	; 0x13
   1cf76:	3c 8b       	std	Y+20, r19	; 0x14
   1cf78:	4d 8b       	std	Y+21, r20	; 0x15
   1cf7a:	5e 8b       	std	Y+22, r21	; 0x16
   1cf7c:	0c 8f       	std	Y+28, r16	; 0x1c
   1cf7e:	cd 8e       	std	Y+29, r12	; 0x1d
   1cf80:	de 8e       	std	Y+30, r13	; 0x1e
   1cf82:	ef 8e       	std	Y+31, r14	; 0x1f
   1cf84:	f8 a2       	std	Y+32, r15	; 0x20
    float thr, uint16_t max_itr,
    uint8_t fan_pwm, float ambient)
{
    // during estimation we alter the model values without an extra copy to conserve memory
    // so we cannot keep the main checker active until a value has been found
    bool was_enabled = thermal_model::enabled;
   1cf86:	20 91 1d 05 	lds	r18, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   1cf8a:	29 8f       	std	Y+25, r18	; 0x19
    thermal_model_reset_enabled(false);
   1cf8c:	80 e0       	ldi	r24, 0x00	; 0
   1cf8e:	0f 94 6b 33 	call	0x266d6	; 0x266d6 <thermal_model_reset_enabled(bool) [clone .lto_priv.420]>

    float orig = *var;
   1cf92:	a9 89       	ldd	r26, Y+17	; 0x11
   1cf94:	ba 89       	ldd	r27, Y+18	; 0x12
   1cf96:	8d 91       	ld	r24, X+
   1cf98:	9d 91       	ld	r25, X+
   1cf9a:	0d 90       	ld	r0, X+
   1cf9c:	bc 91       	ld	r27, X
   1cf9e:	a0 2d       	mov	r26, r0
   1cfa0:	89 a3       	std	Y+33, r24	; 0x21
   1cfa2:	9a a3       	std	Y+34, r25	; 0x22
   1cfa4:	ab a3       	std	Y+35, r26	; 0x23
   1cfa6:	bc a3       	std	Y+36, r27	; 0x24
    float e = NAN;
    float points[2];
    float bounds[2] = {min, max};
   1cfa8:	80 e0       	ldi	r24, 0x00	; 0
   1cfaa:	90 e0       	ldi	r25, 0x00	; 0
   1cfac:	a0 ea       	ldi	r26, 0xA0	; 160
   1cfae:	b0 e4       	ldi	r27, 0x40	; 64
   1cfb0:	89 83       	std	Y+1, r24	; 0x01
   1cfb2:	9a 83       	std	Y+2, r25	; 0x02
   1cfb4:	ab 83       	std	Y+3, r26	; 0x03
   1cfb6:	bc 83       	std	Y+4, r27	; 0x04
   1cfb8:	8b 89       	ldd	r24, Y+19	; 0x13
   1cfba:	9c 89       	ldd	r25, Y+20	; 0x14
   1cfbc:	ad 89       	ldd	r26, Y+21	; 0x15
   1cfbe:	be 89       	ldd	r27, Y+22	; 0x16
   1cfc0:	8d 83       	std	Y+5, r24	; 0x05
   1cfc2:	9e 83       	std	Y+6, r25	; 0x06
   1cfc4:	af 83       	std	Y+7, r26	; 0x07
   1cfc6:	b8 87       	std	Y+8, r27	; 0x08

constexpr float GOLDEN_RATIO = 0.6180339887498949;

static void update_section(float points[2], const float bounds[2])
{
    float d = GOLDEN_RATIO * (bounds[1] - bounds[0]);
   1cfc8:	20 e0       	ldi	r18, 0x00	; 0
   1cfca:	30 e0       	ldi	r19, 0x00	; 0
   1cfcc:	40 ea       	ldi	r20, 0xA0	; 160
   1cfce:	50 e4       	ldi	r21, 0x40	; 64
   1cfd0:	bc 01       	movw	r22, r24
   1cfd2:	cd 01       	movw	r24, r26
   1cfd4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1cfd8:	2a e7       	ldi	r18, 0x7A	; 122
   1cfda:	37 e3       	ldi	r19, 0x37	; 55
   1cfdc:	4e e1       	ldi	r20, 0x1E	; 30
   1cfde:	5f e3       	ldi	r21, 0x3F	; 63
   1cfe0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1cfe4:	6b 01       	movw	r12, r22
   1cfe6:	7c 01       	movw	r14, r24
    points[0] = bounds[0] + d;
   1cfe8:	20 e0       	ldi	r18, 0x00	; 0
   1cfea:	30 e0       	ldi	r19, 0x00	; 0
   1cfec:	40 ea       	ldi	r20, 0xA0	; 160
   1cfee:	50 e4       	ldi	r21, 0x40	; 64
   1cff0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1cff4:	69 87       	std	Y+9, r22	; 0x09
   1cff6:	7a 87       	std	Y+10, r23	; 0x0a
   1cff8:	8b 87       	std	Y+11, r24	; 0x0b
   1cffa:	9c 87       	std	Y+12, r25	; 0x0c
    points[1] = bounds[1] - d;
   1cffc:	a7 01       	movw	r20, r14
   1cffe:	96 01       	movw	r18, r12
   1d000:	6b 89       	ldd	r22, Y+19	; 0x13
   1d002:	7c 89       	ldd	r23, Y+20	; 0x14
   1d004:	8d 89       	ldd	r24, Y+21	; 0x15
   1d006:	9e 89       	ldd	r25, Y+22	; 0x16
   1d008:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1d00c:	6d 87       	std	Y+13, r22	; 0x0d
   1d00e:	7e 87       	std	Y+14, r23	; 0x0e
   1d010:	8f 87       	std	Y+15, r24	; 0x0f
   1d012:	98 8b       	std	Y+16, r25	; 0x10
   1d014:	31 2c       	mov	r3, r1
   1d016:	21 2c       	mov	r2, r1
    float points[2];
    float bounds[2] = {min, max};
    update_section(points, bounds);

    for(uint8_t it = 0; it != max_itr; ++it) {
        float c1 = cost_fn(samples, var, points[0], fan_pwm, ambient);
   1d018:	29 85       	ldd	r18, Y+9	; 0x09
   1d01a:	3a 85       	ldd	r19, Y+10	; 0x0a
   1d01c:	4b 85       	ldd	r20, Y+11	; 0x0b
   1d01e:	5c 85       	ldd	r21, Y+12	; 0x0c
   1d020:	cd 8c       	ldd	r12, Y+29	; 0x1d
   1d022:	de 8c       	ldd	r13, Y+30	; 0x1e
   1d024:	ef 8c       	ldd	r14, Y+31	; 0x1f
   1d026:	f8 a0       	ldd	r15, Y+32	; 0x20
   1d028:	0c 8d       	ldd	r16, Y+28	; 0x1c
   1d02a:	69 89       	ldd	r22, Y+17	; 0x11
   1d02c:	7a 89       	ldd	r23, Y+18	; 0x12
   1d02e:	8a 8d       	ldd	r24, Y+26	; 0x1a
   1d030:	9b 8d       	ldd	r25, Y+27	; 0x1b
   1d032:	0f 94 b9 2d 	call	0x25b72	; 0x25b72 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]>
   1d036:	4b 01       	movw	r8, r22
   1d038:	5c 01       	movw	r10, r24
        float c2 = cost_fn(samples, var, points[1], fan_pwm, ambient);
   1d03a:	2d 85       	ldd	r18, Y+13	; 0x0d
   1d03c:	3e 85       	ldd	r19, Y+14	; 0x0e
   1d03e:	4f 85       	ldd	r20, Y+15	; 0x0f
   1d040:	58 89       	ldd	r21, Y+16	; 0x10
   1d042:	cd 8c       	ldd	r12, Y+29	; 0x1d
   1d044:	de 8c       	ldd	r13, Y+30	; 0x1e
   1d046:	ef 8c       	ldd	r14, Y+31	; 0x1f
   1d048:	f8 a0       	ldd	r15, Y+32	; 0x20
   1d04a:	0c 8d       	ldd	r16, Y+28	; 0x1c
   1d04c:	69 89       	ldd	r22, Y+17	; 0x11
   1d04e:	7a 89       	ldd	r23, Y+18	; 0x12
   1d050:	8a 8d       	ldd	r24, Y+26	; 0x1a
   1d052:	9b 8d       	ldd	r25, Y+27	; 0x1b
   1d054:	0f 94 b9 2d 	call	0x25b72	; 0x25b72 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]>
   1d058:	9b 01       	movw	r18, r22
   1d05a:	ac 01       	movw	r20, r24
        bool dir = (c2 < c1);
   1d05c:	11 e0       	ldi	r17, 0x01	; 1
   1d05e:	c5 01       	movw	r24, r10
   1d060:	b4 01       	movw	r22, r8
   1d062:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1d066:	18 16       	cp	r1, r24
   1d068:	0c f0       	brlt	.+2      	; 0x1d06c <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x134>
   1d06a:	10 e0       	ldi	r17, 0x00	; 0
        bounds[dir] = points[!dir];
   1d06c:	01 e0       	ldi	r16, 0x01	; 1
   1d06e:	01 27       	eor	r16, r17
   1d070:	80 2f       	mov	r24, r16
   1d072:	90 e0       	ldi	r25, 0x00	; 0
   1d074:	e1 2f       	mov	r30, r17
   1d076:	f0 e0       	ldi	r31, 0x00	; 0
   1d078:	ee 0f       	add	r30, r30
   1d07a:	ff 1f       	adc	r31, r31
   1d07c:	ee 0f       	add	r30, r30
   1d07e:	ff 1f       	adc	r31, r31
   1d080:	41 e0       	ldi	r20, 0x01	; 1
   1d082:	50 e0       	ldi	r21, 0x00	; 0
   1d084:	4c 0f       	add	r20, r28
   1d086:	5d 1f       	adc	r21, r29
   1d088:	4e 0f       	add	r20, r30
   1d08a:	5f 1f       	adc	r21, r31
   1d08c:	8c 01       	movw	r16, r24
   1d08e:	00 0f       	add	r16, r16
   1d090:	11 1f       	adc	r17, r17
   1d092:	00 0f       	add	r16, r16
   1d094:	11 1f       	adc	r17, r17
   1d096:	a1 e0       	ldi	r26, 0x01	; 1
   1d098:	b0 e0       	ldi	r27, 0x00	; 0
   1d09a:	ac 0f       	add	r26, r28
   1d09c:	bd 1f       	adc	r27, r29
   1d09e:	0a 0f       	add	r16, r26
   1d0a0:	1b 1f       	adc	r17, r27
   1d0a2:	f8 01       	movw	r30, r16
   1d0a4:	38 96       	adiw	r30, 0x08	; 8
   1d0a6:	f8 8f       	std	Y+24, r31	; 0x18
   1d0a8:	ef 8b       	std	Y+23, r30	; 0x17
   1d0aa:	f8 01       	movw	r30, r16
   1d0ac:	80 85       	ldd	r24, Z+8	; 0x08
   1d0ae:	91 85       	ldd	r25, Z+9	; 0x09
   1d0b0:	a2 85       	ldd	r26, Z+10	; 0x0a
   1d0b2:	b3 85       	ldd	r27, Z+11	; 0x0b
   1d0b4:	fa 01       	movw	r30, r20
   1d0b6:	80 83       	st	Z, r24
   1d0b8:	91 83       	std	Z+1, r25	; 0x01
   1d0ba:	a2 83       	std	Z+2, r26	; 0x02
   1d0bc:	b3 83       	std	Z+3, r27	; 0x03

constexpr float GOLDEN_RATIO = 0.6180339887498949;

static void update_section(float points[2], const float bounds[2])
{
    float d = GOLDEN_RATIO * (bounds[1] - bounds[0]);
   1d0be:	8d 80       	ldd	r8, Y+5	; 0x05
   1d0c0:	9e 80       	ldd	r9, Y+6	; 0x06
   1d0c2:	af 80       	ldd	r10, Y+7	; 0x07
   1d0c4:	b8 84       	ldd	r11, Y+8	; 0x08
   1d0c6:	c9 80       	ldd	r12, Y+1	; 0x01
   1d0c8:	da 80       	ldd	r13, Y+2	; 0x02
   1d0ca:	eb 80       	ldd	r14, Y+3	; 0x03
   1d0cc:	fc 80       	ldd	r15, Y+4	; 0x04
   1d0ce:	a7 01       	movw	r20, r14
   1d0d0:	96 01       	movw	r18, r12
   1d0d2:	c5 01       	movw	r24, r10
   1d0d4:	b4 01       	movw	r22, r8
   1d0d6:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1d0da:	2a e7       	ldi	r18, 0x7A	; 122
   1d0dc:	37 e3       	ldi	r19, 0x37	; 55
   1d0de:	4e e1       	ldi	r20, 0x1E	; 30
   1d0e0:	5f e3       	ldi	r21, 0x3F	; 63
   1d0e2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d0e6:	2b 01       	movw	r4, r22
   1d0e8:	3c 01       	movw	r6, r24
    points[0] = bounds[0] + d;
   1d0ea:	ac 01       	movw	r20, r24
   1d0ec:	9b 01       	movw	r18, r22
   1d0ee:	c7 01       	movw	r24, r14
   1d0f0:	b6 01       	movw	r22, r12
   1d0f2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1d0f6:	69 87       	std	Y+9, r22	; 0x09
   1d0f8:	7a 87       	std	Y+10, r23	; 0x0a
   1d0fa:	8b 87       	std	Y+11, r24	; 0x0b
   1d0fc:	9c 87       	std	Y+12, r25	; 0x0c
    points[1] = bounds[1] - d;
   1d0fe:	a3 01       	movw	r20, r6
   1d100:	92 01       	movw	r18, r4
   1d102:	c5 01       	movw	r24, r10
   1d104:	b4 01       	movw	r22, r8
   1d106:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1d10a:	6d 87       	std	Y+13, r22	; 0x0d
   1d10c:	7e 87       	std	Y+14, r23	; 0x0e
   1d10e:	8f 87       	std	Y+15, r24	; 0x0f
   1d110:	98 8b       	std	Y+16, r25	; 0x10
        float c1 = cost_fn(samples, var, points[0], fan_pwm, ambient);
        float c2 = cost_fn(samples, var, points[1], fan_pwm, ambient);
        bool dir = (c2 < c1);
        bounds[dir] = points[!dir];
        update_section(points, bounds);
        float x = points[!dir];
   1d112:	d8 01       	movw	r26, r16
   1d114:	18 96       	adiw	r26, 0x08	; 8
   1d116:	4c 90       	ld	r4, X
   1d118:	ef 89       	ldd	r30, Y+23	; 0x17
   1d11a:	f8 8d       	ldd	r31, Y+24	; 0x18
   1d11c:	51 80       	ldd	r5, Z+1	; 0x01
   1d11e:	62 80       	ldd	r6, Z+2	; 0x02
   1d120:	73 80       	ldd	r7, Z+3	; 0x03
        e = (1-GOLDEN_RATIO) * fabsf((bounds[0]-bounds[1]) / x);
   1d122:	a5 01       	movw	r20, r10
   1d124:	94 01       	movw	r18, r8
   1d126:	c7 01       	movw	r24, r14
   1d128:	b6 01       	movw	r22, r12
   1d12a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1d12e:	24 2d       	mov	r18, r4
   1d130:	35 2d       	mov	r19, r5
   1d132:	46 2d       	mov	r20, r6
   1d134:	57 2d       	mov	r21, r7
   1d136:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1d13a:	9f 77       	andi	r25, 0x7F	; 127
   1d13c:	2c e0       	ldi	r18, 0x0C	; 12
   1d13e:	31 e9       	ldi	r19, 0x91	; 145
   1d140:	43 ec       	ldi	r20, 0xC3	; 195
   1d142:	5e e3       	ldi	r21, 0x3E	; 62
   1d144:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d148:	6b 01       	movw	r12, r22
   1d14a:	7c 01       	movw	r14, r24
   1d14c:	5b 01       	movw	r10, r22
   1d14e:	8c 01       	movw	r16, r24

        printf_P(PSTR("TM iter:%u v:%.2f e:%.3f\n"), it, x, e);
   1d150:	ff 92       	push	r15
   1d152:	8f 93       	push	r24
   1d154:	df 92       	push	r13
   1d156:	6f 93       	push	r22
   1d158:	7f 92       	push	r7
   1d15a:	6f 92       	push	r6
   1d15c:	5f 92       	push	r5
   1d15e:	4f 92       	push	r4
   1d160:	3f 92       	push	r3
   1d162:	2f 92       	push	r2
   1d164:	27 ef       	ldi	r18, 0xF7	; 247
   1d166:	3d e8       	ldi	r19, 0x8D	; 141
   1d168:	3f 93       	push	r19
   1d16a:	2f 93       	push	r18
   1d16c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        if(e < thr) {
   1d170:	0f b6       	in	r0, 0x3f	; 63
   1d172:	f8 94       	cli
   1d174:	de bf       	out	0x3e, r29	; 62
   1d176:	0f be       	out	0x3f, r0	; 63
   1d178:	cd bf       	out	0x3d, r28	; 61
   1d17a:	2a e0       	ldi	r18, 0x0A	; 10
   1d17c:	37 ed       	ldi	r19, 0xD7	; 215
   1d17e:	43 e2       	ldi	r20, 0x23	; 35
   1d180:	5c e3       	ldi	r21, 0x3C	; 60
   1d182:	6c 2d       	mov	r22, r12
   1d184:	7d 2d       	mov	r23, r13
   1d186:	8e 2d       	mov	r24, r14
   1d188:	9f 2d       	mov	r25, r15
   1d18a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1d18e:	87 ff       	sbrs	r24, 7
   1d190:	42 c0       	rjmp	.+132    	; 0x1d216 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x2de>
            if(x == min || x == max) {
   1d192:	20 e0       	ldi	r18, 0x00	; 0
   1d194:	30 e0       	ldi	r19, 0x00	; 0
   1d196:	40 ea       	ldi	r20, 0xA0	; 160
   1d198:	50 e4       	ldi	r21, 0x40	; 64
   1d19a:	64 2d       	mov	r22, r4
   1d19c:	75 2d       	mov	r23, r5
   1d19e:	86 2d       	mov	r24, r6
   1d1a0:	97 2d       	mov	r25, r7
   1d1a2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1d1a6:	88 23       	and	r24, r24
   1d1a8:	f1 f1       	breq	.+124    	; 0x1d226 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x2ee>
   1d1aa:	24 2d       	mov	r18, r4
   1d1ac:	35 2d       	mov	r19, r5
   1d1ae:	46 2d       	mov	r20, r6
   1d1b0:	57 2d       	mov	r21, r7
   1d1b2:	6b 89       	ldd	r22, Y+19	; 0x13
   1d1b4:	7c 89       	ldd	r23, Y+20	; 0x14
   1d1b6:	8d 89       	ldd	r24, Y+21	; 0x15
   1d1b8:	9e 89       	ldd	r25, Y+22	; 0x16
   1d1ba:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1d1be:	88 23       	and	r24, r24
   1d1c0:	91 f1       	breq	.+100    	; 0x1d226 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x2ee>
                // real value likely outside of the search boundaries
                break;
            }

            *var = x;
   1d1c2:	84 2d       	mov	r24, r4
   1d1c4:	95 2d       	mov	r25, r5
   1d1c6:	a6 2d       	mov	r26, r6
   1d1c8:	b7 2d       	mov	r27, r7
   1d1ca:	e9 89       	ldd	r30, Y+17	; 0x11
   1d1cc:	fa 89       	ldd	r31, Y+18	; 0x12
   1d1ce:	80 83       	st	Z, r24
   1d1d0:	91 83       	std	Z+1, r25	; 0x01
   1d1d2:	a2 83       	std	Z+2, r26	; 0x02
   1d1d4:	b3 83       	std	Z+3, r27	; 0x03
            thermal_model_reset_enabled(was_enabled);
   1d1d6:	89 8d       	ldd	r24, Y+25	; 0x19
   1d1d8:	0f 94 6b 33 	call	0x266d6	; 0x266d6 <thermal_model_reset_enabled(bool) [clone .lto_priv.420]>

    SERIAL_ECHOLNPGM("TM estimation did not converge");
    *var = orig;
    thermal_model_reset_enabled(was_enabled);
    return NAN;
}
   1d1dc:	6a 2d       	mov	r22, r10
   1d1de:	7b 2d       	mov	r23, r11
   1d1e0:	80 2f       	mov	r24, r16
   1d1e2:	91 2f       	mov	r25, r17
   1d1e4:	a4 96       	adiw	r28, 0x24	; 36
   1d1e6:	0f b6       	in	r0, 0x3f	; 63
   1d1e8:	f8 94       	cli
   1d1ea:	de bf       	out	0x3e, r29	; 62
   1d1ec:	0f be       	out	0x3f, r0	; 63
   1d1ee:	cd bf       	out	0x3d, r28	; 61
   1d1f0:	df 91       	pop	r29
   1d1f2:	cf 91       	pop	r28
   1d1f4:	1f 91       	pop	r17
   1d1f6:	0f 91       	pop	r16
   1d1f8:	ff 90       	pop	r15
   1d1fa:	ef 90       	pop	r14
   1d1fc:	df 90       	pop	r13
   1d1fe:	cf 90       	pop	r12
   1d200:	bf 90       	pop	r11
   1d202:	af 90       	pop	r10
   1d204:	9f 90       	pop	r9
   1d206:	8f 90       	pop	r8
   1d208:	7f 90       	pop	r7
   1d20a:	6f 90       	pop	r6
   1d20c:	5f 90       	pop	r5
   1d20e:	4f 90       	pop	r4
   1d210:	3f 90       	pop	r3
   1d212:	2f 90       	pop	r2
   1d214:	08 95       	ret
   1d216:	ff ef       	ldi	r31, 0xFF	; 255
   1d218:	2f 1a       	sub	r2, r31
   1d21a:	3f 0a       	sbc	r3, r31
    float e = NAN;
    float points[2];
    float bounds[2] = {min, max};
    update_section(points, bounds);

    for(uint8_t it = 0; it != max_itr; ++it) {
   1d21c:	2e e1       	ldi	r18, 0x1E	; 30
   1d21e:	22 16       	cp	r2, r18
   1d220:	31 04       	cpc	r3, r1
   1d222:	09 f0       	breq	.+2      	; 0x1d226 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x2ee>
   1d224:	f9 ce       	rjmp	.-526    	; 0x1d018 <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0xe0>
            thermal_model_reset_enabled(was_enabled);
            return e;
        }
    }

    SERIAL_ECHOLNPGM("TM estimation did not converge");
   1d226:	88 ed       	ldi	r24, 0xD8	; 216
   1d228:	9d e8       	ldi	r25, 0x8D	; 141
   1d22a:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    *var = orig;
   1d22e:	89 a1       	ldd	r24, Y+33	; 0x21
   1d230:	9a a1       	ldd	r25, Y+34	; 0x22
   1d232:	ab a1       	ldd	r26, Y+35	; 0x23
   1d234:	bc a1       	ldd	r27, Y+36	; 0x24
   1d236:	e9 89       	ldd	r30, Y+17	; 0x11
   1d238:	fa 89       	ldd	r31, Y+18	; 0x12
   1d23a:	80 83       	st	Z, r24
   1d23c:	91 83       	std	Z+1, r25	; 0x01
   1d23e:	a2 83       	std	Z+2, r26	; 0x02
   1d240:	b3 83       	std	Z+3, r27	; 0x03
    thermal_model_reset_enabled(was_enabled);
   1d242:	89 8d       	ldd	r24, Y+25	; 0x19
   1d244:	0f 94 6b 33 	call	0x266d6	; 0x266d6 <thermal_model_reset_enabled(bool) [clone .lto_priv.420]>
    return NAN;
   1d248:	a1 2c       	mov	r10, r1
   1d24a:	b1 2c       	mov	r11, r1
   1d24c:	00 ec       	ldi	r16, 0xC0	; 192
   1d24e:	1f e7       	ldi	r17, 0x7F	; 127
   1d250:	c5 cf       	rjmp	.-118    	; 0x1d1dc <thermal_model_cal::estimate(unsigned int, float*, float, float, float, unsigned int, unsigned char, float) [clone .constprop.40]+0x2a4>

0001d252 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]>:
    // Update cached value
    lastReadRegisterValue = logic.rsp.paramValue;
    return true;
}

bool __attribute__((noinline)) MMU2::WriteRegister(uint8_t address, uint16_t data) {
   1d252:	ef 92       	push	r14
   1d254:	ff 92       	push	r15
   1d256:	0f 93       	push	r16
   1d258:	1f 93       	push	r17
   1d25a:	cf 93       	push	r28
   1d25c:	df 93       	push	r29
   1d25e:	00 d0       	rcall	.+0      	; 0x1d260 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0xe>
   1d260:	1f 92       	push	r1
   1d262:	1f 92       	push	r1
   1d264:	cd b7       	in	r28, 0x3d	; 61
   1d266:	de b7       	in	r29, 0x3e	; 62
   1d268:	08 2f       	mov	r16, r24
   1d26a:	16 2f       	mov	r17, r22
   1d26c:	f7 2e       	mov	r15, r23
    if (!WaitForMMUReady()) {
   1d26e:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   1d272:	88 23       	and	r24, r24
   1d274:	d9 f0       	breq	.+54     	; 0x1d2ac <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x5a>
        return false;
    }

    // special cases - intercept requests of registers which influence the printer's behaviour too + perform the change even on the printer's side
    switch (address) {
   1d276:	0b 30       	cpi	r16, 0x0B	; 11
   1d278:	29 f1       	breq	.+74     	; 0x1d2c4 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x72>
   1d27a:	04 31       	cpi	r16, 0x14	; 20
   1d27c:	31 f1       	breq	.+76     	; 0x1d2ca <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x78>
    /// @param value to write into the register
    inline constexpr RequestMsg(RequestMsgCodes code, uint8_t address, uint16_t value)
        : code(code)
        , value(address)
        , value2(value)
        , crc8(ComputeCRC8()) {
   1d27e:	87 e5       	ldi	r24, 0x57	; 87
   1d280:	e8 2e       	mov	r14, r24
   1d282:	e9 82       	std	Y+1, r14	; 0x01
   1d284:	0a 83       	std	Y+2, r16	; 0x02
   1d286:	1b 83       	std	Y+3, r17	; 0x03
   1d288:	fc 82       	std	Y+4, r15	; 0x04
   1d28a:	ce 01       	movw	r24, r28
   1d28c:	01 96       	adiw	r24, 0x01	; 1
   1d28e:	0f 94 a8 c5 	call	0x38b50	; 0x38b50 <modules::protocol::RequestMsg::ComputeCRC8() const>
   1d292:	8d 83       	std	Y+5, r24	; 0x05
void ProtocolLogic::ReadRegister(uint8_t address) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Read, address));
}

void ProtocolLogic::WriteRegister(uint8_t address, uint16_t data) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Write, address, data));
   1d294:	47 e5       	ldi	r20, 0x57	; 87
   1d296:	50 2f       	mov	r21, r16
   1d298:	61 2f       	mov	r22, r17
   1d29a:	7f 2d       	mov	r23, r15
   1d29c:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
        break; // do not intercept any other register writes
    }

    do {
        logic.WriteRegister(address, data); // we may signal the accepted/rejected status of the response as return value of this function
    } while (!manage_response(false, false));
   1d2a0:	60 e0       	ldi	r22, 0x00	; 0
   1d2a2:	80 e0       	ldi	r24, 0x00	; 0
   1d2a4:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   1d2a8:	88 23       	and	r24, r24
   1d2aa:	59 f3       	breq	.-42     	; 0x1d282 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x30>

    return true;
}
   1d2ac:	0f 90       	pop	r0
   1d2ae:	0f 90       	pop	r0
   1d2b0:	0f 90       	pop	r0
   1d2b2:	0f 90       	pop	r0
   1d2b4:	0f 90       	pop	r0
   1d2b6:	df 91       	pop	r29
   1d2b8:	cf 91       	pop	r28
   1d2ba:	1f 91       	pop	r17
   1d2bc:	0f 91       	pop	r16
   1d2be:	ff 90       	pop	r15
   1d2c0:	ef 90       	pop	r14
   1d2c2:	08 95       	ret
    }

    // special cases - intercept requests of registers which influence the printer's behaviour too + perform the change even on the printer's side
    switch (address) {
    case (uint8_t)Register::Extra_Load_Distance:
        logic.PlanExtraLoadDistance(data);
   1d2c4:	10 93 97 13 	sts	0x1397, r17	; 0x801397 <MMU2::mmu2+0x4c>
   1d2c8:	da cf       	rjmp	.-76     	; 0x1d27e <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x2c>
        break;
    case (uint8_t)Register::Pulley_Slow_Feedrate:
        logic.PlanPulleySlowFeedRate(data);
   1d2ca:	10 93 98 13 	sts	0x1398, r17	; 0x801398 <MMU2::mmu2+0x4d>
   1d2ce:	d7 cf       	rjmp	.-82     	; 0x1d27e <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]+0x2c>

0001d2d0 <delayMicroseconds>:
#elif F_CPU >= 16000000L
	// for the 16 MHz clock on most Arduino boards

	// for a one-microsecond delay, simply return.  the overhead
	// of the function call takes 14 (16) cycles, which is 1us
	if (us <= 1) return; //  = 3 cycles, (4 when true)
   1d2d0:	82 30       	cpi	r24, 0x02	; 2
   1d2d2:	91 05       	cpc	r25, r1
   1d2d4:	38 f0       	brcs	.+14     	; 0x1d2e4 <delayMicroseconds+0x14>

	// the following loop takes 1/4 of a microsecond (4 cycles)
	// per iteration, so execute it four times for each microsecond of
	// delay requested.
	us <<= 2; // x4 us, = 4 cycles
   1d2d6:	88 0f       	add	r24, r24
   1d2d8:	99 1f       	adc	r25, r25
   1d2da:	88 0f       	add	r24, r24
   1d2dc:	99 1f       	adc	r25, r25

	// account for the time taken in the preceeding commands.
	// we just burned 19 (21) cycles above, remove 5, (5*4=20)
	// us is at least 8 so we can substract 5
	us -= 5; // = 2 cycles,
   1d2de:	05 97       	sbiw	r24, 0x05	; 5
	

#endif

	// busy wait
	__asm__ __volatile__ (
   1d2e0:	01 97       	sbiw	r24, 0x01	; 1
   1d2e2:	f1 f7       	brne	.-4      	; 0x1d2e0 <delayMicroseconds+0x10>
		"1: sbiw %0,1" "\n\t" // 2 cycles
		"brne 1b" : "=w" (us) : "0" (us) // 2 cycles
	);
	// return = 4 cycles
}
   1d2e4:	08 95       	ret

0001d2e6 <digitalRead>:

	SREG = oldSREG;
}

int digitalRead(uint8_t pin)
{
   1d2e6:	cf 93       	push	r28
   1d2e8:	df 93       	push	r29
	uint8_t timer = digitalPinToTimer(pin);
   1d2ea:	28 2f       	mov	r18, r24
   1d2ec:	30 e0       	ldi	r19, 0x00	; 0
   1d2ee:	f9 01       	movw	r30, r18
   1d2f0:	e7 5f       	subi	r30, 0xF7	; 247
   1d2f2:	f3 47       	sbci	r31, 0x73	; 115
   1d2f4:	84 91       	lpm	r24, Z
	uint8_t bit = digitalPinToBitMask(pin);
   1d2f6:	f9 01       	movw	r30, r18
   1d2f8:	ed 54       	subi	r30, 0x4D	; 77
   1d2fa:	f4 47       	sbci	r31, 0x74	; 116
   1d2fc:	d4 91       	lpm	r29, Z
	uint8_t port = digitalPinToPort(pin);
   1d2fe:	f9 01       	movw	r30, r18
   1d300:	e3 5a       	subi	r30, 0xA3	; 163
   1d302:	f4 47       	sbci	r31, 0x74	; 116
   1d304:	c4 91       	lpm	r28, Z

	if (port == NOT_A_PIN) return LOW;
   1d306:	cc 23       	and	r28, r28
   1d308:	a1 f0       	breq	.+40     	; 0x1d332 <digitalRead+0x4c>

	// If the pin that support PWM output, we need to turn it off
	// before getting a digital reading.
	if (timer != NOT_ON_TIMER) turnOffPWM(timer);
   1d30a:	81 11       	cpse	r24, r1
   1d30c:	0e 94 9c cd 	call	0x19b38	; 0x19b38 <turnOffPWM>

	if (*portInputRegister(port) & bit) return HIGH;
   1d310:	ec 2f       	mov	r30, r28
   1d312:	f0 e0       	ldi	r31, 0x00	; 0
   1d314:	ee 0f       	add	r30, r30
   1d316:	ff 1f       	adc	r31, r31
   1d318:	ed 5b       	subi	r30, 0xBD	; 189
   1d31a:	f4 47       	sbci	r31, 0x74	; 116
   1d31c:	a5 91       	lpm	r26, Z+
   1d31e:	b4 91       	lpm	r27, Z
   1d320:	ec 91       	ld	r30, X
   1d322:	ed 23       	and	r30, r29
   1d324:	81 e0       	ldi	r24, 0x01	; 1
   1d326:	90 e0       	ldi	r25, 0x00	; 0
   1d328:	09 f4       	brne	.+2      	; 0x1d32c <digitalRead+0x46>
   1d32a:	80 e0       	ldi	r24, 0x00	; 0
	return LOW;
}
   1d32c:	df 91       	pop	r29
   1d32e:	cf 91       	pop	r28
   1d330:	08 95       	ret
{
	uint8_t timer = digitalPinToTimer(pin);
	uint8_t bit = digitalPinToBitMask(pin);
	uint8_t port = digitalPinToPort(pin);

	if (port == NOT_A_PIN) return LOW;
   1d332:	80 e0       	ldi	r24, 0x00	; 0
   1d334:	90 e0       	ldi	r25, 0x00	; 0
   1d336:	fa cf       	rjmp	.-12     	; 0x1d32c <digitalRead+0x46>

0001d338 <digitalWrite>:
		#endif
	}
}

void digitalWrite(uint8_t pin, uint8_t val)
{
   1d338:	1f 93       	push	r17
   1d33a:	cf 93       	push	r28
   1d33c:	df 93       	push	r29
	uint8_t timer = digitalPinToTimer(pin);
   1d33e:	28 2f       	mov	r18, r24
   1d340:	30 e0       	ldi	r19, 0x00	; 0
   1d342:	f9 01       	movw	r30, r18
   1d344:	e7 5f       	subi	r30, 0xF7	; 247
   1d346:	f3 47       	sbci	r31, 0x73	; 115
   1d348:	84 91       	lpm	r24, Z
	uint8_t bit = digitalPinToBitMask(pin);
   1d34a:	f9 01       	movw	r30, r18
   1d34c:	ed 54       	subi	r30, 0x4D	; 77
   1d34e:	f4 47       	sbci	r31, 0x74	; 116
   1d350:	d4 91       	lpm	r29, Z
	uint8_t port = digitalPinToPort(pin);
   1d352:	f9 01       	movw	r30, r18
   1d354:	e3 5a       	subi	r30, 0xA3	; 163
   1d356:	f4 47       	sbci	r31, 0x74	; 116
   1d358:	c4 91       	lpm	r28, Z
	volatile uint8_t *out;

	if (port == NOT_A_PIN) return;
   1d35a:	cc 23       	and	r28, r28
   1d35c:	a9 f0       	breq	.+42     	; 0x1d388 <digitalWrite+0x50>
   1d35e:	16 2f       	mov	r17, r22

	// If the pin that support PWM output, we need to turn it off
	// before doing a digital write.
	if (timer != NOT_ON_TIMER) turnOffPWM(timer);
   1d360:	81 11       	cpse	r24, r1
   1d362:	0e 94 9c cd 	call	0x19b38	; 0x19b38 <turnOffPWM>

	out = portOutputRegister(port);
   1d366:	ec 2f       	mov	r30, r28
   1d368:	f0 e0       	ldi	r31, 0x00	; 0
   1d36a:	ee 0f       	add	r30, r30
   1d36c:	ff 1f       	adc	r31, r31
   1d36e:	e7 5d       	subi	r30, 0xD7	; 215
   1d370:	f4 47       	sbci	r31, 0x74	; 116
   1d372:	a5 91       	lpm	r26, Z+
   1d374:	b4 91       	lpm	r27, Z

	uint8_t oldSREG = SREG;
   1d376:	8f b7       	in	r24, 0x3f	; 63
	cli();
   1d378:	f8 94       	cli

	if (val == LOW) {
		*out &= ~bit;
   1d37a:	ec 91       	ld	r30, X
	out = portOutputRegister(port);

	uint8_t oldSREG = SREG;
	cli();

	if (val == LOW) {
   1d37c:	11 11       	cpse	r17, r1
   1d37e:	08 c0       	rjmp	.+16     	; 0x1d390 <digitalWrite+0x58>
		*out &= ~bit;
   1d380:	d0 95       	com	r29
   1d382:	de 23       	and	r29, r30
	} else {
		*out |= bit;
   1d384:	dc 93       	st	X, r29
	}

	SREG = oldSREG;
   1d386:	8f bf       	out	0x3f, r24	; 63
}
   1d388:	df 91       	pop	r29
   1d38a:	cf 91       	pop	r28
   1d38c:	1f 91       	pop	r17
   1d38e:	08 95       	ret
	cli();

	if (val == LOW) {
		*out &= ~bit;
	} else {
		*out |= bit;
   1d390:	de 2b       	or	r29, r30
   1d392:	f8 cf       	rjmp	.-16     	; 0x1d384 <digitalWrite+0x4c>

0001d394 <pinMode>:
#define ARDUINO_MAIN
#include "wiring_private.h"
#include "pins_arduino.h"

void pinMode(uint8_t pin, uint8_t mode)
{
   1d394:	cf 93       	push	r28
   1d396:	df 93       	push	r29
	uint8_t bit = digitalPinToBitMask(pin);
   1d398:	90 e0       	ldi	r25, 0x00	; 0
   1d39a:	fc 01       	movw	r30, r24
   1d39c:	ed 54       	subi	r30, 0x4D	; 77
   1d39e:	f4 47       	sbci	r31, 0x74	; 116
   1d3a0:	24 91       	lpm	r18, Z
	uint8_t port = digitalPinToPort(pin);
   1d3a2:	83 5a       	subi	r24, 0xA3	; 163
   1d3a4:	94 47       	sbci	r25, 0x74	; 116
   1d3a6:	fc 01       	movw	r30, r24
   1d3a8:	84 91       	lpm	r24, Z
	volatile uint8_t *reg, *out;

	if (port == NOT_A_PIN) return;
   1d3aa:	88 23       	and	r24, r24
   1d3ac:	d1 f0       	breq	.+52     	; 0x1d3e2 <pinMode+0x4e>

	// JWS: can I let the optimizer do this?
	reg = portModeRegister(port);
   1d3ae:	90 e0       	ldi	r25, 0x00	; 0
   1d3b0:	88 0f       	add	r24, r24
   1d3b2:	99 1f       	adc	r25, r25
   1d3b4:	fc 01       	movw	r30, r24
   1d3b6:	e1 5f       	subi	r30, 0xF1	; 241
   1d3b8:	f4 47       	sbci	r31, 0x74	; 116
   1d3ba:	a5 91       	lpm	r26, Z+
   1d3bc:	b4 91       	lpm	r27, Z
	out = portOutputRegister(port);
   1d3be:	fc 01       	movw	r30, r24
   1d3c0:	e7 5d       	subi	r30, 0xD7	; 215
   1d3c2:	f4 47       	sbci	r31, 0x74	; 116
   1d3c4:	c5 91       	lpm	r28, Z+
   1d3c6:	d4 91       	lpm	r29, Z

	if (mode == INPUT) { 
   1d3c8:	61 11       	cpse	r22, r1
   1d3ca:	0e c0       	rjmp	.+28     	; 0x1d3e8 <pinMode+0x54>
		uint8_t oldSREG = SREG;
   1d3cc:	9f b7       	in	r25, 0x3f	; 63
                cli();
   1d3ce:	f8 94       	cli
		*reg &= ~bit;
   1d3d0:	8c 91       	ld	r24, X
   1d3d2:	e2 2f       	mov	r30, r18
   1d3d4:	e0 95       	com	r30
   1d3d6:	8e 23       	and	r24, r30
   1d3d8:	8c 93       	st	X, r24
		*out &= ~bit;
   1d3da:	28 81       	ld	r18, Y
   1d3dc:	e2 23       	and	r30, r18
   1d3de:	e8 83       	st	Y, r30
		SREG = oldSREG;
   1d3e0:	9f bf       	out	0x3f, r25	; 63
		uint8_t oldSREG = SREG;
                cli();
		*reg |= bit;
		SREG = oldSREG;
	}
}
   1d3e2:	df 91       	pop	r29
   1d3e4:	cf 91       	pop	r28
   1d3e6:	08 95       	ret
                cli();
		*reg &= ~bit;
		*out |= bit;
		SREG = oldSREG;
	} else {
		uint8_t oldSREG = SREG;
   1d3e8:	8f b7       	in	r24, 0x3f	; 63
                cli();
   1d3ea:	f8 94       	cli
		*reg |= bit;
   1d3ec:	ec 91       	ld	r30, X
   1d3ee:	e2 2b       	or	r30, r18
   1d3f0:	ec 93       	st	X, r30
		SREG = oldSREG;
   1d3f2:	8f bf       	out	0x3f, r24	; 63
   1d3f4:	f6 cf       	rjmp	.-20     	; 0x1d3e2 <pinMode+0x4e>

0001d3f6 <analogWrite>:
// Right now, PWM output only works on the pins with
// hardware support.  These are defined in the appropriate
// pins_*.c file.  For the rest of the pins, we default
// to digital output.
void analogWrite(uint8_t pin, int val)
{
   1d3f6:	1f 93       	push	r17
   1d3f8:	cf 93       	push	r28
   1d3fa:	df 93       	push	r29
   1d3fc:	18 2f       	mov	r17, r24
   1d3fe:	eb 01       	movw	r28, r22
	// We need to make sure the PWM output is enabled for those pins
	// that support it, as we turn it off when digitally reading or
	// writing with them.  Also, make sure the pin is in output mode
	// for consistenty with Wiring, which doesn't require a pinMode
	// call for the analog output pins.
	pinMode(pin, OUTPUT);
   1d400:	61 e0       	ldi	r22, 0x01	; 1
   1d402:	0e 94 ca e9 	call	0x1d394	; 0x1d394 <pinMode>
	if (val == 0)
   1d406:	20 97       	sbiw	r28, 0x00	; 0
   1d408:	39 f4       	brne	.+14     	; 0x1d418 <analogWrite+0x22>
	{
		digitalWrite(pin, LOW);
   1d40a:	60 e0       	ldi	r22, 0x00	; 0
	}
	else if (val == 255)
	{
		digitalWrite(pin, HIGH);
   1d40c:	81 2f       	mov	r24, r17
				} else {
					digitalWrite(pin, HIGH);
				}
		}
	}
}
   1d40e:	df 91       	pop	r29
   1d410:	cf 91       	pop	r28
   1d412:	1f 91       	pop	r17
	{
		digitalWrite(pin, LOW);
	}
	else if (val == 255)
	{
		digitalWrite(pin, HIGH);
   1d414:	0c 94 9c e9 	jmp	0x1d338	; 0x1d338 <digitalWrite>
	pinMode(pin, OUTPUT);
	if (val == 0)
	{
		digitalWrite(pin, LOW);
	}
	else if (val == 255)
   1d418:	cf 3f       	cpi	r28, 0xFF	; 255
   1d41a:	d1 05       	cpc	r29, r1
   1d41c:	11 f4       	brne	.+4      	; 0x1d422 <analogWrite+0x2c>
	{
		digitalWrite(pin, HIGH);
   1d41e:	61 e0       	ldi	r22, 0x01	; 1
   1d420:	f5 cf       	rjmp	.-22     	; 0x1d40c <analogWrite+0x16>
	}
	else
	{
		switch(digitalPinToTimer(pin))
   1d422:	e1 2f       	mov	r30, r17
   1d424:	f0 e0       	ldi	r31, 0x00	; 0
   1d426:	e7 5f       	subi	r30, 0xF7	; 247
   1d428:	f3 47       	sbci	r31, 0x73	; 115
   1d42a:	e4 91       	lpm	r30, Z
   1d42c:	e1 50       	subi	r30, 0x01	; 1
   1d42e:	e2 31       	cpi	r30, 0x12	; 18
   1d430:	08 f0       	brcs	.+2      	; 0x1d434 <analogWrite+0x3e>
   1d432:	b3 c0       	rjmp	.+358    	; 0x1d59a <analogWrite+0x1a4>
   1d434:	f0 e0       	ldi	r31, 0x00	; 0
   1d436:	88 27       	eor	r24, r24
   1d438:	ef 5d       	subi	r30, 0xDF	; 223
   1d43a:	f5 41       	sbci	r31, 0x15	; 21
   1d43c:	8f 4f       	sbci	r24, 0xFF	; 255
   1d43e:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   1d442:	33 ea       	ldi	r19, 0xA3	; 163
   1d444:	3b ea       	ldi	r19, 0xAB	; 171
   1d446:	40 ea       	ldi	r20, 0xA0	; 160
   1d448:	4a ea       	ldi	r20, 0xAA	; 170
   1d44a:	54 ea       	ldi	r21, 0xA4	; 164
   1d44c:	cd ea       	ldi	r28, 0xAD	; 173
   1d44e:	5e ea       	ldi	r21, 0xAE	; 174
   1d450:	66 ea       	ldi	r22, 0xA6	; 166
   1d452:	6e ea       	ldi	r22, 0xAE	; 174
   1d454:	78 ea       	ldi	r23, 0xA8	; 168
   1d456:	82 ea       	ldi	r24, 0xA2	; 162
   1d458:	8c ea       	ldi	r24, 0xAC	; 172
   1d45a:	9b ea       	ldi	r25, 0xAB	; 171
   1d45c:	a5 ea       	ldi	r26, 0xA5	; 165
   1d45e:	cd ea       	ldi	r28, 0xAD	; 173
   1d460:	af ea       	ldi	r26, 0xAF	; 175
   1d462:	b9 ea       	ldi	r27, 0xA9	; 169
   1d464:	c3 ea       	ldi	r28, 0xA3	; 163
			#endif

			#if defined(TCCR0A) && defined(COM0A1)
			case TIMER0A:
				// connect pwm to pin on timer 0, channel A
				sbi(TCCR0A, COM0A1);
   1d466:	84 b5       	in	r24, 0x24	; 36
   1d468:	80 68       	ori	r24, 0x80	; 128
   1d46a:	84 bd       	out	0x24, r24	; 36
				OCR0A = val; // set pwm duty
   1d46c:	c7 bd       	out	0x27, r28	; 39
				} else {
					digitalWrite(pin, HIGH);
				}
		}
	}
}
   1d46e:	df 91       	pop	r29
   1d470:	cf 91       	pop	r28
   1d472:	1f 91       	pop	r17
   1d474:	08 95       	ret
			#endif

			#if defined(TCCR0A) && defined(COM0B1)
			case TIMER0B:
				// connect pwm to pin on timer 0, channel B
				sbi(TCCR0A, COM0B1);
   1d476:	84 b5       	in	r24, 0x24	; 36
   1d478:	80 62       	ori	r24, 0x20	; 32
   1d47a:	84 bd       	out	0x24, r24	; 36
				OCR0B = val; // set pwm duty
   1d47c:	c8 bd       	out	0x28, r28	; 40
   1d47e:	f7 cf       	rjmp	.-18     	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR1A) && defined(COM1A1)
			case TIMER1A:
				// connect pwm to pin on timer 1, channel A
				sbi(TCCR1A, COM1A1);
   1d480:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   1d484:	80 68       	ori	r24, 0x80	; 128
   1d486:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
				OCR1A = val; // set pwm duty
   1d48a:	d0 93 89 00 	sts	0x0089, r29	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   1d48e:	c0 93 88 00 	sts	0x0088, r28	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   1d492:	ed cf       	rjmp	.-38     	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR1A) && defined(COM1B1)
			case TIMER1B:
				// connect pwm to pin on timer 1, channel B
				sbi(TCCR1A, COM1B1);
   1d494:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   1d498:	80 62       	ori	r24, 0x20	; 32
   1d49a:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
				OCR1B = val; // set pwm duty
   1d49e:	d0 93 8b 00 	sts	0x008B, r29	; 0x80008b <__TEXT_REGION_LENGTH__+0x7c208b>
   1d4a2:	c0 93 8a 00 	sts	0x008A, r28	; 0x80008a <__TEXT_REGION_LENGTH__+0x7c208a>
   1d4a6:	e3 cf       	rjmp	.-58     	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR1A) && defined(COM1C1)
			case TIMER1C:
				// connect pwm to pin on timer 1, channel C
				sbi(TCCR1A, COM1C1);
   1d4a8:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   1d4ac:	88 60       	ori	r24, 0x08	; 8
   1d4ae:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
				OCR1C = val; // set pwm duty
   1d4b2:	d0 93 8d 00 	sts	0x008D, r29	; 0x80008d <__TEXT_REGION_LENGTH__+0x7c208d>
   1d4b6:	c0 93 8c 00 	sts	0x008C, r28	; 0x80008c <__TEXT_REGION_LENGTH__+0x7c208c>
   1d4ba:	d9 cf       	rjmp	.-78     	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR2A) && defined(COM2A1)
			case TIMER2A:
				// connect pwm to pin on timer 2, channel A
				sbi(TCCR2A, COM2A1);
   1d4bc:	80 91 b0 00 	lds	r24, 0x00B0	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   1d4c0:	80 68       	ori	r24, 0x80	; 128
   1d4c2:	80 93 b0 00 	sts	0x00B0, r24	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
				OCR2A = val; // set pwm duty
   1d4c6:	c0 93 b3 00 	sts	0x00B3, r28	; 0x8000b3 <__TEXT_REGION_LENGTH__+0x7c20b3>
   1d4ca:	d1 cf       	rjmp	.-94     	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR2A) && defined(COM2B1)
			case TIMER2B:
				// connect pwm to pin on timer 2, channel B
				sbi(TCCR2A, COM2B1);
   1d4cc:	80 91 b0 00 	lds	r24, 0x00B0	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   1d4d0:	80 62       	ori	r24, 0x20	; 32
   1d4d2:	80 93 b0 00 	sts	0x00B0, r24	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
				OCR2B = val; // set pwm duty
   1d4d6:	c0 93 b4 00 	sts	0x00B4, r28	; 0x8000b4 <__TEXT_REGION_LENGTH__+0x7c20b4>
   1d4da:	c9 cf       	rjmp	.-110    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR3A) && defined(COM3A1)
			case TIMER3A:
				// connect pwm to pin on timer 3, channel A
				sbi(TCCR3A, COM3A1);
   1d4dc:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   1d4e0:	80 68       	ori	r24, 0x80	; 128
   1d4e2:	80 93 90 00 	sts	0x0090, r24	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
				OCR3A = val; // set pwm duty
   1d4e6:	d0 93 99 00 	sts	0x0099, r29	; 0x800099 <__TEXT_REGION_LENGTH__+0x7c2099>
   1d4ea:	c0 93 98 00 	sts	0x0098, r28	; 0x800098 <__TEXT_REGION_LENGTH__+0x7c2098>
   1d4ee:	bf cf       	rjmp	.-130    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR3A) && defined(COM3B1)
			case TIMER3B:
				// connect pwm to pin on timer 3, channel B
				sbi(TCCR3A, COM3B1);
   1d4f0:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   1d4f4:	80 62       	ori	r24, 0x20	; 32
   1d4f6:	80 93 90 00 	sts	0x0090, r24	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
				OCR3B = val; // set pwm duty
   1d4fa:	d0 93 9b 00 	sts	0x009B, r29	; 0x80009b <__TEXT_REGION_LENGTH__+0x7c209b>
   1d4fe:	c0 93 9a 00 	sts	0x009A, r28	; 0x80009a <__TEXT_REGION_LENGTH__+0x7c209a>
   1d502:	b5 cf       	rjmp	.-150    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR3A) && defined(COM3C1)
			case TIMER3C:
				// connect pwm to pin on timer 3, channel C
				sbi(TCCR3A, COM3C1);
   1d504:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   1d508:	88 60       	ori	r24, 0x08	; 8
   1d50a:	80 93 90 00 	sts	0x0090, r24	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
				OCR3C = val; // set pwm duty
   1d50e:	d0 93 9d 00 	sts	0x009D, r29	; 0x80009d <__TEXT_REGION_LENGTH__+0x7c209d>
   1d512:	c0 93 9c 00 	sts	0x009C, r28	; 0x80009c <__TEXT_REGION_LENGTH__+0x7c209c>
   1d516:	ab cf       	rjmp	.-170    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR4A)
			case TIMER4A:
				//connect pwm to pin on timer 4, channel A
				sbi(TCCR4A, COM4A1);
   1d518:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   1d51c:	80 68       	ori	r24, 0x80	; 128
   1d51e:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
				#if defined(COM4A0)		// only used on 32U4
				cbi(TCCR4A, COM4A0);
   1d522:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   1d526:	8f 7b       	andi	r24, 0xBF	; 191
   1d528:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
				#endif
				OCR4A = val;	// set pwm duty
   1d52c:	d0 93 a9 00 	sts	0x00A9, r29	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   1d530:	c0 93 a8 00 	sts	0x00A8, r28	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
   1d534:	9c cf       	rjmp	.-200    	; 0x1d46e <analogWrite+0x78>
			#endif
			
			#if defined(TCCR4A) && defined(COM4B1)
			case TIMER4B:
				// connect pwm to pin on timer 4, channel B
				sbi(TCCR4A, COM4B1);
   1d536:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   1d53a:	80 62       	ori	r24, 0x20	; 32
   1d53c:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
				OCR4B = val; // set pwm duty
   1d540:	d0 93 ab 00 	sts	0x00AB, r29	; 0x8000ab <__TEXT_REGION_LENGTH__+0x7c20ab>
   1d544:	c0 93 aa 00 	sts	0x00AA, r28	; 0x8000aa <__TEXT_REGION_LENGTH__+0x7c20aa>
   1d548:	92 cf       	rjmp	.-220    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR4A) && defined(COM4C1)
			case TIMER4C:
				// connect pwm to pin on timer 4, channel C
				sbi(TCCR4A, COM4C1);
   1d54a:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   1d54e:	88 60       	ori	r24, 0x08	; 8
   1d550:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
				OCR4C = val; // set pwm duty
   1d554:	d0 93 ad 00 	sts	0x00AD, r29	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   1d558:	c0 93 ac 00 	sts	0x00AC, r28	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
   1d55c:	88 cf       	rjmp	.-240    	; 0x1d46e <analogWrite+0x78>

							
			#if defined(TCCR5A) && defined(COM5A1)
			case TIMER5A:
				// connect pwm to pin on timer 5, channel A
				sbi(TCCR5A, COM5A1);
   1d55e:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1d562:	80 68       	ori	r24, 0x80	; 128
   1d564:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
				OCR5A = val; // set pwm duty
   1d568:	d0 93 29 01 	sts	0x0129, r29	; 0x800129 <__TEXT_REGION_LENGTH__+0x7c2129>
   1d56c:	c0 93 28 01 	sts	0x0128, r28	; 0x800128 <__TEXT_REGION_LENGTH__+0x7c2128>
   1d570:	7e cf       	rjmp	.-260    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR5A) && defined(COM5B1)
			case TIMER5B:
				// connect pwm to pin on timer 5, channel B
				sbi(TCCR5A, COM5B1);
   1d572:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1d576:	80 62       	ori	r24, 0x20	; 32
   1d578:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
				OCR5B = val; // set pwm duty
   1d57c:	d0 93 2b 01 	sts	0x012B, r29	; 0x80012b <__TEXT_REGION_LENGTH__+0x7c212b>
   1d580:	c0 93 2a 01 	sts	0x012A, r28	; 0x80012a <__TEXT_REGION_LENGTH__+0x7c212a>
   1d584:	74 cf       	rjmp	.-280    	; 0x1d46e <analogWrite+0x78>
			#endif

			#if defined(TCCR5A) && defined(COM5C1)
			case TIMER5C:
				// connect pwm to pin on timer 5, channel C
				sbi(TCCR5A, COM5C1);
   1d586:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1d58a:	88 60       	ori	r24, 0x08	; 8
   1d58c:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
				OCR5C = val; // set pwm duty
   1d590:	d0 93 2d 01 	sts	0x012D, r29	; 0x80012d <__TEXT_REGION_LENGTH__+0x7c212d>
   1d594:	c0 93 2c 01 	sts	0x012C, r28	; 0x80012c <__TEXT_REGION_LENGTH__+0x7c212c>
   1d598:	6a cf       	rjmp	.-300    	; 0x1d46e <analogWrite+0x78>
				break;
			#endif

			case NOT_ON_TIMER:
			default:
				if (val < 128) {
   1d59a:	c0 38       	cpi	r28, 0x80	; 128
   1d59c:	d1 05       	cpc	r29, r1
   1d59e:	0c f0       	brlt	.+2      	; 0x1d5a2 <analogWrite+0x1ac>
   1d5a0:	3e cf       	rjmp	.-388    	; 0x1d41e <analogWrite+0x28>
   1d5a2:	33 cf       	rjmp	.-410    	; 0x1d40a <analogWrite+0x14>

0001d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>:
	}
}

/// Accelerate up to max.speed (defined by @min_delay_us)
/// does not update global positions
void accelerate_1_step(uint8_t axes, int16_t acc, uint16_t &delay_us, uint16_t min_delay_us){
   1d5a4:	4f 92       	push	r4
   1d5a6:	5f 92       	push	r5
   1d5a8:	6f 92       	push	r6
   1d5aa:	7f 92       	push	r7
   1d5ac:	8f 92       	push	r8
   1d5ae:	9f 92       	push	r9
   1d5b0:	af 92       	push	r10
   1d5b2:	bf 92       	push	r11
   1d5b4:	cf 92       	push	r12
   1d5b6:	df 92       	push	r13
   1d5b8:	ef 92       	push	r14
   1d5ba:	ff 92       	push	r15
   1d5bc:	0f 93       	push	r16
   1d5be:	1f 93       	push	r17
   1d5c0:	cf 93       	push	r28
   1d5c2:	df 93       	push	r29

void sm4_do_step(uint8_t axes_mask)
{
#if ((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
#ifdef TMC2130_DEDGE_STEPPING
	PINC = (axes_mask & 0x0f); // toggle step signals by mask
   1d5c4:	86 b9       	out	0x06, r24	; 6
   1d5c6:	fa 01       	movw	r30, r20
   1d5c8:	e0 80       	ld	r14, Z
   1d5ca:	f1 80       	ldd	r15, Z+1	; 0x01
	sm4_do_step(axes);

	/// keep max speed (avoid extra computation)
	if (acc > 0 && delay_us == min_delay_us){
   1d5cc:	16 16       	cp	r1, r22
   1d5ce:	17 06       	cpc	r1, r23
   1d5d0:	b4 f4       	brge	.+44     	; 0x1d5fe <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x5a>
   1d5d2:	e2 16       	cp	r14, r18
   1d5d4:	f3 06       	cpc	r15, r19
   1d5d6:	99 f4       	brne	.+38     	; 0x1d5fe <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x5a>
		delayMicroseconds(delay_us);
   1d5d8:	c7 01       	movw	r24, r14

	//DBG(_n("%d "), t1);

	delayMicroseconds(t1);
	delay_us = t1;
}
   1d5da:	df 91       	pop	r29
   1d5dc:	cf 91       	pop	r28
   1d5de:	1f 91       	pop	r17
   1d5e0:	0f 91       	pop	r16
   1d5e2:	ff 90       	pop	r15
   1d5e4:	ef 90       	pop	r14
   1d5e6:	df 90       	pop	r13
   1d5e8:	cf 90       	pop	r12
   1d5ea:	bf 90       	pop	r11
   1d5ec:	af 90       	pop	r10
   1d5ee:	9f 90       	pop	r9
   1d5f0:	8f 90       	pop	r8
   1d5f2:	7f 90       	pop	r7
   1d5f4:	6f 90       	pop	r6
   1d5f6:	5f 90       	pop	r5
   1d5f8:	4f 90       	pop	r4
void accelerate_1_step(uint8_t axes, int16_t acc, uint16_t &delay_us, uint16_t min_delay_us){
	sm4_do_step(axes);

	/// keep max speed (avoid extra computation)
	if (acc > 0 && delay_us == min_delay_us){
		delayMicroseconds(delay_us);
   1d5fa:	0c 94 68 e9 	jmp	0x1d2d0	; 0x1d2d0 <delayMicroseconds>
   1d5fe:	89 01       	movw	r16, r18
   1d600:	6a 01       	movw	r12, r20
   1d602:	eb 01       	movw	r28, r22
		return;
	}

	// v1 = v0 + a * t
	// 0.01 = length of a step
	const float t0 = delay_us * 0.000001f;
   1d604:	b7 01       	movw	r22, r14
   1d606:	90 e0       	ldi	r25, 0x00	; 0
   1d608:	80 e0       	ldi	r24, 0x00	; 0
   1d60a:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   1d60e:	2d eb       	ldi	r18, 0xBD	; 189
   1d610:	37 e3       	ldi	r19, 0x37	; 55
   1d612:	46 e8       	ldi	r20, 0x86	; 134
   1d614:	55 e3       	ldi	r21, 0x35	; 53
   1d616:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d61a:	4b 01       	movw	r8, r22
   1d61c:	5c 01       	movw	r10, r24
	const float v1 = (0.01f / t0 + acc * t0);
   1d61e:	be 01       	movw	r22, r28
   1d620:	0d 2e       	mov	r0, r29
   1d622:	00 0c       	add	r0, r0
   1d624:	88 0b       	sbc	r24, r24
   1d626:	99 0b       	sbc	r25, r25
   1d628:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1d62c:	a5 01       	movw	r20, r10
   1d62e:	94 01       	movw	r18, r8
   1d630:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d634:	2b 01       	movw	r4, r22
   1d636:	3c 01       	movw	r6, r24
   1d638:	a5 01       	movw	r20, r10
   1d63a:	94 01       	movw	r18, r8
   1d63c:	6a e0       	ldi	r22, 0x0A	; 10
   1d63e:	77 ed       	ldi	r23, 0xD7	; 215
   1d640:	83 e2       	ldi	r24, 0x23	; 35
   1d642:	9c e3       	ldi	r25, 0x3C	; 60
   1d644:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1d648:	9b 01       	movw	r18, r22
   1d64a:	ac 01       	movw	r20, r24
   1d64c:	c3 01       	movw	r24, r6
   1d64e:	b2 01       	movw	r22, r4
   1d650:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1d654:	4b 01       	movw	r8, r22
   1d656:	5c 01       	movw	r10, r24
	uint16_t t1;
	if (v1 <= 0.16f){ ///< slowest speed convertible to uint16_t delay
   1d658:	2a e0       	ldi	r18, 0x0A	; 10
   1d65a:	37 ed       	ldi	r19, 0xD7	; 215
   1d65c:	43 e2       	ldi	r20, 0x23	; 35
   1d65e:	5e e3       	ldi	r21, 0x3E	; 62
   1d660:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1d664:	18 16       	cp	r1, r24
   1d666:	dc f5       	brge	.+118    	; 0x1d6de <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x13a>
		t1 = MAX_DELAY; ///< already too slow so it wants to move back
	} else {
		/// don't exceed max.speed
		t1 = MAX(min_delay_us, round_to_u16(0.01f / v1 * 1000000.f));
   1d668:	a5 01       	movw	r20, r10
   1d66a:	94 01       	movw	r18, r8
   1d66c:	6a e0       	ldi	r22, 0x0A	; 10
   1d66e:	77 ed       	ldi	r23, 0xD7	; 215
   1d670:	83 e2       	ldi	r24, 0x23	; 35
   1d672:	9c e3       	ldi	r25, 0x3C	; 60
   1d674:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1d678:	20 e0       	ldi	r18, 0x00	; 0
   1d67a:	34 e2       	ldi	r19, 0x24	; 36
   1d67c:	44 e7       	ldi	r20, 0x74	; 116
   1d67e:	59 e4       	ldi	r21, 0x49	; 73
   1d680:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
uint8_t round_to_u8(float f){
	return (uint8_t)(f + .5f);
}

uint16_t round_to_u16(float f){
	return (uint16_t)(f + .5f);
   1d684:	20 e0       	ldi	r18, 0x00	; 0
   1d686:	30 e0       	ldi	r19, 0x00	; 0
   1d688:	40 e0       	ldi	r20, 0x00	; 0
   1d68a:	5f e3       	ldi	r21, 0x3F	; 63
   1d68c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1d690:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   1d694:	5b 01       	movw	r10, r22
   1d696:	60 17       	cp	r22, r16
   1d698:	71 07       	cpc	r23, r17
   1d69a:	08 f4       	brcc	.+2      	; 0x1d69e <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0xfa>
   1d69c:	58 01       	movw	r10, r16
		/// don't exceed max.speed
		t1 = MAX(min_delay_us, round_to_u16(0.01f / v1 * 1000000.f));
	}

	/// make sure delay has changed a bit at least
	if (t1 == delay_us && acc != 0){
   1d69e:	ea 14       	cp	r14, r10
   1d6a0:	fb 04       	cpc	r15, r11
   1d6a2:	31 f4       	brne	.+12     	; 0x1d6b0 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x10c>
   1d6a4:	20 97       	sbiw	r28, 0x00	; 0
   1d6a6:	21 f0       	breq	.+8      	; 0x1d6b0 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x10c>
		if (acc > 0)
   1d6a8:	fc f0       	brlt	.+62     	; 0x1d6e8 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x144>
			t1--;
   1d6aa:	f1 e0       	ldi	r31, 0x01	; 1
   1d6ac:	af 1a       	sub	r10, r31
   1d6ae:	b1 08       	sbc	r11, r1
			t1++;
	}

	//DBG(_n("%d "), t1);

	delayMicroseconds(t1);
   1d6b0:	c5 01       	movw	r24, r10
   1d6b2:	0e 94 68 e9 	call	0x1d2d0	; 0x1d2d0 <delayMicroseconds>
	delay_us = t1;
   1d6b6:	f6 01       	movw	r30, r12
   1d6b8:	b1 82       	std	Z+1, r11	; 0x01
   1d6ba:	a0 82       	st	Z, r10
}
   1d6bc:	df 91       	pop	r29
   1d6be:	cf 91       	pop	r28
   1d6c0:	1f 91       	pop	r17
   1d6c2:	0f 91       	pop	r16
   1d6c4:	ff 90       	pop	r15
   1d6c6:	ef 90       	pop	r14
   1d6c8:	df 90       	pop	r13
   1d6ca:	cf 90       	pop	r12
   1d6cc:	bf 90       	pop	r11
   1d6ce:	af 90       	pop	r10
   1d6d0:	9f 90       	pop	r9
   1d6d2:	8f 90       	pop	r8
   1d6d4:	7f 90       	pop	r7
   1d6d6:	6f 90       	pop	r6
   1d6d8:	5f 90       	pop	r5
   1d6da:	4f 90       	pop	r4
   1d6dc:	08 95       	ret
	// 0.01 = length of a step
	const float t0 = delay_us * 0.000001f;
	const float v1 = (0.01f / t0 + acc * t0);
	uint16_t t1;
	if (v1 <= 0.16f){ ///< slowest speed convertible to uint16_t delay
		t1 = MAX_DELAY; ///< already too slow so it wants to move back
   1d6de:	80 e1       	ldi	r24, 0x10	; 16
   1d6e0:	a8 2e       	mov	r10, r24
   1d6e2:	87 e2       	ldi	r24, 0x27	; 39
   1d6e4:	b8 2e       	mov	r11, r24
   1d6e6:	db cf       	rjmp	.-74     	; 0x1d69e <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0xfa>
	/// make sure delay has changed a bit at least
	if (t1 == delay_us && acc != 0){
		if (acc > 0)
			t1--;
		else
			t1++;
   1d6e8:	8f ef       	ldi	r24, 0xFF	; 255
   1d6ea:	a8 1a       	sub	r10, r24
   1d6ec:	b8 0a       	sbc	r11, r24
   1d6ee:	e0 cf       	rjmp	.-64     	; 0x1d6b0 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)+0x10c>

0001d6f0 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)>:
/// keeps speed and then it decelerates to a complete stop (if possible)
/// it goes defined number of steps
/// returns after each step
/// \returns true if step was done
/// does not update global positions
bool go_and_stop_1_step(uint8_t axes, int16_t dec, uint16_t &delay_us, uint16_t &steps){
   1d6f0:	2f 92       	push	r2
   1d6f2:	3f 92       	push	r3
   1d6f4:	4f 92       	push	r4
   1d6f6:	5f 92       	push	r5
   1d6f8:	6f 92       	push	r6
   1d6fa:	7f 92       	push	r7
   1d6fc:	8f 92       	push	r8
   1d6fe:	9f 92       	push	r9
   1d700:	af 92       	push	r10
   1d702:	bf 92       	push	r11
   1d704:	cf 92       	push	r12
   1d706:	df 92       	push	r13
   1d708:	ef 92       	push	r14
   1d70a:	ff 92       	push	r15
   1d70c:	0f 93       	push	r16
   1d70e:	1f 93       	push	r17
   1d710:	cf 93       	push	r28
   1d712:	df 93       	push	r29
   1d714:	00 d0       	rcall	.+0      	; 0x1d716 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0x26>
   1d716:	cd b7       	in	r28, 0x3d	; 61
   1d718:	de b7       	in	r29, 0x3e	; 62
	if (steps <= 0 || dec <= 0)
   1d71a:	f9 01       	movw	r30, r18
   1d71c:	e0 80       	ld	r14, Z
   1d71e:	f1 80       	ldd	r15, Z+1	; 0x01
   1d720:	e1 14       	cp	r14, r1
   1d722:	f1 04       	cpc	r15, r1
   1d724:	09 f4       	brne	.+2      	; 0x1d728 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0x38>
   1d726:	6b c0       	rjmp	.+214    	; 0x1d7fe <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0x10e>
   1d728:	16 16       	cp	r1, r22
   1d72a:	17 06       	cpc	r1, r23
   1d72c:	0c f0       	brlt	.+2      	; 0x1d730 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0x40>
   1d72e:	67 c0       	rjmp	.+206    	; 0x1d7fe <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0x10e>
   1d730:	19 01       	movw	r2, r18
   1d732:	5b 83       	std	Y+3, r21	; 0x03
   1d734:	4a 83       	std	Y+2, r20	; 0x02
   1d736:	6b 01       	movw	r12, r22
   1d738:	89 83       	std	Y+1, r24	; 0x01
		return false;

	/// deceleration distance in steps, s = 1/2 v^2 / a
	uint16_t s = round_to_u16(100 * 0.5f * SQR(0.01f) / (SQR((float)delay_us) * dec));
   1d73a:	fa 01       	movw	r30, r20
   1d73c:	00 81       	ld	r16, Z
   1d73e:	11 81       	ldd	r17, Z+1	; 0x01
   1d740:	b8 01       	movw	r22, r16
   1d742:	90 e0       	ldi	r25, 0x00	; 0
   1d744:	80 e0       	ldi	r24, 0x00	; 0
   1d746:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   1d74a:	4b 01       	movw	r8, r22
   1d74c:	5c 01       	movw	r10, r24
   1d74e:	b6 01       	movw	r22, r12
   1d750:	0d 2c       	mov	r0, r13
   1d752:	00 0c       	add	r0, r0
   1d754:	88 0b       	sbc	r24, r24
   1d756:	99 0b       	sbc	r25, r25
   1d758:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1d75c:	2b 01       	movw	r4, r22
   1d75e:	3c 01       	movw	r6, r24
   1d760:	a5 01       	movw	r20, r10
   1d762:	94 01       	movw	r18, r8
   1d764:	c5 01       	movw	r24, r10
   1d766:	b4 01       	movw	r22, r8
   1d768:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d76c:	9b 01       	movw	r18, r22
   1d76e:	ac 01       	movw	r20, r24
   1d770:	c3 01       	movw	r24, r6
   1d772:	b2 01       	movw	r22, r4
   1d774:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   1d778:	9b 01       	movw	r18, r22
   1d77a:	ac 01       	movw	r20, r24
   1d77c:	6a e0       	ldi	r22, 0x0A	; 10
   1d77e:	77 ed       	ldi	r23, 0xD7	; 215
   1d780:	83 ea       	ldi	r24, 0xA3	; 163
   1d782:	9b e3       	ldi	r25, 0x3B	; 59
   1d784:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
uint8_t round_to_u8(float f){
	return (uint8_t)(f + .5f);
}

uint16_t round_to_u16(float f){
	return (uint16_t)(f + .5f);
   1d788:	20 e0       	ldi	r18, 0x00	; 0
   1d78a:	30 e0       	ldi	r19, 0x00	; 0
   1d78c:	40 e0       	ldi	r20, 0x00	; 0
   1d78e:	5f e3       	ldi	r21, 0x3F	; 63
   1d790:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1d794:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
	if (steps <= 0 || dec <= 0)
		return false;

	/// deceleration distance in steps, s = 1/2 v^2 / a
	uint16_t s = round_to_u16(100 * 0.5f * SQR(0.01f) / (SQR((float)delay_us) * dec));
	if (steps > s){
   1d798:	6e 15       	cp	r22, r14
   1d79a:	7f 05       	cpc	r23, r15
   1d79c:	28 f5       	brcc	.+74     	; 0x1d7e8 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0xf8>
   1d79e:	f9 81       	ldd	r31, Y+1	; 0x01
   1d7a0:	f6 b9       	out	0x06, r31	; 6
		/// go steady
		sm4_do_step(axes);
		delayMicroseconds(delay_us);
   1d7a2:	ea 81       	ldd	r30, Y+2	; 0x02
   1d7a4:	fb 81       	ldd	r31, Y+3	; 0x03
   1d7a6:	80 81       	ld	r24, Z
   1d7a8:	91 81       	ldd	r25, Z+1	; 0x01
   1d7aa:	0e 94 68 e9 	call	0x1d2d0	; 0x1d2d0 <delayMicroseconds>
	} else {
		/// decelerate
		accelerate_1_step(axes, -dec, delay_us, delay_us);
	}
	--steps;
   1d7ae:	f1 01       	movw	r30, r2
   1d7b0:	80 81       	ld	r24, Z
   1d7b2:	91 81       	ldd	r25, Z+1	; 0x01
   1d7b4:	01 97       	sbiw	r24, 0x01	; 1
   1d7b6:	91 83       	std	Z+1, r25	; 0x01
   1d7b8:	80 83       	st	Z, r24
	return true;
   1d7ba:	81 e0       	ldi	r24, 0x01	; 1
}
   1d7bc:	0f 90       	pop	r0
   1d7be:	0f 90       	pop	r0
   1d7c0:	0f 90       	pop	r0
   1d7c2:	df 91       	pop	r29
   1d7c4:	cf 91       	pop	r28
   1d7c6:	1f 91       	pop	r17
   1d7c8:	0f 91       	pop	r16
   1d7ca:	ff 90       	pop	r15
   1d7cc:	ef 90       	pop	r14
   1d7ce:	df 90       	pop	r13
   1d7d0:	cf 90       	pop	r12
   1d7d2:	bf 90       	pop	r11
   1d7d4:	af 90       	pop	r10
   1d7d6:	9f 90       	pop	r9
   1d7d8:	8f 90       	pop	r8
   1d7da:	7f 90       	pop	r7
   1d7dc:	6f 90       	pop	r6
   1d7de:	5f 90       	pop	r5
   1d7e0:	4f 90       	pop	r4
   1d7e2:	3f 90       	pop	r3
   1d7e4:	2f 90       	pop	r2
   1d7e6:	08 95       	ret
		/// go steady
		sm4_do_step(axes);
		delayMicroseconds(delay_us);
	} else {
		/// decelerate
		accelerate_1_step(axes, -dec, delay_us, delay_us);
   1d7e8:	66 27       	eor	r22, r22
   1d7ea:	77 27       	eor	r23, r23
   1d7ec:	6c 19       	sub	r22, r12
   1d7ee:	7d 09       	sbc	r23, r13
   1d7f0:	98 01       	movw	r18, r16
   1d7f2:	4a 81       	ldd	r20, Y+2	; 0x02
   1d7f4:	5b 81       	ldd	r21, Y+3	; 0x03
   1d7f6:	89 81       	ldd	r24, Y+1	; 0x01
   1d7f8:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>
   1d7fc:	d8 cf       	rjmp	.-80     	; 0x1d7ae <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0xbe>
/// returns after each step
/// \returns true if step was done
/// does not update global positions
bool go_and_stop_1_step(uint8_t axes, int16_t dec, uint16_t &delay_us, uint16_t &steps){
	if (steps <= 0 || dec <= 0)
		return false;
   1d7fe:	80 e0       	ldi	r24, 0x00	; 0
   1d800:	dd cf       	rjmp	.-70     	; 0x1d7bc <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)+0xcc>

0001d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>:
			count_position[i] += dir & mask ? -1L : 1L;
		}
	}
}

static void __attribute__((noinline)) set_axes_dir(const uint8_t axis, const uint8_t dir) {
   1d802:	0f 93       	push	r16
   1d804:	1f 93       	push	r17
   1d806:	cf 93       	push	r28
   1d808:	df 93       	push	r29
   1d80a:	18 2f       	mov	r17, r24
   1d80c:	06 2f       	mov	r16, r22
	for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i <= Z_AXIS; i++, mask <<= 1) {
   1d80e:	d1 e0       	ldi	r29, 0x01	; 1
   1d810:	c0 e0       	ldi	r28, 0x00	; 0
		if (axis & mask) {
   1d812:	81 2f       	mov	r24, r17
   1d814:	8d 23       	and	r24, r29
   1d816:	29 f0       	breq	.+10     	; 0x1d822 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]+0x20>
			sm4_set_dir(i, dir & mask);
   1d818:	60 2f       	mov	r22, r16
   1d81a:	6d 23       	and	r22, r29
   1d81c:	8c 2f       	mov	r24, r28
   1d81e:	0f 94 5e 53 	call	0x2a6bc	; 0x2a6bc <sm4_set_dir(unsigned char, unsigned char)>
		}
	}
}

static void __attribute__((noinline)) set_axes_dir(const uint8_t axis, const uint8_t dir) {
	for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i <= Z_AXIS; i++, mask <<= 1) {
   1d822:	cf 5f       	subi	r28, 0xFF	; 255
   1d824:	dd 0f       	add	r29, r29
   1d826:	c3 30       	cpi	r28, 0x03	; 3
   1d828:	a1 f7       	brne	.-24     	; 0x1d812 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]+0x10>
		if (axis & mask) {
			sm4_set_dir(i, dir & mask);
		}
	}
}
   1d82a:	df 91       	pop	r29
   1d82c:	cf 91       	pop	r28
   1d82e:	1f 91       	pop	r17
   1d830:	0f 91       	pop	r16
   1d832:	08 95       	ret

0001d834 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]>:
        //@size=114
		DBG(_n("min, trigger, untrigger, max: [%d %d %d %d]\n"), _Z, trigger, untrigger, z);
	}
}

static void update_position_1_step(const uint8_t axis, const uint8_t dir) {
   1d834:	8f 92       	push	r8
   1d836:	9f 92       	push	r9
   1d838:	af 92       	push	r10
   1d83a:	bf 92       	push	r11
   1d83c:	cf 92       	push	r12
   1d83e:	df 92       	push	r13
   1d840:	ef 92       	push	r14
   1d842:	ff 92       	push	r15
   1d844:	30 e0       	ldi	r19, 0x00	; 0
   1d846:	20 e0       	ldi	r18, 0x00	; 0
	for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i <= Z_AXIS; i++, mask <<= 1) {
   1d848:	91 e0       	ldi	r25, 0x01	; 1
		if (axis & mask) {
   1d84a:	48 2f       	mov	r20, r24
   1d84c:	49 23       	and	r20, r25
   1d84e:	19 f1       	breq	.+70     	; 0x1d896 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]+0x62>
			count_position[i] += dir & mask ? -1L : 1L;
   1d850:	a9 01       	movw	r20, r18
   1d852:	44 0f       	add	r20, r20
   1d854:	55 1f       	adc	r21, r21
   1d856:	44 0f       	add	r20, r20
   1d858:	55 1f       	adc	r21, r21
   1d85a:	fa 01       	movw	r30, r20
   1d85c:	ed 54       	subi	r30, 0x4D	; 77
   1d85e:	f9 4f       	sbci	r31, 0xF9	; 249
   1d860:	c0 80       	ld	r12, Z
   1d862:	d1 80       	ldd	r13, Z+1	; 0x01
   1d864:	e2 80       	ldd	r14, Z+2	; 0x02
   1d866:	f3 80       	ldd	r15, Z+3	; 0x03
   1d868:	76 2f       	mov	r23, r22
   1d86a:	79 23       	and	r23, r25
   1d86c:	81 2c       	mov	r8, r1
   1d86e:	91 2c       	mov	r9, r1
   1d870:	54 01       	movw	r10, r8
   1d872:	83 94       	inc	r8
   1d874:	77 23       	and	r23, r23
   1d876:	21 f0       	breq	.+8      	; 0x1d880 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]+0x4c>
   1d878:	88 24       	eor	r8, r8
   1d87a:	8a 94       	dec	r8
   1d87c:	98 2c       	mov	r9, r8
   1d87e:	54 01       	movw	r10, r8
   1d880:	c8 0c       	add	r12, r8
   1d882:	d9 1c       	adc	r13, r9
   1d884:	ea 1c       	adc	r14, r10
   1d886:	fb 1c       	adc	r15, r11
   1d888:	4d 54       	subi	r20, 0x4D	; 77
   1d88a:	59 4f       	sbci	r21, 0xF9	; 249
   1d88c:	fa 01       	movw	r30, r20
   1d88e:	c0 82       	st	Z, r12
   1d890:	d1 82       	std	Z+1, r13	; 0x01
   1d892:	e2 82       	std	Z+2, r14	; 0x02
   1d894:	f3 82       	std	Z+3, r15	; 0x03
		DBG(_n("min, trigger, untrigger, max: [%d %d %d %d]\n"), _Z, trigger, untrigger, z);
	}
}

static void update_position_1_step(const uint8_t axis, const uint8_t dir) {
	for (uint8_t i = X_AXIS, mask = X_AXIS_MASK; i <= Z_AXIS; i++, mask <<= 1) {
   1d896:	99 0f       	add	r25, r25
   1d898:	2f 5f       	subi	r18, 0xFF	; 255
   1d89a:	3f 4f       	sbci	r19, 0xFF	; 255
   1d89c:	23 30       	cpi	r18, 0x03	; 3
   1d89e:	31 05       	cpc	r19, r1
   1d8a0:	a1 f6       	brne	.-88     	; 0x1d84a <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]+0x16>
		if (axis & mask) {
			count_position[i] += dir & mask ? -1L : 1L;
		}
	}
}
   1d8a2:	ff 90       	pop	r15
   1d8a4:	ef 90       	pop	r14
   1d8a6:	df 90       	pop	r13
   1d8a8:	cf 90       	pop	r12
   1d8aa:	bf 90       	pop	r11
   1d8ac:	af 90       	pop	r10
   1d8ae:	9f 90       	pop	r9
   1d8b0:	8f 90       	pop	r8
   1d8b2:	08 95       	ret

0001d8b4 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)>:
/// Moves printer to absolute position [x,y,z] defined in integer position system
/// check_pinda == 0: ordinary move
/// check_pinda == 1: stop when PINDA triggered
/// check_pinda == -1: stop when PINDA untriggered
bool xyzcal_lineXYZ_to(int16_t x, int16_t y, int16_t z, uint16_t delay_us, int8_t check_pinda)
{
   1d8b4:	2f 92       	push	r2
   1d8b6:	3f 92       	push	r3
   1d8b8:	4f 92       	push	r4
   1d8ba:	5f 92       	push	r5
   1d8bc:	6f 92       	push	r6
   1d8be:	7f 92       	push	r7
   1d8c0:	8f 92       	push	r8
   1d8c2:	9f 92       	push	r9
   1d8c4:	af 92       	push	r10
   1d8c6:	bf 92       	push	r11
   1d8c8:	cf 92       	push	r12
   1d8ca:	df 92       	push	r13
   1d8cc:	ef 92       	push	r14
   1d8ce:	ff 92       	push	r15
   1d8d0:	0f 93       	push	r16
   1d8d2:	1f 93       	push	r17
   1d8d4:	cf 93       	push	r28
   1d8d6:	df 93       	push	r29
   1d8d8:	00 d0       	rcall	.+0      	; 0x1d8da <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x26>
   1d8da:	00 d0       	rcall	.+0      	; 0x1d8dc <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x28>
   1d8dc:	cd b7       	in	r28, 0x3d	; 61
   1d8de:	de b7       	in	r29, 0x3e	; 62
//	DBG(_n("xyzcal_lineXYZ_to x=%d y=%d z=%d  check=%d\n"), x, y, z, check_pinda);
	x -= (int16_t)count_position[0];
   1d8e0:	c0 90 b3 06 	lds	r12, 0x06B3	; 0x8006b3 <count_position>
   1d8e4:	d0 90 b4 06 	lds	r13, 0x06B4	; 0x8006b4 <count_position+0x1>
   1d8e8:	e0 90 b5 06 	lds	r14, 0x06B5	; 0x8006b5 <count_position+0x2>
   1d8ec:	f0 90 b6 06 	lds	r15, 0x06B6	; 0x8006b6 <count_position+0x3>
   1d8f0:	7c 01       	movw	r14, r24
   1d8f2:	ec 18       	sub	r14, r12
   1d8f4:	fd 08       	sbc	r15, r13
	y -= (int16_t)count_position[1];
   1d8f6:	80 91 b7 06 	lds	r24, 0x06B7	; 0x8006b7 <count_position+0x4>
   1d8fa:	90 91 b8 06 	lds	r25, 0x06B8	; 0x8006b8 <count_position+0x5>
   1d8fe:	a0 91 b9 06 	lds	r26, 0x06B9	; 0x8006b9 <count_position+0x6>
   1d902:	b0 91 ba 06 	lds	r27, 0x06BA	; 0x8006ba <count_position+0x7>
   1d906:	68 1b       	sub	r22, r24
   1d908:	79 0b       	sbc	r23, r25
	z -= (int16_t)count_position[2];
   1d90a:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   1d90e:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   1d912:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   1d916:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   1d91a:	fa 01       	movw	r30, r20
   1d91c:	e8 1b       	sub	r30, r24
   1d91e:	f9 0b       	sbc	r31, r25
   1d920:	fa 83       	std	Y+2, r31	; 0x02
   1d922:	e9 83       	std	Y+1, r30	; 0x01
	xyzcal_dm = ((x<0)?1:0) | ((y<0)?2:0) | ((z<0)?4:0);
   1d924:	fb 01       	movw	r30, r22
   1d926:	ff 0f       	add	r31, r31
   1d928:	ee 0b       	sbc	r30, r30
   1d92a:	ff 0f       	add	r31, r31
   1d92c:	fe 2f       	mov	r31, r30
   1d92e:	ee 1f       	adc	r30, r30
   1d930:	e2 70       	andi	r30, 0x02	; 2
   1d932:	89 81       	ldd	r24, Y+1	; 0x01
   1d934:	9a 81       	ldd	r25, Y+2	; 0x02
   1d936:	88 e0       	ldi	r24, 0x08	; 8
   1d938:	98 02       	muls	r25, r24
   1d93a:	81 2d       	mov	r24, r1
   1d93c:	99 0b       	sbc	r25, r25
   1d93e:	11 24       	eor	r1, r1
   1d940:	84 70       	andi	r24, 0x04	; 4
   1d942:	e8 2b       	or	r30, r24
   1d944:	8f 2d       	mov	r24, r15
   1d946:	88 1f       	adc	r24, r24
   1d948:	88 27       	eor	r24, r24
   1d94a:	88 1f       	adc	r24, r24
   1d94c:	e8 2b       	or	r30, r24
   1d94e:	e0 93 ff 03 	sts	0x03FF, r30	; 0x8003ff <xyzcal_dm>
	asm("nop");
}

void sm4_set_dir_bits(uint8_t dir_bits)
{
	uint8_t portL = PORTL;
   1d952:	90 91 0b 01 	lds	r25, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
	portL &= 0xb8; //set direction bits to zero
   1d956:	98 7b       	andi	r25, 0xB8	; 184
	if (dir_bits & 1) portL |= 2;  //set X direction bit
	if (dir_bits & 2) portL |= 1;  //set Y direction bit
	if (dir_bits & 4) portL |= 4;  //set Z direction bit
	if (dir_bits & 8) portL |= 64; //set E direction bit
#elif ((MOTHERBOARD == BOARD_EINSY_1_0a))
	dir_bits ^= dir_mask;
   1d958:	8a e0       	ldi	r24, 0x0A	; 10
   1d95a:	e8 27       	eor	r30, r24
	if (dir_bits & 1) portL |= 1;  //set X direction bit
   1d95c:	e0 fd       	sbrc	r30, 0
   1d95e:	91 60       	ori	r25, 0x01	; 1
	if (dir_bits & 2) portL |= 2;  //set Y direction bit
   1d960:	e1 fd       	sbrc	r30, 1
   1d962:	92 60       	ori	r25, 0x02	; 2
	if (dir_bits & 4) portL |= 4;  //set Z direction bit
   1d964:	e2 fd       	sbrc	r30, 2
   1d966:	94 60       	ori	r25, 0x04	; 4
	if (dir_bits & 8) portL |= 64; //set E direction bit
   1d968:	90 64       	ori	r25, 0x40	; 64
#endif
	PORTL = portL;
   1d96a:	90 93 0b 01 	sts	0x010B, r25	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
	asm("nop");
   1d96e:	00 00       	nop
	sm4_set_dir_bits(xyzcal_dm);
	sm4_stop_cb = check_pinda?((check_pinda<0)?check_pinda_0:check_pinda_1):0;
   1d970:	83 e0       	ldi	r24, 0x03	; 3
   1d972:	9e ec       	ldi	r25, 0xCE	; 206
   1d974:	01 11       	cpse	r16, r1
   1d976:	02 c0       	rjmp	.+4      	; 0x1d97c <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0xc8>
   1d978:	90 e0       	ldi	r25, 0x00	; 0
   1d97a:	80 e0       	ldi	r24, 0x00	; 0
   1d97c:	90 93 89 06 	sts	0x0689, r25	; 0x800689 <sm4_stop_cb+0x1>
   1d980:	80 93 88 06 	sts	0x0688, r24	; 0x800688 <sm4_stop_cb>
	xyzcal_sm4_delay = delay_us;
   1d984:	30 93 fe 03 	sts	0x03FE, r19	; 0x8003fe <xyzcal_sm4_delay+0x1>
   1d988:	20 93 fd 03 	sts	0x03FD, r18	; 0x8003fd <xyzcal_sm4_delay>
	//	uint32_t u = _micros();
	bool ret = sm4_line_xyz_ui(abs(x), abs(y), abs(z)) ? true : false;
   1d98c:	29 81       	ldd	r18, Y+1	; 0x01
   1d98e:	3a 81       	ldd	r19, Y+2	; 0x02
   1d990:	3e 83       	std	Y+6, r19	; 0x06
   1d992:	2d 83       	std	Y+5, r18	; 0x05
   1d994:	37 ff       	sbrs	r19, 7
   1d996:	05 c0       	rjmp	.+10     	; 0x1d9a2 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0xee>
   1d998:	31 95       	neg	r19
   1d99a:	21 95       	neg	r18
   1d99c:	31 09       	sbc	r19, r1
   1d99e:	3e 83       	std	Y+6, r19	; 0x06
   1d9a0:	2d 83       	std	Y+5, r18	; 0x05
   1d9a2:	8b 01       	movw	r16, r22
   1d9a4:	77 ff       	sbrs	r23, 7
   1d9a6:	03 c0       	rjmp	.+6      	; 0x1d9ae <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0xfa>
   1d9a8:	11 95       	neg	r17
   1d9aa:	01 95       	neg	r16
   1d9ac:	11 09       	sbc	r17, r1
   1d9ae:	f7 fe       	sbrs	r15, 7
   1d9b0:	03 c0       	rjmp	.+6      	; 0x1d9b8 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x104>
   1d9b2:	f1 94       	neg	r15
   1d9b4:	e1 94       	neg	r14
   1d9b6:	f1 08       	sbc	r15, r1
#endif
#endif //((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
}

uint16_t sm4_line_xyz_ui(uint16_t dx, uint16_t dy, uint16_t dz){
	uint16_t dd = (uint16_t)(sqrt((float)(((uint32_t)dx)*dx + ((uint32_t)dy*dy) + ((uint32_t)dz*dz))) + 0.5);
   1d9b8:	98 01       	movw	r18, r16
   1d9ba:	d8 01       	movw	r26, r16
   1d9bc:	0f 94 73 dd 	call	0x3bae6	; 0x3bae6 <__mulhisi3>
   1d9c0:	4b 01       	movw	r8, r22
   1d9c2:	5c 01       	movw	r10, r24
   1d9c4:	2d 81       	ldd	r18, Y+5	; 0x05
   1d9c6:	3e 81       	ldd	r19, Y+6	; 0x06
   1d9c8:	d9 01       	movw	r26, r18
   1d9ca:	0f 94 73 dd 	call	0x3bae6	; 0x3bae6 <__mulhisi3>
   1d9ce:	86 0e       	add	r8, r22
   1d9d0:	97 1e       	adc	r9, r23
   1d9d2:	a8 1e       	adc	r10, r24
   1d9d4:	b9 1e       	adc	r11, r25
   1d9d6:	97 01       	movw	r18, r14
   1d9d8:	d7 01       	movw	r26, r14
   1d9da:	0f 94 73 dd 	call	0x3bae6	; 0x3bae6 <__mulhisi3>
   1d9de:	68 0d       	add	r22, r8
   1d9e0:	79 1d       	adc	r23, r9
   1d9e2:	8a 1d       	adc	r24, r10
   1d9e4:	9b 1d       	adc	r25, r11
   1d9e6:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   1d9ea:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   1d9ee:	20 e0       	ldi	r18, 0x00	; 0
   1d9f0:	30 e0       	ldi	r19, 0x00	; 0
   1d9f2:	40 e0       	ldi	r20, 0x00	; 0
   1d9f4:	5f e3       	ldi	r21, 0x3F	; 63
   1d9f6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1d9fa:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   1d9fe:	2b 01       	movw	r4, r22
	uint16_t nd = dd;
	uint16_t cx = dd;
	uint16_t cy = dd;
	uint16_t cz = dd;
   1da00:	4b 01       	movw	r8, r22

uint16_t sm4_line_xyz_ui(uint16_t dx, uint16_t dy, uint16_t dz){
	uint16_t dd = (uint16_t)(sqrt((float)(((uint32_t)dx)*dx + ((uint32_t)dy*dy) + ((uint32_t)dz*dz))) + 0.5);
	uint16_t nd = dd;
	uint16_t cx = dd;
	uint16_t cy = dd;
   1da02:	5b 01       	movw	r10, r22
}

uint16_t sm4_line_xyz_ui(uint16_t dx, uint16_t dy, uint16_t dz){
	uint16_t dd = (uint16_t)(sqrt((float)(((uint32_t)dx)*dx + ((uint32_t)dy*dy) + ((uint32_t)dz*dz))) + 0.5);
	uint16_t nd = dd;
	uint16_t cx = dd;
   1da04:	6b 01       	movw	r12, r22
#endif //((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
}

uint16_t sm4_line_xyz_ui(uint16_t dx, uint16_t dy, uint16_t dz){
	uint16_t dd = (uint16_t)(sqrt((float)(((uint32_t)dx)*dx + ((uint32_t)dy*dy) + ((uint32_t)dz*dz))) + 0.5);
	uint16_t nd = dd;
   1da06:	3b 01       	movw	r6, r22
	uint16_t cx = dd;
	uint16_t cy = dd;
	uint16_t cz = dd;
	uint16_t x = 0;
	uint16_t y = 0;
	uint16_t z = 0;
   1da08:	1c 82       	std	Y+4, r1	; 0x04
   1da0a:	1b 82       	std	Y+3, r1	; 0x03
	uint16_t nd = dd;
	uint16_t cx = dd;
	uint16_t cy = dd;
	uint16_t cz = dd;
	uint16_t x = 0;
	uint16_t y = 0;
   1da0c:	31 2c       	mov	r3, r1
   1da0e:	21 2c       	mov	r2, r1
	uint16_t dd = (uint16_t)(sqrt((float)(((uint32_t)dx)*dx + ((uint32_t)dy*dy) + ((uint32_t)dz*dz))) + 0.5);
	uint16_t nd = dd;
	uint16_t cx = dd;
	uint16_t cy = dd;
	uint16_t cz = dd;
	uint16_t x = 0;
   1da10:	1a 82       	std	Y+2, r1	; 0x02
   1da12:	19 82       	std	Y+1, r1	; 0x01
	uint16_t y = 0;
	uint16_t z = 0;
	while (nd){
   1da14:	61 14       	cp	r6, r1
   1da16:	71 04       	cpc	r7, r1
   1da18:	09 f4       	brne	.+2      	; 0x1da1c <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x168>
   1da1a:	47 c0       	rjmp	.+142    	; 0x1daaa <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1f6>
		if (sm4_stop_cb && (*sm4_stop_cb)()) break;
   1da1c:	e0 91 88 06 	lds	r30, 0x0688	; 0x800688 <sm4_stop_cb>
   1da20:	f0 91 89 06 	lds	r31, 0x0689	; 0x800689 <sm4_stop_cb+0x1>
   1da24:	30 97       	sbiw	r30, 0x00	; 0
   1da26:	e9 f5       	brne	.+122    	; 0x1daa2 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1ee>
		uint8_t sm = 0; //step mask
   1da28:	80 e0       	ldi	r24, 0x00	; 0
		if (cx <= dx){
   1da2a:	ec 14       	cp	r14, r12
   1da2c:	fd 04       	cpc	r15, r13
   1da2e:	40 f0       	brcs	.+16     	; 0x1da40 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x18c>
			sm |= 1;
			cx += dd;
   1da30:	c4 0c       	add	r12, r4
   1da32:	d5 1c       	adc	r13, r5
			x++;
   1da34:	89 81       	ldd	r24, Y+1	; 0x01
   1da36:	9a 81       	ldd	r25, Y+2	; 0x02
   1da38:	01 96       	adiw	r24, 0x01	; 1
   1da3a:	9a 83       	std	Y+2, r25	; 0x02
   1da3c:	89 83       	std	Y+1, r24	; 0x01
	uint16_t z = 0;
	while (nd){
		if (sm4_stop_cb && (*sm4_stop_cb)()) break;
		uint8_t sm = 0; //step mask
		if (cx <= dx){
			sm |= 1;
   1da3e:	81 e0       	ldi	r24, 0x01	; 1
			cx += dd;
			x++;
		}
		if (cy <= dy){
   1da40:	0a 15       	cp	r16, r10
   1da42:	1b 05       	cpc	r17, r11
   1da44:	30 f0       	brcs	.+12     	; 0x1da52 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x19e>
			sm |= 2;
   1da46:	82 60       	ori	r24, 0x02	; 2
			cy += dd;
   1da48:	a4 0c       	add	r10, r4
   1da4a:	b5 1c       	adc	r11, r5
			y++;
   1da4c:	9f ef       	ldi	r25, 0xFF	; 255
   1da4e:	29 1a       	sub	r2, r25
   1da50:	39 0a       	sbc	r3, r25
		}
		if (cz <= dz){
   1da52:	ed 81       	ldd	r30, Y+5	; 0x05
   1da54:	fe 81       	ldd	r31, Y+6	; 0x06
   1da56:	e8 15       	cp	r30, r8
   1da58:	f9 05       	cpc	r31, r9
   1da5a:	48 f0       	brcs	.+18     	; 0x1da6e <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1ba>
			sm |= 4;
   1da5c:	84 60       	ori	r24, 0x04	; 4
			cz += dd;
   1da5e:	84 0c       	add	r8, r4
   1da60:	95 1c       	adc	r9, r5
			z++;
   1da62:	2b 81       	ldd	r18, Y+3	; 0x03
   1da64:	3c 81       	ldd	r19, Y+4	; 0x04
   1da66:	2f 5f       	subi	r18, 0xFF	; 255
   1da68:	3f 4f       	sbci	r19, 0xFF	; 255
   1da6a:	3c 83       	std	Y+4, r19	; 0x04
   1da6c:	2b 83       	std	Y+3, r18	; 0x03
		}
		cx -= dx;
   1da6e:	ce 18       	sub	r12, r14
   1da70:	df 08       	sbc	r13, r15
		cy -= dy;
   1da72:	a0 1a       	sub	r10, r16
   1da74:	b1 0a       	sbc	r11, r17
		cz -= dz;
   1da76:	ed 81       	ldd	r30, Y+5	; 0x05
   1da78:	fe 81       	ldd	r31, Y+6	; 0x06
   1da7a:	8e 1a       	sub	r8, r30
   1da7c:	9f 0a       	sbc	r9, r31

void sm4_do_step(uint8_t axes_mask)
{
#if ((MOTHERBOARD == BOARD_RAMBO_MINI_1_0) || (MOTHERBOARD == BOARD_RAMBO_MINI_1_3) || (MOTHERBOARD == BOARD_EINSY_1_0a))
#ifdef TMC2130_DEDGE_STEPPING
	PINC = (axes_mask & 0x0f); // toggle step signals by mask
   1da7e:	86 b9       	out	0x06, r24	; 6
		cx -= dx;
		cy -= dy;
		cz -= dz;
		sm4_do_step(sm);
		uint16_t delay = SM4_DEFDELAY;
		if (sm4_calc_delay_cb) delay = (*sm4_calc_delay_cb)(nd, dd);
   1da80:	e0 91 84 06 	lds	r30, 0x0684	; 0x800684 <sm4_calc_delay_cb>
   1da84:	f0 91 85 06 	lds	r31, 0x0685	; 0x800685 <sm4_calc_delay_cb+0x1>
   1da88:	30 97       	sbiw	r30, 0x00	; 0
   1da8a:	d1 f1       	breq	.+116    	; 0x1db00 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x24c>
   1da8c:	b2 01       	movw	r22, r4
   1da8e:	c3 01       	movw	r24, r6
   1da90:	19 95       	eicall
		if (delay) delayMicroseconds(delay);
   1da92:	00 97       	sbiw	r24, 0x00	; 0
   1da94:	11 f0       	breq	.+4      	; 0x1da9a <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1e6>
   1da96:	0e 94 68 e9 	call	0x1d2d0	; 0x1d2d0 <delayMicroseconds>
		nd--;
   1da9a:	f1 e0       	ldi	r31, 0x01	; 1
   1da9c:	6f 1a       	sub	r6, r31
   1da9e:	71 08       	sbc	r7, r1
   1daa0:	b9 cf       	rjmp	.-142    	; 0x1da14 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x160>
	uint16_t cz = dd;
	uint16_t x = 0;
	uint16_t y = 0;
	uint16_t z = 0;
	while (nd){
		if (sm4_stop_cb && (*sm4_stop_cb)()) break;
   1daa2:	19 95       	eicall
   1daa4:	88 23       	and	r24, r24
   1daa6:	09 f4       	brne	.+2      	; 0x1daaa <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1f6>
   1daa8:	bf cf       	rjmp	.-130    	; 0x1da28 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x174>
		uint16_t delay = SM4_DEFDELAY;
		if (sm4_calc_delay_cb) delay = (*sm4_calc_delay_cb)(nd, dd);
		if (delay) delayMicroseconds(delay);
		nd--;
	}
	if (sm4_update_pos_cb)
   1daaa:	e0 91 86 06 	lds	r30, 0x0686	; 0x800686 <sm4_update_pos_cb>
   1daae:	f0 91 87 06 	lds	r31, 0x0687	; 0x800687 <sm4_update_pos_cb+0x1>
   1dab2:	30 97       	sbiw	r30, 0x00	; 0
   1dab4:	41 f0       	breq	.+16     	; 0x1dac6 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x212>
		(*sm4_update_pos_cb)(x, y, z, 0);
   1dab6:	30 e0       	ldi	r19, 0x00	; 0
   1dab8:	20 e0       	ldi	r18, 0x00	; 0
   1daba:	4b 81       	ldd	r20, Y+3	; 0x03
   1dabc:	5c 81       	ldd	r21, Y+4	; 0x04
   1dabe:	b1 01       	movw	r22, r2
   1dac0:	89 81       	ldd	r24, Y+1	; 0x01
   1dac2:	9a 81       	ldd	r25, Y+2	; 0x02
   1dac4:	19 95       	eicall
   1dac6:	81 e0       	ldi	r24, 0x01	; 1
   1dac8:	67 28       	or	r6, r7
   1daca:	09 f4       	brne	.+2      	; 0x1dace <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x21a>
   1dacc:	80 e0       	ldi	r24, 0x00	; 0
	//	u = _micros() - u;
	return ret;
}
   1dace:	26 96       	adiw	r28, 0x06	; 6
   1dad0:	0f b6       	in	r0, 0x3f	; 63
   1dad2:	f8 94       	cli
   1dad4:	de bf       	out	0x3e, r29	; 62
   1dad6:	0f be       	out	0x3f, r0	; 63
   1dad8:	cd bf       	out	0x3d, r28	; 61
   1dada:	df 91       	pop	r29
   1dadc:	cf 91       	pop	r28
   1dade:	1f 91       	pop	r17
   1dae0:	0f 91       	pop	r16
   1dae2:	ff 90       	pop	r15
   1dae4:	ef 90       	pop	r14
   1dae6:	df 90       	pop	r13
   1dae8:	cf 90       	pop	r12
   1daea:	bf 90       	pop	r11
   1daec:	af 90       	pop	r10
   1daee:	9f 90       	pop	r9
   1daf0:	8f 90       	pop	r8
   1daf2:	7f 90       	pop	r7
   1daf4:	6f 90       	pop	r6
   1daf6:	5f 90       	pop	r5
   1daf8:	4f 90       	pop	r4
   1dafa:	3f 90       	pop	r3
   1dafc:	2f 90       	pop	r2
   1dafe:	08 95       	ret
		}
		cx -= dx;
		cy -= dy;
		cz -= dz;
		sm4_do_step(sm);
		uint16_t delay = SM4_DEFDELAY;
   1db00:	84 ef       	ldi	r24, 0xF4	; 244
   1db02:	91 e0       	ldi	r25, 0x01	; 1
   1db04:	c8 cf       	rjmp	.-112    	; 0x1da96 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)+0x1e2>

0001db06 <spi_txrx.lto_priv.531>:
}

static inline uint8_t spi_txrx(uint8_t tx)
{
	SPDR = tx;
   1db06:	8e bd       	out	0x2e, r24	; 46
	while (!(SPSR & (1 << SPIF)));
   1db08:	0d b4       	in	r0, 0x2d	; 45
   1db0a:	07 fe       	sbrs	r0, 7
   1db0c:	fd cf       	rjmp	.-6      	; 0x1db08 <spi_txrx.lto_priv.531+0x2>
	return SPDR;
   1db0e:	8e b5       	in	r24, 0x2e	; 46
}
   1db10:	08 95       	ret

0001db12 <xflash_wait_busy>:
	_CS_HIGH();
}

uint8_t xflash_rd_status_reg(void)
{
	_CS_LOW();
   1db12:	45 98       	cbi	0x08, 5	; 8
	_SPI_TX(_CMD_RD_STATUS_REG);         // send command 0x90
   1db14:	85 e0       	ldi	r24, 0x05	; 5
   1db16:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	uint8_t val = _SPI_RX();             // receive value
   1db1a:	8f ef       	ldi	r24, 0xFF	; 255
   1db1c:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_CS_HIGH();
   1db20:	45 9a       	sbi	0x08, 5	; 8
		((xflash_mfrid == _MFRID_GD25Q20C) && (xflash_devid == _DEVID_GD25Q20C));
}

void xflash_wait_busy(void)
{
	while (xflash_rd_status_reg() & XFLASH_STATUS_BUSY) ;
   1db22:	80 fd       	sbrc	r24, 0
   1db24:	f6 cf       	rjmp	.-20     	; 0x1db12 <xflash_wait_busy>
}
   1db26:	08 95       	ret

0001db28 <xflash_send_cmdaddr>:
	_CS_HIGH();
	return val;
}

static void xflash_send_cmdaddr(uint8_t cmd, uint32_t addr)
{
   1db28:	1f 93       	push	r17
   1db2a:	cf 93       	push	r28
   1db2c:	df 93       	push	r29
   1db2e:	ea 01       	movw	r28, r20
   1db30:	16 2f       	mov	r17, r22
	_SPI_TX(cmd);                        // send command 0x03
   1db32:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_SPI_TX(((uint8_t*)&addr)[2]);       // send addr bits 16..23
   1db36:	81 2f       	mov	r24, r17
   1db38:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_SPI_TX(((uint8_t*)&addr)[1]);       // send addr bits 8..15
   1db3c:	8d 2f       	mov	r24, r29
   1db3e:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_SPI_TX(((uint8_t*)&addr)[0]);       // send addr bits 0..7
   1db42:	8c 2f       	mov	r24, r28
}
   1db44:	df 91       	pop	r29
   1db46:	cf 91       	pop	r28
   1db48:	1f 91       	pop	r17
static void xflash_send_cmdaddr(uint8_t cmd, uint32_t addr)
{
	_SPI_TX(cmd);                        // send command 0x03
	_SPI_TX(((uint8_t*)&addr)[2]);       // send addr bits 16..23
	_SPI_TX(((uint8_t*)&addr)[1]);       // send addr bits 8..15
	_SPI_TX(((uint8_t*)&addr)[0]);       // send addr bits 0..7
   1db4a:	0c 94 83 ed 	jmp	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>

0001db4e <xflash_erase>:
	_CS_HIGH();
}

void xflash_erase(uint8_t cmd, uint32_t addr)
{
	_CS_LOW();
   1db4e:	45 98       	cbi	0x08, 5	; 8
    xflash_send_cmdaddr(cmd, addr);
   1db50:	0e 94 94 ed 	call	0x1db28	; 0x1db28 <xflash_send_cmdaddr>
	_CS_HIGH();
   1db54:	45 9a       	sbi	0x08, 5	; 8
}
   1db56:	08 95       	ret

0001db58 <xflash_page_program>:
		*(data++) = _SPI_RX();
	_CS_HIGH();
}

void xflash_page_program(uint32_t addr, uint8_t* data, uint16_t cnt)
{
   1db58:	ef 92       	push	r14
   1db5a:	ff 92       	push	r15
   1db5c:	0f 93       	push	r16
   1db5e:	1f 93       	push	r17
   1db60:	cf 93       	push	r28
   1db62:	df 93       	push	r29
   1db64:	7a 01       	movw	r14, r20
   1db66:	89 01       	movw	r16, r18
	_CS_LOW();
   1db68:	45 98       	cbi	0x08, 5	; 8
	xflash_send_cmdaddr(_CMD_PAGE_PROGRAM, addr);
   1db6a:	ab 01       	movw	r20, r22
   1db6c:	bc 01       	movw	r22, r24
   1db6e:	82 e0       	ldi	r24, 0x02	; 2
   1db70:	0e 94 94 ed 	call	0x1db28	; 0x1db28 <xflash_send_cmdaddr>
   1db74:	e7 01       	movw	r28, r14
   1db76:	0e 0d       	add	r16, r14
   1db78:	1f 1d       	adc	r17, r15
	while (cnt--)                        // send data
   1db7a:	c0 17       	cp	r28, r16
   1db7c:	d1 07       	cpc	r29, r17
   1db7e:	41 f4       	brne	.+16     	; 0x1db90 <xflash_page_program+0x38>
		_SPI_TX(*(data++));
	_CS_HIGH();
   1db80:	45 9a       	sbi	0x08, 5	; 8
}
   1db82:	df 91       	pop	r29
   1db84:	cf 91       	pop	r28
   1db86:	1f 91       	pop	r17
   1db88:	0f 91       	pop	r16
   1db8a:	ff 90       	pop	r15
   1db8c:	ef 90       	pop	r14
   1db8e:	08 95       	ret
void xflash_page_program(uint32_t addr, uint8_t* data, uint16_t cnt)
{
	_CS_LOW();
	xflash_send_cmdaddr(_CMD_PAGE_PROGRAM, addr);
	while (cnt--)                        // send data
		_SPI_TX(*(data++));
   1db90:	89 91       	ld	r24, Y+
   1db92:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1db96:	f1 cf       	rjmp	.-30     	; 0x1db7a <xflash_page_program+0x22>

0001db98 <xflash_rd_data>:
	_SPI_TX(((uint8_t*)&addr)[1]);       // send addr bits 8..15
	_SPI_TX(((uint8_t*)&addr)[0]);       // send addr bits 0..7
}

void xflash_rd_data(uint32_t addr, uint8_t* data, uint16_t cnt)
{
   1db98:	ef 92       	push	r14
   1db9a:	ff 92       	push	r15
   1db9c:	0f 93       	push	r16
   1db9e:	1f 93       	push	r17
   1dba0:	cf 93       	push	r28
   1dba2:	df 93       	push	r29
   1dba4:	7a 01       	movw	r14, r20
   1dba6:	89 01       	movw	r16, r18
	_CS_LOW();
   1dba8:	45 98       	cbi	0x08, 5	; 8
	xflash_send_cmdaddr(_CMD_RD_DATA, addr);
   1dbaa:	ab 01       	movw	r20, r22
   1dbac:	bc 01       	movw	r22, r24
   1dbae:	83 e0       	ldi	r24, 0x03	; 3
   1dbb0:	0e 94 94 ed 	call	0x1db28	; 0x1db28 <xflash_send_cmdaddr>
   1dbb4:	e7 01       	movw	r28, r14
   1dbb6:	0e 0d       	add	r16, r14
   1dbb8:	1f 1d       	adc	r17, r15
	while (cnt--)                        // receive data
   1dbba:	c0 17       	cp	r28, r16
   1dbbc:	d1 07       	cpc	r29, r17
   1dbbe:	41 f4       	brne	.+16     	; 0x1dbd0 <xflash_rd_data+0x38>
		*(data++) = _SPI_RX();
	_CS_HIGH();
   1dbc0:	45 9a       	sbi	0x08, 5	; 8
}
   1dbc2:	df 91       	pop	r29
   1dbc4:	cf 91       	pop	r28
   1dbc6:	1f 91       	pop	r17
   1dbc8:	0f 91       	pop	r16
   1dbca:	ff 90       	pop	r15
   1dbcc:	ef 90       	pop	r14
   1dbce:	08 95       	ret
void xflash_rd_data(uint32_t addr, uint8_t* data, uint16_t cnt)
{
	_CS_LOW();
	xflash_send_cmdaddr(_CMD_RD_DATA, addr);
	while (cnt--)                        // receive data
		*(data++) = _SPI_RX();
   1dbd0:	8f ef       	ldi	r24, 0xFF	; 255
   1dbd2:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1dbd6:	89 93       	st	Y+, r24
   1dbd8:	f0 cf       	rjmp	.-32     	; 0x1dbba <xflash_rd_data+0x22>

0001dbda <xfdump_check_state(dump_crash_reason*)>:
#include "asm.h"
#include "xflash.h"
#include "Marlin.h" // for softReset

bool xfdump_check_state(dump_crash_reason* reason)
{
   1dbda:	0f 93       	push	r16
   1dbdc:	1f 93       	push	r17
   1dbde:	cf 93       	push	r28
   1dbe0:	df 93       	push	r29
   1dbe2:	00 d0       	rcall	.+0      	; 0x1dbe4 <xfdump_check_state(dump_crash_reason*)+0xa>
   1dbe4:	1f 92       	push	r1
   1dbe6:	cd b7       	in	r28, 0x3d	; 61
   1dbe8:	de b7       	in	r29, 0x3e	; 62
   1dbea:	8c 01       	movw	r16, r24
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   1dbec:	8c e5       	ldi	r24, 0x5C	; 92
   1dbee:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   1dbf0:	1d bc       	out	0x2d, r1	; 45
    uint32_t magic;

    XFLASH_SPI_ENTER();
    xflash_rd_data(DUMP_OFFSET + offsetof(dump_t, header.magic),
   1dbf2:	24 e0       	ldi	r18, 0x04	; 4
   1dbf4:	30 e0       	ldi	r19, 0x00	; 0
   1dbf6:	ae 01       	movw	r20, r28
   1dbf8:	4f 5f       	subi	r20, 0xFF	; 255
   1dbfa:	5f 4f       	sbci	r21, 0xFF	; 255
   1dbfc:	60 e0       	ldi	r22, 0x00	; 0
   1dbfe:	70 ed       	ldi	r23, 0xD0	; 208
   1dc00:	83 e0       	ldi	r24, 0x03	; 3
   1dc02:	90 e0       	ldi	r25, 0x00	; 0
   1dc04:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
                   (uint8_t*)&magic, sizeof(magic));
    if (magic != DUMP_MAGIC)
   1dc08:	89 81       	ldd	r24, Y+1	; 0x01
   1dc0a:	9a 81       	ldd	r25, Y+2	; 0x02
   1dc0c:	ab 81       	ldd	r26, Y+3	; 0x03
   1dc0e:	bc 81       	ldd	r27, Y+4	; 0x04
   1dc10:	87 34       	cpi	r24, 0x47	; 71
   1dc12:	95 45       	sbci	r25, 0x55	; 85
   1dc14:	a2 45       	sbci	r26, 0x52	; 82
   1dc16:	b5 45       	sbci	r27, 0x55	; 85
   1dc18:	71 f4       	brne	.+28     	; 0x1dc36 <xfdump_check_state(dump_crash_reason*)+0x5c>
        return false;

    if (reason)
   1dc1a:	01 15       	cp	r16, r1
   1dc1c:	11 05       	cpc	r17, r1
   1dc1e:	49 f0       	breq	.+18     	; 0x1dc32 <xfdump_check_state(dump_crash_reason*)+0x58>
    {
        xflash_rd_data(DUMP_OFFSET + offsetof(dump_t, header.crash_reason),
   1dc20:	21 e0       	ldi	r18, 0x01	; 1
   1dc22:	30 e0       	ldi	r19, 0x00	; 0
   1dc24:	a8 01       	movw	r20, r16
   1dc26:	65 e0       	ldi	r22, 0x05	; 5
   1dc28:	70 ed       	ldi	r23, 0xD0	; 208
   1dc2a:	83 e0       	ldi	r24, 0x03	; 3
   1dc2c:	90 e0       	ldi	r25, 0x00	; 0
   1dc2e:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
                       (uint8_t*)reason, sizeof(*reason));
    }
    return true;
   1dc32:	81 e0       	ldi	r24, 0x01	; 1
   1dc34:	01 c0       	rjmp	.+2      	; 0x1dc38 <xfdump_check_state(dump_crash_reason*)+0x5e>

    XFLASH_SPI_ENTER();
    xflash_rd_data(DUMP_OFFSET + offsetof(dump_t, header.magic),
                   (uint8_t*)&magic, sizeof(magic));
    if (magic != DUMP_MAGIC)
        return false;
   1dc36:	80 e0       	ldi	r24, 0x00	; 0
    {
        xflash_rd_data(DUMP_OFFSET + offsetof(dump_t, header.crash_reason),
                       (uint8_t*)reason, sizeof(*reason));
    }
    return true;
}
   1dc38:	0f 90       	pop	r0
   1dc3a:	0f 90       	pop	r0
   1dc3c:	0f 90       	pop	r0
   1dc3e:	0f 90       	pop	r0
   1dc40:	df 91       	pop	r29
   1dc42:	cf 91       	pop	r28
   1dc44:	1f 91       	pop	r17
   1dc46:	0f 91       	pop	r16
   1dc48:	08 95       	ret

0001dc4a <xflash_enable_wr>:
	return 1;
}

void xflash_enable_wr(void)
{
	_CS_LOW();
   1dc4a:	45 98       	cbi	0x08, 5	; 8
	_SPI_TX(_CMD_ENABLE_WR);             // send command 0x06
   1dc4c:	86 e0       	ldi	r24, 0x06	; 6
   1dc4e:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_CS_HIGH();
   1dc52:	45 9a       	sbi	0x08, 5	; 8
}
   1dc54:	08 95       	ret

0001dc56 <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)>:
    }
}


static void __attribute__((noinline)) xfdump_dump_core(dump_header_t& hdr, uint32_t addr, uint8_t* buf, uint16_t cnt)
{
   1dc56:	4f 92       	push	r4
   1dc58:	5f 92       	push	r5
   1dc5a:	6f 92       	push	r6
   1dc5c:	7f 92       	push	r7
   1dc5e:	8f 92       	push	r8
   1dc60:	9f 92       	push	r9
   1dc62:	af 92       	push	r10
   1dc64:	bf 92       	push	r11
   1dc66:	ef 92       	push	r14
   1dc68:	ff 92       	push	r15
   1dc6a:	0f 93       	push	r16
   1dc6c:	1f 93       	push	r17
   1dc6e:	cf 93       	push	r28
   1dc70:	df 93       	push	r29
   1dc72:	7c 01       	movw	r14, r24
   1dc74:	4a 01       	movw	r8, r20
   1dc76:	5b 01       	movw	r10, r22
   1dc78:	e9 01       	movw	r28, r18
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   1dc7a:	8c e5       	ldi	r24, 0x5C	; 92
   1dc7c:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   1dc7e:	1d bc       	out	0x2d, r1	; 45
}


static void xfdump_erase()
{
    for(uint32_t addr = DUMP_OFFSET;
   1dc80:	41 2c       	mov	r4, r1
   1dc82:	80 ed       	ldi	r24, 0xD0	; 208
   1dc84:	58 2e       	mov	r5, r24
   1dc86:	83 e0       	ldi	r24, 0x03	; 3
   1dc88:	68 2e       	mov	r6, r24
   1dc8a:	71 2c       	mov	r7, r1
        addr < DUMP_OFFSET + DUMP_SIZE;
        addr += 4096)
    {
        xflash_enable_wr();
   1dc8c:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
	_CS_HIGH();
}

void xflash_sector_erase(uint32_t addr)
{
	return xflash_erase(_CMD_SECTOR_ERASE, addr);
   1dc90:	b3 01       	movw	r22, r6
   1dc92:	a2 01       	movw	r20, r4
   1dc94:	80 e2       	ldi	r24, 0x20	; 32
   1dc96:	0e 94 a7 ed 	call	0x1db4e	; 0x1db4e <xflash_erase>
        xflash_sector_erase(addr);
        xflash_wait_busy();
   1dc9a:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>

static void xfdump_erase()
{
    for(uint32_t addr = DUMP_OFFSET;
        addr < DUMP_OFFSET + DUMP_SIZE;
        addr += 4096)
   1dc9e:	80 e1       	ldi	r24, 0x10	; 16
   1dca0:	58 0e       	add	r5, r24
   1dca2:	61 1c       	adc	r6, r1
   1dca4:	71 1c       	adc	r7, r1


static void xfdump_erase()
{
    for(uint32_t addr = DUMP_OFFSET;
        addr < DUMP_OFFSET + DUMP_SIZE;
   1dca6:	41 14       	cp	r4, r1
   1dca8:	51 04       	cpc	r5, r1
   1dcaa:	e4 e0       	ldi	r30, 0x04	; 4
   1dcac:	6e 06       	cpc	r6, r30
   1dcae:	71 04       	cpc	r7, r1
   1dcb0:	69 f7       	brne	.-38     	; 0x1dc8c <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)+0x36>

    // start by clearing all sectors (we need all of them in any case)
    xfdump_erase();

    // sample SP/PC
    hdr.sp = SP;
   1dcb2:	8d b7       	in	r24, 0x3d	; 61
   1dcb4:	9e b7       	in	r25, 0x3e	; 62
   1dcb6:	f7 01       	movw	r30, r14
   1dcb8:	93 87       	std	Z+11, r25	; 0x0b
   1dcba:	82 87       	std	Z+10, r24	; 0x0a
      "rcall .\n"
      "pop %A0\n"
      "pop %B0\n"
      "pop %C0\n"
      : "=&r" (ret)
  );
   1dcbc:	00 d0       	rcall	.+0      	; 0x1dcbe <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)+0x68>
   1dcbe:	8f 91       	pop	r24
   1dcc0:	9f 91       	pop	r25
   1dcc2:	af 91       	pop	r26
    hdr.pc = GETPC();
   1dcc4:	b0 e0       	ldi	r27, 0x00	; 0
   1dcc6:	86 83       	std	Z+6, r24	; 0x06
   1dcc8:	97 83       	std	Z+7, r25	; 0x07
   1dcca:	a0 87       	std	Z+8, r26	; 0x08
   1dccc:	b1 87       	std	Z+9, r27	; 0x09

    // write header
    static_assert(sizeof(hdr) <= 256, "header is larger than a single page write");
    xflash_enable_wr();
   1dcce:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
    xflash_page_program(DUMP_OFFSET, (uint8_t*)&hdr, sizeof(hdr));
   1dcd2:	2c e0       	ldi	r18, 0x0C	; 12
   1dcd4:	30 e0       	ldi	r19, 0x00	; 0
   1dcd6:	a7 01       	movw	r20, r14
   1dcd8:	60 e0       	ldi	r22, 0x00	; 0
   1dcda:	70 ed       	ldi	r23, 0xD0	; 208
   1dcdc:	83 e0       	ldi	r24, 0x03	; 3
   1dcde:	90 e0       	ldi	r25, 0x00	; 0
   1dce0:	0e 94 ac ed 	call	0x1db58	; 0x1db58 <xflash_page_program>
    xflash_wait_busy();
   1dce4:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>

void xflash_multipage_program(uint32_t addr, uint8_t* data, uint16_t cnt)
{
    while(cnt)
    {
        xflash_enable_wr();
   1dce8:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
        _CS_LOW();
   1dcec:	45 98       	cbi	0x08, 5	; 8
        xflash_send_cmdaddr(_CMD_PAGE_PROGRAM, addr);
   1dcee:	b5 01       	movw	r22, r10
   1dcf0:	a4 01       	movw	r20, r8
   1dcf2:	82 e0       	ldi	r24, 0x02	; 2
   1dcf4:	0e 94 94 ed 	call	0x1db28	; 0x1db28 <xflash_send_cmdaddr>
   1dcf8:	fe 01       	movw	r30, r28
        while(1)
        {
            // send data
            _SPI_TX(*(data++));
   1dcfa:	21 96       	adiw	r28, 0x01	; 1
   1dcfc:	80 81       	ld	r24, Z
   1dcfe:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
            if(!--cnt || !(++addr & 0xFF))
   1dd02:	01 50       	subi	r16, 0x01	; 1
   1dd04:	11 09       	sbc	r17, r1
   1dd06:	41 f0       	breq	.+16     	; 0x1dd18 <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)+0xc2>
   1dd08:	ff ef       	ldi	r31, 0xFF	; 255
   1dd0a:	8f 1a       	sub	r8, r31
   1dd0c:	9f 0a       	sbc	r9, r31
   1dd0e:	af 0a       	sbc	r10, r31
   1dd10:	bf 0a       	sbc	r11, r31
        _CS_LOW();
        xflash_send_cmdaddr(_CMD_PAGE_PROGRAM, addr);
        while(1)
        {
            // send data
            _SPI_TX(*(data++));
   1dd12:	fe 01       	movw	r30, r28
            if(!--cnt || !(++addr & 0xFF))
   1dd14:	81 10       	cpse	r8, r1
   1dd16:	f1 cf       	rjmp	.-30     	; 0x1dcfa <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)+0xa4>
            {
                // on a page boundary or end of write
                _CS_HIGH();
   1dd18:	45 9a       	sbi	0x08, 5	; 8
                xflash_wait_busy();
   1dd1a:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
	_CS_HIGH();
}

void xflash_multipage_program(uint32_t addr, uint8_t* data, uint16_t cnt)
{
    while(cnt)
   1dd1e:	01 15       	cp	r16, r1
   1dd20:	11 05       	cpc	r17, r1
   1dd22:	11 f7       	brne	.-60     	; 0x1dce8 <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)+0x92>

    // write data
    static_assert(sizeof(dump_t::data) <= RAMEND+1, "dump area size insufficient");
    xflash_multipage_program(addr, buf, cnt);
}
   1dd24:	df 91       	pop	r29
   1dd26:	cf 91       	pop	r28
   1dd28:	1f 91       	pop	r17
   1dd2a:	0f 91       	pop	r16
   1dd2c:	ff 90       	pop	r15
   1dd2e:	ef 90       	pop	r14
   1dd30:	bf 90       	pop	r11
   1dd32:	af 90       	pop	r10
   1dd34:	9f 90       	pop	r9
   1dd36:	8f 90       	pop	r8
   1dd38:	7f 90       	pop	r7
   1dd3a:	6f 90       	pop	r6
   1dd3c:	5f 90       	pop	r5
   1dd3e:	4f 90       	pop	r4
   1dd40:	08 95       	ret

0001dd42 <xfdump_full_dump_and_reset(dump_crash_reason)>:
                     (uint8_t*)RAMSTART, RAMSIZE);
}


void xfdump_full_dump_and_reset(dump_crash_reason reason)
{
   1dd42:	cf 93       	push	r28
   1dd44:	df 93       	push	r29
   1dd46:	cd b7       	in	r28, 0x3d	; 61
   1dd48:	de b7       	in	r29, 0x3e	; 62
   1dd4a:	2c 97       	sbiw	r28, 0x0c	; 12
   1dd4c:	0f b6       	in	r0, 0x3f	; 63
   1dd4e:	f8 94       	cli
   1dd50:	de bf       	out	0x3e, r29	; 62
   1dd52:	0f be       	out	0x3f, r0	; 63
   1dd54:	cd bf       	out	0x3d, r28	; 61
    dump_header_t buf;
    buf.magic = DUMP_MAGIC;
   1dd56:	47 e4       	ldi	r20, 0x47	; 71
   1dd58:	55 e5       	ldi	r21, 0x55	; 85
   1dd5a:	62 e5       	ldi	r22, 0x52	; 82
   1dd5c:	75 e5       	ldi	r23, 0x55	; 85
   1dd5e:	49 83       	std	Y+1, r20	; 0x01
   1dd60:	5a 83       	std	Y+2, r21	; 0x02
   1dd62:	6b 83       	std	Y+3, r22	; 0x03
   1dd64:	7c 83       	std	Y+4, r23	; 0x04
    buf.regs_present = true;
   1dd66:	91 e0       	ldi	r25, 0x01	; 1
   1dd68:	9d 83       	std	Y+5, r25	; 0x05
    buf.crash_reason = (uint8_t)reason;
   1dd6a:	8e 83       	std	Y+6, r24	; 0x06

    // disable interrupts for a cleaner register dump
    cli();
   1dd6c:	f8 94       	cli
   1dd6e:	88 e1       	ldi	r24, 0x18	; 24
   1dd70:	9d e0       	ldi	r25, 0x0D	; 13
   1dd72:	0f b6       	in	r0, 0x3f	; 63
   1dd74:	f8 94       	cli
   1dd76:	a8 95       	wdr
   1dd78:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   1dd7c:	0f be       	out	0x3f, r0	; 63
   1dd7e:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
    // ensure there's always enough time (with some margin) to dump
    // dump time on w25x20cl: ~150ms
    wdt_enable(WDTO_500MS);

    // write all addressable ranges (this will trash bidirectional registers)
    xfdump_dump_core(buf, DUMP_OFFSET + offsetof(dump_t, data), 0, RAMEND+1);
   1dd82:	00 e0       	ldi	r16, 0x00	; 0
   1dd84:	12 e2       	ldi	r17, 0x22	; 34
   1dd86:	30 e0       	ldi	r19, 0x00	; 0
   1dd88:	20 e0       	ldi	r18, 0x00	; 0
   1dd8a:	40 e0       	ldi	r20, 0x00	; 0
   1dd8c:	51 ed       	ldi	r21, 0xD1	; 209
   1dd8e:	63 e0       	ldi	r22, 0x03	; 3
   1dd90:	70 e0       	ldi	r23, 0x00	; 0
   1dd92:	ce 01       	movw	r24, r28
   1dd94:	01 96       	adiw	r24, 0x01	; 1
   1dd96:	0e 94 2b ee 	call	0x1dc56	; 0x1dc56 <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)>

    // force a reset even sooner
    softReset();
   1dd9a:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>

0001dd9e <xfdump_dump()>:
    xflash_multipage_program(addr, buf, cnt);
}


void xfdump_dump()
{
   1dd9e:	0f 93       	push	r16
   1dda0:	1f 93       	push	r17
   1dda2:	cf 93       	push	r28
   1dda4:	df 93       	push	r29
   1dda6:	cd b7       	in	r28, 0x3d	; 61
   1dda8:	de b7       	in	r29, 0x3e	; 62
   1ddaa:	2c 97       	sbiw	r28, 0x0c	; 12
   1ddac:	0f b6       	in	r0, 0x3f	; 63
   1ddae:	f8 94       	cli
   1ddb0:	de bf       	out	0x3e, r29	; 62
   1ddb2:	0f be       	out	0x3f, r0	; 63
   1ddb4:	cd bf       	out	0x3d, r28	; 61
    dump_header_t buf;
    buf.magic = DUMP_MAGIC;
   1ddb6:	87 e4       	ldi	r24, 0x47	; 71
   1ddb8:	95 e5       	ldi	r25, 0x55	; 85
   1ddba:	a2 e5       	ldi	r26, 0x52	; 82
   1ddbc:	b5 e5       	ldi	r27, 0x55	; 85
   1ddbe:	89 83       	std	Y+1, r24	; 0x01
   1ddc0:	9a 83       	std	Y+2, r25	; 0x02
   1ddc2:	ab 83       	std	Y+3, r26	; 0x03
   1ddc4:	bc 83       	std	Y+4, r27	; 0x04
    buf.regs_present = false;
   1ddc6:	1d 82       	std	Y+5, r1	; 0x05
    buf.crash_reason = (uint8_t)dump_crash_reason::manual;
   1ddc8:	1e 82       	std	Y+6, r1	; 0x06

    // write sram only
    xfdump_dump_core(buf, DUMP_OFFSET + offsetof(dump_t, data.sram),
   1ddca:	00 e0       	ldi	r16, 0x00	; 0
   1ddcc:	10 e2       	ldi	r17, 0x20	; 32
   1ddce:	20 e0       	ldi	r18, 0x00	; 0
   1ddd0:	32 e0       	ldi	r19, 0x02	; 2
   1ddd2:	40 e0       	ldi	r20, 0x00	; 0
   1ddd4:	53 ed       	ldi	r21, 0xD3	; 211
   1ddd6:	63 e0       	ldi	r22, 0x03	; 3
   1ddd8:	70 e0       	ldi	r23, 0x00	; 0
   1ddda:	ce 01       	movw	r24, r28
   1dddc:	01 96       	adiw	r24, 0x01	; 1
   1ddde:	0e 94 2b ee 	call	0x1dc56	; 0x1dc56 <xfdump_dump_core(dump_header_t&, unsigned long, unsigned char*, unsigned int)>
                     (uint8_t*)RAMSTART, RAMSIZE);
}
   1dde2:	2c 96       	adiw	r28, 0x0c	; 12
   1dde4:	0f b6       	in	r0, 0x3f	; 63
   1dde6:	f8 94       	cli
   1dde8:	de bf       	out	0x3e, r29	; 62
   1ddea:	0f be       	out	0x3f, r0	; 63
   1ddec:	cd bf       	out	0x3d, r28	; 61
   1ddee:	df 91       	pop	r29
   1ddf0:	cf 91       	pop	r28
   1ddf2:	1f 91       	pop	r17
   1ddf4:	0f 91       	pop	r16
   1ddf6:	08 95       	ret

0001ddf8 <xflash_init>:

int xflash_mfrid_devid(void);


int8_t xflash_init(void)
{
   1ddf8:	cf 93       	push	r28
	_CS_HIGH();
   1ddfa:	45 9a       	sbi	0x08, 5	; 8
	SET_OUTPUT(XFLASH_PIN_CS);
   1ddfc:	3d 9a       	sbi	0x07, 5	; 7
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   1ddfe:	8c e5       	ldi	r24, 0x5C	; 92
   1de00:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   1de02:	1d bc       	out	0x2d, r1	; 45
	_CS_HIGH();
}

int xflash_mfrid_devid(void)
{
	_CS_LOW();
   1de04:	45 98       	cbi	0x08, 5	; 8
	_SPI_TX(_CMD_MFRID_DEVID);           // send command 0x90
   1de06:	80 e9       	ldi	r24, 0x90	; 144
   1de08:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	uint8_t cnt = 3;                     // 3 address bytes
	while (cnt--)                        // send address bytes
		_SPI_TX(0x00);
   1de0c:	80 e0       	ldi	r24, 0x00	; 0
   1de0e:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1de12:	80 e0       	ldi	r24, 0x00	; 0
   1de14:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1de18:	80 e0       	ldi	r24, 0x00	; 0
   1de1a:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	uint8_t xflash_mfrid = _SPI_RX();  // receive mfrid
   1de1e:	8f ef       	ldi	r24, 0xFF	; 255
   1de20:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1de24:	c8 2f       	mov	r28, r24
	uint8_t xflash_devid = _SPI_RX();  // receive devid
   1de26:	8f ef       	ldi	r24, 0xFF	; 255
   1de28:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
   1de2c:	98 2f       	mov	r25, r24
	_CS_HIGH();
   1de2e:	45 9a       	sbi	0x08, 5	; 8
	return
		((xflash_mfrid == _MFRID_W25X20CL) && (xflash_devid == _DEVID_W25X20CL)) ||
   1de30:	cf 3e       	cpi	r28, 0xEF	; 239
   1de32:	11 f0       	breq	.+4      	; 0x1de38 <xflash_init+0x40>
   1de34:	c8 3c       	cpi	r28, 0xC8	; 200
   1de36:	19 f4       	brne	.+6      	; 0x1de3e <xflash_init+0x46>
   1de38:	81 e0       	ldi	r24, 0x01	; 1
   1de3a:	91 31       	cpi	r25, 0x11	; 17
   1de3c:	09 f0       	breq	.+2      	; 0x1de40 <xflash_init+0x48>
int8_t xflash_init(void)
{
	_CS_HIGH();
	SET_OUTPUT(XFLASH_PIN_CS);
	XFLASH_SPI_ENTER();
	if (!xflash_mfrid_devid()) return 0;
   1de3e:	80 e0       	ldi	r24, 0x00	; 0
	return 1;
}
   1de40:	cf 91       	pop	r28
   1de42:	08 95       	ret

0001de44 <calibration_status_clear(unsigned char)>:
    status |= components;
    eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_V2, status);
}

void calibration_status_clear(CalibrationStatus components)
{
   1de44:	cf 93       	push	r28
   1de46:	c8 2f       	mov	r28, r24
    CalibrationStatus status = eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V2);
   1de48:	86 ea       	ldi	r24, 0xA6	; 166
   1de4a:	9c e0       	ldi	r25, 0x0C	; 12
   1de4c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    status &= ~components;
   1de50:	c0 95       	com	r28
   1de52:	6c 2f       	mov	r22, r28
   1de54:	68 23       	and	r22, r24
   1de56:	86 ea       	ldi	r24, 0xA6	; 166
   1de58:	9c e0       	ldi	r25, 0x0C	; 12
    eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_V2, status);
}
   1de5a:	cf 91       	pop	r28
   1de5c:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001de60 <lcd_reset_sheet()>:
        }
    }
}

static void lcd_reset_sheet()
{
   1de60:	1f 93       	push	r17
   1de62:	cf 93       	push	r28
   1de64:	df 93       	push	r29
   1de66:	00 d0       	rcall	.+0      	; 0x1de68 <lcd_reset_sheet()+0x8>
   1de68:	00 d0       	rcall	.+0      	; 0x1de6a <lcd_reset_sheet()+0xa>
   1de6a:	1f 92       	push	r1
   1de6c:	1f 92       	push	r1
   1de6e:	cd b7       	in	r28, 0x3d	; 61
   1de70:	de b7       	in	r29, 0x3e	; 62
    SheetName sheetName;
    eeprom_default_sheet_name(selected_sheet, sheetName);
   1de72:	be 01       	movw	r22, r28
   1de74:	6f 5f       	subi	r22, 0xFF	; 255
   1de76:	7f 4f       	sbci	r23, 0xFF	; 255
   1de78:	80 91 e2 03 	lds	r24, 0x03E2	; 0x8003e2 <selected_sheet>
   1de7c:	0e 94 f8 75 	call	0xebf0	; 0xebf0 <eeprom_default_sheet_name(unsigned char, SheetName&)>
	eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[selected_sheet].z_offset)),EEPROM_EMPTY_VALUE16);
   1de80:	80 91 e2 03 	lds	r24, 0x03E2	; 0x8003e2 <selected_sheet>
   1de84:	1b e0       	ldi	r17, 0x0B	; 11
   1de86:	81 9f       	mul	r24, r17
   1de88:	c0 01       	movw	r24, r0
   1de8a:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   1de8c:	6f ef       	ldi	r22, 0xFF	; 255
   1de8e:	7f ef       	ldi	r23, 0xFF	; 255
   1de90:	80 5b       	subi	r24, 0xB0	; 176
   1de92:	92 4f       	sbci	r25, 0xF2	; 242
   1de94:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
	eeprom_update_block_notify(sheetName.c,EEPROM_Sheets_base->s[selected_sheet].name,sizeof(Sheet::name));
   1de98:	60 91 e2 03 	lds	r22, 0x03E2	; 0x8003e2 <selected_sheet>
   1de9c:	61 9f       	mul	r22, r17
   1de9e:	b0 01       	movw	r22, r0
   1dea0:	11 24       	eor	r1, r1
   1dea2:	67 5b       	subi	r22, 0xB7	; 183
   1dea4:	72 4f       	sbci	r23, 0xF2	; 242
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   1dea6:	47 e0       	ldi	r20, 0x07	; 7
   1dea8:	50 e0       	ldi	r21, 0x00	; 0
   1deaa:	ce 01       	movw	r24, r28
   1deac:	01 96       	adiw	r24, 0x01	; 1
   1deae:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
	if (selected_sheet == eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))
   1deb2:	81 ea       	ldi	r24, 0xA1	; 161
   1deb4:	9d e0       	ldi	r25, 0x0D	; 13
   1deb6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1deba:	90 91 e2 03 	lds	r25, 0x03E2	; 0x8003e2 <selected_sheet>
   1debe:	89 13       	cpse	r24, r25
   1dec0:	0a c0       	rjmp	.+20     	; 0x1ded6 <lcd_reset_sheet()+0x76>
	{
        eeprom_switch_to_next_sheet();
   1dec2:	0e 94 ea 75 	call	0xebd4	; 0xebd4 <eeprom_switch_to_next_sheet()>
        if (-1 == eeprom_next_initialized_sheet(0))
   1dec6:	80 e0       	ldi	r24, 0x00	; 0
   1dec8:	0e 94 d6 75 	call	0xebac	; 0xebac <eeprom_next_initialized_sheet(signed char)>
   1decc:	8f 3f       	cpi	r24, 0xFF	; 255
   1dece:	19 f4       	brne	.+6      	; 0x1ded6 <lcd_reset_sheet()+0x76>
            calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
   1ded0:	80 e1       	ldi	r24, 0x10	; 16
   1ded2:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
	}

	menu_back();
   1ded6:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
}
   1deda:	28 96       	adiw	r28, 0x08	; 8
   1dedc:	0f b6       	in	r0, 0x3f	; 63
   1dede:	f8 94       	cli
   1dee0:	de bf       	out	0x3e, r29	; 62
   1dee2:	0f be       	out	0x3f, r0	; 63
   1dee4:	cd bf       	out	0x3d, r28	; 61
   1dee6:	df 91       	pop	r29
   1dee8:	cf 91       	pop	r28
   1deea:	1f 91       	pop	r17
   1deec:	08 95       	ret

0001deee <calibration_status_set(unsigned char)>:
    CalibrationStatus status = eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V2);
    return ((status & components) == components);
}

void calibration_status_set(CalibrationStatus components)
{
   1deee:	cf 93       	push	r28
   1def0:	c8 2f       	mov	r28, r24
    CalibrationStatus status = eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V2);
   1def2:	86 ea       	ldi	r24, 0xA6	; 166
   1def4:	9c e0       	ldi	r25, 0x0C	; 12
   1def6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    status |= components;
   1defa:	68 2f       	mov	r22, r24
   1defc:	6c 2b       	or	r22, r28
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1defe:	86 ea       	ldi	r24, 0xA6	; 166
   1df00:	9c e0       	ldi	r25, 0x0C	; 12
    eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_V2, status);
}
   1df02:	cf 91       	pop	r28
   1df04:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0001df08 <calibration_status_get(unsigned char)>:
    sprintf_P(dest, PSTR("%u.%u.%u.%u"), IP[0], IP[1], IP[2], IP[3]);
}


bool calibration_status_get(CalibrationStatus components)
{
   1df08:	cf 93       	push	r28
   1df0a:	c8 2f       	mov	r28, r24
    CalibrationStatus status = eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V2);
   1df0c:	86 ea       	ldi	r24, 0xA6	; 166
   1df0e:	9c e0       	ldi	r25, 0x0C	; 12
   1df10:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    return ((status & components) == components);
   1df14:	98 2f       	mov	r25, r24
   1df16:	9c 23       	and	r25, r28
   1df18:	81 e0       	ldi	r24, 0x01	; 1
   1df1a:	9c 13       	cpse	r25, r28
   1df1c:	80 e0       	ldi	r24, 0x00	; 0
}
   1df1e:	cf 91       	pop	r28
   1df20:	08 95       	ret

0001df22 <lcd_first_layer_calibration_reset()>:
//! |>Continue           |  MSG_CONTINUE
//! | Reset              |  MSG_RESET
//! ----------------------
//! @endcode
void lcd_first_layer_calibration_reset()
{
   1df22:	af 92       	push	r10
   1df24:	bf 92       	push	r11
   1df26:	cf 92       	push	r12
   1df28:	df 92       	push	r13
   1df2a:	ef 92       	push	r14
   1df2c:	ff 92       	push	r15
   1df2e:	0f 93       	push	r16
   1df30:	1f 93       	push	r17
   1df32:	cf 93       	push	r28
   1df34:	df 93       	push	r29
   1df36:	00 d0       	rcall	.+0      	; 0x1df38 <lcd_first_layer_calibration_reset()+0x16>
   1df38:	00 d0       	rcall	.+0      	; 0x1df3a <lcd_first_layer_calibration_reset()+0x18>
   1df3a:	1f 92       	push	r1
   1df3c:	cd b7       	in	r28, 0x3d	; 61
   1df3e:	de b7       	in	r29, 0x3e	; 62
    } MenuData;
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"_menu_data_t doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if(LCD_CLICKED || !eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))) ||
            (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) ||
   1df40:	80 91 a8 03 	lds	r24, 0x03A8	; 0x8003a8 <lcd_click_trigger>
   1df44:	81 11       	cpse	r24, r1
   1df46:	18 c0       	rjmp	.+48     	; 0x1df78 <lcd_first_layer_calibration_reset()+0x56>
        bool reset;
    } MenuData;
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"_menu_data_t doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if(LCD_CLICKED || !eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))) ||
   1df48:	81 ea       	ldi	r24, 0xA1	; 161
   1df4a:	9d e0       	ldi	r25, 0x0D	; 13
   1df4c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1df50:	18 2f       	mov	r17, r24
   1df52:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   1df56:	88 23       	and	r24, r24
   1df58:	79 f0       	breq	.+30     	; 0x1df78 <lcd_first_layer_calibration_reset()+0x56>
            (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) ||
   1df5a:	80 e1       	ldi	r24, 0x10	; 16
   1df5c:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
        bool reset;
    } MenuData;
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"_menu_data_t doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if(LCD_CLICKED || !eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))) ||
   1df60:	88 23       	and	r24, r24
   1df62:	51 f0       	breq	.+20     	; 0x1df78 <lcd_first_layer_calibration_reset()+0x56>
            (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) ||
            (0 == static_cast<int16_t>(eeprom_read_word(reinterpret_cast<uint16_t*>
            (&EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)))))
   1df64:	2b e0       	ldi	r18, 0x0B	; 11
   1df66:	12 9f       	mul	r17, r18
   1df68:	c0 01       	movw	r24, r0
   1df6a:	11 24       	eor	r1, r1
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"_menu_data_t doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if(LCD_CLICKED || !eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))) ||
            (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) ||
            (0 == static_cast<int16_t>(eeprom_read_word(reinterpret_cast<uint16_t*>
   1df6c:	80 5b       	subi	r24, 0xB0	; 176
   1df6e:	92 4f       	sbci	r25, 0xF2	; 242
   1df70:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    } MenuData;
    static_assert(sizeof(menu_data)>= sizeof(MenuData),"_menu_data_t doesn't fit into menu_data");
    MenuData* menuData = (MenuData*)&(menu_data[0]);

    if(LCD_CLICKED || !eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))) ||
            (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) ||
   1df74:	89 2b       	or	r24, r25
   1df76:	f1 f4       	brne	.+60     	; 0x1dfb4 <lcd_first_layer_calibration_reset()+0x92>
            (0 == static_cast<int16_t>(eeprom_read_word(reinterpret_cast<uint16_t*>
            (&EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)))))
    {
        if (menuData->reset)
   1df78:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   1df7c:	88 23       	and	r24, r24
   1df7e:	71 f0       	breq	.+28     	; 0x1df9c <lcd_first_layer_calibration_reset()+0x7a>
        {
            eeprom_update_word_notify(reinterpret_cast<uint16_t*>(&EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset), 0xffff);
   1df80:	81 ea       	ldi	r24, 0xA1	; 161
   1df82:	9d e0       	ldi	r25, 0x0D	; 13
   1df84:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1df88:	2b e0       	ldi	r18, 0x0B	; 11
   1df8a:	82 9f       	mul	r24, r18
   1df8c:	c0 01       	movw	r24, r0
   1df8e:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   1df90:	6f ef       	ldi	r22, 0xFF	; 255
   1df92:	7f ef       	ldi	r23, 0xFF	; 255
   1df94:	80 5b       	subi	r24, 0xB0	; 176
   1df96:	92 4f       	sbci	r25, 0xF2	; 242
   1df98:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        }

        // If the knob was clicked, don't produce feedback
        // It should only be done when the firmware changes the menu
        // on its own (silently)
        menu_goto(lcd_v2_calibration, 0, true, !lcd_clicked());
   1df9c:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1dfa0:	21 e0       	ldi	r18, 0x01	; 1
   1dfa2:	81 11       	cpse	r24, r1
   1dfa4:	20 e0       	ldi	r18, 0x00	; 0
   1dfa6:	41 e0       	ldi	r20, 0x01	; 1
   1dfa8:	70 e0       	ldi	r23, 0x00	; 0
   1dfaa:	60 e0       	ldi	r22, 0x00	; 0
   1dfac:	8c eb       	ldi	r24, 0xBC	; 188
   1dfae:	95 ee       	ldi	r25, 0xE5	; 229
   1dfb0:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
    }

    if (lcd_encoder) {
   1dfb4:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   1dfb8:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1dfbc:	21 15       	cp	r18, r1
   1dfbe:	31 05       	cpc	r19, r1
   1dfc0:	59 f0       	breq	.+22     	; 0x1dfd8 <lcd_first_layer_calibration_reset()+0xb6>
        menuData->reset = lcd_encoder > 0;
   1dfc2:	81 e0       	ldi	r24, 0x01	; 1
   1dfc4:	12 16       	cp	r1, r18
   1dfc6:	13 06       	cpc	r1, r19
   1dfc8:	0c f0       	brlt	.+2      	; 0x1dfcc <lcd_first_layer_calibration_reset()+0xaa>
   1dfca:	80 e0       	ldi	r24, 0x00	; 0
   1dfcc:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
        lcd_encoder = 0; // Reset
   1dfd0:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   1dfd4:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
    }

    char sheet_name[sizeof(Sheet::name)];
    eeprom_read_block(sheet_name, &EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].name, sizeof(Sheet::name));
   1dfd8:	81 ea       	ldi	r24, 0xA1	; 161
   1dfda:	9d e0       	ldi	r25, 0x0D	; 13
   1dfdc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1dfe0:	1b e0       	ldi	r17, 0x0B	; 11
   1dfe2:	81 9f       	mul	r24, r17
   1dfe4:	b0 01       	movw	r22, r0
   1dfe6:	11 24       	eor	r1, r1
   1dfe8:	67 5b       	subi	r22, 0xB7	; 183
   1dfea:	72 4f       	sbci	r23, 0xF2	; 242
   1dfec:	47 e0       	ldi	r20, 0x07	; 7
   1dfee:	50 e0       	ldi	r21, 0x00	; 0
   1dff0:	ce 01       	movw	r24, r28
   1dff2:	01 96       	adiw	r24, 0x01	; 1
   1dff4:	7c 01       	movw	r14, r24
   1dff6:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    lcd_home();
   1dffa:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    float offset = static_cast<int16_t>(eeprom_read_word(reinterpret_cast<uint16_t*>(&EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)))/cs.axis_steps_per_mm[Z_AXIS];
   1dffe:	81 ea       	ldi	r24, 0xA1	; 161
   1e000:	9d e0       	ldi	r25, 0x0D	; 13
   1e002:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1e006:	81 9f       	mul	r24, r17
   1e008:	c0 01       	movw	r24, r0
   1e00a:	11 24       	eor	r1, r1
   1e00c:	80 5b       	subi	r24, 0xB0	; 176
   1e00e:	92 4f       	sbci	r25, 0xF2	; 242
   1e010:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   1e014:	bc 01       	movw	r22, r24
   1e016:	99 0f       	add	r25, r25
   1e018:	88 0b       	sbc	r24, r24
   1e01a:	99 0b       	sbc	r25, r25
   1e01c:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   1e020:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   1e024:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   1e028:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   1e02c:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   1e030:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   1e034:	d6 2e       	mov	r13, r22
   1e036:	c7 2e       	mov	r12, r23
   1e038:	b8 2e       	mov	r11, r24
   1e03a:	a9 2e       	mov	r10, r25
    lcd_printf_P(_T(MSG_SHEET_OFFSET),
   1e03c:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   1e040:	0e e3       	ldi	r16, 0x3E	; 62
   1e042:	10 e2       	ldi	r17, 0x20	; 32
   1e044:	81 11       	cpse	r24, r1
   1e046:	02 c0       	rjmp	.+4      	; 0x1e04c <lcd_first_layer_calibration_reset()+0x12a>
   1e048:	00 e2       	ldi	r16, 0x20	; 32
   1e04a:	1e e3       	ldi	r17, 0x3E	; 62
   1e04c:	8b e0       	ldi	r24, 0x0B	; 11
   1e04e:	9b e3       	ldi	r25, 0x3B	; 59
   1e050:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e054:	1f 92       	push	r1
   1e056:	0f 93       	push	r16
   1e058:	1f 92       	push	r1
   1e05a:	1f 93       	push	r17
   1e05c:	af 92       	push	r10
   1e05e:	bf 92       	push	r11
   1e060:	cf 92       	push	r12
   1e062:	df 92       	push	r13
   1e064:	ff 92       	push	r15
   1e066:	ef 92       	push	r14
   1e068:	9f 93       	push	r25
   1e06a:	8f 93       	push	r24
   1e06c:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   1e070:	0f b6       	in	r0, 0x3f	; 63
   1e072:	f8 94       	cli
   1e074:	de bf       	out	0x3e, r29	; 62
   1e076:	0f be       	out	0x3f, r0	; 63
   1e078:	cd bf       	out	0x3d, r28	; 61
            sheet_name, offset, menuData->reset ? ' ' : '>', menuData->reset ? '>' : ' ');// \n denotes line break, %.7s is replaced by 7 character long sheet name, %+1.3f is replaced by 6 character long floating point number, %c is replaced by > or white space (one character) based on whether first or second option is selected. % denoted place holders can not be reordered.

}
   1e07a:	27 96       	adiw	r28, 0x07	; 7
   1e07c:	0f b6       	in	r0, 0x3f	; 63
   1e07e:	f8 94       	cli
   1e080:	de bf       	out	0x3e, r29	; 62
   1e082:	0f be       	out	0x3f, r0	; 63
   1e084:	cd bf       	out	0x3d, r28	; 61
   1e086:	df 91       	pop	r29
   1e088:	cf 91       	pop	r28
   1e08a:	1f 91       	pop	r17
   1e08c:	0f 91       	pop	r16
   1e08e:	ff 90       	pop	r15
   1e090:	ef 90       	pop	r14
   1e092:	df 90       	pop	r13
   1e094:	cf 90       	pop	r12
   1e096:	bf 90       	pop	r11
   1e098:	af 90       	pop	r10
   1e09a:	08 95       	ret

0001e09c <activate_calibrate_sheet()>:
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1e09c:	60 91 e2 03 	lds	r22, 0x03E2	; 0x8003e2 <selected_sheet>
   1e0a0:	81 ea       	ldi	r24, 0xA1	; 161
   1e0a2:	9d e0       	ldi	r25, 0x0D	; 13
   1e0a4:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

//! @brief Activate selected_sheet and run first layer calibration
static void activate_calibrate_sheet()
{
    eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), selected_sheet);
    lcd_first_layer_calibration_reset();
   1e0a8:	0c 94 91 ef 	jmp	0x1df22	; 0x1df22 <lcd_first_layer_calibration_reset()>

0001e0ac <parse_version(char const*, unsigned int*)>:
    return false;
}

// Parse a major.minor.revision version number.
// Return true if valid.
bool parse_version(const char *str, uint16_t version[4]) {
   1e0ac:	0f 93       	push	r16
   1e0ae:	1f 93       	push	r17
   1e0b0:	8b 01       	movw	r16, r22
    for(uint8_t i = 0; i < 2; ++i){
        str = Number(str, version + i);
   1e0b2:	0e 94 7f ce 	call	0x19cfe	; 0x19cfe <Number(char const*, unsigned int*)>
        if (*str != '.')
   1e0b6:	fc 01       	movw	r30, r24
   1e0b8:	20 81       	ld	r18, Z
   1e0ba:	2e 32       	cpi	r18, 0x2E	; 46
   1e0bc:	11 f0       	breq	.+4      	; 0x1e0c2 <parse_version(char const*, unsigned int*)+0x16>
            static_assert(sizeof(STR_REVISION_DEV) == 4);
            return Tag( str, STR_REVISION_DEV, sizeof(STR_REVISION_DEV) - 1, FIRMWARE_REVISION_DEV, version + 3);
        case 'R': // expect RC
            static_assert(sizeof(STR_REVISION_RC) == 3);
            return Tag( str, STR_REVISION_RC, sizeof(STR_REVISION_RC) - 1, FIRMWARE_REVISION_RC, version + 3);
        default: return false; // fail everything else
   1e0be:	80 e0       	ldi	r24, 0x00	; 0
   1e0c0:	34 c0       	rjmp	.+104    	; 0x1e12a <parse_version(char const*, unsigned int*)+0x7e>

// Parse a major.minor.revision version number.
// Return true if valid.
bool parse_version(const char *str, uint16_t version[4]) {
    for(uint8_t i = 0; i < 2; ++i){
        str = Number(str, version + i);
   1e0c2:	b8 01       	movw	r22, r16
   1e0c4:	6e 5f       	subi	r22, 0xFE	; 254
   1e0c6:	7f 4f       	sbci	r23, 0xFF	; 255
   1e0c8:	01 96       	adiw	r24, 0x01	; 1
   1e0ca:	0e 94 7f ce 	call	0x19cfe	; 0x19cfe <Number(char const*, unsigned int*)>
        if (*str != '.')
   1e0ce:	fc 01       	movw	r30, r24
   1e0d0:	20 81       	ld	r18, Z
   1e0d2:	2e 32       	cpi	r18, 0x2E	; 46
   1e0d4:	a1 f7       	brne	.-24     	; 0x1e0be <parse_version(char const*, unsigned int*)+0x12>
            return false;
        ++str;
    }
    str = Number(str, version + 2);
   1e0d6:	b8 01       	movw	r22, r16
   1e0d8:	6c 5f       	subi	r22, 0xFC	; 252
   1e0da:	7f 4f       	sbci	r23, 0xFF	; 255
   1e0dc:	01 96       	adiw	r24, 0x01	; 1
   1e0de:	0e 94 7f ce 	call	0x19cfe	; 0x19cfe <Number(char const*, unsigned int*)>

    version[3] = FIRMWARE_REVISION_RELEASED;
   1e0e2:	20 e4       	ldi	r18, 0x40	; 64
   1e0e4:	30 e0       	ldi	r19, 0x00	; 0
   1e0e6:	f8 01       	movw	r30, r16
   1e0e8:	37 83       	std	Z+7, r19	; 0x07
   1e0ea:	26 83       	std	Z+6, r18	; 0x06
   1e0ec:	fc 01       	movw	r30, r24
   1e0ee:	df 01       	movw	r26, r30

    // skip everything else until eol or '-'
    for(;;){
        if(is_whitespace_or_nl_or_eol(*str)){
   1e0f0:	91 91       	ld	r25, Z+
    return c == ' ' || c == '\t' || c == '\n' || c == '\r';
}

inline bool is_whitespace_or_nl_or_eol(char c)
{
    return c == 0 || c == ' ' || c == '\t' || c == '\n' || c == '\r';
   1e0f2:	89 2f       	mov	r24, r25
   1e0f4:	8f 7d       	andi	r24, 0xDF	; 223
   1e0f6:	c1 f1       	breq	.+112    	; 0x1e168 <parse_version(char const*, unsigned int*)+0xbc>
   1e0f8:	87 ef       	ldi	r24, 0xF7	; 247
   1e0fa:	89 0f       	add	r24, r25
   1e0fc:	82 30       	cpi	r24, 0x02	; 2
   1e0fe:	a0 f1       	brcs	.+104    	; 0x1e168 <parse_version(char const*, unsigned int*)+0xbc>
   1e100:	9d 30       	cpi	r25, 0x0D	; 13
   1e102:	91 f1       	breq	.+100    	; 0x1e168 <parse_version(char const*, unsigned int*)+0xbc>
    for(;;){
        if(is_whitespace_or_nl_or_eol(*str)){
            // speculatively reached the end of line, silently ignoring anything which is not a '-'
            return true;
        }
        if( *str == '-'){
   1e104:	9d 32       	cpi	r25, 0x2D	; 45
   1e106:	99 f7       	brne	.-26     	; 0x1e0ee <parse_version(char const*, unsigned int*)+0x42>
//    SERIAL_ECHO('.');
//    SERIAL_ECHO(version[2]);
//    SERIAL_ECHO('.');
//    SERIAL_ECHOLN(version[3]);
    if (*str++ == '-') {
        switch(*str){
   1e108:	11 96       	adiw	r26, 0x01	; 1
   1e10a:	9c 91       	ld	r25, X
   1e10c:	92 34       	cpi	r25, 0x42	; 66
   1e10e:	e1 f0       	breq	.+56     	; 0x1e148 <parse_version(char const*, unsigned int*)+0x9c>
   1e110:	7c f4       	brge	.+30     	; 0x1e130 <parse_version(char const*, unsigned int*)+0x84>
   1e112:	91 34       	cpi	r25, 0x41	; 65
   1e114:	a1 f6       	brne	.-88     	; 0x1e0be <parse_version(char const*, unsigned int*)+0x12>
        case 'A': // expect ALPHA
            static_assert(sizeof(STR_REVISION_ALPHA) == 6);
            return Tag( str, STR_REVISION_ALPHA, sizeof(STR_REVISION_ALPHA) - 1, FIRMWARE_REVISION_ALPHA, version + 3);
   1e116:	0a 5f       	subi	r16, 0xFA	; 250
   1e118:	1f 4f       	sbci	r17, 0xFF	; 255
   1e11a:	28 e0       	ldi	r18, 0x08	; 8
   1e11c:	30 e0       	ldi	r19, 0x00	; 0
   1e11e:	45 e0       	ldi	r20, 0x05	; 5
   1e120:	69 e0       	ldi	r22, 0x09	; 9
   1e122:	7b e8       	ldi	r23, 0x8B	; 139
        case 'D': // expect DEV
            static_assert(sizeof(STR_REVISION_DEV) == 4);
            return Tag( str, STR_REVISION_DEV, sizeof(STR_REVISION_DEV) - 1, FIRMWARE_REVISION_DEV, version + 3);
        case 'R': // expect RC
            static_assert(sizeof(STR_REVISION_RC) == 3);
            return Tag( str, STR_REVISION_RC, sizeof(STR_REVISION_RC) - 1, FIRMWARE_REVISION_RC, version + 3);
   1e124:	cf 01       	movw	r24, r30
   1e126:	0e 94 ec cf 	call	0x19fd8	; 0x19fd8 <Tag(char const*, char const*, unsigned char, unsigned int, unsigned int*)>
//    SERIAL_ECHO('.');
//    SERIAL_ECHO(version[2]);
//    SERIAL_ECHO('.');
//    SERIAL_ECHOLN(version[3]);
    return false;
}
   1e12a:	1f 91       	pop	r17
   1e12c:	0f 91       	pop	r16
   1e12e:	08 95       	ret
//    SERIAL_ECHO('.');
//    SERIAL_ECHO(version[2]);
//    SERIAL_ECHO('.');
//    SERIAL_ECHOLN(version[3]);
    if (*str++ == '-') {
        switch(*str){
   1e130:	94 34       	cpi	r25, 0x44	; 68
   1e132:	91 f0       	breq	.+36     	; 0x1e158 <parse_version(char const*, unsigned int*)+0xac>
   1e134:	92 35       	cpi	r25, 0x52	; 82
   1e136:	19 f6       	brne	.-122    	; 0x1e0be <parse_version(char const*, unsigned int*)+0x12>
        case 'D': // expect DEV
            static_assert(sizeof(STR_REVISION_DEV) == 4);
            return Tag( str, STR_REVISION_DEV, sizeof(STR_REVISION_DEV) - 1, FIRMWARE_REVISION_DEV, version + 3);
        case 'R': // expect RC
            static_assert(sizeof(STR_REVISION_RC) == 3);
            return Tag( str, STR_REVISION_RC, sizeof(STR_REVISION_RC) - 1, FIRMWARE_REVISION_RC, version + 3);
   1e138:	0a 5f       	subi	r16, 0xFA	; 250
   1e13a:	1f 4f       	sbci	r17, 0xFF	; 255
   1e13c:	20 e2       	ldi	r18, 0x20	; 32
   1e13e:	30 e0       	ldi	r19, 0x00	; 0
   1e140:	42 e0       	ldi	r20, 0x02	; 2
   1e142:	6d ef       	ldi	r22, 0xFD	; 253
   1e144:	7a e8       	ldi	r23, 0x8A	; 138
   1e146:	ee cf       	rjmp	.-36     	; 0x1e124 <parse_version(char const*, unsigned int*)+0x78>
        case 'A': // expect ALPHA
            static_assert(sizeof(STR_REVISION_ALPHA) == 6);
            return Tag( str, STR_REVISION_ALPHA, sizeof(STR_REVISION_ALPHA) - 1, FIRMWARE_REVISION_ALPHA, version + 3);
        case 'B': // expect BETA
            static_assert(sizeof(STR_REVISION_BETA) == 5);
            return Tag( str, STR_REVISION_BETA, sizeof(STR_REVISION_BETA) - 1, FIRMWARE_REVISION_BETA, version + 3);
   1e148:	0a 5f       	subi	r16, 0xFA	; 250
   1e14a:	1f 4f       	sbci	r17, 0xFF	; 255
   1e14c:	20 e1       	ldi	r18, 0x10	; 16
   1e14e:	30 e0       	ldi	r19, 0x00	; 0
   1e150:	44 e0       	ldi	r20, 0x04	; 4
   1e152:	64 e0       	ldi	r22, 0x04	; 4
   1e154:	7b e8       	ldi	r23, 0x8B	; 139
   1e156:	e6 cf       	rjmp	.-52     	; 0x1e124 <parse_version(char const*, unsigned int*)+0x78>
        case 'D': // expect DEV
            static_assert(sizeof(STR_REVISION_DEV) == 4);
            return Tag( str, STR_REVISION_DEV, sizeof(STR_REVISION_DEV) - 1, FIRMWARE_REVISION_DEV, version + 3);
   1e158:	0a 5f       	subi	r16, 0xFA	; 250
   1e15a:	1f 4f       	sbci	r17, 0xFF	; 255
   1e15c:	30 e0       	ldi	r19, 0x00	; 0
   1e15e:	20 e0       	ldi	r18, 0x00	; 0
   1e160:	43 e0       	ldi	r20, 0x03	; 3
   1e162:	60 e0       	ldi	r22, 0x00	; 0
   1e164:	7b e8       	ldi	r23, 0x8B	; 139
   1e166:	de cf       	rjmp	.-68     	; 0x1e124 <parse_version(char const*, unsigned int*)+0x78>

    // skip everything else until eol or '-'
    for(;;){
        if(is_whitespace_or_nl_or_eol(*str)){
            // speculatively reached the end of line, silently ignoring anything which is not a '-'
            return true;
   1e168:	81 e0       	ldi	r24, 0x01	; 1
   1e16a:	df cf       	rjmp	.-66     	; 0x1e12a <parse_version(char const*, unsigned int*)+0x7e>

0001e16c <UserECoolEnabled()>:
/// (which would be obviously too late for an improperly sized motor)
/// For farm printing, the cooler E-motor is enabled by default.
bool UserECoolEnabled(){
    // We enable E-cool mode for non-farm prints IFF the experimental menu is visible AND the EEPROM_ECOOL variable has
    // a value of the universal answer to all problems of the universe
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
   1e16c:	84 e0       	ldi	r24, 0x04	; 4
   1e16e:	9d e0       	ldi	r25, 0x0D	; 13
   1e170:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
   1e174:	8a 32       	cpi	r24, 0x2A	; 42
   1e176:	39 f4       	brne	.+14     	; 0x1e186 <UserECoolEnabled()+0x1a>
   1e178:	8a e2       	ldi	r24, 0x2A	; 42
   1e17a:	9d e0       	ldi	r25, 0x0D	; 13
   1e17c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1e180:	91 e0       	ldi	r25, 0x01	; 1
   1e182:	81 30       	cpi	r24, 0x01	; 1
   1e184:	09 f0       	breq	.+2      	; 0x1e188 <UserECoolEnabled()+0x1c>
   1e186:	90 e0       	ldi	r25, 0x00	; 0
}
   1e188:	89 2f       	mov	r24, r25
   1e18a:	08 95       	ret

0001e18c <lcd_experimental_menu()>:
}
#endif //PRUSA_SN_SUPPORT

void lcd_experimental_menu()
{
    MENU_BEGIN();
   1e18c:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1e190:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1e194:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e198:	84 30       	cpi	r24, 0x04	; 4
   1e19a:	70 f5       	brcc	.+92     	; 0x1e1f8 <lcd_experimental_menu()+0x6c>
   1e19c:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    MENU_ITEM_BACK_P(_T(MSG_BACK));
   1e1a0:	8f e4       	ldi	r24, 0x4F	; 79
   1e1a2:	99 e4       	ldi	r25, 0x49	; 73
   1e1a4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e1a8:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
#ifdef EXTRUDER_ALTFAN_DETECT
    MENU_ITEM_TOGGLE_P(_N("ALTFAN det."), altfanOverride_get()?_T(MSG_OFF):_T(MSG_ON), altfanOverride_toggle);////MSG_MENU_ALTFAN c=18
#endif //EXTRUDER_ALTFAN_DETECT

#ifdef TMC2130
    MENU_ITEM_TOGGLE_P(_N("E-cool mode"), UserECoolEnabled()?_T(MSG_ON):_T(MSG_OFF), UserECool_toggle);////MSG_MENU_ECOOL c=18
   1e1ac:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   1e1b0:	88 23       	and	r24, r24
   1e1b2:	f9 f0       	breq	.+62     	; 0x1e1f2 <lcd_experimental_menu()+0x66>
   1e1b4:	87 e1       	ldi	r24, 0x17	; 23
   1e1b6:	9c e5       	ldi	r25, 0x5C	; 92
   1e1b8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e1bc:	22 e0       	ldi	r18, 0x02	; 2
   1e1be:	4d ef       	ldi	r20, 0xFD	; 253
   1e1c0:	50 ef       	ldi	r21, 0xF0	; 240
   1e1c2:	bc 01       	movw	r22, r24
   1e1c4:	88 e1       	ldi	r24, 0x18	; 24
   1e1c6:	9b e6       	ldi	r25, 0x6B	; 107
   1e1c8:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
#ifdef DEBUG_PULLUP_CRASH
    MENU_ITEM_FUNCTION_P(_N("Test Pullup Crash"), TestPullupCrash);
#endif // DEBUG_PULLUP_CRASH

#ifdef PRUSA_SN_SUPPORT
    MENU_ITEM_FUNCTION_P(_N("Fake serial number"), WorkaroundPrusaSN);////MSG_WORKAROUND_PRUSA_SN c=18
   1e1cc:	62 e2       	ldi	r22, 0x22	; 34
   1e1ce:	70 ed       	ldi	r23, 0xD0	; 208
   1e1d0:	85 e0       	ldi	r24, 0x05	; 5
   1e1d2:	9b e6       	ldi	r25, 0x6B	; 107
   1e1d4:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
#endif //PRUSA_SN_SUPPORT
    MENU_END();
   1e1d8:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
}
#endif //PRUSA_SN_SUPPORT

void lcd_experimental_menu()
{
    MENU_BEGIN();
   1e1dc:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e1e0:	8f 5f       	subi	r24, 0xFF	; 255
   1e1e2:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1e1e6:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1e1ea:	8f 5f       	subi	r24, 0xFF	; 255
   1e1ec:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1e1f0:	d1 cf       	rjmp	.-94     	; 0x1e194 <lcd_experimental_menu()+0x8>
#ifdef EXTRUDER_ALTFAN_DETECT
    MENU_ITEM_TOGGLE_P(_N("ALTFAN det."), altfanOverride_get()?_T(MSG_OFF):_T(MSG_ON), altfanOverride_toggle);////MSG_MENU_ALTFAN c=18
#endif //EXTRUDER_ALTFAN_DETECT

#ifdef TMC2130
    MENU_ITEM_TOGGLE_P(_N("E-cool mode"), UserECoolEnabled()?_T(MSG_ON):_T(MSG_OFF), UserECool_toggle);////MSG_MENU_ECOOL c=18
   1e1f2:	81 e1       	ldi	r24, 0x11	; 17
   1e1f4:	9c e5       	ldi	r25, 0x5C	; 92
   1e1f6:	e0 cf       	rjmp	.-64     	; 0x1e1b8 <lcd_experimental_menu()+0x2c>

#ifdef PRUSA_SN_SUPPORT
    MENU_ITEM_FUNCTION_P(_N("Fake serial number"), WorkaroundPrusaSN);////MSG_WORKAROUND_PRUSA_SN c=18
#endif //PRUSA_SN_SUPPORT
    MENU_END();
}
   1e1f8:	08 95       	ret

0001e1fa <UserECool_toggle()>:
	prusa_statistics_update_from_lcd_update();
	if (lcd_commands_type == LcdCommands::Layer1Cal) lcd_commands();
}

#ifdef TMC2130
void UserECool_toggle(){
   1e1fa:	cf 93       	push	r28
    // this is only called when the experimental menu is visible, thus the first condition for enabling of the ECool mode is met in this place
    // The condition is intentionally inverted as we are toggling the state (i.e. if it was enabled, we are disabling the feature and vice versa)
    bool enable = ! UserECoolEnabled();
   1e1fc:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   1e200:	c1 e0       	ldi	r28, 0x01	; 1
   1e202:	c8 27       	eor	r28, r24

    eeprom_update_byte_notify((uint8_t *)EEPROM_ECOOL_ENABLE, enable ? EEPROM_ECOOL_MAGIC_NUMBER : EEPROM_EMPTY_VALUE);
   1e204:	6f ef       	ldi	r22, 0xFF	; 255
   1e206:	09 f0       	breq	.+2      	; 0x1e20a <UserECool_toggle()+0x10>
   1e208:	6a e2       	ldi	r22, 0x2A	; 42
   1e20a:	84 e0       	ldi	r24, 0x04	; 4
   1e20c:	9d e0       	ldi	r25, 0x0D	; 13
   1e20e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        1
#else
        0
#endif
        )
        , enableECool(enableECool) { }
   1e212:	8c 2f       	mov	r24, r28
   1e214:	88 0f       	add	r24, r24

    // @@TODO I don't like this - disabling the experimental menu shall disable ECool mode, but it will not reinit the TMC
    // and I don't want to add more code for this experimental feature ... ideally do not reinit the TMC here at all and let the user reset the printer.
    tmc2130_init(TMCInitParams(enable));
   1e216:	82 70       	andi	r24, 0x02	; 2
}
   1e218:	cf 91       	pop	r28

    eeprom_update_byte_notify((uint8_t *)EEPROM_ECOOL_ENABLE, enable ? EEPROM_ECOOL_MAGIC_NUMBER : EEPROM_EMPTY_VALUE);

    // @@TODO I don't like this - disabling the experimental menu shall disable ECool mode, but it will not reinit the TMC
    // and I don't want to add more code for this experimental feature ... ideally do not reinit the TMC here at all and let the user reset the printer.
    tmc2130_init(TMCInitParams(enable));
   1e21a:	0d 94 6c 27 	jmp	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>

0001e21e <lcd_silent_mode_set()>:
    eeprom_toggle((uint8_t*)EEPROM_MMU_STEALTH);
}
#endif //MMU_FORCE_STEALTH_MODE

static void lcd_silent_mode_set() {
	switch (SilentModeMenu) {
   1e21e:	80 91 a4 03 	lds	r24, 0x03A4	; 0x8003a4 <SilentModeMenu>
   1e222:	81 11       	cpse	r24, r1
   1e224:	3c c0       	rjmp	.+120    	; 0x1e29e <lcd_silent_mode_set()+0x80>
#ifdef TMC2130
	case SILENT_MODE_NORMAL: SilentModeMenu = SILENT_MODE_STEALTH; break;
   1e226:	81 e0       	ldi	r24, 0x01	; 1
   1e228:	80 93 a4 03 	sts	0x03A4, r24	; 0x8003a4 <SilentModeMenu>
   1e22c:	60 91 a4 03 	lds	r22, 0x03A4	; 0x8003a4 <SilentModeMenu>
   1e230:	8f ef       	ldi	r24, 0xFF	; 255
   1e232:	9f e0       	ldi	r25, 0x0F	; 15
   1e234:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   1e238:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   1e23c:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
	default: SilentModeMenu = SILENT_MODE_POWER; break; // (probably) not needed
#endif //TMC2130
	}
  eeprom_update_byte_notify((unsigned char *)EEPROM_SILENT, SilentModeMenu);
#ifdef TMC2130
  if (blocks_queued())
   1e240:	98 17       	cp	r25, r24
   1e242:	41 f0       	breq	.+16     	; 0x1e254 <lcd_silent_mode_set()+0x36>
  {
      lcd_display_message_fullscreen_P(_T(MSG_MODE_CHANGE_IN_PROGRESS));
   1e244:	83 ec       	ldi	r24, 0xC3	; 195
   1e246:	9a e3       	ldi	r25, 0x3A	; 58
   1e248:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e24c:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
      // Wait until the planner queue is drained and the stepper routine achieves
      // an idle state.
      st_synchronize();
   1e250:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
  }
  tmc2130_wait_standstill_xy(1000);
   1e254:	0f 94 57 88 	call	0x310ae	; 0x310ae <tmc2130_wait_standstill_xy(int) [clone .constprop.139]>
  cli();
   1e258:	f8 94       	cli
  tmc2130_mode = (SilentModeMenu != SILENT_MODE_NORMAL)?TMC2130_MODE_SILENT:TMC2130_MODE_NORMAL;
   1e25a:	81 e0       	ldi	r24, 0x01	; 1
   1e25c:	90 91 a4 03 	lds	r25, 0x03A4	; 0x8003a4 <SilentModeMenu>
   1e260:	91 11       	cpse	r25, r1
   1e262:	01 c0       	rjmp	.+2      	; 0x1e266 <lcd_silent_mode_set()+0x48>
   1e264:	80 e0       	ldi	r24, 0x00	; 0
   1e266:	80 93 8c 06 	sts	0x068C, r24	; 0x80068c <tmc2130_mode>
  update_mode_profile();
   1e26a:	0f 94 e3 64 	call	0x2c9c6	; 0x2c9c6 <update_mode_profile()>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
   1e26e:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>

struct TMCInitParams {
    uint8_t bSuppressFlag : 1; // only relevant on MK3S with PSU_Delta
    uint8_t enableECool : 1;  // experimental support for E-motor cooler operation
    inline TMCInitParams():bSuppressFlag(0), enableECool(0) { }
    inline explicit TMCInitParams(bool bSuppressFlag, bool enableECool):bSuppressFlag(bSuppressFlag), enableECool(enableECool) { }
   1e272:	88 0f       	add	r24, r24
  }
  tmc2130_wait_standstill_xy(1000);
  cli();
  tmc2130_mode = (SilentModeMenu != SILENT_MODE_NORMAL)?TMC2130_MODE_SILENT:TMC2130_MODE_NORMAL;
  update_mode_profile();
  tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
   1e274:	82 70       	andi	r24, 0x02	; 2
   1e276:	0f 94 6c 27 	call	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>
  // We may have missed a stepper timer interrupt due to the time spent in tmc2130_init.
  // Be safe than sorry, reset the stepper timer before re-enabling interrupts.
  st_reset_timer();
   1e27a:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
  sei();
   1e27e:	78 94       	sei
#else
    st_current_init();
#endif //TMC2130

#ifdef TMC2130
  if (eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET) && (SilentModeMenu != SILENT_MODE_NORMAL))
   1e280:	89 e6       	ldi	r24, 0x69	; 105
   1e282:	9f e0       	ldi	r25, 0x0F	; 15
   1e284:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1e288:	88 23       	and	r24, r24
   1e28a:	61 f0       	breq	.+24     	; 0x1e2a4 <lcd_silent_mode_set()+0x86>
   1e28c:	80 91 a4 03 	lds	r24, 0x03A4	; 0x8003a4 <SilentModeMenu>
   1e290:	88 23       	and	r24, r24
   1e292:	41 f0       	breq	.+16     	; 0x1e2a4 <lcd_silent_mode_set()+0x86>
	  menu_submenu(lcd_crash_mode_info2);
   1e294:	60 e0       	ldi	r22, 0x00	; 0
   1e296:	85 e2       	ldi	r24, 0x25	; 37
   1e298:	90 ee       	ldi	r25, 0xE0	; 224
   1e29a:	0d 94 42 d3 	jmp	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>

static void lcd_silent_mode_set() {
	switch (SilentModeMenu) {
#ifdef TMC2130
	case SILENT_MODE_NORMAL: SilentModeMenu = SILENT_MODE_STEALTH; break;
	case SILENT_MODE_STEALTH: SilentModeMenu = SILENT_MODE_NORMAL; break;
   1e29e:	10 92 a4 03 	sts	0x03A4, r1	; 0x8003a4 <SilentModeMenu>
   1e2a2:	c4 cf       	rjmp	.-120    	; 0x1e22c <lcd_silent_mode_set()+0xe>

#ifdef TMC2130
  if (eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET) && (SilentModeMenu != SILENT_MODE_NORMAL))
	  menu_submenu(lcd_crash_mode_info2);
#endif //TMC2130
}
   1e2a4:	08 95       	ret

0001e2a6 <lcd_settings_linearity_correction_menu()>:
	lcd_update(2);
}

#ifdef TMC2130
void lcd_settings_linearity_correction_menu(void)
{
   1e2a6:	df 92       	push	r13
   1e2a8:	ef 92       	push	r14
   1e2aa:	ff 92       	push	r15
   1e2ac:	0f 93       	push	r16
   1e2ae:	1f 93       	push	r17
   1e2b0:	cf 93       	push	r28
   1e2b2:	df 93       	push	r29
	MENU_BEGIN();
   1e2b4:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1e2b8:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   1e2bc:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e2c0:	84 30       	cpi	r24, 0x04	; 4
   1e2c2:	08 f0       	brcs	.+2      	; 0x1e2c6 <lcd_settings_linearity_correction_menu()+0x20>
   1e2c4:	66 c0       	rjmp	.+204    	; 0x1e392 <lcd_settings_linearity_correction_menu()+0xec>
   1e2c6:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    ON_MENU_LEAVE(
   1e2ca:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   1e2ce:	88 23       	and	r24, r24
   1e2d0:	e9 f0       	breq	.+58     	; 0x1e30c <lcd_settings_linearity_correction_menu()+0x66>
   1e2d2:	09 ef       	ldi	r16, 0xF9	; 249
   1e2d4:	14 e0       	ldi	r17, 0x04	; 4
   1e2d6:	c7 ef       	ldi	r28, 0xF7	; 247
   1e2d8:	de e0       	ldi	r29, 0x0E	; 14

#ifdef TMC2130
static void lcd_settings_linearity_correction_menu_save() {
    for (uint8_t axis = 0; axis < NUM_AXIS; axis++) {

        if (tmc2130_wave_fac[axis] < TMC2130_WAVE_FAC1000_MIN) {
   1e2da:	f8 01       	movw	r30, r16
   1e2dc:	80 81       	ld	r24, Z
   1e2de:	8e 31       	cpi	r24, 0x1E	; 30
   1e2e0:	08 f4       	brcc	.+2      	; 0x1e2e4 <lcd_settings_linearity_correction_menu()+0x3e>
            tmc2130_wave_fac[axis] = 0;
   1e2e2:	10 82       	st	Z, r1
   1e2e4:	f8 01       	movw	r30, r16
   1e2e6:	61 91       	ld	r22, Z+
   1e2e8:	8f 01       	movw	r16, r30
   1e2ea:	ce 01       	movw	r24, r28
   1e2ec:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1e2f0:	21 97       	sbiw	r28, 0x01	; 1
	MENU_END();
}

#ifdef TMC2130
static void lcd_settings_linearity_correction_menu_save() {
    for (uint8_t axis = 0; axis < NUM_AXIS; axis++) {
   1e2f2:	c3 3f       	cpi	r28, 0xF3	; 243
   1e2f4:	fe e0       	ldi	r31, 0x0E	; 14
   1e2f6:	df 07       	cpc	r29, r31
   1e2f8:	81 f7       	brne	.-32     	; 0x1e2da <lcd_settings_linearity_correction_menu()+0x34>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
   1e2fa:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   1e2fe:	e8 94       	clt
   1e300:	d0 f8       	bld	r13, 0
   1e302:	80 fb       	bst	r24, 0
   1e304:	d1 f8       	bld	r13, 1

        eeprom_update_byte_notify((uint8_t*)EEPROM_TMC2130_WAVE_X_FAC - axis, tmc2130_wave_fac[axis]);
    }

    // Re-init the TMC2130 driver to apply changes, if any
    tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
   1e306:	8d 2d       	mov	r24, r13
   1e308:	0f 94 6c 27 	call	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>
{
	MENU_BEGIN();
    ON_MENU_LEAVE(
        lcd_settings_linearity_correction_menu_save();
    );
	MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
   1e30c:	8a ee       	ldi	r24, 0xEA	; 234
   1e30e:	97 e4       	ldi	r25, 0x47	; 71
   1e310:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e314:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
#ifdef TMC2130_LINEARITY_CORRECTION_XYZ
	MENU_ITEM_EDIT_int3_P(_T(MSG_X_CORRECTION), &tmc2130_wave_fac[X_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
   1e318:	80 e1       	ldi	r24, 0x10	; 16
   1e31a:	93 e4       	ldi	r25, 0x43	; 67
   1e31c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e320:	f1 2c       	mov	r15, r1
   1e322:	e1 2c       	mov	r14, r1
   1e324:	08 ec       	ldi	r16, 0xC8	; 200
   1e326:	10 e0       	ldi	r17, 0x00	; 0
   1e328:	2d e1       	ldi	r18, 0x1D	; 29
   1e32a:	30 e0       	ldi	r19, 0x00	; 0
   1e32c:	48 e0       	ldi	r20, 0x08	; 8
   1e32e:	69 ef       	ldi	r22, 0xF9	; 249
   1e330:	74 e0       	ldi	r23, 0x04	; 4
   1e332:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
	MENU_ITEM_EDIT_int3_P(_T(MSG_Y_CORRECTION), &tmc2130_wave_fac[Y_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
   1e336:	84 e0       	ldi	r24, 0x04	; 4
   1e338:	93 e4       	ldi	r25, 0x43	; 67
   1e33a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e33e:	2d e1       	ldi	r18, 0x1D	; 29
   1e340:	30 e0       	ldi	r19, 0x00	; 0
   1e342:	48 e0       	ldi	r20, 0x08	; 8
   1e344:	6a ef       	ldi	r22, 0xFA	; 250
   1e346:	74 e0       	ldi	r23, 0x04	; 4
   1e348:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
	MENU_ITEM_EDIT_int3_P(_T(MSG_Z_CORRECTION), &tmc2130_wave_fac[Z_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
   1e34c:	88 ef       	ldi	r24, 0xF8	; 248
   1e34e:	92 e4       	ldi	r25, 0x42	; 66
   1e350:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e354:	2d e1       	ldi	r18, 0x1D	; 29
   1e356:	30 e0       	ldi	r19, 0x00	; 0
   1e358:	48 e0       	ldi	r20, 0x08	; 8
   1e35a:	6b ef       	ldi	r22, 0xFB	; 251
   1e35c:	74 e0       	ldi	r23, 0x04	; 4
   1e35e:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
#endif //TMC2130_LINEARITY_CORRECTION_XYZ
	MENU_ITEM_EDIT_int3_P(_T(MSG_EXTRUDER_CORRECTION), &tmc2130_wave_fac[E_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
   1e362:	8c ee       	ldi	r24, 0xEC	; 236
   1e364:	92 e4       	ldi	r25, 0x42	; 66
   1e366:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e36a:	2d e1       	ldi	r18, 0x1D	; 29
   1e36c:	30 e0       	ldi	r19, 0x00	; 0
   1e36e:	48 e0       	ldi	r20, 0x08	; 8
   1e370:	6c ef       	ldi	r22, 0xFC	; 252
   1e372:	74 e0       	ldi	r23, 0x04	; 4
   1e374:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
	MENU_END();
   1e378:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
}

#ifdef TMC2130
void lcd_settings_linearity_correction_menu(void)
{
	MENU_BEGIN();
   1e37c:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e380:	8f 5f       	subi	r24, 0xFF	; 255
   1e382:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1e386:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1e38a:	8f 5f       	subi	r24, 0xFF	; 255
   1e38c:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1e390:	95 cf       	rjmp	.-214    	; 0x1e2bc <lcd_settings_linearity_correction_menu()+0x16>
	MENU_ITEM_EDIT_int3_P(_T(MSG_Y_CORRECTION), &tmc2130_wave_fac[Y_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
	MENU_ITEM_EDIT_int3_P(_T(MSG_Z_CORRECTION), &tmc2130_wave_fac[Z_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
#endif //TMC2130_LINEARITY_CORRECTION_XYZ
	MENU_ITEM_EDIT_int3_P(_T(MSG_EXTRUDER_CORRECTION), &tmc2130_wave_fac[E_AXIS], TMC2130_WAVE_FAC1000_MIN-TMC2130_WAVE_FAC1000_STP, TMC2130_WAVE_FAC1000_MAX);
	MENU_END();
}
   1e392:	df 91       	pop	r29
   1e394:	cf 91       	pop	r28
   1e396:	1f 91       	pop	r17
   1e398:	0f 91       	pop	r16
   1e39a:	ff 90       	pop	r15
   1e39c:	ef 90       	pop	r14
   1e39e:	df 90       	pop	r13
   1e3a0:	08 95       	ret

0001e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>:
}

static void lcd_updatestatus(const char *message, bool progmem = false)
{
    if (progmem)
        strncpy_P(lcd_status_message, message, LCD_WIDTH);
   1e3a2:	44 e1       	ldi	r20, 0x14	; 20
   1e3a4:	50 e0       	ldi	r21, 0x00	; 0
    return false;
}

static void lcd_updatestatus(const char *message, bool progmem = false)
{
    if (progmem)
   1e3a6:	66 23       	and	r22, r22
   1e3a8:	89 f0       	breq	.+34     	; 0x1e3cc <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]+0x2a>
        strncpy_P(lcd_status_message, message, LCD_WIDTH);
   1e3aa:	bc 01       	movw	r22, r24
   1e3ac:	8f e1       	ldi	r24, 0x1F	; 31
   1e3ae:	95 e0       	ldi	r25, 0x05	; 5
   1e3b0:	0f 94 48 da 	call	0x3b490	; 0x3b490 <strncpy_P>
    else
        strncpy(lcd_status_message, message, LCD_WIDTH);

    lcd_status_message[LCD_WIDTH] = 0;
   1e3b4:	10 92 33 05 	sts	0x0533, r1	; 0x800533 <_ZL18lcd_status_message.lto_priv.455+0x14>
    lcd_status_message_idx = 0; // Print message from beginning
   1e3b8:	10 92 1e 05 	sts	0x051E, r1	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>

    SERIAL_PROTOCOLLNRPGM(MSG_LCD_STATUS_CHANGED);
   1e3bc:	81 ee       	ldi	r24, 0xE1	; 225
   1e3be:	9a e6       	ldi	r25, 0x6A	; 106
   1e3c0:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    // hack lcd_draw_update to 1, i.e. without clear
    lcd_draw_update = 1;
   1e3c4:	81 e0       	ldi	r24, 0x01	; 1
   1e3c6:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
}
   1e3ca:	08 95       	ret
static void lcd_updatestatus(const char *message, bool progmem = false)
{
    if (progmem)
        strncpy_P(lcd_status_message, message, LCD_WIDTH);
    else
        strncpy(lcd_status_message, message, LCD_WIDTH);
   1e3cc:	bc 01       	movw	r22, r24
   1e3ce:	8f e1       	ldi	r24, 0x1F	; 31
   1e3d0:	95 e0       	ldi	r25, 0x05	; 5
   1e3d2:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
   1e3d6:	ee cf       	rjmp	.-36     	; 0x1e3b4 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]+0x12>

0001e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>:
}

static bool lcd_message_check(uint8_t priority)
{
    // regular priority check
    if (priority >= lcd_status_message_level)
   1e3d8:	90 91 d5 03 	lds	r25, 0x03D5	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
   1e3dc:	89 17       	cp	r24, r25
   1e3de:	80 f4       	brcc	.+32     	; 0x1e400 <lcd_message_check(unsigned char) [clone .lto_priv.486]+0x28>
        return true;

    // check if we can override an info message yet
    if (lcd_status_message_level == LCD_STATUS_INFO) {
   1e3e0:	91 30       	cpi	r25, 0x01	; 1
   1e3e2:	61 f4       	brne	.+24     	; 0x1e3fc <lcd_message_check(unsigned char) [clone .lto_priv.486]+0x24>
}

template<typename T>
bool Timer<T>::expired_cont(T msPeriod)
{
    return !m_isRunning || expired(msPeriod);
   1e3e4:	80 91 34 05 	lds	r24, 0x0534	; 0x800534 <_ZL26lcd_status_message_timeout.lto_priv.454>
   1e3e8:	88 23       	and	r24, r24
   1e3ea:	51 f0       	breq	.+20     	; 0x1e400 <lcd_message_check(unsigned char) [clone .lto_priv.486]+0x28>
   1e3ec:	40 e2       	ldi	r20, 0x20	; 32
   1e3ee:	5e e4       	ldi	r21, 0x4E	; 78
   1e3f0:	60 e0       	ldi	r22, 0x00	; 0
   1e3f2:	70 e0       	ldi	r23, 0x00	; 0
   1e3f4:	84 e3       	ldi	r24, 0x34	; 52
   1e3f6:	95 e0       	ldi	r25, 0x05	; 5
   1e3f8:	0d 94 3c 2b 	jmp	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
        return lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT);
    }

    return false;
   1e3fc:	80 e0       	ldi	r24, 0x00	; 0
   1e3fe:	08 95       	ret

static bool lcd_message_check(uint8_t priority)
{
    // regular priority check
    if (priority >= lcd_status_message_level)
        return true;
   1e400:	81 e0       	ldi	r24, 0x01	; 1
    if (lcd_status_message_level == LCD_STATUS_INFO) {
        return lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT);
    }

    return false;
}
   1e402:	08 95       	ret

0001e404 <lcd_setalertstatuspgm(char const*, unsigned char)>:
{
    lcd_setalertstatus_(message, severity, false);
}

void lcd_setalertstatuspgm(const char* message, uint8_t severity)
{
   1e404:	ef 92       	push	r14
   1e406:	ff 92       	push	r15
   1e408:	1f 93       	push	r17
   1e40a:	cf 93       	push	r28
   1e40c:	df 93       	push	r29
   1e40e:	ec 01       	movw	r28, r24
   1e410:	16 2f       	mov	r17, r22
    lcd_status_message_timeout.start();
}

void lcd_setalertstatus_(const char* message, uint8_t severity, bool progmem)
{
    if (lcd_message_check(severity)) {
   1e412:	86 2f       	mov	r24, r22
   1e414:	0e 94 ec f1 	call	0x1e3d8	; 0x1e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>
   1e418:	88 23       	and	r24, r24
   1e41a:	e9 f0       	breq	.+58     	; 0x1e456 <lcd_setalertstatuspgm(char const*, unsigned char)+0x52>
        bool same = !(progmem?
            strcmp_P(lcd_status_message, message):
   1e41c:	be 01       	movw	r22, r28
   1e41e:	8f e1       	ldi	r24, 0x1F	; 31
   1e420:	95 e0       	ldi	r25, 0x05	; 5
   1e422:	0f 94 09 da 	call	0x3b412	; 0x3b412 <strcmp_P>
   1e426:	7c 01       	movw	r14, r24
            strcmp(lcd_status_message, message));
        lcd_status_message_timeout.start();
   1e428:	84 e3       	ldi	r24, 0x34	; 52
   1e42a:	95 e0       	ldi	r25, 0x05	; 5
   1e42c:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
        lcd_status_message_level = severity;
   1e430:	10 93 d5 03 	sts	0x03D5, r17	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
        custom_message_type = CustomMsg::Status;
   1e434:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
        custom_message_state = 0;
   1e438:	10 92 f7 03 	sts	0x03F7, r1	; 0x8003f7 <custom_message_state>
        if (!same) {
   1e43c:	ef 28       	or	r14, r15
   1e43e:	59 f0       	breq	.+22     	; 0x1e456 <lcd_setalertstatuspgm(char const*, unsigned char)+0x52>
            // do not kick the user out of the menus if the message is unchanged
            lcd_updatestatus(message, progmem);
   1e440:	61 e0       	ldi	r22, 0x01	; 1
   1e442:	ce 01       	movw	r24, r28
   1e444:	0e 94 d1 f1 	call	0x1e3a2	; 0x1e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>
}

void lcd_setalertstatuspgm(const char* message, uint8_t severity)
{
    lcd_setalertstatus_(message, severity, true);
}
   1e448:	df 91       	pop	r29
   1e44a:	cf 91       	pop	r28
   1e44c:	1f 91       	pop	r17
   1e44e:	ff 90       	pop	r15
   1e450:	ef 90       	pop	r14
        custom_message_type = CustomMsg::Status;
        custom_message_state = 0;
        if (!same) {
            // do not kick the user out of the menus if the message is unchanged
            lcd_updatestatus(message, progmem);
            lcd_return_to_status();
   1e452:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
}

void lcd_setalertstatuspgm(const char* message, uint8_t severity)
{
    lcd_setalertstatus_(message, severity, true);
}
   1e456:	df 91       	pop	r29
   1e458:	cf 91       	pop	r28
   1e45a:	1f 91       	pop	r17
   1e45c:	ff 90       	pop	r15
   1e45e:	ef 90       	pop	r14
   1e460:	08 95       	ret

0001e462 <lcd_setstatus_serial(char const*)>:
    if (lcd_message_check(LCD_STATUS_NONE))
        lcd_updatestatus(message, true);
}

void lcd_setstatus_serial(const char* message)
{
   1e462:	cf 93       	push	r28
   1e464:	df 93       	push	r29
   1e466:	ec 01       	movw	r28, r24
    if (lcd_message_check(LCD_STATUS_NONE))
   1e468:	80 e0       	ldi	r24, 0x00	; 0
   1e46a:	0e 94 ec f1 	call	0x1e3d8	; 0x1e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>
   1e46e:	88 23       	and	r24, r24
   1e470:	21 f0       	breq	.+8      	; 0x1e47a <lcd_setstatus_serial(char const*)+0x18>
        lcd_updatestatus(message);
   1e472:	60 e0       	ldi	r22, 0x00	; 0
   1e474:	ce 01       	movw	r24, r28
   1e476:	0e 94 d1 f1 	call	0x1e3a2	; 0x1e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>
    SERIAL_ECHOLN(message);
   1e47a:	ce 01       	movw	r24, r28
}
   1e47c:	df 91       	pop	r29
   1e47e:	cf 91       	pop	r28

void lcd_setstatus_serial(const char* message)
{
    if (lcd_message_check(LCD_STATUS_NONE))
        lcd_updatestatus(message);
    SERIAL_ECHOLN(message);
   1e480:	0d 94 3f d6 	jmp	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>

0001e484 <lcd_setstatuspgm(char const*)>:
void lcd_getstatus(char buf[LCD_WIDTH]) {
    strncpy(buf, lcd_status_message, LCD_WIDTH);
}

void lcd_setstatuspgm(const char* message)
{
   1e484:	cf 93       	push	r28
   1e486:	df 93       	push	r29
   1e488:	ec 01       	movw	r28, r24
    if (lcd_message_check(LCD_STATUS_NONE))
   1e48a:	80 e0       	ldi	r24, 0x00	; 0
   1e48c:	0e 94 ec f1 	call	0x1e3d8	; 0x1e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>
   1e490:	88 23       	and	r24, r24
   1e492:	31 f0       	breq	.+12     	; 0x1e4a0 <lcd_setstatuspgm(char const*)+0x1c>
        lcd_updatestatus(message, true);
   1e494:	61 e0       	ldi	r22, 0x01	; 1
   1e496:	ce 01       	movw	r24, r28
}
   1e498:	df 91       	pop	r29
   1e49a:	cf 91       	pop	r28
}

void lcd_setstatuspgm(const char* message)
{
    if (lcd_message_check(LCD_STATUS_NONE))
        lcd_updatestatus(message, true);
   1e49c:	0c 94 d1 f1 	jmp	0x1e3a2	; 0x1e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>
}
   1e4a0:	df 91       	pop	r29
   1e4a2:	cf 91       	pop	r28
   1e4a4:	08 95       	ret

0001e4a6 <lcd_sdcard_menu()>:
    MENU_ITEM_FUNCTION_P(_T(MSG_YES), lcd_print_stop);
    MENU_END();
}

void lcd_sdcard_menu()
{
   1e4a6:	2f 92       	push	r2
   1e4a8:	3f 92       	push	r3
   1e4aa:	4f 92       	push	r4
   1e4ac:	5f 92       	push	r5
   1e4ae:	6f 92       	push	r6
   1e4b0:	7f 92       	push	r7
   1e4b2:	8f 92       	push	r8
   1e4b4:	9f 92       	push	r9
   1e4b6:	af 92       	push	r10
   1e4b8:	bf 92       	push	r11
   1e4ba:	cf 92       	push	r12
   1e4bc:	df 92       	push	r13
   1e4be:	ef 92       	push	r14
   1e4c0:	ff 92       	push	r15
   1e4c2:	0f 93       	push	r16
   1e4c4:	1f 93       	push	r17
   1e4c6:	cf 93       	push	r28
   1e4c8:	df 93       	push	r29
   1e4ca:	cd b7       	in	r28, 0x3d	; 61
   1e4cc:	de b7       	in	r29, 0x3e	; 62
   1e4ce:	2d 97       	sbiw	r28, 0x0d	; 13
   1e4d0:	0f b6       	in	r0, 0x3f	; 63
   1e4d2:	f8 94       	cli
   1e4d4:	de bf       	out	0x3e, r29	; 62
   1e4d6:	0f be       	out	0x3f, r0	; 63
   1e4d8:	cd bf       	out	0x3d, r28	; 61
		ShortTimer lcd_scrollTimer;
	} _menu_data_sdcard_t;
	static_assert(sizeof(menu_data)>= sizeof(_menu_data_sdcard_t),"_menu_data_sdcard_t doesn't fit into menu_data");
	_menu_data_sdcard_t* _md = (_menu_data_sdcard_t*)&(menu_data[0]);

	switch(_md->menuState)
   1e4da:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   1e4de:	81 30       	cpi	r24, 0x01	; 1
   1e4e0:	31 f1       	breq	.+76     	; 0x1e52e <lcd_sdcard_menu()+0x88>
   1e4e2:	30 f0       	brcs	.+12     	; 0x1e4f0 <lcd_sdcard_menu()+0x4a>
   1e4e4:	82 30       	cpi	r24, 0x02	; 2
   1e4e6:	09 f4       	brne	.+2      	; 0x1e4ea <lcd_sdcard_menu()+0x44>
   1e4e8:	7d c2       	rjmp	.+1274   	; 0x1e9e4 <lcd_sdcard_menu()+0x53e>
			{
				_md->lcd_scrollTimer.stop(); //forces redraw in _standard state
				_md->menuState = _standard;
			}
		} break;
		default: _md->menuState = _uninitialized; //shouldn't ever happen. Anyways, initialize the menu.
   1e4ea:	10 92 a9 03 	sts	0x03A9, r1	; 0x8003a9 <menu_data>
   1e4ee:	fe c0       	rjmp	.+508    	; 0x1e6ec <lcd_sdcard_menu()+0x246>

	switch(_md->menuState)
	{
		case _uninitialized: //Initialize menu data
		{
			if (card.presort_flag == true) //used to force resorting if sorting type is changed.
   1e4f0:	80 91 df 14 	lds	r24, 0x14DF	; 0x8014df <card+0x51>
   1e4f4:	88 23       	and	r24, r24
   1e4f6:	49 f0       	breq	.+18     	; 0x1e50a <lcd_sdcard_menu()+0x64>
			{
				card.presort_flag = false;
   1e4f8:	10 92 df 14 	sts	0x14DF, r1	; 0x8014df <card+0x51>
				lcd_update_enabled = false;
   1e4fc:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
				card.presort();
   1e500:	0f 94 d4 7d 	call	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
				lcd_update_enabled = true;
   1e504:	81 e0       	ldi	r24, 0x01	; 1
   1e506:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
			}
			_md->fileCnt = card.getnrfilenames();
   1e50a:	0f 94 16 7b 	call	0x2f62c	; 0x2f62c <CardReader::getnrfilenames() [clone .constprop.260]>
   1e50e:	90 93 b1 03 	sts	0x03B1, r25	; 0x8003b1 <menu_data+0x8>
   1e512:	80 93 b0 03 	sts	0x03B0, r24	; 0x8003b0 <menu_data+0x7>
			_md->sdSort = farm_mode ? SD_SORT_NONE : eeprom_read_byte((uint8_t*)EEPROM_SD_SORT);
   1e516:	89 e0       	ldi	r24, 0x09	; 9
   1e518:	9f e0       	ldi	r25, 0x0F	; 15
   1e51a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1e51e:	80 93 b3 03 	sts	0x03B3, r24	; 0x8003b3 <menu_data+0xa>
			_md->menuState = _standard;
   1e522:	81 e0       	ldi	r24, 0x01	; 1
   1e524:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
			_md->row = -1; // assume that no SD file/dir is currently selected. Once they are rendered, it will be changed to the correct row for the _scrolling state.
   1e528:	8f ef       	ldi	r24, 0xFF	; 255
   1e52a:	80 93 b2 03 	sts	0x03B2, r24	; 0x8003b2 <menu_data+0x9>
		}
		// FALLTHRU
		case _standard: //normal menu structure.
		{
			if (!_md->lcd_scrollTimer.running()) //if the timer is not running, then the menu state was just switched, so redraw the screen.
   1e52e:	80 91 b4 03 	lds	r24, 0x03B4	; 0x8003b4 <menu_data+0xb>
   1e532:	81 11       	cpse	r24, r1
   1e534:	07 c0       	rjmp	.+14     	; 0x1e544 <lcd_sdcard_menu()+0x9e>
			{
				_md->lcd_scrollTimer.start();
   1e536:	84 eb       	ldi	r24, 0xB4	; 180
   1e538:	93 e0       	ldi	r25, 0x03	; 3
   1e53a:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
				lcd_draw_update = 1;
   1e53e:	81 e0       	ldi	r24, 0x01	; 1
   1e540:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
			}
			if ((lcd_draw_update == 0) && _md->lcd_scrollTimer.expired(500) && (_md->row != -1)) //switch to the scrolling state on timeout if a file/dir is selected.
   1e544:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   1e548:	81 11       	cpse	r24, r1
   1e54a:	21 c0       	rjmp	.+66     	; 0x1e58e <lcd_sdcard_menu()+0xe8>
   1e54c:	64 ef       	ldi	r22, 0xF4	; 244
   1e54e:	71 e0       	ldi	r23, 0x01	; 1
   1e550:	84 eb       	ldi	r24, 0xB4	; 180
   1e552:	93 e0       	ldi	r25, 0x03	; 3
   1e554:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   1e558:	88 23       	and	r24, r24
   1e55a:	a1 f0       	breq	.+40     	; 0x1e584 <lcd_sdcard_menu()+0xde>
   1e55c:	80 91 b2 03 	lds	r24, 0x03B2	; 0x8003b2 <menu_data+0x9>
   1e560:	8f 3f       	cpi	r24, 0xFF	; 255
   1e562:	81 f0       	breq	.+32     	; 0x1e584 <lcd_sdcard_menu()+0xde>
			{
				_md->menuState = _scrolling;
   1e564:	82 e0       	ldi	r24, 0x02	; 2
   1e566:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
				_md->offset = 0;
   1e56a:	10 92 aa 03 	sts	0x03AA, r1	; 0x8003aa <menu_data+0x1>
				_md->scrollPointer = NULL;
   1e56e:	10 92 ad 03 	sts	0x03AD, r1	; 0x8003ad <menu_data+0x4>
   1e572:	10 92 ac 03 	sts	0x03AC, r1	; 0x8003ac <menu_data+0x3>
				_md->lcd_scrollTimer.start();
   1e576:	84 eb       	ldi	r24, 0xB4	; 180
   1e578:	93 e0       	ldi	r25, 0x03	; 3
   1e57a:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
				lcd_draw_update = 1; //forces last load before switching to scrolling.
   1e57e:	81 e0       	ldi	r24, 0x01	; 1
   1e580:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
			}
			if (lcd_draw_update == 0 && !lcd_clicked())
   1e584:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   1e588:	88 23       	and	r24, r24
   1e58a:	09 f4       	brne	.+2      	; 0x1e58e <lcd_sdcard_menu()+0xe8>
   1e58c:	ab c0       	rjmp	.+342    	; 0x1e6e4 <lcd_sdcard_menu()+0x23e>
				return; // nothing to do (so don't thrash the SD card)

			_md->row = -1; // assume that no SD file/dir is currently selected. Once they are rendered, it will be changed to the correct row for the _scrolling state.
   1e58e:	8f ef       	ldi	r24, 0xFF	; 255
   1e590:	80 93 b2 03 	sts	0x03B2, r24	; 0x8003b2 <menu_data+0x9>

			//if we reached this point it means that the encoder moved or clicked or the state is being switched. Reset the scrollTimer.
			_md->lcd_scrollTimer.start();
   1e594:	84 eb       	ldi	r24, 0xB4	; 180
   1e596:	93 e0       	ldi	r25, 0x03	; 3
   1e598:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>

			MENU_BEGIN();
   1e59c:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   1e5a0:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
  if(eFilamentAction != FilamentAction::None) return;

    // Create a copy of card.filename on the stack since card.filename pointer
    // will be modified by the SD card library when searching for the file
    char selected_filename[FILENAME_LENGTH];
    strcpy(selected_filename, filename);
   1e5a4:	ce 01       	movw	r24, r28
   1e5a6:	01 96       	adiw	r24, 0x01	; 1
   1e5a8:	7c 01       	movw	r14, r24
  if (!check_file(selected_filename)) {
      result = !lcd_show_multiscreen_message_cont_cancel_and_wait_P(_T(MSG_FILE_INCOMPLETE), false);
      lcd_update_enable(true);
  }
  if (result) {
	  enquecommandf_P(MSG_M23, selected_filename);
   1e5aa:	f1 e5       	ldi	r31, 0x51	; 81
   1e5ac:	2f 2e       	mov	r2, r31
   1e5ae:	f0 e7       	ldi	r31, 0x70	; 112
   1e5b0:	3f 2e       	mov	r3, r31
			_md->row = -1; // assume that no SD file/dir is currently selected. Once they are rendered, it will be changed to the correct row for the _scrolling state.

			//if we reached this point it means that the encoder moved or clicked or the state is being switched. Reset the scrollTimer.
			_md->lcd_scrollTimer.start();

			MENU_BEGIN();
   1e5b2:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e5b6:	84 30       	cpi	r24, 0x04	; 4
   1e5b8:	08 f0       	brcs	.+2      	; 0x1e5bc <lcd_sdcard_menu()+0x116>
   1e5ba:	98 c0       	rjmp	.+304    	; 0x1e6ec <lcd_sdcard_menu()+0x246>
   1e5bc:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
			MENU_ITEM_BACK_P(_T(bMain?MSG_MAIN:MSG_BACK));  // i.e. default menu-item / menu-item after card insertion
   1e5c0:	80 91 e1 03 	lds	r24, 0x03E1	; 0x8003e1 <bMain>
   1e5c4:	88 23       	and	r24, r24
   1e5c6:	09 f4       	brne	.+2      	; 0x1e5ca <lcd_sdcard_menu()+0x124>
   1e5c8:	aa c0       	rjmp	.+340    	; 0x1e71e <lcd_sdcard_menu()+0x278>
   1e5ca:	8b e3       	ldi	r24, 0x3B	; 59
   1e5cc:	98 e4       	ldi	r25, 0x48	; 72
   1e5ce:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e5d2:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;};
  FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;};
   1e5d6:	62 e9       	ldi	r22, 0x92	; 146
   1e5d8:	74 e1       	ldi	r23, 0x14	; 20
   1e5da:	8b e3       	ldi	r24, 0x3B	; 59
   1e5dc:	95 e1       	ldi	r25, 0x15	; 21
   1e5de:	0f 94 bb 59 	call	0x2b376	; 0x2b376 <SdBaseFile::getFilename(char*)>
			card.getWorkDirName();
			if (card.filename[0] == '/')
   1e5e2:	80 91 92 14 	lds	r24, 0x1492	; 0x801492 <card+0x4>
   1e5e6:	8f 32       	cpi	r24, 0x2F	; 47
   1e5e8:	09 f0       	breq	.+2      	; 0x1e5ec <lcd_sdcard_menu()+0x146>
   1e5ea:	9c c0       	rjmp	.+312    	; 0x1e724 <lcd_sdcard_menu()+0x27e>
			{
#if SDCARDDETECT == -1
				MENU_ITEM_FUNCTION_P(_T(MSG_REFRESH), lcd_sd_refresh);
#else
				if (card.ToshibaFlashAir_isEnabled())
   1e5ec:	80 91 01 17 	lds	r24, 0x1701	; 0x801701 <card+0x273>
   1e5f0:	88 23       	and	r24, r24
   1e5f2:	41 f0       	breq	.+16     	; 0x1e604 <lcd_sdcard_menu()+0x15e>
					MENU_ITEM_FUNCTION_P(_T(MSG_REFRESH), lcd_sd_refresh); //show the refresh option if in flashAir mode.
   1e5f4:	80 e3       	ldi	r24, 0x30	; 48
   1e5f6:	98 e4       	ldi	r25, 0x48	; 72
   1e5f8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e5fc:	63 eb       	ldi	r22, 0xB3	; 179
   1e5fe:	70 ee       	ldi	r23, 0xE0	; 224
#endif
			}
			else
				MENU_ITEM_FUNCTION_P(PSTR(LCD_STR_FOLDER ".."), lcd_sd_updir); //Show the updir button if in a subdir.
   1e600:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>

			for (uint16_t i = _md->fileCnt; i-- > 0;) // Every file, from top to bottom.
   1e604:	c0 90 b0 03 	lds	r12, 0x03B0	; 0x8003b0 <menu_data+0x7>
   1e608:	d0 90 b1 03 	lds	r13, 0x03B1	; 0x8003b1 <menu_data+0x8>
	}
	if (menu_clicked && (lcd_encoder == menu_item))
	{
		lcd_update_enabled = false;
		menu_action_sdfile(str_fn);
		lcd_update_enabled = true;
   1e60c:	01 e0       	ldi	r16, 0x01	; 1
#endif
			}
			else
				MENU_ITEM_FUNCTION_P(PSTR(LCD_STR_FOLDER ".."), lcd_sd_updir); //Show the updir button if in a subdir.

			for (uint16_t i = _md->fileCnt; i-- > 0;) // Every file, from top to bottom.
   1e60e:	91 e0       	ldi	r25, 0x01	; 1
   1e610:	c9 1a       	sub	r12, r25
   1e612:	d1 08       	sbc	r13, r1
   1e614:	08 f4       	brcc	.+2      	; 0x1e618 <lcd_sdcard_menu()+0x172>
   1e616:	d9 c1       	rjmp	.+946    	; 0x1e9ca <lcd_sdcard_menu()+0x524>
			{
				if (menu_item == menu_line) //If the file is on the screen.
   1e618:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   1e61c:	90 91 14 05 	lds	r25, 0x0514	; 0x800514 <menu_line>
   1e620:	89 13       	cpse	r24, r25
   1e622:	cf c1       	rjmp	.+926    	; 0x1e9c2 <lcd_sdcard_menu()+0x51c>
				{
					//load filename to memory.
#ifdef SDCARD_SORT_ALPHA
					card.getfilename_sorted(i, _md->sdSort);
   1e624:	60 91 b3 03 	lds	r22, 0x03B3	; 0x8003b3 <menu_data+0xa>
   1e628:	c6 01       	movw	r24, r12
   1e62a:	0f 94 42 86 	call	0x30c84	; 0x30c84 <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]>
#else
					card.getfilename(i);
#endif
					if (lcd_encoder == menu_item) //If the file is selected.
   1e62e:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   1e632:	90 e0       	ldi	r25, 0x00	; 0
   1e634:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   1e638:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1e63c:	10 91 dc 14 	lds	r17, 0x14DC	; 0x8014dc <card+0x4e>
   1e640:	82 17       	cp	r24, r18
   1e642:	93 07       	cpc	r25, r19
   1e644:	51 f4       	brne	.+20     	; 0x1e65a <lcd_sdcard_menu()+0x1b4>
					{

						_md->selectedFileID = i;
   1e646:	d0 92 af 03 	sts	0x03AF, r13	; 0x8003af <menu_data+0x6>
   1e64a:	c0 92 ae 03 	sts	0x03AE, r12	; 0x8003ae <menu_data+0x5>
						_md->isDir = card.filenameIsDir;
   1e64e:	10 93 ab 03 	sts	0x03AB, r17	; 0x8003ab <menu_data+0x2>
						_md->row = menu_row;
   1e652:	40 91 12 05 	lds	r20, 0x0512	; 0x800512 <menu_row>
   1e656:	40 93 b2 03 	sts	0x03B2, r20	; 0x8003b2 <menu_data+0x9>
   1e65a:	40 91 6d 02 	lds	r20, 0x026D	; 0x80026d <lcd_draw_update>
					}
					if (card.filenameIsDir)
   1e65e:	11 23       	and	r17, r17
   1e660:	09 f4       	brne	.+2      	; 0x1e664 <lcd_sdcard_menu()+0x1be>
   1e662:	65 c0       	rjmp	.+202    	; 0x1e72e <lcd_sdcard_menu()+0x288>
#define MENU_ITEM_SDFILE(str_fn, str_fnl) do { menu_item_sdfile(str_fn, str_fnl); } while (0)


static void menu_item_sddir(const char* str_fn, char* str_fnl)
{
	if (lcd_draw_update)
   1e664:	44 23       	and	r20, r20
   1e666:	e9 f0       	breq	.+58     	; 0x1e6a2 <lcd_sdcard_menu()+0x1fc>
	{
		lcd_implementation_drawmenu_sddirectory(menu_row, (str_fnl[0] == '\0') ? str_fn : str_fnl);
   1e668:	40 91 a7 14 	lds	r20, 0x14A7	; 0x8014a7 <card+0x19>
   1e66c:	e2 e9       	ldi	r30, 0x92	; 146
   1e66e:	ae 2e       	mov	r10, r30
   1e670:	e4 e1       	ldi	r30, 0x14	; 20
   1e672:	be 2e       	mov	r11, r30
   1e674:	44 23       	and	r20, r20
   1e676:	21 f0       	breq	.+8      	; 0x1e680 <lcd_sdcard_menu()+0x1da>
   1e678:	77 ea       	ldi	r23, 0xA7	; 167
   1e67a:	a7 2e       	mov	r10, r23
   1e67c:	74 e1       	ldi	r23, 0x14	; 20
   1e67e:	b7 2e       	mov	r11, r23
   1e680:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
}

static void lcd_implementation_drawmenu_sddirectory(uint8_t row, const char* longFilename)
{
    uint8_t len = LCD_WIDTH - 2;
    lcd_putc_at(0, row, (lcd_encoder == menu_item)?'>':' ');
   1e684:	4e e3       	ldi	r20, 0x3E	; 62
   1e686:	82 17       	cp	r24, r18
   1e688:	93 07       	cpc	r25, r19
   1e68a:	09 f0       	breq	.+2      	; 0x1e68e <lcd_sdcard_menu()+0x1e8>
   1e68c:	40 e2       	ldi	r20, 0x20	; 32
   1e68e:	80 e0       	ldi	r24, 0x00	; 0
   1e690:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_putc(LCD_STR_FOLDER[0]);
   1e694:	85 e8       	ldi	r24, 0x85	; 133
   1e696:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
    lcd_print_pad(longFilename, len);
   1e69a:	62 e1       	ldi	r22, 0x12	; 18
   1e69c:	c5 01       	movw	r24, r10
   1e69e:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
   1e6a2:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
{
	if (lcd_draw_update)
	{
		lcd_implementation_drawmenu_sddirectory(menu_row, (str_fnl[0] == '\0') ? str_fn : str_fnl);
	}
	if (menu_clicked && (lcd_encoder == menu_item))
   1e6a6:	90 91 13 05 	lds	r25, 0x0513	; 0x800513 <menu_clicked>
   1e6aa:	99 23       	and	r25, r25
   1e6ac:	09 f4       	brne	.+2      	; 0x1e6b0 <lcd_sdcard_menu()+0x20a>
   1e6ae:	89 c1       	rjmp	.+786    	; 0x1e9c2 <lcd_sdcard_menu()+0x51c>
   1e6b0:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   1e6b4:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1e6b8:	82 17       	cp	r24, r18
   1e6ba:	13 06       	cpc	r1, r19
   1e6bc:	09 f0       	breq	.+2      	; 0x1e6c0 <lcd_sdcard_menu()+0x21a>
   1e6be:	81 c1       	rjmp	.+770    	; 0x1e9c2 <lcd_sdcard_menu()+0x51c>
	{
		lcd_update_enabled = false;
   1e6c0:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
  lcd_return_to_status();
}

void menu_action_sddirectory(const char* filename)
{
	card.chdir(filename, true);
   1e6c4:	61 e0       	ldi	r22, 0x01	; 1
   1e6c6:	82 e9       	ldi	r24, 0x92	; 146
   1e6c8:	94 e1       	ldi	r25, 0x14	; 20
   1e6ca:	0f 94 56 7f 	call	0x2feac	; 0x2feac <CardReader::chdir(char const*, bool) [clone .constprop.224]>
	lcd_encoder = 0;
   1e6ce:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   1e6d2:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
	menu_data_reset(); //Forces reloading of cached variables.
   1e6d6:	0f 94 f7 d1 	call	0x3a3ee	; 0x3a3ee <menu_data_reset()>
	}
	if (menu_clicked && (lcd_encoder == menu_item))
	{
		lcd_update_enabled = false;
		menu_action_sdfile(str_fn);
		lcd_update_enabled = true;
   1e6da:	00 93 6e 02 	sts	0x026E, r16	; 0x80026e <lcd_update_enabled>
		menu_item_ret();
   1e6de:	0f 94 bb d0 	call	0x3a176	; 0x3a176 <menu_item_ret()>
   1e6e2:	95 cf       	rjmp	.-214    	; 0x1e60e <lcd_sdcard_menu()+0x168>
				_md->offset = 0;
				_md->scrollPointer = NULL;
				_md->lcd_scrollTimer.start();
				lcd_draw_update = 1; //forces last load before switching to scrolling.
			}
			if (lcd_draw_update == 0 && !lcd_clicked())
   1e6e4:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1e6e8:	81 11       	cpse	r24, r1
   1e6ea:	51 cf       	rjmp	.-350    	; 0x1e58e <lcd_sdcard_menu()+0xe8>
				_md->menuState = _standard;
			}
		} break;
		default: _md->menuState = _uninitialized; //shouldn't ever happen. Anyways, initialize the menu.
	}
}
   1e6ec:	2d 96       	adiw	r28, 0x0d	; 13
   1e6ee:	0f b6       	in	r0, 0x3f	; 63
   1e6f0:	f8 94       	cli
   1e6f2:	de bf       	out	0x3e, r29	; 62
   1e6f4:	0f be       	out	0x3f, r0	; 63
   1e6f6:	cd bf       	out	0x3d, r28	; 61
   1e6f8:	df 91       	pop	r29
   1e6fa:	cf 91       	pop	r28
   1e6fc:	1f 91       	pop	r17
   1e6fe:	0f 91       	pop	r16
   1e700:	ff 90       	pop	r15
   1e702:	ef 90       	pop	r14
   1e704:	df 90       	pop	r13
   1e706:	cf 90       	pop	r12
   1e708:	bf 90       	pop	r11
   1e70a:	af 90       	pop	r10
   1e70c:	9f 90       	pop	r9
   1e70e:	8f 90       	pop	r8
   1e710:	7f 90       	pop	r7
   1e712:	6f 90       	pop	r6
   1e714:	5f 90       	pop	r5
   1e716:	4f 90       	pop	r4
   1e718:	3f 90       	pop	r3
   1e71a:	2f 90       	pop	r2
   1e71c:	08 95       	ret

			//if we reached this point it means that the encoder moved or clicked or the state is being switched. Reset the scrollTimer.
			_md->lcd_scrollTimer.start();

			MENU_BEGIN();
			MENU_ITEM_BACK_P(_T(bMain?MSG_MAIN:MSG_BACK));  // i.e. default menu-item / menu-item after card insertion
   1e71e:	8f e4       	ldi	r24, 0x4F	; 79
   1e720:	99 e4       	ldi	r25, 0x49	; 73
   1e722:	55 cf       	rjmp	.-342    	; 0x1e5ce <lcd_sdcard_menu()+0x128>
				if (card.ToshibaFlashAir_isEnabled())
					MENU_ITEM_FUNCTION_P(_T(MSG_REFRESH), lcd_sd_refresh); //show the refresh option if in flashAir mode.
#endif
			}
			else
				MENU_ITEM_FUNCTION_P(PSTR(LCD_STR_FOLDER ".."), lcd_sd_updir); //Show the updir button if in a subdir.
   1e724:	6d eb       	ldi	r22, 0xBD	; 189
   1e726:	70 ee       	ldi	r23, 0xE0	; 224
   1e728:	87 e7       	ldi	r24, 0x77	; 119
   1e72a:	99 e8       	ldi	r25, 0x89	; 137
   1e72c:	69 cf       	rjmp	.-302    	; 0x1e600 <lcd_sdcard_menu()+0x15a>
	menu_item++;
}

static void menu_item_sdfile(const char* str_fn, char* str_fnl)
{
	if (lcd_draw_update)
   1e72e:	44 23       	and	r20, r20
   1e730:	d1 f0       	breq	.+52     	; 0x1e766 <lcd_sdcard_menu()+0x2c0>
	{
		lcd_implementation_drawmenu_sdfile(menu_row, (str_fnl[0] == '\0') ? str_fn : str_fnl);
   1e732:	40 91 a7 14 	lds	r20, 0x14A7	; 0x8014a7 <card+0x19>
   1e736:	62 e9       	ldi	r22, 0x92	; 146
   1e738:	a6 2e       	mov	r10, r22
   1e73a:	64 e1       	ldi	r22, 0x14	; 20
   1e73c:	b6 2e       	mov	r11, r22
   1e73e:	44 23       	and	r20, r20
   1e740:	21 f0       	breq	.+8      	; 0x1e74a <lcd_sdcard_menu()+0x2a4>
   1e742:	57 ea       	ldi	r21, 0xA7	; 167
   1e744:	a5 2e       	mov	r10, r21
   1e746:	54 e1       	ldi	r21, 0x14	; 20
   1e748:	b5 2e       	mov	r11, r21
   1e74a:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
bool bSettings;                                   // flag (i.e. 'fake parameter') for 'lcd_hw_setup_menu()' function

static void lcd_implementation_drawmenu_sdfile(uint8_t row, const char* longFilename)
{
    uint8_t len = LCD_WIDTH - 1;
    lcd_putc_at(0, row, (lcd_encoder == menu_item)?'>':' ');
   1e74e:	4e e3       	ldi	r20, 0x3E	; 62
   1e750:	82 17       	cp	r24, r18
   1e752:	93 07       	cpc	r25, r19
   1e754:	09 f0       	breq	.+2      	; 0x1e758 <lcd_sdcard_menu()+0x2b2>
   1e756:	40 e2       	ldi	r20, 0x20	; 32
   1e758:	80 e0       	ldi	r24, 0x00	; 0
   1e75a:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_print_pad(longFilename, len);
   1e75e:	63 e1       	ldi	r22, 0x13	; 19
   1e760:	c5 01       	movw	r24, r10
   1e762:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
   1e766:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
{
	if (lcd_draw_update)
	{
		lcd_implementation_drawmenu_sdfile(menu_row, (str_fnl[0] == '\0') ? str_fn : str_fnl);
	}
	if (menu_clicked && (lcd_encoder == menu_item))
   1e76a:	90 91 13 05 	lds	r25, 0x0513	; 0x800513 <menu_clicked>
   1e76e:	99 23       	and	r25, r25
   1e770:	09 f4       	brne	.+2      	; 0x1e774 <lcd_sdcard_menu()+0x2ce>
   1e772:	27 c1       	rjmp	.+590    	; 0x1e9c2 <lcd_sdcard_menu()+0x51c>
   1e774:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   1e778:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   1e77c:	82 17       	cp	r24, r18
   1e77e:	13 06       	cpc	r1, r19
   1e780:	09 f0       	breq	.+2      	; 0x1e784 <lcd_sdcard_menu()+0x2de>
   1e782:	1f c1       	rjmp	.+574    	; 0x1e9c2 <lcd_sdcard_menu()+0x51c>
	{
		lcd_update_enabled = false;
   1e784:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
	return result;
}

static void menu_action_sdfile(const char* filename)
{
  if(eFilamentAction != FilamentAction::None) return;
   1e788:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   1e78c:	81 11       	cpse	r24, r1
   1e78e:	a5 cf       	rjmp	.-182    	; 0x1e6da <lcd_sdcard_menu()+0x234>

    // Create a copy of card.filename on the stack since card.filename pointer
    // will be modified by the SD card library when searching for the file
    char selected_filename[FILENAME_LENGTH];
    strcpy(selected_filename, filename);
   1e790:	62 e9       	ldi	r22, 0x92	; 146
   1e792:	74 e1       	ldi	r23, 0x14	; 20
   1e794:	c7 01       	movw	r24, r14
   1e796:	0f 94 c6 e2 	call	0x3c58c	; 0x3c58c <strcpy>
   1e79a:	47 01       	movw	r8, r14
   1e79c:	45 e9       	ldi	r20, 0x95	; 149
   1e79e:	a4 2e       	mov	r10, r20
   1e7a0:	4f e0       	ldi	r20, 0x0F	; 15
   1e7a2:	b4 2e       	mov	r11, r20

  bool result = true;

  //we are storing just first 8 characters of 8.3 filename assuming that extension is always ".gco"
  for (uint_least8_t i = 0; i < 8; i++) {
	  if (selected_filename[i] == '\0' || selected_filename[i] == '.') {
   1e7a4:	f4 01       	movw	r30, r8
   1e7a6:	61 91       	ld	r22, Z+
   1e7a8:	4f 01       	movw	r8, r30
   1e7aa:	66 23       	and	r22, r22
   1e7ac:	19 f0       	breq	.+6      	; 0x1e7b4 <lcd_sdcard_menu()+0x30e>
   1e7ae:	6e 32       	cpi	r22, 0x2E	; 46
   1e7b0:	09 f0       	breq	.+2      	; 0x1e7b4 <lcd_sdcard_menu()+0x30e>
   1e7b2:	4b c0       	rjmp	.+150    	; 0x1e84a <lcd_sdcard_menu()+0x3a4>
   1e7b4:	60 e0       	ldi	r22, 0x00	; 0
   1e7b6:	c5 01       	movw	r24, r10
   1e7b8:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
		  eeprom_update_byte_notify((uint8_t*)EEPROM_FILENAME + i, selected_filename[i]);
	  }
  }

    // Write the DOS 8.3 file extension into EEPROM
    char * extension_ptr = strchr(selected_filename, '.');
   1e7bc:	6e e2       	ldi	r22, 0x2E	; 46
   1e7be:	70 e0       	ldi	r23, 0x00	; 0
   1e7c0:	c7 01       	movw	r24, r14
   1e7c2:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   1e7c6:	3c 01       	movw	r6, r24

    if (extension_ptr) {
   1e7c8:	89 2b       	or	r24, r25
   1e7ca:	19 f0       	breq	.+6      	; 0x1e7d2 <lcd_sdcard_menu()+0x32c>
        extension_ptr++; // skip the '.'
   1e7cc:	8f ef       	ldi	r24, 0xFF	; 255
   1e7ce:	68 1a       	sub	r6, r24
   1e7d0:	78 0a       	sbc	r7, r24
   1e7d2:	43 01       	movw	r8, r6
  if(eFilamentAction != FilamentAction::None) return;

    // Create a copy of card.filename on the stack since card.filename pointer
    // will be modified by the SD card library when searching for the file
    char selected_filename[FILENAME_LENGTH];
    strcpy(selected_filename, filename);
   1e7d4:	31 e9       	ldi	r19, 0x91	; 145
   1e7d6:	a3 2e       	mov	r10, r19
   1e7d8:	3c e0       	ldi	r19, 0x0C	; 12
   1e7da:	b3 2e       	mov	r11, r19
        extension_ptr++; // skip the '.'
    }

    for (uint_least8_t i = 0; i < 3; i++)
    {
        if (extension_ptr == NULL || extension_ptr[i] == '\0') {
   1e7dc:	61 14       	cp	r6, r1
   1e7de:	71 04       	cpc	r7, r1
   1e7e0:	21 f0       	breq	.+8      	; 0x1e7ea <lcd_sdcard_menu()+0x344>
   1e7e2:	f4 01       	movw	r30, r8
   1e7e4:	60 81       	ld	r22, Z
   1e7e6:	61 11       	cpse	r22, r1
   1e7e8:	01 c0       	rjmp	.+2      	; 0x1e7ec <lcd_sdcard_menu()+0x346>
   1e7ea:	60 e0       	ldi	r22, 0x00	; 0
   1e7ec:	c5 01       	movw	r24, r10
   1e7ee:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1e7f2:	ff ef       	ldi	r31, 0xFF	; 255
   1e7f4:	af 1a       	sub	r10, r31
   1e7f6:	bf 0a       	sbc	r11, r31
   1e7f8:	2f ef       	ldi	r18, 0xFF	; 255
   1e7fa:	82 1a       	sub	r8, r18
   1e7fc:	92 0a       	sbc	r9, r18

    if (extension_ptr) {
        extension_ptr++; // skip the '.'
    }

    for (uint_least8_t i = 0; i < 3; i++)
   1e7fe:	84 e9       	ldi	r24, 0x94	; 148
   1e800:	a8 16       	cp	r10, r24
   1e802:	8c e0       	ldi	r24, 0x0C	; 12
   1e804:	b8 06       	cpc	r11, r24
   1e806:	51 f7       	brne	.-44     	; 0x1e7dc <lcd_sdcard_menu()+0x336>
{
		workDirParents[level].getFilename(name);
}

uint8_t CardReader::getWorkDirDepth() {
	return workDirDepth;
   1e808:	60 90 30 16 	lds	r6, 0x1630	; 0x801630 <card+0x1a2>
   1e80c:	66 2d       	mov	r22, r6
   1e80e:	8a e5       	ldi	r24, 0x5A	; 90
   1e810:	9f e0       	ldi	r25, 0x0F	; 15
   1e812:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1e816:	8e e8       	ldi	r24, 0x8E	; 142
   1e818:	94 e1       	ldi	r25, 0x14	; 20
   1e81a:	2a e0       	ldi	r18, 0x0A	; 10
   1e81c:	a2 2e       	mov	r10, r18
   1e81e:	2f e0       	ldi	r18, 0x0F	; 15
   1e820:	b2 2e       	mov	r11, r18
    }

    const uint8_t depth = card.getWorkDirDepth();
    eeprom_update_byte_notify((uint8_t*)EEPROM_DIR_DEPTH, depth);

    for (uint_least8_t i = 0; i < depth; i++) {
   1e822:	71 2c       	mov	r7, r1
   1e824:	4c 01       	movw	r8, r24
   1e826:	e9 e0       	ldi	r30, 0x09	; 9
   1e828:	8e 0e       	add	r8, r30
   1e82a:	91 1c       	adc	r9, r1
   1e82c:	76 14       	cp	r7, r6
   1e82e:	d1 f0       	breq	.+52     	; 0x1e864 <lcd_sdcard_menu()+0x3be>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   1e830:	48 e0       	ldi	r20, 0x08	; 8
   1e832:	50 e0       	ldi	r21, 0x00	; 0
   1e834:	b5 01       	movw	r22, r10
   1e836:	8e 5a       	subi	r24, 0xAE	; 174
   1e838:	9f 4f       	sbci	r25, 0xFF	; 255
   1e83a:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   1e83e:	73 94       	inc	r7
   1e840:	f8 e0       	ldi	r31, 0x08	; 8
   1e842:	af 0e       	add	r10, r31
   1e844:	b1 1c       	adc	r11, r1
   1e846:	c4 01       	movw	r24, r8
   1e848:	ed cf       	rjmp	.-38     	; 0x1e824 <lcd_sdcard_menu()+0x37e>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   1e84a:	c5 01       	movw	r24, r10
   1e84c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1e850:	ff ef       	ldi	r31, 0xFF	; 255
   1e852:	af 1a       	sub	r10, r31
   1e854:	bf 0a       	sbc	r11, r31
    strcpy(selected_filename, filename);

  bool result = true;

  //we are storing just first 8 characters of 8.3 filename assuming that extension is always ".gco"
  for (uint_least8_t i = 0; i < 8; i++) {
   1e856:	2d e9       	ldi	r18, 0x9D	; 157
   1e858:	a2 16       	cp	r10, r18
   1e85a:	2f e0       	ldi	r18, 0x0F	; 15
   1e85c:	b2 06       	cpc	r11, r18
   1e85e:	09 f0       	breq	.+2      	; 0x1e862 <lcd_sdcard_menu()+0x3bc>
   1e860:	a1 cf       	rjmp	.-190    	; 0x1e7a4 <lcd_sdcard_menu()+0x2fe>
   1e862:	ac cf       	rjmp	.-168    	; 0x1e7bc <lcd_sdcard_menu()+0x316>

/** Menu action functions **/

static bool check_file(const char* filename) {
	if (farm_mode) return true;
	card.openFileReadFilteredGcode(filename, true);
   1e864:	61 e0       	ldi	r22, 0x01	; 1
   1e866:	c7 01       	movw	r24, r14
   1e868:	0f 94 8d 80 	call	0x3011a	; 0x3011a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]>

}

uint32_t CardReader::getFileSize()
{
	return filesize;
   1e86c:	40 90 9d 17 	lds	r4, 0x179D	; 0x80179d <card+0x30f>
   1e870:	50 90 9e 17 	lds	r5, 0x179E	; 0x80179e <card+0x310>
   1e874:	60 90 9f 17 	lds	r6, 0x179F	; 0x80179f <card+0x311>
   1e878:	70 90 a0 17 	lds	r7, 0x17A0	; 0x8017a0 <card+0x312>
	bool result = false;
	const uint32_t filesize = card.getFileSize();
	uint32_t startPos = 0;
	const uint16_t bytesToCheck = min(END_FILE_SECTION, filesize);
   1e87c:	94 2d       	mov	r25, r4
   1e87e:	85 2d       	mov	r24, r5
   1e880:	21 e0       	ldi	r18, 0x01	; 1
   1e882:	42 16       	cp	r4, r18
   1e884:	28 e7       	ldi	r18, 0x78	; 120
   1e886:	52 06       	cpc	r5, r18
   1e888:	61 04       	cpc	r6, r1
   1e88a:	71 04       	cpc	r7, r1
   1e88c:	10 f0       	brcs	.+4      	; 0x1e892 <lcd_sdcard_menu()+0x3ec>
   1e88e:	90 e0       	ldi	r25, 0x00	; 0
   1e890:	88 e7       	ldi	r24, 0x78	; 120
   1e892:	a9 2e       	mov	r10, r25
   1e894:	b8 2e       	mov	r11, r24
	if (filesize > END_FILE_SECTION) {
   1e896:	81 e0       	ldi	r24, 0x01	; 1
   1e898:	48 16       	cp	r4, r24
   1e89a:	88 e7       	ldi	r24, 0x78	; 120
   1e89c:	58 06       	cpc	r5, r24
   1e89e:	61 04       	cpc	r6, r1
   1e8a0:	71 04       	cpc	r7, r1
   1e8a2:	08 f4       	brcc	.+2      	; 0x1e8a6 <lcd_sdcard_menu()+0x400>
   1e8a4:	5d c0       	rjmp	.+186    	; 0x1e960 <lcd_sdcard_menu()+0x4ba>
		startPos = filesize - END_FILE_SECTION;
   1e8a6:	98 e7       	ldi	r25, 0x78	; 120
   1e8a8:	59 1a       	sub	r5, r25
   1e8aa:	61 08       	sbc	r6, r1
   1e8ac:	71 08       	sbc	r7, r1
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
   1e8ae:	40 92 a4 17 	sts	0x17A4, r4	; 0x8017a4 <card+0x316>
   1e8b2:	50 92 a5 17 	sts	0x17A5, r5	; 0x8017a5 <card+0x317>
   1e8b6:	60 92 a6 17 	sts	0x17A6, r6	; 0x8017a6 <card+0x318>
   1e8ba:	70 92 a7 17 	sts	0x17A7, r7	; 0x8017a7 <card+0x319>
   1e8be:	c3 01       	movw	r24, r6
   1e8c0:	b2 01       	movw	r22, r4
   1e8c2:	0f 94 de 76 	call	0x2edbc	; 0x2edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>
		card.setIndex(startPos);
	}
	cmdqueue_reset();
   1e8c6:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
	cmdqueue_serial_disabled = true;
   1e8ca:	00 93 a6 03 	sts	0x03A6, r16	; 0x8003a6 <cmdqueue_serial_disabled>

	menu_progressbar_init(bytesToCheck, _T(MSG_CHECKING_FILE));
   1e8ce:	8d e0       	ldi	r24, 0x0D	; 13
   1e8d0:	98 e4       	ldi	r25, 0x48	; 72
   1e8d2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e8d6:	bc 01       	movw	r22, r24
   1e8d8:	c5 01       	movw	r24, r10
   1e8da:	0f 94 37 d0 	call	0x3a06e	; 0x3a06e <menu_progressbar_init(unsigned int, char const*)>
     void getfilename_sorted(const uint16_t nr, uint8_t sdSort);
     void getfilename_afterMaxSorting(uint16_t entry, const char * const match = NULL);
  #endif

  FORCE_INLINE bool isFileOpen() { return file.isOpen(); }
  bool eof() { return sdpos>=filesize; }
   1e8de:	80 91 a4 17 	lds	r24, 0x17A4	; 0x8017a4 <card+0x316>
   1e8e2:	90 91 a5 17 	lds	r25, 0x17A5	; 0x8017a5 <card+0x317>
   1e8e6:	a0 91 a6 17 	lds	r26, 0x17A6	; 0x8017a6 <card+0x318>
   1e8ea:	b0 91 a7 17 	lds	r27, 0x17A7	; 0x8017a7 <card+0x319>
	while (!card.eof() && !result) {
   1e8ee:	40 91 9d 17 	lds	r20, 0x179D	; 0x80179d <card+0x30f>
   1e8f2:	50 91 9e 17 	lds	r21, 0x179E	; 0x80179e <card+0x310>
   1e8f6:	60 91 9f 17 	lds	r22, 0x179F	; 0x80179f <card+0x311>
   1e8fa:	70 91 a0 17 	lds	r23, 0x17A0	; 0x8017a0 <card+0x312>
   1e8fe:	84 17       	cp	r24, r20
   1e900:	95 07       	cpc	r25, r21
   1e902:	a6 07       	cpc	r26, r22
   1e904:	b7 07       	cpc	r27, r23
   1e906:	80 f5       	brcc	.+96     	; 0x1e968 <lcd_sdcard_menu()+0x4c2>
   1e908:	11 11       	cpse	r17, r1
   1e90a:	2e c0       	rjmp	.+92     	; 0x1e968 <lcd_sdcard_menu()+0x4c2>
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
  FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;};
  FORCE_INLINE char* getWorkDirName(){workDir.getFilename(filename);return filename;};
  FORCE_INLINE uint32_t get_sdpos() { if (!isFileOpen()) return 0; else return(sdpos); };
   1e90c:	20 91 23 17 	lds	r18, 0x1723	; 0x801723 <card+0x295>
   1e910:	21 11       	cpse	r18, r1
   1e912:	03 c0       	rjmp	.+6      	; 0x1e91a <lcd_sdcard_menu()+0x474>
   1e914:	80 e0       	ldi	r24, 0x00	; 0
   1e916:	90 e0       	ldi	r25, 0x00	; 0
   1e918:	dc 01       	movw	r26, r24
		menu_progressbar_update(card.get_sdpos() - startPos);
   1e91a:	84 19       	sub	r24, r4
   1e91c:	95 09       	sbc	r25, r5
   1e91e:	0f 94 08 d0 	call	0x3a010	; 0x3a010 <menu_progressbar_update(unsigned int)>
		card.sdprinting = true;
   1e922:	00 93 90 14 	sts	0x1490, r16	; 0x801490 <card+0x2>
		get_command();
   1e926:	0e 94 a7 82 	call	0x1054e	; 0x1054e <get_command()>
#endif // LIN_ADVANCE

bool check_commands() {
	bool end_command_found = false;

		while (buflen)
   1e92a:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   1e92e:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   1e932:	89 2b       	or	r24, r25
   1e934:	a1 f2       	breq	.-88     	; 0x1e8de <lcd_sdcard_menu()+0x438>
		{
		if ((code_seen_P(MSG_M84)) || (code_seen_P(PSTR("M 84")))) end_command_found = true;
   1e936:	82 ea       	ldi	r24, 0xA2	; 162
   1e938:	9a e6       	ldi	r25, 0x6A	; 106
   1e93a:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   1e93e:	81 11       	cpse	r24, r1
   1e940:	05 c0       	rjmp	.+10     	; 0x1e94c <lcd_sdcard_menu()+0x4a6>
   1e942:	82 e7       	ldi	r24, 0x72	; 114
   1e944:	99 e8       	ldi	r25, 0x89	; 137
   1e946:	0e 94 ad 67 	call	0xcf5a	; 0xcf5a <code_seen_P(char const*) [clone .lto_priv.437]>
   1e94a:	81 11       	cpse	r24, r1
   1e94c:	11 e0       	ldi	r17, 0x01	; 1
		if (!cmdbuffer_front_already_processed)
   1e94e:	80 91 a2 10 	lds	r24, 0x10A2	; 0x8010a2 <cmdbuffer_front_already_processed>
   1e952:	81 11       	cpse	r24, r1
   1e954:	02 c0       	rjmp	.+4      	; 0x1e95a <lcd_sdcard_menu()+0x4b4>
			 cmdqueue_pop_front();
   1e956:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
		cmdbuffer_front_already_processed = false;
   1e95a:	10 92 a2 10 	sts	0x10A2, r1	; 0x8010a2 <cmdbuffer_front_already_processed>
   1e95e:	e5 cf       	rjmp	.-54     	; 0x1e92a <lcd_sdcard_menu()+0x484>
static bool check_file(const char* filename) {
	if (farm_mode) return true;
	card.openFileReadFilteredGcode(filename, true);
	bool result = false;
	const uint32_t filesize = card.getFileSize();
	uint32_t startPos = 0;
   1e960:	41 2c       	mov	r4, r1
   1e962:	51 2c       	mov	r5, r1
   1e964:	32 01       	movw	r6, r4
   1e966:	af cf       	rjmp	.-162    	; 0x1e8c6 <lcd_sdcard_menu()+0x420>
		// with the CMDBUFFER_DEBUG enabled
		manage_heater();
#endif // CMDBUFFER_DEBUG
	}

	menu_progressbar_finish();
   1e968:	0f 94 29 d0 	call	0x3a052	; 0x3a052 <menu_progressbar_finish()>

	cmdqueue_serial_disabled = false;
   1e96c:	10 92 a6 03 	sts	0x03A6, r1	; 0x8003a6 <cmdqueue_serial_disabled>
	card.printingHasFinished();
   1e970:	0f 94 c5 81 	call	0x3038a	; 0x3038a <CardReader::printingHasFinished() [clone .constprop.220]>

	lcd_setstatuspgm(MSG_WELCOME);
   1e974:	8f ec       	ldi	r24, 0xCF	; 207
   1e976:	9f e6       	ldi	r25, 0x6F	; 111
   1e978:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

    for (uint_least8_t i = 0; i < depth; i++) {
        eeprom_update_block_notify(card.dir_names[i], (uint8_t*)EEPROM_DIRS + 8 * i, 8);
    }

  if (!check_file(selected_filename)) {
   1e97c:	11 23       	and	r17, r17
   1e97e:	91 f0       	breq	.+36     	; 0x1e9a4 <lcd_sdcard_menu()+0x4fe>
      result = !lcd_show_multiscreen_message_cont_cancel_and_wait_P(_T(MSG_FILE_INCOMPLETE), false);
      lcd_update_enable(true);
  }
  if (result) {
	  enquecommandf_P(MSG_M23, selected_filename);
   1e980:	ff 92       	push	r15
   1e982:	ef 92       	push	r14
   1e984:	3f 92       	push	r3
   1e986:	2f 92       	push	r2
   1e988:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
	  enquecommand_P(MSG_M24);
   1e98c:	61 e0       	ldi	r22, 0x01	; 1
   1e98e:	8d e4       	ldi	r24, 0x4D	; 77
   1e990:	90 e7       	ldi	r25, 0x70	; 112
   1e992:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
   1e996:	0f 90       	pop	r0
   1e998:	0f 90       	pop	r0
   1e99a:	0f 90       	pop	r0
   1e99c:	0f 90       	pop	r0
  }

  lcd_return_to_status();
   1e99e:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
   1e9a2:	9b ce       	rjmp	.-714    	; 0x1e6da <lcd_sdcard_menu()+0x234>
    for (uint_least8_t i = 0; i < depth; i++) {
        eeprom_update_block_notify(card.dir_names[i], (uint8_t*)EEPROM_DIRS + 8 * i, 8);
    }

  if (!check_file(selected_filename)) {
      result = !lcd_show_multiscreen_message_cont_cancel_and_wait_P(_T(MSG_FILE_INCOMPLETE), false);
   1e9a4:	8d e1       	ldi	r24, 0x1D	; 29
   1e9a6:	98 e4       	ldi	r25, 0x48	; 72
   1e9a8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1e9ac:	41 e0       	ldi	r20, 0x01	; 1
   1e9ae:	60 e0       	ldi	r22, 0x00	; 0
   1e9b0:	0f 94 4c 50 	call	0x2a098	; 0x2a098 <lcd_show_multiscreen_message_cont_cancel_and_wait_P(char const*, bool, unsigned char)>
   1e9b4:	18 2f       	mov	r17, r24
      lcd_update_enable(true);
   1e9b6:	81 e0       	ldi	r24, 0x01	; 1
   1e9b8:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
  }
  if (result) {
   1e9bc:	11 23       	and	r17, r17
   1e9be:	01 f3       	breq	.-64     	; 0x1e980 <lcd_sdcard_menu()+0x4da>
   1e9c0:	ee cf       	rjmp	.-36     	; 0x1e99e <lcd_sdcard_menu()+0x4f8>
    lcd_putc_at(LCD_WIDTH - 1, menu_row, type_char);
}

void menu_item_dummy(void)
{
	menu_item++;
   1e9c2:	8f 5f       	subi	r24, 0xFF	; 255
   1e9c4:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
   1e9c8:	22 ce       	rjmp	.-956    	; 0x1e60e <lcd_sdcard_menu()+0x168>
					else
						MENU_ITEM_SDFILE(card.filename, card.longFilename);
				}
				else MENU_ITEM_DUMMY(); //dummy item that just increments the internal menu counters.
			}
			MENU_END();
   1e9ca:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
			_md->row = -1; // assume that no SD file/dir is currently selected. Once they are rendered, it will be changed to the correct row for the _scrolling state.

			//if we reached this point it means that the encoder moved or clicked or the state is being switched. Reset the scrollTimer.
			_md->lcd_scrollTimer.start();

			MENU_BEGIN();
   1e9ce:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   1e9d2:	8f 5f       	subi	r24, 0xFF	; 255
   1e9d4:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   1e9d8:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   1e9dc:	8f 5f       	subi	r24, 0xFF	; 255
   1e9de:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   1e9e2:	e7 cd       	rjmp	.-1074   	; 0x1e5b2 <lcd_sdcard_menu()+0x10c>
			MENU_END();
		} break;
		case _scrolling: //scrolling filename
		{
            // LCD_CLICKED is used so that the click event is later consumed by the _standard state.
			const bool rewindFlag = LCD_CLICKED || lcd_draw_update; //flag that says whether the menu should return to _standard state.
   1e9e4:	80 91 a8 03 	lds	r24, 0x03A8	; 0x8003a8 <lcd_click_trigger>
   1e9e8:	11 e0       	ldi	r17, 0x01	; 1
   1e9ea:	81 11       	cpse	r24, r1
   1e9ec:	05 c0       	rjmp	.+10     	; 0x1e9f8 <lcd_sdcard_menu()+0x552>
   1e9ee:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   1e9f2:	81 11       	cpse	r24, r1
   1e9f4:	01 c0       	rjmp	.+2      	; 0x1e9f8 <lcd_sdcard_menu()+0x552>
   1e9f6:	10 e0       	ldi	r17, 0x00	; 0

			if (_md->scrollPointer == NULL)
   1e9f8:	80 91 ac 03 	lds	r24, 0x03AC	; 0x8003ac <menu_data+0x3>
   1e9fc:	90 91 ad 03 	lds	r25, 0x03AD	; 0x8003ad <menu_data+0x4>
   1ea00:	89 2b       	or	r24, r25
   1ea02:	91 f4       	brne	.+36     	; 0x1ea28 <lcd_sdcard_menu()+0x582>
			{
				//load filename to memory.
#ifdef SDCARD_SORT_ALPHA
				card.getfilename_sorted(_md->selectedFileID, _md->sdSort);
   1ea04:	60 91 b3 03 	lds	r22, 0x03B3	; 0x8003b3 <menu_data+0xa>
   1ea08:	80 91 ae 03 	lds	r24, 0x03AE	; 0x8003ae <menu_data+0x5>
   1ea0c:	90 91 af 03 	lds	r25, 0x03AF	; 0x8003af <menu_data+0x6>
   1ea10:	0f 94 42 86 	call	0x30c84	; 0x30c84 <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]>
#else
				card.getfilename(_md->selectedFileID);
#endif
				_md->scrollPointer = (card.longFilename[0] == '\0') ? card.filename : card.longFilename;
   1ea14:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   1ea18:	81 11       	cpse	r24, r1
   1ea1a:	46 c0       	rjmp	.+140    	; 0x1eaa8 <lcd_sdcard_menu()+0x602>
   1ea1c:	82 e9       	ldi	r24, 0x92	; 146
   1ea1e:	94 e1       	ldi	r25, 0x14	; 20
   1ea20:	90 93 ad 03 	sts	0x03AD, r25	; 0x8003ad <menu_data+0x4>
   1ea24:	80 93 ac 03 	sts	0x03AC, r24	; 0x8003ac <menu_data+0x3>
			}

			if (rewindFlag)
   1ea28:	11 11       	cpse	r17, r1
				_md->offset = 0; //redraw once again from the beginning.
   1ea2a:	10 92 aa 03 	sts	0x03AA, r1	; 0x8003aa <menu_data+0x1>
			if (_md->lcd_scrollTimer.expired(300) || rewindFlag)
   1ea2e:	6c e2       	ldi	r22, 0x2C	; 44
   1ea30:	71 e0       	ldi	r23, 0x01	; 1
   1ea32:	84 eb       	ldi	r24, 0xB4	; 180
   1ea34:	93 e0       	ldi	r25, 0x03	; 3
   1ea36:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   1ea3a:	81 11       	cpse	r24, r1
   1ea3c:	03 c0       	rjmp	.+6      	; 0x1ea44 <lcd_sdcard_menu()+0x59e>
   1ea3e:	11 23       	and	r17, r17
   1ea40:	09 f4       	brne	.+2      	; 0x1ea44 <lcd_sdcard_menu()+0x59e>
   1ea42:	54 ce       	rjmp	.-856    	; 0x1e6ec <lcd_sdcard_menu()+0x246>
			{
				uint8_t len = LCD_WIDTH - ((_md->isDir)? 2 : 1);
   1ea44:	80 91 ab 03 	lds	r24, 0x03AB	; 0x8003ab <menu_data+0x2>
   1ea48:	02 e1       	ldi	r16, 0x12	; 18
   1ea4a:	81 11       	cpse	r24, r1
   1ea4c:	01 c0       	rjmp	.+2      	; 0x1ea50 <lcd_sdcard_menu()+0x5aa>
   1ea4e:	03 e1       	ldi	r16, 0x13	; 19
				lcd_putc_at(0, _md->row, '>');
   1ea50:	4e e3       	ldi	r20, 0x3E	; 62
   1ea52:	60 91 b2 03 	lds	r22, 0x03B2	; 0x8003b2 <menu_data+0x9>
   1ea56:	80 e0       	ldi	r24, 0x00	; 0
   1ea58:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
				if (_md->isDir)
   1ea5c:	80 91 ab 03 	lds	r24, 0x03AB	; 0x8003ab <menu_data+0x2>
   1ea60:	88 23       	and	r24, r24
   1ea62:	19 f0       	breq	.+6      	; 0x1ea6a <lcd_sdcard_menu()+0x5c4>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
   1ea64:	85 e8       	ldi	r24, 0x85	; 133
   1ea66:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
					lcd_print(LCD_STR_FOLDER[0]);

				if( lcd_print_pad(&_md->scrollPointer[_md->offset], len) == 0)
   1ea6a:	20 91 aa 03 	lds	r18, 0x03AA	; 0x8003aa <menu_data+0x1>
   1ea6e:	80 91 ac 03 	lds	r24, 0x03AC	; 0x8003ac <menu_data+0x3>
   1ea72:	90 91 ad 03 	lds	r25, 0x03AD	; 0x8003ad <menu_data+0x4>
   1ea76:	60 2f       	mov	r22, r16
   1ea78:	82 0f       	add	r24, r18
   1ea7a:	91 1d       	adc	r25, r1
   1ea7c:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
   1ea80:	81 11       	cpse	r24, r1
   1ea82:	15 c0       	rjmp	.+42     	; 0x1eaae <lcd_sdcard_menu()+0x608>
				{
					_md->lcd_scrollTimer.start();
   1ea84:	84 eb       	ldi	r24, 0xB4	; 180
   1ea86:	93 e0       	ldi	r25, 0x03	; 3
   1ea88:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
					_md->offset++;
   1ea8c:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   1ea90:	8f 5f       	subi	r24, 0xFF	; 255
   1ea92:	80 93 aa 03 	sts	0x03AA, r24	; 0x8003aa <menu_data+0x1>
				} else {
					// stop at the end of the string
					_md->lcd_scrollTimer.stop();
				}
			}
			if (rewindFlag) //go back to sd_menu.
   1ea96:	11 23       	and	r17, r17
   1ea98:	09 f4       	brne	.+2      	; 0x1ea9c <lcd_sdcard_menu()+0x5f6>
   1ea9a:	28 ce       	rjmp	.-944    	; 0x1e6ec <lcd_sdcard_menu()+0x246>
   1ea9c:	10 92 b4 03 	sts	0x03B4, r1	; 0x8003b4 <menu_data+0xb>
			{
				_md->lcd_scrollTimer.stop(); //forces redraw in _standard state
				_md->menuState = _standard;
   1eaa0:	81 e0       	ldi	r24, 0x01	; 1
   1eaa2:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
   1eaa6:	22 ce       	rjmp	.-956    	; 0x1e6ec <lcd_sdcard_menu()+0x246>
#ifdef SDCARD_SORT_ALPHA
				card.getfilename_sorted(_md->selectedFileID, _md->sdSort);
#else
				card.getfilename(_md->selectedFileID);
#endif
				_md->scrollPointer = (card.longFilename[0] == '\0') ? card.filename : card.longFilename;
   1eaa8:	87 ea       	ldi	r24, 0xA7	; 167
   1eaaa:	94 e1       	ldi	r25, 0x14	; 20
   1eaac:	b9 cf       	rjmp	.-142    	; 0x1ea20 <lcd_sdcard_menu()+0x57a>
   1eaae:	10 92 b4 03 	sts	0x03B4, r1	; 0x8003b4 <menu_data+0xb>
   1eab2:	f1 cf       	rjmp	.-30     	; 0x1ea96 <lcd_sdcard_menu()+0x5f0>

0001eab4 <lcd_colorprint_change()>:
}
#endif /* DEBUG_STEPPER_TIMER_MISSED */

static void lcd_colorprint_change() {

	enquecommand_P(MSG_M600);
   1eab4:	61 e0       	ldi	r22, 0x01	; 1
   1eab6:	88 e4       	ldi	r24, 0x48	; 72
   1eab8:	90 e7       	ldi	r25, 0x70	; 112
   1eaba:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>

	custom_message_type = CustomMsg::FilamentLoading; //just print status message
   1eabe:	82 e0       	ldi	r24, 0x02	; 2
   1eac0:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
	lcd_setstatuspgm(_T(MSG_FINISHING_MOVEMENTS));
   1eac4:	89 e9       	ldi	r24, 0x99	; 153
   1eac6:	92 e5       	ldi	r25, 0x52	; 82
   1eac8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1eacc:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
	lcd_return_to_status();
   1ead0:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
	lcd_draw_update = 3;
   1ead4:	83 e0       	ldi	r24, 0x03	; 3
   1ead6:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
}
   1eada:	08 95       	ret

0001eadc <lcd_setstatus(char const*)>:
    // hack lcd_draw_update to 1, i.e. without clear
    lcd_draw_update = 1;
}

void lcd_setstatus(const char* message)
{
   1eadc:	cf 93       	push	r28
   1eade:	df 93       	push	r29
   1eae0:	ec 01       	movw	r28, r24
    if (lcd_message_check(LCD_STATUS_NONE))
   1eae2:	80 e0       	ldi	r24, 0x00	; 0
   1eae4:	0e 94 ec f1 	call	0x1e3d8	; 0x1e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>
   1eae8:	88 23       	and	r24, r24
   1eaea:	31 f0       	breq	.+12     	; 0x1eaf8 <lcd_setstatus(char const*)+0x1c>
        lcd_updatestatus(message);
   1eaec:	60 e0       	ldi	r22, 0x00	; 0
   1eaee:	ce 01       	movw	r24, r28
}
   1eaf0:	df 91       	pop	r29
   1eaf2:	cf 91       	pop	r28
}

void lcd_setstatus(const char* message)
{
    if (lcd_message_check(LCD_STATUS_NONE))
        lcd_updatestatus(message);
   1eaf4:	0c 94 d1 f1 	jmp	0x1e3a2	; 0x1e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>
}
   1eaf8:	df 91       	pop	r29
   1eafa:	cf 91       	pop	r28
   1eafc:	08 95       	ret

0001eafe <print_stop(bool, bool)>:
    axis_relative_modes = E_AXIS_MASK; //XYZ absolute, E relative
    did_pause_print = false; // Clear pause state in case the print was aborted while paused
}

void print_stop(bool interactive, bool unconditional_stop)
{
   1eafe:	cf 93       	push	r28
   1eb00:	df 93       	push	r29
   1eb02:	c8 2f       	mov	r28, r24
    softReset();
}

void UnconditionalStop()
{
    CRITICAL_SECTION_START;
   1eb04:	df b7       	in	r29, 0x3f	; 63
    // UnconditionalStop() will internally cause planner_abort_hard(), meaning we _cannot_ plan any
    // more move in this call! Any further move must happen inside lcd_print_stop_finish(), which is
    // called by the main loop one iteration later.
    if (unconditional_stop) {
   1eb06:	66 23       	and	r22, r22
   1eb08:	d9 f1       	breq	.+118    	; 0x1eb80 <print_stop(bool, bool)+0x82>
   1eb0a:	f8 94       	cli

    // Disable all heaters and unroll the temperature wait loop stack
    disable_heater();
   1eb0c:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
    cancel_heatup = true;
   1eb10:	81 e0       	ldi	r24, 0x01	; 1
   1eb12:	80 93 b5 0d 	sts	0x0DB5, r24	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
    heating_status = HeatingStatus::NO_HEATING;
   1eb16:	10 92 e3 03 	sts	0x03E3, r1	; 0x8003e3 <heating_status>

    // Clear any saved printing state
    cancel_saved_printing();
   1eb1a:	0e 94 34 64 	call	0xc868	; 0xc868 <cancel_saved_printing()>

    // Abort the planner
    planner_abort_hard();
   1eb1e:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>

    // Reset the queue
    cmdqueue_reset();
   1eb22:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
    cmdqueue_serial_disabled = false;
   1eb26:	10 92 a6 03 	sts	0x03A6, r1	; 0x8003a6 <cmdqueue_serial_disabled>

    st_reset_timer();
   1eb2a:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
    CRITICAL_SECTION_END;
   1eb2e:	df bf       	out	0x3f, r29	; 63

    // clear paused state immediately
    did_pause_print = false;
   1eb30:	10 92 e4 03 	sts	0x03E4, r1	; 0x8003e4 <did_pause_print>
    print_job_timer.stop();
   1eb34:	0f 94 bd 43 	call	0x2877a	; 0x2877a <Stopwatch::stop()>
    } else {
        // Allow lcd_print_stop_finish() to use the heaters when it is safe
        ConditionalStop();
    }

    if (card.isFileOpen()) {
   1eb38:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   1eb3c:	88 23       	and	r24, r24
   1eb3e:	71 f0       	breq	.+28     	; 0x1eb5c <print_stop(bool, bool)+0x5e>
        // Reset the sd status
        card.sdprinting = false;
   1eb40:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
    lastnr++;
}

void CardReader::closefile(bool store_location)
{
  file.sync();
   1eb44:	80 e2       	ldi	r24, 0x20	; 32
   1eb46:	97 e1       	ldi	r25, 0x17	; 23
   1eb48:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
  file.close();
   1eb4c:	80 e2       	ldi	r24, 0x20	; 32
   1eb4e:	97 e1       	ldi	r25, 0x17	; 23
   1eb50:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
  saving = false;
   1eb54:	10 92 8e 14 	sts	0x148E, r1	; 0x80148e <card>
  logging = false;
   1eb58:	10 92 8f 14 	sts	0x148F, r1	; 0x80148f <card+0x1>
        card.closefile();
    }
    SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_CANCEL);
   1eb5c:	82 e9       	ldi	r24, 0x92	; 146
   1eb5e:	9a e6       	ldi	r25, 0x6A	; 106
   1eb60:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

#ifdef MESH_BED_LEVELING
    mbl.active = false;
   1eb64:	10 92 c2 13 	sts	0x13C2, r1	; 0x8013c2 <mbl>
#endif

    if (interactive) {
   1eb68:	c1 11       	cpse	r28, r1
        // acknowledged by the user from the LCD: resume processing USB commands again
        Stopped = false;
   1eb6a:	10 92 11 05 	sts	0x0511, r1	; 0x800511 <Stopped>
    }

    // return to status is required to continue processing in the main loop!
    lcd_commands_type = LcdCommands::StopPrint;
   1eb6e:	81 e0       	ldi	r24, 0x01	; 1
   1eb70:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
}

PrinterState SetPrinterState(PrinterState status) {
    return printer_state = status;
   1eb74:	10 92 b8 0d 	sts	0x0DB8, r1	; 0x800db8 <_ZL13printer_state.lto_priv.403>
    SetPrinterState(PrinterState::NotReady); //set printer state to show LCD menu after print has been stopped
    lcd_return_to_status();
}
   1eb78:	df 91       	pop	r29
   1eb7a:	cf 91       	pop	r28
    }

    // return to status is required to continue processing in the main loop!
    lcd_commands_type = LcdCommands::StopPrint;
    SetPrinterState(PrinterState::NotReady); //set printer state to show LCD menu after print has been stopped
    lcd_return_to_status();
   1eb7c:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
}

void ConditionalStop()
{
    CRITICAL_SECTION_START;
   1eb80:	f8 94       	cli
    //
    // However, the firmware must take into account the edge case when the firmware
    // is running M109 or M190 G-codes. These G-codes execute a blocking while loop
    // which waits for the bed or nozzle to reach their target temperature.
    // To exit the loop, the firmware must set cancel_heatup to true.
    cancel_heatup = true;
   1eb82:	81 e0       	ldi	r24, 0x01	; 1
   1eb84:	80 93 b5 0d 	sts	0x0DB5, r24	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
    heating_status = HeatingStatus::NO_HEATING;
   1eb88:	10 92 e3 03 	sts	0x03E3, r1	; 0x8003e3 <heating_status>

    // Clear any saved printing state
    cancel_saved_printing();
   1eb8c:	0e 94 34 64 	call	0xc868	; 0xc868 <cancel_saved_printing()>

    // Abort the planner
    planner_abort_hard();
   1eb90:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>

    // Reset the queue
    cmdqueue_reset();
   1eb94:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
    cmdqueue_serial_disabled = false;
   1eb98:	10 92 a6 03 	sts	0x03A6, r1	; 0x8003a6 <cmdqueue_serial_disabled>

    st_reset_timer();
   1eb9c:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
    CRITICAL_SECTION_END;
   1eba0:	df bf       	out	0x3f, r29	; 63
   1eba2:	ca cf       	rjmp	.-108    	; 0x1eb38 <print_stop(bool, bool)+0x3a>

0001eba4 <lcd_print_stop()>:
}

void lcd_print_stop()
{
    print_stop(true);
   1eba4:	60 e0       	ldi	r22, 0x00	; 0
   1eba6:	81 e0       	ldi	r24, 0x01	; 1
   1eba8:	0c 94 7f f5 	jmp	0x1eafe	; 0x1eafe <print_stop(bool, bool)>

0001ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>:
    oCheckFilament = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_FILAMENT, (uint8_t)ClCheckMode::_Warn);
}

static void render_M862_warnings(const char* warning, const char* strict, uint8_t check)
{
    if (check == 1) { // Warning, stop print if user selects 'No'
   1ebac:	41 30       	cpi	r20, 0x01	; 1
   1ebae:	41 f4       	brne	.+16     	; 0x1ebc0 <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]+0x14>
        if (lcd_show_multiscreen_message_cont_cancel_and_wait_P(warning, true, LCD_LEFT_BUTTON_CHOICE) == LCD_MIDDLE_BUTTON_CHOICE) {
   1ebb0:	40 e0       	ldi	r20, 0x00	; 0
   1ebb2:	61 e0       	ldi	r22, 0x01	; 1
   1ebb4:	0f 94 4c 50 	call	0x2a098	; 0x2a098 <lcd_show_multiscreen_message_cont_cancel_and_wait_P(char const*, bool, unsigned char)>
   1ebb8:	81 30       	cpi	r24, 0x01	; 1
   1ebba:	41 f4       	brne	.+16     	; 0x1ebcc <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]+0x20>
            lcd_print_stop();
        }
    } else if (check == 2) { // Strict, always stop print
        lcd_show_fullscreen_message_and_wait_P(strict);
        lcd_print_stop();
   1ebbc:	0c 94 d2 f5 	jmp	0x1eba4	; 0x1eba4 <lcd_print_stop()>
{
    if (check == 1) { // Warning, stop print if user selects 'No'
        if (lcd_show_multiscreen_message_cont_cancel_and_wait_P(warning, true, LCD_LEFT_BUTTON_CHOICE) == LCD_MIDDLE_BUTTON_CHOICE) {
            lcd_print_stop();
        }
    } else if (check == 2) { // Strict, always stop print
   1ebc0:	42 30       	cpi	r20, 0x02	; 2
   1ebc2:	21 f4       	brne	.+8      	; 0x1ebcc <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]+0x20>
        lcd_show_fullscreen_message_and_wait_P(strict);
   1ebc4:	cb 01       	movw	r24, r22
   1ebc6:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   1ebca:	f8 cf       	rjmp	.-16     	; 0x1ebbc <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]+0x10>
        lcd_print_stop();
    }
}
   1ebcc:	08 95       	ret

0001ebce <filament_presence_check()>:
        ,_T(MSG_GCODE_NEWER_FIRMWARE_CANCELLED)
        ,(uint8_t)oCheckVersion
    );
}

bool filament_presence_check() {
   1ebce:	0f 93       	push	r16
   1ebd0:	1f 93       	push	r17
   1ebd2:	cf 93       	push	r28
    // When MMU is enabled, this is not necessary and the G-code file
    // should always tell the MMU which filament to load.
    if (eeprom_read_byte((uint8_t *)EEPROM_MMU_ENABLED)) {
   1ebd4:	8c ea       	ldi	r24, 0xAC	; 172
   1ebd6:	9c e0       	ldi	r25, 0x0C	; 12
   1ebd8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1ebdc:	81 11       	cpse	r24, r1
   1ebde:	23 c0       	rjmp	.+70     	; 0x1ec26 <filament_presence_check()+0x58>
        goto done;
    }

    if (fsensor.isEnabled() && !fsensor.getFilamentPresent()) {
   1ebe0:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1ebe4:	88 23       	and	r24, r24
   1ebe6:	f9 f0       	breq	.+62     	; 0x1ec26 <filament_presence_check()+0x58>
   1ebe8:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   1ebec:	81 11       	cpse	r24, r1
   1ebee:	1b c0       	rjmp	.+54     	; 0x1ec26 <filament_presence_check()+0x58>
        if (oCheckFilament == ClCheckMode::_None) {
   1ebf0:	c0 91 e7 04 	lds	r28, 0x04E7	; 0x8004e7 <oCheckFilament>
   1ebf4:	cc 23       	and	r28, r28
   1ebf6:	b9 f0       	breq	.+46     	; 0x1ec26 <filament_presence_check()+0x58>
            goto done;
        }

        render_M862_warnings(
   1ebf8:	8b e5       	ldi	r24, 0x5B	; 91
   1ebfa:	9a e4       	ldi	r25, 0x4A	; 74
   1ebfc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ec00:	8c 01       	movw	r16, r24
   1ec02:	8b e5       	ldi	r24, 0x5B	; 91
   1ec04:	9a e4       	ldi	r25, 0x4A	; 74
   1ec06:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ec0a:	4c 2f       	mov	r20, r28
   1ec0c:	b8 01       	movw	r22, r16
   1ec0e:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
            _T(MSG_MISSING_FILAMENT)
            ,_T(MSG_MISSING_FILAMENT) //Identical messages
            ,(uint8_t)oCheckFilament
        );

        if (lcd_commands_type == LcdCommands::StopPrint) {
   1ec12:	81 e0       	ldi	r24, 0x01	; 1
   1ec14:	90 91 b4 0d 	lds	r25, 0x0DB4	; 0x800db4 <lcd_commands_type>
   1ec18:	91 30       	cpi	r25, 0x01	; 1
   1ec1a:	09 f4       	brne	.+2      	; 0x1ec1e <filament_presence_check()+0x50>
   1ec1c:	80 e0       	ldi	r24, 0x00	; 0
        }
    }

done:
    return true;
}
   1ec1e:	cf 91       	pop	r28
   1ec20:	1f 91       	pop	r17
   1ec22:	0f 91       	pop	r16
   1ec24:	08 95       	ret
            return false;
        }
    }

done:
    return true;
   1ec26:	81 e0       	ldi	r24, 0x01	; 1
   1ec28:	fa cf       	rjmp	.-12     	; 0x1ec1e <filament_presence_check()+0x50>

0001ec2a <nozzle_diameter_check(unsigned int)>:
        lcd_show_fullscreen_message_and_wait_P(strict);
        lcd_print_stop();
    }
}

void nozzle_diameter_check(uint16_t nDiameter) {
   1ec2a:	1f 93       	push	r17
   1ec2c:	cf 93       	push	r28
   1ec2e:	df 93       	push	r29
    uint16_t nDiameter_um;

    if (oCheckMode == ClCheckMode::_None)
   1ec30:	10 91 ec 04 	lds	r17, 0x04EC	; 0x8004ec <oCheckMode>
   1ec34:	11 23       	and	r17, r17
   1ec36:	f9 f0       	breq	.+62     	; 0x1ec76 <nozzle_diameter_check(unsigned int)+0x4c>
   1ec38:	ec 01       	movw	r28, r24
        return;
    nDiameter_um = eeprom_read_word((uint16_t *)EEPROM_NOZZLE_DIAMETER_uM);
   1ec3a:	85 ea       	ldi	r24, 0xA5	; 165
   1ec3c:	9d e0       	ldi	r25, 0x0D	; 13
   1ec3e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
    if (nDiameter == nDiameter_um)
   1ec42:	8c 17       	cp	r24, r28
   1ec44:	9d 07       	cpc	r25, r29
   1ec46:	b9 f0       	breq	.+46     	; 0x1ec76 <nozzle_diameter_check(unsigned int)+0x4c>
    // SERIAL_ECHOPGM("actual  : ");
    // SERIAL_ECHOLN((float)(nDiameter_um/1000.0));
    // SERIAL_ECHOPGM("expected: ");
    // SERIAL_ECHOLN((float)(nDiameter/1000.0));

    render_M862_warnings(
   1ec48:	8c e0       	ldi	r24, 0x0C	; 12
   1ec4a:	9a e4       	ldi	r25, 0x4A	; 74
   1ec4c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ec50:	ec 01       	movw	r28, r24
   1ec52:	81 ee       	ldi	r24, 0xE1	; 225
   1ec54:	99 e4       	ldi	r25, 0x49	; 73
   1ec56:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ec5a:	41 2f       	mov	r20, r17
   1ec5c:	be 01       	movw	r22, r28
   1ec5e:	0e 94 d6 f5 	call	0x1ebac	; 0x1ebac <render_M862_warnings(char const*, char const*, unsigned char) [clone .lto_priv.561]>
        ,_T(MSG_NOZZLE_DIFFERS_CANCELLED)
        ,(uint8_t)oCheckMode
    );

    if (!farm_mode) {
        bSettings = false; // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
   1ec62:	10 92 fc 03 	sts	0x03FC, r1	; 0x8003fc <bSettings>
        menu_submenu(lcd_hw_setup_menu);
   1ec66:	60 e0       	ldi	r22, 0x00	; 0
   1ec68:	80 ea       	ldi	r24, 0xA0	; 160
   1ec6a:	92 ed       	ldi	r25, 0xD2	; 210
    }
}
   1ec6c:	df 91       	pop	r29
   1ec6e:	cf 91       	pop	r28
   1ec70:	1f 91       	pop	r17
        ,(uint8_t)oCheckMode
    );

    if (!farm_mode) {
        bSettings = false; // flag ('fake parameter') for 'lcd_hw_setup_menu()' function
        menu_submenu(lcd_hw_setup_menu);
   1ec72:	0d 94 42 d3 	jmp	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
    }
}
   1ec76:	df 91       	pop	r29
   1ec78:	cf 91       	pop	r28
   1ec7a:	1f 91       	pop	r17
   1ec7c:	08 95       	ret

0001ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>:
}

/// @brief Set print fan speed
/// @param speed ranges from 0 to 255
static void lcd_selftest_setfan(const uint8_t speed) {
    fanSpeed = speed;
   1ec7e:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
#ifdef FAN_SOFT_PWM
    fanSpeedSoftPwm = speed;
   1ec82:	80 93 a6 04 	sts	0x04A6, r24	; 0x8004a6 <fanSpeedSoftPwm>
#endif
    manage_heater();
   1ec86:	0d 94 68 39 	jmp	0x272d0	; 0x272d0 <manage_heater()>

0001ec8a <lcd_selftest()>:
{
	(void)lcd_selftest();
}

bool lcd_selftest()
{
   1ec8a:	cf 92       	push	r12
   1ec8c:	df 92       	push	r13
   1ec8e:	ef 92       	push	r14
   1ec90:	ff 92       	push	r15
   1ec92:	0f 93       	push	r16
   1ec94:	1f 93       	push	r17
   1ec96:	cf 93       	push	r28
   1ec98:	df 93       	push	r29
   1ec9a:	00 d0       	rcall	.+0      	; 0x1ec9c <lcd_selftest()+0x12>
   1ec9c:	1f 92       	push	r1
   1ec9e:	cd b7       	in	r28, 0x3d	; 61
   1eca0:	de b7       	in	r29, 0x3e	; 62
		lcd_printf_P(PSTR("%3d/%3d"), (int16_t)degHotend(active_extruder), (int16_t) degTargetHotend(active_extruder));
		lcd_putc(LCD_STR_DEGREE[0]);
}

void lcd_wait_for_cool_down() {
	disable_heater();
   1eca2:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
	uint8_t fanSpeedBckp = fanSpeed;
   1eca6:	d0 90 e7 03 	lds	r13, 0x03E7	; 0x8003e7 <fanSpeed>
	fanSpeed = 255;
   1ecaa:	8f ef       	ldi	r24, 0xFF	; 255
   1ecac:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
	while ((degHotend(0)>MAX_HOTEND_TEMP_CALIBRATION) || (degBed() > MAX_BED_TEMP_CALIBRATION)) {
		lcd_display_message_fullscreen_P(_T(MSG_WAITING_TEMP));

		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
		lcd_printf_P(PSTR("%3d/0"), (int16_t)degHotend(0));
   1ecb0:	8b e9       	ldi	r24, 0x9B	; 155
   1ecb2:	e8 2e       	mov	r14, r24
   1ecb4:	89 e8       	ldi	r24, 0x89	; 137
   1ecb6:	f8 2e       	mov	r15, r24
		lcd_putc(LCD_STR_DEGREE[0]);

		lcd_putc_at(9, 4, LCD_STR_BEDTEMP[0]);
		lcd_printf_P(PSTR("%3d/0"), (int16_t)degBed());
   1ecb8:	05 e9       	ldi	r16, 0x95	; 149
   1ecba:	19 e8       	ldi	r17, 0x89	; 137

void lcd_wait_for_cool_down() {
	disable_heater();
	uint8_t fanSpeedBckp = fanSpeed;
	fanSpeed = 255;
	while ((degHotend(0)>MAX_HOTEND_TEMP_CALIBRATION) || (degBed() > MAX_BED_TEMP_CALIBRATION)) {
   1ecbc:	20 e0       	ldi	r18, 0x00	; 0
   1ecbe:	30 e0       	ldi	r19, 0x00	; 0
   1ecc0:	48 e4       	ldi	r20, 0x48	; 72
   1ecc2:	52 e4       	ldi	r21, 0x42	; 66
   1ecc4:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1ecc8:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1eccc:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1ecd0:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1ecd4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1ecd8:	18 16       	cp	r1, r24
   1ecda:	8c f0       	brlt	.+34     	; 0x1ecfe <lcd_selftest()+0x74>
   1ecdc:	20 e0       	ldi	r18, 0x00	; 0
   1ecde:	30 e0       	ldi	r19, 0x00	; 0
   1ece0:	48 e4       	ldi	r20, 0x48	; 72
   1ece2:	52 e4       	ldi	r21, 0x42	; 66
   1ece4:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   1ece8:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   1ecec:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   1ecf0:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   1ecf4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1ecf8:	18 16       	cp	r1, r24
   1ecfa:	0c f0       	brlt	.+2      	; 0x1ecfe <lcd_selftest()+0x74>
   1ecfc:	42 c0       	rjmp	.+132    	; 0x1ed82 <lcd_selftest()+0xf8>
		lcd_display_message_fullscreen_P(_T(MSG_WAITING_TEMP));
   1ecfe:	82 e4       	ldi	r24, 0x42	; 66
   1ed00:	98 e4       	ldi	r25, 0x48	; 72
   1ed02:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ed06:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>

		lcd_putc_at(0, 4, LCD_STR_THERMOMETER[0]);
   1ed0a:	42 e8       	ldi	r20, 0x82	; 130
   1ed0c:	64 e0       	ldi	r22, 0x04	; 4
   1ed0e:	80 e0       	ldi	r24, 0x00	; 0
   1ed10:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
		lcd_printf_P(PSTR("%3d/0"), (int16_t)degHotend(0));
   1ed14:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   1ed18:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   1ed1c:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   1ed20:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   1ed24:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1ed28:	7f 93       	push	r23
   1ed2a:	6f 93       	push	r22
   1ed2c:	ff 92       	push	r15
   1ed2e:	ef 92       	push	r14
   1ed30:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		lcd_putc(LCD_STR_DEGREE[0]);
   1ed34:	81 e8       	ldi	r24, 0x81	; 129
   1ed36:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>

		lcd_putc_at(9, 4, LCD_STR_BEDTEMP[0]);
   1ed3a:	40 e8       	ldi	r20, 0x80	; 128
   1ed3c:	64 e0       	ldi	r22, 0x04	; 4
   1ed3e:	89 e0       	ldi	r24, 0x09	; 9
   1ed40:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
		lcd_printf_P(PSTR("%3d/0"), (int16_t)degBed());
   1ed44:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   1ed48:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   1ed4c:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   1ed50:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   1ed54:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   1ed58:	7f 93       	push	r23
   1ed5a:	6f 93       	push	r22
   1ed5c:	1f 93       	push	r17
   1ed5e:	0f 93       	push	r16
   1ed60:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		lcd_putc(LCD_STR_DEGREE[0]);
   1ed64:	81 e8       	ldi	r24, 0x81	; 129
   1ed66:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
		delay_keep_alive(1000);
   1ed6a:	88 ee       	ldi	r24, 0xE8	; 232
   1ed6c:	93 e0       	ldi	r25, 0x03	; 3
   1ed6e:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
		serialecho_temperatures();
   1ed72:	0e 94 e5 76 	call	0xedca	; 0xedca <serialecho_temperatures()>
   1ed76:	0f b6       	in	r0, 0x3f	; 63
   1ed78:	f8 94       	cli
   1ed7a:	de bf       	out	0x3e, r29	; 62
   1ed7c:	0f be       	out	0x3f, r0	; 63
   1ed7e:	cd bf       	out	0x3d, r28	; 61
   1ed80:	9d cf       	rjmp	.-198    	; 0x1ecbc <lcd_selftest()+0x32>
	}
	fanSpeed = fanSpeedBckp;
   1ed82:	d0 92 e7 03 	sts	0x03E7, r13	; 0x8003e7 <fanSpeed>
	lcd_update_enable(true);
   1ed86:	81 e0       	ldi	r24, 0x01	; 1
   1ed88:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
			lcd_detect_IRsensor();
		}
	}
#endif
	lcd_wait_for_cool_down();
	lcd_clear();
   1ed8c:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	lcd_puts_at_P(0, 0, _T(MSG_SELFTEST_START));
   1ed90:	85 e7       	ldi	r24, 0x75	; 117
   1ed92:	98 e4       	ldi	r25, 0x48	; 72
   1ed94:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1ed98:	ac 01       	movw	r20, r24
   1ed9a:	60 e0       	ldi	r22, 0x00	; 0
   1ed9c:	80 e0       	ldi	r24, 0x00	; 0
   1ed9e:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	#ifdef TMC2130
	  FORCE_HIGH_POWER_START;
   1eda2:	81 e0       	ldi	r24, 0x01	; 1
   1eda4:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
	#endif // TMC2130
	FORCE_BL_ON_START;
   1eda8:	81 e0       	ldi	r24, 0x01	; 1
   1edaa:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>
	_delay(2000);
   1edae:	60 ed       	ldi	r22, 0xD0	; 208
   1edb0:	77 e0       	ldi	r23, 0x07	; 7
   1edb2:	80 e0       	ldi	r24, 0x00	; 0
   1edb4:	90 e0       	ldi	r25, 0x00	; 0
   1edb6:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
	KEEPALIVE_STATE(IN_HANDLER);
   1edba:	82 e0       	ldi	r24, 0x02	; 2
   1edbc:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

	_progress = lcd_selftest_screen(TestScreen::ExtruderFan, _progress, 3, true, 2000);
   1edc0:	00 ed       	ldi	r16, 0xD0	; 208
   1edc2:	17 e0       	ldi	r17, 0x07	; 7
   1edc4:	21 e0       	ldi	r18, 0x01	; 1
   1edc6:	43 e0       	ldi	r20, 0x03	; 3
   1edc8:	60 e0       	ldi	r22, 0x00	; 0
   1edca:	80 e0       	ldi	r24, 0x00	; 0
   1edcc:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1edd0:	f8 2e       	mov	r15, r24
    // speed threshold to mark a fan as failed
    static const int failThr = FANCHECK_AUTO_FAIL_THRS; // < FANCHECK_AUTO_FAIL_THRS RPM would mean either a faulty Noctua, Altfan or print fan

	switch (_fan) {
	case 0:
        setExtruderAutoFanState(3); // hotend fan
   1edd2:	83 e0       	ldi	r24, 0x03	; 3
   1edd4:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
        lcd_selftest_setfan(0); // print fan off
   1edd8:	80 e0       	ldi	r24, 0x00	; 0
   1edda:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
        lcd_selftest_measure_fans(2, 18, 2);
   1edde:	62 e0       	ldi	r22, 0x02	; 2
   1ede0:	82 e0       	ldi	r24, 0x02	; 2
   1ede2:	0f 94 28 a1 	call	0x34250	; 0x34250 <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]>
        setExtruderAutoFanState(0); // hotend fan off
   1ede6:	80 e0       	ldi	r24, 0x00	; 0
   1ede8:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
		if (fan_speed[0] < failThr) {
   1edec:	c0 90 c9 03 	lds	r12, 0x03C9	; 0x8003c9 <fan_speed>
   1edf0:	d0 90 ca 03 	lds	r13, 0x03CA	; 0x8003ca <fan_speed+0x1>
   1edf4:	94 e1       	ldi	r25, 0x14	; 20
   1edf6:	c9 16       	cp	r12, r25
   1edf8:	d1 04       	cpc	r13, r1
   1edfa:	5c f1       	brlt	.+86     	; 0x1ee52 <lcd_selftest()+0x1c8>
		lcd_selftest_error(TestError::ExtruderFan, "", "");
	}

	if (_result)
	{
		_progress = lcd_selftest_screen(TestScreen::PrintFan, _progress, 3, true, 2000);
   1edfc:	21 e0       	ldi	r18, 0x01	; 1
   1edfe:	43 e0       	ldi	r20, 0x03	; 3
   1ee00:	6f 2d       	mov	r22, r15
   1ee02:	81 e0       	ldi	r24, 0x01	; 1
   1ee04:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ee08:	f8 2e       	mov	r15, r24
			return FanCheck::SwappedFan;
		}
		break;

	case 1:
        lcd_selftest_setfan(255);
   1ee0a:	8f ef       	ldi	r24, 0xFF	; 255
   1ee0c:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
        lcd_selftest_measure_fans(5, 18, 3);
   1ee10:	63 e0       	ldi	r22, 0x03	; 3
   1ee12:	85 e0       	ldi	r24, 0x05	; 5
   1ee14:	0f 94 28 a1 	call	0x34250	; 0x34250 <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]>
        lcd_selftest_setfan(0);
   1ee18:	80 e0       	ldi	r24, 0x00	; 0
   1ee1a:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
        if (fan_speed[1] < failThr) {
   1ee1e:	80 91 cb 03 	lds	r24, 0x03CB	; 0x8003cb <fan_speed+0x2>
   1ee22:	90 91 cc 03 	lds	r25, 0x03CC	; 0x8003cc <fan_speed+0x3>
   1ee26:	84 31       	cpi	r24, 0x14	; 20
   1ee28:	91 05       	cpc	r25, r1
   1ee2a:	cc f4       	brge	.+50     	; 0x1ee5e <lcd_selftest()+0x1d4>
#else //defined(TACH_1)
		_result = lcd_selftest_manual_fan_check(1, false);
#endif //defined(TACH_1)
		if (!_result)
		{
			lcd_selftest_error(TestError::PrintFan, "", ""); //print fan not spinning
   1ee2c:	69 ef       	ldi	r22, 0xF9	; 249
   1ee2e:	72 e0       	ldi	r23, 0x02	; 2
   1ee30:	85 e0       	ldi	r24, 0x05	; 5
   1ee32:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
		}
	}

	if (_swapped_fan) {
   1ee36:	96 e4       	ldi	r25, 0x46	; 70
   1ee38:	c9 16       	cp	r12, r25
   1ee3a:	d1 04       	cpc	r13, r1
   1ee3c:	9c f4       	brge	.+38     	; 0x1ee64 <lcd_selftest()+0x1da>
	{
		_progress = lcd_selftest_screen(TestScreen::AllCorrect, _progress, 3, true, 5000); //all correct
	}
	else
	{
		_progress = lcd_selftest_screen(TestScreen::Failed, _progress, 3, true, 5000);
   1ee3e:	08 e8       	ldi	r16, 0x88	; 136
   1ee40:	13 e1       	ldi	r17, 0x13	; 19
   1ee42:	21 e0       	ldi	r18, 0x01	; 1
   1ee44:	43 e0       	ldi	r20, 0x03	; 3
   1ee46:	6f 2d       	mov	r22, r15
   1ee48:	8d e0       	ldi	r24, 0x0D	; 13
   1ee4a:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ee4e:	e1 2c       	mov	r14, r1
   1ee50:	49 c1       	rjmp	.+658    	; 0x1f0e4 <lcd_selftest()+0x45a>
#else //defined(TACH_0)
	_result = lcd_selftest_manual_fan_check(0, false);
#endif //defined(TACH_0)
	if (!_result)
	{
		lcd_selftest_error(TestError::ExtruderFan, "", "");
   1ee52:	69 ef       	ldi	r22, 0xF9	; 249
   1ee54:	72 e0       	ldi	r23, 0x02	; 2
   1ee56:	86 e0       	ldi	r24, 0x06	; 6
				lcd_selftest_error(TestError::PrintFan, "", "");
			}
		}
		else {
			// fans are swapped
			lcd_selftest_error(TestError::SwappedFan, "", "");
   1ee58:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
   1ee5c:	f0 cf       	rjmp	.-32     	; 0x1ee3e <lcd_selftest()+0x1b4>
        lcd_selftest_measure_fans(5, 18, 3);
        lcd_selftest_setfan(0);
        if (fan_speed[1] < failThr) {
            return FanCheck::PrintFan;
        }
		if (fan_speed[1] < printFanThr) {
   1ee5e:	86 34       	cpi	r24, 0x46	; 70
   1ee60:	91 05       	cpc	r25, r1
   1ee62:	54 f4       	brge	.+20     	; 0x1ee78 <lcd_selftest()+0x1ee>
		}
	}

	if (_swapped_fan) {
		//turn on print fan and check that left hotend fan is not spinning
		_result = lcd_selftest_manual_fan_check(1, true);
   1ee64:	60 e0       	ldi	r22, 0x00	; 0
   1ee66:	81 e0       	ldi	r24, 0x01	; 1
   1ee68:	0f 94 9a a0 	call	0x34134	; 0x34134 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]>
		if (_result) {
   1ee6c:	81 11       	cpse	r24, r1
   1ee6e:	68 c1       	rjmp	.+720    	; 0x1f140 <lcd_selftest()+0x4b6>
				lcd_selftest_error(TestError::PrintFan, "", "");
			}
		}
		else {
			// fans are swapped
			lcd_selftest_error(TestError::SwappedFan, "", "");
   1ee70:	69 ef       	ldi	r22, 0xF9	; 249
   1ee72:	72 e0       	ldi	r23, 0x02	; 2
   1ee74:	89 e0       	ldi	r24, 0x09	; 9
   1ee76:	f0 cf       	rjmp	.-32     	; 0x1ee58 <lcd_selftest()+0x1ce>
		{
			lcd_selftest_error(TestError::PrintFan, "", ""); //print fan not spinning
		}
	}

	if (_swapped_fan) {
   1ee78:	86 e4       	ldi	r24, 0x46	; 70
   1ee7a:	c8 16       	cp	r12, r24
   1ee7c:	d1 04       	cpc	r13, r1
   1ee7e:	94 f7       	brge	.-28     	; 0x1ee64 <lcd_selftest()+0x1da>
		}
	}

	if (_result)
	{
		_progress = lcd_selftest_screen(TestScreen::FansOk, _progress, 3, true, 2000);
   1ee80:	00 ed       	ldi	r16, 0xD0	; 208
   1ee82:	17 e0       	ldi	r17, 0x07	; 7
   1ee84:	21 e0       	ldi	r18, 0x01	; 1
   1ee86:	43 e0       	ldi	r20, 0x03	; 3
   1ee88:	6f 2d       	mov	r22, r15
   1ee8a:	82 e0       	ldi	r24, 0x02	; 2
   1ee8c:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ee90:	f8 2e       	mov	r15, r24

static bool lcd_selfcheck_endstops()
{
	bool _result = true;

	if (
   1ee92:	1c 9b       	sbis	0x03, 4	; 3
   1ee94:	18 c0       	rjmp	.+48     	; 0x1eec6 <lcd_selftest()+0x23c>
	{
	#ifndef TMC2130
		if ((READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING) == 1) current_position[0] += 10;
		if ((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1) current_position[1] += 10;
	#endif //!TMC2130
		if ((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING) == 1) current_position[2] += 10;
   1ee96:	1c 9b       	sbis	0x03, 4	; 3
   1ee98:	16 c0       	rjmp	.+44     	; 0x1eec6 <lcd_selftest()+0x23c>
   1ee9a:	20 e0       	ldi	r18, 0x00	; 0
   1ee9c:	30 e0       	ldi	r19, 0x00	; 0
   1ee9e:	40 e2       	ldi	r20, 0x20	; 32
   1eea0:	51 e4       	ldi	r21, 0x41	; 65
   1eea2:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   1eea6:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   1eeaa:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   1eeae:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   1eeb2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1eeb6:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   1eeba:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   1eebe:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   1eec2:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
	}
	plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   1eec6:	60 e0       	ldi	r22, 0x00	; 0
   1eec8:	70 e0       	ldi	r23, 0x00	; 0
   1eeca:	84 e3       	ldi	r24, 0x34	; 52
   1eecc:	92 e4       	ldi	r25, 0x42	; 66
   1eece:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	st_synchronize();
   1eed2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	if (
   1eed6:	1c 9b       	sbis	0x03, 4	; 3
   1eed8:	3d c1       	rjmp	.+634    	; 0x1f154 <lcd_selftest()+0x4ca>
		((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1) ||
	#endif //!TMC2130
		((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING) == 1))
	{
		_result = false;
		char _error[4] = "";
   1eeda:	1a 82       	std	Y+2, r1	; 0x02
   1eedc:	19 82       	std	Y+1, r1	; 0x01
   1eede:	1c 82       	std	Y+4, r1	; 0x04
   1eee0:	1b 82       	std	Y+3, r1	; 0x03
	#ifndef TMC2130
		if ((READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING) == 1) strcat(_error, "X");
		if ((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1) strcat(_error, "Y");
	#endif //!TMC2130
		if ((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING) == 1) strcat(_error, "Z");
   1eee2:	1c 9b       	sbis	0x03, 4	; 3
   1eee4:	06 c0       	rjmp	.+12     	; 0x1eef2 <lcd_selftest()+0x268>
   1eee6:	65 ee       	ldi	r22, 0xE5	; 229
   1eee8:	72 e0       	ldi	r23, 0x02	; 2
   1eeea:	ce 01       	movw	r24, r28
   1eeec:	01 96       	adiw	r24, 0x01	; 1
   1eeee:	0f 94 a7 e2 	call	0x3c54e	; 0x3c54e <strcat>
		lcd_selftest_error(TestError::Endstops, _error, "");
   1eef2:	be 01       	movw	r22, r28
   1eef4:	6f 5f       	subi	r22, 0xFF	; 255
   1eef6:	7f 4f       	sbci	r23, 0xFF	; 255
   1eef8:	82 e0       	ldi	r24, 0x02	; 2
   1eefa:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
		((READ(X_MIN_PIN) ^ X_MIN_ENDSTOP_INVERTING) == 1) ||
		((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1) ||
	#endif //!TMC2130
		((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING) == 1))
	{
		_result = false;
   1eefe:	10 e0       	ldi	r17, 0x00	; 0
		if ((READ(Y_MIN_PIN) ^ Y_MIN_ENDSTOP_INVERTING) == 1) strcat(_error, "Y");
	#endif //!TMC2130
		if ((READ(Z_MIN_PIN) ^ Z_MIN_ENDSTOP_INVERTING) == 1) strcat(_error, "Z");
		lcd_selftest_error(TestError::Endstops, _error, "");
	}
	manage_heater();
   1ef00:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	manage_inactivity(true);
   1ef04:	81 e0       	ldi	r24, 0x01	; 1
   1ef06:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
	{
		_progress = lcd_selftest_screen(TestScreen::FansOk, _progress, 3, true, 2000);
		_result = lcd_selfcheck_endstops(); //With TMC2130, only the Z probe is tested.
	}

	if (_result)
   1ef0a:	11 23       	and	r17, r17
   1ef0c:	09 f4       	brne	.+2      	; 0x1ef10 <lcd_selftest()+0x286>
   1ef0e:	97 cf       	rjmp	.-210    	; 0x1ee3e <lcd_selftest()+0x1b4>
	{
		//current_position[Z_AXIS] += 15;									//move Z axis higher to avoid false triggering of Z end stop in case that we are very low - just above heatbed
		_progress = lcd_selftest_screen(TestScreen::AxisX, _progress, 3, true, 2000);
   1ef10:	00 ed       	ldi	r16, 0xD0	; 208
   1ef12:	17 e0       	ldi	r17, 0x07	; 7
   1ef14:	21 e0       	ldi	r18, 0x01	; 1
   1ef16:	43 e0       	ldi	r20, 0x03	; 3
   1ef18:	6f 2d       	mov	r22, r15
   1ef1a:	84 e0       	ldi	r24, 0x04	; 4
   1ef1c:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ef20:	f8 2e       	mov	r15, r24
#ifdef TMC2130
        _result = lcd_selfcheck_axis_sg(X_AXIS);
   1ef22:	80 e0       	ldi	r24, 0x00	; 0
   1ef24:	0e 94 1a de 	call	0x1bc34	; 0x1bc34 <lcd_selfcheck_axis_sg(unsigned char)>
	}




	if (_result)
   1ef28:	88 23       	and	r24, r24
   1ef2a:	09 f4       	brne	.+2      	; 0x1ef2e <lcd_selftest()+0x2a4>
   1ef2c:	88 cf       	rjmp	.-240    	; 0x1ee3e <lcd_selftest()+0x1b4>
	{
		_progress = lcd_selftest_screen(TestScreen::AxisX, _progress, 3, true, 0);
   1ef2e:	10 e0       	ldi	r17, 0x00	; 0
   1ef30:	00 e0       	ldi	r16, 0x00	; 0
   1ef32:	21 e0       	ldi	r18, 0x01	; 1
   1ef34:	43 e0       	ldi	r20, 0x03	; 3
   1ef36:	6f 2d       	mov	r22, r15
   1ef38:	84 e0       	ldi	r24, 0x04	; 4
   1ef3a:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
	}


	if (_result)
	{
		_progress = lcd_selftest_screen(TestScreen::AxisY, _progress, 3, true, 1500);
   1ef3e:	0c ed       	ldi	r16, 0xDC	; 220
   1ef40:	15 e0       	ldi	r17, 0x05	; 5
   1ef42:	21 e0       	ldi	r18, 0x01	; 1
   1ef44:	43 e0       	ldi	r20, 0x03	; 3
   1ef46:	68 2f       	mov	r22, r24
   1ef48:	85 e0       	ldi	r24, 0x05	; 5
   1ef4a:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ef4e:	f8 2e       	mov	r15, r24
#ifdef TMC2130
		_result = lcd_selfcheck_axis_sg(Y_AXIS);
   1ef50:	81 e0       	ldi	r24, 0x01	; 1
   1ef52:	0e 94 1a de 	call	0x1bc34	; 0x1bc34 <lcd_selfcheck_axis_sg(unsigned char)>
#else
		_result = lcd_selfcheck_axis(Y_AXIS, Y_MAX_POS);
#endif // TMC2130
	}

	if (_result)
   1ef56:	88 23       	and	r24, r24
   1ef58:	09 f4       	brne	.+2      	; 0x1ef5c <lcd_selftest()+0x2d2>
   1ef5a:	71 cf       	rjmp	.-286    	; 0x1ee3e <lcd_selftest()+0x1b4>
	{
		_progress = lcd_selftest_screen(TestScreen::AxisZ, _progress, 3, true, 0);
   1ef5c:	10 e0       	ldi	r17, 0x00	; 0
   1ef5e:	00 e0       	ldi	r16, 0x00	; 0
   1ef60:	21 e0       	ldi	r18, 0x01	; 1
   1ef62:	43 e0       	ldi	r20, 0x03	; 3
   1ef64:	6f 2d       	mov	r22, r15
   1ef66:	86 e0       	ldi	r24, 0x06	; 6
   1ef68:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1ef6c:	f8 2e       	mov	r15, r24


	if (_result)
	{
#ifdef TMC2130
		tmc2130_home_exit();
   1ef6e:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
   1ef72:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
		enable_endstops(false);
#endif

		//homeaxis(X_AXIS);
		//homeaxis(Y_AXIS);
        current_position[X_AXIS] = pgm_read_float(bed_ref_points_4);
   1ef76:	ed ef       	ldi	r30, 0xFD	; 253
   1ef78:	f4 ea       	ldi	r31, 0xA4	; 164
   1ef7a:	85 91       	lpm	r24, Z+
   1ef7c:	95 91       	lpm	r25, Z+
   1ef7e:	a5 91       	lpm	r26, Z+
   1ef80:	b4 91       	lpm	r27, Z
   1ef82:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   1ef86:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   1ef8a:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   1ef8e:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
		current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4+1);
   1ef92:	e1 e0       	ldi	r30, 0x01	; 1
   1ef94:	f5 ea       	ldi	r31, 0xA5	; 165
   1ef96:	65 91       	lpm	r22, Z+
   1ef98:	75 91       	lpm	r23, Z+
   1ef9a:	85 91       	lpm	r24, Z+
   1ef9c:	94 91       	lpm	r25, Z
#ifdef TMC2130
		//current_position[X_AXIS] += 0;
		current_position[Y_AXIS] += 4;
   1ef9e:	20 e0       	ldi	r18, 0x00	; 0
   1efa0:	30 e0       	ldi	r19, 0x00	; 0
   1efa2:	40 e8       	ldi	r20, 0x80	; 128
   1efa4:	50 e4       	ldi	r21, 0x40	; 64
   1efa6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1efaa:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   1efae:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   1efb2:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   1efb6:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
#endif //TMC2130
		raise_z(10);
   1efba:	60 e0       	ldi	r22, 0x00	; 0
   1efbc:	70 e0       	ldi	r23, 0x00	; 0
   1efbe:	80 e2       	ldi	r24, 0x20	; 32
   1efc0:	91 e4       	ldi	r25, 0x41	; 65
   1efc2:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
        set_destination_to_current();
   1efc6:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
		_progress = lcd_selftest_screen(TestScreen::AxisZ, _progress, 3, true, 1500);
   1efca:	0c ed       	ldi	r16, 0xDC	; 220
   1efcc:	15 e0       	ldi	r17, 0x05	; 5
   1efce:	21 e0       	ldi	r18, 0x01	; 1
   1efd0:	43 e0       	ldi	r20, 0x03	; 3
   1efd2:	6f 2d       	mov	r22, r15
   1efd4:	86 e0       	ldi	r24, 0x06	; 6
   1efd6:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
#ifdef TMC2130
		homeaxis(Z_AXIS); //In case of failure, the code gets stuck in this function.
   1efda:	50 e0       	ldi	r21, 0x00	; 0
   1efdc:	40 e0       	ldi	r20, 0x00	; 0
   1efde:	61 e0       	ldi	r22, 0x01	; 1
   1efe0:	82 e0       	ldi	r24, 0x02	; 2
   1efe2:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
#else
        _result = lcd_selfcheck_axis(Z_AXIS, Z_MAX_POS);
#endif //TMC2130

		//raise Z to not damage the bed during and hotend testing
		raise_z(20);
   1efe6:	60 e0       	ldi	r22, 0x00	; 0
   1efe8:	70 e0       	ldi	r23, 0x00	; 0
   1efea:	80 ea       	ldi	r24, 0xA0	; 160
   1efec:	91 e4       	ldi	r25, 0x41	; 65
   1efee:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
	}

#ifdef TMC2130
	if (_result)
	{
		raise_z(10);
   1eff2:	60 e0       	ldi	r22, 0x00	; 0
   1eff4:	70 e0       	ldi	r23, 0x00	; 0
   1eff6:	80 e2       	ldi	r24, 0x20	; 32
   1eff8:	91 e4       	ldi	r25, 0x41	; 65
   1effa:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
		_progress = lcd_selftest_screen(TestScreen::Home, 0, 2, true, 0);
   1effe:	10 e0       	ldi	r17, 0x00	; 0
   1f000:	00 e0       	ldi	r16, 0x00	; 0
   1f002:	21 e0       	ldi	r18, 0x01	; 1
   1f004:	42 e0       	ldi	r20, 0x02	; 2
   1f006:	60 e0       	ldi	r22, 0x00	; 0
   1f008:	8e e0       	ldi	r24, 0x0E	; 14
   1f00a:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
		bool bres = tmc2130_home_calibrate(X_AXIS);
   1f00e:	80 e0       	ldi	r24, 0x00	; 0
   1f010:	0f 94 a7 23 	call	0x2474e	; 0x2474e <tmc2130_home_calibrate(unsigned char)>
   1f014:	e8 2e       	mov	r14, r24
		_progress = lcd_selftest_screen(TestScreen::Home, 1, 2, true, 0);
   1f016:	21 e0       	ldi	r18, 0x01	; 1
   1f018:	42 e0       	ldi	r20, 0x02	; 2
   1f01a:	61 e0       	ldi	r22, 0x01	; 1
   1f01c:	8e e0       	ldi	r24, 0x0E	; 14
   1f01e:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
		bres &= tmc2130_home_calibrate(Y_AXIS);
   1f022:	81 e0       	ldi	r24, 0x01	; 1
   1f024:	0f 94 a7 23 	call	0x2474e	; 0x2474e <tmc2130_home_calibrate(unsigned char)>
   1f028:	e8 22       	and	r14, r24
		_progress = lcd_selftest_screen(TestScreen::Home, 2, 2, true, 0);
   1f02a:	21 e0       	ldi	r18, 0x01	; 1
   1f02c:	42 e0       	ldi	r20, 0x02	; 2
   1f02e:	62 e0       	ldi	r22, 0x02	; 2
   1f030:	8e e0       	ldi	r24, 0x0E	; 14
   1f032:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1f036:	f8 2e       	mov	r15, r24
		if (bres)
   1f038:	ee 20       	and	r14, r14
   1f03a:	09 f4       	brne	.+2      	; 0x1f03e <lcd_selftest()+0x3b4>
   1f03c:	00 cf       	rjmp	.-512    	; 0x1ee3e <lcd_selftest()+0x1b4>
   1f03e:	61 e0       	ldi	r22, 0x01	; 1
   1f040:	88 ef       	ldi	r24, 0xF8	; 248
   1f042:	9e e0       	ldi	r25, 0x0E	; 14
   1f044:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	}
#endif //TMC2130

	if (_result)
	{
		_progress = lcd_selftest_screen(TestScreen::Bed, _progress, 3, true, 2000);
   1f048:	00 ed       	ldi	r16, 0xD0	; 208
   1f04a:	17 e0       	ldi	r17, 0x07	; 7
   1f04c:	21 e0       	ldi	r18, 0x01	; 1
   1f04e:	43 e0       	ldi	r20, 0x03	; 3
   1f050:	6f 2d       	mov	r22, r15
   1f052:	87 e0       	ldi	r24, 0x07	; 7
   1f054:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1f058:	f8 2e       	mov	r15, r24
		_result = lcd_selfcheck_check_heater(true);
   1f05a:	81 e0       	ldi	r24, 0x01	; 1
   1f05c:	0e 94 fa dc 	call	0x1b9f4	; 0x1b9f4 <lcd_selfcheck_check_heater(bool)>
	}

    if (_result)
   1f060:	88 23       	and	r24, r24
   1f062:	09 f4       	brne	.+2      	; 0x1f066 <lcd_selftest()+0x3dc>
   1f064:	ec ce       	rjmp	.-552    	; 0x1ee3e <lcd_selftest()+0x1b4>
    {
        _progress = lcd_selftest_screen(TestScreen::Hotend, _progress, 3, true, 1000);
   1f066:	08 ee       	ldi	r16, 0xE8	; 232
   1f068:	13 e0       	ldi	r17, 0x03	; 3
   1f06a:	21 e0       	ldi	r18, 0x01	; 1
   1f06c:	43 e0       	ldi	r20, 0x03	; 3
   1f06e:	6f 2d       	mov	r22, r15
   1f070:	88 e0       	ldi	r24, 0x08	; 8
   1f072:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1f076:	f8 2e       	mov	r15, r24
        _result = lcd_selfcheck_check_heater(false);
   1f078:	80 e0       	ldi	r24, 0x00	; 0
   1f07a:	0e 94 fa dc 	call	0x1b9f4	; 0x1b9f4 <lcd_selfcheck_check_heater(bool)>
   1f07e:	e8 2e       	mov	r14, r24
    }
	if (_result)
   1f080:	88 23       	and	r24, r24
   1f082:	09 f4       	brne	.+2      	; 0x1f086 <lcd_selftest()+0x3fc>
   1f084:	dc ce       	rjmp	.-584    	; 0x1ee3e <lcd_selftest()+0x1b4>
	{
		_progress = lcd_selftest_screen(TestScreen::HotendOk, _progress, 3, true, 2000); //nozzle ok
   1f086:	00 ed       	ldi	r16, 0xD0	; 208
   1f088:	17 e0       	ldi	r17, 0x07	; 7
   1f08a:	21 e0       	ldi	r18, 0x01	; 1
   1f08c:	43 e0       	ldi	r20, 0x03	; 3
   1f08e:	6f 2d       	mov	r22, r15
   1f090:	89 e0       	ldi	r24, 0x09	; 9
   1f092:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
			}
        } else
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_IR) || (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
        {
#if FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125
			_progress = lcd_selftest_screen(TestScreen::Fsensor, _progress, 3, true, 2000); //check filaments sensor
   1f096:	21 e0       	ldi	r18, 0x01	; 1
   1f098:	43 e0       	ldi	r20, 0x03	; 3
   1f09a:	68 2f       	mov	r22, r24
   1f09c:	8a e0       	ldi	r24, 0x0A	; 10
   1f09e:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
   1f0a2:	f8 2e       	mov	r15, r24

#ifdef FILAMENT_SENSOR
#if FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125
static bool lcd_selftest_fsensor(void)
{
	fsensor.init();
   1f0a4:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
	if (fsensor.isError())
   1f0a8:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1f0ac:	83 30       	cpi	r24, 0x03	; 3
   1f0ae:	29 f4       	brne	.+10     	; 0x1f0ba <lcd_selftest()+0x430>
	{
		lcd_selftest_error(TestError::WiringFsensor, "", "");
   1f0b0:	69 ef       	ldi	r22, 0xF9	; 249
   1f0b2:	72 e0       	ldi	r23, 0x02	; 2
   1f0b4:	8a e0       	ldi	r24, 0x0A	; 10
   1f0b6:	0f 94 ad 9f 	call	0x33f5a	; 0x33f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_IR) || (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
        {
#if FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125
			_progress = lcd_selftest_screen(TestScreen::Fsensor, _progress, 3, true, 2000); //check filaments sensor
               _result = lcd_selftest_fsensor();
			if (_result)
   1f0ba:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   1f0be:	83 30       	cpi	r24, 0x03	; 3
   1f0c0:	09 f4       	brne	.+2      	; 0x1f0c4 <lcd_selftest()+0x43a>
   1f0c2:	bd ce       	rjmp	.-646    	; 0x1ee3e <lcd_selftest()+0x1b4>
			{
				_progress = lcd_selftest_screen(TestScreen::FsensorOk, _progress, 3, true, 2000); //fil sensor OK
   1f0c4:	00 ed       	ldi	r16, 0xD0	; 208
   1f0c6:	17 e0       	ldi	r17, 0x07	; 7
   1f0c8:	21 e0       	ldi	r18, 0x01	; 1
   1f0ca:	43 e0       	ldi	r20, 0x03	; 3
   1f0cc:	6f 2d       	mov	r22, r15
   1f0ce:	8b e0       	ldi	r24, 0x0B	; 11
   1f0d0:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
        }
    }
#endif //FILAMENT_SENSOR
	if (_result)
	{
		_progress = lcd_selftest_screen(TestScreen::AllCorrect, _progress, 3, true, 5000); //all correct
   1f0d4:	08 e8       	ldi	r16, 0x88	; 136
   1f0d6:	13 e1       	ldi	r17, 0x13	; 19
   1f0d8:	21 e0       	ldi	r18, 0x01	; 1
   1f0da:	43 e0       	ldi	r20, 0x03	; 3
   1f0dc:	68 2f       	mov	r22, r24
   1f0de:	8c e0       	ldi	r24, 0x0C	; 12
   1f0e0:	0e 94 60 db 	call	0x1b6c0	; 0x1b6c0 <lcd_selftest_screen(TestScreen, unsigned char, unsigned char, bool, unsigned int)>
    lcd_setalertstatus_(message, severity, true);
}

void lcd_reset_alert_level()
{
    lcd_status_message_level = 0;
   1f0e4:	10 92 d5 03 	sts	0x03D5, r1	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
	else
	{
		_progress = lcd_selftest_screen(TestScreen::Failed, _progress, 3, true, 5000);
	}
	lcd_reset_alert_level();
	enquecommand_P(MSG_M84);
   1f0e8:	61 e0       	ldi	r22, 0x01	; 1
   1f0ea:	82 ea       	ldi	r24, 0xA2	; 162
   1f0ec:	9a e6       	ldi	r25, 0x6A	; 106
   1f0ee:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
	lcd_update_enable(true);
   1f0f2:	81 e0       	ldi	r24, 0x01	; 1
   1f0f4:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>

	if (_result)
   1f0f8:	ee 20       	and	r14, r14
   1f0fa:	71 f1       	breq	.+92     	; 0x1f158 <lcd_selftest()+0x4ce>
	{
		calibration_status_set(CALIBRATION_STATUS_SELFTEST);
   1f0fc:	81 e0       	ldi	r24, 0x01	; 1
   1f0fe:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
		lcd_setstatuspgm(_T(MSG_SELFTEST_OK));
   1f102:	87 e6       	ldi	r24, 0x67	; 103
   1f104:	98 e4       	ldi	r25, 0x48	; 72
   1f106:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f10a:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
		lcd_return_to_status();
   1f10e:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
	else
	{
		LCD_ALERTMESSAGERPGM(_T(MSG_SELFTEST_FAILED));
	}
	#ifdef TMC2130
	  FORCE_HIGH_POWER_END;
   1f112:	80 e0       	ldi	r24, 0x00	; 0
   1f114:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
	#endif // TMC2130

    FORCE_BL_ON_END;
   1f118:	80 e0       	ldi	r24, 0x00	; 0
   1f11a:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

    KEEPALIVE_STATE(NOT_BUSY);
   1f11e:	81 e0       	ldi	r24, 0x01	; 1
   1f120:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
	return(_result);
}
   1f124:	8e 2d       	mov	r24, r14
   1f126:	0f 90       	pop	r0
   1f128:	0f 90       	pop	r0
   1f12a:	0f 90       	pop	r0
   1f12c:	0f 90       	pop	r0
   1f12e:	df 91       	pop	r29
   1f130:	cf 91       	pop	r28
   1f132:	1f 91       	pop	r17
   1f134:	0f 91       	pop	r16
   1f136:	ff 90       	pop	r15
   1f138:	ef 90       	pop	r14
   1f13a:	df 90       	pop	r13
   1f13c:	cf 90       	pop	r12
   1f13e:	08 95       	ret
	if (_swapped_fan) {
		//turn on print fan and check that left hotend fan is not spinning
		_result = lcd_selftest_manual_fan_check(1, true);
		if (_result) {
			//print fan is stil turned on; check that it is spinning
			_result = lcd_selftest_manual_fan_check(1, false, true);
   1f140:	61 e0       	ldi	r22, 0x01	; 1
   1f142:	80 e0       	ldi	r24, 0x00	; 0
   1f144:	0f 94 9a a0 	call	0x34134	; 0x34134 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]>
			if (!_result){
   1f148:	81 11       	cpse	r24, r1
   1f14a:	9a ce       	rjmp	.-716    	; 0x1ee80 <lcd_selftest()+0x1f6>
				lcd_selftest_error(TestError::PrintFan, "", "");
   1f14c:	69 ef       	ldi	r22, 0xF9	; 249
   1f14e:	72 e0       	ldi	r23, 0x02	; 2
   1f150:	85 e0       	ldi	r24, 0x05	; 5
   1f152:	82 ce       	rjmp	.-764    	; 0x1ee58 <lcd_selftest()+0x1ce>
#endif //not defined TMC2130


static bool lcd_selfcheck_endstops()
{
	bool _result = true;
   1f154:	11 e0       	ldi	r17, 0x01	; 1
   1f156:	d4 ce       	rjmp	.-600    	; 0x1ef00 <lcd_selftest()+0x276>
		lcd_setstatuspgm(_T(MSG_SELFTEST_OK));
		lcd_return_to_status();
	}
	else
	{
		LCD_ALERTMESSAGERPGM(_T(MSG_SELFTEST_FAILED));
   1f158:	85 ee       	ldi	r24, 0xE5	; 229
   1f15a:	95 e5       	ldi	r25, 0x55	; 85
   1f15c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f160:	62 e0       	ldi	r22, 0x02	; 2
   1f162:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
   1f166:	d5 cf       	rjmp	.-86     	; 0x1f112 <lcd_selftest()+0x488>

0001f168 <lcd_selftest_v()>:
}
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)

static void lcd_selftest_v()
{
	(void)lcd_selftest();
   1f168:	0c 94 45 f6 	jmp	0x1ec8a	; 0x1ec8a <lcd_selftest()>

0001f16c <resume_print_checks()>:
    return 0;
}

bool resume_print_checks() {
    // reset the lcd status so that a newer error will be shown
    lcd_return_to_status();
   1f16c:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
    lcd_setalertstatus_(message, severity, true);
}

void lcd_reset_alert_level()
{
    lcd_status_message_level = 0;
   1f170:	10 92 d5 03 	sts	0x03D5, r1	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
    temp_error_state.assert = true;
}

bool get_temp_error()
{
    return temp_error_state.v;
   1f174:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    lcd_reset_alert_level();

    // ensure thermal issues (temp or fan) are resolved before we allow to resume
    if (get_temp_error()
#ifdef FANCHECK
        || fan_error_selftest()
   1f178:	81 11       	cpse	r24, r1
   1f17a:	32 c0       	rjmp	.+100    	; 0x1f1e0 <resume_print_checks()+0x74>
}

static bool fan_error_selftest()
{
#ifdef FANCHECK
    if (!fans_check_enabled) return 0;
   1f17c:	80 91 38 02 	lds	r24, 0x0238	; 0x800238 <fans_check_enabled>
   1f180:	81 11       	cpse	r24, r1
   1f182:	02 c0       	rjmp	.+4      	; 0x1f188 <resume_print_checks()+0x1c>
#endif
        ) {
        return false; // abort if error persists
    }

    return true;
   1f184:	81 e0       	ldi	r24, 0x01	; 1
   1f186:	08 95       	ret
static bool fan_error_selftest()
{
#ifdef FANCHECK
    if (!fans_check_enabled) return 0;

    lcd_selftest_setfan(255);
   1f188:	8f ef       	ldi	r24, 0xFF	; 255
   1f18a:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
    setExtruderAutoFanState(3); //force enables the hotend fan
   1f18e:	83 e0       	ldi	r24, 0x03	; 3
   1f190:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
#ifdef FAN_SOFT_PWM
    extruder_autofan_last_check = _millis();
   1f194:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   1f198:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
   1f19c:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
   1f1a0:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
   1f1a4:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
    fan_measuring = true;
   1f1a8:	81 e0       	ldi	r24, 0x01	; 1
   1f1aa:	80 93 6f 06 	sts	0x066F, r24	; 0x80066f <fan_measuring>
#endif //FAN_SOFT_PWM
    _delay(1000); //delay_keep_alive would turn off hotend fan, because temerature is too low (maybe)
   1f1ae:	68 ee       	ldi	r22, 0xE8	; 232
   1f1b0:	73 e0       	ldi	r23, 0x03	; 3
   1f1b2:	80 e0       	ldi	r24, 0x00	; 0
   1f1b4:	90 e0       	ldi	r25, 0x00	; 0
   1f1b6:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
    manage_heater();
   1f1ba:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
    setExtruderAutoFanState(1); //releases lock on the hotend fan
   1f1be:	81 e0       	ldi	r24, 0x01	; 1
   1f1c0:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
    lcd_selftest_setfan(0);
   1f1c4:	80 e0       	ldi	r24, 0x00	; 0
   1f1c6:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
#ifdef TACH_0
    if (fan_speed[0] <= 20) { //hotend fan error
   1f1ca:	80 91 c9 03 	lds	r24, 0x03C9	; 0x8003c9 <fan_speed>
   1f1ce:	90 91 ca 03 	lds	r25, 0x03CA	; 0x8003ca <fan_speed+0x1>
   1f1d2:	45 97       	sbiw	r24, 0x15	; 21
   1f1d4:	3c f4       	brge	.+14     	; 0x1f1e4 <resume_print_checks()+0x78>
        LCD_ALERTMESSAGERPGM(MSG_FANCHECK_HOTEND);
   1f1d6:	62 e0       	ldi	r22, 0x02	; 2
   1f1d8:	8a e3       	ldi	r24, 0x3A	; 58
   1f1da:	9a e6       	ldi	r25, 0x6A	; 106
        return 1;
    }
#endif
#ifdef TACH_1
    if (fan_speed[1] <= 20) { //print fan error
        LCD_ALERTMESSAGERPGM(MSG_FANCHECK_PRINT);
   1f1dc:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
    if (get_temp_error()
#ifdef FANCHECK
        || fan_error_selftest()
#endif
        ) {
        return false; // abort if error persists
   1f1e0:	80 e0       	ldi	r24, 0x00	; 0
    }

    return true;
}
   1f1e2:	08 95       	ret
        LCD_ALERTMESSAGERPGM(MSG_FANCHECK_HOTEND);
        return 1;
    }
#endif
#ifdef TACH_1
    if (fan_speed[1] <= 20) { //print fan error
   1f1e4:	80 91 cb 03 	lds	r24, 0x03CB	; 0x8003cb <fan_speed+0x2>
   1f1e8:	90 91 cc 03 	lds	r25, 0x03CC	; 0x8003cc <fan_speed+0x3>
   1f1ec:	45 97       	sbiw	r24, 0x15	; 21
   1f1ee:	54 f6       	brge	.-108    	; 0x1f184 <resume_print_checks()+0x18>
        LCD_ALERTMESSAGERPGM(MSG_FANCHECK_PRINT);
   1f1f0:	62 e0       	ldi	r22, 0x02	; 2
   1f1f2:	86 e2       	ldi	r24, 0x26	; 38
   1f1f4:	9a e6       	ldi	r25, 0x6A	; 106
   1f1f6:	f2 cf       	rjmp	.-28     	; 0x1f1dc <resume_print_checks()+0x70>

0001f1f8 <lcd_resume_print()>:
//! @todo It is not good to call restore_print_from_ram_and_continue() from function called by lcd_update(),
//! as restore_print_from_ram_and_continue() calls lcd_update() internally.
void lcd_resume_print()
{
    // reset lcd and ensure we can resume first
    if (!resume_print_checks()) return;
   1f1f8:	0e 94 b6 f8 	call	0x1f16c	; 0x1f16c <resume_print_checks()>
   1f1fc:	88 23       	and	r24, r24
   1f1fe:	51 f1       	breq	.+84     	; 0x1f254 <lcd_resume_print()+0x5c>

    cmdqueue_serial_disabled = false;
   1f200:	10 92 a6 03 	sts	0x03A6, r1	; 0x8003a6 <cmdqueue_serial_disabled>
    lcd_setstatuspgm(_T(MSG_FINISHING_MOVEMENTS));
   1f204:	89 e9       	ldi	r24, 0x99	; 153
   1f206:	92 e5       	ldi	r25, 0x52	; 82
   1f208:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f20c:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    st_synchronize();
   1f210:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    custom_message_type = CustomMsg::Resuming;
   1f214:	88 e0       	ldi	r24, 0x08	; 8
   1f216:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
{
#if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)
#ifdef EXTRUDER_ALTFAN_DETECT
    altfanStatus.altfanOverride = eeprom_read_byte((uint8_t*)EEPROM_ALTFAN_OVERRIDE);
#endif
    resetFanCheck();
   1f21a:	0e 94 68 74 	call	0xe8d0	; 0xe8d0 <resetFanCheck()>
    setExtruderAutoFanState(1);
   1f21e:	81 e0       	ldi	r24, 0x01	; 1
   1f220:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>

    // resume processing USB commands again and restore hotend fan state (in case the print was
    // stopped due to a thermal error)
    hotendDefaultAutoFanState();
    Stopped = false;
   1f224:	10 92 11 05 	sts	0x0511, r1	; 0x800511 <Stopped>

    restore_print_from_ram_and_continue(default_retraction);
   1f228:	60 e0       	ldi	r22, 0x00	; 0
   1f22a:	70 e0       	ldi	r23, 0x00	; 0
   1f22c:	80 e8       	ldi	r24, 0x80	; 128
   1f22e:	9f e3       	ldi	r25, 0x3F	; 63
   1f230:	0e 94 cb 67 	call	0xcf96	; 0xcf96 <restore_print_from_ram_and_continue(float)>

    did_pause_print = false;
   1f234:	10 92 e4 03 	sts	0x03E4, r1	; 0x8003e4 <did_pause_print>

    // Resume the print job timer if it was running
    if (print_job_timer.isPaused()) print_job_timer.start();
   1f238:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
   1f23c:	82 30       	cpi	r24, 0x02	; 2
   1f23e:	11 f4       	brne	.+4      	; 0x1f244 <lcd_resume_print()+0x4c>
   1f240:	0f 94 99 43 	call	0x28732	; 0x28732 <Stopwatch::start()>

    refresh_cmd_timeout();
   1f244:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
    SERIAL_PROTOCOLLNRPGM(MSG_HOST_ACTION_RESUMED);
   1f248:	8f e4       	ldi	r24, 0x4F	; 79
   1f24a:	9a e6       	ldi	r25, 0x6A	; 106
   1f24c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    custom_message_type = CustomMsg::Status;
   1f250:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
}
   1f254:	08 95       	ret

0001f256 <lcd_resume_usb_print()>:

//! @brief Resume paused USB/host print, send host action "resume"
void lcd_resume_usb_print()
{
    // reset lcd and ensure we can resume first
    if (!resume_print_checks()) return;
   1f256:	0e 94 b6 f8 	call	0x1f16c	; 0x1f16c <resume_print_checks()>
   1f25a:	88 23       	and	r24, r24
   1f25c:	21 f0       	breq	.+8      	; 0x1f266 <lcd_resume_usb_print()+0x10>

    // resume the usb host
    SERIAL_PROTOCOLLNRPGM(MSG_HOST_ACTION_ASK_RESUME);
   1f25e:	80 e6       	ldi	r24, 0x60	; 96
   1f260:	9a e6       	ldi	r25, 0x6A	; 106
   1f262:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
}
   1f266:	08 95       	ret

0001f268 <unload_filament(float)>:
}

/// @brief unload filament for single material printer (used in M600 and M702)
/// @param unloadLength Retract distance for removal (manual reload)
void unload_filament(float unloadLength)
{
   1f268:	cf 92       	push	r12
   1f26a:	df 92       	push	r13
   1f26c:	ef 92       	push	r14
   1f26e:	ff 92       	push	r15
   1f270:	cf 93       	push	r28
   1f272:	6b 01       	movw	r12, r22
   1f274:	7c 01       	movw	r14, r24
    custom_message_type = CustomMsg::FilamentLoading;
   1f276:	82 e0       	ldi	r24, 0x02	; 2
   1f278:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
    lcd_setstatuspgm(_T(MSG_UNLOADING_FILAMENT));
   1f27c:	8c e3       	ldi	r24, 0x3C	; 60
   1f27e:	92 e5       	ldi	r25, 0x52	; 82
   1f280:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f284:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

    FSensorBlockRunout fsBlockRunout;
   1f288:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

    current_position[E_AXIS] -= FILAMENT_UNLOAD_FAST_RETRACT_LENGTH;
   1f28c:	20 e0       	ldi	r18, 0x00	; 0
   1f28e:	30 e0       	ldi	r19, 0x00	; 0
   1f290:	44 e3       	ldi	r20, 0x34	; 52
   1f292:	52 e4       	ldi	r21, 0x42	; 66
   1f294:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   1f298:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   1f29c:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   1f2a0:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   1f2a4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1f2a8:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   1f2ac:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   1f2b0:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   1f2b4:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
    plan_buffer_line_curposXYZE(FILAMENT_UNLOAD_FAST_RETRACT_FEEDRATE);
   1f2b8:	6a e0       	ldi	r22, 0x0A	; 10
   1f2ba:	77 e5       	ldi	r23, 0x57	; 87
   1f2bc:	8d ea       	ldi	r24, 0xAD	; 173
   1f2be:	92 e4       	ldi	r25, 0x42	; 66
   1f2c0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   1f2c4:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    current_position[E_AXIS] -= FILAMENT_UNLOAD_SLOW_RETRACT_LENGTH;
   1f2c8:	20 e0       	ldi	r18, 0x00	; 0
   1f2ca:	30 e0       	ldi	r19, 0x00	; 0
   1f2cc:	4c e0       	ldi	r20, 0x0C	; 12
   1f2ce:	52 e4       	ldi	r21, 0x42	; 66
   1f2d0:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   1f2d4:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   1f2d8:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   1f2dc:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   1f2e0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   1f2e4:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   1f2e8:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   1f2ec:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   1f2f0:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
    plan_buffer_line_curposXYZE(FILAMENT_UNLOAD_SLOW_RETRACT_FEEDRATE);
   1f2f4:	69 e2       	ldi	r22, 0x29	; 41
   1f2f6:	7c e5       	ldi	r23, 0x5C	; 92
   1f2f8:	85 e8       	ldi	r24, 0x85	; 133
   1f2fa:	91 e4       	ldi	r25, 0x41	; 65
   1f2fc:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   1f300:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    // Configurable length, by default it's 0.
    // only plan the move if the length is set to a non-zero value
    if (unloadLength)
   1f304:	20 e0       	ldi	r18, 0x00	; 0
   1f306:	30 e0       	ldi	r19, 0x00	; 0
   1f308:	a9 01       	movw	r20, r18
   1f30a:	c7 01       	movw	r24, r14
   1f30c:	b6 01       	movw	r22, r12
   1f30e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1f312:	88 23       	and	r24, r24
   1f314:	e1 f0       	breq	.+56     	; 0x1f34e <unload_filament(float)+0xe6>
    {
        current_position[E_AXIS] += unloadLength;
   1f316:	a7 01       	movw	r20, r14
   1f318:	96 01       	movw	r18, r12
   1f31a:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   1f31e:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   1f322:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   1f326:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   1f32a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   1f32e:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   1f332:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   1f336:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   1f33a:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
        plan_buffer_line_curposXYZE(FILAMENT_CHANGE_UNLOAD_FEEDRATE);
   1f33e:	60 e0       	ldi	r22, 0x00	; 0
   1f340:	70 e0       	ldi	r23, 0x00	; 0
   1f342:	80 e2       	ldi	r24, 0x20	; 32
   1f344:	91 e4       	ldi	r25, 0x41	; 65
   1f346:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   1f34a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    }

	lcd_display_message_fullscreen_P(_T(MSG_PULL_OUT_FILAMENT));
   1f34e:	8c e6       	ldi	r24, 0x6C	; 108
   1f350:	95 e4       	ldi	r25, 0x45	; 69
   1f352:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f356:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>

	//disable extruder steppers so filament can be removed
	disable_e0();
   1f35a:	14 9a       	sbi	0x02, 4	; 2
	_delay(100);
   1f35c:	64 e6       	ldi	r22, 0x64	; 100
   1f35e:	70 e0       	ldi	r23, 0x00	; 0
   1f360:	80 e0       	ldi	r24, 0x00	; 0
   1f362:	90 e0       	ldi	r25, 0x00	; 0
   1f364:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>

	Sound_MakeSound(e_SOUND_TYPE_StandardPrompt);
   1f368:	82 e0       	ldi	r24, 0x02	; 2
   1f36a:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
   1f36e:	c3 e3       	ldi	r28, 0x33	; 51
	uint8_t counterBeep = 0;
	while (!lcd_clicked() && (counterBeep < 50)) {
   1f370:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1f374:	81 11       	cpse	r24, r1
   1f376:	07 c0       	rjmp	.+14     	; 0x1f386 <unload_filament(float)+0x11e>
   1f378:	c1 50       	subi	r28, 0x01	; 1
   1f37a:	29 f0       	breq	.+10     	; 0x1f386 <unload_filament(float)+0x11e>
		delay_keep_alive(100);
   1f37c:	84 e6       	ldi	r24, 0x64	; 100
   1f37e:	90 e0       	ldi	r25, 0x00	; 0
   1f380:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   1f384:	f5 cf       	rjmp	.-22     	; 0x1f370 <unload_filament(float)+0x108>
		counterBeep++;
	}
	st_synchronize();
   1f386:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
	while (lcd_clicked()) delay_keep_alive(100);
   1f38a:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   1f38e:	88 23       	and	r24, r24
   1f390:	29 f0       	breq	.+10     	; 0x1f39c <unload_filament(float)+0x134>
   1f392:	84 e6       	ldi	r24, 0x64	; 100
   1f394:	90 e0       	ldi	r25, 0x00	; 0
   1f396:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   1f39a:	f7 cf       	rjmp	.-18     	; 0x1f38a <unload_filament(float)+0x122>

	lcd_update_enable(true);
   1f39c:	81 e0       	ldi	r24, 0x01	; 1
   1f39e:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>

	lcd_setstatuspgm(MSG_WELCOME);
   1f3a2:	8f ec       	ldi	r24, 0xCF	; 207
   1f3a4:	9f e6       	ldi	r25, 0x6F	; 111
   1f3a6:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
	custom_message_type = CustomMsg::Status;
   1f3aa:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
	clearFilamentAction();
   1f3ae:	0f 94 9f 21 	call	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
}
   1f3b2:	cf 91       	pop	r28
   1f3b4:	ff 90       	pop	r15
   1f3b6:	ef 90       	pop	r14
   1f3b8:	df 90       	pop	r13
   1f3ba:	cf 90       	pop	r12
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
//    SERIAL_ECHOLNPGM("FSBlockRunout");
}

FSensorBlockRunout::~FSensorBlockRunout() {
    fsensor.settings_init(); // restore filament runout state.
   1f3bc:	0d 94 34 7c 	jmp	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>

0001f3c0 <lcd_wizard(WizState)>:
//!  ---------------------- | ----------------
//! WizState::Run           | Main entry point
//! WizState::RepeatLay1Cal | Entry point after passing 1st layer calibration
//! WizState::LoadFilHot    | Entry point after temporarily left for preheat before load filament
void lcd_wizard(WizState state)
{
   1f3c0:	af 92       	push	r10
   1f3c2:	bf 92       	push	r11
   1f3c4:	cf 92       	push	r12
   1f3c6:	df 92       	push	r13
   1f3c8:	ef 92       	push	r14
   1f3ca:	ff 92       	push	r15
   1f3cc:	0f 93       	push	r16
   1f3ce:	1f 93       	push	r17
   1f3d0:	cf 93       	push	r28
   1f3d2:	c8 2f       	mov	r28, r24
    using S = WizState;
	bool end = false;
	uint8_t wizard_event;
	// Make sure EEPROM_WIZARD_ACTIVE is true if entering using different entry point
	// other than WizState::Run - it is useful for debugging wizard.
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);
   1f3d4:	88 23       	and	r24, r24
   1f3d6:	29 f0       	breq	.+10     	; 0x1f3e2 <lcd_wizard(WizState)+0x22>
   1f3d8:	61 e0       	ldi	r22, 0x01	; 1
   1f3da:	8f e5       	ldi	r24, 0x5F	; 95
   1f3dc:	9f e0       	ldi	r25, 0x0F	; 15
   1f3de:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

    FORCE_BL_ON_START;
   1f3e2:	81 e0       	ldi	r24, 0x01	; 1
   1f3e4:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f3e8:	88 e0       	ldi	r24, 0x08	; 8
   1f3ea:	e8 2e       	mov	r14, r24
   1f3ec:	89 e8       	ldi	r24, 0x89	; 137
   1f3ee:	f8 2e       	mov	r15, r24
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   1f3f0:	97 ed       	ldi	r25, 0xD7	; 215
   1f3f2:	c9 2e       	mov	r12, r25
   1f3f4:	d1 2c       	mov	r13, r1
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   1f3f6:	2c e3       	ldi	r18, 0x3C	; 60
   1f3f8:	a2 2e       	mov	r10, r18
   1f3fa:	b1 2c       	mov	r11, r1
   1f3fc:	0c 2f       	mov	r16, r28
   1f3fe:	10 e0       	ldi	r17, 0x00	; 0
   1f400:	1f 92       	push	r1
   1f402:	cf 93       	push	r28
   1f404:	ff 92       	push	r15
   1f406:	ef 92       	push	r14
   1f408:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
		switch (state) {
   1f40c:	0f 90       	pop	r0
   1f40e:	0f 90       	pop	r0
   1f410:	0f 90       	pop	r0
   1f412:	0f 90       	pop	r0
   1f414:	cf 30       	cpi	r28, 0x0F	; 15
   1f416:	a0 f7       	brcc	.-24     	; 0x1f400 <lcd_wizard(WizState)+0x40>
   1f418:	f8 01       	movw	r30, r16
   1f41a:	88 27       	eor	r24, r24
   1f41c:	ed 5e       	subi	r30, 0xED	; 237
   1f41e:	f5 40       	sbci	r31, 0x05	; 5
   1f420:	8f 4f       	sbci	r24, 0xFF	; 255
   1f422:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   1f426:	22 fa       	bst	r2, 2
   1f428:	72 fa       	bst	r7, 2
   1f42a:	98 fa       	.word	0xfa98	; ????
   1f42c:	a4 fa       	bst	r10, 4
   1f42e:	ae fa       	.word	0xfaae	; ????
   1f430:	e8 fa       	.word	0xfae8	; ????
   1f432:	f4 fa       	bst	r15, 4
   1f434:	0e fb       	.word	0xfb0e	; ????
   1f436:	25 fb       	bst	r18, 5
   1f438:	1f fb       	.word	0xfb1f	; ????
   1f43a:	29 fb       	.word	0xfb29	; ????
   1f43c:	37 fb       	bst	r19, 7
   1f43e:	40 fb       	bst	r20, 0
   1f440:	54 fb       	bst	r21, 4
   1f442:	54 fb       	bst	r21, 4
			// which results in distorted print.
			// This primarily happens when the printer is new and parked in 0,0
			// So any new printer will fail the first layer calibration unless being reset or the Stop function gets called.
			// We really must find a way to prevent the crash from happening before the printer is started - that would be the correct solution.
			// Btw. the flag may even trigger the viper situation on normal start this way and the user won't be able to find out why.
			saved_printing = false;
   1f444:	10 92 a9 0d 	sts	0x0DA9, r1	; 0x800da9 <saved_printing>

			if( eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE)==2){
   1f448:	8f e5       	ldi	r24, 0x5F	; 95
   1f44a:	9f e0       	ldi	r25, 0x0F	; 15
   1f44c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   1f450:	82 30       	cpi	r24, 0x02	; 2
   1f452:	39 f4       	brne	.+14     	; 0x1f462 <lcd_wizard(WizState)+0xa2>
				// printer pre-assembled: finish remaining steps
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_WELCOME_SHIPPING));
   1f454:	87 e4       	ldi	r24, 0x47	; 71
   1f456:	92 e4       	ldi	r25, 0x42	; 66
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_CLEAN_HEATBED));
				state = S::Lay1CalCold;
			}
			else
			{
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_ADDITIONAL_SHEETS));
   1f458:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f45c:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   1f460:	0f c0       	rjmp	.+30     	; 0x1f480 <lcd_wizard(WizState)+0xc0>
				// printer pre-assembled: finish remaining steps
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_WELCOME_SHIPPING));
				state = S::Restore;
			} else {
				// new printer, factory reset or manual invocation
				wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_WIZARD_WELCOME), false, LCD_LEFT_BUTTON_CHOICE);
   1f462:	82 ee       	ldi	r24, 0xE2	; 226
   1f464:	91 e4       	ldi	r25, 0x41	; 65
   1f466:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f46a:	40 e0       	ldi	r20, 0x00	; 0
   1f46c:	60 e0       	ldi	r22, 0x00	; 0
   1f46e:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
				if (wizard_event == LCD_LEFT_BUTTON_CHOICE) {
   1f472:	81 11       	cpse	r24, r1
   1f474:	07 c0       	rjmp	.+14     	; 0x1f484 <lcd_wizard(WizState)+0xc4>
   1f476:	61 e0       	ldi	r22, 0x01	; 1
   1f478:	8f e5       	ldi	r24, 0x5F	; 95
   1f47a:	9f e0       	ldi	r25, 0x0F	; 15
   1f47c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
				state = S::Lay1CalCold;
			}
			else
			{
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_ADDITIONAL_SHEETS));
				state = S::Restore;
   1f480:	c1 e0       	ldi	r28, 0x01	; 1
   1f482:	bc cf       	rjmp	.-136    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
   1f484:	60 e0       	ldi	r22, 0x00	; 0
   1f486:	8f e5       	ldi	r24, 0x5F	; 95
   1f488:	9f e0       	ldi	r25, 0x0F	; 15
   1f48a:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);

    FORCE_BL_ON_START;

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f48e:	10 e0       	ldi	r17, 0x00	; 0
   1f490:	00 e0       	ldi	r16, 0x00	; 0
			end = true;
			break;
		}
	}

    FORCE_BL_ON_END;
   1f492:	80 e0       	ldi	r24, 0x00	; 0
   1f494:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

    const char *msg = NULL;
	printf_P(_N("Wizard end state: %d\n"), (uint8_t)state);
   1f498:	1f 93       	push	r17
   1f49a:	0f 93       	push	r16
   1f49c:	84 ed       	ldi	r24, 0xD4	; 212
   1f49e:	99 e6       	ldi	r25, 0x69	; 105
   1f4a0:	9f 93       	push	r25
   1f4a2:	8f 93       	push	r24
   1f4a4:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	switch (state) {
   1f4a8:	0f 90       	pop	r0
   1f4aa:	0f 90       	pop	r0
   1f4ac:	0f 90       	pop	r0
   1f4ae:	0f 90       	pop	r0
   1f4b0:	cd 30       	cpi	r28, 0x0D	; 13
   1f4b2:	09 f4       	brne	.+2      	; 0x1f4b6 <lcd_wizard(WizState)+0xf6>
   1f4b4:	ff c0       	rjmp	.+510    	; 0x1f6b4 <lcd_wizard(WizState)+0x2f4>
   1f4b6:	ce 30       	cpi	r28, 0x0E	; 14
   1f4b8:	09 f4       	brne	.+2      	; 0x1f4bc <lcd_wizard(WizState)+0xfc>
   1f4ba:	11 c1       	rjmp	.+546    	; 0x1f6de <lcd_wizard(WizState)+0x31e>
	case S::Run:
		// user interrupted
		msg = _T(MSG_WIZARD_QUIT);
   1f4bc:	81 e0       	ldi	r24, 0x01	; 1
   1f4be:	9f e3       	ldi	r25, 0x3F	; 63

    FORCE_BL_ON_END;

    const char *msg = NULL;
	printf_P(_N("Wizard end state: %d\n"), (uint8_t)state);
	switch (state) {
   1f4c0:	cc 23       	and	r28, r28
   1f4c2:	09 f4       	brne	.+2      	; 0x1f4c6 <lcd_wizard(WizState)+0x106>
   1f4c4:	0e c1       	rjmp	.+540    	; 0x1f6e2 <lcd_wizard(WizState)+0x322>
		break;
	}
	if (msg) {
		lcd_show_fullscreen_message_and_wait_P(msg);
	}
	lcd_update_enable(true);
   1f4c6:	81 e0       	ldi	r24, 0x01	; 1
   1f4c8:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	lcd_update(2);
   1f4cc:	82 e0       	ldi	r24, 0x02	; 2
}
   1f4ce:	cf 91       	pop	r28
   1f4d0:	1f 91       	pop	r17
   1f4d2:	0f 91       	pop	r16
   1f4d4:	ff 90       	pop	r15
   1f4d6:	ef 90       	pop	r14
   1f4d8:	df 90       	pop	r13
   1f4da:	cf 90       	pop	r12
   1f4dc:	bf 90       	pop	r11
   1f4de:	af 90       	pop	r10
	}
	if (msg) {
		lcd_show_fullscreen_message_and_wait_P(msg);
	}
	lcd_update_enable(true);
	lcd_update(2);
   1f4e0:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
    lcd_setalertstatus_(message, severity, true);
}

void lcd_reset_alert_level()
{
    lcd_status_message_level = 0;
   1f4e4:	10 92 d5 03 	sts	0x03D5, r1	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
		case S::Restore:
			// clear any previous error for make _new_ errors visible
			lcd_reset_alert_level();

			// determine the next step in the required order
			if (!calibration_status_get(CALIBRATION_STATUS_SELFTEST)) {
   1f4e8:	81 e0       	ldi	r24, 0x01	; 1
   1f4ea:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
				state = S::Selftest;
   1f4ee:	c2 e0       	ldi	r28, 0x02	; 2
		case S::Restore:
			// clear any previous error for make _new_ errors visible
			lcd_reset_alert_level();

			// determine the next step in the required order
			if (!calibration_status_get(CALIBRATION_STATUS_SELFTEST)) {
   1f4f0:	88 23       	and	r24, r24
   1f4f2:	09 f4       	brne	.+2      	; 0x1f4f6 <lcd_wizard(WizState)+0x136>
   1f4f4:	83 cf       	rjmp	.-250    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				state = S::Selftest;
			} else if (!calibration_status_get(CALIBRATION_STATUS_XYZ)) {
   1f4f6:	82 e0       	ldi	r24, 0x02	; 2
   1f4f8:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
				// S::Xyz *includes* S::Z so it needs to come before
				// to avoid repeating Z alignment
				state = S::Xyz;
   1f4fc:	c3 e0       	ldi	r28, 0x03	; 3
			lcd_reset_alert_level();

			// determine the next step in the required order
			if (!calibration_status_get(CALIBRATION_STATUS_SELFTEST)) {
				state = S::Selftest;
			} else if (!calibration_status_get(CALIBRATION_STATUS_XYZ)) {
   1f4fe:	88 23       	and	r24, r24
   1f500:	09 f4       	brne	.+2      	; 0x1f504 <lcd_wizard(WizState)+0x144>
   1f502:	7c cf       	rjmp	.-264    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				// S::Xyz *includes* S::Z so it needs to come before
				// to avoid repeating Z alignment
				state = S::Xyz;
			} else if (!calibration_status_get(CALIBRATION_STATUS_Z)) {
   1f504:	84 e0       	ldi	r24, 0x04	; 4
   1f506:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
				state = S::Z;
   1f50a:	c4 e0       	ldi	r28, 0x04	; 4
				state = S::Selftest;
			} else if (!calibration_status_get(CALIBRATION_STATUS_XYZ)) {
				// S::Xyz *includes* S::Z so it needs to come before
				// to avoid repeating Z alignment
				state = S::Xyz;
			} else if (!calibration_status_get(CALIBRATION_STATUS_Z)) {
   1f50c:	88 23       	and	r24, r24
   1f50e:	09 f4       	brne	.+2      	; 0x1f512 <lcd_wizard(WizState)+0x152>
   1f510:	75 cf       	rjmp	.-278    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				state = S::Z;
#ifdef THERMAL_MODEL
			} else if (!calibration_status_get(CALIBRATION_STATUS_THERMAL_MODEL)) {
   1f512:	88 e0       	ldi	r24, 0x08	; 8
   1f514:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
				state = S::ThermalModel;
   1f518:	c5 e0       	ldi	r28, 0x05	; 5
				// to avoid repeating Z alignment
				state = S::Xyz;
			} else if (!calibration_status_get(CALIBRATION_STATUS_Z)) {
				state = S::Z;
#ifdef THERMAL_MODEL
			} else if (!calibration_status_get(CALIBRATION_STATUS_THERMAL_MODEL)) {
   1f51a:	88 23       	and	r24, r24
   1f51c:	09 f4       	brne	.+2      	; 0x1f520 <lcd_wizard(WizState)+0x160>
   1f51e:	6e cf       	rjmp	.-292    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				state = S::ThermalModel;
#endif //THERMAL_MODEL
			} else if (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) {
   1f520:	80 e1       	ldi	r24, 0x10	; 16
   1f522:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
				state = S::IsFil;
			} else {
				// all required steps completed, finish successfully
				state = S::Finish;
   1f526:	cd e0       	ldi	r28, 0x0D	; 13
				state = S::Z;
#ifdef THERMAL_MODEL
			} else if (!calibration_status_get(CALIBRATION_STATUS_THERMAL_MODEL)) {
				state = S::ThermalModel;
#endif //THERMAL_MODEL
			} else if (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST)) {
   1f528:	81 11       	cpse	r24, r1
   1f52a:	68 cf       	rjmp	.-304    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				state = S::IsFil;
   1f52c:	c6 e0       	ldi	r28, 0x06	; 6
   1f52e:	66 cf       	rjmp	.-308    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
				// all required steps completed, finish successfully
				state = S::Finish;
			}
			break;
		case S::Selftest:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_SELFTEST));
   1f530:	89 e9       	ldi	r24, 0x99	; 153
   1f532:	91 e4       	ldi	r25, 0x41	; 65
   1f534:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f538:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			wizard_event = lcd_selftest();
   1f53c:	0e 94 45 f6 	call	0x1ec8a	; 0x1ec8a <lcd_selftest()>
			state = (wizard_event ? S::Restore : S::Failed);
			break;
		case S::Xyz:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_XYZ_CAL));
			wizard_event = gcode_M45(false, 0);
			state = (wizard_event ? S::Restore : S::Failed);
   1f540:	81 11       	cpse	r24, r1
   1f542:	9e cf       	rjmp	.-196    	; 0x1f480 <lcd_wizard(WizState)+0xc0>
			}
			break;
		case S::Selftest:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_SELFTEST));
			wizard_event = lcd_selftest();
			state = (wizard_event ? S::Restore : S::Failed);
   1f544:	ce e0       	ldi	r28, 0x0E	; 14
   1f546:	5a cf       	rjmp	.-332    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
			break;
		case S::Xyz:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_XYZ_CAL));
   1f548:	8b e5       	ldi	r24, 0x5B	; 91
   1f54a:	91 e4       	ldi	r25, 0x41	; 65
   1f54c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f550:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			wizard_event = gcode_M45(false, 0);
   1f554:	80 e0       	ldi	r24, 0x00	; 0
   1f556:	0f 94 e4 8d 	call	0x31bc8	; 0x31bc8 <gcode_M45(bool, signed char) [clone .constprop.76]>
   1f55a:	f2 cf       	rjmp	.-28     	; 0x1f540 <lcd_wizard(WizState)+0x180>
			state = (wizard_event ? S::Restore : S::Failed);
			break;
		case S::Z:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_REMOVE_SHIPPING_HELPERS));
   1f55c:	83 e3       	ldi	r24, 0x33	; 51
   1f55e:	91 e4       	ldi	r25, 0x41	; 65
   1f560:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f564:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_REMOVE_TEST_PRINT));
   1f568:	85 e0       	ldi	r24, 0x05	; 5
   1f56a:	91 e4       	ldi	r25, 0x41	; 65
   1f56c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f570:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_Z_CAL));
   1f574:	85 ee       	ldi	r24, 0xE5	; 229
   1f576:	90 e4       	ldi	r25, 0x40	; 64
   1f578:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f57c:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			wizard_event = gcode_M45(true, 0);
   1f580:	81 e0       	ldi	r24, 0x01	; 1
   1f582:	0f 94 e4 8d 	call	0x31bc8	; 0x31bc8 <gcode_M45(bool, signed char) [clone .constprop.76]>
			if (!wizard_event) {
   1f586:	88 23       	and	r24, r24
   1f588:	e9 f2       	breq	.-70     	; 0x1f544 <lcd_wizard(WizState)+0x184>
				state = S::Failed;
			} else {
				raise_z_above(MIN_Z_FOR_SWAP);
   1f58a:	60 e0       	ldi	r22, 0x00	; 0
   1f58c:	70 e0       	ldi	r23, 0x00	; 0
   1f58e:	88 ed       	ldi	r24, 0xD8	; 216
   1f590:	91 e4       	ldi	r25, 0x41	; 65
   1f592:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
				if(!MMU2::mmu2.Enabled()) {
   1f596:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   1f59a:	81 30       	cpi	r24, 0x01	; 1
   1f59c:	09 f4       	brne	.+2      	; 0x1f5a0 <lcd_wizard(WizState)+0x1e0>
   1f59e:	70 cf       	rjmp	.-288    	; 0x1f480 <lcd_wizard(WizState)+0xc0>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   1f5a0:	d0 92 b7 0d 	sts	0x0DB7, r13	; 0x800db7 <target_temperature+0x1>
   1f5a4:	c0 92 b6 0d 	sts	0x0DB6, r12	; 0x800db6 <target_temperature>
					//current filament needs to be unloaded and then new filament should be loaded
					//start to preheat nozzle for unloading remaining PLA filament
					setTargetHotend(PLA_PREHEAT_HOTEND_TEMP);
					lcd_display_message_fullscreen_P(_T(MSG_WIZARD_WILL_PREHEAT));
   1f5a8:	80 ec       	ldi	r24, 0xC0	; 192
   1f5aa:	90 e4       	ldi	r25, 0x40	; 64
   1f5ac:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f5b0:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
					wait_preheat();
   1f5b4:	0e 94 3c e3 	call	0x1c678	; 0x1c678 <wait_preheat()>
					unload_filament(FILAMENTCHANGE_FINALRETRACT); // unload current filament
   1f5b8:	60 e0       	ldi	r22, 0x00	; 0
   1f5ba:	70 e0       	ldi	r23, 0x00	; 0
   1f5bc:	cb 01       	movw	r24, r22
   1f5be:	0e 94 34 f9 	call	0x1f268	; 0x1f268 <unload_filament(float)>
					lcd_wizard_load(); // load filament
   1f5c2:	0e 94 c2 cf 	call	0x19f84	; 0x19f84 <lcd_wizard_load()>
   1f5c6:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   1f5ca:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
   1f5ce:	58 cf       	rjmp	.-336    	; 0x1f480 <lcd_wizard(WizState)+0xc0>
			state = S::Restore;
			}
			break;
#ifdef THERMAL_MODEL
		case S::ThermalModel:
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_TM_CAL));
   1f5d0:	80 e8       	ldi	r24, 0x80	; 128
   1f5d2:	90 e4       	ldi	r25, 0x40	; 64
   1f5d4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f5d8:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			lcd_commands_type = LcdCommands::ThermalModel;
   1f5dc:	85 e0       	ldi	r24, 0x05	; 5
   1f5de:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);

    FORCE_BL_ON_START;

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f5e2:	05 e0       	ldi	r16, 0x05	; 5
   1f5e4:	10 e0       	ldi	r17, 0x00	; 0
   1f5e6:	55 cf       	rjmp	.-342    	; 0x1f492 <lcd_wizard(WizState)+0xd2>
   1f5e8:	d0 92 b7 0d 	sts	0x0DB7, r13	; 0x800db7 <target_temperature+0x1>
   1f5ec:	c0 92 b6 0d 	sts	0x0DB6, r12	; 0x800db6 <target_temperature>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   1f5f0:	b0 92 73 06 	sts	0x0673, r11	; 0x800673 <target_temperature_bed+0x1>
   1f5f4:	a0 92 72 06 	sts	0x0672, r10	; 0x800672 <target_temperature_bed>
#endif //THERMAL_MODEL
		case S::IsFil:
		    //start to preheat nozzle and bed to save some time later
			setTargetHotend(PLA_PREHEAT_HOTEND_TEMP);
			setTargetBed(PLA_PREHEAT_HPB_TEMP);
			wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_LOADED), false, LCD_MIDDLE_BUTTON_CHOICE);
   1f5f8:	8a e6       	ldi	r24, 0x6A	; 106
   1f5fa:	90 e4       	ldi	r25, 0x40	; 64
   1f5fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f600:	41 e0       	ldi	r20, 0x01	; 1
   1f602:	60 e0       	ldi	r22, 0x00	; 0
   1f604:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
			if (wizard_event == LCD_LEFT_BUTTON_CHOICE) {
   1f608:	88 23       	and	r24, r24
   1f60a:	09 f1       	breq	.+66     	; 0x1f64e <lcd_wizard(WizState)+0x28e>
				state = S::Lay1CalCold;
			} else { // MIDDLE_BUTTON_CHOICE
			    if(MMU2::mmu2.Enabled()) state = S::LoadFilCold;
   1f60c:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
			    else state = S::Preheat;
   1f610:	c7 e0       	ldi	r28, 0x07	; 7
			setTargetBed(PLA_PREHEAT_HPB_TEMP);
			wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_FILAMENT_LOADED), false, LCD_MIDDLE_BUTTON_CHOICE);
			if (wizard_event == LCD_LEFT_BUTTON_CHOICE) {
				state = S::Lay1CalCold;
			} else { // MIDDLE_BUTTON_CHOICE
			    if(MMU2::mmu2.Enabled()) state = S::LoadFilCold;
   1f612:	81 30       	cpi	r24, 0x01	; 1
   1f614:	09 f0       	breq	.+2      	; 0x1f618 <lcd_wizard(WizState)+0x258>
   1f616:	f2 ce       	rjmp	.-540    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
   1f618:	c8 e0       	ldi	r28, 0x08	; 8
   1f61a:	f0 ce       	rjmp	.-544    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
			    else state = S::Preheat;
			}
			break;
		case S::Preheat:
			menu_goto(lcd_preheat_menu, 0, true);
   1f61c:	20 e0       	ldi	r18, 0x00	; 0
   1f61e:	41 e0       	ldi	r20, 0x01	; 1
   1f620:	70 e0       	ldi	r23, 0x00	; 0
   1f622:	60 e0       	ldi	r22, 0x00	; 0
   1f624:	8c eb       	ldi	r24, 0xBC	; 188
   1f626:	99 e3       	ldi	r25, 0x39	; 57
   1f628:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
		    lcd_show_fullscreen_message_and_wait_P(_T(MSG_SEL_PREHEAT_TEMP));
   1f62c:	89 e2       	ldi	r24, 0x29	; 41
   1f62e:	90 e4       	ldi	r25, 0x40	; 64
   1f630:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f634:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);

    FORCE_BL_ON_START;

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f638:	07 e0       	ldi	r16, 0x07	; 7
   1f63a:	10 e0       	ldi	r17, 0x00	; 0
   1f63c:	2a cf       	rjmp	.-428    	; 0x1f492 <lcd_wizard(WizState)+0xd2>
			menu_goto(lcd_preheat_menu, 0, true);
		    lcd_show_fullscreen_message_and_wait_P(_T(MSG_SEL_PREHEAT_TEMP));
		    end = true; // Leave wizard temporarily for lcd_preheat_menu
		    break;
		case S::LoadFilHot:
		    wait_preheat();
   1f63e:	0e 94 3c e3 	call	0x1c678	; 0x1c678 <wait_preheat()>
			lcd_wizard_load();
   1f642:	0e 94 c2 cf 	call	0x19f84	; 0x19f84 <lcd_wizard_load()>
			state = S::Lay1CalHot;
   1f646:	cb e0       	ldi	r28, 0x0B	; 11
   1f648:	d9 ce       	rjmp	.-590    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
			break;
        case S::LoadFilCold:
            lcd_wizard_load();
   1f64a:	0e 94 c2 cf 	call	0x19f84	; 0x19f84 <lcd_wizard_load()>
		case S::RepeatLay1Cal:
			wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_WIZARD_REPEAT_V2_CAL), false);
			if (wizard_event == LCD_LEFT_BUTTON_CHOICE)
			{
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_CLEAN_HEATBED));
				state = S::Lay1CalCold;
   1f64e:	ca e0       	ldi	r28, 0x0A	; 10
   1f650:	d5 ce       	rjmp	.-598    	; 0x1f3fc <lcd_wizard(WizState)+0x3c>
        case S::LoadFilCold:
            lcd_wizard_load();
            state = S::Lay1CalCold;
            break;
		case S::Lay1CalCold:
            wizard_lay1cal_message(true);
   1f652:	81 e0       	ldi	r24, 0x01	; 1
   1f654:	0e 94 a4 cf 	call	0x19f48	; 0x19f48 <wizard_lay1cal_message(bool)>
			menu_goto(lcd_v2_calibration, 0, true);
   1f658:	20 e0       	ldi	r18, 0x00	; 0
   1f65a:	41 e0       	ldi	r20, 0x01	; 1
   1f65c:	70 e0       	ldi	r23, 0x00	; 0
   1f65e:	60 e0       	ldi	r22, 0x00	; 0
   1f660:	8c eb       	ldi	r24, 0xBC	; 188
   1f662:	95 ee       	ldi	r25, 0xE5	; 229
   1f664:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);

    FORCE_BL_ON_START;

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f668:	0a e0       	ldi	r16, 0x0A	; 10
   1f66a:	10 e0       	ldi	r17, 0x00	; 0
   1f66c:	12 cf       	rjmp	.-476    	; 0x1f492 <lcd_wizard(WizState)+0xd2>
            wizard_lay1cal_message(true);
			menu_goto(lcd_v2_calibration, 0, true);
			end = true; // Leave wizard temporarily for lcd_v2_calibration
			break;
        case S::Lay1CalHot:
            wizard_lay1cal_message(false);
   1f66e:	80 e0       	ldi	r24, 0x00	; 0
   1f670:	0e 94 a4 cf 	call	0x19f48	; 0x19f48 <wizard_lay1cal_message(bool)>
            lcd_commands_type = LcdCommands::Layer1Cal;
   1f674:	84 e0       	ldi	r24, 0x04	; 4
   1f676:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
	if (state != S::Run) eeprom_update_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 1);

    FORCE_BL_ON_START;

    while (!end) {
		printf_P(PSTR("Wizard state: %d\n"), (uint8_t)state);
   1f67a:	0b e0       	ldi	r16, 0x0B	; 11
   1f67c:	10 e0       	ldi	r17, 0x00	; 0
   1f67e:	09 cf       	rjmp	.-494    	; 0x1f492 <lcd_wizard(WizState)+0xd2>
            wizard_lay1cal_message(false);
            lcd_commands_type = LcdCommands::Layer1Cal;
            end = true; // Leave wizard temporarily for lcd_v2_calibration
            break;
		case S::RepeatLay1Cal:
			wizard_event = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_WIZARD_REPEAT_V2_CAL), false);
   1f680:	86 ed       	ldi	r24, 0xD6	; 214
   1f682:	9f e3       	ldi	r25, 0x3F	; 63
   1f684:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f688:	41 e0       	ldi	r20, 0x01	; 1
   1f68a:	60 e0       	ldi	r22, 0x00	; 0
   1f68c:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
			if (wizard_event == LCD_LEFT_BUTTON_CHOICE)
   1f690:	81 11       	cpse	r24, r1
   1f692:	07 c0       	rjmp	.+14     	; 0x1f6a2 <lcd_wizard(WizState)+0x2e2>
			{
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_WIZARD_CLEAN_HEATBED));
   1f694:	86 ea       	ldi	r24, 0xA6	; 166
   1f696:	9f e3       	ldi	r25, 0x3F	; 63
   1f698:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f69c:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   1f6a0:	d6 cf       	rjmp	.-84     	; 0x1f64e <lcd_wizard(WizState)+0x28e>
				state = S::Lay1CalCold;
			}
			else
			{
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_ADDITIONAL_SHEETS));
   1f6a2:	80 e4       	ldi	r24, 0x40	; 64
   1f6a4:	9f e3       	ldi	r25, 0x3F	; 63
   1f6a6:	d8 ce       	rjmp	.-592    	; 0x1f458 <lcd_wizard(WizState)+0x98>
   1f6a8:	60 e0       	ldi	r22, 0x00	; 0
   1f6aa:	8f e5       	ldi	r24, 0x5F	; 95
   1f6ac:	9f e0       	ldi	r25, 0x0F	; 15
   1f6ae:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   1f6b2:	ef ce       	rjmp	.-546    	; 0x1f492 <lcd_wizard(WizState)+0xd2>
		msg = _T(MSG_WIZARD_QUIT);
		break;

	case S::Finish:
		// we are successfully finished
		msg = _T(MSG_WIZARD_DONE);
   1f6b4:	82 ee       	ldi	r24, 0xE2	; 226
   1f6b6:	9e e3       	ldi	r25, 0x3E	; 62
   1f6b8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f6bc:	8c 01       	movw	r16, r24
    lcd_setalertstatus_(message, severity, true);
}

void lcd_reset_alert_level()
{
    lcd_status_message_level = 0;
   1f6be:	10 92 d5 03 	sts	0x03D5, r1	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>

	case S::Finish:
		// we are successfully finished
		msg = _T(MSG_WIZARD_DONE);
		lcd_reset_alert_level();
		lcd_setstatuspgm(MSG_WELCOME);
   1f6c2:	8f ec       	ldi	r24, 0xCF	; 207
   1f6c4:	9f e6       	ldi	r25, 0x6F	; 111
   1f6c6:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
		lcd_return_to_status();
   1f6ca:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>

	default:
		// exiting for later re-entry
		break;
	}
	if (msg) {
   1f6ce:	01 15       	cp	r16, r1
   1f6d0:	11 05       	cpc	r17, r1
   1f6d2:	09 f4       	brne	.+2      	; 0x1f6d6 <lcd_wizard(WizState)+0x316>
   1f6d4:	f8 ce       	rjmp	.-528    	; 0x1f4c6 <lcd_wizard(WizState)+0x106>
		lcd_show_fullscreen_message_and_wait_P(msg);
   1f6d6:	c8 01       	movw	r24, r16
   1f6d8:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   1f6dc:	f4 ce       	rjmp	.-536    	; 0x1f4c6 <lcd_wizard(WizState)+0x106>
		lcd_return_to_status();
		break;

	case S::Failed:
		// aborted due to failure
		msg = _T(MSG_WIZARD_CALIBRATION_FAILED);
   1f6de:	80 e8       	ldi	r24, 0x80	; 128
   1f6e0:	9e e3       	ldi	r25, 0x3E	; 62
   1f6e2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   1f6e6:	8c 01       	movw	r16, r24
   1f6e8:	f2 cf       	rjmp	.-28     	; 0x1f6ce <lcd_wizard(WizState)+0x30e>

0001f6ea <main>:

void setupUSB() __attribute__((weak));
void setupUSB() { }

int main(void)
{
   1f6ea:	cf 93       	push	r28
   1f6ec:	df 93       	push	r29
   1f6ee:	cd b7       	in	r28, 0x3d	; 61
   1f6f0:	de b7       	in	r29, 0x3e	; 62
   1f6f2:	67 97       	sbiw	r28, 0x17	; 23
   1f6f4:	0f b6       	in	r0, 0x3f	; 63
   1f6f6:	f8 94       	cli
   1f6f8:	de bf       	out	0x3e, r29	; 62
   1f6fa:	0f be       	out	0x3f, r0	; 63
   1f6fc:	cd bf       	out	0x3d, r28	; 61

void init()
{
	// this needs to be called before setup() or some functions won't
	// work there
	sei();
   1f6fe:	78 94       	sei
	
	// on the ATmega168, timer 0 is also used for fast hardware pwm
	// (using phase-correct PWM would mean that timer 0 overflowed half as often
	// resulting in different millis() behavior on the ATmega8 and ATmega168)
#if defined(TCCR0A) && defined(WGM01)
	sbi(TCCR0A, WGM01);
   1f700:	84 b5       	in	r24, 0x24	; 36
   1f702:	82 60       	ori	r24, 0x02	; 2
   1f704:	84 bd       	out	0x24, r24	; 36
	sbi(TCCR0A, WGM00);
   1f706:	84 b5       	in	r24, 0x24	; 36
   1f708:	81 60       	ori	r24, 0x01	; 1
   1f70a:	84 bd       	out	0x24, r24	; 36
	// this combination is for the standard atmega8
	sbi(TCCR0, CS01);
	sbi(TCCR0, CS00);
#elif defined(TCCR0B) && defined(CS01) && defined(CS00)
	// this combination is for the standard 168/328/1280/2560
	sbi(TCCR0B, CS01);
   1f70c:	85 b5       	in	r24, 0x25	; 37
   1f70e:	82 60       	ori	r24, 0x02	; 2
   1f710:	85 bd       	out	0x25, r24	; 37
	sbi(TCCR0B, CS00);
   1f712:	85 b5       	in	r24, 0x25	; 37
   1f714:	81 60       	ori	r24, 0x01	; 1
   1f716:	85 bd       	out	0x25, r24	; 37

	// enable timer 0 overflow interrupt
#if defined(TIMSK) && defined(TOIE0)
	sbi(TIMSK, TOIE0);
#elif defined(TIMSK0) && defined(TOIE0)
	sbi(TIMSK0, TOIE0);
   1f718:	80 91 6e 00 	lds	r24, 0x006E	; 0x80006e <__TEXT_REGION_LENGTH__+0x7c206e>
   1f71c:	81 60       	ori	r24, 0x01	; 1
   1f71e:	80 93 6e 00 	sts	0x006E, r24	; 0x80006e <__TEXT_REGION_LENGTH__+0x7c206e>
	// this is better for motors as it ensures an even waveform
	// note, however, that fast pwm mode can achieve a frequency of up
	// 8 MHz (with a 16 MHz clock) at 50% duty cycle

#if defined(TCCR1B) && defined(CS11) && defined(CS10)
	TCCR1B = 0;
   1f722:	10 92 81 00 	sts	0x0081, r1	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>

	// set timer 1 prescale factor to 64
	sbi(TCCR1B, CS11);
   1f726:	80 91 81 00 	lds	r24, 0x0081	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
   1f72a:	82 60       	ori	r24, 0x02	; 2
   1f72c:	80 93 81 00 	sts	0x0081, r24	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
#if F_CPU >= 8000000L
	sbi(TCCR1B, CS10);
   1f730:	80 91 81 00 	lds	r24, 0x0081	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
   1f734:	81 60       	ori	r24, 0x01	; 1
   1f736:	80 93 81 00 	sts	0x0081, r24	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
	sbi(TCCR1, CS10);
#endif
#endif
	// put timer 1 in 8-bit phase correct pwm mode
#if defined(TCCR1A) && defined(WGM10)
	sbi(TCCR1A, WGM10);
   1f73a:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   1f73e:	81 60       	ori	r24, 0x01	; 1
   1f740:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>

	// set timer 2 prescale factor to 64
#if defined(TCCR2) && defined(CS22)
	sbi(TCCR2, CS22);
#elif defined(TCCR2B) && defined(CS22)
	sbi(TCCR2B, CS22);
   1f744:	80 91 b1 00 	lds	r24, 0x00B1	; 0x8000b1 <__TEXT_REGION_LENGTH__+0x7c20b1>
   1f748:	84 60       	ori	r24, 0x04	; 4
   1f74a:	80 93 b1 00 	sts	0x00B1, r24	; 0x8000b1 <__TEXT_REGION_LENGTH__+0x7c20b1>

	// configure timer 2 for phase correct pwm (8-bit)
#if defined(TCCR2) && defined(WGM20)
	sbi(TCCR2, WGM20);
#elif defined(TCCR2A) && defined(WGM20)
	sbi(TCCR2A, WGM20);
   1f74e:	80 91 b0 00 	lds	r24, 0x00B0	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
   1f752:	81 60       	ori	r24, 0x01	; 1
   1f754:	80 93 b0 00 	sts	0x00B0, r24	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
//#else
	// Timer 2 not finished (may not be present on this CPU)
#endif

#if defined(TCCR3B) && defined(CS31) && defined(WGM30)
	sbi(TCCR3B, CS31);		// set timer 3 prescale factor to 64
   1f758:	80 91 91 00 	lds	r24, 0x0091	; 0x800091 <__TEXT_REGION_LENGTH__+0x7c2091>
   1f75c:	82 60       	ori	r24, 0x02	; 2
   1f75e:	80 93 91 00 	sts	0x0091, r24	; 0x800091 <__TEXT_REGION_LENGTH__+0x7c2091>
	sbi(TCCR3B, CS30);
   1f762:	80 91 91 00 	lds	r24, 0x0091	; 0x800091 <__TEXT_REGION_LENGTH__+0x7c2091>
   1f766:	81 60       	ori	r24, 0x01	; 1
   1f768:	80 93 91 00 	sts	0x0091, r24	; 0x800091 <__TEXT_REGION_LENGTH__+0x7c2091>
	sbi(TCCR3A, WGM30);		// put timer 3 in 8-bit phase correct pwm mode
   1f76c:	80 91 90 00 	lds	r24, 0x0090	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
   1f770:	81 60       	ori	r24, 0x01	; 1
   1f772:	80 93 90 00 	sts	0x0090, r24	; 0x800090 <__TEXT_REGION_LENGTH__+0x7c2090>
	sbi(TCCR4D, WGM40);		// put timer 4 in phase- and frequency-correct PWM mode	
	sbi(TCCR4A, PWM4A);		// enable PWM mode for comparator OCR4A
	sbi(TCCR4C, PWM4D);		// enable PWM mode for comparator OCR4D
#else /* beginning of timer4 block for ATMEGA1280 and ATMEGA2560 */
#if defined(TCCR4B) && defined(CS41) && defined(WGM40)
	sbi(TCCR4B, CS41);		// set timer 4 prescale factor to 64
   1f776:	80 91 a1 00 	lds	r24, 0x00A1	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
   1f77a:	82 60       	ori	r24, 0x02	; 2
   1f77c:	80 93 a1 00 	sts	0x00A1, r24	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
	sbi(TCCR4B, CS40);
   1f780:	80 91 a1 00 	lds	r24, 0x00A1	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
   1f784:	81 60       	ori	r24, 0x01	; 1
   1f786:	80 93 a1 00 	sts	0x00A1, r24	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
	sbi(TCCR4A, WGM40);		// put timer 4 in 8-bit phase correct pwm mode
   1f78a:	80 91 a0 00 	lds	r24, 0x00A0	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
   1f78e:	81 60       	ori	r24, 0x01	; 1
   1f790:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
#endif
#endif /* end timer4 block for ATMEGA1280/2560 and similar */	

#if defined(TCCR5B) && defined(CS51) && defined(WGM50)
	sbi(TCCR5B, CS51);		// set timer 5 prescale factor to 64
   1f794:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   1f798:	82 60       	ori	r24, 0x02	; 2
   1f79a:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
	sbi(TCCR5B, CS50);
   1f79e:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   1f7a2:	81 60       	ori	r24, 0x01	; 1
   1f7a4:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
	sbi(TCCR5A, WGM50);		// put timer 5 in 8-bit phase correct pwm mode
   1f7a8:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1f7ac:	81 60       	ori	r24, 0x01	; 1
   1f7ae:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
#endif

#if defined(ADCSRA)
	// set a2d prescaler so we are inside the desired 50-200 KHz range.
	#if F_CPU >= 16000000 // 16 MHz / 128 = 125 KHz
		sbi(ADCSRA, ADPS2);
   1f7b2:	80 91 7a 00 	lds	r24, 0x007A	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   1f7b6:	84 60       	ori	r24, 0x04	; 4
   1f7b8:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
		sbi(ADCSRA, ADPS1);
   1f7bc:	80 91 7a 00 	lds	r24, 0x007A	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   1f7c0:	82 60       	ori	r24, 0x02	; 2
   1f7c2:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
		sbi(ADCSRA, ADPS0);
   1f7c6:	80 91 7a 00 	lds	r24, 0x007A	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   1f7ca:	81 60       	ori	r24, 0x01	; 1
   1f7cc:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
		cbi(ADCSRA, ADPS2);
		cbi(ADCSRA, ADPS1);
		sbi(ADCSRA, ADPS0);
	#endif
	// enable a2d conversions
	sbi(ADCSRA, ADEN);
   1f7d0:	80 91 7a 00 	lds	r24, 0x007A	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
   1f7d4:	80 68       	ori	r24, 0x80	; 128
   1f7d6:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>
	// here so they can be used as normal digital i/o; they will be
	// reconnected in Serial.begin()
#if defined(UCSRB)
	UCSRB = 0;
#elif defined(UCSR0B)
	UCSR0B = 0;
   1f7da:	10 92 c1 00 	sts	0x00C1, r1	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
    // after the program starts since there's no danger in doing this.
    // The reason for this is because old bootloaders might not handle the watchdog timer at all,
    // leaving it enabled when jumping to the program. This could cause another watchdog reset
    // during setup() if not handled properly. So to avoid any issue of this kind, stop the
    // watchdog timer manually.
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   1f7de:	9f b7       	in	r25, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   1f7e0:	f8 94       	cli
      wdt_reset();
   1f7e2:	a8 95       	wdr
      MCUSR &= ~_BV(WDRF);
   1f7e4:	84 b7       	in	r24, 0x34	; 52
   1f7e6:	87 7f       	andi	r24, 0xF7	; 247
   1f7e8:	84 bf       	out	0x34, r24	; 52
				"out __SREG__,__tmp_reg__"   "\n\t"
				: [TEMPREG] "=d" (temp_reg)
				: [WDTREG]  "n"  (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				[WDCE_WDE]  "n"  ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE)))
				: "r0"
		);
   1f7ea:	0f b6       	in	r0, 0x3f	; 63
   1f7ec:	f8 94       	cli
   1f7ee:	a8 95       	wdr
   1f7f0:	80 91 60 00 	lds	r24, 0x0060	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   1f7f4:	88 61       	ori	r24, 0x18	; 24
   1f7f6:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   1f7fa:	10 92 60 00 	sts	0x0060, r1	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   1f7fe:	0f be       	out	0x3f, r0	; 63
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   1f800:	9f bf       	out	0x3f, r25	; 63
	CRITICAL_SECTION_END;
}

void timer2_init(void)
{
	CRITICAL_SECTION_START;
   1f802:	9f b7       	in	r25, 0x3f	; 63
   1f804:	f8 94       	cli

	// Everything, that used to be on timer0 was moved to timer2 (delay, beeping, millis etc.)
	//setup timer2
	TCCR2A = 0x00; //COM_A-B=00, WGM_0-1=00
   1f806:	10 92 b0 00 	sts	0x00B0, r1	; 0x8000b0 <__TEXT_REGION_LENGTH__+0x7c20b0>
	TCCR2B = (4 << CS20); //WGM_2=0, CS_0-2=011
   1f80a:	84 e0       	ldi	r24, 0x04	; 4
   1f80c:	80 93 b1 00 	sts	0x00B1, r24	; 0x8000b1 <__TEXT_REGION_LENGTH__+0x7c20b1>
	//mask timer2 interrupts - enable OVF, disable others
	TIMSK2 |= (1<<TOIE2);
   1f810:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   1f814:	81 60       	ori	r24, 0x01	; 1
   1f816:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
	TIMSK2 &= ~(1<<OCIE2A);
   1f81a:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   1f81e:	8d 7f       	andi	r24, 0xFD	; 253
   1f820:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
	TIMSK2 &= ~(1<<OCIE2B);
   1f824:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   1f828:	8b 7f       	andi	r24, 0xFB	; 251
   1f82a:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
	//set timer2 OCR registers (OCRB interrupt generated 0.5ms after OVF interrupt)
	OCR2A = 0;
   1f82e:	10 92 b3 00 	sts	0x00B3, r1	; 0x8000b3 <__TEXT_REGION_LENGTH__+0x7c20b3>

	CRITICAL_SECTION_END;
   1f832:	9f bf       	out	0x3f, r25	; 63
}

void backlight_init()
{
//check for backlight support on lcd
    SET_INPUT(LCD_BL_PIN);
   1f834:	6b 98       	cbi	0x0d, 3	; 13
    WRITE(LCD_BL_PIN,HIGH);
   1f836:	73 9a       	sbi	0x0e, 3	; 14
    _delay(10);
   1f838:	6a e0       	ldi	r22, 0x0A	; 10
   1f83a:	70 e0       	ldi	r23, 0x00	; 0
   1f83c:	80 e0       	ldi	r24, 0x00	; 0
   1f83e:	90 e0       	ldi	r25, 0x00	; 0
   1f840:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
    backlightSupport = !READ(LCD_BL_PIN);
   1f844:	9c b1       	in	r25, 0x0c	; 12
   1f846:	81 e0       	ldi	r24, 0x01	; 1
   1f848:	29 2f       	mov	r18, r25
   1f84a:	28 70       	andi	r18, 0x08	; 8
   1f84c:	93 fd       	sbrc	r25, 3
   1f84e:	80 e0       	ldi	r24, 0x00	; 0
   1f850:	80 93 02 04 	sts	0x0402, r24	; 0x800402 <backlightSupport>
    if (!backlightSupport) return;
   1f854:	21 11       	cpse	r18, r1
   1f856:	22 c0       	rjmp	.+68     	; 0x1f89c <main+0x1b2>

    //initialize backlight
    backlightMode = eeprom_init_default_byte((uint8_t *)EEPROM_BACKLIGHT_MODE, BACKLIGHT_MODE_AUTO);
   1f858:	62 e0       	ldi	r22, 0x02	; 2
   1f85a:	82 e3       	ldi	r24, 0x32	; 50
   1f85c:	9d e0       	ldi	r25, 0x0D	; 13
   1f85e:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1f862:	80 93 4f 02 	sts	0x024F, r24	; 0x80024f <backlightMode>
    backlightLevel_HIGH = eeprom_init_default_byte((uint8_t *)EEPROM_BACKLIGHT_LEVEL_HIGH, LCD_BACKLIGHT_LEVEL_HIGH);
   1f866:	62 e8       	ldi	r22, 0x82	; 130
   1f868:	84 e3       	ldi	r24, 0x34	; 52
   1f86a:	9d e0       	ldi	r25, 0x0D	; 13
   1f86c:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1f870:	80 93 01 04 	sts	0x0401, r24	; 0x800401 <backlightLevel_HIGH>
    backlightLevel_LOW = eeprom_init_default_byte((uint8_t *)EEPROM_BACKLIGHT_LEVEL_LOW, LCD_BACKLIGHT_LEVEL_LOW);
   1f874:	62 e3       	ldi	r22, 0x32	; 50
   1f876:	83 e3       	ldi	r24, 0x33	; 51
   1f878:	9d e0       	ldi	r25, 0x0D	; 13
   1f87a:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1f87e:	80 93 00 04 	sts	0x0400, r24	; 0x800400 <backlightLevel_LOW>
    backlightTimer_period = eeprom_init_default_word((uint16_t *)EEPROM_BACKLIGHT_TIMEOUT, LCD_BACKLIGHT_TIMEOUT); // in seconds
   1f882:	6f e0       	ldi	r22, 0x0F	; 15
   1f884:	70 e0       	ldi	r23, 0x00	; 0
   1f886:	80 e3       	ldi	r24, 0x30	; 48
   1f888:	9d e0       	ldi	r25, 0x0D	; 13
   1f88a:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
   1f88e:	90 93 4e 02 	sts	0x024E, r25	; 0x80024e <backlightTimer_period+0x1>
   1f892:	80 93 4d 02 	sts	0x024D, r24	; 0x80024d <backlightTimer_period>

    SET_OUTPUT(LCD_BL_PIN);
   1f896:	6b 9a       	sbi	0x0d, 3	; 13
    backlightTimer_reset();
   1f898:	0e 94 f1 89 	call	0x113e2	; 0x113e2 <backlightTimer_reset() [clone .lto_priv.434]>
	return 0;
}

void lcd_init(void)
{
	WRITE(LCD_PINS_ENABLE,LOW);
   1f89c:	8f 98       	cbi	0x11, 7	; 17
	SET_OUTPUT(LCD_PINS_RS);
   1f89e:	55 9a       	sbi	0x0a, 5	; 10
	SET_OUTPUT(LCD_PINS_ENABLE);
   1f8a0:	87 9a       	sbi	0x10, 7	; 16
	SET_OUTPUT(LCD_PINS_D0);
	SET_OUTPUT(LCD_PINS_D1);
	SET_OUTPUT(LCD_PINS_D2);
	SET_OUTPUT(LCD_PINS_D3);
#endif
	SET_OUTPUT(LCD_PINS_D4);
   1f8a2:	85 9a       	sbi	0x10, 5	; 16
	SET_OUTPUT(LCD_PINS_D5);
   1f8a4:	9c 9a       	sbi	0x13, 4	; 19
	SET_OUTPUT(LCD_PINS_D6);
   1f8a6:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   1f8aa:	80 68       	ori	r24, 0x80	; 128
   1f8ac:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
	SET_OUTPUT(LCD_PINS_D7);
   1f8b0:	9b 9a       	sbi	0x13, 3	; 19

#ifdef LCD_8BIT
	lcd_displayfunction |= LCD_8BITMODE;
#endif
	lcd_displayfunction |= LCD_2LINE;
   1f8b2:	80 91 11 04 	lds	r24, 0x0411	; 0x800411 <_ZL19lcd_displayfunction.lto_priv.551>
   1f8b6:	88 60       	ori	r24, 0x08	; 8
   1f8b8:	80 93 11 04 	sts	0x0411, r24	; 0x800411 <_ZL19lcd_displayfunction.lto_priv.551>
   1f8bc:	2f ef       	ldi	r18, 0xFF	; 255
   1f8be:	30 e7       	ldi	r19, 0x70	; 112
   1f8c0:	82 e0       	ldi	r24, 0x02	; 2
   1f8c2:	21 50       	subi	r18, 0x01	; 1
   1f8c4:	30 40       	sbci	r19, 0x00	; 0
   1f8c6:	80 40       	sbci	r24, 0x00	; 0
   1f8c8:	e1 f7       	brne	.-8      	; 0x1f8c2 <main+0x1d8>
   1f8ca:	00 c0       	rjmp	.+0      	; 0x1f8cc <main+0x1e2>
   1f8cc:	00 00       	nop
	_delay_us(50000);
	lcd_begin(1); //first time init
   1f8ce:	81 e0       	ldi	r24, 0x01	; 1
   1f8d0:	0e 94 d2 6e 	call	0xdda4	; 0xdda4 <lcd_begin(unsigned char) [clone .lto_priv.433]>
	fdev_setup_stream(lcdout, lcd_putchar, NULL, _FDEV_SETUP_WRITE); //setup lcdout stream
   1f8d4:	8a e7       	ldi	r24, 0x7A	; 122
   1f8d6:	90 e7       	ldi	r25, 0x70	; 112
   1f8d8:	90 93 0c 04 	sts	0x040C, r25	; 0x80040c <_lcdout+0x9>
   1f8dc:	80 93 0b 04 	sts	0x040B, r24	; 0x80040b <_lcdout+0x8>
   1f8e0:	10 92 0e 04 	sts	0x040E, r1	; 0x80040e <_lcdout+0xb>
   1f8e4:	10 92 0d 04 	sts	0x040D, r1	; 0x80040d <_lcdout+0xa>
   1f8e8:	12 e0       	ldi	r17, 0x02	; 2
   1f8ea:	10 93 06 04 	sts	0x0406, r17	; 0x800406 <_lcdout+0x3>
   1f8ee:	10 92 10 04 	sts	0x0410, r1	; 0x800410 <_lcdout+0xd>
   1f8f2:	10 92 0f 04 	sts	0x040F, r1	; 0x80040f <_lcdout+0xc>

void ultralcd_init()
{
    backlight_init();
	lcd_init();
	lcd_refresh();
   1f8f6:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
	lcd_longpress_func = menu_lcd_longpress_func;
   1f8fa:	85 e3       	ldi	r24, 0x35	; 53
   1f8fc:	95 ed       	ldi	r25, 0xD5	; 213
   1f8fe:	90 93 18 04 	sts	0x0418, r25	; 0x800418 <lcd_longpress_func+0x1>
   1f902:	80 93 17 04 	sts	0x0417, r24	; 0x800417 <lcd_longpress_func>
	lcd_lcdupdate_func = menu_lcd_lcdupdate_func;
   1f906:	8e e7       	ldi	r24, 0x7E	; 126
   1f908:	99 e3       	ldi	r25, 0x39	; 57
   1f90a:	90 93 16 04 	sts	0x0416, r25	; 0x800416 <lcd_lcdupdate_func+0x1>
   1f90e:	80 93 15 04 	sts	0x0415, r24	; 0x800415 <lcd_lcdupdate_func>
	menu_menu = lcd_status_screen;
   1f912:	86 e2       	ldi	r24, 0x26	; 38
   1f914:	9a e3       	ldi	r25, 0x3A	; 58
   1f916:	90 93 14 04 	sts	0x0414, r25	; 0x800414 <menu_menu+0x1>
   1f91a:	80 93 13 04 	sts	0x0413, r24	; 0x800413 <menu_menu>

  SET_INPUT(BTN_EN1);
   1f91e:	80 91 04 01 	lds	r24, 0x0104	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
   1f922:	8b 7f       	andi	r24, 0xFB	; 251
   1f924:	80 93 04 01 	sts	0x0104, r24	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
  SET_INPUT(BTN_EN2);
   1f928:	80 91 04 01 	lds	r24, 0x0104	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
   1f92c:	8d 7f       	andi	r24, 0xFD	; 253
   1f92e:	80 93 04 01 	sts	0x0104, r24	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
  WRITE(BTN_EN1, HIGH);
   1f932:	9f b7       	in	r25, 0x3f	; 63
   1f934:	f8 94       	cli
   1f936:	80 91 05 01 	lds	r24, 0x0105	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f93a:	84 60       	ori	r24, 0x04	; 4
   1f93c:	80 93 05 01 	sts	0x0105, r24	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f940:	9f bf       	out	0x3f, r25	; 63
  WRITE(BTN_EN2, HIGH);
   1f942:	9f b7       	in	r25, 0x3f	; 63
   1f944:	f8 94       	cli
   1f946:	80 91 05 01 	lds	r24, 0x0105	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f94a:	82 60       	ori	r24, 0x02	; 2
   1f94c:	80 93 05 01 	sts	0x0105, r24	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f950:	9f bf       	out	0x3f, r25	; 63
#if BTN_ENC > 0
  SET_INPUT(BTN_ENC);
   1f952:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   1f956:	8f 7b       	andi	r24, 0xBF	; 191
   1f958:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
  WRITE(BTN_ENC, HIGH);
   1f95c:	9f b7       	in	r25, 0x3f	; 63
   1f95e:	f8 94       	cli
   1f960:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   1f964:	80 64       	ori	r24, 0x40	; 64
   1f966:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   1f96a:	9f bf       	out	0x3f, r25	; 63
#endif

#if defined (SDSUPPORT) && defined(SDCARDDETECT) && (SDCARDDETECT > 0)
  SET_INPUT(SDCARDDETECT);
   1f96c:	80 91 04 01 	lds	r24, 0x0104	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
   1f970:	8e 7f       	andi	r24, 0xFE	; 254
   1f972:	80 93 04 01 	sts	0x0104, r24	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
  WRITE(SDCARDDETECT, HIGH);
   1f976:	9f b7       	in	r25, 0x3f	; 63
   1f978:	f8 94       	cli
   1f97a:	80 91 05 01 	lds	r24, 0x0105	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f97e:	81 60       	ori	r24, 0x01	; 1
   1f980:	80 93 05 01 	sts	0x0105, r24	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   1f984:	9f bf       	out	0x3f, r25	; 63
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   1f986:	af e9       	ldi	r26, 0x9F	; 159
   1f988:	bf e0       	ldi	r27, 0x0F	; 15
   1f98a:	11 97       	sbiw	r26, 0x01	; 1
   1f98c:	f1 f7       	brne	.-4      	; 0x1f98a <main+0x2a0>
   1f98e:	00 c0       	rjmp	.+0      	; 0x1f990 <main+0x2a6>
   1f990:	00 00       	nop
  _delay_ms(1); //wait for the pullups to raise the line
  lcd_oldcardstatus = IS_SD_INSERTED;
   1f992:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   1f996:	80 95       	com	r24
   1f998:	81 70       	andi	r24, 0x01	; 1
   1f99a:	80 93 12 04 	sts	0x0412, r24	; 0x800412 <lcd_oldcardstatus>
#endif//(SDCARDDETECT > 0)

  // Initialise status line
  strncpy_P(lcd_status_message, MSG_WELCOME, LCD_WIDTH);
   1f99e:	44 e1       	ldi	r20, 0x14	; 20
   1f9a0:	50 e0       	ldi	r21, 0x00	; 0
   1f9a2:	6f ec       	ldi	r22, 0xCF	; 207
   1f9a4:	7f e6       	ldi	r23, 0x6F	; 111
   1f9a6:	8f e1       	ldi	r24, 0x1F	; 31
   1f9a8:	95 e0       	ldi	r25, 0x05	; 5
   1f9aa:	0f 94 48 da 	call	0x3b490	; 0x3b490 <strncpy_P>
	timer2_init(); // enables functional millis


	ultralcd_init();

	spi_init();
   1f9ae:	0f 94 0d c3 	call	0x3861a	; 0x3861a <spi_init.lto_priv.427>
}


void lcd_splash()
{
	lcd_clear(); // clears display and homes screen
   1f9b2:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	lcd_printf_P(PSTR("\n Original Prusa i3\n   Prusa Research\n%20.20S"), PSTR(FW_VERSION));
   1f9b6:	8f e5       	ldi	r24, 0x5F	; 95
   1f9b8:	9c e8       	ldi	r25, 0x8C	; 140
   1f9ba:	9f 93       	push	r25
   1f9bc:	8f 93       	push	r24
   1f9be:	86 e6       	ldi	r24, 0x66	; 102
   1f9c0:	9c e8       	ldi	r25, 0x8C	; 140
   1f9c2:	9f 93       	push	r25
   1f9c4:	8f 93       	push	r24
   1f9c6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
static void Sound_DoSound_Encoder_Move(void);
static void Sound_DoSound_Blind_Alert(void);

void Sound_Init(void)
{
     SET_OUTPUT(BEEPER);
   1f9ca:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   1f9ce:	84 60       	ori	r24, 0x04	; 4
   1f9d0:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
     eSoundMode = static_cast<eSOUND_MODE>(eeprom_init_default_byte((uint8_t*)EEPROM_SOUND_MODE, e_SOUND_MODE_DEFAULT));
   1f9d4:	60 e0       	ldi	r22, 0x00	; 0
   1f9d6:	87 ed       	ldi	r24, 0xD7	; 215
   1f9d8:	9e e0       	ldi	r25, 0x0E	; 14
   1f9da:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1f9de:	80 93 de 04 	sts	0x04DE, r24	; 0x8004de <eSoundMode>
	spi_init();

	lcd_splash();
    Sound_Init();                                // also guarantee "SET_OUTPUT(BEEPER)"

  selectedSerialPort = eeprom_init_default_byte((uint8_t *)EEPROM_SECOND_SERIAL_ACTIVE, 0);
   1f9e2:	60 e0       	ldi	r22, 0x00	; 0
   1f9e4:	88 e0       	ldi	r24, 0x08	; 8
   1f9e6:	9f e0       	ldi	r25, 0x0F	; 15
   1f9e8:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1f9ec:	80 93 39 05 	sts	0x0539, r24	; 0x800539 <selectedSerialPort>
	MYSERIAL.begin(BAUDRATE);
   1f9f0:	0e 94 6b cd 	call	0x19ad6	; 0x19ad6 <MarlinSerial::begin(long) [clone .constprop.64]>
	fdev_setup_stream(uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE); //setup uart out stream
   1f9f4:	82 ed       	ldi	r24, 0xD2	; 210
   1f9f6:	96 e7       	ldi	r25, 0x76	; 118
   1f9f8:	90 93 06 05 	sts	0x0506, r25	; 0x800506 <_uartout+0x9>
   1f9fc:	80 93 05 05 	sts	0x0505, r24	; 0x800505 <_uartout+0x8>
   1fa00:	10 92 08 05 	sts	0x0508, r1	; 0x800508 <_uartout+0xb>
   1fa04:	10 92 07 05 	sts	0x0507, r1	; 0x800507 <_uartout+0xa>
   1fa08:	10 93 00 05 	sts	0x0500, r17	; 0x800500 <_uartout+0x3>
   1fa0c:	10 92 0a 05 	sts	0x050A, r1	; 0x80050a <_uartout+0xd>
   1fa10:	10 92 09 05 	sts	0x0509, r1	; 0x800509 <_uartout+0xc>
	stdout = uartout;
   1fa14:	8d ef       	ldi	r24, 0xFD	; 253
   1fa16:	94 e0       	ldi	r25, 0x04	; 4
   1fa18:	90 93 1d 18 	sts	0x181D, r25	; 0x80181d <__iob+0x3>
   1fa1c:	80 93 1c 18 	sts	0x181C, r24	; 0x80181c <__iob+0x2>

#ifdef XFLASH
    bool xflash_success = xflash_init();
   1fa20:	0e 94 fc ee 	call	0x1ddf8	; 0x1ddf8 <xflash_init>
   1fa24:	b8 2e       	mov	r11, r24
	uint8_t optiboot_status = 1;
	if (xflash_success)
   1fa26:	0f 90       	pop	r0
   1fa28:	0f 90       	pop	r0
   1fa2a:	0f 90       	pop	r0
   1fa2c:	0f 90       	pop	r0
   1fa2e:	8e 01       	movw	r16, r28
   1fa30:	0f 5f       	subi	r16, 0xFF	; 255
   1fa32:	1f 4f       	sbci	r17, 0xFF	; 255
	fdev_setup_stream(uartout, uart_putchar, NULL, _FDEV_SETUP_WRITE); //setup uart out stream
	stdout = uartout;

#ifdef XFLASH
    bool xflash_success = xflash_init();
	uint8_t optiboot_status = 1;
   1fa34:	aa 24       	eor	r10, r10
   1fa36:	a3 94       	inc	r10
	if (xflash_success)
   1fa38:	88 23       	and	r24, r24
   1fa3a:	09 f4       	brne	.+2      	; 0x1fa3e <main+0x354>
   1fa3c:	d8 c0       	rjmp	.+432    	; 0x1fbee <main+0x504>
	{
		optiboot_status = optiboot_xflash_enter();
   1fa3e:	0f 94 1b c3 	call	0x38636	; 0x38636 <optiboot_xflash_enter()>
   1fa42:	a8 2e       	mov	r10, r24
#define LANGBOOT_BLOCKSIZE 0x1000u
#define LANGBOOT_RAMBUFFER 0x0800

void update_sec_lang_from_external_flash()
{
	if ((boot_app_magic == BOOT_APP_MAGIC) && (boot_app_flags & BOOT_APP_FLG_USER0))
   1fa44:	80 91 fc 1f 	lds	r24, 0x1FFC	; 0x801ffc <__bss_end+0x7dc>
   1fa48:	90 91 fd 1f 	lds	r25, 0x1FFD	; 0x801ffd <__bss_end+0x7dd>
   1fa4c:	a0 91 fe 1f 	lds	r26, 0x1FFE	; 0x801ffe <__bss_end+0x7de>
   1fa50:	b0 91 ff 1f 	lds	r27, 0x1FFF	; 0x801fff <__bss_end+0x7df>
   1fa54:	8a 3a       	cpi	r24, 0xAA	; 170
   1fa56:	95 45       	sbci	r25, 0x55	; 85
   1fa58:	aa 4a       	sbci	r26, 0xAA	; 170
   1fa5a:	b5 45       	sbci	r27, 0x55	; 85
   1fa5c:	09 f0       	breq	.+2      	; 0x1fa60 <main+0x376>
   1fa5e:	bf c0       	rjmp	.+382    	; 0x1fbde <main+0x4f4>
   1fa60:	80 91 fb 1f 	lds	r24, 0x1FFB	; 0x801ffb <__bss_end+0x7db>
   1fa64:	87 ff       	sbrs	r24, 7
   1fa66:	bb c0       	rjmp	.+374    	; 0x1fbde <main+0x4f4>
	{
		uint8_t lang = boot_reserved >> 3;
   1fa68:	80 90 fa 1f 	lds	r8, 0x1FFA	; 0x801ffa <__bss_end+0x7da>
   1fa6c:	98 2c       	mov	r9, r8
   1fa6e:	96 94       	lsr	r9
   1fa70:	96 94       	lsr	r9
   1fa72:	96 94       	lsr	r9
		uint8_t state = boot_reserved & 0x07;
   1fa74:	f8 2d       	mov	r31, r8
   1fa76:	f7 70       	andi	r31, 0x07	; 7
   1fa78:	8f 2e       	mov	r8, r31
	return count;
}

uint8_t lang_get_header(uint8_t lang, lang_table_header_t* header, uint32_t* offset)
{
	if (lang == LANG_ID_PRI) return 0; //primary lang not supported for this function
   1fa7a:	99 20       	and	r9, r9
   1fa7c:	09 f4       	brne	.+2      	; 0x1fa80 <main+0x396>
   1fa7e:	af c0       	rjmp	.+350    	; 0x1fbde <main+0x4f4>
#ifdef XFLASH
	if (lang == LANG_ID_SEC)
   1fa80:	21 e0       	ldi	r18, 0x01	; 1
   1fa82:	92 12       	cpse	r9, r18
   1fa84:	24 c0       	rjmp	.+72     	; 0x1face <main+0x3e4>
	{
		uint16_t ui = _SEC_LANG_TABLE; //table pointer
		memcpy_P(header, (lang_table_t*)(_SEC_LANG_TABLE), sizeof(lang_table_header_t)); //read table header from progmem
   1fa86:	40 e1       	ldi	r20, 0x10	; 16
   1fa88:	50 e0       	ldi	r21, 0x00	; 0
   1fa8a:	60 e0       	ldi	r22, 0x00	; 0
   1fa8c:	71 e0       	ldi	r23, 0x01	; 1
   1fa8e:	c8 01       	movw	r24, r16
   1fa90:	0f 94 f5 d9 	call	0x3b3ea	; 0x3b3ea <memcpy_P>
		if (offset) *offset = ui;
   1fa94:	60 e0       	ldi	r22, 0x00	; 0
   1fa96:	71 e0       	ldi	r23, 0x01	; 1
   1fa98:	6b 01       	movw	r12, r22
   1fa9a:	f1 2c       	mov	r15, r1
   1fa9c:	e1 2c       	mov	r14, r1
		lang_table_header_t header;
		uint32_t src_addr;
		if (lang_get_header(lang, &header, &src_addr))
   1fa9e:	89 81       	ldd	r24, Y+1	; 0x01
   1faa0:	9a 81       	ldd	r25, Y+2	; 0x02
   1faa2:	ab 81       	ldd	r26, Y+3	; 0x03
   1faa4:	bc 81       	ldd	r27, Y+4	; 0x04
   1faa6:	85 3a       	cpi	r24, 0xA5	; 165
   1faa8:	9a 45       	sbci	r25, 0x5A	; 90
   1faaa:	a4 4b       	sbci	r26, 0xB4	; 180
   1faac:	bb 44       	sbci	r27, 0x4B	; 75
   1faae:	09 f0       	breq	.+2      	; 0x1fab2 <main+0x3c8>
   1fab0:	96 c0       	rjmp	.+300    	; 0x1fbde <main+0x4f4>
		{
			lcd_puts_at_P(1,0,PSTR("Language update"));
   1fab2:	44 e9       	ldi	r20, 0x94	; 148
   1fab4:	5c e8       	ldi	r21, 0x8C	; 140
   1fab6:	60 e0       	ldi	r22, 0x00	; 0
   1fab8:	81 e0       	ldi	r24, 0x01	; 1
   1faba:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
			for (uint8_t i = 0; i < state; i++)
   1fabe:	91 2c       	mov	r9, r1
   1fac0:	89 14       	cp	r8, r9
   1fac2:	39 f1       	breq	.+78     	; 0x1fb12 <main+0x428>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
   1fac4:	8e e2       	ldi	r24, 0x2E	; 46
   1fac6:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
   1faca:	93 94       	inc	r9
   1facc:	f9 cf       	rjmp	.-14     	; 0x1fac0 <main+0x3d6>
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   1face:	8c e5       	ldi	r24, 0x5C	; 92
   1fad0:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   1fad2:	1d bc       	out	0x2d, r1	; 45
		return (header->magic == LANG_MAGIC)?1:0; //return 1 if magic valid
	}
	XFLASH_SPI_ENTER();
	uint32_t addr = LANG_OFFSET;
   1fad4:	c1 2c       	mov	r12, r1
   1fad6:	d1 2c       	mov	r13, r1
   1fad8:	76 01       	movw	r14, r12
	lang--;
	while (1)
	{
		xflash_rd_data(addr, (uint8_t*)(header), sizeof(lang_table_header_t)); //read table header from xflash
   1fada:	20 e1       	ldi	r18, 0x10	; 16
   1fadc:	30 e0       	ldi	r19, 0x00	; 0
   1fade:	a8 01       	movw	r20, r16
   1fae0:	c7 01       	movw	r24, r14
   1fae2:	b6 01       	movw	r22, r12
   1fae4:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
		if (header->magic != LANG_MAGIC) break; //break if not valid
   1fae8:	89 81       	ldd	r24, Y+1	; 0x01
   1faea:	9a 81       	ldd	r25, Y+2	; 0x02
   1faec:	ab 81       	ldd	r26, Y+3	; 0x03
   1faee:	bc 81       	ldd	r27, Y+4	; 0x04
   1faf0:	85 3a       	cpi	r24, 0xA5	; 165
   1faf2:	9a 45       	sbci	r25, 0x5A	; 90
   1faf4:	a4 4b       	sbci	r26, 0xB4	; 180
   1faf6:	bb 44       	sbci	r27, 0x4B	; 75
   1faf8:	09 f0       	breq	.+2      	; 0x1fafc <main+0x412>
   1fafa:	71 c0       	rjmp	.+226    	; 0x1fbde <main+0x4f4>
		if (offset) *offset = addr;
		if (--lang == 0) return 1;
   1fafc:	f2 e0       	ldi	r31, 0x02	; 2
   1fafe:	9f 16       	cp	r9, r31
   1fb00:	c1 f2       	breq	.-80     	; 0x1fab2 <main+0x3c8>
		addr += header->size; //calc address of next table
   1fb02:	8d 81       	ldd	r24, Y+5	; 0x05
   1fb04:	9e 81       	ldd	r25, Y+6	; 0x06
   1fb06:	c8 0e       	add	r12, r24
   1fb08:	d9 1e       	adc	r13, r25
   1fb0a:	e1 1c       	adc	r14, r1
   1fb0c:	f1 1c       	adc	r15, r1
   1fb0e:	9a 94       	dec	r9
   1fb10:	e4 cf       	rjmp	.-56     	; 0x1fada <main+0x3f0>
				lcd_print('.');
			_delay(100);
   1fb12:	64 e6       	ldi	r22, 0x64	; 100
   1fb14:	70 e0       	ldi	r23, 0x00	; 0
   1fb16:	80 e0       	ldi	r24, 0x00	; 0
   1fb18:	90 e0       	ldi	r25, 0x00	; 0
   1fb1a:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
			boot_reserved = (boot_reserved & 0xF8) | ((state + 1) & 0x07);
   1fb1e:	80 91 fa 1f 	lds	r24, 0x1FFA	; 0x801ffa <__bss_end+0x7da>
   1fb22:	88 7f       	andi	r24, 0xF8	; 248
   1fb24:	91 e0       	ldi	r25, 0x01	; 1
   1fb26:	98 0d       	add	r25, r8
   1fb28:	97 70       	andi	r25, 0x07	; 7
   1fb2a:	89 2b       	or	r24, r25
   1fb2c:	80 93 fa 1f 	sts	0x1FFA, r24	; 0x801ffa <__bss_end+0x7da>
			if ((state * LANGBOOT_BLOCKSIZE) < header.size)
   1fb30:	91 2c       	mov	r9, r1
   1fb32:	98 2c       	mov	r9, r8
   1fb34:	88 24       	eor	r8, r8
   1fb36:	92 94       	swap	r9
   1fb38:	80 ef       	ldi	r24, 0xF0	; 240
   1fb3a:	98 22       	and	r9, r24
   1fb3c:	8d 81       	ldd	r24, Y+5	; 0x05
   1fb3e:	9e 81       	ldd	r25, Y+6	; 0x06
   1fb40:	88 16       	cp	r8, r24
   1fb42:	99 06       	cpc	r9, r25
   1fb44:	08 f0       	brcs	.+2      	; 0x1fb48 <main+0x45e>
   1fb46:	46 c0       	rjmp	.+140    	; 0x1fbd4 <main+0x4ea>
			{
				cli();
   1fb48:	f8 94       	cli
				uint16_t size = header.size - state * LANGBOOT_BLOCKSIZE;
   1fb4a:	0d 81       	ldd	r16, Y+5	; 0x05
   1fb4c:	1e 81       	ldd	r17, Y+6	; 0x06
   1fb4e:	08 19       	sub	r16, r8
   1fb50:	19 09       	sbc	r17, r9
				if (size > LANGBOOT_BLOCKSIZE) size = LANGBOOT_BLOCKSIZE;
   1fb52:	01 30       	cpi	r16, 0x01	; 1
   1fb54:	20 e1       	ldi	r18, 0x10	; 16
   1fb56:	12 07       	cpc	r17, r18
   1fb58:	10 f0       	brcs	.+4      	; 0x1fb5e <main+0x474>
   1fb5a:	00 e0       	ldi	r16, 0x00	; 0
   1fb5c:	10 e1       	ldi	r17, 0x10	; 16
				xflash_rd_data(src_addr + state * LANGBOOT_BLOCKSIZE, (uint8_t*)LANGBOOT_RAMBUFFER, size);
   1fb5e:	c7 01       	movw	r24, r14
   1fb60:	b6 01       	movw	r22, r12
   1fb62:	68 0d       	add	r22, r8
   1fb64:	79 1d       	adc	r23, r9
   1fb66:	81 1d       	adc	r24, r1
   1fb68:	91 1d       	adc	r25, r1
   1fb6a:	98 01       	movw	r18, r16
   1fb6c:	40 e0       	ldi	r20, 0x00	; 0
   1fb6e:	58 e0       	ldi	r21, 0x08	; 8
   1fb70:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
}


void bootapp_ram2flash(uint16_t rptr, uint16_t fptr, uint16_t size)
{
	cli();
   1fb74:	f8 94       	cli
	boot_app_magic = BOOT_APP_MAGIC;
   1fb76:	8a ea       	ldi	r24, 0xAA	; 170
   1fb78:	95 e5       	ldi	r25, 0x55	; 85
   1fb7a:	dc 01       	movw	r26, r24
   1fb7c:	80 93 fc 1f 	sts	0x1FFC, r24	; 0x801ffc <__bss_end+0x7dc>
   1fb80:	90 93 fd 1f 	sts	0x1FFD, r25	; 0x801ffd <__bss_end+0x7dd>
   1fb84:	a0 93 fe 1f 	sts	0x1FFE, r26	; 0x801ffe <__bss_end+0x7de>
   1fb88:	b0 93 ff 1f 	sts	0x1FFF, r27	; 0x801fff <__bss_end+0x7df>
	boot_app_flags |= BOOT_APP_FLG_COPY | BOOT_APP_FLG_ERASE;
   1fb8c:	80 91 fb 1f 	lds	r24, 0x1FFB	; 0x801ffb <__bss_end+0x7db>
   1fb90:	83 60       	ori	r24, 0x03	; 3
   1fb92:	80 93 fb 1f 	sts	0x1FFB, r24	; 0x801ffb <__bss_end+0x7db>
	boot_copy_size = (uint16_t)size;
   1fb96:	10 93 f9 1f 	sts	0x1FF9, r17	; 0x801ff9 <__bss_end+0x7d9>
   1fb9a:	00 93 f8 1f 	sts	0x1FF8, r16	; 0x801ff8 <__bss_end+0x7d8>
	boot_src_addr = (uint32_t)rptr;
   1fb9e:	80 e0       	ldi	r24, 0x00	; 0
   1fba0:	98 e0       	ldi	r25, 0x08	; 8
   1fba2:	a0 e0       	ldi	r26, 0x00	; 0
   1fba4:	b0 e0       	ldi	r27, 0x00	; 0
   1fba6:	80 93 f0 1f 	sts	0x1FF0, r24	; 0x801ff0 <__bss_end+0x7d0>
   1fbaa:	90 93 f1 1f 	sts	0x1FF1, r25	; 0x801ff1 <__bss_end+0x7d1>
   1fbae:	a0 93 f2 1f 	sts	0x1FF2, r26	; 0x801ff2 <__bss_end+0x7d2>
   1fbb2:	b0 93 f3 1f 	sts	0x1FF3, r27	; 0x801ff3 <__bss_end+0x7d3>
				if (state == 0)
				{
					//TODO - check header integrity
				}
				bootapp_ram2flash(LANGBOOT_RAMBUFFER, _SEC_LANG_TABLE + state * LANGBOOT_BLOCKSIZE, size);
   1fbb6:	c4 01       	movw	r24, r8
   1fbb8:	80 50       	subi	r24, 0x00	; 0
   1fbba:	9f 4f       	sbci	r25, 0xFF	; 255
	boot_dst_addr = (uint32_t)fptr;
   1fbbc:	b0 e0       	ldi	r27, 0x00	; 0
   1fbbe:	a0 e0       	ldi	r26, 0x00	; 0
   1fbc0:	80 93 f4 1f 	sts	0x1FF4, r24	; 0x801ff4 <__bss_end+0x7d4>
   1fbc4:	90 93 f5 1f 	sts	0x1FF5, r25	; 0x801ff5 <__bss_end+0x7d5>
   1fbc8:	a0 93 f6 1f 	sts	0x1FF6, r26	; 0x801ff6 <__bss_end+0x7d6>
   1fbcc:	b0 93 f7 1f 	sts	0x1FF7, r27	; 0x801ff7 <__bss_end+0x7d7>
		for (uint16_t i = 0; i < EEPROM_TOP; i++) {
			eeprom_update_byte_notify((uint8_t*)i, 0xFF);
			menu_progressbar_update(i);
		}
		menu_progressbar_finish();
		softReset();
   1fbd0:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>
   1fbd4:	61 e0       	ldi	r22, 0x01	; 1
   1fbd6:	8e ef       	ldi	r24, 0xFE	; 254
   1fbd8:	9f e0       	ldi	r25, 0x0F	; 15
   1fbda:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
				//TODO - check sec lang data integrity
				eeprom_update_byte_notify((unsigned char *)EEPROM_LANG, LANG_ID_SEC);
			}
		}
	}
	boot_app_magic = 0;
   1fbde:	10 92 fc 1f 	sts	0x1FFC, r1	; 0x801ffc <__bss_end+0x7dc>
   1fbe2:	10 92 fd 1f 	sts	0x1FFD, r1	; 0x801ffd <__bss_end+0x7dd>
   1fbe6:	10 92 fe 1f 	sts	0x1FFE, r1	; 0x801ffe <__bss_end+0x7de>
   1fbea:	10 92 ff 1f 	sts	0x1FFF, r1	; 0x801fff <__bss_end+0x7df>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
   1fbee:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
	setup_powerhold();

    farm_mode_init();

#ifdef TMC2130
    if(FarmOrUserECool()) {
   1fbf2:	88 23       	and	r24, r24
   1fbf4:	51 f0       	breq	.+20     	; 0x1fc0a <main+0x520>
        //increased extruder current (PFW363)
        currents[E_AXIS].setiRun(TMC2130_CURRENTS_FARM);
   1fbf6:	64 e2       	ldi	r22, 0x24	; 36
   1fbf8:	86 e6       	ldi	r24, 0x66	; 102
   1fbfa:	92 e0       	ldi	r25, 0x02	; 2
   1fbfc:	0e 94 8d 67 	call	0xcf1a	; 0xcf1a <MotorCurrents::setiRun(unsigned char)>
        currents[E_AXIS].setiHold(TMC2130_CURRENTS_FARM);
   1fc00:	64 e2       	ldi	r22, 0x24	; 36
   1fc02:	86 e6       	ldi	r24, 0x66	; 102
   1fc04:	92 e0       	ldi	r25, 0x02	; 2
   1fc06:	0e 94 85 67 	call	0xcf0a	; 0xcf0a <MotorCurrents::setiHold(unsigned char)>
#ifdef PRUSA_SN_SUPPORT
    //Check for valid SN in EEPROM. Try to retrieve it in case it's invalid.
    //SN is valid only if it is NULL terminated and starts with "CZPX".
    {
        char SN[20];
        eeprom_read_block(SN, (uint8_t*)EEPROM_PRUSA_SN, 20);
   1fc0a:	44 e1       	ldi	r20, 0x14	; 20
   1fc0c:	50 e0       	ldi	r21, 0x00	; 0
   1fc0e:	65 e1       	ldi	r22, 0x15	; 21
   1fc10:	7d e0       	ldi	r23, 0x0D	; 13
   1fc12:	c8 01       	movw	r24, r16
   1fc14:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
        if (SN[19] || strncmp_P(SN, PSTR("CZPX"), 4))
   1fc18:	8c 89       	ldd	r24, Y+20	; 0x14
   1fc1a:	81 11       	cpse	r24, r1
   1fc1c:	0a c0       	rjmp	.+20     	; 0x1fc32 <main+0x548>
   1fc1e:	44 e0       	ldi	r20, 0x04	; 4
   1fc20:	50 e0       	ldi	r21, 0x00	; 0
   1fc22:	66 e9       	ldi	r22, 0x96	; 150
   1fc24:	7d e8       	ldi	r23, 0x8D	; 141
   1fc26:	c8 01       	movw	r24, r16
   1fc28:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   1fc2c:	89 2b       	or	r24, r25
   1fc2e:	09 f4       	brne	.+2      	; 0x1fc32 <main+0x548>
   1fc30:	51 c0       	rjmp	.+162    	; 0x1fcd4 <main+0x5ea>
 * @return 1 on general failure
 */
#ifdef PRUSA_SN_SUPPORT
static uint8_t get_PRUSA_SN(char* SN)
{
    uint8_t selectedSerialPort_bak = selectedSerialPort;
   1fc32:	e0 90 39 05 	lds	r14, 0x0539	; 0x800539 <selectedSerialPort>
    uint8_t rxIndex;
    bool SN_valid = false;
    ShortTimer timeout;
   1fc36:	1d 8a       	std	Y+21, r1	; 0x15
   1fc38:	1f 8a       	std	Y+23, r1	; 0x17
   1fc3a:	1e 8a       	std	Y+22, r1	; 0x16

    selectedSerialPort = 0;
   1fc3c:	10 92 39 05 	sts	0x0539, r1	; 0x800539 <selectedSerialPort>
    timeout.start();
   1fc40:	ce 01       	movw	r24, r28
   1fc42:	45 96       	adiw	r24, 0x15	; 21
   1fc44:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>

    while (!SN_valid)
    {
        rxIndex = 0;
        _delay(50);
   1fc48:	62 e3       	ldi	r22, 0x32	; 50
   1fc4a:	70 e0       	ldi	r23, 0x00	; 0
   1fc4c:	80 e0       	ldi	r24, 0x00	; 0
   1fc4e:	90 e0       	ldi	r25, 0x00	; 0
   1fc50:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
  // don't reverse this or there may be problems if the RX interrupt
  // occurs after reading the value of rx_buffer_head but before writing
  // the value to rx_buffer_tail; the previous value of rx_buffer_head
  // may be written to rx_buffer_tail, making it appear as if the buffer
  // were full, not empty.
  rx_buffer.head = rx_buffer.tail;
   1fc54:	80 91 9b 04 	lds	r24, 0x049B	; 0x80049b <rx_buffer+0x82>
   1fc58:	90 91 9c 04 	lds	r25, 0x049C	; 0x80049c <rx_buffer+0x83>
   1fc5c:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
   1fc60:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>
        MYSERIAL.flush(); //clear RX buffer
        SERIAL_ECHOLNRPGM(PSTR(";S"));
   1fc64:	89 ea       	ldi	r24, 0xA9	; 169
   1fc66:	9c e8       	ldi	r25, 0x8C	; 140
   1fc68:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   1fc6c:	68 01       	movw	r12, r16
    selectedSerialPort = 0;
    timeout.start();

    while (!SN_valid)
    {
        rxIndex = 0;
   1fc6e:	f1 2c       	mov	r15, r1
        _delay(50);
        MYSERIAL.flush(); //clear RX buffer
        SERIAL_ECHOLNRPGM(PSTR(";S"));
        while (rxIndex < 19)
   1fc70:	33 e1       	ldi	r19, 0x13	; 19
   1fc72:	f3 16       	cp	r15, r19
   1fc74:	a1 f0       	breq	.+40     	; 0x1fc9e <main+0x5b4>
        {
            if (timeout.expired(250u))
   1fc76:	6a ef       	ldi	r22, 0xFA	; 250
   1fc78:	70 e0       	ldi	r23, 0x00	; 0
   1fc7a:	ce 01       	movw	r24, r28
   1fc7c:	45 96       	adiw	r24, 0x15	; 21
   1fc7e:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   1fc82:	81 11       	cpse	r24, r1
   1fc84:	c1 c0       	rjmp	.+386    	; 0x1fe08 <main+0x71e>
                goto exit;
            if (MYSERIAL.available() > 0)
   1fc86:	0e 94 90 76 	call	0xed20	; 0xed20 <MarlinSerial::available()>
   1fc8a:	18 16       	cp	r1, r24
   1fc8c:	19 06       	cpc	r1, r25
   1fc8e:	84 f7       	brge	.-32     	; 0x1fc70 <main+0x586>
            {
                SN[rxIndex] = MYSERIAL.read();
   1fc90:	0f 94 43 d6 	call	0x3ac86	; 0x3ac86 <MarlinSerial::read()>
   1fc94:	d6 01       	movw	r26, r12
   1fc96:	8d 93       	st	X+, r24
   1fc98:	6d 01       	movw	r12, r26
                rxIndex++;
   1fc9a:	f3 94       	inc	r15
   1fc9c:	e9 cf       	rjmp	.-46     	; 0x1fc70 <main+0x586>
            }
        }
        SN[rxIndex] = 0;
   1fc9e:	1c 8a       	std	Y+20, r1	; 0x14
        // printf_P(PSTR("SN:%s\n"), SN);
        SN_valid = (strncmp_P(SN, PSTR("CZPX"), 4) == 0);
   1fca0:	44 e0       	ldi	r20, 0x04	; 4
   1fca2:	50 e0       	ldi	r21, 0x00	; 0
   1fca4:	64 ea       	ldi	r22, 0xA4	; 164
   1fca6:	7c e8       	ldi	r23, 0x8C	; 140
   1fca8:	c8 01       	movw	r24, r16
   1fcaa:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
    ShortTimer timeout;

    selectedSerialPort = 0;
    timeout.start();

    while (!SN_valid)
   1fcae:	89 2b       	or	r24, r25
   1fcb0:	59 f6       	brne	.-106    	; 0x1fc48 <main+0x55e>
   1fcb2:	81 e0       	ldi	r24, 0x01	; 1
        SN[rxIndex] = 0;
        // printf_P(PSTR("SN:%s\n"), SN);
        SN_valid = (strncmp_P(SN, PSTR("CZPX"), 4) == 0);
    }
exit:
    selectedSerialPort = selectedSerialPort_bak;
   1fcb4:	e0 92 39 05 	sts	0x0539, r14	; 0x800539 <selectedSerialPort>
    {
        char SN[20];
        eeprom_read_block(SN, (uint8_t*)EEPROM_PRUSA_SN, 20);
        if (SN[19] || strncmp_P(SN, PSTR("CZPX"), 4))
        {
            if (!get_PRUSA_SN(SN))
   1fcb8:	88 23       	and	r24, r24
   1fcba:	09 f4       	brne	.+2      	; 0x1fcbe <main+0x5d4>
   1fcbc:	a7 c0       	rjmp	.+334    	; 0x1fe0c <main+0x722>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   1fcbe:	44 e1       	ldi	r20, 0x14	; 20
   1fcc0:	50 e0       	ldi	r21, 0x00	; 0
   1fcc2:	65 e1       	ldi	r22, 0x15	; 21
   1fcc4:	7d e0       	ldi	r23, 0x0D	; 13
   1fcc6:	c8 01       	movw	r24, r16
   1fcc8:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
            {
                eeprom_update_block_notify(SN, (uint8_t*)EEPROM_PRUSA_SN, 20);
                puts_P(PSTR("SN updated"));
   1fccc:	8b e8       	ldi	r24, 0x8B	; 139
   1fcce:	9d e8       	ldi	r25, 0x8D	; 141
            }
            else
                puts_P(PSTR("SN update failed"));
   1fcd0:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>


#ifndef XFLASH
	SERIAL_PROTOCOLLNPGM("start");
#else
	if ((optiboot_status != 0) || (selectedSerialPort != 0))
   1fcd4:	a1 10       	cpse	r10, r1
   1fcd6:	04 c0       	rjmp	.+8      	; 0x1fce0 <main+0x5f6>
   1fcd8:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   1fcdc:	88 23       	and	r24, r24
   1fcde:	21 f0       	breq	.+8      	; 0x1fce8 <main+0x5fe>
		SERIAL_PROTOCOLLNPGM("start");
   1fce0:	84 e7       	ldi	r24, 0x74	; 116
   1fce2:	9d e8       	ldi	r25, 0x8D	; 141
   1fce4:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
#endif
	SERIAL_ECHO_START;
   1fce8:	80 ed       	ldi	r24, 0xD0	; 208
   1fcea:	9a ea       	ldi	r25, 0xAA	; 170
   1fcec:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	puts_P(PSTR(" " FW_VERSION_FULL "_" FW_COMMIT_HASH));
   1fcf0:	8d e5       	ldi	r24, 0x5D	; 93
   1fcf2:	9d e8       	ldi	r25, 0x8D	; 141
   1fcf4:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>

	// by default the MMU shall remain disabled - PFW-1418
	if (eeprom_init_default_byte((uint8_t *)EEPROM_MMU_ENABLED, 0)) {
   1fcf8:	60 e0       	ldi	r22, 0x00	; 0
   1fcfa:	8c ea       	ldi	r24, 0xAC	; 172
   1fcfc:	9c e0       	ldi	r25, 0x0C	; 12
   1fcfe:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   1fd02:	81 11       	cpse	r24, r1
		MMU2::mmu2.Start();
   1fd04:	0e 94 75 e4 	call	0x1c8ea	; 0x1c8ea <MMU2::MMU2::Start() [clone .constprop.65]>
	}
	MMU2::mmu2.Status();
   1fd08:	0f 94 25 76 	call	0x2ec4a	; 0x2ec4a <MMU2::MMU2::Status() [clone .constprop.342]>
}

void SpoolJoin::initSpoolJoinStatus()
{
    // Useful information to see during bootup
    SERIAL_ECHOPGM("SpoolJoin is ");
   1fd0c:	8c ea       	ldi	r24, 0xAC	; 172
   1fd0e:	9c e8       	ldi	r25, 0x8C	; 140
   1fd10:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    uint8_t status = eeprom_init_default_byte((uint8_t*)EEPROM_SPOOL_JOIN, (uint8_t)EEPROM::Disabled);
   1fd14:	62 e0       	ldi	r22, 0x02	; 2
   1fd16:	86 ed       	ldi	r24, 0xD6	; 214
   1fd18:	9e e0       	ldi	r25, 0x0E	; 14
   1fd1a:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    if (status == (uint8_t)EEPROM::Enabled)
   1fd1e:	81 30       	cpi	r24, 0x01	; 1
   1fd20:	09 f0       	breq	.+2      	; 0x1fd24 <main+0x63a>
   1fd22:	77 c0       	rjmp	.+238    	; 0x1fe12 <main+0x728>
    {
        SERIAL_ECHOLNRPGM(_O(MSG_ON));
   1fd24:	89 e1       	ldi	r24, 0x19	; 25
   1fd26:	9c e5       	ldi	r25, 0x5C	; 92
    } else {
        SERIAL_ECHOLNRPGM(_O(MSG_OFF));
   1fd28:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
#endif

#endif //DEBUG_SEC_LANG

	// Check startup - does nothing if bootloader sets MCUSR to 0
	byte mcu = MCUSR;
   1fd2c:	f4 b6       	in	r15, 0x34	; 52
/*	if (mcu & 1) SERIAL_ECHOLNRPGM(MSG_POWERUP);
	if (mcu & 2) SERIAL_ECHOLNRPGM(MSG_EXTERNAL_RESET);
	if (mcu & 4) SERIAL_ECHOLNRPGM(MSG_BROWNOUT_RESET);
	if (mcu & 8) SERIAL_ECHOLNRPGM(MSG_WATCHDOG_RESET);
	if (mcu & 32) SERIAL_ECHOLNRPGM(MSG_SOFTWARE_RESET);*/
	if (mcu & 1) puts_P(MSG_POWERUP);
   1fd2e:	f0 fe       	sbrs	r15, 0
   1fd30:	04 c0       	rjmp	.+8      	; 0x1fd3a <main+0x650>
   1fd32:	87 ee       	ldi	r24, 0xE7	; 231
   1fd34:	9c e6       	ldi	r25, 0x6C	; 108
   1fd36:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	if (mcu & 2) puts_P(MSG_EXTERNAL_RESET);
   1fd3a:	f1 fe       	sbrs	r15, 1
   1fd3c:	04 c0       	rjmp	.+8      	; 0x1fd46 <main+0x65c>
   1fd3e:	87 ed       	ldi	r24, 0xD7	; 215
   1fd40:	9c e6       	ldi	r25, 0x6C	; 108
   1fd42:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	if (mcu & 4) puts_P(MSG_BROWNOUT_RESET);
   1fd46:	f2 fe       	sbrs	r15, 2
   1fd48:	04 c0       	rjmp	.+8      	; 0x1fd52 <main+0x668>
   1fd4a:	86 ec       	ldi	r24, 0xC6	; 198
   1fd4c:	9c e6       	ldi	r25, 0x6C	; 108
   1fd4e:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	if (mcu & 8) puts_P(MSG_WATCHDOG_RESET);
   1fd52:	f3 fe       	sbrs	r15, 3
   1fd54:	04 c0       	rjmp	.+8      	; 0x1fd5e <main+0x674>
   1fd56:	86 eb       	ldi	r24, 0xB6	; 182
   1fd58:	9c e6       	ldi	r25, 0x6C	; 108
   1fd5a:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	if (mcu & 32) puts_P(MSG_SOFTWARE_RESET);
   1fd5e:	f5 fe       	sbrs	r15, 5
   1fd60:	04 c0       	rjmp	.+8      	; 0x1fd6a <main+0x680>
   1fd62:	86 ea       	ldi	r24, 0xA6	; 166
   1fd64:	9c e6       	ldi	r25, 0x6C	; 108
   1fd66:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	MCUSR = 0;
   1fd6a:	14 be       	out	0x34, r1	; 52
	//SERIAL_ECHORPGM(MSG_MARLIN);
	//SERIAL_ECHOLNRPGM(VERSION_STRING);

#ifdef STRING_VERSION_CONFIG_H
#ifdef STRING_CONFIG_H_AUTHOR
	SERIAL_ECHO_START;
   1fd6c:	80 ed       	ldi	r24, 0xD0	; 208
   1fd6e:	9a ea       	ldi	r25, 0xAA	; 170
   1fd70:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHORPGM(_n(" Last Updated: "));////MSG_CONFIGURATION_VER
   1fd74:	86 e9       	ldi	r24, 0x96	; 150
   1fd76:	9c e6       	ldi	r25, 0x6C	; 108
   1fd78:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHOPGM(STRING_VERSION_CONFIG_H);
   1fd7c:	89 e4       	ldi	r24, 0x49	; 73
   1fd7e:	9d e8       	ldi	r25, 0x8D	; 141
   1fd80:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHORPGM(_n(" | Author: "));////MSG_AUTHOR
   1fd84:	8a e8       	ldi	r24, 0x8A	; 138
   1fd86:	9c e6       	ldi	r25, 0x6C	; 108
   1fd88:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHOLNPGM(STRING_CONFIG_H_AUTHOR);
   1fd8c:	81 e4       	ldi	r24, 0x41	; 65
   1fd8e:	9d e8       	ldi	r25, 0x8D	; 141
   1fd90:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
#endif
#endif

	SERIAL_ECHO_START;
   1fd94:	80 ed       	ldi	r24, 0xD0	; 208
   1fd96:	9a ea       	ldi	r25, 0xAA	; 170
   1fd98:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHORPGM(_n(" Free Memory: "));////MSG_FREE_MEMORY
   1fd9c:	8b e7       	ldi	r24, 0x7B	; 123
   1fd9e:	9c e6       	ldi	r25, 0x6C	; 108
   1fda0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
/** Amount of free RAM
 * \return The number of free bytes.
 */
int SdFatUtil::FreeRam() {
  char top;
  return __brkval ? &top - __brkval : &top - &__bss_end;
   1fda4:	80 91 16 18 	lds	r24, 0x1816	; 0x801816 <__brkval>
   1fda8:	90 91 17 18 	lds	r25, 0x1817	; 0x801817 <__brkval+0x1>
   1fdac:	00 97       	sbiw	r24, 0x00	; 0
   1fdae:	a1 f1       	breq	.+104    	; 0x1fe18 <main+0x72e>
   1fdb0:	08 1b       	sub	r16, r24
   1fdb2:	19 0b       	sbc	r17, r25
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   1fdb4:	b8 01       	movw	r22, r16
   1fdb6:	11 0f       	add	r17, r17
   1fdb8:	88 0b       	sbc	r24, r24
   1fdba:	99 0b       	sbc	r25, r25
   1fdbc:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
	SERIAL_ECHO(freeMemory());
	SERIAL_ECHORPGM(_n("  PlannerBufferBytes: "));////MSG_PLANNER_BUFFER_BYTES
   1fdc0:	84 e6       	ldi	r24, 0x64	; 100
   1fdc2:	9c e6       	ldi	r25, 0x6C	; 108
   1fdc4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
	SERIAL_ECHOLN((int)sizeof(block_t)*BLOCK_BUFFER_SIZE);
   1fdc8:	80 ee       	ldi	r24, 0xE0	; 224
   1fdca:	96 e0       	ldi	r25, 0x06	; 6
   1fdcc:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
#endif //defined(FILAMENT_SENSOR) && defined(FSENSOR_PROBING)

uint8_t check_printer_version()
{
	uint8_t version_changed = 0;
	uint16_t printer_type = eeprom_init_default_word((uint16_t*)EEPROM_PRINTER_TYPE, PRINTER_TYPE);
   1fdd0:	6c e2       	ldi	r22, 0x2C	; 44
   1fdd2:	71 e0       	ldi	r23, 0x01	; 1
   1fdd4:	8e ee       	ldi	r24, 0xEE	; 238
   1fdd6:	9e e0       	ldi	r25, 0x0E	; 14
   1fdd8:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
   1fddc:	8c 01       	movw	r16, r24
	uint16_t motherboard = eeprom_init_default_word((uint16_t*)EEPROM_BOARD_TYPE, MOTHERBOARD);
   1fdde:	66 e3       	ldi	r22, 0x36	; 54
   1fde0:	71 e0       	ldi	r23, 0x01	; 1
   1fde2:	8c ee       	ldi	r24, 0xEC	; 236
   1fde4:	9e e0       	ldi	r25, 0x0E	; 14
   1fde6:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>

	if (printer_type != PRINTER_TYPE) version_changed |= 0b10;
   1fdea:	0c 32       	cpi	r16, 0x2C	; 44
   1fdec:	11 40       	sbci	r17, 0x01	; 1
   1fdee:	11 f0       	breq	.+4      	; 0x1fdf4 <main+0x70a>
   1fdf0:	0d 94 f0 06 	jmp	0x20de0	; 0x20de0 <main+0x16f6>
	if (motherboard != MOTHERBOARD) version_changed |= 0b01;
   1fdf4:	01 e0       	ldi	r16, 0x01	; 1
   1fdf6:	86 33       	cpi	r24, 0x36	; 54
   1fdf8:	91 40       	sbci	r25, 0x01	; 1
   1fdfa:	09 f4       	brne	.+2      	; 0x1fdfe <main+0x714>
   1fdfc:	00 e0       	ldi	r16, 0x00	; 0
	// loads data from EEPROM if available else uses defaults (and resets step acceleration rate)

	bool previous_settings_retrieved = false;
	uint8_t hw_changed = check_printer_version();
	if (!(hw_changed & 0b10)) { //if printer version wasn't changed, check for eeprom version and retrieve settings from eeprom in case that version wasn't changed
		previous_settings_retrieved = Config_RetrieveSettings();
   1fdfe:	0e 94 3b 93 	call	0x12676	; 0x12676 <Config_RetrieveSettings()>
   1fe02:	f8 2e       	mov	r15, r24
   1fe04:	0d 94 f8 06 	jmp	0x20df0	; 0x20df0 <main+0x1706>
        _delay(50);
        MYSERIAL.flush(); //clear RX buffer
        SERIAL_ECHOLNRPGM(PSTR(";S"));
        while (rxIndex < 19)
        {
            if (timeout.expired(250u))
   1fe08:	80 e0       	ldi	r24, 0x00	; 0
   1fe0a:	54 cf       	rjmp	.-344    	; 0x1fcb4 <main+0x5ca>
            {
                eeprom_update_block_notify(SN, (uint8_t*)EEPROM_PRUSA_SN, 20);
                puts_P(PSTR("SN updated"));
            }
            else
                puts_P(PSTR("SN update failed"));
   1fe0c:	8a e7       	ldi	r24, 0x7A	; 122
   1fe0e:	9d e8       	ldi	r25, 0x8D	; 141
   1fe10:	5f cf       	rjmp	.-322    	; 0x1fcd0 <main+0x5e6>
   1fe12:	83 e1       	ldi	r24, 0x13	; 19
   1fe14:	9c e5       	ldi	r25, 0x5C	; 92
   1fe16:	88 cf       	rjmp	.-240    	; 0x1fd28 <main+0x63e>
   1fe18:	00 52       	subi	r16, 0x20	; 32
   1fe1a:	18 41       	sbci	r17, 0x18	; 24
   1fe1c:	cb cf       	rjmp	.-106    	; 0x1fdb4 <main+0x6ca>
    minttemp_raw[0] -= OVERSAMPLENR;
#endif
  }
#endif //MINTEMP
#ifdef HEATER_0_MAXTEMP
  maxttemp[0] = HEATER_0_MAXTEMP;
   1fe1e:	81 e3       	ldi	r24, 0x31	; 49
   1fe20:	91 e0       	ldi	r25, 0x01	; 1
   1fe22:	90 93 57 02 	sts	0x0257, r25	; 0x800257 <_ZL8maxttemp.lto_priv.472+0x1>
   1fe26:	80 93 56 02 	sts	0x0256, r24	; 0x800256 <_ZL8maxttemp.lto_priv.472>
  while(analog2temp(maxttemp_raw[0], 0) > HEATER_0_MAXTEMP) {
   1fe2a:	80 91 a1 04 	lds	r24, 0x04A1	; 0x8004a1 <_ZL12maxttemp_raw.lto_priv.465>
   1fe2e:	90 91 a2 04 	lds	r25, 0x04A2	; 0x8004a2 <_ZL12maxttemp_raw.lto_priv.465+0x1>
   1fe32:	0f 94 5b a1 	call	0x342b6	; 0x342b6 <analog2temp(int, unsigned char) [clone .constprop.70]>
   1fe36:	20 e0       	ldi	r18, 0x00	; 0
   1fe38:	30 e8       	ldi	r19, 0x80	; 128
   1fe3a:	48 e9       	ldi	r20, 0x98	; 152
   1fe3c:	53 e4       	ldi	r21, 0x43	; 67
   1fe3e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1fe42:	18 16       	cp	r1, r24
   1fe44:	54 f4       	brge	.+20     	; 0x1fe5a <main+0x770>
#if HEATER_0_RAW_LO_TEMP < HEATER_0_RAW_HI_TEMP
    maxttemp_raw[0] -= OVERSAMPLENR;
#else
    maxttemp_raw[0] += OVERSAMPLENR;
   1fe46:	80 91 a1 04 	lds	r24, 0x04A1	; 0x8004a1 <_ZL12maxttemp_raw.lto_priv.465>
   1fe4a:	90 91 a2 04 	lds	r25, 0x04A2	; 0x8004a2 <_ZL12maxttemp_raw.lto_priv.465+0x1>
   1fe4e:	40 96       	adiw	r24, 0x10	; 16
   1fe50:	90 93 a2 04 	sts	0x04A2, r25	; 0x8004a2 <_ZL12maxttemp_raw.lto_priv.465+0x1>
   1fe54:	80 93 a1 04 	sts	0x04A1, r24	; 0x8004a1 <_ZL12maxttemp_raw.lto_priv.465>
   1fe58:	e8 cf       	rjmp	.-48     	; 0x1fe2a <main+0x740>
#endif
  }
#endif //MAXTEMP

#ifdef BED_MINTEMP
  while(analog2tempBed(bed_minttemp_raw) < BED_MINTEMP) {
   1fe5a:	80 91 52 02 	lds	r24, 0x0252	; 0x800252 <_ZL16bed_minttemp_raw.lto_priv.473>
   1fe5e:	90 91 53 02 	lds	r25, 0x0253	; 0x800253 <_ZL16bed_minttemp_raw.lto_priv.473+0x1>
   1fe62:	0f 94 c2 35 	call	0x26b84	; 0x26b84 <analog2tempBed(int) [clone .lto_priv.431]>
   1fe66:	20 e0       	ldi	r18, 0x00	; 0
   1fe68:	30 e0       	ldi	r19, 0x00	; 0
   1fe6a:	40 e2       	ldi	r20, 0x20	; 32
   1fe6c:	51 e4       	ldi	r21, 0x41	; 65
   1fe6e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1fe72:	87 ff       	sbrs	r24, 7
   1fe74:	0a c0       	rjmp	.+20     	; 0x1fe8a <main+0x7a0>
#if HEATER_BED_RAW_LO_TEMP < HEATER_BED_RAW_HI_TEMP
    bed_minttemp_raw += OVERSAMPLENR;
#else
    bed_minttemp_raw -= OVERSAMPLENR;
   1fe76:	80 91 52 02 	lds	r24, 0x0252	; 0x800252 <_ZL16bed_minttemp_raw.lto_priv.473>
   1fe7a:	90 91 53 02 	lds	r25, 0x0253	; 0x800253 <_ZL16bed_minttemp_raw.lto_priv.473+0x1>
   1fe7e:	40 97       	sbiw	r24, 0x10	; 16
   1fe80:	90 93 53 02 	sts	0x0253, r25	; 0x800253 <_ZL16bed_minttemp_raw.lto_priv.473+0x1>
   1fe84:	80 93 52 02 	sts	0x0252, r24	; 0x800252 <_ZL16bed_minttemp_raw.lto_priv.473>
   1fe88:	e8 cf       	rjmp	.-48     	; 0x1fe5a <main+0x770>
#endif
  }
#endif //BED_MINTEMP
#ifdef BED_MAXTEMP
  while(analog2tempBed(bed_maxttemp_raw) > BED_MAXTEMP) {
   1fe8a:	80 91 9f 04 	lds	r24, 0x049F	; 0x80049f <_ZL16bed_maxttemp_raw.lto_priv.466>
   1fe8e:	90 91 a0 04 	lds	r25, 0x04A0	; 0x8004a0 <_ZL16bed_maxttemp_raw.lto_priv.466+0x1>
   1fe92:	0f 94 c2 35 	call	0x26b84	; 0x26b84 <analog2tempBed(int) [clone .lto_priv.431]>
   1fe96:	20 e0       	ldi	r18, 0x00	; 0
   1fe98:	30 e0       	ldi	r19, 0x00	; 0
   1fe9a:	4a ef       	ldi	r20, 0xFA	; 250
   1fe9c:	52 e4       	ldi	r21, 0x42	; 66
   1fe9e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1fea2:	18 16       	cp	r1, r24
   1fea4:	54 f4       	brge	.+20     	; 0x1feba <main+0x7d0>
#if HEATER_BED_RAW_LO_TEMP < HEATER_BED_RAW_HI_TEMP
    bed_maxttemp_raw -= OVERSAMPLENR;
#else
    bed_maxttemp_raw += OVERSAMPLENR;
   1fea6:	80 91 9f 04 	lds	r24, 0x049F	; 0x80049f <_ZL16bed_maxttemp_raw.lto_priv.466>
   1feaa:	90 91 a0 04 	lds	r25, 0x04A0	; 0x8004a0 <_ZL16bed_maxttemp_raw.lto_priv.466+0x1>
   1feae:	40 96       	adiw	r24, 0x10	; 16
   1feb0:	90 93 a0 04 	sts	0x04A0, r25	; 0x8004a0 <_ZL16bed_maxttemp_raw.lto_priv.466+0x1>
   1feb4:	80 93 9f 04 	sts	0x049F, r24	; 0x80049f <_ZL16bed_maxttemp_raw.lto_priv.466>
   1feb8:	e8 cf       	rjmp	.-48     	; 0x1fe8a <main+0x7a0>
#endif
  }
#endif //BED_MAXTEMP

#ifdef AMBIENT_MINTEMP
  while(analog2tempAmbient(ambient_minttemp_raw) < AMBIENT_MINTEMP) {
   1feba:	80 91 50 02 	lds	r24, 0x0250	; 0x800250 <_ZL20ambient_minttemp_raw.lto_priv.464>
   1febe:	90 91 51 02 	lds	r25, 0x0251	; 0x800251 <_ZL20ambient_minttemp_raw.lto_priv.464+0x1>
   1fec2:	0f 94 2d 35 	call	0x26a5a	; 0x26a5a <analog2tempAmbient(int) [clone .lto_priv.430]>
   1fec6:	20 e0       	ldi	r18, 0x00	; 0
   1fec8:	30 e0       	ldi	r19, 0x00	; 0
   1feca:	40 ef       	ldi	r20, 0xF0	; 240
   1fecc:	51 ec       	ldi	r21, 0xC1	; 193
   1fece:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   1fed2:	87 ff       	sbrs	r24, 7
   1fed4:	0a c0       	rjmp	.+20     	; 0x1feea <main+0x800>
#if AMBIENT_RAW_LO_TEMP < AMBIENT_RAW_HI_TEMP
    ambient_minttemp_raw += OVERSAMPLENR;
#else
    ambient_minttemp_raw -= OVERSAMPLENR;
   1fed6:	80 91 50 02 	lds	r24, 0x0250	; 0x800250 <_ZL20ambient_minttemp_raw.lto_priv.464>
   1feda:	90 91 51 02 	lds	r25, 0x0251	; 0x800251 <_ZL20ambient_minttemp_raw.lto_priv.464+0x1>
   1fede:	40 97       	sbiw	r24, 0x10	; 16
   1fee0:	90 93 51 02 	sts	0x0251, r25	; 0x800251 <_ZL20ambient_minttemp_raw.lto_priv.464+0x1>
   1fee4:	80 93 50 02 	sts	0x0250, r24	; 0x800250 <_ZL20ambient_minttemp_raw.lto_priv.464>
   1fee8:	e8 cf       	rjmp	.-48     	; 0x1feba <main+0x7d0>
#endif
  }
#endif //AMBIENT_MINTEMP
#ifdef AMBIENT_MAXTEMP
  while(analog2tempAmbient(ambient_maxttemp_raw) > AMBIENT_MAXTEMP) {
   1feea:	80 91 9d 04 	lds	r24, 0x049D	; 0x80049d <_ZL20ambient_maxttemp_raw.lto_priv.467>
   1feee:	90 91 9e 04 	lds	r25, 0x049E	; 0x80049e <_ZL20ambient_maxttemp_raw.lto_priv.467+0x1>
   1fef2:	0f 94 2d 35 	call	0x26a5a	; 0x26a5a <analog2tempAmbient(int) [clone .lto_priv.430]>
   1fef6:	20 e0       	ldi	r18, 0x00	; 0
   1fef8:	30 e0       	ldi	r19, 0x00	; 0
   1fefa:	40 ea       	ldi	r20, 0xA0	; 160
   1fefc:	52 e4       	ldi	r21, 0x42	; 66
   1fefe:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   1ff02:	18 16       	cp	r1, r24
   1ff04:	54 f4       	brge	.+20     	; 0x1ff1a <main+0x830>
#if AMBIENT_RAW_LO_TEMP < AMBIENT_RAW_HI_TEMP
    ambient_maxttemp_raw -= OVERSAMPLENR;
#else
    ambient_maxttemp_raw += OVERSAMPLENR;
   1ff06:	80 91 9d 04 	lds	r24, 0x049D	; 0x80049d <_ZL20ambient_maxttemp_raw.lto_priv.467>
   1ff0a:	90 91 9e 04 	lds	r25, 0x049E	; 0x80049e <_ZL20ambient_maxttemp_raw.lto_priv.467+0x1>
   1ff0e:	40 96       	adiw	r24, 0x10	; 16
   1ff10:	90 93 9e 04 	sts	0x049E, r25	; 0x80049e <_ZL20ambient_maxttemp_raw.lto_priv.467+0x1>
   1ff14:	80 93 9d 04 	sts	0x049D, r24	; 0x80049d <_ZL20ambient_maxttemp_raw.lto_priv.467>
   1ff18:	e8 cf       	rjmp	.-48     	; 0x1feea <main+0x800>
#include <avr/interrupt.h>
#include "macros.h"

void timer0_init(void)
{
	CRITICAL_SECTION_START;
   1ff1a:	9f b7       	in	r25, 0x3f	; 63
   1ff1c:	f8 94       	cli

	TCNT0  = 0;
   1ff1e:	16 bc       	out	0x26, r1	; 38
	// Fast PWM duty (0-255).
	// Due to invert mode (following rows) the duty is set to 255, which means zero all the time (bed not heating)
	OCR0B = 255;
   1ff20:	8f ef       	ldi	r24, 0xFF	; 255
   1ff22:	88 bd       	out	0x28, r24	; 40
	// Set fast PWM mode and inverting mode.
	TCCR0A = (1 << WGM01) | (1 << WGM00) | (1 << COM0B1) | (1 << COM0B0);
   1ff24:	83 e3       	ldi	r24, 0x33	; 51
   1ff26:	84 bd       	out	0x24, r24	; 36
	TCCR0B = (1 << CS01);    // CLK/8 prescaling
   1ff28:	12 e0       	ldi	r17, 0x02	; 2
   1ff2a:	15 bd       	out	0x25, r17	; 37
	TIMSK0 |= (1 << TOIE0);  // enable timer overflow interrupt
   1ff2c:	80 91 6e 00 	lds	r24, 0x006E	; 0x80006e <__TEXT_REGION_LENGTH__+0x7c206e>
   1ff30:	81 60       	ori	r24, 0x01	; 1
   1ff32:	80 93 6e 00 	sts	0x006E, r24	; 0x80006e <__TEXT_REGION_LENGTH__+0x7c206e>

	CRITICAL_SECTION_END;
   1ff36:	9f bf       	out	0x3f, r25	; 63

  timer0_init(); //enables the heatbed timer.

  // timer2 already enabled earlier in the code
  // now enable the COMPB temperature interrupt
  OCR2B = 128;
   1ff38:	80 e8       	ldi	r24, 0x80	; 128
   1ff3a:	80 93 b4 00 	sts	0x00B4, r24	; 0x8000b4 <__TEXT_REGION_LENGTH__+0x7c20b4>
  ENABLE_SOFT_PWM_INTERRUPT();
   1ff3e:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   1ff42:	84 60       	ori	r24, 0x04	; 4
   1ff44:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
#include "fastio.h"
#include "macros.h"

void timer4_init(void)
{
	CRITICAL_SECTION_START;
   1ff48:	2f b7       	in	r18, 0x3f	; 63
   1ff4a:	f8 94       	cli

	SET_OUTPUT(BEEPER);
   1ff4c:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   1ff50:	84 60       	ori	r24, 0x04	; 4
   1ff52:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
	WRITE(BEEPER, LOW);
   1ff56:	9f b7       	in	r25, 0x3f	; 63
   1ff58:	f8 94       	cli
   1ff5a:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   1ff5e:	8b 7f       	andi	r24, 0xFB	; 251
   1ff60:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   1ff64:	9f bf       	out	0x3f, r25	; 63

	SET_OUTPUT(EXTRUDER_0_AUTO_FAN_PIN);
   1ff66:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   1ff6a:	80 62       	ori	r24, 0x20	; 32
   1ff6c:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
	// Set timer mode 9 (PWM,Phase and Frequency Correct)
	// Prescaler is CLK/1024
	// Output compare is disabled on all timer pins
	// Input capture is disabled
	// All interrupts are disabled
	TCCR4A = _BV(WGM40);
   1ff70:	81 e0       	ldi	r24, 0x01	; 1
   1ff72:	80 93 a0 00 	sts	0x00A0, r24	; 0x8000a0 <__TEXT_REGION_LENGTH__+0x7c20a0>
	TCCR4B = _BV(WGM43) | _BV(CS42) | _BV(CS40);
   1ff76:	85 e1       	ldi	r24, 0x15	; 21
   1ff78:	80 93 a1 00 	sts	0x00A1, r24	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
	OCR4A = 255U;
   1ff7c:	8f ef       	ldi	r24, 0xFF	; 255
   1ff7e:	90 e0       	ldi	r25, 0x00	; 0
   1ff80:	90 93 a9 00 	sts	0x00A9, r25	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   1ff84:	80 93 a8 00 	sts	0x00A8, r24	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
	OCR4B = 255U;
   1ff88:	90 93 ab 00 	sts	0x00AB, r25	; 0x8000ab <__TEXT_REGION_LENGTH__+0x7c20ab>
   1ff8c:	80 93 aa 00 	sts	0x00AA, r24	; 0x8000aa <__TEXT_REGION_LENGTH__+0x7c20aa>
	OCR4C = 255U;
   1ff90:	90 93 ad 00 	sts	0x00AD, r25	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   1ff94:	80 93 ac 00 	sts	0x00AC, r24	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
	TIMSK4 = 0;
   1ff98:	10 92 72 00 	sts	0x0072, r1	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>

	CRITICAL_SECTION_END;
   1ff9c:	2f bf       	out	0x3f, r18	; 63
static void adc_reset();
static void adc_setmux(uint8_t ch);

void adc_init()
{
	puts_P(PSTR("adc_init"));
   1ff9e:	8a eb       	ldi	r24, 0xBA	; 186
   1ffa0:	9c e8       	ldi	r25, 0x8C	; 140
   1ffa2:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
    DIDR0 = ((ADC_CHAN_MSK & ADC_DIDR_MSK) & 0xff); //disable digital inputs PORTF
   1ffa6:	8f e5       	ldi	r24, 0x5F	; 95
   1ffa8:	80 93 7e 00 	sts	0x007E, r24	; 0x80007e <__TEXT_REGION_LENGTH__+0x7c207e>
    DIDR2 = ((ADC_CHAN_MSK & ADC_DIDR_MSK) >> 8); //disable digital inputs PORTK
   1ffac:	10 93 7d 00 	sts	0x007D, r17	; 0x80007d <__TEXT_REGION_LENGTH__+0x7c207d>
    ADMUX |= (1 << REFS0); //use AVCC as reference
   1ffb0:	80 91 7c 00 	lds	r24, 0x007C	; 0x80007c <__TEXT_REGION_LENGTH__+0x7c207c>
   1ffb4:	80 64       	ori	r24, 0x40	; 64
   1ffb6:	80 93 7c 00 	sts	0x007C, r24	; 0x80007c <__TEXT_REGION_LENGTH__+0x7c207c>

    //enable ADC, set prescaler/128, enable interrupt
    ADCSRA = (1 << ADEN) | (1 << ADPS2) | (1 << ADPS1) | (1 << ADPS0) | (1 << ADIF) | (1 << ADIE);
   1ffba:	8f e9       	ldi	r24, 0x9F	; 159
   1ffbc:	80 93 7a 00 	sts	0x007A, r24	; 0x80007a <__TEXT_REGION_LENGTH__+0x7c207a>

void temp_mgr_init()
{
    // initialize the ADC and start a conversion
    adc_init();
    adc_start_cycle();
   1ffc0:	0e 94 66 8d 	call	0x11acc	; 0x11acc <adc_start_cycle()>

    // initialize temperature timer
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   1ffc4:	9f b7       	in	r25, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   1ffc6:	f8 94       	cli

        // CTC
        TCCRxB &= ~(1<<WGMx3);
   1ffc8:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   1ffcc:	8f 7e       	andi	r24, 0xEF	; 239
   1ffce:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
        TCCRxB |=  (1<<WGMx2);
   1ffd2:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   1ffd6:	88 60       	ori	r24, 0x08	; 8
   1ffd8:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
        TCCRxA &= ~(1<<WGMx1);
   1ffdc:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1ffe0:	8d 7f       	andi	r24, 0xFD	; 253
   1ffe2:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
        TCCRxA &= ~(1<<WGMx0);
   1ffe6:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1ffea:	8e 7f       	andi	r24, 0xFE	; 254
   1ffec:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>

        // output mode = 00 (disconnected)
        TCCRxA &= ~(3<<COMxA0);
   1fff0:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1fff4:	8f 73       	andi	r24, 0x3F	; 63
   1fff6:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
        TCCRxA &= ~(3<<COMxB0);
   1fffa:	80 91 20 01 	lds	r24, 0x0120	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>
   1fffe:	8f 7c       	andi	r24, 0xCF	; 207
   20000:	80 93 20 01 	sts	0x0120, r24	; 0x800120 <__TEXT_REGION_LENGTH__+0x7c2120>

        // x/256 prescaler
        TCCRxB |=  (1<<CSx2);
   20004:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   20008:	84 60       	ori	r24, 0x04	; 4
   2000a:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
        TCCRxB &= ~(1<<CSx1);
   2000e:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   20012:	8d 7f       	andi	r24, 0xFD	; 253
   20014:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
        TCCRxB &= ~(1<<CSx0);
   20018:	80 91 21 01 	lds	r24, 0x0121	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>
   2001c:	8e 7f       	andi	r24, 0xFE	; 254
   2001e:	80 93 21 01 	sts	0x0121, r24	; 0x800121 <__TEXT_REGION_LENGTH__+0x7c2121>

        // reset counter
        TCNTx = 0;
   20022:	10 92 25 01 	sts	0x0125, r1	; 0x800125 <__TEXT_REGION_LENGTH__+0x7c2125>
   20026:	10 92 24 01 	sts	0x0124, r1	; 0x800124 <__TEXT_REGION_LENGTH__+0x7c2124>
        OCRxA = TEMP_TIM_OCRA_OVF;
   2002a:	2b ee       	ldi	r18, 0xEB	; 235
   2002c:	31 e4       	ldi	r19, 0x41	; 65
   2002e:	30 93 29 01 	sts	0x0129, r19	; 0x800129 <__TEXT_REGION_LENGTH__+0x7c2129>
   20032:	20 93 28 01 	sts	0x0128, r18	; 0x800128 <__TEXT_REGION_LENGTH__+0x7c2128>

        // clear pending interrupts, enable COMPA
        TEMP_MGR_INT_FLAG_CLEAR();
   20036:	d1 9a       	sbi	0x1a, 1	; 26
        ENABLE_TEMP_MGR_INTERRUPT();
   20038:	80 91 73 00 	lds	r24, 0x0073	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
   2003c:	82 60       	ori	r24, 0x02	; 2
   2003e:	80 93 73 00 	sts	0x0073, r24	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   20042:	9f bf       	out	0x3f, r25	; 63

//    SERIAL_ECHOLNPGM("planner_recalculate - 4");
}

void plan_init() {
  block_buffer_head = 0;
   20044:	10 92 a5 0d 	sts	0x0DA5, r1	; 0x800da5 <block_buffer_head>
  block_buffer_tail = 0;
   20048:	10 92 a6 0d 	sts	0x0DA6, r1	; 0x800da6 <block_buffer_tail>
  memset(position, 0, sizeof(position)); // clear position
   2004c:	80 e1       	ldi	r24, 0x10	; 16
   2004e:	e3 ea       	ldi	r30, 0xA3	; 163
   20050:	f6 e0       	ldi	r31, 0x06	; 6
   20052:	df 01       	movw	r26, r30
   20054:	28 2f       	mov	r18, r24
   20056:	1d 92       	st	X+, r1
   20058:	2a 95       	dec	r18
   2005a:	e9 f7       	brne	.-6      	; 0x20056 <main+0x96c>
  #ifdef LIN_ADVANCE
  memset(position_float, 0, sizeof(position_float)); // clear position
   2005c:	ed ec       	ldi	r30, 0xCD	; 205
   2005e:	f4 e0       	ldi	r31, 0x04	; 4
   20060:	df 01       	movw	r26, r30
   20062:	28 2f       	mov	r18, r24
   20064:	1d 92       	st	X+, r1
   20066:	2a 95       	dec	r18
   20068:	e9 f7       	brne	.-6      	; 0x20064 <main+0x97a>
  #endif
  memset(previous_speed, 0, sizeof(previous_speed));
   2006a:	ed eb       	ldi	r30, 0xBD	; 189
   2006c:	f4 e0       	ldi	r31, 0x04	; 4
   2006e:	df 01       	movw	r26, r30
   20070:	1d 92       	st	X+, r1
   20072:	8a 95       	dec	r24
   20074:	e9 f7       	brne	.-6      	; 0x20070 <main+0x986>
  previous_nominal_speed = 0.0;
   20076:	10 92 b9 04 	sts	0x04B9, r1	; 0x8004b9 <_ZL22previous_nominal_speed.lto_priv.490>
   2007a:	10 92 ba 04 	sts	0x04BA, r1	; 0x8004ba <_ZL22previous_nominal_speed.lto_priv.490+0x1>
   2007e:	10 92 bb 04 	sts	0x04BB, r1	; 0x8004bb <_ZL22previous_nominal_speed.lto_priv.490+0x2>
   20082:	10 92 bc 04 	sts	0x04BC, r1	; 0x8004bc <_ZL22previous_nominal_speed.lto_priv.490+0x3>
  plan_reset_next_e_queue = false;
   20086:	10 92 b8 04 	sts	0x04B8, r1	; 0x8004b8 <_ZL23plan_reset_next_e_queue.lto_priv.488>
  plan_reset_next_e_sched = false;
   2008a:	10 92 b7 04 	sts	0x04B7, r1	; 0x8004b7 <_ZL23plan_reset_next_e_sched.lto_priv.489>
}


void factory_reset()
{
	KEEPALIVE_STATE(PAUSED_FOR_USER);
   2008e:	84 e0       	ldi	r24, 0x04	; 4
   20090:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
	if (!READ(BTN_ENC))
   20094:	80 91 00 01 	lds	r24, 0x0100	; 0x800100 <__TEXT_REGION_LENGTH__+0x7c2100>
   20098:	86 fd       	sbrc	r24, 6
   2009a:	ca c0       	rjmp	.+404    	; 0x20230 <main+0xb46>
   2009c:	bf ef       	ldi	r27, 0xFF	; 255
   2009e:	e3 ed       	ldi	r30, 0xD3	; 211
   200a0:	f0 e3       	ldi	r31, 0x30	; 48
   200a2:	b1 50       	subi	r27, 0x01	; 1
   200a4:	e0 40       	sbci	r30, 0x00	; 0
   200a6:	f0 40       	sbci	r31, 0x00	; 0
   200a8:	e1 f7       	brne	.-8      	; 0x200a2 <main+0x9b8>
   200aa:	00 c0       	rjmp	.+0      	; 0x200ac <main+0x9c2>
   200ac:	00 00       	nop
	{
		_delay_ms(1000);
		if (!READ(BTN_ENC))
   200ae:	80 91 00 01 	lds	r24, 0x0100	; 0x800100 <__TEXT_REGION_LENGTH__+0x7c2100>
   200b2:	86 fd       	sbrc	r24, 6
   200b4:	bd c0       	rjmp	.+378    	; 0x20230 <main+0xb46>
		{
			lcd_clear();
   200b6:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

			lcd_puts_P(PSTR("Factory RESET"));
   200ba:	84 e1       	ldi	r24, 0x14	; 20
   200bc:	9d e8       	ldi	r25, 0x8D	; 141
   200be:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

			SET_OUTPUT(BEEPER);
   200c2:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   200c6:	84 60       	ori	r24, 0x04	; 4
   200c8:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
			if(eSoundMode!=e_SOUND_MODE_SILENT)
   200cc:	80 91 de 04 	lds	r24, 0x04DE	; 0x8004de <eSoundMode>
   200d0:	82 30       	cpi	r24, 0x02	; 2
   200d2:	41 f0       	breq	.+16     	; 0x200e4 <main+0x9fa>
				WRITE(BEEPER, HIGH);
   200d4:	9f b7       	in	r25, 0x3f	; 63
   200d6:	f8 94       	cli
   200d8:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   200dc:	84 60       	ori	r24, 0x04	; 4
   200de:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   200e2:	9f bf       	out	0x3f, r25	; 63

			while (!READ(BTN_ENC));
   200e4:	80 91 00 01 	lds	r24, 0x0100	; 0x800100 <__TEXT_REGION_LENGTH__+0x7c2100>
   200e8:	86 ff       	sbrs	r24, 6
   200ea:	fc cf       	rjmp	.-8      	; 0x200e4 <main+0x9fa>

			WRITE(BEEPER, LOW);
   200ec:	9f b7       	in	r25, 0x3f	; 63
   200ee:	f8 94       	cli
   200f0:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   200f4:	8b 7f       	andi	r24, 0xFB	; 251
   200f6:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   200fa:	9f bf       	out	0x3f, r25	; 63
   200fc:	2f ef       	ldi	r18, 0xFF	; 255
   200fe:	37 ea       	ldi	r19, 0xA7	; 167
   20100:	81 e6       	ldi	r24, 0x61	; 97
   20102:	21 50       	subi	r18, 0x01	; 1
   20104:	30 40       	sbci	r19, 0x00	; 0
   20106:	80 40       	sbci	r24, 0x00	; 0
   20108:	e1 f7       	brne	.-8      	; 0x20102 <main+0xa18>
   2010a:	00 c0       	rjmp	.+0      	; 0x2010c <main+0xa22>
   2010c:	00 00       	nop
		PSTR("Language"),
		PSTR("Statistics"),
		PSTR("Shipping prep"),
		PSTR("Service prep"),
		PSTR("All Data"),
	};
   2010e:	8a ef       	ldi	r24, 0xFA	; 250
   20110:	9c e8       	ldi	r25, 0x8C	; 140
   20112:	9a 83       	std	Y+2, r25	; 0x02
   20114:	89 83       	std	Y+1, r24	; 0x01
   20116:	8f ee       	ldi	r24, 0xEF	; 239
   20118:	9c e8       	ldi	r25, 0x8C	; 140
   2011a:	9c 83       	std	Y+4, r25	; 0x04
   2011c:	8b 83       	std	Y+3, r24	; 0x03
   2011e:	81 ee       	ldi	r24, 0xE1	; 225
   20120:	9c e8       	ldi	r25, 0x8C	; 140
   20122:	9e 83       	std	Y+6, r25	; 0x06
   20124:	8d 83       	std	Y+5, r24	; 0x05
   20126:	84 ed       	ldi	r24, 0xD4	; 212
   20128:	9c e8       	ldi	r25, 0x8C	; 140
   2012a:	98 87       	std	Y+8, r25	; 0x08
   2012c:	8f 83       	std	Y+7, r24	; 0x07
   2012e:	8b ec       	ldi	r24, 0xCB	; 203
   20130:	9c e8       	ldi	r25, 0x8C	; 140
   20132:	9a 87       	std	Y+10, r25	; 0x0a
   20134:	89 87       	std	Y+9, r24	; 0x09

	lcd_clear();
   20136:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	lcd_putc_at(0, 0, '>');
   2013a:	4e e3       	ldi	r20, 0x3E	; 62
   2013c:	60 e0       	ldi	r22, 0x00	; 0
   2013e:	80 e0       	ldi	r24, 0x00	; 0
   20140:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
	lcd_consume_click();
   20144:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
	}
}

char reset_menu() {
	static int8_t first = 0;
	char cursor_pos = 0;
   20148:	10 e0       	ldi	r17, 0x00	; 0
   2014a:	d1 2c       	mov	r13, r1
   2014c:	c1 2c       	mov	r12, r1
	lcd_putc_at(0, 0, '>');
	lcd_consume_click();
	while (1) {

		for (uint_least8_t i = 0; i < 4; i++) {
			lcd_puts_at_P(1, i, item[first + i]);
   2014e:	80 91 dd 04 	lds	r24, 0x04DD	; 0x8004dd <reset_menu()::first>
   20152:	f6 01       	movw	r30, r12
   20154:	e8 0f       	add	r30, r24
   20156:	f1 1d       	adc	r31, r1
   20158:	87 fd       	sbrc	r24, 7
   2015a:	fa 95       	dec	r31
   2015c:	ee 0f       	add	r30, r30
   2015e:	ff 1f       	adc	r31, r31
   20160:	a1 e0       	ldi	r26, 0x01	; 1
   20162:	b0 e0       	ldi	r27, 0x00	; 0
   20164:	ac 0f       	add	r26, r28
   20166:	bd 1f       	adc	r27, r29
   20168:	ea 0f       	add	r30, r26
   2016a:	fb 1f       	adc	r31, r27
   2016c:	40 81       	ld	r20, Z
   2016e:	51 81       	ldd	r21, Z+1	; 0x01
   20170:	6c 2d       	mov	r22, r12
   20172:	81 e0       	ldi	r24, 0x01	; 1
   20174:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
   20178:	bf ef       	ldi	r27, 0xFF	; 255
   2017a:	cb 1a       	sub	r12, r27
   2017c:	db 0a       	sbc	r13, r27
	lcd_clear();
	lcd_putc_at(0, 0, '>');
	lcd_consume_click();
	while (1) {

		for (uint_least8_t i = 0; i < 4; i++) {
   2017e:	e4 e0       	ldi	r30, 0x04	; 4
   20180:	ce 16       	cp	r12, r30
   20182:	d1 04       	cpc	r13, r1
   20184:	21 f7       	brne	.-56     	; 0x2014e <main+0xa64>
			lcd_puts_at_P(1, i, item[first + i]);
		}

		manage_heater();
   20186:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity(true);
   2018a:	81 e0       	ldi	r24, 0x01	; 1
   2018c:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>

		if (lcd_encoder) {
   20190:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   20194:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   20198:	00 97       	sbiw	r24, 0x00	; 0
   2019a:	71 f1       	breq	.+92     	; 0x201f8 <main+0xb0e>
			if (lcd_encoder < 0) {
   2019c:	97 ff       	sbrs	r25, 7
   2019e:	12 c0       	rjmp	.+36     	; 0x201c4 <main+0xada>
				cursor_pos--;
   201a0:	11 50       	subi	r17, 0x01	; 1

			if (lcd_encoder > 0) {
				cursor_pos++;
			}

			if (cursor_pos > 3) {
   201a2:	14 30       	cpi	r17, 0x04	; 4
   201a4:	0c f4       	brge	.+2      	; 0x201a8 <main+0xabe>
   201a6:	a6 c0       	rjmp	.+332    	; 0x202f4 <main+0xc0a>
				cursor_pos = 3;
				Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   201a8:	87 e0       	ldi	r24, 0x07	; 7
   201aa:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
				if (first < (uint8_t)(sizeof(item) / sizeof(item[0])) - 4) {
   201ae:	80 91 dd 04 	lds	r24, 0x04DD	; 0x8004dd <reset_menu()::first>
   201b2:	18 16       	cp	r1, r24
   201b4:	2c f0       	brlt	.+10     	; 0x201c0 <main+0xad6>
					first++;
   201b6:	8f 5f       	subi	r24, 0xFF	; 255
   201b8:	80 93 dd 04 	sts	0x04DD, r24	; 0x8004dd <reset_menu()::first>
					lcd_clear();
   201bc:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
			if (lcd_encoder > 0) {
				cursor_pos++;
			}

			if (cursor_pos > 3) {
				cursor_pos = 3;
   201c0:	13 e0       	ldi	r17, 0x03	; 3
   201c2:	03 c0       	rjmp	.+6      	; 0x201ca <main+0xae0>
			if (lcd_encoder < 0) {
				cursor_pos--;
			}

			if (lcd_encoder > 0) {
				cursor_pos++;
   201c4:	1f 5f       	subi	r17, 0xFF	; 255
			}

			if (cursor_pos > 3) {
   201c6:	14 30       	cpi	r17, 0x04	; 4
   201c8:	78 f7       	brcc	.-34     	; 0x201a8 <main+0xabe>
				if (first > 0) {
					first--;
					lcd_clear();
				}
			}
			lcd_puts_at_P(0, 0, PSTR(" \n \n \n "));
   201ca:	43 ec       	ldi	r20, 0xC3	; 195
   201cc:	5c e8       	ldi	r21, 0x8C	; 140
   201ce:	60 e0       	ldi	r22, 0x00	; 0
   201d0:	80 e0       	ldi	r24, 0x00	; 0
   201d2:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
			lcd_set_cursor(0, cursor_pos);
   201d6:	61 2f       	mov	r22, r17
   201d8:	80 e0       	ldi	r24, 0x00	; 0
   201da:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
			lcd_putc('>');
   201de:	8e e3       	ldi	r24, 0x3E	; 62
   201e0:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
			lcd_encoder = 0;
   201e4:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   201e8:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
			_delay(100);
   201ec:	64 e6       	ldi	r22, 0x64	; 100
   201ee:	70 e0       	ldi	r23, 0x00	; 0
   201f0:	80 e0       	ldi	r24, 0x00	; 0
   201f2:	90 e0       	ldi	r25, 0x00	; 0
   201f4:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
		}

		if (lcd_clicked()) {
   201f8:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   201fc:	88 23       	and	r24, r24
   201fe:	09 f4       	brne	.+2      	; 0x20202 <main+0xb18>
   20200:	a4 cf       	rjmp	.-184    	; 0x2014a <main+0xa60>
			return(cursor_pos + first);
   20202:	80 91 dd 04 	lds	r24, 0x04DD	; 0x8004dd <reset_menu()::first>
   20206:	18 0f       	add	r17, r24
// Factory reset function
// This function is used to erase parts or whole EEPROM memory which is used for storing calibration and and so on.
// Level input parameter sets depth of reset
static void factory_reset(char level)
{
	lcd_clear();
   20208:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	Sound_MakeCustom(100,0,false);
   2020c:	40 e0       	ldi	r20, 0x00	; 0
   2020e:	70 e0       	ldi	r23, 0x00	; 0
   20210:	60 e0       	ldi	r22, 0x00	; 0
   20212:	84 e6       	ldi	r24, 0x64	; 100
   20214:	90 e0       	ldi	r25, 0x00	; 0
   20216:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
	switch (level) {
   2021a:	12 30       	cpi	r17, 0x02	; 2
   2021c:	09 f4       	brne	.+2      	; 0x20220 <main+0xb36>
   2021e:	a0 c0       	rjmp	.+320    	; 0x20360 <main+0xc76>
   20220:	08 f0       	brcs	.+2      	; 0x20224 <main+0xb3a>
   20222:	79 c0       	rjmp	.+242    	; 0x20316 <main+0xc2c>
   20224:	11 23       	and	r17, r17
   20226:	09 f4       	brne	.+2      	; 0x2022a <main+0xb40>
   20228:	93 c0       	rjmp	.+294    	; 0x20350 <main+0xc66>
   2022a:	11 30       	cpi	r17, 0x01	; 1
   2022c:	09 f4       	brne	.+2      	; 0x20230 <main+0xb46>
   2022e:	93 c0       	rjmp	.+294    	; 0x20356 <main+0xc6c>
			case 4: _delay_ms(0); break;
			}

		}
	}
	KEEPALIVE_STATE(IN_HANDLER);
   20230:	82 e0       	ldi	r24, 0x02	; 2
   20232:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

	plan_init();  // Initialize planner;

	factory_reset();

  eeprom_init_default_byte((uint8_t*)EEPROM_SILENT, SILENT_MODE_OFF);
   20236:	60 e0       	ldi	r22, 0x00	; 0
   20238:	8f ef       	ldi	r24, 0xFF	; 255
   2023a:	9f e0       	ldi	r25, 0x0F	; 15
   2023c:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
  eeprom_init_default_byte((uint8_t*)EEPROM_WIZARD_ACTIVE, 1); //run wizard if uninitialized
   20240:	61 e0       	ldi	r22, 0x01	; 1
   20242:	8f e5       	ldi	r24, 0x5F	; 95
   20244:	9f e0       	ldi	r25, 0x0F	; 15
   20246:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>

#ifdef TMC2130
	uint8_t silentMode = eeprom_read_byte((uint8_t*)EEPROM_SILENT);
   2024a:	8f ef       	ldi	r24, 0xFF	; 255
   2024c:	9f e0       	ldi	r25, 0x0F	; 15
   2024e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20252:	18 2f       	mov	r17, r24
	if (silentMode == 0xff) silentMode = 0;
   20254:	8f 3f       	cpi	r24, 0xFF	; 255
   20256:	09 f4       	brne	.+2      	; 0x2025a <main+0xb70>
   20258:	10 e0       	ldi	r17, 0x00	; 0
	tmc2130_mode = TMC2130_MODE_NORMAL;
   2025a:	10 92 8c 06 	sts	0x068C, r1	; 0x80068c <tmc2130_mode>

  tmc2130_sg_stop_on_crash = eeprom_init_default_byte((uint8_t*)EEPROM_CRASH_DET, farm_mode ? false : true);
   2025e:	61 e0       	ldi	r22, 0x01	; 1
   20260:	89 e6       	ldi	r24, 0x69	; 105
   20262:	9f e0       	ldi	r25, 0x0F	; 15
   20264:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20268:	91 e0       	ldi	r25, 0x01	; 1
   2026a:	81 11       	cpse	r24, r1
   2026c:	01 c0       	rjmp	.+2      	; 0x20270 <main+0xb86>
   2026e:	90 e0       	ldi	r25, 0x00	; 0
   20270:	90 93 5c 02 	sts	0x025C, r25	; 0x80025c <tmc2130_sg_stop_on_crash>

	if (tmc2130_sg_stop_on_crash) {
   20274:	88 23       	and	r24, r24
   20276:	09 f4       	brne	.+2      	; 0x2027a <main+0xb90>
   20278:	a5 c0       	rjmp	.+330    	; 0x203c4 <main+0xcda>
    puts_P(_N("CrashDetect ENABLED!"));
   2027a:	8f e4       	ldi	r24, 0x4F	; 79
   2027c:	9c e6       	ldi	r25, 0x6C	; 108
	} else {
	    puts_P(_N("CrashDetect DISABLED"));
   2027e:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	}

#ifdef TMC2130_LINEARITY_CORRECTION
#ifdef TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_wave_fac[X_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_X_FAC);
   20282:	87 ef       	ldi	r24, 0xF7	; 247
   20284:	9e e0       	ldi	r25, 0x0E	; 14
   20286:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2028a:	c8 2e       	mov	r12, r24
   2028c:	80 93 f9 04 	sts	0x04F9, r24	; 0x8004f9 <tmc2130_wave_fac>
	tmc2130_wave_fac[Y_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_Y_FAC);
   20290:	86 ef       	ldi	r24, 0xF6	; 246
   20292:	9e e0       	ldi	r25, 0x0E	; 14
   20294:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20298:	d8 2e       	mov	r13, r24
   2029a:	80 93 fa 04 	sts	0x04FA, r24	; 0x8004fa <tmc2130_wave_fac+0x1>
	tmc2130_wave_fac[Z_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_Z_FAC);
   2029e:	85 ef       	ldi	r24, 0xF5	; 245
   202a0:	9e e0       	ldi	r25, 0x0E	; 14
   202a2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   202a6:	e8 2e       	mov	r14, r24
   202a8:	80 93 fb 04 	sts	0x04FB, r24	; 0x8004fb <tmc2130_wave_fac+0x2>
#endif //TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_wave_fac[E_AXIS] = eeprom_read_byte((uint8_t*)EEPROM_TMC2130_WAVE_E_FAC);
   202ac:	84 ef       	ldi	r24, 0xF4	; 244
   202ae:	9e e0       	ldi	r25, 0x0E	; 14
   202b0:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   202b4:	80 93 fc 04 	sts	0x04FC, r24	; 0x8004fc <tmc2130_wave_fac+0x3>
	if (tmc2130_wave_fac[X_AXIS] == 0xff) tmc2130_wave_fac[X_AXIS] = 0;
   202b8:	2f ef       	ldi	r18, 0xFF	; 255
   202ba:	c2 12       	cpse	r12, r18
   202bc:	02 c0       	rjmp	.+4      	; 0x202c2 <main+0xbd8>
   202be:	10 92 f9 04 	sts	0x04F9, r1	; 0x8004f9 <tmc2130_wave_fac>
	if (tmc2130_wave_fac[Y_AXIS] == 0xff) tmc2130_wave_fac[Y_AXIS] = 0;
   202c2:	3f ef       	ldi	r19, 0xFF	; 255
   202c4:	d3 12       	cpse	r13, r19
   202c6:	02 c0       	rjmp	.+4      	; 0x202cc <main+0xbe2>
   202c8:	10 92 fa 04 	sts	0x04FA, r1	; 0x8004fa <tmc2130_wave_fac+0x1>
	if (tmc2130_wave_fac[Z_AXIS] == 0xff) tmc2130_wave_fac[Z_AXIS] = 0;
   202cc:	9f ef       	ldi	r25, 0xFF	; 255
   202ce:	e9 12       	cpse	r14, r25
   202d0:	02 c0       	rjmp	.+4      	; 0x202d6 <main+0xbec>
   202d2:	10 92 fb 04 	sts	0x04FB, r1	; 0x8004fb <tmc2130_wave_fac+0x2>
	if (tmc2130_wave_fac[E_AXIS] == 0xff) tmc2130_wave_fac[E_AXIS] = 0;
   202d6:	8f 3f       	cpi	r24, 0xFF	; 255
   202d8:	11 f4       	brne	.+4      	; 0x202de <main+0xbf4>
   202da:	10 92 fc 04 	sts	0x04FC, r1	; 0x8004fc <tmc2130_wave_fac+0x3>
#endif //TMC2130_LINEARITY_CORRECTION

#ifdef TMC2130_VARIABLE_RESOLUTION
	tmc2130_mres[X_AXIS] = tmc2130_usteps2mres(cs.axis_ustep_resolution[X_AXIS]);
   202de:	80 91 7a 0e 	lds	r24, 0x0E7A	; 0x800e7a <cs+0xbc>
   202e2:	90 e0       	ldi	r25, 0x00	; 0
	//printf_P(PSTR("MSLUT[%d]=%08lx\n"), i, val);
}

uint8_t tmc2130_usteps2mres(uint16_t usteps)
{
	uint8_t mres = 8; while (usteps >>= 1) mres--;
   202e4:	28 e0       	ldi	r18, 0x08	; 8
   202e6:	96 95       	lsr	r25
   202e8:	87 95       	ror	r24
   202ea:	00 97       	sbiw	r24, 0x00	; 0
   202ec:	09 f4       	brne	.+2      	; 0x202f0 <main+0xc06>
   202ee:	6d c0       	rjmp	.+218    	; 0x203ca <main+0xce0>
   202f0:	21 50       	subi	r18, 0x01	; 1
   202f2:	f9 cf       	rjmp	.-14     	; 0x202e6 <main+0xbfc>
					first++;
					lcd_clear();
				}
			}

			if (cursor_pos < 0) {
   202f4:	1f 3f       	cpi	r17, 0xFF	; 255
   202f6:	09 f0       	breq	.+2      	; 0x202fa <main+0xc10>
   202f8:	68 cf       	rjmp	.-304    	; 0x201ca <main+0xae0>
				cursor_pos = 0;
				Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   202fa:	87 e0       	ldi	r24, 0x07	; 7
   202fc:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
				if (first > 0) {
   20300:	80 91 dd 04 	lds	r24, 0x04DD	; 0x8004dd <reset_menu()::first>
   20304:	18 16       	cp	r1, r24
   20306:	2c f4       	brge	.+10     	; 0x20312 <main+0xc28>
					first--;
   20308:	81 50       	subi	r24, 0x01	; 1
   2030a:	80 93 dd 04 	sts	0x04DD, r24	; 0x8004dd <reset_menu()::first>
					lcd_clear();
   2030e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
					lcd_clear();
				}
			}

			if (cursor_pos < 0) {
				cursor_pos = 0;
   20312:	10 e0       	ldi	r17, 0x00	; 0
   20314:	5a cf       	rjmp	.-332    	; 0x201ca <main+0xae0>
// Level input parameter sets depth of reset
static void factory_reset(char level)
{
	lcd_clear();
	Sound_MakeCustom(100,0,false);
	switch (level) {
   20316:	13 30       	cpi	r17, 0x03	; 3
   20318:	29 f1       	breq	.+74     	; 0x20364 <main+0xc7a>
   2031a:	14 30       	cpi	r17, 0x04	; 4
   2031c:	09 f0       	breq	.+2      	; 0x20320 <main+0xc36>
   2031e:	88 cf       	rjmp	.-240    	; 0x20230 <main+0xb46>
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
#endif //FILAMENT_SENSOR
		break;

	case 4:
		menu_progressbar_init(EEPROM_TOP, PSTR("ERASING all data"));
   20320:	63 e0       	ldi	r22, 0x03	; 3
   20322:	7d e8       	ldi	r23, 0x8D	; 141
   20324:	80 e0       	ldi	r24, 0x00	; 0
   20326:	90 e1       	ldi	r25, 0x10	; 16
   20328:	0f 94 37 d0 	call	0x3a06e	; 0x3a06e <menu_progressbar_init(unsigned int, char const*)>
		// Erase EEPROM
		for (uint16_t i = 0; i < EEPROM_TOP; i++) {
   2032c:	10 e0       	ldi	r17, 0x00	; 0
   2032e:	00 e0       	ldi	r16, 0x00	; 0
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   20330:	6f ef       	ldi	r22, 0xFF	; 255
   20332:	c8 01       	movw	r24, r16
   20334:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
			eeprom_update_byte_notify((uint8_t*)i, 0xFF);
			menu_progressbar_update(i);
   20338:	c8 01       	movw	r24, r16
   2033a:	0f 94 08 d0 	call	0x3a010	; 0x3a010 <menu_progressbar_update(unsigned int)>
		break;

	case 4:
		menu_progressbar_init(EEPROM_TOP, PSTR("ERASING all data"));
		// Erase EEPROM
		for (uint16_t i = 0; i < EEPROM_TOP; i++) {
   2033e:	0f 5f       	subi	r16, 0xFF	; 255
   20340:	1f 4f       	sbci	r17, 0xFF	; 255
   20342:	01 15       	cp	r16, r1
   20344:	f0 e1       	ldi	r31, 0x10	; 16
   20346:	1f 07       	cpc	r17, r31
   20348:	99 f7       	brne	.-26     	; 0x20330 <main+0xc46>
			eeprom_update_byte_notify((uint8_t*)i, 0xFF);
			menu_progressbar_update(i);
		}
		menu_progressbar_finish();
   2034a:	0f 94 29 d0 	call	0x3a052	; 0x3a052 <menu_progressbar_finish()>
   2034e:	40 cc       	rjmp	.-1920   	; 0x1fbd0 <main+0x4e6>
	lcd_clear();
	Sound_MakeCustom(100,0,false);
	switch (level) {

	case 0: // Level 0: Language reset
		lang_reset();
   20350:	0e 94 b3 70 	call	0xe166	; 0xe166 <lang_reset>
   20354:	6d cf       	rjmp	.-294    	; 0x20230 <main+0xb46>
		break;

	case 1: //Level 1: Reset statistics
		factory_reset_stats();
   20356:	0e 94 98 66 	call	0xcd30	; 0xcd30 <factory_reset_stats() [clone .lto_priv.429]>
		lcd_menu_statistics();
   2035a:	0f 94 e1 3f 	call	0x27fc2	; 0x27fc2 <lcd_menu_statistics()>
   2035e:	68 cf       	rjmp	.-304    	; 0x20230 <main+0xb46>
		break;

	case 2: // Level 2: Prepare for shipping
		factory_reset_stats();
   20360:	0e 94 98 66 	call	0xcd30	; 0xcd30 <factory_reset_stats() [clone .lto_priv.429]>
		// FALLTHRU

	case 3: // Level 3: Preparation after being serviced
		// Force language selection at the next boot up.
		lang_reset();
   20364:	0e 94 b3 70 	call	0xe166	; 0xe166 <lang_reset>

		// Force the wizard in "Follow calibration flow" mode at the next boot up
		calibration_status_clear(CALIBRATION_FORCE_PREP);
   20368:	84 e0       	ldi	r24, 0x04	; 4
   2036a:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
   2036e:	62 e0       	ldi	r22, 0x02	; 2
   20370:	8f e5       	ldi	r24, 0x5F	; 95
   20372:	9f e0       	ldi	r25, 0x0F	; 15
   20374:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>
		eeprom_write_byte_notify((uint8_t*)EEPROM_WIZARD_ACTIVE, 2);
		farm_disable();

#ifdef FILAMENT_SENSOR
		fsensor.setEnabled(true);
   20378:	81 e0       	ldi	r24, 0x01	; 1
   2037a:	0e 94 56 74 	call	0xe8ac	; 0xe8ac <Filament_sensor::setEnabled(bool)>
        fsensor.deinit();
    }
}

void Filament_sensor::setAutoLoadEnabled(bool state, bool updateEEPROM) {
    autoLoadEnabled = state;
   2037e:	11 e0       	ldi	r17, 0x01	; 1
   20380:	10 93 ab 17 	sts	0x17AB, r17	; 0x8017ab <fsensor+0x1>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   20384:	61 e0       	ldi	r22, 0x01	; 1
   20386:	87 e0       	ldi	r24, 0x07	; 7
   20388:	9f e0       	ldi	r25, 0x0F	; 15
   2038a:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        eeprom_update_byte_notify((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED, state);
    }
}

void Filament_sensor::setRunoutEnabled(bool state, bool updateEEPROM) {
    runoutEnabled = state;
   2038e:	10 93 ac 17 	sts	0x17AC, r17	; 0x8017ac <fsensor+0x2>
   20392:	61 e0       	ldi	r22, 0x01	; 1
   20394:	85 ed       	ldi	r24, 0xD5	; 213
   20396:	9e e0       	ldi	r25, 0x0E	; 14
   20398:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    return fsensorDetected;
}
#endif

void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
    jamDetection = state;
   2039c:	10 93 b8 17 	sts	0x17B8, r17	; 0x8017b8 <fsensor+0xe>
    oldPos = pat9125_y;
   203a0:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   203a4:	90 91 90 0e 	lds	r25, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   203a8:	90 93 ba 17 	sts	0x17BA, r25	; 0x8017ba <fsensor+0x10>
   203ac:	80 93 b9 17 	sts	0x17B9, r24	; 0x8017b9 <fsensor+0xf>
    resetStepCount();
   203b0:	0f 94 2c 7c 	call	0x2f858	; 0x2f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>
    jamErrCnt = 0;
   203b4:	10 92 bf 17 	sts	0x17BF, r1	; 0x8017bf <fsensor+0x15>
   203b8:	61 e0       	ldi	r22, 0x01	; 1
   203ba:	8d ea       	ldi	r24, 0xAD	; 173
   203bc:	9c e0       	ldi	r25, 0x0C	; 12
   203be:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   203c2:	36 cf       	rjmp	.-404    	; 0x20230 <main+0xb46>
  tmc2130_sg_stop_on_crash = eeprom_init_default_byte((uint8_t*)EEPROM_CRASH_DET, farm_mode ? false : true);

	if (tmc2130_sg_stop_on_crash) {
    puts_P(_N("CrashDetect ENABLED!"));
	} else {
	    puts_P(_N("CrashDetect DISABLED"));
   203c4:	8a e3       	ldi	r24, 0x3A	; 58
   203c6:	9c e6       	ldi	r25, 0x6C	; 108
   203c8:	5a cf       	rjmp	.-332    	; 0x2027e <main+0xb94>
	if (tmc2130_wave_fac[Z_AXIS] == 0xff) tmc2130_wave_fac[Z_AXIS] = 0;
	if (tmc2130_wave_fac[E_AXIS] == 0xff) tmc2130_wave_fac[E_AXIS] = 0;
#endif //TMC2130_LINEARITY_CORRECTION

#ifdef TMC2130_VARIABLE_RESOLUTION
	tmc2130_mres[X_AXIS] = tmc2130_usteps2mres(cs.axis_ustep_resolution[X_AXIS]);
   203ca:	20 93 f5 04 	sts	0x04F5, r18	; 0x8004f5 <tmc2130_mres>
	tmc2130_mres[Y_AXIS] = tmc2130_usteps2mres(cs.axis_ustep_resolution[Y_AXIS]);
   203ce:	80 91 7b 0e 	lds	r24, 0x0E7B	; 0x800e7b <cs+0xbd>
   203d2:	90 e0       	ldi	r25, 0x00	; 0
   203d4:	28 e0       	ldi	r18, 0x08	; 8
   203d6:	96 95       	lsr	r25
   203d8:	87 95       	ror	r24
   203da:	00 97       	sbiw	r24, 0x00	; 0
   203dc:	11 f0       	breq	.+4      	; 0x203e2 <main+0xcf8>
   203de:	21 50       	subi	r18, 0x01	; 1
   203e0:	fa cf       	rjmp	.-12     	; 0x203d6 <main+0xcec>
   203e2:	20 93 f6 04 	sts	0x04F6, r18	; 0x8004f6 <tmc2130_mres+0x1>
	tmc2130_mres[Z_AXIS] = tmc2130_usteps2mres(cs.axis_ustep_resolution[Z_AXIS]);
   203e6:	80 91 7c 0e 	lds	r24, 0x0E7C	; 0x800e7c <cs+0xbe>
   203ea:	90 e0       	ldi	r25, 0x00	; 0
   203ec:	28 e0       	ldi	r18, 0x08	; 8
   203ee:	96 95       	lsr	r25
   203f0:	87 95       	ror	r24
   203f2:	00 97       	sbiw	r24, 0x00	; 0
   203f4:	11 f0       	breq	.+4      	; 0x203fa <main+0xd10>
   203f6:	21 50       	subi	r18, 0x01	; 1
   203f8:	fa cf       	rjmp	.-12     	; 0x203ee <main+0xd04>
   203fa:	20 93 f7 04 	sts	0x04F7, r18	; 0x8004f7 <tmc2130_mres+0x2>
	tmc2130_mres[E_AXIS] = tmc2130_usteps2mres(cs.axis_ustep_resolution[E_AXIS]);
   203fe:	80 91 7d 0e 	lds	r24, 0x0E7D	; 0x800e7d <cs+0xbf>
   20402:	90 e0       	ldi	r25, 0x00	; 0
   20404:	28 e0       	ldi	r18, 0x08	; 8
   20406:	96 95       	lsr	r25
   20408:	87 95       	ror	r24
   2040a:	00 97       	sbiw	r24, 0x00	; 0
   2040c:	11 f0       	breq	.+4      	; 0x20412 <main+0xd28>
   2040e:	21 50       	subi	r18, 0x01	; 1
   20410:	fa cf       	rjmp	.-12     	; 0x20406 <main+0xd1c>
   20412:	20 93 f8 04 	sts	0x04F8, r18	; 0x8004f8 <tmc2130_mres+0x3>
    return ( eeprom_read_byte((uint8_t *)EEPROM_ECOOL_ENABLE) == EEPROM_ECOOL_MAGIC_NUMBER )
        && ( eeprom_read_byte((uint8_t *)EEPROM_EXPERIMENTAL_VISIBILITY) == 1 );
}

bool FarmOrUserECool(){
    return farm_mode || UserECoolEnabled();
   20416:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   2041a:	88 0f       	add	r24, r24
#endif // LIN_ADVANCE

void st_init()
{
#ifdef TMC2130
	tmc2130_init(TMCInitParams(false, FarmOrUserECool()));
   2041c:	82 70       	andi	r24, 0x02	; 2
   2041e:	0f 94 6c 27 	call	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>
  microstep_init(); //Initialize Microstepping Pins
#endif //TMC2130

  //Initialize Dir Pins
  #if defined(X_DIR_PIN) && X_DIR_PIN > -1
    SET_OUTPUT(X_DIR_PIN);
   20422:	80 91 0a 01 	lds	r24, 0x010A	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
   20426:	81 60       	ori	r24, 0x01	; 1
   20428:	80 93 0a 01 	sts	0x010A, r24	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
  #endif
  #if defined(X2_DIR_PIN) && X2_DIR_PIN > -1
    SET_OUTPUT(X2_DIR_PIN);
  #endif
  #if defined(Y_DIR_PIN) && Y_DIR_PIN > -1
    SET_OUTPUT(Y_DIR_PIN);
   2042c:	80 91 0a 01 	lds	r24, 0x010A	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
   20430:	82 60       	ori	r24, 0x02	; 2
   20432:	80 93 0a 01 	sts	0x010A, r24	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
  #endif
  #if defined(Z_DIR_PIN) && Z_DIR_PIN > -1
    SET_OUTPUT(Z_DIR_PIN);
   20436:	80 91 0a 01 	lds	r24, 0x010A	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
   2043a:	84 60       	ori	r24, 0x04	; 4
   2043c:	80 93 0a 01 	sts	0x010A, r24	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
  #endif
  #if defined(E0_DIR_PIN) && E0_DIR_PIN > -1
    SET_OUTPUT(E0_DIR_PIN);
   20440:	80 91 0a 01 	lds	r24, 0x010A	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
   20444:	80 64       	ori	r24, 0x40	; 64
   20446:	80 93 0a 01 	sts	0x010A, r24	; 0x80010a <__TEXT_REGION_LENGTH__+0x7c210a>
  #endif

  //Initialize Enable Pins - steppers default to disabled.

  #if defined(X_ENABLE_PIN) && X_ENABLE_PIN > -1
    SET_OUTPUT(X_ENABLE_PIN);
   2044a:	0f 9a       	sbi	0x01, 7	; 1
    if(!X_ENABLE_ON) WRITE(X_ENABLE_PIN,HIGH);
   2044c:	17 9a       	sbi	0x02, 7	; 2
  #if defined(X2_ENABLE_PIN) && X2_ENABLE_PIN > -1
    SET_OUTPUT(X2_ENABLE_PIN);
    if(!X_ENABLE_ON) WRITE(X2_ENABLE_PIN,HIGH);
  #endif
  #if defined(Y_ENABLE_PIN) && Y_ENABLE_PIN > -1
    SET_OUTPUT(Y_ENABLE_PIN);
   2044e:	0e 9a       	sbi	0x01, 6	; 1
    if(!Y_ENABLE_ON) WRITE(Y_ENABLE_PIN,HIGH);
   20450:	16 9a       	sbi	0x02, 6	; 2
  #endif
  #if defined(Z_ENABLE_PIN) && Z_ENABLE_PIN > -1
    SET_OUTPUT(Z_ENABLE_PIN);
   20452:	0d 9a       	sbi	0x01, 5	; 1
    if(!Z_ENABLE_ON) WRITE(Z_ENABLE_PIN,HIGH);
   20454:	15 9a       	sbi	0x02, 5	; 2
  #endif
  #if defined(E0_ENABLE_PIN) && (E0_ENABLE_PIN > -1)
    SET_OUTPUT(E0_ENABLE_PIN);
   20456:	0c 9a       	sbi	0x01, 4	; 1
    if(!E_ENABLE_ON) WRITE(E0_ENABLE_PIN,HIGH);
   20458:	14 9a       	sbi	0x02, 4	; 2
  #endif

  //endstops and pullups
  #if defined(X_MIN_PIN) && X_MIN_PIN > -1
    SET_INPUT(X_MIN_PIN);
   2045a:	26 98       	cbi	0x04, 6	; 4
    #ifdef ENDSTOPPULLUP_XMIN
      WRITE(X_MIN_PIN,HIGH);
   2045c:	2e 9a       	sbi	0x05, 6	; 5
    #endif
  #endif

  #if defined(Y_MIN_PIN) && Y_MIN_PIN > -1
    SET_INPUT(Y_MIN_PIN);
   2045e:	25 98       	cbi	0x04, 5	; 4
    #ifdef ENDSTOPPULLUP_YMIN
      WRITE(Y_MIN_PIN,HIGH);
   20460:	2d 9a       	sbi	0x05, 5	; 5
    #endif
  #endif

  #if defined(Z_MIN_PIN) && Z_MIN_PIN > -1
    SET_INPUT(Z_MIN_PIN);
   20462:	24 98       	cbi	0x04, 4	; 4
    #ifdef ENDSTOPPULLUP_ZMIN
      WRITE(Z_MIN_PIN,HIGH);
   20464:	2c 9a       	sbi	0x05, 4	; 5
    #endif
  #endif

  #if defined(X_MAX_PIN) && X_MAX_PIN > -1
    SET_INPUT(X_MAX_PIN);
   20466:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   2046a:	8b 7f       	andi	r24, 0xFB	; 251
   2046c:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
    #ifdef ENDSTOPPULLUP_XMAX
      WRITE(X_MAX_PIN,HIGH);
   20470:	9f b7       	in	r25, 0x3f	; 63
   20472:	f8 94       	cli
   20474:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   20478:	84 60       	ori	r24, 0x04	; 4
   2047a:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   2047e:	9f bf       	out	0x3f, r25	; 63
    #endif
  #endif

  #if defined(Y_MAX_PIN) && Y_MAX_PIN > -1
    SET_INPUT(Y_MAX_PIN);
   20480:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   20484:	8f 77       	andi	r24, 0x7F	; 127
   20486:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
    #ifdef ENDSTOPPULLUP_YMAX
      WRITE(Y_MAX_PIN,HIGH);
   2048a:	9f b7       	in	r25, 0x3f	; 63
   2048c:	f8 94       	cli
   2048e:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   20492:	80 68       	ori	r24, 0x80	; 128
   20494:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   20498:	9f bf       	out	0x3f, r25	; 63
    #endif
  #endif

  #if defined(Z_MAX_PIN) && Z_MAX_PIN > -1
    SET_INPUT(Z_MAX_PIN);
   2049a:	09 98       	cbi	0x01, 1	; 1
    #ifdef ENDSTOPPULLUP_ZMAX
      WRITE(Z_MAX_PIN,HIGH);
   2049c:	11 9a       	sbi	0x02, 1	; 2
    #endif
  #endif

  #if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 > -1))
	SET_INPUT(TACH_0);
   2049e:	6e 98       	cbi	0x0d, 6	; 13
  #endif


  //Initialize Step Pins
#if defined(X_STEP_PIN) && (X_STEP_PIN > -1)
    SET_OUTPUT(X_STEP_PIN);
   204a0:	38 9a       	sbi	0x07, 0	; 7
    WRITE(X_STEP_PIN,INVERT_X_STEP_PIN);
   204a2:	40 98       	cbi	0x08, 0	; 8
#ifdef DEBUG_XSTEP_DUP_PIN
    SET_OUTPUT(DEBUG_XSTEP_DUP_PIN);
    WRITE(DEBUG_XSTEP_DUP_PIN,INVERT_X_STEP_PIN);
#endif //DEBUG_XSTEP_DUP_PIN
    disable_x();
   204a4:	17 9a       	sbi	0x02, 7	; 2
   204a6:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
    SET_OUTPUT(X2_STEP_PIN);
    WRITE(X2_STEP_PIN,INVERT_X_STEP_PIN);
    disable_x();
  #endif
  #if defined(Y_STEP_PIN) && (Y_STEP_PIN > -1)
    SET_OUTPUT(Y_STEP_PIN);
   204aa:	39 9a       	sbi	0x07, 1	; 7
    WRITE(Y_STEP_PIN,INVERT_Y_STEP_PIN);
   204ac:	41 98       	cbi	0x08, 1	; 8
#ifdef DEBUG_YSTEP_DUP_PIN
    SET_OUTPUT(DEBUG_YSTEP_DUP_PIN);
    WRITE(DEBUG_YSTEP_DUP_PIN,INVERT_Y_STEP_PIN);
#endif //DEBUG_YSTEP_DUP_PIN
    disable_y();
   204ae:	16 9a       	sbi	0x02, 6	; 2
   204b0:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
  #endif
  #if defined(Z_STEP_PIN) && (Z_STEP_PIN > -1)
    SET_OUTPUT(Z_STEP_PIN);
   204b4:	3a 9a       	sbi	0x07, 2	; 7
    WRITE(Z_STEP_PIN,INVERT_Z_STEP_PIN);
   204b6:	42 98       	cbi	0x08, 2	; 8
      init_force_z();
    #endif // PSU_Delta
    disable_z();
  #endif
  #if defined(E0_STEP_PIN) && (E0_STEP_PIN > -1)
    SET_OUTPUT(E0_STEP_PIN);
   204b8:	3b 9a       	sbi	0x07, 3	; 7
    WRITE(E0_STEP_PIN,INVERT_E_STEP_PIN);
   204ba:	43 98       	cbi	0x08, 3	; 8
    disable_e0();
   204bc:	14 9a       	sbi	0x02, 4	; 2
  #endif

  // waveform generation = 0100 = CTC
  TCCR1B &= ~(1<<WGM13);
   204be:	80 91 81 00 	lds	r24, 0x0081	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
   204c2:	8f 7e       	andi	r24, 0xEF	; 239
   204c4:	80 93 81 00 	sts	0x0081, r24	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
  TCCR1B |=  (1<<WGM12);
   204c8:	80 91 81 00 	lds	r24, 0x0081	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
   204cc:	88 60       	ori	r24, 0x08	; 8
   204ce:	80 93 81 00 	sts	0x0081, r24	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
  TCCR1A &= ~(1<<WGM11);
   204d2:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   204d6:	8d 7f       	andi	r24, 0xFD	; 253
   204d8:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
  TCCR1A &= ~(1<<WGM10);
   204dc:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   204e0:	8e 7f       	andi	r24, 0xFE	; 254
   204e2:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>

  // output mode = 00 (disconnected)
  TCCR1A &= ~(3<<COM1A0);
   204e6:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   204ea:	8f 73       	andi	r24, 0x3F	; 63
   204ec:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
  TCCR1A &= ~(3<<COM1B0);
   204f0:	80 91 80 00 	lds	r24, 0x0080	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
   204f4:	8f 7c       	andi	r24, 0xCF	; 207
   204f6:	80 93 80 00 	sts	0x0080, r24	; 0x800080 <__TEXT_REGION_LENGTH__+0x7c2080>
  // Set the timer pre-scaler
  // Generally we use a divider of 8, resulting in a 2MHz timer
  // frequency on a 16MHz MCU. If you are going to change this, be
  // sure to regenerate speed_lookuptable.h with
  // create_speed_lookuptable.py
  TCCR1B = (TCCR1B & ~(0x07<<CS10)) | (2<<CS10);
   204fa:	80 91 81 00 	lds	r24, 0x0081	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>
   204fe:	88 7f       	andi	r24, 0xF8	; 248
   20500:	82 60       	ori	r24, 0x02	; 2
   20502:	80 93 81 00 	sts	0x0081, r24	; 0x800081 <__TEXT_REGION_LENGTH__+0x7c2081>

  // Plan the first interrupt after 8ms from now.
  OCR1A = 0x4000;
   20506:	80 e0       	ldi	r24, 0x00	; 0
   20508:	90 e4       	ldi	r25, 0x40	; 64
   2050a:	90 93 89 00 	sts	0x0089, r25	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   2050e:	80 93 88 00 	sts	0x0088, r24	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
  TCNT1 = 0;
   20512:	10 92 85 00 	sts	0x0085, r1	; 0x800085 <__TEXT_REGION_LENGTH__+0x7c2085>
   20516:	10 92 84 00 	sts	0x0084, r1	; 0x800084 <__TEXT_REGION_LENGTH__+0x7c2084>
  WRITE_NC(LOGIC_ANALYZER_CH0, false);
  WRITE_NC(LOGIC_ANALYZER_CH1, false);
#endif

  // Initialize state for the linear advance scheduler
  nextMainISR = 0;
   2051a:	10 92 e6 04 	sts	0x04E6, r1	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   2051e:	10 92 e5 04 	sts	0x04E5, r1	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
  nextAdvanceISR = ADV_NEVER;
   20522:	8f ef       	ldi	r24, 0xFF	; 255
   20524:	9f ef       	ldi	r25, 0xFF	; 255
   20526:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   2052a:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
  main_Rate = ADV_NEVER;
   2052e:	90 93 e2 04 	sts	0x04E2, r25	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
   20532:	80 93 e1 04 	sts	0x04E1, r24	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>
  current_adv_steps = 0;
   20536:	10 92 e0 04 	sts	0x04E0, r1	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   2053a:	10 92 df 04 	sts	0x04DF, r1	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
  check_endstops = check;
   2053e:	81 e0       	ldi	r24, 0x01	; 1
   20540:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
  current_adv_steps = 0;
#endif

  enable_endstops(true); // Start with endstops active. After homing they can be disabled

  ENABLE_STEPPER_DRIVER_INTERRUPT();
   20544:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   20548:	82 60       	ori	r24, 0x02	; 2
   2054a:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
  sei();
   2054e:	78 94       	sei

#endif //TMC2130
	st_init();    // Initialize stepper, this enables interrupts!

#ifdef TMC2130
	tmc2130_mode = silentMode?TMC2130_MODE_SILENT:TMC2130_MODE_NORMAL;
   20550:	81 e0       	ldi	r24, 0x01	; 1
   20552:	11 11       	cpse	r17, r1
   20554:	01 c0       	rjmp	.+2      	; 0x20558 <main+0xe6e>
   20556:	80 e0       	ldi	r24, 0x00	; 0
   20558:	80 93 8c 06 	sts	0x068C, r24	; 0x80068c <tmc2130_mode>
	update_mode_profile();
   2055c:	0f 94 e3 64 	call	0x2c9c6	; 0x2c9c6 <update_mode_profile()>
   20560:	0e 94 b6 f0 	call	0x1e16c	; 0x1e16c <UserECoolEnabled()>
   20564:	88 0f       	add	r24, r24
	tmc2130_init(TMCInitParams(false, FarmOrUserECool() ));
   20566:	82 70       	andi	r24, 0x02	; 2
   20568:	0f 94 6c 27 	call	0x24ed8	; 0x24ed8 <tmc2130_init(TMCInitParams)>

	setup_photpin();

	// Reset the machine correction matrix.
	// It does not make sense to load the correction matrix until the machine is homed.
	world2machine_reset();
   2056c:	0f 94 3c ce 	call	0x39c78	; 0x39c78 <world2machine_reset()>

    // Initialize current_position accounting for software endstops to
    // avoid unexpected initial shifts on the first move
    clamp_to_software_endstops(current_position);
   20570:	82 e9       	ldi	r24, 0x92	; 146
   20572:	96 e0       	ldi	r25, 0x06	; 6
   20574:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
    plan_set_position_curposXYZE();
   20578:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>

    // Show the xflash error message now that serial, lcd and encoder are available
    if (!xflash_success)
   2057c:	b1 10       	cpse	r11, r1
   2057e:	08 c0       	rjmp	.+16     	; 0x20590 <main+0xea6>
}


static void xflash_err_msg()
{
    puts_P(_n("XFLASH not responding."));
   20580:	87 e9       	ldi	r24, 0x97	; 151
   20582:	9b e6       	ldi	r25, 0x6B	; 107
   20584:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
    lcd_show_fullscreen_message_and_wait_P(_n("External SPI flash\nXFLASH is not res-\nponding. Language\nswitch unavailable."));
   20588:	8b e4       	ldi	r24, 0x4B	; 75
   2058a:	9b e6       	ldi	r25, 0x6B	; 107
   2058c:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
}

#define KILL_PENDING_FLAG 0x42

static void fw_kill_init() {
    if (eeprom_read_byte((uint8_t*)EEPROM_KILL_PENDING_FLAG) == KILL_PENDING_FLAG) {
   20590:	84 e9       	ldi	r24, 0x94	; 148
   20592:	9c e0       	ldi	r25, 0x0C	; 12
   20594:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20598:	82 34       	cpi	r24, 0x42	; 66
   2059a:	59 f4       	brne	.+22     	; 0x205b2 <main+0xec8>
    if (active) {
        uint8_t previous_value = eeprom_read_byte(dst);
        eeprom_byte_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_byte(dst, value);
   2059c:	6f ef       	ldi	r22, 0xFF	; 255
   2059e:	84 e9       	ldi	r24, 0x94	; 148
   205a0:	9c e0       	ldi	r25, 0x0C	; 12
   205a2:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>
        // clear pending message event
        eeprom_write_byte_notify((uint8_t*)EEPROM_KILL_PENDING_FLAG, EEPROM_EMPTY_VALUE);

        // display the kill message
        PGM_P kill_msg = (PGM_P)eeprom_read_word((uint16_t*)EEPROM_KILL_MESSAGE);
   205a6:	85 e9       	ldi	r24, 0x95	; 149
   205a8:	9c e0       	ldi	r25, 0x0C	; 12
   205aa:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
        lcd_show_fullscreen_message_and_wait_P(kill_msg);
   205ae:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>

    // report kill() events
    fw_kill_init();

#ifdef FILAMENT_SENSOR
    fsensor.init();
   205b2:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
#endif

	setup_homepin();

#if defined(Z_AXIS_ALWAYS_ON)
    enable_z();
   205b6:	15 98       	cbi	0x02, 5	; 2
    // The farm monitoring SW may accidentally expect
    // 2 messages of "printer started" to consider a printer working.
    prusa_statistics(8);

	// Enable Toshiba FlashAir SD card / WiFi enahanced card.
	card.ToshibaFlashAir_enable(eeprom_read_byte((unsigned char*)EEPROM_TOSHIBA_FLASH_AIR_COMPATIBLITY) == 1);
   205b8:	8b eb       	ldi	r24, 0xBB	; 187
   205ba:	9f e0       	ldi	r25, 0x0F	; 15
   205bc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   205c0:	91 e0       	ldi	r25, 0x01	; 1
   205c2:	81 30       	cpi	r24, 0x01	; 1
   205c4:	09 f0       	breq	.+2      	; 0x205c8 <main+0xede>
   205c6:	90 e0       	ldi	r25, 0x00	; 0
   205c8:	90 93 01 17 	sts	0x1701, r25	; 0x801701 <card+0x273>

	// Force SD card update. Otherwise the SD card update is done from loop() on card.checkautostart(false),
	// but this times out if a blocking dialog is shown in setup().
	card.mount();
   205cc:	81 e0       	ldi	r24, 0x01	; 1
   205ce:	0f 94 04 82 	call	0x30408	; 0x30408 <CardReader::mount(bool) [clone .constprop.216]>
#include <avr/eeprom.h>
#include <stdint.h>

void eeprom_init()
{
    eeprom_init_default_byte((uint8_t*)EEPROM_POWER_COUNT, 0);
   205d2:	60 e0       	ldi	r22, 0x00	; 0
   205d4:	84 e6       	ldi	r24, 0x64	; 100
   205d6:	9f e0       	ldi	r25, 0x0F	; 15
   205d8:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_byte((uint8_t*)EEPROM_CRASH_COUNT_X, 0);
   205dc:	60 e0       	ldi	r22, 0x00	; 0
   205de:	86 e6       	ldi	r24, 0x66	; 102
   205e0:	9f e0       	ldi	r25, 0x0F	; 15
   205e2:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_byte((uint8_t*)EEPROM_CRASH_COUNT_Y, 0);
   205e6:	60 e0       	ldi	r22, 0x00	; 0
   205e8:	88 e6       	ldi	r24, 0x68	; 104
   205ea:	9f e0       	ldi	r25, 0x0F	; 15
   205ec:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_byte((uint8_t*)EEPROM_FERROR_COUNT, 0);
   205f0:	60 e0       	ldi	r22, 0x00	; 0
   205f2:	85 e6       	ldi	r24, 0x65	; 101
   205f4:	9f e0       	ldi	r25, 0x0F	; 15
   205f6:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_word((uint16_t*)EEPROM_POWER_COUNT_TOT, 0);
   205fa:	70 e0       	ldi	r23, 0x00	; 0
   205fc:	60 e0       	ldi	r22, 0x00	; 0
   205fe:	8f ef       	ldi	r24, 0xFF	; 255
   20600:	9e e0       	ldi	r25, 0x0E	; 14
   20602:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_word((uint16_t*)EEPROM_CRASH_COUNT_X_TOT, 0);
   20606:	70 e0       	ldi	r23, 0x00	; 0
   20608:	60 e0       	ldi	r22, 0x00	; 0
   2060a:	85 e0       	ldi	r24, 0x05	; 5
   2060c:	9f e0       	ldi	r25, 0x0F	; 15
   2060e:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_word((uint16_t*)EEPROM_CRASH_COUNT_Y_TOT, 0);
   20612:	70 e0       	ldi	r23, 0x00	; 0
   20614:	60 e0       	ldi	r22, 0x00	; 0
   20616:	83 e0       	ldi	r24, 0x03	; 3
   20618:	9f e0       	ldi	r25, 0x0F	; 15
   2061a:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_word((uint16_t*)EEPROM_FERROR_COUNT_TOT, 0);
   2061e:	70 e0       	ldi	r23, 0x00	; 0
   20620:	60 e0       	ldi	r22, 0x00	; 0
   20622:	81 e0       	ldi	r24, 0x01	; 1
   20624:	9f e0       	ldi	r25, 0x0F	; 15
   20626:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>

    eeprom_init_default_word((uint16_t*)EEPROM_MMU_FAIL_TOT, 0);
   2062a:	70 e0       	ldi	r23, 0x00	; 0
   2062c:	60 e0       	ldi	r22, 0x00	; 0
   2062e:	83 ed       	ldi	r24, 0xD3	; 211
   20630:	9e e0       	ldi	r25, 0x0E	; 14
   20632:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_word((uint16_t*)EEPROM_MMU_LOAD_FAIL_TOT, 0);
   20636:	70 e0       	ldi	r23, 0x00	; 0
   20638:	60 e0       	ldi	r22, 0x00	; 0
   2063a:	80 ed       	ldi	r24, 0xD0	; 208
   2063c:	9e e0       	ldi	r25, 0x0E	; 14
   2063e:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>
    eeprom_init_default_byte((uint8_t*)EEPROM_MMU_FAIL, 0);
   20642:	60 e0       	ldi	r22, 0x00	; 0
   20644:	82 ed       	ldi	r24, 0xD2	; 210
   20646:	9e e0       	ldi	r25, 0x0E	; 14
   20648:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL, 0);
   2064c:	60 e0       	ldi	r22, 0x00	; 0
   2064e:	8f ec       	ldi	r24, 0xCF	; 207
   20650:	9e e0       	ldi	r25, 0x0E	; 14
   20652:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    eeprom_init_default_dword((uint32_t*)EEPROM_MMU_MATERIAL_CHANGES, 0);
   20656:	88 ea       	ldi	r24, 0xA8	; 168
   20658:	9c e0       	ldi	r25, 0x0C	; 12
   2065a:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    if (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == EEPROM_EMPTY_VALUE)
   2065e:	81 ea       	ldi	r24, 0xA1	; 161
   20660:	9d e0       	ldi	r25, 0x0D	; 13
   20662:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20666:	8f 3f       	cpi	r24, 0xFF	; 255
   20668:	71 f4       	brne	.+28     	; 0x20686 <main+0xf9c>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2066a:	60 e0       	ldi	r22, 0x00	; 0
   2066c:	81 ea       	ldi	r24, 0xA1	; 161
   2066e:	9d e0       	ldi	r25, 0x0D	; 13
   20670:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    if (eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)) == EEPROM_EMPTY_VALUE)
    {
        eeprom_update_byte_notify(&(EEPROM_Sheets_base->active_sheet), 0);
        // When upgrading from version older version (before multiple sheets were implemented in v3.8.0)
        // Sheet 1 uses the previous Live adjust Z (@EEPROM_BABYSTEP_Z)
        int last_babystep = eeprom_read_word((uint16_t *)EEPROM_BABYSTEP_Z);
   20674:	88 ef       	ldi	r24, 0xF8	; 248
   20676:	9f e0       	ldi	r25, 0x0F	; 15
   20678:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
        eeprom_update_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[0].z_offset)), last_babystep);
   2067c:	bc 01       	movw	r22, r24
   2067e:	80 e5       	ldi	r24, 0x50	; 80
   20680:	9d e0       	ldi	r25, 0x0D	; 13
   20682:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   20686:	39 e4       	ldi	r19, 0x49	; 73
   20688:	c3 2e       	mov	r12, r19
   2068a:	3d e0       	ldi	r19, 0x0D	; 13
   2068c:	d3 2e       	mov	r13, r19
   2068e:	10 e0       	ldi	r17, 0x00	; 0
    }

    // initialize the sheet names in eeprom
    for (uint_least8_t i = 0; i < (sizeof(Sheets::s)/sizeof(Sheets::s[0])); i++) {
        SheetName sheetName;
        eeprom_default_sheet_name(i, sheetName);
   20690:	be 01       	movw	r22, r28
   20692:	6f 5f       	subi	r22, 0xFF	; 255
   20694:	7f 4f       	sbci	r23, 0xFF	; 255
   20696:	81 2f       	mov	r24, r17
   20698:	0e 94 f8 75 	call	0xebf0	; 0xebf0 <eeprom_default_sheet_name(unsigned char, SheetName&)>
        eeprom_init_default_block(EEPROM_Sheets_base->s[i].name, (sizeof(Sheet::name)/sizeof(Sheet::name[0])), sheetName.c);
   2069c:	ae 01       	movw	r20, r28
   2069e:	4f 5f       	subi	r20, 0xFF	; 255
   206a0:	5f 4f       	sbci	r21, 0xFF	; 255
   206a2:	67 e0       	ldi	r22, 0x07	; 7
   206a4:	70 e0       	ldi	r23, 0x00	; 0
   206a6:	c6 01       	movw	r24, r12
   206a8:	0e 94 59 75 	call	0xeab2	; 0xeab2 <eeprom_init_default_block(void*, unsigned int, void const*)>
        int last_babystep = eeprom_read_word((uint16_t *)EEPROM_BABYSTEP_Z);
        eeprom_update_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[0].z_offset)), last_babystep);
    }

    // initialize the sheet names in eeprom
    for (uint_least8_t i = 0; i < (sizeof(Sheets::s)/sizeof(Sheets::s[0])); i++) {
   206ac:	1f 5f       	subi	r17, 0xFF	; 255
   206ae:	ab e0       	ldi	r26, 0x0B	; 11
   206b0:	ca 0e       	add	r12, r26
   206b2:	d1 1c       	adc	r13, r1
   206b4:	18 30       	cpi	r17, 0x08	; 8
   206b6:	61 f7       	brne	.-40     	; 0x20690 <main+0xfa6>
        SheetName sheetName;
        eeprom_default_sheet_name(i, sheetName);
        eeprom_init_default_block(EEPROM_Sheets_base->s[i].name, (sizeof(Sheet::name)/sizeof(Sheet::name[0])), sheetName.c);
    }

    if(!eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet))))
   206b8:	81 ea       	ldi	r24, 0xA1	; 161
   206ba:	9d e0       	ldi	r25, 0x0D	; 13
   206bc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   206c0:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   206c4:	81 11       	cpse	r24, r1
   206c6:	02 c0       	rjmp	.+4      	; 0x206cc <main+0xfe2>
    {
        eeprom_switch_to_next_sheet();
   206c8:	0e 94 ea 75 	call	0xebd4	; 0xebd4 <eeprom_switch_to_next_sheet()>
    }
    check_babystep();
   206cc:	0e 94 06 79 	call	0xf20c	; 0xf20c <check_babystep()>

    // initialize custom mendel name in eeprom
    if (eeprom_read_byte((uint8_t*)EEPROM_CUSTOM_MENDEL_NAME) == EEPROM_EMPTY_VALUE) {
   206d0:	80 e8       	ldi	r24, 0x80	; 128
   206d2:	9c e0       	ldi	r25, 0x0C	; 12
   206d4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   206d8:	8f 3f       	cpi	r24, 0xFF	; 255
   206da:	41 f4       	brne	.+16     	; 0x206ec <main+0x1002>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   206dc:	40 e1       	ldi	r20, 0x10	; 16
   206de:	50 e0       	ldi	r21, 0x00	; 0
   206e0:	60 e8       	ldi	r22, 0x80	; 128
   206e2:	7c e0       	ldi	r23, 0x0C	; 12
   206e4:	87 ee       	ldi	r24, 0xE7	; 231
   206e6:	92 e0       	ldi	r25, 0x02	; 2
   206e8:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>

#ifdef PINDA_TEMP_COMP
    eeprom_init_default_byte((uint8_t*)EEPROM_PINDA_TEMP_COMPENSATION, 0);
#endif //PINDA_TEMP_COMP

    eeprom_init_default_dword((uint32_t*)EEPROM_JOB_ID, 0);
   206ec:	85 e0       	ldi	r24, 0x05	; 5
   206ee:	9d e0       	ldi	r25, 0x0D	; 13
   206f0:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    eeprom_init_default_dword((uint32_t*)EEPROM_TOTALTIME, 0);
   206f4:	8d ee       	ldi	r24, 0xED	; 237
   206f6:	9f e0       	ldi	r25, 0x0F	; 15
   206f8:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    eeprom_init_default_dword((uint32_t*)EEPROM_FILAMENTUSED, 0);
   206fc:	81 ef       	ldi	r24, 0xF1	; 241
   206fe:	9f e0       	ldi	r25, 0x0F	; 15
   20700:	0f 94 9f 7b 	call	0x2f73e	; 0x2f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>
    eeprom_init_default_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED, 0);
   20704:	60 e0       	ldi	r22, 0x00	; 0
   20706:	8e ec       	ldi	r24, 0xCE	; 206
   20708:	9e e0       	ldi	r25, 0x0E	; 14
   2070a:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>

    eeprom_init_default_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT, 1);
   2070e:	61 e0       	ldi	r22, 0x01	; 1
   20710:	87 ea       	ldi	r24, 0xA7	; 167
   20712:	9c e0       	ldi	r25, 0x0C	; 12
   20714:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
	putchar('\n');
	list_sec_lang_from_external_flash();
#endif //DEBUG_XFLASH

//	lang_reset();
	if (!lang_select(eeprom_read_byte((uint8_t*)EEPROM_LANG)))
   20718:	8e ef       	ldi	r24, 0xFE	; 254
   2071a:	9f e0       	ldi	r25, 0x0F	; 15
   2071c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20720:	0e 94 bb 71 	call	0xe376	; 0xe376 <lang_select>
   20724:	81 11       	cpse	r24, r1
   20726:	02 c0       	rjmp	.+4      	; 0x2072c <main+0x1042>
		lcd_language();
   20728:	0e 94 36 db 	call	0x1b66c	; 0x1b66c <lcd_language()>
	lang_print_sec_lang();
#endif //DEBUG_SEC_LANG

#endif //(LANG_MODE != 0)

	eeprom_init_default_byte((uint8_t*)EEPROM_TEMP_CAL_ACTIVE, 0);
   2072c:	60 e0       	ldi	r22, 0x00	; 0
   2072e:	8f ea       	ldi	r24, 0xAF	; 175
   20730:	9f e0       	ldi	r25, 0x0F	; 15
   20732:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>

	if (eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA) == 255) {
   20736:	86 ea       	ldi	r24, 0xA6	; 166
   20738:	9f e0       	ldi	r25, 0x0F	; 15
   2073a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2073e:	8f 3f       	cpi	r24, 0xFF	; 255
   20740:	d9 f4       	brne	.+54     	; 0x20778 <main+0x108e>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   20742:	61 e0       	ldi	r22, 0x01	; 1
   20744:	86 ea       	ldi	r24, 0xA6	; 166
   20746:	9f e0       	ldi	r25, 0x0F	; 15
   20748:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   2074c:	20 eb       	ldi	r18, 0xB0	; 176
   2074e:	c2 2e       	mov	r12, r18
   20750:	2f e0       	ldi	r18, 0x0F	; 15
   20752:	d2 2e       	mov	r13, r18
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   20754:	70 e0       	ldi	r23, 0x00	; 0
   20756:	60 e0       	ldi	r22, 0x00	; 0
   20758:	c6 01       	movw	r24, r12
   2075a:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   2075e:	b2 e0       	ldi	r27, 0x02	; 2
   20760:	cb 0e       	add	r12, r27
   20762:	d1 1c       	adc	r13, r1
		//eeprom_write_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA, 0);
		eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA, 1);
		int16_t z_shift = 0;
		for (uint8_t i = 0; i < 5; i++) {
   20764:	ea eb       	ldi	r30, 0xBA	; 186
   20766:	ce 16       	cp	r12, r30
   20768:	ef e0       	ldi	r30, 0x0F	; 15
   2076a:	de 06       	cpc	r13, r30
   2076c:	99 f7       	brne	.-26     	; 0x20754 <main+0x106a>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2076e:	60 e0       	ldi	r22, 0x00	; 0
   20770:	8f ea       	ldi	r24, 0xAF	; 175
   20772:	9f e0       	ldi	r25, 0x0F	; 15
   20774:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
			eeprom_update_word_notify((uint16_t*)EEPROM_PROBE_TEMP_SHIFT + i, z_shift);
		}
		eeprom_update_byte_notify((uint8_t*)EEPROM_TEMP_CAL_ACTIVE, 0);
	}
	eeprom_init_default_byte((uint8_t*)EEPROM_UVLO, PowerPanic::NO_PENDING_RECOVERY);
   20778:	60 e0       	ldi	r22, 0x00	; 0
   2077a:	85 ea       	ldi	r24, 0xA5	; 165
   2077c:	9f e0       	ldi	r25, 0x0F	; 15
   2077e:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
	eeprom_init_default_byte((uint8_t*)EEPROM_UVLO_Z_LIFTED, 0);
   20782:	60 e0       	ldi	r22, 0x00	; 0
   20784:	8f e7       	ldi	r24, 0x7F	; 127
   20786:	9c e0       	ldi	r25, 0x0C	; 12
   20788:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
	eeprom_init_default_byte((uint8_t*)EEPROM_SD_SORT, 0);
   2078c:	60 e0       	ldi	r22, 0x00	; 0
   2078e:	89 e0       	ldi	r24, 0x09	; 9
   20790:	9f e0       	ldi	r25, 0x0F	; 15
   20792:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
}

void mbl_settings_init() {
//3x3 mesh; 3 Z-probes on each point, magnet elimination on
//magnet elimination: use aaproximate Z-coordinate instead of measured values for points which are near magnets
	eeprom_init_default_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION, 1);
   20796:	61 e0       	ldi	r22, 0x01	; 1
   20798:	8c ea       	ldi	r24, 0xAC	; 172
   2079a:	9d e0       	ldi	r25, 0x0D	; 13
   2079c:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
	eeprom_init_default_byte((uint8_t*)EEPROM_MBL_POINTS_NR, 3);
   207a0:	63 e0       	ldi	r22, 0x03	; 3
   207a2:	8b ea       	ldi	r24, 0xAB	; 171
   207a4:	9d e0       	ldi	r25, 0x0D	; 13
   207a6:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
	eeprom_init_default_byte((uint8_t*)EEPROM_MBL_PROBE_NR, 3);
   207aa:	63 e0       	ldi	r22, 0x03	; 3
   207ac:	8a ea       	ldi	r24, 0xAA	; 170
   207ae:	9d e0       	ldi	r25, 0x0D	; 13
   207b0:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>

	//mbl_mode_init();
	mbl_settings_init();
	eeprom_init_default_byte((uint8_t*)EEPROM_MMU_STEALTH, 1);
   207b4:	61 e0       	ldi	r22, 0x01	; 1
   207b6:	89 ea       	ldi	r24, 0xA9	; 169
   207b8:	9d e0       	ldi	r25, 0x0D	; 13
   207ba:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
#endif //(defined(TACH_0) && TACH_0 >-1) || (defined(TACH_1) && TACH_1 > -1)

#if (defined(FANCHECK) && defined(TACH_1) && (TACH_1 >-1))
void setup_fan_interrupt() {
//INT7
	DDRE &= ~(1 << 7); //input pin
   207be:	6f 98       	cbi	0x0d, 7	; 13
	PORTE &= ~(1 << 7); //no internal pull-up
   207c0:	77 98       	cbi	0x0e, 7	; 14

	//start with sensing rising edge
	EICRB &= ~(1 << 6);
   207c2:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
   207c6:	8f 7b       	andi	r24, 0xBF	; 191
   207c8:	80 93 6a 00 	sts	0x006A, r24	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
	EICRB |= (1 << 7);
   207cc:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
   207d0:	80 68       	ori	r24, 0x80	; 128
   207d2:	80 93 6a 00 	sts	0x006A, r24	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>

	//enable INT7 interrupt
	EIMSK |= (1 << 7);
   207d6:	ef 9a       	sbi	0x1d, 7	; 29
#if (!defined(DEBUG_DISABLE_FANCHECK) && defined(FANCHECK) && defined(TACH_1) && (TACH_1 >-1))
	setup_fan_interrupt();
#endif //DEBUG_DISABLE_FANCHECK

#ifndef DEBUG_DISABLE_STARTMSGS
  KEEPALIVE_STATE(PAUSED_FOR_USER);
   207d8:	84 e0       	ldi	r24, 0x04	; 4
   207da:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    return false;
}

#ifdef FSENSOR_PROBING
bool PAT9125_sensor::probeOtherType() {
    SET_INPUT(IR_SENSOR_PIN); // input mode
   207de:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   207e2:	8e 7f       	andi	r24, 0xFE	; 254
   207e4:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
    WRITE(IR_SENSOR_PIN, 1);  // pullup
   207e8:	9f b7       	in	r25, 0x3f	; 63
   207ea:	f8 94       	cli
   207ec:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   207f0:	81 60       	ori	r24, 0x01	; 1
   207f2:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   207f6:	9f bf       	out	0x3f, r25	; 63
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   207f8:	8f e8       	ldi	r24, 0x8F	; 143
   207fa:	91 e0       	ldi	r25, 0x01	; 1
   207fc:	01 97       	sbiw	r24, 0x01	; 1
   207fe:	f1 f7       	brne	.-4      	; 0x207fc <main+0x1112>
   20800:	00 c0       	rjmp	.+0      	; 0x20802 <main+0x1118>
   20802:	00 00       	nop
    _delay_us(100); // wait for the pullup to pull the line high (might be needed, not really sure. The internal pullups are quite weak and there might be a
                    // long wire attached).
    bool fsensorDetected = !READ(IR_SENSOR_PIN);
   20804:	90 91 06 01 	lds	r25, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
    WRITE(IR_SENSOR_PIN, 0); // no pullup
   20808:	2f b7       	in	r18, 0x3f	; 63
   2080a:	f8 94       	cli
   2080c:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   20810:	8e 7f       	andi	r24, 0xFE	; 254
   20812:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   20816:	2f bf       	out	0x3f, r18	; 63
}

#if defined(FILAMENT_SENSOR) && defined(FSENSOR_PROBING)
//! @brief try to check if firmware is on right type of printer
static void check_if_fw_is_on_right_printer() {
    if (fsensor.probeOtherType()) {
   20818:	90 fd       	sbrc	r25, 0
   2081a:	06 c0       	rjmp	.+12     	; 0x20828 <main+0x113e>
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_FW_MK3_DETECTED));
   2081c:	8a e7       	ldi	r24, 0x7A	; 122
   2081e:	9a e4       	ldi	r25, 0x4A	; 74
   20820:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20824:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
#if defined(FILAMENT_SENSOR) && defined(FSENSOR_PROBING)
    check_if_fw_is_on_right_printer();
#endif //defined(FILAMENT_SENSOR) && defined(FSENSOR_PROBING)
  }

  switch (hw_changed) {
   20828:	02 30       	cpi	r16, 0x02	; 2
   2082a:	81 f0       	breq	.+32     	; 0x2084c <main+0x1162>
   2082c:	03 30       	cpi	r16, 0x03	; 3
   2082e:	09 f4       	brne	.+2      	; 0x20832 <main+0x1148>
   20830:	37 c1       	rjmp	.+622    	; 0x20aa0 <main+0x13b6>
   20832:	01 30       	cpi	r16, 0x01	; 1
   20834:	b9 f4       	brne	.+46     	; 0x20864 <main+0x117a>
	  //if motherboard or printer type was changed inform user as it can indicate flashing wrong firmware version
	  //if user confirms with knob, new hw version (printer and/or motherboard) is written to eeprom and message will be not shown next time
	case(0b01):
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CHANGED_MOTHERBOARD));
   20836:	8c ea       	ldi	r24, 0xAC	; 172
   20838:	9c e4       	ldi	r25, 0x4C	; 76
   2083a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2083e:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
   20842:	66 e3       	ldi	r22, 0x36	; 54
   20844:	71 e0       	ldi	r23, 0x01	; 1
   20846:	8c ee       	ldi	r24, 0xEC	; 236
   20848:	9e e0       	ldi	r25, 0x0E	; 14
   2084a:	0a c0       	rjmp	.+20     	; 0x20860 <main+0x1176>
		eeprom_write_word_notify((uint16_t*)EEPROM_BOARD_TYPE, MOTHERBOARD);
		break;
	case(0b10):
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CHANGED_PRINTER));
   2084c:	8b e8       	ldi	r24, 0x8B	; 139
   2084e:	9c e4       	ldi	r25, 0x4C	; 76
   20850:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20854:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   20858:	6c e2       	ldi	r22, 0x2C	; 44
   2085a:	71 e0       	ldi	r23, 0x01	; 1
   2085c:	8e ee       	ldi	r24, 0xEE	; 238
   2085e:	9e e0       	ldi	r25, 0x0E	; 14
   20860:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>
		eeprom_write_word_notify((uint16_t*)EEPROM_BOARD_TYPE, MOTHERBOARD);
		break;
	default: break; //no change, show no message
  }

  if (!previous_settings_retrieved) {
   20864:	f1 10       	cpse	r15, r1
   20866:	08 c0       	rjmp	.+16     	; 0x20878 <main+0x118e>
	  lcd_show_fullscreen_message_and_wait_P(_T(MSG_DEFAULT_SETTINGS_LOADED)); //if EEPROM version or printer type was changed, inform user that default setting were loaded
   20868:	84 e1       	ldi	r24, 0x14	; 20
   2086a:	9c e4       	ldi	r25, 0x4C	; 76
   2086c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20870:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
	  Config_StoreSettings();
   20874:	0e 94 2b 82 	call	0x10456	; 0x10456 <Config_StoreSettings()>
  }

  // handle FW and calibration status upgrade
  bool run_wizard = false;
  if (calibration_status_get(CALIBRATION_STATUS_UNKNOWN)) {
   20878:	80 e8       	ldi	r24, 0x80	; 128
   2087a:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   2087e:	88 23       	and	r24, r24
   20880:	c9 f0       	breq	.+50     	; 0x208b4 <main+0x11ca>
      CalibrationStatus calibration_status = 0;
      if (eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V1) == 1) {
   20882:	87 ef       	ldi	r24, 0xF7	; 247
   20884:	9f e0       	ldi	r25, 0x0F	; 15
   20886:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
  }

  // handle FW and calibration status upgrade
  bool run_wizard = false;
  if (calibration_status_get(CALIBRATION_STATUS_UNKNOWN)) {
      CalibrationStatus calibration_status = 0;
   2088a:	60 e0       	ldi	r22, 0x00	; 0
      if (eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V1) == 1) {
   2088c:	81 30       	cpi	r24, 0x01	; 1
   2088e:	71 f4       	brne	.+28     	; 0x208ac <main+0x11c2>
          // calibrated printer upgraded from FW<3.12
          calibration_status |= (CALIBRATION_STATUS_SELFTEST | CALIBRATION_STATUS_XYZ | CALIBRATION_STATUS_Z | CALIBRATION_STATUS_LIVE_ADJUST);

          static const uint16_t v3_2_0_4[] PROGMEM = {3, 2, 0, 4};
          if (eeprom_fw_version_older_than_p(v3_2_0_4)) {
   20890:	89 e3       	ldi	r24, 0x39	; 57
   20892:	9d e8       	ldi	r25, 0x8D	; 141
   20894:	0e 94 22 d1 	call	0x1a244	; 0x1a244 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])>
  bool run_wizard = false;
  if (calibration_status_get(CALIBRATION_STATUS_UNKNOWN)) {
      CalibrationStatus calibration_status = 0;
      if (eeprom_read_byte((uint8_t*)EEPROM_CALIBRATION_STATUS_V1) == 1) {
          // calibrated printer upgraded from FW<3.12
          calibration_status |= (CALIBRATION_STATUS_SELFTEST | CALIBRATION_STATUS_XYZ | CALIBRATION_STATUS_Z | CALIBRATION_STATUS_LIVE_ADJUST);
   20898:	67 e1       	ldi	r22, 0x17	; 23

          static const uint16_t v3_2_0_4[] PROGMEM = {3, 2, 0, 4};
          if (eeprom_fw_version_older_than_p(v3_2_0_4)) {
   2089a:	88 23       	and	r24, r24
   2089c:	39 f0       	breq	.+14     	; 0x208ac <main+0x11c2>
              // printer upgraded from FW<3.2.0.4 and requires re-running selftest
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_FORCE_SELFTEST));
   2089e:	82 ed       	ldi	r24, 0xD2	; 210
   208a0:	9b e4       	ldi	r25, 0x4B	; 75
   208a2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   208a6:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
              calibration_status &= ~CALIBRATION_STATUS_SELFTEST;
   208aa:	66 e1       	ldi	r22, 0x16	; 22
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   208ac:	86 ea       	ldi	r24, 0xA6	; 166
   208ae:	9c e0       	ldi	r25, 0x0C	; 12
   208b0:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
          }
      }
      eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_V2, calibration_status);
  }
  if (eeprom_fw_version_older_than_p(FW_VERSION_NR)) {
   208b4:	81 e3       	ldi	r24, 0x31	; 49
   208b6:	9d e8       	ldi	r25, 0x8D	; 141
   208b8:	0e 94 22 d1 	call	0x1a244	; 0x1a244 <eeprom_fw_version_older_than_p(unsigned int const (&) [4])>
   208bc:	f8 2e       	mov	r15, r24
   208be:	88 23       	and	r24, r24
   208c0:	31 f0       	breq	.+12     	; 0x208ce <main+0x11e4>
      if (!calibration_status_get(CALIBRATION_WIZARD_STEPS)) {
   208c2:	8f e1       	ldi	r24, 0x1F	; 31
   208c4:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   208c8:	91 e0       	ldi	r25, 0x01	; 1
   208ca:	f8 2e       	mov	r15, r24
   208cc:	f9 26       	eor	r15, r25

          static const uint16_t v3_2_0_4[] PROGMEM = {3, 2, 0, 4};
          if (eeprom_fw_version_older_than_p(v3_2_0_4)) {
              // printer upgraded from FW<3.2.0.4 and requires re-running selftest
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_FORCE_SELFTEST));
              calibration_status &= ~CALIBRATION_STATUS_SELFTEST;
   208ce:	10 e0       	ldi	r17, 0x00	; 0
   208d0:	00 e0       	ldi	r16, 0x00	; 0
}

void update_current_firmware_version_to_eeprom()
{
    for (int8_t i = 0; i < FW_PRUSA3D_MAGIC_LEN; ++ i){
        eeprom_update_byte_notify((uint8_t*)(EEPROM_FIRMWARE_PRUSA_MAGIC+i), pgm_read_byte(FW_PRUSA3D_MAGIC_STR+i));
   208d2:	f8 01       	movw	r30, r16
   208d4:	ee 5d       	subi	r30, 0xDE	; 222
   208d6:	f2 47       	sbci	r31, 0x72	; 114
   208d8:	64 91       	lpm	r22, Z
   208da:	c8 01       	movw	r24, r16
   208dc:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   208e0:	0f 5f       	subi	r16, 0xFF	; 255
   208e2:	1f 4f       	sbci	r17, 0xFF	; 255
    return true;
}

void update_current_firmware_version_to_eeprom()
{
    for (int8_t i = 0; i < FW_PRUSA3D_MAGIC_LEN; ++ i){
   208e4:	0a 30       	cpi	r16, 0x0A	; 10
   208e6:	11 05       	cpc	r17, r1
   208e8:	a1 f7       	brne	.-24     	; 0x208d2 <main+0x11e8>
        eeprom_update_byte_notify((uint8_t*)(EEPROM_FIRMWARE_PRUSA_MAGIC+i), pgm_read_byte(FW_PRUSA3D_MAGIC_STR+i));
    }
    eeprom_update_word_notify((uint16_t*)EEPROM_FIRMWARE_VERSION_MAJOR,    (uint16_t)pgm_read_word(&FW_VERSION_NR[0]));
   208ea:	e1 e3       	ldi	r30, 0x31	; 49
   208ec:	fd e8       	ldi	r31, 0x8D	; 141
   208ee:	65 91       	lpm	r22, Z+
   208f0:	74 91       	lpm	r23, Z
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   208f2:	8a e0       	ldi	r24, 0x0A	; 10
   208f4:	90 e0       	ldi	r25, 0x00	; 0
   208f6:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    eeprom_update_word_notify((uint16_t*)EEPROM_FIRMWARE_VERSION_MINOR,    (uint16_t)pgm_read_word(&FW_VERSION_NR[1]));
   208fa:	e3 e3       	ldi	r30, 0x33	; 51
   208fc:	fd e8       	ldi	r31, 0x8D	; 141
   208fe:	65 91       	lpm	r22, Z+
   20900:	74 91       	lpm	r23, Z
   20902:	8c e0       	ldi	r24, 0x0C	; 12
   20904:	90 e0       	ldi	r25, 0x00	; 0
   20906:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    eeprom_update_word_notify((uint16_t*)EEPROM_FIRMWARE_VERSION_REVISION, (uint16_t)pgm_read_word(&FW_VERSION_NR[2]));
   2090a:	e5 e3       	ldi	r30, 0x35	; 53
   2090c:	fd e8       	ldi	r31, 0x8D	; 141
   2090e:	65 91       	lpm	r22, Z+
   20910:	74 91       	lpm	r23, Z
   20912:	8e e0       	ldi	r24, 0x0E	; 14
   20914:	90 e0       	ldi	r25, 0x00	; 0
   20916:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
    // See FirmwareRevisionFlavorType for the definition of firmware flavors.
    eeprom_update_word_notify((uint16_t*)EEPROM_FIRMWARE_VERSION_FLAVOR,   (uint16_t)pgm_read_word(&FW_VERSION_NR[3]));
   2091a:	e7 e3       	ldi	r30, 0x37	; 55
   2091c:	fd e8       	ldi	r31, 0x8D	; 141
   2091e:	65 91       	lpm	r22, Z+
   20920:	74 91       	lpm	r23, Z
   20922:	80 e1       	ldi	r24, 0x10	; 16
   20924:	90 e0       	ldi	r25, 0x00	; 0
   20926:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
          run_wizard = true;
      }
  }
  update_current_firmware_version_to_eeprom();

  if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE)) {
   2092a:	8f e5       	ldi	r24, 0x5F	; 95
   2092c:	9f e0       	ldi	r25, 0x0F	; 15
   2092e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20932:	88 23       	and	r24, r24
   20934:	09 f4       	brne	.+2      	; 0x20938 <main+0x124e>
   20936:	c1 c0       	rjmp	.+386    	; 0x20aba <main+0x13d0>
      // first time run of wizard or service prep
      lcd_wizard(WizState::Run);
   20938:	80 e0       	ldi	r24, 0x00	; 0
  }
  else if (run_wizard) {
      // some wizard steps required by the upgrade checks
      lcd_wizard(WizState::Restore);
   2093a:	0e 94 e0 f9 	call	0x1f3c0	; 0x1f3c0 <lcd_wizard(WizState)>
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_TM_NOT_CAL));
#endif //THERMAL_MODEL
      }
  }

  KEEPALIVE_STATE(IN_PROCESS);
   2093e:	83 e0       	ldi	r24, 0x03	; 3
   20940:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
#endif //DEBUG_DISABLE_STARTMSGS
  lcd_update_enable(true);
   20944:	81 e0       	ldi	r24, 0x01	; 1
   20946:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
  lcd_clear();
   2094a:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
  lcd_update(2);
   2094e:	82 e0       	ldi	r24, 0x02	; 2
   20950:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

#ifdef TMC2130
  tmc2130_home_origin[X_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_X_ORIGIN, 0);
   20954:	60 e0       	ldi	r22, 0x00	; 0
   20956:	8e ef       	ldi	r24, 0xFE	; 254
   20958:	9e e0       	ldi	r25, 0x0E	; 14
   2095a:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   2095e:	80 93 f3 04 	sts	0x04F3, r24	; 0x8004f3 <tmc2130_home_origin>
	tmc2130_home_bsteps[X_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_X_BSTEPS, 48);
   20962:	60 e3       	ldi	r22, 0x30	; 48
   20964:	8d ef       	ldi	r24, 0xFD	; 253
   20966:	9e e0       	ldi	r25, 0x0E	; 14
   20968:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   2096c:	80 93 5a 02 	sts	0x025A, r24	; 0x80025a <tmc2130_home_bsteps>
	tmc2130_home_fsteps[X_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_X_FSTEPS, 48);
   20970:	60 e3       	ldi	r22, 0x30	; 48
   20972:	8c ef       	ldi	r24, 0xFC	; 252
   20974:	9e e0       	ldi	r25, 0x0E	; 14
   20976:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   2097a:	80 93 58 02 	sts	0x0258, r24	; 0x800258 <tmc2130_home_fsteps>

	tmc2130_home_origin[Y_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_Y_ORIGIN, 0);
   2097e:	60 e0       	ldi	r22, 0x00	; 0
   20980:	8b ef       	ldi	r24, 0xFB	; 251
   20982:	9e e0       	ldi	r25, 0x0E	; 14
   20984:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20988:	80 93 f4 04 	sts	0x04F4, r24	; 0x8004f4 <tmc2130_home_origin+0x1>
	tmc2130_home_bsteps[Y_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_Y_BSTEPS, 48);
   2098c:	60 e3       	ldi	r22, 0x30	; 48
   2098e:	8a ef       	ldi	r24, 0xFA	; 250
   20990:	9e e0       	ldi	r25, 0x0E	; 14
   20992:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20996:	80 93 5b 02 	sts	0x025B, r24	; 0x80025b <tmc2130_home_bsteps+0x1>
	tmc2130_home_fsteps[Y_AXIS] = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_Y_FSTEPS, 48);
   2099a:	60 e3       	ldi	r22, 0x30	; 48
   2099c:	89 ef       	ldi	r24, 0xF9	; 249
   2099e:	9e e0       	ldi	r25, 0x0E	; 14
   209a0:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   209a4:	80 93 59 02 	sts	0x0259, r24	; 0x800259 <tmc2130_home_fsteps+0x1>

	tmc2130_home_enabled = eeprom_init_default_byte((uint8_t*)EEPROM_TMC2130_HOME_ENABLED, 0);
   209a8:	60 e0       	ldi	r22, 0x00	; 0
   209aa:	88 ef       	ldi	r24, 0xF8	; 248
   209ac:	9e e0       	ldi	r25, 0x0E	; 14
   209ae:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   209b2:	80 93 f2 04 	sts	0x04F2, r24	; 0x8004f2 <tmc2130_home_enabled>

static void fw_crash_init()
{
#ifdef XFLASH_DUMP
    dump_crash_reason crash_reason;
    if(xfdump_check_state(&crash_reason))
   209b6:	ce 01       	movw	r24, r28
   209b8:	01 96       	adiw	r24, 0x01	; 1
   209ba:	0e 94 ed ed 	call	0x1dbda	; 0x1dbda <xfdump_check_state(dump_crash_reason*)>
   209be:	88 23       	and	r24, r24
   209c0:	89 f0       	breq	.+34     	; 0x209e4 <main+0x12fa>
    {
        // always signal to the host that a dump is available for retrieval
        puts_P(_N("//action:dump_available"));
   209c2:	82 e2       	ldi	r24, 0x22	; 34
   209c4:	9c e6       	ldi	r25, 0x6C	; 108
   209c6:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>

#ifdef EMERGENCY_DUMP
        if(crash_reason != dump_crash_reason::manual &&
   209ca:	89 81       	ldd	r24, Y+1	; 0x01
   209cc:	88 23       	and	r24, r24
   209ce:	51 f0       	breq	.+20     	; 0x209e4 <main+0x12fa>
           eeprom_read_byte((uint8_t*)EEPROM_FW_CRASH_FLAG) != 0xFF)
   209d0:	83 e0       	ldi	r24, 0x03	; 3
   209d2:	9d e0       	ldi	r25, 0x0D	; 13
   209d4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    {
        // always signal to the host that a dump is available for retrieval
        puts_P(_N("//action:dump_available"));

#ifdef EMERGENCY_DUMP
        if(crash_reason != dump_crash_reason::manual &&
   209d8:	8f 3f       	cpi	r24, 0xFF	; 255
   209da:	21 f0       	breq	.+8      	; 0x209e4 <main+0x12fa>
           eeprom_read_byte((uint8_t*)EEPROM_FW_CRASH_FLAG) != 0xFF)
        {
            lcd_show_fullscreen_message_and_wait_P(
   209dc:	8e ea       	ldi	r24, 0xAE	; 174
   209de:	9b e6       	ldi	r25, 0x6B	; 107
   209e0:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   209e4:	6f ef       	ldi	r22, 0xFF	; 255
   209e6:	83 e0       	ldi	r24, 0x03	; 3
   209e8:	9d e0       	ldi	r25, 0x0D	; 13
   209ea:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

    // report crash failures
    fw_crash_init();

#ifdef UVLO_SUPPORT
  if (printer_recovering()) { //previous print was terminated by UVLO
   209ee:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   209f2:	88 23       	and	r24, r24
   209f4:	d9 f1       	breq	.+118    	; 0x20a6c <main+0x1382>
      manage_heater(); // Update temperatures
   209f6:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
      //Restore printing type
      saved_printing_type = eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE);
   209fa:	8c e8       	ldi	r24, 0x8C	; 140
   209fc:	9f e0       	ldi	r25, 0x0F	; 15
   209fe:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20a02:	08 2f       	mov	r16, r24
   20a04:	80 93 6a 02 	sts	0x026A, r24	; 0x80026a <saved_printing_type>
    return current_temperature_bed_raw;
  };
#endif

FORCE_INLINE float degBed() {
  return current_temperature_bed;
   20a08:	80 90 ee 04 	lds	r8, 0x04EE	; 0x8004ee <current_temperature_bed>
   20a0c:	90 90 ef 04 	lds	r9, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   20a10:	a0 90 f0 04 	lds	r10, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   20a14:	b0 90 f1 04 	lds	r11, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
      printf_P(_N("Power panic detected!\nCurrent bed temp:%d\nSaved bed temp:%d\n"), (int)degBed(), eeprom_read_byte((uint8_t*)EEPROM_UVLO_TARGET_BED));
#endif //DEBUG_UVLO_AUTOMATIC_RECOVER
      uvlo_auto_recovery_ready = (degBed() > ( (float)eeprom_read_byte((uint8_t*)EEPROM_UVLO_TARGET_BED) - AUTOMATIC_UVLO_BED_TEMP_OFFSET));
   20a18:	8b e8       	ldi	r24, 0x8B	; 139
   20a1a:	9f e0       	ldi	r25, 0x0F	; 15
   20a1c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   20a20:	68 2f       	mov	r22, r24
   20a22:	70 e0       	ldi	r23, 0x00	; 0
   20a24:	90 e0       	ldi	r25, 0x00	; 0
   20a26:	80 e0       	ldi	r24, 0x00	; 0
   20a28:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   20a2c:	20 e0       	ldi	r18, 0x00	; 0
   20a2e:	30 e0       	ldi	r19, 0x00	; 0
   20a30:	40 ea       	ldi	r20, 0xA0	; 160
   20a32:	50 e4       	ldi	r21, 0x40	; 64
   20a34:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   20a38:	6b 01       	movw	r12, r22
   20a3a:	7c 01       	movw	r14, r24
   20a3c:	11 e0       	ldi	r17, 0x01	; 1
   20a3e:	ac 01       	movw	r20, r24
   20a40:	9b 01       	movw	r18, r22
   20a42:	c5 01       	movw	r24, r10
   20a44:	b4 01       	movw	r22, r8
   20a46:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   20a4a:	18 16       	cp	r1, r24
   20a4c:	0c f0       	brlt	.+2      	; 0x20a50 <main+0x1366>
   20a4e:	10 e0       	ldi	r17, 0x00	; 0
   20a50:	10 93 ed 04 	sts	0x04ED, r17	; 0x8004ed <_ZL24uvlo_auto_recovery_ready.lto_priv.533>
      if (uvlo_auto_recovery_ready){
   20a54:	a7 01       	movw	r20, r14
   20a56:	96 01       	movw	r18, r12
   20a58:	c5 01       	movw	r24, r10
   20a5a:	b4 01       	movw	r22, r8
   20a5c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   20a60:	18 16       	cp	r1, r24
   20a62:	0c f0       	brlt	.+2      	; 0x20a66 <main+0x137c>
   20a64:	58 c0       	rjmp	.+176    	; 0x20b16 <main+0x142c>
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
        puts_P(_N("Automatic recovery!"));
#endif //DEBUG_UVLO_AUTOMATIC_RECOVER
        recover_print(1);
   20a66:	81 e0       	ldi	r24, 0x01	; 1
      } else {
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
        puts_P(_N("Normal recovery!"));
#endif //DEBUG_UVLO_AUTOMATIC_RECOVER
        if (saved_printing_type == PowerPanic::PRINT_TYPE_HOST) {
          recover_print(0);
   20a68:	0f 94 42 5d 	call	0x2ba84	; 0x2ba84 <recover_print(unsigned char)>
    printf_P(_N("UVLO_TINY - end %d\n"), _millis() - time_start);
    uvlo_drain_reset();
}

void setup_uvlo_interrupt() {
    DDRE &= ~(1 << 4); //input pin
   20a6c:	6c 98       	cbi	0x0d, 4	; 13
    PORTE &= ~(1 << 4); //no internal pull-up
   20a6e:	74 98       	cbi	0x0e, 4	; 14

    // sensing falling edge
    EICRB |= (1 << 0);
   20a70:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
   20a74:	81 60       	ori	r24, 0x01	; 1
   20a76:	80 93 6a 00 	sts	0x006A, r24	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
    EICRB &= ~(1 << 1);
   20a7a:	80 91 6a 00 	lds	r24, 0x006A	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>
   20a7e:	8d 7f       	andi	r24, 0xFD	; 253
   20a80:	80 93 6a 00 	sts	0x006A, r24	; 0x80006a <__TEXT_REGION_LENGTH__+0x7c206a>

    // enable INT4 interrupt
    EIMSK |= (1 << 4);
   20a84:	ec 9a       	sbi	0x1d, 4	; 29

    // check if power was lost before we armed the interrupt
    if(!(PINE & (1 << 4)) && printer_recovering())
   20a86:	64 99       	sbic	0x0c, 4	; 12
   20a88:	57 c0       	rjmp	.+174    	; 0x20b38 <main+0x144e>
   20a8a:	0e 94 02 67 	call	0xce04	; 0xce04 <printer_recovering()>
   20a8e:	88 23       	and	r24, r24
   20a90:	09 f4       	brne	.+2      	; 0x20a94 <main+0x13aa>
   20a92:	52 c0       	rjmp	.+164    	; 0x20b38 <main+0x144e>
    {
        SERIAL_ECHOLNRPGM(MSG_INT4);
   20a94:	8c e2       	ldi	r24, 0x2C	; 44
   20a96:	9d e8       	ldi	r25, 0x8D	; 141
   20a98:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        uvlo_drain_reset();
   20a9c:	0f 94 5e 60 	call	0x2c0bc	; 0x2c0bc <uvlo_drain_reset() [clone .lto_priv.428]>
	case(0b10):
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CHANGED_PRINTER));
		eeprom_write_word_notify((uint16_t*)EEPROM_PRINTER_TYPE, PRINTER_TYPE);
		break;
	case(0b11):
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CHANGED_BOTH));
   20aa0:	80 e5       	ldi	r24, 0x50	; 80
   20aa2:	9c e4       	ldi	r25, 0x4C	; 76
   20aa4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20aa8:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
    if (active) {
        uint16_t previous_value = eeprom_read_word(dst);
        eeprom_word_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_word(dst, value);
   20aac:	6c e2       	ldi	r22, 0x2C	; 44
   20aae:	71 e0       	ldi	r23, 0x01	; 1
   20ab0:	8e ee       	ldi	r24, 0xEE	; 238
   20ab2:	9e e0       	ldi	r25, 0x0E	; 14
   20ab4:	0f 94 b9 dc 	call	0x3b972	; 0x3b972 <eeprom_write_word>
   20ab8:	c4 ce       	rjmp	.-632    	; 0x20842 <main+0x1158>
      // first time run of wizard or service prep
      lcd_wizard(WizState::Run);
  }
  else if (run_wizard) {
      // some wizard steps required by the upgrade checks
      lcd_wizard(WizState::Restore);
   20aba:	81 e0       	ldi	r24, 0x01	; 1

  if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE)) {
      // first time run of wizard or service prep
      lcd_wizard(WizState::Run);
  }
  else if (run_wizard) {
   20abc:	f1 10       	cpse	r15, r1
   20abe:	3d cf       	rjmp	.-390    	; 0x2093a <main+0x1250>
      // some wizard steps required by the upgrade checks
      lcd_wizard(WizState::Restore);
  }
  else {
      if (!calibration_status_get(CALIBRATION_STATUS_SELFTEST)) {
   20ac0:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   20ac4:	81 11       	cpse	r24, r1
   20ac6:	07 c0       	rjmp	.+14     	; 0x20ad6 <main+0x13ec>
          // aborted or missing wizard: show a single warning
          lcd_show_fullscreen_message_and_wait_P(_T(MSG_FOLLOW_CALIBRATION_FLOW));
   20ac8:	82 e6       	ldi	r24, 0x62	; 98
   20aca:	9b e4       	ldi	r25, 0x4B	; 75
          // warn about other important steps individually
          if (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST))
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_BABYSTEP_Z_NOT_SET));
#ifdef THERMAL_MODEL
          if (!calibration_status_get(CALIBRATION_STATUS_THERMAL_MODEL) && thermal_model_enabled())
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_TM_NOT_CAL));
   20acc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20ad0:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   20ad4:	34 cf       	rjmp	.-408    	; 0x2093e <main+0x1254>
  else {
      if (!calibration_status_get(CALIBRATION_STATUS_SELFTEST)) {
          // aborted or missing wizard: show a single warning
          lcd_show_fullscreen_message_and_wait_P(_T(MSG_FOLLOW_CALIBRATION_FLOW));
      }
      else if (!calibration_status_get(CALIBRATION_STATUS_Z)) {
   20ad6:	84 e0       	ldi	r24, 0x04	; 4
   20ad8:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   20adc:	81 11       	cpse	r24, r1
   20ade:	03 c0       	rjmp	.+6      	; 0x20ae6 <main+0x13fc>
          // wizard reset after service prep
          lcd_show_fullscreen_message_and_wait_P(_T(MSG_FOLLOW_Z_CALIBRATION_FLOW));
   20ae0:	8a ee       	ldi	r24, 0xEA	; 234
   20ae2:	9a e4       	ldi	r25, 0x4A	; 74
   20ae4:	f3 cf       	rjmp	.-26     	; 0x20acc <main+0x13e2>
      } else {
          // warn about other important steps individually
          if (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST))
   20ae6:	80 e1       	ldi	r24, 0x10	; 16
   20ae8:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   20aec:	81 11       	cpse	r24, r1
   20aee:	06 c0       	rjmp	.+12     	; 0x20afc <main+0x1412>
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_BABYSTEP_Z_NOT_SET));
   20af0:	82 e8       	ldi	r24, 0x82	; 130
   20af2:	99 e5       	ldi	r25, 0x59	; 89
   20af4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20af8:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
#ifdef THERMAL_MODEL
          if (!calibration_status_get(CALIBRATION_STATUS_THERMAL_MODEL) && thermal_model_enabled())
   20afc:	88 e0       	ldi	r24, 0x08	; 8
   20afe:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   20b02:	81 11       	cpse	r24, r1
   20b04:	1c cf       	rjmp	.-456    	; 0x2093e <main+0x1254>
   20b06:	80 91 1d 05 	lds	r24, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   20b0a:	88 23       	and	r24, r24
   20b0c:	09 f4       	brne	.+2      	; 0x20b10 <main+0x1426>
   20b0e:	17 cf       	rjmp	.-466    	; 0x2093e <main+0x1254>
              lcd_show_fullscreen_message_and_wait_P(_T(MSG_TM_NOT_CAL));
   20b10:	86 ec       	ldi	r24, 0xC6	; 198
   20b12:	9a e4       	ldi	r25, 0x4A	; 74
   20b14:	db cf       	rjmp	.-74     	; 0x20acc <main+0x13e2>
        recover_print(1);
      } else {
#ifdef DEBUG_UVLO_AUTOMATIC_RECOVER
        puts_P(_N("Normal recovery!"));
#endif //DEBUG_UVLO_AUTOMATIC_RECOVER
        if (saved_printing_type == PowerPanic::PRINT_TYPE_HOST) {
   20b16:	01 30       	cpi	r16, 0x01	; 1
   20b18:	11 f4       	brne	.+4      	; 0x20b1e <main+0x1434>
          recover_print(0);
   20b1a:	80 e0       	ldi	r24, 0x00	; 0
   20b1c:	a5 cf       	rjmp	.-182    	; 0x20a68 <main+0x137e>
        } else {
          const uint8_t btn = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_RECOVER_PRINT), false);
   20b1e:	82 ea       	ldi	r24, 0xA2	; 162
   20b20:	9a e4       	ldi	r25, 0x4A	; 74
   20b22:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20b26:	41 e0       	ldi	r20, 0x01	; 1
   20b28:	60 e0       	ldi	r22, 0x00	; 0
   20b2a:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
          if ( btn == LCD_LEFT_BUTTON_CHOICE) {
   20b2e:	88 23       	and	r24, r24
   20b30:	a1 f3       	breq	.-24     	; 0x20b1a <main+0x1430>
            recover_print(0);
          } else { // LCD_MIDDLE_BUTTON_CHOICE
            cancel_saved_printing();
   20b32:	0e 94 34 64 	call	0xc868	; 0xc868 <cancel_saved_printing()>
   20b36:	9a cf       	rjmp	.-204    	; 0x20a6c <main+0x1382>
ClCheckMode oCheckVersion;
ClCheckMode oCheckGcode;
ClCheckMode oCheckFilament;

void fCheckModeInit() {
    oCheckMode = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_MODE, (uint8_t)ClCheckMode::_Warn);
   20b38:	61 e0       	ldi	r22, 0x01	; 1
   20b3a:	88 ea       	ldi	r24, 0xA8	; 168
   20b3c:	9d e0       	ldi	r25, 0x0D	; 13
   20b3e:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b42:	80 93 ec 04 	sts	0x04EC, r24	; 0x8004ec <oCheckMode>
    if (farm_mode) {
        oCheckMode = ClCheckMode::_Strict;
        eeprom_update_byte_notify((uint8_t *)EEPROM_CHECK_MODE, (uint8_t)ClCheckMode::_Strict);
    }

    oNozzleDiameter = (ClNozzleDiameter)eeprom_init_default_byte((uint8_t *)EEPROM_NOZZLE_DIAMETER, (uint8_t)ClNozzleDiameter::_Diameter_400);
   20b46:	68 e2       	ldi	r22, 0x28	; 40
   20b48:	87 ea       	ldi	r24, 0xA7	; 167
   20b4a:	9d e0       	ldi	r25, 0x0D	; 13
   20b4c:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b50:	80 93 eb 04 	sts	0x04EB, r24	; 0x8004eb <oNozzleDiameter>
    eeprom_init_default_word((uint16_t *)EEPROM_NOZZLE_DIAMETER_uM, EEPROM_NOZZLE_DIAMETER_uM_DEFAULT);
   20b54:	60 e9       	ldi	r22, 0x90	; 144
   20b56:	71 e0       	ldi	r23, 0x01	; 1
   20b58:	85 ea       	ldi	r24, 0xA5	; 165
   20b5a:	9d e0       	ldi	r25, 0x0D	; 13
   20b5c:	0e 94 78 75 	call	0xeaf0	; 0xeaf0 <eeprom_init_default_word(unsigned int*, unsigned int)>

    oCheckModel = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_MODEL, (uint8_t)ClCheckMode::_Warn);
   20b60:	61 e0       	ldi	r22, 0x01	; 1
   20b62:	84 ea       	ldi	r24, 0xA4	; 164
   20b64:	9d e0       	ldi	r25, 0x0D	; 13
   20b66:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b6a:	80 93 ea 04 	sts	0x04EA, r24	; 0x8004ea <oCheckModel>
    oCheckVersion = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_VERSION, (uint8_t)ClCheckMode::_Warn);
   20b6e:	61 e0       	ldi	r22, 0x01	; 1
   20b70:	83 ea       	ldi	r24, 0xA3	; 163
   20b72:	9d e0       	ldi	r25, 0x0D	; 13
   20b74:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b78:	80 93 e9 04 	sts	0x04E9, r24	; 0x8004e9 <oCheckVersion>
    oCheckGcode = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_GCODE, (uint8_t)ClCheckMode::_Warn);
   20b7c:	61 e0       	ldi	r22, 0x01	; 1
   20b7e:	82 ea       	ldi	r24, 0xA2	; 162
   20b80:	9d e0       	ldi	r25, 0x0D	; 13
   20b82:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b86:	80 93 e8 04 	sts	0x04E8, r24	; 0x8004e8 <oCheckGcode>
    oCheckFilament = (ClCheckMode)eeprom_init_default_byte((uint8_t *)EEPROM_CHECK_FILAMENT, (uint8_t)ClCheckMode::_Warn);
   20b8a:	61 e0       	ldi	r22, 0x01	; 1
   20b8c:	80 e2       	ldi	r24, 0x20	; 32
   20b8e:	9c e0       	ldi	r25, 0x0C	; 12
   20b90:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
   20b94:	80 93 e7 04 	sts	0x04E7, r24	; 0x8004e7 <oCheckFilament>
  // the entire state machine initialized.
  setup_uvlo_interrupt();
#endif //UVLO_SUPPORT

  fCheckModeInit();
  KEEPALIVE_STATE(NOT_BUSY);
   20b98:	81 e0       	ldi	r24, 0x01	; 1
   20b9a:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
				: "n" (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
				"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) |
						_BV(WDE) | (value & 0x07)) )
				: "r0"
		);
   20b9e:	88 e1       	ldi	r24, 0x18	; 24
   20ba0:	98 e2       	ldi	r25, 0x28	; 40
   20ba2:	0f b6       	in	r0, 0x3f	; 63
   20ba4:	f8 94       	cli
   20ba6:	a8 95       	wdr
   20ba8:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   20bac:	0f be       	out	0x3f, r0	; 63
   20bae:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
#ifdef WATCHDOG
  wdt_enable(WDTO_4S);
#ifdef EMERGENCY_HANDLERS
  WDTCSR |= (1 << WDIE);
   20bb2:	80 91 60 00 	lds	r24, 0x0060	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   20bb6:	80 64       	ori	r24, 0x40	; 64
   20bb8:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
          sei();
        }
	  }
	  else if((*ptr == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR) && !IS_SD_PRINTING){
		  cli();
          *ptr ++ = CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED;
   20bbc:	85 e0       	ldi	r24, 0x05	; 5
   20bbe:	d8 2e       	mov	r13, r24
	
	setup();
    
	for (;;) {
		loop();
		if (serialEventRun) serialEventRun();
   20bc0:	00 e0       	ldi	r16, 0x00	; 0
   20bc2:	10 e0       	ldi	r17, 0x00	; 0
        // Currently Stopped (possibly due to an error) and not accepting new serial commands.
        // Signal to the host that we're currently busy waiting for supervision.
        KEEPALIVE_STATE(PAUSED_FOR_USER);
    } else {
        // Printer is available for processing, reset state
        KEEPALIVE_STATE(NOT_BUSY);
   20bc4:	cc 24       	eor	r12, r12
   20bc6:	c3 94       	inc	r12
    planner_aborted = false;

    if(Stopped) {
        // Currently Stopped (possibly due to an error) and not accepting new serial commands.
        // Signal to the host that we're currently busy waiting for supervision.
        KEEPALIVE_STATE(PAUSED_FOR_USER);
   20bc8:	94 e0       	ldi	r25, 0x04	; 4
   20bca:	b9 2e       	mov	r11, r25
// The loop() function is called in an endless loop by the Arduino framework from the default main() routine.
// Before loop(), the setup() function is called by the main() routine.
void loop()
{
    // Reset a previously aborted command, we can now start processing motion again
    planner_aborted = false;
   20bcc:	10 92 ac 0d 	sts	0x0DAC, r1	; 0x800dac <planner_aborted>

    if(Stopped) {
   20bd0:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   20bd4:	88 23       	and	r24, r24
   20bd6:	09 f4       	brne	.+2      	; 0x20bda <main+0x14f0>
   20bd8:	c4 c0       	rjmp	.+392    	; 0x20d62 <main+0x1678>
        // Currently Stopped (possibly due to an error) and not accepting new serial commands.
        // Signal to the host that we're currently busy waiting for supervision.
        KEEPALIVE_STATE(PAUSED_FOR_USER);
   20bda:	b0 92 be 02 	sts	0x02BE, r11	; 0x8002be <busy_state>
    } else {
        // Printer is available for processing, reset state
        KEEPALIVE_STATE(NOT_BUSY);
    }

	if (printingIsPaused() && saved_printing_type == PowerPanic::PRINT_TYPE_HOST) { //keep believing that usb is being printed. Prevents accessing dangerous menus while pausing.
   20bde:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   20be2:	88 23       	and	r24, r24
   20be4:	09 f4       	brne	.+2      	; 0x20be8 <main+0x14fe>
   20be6:	c0 c0       	rjmp	.+384    	; 0x20d68 <main+0x167e>
   20be8:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
   20bec:	81 30       	cpi	r24, 0x01	; 1
   20bee:	09 f0       	breq	.+2      	; 0x20bf2 <main+0x1508>
   20bf0:	bb c0       	rjmp	.+374    	; 0x20d68 <main+0x167e>
		usb_timer.start();
   20bf2:	8e e0       	ldi	r24, 0x0E	; 14
   20bf4:	95 e0       	ldi	r25, 0x05	; 5
   20bf6:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
    }
    else
#endif
    {

        get_command();
   20bfa:	0e 94 a7 82 	call	0x1054e	; 0x1054e <get_command()>
  // The SD start is delayed because otherwise the serial cannot answer
  // fast enough to make contact with the host software.
  static bool autostart_stilltocheck = true;
  if(!force)
  {
    if(!autostart_stilltocheck)
   20bfe:	80 91 69 02 	lds	r24, 0x0269	; 0x800269 <_ZZN10CardReader14checkautostartEbE22autostart_stilltocheck.lto_priv.553>
   20c02:	88 23       	and	r24, r24
   20c04:	89 f0       	breq	.+34     	; 0x20c28 <main+0x153e>
      return;
    if(autostart_atmillis.expired(5000))
   20c06:	68 e8       	ldi	r22, 0x88	; 136
   20c08:	73 e1       	ldi	r23, 0x13	; 19
   20c0a:	81 ea       	ldi	r24, 0xA1	; 161
   20c0c:	97 e1       	ldi	r25, 0x17	; 23
   20c0e:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   20c12:	81 11       	cpse	r24, r1
   20c14:	09 c0       	rjmp	.+18     	; 0x20c28 <main+0x153e>
      return;
  }
  autostart_stilltocheck = false;
   20c16:	10 92 69 02 	sts	0x0269, r1	; 0x800269 <_ZZN10CardReader14checkautostartEbE22autostart_stilltocheck.lto_priv.553>
  if(!mounted)
   20c1a:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   20c1e:	88 23       	and	r24, r24
   20c20:	09 f4       	brne	.+2      	; 0x20c24 <main+0x153a>
   20c22:	ae c0       	rjmp	.+348    	; 0x20d80 <main+0x1696>
   20c24:	0f 94 f9 76 	call	0x2edf2	; 0x2edf2 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]>

  #ifdef SDSUPPORT
  card.checkautostart(false);
  #endif
  if(buflen)
   20c28:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   20c2c:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   20c30:	89 2b       	or	r24, r25
   20c32:	09 f4       	brne	.+2      	; 0x20c36 <main+0x154c>
   20c34:	61 c0       	rjmp	.+194    	; 0x20cf8 <main+0x160e>
  {
    cmdbuffer_front_already_processed = false;
   20c36:	10 92 a2 10 	sts	0x10A2, r1	; 0x8010a2 <cmdbuffer_front_already_processed>
    #ifdef SDSUPPORT
      if(card.saving)
   20c3a:	80 91 8e 14 	lds	r24, 0x148E	; 0x80148e <card>
   20c3e:	88 23       	and	r24, r24
   20c40:	d1 f1       	breq	.+116    	; 0x20cb6 <main+0x15cc>
      {
        // Saving a G-code file onto an SD-card is in progress.
        // Saving starts with M28, saving until M29 is seen.
        if(strstr_P(CMDBUFFER_CURRENT_STRING, PSTR("M29")) == NULL) {
   20c42:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   20c46:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   20c4a:	dc 01       	movw	r26, r24
   20c4c:	a8 55       	subi	r26, 0x58	; 88
   20c4e:	bf 4e       	sbci	r27, 0xEF	; 239
   20c50:	7d 01       	movw	r14, r26
   20c52:	6c ec       	ldi	r22, 0xCC	; 204
   20c54:	7d e8       	ldi	r23, 0x8D	; 141
   20c56:	cd 01       	movw	r24, r26
   20c58:	0f 94 62 da 	call	0x3b4c4	; 0x3b4c4 <strstr_P>
   20c5c:	89 2b       	or	r24, r25
   20c5e:	09 f0       	breq	.+2      	; 0x20c62 <main+0x1578>
   20c60:	9c c0       	rjmp	.+312    	; 0x20d9a <main+0x16b0>
    else
        SERIAL_PROTOCOLLNPGM("Not SD printing");
}
void CardReader::write_command(char *buf)
{
  file.writeError = false;
   20c62:	10 92 20 17 	sts	0x1720, r1	; 0x801720 <card+0x292>
/** Write a string to a file. Used by the Arduino Print class.
 * \param[in] str Pointer to the string.
 * Use writeError to check for errors.
 */
void SdFile::write(const char* str) {
  SdBaseFile::write(str, strlen(str));
   20c66:	f7 01       	movw	r30, r14
   20c68:	01 90       	ld	r0, Z+
   20c6a:	00 20       	and	r0, r0
   20c6c:	e9 f7       	brne	.-6      	; 0x20c68 <main+0x157e>
   20c6e:	31 97       	sbiw	r30, 0x01	; 1
   20c70:	bf 01       	movw	r22, r30
   20c72:	6e 19       	sub	r22, r14
   20c74:	7f 09       	sbc	r23, r15
   20c76:	c7 01       	movw	r24, r14
   20c78:	0f 94 a2 84 	call	0x30944	; 0x30944 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]>
   20c7c:	62 e0       	ldi	r22, 0x02	; 2
   20c7e:	70 e0       	ldi	r23, 0x00	; 0
   20c80:	87 ef       	ldi	r24, 0xF7	; 247
   20c82:	92 e0       	ldi	r25, 0x02	; 2
   20c84:	0f 94 a2 84 	call	0x30944	; 0x30944 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]>
  file.write(buf); //write command
  file.write("\r\n"); //write line termination
  if (file.writeError)
   20c88:	80 91 20 17 	lds	r24, 0x1720	; 0x801720 <card+0x292>
   20c8c:	88 23       	and	r24, r24
   20c8e:	41 f0       	breq	.+16     	; 0x20ca0 <main+0x15b6>
  {
    SERIAL_ERROR_START;
   20c90:	88 ea       	ldi	r24, 0xA8	; 168
   20c92:	9a ea       	ldi	r25, 0xAA	; 170
   20c94:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORLNRPGM(MSG_SD_ERR_WRITE_TO_FILE);
   20c98:	8f ee       	ldi	r24, 0xEF	; 239
   20c9a:	9c e6       	ldi	r25, 0x6C	; 108
   20c9c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
          card.write_command(CMDBUFFER_CURRENT_STRING);
          if(card.logging)
   20ca0:	80 91 8f 14 	lds	r24, 0x148F	; 0x80148f <card+0x1>
   20ca4:	88 23       	and	r24, r24
   20ca6:	09 f4       	brne	.+2      	; 0x20caa <main+0x15c0>
   20ca8:	73 c0       	rjmp	.+230    	; 0x20d90 <main+0x16a6>
*/


void process_commands()
{
	if (!buflen) return; //empty command
   20caa:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   20cae:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   20cb2:	89 2b       	or	r24, r25
   20cb4:	11 f0       	breq	.+4      	; 0x20cba <main+0x15d0>
   20cb6:	0e 94 0a 95 	call	0x12a14	; 0x12a14 <process_commands() [clone .part.46]>
      }
    #else
      process_commands();
    #endif //SDSUPPORT

    if (! cmdbuffer_front_already_processed && buflen)
   20cba:	80 91 a2 10 	lds	r24, 0x10A2	; 0x8010a2 <cmdbuffer_front_already_processed>
   20cbe:	81 11       	cpse	r24, r1
   20cc0:	19 c0       	rjmp	.+50     	; 0x20cf4 <main+0x160a>
   20cc2:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   20cc6:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   20cca:	89 2b       	or	r24, r25
   20ccc:	99 f0       	breq	.+38     	; 0x20cf4 <main+0x160a>
    {
      // ptr points to the start of the block currently being processed.
      // The first character in the block is the block type.
      char *ptr = cmdbuffer + bufindr;
   20cce:	e0 91 92 12 	lds	r30, 0x1292	; 0x801292 <bufindr>
   20cd2:	f0 91 93 12 	lds	r31, 0x1293	; 0x801293 <bufindr+0x1>
   20cd6:	eb 55       	subi	r30, 0x5B	; 91
   20cd8:	ff 4e       	sbci	r31, 0xEF	; 239
      if (*ptr == CMDBUFFER_CURRENT_TYPE_SDCARD) {
   20cda:	80 81       	ld	r24, Z
   20cdc:	82 30       	cpi	r24, 0x02	; 2
   20cde:	09 f0       	breq	.+2      	; 0x20ce2 <main+0x15f8>
   20ce0:	6b c0       	rjmp	.+214    	; 0x20db8 <main+0x16ce>
        {
          // This block locks the interrupts globally for 3.25 us,
          // which corresponds to a maximum repeat frequency of 307.69 kHz.
          // This blocking is safe in the context of a 10kHz stepper driver interrupt
          // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz.
          cli();
   20ce2:	f8 94       	cli
          // Reset the command to something, which will be ignored by the power panic routine,
          // so this buffer length will not be counted twice.
          *ptr ++ = CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED;
   20ce4:	d0 82       	st	Z, r13
          // Extract the current buffer length.
          sdlen.lohi.lo = *ptr ++;
          sdlen.lohi.hi = *ptr;
          // and pass it to the planner queue.
          planner_add_sd_length(sdlen.value);
   20ce6:	81 81       	ldd	r24, Z+1	; 0x01
   20ce8:	92 81       	ldd	r25, Z+2	; 0x02
	  }
	  else if((*ptr == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR) && !IS_SD_PRINTING){
		  cli();
          *ptr ++ = CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED;
          // and one for each command to previous block in the planner queue.
          planner_add_sd_length(1);
   20cea:	0f 94 88 64 	call	0x2c910	; 0x2c910 <planner_add_sd_length(unsigned int)>
          sei();
   20cee:	78 94       	sei
	  }
      // Now it is safe to release the already processed command block. If interrupted by the power panic now,
      // this block's SD card length will not be counted twice as its command type has been replaced
      // by CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED.
      cmdqueue_pop_front();
   20cf0:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
    }
	host_keepalive();
   20cf4:	0e 94 2e 7f 	call	0xfe5c	; 0xfe5c <host_keepalive()>
  }
}
  //check heater every n milliseconds
  manage_heater();
   20cf8:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
  manage_inactivity(printingIsPaused());
   20cfc:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   20d00:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
//=============================functions         ============================
//===========================================================================

void checkHitEndstops()
{
 if(endstop_hit) {
   20d04:	80 91 0b 05 	lds	r24, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
   20d08:	81 11       	cpse	r24, r1
            SERIAL_ECHO(float(endstops_trigsteps[axis]) / cs.axis_steps_per_mm[axis]);
        }
    }
   SERIAL_ECHOLN("");
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
   endstop_hit = 0;
   20d0a:	10 92 0b 05 	sts	0x050B, r1	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
  checkHitEndstops();
  lcd_update(0);
   20d0e:	80 e0       	ldi	r24, 0x00	; 0
   20d10:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
#ifdef TMC2130
	tmc2130_check_overtemp();
   20d14:	0f 94 f3 2a 	call	0x255e6	; 0x255e6 <tmc2130_check_overtemp()>
	if (tmc2130_sg_crash)
   20d18:	80 91 0d 05 	lds	r24, 0x050D	; 0x80050d <tmc2130_sg_crash>
   20d1c:	88 23       	and	r24, r24
   20d1e:	79 f0       	breq	.+30     	; 0x20d3e <main+0x1654>
	{
		uint8_t crash = tmc2130_sg_crash;
		tmc2130_sg_crash = 0;
   20d20:	10 92 0d 05 	sts	0x050D, r1	; 0x80050d <tmc2130_sg_crash>
//		crashdet_stop_and_save_print();
		switch (crash)
   20d24:	82 30       	cpi	r24, 0x02	; 2
   20d26:	09 f4       	brne	.+2      	; 0x20d2a <main+0x1640>
   20d28:	53 c0       	rjmp	.+166    	; 0x20dd0 <main+0x16e6>
   20d2a:	83 30       	cpi	r24, 0x03	; 3
   20d2c:	09 f4       	brne	.+2      	; 0x20d30 <main+0x1646>
   20d2e:	54 c0       	rjmp	.+168    	; 0x20dd8 <main+0x16ee>
   20d30:	81 30       	cpi	r24, 0x01	; 1
   20d32:	29 f4       	brne	.+10     	; 0x20d3e <main+0x1654>
		{
		case 1: enquecommand_P((PSTR("CRASH_DETECTEDX"))); break;
   20d34:	61 e0       	ldi	r22, 0x01	; 1
   20d36:	8c eb       	ldi	r24, 0xBC	; 188
   20d38:	9d e8       	ldi	r25, 0x8D	; 141
		case 2: enquecommand_P((PSTR("CRASH_DETECTEDY"))); break;
		case 3: enquecommand_P((PSTR("CRASH_DETECTEDXY"))); break;
   20d3a:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
void MMU2::mmu_loop() {
    // We only leave this method if the current command was successfully completed - that's the Marlin's way of blocking operation
    // Atomic compare_exchange would have been the most appropriate solution here, but this gets called only in Marlin's task,
    // so thread safety should be kept
    static bool avoidRecursion = false;
    if (avoidRecursion) {
   20d3e:	80 91 0c 05 	lds	r24, 0x050C	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
   20d42:	81 11       	cpse	r24, r1
   20d44:	07 c0       	rjmp	.+14     	; 0x20d54 <main+0x166a>
        return;
    }
    avoidRecursion = true;
   20d46:	c0 92 0c 05 	sts	0x050C, r12	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
    mmu_loop_inner(true);
   20d4a:	81 e0       	ldi	r24, 0x01	; 1
   20d4c:	0f 94 41 a7 	call	0x34e82	; 0x34e82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]>
    avoidRecursion = false;
   20d50:	10 92 0c 05 	sts	0x050C, r1	; 0x80050c <_ZZN4MMU24MMU28mmu_loopEvE14avoidRecursion.lto_priv.542>
   20d54:	01 15       	cp	r16, r1
   20d56:	11 05       	cpc	r17, r1
   20d58:	09 f4       	brne	.+2      	; 0x20d5c <main+0x1672>
   20d5a:	38 cf       	rjmp	.-400    	; 0x20bcc <main+0x14e2>
   20d5c:	0e 94 00 00 	call	0	; 0x0 <__vectors>
   20d60:	35 cf       	rjmp	.-406    	; 0x20bcc <main+0x14e2>
        // Currently Stopped (possibly due to an error) and not accepting new serial commands.
        // Signal to the host that we're currently busy waiting for supervision.
        KEEPALIVE_STATE(PAUSED_FOR_USER);
    } else {
        // Printer is available for processing, reset state
        KEEPALIVE_STATE(NOT_BUSY);
   20d62:	c0 92 be 02 	sts	0x02BE, r12	; 0x8002be <busy_state>
   20d66:	3b cf       	rjmp	.-394    	; 0x20bde <main+0x14f4>
    }

	if (printingIsPaused() && saved_printing_type == PowerPanic::PRINT_TYPE_HOST) { //keep believing that usb is being printed. Prevents accessing dangerous menus while pausing.
		usb_timer.start();
	}
	else if (usb_timer.expired(USB_TIMER_TIMEOUT)) { //just need to check if it expired. Nothing else is needed to be done.
   20d68:	60 e1       	ldi	r22, 0x10	; 16
   20d6a:	77 e2       	ldi	r23, 0x27	; 39
   20d6c:	8e e0       	ldi	r24, 0x0E	; 14
   20d6e:	95 e0       	ldi	r25, 0x05	; 5
   20d70:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   20d74:	88 23       	and	r24, r24
   20d76:	09 f4       	brne	.+2      	; 0x20d7a <main+0x1690>
   20d78:	40 cf       	rjmp	.-384    	; 0x20bfa <main+0x1510>
   20d7a:	b0 92 b8 0d 	sts	0x0DB8, r11	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   20d7e:	3d cf       	rjmp	.-390    	; 0x20bfa <main+0x1510>
      return;
  }
  autostart_stilltocheck = false;
  if(!mounted)
  {
    mount();
   20d80:	81 e0       	ldi	r24, 0x01	; 1
   20d82:	0f 94 04 82 	call	0x30408	; 0x30408 <CardReader::mount(bool) [clone .constprop.216]>
    if(!mounted) //fail
   20d86:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   20d8a:	81 11       	cpse	r24, r1
   20d8c:	4b cf       	rjmp	.-362    	; 0x20c24 <main+0x153a>
   20d8e:	4c cf       	rjmp	.-360    	; 0x20c28 <main+0x153e>
        if(strstr_P(CMDBUFFER_CURRENT_STRING, PSTR("M29")) == NULL) {
          card.write_command(CMDBUFFER_CURRENT_STRING);
          if(card.logging)
            process_commands();
          else
           SERIAL_PROTOCOLLNRPGM(MSG_OK);
   20d90:	87 e1       	ldi	r24, 0x17	; 23
   20d92:	9d e6       	ldi	r25, 0x6D	; 109
        } else {
          card.closefile();
          SERIAL_PROTOCOLLNRPGM(MSG_FILE_SAVED);
   20d94:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   20d98:	90 cf       	rjmp	.-224    	; 0x20cba <main+0x15d0>
    lastnr++;
}

void CardReader::closefile(bool store_location)
{
  file.sync();
   20d9a:	80 e2       	ldi	r24, 0x20	; 32
   20d9c:	97 e1       	ldi	r25, 0x17	; 23
   20d9e:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
  file.close();
   20da2:	80 e2       	ldi	r24, 0x20	; 32
   20da4:	97 e1       	ldi	r25, 0x17	; 23
   20da6:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
  saving = false;
   20daa:	10 92 8e 14 	sts	0x148E, r1	; 0x80148e <card>
  logging = false;
   20dae:	10 92 8f 14 	sts	0x148F, r1	; 0x80148f <card+0x1>
   20db2:	85 e0       	ldi	r24, 0x05	; 5
   20db4:	9d e6       	ldi	r25, 0x6D	; 109
   20db6:	ee cf       	rjmp	.-36     	; 0x20d94 <main+0x16aa>
          // and pass it to the planner queue.
          planner_add_sd_length(sdlen.value);
          sei();
        }
	  }
	  else if((*ptr == CMDBUFFER_CURRENT_TYPE_USB_WITH_LINENR) && !IS_SD_PRINTING){
   20db8:	86 30       	cpi	r24, 0x06	; 6
   20dba:	09 f0       	breq	.+2      	; 0x20dbe <main+0x16d4>
   20dbc:	99 cf       	rjmp	.-206    	; 0x20cf0 <main+0x1606>
   20dbe:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   20dc2:	81 11       	cpse	r24, r1
   20dc4:	95 cf       	rjmp	.-214    	; 0x20cf0 <main+0x1606>
		  cli();
   20dc6:	f8 94       	cli
          *ptr ++ = CMDBUFFER_CURRENT_TYPE_TO_BE_REMOVED;
   20dc8:	d0 82       	st	Z, r13
          // and one for each command to previous block in the planner queue.
          planner_add_sd_length(1);
   20dca:	81 e0       	ldi	r24, 0x01	; 1
   20dcc:	90 e0       	ldi	r25, 0x00	; 0
   20dce:	8d cf       	rjmp	.-230    	; 0x20cea <main+0x1600>
		tmc2130_sg_crash = 0;
//		crashdet_stop_and_save_print();
		switch (crash)
		{
		case 1: enquecommand_P((PSTR("CRASH_DETECTEDX"))); break;
		case 2: enquecommand_P((PSTR("CRASH_DETECTEDY"))); break;
   20dd0:	61 e0       	ldi	r22, 0x01	; 1
   20dd2:	8c ea       	ldi	r24, 0xAC	; 172
   20dd4:	9d e8       	ldi	r25, 0x8D	; 141
   20dd6:	b1 cf       	rjmp	.-158    	; 0x20d3a <main+0x1650>
		case 3: enquecommand_P((PSTR("CRASH_DETECTEDXY"))); break;
   20dd8:	61 e0       	ldi	r22, 0x01	; 1
   20dda:	8b e9       	ldi	r24, 0x9B	; 155
   20ddc:	9d e8       	ldi	r25, 0x8D	; 141
   20dde:	ad cf       	rjmp	.-166    	; 0x20d3a <main+0x1650>
{
	uint8_t version_changed = 0;
	uint16_t printer_type = eeprom_init_default_word((uint16_t*)EEPROM_PRINTER_TYPE, PRINTER_TYPE);
	uint16_t motherboard = eeprom_init_default_word((uint16_t*)EEPROM_BOARD_TYPE, MOTHERBOARD);

	if (printer_type != PRINTER_TYPE) version_changed |= 0b10;
   20de0:	02 e0       	ldi	r16, 0x02	; 2
	if (motherboard != MOTHERBOARD) version_changed |= 0b01;
   20de2:	86 33       	cpi	r24, 0x36	; 54
   20de4:	91 40       	sbci	r25, 0x01	; 1
   20de6:	09 f0       	breq	.+2      	; 0x20dea <main+0x1700>
   20de8:	03 e0       	ldi	r16, 0x03	; 3
	uint8_t hw_changed = check_printer_version();
	if (!(hw_changed & 0b10)) { //if printer version wasn't changed, check for eeprom version and retrieve settings from eeprom in case that version wasn't changed
		previous_settings_retrieved = Config_RetrieveSettings();
	}
	else { //printer version was changed so use default settings
		Config_ResetDefault();
   20dea:	0e 94 13 82 	call	0x10426	; 0x10426 <Config_ResetDefault()>
	SERIAL_ECHORPGM(_n("  PlannerBufferBytes: "));////MSG_PLANNER_BUFFER_BYTES
	SERIAL_ECHOLN((int)sizeof(block_t)*BLOCK_BUFFER_SIZE);
	//lcd_update_enable(false); // why do we need this?? - andre
	// loads data from EEPROM if available else uses defaults (and resets step acceleration rate)

	bool previous_settings_retrieved = false;
   20dee:	f1 2c       	mov	r15, r1
void SdFatUtil::set_stack_guard()
{
	uint32_t *stack_guard;

	stack_guard = (uint32_t*)(&__bss_end + STACK_GUARD_MARGIN);
    *stack_guard = STACK_GUARD_TEST_VALUE;
   20df0:	82 ea       	ldi	r24, 0xA2	; 162
   20df2:	92 ea       	ldi	r25, 0xA2	; 162
   20df4:	a0 e0       	ldi	r26, 0x00	; 0
   20df6:	b0 e0       	ldi	r27, 0x00	; 0
   20df8:	80 93 40 18 	sts	0x1840, r24	; 0x801840 <__bss_end+0x20>
   20dfc:	90 93 41 18 	sts	0x1841, r25	; 0x801841 <__bss_end+0x21>
   20e00:	a0 93 42 18 	sts	0x1842, r26	; 0x801842 <__bss_end+0x22>
   20e04:	b0 93 43 18 	sts	0x1843, r27	; 0x801843 <__bss_end+0x23>
  // Finish init of mult extruder arrays
  for(int e = 0; e < EXTRUDERS; e++) {
    // populate with the first value
    maxttemp[e] = maxttemp[0];
#ifdef PIDTEMP
    iState_sum_min[e] = 0.0;
   20e08:	10 92 b3 04 	sts	0x04B3, r1	; 0x8004b3 <_ZL14iState_sum_min.lto_priv.470>
   20e0c:	10 92 b4 04 	sts	0x04B4, r1	; 0x8004b4 <_ZL14iState_sum_min.lto_priv.470+0x1>
   20e10:	10 92 b5 04 	sts	0x04B5, r1	; 0x8004b5 <_ZL14iState_sum_min.lto_priv.470+0x2>
   20e14:	10 92 b6 04 	sts	0x04B6, r1	; 0x8004b6 <_ZL14iState_sum_min.lto_priv.470+0x3>
    iState_sum_max[e] = PID_INTEGRAL_DRIVE_MAX / cs.Ki;
   20e18:	20 91 2a 0e 	lds	r18, 0x0E2A	; 0x800e2a <cs+0x6c>
   20e1c:	30 91 2b 0e 	lds	r19, 0x0E2B	; 0x800e2b <cs+0x6d>
   20e20:	40 91 2c 0e 	lds	r20, 0x0E2C	; 0x800e2c <cs+0x6e>
   20e24:	50 91 2d 0e 	lds	r21, 0x0E2D	; 0x800e2d <cs+0x6f>
   20e28:	60 e0       	ldi	r22, 0x00	; 0
   20e2a:	70 e0       	ldi	r23, 0x00	; 0
   20e2c:	8f e7       	ldi	r24, 0x7F	; 127
   20e2e:	93 e4       	ldi	r25, 0x43	; 67
   20e30:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   20e34:	60 93 af 04 	sts	0x04AF, r22	; 0x8004af <_ZL14iState_sum_max.lto_priv.471>
   20e38:	70 93 b0 04 	sts	0x04B0, r23	; 0x8004b0 <_ZL14iState_sum_max.lto_priv.471+0x1>
   20e3c:	80 93 b1 04 	sts	0x04B1, r24	; 0x8004b1 <_ZL14iState_sum_max.lto_priv.471+0x2>
   20e40:	90 93 b2 04 	sts	0x04B2, r25	; 0x8004b2 <_ZL14iState_sum_max.lto_priv.471+0x3>
#endif //PIDTEMP
#ifdef PIDTEMPBED
    temp_iState_min_bed = 0.0;
   20e44:	10 92 ab 04 	sts	0x04AB, r1	; 0x8004ab <_ZL19temp_iState_min_bed.lto_priv.468>
   20e48:	10 92 ac 04 	sts	0x04AC, r1	; 0x8004ac <_ZL19temp_iState_min_bed.lto_priv.468+0x1>
   20e4c:	10 92 ad 04 	sts	0x04AD, r1	; 0x8004ad <_ZL19temp_iState_min_bed.lto_priv.468+0x2>
   20e50:	10 92 ae 04 	sts	0x04AE, r1	; 0x8004ae <_ZL19temp_iState_min_bed.lto_priv.468+0x3>
    temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / cs.bedKi;
   20e54:	20 91 36 0e 	lds	r18, 0x0E36	; 0x800e36 <cs+0x78>
   20e58:	30 91 37 0e 	lds	r19, 0x0E37	; 0x800e37 <cs+0x79>
   20e5c:	40 91 38 0e 	lds	r20, 0x0E38	; 0x800e38 <cs+0x7a>
   20e60:	50 91 39 0e 	lds	r21, 0x0E39	; 0x800e39 <cs+0x7b>
   20e64:	60 e0       	ldi	r22, 0x00	; 0
   20e66:	70 e0       	ldi	r23, 0x00	; 0
   20e68:	8f e7       	ldi	r24, 0x7F	; 127
   20e6a:	93 e4       	ldi	r25, 0x43	; 67
   20e6c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   20e70:	60 93 a7 04 	sts	0x04A7, r22	; 0x8004a7 <_ZL19temp_iState_max_bed.lto_priv.469>
   20e74:	70 93 a8 04 	sts	0x04A8, r23	; 0x8004a8 <_ZL19temp_iState_max_bed.lto_priv.469+0x1>
   20e78:	80 93 a9 04 	sts	0x04A9, r24	; 0x8004a9 <_ZL19temp_iState_max_bed.lto_priv.469+0x2>
   20e7c:	90 93 aa 04 	sts	0x04AA, r25	; 0x8004aa <_ZL19temp_iState_max_bed.lto_priv.469+0x3>
#endif //PIDTEMPBED
  }

  #if defined(HEATER_0_PIN) && (HEATER_0_PIN > -1)
    SET_OUTPUT(HEATER_0_PIN);
   20e80:	6d 9a       	sbi	0x0d, 5	; 13
  #endif
  #if defined(HEATER_BED_PIN) && (HEATER_BED_PIN > -1)
    SET_OUTPUT(HEATER_BED_PIN);
   20e82:	9d 9a       	sbi	0x13, 5	; 19
  #endif
  #if defined(FAN_PIN) && (FAN_PIN > -1)
    SET_OUTPUT(FAN_PIN);
   20e84:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   20e88:	88 60       	ori	r24, 0x08	; 8
   20e8a:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
    #ifdef FAST_PWM_FAN
    setPwmFrequency(FAN_PIN, 1); // No prescaling. Pwm frequency = F_CPU/256/8
    #endif
    #ifdef FAN_SOFT_PWM
    soft_pwm_fan = fanSpeedSoftPwm / (1 << (8 - FAN_SOFT_PWM_BITS));
   20e8e:	80 91 a6 04 	lds	r24, 0x04A6	; 0x8004a6 <fanSpeedSoftPwm>
   20e92:	90 e0       	ldi	r25, 0x00	; 0
   20e94:	b4 e0       	ldi	r27, 0x04	; 4
   20e96:	95 95       	asr	r25
   20e98:	87 95       	ror	r24
   20e9a:	ba 95       	dec	r27
   20e9c:	e1 f7       	brne	.-8      	; 0x20e96 <main+0x17ac>
   20e9e:	80 93 a5 04 	sts	0x04A5, r24	; 0x8004a5 <_ZL12soft_pwm_fan.lto_priv.462>
	pinMode(MAX6675_SS, OUTPUT);
	digitalWrite(MAX6675_SS,1);
  #endif

#ifdef HEATER_0_MINTEMP
  minttemp[0] = HEATER_0_MINTEMP;
   20ea2:	8a e0       	ldi	r24, 0x0A	; 10
   20ea4:	90 e0       	ldi	r25, 0x00	; 0
   20ea6:	90 93 a4 04 	sts	0x04A4, r25	; 0x8004a4 <_ZL8minttemp.lto_priv.463+0x1>
   20eaa:	80 93 a3 04 	sts	0x04A3, r24	; 0x8004a3 <_ZL8minttemp.lto_priv.463>
  while(analog2temp(minttemp_raw[0], 0) < HEATER_0_MINTEMP) {
   20eae:	80 91 54 02 	lds	r24, 0x0254	; 0x800254 <_ZL12minttemp_raw.lto_priv.474>
   20eb2:	90 91 55 02 	lds	r25, 0x0255	; 0x800255 <_ZL12minttemp_raw.lto_priv.474+0x1>
   20eb6:	0f 94 5b a1 	call	0x342b6	; 0x342b6 <analog2temp(int, unsigned char) [clone .constprop.70]>
   20eba:	20 e0       	ldi	r18, 0x00	; 0
   20ebc:	30 e0       	ldi	r19, 0x00	; 0
   20ebe:	40 e2       	ldi	r20, 0x20	; 32
   20ec0:	51 e4       	ldi	r21, 0x41	; 65
   20ec2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   20ec6:	87 fd       	sbrc	r24, 7
   20ec8:	02 c0       	rjmp	.+4      	; 0x20ece <main+0x17e4>
   20eca:	0c 94 0f ff 	jmp	0x1fe1e	; 0x1fe1e <main+0x734>
#if HEATER_0_RAW_LO_TEMP < HEATER_0_RAW_HI_TEMP
    minttemp_raw[0] += OVERSAMPLENR;
#else
    minttemp_raw[0] -= OVERSAMPLENR;
   20ece:	80 91 54 02 	lds	r24, 0x0254	; 0x800254 <_ZL12minttemp_raw.lto_priv.474>
   20ed2:	90 91 55 02 	lds	r25, 0x0255	; 0x800255 <_ZL12minttemp_raw.lto_priv.474+0x1>
   20ed6:	40 97       	sbiw	r24, 0x10	; 16
   20ed8:	90 93 55 02 	sts	0x0255, r25	; 0x800255 <_ZL12minttemp_raw.lto_priv.474+0x1>
   20edc:	80 93 54 02 	sts	0x0254, r24	; 0x800254 <_ZL12minttemp_raw.lto_priv.474>
   20ee0:	e6 cf       	rjmp	.-52     	; 0x20eae <main+0x17c4>

00020ee2 <lcd_commands() [clone .part.41]>:
	}
}

void lcd_print_stop_finish();

void lcd_commands()
   20ee2:	2f 92       	push	r2
   20ee4:	3f 92       	push	r3
   20ee6:	4f 92       	push	r4
   20ee8:	5f 92       	push	r5
   20eea:	6f 92       	push	r6
   20eec:	7f 92       	push	r7
   20eee:	8f 92       	push	r8
   20ef0:	9f 92       	push	r9
   20ef2:	af 92       	push	r10
   20ef4:	bf 92       	push	r11
   20ef6:	cf 92       	push	r12
   20ef8:	df 92       	push	r13
   20efa:	ef 92       	push	r14
   20efc:	ff 92       	push	r15
   20efe:	0f 93       	push	r16
   20f00:	1f 93       	push	r17
   20f02:	cf 93       	push	r28
   20f04:	df 93       	push	r29
    if (planner_aborted) {
        // we are still within an aborted command. do not process any LCD command until we return
        return;
    }

    if (lcd_commands_type == LcdCommands::StopPrint)
   20f06:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   20f0a:	81 30       	cpi	r24, 0x01	; 1
   20f0c:	09 f0       	breq	.+2      	; 0x20f10 <lcd_commands() [clone .part.41]+0x2e>
   20f0e:	61 c0       	rjmp	.+194    	; 0x20fd2 <lcd_commands() [clone .part.41]+0xf0>
   20f10:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   20f14:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
    {
        if (!blocks_queued() && !homing_flag)
   20f18:	98 13       	cpse	r25, r24
   20f1a:	5b c0       	rjmp	.+182    	; 0x20fd2 <lcd_commands() [clone .part.41]+0xf0>
   20f1c:	80 91 a7 0d 	lds	r24, 0x0DA7	; 0x800da7 <homing_flag>
   20f20:	81 11       	cpse	r24, r1
   20f22:	57 c0       	rjmp	.+174    	; 0x20fd2 <lcd_commands() [clone .part.41]+0xf0>
        {
            custom_message_type = CustomMsg::Status;
   20f24:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
            lcd_setstatuspgm(_T(MSG_PRINT_ABORTED));
   20f28:	81 ed       	ldi	r24, 0xD1	; 209
   20f2a:	99 e4       	ldi	r25, 0x49	; 73
   20f2c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   20f30:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
            lcd_commands_type = LcdCommands::Idle;
   20f34:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   20f38:	82 e0       	ldi	r24, 0x02	; 2
   20f3a:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
            SetPrinterState(PrinterState::Idle);
            lcd_commands_step = 0;
   20f3e:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
#endif //COMMUNITY_PREVENT_OOZE

// continue stopping the print from the main loop after lcd_print_stop() is called
void lcd_print_stop_finish()
{
    print_job_timer.stop();
   20f42:	0f 94 bd 43 	call	0x2877a	; 0x2877a <Stopwatch::stop()>
    save_statistics();
   20f46:	0e 94 a6 65 	call	0xcb4c	; 0xcb4c <save_statistics()>

    // lift Z
    raise_z(10);
   20f4a:	60 e0       	ldi	r22, 0x00	; 0
   20f4c:	70 e0       	ldi	r23, 0x00	; 0
   20f4e:	80 e2       	ldi	r24, 0x20	; 32
   20f50:	91 e4       	ldi	r25, 0x41	; 65
   20f52:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>

    // if axis are homed, move to parking position.
    if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS]) {
   20f56:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
   20f5a:	88 23       	and	r24, r24
   20f5c:	21 f1       	breq	.+72     	; 0x20fa6 <lcd_commands() [clone .part.41]+0xc4>
   20f5e:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
   20f62:	88 23       	and	r24, r24
   20f64:	01 f1       	breq	.+64     	; 0x20fa6 <lcd_commands() [clone .part.41]+0xc4>
        current_position[X_AXIS] = X_CANCEL_POS;
   20f66:	80 e0       	ldi	r24, 0x00	; 0
   20f68:	90 e0       	ldi	r25, 0x00	; 0
   20f6a:	a8 e4       	ldi	r26, 0x48	; 72
   20f6c:	b2 e4       	ldi	r27, 0x42	; 66
   20f6e:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   20f72:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   20f76:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   20f7a:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = Y_CANCEL_POS;
   20f7e:	80 e0       	ldi	r24, 0x00	; 0
   20f80:	90 e0       	ldi	r25, 0x00	; 0
   20f82:	ae e3       	ldi	r26, 0x3E	; 62
   20f84:	b3 e4       	ldi	r27, 0x43	; 67
   20f86:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   20f8a:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   20f8e:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   20f92:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
        plan_buffer_line_curposXYZE(manual_feedrate[0] / 60);
   20f96:	60 e0       	ldi	r22, 0x00	; 0
   20f98:	70 e0       	ldi	r23, 0x00	; 0
   20f9a:	84 e3       	ldi	r24, 0x34	; 52
   20f9c:	92 e4       	ldi	r25, 0x42	; 66
   20f9e:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   20fa2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    temp_error_state.assert = true;
}

bool get_temp_error()
{
    return temp_error_state.v;
   20fa6:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    // Retract filament to prevent oozing
    retract_for_ooze_prevention();
    #endif //COMMUNITY_PREVENT_OOZE

    // did we come here from a thermal error?
    if(get_temp_error()) {
   20faa:	88 23       	and	r24, r24
   20fac:	09 f4       	brne	.+2      	; 0x20fb0 <lcd_commands() [clone .part.41]+0xce>
   20fae:	c8 c0       	rjmp	.+400    	; 0x21140 <lcd_commands() [clone .part.41]+0x25e>
        // time to stop the error beep
        WRITE(BEEPER, LOW);
   20fb0:	9f b7       	in	r25, 0x3f	; 63
   20fb2:	f8 94       	cli
   20fb4:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   20fb8:	8b 7f       	andi	r24, 0xFB	; 251
   20fba:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   20fbe:	9f bf       	out	0x3f, r25	; 63
                MMU2::mmu2.unload(); // M702
            }
        }
    }

    lcd_cooldown(); //turns off heaters and fan; goes to status screen.
   20fc0:	0f 94 39 30 	call	0x26072	; 0x26072 <lcd_cooldown() [clone .lto_priv.435]>

    finishAndDisableSteppers(); //M84
   20fc4:	0e 94 ef 81 	call	0x103de	; 0x103de <finishAndDisableSteppers()>
    axis_relative_modes = E_AXIS_MASK; //XYZ absolute, E relative
   20fc8:	88 e0       	ldi	r24, 0x08	; 8
   20fca:	80 93 e5 03 	sts	0x03E5, r24	; 0x8003e5 <axis_relative_modes>
    did_pause_print = false; // Clear pause state in case the print was aborted while paused
   20fce:	10 92 e4 03 	sts	0x03E4, r1	; 0x8003e4 <did_pause_print>
            lcd_commands_step = 0;
            lcd_print_stop_finish();
        }
    }

	if (lcd_commands_type == LcdCommands::LongPause)
   20fd2:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   20fd6:	82 30       	cpi	r24, 0x02	; 2
   20fd8:	09 f0       	breq	.+2      	; 0x20fdc <lcd_commands() [clone .part.41]+0xfa>
   20fda:	6a c0       	rjmp	.+212    	; 0x210b0 <lcd_commands() [clone .part.41]+0x1ce>
   20fdc:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   20fe0:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
	{
		if (!blocks_queued() && !homing_flag)
   20fe4:	98 13       	cpse	r25, r24
   20fe6:	64 c0       	rjmp	.+200    	; 0x210b0 <lcd_commands() [clone .part.41]+0x1ce>
   20fe8:	80 91 a7 0d 	lds	r24, 0x0DA7	; 0x800da7 <homing_flag>
   20fec:	81 11       	cpse	r24, r1
   20fee:	60 c0       	rjmp	.+192    	; 0x210b0 <lcd_commands() [clone .part.41]+0x1ce>
		{
			if (custom_message_type != CustomMsg::M117)
   20ff0:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   20ff4:	87 30       	cpi	r24, 0x07	; 7
   20ff6:	41 f0       	breq	.+16     	; 0x21008 <lcd_commands() [clone .part.41]+0x126>
			{
				custom_message_type = CustomMsg::Status;
   20ff8:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
				lcd_setstatuspgm(_T(MSG_PRINT_PAUSED));
   20ffc:	82 ec       	ldi	r24, 0xC2	; 194
   20ffe:	99 e4       	ldi	r25, 0x49	; 73
   21000:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21004:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
			}
			lcd_commands_type = LcdCommands::Idle;
   21008:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   2100c:	82 e0       	ldi	r24, 0x02	; 2
   2100e:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
			SetPrinterState(PrinterState::Idle);
			lcd_commands_step = 0;
   21012:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
}
#endif //PINDA_THERMISTOR

void long_pause() //long pause print
{
	st_synchronize();
   21016:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    // Stop heaters
    heating_status = HeatingStatus::NO_HEATING;
   2101a:	10 92 e3 03 	sts	0x03E3, r1	; 0x8003e3 <heating_status>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   2101e:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   21022:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
    setTargetHotend(0);

    // Lift z
    raise_z(pause_position[Z_AXIS]);
   21026:	60 91 47 02 	lds	r22, 0x0247	; 0x800247 <_ZL14pause_position.lto_priv.483+0x8>
   2102a:	70 91 48 02 	lds	r23, 0x0248	; 0x800248 <_ZL14pause_position.lto_priv.483+0x9>
   2102e:	80 91 49 02 	lds	r24, 0x0249	; 0x800249 <_ZL14pause_position.lto_priv.483+0xa>
   21032:	90 91 4a 02 	lds	r25, 0x024A	; 0x80024a <_ZL14pause_position.lto_priv.483+0xb>
   21036:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>

    // Move XY to side
    if (axis_known_position[X_AXIS] && axis_known_position[Y_AXIS]) {
   2103a:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
   2103e:	88 23       	and	r24, r24
   21040:	51 f1       	breq	.+84     	; 0x21096 <lcd_commands() [clone .part.41]+0x1b4>
   21042:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
   21046:	88 23       	and	r24, r24
   21048:	31 f1       	breq	.+76     	; 0x21096 <lcd_commands() [clone .part.41]+0x1b4>
        current_position[X_AXIS] = pause_position[X_AXIS];
   2104a:	80 91 3f 02 	lds	r24, 0x023F	; 0x80023f <_ZL14pause_position.lto_priv.483>
   2104e:	90 91 40 02 	lds	r25, 0x0240	; 0x800240 <_ZL14pause_position.lto_priv.483+0x1>
   21052:	a0 91 41 02 	lds	r26, 0x0241	; 0x800241 <_ZL14pause_position.lto_priv.483+0x2>
   21056:	b0 91 42 02 	lds	r27, 0x0242	; 0x800242 <_ZL14pause_position.lto_priv.483+0x3>
   2105a:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   2105e:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   21062:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   21066:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = pause_position[Y_AXIS];
   2106a:	80 91 43 02 	lds	r24, 0x0243	; 0x800243 <_ZL14pause_position.lto_priv.483+0x4>
   2106e:	90 91 44 02 	lds	r25, 0x0244	; 0x800244 <_ZL14pause_position.lto_priv.483+0x5>
   21072:	a0 91 45 02 	lds	r26, 0x0245	; 0x800245 <_ZL14pause_position.lto_priv.483+0x6>
   21076:	b0 91 46 02 	lds	r27, 0x0246	; 0x800246 <_ZL14pause_position.lto_priv.483+0x7>
   2107a:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   2107e:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   21082:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   21086:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
        plan_buffer_line_curposXYZE(50);
   2108a:	60 e0       	ldi	r22, 0x00	; 0
   2108c:	70 e0       	ldi	r23, 0x00	; 0
   2108e:	88 e4       	ldi	r24, 0x48	; 72
   21090:	92 e4       	ldi	r25, 0x42	; 66
   21092:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
   21096:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    }

    // did we come here from a thermal error?
    if(get_temp_error()) {
   2109a:	88 23       	and	r24, r24
   2109c:	09 f4       	brne	.+2      	; 0x210a0 <lcd_commands() [clone .part.41]+0x1be>
   2109e:	7a c0       	rjmp	.+244    	; 0x21194 <lcd_commands() [clone .part.41]+0x2b2>
        // time to stop the error beep
        WRITE(BEEPER, LOW);
   210a0:	9f b7       	in	r25, 0x3f	; 63
   210a2:	f8 94       	cli
   210a4:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   210a8:	8b 7f       	andi	r24, 0xFB	; 251
   210aa:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   210ae:	9f bf       	out	0x3f, r25	; 63
			long_pause();
		}
	}

	if (lcd_commands_type == LcdCommands::Layer1Cal)
   210b0:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   210b4:	84 30       	cpi	r24, 0x04	; 4
   210b6:	09 f0       	breq	.+2      	; 0x210ba <lcd_commands() [clone .part.41]+0x1d8>
   210b8:	a7 c0       	rjmp	.+334    	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
	{
		const uint16_t nozzle_dia = eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM);
   210ba:	85 ea       	ldi	r24, 0xA5	; 165
   210bc:	9d e0       	ldi	r25, 0x0D	; 13
   210be:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   210c2:	30 91 a5 0d 	lds	r19, 0x0DA5	; 0x800da5 <block_buffer_head>
   210c6:	20 91 a6 0d 	lds	r18, 0x0DA6	; 0x800da6 <block_buffer_tail>
		const float extrusion_width = (nozzle_dia + 20)/1000.0f;
		const float layer_height = 0.2f;

        if (!blocks_queued() && cmd_buffer_empty() && !saved_printing)
   210ca:	32 13       	cpse	r19, r18
   210cc:	74 c1       	rjmp	.+744    	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
   210ce:	20 91 a3 10 	lds	r18, 0x10A3	; 0x8010a3 <buflen>
   210d2:	30 91 a4 10 	lds	r19, 0x10A4	; 0x8010a4 <buflen+0x1>
   210d6:	23 2b       	or	r18, r19
   210d8:	09 f0       	breq	.+2      	; 0x210dc <lcd_commands() [clone .part.41]+0x1fa>
   210da:	6d c1       	rjmp	.+730    	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
   210dc:	c0 91 a9 0d 	lds	r28, 0x0DA9	; 0x800da9 <saved_printing>
   210e0:	c1 11       	cpse	r28, r1
   210e2:	69 c1       	rjmp	.+722    	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
        {
            if (lcd_commands_step == 0)
   210e4:	20 91 fb 03 	lds	r18, 0x03FB	; 0x8003fb <lcd_commands_step>
   210e8:	21 11       	cpse	r18, r1
   210ea:	57 c0       	rjmp	.+174    	; 0x2119a <lcd_commands() [clone .part.41]+0x2b8>
                lcd_commands_step = 12;
   210ec:	2c e0       	ldi	r18, 0x0C	; 12
            else
                lcd_commands_step--;
   210ee:	20 93 fb 03 	sts	0x03FB, r18	; 0x8003fb <lcd_commands_step>
	}

	if (lcd_commands_type == LcdCommands::Layer1Cal)
	{
		const uint16_t nozzle_dia = eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM);
		const float extrusion_width = (nozzle_dia + 20)/1000.0f;
   210f2:	44 96       	adiw	r24, 0x14	; 20
   210f4:	bc 01       	movw	r22, r24
   210f6:	90 e0       	ldi	r25, 0x00	; 0
   210f8:	80 e0       	ldi	r24, 0x00	; 0
   210fa:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   210fe:	20 e0       	ldi	r18, 0x00	; 0
   21100:	30 e0       	ldi	r19, 0x00	; 0
   21102:	4a e7       	ldi	r20, 0x7A	; 122
   21104:	54 e4       	ldi	r21, 0x44	; 68
   21106:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2110a:	4b 01       	movw	r8, r22
   2110c:	5c 01       	movw	r10, r24
            if (lcd_commands_step == 0)
                lcd_commands_step = 12;
            else
                lcd_commands_step--;

            switch(lcd_commands_step)
   2110e:	e0 91 fb 03 	lds	r30, 0x03FB	; 0x8003fb <lcd_commands_step>
   21112:	e1 50       	subi	r30, 0x01	; 1
   21114:	ec 30       	cpi	r30, 0x0C	; 12
   21116:	08 f0       	brcs	.+2      	; 0x2111a <lcd_commands() [clone .part.41]+0x238>
   21118:	77 c0       	rjmp	.+238    	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
   2111a:	f0 e0       	ldi	r31, 0x00	; 0
   2111c:	88 27       	eor	r24, r24
   2111e:	ec 56       	subi	r30, 0x6C	; 108
   21120:	f7 4f       	sbci	r31, 0xF7	; 247
   21122:	8e 4f       	sbci	r24, 0xFE	; 254
   21124:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   21128:	b4 3a       	cpi	r27, 0xA4	; 164
   2112a:	2e 3a       	cpi	r18, 0xAE	; 174
   2112c:	d6 39       	cpi	r29, 0x96	; 150
   2112e:	d6 39       	cpi	r29, 0x96	; 150
   21130:	d6 39       	cpi	r29, 0x96	; 150
   21132:	d6 39       	cpi	r29, 0x96	; 150
   21134:	8e 39       	cpi	r24, 0x9E	; 158
   21136:	02 39       	cpi	r16, 0x92	; 146
   21138:	da 38       	cpi	r29, 0x8A	; 138
   2113a:	06 3a       	cpi	r16, 0xA6	; 166
   2113c:	4c 39       	cpi	r20, 0x9C	; 156
   2113e:	be 38       	cpi	r27, 0x8E	; 142
    if(get_temp_error()) {
        // time to stop the error beep
        WRITE(BEEPER, LOW);
    } else {
        // Turn off the print fan
        fanSpeed = 0;
   21140:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>
{
#if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)
#ifdef EXTRUDER_ALTFAN_DETECT
    altfanStatus.altfanOverride = eeprom_read_byte((uint8_t*)EEPROM_ALTFAN_OVERRIDE);
#endif
    resetFanCheck();
   21144:	0e 94 68 74 	call	0xe8d0	; 0xe8d0 <resetFanCheck()>
    setExtruderAutoFanState(1);
   21148:	81 e0       	ldi	r24, 0x01	; 1
   2114a:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
        // restore the auto hotend state
        hotendDefaultAutoFanState();

        if (MMU2::mmu2.Enabled() && MMU2::mmu2.FindaDetectsFilament()
#ifdef FANCHECK
            && fan_check_error != EFCE_REPORTED
   2114e:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   21152:	81 30       	cpi	r24, 0x01	; 1
   21154:	09 f0       	breq	.+2      	; 0x21158 <lcd_commands() [clone .part.41]+0x276>
   21156:	34 cf       	rjmp	.-408    	; 0x20fc0 <lcd_commands() [clone .part.41]+0xde>
        fanSpeed = 0;

        // restore the auto hotend state
        hotendDefaultAutoFanState();

        if (MMU2::mmu2.Enabled() && MMU2::mmu2.FindaDetectsFilament()
   21158:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   2115c:	88 23       	and	r24, r24
   2115e:	09 f4       	brne	.+2      	; 0x21162 <lcd_commands() [clone .part.41]+0x280>
   21160:	2f cf       	rjmp	.-418    	; 0x20fc0 <lcd_commands() [clone .part.41]+0xde>
#ifdef FANCHECK
            && fan_check_error != EFCE_REPORTED
   21162:	80 91 e6 03 	lds	r24, 0x03E6	; 0x8003e6 <fan_check_error>
   21166:	82 30       	cpi	r24, 0x02	; 2
   21168:	09 f4       	brne	.+2      	; 0x2116c <lcd_commands() [clone .part.41]+0x28a>
   2116a:	2a cf       	rjmp	.-428    	; 0x20fc0 <lcd_commands() [clone .part.41]+0xde>
#endif //FANCHECK
        ) {
            // The print was aborted while when the nozzle was cold:
            //     1. in a paused state                      => a partial backup in RAM is always available
            //     2. after a recoverable thermal/fan error had paused the print => only extruder temperature is saved to RAM
            if (printingIsPaused())
   2116c:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   21170:	81 11       	cpse	r24, r1
            {
                // Restore temperature saved in ram after pausing print
                restore_extruder_temperature_from_ram();
   21172:	0e 94 50 64 	call	0xc8a0	; 0xc8a0 <restore_extruder_temperature_from_ram()>
            }

            // If the pause state was cleared previously or the target temperature is 0°C in the case
            // of an unconditional stop. In that scenario we do not want to unload.
            if (target_temperature[0] >= extrude_min_temp) {
   21176:	20 91 b6 0d 	lds	r18, 0x0DB6	; 0x800db6 <target_temperature>
   2117a:	30 91 b7 0d 	lds	r19, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2117e:	80 91 6b 02 	lds	r24, 0x026B	; 0x80026b <extrude_min_temp>
   21182:	90 91 6c 02 	lds	r25, 0x026C	; 0x80026c <extrude_min_temp+0x1>
   21186:	28 17       	cp	r18, r24
   21188:	39 07       	cpc	r19, r25
   2118a:	0c f4       	brge	.+2      	; 0x2118e <lcd_commands() [clone .part.41]+0x2ac>
   2118c:	19 cf       	rjmp	.-462    	; 0x20fc0 <lcd_commands() [clone .part.41]+0xde>
                MMU2::mmu2.unload(); // M702
   2118e:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
   21192:	16 cf       	rjmp	.-468    	; 0x20fc0 <lcd_commands() [clone .part.41]+0xde>
    } else {
        // Turn off the print fan
        fanSpeed = 0;
   21194:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>
   21198:	8b cf       	rjmp	.-234    	; 0x210b0 <lcd_commands() [clone .part.41]+0x1ce>
        if (!blocks_queued() && cmd_buffer_empty() && !saved_printing)
        {
            if (lcd_commands_step == 0)
                lcd_commands_step = 12;
            else
                lcd_commands_step--;
   2119a:	21 50       	subi	r18, 0x01	; 1
   2119c:	a8 cf       	rjmp	.-176    	; 0x210ee <lcd_commands() [clone .part.41]+0x20c>
        preheat_cmd_3,
        preheat_cmd_4,
        zero_extrusion
    };

    lay1cal_common_enqueue_loop(preheat_cmd, sizeof(preheat_cmd)/sizeof(preheat_cmd[0]));
   2119e:	65 e0       	ldi	r22, 0x05	; 5
   211a0:	85 e6       	ldi	r24, 0x65	; 101
   211a2:	9a e8       	ldi	r25, 0x8A	; 138
        MSG_M702,         // Unload filament (MMU only)
        cmd_cal_finish_8, // Turn off hotend heater
        MSG_M84           // Disable stepper motors
    };

    lay1cal_common_enqueue_loop(cmd_cal_finish, (sizeof(cmd_cal_finish)/sizeof(cmd_cal_finish[0])));
   211a4:	0e 94 26 88 	call	0x1104c	; 0x1104c <lay1cal_common_enqueue_loop(char const* const*, unsigned char) [clone .lto_priv.436]>
   211a8:	2f c0       	rjmp	.+94     	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
//! @param cmd_buffer character buffer needed to format gcodes
//! @param filament filament to use (applies for MMU only)
//! @returns true if extra purge distance is needed in case of MMU prints (after a toolchange), otherwise false
bool lay1cal_load_filament(uint8_t filament)
{
    if (MMU2::mmu2.Enabled())
   211aa:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   211ae:	81 30       	cpi	r24, 0x01	; 1
   211b0:	49 f5       	brne	.+82     	; 0x21204 <lcd_commands() [clone .part.41]+0x322>
            {
            case 12:
                lay1cal_wait_preheat();
                break;
            case 11:
                extraPurgeNeeded = lay1cal_load_filament(lay1cal_filament);
   211b2:	d0 91 fa 03 	lds	r29, 0x03FA	; 0x8003fa <lay1cal_filament>
    {
        enquecommand_P(MSG_M83);
   211b6:	61 e0       	ldi	r22, 0x01	; 1
   211b8:	8c e3       	ldi	r24, 0x3C	; 60
   211ba:	9b e6       	ldi	r25, 0x6B	; 107
   211bc:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        enquecommand_P(PSTR("G1Y-3F1000"));
   211c0:	61 e0       	ldi	r22, 0x01	; 1
   211c2:	8a e5       	ldi	r24, 0x5A	; 90
   211c4:	9a e8       	ldi	r25, 0x8A	; 138
   211c6:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        enquecommand_P(PSTR("G1Z0.4"));
   211ca:	61 e0       	ldi	r22, 0x01	; 1
   211cc:	83 e5       	ldi	r24, 0x53	; 83
   211ce:	9a e8       	ldi	r25, 0x8A	; 138
   211d0:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>

        uint8_t currentTool = MMU2::mmu2.get_current_tool();
   211d4:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
        if(currentTool == filament ){
   211d8:	d8 17       	cp	r29, r24
   211da:	a1 f0       	breq	.+40     	; 0x21204 <lcd_commands() [clone .part.41]+0x322>
            // already have the correct tool loaded - do nothing
            return false;
        } else if( currentTool != (uint8_t)MMU2::FILAMENT_UNKNOWN){
   211dc:	8f 3f       	cpi	r24, 0xFF	; 255
   211de:	29 f0       	breq	.+10     	; 0x211ea <lcd_commands() [clone .part.41]+0x308>
            // some other slot is loaded, perform an unload first
            enquecommand_P(MSG_M702);
   211e0:	61 e0       	ldi	r22, 0x01	; 1
   211e2:	87 e3       	ldi	r24, 0x37	; 55
   211e4:	9b e6       	ldi	r25, 0x6B	; 107
   211e6:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        }
        // perform a toolchange
        enquecommandf_P(PSTR("T%d"), filament);
   211ea:	1f 92       	push	r1
   211ec:	df 93       	push	r29
   211ee:	8f e4       	ldi	r24, 0x4F	; 79
   211f0:	9a e8       	ldi	r25, 0x8A	; 138
   211f2:	9f 93       	push	r25
   211f4:	8f 93       	push	r24
   211f6:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   211fa:	0f 90       	pop	r0
   211fc:	0f 90       	pop	r0
   211fe:	0f 90       	pop	r0
   21200:	0f 90       	pop	r0
        return true;
   21202:	c1 e0       	ldi	r28, 0x01	; 1
   21204:	c0 93 f9 03 	sts	0x03F9, r28	; 0x8003f9 <extraPurgeNeeded>
                break;
            }
        }
    }

	if (lcd_commands_type == LcdCommands::PidExtruder) {
   21208:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   2120c:	83 30       	cpi	r24, 0x03	; 3
   2120e:	09 f0       	breq	.+2      	; 0x21212 <lcd_commands() [clone .part.41]+0x330>
   21210:	d2 c0       	rjmp	.+420    	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
		if (lcd_commands_step == 0) {
   21212:	90 91 fb 03 	lds	r25, 0x03FB	; 0x8003fb <lcd_commands_step>
   21216:	91 11       	cpse	r25, r1
   21218:	09 c0       	rjmp	.+18     	; 0x2122c <lcd_commands() [clone .part.41]+0x34a>
			custom_message_type = CustomMsg::PidCal;
   2121a:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
			custom_message_state = 1;
   2121e:	91 e0       	ldi	r25, 0x01	; 1
   21220:	90 93 f7 03 	sts	0x03F7, r25	; 0x8003f7 <custom_message_state>
			lcd_draw_update = 3;
   21224:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
			lcd_commands_step = 3;
   21228:	80 93 fb 03 	sts	0x03FB, r24	; 0x8003fb <lcd_commands_step>
		}
		if (lcd_commands_step == 3 && !blocks_queued()) { //PID calibration
   2122c:	80 91 fb 03 	lds	r24, 0x03FB	; 0x8003fb <lcd_commands_step>
   21230:	83 30       	cpi	r24, 0x03	; 3
   21232:	19 f5       	brne	.+70     	; 0x2127a <lcd_commands() [clone .part.41]+0x398>
   21234:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   21238:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   2123c:	98 13       	cpse	r25, r24
   2123e:	1d c0       	rjmp	.+58     	; 0x2127a <lcd_commands() [clone .part.41]+0x398>
      return !pid_tuning_finished;
  }

  void preparePidTuning() {
      // ensure heaters are disabled before we switch off PID management!
      disable_heater();
   21240:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
      pid_tuning_finished = false;
   21244:	10 92 3e 02 	sts	0x023E, r1	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
			preparePidTuning(); // ensure we don't move to the next step early
			// setting the correct target temperature (for visualization) is done in PID_autotune
			enquecommandf_P(PSTR("M303 E0 S%3u"), pid_temp);
   21248:	80 91 4c 02 	lds	r24, 0x024C	; 0x80024c <_ZL8pid_temp.lto_priv.443+0x1>
   2124c:	8f 93       	push	r24
   2124e:	80 91 4b 02 	lds	r24, 0x024B	; 0x80024b <_ZL8pid_temp.lto_priv.443>
   21252:	8f 93       	push	r24
   21254:	80 ef       	ldi	r24, 0xF0	; 240
   21256:	9a e8       	ldi	r25, 0x8A	; 138
   21258:	9f 93       	push	r25
   2125a:	8f 93       	push	r24
   2125c:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
			lcd_setstatuspgm(_T(MSG_PID_RUNNING));
   21260:	87 eb       	ldi	r24, 0xB7	; 183
   21262:	99 e4       	ldi	r25, 0x49	; 73
   21264:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21268:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
			lcd_commands_step = 2;
   2126c:	82 e0       	ldi	r24, 0x02	; 2
   2126e:	80 93 fb 03 	sts	0x03FB, r24	; 0x8003fb <lcd_commands_step>
   21272:	0f 90       	pop	r0
   21274:	0f 90       	pop	r0
   21276:	0f 90       	pop	r0
   21278:	0f 90       	pop	r0
		}
		if (lcd_commands_step == 2 && !pidTuningRunning()) { //saving to eeprom
   2127a:	80 91 fb 03 	lds	r24, 0x03FB	; 0x8003fb <lcd_commands_step>
   2127e:	82 30       	cpi	r24, 0x02	; 2
   21280:	09 f0       	breq	.+2      	; 0x21284 <lcd_commands() [clone .part.41]+0x3a2>
   21282:	7a c0       	rjmp	.+244    	; 0x21378 <lcd_commands() [clone .part.41]+0x496>
   21284:	80 91 3e 02 	lds	r24, 0x023E	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
   21288:	88 23       	and	r24, r24
   2128a:	09 f4       	brne	.+2      	; 0x2128e <lcd_commands() [clone .part.41]+0x3ac>
   2128c:	75 c0       	rjmp	.+234    	; 0x21378 <lcd_commands() [clone .part.41]+0x496>
			custom_message_state = 0;
   2128e:	10 92 f7 03 	sts	0x03F7, r1	; 0x8003f7 <custom_message_state>
			lcd_setstatuspgm(_T(MSG_PID_FINISHED));
   21292:	83 ea       	ldi	r24, 0xA3	; 163
   21294:	99 e4       	ldi	r25, 0x49	; 73
   21296:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2129a:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   2129e:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   212a2:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
			setTargetHotend(0);
			if (_Kp != 0 || _Ki != 0 || _Kd != 0) {
   212a6:	c0 91 f3 03 	lds	r28, 0x03F3	; 0x8003f3 <_Kp>
   212aa:	d0 91 f4 03 	lds	r29, 0x03F4	; 0x8003f4 <_Kp+0x1>
   212ae:	10 91 f5 03 	lds	r17, 0x03F5	; 0x8003f5 <_Kp+0x2>
   212b2:	00 91 f6 03 	lds	r16, 0x03F6	; 0x8003f6 <_Kp+0x3>
   212b6:	20 e0       	ldi	r18, 0x00	; 0
   212b8:	30 e0       	ldi	r19, 0x00	; 0
   212ba:	a9 01       	movw	r20, r18
   212bc:	f8 01       	movw	r30, r16
   212be:	6c 2f       	mov	r22, r28
   212c0:	7d 2f       	mov	r23, r29
   212c2:	8f 2f       	mov	r24, r31
   212c4:	9e 2f       	mov	r25, r30
   212c6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   212ca:	81 11       	cpse	r24, r1
   212cc:	1f c0       	rjmp	.+62     	; 0x2130c <lcd_commands() [clone .part.41]+0x42a>
   212ce:	20 e0       	ldi	r18, 0x00	; 0
   212d0:	30 e0       	ldi	r19, 0x00	; 0
   212d2:	a9 01       	movw	r20, r18
   212d4:	60 91 ef 03 	lds	r22, 0x03EF	; 0x8003ef <_Ki>
   212d8:	70 91 f0 03 	lds	r23, 0x03F0	; 0x8003f0 <_Ki+0x1>
   212dc:	80 91 f1 03 	lds	r24, 0x03F1	; 0x8003f1 <_Ki+0x2>
   212e0:	90 91 f2 03 	lds	r25, 0x03F2	; 0x8003f2 <_Ki+0x3>
   212e4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   212e8:	81 11       	cpse	r24, r1
   212ea:	10 c0       	rjmp	.+32     	; 0x2130c <lcd_commands() [clone .part.41]+0x42a>
   212ec:	20 e0       	ldi	r18, 0x00	; 0
   212ee:	30 e0       	ldi	r19, 0x00	; 0
   212f0:	a9 01       	movw	r20, r18
   212f2:	60 91 eb 03 	lds	r22, 0x03EB	; 0x8003eb <_Kd>
   212f6:	70 91 ec 03 	lds	r23, 0x03EC	; 0x8003ec <_Kd+0x1>
   212fa:	80 91 ed 03 	lds	r24, 0x03ED	; 0x8003ed <_Kd+0x2>
   212fe:	90 91 ee 03 	lds	r25, 0x03EE	; 0x8003ee <_Kd+0x3>
   21302:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   21306:	88 23       	and	r24, r24
   21308:	09 f4       	brne	.+2      	; 0x2130c <lcd_commands() [clone .part.41]+0x42a>
   2130a:	7e c2       	rjmp	.+1276   	; 0x21808 <lcd_commands() [clone .part.41]+0x926>
				enquecommandf_P(PSTR("M301 P%.2f I%.2f D%.2f"), _Kp, _Ki, _Kd);
   2130c:	80 91 ee 03 	lds	r24, 0x03EE	; 0x8003ee <_Kd+0x3>
   21310:	8f 93       	push	r24
   21312:	80 91 ed 03 	lds	r24, 0x03ED	; 0x8003ed <_Kd+0x2>
   21316:	8f 93       	push	r24
   21318:	80 91 ec 03 	lds	r24, 0x03EC	; 0x8003ec <_Kd+0x1>
   2131c:	8f 93       	push	r24
   2131e:	80 91 eb 03 	lds	r24, 0x03EB	; 0x8003eb <_Kd>
   21322:	8f 93       	push	r24
   21324:	80 91 f2 03 	lds	r24, 0x03F2	; 0x8003f2 <_Ki+0x3>
   21328:	8f 93       	push	r24
   2132a:	80 91 f1 03 	lds	r24, 0x03F1	; 0x8003f1 <_Ki+0x2>
   2132e:	8f 93       	push	r24
   21330:	80 91 f0 03 	lds	r24, 0x03F0	; 0x8003f0 <_Ki+0x1>
   21334:	8f 93       	push	r24
   21336:	80 91 ef 03 	lds	r24, 0x03EF	; 0x8003ef <_Ki>
   2133a:	8f 93       	push	r24
   2133c:	0f 93       	push	r16
   2133e:	1f 93       	push	r17
   21340:	df 93       	push	r29
   21342:	cf 93       	push	r28
   21344:	89 ed       	ldi	r24, 0xD9	; 217
   21346:	9a e8       	ldi	r25, 0x8A	; 138
   21348:	9f 93       	push	r25
   2134a:	8f 93       	push	r24
   2134c:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
				enquecommand_P(MSG_M500);
   21350:	61 e0       	ldi	r22, 0x01	; 1
   21352:	86 e4       	ldi	r24, 0x46	; 70
   21354:	9b e6       	ldi	r25, 0x6B	; 107
   21356:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
   2135a:	8d b7       	in	r24, 0x3d	; 61
   2135c:	9e b7       	in	r25, 0x3e	; 62
   2135e:	0e 96       	adiw	r24, 0x0e	; 14
   21360:	0f b6       	in	r0, 0x3f	; 63
   21362:	f8 94       	cli
   21364:	9e bf       	out	0x3e, r25	; 62
   21366:	0f be       	out	0x3f, r0	; 63
   21368:	8d bf       	out	0x3d, r24	; 61
			}
			else {
				SERIAL_ECHOPGM("Invalid PID cal. results. Not stored to EEPROM.");
			}
			display_time.start();
   2136a:	88 ee       	ldi	r24, 0xE8	; 232
   2136c:	93 e0       	ldi	r25, 0x03	; 3
   2136e:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
			lcd_commands_step = 1;
   21372:	81 e0       	ldi	r24, 0x01	; 1
   21374:	80 93 fb 03 	sts	0x03FB, r24	; 0x8003fb <lcd_commands_step>
		}
		if ((lcd_commands_step == 1) && display_time.expired(2000)) { //calibration finished message
   21378:	80 91 fb 03 	lds	r24, 0x03FB	; 0x8003fb <lcd_commands_step>
   2137c:	81 30       	cpi	r24, 0x01	; 1
   2137e:	d9 f4       	brne	.+54     	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
   21380:	60 ed       	ldi	r22, 0xD0	; 208
   21382:	77 e0       	ldi	r23, 0x07	; 7
   21384:	88 ee       	ldi	r24, 0xE8	; 232
   21386:	93 e0       	ldi	r25, 0x03	; 3
   21388:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   2138c:	88 23       	and	r24, r24
   2138e:	99 f0       	breq	.+38     	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
			lcd_setstatuspgm(MSG_WELCOME);
   21390:	8f ec       	ldi	r24, 0xCF	; 207
   21392:	9f e6       	ldi	r25, 0x6F	; 111
   21394:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
			custom_message_type = CustomMsg::Status;
   21398:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
			pid_temp = DEFAULT_PID_TEMP;
   2139c:	82 ed       	ldi	r24, 0xD2	; 210
   2139e:	90 e0       	ldi	r25, 0x00	; 0
   213a0:	90 93 4c 02 	sts	0x024C, r25	; 0x80024c <_ZL8pid_temp.lto_priv.443+0x1>
   213a4:	80 93 4b 02 	sts	0x024B, r24	; 0x80024b <_ZL8pid_temp.lto_priv.443>
			lcd_commands_step = 0;
   213a8:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
			lcd_commands_type = LcdCommands::Idle;
   213ac:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   213b0:	82 e0       	ldi	r24, 0x02	; 2
   213b2:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
			SetPrinterState(PrinterState::Idle);
		}
	}

#ifdef THERMAL_MODEL
    if (lcd_commands_type == LcdCommands::ThermalModel && cmd_buffer_empty())
   213b6:	90 91 b4 0d 	lds	r25, 0x0DB4	; 0x800db4 <lcd_commands_type>
   213ba:	95 30       	cpi	r25, 0x05	; 5
   213bc:	99 f4       	brne	.+38     	; 0x213e4 <lcd_commands() [clone .part.41]+0x502>
   213be:	20 91 a3 10 	lds	r18, 0x10A3	; 0x8010a3 <buflen>
   213c2:	30 91 a4 10 	lds	r19, 0x10A4	; 0x8010a4 <buflen+0x1>
   213c6:	23 2b       	or	r18, r19
   213c8:	79 f5       	brne	.+94     	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
    {
        switch (lcd_commands_step)
   213ca:	80 91 fb 03 	lds	r24, 0x03FB	; 0x8003fb <lcd_commands_step>
   213ce:	82 30       	cpi	r24, 0x02	; 2
   213d0:	09 f4       	brne	.+2      	; 0x213d4 <lcd_commands() [clone .part.41]+0x4f2>
   213d2:	43 c2       	rjmp	.+1158   	; 0x2185a <lcd_commands() [clone .part.41]+0x978>
   213d4:	08 f0       	brcs	.+2      	; 0x213d8 <lcd_commands() [clone .part.41]+0x4f6>
   213d6:	1d c2       	rjmp	.+1082   	; 0x21812 <lcd_commands() [clone .part.41]+0x930>
   213d8:	88 23       	and	r24, r24
   213da:	09 f4       	brne	.+2      	; 0x213de <lcd_commands() [clone .part.41]+0x4fc>
   213dc:	2e c2       	rjmp	.+1116   	; 0x2183a <lcd_commands() [clone .part.41]+0x958>
   213de:	81 30       	cpi	r24, 0x01	; 1
   213e0:	09 f4       	brne	.+2      	; 0x213e4 <lcd_commands() [clone .part.41]+0x502>
   213e2:	46 c2       	rjmp	.+1164   	; 0x21870 <lcd_commands() [clone .part.41]+0x98e>
            break;
        }
    }
#endif //THERMAL_MODEL

	if (lcd_commands_type == LcdCommands::NozzleCNG)
   213e4:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   213e8:	86 30       	cpi	r24, 0x06	; 6
   213ea:	f1 f4       	brne	.+60     	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
   213ec:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   213f0:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
	{
        if (!blocks_queued() && cmd_buffer_empty() && !saved_printing)
   213f4:	98 13       	cpse	r25, r24
   213f6:	18 c0       	rjmp	.+48     	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
   213f8:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   213fc:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   21400:	89 2b       	or	r24, r25
   21402:	91 f4       	brne	.+36     	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
   21404:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   21408:	81 11       	cpse	r24, r1
   2140a:	0e c0       	rjmp	.+28     	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
#ifndef QUICK_NOZZLE_CHANGE //thermal model can be ignored if a quickchange nozzle is in use, no heatup necessary
#ifdef THERMAL_MODEL
            static bool was_enabled;
#endif //THERMAL_MODEL
#endif //QUICK_NOZZLE_CHANGE
            switch(lcd_commands_step)
   2140c:	80 91 fb 03 	lds	r24, 0x03FB	; 0x8003fb <lcd_commands_step>
   21410:	81 30       	cpi	r24, 0x01	; 1
   21412:	09 f4       	brne	.+2      	; 0x21416 <lcd_commands() [clone .part.41]+0x534>
   21414:	85 c2       	rjmp	.+1290   	; 0x21920 <lcd_commands() [clone .part.41]+0xa3e>
   21416:	08 f4       	brcc	.+2      	; 0x2141a <lcd_commands() [clone .part.41]+0x538>
   21418:	45 c2       	rjmp	.+1162   	; 0x218a4 <lcd_commands() [clone .part.41]+0x9c2>
   2141a:	82 30       	cpi	r24, 0x02	; 2
   2141c:	09 f4       	brne	.+2      	; 0x21420 <lcd_commands() [clone .part.41]+0x53e>
   2141e:	6d c2       	rjmp	.+1242   	; 0x218fa <lcd_commands() [clone .part.41]+0xa18>
                was_enabled = thermal_model_enabled();
                thermal_model_set_enabled(false);
#endif //THERMAL_MODEL
#else //nozzle change without heating
                while((int)degHotend(active_extruder)>40) { //check temp
                    fanSpeed = 255; //turn on fan
   21420:	cf ef       	ldi	r28, 0xFF	; 255
#ifndef QUICK_NOZZLE_CHANGE //thermal model can be ignored if a quickchange nozzle is in use, no heatup necessary
#ifdef THERMAL_MODEL
            static bool was_enabled;
#endif //THERMAL_MODEL
#endif //QUICK_NOZZLE_CHANGE
            switch(lcd_commands_step)
   21422:	83 30       	cpi	r24, 0x03	; 3
   21424:	09 f4       	brne	.+2      	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
   21426:	42 c2       	rjmp	.+1156   	; 0x218ac <lcd_commands() [clone .part.41]+0x9ca>
                menu_depth = 3;
                break;
            }
        }
    }
}
   21428:	df 91       	pop	r29
   2142a:	cf 91       	pop	r28
   2142c:	1f 91       	pop	r17
   2142e:	0f 91       	pop	r16
   21430:	ff 90       	pop	r15
   21432:	ef 90       	pop	r14
   21434:	df 90       	pop	r13
   21436:	cf 90       	pop	r12
   21438:	bf 90       	pop	r11
   2143a:	af 90       	pop	r10
   2143c:	9f 90       	pop	r9
   2143e:	8f 90       	pop	r8
   21440:	7f 90       	pop	r7
   21442:	6f 90       	pop	r6
   21444:	5f 90       	pop	r5
   21446:	4f 90       	pop	r4
   21448:	3f 90       	pop	r3
   2144a:	2f 90       	pop	r2
   2144c:	08 95       	ret
                break;
            case 11:
                extraPurgeNeeded = lay1cal_load_filament(lay1cal_filament);
                break;
            case 10:
                lcd_clear();
   2144e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
                menu_depth = 0;
   21452:	10 92 f8 03 	sts	0x03F8, r1	; 0x8003f8 <menu_depth>
                menu_submenu(lcd_babystep_z, true);
   21456:	61 e0       	ldi	r22, 0x01	; 1
   21458:	88 e8       	ldi	r24, 0x88	; 136
   2145a:	9a e3       	ldi	r25, 0x3A	; 58
   2145c:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
        cmd_intro_mmu_9,
        cmd_intro_mmu_10,
        cmd_intro_mmu_11,
    };

    if (MMU2::mmu2.Enabled())
   21460:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   21464:	81 30       	cpi	r24, 0x01	; 1
   21466:	b9 f4       	brne	.+46     	; 0x21496 <lcd_commands() [clone .part.41]+0x5b4>
    {
        for (uint8_t i = (extraPurgeNeeded ? 0 : 2); i < (sizeof(cmd_intro_mmu)/sizeof(cmd_intro_mmu[0])); ++i)
   21468:	80 91 f9 03 	lds	r24, 0x03F9	; 0x8003f9 <extraPurgeNeeded>
   2146c:	10 e0       	ldi	r17, 0x00	; 0
   2146e:	81 11       	cpse	r24, r1
   21470:	01 c0       	rjmp	.+2      	; 0x21474 <lcd_commands() [clone .part.41]+0x592>
   21472:	12 e0       	ldi	r17, 0x02	; 2
   21474:	c1 2f       	mov	r28, r17
   21476:	d0 e0       	ldi	r29, 0x00	; 0
   21478:	cc 0f       	add	r28, r28
   2147a:	dd 1f       	adc	r29, r29
   2147c:	c3 5c       	subi	r28, 0xC3	; 195
   2147e:	d5 47       	sbci	r29, 0x75	; 117
        {
            enquecommand_P(static_cast<char*>(pgm_read_ptr(&cmd_intro_mmu[i])));
   21480:	fe 01       	movw	r30, r28
   21482:	85 91       	lpm	r24, Z+
   21484:	94 91       	lpm	r25, Z
   21486:	61 e0       	ldi	r22, 0x01	; 1
   21488:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        cmd_intro_mmu_11,
    };

    if (MMU2::mmu2.Enabled())
    {
        for (uint8_t i = (extraPurgeNeeded ? 0 : 2); i < (sizeof(cmd_intro_mmu)/sizeof(cmd_intro_mmu[0])); ++i)
   2148c:	1f 5f       	subi	r17, 0xFF	; 255
   2148e:	22 96       	adiw	r28, 0x02	; 2
   21490:	19 30       	cpi	r17, 0x09	; 9
   21492:	b1 f7       	brne	.-20     	; 0x21480 <lcd_commands() [clone .part.41]+0x59e>
   21494:	b9 ce       	rjmp	.-654    	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
            enquecommand_P(static_cast<char*>(pgm_read_ptr(&cmd_intro_mmu[i])));
        }
    }
    else
    {
        enquecommand_P(feedrate_F1080); //fixed velocity for the intro line
   21496:	61 e0       	ldi	r22, 0x01	; 1
   21498:	85 e3       	ldi	r24, 0x35	; 53
   2149a:	9a e8       	ldi	r25, 0x8A	; 138
   2149c:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        enquecommandf_P(extrude_fmt_X, 60.f, count_e(layer_height, extrusion_width * 4.f, 60));
   214a0:	20 e0       	ldi	r18, 0x00	; 0
   214a2:	30 e0       	ldi	r19, 0x00	; 0
   214a4:	40 e8       	ldi	r20, 0x80	; 128
   214a6:	50 e4       	ldi	r21, 0x40	; 64
   214a8:	c5 01       	movw	r24, r10
   214aa:	b4 01       	movw	r22, r8
   214ac:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   214b0:	20 e0       	ldi	r18, 0x00	; 0
   214b2:	30 e0       	ldi	r19, 0x00	; 0
   214b4:	40 e7       	ldi	r20, 0x70	; 112
   214b6:	52 e4       	ldi	r21, 0x42	; 66
   214b8:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   214bc:	9f 93       	push	r25
   214be:	8f 93       	push	r24
   214c0:	7f 93       	push	r23
   214c2:	6f 93       	push	r22
   214c4:	82 e4       	ldi	r24, 0x42	; 66
   214c6:	8f 93       	push	r24
   214c8:	80 e7       	ldi	r24, 0x70	; 112
   214ca:	8f 93       	push	r24
   214cc:	1f 92       	push	r1
   214ce:	1f 92       	push	r1
   214d0:	c8 e2       	ldi	r28, 0x28	; 40
   214d2:	da e8       	ldi	r29, 0x8A	; 138
   214d4:	df 93       	push	r29
   214d6:	cf 93       	push	r28
   214d8:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
        enquecommandf_P(extrude_fmt_X, 202.5f, count_e(layer_height, extrusion_width * 8.f, 142.5));
   214dc:	20 e0       	ldi	r18, 0x00	; 0
   214de:	30 e0       	ldi	r19, 0x00	; 0
   214e0:	40 e0       	ldi	r20, 0x00	; 0
   214e2:	51 e4       	ldi	r21, 0x41	; 65
   214e4:	c5 01       	movw	r24, r10
   214e6:	b4 01       	movw	r22, r8
   214e8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   214ec:	20 e0       	ldi	r18, 0x00	; 0
   214ee:	30 e8       	ldi	r19, 0x80	; 128
   214f0:	4e e0       	ldi	r20, 0x0E	; 14
   214f2:	53 e4       	ldi	r21, 0x43	; 67
   214f4:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   214f8:	9f 93       	push	r25
   214fa:	8f 93       	push	r24
   214fc:	7f 93       	push	r23
   214fe:	6f 93       	push	r22
   21500:	83 e4       	ldi	r24, 0x43	; 67
   21502:	8f 93       	push	r24
   21504:	8a e4       	ldi	r24, 0x4A	; 74
   21506:	8f 93       	push	r24
   21508:	80 e8       	ldi	r24, 0x80	; 128
   2150a:	8f 93       	push	r24
   2150c:	1f 92       	push	r1
   2150e:	df 93       	push	r29
   21510:	cf 93       	push	r28
   21512:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   21516:	8d b7       	in	r24, 0x3d	; 61
   21518:	9e b7       	in	r25, 0x3e	; 62
   2151a:	44 96       	adiw	r24, 0x14	; 20
   2151c:	0f b6       	in	r0, 0x3f	; 63
   2151e:	f8 94       	cli
   21520:	9e bf       	out	0x3e, r25	; 62
   21522:	0f be       	out	0x3f, r0	; 63
   21524:	8d bf       	out	0x3d, r24	; 61
   21526:	70 ce       	rjmp	.-800    	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
            cmd_pre_meander_5,
#endif //NEW_FIRST_LAYER_CAL
            cmd_pre_meander_6,
    };

    lay1cal_common_enqueue_loop(cmd_pre_meander, (sizeof(cmd_pre_meander)/sizeof(cmd_pre_meander[0])));
   21528:	66 e0       	ldi	r22, 0x06	; 6
   2152a:	8c e1       	ldi	r24, 0x1C	; 28
   2152c:	9a e8       	ldi	r25, 0x8A	; 138
   2152e:	3a ce       	rjmp	.-908    	; 0x211a4 <lcd_commands() [clone .part.41]+0x2c2>

//! @brief Print meander start
void lay1cal_meander_start(float layer_height, float extrusion_width)
{
#ifndef NEW_FIRST_LAYER_CAL
    enquecommand_P(PSTR("G1X50Y155"));
   21530:	61 e0       	ldi	r22, 0x01	; 1
   21532:	82 e1       	ldi	r24, 0x12	; 18
   21534:	9a e8       	ldi	r25, 0x8A	; 138
   21536:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
#endif //_NEW_FIRST_LAYER_CAL
    static const char fmt1[] PROGMEM = "G1Z%.2f";
    enquecommandf_P(fmt1, layer_height);
   2153a:	8e e3       	ldi	r24, 0x3E	; 62
   2153c:	8f 93       	push	r24
   2153e:	8c e4       	ldi	r24, 0x4C	; 76
   21540:	8f 93       	push	r24
   21542:	8c ec       	ldi	r24, 0xCC	; 204
   21544:	8f 93       	push	r24
   21546:	8d ec       	ldi	r24, 0xCD	; 205
   21548:	8f 93       	push	r24
   2154a:	8a e0       	ldi	r24, 0x0A	; 10
   2154c:	9a e8       	ldi	r25, 0x8A	; 138
   2154e:	9f 93       	push	r25
   21550:	8f 93       	push	r24
   21552:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommand_P(feedrate_F1080);
   21556:	61 e0       	ldi	r22, 0x01	; 1
   21558:	85 e3       	ldi	r24, 0x35	; 53
   2155a:	9a e8       	ldi	r25, 0x8A	; 138
   2155c:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    enquecommand_P(MSG_G91); //enable relative XYZ
   21560:	61 e0       	ldi	r22, 0x01	; 1
   21562:	83 e3       	ldi	r24, 0x33	; 51
   21564:	9b e6       	ldi	r25, 0x6B	; 107
   21566:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
#ifdef NEW_FIRST_LAYER_CAL
    enquecommandf_P(extrude_fmt_Y, short_length, count_e(layer_height, extrusion_width, short_length));
    enquecommandf_P(extrude_fmt_X, long_length*invert, count_e(layer_height, extrusion_width, long_length));
    enquecommandf_P(extrude_fmt_Y, -short_length*invert, count_e(layer_height, extrusion_width, short_length));
#else
    enquecommandf_P(extrude_fmt_X, 25.f*invert, count_e(layer_height, extrusion_width * 4.f, 25));
   2156a:	20 e0       	ldi	r18, 0x00	; 0
   2156c:	30 e0       	ldi	r19, 0x00	; 0
   2156e:	40 e8       	ldi	r20, 0x80	; 128
   21570:	50 e4       	ldi	r21, 0x40	; 64
   21572:	c5 01       	movw	r24, r10
   21574:	b4 01       	movw	r22, r8
   21576:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2157a:	20 e0       	ldi	r18, 0x00	; 0
   2157c:	30 e0       	ldi	r19, 0x00	; 0
   2157e:	48 ec       	ldi	r20, 0xC8	; 200
   21580:	51 e4       	ldi	r21, 0x41	; 65
   21582:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   21586:	9f 93       	push	r25
   21588:	8f 93       	push	r24
   2158a:	7f 93       	push	r23
   2158c:	6f 93       	push	r22
   2158e:	01 e4       	ldi	r16, 0x41	; 65
   21590:	0f 93       	push	r16
   21592:	18 ec       	ldi	r17, 0xC8	; 200
   21594:	1f 93       	push	r17
   21596:	1f 92       	push	r1
   21598:	1f 92       	push	r1
   2159a:	c8 e2       	ldi	r28, 0x28	; 40
   2159c:	da e8       	ldi	r29, 0x8A	; 138
   2159e:	df 93       	push	r29
   215a0:	cf 93       	push	r28
   215a2:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommandf_P(extrude_fmt_X, 25.f*invert, count_e(layer_height, extrusion_width * 2.f, 25));
   215a6:	a5 01       	movw	r20, r10
   215a8:	94 01       	movw	r18, r8
   215aa:	c5 01       	movw	r24, r10
   215ac:	b4 01       	movw	r22, r8
   215ae:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   215b2:	20 e0       	ldi	r18, 0x00	; 0
   215b4:	30 e0       	ldi	r19, 0x00	; 0
   215b6:	48 ec       	ldi	r20, 0xC8	; 200
   215b8:	51 e4       	ldi	r21, 0x41	; 65
   215ba:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   215be:	9f 93       	push	r25
   215c0:	8f 93       	push	r24
   215c2:	7f 93       	push	r23
   215c4:	6f 93       	push	r22
   215c6:	0f 93       	push	r16
   215c8:	1f 93       	push	r17
   215ca:	1f 92       	push	r1
   215cc:	1f 92       	push	r1
   215ce:	df 93       	push	r29
   215d0:	cf 93       	push	r28
   215d2:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommandf_P(extrude_fmt_X, 100.f*invert, count_e(layer_height, extrusion_width, 100));
   215d6:	20 e0       	ldi	r18, 0x00	; 0
   215d8:	30 e0       	ldi	r19, 0x00	; 0
   215da:	48 ec       	ldi	r20, 0xC8	; 200
   215dc:	52 e4       	ldi	r21, 0x42	; 66
   215de:	c5 01       	movw	r24, r10
   215e0:	b4 01       	movw	r22, r8
   215e2:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   215e6:	9f 93       	push	r25
   215e8:	8f 93       	push	r24
   215ea:	7f 93       	push	r23
   215ec:	6f 93       	push	r22
   215ee:	82 e4       	ldi	r24, 0x42	; 66
   215f0:	8f 93       	push	r24
   215f2:	1f 93       	push	r17
   215f4:	1f 92       	push	r1
   215f6:	1f 92       	push	r1
   215f8:	df 93       	push	r29
   215fa:	cf 93       	push	r28
   215fc:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommandf_P(extrude_fmt_Y, -20.f*invert, count_e(layer_height, extrusion_width, 20));
   21600:	8d b7       	in	r24, 0x3d	; 61
   21602:	9e b7       	in	r25, 0x3e	; 62
   21604:	84 96       	adiw	r24, 0x24	; 36
   21606:	0f b6       	in	r0, 0x3f	; 63
   21608:	f8 94       	cli
   2160a:	9e bf       	out	0x3e, r25	; 62
   2160c:	0f be       	out	0x3f, r0	; 63
   2160e:	8d bf       	out	0x3d, r24	; 61
   21610:	20 e0       	ldi	r18, 0x00	; 0
   21612:	30 e0       	ldi	r19, 0x00	; 0
   21614:	40 ea       	ldi	r20, 0xA0	; 160
   21616:	51 e4       	ldi	r21, 0x41	; 65
   21618:	c5 01       	movw	r24, r10
   2161a:	b4 01       	movw	r22, r8
   2161c:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   21620:	9f 93       	push	r25
   21622:	8f 93       	push	r24
   21624:	7f 93       	push	r23
   21626:	6f 93       	push	r22
   21628:	81 ec       	ldi	r24, 0xC1	; 193
   2162a:	8f 93       	push	r24
   2162c:	80 ea       	ldi	r24, 0xA0	; 160
   2162e:	8f 93       	push	r24
   21630:	1f 92       	push	r1
   21632:	1f 92       	push	r1
   21634:	8d ef       	ldi	r24, 0xFD	; 253
   21636:	99 e8       	ldi	r25, 0x89	; 137
   21638:	9f 93       	push	r25
   2163a:	8f 93       	push	r24
   2163c:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   21640:	8d b7       	in	r24, 0x3d	; 61
   21642:	9e b7       	in	r25, 0x3e	; 62
   21644:	0a 96       	adiw	r24, 0x0a	; 10
   21646:	0f b6       	in	r0, 0x3f	; 63
   21648:	f8 94       	cli
   2164a:	9e bf       	out	0x3e, r25	; 62
   2164c:	0f be       	out	0x3f, r0	; 63
   2164e:	8d bf       	out	0x3d, r24	; 61
   21650:	db cd       	rjmp	.-1098   	; 0x21208 <lcd_commands() [clone .part.41]+0x326>

//! @brief Print meander
//! @param cmd_buffer character buffer needed to format gcodes
void lay1cal_meander(float layer_height, float extrusion_width)
{
    const float long_extrusion = count_e(layer_height, extrusion_width, long_length);
   21652:	20 e0       	ldi	r18, 0x00	; 0
   21654:	30 e0       	ldi	r19, 0x00	; 0
   21656:	46 e1       	ldi	r20, 0x16	; 22
   21658:	53 e4       	ldi	r21, 0x43	; 67
   2165a:	c5 01       	movw	r24, r10
   2165c:	b4 01       	movw	r22, r8
   2165e:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   21662:	76 2e       	mov	r7, r22
   21664:	67 2e       	mov	r6, r23
   21666:	58 2e       	mov	r5, r24
   21668:	49 2e       	mov	r4, r25
    const float short_extrusion = count_e(layer_height, extrusion_width, short_length);
   2166a:	20 e0       	ldi	r18, 0x00	; 0
   2166c:	30 e0       	ldi	r19, 0x00	; 0
   2166e:	40 ea       	ldi	r20, 0xA0	; 160
   21670:	51 e4       	ldi	r21, 0x41	; 65
   21672:	c5 01       	movw	r24, r10
   21674:	b4 01       	movw	r22, r8
   21676:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   2167a:	b6 2e       	mov	r11, r22
   2167c:	a7 2e       	mov	r10, r23
   2167e:	98 2e       	mov	r9, r24
   21680:	89 2e       	mov	r8, r25
   21682:	c5 e0       	ldi	r28, 0x05	; 5

    for(int8_t i = 0, xdir = -invert; i <= 4; i++, xdir = -xdir)
   21684:	df ef       	ldi	r29, 0xFF	; 255
    {
        enquecommandf_P(extrude_fmt_X, xdir * long_length, long_extrusion);
   21686:	28 e2       	ldi	r18, 0x28	; 40
   21688:	e2 2e       	mov	r14, r18
   2168a:	2a e8       	ldi	r18, 0x8A	; 138
   2168c:	f2 2e       	mov	r15, r18
        enquecommandf_P(extrude_fmt_Y, invert * -short_length, short_extrusion);
   2168e:	31 ec       	ldi	r19, 0xC1	; 193
   21690:	c3 2e       	mov	r12, r19
   21692:	40 ea       	ldi	r20, 0xA0	; 160
   21694:	d4 2e       	mov	r13, r20
   21696:	0d ef       	ldi	r16, 0xFD	; 253
   21698:	19 e8       	ldi	r17, 0x89	; 137
    const float long_extrusion = count_e(layer_height, extrusion_width, long_length);
    const float short_extrusion = count_e(layer_height, extrusion_width, short_length);

    for(int8_t i = 0, xdir = -invert; i <= 4; i++, xdir = -xdir)
    {
        enquecommandf_P(extrude_fmt_X, xdir * long_length, long_extrusion);
   2169a:	4f 92       	push	r4
   2169c:	5f 92       	push	r5
   2169e:	6f 92       	push	r6
   216a0:	7f 92       	push	r7
   216a2:	6d 2f       	mov	r22, r29
   216a4:	0d 2e       	mov	r0, r29
   216a6:	00 0c       	add	r0, r0
   216a8:	77 0b       	sbc	r23, r23
   216aa:	88 0b       	sbc	r24, r24
   216ac:	99 0b       	sbc	r25, r25
   216ae:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   216b2:	20 e0       	ldi	r18, 0x00	; 0
   216b4:	30 e0       	ldi	r19, 0x00	; 0
   216b6:	46 e1       	ldi	r20, 0x16	; 22
   216b8:	53 e4       	ldi	r21, 0x43	; 67
   216ba:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   216be:	9f 93       	push	r25
   216c0:	8f 93       	push	r24
   216c2:	7f 93       	push	r23
   216c4:	6f 93       	push	r22
   216c6:	ff 92       	push	r15
   216c8:	ef 92       	push	r14
   216ca:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
        enquecommandf_P(extrude_fmt_Y, invert * -short_length, short_extrusion);
   216ce:	8f 92       	push	r8
   216d0:	9f 92       	push	r9
   216d2:	af 92       	push	r10
   216d4:	bf 92       	push	r11
   216d6:	cf 92       	push	r12
   216d8:	df 92       	push	r13
   216da:	1f 92       	push	r1
   216dc:	1f 92       	push	r1
   216de:	1f 93       	push	r17
   216e0:	0f 93       	push	r16
   216e2:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
void lay1cal_meander(float layer_height, float extrusion_width)
{
    const float long_extrusion = count_e(layer_height, extrusion_width, long_length);
    const float short_extrusion = count_e(layer_height, extrusion_width, short_length);

    for(int8_t i = 0, xdir = -invert; i <= 4; i++, xdir = -xdir)
   216e6:	d1 95       	neg	r29
   216e8:	c1 50       	subi	r28, 0x01	; 1
   216ea:	8d b7       	in	r24, 0x3d	; 61
   216ec:	9e b7       	in	r25, 0x3e	; 62
   216ee:	44 96       	adiw	r24, 0x14	; 20
   216f0:	0f b6       	in	r0, 0x3f	; 63
   216f2:	f8 94       	cli
   216f4:	9e bf       	out	0x3e, r25	; 62
   216f6:	0f be       	out	0x3f, r0	; 63
   216f8:	8d bf       	out	0x3d, r24	; 61
   216fa:	c1 11       	cpse	r28, r1
   216fc:	ce cf       	rjmp	.-100    	; 0x2169a <lcd_commands() [clone .part.41]+0x7b8>
   216fe:	84 cd       	rjmp	.-1272   	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
//! @param layer_height layer height in mm
//! @param extrusion_width extrusion width in mm
//! @return filament length in mm which needs to be extruded to form line
static constexpr float spacing(float layer_height, float extrusion_width, float overlap_factor=1.f)
{
    return extrusion_width - layer_height * (overlap_factor - M_PI/4);
   21700:	23 e4       	ldi	r18, 0x43	; 67
   21702:	3d ec       	ldi	r19, 0xCD	; 205
   21704:	4f e2       	ldi	r20, 0x2F	; 47
   21706:	5d e3       	ldi	r21, 0x3D	; 61
   21708:	c5 01       	movw	r24, r10
   2170a:	b4 01       	movw	r22, r8
   2170c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   21710:	6b 01       	movw	r12, r22
   21712:	7c 01       	movw	r14, r24
//!
//! @param cmd_buffer character buffer needed to format gcodes
void lay1cal_square(float layer_height, float extrusion_width)
{
    const float Y_spacing = spacing(layer_height, extrusion_width);
    const float long_extrusion = count_e(layer_height, extrusion_width, square_width);
   21714:	20 e0       	ldi	r18, 0x00	; 0
   21716:	30 e0       	ldi	r19, 0x00	; 0
   21718:	40 ea       	ldi	r20, 0xA0	; 160
   2171a:	51 e4       	ldi	r21, 0x41	; 65
   2171c:	c5 01       	movw	r24, r10
   2171e:	b4 01       	movw	r22, r8
   21720:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   21724:	66 2e       	mov	r6, r22
   21726:	57 2e       	mov	r5, r23
   21728:	48 2e       	mov	r4, r24
   2172a:	39 2e       	mov	r3, r25
    const float short_extrusion = count_e(layer_height, extrusion_width, Y_spacing);
   2172c:	a7 01       	movw	r20, r14
   2172e:	96 01       	movw	r18, r12
   21730:	c5 01       	movw	r24, r10
   21732:	b4 01       	movw	r22, r8
   21734:	0f 94 03 88 	call	0x31006	; 0x31006 <count_e(float, float, float, float) [clone .constprop.161]>
   21738:	26 2e       	mov	r2, r22
   2173a:	a7 2e       	mov	r10, r23
   2173c:	98 2e       	mov	r9, r24
   2173e:	89 2e       	mov	r8, r25
   21740:	84 e0       	ldi	r24, 0x04	; 4
   21742:	b8 2e       	mov	r11, r24

    for (uint8_t i = 0; i < 4; i++)
    {
        enquecommandf_P(extrude_fmt_X, square_width*invert, long_extrusion);
   21744:	90 ea       	ldi	r25, 0xA0	; 160
   21746:	79 2e       	mov	r7, r25
   21748:	08 e2       	ldi	r16, 0x28	; 40
   2174a:	1a e8       	ldi	r17, 0x8A	; 138
        enquecommandf_P(extrude_fmt_Y, -Y_spacing*invert, short_extrusion);
   2174c:	f7 fa       	bst	r15, 7
   2174e:	f0 94       	com	r15
   21750:	f7 f8       	bld	r15, 7
   21752:	f0 94       	com	r15
   21754:	cd ef       	ldi	r28, 0xFD	; 253
   21756:	d9 e8       	ldi	r29, 0x89	; 137
    const float long_extrusion = count_e(layer_height, extrusion_width, square_width);
    const float short_extrusion = count_e(layer_height, extrusion_width, Y_spacing);

    for (uint8_t i = 0; i < 4; i++)
    {
        enquecommandf_P(extrude_fmt_X, square_width*invert, long_extrusion);
   21758:	3f 92       	push	r3
   2175a:	4f 92       	push	r4
   2175c:	5f 92       	push	r5
   2175e:	6f 92       	push	r6
   21760:	91 e4       	ldi	r25, 0x41	; 65
   21762:	9f 93       	push	r25
   21764:	7f 92       	push	r7
   21766:	1f 92       	push	r1
   21768:	1f 92       	push	r1
   2176a:	1f 93       	push	r17
   2176c:	0f 93       	push	r16
   2176e:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
        enquecommandf_P(extrude_fmt_Y, -Y_spacing*invert, short_extrusion);
   21772:	8f 92       	push	r8
   21774:	9f 92       	push	r9
   21776:	af 92       	push	r10
   21778:	2f 92       	push	r2
   2177a:	ff 92       	push	r15
   2177c:	ef 92       	push	r14
   2177e:	df 92       	push	r13
   21780:	cf 92       	push	r12
   21782:	df 93       	push	r29
   21784:	cf 93       	push	r28
   21786:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
        enquecommandf_P(extrude_fmt_X, -square_width*invert, long_extrusion);
   2178a:	3f 92       	push	r3
   2178c:	4f 92       	push	r4
   2178e:	5f 92       	push	r5
   21790:	6f 92       	push	r6
   21792:	81 ec       	ldi	r24, 0xC1	; 193
   21794:	8f 93       	push	r24
   21796:	7f 92       	push	r7
   21798:	1f 92       	push	r1
   2179a:	1f 92       	push	r1
   2179c:	1f 93       	push	r17
   2179e:	0f 93       	push	r16
   217a0:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
        enquecommandf_P(extrude_fmt_Y, -Y_spacing*invert, short_extrusion);
   217a4:	8f 92       	push	r8
   217a6:	9f 92       	push	r9
   217a8:	af 92       	push	r10
   217aa:	2f 92       	push	r2
   217ac:	ff 92       	push	r15
   217ae:	ef 92       	push	r14
   217b0:	df 92       	push	r13
   217b2:	cf 92       	push	r12
   217b4:	df 93       	push	r29
   217b6:	cf 93       	push	r28
   217b8:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   217bc:	ba 94       	dec	r11
{
    const float Y_spacing = spacing(layer_height, extrusion_width);
    const float long_extrusion = count_e(layer_height, extrusion_width, square_width);
    const float short_extrusion = count_e(layer_height, extrusion_width, Y_spacing);

    for (uint8_t i = 0; i < 4; i++)
   217be:	8d b7       	in	r24, 0x3d	; 61
   217c0:	9e b7       	in	r25, 0x3e	; 62
   217c2:	88 96       	adiw	r24, 0x28	; 40
   217c4:	0f b6       	in	r0, 0x3f	; 63
   217c6:	f8 94       	cli
   217c8:	9e bf       	out	0x3e, r25	; 62
   217ca:	0f be       	out	0x3f, r0	; 63
   217cc:	8d bf       	out	0x3d, r24	; 61
   217ce:	b1 10       	cpse	r11, r1
   217d0:	c3 cf       	rjmp	.-122    	; 0x21758 <lcd_commands() [clone .part.41]+0x876>
   217d2:	1a cd       	rjmp	.-1484   	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
        MSG_M702,         // Unload filament (MMU only)
        cmd_cal_finish_8, // Turn off hotend heater
        MSG_M84           // Disable stepper motors
    };

    lay1cal_common_enqueue_loop(cmd_cal_finish, (sizeof(cmd_cal_finish)/sizeof(cmd_cal_finish[0])));
   217d4:	69 e0       	ldi	r22, 0x09	; 9
   217d6:	8b ee       	ldi	r24, 0xEB	; 235
   217d8:	99 e8       	ldi	r25, 0x89	; 137
   217da:	e4 cc       	rjmp	.-1592   	; 0x211a4 <lcd_commands() [clone .part.41]+0x2c2>
                break;
            case 2:
                lay1cal_finish();
                break;
            case 1:
                lcd_setstatuspgm(MSG_WELCOME);
   217dc:	8f ec       	ldi	r24, 0xCF	; 207
   217de:	9f e6       	ldi	r25, 0x6F	; 111
   217e0:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
                lcd_commands_step = 0;
   217e4:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
                lcd_commands_type = LcdCommands::Idle;
   217e8:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   217ec:	82 e0       	ldi	r24, 0x02	; 2
   217ee:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
                SetPrinterState(PrinterState::Idle);
                if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
   217f2:	8f e5       	ldi	r24, 0x5F	; 95
   217f4:	9f e0       	ldi	r25, 0x0F	; 15
   217f6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   217fa:	88 23       	and	r24, r24
   217fc:	09 f4       	brne	.+2      	; 0x21800 <lcd_commands() [clone .part.41]+0x91e>
   217fe:	db cd       	rjmp	.-1098   	; 0x213b6 <lcd_commands() [clone .part.41]+0x4d4>
                    lcd_wizard(WizState::RepeatLay1Cal);
   21800:	8c e0       	ldi	r24, 0x0C	; 12
   21802:	0e 94 e0 f9 	call	0x1f3c0	; 0x1f3c0 <lcd_wizard(WizState)>
   21806:	00 cd       	rjmp	.-1536   	; 0x21208 <lcd_commands() [clone .part.41]+0x326>
			if (_Kp != 0 || _Ki != 0 || _Kd != 0) {
				enquecommandf_P(PSTR("M301 P%.2f I%.2f D%.2f"), _Kp, _Ki, _Kd);
				enquecommand_P(MSG_M500);
			}
			else {
				SERIAL_ECHOPGM("Invalid PID cal. results. Not stored to EEPROM.");
   21808:	89 ea       	ldi	r24, 0xA9	; 169
   2180a:	9a e8       	ldi	r25, 0x8A	; 138
   2180c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   21810:	ac cd       	rjmp	.-1192   	; 0x2136a <lcd_commands() [clone .part.41]+0x488>
	}

#ifdef THERMAL_MODEL
    if (lcd_commands_type == LcdCommands::ThermalModel && cmd_buffer_empty())
    {
        switch (lcd_commands_step)
   21812:	84 30       	cpi	r24, 0x04	; 4
   21814:	a9 f0       	breq	.+42     	; 0x21840 <lcd_commands() [clone .part.41]+0x95e>
   21816:	c0 f0       	brcs	.+48     	; 0x21848 <lcd_commands() [clone .part.41]+0x966>
   21818:	85 30       	cpi	r24, 0x05	; 5
   2181a:	09 f0       	breq	.+2      	; 0x2181e <lcd_commands() [clone .part.41]+0x93c>
   2181c:	e3 cd       	rjmp	.-1082   	; 0x213e4 <lcd_commands() [clone .part.41]+0x502>
        case 0:
            lcd_commands_step = 5;
            [[fallthrough]];

        case 5:
            enquecommand_P(G28W);
   2181e:	61 e0       	ldi	r22, 0x01	; 1
   21820:	80 e4       	ldi	r24, 0x40	; 64
   21822:	9b e6       	ldi	r25, 0x6B	; 107
   21824:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
            enquecommand_P(PSTR("G1 X125 Y105 Z1 F8000"));
   21828:	61 e0       	ldi	r22, 0x01	; 1
   2182a:	83 e9       	ldi	r24, 0x93	; 147
   2182c:	9a e8       	ldi	r25, 0x8A	; 138
   2182e:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
            lcd_commands_step = 4;
   21832:	84 e0       	ldi	r24, 0x04	; 4
            break;

        case 4:
            st_synchronize();
            lcd_commands_step = 3;
   21834:	80 93 fb 03 	sts	0x03FB, r24	; 0x8003fb <lcd_commands_step>
   21838:	d5 cd       	rjmp	.-1110   	; 0x213e4 <lcd_commands() [clone .part.41]+0x502>
    if (lcd_commands_type == LcdCommands::ThermalModel && cmd_buffer_empty())
    {
        switch (lcd_commands_step)
        {
        case 0:
            lcd_commands_step = 5;
   2183a:	90 93 fb 03 	sts	0x03FB, r25	; 0x8003fb <lcd_commands_step>
   2183e:	ef cf       	rjmp	.-34     	; 0x2181e <lcd_commands() [clone .part.41]+0x93c>
            enquecommand_P(PSTR("G1 X125 Y105 Z1 F8000"));
            lcd_commands_step = 4;
            break;

        case 4:
            st_synchronize();
   21840:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            lcd_commands_step = 3;
   21844:	83 e0       	ldi	r24, 0x03	; 3
   21846:	f6 cf       	rjmp	.-20     	; 0x21834 <lcd_commands() [clone .part.41]+0x952>
        SERIAL_ECHOLNPGM("TM: invalid parameters, cannot enable");
}

void thermal_model_set_warn_beep(bool enabled)
{
    thermal_model::warn_beep = enabled;
   21848:	10 92 3d 02 	sts	0x023D, r1	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
            break;

        case 3:
            thermal_model_set_warn_beep(false);
            enquecommand_P(PSTR("M310 A F1"));
   2184c:	61 e0       	ldi	r22, 0x01	; 1
   2184e:	89 e8       	ldi	r24, 0x89	; 137
   21850:	9a e8       	ldi	r25, 0x8A	; 138
   21852:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
            lcd_commands_step = 2;
   21856:	82 e0       	ldi	r24, 0x02	; 2
   21858:	ed cf       	rjmp	.-38     	; 0x21834 <lcd_commands() [clone .part.41]+0x952>
            break;

        case 2:
            if (thermal_model_autotune_result())
   2185a:	80 91 3c 02 	lds	r24, 0x023C	; 0x80023c <_ZL26thermal_model_autotune_err.lto_priv.538>
   2185e:	81 11       	cpse	r24, r1
   21860:	05 c0       	rjmp	.+10     	; 0x2186c <lcd_commands() [clone .part.41]+0x98a>
                enquecommand_P(MSG_M500);
   21862:	61 e0       	ldi	r22, 0x01	; 1
   21864:	86 e4       	ldi	r24, 0x46	; 70
   21866:	9b e6       	ldi	r25, 0x6B	; 107
   21868:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
            lcd_commands_step = 1;
   2186c:	81 e0       	ldi	r24, 0x01	; 1
   2186e:	e2 cf       	rjmp	.-60     	; 0x21834 <lcd_commands() [clone .part.41]+0x952>
            break;

        case 1:
            lcd_commands_step = 0;
   21870:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
            lcd_commands_type = LcdCommands::Idle;
   21874:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   21878:	92 e0       	ldi	r25, 0x02	; 2
   2187a:	90 93 b8 0d 	sts	0x0DB8, r25	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   2187e:	80 93 3d 02 	sts	0x023D, r24	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
            SetPrinterState(PrinterState::Idle);
            thermal_model_set_warn_beep(true);
            bool res = thermal_model_autotune_result();
            if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE)) {
   21882:	8f e5       	ldi	r24, 0x5F	; 95
   21884:	9f e0       	ldi	r25, 0x0F	; 15
   21886:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2188a:	88 23       	and	r24, r24
   2188c:	09 f4       	brne	.+2      	; 0x21890 <lcd_commands() [clone .part.41]+0x9ae>
   2188e:	cc cd       	rjmp	.-1128   	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
                // resume the wizard
                lcd_wizard(res ? WizState::Restore : WizState::Failed);
   21890:	80 91 3c 02 	lds	r24, 0x023C	; 0x80023c <_ZL26thermal_model_autotune_err.lto_priv.538>
   21894:	81 11       	cpse	r24, r1
   21896:	04 c0       	rjmp	.+8      	; 0x218a0 <lcd_commands() [clone .part.41]+0x9be>
   21898:	81 e0       	ldi	r24, 0x01	; 1
   2189a:	0e 94 e0 f9 	call	0x1f3c0	; 0x1f3c0 <lcd_wizard(WizState)>
   2189e:	a2 cd       	rjmp	.-1212   	; 0x213e4 <lcd_commands() [clone .part.41]+0x502>
   218a0:	8e e0       	ldi	r24, 0x0E	; 14
   218a2:	fb cf       	rjmp	.-10     	; 0x2189a <lcd_commands() [clone .part.41]+0x9b8>
#endif //THERMAL_MODEL
#endif //QUICK_NOZZLE_CHANGE
            switch(lcd_commands_step)
            {
            case 0:
                lcd_commands_step = 3;
   218a4:	83 e0       	ldi	r24, 0x03	; 3
                    thermal_model_set_enabled(was_enabled);
#endif //THERMAL_MODEL
#else
                    fanSpeed = 0; //turn off fan
#endif //QUICK_NOZZLE_CHANGE
                    lcd_commands_step = 1;
   218a6:	80 93 fb 03 	sts	0x03FB, r24	; 0x8003fb <lcd_commands_step>
   218aa:	be cd       	rjmp	.-1156   	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
#ifdef THERMAL_MODEL
                was_enabled = thermal_model_enabled();
                thermal_model_set_enabled(false);
#endif //THERMAL_MODEL
#else //nozzle change without heating
                while((int)degHotend(active_extruder)>40) { //check temp
   218ac:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   218b0:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   218b4:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   218b8:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   218bc:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   218c0:	69 32       	cpi	r22, 0x29	; 41
   218c2:	71 05       	cpc	r23, r1
   218c4:	74 f0       	brlt	.+28     	; 0x218e2 <lcd_commands() [clone .part.41]+0xa00>
                    fanSpeed = 255; //turn on fan
   218c6:	c0 93 e7 03 	sts	0x03E7, r28	; 0x8003e7 <fanSpeed>
                    disable_heater();
   218ca:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
                    uint8_t choice = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_NOZZLE_CNG_COOLDOWN), true, LCD_LEFT_BUTTON_CHOICE);
   218ce:	8f e7       	ldi	r24, 0x7F	; 127
   218d0:	99 e4       	ldi	r25, 0x49	; 73
   218d2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   218d6:	40 e0       	ldi	r20, 0x00	; 0
   218d8:	61 e0       	ldi	r22, 0x01	; 1
   218da:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
                    if (choice == LCD_MIDDLE_BUTTON_CHOICE) {
   218de:	81 30       	cpi	r24, 0x01	; 1
   218e0:	29 f7       	brne	.-54     	; 0x218ac <lcd_commands() [clone .part.41]+0x9ca>
                        break;
                    }
                }
                enquecommand_P(G28W); //home
   218e2:	61 e0       	ldi	r22, 0x01	; 1
   218e4:	80 e4       	ldi	r24, 0x40	; 64
   218e6:	9b e6       	ldi	r25, 0x6B	; 107
   218e8:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
                enquecommand_P(PSTR("G1 X125 Z200 F1000")); //move to top center
   218ec:	61 e0       	ldi	r22, 0x01	; 1
   218ee:	86 e7       	ldi	r24, 0x76	; 118
   218f0:	9a e8       	ldi	r25, 0x8A	; 138
   218f2:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
#endif //QUICK_NOZZLE_CHANGE
                lcd_commands_step = 2;
   218f6:	82 e0       	ldi	r24, 0x02	; 2
   218f8:	d6 cf       	rjmp	.-84     	; 0x218a6 <lcd_commands() [clone .part.41]+0x9c4>
                break;
            case 2:
                enquecommand_P(PSTR("M84 XY"));
   218fa:	61 e0       	ldi	r22, 0x01	; 1
   218fc:	8f e6       	ldi	r24, 0x6F	; 111
   218fe:	9a e8       	ldi	r25, 0x8A	; 138
   21900:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
                if (lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_NOZZLE_CNG_CHANGED), false) == LCD_LEFT_BUTTON_CHOICE) {
   21904:	8d e6       	ldi	r24, 0x6D	; 109
   21906:	99 e4       	ldi	r25, 0x49	; 73
   21908:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2190c:	41 e0       	ldi	r20, 0x01	; 1
   2190e:	60 e0       	ldi	r22, 0x00	; 0
   21910:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
   21914:	81 11       	cpse	r24, r1
   21916:	88 cd       	rjmp	.-1264   	; 0x21428 <lcd_commands() [clone .part.41]+0x546>
                    setTargetHotend(0);
#ifdef THERMAL_MODEL
                    thermal_model_set_enabled(was_enabled);
#endif //THERMAL_MODEL
#else
                    fanSpeed = 0; //turn off fan
   21918:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>
#endif //QUICK_NOZZLE_CHANGE
                    lcd_commands_step = 1;
   2191c:	81 e0       	ldi	r24, 0x01	; 1
   2191e:	c3 cf       	rjmp	.-122    	; 0x218a6 <lcd_commands() [clone .part.41]+0x9c4>
                }
                break;
            case 1:
                lcd_commands_step = 0;
   21920:	10 92 fb 03 	sts	0x03FB, r1	; 0x8003fb <lcd_commands_step>
                lcd_commands_type = LcdCommands::Idle;
   21924:	10 92 b4 0d 	sts	0x0DB4, r1	; 0x800db4 <lcd_commands_type>
   21928:	82 e0       	ldi	r24, 0x02	; 2
   2192a:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
                SetPrinterState(PrinterState::Idle);
                menu_goto(lcd_hw_setup_menu, 2, true);
   2192e:	20 e0       	ldi	r18, 0x00	; 0
   21930:	41 e0       	ldi	r20, 0x01	; 1
   21932:	62 e0       	ldi	r22, 0x02	; 2
   21934:	70 e0       	ldi	r23, 0x00	; 0
   21936:	80 ea       	ldi	r24, 0xA0	; 160
   21938:	92 ed       	ldi	r25, 0xD2	; 210
   2193a:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
                menu_depth = 3;
   2193e:	83 e0       	ldi	r24, 0x03	; 3
   21940:	80 93 f8 03 	sts	0x03F8, r24	; 0x8003f8 <menu_depth>
   21944:	71 cd       	rjmp	.-1310   	; 0x21428 <lcd_commands() [clone .part.41]+0x546>

00021946 <menu_lcd_lcdupdate_func()>:
            && menu_menu != lcd_babystep_z
            && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS));
}

void menu_lcd_lcdupdate_func(void)
{
   21946:	0f 93       	push	r16
   21948:	1f 93       	push	r17
#if (SDCARDDETECT > 0)
	if ((IS_SD_INSERTED != lcd_oldcardstatus))
   2194a:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   2194e:	80 95       	com	r24
   21950:	81 70       	andi	r24, 0x01	; 1
   21952:	90 91 12 04 	lds	r25, 0x0412	; 0x800412 <lcd_oldcardstatus>
   21956:	89 17       	cp	r24, r25
   21958:	a1 f1       	breq	.+104    	; 0x219c2 <menu_lcd_lcdupdate_func()+0x7c>
	{
		if(menu_menu == lcd_sdcard_menu) {
   2195a:	80 91 13 04 	lds	r24, 0x0413	; 0x800413 <menu_menu>
   2195e:	90 91 14 04 	lds	r25, 0x0414	; 0x800414 <menu_menu+0x1>
   21962:	83 55       	subi	r24, 0x53	; 83
   21964:	92 4f       	sbci	r25, 0xF2	; 242
   21966:	11 f4       	brne	.+4      	; 0x2196c <menu_lcd_lcdupdate_func()+0x26>
			//    to back out of this submenu. Not only to show
			//    'Print from SD' submenu title but also because the user
			//    will be prompted with another menu with the sorted list of files.
			//    Without backing out of the menu, the list will appear empty and
			//    The user will need to back out of two nested submenus.
			menu_back();
   21968:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
		}
		lcd_draw_update = 2;
   2196c:	82 e0       	ldi	r24, 0x02	; 2
   2196e:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
		lcd_oldcardstatus = IS_SD_INSERTED;
   21972:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   21976:	80 95       	com	r24
   21978:	81 70       	andi	r24, 0x01	; 1
   2197a:	80 93 12 04 	sts	0x0412, r24	; 0x800412 <lcd_oldcardstatus>
		lcd_refresh(); // to maybe revive the LCD if static electricity killed it.
   2197e:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
		backlight_wake();
   21982:	80 e0       	ldi	r24, 0x00	; 0
   21984:	0e 94 fc 89 	call	0x113f8	; 0x113f8 <backlight_wake(unsigned char)>
		if (lcd_oldcardstatus)
   21988:	80 91 12 04 	lds	r24, 0x0412	; 0x800412 <lcd_oldcardstatus>
   2198c:	88 23       	and	r24, r24
   2198e:	09 f4       	brne	.+2      	; 0x21992 <menu_lcd_lcdupdate_func()+0x4c>
   21990:	71 c0       	rjmp	.+226    	; 0x21a74 <menu_lcd_lcdupdate_func()+0x12e>
		{
			if (!card.mounted)
   21992:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   21996:	81 11       	cpse	r24, r1
   21998:	05 c0       	rjmp	.+10     	; 0x219a4 <menu_lcd_lcdupdate_func()+0x5e>
			{
				card.mount(false); //delay the sorting to the sd menu. Otherwise, removing the SD card while sorting will not menu_back()
   2199a:	0f 94 04 82 	call	0x30408	; 0x30408 <CardReader::mount(bool) [clone .constprop.216]>
				card.presort_flag = true; //force sorting of the SD menu
   2199e:	81 e0       	ldi	r24, 0x01	; 1
   219a0:	80 93 df 14 	sts	0x14DF, r24	; 0x8014df <card+0x51>
			}
			LCD_MESSAGERPGM(MSG_WELCOME);
   219a4:	8f ec       	ldi	r24, 0xCF	; 207
   219a6:	9f e6       	ldi	r25, 0x6F	; 111
   219a8:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
			bMain=false;                       // flag (i.e. 'fake parameter') for 'lcd_sdcard_menu()' function
   219ac:	10 92 e1 03 	sts	0x03E1, r1	; 0x8003e1 <bMain>
			menu_submenu(lcd_sdcard_menu, true);
   219b0:	61 e0       	ldi	r22, 0x01	; 1
   219b2:	83 e5       	ldi	r24, 0x53	; 83
   219b4:	92 ef       	ldi	r25, 0xF2	; 242
   219b6:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
			lcd_timeoutToStatus.start();
   219ba:	8c ed       	ldi	r24, 0xDC	; 220
   219bc:	93 e0       	ldi	r25, 0x03	; 3
   219be:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
			card.release();
			LCD_MESSAGERPGM(_T(MSG_SD_REMOVED));
		}
	}
#endif//CARDINSERTED
	if (lcd_next_update_millis < _millis())
   219c2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   219c6:	00 91 d8 03 	lds	r16, 0x03D8	; 0x8003d8 <lcd_next_update_millis>
   219ca:	10 91 d9 03 	lds	r17, 0x03D9	; 0x8003d9 <lcd_next_update_millis+0x1>
   219ce:	20 91 da 03 	lds	r18, 0x03DA	; 0x8003da <lcd_next_update_millis+0x2>
   219d2:	30 91 db 03 	lds	r19, 0x03DB	; 0x8003db <lcd_next_update_millis+0x3>
   219d6:	06 17       	cp	r16, r22
   219d8:	17 07       	cpc	r17, r23
   219da:	28 07       	cpc	r18, r24
   219dc:	39 07       	cpc	r19, r25
   219de:	e8 f5       	brcc	.+122    	; 0x21a5a <menu_lcd_lcdupdate_func()+0x114>
	{
		if (lcd_draw_update) {
   219e0:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   219e4:	88 23       	and	r24, r24
   219e6:	31 f0       	breq	.+12     	; 0x219f4 <menu_lcd_lcdupdate_func()+0xae>
			lcd_timeoutToStatus.start();
   219e8:	8c ed       	ldi	r24, 0xDC	; 220
   219ea:	93 e0       	ldi	r25, 0x03	; 3
   219ec:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
            lcd_frame_start();
   219f0:	0e 94 1b 6e 	call	0xdc36	; 0xdc36 <lcd_frame_start()>
		}

		(*menu_menu)();
   219f4:	e0 91 13 04 	lds	r30, 0x0413	; 0x800413 <menu_menu>
   219f8:	f0 91 14 04 	lds	r31, 0x0414	; 0x800414 <menu_menu+0x1>
   219fc:	19 95       	eicall
// we should ignore lcd_timeoutToStatus. Example use case is
// when running first layer calibration.
static inline bool z_menu_expired()
{
    return (menu_menu == lcd_babystep_z
        && (!babystep_allowed() || (lcd_commands_type == LcdCommands::Idle && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS_BABYSTEP_Z))));
   219fe:	80 91 13 04 	lds	r24, 0x0413	; 0x800413 <menu_menu>
   21a02:	90 91 14 04 	lds	r25, 0x0414	; 0x800414 <menu_menu+0x1>
   21a06:	88 58       	subi	r24, 0x88	; 136
   21a08:	9a 43       	sbci	r25, 0x3A	; 58
   21a0a:	09 f4       	brne	.+2      	; 0x21a0e <menu_lcd_lcdupdate_func()+0xc8>
   21a0c:	46 c0       	rjmp	.+140    	; 0x21a9a <menu_lcd_lcdupdate_func()+0x154>
}
static inline bool other_menu_expired()
{
    return (menu_menu != lcd_status_screen
   21a0e:	80 91 13 04 	lds	r24, 0x0413	; 0x800413 <menu_menu>
   21a12:	90 91 14 04 	lds	r25, 0x0414	; 0x800414 <menu_menu+0x1>
            && menu_menu != lcd_babystep_z
            && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS));
   21a16:	2a e3       	ldi	r18, 0x3A	; 58
   21a18:	86 32       	cpi	r24, 0x26	; 38
   21a1a:	92 07       	cpc	r25, r18
   21a1c:	09 f0       	breq	.+2      	; 0x21a20 <menu_lcd_lcdupdate_func()+0xda>
   21a1e:	5e c0       	rjmp	.+188    	; 0x21adc <menu_lcd_lcdupdate_func()+0x196>
			}
			lcd_clear();
			lcd_return_to_status();
			lcd_draw_update = 2;
		}
		if (lcd_draw_update == 2) lcdui_refresh();
   21a20:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   21a24:	82 30       	cpi	r24, 0x02	; 2
   21a26:	21 f4       	brne	.+8      	; 0x21a30 <menu_lcd_lcdupdate_func()+0xea>
#endif //DEBUG_DISABLE_LCD_STATUS_LINE
}

static void lcdui_refresh(uint8_t clear = true)
{
    clear ? lcd_refresh() : lcd_refresh_noclear();
   21a28:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
    lcd_status_message_idx = 0; // Re-draw message from beginning
   21a2c:	10 92 1e 05 	sts	0x051E, r1	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
			lcd_clear();
			lcd_return_to_status();
			lcd_draw_update = 2;
		}
		if (lcd_draw_update == 2) lcdui_refresh();
		if (lcd_draw_update) lcd_draw_update--;
   21a30:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   21a34:	88 23       	and	r24, r24
   21a36:	19 f0       	breq	.+6      	; 0x21a3e <menu_lcd_lcdupdate_func()+0xf8>
   21a38:	81 50       	subi	r24, 0x01	; 1
   21a3a:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
		lcd_next_update_millis = _millis() + LCD_UPDATE_INTERVAL;
   21a3e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   21a42:	6c 59       	subi	r22, 0x9C	; 156
   21a44:	7f 4f       	sbci	r23, 0xFF	; 255
   21a46:	8f 4f       	sbci	r24, 0xFF	; 255
   21a48:	9f 4f       	sbci	r25, 0xFF	; 255
   21a4a:	60 93 d8 03 	sts	0x03D8, r22	; 0x8003d8 <lcd_next_update_millis>
   21a4e:	70 93 d9 03 	sts	0x03D9, r23	; 0x8003d9 <lcd_next_update_millis+0x1>
   21a52:	80 93 da 03 	sts	0x03DA, r24	; 0x8003da <lcd_next_update_millis+0x2>
   21a56:	90 93 db 03 	sts	0x03DB, r25	; 0x8003db <lcd_next_update_millis+0x3>
	}
	prusa_statistics_update_from_lcd_update();
	if (lcd_commands_type == LcdCommands::Layer1Cal) lcd_commands();
   21a5a:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   21a5e:	84 30       	cpi	r24, 0x04	; 4
   21a60:	09 f0       	breq	.+2      	; 0x21a64 <menu_lcd_lcdupdate_func()+0x11e>
   21a62:	53 c0       	rjmp	.+166    	; 0x21b0a <menu_lcd_lcdupdate_func()+0x1c4>
void lcd_print_stop_finish();

void lcd_commands()
{
    // printf_P(PSTR("lcd_commands begin, lcd_commands_type=%u, lcd_commands_step=%u\n"), (uint8_t)lcd_commands_type, lcd_commands_step);
    if (planner_aborted) {
   21a64:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   21a68:	81 11       	cpse	r24, r1
   21a6a:	4f c0       	rjmp	.+158    	; 0x21b0a <menu_lcd_lcdupdate_func()+0x1c4>
		if (lcd_draw_update) lcd_draw_update--;
		lcd_next_update_millis = _millis() + LCD_UPDATE_INTERVAL;
	}
	prusa_statistics_update_from_lcd_update();
	if (lcd_commands_type == LcdCommands::Layer1Cal) lcd_commands();
}
   21a6c:	1f 91       	pop	r17
   21a6e:	0f 91       	pop	r16
   21a70:	0d 94 71 07 	jmp	0x20ee2	; 0x20ee2 <lcd_commands() [clone .part.41]>
		presort_flag = true;
#endif
}
void CardReader::release()
{
  sdprinting = false;
   21a74:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
  mounted = false;
   21a78:	10 92 91 14 	sts	0x1491, r1	; 0x801491 <card+0x3>
  SERIAL_ECHO_START;
   21a7c:	80 ed       	ldi	r24, 0xD0	; 208
   21a7e:	9a ea       	ldi	r25, 0xAA	; 170
   21a80:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  SERIAL_ECHOLNRPGM(_n("SD card released"));////MSG_SD_CARD_RELEASED
   21a84:	84 ef       	ldi	r24, 0xF4	; 244
   21a86:	9a e6       	ldi	r25, 0x6A	; 106
   21a88:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
			lcd_timeoutToStatus.start();
		}
		else
		{
			card.release();
			LCD_MESSAGERPGM(_T(MSG_SD_REMOVED));
   21a8c:	80 e4       	ldi	r24, 0x40	; 64
   21a8e:	99 e4       	ldi	r25, 0x49	; 73
   21a90:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21a94:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   21a98:	94 cf       	rjmp	.-216    	; 0x219c2 <menu_lcd_lcdupdate_func()+0x7c>
// we should ignore lcd_timeoutToStatus. Example use case is
// when running first layer calibration.
static inline bool z_menu_expired()
{
    return (menu_menu == lcd_babystep_z
        && (!babystep_allowed() || (lcd_commands_type == LcdCommands::Idle && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS_BABYSTEP_Z))));
   21a9a:	0e 94 26 67 	call	0xce4c	; 0xce4c <babystep_allowed()>
   21a9e:	81 11       	cpse	r24, r1
   21aa0:	0e c0       	rjmp	.+28     	; 0x21abe <menu_lcd_lcdupdate_func()+0x178>
		if (z_menu_expired() || other_menu_expired())
		{
		// Exiting a menu. Let's call the menu function the last time with menu_leaving flag set to true
		// to give it a chance to save its state.
		// This is useful for example, when the babystep value has to be written into EEPROM.
			if (menu_menu != NULL)
   21aa2:	e0 91 13 04 	lds	r30, 0x0413	; 0x800413 <menu_menu>
   21aa6:	f0 91 14 04 	lds	r31, 0x0414	; 0x800414 <menu_menu+0x1>
   21aaa:	30 97       	sbiw	r30, 0x00	; 0
   21aac:	39 f5       	brne	.+78     	; 0x21afc <menu_lcd_lcdupdate_func()+0x1b6>
			{
				menu_leaving = 1;
				(*menu_menu)();
				menu_leaving = 0;
			}
			lcd_clear();
   21aae:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
			lcd_return_to_status();
   21ab2:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
			lcd_draw_update = 2;
   21ab6:	82 e0       	ldi	r24, 0x02	; 2
   21ab8:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
   21abc:	b1 cf       	rjmp	.-158    	; 0x21a20 <menu_lcd_lcdupdate_func()+0xda>
// we should ignore lcd_timeoutToStatus. Example use case is
// when running first layer calibration.
static inline bool z_menu_expired()
{
    return (menu_menu == lcd_babystep_z
        && (!babystep_allowed() || (lcd_commands_type == LcdCommands::Idle && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS_BABYSTEP_Z))));
   21abe:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   21ac2:	81 11       	cpse	r24, r1
   21ac4:	a4 cf       	rjmp	.-184    	; 0x21a0e <menu_lcd_lcdupdate_func()+0xc8>
   21ac6:	40 e9       	ldi	r20, 0x90	; 144
   21ac8:	5f e5       	ldi	r21, 0x5F	; 95
   21aca:	61 e0       	ldi	r22, 0x01	; 1
   21acc:	70 e0       	ldi	r23, 0x00	; 0
   21ace:	8c ed       	ldi	r24, 0xDC	; 220
   21ad0:	93 e0       	ldi	r25, 0x03	; 3
   21ad2:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   21ad6:	81 11       	cpse	r24, r1
   21ad8:	e4 cf       	rjmp	.-56     	; 0x21aa2 <menu_lcd_lcdupdate_func()+0x15c>
   21ada:	99 cf       	rjmp	.-206    	; 0x21a0e <menu_lcd_lcdupdate_func()+0xc8>
}
static inline bool other_menu_expired()
{
    return (menu_menu != lcd_status_screen
            && menu_menu != lcd_babystep_z
   21adc:	88 58       	subi	r24, 0x88	; 136
   21ade:	9a 43       	sbci	r25, 0x3A	; 58
   21ae0:	09 f4       	brne	.+2      	; 0x21ae4 <menu_lcd_lcdupdate_func()+0x19e>
   21ae2:	9e cf       	rjmp	.-196    	; 0x21a20 <menu_lcd_lcdupdate_func()+0xda>
            && lcd_timeoutToStatus.expired(LCD_TIMEOUT_TO_STATUS));
   21ae4:	40 e3       	ldi	r20, 0x30	; 48
   21ae6:	55 e7       	ldi	r21, 0x75	; 117
   21ae8:	60 e0       	ldi	r22, 0x00	; 0
   21aea:	70 e0       	ldi	r23, 0x00	; 0
   21aec:	8c ed       	ldi	r24, 0xDC	; 220
   21aee:	93 e0       	ldi	r25, 0x03	; 3
   21af0:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   21af4:	88 23       	and	r24, r24
   21af6:	09 f4       	brne	.+2      	; 0x21afa <menu_lcd_lcdupdate_func()+0x1b4>
   21af8:	93 cf       	rjmp	.-218    	; 0x21a20 <menu_lcd_lcdupdate_func()+0xda>
   21afa:	d3 cf       	rjmp	.-90     	; 0x21aa2 <menu_lcd_lcdupdate_func()+0x15c>
		// Exiting a menu. Let's call the menu function the last time with menu_leaving flag set to true
		// to give it a chance to save its state.
		// This is useful for example, when the babystep value has to be written into EEPROM.
			if (menu_menu != NULL)
			{
				menu_leaving = 1;
   21afc:	81 e0       	ldi	r24, 0x01	; 1
   21afe:	80 93 d7 03 	sts	0x03D7, r24	; 0x8003d7 <menu_leaving>
				(*menu_menu)();
   21b02:	19 95       	eicall
				menu_leaving = 0;
   21b04:	10 92 d7 03 	sts	0x03D7, r1	; 0x8003d7 <menu_leaving>
   21b08:	d2 cf       	rjmp	.-92     	; 0x21aae <menu_lcd_lcdupdate_func()+0x168>
		if (lcd_draw_update) lcd_draw_update--;
		lcd_next_update_millis = _millis() + LCD_UPDATE_INTERVAL;
	}
	prusa_statistics_update_from_lcd_update();
	if (lcd_commands_type == LcdCommands::Layer1Cal) lcd_commands();
}
   21b0a:	1f 91       	pop	r17
   21b0c:	0f 91       	pop	r16
   21b0e:	08 95       	ret

00021b10 <lcd_wizard()>:
	menu_goto(lcd_generic_preheat_menu, 0, true);
}

void lcd_wizard() {
	bool result = true;
	if (calibration_status_get(CALIBRATION_WIZARD_STEPS)) {
   21b10:	8f e1       	ldi	r24, 0x1F	; 31
   21b12:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   21b16:	81 11       	cpse	r24, r1
   21b18:	06 c0       	rjmp	.+12     	; 0x21b26 <lcd_wizard()+0x16>
		// calibration already performed: ask before clearing the previous status
		result = !lcd_show_multiscreen_message_cont_cancel_and_wait_P(_T(MSG_WIZARD_RERUN), false);
	}
	if (result) {
		calibration_status_clear(CALIBRATION_WIZARD_STEPS);
   21b1a:	8f e1       	ldi	r24, 0x1F	; 31
   21b1c:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
		lcd_wizard(WizState::Run);
   21b20:	80 e0       	ldi	r24, 0x00	; 0
   21b22:	0c 94 e0 f9 	jmp	0x1f3c0	; 0x1f3c0 <lcd_wizard(WizState)>

void lcd_wizard() {
	bool result = true;
	if (calibration_status_get(CALIBRATION_WIZARD_STEPS)) {
		// calibration already performed: ask before clearing the previous status
		result = !lcd_show_multiscreen_message_cont_cancel_and_wait_P(_T(MSG_WIZARD_RERUN), false);
   21b26:	88 e7       	ldi	r24, 0x78	; 120
   21b28:	9b e3       	ldi	r25, 0x3B	; 59
   21b2a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21b2e:	41 e0       	ldi	r20, 0x01	; 1
   21b30:	60 e0       	ldi	r22, 0x00	; 0
   21b32:	0f 94 4c 50 	call	0x2a098	; 0x2a098 <lcd_show_multiscreen_message_cont_cancel_and_wait_P(char const*, bool, unsigned char)>
	}
	if (result) {
   21b36:	88 23       	and	r24, r24
   21b38:	81 f3       	breq	.-32     	; 0x21b1a <lcd_wizard()+0xa>
		calibration_status_clear(CALIBRATION_WIZARD_STEPS);
		lcd_wizard(WizState::Run);
	} else {
		lcd_return_to_status();
   21b3a:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
		lcd_update_enable(true);
   21b3e:	81 e0       	ldi	r24, 0x01	; 1
   21b40:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
		lcd_update(2);
   21b44:	82 e0       	ldi	r24, 0x02	; 2
   21b46:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

00021b4a <prompt_steel_sheet_on_bed(bool)>:
    if (result == LCD_LEFT_BUTTON_CHOICE) {
        lcd_mesh_calibration_z();
    }
}

void prompt_steel_sheet_on_bed(bool wantedState) {
   21b4a:	cf 93       	push	r28
   21b4c:	c8 2f       	mov	r28, r24
#ifdef STEEL_SHEET
    bool sheetIsOnBed = !lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false, !wantedState);
   21b4e:	83 e6       	ldi	r24, 0x63	; 99
   21b50:	9e e3       	ldi	r25, 0x3E	; 62
   21b52:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21b56:	41 e0       	ldi	r20, 0x01	; 1
   21b58:	4c 27       	eor	r20, r28
   21b5a:	60 e0       	ldi	r22, 0x00	; 0
   21b5c:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
   21b60:	91 e0       	ldi	r25, 0x01	; 1
   21b62:	81 11       	cpse	r24, r1
   21b64:	90 e0       	ldi	r25, 0x00	; 0
    if (sheetIsOnBed != wantedState) {
   21b66:	c9 17       	cp	r28, r25
   21b68:	59 f0       	breq	.+22     	; 0x21b80 <prompt_steel_sheet_on_bed(bool)+0x36>
        lcd_show_fullscreen_message_and_wait_P(_T(wantedState ? MSG_PLACE_STEEL_SHEET : MSG_REMOVE_STEEL_SHEET));
   21b6a:	89 e3       	ldi	r24, 0x39	; 57
   21b6c:	9e e3       	ldi	r25, 0x3E	; 62
   21b6e:	cc 23       	and	r28, r28
   21b70:	11 f0       	breq	.+4      	; 0x21b76 <prompt_steel_sheet_on_bed(bool)+0x2c>
   21b72:	8b e5       	ldi	r24, 0x5B	; 91
   21b74:	99 e5       	ldi	r25, 0x59	; 89
   21b76:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
    }
#endif //STEEL_SHEET
}
   21b7a:	cf 91       	pop	r28

void prompt_steel_sheet_on_bed(bool wantedState) {
#ifdef STEEL_SHEET
    bool sheetIsOnBed = !lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_STEEL_SHEET_CHECK), false, !wantedState);
    if (sheetIsOnBed != wantedState) {
        lcd_show_fullscreen_message_and_wait_P(_T(wantedState ? MSG_PLACE_STEEL_SHEET : MSG_REMOVE_STEEL_SHEET));
   21b7c:	0d 94 fd 20 	jmp	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
    }
#endif //STEEL_SHEET
}
   21b80:	cf 91       	pop	r28
   21b82:	08 95       	ret

00021b84 <lcd_z_calibration_prompt(bool)>:
    }
    lcd_show_fullscreen_message_and_wait_P(
            _T(MSG_WIZARD_V2_CAL_2));
}

void lcd_z_calibration_prompt(bool allowTimeouting) {
   21b84:	cf 93       	push	r28
   21b86:	c8 2f       	mov	r28, r24
    uint8_t result = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_Z_CALIBRATION_PROMPT), allowTimeouting, 0);
   21b88:	80 e1       	ldi	r24, 0x10	; 16
   21b8a:	9e e3       	ldi	r25, 0x3E	; 62
   21b8c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21b90:	40 e0       	ldi	r20, 0x00	; 0
   21b92:	6c 2f       	mov	r22, r28
   21b94:	0f 94 75 50 	call	0x2a0ea	; 0x2a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>
    if (result == LCD_LEFT_BUTTON_CHOICE) {
   21b98:	81 11       	cpse	r24, r1
   21b9a:	03 c0       	rjmp	.+6      	; 0x21ba2 <lcd_z_calibration_prompt(bool)+0x1e>
        lcd_mesh_calibration_z();
    }
}
   21b9c:	cf 91       	pop	r28
}

void lcd_z_calibration_prompt(bool allowTimeouting) {
    uint8_t result = lcd_show_multiscreen_message_yes_no_and_wait_P(_T(MSG_Z_CALIBRATION_PROMPT), allowTimeouting, 0);
    if (result == LCD_LEFT_BUTTON_CHOICE) {
        lcd_mesh_calibration_z();
   21b9e:	0c 94 7b cf 	jmp	0x19ef6	; 0x19ef6 <lcd_mesh_calibration_z()>
    }
}
   21ba2:	cf 91       	pop	r28
   21ba4:	08 95       	ret

00021ba6 <lcd_mesh_bed_leveling_settings()>:
	}
	eeprom_update_byte_notify((uint8_t*)EEPROM_MBL_PROBE_NR, mbl_z_probe_nr);
}

static void lcd_mesh_bed_leveling_settings()
{
   21ba6:	bf 92       	push	r11
   21ba8:	cf 92       	push	r12
   21baa:	df 92       	push	r13
   21bac:	ef 92       	push	r14
   21bae:	ff 92       	push	r15
   21bb0:	0f 93       	push	r16
   21bb2:	1f 93       	push	r17
   21bb4:	cf 93       	push	r28
   21bb6:	df 93       	push	r29
   21bb8:	00 d0       	rcall	.+0      	; 0x21bba <lcd_mesh_bed_leveling_settings()+0x14>
   21bba:	1f 92       	push	r1
   21bbc:	cd b7       	in	r28, 0x3d	; 61
   21bbe:	de b7       	in	r29, 0x3e	; 62

	bool magnet_elimination = (eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION) > 0);
   21bc0:	8c ea       	ldi	r24, 0xAC	; 172
   21bc2:	9d e0       	ldi	r25, 0x0D	; 13
   21bc4:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   21bc8:	c8 2e       	mov	r12, r24
	uint8_t points_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
   21bca:	8b ea       	ldi	r24, 0xAB	; 171
   21bcc:	9d e0       	ldi	r25, 0x0D	; 13
   21bce:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   21bd2:	f8 2e       	mov	r15, r24
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
   21bd4:	8a ea       	ldi	r24, 0xAA	; 170
   21bd6:	9d e0       	ldi	r25, 0x0D	; 13
   21bd8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   21bdc:	18 2f       	mov	r17, r24
	char sToggle[4]; //enough for nxn format

	MENU_BEGIN();
   21bde:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   21be2:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
		if (points_nr == 7) {
            lcd_z_calibration_prompt(true);
		}
	);
	MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
	sToggle[0] = points_nr + '0';
   21be6:	80 e3       	ldi	r24, 0x30	; 48
   21be8:	d8 2e       	mov	r13, r24
   21bea:	df 0c       	add	r13, r15
	sToggle[1] = 'x';
   21bec:	98 e7       	ldi	r25, 0x78	; 120
   21bee:	b9 2e       	mov	r11, r25
	sToggle[2] = points_nr + '0';
	sToggle[3] = 0;
	MENU_ITEM_TOGGLE(_T(MSG_MESH), sToggle, mbl_mesh_toggle);
	sToggle[0] = mbl_z_probe_nr + '0';
   21bf0:	20 e3       	ldi	r18, 0x30	; 48
   21bf2:	e2 2e       	mov	r14, r18
   21bf4:	e1 0e       	add	r14, r17
	bool magnet_elimination = (eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION) > 0);
	uint8_t points_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
	char sToggle[4]; //enough for nxn format

	MENU_BEGIN();
   21bf6:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   21bfa:	84 30       	cpi	r24, 0x04	; 4
   21bfc:	08 f0       	brcs	.+2      	; 0x21c00 <lcd_mesh_bed_leveling_settings()+0x5a>
   21bfe:	56 c0       	rjmp	.+172    	; 0x21cac <lcd_mesh_bed_leveling_settings()+0x106>
   21c00:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	ON_MENU_LEAVE(
   21c04:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   21c08:	88 23       	and	r24, r24
   21c0a:	31 f0       	breq	.+12     	; 0x21c18 <lcd_mesh_bed_leveling_settings()+0x72>
   21c0c:	87 e0       	ldi	r24, 0x07	; 7
   21c0e:	f8 12       	cpse	r15, r24
   21c10:	03 c0       	rjmp	.+6      	; 0x21c18 <lcd_mesh_bed_leveling_settings()+0x72>
   21c12:	81 e0       	ldi	r24, 0x01	; 1
   21c14:	0f 94 c2 0d 	call	0x21b84	; 0x21b84 <lcd_z_calibration_prompt(bool)>
		// Prompt user to run Z calibration for best results with region MBL.
		if (points_nr == 7) {
            lcd_z_calibration_prompt(true);
		}
	);
	MENU_ITEM_BACK_P(_T(MSG_SETTINGS));
   21c18:	8a ee       	ldi	r24, 0xEA	; 234
   21c1a:	97 e4       	ldi	r25, 0x47	; 71
   21c1c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21c20:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	sToggle[0] = points_nr + '0';
   21c24:	d9 82       	std	Y+1, r13	; 0x01
	sToggle[1] = 'x';
   21c26:	ba 82       	std	Y+2, r11	; 0x02
	sToggle[2] = points_nr + '0';
   21c28:	db 82       	std	Y+3, r13	; 0x03
	sToggle[3] = 0;
   21c2a:	1c 82       	std	Y+4, r1	; 0x04
	MENU_ITEM_TOGGLE(_T(MSG_MESH), sToggle, mbl_mesh_toggle);
   21c2c:	8e e9       	ldi	r24, 0x9E	; 158
   21c2e:	97 e4       	ldi	r25, 0x47	; 71
   21c30:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21c34:	20 e0       	ldi	r18, 0x00	; 0
   21c36:	44 e4       	ldi	r20, 0x44	; 68
   21c38:	50 ed       	ldi	r21, 0xD0	; 208
   21c3a:	be 01       	movw	r22, r28
   21c3c:	6f 5f       	subi	r22, 0xFF	; 255
   21c3e:	7f 4f       	sbci	r23, 0xFF	; 255
   21c40:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
	sToggle[0] = mbl_z_probe_nr + '0';
   21c44:	e9 82       	std	Y+1, r14	; 0x01
	sToggle[1] = 0;
   21c46:	1a 82       	std	Y+2, r1	; 0x02
	MENU_ITEM_TOGGLE(_T(MSG_Z_PROBE_NR), sToggle, mbl_probe_nr_toggle);
   21c48:	80 e9       	ldi	r24, 0x90	; 144
   21c4a:	97 e4       	ldi	r25, 0x47	; 71
   21c4c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21c50:	20 e0       	ldi	r18, 0x00	; 0
   21c52:	45 e3       	ldi	r20, 0x35	; 53
   21c54:	50 ed       	ldi	r21, 0xD0	; 208
   21c56:	be 01       	movw	r22, r28
   21c58:	6f 5f       	subi	r22, 0xFF	; 255
   21c5a:	7f 4f       	sbci	r23, 0xFF	; 255
   21c5c:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
	MENU_ITEM_TOGGLE_P(_T(MSG_MAGNETS_COMP), (points_nr == 7) ? (magnet_elimination ? _T(MSG_ON): _T(MSG_OFF)) : _T(MSG_NA), mbl_magnets_elimination_toggle);
   21c60:	87 e0       	ldi	r24, 0x07	; 7
   21c62:	f8 12       	cpse	r15, r24
   21c64:	20 c0       	rjmp	.+64     	; 0x21ca6 <lcd_mesh_bed_leveling_settings()+0x100>
   21c66:	87 e1       	ldi	r24, 0x17	; 23
   21c68:	9c e5       	ldi	r25, 0x5C	; 92
   21c6a:	c1 10       	cpse	r12, r1
   21c6c:	02 c0       	rjmp	.+4      	; 0x21c72 <lcd_mesh_bed_leveling_settings()+0xcc>
   21c6e:	81 e1       	ldi	r24, 0x11	; 17
   21c70:	9c e5       	ldi	r25, 0x5C	; 92
   21c72:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21c76:	8c 01       	movw	r16, r24
   21c78:	8a e7       	ldi	r24, 0x7A	; 122
   21c7a:	97 e4       	ldi	r25, 0x47	; 71
   21c7c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21c80:	22 e0       	ldi	r18, 0x02	; 2
   21c82:	40 e5       	ldi	r20, 0x50	; 80
   21c84:	50 ed       	ldi	r21, 0xD0	; 208
   21c86:	b8 01       	movw	r22, r16
   21c88:	0f 94 64 d3 	call	0x3a6c8	; 0x3a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>
	MENU_END();
   21c8c:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
	bool magnet_elimination = (eeprom_read_byte((uint8_t*)EEPROM_MBL_MAGNET_ELIMINATION) > 0);
	uint8_t points_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_POINTS_NR);
	uint8_t mbl_z_probe_nr = eeprom_read_byte((uint8_t*)EEPROM_MBL_PROBE_NR);
	char sToggle[4]; //enough for nxn format

	MENU_BEGIN();
   21c90:	90 91 12 05 	lds	r25, 0x0512	; 0x800512 <menu_row>
   21c94:	9f 5f       	subi	r25, 0xFF	; 255
   21c96:	90 93 12 05 	sts	0x0512, r25	; 0x800512 <menu_row>
   21c9a:	90 91 14 05 	lds	r25, 0x0514	; 0x800514 <menu_line>
   21c9e:	9f 5f       	subi	r25, 0xFF	; 255
   21ca0:	90 93 14 05 	sts	0x0514, r25	; 0x800514 <menu_line>
   21ca4:	a8 cf       	rjmp	.-176    	; 0x21bf6 <lcd_mesh_bed_leveling_settings()+0x50>
	sToggle[3] = 0;
	MENU_ITEM_TOGGLE(_T(MSG_MESH), sToggle, mbl_mesh_toggle);
	sToggle[0] = mbl_z_probe_nr + '0';
	sToggle[1] = 0;
	MENU_ITEM_TOGGLE(_T(MSG_Z_PROBE_NR), sToggle, mbl_probe_nr_toggle);
	MENU_ITEM_TOGGLE_P(_T(MSG_MAGNETS_COMP), (points_nr == 7) ? (magnet_elimination ? _T(MSG_ON): _T(MSG_OFF)) : _T(MSG_NA), mbl_magnets_elimination_toggle);
   21ca6:	8a e8       	ldi	r24, 0x8A	; 138
   21ca8:	97 e4       	ldi	r25, 0x47	; 71
   21caa:	e3 cf       	rjmp	.-58     	; 0x21c72 <lcd_mesh_bed_leveling_settings()+0xcc>
	MENU_END();
}
   21cac:	0f 90       	pop	r0
   21cae:	0f 90       	pop	r0
   21cb0:	0f 90       	pop	r0
   21cb2:	0f 90       	pop	r0
   21cb4:	df 91       	pop	r29
   21cb6:	cf 91       	pop	r28
   21cb8:	1f 91       	pop	r17
   21cba:	0f 91       	pop	r16
   21cbc:	ff 90       	pop	r15
   21cbe:	ef 90       	pop	r14
   21cc0:	df 90       	pop	r13
   21cc2:	cf 90       	pop	r12
   21cc4:	bf 90       	pop	r11
   21cc6:	08 95       	ret

00021cc8 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]>:
        }
    }
    return false; // couldn't accomplish the task
}

void MMU2::ToolChangeCommon(uint8_t slot) {
   21cc8:	2f 92       	push	r2
   21cca:	3f 92       	push	r3
   21ccc:	4f 92       	push	r4
   21cce:	5f 92       	push	r5
   21cd0:	6f 92       	push	r6
   21cd2:	7f 92       	push	r7
   21cd4:	8f 92       	push	r8
   21cd6:	9f 92       	push	r9
   21cd8:	af 92       	push	r10
   21cda:	bf 92       	push	r11
   21cdc:	cf 92       	push	r12
   21cde:	df 92       	push	r13
   21ce0:	ef 92       	push	r14
   21ce2:	ff 92       	push	r15
   21ce4:	0f 93       	push	r16
   21ce6:	1f 93       	push	r17
   21ce8:	cf 93       	push	r28
   21cea:	df 93       	push	r29
   21cec:	cd b7       	in	r28, 0x3d	; 61
   21cee:	de b7       	in	r29, 0x3e	; 62
   21cf0:	67 97       	sbiw	r28, 0x17	; 23
   21cf2:	0f b6       	in	r0, 0x3f	; 63
   21cf4:	f8 94       	cli
   21cf6:	de bf       	out	0x3e, r29	; 62
   21cf8:	0f be       	out	0x3f, r0	; 63
   21cfa:	cd bf       	out	0x3d, r28	; 61
   21cfc:	08 2f       	mov	r16, r24
   21cfe:	ce 01       	movw	r24, r28
   21d00:	46 96       	adiw	r24, 0x16	; 22
   21d02:	9f 8b       	std	Y+23, r25	; 0x17
   21d04:	8e 8b       	std	Y+22, r24	; 0x16
   21d06:	83 e0       	ldi	r24, 0x03	; 3
   21d08:	f8 2e       	mov	r15, r24
    lcd_draw_update = 1; // force redraw
}

void lcd_clearstatus()
{
    memset(lcd_status_message, 0, sizeof(lcd_status_message));
   21d0a:	95 e1       	ldi	r25, 0x15	; 21
   21d0c:	29 2e       	mov	r2, r25

bool MMU2::ToolChangeCommonOnce(uint8_t slot) {
    static_assert(MAX_RETRIES > 1); // need >1 retries to do the cut in the last attempt
    for (uint8_t retries = MAX_RETRIES; retries; --retries) {
        for (;;) {
            Disable_E0(); // it may seem counterintuitive to disable the E-motor, but it gets enabled in the planner whenever the E-motor is to move
   21d0e:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
            tool_change_extruder = slot;
   21d12:	00 93 a2 13 	sts	0x13A2, r16	; 0x8013a2 <MMU2::mmu2+0x57>
    state = State::Stopped;
    currentScope = Scope::Stopped;
}

void ProtocolLogic::ToolChange(uint8_t slot) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Tool, slot));
   21d16:	40 2f       	mov	r20, r16
   21d18:	64 e5       	ldi	r22, 0x54	; 84
   21d1a:	ce 01       	movw	r24, r28
   21d1c:	01 96       	adiw	r24, 0x01	; 1
   21d1e:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   21d22:	49 81       	ldd	r20, Y+1	; 0x01
   21d24:	5a 81       	ldd	r21, Y+2	; 0x02
   21d26:	6b 81       	ldd	r22, Y+3	; 0x03
   21d28:	7c 81       	ldd	r23, Y+4	; 0x04
   21d2a:	8d 81       	ldd	r24, Y+5	; 0x05
   21d2c:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
            logic.ToolChange(slot); // let the MMU pull the filament out and push a new one in
            if (manage_response(true, true)) {
   21d30:	61 e0       	ldi	r22, 0x01	; 1
   21d32:	81 e0       	ldi	r24, 0x01	; 1
   21d34:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   21d38:	18 2f       	mov	r17, r24
   21d3a:	81 11       	cpse	r24, r1
   21d3c:	07 c0       	rjmp	.+14     	; 0x21d4c <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x84>
                break;
            }
            // otherwise: failed to perform the command - unload first and then let it run again
            IncrementMMUFails();
   21d3e:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>

            // just in case we stood in an error screen for too long and the hotend got cold
            ResumeHotendTemp();
   21d42:	0f 94 53 ac 	call	0x358a6	; 0x358a6 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]>
            // if the extruder has been parked, it will get unparked once the ToolChange command finishes OK
            // - so no ResumeUnpark() at this spot

            UnloadInner();
   21d46:	0f 94 43 ad 	call	0x35a86	; 0x35a86 <MMU2::MMU2::UnloadInner() [clone .constprop.130]>
   21d4a:	e1 cf       	rjmp	.-62     	; 0x21d0e <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x46>
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   21d4c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
}

bool MMU2::VerifyFilamentEnteredPTFE() {
    planner_synchronize();

    if (WhereIsFilament() != FilamentState::AT_FSENSOR)
   21d50:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   21d54:	81 30       	cpi	r24, 0x01	; 1
   21d56:	79 f1       	breq	.+94     	; 0x21db6 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0xee>
            // something else is seriously broken and stopping a print is probably our best option.
        }
        if (VerifyFilamentEnteredPTFE()) {
            return true; // success
        } else { // Prepare a retry attempt
            UnloadInner();
   21d58:	0f 94 43 ad 	call	0x35a86	; 0x35a86 <MMU2::MMU2::UnloadInner() [clone .constprop.130]>
            if (retries == 2 && cutter_enabled()) {
   21d5c:	92 e0       	ldi	r25, 0x02	; 2
   21d5e:	f9 12       	cpse	r15, r25
   21d60:	09 c0       	rjmp	.+18     	; 0x21d74 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0xac>
    eeprom_increment_byte((uint8_t *)EEPROM_MMU_FAIL);
    eeprom_increment_word((uint16_t *)EEPROM_MMU_FAIL_TOT);
}

bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
   21d62:	8e ec       	ldi	r24, 0xCE	; 206
   21d64:	9e e0       	ldi	r25, 0x0E	; 14
   21d66:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   21d6a:	81 30       	cpi	r24, 0x01	; 1
   21d6c:	19 f4       	brne	.+6      	; 0x21d74 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0xac>
                CutFilamentInner(slot); // try cutting filament tip at the last attempt
   21d6e:	80 2f       	mov	r24, r16
   21d70:	0f 94 2a ae 	call	0x35c54	; 0x35c54 <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]>
   21d74:	fa 94       	dec	r15
    return filament_inserted;
}

bool MMU2::ToolChangeCommonOnce(uint8_t slot) {
    static_assert(MAX_RETRIES > 1); // need >1 retries to do the cut in the last attempt
    for (uint8_t retries = MAX_RETRIES; retries; --retries) {
   21d76:	f1 10       	cpse	r15, r1
   21d78:	ca cf       	rjmp	.-108    	; 0x21d0e <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x46>
    return false; // couldn't accomplish the task
}

void MMU2::ToolChangeCommon(uint8_t slot) {
    while (!ToolChangeCommonOnce(slot)) { // while not successfully fed into extruder's PTFE tube
        if (planner_draining()) {
   21d7a:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   21d7e:	88 23       	and	r24, r24
   21d80:	09 f4       	brne	.+2      	; 0x21d84 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0xbc>
   21d82:	ef c0       	rjmp	.+478    	; 0x21f62 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x29a>

    SetCurrentTool(slot); // filament change is finished
    SpoolJoin::spooljoin.setSlot(slot);

    ++toolchange_counter;
}
   21d84:	67 96       	adiw	r28, 0x17	; 23
   21d86:	0f b6       	in	r0, 0x3f	; 63
   21d88:	f8 94       	cli
   21d8a:	de bf       	out	0x3e, r29	; 62
   21d8c:	0f be       	out	0x3f, r0	; 63
   21d8e:	cd bf       	out	0x3d, r28	; 61
   21d90:	df 91       	pop	r29
   21d92:	cf 91       	pop	r28
   21d94:	1f 91       	pop	r17
   21d96:	0f 91       	pop	r16
   21d98:	ff 90       	pop	r15
   21d9a:	ef 90       	pop	r14
   21d9c:	df 90       	pop	r13
   21d9e:	cf 90       	pop	r12
   21da0:	bf 90       	pop	r11
   21da2:	af 90       	pop	r10
   21da4:	9f 90       	pop	r9
   21da6:	8f 90       	pop	r8
   21da8:	7f 90       	pop	r7
   21daa:	6f 90       	pop	r6
   21dac:	5f 90       	pop	r5
   21dae:	4f 90       	pop	r4
   21db0:	3f 90       	pop	r3
   21db2:	2f 90       	pop	r2
   21db4:	08 95       	ret
    if (WhereIsFilament() != FilamentState::AT_FSENSOR)
        return false;

    // MMU has finished its load, push the filament further by some defined constant length
    // If the filament sensor reads 0 at any moment, then report FAILURE
    const float tryload_length = MMU2_CHECK_FILAMENT_PRESENCE_EXTRUSION_LENGTH - logic.ExtraLoadDistance();
   21db6:	60 91 97 13 	lds	r22, 0x1397	; 0x801397 <MMU2::mmu2+0x4c>
   21dba:	70 e0       	ldi	r23, 0x00	; 0
   21dbc:	90 e0       	ldi	r25, 0x00	; 0
   21dbe:	80 e0       	ldi	r24, 0x00	; 0
   21dc0:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   21dc4:	9b 01       	movw	r18, r22
   21dc6:	ac 01       	movw	r20, r24
   21dc8:	66 e6       	ldi	r22, 0x66	; 102
   21dca:	76 e6       	ldi	r23, 0x66	; 102
   21dcc:	8d e9       	ldi	r24, 0x9D	; 157
   21dce:	92 e4       	ldi	r25, 0x42	; 66
   21dd0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   21dd4:	36 2e       	mov	r3, r22
   21dd6:	87 2e       	mov	r8, r23
   21dd8:	98 2e       	mov	r9, r24
   21dda:	e9 2e       	mov	r14, r25

TryLoadUnloadReporter::TryLoadUnloadReporter(float delta_mm)
: dpixel0(0)
, dpixel1(0)
, lcd_cursor_col(0)
, pixel_per_mm(0.5F * float(LCD_WIDTH) / (delta_mm))
   21ddc:	26 2f       	mov	r18, r22
   21dde:	37 2f       	mov	r19, r23
   21de0:	48 2f       	mov	r20, r24
   21de2:	59 2f       	mov	r21, r25
   21de4:	60 e0       	ldi	r22, 0x00	; 0
   21de6:	70 e0       	ldi	r23, 0x00	; 0
   21de8:	80 e2       	ldi	r24, 0x20	; 32
   21dea:	91 e4       	ldi	r25, 0x41	; 65
   21dec:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   21df0:	2b 01       	movw	r4, r22
   21df2:	3c 01       	movw	r6, r24
   21df4:	ef e1       	ldi	r30, 0x1F	; 31
   21df6:	f5 e0       	ldi	r31, 0x05	; 5
   21df8:	82 2d       	mov	r24, r2
   21dfa:	11 92       	st	Z+, r1
   21dfc:	8a 95       	dec	r24
   21dfe:	e9 f7       	brne	.-6      	; 0x21dfa <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x132>
    lcd_status_message_idx = 0;
   21e00:	10 92 1e 05 	sts	0x051E, r1	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
    bool filament_inserted = true; // expect success
    // Pixel index will go from 0 to 10, then back from 10 to 0
    // The change in this number is used to indicate a new pixel
    // should be drawn on the display
    for (uint8_t move = 0; move < 2; move++) {
        extruder_move(move == 0 ? tryload_length : -tryload_length, MMU2_VERIFY_LOAD_TO_NOZZLE_FEED_RATE);
   21e04:	83 2d       	mov	r24, r3
   21e06:	98 2d       	mov	r25, r8
   21e08:	a9 2d       	mov	r26, r9
   21e0a:	be 2d       	mov	r27, r14
   21e0c:	bc 01       	movw	r22, r24
   21e0e:	cd 01       	movw	r24, r26

    bool filament_inserted = true; // expect success
    // Pixel index will go from 0 to 10, then back from 10 to 0
    // The change in this number is used to indicate a new pixel
    // should be drawn on the display
    for (uint8_t move = 0; move < 2; move++) {
   21e10:	91 2c       	mov	r9, r1
   21e12:	31 2c       	mov	r3, r1
   21e14:	e1 2c       	mov	r14, r1
        extruder_move(move == 0 ? tryload_length : -tryload_length, MMU2_VERIFY_LOAD_TO_NOZZLE_FEED_RATE);
   21e16:	5b 01       	movw	r10, r22
   21e18:	6c 01       	movw	r12, r24
   21e1a:	d7 fa       	bst	r13, 7
   21e1c:	d0 94       	com	r13
   21e1e:	d7 f8       	bld	r13, 7
   21e20:	d0 94       	com	r13
   21e22:	20 e0       	ldi	r18, 0x00	; 0
   21e24:	30 e0       	ldi	r19, 0x00	; 0
   21e26:	48 e4       	ldi	r20, 0x48	; 72
   21e28:	52 e4       	ldi	r21, 0x42	; 66
   21e2a:	0f 94 f0 c5 	call	0x38be0	; 0x38be0 <MMU2::extruder_move(float, float)>
   21e2e:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   21e32:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
        while (planner_any_moves()) {
   21e36:	98 17       	cp	r25, r24
   21e38:	09 f4       	brne	.+2      	; 0x21e3c <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x174>
   21e3a:	49 c0       	rjmp	.+146    	; 0x21ece <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x206>
            filament_inserted = filament_inserted && (WhereIsFilament() == FilamentState::AT_FSENSOR);
   21e3c:	11 23       	and	r17, r17
   21e3e:	31 f0       	breq	.+12     	; 0x21e4c <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x184>
   21e40:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   21e44:	11 e0       	ldi	r17, 0x01	; 1
   21e46:	81 30       	cpi	r24, 0x01	; 1
   21e48:	09 f0       	breq	.+2      	; 0x21e4c <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x184>
   21e4a:	10 e0       	ldi	r17, 0x00	; 0
float planner_get_machine_position_E_mm() {
    return current_position[E_AXIS];
}

float stepper_get_machine_position_E_mm() {
    return st_get_position_mm(E_AXIS);
   21e4c:	83 e0       	ldi	r24, 0x03	; 3
   21e4e:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
    if (!lcd_update_enabled) lcdui_print_status_line();
}

void TryLoadUnloadReporter::Progress(bool sensorState){
    // Always round up, you can only have 'whole' pixels. (floor is also an option)
    dpixel1 = ceil((stepper_get_machine_position_E_mm() - planner_get_current_position_E()) * pixel_per_mm);
   21e52:	20 91 9e 06 	lds	r18, 0x069E	; 0x80069e <current_position+0xc>
   21e56:	30 91 9f 06 	lds	r19, 0x069F	; 0x80069f <current_position+0xd>
   21e5a:	40 91 a0 06 	lds	r20, 0x06A0	; 0x8006a0 <current_position+0xe>
   21e5e:	50 91 a1 06 	lds	r21, 0x06A1	; 0x8006a1 <current_position+0xf>
   21e62:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   21e66:	a3 01       	movw	r20, r6
   21e68:	92 01       	movw	r18, r4
   21e6a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   21e6e:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   21e72:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   21e76:	86 2e       	mov	r8, r22
    if (dpixel1 - dpixel0) {
   21e78:	e6 16       	cp	r14, r22
   21e7a:	c1 f0       	breq	.+48     	; 0x21eac <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1e4>
   21e7c:	e3 2d       	mov	r30, r3
   21e7e:	e4 31       	cpi	r30, 0x14	; 20
   21e80:	08 f0       	brcs	.+2      	; 0x21e84 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1bc>
   21e82:	e3 e1       	ldi	r30, 0x13	; 19
        dpixel0 = dpixel1;
        if (lcd_cursor_col > (LCD_WIDTH - 1)) lcd_cursor_col = LCD_WIDTH - 1;
        Render(lcd_cursor_col++, sensorState);
   21e84:	33 24       	eor	r3, r3
   21e86:	33 94       	inc	r3
   21e88:	3e 0e       	add	r3, r30
}

void TryLoadUnloadReporter::Render(uint8_t col, bool sensorState) {
    // Set the cursor position each time in case some other
    // part of the firmware changes the cursor position
    lcd_insert_char_into_status(col, sensorState ? LCD_STR_SOLID_BLOCK[0] : '-');
   21e8a:	8f ef       	ldi	r24, 0xFF	; 255
   21e8c:	11 11       	cpse	r17, r1
   21e8e:	01 c0       	rjmp	.+2      	; 0x21e92 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1ca>
   21e90:	8d e2       	ldi	r24, 0x2D	; 45
}

void lcd_insert_char_into_status(uint8_t position, const char message)
{
    if (position > LCD_WIDTH - 1) return;
    lcd_status_message[position] = message;
   21e92:	f0 e0       	ldi	r31, 0x00	; 0
   21e94:	e1 5e       	subi	r30, 0xE1	; 225
   21e96:	fa 4f       	sbci	r31, 0xFA	; 250
   21e98:	80 83       	st	Z, r24
    lcd_draw_update = 1; // force redraw
   21e9a:	91 e0       	ldi	r25, 0x01	; 1
   21e9c:	90 93 6d 02 	sts	0x026D, r25	; 0x80026d <lcd_draw_update>
    if (!lcd_update_enabled) lcdui_print_status_line();
   21ea0:	80 91 6e 02 	lds	r24, 0x026E	; 0x80026e <lcd_update_enabled>
   21ea4:	81 11       	cpse	r24, r1
   21ea6:	02 c0       	rjmp	.+4      	; 0x21eac <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1e4>
   21ea8:	0f 94 7f 2b 	call	0x256fe	; 0x256fe <lcdui_print_status_line()>
void thermal_setTargetHotend(int16_t t) {
    setTargetHotend(t);
}

void safe_delay_keep_alive(uint16_t t) {
    delay_keep_alive(t);
   21eac:	90 e0       	ldi	r25, 0x00	; 0
   21eae:	80 e0       	ldi	r24, 0x00	; 0
   21eb0:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
}

void TryLoadUnloadReporter::Progress(bool sensorState){
    // Always round up, you can only have 'whole' pixels. (floor is also an option)
    dpixel1 = ceil((stepper_get_machine_position_E_mm() - planner_get_current_position_E()) * pixel_per_mm);
   21eb4:	e8 2c       	mov	r14, r8
            tlur.Progress(filament_inserted);
            safe_delay_keep_alive(0);
            if (planner_draining()) {
   21eb6:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   21eba:	88 23       	and	r24, r24
   21ebc:	09 f4       	brne	.+2      	; 0x21ec0 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1f8>
   21ebe:	b7 cf       	rjmp	.-146    	; 0x21e2e <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x166>
                return false; // power panic or a similar issue happened, bail out fast
   21ec0:	10 e0       	ldi	r17, 0x00	; 0
   21ec2:	37 c0       	rjmp	.+110    	; 0x21f32 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x26a>
    bool filament_inserted = true; // expect success
    // Pixel index will go from 0 to 10, then back from 10 to 0
    // The change in this number is used to indicate a new pixel
    // should be drawn on the display
    for (uint8_t move = 0; move < 2; move++) {
        extruder_move(move == 0 ? tryload_length : -tryload_length, MMU2_VERIFY_LOAD_TO_NOZZLE_FEED_RATE);
   21ec4:	c6 01       	movw	r24, r12
   21ec6:	b5 01       	movw	r22, r10
   21ec8:	99 24       	eor	r9, r9
   21eca:	93 94       	inc	r9
   21ecc:	aa cf       	rjmp	.-172    	; 0x21e22 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x15a>

    bool filament_inserted = true; // expect success
    // Pixel index will go from 0 to 10, then back from 10 to 0
    // The change in this number is used to indicate a new pixel
    // should be drawn on the display
    for (uint8_t move = 0; move < 2; move++) {
   21ece:	91 e0       	ldi	r25, 0x01	; 1
   21ed0:	99 12       	cpse	r9, r25
   21ed2:	f8 cf       	rjmp	.-16     	; 0x21ec4 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x1fc>
                return false; // power panic or a similar issue happened, bail out fast
            }
        }
    }

    Disable_E0();
   21ed4:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
    if (!filament_inserted) {
   21ed8:	11 11       	cpse	r17, r1
   21eda:	08 c0       	rjmp	.+16     	; 0x21eec <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x224>
    eeprom_update_byte_notify((uint8_t *)EEPROM_MMU_ENABLED, false);
    mmu2.Status();
}

void IncrementLoadFails(){
    eeprom_increment_byte((uint8_t *)EEPROM_MMU_LOAD_FAIL);
   21edc:	8f ec       	ldi	r24, 0xCF	; 207
   21ede:	9e e0       	ldi	r25, 0x0E	; 14
   21ee0:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t *)EEPROM_MMU_LOAD_FAIL_TOT);
   21ee4:	80 ed       	ldi	r24, 0xD0	; 208
   21ee6:	9e e0       	ldi	r25, 0x0E	; 14
   21ee8:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>
    memset(lcd_status_message, 0, sizeof(lcd_status_message));
    lcd_status_message_idx = 0;
}

void lcd_getstatus(char buf[LCD_WIDTH]) {
    strncpy(buf, lcd_status_message, LCD_WIDTH);
   21eec:	44 e1       	ldi	r20, 0x14	; 20
   21eee:	50 e0       	ldi	r21, 0x00	; 0
   21ef0:	6f e1       	ldi	r22, 0x1F	; 31
   21ef2:	75 e0       	ldi	r23, 0x05	; 5
   21ef4:	ce 01       	movw	r24, r28
   21ef6:	01 96       	adiw	r24, 0x01	; 1
   21ef8:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
   21efc:	fe 01       	movw	r30, r28
   21efe:	31 96       	adiw	r30, 0x01	; 1
    char buf[LCD_WIDTH + 1];
    lcd_getstatus(buf);
    for (uint8_t i = 0; i < sizeof(buf); i++) {
        // 0xFF is -1 when converting from unsigned to signed char
        // If the number is negative, that means filament is present
        buf[i] = (buf[i] < 0) ? '1' : '0';
   21f00:	81 91       	ld	r24, Z+
   21f02:	87 fd       	sbrc	r24, 7
   21f04:	2c c0       	rjmp	.+88     	; 0x21f5e <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x296>
   21f06:	80 e3       	ldi	r24, 0x30	; 48
   21f08:	df 01       	movw	r26, r30
   21f0a:	11 97       	sbiw	r26, 0x01	; 1
   21f0c:	8c 93       	st	X, r24
}

void TryLoadUnloadReporter::DumpToSerial(){
    char buf[LCD_WIDTH + 1];
    lcd_getstatus(buf);
    for (uint8_t i = 0; i < sizeof(buf); i++) {
   21f0e:	8e 89       	ldd	r24, Y+22	; 0x16
   21f10:	9f 89       	ldd	r25, Y+23	; 0x17
   21f12:	8e 17       	cp	r24, r30
   21f14:	9f 07       	cpc	r25, r31
   21f16:	a1 f7       	brne	.-24     	; 0x21f00 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x238>
        // 0xFF is -1 when converting from unsigned to signed char
        // If the number is negative, that means filament is present
        buf[i] = (buf[i] < 0) ? '1' : '0';
    }
    buf[LCD_WIDTH] = 0;
   21f18:	1d 8a       	std	Y+21, r1	; 0x15
    MMU2_ECHO_MSGLN(buf);
   21f1a:	80 ed       	ldi	r24, 0xD0	; 208
   21f1c:	9a ea       	ldi	r25, 0xAA	; 170
   21f1e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   21f22:	87 e2       	ldi	r24, 0x27	; 39
   21f24:	9e e8       	ldi	r25, 0x8E	; 142
   21f26:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   21f2a:	ce 01       	movw	r24, r28
   21f2c:	01 96       	adiw	r24, 0x01	; 1
   21f2e:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
    SERIAL_ECHOLN(message);
}

void lcd_reset_status_message_timeout()
{
    lcd_status_message_timeout.start();
   21f32:	84 e3       	ldi	r24, 0x34	; 52
   21f34:	95 e0       	ldi	r25, 0x05	; 5
   21f36:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
            UnloadInner();
            // if we run out of retries, we must do something ... may be raise an error screen and allow the user to do something
            // but honestly - if the MMU restarts during every toolchange,
            // something else is seriously broken and stopping a print is probably our best option.
        }
        if (VerifyFilamentEnteredPTFE()) {
   21f3a:	11 23       	and	r17, r17
   21f3c:	09 f4       	brne	.+2      	; 0x21f40 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x278>
   21f3e:	0c cf       	rjmp	.-488    	; 0x21d58 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x90>
        // If manage_response returns false at this spot (MMU operation interrupted aka MMU reset)
        // we can safely continue because the MMU is not doing an operation now.
        static_cast<void>(manage_response(true, true)); // yes, I'd like to silence [[nodiscard]] warning at this spot by casting to void
    }

    SetCurrentTool(slot); // filament change is finished
   21f40:	80 2f       	mov	r24, r16
   21f42:	0f 94 42 88 	call	0x31084	; 0x31084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>
    }
}

void SpoolJoin::setSlot(uint8_t slot)
{
    currentMMUSlot = slot;
   21f46:	00 93 49 13 	sts	0x1349, r16	; 0x801349 <SpoolJoin::spooljoin>
    SpoolJoin::spooljoin.setSlot(slot);

    ++toolchange_counter;
   21f4a:	80 91 be 13 	lds	r24, 0x13BE	; 0x8013be <MMU2::mmu2+0x73>
   21f4e:	90 91 bf 13 	lds	r25, 0x13BF	; 0x8013bf <MMU2::mmu2+0x74>
   21f52:	01 96       	adiw	r24, 0x01	; 1
   21f54:	90 93 bf 13 	sts	0x13BF, r25	; 0x8013bf <MMU2::mmu2+0x74>
   21f58:	80 93 be 13 	sts	0x13BE, r24	; 0x8013be <MMU2::mmu2+0x73>
   21f5c:	13 cf       	rjmp	.-474    	; 0x21d84 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0xbc>
    char buf[LCD_WIDTH + 1];
    lcd_getstatus(buf);
    for (uint8_t i = 0; i < sizeof(buf); i++) {
        // 0xFF is -1 when converting from unsigned to signed char
        // If the number is negative, that means filament is present
        buf[i] = (buf[i] < 0) ? '1' : '0';
   21f5e:	81 e3       	ldi	r24, 0x31	; 49
   21f60:	d3 cf       	rjmp	.-90     	; 0x21f08 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x240>
    void SetInAutoRetry(bool iar) {
        inAutoRetry = iar;
    }

    inline void SetPrinterError(ErrorCode ec) {
        explicitPrinterError = ec;
   21f62:	8a e2       	ldi	r24, 0x2A	; 42
   21f64:	90 e8       	ldi	r25, 0x80	; 128
   21f66:	90 93 4c 13 	sts	0x134C, r25	; 0x80134c <MMU2::mmu2+0x1>
   21f6a:	80 93 4b 13 	sts	0x134B, r24	; 0x80134b <MMU2::mmu2>
        logic.SetPrinterError(ErrorCode::LOAD_TO_EXTRUDER_FAILED);
        // We only have to wait for the user to fix the issue and press "Retry".
        // Please see CheckUserInput() for details how we "leave" manage_response.
        // If manage_response returns false at this spot (MMU operation interrupted aka MMU reset)
        // we can safely continue because the MMU is not doing an operation now.
        static_cast<void>(manage_response(true, true)); // yes, I'd like to silence [[nodiscard]] warning at this spot by casting to void
   21f6e:	61 e0       	ldi	r22, 0x01	; 1
   21f70:	81 e0       	ldi	r24, 0x01	; 1
   21f72:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   21f76:	c7 ce       	rjmp	.-626    	; 0x21d06 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]+0x3e>

00021f78 <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]>:
    }
    ScreenUpdateEnable();
    return true;
}

bool MMU2::load_filament_to_nozzle(uint8_t slot) {
   21f78:	cf 93       	push	r28
   21f7a:	df 93       	push	r29
   21f7c:	d8 2f       	mov	r29, r24
    if (!WaitForMMUReady()) {
   21f7e:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   21f82:	c8 2f       	mov	r28, r24
   21f84:	88 23       	and	r24, r24
   21f86:	49 f1       	breq	.+82     	; 0x21fda <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]+0x62>
        safe_delay_keep_alive(delay);
    }
}

void WaitForHotendTargetTempBeep() {
    waitForHotendTargetTemp(200, [] {});
   21f88:	88 ec       	ldi	r24, 0xC8	; 200
   21f8a:	90 e0       	ldi	r25, 0x00	; 0
   21f8c:	0f 94 72 c9 	call	0x392e4	; 0x392e4 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   21f90:	82 e0       	ldi	r24, 0x02	; 2
   21f92:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
void FullScreenMsgTest(uint8_t slot){
    FullScreenMsg(_T(MSG_TESTING_FILAMENT), slot);
}

void FullScreenMsgLoad(uint8_t slot){
    FullScreenMsg(_T(MSG_LOADING_FILAMENT), slot);
   21f96:	85 e7       	ldi	r24, 0x75	; 117
   21f98:	9b e5       	ldi	r25, 0x5B	; 91
   21f9a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   21f9e:	6d 2f       	mov	r22, r29
   21fa0:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   21fa4:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>

    FullScreenMsgLoad(slot);
    {
        // used for MMU-menu operation "Load to Nozzle"
        ReportingRAII rep(CommandInProgress::ToolChange);
        FSensorBlockRunout blockRunout;
   21fa8:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

        if (extruder != MMU2_NO_TOOL) { // we already have some filament loaded - free it + shape its tip properly
   21fac:	80 91 a1 13 	lds	r24, 0x13A1	; 0x8013a1 <MMU2::mmu2+0x56>
   21fb0:	83 36       	cpi	r24, 0x63	; 99
   21fb2:	29 f0       	breq	.+10     	; 0x21fbe <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]+0x46>

    return ss;
}

void MMU2::filament_ramming() {
    execute_extruder_sequence(ramming_sequence, sizeof(ramming_sequence) / sizeof(E_Step));
   21fb4:	62 e1       	ldi	r22, 0x12	; 18
   21fb6:	8e e1       	ldi	r24, 0x1E	; 30
   21fb8:	96 ea       	ldi	r25, 0xA6	; 166
   21fba:	0f 94 9a 88 	call	0x31134	; 0x31134 <MMU2::MMU2::execute_extruder_sequence(E_Step const*, unsigned char) [clone .constprop.132]>

        if (extruder != MMU2_NO_TOOL) { // we already have some filament loaded - free it + shape its tip properly
            filament_ramming();
        }

        ToolChangeCommon(slot);
   21fbe:	8d 2f       	mov	r24, r29
   21fc0:	0f 94 64 0e 	call	0x21cc8	; 0x21cc8 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]>

        // Finish loading to the nozzle with finely tuned steps.
        execute_load_to_nozzle_sequence();
   21fc4:	0e 94 c0 ce 	call	0x19d80	; 0x19d80 <MMU2::MMU2::execute_load_to_nozzle_sequence() [clone .constprop.53]>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   21fc8:	83 e0       	ldi	r24, 0x03	; 3
   21fca:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
//    SERIAL_ECHOLNPGM("FSBlockRunout");
}

FSensorBlockRunout::~FSensorBlockRunout() {
    fsensor.settings_init(); // restore filament runout state.
   21fce:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   21fd2:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>

        // Finish loading to the nozzle with finely tuned steps.
        execute_load_to_nozzle_sequence();
        MakeSound(Confirm);
    }
    ScreenUpdateEnable();
   21fd6:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    return true;
}
   21fda:	8c 2f       	mov	r24, r28
   21fdc:	df 91       	pop	r29
   21fde:	cf 91       	pop	r28
   21fe0:	08 95       	ret

00021fe2 <lcd_mmu_load_to_nozzle_wrapper(unsigned char)>:
        MENU_ITEM_FUNCTION_NR_P(_T(MSG_LOAD_FILAMENT), i + '1', load_filament_wrapper, i);
    MENU_END();
}

static inline void lcd_mmu_load_to_nozzle_wrapper(uint8_t index){
    MMU2::mmu2.load_filament_to_nozzle(index);
   21fe2:	0f 94 bc 0f 	call	0x21f78	; 0x21f78 <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]>

    // Extrude a little bit of filament so the user
    // can see the color is correct
    load_filament_final_feed();
   21fe6:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>
    st_synchronize();
   21fea:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

    // Ask user if the extruded color is correct:
    lcd_return_to_status();
   21fee:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
    lcd_load_filament_color_check();
   21ff2:	0f 94 9e 50 	call	0x2a13c	; 0x2a13c <lcd_load_filament_color_check()>
    lcd_setstatuspgm(MSG_WELCOME);
   21ff6:	8f ec       	ldi	r24, 0xCF	; 207
   21ff8:	9f e6       	ldi	r25, 0x6F	; 111
   21ffa:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    custom_message_type = CustomMsg::Status;
   21ffe:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>

    // Clear the filament action
    clearFilamentAction();
   22002:	0d 94 9f 21 	jmp	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>

00022006 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]>:
    SpoolJoin::spooljoin.setSlot(slot);

    ++toolchange_counter;
}

bool MMU2::tool_change(uint8_t slot) {
   22006:	cf 93       	push	r28
   22008:	df 93       	push	r29
   2200a:	d8 2f       	mov	r29, r24
    if (!WaitForMMUReady()) {
   2200c:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   22010:	c8 2f       	mov	r28, r24
   22012:	88 23       	and	r24, r24
   22014:	b9 f0       	breq	.+46     	; 0x22044 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]+0x3e>
        return false;
    }

    if (slot != extruder) {
   22016:	80 91 a1 13 	lds	r24, 0x13A1	; 0x8013a1 <MMU2::mmu2+0x56>
   2201a:	8d 17       	cp	r24, r29
   2201c:	99 f0       	breq	.+38     	; 0x22044 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]+0x3e>
    current_position[Y_AXIS] = MMU_ERR_Y_PAUSE_POS;
    planner_line_to_current_position_sync(NOZZLE_PARK_XY_FEEDRATE);
}

bool marlin_printingIsActive() {
    return printer_active();
   2201e:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
        if (/*FindaDetectsFilament()*/
   22022:	81 11       	cpse	r24, r1
   22024:	02 c0       	rjmp	.+4      	; 0x2202a <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]+0x24>
            /*!IS_SD_PRINTING && !usb_timer.running()*/
            !marlin_printingIsActive()) {
            // If Tcodes are used manually through the serial
            // we need to unload manually as well -- but only if FINDA detects filament
            unload();
   22026:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   2202a:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>
            // we need to unload manually as well -- but only if FINDA detects filament
            unload();
        }

        ReportingRAII rep(CommandInProgress::ToolChange);
        FSensorBlockRunout blockRunout;
   2202e:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   22032:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        planner_synchronize();
        ToolChangeCommon(slot);
   22036:	8d 2f       	mov	r24, r29
   22038:	0f 94 64 0e 	call	0x21cc8	; 0x21cc8 <MMU2::MMU2::ToolChangeCommon(unsigned char) [clone .constprop.54]>
   2203c:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   22040:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>
        FSensorBlockRunout blockRunout;
        planner_synchronize();
        ToolChangeCommon(slot);
    }
    return true;
}
   22044:	8c 2f       	mov	r24, r28
   22046:	df 91       	pop	r29
   22048:	cf 91       	pop	r28
   2204a:	08 95       	ret

0002204c <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]>:
/// Handle special T?/Tx/Tc commands
///
///- T? Gcode to extrude shouldn't have to follow, load to extruder wheels is done automatically
///- Tx Same as T?, except nozzle doesn't have to be preheated. Tc must be placed after extruder nozzle is preheated to finish filament load.
///- Tc Load to nozzle after filament was prepared by Tx and extruder nozzle is already heated.
bool MMU2::tool_change(char code, uint8_t slot) {
   2204c:	1f 93       	push	r17
   2204e:	cf 93       	push	r28
   22050:	df 93       	push	r29
   22052:	c8 2f       	mov	r28, r24
   22054:	16 2f       	mov	r17, r22
    if (!WaitForMMUReady()) {
   22056:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   2205a:	d8 2f       	mov	r29, r24
   2205c:	88 23       	and	r24, r24
   2205e:	89 f0       	breq	.+34     	; 0x22082 <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x36>
        return false;
    }

    FSensorBlockRunout blockRunout;
   22060:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

    switch (code) {
   22064:	c3 36       	cpi	r28, 0x63	; 99
   22066:	01 f1       	breq	.+64     	; 0x220a8 <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x5c>
   22068:	c8 37       	cpi	r28, 0x78	; 120
   2206a:	81 f0       	breq	.+32     	; 0x2208c <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x40>
   2206c:	cf 33       	cpi	r28, 0x3F	; 63
   2206e:	39 f4       	brne	.+14     	; 0x2207e <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x32>
    case '?': {
        waitForHotendTargetTemp(100, [] {});
   22070:	84 e6       	ldi	r24, 0x64	; 100
   22072:	90 e0       	ldi	r25, 0x00	; 0
   22074:	0f 94 72 c9 	call	0x392e4	; 0x392e4 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]>
        load_filament_to_nozzle(slot);
   22078:	81 2f       	mov	r24, r17
   2207a:	0f 94 bc 0f 	call	0x21f78	; 0x21f78 <MMU2::MMU2::load_filament_to_nozzle(unsigned char) [clone .constprop.51]>
   2207e:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
        execute_load_to_nozzle_sequence();
    } break;
    }

    return true;
}
   22082:	8d 2f       	mov	r24, r29
   22084:	df 91       	pop	r29
   22086:	cf 91       	pop	r28
   22088:	1f 91       	pop	r17
   2208a:	08 95       	ret
}

#ifdef PREVENT_DANGEROUS_EXTRUDE
void set_extrude_min_temp(int temp)
{
  extrude_min_temp = temp;
   2208c:	10 92 6c 02 	sts	0x026C, r1	; 0x80026c <extrude_min_temp+0x1>
   22090:	10 92 6b 02 	sts	0x026B, r1	; 0x80026b <extrude_min_temp>
        load_filament_to_nozzle(slot);
    } break;

    case 'x': {
        thermal_setExtrudeMintemp(0); // Allow cold extrusion since Tx only loads to the gears not nozzle
        tool_change(slot);
   22094:	81 2f       	mov	r24, r17
   22096:	0f 94 03 10 	call	0x22006	; 0x22006 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]>
   2209a:	8f ea       	ldi	r24, 0xAF	; 175
   2209c:	90 e0       	ldi	r25, 0x00	; 0
   2209e:	90 93 6c 02 	sts	0x026C, r25	; 0x80026c <extrude_min_temp+0x1>
   220a2:	80 93 6b 02 	sts	0x026B, r24	; 0x80026b <extrude_min_temp>
   220a6:	eb cf       	rjmp	.-42     	; 0x2207e <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x32>
        thermal_setExtrudeMintemp(EXTRUDE_MINTEMP);
    } break;

    case 'c': {
        waitForHotendTargetTemp(100, [] {});
   220a8:	84 e6       	ldi	r24, 0x64	; 100
   220aa:	90 e0       	ldi	r25, 0x00	; 0
   220ac:	0f 94 72 c9 	call	0x392e4	; 0x392e4 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]>
        execute_load_to_nozzle_sequence();
   220b0:	0e 94 c0 ce 	call	0x19d80	; 0x19d80 <MMU2::MMU2::execute_load_to_nozzle_sequence() [clone .constprop.53]>
   220b4:	e4 cf       	rjmp	.-56     	; 0x2207e <MMU2::MMU2::tool_change(char, unsigned char) [clone .constprop.25]+0x32>

000220b6 <loading_test_wrapper(unsigned char)>:

    // Clear the filament action
    clearFilamentAction();
}

static inline void loading_test_wrapper(uint8_t i){
   220b6:	cf 93       	push	r28
   220b8:	c8 2f       	mov	r28, r24
void FullScreenMsgEject(uint8_t slot){
    FullScreenMsg(_T(MSG_EJECT_FROM_MMU), slot);
}

void FullScreenMsgTest(uint8_t slot){
    FullScreenMsg(_T(MSG_TESTING_FILAMENT), slot);
   220ba:	8e e4       	ldi	r24, 0x4E	; 78
   220bc:	95 e4       	ldi	r25, 0x45	; 69
   220be:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   220c2:	6c 2f       	mov	r22, r28
   220c4:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>
    return true;
}

bool MMU2::loading_test(uint8_t slot) {
    FullScreenMsgTest(slot);
    tool_change(slot);
   220c8:	8c 2f       	mov	r24, r28
   220ca:	0f 94 03 10 	call	0x22006	; 0x22006 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]>
   220ce:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    planner_synchronize();
    unload();
   220d2:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
    ScreenUpdateEnable();
   220d6:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    MMU2::mmu2.loading_test(i);

    // Clear the filament action
    clearFilamentAction();
}
   220da:	cf 91       	pop	r28

static inline void loading_test_wrapper(uint8_t i){
    MMU2::mmu2.loading_test(i);

    // Clear the filament action
    clearFilamentAction();
   220dc:	0d 94 9f 21 	jmp	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>

000220e0 <loading_test_all_wrapper()>:
static void mmu_cut_filament_menu() {
    mmu_common_choose_filament_menu(_T(MSG_CUT_FILAMENT), mmu_cut_filament_wrapper);
}
#endif //MMU_HAS_CUTTER

static inline void loading_test_all_wrapper(){
   220e0:	cf 93       	push	r28
    for(uint8_t i = 0; i < MMU_FILAMENT_COUNT; ++i){
   220e2:	c0 e0       	ldi	r28, 0x00	; 0
   220e4:	8e e4       	ldi	r24, 0x4E	; 78
   220e6:	95 e4       	ldi	r25, 0x45	; 69
   220e8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   220ec:	6c 2f       	mov	r22, r28
   220ee:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>
    return true;
}

bool MMU2::loading_test(uint8_t slot) {
    FullScreenMsgTest(slot);
    tool_change(slot);
   220f2:	8c 2f       	mov	r24, r28
   220f4:	0f 94 03 10 	call	0x22006	; 0x22006 <MMU2::MMU2::tool_change(unsigned char) [clone .constprop.27]>
   220f8:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    planner_synchronize();
    unload();
   220fc:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>
    ScreenUpdateEnable();
   22100:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
   22104:	cf 5f       	subi	r28, 0xFF	; 255
   22106:	c5 30       	cpi	r28, 0x05	; 5
   22108:	69 f7       	brne	.-38     	; 0x220e4 <loading_test_all_wrapper()+0x4>
        MMU2::mmu2.loading_test(i);
    }

    // Clear the filament action
    clearFilamentAction();
}
   2210a:	cf 91       	pop	r28
    for(uint8_t i = 0; i < MMU_FILAMENT_COUNT; ++i){
        MMU2::mmu2.loading_test(i);
    }

    // Clear the filament action
    clearFilamentAction();
   2210c:	0d 94 9f 21 	jmp	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>

00022110 <MMU2::ProtocolLogic::ResetMMU(unsigned char) [clone .constprop.48]>:

void ProtocolLogic::CutFilament(uint8_t slot) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Cut, slot));
}

void ProtocolLogic::ResetMMU(uint8_t mode /* = 0 */) {
   22110:	cf 93       	push	r28
   22112:	df 93       	push	r29
   22114:	00 d0       	rcall	.+0      	; 0x22116 <MMU2::ProtocolLogic::ResetMMU(unsigned char) [clone .constprop.48]+0x6>
   22116:	1f 92       	push	r1
   22118:	1f 92       	push	r1
   2211a:	cd b7       	in	r28, 0x3d	; 61
   2211c:	de b7       	in	r29, 0x3e	; 62
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Reset, mode));
   2211e:	48 2f       	mov	r20, r24
   22120:	68 e5       	ldi	r22, 0x58	; 88
   22122:	ce 01       	movw	r24, r28
   22124:	01 96       	adiw	r24, 0x01	; 1
   22126:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2212a:	49 81       	ldd	r20, Y+1	; 0x01
   2212c:	5a 81       	ldd	r21, Y+2	; 0x02
   2212e:	6b 81       	ldd	r22, Y+3	; 0x03
   22130:	7c 81       	ldd	r23, Y+4	; 0x04
   22132:	8d 81       	ldd	r24, Y+5	; 0x05
   22134:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
}
   22138:	0f 90       	pop	r0
   2213a:	0f 90       	pop	r0
   2213c:	0f 90       	pop	r0
   2213e:	0f 90       	pop	r0
   22140:	0f 90       	pop	r0
   22142:	df 91       	pop	r29
   22144:	cf 91       	pop	r28
   22146:	08 95       	ret

00022148 <lcd_settings_menu()::{lambda()#1}::_FUN()>:
        break;
    }
}

void MMU2::ResetX0() {
    logic.ResetMMU(); // Send soft reset
   22148:	80 e0       	ldi	r24, 0x00	; 0
   2214a:	0d 94 88 10 	jmp	0x22110	; 0x22110 <MMU2::ProtocolLogic::ResetMMU(unsigned char) [clone .constprop.48]>

0002214e <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]>:

void MMU2::PowerOn() {
    power_on();
}

bool MMU2::ReadRegister(uint8_t address) {
   2214e:	1f 93       	push	r17
   22150:	cf 93       	push	r28
   22152:	df 93       	push	r29
   22154:	00 d0       	rcall	.+0      	; 0x22156 <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]+0x8>
   22156:	1f 92       	push	r1
   22158:	1f 92       	push	r1
   2215a:	cd b7       	in	r28, 0x3d	; 61
   2215c:	de b7       	in	r29, 0x3e	; 62
   2215e:	18 2f       	mov	r17, r24
    if (!WaitForMMUReady()) {
   22160:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   22164:	88 23       	and	r24, r24
   22166:	d9 f0       	breq	.+54     	; 0x2219e <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]+0x50>
void ProtocolLogic::Home(uint8_t mode) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Home, mode));
}

void ProtocolLogic::ReadRegister(uint8_t address) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Read, address));
   22168:	41 2f       	mov	r20, r17
   2216a:	62 e5       	ldi	r22, 0x52	; 82
   2216c:	ce 01       	movw	r24, r28
   2216e:	01 96       	adiw	r24, 0x01	; 1
   22170:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   22174:	49 81       	ldd	r20, Y+1	; 0x01
   22176:	5a 81       	ldd	r21, Y+2	; 0x02
   22178:	6b 81       	ldd	r22, Y+3	; 0x03
   2217a:	7c 81       	ldd	r23, Y+4	; 0x04
   2217c:	8d 81       	ldd	r24, Y+5	; 0x05
   2217e:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
        return false;
    }
    do {
        logic.ReadRegister(address); // we may signal the accepted/rejected status of the response as return value of this function
    } while (!manage_response(false, false));
   22182:	60 e0       	ldi	r22, 0x00	; 0
   22184:	80 e0       	ldi	r24, 0x00	; 0
   22186:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   2218a:	88 23       	and	r24, r24
   2218c:	69 f3       	breq	.-38     	; 0x22168 <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]+0x1a>

    // Update cached value
    lastReadRegisterValue = logic.rsp.paramValue;
   2218e:	20 91 66 13 	lds	r18, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   22192:	30 91 67 13 	lds	r19, 0x1367	; 0x801367 <MMU2::mmu2+0x1c>
   22196:	30 93 b7 13 	sts	0x13B7, r19	; 0x8013b7 <MMU2::mmu2+0x6c>
   2219a:	20 93 b6 13 	sts	0x13B6, r18	; 0x8013b6 <MMU2::mmu2+0x6b>
    return true;
}
   2219e:	0f 90       	pop	r0
   221a0:	0f 90       	pop	r0
   221a2:	0f 90       	pop	r0
   221a4:	0f 90       	pop	r0
   221a6:	0f 90       	pop	r0
   221a8:	df 91       	pop	r29
   221aa:	cf 91       	pop	r28
   221ac:	1f 91       	pop	r17
   221ae:	08 95       	ret

000221b0 <thermal_model_cal::record(unsigned int) [clone .constprop.39]>:
        waiting_handler();
    }
    set_fan_speed(old_speed);
}

static uint16_t record(uint16_t samples = REC_BUFFER_SIZE) {
   221b0:	ff 92       	push	r15
   221b2:	0f 93       	push	r16
   221b4:	1f 93       	push	r17
   221b6:	cf 93       	push	r28
   221b8:	df 93       	push	r29
   221ba:	1f 92       	push	r1
   221bc:	cd b7       	in	r28, 0x3d	; 61
   221be:	de b7       	in	r29, 0x3e	; 62
    TempMgrGuard temp_mgr_guard;
   221c0:	ce 01       	movw	r24, r28
   221c2:	01 96       	adiw	r24, 0x01	; 1
   221c4:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>

    uint16_t pos = 0;
   221c8:	10 e0       	ldi	r17, 0x00	; 0
   221ca:	00 e0       	ldi	r16, 0x00	; 0
        // stop recording for an hard error condition
        if(temp_error_state.v)
            return 0;

        // record a new entry
        rec_entry& entry = rec_buffer[pos];
   221cc:	85 e0       	ldi	r24, 0x05	; 5
   221ce:	f8 2e       	mov	r15, r24
static uint16_t record(uint16_t samples = REC_BUFFER_SIZE) {
    TempMgrGuard temp_mgr_guard;

    uint16_t pos = 0;
    while(pos < samples) {
        if(!TEMP_MGR_INT_FLAG_STATE()) {
   221d0:	d1 99       	sbic	0x1a, 1	; 26
   221d2:	11 c0       	rjmp	.+34     	; 0x221f6 <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x46>
            // temperatures not ready yet, just manage heaters while waiting to reduce jitter
            manage_heater();
   221d4:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>

static uint16_t record(uint16_t samples = REC_BUFFER_SIZE) {
    TempMgrGuard temp_mgr_guard;

    uint16_t pos = 0;
    while(pos < samples) {
   221d8:	0e 3d       	cpi	r16, 0xDE	; 222
   221da:	11 05       	cpc	r17, r1
   221dc:	c9 f7       	brne	.-14     	; 0x221d0 <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x20>
    }
    set_fan_speed(old_speed);
}

static uint16_t record(uint16_t samples = REC_BUFFER_SIZE) {
    TempMgrGuard temp_mgr_guard;
   221de:	ce 01       	movw	r24, r28
   221e0:	01 96       	adiw	r24, 0x01	; 1
   221e2:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
        // it's now safer to give regular serial/lcd updates a shot
        waiting_handler();
    }

    return pos;
}
   221e6:	c8 01       	movw	r24, r16
   221e8:	0f 90       	pop	r0
   221ea:	df 91       	pop	r29
   221ec:	cf 91       	pop	r28
   221ee:	1f 91       	pop	r17
   221f0:	0f 91       	pop	r16
   221f2:	ff 90       	pop	r15
   221f4:	08 95       	ret
        if(!TEMP_MGR_INT_FLAG_STATE()) {
            // temperatures not ready yet, just manage heaters while waiting to reduce jitter
            manage_heater();
            continue;
        }
        TEMP_MGR_INT_FLAG_CLEAR();
   221f6:	d1 9a       	sbi	0x1a, 1	; 26

        // manually repeat what the regular isr would do
        if(adc_values_ready != true) continue;
   221f8:	80 91 1c 05 	lds	r24, 0x051C	; 0x80051c <_ZL16adc_values_ready.lto_priv.459>
   221fc:	88 23       	and	r24, r24
   221fe:	61 f3       	breq	.-40     	; 0x221d8 <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x28>
        adc_values_ready = false;
   22200:	10 92 1c 05 	sts	0x051C, r1	; 0x80051c <_ZL16adc_values_ready.lto_priv.459>
        adc_start_cycle();
   22204:	0e 94 66 8d 	call	0x11acc	; 0x11acc <adc_start_cycle()>
        temp_mgr_isr();
   22208:	0f 94 c5 36 	call	0x26d8a	; 0x26d8a <temp_mgr_isr() [clone .lto_priv.422]>

        // stop recording for an hard error condition
        if(temp_error_state.v)
   2220c:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   22210:	81 11       	cpse	r24, r1
   22212:	1b c0       	rjmp	.+54     	; 0x2224a <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x9a>
            return 0;

        // record a new entry
        rec_entry& entry = rec_buffer[pos];
   22214:	f0 9e       	mul	r15, r16
   22216:	f0 01       	movw	r30, r0
   22218:	f1 9e       	mul	r15, r17
   2221a:	f0 0d       	add	r31, r0
   2221c:	11 24       	eor	r1, r1
   2221e:	eb 53       	subi	r30, 0x3B	; 59
   22220:	f9 4f       	sbci	r31, 0xF9	; 249
        entry.temp = current_temperature_isr[0];
   22222:	80 91 17 05 	lds	r24, 0x0517	; 0x800517 <current_temperature_isr>
   22226:	90 91 18 05 	lds	r25, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   2222a:	a0 91 19 05 	lds	r26, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   2222e:	b0 91 1a 05 	lds	r27, 0x051A	; 0x80051a <current_temperature_isr+0x3>
   22232:	80 83       	st	Z, r24
   22234:	91 83       	std	Z+1, r25	; 0x01
   22236:	a2 83       	std	Z+2, r26	; 0x02
   22238:	b3 83       	std	Z+3, r27	; 0x03
        entry.pwm = soft_pwm[0];
   2223a:	80 91 16 05 	lds	r24, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   2223e:	84 83       	std	Z+4, r24	; 0x04
        ++pos;
   22240:	0f 5f       	subi	r16, 0xFF	; 255
   22242:	1f 4f       	sbci	r17, 0xFF	; 255

        // it's now safer to give regular serial/lcd updates a shot
        waiting_handler();
   22244:	0f 94 90 3b 	call	0x27720	; 0x27720 <thermal_model_cal::waiting_handler() [clone .lto_priv.423]>
   22248:	c7 cf       	rjmp	.-114    	; 0x221d8 <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x28>
        adc_start_cycle();
        temp_mgr_isr();

        // stop recording for an hard error condition
        if(temp_error_state.v)
            return 0;
   2224a:	10 e0       	ldi	r17, 0x00	; 0
   2224c:	00 e0       	ldi	r16, 0x00	; 0
   2224e:	c7 cf       	rjmp	.-114    	; 0x221de <thermal_model_cal::record(unsigned int) [clone .constprop.39]+0x2e>

00022250 <pgm_is_whitespace(char const*)>:

#endif // TMC2130

static inline bool pgm_is_whitespace(const char *c_addr)
{
    const char c = pgm_read_byte(c_addr);
   22250:	fc 01       	movw	r30, r24
   22252:	94 91       	lpm	r25, Z
    return c == ' ' || c == '\t' || c == '\r' || c == '\n';
   22254:	90 32       	cpi	r25, 0x20	; 32
   22256:	49 f0       	breq	.+18     	; 0x2226a <pgm_is_whitespace(char const*)+0x1a>
   22258:	87 ef       	ldi	r24, 0xF7	; 247
   2225a:	89 0f       	add	r24, r25
   2225c:	82 30       	cpi	r24, 0x02	; 2
   2225e:	28 f0       	brcs	.+10     	; 0x2226a <pgm_is_whitespace(char const*)+0x1a>
   22260:	81 e0       	ldi	r24, 0x01	; 1
   22262:	9d 30       	cpi	r25, 0x0D	; 13
   22264:	19 f0       	breq	.+6      	; 0x2226c <pgm_is_whitespace(char const*)+0x1c>
   22266:	80 e0       	ldi	r24, 0x00	; 0
   22268:	08 95       	ret
   2226a:	81 e0       	ldi	r24, 0x01	; 1
}
   2226c:	08 95       	ret

0002226e <clamp999(unsigned int)>:
	lcd_printf_P(PSTR("%-15.15S%-5d\n" "%-15.15S%-5d\n"), _T(MSG_HOTEND_FAN_SPEED), 60*fan_speed[0], _T(MSG_PRINT_FAN_SPEED), 60*fan_speed[1] );
    menu_back_if_clicked();
}

static uint16_t __attribute__((noinline)) clamp999(uint16_t v){
    return v > 999 ? 999 : v;
   2226e:	88 3e       	cpi	r24, 0xE8	; 232
   22270:	23 e0       	ldi	r18, 0x03	; 3
   22272:	92 07       	cpc	r25, r18
   22274:	10 f0       	brcs	.+4      	; 0x2227a <clamp999(unsigned int)+0xc>
   22276:	87 ee       	ldi	r24, 0xE7	; 231
   22278:	93 e0       	ldi	r25, 0x03	; 3
}
   2227a:	08 95       	ret

0002227c <uart2_getchar(__file*) [clone .lto_priv.398]>:
	return 0;
}

static int uart2_getchar(_UNUSED FILE *stream)
{
	if (rbuf_empty(uart2_ibuf)) return -1;
   2227c:	90 91 3c 05 	lds	r25, 0x053C	; 0x80053c <uart2_ibuf+0x2>
   22280:	80 91 3b 05 	lds	r24, 0x053B	; 0x80053b <uart2_ibuf+0x1>
   22284:	2f ef       	ldi	r18, 0xFF	; 255
   22286:	3f ef       	ldi	r19, 0xFF	; 255
   22288:	89 17       	cp	r24, r25
   2228a:	71 f0       	breq	.+28     	; 0x222a8 <uart2_getchar(__file*) [clone .lto_priv.398]+0x2c>
	_lock();                         //lock
	uint8_t buf_w = ptr[1];          //get write index
	uint8_t buf_r = ptr[2];          //get read index
	_unlock();                       //unlock
	if (buf_r == buf_w) return -1;   //return -1 to signal buffer empty
	int ret = ptr[4 + buf_r];        //get byte from buffer
   2228c:	e9 2f       	mov	r30, r25
   2228e:	f0 e0       	ldi	r31, 0x00	; 0
   22290:	e2 5c       	subi	r30, 0xC2	; 194
   22292:	fa 4f       	sbci	r31, 0xFA	; 250
   22294:	20 81       	ld	r18, Z
   22296:	30 e0       	ldi	r19, 0x00	; 0
	buf_r++;                         //increment read index
   22298:	9f 5f       	subi	r25, 0xFF	; 255
	uint8_t buf_l = ptr[0];          //get length
	if (buf_r >= buf_l) buf_r = 0;   //rotate read index
   2229a:	80 91 3a 05 	lds	r24, 0x053A	; 0x80053a <uart2_ibuf>
   2229e:	98 17       	cp	r25, r24
   222a0:	08 f0       	brcs	.+2      	; 0x222a4 <uart2_getchar(__file*) [clone .lto_priv.398]+0x28>
   222a2:	90 e0       	ldi	r25, 0x00	; 0
	ptr[2] = buf_r;                  //store read index
   222a4:	90 93 3c 05 	sts	0x053C, r25	; 0x80053c <uart2_ibuf+0x2>
	return rbuf_get(uart2_ibuf);
}
   222a8:	c9 01       	movw	r24, r18
   222aa:	08 95       	ret

000222ac <uart2_putchar(char, __file*) [clone .lto_priv.397]>:
uint8_t uart2_ibuf[20] = {0, 0};
FILE _uart2io;

static int uart2_putchar(char c, _UNUSED FILE *stream)
{
	while (!uart2_txready);
   222ac:	90 91 d0 00 	lds	r25, 0x00D0	; 0x8000d0 <__TEXT_REGION_LENGTH__+0x7c20d0>
   222b0:	95 ff       	sbrs	r25, 5
   222b2:	fc cf       	rjmp	.-8      	; 0x222ac <uart2_putchar(char, __file*) [clone .lto_priv.397]>

	UDR2 = c; // transmit byte
   222b4:	80 93 d6 00 	sts	0x00D6, r24	; 0x8000d6 <__TEXT_REGION_LENGTH__+0x7c20d6>

	return 0;
}
   222b8:	90 e0       	ldi	r25, 0x00	; 0
   222ba:	80 e0       	ldi	r24, 0x00	; 0
   222bc:	08 95       	ret

000222be <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)>:
	} while (i++ != 255);
	tmc2130_wr_MSLUTSEL(axis, x[0], x[1], x[2], w[0], w[1], w[2], w[3]);
}

void bubblesort_uint8(uint8_t* data, uint8_t size, uint8_t* data2)
{
   222be:	cf 92       	push	r12
   222c0:	df 92       	push	r13
   222c2:	ef 92       	push	r14
   222c4:	ff 92       	push	r15
   222c6:	0f 93       	push	r16
   222c8:	1f 93       	push	r17
   222ca:	cf 93       	push	r28
   222cc:	df 93       	push	r29
   222ce:	8c 01       	movw	r16, r24
   222d0:	ea 01       	movw	r28, r20
	uint8_t changed = 1;
	while (changed)
	{
		changed = 0;
		for (uint8_t i = 0; i < (size - 1); i++)
   222d2:	90 e0       	ldi	r25, 0x00	; 0
void bubblesort_uint8(uint8_t* data, uint8_t size, uint8_t* data2)
{
	uint8_t changed = 1;
	while (changed)
	{
		changed = 0;
   222d4:	50 e0       	ldi	r21, 0x00	; 0
		for (uint8_t i = 0; i < (size - 1); i++)
   222d6:	61 50       	subi	r22, 0x01	; 1
   222d8:	77 0b       	sbc	r23, r23
   222da:	29 2f       	mov	r18, r25
   222dc:	30 e0       	ldi	r19, 0x00	; 0
   222de:	26 17       	cp	r18, r22
   222e0:	37 07       	cpc	r19, r23
   222e2:	2c f0       	brlt	.+10     	; 0x222ee <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x30>
}

void bubblesort_uint8(uint8_t* data, uint8_t size, uint8_t* data2)
{
	uint8_t changed = 1;
	while (changed)
   222e4:	55 23       	and	r21, r21
   222e6:	19 f1       	breq	.+70     	; 0x2232e <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x70>
	{
		changed = 0;
		for (uint8_t i = 0; i < (size - 1); i++)
   222e8:	90 e0       	ldi	r25, 0x00	; 0
void bubblesort_uint8(uint8_t* data, uint8_t size, uint8_t* data2)
{
	uint8_t changed = 1;
	while (changed)
	{
		changed = 0;
   222ea:	50 e0       	ldi	r21, 0x00	; 0
   222ec:	f6 cf       	rjmp	.-20     	; 0x222da <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x1c>
		for (uint8_t i = 0; i < (size - 1); i++)
			if (data[i] > data[i+1])
   222ee:	78 01       	movw	r14, r16
   222f0:	e2 0e       	add	r14, r18
   222f2:	f3 1e       	adc	r15, r19
   222f4:	f7 01       	movw	r30, r14
   222f6:	80 81       	ld	r24, Z
   222f8:	d9 01       	movw	r26, r18
   222fa:	11 96       	adiw	r26, 0x01	; 1
   222fc:	68 01       	movw	r12, r16
   222fe:	ca 0e       	add	r12, r26
   22300:	db 1e       	adc	r13, r27
   22302:	f6 01       	movw	r30, r12
   22304:	40 81       	ld	r20, Z
   22306:	48 17       	cp	r20, r24
   22308:	80 f4       	brcc	.+32     	; 0x2232a <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x6c>
			{
				uint8_t d = data[i];
				data[i] = data[i+1];
   2230a:	f7 01       	movw	r30, r14
   2230c:	40 83       	st	Z, r20
				data[i+1] = d;
   2230e:	f6 01       	movw	r30, r12
   22310:	80 83       	st	Z, r24
				if (data2)
   22312:	20 97       	sbiw	r28, 0x00	; 0
   22314:	49 f0       	breq	.+18     	; 0x22328 <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x6a>
				{
					d = data2[i];
   22316:	fe 01       	movw	r30, r28
   22318:	e2 0f       	add	r30, r18
   2231a:	f3 1f       	adc	r31, r19
   2231c:	80 81       	ld	r24, Z
					data2[i] = data2[i+1];
   2231e:	ac 0f       	add	r26, r28
   22320:	bd 1f       	adc	r27, r29
   22322:	2c 91       	ld	r18, X
   22324:	20 83       	st	Z, r18
					data2[i+1] = d;
   22326:	8c 93       	st	X, r24
				}
				changed = 1;
   22328:	51 e0       	ldi	r21, 0x01	; 1
{
	uint8_t changed = 1;
	while (changed)
	{
		changed = 0;
		for (uint8_t i = 0; i < (size - 1); i++)
   2232a:	9f 5f       	subi	r25, 0xFF	; 255
   2232c:	d6 cf       	rjmp	.-84     	; 0x222da <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)+0x1c>
					data2[i+1] = d;
				}
				changed = 1;
			}
	}
}
   2232e:	df 91       	pop	r29
   22330:	cf 91       	pop	r28
   22332:	1f 91       	pop	r17
   22334:	0f 91       	pop	r16
   22336:	ff 90       	pop	r15
   22338:	ef 90       	pop	r14
   2233a:	df 90       	pop	r13
   2233c:	cf 90       	pop	r12
   2233e:	08 95       	ret

00022340 <tmc2130_cs_high(unsigned char)>:
	}
}

inline void tmc2130_cs_high(uint8_t axis)
{
	switch (axis)
   22340:	81 30       	cpi	r24, 0x01	; 1
   22342:	41 f0       	breq	.+16     	; 0x22354 <tmc2130_cs_high(unsigned char)+0x14>
   22344:	28 f0       	brcs	.+10     	; 0x22350 <tmc2130_cs_high(unsigned char)+0x10>
   22346:	82 30       	cpi	r24, 0x02	; 2
   22348:	39 f0       	breq	.+14     	; 0x22358 <tmc2130_cs_high(unsigned char)+0x18>
   2234a:	83 30       	cpi	r24, 0x03	; 3
   2234c:	71 f0       	breq	.+28     	; 0x2236a <tmc2130_cs_high(unsigned char)+0x2a>
   2234e:	08 95       	ret
	{
	case X_AXIS: WRITE(X_TMC2130_CS, HIGH); break;
   22350:	a0 9a       	sbi	0x14, 0	; 20
   22352:	08 95       	ret
	case Y_AXIS: WRITE(Y_TMC2130_CS, HIGH); break;
   22354:	a2 9a       	sbi	0x14, 2	; 20
   22356:	08 95       	ret
	case Z_AXIS: WRITE(Z_TMC2130_CS, HIGH); break;
   22358:	9f b7       	in	r25, 0x3f	; 63
   2235a:	f8 94       	cli
   2235c:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   22360:	80 62       	ori	r24, 0x20	; 32
	case E_AXIS: WRITE(E0_TMC2130_CS, HIGH); break;
   22362:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   22366:	9f bf       	out	0x3f, r25	; 63
	}
}
   22368:	08 95       	ret
	switch (axis)
	{
	case X_AXIS: WRITE(X_TMC2130_CS, HIGH); break;
	case Y_AXIS: WRITE(Y_TMC2130_CS, HIGH); break;
	case Z_AXIS: WRITE(Z_TMC2130_CS, HIGH); break;
	case E_AXIS: WRITE(E0_TMC2130_CS, HIGH); break;
   2236a:	9f b7       	in	r25, 0x3f	; 63
   2236c:	f8 94       	cli
   2236e:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   22372:	80 61       	ori	r24, 0x10	; 16
   22374:	f6 cf       	rjmp	.-20     	; 0x22362 <tmc2130_cs_high(unsigned char)+0x22>

00022376 <tmc2130_cs_low(unsigned char)>:
}


inline void tmc2130_cs_low(uint8_t axis)
{
	switch (axis)
   22376:	81 30       	cpi	r24, 0x01	; 1
   22378:	41 f0       	breq	.+16     	; 0x2238a <tmc2130_cs_low(unsigned char)+0x14>
   2237a:	28 f0       	brcs	.+10     	; 0x22386 <tmc2130_cs_low(unsigned char)+0x10>
   2237c:	82 30       	cpi	r24, 0x02	; 2
   2237e:	39 f0       	breq	.+14     	; 0x2238e <tmc2130_cs_low(unsigned char)+0x18>
   22380:	83 30       	cpi	r24, 0x03	; 3
   22382:	71 f0       	breq	.+28     	; 0x223a0 <tmc2130_cs_low(unsigned char)+0x2a>
   22384:	08 95       	ret
	{
	case X_AXIS: WRITE(X_TMC2130_CS, LOW); break;
   22386:	a0 98       	cbi	0x14, 0	; 20
   22388:	08 95       	ret
	case Y_AXIS: WRITE(Y_TMC2130_CS, LOW); break;
   2238a:	a2 98       	cbi	0x14, 2	; 20
   2238c:	08 95       	ret
	case Z_AXIS: WRITE(Z_TMC2130_CS, LOW); break;
   2238e:	9f b7       	in	r25, 0x3f	; 63
   22390:	f8 94       	cli
   22392:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   22396:	8f 7d       	andi	r24, 0xDF	; 223
	case E_AXIS: WRITE(E0_TMC2130_CS, LOW); break;
   22398:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   2239c:	9f bf       	out	0x3f, r25	; 63
	}
}
   2239e:	08 95       	ret
	switch (axis)
	{
	case X_AXIS: WRITE(X_TMC2130_CS, LOW); break;
	case Y_AXIS: WRITE(Y_TMC2130_CS, LOW); break;
	case Z_AXIS: WRITE(Z_TMC2130_CS, LOW); break;
	case E_AXIS: WRITE(E0_TMC2130_CS, LOW); break;
   223a0:	9f b7       	in	r25, 0x3f	; 63
   223a2:	f8 94       	cli
   223a4:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   223a8:	8f 7e       	andi	r24, 0xEF	; 239
   223aa:	f6 cf       	rjmp	.-20     	; 0x22398 <tmc2130_cs_low(unsigned char)+0x22>

000223ac <spi_txrx>:
}

static inline uint8_t spi_txrx(uint8_t tx)
{
	SPDR = tx;
   223ac:	8e bd       	out	0x2e, r24	; 46
	while (!(SPSR & (1 << SPIF)));
   223ae:	0d b4       	in	r0, 0x2d	; 45
   223b0:	07 fe       	sbrs	r0, 7
   223b2:	fd cf       	rjmp	.-6      	; 0x223ae <spi_txrx+0x2>
	return SPDR;
   223b4:	8e b5       	in	r24, 0x2e	; 46
}
   223b6:	08 95       	ret

000223b8 <temp_mgr_pid()>:
#endif
    temp_meas_ready = true;
}

static void temp_mgr_pid()
{
   223b8:	2f 92       	push	r2
   223ba:	3f 92       	push	r3
   223bc:	4f 92       	push	r4
   223be:	5f 92       	push	r5
   223c0:	6f 92       	push	r6
   223c2:	7f 92       	push	r7
   223c4:	8f 92       	push	r8
   223c6:	9f 92       	push	r9
   223c8:	af 92       	push	r10
   223ca:	bf 92       	push	r11
   223cc:	cf 92       	push	r12
   223ce:	df 92       	push	r13
   223d0:	ef 92       	push	r14
   223d2:	ff 92       	push	r15
   223d4:	0f 93       	push	r16
   223d6:	1f 93       	push	r17
   223d8:	cf 93       	push	r28
   223da:	df 93       	push	r29
   223dc:	cd b7       	in	r28, 0x3d	; 61
   223de:	de b7       	in	r29, 0x3e	; 62
   223e0:	2e 97       	sbiw	r28, 0x0e	; 14
   223e2:	0f b6       	in	r0, 0x3f	; 63
   223e4:	f8 94       	cli
   223e6:	de bf       	out	0x3e, r29	; 62
   223e8:	0f be       	out	0x3f, r0	; 63
   223ea:	cd bf       	out	0x3d, r28	; 61
    for(uint8_t e = 0; e < EXTRUDERS; e++)
        pid_heater(e, current_temperature_isr[e], target_temperature_isr[e]);
   223ec:	20 90 1e 06 	lds	r2, 0x061E	; 0x80061e <target_temperature_isr>
   223f0:	30 90 1f 06 	lds	r3, 0x061F	; 0x80061f <target_temperature_isr+0x1>
   223f4:	40 90 17 05 	lds	r4, 0x0517	; 0x800517 <current_temperature_isr>
   223f8:	50 90 18 05 	lds	r5, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   223fc:	60 90 19 05 	lds	r6, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   22400:	70 90 1a 05 	lds	r7, 0x051A	; 0x80051a <current_temperature_isr+0x3>

#ifdef PIDTEMP
    pid_input = current;

#ifndef PID_OPENLOOP
    if(target == 0) {
   22404:	21 14       	cp	r2, r1
   22406:	31 04       	cpc	r3, r1
   22408:	39 f4       	brne	.+14     	; 0x22418 <temp_mgr_pid()+0x60>
        pid_output = 0;
        pid_reset[e] = true;
   2240a:	81 e0       	ldi	r24, 0x01	; 1
   2240c:	80 93 f5 05 	sts	0x05F5, r24	; 0x8005f5 <pid_reset>
        if (pid_output > PID_MAX) {
            if (pid_error[e] > 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
            pid_output=PID_MAX;
        } else if (pid_output < 0) {
            if (pid_error[e] < 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
            pid_output=0;
   22410:	81 2c       	mov	r8, r1
   22412:	91 2c       	mov	r9, r1
   22414:	54 01       	movw	r10, r8
   22416:	f9 c0       	rjmp	.+498    	; 0x2260a <temp_mgr_pid()+0x252>
#ifndef PID_OPENLOOP
    if(target == 0) {
        pid_output = 0;
        pid_reset[e] = true;
    } else {
        pid_error[e] = target - pid_input;
   22418:	b1 01       	movw	r22, r2
   2241a:	03 2c       	mov	r0, r3
   2241c:	00 0c       	add	r0, r0
   2241e:	88 0b       	sbc	r24, r24
   22420:	99 0b       	sbc	r25, r25
   22422:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   22426:	a3 01       	movw	r20, r6
   22428:	92 01       	movw	r18, r4
   2242a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2242e:	6b 01       	movw	r12, r22
   22430:	7c 01       	movw	r14, r24
        if(pid_reset[e]) {
   22432:	80 91 f5 05 	lds	r24, 0x05F5	; 0x8005f5 <pid_reset>
   22436:	88 23       	and	r24, r24
   22438:	91 f0       	breq	.+36     	; 0x2245e <temp_mgr_pid()+0xa6>
            iState_sum[e] = 0.0;
   2243a:	10 92 f1 05 	sts	0x05F1, r1	; 0x8005f1 <iState_sum>
   2243e:	10 92 f2 05 	sts	0x05F2, r1	; 0x8005f2 <iState_sum+0x1>
   22442:	10 92 f3 05 	sts	0x05F3, r1	; 0x8005f3 <iState_sum+0x2>
   22446:	10 92 f4 05 	sts	0x05F4, r1	; 0x8005f4 <iState_sum+0x3>
            dTerm[e] = 0.0;                       // 'dState_last[e]' initial setting is not necessary (see end of if-statement)
   2244a:	10 92 ed 05 	sts	0x05ED, r1	; 0x8005ed <dTerm>
   2244e:	10 92 ee 05 	sts	0x05EE, r1	; 0x8005ee <dTerm+0x1>
   22452:	10 92 ef 05 	sts	0x05EF, r1	; 0x8005ef <dTerm+0x2>
   22456:	10 92 f0 05 	sts	0x05F0, r1	; 0x8005f0 <dTerm+0x3>
            pid_reset[e] = false;
   2245a:	10 92 f5 05 	sts	0x05F5, r1	; 0x8005f5 <pid_reset>
        }
#ifndef PonM
        pTerm[e] = cs.Kp * pid_error[e];
   2245e:	20 91 26 0e 	lds	r18, 0x0E26	; 0x800e26 <cs+0x68>
   22462:	30 91 27 0e 	lds	r19, 0x0E27	; 0x800e27 <cs+0x69>
   22466:	40 91 28 0e 	lds	r20, 0x0E28	; 0x800e28 <cs+0x6a>
   2246a:	50 91 29 0e 	lds	r21, 0x0E29	; 0x800e29 <cs+0x6b>
   2246e:	c7 01       	movw	r24, r14
   22470:	b6 01       	movw	r22, r12
   22472:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   22476:	69 83       	std	Y+1, r22	; 0x01
   22478:	7a 83       	std	Y+2, r23	; 0x02
   2247a:	8b 83       	std	Y+3, r24	; 0x03
   2247c:	9c 83       	std	Y+4, r25	; 0x04
        iState_sum[e] += pid_error[e];
   2247e:	20 91 f1 05 	lds	r18, 0x05F1	; 0x8005f1 <iState_sum>
   22482:	30 91 f2 05 	lds	r19, 0x05F2	; 0x8005f2 <iState_sum+0x1>
   22486:	40 91 f3 05 	lds	r20, 0x05F3	; 0x8005f3 <iState_sum+0x2>
   2248a:	50 91 f4 05 	lds	r21, 0x05F4	; 0x8005f4 <iState_sum+0x3>
   2248e:	c7 01       	movw	r24, r14
   22490:	b6 01       	movw	r22, r12
   22492:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   22496:	4b 01       	movw	r8, r22
   22498:	5c 01       	movw	r10, r24
        iState_sum[e] = constrain(iState_sum[e], iState_sum_min[e], iState_sum_max[e]);
   2249a:	20 91 b3 04 	lds	r18, 0x04B3	; 0x8004b3 <_ZL14iState_sum_min.lto_priv.470>
   2249e:	2d 87       	std	Y+13, r18	; 0x0d
   224a0:	30 91 b4 04 	lds	r19, 0x04B4	; 0x8004b4 <_ZL14iState_sum_min.lto_priv.470+0x1>
   224a4:	39 87       	std	Y+9, r19	; 0x09
   224a6:	10 91 b5 04 	lds	r17, 0x04B5	; 0x8004b5 <_ZL14iState_sum_min.lto_priv.470+0x2>
   224aa:	00 91 b6 04 	lds	r16, 0x04B6	; 0x8004b6 <_ZL14iState_sum_min.lto_priv.470+0x3>
   224ae:	41 2f       	mov	r20, r17
   224b0:	50 2f       	mov	r21, r16
   224b2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   224b6:	87 fd       	sbrc	r24, 7
   224b8:	17 c0       	rjmp	.+46     	; 0x224e8 <temp_mgr_pid()+0x130>
   224ba:	80 91 af 04 	lds	r24, 0x04AF	; 0x8004af <_ZL14iState_sum_max.lto_priv.471>
   224be:	8d 87       	std	Y+13, r24	; 0x0d
   224c0:	90 91 b0 04 	lds	r25, 0x04B0	; 0x8004b0 <_ZL14iState_sum_max.lto_priv.471+0x1>
   224c4:	99 87       	std	Y+9, r25	; 0x09
   224c6:	10 91 b1 04 	lds	r17, 0x04B1	; 0x8004b1 <_ZL14iState_sum_max.lto_priv.471+0x2>
   224ca:	00 91 b2 04 	lds	r16, 0x04B2	; 0x8004b2 <_ZL14iState_sum_max.lto_priv.471+0x3>
   224ce:	9c 01       	movw	r18, r24
   224d0:	41 2f       	mov	r20, r17
   224d2:	50 2f       	mov	r21, r16
   224d4:	b4 01       	movw	r22, r8
   224d6:	c5 01       	movw	r24, r10
   224d8:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   224dc:	18 16       	cp	r1, r24
   224de:	24 f0       	brlt	.+8      	; 0x224e8 <temp_mgr_pid()+0x130>
   224e0:	8d 86       	std	Y+13, r8	; 0x0d
   224e2:	99 86       	std	Y+9, r9	; 0x09
   224e4:	1a 2d       	mov	r17, r10
   224e6:	0b 2d       	mov	r16, r11
   224e8:	8d 85       	ldd	r24, Y+13	; 0x0d
   224ea:	99 85       	ldd	r25, Y+9	; 0x09
   224ec:	a1 2f       	mov	r26, r17
   224ee:	b0 2f       	mov	r27, r16
   224f0:	80 93 f1 05 	sts	0x05F1, r24	; 0x8005f1 <iState_sum>
   224f4:	90 93 f2 05 	sts	0x05F2, r25	; 0x8005f2 <iState_sum+0x1>
   224f8:	a0 93 f3 05 	sts	0x05F3, r26	; 0x8005f3 <iState_sum+0x2>
   224fc:	b0 93 f4 05 	sts	0x05F4, r27	; 0x8005f4 <iState_sum+0x3>
        iTerm[e] = cs.Ki * iState_sum[e];
   22500:	20 91 2a 0e 	lds	r18, 0x0E2A	; 0x800e2a <cs+0x6c>
   22504:	30 91 2b 0e 	lds	r19, 0x0E2B	; 0x800e2b <cs+0x6d>
   22508:	40 91 2c 0e 	lds	r20, 0x0E2C	; 0x800e2c <cs+0x6e>
   2250c:	50 91 2d 0e 	lds	r21, 0x0E2D	; 0x800e2d <cs+0x6f>
   22510:	bc 01       	movw	r22, r24
   22512:	81 2f       	mov	r24, r17
   22514:	90 2f       	mov	r25, r16
   22516:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2251a:	6d 83       	std	Y+5, r22	; 0x05
   2251c:	7e 83       	std	Y+6, r23	; 0x06
   2251e:	8f 83       	std	Y+7, r24	; 0x07
   22520:	98 87       	std	Y+8, r25	; 0x08
        // PID_K1 defined in Configuration.h in the PID settings
#define K2 (1.0-PID_K1)
        dTerm[e] = (cs.Kd * (pid_input - dState_last[e]))*K2 + (PID_K1 * dTerm[e]); // e.g. digital filtration of derivative term changes
   22522:	20 91 e9 05 	lds	r18, 0x05E9	; 0x8005e9 <dState_last>
   22526:	30 91 ea 05 	lds	r19, 0x05EA	; 0x8005ea <dState_last+0x1>
   2252a:	40 91 eb 05 	lds	r20, 0x05EB	; 0x8005eb <dState_last+0x2>
   2252e:	50 91 ec 05 	lds	r21, 0x05EC	; 0x8005ec <dState_last+0x3>
   22532:	c3 01       	movw	r24, r6
   22534:	b2 01       	movw	r22, r4
   22536:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2253a:	20 91 2e 0e 	lds	r18, 0x0E2E	; 0x800e2e <cs+0x70>
   2253e:	30 91 2f 0e 	lds	r19, 0x0E2F	; 0x800e2f <cs+0x71>
   22542:	40 91 30 0e 	lds	r20, 0x0E30	; 0x800e30 <cs+0x72>
   22546:	50 91 31 0e 	lds	r21, 0x0E31	; 0x800e31 <cs+0x73>
   2254a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2254e:	20 ed       	ldi	r18, 0xD0	; 208
   22550:	3c ec       	ldi	r19, 0xCC	; 204
   22552:	4c e4       	ldi	r20, 0x4C	; 76
   22554:	5d e3       	ldi	r21, 0x3D	; 61
   22556:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2255a:	4b 01       	movw	r8, r22
   2255c:	5c 01       	movw	r10, r24
   2255e:	23 e3       	ldi	r18, 0x33	; 51
   22560:	33 e3       	ldi	r19, 0x33	; 51
   22562:	43 e7       	ldi	r20, 0x73	; 115
   22564:	5f e3       	ldi	r21, 0x3F	; 63
   22566:	60 91 ed 05 	lds	r22, 0x05ED	; 0x8005ed <dTerm>
   2256a:	70 91 ee 05 	lds	r23, 0x05EE	; 0x8005ee <dTerm+0x1>
   2256e:	80 91 ef 05 	lds	r24, 0x05EF	; 0x8005ef <dTerm+0x2>
   22572:	90 91 f0 05 	lds	r25, 0x05F0	; 0x8005f0 <dTerm+0x3>
   22576:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2257a:	9b 01       	movw	r18, r22
   2257c:	ac 01       	movw	r20, r24
   2257e:	c5 01       	movw	r24, r10
   22580:	b4 01       	movw	r22, r8
   22582:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   22586:	4b 01       	movw	r8, r22
   22588:	5c 01       	movw	r10, r24
   2258a:	80 92 ed 05 	sts	0x05ED, r8	; 0x8005ed <dTerm>
   2258e:	90 92 ee 05 	sts	0x05EE, r9	; 0x8005ee <dTerm+0x1>
   22592:	a0 92 ef 05 	sts	0x05EF, r10	; 0x8005ef <dTerm+0x2>
   22596:	b0 92 f0 05 	sts	0x05F0, r11	; 0x8005f0 <dTerm+0x3>
        pid_output = pTerm[e] + iTerm[e] - dTerm[e]; // subtraction due to "Derivative on Measurement" method (i.e. derivative of input instead derivative of error is used)
   2259a:	2d 81       	ldd	r18, Y+5	; 0x05
   2259c:	3e 81       	ldd	r19, Y+6	; 0x06
   2259e:	4f 81       	ldd	r20, Y+7	; 0x07
   225a0:	58 85       	ldd	r21, Y+8	; 0x08
   225a2:	69 81       	ldd	r22, Y+1	; 0x01
   225a4:	7a 81       	ldd	r23, Y+2	; 0x02
   225a6:	8b 81       	ldd	r24, Y+3	; 0x03
   225a8:	9c 81       	ldd	r25, Y+4	; 0x04
   225aa:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   225ae:	a5 01       	movw	r20, r10
   225b0:	94 01       	movw	r18, r8
   225b2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   225b6:	4b 01       	movw	r8, r22
   225b8:	5c 01       	movw	r10, r24
        if (pid_output > PID_MAX) {
   225ba:	20 e0       	ldi	r18, 0x00	; 0
   225bc:	30 e0       	ldi	r19, 0x00	; 0
   225be:	4f e7       	ldi	r20, 0x7F	; 127
   225c0:	53 e4       	ldi	r21, 0x43	; 67
   225c2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
            if (pid_error[e] > 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
   225c6:	20 e0       	ldi	r18, 0x00	; 0
   225c8:	30 e0       	ldi	r19, 0x00	; 0
   225ca:	a9 01       	movw	r20, r18
        iTerm[e] = cs.Ki * iState_sum[e];
        // PID_K1 defined in Configuration.h in the PID settings
#define K2 (1.0-PID_K1)
        dTerm[e] = (cs.Kd * (pid_input - dState_last[e]))*K2 + (PID_K1 * dTerm[e]); // e.g. digital filtration of derivative term changes
        pid_output = pTerm[e] + iTerm[e] - dTerm[e]; // subtraction due to "Derivative on Measurement" method (i.e. derivative of input instead derivative of error is used)
        if (pid_output > PID_MAX) {
   225cc:	18 16       	cp	r1, r24
   225ce:	0c f0       	brlt	.+2      	; 0x225d2 <temp_mgr_pid()+0x21a>
   225d0:	6d c1       	rjmp	.+730    	; 0x228ac <temp_mgr_pid()+0x4f4>
            if (pid_error[e] > 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
   225d2:	c7 01       	movw	r24, r14
   225d4:	b6 01       	movw	r22, r12
   225d6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   225da:	18 16       	cp	r1, r24
   225dc:	84 f4       	brge	.+32     	; 0x225fe <temp_mgr_pid()+0x246>
   225de:	a7 01       	movw	r20, r14
   225e0:	96 01       	movw	r18, r12
   225e2:	6d 85       	ldd	r22, Y+13	; 0x0d
   225e4:	79 85       	ldd	r23, Y+9	; 0x09
   225e6:	81 2f       	mov	r24, r17
   225e8:	90 2f       	mov	r25, r16
   225ea:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   225ee:	60 93 f1 05 	sts	0x05F1, r22	; 0x8005f1 <iState_sum>
   225f2:	70 93 f2 05 	sts	0x05F2, r23	; 0x8005f2 <iState_sum+0x1>
   225f6:	80 93 f3 05 	sts	0x05F3, r24	; 0x8005f3 <iState_sum+0x2>
   225fa:	90 93 f4 05 	sts	0x05F4, r25	; 0x8005f4 <iState_sum+0x3>
            pid_output=PID_MAX;
   225fe:	81 2c       	mov	r8, r1
   22600:	91 2c       	mov	r9, r1
   22602:	3f e7       	ldi	r19, 0x7F	; 127
   22604:	a3 2e       	mov	r10, r19
   22606:	33 e4       	ldi	r19, 0x43	; 67
   22608:	b3 2e       	mov	r11, r19
        dTerm[e] = cs.Kd * (pid_input - dState_last[e]);
        pid_output = iState_sum[e] - dTerm[e];  // subtraction due to "Derivative on Measurement" method (i.e. derivative of input instead derivative of error is used)
        pid_output = constrain(pid_output, 0, PID_MAX);
#endif // PonM
    }
    dState_last[e] = pid_input;
   2260a:	40 92 e9 05 	sts	0x05E9, r4	; 0x8005e9 <dState_last>
   2260e:	50 92 ea 05 	sts	0x05EA, r5	; 0x8005ea <dState_last+0x1>
   22612:	60 92 eb 05 	sts	0x05EB, r6	; 0x8005eb <dState_last+0x2>
   22616:	70 92 ec 05 	sts	0x05EC, r7	; 0x8005ec <dState_last+0x3>
        pid_output = PID_MAX;
    }
#endif

    // Check if temperature is within the correct range
    if((current < maxttemp[e]) && (target != 0))
   2261a:	60 91 56 02 	lds	r22, 0x0256	; 0x800256 <_ZL8maxttemp.lto_priv.472>
   2261e:	70 91 57 02 	lds	r23, 0x0257	; 0x800257 <_ZL8maxttemp.lto_priv.472+0x1>
   22622:	07 2e       	mov	r0, r23
   22624:	00 0c       	add	r0, r0
   22626:	88 0b       	sbc	r24, r24
   22628:	99 0b       	sbc	r25, r25
   2262a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2262e:	9b 01       	movw	r18, r22
   22630:	ac 01       	movw	r20, r24
   22632:	c3 01       	movw	r24, r6
   22634:	b2 01       	movw	r22, r4
   22636:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2263a:	87 ff       	sbrs	r24, 7
   2263c:	57 c1       	rjmp	.+686    	; 0x228ec <temp_mgr_pid()+0x534>
   2263e:	23 28       	or	r2, r3
   22640:	09 f4       	brne	.+2      	; 0x22644 <temp_mgr_pid()+0x28c>
   22642:	54 c1       	rjmp	.+680    	; 0x228ec <temp_mgr_pid()+0x534>
        soft_pwm[e] = (int)pid_output >> 1;
   22644:	c5 01       	movw	r24, r10
   22646:	b4 01       	movw	r22, r8
   22648:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2264c:	75 95       	asr	r23
   2264e:	67 95       	ror	r22
   22650:	60 93 16 05 	sts	0x0516, r22	; 0x800516 <_ZL8soft_pwm.lto_priv.461>

static void temp_mgr_pid()
{
    for(uint8_t e = 0; e < EXTRUDERS; e++)
        pid_heater(e, current_temperature_isr[e], target_temperature_isr[e]);
    pid_bed(current_temperature_bed_isr, target_temperature_bed_isr);
   22654:	20 91 17 06 	lds	r18, 0x0617	; 0x800617 <target_temperature_bed_isr>
   22658:	30 91 18 06 	lds	r19, 0x0618	; 0x800618 <target_temperature_bed_isr+0x1>
   2265c:	3a 83       	std	Y+2, r19	; 0x02
   2265e:	29 83       	std	Y+1, r18	; 0x01
   22660:	40 90 19 06 	lds	r4, 0x0619	; 0x800619 <current_temperature_bed_isr>
   22664:	50 90 1a 06 	lds	r5, 0x061A	; 0x80061a <current_temperature_bed_isr+0x1>
   22668:	60 90 1b 06 	lds	r6, 0x061B	; 0x80061b <current_temperature_bed_isr+0x2>
   2266c:	70 90 1c 06 	lds	r7, 0x061C	; 0x80061c <current_temperature_bed_isr+0x3>

#ifdef PIDTEMPBED
    pid_input = current;

#ifndef PID_OPENLOOP
    pid_error_bed = target - pid_input;
   22670:	b9 01       	movw	r22, r18
   22672:	33 0f       	add	r19, r19
   22674:	88 0b       	sbc	r24, r24
   22676:	99 0b       	sbc	r25, r25
   22678:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2267c:	a3 01       	movw	r20, r6
   2267e:	92 01       	movw	r18, r4
   22680:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   22684:	6b 01       	movw	r12, r22
   22686:	7c 01       	movw	r14, r24
    pTerm_bed = cs.bedKp * pid_error_bed;
   22688:	20 91 32 0e 	lds	r18, 0x0E32	; 0x800e32 <cs+0x74>
   2268c:	30 91 33 0e 	lds	r19, 0x0E33	; 0x800e33 <cs+0x75>
   22690:	40 91 34 0e 	lds	r20, 0x0E34	; 0x800e34 <cs+0x76>
   22694:	50 91 35 0e 	lds	r21, 0x0E35	; 0x800e35 <cs+0x77>
   22698:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2269c:	6d 83       	std	Y+5, r22	; 0x05
   2269e:	7e 83       	std	Y+6, r23	; 0x06
   226a0:	8f 83       	std	Y+7, r24	; 0x07
   226a2:	98 87       	std	Y+8, r25	; 0x08
    temp_iState_bed += pid_error_bed;
   226a4:	20 91 fe 05 	lds	r18, 0x05FE	; 0x8005fe <temp_iState_bed>
   226a8:	30 91 ff 05 	lds	r19, 0x05FF	; 0x8005ff <temp_iState_bed+0x1>
   226ac:	40 91 00 06 	lds	r20, 0x0600	; 0x800600 <temp_iState_bed+0x2>
   226b0:	50 91 01 06 	lds	r21, 0x0601	; 0x800601 <temp_iState_bed+0x3>
   226b4:	c7 01       	movw	r24, r14
   226b6:	b6 01       	movw	r22, r12
   226b8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   226bc:	5b 01       	movw	r10, r22
   226be:	8c 01       	movw	r16, r24
    temp_iState_bed = constrain(temp_iState_bed, temp_iState_min_bed, temp_iState_max_bed);
   226c0:	30 91 ab 04 	lds	r19, 0x04AB	; 0x8004ab <_ZL19temp_iState_min_bed.lto_priv.468>
   226c4:	3e 87       	std	Y+14, r19	; 0x0e
   226c6:	80 91 ac 04 	lds	r24, 0x04AC	; 0x8004ac <_ZL19temp_iState_min_bed.lto_priv.468+0x1>
   226ca:	8d 87       	std	Y+13, r24	; 0x0d
   226cc:	30 90 ad 04 	lds	r3, 0x04AD	; 0x8004ad <_ZL19temp_iState_min_bed.lto_priv.468+0x2>
   226d0:	20 90 ae 04 	lds	r2, 0x04AE	; 0x8004ae <_ZL19temp_iState_min_bed.lto_priv.468+0x3>
   226d4:	23 2f       	mov	r18, r19
   226d6:	38 2f       	mov	r19, r24
   226d8:	43 2d       	mov	r20, r3
   226da:	52 2d       	mov	r21, r2
   226dc:	b5 01       	movw	r22, r10
   226de:	c8 01       	movw	r24, r16
   226e0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   226e4:	87 fd       	sbrc	r24, 7
   226e6:	18 c0       	rjmp	.+48     	; 0x22718 <temp_mgr_pid()+0x360>
   226e8:	90 91 a7 04 	lds	r25, 0x04A7	; 0x8004a7 <_ZL19temp_iState_max_bed.lto_priv.469>
   226ec:	9e 87       	std	Y+14, r25	; 0x0e
   226ee:	20 91 a8 04 	lds	r18, 0x04A8	; 0x8004a8 <_ZL19temp_iState_max_bed.lto_priv.469+0x1>
   226f2:	2d 87       	std	Y+13, r18	; 0x0d
   226f4:	30 90 a9 04 	lds	r3, 0x04A9	; 0x8004a9 <_ZL19temp_iState_max_bed.lto_priv.469+0x2>
   226f8:	20 90 aa 04 	lds	r2, 0x04AA	; 0x8004aa <_ZL19temp_iState_max_bed.lto_priv.469+0x3>
   226fc:	29 2f       	mov	r18, r25
   226fe:	3d 85       	ldd	r19, Y+13	; 0x0d
   22700:	43 2d       	mov	r20, r3
   22702:	52 2d       	mov	r21, r2
   22704:	b5 01       	movw	r22, r10
   22706:	c8 01       	movw	r24, r16
   22708:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2270c:	18 16       	cp	r1, r24
   2270e:	24 f0       	brlt	.+8      	; 0x22718 <temp_mgr_pid()+0x360>
   22710:	ae 86       	std	Y+14, r10	; 0x0e
   22712:	bd 86       	std	Y+13, r11	; 0x0d
   22714:	30 2e       	mov	r3, r16
   22716:	21 2e       	mov	r2, r17
   22718:	8e 85       	ldd	r24, Y+14	; 0x0e
   2271a:	9d 85       	ldd	r25, Y+13	; 0x0d
   2271c:	a3 2d       	mov	r26, r3
   2271e:	b2 2d       	mov	r27, r2
   22720:	80 93 fe 05 	sts	0x05FE, r24	; 0x8005fe <temp_iState_bed>
   22724:	90 93 ff 05 	sts	0x05FF, r25	; 0x8005ff <temp_iState_bed+0x1>
   22728:	a0 93 00 06 	sts	0x0600, r26	; 0x800600 <temp_iState_bed+0x2>
   2272c:	b0 93 01 06 	sts	0x0601, r27	; 0x800601 <temp_iState_bed+0x3>
    iTerm_bed = cs.bedKi * temp_iState_bed;
   22730:	20 91 36 0e 	lds	r18, 0x0E36	; 0x800e36 <cs+0x78>
   22734:	30 91 37 0e 	lds	r19, 0x0E37	; 0x800e37 <cs+0x79>
   22738:	40 91 38 0e 	lds	r20, 0x0E38	; 0x800e38 <cs+0x7a>
   2273c:	50 91 39 0e 	lds	r21, 0x0E39	; 0x800e39 <cs+0x7b>
   22740:	bc 01       	movw	r22, r24
   22742:	83 2d       	mov	r24, r3
   22744:	92 2d       	mov	r25, r2
   22746:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2274a:	69 87       	std	Y+9, r22	; 0x09
   2274c:	7a 87       	std	Y+10, r23	; 0x0a
   2274e:	8b 87       	std	Y+11, r24	; 0x0b
   22750:	9c 87       	std	Y+12, r25	; 0x0c

    //PID_K1 defined in Configuration.h in the PID settings
#define K2 (1.0-PID_K1)
    dTerm_bed= (cs.bedKd * (pid_input - temp_dState_bed))*K2 + (PID_K1 * dTerm_bed);
   22752:	20 91 fa 05 	lds	r18, 0x05FA	; 0x8005fa <temp_dState_bed>
   22756:	30 91 fb 05 	lds	r19, 0x05FB	; 0x8005fb <temp_dState_bed+0x1>
   2275a:	40 91 fc 05 	lds	r20, 0x05FC	; 0x8005fc <temp_dState_bed+0x2>
   2275e:	50 91 fd 05 	lds	r21, 0x05FD	; 0x8005fd <temp_dState_bed+0x3>
   22762:	c3 01       	movw	r24, r6
   22764:	b2 01       	movw	r22, r4
   22766:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2276a:	20 91 3a 0e 	lds	r18, 0x0E3A	; 0x800e3a <cs+0x7c>
   2276e:	30 91 3b 0e 	lds	r19, 0x0E3B	; 0x800e3b <cs+0x7d>
   22772:	40 91 3c 0e 	lds	r20, 0x0E3C	; 0x800e3c <cs+0x7e>
   22776:	50 91 3d 0e 	lds	r21, 0x0E3D	; 0x800e3d <cs+0x7f>
   2277a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2277e:	20 ed       	ldi	r18, 0xD0	; 208
   22780:	3c ec       	ldi	r19, 0xCC	; 204
   22782:	4c e4       	ldi	r20, 0x4C	; 76
   22784:	5d e3       	ldi	r21, 0x3D	; 61
   22786:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2278a:	4b 01       	movw	r8, r22
   2278c:	5c 01       	movw	r10, r24
   2278e:	23 e3       	ldi	r18, 0x33	; 51
   22790:	33 e3       	ldi	r19, 0x33	; 51
   22792:	43 e7       	ldi	r20, 0x73	; 115
   22794:	5f e3       	ldi	r21, 0x3F	; 63
   22796:	60 91 f6 05 	lds	r22, 0x05F6	; 0x8005f6 <dTerm_bed>
   2279a:	70 91 f7 05 	lds	r23, 0x05F7	; 0x8005f7 <dTerm_bed+0x1>
   2279e:	80 91 f8 05 	lds	r24, 0x05F8	; 0x8005f8 <dTerm_bed+0x2>
   227a2:	90 91 f9 05 	lds	r25, 0x05F9	; 0x8005f9 <dTerm_bed+0x3>
   227a6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   227aa:	9b 01       	movw	r18, r22
   227ac:	ac 01       	movw	r20, r24
   227ae:	c5 01       	movw	r24, r10
   227b0:	b4 01       	movw	r22, r8
   227b2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   227b6:	4b 01       	movw	r8, r22
   227b8:	5c 01       	movw	r10, r24
   227ba:	80 92 f6 05 	sts	0x05F6, r8	; 0x8005f6 <dTerm_bed>
   227be:	90 92 f7 05 	sts	0x05F7, r9	; 0x8005f7 <dTerm_bed+0x1>
   227c2:	a0 92 f8 05 	sts	0x05F8, r10	; 0x8005f8 <dTerm_bed+0x2>
   227c6:	b0 92 f9 05 	sts	0x05F9, r11	; 0x8005f9 <dTerm_bed+0x3>
    temp_dState_bed = pid_input;
   227ca:	40 92 fa 05 	sts	0x05FA, r4	; 0x8005fa <temp_dState_bed>
   227ce:	50 92 fb 05 	sts	0x05FB, r5	; 0x8005fb <temp_dState_bed+0x1>
   227d2:	60 92 fc 05 	sts	0x05FC, r6	; 0x8005fc <temp_dState_bed+0x2>
   227d6:	70 92 fd 05 	sts	0x05FD, r7	; 0x8005fd <temp_dState_bed+0x3>

    pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
   227da:	29 85       	ldd	r18, Y+9	; 0x09
   227dc:	3a 85       	ldd	r19, Y+10	; 0x0a
   227de:	4b 85       	ldd	r20, Y+11	; 0x0b
   227e0:	5c 85       	ldd	r21, Y+12	; 0x0c
   227e2:	6d 81       	ldd	r22, Y+5	; 0x05
   227e4:	7e 81       	ldd	r23, Y+6	; 0x06
   227e6:	8f 81       	ldd	r24, Y+7	; 0x07
   227e8:	98 85       	ldd	r25, Y+8	; 0x08
   227ea:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   227ee:	a5 01       	movw	r20, r10
   227f0:	94 01       	movw	r18, r8
   227f2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   227f6:	4b 01       	movw	r8, r22
   227f8:	5c 01       	movw	r10, r24
    if (pid_output > MAX_BED_POWER) {
   227fa:	20 e0       	ldi	r18, 0x00	; 0
   227fc:	30 e0       	ldi	r19, 0x00	; 0
   227fe:	4f e7       	ldi	r20, 0x7F	; 127
   22800:	53 e4       	ldi	r21, 0x43	; 67
   22802:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
        if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
   22806:	20 e0       	ldi	r18, 0x00	; 0
   22808:	30 e0       	ldi	r19, 0x00	; 0
   2280a:	a9 01       	movw	r20, r18
#define K2 (1.0-PID_K1)
    dTerm_bed= (cs.bedKd * (pid_input - temp_dState_bed))*K2 + (PID_K1 * dTerm_bed);
    temp_dState_bed = pid_input;

    pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
    if (pid_output > MAX_BED_POWER) {
   2280c:	18 16       	cp	r1, r24
   2280e:	0c f0       	brlt	.+2      	; 0x22812 <temp_mgr_pid()+0x45a>
   22810:	70 c0       	rjmp	.+224    	; 0x228f2 <temp_mgr_pid()+0x53a>
        if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
   22812:	c7 01       	movw	r24, r14
   22814:	b6 01       	movw	r22, r12
   22816:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2281a:	18 16       	cp	r1, r24
   2281c:	84 f4       	brge	.+32     	; 0x2283e <temp_mgr_pid()+0x486>
   2281e:	a7 01       	movw	r20, r14
   22820:	96 01       	movw	r18, r12
   22822:	6e 85       	ldd	r22, Y+14	; 0x0e
   22824:	7d 85       	ldd	r23, Y+13	; 0x0d
   22826:	83 2d       	mov	r24, r3
   22828:	92 2d       	mov	r25, r2
   2282a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2282e:	60 93 fe 05 	sts	0x05FE, r22	; 0x8005fe <temp_iState_bed>
   22832:	70 93 ff 05 	sts	0x05FF, r23	; 0x8005ff <temp_iState_bed+0x1>
   22836:	80 93 00 06 	sts	0x0600, r24	; 0x800600 <temp_iState_bed+0x2>
   2283a:	90 93 01 06 	sts	0x0601, r25	; 0x800601 <temp_iState_bed+0x3>
        pid_output=MAX_BED_POWER;
   2283e:	81 2c       	mov	r8, r1
   22840:	91 2c       	mov	r9, r1
   22842:	9f e7       	ldi	r25, 0x7F	; 127
   22844:	a9 2e       	mov	r10, r25
   22846:	93 e4       	ldi	r25, 0x43	; 67
   22848:	b9 2e       	mov	r11, r25

#else
    pid_output = constrain(target, 0, MAX_BED_POWER);
#endif //PID_OPENLOOP

    if(current < BED_MAXTEMP)
   2284a:	20 e0       	ldi	r18, 0x00	; 0
   2284c:	30 e0       	ldi	r19, 0x00	; 0
   2284e:	4a ef       	ldi	r20, 0xFA	; 250
   22850:	52 e4       	ldi	r21, 0x42	; 66
   22852:	c3 01       	movw	r24, r6
   22854:	b2 01       	movw	r22, r4
   22856:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2285a:	87 ff       	sbrs	r24, 7
   2285c:	6d c0       	rjmp	.+218    	; 0x22938 <temp_mgr_pid()+0x580>
    {
        soft_pwm_bed = (int)pid_output >> 1;
   2285e:	c5 01       	movw	r24, r10
   22860:	b4 01       	movw	r22, r8
   22862:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   22866:	75 95       	asr	r23
   22868:	67 95       	ror	r22
   2286a:	60 93 1d 06 	sts	0x061D, r22	; 0x80061d <soft_pwm_bed>
        soft_pwm_bed = 0;
        WRITE(HEATER_BED_PIN,LOW);
    }
#endif //BED_LIMIT_SWITCHING

    if(target==0)
   2286e:	89 81       	ldd	r24, Y+1	; 0x01
   22870:	9a 81       	ldd	r25, Y+2	; 0x02
   22872:	89 2b       	or	r24, r25
   22874:	11 f4       	brne	.+4      	; 0x2287a <temp_mgr_pid()+0x4c2>
    {
        soft_pwm_bed = 0;
   22876:	10 92 1d 06 	sts	0x061D, r1	; 0x80061d <soft_pwm_bed>
static void temp_mgr_pid()
{
    for(uint8_t e = 0; e < EXTRUDERS; e++)
        pid_heater(e, current_temperature_isr[e], target_temperature_isr[e]);
    pid_bed(current_temperature_bed_isr, target_temperature_bed_isr);
}
   2287a:	2e 96       	adiw	r28, 0x0e	; 14
   2287c:	0f b6       	in	r0, 0x3f	; 63
   2287e:	f8 94       	cli
   22880:	de bf       	out	0x3e, r29	; 62
   22882:	0f be       	out	0x3f, r0	; 63
   22884:	cd bf       	out	0x3d, r28	; 61
   22886:	df 91       	pop	r29
   22888:	cf 91       	pop	r28
   2288a:	1f 91       	pop	r17
   2288c:	0f 91       	pop	r16
   2288e:	ff 90       	pop	r15
   22890:	ef 90       	pop	r14
   22892:	df 90       	pop	r13
   22894:	cf 90       	pop	r12
   22896:	bf 90       	pop	r11
   22898:	af 90       	pop	r10
   2289a:	9f 90       	pop	r9
   2289c:	8f 90       	pop	r8
   2289e:	7f 90       	pop	r7
   228a0:	6f 90       	pop	r6
   228a2:	5f 90       	pop	r5
   228a4:	4f 90       	pop	r4
   228a6:	3f 90       	pop	r3
   228a8:	2f 90       	pop	r2
   228aa:	08 95       	ret
        dTerm[e] = (cs.Kd * (pid_input - dState_last[e]))*K2 + (PID_K1 * dTerm[e]); // e.g. digital filtration of derivative term changes
        pid_output = pTerm[e] + iTerm[e] - dTerm[e]; // subtraction due to "Derivative on Measurement" method (i.e. derivative of input instead derivative of error is used)
        if (pid_output > PID_MAX) {
            if (pid_error[e] > 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
            pid_output=PID_MAX;
        } else if (pid_output < 0) {
   228ac:	c5 01       	movw	r24, r10
   228ae:	b4 01       	movw	r22, r8
   228b0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   228b4:	87 ff       	sbrs	r24, 7
   228b6:	a9 ce       	rjmp	.-686    	; 0x2260a <temp_mgr_pid()+0x252>
            if (pid_error[e] < 0 ) iState_sum[e] -= pid_error[e]; // conditional un-integration
   228b8:	20 e0       	ldi	r18, 0x00	; 0
   228ba:	30 e0       	ldi	r19, 0x00	; 0
   228bc:	a9 01       	movw	r20, r18
   228be:	c7 01       	movw	r24, r14
   228c0:	b6 01       	movw	r22, r12
   228c2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   228c6:	87 ff       	sbrs	r24, 7
   228c8:	a3 cd       	rjmp	.-1210   	; 0x22410 <temp_mgr_pid()+0x58>
   228ca:	a7 01       	movw	r20, r14
   228cc:	96 01       	movw	r18, r12
   228ce:	6d 85       	ldd	r22, Y+13	; 0x0d
   228d0:	79 85       	ldd	r23, Y+9	; 0x09
   228d2:	81 2f       	mov	r24, r17
   228d4:	90 2f       	mov	r25, r16
   228d6:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   228da:	60 93 f1 05 	sts	0x05F1, r22	; 0x8005f1 <iState_sum>
   228de:	70 93 f2 05 	sts	0x05F2, r23	; 0x8005f2 <iState_sum+0x1>
   228e2:	80 93 f3 05 	sts	0x05F3, r24	; 0x8005f3 <iState_sum+0x2>
   228e6:	90 93 f4 05 	sts	0x05F4, r25	; 0x8005f4 <iState_sum+0x3>
   228ea:	92 cd       	rjmp	.-1244   	; 0x22410 <temp_mgr_pid()+0x58>

    // Check if temperature is within the correct range
    if((current < maxttemp[e]) && (target != 0))
        soft_pwm[e] = (int)pid_output >> 1;
    else
        soft_pwm[e] = 0;
   228ec:	10 92 16 05 	sts	0x0516, r1	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   228f0:	b1 ce       	rjmp	.-670    	; 0x22654 <temp_mgr_pid()+0x29c>

    pid_output = pTerm_bed + iTerm_bed - dTerm_bed;
    if (pid_output > MAX_BED_POWER) {
        if (pid_error_bed > 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
        pid_output=MAX_BED_POWER;
    } else if (pid_output < 0){
   228f2:	c5 01       	movw	r24, r10
   228f4:	b4 01       	movw	r22, r8
   228f6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   228fa:	87 ff       	sbrs	r24, 7
   228fc:	a6 cf       	rjmp	.-180    	; 0x2284a <temp_mgr_pid()+0x492>
        if (pid_error_bed < 0 )  temp_iState_bed -= pid_error_bed; // conditional un-integration
   228fe:	20 e0       	ldi	r18, 0x00	; 0
   22900:	30 e0       	ldi	r19, 0x00	; 0
   22902:	a9 01       	movw	r20, r18
   22904:	c7 01       	movw	r24, r14
   22906:	b6 01       	movw	r22, r12
   22908:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2290c:	87 ff       	sbrs	r24, 7
   2290e:	10 c0       	rjmp	.+32     	; 0x22930 <temp_mgr_pid()+0x578>
   22910:	a7 01       	movw	r20, r14
   22912:	96 01       	movw	r18, r12
   22914:	6e 85       	ldd	r22, Y+14	; 0x0e
   22916:	7d 85       	ldd	r23, Y+13	; 0x0d
   22918:	83 2d       	mov	r24, r3
   2291a:	92 2d       	mov	r25, r2
   2291c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   22920:	60 93 fe 05 	sts	0x05FE, r22	; 0x8005fe <temp_iState_bed>
   22924:	70 93 ff 05 	sts	0x05FF, r23	; 0x8005ff <temp_iState_bed+0x1>
   22928:	80 93 00 06 	sts	0x0600, r24	; 0x800600 <temp_iState_bed+0x2>
   2292c:	90 93 01 06 	sts	0x0601, r25	; 0x800601 <temp_iState_bed+0x3>
        pid_output=0;
   22930:	81 2c       	mov	r8, r1
   22932:	91 2c       	mov	r9, r1
   22934:	54 01       	movw	r10, r8
   22936:	89 cf       	rjmp	.-238    	; 0x2284a <temp_mgr_pid()+0x492>
    {
        soft_pwm_bed = (int)pid_output >> 1;
    }
    else
    {
        soft_pwm_bed = 0;
   22938:	10 92 1d 06 	sts	0x061D, r1	; 0x80061d <soft_pwm_bed>
   2293c:	98 cf       	rjmp	.-208    	; 0x2286e <temp_mgr_pid()+0x4b6>

0002293e <setIsrTargetTemperatures()>:
}

static void setIsrTargetTemperatures()
{
    for(uint8_t e=0;e<EXTRUDERS;e++)
        target_temperature_isr[e] = target_temperature[e];
   2293e:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   22942:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   22946:	90 93 1f 06 	sts	0x061F, r25	; 0x80061f <target_temperature_isr+0x1>
   2294a:	80 93 1e 06 	sts	0x061E, r24	; 0x80061e <target_temperature_isr>
    target_temperature_bed_isr = target_temperature_bed;
   2294e:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   22952:	90 91 73 06 	lds	r25, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   22956:	90 93 18 06 	sts	0x0618, r25	; 0x800618 <target_temperature_bed_isr+0x1>
   2295a:	80 93 17 06 	sts	0x0617, r24	; 0x800617 <target_temperature_bed_isr>
}
   2295e:	08 95       	ret

00022960 <babystep(unsigned char, bool)>:
{
    // MUST ONLY BE CALLED BY A ISR as stepper pins are manipulated directly.
    // note: when switching direction no delay is inserted at the end when the
    //       original is restored. We assume enough time passes as the function
    //       returns and the stepper is manipulated again (to avoid dead times)
    switch(axis)
   22960:	81 30       	cpi	r24, 0x01	; 1
   22962:	41 f1       	breq	.+80     	; 0x229b4 <babystep(unsigned char, bool)+0x54>
   22964:	20 f0       	brcs	.+8      	; 0x2296e <babystep(unsigned char, bool)+0xe>
   22966:	82 30       	cpi	r24, 0x02	; 2
   22968:	09 f4       	brne	.+2      	; 0x2296c <babystep(unsigned char, bool)+0xc>
   2296a:	45 c0       	rjmp	.+138    	; 0x229f6 <babystep(unsigned char, bool)+0x96>
   2296c:	08 95       	ret
    {
    case X_AXIS:
    {
        enable_x();
   2296e:	17 98       	cbi	0x02, 7	; 2
        uint8_t old_x_dir_pin = READ(X_DIR_PIN);
   22970:	80 91 09 01 	lds	r24, 0x0109	; 0x800109 <__TEXT_REGION_LENGTH__+0x7c2109>
   22974:	81 70       	andi	r24, 0x01	; 1
        uint8_t new_x_dir_pin = (INVERT_X_DIR)^direction;
   22976:	91 e0       	ldi	r25, 0x01	; 1
   22978:	69 27       	eor	r22, r25

        //setup new step
        if (new_x_dir_pin != old_x_dir_pin) {
   2297a:	86 17       	cp	r24, r22
   2297c:	59 f0       	breq	.+22     	; 0x22994 <babystep(unsigned char, bool)+0x34>
            WRITE_NC(X_DIR_PIN, new_x_dir_pin);
   2297e:	90 91 0b 01 	lds	r25, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   22982:	66 23       	and	r22, r22
   22984:	89 f0       	breq	.+34     	; 0x229a8 <babystep(unsigned char, bool)+0x48>
   22986:	91 60       	ori	r25, 0x01	; 1
   22988:	90 93 0b 01 	sts	0x010B, r25	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
	

#endif

	// busy wait
	__asm__ __volatile__ (
   2298c:	eb e4       	ldi	r30, 0x4B	; 75
   2298e:	f0 e0       	ldi	r31, 0x00	; 0
   22990:	31 97       	sbiw	r30, 0x01	; 1
   22992:	f1 f7       	brne	.-4      	; 0x22990 <babystep(unsigned char, bool)+0x30>
            delayMicroseconds(STEPPER_SET_DIR_DELAY);
        }

        //perform step
        STEP_NC_HI(X_AXIS);
   22994:	91 e0       	ldi	r25, 0x01	; 1
   22996:	96 b9       	out	0x06, r25	; 6
#ifdef DEBUG_XSTEP_DUP_PIN
        STEP_NC_LO(X_DUP_AXIS);
#endif

        //get old pin state back.
        WRITE_NC(X_DIR_PIN, old_x_dir_pin);
   22998:	88 23       	and	r24, r24
   2299a:	41 f0       	breq	.+16     	; 0x229ac <babystep(unsigned char, bool)+0x4c>
   2299c:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   229a0:	81 60       	ori	r24, 0x01	; 1
        STEPPER_MINIMUM_DELAY;
        STEP_NC_LO(Z_AXIS);

        //get old pin state back.
        if (new_z_dir_pin != old_z_dir_pin) {
            WRITE_NC(Z_DIR_PIN, old_z_dir_pin);
   229a2:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
    }
    break;

    default: break;
    }
}
   229a6:	08 95       	ret
        uint8_t old_x_dir_pin = READ(X_DIR_PIN);
        uint8_t new_x_dir_pin = (INVERT_X_DIR)^direction;

        //setup new step
        if (new_x_dir_pin != old_x_dir_pin) {
            WRITE_NC(X_DIR_PIN, new_x_dir_pin);
   229a8:	9e 7f       	andi	r25, 0xFE	; 254
   229aa:	ee cf       	rjmp	.-36     	; 0x22988 <babystep(unsigned char, bool)+0x28>
#ifdef DEBUG_XSTEP_DUP_PIN
        STEP_NC_LO(X_DUP_AXIS);
#endif

        //get old pin state back.
        WRITE_NC(X_DIR_PIN, old_x_dir_pin);
   229ac:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   229b0:	8e 7f       	andi	r24, 0xFE	; 254
   229b2:	f7 cf       	rjmp	.-18     	; 0x229a2 <babystep(unsigned char, bool)+0x42>
    }
    break;

    case Y_AXIS:
    {
        enable_y();
   229b4:	16 98       	cbi	0x02, 6	; 2
        uint8_t old_y_dir_pin = READ(Y_DIR_PIN);
   229b6:	90 91 09 01 	lds	r25, 0x0109	; 0x800109 <__TEXT_REGION_LENGTH__+0x7c2109>
   229ba:	81 e0       	ldi	r24, 0x01	; 1
   229bc:	29 2f       	mov	r18, r25
   229be:	22 70       	andi	r18, 0x02	; 2
   229c0:	91 ff       	sbrs	r25, 1
   229c2:	80 e0       	ldi	r24, 0x00	; 0
        uint8_t new_y_dir_pin = (INVERT_Y_DIR)^direction;

        //setup new step
        if (new_y_dir_pin != old_y_dir_pin) {
   229c4:	86 17       	cp	r24, r22
   229c6:	59 f0       	breq	.+22     	; 0x229de <babystep(unsigned char, bool)+0x7e>
            WRITE_NC(Y_DIR_PIN, new_y_dir_pin);
   229c8:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   229cc:	66 23       	and	r22, r22
   229ce:	79 f0       	breq	.+30     	; 0x229ee <babystep(unsigned char, bool)+0x8e>
   229d0:	82 60       	ori	r24, 0x02	; 2
   229d2:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   229d6:	8b e4       	ldi	r24, 0x4B	; 75
   229d8:	90 e0       	ldi	r25, 0x00	; 0
   229da:	01 97       	sbiw	r24, 0x01	; 1
   229dc:	f1 f7       	brne	.-4      	; 0x229da <babystep(unsigned char, bool)+0x7a>
            delayMicroseconds(STEPPER_SET_DIR_DELAY);
        }

        //perform step
        STEP_NC_HI(Y_AXIS);
   229de:	82 e0       	ldi	r24, 0x02	; 2
   229e0:	86 b9       	out	0x06, r24	; 6
#ifdef DEBUG_YSTEP_DUP_PIN
        STEP_NC_LO(Y_DUP_AXIS);
#endif

        //get old pin state back.
        WRITE_NC(Y_DIR_PIN, old_y_dir_pin);
   229e2:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   229e6:	22 23       	and	r18, r18
   229e8:	21 f0       	breq	.+8      	; 0x229f2 <babystep(unsigned char, bool)+0x92>
   229ea:	82 60       	ori	r24, 0x02	; 2
   229ec:	da cf       	rjmp	.-76     	; 0x229a2 <babystep(unsigned char, bool)+0x42>
        uint8_t old_y_dir_pin = READ(Y_DIR_PIN);
        uint8_t new_y_dir_pin = (INVERT_Y_DIR)^direction;

        //setup new step
        if (new_y_dir_pin != old_y_dir_pin) {
            WRITE_NC(Y_DIR_PIN, new_y_dir_pin);
   229ee:	8d 7f       	andi	r24, 0xFD	; 253
   229f0:	f0 cf       	rjmp	.-32     	; 0x229d2 <babystep(unsigned char, bool)+0x72>
#ifdef DEBUG_YSTEP_DUP_PIN
        STEP_NC_LO(Y_DUP_AXIS);
#endif

        //get old pin state back.
        WRITE_NC(Y_DIR_PIN, old_y_dir_pin);
   229f2:	8d 7f       	andi	r24, 0xFD	; 253
   229f4:	d6 cf       	rjmp	.-84     	; 0x229a2 <babystep(unsigned char, bool)+0x42>
    }
    break;

    case Z_AXIS:
    {
        enable_z();
   229f6:	15 98       	cbi	0x02, 5	; 2
        uint8_t old_z_dir_pin = READ(Z_DIR_PIN);
   229f8:	90 91 09 01 	lds	r25, 0x0109	; 0x800109 <__TEXT_REGION_LENGTH__+0x7c2109>
   229fc:	81 e0       	ldi	r24, 0x01	; 1
   229fe:	29 2f       	mov	r18, r25
   22a00:	24 70       	andi	r18, 0x04	; 4
   22a02:	92 ff       	sbrs	r25, 2
   22a04:	80 e0       	ldi	r24, 0x00	; 0
        uint8_t new_z_dir_pin = (INVERT_Z_DIR)^direction^BABYSTEP_INVERT_Z;
   22a06:	91 e0       	ldi	r25, 0x01	; 1
   22a08:	69 27       	eor	r22, r25

        //setup new step
        if (new_z_dir_pin != old_z_dir_pin) {
   22a0a:	86 17       	cp	r24, r22
   22a0c:	59 f0       	breq	.+22     	; 0x22a24 <babystep(unsigned char, bool)+0xc4>
            WRITE_NC(Z_DIR_PIN, new_z_dir_pin);
   22a0e:	90 91 0b 01 	lds	r25, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   22a12:	66 23       	and	r22, r22
   22a14:	91 f0       	breq	.+36     	; 0x22a3a <babystep(unsigned char, bool)+0xda>
   22a16:	94 60       	ori	r25, 0x04	; 4
   22a18:	90 93 0b 01 	sts	0x010B, r25	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   22a1c:	eb e4       	ldi	r30, 0x4B	; 75
   22a1e:	f0 e0       	ldi	r31, 0x00	; 0
   22a20:	31 97       	sbiw	r30, 0x01	; 1
   22a22:	f1 f7       	brne	.-4      	; 0x22a20 <babystep(unsigned char, bool)+0xc0>
            delayMicroseconds(STEPPER_SET_DIR_DELAY);
        }

        //perform step
        STEP_NC_HI(Z_AXIS);
   22a24:	94 e0       	ldi	r25, 0x04	; 4
   22a26:	96 b9       	out	0x06, r25	; 6
        STEPPER_MINIMUM_DELAY;
        STEP_NC_LO(Z_AXIS);

        //get old pin state back.
        if (new_z_dir_pin != old_z_dir_pin) {
   22a28:	86 17       	cp	r24, r22
   22a2a:	09 f4       	brne	.+2      	; 0x22a2e <babystep(unsigned char, bool)+0xce>
   22a2c:	bc cf       	rjmp	.-136    	; 0x229a6 <babystep(unsigned char, bool)+0x46>
            WRITE_NC(Z_DIR_PIN, old_z_dir_pin);
   22a2e:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   22a32:	22 23       	and	r18, r18
   22a34:	21 f0       	breq	.+8      	; 0x22a3e <babystep(unsigned char, bool)+0xde>
   22a36:	84 60       	ori	r24, 0x04	; 4
   22a38:	b4 cf       	rjmp	.-152    	; 0x229a2 <babystep(unsigned char, bool)+0x42>
        uint8_t old_z_dir_pin = READ(Z_DIR_PIN);
        uint8_t new_z_dir_pin = (INVERT_Z_DIR)^direction^BABYSTEP_INVERT_Z;

        //setup new step
        if (new_z_dir_pin != old_z_dir_pin) {
            WRITE_NC(Z_DIR_PIN, new_z_dir_pin);
   22a3a:	9b 7f       	andi	r25, 0xFB	; 251
   22a3c:	ed cf       	rjmp	.-38     	; 0x22a18 <babystep(unsigned char, bool)+0xb8>
        STEPPER_MINIMUM_DELAY;
        STEP_NC_LO(Z_AXIS);

        //get old pin state back.
        if (new_z_dir_pin != old_z_dir_pin) {
            WRITE_NC(Z_DIR_PIN, old_z_dir_pin);
   22a3e:	8b 7f       	andi	r24, 0xFB	; 251
   22a40:	b0 cf       	rjmp	.-160    	; 0x229a2 <babystep(unsigned char, bool)+0x42>

00022a42 <MarlinSerial::checkRx()>:
		}
	}

    static void checkRx(void)
    {
        if (selectedSerialPort == 0) {
   22a42:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   22a46:	81 11       	cpse	r24, r1
   22a48:	25 c0       	rjmp	.+74     	; 0x22a94 <MarlinSerial::checkRx()+0x52>
            if((M_UCSRxA & (1<<M_RXCx)) != 0) {
   22a4a:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   22a4e:	87 ff       	sbrs	r24, 7
   22a50:	3d c0       	rjmp	.+122    	; 0x22acc <MarlinSerial::checkRx()+0x8a>
                // Test for a framing error.
                if (M_UCSRxA & (1<<M_FEx)) {
   22a52:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   22a56:	84 ff       	sbrs	r24, 4
   22a58:	03 c0       	rjmp	.+6      	; 0x22a60 <MarlinSerial::checkRx()+0x1e>
                    // Characters received with the framing errors will be ignored.
                    // The temporary variable "c" was made volatile, so the compiler does not optimize this out.
                    (void)(*(char *)M_UDRx);
   22a5a:	80 91 c6 00 	lds	r24, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
   22a5e:	08 95       	ret
                } else {
                    unsigned char c  =  M_UDRx;
   22a60:	40 91 c6 00 	lds	r20, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
                    int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
   22a64:	20 91 99 04 	lds	r18, 0x0499	; 0x800499 <rx_buffer+0x80>
   22a68:	30 91 9a 04 	lds	r19, 0x049A	; 0x80049a <rx_buffer+0x81>
   22a6c:	c9 01       	movw	r24, r18
   22a6e:	01 96       	adiw	r24, 0x01	; 1
   22a70:	8f 77       	andi	r24, 0x7F	; 127
   22a72:	99 27       	eor	r25, r25
                    // if we should be storing the received character into the location
                    // just before the tail (meaning that the head would advance to the
                    // current location of the tail), we're about to overflow the buffer
                    // and so we don't write the character or advance the head.
                    if (i != rx_buffer.tail) {
   22a74:	60 91 9b 04 	lds	r22, 0x049B	; 0x80049b <rx_buffer+0x82>
   22a78:	70 91 9c 04 	lds	r23, 0x049C	; 0x80049c <rx_buffer+0x83>
   22a7c:	86 17       	cp	r24, r22
   22a7e:	97 07       	cpc	r25, r23
   22a80:	29 f1       	breq	.+74     	; 0x22acc <MarlinSerial::checkRx()+0x8a>
                    // if we should be storing the received character into the location
                    // just before the tail (meaning that the head would advance to the
                    // current location of the tail), we're about to overflow the buffer
                    // and so we don't write the character or advance the head.
                    if (i != rx_buffer.tail) {
                        rx_buffer.buffer[rx_buffer.head] = c;
   22a82:	27 5e       	subi	r18, 0xE7	; 231
   22a84:	3b 4f       	sbci	r19, 0xFB	; 251
   22a86:	f9 01       	movw	r30, r18
   22a88:	40 83       	st	Z, r20
                        rx_buffer.head = i;
   22a8a:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
   22a8e:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>
   22a92:	1c c0       	rjmp	.+56     	; 0x22acc <MarlinSerial::checkRx()+0x8a>
					UDR1 = c;
#endif //DEBUG_DUMP_TO_2ND_SERIAL
                }
            }
        } else { // if(selectedSerialPort == 1) {
            if((UCSR1A & (1<<RXC1)) != 0) {
   22a94:	80 91 c8 00 	lds	r24, 0x00C8	; 0x8000c8 <__TEXT_REGION_LENGTH__+0x7c20c8>
   22a98:	87 ff       	sbrs	r24, 7
   22a9a:	18 c0       	rjmp	.+48     	; 0x22acc <MarlinSerial::checkRx()+0x8a>
                // Test for a framing error.
                if (UCSR1A & (1<<FE1)) {
   22a9c:	80 91 c8 00 	lds	r24, 0x00C8	; 0x8000c8 <__TEXT_REGION_LENGTH__+0x7c20c8>
   22aa0:	84 ff       	sbrs	r24, 4
   22aa2:	03 c0       	rjmp	.+6      	; 0x22aaa <MarlinSerial::checkRx()+0x68>
                    // Characters received with the framing errors will be ignored.
                    // The temporary variable "c" was made volatile, so the compiler does not optimize this out.
                    (void)(*(char *)UDR1);
   22aa4:	80 91 ce 00 	lds	r24, 0x00CE	; 0x8000ce <__TEXT_REGION_LENGTH__+0x7c20ce>
   22aa8:	08 95       	ret
                } else {
                    unsigned char c  =  UDR1;
   22aaa:	40 91 ce 00 	lds	r20, 0x00CE	; 0x8000ce <__TEXT_REGION_LENGTH__+0x7c20ce>
                    int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
   22aae:	20 91 99 04 	lds	r18, 0x0499	; 0x800499 <rx_buffer+0x80>
   22ab2:	30 91 9a 04 	lds	r19, 0x049A	; 0x80049a <rx_buffer+0x81>
   22ab6:	c9 01       	movw	r24, r18
   22ab8:	01 96       	adiw	r24, 0x01	; 1
   22aba:	8f 77       	andi	r24, 0x7F	; 127
   22abc:	99 27       	eor	r25, r25
                    // if we should be storing the received character into the location
                    // just before the tail (meaning that the head would advance to the
                    // current location of the tail), we're about to overflow the buffer
                    // and so we don't write the character or advance the head.
                    if (i != rx_buffer.tail) {
   22abe:	60 91 9b 04 	lds	r22, 0x049B	; 0x80049b <rx_buffer+0x82>
   22ac2:	70 91 9c 04 	lds	r23, 0x049C	; 0x80049c <rx_buffer+0x83>
   22ac6:	68 17       	cp	r22, r24
   22ac8:	79 07       	cpc	r23, r25
   22aca:	d9 f6       	brne	.-74     	; 0x22a82 <MarlinSerial::checkRx()+0x40>
					M_UDRx = c;
#endif //DEBUG_DUMP_TO_2ND_SERIAL
                }
            }
        }
    }
   22acc:	08 95       	ret

00022ace <Sound_DoSound_Alert(bool)>:

static void Sound_DoSound_Alert(bool bOnce)
{
uint8_t nI,nMax;

nMax=bOnce?1:3;
   22ace:	23 e0       	ldi	r18, 0x03	; 3
   22ad0:	81 11       	cpse	r24, r1
   22ad2:	21 e0       	ldi	r18, 0x01	; 1
for(nI=0;nI<nMax;nI++)
   22ad4:	80 e0       	ldi	r24, 0x00	; 0
   22ad6:	6b e1       	ldi	r22, 0x1B	; 27
   22ad8:	73 e0       	ldi	r23, 0x03	; 3
   22ada:	4b ec       	ldi	r20, 0xCB	; 203
   22adc:	57 e0       	ldi	r21, 0x07	; 7
     {
     WRITE(BEEPER,HIGH);
   22ade:	3f b7       	in	r19, 0x3f	; 63
   22ae0:	f8 94       	cli
   22ae2:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22ae6:	94 60       	ori	r25, 0x04	; 4
   22ae8:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22aec:	3f bf       	out	0x3f, r19	; 63
   22aee:	fb 01       	movw	r30, r22
   22af0:	31 97       	sbiw	r30, 0x01	; 1
   22af2:	f1 f7       	brne	.-4      	; 0x22af0 <Sound_DoSound_Alert(bool)+0x22>
     delayMicroseconds(200);
     WRITE(BEEPER,LOW);
   22af4:	3f b7       	in	r19, 0x3f	; 63
   22af6:	f8 94       	cli
   22af8:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22afc:	9b 7f       	andi	r25, 0xFB	; 251
   22afe:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22b02:	3f bf       	out	0x3f, r19	; 63
   22b04:	fa 01       	movw	r30, r20
   22b06:	31 97       	sbiw	r30, 0x01	; 1
   22b08:	f1 f7       	brne	.-4      	; 0x22b06 <Sound_DoSound_Alert(bool)+0x38>
static void Sound_DoSound_Alert(bool bOnce)
{
uint8_t nI,nMax;

nMax=bOnce?1:3;
for(nI=0;nI<nMax;nI++)
   22b0a:	8f 5f       	subi	r24, 0xFF	; 255
   22b0c:	82 13       	cpse	r24, r18
   22b0e:	e7 cf       	rjmp	.-50     	; 0x22ade <Sound_DoSound_Alert(bool)+0x10>
     WRITE(BEEPER,HIGH);
     delayMicroseconds(200);
     WRITE(BEEPER,LOW);
     delayMicroseconds(500);
     }
}
   22b10:	08 95       	ret

00022b12 <Sound_DoSound_Echo()>:
     delayMicroseconds(75);
     }
}

static void Sound_DoSound_Echo(void)
{
   22b12:	8a e0       	ldi	r24, 0x0A	; 10
   22b14:	2b e8       	ldi	r18, 0x8B	; 139
   22b16:	31 e0       	ldi	r19, 0x01	; 1
uint8_t nI;

for(nI=0;nI<10;nI++)
     {
     WRITE(BEEPER,HIGH);
   22b18:	4f b7       	in	r20, 0x3f	; 63
   22b1a:	f8 94       	cli
   22b1c:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22b20:	94 60       	ori	r25, 0x04	; 4
   22b22:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22b26:	4f bf       	out	0x3f, r20	; 63
   22b28:	f9 01       	movw	r30, r18
   22b2a:	31 97       	sbiw	r30, 0x01	; 1
   22b2c:	f1 f7       	brne	.-4      	; 0x22b2a <Sound_DoSound_Echo()+0x18>
     delayMicroseconds(100);
     WRITE(BEEPER,LOW);
   22b2e:	4f b7       	in	r20, 0x3f	; 63
   22b30:	f8 94       	cli
   22b32:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22b36:	9b 7f       	andi	r25, 0xFB	; 251
   22b38:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   22b3c:	4f bf       	out	0x3f, r20	; 63
   22b3e:	f9 01       	movw	r30, r18
   22b40:	31 97       	sbiw	r30, 0x01	; 1
   22b42:	f1 f7       	brne	.-4      	; 0x22b40 <Sound_DoSound_Echo()+0x2e>
   22b44:	81 50       	subi	r24, 0x01	; 1

static void Sound_DoSound_Echo(void)
{
uint8_t nI;

for(nI=0;nI<10;nI++)
   22b46:	41 f7       	brne	.-48     	; 0x22b18 <Sound_DoSound_Echo()+0x6>
     WRITE(BEEPER,HIGH);
     delayMicroseconds(100);
     WRITE(BEEPER,LOW);
     delayMicroseconds(100);
     }
}
   22b48:	08 95       	ret

00022b4a <lcd_pause_usb_print()>:
}

//! @brief Send host action "pause"
void lcd_pause_usb_print()
{
    SERIAL_PROTOCOLLNRPGM(MSG_HOST_ACTION_ASK_PAUSE);
   22b4a:	85 e6       	ldi	r24, 0x65	; 101
   22b4c:	9e e6       	ldi	r25, 0x6E	; 110
   22b4e:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

00022b52 <lcd_set_fan_check() [clone .lto_priv.416]>:

  MENU_END();
}

void lcd_set_fan_check() {
	fans_check_enabled = !fans_check_enabled;
   22b52:	60 91 38 02 	lds	r22, 0x0238	; 0x800238 <fans_check_enabled>
   22b56:	81 e0       	ldi	r24, 0x01	; 1
   22b58:	68 27       	eor	r22, r24
   22b5a:	60 93 38 02 	sts	0x0238, r22	; 0x800238 <fans_check_enabled>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   22b5e:	87 e8       	ldi	r24, 0x87	; 135
   22b60:	9f e0       	ldi	r25, 0x0F	; 15
   22b62:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	eeprom_update_byte_notify((unsigned char *)EEPROM_FAN_CHECK_ENABLED, fans_check_enabled);
#ifdef FANCHECK
	if (fans_check_enabled == false) fan_check_error = EFCE_OK; //reset error if fanCheck is disabled during error. Allows resuming print.
   22b66:	80 91 38 02 	lds	r24, 0x0238	; 0x800238 <fans_check_enabled>
   22b6a:	81 11       	cpse	r24, r1
   22b6c:	02 c0       	rjmp	.+4      	; 0x22b72 <lcd_set_fan_check() [clone .lto_priv.416]+0x20>
   22b6e:	10 92 e6 03 	sts	0x03E6, r1	; 0x8003e6 <fan_check_error>
#endif //FANCHECK
}
   22b72:	08 95       	ret

00022b74 <lcd_display_message_fullscreen_nonBlocking_P(char const*)>:
 * This function is non-blocking
 * @param msg message to be displayed from PROGMEM
 * @return rest of the text (to be displayed on next page)
 */
static const char* lcd_display_message_fullscreen_nonBlocking_P(const char *msg)
{
   22b74:	af 92       	push	r10
   22b76:	bf 92       	push	r11
   22b78:	cf 92       	push	r12
   22b7a:	df 92       	push	r13
   22b7c:	ef 92       	push	r14
   22b7e:	ff 92       	push	r15
   22b80:	0f 93       	push	r16
   22b82:	1f 93       	push	r17
   22b84:	cf 93       	push	r28
   22b86:	df 93       	push	r29
   22b88:	6c 01       	movw	r12, r24
    const char *msgend = msg;
    bool multi_screen = false;
    lcd_frame_start();
   22b8a:	0e 94 1b 6e 	call	0xdc36	; 0xdc36 <lcd_frame_start()>
 * @param msg message to be displayed from PROGMEM
 * @return rest of the text (to be displayed on next page)
 */
static const char* lcd_display_message_fullscreen_nonBlocking_P(const char *msg)
{
    const char *msgend = msg;
   22b8e:	e6 01       	movw	r28, r12
    bool multi_screen = false;
    lcd_frame_start();
    for (uint8_t row = 0; row < LCD_HEIGHT; ++ row) {
   22b90:	f1 2c       	mov	r15, r1
 * @return rest of the text (to be displayed on next page)
 */
static const char* lcd_display_message_fullscreen_nonBlocking_P(const char *msg)
{
    const char *msgend = msg;
    bool multi_screen = false;
   22b92:	e1 2c       	mov	r14, r1
    lcd_frame_start();
    for (uint8_t row = 0; row < LCD_HEIGHT; ++ row) {
        lcd_set_cursor(0, row);
   22b94:	6f 2d       	mov	r22, r15
   22b96:	80 e0       	ldi	r24, 0x00	; 0
   22b98:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>

        // Previous row ended with a complete word, so the first character in the
        // next row is a whitespace. We can skip the whitespace on a new line.
        if (pgm_is_whitespace(msg) && ++msg == nullptr)
   22b9c:	c6 01       	movw	r24, r12
   22b9e:	0f 94 28 11 	call	0x22250	; 0x22250 <pgm_is_whitespace(char const*)>
   22ba2:	88 23       	and	r24, r24
   22ba4:	29 f0       	breq	.+10     	; 0x22bb0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x3c>
   22ba6:	8f ef       	ldi	r24, 0xFF	; 255
   22ba8:	c8 1a       	sub	r12, r24
   22baa:	d8 0a       	sbc	r13, r24
   22bac:	09 f4       	brne	.+2      	; 0x22bb0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x3c>
   22bae:	49 c0       	rjmp	.+146    	; 0x22c42 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xce>
   22bb0:	c6 01       	movw	r24, r12
   22bb2:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
        {
            // End of the message.
            break;
        }

        uint8_t linelen = min(strlen_P(msg), LCD_WIDTH);
   22bb6:	84 31       	cpi	r24, 0x14	; 20
   22bb8:	91 05       	cpc	r25, r1
   22bba:	10 f0       	brcs	.+4      	; 0x22bc0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x4c>
   22bbc:	84 e1       	ldi	r24, 0x14	; 20
   22bbe:	90 e0       	ldi	r25, 0x00	; 0
        const char *msgend2 = msg + linelen;
   22bc0:	e6 01       	movw	r28, r12
   22bc2:	c8 0f       	add	r28, r24
   22bc4:	d9 1f       	adc	r29, r25
        msgend = msgend2;
        if (row == 3 && linelen == LCD_WIDTH) {
   22bc6:	e3 e0       	ldi	r30, 0x03	; 3
   22bc8:	fe 12       	cpse	r15, r30
   22bca:	0a c0       	rjmp	.+20     	; 0x22be0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x6c>
   22bcc:	84 31       	cpi	r24, 0x14	; 20
   22bce:	41 f4       	brne	.+16     	; 0x22be0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x6c>
            // Last line of the display, full line shall be displayed.
            // Find out, whether this message will be split into multiple screens.
            multi_screen = pgm_read_byte(msgend) != 0;
   22bd0:	fe 01       	movw	r30, r28
   22bd2:	84 91       	lpm	r24, Z
   22bd4:	e1 2c       	mov	r14, r1
            if (multi_screen)
   22bd6:	88 23       	and	r24, r24
   22bd8:	19 f0       	breq	.+6      	; 0x22be0 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x6c>
                msgend = (msgend2 -= 2);
   22bda:	22 97       	sbiw	r28, 0x02	; 2
        const char *msgend2 = msg + linelen;
        msgend = msgend2;
        if (row == 3 && linelen == LCD_WIDTH) {
            // Last line of the display, full line shall be displayed.
            // Find out, whether this message will be split into multiple screens.
            multi_screen = pgm_read_byte(msgend) != 0;
   22bdc:	ee 24       	eor	r14, r14
   22bde:	e3 94       	inc	r14
            if (multi_screen)
                msgend = (msgend2 -= 2);
        }
        if (pgm_read_byte(msgend) != 0 && ! pgm_is_whitespace(msgend) && ! pgm_is_interpunction(msgend)) {
   22be0:	fe 01       	movw	r30, r28
   22be2:	84 91       	lpm	r24, Z
   22be4:	88 23       	and	r24, r24
   22be6:	09 f4       	brne	.+2      	; 0x22bea <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x76>
   22be8:	40 c0       	rjmp	.+128    	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22bea:	ce 01       	movw	r24, r28
   22bec:	0f 94 28 11 	call	0x22250	; 0x22250 <pgm_is_whitespace(char const*)>
   22bf0:	81 11       	cpse	r24, r1
   22bf2:	3b c0       	rjmp	.+118    	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
    return c == ' ' || c == '\t' || c == '\r' || c == '\n';
}

static inline bool pgm_is_interpunction(const char *c_addr)
{
    const char c = pgm_read_byte(c_addr);
   22bf4:	fe 01       	movw	r30, r28
   22bf6:	84 91       	lpm	r24, Z
    return c == '.' || c == ',' || c == ':'|| c == ';' || c == '?' || c == '!' || c == '/';
   22bf8:	92 ed       	ldi	r25, 0xD2	; 210
   22bfa:	98 0f       	add	r25, r24
   22bfc:	92 30       	cpi	r25, 0x02	; 2
   22bfe:	a8 f1       	brcs	.+106    	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c00:	8c 32       	cpi	r24, 0x2C	; 44
   22c02:	99 f1       	breq	.+102    	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c04:	96 ec       	ldi	r25, 0xC6	; 198
   22c06:	98 0f       	add	r25, r24
   22c08:	92 30       	cpi	r25, 0x02	; 2
   22c0a:	78 f1       	brcs	.+94     	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c0c:	8f 33       	cpi	r24, 0x3F	; 63
   22c0e:	69 f1       	breq	.+90     	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c10:	81 32       	cpi	r24, 0x21	; 33
   22c12:	59 f1       	breq	.+86     	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c14:	8e 01       	movw	r16, r28
            if (multi_screen)
                msgend = (msgend2 -= 2);
        }
        if (pgm_read_byte(msgend) != 0 && ! pgm_is_whitespace(msgend) && ! pgm_is_interpunction(msgend)) {
            // Splitting a word. Find the start of the current word.
            while (msgend > msg && ! pgm_is_whitespace(msgend - 1))
   22c16:	c0 16       	cp	r12, r16
   22c18:	d1 06       	cpc	r13, r17
   22c1a:	58 f4       	brcc	.+22     	; 0x22c32 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xbe>
   22c1c:	58 01       	movw	r10, r16
   22c1e:	f1 e0       	ldi	r31, 0x01	; 1
   22c20:	af 1a       	sub	r10, r31
   22c22:	b1 08       	sbc	r11, r1
   22c24:	c5 01       	movw	r24, r10
   22c26:	0f 94 28 11 	call	0x22250	; 0x22250 <pgm_is_whitespace(char const*)>
   22c2a:	81 11       	cpse	r24, r1
   22c2c:	1d c0       	rjmp	.+58     	; 0x22c68 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf4>
                 -- msgend;
   22c2e:	85 01       	movw	r16, r10
   22c30:	f2 cf       	rjmp	.-28     	; 0x22c16 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xa2>
            if (msgend == msg)
   22c32:	c0 16       	cp	r12, r16
   22c34:	d1 06       	cpc	r13, r17
   22c36:	c9 f0       	breq	.+50     	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
   22c38:	e8 01       	movw	r28, r16
static const char* lcd_display_message_fullscreen_nonBlocking_P(const char *msg)
{
    const char *msgend = msg;
    bool multi_screen = false;
    lcd_frame_start();
    for (uint8_t row = 0; row < LCD_HEIGHT; ++ row) {
   22c3a:	f3 94       	inc	r15
   22c3c:	84 e0       	ldi	r24, 0x04	; 4
   22c3e:	f8 12       	cpse	r15, r24
   22c40:	a9 cf       	rjmp	.-174    	; 0x22b94 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x20>
            }
            lcd_print(c);
        }
    }

    if (multi_screen) {
   22c42:	ee 20       	and	r14, r14
   22c44:	f9 f0       	breq	.+62     	; 0x22c84 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0x110>
        // Display the double down arrow.
        lcd_putc_at(19, 3, LCD_STR_ARROW_2_DOWN[0]);
   22c46:	48 e8       	ldi	r20, 0x88	; 136
   22c48:	63 e0       	ldi	r22, 0x03	; 3
   22c4a:	83 e1       	ldi	r24, 0x13	; 19
   22c4c:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    }

    return multi_screen ? msgend : NULL;
}
   22c50:	ce 01       	movw	r24, r28
   22c52:	df 91       	pop	r29
   22c54:	cf 91       	pop	r28
   22c56:	1f 91       	pop	r17
   22c58:	0f 91       	pop	r16
   22c5a:	ff 90       	pop	r15
   22c5c:	ef 90       	pop	r14
   22c5e:	df 90       	pop	r13
   22c60:	cf 90       	pop	r12
   22c62:	bf 90       	pop	r11
   22c64:	af 90       	pop	r10
   22c66:	08 95       	ret
            if (multi_screen)
                msgend = (msgend2 -= 2);
        }
        if (pgm_read_byte(msgend) != 0 && ! pgm_is_whitespace(msgend) && ! pgm_is_interpunction(msgend)) {
            // Splitting a word. Find the start of the current word.
            while (msgend > msg && ! pgm_is_whitespace(msgend - 1))
   22c68:	e8 01       	movw	r28, r16
                 -- msgend;
            if (msgend == msg)
                // Found a single long word, which cannot be split. Just cut it.
                msgend = msgend2;
        }
        for (; msg < msgend; ++ msg) {
   22c6a:	cc 16       	cp	r12, r28
   22c6c:	dd 06       	cpc	r13, r29
   22c6e:	28 f7       	brcc	.-54     	; 0x22c3a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xc6>
            char c = char(pgm_read_byte(msg));
   22c70:	f6 01       	movw	r30, r12
   22c72:	84 91       	lpm	r24, Z
            if (c == '\n') {
   22c74:	8a 30       	cpi	r24, 0x0A	; 10
   22c76:	09 f3       	breq	.-62     	; 0x22c3a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xc6>
   22c78:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
                 -- msgend;
            if (msgend == msg)
                // Found a single long word, which cannot be split. Just cut it.
                msgend = msgend2;
        }
        for (; msg < msgend; ++ msg) {
   22c7c:	ff ef       	ldi	r31, 0xFF	; 255
   22c7e:	cf 1a       	sub	r12, r31
   22c80:	df 0a       	sbc	r13, r31
   22c82:	f3 cf       	rjmp	.-26     	; 0x22c6a <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xf6>
    if (multi_screen) {
        // Display the double down arrow.
        lcd_putc_at(19, 3, LCD_STR_ARROW_2_DOWN[0]);
    }

    return multi_screen ? msgend : NULL;
   22c84:	d0 e0       	ldi	r29, 0x00	; 0
   22c86:	c0 e0       	ldi	r28, 0x00	; 0
   22c88:	e3 cf       	rjmp	.-58     	; 0x22c50 <lcd_display_message_fullscreen_nonBlocking_P(char const*)+0xdc>

00022c8a <lcd_menu_temperatures_line(char const*, int)>:
#endif /* DEBUG_BUILD */

//! @brief common line print for lcd_menu_temperatures
//! @param [in] ipgmLabel pointer to string in PROGMEM
//! @param [in] value to be printed behind the label
static void lcd_menu_temperatures_line(const char *ipgmLabel, int value){
   22c8a:	cf 93       	push	r28
   22c8c:	df 93       	push	r29
   22c8e:	cd b7       	in	r28, 0x3d	; 61
   22c90:	de b7       	in	r29, 0x3e	; 62
   22c92:	2f 97       	sbiw	r28, 0x0f	; 15
   22c94:	0f b6       	in	r0, 0x3f	; 63
   22c96:	f8 94       	cli
   22c98:	de bf       	out	0x3e, r29	; 62
   22c9a:	0f be       	out	0x3f, r0	; 63
   22c9c:	cd bf       	out	0x3d, r28	; 61
   22c9e:	fc 01       	movw	r30, r24
   22ca0:	de 01       	movw	r26, r28
   22ca2:	11 96       	adiw	r26, 0x01	; 1
//! it is better to reuse these texts even though it requires some extra formatting code.
//! @param [in] ipgmLabel pointer to string in PROGMEM
//! @param [out] pointer to string in RAM which will receive the formatted text. Must be allocated to appropriate size
//! @param [in] dstSize allocated length of dst
static void pgmtext_with_colon(const char *ipgmLabel, char *dst, uint8_t dstSize){
    uint8_t i = 0;
   22ca4:	90 e0       	ldi	r25, 0x00	; 0
   22ca6:	9d 01       	movw	r18, r26
    for(; i < dstSize - 2; ++i){ // 2 byte less than buffer, we'd be adding a ':' to the end
        uint8_t b = pgm_read_byte(ipgmLabel + i);
   22ca8:	84 91       	lpm	r24, Z
   22caa:	41 e0       	ldi	r20, 0x01	; 1
   22cac:	49 0f       	add	r20, r25
        if( ! b )
   22cae:	88 23       	and	r24, r24
   22cb0:	29 f0       	breq	.+10     	; 0x22cbc <lcd_menu_temperatures_line(char const*, int)+0x32>
            break;
        dst[i] = b;
   22cb2:	8d 93       	st	X+, r24
   22cb4:	31 96       	adiw	r30, 0x01	; 1
   22cb6:	94 2f       	mov	r25, r20
//! @param [in] ipgmLabel pointer to string in PROGMEM
//! @param [out] pointer to string in RAM which will receive the formatted text. Must be allocated to appropriate size
//! @param [in] dstSize allocated length of dst
static void pgmtext_with_colon(const char *ipgmLabel, char *dst, uint8_t dstSize){
    uint8_t i = 0;
    for(; i < dstSize - 2; ++i){ // 2 byte less than buffer, we'd be adding a ':' to the end
   22cb8:	4d 30       	cpi	r20, 0x0D	; 13
   22cba:	b1 f7       	brne	.-20     	; 0x22ca8 <lcd_menu_temperatures_line(char const*, int)+0x1e>
        uint8_t b = pgm_read_byte(ipgmLabel + i);
        if( ! b )
            break;
        dst[i] = b;
    }
    dst[i] = ':';               // append the colon
   22cbc:	f9 01       	movw	r30, r18
   22cbe:	e9 0f       	add	r30, r25
   22cc0:	f1 1d       	adc	r31, r1
   22cc2:	8a e3       	ldi	r24, 0x3A	; 58
   22cc4:	80 83       	st	Z, r24
    ++i;
   22cc6:	9f 5f       	subi	r25, 0xFF	; 255
   22cc8:	f9 01       	movw	r30, r18
   22cca:	e9 0f       	add	r30, r25
   22ccc:	f1 1d       	adc	r31, r1
    for(; i < dstSize - 1; ++i) // fill the rest with spaces
        dst[i] = ' ';
   22cce:	80 e2       	ldi	r24, 0x20	; 32
            break;
        dst[i] = b;
    }
    dst[i] = ':';               // append the colon
    ++i;
    for(; i < dstSize - 1; ++i) // fill the rest with spaces
   22cd0:	9e 30       	cpi	r25, 0x0E	; 14
   22cd2:	19 f0       	breq	.+6      	; 0x22cda <lcd_menu_temperatures_line(char const*, int)+0x50>
        dst[i] = ' ';
   22cd4:	81 93       	st	Z+, r24
            break;
        dst[i] = b;
    }
    dst[i] = ':';               // append the colon
    ++i;
    for(; i < dstSize - 1; ++i) // fill the rest with spaces
   22cd6:	9f 5f       	subi	r25, 0xFF	; 255
   22cd8:	fb cf       	rjmp	.-10     	; 0x22cd0 <lcd_menu_temperatures_line(char const*, int)+0x46>
        dst[i] = ' ';
    dst[dstSize-1] = '\0';      // terminate the string properly
   22cda:	1f 86       	std	Y+15, r1	; 0x0f
//! @param [in] value to be printed behind the label
static void lcd_menu_temperatures_line(const char *ipgmLabel, int value){
    static const size_t maxChars = 15;
    char tmp[maxChars];
    pgmtext_with_colon(ipgmLabel, tmp, maxChars);
    lcd_printf_P(PSTR(" %s%3d" LCD_STR_DEGREE " \n"), tmp, value); // no need to add -14.14 to string alignment
   22cdc:	7f 93       	push	r23
   22cde:	6f 93       	push	r22
   22ce0:	3f 93       	push	r19
   22ce2:	2f 93       	push	r18
   22ce4:	86 e4       	ldi	r24, 0x46	; 70
   22ce6:	90 ea       	ldi	r25, 0xA0	; 160
   22ce8:	9f 93       	push	r25
   22cea:	8f 93       	push	r24
   22cec:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   22cf0:	0f 90       	pop	r0
   22cf2:	0f 90       	pop	r0
   22cf4:	0f 90       	pop	r0
   22cf6:	0f 90       	pop	r0
   22cf8:	0f 90       	pop	r0
   22cfa:	0f 90       	pop	r0
}
   22cfc:	2f 96       	adiw	r28, 0x0f	; 15
   22cfe:	0f b6       	in	r0, 0x3f	; 63
   22d00:	f8 94       	cli
   22d02:	de bf       	out	0x3e, r29	; 62
   22d04:	0f be       	out	0x3f, r0	; 63
   22d06:	cd bf       	out	0x3d, r28	; 61
   22d08:	df 91       	pop	r29
   22d0a:	cf 91       	pop	r28
   22d0c:	08 95       	ret

00022d0e <lcd_adjust_bed()>:
//! |Rear side [µm]:     |	MSG_BED_CORRECTION_REAR
//! |Reset               |	MSG_BED_CORRECTION_RESET
//! ----------------------
//! @endcode
void lcd_adjust_bed(void)
{
   22d0e:	ef 92       	push	r14
   22d10:	ff 92       	push	r15
   22d12:	0f 93       	push	r16
   22d14:	1f 93       	push	r17
	_menu_data_adjust_bed_t* _md = (_menu_data_adjust_bed_t*)&(menu_data[0]);
    if (_md->status == 0)
   22d16:	80 91 b6 03 	lds	r24, 0x03B6	; 0x8003b6 <menu_data+0xd>
   22d1a:	81 11       	cpse	r24, r1
   22d1c:	35 c0       	rjmp	.+106    	; 0x22d88 <lcd_adjust_bed()+0x7a>
	{
        // Menu was entered.
        if (eeprom_read_byte((unsigned char*)EEPROM_BED_CORRECTION_VALID) == 1)
   22d1e:	80 ec       	ldi	r24, 0xC0	; 192
   22d20:	9f e0       	ldi	r25, 0x0F	; 15
   22d22:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22d26:	81 30       	cpi	r24, 0x01	; 1
   22d28:	61 f5       	brne	.+88     	; 0x22d82 <lcd_adjust_bed()+0x74>
		{
			_md->left = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_LEFT);
   22d2a:	8f eb       	ldi	r24, 0xBF	; 191
   22d2c:	9f e0       	ldi	r25, 0x0F	; 15
   22d2e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22d32:	08 2e       	mov	r0, r24
   22d34:	00 0c       	add	r0, r0
   22d36:	99 0b       	sbc	r25, r25
   22d38:	90 93 b8 03 	sts	0x03B8, r25	; 0x8003b8 <menu_data+0xf>
   22d3c:	80 93 b7 03 	sts	0x03B7, r24	; 0x8003b7 <menu_data+0xe>
			_md->right = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_RIGHT);
   22d40:	8e eb       	ldi	r24, 0xBE	; 190
   22d42:	9f e0       	ldi	r25, 0x0F	; 15
   22d44:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22d48:	08 2e       	mov	r0, r24
   22d4a:	00 0c       	add	r0, r0
   22d4c:	99 0b       	sbc	r25, r25
   22d4e:	90 93 ba 03 	sts	0x03BA, r25	; 0x8003ba <menu_data+0x11>
   22d52:	80 93 b9 03 	sts	0x03B9, r24	; 0x8003b9 <menu_data+0x10>
			_md->front = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_FRONT);
   22d56:	8d eb       	ldi	r24, 0xBD	; 189
   22d58:	9f e0       	ldi	r25, 0x0F	; 15
   22d5a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22d5e:	08 2e       	mov	r0, r24
   22d60:	00 0c       	add	r0, r0
   22d62:	99 0b       	sbc	r25, r25
   22d64:	90 93 bc 03 	sts	0x03BC, r25	; 0x8003bc <menu_data+0x13>
   22d68:	80 93 bb 03 	sts	0x03BB, r24	; 0x8003bb <menu_data+0x12>
			_md->rear = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_REAR);
   22d6c:	8c eb       	ldi	r24, 0xBC	; 188
   22d6e:	9f e0       	ldi	r25, 0x0F	; 15
   22d70:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22d74:	08 2e       	mov	r0, r24
   22d76:	00 0c       	add	r0, r0
   22d78:	99 0b       	sbc	r25, r25
   22d7a:	90 93 be 03 	sts	0x03BE, r25	; 0x8003be <menu_data+0x15>
   22d7e:	80 93 bd 03 	sts	0x03BD, r24	; 0x8003bd <menu_data+0x14>
		}
        _md->status = 1;
   22d82:	81 e0       	ldi	r24, 0x01	; 1
   22d84:	80 93 b6 03 	sts	0x03B6, r24	; 0x8003b6 <menu_data+0xd>
    }
    MENU_BEGIN();
   22d88:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   22d8c:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   22d90:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   22d94:	84 30       	cpi	r24, 0x04	; 4
   22d96:	08 f0       	brcs	.+2      	; 0x22d9a <lcd_adjust_bed()+0x8c>
   22d98:	6e c0       	rjmp	.+220    	; 0x22e76 <lcd_adjust_bed()+0x168>
   22d9a:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	// leaving menu - this condition must be immediately before MENU_ITEM_BACK_P
    ON_MENU_LEAVE(
   22d9e:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   22da2:	88 23       	and	r24, r24
   22da4:	e9 f0       	breq	.+58     	; 0x22de0 <lcd_adjust_bed()+0xd2>
   22da6:	60 91 b7 03 	lds	r22, 0x03B7	; 0x8003b7 <menu_data+0xe>
   22daa:	8f eb       	ldi	r24, 0xBF	; 191
   22dac:	9f e0       	ldi	r25, 0x0F	; 15
   22dae:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   22db2:	60 91 bb 03 	lds	r22, 0x03BB	; 0x8003bb <menu_data+0x12>
   22db6:	8d eb       	ldi	r24, 0xBD	; 189
   22db8:	9f e0       	ldi	r25, 0x0F	; 15
   22dba:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   22dbe:	60 91 bd 03 	lds	r22, 0x03BD	; 0x8003bd <menu_data+0x14>
   22dc2:	8c eb       	ldi	r24, 0xBC	; 188
   22dc4:	9f e0       	ldi	r25, 0x0F	; 15
   22dc6:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   22dca:	60 91 b9 03 	lds	r22, 0x03B9	; 0x8003b9 <menu_data+0x10>
   22dce:	8e eb       	ldi	r24, 0xBE	; 190
   22dd0:	9f e0       	ldi	r25, 0x0F	; 15
   22dd2:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   22dd6:	61 e0       	ldi	r22, 0x01	; 1
   22dd8:	80 ec       	ldi	r24, 0xC0	; 192
   22dda:	9f e0       	ldi	r25, 0x0F	; 15
   22ddc:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        eeprom_update_byte_notify((uint8_t*)EEPROM_BED_CORRECTION_FRONT, (uint8_t)_md->front);
        eeprom_update_byte_notify((uint8_t*)EEPROM_BED_CORRECTION_REAR, (uint8_t)_md->rear);
        eeprom_update_byte_notify((uint8_t*)EEPROM_BED_CORRECTION_RIGHT, (uint8_t)_md->right);
        eeprom_update_byte_notify((uint8_t*)EEPROM_BED_CORRECTION_VALID, 1);
    );
    MENU_ITEM_BACK_P(_T(MSG_BACK));
   22de0:	8f e4       	ldi	r24, 0x4F	; 79
   22de2:	99 e4       	ldi	r25, 0x49	; 73
   22de4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22de8:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_LEFT),  &_md->left,  -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
   22dec:	84 ed       	ldi	r24, 0xD4	; 212
   22dee:	90 e5       	ldi	r25, 0x50	; 80
   22df0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22df4:	f1 2c       	mov	r15, r1
   22df6:	e1 2c       	mov	r14, r1
   22df8:	04 e6       	ldi	r16, 0x64	; 100
   22dfa:	10 e0       	ldi	r17, 0x00	; 0
   22dfc:	2c e9       	ldi	r18, 0x9C	; 156
   22dfe:	3f ef       	ldi	r19, 0xFF	; 255
   22e00:	40 e1       	ldi	r20, 0x10	; 16
   22e02:	67 eb       	ldi	r22, 0xB7	; 183
   22e04:	73 e0       	ldi	r23, 0x03	; 3
   22e06:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_RIGHT), &_md->right, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
   22e0a:	83 ec       	ldi	r24, 0xC3	; 195
   22e0c:	90 e5       	ldi	r25, 0x50	; 80
   22e0e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22e12:	2c e9       	ldi	r18, 0x9C	; 156
   22e14:	3f ef       	ldi	r19, 0xFF	; 255
   22e16:	40 e1       	ldi	r20, 0x10	; 16
   22e18:	69 eb       	ldi	r22, 0xB9	; 185
   22e1a:	73 e0       	ldi	r23, 0x03	; 3
   22e1c:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_FRONT), &_md->front, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
   22e20:	82 eb       	ldi	r24, 0xB2	; 178
   22e22:	90 e5       	ldi	r25, 0x50	; 80
   22e24:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22e28:	2c e9       	ldi	r18, 0x9C	; 156
   22e2a:	3f ef       	ldi	r19, 0xFF	; 255
   22e2c:	40 e1       	ldi	r20, 0x10	; 16
   22e2e:	6b eb       	ldi	r22, 0xBB	; 187
   22e30:	73 e0       	ldi	r23, 0x03	; 3
   22e32:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_REAR),  &_md->rear,  -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
   22e36:	81 ea       	ldi	r24, 0xA1	; 161
   22e38:	90 e5       	ldi	r25, 0x50	; 80
   22e3a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22e3e:	2c e9       	ldi	r18, 0x9C	; 156
   22e40:	3f ef       	ldi	r19, 0xFF	; 255
   22e42:	40 e1       	ldi	r20, 0x10	; 16
   22e44:	6d eb       	ldi	r22, 0xBD	; 189
   22e46:	73 e0       	ldi	r23, 0x03	; 3
   22e48:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
    MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_adjust_bed_reset);
   22e4c:	83 e9       	ldi	r24, 0x93	; 147
   22e4e:	95 e4       	ldi	r25, 0x45	; 69
   22e50:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22e54:	68 e5       	ldi	r22, 0x58	; 88
   22e56:	79 e3       	ldi	r23, 0x39	; 57
   22e58:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_END();
   22e5c:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
			_md->front = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_FRONT);
			_md->rear = (int8_t)eeprom_read_byte((uint8_t*)EEPROM_BED_CORRECTION_REAR);
		}
        _md->status = 1;
    }
    MENU_BEGIN();
   22e60:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   22e64:	8f 5f       	subi	r24, 0xFF	; 255
   22e66:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   22e6a:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   22e6e:	8f 5f       	subi	r24, 0xFF	; 255
   22e70:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   22e74:	8d cf       	rjmp	.-230    	; 0x22d90 <lcd_adjust_bed()+0x82>
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_RIGHT), &_md->right, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_FRONT), &_md->front, -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
    MENU_ITEM_EDIT_int3_P(_T(MSG_BED_CORRECTION_REAR),  &_md->rear,  -BED_ADJUSTMENT_UM_MAX, BED_ADJUSTMENT_UM_MAX);
    MENU_ITEM_FUNCTION_P(_T(MSG_RESET), lcd_adjust_bed_reset);
    MENU_END();
}
   22e76:	1f 91       	pop	r17
   22e78:	0f 91       	pop	r16
   22e7a:	ff 90       	pop	r15
   22e7c:	ef 90       	pop	r14
   22e7e:	08 95       	ret

00022e80 <shouldPreheatOnlyNozzle()>:
    }
}
#endif //MMU_HAS_CUTTER

bool shouldPreheatOnlyNozzle() {
    uint8_t eeprom_setting = eeprom_read_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT);
   22e80:	87 ea       	ldi	r24, 0xA7	; 167
   22e82:	9c e0       	ldi	r25, 0x0C	; 12
   22e84:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    if (eeprom_setting != 0)
   22e88:	81 11       	cpse	r24, r1
   22e8a:	05 c0       	rjmp	.+10     	; 0x22e96 <shouldPreheatOnlyNozzle()+0x16>
        return false;

    switch(eFilamentAction) {
   22e8c:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   22e90:	81 50       	subi	r24, 0x01	; 1
   22e92:	88 30       	cpi	r24, 0x08	; 8
   22e94:	10 f0       	brcs	.+4      	; 0x22e9a <shouldPreheatOnlyNozzle()+0x1a>
#endif //MMU_HAS_CUTTER

bool shouldPreheatOnlyNozzle() {
    uint8_t eeprom_setting = eeprom_read_byte((uint8_t*)EEPROM_HEAT_BED_ON_LOAD_FILAMENT);
    if (eeprom_setting != 0)
        return false;
   22e96:	80 e0       	ldi	r24, 0x00	; 0
   22e98:	08 95       	ret
        case FilamentAction::MmuLoad:
        case FilamentAction::MmuUnLoad:
        case FilamentAction::MmuLoadingTest:
        case FilamentAction::MmuEject:
        case FilamentAction::MmuCut:
            return true;
   22e9a:	81 e0       	ldi	r24, 0x01	; 1
        default:
            return false;
    }
}
   22e9c:	08 95       	ret

00022e9e <lcd_cutter_enabled() [clone .lto_priv.417]>:
}

#ifdef MMU_HAS_CUTTER
void lcd_cutter_enabled()
{
    if (EEPROM_MMU_CUTTER_ENABLED_enabled == eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED))
   22e9e:	8e ec       	ldi	r24, 0xCE	; 206
   22ea0:	9e e0       	ldi	r25, 0x0E	; 14
   22ea2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22ea6:	60 e0       	ldi	r22, 0x00	; 0
   22ea8:	81 30       	cpi	r24, 0x01	; 1
   22eaa:	09 f0       	breq	.+2      	; 0x22eae <lcd_cutter_enabled() [clone .lto_priv.417]+0x10>
   22eac:	61 e0       	ldi	r22, 0x01	; 1
   22eae:	8e ec       	ldi	r24, 0xCE	; 206
   22eb0:	9e e0       	ldi	r25, 0x0E	; 14
   22eb2:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

00022eb6 <SpoolJoin::SpoolJoin::toggleSpoolJoin()>:
    }
}

void SpoolJoin::toggleSpoolJoin()
{
    if (eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN) == (uint8_t)EEPROM::Disabled)
   22eb6:	86 ed       	ldi	r24, 0xD6	; 214
   22eb8:	9e e0       	ldi	r25, 0x0E	; 14
   22eba:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   22ebe:	61 e0       	ldi	r22, 0x01	; 1
   22ec0:	82 30       	cpi	r24, 0x02	; 2
   22ec2:	09 f0       	breq	.+2      	; 0x22ec6 <SpoolJoin::SpoolJoin::toggleSpoolJoin()+0x10>
   22ec4:	62 e0       	ldi	r22, 0x02	; 2
   22ec6:	86 ed       	ldi	r24, 0xD6	; 214
   22ec8:	9e e0       	ldi	r25, 0x0E	; 14
   22eca:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

00022ece <lcd_adjust_bed_reset()>:
} _menu_data_adjust_bed_t;
static_assert(sizeof(menu_data)>= sizeof(_menu_data_adjust_bed_t),"_menu_data_adjust_bed_t doesn't fit into menu_data");

void lcd_adjust_bed_reset(void)
{
	eeprom_adjust_bed_reset();
   22ece:	0e 94 1f 76 	call	0xec3e	; 0xec3e <eeprom_adjust_bed_reset()>
	_menu_data_adjust_bed_t* _md = (_menu_data_adjust_bed_t*)&(menu_data[0]);
	_md->status = 0;
   22ed2:	10 92 b6 03 	sts	0x03B6, r1	; 0x8003b6 <menu_data+0xd>
}
   22ed6:	08 95       	ret

00022ed8 <lcd_menu_AutoLoadFilament() [clone .lto_priv.413]>:
}

#if defined(FILAMENT_SENSOR) && !defined(REMOVE_AUTOLOAD_FILAMENT_MENU_ENTRY)
static void lcd_menu_AutoLoadFilament()
{
    lcd_display_message_fullscreen_nonBlocking_P(_T(MSG_AUTOLOADING_ENABLED));
   22ed8:	80 e8       	ldi	r24, 0x80	; 128
   22eda:	9f e4       	ldi	r25, 0x4F	; 79
   22edc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22ee0:	0f 94 ba 15 	call	0x22b74	; 0x22b74 <lcd_display_message_fullscreen_nonBlocking_P(char const*)>
    menu_back_if_clicked();
   22ee4:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00022ee8 <lcd_menu_extruder_info()>:
//! |                    |
//! |                    |
//! ----------------------
//! @endcode
void lcd_menu_extruder_info()                     // NOT static due to using inside "Marlin_main" module ("manage_inactivity()")
{
   22ee8:	df 92       	push	r13
   22eea:	ef 92       	push	r14
   22eec:	ff 92       	push	r15
   22eee:	0f 93       	push	r16
   22ef0:	1f 93       	push	r17
   22ef2:	cf 93       	push	r28
   22ef4:	df 93       	push	r29
   22ef6:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>

    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
   22efa:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
	lcd_printf_P(PSTR("%-15.15S%-5d\n" "%-15.15S%-5d\n"), _T(MSG_HOTEND_FAN_SPEED), 60*fan_speed[0], _T(MSG_PRINT_FAN_SPEED), 60*fan_speed[1] );
   22efe:	c9 ec       	ldi	r28, 0xC9	; 201
   22f00:	d3 e0       	ldi	r29, 0x03	; 3
   22f02:	8a 81       	ldd	r24, Y+2	; 0x02
   22f04:	9b 81       	ldd	r25, Y+3	; 0x03
   22f06:	2c e3       	ldi	r18, 0x3C	; 60
   22f08:	f2 2e       	mov	r15, r18
   22f0a:	f8 9e       	mul	r15, r24
   22f0c:	80 01       	movw	r16, r0
   22f0e:	f9 9e       	mul	r15, r25
   22f10:	10 0d       	add	r17, r0
   22f12:	11 24       	eor	r1, r1
   22f14:	86 e8       	ldi	r24, 0x86	; 134
   22f16:	98 e4       	ldi	r25, 0x48	; 72
   22f18:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22f1c:	e8 2e       	mov	r14, r24
   22f1e:	d9 2e       	mov	r13, r25
   22f20:	88 81       	ld	r24, Y
   22f22:	99 81       	ldd	r25, Y+1	; 0x01
   22f24:	f8 9e       	mul	r15, r24
   22f26:	e0 01       	movw	r28, r0
   22f28:	f9 9e       	mul	r15, r25
   22f2a:	d0 0d       	add	r29, r0
   22f2c:	11 24       	eor	r1, r1
   22f2e:	83 e9       	ldi	r24, 0x93	; 147
   22f30:	98 e4       	ldi	r25, 0x48	; 72
   22f32:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22f36:	1f 93       	push	r17
   22f38:	0f 93       	push	r16
   22f3a:	df 92       	push	r13
   22f3c:	ef 92       	push	r14
   22f3e:	df 93       	push	r29
   22f40:	cf 93       	push	r28
   22f42:	9f 93       	push	r25
   22f44:	8f 93       	push	r24
   22f46:	8a ea       	ldi	r24, 0xAA	; 170
   22f48:	9f e9       	ldi	r25, 0x9F	; 159
   22f4a:	9f 93       	push	r25
   22f4c:	8f 93       	push	r24
   22f4e:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
    menu_back_if_clicked();
   22f52:	8d b7       	in	r24, 0x3d	; 61
   22f54:	9e b7       	in	r25, 0x3e	; 62
   22f56:	0a 96       	adiw	r24, 0x0a	; 10
   22f58:	0f b6       	in	r0, 0x3f	; 63
   22f5a:	f8 94       	cli
   22f5c:	9e bf       	out	0x3e, r25	; 62
   22f5e:	0f be       	out	0x3f, r0	; 63
   22f60:	8d bf       	out	0x3d, r24	; 61
}
   22f62:	df 91       	pop	r29
   22f64:	cf 91       	pop	r28
   22f66:	1f 91       	pop	r17
   22f68:	0f 91       	pop	r16
   22f6a:	ff 90       	pop	r15
   22f6c:	ef 90       	pop	r14
   22f6e:	df 90       	pop	r13
{

    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
	lcd_printf_P(PSTR("%-15.15S%-5d\n" "%-15.15S%-5d\n"), _T(MSG_HOTEND_FAN_SPEED), 60*fan_speed[0], _T(MSG_PRINT_FAN_SPEED), 60*fan_speed[1] );
    menu_back_if_clicked();
   22f70:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00022f74 <lcd_menu_temperatures()>:
//! | PINDA:         000D|	MSG_PINDA c=14
//! ----------------------
//! D - Degree sysmbol		LCD_STR_DEGREE
//! @endcode
static void lcd_menu_temperatures()
{
   22f74:	cf 92       	push	r12
   22f76:	df 92       	push	r13
   22f78:	ef 92       	push	r14
   22f7a:	ff 92       	push	r15
   22f7c:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
   22f80:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_menu_temperatures_line( _T(MSG_NOZZLE), (int)current_temperature[0] );
   22f84:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   22f88:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   22f8c:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   22f90:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   22f94:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   22f98:	6b 01       	movw	r12, r22
   22f9a:	84 eb       	ldi	r24, 0xB4	; 180
   22f9c:	93 e4       	ldi	r25, 0x43	; 67
   22f9e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22fa2:	b6 01       	movw	r22, r12
   22fa4:	0f 94 45 16 	call	0x22c8a	; 0x22c8a <lcd_menu_temperatures_line(char const*, int)>
    lcd_menu_temperatures_line( _T(MSG_BED), (int)current_temperature_bed );
   22fa8:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   22fac:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   22fb0:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   22fb4:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   22fb8:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   22fbc:	6b 01       	movw	r12, r22
   22fbe:	89 e9       	ldi	r24, 0x99	; 153
   22fc0:	93 e4       	ldi	r25, 0x43	; 67
   22fc2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22fc6:	b6 01       	movw	r22, r12
   22fc8:	0f 94 45 16 	call	0x22c8a	; 0x22c8a <lcd_menu_temperatures_line(char const*, int)>
#ifdef AMBIENT_THERMISTOR
    lcd_menu_temperatures_line( _T(MSG_AMBIENT), (int)current_temperature_ambient );
   22fcc:	60 91 56 06 	lds	r22, 0x0656	; 0x800656 <current_temperature_ambient>
   22fd0:	70 91 57 06 	lds	r23, 0x0657	; 0x800657 <current_temperature_ambient+0x1>
   22fd4:	80 91 58 06 	lds	r24, 0x0658	; 0x800658 <current_temperature_ambient+0x2>
   22fd8:	90 91 59 06 	lds	r25, 0x0659	; 0x800659 <current_temperature_ambient+0x3>
   22fdc:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   22fe0:	6b 01       	movw	r12, r22
   22fe2:	8b e1       	ldi	r24, 0x1B	; 27
   22fe4:	9e e4       	ldi	r25, 0x4E	; 78
   22fe6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   22fea:	b6 01       	movw	r22, r12
   22fec:	0f 94 45 16 	call	0x22c8a	; 0x22c8a <lcd_menu_temperatures_line(char const*, int)>
#endif //AMBIENT_THERMISTOR
#ifdef PINDA_THERMISTOR
    lcd_menu_temperatures_line(MSG_PINDA, (int)current_temperature_pinda );  ////MSG_PINDA
   22ff0:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   22ff4:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   22ff8:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   22ffc:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   23000:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   23004:	8e ec       	ldi	r24, 0xCE	; 206
   23006:	99 e6       	ldi	r25, 0x69	; 105
   23008:	0f 94 45 16 	call	0x22c8a	; 0x22c8a <lcd_menu_temperatures_line(char const*, int)>
#endif //PINDA_THERMISTOR
    menu_back_if_clicked();
}
   2300c:	ff 90       	pop	r15
   2300e:	ef 90       	pop	r14
   23010:	df 90       	pop	r13
   23012:	cf 90       	pop	r12
    lcd_menu_temperatures_line( _T(MSG_AMBIENT), (int)current_temperature_ambient );
#endif //AMBIENT_THERMISTOR
#ifdef PINDA_THERMISTOR
    lcd_menu_temperatures_line(MSG_PINDA, (int)current_temperature_pinda );  ////MSG_PINDA
#endif //PINDA_THERMISTOR
    menu_back_if_clicked();
   23014:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00023018 <lcd_menu_voltages()>:
//! | Bed:         00.0V |	c=12
//! | IR :         00.0V |  c=12 optional
//! ----------------------
//! @endcode
static void lcd_menu_voltages()
{
   23018:	cf 92       	push	r12
   2301a:	df 92       	push	r13
   2301c:	ef 92       	push	r14
   2301e:	ff 92       	push	r15
   23020:	0f 93       	push	r16
   23022:	1f 93       	push	r17
   23024:	cf 93       	push	r28
   23026:	df 93       	push	r29
   23028:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    lcd_timeoutToStatus.stop(); //infinite timeout
    float volt_pwr = VOLT_DIV_REF * ((float)current_voltage_raw_pwr / (1023 * OVERSAMPLENR)) / VOLT_DIV_FAC;
   2302c:	60 91 5c 06 	lds	r22, 0x065C	; 0x80065c <current_voltage_raw_pwr>
   23030:	70 91 5d 06 	lds	r23, 0x065D	; 0x80065d <current_voltage_raw_pwr+0x1>
   23034:	07 2e       	mov	r0, r23
   23036:	00 0c       	add	r0, r0
   23038:	88 0b       	sbc	r24, r24
   2303a:	99 0b       	sbc	r25, r25
   2303c:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   23040:	20 e0       	ldi	r18, 0x00	; 0
   23042:	30 ec       	ldi	r19, 0xC0	; 192
   23044:	4f e7       	ldi	r20, 0x7F	; 127
   23046:	56 e4       	ldi	r21, 0x46	; 70
   23048:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2304c:	20 e0       	ldi	r18, 0x00	; 0
   2304e:	30 e0       	ldi	r19, 0x00	; 0
   23050:	40 ea       	ldi	r20, 0xA0	; 160
   23052:	50 e4       	ldi	r21, 0x40	; 64
   23054:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   23058:	27 ed       	ldi	r18, 0xD7	; 215
   2305a:	30 e3       	ldi	r19, 0x30	; 48
   2305c:	44 e4       	ldi	r20, 0x44	; 68
   2305e:	5e e3       	ldi	r21, 0x3E	; 62
   23060:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   23064:	eb 01       	movw	r28, r22
   23066:	18 2f       	mov	r17, r24
   23068:	09 2f       	mov	r16, r25
    float volt_bed = VOLT_DIV_REF * ((float)current_voltage_raw_bed / (1023 * OVERSAMPLENR)) / VOLT_DIV_FAC;
   2306a:	60 91 5a 06 	lds	r22, 0x065A	; 0x80065a <current_voltage_raw_bed>
   2306e:	70 91 5b 06 	lds	r23, 0x065B	; 0x80065b <current_voltage_raw_bed+0x1>
   23072:	07 2e       	mov	r0, r23
   23074:	00 0c       	add	r0, r0
   23076:	88 0b       	sbc	r24, r24
   23078:	99 0b       	sbc	r25, r25
   2307a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2307e:	20 e0       	ldi	r18, 0x00	; 0
   23080:	30 ec       	ldi	r19, 0xC0	; 192
   23082:	4f e7       	ldi	r20, 0x7F	; 127
   23084:	56 e4       	ldi	r21, 0x46	; 70
   23086:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2308a:	20 e0       	ldi	r18, 0x00	; 0
   2308c:	30 e0       	ldi	r19, 0x00	; 0
   2308e:	40 ea       	ldi	r20, 0xA0	; 160
   23090:	50 e4       	ldi	r21, 0x40	; 64
   23092:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   23096:	27 ed       	ldi	r18, 0xD7	; 215
   23098:	30 e3       	ldi	r19, 0x30	; 48
   2309a:	44 e4       	ldi	r20, 0x44	; 68
   2309c:	5e e3       	ldi	r21, 0x3E	; 62
   2309e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   230a2:	f6 2e       	mov	r15, r22
   230a4:	e7 2e       	mov	r14, r23
   230a6:	d8 2e       	mov	r13, r24
   230a8:	c9 2e       	mov	r12, r25
    lcd_home();
   230aa:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_printf_P(PSTR(" PWR:      %4.1fV\n" " BED:      %4.1fV"), volt_pwr, volt_bed);
   230ae:	cf 92       	push	r12
   230b0:	df 92       	push	r13
   230b2:	ef 92       	push	r14
   230b4:	ff 92       	push	r15
   230b6:	0f 93       	push	r16
   230b8:	1f 93       	push	r17
   230ba:	df 93       	push	r29
   230bc:	cf 93       	push	r28
   230be:	80 e5       	ldi	r24, 0x50	; 80
   230c0:	90 ea       	ldi	r25, 0xA0	; 160
   230c2:	9f 93       	push	r25
   230c4:	8f 93       	push	r24
   230c6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    lcd_printf_P(PSTR("\n IR :       %3.1fV"), Raw2Voltage(fsensor.getVoltRaw()));
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    menu_back_if_clicked();
   230ca:	8d b7       	in	r24, 0x3d	; 61
   230cc:	9e b7       	in	r25, 0x3e	; 62
   230ce:	0a 96       	adiw	r24, 0x0a	; 10
   230d0:	0f b6       	in	r0, 0x3f	; 63
   230d2:	f8 94       	cli
   230d4:	9e bf       	out	0x3e, r25	; 62
   230d6:	0f be       	out	0x3f, r0	; 63
   230d8:	8d bf       	out	0x3d, r24	; 61
}
   230da:	df 91       	pop	r29
   230dc:	cf 91       	pop	r28
   230de:	1f 91       	pop	r17
   230e0:	0f 91       	pop	r16
   230e2:	ff 90       	pop	r15
   230e4:	ef 90       	pop	r14
   230e6:	df 90       	pop	r13
   230e8:	cf 90       	pop	r12
    lcd_home();
    lcd_printf_P(PSTR(" PWR:      %4.1fV\n" " BED:      %4.1fV"), volt_pwr, volt_bed);
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    lcd_printf_P(PSTR("\n IR :       %3.1fV"), Raw2Voltage(fsensor.getVoltRaw()));
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
    menu_back_if_clicked();
   230ea:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

000230ee <lcd_menu_fails_stats_print()>:
//! | Crash   X 000 Y 000|	MSG_CRASH c=7
//! ----------------------
//! @endcode
//! @todo leptun refactor this piece of code please
static void lcd_menu_fails_stats_print()
{
   230ee:	af 92       	push	r10
   230f0:	bf 92       	push	r11
   230f2:	cf 92       	push	r12
   230f4:	df 92       	push	r13
   230f6:	ef 92       	push	r14
   230f8:	ff 92       	push	r15
   230fa:	0f 93       	push	r16
   230fc:	1f 93       	push	r17
   230fe:	cf 93       	push	r28
   23100:	df 93       	push	r29
   23102:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
	lcd_timeoutToStatus.stop(); //infinite timeout
    uint8_t power = eeprom_read_byte((uint8_t*)EEPROM_POWER_COUNT);
   23106:	84 e6       	ldi	r24, 0x64	; 100
   23108:	9f e0       	ldi	r25, 0x0F	; 15
   2310a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2310e:	18 2f       	mov	r17, r24
    uint8_t filam = eeprom_read_byte((uint8_t*)EEPROM_FERROR_COUNT);
   23110:	85 e6       	ldi	r24, 0x65	; 101
   23112:	9f e0       	ldi	r25, 0x0F	; 15
   23114:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   23118:	e8 2e       	mov	r14, r24
    uint8_t crashX = eeprom_read_byte((uint8_t*)EEPROM_CRASH_COUNT_X);
   2311a:	86 e6       	ldi	r24, 0x66	; 102
   2311c:	9f e0       	ldi	r25, 0x0F	; 15
   2311e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   23122:	b8 2e       	mov	r11, r24
    uint8_t crashY = eeprom_read_byte((uint8_t*)EEPROM_CRASH_COUNT_Y);
   23124:	88 e6       	ldi	r24, 0x68	; 104
   23126:	9f e0       	ldi	r25, 0x0F	; 15
   23128:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2312c:	a8 2e       	mov	r10, r24
    lcd_home();
   2312e:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_printf_P(failStatsFmt,
   23132:	8e ef       	ldi	r24, 0xFE	; 254
   23134:	9d e4       	ldi	r25, 0x4D	; 77
   23136:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2313a:	d8 2e       	mov	r13, r24
   2313c:	c9 2e       	mov	r12, r25
   2313e:	8f ee       	ldi	r24, 0xEF	; 239
   23140:	9d e4       	ldi	r25, 0x4D	; 77
   23142:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23146:	08 2f       	mov	r16, r24
   23148:	f9 2e       	mov	r15, r25
   2314a:	8e ed       	ldi	r24, 0xDE	; 222
   2314c:	9d e4       	ldi	r25, 0x4D	; 77
   2314e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23152:	ec 01       	movw	r28, r24
   23154:	88 ec       	ldi	r24, 0xC8	; 200
   23156:	9d e4       	ldi	r25, 0x4D	; 77
   23158:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2315c:	1f 92       	push	r1
   2315e:	af 92       	push	r10
   23160:	1f 92       	push	r1
   23162:	bf 92       	push	r11
   23164:	cf 92       	push	r12
   23166:	df 92       	push	r13
   23168:	1f 92       	push	r1
   2316a:	ef 92       	push	r14
   2316c:	ff 92       	push	r15
   2316e:	0f 93       	push	r16
   23170:	1f 92       	push	r1
   23172:	1f 93       	push	r17
   23174:	df 93       	push	r29
   23176:	cf 93       	push	r28
   23178:	9f 93       	push	r25
   2317a:	8f 93       	push	r24
   2317c:	81 e1       	ldi	r24, 0x11	; 17
   2317e:	90 ea       	ldi	r25, 0xA0	; 160
   23180:	9f 93       	push	r25
   23182:	8f 93       	push	r24
   23184:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_POWER_FAILURES), power,
        _T(MSG_FIL_RUNOUTS), filam,
        _T(MSG_CRASH), crashX, crashY);
    menu_back_if_clicked();
   23188:	8d b7       	in	r24, 0x3d	; 61
   2318a:	9e b7       	in	r25, 0x3e	; 62
   2318c:	42 96       	adiw	r24, 0x12	; 18
   2318e:	0f b6       	in	r0, 0x3f	; 63
   23190:	f8 94       	cli
   23192:	9e bf       	out	0x3e, r25	; 62
   23194:	0f be       	out	0x3f, r0	; 63
   23196:	8d bf       	out	0x3d, r24	; 61
}
   23198:	df 91       	pop	r29
   2319a:	cf 91       	pop	r28
   2319c:	1f 91       	pop	r17
   2319e:	0f 91       	pop	r16
   231a0:	ff 90       	pop	r15
   231a2:	ef 90       	pop	r14
   231a4:	df 90       	pop	r13
   231a6:	cf 90       	pop	r12
   231a8:	bf 90       	pop	r11
   231aa:	af 90       	pop	r10
    lcd_printf_P(failStatsFmt,
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_POWER_FAILURES), power,
        _T(MSG_FIL_RUNOUTS), filam,
        _T(MSG_CRASH), crashX, crashY);
    menu_back_if_clicked();
   231ac:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

000231b0 <lcd_menu_fails_stats_mmu_print()>:
//! | MMU fails       000|	MSG_MMU_FAILS c=15
//! | MMU load fails  000|	MSG_MMU_LOAD_FAILS c=15
//! |                    |
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu_print() {
   231b0:	cf 92       	push	r12
   231b2:	df 92       	push	r13
   231b4:	ef 92       	push	r14
   231b6:	ff 92       	push	r15
   231b8:	0f 93       	push	r16
   231ba:	1f 93       	push	r17
   231bc:	cf 93       	push	r28
   231be:	df 93       	push	r29
   231c0:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
   231c4:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
             " %-16.16S%-3d\n"
             " %-16.16S%-3d"
        ),
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
        _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL) ));
   231c8:	8f ec       	ldi	r24, 0xCF	; 207
   231ca:	9e e0       	ldi	r25, 0x0E	; 14
   231cc:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu_print() {
    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
    lcd_printf_P(
   231d0:	90 e0       	ldi	r25, 0x00	; 0
   231d2:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   231d6:	d8 2e       	mov	r13, r24
   231d8:	c9 2e       	mov	r12, r25
   231da:	81 e8       	ldi	r24, 0x81	; 129
   231dc:	9d e4       	ldi	r25, 0x4D	; 77
   231de:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   231e2:	f8 2e       	mov	r15, r24
   231e4:	e9 2e       	mov	r14, r25
        PSTR("%S\n"
             " %-16.16S%-3d\n"
             " %-16.16S%-3d"
        ),
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
   231e6:	82 ed       	ldi	r24, 0xD2	; 210
   231e8:	9e e0       	ldi	r25, 0x0E	; 14
   231ea:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu_print() {
    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
    lcd_printf_P(
   231ee:	90 e0       	ldi	r25, 0x00	; 0
   231f0:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   231f4:	18 2f       	mov	r17, r24
   231f6:	09 2f       	mov	r16, r25
   231f8:	85 e7       	ldi	r24, 0x75	; 117
   231fa:	9d e4       	ldi	r25, 0x4D	; 77
   231fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23200:	ec 01       	movw	r28, r24
   23202:	88 ec       	ldi	r24, 0xC8	; 200
   23204:	9d e4       	ldi	r25, 0x4D	; 77
   23206:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2320a:	cf 92       	push	r12
   2320c:	df 92       	push	r13
   2320e:	ef 92       	push	r14
   23210:	ff 92       	push	r15
   23212:	0f 93       	push	r16
   23214:	1f 93       	push	r17
   23216:	df 93       	push	r29
   23218:	cf 93       	push	r28
   2321a:	9f 93       	push	r25
   2321c:	8f 93       	push	r24
   2321e:	85 ec       	ldi	r24, 0xC5	; 197
   23220:	9f e9       	ldi	r25, 0x9F	; 159
   23222:	9f 93       	push	r25
   23224:	8f 93       	push	r24
   23226:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
             " %-16.16S%-3d"
        ),
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
        _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL) ));
    menu_back_if_clicked();
   2322a:	8d b7       	in	r24, 0x3d	; 61
   2322c:	9e b7       	in	r25, 0x3e	; 62
   2322e:	0c 96       	adiw	r24, 0x0c	; 12
   23230:	0f b6       	in	r0, 0x3f	; 63
   23232:	f8 94       	cli
   23234:	9e bf       	out	0x3e, r25	; 62
   23236:	0f be       	out	0x3f, r0	; 63
   23238:	8d bf       	out	0x3d, r24	; 61
}
   2323a:	df 91       	pop	r29
   2323c:	cf 91       	pop	r28
   2323e:	1f 91       	pop	r17
   23240:	0f 91       	pop	r16
   23242:	ff 90       	pop	r15
   23244:	ef 90       	pop	r14
   23246:	df 90       	pop	r13
   23248:	cf 90       	pop	r12
             " %-16.16S%-3d"
        ),
        _T(MSG_LAST_PRINT_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_FAIL) ),
        _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_byte((uint8_t*)EEPROM_MMU_LOAD_FAIL) ));
    menu_back_if_clicked();
   2324a:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

0002324e <lcd_menu_belt_status()>:
//! |  Y:            000 |
//! |                    |
//! ----------------------
//! @endcode
static void lcd_menu_belt_status()
{
   2324e:	0f 93       	push	r16
   23250:	1f 93       	push	r17
   23252:	cf 93       	push	r28
   23254:	df 93       	push	r29
	lcd_home();
   23256:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_printf_P(PSTR("%S\n" " X %d\n" " Y %d"), _T(MSG_BELT_STATUS), eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_X)), eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_Y)));
   2325a:	8b e5       	ldi	r24, 0x5B	; 91
   2325c:	9f e0       	ldi	r25, 0x0F	; 15
   2325e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   23262:	18 2f       	mov	r17, r24
   23264:	09 2f       	mov	r16, r25
   23266:	8d e5       	ldi	r24, 0x5D	; 93
   23268:	9f e0       	ldi	r25, 0x0F	; 15
   2326a:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2326e:	ec 01       	movw	r28, r24
   23270:	8f e3       	ldi	r24, 0x3F	; 63
   23272:	9e e4       	ldi	r25, 0x4E	; 78
   23274:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23278:	0f 93       	push	r16
   2327a:	1f 93       	push	r17
   2327c:	df 93       	push	r29
   2327e:	cf 93       	push	r28
   23280:	9f 93       	push	r25
   23282:	8f 93       	push	r24
   23284:	84 e7       	ldi	r24, 0x74	; 116
   23286:	90 ea       	ldi	r25, 0xA0	; 160
   23288:	9f 93       	push	r25
   2328a:	8f 93       	push	r24
   2328c:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
    menu_back_if_clicked();
   23290:	8d b7       	in	r24, 0x3d	; 61
   23292:	9e b7       	in	r25, 0x3e	; 62
   23294:	08 96       	adiw	r24, 0x08	; 8
   23296:	0f b6       	in	r0, 0x3f	; 63
   23298:	f8 94       	cli
   2329a:	9e bf       	out	0x3e, r25	; 62
   2329c:	0f be       	out	0x3f, r0	; 63
   2329e:	8d bf       	out	0x3d, r24	; 61
}
   232a0:	df 91       	pop	r29
   232a2:	cf 91       	pop	r28
   232a4:	1f 91       	pop	r17
   232a6:	0f 91       	pop	r16
//! @endcode
static void lcd_menu_belt_status()
{
	lcd_home();
    lcd_printf_P(PSTR("%S\n" " X %d\n" " Y %d"), _T(MSG_BELT_STATUS), eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_X)), eeprom_read_word((uint16_t*)(EEPROM_BELTSTATUS_Y)));
    menu_back_if_clicked();
   232a8:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

000232ac <lcd_menu_fails_stats_total()>:
//! | Fil. runouts    000|	MSG_FIL_RUNOUTS c=15
//! | Crash   X:000 Y:000|	MSG_CRASH c=7
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_total()
{
   232ac:	6f 92       	push	r6
   232ae:	7f 92       	push	r7
   232b0:	8f 92       	push	r8
   232b2:	9f 92       	push	r9
   232b4:	af 92       	push	r10
   232b6:	bf 92       	push	r11
   232b8:	cf 92       	push	r12
   232ba:	df 92       	push	r13
   232bc:	ef 92       	push	r14
   232be:	ff 92       	push	r15
   232c0:	0f 93       	push	r16
   232c2:	1f 93       	push	r17
   232c4:	cf 93       	push	r28
   232c6:	df 93       	push	r29
   232c8:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
	lcd_timeoutToStatus.stop(); //infinite timeout
	lcd_home();
   232cc:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_printf_P(failStatsFmt,
   232d0:	83 e0       	ldi	r24, 0x03	; 3
   232d2:	9f e0       	ldi	r25, 0x0F	; 15
   232d4:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   232d8:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   232dc:	78 2e       	mov	r7, r24
   232de:	69 2e       	mov	r6, r25
   232e0:	85 e0       	ldi	r24, 0x05	; 5
   232e2:	9f e0       	ldi	r25, 0x0F	; 15
   232e4:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   232e8:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   232ec:	98 2e       	mov	r9, r24
   232ee:	89 2e       	mov	r8, r25
   232f0:	8e ef       	ldi	r24, 0xFE	; 254
   232f2:	9d e4       	ldi	r25, 0x4D	; 77
   232f4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   232f8:	b8 2e       	mov	r11, r24
   232fa:	a9 2e       	mov	r10, r25
   232fc:	81 e0       	ldi	r24, 0x01	; 1
   232fe:	9f e0       	ldi	r25, 0x0F	; 15
   23300:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   23304:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   23308:	d8 2e       	mov	r13, r24
   2330a:	c9 2e       	mov	r12, r25
   2330c:	8f ee       	ldi	r24, 0xEF	; 239
   2330e:	9d e4       	ldi	r25, 0x4D	; 77
   23310:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23314:	f8 2e       	mov	r15, r24
   23316:	e9 2e       	mov	r14, r25
   23318:	8f ef       	ldi	r24, 0xFF	; 255
   2331a:	9e e0       	ldi	r25, 0x0E	; 14
   2331c:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   23320:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   23324:	18 2f       	mov	r17, r24
   23326:	09 2f       	mov	r16, r25
   23328:	8e ed       	ldi	r24, 0xDE	; 222
   2332a:	9d e4       	ldi	r25, 0x4D	; 77
   2332c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23330:	ec 01       	movw	r28, r24
   23332:	87 eb       	ldi	r24, 0xB7	; 183
   23334:	9d e4       	ldi	r25, 0x4D	; 77
   23336:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2333a:	6f 92       	push	r6
   2333c:	7f 92       	push	r7
   2333e:	8f 92       	push	r8
   23340:	9f 92       	push	r9
   23342:	af 92       	push	r10
   23344:	bf 92       	push	r11
   23346:	cf 92       	push	r12
   23348:	df 92       	push	r13
   2334a:	ef 92       	push	r14
   2334c:	ff 92       	push	r15
   2334e:	0f 93       	push	r16
   23350:	1f 93       	push	r17
   23352:	df 93       	push	r29
   23354:	cf 93       	push	r28
   23356:	9f 93       	push	r25
   23358:	8f 93       	push	r24
   2335a:	81 e1       	ldi	r24, 0x11	; 17
   2335c:	90 ea       	ldi	r25, 0xA0	; 160
   2335e:	9f 93       	push	r25
   23360:	8f 93       	push	r24
   23362:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
        _T(MSG_POWER_FAILURES), clamp999( eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) ),
        _T(MSG_FIL_RUNOUTS), clamp999( eeprom_read_word((uint16_t*)EEPROM_FERROR_COUNT_TOT) ),
        _T(MSG_CRASH),
            clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_X_TOT) ),
            clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_Y_TOT) ));
    menu_back_if_clicked();
   23366:	8d b7       	in	r24, 0x3d	; 61
   23368:	9e b7       	in	r25, 0x3e	; 62
   2336a:	42 96       	adiw	r24, 0x12	; 18
   2336c:	0f b6       	in	r0, 0x3f	; 63
   2336e:	f8 94       	cli
   23370:	9e bf       	out	0x3e, r25	; 62
   23372:	0f be       	out	0x3f, r0	; 63
   23374:	8d bf       	out	0x3d, r24	; 61
}
   23376:	df 91       	pop	r29
   23378:	cf 91       	pop	r28
   2337a:	1f 91       	pop	r17
   2337c:	0f 91       	pop	r16
   2337e:	ff 90       	pop	r15
   23380:	ef 90       	pop	r14
   23382:	df 90       	pop	r13
   23384:	cf 90       	pop	r12
   23386:	bf 90       	pop	r11
   23388:	af 90       	pop	r10
   2338a:	9f 90       	pop	r9
   2338c:	8f 90       	pop	r8
   2338e:	7f 90       	pop	r7
   23390:	6f 90       	pop	r6
        _T(MSG_POWER_FAILURES), clamp999( eeprom_read_word((uint16_t*)EEPROM_POWER_COUNT_TOT) ),
        _T(MSG_FIL_RUNOUTS), clamp999( eeprom_read_word((uint16_t*)EEPROM_FERROR_COUNT_TOT) ),
        _T(MSG_CRASH),
            clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_X_TOT) ),
            clamp999( eeprom_read_word((uint16_t*)EEPROM_CRASH_COUNT_Y_TOT) ));
    menu_back_if_clicked();
   23392:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00023396 <lcd_menu_fails_stats_mmu_total()>:
//! | MMU fails       000|	MSG_MMU_FAILS c=15
//! | MMU load fails  000|	MSG_MMU_LOAD_FAILS c=15
//! | MMU power fails 000|	MSG_MMU_POWER_FAILS c=15
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu_total() {
   23396:	8f 92       	push	r8
   23398:	9f 92       	push	r9
   2339a:	af 92       	push	r10
   2339c:	bf 92       	push	r11
   2339e:	cf 92       	push	r12
   233a0:	df 92       	push	r13
   233a2:	ef 92       	push	r14
   233a4:	ff 92       	push	r15
   233a6:	0f 93       	push	r16
   233a8:	1f 93       	push	r17
   233aa:	cf 93       	push	r28
   233ac:	df 93       	push	r29
   233ae:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    lcd_timeoutToStatus.stop(); //infinite timeout
    lcd_home();
   233b2:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcd_printf_P(
   233b6:	80 91 c0 13 	lds	r24, 0x13C0	; 0x8013c0 <MMU2::mmu2+0x75>
   233ba:	90 91 c1 13 	lds	r25, 0x13C1	; 0x8013c1 <MMU2::mmu2+0x76>
   233be:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   233c2:	98 2e       	mov	r9, r24
   233c4:	89 2e       	mov	r8, r25
   233c6:	82 e9       	ldi	r24, 0x92	; 146
   233c8:	9d e4       	ldi	r25, 0x4D	; 77
   233ca:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   233ce:	b8 2e       	mov	r11, r24
   233d0:	a9 2e       	mov	r10, r25
   233d2:	80 ed       	ldi	r24, 0xD0	; 208
   233d4:	9e e0       	ldi	r25, 0x0E	; 14
   233d6:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   233da:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   233de:	d8 2e       	mov	r13, r24
   233e0:	c9 2e       	mov	r12, r25
   233e2:	81 e8       	ldi	r24, 0x81	; 129
   233e4:	9d e4       	ldi	r25, 0x4D	; 77
   233e6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   233ea:	f8 2e       	mov	r15, r24
   233ec:	e9 2e       	mov	r14, r25
   233ee:	83 ed       	ldi	r24, 0xD3	; 211
   233f0:	9e e0       	ldi	r25, 0x0E	; 14
   233f2:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   233f6:	0f 94 37 11 	call	0x2226e	; 0x2226e <clamp999(unsigned int)>
   233fa:	18 2f       	mov	r17, r24
   233fc:	09 2f       	mov	r16, r25
   233fe:	85 e7       	ldi	r24, 0x75	; 117
   23400:	9d e4       	ldi	r25, 0x4D	; 77
   23402:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23406:	ec 01       	movw	r28, r24
   23408:	87 eb       	ldi	r24, 0xB7	; 183
   2340a:	9d e4       	ldi	r25, 0x4D	; 77
   2340c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23410:	8f 92       	push	r8
   23412:	9f 92       	push	r9
   23414:	af 92       	push	r10
   23416:	bf 92       	push	r11
   23418:	cf 92       	push	r12
   2341a:	df 92       	push	r13
   2341c:	ef 92       	push	r14
   2341e:	ff 92       	push	r15
   23420:	0f 93       	push	r16
   23422:	1f 93       	push	r17
   23424:	df 93       	push	r29
   23426:	cf 93       	push	r28
   23428:	9f 93       	push	r25
   2342a:	8f 93       	push	r24
   2342c:	84 ee       	ldi	r24, 0xE4	; 228
   2342e:	9f e9       	ldi	r25, 0x9F	; 159
   23430:	9f 93       	push	r25
   23432:	8f 93       	push	r24
   23434:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
        ),
        _T(MSG_TOTAL_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) ),
        _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_LOAD_FAIL_TOT) ),
        _T(MSG_MMU_POWER_FAILS), clamp999( MMU2::mmu2.TMCFailures() ));
    menu_back_if_clicked();
   23438:	8d b7       	in	r24, 0x3d	; 61
   2343a:	9e b7       	in	r25, 0x3e	; 62
   2343c:	40 96       	adiw	r24, 0x10	; 16
   2343e:	0f b6       	in	r0, 0x3f	; 63
   23440:	f8 94       	cli
   23442:	9e bf       	out	0x3e, r25	; 62
   23444:	0f be       	out	0x3f, r0	; 63
   23446:	8d bf       	out	0x3d, r24	; 61
}
   23448:	df 91       	pop	r29
   2344a:	cf 91       	pop	r28
   2344c:	1f 91       	pop	r17
   2344e:	0f 91       	pop	r16
   23450:	ff 90       	pop	r15
   23452:	ef 90       	pop	r14
   23454:	df 90       	pop	r13
   23456:	cf 90       	pop	r12
   23458:	bf 90       	pop	r11
   2345a:	af 90       	pop	r10
   2345c:	9f 90       	pop	r9
   2345e:	8f 90       	pop	r8
        ),
        _T(MSG_TOTAL_FAILURES),
        _T(MSG_MMU_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_FAIL_TOT) ),
        _T(MSG_MMU_LOAD_FAILS), clamp999( eeprom_read_word((uint16_t*)EEPROM_MMU_LOAD_FAIL_TOT) ),
        _T(MSG_MMU_POWER_FAILS), clamp999( MMU2::mmu2.TMCFailures() ));
    menu_back_if_clicked();
   23460:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00023464 <lcd_menu_xyz_offset()>:
//! |Y            00.00mm|	c=10
//! ----------------------
//! @endcode
//! @todo Positioning of the messages and values on LCD aren't fixed to their exact place. This causes issues with translations.
static void lcd_menu_xyz_offset()
{
   23464:	cf 93       	push	r28
   23466:	df 93       	push	r29
    lcd_puts_at_P(0, 0, _T(MSG_MEASURED_OFFSET));
   23468:	8e e7       	ldi	r24, 0x7E	; 126
   2346a:	90 e5       	ldi	r25, 0x50	; 80
   2346c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23470:	ac 01       	movw	r20, r24
   23472:	60 e0       	ldi	r22, 0x00	; 0
   23474:	80 e0       	ldi	r24, 0x00	; 0
   23476:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_puts_at_P(0, 1, STR_SEPARATOR);
   2347a:	42 ec       	ldi	r20, 0xC2	; 194
   2347c:	59 e8       	ldi	r21, 0x89	; 137
   2347e:	61 e0       	ldi	r22, 0x01	; 1
   23480:	80 e0       	ldi	r24, 0x00	; 0
   23482:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

    for (uint8_t i = 0; i < 2; i++) {
        lcd_set_cursor(0, i + 2);
   23486:	62 e0       	ldi	r22, 0x02	; 2
   23488:	80 e0       	ldi	r24, 0x00	; 0
   2348a:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
        lcd_printf_P(PSTR("%c%17.2fmm"), 'X' + i, eeprom_read_float((float*)(EEPROM_BED_CALIBRATION_CENTER+4*i)));
   2348e:	85 ee       	ldi	r24, 0xE5	; 229
   23490:	9f e0       	ldi	r25, 0x0F	; 15
   23492:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   23496:	9f 93       	push	r25
   23498:	8f 93       	push	r24
   2349a:	7f 93       	push	r23
   2349c:	6f 93       	push	r22
   2349e:	1f 92       	push	r1
   234a0:	88 e5       	ldi	r24, 0x58	; 88
   234a2:	8f 93       	push	r24
   234a4:	c4 e5       	ldi	r28, 0x54	; 84
   234a6:	d2 ea       	ldi	r29, 0xA2	; 162
   234a8:	df 93       	push	r29
   234aa:	cf 93       	push	r28
   234ac:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
{
    lcd_puts_at_P(0, 0, _T(MSG_MEASURED_OFFSET));
    lcd_puts_at_P(0, 1, STR_SEPARATOR);

    for (uint8_t i = 0; i < 2; i++) {
        lcd_set_cursor(0, i + 2);
   234b0:	63 e0       	ldi	r22, 0x03	; 3
   234b2:	80 e0       	ldi	r24, 0x00	; 0
   234b4:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
        lcd_printf_P(PSTR("%c%17.2fmm"), 'X' + i, eeprom_read_float((float*)(EEPROM_BED_CALIBRATION_CENTER+4*i)));
   234b8:	89 ee       	ldi	r24, 0xE9	; 233
   234ba:	9f e0       	ldi	r25, 0x0F	; 15
   234bc:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   234c0:	9f 93       	push	r25
   234c2:	8f 93       	push	r24
   234c4:	7f 93       	push	r23
   234c6:	6f 93       	push	r22
   234c8:	1f 92       	push	r1
   234ca:	89 e5       	ldi	r24, 0x59	; 89
   234cc:	8f 93       	push	r24
   234ce:	df 93       	push	r29
   234d0:	cf 93       	push	r28
   234d2:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
    }
    menu_back_if_clicked();
   234d6:	8d b7       	in	r24, 0x3d	; 61
   234d8:	9e b7       	in	r25, 0x3e	; 62
   234da:	40 96       	adiw	r24, 0x10	; 16
   234dc:	0f b6       	in	r0, 0x3f	; 63
   234de:	f8 94       	cli
   234e0:	9e bf       	out	0x3e, r25	; 62
   234e2:	0f be       	out	0x3f, r0	; 63
   234e4:	8d bf       	out	0x3d, r24	; 61
}
   234e6:	df 91       	pop	r29
   234e8:	cf 91       	pop	r28

    for (uint8_t i = 0; i < 2; i++) {
        lcd_set_cursor(0, i + 2);
        lcd_printf_P(PSTR("%c%17.2fmm"), 'X' + i, eeprom_read_float((float*)(EEPROM_BED_CALIBRATION_CENTER+4*i)));
    }
    menu_back_if_clicked();
   234ea:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

000234ee <lcd_menu_xyz_skew()>:
//! ----------------------
//! D - Degree sysmbol		LCD_STR_DEGREE
//! @endcode
//! @todo Positioning of the messages and values on LCD aren't fixed to their exact place. This causes issues with translations.
static void lcd_menu_xyz_skew()
{
   234ee:	cf 92       	push	r12
   234f0:	df 92       	push	r13
   234f2:	ef 92       	push	r14
   234f4:	ff 92       	push	r15
   234f6:	0f 93       	push	r16
   234f8:	1f 93       	push	r17
   234fa:	cf 93       	push	r28
   234fc:	df 93       	push	r29
    float angleDiff = eeprom_read_float((float*)(EEPROM_XYZ_CAL_SKEW));
   234fe:	80 e6       	ldi	r24, 0x60	; 96
   23500:	9f e0       	ldi	r25, 0x0F	; 15
   23502:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   23506:	6b 01       	movw	r12, r22
   23508:	7c 01       	movw	r14, r24
	lcd_home();
   2350a:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
	lcd_printf_P(_N(
   2350e:	80 e7       	ldi	r24, 0x70	; 112
   23510:	90 e5       	ldi	r25, 0x50	; 80
   23512:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23516:	18 2f       	mov	r17, r24
   23518:	09 2f       	mov	r16, r25
   2351a:	82 e6       	ldi	r24, 0x62	; 98
   2351c:	90 e5       	ldi	r25, 0x50	; 80
   2351e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23522:	ec 01       	movw	r28, r24
   23524:	82 e5       	ldi	r24, 0x52	; 82
   23526:	90 e5       	ldi	r25, 0x50	; 80
   23528:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2352c:	2e e3       	ldi	r18, 0x3E	; 62
   2352e:	2f 93       	push	r18
   23530:	20 e8       	ldi	r18, 0x80	; 128
   23532:	2f 93       	push	r18
   23534:	1f 92       	push	r1
   23536:	1f 92       	push	r1
   23538:	0f 93       	push	r16
   2353a:	1f 93       	push	r17
   2353c:	2d e3       	ldi	r18, 0x3D	; 61
   2353e:	2f 93       	push	r18
   23540:	25 ef       	ldi	r18, 0xF5	; 245
   23542:	2f 93       	push	r18
   23544:	22 ec       	ldi	r18, 0xC2	; 194
   23546:	2f 93       	push	r18
   23548:	20 e9       	ldi	r18, 0x90	; 144
   2354a:	2f 93       	push	r18
   2354c:	df 93       	push	r29
   2354e:	cf 93       	push	r28
   23550:	22 ec       	ldi	r18, 0xC2	; 194
   23552:	39 e8       	ldi	r19, 0x89	; 137
   23554:	3f 93       	push	r19
   23556:	2f 93       	push	r18
   23558:	9f 93       	push	r25
   2355a:	8f 93       	push	r24
   2355c:	89 e1       	ldi	r24, 0x19	; 25
   2355e:	9f e6       	ldi	r25, 0x6F	; 111
   23560:	9f 93       	push	r25
   23562:	8f 93       	push	r24
   23564:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
	 _T(MSG_MEASURED_SKEW),
	 STR_SEPARATOR,
	 _T(MSG_SLIGHT_SKEW), _deg(bed_skew_angle_mild),
	 _T(MSG_SEVERE_SKEW), _deg(bed_skew_angle_extreme)
	);
	lcd_set_cursor(15, 0);
   23568:	60 e0       	ldi	r22, 0x00	; 0
   2356a:	8f e0       	ldi	r24, 0x0F	; 15
   2356c:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	if (angleDiff < 100){
   23570:	8d b7       	in	r24, 0x3d	; 61
   23572:	9e b7       	in	r25, 0x3e	; 62
   23574:	42 96       	adiw	r24, 0x12	; 18
   23576:	0f b6       	in	r0, 0x3f	; 63
   23578:	f8 94       	cli
   2357a:	9e bf       	out	0x3e, r25	; 62
   2357c:	0f be       	out	0x3f, r0	; 63
   2357e:	8d bf       	out	0x3d, r24	; 61
   23580:	20 e0       	ldi	r18, 0x00	; 0
   23582:	30 e0       	ldi	r19, 0x00	; 0
   23584:	48 ec       	ldi	r20, 0xC8	; 200
   23586:	52 e4       	ldi	r21, 0x42	; 66
   23588:	c7 01       	movw	r24, r14
   2358a:	b6 01       	movw	r22, r12
   2358c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   23590:	87 ff       	sbrs	r24, 7
   23592:	32 c0       	rjmp	.+100    	; 0x235f8 <lcd_menu_xyz_skew()+0x10a>
}

//@brief Show measured axis skewness
float _deg(float rad)
{
	return rad * 180 / M_PI;
   23594:	20 e0       	ldi	r18, 0x00	; 0
   23596:	30 e0       	ldi	r19, 0x00	; 0
   23598:	44 e3       	ldi	r20, 0x34	; 52
   2359a:	53 e4       	ldi	r21, 0x43	; 67
   2359c:	c7 01       	movw	r24, r14
   2359e:	b6 01       	movw	r22, r12
   235a0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   235a4:	2b ed       	ldi	r18, 0xDB	; 219
   235a6:	3f e0       	ldi	r19, 0x0F	; 15
   235a8:	49 e4       	ldi	r20, 0x49	; 73
   235aa:	50 e4       	ldi	r21, 0x40	; 64
   235ac:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
	 _T(MSG_SLIGHT_SKEW), _deg(bed_skew_angle_mild),
	 _T(MSG_SEVERE_SKEW), _deg(bed_skew_angle_extreme)
	);
	lcd_set_cursor(15, 0);
	if (angleDiff < 100){
		lcd_printf_P(_N("%3.2f" LCD_STR_DEGREE), _deg(angleDiff));
   235b0:	9f 93       	push	r25
   235b2:	8f 93       	push	r24
   235b4:	7f 93       	push	r23
   235b6:	6f 93       	push	r22
   235b8:	82 e1       	ldi	r24, 0x12	; 18
   235ba:	9f e6       	ldi	r25, 0x6F	; 111
   235bc:	9f 93       	push	r25
   235be:	8f 93       	push	r24
   235c0:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   235c4:	0f 90       	pop	r0
   235c6:	0f 90       	pop	r0
   235c8:	0f 90       	pop	r0
   235ca:	0f 90       	pop	r0
   235cc:	0f 90       	pop	r0
   235ce:	0f 90       	pop	r0
	} else {
		lcd_puts_P(_T(MSG_NA));
	}
    if (lcd_clicked())
   235d0:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   235d4:	88 23       	and	r24, r24
   235d6:	b9 f0       	breq	.+46     	; 0x23606 <lcd_menu_xyz_skew()+0x118>
        menu_goto(lcd_menu_xyz_offset, 0, true);
   235d8:	20 e0       	ldi	r18, 0x00	; 0
   235da:	41 e0       	ldi	r20, 0x01	; 1
   235dc:	70 e0       	ldi	r23, 0x00	; 0
   235de:	60 e0       	ldi	r22, 0x00	; 0
   235e0:	8e e5       	ldi	r24, 0x5E	; 94
   235e2:	99 e3       	ldi	r25, 0x39	; 57
}
   235e4:	df 91       	pop	r29
   235e6:	cf 91       	pop	r28
   235e8:	1f 91       	pop	r17
   235ea:	0f 91       	pop	r16
   235ec:	ff 90       	pop	r15
   235ee:	ef 90       	pop	r14
   235f0:	df 90       	pop	r13
   235f2:	cf 90       	pop	r12
		lcd_printf_P(_N("%3.2f" LCD_STR_DEGREE), _deg(angleDiff));
	} else {
		lcd_puts_P(_T(MSG_NA));
	}
    if (lcd_clicked())
        menu_goto(lcd_menu_xyz_offset, 0, true);
   235f4:	0d 94 ff d1 	jmp	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	);
	lcd_set_cursor(15, 0);
	if (angleDiff < 100){
		lcd_printf_P(_N("%3.2f" LCD_STR_DEGREE), _deg(angleDiff));
	} else {
		lcd_puts_P(_T(MSG_NA));
   235f8:	8a e8       	ldi	r24, 0x8A	; 138
   235fa:	97 e4       	ldi	r25, 0x47	; 71
   235fc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23600:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   23604:	e5 cf       	rjmp	.-54     	; 0x235d0 <lcd_menu_xyz_skew()+0xe2>
	}
    if (lcd_clicked())
        menu_goto(lcd_menu_xyz_offset, 0, true);
}
   23606:	df 91       	pop	r29
   23608:	cf 91       	pop	r28
   2360a:	1f 91       	pop	r17
   2360c:	0f 91       	pop	r16
   2360e:	ff 90       	pop	r15
   23610:	ef 90       	pop	r14
   23612:	df 90       	pop	r13
   23614:	cf 90       	pop	r12
   23616:	08 95       	ret

00023618 <lcd_menu_xyz_y_min()>:
//! |Right:       00.00mm|	MSG_RIGHT c=10, c=8
//! ----------------------
//! @endcode
//! @todo Positioning of the messages and values on LCD aren't fixed to their exact place. This causes issues with translations.
static void lcd_menu_xyz_y_min()
{
   23618:	2f 92       	push	r2
   2361a:	3f 92       	push	r3
   2361c:	4f 92       	push	r4
   2361e:	5f 92       	push	r5
   23620:	6f 92       	push	r6
   23622:	7f 92       	push	r7
   23624:	8f 92       	push	r8
   23626:	9f 92       	push	r9
   23628:	af 92       	push	r10
   2362a:	bf 92       	push	r11
   2362c:	cf 92       	push	r12
   2362e:	df 92       	push	r13
   23630:	ef 92       	push	r14
   23632:	ff 92       	push	r15
   23634:	0f 93       	push	r16
   23636:	1f 93       	push	r17
   23638:	cf 93       	push	r28
   2363a:	df 93       	push	r29
   2363c:	cd b7       	in	r28, 0x3d	; 61
   2363e:	de b7       	in	r29, 0x3e	; 62
   23640:	a8 97       	sbiw	r28, 0x28	; 40
   23642:	0f b6       	in	r0, 0x3f	; 63
   23644:	f8 94       	cli
   23646:	de bf       	out	0x3e, r29	; 62
   23648:	0f be       	out	0x3f, r0	; 63
   2364a:	cd bf       	out	0x3d, r28	; 61

void count_xyz_details(float (&distanceMin)[2]) {
	float cntr[2];
	float vec_x[2];
	float vec_y[2];
	eeprom_read_block(&cntr[0], (float*)(EEPROM_BED_CALIBRATION_CENTER), 8);
   2364c:	48 e0       	ldi	r20, 0x08	; 8
   2364e:	50 e0       	ldi	r21, 0x00	; 0
   23650:	65 ee       	ldi	r22, 0xE5	; 229
   23652:	7f e0       	ldi	r23, 0x0F	; 15
   23654:	ce 01       	movw	r24, r28
   23656:	41 96       	adiw	r24, 0x11	; 17
   23658:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
	eeprom_read_block(&vec_x[0], (float*)(EEPROM_BED_CALIBRATION_VEC_X), 8);
   2365c:	48 e0       	ldi	r20, 0x08	; 8
   2365e:	50 e0       	ldi	r21, 0x00	; 0
   23660:	6d ed       	ldi	r22, 0xDD	; 221
   23662:	7f e0       	ldi	r23, 0x0F	; 15
   23664:	ce 01       	movw	r24, r28
   23666:	09 96       	adiw	r24, 0x09	; 9
   23668:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
	eeprom_read_block(&vec_y[0], (float*)(EEPROM_BED_CALIBRATION_VEC_Y), 8);
   2366c:	48 e0       	ldi	r20, 0x08	; 8
   2366e:	50 e0       	ldi	r21, 0x00	; 0
   23670:	65 ed       	ldi	r22, 0xD5	; 213
   23672:	7f e0       	ldi	r23, 0x0F	; 15
   23674:	ce 01       	movw	r24, r28
   23676:	01 96       	adiw	r24, 0x01	; 1
   23678:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>

	for (uint8_t mesh_point = 0; mesh_point < 2; ++mesh_point) {
		float y = vec_x[1] * pgm_read_float(bed_ref_points_4 + mesh_point * 2) + vec_y[1] * pgm_read_float(bed_ref_points_4 + mesh_point * 2 + 1) + cntr[1];
   2367c:	8d 84       	ldd	r8, Y+13	; 0x0d
   2367e:	9e 84       	ldd	r9, Y+14	; 0x0e
   23680:	af 84       	ldd	r10, Y+15	; 0x0f
   23682:	b8 88       	ldd	r11, Y+16	; 0x10
   23684:	ed ef       	ldi	r30, 0xFD	; 253
   23686:	f4 ea       	ldi	r31, 0xA4	; 164
   23688:	25 91       	lpm	r18, Z+
   2368a:	35 91       	lpm	r19, Z+
   2368c:	45 91       	lpm	r20, Z+
   2368e:	54 91       	lpm	r21, Z
   23690:	cd 80       	ldd	r12, Y+5	; 0x05
   23692:	de 80       	ldd	r13, Y+6	; 0x06
   23694:	ef 80       	ldd	r14, Y+7	; 0x07
   23696:	f8 84       	ldd	r15, Y+8	; 0x08
   23698:	e1 e0       	ldi	r30, 0x01	; 1
   2369a:	f5 ea       	ldi	r31, 0xA5	; 165
   2369c:	85 91       	lpm	r24, Z+
   2369e:	95 91       	lpm	r25, Z+
   236a0:	a5 91       	lpm	r26, Z+
   236a2:	b4 91       	lpm	r27, Z
   236a4:	8d a3       	std	Y+37, r24	; 0x25
   236a6:	9e a3       	std	Y+38, r25	; 0x26
   236a8:	af a3       	std	Y+39, r26	; 0x27
   236aa:	b8 a7       	std	Y+40, r27	; 0x28
   236ac:	8d 89       	ldd	r24, Y+21	; 0x15
   236ae:	9e 89       	ldd	r25, Y+22	; 0x16
   236b0:	af 89       	ldd	r26, Y+23	; 0x17
   236b2:	b8 8d       	ldd	r27, Y+24	; 0x18
   236b4:	89 a3       	std	Y+33, r24	; 0x21
   236b6:	9a a3       	std	Y+34, r25	; 0x22
   236b8:	ab a3       	std	Y+35, r26	; 0x23
   236ba:	bc a3       	std	Y+36, r27	; 0x24
   236bc:	c5 01       	movw	r24, r10
   236be:	b4 01       	movw	r22, r8
   236c0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   236c4:	2b 01       	movw	r4, r22
   236c6:	3c 01       	movw	r6, r24
   236c8:	2d a1       	ldd	r18, Y+37	; 0x25
   236ca:	3e a1       	ldd	r19, Y+38	; 0x26
   236cc:	4f a1       	ldd	r20, Y+39	; 0x27
   236ce:	58 a5       	ldd	r21, Y+40	; 0x28
   236d0:	c7 01       	movw	r24, r14
   236d2:	b6 01       	movw	r22, r12
   236d4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   236d8:	9b 01       	movw	r18, r22
   236da:	ac 01       	movw	r20, r24
   236dc:	c3 01       	movw	r24, r6
   236de:	b2 01       	movw	r22, r4
   236e0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   236e4:	29 a1       	ldd	r18, Y+33	; 0x21
   236e6:	3a a1       	ldd	r19, Y+34	; 0x22
   236e8:	4b a1       	ldd	r20, Y+35	; 0x23
   236ea:	5c a1       	ldd	r21, Y+36	; 0x24
   236ec:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
		distanceMin[mesh_point] = (y - Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH);
   236f0:	20 e0       	ldi	r18, 0x00	; 0
   236f2:	30 e0       	ldi	r19, 0x00	; 0
   236f4:	40 e9       	ldi	r20, 0x90	; 144
   236f6:	50 e4       	ldi	r21, 0x40	; 64
   236f8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   236fc:	1b 01       	movw	r2, r22
   236fe:	8c 01       	movw	r16, r24
	eeprom_read_block(&cntr[0], (float*)(EEPROM_BED_CALIBRATION_CENTER), 8);
	eeprom_read_block(&vec_x[0], (float*)(EEPROM_BED_CALIBRATION_VEC_X), 8);
	eeprom_read_block(&vec_y[0], (float*)(EEPROM_BED_CALIBRATION_VEC_Y), 8);

	for (uint8_t mesh_point = 0; mesh_point < 2; ++mesh_point) {
		float y = vec_x[1] * pgm_read_float(bed_ref_points_4 + mesh_point * 2) + vec_y[1] * pgm_read_float(bed_ref_points_4 + mesh_point * 2 + 1) + cntr[1];
   23700:	e5 e0       	ldi	r30, 0x05	; 5
   23702:	f5 ea       	ldi	r31, 0xA5	; 165
   23704:	25 91       	lpm	r18, Z+
   23706:	35 91       	lpm	r19, Z+
   23708:	45 91       	lpm	r20, Z+
   2370a:	54 91       	lpm	r21, Z
   2370c:	e9 e0       	ldi	r30, 0x09	; 9
   2370e:	f5 ea       	ldi	r31, 0xA5	; 165
   23710:	45 90       	lpm	r4, Z+
   23712:	55 90       	lpm	r5, Z+
   23714:	65 90       	lpm	r6, Z+
   23716:	74 90       	lpm	r7, Z
   23718:	c5 01       	movw	r24, r10
   2371a:	b4 01       	movw	r22, r8
   2371c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   23720:	4b 01       	movw	r8, r22
   23722:	5c 01       	movw	r10, r24
   23724:	a3 01       	movw	r20, r6
   23726:	92 01       	movw	r18, r4
   23728:	c7 01       	movw	r24, r14
   2372a:	b6 01       	movw	r22, r12
   2372c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   23730:	9b 01       	movw	r18, r22
   23732:	ac 01       	movw	r20, r24
   23734:	c5 01       	movw	r24, r10
   23736:	b4 01       	movw	r22, r8
   23738:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2373c:	29 a1       	ldd	r18, Y+33	; 0x21
   2373e:	3a a1       	ldd	r19, Y+34	; 0x22
   23740:	4b a1       	ldd	r20, Y+35	; 0x23
   23742:	5c a1       	ldd	r21, Y+36	; 0x24
   23744:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
		distanceMin[mesh_point] = (y - Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH);
   23748:	20 e0       	ldi	r18, 0x00	; 0
   2374a:	30 e0       	ldi	r19, 0x00	; 0
   2374c:	40 e9       	ldi	r20, 0x90	; 144
   2374e:	50 e4       	ldi	r21, 0x40	; 64
   23750:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   23754:	6d 8f       	std	Y+29, r22	; 0x1d
   23756:	7e 8f       	std	Y+30, r23	; 0x1e
   23758:	8f 8f       	std	Y+31, r24	; 0x1f
   2375a:	98 a3       	std	Y+32, r25	; 0x20
	float distanceMin[2];
    count_xyz_details(distanceMin);
	lcd_home();
   2375c:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
	lcd_printf_P(_N(
   23760:	8a e4       	ldi	r24, 0x4A	; 74
   23762:	90 e5       	ldi	r25, 0x50	; 80
   23764:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23768:	d8 2e       	mov	r13, r24
   2376a:	c9 2e       	mov	r12, r25
   2376c:	83 e4       	ldi	r24, 0x43	; 67
   2376e:	90 e5       	ldi	r25, 0x50	; 80
   23770:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23774:	f8 2e       	mov	r15, r24
   23776:	e9 2e       	mov	r14, r25
   23778:	8d e2       	ldi	r24, 0x2D	; 45
   2377a:	90 e5       	ldi	r25, 0x50	; 80
   2377c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23780:	cf 92       	push	r12
   23782:	df 92       	push	r13
   23784:	ef 92       	push	r14
   23786:	ff 92       	push	r15
   23788:	22 ec       	ldi	r18, 0xC2	; 194
   2378a:	39 e8       	ldi	r19, 0x89	; 137
   2378c:	3f 93       	push	r19
   2378e:	2f 93       	push	r18
   23790:	9f 93       	push	r25
   23792:	8f 93       	push	r24
   23794:	84 e0       	ldi	r24, 0x04	; 4
   23796:	9f e6       	ldi	r25, 0x6F	; 111
   23798:	9f 93       	push	r25
   2379a:	8f 93       	push	r24
   2379c:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
	 _T(MSG_LEFT),
	 _T(MSG_RIGHT)
	);
	for (uint8_t i = 0; i < 2; i++)
	{
		lcd_set_cursor(11,2+i);
   237a0:	62 e0       	ldi	r22, 0x02	; 2
   237a2:	8b e0       	ldi	r24, 0x0B	; 11
   237a4:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		if (distanceMin[i] >= 200) lcd_puts_P(_T(MSG_NA));
   237a8:	0f b6       	in	r0, 0x3f	; 63
   237aa:	f8 94       	cli
   237ac:	de bf       	out	0x3e, r29	; 62
   237ae:	0f be       	out	0x3f, r0	; 63
   237b0:	cd bf       	out	0x3d, r28	; 61
   237b2:	20 e0       	ldi	r18, 0x00	; 0
   237b4:	30 e0       	ldi	r19, 0x00	; 0
   237b6:	48 e4       	ldi	r20, 0x48	; 72
   237b8:	53 e4       	ldi	r21, 0x43	; 67
   237ba:	62 2d       	mov	r22, r2
   237bc:	73 2d       	mov	r23, r3
   237be:	80 2f       	mov	r24, r16
   237c0:	91 2f       	mov	r25, r17
   237c2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   237c6:	87 ff       	sbrs	r24, 7
   237c8:	51 c0       	rjmp	.+162    	; 0x2386c <lcd_menu_xyz_y_min()+0x254>
		else lcd_printf_P(_N("%6.2fmm"), distanceMin[i]);
   237ca:	1f 93       	push	r17
   237cc:	0f 93       	push	r16
   237ce:	3f 92       	push	r3
   237d0:	2f 92       	push	r2
   237d2:	8c ef       	ldi	r24, 0xFC	; 252
   237d4:	9e e6       	ldi	r25, 0x6E	; 110
   237d6:	9f 93       	push	r25
   237d8:	8f 93       	push	r24
   237da:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   237de:	0f 90       	pop	r0
   237e0:	0f 90       	pop	r0
   237e2:	0f 90       	pop	r0
   237e4:	0f 90       	pop	r0
   237e6:	0f 90       	pop	r0
   237e8:	0f 90       	pop	r0
	 _T(MSG_LEFT),
	 _T(MSG_RIGHT)
	);
	for (uint8_t i = 0; i < 2; i++)
	{
		lcd_set_cursor(11,2+i);
   237ea:	63 e0       	ldi	r22, 0x03	; 3
   237ec:	8b e0       	ldi	r24, 0x0B	; 11
   237ee:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		if (distanceMin[i] >= 200) lcd_puts_P(_T(MSG_NA));
   237f2:	1d 8d       	ldd	r17, Y+29	; 0x1d
   237f4:	0e 8d       	ldd	r16, Y+30	; 0x1e
   237f6:	ff 8c       	ldd	r15, Y+31	; 0x1f
   237f8:	e8 a0       	ldd	r14, Y+32	; 0x20
   237fa:	20 e0       	ldi	r18, 0x00	; 0
   237fc:	30 e0       	ldi	r19, 0x00	; 0
   237fe:	48 e4       	ldi	r20, 0x48	; 72
   23800:	53 e4       	ldi	r21, 0x43	; 67
   23802:	d8 01       	movw	r26, r16
   23804:	f7 01       	movw	r30, r14
   23806:	6b 2f       	mov	r22, r27
   23808:	7a 2f       	mov	r23, r26
   2380a:	8f 2f       	mov	r24, r31
   2380c:	9e 2f       	mov	r25, r30
   2380e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   23812:	87 fd       	sbrc	r24, 7
   23814:	32 c0       	rjmp	.+100    	; 0x2387a <lcd_menu_xyz_y_min()+0x262>
   23816:	8a e8       	ldi	r24, 0x8A	; 138
   23818:	97 e4       	ldi	r25, 0x47	; 71
   2381a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2381e:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
		else lcd_printf_P(_N("%6.2fmm"), distanceMin[i]);
	}
    if (lcd_clicked())
   23822:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   23826:	88 23       	and	r24, r24
   23828:	41 f0       	breq	.+16     	; 0x2383a <lcd_menu_xyz_y_min()+0x222>
        menu_goto(lcd_menu_xyz_skew, 0, true);
   2382a:	20 e0       	ldi	r18, 0x00	; 0
   2382c:	41 e0       	ldi	r20, 0x01	; 1
   2382e:	70 e0       	ldi	r23, 0x00	; 0
   23830:	60 e0       	ldi	r22, 0x00	; 0
   23832:	80 e3       	ldi	r24, 0x30	; 48
   23834:	9a e3       	ldi	r25, 0x3A	; 58
   23836:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
}
   2383a:	a8 96       	adiw	r28, 0x28	; 40
   2383c:	0f b6       	in	r0, 0x3f	; 63
   2383e:	f8 94       	cli
   23840:	de bf       	out	0x3e, r29	; 62
   23842:	0f be       	out	0x3f, r0	; 63
   23844:	cd bf       	out	0x3d, r28	; 61
   23846:	df 91       	pop	r29
   23848:	cf 91       	pop	r28
   2384a:	1f 91       	pop	r17
   2384c:	0f 91       	pop	r16
   2384e:	ff 90       	pop	r15
   23850:	ef 90       	pop	r14
   23852:	df 90       	pop	r13
   23854:	cf 90       	pop	r12
   23856:	bf 90       	pop	r11
   23858:	af 90       	pop	r10
   2385a:	9f 90       	pop	r9
   2385c:	8f 90       	pop	r8
   2385e:	7f 90       	pop	r7
   23860:	6f 90       	pop	r6
   23862:	5f 90       	pop	r5
   23864:	4f 90       	pop	r4
   23866:	3f 90       	pop	r3
   23868:	2f 90       	pop	r2
   2386a:	08 95       	ret
	 _T(MSG_RIGHT)
	);
	for (uint8_t i = 0; i < 2; i++)
	{
		lcd_set_cursor(11,2+i);
		if (distanceMin[i] >= 200) lcd_puts_P(_T(MSG_NA));
   2386c:	8a e8       	ldi	r24, 0x8A	; 138
   2386e:	97 e4       	ldi	r25, 0x47	; 71
   23870:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23874:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   23878:	b8 cf       	rjmp	.-144    	; 0x237ea <lcd_menu_xyz_y_min()+0x1d2>
		else lcd_printf_P(_N("%6.2fmm"), distanceMin[i]);
   2387a:	ef 92       	push	r14
   2387c:	ff 92       	push	r15
   2387e:	0f 93       	push	r16
   23880:	1f 93       	push	r17
   23882:	8c ef       	ldi	r24, 0xFC	; 252
   23884:	9e e6       	ldi	r25, 0x6E	; 110
   23886:	9f 93       	push	r25
   23888:	8f 93       	push	r24
   2388a:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   2388e:	0f 90       	pop	r0
   23890:	0f 90       	pop	r0
   23892:	0f 90       	pop	r0
   23894:	0f 90       	pop	r0
   23896:	0f 90       	pop	r0
   23898:	0f 90       	pop	r0
   2389a:	c3 cf       	rjmp	.-122    	; 0x23822 <lcd_menu_xyz_y_min()+0x20a>

0002389c <_lcd_move(char const*, unsigned char, int, int)>:
	}
}


static void _lcd_move(const char *name, uint8_t axis, int min, int max)
{
   2389c:	2f 92       	push	r2
   2389e:	3f 92       	push	r3
   238a0:	4f 92       	push	r4
   238a2:	5f 92       	push	r5
   238a4:	6f 92       	push	r6
   238a6:	7f 92       	push	r7
   238a8:	9f 92       	push	r9
   238aa:	af 92       	push	r10
   238ac:	bf 92       	push	r11
   238ae:	cf 92       	push	r12
   238b0:	df 92       	push	r13
   238b2:	ef 92       	push	r14
   238b4:	ff 92       	push	r15
   238b6:	0f 93       	push	r16
   238b8:	1f 93       	push	r17
   238ba:	cf 93       	push	r28
   238bc:	df 93       	push	r29
    if (homing_flag || mesh_bed_leveling_flag)
   238be:	70 91 a7 0d 	lds	r23, 0x0DA7	; 0x800da7 <homing_flag>
   238c2:	71 11       	cpse	r23, r1
   238c4:	04 c0       	rjmp	.+8      	; 0x238ce <_lcd_move(char const*, unsigned char, int, int)+0x32>
   238c6:	70 91 a8 0d 	lds	r23, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   238ca:	77 23       	and	r23, r23
   238cc:	99 f0       	breq	.+38     	; 0x238f4 <_lcd_move(char const*, unsigned char, int, int)+0x58>
	    lcd_set_cursor(0, 1);
		menu_draw_float31(name, current_position[axis]);
	}
	if (menu_leaving || LCD_CLICKED) (void)enable_endstops(_md->endstopsEnabledPrevious);
    menu_back_if_clicked();
}
   238ce:	df 91       	pop	r29
   238d0:	cf 91       	pop	r28
   238d2:	1f 91       	pop	r17
   238d4:	0f 91       	pop	r16
   238d6:	ff 90       	pop	r15
   238d8:	ef 90       	pop	r14
   238da:	df 90       	pop	r13
   238dc:	cf 90       	pop	r12
   238de:	bf 90       	pop	r11
   238e0:	af 90       	pop	r10
   238e2:	9f 90       	pop	r9
   238e4:	7f 90       	pop	r7
   238e6:	6f 90       	pop	r6
   238e8:	5f 90       	pop	r5
   238ea:	4f 90       	pop	r4
   238ec:	3f 90       	pop	r3
   238ee:	2f 90       	pop	r2
static void _lcd_move(const char *name, uint8_t axis, int min, int max)
{
    if (homing_flag || mesh_bed_leveling_flag)
    {
        // printer entered a new state where axis move is forbidden
        menu_back();
   238f0:	0d 94 9d d4 	jmp	0x3a93a	; 0x3a93a <menu_back()>
		bool initialized;              // 1byte
		bool endstopsEnabledPrevious;  // 1byte
	} _menu_data_t;
	static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
	_menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);
	if (!_md->initialized)
   238f4:	70 91 a9 03 	lds	r23, 0x03A9	; 0x8003a9 <menu_data>
   238f8:	71 11       	cpse	r23, r1
   238fa:	09 c0       	rjmp	.+18     	; 0x2390e <_lcd_move(char const*, unsigned char, int, int)+0x72>
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
   238fc:	70 91 b7 02 	lds	r23, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
  check_endstops = check;
   23900:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	{
		_md->endstopsEnabledPrevious = enable_endstops(false);
   23904:	70 93 aa 03 	sts	0x03AA, r23	; 0x8003aa <menu_data+0x1>
		_md->initialized = true;
   23908:	71 e0       	ldi	r23, 0x01	; 1
   2390a:	70 93 a9 03 	sts	0x03A9, r23	; 0x8003a9 <menu_data>
   2390e:	19 01       	movw	r2, r18
   23910:	6a 01       	movw	r12, r20
   23912:	c6 2f       	mov	r28, r22
   23914:	d9 2f       	mov	r29, r25
   23916:	98 2e       	mov	r9, r24
	}
	if (lcd_encoder != 0)
   23918:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   2391c:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   23920:	89 2b       	or	r24, r25
   23922:	09 f4       	brne	.+2      	; 0x23926 <_lcd_move(char const*, unsigned char, int, int)+0x8a>
   23924:	71 c0       	rjmp	.+226    	; 0x23a08 <_lcd_move(char const*, unsigned char, int, int)+0x16c>
	{
		refresh_cmd_timeout();
   23926:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
}

FORCE_INLINE bool planner_queue_full() {
    uint8_t next_block_index = block_buffer_head;
   2392a:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
    if (++ next_block_index == BLOCK_BUFFER_SIZE)
   2392e:	8f 5f       	subi	r24, 0xFF	; 255
   23930:	80 31       	cpi	r24, 0x10	; 16
   23932:	09 f4       	brne	.+2      	; 0x23936 <_lcd_move(char const*, unsigned char, int, int)+0x9a>
        next_block_index = 0;
   23934:	80 e0       	ldi	r24, 0x00	; 0
    return block_buffer_tail == next_block_index;
   23936:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
		if (! planner_queue_full())
   2393a:	98 17       	cp	r25, r24
   2393c:	09 f4       	brne	.+2      	; 0x23940 <_lcd_move(char const*, unsigned char, int, int)+0xa4>
   2393e:	64 c0       	rjmp	.+200    	; 0x23a08 <_lcd_move(char const*, unsigned char, int, int)+0x16c>
		{
			current_position[axis] += lcd_encoder;
   23940:	84 e0       	ldi	r24, 0x04	; 4
   23942:	c8 9f       	mul	r28, r24
   23944:	80 01       	movw	r16, r0
   23946:	11 24       	eor	r1, r1
   23948:	f8 01       	movw	r30, r16
   2394a:	ee 56       	subi	r30, 0x6E	; 110
   2394c:	f9 4f       	sbci	r31, 0xF9	; 249
   2394e:	5f 01       	movw	r10, r30
   23950:	60 91 70 06 	lds	r22, 0x0670	; 0x800670 <lcd_encoder>
   23954:	70 91 71 06 	lds	r23, 0x0671	; 0x800671 <lcd_encoder+0x1>
   23958:	07 2e       	mov	r0, r23
   2395a:	00 0c       	add	r0, r0
   2395c:	88 0b       	sbc	r24, r24
   2395e:	99 0b       	sbc	r25, r25
   23960:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   23964:	f5 01       	movw	r30, r10
   23966:	20 81       	ld	r18, Z
   23968:	31 81       	ldd	r19, Z+1	; 0x01
   2396a:	42 81       	ldd	r20, Z+2	; 0x02
   2396c:	53 81       	ldd	r21, Z+3	; 0x03
   2396e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   23972:	2b 01       	movw	r4, r22
   23974:	3c 01       	movw	r6, r24
			if (min_software_endstops && current_position[axis] < min) current_position[axis] = min;
   23976:	b6 01       	movw	r22, r12
   23978:	dd 0c       	add	r13, r13
   2397a:	88 0b       	sbc	r24, r24
   2397c:	99 0b       	sbc	r25, r25
   2397e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   23982:	6b 01       	movw	r12, r22
   23984:	7c 01       	movw	r14, r24
   23986:	ac 01       	movw	r20, r24
   23988:	9b 01       	movw	r18, r22
   2398a:	c3 01       	movw	r24, r6
   2398c:	b2 01       	movw	r22, r4
   2398e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   23992:	f5 01       	movw	r30, r10
   23994:	87 fd       	sbrc	r24, 7
   23996:	7d c0       	rjmp	.+250    	; 0x23a92 <_lcd_move(char const*, unsigned char, int, int)+0x1f6>
	if (lcd_encoder != 0)
	{
		refresh_cmd_timeout();
		if (! planner_queue_full())
		{
			current_position[axis] += lcd_encoder;
   23998:	40 82       	st	Z, r4
   2399a:	51 82       	std	Z+1, r5	; 0x01
   2399c:	62 82       	std	Z+2, r6	; 0x02
   2399e:	73 82       	std	Z+3, r7	; 0x03
			if (min_software_endstops && current_position[axis] < min) current_position[axis] = min;
			if (max_software_endstops && current_position[axis] > max) current_position[axis] = max;
   239a0:	b1 01       	movw	r22, r2
   239a2:	33 0c       	add	r3, r3
   239a4:	88 0b       	sbc	r24, r24
   239a6:	99 0b       	sbc	r25, r25
   239a8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   239ac:	2b 01       	movw	r4, r22
   239ae:	3c 01       	movw	r6, r24
   239b0:	c8 01       	movw	r24, r16
   239b2:	8e 56       	subi	r24, 0x6E	; 110
   239b4:	99 4f       	sbci	r25, 0xF9	; 249
   239b6:	7c 01       	movw	r14, r24
   239b8:	a3 01       	movw	r20, r6
   239ba:	92 01       	movw	r18, r4
   239bc:	fc 01       	movw	r30, r24
   239be:	60 81       	ld	r22, Z
   239c0:	71 81       	ldd	r23, Z+1	; 0x01
   239c2:	82 81       	ldd	r24, Z+2	; 0x02
   239c4:	93 81       	ldd	r25, Z+3	; 0x03
   239c6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   239ca:	18 16       	cp	r1, r24
   239cc:	2c f4       	brge	.+10     	; 0x239d8 <_lcd_move(char const*, unsigned char, int, int)+0x13c>
   239ce:	f7 01       	movw	r30, r14
   239d0:	40 82       	st	Z, r4
   239d2:	51 82       	std	Z+1, r5	; 0x01
   239d4:	62 82       	std	Z+2, r6	; 0x02
   239d6:	73 82       	std	Z+3, r7	; 0x03
			lcd_encoder = 0;
   239d8:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   239dc:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
			world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
   239e0:	66 e9       	ldi	r22, 0x96	; 150
   239e2:	76 e0       	ldi	r23, 0x06	; 6
   239e4:	82 e9       	ldi	r24, 0x92	; 146
   239e6:	96 e0       	ldi	r25, 0x06	; 6
   239e8:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>
			plan_buffer_line_curposXYZE(get_feedrate_mm_s(manual_feedrate[axis]));
   239ec:	f8 01       	movw	r30, r16
   239ee:	e6 50       	subi	r30, 0x06	; 6
   239f0:	fd 4f       	sbci	r31, 0xFD	; 253
   239f2:	60 81       	ld	r22, Z
   239f4:	71 81       	ldd	r23, Z+1	; 0x01
   239f6:	82 81       	ldd	r24, Z+2	; 0x02
   239f8:	93 81       	ldd	r25, Z+3	; 0x03
   239fa:	0e 94 4e 66 	call	0xcc9c	; 0xcc9c <get_feedrate_mm_s(float)>
   239fe:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
			lcd_draw_update = 1;
   23a02:	81 e0       	ldi	r24, 0x01	; 1
   23a04:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
		}
	}
	if (lcd_draw_update)
   23a08:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   23a0c:	88 23       	and	r24, r24
   23a0e:	11 f1       	breq	.+68     	; 0x23a54 <_lcd_move(char const*, unsigned char, int, int)+0x1b8>
	{
	    lcd_set_cursor(0, 1);
   23a10:	61 e0       	ldi	r22, 0x01	; 1
   23a12:	80 e0       	ldi	r24, 0x00	; 0
   23a14:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		menu_draw_float31(name, current_position[axis]);
   23a18:	84 e0       	ldi	r24, 0x04	; 4
   23a1a:	c8 9f       	mul	r28, r24
   23a1c:	f0 01       	movw	r30, r0
   23a1e:	11 24       	eor	r1, r1
   23a20:	ee 56       	subi	r30, 0x6E	; 110
   23a22:	f9 4f       	sbci	r31, 0xF9	; 249
//! The text needs to come with a colon ":", this function does not append it anymore.
//! That resulted in a much shorter implementation (234628B -> 234476B)
//! There are similar functions around which may be shortened in a similar way
void menu_draw_float31(const char* str, float val)
{
	lcd_printf_P(menu_fmt_float31, str, val);
   23a24:	83 81       	ldd	r24, Z+3	; 0x03
   23a26:	8f 93       	push	r24
   23a28:	82 81       	ldd	r24, Z+2	; 0x02
   23a2a:	8f 93       	push	r24
   23a2c:	81 81       	ldd	r24, Z+1	; 0x01
   23a2e:	8f 93       	push	r24
   23a30:	80 81       	ld	r24, Z
   23a32:	8f 93       	push	r24
   23a34:	df 93       	push	r29
   23a36:	9f 92       	push	r9
   23a38:	8b e3       	ldi	r24, 0x3B	; 59
   23a3a:	92 ea       	ldi	r25, 0xA2	; 162
   23a3c:	9f 93       	push	r25
   23a3e:	8f 93       	push	r24
   23a40:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   23a44:	ed b7       	in	r30, 0x3d	; 61
   23a46:	fe b7       	in	r31, 0x3e	; 62
   23a48:	38 96       	adiw	r30, 0x08	; 8
   23a4a:	0f b6       	in	r0, 0x3f	; 63
   23a4c:	f8 94       	cli
   23a4e:	fe bf       	out	0x3e, r31	; 62
   23a50:	0f be       	out	0x3f, r0	; 63
   23a52:	ed bf       	out	0x3d, r30	; 61
	}
	if (menu_leaving || LCD_CLICKED) (void)enable_endstops(_md->endstopsEnabledPrevious);
   23a54:	80 91 d7 03 	lds	r24, 0x03D7	; 0x8003d7 <menu_leaving>
   23a58:	81 11       	cpse	r24, r1
   23a5a:	04 c0       	rjmp	.+8      	; 0x23a64 <_lcd_move(char const*, unsigned char, int, int)+0x1c8>
   23a5c:	80 91 a8 03 	lds	r24, 0x03A8	; 0x8003a8 <lcd_click_trigger>
   23a60:	88 23       	and	r24, r24
   23a62:	21 f0       	breq	.+8      	; 0x23a6c <_lcd_move(char const*, unsigned char, int, int)+0x1d0>
   23a64:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   23a68:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    menu_back_if_clicked();
}
   23a6c:	df 91       	pop	r29
   23a6e:	cf 91       	pop	r28
   23a70:	1f 91       	pop	r17
   23a72:	0f 91       	pop	r16
   23a74:	ff 90       	pop	r15
   23a76:	ef 90       	pop	r14
   23a78:	df 90       	pop	r13
   23a7a:	cf 90       	pop	r12
   23a7c:	bf 90       	pop	r11
   23a7e:	af 90       	pop	r10
   23a80:	9f 90       	pop	r9
   23a82:	7f 90       	pop	r7
   23a84:	6f 90       	pop	r6
   23a86:	5f 90       	pop	r5
   23a88:	4f 90       	pop	r4
   23a8a:	3f 90       	pop	r3
   23a8c:	2f 90       	pop	r2
	{
	    lcd_set_cursor(0, 1);
		menu_draw_float31(name, current_position[axis]);
	}
	if (menu_leaving || LCD_CLICKED) (void)enable_endstops(_md->endstopsEnabledPrevious);
    menu_back_if_clicked();
   23a8e:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>
	{
		refresh_cmd_timeout();
		if (! planner_queue_full())
		{
			current_position[axis] += lcd_encoder;
			if (min_software_endstops && current_position[axis] < min) current_position[axis] = min;
   23a92:	c0 82       	st	Z, r12
   23a94:	d1 82       	std	Z+1, r13	; 0x01
   23a96:	e2 82       	std	Z+2, r14	; 0x02
   23a98:	f3 82       	std	Z+3, r15	; 0x03
   23a9a:	82 cf       	rjmp	.-252    	; 0x239a0 <_lcd_move(char const*, unsigned char, int, int)+0x104>

00023a9c <lcd_move_z() [clone .lto_priv.407]>:
}
static void lcd_move_y() {
  _lcd_move(PSTR("Y:"), Y_AXIS, Y_MIN_POS, Y_MAX_POS);
}
static void lcd_move_z() {
  _lcd_move(PSTR("Z:"), Z_AXIS, Z_MIN_POS, Z_MAX_POS);
   23a9c:	22 ed       	ldi	r18, 0xD2	; 210
   23a9e:	30 e0       	ldi	r19, 0x00	; 0
   23aa0:	50 e0       	ldi	r21, 0x00	; 0
   23aa2:	40 e0       	ldi	r20, 0x00	; 0
   23aa4:	62 e0       	ldi	r22, 0x02	; 2
   23aa6:	85 e6       	ldi	r24, 0x65	; 101
   23aa8:	92 ea       	ldi	r25, 0xA2	; 162
   23aaa:	0d 94 4e 1c 	jmp	0x2389c	; 0x2389c <_lcd_move(char const*, unsigned char, int, int)>

00023aae <lcd_move_y() [clone .lto_priv.419]>:
// the implementation of menu_draw_float31
static void lcd_move_x() {
  _lcd_move(PSTR("X:"), X_AXIS, X_MIN_POS, X_MAX_POS);
}
static void lcd_move_y() {
  _lcd_move(PSTR("Y:"), Y_AXIS, Y_MIN_POS, Y_MAX_POS);
   23aae:	24 ed       	ldi	r18, 0xD4	; 212
   23ab0:	30 e0       	ldi	r19, 0x00	; 0
   23ab2:	4c ef       	ldi	r20, 0xFC	; 252
   23ab4:	5f ef       	ldi	r21, 0xFF	; 255
   23ab6:	61 e0       	ldi	r22, 0x01	; 1
   23ab8:	82 e6       	ldi	r24, 0x62	; 98
   23aba:	92 ea       	ldi	r25, 0xA2	; 162
   23abc:	0d 94 4e 1c 	jmp	0x2389c	; 0x2389c <_lcd_move(char const*, unsigned char, int, int)>

00023ac0 <lcd_move_x() [clone .lto_priv.418]>:
}

// Note: the colon behind the text (X, Y, Z) is necessary to greatly shorten
// the implementation of menu_draw_float31
static void lcd_move_x() {
  _lcd_move(PSTR("X:"), X_AXIS, X_MIN_POS, X_MAX_POS);
   23ac0:	2f ef       	ldi	r18, 0xFF	; 255
   23ac2:	30 e0       	ldi	r19, 0x00	; 0
   23ac4:	50 e0       	ldi	r21, 0x00	; 0
   23ac6:	40 e0       	ldi	r20, 0x00	; 0
   23ac8:	60 e0       	ldi	r22, 0x00	; 0
   23aca:	8f e5       	ldi	r24, 0x5F	; 95
   23acc:	92 ea       	ldi	r25, 0xA2	; 162
   23ace:	0d 94 4e 1c 	jmp	0x2389c	; 0x2389c <_lcd_move(char const*, unsigned char, int, int)>

00023ad2 <lcd_menu_fails_stats() [clone .lto_priv.414]>:
//! ----------------------
//! @endcode

static void lcd_menu_fails_stats()
{
	MENU_BEGIN();
   23ad2:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   23ad6:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   23ada:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23ade:	84 30       	cpi	r24, 0x04	; 4
   23ae0:	28 f5       	brcc	.+74     	; 0x23b2c <lcd_menu_fails_stats() [clone .lto_priv.414]+0x5a>
   23ae2:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
   23ae6:	8b e3       	ldi	r24, 0x3B	; 59
   23ae8:	98 e4       	ldi	r25, 0x48	; 72
   23aea:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23aee:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_print);
   23af2:	8e e0       	ldi	r24, 0x0E	; 14
   23af4:	9e e4       	ldi	r25, 0x4E	; 78
   23af6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23afa:	66 e9       	ldi	r22, 0x96	; 150
   23afc:	7a e3       	ldi	r23, 0x3A	; 58
   23afe:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_total);
   23b02:	86 e0       	ldi	r24, 0x06	; 6
   23b04:	9e e4       	ldi	r25, 0x4E	; 78
   23b06:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23b0a:	66 e0       	ldi	r22, 0x06	; 6
   23b0c:	79 e3       	ldi	r23, 0x39	; 57
   23b0e:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_END();
   23b12:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
//! ----------------------
//! @endcode

static void lcd_menu_fails_stats()
{
	MENU_BEGIN();
   23b16:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23b1a:	8f 5f       	subi	r24, 0xFF	; 255
   23b1c:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   23b20:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   23b24:	8f 5f       	subi	r24, 0xFF	; 255
   23b26:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   23b2a:	d7 cf       	rjmp	.-82     	; 0x23ada <lcd_menu_fails_stats() [clone .lto_priv.414]+0x8>
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
	MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_print);
	MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_total);
	MENU_END();
}
   23b2c:	08 95       	ret

00023b2e <lcd_menu_fails_stats_mmu() [clone .lto_priv.415]>:
//! | Material changes   |  MSG_MATERIAL_CHANGES c=18
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu()
{
	MENU_BEGIN();
   23b2e:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   23b32:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   23b36:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23b3a:	84 30       	cpi	r24, 0x04	; 4
   23b3c:	68 f5       	brcc	.+90     	; 0x23b98 <lcd_menu_fails_stats_mmu() [clone .lto_priv.415]+0x6a>
   23b3e:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
   23b42:	8b e3       	ldi	r24, 0x3B	; 59
   23b44:	98 e4       	ldi	r25, 0x48	; 72
   23b46:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23b4a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_mmu_print);
   23b4e:	8e e0       	ldi	r24, 0x0E	; 14
   23b50:	9e e4       	ldi	r25, 0x4E	; 78
   23b52:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23b56:	6c e9       	ldi	r22, 0x9C	; 156
   23b58:	79 e3       	ldi	r23, 0x39	; 57
   23b5a:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_mmu_total);
   23b5e:	86 e0       	ldi	r24, 0x06	; 6
   23b60:	9e e4       	ldi	r25, 0x4E	; 78
   23b62:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23b66:	6e ed       	ldi	r22, 0xDE	; 222
   23b68:	78 e3       	ldi	r23, 0x38	; 56
   23b6a:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_ITEM_SUBMENU_P(_T(MSG_MATERIAL_CHANGES), lcd_menu_toolchange_stats_mmu_total);
   23b6e:	84 ea       	ldi	r24, 0xA4	; 164
   23b70:	9d e4       	ldi	r25, 0x4D	; 77
   23b72:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23b76:	66 ef       	ldi	r22, 0xF6	; 246
   23b78:	79 e3       	ldi	r23, 0x39	; 57
   23b7a:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
	MENU_END();
   23b7e:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
//! | Material changes   |  MSG_MATERIAL_CHANGES c=18
//! ----------------------
//! @endcode
static void lcd_menu_fails_stats_mmu()
{
	MENU_BEGIN();
   23b82:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23b86:	8f 5f       	subi	r24, 0xFF	; 255
   23b88:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   23b8c:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   23b90:	8f 5f       	subi	r24, 0xFF	; 255
   23b92:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   23b96:	cf cf       	rjmp	.-98     	; 0x23b36 <lcd_menu_fails_stats_mmu() [clone .lto_priv.415]+0x8>
	MENU_ITEM_BACK_P(_T(MSG_MAIN));
	MENU_ITEM_SUBMENU_P(_T(MSG_LAST_PRINT), lcd_menu_fails_stats_mmu_print);
	MENU_ITEM_SUBMENU_P(_T(MSG_TOTAL), lcd_menu_fails_stats_mmu_total);
	MENU_ITEM_SUBMENU_P(_T(MSG_MATERIAL_CHANGES), lcd_menu_toolchange_stats_mmu_total);
	MENU_END();
}
   23b98:	08 95       	ret

00023b9a <mFilamentResetMenuStack()>:
    setFilamentAction(FilamentAction::None);
}

/// Reset the menu stack and clear the planned filament action flag
static void __attribute__((noinline)) mFilamentResetMenuStack() {
    menu_back(bFilamentPreheatState ? 1 : 2);
   23b9a:	80 91 63 06 	lds	r24, 0x0663	; 0x800663 <bFilamentPreheatState>
   23b9e:	81 11       	cpse	r24, r1
   23ba0:	03 c0       	rjmp	.+6      	; 0x23ba8 <mFilamentResetMenuStack()+0xe>
   23ba2:	82 e0       	ldi	r24, 0x02	; 2
   23ba4:	0d 94 81 d4 	jmp	0x3a902	; 0x3a902 <menu_back(unsigned char)>
   23ba8:	81 e0       	ldi	r24, 0x01	; 1
   23baa:	fc cf       	rjmp	.-8      	; 0x23ba4 <mFilamentResetMenuStack()+0xa>

00023bac <lcd_support_menu() [clone .lto_priv.408]>:
//! | Debug              |	c=18
//! @endcode
//! ----------------------
//! @endcode
static void lcd_support_menu()
{
   23bac:	ef 92       	push	r14
   23bae:	ff 92       	push	r15
   23bb0:	0f 93       	push	r16
   23bb2:	1f 93       	push	r17
   23bb4:	cf 93       	push	r28
   23bb6:	df 93       	push	r29
		uint32_t ip;                   // 4bytes
		char ip_str[IP4_STR_SIZE];     // 16bytes
	} _menu_data_t;
    static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
	_menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);
    if (_md->status == 0 || lcd_draw_update == 2)
   23bb8:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   23bbc:	88 23       	and	r24, r24
   23bbe:	29 f0       	breq	.+10     	; 0x23bca <lcd_support_menu() [clone .lto_priv.408]+0x1e>
   23bc0:	90 91 6d 02 	lds	r25, 0x026D	; 0x80026d <lcd_draw_update>
   23bc4:	92 30       	cpi	r25, 0x02	; 2
   23bc6:	09 f0       	breq	.+2      	; 0x23bca <lcd_support_menu() [clone .lto_priv.408]+0x1e>
   23bc8:	80 c1       	rjmp	.+768    	; 0x23eca <lcd_support_menu() [clone .lto_priv.408]+0x31e>
	{
        // Menu was entered or SD card status has changed (plugged in or removed).
        // Initialize its status.
        _md->status = 1;
   23bca:	81 e0       	ldi	r24, 0x01	; 1
   23bcc:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
   23bd0:	80 91 01 17 	lds	r24, 0x1701	; 0x801701 <card+0x273>
        _md->is_flash_air = card.ToshibaFlashAir_isEnabled();
   23bd4:	80 93 aa 03 	sts	0x03AA, r24	; 0x8003aa <menu_data+0x1>
        if (_md->is_flash_air) {
   23bd8:	88 23       	and	r24, r24
   23bda:	21 f0       	breq	.+8      	; 0x23be4 <lcd_support_menu() [clone .lto_priv.408]+0x38>
            card.ToshibaFlashAir_GetIP((uint8_t*)(&_md->ip)); // ip == 0 if it failed
   23bdc:	8b ea       	ldi	r24, 0xAB	; 171
   23bde:	93 e0       	ldi	r25, 0x03	; 3
   23be0:	0f 94 10 87 	call	0x30e20	; 0x30e20 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]>
    {
        // Waiting for the FlashAir card to get an IP address from a router. Force an update.
        _md->status = 0;
    }

  MENU_BEGIN();
   23be4:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   23be8:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
		if (((menu_item - 1) == menu_line) && lcd_draw_update)
		{
			lcd_set_cursor(6, menu_row);
			MMU2::Version mmu_version = MMU2::mmu2.GetMMUFWVersion();
			if (mmu_version.major > 0)
				lcd_printf_P(PSTR("%d.%d.%d"), mmu_version.major, mmu_version.minor, mmu_version.build);
   23bec:	84 eb       	ldi	r24, 0xB4	; 180
   23bee:	e8 2e       	mov	r14, r24
   23bf0:	80 ea       	ldi	r24, 0xA0	; 160
   23bf2:	f8 2e       	mov	r15, r24
    }
}

void ip4_to_str(char* dest, uint8_t* IP)
{
    sprintf_P(dest, PSTR("%u.%u.%u.%u"), IP[0], IP[1], IP[2], IP[3]);
   23bf4:	c3 e8       	ldi	r28, 0x83	; 131
   23bf6:	d0 ea       	ldi	r29, 0xA0	; 160
   23bf8:	0f ea       	ldi	r16, 0xAF	; 175
   23bfa:	13 e0       	ldi	r17, 0x03	; 3
    {
        // Waiting for the FlashAir card to get an IP address from a router. Force an update.
        _md->status = 0;
    }

  MENU_BEGIN();
   23bfc:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23c00:	84 30       	cpi	r24, 0x04	; 4
   23c02:	08 f0       	brcs	.+2      	; 0x23c06 <lcd_support_menu() [clone .lto_priv.408]+0x5a>
   23c04:	89 c1       	rjmp	.+786    	; 0x23f18 <lcd_support_menu() [clone .lto_priv.408]+0x36c>
   23c06:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>

  MENU_ITEM_BACK_P(_T(MSG_MAIN));
   23c0a:	8b e3       	ldi	r24, 0x3B	; 59
   23c0c:	98 e4       	ldi	r25, 0x48	; 72
   23c0e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23c12:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>

  MENU_ITEM_BACK_P(PSTR("Firmware:"));
   23c16:	8c e1       	ldi	r24, 0x1C	; 28
   23c18:	91 ea       	ldi	r25, 0xA1	; 161
   23c1a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(" " FW_VERSION_FULL));
   23c1e:	8f e0       	ldi	r24, 0x0F	; 15
   23c20:	91 ea       	ldi	r25, 0xA1	; 161
   23c22:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(" Repo:" FW_REPOSITORY));
   23c26:	81 e0       	ldi	r24, 0x01	; 1
   23c28:	91 ea       	ldi	r25, 0xA1	; 161
   23c2a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(" Hash:" FW_COMMIT_HASH));
   23c2e:	81 ef       	ldi	r24, 0xF1	; 241
   23c30:	90 ea       	ldi	r25, 0xA0	; 160
   23c32:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(_n("prusa3d.com"));////MSG_PRUSA3D c=18
   23c36:	83 ea       	ldi	r24, 0xA3	; 163
   23c38:	9e e6       	ldi	r25, 0x6E	; 110
   23c3a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(_n("forum.prusa3d.com"));////MSG_PRUSA3D_FORUM c=18
   23c3e:	81 e9       	ldi	r24, 0x91	; 145
   23c40:	9e e6       	ldi	r25, 0x6E	; 110
   23c42:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(_n("help.prusa3d.com"));////MSG_PRUSA3D_HELP c=18
   23c46:	80 e8       	ldi	r24, 0x80	; 128
   23c48:	9e e6       	ldi	r25, 0x6E	; 110
   23c4a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(STR_SEPARATOR);
   23c4e:	82 ec       	ldi	r24, 0xC2	; 194
   23c50:	99 e8       	ldi	r25, 0x89	; 137
   23c52:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(FILAMENT_SIZE));
   23c56:	86 ee       	ldi	r24, 0xE6	; 230
   23c58:	90 ea       	ldi	r25, 0xA0	; 160
   23c5a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(ELECTRONICS));
   23c5e:	8c ed       	ldi	r24, 0xDC	; 220
   23c60:	90 ea       	ldi	r25, 0xA0	; 160
   23c62:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(NOZZLE_TYPE));
   23c66:	8d ec       	ldi	r24, 0xCD	; 205
   23c68:	90 ea       	ldi	r25, 0xA0	; 160
   23c6a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(STR_SEPARATOR);
   23c6e:	82 ec       	ldi	r24, 0xC2	; 194
   23c70:	99 e8       	ldi	r25, 0x89	; 137
   23c72:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(_T(MSG_DATE));
   23c76:	8b ea       	ldi	r24, 0xAB	; 171
   23c78:	9e e4       	ldi	r25, 0x4E	; 78
   23c7a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23c7e:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(PSTR(SOURCE_DATE_EPOCH));
   23c82:	82 ec       	ldi	r24, 0xC2	; 194
   23c84:	90 ea       	ldi	r25, 0xA0	; 160
   23c86:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_BACK_P(STR_SEPARATOR);
  MENU_ITEM_BACK_P(PSTR("Fil. sensor v.:"));
  MENU_ITEM_BACK_P(fsensor.getIRVersionText());
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)

	MENU_ITEM_BACK_P(STR_SEPARATOR);
   23c8a:	82 ec       	ldi	r24, 0xC2	; 194
   23c8c:	99 e8       	ldi	r25, 0x89	; 137
   23c8e:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
	if (MMU2::mmu2.Enabled())
   23c92:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   23c96:	81 30       	cpi	r24, 0x01	; 1
   23c98:	09 f0       	breq	.+2      	; 0x23c9c <lcd_support_menu() [clone .lto_priv.408]+0xf0>
   23c9a:	39 c1       	rjmp	.+626    	; 0x23f0e <lcd_support_menu() [clone .lto_priv.408]+0x362>
	{
		MENU_ITEM_BACK_P(_T(MSG_MMU_CONNECTED));
   23c9c:	8b e9       	ldi	r24, 0x9B	; 155
   23c9e:	9e e4       	ldi	r25, 0x4E	; 78
   23ca0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23ca4:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
		MENU_ITEM_BACK_P(PSTR(" FW:"));  ////c=17
   23ca8:	8d eb       	ldi	r24, 0xBD	; 189
   23caa:	90 ea       	ldi	r25, 0xA0	; 160
   23cac:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
		if (((menu_item - 1) == menu_line) && lcd_draw_update)
   23cb0:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   23cb4:	81 50       	subi	r24, 0x01	; 1
   23cb6:	99 0b       	sbc	r25, r25
   23cb8:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   23cbc:	28 17       	cp	r18, r24
   23cbe:	19 06       	cpc	r1, r25
   23cc0:	49 f5       	brne	.+82     	; 0x23d14 <lcd_support_menu() [clone .lto_priv.408]+0x168>
   23cc2:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   23cc6:	88 23       	and	r24, r24
   23cc8:	29 f1       	breq	.+74     	; 0x23d14 <lcd_support_menu() [clone .lto_priv.408]+0x168>
		{
			lcd_set_cursor(6, menu_row);
   23cca:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   23cce:	86 e0       	ldi	r24, 0x06	; 6
   23cd0:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
    inline ErrorCode GetLastErrorCode() const { return lastErrorCode; }

    /// @returns the version of the connected MMU FW.
    /// In the future we'll return the trully detected FW version
    Version GetMMUFWVersion() const {
        if (State() == xState::Active) {
   23cd4:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   23cd8:	81 30       	cpi	r24, 0x01	; 1
   23cda:	09 f0       	breq	.+2      	; 0x23cde <lcd_support_menu() [clone .lto_priv.408]+0x132>
   23cdc:	11 c1       	rjmp	.+546    	; 0x23f00 <lcd_support_menu() [clone .lto_priv.408]+0x354>
   23cde:	80 91 9a 13 	lds	r24, 0x139A	; 0x80139a <MMU2::mmu2+0x4f>
   23ce2:	90 91 9b 13 	lds	r25, 0x139B	; 0x80139b <MMU2::mmu2+0x50>
   23ce6:	20 91 9c 13 	lds	r18, 0x139C	; 0x80139c <MMU2::mmu2+0x51>
			MMU2::Version mmu_version = MMU2::mmu2.GetMMUFWVersion();
			if (mmu_version.major > 0)
   23cea:	88 23       	and	r24, r24
   23cec:	09 f4       	brne	.+2      	; 0x23cf0 <lcd_support_menu() [clone .lto_priv.408]+0x144>
   23cee:	08 c1       	rjmp	.+528    	; 0x23f00 <lcd_support_menu() [clone .lto_priv.408]+0x354>
				lcd_printf_P(PSTR("%d.%d.%d"), mmu_version.major, mmu_version.minor, mmu_version.build);
   23cf0:	1f 92       	push	r1
   23cf2:	2f 93       	push	r18
   23cf4:	1f 92       	push	r1
   23cf6:	9f 93       	push	r25
   23cf8:	1f 92       	push	r1
   23cfa:	8f 93       	push	r24
   23cfc:	ff 92       	push	r15
   23cfe:	ef 92       	push	r14
   23d00:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   23d04:	8d b7       	in	r24, 0x3d	; 61
   23d06:	9e b7       	in	r25, 0x3e	; 62
   23d08:	08 96       	adiw	r24, 0x08	; 8
   23d0a:	0f b6       	in	r0, 0x3f	; 63
   23d0c:	f8 94       	cli
   23d0e:	9e bf       	out	0x3e, r25	; 62
   23d10:	0f be       	out	0x3f, r0	; 63
   23d12:	8d bf       	out	0x3d, r24	; 61
	else
		MENU_ITEM_BACK_P(PSTR("MMU        N/A"));


  // Show the FlashAir IP address, if the card is available.
  if (_md->is_flash_air) {
   23d14:	80 91 aa 03 	lds	r24, 0x03AA	; 0x8003aa <menu_data+0x1>
   23d18:	88 23       	and	r24, r24
   23d1a:	09 f4       	brne	.+2      	; 0x23d1e <lcd_support_menu() [clone .lto_priv.408]+0x172>
   23d1c:	40 c0       	rjmp	.+128    	; 0x23d9e <lcd_support_menu() [clone .lto_priv.408]+0x1f2>
      MENU_ITEM_BACK_P(STR_SEPARATOR);
   23d1e:	82 ec       	ldi	r24, 0xC2	; 194
   23d20:	99 e8       	ldi	r25, 0x89	; 137
   23d22:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      MENU_ITEM_BACK_P(PSTR("FlashAir IP Addr:"));  ////MSG_FLASHAIR c=18
   23d26:	83 e9       	ldi	r24, 0x93	; 147
   23d28:	90 ea       	ldi	r25, 0xA0	; 160
   23d2a:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      MENU_ITEM_BACK_P(PSTR(" "));
   23d2e:	81 e9       	ldi	r24, 0x91	; 145
   23d30:	90 ea       	ldi	r25, 0xA0	; 160
   23d32:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      if (((menu_item - 1) == menu_line) && lcd_draw_update) {
   23d36:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   23d3a:	81 50       	subi	r24, 0x01	; 1
   23d3c:	99 0b       	sbc	r25, r25
   23d3e:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   23d42:	28 17       	cp	r18, r24
   23d44:	19 06       	cpc	r1, r25
   23d46:	59 f5       	brne	.+86     	; 0x23d9e <lcd_support_menu() [clone .lto_priv.408]+0x1f2>
   23d48:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   23d4c:	88 23       	and	r24, r24
   23d4e:	39 f1       	breq	.+78     	; 0x23d9e <lcd_support_menu() [clone .lto_priv.408]+0x1f2>
          lcd_set_cursor(2, menu_row);
   23d50:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   23d54:	82 e0       	ldi	r24, 0x02	; 2
   23d56:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   23d5a:	80 91 ae 03 	lds	r24, 0x03AE	; 0x8003ae <menu_data+0x5>
   23d5e:	1f 92       	push	r1
   23d60:	8f 93       	push	r24
   23d62:	80 91 ad 03 	lds	r24, 0x03AD	; 0x8003ad <menu_data+0x4>
   23d66:	1f 92       	push	r1
   23d68:	8f 93       	push	r24
   23d6a:	80 91 ac 03 	lds	r24, 0x03AC	; 0x8003ac <menu_data+0x3>
   23d6e:	1f 92       	push	r1
   23d70:	8f 93       	push	r24
   23d72:	80 91 ab 03 	lds	r24, 0x03AB	; 0x8003ab <menu_data+0x2>
   23d76:	1f 92       	push	r1
   23d78:	8f 93       	push	r24
   23d7a:	df 93       	push	r29
   23d7c:	cf 93       	push	r28
   23d7e:	1f 93       	push	r17
   23d80:	0f 93       	push	r16
   23d82:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
          ip4_to_str(_md->ip_str, (uint8_t*)(&_md->ip));
          lcd_print(_md->ip_str);
   23d86:	8f ea       	ldi	r24, 0xAF	; 175
   23d88:	93 e0       	ldi	r25, 0x03	; 3
   23d8a:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
   23d8e:	8d b7       	in	r24, 0x3d	; 61
   23d90:	9e b7       	in	r25, 0x3e	; 62
   23d92:	0c 96       	adiw	r24, 0x0c	; 12
   23d94:	0f b6       	in	r0, 0x3f	; 63
   23d96:	f8 94       	cli
   23d98:	9e bf       	out	0x3e, r25	; 62
   23d9a:	0f be       	out	0x3f, r0	; 63
   23d9c:	8d bf       	out	0x3d, r24	; 61
      }
  }

  // Show the printer IP address, if it is available.
  if (IP_address) {
   23d9e:	80 91 5e 06 	lds	r24, 0x065E	; 0x80065e <IP_address>
   23da2:	90 91 5f 06 	lds	r25, 0x065F	; 0x80065f <IP_address+0x1>
   23da6:	a0 91 60 06 	lds	r26, 0x0660	; 0x800660 <IP_address+0x2>
   23daa:	b0 91 61 06 	lds	r27, 0x0661	; 0x800661 <IP_address+0x3>
   23dae:	89 2b       	or	r24, r25
   23db0:	8a 2b       	or	r24, r26
   23db2:	8b 2b       	or	r24, r27
   23db4:	09 f4       	brne	.+2      	; 0x23db8 <lcd_support_menu() [clone .lto_priv.408]+0x20c>
   23db6:	42 c0       	rjmp	.+132    	; 0x23e3c <lcd_support_menu() [clone .lto_priv.408]+0x290>

      MENU_ITEM_BACK_P(STR_SEPARATOR);
   23db8:	82 ec       	ldi	r24, 0xC2	; 194
   23dba:	99 e8       	ldi	r25, 0x89	; 137
   23dbc:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      MENU_ITEM_BACK_P(_T(MSG_PRINTER_IP));
   23dc0:	8e e7       	ldi	r24, 0x7E	; 126
   23dc2:	9e e4       	ldi	r25, 0x4E	; 78
   23dc4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23dc8:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      MENU_ITEM_BACK_P(PSTR(" "));
   23dcc:	8f e8       	ldi	r24, 0x8F	; 143
   23dce:	90 ea       	ldi	r25, 0xA0	; 160
   23dd0:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
      if (((menu_item - 1) == menu_line) && lcd_draw_update) {
   23dd4:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   23dd8:	81 50       	subi	r24, 0x01	; 1
   23dda:	99 0b       	sbc	r25, r25
   23ddc:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   23de0:	28 17       	cp	r18, r24
   23de2:	19 06       	cpc	r1, r25
   23de4:	59 f5       	brne	.+86     	; 0x23e3c <lcd_support_menu() [clone .lto_priv.408]+0x290>
   23de6:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   23dea:	88 23       	and	r24, r24
   23dec:	39 f1       	breq	.+78     	; 0x23e3c <lcd_support_menu() [clone .lto_priv.408]+0x290>
          lcd_set_cursor(2, menu_row);
   23dee:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   23df2:	82 e0       	ldi	r24, 0x02	; 2
   23df4:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
   23df8:	80 91 61 06 	lds	r24, 0x0661	; 0x800661 <IP_address+0x3>
   23dfc:	1f 92       	push	r1
   23dfe:	8f 93       	push	r24
   23e00:	80 91 60 06 	lds	r24, 0x0660	; 0x800660 <IP_address+0x2>
   23e04:	1f 92       	push	r1
   23e06:	8f 93       	push	r24
   23e08:	80 91 5f 06 	lds	r24, 0x065F	; 0x80065f <IP_address+0x1>
   23e0c:	1f 92       	push	r1
   23e0e:	8f 93       	push	r24
   23e10:	80 91 5e 06 	lds	r24, 0x065E	; 0x80065e <IP_address>
   23e14:	1f 92       	push	r1
   23e16:	8f 93       	push	r24
   23e18:	df 93       	push	r29
   23e1a:	cf 93       	push	r28
   23e1c:	1f 93       	push	r17
   23e1e:	0f 93       	push	r16
   23e20:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
          ip4_to_str(_md->ip_str, (uint8_t*)(&IP_address));
          lcd_print(_md->ip_str);
   23e24:	8f ea       	ldi	r24, 0xAF	; 175
   23e26:	93 e0       	ldi	r25, 0x03	; 3
   23e28:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
   23e2c:	8d b7       	in	r24, 0x3d	; 61
   23e2e:	9e b7       	in	r25, 0x3e	; 62
   23e30:	0c 96       	adiw	r24, 0x0c	; 12
   23e32:	0f b6       	in	r0, 0x3f	; 63
   23e34:	f8 94       	cli
   23e36:	9e bf       	out	0x3e, r25	; 62
   23e38:	0f be       	out	0x3f, r0	; 63
   23e3a:	8d bf       	out	0x3d, r24	; 61
      }
  }

  MENU_ITEM_BACK_P(STR_SEPARATOR);
   23e3c:	82 ec       	ldi	r24, 0xC2	; 194
   23e3e:	99 e8       	ldi	r25, 0x89	; 137
   23e40:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
  MENU_ITEM_SUBMENU_P(_T(MSG_XYZ_DETAILS), lcd_menu_xyz_y_min);
   23e44:	8b e6       	ldi	r24, 0x6B	; 107
   23e46:	9e e4       	ldi	r25, 0x4E	; 78
   23e48:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e4c:	64 e8       	ldi	r22, 0x84	; 132
   23e4e:	79 e3       	ldi	r23, 0x39	; 57
   23e50:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
  MENU_ITEM_SUBMENU_P(_T(MSG_INFO_EXTRUDER), lcd_menu_extruder_info);
   23e54:	8b e5       	ldi	r24, 0x5B	; 91
   23e56:	9e e4       	ldi	r25, 0x4E	; 78
   23e58:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e5c:	60 e7       	ldi	r22, 0x70	; 112
   23e5e:	7a e3       	ldi	r23, 0x3A	; 58
   23e60:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
  MENU_ITEM_SUBMENU_P(_T(MSG_INFO_SENSORS), lcd_menu_show_sensors_state);
   23e64:	8d e4       	ldi	r24, 0x4D	; 77
   23e66:	9e e4       	ldi	r25, 0x4E	; 78
   23e68:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e6c:	6c e0       	ldi	r22, 0x0C	; 12
   23e6e:	74 ee       	ldi	r23, 0xE4	; 228
   23e70:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

#ifdef TMC2130
  MENU_ITEM_SUBMENU_P(_T(MSG_BELT_STATUS), lcd_menu_belt_status);
   23e74:	8f e3       	ldi	r24, 0x3F	; 63
   23e76:	9e e4       	ldi	r25, 0x4E	; 78
   23e78:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e7c:	66 ee       	ldi	r22, 0xE6	; 230
   23e7e:	79 e3       	ldi	r23, 0x39	; 57
   23e80:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //TMC2130

  MENU_ITEM_SUBMENU_P(_T(MSG_MENU_TEMPERATURES), lcd_menu_temperatures);
   23e84:	80 e3       	ldi	r24, 0x30	; 48
   23e86:	9e e4       	ldi	r25, 0x4E	; 78
   23e88:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e8c:	6a ed       	ldi	r22, 0xDA	; 218
   23e8e:	79 e3       	ldi	r23, 0x39	; 57
   23e90:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>

#if defined (VOLT_BED_PIN) || defined (VOLT_PWR_PIN)
  MENU_ITEM_SUBMENU_P(_T(MSG_MENU_VOLTAGES), lcd_menu_voltages);
   23e94:	85 e2       	ldi	r24, 0x25	; 37
   23e96:	9e e4       	ldi	r25, 0x4E	; 78
   23e98:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23e9c:	64 e3       	ldi	r22, 0x34	; 52
   23e9e:	79 e3       	ldi	r23, 0x39	; 57
   23ea0:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
#endif //defined VOLT_BED_PIN || defined VOLT_PWR_PIN

#ifdef MENU_DUMP
    MENU_ITEM_FUNCTION_P(_n("Dump memory"), lcd_dump_memory);
   23ea4:	62 eb       	ldi	r22, 0xB2	; 178
   23ea6:	79 e3       	ldi	r23, 0x39	; 57
   23ea8:	84 e7       	ldi	r24, 0x74	; 116
   23eaa:	9e e6       	ldi	r25, 0x6E	; 110
   23eac:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_ITEM_FUNCTION_P(PSTR("Stack crash"), lcd_stack_crash);
#endif //EMERGENCY_HANDLERS
  MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);////MSG_DEBUG c=18
#endif /* DEBUG_BUILD */

  MENU_END();
   23eb0:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    {
        // Waiting for the FlashAir card to get an IP address from a router. Force an update.
        _md->status = 0;
    }

  MENU_BEGIN();
   23eb4:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   23eb8:	8f 5f       	subi	r24, 0xFF	; 255
   23eba:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   23ebe:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   23ec2:	8f 5f       	subi	r24, 0xFF	; 255
   23ec4:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   23ec8:	99 ce       	rjmp	.-718    	; 0x23bfc <lcd_support_menu() [clone .lto_priv.408]+0x50>
        _md->status = 1;
        _md->is_flash_air = card.ToshibaFlashAir_isEnabled();
        if (_md->is_flash_air) {
            card.ToshibaFlashAir_GetIP((uint8_t*)(&_md->ip)); // ip == 0 if it failed
        }
    } else if (_md->is_flash_air && _md->ip == 0 && ++ _md->status == 16)
   23eca:	90 91 aa 03 	lds	r25, 0x03AA	; 0x8003aa <menu_data+0x1>
   23ece:	99 23       	and	r25, r25
   23ed0:	09 f4       	brne	.+2      	; 0x23ed4 <lcd_support_menu() [clone .lto_priv.408]+0x328>
   23ed2:	88 ce       	rjmp	.-752    	; 0x23be4 <lcd_support_menu() [clone .lto_priv.408]+0x38>
   23ed4:	40 91 ab 03 	lds	r20, 0x03AB	; 0x8003ab <menu_data+0x2>
   23ed8:	50 91 ac 03 	lds	r21, 0x03AC	; 0x8003ac <menu_data+0x3>
   23edc:	60 91 ad 03 	lds	r22, 0x03AD	; 0x8003ad <menu_data+0x4>
   23ee0:	70 91 ae 03 	lds	r23, 0x03AE	; 0x8003ae <menu_data+0x5>
   23ee4:	45 2b       	or	r20, r21
   23ee6:	46 2b       	or	r20, r22
   23ee8:	47 2b       	or	r20, r23
   23eea:	09 f0       	breq	.+2      	; 0x23eee <lcd_support_menu() [clone .lto_priv.408]+0x342>
   23eec:	7b ce       	rjmp	.-778    	; 0x23be4 <lcd_support_menu() [clone .lto_priv.408]+0x38>
   23eee:	8f 5f       	subi	r24, 0xFF	; 255
   23ef0:	80 31       	cpi	r24, 0x10	; 16
   23ef2:	19 f0       	breq	.+6      	; 0x23efa <lcd_support_menu() [clone .lto_priv.408]+0x34e>
   23ef4:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
   23ef8:	75 ce       	rjmp	.-790    	; 0x23be4 <lcd_support_menu() [clone .lto_priv.408]+0x38>
    {
        // Waiting for the FlashAir card to get an IP address from a router. Force an update.
        _md->status = 0;
   23efa:	10 92 a9 03 	sts	0x03A9, r1	; 0x8003a9 <menu_data>
   23efe:	72 ce       	rjmp	.-796    	; 0x23be4 <lcd_support_menu() [clone .lto_priv.408]+0x38>
			lcd_set_cursor(6, menu_row);
			MMU2::Version mmu_version = MMU2::mmu2.GetMMUFWVersion();
			if (mmu_version.major > 0)
				lcd_printf_P(PSTR("%d.%d.%d"), mmu_version.major, mmu_version.minor, mmu_version.build);
			else
				lcd_puts_P(_T(MSG_UNKNOWN));
   23f00:	81 e9       	ldi	r24, 0x91	; 145
   23f02:	9e e4       	ldi	r25, 0x4E	; 78
   23f04:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23f08:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   23f0c:	03 cf       	rjmp	.-506    	; 0x23d14 <lcd_support_menu() [clone .lto_priv.408]+0x168>
		}
	}
	else
		MENU_ITEM_BACK_P(PSTR("MMU        N/A"));
   23f0e:	85 ea       	ldi	r24, 0xA5	; 165
   23f10:	90 ea       	ldi	r25, 0xA0	; 160
   23f12:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
   23f16:	fe ce       	rjmp	.-516    	; 0x23d14 <lcd_support_menu() [clone .lto_priv.408]+0x168>
#endif //EMERGENCY_HANDLERS
  MENU_ITEM_SUBMENU_P(PSTR("Debug"), lcd_menu_debug);////MSG_DEBUG c=18
#endif /* DEBUG_BUILD */

  MENU_END();
}
   23f18:	df 91       	pop	r29
   23f1a:	cf 91       	pop	r28
   23f1c:	1f 91       	pop	r17
   23f1e:	0f 91       	pop	r16
   23f20:	ff 90       	pop	r15
   23f22:	ef 90       	pop	r14
   23f24:	08 95       	ret

00023f26 <lcd_menu_toolchange_stats_mmu_total()>:
    {
        bool initialized;              // 1byte
    } _menu_data_t;
    static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
    _menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);
    if(!_md->initialized) {
   23f26:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   23f2a:	81 11       	cpse	r24, r1
   23f2c:	19 c0       	rjmp	.+50     	; 0x23f60 <lcd_menu_toolchange_stats_mmu_total()+0x3a>
        lcd_clear();
   23f2e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
        lcd_puts_P(_T(MSG_MATERIAL_CHANGES)); /// MSG_MATERIAL_CHANGES c=18
   23f32:	84 ea       	ldi	r24, 0xA4	; 164
   23f34:	9d e4       	ldi	r25, 0x4D	; 77
   23f36:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23f3a:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
        lcd_putc(':');
   23f3e:	8a e3       	ldi	r24, 0x3A	; 58
   23f40:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
        lcd_set_cursor(10, 1);
   23f44:	61 e0       	ldi	r22, 0x01	; 1
   23f46:	8a e0       	ldi	r24, 0x0A	; 10
   23f48:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
        lcd_print(eeprom_read_dword((uint32_t*)EEPROM_MMU_MATERIAL_CHANGES));
   23f4c:	88 ea       	ldi	r24, 0xA8	; 168
   23f4e:	9c e0       	ldi	r25, 0x0C	; 12
   23f50:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
void lcd_print(unsigned long n, int base)
{
	if (base == 0)
		lcd_write(n);
	else
		lcd_printNumber(n, base);
   23f54:	4a e0       	ldi	r20, 0x0A	; 10
   23f56:	0e 94 bb 6f 	call	0xdf76	; 0xdf76 <lcd_printNumber(unsigned long, unsigned char)>
        _md->initialized = true;
   23f5a:	81 e0       	ldi	r24, 0x01	; 1
   23f5c:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
    }
    menu_back_if_clicked();
   23f60:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>

00023f64 <lcd_return_to_status()>:
#endif //DEBUG_DISABLE_LCD_STATUS_LINE
}

static void lcdui_refresh(uint8_t clear = true)
{
    clear ? lcd_refresh() : lcd_refresh_noclear();
   23f64:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
    lcd_status_message_idx = 0; // Re-draw message from beginning
   23f68:	10 92 1e 05 	sts	0x051E, r1	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
}

void lcd_return_to_status()
{
	lcdui_refresh(); // to maybe revive the LCD if static electricity killed it.
	menu_goto(lcd_status_screen, 0, true);
   23f6c:	20 e0       	ldi	r18, 0x00	; 0
   23f6e:	41 e0       	ldi	r20, 0x01	; 1
   23f70:	70 e0       	ldi	r23, 0x00	; 0
   23f72:	60 e0       	ldi	r22, 0x00	; 0
   23f74:	86 e2       	ldi	r24, 0x26	; 38
   23f76:	9a e3       	ldi	r25, 0x3A	; 58
   23f78:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	menu_depth = 0;
   23f7c:	10 92 f8 03 	sts	0x03F8, r1	; 0x8003f8 <menu_depth>
    eFilamentAction = FilamentAction::None; // i.e. non-autoLoad
   23f80:	10 92 a7 03 	sts	0x03A7, r1	; 0x8003a7 <eFilamentAction>
}
   23f84:	08 95       	ret

00023f86 <pid_extruder()>:
//! |                    |
//! ----------------------
//! @endcode
void pid_extruder()
{
	lcd_clear();
   23f86:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	lcd_puts_at_P(0, 0, _T(MSG_SET_TEMPERATURE));
   23f8a:	85 ee       	ldi	r24, 0xE5	; 229
   23f8c:	90 e5       	ldi	r25, 0x50	; 80
   23f8e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   23f92:	ac 01       	movw	r20, r24
   23f94:	60 e0       	ldi	r22, 0x00	; 0
   23f96:	80 e0       	ldi	r24, 0x00	; 0
   23f98:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	pid_temp += lcd_encoder;
   23f9c:	80 91 4b 02 	lds	r24, 0x024B	; 0x80024b <_ZL8pid_temp.lto_priv.443>
   23fa0:	90 91 4c 02 	lds	r25, 0x024C	; 0x80024c <_ZL8pid_temp.lto_priv.443+0x1>
   23fa4:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   23fa8:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   23fac:	82 0f       	add	r24, r18
   23fae:	93 1f       	adc	r25, r19
	if (pid_temp > HEATER_0_MAXTEMP) pid_temp = HEATER_0_MAXTEMP;
   23fb0:	82 33       	cpi	r24, 0x32	; 50
   23fb2:	21 e0       	ldi	r18, 0x01	; 1
   23fb4:	92 07       	cpc	r25, r18
   23fb6:	50 f1       	brcs	.+84     	; 0x2400c <pid_extruder()+0x86>
   23fb8:	81 e3       	ldi	r24, 0x31	; 49
   23fba:	91 e0       	ldi	r25, 0x01	; 1
	else if (pid_temp < HEATER_0_MINTEMP) pid_temp = HEATER_0_MINTEMP;
   23fbc:	90 93 4c 02 	sts	0x024C, r25	; 0x80024c <_ZL8pid_temp.lto_priv.443+0x1>
   23fc0:	80 93 4b 02 	sts	0x024B, r24	; 0x80024b <_ZL8pid_temp.lto_priv.443>
	lcd_encoder = 0;
   23fc4:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   23fc8:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
	lcd_set_cursor(1, 2);
   23fcc:	62 e0       	ldi	r22, 0x02	; 2
   23fce:	81 e0       	ldi	r24, 0x01	; 1
   23fd0:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_printf_P(PSTR("%3u"), pid_temp);
   23fd4:	80 91 4c 02 	lds	r24, 0x024C	; 0x80024c <_ZL8pid_temp.lto_priv.443+0x1>
   23fd8:	8f 93       	push	r24
   23fda:	80 91 4b 02 	lds	r24, 0x024B	; 0x80024b <_ZL8pid_temp.lto_priv.443>
   23fde:	8f 93       	push	r24
   23fe0:	89 e7       	ldi	r24, 0x79	; 121
   23fe2:	92 ea       	ldi	r25, 0xA2	; 162
   23fe4:	9f 93       	push	r25
   23fe6:	8f 93       	push	r24
   23fe8:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
	if (lcd_clicked()) {
   23fec:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   23ff0:	0f 90       	pop	r0
   23ff2:	0f 90       	pop	r0
   23ff4:	0f 90       	pop	r0
   23ff6:	0f 90       	pop	r0
   23ff8:	88 23       	and	r24, r24
   23ffa:	71 f0       	breq	.+28     	; 0x24018 <pid_extruder()+0x92>
		lcd_commands_type = LcdCommands::PidExtruder;
   23ffc:	83 e0       	ldi	r24, 0x03	; 3
   23ffe:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
		lcd_return_to_status();
   24002:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
		lcd_update(2);
   24006:	82 e0       	ldi	r24, 0x02	; 2
   24008:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
{
	lcd_clear();
	lcd_puts_at_P(0, 0, _T(MSG_SET_TEMPERATURE));
	pid_temp += lcd_encoder;
	if (pid_temp > HEATER_0_MAXTEMP) pid_temp = HEATER_0_MAXTEMP;
	else if (pid_temp < HEATER_0_MINTEMP) pid_temp = HEATER_0_MINTEMP;
   2400c:	8a 30       	cpi	r24, 0x0A	; 10
   2400e:	91 05       	cpc	r25, r1
   24010:	a8 f6       	brcc	.-86     	; 0x23fbc <pid_extruder()+0x36>
   24012:	8a e0       	ldi	r24, 0x0A	; 10
   24014:	90 e0       	ldi	r25, 0x00	; 0
   24016:	d2 cf       	rjmp	.-92     	; 0x23fbc <pid_extruder()+0x36>
		lcd_commands_type = LcdCommands::PidExtruder;
		lcd_return_to_status();
		lcd_update(2);
	}

}
   24018:	08 95       	ret

0002401a <alert_automaton_mintemp::step(float, float)>:
	}
public:
	//! brief state automaton step routine
	//! @param current_temp current hotend/bed temperature (for computing simple hysteresis)
	//! @param mintemp minimal temperature including hysteresis to check current_temp against
	void step(float current_temp, float mintemp){
   2401a:	0f 93       	push	r16
   2401c:	1f 93       	push	r17
   2401e:	cf 93       	push	r28
   24020:	df 93       	push	r29
   24022:	ec 01       	movw	r28, r24
   24024:	cb 01       	movw	r24, r22
   24026:	ba 01       	movw	r22, r20
		static const char m1[] PROGMEM = "Please restart";
		switch(state){
   24028:	4a 81       	ldd	r20, Y+2	; 0x02
   2402a:	41 30       	cpi	r20, 0x01	; 1
   2402c:	29 f0       	breq	.+10     	; 0x24038 <alert_automaton_mintemp::step(float, float)+0x1e>
   2402e:	88 f0       	brcs	.+34     	; 0x24052 <alert_automaton_mintemp::step(float, float)+0x38>
   24030:	42 30       	cpi	r20, 0x02	; 2
   24032:	09 f1       	breq	.+66     	; 0x24076 <alert_automaton_mintemp::step(float, float)+0x5c>
   24034:	43 30       	cpi	r20, 0x03	; 3
   24036:	d1 f4       	brne	.+52     	; 0x2406c <alert_automaton_mintemp::step(float, float)+0x52>
	enum class States : uint8_t { Init = 0, TempAboveMintemp, ShowPleaseRestart, ShowMintemp };
	States state = States::Init;
	uint8_t repeat = ALERT_AUTOMATON_SPEED_DIV;

	void substep(const char* next_msg, States next_state){
		if( repeat == 0 ){
   24038:	8b 81       	ldd	r24, Y+3	; 0x03
   2403a:	81 11       	cpse	r24, r1
   2403c:	25 c0       	rjmp	.+74     	; 0x24088 <alert_automaton_mintemp::step(float, float)+0x6e>
			state = next_state; // advance to the next state
   2403e:	82 e0       	ldi	r24, 0x02	; 2
   24040:	8a 83       	std	Y+2, r24	; 0x02
			lcd_setalertstatuspgm(next_msg, LCD_STATUS_CRITICAL);
   24042:	63 e0       	ldi	r22, 0x03	; 3
   24044:	83 ea       	ldi	r24, 0xA3	; 163
   24046:	9d e9       	ldi	r25, 0x9D	; 157
   24048:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
			repeat = ALERT_AUTOMATON_SPEED_DIV; // and prepare repeating for it too
   2404c:	85 e0       	ldi	r24, 0x05	; 5
		} else {
			--repeat;
   2404e:	8b 83       	std	Y+3, r24	; 0x03
   24050:	0d c0       	rjmp	.+26     	; 0x2406c <alert_automaton_mintemp::step(float, float)+0x52>
	//! @param mintemp minimal temperature including hysteresis to check current_temp against
	void step(float current_temp, float mintemp){
		static const char m1[] PROGMEM = "Please restart";
		switch(state){
		case States::Init: // initial state - check hysteresis
			if( current_temp > mintemp ){
   24052:	a9 01       	movw	r20, r18
   24054:	98 01       	movw	r18, r16
   24056:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2405a:	18 16       	cp	r1, r24
   2405c:	3c f4       	brge	.+14     	; 0x2406c <alert_automaton_mintemp::step(float, float)+0x52>
				lcd_setalertstatuspgm(m2, LCD_STATUS_CRITICAL);
   2405e:	63 e0       	ldi	r22, 0x03	; 3
   24060:	88 81       	ld	r24, Y
   24062:	99 81       	ldd	r25, Y+1	; 0x01
   24064:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
				state = States::TempAboveMintemp;
   24068:	81 e0       	ldi	r24, 0x01	; 1
   2406a:	8a 83       	std	Y+2, r24	; 0x02
			break;
		case States::ShowPleaseRestart: // displaying "Please restart"
			substep(m2, States::ShowMintemp);
			break;
		}
	}
   2406c:	df 91       	pop	r29
   2406e:	cf 91       	pop	r28
   24070:	1f 91       	pop	r17
   24072:	0f 91       	pop	r16
   24074:	08 95       	ret
	enum class States : uint8_t { Init = 0, TempAboveMintemp, ShowPleaseRestart, ShowMintemp };
	States state = States::Init;
	uint8_t repeat = ALERT_AUTOMATON_SPEED_DIV;

	void substep(const char* next_msg, States next_state){
		if( repeat == 0 ){
   24076:	8b 81       	ldd	r24, Y+3	; 0x03
   24078:	81 11       	cpse	r24, r1
   2407a:	06 c0       	rjmp	.+12     	; 0x24088 <alert_automaton_mintemp::step(float, float)+0x6e>
		case States::TempAboveMintemp: // the temperature has risen above the hysteresis check
		case States::ShowMintemp: // displaying "MINTEMP fixed"
			substep(m1, States::ShowPleaseRestart);
			break;
		case States::ShowPleaseRestart: // displaying "Please restart"
			substep(m2, States::ShowMintemp);
   2407c:	88 81       	ld	r24, Y
   2407e:	99 81       	ldd	r25, Y+1	; 0x01
	States state = States::Init;
	uint8_t repeat = ALERT_AUTOMATON_SPEED_DIV;

	void substep(const char* next_msg, States next_state){
		if( repeat == 0 ){
			state = next_state; // advance to the next state
   24080:	23 e0       	ldi	r18, 0x03	; 3
   24082:	2a 83       	std	Y+2, r18	; 0x02
			lcd_setalertstatuspgm(next_msg, LCD_STATUS_CRITICAL);
   24084:	63 e0       	ldi	r22, 0x03	; 3
   24086:	e0 cf       	rjmp	.-64     	; 0x24048 <alert_automaton_mintemp::step(float, float)+0x2e>
			repeat = ALERT_AUTOMATON_SPEED_DIV; // and prepare repeating for it too
		} else {
			--repeat;
   24088:	81 50       	subi	r24, 0x01	; 1
   2408a:	e1 cf       	rjmp	.-62     	; 0x2404e <alert_automaton_mintemp::step(float, float)+0x34>

0002408c <temp_runaway_stop(bool, bool)>:

	}
}

static void temp_runaway_stop(bool isPreheat, bool isBed)
{
   2408c:	cf 93       	push	r28
    if(IsStopped() == false) {
   2408e:	90 91 11 05 	lds	r25, 0x0511	; 0x800511 <Stopped>
   24092:	91 11       	cpse	r25, r1
   24094:	18 c0       	rjmp	.+48     	; 0x240c6 <temp_runaway_stop(bool, bool)+0x3a>
   24096:	c6 2f       	mov	r28, r22
        if (isPreheat) {
   24098:	88 23       	and	r24, r24
   2409a:	c9 f0       	breq	.+50     	; 0x240ce <temp_runaway_stop(bool, bool)+0x42>
            lcd_setalertstatuspgm(isBed? PSTR("BED PREHEAT ERROR") : PSTR("PREHEAT ERROR"), LCD_STATUS_CRITICAL);
   2409c:	87 e4       	ldi	r24, 0x47	; 71
   2409e:	9d e9       	ldi	r25, 0x9D	; 157
   240a0:	66 23       	and	r22, r22
   240a2:	11 f0       	breq	.+4      	; 0x240a8 <temp_runaway_stop(bool, bool)+0x1c>
   240a4:	85 e5       	ldi	r24, 0x55	; 85
   240a6:	9d e9       	ldi	r25, 0x9D	; 157
   240a8:	63 e0       	ldi	r22, 0x03	; 3
   240aa:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
            SERIAL_ERROR_START;
   240ae:	88 ea       	ldi	r24, 0xA8	; 168
   240b0:	9a ea       	ldi	r25, 0xAA	; 170
   240b2:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            if (isBed) {
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HEATBED)");
   240b6:	84 e2       	ldi	r24, 0x24	; 36
   240b8:	9d e9       	ldi	r25, 0x9D	; 157
{
    if(IsStopped() == false) {
        if (isPreheat) {
            lcd_setalertstatuspgm(isBed? PSTR("BED PREHEAT ERROR") : PSTR("PREHEAT ERROR"), LCD_STATUS_CRITICAL);
            SERIAL_ERROR_START;
            if (isBed) {
   240ba:	c1 11       	cpse	r28, r1
   240bc:	02 c0       	rjmp	.+4      	; 0x240c2 <temp_runaway_stop(bool, bool)+0x36>
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HEATBED)");
            } else {
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HOTEND)");
   240be:	82 e0       	ldi	r24, 0x02	; 2
   240c0:	9d e9       	ldi	r25, 0x9D	; 157
            lcd_setalertstatuspgm(isBed? PSTR("BED THERMAL RUNAWAY") : PSTR("THERMAL RUNAWAY"), LCD_STATUS_CRITICAL);
            SERIAL_ERROR_START;
            if (isBed) {
                SERIAL_ERRORLNPGM(" HEATBED THERMAL RUNAWAY");
            } else {
                SERIAL_ERRORLNPGM(" HOTEND THERMAL RUNAWAY");
   240c2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
            }
        }
        prusa_statistics(0);
        prusa_statistics(isPreheat? 91 : 90);
    }
    ThermalStop();
   240c6:	80 e0       	ldi	r24, 0x00	; 0
}
   240c8:	cf 91       	pop	r28
            }
        }
        prusa_statistics(0);
        prusa_statistics(isPreheat? 91 : 90);
    }
    ThermalStop();
   240ca:	0c 94 33 79 	jmp	0xf266	; 0xf266 <ThermalStop(bool)>
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HEATBED)");
            } else {
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HOTEND)");
            }
        } else {
            lcd_setalertstatuspgm(isBed? PSTR("BED THERMAL RUNAWAY") : PSTR("THERMAL RUNAWAY"), LCD_STATUS_CRITICAL);
   240ce:	8e ed       	ldi	r24, 0xDE	; 222
   240d0:	9c e9       	ldi	r25, 0x9C	; 156
   240d2:	66 23       	and	r22, r22
   240d4:	11 f0       	breq	.+4      	; 0x240da <temp_runaway_stop(bool, bool)+0x4e>
   240d6:	8e ee       	ldi	r24, 0xEE	; 238
   240d8:	9c e9       	ldi	r25, 0x9C	; 156
   240da:	63 e0       	ldi	r22, 0x03	; 3
   240dc:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
            SERIAL_ERROR_START;
   240e0:	88 ea       	ldi	r24, 0xA8	; 168
   240e2:	9a ea       	ldi	r25, 0xAA	; 170
   240e4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            if (isBed) {
                SERIAL_ERRORLNPGM(" HEATBED THERMAL RUNAWAY");
   240e8:	85 ec       	ldi	r24, 0xC5	; 197
   240ea:	9c e9       	ldi	r25, 0x9C	; 156
                SERIAL_ERRORLNPGM(" THERMAL RUNAWAY (PREHEAT HOTEND)");
            }
        } else {
            lcd_setalertstatuspgm(isBed? PSTR("BED THERMAL RUNAWAY") : PSTR("THERMAL RUNAWAY"), LCD_STATUS_CRITICAL);
            SERIAL_ERROR_START;
            if (isBed) {
   240ec:	c1 11       	cpse	r28, r1
   240ee:	e9 cf       	rjmp	.-46     	; 0x240c2 <temp_runaway_stop(bool, bool)+0x36>
                SERIAL_ERRORLNPGM(" HEATBED THERMAL RUNAWAY");
            } else {
                SERIAL_ERRORLNPGM(" HOTEND THERMAL RUNAWAY");
   240f0:	8d ea       	ldi	r24, 0xAD	; 173
   240f2:	9c e9       	ldi	r25, 0x9C	; 156
   240f4:	e6 cf       	rjmp	.-52     	; 0x240c2 <temp_runaway_stop(bool, bool)+0x36>

000240f6 <Sound_DoSound_Prompt()>:

static void Sound_DoSound_Prompt(void)
{
    backlight_wake(2);
   240f6:	82 e0       	ldi	r24, 0x02	; 2
   240f8:	0e 94 fc 89 	call	0x113f8	; 0x113f8 <backlight_wake(unsigned char)>
WRITE(BEEPER,HIGH);
   240fc:	9f b7       	in	r25, 0x3f	; 63
   240fe:	f8 94       	cli
   24100:	e2 e0       	ldi	r30, 0x02	; 2
   24102:	f1 e0       	ldi	r31, 0x01	; 1
   24104:	80 81       	ld	r24, Z
   24106:	84 60       	ori	r24, 0x04	; 4
   24108:	80 83       	st	Z, r24
   2410a:	9f bf       	out	0x3f, r25	; 63
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   2410c:	2f ef       	ldi	r18, 0xFF	; 255
   2410e:	89 e6       	ldi	r24, 0x69	; 105
   24110:	98 e1       	ldi	r25, 0x18	; 24
   24112:	21 50       	subi	r18, 0x01	; 1
   24114:	80 40       	sbci	r24, 0x00	; 0
   24116:	90 40       	sbci	r25, 0x00	; 0
   24118:	e1 f7       	brne	.-8      	; 0x24112 <Sound_DoSound_Prompt()+0x1c>
   2411a:	00 c0       	rjmp	.+0      	; 0x2411c <Sound_DoSound_Prompt()+0x26>
   2411c:	00 00       	nop
_delay_ms(500);
WRITE(BEEPER,LOW);
   2411e:	9f b7       	in	r25, 0x3f	; 63
   24120:	f8 94       	cli
   24122:	80 81       	ld	r24, Z
   24124:	8b 7f       	andi	r24, 0xFB	; 251
   24126:	80 83       	st	Z, r24
   24128:	9f bf       	out	0x3f, r25	; 63
}
   2412a:	08 95       	ret

0002412c <lcd_print_state(unsigned char) [clone .lto_priv.440]>:
}
#endif // not defined TMC2130

static void lcd_print_state(uint8_t state)
{
	switch (state) {
   2412c:	81 30       	cpi	r24, 0x01	; 1
   2412e:	21 f4       	brne	.+8      	; 0x24138 <lcd_print_state(unsigned char) [clone .lto_priv.440]+0xc>
		case STATE_ON:
			lcd_puts_P(_N("  1"));
   24130:	8a e4       	ldi	r24, 0x4A	; 74
   24132:	9f e6       	ldi	r25, 0x6F	; 111
		break;
		case STATE_OFF:
			lcd_puts_P(_N("  0"));
   24134:	0c 94 52 6e 	jmp	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   24138:	86 e4       	ldi	r24, 0x46	; 70
   2413a:	9f e6       	ldi	r25, 0x6F	; 111
   2413c:	fb cf       	rjmp	.-10     	; 0x24134 <lcd_print_state(unsigned char) [clone .lto_priv.440]+0x8>

0002413e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)>:
//! @param first_choice text caption of first possible choice
//! @param second_choice text caption of second possible choice
//! @param second_col column on LCD where second choice is rendered.
//! @param third_choice text caption of third, optional, choice.
void lcd_show_choices_prompt_P(uint8_t selected, const char *first_choice, const char *second_choice, uint8_t second_col, const char *third_choice)
{
   2413e:	cf 92       	push	r12
   24140:	df 92       	push	r13
   24142:	ef 92       	push	r14
   24144:	ff 92       	push	r15
   24146:	0f 93       	push	r16
   24148:	1f 93       	push	r17
   2414a:	cf 93       	push	r28
   2414c:	df 93       	push	r29
   2414e:	d8 2f       	mov	r29, r24
   24150:	6b 01       	movw	r12, r22
   24152:	7a 01       	movw	r14, r20
   24154:	c2 2f       	mov	r28, r18
    lcd_putc_at(0, 3, selected == LCD_LEFT_BUTTON_CHOICE ? '>': ' ');
   24156:	40 e2       	ldi	r20, 0x20	; 32
   24158:	81 11       	cpse	r24, r1
   2415a:	01 c0       	rjmp	.+2      	; 0x2415e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x20>
   2415c:	4e e3       	ldi	r20, 0x3E	; 62
   2415e:	63 e0       	ldi	r22, 0x03	; 3
   24160:	80 e0       	ldi	r24, 0x00	; 0
   24162:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_puts_P(first_choice);
   24166:	c6 01       	movw	r24, r12
   24168:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    lcd_putc_at(second_col, 3, selected == LCD_MIDDLE_BUTTON_CHOICE ? '>': ' ');
   2416c:	40 e2       	ldi	r20, 0x20	; 32
   2416e:	d1 30       	cpi	r29, 0x01	; 1
   24170:	09 f4       	brne	.+2      	; 0x24174 <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x36>
   24172:	4e e3       	ldi	r20, 0x3E	; 62
   24174:	63 e0       	ldi	r22, 0x03	; 3
   24176:	8c 2f       	mov	r24, r28
   24178:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_puts_P(second_choice);
   2417c:	c7 01       	movw	r24, r14
   2417e:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    if (third_choice) {
   24182:	01 15       	cp	r16, r1
   24184:	11 05       	cpc	r17, r1
   24186:	19 f1       	breq	.+70     	; 0x241ce <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x90>
   24188:	c8 01       	movw	r24, r16
   2418a:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
   2418e:	d8 2e       	mov	r13, r24
   24190:	c7 01       	movw	r24, r14
   24192:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
        ////get size of third_choice, offset to the left. Make sure it doesn't overlap second_choice.
        size_t third_choice_len = strlen_P(third_choice);
        uint8_t second_col_end = second_col + strlen_P(second_choice) + 2;
   24196:	ce 5f       	subi	r28, 0xFE	; 254
        uint8_t third_col;
        if (uint8_t pos = 19 - third_choice_len; pos > second_col_end) {third_col = pos;} else {third_col = second_col_end;}
   24198:	93 e1       	ldi	r25, 0x13	; 19
   2419a:	9d 19       	sub	r25, r13
   2419c:	8c 0f       	add	r24, r28
   2419e:	89 17       	cp	r24, r25
   241a0:	08 f4       	brcc	.+2      	; 0x241a4 <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x66>
   241a2:	89 2f       	mov	r24, r25
   241a4:	83 31       	cpi	r24, 0x13	; 19
   241a6:	08 f0       	brcs	.+2      	; 0x241aa <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x6c>
   241a8:	82 e1       	ldi	r24, 0x12	; 18
        if (third_col > 18) {third_col = 18;} //backwards compatability - make sure at least one character of the third selection is shown
        lcd_putc_at(third_col, 3, selected == LCD_RIGHT_BUTTON_CHOICE ? '>': ' ');
   241aa:	40 e2       	ldi	r20, 0x20	; 32
   241ac:	d2 30       	cpi	r29, 0x02	; 2
   241ae:	09 f4       	brne	.+2      	; 0x241b2 <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)+0x74>
   241b0:	4e e3       	ldi	r20, 0x3E	; 62
   241b2:	63 e0       	ldi	r22, 0x03	; 3
   241b4:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
        lcd_puts_P(third_choice);
   241b8:	c8 01       	movw	r24, r16
    }
}
   241ba:	df 91       	pop	r29
   241bc:	cf 91       	pop	r28
   241be:	1f 91       	pop	r17
   241c0:	0f 91       	pop	r16
   241c2:	ff 90       	pop	r15
   241c4:	ef 90       	pop	r14
   241c6:	df 90       	pop	r13
   241c8:	cf 90       	pop	r12
        uint8_t second_col_end = second_col + strlen_P(second_choice) + 2;
        uint8_t third_col;
        if (uint8_t pos = 19 - third_choice_len; pos > second_col_end) {third_col = pos;} else {third_col = second_col_end;}
        if (third_col > 18) {third_col = 18;} //backwards compatability - make sure at least one character of the third selection is shown
        lcd_putc_at(third_col, 3, selected == LCD_RIGHT_BUTTON_CHOICE ? '>': ' ');
        lcd_puts_P(third_choice);
   241ca:	0c 94 52 6e 	jmp	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    }
}
   241ce:	df 91       	pop	r29
   241d0:	cf 91       	pop	r28
   241d2:	1f 91       	pop	r17
   241d4:	0f 91       	pop	r16
   241d6:	ff 90       	pop	r15
   241d8:	ef 90       	pop	r14
   241da:	df 90       	pop	r13
   241dc:	cf 90       	pop	r12
   241de:	08 95       	ret

000241e0 <lcd_display_message_fullscreen_P(char const*)>:

    return multi_screen ? msgend : NULL;
}

const char* lcd_display_message_fullscreen_P(const char *msg)
{
   241e0:	cf 93       	push	r28
   241e2:	df 93       	push	r29
   241e4:	ec 01       	movw	r28, r24
    // Disable update of the screen by the usual lcd_update(0) routine.
    lcd_update_enable(false);
   241e6:	80 e0       	ldi	r24, 0x00	; 0
   241e8:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
    lcd_clear();
   241ec:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    return lcd_display_message_fullscreen_nonBlocking_P(msg);
   241f0:	ce 01       	movw	r24, r28
}
   241f2:	df 91       	pop	r29
   241f4:	cf 91       	pop	r28
const char* lcd_display_message_fullscreen_P(const char *msg)
{
    // Disable update of the screen by the usual lcd_update(0) routine.
    lcd_update_enable(false);
    lcd_clear();
    return lcd_display_message_fullscreen_nonBlocking_P(msg);
   241f6:	0d 94 ba 15 	jmp	0x22b74	; 0x22b74 <lcd_display_message_fullscreen_nonBlocking_P(char const*)>

000241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>:
 *
 * This function is blocking.
 * @param msg message to be displayed from PROGMEM
 */
void lcd_show_fullscreen_message_and_wait_P(const char *msg)
{
   241fa:	cf 92       	push	r12
   241fc:	df 92       	push	r13
   241fe:	ef 92       	push	r14
   24200:	ff 92       	push	r15
   24202:	0f 93       	push	r16
   24204:	1f 93       	push	r17
   24206:	cf 93       	push	r28
   24208:	df 93       	push	r29
   2420a:	d8 2e       	mov	r13, r24
   2420c:	c9 2e       	mov	r12, r25
//! Do not call lcd_update_enable() to prevent calling lcd_update() in sensitive code.
//! in certain scenarios it will cause recursion e.g. in the menus.
class LcdUpdateDisabler
{
public:
    LcdUpdateDisabler(): m_updateEnabled(lcd_update_enabled)
   2420e:	01 e0       	ldi	r16, 0x01	; 1
   24210:	80 91 6e 02 	lds	r24, 0x026E	; 0x80026e <lcd_update_enabled>
   24214:	81 11       	cpse	r24, r1
   24216:	01 c0       	rjmp	.+2      	; 0x2421a <lcd_show_fullscreen_message_and_wait_P(char const*)+0x20>
   24218:	00 e0       	ldi	r16, 0x00	; 0
    {
        lcd_update_enabled = false;
   2421a:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
    LcdUpdateDisabler lcdUpdateDisabler;
    const char *msg_next = lcd_display_message_fullscreen_P(msg);
   2421e:	8d 2d       	mov	r24, r13
   24220:	9c 2d       	mov	r25, r12
   24222:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
   24226:	7c 01       	movw	r14, r24
    bool multi_screen = msg_next != NULL;
	lcd_consume_click();
   24228:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
	KEEPALIVE_STATE(PAUSED_FOR_USER);
   2422c:	84 e0       	ldi	r24, 0x04	; 4
   2422e:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
 * @param msg message to be displayed from PROGMEM
 */
void lcd_show_fullscreen_message_and_wait_P(const char *msg)
{
    LcdUpdateDisabler lcdUpdateDisabler;
    const char *msg_next = lcd_display_message_fullscreen_P(msg);
   24232:	e7 01       	movw	r28, r14
    bool multi_screen = msg_next != NULL;
	lcd_consume_click();
	KEEPALIVE_STATE(PAUSED_FOR_USER);
	// Until confirmed by a button click.
	for (;;) {
		if (msg_next == NULL) {
   24234:	20 97       	sbiw	r28, 0x00	; 0
   24236:	29 f4       	brne	.+10     	; 0x24242 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x48>
			// Display the confirm char.
			lcd_putc_at(19, 3, LCD_STR_CONFIRM[0]);
   24238:	49 e8       	ldi	r20, 0x89	; 137
   2423a:	63 e0       	ldi	r22, 0x03	; 3
   2423c:	83 e1       	ldi	r24, 0x13	; 19
   2423e:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
 * @param msg message to be displayed from PROGMEM
 */
void lcd_show_fullscreen_message_and_wait_P(const char *msg)
{
    LcdUpdateDisabler lcdUpdateDisabler;
    const char *msg_next = lcd_display_message_fullscreen_P(msg);
   24242:	14 e6       	ldi	r17, 0x64	; 100
			// Display the confirm char.
			lcd_putc_at(19, 3, LCD_STR_CONFIRM[0]);
		}
        // Wait for 5 seconds before displaying the next text.
        for (uint8_t i = 0; i < 100; ++ i) {
            delay_keep_alive(50);
   24244:	82 e3       	ldi	r24, 0x32	; 50
   24246:	90 e0       	ldi	r25, 0x00	; 0
   24248:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
            if (lcd_clicked()) {
   2424c:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   24250:	88 23       	and	r24, r24
   24252:	81 f0       	breq	.+32     	; 0x24274 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x7a>
				if (msg_next == NULL) {
   24254:	20 97       	sbiw	r28, 0x00	; 0
   24256:	81 f4       	brne	.+32     	; 0x24278 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x7e>
					KEEPALIVE_STATE(IN_HANDLER);
   24258:	82 e0       	ldi	r24, 0x02	; 2
   2425a:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    }
    ~LcdUpdateDisabler()
    {
        lcd_update_enabled = m_updateEnabled;
   2425e:	00 93 6e 02 	sts	0x026E, r16	; 0x80026e <lcd_update_enabled>
            if (msg_next == NULL)
                msg_next = msg;
            msg_next = lcd_display_message_fullscreen_P(msg_next);
        }
    }
}
   24262:	df 91       	pop	r29
   24264:	cf 91       	pop	r28
   24266:	1f 91       	pop	r17
   24268:	0f 91       	pop	r16
   2426a:	ff 90       	pop	r15
   2426c:	ef 90       	pop	r14
   2426e:	df 90       	pop	r13
   24270:	cf 90       	pop	r12
   24272:	08 95       	ret
   24274:	11 50       	subi	r17, 0x01	; 1
		if (msg_next == NULL) {
			// Display the confirm char.
			lcd_putc_at(19, 3, LCD_STR_CONFIRM[0]);
		}
        // Wait for 5 seconds before displaying the next text.
        for (uint8_t i = 0; i < 100; ++ i) {
   24276:	31 f7       	brne	.-52     	; 0x24244 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x4a>
				else {
					break;
				}
            }
        }
        if (multi_screen) {
   24278:	e1 14       	cp	r14, r1
   2427a:	f1 04       	cpc	r15, r1
   2427c:	d9 f2       	breq	.-74     	; 0x24234 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x3a>
            if (msg_next == NULL)
   2427e:	20 97       	sbiw	r28, 0x00	; 0
   24280:	11 f4       	brne	.+4      	; 0x24286 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x8c>
                msg_next = msg;
   24282:	cd 2d       	mov	r28, r13
   24284:	dc 2d       	mov	r29, r12
            msg_next = lcd_display_message_fullscreen_P(msg_next);
   24286:	ce 01       	movw	r24, r28
   24288:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
   2428c:	ec 01       	movw	r28, r24
   2428e:	d2 cf       	rjmp	.-92     	; 0x24234 <lcd_show_fullscreen_message_and_wait_P(char const*)+0x3a>

00024290 <lcd_temp_cal_show_result(bool)>:
            lcd_show_fullscreen_message_and_wait_P(msg);
        }
    }
}

void lcd_temp_cal_show_result(bool result) {
   24290:	cf 93       	push	r28
   24292:	c8 2f       	mov	r28, r24

	custom_message_type = CustomMsg::Status;
   24294:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
	disable_x();
   24298:	17 9a       	sbi	0x02, 7	; 2
   2429a:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
	disable_y();
   2429e:	16 9a       	sbi	0x02, 6	; 2
   242a0:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
	disable_z();
	disable_e0();
   242a4:	14 9a       	sbi	0x02, 4	; 2
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   242a6:	10 92 73 06 	sts	0x0673, r1	; 0x800673 <target_temperature_bed+0x1>
   242aa:	10 92 72 06 	sts	0x0672, r1	; 0x800672 <target_temperature_bed>
   242ae:	68 2f       	mov	r22, r24
   242b0:	86 ea       	ldi	r24, 0xA6	; 166
   242b2:	9f e0       	ldi	r25, 0x0F	; 15
   242b4:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   242b8:	6c 2f       	mov	r22, r28
   242ba:	8f ea       	ldi	r24, 0xAF	; 175
   242bc:	9f e0       	ldi	r25, 0x0F	; 15
   242be:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

	// Store boolean result
	eeprom_update_byte_notify((uint8_t*)EEPROM_CALIBRATION_STATUS_PINDA, result);
	eeprom_update_byte_notify((uint8_t*)EEPROM_TEMP_CAL_ACTIVE, result);

	if (result) {
   242c2:	cc 23       	and	r28, r28
   242c4:	89 f0       	breq	.+34     	; 0x242e8 <lcd_temp_cal_show_result(bool)+0x58>
		SERIAL_ECHOLNPGM("PINDA calibration done. Continue with pressing the knob.");
   242c6:	88 eb       	ldi	r24, 0xB8	; 184
   242c8:	92 ea       	ldi	r25, 0xA2	; 162
   242ca:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_PINDA_CALIBRATION_DONE));
   242ce:	83 e1       	ldi	r24, 0x13	; 19
   242d0:	91 e5       	ldi	r25, 0x51	; 81
	} else {
		SERIAL_ECHOLNPGM("PINDA calibration failed. Continue with pressing the knob.");
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_PINDA_CAL_FAILED));
   242d2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   242d6:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
	}
	lcd_update_enable(true);
   242da:	81 e0       	ldi	r24, 0x01	; 1
   242dc:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	lcd_update(2);
   242e0:	82 e0       	ldi	r24, 0x02	; 2
}
   242e2:	cf 91       	pop	r28
	} else {
		SERIAL_ECHOLNPGM("PINDA calibration failed. Continue with pressing the knob.");
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_PINDA_CAL_FAILED));
	}
	lcd_update_enable(true);
	lcd_update(2);
   242e4:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

	if (result) {
		SERIAL_ECHOLNPGM("PINDA calibration done. Continue with pressing the knob.");
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_PINDA_CALIBRATION_DONE));
	} else {
		SERIAL_ECHOLNPGM("PINDA calibration failed. Continue with pressing the knob.");
   242e8:	8d e7       	ldi	r24, 0x7D	; 125
   242ea:	92 ea       	ldi	r25, 0xA2	; 162
   242ec:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_PINDA_CAL_FAILED));
   242f0:	88 ef       	ldi	r24, 0xF8	; 248
   242f2:	90 e5       	ldi	r25, 0x50	; 80
   242f4:	ee cf       	rjmp	.-36     	; 0x242d2 <lcd_temp_cal_show_result(bool)+0x42>

000242f6 <lcd_loading_progress_bar(unsigned int) [clone .lto_priv.560]>:
  lcd_puts_at_P(0, 2, _T(MSG_CHANGE_SUCCESS));


}

static void lcd_loading_progress_bar(uint16_t loading_time_ms) {
   242f6:	1f 93       	push	r17
   242f8:	cf 93       	push	r28
   242fa:	df 93       	push	r29

	for (uint_least8_t i = 0; i < LCD_WIDTH; i++) {
		lcd_putc_at(i, 3, '.');
		//loading_time_ms/20 delay
		for (uint_least8_t j = 0; j < 5; j++) {
			delay_keep_alive(loading_time_ms / 100);
   242fc:	64 e6       	ldi	r22, 0x64	; 100
   242fe:	70 e0       	ldi	r23, 0x00	; 0
   24300:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   24304:	eb 01       	movw	r28, r22

}

static void lcd_loading_progress_bar(uint16_t loading_time_ms) {

	for (uint_least8_t i = 0; i < LCD_WIDTH; i++) {
   24306:	10 e0       	ldi	r17, 0x00	; 0
		lcd_putc_at(i, 3, '.');
   24308:	4e e2       	ldi	r20, 0x2E	; 46
   2430a:	63 e0       	ldi	r22, 0x03	; 3
   2430c:	81 2f       	mov	r24, r17
   2430e:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
		//loading_time_ms/20 delay
		for (uint_least8_t j = 0; j < 5; j++) {
			delay_keep_alive(loading_time_ms / 100);
   24312:	ce 01       	movw	r24, r28
   24314:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   24318:	ce 01       	movw	r24, r28
   2431a:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   2431e:	ce 01       	movw	r24, r28
   24320:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   24324:	ce 01       	movw	r24, r28
   24326:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   2432a:	ce 01       	movw	r24, r28
   2432c:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>

}

static void lcd_loading_progress_bar(uint16_t loading_time_ms) {

	for (uint_least8_t i = 0; i < LCD_WIDTH; i++) {
   24330:	1f 5f       	subi	r17, 0xFF	; 255
   24332:	14 31       	cpi	r17, 0x14	; 20
   24334:	49 f7       	brne	.-46     	; 0x24308 <lcd_loading_progress_bar(unsigned int) [clone .lto_priv.560]+0x12>
		//loading_time_ms/20 delay
		for (uint_least8_t j = 0; j < 5; j++) {
			delay_keep_alive(loading_time_ms / 100);
		}
	}
}
   24336:	df 91       	pop	r29
   24338:	cf 91       	pop	r28
   2433a:	1f 91       	pop	r17
   2433c:	08 95       	ret

0002433e <clearFilamentAction() [clone .lto_priv.439]>:
        }
    }
}

static void setFilamentAction(FilamentAction action) {
    eFilamentAction = action;
   2433e:	10 92 a7 03 	sts	0x03A7, r1	; 0x8003a7 <eFilamentAction>

static void __attribute__((noinline)) clearFilamentAction()
{
    // filament action has been cancelled or completed
    setFilamentAction(FilamentAction::None);
}
   24342:	08 95       	ret

00024344 <lcd_generic_preheat_menu()>:
    bFilamentPreheatState = false;
    mFilamentItem(PVB_PREHEAT_HOTEND_TEMP, PVB_PREHEAT_HPB_TEMP);
}

void lcd_generic_preheat_menu()
{
   24344:	cf 93       	push	r28
    MENU_BEGIN();
   24346:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   2434a:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   2434e:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   24352:	84 30       	cpi	r24, 0x04	; 4
   24354:	08 f0       	brcs	.+2      	; 0x24358 <lcd_generic_preheat_menu()+0x14>
   24356:	a1 c0       	rjmp	.+322    	; 0x2449a <lcd_generic_preheat_menu()+0x156>
   24358:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
   2435c:	8f e5       	ldi	r24, 0x5F	; 95
   2435e:	9f e0       	ldi	r25, 0x0F	; 15
   24360:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   24364:	81 11       	cpse	r24, r1
   24366:	10 c0       	rjmp	.+32     	; 0x24388 <lcd_generic_preheat_menu()+0x44>
    {
        ON_MENU_LEAVE(
   24368:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   2436c:	81 11       	cpse	r24, r1
   2436e:	0f 94 9f 21 	call	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
            clearFilamentAction();
        );
        MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
   24372:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   24376:	8a 30       	cpi	r24, 0x0A	; 10
   24378:	09 f4       	brne	.+2      	; 0x2437c <lcd_generic_preheat_menu()+0x38>
   2437a:	8c c0       	rjmp	.+280    	; 0x24494 <lcd_generic_preheat_menu()+0x150>
   2437c:	8b e3       	ldi	r24, 0x3B	; 59
   2437e:	98 e4       	ldi	r25, 0x48	; 72
   24380:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   24384:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
        MENU_ITEM_FUNCTION_P(PSTR("farm   -  " STRINGIFY(FARM_PREHEAT_HOTEND_TEMP) "/" STRINGIFY(FARM_PREHEAT_HPB_TEMP)), mFilamentItem_farm);
        MENU_ITEM_FUNCTION_P(PSTR("nozzle -  " STRINGIFY(FARM_PREHEAT_HOTEND_TEMP) "/0"), mFilamentItem_farm_nozzle);
    }
    else
    {
        bool bPreheatOnlyNozzle = shouldPreheatOnlyNozzle();
   24388:	0f 94 40 17 	call	0x22e80	; 0x22e80 <shouldPreheatOnlyNozzle()>
   2438c:	c8 2f       	mov	r28, r24
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PLA  -  " STRINGIFY(PLA_PREHEAT_HOTEND_TEMP)) : PSTR("PLA  -  " STRINGIFY(PLA_PREHEAT_HOTEND_TEMP)  "/" STRINGIFY(PLA_PREHEAT_HPB_TEMP)) , mFilamentItem_PLA);
   2438e:	80 e2       	ldi	r24, 0x20	; 32
   24390:	92 ea       	ldi	r25, 0xA2	; 162
   24392:	cc 23       	and	r28, r28
   24394:	11 f0       	breq	.+4      	; 0x2439a <lcd_generic_preheat_menu()+0x56>
   24396:	8f e2       	ldi	r24, 0x2F	; 47
   24398:	92 ea       	ldi	r25, 0xA2	; 162
   2439a:	64 ec       	ldi	r22, 0xC4	; 196
   2439c:	79 e3       	ldi	r23, 0x39	; 57
   2439e:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PET  -  " STRINGIFY(PET_PREHEAT_HOTEND_TEMP)) : PSTR("PET  -  " STRINGIFY(PET_PREHEAT_HOTEND_TEMP)  "/" STRINGIFY(PET_PREHEAT_HPB_TEMP)) , mFilamentItem_PET);
   243a2:	85 e0       	ldi	r24, 0x05	; 5
   243a4:	92 ea       	ldi	r25, 0xA2	; 162
   243a6:	cc 23       	and	r28, r28
   243a8:	11 f0       	breq	.+4      	; 0x243ae <lcd_generic_preheat_menu()+0x6a>
   243aa:	84 e1       	ldi	r24, 0x14	; 20
   243ac:	92 ea       	ldi	r25, 0xA2	; 162
   243ae:	64 ed       	ldi	r22, 0xD4	; 212
   243b0:	79 e3       	ldi	r23, 0x39	; 57
   243b2:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("ASA  -  " STRINGIFY(ASA_PREHEAT_HOTEND_TEMP)) : PSTR("ASA  -  " STRINGIFY(ASA_PREHEAT_HOTEND_TEMP)  "/" STRINGIFY(ASA_PREHEAT_HPB_TEMP)) , mFilamentItem_ASA);
   243b6:	89 ee       	ldi	r24, 0xE9	; 233
   243b8:	91 ea       	ldi	r25, 0xA1	; 161
   243ba:	cc 23       	and	r28, r28
   243bc:	11 f0       	breq	.+4      	; 0x243c2 <lcd_generic_preheat_menu()+0x7e>
   243be:	89 ef       	ldi	r24, 0xF9	; 249
   243c0:	91 ea       	ldi	r25, 0xA1	; 161
   243c2:	6e e4       	ldi	r22, 0x4E	; 78
   243c4:	7a e3       	ldi	r23, 0x3A	; 58
   243c6:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PC   -  " STRINGIFY(PC_PREHEAT_HOTEND_TEMP))  : PSTR("PC   -  " STRINGIFY(PC_PREHEAT_HOTEND_TEMP)   "/" STRINGIFY(PC_PREHEAT_HPB_TEMP))  , mFilamentItem_PC);
   243ca:	8d ec       	ldi	r24, 0xCD	; 205
   243cc:	91 ea       	ldi	r25, 0xA1	; 161
   243ce:	cc 23       	and	r28, r28
   243d0:	11 f0       	breq	.+4      	; 0x243d6 <lcd_generic_preheat_menu()+0x92>
   243d2:	8d ed       	ldi	r24, 0xDD	; 221
   243d4:	91 ea       	ldi	r25, 0xA1	; 161
   243d6:	6a e7       	ldi	r22, 0x7A	; 122
   243d8:	7a e3       	ldi	r23, 0x3A	; 58
   243da:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PVB  -  " STRINGIFY(PVB_PREHEAT_HOTEND_TEMP)) : PSTR("PVB  -  " STRINGIFY(PVB_PREHEAT_HOTEND_TEMP)  "/" STRINGIFY(PVB_PREHEAT_HPB_TEMP)) , mFilamentItem_PVB);
   243de:	82 eb       	ldi	r24, 0xB2	; 178
   243e0:	91 ea       	ldi	r25, 0xA1	; 161
   243e2:	cc 23       	and	r28, r28
   243e4:	11 f0       	breq	.+4      	; 0x243ea <lcd_generic_preheat_menu()+0xa6>
   243e6:	81 ec       	ldi	r24, 0xC1	; 193
   243e8:	91 ea       	ldi	r25, 0xA1	; 161
   243ea:	66 e3       	ldi	r22, 0x36	; 54
   243ec:	7a e3       	ldi	r23, 0x3A	; 58
   243ee:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PA   -  " STRINGIFY(PA_PREHEAT_HOTEND_TEMP))  : PSTR("PA   -  " STRINGIFY(PA_PREHEAT_HOTEND_TEMP)   "/" STRINGIFY(PA_PREHEAT_HPB_TEMP))  , mFilamentItem_PA);
   243f2:	87 e9       	ldi	r24, 0x97	; 151
   243f4:	91 ea       	ldi	r25, 0xA1	; 161
   243f6:	cc 23       	and	r28, r28
   243f8:	11 f0       	breq	.+4      	; 0x243fe <lcd_generic_preheat_menu()+0xba>
   243fa:	86 ea       	ldi	r24, 0xA6	; 166
   243fc:	91 ea       	ldi	r25, 0xA1	; 161
   243fe:	6e e3       	ldi	r22, 0x3E	; 62
   24400:	7a e3       	ldi	r23, 0x3A	; 58
   24402:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("ABS  -  " STRINGIFY(ABS_PREHEAT_HOTEND_TEMP)) : PSTR("ABS  -  " STRINGIFY(ABS_PREHEAT_HOTEND_TEMP)  "/" STRINGIFY(ABS_PREHEAT_HPB_TEMP)) , mFilamentItem_ABS);
   24406:	8b e7       	ldi	r24, 0x7B	; 123
   24408:	91 ea       	ldi	r25, 0xA1	; 161
   2440a:	cc 23       	and	r28, r28
   2440c:	11 f0       	breq	.+4      	; 0x24412 <lcd_generic_preheat_menu()+0xce>
   2440e:	8b e8       	ldi	r24, 0x8B	; 139
   24410:	91 ea       	ldi	r25, 0xA1	; 161
   24412:	68 eb       	ldi	r22, 0xB8	; 184
   24414:	79 e3       	ldi	r23, 0x39	; 57
   24416:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("HIPS -  " STRINGIFY(HIPS_PREHEAT_HOTEND_TEMP)): PSTR("HIPS -  " STRINGIFY(HIPS_PREHEAT_HOTEND_TEMP) "/" STRINGIFY(HIPS_PREHEAT_HPB_TEMP)), mFilamentItem_HIPS);
   2441a:	8f e5       	ldi	r24, 0x5F	; 95
   2441c:	91 ea       	ldi	r25, 0xA1	; 161
   2441e:	cc 23       	and	r28, r28
   24420:	11 f0       	breq	.+4      	; 0x24426 <lcd_generic_preheat_menu()+0xe2>
   24422:	8f e6       	ldi	r24, 0x6F	; 111
   24424:	91 ea       	ldi	r25, 0xA1	; 161
   24426:	68 ea       	ldi	r22, 0xA8	; 168
   24428:	79 e3       	ldi	r23, 0x39	; 57
   2442a:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PP   -  " STRINGIFY(PP_PREHEAT_HOTEND_TEMP))  : PSTR("PP   -  " STRINGIFY(PP_PREHEAT_HOTEND_TEMP)   "/" STRINGIFY(PP_PREHEAT_HPB_TEMP))  , mFilamentItem_PP);
   2442e:	83 e4       	ldi	r24, 0x43	; 67
   24430:	91 ea       	ldi	r25, 0xA1	; 161
   24432:	cc 23       	and	r28, r28
   24434:	11 f0       	breq	.+4      	; 0x2443a <lcd_generic_preheat_menu()+0xf6>
   24436:	83 e5       	ldi	r24, 0x53	; 83
   24438:	91 ea       	ldi	r25, 0xA1	; 161
   2443a:	6a ea       	ldi	r22, 0xAA	; 170
   2443c:	79 e3       	ldi	r23, 0x39	; 57
   2443e:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("FLEX -  " STRINGIFY(FLEX_PREHEAT_HOTEND_TEMP)): PSTR("FLEX -  " STRINGIFY(FLEX_PREHEAT_HOTEND_TEMP) "/" STRINGIFY(FLEX_PREHEAT_HPB_TEMP)), mFilamentItem_FLEX);
   24442:	88 e2       	ldi	r24, 0x28	; 40
   24444:	91 ea       	ldi	r25, 0xA1	; 161
   24446:	cc 23       	and	r28, r28
   24448:	11 f0       	breq	.+4      	; 0x2444e <lcd_generic_preheat_menu()+0x10a>
   2444a:	87 e3       	ldi	r24, 0x37	; 55
   2444c:	91 ea       	ldi	r25, 0xA1	; 161
   2444e:	6e e0       	ldi	r22, 0x0E	; 14
   24450:	79 e3       	ldi	r23, 0x39	; 57
   24452:	0f 94 53 d4 	call	0x3a8a6	; 0x3a8a6 <menu_item_submenu_P(char const*, void (*)())>
    }
    if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) && eFilamentAction == FilamentAction::Preheat) MENU_ITEM_FUNCTION_P(_T(MSG_COOLDOWN), lcd_cooldown);
   24456:	8f e5       	ldi	r24, 0x5F	; 95
   24458:	9f e0       	ldi	r25, 0x0F	; 15
   2445a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2445e:	81 11       	cpse	r24, r1
   24460:	0c c0       	rjmp	.+24     	; 0x2447a <lcd_generic_preheat_menu()+0x136>
   24462:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   24466:	89 30       	cpi	r24, 0x09	; 9
   24468:	41 f4       	brne	.+16     	; 0x2447a <lcd_generic_preheat_menu()+0x136>
   2446a:	82 e4       	ldi	r24, 0x42	; 66
   2446c:	9f e4       	ldi	r25, 0x4F	; 79
   2446e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   24472:	68 ef       	ldi	r22, 0xF8	; 248
   24474:	79 e3       	ldi	r23, 0x39	; 57
   24476:	0f 94 52 d1 	call	0x3a2a4	; 0x3a2a4 <menu_item_function_P(char const*, void (*)())>
    MENU_END();
   2447a:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
    mFilamentItem(PVB_PREHEAT_HOTEND_TEMP, PVB_PREHEAT_HPB_TEMP);
}

void lcd_generic_preheat_menu()
{
    MENU_BEGIN();
   2447e:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   24482:	8f 5f       	subi	r24, 0xFF	; 255
   24484:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   24488:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   2448c:	8f 5f       	subi	r24, 0xFF	; 255
   2448e:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   24492:	5d cf       	rjmp	.-326    	; 0x2434e <lcd_generic_preheat_menu()+0xa>
    if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
    {
        ON_MENU_LEAVE(
            clearFilamentAction();
        );
        MENU_ITEM_BACK_P(_T(eFilamentAction == FilamentAction::Lay1Cal ? MSG_BACK : MSG_MAIN));
   24494:	8f e4       	ldi	r24, 0x4F	; 79
   24496:	99 e4       	ldi	r25, 0x49	; 73
   24498:	73 cf       	rjmp	.-282    	; 0x24380 <lcd_generic_preheat_menu()+0x3c>
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("PP   -  " STRINGIFY(PP_PREHEAT_HOTEND_TEMP))  : PSTR("PP   -  " STRINGIFY(PP_PREHEAT_HOTEND_TEMP)   "/" STRINGIFY(PP_PREHEAT_HPB_TEMP))  , mFilamentItem_PP);
        MENU_ITEM_SUBMENU_P(bPreheatOnlyNozzle ? PSTR("FLEX -  " STRINGIFY(FLEX_PREHEAT_HOTEND_TEMP)): PSTR("FLEX -  " STRINGIFY(FLEX_PREHEAT_HOTEND_TEMP) "/" STRINGIFY(FLEX_PREHEAT_HPB_TEMP)), mFilamentItem_FLEX);
    }
    if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE) && eFilamentAction == FilamentAction::Preheat) MENU_ITEM_FUNCTION_P(_T(MSG_COOLDOWN), lcd_cooldown);
    MENU_END();
}
   2449a:	cf 91       	pop	r28
   2449c:	08 95       	ret

0002449e <lcd_preheat_menu() [clone .lto_priv.409]>:
#endif //RESUME_DEBUG

//! @brief Show Preheat Menu
static void lcd_preheat_menu()
{
    eFilamentAction = FilamentAction::Preheat;
   2449e:	89 e0       	ldi	r24, 0x09	; 9
   244a0:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
    lcd_generic_preheat_menu();
   244a4:	0d 94 a2 21 	jmp	0x24344	; 0x24344 <lcd_generic_preheat_menu()>

000244a8 <lcdui_print_extruder()>:
//              Filament [nr1.] was loaded, but [nr2.] is currently being loaded via tool change
// Scenario 6: "?>?"
//              This scenario should not be possible and indicates a bug in the firmware
uint8_t lcdui_print_extruder(void) {
    uint8_t chars = 1;
    lcd_space(1);
   244a8:	81 e0       	ldi	r24, 0x01	; 1
   244aa:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
    if (MMU2::mmu2.get_current_tool() == MMU2::mmu2.get_tool_change_tool()) {
   244ae:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
uint8_t __attribute__((noinline)) MMU2::get_current_tool() const {
    return extruder == MMU2_NO_TOOL ? (uint8_t)FILAMENT_UNKNOWN : extruder;
}

uint8_t MMU2::get_tool_change_tool() const {
    return tool_change_extruder == MMU2_NO_TOOL ? (uint8_t)FILAMENT_UNKNOWN : tool_change_extruder;
   244b2:	90 91 a2 13 	lds	r25, 0x13A2	; 0x8013a2 <MMU2::mmu2+0x57>
   244b6:	93 36       	cpi	r25, 0x63	; 99
   244b8:	09 f4       	brne	.+2      	; 0x244bc <lcdui_print_extruder()+0x14>
   244ba:	9f ef       	ldi	r25, 0xFF	; 255
   244bc:	89 13       	cpse	r24, r25
   244be:	0e c0       	rjmp	.+28     	; 0x244dc <lcdui_print_extruder()+0x34>
        lcd_putc('F');
   244c0:	86 e4       	ldi	r24, 0x46	; 70
   244c2:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
        lcd_putc(MMU2::mmu2.get_current_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_current_tool() + '1');
   244c6:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   244ca:	8f 3f       	cpi	r24, 0xFF	; 255
   244cc:	29 f0       	breq	.+10     	; 0x244d8 <lcdui_print_extruder()+0x30>
   244ce:	8f 5c       	subi	r24, 0xCF	; 207
   244d0:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   244d4:	83 e0       	ldi	r24, 0x03	; 3
   244d6:	08 95       	ret
   244d8:	8f e3       	ldi	r24, 0x3F	; 63
   244da:	fa cf       	rjmp	.-12     	; 0x244d0 <lcdui_print_extruder()+0x28>
        chars += 2;
    } else {
        lcd_putc(MMU2::mmu2.get_current_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_current_tool() + '1');
   244dc:	8f 3f       	cpi	r24, 0xFF	; 255
   244de:	89 f0       	breq	.+34     	; 0x24502 <lcdui_print_extruder()+0x5a>
   244e0:	8f 5c       	subi	r24, 0xCF	; 207
   244e2:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
        lcd_putc('>');
   244e6:	8e e3       	ldi	r24, 0x3E	; 62
   244e8:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   244ec:	80 91 a2 13 	lds	r24, 0x13A2	; 0x8013a2 <MMU2::mmu2+0x57>
   244f0:	83 36       	cpi	r24, 0x63	; 99
   244f2:	49 f0       	breq	.+18     	; 0x24506 <lcdui_print_extruder()+0x5e>
        lcd_putc(MMU2::mmu2.get_tool_change_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_tool_change_tool() + '1');
   244f4:	8f 3f       	cpi	r24, 0xFF	; 255
   244f6:	39 f0       	breq	.+14     	; 0x24506 <lcdui_print_extruder()+0x5e>
   244f8:	8f 5c       	subi	r24, 0xCF	; 207
   244fa:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
        chars += 3;
   244fe:	84 e0       	ldi	r24, 0x04	; 4
    }
    return chars;
}
   24500:	08 95       	ret
    if (MMU2::mmu2.get_current_tool() == MMU2::mmu2.get_tool_change_tool()) {
        lcd_putc('F');
        lcd_putc(MMU2::mmu2.get_current_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_current_tool() + '1');
        chars += 2;
    } else {
        lcd_putc(MMU2::mmu2.get_current_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_current_tool() + '1');
   24502:	8f e3       	ldi	r24, 0x3F	; 63
   24504:	ee cf       	rjmp	.-36     	; 0x244e2 <lcdui_print_extruder()+0x3a>
        lcd_putc('>');
        lcd_putc(MMU2::mmu2.get_tool_change_tool() == (uint8_t)MMU2::FILAMENT_UNKNOWN ? '?' : MMU2::mmu2.get_tool_change_tool() + '1');
   24506:	8f e3       	ldi	r24, 0x3F	; 63
   24508:	f8 cf       	rjmp	.-16     	; 0x244fa <lcdui_print_extruder()+0x52>

0002450a <lcdui_print_temp(char, int, int)>:
}

// Print temperature (nozzle/bed) (9 chars total)
void lcdui_print_temp(char type, int val_current, int val_target)
{
	int chars = lcd_printf_P(_N("%c%3d/%d" LCD_STR_DEGREE), type, val_current, val_target);
   2450a:	5f 93       	push	r21
   2450c:	4f 93       	push	r20
   2450e:	7f 93       	push	r23
   24510:	6f 93       	push	r22
   24512:	28 2f       	mov	r18, r24
   24514:	08 2e       	mov	r0, r24
   24516:	00 0c       	add	r0, r0
   24518:	33 0b       	sbc	r19, r19
   2451a:	3f 93       	push	r19
   2451c:	8f 93       	push	r24
   2451e:	80 e0       	ldi	r24, 0x00	; 0
   24520:	9e e6       	ldi	r25, 0x6E	; 110
   24522:	9f 93       	push	r25
   24524:	8f 93       	push	r24
   24526:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
	lcd_space(9 - chars);
   2452a:	2d b7       	in	r18, 0x3d	; 61
   2452c:	3e b7       	in	r19, 0x3e	; 62
   2452e:	28 5f       	subi	r18, 0xF8	; 248
   24530:	3f 4f       	sbci	r19, 0xFF	; 255
   24532:	0f b6       	in	r0, 0x3f	; 63
   24534:	f8 94       	cli
   24536:	3e bf       	out	0x3e, r19	; 62
   24538:	0f be       	out	0x3f, r0	; 63
   2453a:	2d bf       	out	0x3d, r18	; 61
   2453c:	99 e0       	ldi	r25, 0x09	; 9
   2453e:	98 1b       	sub	r25, r24
   24540:	89 2f       	mov	r24, r25
   24542:	0c 94 5d 6e 	jmp	0xdcba	; 0xdcba <lcd_space(unsigned char)>

00024546 <lcd_print_target_temps_first_line()>:
        default:
            return false;
    }
}

void lcd_print_target_temps_first_line() {
   24546:	cf 93       	push	r28
   24548:	df 93       	push	r29
    lcd_home();
   2454a:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
    lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
   2454e:	c0 91 b6 0d 	lds	r28, 0x0DB6	; 0x800db6 <target_temperature>
   24552:	d0 91 b7 0d 	lds	r29, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   24556:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   2455a:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   2455e:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   24562:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   24566:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2456a:	ae 01       	movw	r20, r28
   2456c:	82 e8       	ldi	r24, 0x82	; 130
   2456e:	0f 94 85 22 	call	0x2450a	; 0x2450a <lcdui_print_temp(char, int, int)>
    lcd_set_cursor(10, 0);
   24572:	60 e0       	ldi	r22, 0x00	; 0
   24574:	8a e0       	ldi	r24, 0x0A	; 10
   24576:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
};

FORCE_INLINE float degTargetBed() {
  return target_temperature_bed;
   2457a:	c0 91 72 06 	lds	r28, 0x0672	; 0x800672 <target_temperature_bed>
   2457e:	d0 91 73 06 	lds	r29, 0x0673	; 0x800673 <target_temperature_bed+0x1>
    int targetBedTemp = (int) degTargetBed();
    if (targetBedTemp) {
   24582:	20 97       	sbiw	r28, 0x00	; 0
   24584:	81 f0       	breq	.+32     	; 0x245a6 <lcd_print_target_temps_first_line()+0x60>
        lcdui_print_temp(LCD_STR_BEDTEMP[0], (int) degBed(), targetBedTemp);
   24586:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   2458a:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   2458e:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   24592:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   24596:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2459a:	ae 01       	movw	r20, r28
   2459c:	80 e8       	ldi	r24, 0x80	; 128
    } else {
        lcd_space(10);
    }
}
   2459e:	df 91       	pop	r29
   245a0:	cf 91       	pop	r28
    lcd_home();
    lcdui_print_temp(LCD_STR_THERMOMETER[0], (int) degHotend(0), (int) degTargetHotend(0));
    lcd_set_cursor(10, 0);
    int targetBedTemp = (int) degTargetBed();
    if (targetBedTemp) {
        lcdui_print_temp(LCD_STR_BEDTEMP[0], (int) degBed(), targetBedTemp);
   245a2:	0d 94 85 22 	jmp	0x2450a	; 0x2450a <lcdui_print_temp(char, int, int)>
    } else {
        lcd_space(10);
   245a6:	8a e0       	ldi	r24, 0x0A	; 10
    }
}
   245a8:	df 91       	pop	r29
   245aa:	cf 91       	pop	r28
    lcd_set_cursor(10, 0);
    int targetBedTemp = (int) degTargetBed();
    if (targetBedTemp) {
        lcdui_print_temp(LCD_STR_BEDTEMP[0], (int) degBed(), targetBedTemp);
    } else {
        lcd_space(10);
   245ac:	0c 94 5d 6e 	jmp	0xdcba	; 0xdcba <lcd_space(unsigned char)>

000245b0 <mFilamentPrompt()>:
   245b0:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    }
}

static void mFilamentPrompt() {
    lcd_timeoutToStatus.stop();
    lcd_print_target_temps_first_line();
   245b4:	0f 94 a3 22 	call	0x24546	; 0x24546 <lcd_print_target_temps_first_line()>
    lcd_puts_at_P(0,1, _T(MSG_PRESS_KNOB));
   245b8:	8b ed       	ldi	r24, 0xDB	; 219
   245ba:	9e e4       	ldi	r25, 0x4E	; 78
   245bc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   245c0:	ac 01       	movw	r20, r24
   245c2:	61 e0       	ldi	r22, 0x01	; 1
   245c4:	80 e0       	ldi	r24, 0x00	; 0
   245c6:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_set_cursor(0,2);
   245ca:	62 e0       	ldi	r22, 0x02	; 2
   245cc:	80 e0       	ldi	r24, 0x00	; 0
   245ce:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
    switch(eFilamentAction) {
   245d2:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   245d6:	83 30       	cpi	r24, 0x03	; 3
   245d8:	81 f1       	breq	.+96     	; 0x2463a <mFilamentPrompt()+0x8a>
   245da:	48 f4       	brcc	.+18     	; 0x245ee <mFilamentPrompt()+0x3e>
   245dc:	81 30       	cpi	r24, 0x01	; 1
   245de:	60 f0       	brcs	.+24     	; 0x245f8 <mFilamentPrompt()+0x48>
        case FilamentAction::Load:
        case FilamentAction::AutoLoad:
        case FilamentAction::MmuLoad:
        case FilamentAction::MmuLoadingTest:
            lcd_puts_P(_T(MSG_TO_LOAD_FIL));
   245e0:	88 ec       	ldi	r24, 0xC8	; 200
   245e2:	9e e4       	ldi	r25, 0x4E	; 78
            break;
        case FilamentAction::UnLoad:
        case FilamentAction::MmuUnLoad:
            lcd_puts_P(_T(MSG_TO_UNLOAD_FIL));
   245e4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   245e8:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
   245ec:	05 c0       	rjmp	.+10     	; 0x245f8 <mFilamentPrompt()+0x48>
static void mFilamentPrompt() {
    lcd_timeoutToStatus.stop();
    lcd_print_target_temps_first_line();
    lcd_puts_at_P(0,1, _T(MSG_PRESS_KNOB));
    lcd_set_cursor(0,2);
    switch(eFilamentAction) {
   245ee:	85 30       	cpi	r24, 0x05	; 5
   245f0:	21 f1       	breq	.+72     	; 0x2463a <mFilamentPrompt()+0x8a>
   245f2:	b0 f3       	brcs	.-20     	; 0x245e0 <mFilamentPrompt()+0x30>
   245f4:	88 30       	cpi	r24, 0x08	; 8
   245f6:	a1 f3       	breq	.-24     	; 0x245e0 <mFilamentPrompt()+0x30>
        case FilamentAction::Preheat:
        case FilamentAction::Lay1Cal:
            break;
    }

    if(lcd_clicked()
   245f8:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
#ifdef FILAMENT_SENSOR
/// @todo leptun - add this as a specific retest item
        || (((eFilamentAction == FilamentAction::Load) || (eFilamentAction == FilamentAction::AutoLoad)) && fsensor.getFilamentLoadEvent())
   245fc:	81 11       	cpse	r24, r1
   245fe:	09 c0       	rjmp	.+18     	; 0x24612 <mFilamentPrompt()+0x62>
   24600:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   24604:	81 50       	subi	r24, 0x01	; 1
   24606:	82 30       	cpi	r24, 0x02	; 2
   24608:	28 f5       	brcc	.+74     	; 0x24654 <mFilamentPrompt()+0xa4>
   2460a:	80 91 ae 17 	lds	r24, 0x17AE	; 0x8017ae <fsensor+0x4>
   2460e:	88 23       	and	r24, r24
   24610:	09 f1       	breq	.+66     	; 0x24654 <mFilamentPrompt()+0xa4>
#endif //FILAMENT_SENSOR
    ) {
        menu_back(bFilamentPreheatState ? 2 : 3);
   24612:	80 91 63 06 	lds	r24, 0x0663	; 0x800663 <bFilamentPreheatState>
   24616:	81 11       	cpse	r24, r1
   24618:	13 c0       	rjmp	.+38     	; 0x24640 <mFilamentPrompt()+0x90>
   2461a:	83 e0       	ldi	r24, 0x03	; 3
   2461c:	0f 94 81 d4 	call	0x3a902	; 0x3a902 <menu_back(unsigned char)>
        switch(eFilamentAction) {
   24620:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   24624:	82 30       	cpi	r24, 0x02	; 2
   24626:	71 f0       	breq	.+28     	; 0x24644 <mFilamentPrompt()+0x94>
   24628:	83 30       	cpi	r24, 0x03	; 3
   2462a:	81 f0       	breq	.+32     	; 0x2464c <mFilamentPrompt()+0x9c>
   2462c:	81 30       	cpi	r24, 0x01	; 1
   2462e:	91 f4       	brne	.+36     	; 0x24654 <mFilamentPrompt()+0xa4>
            case FilamentAction::AutoLoad:
                // loading no longer cancellable
                eFilamentAction = FilamentAction::Load;
                [[fallthrough]];
            case FilamentAction::Load:
                enquecommand_P(MSG_M701);      // load filament
   24630:	61 e0       	ldi	r22, 0x01	; 1
   24632:	8f ea       	ldi	r24, 0xAF	; 175
   24634:	9e e6       	ldi	r25, 0x6E	; 110
                break;
            case FilamentAction::UnLoad:
                enquecommand_P(MSG_M702);      // unload filament
   24636:	0c 94 a7 87 	jmp	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        case FilamentAction::MmuLoadingTest:
            lcd_puts_P(_T(MSG_TO_LOAD_FIL));
            break;
        case FilamentAction::UnLoad:
        case FilamentAction::MmuUnLoad:
            lcd_puts_P(_T(MSG_TO_UNLOAD_FIL));
   2463a:	83 eb       	ldi	r24, 0xB3	; 179
   2463c:	9e e4       	ldi	r25, 0x4E	; 78
   2463e:	d2 cf       	rjmp	.-92     	; 0x245e4 <mFilamentPrompt()+0x34>
#ifdef FILAMENT_SENSOR
/// @todo leptun - add this as a specific retest item
        || (((eFilamentAction == FilamentAction::Load) || (eFilamentAction == FilamentAction::AutoLoad)) && fsensor.getFilamentLoadEvent())
#endif //FILAMENT_SENSOR
    ) {
        menu_back(bFilamentPreheatState ? 2 : 3);
   24640:	82 e0       	ldi	r24, 0x02	; 2
   24642:	ec cf       	rjmp	.-40     	; 0x2461c <mFilamentPrompt()+0x6c>
        switch(eFilamentAction) {
            case FilamentAction::AutoLoad:
                // loading no longer cancellable
                eFilamentAction = FilamentAction::Load;
   24644:	81 e0       	ldi	r24, 0x01	; 1
   24646:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
   2464a:	f2 cf       	rjmp	.-28     	; 0x24630 <mFilamentPrompt()+0x80>
                [[fallthrough]];
            case FilamentAction::Load:
                enquecommand_P(MSG_M701);      // load filament
                break;
            case FilamentAction::UnLoad:
                enquecommand_P(MSG_M702);      // unload filament
   2464c:	61 e0       	ldi	r22, 0x01	; 1
   2464e:	87 e3       	ldi	r24, 0x37	; 55
   24650:	9b e6       	ldi	r25, 0x6B	; 107
   24652:	f1 cf       	rjmp	.-30     	; 0x24636 <mFilamentPrompt()+0x86>
            case FilamentAction::Preheat:
            case FilamentAction::Lay1Cal:
                break;
        }
    }
}
   24654:	08 95       	ret

00024656 <__vector_51>:
	UCSR2B |= (1 << RXCIE2); // enable rx interrupt
	fdev_setup_stream(uart2io, uart2_putchar, uart2_getchar, _FDEV_SETUP_WRITE | _FDEV_SETUP_READ); //setup uart2 i/o stream
}

ISR(USART2_RX_vect)
{
   24656:	1f 92       	push	r1
   24658:	0f 92       	push	r0
   2465a:	0f b6       	in	r0, 0x3f	; 63
   2465c:	0f 92       	push	r0
   2465e:	11 24       	eor	r1, r1
   24660:	0b b6       	in	r0, 0x3b	; 59
   24662:	0f 92       	push	r0
   24664:	2f 93       	push	r18
   24666:	3f 93       	push	r19
   24668:	4f 93       	push	r20
   2466a:	5f 93       	push	r21
   2466c:	6f 93       	push	r22
   2466e:	7f 93       	push	r23
   24670:	8f 93       	push	r24
   24672:	9f 93       	push	r25
   24674:	af 93       	push	r26
   24676:	bf 93       	push	r27
   24678:	ef 93       	push	r30
   2467a:	ff 93       	push	r31
	if (rbuf_put(uart2_ibuf, UDR2) < 0) // put received byte to buffer
   2467c:	20 91 d6 00 	lds	r18, 0x00D6	; 0x8000d6 <__TEXT_REGION_LENGTH__+0x7c20d6>
//put single byte to buffer
int rbuf_put(uint8_t* ptr, uint8_t b)
{
//#ifdef _NO_ASM
	_lock();                         //lock
	uint8_t buf_w = ptr[1];          //get write index
   24680:	80 91 3b 05 	lds	r24, 0x053B	; 0x80053b <uart2_ibuf+0x1>
	uint8_t buf_r = ptr[2];          //get read index
   24684:	90 91 3c 05 	lds	r25, 0x053C	; 0x80053c <uart2_ibuf+0x2>
	_unlock();                       //unlock
	ptr[4 + buf_w] = b;              //store byte to buffer
   24688:	e8 2f       	mov	r30, r24
   2468a:	f0 e0       	ldi	r31, 0x00	; 0
   2468c:	e2 5c       	subi	r30, 0xC2	; 194
   2468e:	fa 4f       	sbci	r31, 0xFA	; 250
   24690:	20 83       	st	Z, r18
	buf_w++;                         //incerment write index
   24692:	8f 5f       	subi	r24, 0xFF	; 255
	uint8_t buf_l = ptr[0];          //get length
	if (buf_w >= buf_l) buf_w = 0;   //rotate write index
   24694:	20 91 3a 05 	lds	r18, 0x053A	; 0x80053a <uart2_ibuf>
   24698:	82 17       	cp	r24, r18
   2469a:	08 f0       	brcs	.+2      	; 0x2469e <__vector_51+0x48>
   2469c:	80 e0       	ldi	r24, 0x00	; 0
	if (buf_w == buf_r) return -1;   //return -1 to signal buffer full
   2469e:	98 13       	cpse	r25, r24
   246a0:	17 c0       	rjmp	.+46     	; 0x246d0 <__vector_51+0x7a>
	{ //rx buffer full
		puts_P(PSTR("USART2 rx Full!!!"));
   246a2:	87 e6       	ldi	r24, 0x67	; 103
   246a4:	9f e9       	ldi	r25, 0x9F	; 159
   246a6:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
	}
}
   246aa:	ff 91       	pop	r31
   246ac:	ef 91       	pop	r30
   246ae:	bf 91       	pop	r27
   246b0:	af 91       	pop	r26
   246b2:	9f 91       	pop	r25
   246b4:	8f 91       	pop	r24
   246b6:	7f 91       	pop	r23
   246b8:	6f 91       	pop	r22
   246ba:	5f 91       	pop	r21
   246bc:	4f 91       	pop	r20
   246be:	3f 91       	pop	r19
   246c0:	2f 91       	pop	r18
   246c2:	0f 90       	pop	r0
   246c4:	0b be       	out	0x3b, r0	; 59
   246c6:	0f 90       	pop	r0
   246c8:	0f be       	out	0x3f, r0	; 63
   246ca:	0f 90       	pop	r0
   246cc:	1f 90       	pop	r1
   246ce:	18 95       	reti
	ptr[1] = buf_w;                  //store write index
   246d0:	80 93 3b 05 	sts	0x053B, r24	; 0x80053b <uart2_ibuf+0x1>
   246d4:	ea cf       	rjmp	.-44     	; 0x246aa <__vector_51+0x54>

000246d6 <__vector_45>:
{
	WRITE(BEEPER, 1);
}

ISR(TIMER4_OVF_vect)
{
   246d6:	1f 92       	push	r1
   246d8:	0f 92       	push	r0
   246da:	0f b6       	in	r0, 0x3f	; 63
   246dc:	0f 92       	push	r0
   246de:	11 24       	eor	r1, r1
   246e0:	0b b6       	in	r0, 0x3b	; 59
   246e2:	0f 92       	push	r0
   246e4:	8f 93       	push	r24
   246e6:	9f 93       	push	r25
   246e8:	ef 93       	push	r30
   246ea:	ff 93       	push	r31
	WRITE(BEEPER, 0);
   246ec:	9f b7       	in	r25, 0x3f	; 63
   246ee:	f8 94       	cli
   246f0:	e2 e0       	ldi	r30, 0x02	; 2
   246f2:	f1 e0       	ldi	r31, 0x01	; 1
   246f4:	80 81       	ld	r24, Z
   246f6:	8b 7f       	andi	r24, 0xFB	; 251
   246f8:	80 83       	st	Z, r24
   246fa:	9f bf       	out	0x3f, r25	; 63
}
   246fc:	ff 91       	pop	r31
   246fe:	ef 91       	pop	r30
   24700:	9f 91       	pop	r25
   24702:	8f 91       	pop	r24
   24704:	0f 90       	pop	r0
   24706:	0b be       	out	0x3b, r0	; 59
   24708:	0f 90       	pop	r0
   2470a:	0f be       	out	0x3f, r0	; 63
   2470c:	0f 90       	pop	r0
   2470e:	1f 90       	pop	r1
   24710:	18 95       	reti

00024712 <__vector_42>:
#endif //EXTRUDER_0_AUTO_FAN_PIN

// Because of the timer mode change, we need two interrupts. We could also try to assume that the frequency is x2
// and use a TOGGLE(), but this seems to work well enough so I left it as it is now.
ISR(TIMER4_COMPA_vect)
{
   24712:	1f 92       	push	r1
   24714:	0f 92       	push	r0
   24716:	0f b6       	in	r0, 0x3f	; 63
   24718:	0f 92       	push	r0
   2471a:	11 24       	eor	r1, r1
   2471c:	0b b6       	in	r0, 0x3b	; 59
   2471e:	0f 92       	push	r0
   24720:	8f 93       	push	r24
   24722:	9f 93       	push	r25
   24724:	ef 93       	push	r30
   24726:	ff 93       	push	r31
	WRITE(BEEPER, 1);
   24728:	9f b7       	in	r25, 0x3f	; 63
   2472a:	f8 94       	cli
   2472c:	e2 e0       	ldi	r30, 0x02	; 2
   2472e:	f1 e0       	ldi	r31, 0x01	; 1
   24730:	80 81       	ld	r24, Z
   24732:	84 60       	ori	r24, 0x04	; 4
   24734:	80 83       	st	Z, r24
   24736:	9f bf       	out	0x3f, r25	; 63
}
   24738:	ff 91       	pop	r31
   2473a:	ef 91       	pop	r30
   2473c:	9f 91       	pop	r25
   2473e:	8f 91       	pop	r24
   24740:	0f 90       	pop	r0
   24742:	0b be       	out	0x3b, r0	; 59
   24744:	0f 90       	pop	r0
   24746:	0f be       	out	0x3f, r0	; 63
   24748:	0f 90       	pop	r0
   2474a:	1f 90       	pop	r1
   2474c:	18 95       	reti

0002474e <tmc2130_home_calibrate(unsigned char)>:
	if (cval) cval[cl] = sum / cnt;
	return ++cl;
}

bool tmc2130_home_calibrate(uint8_t axis)
{
   2474e:	6f 92       	push	r6
   24750:	7f 92       	push	r7
   24752:	8f 92       	push	r8
   24754:	9f 92       	push	r9
   24756:	af 92       	push	r10
   24758:	bf 92       	push	r11
   2475a:	df 92       	push	r13
   2475c:	ef 92       	push	r14
   2475e:	ff 92       	push	r15
   24760:	0f 93       	push	r16
   24762:	1f 93       	push	r17
   24764:	cf 93       	push	r28
   24766:	df 93       	push	r29
   24768:	cd b7       	in	r28, 0x3d	; 61
   2476a:	de b7       	in	r29, 0x3e	; 62
   2476c:	e0 97       	sbiw	r28, 0x30	; 48
   2476e:	0f b6       	in	r0, 0x3f	; 63
   24770:	f8 94       	cli
   24772:	de bf       	out	0x3e, r29	; 62
   24774:	0f be       	out	0x3f, r0	; 63
   24776:	cd bf       	out	0x3d, r28	; 61
   24778:	d8 2e       	mov	r13, r24
	uint8_t step[16];
	uint8_t cnt[16];
	uint8_t val[16];
	homeaxis(axis, 16, step);
   2477a:	ae 01       	movw	r20, r28
   2477c:	4f 5f       	subi	r20, 0xFF	; 255
   2477e:	5f 4f       	sbci	r21, 0xFF	; 255
   24780:	60 e1       	ldi	r22, 0x10	; 16
   24782:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
	bubblesort_uint8(step, 16, 0);
   24786:	50 e0       	ldi	r21, 0x00	; 0
   24788:	40 e0       	ldi	r20, 0x00	; 0
   2478a:	60 e1       	ldi	r22, 0x10	; 16
   2478c:	ce 01       	movw	r24, r28
   2478e:	01 96       	adiw	r24, 0x01	; 1
   24790:	0f 94 5f 11 	call	0x222be	; 0x222be <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)>
	puts_P(PSTR("sorted samples:"));
   24794:	87 e5       	ldi	r24, 0x57	; 87
   24796:	9f e9       	ldi	r25, 0x9F	; 159
   24798:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   2479c:	9e 01       	movw	r18, r28
   2479e:	2f 5f       	subi	r18, 0xFF	; 255
   247a0:	3f 4f       	sbci	r19, 0xFF	; 255
   247a2:	59 01       	movw	r10, r18
   247a4:	10 e0       	ldi	r17, 0x00	; 0
   247a6:	00 e0       	ldi	r16, 0x00	; 0
	for (uint8_t i = 0; i < 16; i++)
		printf_P(PSTR(" i=%2d step=%2d\n"), i, step[i]);
   247a8:	26 e4       	ldi	r18, 0x46	; 70
   247aa:	e2 2e       	mov	r14, r18
   247ac:	2f e9       	ldi	r18, 0x9F	; 159
   247ae:	f2 2e       	mov	r15, r18
   247b0:	d5 01       	movw	r26, r10
   247b2:	8d 91       	ld	r24, X+
   247b4:	5d 01       	movw	r10, r26
   247b6:	1f 92       	push	r1
   247b8:	8f 93       	push	r24
   247ba:	1f 93       	push	r17
   247bc:	0f 93       	push	r16
   247be:	ff 92       	push	r15
   247c0:	ef 92       	push	r14
   247c2:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   247c6:	0f 5f       	subi	r16, 0xFF	; 255
   247c8:	1f 4f       	sbci	r17, 0xFF	; 255
	uint8_t cnt[16];
	uint8_t val[16];
	homeaxis(axis, 16, step);
	bubblesort_uint8(step, 16, 0);
	puts_P(PSTR("sorted samples:"));
	for (uint8_t i = 0; i < 16; i++)
   247ca:	0f 90       	pop	r0
   247cc:	0f 90       	pop	r0
   247ce:	0f 90       	pop	r0
   247d0:	0f 90       	pop	r0
   247d2:	0f 90       	pop	r0
   247d4:	0f 90       	pop	r0
   247d6:	00 31       	cpi	r16, 0x10	; 16
   247d8:	11 05       	cpc	r17, r1
   247da:	51 f7       	brne	.-44     	; 0x247b0 <tmc2130_home_calibrate(unsigned char)+0x62>
}

uint8_t clusterize_uint8(uint8_t* data, uint8_t size, uint8_t* ccnt, uint8_t* cval, uint8_t tol)
{
	uint8_t cnt = 1;
	uint16_t sum = data[0];
   247dc:	09 81       	ldd	r16, Y+1	; 0x01
   247de:	10 e0       	ldi	r17, 0x00	; 0
   247e0:	5e 01       	movw	r10, r28
   247e2:	b2 e0       	ldi	r27, 0x02	; 2
   247e4:	ab 0e       	add	r10, r27
   247e6:	b1 1c       	adc	r11, r1
   247e8:	ee 24       	eor	r14, r14
   247ea:	e3 94       	inc	r14
   247ec:	f1 2c       	mov	r15, r1
   247ee:	ec 0e       	add	r14, r28
   247f0:	fd 1e       	adc	r15, r29
   247f2:	e0 e1       	ldi	r30, 0x10	; 16
   247f4:	ee 0e       	add	r14, r30
   247f6:	f1 1c       	adc	r15, r1
	uint8_t cl = 0;
   247f8:	e0 e0       	ldi	r30, 0x00	; 0
	}
}

uint8_t clusterize_uint8(uint8_t* data, uint8_t size, uint8_t* ccnt, uint8_t* cval, uint8_t tol)
{
	uint8_t cnt = 1;
   247fa:	21 e0       	ldi	r18, 0x01	; 1
	uint16_t sum = data[0];
	uint8_t cl = 0;
	for (uint8_t i = 1; i < size; i++)
	{
		uint8_t d = data[i];
   247fc:	d5 01       	movw	r26, r10
   247fe:	3d 91       	ld	r19, X+
   24800:	5d 01       	movw	r10, r26
		uint8_t val = sum / cnt;
   24802:	62 2f       	mov	r22, r18
   24804:	70 e0       	ldi	r23, 0x00	; 0
   24806:	c8 01       	movw	r24, r16
   24808:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
		uint8_t dif = 0;
		if (val > d) dif = val - d;
   2480c:	46 2f       	mov	r20, r22
   2480e:	43 1b       	sub	r20, r19
   24810:	36 17       	cp	r19, r22
   24812:	10 f0       	brcs	.+4      	; 0x24818 <tmc2130_home_calibrate(unsigned char)+0xca>
		else dif = d - val;
   24814:	43 2f       	mov	r20, r19
   24816:	46 1b       	sub	r20, r22
   24818:	83 2f       	mov	r24, r19
   2481a:	90 e0       	ldi	r25, 0x00	; 0
		if (dif <= tol)
   2481c:	42 30       	cpi	r20, 0x02	; 2
   2481e:	08 f0       	brcs	.+2      	; 0x24822 <tmc2130_home_calibrate(unsigned char)+0xd4>
   24820:	47 c0       	rjmp	.+142    	; 0x248b0 <tmc2130_home_calibrate(unsigned char)+0x162>
		{
			cnt += 1;
   24822:	2f 5f       	subi	r18, 0xFF	; 255
			sum += d;
   24824:	08 0f       	add	r16, r24
   24826:	19 1f       	adc	r17, r25
uint8_t clusterize_uint8(uint8_t* data, uint8_t size, uint8_t* ccnt, uint8_t* cval, uint8_t tol)
{
	uint8_t cnt = 1;
	uint16_t sum = data[0];
	uint8_t cl = 0;
	for (uint8_t i = 1; i < size; i++)
   24828:	ae 14       	cp	r10, r14
   2482a:	bf 04       	cpc	r11, r15
   2482c:	39 f7       	brne	.-50     	; 0x247fc <tmc2130_home_calibrate(unsigned char)+0xae>
			cnt = 1;
			sum = d;
			cl += 1;
		}
	}
	if (ccnt) ccnt[cl] = cnt;
   2482e:	ae 2e       	mov	r10, r30
   24830:	b1 2c       	mov	r11, r1
   24832:	a1 e1       	ldi	r26, 0x11	; 17
   24834:	b0 e0       	ldi	r27, 0x00	; 0
   24836:	ac 0f       	add	r26, r28
   24838:	bd 1f       	adc	r27, r29
   2483a:	aa 0d       	add	r26, r10
   2483c:	bb 1d       	adc	r27, r11
   2483e:	2c 93       	st	X, r18
	if (cval) cval[cl] = sum / cnt;
   24840:	7e 01       	movw	r14, r28
   24842:	b1 e2       	ldi	r27, 0x21	; 33
   24844:	eb 0e       	add	r14, r27
   24846:	f1 1c       	adc	r15, r1
   24848:	ae 0c       	add	r10, r14
   2484a:	bf 1c       	adc	r11, r15
   2484c:	62 2f       	mov	r22, r18
   2484e:	70 e0       	ldi	r23, 0x00	; 0
   24850:	c8 01       	movw	r24, r16
   24852:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   24856:	d5 01       	movw	r26, r10
   24858:	6c 93       	st	X, r22
	return ++cl;
   2485a:	11 e0       	ldi	r17, 0x01	; 1
   2485c:	1e 0f       	add	r17, r30
	bubblesort_uint8(step, 16, 0);
	puts_P(PSTR("sorted samples:"));
	for (uint8_t i = 0; i < 16; i++)
		printf_P(PSTR(" i=%2d step=%2d\n"), i, step[i]);
	uint8_t cl = clusterize_uint8(step, 16, cnt, val, 1);
	puts_P(PSTR("clusters:"));
   2485e:	8c e3       	ldi	r24, 0x3C	; 60
   24860:	9f e9       	ldi	r25, 0x9F	; 159
   24862:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   24866:	fe 01       	movw	r30, r28
   24868:	71 96       	adiw	r30, 0x11	; 17
   2486a:	3f 01       	movw	r6, r30
   2486c:	57 01       	movw	r10, r14
	for (uint8_t i = 0; i < cl; i++)
		printf_P(PSTR(" i=%2d cnt=%2d val=%2d\n"), i, cnt[i], val[i]);
   2486e:	84 e2       	ldi	r24, 0x24	; 36
   24870:	88 2e       	mov	r8, r24
   24872:	8f e9       	ldi	r24, 0x9F	; 159
   24874:	98 2e       	mov	r9, r24
	puts_P(PSTR("sorted samples:"));
	for (uint8_t i = 0; i < 16; i++)
		printf_P(PSTR(" i=%2d step=%2d\n"), i, step[i]);
	uint8_t cl = clusterize_uint8(step, 16, cnt, val, 1);
	puts_P(PSTR("clusters:"));
	for (uint8_t i = 0; i < cl; i++)
   24876:	8a 2d       	mov	r24, r10
   24878:	8e 19       	sub	r24, r14
   2487a:	81 17       	cp	r24, r17
   2487c:	70 f5       	brcc	.+92     	; 0x248da <tmc2130_home_calibrate(unsigned char)+0x18c>
   2487e:	c5 01       	movw	r24, r10
   24880:	8e 19       	sub	r24, r14
   24882:	9f 09       	sbc	r25, r15
		printf_P(PSTR(" i=%2d cnt=%2d val=%2d\n"), i, cnt[i], val[i]);
   24884:	d5 01       	movw	r26, r10
   24886:	3d 91       	ld	r19, X+
   24888:	5d 01       	movw	r10, r26
   2488a:	f3 01       	movw	r30, r6
   2488c:	21 91       	ld	r18, Z+
   2488e:	3f 01       	movw	r6, r30
   24890:	1f 92       	push	r1
   24892:	3f 93       	push	r19
   24894:	1f 92       	push	r1
   24896:	2f 93       	push	r18
   24898:	9f 93       	push	r25
   2489a:	8f 93       	push	r24
   2489c:	9f 92       	push	r9
   2489e:	8f 92       	push	r8
   248a0:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   248a4:	0f b6       	in	r0, 0x3f	; 63
   248a6:	f8 94       	cli
   248a8:	de bf       	out	0x3e, r29	; 62
   248aa:	0f be       	out	0x3f, r0	; 63
   248ac:	cd bf       	out	0x3d, r28	; 61
   248ae:	e3 cf       	rjmp	.-58     	; 0x24876 <tmc2130_home_calibrate(unsigned char)+0x128>
   248b0:	4e 2f       	mov	r20, r30
   248b2:	50 e0       	ldi	r21, 0x00	; 0
			cnt += 1;
			sum += d;
		}
		else
		{
			if (ccnt) ccnt[cl] = cnt;
   248b4:	a1 e1       	ldi	r26, 0x11	; 17
   248b6:	b0 e0       	ldi	r27, 0x00	; 0
   248b8:	ac 0f       	add	r26, r28
   248ba:	bd 1f       	adc	r27, r29
   248bc:	a4 0f       	add	r26, r20
   248be:	b5 1f       	adc	r27, r21
   248c0:	ef 5f       	subi	r30, 0xFF	; 255
   248c2:	2c 93       	st	X, r18
			if (cval) cval[cl] = val;
   248c4:	21 e2       	ldi	r18, 0x21	; 33
   248c6:	30 e0       	ldi	r19, 0x00	; 0
   248c8:	2c 0f       	add	r18, r28
   248ca:	3d 1f       	adc	r19, r29
   248cc:	42 0f       	add	r20, r18
   248ce:	53 1f       	adc	r21, r19
   248d0:	da 01       	movw	r26, r20
   248d2:	6c 93       	st	X, r22
			cnt = 1;
			sum = d;
   248d4:	8c 01       	movw	r16, r24
		}
		else
		{
			if (ccnt) ccnt[cl] = cnt;
			if (cval) cval[cl] = val;
			cnt = 1;
   248d6:	21 e0       	ldi	r18, 0x01	; 1
   248d8:	a7 cf       	rjmp	.-178    	; 0x24828 <tmc2130_home_calibrate(unsigned char)+0xda>
		printf_P(PSTR(" i=%2d step=%2d\n"), i, step[i]);
	uint8_t cl = clusterize_uint8(step, 16, cnt, val, 1);
	puts_P(PSTR("clusters:"));
	for (uint8_t i = 0; i < cl; i++)
		printf_P(PSTR(" i=%2d cnt=%2d val=%2d\n"), i, cnt[i], val[i]);
	bubblesort_uint8(cnt, cl, val);
   248da:	a7 01       	movw	r20, r14
   248dc:	61 2f       	mov	r22, r17
   248de:	ce 01       	movw	r24, r28
   248e0:	41 96       	adiw	r24, 0x11	; 17
   248e2:	0f 94 5f 11 	call	0x222be	; 0x222be <bubblesort_uint8(unsigned char*, unsigned char, unsigned char*)>
	tmc2130_home_origin[axis] = val[cl-1];
   248e6:	fe 01       	movw	r30, r28
   248e8:	e1 0f       	add	r30, r17
   248ea:	f1 1d       	adc	r31, r1
   248ec:	80 a1       	ldd	r24, Z+32	; 0x20
   248ee:	ed 2d       	mov	r30, r13
   248f0:	f0 e0       	ldi	r31, 0x00	; 0
   248f2:	ed 50       	subi	r30, 0x0D	; 13
   248f4:	fb 4f       	sbci	r31, 0xFB	; 251
   248f6:	80 83       	st	Z, r24
	printf_P(PSTR("result value: %d\n"), tmc2130_home_origin[axis]);
   248f8:	1f 92       	push	r1
   248fa:	8f 93       	push	r24
   248fc:	82 e1       	ldi	r24, 0x12	; 18
   248fe:	9f e9       	ldi	r25, 0x9F	; 159
   24900:	9f 93       	push	r25
   24902:	8f 93       	push	r24
   24904:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	if (axis == X_AXIS) eeprom_update_byte_notify((uint8_t*)EEPROM_TMC2130_HOME_X_ORIGIN, tmc2130_home_origin[X_AXIS]);
   24908:	0f 90       	pop	r0
   2490a:	0f 90       	pop	r0
   2490c:	0f 90       	pop	r0
   2490e:	0f 90       	pop	r0
   24910:	60 91 f3 04 	lds	r22, 0x04F3	; 0x8004f3 <tmc2130_home_origin>
   24914:	8e ef       	ldi	r24, 0xFE	; 254
   24916:	9e e0       	ldi	r25, 0x0E	; 14
   24918:	dd 20       	and	r13, r13
   2491a:	21 f0       	breq	.+8      	; 0x24924 <tmc2130_home_calibrate(unsigned char)+0x1d6>
   2491c:	60 91 f4 04 	lds	r22, 0x04F4	; 0x8004f4 <tmc2130_home_origin+0x1>
   24920:	8b ef       	ldi	r24, 0xFB	; 251
   24922:	9e e0       	ldi	r25, 0x0E	; 14
   24924:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
	else if (axis == Y_AXIS) eeprom_update_byte_notify((uint8_t*)EEPROM_TMC2130_HOME_Y_ORIGIN, tmc2130_home_origin[Y_AXIS]);
	return true;
}
   24928:	81 e0       	ldi	r24, 0x01	; 1
   2492a:	e0 96       	adiw	r28, 0x30	; 48
   2492c:	0f b6       	in	r0, 0x3f	; 63
   2492e:	f8 94       	cli
   24930:	de bf       	out	0x3e, r29	; 62
   24932:	0f be       	out	0x3f, r0	; 63
   24934:	cd bf       	out	0x3d, r28	; 61
   24936:	df 91       	pop	r29
   24938:	cf 91       	pop	r28
   2493a:	1f 91       	pop	r17
   2493c:	0f 91       	pop	r16
   2493e:	ff 90       	pop	r15
   24940:	ef 90       	pop	r14
   24942:	df 90       	pop	r13
   24944:	bf 90       	pop	r11
   24946:	af 90       	pop	r10
   24948:	9f 90       	pop	r9
   2494a:	8f 90       	pop	r8
   2494c:	7f 90       	pop	r7
   2494e:	6f 90       	pop	r6
   24950:	08 95       	ret

00024952 <tmc2130_do_step(unsigned char)>:
    delayMicroseconds(TMC2130_SET_DIR_DELAY);
}

void tmc2130_do_step(uint8_t axis)
{
	switch (axis)
   24952:	81 30       	cpi	r24, 0x01	; 1
   24954:	49 f0       	breq	.+18     	; 0x24968 <tmc2130_do_step(unsigned char)+0x16>
   24956:	28 f0       	brcs	.+10     	; 0x24962 <tmc2130_do_step(unsigned char)+0x10>
   24958:	82 30       	cpi	r24, 0x02	; 2
   2495a:	41 f0       	breq	.+16     	; 0x2496c <tmc2130_do_step(unsigned char)+0x1a>
   2495c:	83 30       	cpi	r24, 0x03	; 3
   2495e:	41 f0       	breq	.+16     	; 0x24970 <tmc2130_do_step(unsigned char)+0x1e>
   24960:	08 95       	ret
	{
	case X_AXIS: _DO_STEP_X; break;
   24962:	81 e0       	ldi	r24, 0x01	; 1
	case Y_AXIS: _DO_STEP_Y; break;
	case Z_AXIS: _DO_STEP_Z; break;
	case E_AXIS: _DO_STEP_E; break;
   24964:	86 b9       	out	0x06, r24	; 6
	}
}
   24966:	08 95       	ret
void tmc2130_do_step(uint8_t axis)
{
	switch (axis)
	{
	case X_AXIS: _DO_STEP_X; break;
	case Y_AXIS: _DO_STEP_Y; break;
   24968:	82 e0       	ldi	r24, 0x02	; 2
   2496a:	fc cf       	rjmp	.-8      	; 0x24964 <tmc2130_do_step(unsigned char)+0x12>
	case Z_AXIS: _DO_STEP_Z; break;
   2496c:	84 e0       	ldi	r24, 0x04	; 4
   2496e:	fa cf       	rjmp	.-12     	; 0x24964 <tmc2130_do_step(unsigned char)+0x12>
	case E_AXIS: _DO_STEP_E; break;
   24970:	88 e0       	ldi	r24, 0x08	; 8
   24972:	f8 cf       	rjmp	.-16     	; 0x24964 <tmc2130_do_step(unsigned char)+0x12>

00024974 <tmc2130_set_dir(unsigned char, unsigned char)>:
}


void tmc2130_set_dir(uint8_t axis, uint8_t dir)
{
	switch (axis)
   24974:	81 30       	cpi	r24, 0x01	; 1
   24976:	d1 f0       	breq	.+52     	; 0x249ac <tmc2130_set_dir(unsigned char, unsigned char)+0x38>
   24978:	48 f0       	brcs	.+18     	; 0x2498c <tmc2130_set_dir(unsigned char, unsigned char)+0x18>
   2497a:	82 30       	cpi	r24, 0x02	; 2
   2497c:	21 f1       	breq	.+72     	; 0x249c6 <tmc2130_set_dir(unsigned char, unsigned char)+0x52>
   2497e:	83 30       	cpi	r24, 0x03	; 3
   24980:	79 f1       	breq	.+94     	; 0x249e0 <tmc2130_set_dir(unsigned char, unsigned char)+0x6c>
   24982:	8b e4       	ldi	r24, 0x4B	; 75
   24984:	90 e0       	ldi	r25, 0x00	; 0
   24986:	01 97       	sbiw	r24, 0x01	; 1
   24988:	f1 f7       	brne	.-4      	; 0x24986 <tmc2130_set_dir(unsigned char, unsigned char)+0x12>
	case Y_AXIS: _SET_DIR_Y(dir); break;
	case Z_AXIS: _SET_DIR_Z(dir); break;
	case E_AXIS: _SET_DIR_E(dir); break;
	}
    delayMicroseconds(TMC2130_SET_DIR_DELAY);
}
   2498a:	08 95       	ret

void tmc2130_set_dir(uint8_t axis, uint8_t dir)
{
	switch (axis)
	{
	case X_AXIS: _SET_DIR_X(dir); break;
   2498c:	9f b7       	in	r25, 0x3f	; 63
   2498e:	66 23       	and	r22, r22
   24990:	41 f0       	breq	.+16     	; 0x249a2 <tmc2130_set_dir(unsigned char, unsigned char)+0x2e>
   24992:	f8 94       	cli
   24994:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   24998:	81 60       	ori	r24, 0x01	; 1
	case Y_AXIS: _SET_DIR_Y(dir); break;
	case Z_AXIS: _SET_DIR_Z(dir); break;
	case E_AXIS: _SET_DIR_E(dir); break;
   2499a:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   2499e:	9f bf       	out	0x3f, r25	; 63
   249a0:	f0 cf       	rjmp	.-32     	; 0x24982 <tmc2130_set_dir(unsigned char, unsigned char)+0xe>

void tmc2130_set_dir(uint8_t axis, uint8_t dir)
{
	switch (axis)
	{
	case X_AXIS: _SET_DIR_X(dir); break;
   249a2:	f8 94       	cli
   249a4:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249a8:	8e 7f       	andi	r24, 0xFE	; 254
   249aa:	f7 cf       	rjmp	.-18     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
	case Y_AXIS: _SET_DIR_Y(dir); break;
   249ac:	9f b7       	in	r25, 0x3f	; 63
   249ae:	61 11       	cpse	r22, r1
   249b0:	05 c0       	rjmp	.+10     	; 0x249bc <tmc2130_set_dir(unsigned char, unsigned char)+0x48>
   249b2:	f8 94       	cli
   249b4:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249b8:	82 60       	ori	r24, 0x02	; 2
   249ba:	ef cf       	rjmp	.-34     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
   249bc:	f8 94       	cli
   249be:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249c2:	8d 7f       	andi	r24, 0xFD	; 253
   249c4:	ea cf       	rjmp	.-44     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
	case Z_AXIS: _SET_DIR_Z(dir); break;
   249c6:	9f b7       	in	r25, 0x3f	; 63
   249c8:	66 23       	and	r22, r22
   249ca:	29 f0       	breq	.+10     	; 0x249d6 <tmc2130_set_dir(unsigned char, unsigned char)+0x62>
   249cc:	f8 94       	cli
   249ce:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249d2:	84 60       	ori	r24, 0x04	; 4
   249d4:	e2 cf       	rjmp	.-60     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
   249d6:	f8 94       	cli
   249d8:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249dc:	8b 7f       	andi	r24, 0xFB	; 251
   249de:	dd cf       	rjmp	.-70     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
	case E_AXIS: _SET_DIR_E(dir); break;
   249e0:	9f b7       	in	r25, 0x3f	; 63
   249e2:	61 11       	cpse	r22, r1
   249e4:	05 c0       	rjmp	.+10     	; 0x249f0 <tmc2130_set_dir(unsigned char, unsigned char)+0x7c>
   249e6:	f8 94       	cli
   249e8:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249ec:	80 64       	ori	r24, 0x40	; 64
   249ee:	d5 cf       	rjmp	.-86     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>
   249f0:	f8 94       	cli
   249f2:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   249f6:	8f 7b       	andi	r24, 0xBF	; 191
   249f8:	d0 cf       	rjmp	.-96     	; 0x2499a <tmc2130_set_dir(unsigned char, unsigned char)+0x26>

000249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>:
	tmc2130_cs_high(axis);
	TMC2130_SPI_LEAVE();
}

static uint8_t tmc2130_rx(uint8_t axis, uint8_t addr, uint32_t* rval)
{
   249fa:	cf 92       	push	r12
   249fc:	df 92       	push	r13
   249fe:	ef 92       	push	r14
   24a00:	ff 92       	push	r15
   24a02:	0f 93       	push	r16
   24a04:	1f 93       	push	r17
   24a06:	cf 93       	push	r28
   24a08:	df 93       	push	r29
   24a0a:	18 2f       	mov	r17, r24
   24a0c:	f6 2e       	mov	r15, r22
   24a0e:	ea 01       	movw	r28, r20
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   24a10:	0c e5       	ldi	r16, 0x5C	; 92
   24a12:	0c bd       	out	0x2c, r16	; 44
	SPSR = spsr;
   24a14:	1d bc       	out	0x2d, r1	; 45
	//datagram1 - request
	TMC2130_SPI_ENTER();
	tmc2130_cs_low(axis);
   24a16:	0f 94 bb 11 	call	0x22376	; 0x22376 <tmc2130_cs_low(unsigned char)>
	TMC2130_SPI_TXRX(addr); // address
   24a1a:	8f 2d       	mov	r24, r15
   24a1c:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX(0); // MSB
   24a20:	80 e0       	ldi	r24, 0x00	; 0
   24a22:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX(0);
   24a26:	80 e0       	ldi	r24, 0x00	; 0
   24a28:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX(0);
   24a2c:	80 e0       	ldi	r24, 0x00	; 0
   24a2e:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX(0); // LSB
   24a32:	80 e0       	ldi	r24, 0x00	; 0
   24a34:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	tmc2130_cs_high(axis);
   24a38:	81 2f       	mov	r24, r17
   24a3a:	0f 94 a0 11 	call	0x22340	; 0x22340 <tmc2130_cs_high(unsigned char)>
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   24a3e:	0c bd       	out	0x2c, r16	; 44
	SPSR = spsr;
   24a40:	1d bc       	out	0x2d, r1	; 45
	TMC2130_SPI_LEAVE();
	//datagram2 - response
	TMC2130_SPI_ENTER();
	tmc2130_cs_low(axis);
   24a42:	81 2f       	mov	r24, r17
   24a44:	0f 94 bb 11 	call	0x22376	; 0x22376 <tmc2130_cs_low(unsigned char)>
	uint8_t stat = TMC2130_SPI_TXRX(0); // status
   24a48:	80 e0       	ldi	r24, 0x00	; 0
   24a4a:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
   24a4e:	08 2f       	mov	r16, r24
	uint32_t val32 = 0;
	val32 = TMC2130_SPI_TXRX(0); // MSB
   24a50:	80 e0       	ldi	r24, 0x00	; 0
   24a52:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
   24a56:	90 e0       	ldi	r25, 0x00	; 0
   24a58:	b0 e0       	ldi	r27, 0x00	; 0
   24a5a:	a0 e0       	ldi	r26, 0x00	; 0
	val32 = (val32 << 8) | TMC2130_SPI_TXRX(0);
   24a5c:	cc 24       	eor	r12, r12
   24a5e:	d8 2e       	mov	r13, r24
   24a60:	e9 2e       	mov	r14, r25
   24a62:	fa 2e       	mov	r15, r26
   24a64:	80 e0       	ldi	r24, 0x00	; 0
   24a66:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
   24a6a:	c8 2a       	or	r12, r24
	val32 = (val32 << 8) | TMC2130_SPI_TXRX(0);
   24a6c:	fe 2c       	mov	r15, r14
   24a6e:	ed 2c       	mov	r14, r13
   24a70:	dc 2c       	mov	r13, r12
   24a72:	cc 24       	eor	r12, r12
   24a74:	80 e0       	ldi	r24, 0x00	; 0
   24a76:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
   24a7a:	c8 2a       	or	r12, r24
	val32 = (val32 << 8) | TMC2130_SPI_TXRX(0); // LSB
   24a7c:	fe 2c       	mov	r15, r14
   24a7e:	ed 2c       	mov	r14, r13
   24a80:	dc 2c       	mov	r13, r12
   24a82:	cc 24       	eor	r12, r12
   24a84:	80 e0       	ldi	r24, 0x00	; 0
   24a86:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
   24a8a:	c8 2a       	or	r12, r24
	tmc2130_cs_high(axis);
   24a8c:	81 2f       	mov	r24, r17
   24a8e:	0f 94 a0 11 	call	0x22340	; 0x22340 <tmc2130_cs_high(unsigned char)>
	TMC2130_SPI_LEAVE();
	if (rval != 0) *rval = val32;
   24a92:	c8 82       	st	Y, r12
   24a94:	d9 82       	std	Y+1, r13	; 0x01
   24a96:	ea 82       	std	Y+2, r14	; 0x02
   24a98:	fb 82       	std	Y+3, r15	; 0x03
	return stat;
}
   24a9a:	80 2f       	mov	r24, r16
   24a9c:	df 91       	pop	r29
   24a9e:	cf 91       	pop	r28
   24aa0:	1f 91       	pop	r17
   24aa2:	0f 91       	pop	r16
   24aa4:	ff 90       	pop	r15
   24aa6:	ef 90       	pop	r14
   24aa8:	df 90       	pop	r13
   24aaa:	cf 90       	pop	r12
   24aac:	08 95       	ret

00024aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>:
#define TMC2130_SPI_ENTER()    spi_setup(TMC2130_SPCR, TMC2130_SPSR)
#define TMC2130_SPI_TXRX       spi_txrx
#define TMC2130_SPI_LEAVE()

static void tmc2130_tx(uint8_t axis, uint8_t addr, uint32_t wval)
{
   24aae:	ef 92       	push	r14
   24ab0:	ff 92       	push	r15
   24ab2:	0f 93       	push	r16
   24ab4:	1f 93       	push	r17
   24ab6:	cf 93       	push	r28
   24ab8:	df 93       	push	r29
   24aba:	c8 2f       	mov	r28, r24
   24abc:	e6 2e       	mov	r14, r22
   24abe:	d2 2f       	mov	r29, r18
   24ac0:	13 2f       	mov	r17, r19
   24ac2:	04 2f       	mov	r16, r20
   24ac4:	f5 2e       	mov	r15, r21
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   24ac6:	8c e5       	ldi	r24, 0x5C	; 92
   24ac8:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   24aca:	1d bc       	out	0x2d, r1	; 45
	//datagram1 - request
	TMC2130_SPI_ENTER();
	tmc2130_cs_low(axis);
   24acc:	8c 2f       	mov	r24, r28
   24ace:	0f 94 bb 11 	call	0x22376	; 0x22376 <tmc2130_cs_low(unsigned char)>
	TMC2130_SPI_TXRX(addr); // address
   24ad2:	8e 2d       	mov	r24, r14
   24ad4:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX((wval >> 24) & 0xff); // MSB
   24ad8:	8f 2d       	mov	r24, r15
   24ada:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX((wval >> 16) & 0xff);
   24ade:	80 2f       	mov	r24, r16
   24ae0:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX((wval >> 8) & 0xff);
   24ae4:	81 2f       	mov	r24, r17
   24ae6:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	TMC2130_SPI_TXRX(wval & 0xff); // LSB
   24aea:	8d 2f       	mov	r24, r29
   24aec:	0f 94 d6 11 	call	0x223ac	; 0x223ac <spi_txrx>
	tmc2130_cs_high(axis);
   24af0:	8c 2f       	mov	r24, r28
	TMC2130_SPI_LEAVE();
}
   24af2:	df 91       	pop	r29
   24af4:	cf 91       	pop	r28
   24af6:	1f 91       	pop	r17
   24af8:	0f 91       	pop	r16
   24afa:	ff 90       	pop	r15
   24afc:	ef 90       	pop	r14
	TMC2130_SPI_TXRX(addr); // address
	TMC2130_SPI_TXRX((wval >> 24) & 0xff); // MSB
	TMC2130_SPI_TXRX((wval >> 16) & 0xff);
	TMC2130_SPI_TXRX((wval >> 8) & 0xff);
	TMC2130_SPI_TXRX(wval & 0xff); // LSB
	tmc2130_cs_high(axis);
   24afe:	0d 94 a0 11 	jmp	0x22340	; 0x22340 <tmc2130_cs_high(unsigned char)>

00024b02 <tmc2130_rd_MSCNT(unsigned char)>:
	if (val32 & 0x000f0000) return 0xffff;
	return val32 & 0xffff;
}

uint16_t tmc2130_rd_MSCNT(uint8_t axis)
{
   24b02:	cf 93       	push	r28
   24b04:	df 93       	push	r29
   24b06:	00 d0       	rcall	.+0      	; 0x24b08 <tmc2130_rd_MSCNT(unsigned char)+0x6>
   24b08:	1f 92       	push	r1
   24b0a:	cd b7       	in	r28, 0x3d	; 61
   24b0c:	de b7       	in	r29, 0x3e	; 62
	uint32_t val32 = 0;
   24b0e:	19 82       	std	Y+1, r1	; 0x01
   24b10:	1a 82       	std	Y+2, r1	; 0x02
   24b12:	1b 82       	std	Y+3, r1	; 0x03
   24b14:	1c 82       	std	Y+4, r1	; 0x04
	tmc2130_rd(axis, TMC2130_REG_MSCNT, &val32);
   24b16:	ae 01       	movw	r20, r28
   24b18:	4f 5f       	subi	r20, 0xFF	; 255
   24b1a:	5f 4f       	sbci	r21, 0xFF	; 255
   24b1c:	6a e6       	ldi	r22, 0x6A	; 106
   24b1e:	0f 94 fd 24 	call	0x249fa	; 0x249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>
	return val32 & 0x3ff;
   24b22:	89 81       	ldd	r24, Y+1	; 0x01
   24b24:	9a 81       	ldd	r25, Y+2	; 0x02
}
   24b26:	93 70       	andi	r25, 0x03	; 3
   24b28:	0f 90       	pop	r0
   24b2a:	0f 90       	pop	r0
   24b2c:	0f 90       	pop	r0
   24b2e:	0f 90       	pop	r0
   24b30:	df 91       	pop	r29
   24b32:	cf 91       	pop	r28
   24b34:	08 95       	ret

00024b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>:
#endif //DEBUG_TMC_CURRENTS
    tmc2130_wr(axis, TMC2130_REG_IHOLD_IRUN, ihold_irun.dw);
}

void tmc2130_setup_chopper(uint8_t axis, uint8_t mres, const MotorCurrents *curr /* = nullptr */)
{
   24b36:	ff 92       	push	r15
   24b38:	0f 93       	push	r16
   24b3a:	1f 93       	push	r17
   24b3c:	cf 93       	push	r28
   24b3e:	df 93       	push	r29
   24b40:	f8 2e       	mov	r15, r24
   24b42:	ea 01       	movw	r28, r20
	// Initialise the chopper configuration
	ChopConfU chopconf = ChopConfU(currents[axis].getvSense(), mres);
   24b44:	e8 2f       	mov	r30, r24
   24b46:	f0 e0       	ldi	r31, 0x00	; 0
   24b48:	83 e0       	ldi	r24, 0x03	; 3
   24b4a:	f8 9e       	mul	r15, r24
   24b4c:	80 01       	movw	r16, r0
   24b4e:	11 24       	eor	r1, r1
   24b50:	03 5a       	subi	r16, 0xA3	; 163
   24b52:	1d 4f       	sbci	r17, 0xFD	; 253
   24b54:	d8 01       	movw	r26, r16
   24b56:	8c 91       	ld	r24, X
			, sync(0)
			, mres(mres)
			, intpol(0)
			, dedge(default_dedge_bit)
			, diss2g(0)  // Short to GND protection is on
			, reserved(0) {}
   24b58:	30 e0       	ldi	r19, 0x00	; 0
   24b5a:	37 7f       	andi	r19, 0xF7	; 247
   24b5c:	3f 7e       	andi	r19, 0xEF	; 239
   24b5e:	3f 7d       	andi	r19, 0xDF	; 223
   24b60:	3f 7b       	andi	r19, 0xBF	; 191
   24b62:	40 e0       	ldi	r20, 0x00	; 0
   24b64:	80 fb       	bst	r24, 0
   24b66:	41 f9       	bld	r20, 1
   24b68:	43 70       	andi	r20, 0x03	; 3
   24b6a:	56 2f       	mov	r21, r22
   24b6c:	5f 70       	andi	r21, 0x0F	; 15
   24b6e:	50 62       	ori	r21, 0x20	; 32
   24b70:	5f 7b       	andi	r21, 0xBF	; 191
   24b72:	5f 77       	andi	r21, 0x7F	; 127
#endif
#if defined(TMC2130_INTPOL_Z) && (TMC2130_INTPOL_Z == 0)
    if (axis == Z_AXIS) return 0;
#endif

    return (mres != 0); // intpol to 256 only if microsteps aren't 256
   24b74:	81 e0       	ldi	r24, 0x01	; 1
   24b76:	61 11       	cpse	r22, r1
   24b78:	01 c0       	rjmp	.+2      	; 0x24b7c <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)+0x46>
   24b7a:	80 e0       	ldi	r24, 0x00	; 0
void tmc2130_setup_chopper(uint8_t axis, uint8_t mres, const MotorCurrents *curr /* = nullptr */)
{
	// Initialise the chopper configuration
	ChopConfU chopconf = ChopConfU(currents[axis].getvSense(), mres);

	chopconf.s.intpol = getIntpolBit(axis, mres);
   24b7c:	80 fb       	bst	r24, 0
   24b7e:	54 f9       	bld	r21, 4
	chopconf.s.toff = tmc2130_chopper_config[axis].toff; // toff = 3 (fchop = 27.778kHz)
   24b80:	bf 01       	movw	r22, r30
   24b82:	66 0f       	add	r22, r22
   24b84:	77 1f       	adc	r23, r23
   24b86:	fb 01       	movw	r30, r22
   24b88:	eb 55       	subi	r30, 0x5B	; 91
   24b8a:	fd 4f       	sbci	r31, 0xFD	; 253
   24b8c:	20 81       	ld	r18, Z
	chopconf.s.hstrt = tmc2130_chopper_config[axis].hstr; // initial 4, modified to 5
	chopconf.s.hend = tmc2130_chopper_config[axis].hend; // original value = 1
   24b8e:	92 2f       	mov	r25, r18
   24b90:	99 1f       	adc	r25, r25
   24b92:	99 27       	eor	r25, r25
   24b94:	99 1f       	adc	r25, r25
   24b96:	81 81       	ldd	r24, Z+1	; 0x01
   24b98:	87 70       	andi	r24, 0x07	; 7
   24b9a:	88 0f       	add	r24, r24
   24b9c:	89 2b       	or	r24, r25
   24b9e:	80 fb       	bst	r24, 0
   24ba0:	27 f9       	bld	r18, 7
   24ba2:	86 95       	lsr	r24
   24ba4:	87 70       	andi	r24, 0x07	; 7
   24ba6:	38 7f       	andi	r19, 0xF8	; 248
   24ba8:	38 2b       	or	r19, r24
	chopconf.s.tbl = tmc2130_chopper_config[axis].tbl; //blanking time, original value = 2
   24baa:	6a 55       	subi	r22, 0x5A	; 90
   24bac:	7d 4f       	sbci	r23, 0xFD	; 253
   24bae:	fb 01       	movw	r30, r22
   24bb0:	80 81       	ld	r24, Z
   24bb2:	86 95       	lsr	r24
   24bb4:	86 95       	lsr	r24
   24bb6:	86 95       	lsr	r24
   24bb8:	80 fb       	bst	r24, 0
   24bba:	37 f9       	bld	r19, 7
   24bbc:	81 fb       	bst	r24, 1
   24bbe:	40 f9       	bld	r20, 0

	tmc2130_wr(axis, TMC2130_REG_CHOPCONF, chopconf.dw);
   24bc0:	6c ee       	ldi	r22, 0xEC	; 236
   24bc2:	8f 2d       	mov	r24, r15
   24bc4:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
	if (curr == nullptr) {
   24bc8:	20 97       	sbiw	r28, 0x00	; 0
   24bca:	09 f4       	brne	.+2      	; 0x24bce <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)+0x98>
		curr = &currents[axis];
   24bcc:	e8 01       	movw	r28, r16
   24bce:	19 81       	ldd	r17, Y+1	; 0x01
   24bd0:	8a 81       	ldd	r24, Y+2	; 0x02
   24bd2:	c1 2f       	mov	r28, r17
   24bd4:	81 17       	cp	r24, r17
   24bd6:	08 f4       	brcc	.+2      	; 0x24bda <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)+0xa4>
   24bd8:	c8 2f       	mov	r28, r24
static void SetCurrents(const uint8_t axis, const MotorCurrents &curr) {
    uint8_t iHold = curr.getiHold();
    const uint8_t iRun = curr.getiRun();

    // Make sure iHold never exceeds iRun at runtime
    if (curr.iHoldIsClamped()) {
   24bda:	18 17       	cp	r17, r24
   24bdc:	40 f4       	brcc	.+16     	; 0x24bee <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)+0xb8>
        // Let user know firmware modified the value
        SERIAL_ECHO_START;
   24bde:	80 ed       	ldi	r24, 0xD0	; 208
   24be0:	9a ea       	ldi	r25, 0xAA	; 170
   24be2:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLNRPGM(_n("Hold current truncated to Run current"));
   24be6:	8a ed       	ldi	r24, 0xDA	; 218
   24be8:	9d e6       	ldi	r25, 0x6D	; 109
   24bea:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        struct S {
            uint8_t iHold;
            uint8_t iRun;
            uint16_t iHoldDelay;
            constexpr S(uint8_t ih, uint8_t ir)
                : iHold(ih & 0x1F)
   24bee:	2c 2f       	mov	r18, r28
   24bf0:	2f 71       	andi	r18, 0x1F	; 31
                , iRun(ir & 0x1F)
   24bf2:	31 2f       	mov	r19, r17
   24bf4:	3f 71       	andi	r19, 0x1F	; 31

    IHoldRun ihold_irun(iHold, iRun);
#ifdef DEBUG_TMC_CURRENTS
	printf_P(PSTR("SetCurrents(axis=%u, iHold=%u, iRun=%u, vsense=%u, reg=%08lX)\n"), axis, iHold, iRun, curr.getvSense(), ihold_irun.dw);
#endif //DEBUG_TMC_CURRENTS
    tmc2130_wr(axis, TMC2130_REG_IHOLD_IRUN, ihold_irun.dw);
   24bf6:	4f e0       	ldi	r20, 0x0F	; 15
   24bf8:	50 e0       	ldi	r21, 0x00	; 0
   24bfa:	60 e9       	ldi	r22, 0x90	; 144
   24bfc:	8f 2d       	mov	r24, r15
	tmc2130_wr(axis, TMC2130_REG_CHOPCONF, chopconf.dw);
	if (curr == nullptr) {
		curr = &currents[axis];
	}
	SetCurrents(axis, *curr);
}
   24bfe:	df 91       	pop	r29
   24c00:	cf 91       	pop	r28
   24c02:	1f 91       	pop	r17
   24c04:	0f 91       	pop	r16
   24c06:	ff 90       	pop	r15

    IHoldRun ihold_irun(iHold, iRun);
#ifdef DEBUG_TMC_CURRENTS
	printf_P(PSTR("SetCurrents(axis=%u, iHold=%u, iRun=%u, vsense=%u, reg=%08lX)\n"), axis, iHold, iRun, curr.getvSense(), ihold_irun.dw);
#endif //DEBUG_TMC_CURRENTS
    tmc2130_wr(axis, TMC2130_REG_IHOLD_IRUN, ihold_irun.dw);
   24c08:	0d 94 57 25 	jmp	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>

00024c0c <tmc2130_set_res(unsigned char, unsigned int)>:
	return tmc2130_mres2usteps(tmc2130_mres[axis]);
}

void tmc2130_set_res(uint8_t axis, uint16_t res)
{
	tmc2130_mres[axis] = tmc2130_usteps2mres(res);
   24c0c:	e8 2f       	mov	r30, r24
   24c0e:	f0 e0       	ldi	r31, 0x00	; 0
	//printf_P(PSTR("MSLUT[%d]=%08lx\n"), i, val);
}

uint8_t tmc2130_usteps2mres(uint16_t usteps)
{
	uint8_t mres = 8; while (usteps >>= 1) mres--;
   24c10:	98 e0       	ldi	r25, 0x08	; 8
   24c12:	76 95       	lsr	r23
   24c14:	67 95       	ror	r22
   24c16:	61 15       	cp	r22, r1
   24c18:	71 05       	cpc	r23, r1
   24c1a:	11 f0       	breq	.+4      	; 0x24c20 <tmc2130_set_res(unsigned char, unsigned int)+0x14>
   24c1c:	91 50       	subi	r25, 0x01	; 1
   24c1e:	f9 cf       	rjmp	.-14     	; 0x24c12 <tmc2130_set_res(unsigned char, unsigned int)+0x6>
	return tmc2130_mres2usteps(tmc2130_mres[axis]);
}

void tmc2130_set_res(uint8_t axis, uint16_t res)
{
	tmc2130_mres[axis] = tmc2130_usteps2mres(res);
   24c20:	eb 50       	subi	r30, 0x0B	; 11
   24c22:	fb 4f       	sbci	r31, 0xFB	; 251
   24c24:	90 83       	st	Z, r25
//	uint32_t u = _micros();
	tmc2130_setup_chopper(axis, tmc2130_mres[axis]);
   24c26:	50 e0       	ldi	r21, 0x00	; 0
   24c28:	40 e0       	ldi	r20, 0x00	; 0
   24c2a:	69 2f       	mov	r22, r25
   24c2c:	0d 94 9b 25 	jmp	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>

00024c30 <tmc2130_XYZ_reg_init(unsigned char)>:
	}
	return 0;
}

static void tmc2130_XYZ_reg_init(uint8_t axis)
{
   24c30:	0f 93       	push	r16
   24c32:	1f 93       	push	r17
   24c34:	cf 93       	push	r28
   24c36:	df 93       	push	r29
   24c38:	c8 2f       	mov	r28, r24
	tmc2130_setup_chopper(axis, tmc2130_mres[axis]);
   24c3a:	08 2f       	mov	r16, r24
   24c3c:	10 e0       	ldi	r17, 0x00	; 0
   24c3e:	f8 01       	movw	r30, r16
   24c40:	eb 50       	subi	r30, 0x0B	; 11
   24c42:	fb 4f       	sbci	r31, 0xFB	; 251
   24c44:	50 e0       	ldi	r21, 0x00	; 0
   24c46:	40 e0       	ldi	r20, 0x00	; 0
   24c48:	60 81       	ld	r22, Z
   24c4a:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
	tmc2130_wr(axis, TMC2130_REG_TPOWERDOWN, 0x00000000);
   24c4e:	20 e0       	ldi	r18, 0x00	; 0
   24c50:	30 e0       	ldi	r19, 0x00	; 0
   24c52:	a9 01       	movw	r20, r18
   24c54:	61 e9       	ldi	r22, 0x91	; 145
   24c56:	8c 2f       	mov	r24, r28
   24c58:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
	const bool isStealth = (tmc2130_mode == TMC2130_MODE_SILENT);
   24c5c:	d0 91 8c 06 	lds	r29, 0x068C	; 0x80068c <tmc2130_mode>
	if (axis == Z_AXIS) {
   24c60:	c2 30       	cpi	r28, 0x02	; 2
   24c62:	e1 f5       	brne	.+120    	; 0x24cdc <tmc2130_XYZ_reg_init(unsigned char)+0xac>
#ifdef TMC2130_STEALTH_Z
		tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr[axis]) << 16) | ((uint32_t)1 << 24));
   24c64:	20 e0       	ldi	r18, 0x00	; 0
   24c66:	30 e0       	ldi	r19, 0x00	; 0
   24c68:	44 e0       	ldi	r20, 0x04	; 4
   24c6a:	51 e0       	ldi	r21, 0x01	; 1
   24c6c:	6d ee       	ldi	r22, 0xED	; 237
   24c6e:	82 e0       	ldi	r24, 0x02	; 2
   24c70:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, isStealth ? 0 : __tcoolthrs(axis));
   24c74:	24 ef       	ldi	r18, 0xF4	; 244
   24c76:	31 e0       	ldi	r19, 0x01	; 1
   24c78:	40 e0       	ldi	r20, 0x00	; 0
   24c7a:	50 e0       	ldi	r21, 0x00	; 0
   24c7c:	d1 30       	cpi	r29, 0x01	; 1
   24c7e:	19 f4       	brne	.+6      	; 0x24c86 <tmc2130_XYZ_reg_init(unsigned char)+0x56>
   24c80:	20 e0       	ldi	r18, 0x00	; 0
   24c82:	30 e0       	ldi	r19, 0x00	; 0
   24c84:	a9 01       	movw	r20, r18
   24c86:	64 e9       	ldi	r22, 0x94	; 148
   24c88:	82 e0       	ldi	r24, 0x02	; 2
   24c8a:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_GCONF, isStealth ? TMC2130_GCONF_SILENT : TMC2130_GCONF_DYNAMIC_SGSENS);
   24c8e:	24 e8       	ldi	r18, 0x84	; 132
   24c90:	31 e0       	ldi	r19, 0x01	; 1
   24c92:	40 e0       	ldi	r20, 0x00	; 0
   24c94:	50 e0       	ldi	r21, 0x00	; 0
   24c96:	d1 30       	cpi	r29, 0x01	; 1
   24c98:	21 f4       	brne	.+8      	; 0x24ca2 <tmc2130_XYZ_reg_init(unsigned char)+0x72>
   24c9a:	24 e0       	ldi	r18, 0x04	; 4
   24c9c:	30 e0       	ldi	r19, 0x00	; 0
   24c9e:	40 e0       	ldi	r20, 0x00	; 0
   24ca0:	50 e0       	ldi	r21, 0x00	; 0
   24ca2:	60 e8       	ldi	r22, 0x80	; 128
   24ca4:	82 e0       	ldi	r24, 0x02	; 2
   24ca6:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_PWMCONF, pwmconf[axis].dw);
   24caa:	28 ec       	ldi	r18, 0xC8	; 200
   24cac:	34 e0       	ldi	r19, 0x04	; 4
   24cae:	46 e0       	ldi	r20, 0x06	; 6
   24cb0:	50 e0       	ldi	r21, 0x00	; 0
   24cb2:	60 ef       	ldi	r22, 0xF0	; 240
   24cb4:	82 e0       	ldi	r24, 0x02	; 2
   24cb6:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, isStealth ? 0 : 0xFFFF0);
   24cba:	20 ef       	ldi	r18, 0xF0	; 240
   24cbc:	3f ef       	ldi	r19, 0xFF	; 255
   24cbe:	4f e0       	ldi	r20, 0x0F	; 15
   24cc0:	50 e0       	ldi	r21, 0x00	; 0
   24cc2:	d1 30       	cpi	r29, 0x01	; 1
   24cc4:	19 f4       	brne	.+6      	; 0x24ccc <tmc2130_XYZ_reg_init(unsigned char)+0x9c>
   24cc6:	20 e0       	ldi	r18, 0x00	; 0
   24cc8:	30 e0       	ldi	r19, 0x00	; 0
   24cca:	a9 01       	movw	r20, r18
   24ccc:	63 e9       	ldi	r22, 0x93	; 147
   24cce:	82 e0       	ldi	r24, 0x02	; 2
		tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, isStealth ? 0 : __tcoolthrs(axis));
		tmc2130_wr(axis, TMC2130_REG_GCONF, isStealth ? TMC2130_GCONF_SILENT : TMC2130_GCONF_SGSENS);
		tmc2130_wr(axis, TMC2130_REG_PWMCONF, pwmconf[axis].dw);
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS);
	}
}
   24cd0:	df 91       	pop	r29
   24cd2:	cf 91       	pop	r28
   24cd4:	1f 91       	pop	r17
   24cd6:	0f 91       	pop	r16
	} else { // X Y
		tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr[axis]) << 16) | ((uint32_t)1 << 24));
		tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, isStealth ? 0 : __tcoolthrs(axis));
		tmc2130_wr(axis, TMC2130_REG_GCONF, isStealth ? TMC2130_GCONF_SILENT : TMC2130_GCONF_SGSENS);
		tmc2130_wr(axis, TMC2130_REG_PWMCONF, pwmconf[axis].dw);
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS);
   24cd8:	0d 94 57 25 	jmp	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, isStealth ? 0 : 0xFFFF0);
#else // TMC2130_STEALTH_Z
		tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS);
#endif // TMC2130_STEALTH_Z
	} else { // X Y
		tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr[axis]) << 16) | ((uint32_t)1 << 24));
   24cdc:	f8 01       	movw	r30, r16
   24cde:	e6 5e       	subi	r30, 0xE6	; 230
   24ce0:	fc 4f       	sbci	r31, 0xFC	; 252
   24ce2:	20 81       	ld	r18, Z
   24ce4:	30 e0       	ldi	r19, 0x00	; 0
   24ce6:	50 e0       	ldi	r21, 0x00	; 0
   24ce8:	40 e0       	ldi	r20, 0x00	; 0
   24cea:	a9 01       	movw	r20, r18
   24cec:	33 27       	eor	r19, r19
   24cee:	22 27       	eor	r18, r18
   24cf0:	51 60       	ori	r21, 0x01	; 1
   24cf2:	6d ee       	ldi	r22, 0xED	; 237
   24cf4:	8c 2f       	mov	r24, r28
   24cf6:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, isStealth ? 0 : __tcoolthrs(axis));
   24cfa:	20 e0       	ldi	r18, 0x00	; 0
   24cfc:	30 e0       	ldi	r19, 0x00	; 0
   24cfe:	a9 01       	movw	r20, r18
   24d00:	d1 30       	cpi	r29, 0x01	; 1
   24d02:	61 f0       	breq	.+24     	; 0x24d1c <tmc2130_XYZ_reg_init(unsigned char)+0xec>

uint16_t __tcoolthrs(uint8_t axis)
{
	switch (axis)
	{
	case X_AXIS: return TMC2130_TCOOLTHRS_X;
   24d04:	2e ea       	ldi	r18, 0xAE	; 174
   24d06:	31 e0       	ldi	r19, 0x01	; 1
static void tmc2130_tx(uint8_t axis, uint8_t addr, uint32_t wval);
static uint8_t tmc2130_rx(uint8_t axis, uint8_t addr, uint32_t* rval);

uint16_t __tcoolthrs(uint8_t axis)
{
	switch (axis)
   24d08:	c2 30       	cpi	r28, 0x02	; 2
   24d0a:	30 f0       	brcs	.+12     	; 0x24d18 <tmc2130_XYZ_reg_init(unsigned char)+0xe8>
	{
	case X_AXIS: return TMC2130_TCOOLTHRS_X;
	case Y_AXIS: return TMC2130_TCOOLTHRS_Y;
	case Z_AXIS: return TMC2130_TCOOLTHRS_Z;
   24d0c:	24 ef       	ldi	r18, 0xF4	; 244
   24d0e:	31 e0       	ldi	r19, 0x01	; 1
static void tmc2130_tx(uint8_t axis, uint8_t addr, uint32_t wval);
static uint8_t tmc2130_rx(uint8_t axis, uint8_t addr, uint32_t* rval);

uint16_t __tcoolthrs(uint8_t axis)
{
	switch (axis)
   24d10:	c2 30       	cpi	r28, 0x02	; 2
   24d12:	11 f0       	breq	.+4      	; 0x24d18 <tmc2130_XYZ_reg_init(unsigned char)+0xe8>
	{
	case X_AXIS: return TMC2130_TCOOLTHRS_X;
	case Y_AXIS: return TMC2130_TCOOLTHRS_Y;
	case Z_AXIS: return TMC2130_TCOOLTHRS_Z;
	}
	return 0;
   24d14:	30 e0       	ldi	r19, 0x00	; 0
   24d16:	20 e0       	ldi	r18, 0x00	; 0
#else // TMC2130_STEALTH_Z
		tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS);
#endif // TMC2130_STEALTH_Z
	} else { // X Y
		tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr[axis]) << 16) | ((uint32_t)1 << 24));
		tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, isStealth ? 0 : __tcoolthrs(axis));
   24d18:	50 e0       	ldi	r21, 0x00	; 0
   24d1a:	40 e0       	ldi	r20, 0x00	; 0
   24d1c:	64 e9       	ldi	r22, 0x94	; 148
   24d1e:	8c 2f       	mov	r24, r28
   24d20:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_GCONF, isStealth ? TMC2130_GCONF_SILENT : TMC2130_GCONF_SGSENS);
   24d24:	20 e8       	ldi	r18, 0x80	; 128
   24d26:	31 e0       	ldi	r19, 0x01	; 1
   24d28:	40 e0       	ldi	r20, 0x00	; 0
   24d2a:	50 e0       	ldi	r21, 0x00	; 0
   24d2c:	d1 30       	cpi	r29, 0x01	; 1
   24d2e:	21 f4       	brne	.+8      	; 0x24d38 <tmc2130_XYZ_reg_init(unsigned char)+0x108>
   24d30:	24 e0       	ldi	r18, 0x04	; 4
   24d32:	30 e0       	ldi	r19, 0x00	; 0
   24d34:	40 e0       	ldi	r20, 0x00	; 0
   24d36:	50 e0       	ldi	r21, 0x00	; 0
   24d38:	60 e8       	ldi	r22, 0x80	; 128
   24d3a:	8c 2f       	mov	r24, r28
   24d3c:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_PWMCONF, pwmconf[axis].dw);
   24d40:	00 0f       	add	r16, r16
   24d42:	11 1f       	adc	r17, r17
   24d44:	00 0f       	add	r16, r16
   24d46:	11 1f       	adc	r17, r17
   24d48:	f8 01       	movw	r30, r16
   24d4a:	e6 5f       	subi	r30, 0xF6	; 246
   24d4c:	fc 4f       	sbci	r31, 0xFC	; 252
   24d4e:	20 81       	ld	r18, Z
   24d50:	31 81       	ldd	r19, Z+1	; 0x01
   24d52:	42 81       	ldd	r20, Z+2	; 0x02
   24d54:	53 81       	ldd	r21, Z+3	; 0x03
   24d56:	60 ef       	ldi	r22, 0xF0	; 240
   24d58:	8c 2f       	mov	r24, r28
   24d5a:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS);
   24d5e:	20 e0       	ldi	r18, 0x00	; 0
   24d60:	30 e0       	ldi	r19, 0x00	; 0
   24d62:	a9 01       	movw	r20, r18
   24d64:	63 e9       	ldi	r22, 0x93	; 147
   24d66:	8c 2f       	mov	r24, r28
   24d68:	b3 cf       	rjmp	.-154    	; 0x24cd0 <tmc2130_XYZ_reg_init(unsigned char)+0xa0>

00024d6a <tmc2130_home_exit()>:
	}
#endif //TMC2130_SG_HOMING
}

void tmc2130_home_exit()
{
   24d6a:	1f 93       	push	r17
   24d6c:	cf 93       	push	r28
   24d6e:	df 93       	push	r29
	printf_P(PSTR("tmc2130_home_exit tmc2130_sg_homing_axes_mask=0x%02x\n"), tmc2130_sg_homing_axes_mask);
   24d70:	80 91 43 06 	lds	r24, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   24d74:	1f 92       	push	r1
   24d76:	8f 93       	push	r24
   24d78:	8c ed       	ldi	r24, 0xDC	; 220
   24d7a:	9e e9       	ldi	r25, 0x9E	; 158
   24d7c:	9f 93       	push	r25
   24d7e:	8f 93       	push	r24
   24d80:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
#ifdef TMC2130_SG_HOMING
	if (tmc2130_sg_homing_axes_mask & (X_AXIS_MASK | Y_AXIS_MASK))
   24d84:	80 91 43 06 	lds	r24, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   24d88:	83 70       	andi	r24, 0x03	; 3
   24d8a:	0f 90       	pop	r0
   24d8c:	0f 90       	pop	r0
   24d8e:	0f 90       	pop	r0
   24d90:	0f 90       	pop	r0
   24d92:	11 f0       	breq	.+4      	; 0x24d98 <tmc2130_home_exit()+0x2e>
		tmc2130_wait_standstill_xy(1000);
   24d94:	0f 94 57 88 	call	0x310ae	; 0x310ae <tmc2130_wait_standstill_xy(int) [clone .constprop.139]>
	if (tmc2130_sg_homing_axes_mask)
   24d98:	10 91 43 06 	lds	r17, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   24d9c:	11 23       	and	r17, r17
   24d9e:	71 f0       	breq	.+28     	; 0x24dbc <tmc2130_home_exit()+0x52>
	{
		for (uint8_t axis = X_AXIS, mask = X_AXIS_MASK; axis <= Z_AXIS; axis++, mask <<= 1) //X Y and Z axes
   24da0:	d1 e0       	ldi	r29, 0x01	; 1
   24da2:	c0 e0       	ldi	r28, 0x00	; 0
		{
			if (tmc2130_sg_homing_axes_mask & mask) {
   24da4:	81 2f       	mov	r24, r17
   24da6:	8d 23       	and	r24, r29
   24da8:	19 f0       	breq	.+6      	; 0x24db0 <tmc2130_home_exit()+0x46>
				tmc2130_XYZ_reg_init(axis);
   24daa:	8c 2f       	mov	r24, r28
   24dac:	0f 94 18 26 	call	0x24c30	; 0x24c30 <tmc2130_XYZ_reg_init(unsigned char)>
#ifdef TMC2130_SG_HOMING
	if (tmc2130_sg_homing_axes_mask & (X_AXIS_MASK | Y_AXIS_MASK))
		tmc2130_wait_standstill_xy(1000);
	if (tmc2130_sg_homing_axes_mask)
	{
		for (uint8_t axis = X_AXIS, mask = X_AXIS_MASK; axis <= Z_AXIS; axis++, mask <<= 1) //X Y and Z axes
   24db0:	cf 5f       	subi	r28, 0xFF	; 255
   24db2:	dd 0f       	add	r29, r29
   24db4:	c3 30       	cpi	r28, 0x03	; 3
   24db6:	b1 f7       	brne	.-20     	; 0x24da4 <tmc2130_home_exit()+0x3a>
		{
			if (tmc2130_sg_homing_axes_mask & mask) {
				tmc2130_XYZ_reg_init(axis);
			}
		}
		tmc2130_sg_homing_axes_mask = 0x00;
   24db8:	10 92 43 06 	sts	0x0643, r1	; 0x800643 <tmc2130_sg_homing_axes_mask>
	}
	tmc2130_sg_crash = false;
   24dbc:	10 92 0d 05 	sts	0x050D, r1	; 0x80050d <tmc2130_sg_crash>
#endif
}
   24dc0:	df 91       	pop	r29
   24dc2:	cf 91       	pop	r28
   24dc4:	1f 91       	pop	r17
   24dc6:	08 95       	ret

00024dc8 <tmc2130_home_enter(unsigned char)>:
	}
	return false;
}

void tmc2130_home_enter(uint8_t axes_mask)
{
   24dc8:	df 92       	push	r13
   24dca:	ef 92       	push	r14
   24dcc:	ff 92       	push	r15
   24dce:	0f 93       	push	r16
   24dd0:	1f 93       	push	r17
   24dd2:	cf 93       	push	r28
   24dd4:	df 93       	push	r29
   24dd6:	00 d0       	rcall	.+0      	; 0x24dd8 <tmc2130_home_enter(unsigned char)+0x10>
   24dd8:	cd b7       	in	r28, 0x3d	; 61
   24dda:	de b7       	in	r29, 0x3e	; 62
   24ddc:	d8 2e       	mov	r13, r24
	printf_P(PSTR("tmc2130_home_enter(axes_mask=0x%02x)\n"), axes_mask);
   24dde:	1f 92       	push	r1
   24de0:	8f 93       	push	r24
   24de2:	86 eb       	ldi	r24, 0xB6	; 182
   24de4:	9e e9       	ldi	r25, 0x9E	; 158
   24de6:	9f 93       	push	r25
   24de8:	8f 93       	push	r24
   24dea:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
#ifdef TMC2130_SG_HOMING
	if (axes_mask & (X_AXIS_MASK | Y_AXIS_MASK)) //X or Y
   24dee:	8d 2d       	mov	r24, r13
   24df0:	83 70       	andi	r24, 0x03	; 3
   24df2:	0f 90       	pop	r0
   24df4:	0f 90       	pop	r0
   24df6:	0f 90       	pop	r0
   24df8:	0f 90       	pop	r0
   24dfa:	11 f0       	breq	.+4      	; 0x24e00 <tmc2130_home_enter(unsigned char)+0x38>
		tmc2130_wait_standstill_xy(1000);
   24dfc:	0f 94 57 88 	call	0x310ae	; 0x310ae <tmc2130_wait_standstill_xy(int) [clone .constprop.139]>
	}
	return false;
}

void tmc2130_home_enter(uint8_t axes_mask)
{
   24e00:	10 e0       	ldi	r17, 0x00	; 0
   24e02:	00 e0       	ldi	r16, 0x00	; 0
   24e04:	ff 24       	eor	r15, r15
   24e06:	f3 94       	inc	r15
   24e08:	e0 2e       	mov	r14, r16
#ifdef TMC2130_SG_HOMING
	if (axes_mask & (X_AXIS_MASK | Y_AXIS_MASK)) //X or Y
		tmc2130_wait_standstill_xy(1000);
	for (uint8_t axis = X_AXIS, mask = X_AXIS_MASK; axis <= Z_AXIS; axis++, mask <<= 1) //X Y and Z axes
	{
		if (axes_mask & mask)
   24e0a:	8d 2d       	mov	r24, r13
   24e0c:	8f 21       	and	r24, r15
   24e0e:	09 f4       	brne	.+2      	; 0x24e12 <tmc2130_home_enter(unsigned char)+0x4a>
   24e10:	46 c0       	rjmp	.+140    	; 0x24e9e <tmc2130_home_enter(unsigned char)+0xd6>
		{
			tmc2130_sg_homing_axes_mask |= mask;
   24e12:	80 91 43 06 	lds	r24, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   24e16:	8f 29       	or	r24, r15
   24e18:	80 93 43 06 	sts	0x0643, r24	; 0x800643 <tmc2130_sg_homing_axes_mask>
			//Configuration to spreadCycle
			tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_NORMAL);
   24e1c:	20 e0       	ldi	r18, 0x00	; 0
   24e1e:	30 e0       	ldi	r19, 0x00	; 0
   24e20:	a9 01       	movw	r20, r18
   24e22:	60 e8       	ldi	r22, 0x80	; 128
   24e24:	80 2f       	mov	r24, r16
   24e26:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
			tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr_home[axis]) << 16));
   24e2a:	f8 01       	movw	r30, r16
   24e2c:	e6 5e       	subi	r30, 0xE6	; 230
   24e2e:	fc 4f       	sbci	r31, 0xFC	; 252
   24e30:	20 81       	ld	r18, Z
   24e32:	30 e0       	ldi	r19, 0x00	; 0
   24e34:	50 e0       	ldi	r21, 0x00	; 0
   24e36:	40 e0       	ldi	r20, 0x00	; 0
   24e38:	a9 01       	movw	r20, r18
   24e3a:	33 27       	eor	r19, r19
   24e3c:	22 27       	eor	r18, r18
   24e3e:	6d ee       	ldi	r22, 0xED	; 237
   24e40:	80 2f       	mov	r24, r16
   24e42:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
static void tmc2130_tx(uint8_t axis, uint8_t addr, uint32_t wval);
static uint8_t tmc2130_rx(uint8_t axis, uint8_t addr, uint32_t* rval);

uint16_t __tcoolthrs(uint8_t axis)
{
	switch (axis)
   24e46:	82 e0       	ldi	r24, 0x02	; 2
	{
	case X_AXIS: return TMC2130_TCOOLTHRS_X;
	case Y_AXIS: return TMC2130_TCOOLTHRS_Y;
	case Z_AXIS: return TMC2130_TCOOLTHRS_Z;
   24e48:	24 ef       	ldi	r18, 0xF4	; 244
   24e4a:	31 e0       	ldi	r19, 0x01	; 1
static void tmc2130_tx(uint8_t axis, uint8_t addr, uint32_t wval);
static uint8_t tmc2130_rx(uint8_t axis, uint8_t addr, uint32_t* rval);

uint16_t __tcoolthrs(uint8_t axis)
{
	switch (axis)
   24e4c:	08 17       	cp	r16, r24
   24e4e:	11 f0       	breq	.+4      	; 0x24e54 <tmc2130_home_enter(unsigned char)+0x8c>
	{
	case X_AXIS: return TMC2130_TCOOLTHRS_X;
   24e50:	2e ea       	ldi	r18, 0xAE	; 174
   24e52:	31 e0       	ldi	r19, 0x01	; 1
		{
			tmc2130_sg_homing_axes_mask |= mask;
			//Configuration to spreadCycle
			tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_NORMAL);
			tmc2130_wr(axis, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr_home[axis]) << 16));
			tmc2130_wr(axis, TMC2130_REG_TCOOLTHRS, __tcoolthrs(axis));
   24e54:	50 e0       	ldi	r21, 0x00	; 0
   24e56:	40 e0       	ldi	r20, 0x00	; 0
   24e58:	64 e9       	ldi	r22, 0x94	; 148
   24e5a:	8e 2d       	mov	r24, r14
   24e5c:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
            iRun >>= 1;
        }
    }

    // PROGMEM initializer
    inline __attribute__((always_inline)) MotorCurrents(const MotorCurrents &curr_P) { memcpy_P(this, &curr_P, sizeof(*this)); }
   24e60:	b8 01       	movw	r22, r16
   24e62:	66 0f       	add	r22, r22
   24e64:	77 1f       	adc	r23, r23
   24e66:	60 0f       	add	r22, r16
   24e68:	71 1f       	adc	r23, r17
   24e6a:	66 55       	subi	r22, 0x56	; 86
   24e6c:	71 46       	sbci	r23, 0x61	; 97
   24e6e:	43 e0       	ldi	r20, 0x03	; 3
   24e70:	50 e0       	ldi	r21, 0x00	; 0
   24e72:	ce 01       	movw	r24, r28
   24e74:	01 96       	adiw	r24, 0x01	; 1
   24e76:	0f 94 f5 d9 	call	0x3b3ea	; 0x3b3ea <memcpy_P>
			MotorCurrents curr(homing_currents_P[axis]);
			tmc2130_setup_chopper(axis, tmc2130_mres[axis], &curr);
   24e7a:	ae 01       	movw	r20, r28
   24e7c:	4f 5f       	subi	r20, 0xFF	; 255
   24e7e:	5f 4f       	sbci	r21, 0xFF	; 255
   24e80:	f8 01       	movw	r30, r16
   24e82:	eb 50       	subi	r30, 0x0B	; 11
   24e84:	fb 4f       	sbci	r31, 0xFB	; 251
   24e86:	60 81       	ld	r22, Z
   24e88:	8e 2d       	mov	r24, r14
   24e8a:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
			tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS); //stallguard output DIAG1, DIAG1 = pushpull
   24e8e:	20 e8       	ldi	r18, 0x80	; 128
   24e90:	31 e0       	ldi	r19, 0x01	; 1
   24e92:	40 e0       	ldi	r20, 0x00	; 0
   24e94:	50 e0       	ldi	r21, 0x00	; 0
   24e96:	60 e8       	ldi	r22, 0x80	; 128
   24e98:	8e 2d       	mov	r24, r14
   24e9a:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
{
	printf_P(PSTR("tmc2130_home_enter(axes_mask=0x%02x)\n"), axes_mask);
#ifdef TMC2130_SG_HOMING
	if (axes_mask & (X_AXIS_MASK | Y_AXIS_MASK)) //X or Y
		tmc2130_wait_standstill_xy(1000);
	for (uint8_t axis = X_AXIS, mask = X_AXIS_MASK; axis <= Z_AXIS; axis++, mask <<= 1) //X Y and Z axes
   24e9e:	ff 0c       	add	r15, r15
   24ea0:	0f 5f       	subi	r16, 0xFF	; 255
   24ea2:	1f 4f       	sbci	r17, 0xFF	; 255
   24ea4:	03 30       	cpi	r16, 0x03	; 3
   24ea6:	11 05       	cpc	r17, r1
   24ea8:	09 f0       	breq	.+2      	; 0x24eac <tmc2130_home_enter(unsigned char)+0xe4>
   24eaa:	ae cf       	rjmp	.-164    	; 0x24e08 <tmc2130_home_enter(unsigned char)+0x40>
			tmc2130_setup_chopper(axis, tmc2130_mres[axis], &curr);
			tmc2130_wr(axis, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS); //stallguard output DIAG1, DIAG1 = pushpull
		}
	}
#endif //TMC2130_SG_HOMING
}
   24eac:	0f 90       	pop	r0
   24eae:	0f 90       	pop	r0
   24eb0:	0f 90       	pop	r0
   24eb2:	df 91       	pop	r29
   24eb4:	cf 91       	pop	r28
   24eb6:	1f 91       	pop	r17
   24eb8:	0f 91       	pop	r16
   24eba:	ff 90       	pop	r15
   24ebc:	ef 90       	pop	r14
   24ebe:	df 90       	pop	r13
   24ec0:	08 95       	ret

00024ec2 <crashdet_use_eeprom_setting()>:
		crashdet_stop_and_save_print();
	}
}

void crashdet_use_eeprom_setting() {
	tmc2130_sg_stop_on_crash = eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET);
   24ec2:	89 e6       	ldi	r24, 0x69	; 105
   24ec4:	9f e0       	ldi	r25, 0x0F	; 15
   24ec6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   24eca:	91 e0       	ldi	r25, 0x01	; 1
   24ecc:	81 11       	cpse	r24, r1
   24ece:	01 c0       	rjmp	.+2      	; 0x24ed2 <crashdet_use_eeprom_setting()+0x10>
   24ed0:	90 e0       	ldi	r25, 0x00	; 0
   24ed2:	90 93 5c 02 	sts	0x025C, r25	; 0x80025c <tmc2130_sg_stop_on_crash>
}
   24ed6:	08 95       	ret

00024ed8 <tmc2130_init(TMCInitParams)>:
		tmc2130_wr(axis, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS);
	}
}

void tmc2130_init(TMCInitParams params)
{
   24ed8:	cf 93       	push	r28
   24eda:	c8 2f       	mov	r28, r24
//	DBG(_n("tmc2130_init(), mode=%S\n"), tmc2130_mode?_n("STEALTH"):_n("NORMAL"));
	WRITE(X_TMC2130_CS, HIGH);
   24edc:	a0 9a       	sbi	0x14, 0	; 20
	WRITE(Y_TMC2130_CS, HIGH);
   24ede:	a2 9a       	sbi	0x14, 2	; 20
	WRITE(Z_TMC2130_CS, HIGH);
   24ee0:	9f b7       	in	r25, 0x3f	; 63
   24ee2:	f8 94       	cli
   24ee4:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24ee8:	80 62       	ori	r24, 0x20	; 32
   24eea:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24eee:	9f bf       	out	0x3f, r25	; 63
	WRITE(E0_TMC2130_CS, HIGH);
   24ef0:	9f b7       	in	r25, 0x3f	; 63
   24ef2:	f8 94       	cli
   24ef4:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24ef8:	80 61       	ori	r24, 0x10	; 16
   24efa:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24efe:	9f bf       	out	0x3f, r25	; 63
	SET_OUTPUT(X_TMC2130_CS);
   24f00:	98 9a       	sbi	0x13, 0	; 19
	SET_OUTPUT(Y_TMC2130_CS);
   24f02:	9a 9a       	sbi	0x13, 2	; 19
	SET_OUTPUT(Z_TMC2130_CS);
   24f04:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f08:	80 62       	ori	r24, 0x20	; 32
   24f0a:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
	SET_OUTPUT(E0_TMC2130_CS);
   24f0e:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f12:	80 61       	ori	r24, 0x10	; 16
   24f14:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>

	SET_INPUT(X_TMC2130_DIAG);
   24f18:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f1c:	8b 7f       	andi	r24, 0xFB	; 251
   24f1e:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
	SET_INPUT(Y_TMC2130_DIAG);
   24f22:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f26:	8f 77       	andi	r24, 0x7F	; 127
   24f28:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
	SET_INPUT(Z_TMC2130_DIAG);
   24f2c:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f30:	8f 7b       	andi	r24, 0xBF	; 191
   24f32:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
	SET_INPUT(E0_TMC2130_DIAG);
   24f36:	80 91 07 01 	lds	r24, 0x0107	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
   24f3a:	87 7f       	andi	r24, 0xF7	; 247
   24f3c:	80 93 07 01 	sts	0x0107, r24	; 0x800107 <__TEXT_REGION_LENGTH__+0x7c2107>
	WRITE(X_TMC2130_DIAG,HIGH);
   24f40:	9f b7       	in	r25, 0x3f	; 63
   24f42:	f8 94       	cli
   24f44:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f48:	84 60       	ori	r24, 0x04	; 4
   24f4a:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f4e:	9f bf       	out	0x3f, r25	; 63
	WRITE(Y_TMC2130_DIAG,HIGH);
   24f50:	9f b7       	in	r25, 0x3f	; 63
   24f52:	f8 94       	cli
   24f54:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f58:	80 68       	ori	r24, 0x80	; 128
   24f5a:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f5e:	9f bf       	out	0x3f, r25	; 63
	WRITE(Z_TMC2130_DIAG,HIGH);
   24f60:	9f b7       	in	r25, 0x3f	; 63
   24f62:	f8 94       	cli
   24f64:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f68:	80 64       	ori	r24, 0x40	; 64
   24f6a:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f6e:	9f bf       	out	0x3f, r25	; 63
	WRITE(E0_TMC2130_DIAG,HIGH);
   24f70:	9f b7       	in	r25, 0x3f	; 63
   24f72:	f8 94       	cli
   24f74:	80 91 08 01 	lds	r24, 0x0108	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f78:	88 60       	ori	r24, 0x08	; 8
   24f7a:	80 93 08 01 	sts	0x0108, r24	; 0x800108 <__TEXT_REGION_LENGTH__+0x7c2108>
   24f7e:	9f bf       	out	0x3f, r25	; 63

	for (uint_least8_t axis = 0; axis < E_AXIS; axis++) // X Y Z axes
	{
		tmc2130_XYZ_reg_init(axis);
   24f80:	80 e0       	ldi	r24, 0x00	; 0
   24f82:	0f 94 18 26 	call	0x24c30	; 0x24c30 <tmc2130_XYZ_reg_init(unsigned char)>
   24f86:	81 e0       	ldi	r24, 0x01	; 1
   24f88:	0f 94 18 26 	call	0x24c30	; 0x24c30 <tmc2130_XYZ_reg_init(unsigned char)>
   24f8c:	82 e0       	ldi	r24, 0x02	; 2
   24f8e:	0f 94 18 26 	call	0x24c30	; 0x24c30 <tmc2130_XYZ_reg_init(unsigned char)>
	}

    // E axis
    tmc2130_setup_chopper(E_AXIS, tmc2130_mres[E_AXIS]);
   24f92:	50 e0       	ldi	r21, 0x00	; 0
   24f94:	40 e0       	ldi	r20, 0x00	; 0
   24f96:	60 91 f8 04 	lds	r22, 0x04F8	; 0x8004f8 <tmc2130_mres+0x3>
   24f9a:	83 e0       	ldi	r24, 0x03	; 3
   24f9c:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
    tmc2130_wr(E_AXIS, TMC2130_REG_TPOWERDOWN, 0x00000000);
   24fa0:	20 e0       	ldi	r18, 0x00	; 0
   24fa2:	30 e0       	ldi	r19, 0x00	; 0
   24fa4:	a9 01       	movw	r20, r18
   24fa6:	61 e9       	ldi	r22, 0x91	; 145
   24fa8:	83 e0       	ldi	r24, 0x03	; 3
   24faa:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
#ifndef TMC2130_STEALTH_E
    if( ! params.enableECool ){
   24fae:	c1 fd       	sbrc	r28, 1
   24fb0:	1d c0       	rjmp	.+58     	; 0x24fec <tmc2130_init(TMCInitParams)+0x114>
        tmc2130_wr(E_AXIS, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS);
   24fb2:	20 e8       	ldi	r18, 0x80	; 128
   24fb4:	31 e0       	ldi	r19, 0x01	; 1
   24fb6:	40 e0       	ldi	r20, 0x00	; 0
   24fb8:	50 e0       	ldi	r21, 0x00	; 0
   24fba:	60 e8       	ldi	r22, 0x80	; 128
   24fbc:	83 e0       	ldi	r24, 0x03	; 3
   24fbe:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
    tmc2130_wr(E_AXIS, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS);
#endif //TMC2130_STEALTH_E

#ifdef TMC2130_LINEARITY_CORRECTION
#ifdef TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_set_wave(X_AXIS, 247, tmc2130_wave_fac[X_AXIS]);
   24fc2:	60 91 f9 04 	lds	r22, 0x04F9	; 0x8004f9 <tmc2130_wave_fac>
   24fc6:	80 e0       	ldi	r24, 0x00	; 0
   24fc8:	0f 94 cb 88 	call	0x31196	; 0x31196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>
	tmc2130_set_wave(Y_AXIS, 247, tmc2130_wave_fac[Y_AXIS]);
   24fcc:	60 91 fa 04 	lds	r22, 0x04FA	; 0x8004fa <tmc2130_wave_fac+0x1>
   24fd0:	81 e0       	ldi	r24, 0x01	; 1
   24fd2:	0f 94 cb 88 	call	0x31196	; 0x31196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>
	tmc2130_set_wave(Z_AXIS, 247, tmc2130_wave_fac[Z_AXIS]);
   24fd6:	60 91 fb 04 	lds	r22, 0x04FB	; 0x8004fb <tmc2130_wave_fac+0x2>
   24fda:	82 e0       	ldi	r24, 0x02	; 2
   24fdc:	0f 94 cb 88 	call	0x31196	; 0x31196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>
#endif //TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_set_wave(E_AXIS, 247, tmc2130_wave_fac[E_AXIS]);
   24fe0:	60 91 fc 04 	lds	r22, 0x04FC	; 0x8004fc <tmc2130_wave_fac+0x3>
   24fe4:	83 e0       	ldi	r24, 0x03	; 3
#ifdef PSU_Delta
     if(!params.bSuppressFlag)
          check_force_z();
#endif // PSU_Delta

}
   24fe6:	cf 91       	pop	r28
#ifdef TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_set_wave(X_AXIS, 247, tmc2130_wave_fac[X_AXIS]);
	tmc2130_set_wave(Y_AXIS, 247, tmc2130_wave_fac[Y_AXIS]);
	tmc2130_set_wave(Z_AXIS, 247, tmc2130_wave_fac[Z_AXIS]);
#endif //TMC2130_LINEARITY_CORRECTION_XYZ
	tmc2130_set_wave(E_AXIS, 247, tmc2130_wave_fac[E_AXIS]);
   24fe8:	0d 94 cb 88 	jmp	0x31196	; 0x31196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>
    tmc2130_wr(E_AXIS, TMC2130_REG_TPOWERDOWN, 0x00000000);
#ifndef TMC2130_STEALTH_E
    if( ! params.enableECool ){
        tmc2130_wr(E_AXIS, TMC2130_REG_GCONF, TMC2130_GCONF_SGSENS);
    } else {
        tmc2130_wr(E_AXIS, TMC2130_REG_COOLCONF, (((uint32_t)tmc2130_sg_thr[E_AXIS]) << 16));
   24fec:	20 e0       	ldi	r18, 0x00	; 0
   24fee:	30 e0       	ldi	r19, 0x00	; 0
   24ff0:	43 e0       	ldi	r20, 0x03	; 3
   24ff2:	50 e0       	ldi	r21, 0x00	; 0
   24ff4:	6d ee       	ldi	r22, 0xED	; 237
   24ff6:	83 e0       	ldi	r24, 0x03	; 3
   24ff8:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
        tmc2130_wr(E_AXIS, TMC2130_REG_TCOOLTHRS, 0);
   24ffc:	20 e0       	ldi	r18, 0x00	; 0
   24ffe:	30 e0       	ldi	r19, 0x00	; 0
   25000:	a9 01       	movw	r20, r18
   25002:	64 e9       	ldi	r22, 0x94	; 148
   25004:	83 e0       	ldi	r24, 0x03	; 3
   25006:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
        tmc2130_wr(E_AXIS, TMC2130_REG_GCONF, TMC2130_GCONF_SILENT);
   2500a:	24 e0       	ldi	r18, 0x04	; 4
   2500c:	30 e0       	ldi	r19, 0x00	; 0
   2500e:	40 e0       	ldi	r20, 0x00	; 0
   25010:	50 e0       	ldi	r21, 0x00	; 0
   25012:	60 e8       	ldi	r22, 0x80	; 128
   25014:	83 e0       	ldi	r24, 0x03	; 3
   25016:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
        tmc2130_wr(E_AXIS, TMC2130_REG_PWMCONF, pwmconf_Ecool.dw);
   2501a:	2b e2       	ldi	r18, 0x2B	; 43
   2501c:	34 e5       	ldi	r19, 0x54	; 84
   2501e:	42 e0       	ldi	r20, 0x02	; 2
   25020:	50 e0       	ldi	r21, 0x00	; 0
   25022:	60 ef       	ldi	r22, 0xF0	; 240
   25024:	83 e0       	ldi	r24, 0x03	; 3
   25026:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
        tmc2130_wr(E_AXIS, TMC2130_REG_TPWMTHRS, TMC2130_TPWMTHRS_E);
   2502a:	23 e9       	ldi	r18, 0x93	; 147
   2502c:	31 e0       	ldi	r19, 0x01	; 1
   2502e:	40 e0       	ldi	r20, 0x00	; 0
   25030:	50 e0       	ldi	r21, 0x00	; 0
   25032:	63 e9       	ldi	r22, 0x93	; 147
   25034:	83 e0       	ldi	r24, 0x03	; 3
   25036:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
        SERIAL_ECHOLNRPGM(eMotorCurrentScalingEnabled);
   2503a:	8a e8       	ldi	r24, 0x8A	; 138
   2503c:	9e e9       	ldi	r25, 0x9E	; 158
   2503e:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   25042:	bf cf       	rjmp	.-130    	; 0x24fc2 <tmc2130_init(TMCInitParams)+0xea>

00025044 <MotorCurrents::getOriginaliHold() const>:
        , iHold((ir < 32) ? ih : (ih >> 1)) {}

    inline uint8_t getiRun() const { return iRun; }
    inline uint8_t getiHold() const { return min(iHold, iRun); }
    inline uint8_t getOriginaliRun() const { return vSense ? iRun : iRun << 1; }
    inline uint8_t getOriginaliHold() const { return min(vSense ? iHold : iHold << 1, getOriginaliRun()); }
   25044:	fc 01       	movw	r30, r24
   25046:	20 81       	ld	r18, Z
   25048:	92 81       	ldd	r25, Z+2	; 0x02
   2504a:	49 2f       	mov	r20, r25
   2504c:	50 e0       	ldi	r21, 0x00	; 0
   2504e:	21 11       	cpse	r18, r1
   25050:	02 c0       	rjmp	.+4      	; 0x25056 <MotorCurrents::getOriginaliHold() const+0x12>
   25052:	44 0f       	add	r20, r20
   25054:	55 1f       	adc	r21, r21
   25056:	81 81       	ldd	r24, Z+1	; 0x01
        , iRun((ir < 32) ? ir : (ir >> 1))
        , iHold((ir < 32) ? ih : (ih >> 1)) {}

    inline uint8_t getiRun() const { return iRun; }
    inline uint8_t getiHold() const { return min(iHold, iRun); }
    inline uint8_t getOriginaliRun() const { return vSense ? iRun : iRun << 1; }
   25058:	21 11       	cpse	r18, r1
   2505a:	01 c0       	rjmp	.+2      	; 0x2505e <MotorCurrents::getOriginaliHold() const+0x1a>
   2505c:	88 0f       	add	r24, r24
    inline uint8_t getOriginaliHold() const { return min(vSense ? iHold : iHold << 1, getOriginaliRun()); }
   2505e:	84 17       	cp	r24, r20
   25060:	15 06       	cpc	r1, r21
   25062:	31 f0       	breq	.+12     	; 0x25070 <MotorCurrents::getOriginaliHold() const+0x2c>
   25064:	2c f0       	brlt	.+10     	; 0x25070 <MotorCurrents::getOriginaliHold() const+0x2c>
   25066:	89 2f       	mov	r24, r25
   25068:	21 11       	cpse	r18, r1
   2506a:	02 c0       	rjmp	.+4      	; 0x25070 <MotorCurrents::getOriginaliHold() const+0x2c>
   2506c:	88 0f       	add	r24, r24
   2506e:	08 95       	ret
   25070:	08 95       	ret

00025072 <micros2>:
}

unsigned long micros2(void)
{
	unsigned long m;
	uint8_t oldSREG = SREG, t;
   25072:	3f b7       	in	r19, 0x3f	; 63
	cli();
   25074:	f8 94       	cli
	m = timer2_overflow_count;
   25076:	80 91 3f 06 	lds	r24, 0x063F	; 0x80063f <timer2_overflow_count>
   2507a:	90 91 40 06 	lds	r25, 0x0640	; 0x800640 <timer2_overflow_count+0x1>
   2507e:	a0 91 41 06 	lds	r26, 0x0641	; 0x800641 <timer2_overflow_count+0x2>
   25082:	b0 91 42 06 	lds	r27, 0x0642	; 0x800642 <timer2_overflow_count+0x3>
#if defined(TCNT2)
	t = TCNT2;
   25086:	20 91 b2 00 	lds	r18, 0x00B2	; 0x8000b2 <__TEXT_REGION_LENGTH__+0x7c20b2>
	t = TCNT2L;
#else
	#error TIMER 2 not defined
#endif
#ifdef TIFR2
	if ((TIFR2 & _BV(TOV2)) && (t < 255))
   2508a:	b8 9b       	sbis	0x17, 0	; 23
   2508c:	05 c0       	rjmp	.+10     	; 0x25098 <micros2+0x26>
   2508e:	2f 3f       	cpi	r18, 0xFF	; 255
   25090:	19 f0       	breq	.+6      	; 0x25098 <micros2+0x26>
		m++;
   25092:	01 96       	adiw	r24, 0x01	; 1
   25094:	a1 1d       	adc	r26, r1
   25096:	b1 1d       	adc	r27, r1
#else
	if ((TIFR & _BV(TOV2)) && (t < 255))
		m++;
#endif
	SREG = oldSREG;
   25098:	3f bf       	out	0x3f, r19	; 63
	return ((m << 8) + t) * (64 / clockCyclesPerMicrosecond());
   2509a:	ba 2f       	mov	r27, r26
   2509c:	a9 2f       	mov	r26, r25
   2509e:	98 2f       	mov	r25, r24
   250a0:	88 27       	eor	r24, r24
   250a2:	bc 01       	movw	r22, r24
   250a4:	cd 01       	movw	r24, r26
   250a6:	62 0f       	add	r22, r18
   250a8:	71 1d       	adc	r23, r1
   250aa:	81 1d       	adc	r24, r1
   250ac:	91 1d       	adc	r25, r1
   250ae:	42 e0       	ldi	r20, 0x02	; 2
   250b0:	66 0f       	add	r22, r22
   250b2:	77 1f       	adc	r23, r23
   250b4:	88 1f       	adc	r24, r24
   250b6:	99 1f       	adc	r25, r25
   250b8:	4a 95       	dec	r20
   250ba:	d1 f7       	brne	.-12     	; 0x250b0 <micros2+0x3e>
}
   250bc:	08 95       	ret

000250be <delay2>:

void delay2(unsigned long ms)
{
   250be:	8f 92       	push	r8
   250c0:	9f 92       	push	r9
   250c2:	af 92       	push	r10
   250c4:	bf 92       	push	r11
   250c6:	cf 92       	push	r12
   250c8:	df 92       	push	r13
   250ca:	ef 92       	push	r14
   250cc:	ff 92       	push	r15
   250ce:	6b 01       	movw	r12, r22
   250d0:	7c 01       	movw	r14, r24
	uint32_t start = micros2();
   250d2:	0f 94 39 28 	call	0x25072	; 0x25072 <micros2>
   250d6:	4b 01       	movw	r8, r22
   250d8:	5c 01       	movw	r10, r24
	while (ms > 0)
	{
		yield();
		while ( ms > 0 && (micros2() - start) >= 1000)
   250da:	c1 14       	cp	r12, r1
   250dc:	d1 04       	cpc	r13, r1
   250de:	e1 04       	cpc	r14, r1
   250e0:	f1 04       	cpc	r15, r1
   250e2:	b9 f0       	breq	.+46     	; 0x25112 <delay2+0x54>
   250e4:	0f 94 39 28 	call	0x25072	; 0x25072 <micros2>
   250e8:	68 19       	sub	r22, r8
   250ea:	79 09       	sbc	r23, r9
   250ec:	8a 09       	sbc	r24, r10
   250ee:	9b 09       	sbc	r25, r11
   250f0:	68 3e       	cpi	r22, 0xE8	; 232
   250f2:	73 40       	sbci	r23, 0x03	; 3
   250f4:	81 05       	cpc	r24, r1
   250f6:	91 05       	cpc	r25, r1
   250f8:	80 f3       	brcs	.-32     	; 0x250da <delay2+0x1c>
		{
			ms--;
   250fa:	21 e0       	ldi	r18, 0x01	; 1
   250fc:	c2 1a       	sub	r12, r18
   250fe:	d1 08       	sbc	r13, r1
   25100:	e1 08       	sbc	r14, r1
   25102:	f1 08       	sbc	r15, r1
			start += 1000;
   25104:	88 ee       	ldi	r24, 0xE8	; 232
   25106:	88 0e       	add	r8, r24
   25108:	83 e0       	ldi	r24, 0x03	; 3
   2510a:	98 1e       	adc	r9, r24
   2510c:	a1 1c       	adc	r10, r1
   2510e:	b1 1c       	adc	r11, r1
   25110:	e4 cf       	rjmp	.-56     	; 0x250da <delay2+0x1c>
		}
	}
}
   25112:	ff 90       	pop	r15
   25114:	ef 90       	pop	r14
   25116:	df 90       	pop	r13
   25118:	cf 90       	pop	r12
   2511a:	bf 90       	pop	r11
   2511c:	af 90       	pop	r10
   2511e:	9f 90       	pop	r9
   25120:	8f 90       	pop	r8
   25122:	08 95       	ret

00025124 <lcd_babystep_z() [clone .lto_priv.406]>:
 * @param axis AxisEnum X_AXIS Y_AXIS Z_AXIS
 * other value leads to storing Z_AXIS
 * @param msg text to be displayed
 */
static void lcd_babystep_z()
{
   25124:	ef 92       	push	r14
   25126:	ff 92       	push	r15
   25128:	0f 93       	push	r16
   2512a:	1f 93       	push	r17
   2512c:	cf 93       	push	r28
   2512e:	df 93       	push	r29
   25130:	cd b7       	in	r28, 0x3d	; 61
   25132:	de b7       	in	r29, 0x3e	; 62
   25134:	63 97       	sbiw	r28, 0x13	; 19
   25136:	0f b6       	in	r0, 0x3f	; 63
   25138:	f8 94       	cli
   2513a:	de bf       	out	0x3e, r29	; 62
   2513c:	0f be       	out	0x3f, r0	; 63
   2513e:	cd bf       	out	0x3d, r28	; 61
		int16_t babystepMemZ;
		float babystepMemMMZ;
	} _menu_data_t;
	static_assert(sizeof(menu_data)>= sizeof(_menu_data_t),"_menu_data_t doesn't fit into menu_data");
	_menu_data_t* _md = (_menu_data_t*)&(menu_data[0]);
	if (_md->status == 0)
   25140:	80 91 a9 03 	lds	r24, 0x03A9	; 0x8003a9 <menu_data>
   25144:	81 11       	cpse	r24, r1
   25146:	3a c0       	rjmp	.+116    	; 0x251bc <lcd_babystep_z() [clone .lto_priv.406]+0x98>
	{
		// Menu was entered.
		// Initialize its status.
		_md->status = 1;
   25148:	81 e0       	ldi	r24, 0x01	; 1
   2514a:	80 93 a9 03 	sts	0x03A9, r24	; 0x8003a9 <menu_data>
		check_babystep();
   2514e:	0e 94 06 79 	call	0xf20c	; 0xf20c <check_babystep()>

		if(!eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))){
   25152:	81 ea       	ldi	r24, 0xA1	; 161
   25154:	9d e0       	ldi	r25, 0x0D	; 13
   25156:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2515a:	18 2f       	mov	r17, r24
   2515c:	0e 94 c8 75 	call	0xeb90	; 0xeb90 <eeprom_is_sheet_initialized(unsigned char)>
   25160:	81 11       	cpse	r24, r1
   25162:	ee c0       	rjmp	.+476    	; 0x25340 <lcd_babystep_z() [clone .lto_priv.406]+0x21c>
			_md->babystepMemZ = 0;
   25164:	10 92 ab 03 	sts	0x03AB, r1	; 0x8003ab <menu_data+0x2>
   25168:	10 92 aa 03 	sts	0x03AA, r1	; 0x8003aa <menu_data+0x1>
			_md->babystepMemZ = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
					s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)));
		}

		// same logic as in babystep_load
	    if (!calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST))
   2516c:	80 e1       	ldi	r24, 0x10	; 16
   2516e:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   25172:	81 11       	cpse	r24, r1
   25174:	04 c0       	rjmp	.+8      	; 0x2517e <lcd_babystep_z() [clone .lto_priv.406]+0x5a>
			_md->babystepMemZ = 0;
   25176:	10 92 ab 03 	sts	0x03AB, r1	; 0x8003ab <menu_data+0x2>
   2517a:	10 92 aa 03 	sts	0x03AA, r1	; 0x8003aa <menu_data+0x1>

		_md->babystepMemMMZ = _md->babystepMemZ/cs.axis_steps_per_mm[Z_AXIS];
   2517e:	60 91 aa 03 	lds	r22, 0x03AA	; 0x8003aa <menu_data+0x1>
   25182:	70 91 ab 03 	lds	r23, 0x03AB	; 0x8003ab <menu_data+0x2>
   25186:	07 2e       	mov	r0, r23
   25188:	00 0c       	add	r0, r0
   2518a:	88 0b       	sbc	r24, r24
   2518c:	99 0b       	sbc	r25, r25
   2518e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   25192:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   25196:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2519a:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   2519e:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   251a2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   251a6:	60 93 ac 03 	sts	0x03AC, r22	; 0x8003ac <menu_data+0x3>
   251aa:	70 93 ad 03 	sts	0x03AD, r23	; 0x8003ad <menu_data+0x4>
   251ae:	80 93 ae 03 	sts	0x03AE, r24	; 0x8003ae <menu_data+0x5>
   251b2:	90 93 af 03 	sts	0x03AF, r25	; 0x8003af <menu_data+0x6>
		lcd_draw_update = 1;
   251b6:	81 e0       	ldi	r24, 0x01	; 1
   251b8:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
		//SERIAL_ECHO("Z baby step: ");
		//SERIAL_ECHO(_md->babystepMem[2]);
	}

	if (lcd_encoder != 0)
   251bc:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   251c0:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   251c4:	00 97       	sbiw	r24, 0x00	; 0
   251c6:	f1 f1       	breq	.+124    	; 0x25244 <lcd_babystep_z() [clone .lto_priv.406]+0x120>
	{
		_md->babystepMemZ += lcd_encoder;
   251c8:	20 91 aa 03 	lds	r18, 0x03AA	; 0x8003aa <menu_data+0x1>
   251cc:	30 91 ab 03 	lds	r19, 0x03AB	; 0x8003ab <menu_data+0x2>
   251d0:	28 0f       	add	r18, r24
   251d2:	39 1f       	adc	r19, r25
   251d4:	30 93 ab 03 	sts	0x03AB, r19	; 0x8003ab <menu_data+0x2>
   251d8:	20 93 aa 03 	sts	0x03AA, r18	; 0x8003aa <menu_data+0x1>

        if (_md->babystepMemZ < Z_BABYSTEP_MIN) _md->babystepMemZ = Z_BABYSTEP_MIN; //-3999 -> -9.99 mm
   251dc:	21 36       	cpi	r18, 0x61	; 97
   251de:	40 ef       	ldi	r20, 0xF0	; 240
   251e0:	34 07       	cpc	r19, r20
   251e2:	0c f0       	brlt	.+2      	; 0x251e6 <lcd_babystep_z() [clone .lto_priv.406]+0xc2>
   251e4:	ba c0       	rjmp	.+372    	; 0x2535a <lcd_babystep_z() [clone .lto_priv.406]+0x236>
   251e6:	81 e6       	ldi	r24, 0x61	; 97
   251e8:	90 ef       	ldi	r25, 0xF0	; 240
   251ea:	90 93 ab 03 	sts	0x03AB, r25	; 0x8003ab <menu_data+0x2>
   251ee:	80 93 aa 03 	sts	0x03AA, r24	; 0x8003aa <menu_data+0x1>
        else if (_md->babystepMemZ > Z_BABYSTEP_MAX) _md->babystepMemZ = Z_BABYSTEP_MAX; //0
        else babystepsTodoZadd(lcd_encoder);

		_md->babystepMemMMZ = _md->babystepMemZ/cs.axis_steps_per_mm[Z_AXIS];
   251f2:	60 91 aa 03 	lds	r22, 0x03AA	; 0x8003aa <menu_data+0x1>
   251f6:	70 91 ab 03 	lds	r23, 0x03AB	; 0x8003ab <menu_data+0x2>
   251fa:	07 2e       	mov	r0, r23
   251fc:	00 0c       	add	r0, r0
   251fe:	88 0b       	sbc	r24, r24
   25200:	99 0b       	sbc	r25, r25
   25202:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   25206:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   2520a:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2520e:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   25212:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   25216:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2521a:	60 93 ac 03 	sts	0x03AC, r22	; 0x8003ac <menu_data+0x3>
   2521e:	70 93 ad 03 	sts	0x03AD, r23	; 0x8003ad <menu_data+0x4>
   25222:	80 93 ae 03 	sts	0x03AE, r24	; 0x8003ae <menu_data+0x5>
   25226:	90 93 af 03 	sts	0x03AF, r25	; 0x8003af <menu_data+0x6>
		_delay(50);
   2522a:	62 e3       	ldi	r22, 0x32	; 50
   2522c:	70 e0       	ldi	r23, 0x00	; 0
   2522e:	80 e0       	ldi	r24, 0x00	; 0
   25230:	90 e0       	ldi	r25, 0x00	; 0
   25232:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
		lcd_encoder = 0;
   25236:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   2523a:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
		lcd_draw_update = 1;
   2523e:	81 e0       	ldi	r24, 0x01	; 1
   25240:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
	}
	if (lcd_draw_update)
   25244:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   25248:	88 23       	and	r24, r24
   2524a:	c9 f1       	breq	.+114    	; 0x252be <lcd_babystep_z() [clone .lto_priv.406]+0x19a>
	{
	    SheetFormatBuffer buffer;
	    menu_format_sheet_E(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))], buffer);
   2524c:	81 ea       	ldi	r24, 0xA1	; 161
   2524e:	9d e0       	ldi	r25, 0x0D	; 13
   25250:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   25254:	2b e0       	ldi	r18, 0x0B	; 11
   25256:	82 9f       	mul	r24, r18
   25258:	c0 01       	movw	r24, r0
   2525a:	11 24       	eor	r1, r1
   2525c:	be 01       	movw	r22, r28
   2525e:	6f 5f       	subi	r22, 0xFF	; 255
   25260:	7f 4f       	sbci	r23, 0xFF	; 255
   25262:	87 5b       	subi	r24, 0xB7	; 183
   25264:	92 4f       	sbci	r25, 0xF2	; 242
   25266:	0f 94 6f d0 	call	0x3a0de	; 0x3a0de <menu_format_sheet_E(Sheet const&, SheetFormatBuffer&)>
	    lcd_home();
   2526a:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
	    lcd_print(buffer.c);
   2526e:	ce 01       	movw	r24, r28
   25270:	01 96       	adiw	r24, 0x01	; 1
   25272:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
	    lcd_set_cursor(0, 1);
   25276:	61 e0       	ldi	r22, 0x01	; 1
   25278:	80 e0       	ldi	r24, 0x00	; 0
   2527a:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		menu_draw_float13(_T(MSG_BABYSTEPPING_Z), _md->babystepMemMMZ);
   2527e:	10 91 ac 03 	lds	r17, 0x03AC	; 0x8003ac <menu_data+0x3>
   25282:	00 91 ad 03 	lds	r16, 0x03AD	; 0x8003ad <menu_data+0x4>
   25286:	f0 90 ae 03 	lds	r15, 0x03AE	; 0x8003ae <menu_data+0x5>
   2528a:	e0 90 af 03 	lds	r14, 0x03AF	; 0x8003af <menu_data+0x6>
   2528e:	83 e9       	ldi	r24, 0x93	; 147
   25290:	90 e5       	ldi	r25, 0x50	; 80
   25292:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
//! (i.e. str must include a ':' at its end)
//! FLASH usage dropped 234476B -> 234392B
//! Moreover, this function gets inlined in the final code, so removing it doesn't really help ;)
void menu_draw_float13(const char* str, float val)
{
	lcd_printf_P(menu_fmt_float13, ' ', str, val);
   25296:	ef 92       	push	r14
   25298:	ff 92       	push	r15
   2529a:	0f 93       	push	r16
   2529c:	1f 93       	push	r17
   2529e:	9f 93       	push	r25
   252a0:	8f 93       	push	r24
   252a2:	1f 92       	push	r1
   252a4:	80 e2       	ldi	r24, 0x20	; 32
   252a6:	8f 93       	push	r24
   252a8:	88 e6       	ldi	r24, 0x68	; 104
   252aa:	92 ea       	ldi	r25, 0xA2	; 162
   252ac:	9f 93       	push	r25
   252ae:	8f 93       	push	r24
   252b0:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   252b4:	0f b6       	in	r0, 0x3f	; 63
   252b6:	f8 94       	cli
   252b8:	de bf       	out	0x3e, r29	; 62
   252ba:	0f be       	out	0x3f, r0	; 63
   252bc:	cd bf       	out	0x3d, r28	; 61
	}
	if (LCD_CLICKED || menu_leaving)
   252be:	80 91 a8 03 	lds	r24, 0x03A8	; 0x8003a8 <lcd_click_trigger>
   252c2:	81 11       	cpse	r24, r1
   252c4:	04 c0       	rjmp	.+8      	; 0x252ce <lcd_babystep_z() [clone .lto_priv.406]+0x1aa>
   252c6:	80 91 d7 03 	lds	r24, 0x03D7	; 0x8003d7 <menu_leaving>
   252ca:	88 23       	and	r24, r24
   252cc:	51 f1       	breq	.+84     	; 0x25322 <lcd_babystep_z() [clone .lto_priv.406]+0x1fe>
	{
		// Only update the EEPROM when leaving the menu.
          uint8_t active_sheet=eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
   252ce:	81 ea       	ldi	r24, 0xA1	; 161
   252d0:	9d e0       	ldi	r25, 0x0D	; 13
   252d2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   252d6:	9b e0       	ldi	r25, 0x0B	; 11
   252d8:	89 9f       	mul	r24, r25
   252da:	80 01       	movw	r16, r0
   252dc:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   252de:	60 91 aa 03 	lds	r22, 0x03AA	; 0x8003aa <menu_data+0x1>
   252e2:	70 91 ab 03 	lds	r23, 0x03AB	; 0x8003ab <menu_data+0x2>
   252e6:	c8 01       	movw	r24, r16
   252e8:	80 5b       	subi	r24, 0xB0	; 176
   252ea:	92 4f       	sbci	r25, 0xF2	; 242
   252ec:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   252f0:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
   252f4:	c8 01       	movw	r24, r16
   252f6:	8e 5a       	subi	r24, 0xAE	; 174
   252f8:	92 4f       	sbci	r25, 0xF2	; 242
   252fa:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
		eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[active_sheet].z_offset)),_md->babystepMemZ);

        // NOTE: bed_temp and pinda_temp are not currently read/used anywhere.
		eeprom_update_byte_notify(&(EEPROM_Sheets_base->s[active_sheet].bed_temp),target_temperature_bed);
#ifdef PINDA_THERMISTOR
		eeprom_update_byte_notify(&(EEPROM_Sheets_base->s[active_sheet].pinda_temp),current_temperature_pinda);
   252fe:	60 91 99 03 	lds	r22, 0x0399	; 0x800399 <current_temperature_pinda>
   25302:	70 91 9a 03 	lds	r23, 0x039A	; 0x80039a <current_temperature_pinda+0x1>
   25306:	80 91 9b 03 	lds	r24, 0x039B	; 0x80039b <current_temperature_pinda+0x2>
   2530a:	90 91 9c 03 	lds	r25, 0x039C	; 0x80039c <current_temperature_pinda+0x3>
   2530e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   25312:	c8 01       	movw	r24, r16
   25314:	8d 5a       	subi	r24, 0xAD	; 173
   25316:	92 4f       	sbci	r25, 0xF2	; 242
   25318:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
#endif //PINDA_THERMISTOR
		calibration_status_set(CALIBRATION_STATUS_LIVE_ADJUST);
   2531c:	80 e1       	ldi	r24, 0x10	; 16
   2531e:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
	}
	menu_back_if_clicked();
   25322:	0f 94 3f d5 	call	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>
}
   25326:	63 96       	adiw	r28, 0x13	; 19
   25328:	0f b6       	in	r0, 0x3f	; 63
   2532a:	f8 94       	cli
   2532c:	de bf       	out	0x3e, r29	; 62
   2532e:	0f be       	out	0x3f, r0	; 63
   25330:	cd bf       	out	0x3d, r28	; 61
   25332:	df 91       	pop	r29
   25334:	cf 91       	pop	r28
   25336:	1f 91       	pop	r17
   25338:	0f 91       	pop	r16
   2533a:	ff 90       	pop	r15
   2533c:	ef 90       	pop	r14
   2533e:	08 95       	ret

		if(!eeprom_is_sheet_initialized(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))){
			_md->babystepMemZ = 0;
		}
		else{
			_md->babystepMemZ = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
   25340:	2b e0       	ldi	r18, 0x0B	; 11
   25342:	12 9f       	mul	r17, r18
   25344:	c0 01       	movw	r24, r0
   25346:	11 24       	eor	r1, r1
   25348:	80 5b       	subi	r24, 0xB0	; 176
   2534a:	92 4f       	sbci	r25, 0xF2	; 242
   2534c:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   25350:	90 93 ab 03 	sts	0x03AB, r25	; 0x8003ab <menu_data+0x2>
   25354:	80 93 aa 03 	sts	0x03AA, r24	; 0x8003aa <menu_data+0x1>
   25358:	09 cf       	rjmp	.-494    	; 0x2516c <lcd_babystep_z() [clone .lto_priv.406]+0x48>
	if (lcd_encoder != 0)
	{
		_md->babystepMemZ += lcd_encoder;

        if (_md->babystepMemZ < Z_BABYSTEP_MIN) _md->babystepMemZ = Z_BABYSTEP_MIN; //-3999 -> -9.99 mm
        else if (_md->babystepMemZ > Z_BABYSTEP_MAX) _md->babystepMemZ = Z_BABYSTEP_MAX; //0
   2535a:	12 16       	cp	r1, r18
   2535c:	13 06       	cpc	r1, r19
   2535e:	2c f4       	brge	.+10     	; 0x2536a <lcd_babystep_z() [clone .lto_priv.406]+0x246>
   25360:	10 92 ab 03 	sts	0x03AB, r1	; 0x8003ab <menu_data+0x2>
   25364:	10 92 aa 03 	sts	0x03AA, r1	; 0x8003aa <menu_data+0x1>
   25368:	44 cf       	rjmp	.-376    	; 0x251f2 <lcd_babystep_z() [clone .lto_priv.406]+0xce>
extern volatile int babystepsTodo[3];

inline void babystepsTodoZadd(int n)
{
    if (n != 0) {
        CRITICAL_SECTION_START
   2536a:	2f b7       	in	r18, 0x3f	; 63
   2536c:	f8 94       	cli
        babystepsTodo[Z_AXIS] += n;
   2536e:	40 91 6d 06 	lds	r20, 0x066D	; 0x80066d <babystepsTodo+0x4>
   25372:	50 91 6e 06 	lds	r21, 0x066E	; 0x80066e <babystepsTodo+0x5>
   25376:	84 0f       	add	r24, r20
   25378:	95 1f       	adc	r25, r21
   2537a:	90 93 6e 06 	sts	0x066E, r25	; 0x80066e <babystepsTodo+0x5>
   2537e:	80 93 6d 06 	sts	0x066D, r24	; 0x80066d <babystepsTodo+0x4>
        CRITICAL_SECTION_END
   25382:	2f bf       	out	0x3f, r18	; 63
   25384:	36 cf       	rjmp	.-404    	; 0x251f2 <lcd_babystep_z() [clone .lto_priv.406]+0xce>

00025386 <lcd_move_e()>:
}


void lcd_move_e()
{
	if ((int)degHotend0() > extrude_min_temp)
   25386:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   2538a:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   2538e:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   25392:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   25396:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2539a:	20 91 6b 02 	lds	r18, 0x026B	; 0x80026b <extrude_min_temp>
   2539e:	30 91 6c 02 	lds	r19, 0x026C	; 0x80026c <extrude_min_temp+0x1>
   253a2:	26 17       	cp	r18, r22
   253a4:	37 07       	cpc	r19, r23
   253a6:	0c f0       	brlt	.+2      	; 0x253aa <lcd_move_e()+0x24>
   253a8:	65 c0       	rjmp	.+202    	; 0x25474 <lcd_move_e()+0xee>
	{
		if (lcd_encoder != 0)
   253aa:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   253ae:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   253b2:	89 2b       	or	r24, r25
   253b4:	b9 f1       	breq	.+110    	; 0x25424 <lcd_move_e()+0x9e>
		{
			refresh_cmd_timeout();
   253b6:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
}

FORCE_INLINE bool planner_queue_full() {
    uint8_t next_block_index = block_buffer_head;
   253ba:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
    if (++ next_block_index == BLOCK_BUFFER_SIZE)
   253be:	8f 5f       	subi	r24, 0xFF	; 255
   253c0:	80 31       	cpi	r24, 0x10	; 16
   253c2:	09 f4       	brne	.+2      	; 0x253c6 <lcd_move_e()+0x40>
        next_block_index = 0;
   253c4:	80 e0       	ldi	r24, 0x00	; 0
    return block_buffer_tail == next_block_index;
   253c6:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
			if (! planner_queue_full())
   253ca:	98 17       	cp	r25, r24
   253cc:	59 f1       	breq	.+86     	; 0x25424 <lcd_move_e()+0x9e>
			{
				current_position[E_AXIS] += lcd_encoder;
   253ce:	60 91 70 06 	lds	r22, 0x0670	; 0x800670 <lcd_encoder>
   253d2:	70 91 71 06 	lds	r23, 0x0671	; 0x800671 <lcd_encoder+0x1>
   253d6:	07 2e       	mov	r0, r23
   253d8:	00 0c       	add	r0, r0
   253da:	88 0b       	sbc	r24, r24
   253dc:	99 0b       	sbc	r25, r25
   253de:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   253e2:	9b 01       	movw	r18, r22
   253e4:	ac 01       	movw	r20, r24
   253e6:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   253ea:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   253ee:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   253f2:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   253f6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   253fa:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   253fe:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   25402:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   25406:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
				lcd_encoder = 0;
   2540a:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   2540e:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
				plan_buffer_line_curposXYZE(manual_feedrate[E_AXIS] / 60);
   25412:	65 e5       	ldi	r22, 0x55	; 85
   25414:	75 e5       	ldi	r23, 0x55	; 85
   25416:	85 ed       	ldi	r24, 0xD5	; 213
   25418:	9f e3       	ldi	r25, 0x3F	; 63
   2541a:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
				lcd_draw_update = 1;
   2541e:	81 e0       	ldi	r24, 0x01	; 1
   25420:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
			}
		}
		if (lcd_draw_update)
   25424:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   25428:	88 23       	and	r24, r24
   2542a:	11 f1       	breq	.+68     	; 0x25470 <lcd_move_e()+0xea>
		{
		    lcd_set_cursor(0, 1);
   2542c:	61 e0       	ldi	r22, 0x01	; 1
   2542e:	80 e0       	ldi	r24, 0x00	; 0
   25430:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
//! The text needs to come with a colon ":", this function does not append it anymore.
//! That resulted in a much shorter implementation (234628B -> 234476B)
//! There are similar functions around which may be shortened in a similar way
void menu_draw_float31(const char* str, float val)
{
	lcd_printf_P(menu_fmt_float31, str, val);
   25434:	80 91 a1 06 	lds	r24, 0x06A1	; 0x8006a1 <current_position+0xf>
   25438:	8f 93       	push	r24
   2543a:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   2543e:	8f 93       	push	r24
   25440:	80 91 9f 06 	lds	r24, 0x069F	; 0x80069f <current_position+0xd>
   25444:	8f 93       	push	r24
   25446:	80 91 9e 06 	lds	r24, 0x069E	; 0x80069e <current_position+0xc>
   2544a:	8f 93       	push	r24
   2544c:	8a e4       	ldi	r24, 0x4A	; 74
   2544e:	92 ea       	ldi	r25, 0xA2	; 162
   25450:	9f 93       	push	r25
   25452:	8f 93       	push	r24
   25454:	8b e3       	ldi	r24, 0x3B	; 59
   25456:	92 ea       	ldi	r25, 0xA2	; 162
   25458:	9f 93       	push	r25
   2545a:	8f 93       	push	r24
   2545c:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   25460:	8d b7       	in	r24, 0x3d	; 61
   25462:	9e b7       	in	r25, 0x3e	; 62
   25464:	08 96       	adiw	r24, 0x08	; 8
   25466:	0f b6       	in	r0, 0x3f	; 63
   25468:	f8 94       	cli
   2546a:	9e bf       	out	0x3e, r25	; 62
   2546c:	0f be       	out	0x3f, r0	; 63
   2546e:	8d bf       	out	0x3d, r24	; 61
			// Note: the colon behind the text is necessary to greatly shorten
			// the implementation of menu_draw_float31
			menu_draw_float31(PSTR("Extruder:"), current_position[E_AXIS]);
		}
		menu_back_if_clicked();
   25470:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>
    };
}

void show_preheat_nozzle_warning()
{
    lcd_clear();
   25474:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    lcd_puts_at_P(0, 0, _T(MSG_ERROR));
   25478:	84 e2       	ldi	r24, 0x24	; 36
   2547a:	90 e5       	ldi	r25, 0x50	; 80
   2547c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   25480:	ac 01       	movw	r20, r24
   25482:	60 e0       	ldi	r22, 0x00	; 0
   25484:	80 e0       	ldi	r24, 0x00	; 0
   25486:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_puts_at_P(0, 2, _T(MSG_PREHEAT_NOZZLE));
   2548a:	8e e0       	ldi	r24, 0x0E	; 14
   2548c:	90 e5       	ldi	r25, 0x50	; 80
   2548e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   25492:	ac 01       	movw	r20, r24
   25494:	62 e0       	ldi	r22, 0x02	; 2
   25496:	80 e0       	ldi	r24, 0x00	; 0
   25498:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    _delay(2000);
   2549c:	60 ed       	ldi	r22, 0xD0	; 208
   2549e:	77 e0       	ldi	r23, 0x07	; 7
   254a0:	80 e0       	ldi	r24, 0x00	; 0
   254a2:	90 e0       	ldi	r25, 0x00	; 0
   254a4:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
    lcd_clear();
   254a8:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
		menu_back_if_clicked();
	}
	else
	{
		show_preheat_nozzle_warning();
		lcd_return_to_status();
   254ac:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

000254b0 <millis2>:
}

unsigned long millis2(void)
{
	unsigned long m;
	uint8_t oldSREG = SREG;
   254b0:	2f b7       	in	r18, 0x3f	; 63

	// disable interrupts while we read timer0_millis or we might get an
	// inconsistent value (e.g. in the middle of a write to timer0_millis)
	cli();
   254b2:	f8 94       	cli
	m = timer2_millis;
   254b4:	60 91 3b 06 	lds	r22, 0x063B	; 0x80063b <timer2_millis>
   254b8:	70 91 3c 06 	lds	r23, 0x063C	; 0x80063c <timer2_millis+0x1>
   254bc:	80 91 3d 06 	lds	r24, 0x063D	; 0x80063d <timer2_millis+0x2>
   254c0:	90 91 3e 06 	lds	r25, 0x063E	; 0x80063e <timer2_millis+0x3>
	SREG = oldSREG;
   254c4:	2f bf       	out	0x3f, r18	; 63

	return m;
}
   254c6:	08 95       	ret

000254c8 <lcd_pause_print()>:
}

//! @brief Pause print, disable nozzle heater, move to park position, send host action "paused"
void lcd_pause_print()
{
    stop_and_save_print_to_ram(0.0, -default_retraction);
   254c8:	20 e0       	ldi	r18, 0x00	; 0
   254ca:	30 e0       	ldi	r19, 0x00	; 0
   254cc:	40 e8       	ldi	r20, 0x80	; 128
   254ce:	5f eb       	ldi	r21, 0xBF	; 191
   254d0:	60 e0       	ldi	r22, 0x00	; 0
   254d2:	70 e0       	ldi	r23, 0x00	; 0
   254d4:	cb 01       	movw	r24, r22
   254d6:	0e 94 c6 88 	call	0x1118c	; 0x1118c <stop_and_save_print_to_ram(float, float)>

    SERIAL_ECHOLNRPGM(MSG_HOST_ACTION_PAUSED);
   254da:	85 e5       	ldi	r24, 0x55	; 85
   254dc:	9e e6       	ldi	r25, 0x6E	; 110
   254de:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    // Indicate that the printer is paused
    did_pause_print = true;
   254e2:	81 e0       	ldi	r24, 0x01	; 1
   254e4:	80 93 e4 03 	sts	0x03E4, r24	; 0x8003e4 <did_pause_print>
  }
  else return false;
}

bool Stopwatch::pause() {
  if (isRunning()) {
   254e8:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
   254ec:	81 30       	cpi	r24, 0x01	; 1
   254ee:	69 f4       	brne	.+26     	; 0x2550a <lcd_pause_print()+0x42>
    state = PAUSED;
   254f0:	82 e0       	ldi	r24, 0x02	; 2
   254f2:	80 93 9d 03 	sts	0x039D, r24	; 0x80039d <Stopwatch::state>
    stopTimestamp = _millis();
   254f6:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   254fa:	60 93 52 06 	sts	0x0652, r22	; 0x800652 <Stopwatch::stopTimestamp>
   254fe:	70 93 53 06 	sts	0x0653, r23	; 0x800653 <Stopwatch::stopTimestamp+0x1>
   25502:	80 93 54 06 	sts	0x0654, r24	; 0x800654 <Stopwatch::stopTimestamp+0x2>
   25506:	90 93 55 06 	sts	0x0655, r25	; 0x800655 <Stopwatch::stopTimestamp+0x3>

    print_job_timer.pause();

    // return to status is required to continue processing in the main loop!
    lcd_commands_type = LcdCommands::LongPause;
   2550a:	82 e0       	ldi	r24, 0x02	; 2
   2550c:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
    lcd_return_to_status();
   25510:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

00025514 <Timer<unsigned short>::expired(unsigned short)>:
 * @param msPeriod Time interval in milliseconds. Do not omit "ul" when using constant literal with LongTimer.
 * @retval true Timer has expired
 * @retval false Timer not expired yet, or is not running, or time window in which is timer considered expired passed.
 */
template<typename T>
bool Timer<T>::expired(T msPeriod)
   25514:	ff 92       	push	r15
   25516:	0f 93       	push	r16
   25518:	1f 93       	push	r17
   2551a:	cf 93       	push	r28
   2551c:	df 93       	push	r29
{
    if (!m_isRunning) return false;
   2551e:	fc 01       	movw	r30, r24
   25520:	f0 80       	ld	r15, Z
   25522:	f1 10       	cpse	r15, r1
   25524:	08 c0       	rjmp	.+16     	; 0x25536 <Timer<unsigned short>::expired(unsigned short)+0x22>
   25526:	f1 2c       	mov	r15, r1
            expired = true;
        }
    }
    if (expired) m_isRunning = false;
    return expired;
}
   25528:	8f 2d       	mov	r24, r15
   2552a:	df 91       	pop	r29
   2552c:	cf 91       	pop	r28
   2552e:	1f 91       	pop	r17
   25530:	0f 91       	pop	r16
   25532:	ff 90       	pop	r15
   25534:	08 95       	ret
   25536:	8b 01       	movw	r16, r22
   25538:	ec 01       	movw	r28, r24
template<typename T>
bool Timer<T>::expired(T msPeriod)
{
    if (!m_isRunning) return false;
    bool expired = false;
    const T now = _millis();
   2553a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    if (m_started <=  m_started + msPeriod)
   2553e:	89 81       	ldd	r24, Y+1	; 0x01
   25540:	9a 81       	ldd	r25, Y+2	; 0x02
   25542:	08 0f       	add	r16, r24
   25544:	19 1f       	adc	r17, r25
   25546:	08 17       	cp	r16, r24
   25548:	19 07       	cpc	r17, r25
   2554a:	40 f0       	brcs	.+16     	; 0x2555c <Timer<unsigned short>::expired(unsigned short)+0x48>
    {
        if ((now >= m_started + msPeriod) || (now < m_started))
   2554c:	60 17       	cp	r22, r16
   2554e:	71 07       	cpc	r23, r17
   25550:	18 f4       	brcc	.+6      	; 0x25558 <Timer<unsigned short>::expired(unsigned short)+0x44>
            expired = true;
        }
    }
    else
    {
        if ((now >= m_started + msPeriod) && (now < m_started))
   25552:	68 17       	cp	r22, r24
   25554:	79 07       	cpc	r23, r25
   25556:	38 f7       	brcc	.-50     	; 0x25526 <Timer<unsigned short>::expired(unsigned short)+0x12>
        {
            expired = true;
        }
    }
    if (expired) m_isRunning = false;
   25558:	18 82       	st	Y, r1
   2555a:	e6 cf       	rjmp	.-52     	; 0x25528 <Timer<unsigned short>::expired(unsigned short)+0x14>
            expired = true;
        }
    }
    else
    {
        if ((now >= m_started + msPeriod) && (now < m_started))
   2555c:	60 17       	cp	r22, r16
   2555e:	71 07       	cpc	r23, r17
   25560:	c0 f7       	brcc	.-16     	; 0x25552 <Timer<unsigned short>::expired(unsigned short)+0x3e>
   25562:	e1 cf       	rjmp	.-62     	; 0x25526 <Timer<unsigned short>::expired(unsigned short)+0x12>

00025564 <Timer<unsigned short>::expired_cont(unsigned short)>:
}

template<typename T>
bool Timer<T>::expired_cont(T msPeriod)
{
    return !m_isRunning || expired(msPeriod);
   25564:	fc 01       	movw	r30, r24
   25566:	20 81       	ld	r18, Z
   25568:	21 11       	cpse	r18, r1
   2556a:	0d 94 8a 2a 	jmp	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
}
   2556e:	81 e0       	ldi	r24, 0x01	; 1
   25570:	08 95       	ret

00025572 <Timer<unsigned short>::start()>:

/**
 * @brief Start timer
 */
template<typename T>
void Timer<T>::start()
   25572:	cf 93       	push	r28
   25574:	df 93       	push	r29
   25576:	ec 01       	movw	r28, r24
{
    m_started = _millis();
   25578:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2557c:	7a 83       	std	Y+2, r23	; 0x02
   2557e:	69 83       	std	Y+1, r22	; 0x01
    m_isRunning = true;
   25580:	81 e0       	ldi	r24, 0x01	; 1
   25582:	88 83       	st	Y, r24
}
   25584:	df 91       	pop	r29
   25586:	cf 91       	pop	r28
   25588:	08 95       	ret

0002558a <twi_wait(unsigned char) [clone .lto_priv.378]>:
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTO);
}


static uint8_t twi_wait(uint8_t status)
{
   2558a:	1f 93       	push	r17
   2558c:	cf 93       	push	r28
   2558e:	df 93       	push	r29
   25590:	00 d0       	rcall	.+0      	; 0x25592 <twi_wait(unsigned char) [clone .lto_priv.378]+0x8>
   25592:	cd b7       	in	r28, 0x3d	; 61
   25594:	de b7       	in	r29, 0x3e	; 62
   25596:	18 2f       	mov	r17, r24
  ShortTimer timmy;
   25598:	19 82       	std	Y+1, r1	; 0x01
   2559a:	1b 82       	std	Y+3, r1	; 0x03
   2559c:	1a 82       	std	Y+2, r1	; 0x02
  timmy.start();
   2559e:	ce 01       	movw	r24, r28
   255a0:	01 96       	adiw	r24, 0x01	; 1
   255a2:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
  while(!(TWCR & _BV(TWINT))) {
   255a6:	80 91 bc 00 	lds	r24, 0x00BC	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
   255aa:	87 fd       	sbrc	r24, 7
   255ac:	0a c0       	rjmp	.+20     	; 0x255c2 <twi_wait(unsigned char) [clone .lto_priv.378]+0x38>
    if (timmy.expired(TWI_TIMEOUT_MS)) {
   255ae:	6a e0       	ldi	r22, 0x0A	; 10
   255b0:	70 e0       	ldi	r23, 0x00	; 0
   255b2:	ce 01       	movw	r24, r28
   255b4:	01 96       	adiw	r24, 0x01	; 1
   255b6:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   255ba:	88 23       	and	r24, r24
   255bc:	a1 f3       	breq	.-24     	; 0x255a6 <twi_wait(unsigned char) [clone .lto_priv.378]+0x1c>
      return 2;
   255be:	82 e0       	ldi	r24, 0x02	; 2
   255c0:	09 c0       	rjmp	.+18     	; 0x255d4 <twi_wait(unsigned char) [clone .lto_priv.378]+0x4a>
    }
  }
  if(TW_STATUS != status)
   255c2:	80 91 b9 00 	lds	r24, 0x00B9	; 0x8000b9 <__TEXT_REGION_LENGTH__+0x7c20b9>
   255c6:	88 7f       	andi	r24, 0xF8	; 248
   255c8:	18 17       	cp	r17, r24
   255ca:	59 f0       	breq	.+22     	; 0x255e2 <twi_wait(unsigned char) [clone .lto_priv.378]+0x58>
}


static void twi_stop()
{
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTO);
   255cc:	84 e9       	ldi	r24, 0x94	; 148
   255ce:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
    }
  }
  if(TW_STATUS != status)
  {
      twi_stop();
      return 1;
   255d2:	81 e0       	ldi	r24, 0x01	; 1
  }
  return 0;
}
   255d4:	0f 90       	pop	r0
   255d6:	0f 90       	pop	r0
   255d8:	0f 90       	pop	r0
   255da:	df 91       	pop	r29
   255dc:	cf 91       	pop	r28
   255de:	1f 91       	pop	r17
   255e0:	08 95       	ret
  if(TW_STATUS != status)
  {
      twi_stop();
      return 1;
  }
  return 0;
   255e2:	80 e0       	ldi	r24, 0x00	; 0
   255e4:	f7 cf       	rjmp	.-18     	; 0x255d4 <twi_wait(unsigned char) [clone .lto_priv.378]+0x4a>

000255e6 <tmc2130_check_overtemp()>:
	}
	return standstill;
}

void tmc2130_check_overtemp()
{
   255e6:	1f 93       	push	r17
   255e8:	cf 93       	push	r28
   255ea:	df 93       	push	r29
   255ec:	00 d0       	rcall	.+0      	; 0x255ee <tmc2130_check_overtemp()+0x8>
   255ee:	1f 92       	push	r1
   255f0:	cd b7       	in	r28, 0x3d	; 61
   255f2:	de b7       	in	r29, 0x3e	; 62
	if (tmc2130_overtemp_timer.expired_cont(1000))
   255f4:	68 ee       	ldi	r22, 0xE8	; 232
   255f6:	73 e0       	ldi	r23, 0x03	; 3
   255f8:	84 e4       	ldi	r24, 0x44	; 68
   255fa:	96 e0       	ldi	r25, 0x06	; 6
   255fc:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   25600:	88 23       	and	r24, r24
   25602:	91 f1       	breq	.+100    	; 0x25668 <tmc2130_check_overtemp()+0x82>
	{
		for (uint_least8_t i = 0; i < 4; i++)
   25604:	10 e0       	ldi	r17, 0x00	; 0
		{
			uint32_t drv_status = 0;
   25606:	19 82       	std	Y+1, r1	; 0x01
   25608:	1a 82       	std	Y+2, r1	; 0x02
   2560a:	1b 82       	std	Y+3, r1	; 0x03
   2560c:	1c 82       	std	Y+4, r1	; 0x04
			tmc2130_rd(i, TMC2130_REG_DRV_STATUS, &drv_status);
   2560e:	ae 01       	movw	r20, r28
   25610:	4f 5f       	subi	r20, 0xFF	; 255
   25612:	5f 4f       	sbci	r21, 0xFF	; 255
   25614:	6f e6       	ldi	r22, 0x6F	; 111
   25616:	81 2f       	mov	r24, r17
   25618:	0f 94 fd 24 	call	0x249fa	; 0x249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>
			if (drv_status & ((uint32_t)1 << 26))
   2561c:	89 81       	ldd	r24, Y+1	; 0x01
   2561e:	9a 81       	ldd	r25, Y+2	; 0x02
   25620:	ab 81       	ldd	r26, Y+3	; 0x03
   25622:	bc 81       	ldd	r27, Y+4	; 0x04
   25624:	b2 ff       	sbrs	r27, 2
   25626:	19 c0       	rjmp	.+50     	; 0x2565a <tmc2130_check_overtemp()+0x74>
			{ // BIT 26 - over temp prewarning ~120C (+-20C)
				SERIAL_ERRORRPGM(MSG_TMC_OVERTEMP);
   25628:	86 ec       	ldi	r24, 0xC6	; 198
   2562a:	9d e6       	ldi	r25, 0x6D	; 109
   2562c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  }
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
   25630:	81 2f       	mov	r24, r17
   25632:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::println(unsigned char b, int base)
{
  print(b, base);
  println();
   25636:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
				SERIAL_ECHOLN(i);
				for (uint_least8_t j = 0; j < 4; j++)
   2563a:	10 e0       	ldi	r17, 0x00	; 0
					tmc2130_wr(j, TMC2130_REG_CHOPCONF, 0x00010000);
   2563c:	20 e0       	ldi	r18, 0x00	; 0
   2563e:	30 e0       	ldi	r19, 0x00	; 0
   25640:	41 e0       	ldi	r20, 0x01	; 1
   25642:	50 e0       	ldi	r21, 0x00	; 0
   25644:	6c ee       	ldi	r22, 0xEC	; 236
   25646:	81 2f       	mov	r24, r17
   25648:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
			tmc2130_rd(i, TMC2130_REG_DRV_STATUS, &drv_status);
			if (drv_status & ((uint32_t)1 << 26))
			{ // BIT 26 - over temp prewarning ~120C (+-20C)
				SERIAL_ERRORRPGM(MSG_TMC_OVERTEMP);
				SERIAL_ECHOLN(i);
				for (uint_least8_t j = 0; j < 4; j++)
   2564c:	1f 5f       	subi	r17, 0xFF	; 255
   2564e:	14 30       	cpi	r17, 0x04	; 4
   25650:	a9 f7       	brne	.-22     	; 0x2563c <tmc2130_check_overtemp()+0x56>
					tmc2130_wr(j, TMC2130_REG_CHOPCONF, 0x00010000);
				kill(MSG_TMC_OVERTEMP);
   25652:	86 ec       	ldi	r24, 0xC6	; 198
   25654:	9d e6       	ldi	r25, 0x6D	; 109
   25656:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>

void tmc2130_check_overtemp()
{
	if (tmc2130_overtemp_timer.expired_cont(1000))
	{
		for (uint_least8_t i = 0; i < 4; i++)
   2565a:	1f 5f       	subi	r17, 0xFF	; 255
   2565c:	14 30       	cpi	r17, 0x04	; 4
   2565e:	99 f6       	brne	.-90     	; 0x25606 <tmc2130_check_overtemp()+0x20>
					tmc2130_wr(j, TMC2130_REG_CHOPCONF, 0x00010000);
				kill(MSG_TMC_OVERTEMP);
			}

		}
		tmc2130_overtemp_timer.start();
   25660:	84 e4       	ldi	r24, 0x44	; 68
   25662:	96 e0       	ldi	r25, 0x06	; 6
   25664:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
	}
}
   25668:	0f 90       	pop	r0
   2566a:	0f 90       	pop	r0
   2566c:	0f 90       	pop	r0
   2566e:	0f 90       	pop	r0
   25670:	df 91       	pop	r29
   25672:	cf 91       	pop	r28
   25674:	1f 91       	pop	r17
   25676:	08 95       	ret

00025678 <Timer<unsigned long>::expired(unsigned long)>:
 * @param msPeriod Time interval in milliseconds. Do not omit "ul" when using constant literal with LongTimer.
 * @retval true Timer has expired
 * @retval false Timer not expired yet, or is not running, or time window in which is timer considered expired passed.
 */
template<typename T>
bool Timer<T>::expired(T msPeriod)
   25678:	8f 92       	push	r8
   2567a:	9f 92       	push	r9
   2567c:	af 92       	push	r10
   2567e:	bf 92       	push	r11
   25680:	cf 92       	push	r12
   25682:	df 92       	push	r13
   25684:	ef 92       	push	r14
   25686:	ff 92       	push	r15
   25688:	1f 93       	push	r17
   2568a:	cf 93       	push	r28
   2568c:	df 93       	push	r29
{
    if (!m_isRunning) return false;
   2568e:	fc 01       	movw	r30, r24
   25690:	10 81       	ld	r17, Z
   25692:	11 11       	cpse	r17, r1
   25694:	0e c0       	rjmp	.+28     	; 0x256b2 <Timer<unsigned long>::expired(unsigned long)+0x3a>
   25696:	10 e0       	ldi	r17, 0x00	; 0
            expired = true;
        }
    }
    if (expired) m_isRunning = false;
    return expired;
}
   25698:	81 2f       	mov	r24, r17
   2569a:	df 91       	pop	r29
   2569c:	cf 91       	pop	r28
   2569e:	1f 91       	pop	r17
   256a0:	ff 90       	pop	r15
   256a2:	ef 90       	pop	r14
   256a4:	df 90       	pop	r13
   256a6:	cf 90       	pop	r12
   256a8:	bf 90       	pop	r11
   256aa:	af 90       	pop	r10
   256ac:	9f 90       	pop	r9
   256ae:	8f 90       	pop	r8
   256b0:	08 95       	ret
   256b2:	6a 01       	movw	r12, r20
   256b4:	7b 01       	movw	r14, r22
   256b6:	ec 01       	movw	r28, r24
template<typename T>
bool Timer<T>::expired(T msPeriod)
{
    if (!m_isRunning) return false;
    bool expired = false;
    const T now = _millis();
   256b8:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   256bc:	4b 01       	movw	r8, r22
   256be:	5c 01       	movw	r10, r24
    if (m_started <=  m_started + msPeriod)
   256c0:	89 81       	ldd	r24, Y+1	; 0x01
   256c2:	9a 81       	ldd	r25, Y+2	; 0x02
   256c4:	ab 81       	ldd	r26, Y+3	; 0x03
   256c6:	bc 81       	ldd	r27, Y+4	; 0x04
   256c8:	c8 0e       	add	r12, r24
   256ca:	d9 1e       	adc	r13, r25
   256cc:	ea 1e       	adc	r14, r26
   256ce:	fb 1e       	adc	r15, r27
   256d0:	c8 16       	cp	r12, r24
   256d2:	d9 06       	cpc	r13, r25
   256d4:	ea 06       	cpc	r14, r26
   256d6:	fb 06       	cpc	r15, r27
   256d8:	60 f0       	brcs	.+24     	; 0x256f2 <Timer<unsigned long>::expired(unsigned long)+0x7a>
    {
        if ((now >= m_started + msPeriod) || (now < m_started))
   256da:	8c 14       	cp	r8, r12
   256dc:	9d 04       	cpc	r9, r13
   256de:	ae 04       	cpc	r10, r14
   256e0:	bf 04       	cpc	r11, r15
   256e2:	28 f4       	brcc	.+10     	; 0x256ee <Timer<unsigned long>::expired(unsigned long)+0x76>
            expired = true;
        }
    }
    else
    {
        if ((now >= m_started + msPeriod) && (now < m_started))
   256e4:	88 16       	cp	r8, r24
   256e6:	99 06       	cpc	r9, r25
   256e8:	aa 06       	cpc	r10, r26
   256ea:	bb 06       	cpc	r11, r27
   256ec:	a0 f6       	brcc	.-88     	; 0x25696 <Timer<unsigned long>::expired(unsigned long)+0x1e>
        {
            expired = true;
        }
    }
    if (expired) m_isRunning = false;
   256ee:	18 82       	st	Y, r1
   256f0:	d3 cf       	rjmp	.-90     	; 0x25698 <Timer<unsigned long>::expired(unsigned long)+0x20>
            expired = true;
        }
    }
    else
    {
        if ((now >= m_started + msPeriod) && (now < m_started))
   256f2:	8c 14       	cp	r8, r12
   256f4:	9d 04       	cpc	r9, r13
   256f6:	ae 04       	cpc	r10, r14
   256f8:	bf 04       	cpc	r11, r15
   256fa:	a0 f7       	brcc	.-24     	; 0x256e4 <Timer<unsigned long>::expired(unsigned long)+0x6c>
   256fc:	cc cf       	rjmp	.-104    	; 0x25696 <Timer<unsigned long>::expired(unsigned long)+0x1e>

000256fe <lcdui_print_status_line()>:
    }
    lcd_space(8 - chars);
}

//! @Brief Print status line on status screen
void lcdui_print_status_line(void) {
   256fe:	0f 93       	push	r16
   25700:	1f 93       	push	r17
   25702:	cf 93       	push	r28
    static uint8_t heating_status_counter;
    if (heating_status != HeatingStatus::NO_HEATING) { // If heating flag, show progress of heating
   25704:	80 91 e3 03 	lds	r24, 0x03E3	; 0x8003e3 <heating_status>
   25708:	88 23       	and	r24, r24
   2570a:	09 f4       	brne	.+2      	; 0x2570e <lcdui_print_status_line()+0x10>
   2570c:	4d c0       	rjmp	.+154    	; 0x257a8 <lcdui_print_status_line()+0xaa>
        heating_status_counter++;
   2570e:	80 91 4b 06 	lds	r24, 0x064B	; 0x80064b <lcdui_print_status_line()::heating_status_counter>
   25712:	8f 5f       	subi	r24, 0xFF	; 255
        if (heating_status_counter > 13) {
   25714:	8e 30       	cpi	r24, 0x0E	; 14
   25716:	b0 f4       	brcc	.+44     	; 0x25744 <lcdui_print_status_line()+0x46>

//! @Brief Print status line on status screen
void lcdui_print_status_line(void) {
    static uint8_t heating_status_counter;
    if (heating_status != HeatingStatus::NO_HEATING) { // If heating flag, show progress of heating
        heating_status_counter++;
   25718:	80 93 4b 06 	sts	0x064B, r24	; 0x80064b <lcdui_print_status_line()::heating_status_counter>
        if (heating_status_counter > 13) {
            heating_status_counter = 0;
        }
        lcd_set_cursor(7, 3);
   2571c:	63 e0       	ldi	r22, 0x03	; 3
   2571e:	87 e0       	ldi	r24, 0x07	; 7
   25720:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
        lcd_space(13);
   25724:	8d e0       	ldi	r24, 0x0D	; 13
   25726:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>

        for (uint8_t dots = 0; dots < heating_status_counter; dots++) {
   2572a:	c0 e0       	ldi	r28, 0x00	; 0
   2572c:	80 91 4b 06 	lds	r24, 0x064B	; 0x80064b <lcdui_print_status_line()::heating_status_counter>
   25730:	c8 17       	cp	r28, r24
   25732:	58 f4       	brcc	.+22     	; 0x2574a <lcdui_print_status_line()+0x4c>
            lcd_putc_at(7 + dots, 3, '.');
   25734:	4e e2       	ldi	r20, 0x2E	; 46
   25736:	63 e0       	ldi	r22, 0x03	; 3
   25738:	87 e0       	ldi	r24, 0x07	; 7
   2573a:	8c 0f       	add	r24, r28
   2573c:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
            heating_status_counter = 0;
        }
        lcd_set_cursor(7, 3);
        lcd_space(13);

        for (uint8_t dots = 0; dots < heating_status_counter; dots++) {
   25740:	cf 5f       	subi	r28, 0xFF	; 255
   25742:	f4 cf       	rjmp	.-24     	; 0x2572c <lcdui_print_status_line()+0x2e>
void lcdui_print_status_line(void) {
    static uint8_t heating_status_counter;
    if (heating_status != HeatingStatus::NO_HEATING) { // If heating flag, show progress of heating
        heating_status_counter++;
        if (heating_status_counter > 13) {
            heating_status_counter = 0;
   25744:	10 92 4b 06 	sts	0x064B, r1	; 0x80064b <lcdui_print_status_line()::heating_status_counter>
   25748:	e9 cf       	rjmp	.-46     	; 0x2571c <lcdui_print_status_line()+0x1e>
        lcd_space(13);

        for (uint8_t dots = 0; dots < heating_status_counter; dots++) {
            lcd_putc_at(7 + dots, 3, '.');
        }
        switch (heating_status) {
   2574a:	80 91 e3 03 	lds	r24, 0x03E3	; 0x8003e3 <heating_status>
   2574e:	82 30       	cpi	r24, 0x02	; 2
   25750:	d1 f0       	breq	.+52     	; 0x25786 <lcdui_print_status_line()+0x88>
   25752:	30 f4       	brcc	.+12     	; 0x25760 <lcdui_print_status_line()+0x62>
   25754:	81 30       	cpi	r24, 0x01	; 1
   25756:	59 f0       	breq	.+22     	; 0x2576e <lcdui_print_status_line()+0x70>
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
            break;
        }
    }
}
   25758:	cf 91       	pop	r28
   2575a:	1f 91       	pop	r17
   2575c:	0f 91       	pop	r16
   2575e:	08 95       	ret
        lcd_space(13);

        for (uint8_t dots = 0; dots < heating_status_counter; dots++) {
            lcd_putc_at(7 + dots, 3, '.');
        }
        switch (heating_status) {
   25760:	83 30       	cpi	r24, 0x03	; 3
   25762:	f9 f0       	breq	.+62     	; 0x257a2 <lcdui_print_status_line()+0xa4>
   25764:	84 30       	cpi	r24, 0x04	; 4
   25766:	c1 f7       	brne	.-16     	; 0x25758 <lcdui_print_status_line()+0x5a>
            break;
        case HeatingStatus::BED_HEATING:
            lcd_puts_at_P(0, 3, _T(MSG_BED_HEATING));
            break;
        case HeatingStatus::BED_HEATING_COMPLETE:
            lcd_puts_at_P(0, 3, _T(MSG_BED_DONE));
   25768:	82 e4       	ldi	r24, 0x42	; 66
   2576a:	9d e4       	ldi	r25, 0x4D	; 77
   2576c:	0e c0       	rjmp	.+28     	; 0x2578a <lcdui_print_status_line()+0x8c>
        for (uint8_t dots = 0; dots < heating_status_counter; dots++) {
            lcd_putc_at(7 + dots, 3, '.');
        }
        switch (heating_status) {
        case HeatingStatus::EXTRUDER_HEATING:
            lcd_puts_at_P(0, 3, _T(MSG_HEATING));
   2576e:	8b e6       	ldi	r24, 0x6B	; 107
   25770:	9d e4       	ldi	r25, 0x4D	; 77
                lcd_print(custom_message_state); // seconds
                lcd_print(' ');
            }
            break;
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
   25772:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   25776:	ac 01       	movw	r20, r24
   25778:	63 e0       	ldi	r22, 0x03	; 3
   2577a:	80 e0       	ldi	r24, 0x00	; 0
            break;
        }
    }
}
   2577c:	cf 91       	pop	r28
   2577e:	1f 91       	pop	r17
   25780:	0f 91       	pop	r16
                lcd_print(custom_message_state); // seconds
                lcd_print(' ');
            }
            break;
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
   25782:	0c 94 7b 6e 	jmp	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
        switch (heating_status) {
        case HeatingStatus::EXTRUDER_HEATING:
            lcd_puts_at_P(0, 3, _T(MSG_HEATING));
            break;
        case HeatingStatus::EXTRUDER_HEATING_COMPLETE:
            lcd_puts_at_P(0, 3, _T(MSG_HEATING_COMPLETE));
   25786:	8b e5       	ldi	r24, 0x5B	; 91
   25788:	9d e4       	ldi	r25, 0x4D	; 77
            break;
        case HeatingStatus::BED_HEATING:
            lcd_puts_at_P(0, 3, _T(MSG_BED_HEATING));
            break;
        case HeatingStatus::BED_HEATING_COMPLETE:
            lcd_puts_at_P(0, 3, _T(MSG_BED_DONE));
   2578a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2578e:	ac 01       	movw	r20, r24
   25790:	63 e0       	ldi	r22, 0x03	; 3
   25792:	80 e0       	ldi	r24, 0x00	; 0
   25794:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
            heating_status = HeatingStatus::NO_HEATING;
   25798:	10 92 e3 03 	sts	0x03E3, r1	; 0x8003e3 <heating_status>
            heating_status_counter = 0;
   2579c:	10 92 4b 06 	sts	0x064B, r1	; 0x80064b <lcdui_print_status_line()::heating_status_counter>
   257a0:	db cf       	rjmp	.-74     	; 0x25758 <lcdui_print_status_line()+0x5a>
            lcd_puts_at_P(0, 3, _T(MSG_HEATING_COMPLETE));
            heating_status = HeatingStatus::NO_HEATING;
            heating_status_counter = 0;
            break;
        case HeatingStatus::BED_HEATING:
            lcd_puts_at_P(0, 3, _T(MSG_BED_HEATING));
   257a2:	8d e4       	ldi	r24, 0x4D	; 77
   257a4:	9d e4       	ldi	r25, 0x4D	; 77
   257a6:	e5 cf       	rjmp	.-54     	; 0x25772 <lcdui_print_status_line()+0x74>
#ifdef SHOW_FILENAME_AFTER_FINISH
        || (GetPrinterState() == PrinterState::SDPrintingFinished)
#endif //SHOW_FILENAME_AFTER_FINISH
        ) &&
        (custom_message_type == CustomMsg::Status) &&
        (lcd_status_message_level <= LCD_STATUS_INFO) &&
   257a8:	80 91 90 14 	lds	r24, 0x1490	; 0x801490 <card+0x2>
   257ac:	88 23       	and	r24, r24
   257ae:	61 f1       	breq	.+88     	; 0x25808 <lcdui_print_status_line()+0x10a>
    }
    else if (((IS_SD_PRINTING)
#ifdef SHOW_FILENAME_AFTER_FINISH
        || (GetPrinterState() == PrinterState::SDPrintingFinished)
#endif //SHOW_FILENAME_AFTER_FINISH
        ) &&
   257b0:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   257b4:	81 11       	cpse	r24, r1
   257b6:	28 c0       	rjmp	.+80     	; 0x25808 <lcdui_print_status_line()+0x10a>
        (custom_message_type == CustomMsg::Status) &&
   257b8:	80 91 d5 03 	lds	r24, 0x03D5	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
   257bc:	82 30       	cpi	r24, 0x02	; 2
   257be:	20 f5       	brcc	.+72     	; 0x25808 <lcdui_print_status_line()+0x10a>
}

template<typename T>
bool Timer<T>::expired_cont(T msPeriod)
{
    return !m_isRunning || expired(msPeriod);
   257c0:	80 91 34 05 	lds	r24, 0x0534	; 0x800534 <_ZL26lcd_status_message_timeout.lto_priv.454>
   257c4:	81 11       	cpse	r24, r1
   257c6:	16 c0       	rjmp	.+44     	; 0x257f4 <lcdui_print_status_line()+0xf6>
        (lcd_status_message_level <= LCD_STATUS_INFO) &&
        lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
    {
        // If printing from SD, show what we are printing
        const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename);
   257c8:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   257cc:	88 23       	and	r24, r24
   257ce:	09 f4       	brne	.+2      	; 0x257d2 <lcdui_print_status_line()+0xd4>
   257d0:	35 c0       	rjmp	.+106    	; 0x2583c <lcdui_print_status_line()+0x13e>
   257d2:	87 ea       	ldi	r24, 0xA7	; 167
   257d4:	94 e1       	ldi	r25, 0x14	; 20
        if( lcd_print_pad(&longFilenameOLD[scrollstuff], LCD_WIDTH) == 0)
   257d6:	20 91 b9 0d 	lds	r18, 0x0DB9	; 0x800db9 <scrollstuff>
   257da:	64 e1       	ldi	r22, 0x14	; 20
   257dc:	82 0f       	add	r24, r18
   257de:	91 1d       	adc	r25, r1
   257e0:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
   257e4:	81 11       	cpse	r24, r1
   257e6:	2d c0       	rjmp	.+90     	; 0x25842 <lcdui_print_status_line()+0x144>
        {
            scrollstuff++;
   257e8:	80 91 b9 0d 	lds	r24, 0x0DB9	; 0x800db9 <scrollstuff>
   257ec:	8f 5f       	subi	r24, 0xFF	; 255
   257ee:	80 93 b9 0d 	sts	0x0DB9, r24	; 0x800db9 <scrollstuff>
   257f2:	b2 cf       	rjmp	.-156    	; 0x25758 <lcdui_print_status_line()+0x5a>
   257f4:	40 e2       	ldi	r20, 0x20	; 32
   257f6:	5e e4       	ldi	r21, 0x4E	; 78
   257f8:	60 e0       	ldi	r22, 0x00	; 0
   257fa:	70 e0       	ldi	r23, 0x00	; 0
   257fc:	84 e3       	ldi	r24, 0x34	; 52
   257fe:	95 e0       	ldi	r25, 0x05	; 5
   25800:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   25804:	81 11       	cpse	r24, r1
   25806:	e0 cf       	rjmp	.-64     	; 0x257c8 <lcdui_print_status_line()+0xca>
            scrollstuff = 0;
        }
    } else { // Otherwise check for other special events
        if ( custom_message_type != CustomMsg::Status
        && lcd_status_message_timeout.running()
        && lcd_status_message_timeout.elapsed() < LCD_STATUS_DELAYED_TIMEOUT)
   25808:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   2580c:	81 11       	cpse	r24, r1
   2580e:	1c c0       	rjmp	.+56     	; 0x25848 <lcdui_print_status_line()+0x14a>
        {
            return; // Nothing to do, waiting for delay to expire
        }

        switch (custom_message_type) {
   25810:	e0 91 c4 06 	lds	r30, 0x06C4	; 0x8006c4 <custom_message_type>
   25814:	ea 30       	cpi	r30, 0x0A	; 10
   25816:	08 f0       	brcs	.+2      	; 0x2581a <lcdui_print_status_line()+0x11c>
   25818:	9f cf       	rjmp	.-194    	; 0x25758 <lcdui_print_status_line()+0x5a>
   2581a:	f0 e0       	ldi	r31, 0x00	; 0
   2581c:	88 27       	eor	r24, r24
   2581e:	ec 5e       	subi	r30, 0xEC	; 236
   25820:	f3 4d       	sbci	r31, 0xD3	; 211
   25822:	8e 4f       	sbci	r24, 0xFE	; 254
   25824:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   25828:	ec 38       	cpi	r30, 0x8C	; 140
   2582a:	e4 39       	cpi	r30, 0x94	; 148
   2582c:	ec 38       	cpi	r30, 0x8C	; 140
   2582e:	28 39       	cpi	r18, 0x98	; 152
   25830:	74 39       	cpi	r23, 0x94	; 148
   25832:	24 3a       	cpi	r18, 0xA4	; 164
   25834:	ec 38       	cpi	r30, 0x8C	; 140
   25836:	ec 38       	cpi	r30, 0x8C	; 140
   25838:	ba 3a       	cpi	r27, 0xAA	; 170
   2583a:	ec 38       	cpi	r30, 0x8C	; 140
        (custom_message_type == CustomMsg::Status) &&
        (lcd_status_message_level <= LCD_STATUS_INFO) &&
        lcd_status_message_timeout.expired_cont(LCD_STATUS_INFO_TIMEOUT))
    {
        // If printing from SD, show what we are printing
        const char* longFilenameOLD = (card.longFilename[0] ? card.longFilename : card.filename);
   2583c:	82 e9       	ldi	r24, 0x92	; 146
   2583e:	94 e1       	ldi	r25, 0x14	; 20
   25840:	ca cf       	rjmp	.-108    	; 0x257d6 <lcdui_print_status_line()+0xd8>
        if( lcd_print_pad(&longFilenameOLD[scrollstuff], LCD_WIDTH) == 0)
        {
            scrollstuff++;
        } else {
            scrollstuff = 0;
   25842:	10 92 b9 0d 	sts	0x0DB9, r1	; 0x800db9 <scrollstuff>
   25846:	88 cf       	rjmp	.-240    	; 0x25758 <lcdui_print_status_line()+0x5a>
        }
    } else { // Otherwise check for other special events
        if ( custom_message_type != CustomMsg::Status
        && lcd_status_message_timeout.running()
   25848:	80 91 34 05 	lds	r24, 0x0534	; 0x800534 <_ZL26lcd_status_message_timeout.lto_priv.454>
   2584c:	88 23       	and	r24, r24
   2584e:	01 f3       	breq	.-64     	; 0x25810 <lcdui_print_status_line()+0x112>
 * This function is expected to handle wrap around of time register well.
 * The maximum elapsed time is dictated by the template type
 */
template<typename T>
T Timer<T>::elapsed() {
  return m_isRunning ? (_millis() - m_started) : 0;
   25850:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   25854:	00 91 35 05 	lds	r16, 0x0535	; 0x800535 <_ZL26lcd_status_message_timeout.lto_priv.454+0x1>
   25858:	10 91 36 05 	lds	r17, 0x0536	; 0x800536 <_ZL26lcd_status_message_timeout.lto_priv.454+0x2>
   2585c:	20 91 37 05 	lds	r18, 0x0537	; 0x800537 <_ZL26lcd_status_message_timeout.lto_priv.454+0x3>
   25860:	30 91 38 05 	lds	r19, 0x0538	; 0x800538 <_ZL26lcd_status_message_timeout.lto_priv.454+0x4>
   25864:	60 1b       	sub	r22, r16
   25866:	71 0b       	sbc	r23, r17
   25868:	82 0b       	sbc	r24, r18
   2586a:	93 0b       	sbc	r25, r19
        && lcd_status_message_timeout.elapsed() < LCD_STATUS_DELAYED_TIMEOUT)
   2586c:	60 3a       	cpi	r22, 0xA0	; 160
   2586e:	7f 40       	sbci	r23, 0x0F	; 15
   25870:	81 05       	cpc	r24, r1
   25872:	91 05       	cpc	r25, r1
   25874:	68 f6       	brcc	.-102    	; 0x25810 <lcdui_print_status_line()+0x112>
   25876:	70 cf       	rjmp	.-288    	; 0x25758 <lcdui_print_status_line()+0x5a>
        case CustomMsg::Status: // Nothing special, print status message normally
        case CustomMsg::M0Wait: // M0/M1 Wait command working even from SD
        case CustomMsg::FilamentLoading: // If loading filament, print status
        case CustomMsg::MMUProgress: // MMU Progress Codes
        {
            lcd_set_cursor(lcd_status_message_idx, 3);
   25878:	63 e0       	ldi	r22, 0x03	; 3
   2587a:	80 91 1e 05 	lds	r24, 0x051E	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
   2587e:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
            const uint8_t padding = lcd_print_pad(&lcd_status_message[lcd_status_message_idx], LCD_WIDTH - lcd_status_message_idx);
   25882:	80 91 1e 05 	lds	r24, 0x051E	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
   25886:	c4 e1       	ldi	r28, 0x14	; 20
   25888:	6c 2f       	mov	r22, r28
   2588a:	68 1b       	sub	r22, r24
   2588c:	90 e0       	ldi	r25, 0x00	; 0
   2588e:	81 5e       	subi	r24, 0xE1	; 225
   25890:	9a 4f       	sbci	r25, 0xFA	; 250
   25892:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
            lcd_status_message_idx = LCD_WIDTH - padding;
   25896:	c8 1b       	sub	r28, r24
   25898:	c0 93 1e 05 	sts	0x051E, r28	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
   2589c:	5d cf       	rjmp	.-326    	; 0x25758 <lcdui_print_status_line()+0x5a>
        }
        break;
        case CustomMsg::MeshBedLeveling: // If mesh bed leveling in progress, show the status
            if (custom_message_state > 10) {
   2589e:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   258a2:	8b 30       	cpi	r24, 0x0B	; 11
   258a4:	08 f1       	brcs	.+66     	; 0x258e8 <lcdui_print_status_line()+0x1ea>
                lcd_set_cursor(0, 3);
   258a6:	63 e0       	ldi	r22, 0x03	; 3
   258a8:	80 e0       	ldi	r24, 0x00	; 0
   258aa:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
                lcd_space(LCD_WIDTH);
   258ae:	84 e1       	ldi	r24, 0x14	; 20
   258b0:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
                lcd_puts_at_P(0, 3, _T(MSG_CALIBRATE_Z_AUTO));
   258b4:	82 e3       	ldi	r24, 0x32	; 50
   258b6:	9d e4       	ldi	r25, 0x4D	; 77
   258b8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   258bc:	ac 01       	movw	r20, r24
   258be:	63 e0       	ldi	r22, 0x03	; 3
   258c0:	80 e0       	ldi	r24, 0x00	; 0
   258c2:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
                lcd_puts_P(PSTR(" : "));
   258c6:	83 e9       	ldi	r24, 0x93	; 147
   258c8:	9f e9       	ldi	r25, 0x9F	; 159
   258ca:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
                lcd_print(custom_message_state - 10);
   258ce:	60 91 f7 03 	lds	r22, 0x03F7	; 0x8003f7 <custom_message_state>
   258d2:	6a 50       	subi	r22, 0x0A	; 10
   258d4:	77 0b       	sbc	r23, r23
	lcd_print((unsigned long) b, base);
}

void lcd_print(int n, int base)
{
	lcd_print((long) n, base);
   258d6:	07 2e       	mov	r0, r23
   258d8:	00 0c       	add	r0, r0
   258da:	88 0b       	sbc	r24, r24
   258dc:	99 0b       	sbc	r25, r25
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
            break;
        }
    }
}
   258de:	cf 91       	pop	r28
   258e0:	1f 91       	pop	r17
   258e2:	0f 91       	pop	r16
   258e4:	0c 94 20 70 	jmp	0xe040	; 0xe040 <lcd_print(long, int) [clone .part.3]>
                lcd_space(LCD_WIDTH);
                lcd_puts_at_P(0, 3, _T(MSG_CALIBRATE_Z_AUTO));
                lcd_puts_P(PSTR(" : "));
                lcd_print(custom_message_state - 10);
            } else {
                if (custom_message_state == 3) {
   258e8:	83 30       	cpi	r24, 0x03	; 3
   258ea:	31 f4       	brne	.+12     	; 0x258f8 <lcdui_print_status_line()+0x1fa>
                    lcd_setstatuspgm(MSG_WELCOME);
   258ec:	8f ec       	ldi	r24, 0xCF	; 207
   258ee:	9f e6       	ldi	r25, 0x6F	; 111
   258f0:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
                    custom_message_type = CustomMsg::Status;
   258f4:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
                }
                if (custom_message_state > 3 && custom_message_state <= 10) {
   258f8:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   258fc:	84 50       	subi	r24, 0x04	; 4
   258fe:	87 30       	cpi	r24, 0x07	; 7
   25900:	08 f0       	brcs	.+2      	; 0x25904 <lcdui_print_status_line()+0x206>
   25902:	2a cf       	rjmp	.-428    	; 0x25758 <lcdui_print_status_line()+0x5a>
                    lcd_set_cursor(0, 3);
   25904:	63 e0       	ldi	r22, 0x03	; 3
   25906:	80 e0       	ldi	r24, 0x00	; 0
   25908:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
                    lcd_space(19);
   2590c:	83 e1       	ldi	r24, 0x13	; 19
   2590e:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
                    lcd_puts_at_P(0, 3, _T(MSG_HOMEYZ_DONE));
   25912:	8f e1       	ldi	r24, 0x1F	; 31
   25914:	9d e4       	ldi	r25, 0x4D	; 77
   25916:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2591a:	ac 01       	movw	r20, r24
   2591c:	63 e0       	ldi	r22, 0x03	; 3
   2591e:	80 e0       	ldi	r24, 0x00	; 0
   25920:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
                    custom_message_state--;
   25924:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   25928:	81 50       	subi	r24, 0x01	; 1
   2592a:	80 93 f7 03 	sts	0x03F7, r24	; 0x8003f7 <custom_message_state>
   2592e:	14 cf       	rjmp	.-472    	; 0x25758 <lcdui_print_status_line()+0x5a>
                }
            }
            break;
        case CustomMsg::PidCal: // PID tuning in progress
            lcd_print_pad(lcd_status_message, LCD_WIDTH);
   25930:	64 e1       	ldi	r22, 0x14	; 20
   25932:	8f e1       	ldi	r24, 0x1F	; 31
   25934:	95 e0       	ldi	r25, 0x05	; 5
   25936:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
            if (pid_cycle <= pid_number_of_cycles && custom_message_state > 0) {
   2593a:	20 91 49 06 	lds	r18, 0x0649	; 0x800649 <pid_cycle>
   2593e:	30 91 4a 06 	lds	r19, 0x064A	; 0x80064a <pid_cycle+0x1>
   25942:	80 91 47 06 	lds	r24, 0x0647	; 0x800647 <pid_number_of_cycles>
   25946:	90 91 48 06 	lds	r25, 0x0648	; 0x800648 <pid_number_of_cycles+0x1>
   2594a:	82 17       	cp	r24, r18
   2594c:	93 07       	cpc	r25, r19
   2594e:	0c f4       	brge	.+2      	; 0x25952 <lcdui_print_status_line()+0x254>
   25950:	03 cf       	rjmp	.-506    	; 0x25758 <lcdui_print_status_line()+0x5a>
   25952:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   25956:	88 23       	and	r24, r24
   25958:	09 f4       	brne	.+2      	; 0x2595c <lcdui_print_status_line()+0x25e>
   2595a:	fe ce       	rjmp	.-516    	; 0x25758 <lcdui_print_status_line()+0x5a>
                lcd_set_cursor(10, 3);
   2595c:	63 e0       	ldi	r22, 0x03	; 3
   2595e:	8a e0       	ldi	r24, 0x0A	; 10
   25960:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
                lcd_printf_P(PSTR("%3d/%-3d"), pid_cycle, pid_number_of_cycles);
   25964:	80 91 48 06 	lds	r24, 0x0648	; 0x800648 <pid_number_of_cycles+0x1>
   25968:	8f 93       	push	r24
   2596a:	80 91 47 06 	lds	r24, 0x0647	; 0x800647 <pid_number_of_cycles>
   2596e:	8f 93       	push	r24
   25970:	80 91 4a 06 	lds	r24, 0x064A	; 0x80064a <pid_cycle+0x1>
   25974:	8f 93       	push	r24
   25976:	80 91 49 06 	lds	r24, 0x0649	; 0x800649 <pid_cycle>
   2597a:	8f 93       	push	r24
   2597c:	8a e8       	ldi	r24, 0x8A	; 138
   2597e:	9f e9       	ldi	r25, 0x9F	; 159
            }
            break;
        case CustomMsg::TempCal: // PINDA temp calibration in progress
            lcd_set_cursor(0, 3);
            lcd_printf_P(PSTR("%-12.12S%-d/6"), _T(MSG_PINDA_CALIBRATION), custom_message_state);
   25980:	9f 93       	push	r25
   25982:	8f 93       	push	r24
   25984:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   25988:	0f 90       	pop	r0
   2598a:	0f 90       	pop	r0
   2598c:	0f 90       	pop	r0
   2598e:	0f 90       	pop	r0
   25990:	0f 90       	pop	r0
   25992:	0f 90       	pop	r0
   25994:	e1 ce       	rjmp	.-574    	; 0x25758 <lcdui_print_status_line()+0x5a>
                lcd_set_cursor(10, 3);
                lcd_printf_P(PSTR("%3d/%-3d"), pid_cycle, pid_number_of_cycles);
            }
            break;
        case CustomMsg::TempCal: // PINDA temp calibration in progress
            lcd_set_cursor(0, 3);
   25996:	63 e0       	ldi	r22, 0x03	; 3
   25998:	80 e0       	ldi	r24, 0x00	; 0
   2599a:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
            lcd_printf_P(PSTR("%-12.12S%-d/6"), _T(MSG_PINDA_CALIBRATION), custom_message_state);
   2599e:	c0 91 f7 03 	lds	r28, 0x03F7	; 0x8003f7 <custom_message_state>
   259a2:	85 eb       	ldi	r24, 0xB5	; 181
   259a4:	94 e4       	ldi	r25, 0x44	; 68
   259a6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   259aa:	1f 92       	push	r1
   259ac:	cf 93       	push	r28
   259ae:	9f 93       	push	r25
   259b0:	8f 93       	push	r24
   259b2:	8c e7       	ldi	r24, 0x7C	; 124
   259b4:	9f e9       	ldi	r25, 0x9F	; 159
   259b6:	e4 cf       	rjmp	.-56     	; 0x25980 <lcdui_print_status_line()+0x282>
            break;
        case CustomMsg::TempCompPreheat:              // temp compensation preheat
            lcd_puts_at_P(0, 3, _T(MSG_PINDA_PREHEAT));
   259b8:	8f e0       	ldi	r24, 0x0F	; 15
   259ba:	9d e4       	ldi	r25, 0x4D	; 77
   259bc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   259c0:	ac 01       	movw	r20, r24
   259c2:	63 e0       	ldi	r22, 0x03	; 3
   259c4:	80 e0       	ldi	r24, 0x00	; 0
   259c6:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
            if (custom_message_state <= PINDA_HEAT_T) {
   259ca:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   259ce:	89 37       	cpi	r24, 0x79	; 121
   259d0:	08 f0       	brcs	.+2      	; 0x259d4 <lcdui_print_status_line()+0x2d6>
   259d2:	c2 ce       	rjmp	.-636    	; 0x25758 <lcdui_print_status_line()+0x5a>
                lcd_puts_P(PSTR(": "));
   259d4:	89 e7       	ldi	r24, 0x79	; 121
   259d6:	9f e9       	ldi	r25, 0x9F	; 159
   259d8:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
}

void lcd_print(unsigned long n, int base)
{
	if (base == 0)
		lcd_write(n);
   259dc:	80 91 f7 03 	lds	r24, 0x03F7	; 0x8003f7 <custom_message_state>
   259e0:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
   259e4:	80 e2       	ldi	r24, 0x20	; 32
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
            break;
        }
    }
}
   259e6:	cf 91       	pop	r28
   259e8:	1f 91       	pop	r17
   259ea:	0f 91       	pop	r16
   259ec:	0c 94 16 6f 	jmp	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
                lcd_print(custom_message_state); // seconds
                lcd_print(' ');
            }
            break;
        case CustomMsg::Resuming: // Resuming
            lcd_puts_at_P(0, 3, _T(MSG_RESUMING_PRINT));
   259f0:	8e ef       	ldi	r24, 0xFE	; 254
   259f2:	9c e4       	ldi	r25, 0x4C	; 76
   259f4:	be ce       	rjmp	.-644    	; 0x25772 <lcdui_print_status_line()+0x74>

000259f6 <Timer<unsigned long>::start()>:

/**
 * @brief Start timer
 */
template<typename T>
void Timer<T>::start()
   259f6:	cf 93       	push	r28
   259f8:	df 93       	push	r29
   259fa:	ec 01       	movw	r28, r24
{
    m_started = _millis();
   259fc:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   25a00:	69 83       	std	Y+1, r22	; 0x01
   25a02:	7a 83       	std	Y+2, r23	; 0x02
   25a04:	8b 83       	std	Y+3, r24	; 0x03
   25a06:	9c 83       	std	Y+4, r25	; 0x04
    m_isRunning = true;
   25a08:	81 e0       	ldi	r24, 0x01	; 1
   25a0a:	88 83       	st	Y, r24
}
   25a0c:	df 91       	pop	r29
   25a0e:	cf 91       	pop	r28
   25a10:	08 95       	ret

00025a12 <temp_error_messagepgm(char const*, unsigned char)>:

//! signal a temperature error on both the lcd and serial
//! @param type short error abbreviation (PROGMEM)
//! @param e optional extruder index for hotend errors
static void temp_error_messagepgm(const char* PROGMEM type, uint8_t e = EXTRUDERS)
{
   25a12:	cf 92       	push	r12
   25a14:	df 92       	push	r13
   25a16:	ff 92       	push	r15
   25a18:	0f 93       	push	r16
   25a1a:	1f 93       	push	r17
   25a1c:	cf 93       	push	r28
   25a1e:	df 93       	push	r29
   25a20:	cd b7       	in	r28, 0x3d	; 61
   25a22:	de b7       	in	r29, 0x3e	; 62
   25a24:	64 97       	sbiw	r28, 0x14	; 20
   25a26:	0f b6       	in	r0, 0x3f	; 63
   25a28:	f8 94       	cli
   25a2a:	de bf       	out	0x3e, r29	; 62
   25a2c:	0f be       	out	0x3f, r0	; 63
   25a2e:	cd bf       	out	0x3d, r28	; 61
   25a30:	8c 01       	movw	r16, r24
   25a32:	f6 2e       	mov	r15, r22
    char msg[LCD_WIDTH];
    strcpy_P(msg, PSTR("Err: "));
   25a34:	6d e8       	ldi	r22, 0x8D	; 141
   25a36:	7d e9       	ldi	r23, 0x9D	; 157
   25a38:	ce 01       	movw	r24, r28
   25a3a:	01 96       	adiw	r24, 0x01	; 1
   25a3c:	0f 94 12 da 	call	0x3b424	; 0x3b424 <strcpy_P>
    strcat_P(msg, type);
   25a40:	b8 01       	movw	r22, r16
   25a42:	ce 01       	movw	r24, r28
   25a44:	01 96       	adiw	r24, 0x01	; 1
   25a46:	0f 94 fe d9 	call	0x3b3fc	; 0x3b3fc <strcat_P>
    lcd_status_message_timeout.start();
}

void lcd_setalertstatus_(const char* message, uint8_t severity, bool progmem)
{
    if (lcd_message_check(severity)) {
   25a4a:	83 e0       	ldi	r24, 0x03	; 3
   25a4c:	0e 94 ec f1 	call	0x1e3d8	; 0x1e3d8 <lcd_message_check(unsigned char) [clone .lto_priv.486]>
   25a50:	88 23       	and	r24, r24
   25a52:	e1 f0       	breq	.+56     	; 0x25a8c <temp_error_messagepgm(char const*, unsigned char)+0x7a>
        bool same = !(progmem?
            strcmp_P(lcd_status_message, message):
            strcmp(lcd_status_message, message));
   25a54:	be 01       	movw	r22, r28
   25a56:	6f 5f       	subi	r22, 0xFF	; 255
   25a58:	7f 4f       	sbci	r23, 0xFF	; 255
   25a5a:	8f e1       	ldi	r24, 0x1F	; 31
   25a5c:	95 e0       	ldi	r25, 0x05	; 5
   25a5e:	0f 94 bd e2 	call	0x3c57a	; 0x3c57a <strcmp>
   25a62:	6c 01       	movw	r12, r24
        lcd_status_message_timeout.start();
   25a64:	84 e3       	ldi	r24, 0x34	; 52
   25a66:	95 e0       	ldi	r25, 0x05	; 5
   25a68:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
        lcd_status_message_level = severity;
   25a6c:	83 e0       	ldi	r24, 0x03	; 3
   25a6e:	80 93 d5 03 	sts	0x03D5, r24	; 0x8003d5 <_ZL24lcd_status_message_level.lto_priv.453>
        custom_message_type = CustomMsg::Status;
   25a72:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
        custom_message_state = 0;
   25a76:	10 92 f7 03 	sts	0x03F7, r1	; 0x8003f7 <custom_message_state>
        if (!same) {
   25a7a:	cd 28       	or	r12, r13
   25a7c:	39 f0       	breq	.+14     	; 0x25a8c <temp_error_messagepgm(char const*, unsigned char)+0x7a>
            // do not kick the user out of the menus if the message is unchanged
            lcd_updatestatus(message, progmem);
   25a7e:	60 e0       	ldi	r22, 0x00	; 0
   25a80:	ce 01       	movw	r24, r28
   25a82:	01 96       	adiw	r24, 0x01	; 1
   25a84:	0e 94 d1 f1 	call	0x1e3a2	; 0x1e3a2 <lcd_updatestatus(char const*, bool) [clone .lto_priv.487]>
            lcd_return_to_status();
   25a88:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
    lcd_setalertstatus(msg, LCD_STATUS_CRITICAL);

    SERIAL_ERROR_START;
   25a8c:	88 ea       	ldi	r24, 0xA8	; 168
   25a8e:	9a ea       	ldi	r25, 0xAA	; 170
   25a90:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

    if(e != EXTRUDERS) {
   25a94:	81 e0       	ldi	r24, 0x01	; 1
   25a96:	f8 16       	cp	r15, r24
   25a98:	49 f0       	breq	.+18     	; 0x25aac <temp_error_messagepgm(char const*, unsigned char)+0x9a>
   25a9a:	60 e0       	ldi	r22, 0x00	; 0
   25a9c:	70 e0       	ldi	r23, 0x00	; 0
   25a9e:	cb 01       	movw	r24, r22
   25aa0:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
        SERIAL_ERROR((int)e);
        SERIAL_ERRORPGM(": ");
   25aa4:	8a e8       	ldi	r24, 0x8A	; 138
   25aa6:	9d e9       	ldi	r25, 0x9D	; 157
   25aa8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    }

    SERIAL_ERRORPGM("Heaters switched off. ");
   25aac:	83 e7       	ldi	r24, 0x73	; 115
   25aae:	9d e9       	ldi	r25, 0x9D	; 157
   25ab0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORRPGM(type);
   25ab4:	c8 01       	movw	r24, r16
   25ab6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORLNPGM(" triggered!");
   25aba:	87 e6       	ldi	r24, 0x67	; 103
   25abc:	9d e9       	ldi	r25, 0x9D	; 157
   25abe:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
}
   25ac2:	64 96       	adiw	r28, 0x14	; 20
   25ac4:	0f b6       	in	r0, 0x3f	; 63
   25ac6:	f8 94       	cli
   25ac8:	de bf       	out	0x3e, r29	; 62
   25aca:	0f be       	out	0x3f, r0	; 63
   25acc:	cd bf       	out	0x3d, r28	; 61
   25ace:	df 91       	pop	r29
   25ad0:	cf 91       	pop	r28
   25ad2:	1f 91       	pop	r17
   25ad4:	0f 91       	pop	r16
   25ad6:	ff 90       	pop	r15
   25ad8:	df 90       	pop	r13
   25ada:	cf 90       	pop	r12
   25adc:	08 95       	ret

00025ade <__vector_15>:
volatile unsigned long timer2_overflow_count;
volatile unsigned long timer2_millis;
unsigned char timer2_fract = 0;

ISR(TIMER2_OVF_vect)
{
   25ade:	1f 92       	push	r1
   25ae0:	0f 92       	push	r0
   25ae2:	0f b6       	in	r0, 0x3f	; 63
   25ae4:	0f 92       	push	r0
   25ae6:	11 24       	eor	r1, r1
   25ae8:	2f 93       	push	r18
   25aea:	3f 93       	push	r19
   25aec:	8f 93       	push	r24
   25aee:	9f 93       	push	r25
   25af0:	af 93       	push	r26
   25af2:	bf 93       	push	r27
	// copy these to local variables so they can be stored in registers
	// (volatile variables must be read from memory on every access)
	unsigned long m = timer2_millis;
   25af4:	80 91 3b 06 	lds	r24, 0x063B	; 0x80063b <timer2_millis>
   25af8:	90 91 3c 06 	lds	r25, 0x063C	; 0x80063c <timer2_millis+0x1>
   25afc:	a0 91 3d 06 	lds	r26, 0x063D	; 0x80063d <timer2_millis+0x2>
   25b00:	b0 91 3e 06 	lds	r27, 0x063E	; 0x80063e <timer2_millis+0x3>
	unsigned char f = timer2_fract;
   25b04:	30 91 3a 06 	lds	r19, 0x063A	; 0x80063a <timer2_fract>
	m += MILLIS_INC;
	f += FRACT_INC;
   25b08:	23 e0       	ldi	r18, 0x03	; 3
   25b0a:	23 0f       	add	r18, r19
	if (f >= FRACT_MAX)
   25b0c:	2d 37       	cpi	r18, 0x7D	; 125
   25b0e:	58 f5       	brcc	.+86     	; 0x25b66 <__vector_15+0x88>
{
	// copy these to local variables so they can be stored in registers
	// (volatile variables must be read from memory on every access)
	unsigned long m = timer2_millis;
	unsigned char f = timer2_fract;
	m += MILLIS_INC;
   25b10:	01 96       	adiw	r24, 0x01	; 1
   25b12:	a1 1d       	adc	r26, r1
   25b14:	b1 1d       	adc	r27, r1
	if (f >= FRACT_MAX)
	{
		f -= FRACT_MAX;
		m += 1;
	}
	timer2_fract = f;
   25b16:	20 93 3a 06 	sts	0x063A, r18	; 0x80063a <timer2_fract>
	timer2_millis = m;
   25b1a:	80 93 3b 06 	sts	0x063B, r24	; 0x80063b <timer2_millis>
   25b1e:	90 93 3c 06 	sts	0x063C, r25	; 0x80063c <timer2_millis+0x1>
   25b22:	a0 93 3d 06 	sts	0x063D, r26	; 0x80063d <timer2_millis+0x2>
   25b26:	b0 93 3e 06 	sts	0x063E, r27	; 0x80063e <timer2_millis+0x3>
	timer2_overflow_count++;
   25b2a:	80 91 3f 06 	lds	r24, 0x063F	; 0x80063f <timer2_overflow_count>
   25b2e:	90 91 40 06 	lds	r25, 0x0640	; 0x800640 <timer2_overflow_count+0x1>
   25b32:	a0 91 41 06 	lds	r26, 0x0641	; 0x800641 <timer2_overflow_count+0x2>
   25b36:	b0 91 42 06 	lds	r27, 0x0642	; 0x800642 <timer2_overflow_count+0x3>
   25b3a:	01 96       	adiw	r24, 0x01	; 1
   25b3c:	a1 1d       	adc	r26, r1
   25b3e:	b1 1d       	adc	r27, r1
   25b40:	80 93 3f 06 	sts	0x063F, r24	; 0x80063f <timer2_overflow_count>
   25b44:	90 93 40 06 	sts	0x0640, r25	; 0x800640 <timer2_overflow_count+0x1>
   25b48:	a0 93 41 06 	sts	0x0641, r26	; 0x800641 <timer2_overflow_count+0x2>
   25b4c:	b0 93 42 06 	sts	0x0642, r27	; 0x800642 <timer2_overflow_count+0x3>
}
   25b50:	bf 91       	pop	r27
   25b52:	af 91       	pop	r26
   25b54:	9f 91       	pop	r25
   25b56:	8f 91       	pop	r24
   25b58:	3f 91       	pop	r19
   25b5a:	2f 91       	pop	r18
   25b5c:	0f 90       	pop	r0
   25b5e:	0f be       	out	0x3f, r0	; 63
   25b60:	0f 90       	pop	r0
   25b62:	1f 90       	pop	r1
   25b64:	18 95       	reti
	unsigned char f = timer2_fract;
	m += MILLIS_INC;
	f += FRACT_INC;
	if (f >= FRACT_MAX)
	{
		f -= FRACT_MAX;
   25b66:	26 e8       	ldi	r18, 0x86	; 134
   25b68:	23 0f       	add	r18, r19
		m += 1;
   25b6a:	02 96       	adiw	r24, 0x02	; 2
   25b6c:	a1 1d       	adc	r26, r1
   25b6e:	b1 1d       	adc	r27, r1
   25b70:	d2 cf       	rjmp	.-92     	; 0x25b16 <__vector_15+0x38>

00025b72 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]>:

    return pos;
}

static float cost_fn(uint16_t samples, float* const var, float v, uint8_t fan_pwm, float ambient)
{
   25b72:	2f 92       	push	r2
   25b74:	3f 92       	push	r3
   25b76:	4f 92       	push	r4
   25b78:	5f 92       	push	r5
   25b7a:	6f 92       	push	r6
   25b7c:	7f 92       	push	r7
   25b7e:	8f 92       	push	r8
   25b80:	9f 92       	push	r9
   25b82:	af 92       	push	r10
   25b84:	bf 92       	push	r11
   25b86:	cf 92       	push	r12
   25b88:	df 92       	push	r13
   25b8a:	ef 92       	push	r14
   25b8c:	ff 92       	push	r15
   25b8e:	0f 93       	push	r16
   25b90:	1f 93       	push	r17
   25b92:	cf 93       	push	r28
   25b94:	df 93       	push	r29
   25b96:	00 d0       	rcall	.+0      	; 0x25b98 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x26>
   25b98:	00 d0       	rcall	.+0      	; 0x25b9a <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x28>
   25b9a:	1f 92       	push	r1
   25b9c:	cd b7       	in	r28, 0x3d	; 61
   25b9e:	de b7       	in	r29, 0x3e	; 62
   25ba0:	9c 83       	std	Y+4, r25	; 0x04
   25ba2:	8b 83       	std	Y+3, r24	; 0x03
   25ba4:	0d 83       	std	Y+5, r16	; 0x05
   25ba6:	26 01       	movw	r4, r12
   25ba8:	37 01       	movw	r6, r14
    *var = v;
   25baa:	fb 01       	movw	r30, r22
   25bac:	20 83       	st	Z, r18
   25bae:	31 83       	std	Z+1, r19	; 0x01
   25bb0:	42 83       	std	Z+2, r20	; 0x02
   25bb2:	53 83       	std	Z+3, r21	; 0x03

void model_data::reset(uint8_t heater_pwm _UNUSED, uint8_t fan_pwm _UNUSED,
    float heater_temp _UNUSED, float ambient_temp _UNUSED)
{
    // pre-compute invariant values
    C_i = (TEMP_MGR_INTV / C);
   25bb4:	20 91 e6 12 	lds	r18, 0x12E6	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   25bb8:	30 91 e7 12 	lds	r19, 0x12E7	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   25bbc:	40 91 e8 12 	lds	r20, 0x12E8	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   25bc0:	50 91 e9 12 	lds	r21, 0x12E9	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
   25bc4:	61 e7       	ldi	r22, 0x71	; 113
   25bc6:	7d e3       	ldi	r23, 0x3D	; 61
   25bc8:	8a e8       	ldi	r24, 0x8A	; 138
   25bca:	9e e3       	ldi	r25, 0x3E	; 62
   25bcc:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   25bd0:	60 93 3d 13 	sts	0x133D, r22	; 0x80133d <_ZN13thermal_modelL4dataE.lto_priv.402+0x8d>
   25bd4:	70 93 3e 13 	sts	0x133E, r23	; 0x80133e <_ZN13thermal_modelL4dataE.lto_priv.402+0x8e>
   25bd8:	80 93 3f 13 	sts	0x133F, r24	; 0x80133f <_ZN13thermal_modelL4dataE.lto_priv.402+0x8f>
   25bdc:	90 93 40 13 	sts	0x1340, r25	; 0x801340 <_ZN13thermal_modelL4dataE.lto_priv.402+0x90>
    warn_s = warn * TEMP_MGR_INTV;
   25be0:	21 e7       	ldi	r18, 0x71	; 113
   25be2:	3d e3       	ldi	r19, 0x3D	; 61
   25be4:	4a e8       	ldi	r20, 0x8A	; 138
   25be6:	5e e3       	ldi	r21, 0x3E	; 62
   25be8:	60 91 34 13 	lds	r22, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   25bec:	70 91 35 13 	lds	r23, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   25bf0:	80 91 36 13 	lds	r24, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   25bf4:	90 91 37 13 	lds	r25, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
   25bf8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   25bfc:	60 93 41 13 	sts	0x1341, r22	; 0x801341 <_ZN13thermal_modelL4dataE.lto_priv.402+0x91>
   25c00:	70 93 42 13 	sts	0x1342, r23	; 0x801342 <_ZN13thermal_modelL4dataE.lto_priv.402+0x92>
   25c04:	80 93 43 13 	sts	0x1343, r24	; 0x801343 <_ZN13thermal_modelL4dataE.lto_priv.402+0x93>
   25c08:	90 93 44 13 	sts	0x1344, r25	; 0x801344 <_ZN13thermal_modelL4dataE.lto_priv.402+0x94>
    err_s = err * TEMP_MGR_INTV;
   25c0c:	21 e7       	ldi	r18, 0x71	; 113
   25c0e:	3d e3       	ldi	r19, 0x3D	; 61
   25c10:	4a e8       	ldi	r20, 0x8A	; 138
   25c12:	5e e3       	ldi	r21, 0x3E	; 62
   25c14:	60 91 38 13 	lds	r22, 0x1338	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   25c18:	70 91 39 13 	lds	r23, 0x1339	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   25c1c:	80 91 3a 13 	lds	r24, 0x133A	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   25c20:	90 91 3b 13 	lds	r25, 0x133B	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
   25c24:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   25c28:	60 93 45 13 	sts	0x1345, r22	; 0x801345 <_ZN13thermal_modelL4dataE.lto_priv.402+0x95>
   25c2c:	70 93 46 13 	sts	0x1346, r23	; 0x801346 <_ZN13thermal_modelL4dataE.lto_priv.402+0x96>
   25c30:	80 93 47 13 	sts	0x1347, r24	; 0x801347 <_ZN13thermal_modelL4dataE.lto_priv.402+0x97>
   25c34:	90 93 48 13 	sts	0x1348, r25	; 0x801348 <_ZN13thermal_modelL4dataE.lto_priv.402+0x98>
    dT_lag_size = L / (uint16_t)(TEMP_MGR_INTV * 1000);
   25c38:	80 91 ee 12 	lds	r24, 0x12EE	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
   25c3c:	90 91 ef 12 	lds	r25, 0x12EF	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   25c40:	6e e0       	ldi	r22, 0x0E	; 14
   25c42:	71 e0       	ldi	r23, 0x01	; 1
   25c44:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   25c48:	60 93 d0 12 	sts	0x12D0, r22	; 0x8012d0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x20>
   25c4c:	e0 eb       	ldi	r30, 0xB0	; 176
   25c4e:	f2 e1       	ldi	r31, 0x12	; 18

    // initial values
    for(uint8_t i = 0; i != THERMAL_MODEL_MAX_LAG_SIZE; ++i)
        dT_lag_buf[i] = NAN;
   25c50:	80 e0       	ldi	r24, 0x00	; 0
   25c52:	90 e0       	ldi	r25, 0x00	; 0
   25c54:	a0 ec       	ldi	r26, 0xC0	; 192
   25c56:	bf e7       	ldi	r27, 0x7F	; 127
   25c58:	81 93       	st	Z+, r24
   25c5a:	91 93       	st	Z+, r25
   25c5c:	a1 93       	st	Z+, r26
   25c5e:	b1 93       	st	Z+, r27
    warn_s = warn * TEMP_MGR_INTV;
    err_s = err * TEMP_MGR_INTV;
    dT_lag_size = L / (uint16_t)(TEMP_MGR_INTV * 1000);

    // initial values
    for(uint8_t i = 0; i != THERMAL_MODEL_MAX_LAG_SIZE; ++i)
   25c60:	22 e1       	ldi	r18, 0x12	; 18
   25c62:	e0 3d       	cpi	r30, 0xD0	; 208
   25c64:	f2 07       	cpc	r31, r18
   25c66:	c1 f7       	brne	.-16     	; 0x25c58 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0xe6>
        dT_lag_buf[i] = NAN;
    dT_lag_idx = 0;
   25c68:	10 92 d1 12 	sts	0x12D1, r1	; 0x8012d1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x21>
    dT_err_prev = 0;
   25c6c:	10 92 d2 12 	sts	0x12D2, r1	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   25c70:	10 92 d3 12 	sts	0x12D3, r1	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   25c74:	10 92 d4 12 	sts	0x12D4, r1	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   25c78:	10 92 d5 12 	sts	0x12D5, r1	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>
    T_prev = NAN;
   25c7c:	80 93 d6 12 	sts	0x12D6, r24	; 0x8012d6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x26>
   25c80:	90 93 d7 12 	sts	0x12D7, r25	; 0x8012d7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x27>
   25c84:	a0 93 d8 12 	sts	0x12D8, r26	; 0x8012d8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x28>
   25c88:	b0 93 d9 12 	sts	0x12D9, r27	; 0x8012d9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x29>

    // clear the initialization flag
    flag_bits.uninitialized = false;
   25c8c:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   25c90:	8e 7f       	andi	r24, 0xFE	; 254
   25c92:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   25c96:	85 ec       	ldi	r24, 0xC5	; 197
   25c98:	96 e0       	ldi	r25, 0x06	; 6
   25c9a:	9f 83       	std	Y+7, r25	; 0x07
   25c9c:	8e 83       	std	Y+6, r24	; 0x06
{
    *var = v;
    thermal_model::data.reset(rec_buffer[0].pwm, fan_pwm, rec_buffer[0].temp, ambient);
    float err = 0;
    uint16_t cnt = 0;
    for(uint16_t i = 1; i < samples; ++i) {
   25c9e:	e1 e0       	ldi	r30, 0x01	; 1
   25ca0:	f0 e0       	ldi	r31, 0x00	; 0
   25ca2:	fa 83       	std	Y+2, r31	; 0x02
   25ca4:	e9 83       	std	Y+1, r30	; 0x01
static float cost_fn(uint16_t samples, float* const var, float v, uint8_t fan_pwm, float ambient)
{
    *var = v;
    thermal_model::data.reset(rec_buffer[0].pwm, fan_pwm, rec_buffer[0].temp, ambient);
    float err = 0;
    uint16_t cnt = 0;
   25ca6:	31 2c       	mov	r3, r1
   25ca8:	21 2c       	mov	r2, r1

static float cost_fn(uint16_t samples, float* const var, float v, uint8_t fan_pwm, float ambient)
{
    *var = v;
    thermal_model::data.reset(rec_buffer[0].pwm, fan_pwm, rec_buffer[0].temp, ambient);
    float err = 0;
   25caa:	81 2c       	mov	r8, r1
   25cac:	91 2c       	mov	r9, r1
   25cae:	54 01       	movw	r10, r8
    uint16_t cnt = 0;
    for(uint16_t i = 1; i < samples; ++i) {
   25cb0:	29 81       	ldd	r18, Y+1	; 0x01
   25cb2:	3a 81       	ldd	r19, Y+2	; 0x02
   25cb4:	8b 81       	ldd	r24, Y+3	; 0x03
   25cb6:	9c 81       	ldd	r25, Y+4	; 0x04
   25cb8:	28 17       	cp	r18, r24
   25cba:	39 07       	cpc	r19, r25
   25cbc:	c8 f5       	brcc	.+114    	; 0x25d30 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x1be>
        thermal_model::data.step(rec_buffer[i].pwm, fan_pwm, rec_buffer[i].temp, ambient);
   25cbe:	ee 81       	ldd	r30, Y+6	; 0x06
   25cc0:	ff 81       	ldd	r31, Y+7	; 0x07
   25cc2:	25 81       	ldd	r18, Z+5	; 0x05
   25cc4:	36 81       	ldd	r19, Z+6	; 0x06
   25cc6:	47 81       	ldd	r20, Z+7	; 0x07
   25cc8:	50 85       	ldd	r21, Z+8	; 0x08
   25cca:	83 01       	movw	r16, r6
   25ccc:	72 01       	movw	r14, r4
   25cce:	6d 81       	ldd	r22, Y+5	; 0x05
   25cd0:	81 85       	ldd	r24, Z+9	; 0x09
   25cd2:	0e 94 18 e6 	call	0x1cc30	; 0x1cc30 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]>
        float err_v = thermal_model::data.dT_err_prev;
   25cd6:	c0 90 d2 12 	lds	r12, 0x12D2	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   25cda:	d0 90 d3 12 	lds	r13, 0x12D3	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   25cde:	e0 90 d4 12 	lds	r14, 0x12D4	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   25ce2:	f0 90 d5 12 	lds	r15, 0x12D5	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>
        if(!isnan(err_v)) {
   25ce6:	a7 01       	movw	r20, r14
   25ce8:	96 01       	movw	r18, r12
   25cea:	c7 01       	movw	r24, r14
   25cec:	b6 01       	movw	r22, r12
   25cee:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   25cf2:	81 11       	cpse	r24, r1
   25cf4:	11 c0       	rjmp	.+34     	; 0x25d18 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x1a6>
            err += err_v * err_v;
   25cf6:	a7 01       	movw	r20, r14
   25cf8:	96 01       	movw	r18, r12
   25cfa:	c7 01       	movw	r24, r14
   25cfc:	b6 01       	movw	r22, r12
   25cfe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   25d02:	9b 01       	movw	r18, r22
   25d04:	ac 01       	movw	r20, r24
   25d06:	c5 01       	movw	r24, r10
   25d08:	b4 01       	movw	r22, r8
   25d0a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   25d0e:	4b 01       	movw	r8, r22
   25d10:	5c 01       	movw	r10, r24
            ++cnt;
   25d12:	ff ef       	ldi	r31, 0xFF	; 255
   25d14:	2f 1a       	sub	r2, r31
   25d16:	3f 0a       	sbc	r3, r31
{
    *var = v;
    thermal_model::data.reset(rec_buffer[0].pwm, fan_pwm, rec_buffer[0].temp, ambient);
    float err = 0;
    uint16_t cnt = 0;
    for(uint16_t i = 1; i < samples; ++i) {
   25d18:	29 81       	ldd	r18, Y+1	; 0x01
   25d1a:	3a 81       	ldd	r19, Y+2	; 0x02
   25d1c:	2f 5f       	subi	r18, 0xFF	; 255
   25d1e:	3f 4f       	sbci	r19, 0xFF	; 255
   25d20:	3a 83       	std	Y+2, r19	; 0x02
   25d22:	29 83       	std	Y+1, r18	; 0x01
   25d24:	8e 81       	ldd	r24, Y+6	; 0x06
   25d26:	9f 81       	ldd	r25, Y+7	; 0x07
   25d28:	05 96       	adiw	r24, 0x05	; 5
   25d2a:	9f 83       	std	Y+7, r25	; 0x07
   25d2c:	8e 83       	std	Y+6, r24	; 0x06
   25d2e:	c0 cf       	rjmp	.-128    	; 0x25cb0 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x13e>
        if(!isnan(err_v)) {
            err += err_v * err_v;
            ++cnt;
        }
    }
    return cnt ? (err / cnt) : NAN;
   25d30:	60 e0       	ldi	r22, 0x00	; 0
   25d32:	70 e0       	ldi	r23, 0x00	; 0
   25d34:	80 ec       	ldi	r24, 0xC0	; 192
   25d36:	9f e7       	ldi	r25, 0x7F	; 127
   25d38:	21 14       	cp	r2, r1
   25d3a:	31 04       	cpc	r3, r1
   25d3c:	59 f0       	breq	.+22     	; 0x25d54 <thermal_model_cal::cost_fn(unsigned int, float*, float, unsigned char, float) [clone .lto_priv.421]+0x1e2>
   25d3e:	b1 01       	movw	r22, r2
   25d40:	90 e0       	ldi	r25, 0x00	; 0
   25d42:	80 e0       	ldi	r24, 0x00	; 0
   25d44:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   25d48:	9b 01       	movw	r18, r22
   25d4a:	ac 01       	movw	r20, r24
   25d4c:	c5 01       	movw	r24, r10
   25d4e:	b4 01       	movw	r22, r8
   25d50:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
}
   25d54:	27 96       	adiw	r28, 0x07	; 7
   25d56:	0f b6       	in	r0, 0x3f	; 63
   25d58:	f8 94       	cli
   25d5a:	de bf       	out	0x3e, r29	; 62
   25d5c:	0f be       	out	0x3f, r0	; 63
   25d5e:	cd bf       	out	0x3d, r28	; 61
   25d60:	df 91       	pop	r29
   25d62:	cf 91       	pop	r28
   25d64:	1f 91       	pop	r17
   25d66:	0f 91       	pop	r16
   25d68:	ff 90       	pop	r15
   25d6a:	ef 90       	pop	r14
   25d6c:	df 90       	pop	r13
   25d6e:	cf 90       	pop	r12
   25d70:	bf 90       	pop	r11
   25d72:	af 90       	pop	r10
   25d74:	9f 90       	pop	r9
   25d76:	8f 90       	pop	r8
   25d78:	7f 90       	pop	r7
   25d7a:	6f 90       	pop	r6
   25d7c:	5f 90       	pop	r5
   25d7e:	4f 90       	pop	r4
   25d80:	3f 90       	pop	r3
   25d82:	2f 90       	pop	r2
   25d84:	08 95       	ret

00025d86 <thermal_model_cal::set_fan_speed(unsigned char) [clone .lto_priv.557]>:

namespace thermal_model_cal {

// set current fan speed for both front/backend
static __attribute__((noinline)) void set_fan_speed(uint8_t fan_speed)
{
   25d86:	cf 93       	push	r28
   25d88:	c8 2f       	mov	r28, r24
    // reset the fan measuring state due to missing hysteresis handling on the checking side
    resetFanCheck();
   25d8a:	0e 94 68 74 	call	0xe8d0	; 0xe8d0 <resetFanCheck()>

    fanSpeed = fan_speed;
   25d8e:	c0 93 e7 03 	sts	0x03E7, r28	; 0x8003e7 <fanSpeed>
#ifdef FAN_SOFT_PWM
    fanSpeedSoftPwm = fan_speed;
   25d92:	c0 93 a6 04 	sts	0x04A6, r28	; 0x8004a6 <fanSpeedSoftPwm>
#endif
}
   25d96:	cf 91       	pop	r28
   25d98:	08 95       	ret

00025d9a <thermal_model_report_settings()>:
    thermal_model::data.R[index] = R;
    thermal_model::setup();
}

void thermal_model_report_settings()
{
   25d9a:	cf 92       	push	r12
   25d9c:	df 92       	push	r13
   25d9e:	ef 92       	push	r14
   25da0:	ff 92       	push	r15
   25da2:	0f 93       	push	r16
   25da4:	1f 93       	push	r17
   25da6:	cf 93       	push	r28
   25da8:	df 93       	push	r29
    SERIAL_ECHO_START;
   25daa:	80 ed       	ldi	r24, 0xD0	; 208
   25dac:	9a ea       	ldi	r25, 0xAA	; 170
   25dae:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLNPGM("Thermal Model settings:");
   25db2:	82 e3       	ldi	r24, 0x32	; 50
   25db4:	9e e9       	ldi	r25, 0x9E	; 158
   25db6:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   25dba:	c0 ef       	ldi	r28, 0xF0	; 240
   25dbc:	d2 e1       	ldi	r29, 0x12	; 18
   25dbe:	10 e0       	ldi	r17, 0x00	; 0
   25dc0:	00 e0       	ldi	r16, 0x00	; 0
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i)
        printf_P(PSTR("%S  M310 I%u R%.2f\n"), echomagic, (unsigned)i, (double)thermal_model::data.R[i]);
   25dc2:	80 ed       	ldi	r24, 0xD0	; 208
   25dc4:	e8 2e       	mov	r14, r24
   25dc6:	8a ea       	ldi	r24, 0xAA	; 170
   25dc8:	f8 2e       	mov	r15, r24
   25dca:	9e e1       	ldi	r25, 0x1E	; 30
   25dcc:	c9 2e       	mov	r12, r25
   25dce:	9e e9       	ldi	r25, 0x9E	; 158
   25dd0:	d9 2e       	mov	r13, r25
   25dd2:	88 81       	ld	r24, Y
   25dd4:	99 81       	ldd	r25, Y+1	; 0x01
   25dd6:	2a 81       	ldd	r18, Y+2	; 0x02
   25dd8:	3b 81       	ldd	r19, Y+3	; 0x03
   25dda:	24 96       	adiw	r28, 0x04	; 4
   25ddc:	3f 93       	push	r19
   25dde:	2f 93       	push	r18
   25de0:	9f 93       	push	r25
   25de2:	8f 93       	push	r24
   25de4:	1f 93       	push	r17
   25de6:	0f 93       	push	r16
   25de8:	ff 92       	push	r15
   25dea:	ef 92       	push	r14
   25dec:	df 92       	push	r13
   25dee:	cf 92       	push	r12
   25df0:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   25df4:	0f 5f       	subi	r16, 0xFF	; 255
   25df6:	1f 4f       	sbci	r17, 0xFF	; 255

void thermal_model_report_settings()
{
    SERIAL_ECHO_START;
    SERIAL_ECHOLNPGM("Thermal Model settings:");
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i)
   25df8:	8d b7       	in	r24, 0x3d	; 61
   25dfa:	9e b7       	in	r25, 0x3e	; 62
   25dfc:	0a 96       	adiw	r24, 0x0a	; 10
   25dfe:	0f b6       	in	r0, 0x3f	; 63
   25e00:	f8 94       	cli
   25e02:	9e bf       	out	0x3e, r25	; 62
   25e04:	0f be       	out	0x3f, r0	; 63
   25e06:	8d bf       	out	0x3d, r24	; 61
   25e08:	00 31       	cpi	r16, 0x10	; 16
   25e0a:	11 05       	cpc	r17, r1
   25e0c:	11 f7       	brne	.-60     	; 0x25dd2 <thermal_model_report_settings()+0x38>
        printf_P(PSTR("%S  M310 I%u R%.2f\n"), echomagic, (unsigned)i, (double)thermal_model::data.R[i]);
    printf_P(PSTR("%S  M310 P%.2f U%.4f V%.2f C%.2f D%.4f L%u S%u B%u E%.2f W%.2f T%.2f\n"),
   25e0e:	80 91 33 13 	lds	r24, 0x1333	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
   25e12:	8f 93       	push	r24
   25e14:	80 91 32 13 	lds	r24, 0x1332	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   25e18:	8f 93       	push	r24
   25e1a:	80 91 31 13 	lds	r24, 0x1331	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   25e1e:	8f 93       	push	r24
   25e20:	80 91 30 13 	lds	r24, 0x1330	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   25e24:	8f 93       	push	r24
   25e26:	80 91 37 13 	lds	r24, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
   25e2a:	8f 93       	push	r24
   25e2c:	80 91 36 13 	lds	r24, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   25e30:	8f 93       	push	r24
   25e32:	80 91 35 13 	lds	r24, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   25e36:	8f 93       	push	r24
   25e38:	80 91 34 13 	lds	r24, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   25e3c:	8f 93       	push	r24
   25e3e:	80 91 3b 13 	lds	r24, 0x133B	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
   25e42:	8f 93       	push	r24
   25e44:	80 91 3a 13 	lds	r24, 0x133A	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   25e48:	8f 93       	push	r24
   25e4a:	80 91 39 13 	lds	r24, 0x1339	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   25e4e:	8f 93       	push	r24
   25e50:	80 91 38 13 	lds	r24, 0x1338	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   25e54:	8f 93       	push	r24
   25e56:	80 91 3d 02 	lds	r24, 0x023D	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
   25e5a:	1f 92       	push	r1
   25e5c:	8f 93       	push	r24
   25e5e:	80 91 1d 05 	lds	r24, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   25e62:	1f 92       	push	r1
   25e64:	8f 93       	push	r24
   25e66:	80 91 ef 12 	lds	r24, 0x12EF	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   25e6a:	8f 93       	push	r24
   25e6c:	80 91 ee 12 	lds	r24, 0x12EE	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
   25e70:	8f 93       	push	r24
   25e72:	80 91 ed 12 	lds	r24, 0x12ED	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
   25e76:	8f 93       	push	r24
   25e78:	80 91 ec 12 	lds	r24, 0x12EC	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   25e7c:	8f 93       	push	r24
   25e7e:	80 91 eb 12 	lds	r24, 0x12EB	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   25e82:	8f 93       	push	r24
   25e84:	80 91 ea 12 	lds	r24, 0x12EA	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   25e88:	8f 93       	push	r24
   25e8a:	80 91 e9 12 	lds	r24, 0x12E9	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
   25e8e:	8f 93       	push	r24
   25e90:	80 91 e8 12 	lds	r24, 0x12E8	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   25e94:	8f 93       	push	r24
   25e96:	80 91 e7 12 	lds	r24, 0x12E7	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   25e9a:	8f 93       	push	r24
   25e9c:	80 91 e6 12 	lds	r24, 0x12E6	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   25ea0:	8f 93       	push	r24
   25ea2:	80 91 e5 12 	lds	r24, 0x12E5	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
   25ea6:	8f 93       	push	r24
   25ea8:	80 91 e4 12 	lds	r24, 0x12E4	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   25eac:	8f 93       	push	r24
   25eae:	80 91 e3 12 	lds	r24, 0x12E3	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   25eb2:	8f 93       	push	r24
   25eb4:	80 91 e2 12 	lds	r24, 0x12E2	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   25eb8:	8f 93       	push	r24
   25eba:	80 91 e1 12 	lds	r24, 0x12E1	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
   25ebe:	8f 93       	push	r24
   25ec0:	80 91 e0 12 	lds	r24, 0x12E0	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   25ec4:	8f 93       	push	r24
   25ec6:	80 91 df 12 	lds	r24, 0x12DF	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   25eca:	8f 93       	push	r24
   25ecc:	80 91 de 12 	lds	r24, 0x12DE	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   25ed0:	8f 93       	push	r24
   25ed2:	80 91 dd 12 	lds	r24, 0x12DD	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
   25ed6:	8f 93       	push	r24
   25ed8:	80 91 dc 12 	lds	r24, 0x12DC	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   25edc:	8f 93       	push	r24
   25ede:	80 91 db 12 	lds	r24, 0x12DB	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   25ee2:	8f 93       	push	r24
   25ee4:	80 91 da 12 	lds	r24, 0x12DA	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   25ee8:	8f 93       	push	r24
   25eea:	ff 92       	push	r15
   25eec:	ef 92       	push	r14
   25eee:	88 ed       	ldi	r24, 0xD8	; 216
   25ef0:	9d e9       	ldi	r25, 0x9D	; 157
   25ef2:	9f 93       	push	r25
   25ef4:	8f 93       	push	r24
   25ef6:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   25efa:	8d b7       	in	r24, 0x3d	; 61
   25efc:	9e b7       	in	r25, 0x3e	; 62
   25efe:	8a 96       	adiw	r24, 0x2a	; 42
   25f00:	0f b6       	in	r0, 0x3f	; 63
   25f02:	f8 94       	cli
   25f04:	9e bf       	out	0x3e, r25	; 62
   25f06:	0f be       	out	0x3f, r0	; 63
   25f08:	8d bf       	out	0x3d, r24	; 61
        echomagic, (double)thermal_model::data.P, (double)thermal_model::data.U, (double)thermal_model::data.V,
        (double)thermal_model::data.C, (double)thermal_model::data.fS, (unsigned)thermal_model::data.L,
        (unsigned)thermal_model::enabled, (unsigned)thermal_model::warn_beep,
        (double)thermal_model::data.err, (double)thermal_model::data.warn,
        (double)thermal_model::data.Ta_corr);
}
   25f0a:	df 91       	pop	r29
   25f0c:	cf 91       	pop	r28
   25f0e:	1f 91       	pop	r17
   25f10:	0f 91       	pop	r16
   25f12:	ff 90       	pop	r15
   25f14:	ef 90       	pop	r14
   25f16:	df 90       	pop	r13
   25f18:	cf 90       	pop	r12
   25f1a:	08 95       	ret

00025f1c <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]>:
// set the model lag rounding to the effective sample resolution, ensuring the reported/stored lag
// matches the current model constraints (future-proofing for model changes)
static void thermal_model_set_lag(uint16_t ms)
{
    static const uint16_t intv_ms = (uint16_t)(TEMP_MGR_INTV * 1000);
    uint16_t samples = ((ms + intv_ms/2) / intv_ms);
   25f1c:	89 57       	subi	r24, 0x79	; 121
   25f1e:	9f 4f       	sbci	r25, 0xFF	; 255
   25f20:	6e e0       	ldi	r22, 0x0E	; 14
   25f22:	71 e0       	ldi	r23, 0x01	; 1
   25f24:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>

    // ensure we do not exceed the maximum lag buffer and have at least one lag sample for filtering
    if(samples < 1)
   25f28:	61 15       	cp	r22, r1
   25f2a:	71 05       	cpc	r23, r1
   25f2c:	99 f0       	breq	.+38     	; 0x25f54 <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]+0x38>
   25f2e:	69 30       	cpi	r22, 0x09	; 9
   25f30:	71 05       	cpc	r23, r1
   25f32:	10 f0       	brcs	.+4      	; 0x25f38 <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]+0x1c>
   25f34:	68 e0       	ldi	r22, 0x08	; 8
   25f36:	70 e0       	ldi	r23, 0x00	; 0
        samples = 1;
    else if(samples > THERMAL_MODEL_MAX_LAG_SIZE)
        samples = THERMAL_MODEL_MAX_LAG_SIZE;

    // round back to ms
    thermal_model::data.L = samples * intv_ms;
   25f38:	2e e0       	ldi	r18, 0x0E	; 14
   25f3a:	31 e0       	ldi	r19, 0x01	; 1
   25f3c:	62 9f       	mul	r22, r18
   25f3e:	c0 01       	movw	r24, r0
   25f40:	63 9f       	mul	r22, r19
   25f42:	90 0d       	add	r25, r0
   25f44:	72 9f       	mul	r23, r18
   25f46:	90 0d       	add	r25, r0
   25f48:	11 24       	eor	r1, r1
   25f4a:	90 93 ef 12 	sts	0x12EF, r25	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   25f4e:	80 93 ee 12 	sts	0x12EE, r24	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
}
   25f52:	08 95       	ret
    static const uint16_t intv_ms = (uint16_t)(TEMP_MGR_INTV * 1000);
    uint16_t samples = ((ms + intv_ms/2) / intv_ms);

    // ensure we do not exceed the maximum lag buffer and have at least one lag sample for filtering
    if(samples < 1)
        samples = 1;
   25f54:	61 e0       	ldi	r22, 0x01	; 1
   25f56:	70 e0       	ldi	r23, 0x00	; 0
   25f58:	ef cf       	rjmp	.-34     	; 0x25f38 <thermal_model_set_lag(unsigned int) [clone .lto_priv.556]+0x1c>

00025f5a <thermal_model::calibrated() [clone .lto_priv.563]>:
    if(!calibrated()) enabled = false;
    reinitialize();
}

static bool calibrated()
{
   25f5a:	cf 93       	push	r28
   25f5c:	df 93       	push	r29
    if(!(data.P > 0)) return false;
   25f5e:	20 e0       	ldi	r18, 0x00	; 0
   25f60:	30 e0       	ldi	r19, 0x00	; 0
   25f62:	a9 01       	movw	r20, r18
   25f64:	60 91 da 12 	lds	r22, 0x12DA	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   25f68:	70 91 db 12 	lds	r23, 0x12DB	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   25f6c:	80 91 dc 12 	lds	r24, 0x12DC	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   25f70:	90 91 dd 12 	lds	r25, 0x12DD	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
   25f74:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   25f78:	18 16       	cp	r1, r24
   25f7a:	0c f0       	brlt	.+2      	; 0x25f7e <thermal_model::calibrated() [clone .lto_priv.563]+0x24>
   25f7c:	54 c0       	rjmp	.+168    	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(isnan(data.U)) return false;
   25f7e:	60 91 de 12 	lds	r22, 0x12DE	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   25f82:	70 91 df 12 	lds	r23, 0x12DF	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   25f86:	80 91 e0 12 	lds	r24, 0x12E0	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   25f8a:	90 91 e1 12 	lds	r25, 0x12E1	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
   25f8e:	9b 01       	movw	r18, r22
   25f90:	ac 01       	movw	r20, r24
   25f92:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   25f96:	81 11       	cpse	r24, r1
   25f98:	46 c0       	rjmp	.+140    	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(isnan(data.V)) return false;
   25f9a:	60 91 e2 12 	lds	r22, 0x12E2	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   25f9e:	70 91 e3 12 	lds	r23, 0x12E3	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   25fa2:	80 91 e4 12 	lds	r24, 0x12E4	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   25fa6:	90 91 e5 12 	lds	r25, 0x12E5	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
   25faa:	9b 01       	movw	r18, r22
   25fac:	ac 01       	movw	r20, r24
   25fae:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   25fb2:	81 11       	cpse	r24, r1
   25fb4:	38 c0       	rjmp	.+112    	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(!(data.C > 0)) return false;
   25fb6:	20 e0       	ldi	r18, 0x00	; 0
   25fb8:	30 e0       	ldi	r19, 0x00	; 0
   25fba:	a9 01       	movw	r20, r18
   25fbc:	60 91 e6 12 	lds	r22, 0x12E6	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   25fc0:	70 91 e7 12 	lds	r23, 0x12E7	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   25fc4:	80 91 e8 12 	lds	r24, 0x12E8	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   25fc8:	90 91 e9 12 	lds	r25, 0x12E9	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
   25fcc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   25fd0:	18 16       	cp	r1, r24
   25fd2:	4c f5       	brge	.+82     	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(isnan(data.fS)) return false;
   25fd4:	60 91 ea 12 	lds	r22, 0x12EA	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   25fd8:	70 91 eb 12 	lds	r23, 0x12EB	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   25fdc:	80 91 ec 12 	lds	r24, 0x12EC	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   25fe0:	90 91 ed 12 	lds	r25, 0x12ED	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
   25fe4:	9b 01       	movw	r18, r22
   25fe6:	ac 01       	movw	r20, r24
   25fe8:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   25fec:	81 11       	cpse	r24, r1
   25fee:	1b c0       	rjmp	.+54     	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(!(data.L > 0)) return false;
   25ff0:	80 91 ee 12 	lds	r24, 0x12EE	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
   25ff4:	90 91 ef 12 	lds	r25, 0x12EF	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   25ff8:	89 2b       	or	r24, r25
   25ffa:	a9 f0       	breq	.+42     	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
   25ffc:	c0 ef       	ldi	r28, 0xF0	; 240
   25ffe:	d2 e1       	ldi	r29, 0x12	; 18
    if(!(data.Ta_corr != NAN)) return false;
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i) {
        if(!(thermal_model::data.R[i] >= 0))
   26000:	69 91       	ld	r22, Y+
   26002:	79 91       	ld	r23, Y+
   26004:	89 91       	ld	r24, Y+
   26006:	99 91       	ld	r25, Y+
   26008:	20 e0       	ldi	r18, 0x00	; 0
   2600a:	30 e0       	ldi	r19, 0x00	; 0
   2600c:	a9 01       	movw	r20, r18
   2600e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26012:	87 fd       	sbrc	r24, 7
   26014:	08 c0       	rjmp	.+16     	; 0x26026 <thermal_model::calibrated() [clone .lto_priv.563]+0xcc>
    if(isnan(data.V)) return false;
    if(!(data.C > 0)) return false;
    if(isnan(data.fS)) return false;
    if(!(data.L > 0)) return false;
    if(!(data.Ta_corr != NAN)) return false;
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i) {
   26016:	83 e1       	ldi	r24, 0x13	; 19
   26018:	c0 33       	cpi	r28, 0x30	; 48
   2601a:	d8 07       	cpc	r29, r24
   2601c:	89 f7       	brne	.-30     	; 0x26000 <thermal_model::calibrated() [clone .lto_priv.563]+0xa6>
        if(!(thermal_model::data.R[i] >= 0))
            return false;
    }
    if(!(data.warn != NAN)) return false;
    if(!(data.err != NAN)) return false;
    return true;
   2601e:	81 e0       	ldi	r24, 0x01	; 1
}
   26020:	df 91       	pop	r29
   26022:	cf 91       	pop	r28
   26024:	08 95       	ret
    reinitialize();
}

static bool calibrated()
{
    if(!(data.P > 0)) return false;
   26026:	80 e0       	ldi	r24, 0x00	; 0
   26028:	fb cf       	rjmp	.-10     	; 0x26020 <thermal_model::calibrated() [clone .lto_priv.563]+0xc6>

0002602a <thermal_model::setup() [clone .lto_priv.555]>:
}

// verify calibration status and trigger a model reset if valid
static void setup()
{
    if(!calibrated()) enabled = false;
   2602a:	0f 94 ad 2f 	call	0x25f5a	; 0x25f5a <thermal_model::calibrated() [clone .lto_priv.563]>
   2602e:	81 11       	cpse	r24, r1
   26030:	02 c0       	rjmp	.+4      	; 0x26036 <thermal_model::setup() [clone .lto_priv.555]+0xc>
   26032:	10 92 1d 05 	sts	0x051D, r1	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
}

// clear error flags and mark as uninitialized
static void reinitialize()
{
    data.flags = 1; // shorcut to reset all error flags
   26036:	81 e0       	ldi	r24, 0x01	; 1
   26038:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
    warning_state.assert = false; // explicitly clear assertions
   2603c:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   26040:	8d 7f       	andi	r24, 0xFD	; 253
   26042:	80 93 39 06 	sts	0x0639, r24	; 0x800639 <thermal_model::warning_state+0x4>
// verify calibration status and trigger a model reset if valid
static void setup()
{
    if(!calibrated()) enabled = false;
    reinitialize();
}
   26046:	08 95       	ret

00026048 <disable_heater()>:
    }
    ENABLE_TEMP_MGR_INTERRUPT();
}

void disable_heater()
{
   26048:	cf 93       	push	r28
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   2604a:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   2604e:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   26052:	10 92 73 06 	sts	0x0673, r1	; 0x800673 <target_temperature_bed+0x1>
   26056:	10 92 72 06 	sts	0x0672, r1	; 0x800672 <target_temperature_bed>
  setTargetHotend(0);
  setTargetBed(0);

  ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   2605a:	cf b7       	in	r28, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   2605c:	f8 94       	cli
      // propagate all values down the chain
      setIsrTargetTemperatures();
   2605e:	0f 94 9f 14 	call	0x2293e	; 0x2293e <setIsrTargetTemperatures()>
      temp_mgr_pid();
   26062:	0f 94 dc 11 	call	0x223b8	; 0x223b8 <temp_mgr_pid()>

      // we can't call soft_pwm_core directly to toggle the pins as it would require removing the inline
      // attribute, so disable each pin individually
#if defined(HEATER_0_PIN) && HEATER_0_PIN > -1 && EXTRUDERS > 0
      WRITE(HEATER_0_PIN,LOW);
   26066:	75 98       	cbi	0x0e, 5	; 14
#endif
#if defined(HEATER_BED_PIN) && HEATER_BED_PIN > -1
      // TODO: this doesn't take immediate effect!
      bedPWMDisabled = 0;
   26068:	10 92 8d 06 	sts	0x068D, r1	; 0x80068d <bedPWMDisabled>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   2606c:	cf bf       	out	0x3f, r28	; 63
#endif
  }
}
   2606e:	cf 91       	pop	r28
   26070:	08 95       	ret

00026072 <lcd_cooldown() [clone .lto_priv.435]>:

/* Menu implementation */

static void lcd_cooldown()
{
  disable_heater();
   26072:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
  fanSpeed = 0;
   26076:	10 92 e7 03 	sts	0x03E7, r1	; 0x8003e7 <fanSpeed>
  lcd_return_to_status();
   2607a:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

0002607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>:

// set the error type from within the temp_mgr isr to be handled in manager_heater
// - immediately disable all heaters and turn on all fans at full speed
// - prevent the user to set temperatures until all errors are cleared
void set_temp_error(TempErrorSource source, uint8_t index, TempErrorType type)
{
   2607e:	1f 93       	push	r17
   26080:	cf 93       	push	r28
   26082:	df 93       	push	r29
   26084:	c8 2f       	mov	r28, r24
   26086:	16 2f       	mov	r17, r22
   26088:	d4 2f       	mov	r29, r20
    // save the original target temperatures for recovery before disabling heaters
    if(!temp_error_state.error && !saved_printing) {
   2608a:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   2608e:	80 fd       	sbrc	r24, 0
   26090:	18 c0       	rjmp	.+48     	; 0x260c2 <set_temp_error(TempErrorSource, unsigned char, TempErrorType)+0x44>
   26092:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   26096:	81 11       	cpse	r24, r1
   26098:	14 c0       	rjmp	.+40     	; 0x260c2 <set_temp_error(TempErrorSource, unsigned char, TempErrorType)+0x44>
        saved_bed_temperature = target_temperature_bed;
   2609a:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   2609e:	80 93 ae 05 	sts	0x05AE, r24	; 0x8005ae <saved_bed_temperature>
        saved_extruder_temperature = target_temperature[index];
   260a2:	e6 2f       	mov	r30, r22
   260a4:	f0 e0       	ldi	r31, 0x00	; 0
   260a6:	ee 0f       	add	r30, r30
   260a8:	ff 1f       	adc	r31, r31
   260aa:	ea 54       	subi	r30, 0x4A	; 74
   260ac:	f2 4f       	sbci	r31, 0xF2	; 242
   260ae:	80 81       	ld	r24, Z
   260b0:	91 81       	ldd	r25, Z+1	; 0x01
   260b2:	90 93 ad 05 	sts	0x05AD, r25	; 0x8005ad <saved_extruder_temperature+0x1>
   260b6:	80 93 ac 05 	sts	0x05AC, r24	; 0x8005ac <saved_extruder_temperature>
        saved_fan_speed = fanSpeed;
   260ba:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
   260be:	80 93 ab 05 	sts	0x05AB, r24	; 0x8005ab <saved_fan_speed>
    }

    // keep disabling heaters and keep fans on as long as the condition is asserted
    disable_heater();
   260c2:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
void hotendFanSetFullSpeed()
{
#ifdef EXTRUDER_ALTFAN_DETECT
    altfanStatus.altfanOverride = 1; //full speed
#endif //EXTRUDER_ALTFAN_DETECT
    resetFanCheck();
   260c6:	0e 94 68 74 	call	0xe8d0	; 0xe8d0 <resetFanCheck()>
    setExtruderAutoFanState(3);
   260ca:	83 e0       	ldi	r24, 0x03	; 3
   260cc:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
    SET_OUTPUT(FAN_PIN);
   260d0:	80 91 01 01 	lds	r24, 0x0101	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
   260d4:	88 60       	ori	r24, 0x08	; 8
   260d6:	80 93 01 01 	sts	0x0101, r24	; 0x800101 <__TEXT_REGION_LENGTH__+0x7c2101>
#ifdef FAN_SOFT_PWM
    fanSpeedSoftPwm = 255;
   260da:	8f ef       	ldi	r24, 0xFF	; 255
   260dc:	80 93 a6 04 	sts	0x04A6, r24	; 0x8004a6 <fanSpeedSoftPwm>
#else //FAN_SOFT_PWM
    analogWrite(FAN_PIN, 255);
#endif //FAN_SOFT_PWM
    fanSpeed = 255;
   260e0:	80 93 e7 03 	sts	0x03E7, r24	; 0x8003e7 <fanSpeed>
    hotendFanSetFullSpeed();

    // set the initial error source to the highest priority error
    if(!temp_error_state.error || (uint8_t)type < temp_error_state.type) {
   260e4:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   260e8:	80 ff       	sbrs	r24, 0
   260ea:	07 c0       	rjmp	.+14     	; 0x260fa <set_temp_error(TempErrorSource, unsigned char, TempErrorType)+0x7c>
   260ec:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   260f0:	82 95       	swap	r24
   260f2:	86 95       	lsr	r24
   260f4:	87 70       	andi	r24, 0x07	; 7
   260f6:	d8 17       	cp	r29, r24
   260f8:	c0 f4       	brcc	.+48     	; 0x2612a <set_temp_error(TempErrorSource, unsigned char, TempErrorType)+0xac>
        temp_error_state.source = (uint8_t)source;
   260fa:	c3 70       	andi	r28, 0x03	; 3
   260fc:	cc 0f       	add	r28, r28
   260fe:	cc 0f       	add	r28, r28
   26100:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   26104:	83 7f       	andi	r24, 0xF3	; 243
   26106:	8c 2b       	or	r24, r28
   26108:	80 93 1b 05 	sts	0x051B, r24	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
        temp_error_state.index = index;
   2610c:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   26110:	10 fb       	bst	r17, 0
   26112:	84 f9       	bld	r24, 4
   26114:	80 93 1b 05 	sts	0x051B, r24	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
        temp_error_state.type = (uint8_t)type;
   26118:	d2 95       	swap	r29
   2611a:	dd 0f       	add	r29, r29
   2611c:	d0 7e       	andi	r29, 0xE0	; 224
   2611e:	40 91 1b 05 	lds	r20, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   26122:	4f 71       	andi	r20, 0x1F	; 31
   26124:	4d 2b       	or	r20, r29
   26126:	40 93 1b 05 	sts	0x051B, r20	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    }

    // always set the error state
    temp_error_state.error = true;
   2612a:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   2612e:	81 60       	ori	r24, 0x01	; 1
   26130:	80 93 1b 05 	sts	0x051B, r24	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
    temp_error_state.assert = true;
   26134:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   26138:	82 60       	ori	r24, 0x02	; 2
   2613a:	80 93 1b 05 	sts	0x051B, r24	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
}
   2613e:	df 91       	pop	r29
   26140:	cf 91       	pop	r28
   26142:	1f 91       	pop	r17
   26144:	08 95       	ret

00026146 <check_min_temp_bed()>:
}

void check_min_temp_bed()
{
#if HEATER_BED_RAW_LO_TEMP > HEATER_BED_RAW_HI_TEMP
	if (current_temperature_bed_raw >= bed_minttemp_raw) {
   26146:	20 91 09 06 	lds	r18, 0x0609	; 0x800609 <current_temperature_bed_raw>
   2614a:	30 91 0a 06 	lds	r19, 0x060A	; 0x80060a <current_temperature_bed_raw+0x1>
   2614e:	80 91 52 02 	lds	r24, 0x0252	; 0x800252 <_ZL16bed_minttemp_raw.lto_priv.473>
   26152:	90 91 53 02 	lds	r25, 0x0253	; 0x800253 <_ZL16bed_minttemp_raw.lto_priv.473+0x1>
   26156:	28 17       	cp	r18, r24
   26158:	39 07       	cpc	r19, r25
   2615a:	2c f0       	brlt	.+10     	; 0x26166 <check_min_temp_bed()+0x20>
#else
	if (current_temperature_bed_raw <= bed_minttemp_raw) {
#endif
        set_temp_error(TempErrorSource::bed, 0, TempErrorType::min);
   2615c:	41 e0       	ldi	r20, 0x01	; 1
   2615e:	60 e0       	ldi	r22, 0x00	; 0
   26160:	81 e0       	ldi	r24, 0x01	; 1
   26162:	0d 94 3f 30 	jmp	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
	}
}
   26166:	08 95       	ret

00026168 <check_min_temp_heater0()>:
static alert_automaton_mintemp alert_automaton_hotend(m2hotend), alert_automaton_bed(m2bed);

void check_min_temp_heater0()
{
#if HEATER_0_RAW_LO_TEMP > HEATER_0_RAW_HI_TEMP
	if (current_temperature_raw[0] >= minttemp_raw[0]) {
   26168:	20 91 0b 06 	lds	r18, 0x060B	; 0x80060b <current_temperature_raw>
   2616c:	30 91 0c 06 	lds	r19, 0x060C	; 0x80060c <current_temperature_raw+0x1>
   26170:	80 91 54 02 	lds	r24, 0x0254	; 0x800254 <_ZL12minttemp_raw.lto_priv.474>
   26174:	90 91 55 02 	lds	r25, 0x0255	; 0x800255 <_ZL12minttemp_raw.lto_priv.474+0x1>
   26178:	28 17       	cp	r18, r24
   2617a:	39 07       	cpc	r19, r25
   2617c:	2c f0       	brlt	.+10     	; 0x26188 <check_min_temp_heater0()+0x20>
#else
	if (current_temperature_raw[0] <= minttemp_raw[0]) {
#endif
        set_temp_error(TempErrorSource::hotend, 0, TempErrorType::min);
   2617e:	41 e0       	ldi	r20, 0x01	; 1
   26180:	60 e0       	ldi	r22, 0x00	; 0
   26182:	80 e0       	ldi	r24, 0x00	; 0
   26184:	0d 94 3f 30 	jmp	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
	}
}
   26188:	08 95       	ret

0002618a <temp_runaway_check(unsigned char, float, float, float, bool)>:
  timer4_init(); //for tone and Hotend fan PWM
}

#if (defined (TEMP_RUNAWAY_BED_HYSTERESIS) && TEMP_RUNAWAY_BED_TIMEOUT > 0) || (defined (TEMP_RUNAWAY_EXTRUDER_HYSTERESIS) && TEMP_RUNAWAY_EXTRUDER_TIMEOUT > 0)
static void temp_runaway_check(uint8_t _heater_id, float _target_temperature, float _current_temperature, float _output, bool _isbed)
{
   2618a:	2f 92       	push	r2
   2618c:	3f 92       	push	r3
   2618e:	4f 92       	push	r4
   26190:	5f 92       	push	r5
   26192:	6f 92       	push	r6
   26194:	7f 92       	push	r7
   26196:	8f 92       	push	r8
   26198:	9f 92       	push	r9
   2619a:	af 92       	push	r10
   2619c:	bf 92       	push	r11
   2619e:	cf 92       	push	r12
   261a0:	df 92       	push	r13
   261a2:	ef 92       	push	r14
   261a4:	ff 92       	push	r15
   261a6:	0f 93       	push	r16
   261a8:	1f 93       	push	r17
   261aa:	cf 93       	push	r28
   261ac:	df 93       	push	r29
   261ae:	cd b7       	in	r28, 0x3d	; 61
   261b0:	de b7       	in	r29, 0x3e	; 62
   261b2:	2c 97       	sbiw	r28, 0x0c	; 12
   261b4:	0f b6       	in	r0, 0x3f	; 63
   261b6:	f8 94       	cli
   261b8:	de bf       	out	0x3e, r29	; 62
   261ba:	0f be       	out	0x3f, r0	; 63
   261bc:	cd bf       	out	0x3d, r28	; 61
   261be:	28 2e       	mov	r2, r24
   261c0:	49 83       	std	Y+1, r20	; 0x01
   261c2:	5a 83       	std	Y+2, r21	; 0x02
   261c4:	6b 83       	std	Y+3, r22	; 0x03
   261c6:	7c 83       	std	Y+4, r23	; 0x04
   261c8:	28 01       	movw	r4, r16
   261ca:	39 01       	movw	r6, r18
   261cc:	3a 2c       	mov	r3, r10
	bool temp_runaway_check_active = false;
	static float __preheat_start[2] = { 0,0}; //currently just bed and one extruder
	static uint8_t __preheat_counter[2] = { 0,0};
	static uint8_t __preheat_errors[2] = { 0,0};

	if (_millis() - temp_runaway_timer[_heater_id] > 2000)
   261ce:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   261d2:	02 2d       	mov	r16, r2
   261d4:	10 e0       	ldi	r17, 0x00	; 0
   261d6:	98 01       	movw	r18, r16
   261d8:	22 0f       	add	r18, r18
   261da:	33 1f       	adc	r19, r19
   261dc:	22 0f       	add	r18, r18
   261de:	33 1f       	adc	r19, r19
   261e0:	3c 87       	std	Y+12, r19	; 0x0c
   261e2:	2b 87       	std	Y+11, r18	; 0x0b
   261e4:	f9 01       	movw	r30, r18
   261e6:	e7 53       	subi	r30, 0x37	; 55
   261e8:	fa 4f       	sbci	r31, 0xFA	; 250
   261ea:	80 80       	ld	r8, Z
   261ec:	91 80       	ldd	r9, Z+1	; 0x01
   261ee:	a2 80       	ldd	r10, Z+2	; 0x02
   261f0:	b3 80       	ldd	r11, Z+3	; 0x03
   261f2:	68 19       	sub	r22, r8
   261f4:	79 09       	sbc	r23, r9
   261f6:	8a 09       	sbc	r24, r10
   261f8:	9b 09       	sbc	r25, r11
   261fa:	61 3d       	cpi	r22, 0xD1	; 209
   261fc:	77 40       	sbci	r23, 0x07	; 7
   261fe:	81 05       	cpc	r24, r1
   26200:	91 05       	cpc	r25, r1
   26202:	08 f4       	brcc	.+2      	; 0x26206 <temp_runaway_check(unsigned char, float, float, float, bool)+0x7c>
   26204:	ea c0       	rjmp	.+468    	; 0x263da <temp_runaway_check(unsigned char, float, float, float, bool)+0x250>
	{

#ifdef 	TEMP_RUNAWAY_BED_TIMEOUT
          if (_isbed)
   26206:	33 20       	and	r3, r3
   26208:	09 f4       	brne	.+2      	; 0x2620c <temp_runaway_check(unsigned char, float, float, float, bool)+0x82>
   2620a:	75 c0       	rjmp	.+234    	; 0x262f6 <temp_runaway_check(unsigned char, float, float, float, bool)+0x16c>
          {
               __hysteresis = TEMP_RUNAWAY_BED_HYSTERESIS;
               __timeout = TEMP_RUNAWAY_BED_TIMEOUT;
   2620c:	88 e6       	ldi	r24, 0x68	; 104
   2620e:	91 e0       	ldi	r25, 0x01	; 1
   26210:	9a 87       	std	Y+10, r25	; 0x0a
   26212:	89 87       	std	Y+9, r24	; 0x09
	{

#ifdef 	TEMP_RUNAWAY_BED_TIMEOUT
          if (_isbed)
          {
               __hysteresis = TEMP_RUNAWAY_BED_HYSTERESIS;
   26214:	80 e0       	ldi	r24, 0x00	; 0
   26216:	90 e0       	ldi	r25, 0x00	; 0
   26218:	a0 ea       	ldi	r26, 0xA0	; 160
   2621a:	b0 e4       	ldi	r27, 0x40	; 64
          }
#endif
#ifdef 	TEMP_RUNAWAY_EXTRUDER_TIMEOUT
          if (!_isbed)
          {
               __hysteresis = TEMP_RUNAWAY_EXTRUDER_HYSTERESIS;
   2621c:	8d 83       	std	Y+5, r24	; 0x05
   2621e:	9e 83       	std	Y+6, r25	; 0x06
   26220:	af 83       	std	Y+7, r26	; 0x07
   26222:	b8 87       	std	Y+8, r27	; 0x08
               __timeout = TEMP_RUNAWAY_EXTRUDER_TIMEOUT;
          }
#endif

		temp_runaway_timer[_heater_id] = _millis();
   26224:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   26228:	eb 85       	ldd	r30, Y+11	; 0x0b
   2622a:	fc 85       	ldd	r31, Y+12	; 0x0c
   2622c:	e7 53       	subi	r30, 0x37	; 55
   2622e:	fa 4f       	sbci	r31, 0xFA	; 250
   26230:	60 83       	st	Z, r22
   26232:	71 83       	std	Z+1, r23	; 0x01
   26234:	82 83       	std	Z+2, r24	; 0x02
   26236:	93 83       	std	Z+3, r25	; 0x03
		if (_output == 0)
   26238:	20 e0       	ldi	r18, 0x00	; 0
   2623a:	30 e0       	ldi	r19, 0x00	; 0
   2623c:	a9 01       	movw	r20, r18
   2623e:	c7 01       	movw	r24, r14
   26240:	b6 01       	movw	r22, r12
   26242:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   26246:	81 11       	cpse	r24, r1
   26248:	07 c0       	rjmp	.+14     	; 0x26258 <temp_runaway_check(unsigned char, float, float, float, bool)+0xce>
		{
			temp_runaway_check_active = false;
			temp_runaway_error_counter[_heater_id] = 0;
   2624a:	f8 01       	movw	r30, r16
   2624c:	ee 0f       	add	r30, r30
   2624e:	ff 1f       	adc	r31, r31
   26250:	eb 53       	subi	r30, 0x3B	; 59
   26252:	fa 4f       	sbci	r31, 0xFA	; 250
   26254:	11 82       	std	Z+1, r1	; 0x01
   26256:	10 82       	st	Z, r1
		}

		if (temp_runaway_target[_heater_id] != _target_temperature)
   26258:	ab 85       	ldd	r26, Y+11	; 0x0b
   2625a:	bc 85       	ldd	r27, Y+12	; 0x0c
   2625c:	a3 54       	subi	r26, 0x43	; 67
   2625e:	ba 4f       	sbci	r27, 0xFA	; 250
   26260:	5d 01       	movw	r10, r26
   26262:	29 81       	ldd	r18, Y+1	; 0x01
   26264:	3a 81       	ldd	r19, Y+2	; 0x02
   26266:	4b 81       	ldd	r20, Y+3	; 0x03
   26268:	5c 81       	ldd	r21, Y+4	; 0x04
   2626a:	6d 91       	ld	r22, X+
   2626c:	7d 91       	ld	r23, X+
   2626e:	8d 91       	ld	r24, X+
   26270:	9c 91       	ld	r25, X
   26272:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   26276:	88 23       	and	r24, r24
   26278:	09 f4       	brne	.+2      	; 0x2627c <temp_runaway_check(unsigned char, float, float, float, bool)+0xf2>
   2627a:	91 c0       	rjmp	.+290    	; 0x2639e <temp_runaway_check(unsigned char, float, float, float, bool)+0x214>
		{
			if (_target_temperature > 0)
   2627c:	20 e0       	ldi	r18, 0x00	; 0
   2627e:	30 e0       	ldi	r19, 0x00	; 0
   26280:	a9 01       	movw	r20, r18
   26282:	69 81       	ldd	r22, Y+1	; 0x01
   26284:	7a 81       	ldd	r23, Y+2	; 0x02
   26286:	8b 81       	ldd	r24, Y+3	; 0x03
   26288:	9c 81       	ldd	r25, Y+4	; 0x04
   2628a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2628e:	f8 01       	movw	r30, r16
   26290:	e5 54       	subi	r30, 0x45	; 69
   26292:	fa 4f       	sbci	r31, 0xFA	; 250
   26294:	18 16       	cp	r1, r24
   26296:	c4 f5       	brge	.+112    	; 0x26308 <temp_runaway_check(unsigned char, float, float, float, bool)+0x17e>
			{
				temp_runaway_status[_heater_id] = TempRunaway_PREHEAT;
   26298:	81 e0       	ldi	r24, 0x01	; 1
   2629a:	80 83       	st	Z, r24
				temp_runaway_target[_heater_id] = _target_temperature;
   2629c:	89 81       	ldd	r24, Y+1	; 0x01
   2629e:	9a 81       	ldd	r25, Y+2	; 0x02
   262a0:	ab 81       	ldd	r26, Y+3	; 0x03
   262a2:	bc 81       	ldd	r27, Y+4	; 0x04
   262a4:	f5 01       	movw	r30, r10
   262a6:	80 83       	st	Z, r24
   262a8:	91 83       	std	Z+1, r25	; 0x01
   262aa:	a2 83       	std	Z+2, r26	; 0x02
   262ac:	b3 83       	std	Z+3, r27	; 0x03
				__preheat_start[_heater_id] = _current_temperature;
   262ae:	eb 85       	ldd	r30, Y+11	; 0x0b
   262b0:	fc 85       	ldd	r31, Y+12	; 0x0c
   262b2:	ed 54       	subi	r30, 0x4D	; 77
   262b4:	fa 4f       	sbci	r31, 0xFA	; 250
   262b6:	40 82       	st	Z, r4
   262b8:	51 82       	std	Z+1, r5	; 0x01
   262ba:	62 82       	std	Z+2, r6	; 0x02
   262bc:	73 82       	std	Z+3, r7	; 0x03
				__preheat_counter[_heater_id] = 0;
   262be:	f8 01       	movw	r30, r16
   262c0:	ef 54       	subi	r30, 0x4F	; 79
   262c2:	fa 4f       	sbci	r31, 0xFA	; 250
   262c4:	10 82       	st	Z, r1
				temp_runaway_status[_heater_id] = TempRunaway_INACTIVE;
				temp_runaway_target[_heater_id] = _target_temperature;
			}
		}

		if ((_current_temperature < _target_temperature)  && (temp_runaway_status[_heater_id] == TempRunaway_PREHEAT))
   262c6:	a3 01       	movw	r20, r6
   262c8:	92 01       	movw	r18, r4
   262ca:	bc 01       	movw	r22, r24
   262cc:	cd 01       	movw	r24, r26
   262ce:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   262d2:	18 16       	cp	r1, r24
   262d4:	1c f5       	brge	.+70     	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>
		{
			__preheat_counter[_heater_id]++;
   262d6:	f8 01       	movw	r30, r16
   262d8:	ef 54       	subi	r30, 0x4F	; 79
   262da:	fa 4f       	sbci	r31, 0xFA	; 250
   262dc:	80 81       	ld	r24, Z
   262de:	8f 5f       	subi	r24, 0xFF	; 255
   262e0:	80 83       	st	Z, r24
			if (__preheat_counter[_heater_id] > ((_isbed) ? 16 : 8)) // periodicaly check if current temperature changes
   262e2:	31 10       	cpse	r3, r1
   262e4:	c7 c0       	rjmp	.+398    	; 0x26474 <temp_runaway_check(unsigned char, float, float, float, bool)+0x2ea>
   262e6:	89 30       	cpi	r24, 0x09	; 9
   262e8:	c8 f0       	brcs	.+50     	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>
			{
                    __delta=2.0;
   262ea:	81 2c       	mov	r8, r1
   262ec:	91 2c       	mov	r9, r1
   262ee:	a1 2c       	mov	r10, r1
   262f0:	50 e4       	ldi	r21, 0x40	; 64
   262f2:	b5 2e       	mov	r11, r21
   262f4:	e8 c0       	rjmp	.+464    	; 0x264c6 <temp_runaway_check(unsigned char, float, float, float, bool)+0x33c>
#endif
#ifdef 	TEMP_RUNAWAY_EXTRUDER_TIMEOUT
          if (!_isbed)
          {
               __hysteresis = TEMP_RUNAWAY_EXTRUDER_HYSTERESIS;
               __timeout = TEMP_RUNAWAY_EXTRUDER_TIMEOUT;
   262f6:	ad e2       	ldi	r26, 0x2D	; 45
   262f8:	b0 e0       	ldi	r27, 0x00	; 0
   262fa:	ba 87       	std	Y+10, r27	; 0x0a
   262fc:	a9 87       	std	Y+9, r26	; 0x09
          }
#endif
#ifdef 	TEMP_RUNAWAY_EXTRUDER_TIMEOUT
          if (!_isbed)
          {
               __hysteresis = TEMP_RUNAWAY_EXTRUDER_HYSTERESIS;
   262fe:	80 e0       	ldi	r24, 0x00	; 0
   26300:	90 e0       	ldi	r25, 0x00	; 0
   26302:	a0 e7       	ldi	r26, 0x70	; 112
   26304:	b1 e4       	ldi	r27, 0x41	; 65
   26306:	8a cf       	rjmp	.-236    	; 0x2621c <temp_runaway_check(unsigned char, float, float, float, bool)+0x92>
				__preheat_start[_heater_id] = _current_temperature;
				__preheat_counter[_heater_id] = 0;
			}
			else
			{
				temp_runaway_status[_heater_id] = TempRunaway_INACTIVE;
   26308:	10 82       	st	Z, r1
				temp_runaway_target[_heater_id] = _target_temperature;
   2630a:	89 81       	ldd	r24, Y+1	; 0x01
   2630c:	9a 81       	ldd	r25, Y+2	; 0x02
   2630e:	ab 81       	ldd	r26, Y+3	; 0x03
   26310:	bc 81       	ldd	r27, Y+4	; 0x04
   26312:	f5 01       	movw	r30, r10
   26314:	80 83       	st	Z, r24
   26316:	91 83       	std	Z+1, r25	; 0x01
   26318:	a2 83       	std	Z+2, r26	; 0x02
   2631a:	b3 83       	std	Z+3, r27	; 0x03
				__preheat_start[_heater_id] = _current_temperature;
				__preheat_counter[_heater_id] = 0;
			}
		}

		if ((_current_temperature > (_target_temperature - __hysteresis))  && temp_runaway_status[_heater_id] == TempRunaway_PREHEAT)
   2631c:	2d 81       	ldd	r18, Y+5	; 0x05
   2631e:	3e 81       	ldd	r19, Y+6	; 0x06
   26320:	4f 81       	ldd	r20, Y+7	; 0x07
   26322:	58 85       	ldd	r21, Y+8	; 0x08
   26324:	69 81       	ldd	r22, Y+1	; 0x01
   26326:	7a 81       	ldd	r23, Y+2	; 0x02
   26328:	8b 81       	ldd	r24, Y+3	; 0x03
   2632a:	9c 81       	ldd	r25, Y+4	; 0x04
   2632c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   26330:	a3 01       	movw	r20, r6
   26332:	92 01       	movw	r18, r4
   26334:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   26338:	87 ff       	sbrs	r24, 7
   2633a:	46 c0       	rjmp	.+140    	; 0x263c8 <temp_runaway_check(unsigned char, float, float, float, bool)+0x23e>
   2633c:	f8 01       	movw	r30, r16
   2633e:	e5 54       	subi	r30, 0x45	; 69
   26340:	fa 4f       	sbci	r31, 0xFA	; 250
   26342:	80 81       	ld	r24, Z
   26344:	81 30       	cpi	r24, 0x01	; 1
   26346:	49 f4       	brne	.+18     	; 0x2635a <temp_runaway_check(unsigned char, float, float, float, bool)+0x1d0>
		{
			temp_runaway_status[_heater_id] = TempRunaway_ACTIVE;
   26348:	82 e0       	ldi	r24, 0x02	; 2
   2634a:	80 83       	st	Z, r24
			temp_runaway_check_active = false;
			temp_runaway_error_counter[_heater_id] = 0;
   2634c:	f8 01       	movw	r30, r16
   2634e:	ee 0f       	add	r30, r30
   26350:	ff 1f       	adc	r31, r31
   26352:	eb 53       	subi	r30, 0x3B	; 59
   26354:	fa 4f       	sbci	r31, 0xFA	; 250
   26356:	11 82       	std	Z+1, r1	; 0x01
   26358:	10 82       	st	Z, r1
		}

		if (_output > 0)
   2635a:	20 e0       	ldi	r18, 0x00	; 0
   2635c:	30 e0       	ldi	r19, 0x00	; 0
   2635e:	a9 01       	movw	r20, r18
   26360:	c7 01       	movw	r24, r14
   26362:	b6 01       	movw	r22, r12
   26364:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26368:	18 16       	cp	r1, r24
   2636a:	bc f5       	brge	.+110    	; 0x263da <temp_runaway_check(unsigned char, float, float, float, bool)+0x250>


		if (temp_runaway_check_active)
		{
			//	we are in range
			if ((_current_temperature > (_target_temperature - __hysteresis)) && (_current_temperature < (_target_temperature + __hysteresis)))
   2636c:	29 81       	ldd	r18, Y+1	; 0x01
   2636e:	3a 81       	ldd	r19, Y+2	; 0x02
   26370:	4b 81       	ldd	r20, Y+3	; 0x03
   26372:	5c 81       	ldd	r21, Y+4	; 0x04
   26374:	6d 81       	ldd	r22, Y+5	; 0x05
   26376:	7e 81       	ldd	r23, Y+6	; 0x06
   26378:	8f 81       	ldd	r24, Y+7	; 0x07
   2637a:	98 85       	ldd	r25, Y+8	; 0x08
   2637c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   26380:	a3 01       	movw	r20, r6
   26382:	92 01       	movw	r18, r4
   26384:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26388:	18 16       	cp	r1, r24
   2638a:	0c f0       	brlt	.+2      	; 0x2638e <temp_runaway_check(unsigned char, float, float, float, bool)+0x204>
   2638c:	3f c0       	rjmp	.+126    	; 0x2640c <temp_runaway_check(unsigned char, float, float, float, bool)+0x282>
			{
				temp_runaway_check_active = false;
				temp_runaway_error_counter[_heater_id] = 0;
   2638e:	00 0f       	add	r16, r16
   26390:	11 1f       	adc	r17, r17
   26392:	f8 01       	movw	r30, r16
   26394:	eb 53       	subi	r30, 0x3B	; 59
   26396:	fa 4f       	sbci	r31, 0xFA	; 250
   26398:	11 82       	std	Z+1, r1	; 0x01
   2639a:	10 82       	st	Z, r1
   2639c:	1e c0       	rjmp	.+60     	; 0x263da <temp_runaway_check(unsigned char, float, float, float, bool)+0x250>
				temp_runaway_status[_heater_id] = TempRunaway_INACTIVE;
				temp_runaway_target[_heater_id] = _target_temperature;
			}
		}

		if ((_current_temperature < _target_temperature)  && (temp_runaway_status[_heater_id] == TempRunaway_PREHEAT))
   2639e:	a3 01       	movw	r20, r6
   263a0:	92 01       	movw	r18, r4
   263a2:	69 81       	ldd	r22, Y+1	; 0x01
   263a4:	7a 81       	ldd	r23, Y+2	; 0x02
   263a6:	8b 81       	ldd	r24, Y+3	; 0x03
   263a8:	9c 81       	ldd	r25, Y+4	; 0x04
   263aa:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   263ae:	18 16       	cp	r1, r24
   263b0:	0c f0       	brlt	.+2      	; 0x263b4 <temp_runaway_check(unsigned char, float, float, float, bool)+0x22a>
   263b2:	b4 cf       	rjmp	.-152    	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>
   263b4:	f8 01       	movw	r30, r16
   263b6:	e5 54       	subi	r30, 0x45	; 69
   263b8:	fa 4f       	sbci	r31, 0xFA	; 250
   263ba:	80 81       	ld	r24, Z
   263bc:	81 30       	cpi	r24, 0x01	; 1
   263be:	09 f0       	breq	.+2      	; 0x263c2 <temp_runaway_check(unsigned char, float, float, float, bool)+0x238>
   263c0:	ad cf       	rjmp	.-166    	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>
   263c2:	89 cf       	rjmp	.-238    	; 0x262d6 <temp_runaway_check(unsigned char, float, float, float, bool)+0x14c>
                         if(_current_temperature>105.0) __delta=0.6;
                         }
				if (_current_temperature - __preheat_start[_heater_id] < __delta) {
					__preheat_errors[_heater_id]++;
				} else {
					__preheat_errors[_heater_id] = 0;
   263c4:	10 82       	st	Z, r1
   263c6:	97 c0       	rjmp	.+302    	; 0x264f6 <temp_runaway_check(unsigned char, float, float, float, bool)+0x36c>
			temp_runaway_status[_heater_id] = TempRunaway_ACTIVE;
			temp_runaway_check_active = false;
			temp_runaway_error_counter[_heater_id] = 0;
		}

		if (_output > 0)
   263c8:	20 e0       	ldi	r18, 0x00	; 0
   263ca:	30 e0       	ldi	r19, 0x00	; 0
   263cc:	a9 01       	movw	r20, r18
   263ce:	c7 01       	movw	r24, r14
   263d0:	b6 01       	movw	r22, r12
   263d2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   263d6:	18 16       	cp	r1, r24
   263d8:	cc f0       	brlt	.+50     	; 0x2640c <temp_runaway_check(unsigned char, float, float, float, bool)+0x282>
				}
			}
		}

	}
}
   263da:	2c 96       	adiw	r28, 0x0c	; 12
   263dc:	0f b6       	in	r0, 0x3f	; 63
   263de:	f8 94       	cli
   263e0:	de bf       	out	0x3e, r29	; 62
   263e2:	0f be       	out	0x3f, r0	; 63
   263e4:	cd bf       	out	0x3d, r28	; 61
   263e6:	df 91       	pop	r29
   263e8:	cf 91       	pop	r28
   263ea:	1f 91       	pop	r17
   263ec:	0f 91       	pop	r16
   263ee:	ff 90       	pop	r15
   263f0:	ef 90       	pop	r14
   263f2:	df 90       	pop	r13
   263f4:	cf 90       	pop	r12
   263f6:	bf 90       	pop	r11
   263f8:	af 90       	pop	r10
   263fa:	9f 90       	pop	r9
   263fc:	8f 90       	pop	r8
   263fe:	7f 90       	pop	r7
   26400:	6f 90       	pop	r6
   26402:	5f 90       	pop	r5
   26404:	4f 90       	pop	r4
   26406:	3f 90       	pop	r3
   26408:	2f 90       	pop	r2
   2640a:	08 95       	ret
				temp_runaway_check_active = false;
				temp_runaway_error_counter[_heater_id] = 0;
			}
			else
			{
				if (temp_runaway_status[_heater_id] > TempRunaway_PREHEAT)
   2640c:	f8 01       	movw	r30, r16
   2640e:	e5 54       	subi	r30, 0x45	; 69
   26410:	fa 4f       	sbci	r31, 0xFA	; 250
   26412:	80 81       	ld	r24, Z
   26414:	82 30       	cpi	r24, 0x02	; 2
   26416:	08 f3       	brcs	.-62     	; 0x263da <temp_runaway_check(unsigned char, float, float, float, bool)+0x250>
				{
					temp_runaway_error_counter[_heater_id]++;
   26418:	00 0f       	add	r16, r16
   2641a:	11 1f       	adc	r17, r17
   2641c:	f8 01       	movw	r30, r16
   2641e:	eb 53       	subi	r30, 0x3B	; 59
   26420:	fa 4f       	sbci	r31, 0xFA	; 250
   26422:	80 81       	ld	r24, Z
   26424:	91 81       	ldd	r25, Z+1	; 0x01
   26426:	01 96       	adiw	r24, 0x01	; 1
   26428:	91 83       	std	Z+1, r25	; 0x01
   2642a:	80 83       	st	Z, r24
					if (temp_runaway_error_counter[_heater_id] * 2 > __timeout)
   2642c:	88 0f       	add	r24, r24
   2642e:	99 1f       	adc	r25, r25
   26430:	e9 85       	ldd	r30, Y+9	; 0x09
   26432:	fa 85       	ldd	r31, Y+10	; 0x0a
   26434:	e8 17       	cp	r30, r24
   26436:	f9 07       	cpc	r31, r25
   26438:	80 f6       	brcc	.-96     	; 0x263da <temp_runaway_check(unsigned char, float, float, float, bool)+0x250>
                        set_temp_error((_isbed?TempErrorSource::bed:TempErrorSource::hotend), _heater_id, TempErrorType::runaway);
   2643a:	43 e0       	ldi	r20, 0x03	; 3
   2643c:	62 2d       	mov	r22, r2
   2643e:	83 2d       	mov	r24, r3
				}
			}
		}

	}
}
   26440:	2c 96       	adiw	r28, 0x0c	; 12
   26442:	0f b6       	in	r0, 0x3f	; 63
   26444:	f8 94       	cli
   26446:	de bf       	out	0x3e, r29	; 62
   26448:	0f be       	out	0x3f, r0	; 63
   2644a:	cd bf       	out	0x3d, r28	; 61
   2644c:	df 91       	pop	r29
   2644e:	cf 91       	pop	r28
   26450:	1f 91       	pop	r17
   26452:	0f 91       	pop	r16
   26454:	ff 90       	pop	r15
   26456:	ef 90       	pop	r14
   26458:	df 90       	pop	r13
   2645a:	cf 90       	pop	r12
   2645c:	bf 90       	pop	r11
   2645e:	af 90       	pop	r10
   26460:	9f 90       	pop	r9
   26462:	8f 90       	pop	r8
   26464:	7f 90       	pop	r7
   26466:	6f 90       	pop	r6
   26468:	5f 90       	pop	r5
   2646a:	4f 90       	pop	r4
   2646c:	3f 90       	pop	r3
   2646e:	2f 90       	pop	r2
			{
				if (temp_runaway_status[_heater_id] > TempRunaway_PREHEAT)
				{
					temp_runaway_error_counter[_heater_id]++;
					if (temp_runaway_error_counter[_heater_id] * 2 > __timeout)
                        set_temp_error((_isbed?TempErrorSource::bed:TempErrorSource::hotend), _heater_id, TempErrorType::runaway);
   26470:	0d 94 3f 30 	jmp	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
		}

		if ((_current_temperature < _target_temperature)  && (temp_runaway_status[_heater_id] == TempRunaway_PREHEAT))
		{
			__preheat_counter[_heater_id]++;
			if (__preheat_counter[_heater_id] > ((_isbed) ? 16 : 8)) // periodicaly check if current temperature changes
   26474:	81 31       	cpi	r24, 0x11	; 17
   26476:	08 f4       	brcc	.+2      	; 0x2647a <temp_runaway_check(unsigned char, float, float, float, bool)+0x2f0>
   26478:	51 cf       	rjmp	.-350    	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>
			{
                    __delta=2.0;
                    if(_isbed)
                         {
                         __delta=3.0;
                         if(_current_temperature>90.0) __delta=2.0;
   2647a:	20 e0       	ldi	r18, 0x00	; 0
   2647c:	30 e0       	ldi	r19, 0x00	; 0
   2647e:	44 eb       	ldi	r20, 0xB4	; 180
   26480:	52 e4       	ldi	r21, 0x42	; 66
   26482:	c3 01       	movw	r24, r6
   26484:	b2 01       	movw	r22, r4
   26486:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
			if (__preheat_counter[_heater_id] > ((_isbed) ? 16 : 8)) // periodicaly check if current temperature changes
			{
                    __delta=2.0;
                    if(_isbed)
                         {
                         __delta=3.0;
   2648a:	81 2c       	mov	r8, r1
   2648c:	91 2c       	mov	r9, r1
   2648e:	e0 e4       	ldi	r30, 0x40	; 64
   26490:	ae 2e       	mov	r10, r30
   26492:	ba 2c       	mov	r11, r10
                         if(_current_temperature>90.0) __delta=2.0;
   26494:	18 16       	cp	r1, r24
   26496:	2c f4       	brge	.+10     	; 0x264a2 <temp_runaway_check(unsigned char, float, float, float, bool)+0x318>
   26498:	81 2c       	mov	r8, r1
   2649a:	91 2c       	mov	r9, r1
   2649c:	a1 2c       	mov	r10, r1
   2649e:	70 e4       	ldi	r23, 0x40	; 64
   264a0:	b7 2e       	mov	r11, r23
                         if(_current_temperature>105.0) __delta=0.6;
   264a2:	20 e0       	ldi	r18, 0x00	; 0
   264a4:	30 e0       	ldi	r19, 0x00	; 0
   264a6:	42 ed       	ldi	r20, 0xD2	; 210
   264a8:	52 e4       	ldi	r21, 0x42	; 66
   264aa:	c3 01       	movw	r24, r6
   264ac:	b2 01       	movw	r22, r4
   264ae:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   264b2:	18 16       	cp	r1, r24
   264b4:	44 f4       	brge	.+16     	; 0x264c6 <temp_runaway_check(unsigned char, float, float, float, bool)+0x33c>
   264b6:	6a e9       	ldi	r22, 0x9A	; 154
   264b8:	86 2e       	mov	r8, r22
   264ba:	69 e9       	ldi	r22, 0x99	; 153
   264bc:	96 2e       	mov	r9, r22
   264be:	69 e1       	ldi	r22, 0x19	; 25
   264c0:	a6 2e       	mov	r10, r22
   264c2:	6f e3       	ldi	r22, 0x3F	; 63
   264c4:	b6 2e       	mov	r11, r22
                         }
				if (_current_temperature - __preheat_start[_heater_id] < __delta) {
   264c6:	eb 85       	ldd	r30, Y+11	; 0x0b
   264c8:	fc 85       	ldd	r31, Y+12	; 0x0c
   264ca:	ed 54       	subi	r30, 0x4D	; 77
   264cc:	fa 4f       	sbci	r31, 0xFA	; 250
   264ce:	20 81       	ld	r18, Z
   264d0:	31 81       	ldd	r19, Z+1	; 0x01
   264d2:	42 81       	ldd	r20, Z+2	; 0x02
   264d4:	53 81       	ldd	r21, Z+3	; 0x03
   264d6:	c3 01       	movw	r24, r6
   264d8:	b2 01       	movw	r22, r4
   264da:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   264de:	a5 01       	movw	r20, r10
   264e0:	94 01       	movw	r18, r8
   264e2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   264e6:	f8 01       	movw	r30, r16
   264e8:	e1 55       	subi	r30, 0x51	; 81
   264ea:	fa 4f       	sbci	r31, 0xFA	; 250
   264ec:	87 ff       	sbrs	r24, 7
   264ee:	6a cf       	rjmp	.-300    	; 0x263c4 <temp_runaway_check(unsigned char, float, float, float, bool)+0x23a>
					__preheat_errors[_heater_id]++;
   264f0:	80 81       	ld	r24, Z
   264f2:	8f 5f       	subi	r24, 0xFF	; 255
   264f4:	80 83       	st	Z, r24
				} else {
					__preheat_errors[_heater_id] = 0;
				}

				if (__preheat_errors[_heater_id] > ((_isbed) ? 3 : 5))
   264f6:	80 81       	ld	r24, Z
   264f8:	90 e0       	ldi	r25, 0x00	; 0
   264fa:	31 10       	cpse	r3, r1
   264fc:	04 c0       	rjmp	.+8      	; 0x26506 <temp_runaway_check(unsigned char, float, float, float, bool)+0x37c>
   264fe:	06 97       	sbiw	r24, 0x06	; 6
   26500:	4c f0       	brlt	.+18     	; 0x26514 <temp_runaway_check(unsigned char, float, float, float, bool)+0x38a>
                    set_temp_error((_isbed?TempErrorSource::bed:TempErrorSource::hotend), _heater_id, TempErrorType::preheat);
   26502:	80 e0       	ldi	r24, 0x00	; 0
   26504:	03 c0       	rjmp	.+6      	; 0x2650c <temp_runaway_check(unsigned char, float, float, float, bool)+0x382>
					__preheat_errors[_heater_id]++;
				} else {
					__preheat_errors[_heater_id] = 0;
				}

				if (__preheat_errors[_heater_id] > ((_isbed) ? 3 : 5))
   26506:	04 97       	sbiw	r24, 0x04	; 4
   26508:	2c f0       	brlt	.+10     	; 0x26514 <temp_runaway_check(unsigned char, float, float, float, bool)+0x38a>
                    set_temp_error((_isbed?TempErrorSource::bed:TempErrorSource::hotend), _heater_id, TempErrorType::preheat);
   2650a:	81 e0       	ldi	r24, 0x01	; 1
   2650c:	42 e0       	ldi	r20, 0x02	; 2
   2650e:	62 2d       	mov	r22, r2
   26510:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>

				__preheat_start[_heater_id] = _current_temperature;
   26514:	2b 85       	ldd	r18, Y+11	; 0x0b
   26516:	3c 85       	ldd	r19, Y+12	; 0x0c
   26518:	2d 54       	subi	r18, 0x4D	; 77
   2651a:	3a 4f       	sbci	r19, 0xFA	; 250
   2651c:	d9 01       	movw	r26, r18
   2651e:	4d 92       	st	X+, r4
   26520:	5d 92       	st	X+, r5
   26522:	6d 92       	st	X+, r6
   26524:	7c 92       	st	X, r7
   26526:	13 97       	sbiw	r26, 0x03	; 3
				__preheat_counter[_heater_id] = 0;
   26528:	f8 01       	movw	r30, r16
   2652a:	ef 54       	subi	r30, 0x4F	; 79
   2652c:	fa 4f       	sbci	r31, 0xFA	; 250
   2652e:	10 82       	st	Z, r1
   26530:	f5 ce       	rjmp	.-534    	; 0x2631c <temp_runaway_check(unsigned char, float, float, float, bool)+0x192>

00026532 <TempMgrGuard::~TempMgrGuard()>:
            temp_mgr_state = TEMP_MGR_INTERRUPT_STATE();
            DISABLE_TEMP_MGR_INTERRUPT();
        }
    }

    ~TempMgrGuard() throw() {
   26532:	fc 01       	movw	r30, r24
        ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   26534:	9f b7       	in	r25, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   26536:	f8 94       	cli
            if(temp_mgr_state) ENABLE_TEMP_MGR_INTERRUPT();
   26538:	80 81       	ld	r24, Z
   2653a:	88 23       	and	r24, r24
   2653c:	29 f0       	breq	.+10     	; 0x26548 <TempMgrGuard::~TempMgrGuard()+0x16>
   2653e:	80 91 73 00 	lds	r24, 0x0073	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
   26542:	82 60       	ori	r24, 0x02	; 2
   26544:	80 93 73 00 	sts	0x0073, r24	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   26548:	9f bf       	out	0x3f, r25	; 63
        }
    }
   2654a:	08 95       	ret

0002654c <TempMgrGuard::TempMgrGuard()>:
class TempMgrGuard
{
    bool temp_mgr_state;

public:
    TempMgrGuard() {
   2654c:	dc 01       	movw	r26, r24
        ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   2654e:	2f b7       	in	r18, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   26550:	f8 94       	cli
            temp_mgr_state = TEMP_MGR_INTERRUPT_STATE();
   26552:	e3 e7       	ldi	r30, 0x73	; 115
   26554:	f0 e0       	ldi	r31, 0x00	; 0
   26556:	90 81       	ld	r25, Z
   26558:	96 95       	lsr	r25
   2655a:	91 70       	andi	r25, 0x01	; 1
   2655c:	9c 93       	st	X, r25
            DISABLE_TEMP_MGR_INTERRUPT();
   2655e:	80 81       	ld	r24, Z
   26560:	8d 7f       	andi	r24, 0xFD	; 253
   26562:	80 83       	st	Z, r24
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   26564:	2f bf       	out	0x3f, r18	; 63
        }
    }
   26566:	08 95       	ret

00026568 <thermal_model_reset_settings()>:
        (double)thermal_model::data.err, (double)thermal_model::data.warn,
        (double)thermal_model::data.Ta_corr);
}

void thermal_model_reset_settings()
{
   26568:	cf 93       	push	r28
   2656a:	df 93       	push	r29
   2656c:	1f 92       	push	r1
   2656e:	cd b7       	in	r28, 0x3d	; 61
   26570:	de b7       	in	r29, 0x3e	; 62
    TempMgrGuard temp_mgr_guard;
   26572:	ce 01       	movw	r24, r28
   26574:	01 96       	adiw	r24, 0x01	; 1
   26576:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>

    thermal_model::data.P = THERMAL_MODEL_DEF(P);
   2657a:	80 e0       	ldi	r24, 0x00	; 0
   2657c:	90 e0       	ldi	r25, 0x00	; 0
   2657e:	a0 e7       	ldi	r26, 0x70	; 112
   26580:	b2 e4       	ldi	r27, 0x42	; 66
   26582:	80 93 da 12 	sts	0x12DA, r24	; 0x8012da <_ZN13thermal_modelL4dataE.lto_priv.402+0x2a>
   26586:	90 93 db 12 	sts	0x12DB, r25	; 0x8012db <_ZN13thermal_modelL4dataE.lto_priv.402+0x2b>
   2658a:	a0 93 dc 12 	sts	0x12DC, r26	; 0x8012dc <_ZN13thermal_modelL4dataE.lto_priv.402+0x2c>
   2658e:	b0 93 dd 12 	sts	0x12DD, r27	; 0x8012dd <_ZN13thermal_modelL4dataE.lto_priv.402+0x2d>
    thermal_model::data.U = THERMAL_MODEL_DEF(U);
   26592:	84 e3       	ldi	r24, 0x34	; 52
   26594:	90 e8       	ldi	r25, 0x80	; 128
   26596:	a7 eb       	ldi	r26, 0xB7	; 183
   26598:	ba eb       	ldi	r27, 0xBA	; 186
   2659a:	80 93 de 12 	sts	0x12DE, r24	; 0x8012de <_ZN13thermal_modelL4dataE.lto_priv.402+0x2e>
   2659e:	90 93 df 12 	sts	0x12DF, r25	; 0x8012df <_ZN13thermal_modelL4dataE.lto_priv.402+0x2f>
   265a2:	a0 93 e0 12 	sts	0x12E0, r26	; 0x8012e0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x30>
   265a6:	b0 93 e1 12 	sts	0x12E1, r27	; 0x8012e1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x31>
    thermal_model::data.V = THERMAL_MODEL_DEF(V);
   265aa:	86 e6       	ldi	r24, 0x66	; 102
   265ac:	96 e6       	ldi	r25, 0x66	; 102
   265ae:	a6 e8       	ldi	r26, 0x86	; 134
   265b0:	bf e3       	ldi	r27, 0x3F	; 63
   265b2:	80 93 e2 12 	sts	0x12E2, r24	; 0x8012e2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x32>
   265b6:	90 93 e3 12 	sts	0x12E3, r25	; 0x8012e3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x33>
   265ba:	a0 93 e4 12 	sts	0x12E4, r26	; 0x8012e4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x34>
   265be:	b0 93 e5 12 	sts	0x12E5, r27	; 0x8012e5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x35>
    thermal_model::data.C = THERMAL_MODEL_DEF(C);
   265c2:	8a e9       	ldi	r24, 0x9A	; 154
   265c4:	99 e9       	ldi	r25, 0x99	; 153
   265c6:	a1 e1       	ldi	r26, 0x11	; 17
   265c8:	b1 e4       	ldi	r27, 0x41	; 65
   265ca:	80 93 e6 12 	sts	0x12E6, r24	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   265ce:	90 93 e7 12 	sts	0x12E7, r25	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   265d2:	a0 93 e8 12 	sts	0x12E8, r26	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   265d6:	b0 93 e9 12 	sts	0x12E9, r27	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
    thermal_model::data.fS = THERMAL_MODEL_DEF(fS);
   265da:	8a e9       	ldi	r24, 0x9A	; 154
   265dc:	99 e9       	ldi	r25, 0x99	; 153
   265de:	a9 e1       	ldi	r26, 0x19	; 25
   265e0:	be e3       	ldi	r27, 0x3E	; 62
   265e2:	80 93 ea 12 	sts	0x12EA, r24	; 0x8012ea <_ZN13thermal_modelL4dataE.lto_priv.402+0x3a>
   265e6:	90 93 eb 12 	sts	0x12EB, r25	; 0x8012eb <_ZN13thermal_modelL4dataE.lto_priv.402+0x3b>
   265ea:	a0 93 ec 12 	sts	0x12EC, r26	; 0x8012ec <_ZN13thermal_modelL4dataE.lto_priv.402+0x3c>
   265ee:	b0 93 ed 12 	sts	0x12ED, r27	; 0x8012ed <_ZN13thermal_modelL4dataE.lto_priv.402+0x3d>
    thermal_model::data.L = (uint16_t)(THERMAL_MODEL_DEF(LAG) / (TEMP_MGR_INTV * 1000) + 0.5) * (uint16_t)(TEMP_MGR_INTV * 1000);
   265f2:	8e e0       	ldi	r24, 0x0E	; 14
   265f4:	91 e0       	ldi	r25, 0x01	; 1
   265f6:	90 93 ef 12 	sts	0x12EF, r25	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   265fa:	80 93 ee 12 	sts	0x12EE, r24	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
   265fe:	8a e4       	ldi	r24, 0x4A	; 74
   26600:	9e e9       	ldi	r25, 0x9E	; 158
   26602:	a0 ef       	ldi	r26, 0xF0	; 240
   26604:	b2 e1       	ldi	r27, 0x12	; 18
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i)
        thermal_model::data.R[i] = pgm_read_float(THERMAL_MODEL_R_DEFAULT + i);
   26606:	fc 01       	movw	r30, r24
   26608:	45 91       	lpm	r20, Z+
   2660a:	55 91       	lpm	r21, Z+
   2660c:	65 91       	lpm	r22, Z+
   2660e:	74 91       	lpm	r23, Z
   26610:	4d 93       	st	X+, r20
   26612:	5d 93       	st	X+, r21
   26614:	6d 93       	st	X+, r22
   26616:	7d 93       	st	X+, r23
   26618:	04 96       	adiw	r24, 0x04	; 4
    thermal_model::data.U = THERMAL_MODEL_DEF(U);
    thermal_model::data.V = THERMAL_MODEL_DEF(V);
    thermal_model::data.C = THERMAL_MODEL_DEF(C);
    thermal_model::data.fS = THERMAL_MODEL_DEF(fS);
    thermal_model::data.L = (uint16_t)(THERMAL_MODEL_DEF(LAG) / (TEMP_MGR_INTV * 1000) + 0.5) * (uint16_t)(TEMP_MGR_INTV * 1000);
    for(uint8_t i = 0; i != THERMAL_MODEL_R_SIZE; ++i)
   2661a:	23 e1       	ldi	r18, 0x13	; 19
   2661c:	a0 33       	cpi	r26, 0x30	; 48
   2661e:	b2 07       	cpc	r27, r18
   26620:	91 f7       	brne	.-28     	; 0x26606 <thermal_model_reset_settings()+0x9e>
        thermal_model::data.R[i] = pgm_read_float(THERMAL_MODEL_R_DEFAULT + i);
    thermal_model::data.Ta_corr = THERMAL_MODEL_Ta_corr;
   26622:	80 e0       	ldi	r24, 0x00	; 0
   26624:	90 e0       	ldi	r25, 0x00	; 0
   26626:	a0 ee       	ldi	r26, 0xE0	; 224
   26628:	b0 ec       	ldi	r27, 0xC0	; 192
   2662a:	80 93 30 13 	sts	0x1330, r24	; 0x801330 <_ZN13thermal_modelL4dataE.lto_priv.402+0x80>
   2662e:	90 93 31 13 	sts	0x1331, r25	; 0x801331 <_ZN13thermal_modelL4dataE.lto_priv.402+0x81>
   26632:	a0 93 32 13 	sts	0x1332, r26	; 0x801332 <_ZN13thermal_modelL4dataE.lto_priv.402+0x82>
   26636:	b0 93 33 13 	sts	0x1333, r27	; 0x801333 <_ZN13thermal_modelL4dataE.lto_priv.402+0x83>
    thermal_model::data.warn = THERMAL_MODEL_DEF(W);
   2663a:	8a e9       	ldi	r24, 0x9A	; 154
   2663c:	99 e9       	ldi	r25, 0x99	; 153
   2663e:	a9 e5       	ldi	r26, 0x59	; 89
   26640:	bf e3       	ldi	r27, 0x3F	; 63
   26642:	80 93 34 13 	sts	0x1334, r24	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   26646:	90 93 35 13 	sts	0x1335, r25	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   2664a:	a0 93 36 13 	sts	0x1336, r26	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   2664e:	b0 93 37 13 	sts	0x1337, r27	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
    thermal_model::data.err = THERMAL_MODEL_DEF(E);
   26652:	84 ea       	ldi	r24, 0xA4	; 164
   26654:	90 e7       	ldi	r25, 0x70	; 112
   26656:	ad e9       	ldi	r26, 0x9D	; 157
   26658:	bf e3       	ldi	r27, 0x3F	; 63
   2665a:	80 93 38 13 	sts	0x1338, r24	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   2665e:	90 93 39 13 	sts	0x1339, r25	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   26662:	a0 93 3a 13 	sts	0x133A, r26	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   26666:	b0 93 3b 13 	sts	0x133B, r27	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
    thermal_model::warn_beep = true;
   2666a:	81 e0       	ldi	r24, 0x01	; 1
   2666c:	80 93 3d 02 	sts	0x023D, r24	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
    thermal_model::enabled = true;
   26670:	80 93 1d 05 	sts	0x051D, r24	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
}

// clear error flags and mark as uninitialized
static void reinitialize()
{
    data.flags = 1; // shorcut to reset all error flags
   26674:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
    warning_state.assert = false; // explicitly clear assertions
   26678:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   2667c:	8d 7f       	andi	r24, 0xFD	; 253
   2667e:	80 93 39 06 	sts	0x0639, r24	; 0x800639 <thermal_model::warning_state+0x4>
        (double)thermal_model::data.Ta_corr);
}

void thermal_model_reset_settings()
{
    TempMgrGuard temp_mgr_guard;
   26682:	ce 01       	movw	r24, r28
   26684:	01 96       	adiw	r24, 0x01	; 1
   26686:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
    thermal_model::data.warn = THERMAL_MODEL_DEF(W);
    thermal_model::data.err = THERMAL_MODEL_DEF(E);
    thermal_model::warn_beep = true;
    thermal_model::enabled = true;
    thermal_model::reinitialize();
}
   2668a:	0f 90       	pop	r0
   2668c:	df 91       	pop	r29
   2668e:	cf 91       	pop	r28
   26690:	08 95       	ret

00026692 <thermal_model_set_enabled(bool)>:
{
    return thermal_model::enabled;
}

void thermal_model_set_enabled(bool enabled)
{
   26692:	1f 93       	push	r17
   26694:	cf 93       	push	r28
   26696:	df 93       	push	r29
   26698:	1f 92       	push	r1
   2669a:	cd b7       	in	r28, 0x3d	; 61
   2669c:	de b7       	in	r29, 0x3e	; 62
   2669e:	18 2f       	mov	r17, r24
    // set the enabled flag
    {
        TempMgrGuard temp_mgr_guard;
   266a0:	ce 01       	movw	r24, r28
   266a2:	01 96       	adiw	r24, 0x01	; 1
   266a4:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
        thermal_model::enabled = enabled;
   266a8:	10 93 1d 05 	sts	0x051D, r17	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
        thermal_model::setup();
   266ac:	0f 94 15 30 	call	0x2602a	; 0x2602a <thermal_model::setup() [clone .lto_priv.555]>

void thermal_model_set_enabled(bool enabled)
{
    // set the enabled flag
    {
        TempMgrGuard temp_mgr_guard;
   266b0:	ce 01       	movw	r24, r28
   266b2:	01 96       	adiw	r24, 0x01	; 1
   266b4:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
        thermal_model::enabled = enabled;
        thermal_model::setup();
    }

    // verify that the model has been enabled
    if(enabled && !thermal_model::enabled)
   266b8:	11 23       	and	r17, r17
   266ba:	41 f0       	breq	.+16     	; 0x266cc <thermal_model_set_enabled(bool)+0x3a>
   266bc:	80 91 1d 05 	lds	r24, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   266c0:	81 11       	cpse	r24, r1
   266c2:	04 c0       	rjmp	.+8      	; 0x266cc <thermal_model_set_enabled(bool)+0x3a>
        SERIAL_ECHOLNPGM("TM: invalid parameters, cannot enable");
   266c4:	82 eb       	ldi	r24, 0xB2	; 178
   266c6:	9d e9       	ldi	r25, 0x9D	; 157
   266c8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
}
   266cc:	0f 90       	pop	r0
   266ce:	df 91       	pop	r29
   266d0:	cf 91       	pop	r28
   266d2:	1f 91       	pop	r17
   266d4:	08 95       	ret

000266d6 <thermal_model_reset_enabled(bool) [clone .lto_priv.420]>:
#endif

} // namespace thermal_model

static void thermal_model_reset_enabled(bool enabled)
{
   266d6:	1f 93       	push	r17
   266d8:	cf 93       	push	r28
   266da:	df 93       	push	r29
   266dc:	1f 92       	push	r1
   266de:	cd b7       	in	r28, 0x3d	; 61
   266e0:	de b7       	in	r29, 0x3e	; 62
   266e2:	18 2f       	mov	r17, r24
    TempMgrGuard temp_mgr_guard;
   266e4:	ce 01       	movw	r24, r28
   266e6:	01 96       	adiw	r24, 0x01	; 1
   266e8:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
    thermal_model::enabled = enabled;
   266ec:	10 93 1d 05 	sts	0x051D, r17	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
}

// clear error flags and mark as uninitialized
static void reinitialize()
{
    data.flags = 1; // shorcut to reset all error flags
   266f0:	81 e0       	ldi	r24, 0x01	; 1
   266f2:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
    warning_state.assert = false; // explicitly clear assertions
   266f6:	e9 e3       	ldi	r30, 0x39	; 57
   266f8:	f6 e0       	ldi	r31, 0x06	; 6
   266fa:	80 81       	ld	r24, Z
   266fc:	8d 7f       	andi	r24, 0xFD	; 253
   266fe:	80 83       	st	Z, r24

} // namespace thermal_model

static void thermal_model_reset_enabled(bool enabled)
{
    TempMgrGuard temp_mgr_guard;
   26700:	ce 01       	movw	r24, r28
   26702:	01 96       	adiw	r24, 0x01	; 1
   26704:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
    thermal_model::enabled = enabled;
    thermal_model::reinitialize();
}
   26708:	0f 90       	pop	r0
   2670a:	df 91       	pop	r29
   2670c:	cf 91       	pop	r28
   2670e:	1f 91       	pop	r17
   26710:	08 95       	ret

00026712 <updateTemperatures()>:
/* Synchronize temperatures:
   - fetch updated values from temp_mgr_isr to current values
   - update target temperatures for temp_mgr_isr regulation *if* no temperature error is set
   This function is blocking: check temp_meas_ready before calling! */
static void updateTemperatures()
{
   26712:	cf 93       	push	r28
   26714:	df 93       	push	r29
   26716:	1f 92       	push	r1
   26718:	cd b7       	in	r28, 0x3d	; 61
   2671a:	de b7       	in	r29, 0x3e	; 62
    TempMgrGuard temp_mgr_guard;
   2671c:	ce 01       	movw	r24, r28
   2671e:	01 96       	adiw	r24, 0x01	; 1
   26720:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
}

static void setCurrentTemperaturesFromIsr()
{
    for(uint8_t e=0;e<EXTRUDERS;e++)
        current_temperature[e] = current_temperature_isr[e];
   26724:	80 91 17 05 	lds	r24, 0x0517	; 0x800517 <current_temperature_isr>
   26728:	90 91 18 05 	lds	r25, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   2672c:	a0 91 19 05 	lds	r26, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   26730:	b0 91 1a 05 	lds	r27, 0x051A	; 0x80051a <current_temperature_isr+0x3>
   26734:	80 93 b0 0d 	sts	0x0DB0, r24	; 0x800db0 <current_temperature>
   26738:	90 93 b1 0d 	sts	0x0DB1, r25	; 0x800db1 <current_temperature+0x1>
   2673c:	a0 93 b2 0d 	sts	0x0DB2, r26	; 0x800db2 <current_temperature+0x2>
   26740:	b0 93 b3 0d 	sts	0x0DB3, r27	; 0x800db3 <current_temperature+0x3>
    current_temperature_bed = current_temperature_bed_isr;
   26744:	80 91 19 06 	lds	r24, 0x0619	; 0x800619 <current_temperature_bed_isr>
   26748:	90 91 1a 06 	lds	r25, 0x061A	; 0x80061a <current_temperature_bed_isr+0x1>
   2674c:	a0 91 1b 06 	lds	r26, 0x061B	; 0x80061b <current_temperature_bed_isr+0x2>
   26750:	b0 91 1c 06 	lds	r27, 0x061C	; 0x80061c <current_temperature_bed_isr+0x3>
   26754:	80 93 ee 04 	sts	0x04EE, r24	; 0x8004ee <current_temperature_bed>
   26758:	90 93 ef 04 	sts	0x04EF, r25	; 0x8004ef <current_temperature_bed+0x1>
   2675c:	a0 93 f0 04 	sts	0x04F0, r26	; 0x8004f0 <current_temperature_bed+0x2>
   26760:	b0 93 f1 04 	sts	0x04F1, r27	; 0x8004f1 <current_temperature_bed+0x3>
#ifdef PINDA_THERMISTOR
    current_temperature_pinda = current_temperature_pinda_isr;
   26764:	80 91 03 06 	lds	r24, 0x0603	; 0x800603 <current_temperature_pinda_isr>
   26768:	90 91 04 06 	lds	r25, 0x0604	; 0x800604 <current_temperature_pinda_isr+0x1>
   2676c:	a0 91 05 06 	lds	r26, 0x0605	; 0x800605 <current_temperature_pinda_isr+0x2>
   26770:	b0 91 06 06 	lds	r27, 0x0606	; 0x800606 <current_temperature_pinda_isr+0x3>
   26774:	80 93 99 03 	sts	0x0399, r24	; 0x800399 <current_temperature_pinda>
   26778:	90 93 9a 03 	sts	0x039A, r25	; 0x80039a <current_temperature_pinda+0x1>
   2677c:	a0 93 9b 03 	sts	0x039B, r26	; 0x80039b <current_temperature_pinda+0x2>
   26780:	b0 93 9c 03 	sts	0x039C, r27	; 0x80039c <current_temperature_pinda+0x3>
#endif
#ifdef AMBIENT_THERMISTOR
    current_temperature_ambient = current_temperature_ambient_isr;
   26784:	80 91 20 06 	lds	r24, 0x0620	; 0x800620 <current_temperature_ambient_isr>
   26788:	90 91 21 06 	lds	r25, 0x0621	; 0x800621 <current_temperature_ambient_isr+0x1>
   2678c:	a0 91 22 06 	lds	r26, 0x0622	; 0x800622 <current_temperature_ambient_isr+0x2>
   26790:	b0 91 23 06 	lds	r27, 0x0623	; 0x800623 <current_temperature_ambient_isr+0x3>
   26794:	80 93 56 06 	sts	0x0656, r24	; 0x800656 <current_temperature_ambient>
   26798:	90 93 57 06 	sts	0x0657, r25	; 0x800657 <current_temperature_ambient+0x1>
   2679c:	a0 93 58 06 	sts	0x0658, r26	; 0x800658 <current_temperature_ambient+0x2>
   267a0:	b0 93 59 06 	sts	0x0659, r27	; 0x800659 <current_temperature_ambient+0x3>
   This function is blocking: check temp_meas_ready before calling! */
static void updateTemperatures()
{
    TempMgrGuard temp_mgr_guard;
    setCurrentTemperaturesFromIsr();
    if(!temp_error_state.v) {
   267a4:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   267a8:	81 11       	cpse	r24, r1
   267aa:	02 c0       	rjmp	.+4      	; 0x267b0 <updateTemperatures()+0x9e>
        // refuse to update target temperatures in any error condition!
        setIsrTargetTemperatures();
   267ac:	0f 94 9f 14 	call	0x2293e	; 0x2293e <setIsrTargetTemperatures()>
    }
    temp_meas_ready = false;
   267b0:	10 92 02 06 	sts	0x0602, r1	; 0x800602 <temp_meas_ready>
   - fetch updated values from temp_mgr_isr to current values
   - update target temperatures for temp_mgr_isr regulation *if* no temperature error is set
   This function is blocking: check temp_meas_ready before calling! */
static void updateTemperatures()
{
    TempMgrGuard temp_mgr_guard;
   267b4:	ce 01       	movw	r24, r28
   267b6:	01 96       	adiw	r24, 0x01	; 1
   267b8:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
    if(!temp_error_state.v) {
        // refuse to update target temperatures in any error condition!
        setIsrTargetTemperatures();
    }
    temp_meas_ready = false;
}
   267bc:	0f 90       	pop	r0
   267be:	df 91       	pop	r29
   267c0:	cf 91       	pop	r28
   267c2:	08 95       	ret

000267c4 <__vector_14>:
#ifdef SYSTEM_TIMER_2
ISR(TIMER2_COMPB_vect)
#else //SYSTEM_TIMER_2
ISR(TIMER0_COMPB_vect)
#endif //SYSTEM_TIMER_2
{
   267c4:	1f 92       	push	r1
   267c6:	0f 92       	push	r0
   267c8:	0f b6       	in	r0, 0x3f	; 63
   267ca:	0f 92       	push	r0
   267cc:	11 24       	eor	r1, r1
   267ce:	0b b6       	in	r0, 0x3b	; 59
   267d0:	0f 92       	push	r0
   267d2:	ff 92       	push	r15
   267d4:	0f 93       	push	r16
   267d6:	1f 93       	push	r17
   267d8:	2f 93       	push	r18
   267da:	3f 93       	push	r19
   267dc:	4f 93       	push	r20
   267de:	5f 93       	push	r21
   267e0:	6f 93       	push	r22
   267e2:	7f 93       	push	r23
   267e4:	8f 93       	push	r24
   267e6:	9f 93       	push	r25
   267e8:	af 93       	push	r26
   267ea:	bf 93       	push	r27
   267ec:	cf 93       	push	r28
   267ee:	df 93       	push	r29
   267f0:	ef 93       	push	r30
   267f2:	ff 93       	push	r31
    DISABLE_SOFT_PWM_INTERRUPT();
   267f4:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   267f8:	8b 7f       	andi	r24, 0xFB	; 251
   267fa:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>

#if !defined(__DOXYGEN__)
/* Internal helper functions. */
static __inline__ uint8_t __iSeiRetVal(void)
{
    sei();
   267fe:	78 94       	sei
//          Only update flags, but do not perform any menu/lcd operation!
void lcd_buttons_update(void)
{
    static uint8_t lcd_long_press_active = 0;
    static uint8_t lcd_button_pressed = 0;
    if (READ(BTN_ENC) == 0)
   26800:	80 91 00 01 	lds	r24, 0x0100	; 0x800100 <__TEXT_REGION_LENGTH__+0x7c2100>
   26804:	86 fd       	sbrc	r24, 6
   26806:	c8 c0       	rjmp	.+400    	; 0x26998 <__vector_14+0x1d4>
    { //button is pressed
        if (buttonBlanking.expired_cont(BUTTON_BLANKING_TIME)) {
   26808:	68 ec       	ldi	r22, 0xC8	; 200
   2680a:	70 e0       	ldi	r23, 0x00	; 0
   2680c:	8f ed       	ldi	r24, 0xDF	; 223
   2680e:	95 e0       	ldi	r25, 0x05	; 5
   26810:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   26814:	88 23       	and	r24, r24
   26816:	b9 f0       	breq	.+46     	; 0x26846 <__vector_14+0x82>
            buttonBlanking.start();
   26818:	8f ed       	ldi	r24, 0xDF	; 223
   2681a:	95 e0       	ldi	r25, 0x05	; 5
   2681c:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
            safetyTimer.start();
   26820:	8a ed       	ldi	r24, 0xDA	; 218
   26822:	95 e0       	ldi	r25, 0x05	; 5
   26824:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
            if ((lcd_button_pressed == 0) && (lcd_long_press_active == 0))
   26828:	80 91 d9 05 	lds	r24, 0x05D9	; 0x8005d9 <lcd_buttons_update()::lcd_button_pressed>
   2682c:	81 11       	cpse	r24, r1
   2682e:	a5 c0       	rjmp	.+330    	; 0x2697a <__vector_14+0x1b6>
   26830:	80 91 d8 05 	lds	r24, 0x05D8	; 0x8005d8 <lcd_buttons_update()::lcd_long_press_active>
   26834:	81 11       	cpse	r24, r1
   26836:	a1 c0       	rjmp	.+322    	; 0x2697a <__vector_14+0x1b6>
            {
                longPressTimer.start();
   26838:	85 ed       	ldi	r24, 0xD5	; 213
   2683a:	95 e0       	ldi	r25, 0x05	; 5
   2683c:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
                lcd_button_pressed = 1;
   26840:	81 e0       	ldi	r24, 0x01	; 1
   26842:	80 93 d9 05 	sts	0x05D9, r24	; 0x8005d9 <lcd_buttons_update()::lcd_button_pressed>
		-2, 1, -1, 0,
	};

	static uint8_t enc_bits_old = 0;
	uint8_t enc_bits = 0;
    if (!READ(BTN_EN1)) enc_bits |= _BV(0);
   26846:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   2684a:	82 fb       	bst	r24, 2
   2684c:	88 27       	eor	r24, r24
   2684e:	80 f9       	bld	r24, 0
   26850:	91 e0       	ldi	r25, 0x01	; 1
   26852:	89 27       	eor	r24, r25
    if (!READ(BTN_EN2)) enc_bits |= _BV(1);
   26854:	90 91 03 01 	lds	r25, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   26858:	91 ff       	sbrs	r25, 1
   2685a:	82 60       	ori	r24, 0x02	; 2

	if (enc_bits != enc_bits_old)
   2685c:	e0 91 d2 05 	lds	r30, 0x05D2	; 0x8005d2 <lcd_buttons_update()::enc_bits_old>
   26860:	e8 17       	cp	r30, r24
   26862:	e1 f0       	breq	.+56     	; 0x2689c <__vector_14+0xd8>
    {
		int8_t newDiff = pgm_read_byte(&encrot_table[(enc_bits_old << 2) | enc_bits]);
   26864:	24 e0       	ldi	r18, 0x04	; 4
   26866:	e2 9f       	mul	r30, r18
   26868:	f0 01       	movw	r30, r0
   2686a:	11 24       	eor	r1, r1
   2686c:	e8 2b       	or	r30, r24
   2686e:	ed 56       	subi	r30, 0x6D	; 109
   26870:	f2 46       	sbci	r31, 0x62	; 98
   26872:	e4 91       	lpm	r30, Z
		lcd_encoder_diff += newDiff;
   26874:	90 91 d1 05 	lds	r25, 0x05D1	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>
   26878:	e9 0f       	add	r30, r25
   2687a:	e0 93 d1 05 	sts	0x05D1, r30	; 0x8005d1 <_ZL16lcd_encoder_diff.lto_priv.541>

        if (abs(lcd_encoder_diff) >= ENCODER_PULSES_PER_STEP) {
   2687e:	0e 2e       	mov	r0, r30
   26880:	00 0c       	add	r0, r0
   26882:	ff 0b       	sbc	r31, r31
   26884:	f7 ff       	sbrs	r31, 7
   26886:	03 c0       	rjmp	.+6      	; 0x2688e <__vector_14+0xca>
   26888:	f1 95       	neg	r31
   2688a:	e1 95       	neg	r30
   2688c:	f1 09       	sbc	r31, r1
   2688e:	34 97       	sbiw	r30, 0x04	; 4
   26890:	1c f0       	brlt	.+6      	; 0x26898 <__vector_14+0xd4>
            lcd_backlight_wake_trigger = true; // flag event, knob rotated
   26892:	91 e0       	ldi	r25, 0x01	; 1
   26894:	90 93 d3 05 	sts	0x05D3, r25	; 0x8005d3 <_ZL26lcd_backlight_wake_trigger.lto_priv.540>
        }
        enc_bits_old = enc_bits;
   26898:	80 93 d2 05 	sts	0x05D2, r24	; 0x8005d2 <lcd_buttons_update()::enc_bits_old>

#ifndef SLOW_PWM_HEATERS
  /*
   * standard PWM modulation
   */
  if (pwm_count == 0)
   2689c:	80 91 a4 02 	lds	r24, 0x02A4	; 0x8002a4 <soft_pwm_core()::pwm_count>
   268a0:	81 11       	cpse	r24, r1
   268a2:	08 c0       	rjmp	.+16     	; 0x268b4 <__vector_14+0xf0>
  {
    soft_pwm_0 = soft_pwm[0];
   268a4:	80 91 16 05 	lds	r24, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   268a8:	80 93 e8 05 	sts	0x05E8, r24	; 0x8005e8 <soft_pwm_core()::soft_pwm_0>
    if(soft_pwm_0 > 0)
   268ac:	88 23       	and	r24, r24
   268ae:	09 f4       	brne	.+2      	; 0x268b2 <__vector_14+0xee>
   268b0:	87 c0       	rjmp	.+270    	; 0x269c0 <__vector_14+0x1fc>
	{
      WRITE(HEATER_0_PIN,1);
   268b2:	75 9a       	sbi	0x0e, 5	; 14
#endif
    } else WRITE(HEATER_0_PIN,0);
  }

#ifdef FAN_SOFT_PWM
  if ((pwm_count & ((1 << FAN_SOFT_PWM_BITS) - 1)) == 0)
   268b4:	80 91 a4 02 	lds	r24, 0x02A4	; 0x8002a4 <soft_pwm_core()::pwm_count>
   268b8:	8f 70       	andi	r24, 0x0F	; 15
   268ba:	a9 f4       	brne	.+42     	; 0x268e6 <__vector_14+0x122>
  {
    soft_pwm_fan = fanSpeedSoftPwm / (1 << (8 - FAN_SOFT_PWM_BITS));
   268bc:	80 91 a6 04 	lds	r24, 0x04A6	; 0x8004a6 <fanSpeedSoftPwm>
   268c0:	90 e0       	ldi	r25, 0x00	; 0
   268c2:	24 e0       	ldi	r18, 0x04	; 4
   268c4:	95 95       	asr	r25
   268c6:	87 95       	ror	r24
   268c8:	2a 95       	dec	r18
   268ca:	e1 f7       	brne	.-8      	; 0x268c4 <__vector_14+0x100>
   268cc:	80 93 a5 04 	sts	0x04A5, r24	; 0x8004a5 <_ZL12soft_pwm_fan.lto_priv.462>
    if(soft_pwm_fan > 0) WRITE(FAN_PIN,1); else WRITE(FAN_PIN,0);
   268d0:	89 2b       	or	r24, r25
   268d2:	09 f4       	brne	.+2      	; 0x268d6 <__vector_14+0x112>
   268d4:	77 c0       	rjmp	.+238    	; 0x269c4 <__vector_14+0x200>
   268d6:	9f b7       	in	r25, 0x3f	; 63
   268d8:	f8 94       	cli
   268da:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   268de:	88 60       	ori	r24, 0x08	; 8
   268e0:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   268e4:	9f bf       	out	0x3f, r25	; 63
  }
#endif
  if(soft_pwm_0 < pwm_count)
   268e6:	90 91 e8 05 	lds	r25, 0x05E8	; 0x8005e8 <soft_pwm_core()::soft_pwm_0>
   268ea:	80 91 a4 02 	lds	r24, 0x02A4	; 0x8002a4 <soft_pwm_core()::pwm_count>
   268ee:	98 17       	cp	r25, r24
   268f0:	08 f4       	brcc	.+2      	; 0x268f4 <__vector_14+0x130>
  {
    WRITE(HEATER_0_PIN,0);
   268f2:	75 98       	cbi	0x0e, 5	; 14
    WRITE(HEATER_1_PIN,0);
#endif
  }

#ifdef FAN_SOFT_PWM
  if (soft_pwm_fan < (pwm_count & ((1 << FAN_SOFT_PWM_BITS) - 1))) WRITE(FAN_PIN,0);
   268f4:	80 91 a4 02 	lds	r24, 0x02A4	; 0x8002a4 <soft_pwm_core()::pwm_count>
   268f8:	8f 70       	andi	r24, 0x0F	; 15
   268fa:	90 91 a5 04 	lds	r25, 0x04A5	; 0x8004a5 <_ZL12soft_pwm_fan.lto_priv.462>
   268fe:	98 17       	cp	r25, r24
   26900:	40 f4       	brcc	.+16     	; 0x26912 <__vector_14+0x14e>
   26902:	9f b7       	in	r25, 0x3f	; 63
   26904:	f8 94       	cli
   26906:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2690a:	87 7f       	andi	r24, 0xF7	; 247
   2690c:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   26910:	9f bf       	out	0x3f, r25	; 63
#endif

  pwm_count += (1 << SOFT_PWM_SCALE);
   26912:	80 91 a4 02 	lds	r24, 0x02A4	; 0x8002a4 <soft_pwm_core()::pwm_count>
   26916:	8f 5f       	subi	r24, 0xFF	; 255
  pwm_count &= 0x7f;
   26918:	8f 77       	andi	r24, 0x7F	; 127
   2691a:	80 93 a4 02 	sts	0x02A4, r24	; 0x8002a4 <soft_pwm_core()::pwm_count>
   2691e:	10 e0       	ldi	r17, 0x00	; 0
   26920:	00 e0       	ldi	r16, 0x00	; 0

#ifdef BABYSTEPPING
FORCE_INLINE static void applyBabysteps() {
  for(uint8_t axis=0;axis<3;axis++)
  {
    int curTodo=babystepsTodo[axis]; //get rid of volatile for performance
   26922:	e8 01       	movw	r28, r16
   26924:	cc 0f       	add	r28, r28
   26926:	dd 1f       	adc	r29, r29
   26928:	c7 59       	subi	r28, 0x97	; 151
   2692a:	d9 4f       	sbci	r29, 0xF9	; 249
   2692c:	88 81       	ld	r24, Y
   2692e:	99 81       	ldd	r25, Y+1	; 0x01

    if(curTodo>0)
   26930:	18 16       	cp	r1, r24
   26932:	19 06       	cpc	r1, r25
   26934:	0c f0       	brlt	.+2      	; 0x26938 <__vector_14+0x174>
   26936:	4c c0       	rjmp	.+152    	; 0x269d0 <__vector_14+0x20c>
{
      ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   26938:	ff b6       	in	r15, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   2693a:	f8 94       	cli
        babystep(axis,/*fwd*/true);
   2693c:	61 e0       	ldi	r22, 0x01	; 1
   2693e:	80 2f       	mov	r24, r16
   26940:	0f 94 b0 14 	call	0x22960	; 0x22960 <babystep(unsigned char, bool)>
        babystepsTodo[axis]--; //less to do next time
   26944:	88 81       	ld	r24, Y
   26946:	99 81       	ldd	r25, Y+1	; 0x01
   26948:	01 97       	sbiw	r24, 0x01	; 1
    else
    if(curTodo<0)
    {
      ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
        babystep(axis,/*fwd*/false);
        babystepsTodo[axis]++; //less to do next time
   2694a:	99 83       	std	Y+1, r25	; 0x01
   2694c:	88 83       	st	Y, r24
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   2694e:	ff be       	out	0x3f, r15	; 63
    __asm__ volatile ("" ::: "memory");
   26950:	0f 5f       	subi	r16, 0xFF	; 255
   26952:	1f 4f       	sbci	r17, 0xFF	; 255
}
#endif

#ifdef BABYSTEPPING
FORCE_INLINE static void applyBabysteps() {
  for(uint8_t axis=0;axis<3;axis++)
   26954:	03 30       	cpi	r16, 0x03	; 3
   26956:	11 05       	cpc	r17, r1
   26958:	21 f7       	brne	.-56     	; 0x26922 <__vector_14+0x15e>
#ifdef BABYSTEPPING
  applyBabysteps();
#endif //BABYSTEPPING

  // Check if a stack overflow happened
  if (!SdFatUtil::test_stack_integrity()) stack_error();
   2695a:	80 91 40 18 	lds	r24, 0x1840	; 0x801840 <__bss_end+0x20>
   2695e:	90 91 41 18 	lds	r25, 0x1841	; 0x801841 <__bss_end+0x21>
   26962:	a0 91 42 18 	lds	r26, 0x1842	; 0x801842 <__bss_end+0x22>
   26966:	b0 91 43 18 	lds	r27, 0x1843	; 0x801843 <__bss_end+0x23>
   2696a:	82 3a       	cpi	r24, 0xA2	; 162
   2696c:	92 4a       	sbci	r25, 0xA2	; 162
   2696e:	a1 05       	cpc	r26, r1
   26970:	b1 05       	cpc	r27, r1
   26972:	d9 f1       	breq	.+118    	; 0x269ea <__vector_14+0x226>
    crash_and_burn(dump_crash_reason::bad_isr);
}
#endif //EMERGENCY_HANDLERS

void stack_error() {
    crash_and_burn(dump_crash_reason::stack_error);
   26974:	81 e0       	ldi	r24, 0x01	; 1
   26976:	0e 94 df 66 	call	0xcdbe	; 0xcdbe <crash_and_burn(dump_crash_reason) [clone .lto_priv.485]>
            if ((lcd_button_pressed == 0) && (lcd_long_press_active == 0))
            {
                longPressTimer.start();
                lcd_button_pressed = 1;
            }
            else if (longPressTimer.expired(LONG_PRESS_TIME))
   2697a:	68 ee       	ldi	r22, 0xE8	; 232
   2697c:	73 e0       	ldi	r23, 0x03	; 3
   2697e:	85 ed       	ldi	r24, 0xD5	; 213
   26980:	95 e0       	ldi	r25, 0x05	; 5
   26982:	0f 94 8a 2a 	call	0x25514	; 0x25514 <Timer<unsigned short>::expired(unsigned short)>
   26986:	88 23       	and	r24, r24
   26988:	09 f4       	brne	.+2      	; 0x2698c <__vector_14+0x1c8>
   2698a:	5d cf       	rjmp	.-326    	; 0x26846 <__vector_14+0x82>
            {
                lcd_long_press_active = 1;
   2698c:	81 e0       	ldi	r24, 0x01	; 1
   2698e:	80 93 d8 05 	sts	0x05D8, r24	; 0x8005d8 <lcd_buttons_update()::lcd_long_press_active>
                lcd_longpress_trigger = 1;
   26992:	80 93 d4 05 	sts	0x05D4, r24	; 0x8005d4 <lcd_longpress_trigger>
   26996:	57 cf       	rjmp	.-338    	; 0x26846 <__vector_14+0x82>
            }
        }
    }
    else
    { //button not pressed
        if (lcd_button_pressed)
   26998:	80 91 d9 05 	lds	r24, 0x05D9	; 0x8005d9 <lcd_buttons_update()::lcd_button_pressed>
   2699c:	88 23       	and	r24, r24
   2699e:	09 f4       	brne	.+2      	; 0x269a2 <__vector_14+0x1de>
   269a0:	52 cf       	rjmp	.-348    	; 0x26846 <__vector_14+0x82>
        { //button was released
            lcd_button_pressed = 0; // Reset to prevent double triggering
   269a2:	10 92 d9 05 	sts	0x05D9, r1	; 0x8005d9 <lcd_buttons_update()::lcd_button_pressed>
            if (!lcd_long_press_active)
   269a6:	80 91 d8 05 	lds	r24, 0x05D8	; 0x8005d8 <lcd_buttons_update()::lcd_long_press_active>
   269aa:	81 11       	cpse	r24, r1
   269ac:	03 c0       	rjmp	.+6      	; 0x269b4 <__vector_14+0x1f0>
            { //button released before long press gets activated
                lcd_click_trigger = 1; // This flag is reset when the event is consumed
   269ae:	81 e0       	ldi	r24, 0x01	; 1
   269b0:	80 93 a8 03 	sts	0x03A8, r24	; 0x8003a8 <lcd_click_trigger>
            }
            lcd_backlight_wake_trigger = true; // flag event, knob pressed
   269b4:	81 e0       	ldi	r24, 0x01	; 1
   269b6:	80 93 d3 05 	sts	0x05D3, r24	; 0x8005d3 <_ZL26lcd_backlight_wake_trigger.lto_priv.540>
            lcd_long_press_active = 0;
   269ba:	10 92 d8 05 	sts	0x05D8, r1	; 0x8005d8 <lcd_buttons_update()::lcd_long_press_active>
   269be:	43 cf       	rjmp	.-378    	; 0x26846 <__vector_14+0x82>
	{
      WRITE(HEATER_0_PIN,1);
#ifdef HEATERS_PARALLEL
      WRITE(HEATER_1_PIN,1);
#endif
    } else WRITE(HEATER_0_PIN,0);
   269c0:	75 98       	cbi	0x0e, 5	; 14
   269c2:	78 cf       	rjmp	.-272    	; 0x268b4 <__vector_14+0xf0>

#ifdef FAN_SOFT_PWM
  if ((pwm_count & ((1 << FAN_SOFT_PWM_BITS) - 1)) == 0)
  {
    soft_pwm_fan = fanSpeedSoftPwm / (1 << (8 - FAN_SOFT_PWM_BITS));
    if(soft_pwm_fan > 0) WRITE(FAN_PIN,1); else WRITE(FAN_PIN,0);
   269c4:	9f b7       	in	r25, 0x3f	; 63
   269c6:	f8 94       	cli
   269c8:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   269cc:	87 7f       	andi	r24, 0xF7	; 247
   269ce:	88 cf       	rjmp	.-240    	; 0x268e0 <__vector_14+0x11c>
        babystep(axis,/*fwd*/true);
        babystepsTodo[axis]--; //less to do next time
      }
    }
    else
    if(curTodo<0)
   269d0:	89 2b       	or	r24, r25
   269d2:	09 f4       	brne	.+2      	; 0x269d6 <__vector_14+0x212>
   269d4:	bd cf       	rjmp	.-134    	; 0x26950 <__vector_14+0x18c>
    {
      ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   269d6:	ff b6       	in	r15, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   269d8:	f8 94       	cli
        babystep(axis,/*fwd*/false);
   269da:	60 e0       	ldi	r22, 0x00	; 0
   269dc:	80 2f       	mov	r24, r16
   269de:	0f 94 b0 14 	call	0x22960	; 0x22960 <babystep(unsigned char, bool)>
        babystepsTodo[axis]++; //less to do next time
   269e2:	88 81       	ld	r24, Y
   269e4:	99 81       	ldd	r25, Y+1	; 0x01
   269e6:	01 96       	adiw	r24, 0x01	; 1
   269e8:	b0 cf       	rjmp	.-160    	; 0x2694a <__vector_14+0x186>

#if (defined(FANCHECK) && defined(TACH_0) && (TACH_0 > -1))
void readFanTach() {
    static bool fan_state[2];
#ifdef FAN_SOFT_PWM
    if (READ(TACH_0) != fan_state[0]) {
   269ea:	9c b1       	in	r25, 0x0c	; 12
   269ec:	80 91 e6 05 	lds	r24, 0x05E6	; 0x8005e6 <readFanTach()::fan_state>
   269f0:	96 fb       	bst	r25, 6
   269f2:	99 27       	eor	r25, r25
   269f4:	90 f9       	bld	r25, 0
   269f6:	98 17       	cp	r25, r24
   269f8:	91 f0       	breq	.+36     	; 0x26a1e <__vector_14+0x25a>
        if(fan_measuring) fan_edge_counter[0] ++;
   269fa:	90 91 6f 06 	lds	r25, 0x066F	; 0x80066f <fan_measuring>
   269fe:	99 23       	and	r25, r25
   26a00:	51 f0       	breq	.+20     	; 0x26a16 <__vector_14+0x252>
   26a02:	20 91 e2 05 	lds	r18, 0x05E2	; 0x8005e2 <fan_edge_counter>
   26a06:	30 91 e3 05 	lds	r19, 0x05E3	; 0x8005e3 <fan_edge_counter+0x1>
   26a0a:	2f 5f       	subi	r18, 0xFF	; 255
   26a0c:	3f 4f       	sbci	r19, 0xFF	; 255
   26a0e:	30 93 e3 05 	sts	0x05E3, r19	; 0x8005e3 <fan_edge_counter+0x1>
   26a12:	20 93 e2 05 	sts	0x05E2, r18	; 0x8005e2 <fan_edge_counter>
        fan_state[0] = !fan_state[0];
   26a16:	91 e0       	ldi	r25, 0x01	; 1
   26a18:	89 27       	eor	r24, r25
   26a1a:	80 93 e6 05 	sts	0x05E6, r24	; 0x8005e6 <readFanTach()::fan_state>
    (void)__s;
}

static __inline__ void __iCliParam(const uint8_t *__s)
{
    cli();
   26a1e:	f8 94       	cli
{
    DISABLE_SOFT_PWM_INTERRUPT();
    NONATOMIC_BLOCK(NONATOMIC_FORCEOFF) {
        soft_pwm_isr();
    }
    ENABLE_SOFT_PWM_INTERRUPT();
   26a20:	80 91 70 00 	lds	r24, 0x0070	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
   26a24:	84 60       	ori	r24, 0x04	; 4
   26a26:	80 93 70 00 	sts	0x0070, r24	; 0x800070 <__TEXT_REGION_LENGTH__+0x7c2070>
}
   26a2a:	ff 91       	pop	r31
   26a2c:	ef 91       	pop	r30
   26a2e:	df 91       	pop	r29
   26a30:	cf 91       	pop	r28
   26a32:	bf 91       	pop	r27
   26a34:	af 91       	pop	r26
   26a36:	9f 91       	pop	r25
   26a38:	8f 91       	pop	r24
   26a3a:	7f 91       	pop	r23
   26a3c:	6f 91       	pop	r22
   26a3e:	5f 91       	pop	r21
   26a40:	4f 91       	pop	r20
   26a42:	3f 91       	pop	r19
   26a44:	2f 91       	pop	r18
   26a46:	1f 91       	pop	r17
   26a48:	0f 91       	pop	r16
   26a4a:	ff 90       	pop	r15
   26a4c:	0f 90       	pop	r0
   26a4e:	0b be       	out	0x3b, r0	; 59
   26a50:	0f 90       	pop	r0
   26a52:	0f be       	out	0x3f, r0	; 63
   26a54:	0f 90       	pop	r0
   26a56:	1f 90       	pop	r1
   26a58:	18 95       	reti

00026a5a <analog2tempAmbient(int) [clone .lto_priv.430]>:
  #endif
}

#ifdef AMBIENT_THERMISTOR
static float analog2tempAmbient(int raw)
{
   26a5a:	4f 92       	push	r4
   26a5c:	5f 92       	push	r5
   26a5e:	6f 92       	push	r6
   26a60:	7f 92       	push	r7
   26a62:	af 92       	push	r10
   26a64:	bf 92       	push	r11
   26a66:	cf 92       	push	r12
   26a68:	df 92       	push	r13
   26a6a:	ef 92       	push	r14
   26a6c:	ff 92       	push	r15
   26a6e:	0f 93       	push	r16
   26a70:	1f 93       	push	r17
   26a72:	cf 93       	push	r28
   26a74:	df 93       	push	r29
   26a76:	24 e0       	ldi	r18, 0x04	; 4
   26a78:	30 e0       	ldi	r19, 0x00	; 0
   26a7a:	41 e0       	ldi	r20, 0x01	; 1
   26a7c:	50 e0       	ldi	r21, 0x00	; 0
   26a7e:	d9 01       	movw	r26, r18
   26a80:	ab 5d       	subi	r26, 0xDB	; 219
   26a82:	b3 46       	sbci	r27, 0x63	; 99
    float celsius = 0;
    byte i;

    for (i=1; i<AMBIENTTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(AMBIENTTEMPTABLE[i][0]) > raw)
   26a84:	fd 01       	movw	r30, r26
   26a86:	65 91       	lpm	r22, Z+
   26a88:	74 91       	lpm	r23, Z
   26a8a:	86 17       	cp	r24, r22
   26a8c:	97 07       	cpc	r25, r23
   26a8e:	0c f0       	brlt	.+2      	; 0x26a92 <analog2tempAmbient(int) [clone .lto_priv.430]+0x38>
   26a90:	66 c0       	rjmp	.+204    	; 0x26b5e <analog2tempAmbient(int) [clone .lto_priv.430]+0x104>
      {
        celsius  = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]) +
   26a92:	41 50       	subi	r20, 0x01	; 1
   26a94:	51 09       	sbc	r21, r1
   26a96:	44 0f       	add	r20, r20
   26a98:	55 1f       	adc	r21, r21
   26a9a:	44 0f       	add	r20, r20
   26a9c:	55 1f       	adc	r21, r21
   26a9e:	ea 01       	movw	r28, r20
   26aa0:	c9 5d       	subi	r28, 0xD9	; 217
   26aa2:	d3 46       	sbci	r29, 0x63	; 99
   26aa4:	fe 01       	movw	r30, r28
   26aa6:	05 91       	lpm	r16, Z+
   26aa8:	14 91       	lpm	r17, Z
          (raw - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0])) *
   26aaa:	4b 5d       	subi	r20, 0xDB	; 219
   26aac:	53 46       	sbci	r21, 0x63	; 99
   26aae:	fa 01       	movw	r30, r20
   26ab0:	65 91       	lpm	r22, Z+
   26ab2:	74 91       	lpm	r23, Z
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][1]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][1])) /
   26ab4:	f9 01       	movw	r30, r18
   26ab6:	e9 5d       	subi	r30, 0xD9	; 217
   26ab8:	f3 46       	sbci	r31, 0x63	; 99
   26aba:	e5 90       	lpm	r14, Z+
   26abc:	f4 90       	lpm	r15, Z
   26abe:	fe 01       	movw	r30, r28
   26ac0:	c5 90       	lpm	r12, Z+
   26ac2:	d4 90       	lpm	r13, Z
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][0]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0]));
   26ac4:	fd 01       	movw	r30, r26
   26ac6:	c5 91       	lpm	r28, Z+
   26ac8:	d4 91       	lpm	r29, Z
   26aca:	fa 01       	movw	r30, r20
   26acc:	a5 90       	lpm	r10, Z+
   26ace:	b4 90       	lpm	r11, Z
    for (i=1; i<AMBIENTTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(AMBIENTTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0])) *
   26ad0:	86 1b       	sub	r24, r22
   26ad2:	97 0b       	sbc	r25, r23
   26ad4:	bc 01       	movw	r22, r24
   26ad6:	99 0f       	add	r25, r25
   26ad8:	88 0b       	sbc	r24, r24
   26ada:	99 0b       	sbc	r25, r25
   26adc:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26ae0:	2b 01       	movw	r4, r22
   26ae2:	3c 01       	movw	r6, r24
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][1]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][1])) /
   26ae4:	b7 01       	movw	r22, r14
   26ae6:	6c 19       	sub	r22, r12
   26ae8:	7d 09       	sbc	r23, r13
   26aea:	07 2e       	mov	r0, r23
   26aec:	00 0c       	add	r0, r0
   26aee:	88 0b       	sbc	r24, r24
   26af0:	99 0b       	sbc	r25, r25
   26af2:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26af6:	9b 01       	movw	r18, r22
   26af8:	ac 01       	movw	r20, r24
    for (i=1; i<AMBIENTTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(AMBIENTTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0])) *
   26afa:	c3 01       	movw	r24, r6
   26afc:	b2 01       	movw	r22, r4
   26afe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   26b02:	6b 01       	movw	r12, r22
   26b04:	7c 01       	movw	r14, r24
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][1]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][1])) /
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][0]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0]));
   26b06:	be 01       	movw	r22, r28
   26b08:	6a 19       	sub	r22, r10
   26b0a:	7b 09       	sbc	r23, r11
   26b0c:	07 2e       	mov	r0, r23
   26b0e:	00 0c       	add	r0, r0
   26b10:	88 0b       	sbc	r24, r24
   26b12:	99 0b       	sbc	r25, r25
   26b14:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26b18:	9b 01       	movw	r18, r22
   26b1a:	ac 01       	movw	r20, r24
    {
      if (PGM_RD_W(AMBIENTTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0])) *
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][1]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][1])) /
   26b1c:	c7 01       	movw	r24, r14
   26b1e:	b6 01       	movw	r22, r12
   26b20:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   26b24:	6b 01       	movw	r12, r22
   26b26:	7c 01       	movw	r14, r24

    for (i=1; i<AMBIENTTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(AMBIENTTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]) +
   26b28:	b8 01       	movw	r22, r16
   26b2a:	11 0f       	add	r17, r17
   26b2c:	88 0b       	sbc	r24, r24
   26b2e:	99 0b       	sbc	r25, r25
   26b30:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26b34:	9b 01       	movw	r18, r22
   26b36:	ac 01       	movw	r20, r24
   26b38:	c7 01       	movw	r24, r14
   26b3a:	b6 01       	movw	r22, r12
   26b3c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
      }
    }
    // Overflow: Set to last value in the table
    if (i == AMBIENTTEMPTABLE_LEN) celsius = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]);
    return celsius;
}
   26b40:	df 91       	pop	r29
   26b42:	cf 91       	pop	r28
   26b44:	1f 91       	pop	r17
   26b46:	0f 91       	pop	r16
   26b48:	ff 90       	pop	r15
   26b4a:	ef 90       	pop	r14
   26b4c:	df 90       	pop	r13
   26b4e:	cf 90       	pop	r12
   26b50:	bf 90       	pop	r11
   26b52:	af 90       	pop	r10
   26b54:	7f 90       	pop	r7
   26b56:	6f 90       	pop	r6
   26b58:	5f 90       	pop	r5
   26b5a:	4f 90       	pop	r4
   26b5c:	08 95       	ret
   26b5e:	4f 5f       	subi	r20, 0xFF	; 255
   26b60:	5f 4f       	sbci	r21, 0xFF	; 255
   26b62:	2c 5f       	subi	r18, 0xFC	; 252
   26b64:	3f 4f       	sbci	r19, 0xFF	; 255
static float analog2tempAmbient(int raw)
{
    float celsius = 0;
    byte i;

    for (i=1; i<AMBIENTTEMPTABLE_LEN; i++)
   26b66:	28 38       	cpi	r18, 0x88	; 136
   26b68:	31 05       	cpc	r19, r1
   26b6a:	09 f0       	breq	.+2      	; 0x26b6e <analog2tempAmbient(int) [clone .lto_priv.430]+0x114>
   26b6c:	88 cf       	rjmp	.-240    	; 0x26a7e <analog2tempAmbient(int) [clone .lto_priv.430]+0x24>
          (float)(PGM_RD_W(AMBIENTTEMPTABLE[i][0]) - PGM_RD_W(AMBIENTTEMPTABLE[i-1][0]));
        break;
      }
    }
    // Overflow: Set to last value in the table
    if (i == AMBIENTTEMPTABLE_LEN) celsius = PGM_RD_W(AMBIENTTEMPTABLE[i-1][1]);
   26b6e:	eb ea       	ldi	r30, 0xAB	; 171
   26b70:	fc e9       	ldi	r31, 0x9C	; 156
   26b72:	65 91       	lpm	r22, Z+
   26b74:	74 91       	lpm	r23, Z
   26b76:	07 2e       	mov	r0, r23
   26b78:	00 0c       	add	r0, r0
   26b7a:	88 0b       	sbc	r24, r24
   26b7c:	99 0b       	sbc	r25, r25
   26b7e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26b82:	de cf       	rjmp	.-68     	; 0x26b40 <analog2tempAmbient(int) [clone .lto_priv.430]+0xe6>

00026b84 <analog2tempBed(int) [clone .lto_priv.431]>:
  return ((raw * ((5.0 * 100.0) / 1024.0) / OVERSAMPLENR) * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET;
}

// Derived from RepRap FiveD extruder::getTemperature()
// For bed temperature measurement.
static float analog2tempBed(int raw) {
   26b84:	4f 92       	push	r4
   26b86:	5f 92       	push	r5
   26b88:	6f 92       	push	r6
   26b8a:	7f 92       	push	r7
   26b8c:	af 92       	push	r10
   26b8e:	bf 92       	push	r11
   26b90:	cf 92       	push	r12
   26b92:	df 92       	push	r13
   26b94:	ef 92       	push	r14
   26b96:	ff 92       	push	r15
   26b98:	0f 93       	push	r16
   26b9a:	1f 93       	push	r17
   26b9c:	cf 93       	push	r28
   26b9e:	df 93       	push	r29
   26ba0:	24 e0       	ldi	r18, 0x04	; 4
   26ba2:	30 e0       	ldi	r19, 0x00	; 0
   26ba4:	41 e0       	ldi	r20, 0x01	; 1
   26ba6:	50 e0       	ldi	r21, 0x00	; 0
   26ba8:	d9 01       	movw	r26, r18
   26baa:	af 5c       	subi	r26, 0xCF	; 207
   26bac:	b4 46       	sbci	r27, 0x64	; 100
    float celsius = 0;
    byte i;

    for (i=1; i<BEDTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
   26bae:	fd 01       	movw	r30, r26
   26bb0:	65 91       	lpm	r22, Z+
   26bb2:	74 91       	lpm	r23, Z
   26bb4:	86 17       	cp	r24, r22
   26bb6:	97 07       	cpc	r25, r23
   26bb8:	0c f0       	brlt	.+2      	; 0x26bbc <analog2tempBed(int) [clone .lto_priv.431]+0x38>
   26bba:	80 c0       	rjmp	.+256    	; 0x26cbc <analog2tempBed(int) [clone .lto_priv.431]+0x138>
      {
        celsius  = PGM_RD_W(BEDTEMPTABLE[i-1][1]) +
   26bbc:	41 50       	subi	r20, 0x01	; 1
   26bbe:	51 09       	sbc	r21, r1
   26bc0:	44 0f       	add	r20, r20
   26bc2:	55 1f       	adc	r21, r21
   26bc4:	44 0f       	add	r20, r20
   26bc6:	55 1f       	adc	r21, r21
   26bc8:	8a 01       	movw	r16, r20
   26bca:	0d 5c       	subi	r16, 0xCD	; 205
   26bcc:	14 46       	sbci	r17, 0x64	; 100
   26bce:	f8 01       	movw	r30, r16
   26bd0:	c5 90       	lpm	r12, Z+
   26bd2:	d4 90       	lpm	r13, Z
          (raw - PGM_RD_W(BEDTEMPTABLE[i-1][0])) *
   26bd4:	4f 5c       	subi	r20, 0xCF	; 207
   26bd6:	54 46       	sbci	r21, 0x64	; 100
   26bd8:	fa 01       	movw	r30, r20
   26bda:	65 91       	lpm	r22, Z+
   26bdc:	74 91       	lpm	r23, Z
          (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i-1][1])) /
   26bde:	f9 01       	movw	r30, r18
   26be0:	ed 5c       	subi	r30, 0xCD	; 205
   26be2:	f4 46       	sbci	r31, 0x64	; 100
   26be4:	c5 91       	lpm	r28, Z+
   26be6:	d4 91       	lpm	r29, Z
   26be8:	f8 01       	movw	r30, r16
   26bea:	05 91       	lpm	r16, Z+
   26bec:	14 91       	lpm	r17, Z
          (float)(PGM_RD_W(BEDTEMPTABLE[i][0]) - PGM_RD_W(BEDTEMPTABLE[i-1][0]));
   26bee:	fd 01       	movw	r30, r26
   26bf0:	e5 90       	lpm	r14, Z+
   26bf2:	f4 90       	lpm	r15, Z
   26bf4:	fa 01       	movw	r30, r20
   26bf6:	a5 90       	lpm	r10, Z+
   26bf8:	b4 90       	lpm	r11, Z
    for (i=1; i<BEDTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(BEDTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(BEDTEMPTABLE[i-1][0])) *
   26bfa:	86 1b       	sub	r24, r22
   26bfc:	97 0b       	sbc	r25, r23
   26bfe:	bc 01       	movw	r22, r24
   26c00:	99 0f       	add	r25, r25
   26c02:	88 0b       	sbc	r24, r24
   26c04:	99 0b       	sbc	r25, r25
   26c06:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26c0a:	2b 01       	movw	r4, r22
   26c0c:	3c 01       	movw	r6, r24
          (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i-1][1])) /
   26c0e:	be 01       	movw	r22, r28
   26c10:	60 1b       	sub	r22, r16
   26c12:	71 0b       	sbc	r23, r17
   26c14:	07 2e       	mov	r0, r23
   26c16:	00 0c       	add	r0, r0
   26c18:	88 0b       	sbc	r24, r24
   26c1a:	99 0b       	sbc	r25, r25
   26c1c:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26c20:	9b 01       	movw	r18, r22
   26c22:	ac 01       	movw	r20, r24
    for (i=1; i<BEDTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(BEDTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(BEDTEMPTABLE[i-1][0])) *
   26c24:	c3 01       	movw	r24, r6
   26c26:	b2 01       	movw	r22, r4
   26c28:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   26c2c:	2b 01       	movw	r4, r22
   26c2e:	3c 01       	movw	r6, r24
          (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i-1][1])) /
          (float)(PGM_RD_W(BEDTEMPTABLE[i][0]) - PGM_RD_W(BEDTEMPTABLE[i-1][0]));
   26c30:	b7 01       	movw	r22, r14
   26c32:	6a 19       	sub	r22, r10
   26c34:	7b 09       	sbc	r23, r11
   26c36:	07 2e       	mov	r0, r23
   26c38:	00 0c       	add	r0, r0
   26c3a:	88 0b       	sbc	r24, r24
   26c3c:	99 0b       	sbc	r25, r25
   26c3e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26c42:	9b 01       	movw	r18, r22
   26c44:	ac 01       	movw	r20, r24
    {
      if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(BEDTEMPTABLE[i-1][1]) +
          (raw - PGM_RD_W(BEDTEMPTABLE[i-1][0])) *
          (float)(PGM_RD_W(BEDTEMPTABLE[i][1]) - PGM_RD_W(BEDTEMPTABLE[i-1][1])) /
   26c46:	c3 01       	movw	r24, r6
   26c48:	b2 01       	movw	r22, r4
   26c4a:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   26c4e:	2b 01       	movw	r4, r22
   26c50:	3c 01       	movw	r6, r24

    for (i=1; i<BEDTEMPTABLE_LEN; i++)
    {
      if (PGM_RD_W(BEDTEMPTABLE[i][0]) > raw)
      {
        celsius  = PGM_RD_W(BEDTEMPTABLE[i-1][1]) +
   26c52:	b6 01       	movw	r22, r12
   26c54:	dd 0c       	add	r13, r13
   26c56:	88 0b       	sbc	r24, r24
   26c58:	99 0b       	sbc	r25, r25
   26c5a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26c5e:	9b 01       	movw	r18, r22
   26c60:	ac 01       	movw	r20, r24
   26c62:	c3 01       	movw	r24, r6
   26c64:	b2 01       	movw	r22, r4
   26c66:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
        break;
      }
    }

    // Overflow: Set to last value in the table
    if (i == BEDTEMPTABLE_LEN) celsius = PGM_RD_W(BEDTEMPTABLE[i-1][1]);
   26c6a:	6b 01       	movw	r12, r22
   26c6c:	7c 01       	movw	r14, r24
	float _offset_start = BED_OFFSET_START;
	float _first_koef = (_offset / 2) / (_offset_center - _offset_start);
	float _second_koef = (_offset / 2) / (100 - _offset_center);


	if (celsius >= _offset_start && celsius <= _offset_center)
   26c6e:	20 e0       	ldi	r18, 0x00	; 0
   26c70:	30 e0       	ldi	r19, 0x00	; 0
   26c72:	40 e2       	ldi	r20, 0x20	; 32
   26c74:	52 e4       	ldi	r21, 0x42	; 66
   26c76:	c7 01       	movw	r24, r14
   26c78:	b6 01       	movw	r22, r12
   26c7a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26c7e:	87 fd       	sbrc	r24, 7
   26c80:	30 c0       	rjmp	.+96     	; 0x26ce2 <analog2tempBed(int) [clone .lto_priv.431]+0x15e>
   26c82:	20 e0       	ldi	r18, 0x00	; 0
   26c84:	30 e0       	ldi	r19, 0x00	; 0
   26c86:	48 e4       	ldi	r20, 0x48	; 72
   26c88:	52 e4       	ldi	r21, 0x42	; 66
   26c8a:	c7 01       	movw	r24, r14
   26c8c:	b6 01       	movw	r22, r12
   26c8e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   26c92:	18 16       	cp	r1, r24
   26c94:	34 f1       	brlt	.+76     	; 0x26ce2 <analog2tempBed(int) [clone .lto_priv.431]+0x15e>
	{
		celsius = celsius + (_first_koef * (celsius - _offset_start));
   26c96:	20 e0       	ldi	r18, 0x00	; 0
   26c98:	30 e0       	ldi	r19, 0x00	; 0
   26c9a:	40 e2       	ldi	r20, 0x20	; 32
   26c9c:	52 e4       	ldi	r21, 0x42	; 66
   26c9e:	c7 01       	movw	r24, r14
   26ca0:	b6 01       	movw	r22, r12
   26ca2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   26ca6:	20 e0       	ldi	r18, 0x00	; 0
   26ca8:	30 e0       	ldi	r19, 0x00	; 0
   26caa:	40 e0       	ldi	r20, 0x00	; 0
   26cac:	5f e3       	ldi	r21, 0x3F	; 63
   26cae:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   26cb2:	9b 01       	movw	r18, r22
   26cb4:	ac 01       	movw	r20, r24
	{
		celsius = celsius + (_first_koef * (_offset_center - _offset_start)) + ( _second_koef * ( celsius - ( 100 - _offset_center ) )) ;
	}
	else if (celsius > 100)
	{
		celsius = celsius + _offset;
   26cb6:	c7 01       	movw	r24, r14
   26cb8:	b6 01       	movw	r22, r12
   26cba:	43 c0       	rjmp	.+134    	; 0x26d42 <analog2tempBed(int) [clone .lto_priv.431]+0x1be>
   26cbc:	4f 5f       	subi	r20, 0xFF	; 255
   26cbe:	5f 4f       	sbci	r21, 0xFF	; 255
   26cc0:	2c 5f       	subi	r18, 0xFC	; 252
   26cc2:	3f 4f       	sbci	r19, 0xFF	; 255
static float analog2tempBed(int raw) {
  #ifdef BED_USES_THERMISTOR
    float celsius = 0;
    byte i;

    for (i=1; i<BEDTEMPTABLE_LEN; i++)
   26cc4:	24 3f       	cpi	r18, 0xF4	; 244
   26cc6:	31 05       	cpc	r19, r1
   26cc8:	09 f0       	breq	.+2      	; 0x26ccc <analog2tempBed(int) [clone .lto_priv.431]+0x148>
   26cca:	6e cf       	rjmp	.-292    	; 0x26ba8 <analog2tempBed(int) [clone .lto_priv.431]+0x24>
        break;
      }
    }

    // Overflow: Set to last value in the table
    if (i == BEDTEMPTABLE_LEN) celsius = PGM_RD_W(BEDTEMPTABLE[i-1][1]);
   26ccc:	e3 e2       	ldi	r30, 0x23	; 35
   26cce:	fc e9       	ldi	r31, 0x9C	; 156
   26cd0:	65 91       	lpm	r22, Z+
   26cd2:	74 91       	lpm	r23, Z
   26cd4:	07 2e       	mov	r0, r23
   26cd6:	00 0c       	add	r0, r0
   26cd8:	88 0b       	sbc	r24, r24
   26cda:	99 0b       	sbc	r25, r25
   26cdc:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26ce0:	c4 cf       	rjmp	.-120    	; 0x26c6a <analog2tempBed(int) [clone .lto_priv.431]+0xe6>

	if (celsius >= _offset_start && celsius <= _offset_center)
	{
		celsius = celsius + (_first_koef * (celsius - _offset_start));
	}
	else if (celsius > _offset_center && celsius <= 100)
   26ce2:	20 e0       	ldi	r18, 0x00	; 0
   26ce4:	30 e0       	ldi	r19, 0x00	; 0
   26ce6:	48 e4       	ldi	r20, 0x48	; 72
   26ce8:	52 e4       	ldi	r21, 0x42	; 66
   26cea:	c7 01       	movw	r24, r14
   26cec:	b6 01       	movw	r22, r12
   26cee:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26cf2:	18 16       	cp	r1, r24
   26cf4:	dc f5       	brge	.+118    	; 0x26d6c <analog2tempBed(int) [clone .lto_priv.431]+0x1e8>
   26cf6:	20 e0       	ldi	r18, 0x00	; 0
   26cf8:	30 e0       	ldi	r19, 0x00	; 0
   26cfa:	48 ec       	ldi	r20, 0xC8	; 200
   26cfc:	52 e4       	ldi	r21, 0x42	; 66
   26cfe:	c7 01       	movw	r24, r14
   26d00:	b6 01       	movw	r22, r12
   26d02:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   26d06:	18 16       	cp	r1, r24
   26d08:	8c f1       	brlt	.+98     	; 0x26d6c <analog2tempBed(int) [clone .lto_priv.431]+0x1e8>
	{
		celsius = celsius + (_first_koef * (_offset_center - _offset_start)) + ( _second_koef * ( celsius - ( 100 - _offset_center ) )) ;
   26d0a:	20 e0       	ldi	r18, 0x00	; 0
   26d0c:	30 e0       	ldi	r19, 0x00	; 0
   26d0e:	40 ea       	ldi	r20, 0xA0	; 160
   26d10:	50 e4       	ldi	r21, 0x40	; 64
   26d12:	c7 01       	movw	r24, r14
   26d14:	b6 01       	movw	r22, r12
   26d16:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   26d1a:	2b 01       	movw	r4, r22
   26d1c:	3c 01       	movw	r6, r24
   26d1e:	20 e0       	ldi	r18, 0x00	; 0
   26d20:	30 e0       	ldi	r19, 0x00	; 0
   26d22:	48 e4       	ldi	r20, 0x48	; 72
   26d24:	52 e4       	ldi	r21, 0x42	; 66
   26d26:	c7 01       	movw	r24, r14
   26d28:	b6 01       	movw	r22, r12
   26d2a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   26d2e:	2d ec       	ldi	r18, 0xCD	; 205
   26d30:	3c ec       	ldi	r19, 0xCC	; 204
   26d32:	4c ec       	ldi	r20, 0xCC	; 204
   26d34:	5d e3       	ldi	r21, 0x3D	; 61
   26d36:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   26d3a:	9b 01       	movw	r18, r22
   26d3c:	ac 01       	movw	r20, r24
   26d3e:	c3 01       	movw	r24, r6
   26d40:	b2 01       	movw	r22, r4
	}
	else if (celsius > 100)
	{
		celsius = celsius + _offset;
   26d42:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   26d46:	6b 01       	movw	r12, r22
   26d48:	7c 01       	movw	r14, r24
  #elif defined BED_USES_AD595
    return ((raw * ((5.0 * 100.0) / 1024.0) / OVERSAMPLENR) * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET;
  #else
    return 0;
  #endif
}
   26d4a:	c7 01       	movw	r24, r14
   26d4c:	b6 01       	movw	r22, r12
   26d4e:	df 91       	pop	r29
   26d50:	cf 91       	pop	r28
   26d52:	1f 91       	pop	r17
   26d54:	0f 91       	pop	r16
   26d56:	ff 90       	pop	r15
   26d58:	ef 90       	pop	r14
   26d5a:	df 90       	pop	r13
   26d5c:	cf 90       	pop	r12
   26d5e:	bf 90       	pop	r11
   26d60:	af 90       	pop	r10
   26d62:	7f 90       	pop	r7
   26d64:	6f 90       	pop	r6
   26d66:	5f 90       	pop	r5
   26d68:	4f 90       	pop	r4
   26d6a:	08 95       	ret
	}
	else if (celsius > _offset_center && celsius <= 100)
	{
		celsius = celsius + (_first_koef * (_offset_center - _offset_start)) + ( _second_koef * ( celsius - ( 100 - _offset_center ) )) ;
	}
	else if (celsius > 100)
   26d6c:	20 e0       	ldi	r18, 0x00	; 0
   26d6e:	30 e0       	ldi	r19, 0x00	; 0
   26d70:	48 ec       	ldi	r20, 0xC8	; 200
   26d72:	52 e4       	ldi	r21, 0x42	; 66
   26d74:	c7 01       	movw	r24, r14
   26d76:	b6 01       	movw	r22, r12
   26d78:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26d7c:	18 16       	cp	r1, r24
   26d7e:	2c f7       	brge	.-54     	; 0x26d4a <analog2tempBed(int) [clone .lto_priv.431]+0x1c6>
	{
		celsius = celsius + _offset;
   26d80:	20 e0       	ldi	r18, 0x00	; 0
   26d82:	30 e0       	ldi	r19, 0x00	; 0
   26d84:	40 e2       	ldi	r20, 0x20	; 32
   26d86:	51 e4       	ldi	r21, 0x41	; 65
   26d88:	96 cf       	rjmp	.-212    	; 0x26cb6 <analog2tempBed(int) [clone .lto_priv.431]+0x132>

00026d8a <temp_mgr_isr() [clone .lto_priv.422]>:
}

static void check_temp_raw();

static void temp_mgr_isr()
{
   26d8a:	4f 92       	push	r4
   26d8c:	5f 92       	push	r5
   26d8e:	6f 92       	push	r6
   26d90:	7f 92       	push	r7
   26d92:	af 92       	push	r10
   26d94:	cf 92       	push	r12
   26d96:	df 92       	push	r13
   26d98:	ef 92       	push	r14
   26d9a:	ff 92       	push	r15
   26d9c:	0f 93       	push	r16
   26d9e:	1f 93       	push	r17
   26da0:	cf 93       	push	r28
   26da2:	df 93       	push	r29
   interrupt context, while this function runs from temp_mgr_isr which *is* preemptible as
   analog2temp is relatively slow */
static void setIsrTemperaturesFromRawValues()
{
    for(uint8_t e=0;e<EXTRUDERS;e++)
        current_temperature_isr[e] = analog2temp(current_temperature_raw[e], e);
   26da4:	80 91 0b 06 	lds	r24, 0x060B	; 0x80060b <current_temperature_raw>
   26da8:	90 91 0c 06 	lds	r25, 0x060C	; 0x80060c <current_temperature_raw+0x1>
   26dac:	0f 94 5b a1 	call	0x342b6	; 0x342b6 <analog2temp(int, unsigned char) [clone .constprop.70]>
   26db0:	60 93 17 05 	sts	0x0517, r22	; 0x800517 <current_temperature_isr>
   26db4:	70 93 18 05 	sts	0x0518, r23	; 0x800518 <current_temperature_isr+0x1>
   26db8:	80 93 19 05 	sts	0x0519, r24	; 0x800519 <current_temperature_isr+0x2>
   26dbc:	90 93 1a 05 	sts	0x051A, r25	; 0x80051a <current_temperature_isr+0x3>
    current_temperature_bed_isr = analog2tempBed(current_temperature_bed_raw);
   26dc0:	60 90 09 06 	lds	r6, 0x0609	; 0x800609 <current_temperature_bed_raw>
   26dc4:	70 90 0a 06 	lds	r7, 0x060A	; 0x80060a <current_temperature_bed_raw+0x1>
   26dc8:	c3 01       	movw	r24, r6
   26dca:	0f 94 c2 35 	call	0x26b84	; 0x26b84 <analog2tempBed(int) [clone .lto_priv.431]>
   26dce:	6b 01       	movw	r12, r22
   26dd0:	7c 01       	movw	r14, r24
   26dd2:	c0 92 19 06 	sts	0x0619, r12	; 0x800619 <current_temperature_bed_isr>
   26dd6:	d0 92 1a 06 	sts	0x061A, r13	; 0x80061a <current_temperature_bed_isr+0x1>
   26dda:	e0 92 1b 06 	sts	0x061B, r14	; 0x80061b <current_temperature_bed_isr+0x2>
   26dde:	f0 92 1c 06 	sts	0x061C, r15	; 0x80061c <current_temperature_bed_isr+0x3>
#ifdef PINDA_THERMISTOR
    current_temperature_pinda_isr = analog2tempBed(current_temperature_raw_pinda);
   26de2:	80 91 07 06 	lds	r24, 0x0607	; 0x800607 <current_temperature_raw_pinda>
   26de6:	90 91 08 06 	lds	r25, 0x0608	; 0x800608 <current_temperature_raw_pinda+0x1>
   26dea:	0f 94 c2 35 	call	0x26b84	; 0x26b84 <analog2tempBed(int) [clone .lto_priv.431]>
   26dee:	60 93 03 06 	sts	0x0603, r22	; 0x800603 <current_temperature_pinda_isr>
   26df2:	70 93 04 06 	sts	0x0604, r23	; 0x800604 <current_temperature_pinda_isr+0x1>
   26df6:	80 93 05 06 	sts	0x0605, r24	; 0x800605 <current_temperature_pinda_isr+0x2>
   26dfa:	90 93 06 06 	sts	0x0606, r25	; 0x800606 <current_temperature_pinda_isr+0x3>
#endif
#ifdef AMBIENT_THERMISTOR
    current_temperature_ambient_isr = analog2tempAmbient(current_temperature_raw_ambient); //thermistor for ambient is NTCG104LH104JT1 (2000)
   26dfe:	c0 91 15 06 	lds	r28, 0x0615	; 0x800615 <current_temperature_raw_ambient>
   26e02:	d0 91 16 06 	lds	r29, 0x0616	; 0x800616 <current_temperature_raw_ambient+0x1>
   26e06:	ce 01       	movw	r24, r28
   26e08:	0f 94 2d 35 	call	0x26a5a	; 0x26a5a <analog2tempAmbient(int) [clone .lto_priv.430]>
   26e0c:	60 93 20 06 	sts	0x0620, r22	; 0x800620 <current_temperature_ambient_isr>
   26e10:	70 93 21 06 	sts	0x0621, r23	; 0x800621 <current_temperature_ambient_isr+0x1>
   26e14:	80 93 22 06 	sts	0x0622, r24	; 0x800622 <current_temperature_ambient_isr+0x2>
   26e18:	90 93 23 06 	sts	0x0623, r25	; 0x800623 <current_temperature_ambient_isr+0x3>
#endif
    temp_meas_ready = true;
   26e1c:	81 e0       	ldi	r24, 0x01	; 1
   26e1e:	80 93 02 06 	sts	0x0602, r24	; 0x800602 <temp_meas_ready>
{
    // update *_isr temperatures from raw values for PID regulation
    setIsrTemperaturesFromRawValues();

    // clear the error assertion flag before checking again
    temp_error_state.assert = false;
   26e22:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   26e26:	8d 7f       	andi	r24, 0xFD	; 253
   26e28:	80 93 1b 05 	sts	0x051B, r24	; 0x80051b <_ZL16temp_error_state.lto_priv.456>

void check_max_temp_raw()
{
    //heater
#if HEATER_0_RAW_LO_TEMP > HEATER_0_RAW_HI_TEMP
    if (current_temperature_raw[0] <= maxttemp_raw[0]) {
   26e2c:	20 91 0b 06 	lds	r18, 0x060B	; 0x80060b <current_temperature_raw>
   26e30:	30 91 0c 06 	lds	r19, 0x060C	; 0x80060c <current_temperature_raw+0x1>
   26e34:	80 91 a1 04 	lds	r24, 0x04A1	; 0x8004a1 <_ZL12maxttemp_raw.lto_priv.465>
   26e38:	90 91 a2 04 	lds	r25, 0x04A2	; 0x8004a2 <_ZL12maxttemp_raw.lto_priv.465+0x1>
   26e3c:	82 17       	cp	r24, r18
   26e3e:	93 07       	cpc	r25, r19
   26e40:	2c f0       	brlt	.+10     	; 0x26e4c <temp_mgr_isr() [clone .lto_priv.422]+0xc2>
#else
    if (current_temperature_raw[0] >= maxttemp_raw[0]) {
#endif
        set_temp_error(TempErrorSource::hotend, 0, TempErrorType::max);
   26e42:	40 e0       	ldi	r20, 0x00	; 0
   26e44:	60 e0       	ldi	r22, 0x00	; 0
   26e46:	80 e0       	ldi	r24, 0x00	; 0
   26e48:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
    }
    //bed
#if defined(BED_MAXTEMP) && (TEMP_SENSOR_BED != 0)
#if HEATER_BED_RAW_LO_TEMP > HEATER_BED_RAW_HI_TEMP
    if (current_temperature_bed_raw <= bed_maxttemp_raw) {
   26e4c:	80 91 9f 04 	lds	r24, 0x049F	; 0x80049f <_ZL16bed_maxttemp_raw.lto_priv.466>
   26e50:	90 91 a0 04 	lds	r25, 0x04A0	; 0x8004a0 <_ZL16bed_maxttemp_raw.lto_priv.466+0x1>
   26e54:	86 15       	cp	r24, r6
   26e56:	97 05       	cpc	r25, r7
   26e58:	2c f0       	brlt	.+10     	; 0x26e64 <temp_mgr_isr() [clone .lto_priv.422]+0xda>
#else
    if (current_temperature_bed_raw >= bed_maxttemp_raw) {
#endif
        set_temp_error(TempErrorSource::bed, 0, TempErrorType::max);
   26e5a:	40 e0       	ldi	r20, 0x00	; 0
   26e5c:	60 e0       	ldi	r22, 0x00	; 0
   26e5e:	81 e0       	ldi	r24, 0x01	; 1
   26e60:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
    }
#endif
    //ambient
#if defined(AMBIENT_MAXTEMP) && (TEMP_SENSOR_AMBIENT != 0)
#if AMBIENT_RAW_LO_TEMP > AMBIENT_RAW_HI_TEMP
    if (current_temperature_raw_ambient <= ambient_maxttemp_raw) {
   26e64:	80 91 9d 04 	lds	r24, 0x049D	; 0x80049d <_ZL20ambient_maxttemp_raw.lto_priv.467>
   26e68:	90 91 9e 04 	lds	r25, 0x049E	; 0x80049e <_ZL20ambient_maxttemp_raw.lto_priv.467+0x1>
   26e6c:	8c 17       	cp	r24, r28
   26e6e:	9d 07       	cpc	r25, r29
   26e70:	2c f0       	brlt	.+10     	; 0x26e7c <temp_mgr_isr() [clone .lto_priv.422]+0xf2>
#else
    if (current_temperature_raw_ambient >= ambient_maxttemp_raw) {
#endif
        set_temp_error(TempErrorSource::ambient, 0, TempErrorType::max);
   26e72:	40 e0       	ldi	r20, 0x00	; 0
   26e74:	60 e0       	ldi	r22, 0x00	; 0
   26e76:	82 e0       	ldi	r24, 0x02	; 2
   26e78:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>

#ifdef AMBIENT_MINTEMP
void check_min_temp_ambient()
{
#if AMBIENT_RAW_LO_TEMP > AMBIENT_RAW_HI_TEMP
	if (current_temperature_raw_ambient >= ambient_minttemp_raw) {
   26e7c:	80 91 50 02 	lds	r24, 0x0250	; 0x800250 <_ZL20ambient_minttemp_raw.lto_priv.464>
   26e80:	90 91 51 02 	lds	r25, 0x0251	; 0x800251 <_ZL20ambient_minttemp_raw.lto_priv.464+0x1>
   26e84:	c8 17       	cp	r28, r24
   26e86:	d9 07       	cpc	r29, r25
   26e88:	2c f0       	brlt	.+10     	; 0x26e94 <temp_mgr_isr() [clone .lto_priv.422]+0x10a>
#else
	if (current_temperature_raw_ambient <= ambient_minttemp_raw) {
#endif
        set_temp_error(TempErrorSource::ambient, 0, TempErrorType::min);
   26e8a:	41 e0       	ldi	r20, 0x01	; 1
   26e8c:	60 e0       	ldi	r22, 0x00	; 0
   26e8e:	82 e0       	ldi	r24, 0x02	; 2
   26e90:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>
#ifdef AMBIENT_MINTEMP
    // we need to check ambient temperature
    check_min_temp_ambient();
#endif
#if AMBIENT_RAW_LO_TEMP > AMBIENT_RAW_HI_TEMP
    if(current_temperature_raw_ambient>(OVERSAMPLENR*MINTEMP_MINAMBIENT_RAW)) // thermistor is NTC type
   26e94:	c1 3a       	cpi	r28, 0xA1	; 161
   26e96:	de 43       	sbci	r29, 0x3E	; 62
   26e98:	0c f4       	brge	.+2      	; 0x26e9c <temp_mgr_isr() [clone .lto_priv.422]+0x112>
   26e9a:	cd c1       	rjmp	.+922    	; 0x27236 <temp_mgr_isr() [clone .lto_priv.422]+0x4ac>
    {
        // ambient temperature is low
#endif //AMBIENT_THERMISTOR
        // *** 'common' part of code for MK2.5 & MK3
        // * nozzle checking
        if(target_temperature_isr[active_extruder]>minttemp[active_extruder]) {
   26e9c:	60 91 a3 04 	lds	r22, 0x04A3	; 0x8004a3 <_ZL8minttemp.lto_priv.463>
   26ea0:	70 91 a4 04 	lds	r23, 0x04A4	; 0x8004a4 <_ZL8minttemp.lto_priv.463+0x1>
   26ea4:	80 91 1e 06 	lds	r24, 0x061E	; 0x80061e <target_temperature_isr>
   26ea8:	90 91 1f 06 	lds	r25, 0x061F	; 0x80061f <target_temperature_isr+0x1>
   26eac:	68 17       	cp	r22, r24
   26eae:	79 07       	cpc	r23, r25
   26eb0:	0c f0       	brlt	.+2      	; 0x26eb4 <temp_mgr_isr() [clone .lto_priv.422]+0x12a>
   26eb2:	55 c0       	rjmp	.+170    	; 0x26f5e <temp_mgr_isr() [clone .lto_priv.422]+0x1d4>
            // ~ nozzle heating is on
            bCheckingOnHeater=bCheckingOnHeater||(current_temperature_isr[active_extruder]>(minttemp[active_extruder]+TEMP_HYSTERESIS)); // for eventually delay cutting
   26eb4:	c0 91 14 06 	lds	r28, 0x0614	; 0x800614 <check_min_temp_raw()::bCheckingOnHeater>
   26eb8:	c1 11       	cpse	r28, r1
   26eba:	18 c0       	rjmp	.+48     	; 0x26eec <temp_mgr_isr() [clone .lto_priv.422]+0x162>
   26ebc:	6b 5f       	subi	r22, 0xFB	; 251
   26ebe:	7f 4f       	sbci	r23, 0xFF	; 255
   26ec0:	07 2e       	mov	r0, r23
   26ec2:	00 0c       	add	r0, r0
   26ec4:	88 0b       	sbc	r24, r24
   26ec6:	99 0b       	sbc	r25, r25
   26ec8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26ecc:	9b 01       	movw	r18, r22
   26ece:	ac 01       	movw	r20, r24
   26ed0:	c1 e0       	ldi	r28, 0x01	; 1
   26ed2:	60 91 17 05 	lds	r22, 0x0517	; 0x800517 <current_temperature_isr>
   26ed6:	70 91 18 05 	lds	r23, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   26eda:	80 91 19 05 	lds	r24, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   26ede:	90 91 1a 05 	lds	r25, 0x051A	; 0x80051a <current_temperature_isr+0x3>
   26ee2:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26ee6:	18 16       	cp	r1, r24
   26ee8:	0c f0       	brlt	.+2      	; 0x26eec <temp_mgr_isr() [clone .lto_priv.422]+0x162>
   26eea:	c0 e0       	ldi	r28, 0x00	; 0
   26eec:	c0 93 14 06 	sts	0x0614, r28	; 0x800614 <check_min_temp_raw()::bCheckingOnHeater>
            if(oTimer4minTempHeater.expired_cont(HEATER_MINTEMP_DELAY) || bCheckingOnHeater) {
   26ef0:	68 e9       	ldi	r22, 0x98	; 152
   26ef2:	7a e3       	ldi	r23, 0x3A	; 58
   26ef4:	81 e1       	ldi	r24, 0x11	; 17
   26ef6:	96 e0       	ldi	r25, 0x06	; 6
   26ef8:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   26efc:	81 11       	cpse	r24, r1
   26efe:	02 c0       	rjmp	.+4      	; 0x26f04 <temp_mgr_isr() [clone .lto_priv.422]+0x17a>
   26f00:	cc 23       	and	r28, r28
   26f02:	29 f0       	breq	.+10     	; 0x26f0e <temp_mgr_isr() [clone .lto_priv.422]+0x184>
                bCheckingOnHeater=true;   // not necessary
   26f04:	81 e0       	ldi	r24, 0x01	; 1
   26f06:	80 93 14 06 	sts	0x0614, r24	; 0x800614 <check_min_temp_raw()::bCheckingOnHeater>
                check_min_temp_heater0(); // delay is elapsed or temperature is/was over minTemp => periodical checking is active
   26f0a:	0f 94 b4 30 	call	0x26168	; 0x26168 <check_min_temp_heater0()>
            // ~ nozzle heating is off
            oTimer4minTempHeater.start();
            bCheckingOnHeater=false;
        }
        // * bed checking
        if(target_temperature_bed_isr>BED_MINTEMP) {
   26f0e:	80 91 17 06 	lds	r24, 0x0617	; 0x800617 <target_temperature_bed_isr>
   26f12:	90 91 18 06 	lds	r25, 0x0618	; 0x800618 <target_temperature_bed_isr+0x1>
   26f16:	0b 97       	sbiw	r24, 0x0b	; 11
   26f18:	4c f1       	brlt	.+82     	; 0x26f6c <temp_mgr_isr() [clone .lto_priv.422]+0x1e2>
            // ~ bed heating is on
            bCheckingOnBed=bCheckingOnBed||(current_temperature_bed_isr>(BED_MINTEMP+TEMP_HYSTERESIS)); // for eventually delay cutting
   26f1a:	c0 91 10 06 	lds	r28, 0x0610	; 0x800610 <check_min_temp_raw()::bCheckingOnBed>
   26f1e:	c1 11       	cpse	r28, r1
   26f20:	0c c0       	rjmp	.+24     	; 0x26f3a <temp_mgr_isr() [clone .lto_priv.422]+0x1b0>
   26f22:	c1 e0       	ldi	r28, 0x01	; 1
   26f24:	20 e0       	ldi	r18, 0x00	; 0
   26f26:	30 e0       	ldi	r19, 0x00	; 0
   26f28:	40 e7       	ldi	r20, 0x70	; 112
   26f2a:	51 e4       	ldi	r21, 0x41	; 65
   26f2c:	c7 01       	movw	r24, r14
   26f2e:	b6 01       	movw	r22, r12
   26f30:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   26f34:	18 16       	cp	r1, r24
   26f36:	0c f0       	brlt	.+2      	; 0x26f3a <temp_mgr_isr() [clone .lto_priv.422]+0x1b0>
   26f38:	c0 e0       	ldi	r28, 0x00	; 0
   26f3a:	c0 93 10 06 	sts	0x0610, r28	; 0x800610 <check_min_temp_raw()::bCheckingOnBed>
            if(oTimer4minTempBed.expired_cont(BED_MINTEMP_DELAY) || bCheckingOnBed) {
   26f3e:	60 e5       	ldi	r22, 0x50	; 80
   26f40:	73 ec       	ldi	r23, 0xC3	; 195
   26f42:	8d e0       	ldi	r24, 0x0D	; 13
   26f44:	96 e0       	ldi	r25, 0x06	; 6
   26f46:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   26f4a:	81 11       	cpse	r24, r1
   26f4c:	02 c0       	rjmp	.+4      	; 0x26f52 <temp_mgr_isr() [clone .lto_priv.422]+0x1c8>
   26f4e:	cc 23       	and	r28, r28
   26f50:	99 f0       	breq	.+38     	; 0x26f78 <temp_mgr_isr() [clone .lto_priv.422]+0x1ee>
                bCheckingOnBed=true;  // not necessary
   26f52:	81 e0       	ldi	r24, 0x01	; 1
   26f54:	80 93 10 06 	sts	0x0610, r24	; 0x800610 <check_min_temp_raw()::bCheckingOnBed>
#ifdef AMBIENT_THERMISTOR
    }
    else {
        // ambient temperature is standard
        check_min_temp_heater0();
        check_min_temp_bed();
   26f58:	0f 94 a3 30 	call	0x26146	; 0x26146 <check_min_temp_bed()>
   26f5c:	0d c0       	rjmp	.+26     	; 0x26f78 <temp_mgr_isr() [clone .lto_priv.422]+0x1ee>
                check_min_temp_heater0(); // delay is elapsed or temperature is/was over minTemp => periodical checking is active
            }
        }
        else {
            // ~ nozzle heating is off
            oTimer4minTempHeater.start();
   26f5e:	81 e1       	ldi	r24, 0x11	; 17
   26f60:	96 e0       	ldi	r25, 0x06	; 6
   26f62:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
            bCheckingOnHeater=false;
   26f66:	10 92 14 06 	sts	0x0614, r1	; 0x800614 <check_min_temp_raw()::bCheckingOnHeater>
   26f6a:	d1 cf       	rjmp	.-94     	; 0x26f0e <temp_mgr_isr() [clone .lto_priv.422]+0x184>
                check_min_temp_bed(); // delay is elapsed or temperature is/was over minTemp => periodical checking is active
            }
        }
        else {
            // ~ bed heating is off
            oTimer4minTempBed.start();
   26f6c:	8d e0       	ldi	r24, 0x0D	; 13
   26f6e:	96 e0       	ldi	r25, 0x06	; 6
   26f70:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
            bCheckingOnBed=false;
   26f74:	10 92 10 06 	sts	0x0610, r1	; 0x800610 <check_min_temp_raw()::bCheckingOnBed>

static void check_temp_runaway()
{
#ifdef TEMP_RUNAWAY_EXTRUDER_HYSTERESIS
    for(uint8_t e = 0; e < EXTRUDERS; e++)
        temp_runaway_check(e+1, target_temperature_isr[e], current_temperature_isr[e], soft_pwm[e], false);
   26f78:	60 91 16 05 	lds	r22, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   26f7c:	70 e0       	ldi	r23, 0x00	; 0
   26f7e:	90 e0       	ldi	r25, 0x00	; 0
   26f80:	80 e0       	ldi	r24, 0x00	; 0
   26f82:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   26f86:	6b 01       	movw	r12, r22
   26f88:	7c 01       	movw	r14, r24
   26f8a:	40 90 17 05 	lds	r4, 0x0517	; 0x800517 <current_temperature_isr>
   26f8e:	50 90 18 05 	lds	r5, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   26f92:	60 90 19 05 	lds	r6, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   26f96:	70 90 1a 05 	lds	r7, 0x051A	; 0x80051a <current_temperature_isr+0x3>
   26f9a:	60 91 1e 06 	lds	r22, 0x061E	; 0x80061e <target_temperature_isr>
   26f9e:	70 91 1f 06 	lds	r23, 0x061F	; 0x80061f <target_temperature_isr+0x1>
   26fa2:	07 2e       	mov	r0, r23
   26fa4:	00 0c       	add	r0, r0
   26fa6:	88 0b       	sbc	r24, r24
   26fa8:	99 0b       	sbc	r25, r25
   26faa:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26fae:	ab 01       	movw	r20, r22
   26fb0:	bc 01       	movw	r22, r24
   26fb2:	a1 2c       	mov	r10, r1
   26fb4:	93 01       	movw	r18, r6
   26fb6:	82 01       	movw	r16, r4
   26fb8:	81 e0       	ldi	r24, 0x01	; 1
   26fba:	0f 94 c5 30 	call	0x2618a	; 0x2618a <temp_runaway_check(unsigned char, float, float, float, bool)>
#endif
#ifdef TEMP_RUNAWAY_BED_HYSTERESIS
    temp_runaway_check(0, target_temperature_bed_isr, current_temperature_bed_isr, soft_pwm_bed, true);
   26fbe:	60 91 1d 06 	lds	r22, 0x061D	; 0x80061d <soft_pwm_bed>
   26fc2:	70 e0       	ldi	r23, 0x00	; 0
   26fc4:	90 e0       	ldi	r25, 0x00	; 0
   26fc6:	80 e0       	ldi	r24, 0x00	; 0
   26fc8:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   26fcc:	6b 01       	movw	r12, r22
   26fce:	7c 01       	movw	r14, r24
   26fd0:	40 90 19 06 	lds	r4, 0x0619	; 0x800619 <current_temperature_bed_isr>
   26fd4:	50 90 1a 06 	lds	r5, 0x061A	; 0x80061a <current_temperature_bed_isr+0x1>
   26fd8:	60 90 1b 06 	lds	r6, 0x061B	; 0x80061b <current_temperature_bed_isr+0x2>
   26fdc:	70 90 1c 06 	lds	r7, 0x061C	; 0x80061c <current_temperature_bed_isr+0x3>
   26fe0:	60 91 17 06 	lds	r22, 0x0617	; 0x800617 <target_temperature_bed_isr>
   26fe4:	70 91 18 06 	lds	r23, 0x0618	; 0x800618 <target_temperature_bed_isr+0x1>
   26fe8:	07 2e       	mov	r0, r23
   26fea:	00 0c       	add	r0, r0
   26fec:	88 0b       	sbc	r24, r24
   26fee:	99 0b       	sbc	r25, r25
   26ff0:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   26ff4:	ab 01       	movw	r20, r22
   26ff6:	bc 01       	movw	r22, r24
   26ff8:	aa 24       	eor	r10, r10
   26ffa:	a3 94       	inc	r10
   26ffc:	93 01       	movw	r18, r6
   26ffe:	82 01       	movw	r16, r4
   27000:	80 e0       	ldi	r24, 0x00	; 0
   27002:	0f 94 c5 30 	call	0x2618a	; 0x2618a <temp_runaway_check(unsigned char, float, float, float, bool)>
    return true;
}

static void check()
{
    if(!enabled) return;
   27006:	80 91 1d 05 	lds	r24, 0x051D	; 0x80051d <_ZN13thermal_modelL7enabledE.lto_priv.458>
   2700a:	88 23       	and	r24, r24
   2700c:	09 f4       	brne	.+2      	; 0x27010 <temp_mgr_isr() [clone .lto_priv.422]+0x286>
   2700e:	bc c0       	rjmp	.+376    	; 0x27188 <temp_mgr_isr() [clone .lto_priv.422]+0x3fe>

    uint8_t heater_pwm = soft_pwm[0];
   27010:	c0 91 16 05 	lds	r28, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
    uint8_t fan_pwm = soft_pwm_fan;
   27014:	d0 91 a5 04 	lds	r29, 0x04A5	; 0x8004a5 <_ZL12soft_pwm_fan.lto_priv.462>
    float heater_temp = current_temperature_isr[0];
   27018:	40 90 17 05 	lds	r4, 0x0517	; 0x800517 <current_temperature_isr>
   2701c:	50 90 18 05 	lds	r5, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   27020:	60 90 19 05 	lds	r6, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   27024:	70 90 1a 05 	lds	r7, 0x051A	; 0x80051a <current_temperature_isr+0x3>
    float ambient_temp = current_temperature_ambient_isr;
   27028:	c0 90 20 06 	lds	r12, 0x0620	; 0x800620 <current_temperature_ambient_isr>
   2702c:	d0 90 21 06 	lds	r13, 0x0621	; 0x800621 <current_temperature_ambient_isr+0x1>
   27030:	e0 90 22 06 	lds	r14, 0x0622	; 0x800622 <current_temperature_ambient_isr+0x2>
   27034:	f0 90 23 06 	lds	r15, 0x0623	; 0x800623 <current_temperature_ambient_isr+0x3>

    // check if a reset is required to seed the model: this needs to be done with valid
    // ADC values, so we can't do that directly in init()
    if(data.flag_bits.uninitialized)
   27038:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   2703c:	80 ff       	sbrs	r24, 0
   2703e:	72 c0       	rjmp	.+228    	; 0x27124 <temp_mgr_isr() [clone .lto_priv.422]+0x39a>

void model_data::reset(uint8_t heater_pwm _UNUSED, uint8_t fan_pwm _UNUSED,
    float heater_temp _UNUSED, float ambient_temp _UNUSED)
{
    // pre-compute invariant values
    C_i = (TEMP_MGR_INTV / C);
   27040:	20 91 e6 12 	lds	r18, 0x12E6	; 0x8012e6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x36>
   27044:	30 91 e7 12 	lds	r19, 0x12E7	; 0x8012e7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x37>
   27048:	40 91 e8 12 	lds	r20, 0x12E8	; 0x8012e8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x38>
   2704c:	50 91 e9 12 	lds	r21, 0x12E9	; 0x8012e9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x39>
   27050:	61 e7       	ldi	r22, 0x71	; 113
   27052:	7d e3       	ldi	r23, 0x3D	; 61
   27054:	8a e8       	ldi	r24, 0x8A	; 138
   27056:	9e e3       	ldi	r25, 0x3E	; 62
   27058:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2705c:	60 93 3d 13 	sts	0x133D, r22	; 0x80133d <_ZN13thermal_modelL4dataE.lto_priv.402+0x8d>
   27060:	70 93 3e 13 	sts	0x133E, r23	; 0x80133e <_ZN13thermal_modelL4dataE.lto_priv.402+0x8e>
   27064:	80 93 3f 13 	sts	0x133F, r24	; 0x80133f <_ZN13thermal_modelL4dataE.lto_priv.402+0x8f>
   27068:	90 93 40 13 	sts	0x1340, r25	; 0x801340 <_ZN13thermal_modelL4dataE.lto_priv.402+0x90>
    warn_s = warn * TEMP_MGR_INTV;
   2706c:	21 e7       	ldi	r18, 0x71	; 113
   2706e:	3d e3       	ldi	r19, 0x3D	; 61
   27070:	4a e8       	ldi	r20, 0x8A	; 138
   27072:	5e e3       	ldi	r21, 0x3E	; 62
   27074:	60 91 34 13 	lds	r22, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   27078:	70 91 35 13 	lds	r23, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   2707c:	80 91 36 13 	lds	r24, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   27080:	90 91 37 13 	lds	r25, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
   27084:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27088:	60 93 41 13 	sts	0x1341, r22	; 0x801341 <_ZN13thermal_modelL4dataE.lto_priv.402+0x91>
   2708c:	70 93 42 13 	sts	0x1342, r23	; 0x801342 <_ZN13thermal_modelL4dataE.lto_priv.402+0x92>
   27090:	80 93 43 13 	sts	0x1343, r24	; 0x801343 <_ZN13thermal_modelL4dataE.lto_priv.402+0x93>
   27094:	90 93 44 13 	sts	0x1344, r25	; 0x801344 <_ZN13thermal_modelL4dataE.lto_priv.402+0x94>
    err_s = err * TEMP_MGR_INTV;
   27098:	21 e7       	ldi	r18, 0x71	; 113
   2709a:	3d e3       	ldi	r19, 0x3D	; 61
   2709c:	4a e8       	ldi	r20, 0x8A	; 138
   2709e:	5e e3       	ldi	r21, 0x3E	; 62
   270a0:	60 91 38 13 	lds	r22, 0x1338	; 0x801338 <_ZN13thermal_modelL4dataE.lto_priv.402+0x88>
   270a4:	70 91 39 13 	lds	r23, 0x1339	; 0x801339 <_ZN13thermal_modelL4dataE.lto_priv.402+0x89>
   270a8:	80 91 3a 13 	lds	r24, 0x133A	; 0x80133a <_ZN13thermal_modelL4dataE.lto_priv.402+0x8a>
   270ac:	90 91 3b 13 	lds	r25, 0x133B	; 0x80133b <_ZN13thermal_modelL4dataE.lto_priv.402+0x8b>
   270b0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   270b4:	60 93 45 13 	sts	0x1345, r22	; 0x801345 <_ZN13thermal_modelL4dataE.lto_priv.402+0x95>
   270b8:	70 93 46 13 	sts	0x1346, r23	; 0x801346 <_ZN13thermal_modelL4dataE.lto_priv.402+0x96>
   270bc:	80 93 47 13 	sts	0x1347, r24	; 0x801347 <_ZN13thermal_modelL4dataE.lto_priv.402+0x97>
   270c0:	90 93 48 13 	sts	0x1348, r25	; 0x801348 <_ZN13thermal_modelL4dataE.lto_priv.402+0x98>
    dT_lag_size = L / (uint16_t)(TEMP_MGR_INTV * 1000);
   270c4:	80 91 ee 12 	lds	r24, 0x12EE	; 0x8012ee <_ZN13thermal_modelL4dataE.lto_priv.402+0x3e>
   270c8:	90 91 ef 12 	lds	r25, 0x12EF	; 0x8012ef <_ZN13thermal_modelL4dataE.lto_priv.402+0x3f>
   270cc:	6e e0       	ldi	r22, 0x0E	; 14
   270ce:	71 e0       	ldi	r23, 0x01	; 1
   270d0:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   270d4:	60 93 d0 12 	sts	0x12D0, r22	; 0x8012d0 <_ZN13thermal_modelL4dataE.lto_priv.402+0x20>
   270d8:	e0 eb       	ldi	r30, 0xB0	; 176
   270da:	f2 e1       	ldi	r31, 0x12	; 18
   270dc:	80 ed       	ldi	r24, 0xD0	; 208
   270de:	92 e1       	ldi	r25, 0x12	; 18

    // initial values
    for(uint8_t i = 0; i != THERMAL_MODEL_MAX_LAG_SIZE; ++i)
        dT_lag_buf[i] = NAN;
   270e0:	40 e0       	ldi	r20, 0x00	; 0
   270e2:	50 e0       	ldi	r21, 0x00	; 0
   270e4:	60 ec       	ldi	r22, 0xC0	; 192
   270e6:	7f e7       	ldi	r23, 0x7F	; 127
   270e8:	41 93       	st	Z+, r20
   270ea:	51 93       	st	Z+, r21
   270ec:	61 93       	st	Z+, r22
   270ee:	71 93       	st	Z+, r23
    warn_s = warn * TEMP_MGR_INTV;
    err_s = err * TEMP_MGR_INTV;
    dT_lag_size = L / (uint16_t)(TEMP_MGR_INTV * 1000);

    // initial values
    for(uint8_t i = 0; i != THERMAL_MODEL_MAX_LAG_SIZE; ++i)
   270f0:	8e 17       	cp	r24, r30
   270f2:	9f 07       	cpc	r25, r31
   270f4:	c9 f7       	brne	.-14     	; 0x270e8 <temp_mgr_isr() [clone .lto_priv.422]+0x35e>
        dT_lag_buf[i] = NAN;
    dT_lag_idx = 0;
   270f6:	10 92 d1 12 	sts	0x12D1, r1	; 0x8012d1 <_ZN13thermal_modelL4dataE.lto_priv.402+0x21>
    dT_err_prev = 0;
   270fa:	10 92 d2 12 	sts	0x12D2, r1	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   270fe:	10 92 d3 12 	sts	0x12D3, r1	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   27102:	10 92 d4 12 	sts	0x12D4, r1	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   27106:	10 92 d5 12 	sts	0x12D5, r1	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>
    T_prev = NAN;
   2710a:	40 93 d6 12 	sts	0x12D6, r20	; 0x8012d6 <_ZN13thermal_modelL4dataE.lto_priv.402+0x26>
   2710e:	50 93 d7 12 	sts	0x12D7, r21	; 0x8012d7 <_ZN13thermal_modelL4dataE.lto_priv.402+0x27>
   27112:	60 93 d8 12 	sts	0x12D8, r22	; 0x8012d8 <_ZN13thermal_modelL4dataE.lto_priv.402+0x28>
   27116:	70 93 d9 12 	sts	0x12D9, r23	; 0x8012d9 <_ZN13thermal_modelL4dataE.lto_priv.402+0x29>

    // clear the initialization flag
    flag_bits.uninitialized = false;
   2711a:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   2711e:	8e 7f       	andi	r24, 0xFE	; 254
   27120:	80 93 3c 13 	sts	0x133C, r24	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
    // ADC values, so we can't do that directly in init()
    if(data.flag_bits.uninitialized)
        data.reset(heater_pwm, fan_pwm, heater_temp, ambient_temp);

    // step the model
    data.step(heater_pwm, fan_pwm, heater_temp, ambient_temp);
   27124:	87 01       	movw	r16, r14
   27126:	76 01       	movw	r14, r12
   27128:	a3 01       	movw	r20, r6
   2712a:	92 01       	movw	r18, r4
   2712c:	6d 2f       	mov	r22, r29
   2712e:	8c 2f       	mov	r24, r28
   27130:	0e 94 18 e6 	call	0x1cc30	; 0x1cc30 <thermal_model::model_data::step(unsigned char, unsigned char, float, float) [clone .constprop.42]>

    // handle errors
    if(data.flag_bits.error)
   27134:	80 91 3c 13 	lds	r24, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   27138:	81 ff       	sbrs	r24, 1
   2713a:	05 c0       	rjmp	.+10     	; 0x27146 <temp_mgr_isr() [clone .lto_priv.422]+0x3bc>
        set_temp_error(TempErrorSource::hotend, 0, TempErrorType::model);
   2713c:	44 e0       	ldi	r20, 0x04	; 4
   2713e:	60 e0       	ldi	r22, 0x00	; 0
   27140:	80 e0       	ldi	r24, 0x00	; 0
   27142:	0f 94 3f 30 	call	0x2607e	; 0x2607e <set_temp_error(TempErrorSource, unsigned char, TempErrorType)>

    // handle warning conditions as lower-priority but with greater feedback
    warning_state.assert = data.flag_bits.warning;
   27146:	90 91 3c 13 	lds	r25, 0x133C	; 0x80133c <_ZN13thermal_modelL4dataE.lto_priv.402+0x8c>
   2714a:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   2714e:	92 fb       	bst	r25, 2
   27150:	81 f9       	bld	r24, 1
   27152:	80 93 39 06 	sts	0x0639, r24	; 0x800639 <thermal_model::warning_state+0x4>
    if(warning_state.assert) {
   27156:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   2715a:	81 ff       	sbrs	r24, 1
   2715c:	15 c0       	rjmp	.+42     	; 0x27188 <temp_mgr_isr() [clone .lto_priv.422]+0x3fe>
        warning_state.warning = true;
   2715e:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   27162:	81 60       	ori	r24, 0x01	; 1
   27164:	80 93 39 06 	sts	0x0639, r24	; 0x800639 <thermal_model::warning_state+0x4>
        warning_state.dT_err = thermal_model::data.dT_err_prev;
   27168:	80 91 d2 12 	lds	r24, 0x12D2	; 0x8012d2 <_ZN13thermal_modelL4dataE.lto_priv.402+0x22>
   2716c:	90 91 d3 12 	lds	r25, 0x12D3	; 0x8012d3 <_ZN13thermal_modelL4dataE.lto_priv.402+0x23>
   27170:	a0 91 d4 12 	lds	r26, 0x12D4	; 0x8012d4 <_ZN13thermal_modelL4dataE.lto_priv.402+0x24>
   27174:	b0 91 d5 12 	lds	r27, 0x12D5	; 0x8012d5 <_ZN13thermal_modelL4dataE.lto_priv.402+0x25>
   27178:	80 93 35 06 	sts	0x0635, r24	; 0x800635 <thermal_model::warning_state>
   2717c:	90 93 36 06 	sts	0x0636, r25	; 0x800636 <thermal_model::warning_state+0x1>
   27180:	a0 93 37 06 	sts	0x0637, r26	; 0x800637 <thermal_model::warning_state+0x2>
   27184:	b0 93 38 06 	sts	0x0638, r27	; 0x800638 <thermal_model::warning_state+0x3>
        (int)cur_pwm, (unsigned long)cur_temp_b, (unsigned long)cur_amb_b);
}

static void log_isr()
{
    if(!log_buf.enabled) return;
   27188:	80 91 34 06 	lds	r24, 0x0634	; 0x800634 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x10>
   2718c:	88 23       	and	r24, r24
   2718e:	09 f4       	brne	.+2      	; 0x27192 <temp_mgr_isr() [clone .lto_priv.422]+0x408>
   27190:	3f c0       	rjmp	.+126    	; 0x27210 <temp_mgr_isr() [clone .lto_priv.422]+0x486>

    uint32_t stamp = _millis();
   27192:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
    uint8_t delta_ms = stamp - log_buf.entry.stamp - (uint32_t)(TEMP_MGR_INTV * 1000);
   27196:	c0 90 24 06 	lds	r12, 0x0624	; 0x800624 <_ZN13thermal_modelL7log_bufE.lto_priv.539>
   2719a:	d0 90 25 06 	lds	r13, 0x0625	; 0x800625 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x1>
   2719e:	e0 90 26 06 	lds	r14, 0x0626	; 0x800626 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x2>
   271a2:	f0 90 27 06 	lds	r15, 0x0627	; 0x800627 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x3>
    log_buf.entry.stamp = stamp;
   271a6:	60 93 24 06 	sts	0x0624, r22	; 0x800624 <_ZN13thermal_modelL7log_bufE.lto_priv.539>
   271aa:	70 93 25 06 	sts	0x0625, r23	; 0x800625 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x1>
   271ae:	80 93 26 06 	sts	0x0626, r24	; 0x800626 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x2>
   271b2:	90 93 27 06 	sts	0x0627, r25	; 0x800627 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x3>

    ++log_buf.entry.counter;
   271b6:	20 91 29 06 	lds	r18, 0x0629	; 0x800629 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x5>
   271ba:	2f 5f       	subi	r18, 0xFF	; 255
   271bc:	20 93 29 06 	sts	0x0629, r18	; 0x800629 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x5>
static void log_isr()
{
    if(!log_buf.enabled) return;

    uint32_t stamp = _millis();
    uint8_t delta_ms = stamp - log_buf.entry.stamp - (uint32_t)(TEMP_MGR_INTV * 1000);
   271c0:	6c 19       	sub	r22, r12
   271c2:	6e 50       	subi	r22, 0x0E	; 14
    log_buf.entry.stamp = stamp;

    ++log_buf.entry.counter;
    log_buf.entry.delta_ms = delta_ms;
   271c4:	60 93 28 06 	sts	0x0628, r22	; 0x800628 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x4>
    log_buf.entry.cur_pwm = soft_pwm[0];
   271c8:	80 91 16 05 	lds	r24, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   271cc:	80 93 2a 06 	sts	0x062A, r24	; 0x80062a <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x6>
    log_buf.entry.cur_temp = current_temperature_isr[0];
   271d0:	80 91 17 05 	lds	r24, 0x0517	; 0x800517 <current_temperature_isr>
   271d4:	90 91 18 05 	lds	r25, 0x0518	; 0x800518 <current_temperature_isr+0x1>
   271d8:	a0 91 19 05 	lds	r26, 0x0519	; 0x800519 <current_temperature_isr+0x2>
   271dc:	b0 91 1a 05 	lds	r27, 0x051A	; 0x80051a <current_temperature_isr+0x3>
   271e0:	80 93 2b 06 	sts	0x062B, r24	; 0x80062b <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x7>
   271e4:	90 93 2c 06 	sts	0x062C, r25	; 0x80062c <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x8>
   271e8:	a0 93 2d 06 	sts	0x062D, r26	; 0x80062d <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x9>
   271ec:	b0 93 2e 06 	sts	0x062E, r27	; 0x80062e <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xa>
    log_buf.entry.cur_amb = current_temperature_ambient_isr;
   271f0:	80 91 20 06 	lds	r24, 0x0620	; 0x800620 <current_temperature_ambient_isr>
   271f4:	90 91 21 06 	lds	r25, 0x0621	; 0x800621 <current_temperature_ambient_isr+0x1>
   271f8:	a0 91 22 06 	lds	r26, 0x0622	; 0x800622 <current_temperature_ambient_isr+0x2>
   271fc:	b0 91 23 06 	lds	r27, 0x0623	; 0x800623 <current_temperature_ambient_isr+0x3>
   27200:	80 93 2f 06 	sts	0x062F, r24	; 0x80062f <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xb>
   27204:	90 93 30 06 	sts	0x0630, r25	; 0x800630 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xc>
   27208:	a0 93 31 06 	sts	0x0631, r26	; 0x800631 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xd>
   2720c:	b0 93 32 06 	sts	0x0632, r27	; 0x800632 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xe>
    thermal_model::log_isr();
#endif
#endif

    // PID regulation
    if (pid_tuning_finished)
   27210:	80 91 3e 02 	lds	r24, 0x023E	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
   27214:	88 23       	and	r24, r24
   27216:	91 f0       	breq	.+36     	; 0x2723c <temp_mgr_isr() [clone .lto_priv.422]+0x4b2>
        temp_mgr_pid();
}
   27218:	df 91       	pop	r29
   2721a:	cf 91       	pop	r28
   2721c:	1f 91       	pop	r17
   2721e:	0f 91       	pop	r16
   27220:	ff 90       	pop	r15
   27222:	ef 90       	pop	r14
   27224:	df 90       	pop	r13
   27226:	cf 90       	pop	r12
   27228:	af 90       	pop	r10
   2722a:	7f 90       	pop	r7
   2722c:	6f 90       	pop	r6
   2722e:	5f 90       	pop	r5
   27230:	4f 90       	pop	r4
#endif
#endif

    // PID regulation
    if (pid_tuning_finished)
        temp_mgr_pid();
   27232:	0d 94 dc 11 	jmp	0x223b8	; 0x223b8 <temp_mgr_pid()>
        // *** end of 'common' part
#ifdef AMBIENT_THERMISTOR
    }
    else {
        // ambient temperature is standard
        check_min_temp_heater0();
   27236:	0f 94 b4 30 	call	0x26168	; 0x26168 <check_min_temp_heater0()>
   2723a:	8e ce       	rjmp	.-740    	; 0x26f58 <temp_mgr_isr() [clone .lto_priv.422]+0x1ce>
#endif

    // PID regulation
    if (pid_tuning_finished)
        temp_mgr_pid();
}
   2723c:	df 91       	pop	r29
   2723e:	cf 91       	pop	r28
   27240:	1f 91       	pop	r17
   27242:	0f 91       	pop	r16
   27244:	ff 90       	pop	r15
   27246:	ef 90       	pop	r14
   27248:	df 90       	pop	r13
   2724a:	cf 90       	pop	r12
   2724c:	af 90       	pop	r10
   2724e:	7f 90       	pop	r7
   27250:	6f 90       	pop	r6
   27252:	5f 90       	pop	r5
   27254:	4f 90       	pop	r4
   27256:	08 95       	ret

00027258 <__vector_47>:

ISR(TIMERx_COMPA_vect)
{
   27258:	1f 92       	push	r1
   2725a:	0f 92       	push	r0
   2725c:	0f b6       	in	r0, 0x3f	; 63
   2725e:	0f 92       	push	r0
   27260:	11 24       	eor	r1, r1
   27262:	0b b6       	in	r0, 0x3b	; 59
   27264:	0f 92       	push	r0
   27266:	2f 93       	push	r18
   27268:	3f 93       	push	r19
   2726a:	4f 93       	push	r20
   2726c:	5f 93       	push	r21
   2726e:	6f 93       	push	r22
   27270:	7f 93       	push	r23
   27272:	8f 93       	push	r24
   27274:	9f 93       	push	r25
   27276:	af 93       	push	r26
   27278:	bf 93       	push	r27
   2727a:	ef 93       	push	r30
   2727c:	ff 93       	push	r31
    // immediately schedule a new conversion
    if(adc_values_ready != true) return;
   2727e:	80 91 1c 05 	lds	r24, 0x051C	; 0x80051c <_ZL16adc_values_ready.lto_priv.459>
   27282:	88 23       	and	r24, r24
   27284:	91 f0       	breq	.+36     	; 0x272aa <__vector_47+0x52>
    adc_values_ready = false;
   27286:	10 92 1c 05 	sts	0x051C, r1	; 0x80051c <_ZL16adc_values_ready.lto_priv.459>
    adc_start_cycle();
   2728a:	0e 94 66 8d 	call	0x11acc	; 0x11acc <adc_start_cycle()>

    // run temperature management with interrupts enabled to reduce latency
    DISABLE_TEMP_MGR_INTERRUPT();
   2728e:	80 91 73 00 	lds	r24, 0x0073	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
   27292:	8d 7f       	andi	r24, 0xFD	; 253
   27294:	80 93 73 00 	sts	0x0073, r24	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>

#if !defined(__DOXYGEN__)
/* Internal helper functions. */
static __inline__ uint8_t __iSeiRetVal(void)
{
    sei();
   27298:	78 94       	sei
    NONATOMIC_BLOCK(NONATOMIC_FORCEOFF) {
        temp_mgr_isr();
   2729a:	0f 94 c5 36 	call	0x26d8a	; 0x26d8a <temp_mgr_isr() [clone .lto_priv.422]>
    (void)__s;
}

static __inline__ void __iCliParam(const uint8_t *__s)
{
    cli();
   2729e:	f8 94       	cli
    }
    ENABLE_TEMP_MGR_INTERRUPT();
   272a0:	80 91 73 00 	lds	r24, 0x0073	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
   272a4:	82 60       	ori	r24, 0x02	; 2
   272a6:	80 93 73 00 	sts	0x0073, r24	; 0x800073 <__TEXT_REGION_LENGTH__+0x7c2073>
}
   272aa:	ff 91       	pop	r31
   272ac:	ef 91       	pop	r30
   272ae:	bf 91       	pop	r27
   272b0:	af 91       	pop	r26
   272b2:	9f 91       	pop	r25
   272b4:	8f 91       	pop	r24
   272b6:	7f 91       	pop	r23
   272b8:	6f 91       	pop	r22
   272ba:	5f 91       	pop	r21
   272bc:	4f 91       	pop	r20
   272be:	3f 91       	pop	r19
   272c0:	2f 91       	pop	r18
   272c2:	0f 90       	pop	r0
   272c4:	0b be       	out	0x3b, r0	; 59
   272c6:	0f 90       	pop	r0
   272c8:	0f be       	out	0x3f, r0	; 63
   272ca:	0f 90       	pop	r0
   272cc:	1f 90       	pop	r1
   272ce:	18 95       	reti

000272d0 <manage_heater()>:
}

void handle_temp_error();

void manage_heater()
{
   272d0:	6f 92       	push	r6
   272d2:	7f 92       	push	r7
   272d4:	8f 92       	push	r8
   272d6:	9f 92       	push	r9
   272d8:	af 92       	push	r10
   272da:	bf 92       	push	r11
   272dc:	cf 92       	push	r12
   272de:	df 92       	push	r13
   272e0:	ef 92       	push	r14
   272e2:	ff 92       	push	r15
   272e4:	0f 93       	push	r16
   272e6:	1f 93       	push	r17
   272e8:	cf 93       	push	r28
   272ea:	df 93       	push	r29
   272ec:	1f 92       	push	r1
   272ee:	cd b7       	in	r28, 0x3d	; 61
   272f0:	de b7       	in	r29, 0x3e	; 62
#ifdef WATCHDOG
    wdt_reset();
   272f2:	a8 95       	wdr
#endif //WATCHDOG

    // limit execution to the same rate as temp_mgr (low-level fault handling is already handled -
    // any remaining error handling is just user-facing and can wait one extra cycle)
    if(!temp_meas_ready)
   272f4:	80 91 02 06 	lds	r24, 0x0602	; 0x800602 <temp_meas_ready>
   272f8:	88 23       	and	r24, r24
   272fa:	09 f4       	brne	.+2      	; 0x272fe <manage_heater()+0x2e>
   272fc:	bb c0       	rjmp	.+374    	; 0x27474 <manage_heater()+0x1a4>
        return;

    // syncronize temperatures with isr
    updateTemperatures();
   272fe:	0f 94 89 33 	call	0x26712	; 0x26712 <updateTemperatures()>

#ifdef THERMAL_MODEL
    // handle model warnings first, so not to override the error handler
    if(thermal_model::warning_state.warning)
   27302:	80 91 39 06 	lds	r24, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   27306:	80 ff       	sbrs	r24, 0
   27308:	51 c0       	rjmp	.+162    	; 0x273ac <manage_heater()+0xdc>
}

static void handle_warning()
{
    // update values
    float warn = data.warn;
   2730a:	10 91 34 13 	lds	r17, 0x1334	; 0x801334 <_ZN13thermal_modelL4dataE.lto_priv.402+0x84>
   2730e:	00 91 35 13 	lds	r16, 0x1335	; 0x801335 <_ZN13thermal_modelL4dataE.lto_priv.402+0x85>
   27312:	b0 90 36 13 	lds	r11, 0x1336	; 0x801336 <_ZN13thermal_modelL4dataE.lto_priv.402+0x86>
   27316:	a0 90 37 13 	lds	r10, 0x1337	; 0x801337 <_ZN13thermal_modelL4dataE.lto_priv.402+0x87>
    float dT_err;
    {
        TempMgrGuard temp_mgr_guard;
   2731a:	ce 01       	movw	r24, r28
   2731c:	01 96       	adiw	r24, 0x01	; 1
   2731e:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
        dT_err = warning_state.dT_err;
   27322:	c0 90 35 06 	lds	r12, 0x0635	; 0x800635 <thermal_model::warning_state>
   27326:	d0 90 36 06 	lds	r13, 0x0636	; 0x800636 <thermal_model::warning_state+0x1>
   2732a:	e0 90 37 06 	lds	r14, 0x0637	; 0x800637 <thermal_model::warning_state+0x2>
   2732e:	f0 90 38 06 	lds	r15, 0x0638	; 0x800638 <thermal_model::warning_state+0x3>
{
    // update values
    float warn = data.warn;
    float dT_err;
    {
        TempMgrGuard temp_mgr_guard;
   27332:	ce 01       	movw	r24, r28
   27334:	01 96       	adiw	r24, 0x01	; 1
   27336:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
        dT_err = warning_state.dT_err;
    }
    dT_err /= TEMP_MGR_INTV; // per-sample => K/s

    printf_P(PSTR("TM: error |%f|>%f\n"), (double)dT_err, (double)warn);
   2733a:	af 92       	push	r10
   2733c:	bf 92       	push	r11
   2733e:	0f 93       	push	r16
   27340:	1f 93       	push	r17
    float dT_err;
    {
        TempMgrGuard temp_mgr_guard;
        dT_err = warning_state.dT_err;
    }
    dT_err /= TEMP_MGR_INTV; // per-sample => K/s
   27342:	21 e7       	ldi	r18, 0x71	; 113
   27344:	3d e3       	ldi	r19, 0x3D	; 61
   27346:	4a e8       	ldi	r20, 0x8A	; 138
   27348:	5e e3       	ldi	r21, 0x3E	; 62
   2734a:	c7 01       	movw	r24, r14
   2734c:	b6 01       	movw	r22, r12
   2734e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>

    printf_P(PSTR("TM: error |%f|>%f\n"), (double)dT_err, (double)warn);
   27352:	9f 93       	push	r25
   27354:	8f 93       	push	r24
   27356:	7f 93       	push	r23
   27358:	6f 93       	push	r22
   2735a:	8e e1       	ldi	r24, 0x1E	; 30
   2735c:	9b e9       	ldi	r25, 0x9B	; 155
   2735e:	9f 93       	push	r25
   27360:	8f 93       	push	r24
   27362:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

    static bool first = true;
    if(warning_state.assert) {
   27366:	90 91 39 06 	lds	r25, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   2736a:	0f b6       	in	r0, 0x3f	; 63
   2736c:	f8 94       	cli
   2736e:	de bf       	out	0x3e, r29	; 62
   27370:	0f be       	out	0x3f, r0	; 63
   27372:	cd bf       	out	0x3d, r28	; 61
   27374:	80 91 3d 02 	lds	r24, 0x023D	; 0x80023d <_ZN13thermal_modelL9warn_beepE.lto_priv.457>
   27378:	91 ff       	sbrs	r25, 1
   2737a:	93 c0       	rjmp	.+294    	; 0x274a2 <manage_heater()+0x1d2>
        if (first) {
   2737c:	90 91 a3 02 	lds	r25, 0x02A3	; 0x8002a3 <thermal_model::handle_warning()::first>
   27380:	99 23       	and	r25, r25
   27382:	09 f4       	brne	.+2      	; 0x27386 <manage_heater()+0xb6>
   27384:	87 c0       	rjmp	.+270    	; 0x27494 <manage_heater()+0x1c4>
            if(warn_beep) {
   27386:	88 23       	and	r24, r24
   27388:	79 f0       	breq	.+30     	; 0x273a8 <manage_heater()+0xd8>
                lcd_setalertstatuspgm(_T(MSG_THERMAL_ANOMALY), LCD_STATUS_INFO);
   2738a:	8c ee       	ldi	r24, 0xEC	; 236
   2738c:	9c e4       	ldi	r25, 0x4C	; 76
   2738e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   27392:	61 e0       	ldi	r22, 0x01	; 1
   27394:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
                WRITE(BEEPER, HIGH);
   27398:	9f b7       	in	r25, 0x3f	; 63
   2739a:	f8 94       	cli
   2739c:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   273a0:	84 60       	ori	r24, 0x04	; 4
   273a2:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   273a6:	9f bf       	out	0x3f, r25	; 63
            }
            first = false;
   273a8:	10 92 a3 02 	sts	0x02A3, r1	; 0x8002a3 <thermal_model::handle_warning()::first>
    if(thermal_model::warning_state.warning)
        thermal_model::handle_warning();
#endif

    // handle temperature errors
    if(temp_error_state.v)
   273ac:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   273b0:	88 23       	and	r24, r24
   273b2:	89 f0       	breq	.+34     	; 0x273d6 <manage_heater()+0x106>
#endif

void handle_temp_error()
{
    // relay to the original handler
    switch((TempErrorType)temp_error_state.type) {
   273b4:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   273b8:	82 95       	swap	r24
   273ba:	86 95       	lsr	r24
   273bc:	87 70       	andi	r24, 0x07	; 7
   273be:	84 30       	cpi	r24, 0x04	; 4
   273c0:	08 f0       	brcs	.+2      	; 0x273c4 <manage_heater()+0xf4>
   273c2:	82 c0       	rjmp	.+260    	; 0x274c8 <manage_heater()+0x1f8>
   273c4:	82 30       	cpi	r24, 0x02	; 2
   273c6:	08 f0       	brcs	.+2      	; 0x273ca <manage_heater()+0xfa>
   273c8:	1d c1       	rjmp	.+570    	; 0x27604 <manage_heater()+0x334>
   273ca:	88 23       	and	r24, r24
   273cc:	09 f4       	brne	.+2      	; 0x273d0 <manage_heater()+0x100>
   273ce:	f4 c0       	rjmp	.+488    	; 0x275b8 <manage_heater()+0x2e8>
   273d0:	81 30       	cpi	r24, 0x01	; 1
   273d2:	09 f4       	brne	.+2      	; 0x273d6 <manage_heater()+0x106>
   273d4:	94 c0       	rjmp	.+296    	; 0x274fe <manage_heater()+0x22e>
    // handle temperature errors
    if(temp_error_state.v)
        handle_temp_error();

    // periodically check fans
    checkFans();
   273d6:	0e 94 89 7f 	call	0xff12	; 0xff12 <checkFans()>
}

#ifdef THERMAL_MODEL_DEBUG
static void log_usr()
{
    if(!log_buf.enabled) return;
   273da:	80 91 34 06 	lds	r24, 0x0634	; 0x800634 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x10>
   273de:	88 23       	and	r24, r24
   273e0:	09 f4       	brne	.+2      	; 0x273e4 <manage_heater()+0x114>
   273e2:	48 c0       	rjmp	.+144    	; 0x27474 <manage_heater()+0x1a4>

    uint8_t counter = log_buf.entry.counter;
   273e4:	80 91 29 06 	lds	r24, 0x0629	; 0x800629 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x5>
    if (counter == log_buf.serial) return;
   273e8:	70 90 33 06 	lds	r7, 0x0633	; 0x800633 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xf>
   273ec:	87 15       	cp	r24, r7
   273ee:	09 f4       	brne	.+2      	; 0x273f2 <manage_heater()+0x122>
   273f0:	41 c0       	rjmp	.+130    	; 0x27474 <manage_heater()+0x1a4>
    // avoid strict-aliasing warnings
    union { float cur_temp; uint32_t cur_temp_b; };
    union { float cur_amb; uint32_t cur_amb_b; };

    {
        TempMgrGuard temp_mgr_guard;
   273f2:	ce 01       	movw	r24, r28
   273f4:	01 96       	adiw	r24, 0x01	; 1
   273f6:	0f 94 a6 32 	call	0x2654c	; 0x2654c <TempMgrGuard::TempMgrGuard()>
        delta_ms = log_buf.entry.delta_ms;
   273fa:	00 91 28 06 	lds	r16, 0x0628	; 0x800628 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x4>
        counter = log_buf.entry.counter;
   273fe:	10 91 29 06 	lds	r17, 0x0629	; 0x800629 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x5>
        cur_pwm = log_buf.entry.cur_pwm;
   27402:	60 90 2a 06 	lds	r6, 0x062A	; 0x80062a <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x6>
        cur_temp = log_buf.entry.cur_temp;
   27406:	c0 90 2b 06 	lds	r12, 0x062B	; 0x80062b <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x7>
   2740a:	d0 90 2c 06 	lds	r13, 0x062C	; 0x80062c <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x8>
   2740e:	e0 90 2d 06 	lds	r14, 0x062D	; 0x80062d <_ZN13thermal_modelL7log_bufE.lto_priv.539+0x9>
   27412:	f0 90 2e 06 	lds	r15, 0x062E	; 0x80062e <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xa>
        cur_amb = log_buf.entry.cur_amb;
   27416:	80 90 2f 06 	lds	r8, 0x062F	; 0x80062f <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xb>
   2741a:	90 90 30 06 	lds	r9, 0x0630	; 0x800630 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xc>
   2741e:	a0 90 31 06 	lds	r10, 0x0631	; 0x800631 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xd>
   27422:	b0 90 32 06 	lds	r11, 0x0632	; 0x800632 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xe>
    // avoid strict-aliasing warnings
    union { float cur_temp; uint32_t cur_temp_b; };
    union { float cur_amb; uint32_t cur_amb_b; };

    {
        TempMgrGuard temp_mgr_guard;
   27426:	ce 01       	movw	r24, r28
   27428:	01 96       	adiw	r24, 0x01	; 1
   2742a:	0f 94 99 32 	call	0x26532	; 0x26532 <TempMgrGuard::~TempMgrGuard()>
        cur_temp = log_buf.entry.cur_temp;
        cur_amb = log_buf.entry.cur_amb;
    }

    uint8_t d = counter - log_buf.serial;
    log_buf.serial = counter;
   2742e:	10 93 33 06 	sts	0x0633, r17	; 0x800633 <_ZN13thermal_modelL7log_bufE.lto_priv.539+0xf>

    printf_P(PSTR("TML %d %d %x %lx %lx\n"), (unsigned)d - 1, (int)delta_ms + 1,
   27432:	bf 92       	push	r11
   27434:	af 92       	push	r10
   27436:	9f 92       	push	r9
   27438:	8f 92       	push	r8
   2743a:	ff 92       	push	r15
   2743c:	ef 92       	push	r14
   2743e:	df 92       	push	r13
   27440:	cf 92       	push	r12
   27442:	1f 92       	push	r1
   27444:	6f 92       	push	r6
   27446:	80 2f       	mov	r24, r16
   27448:	00 0f       	add	r16, r16
   2744a:	99 0b       	sbc	r25, r25
   2744c:	01 96       	adiw	r24, 0x01	; 1
   2744e:	9f 93       	push	r25
   27450:	8f 93       	push	r24
        cur_pwm = log_buf.entry.cur_pwm;
        cur_temp = log_buf.entry.cur_temp;
        cur_amb = log_buf.entry.cur_amb;
    }

    uint8_t d = counter - log_buf.serial;
   27452:	81 2f       	mov	r24, r17
   27454:	87 19       	sub	r24, r7
    log_buf.serial = counter;

    printf_P(PSTR("TML %d %d %x %lx %lx\n"), (unsigned)d - 1, (int)delta_ms + 1,
   27456:	81 50       	subi	r24, 0x01	; 1
   27458:	99 0b       	sbc	r25, r25
   2745a:	9f 93       	push	r25
   2745c:	8f 93       	push	r24
   2745e:	81 ea       	ldi	r24, 0xA1	; 161
   27460:	9a e9       	ldi	r25, 0x9A	; 154
   27462:	9f 93       	push	r25
   27464:	8f 93       	push	r24
   27466:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2746a:	0f b6       	in	r0, 0x3f	; 63
   2746c:	f8 94       	cli
   2746e:	de bf       	out	0x3e, r29	; 62
   27470:	0f be       	out	0x3f, r0	; 63
   27472:	cd bf       	out	0x3d, r28	; 61
    checkFans();

#ifdef THERMAL_MODEL_DEBUG
    thermal_model::log_usr();
#endif
}
   27474:	0f 90       	pop	r0
   27476:	df 91       	pop	r29
   27478:	cf 91       	pop	r28
   2747a:	1f 91       	pop	r17
   2747c:	0f 91       	pop	r16
   2747e:	ff 90       	pop	r15
   27480:	ef 90       	pop	r14
   27482:	df 90       	pop	r13
   27484:	cf 90       	pop	r12
   27486:	bf 90       	pop	r11
   27488:	af 90       	pop	r10
   2748a:	9f 90       	pop	r9
   2748c:	8f 90       	pop	r8
   2748e:	7f 90       	pop	r7
   27490:	6f 90       	pop	r6
   27492:	08 95       	ret
                lcd_setalertstatuspgm(_T(MSG_THERMAL_ANOMALY), LCD_STATUS_INFO);
                WRITE(BEEPER, HIGH);
            }
            first = false;
        } else {
            if(warn_beep) TOGGLE(BEEPER);
   27494:	88 23       	and	r24, r24
   27496:	09 f4       	brne	.+2      	; 0x2749a <manage_heater()+0x1ca>
   27498:	89 cf       	rjmp	.-238    	; 0x273ac <manage_heater()+0xdc>
   2749a:	84 e0       	ldi	r24, 0x04	; 4
   2749c:	80 93 00 01 	sts	0x0100, r24	; 0x800100 <__TEXT_REGION_LENGTH__+0x7c2100>
   274a0:	85 cf       	rjmp	.-246    	; 0x273ac <manage_heater()+0xdc>
        }
    } else {
        // warning cleared, reset state
        warning_state.warning = false;
   274a2:	90 91 39 06 	lds	r25, 0x0639	; 0x800639 <thermal_model::warning_state+0x4>
   274a6:	9e 7f       	andi	r25, 0xFE	; 254
   274a8:	90 93 39 06 	sts	0x0639, r25	; 0x800639 <thermal_model::warning_state+0x4>
        if(warn_beep) WRITE(BEEPER, LOW);
   274ac:	88 23       	and	r24, r24
   274ae:	41 f0       	breq	.+16     	; 0x274c0 <manage_heater()+0x1f0>
   274b0:	9f b7       	in	r25, 0x3f	; 63
   274b2:	f8 94       	cli
   274b4:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   274b8:	8b 7f       	andi	r24, 0xFB	; 251
   274ba:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   274be:	9f bf       	out	0x3f, r25	; 63
        first = true;
   274c0:	81 e0       	ldi	r24, 0x01	; 1
   274c2:	80 93 a3 02 	sts	0x02A3, r24	; 0x8002a3 <thermal_model::handle_warning()::first>
   274c6:	72 cf       	rjmp	.-284    	; 0x273ac <manage_heater()+0xdc>
#endif

void handle_temp_error()
{
    // relay to the original handler
    switch((TempErrorType)temp_error_state.type) {
   274c8:	84 30       	cpi	r24, 0x04	; 4
   274ca:	09 f0       	breq	.+2      	; 0x274ce <manage_heater()+0x1fe>
   274cc:	84 cf       	rjmp	.-248    	; 0x273d6 <manage_heater()+0x106>
#endif
        }
        break;
#ifdef THERMAL_MODEL
    case TempErrorType::model:
        if(temp_error_state.assert) {
   274ce:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   274d2:	81 ff       	sbrs	r24, 1
   274d4:	b4 c0       	rjmp	.+360    	; 0x2763e <manage_heater()+0x36e>
            if(IsStopped() == false) {
   274d6:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   274da:	81 11       	cpse	r24, r1
   274dc:	04 c0       	rjmp	.+8      	; 0x274e6 <manage_heater()+0x216>
                SERIAL_ECHOLNPGM("TM: error triggered!");
   274de:	89 e0       	ldi	r24, 0x09	; 9
   274e0:	9b e9       	ldi	r25, 0x9B	; 155
   274e2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
            }
            ThermalStop(true);
   274e6:	81 e0       	ldi	r24, 0x01	; 1
   274e8:	0e 94 33 79 	call	0xf266	; 0xf266 <ThermalStop(bool)>
            WRITE(BEEPER, HIGH);
   274ec:	9f b7       	in	r25, 0x3f	; 63
   274ee:	f8 94       	cli
   274f0:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   274f4:	84 60       	ori	r24, 0x04	; 4
   274f6:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   274fa:	9f bf       	out	0x3f, r25	; 63
   274fc:	6c cf       	rjmp	.-296    	; 0x273d6 <manage_heater()+0x106>
void handle_temp_error()
{
    // relay to the original handler
    switch((TempErrorType)temp_error_state.type) {
    case TempErrorType::min:
        switch((TempErrorSource)temp_error_state.source) {
   274fe:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27502:	86 95       	lsr	r24
   27504:	86 95       	lsr	r24
   27506:	83 70       	andi	r24, 0x03	; 3
   27508:	81 30       	cpi	r24, 0x01	; 1
   2750a:	d9 f1       	breq	.+118    	; 0x27582 <manage_heater()+0x2b2>
   2750c:	58 f0       	brcs	.+22     	; 0x27524 <manage_heater()+0x254>
   2750e:	82 30       	cpi	r24, 0x02	; 2
   27510:	09 f0       	breq	.+2      	; 0x27514 <manage_heater()+0x244>
   27512:	61 cf       	rjmp	.-318    	; 0x273d6 <manage_heater()+0x106>
    }
    ThermalStop();
}

static void ambient_min_temp_error(void) {
    if(IsStopped() == false) {
   27514:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   27518:	81 11       	cpse	r24, r1
   2751a:	14 c0       	rjmp	.+40     	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(PSTR("MINTEMP AMB"));
   2751c:	61 e0       	ldi	r22, 0x01	; 1
   2751e:	8b ec       	ldi	r24, 0xCB	; 203
   27520:	9a e9       	ldi	r25, 0x9A	; 154
   27522:	0e c0       	rjmp	.+28     	; 0x27540 <manage_heater()+0x270>
    // relay to the original handler
    switch((TempErrorType)temp_error_state.type) {
    case TempErrorType::min:
        switch((TempErrorSource)temp_error_state.source) {
        case TempErrorSource::hotend:
            if(temp_error_state.assert) {
   27524:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27528:	81 ff       	sbrs	r24, 1
   2752a:	10 c0       	rjmp	.+32     	; 0x2754c <manage_heater()+0x27c>
                min_temp_error(temp_error_state.index);
   2752c:	60 91 1b 05 	lds	r22, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27530:	62 95       	swap	r22
   27532:	61 70       	andi	r22, 0x01	; 1
#endif
}

static void min_temp_error(uint8_t e) {
    static const char err[] PROGMEM = "MINTEMP";
    if(IsStopped() == false) {
   27534:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   27538:	81 11       	cpse	r24, r1
   2753a:	04 c0       	rjmp	.+8      	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(err, e);
   2753c:	87 eb       	ldi	r24, 0xB7	; 183
   2753e:	9a e9       	ldi	r25, 0x9A	; 154
   27540:	0f 94 09 2d 	call	0x25a12	; 0x25a12 <temp_error_messagepgm(char const*, unsigned char)>
        prusa_statistics(92);
    }
    ThermalStop();
   27544:	80 e0       	ldi	r24, 0x00	; 0
   27546:	0e 94 33 79 	call	0xf266	; 0xf266 <ThermalStop(bool)>
   2754a:	45 cf       	rjmp	.-374    	; 0x273d6 <manage_heater()+0x106>
                // which is a safer variant than just continuing printing
                // The automaton also checks for hysteresis - the temperature must have reached a few degrees above the MINTEMP, before
                // we shall signalize, that MINTEMP has been fixed
                // Code notice: normally the alert_automaton instance would have been placed here
                // as static alert_automaton_mintemp alert_automaton_hotend, but
                alert_automaton_hotend.step(current_temperature[0], minttemp[0] + TEMP_HYSTERESIS);
   2754c:	60 91 a3 04 	lds	r22, 0x04A3	; 0x8004a3 <_ZL8minttemp.lto_priv.463>
   27550:	70 91 a4 04 	lds	r23, 0x04A4	; 0x8004a4 <_ZL8minttemp.lto_priv.463+0x1>
   27554:	6b 5f       	subi	r22, 0xFB	; 251
   27556:	7f 4f       	sbci	r23, 0xFF	; 255
   27558:	07 2e       	mov	r0, r23
   2755a:	00 0c       	add	r0, r0
   2755c:	88 0b       	sbc	r24, r24
   2755e:	99 0b       	sbc	r25, r25
   27560:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   27564:	8b 01       	movw	r16, r22
   27566:	9c 01       	movw	r18, r24
   27568:	40 91 b0 0d 	lds	r20, 0x0DB0	; 0x800db0 <current_temperature>
   2756c:	50 91 b1 0d 	lds	r21, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   27570:	60 91 b2 0d 	lds	r22, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   27574:	70 91 b3 0d 	lds	r23, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   27578:	8f e9       	ldi	r24, 0x9F	; 159
   2757a:	92 e0       	ldi	r25, 0x02	; 2
            if(temp_error_state.assert) {
                bed_min_temp_error();
            } else {
                // no recovery, just force the user to restart the printer
                // which is a safer variant than just continuing printing
                alert_automaton_bed.step(current_temperature_bed, BED_MINTEMP + TEMP_HYSTERESIS);
   2757c:	0f 94 0d 20 	call	0x2401a	; 0x2401a <alert_automaton_mintemp::step(float, float)>
   27580:	2a cf       	rjmp	.-428    	; 0x273d6 <manage_heater()+0x106>
                // as static alert_automaton_mintemp alert_automaton_hotend, but
                alert_automaton_hotend.step(current_temperature[0], minttemp[0] + TEMP_HYSTERESIS);
            }
            break;
        case TempErrorSource::bed:
            if(temp_error_state.assert) {
   27582:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27586:	81 ff       	sbrs	r24, 1
   27588:	08 c0       	rjmp	.+16     	; 0x2759a <manage_heater()+0x2ca>
    ThermalStop();
}

static void bed_min_temp_error(void) {
    static const char err[] PROGMEM = "MINTEMP BED";
    if(IsStopped() == false) {
   2758a:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   2758e:	81 11       	cpse	r24, r1
   27590:	d9 cf       	rjmp	.-78     	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(err);
   27592:	61 e0       	ldi	r22, 0x01	; 1
   27594:	8f eb       	ldi	r24, 0xBF	; 191
   27596:	9a e9       	ldi	r25, 0x9A	; 154
   27598:	d3 cf       	rjmp	.-90     	; 0x27540 <manage_heater()+0x270>
            if(temp_error_state.assert) {
                bed_min_temp_error();
            } else {
                // no recovery, just force the user to restart the printer
                // which is a safer variant than just continuing printing
                alert_automaton_bed.step(current_temperature_bed, BED_MINTEMP + TEMP_HYSTERESIS);
   2759a:	40 91 ee 04 	lds	r20, 0x04EE	; 0x8004ee <current_temperature_bed>
   2759e:	50 91 ef 04 	lds	r21, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   275a2:	60 91 f0 04 	lds	r22, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   275a6:	70 91 f1 04 	lds	r23, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   275aa:	00 e0       	ldi	r16, 0x00	; 0
   275ac:	10 e0       	ldi	r17, 0x00	; 0
   275ae:	20 e7       	ldi	r18, 0x70	; 112
   275b0:	31 e4       	ldi	r19, 0x41	; 65
   275b2:	8b e9       	ldi	r24, 0x9B	; 155
   275b4:	92 e0       	ldi	r25, 0x02	; 2
   275b6:	e2 cf       	rjmp	.-60     	; 0x2757c <manage_heater()+0x2ac>
            break;
#endif
        }
        break;
    case TempErrorType::max:
        switch((TempErrorSource)temp_error_state.source) {
   275b8:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   275bc:	86 95       	lsr	r24
   275be:	86 95       	lsr	r24
   275c0:	83 70       	andi	r24, 0x03	; 3
   275c2:	81 30       	cpi	r24, 0x01	; 1
   275c4:	b9 f0       	breq	.+46     	; 0x275f4 <manage_heater()+0x324>
   275c6:	58 f0       	brcs	.+22     	; 0x275de <manage_heater()+0x30e>
   275c8:	82 30       	cpi	r24, 0x02	; 2
   275ca:	09 f0       	breq	.+2      	; 0x275ce <manage_heater()+0x2fe>
   275cc:	04 cf       	rjmp	.-504    	; 0x273d6 <manage_heater()+0x106>
}


#ifdef AMBIENT_THERMISTOR
static void ambient_max_temp_error(void) {
    if(IsStopped() == false) {
   275ce:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   275d2:	81 11       	cpse	r24, r1
   275d4:	b7 cf       	rjmp	.-146    	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(PSTR("MAXTEMP AMB"));
   275d6:	61 e0       	ldi	r22, 0x01	; 1
   275d8:	8b ee       	ldi	r24, 0xEB	; 235
   275da:	9a e9       	ldi	r25, 0x9A	; 154
   275dc:	b1 cf       	rjmp	.-158    	; 0x27540 <manage_heater()+0x270>
        }
        break;
    case TempErrorType::max:
        switch((TempErrorSource)temp_error_state.source) {
        case TempErrorSource::hotend:
            max_temp_error(temp_error_state.index);
   275de:	60 91 1b 05 	lds	r22, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   275e2:	62 95       	swap	r22
   275e4:	61 70       	andi	r22, 0x01	; 1
    SERIAL_ERRORLNPGM(" triggered!");
}


static void max_temp_error(uint8_t e) {
    if(IsStopped() == false) {
   275e6:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   275ea:	81 11       	cpse	r24, r1
   275ec:	ab cf       	rjmp	.-170    	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(PSTR("MAXTEMP"), e);
   275ee:	87 ed       	ldi	r24, 0xD7	; 215
   275f0:	9a e9       	ldi	r25, 0x9A	; 154
   275f2:	a6 cf       	rjmp	.-180    	; 0x27540 <manage_heater()+0x270>
    }
    ThermalStop();
}

static void bed_max_temp_error(void) {
    if(IsStopped() == false) {
   275f4:	80 91 11 05 	lds	r24, 0x0511	; 0x800511 <Stopped>
   275f8:	81 11       	cpse	r24, r1
   275fa:	a4 cf       	rjmp	.-184    	; 0x27544 <manage_heater()+0x274>
        temp_error_messagepgm(PSTR("MAXTEMP BED"));
   275fc:	61 e0       	ldi	r22, 0x01	; 1
   275fe:	8f ed       	ldi	r24, 0xDF	; 223
   27600:	9a e9       	ldi	r25, 0x9A	; 154
   27602:	9e cf       	rjmp	.-196    	; 0x27540 <manage_heater()+0x270>
#endif
        }
        break;
    case TempErrorType::preheat:
    case TempErrorType::runaway:
        switch((TempErrorSource)temp_error_state.source) {
   27604:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27608:	86 95       	lsr	r24
   2760a:	86 95       	lsr	r24
   2760c:	83 70       	andi	r24, 0x03	; 3
   2760e:	82 30       	cpi	r24, 0x02	; 2
   27610:	08 f0       	brcs	.+2      	; 0x27614 <manage_heater()+0x344>
   27612:	e1 ce       	rjmp	.-574    	; 0x273d6 <manage_heater()+0x106>
        case TempErrorSource::hotend:
        case TempErrorSource::bed:
            temp_runaway_stop(
                ((TempErrorType)temp_error_state.type == TempErrorType::preheat),
                ((TempErrorSource)temp_error_state.source == TempErrorSource::bed));
   27614:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27618:	86 95       	lsr	r24
   2761a:	86 95       	lsr	r24
   2761c:	83 70       	andi	r24, 0x03	; 3
    case TempErrorType::runaway:
        switch((TempErrorSource)temp_error_state.source) {
        case TempErrorSource::hotend:
        case TempErrorSource::bed:
            temp_runaway_stop(
                ((TempErrorType)temp_error_state.type == TempErrorType::preheat),
   2761e:	90 91 1b 05 	lds	r25, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   27622:	92 95       	swap	r25
   27624:	96 95       	lsr	r25
   27626:	97 70       	andi	r25, 0x07	; 7
    case TempErrorType::preheat:
    case TempErrorType::runaway:
        switch((TempErrorSource)temp_error_state.source) {
        case TempErrorSource::hotend:
        case TempErrorSource::bed:
            temp_runaway_stop(
   27628:	61 e0       	ldi	r22, 0x01	; 1
   2762a:	81 30       	cpi	r24, 0x01	; 1
   2762c:	09 f0       	breq	.+2      	; 0x27630 <manage_heater()+0x360>
   2762e:	60 e0       	ldi	r22, 0x00	; 0
   27630:	81 e0       	ldi	r24, 0x01	; 1
   27632:	92 30       	cpi	r25, 0x02	; 2
   27634:	09 f0       	breq	.+2      	; 0x27638 <manage_heater()+0x368>
   27636:	80 e0       	ldi	r24, 0x00	; 0
   27638:	0f 94 46 20 	call	0x2408c	; 0x2408c <temp_runaway_stop(bool, bool)>
   2763c:	cc ce       	rjmp	.-616    	; 0x273d6 <manage_heater()+0x106>
                SERIAL_ECHOLNPGM("TM: error triggered!");
            }
            ThermalStop(true);
            WRITE(BEEPER, HIGH);
        } else {
            temp_error_state.v = 0;
   2763e:	10 92 1b 05 	sts	0x051B, r1	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
            WRITE(BEEPER, LOW);
   27642:	9f b7       	in	r25, 0x3f	; 63
   27644:	f8 94       	cli
   27646:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2764a:	8b 7f       	andi	r24, 0xFB	; 251
   2764c:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   27650:	9f bf       	out	0x3f, r25	; 63

            // hotend error was transitory and disappeared, re-enable bed
            if (!target_temperature_bed)
   27652:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   27656:	90 91 73 06 	lds	r25, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   2765a:	89 2b       	or	r24, r25
   2765c:	39 f4       	brne	.+14     	; 0x2766c <manage_heater()+0x39c>
                target_temperature_bed = saved_bed_temperature;
   2765e:	80 91 ae 05 	lds	r24, 0x05AE	; 0x8005ae <saved_bed_temperature>
   27662:	90 e0       	ldi	r25, 0x00	; 0
   27664:	90 93 73 06 	sts	0x0673, r25	; 0x800673 <target_temperature_bed+0x1>
   27668:	80 93 72 06 	sts	0x0672, r24	; 0x800672 <target_temperature_bed>

            SERIAL_ECHOLNPGM("TM: error cleared");
   2766c:	87 ef       	ldi	r24, 0xF7	; 247
   2766e:	9a e9       	ldi	r25, 0x9A	; 154
   27670:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   27674:	b0 ce       	rjmp	.-672    	; 0x273d6 <manage_heater()+0x106>

00027676 <lcd_wait_for_click_delay(unsigned int)>:
}

bool lcd_wait_for_click_delay(uint16_t nDelay)
// nDelay :: timeout [s] (0 ~ no timeout)
// true ~ clicked, false ~ delayed
{
   27676:	4f 92       	push	r4
   27678:	5f 92       	push	r5
   2767a:	6f 92       	push	r6
   2767c:	7f 92       	push	r7
   2767e:	8f 92       	push	r8
   27680:	9f 92       	push	r9
   27682:	af 92       	push	r10
   27684:	bf 92       	push	r11
   27686:	cf 92       	push	r12
   27688:	df 92       	push	r13
   2768a:	ef 92       	push	r14
   2768c:	ff 92       	push	r15
   2768e:	6c 01       	movw	r12, r24
bool bDelayed;
long nTime0 = _millis()/1000;
   27690:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27694:	28 ee       	ldi	r18, 0xE8	; 232
   27696:	33 e0       	ldi	r19, 0x03	; 3
   27698:	40 e0       	ldi	r20, 0x00	; 0
   2769a:	50 e0       	ldi	r21, 0x00	; 0
   2769c:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   276a0:	29 01       	movw	r4, r18
   276a2:	3a 01       	movw	r6, r20
	lcd_consume_click();
   276a4:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
	KEEPALIVE_STATE(PAUSED_FOR_USER);
   276a8:	84 e0       	ldi	r24, 0x04	; 4
   276aa:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    for (;;) {
        manage_heater();
        manage_inactivity(true);
        bDelayed = ((_millis()/1000-nTime0) > nDelay);
   276ae:	f1 2c       	mov	r15, r1
   276b0:	e1 2c       	mov	r14, r1
bool bDelayed;
long nTime0 = _millis()/1000;
	lcd_consume_click();
	KEEPALIVE_STATE(PAUSED_FOR_USER);
    for (;;) {
        manage_heater();
   276b2:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
        manage_inactivity(true);
   276b6:	81 e0       	ldi	r24, 0x01	; 1
   276b8:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
        bDelayed = ((_millis()/1000-nTime0) > nDelay);
   276bc:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   276c0:	28 ee       	ldi	r18, 0xE8	; 232
   276c2:	33 e0       	ldi	r19, 0x03	; 3
   276c4:	40 e0       	ldi	r20, 0x00	; 0
   276c6:	50 e0       	ldi	r21, 0x00	; 0
   276c8:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   276cc:	49 01       	movw	r8, r18
   276ce:	5a 01       	movw	r10, r20
   276d0:	84 18       	sub	r8, r4
   276d2:	95 08       	sbc	r9, r5
   276d4:	a6 08       	sbc	r10, r6
   276d6:	b7 08       	sbc	r11, r7
        bDelayed = (bDelayed && (nDelay != 0));   // 0 ~ no timeout, always waiting for click
        if (lcd_clicked() || bDelayed) {
   276d8:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   276dc:	81 11       	cpse	r24, r1
   276de:	07 c0       	rjmp	.+14     	; 0x276ee <lcd_wait_for_click_delay(unsigned int)+0x78>
   276e0:	c8 14       	cp	r12, r8
   276e2:	d9 04       	cpc	r13, r9
   276e4:	ea 04       	cpc	r14, r10
   276e6:	fb 04       	cpc	r15, r11
   276e8:	20 f7       	brcc	.-56     	; 0x276b2 <lcd_wait_for_click_delay(unsigned int)+0x3c>
   276ea:	81 e0       	ldi	r24, 0x01	; 1
   276ec:	07 c0       	rjmp	.+14     	; 0x276fc <lcd_wait_for_click_delay(unsigned int)+0x86>
	KEEPALIVE_STATE(PAUSED_FOR_USER);
    for (;;) {
        manage_heater();
        manage_inactivity(true);
        bDelayed = ((_millis()/1000-nTime0) > nDelay);
        bDelayed = (bDelayed && (nDelay != 0));   // 0 ~ no timeout, always waiting for click
   276ee:	81 e0       	ldi	r24, 0x01	; 1
   276f0:	c8 14       	cp	r12, r8
   276f2:	d9 04       	cpc	r13, r9
   276f4:	ea 04       	cpc	r14, r10
   276f6:	fb 04       	cpc	r15, r11
   276f8:	08 f0       	brcs	.+2      	; 0x276fc <lcd_wait_for_click_delay(unsigned int)+0x86>
   276fa:	80 e0       	ldi	r24, 0x00	; 0
        if (lcd_clicked() || bDelayed) {
			KEEPALIVE_STATE(IN_HANDLER);
   276fc:	92 e0       	ldi	r25, 0x02	; 2
   276fe:	90 93 be 02 	sts	0x02BE, r25	; 0x8002be <busy_state>
            return(!bDelayed);
        }
    }
}
   27702:	91 e0       	ldi	r25, 0x01	; 1
   27704:	89 27       	eor	r24, r25
   27706:	ff 90       	pop	r15
   27708:	ef 90       	pop	r14
   2770a:	df 90       	pop	r13
   2770c:	cf 90       	pop	r12
   2770e:	bf 90       	pop	r11
   27710:	af 90       	pop	r10
   27712:	9f 90       	pop	r9
   27714:	8f 90       	pop	r8
   27716:	7f 90       	pop	r7
   27718:	6f 90       	pop	r6
   2771a:	5f 90       	pop	r5
   2771c:	4f 90       	pop	r4
   2771e:	08 95       	ret

00027720 <thermal_model_cal::waiting_handler() [clone .lto_priv.423]>:
#endif
}

static void waiting_handler()
{
    manage_heater();
   27720:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
    host_keepalive();
   27724:	0e 94 2e 7f 	call	0xfe5c	; 0xfe5c <host_keepalive()>
    host_autoreport();
   27728:	0e 94 df 78 	call	0xf1be	; 0xf1be <host_autoreport()>
    checkFans();
   2772c:	0e 94 89 7f 	call	0xff12	; 0xff12 <checkFans()>
    lcd_update(0);
   27730:	80 e0       	ldi	r24, 0x00	; 0
   27732:	0c 94 2e 6e 	jmp	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

00027736 <thermal_model_cal::wait_temp() [clone .lto_priv.559]>:
    }
}

static void __attribute__((noinline)) wait_temp()
{
    while(current_temperature[0] < (target_temperature[0] - TEMP_HYSTERESIS)) {
   27736:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   2773a:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2773e:	65 50       	subi	r22, 0x05	; 5
   27740:	71 09       	sbc	r23, r1
   27742:	07 2e       	mov	r0, r23
   27744:	00 0c       	add	r0, r0
   27746:	88 0b       	sbc	r24, r24
   27748:	99 0b       	sbc	r25, r25
   2774a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2774e:	9b 01       	movw	r18, r22
   27750:	ac 01       	movw	r20, r24
   27752:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   27756:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   2775a:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   2775e:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   27762:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   27766:	87 ff       	sbrs	r24, 7
   27768:	07 c0       	rjmp	.+14     	; 0x27778 <thermal_model_cal::wait_temp() [clone .lto_priv.559]+0x42>
        if(temp_error_state.v) break;
   2776a:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   2776e:	81 11       	cpse	r24, r1
   27770:	03 c0       	rjmp	.+6      	; 0x27778 <thermal_model_cal::wait_temp() [clone .lto_priv.559]+0x42>
        waiting_handler();
   27772:	0f 94 90 3b 	call	0x27720	; 0x27720 <thermal_model_cal::waiting_handler() [clone .lto_priv.423]>
   27776:	df cf       	rjmp	.-66     	; 0x27736 <thermal_model_cal::wait_temp() [clone .lto_priv.559]>
    }
}
   27778:	08 95       	ret

0002777a <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]>:
    checkFans();
    lcd_update(0);
}

static void wait(unsigned ms)
{
   2777a:	cf 92       	push	r12
   2777c:	df 92       	push	r13
   2777e:	ef 92       	push	r14
   27780:	ff 92       	push	r15
   27782:	7c 01       	movw	r14, r24
    unsigned long mark = _millis() + ms;
   27784:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27788:	9b 01       	movw	r18, r22
   2778a:	ac 01       	movw	r20, r24
   2778c:	2e 0d       	add	r18, r14
   2778e:	3f 1d       	adc	r19, r15
   27790:	41 1d       	adc	r20, r1
   27792:	51 1d       	adc	r21, r1
   27794:	69 01       	movw	r12, r18
   27796:	7a 01       	movw	r14, r20
    while(_millis() < mark) {
   27798:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2779c:	6c 15       	cp	r22, r12
   2779e:	7d 05       	cpc	r23, r13
   277a0:	8e 05       	cpc	r24, r14
   277a2:	9f 05       	cpc	r25, r15
   277a4:	38 f4       	brcc	.+14     	; 0x277b4 <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]+0x3a>
        if(temp_error_state.v) break;
   277a6:	80 91 1b 05 	lds	r24, 0x051B	; 0x80051b <_ZL16temp_error_state.lto_priv.456>
   277aa:	81 11       	cpse	r24, r1
   277ac:	03 c0       	rjmp	.+6      	; 0x277b4 <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]+0x3a>
        waiting_handler();
   277ae:	0f 94 90 3b 	call	0x27720	; 0x27720 <thermal_model_cal::waiting_handler() [clone .lto_priv.423]>
   277b2:	f2 cf       	rjmp	.-28     	; 0x27798 <thermal_model_cal::wait(unsigned int) [clone .lto_priv.558]+0x1e>
    }
}
   277b4:	ff 90       	pop	r15
   277b6:	ef 90       	pop	r14
   277b8:	df 90       	pop	r13
   277ba:	cf 90       	pop	r12
   277bc:	08 95       	ret

000277be <updatePID()>:
void updatePID()
{
  // TODO: iState_sum_max and PID values should be synchronized for temp_mgr_isr
#ifdef PIDTEMP
  for(uint_least8_t e = 0; e < EXTRUDERS; e++) {
     iState_sum_max[e] = PID_INTEGRAL_DRIVE_MAX / cs.Ki;
   277be:	20 91 2a 0e 	lds	r18, 0x0E2A	; 0x800e2a <cs+0x6c>
   277c2:	30 91 2b 0e 	lds	r19, 0x0E2B	; 0x800e2b <cs+0x6d>
   277c6:	40 91 2c 0e 	lds	r20, 0x0E2C	; 0x800e2c <cs+0x6e>
   277ca:	50 91 2d 0e 	lds	r21, 0x0E2D	; 0x800e2d <cs+0x6f>
   277ce:	60 e0       	ldi	r22, 0x00	; 0
   277d0:	70 e0       	ldi	r23, 0x00	; 0
   277d2:	8f e7       	ldi	r24, 0x7F	; 127
   277d4:	93 e4       	ldi	r25, 0x43	; 67
   277d6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   277da:	60 93 af 04 	sts	0x04AF, r22	; 0x8004af <_ZL14iState_sum_max.lto_priv.471>
   277de:	70 93 b0 04 	sts	0x04B0, r23	; 0x8004b0 <_ZL14iState_sum_max.lto_priv.471+0x1>
   277e2:	80 93 b1 04 	sts	0x04B1, r24	; 0x8004b1 <_ZL14iState_sum_max.lto_priv.471+0x2>
   277e6:	90 93 b2 04 	sts	0x04B2, r25	; 0x8004b2 <_ZL14iState_sum_max.lto_priv.471+0x3>
  }
#endif
#ifdef PIDTEMPBED
  temp_iState_max_bed = PID_INTEGRAL_DRIVE_MAX / cs.bedKi;
   277ea:	20 91 36 0e 	lds	r18, 0x0E36	; 0x800e36 <cs+0x78>
   277ee:	30 91 37 0e 	lds	r19, 0x0E37	; 0x800e37 <cs+0x79>
   277f2:	40 91 38 0e 	lds	r20, 0x0E38	; 0x800e38 <cs+0x7a>
   277f6:	50 91 39 0e 	lds	r21, 0x0E39	; 0x800e39 <cs+0x7b>
   277fa:	60 e0       	ldi	r22, 0x00	; 0
   277fc:	70 e0       	ldi	r23, 0x00	; 0
   277fe:	8f e7       	ldi	r24, 0x7F	; 127
   27800:	93 e4       	ldi	r25, 0x43	; 67
   27802:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   27806:	60 93 a7 04 	sts	0x04A7, r22	; 0x8004a7 <_ZL19temp_iState_max_bed.lto_priv.469>
   2780a:	70 93 a8 04 	sts	0x04A8, r23	; 0x8004a8 <_ZL19temp_iState_max_bed.lto_priv.469+0x1>
   2780e:	80 93 a9 04 	sts	0x04A9, r24	; 0x8004a9 <_ZL19temp_iState_max_bed.lto_priv.469+0x2>
   27812:	90 93 aa 04 	sts	0x04AA, r25	; 0x8004aa <_ZL19temp_iState_max_bed.lto_priv.469+0x3>
#endif
}
   27816:	08 95       	ret

00027818 <PID_autotune(float, int, int)>:
#endif

// WARNING: the following function has been marked noinline to avoid a GCC 4.9.2 LTO
//          codegen bug causing a stack overwrite issue in process_commands()
void __attribute__((noinline)) PID_autotune(float temp, int extruder, int ncycles)
{
   27818:	2f 92       	push	r2
   2781a:	3f 92       	push	r3
   2781c:	4f 92       	push	r4
   2781e:	5f 92       	push	r5
   27820:	6f 92       	push	r6
   27822:	7f 92       	push	r7
   27824:	8f 92       	push	r8
   27826:	9f 92       	push	r9
   27828:	af 92       	push	r10
   2782a:	bf 92       	push	r11
   2782c:	cf 92       	push	r12
   2782e:	df 92       	push	r13
   27830:	ef 92       	push	r14
   27832:	ff 92       	push	r15
   27834:	0f 93       	push	r16
   27836:	1f 93       	push	r17
   27838:	cf 93       	push	r28
   2783a:	df 93       	push	r29
   2783c:	cd b7       	in	r28, 0x3d	; 61
   2783e:	de b7       	in	r29, 0x3e	; 62
   27840:	e0 97       	sbiw	r28, 0x30	; 48
   27842:	0f b6       	in	r0, 0x3f	; 63
   27844:	f8 94       	cli
   27846:	de bf       	out	0x3e, r29	; 62
   27848:	0f be       	out	0x3f, r0	; 63
   2784a:	cd bf       	out	0x3d, r28	; 61
   2784c:	6a 87       	std	Y+10, r22	; 0x0a
   2784e:	7b 87       	std	Y+11, r23	; 0x0b
   27850:	8c 87       	std	Y+12, r24	; 0x0c
   27852:	9d 87       	std	Y+13, r25	; 0x0d
   27854:	1a 01       	movw	r2, r20
   27856:	3a a7       	std	Y+42, r19	; 0x2a
   27858:	29 a7       	std	Y+41, r18	; 0x29
      return !pid_tuning_finished;
  }

  void preparePidTuning() {
      // ensure heaters are disabled before we switch off PID management!
      disable_heater();
   2785a:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
      pid_tuning_finished = false;
   2785e:	10 92 3e 02 	sts	0x023E, r1	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
//          codegen bug causing a stack overwrite issue in process_commands()
void __attribute__((noinline)) PID_autotune(float temp, int extruder, int ncycles)
{
  preparePidTuning();

  pid_number_of_cycles = ncycles;
   27862:	29 a5       	ldd	r18, Y+41	; 0x29
   27864:	3a a5       	ldd	r19, Y+42	; 0x2a
   27866:	30 93 48 06 	sts	0x0648, r19	; 0x800648 <pid_number_of_cycles+0x1>
   2786a:	20 93 47 06 	sts	0x0647, r18	; 0x800647 <pid_number_of_cycles>
  float input = 0.0;
  pid_cycle=0;
   2786e:	10 92 4a 06 	sts	0x064A, r1	; 0x80064a <pid_cycle+0x1>
   27872:	10 92 49 06 	sts	0x0649, r1	; 0x800649 <pid_cycle>
  bool heating = true;

  unsigned long temp_millis = _millis();
   27876:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2787a:	6e 83       	std	Y+6, r22	; 0x06
   2787c:	7f 83       	std	Y+7, r23	; 0x07
   2787e:	88 87       	std	Y+8, r24	; 0x08
   27880:	99 87       	std	Y+9, r25	; 0x09

  long bias, d;
  float Ku, Tu;
  float max = 0, min = 10000;
  uint8_t safety_check_cycles = 0;
  const uint8_t safety_check_cycles_count = (extruder < 0) ? 45 : 10; //10 cycles / 20s delay for extruder and 45 cycles / 90s for heatbed
   27882:	37 fe       	sbrs	r3, 7
   27884:	ff c0       	rjmp	.+510    	; 0x27a84 <PID_autotune(float, int, int)+0x26c>
   27886:	3d e2       	ldi	r19, 0x2D	; 45
   27888:	3f 8f       	std	Y+31, r19	; 0x1f
  float temp_ambient;

#if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)
  unsigned long extruder_autofan_last_check = _millis();
   2788a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2788e:	6c a3       	std	Y+36, r22	; 0x24
   27890:	7d a3       	std	Y+37, r23	; 0x25
   27892:	8e a3       	std	Y+38, r24	; 0x26
   27894:	9f a3       	std	Y+39, r25	; 0x27
  if ((extruder >= EXTRUDERS)
  #if (TEMP_BED_PIN <= -1)
       ||(extruder < 0)
  #endif
       ){
          SERIAL_ECHOLNPGM("PID Autotune failed. Bad extruder number.");
   27896:	87 e7       	ldi	r24, 0x77	; 119
   27898:	9a e9       	ldi	r25, 0x9A	; 154

#if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)
  unsigned long extruder_autofan_last_check = _millis();
#endif

  if ((extruder >= EXTRUDERS)
   2789a:	12 14       	cp	r1, r2
   2789c:	13 04       	cpc	r1, r3
   2789e:	0c f4       	brge	.+2      	; 0x278a2 <PID_autotune(float, int, int)+0x8a>
   278a0:	8a c2       	rjmp	.+1300   	; 0x27db6 <PID_autotune(float, int, int)+0x59e>
		  pid_tuning_finished = true;
		  pid_cycle = 0;
          return;
        }

  SERIAL_ECHOLNPGM("PID Autotune start");
   278a2:	84 e6       	ldi	r24, 0x64	; 100
   278a4:	9a e9       	ldi	r25, 0x9A	; 154
   278a6:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   278aa:	6a 85       	ldd	r22, Y+10	; 0x0a
   278ac:	7b 85       	ldd	r23, Y+11	; 0x0b
   278ae:	8c 85       	ldd	r24, Y+12	; 0x0c
   278b0:	9d 85       	ldd	r25, Y+13	; 0x0d
   278b2:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>

  if (extruder<0)
  {
     soft_pwm_bed = (MAX_BED_POWER)/2;
   278b6:	2f e7       	ldi	r18, 0x7F	; 127
          return;
        }

  SERIAL_ECHOLNPGM("PID Autotune start");

  if (extruder<0)
   278b8:	21 14       	cp	r2, r1
   278ba:	31 04       	cpc	r3, r1
   278bc:	09 f4       	brne	.+2      	; 0x278c0 <PID_autotune(float, int, int)+0xa8>
   278be:	e5 c0       	rjmp	.+458    	; 0x27a8a <PID_autotune(float, int, int)+0x272>
  {
     soft_pwm_bed = (MAX_BED_POWER)/2;
   278c0:	20 93 1d 06 	sts	0x061D, r18	; 0x80061d <soft_pwm_bed>
     bias = d = (MAX_BED_POWER)/2;
     target_temperature_bed = (int)temp; // to display the requested target bed temperature properly on the main screen
   278c4:	70 93 73 06 	sts	0x0673, r23	; 0x800673 <target_temperature_bed+0x1>
   278c8:	60 93 72 06 	sts	0x0672, r22	; 0x800672 <target_temperature_bed>

  long bias, d;
  float Ku, Tu;
  float max = 0, min = 10000;
  uint8_t safety_check_cycles = 0;
  const uint8_t safety_check_cycles_count = (extruder < 0) ? 45 : 10; //10 cycles / 20s delay for extruder and 45 cycles / 90s for heatbed
   278cc:	8e 81       	ldd	r24, Y+6	; 0x06
   278ce:	9f 81       	ldd	r25, Y+7	; 0x07
   278d0:	a8 85       	ldd	r26, Y+8	; 0x08
   278d2:	b9 85       	ldd	r27, Y+9	; 0x09
   278d4:	8e 87       	std	Y+14, r24	; 0x0e
   278d6:	9f 87       	std	Y+15, r25	; 0x0f
   278d8:	a8 8b       	std	Y+16, r26	; 0x10
   278da:	b9 8b       	std	Y+17, r27	; 0x11
   278dc:	88 a3       	std	Y+32, r24	; 0x20
   278de:	99 a3       	std	Y+33, r25	; 0x21
   278e0:	aa a3       	std	Y+34, r26	; 0x22
   278e2:	bb a3       	std	Y+35, r27	; 0x23
   278e4:	1a 8a       	std	Y+18, r1	; 0x12
   278e6:	90 e4       	ldi	r25, 0x40	; 64
   278e8:	9b 8b       	std	Y+19, r25	; 0x13
   278ea:	ac e1       	ldi	r26, 0x1C	; 28
   278ec:	ac 8b       	std	Y+20, r26	; 0x14
   278ee:	b6 e4       	ldi	r27, 0x46	; 70
   278f0:	bd 8b       	std	Y+21, r27	; 0x15
   278f2:	1e 8a       	std	Y+22, r1	; 0x16
   278f4:	1f 8a       	std	Y+23, r1	; 0x17
   278f6:	18 8e       	std	Y+24, r1	; 0x18
   278f8:	19 8e       	std	Y+25, r1	; 0x19
   278fa:	6f e7       	ldi	r22, 0x7F	; 127
   278fc:	c6 2e       	mov	r12, r22
   278fe:	d1 2c       	mov	r13, r1
   27900:	e1 2c       	mov	r14, r1
   27902:	f1 2c       	mov	r15, r1
   27904:	00 e0       	ldi	r16, 0x00	; 0
   27906:	10 e0       	ldi	r17, 0x00	; 0
   27908:	18 aa       	std	Y+48, r1	; 0x30
   2790a:	1f a6       	std	Y+47, r1	; 0x2f
   2790c:	1d 82       	std	Y+5, r1	; 0x05
   2790e:	2f e7       	ldi	r18, 0x7F	; 127
   27910:	30 e0       	ldi	r19, 0x00	; 0
   27912:	40 e0       	ldi	r20, 0x00	; 0
   27914:	50 e0       	ldi	r21, 0x00	; 0
   27916:	29 83       	std	Y+1, r18	; 0x01
   27918:	3a 83       	std	Y+2, r19	; 0x02
   2791a:	4b 83       	std	Y+3, r20	; 0x03
   2791c:	5c 83       	std	Y+4, r21	; 0x04
   2791e:	1b 8e       	std	Y+27, r1	; 0x1b
   27920:	1c 8e       	std	Y+28, r1	; 0x1c
   27922:	1d 8e       	std	Y+29, r1	; 0x1d
   27924:	1e 8e       	std	Y+30, r1	; 0x1e
   27926:	31 e0       	ldi	r19, 0x01	; 1
   27928:	3a 8f       	std	Y+26, r19	; 0x1a
     target_temperature[extruder] = (int)temp; // to display the requested target extruder temperature properly on the main screen
  }

  for(;;) {
#ifdef WATCHDOG
    wdt_reset();
   2792a:	a8 95       	wdr
#endif //WATCHDOG
    if(temp_meas_ready == true) { // temp sample ready
   2792c:	40 91 02 06 	lds	r20, 0x0602	; 0x800602 <temp_meas_ready>
   27930:	48 a7       	std	Y+40, r20	; 0x28
   27932:	44 23       	and	r20, r20
   27934:	09 f4       	brne	.+2      	; 0x27938 <PID_autotune(float, int, int)+0x120>
   27936:	2c c2       	rjmp	.+1112   	; 0x27d90 <PID_autotune(float, int, int)+0x578>
      updateTemperatures();
   27938:	0f 94 89 33 	call	0x26712	; 0x26712 <updateTemperatures()>

      input = (extruder<0)?current_temperature_bed:current_temperature[extruder];
   2793c:	21 14       	cp	r2, r1
   2793e:	31 04       	cpc	r3, r1
   27940:	09 f0       	breq	.+2      	; 0x27944 <PID_autotune(float, int, int)+0x12c>
   27942:	aa c0       	rjmp	.+340    	; 0x27a98 <PID_autotune(float, int, int)+0x280>
   27944:	00 91 b0 0d 	lds	r16, 0x0DB0	; 0x800db0 <current_temperature>
   27948:	10 91 b1 0d 	lds	r17, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   2794c:	50 91 b2 0d 	lds	r21, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   27950:	58 ab       	std	Y+48, r21	; 0x30
   27952:	80 91 b3 0d 	lds	r24, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   27956:	8f a7       	std	Y+47, r24	; 0x2f

      max=max(max,input);
   27958:	2e 89       	ldd	r18, Y+22	; 0x16
   2795a:	3f 89       	ldd	r19, Y+23	; 0x17
   2795c:	48 8d       	ldd	r20, Y+24	; 0x18
   2795e:	59 8d       	ldd	r21, Y+25	; 0x19
   27960:	b8 01       	movw	r22, r16
   27962:	88 a9       	ldd	r24, Y+48	; 0x30
   27964:	9f a5       	ldd	r25, Y+47	; 0x2f
   27966:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2796a:	87 fd       	sbrc	r24, 7
   2796c:	06 c0       	rjmp	.+12     	; 0x2797a <PID_autotune(float, int, int)+0x162>
   2796e:	0e 8b       	std	Y+22, r16	; 0x16
   27970:	1f 8b       	std	Y+23, r17	; 0x17
   27972:	b8 a9       	ldd	r27, Y+48	; 0x30
   27974:	b8 8f       	std	Y+24, r27	; 0x18
   27976:	2f a5       	ldd	r18, Y+47	; 0x2f
   27978:	29 8f       	std	Y+25, r18	; 0x19
      min=min(min,input);
   2797a:	2a 89       	ldd	r18, Y+18	; 0x12
   2797c:	3b 89       	ldd	r19, Y+19	; 0x13
   2797e:	4c 89       	ldd	r20, Y+20	; 0x14
   27980:	5d 89       	ldd	r21, Y+21	; 0x15
   27982:	b8 01       	movw	r22, r16
   27984:	88 a9       	ldd	r24, Y+48	; 0x30
   27986:	9f a5       	ldd	r25, Y+47	; 0x2f
   27988:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2798c:	18 16       	cp	r1, r24
   2798e:	34 f0       	brlt	.+12     	; 0x2799c <PID_autotune(float, int, int)+0x184>
   27990:	0a 8b       	std	Y+18, r16	; 0x12
   27992:	1b 8b       	std	Y+19, r17	; 0x13
   27994:	38 a9       	ldd	r19, Y+48	; 0x30
   27996:	3c 8b       	std	Y+20, r19	; 0x14
   27998:	4f a5       	ldd	r20, Y+47	; 0x2f
   2799a:	4d 8b       	std	Y+21, r20	; 0x15

      #if (defined(EXTRUDER_0_AUTO_FAN_PIN) && EXTRUDER_0_AUTO_FAN_PIN > -1)
      if(_millis() - extruder_autofan_last_check > 2500) {
   2799c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   279a0:	2c a1       	ldd	r18, Y+36	; 0x24
   279a2:	3d a1       	ldd	r19, Y+37	; 0x25
   279a4:	4e a1       	ldd	r20, Y+38	; 0x26
   279a6:	5f a1       	ldd	r21, Y+39	; 0x27
   279a8:	62 1b       	sub	r22, r18
   279aa:	73 0b       	sbc	r23, r19
   279ac:	84 0b       	sbc	r24, r20
   279ae:	95 0b       	sbc	r25, r21
   279b0:	65 3c       	cpi	r22, 0xC5	; 197
   279b2:	79 40       	sbci	r23, 0x09	; 9
   279b4:	81 05       	cpc	r24, r1
   279b6:	91 05       	cpc	r25, r1
   279b8:	40 f0       	brcs	.+16     	; 0x279ca <PID_autotune(float, int, int)+0x1b2>
        checkExtruderAutoFans();
   279ba:	0e 94 2e 75 	call	0xea5c	; 0xea5c <checkExtruderAutoFans()>
        extruder_autofan_last_check = _millis();
   279be:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   279c2:	6c a3       	std	Y+36, r22	; 0x24
   279c4:	7d a3       	std	Y+37, r23	; 0x25
   279c6:	8e a3       	std	Y+38, r24	; 0x26
   279c8:	9f a3       	std	Y+39, r25	; 0x27
      }
      #endif

      if(heating == true && input > temp) {
   279ca:	4a 8d       	ldd	r20, Y+26	; 0x1a
   279cc:	44 23       	and	r20, r20
   279ce:	09 f4       	brne	.+2      	; 0x279d2 <PID_autotune(float, int, int)+0x1ba>
   279d0:	4c c0       	rjmp	.+152    	; 0x27a6a <PID_autotune(float, int, int)+0x252>
   279d2:	2a 85       	ldd	r18, Y+10	; 0x0a
   279d4:	3b 85       	ldd	r19, Y+11	; 0x0b
   279d6:	4c 85       	ldd	r20, Y+12	; 0x0c
   279d8:	5d 85       	ldd	r21, Y+13	; 0x0d
   279da:	b8 01       	movw	r22, r16
   279dc:	88 a9       	ldd	r24, Y+48	; 0x30
   279de:	9f a5       	ldd	r25, Y+47	; 0x2f
   279e0:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   279e4:	18 16       	cp	r1, r24
   279e6:	0c f0       	brlt	.+2      	; 0x279ea <PID_autotune(float, int, int)+0x1d2>
   279e8:	d3 c1       	rjmp	.+934    	; 0x27d90 <PID_autotune(float, int, int)+0x578>
        if(_millis() - t2 > 5000) {
   279ea:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   279ee:	2e 85       	ldd	r18, Y+14	; 0x0e
   279f0:	3f 85       	ldd	r19, Y+15	; 0x0f
   279f2:	48 89       	ldd	r20, Y+16	; 0x10
   279f4:	59 89       	ldd	r21, Y+17	; 0x11
   279f6:	62 1b       	sub	r22, r18
   279f8:	73 0b       	sbc	r23, r19
   279fa:	84 0b       	sbc	r24, r20
   279fc:	95 0b       	sbc	r25, r21
   279fe:	69 38       	cpi	r22, 0x89	; 137
   27a00:	73 41       	sbci	r23, 0x13	; 19
   27a02:	81 05       	cpc	r24, r1
   27a04:	91 05       	cpc	r25, r1
   27a06:	08 f4       	brcc	.+2      	; 0x27a0a <PID_autotune(float, int, int)+0x1f2>
   27a08:	c3 c1       	rjmp	.+902    	; 0x27d90 <PID_autotune(float, int, int)+0x578>
   27a0a:	d7 01       	movw	r26, r14
   27a0c:	c6 01       	movw	r24, r12
   27a0e:	29 81       	ldd	r18, Y+1	; 0x01
   27a10:	3a 81       	ldd	r19, Y+2	; 0x02
   27a12:	4b 81       	ldd	r20, Y+3	; 0x03
   27a14:	5c 81       	ldd	r21, Y+4	; 0x04
   27a16:	82 1b       	sub	r24, r18
   27a18:	93 0b       	sbc	r25, r19
   27a1a:	a4 0b       	sbc	r26, r20
   27a1c:	b5 0b       	sbc	r27, r21
   27a1e:	b5 95       	asr	r27
   27a20:	a7 95       	ror	r26
   27a22:	97 95       	ror	r25
   27a24:	87 95       	ror	r24
          heating=false;
          if (extruder<0) {
   27a26:	21 14       	cp	r2, r1
   27a28:	31 04       	cpc	r3, r1
   27a2a:	09 f4       	brne	.+2      	; 0x27a2e <PID_autotune(float, int, int)+0x216>
   27a2c:	40 c0       	rjmp	.+128    	; 0x27aae <PID_autotune(float, int, int)+0x296>
            soft_pwm_bed = (bias - d) >> 1;
   27a2e:	80 93 1d 06 	sts	0x061D, r24	; 0x80061d <soft_pwm_bed>
		  }
          else
            soft_pwm[extruder] = (bias - d) >> 1;
          t1=_millis();
   27a32:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27a36:	6e 83       	std	Y+6, r22	; 0x06
   27a38:	7f 83       	std	Y+7, r23	; 0x07
   27a3a:	88 87       	std	Y+8, r24	; 0x08
   27a3c:	99 87       	std	Y+9, r25	; 0x09
          t_high=t1 - t2;
   27a3e:	dc 01       	movw	r26, r24
   27a40:	cb 01       	movw	r24, r22
   27a42:	2e 85       	ldd	r18, Y+14	; 0x0e
   27a44:	3f 85       	ldd	r19, Y+15	; 0x0f
   27a46:	48 89       	ldd	r20, Y+16	; 0x10
   27a48:	59 89       	ldd	r21, Y+17	; 0x11
   27a4a:	82 1b       	sub	r24, r18
   27a4c:	93 0b       	sbc	r25, r19
   27a4e:	a4 0b       	sbc	r26, r20
   27a50:	b5 0b       	sbc	r27, r21
   27a52:	8b 8f       	std	Y+27, r24	; 0x1b
   27a54:	9c 8f       	std	Y+28, r25	; 0x1c
   27a56:	ad 8f       	std	Y+29, r26	; 0x1d
   27a58:	be 8f       	std	Y+30, r27	; 0x1e
          max=temp;
   27a5a:	3a 85       	ldd	r19, Y+10	; 0x0a
   27a5c:	3e 8b       	std	Y+22, r19	; 0x16
   27a5e:	4b 85       	ldd	r20, Y+11	; 0x0b
   27a60:	4f 8b       	std	Y+23, r20	; 0x17
   27a62:	5c 85       	ldd	r21, Y+12	; 0x0c
   27a64:	58 8f       	std	Y+24, r21	; 0x18
   27a66:	8d 85       	ldd	r24, Y+13	; 0x0d
   27a68:	89 8f       	std	Y+25, r24	; 0x19
        }
      }
      if(heating == false && input < temp) {
   27a6a:	2a 85       	ldd	r18, Y+10	; 0x0a
   27a6c:	3b 85       	ldd	r19, Y+11	; 0x0b
   27a6e:	4c 85       	ldd	r20, Y+12	; 0x0c
   27a70:	5d 85       	ldd	r21, Y+13	; 0x0d
   27a72:	b8 01       	movw	r22, r16
   27a74:	88 a9       	ldd	r24, Y+48	; 0x30
   27a76:	9f a5       	ldd	r25, Y+47	; 0x2f
   27a78:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   27a7c:	87 fd       	sbrc	r24, 7
   27a7e:	1a c0       	rjmp	.+52     	; 0x27ab4 <PID_autotune(float, int, int)+0x29c>
        if(_millis() - t1 > 5000) {
   27a80:	1a 8e       	std	Y+26, r1	; 0x1a
   27a82:	86 c1       	rjmp	.+780    	; 0x27d90 <PID_autotune(float, int, int)+0x578>

  long bias, d;
  float Ku, Tu;
  float max = 0, min = 10000;
  uint8_t safety_check_cycles = 0;
  const uint8_t safety_check_cycles_count = (extruder < 0) ? 45 : 10; //10 cycles / 20s delay for extruder and 45 cycles / 90s for heatbed
   27a84:	4a e0       	ldi	r20, 0x0A	; 10
   27a86:	4f 8f       	std	Y+31, r20	; 0x1f
   27a88:	00 cf       	rjmp	.-512    	; 0x2788a <PID_autotune(float, int, int)+0x72>
     bias = d = (MAX_BED_POWER)/2;
     target_temperature_bed = (int)temp; // to display the requested target bed temperature properly on the main screen
   }
   else
   {
     soft_pwm[extruder] = (PID_MAX)/2;
   27a8a:	20 93 16 05 	sts	0x0516, r18	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
     bias = d = (PID_MAX)/2;
     target_temperature[extruder] = (int)temp; // to display the requested target extruder temperature properly on the main screen
   27a8e:	70 93 b7 0d 	sts	0x0DB7, r23	; 0x800db7 <target_temperature+0x1>
   27a92:	60 93 b6 0d 	sts	0x0DB6, r22	; 0x800db6 <target_temperature>
   27a96:	1a cf       	rjmp	.-460    	; 0x278cc <PID_autotune(float, int, int)+0xb4>
    wdt_reset();
#endif //WATCHDOG
    if(temp_meas_ready == true) { // temp sample ready
      updateTemperatures();

      input = (extruder<0)?current_temperature_bed:current_temperature[extruder];
   27a98:	00 91 ee 04 	lds	r16, 0x04EE	; 0x8004ee <current_temperature_bed>
   27a9c:	10 91 ef 04 	lds	r17, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   27aa0:	90 91 f0 04 	lds	r25, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   27aa4:	98 ab       	std	Y+48, r25	; 0x30
   27aa6:	a0 91 f1 04 	lds	r26, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   27aaa:	af a7       	std	Y+47, r26	; 0x2f
   27aac:	55 cf       	rjmp	.-342    	; 0x27958 <PID_autotune(float, int, int)+0x140>
          heating=false;
          if (extruder<0) {
            soft_pwm_bed = (bias - d) >> 1;
		  }
          else
            soft_pwm[extruder] = (bias - d) >> 1;
   27aae:	80 93 16 05 	sts	0x0516, r24	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   27ab2:	bf cf       	rjmp	.-130    	; 0x27a32 <PID_autotune(float, int, int)+0x21a>
          t_high=t1 - t2;
          max=temp;
        }
      }
      if(heating == false && input < temp) {
        if(_millis() - t1 > 5000) {
   27ab4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27ab8:	2e 81       	ldd	r18, Y+6	; 0x06
   27aba:	3f 81       	ldd	r19, Y+7	; 0x07
   27abc:	48 85       	ldd	r20, Y+8	; 0x08
   27abe:	59 85       	ldd	r21, Y+9	; 0x09
   27ac0:	62 1b       	sub	r22, r18
   27ac2:	73 0b       	sbc	r23, r19
   27ac4:	84 0b       	sbc	r24, r20
   27ac6:	95 0b       	sbc	r25, r21
   27ac8:	69 38       	cpi	r22, 0x89	; 137
   27aca:	73 41       	sbci	r23, 0x13	; 19
   27acc:	81 05       	cpc	r24, r1
   27ace:	91 05       	cpc	r25, r1
   27ad0:	b8 f2       	brcs	.-82     	; 0x27a80 <PID_autotune(float, int, int)+0x268>
          heating=true;
          t2=_millis();
   27ad2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27ad6:	6e 87       	std	Y+14, r22	; 0x0e
   27ad8:	7f 87       	std	Y+15, r23	; 0x0f
   27ada:	88 8b       	std	Y+16, r24	; 0x10
   27adc:	99 8b       	std	Y+17, r25	; 0x11
          t_low=t2 - t1;
          if(pid_cycle > 0) {
   27ade:	80 91 49 06 	lds	r24, 0x0649	; 0x800649 <pid_cycle>
   27ae2:	90 91 4a 06 	lds	r25, 0x064A	; 0x80064a <pid_cycle+0x1>
   27ae6:	18 16       	cp	r1, r24
   27ae8:	19 06       	cpc	r1, r25
   27aea:	0c f0       	brlt	.+2      	; 0x27aee <PID_autotune(float, int, int)+0x2d6>
   27aec:	2c c1       	rjmp	.+600    	; 0x27d46 <PID_autotune(float, int, int)+0x52e>
      }
      if(heating == false && input < temp) {
        if(_millis() - t1 > 5000) {
          heating=true;
          t2=_millis();
          t_low=t2 - t1;
   27aee:	8e 85       	ldd	r24, Y+14	; 0x0e
   27af0:	9f 85       	ldd	r25, Y+15	; 0x0f
   27af2:	a8 89       	ldd	r26, Y+16	; 0x10
   27af4:	b9 89       	ldd	r27, Y+17	; 0x11
   27af6:	2e 81       	ldd	r18, Y+6	; 0x06
   27af8:	3f 81       	ldd	r19, Y+7	; 0x07
   27afa:	48 85       	ldd	r20, Y+8	; 0x08
   27afc:	59 85       	ldd	r21, Y+9	; 0x09
   27afe:	82 1b       	sub	r24, r18
   27b00:	93 0b       	sbc	r25, r19
   27b02:	a4 0b       	sbc	r26, r20
   27b04:	b5 0b       	sbc	r27, r21
          if(pid_cycle > 0) {
            bias += (d*(t_high - t_low))/(t_low + t_high);
   27b06:	4b 8c       	ldd	r4, Y+27	; 0x1b
   27b08:	5c 8c       	ldd	r5, Y+28	; 0x1c
   27b0a:	6d 8c       	ldd	r6, Y+29	; 0x1d
   27b0c:	7e 8c       	ldd	r7, Y+30	; 0x1e
   27b0e:	48 0e       	add	r4, r24
   27b10:	59 1e       	adc	r5, r25
   27b12:	6a 1e       	adc	r6, r26
   27b14:	7b 1e       	adc	r7, r27
   27b16:	2b 8d       	ldd	r18, Y+27	; 0x1b
   27b18:	3c 8d       	ldd	r19, Y+28	; 0x1c
   27b1a:	4d 8d       	ldd	r20, Y+29	; 0x1d
   27b1c:	5e 8d       	ldd	r21, Y+30	; 0x1e
   27b1e:	28 1b       	sub	r18, r24
   27b20:	39 0b       	sbc	r19, r25
   27b22:	4a 0b       	sbc	r20, r26
   27b24:	5b 0b       	sbc	r21, r27
   27b26:	69 81       	ldd	r22, Y+1	; 0x01
   27b28:	7a 81       	ldd	r23, Y+2	; 0x02
   27b2a:	8b 81       	ldd	r24, Y+3	; 0x03
   27b2c:	9c 81       	ldd	r25, Y+4	; 0x04
   27b2e:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   27b32:	a3 01       	movw	r20, r6
   27b34:	92 01       	movw	r18, r4
   27b36:	0f 94 4c dd 	call	0x3ba98	; 0x3ba98 <__divmodsi4>
   27b3a:	da 01       	movw	r26, r20
   27b3c:	c9 01       	movw	r24, r18
   27b3e:	8c 0d       	add	r24, r12
   27b40:	9d 1d       	adc	r25, r13
   27b42:	ae 1d       	adc	r26, r14
   27b44:	bf 1d       	adc	r27, r15
            bias = constrain(bias, 20 ,(extruder<0?(MAX_BED_POWER):(PID_MAX))-20);
   27b46:	84 31       	cpi	r24, 0x14	; 20
   27b48:	91 05       	cpc	r25, r1
   27b4a:	a1 05       	cpc	r26, r1
   27b4c:	b1 05       	cpc	r27, r1
   27b4e:	0c f4       	brge	.+2      	; 0x27b52 <PID_autotune(float, int, int)+0x33a>
   27b50:	3c c1       	rjmp	.+632    	; 0x27dca <PID_autotune(float, int, int)+0x5b2>
   27b52:	6c 01       	movw	r12, r24
   27b54:	7d 01       	movw	r14, r26
   27b56:	3c ee       	ldi	r19, 0xEC	; 236
   27b58:	c3 16       	cp	r12, r19
   27b5a:	d1 04       	cpc	r13, r1
   27b5c:	e1 04       	cpc	r14, r1
   27b5e:	f1 04       	cpc	r15, r1
   27b60:	2c f0       	brlt	.+10     	; 0x27b6c <PID_autotune(float, int, int)+0x354>
   27b62:	4b ee       	ldi	r20, 0xEB	; 235
   27b64:	c4 2e       	mov	r12, r20
   27b66:	d1 2c       	mov	r13, r1
   27b68:	e1 2c       	mov	r14, r1
   27b6a:	f1 2c       	mov	r15, r1
            if(bias > (extruder<0?(MAX_BED_POWER):(PID_MAX))/2) d = (extruder<0?(MAX_BED_POWER):(PID_MAX)) - 1 - bias;
   27b6c:	80 38       	cpi	r24, 0x80	; 128
   27b6e:	91 05       	cpc	r25, r1
   27b70:	a1 05       	cpc	r26, r1
   27b72:	b1 05       	cpc	r27, r1
   27b74:	0c f4       	brge	.+2      	; 0x27b78 <PID_autotune(float, int, int)+0x360>
   27b76:	37 c1       	rjmp	.+622    	; 0x27de6 <PID_autotune(float, int, int)+0x5ce>
   27b78:	8e ef       	ldi	r24, 0xFE	; 254
   27b7a:	90 e0       	ldi	r25, 0x00	; 0
   27b7c:	a0 e0       	ldi	r26, 0x00	; 0
   27b7e:	b0 e0       	ldi	r27, 0x00	; 0
   27b80:	8c 19       	sub	r24, r12
   27b82:	9d 09       	sbc	r25, r13
   27b84:	ae 09       	sbc	r26, r14
   27b86:	bf 09       	sbc	r27, r15
   27b88:	89 83       	std	Y+1, r24	; 0x01
   27b8a:	9a 83       	std	Y+2, r25	; 0x02
   27b8c:	ab 83       	std	Y+3, r26	; 0x03
   27b8e:	bc 83       	std	Y+4, r27	; 0x04
            else d = bias;

            SERIAL_PROTOCOLPGM(" bias: "); SERIAL_PROTOCOL(bias);
   27b90:	8c e5       	ldi	r24, 0x5C	; 92
   27b92:	9a e9       	ldi	r25, 0x9A	; 154
   27b94:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27b98:	c7 01       	movw	r24, r14
   27b9a:	b6 01       	movw	r22, r12
   27b9c:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
            SERIAL_PROTOCOLPGM(" d: "); SERIAL_PROTOCOL(d);
   27ba0:	87 e5       	ldi	r24, 0x57	; 87
   27ba2:	9a e9       	ldi	r25, 0x9A	; 154
   27ba4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27ba8:	69 81       	ldd	r22, Y+1	; 0x01
   27baa:	7a 81       	ldd	r23, Y+2	; 0x02
   27bac:	8b 81       	ldd	r24, Y+3	; 0x03
   27bae:	9c 81       	ldd	r25, Y+4	; 0x04
   27bb0:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
            SERIAL_PROTOCOLPGM(" min: "); SERIAL_PROTOCOL(min);
   27bb4:	80 e5       	ldi	r24, 0x50	; 80
   27bb6:	9a e9       	ldi	r25, 0x9A	; 154
   27bb8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   27bbc:	42 e0       	ldi	r20, 0x02	; 2
   27bbe:	6a 89       	ldd	r22, Y+18	; 0x12
   27bc0:	7b 89       	ldd	r23, Y+19	; 0x13
   27bc2:	8c 89       	ldd	r24, Y+20	; 0x14
   27bc4:	9d 89       	ldd	r25, Y+21	; 0x15
   27bc6:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
            SERIAL_PROTOCOLPGM(" max: "); SERIAL_PROTOCOLLN(max);
   27bca:	89 e4       	ldi	r24, 0x49	; 73
   27bcc:	9a e9       	ldi	r25, 0x9A	; 154
   27bce:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27bd2:	6e 89       	ldd	r22, Y+22	; 0x16
   27bd4:	7f 89       	ldd	r23, Y+23	; 0x17
   27bd6:	88 8d       	ldd	r24, Y+24	; 0x18
   27bd8:	99 8d       	ldd	r25, Y+25	; 0x19
   27bda:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
            if(pid_cycle > 2) {
   27bde:	80 91 49 06 	lds	r24, 0x0649	; 0x800649 <pid_cycle>
   27be2:	90 91 4a 06 	lds	r25, 0x064A	; 0x80064a <pid_cycle+0x1>
   27be6:	03 97       	sbiw	r24, 0x03	; 3
   27be8:	0c f4       	brge	.+2      	; 0x27bec <PID_autotune(float, int, int)+0x3d4>
   27bea:	ad c0       	rjmp	.+346    	; 0x27d46 <PID_autotune(float, int, int)+0x52e>
              Ku = (4.0*d)/(3.14159*(max-min)/2.0);
   27bec:	69 81       	ldd	r22, Y+1	; 0x01
   27bee:	7a 81       	ldd	r23, Y+2	; 0x02
   27bf0:	8b 81       	ldd	r24, Y+3	; 0x03
   27bf2:	9c 81       	ldd	r25, Y+4	; 0x04
   27bf4:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   27bf8:	20 e0       	ldi	r18, 0x00	; 0
   27bfa:	30 e0       	ldi	r19, 0x00	; 0
   27bfc:	40 e8       	ldi	r20, 0x80	; 128
   27bfe:	50 e4       	ldi	r21, 0x40	; 64
   27c00:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27c04:	4b 01       	movw	r8, r22
   27c06:	5c 01       	movw	r10, r24
   27c08:	2a 89       	ldd	r18, Y+18	; 0x12
   27c0a:	3b 89       	ldd	r19, Y+19	; 0x13
   27c0c:	4c 89       	ldd	r20, Y+20	; 0x14
   27c0e:	5d 89       	ldd	r21, Y+21	; 0x15
   27c10:	6e 89       	ldd	r22, Y+22	; 0x16
   27c12:	7f 89       	ldd	r23, Y+23	; 0x17
   27c14:	88 8d       	ldd	r24, Y+24	; 0x18
   27c16:	99 8d       	ldd	r25, Y+25	; 0x19
   27c18:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   27c1c:	20 ed       	ldi	r18, 0xD0	; 208
   27c1e:	3f e0       	ldi	r19, 0x0F	; 15
   27c20:	49 e4       	ldi	r20, 0x49	; 73
   27c22:	50 e4       	ldi	r21, 0x40	; 64
   27c24:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27c28:	20 e0       	ldi	r18, 0x00	; 0
   27c2a:	30 e0       	ldi	r19, 0x00	; 0
   27c2c:	40 e0       	ldi	r20, 0x00	; 0
   27c2e:	5f e3       	ldi	r21, 0x3F	; 63
   27c30:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27c34:	9b 01       	movw	r18, r22
   27c36:	ac 01       	movw	r20, r24
   27c38:	c5 01       	movw	r24, r10
   27c3a:	b4 01       	movw	r22, r8
   27c3c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   27c40:	4b 01       	movw	r8, r22
   27c42:	5c 01       	movw	r10, r24
              Tu = ((float)(t_low + t_high)/1000.0);
   27c44:	c3 01       	movw	r24, r6
   27c46:	b2 01       	movw	r22, r4
   27c48:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   27c4c:	20 e0       	ldi	r18, 0x00	; 0
   27c4e:	30 e0       	ldi	r19, 0x00	; 0
   27c50:	4a e7       	ldi	r20, 0x7A	; 122
   27c52:	54 e4       	ldi	r21, 0x44	; 68
   27c54:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   27c58:	2b 01       	movw	r4, r22
   27c5a:	3c 01       	movw	r6, r24
              SERIAL_PROTOCOLPGM(" Ku: "); SERIAL_PROTOCOL(Ku);
   27c5c:	83 e4       	ldi	r24, 0x43	; 67
   27c5e:	9a e9       	ldi	r25, 0x9A	; 154
   27c60:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27c64:	42 e0       	ldi	r20, 0x02	; 2
   27c66:	c5 01       	movw	r24, r10
   27c68:	b4 01       	movw	r22, r8
   27c6a:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
              SERIAL_PROTOCOLPGM(" Tu: "); SERIAL_PROTOCOLLN(Tu);
   27c6e:	8d e3       	ldi	r24, 0x3D	; 61
   27c70:	9a e9       	ldi	r25, 0x9A	; 154
   27c72:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27c76:	c3 01       	movw	r24, r6
   27c78:	b2 01       	movw	r22, r4
   27c7a:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
              _Kp = 0.6*Ku;
   27c7e:	2a e9       	ldi	r18, 0x9A	; 154
   27c80:	39 e9       	ldi	r19, 0x99	; 153
   27c82:	49 e1       	ldi	r20, 0x19	; 25
   27c84:	5f e3       	ldi	r21, 0x3F	; 63
   27c86:	c5 01       	movw	r24, r10
   27c88:	b4 01       	movw	r22, r8
   27c8a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27c8e:	4b 01       	movw	r8, r22
   27c90:	5c 01       	movw	r10, r24
   27c92:	80 92 f3 03 	sts	0x03F3, r8	; 0x8003f3 <_Kp>
   27c96:	90 92 f4 03 	sts	0x03F4, r9	; 0x8003f4 <_Kp+0x1>
   27c9a:	a0 92 f5 03 	sts	0x03F5, r10	; 0x8003f5 <_Kp+0x2>
   27c9e:	b0 92 f6 03 	sts	0x03F6, r11	; 0x8003f6 <_Kp+0x3>
              _Ki = 2*_Kp/Tu;
   27ca2:	ac 01       	movw	r20, r24
   27ca4:	9b 01       	movw	r18, r22
   27ca6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   27caa:	a3 01       	movw	r20, r6
   27cac:	92 01       	movw	r18, r4
   27cae:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   27cb2:	60 93 ef 03 	sts	0x03EF, r22	; 0x8003ef <_Ki>
   27cb6:	70 93 f0 03 	sts	0x03F0, r23	; 0x8003f0 <_Ki+0x1>
   27cba:	80 93 f1 03 	sts	0x03F1, r24	; 0x8003f1 <_Ki+0x2>
   27cbe:	90 93 f2 03 	sts	0x03F2, r25	; 0x8003f2 <_Ki+0x3>
              _Kd = _Kp*Tu/8;
   27cc2:	a3 01       	movw	r20, r6
   27cc4:	92 01       	movw	r18, r4
   27cc6:	c5 01       	movw	r24, r10
   27cc8:	b4 01       	movw	r22, r8
   27cca:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27cce:	20 e0       	ldi	r18, 0x00	; 0
   27cd0:	30 e0       	ldi	r19, 0x00	; 0
   27cd2:	40 e0       	ldi	r20, 0x00	; 0
   27cd4:	5e e3       	ldi	r21, 0x3E	; 62
   27cd6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   27cda:	60 93 eb 03 	sts	0x03EB, r22	; 0x8003eb <_Kd>
   27cde:	70 93 ec 03 	sts	0x03EC, r23	; 0x8003ec <_Kd+0x1>
   27ce2:	80 93 ed 03 	sts	0x03ED, r24	; 0x8003ed <_Kd+0x2>
   27ce6:	90 93 ee 03 	sts	0x03EE, r25	; 0x8003ee <_Kd+0x3>
              SERIAL_PROTOCOLLNPGM(" Classic PID ");
   27cea:	8f e2       	ldi	r24, 0x2F	; 47
   27cec:	9a e9       	ldi	r25, 0x9A	; 154
   27cee:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
              SERIAL_PROTOCOLPGM(" Kp: "); SERIAL_PROTOCOLLN(_Kp);
   27cf2:	89 e2       	ldi	r24, 0x29	; 41
   27cf4:	9a e9       	ldi	r25, 0x9A	; 154
   27cf6:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27cfa:	60 91 f3 03 	lds	r22, 0x03F3	; 0x8003f3 <_Kp>
   27cfe:	70 91 f4 03 	lds	r23, 0x03F4	; 0x8003f4 <_Kp+0x1>
   27d02:	80 91 f5 03 	lds	r24, 0x03F5	; 0x8003f5 <_Kp+0x2>
   27d06:	90 91 f6 03 	lds	r25, 0x03F6	; 0x8003f6 <_Kp+0x3>
   27d0a:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
              SERIAL_PROTOCOLPGM(" Ki: "); SERIAL_PROTOCOLLN(_Ki);
   27d0e:	83 e2       	ldi	r24, 0x23	; 35
   27d10:	9a e9       	ldi	r25, 0x9A	; 154
   27d12:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27d16:	60 91 ef 03 	lds	r22, 0x03EF	; 0x8003ef <_Ki>
   27d1a:	70 91 f0 03 	lds	r23, 0x03F0	; 0x8003f0 <_Ki+0x1>
   27d1e:	80 91 f1 03 	lds	r24, 0x03F1	; 0x8003f1 <_Ki+0x2>
   27d22:	90 91 f2 03 	lds	r25, 0x03F2	; 0x8003f2 <_Ki+0x3>
   27d26:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
              SERIAL_PROTOCOLPGM(" Kd: "); SERIAL_PROTOCOLLN(_Kd);
   27d2a:	8d e1       	ldi	r24, 0x1D	; 29
   27d2c:	9a e9       	ldi	r25, 0x9A	; 154
   27d2e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27d32:	60 91 eb 03 	lds	r22, 0x03EB	; 0x8003eb <_Kd>
   27d36:	70 91 ec 03 	lds	r23, 0x03EC	; 0x8003ec <_Kd+0x1>
   27d3a:	80 91 ed 03 	lds	r24, 0x03ED	; 0x8003ed <_Kd+0x2>
   27d3e:	90 91 ee 03 	lds	r25, 0x03EE	; 0x8003ee <_Kd+0x3>
   27d42:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
   27d46:	89 81       	ldd	r24, Y+1	; 0x01
   27d48:	9a 81       	ldd	r25, Y+2	; 0x02
   27d4a:	ab 81       	ldd	r26, Y+3	; 0x03
   27d4c:	bc 81       	ldd	r27, Y+4	; 0x04
   27d4e:	8c 0d       	add	r24, r12
   27d50:	9d 1d       	adc	r25, r13
   27d52:	ae 1d       	adc	r26, r14
   27d54:	bf 1d       	adc	r27, r15
   27d56:	b5 95       	asr	r27
   27d58:	a7 95       	ror	r26
   27d5a:	97 95       	ror	r25
   27d5c:	87 95       	ror	r24
              SERIAL_PROTOCOLPGM(" Ki: "); SERIAL_PROTOCOLLN(_Ki);
              SERIAL_PROTOCOLPGM(" Kd: "); SERIAL_PROTOCOLLN(_Kd);
              */
            }
          }
          if (extruder<0)
   27d5e:	21 14       	cp	r2, r1
   27d60:	31 04       	cpc	r3, r1
   27d62:	09 f4       	brne	.+2      	; 0x27d66 <PID_autotune(float, int, int)+0x54e>
   27d64:	45 c0       	rjmp	.+138    	; 0x27df0 <PID_autotune(float, int, int)+0x5d8>
		  {
            soft_pwm_bed = (bias + d) >> 1;
   27d66:	80 93 1d 06 	sts	0x061D, r24	; 0x80061d <soft_pwm_bed>
		  }
          else
            soft_pwm[extruder] = (bias + d) >> 1;
          pid_cycle++;
   27d6a:	80 91 49 06 	lds	r24, 0x0649	; 0x800649 <pid_cycle>
   27d6e:	90 91 4a 06 	lds	r25, 0x064A	; 0x80064a <pid_cycle+0x1>
   27d72:	01 96       	adiw	r24, 0x01	; 1
   27d74:	90 93 4a 06 	sts	0x064A, r25	; 0x80064a <pid_cycle+0x1>
   27d78:	80 93 49 06 	sts	0x0649, r24	; 0x800649 <pid_cycle>
          min=temp;
   27d7c:	3a 85       	ldd	r19, Y+10	; 0x0a
   27d7e:	3a 8b       	std	Y+18, r19	; 0x12
   27d80:	4b 85       	ldd	r20, Y+11	; 0x0b
   27d82:	4b 8b       	std	Y+19, r20	; 0x13
   27d84:	5c 85       	ldd	r21, Y+12	; 0x0c
   27d86:	5c 8b       	std	Y+20, r21	; 0x14
   27d88:	8d 85       	ldd	r24, Y+13	; 0x0d
   27d8a:	8d 8b       	std	Y+21, r24	; 0x15
          max=temp;
        }
      }
      if(heating == false && input < temp) {
        if(_millis() - t1 > 5000) {
          heating=true;
   27d8c:	98 a5       	ldd	r25, Y+40	; 0x28
   27d8e:	9a 8f       	std	Y+26, r25	; 0x1a
      }
    }
    #ifndef MAX_OVERSHOOT_PID_AUTOTUNE
      #define MAX_OVERSHOOT_PID_AUTOTUNE 20
    #endif
    if(input > (temp + MAX_OVERSHOOT_PID_AUTOTUNE)) {
   27d90:	20 e0       	ldi	r18, 0x00	; 0
   27d92:	30 e0       	ldi	r19, 0x00	; 0
   27d94:	40 ef       	ldi	r20, 0xF0	; 240
   27d96:	51 e4       	ldi	r21, 0x41	; 65
   27d98:	6a 85       	ldd	r22, Y+10	; 0x0a
   27d9a:	7b 85       	ldd	r23, Y+11	; 0x0b
   27d9c:	8c 85       	ldd	r24, Y+12	; 0x0c
   27d9e:	9d 85       	ldd	r25, Y+13	; 0x0d
   27da0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   27da4:	98 01       	movw	r18, r16
   27da6:	48 a9       	ldd	r20, Y+48	; 0x30
   27da8:	5f a5       	ldd	r21, Y+47	; 0x2f
   27daa:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   27dae:	87 ff       	sbrs	r24, 7
   27db0:	22 c0       	rjmp	.+68     	; 0x27df6 <PID_autotune(float, int, int)+0x5de>
      SERIAL_PROTOCOLLNPGM("PID Autotune failed! Temperature too high");
   27db2:	83 ef       	ldi	r24, 0xF3	; 243
   27db4:	99 e9       	ldi	r25, 0x99	; 153
	  pid_tuning_finished = true;
	  pid_cycle = 0;
      return;
    }
    if(pid_cycle > ncycles) {
      SERIAL_PROTOCOLLNPGM("PID Autotune finished! Put the last Kp, Ki and Kd constants from above into Configuration.h");
   27db6:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
	  pid_tuning_finished = true;
   27dba:	81 e0       	ldi	r24, 0x01	; 1
   27dbc:	80 93 3e 02 	sts	0x023E, r24	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
	  pid_cycle = 0;
   27dc0:	10 92 4a 06 	sts	0x064A, r1	; 0x80064a <pid_cycle+0x1>
   27dc4:	10 92 49 06 	sts	0x0649, r1	; 0x800649 <pid_cycle>
   27dc8:	98 c0       	rjmp	.+304    	; 0x27efa <PID_autotune(float, int, int)+0x6e2>
          heating=true;
          t2=_millis();
          t_low=t2 - t1;
          if(pid_cycle > 0) {
            bias += (d*(t_high - t_low))/(t_low + t_high);
            bias = constrain(bias, 20 ,(extruder<0?(MAX_BED_POWER):(PID_MAX))-20);
   27dca:	34 e1       	ldi	r19, 0x14	; 20
   27dcc:	c3 2e       	mov	r12, r19
   27dce:	d1 2c       	mov	r13, r1
   27dd0:	e1 2c       	mov	r14, r1
   27dd2:	f1 2c       	mov	r15, r1
   27dd4:	24 e1       	ldi	r18, 0x14	; 20
   27dd6:	30 e0       	ldi	r19, 0x00	; 0
   27dd8:	40 e0       	ldi	r20, 0x00	; 0
   27dda:	50 e0       	ldi	r21, 0x00	; 0
   27ddc:	29 83       	std	Y+1, r18	; 0x01
   27dde:	3a 83       	std	Y+2, r19	; 0x02
   27de0:	4b 83       	std	Y+3, r20	; 0x03
   27de2:	5c 83       	std	Y+4, r21	; 0x04
   27de4:	d5 ce       	rjmp	.-598    	; 0x27b90 <PID_autotune(float, int, int)+0x378>
   27de6:	c9 82       	std	Y+1, r12	; 0x01
   27de8:	da 82       	std	Y+2, r13	; 0x02
   27dea:	eb 82       	std	Y+3, r14	; 0x03
   27dec:	fc 82       	std	Y+4, r15	; 0x04
   27dee:	d0 ce       	rjmp	.-608    	; 0x27b90 <PID_autotune(float, int, int)+0x378>
          if (extruder<0)
		  {
            soft_pwm_bed = (bias + d) >> 1;
		  }
          else
            soft_pwm[extruder] = (bias + d) >> 1;
   27df0:	80 93 16 05 	sts	0x0516, r24	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   27df4:	ba cf       	rjmp	.-140    	; 0x27d6a <PID_autotune(float, int, int)+0x552>
      SERIAL_PROTOCOLLNPGM("PID Autotune failed! Temperature too high");
	  pid_tuning_finished = true;
	  pid_cycle = 0;
      return;
    }
    if(_millis() - temp_millis > 2000) {
   27df6:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27dfa:	28 a1       	ldd	r18, Y+32	; 0x20
   27dfc:	39 a1       	ldd	r19, Y+33	; 0x21
   27dfe:	4a a1       	ldd	r20, Y+34	; 0x22
   27e00:	5b a1       	ldd	r21, Y+35	; 0x23
   27e02:	62 1b       	sub	r22, r18
   27e04:	73 0b       	sbc	r23, r19
   27e06:	84 0b       	sbc	r24, r20
   27e08:	95 0b       	sbc	r25, r21
   27e0a:	61 3d       	cpi	r22, 0xD1	; 209
   27e0c:	77 40       	sbci	r23, 0x07	; 7
   27e0e:	81 05       	cpc	r24, r1
   27e10:	91 05       	cpc	r25, r1
   27e12:	58 f1       	brcs	.+86     	; 0x27e6a <PID_autotune(float, int, int)+0x652>
      int p;
      if (extruder<0){
        p=soft_pwm_bed;
   27e14:	a0 90 1d 06 	lds	r10, 0x061D	; 0x80061d <soft_pwm_bed>
   27e18:	b1 2c       	mov	r11, r1
        SERIAL_PROTOCOLPGM("B:");
   27e1a:	80 ef       	ldi	r24, 0xF0	; 240
   27e1c:	99 e9       	ldi	r25, 0x99	; 153
	  pid_cycle = 0;
      return;
    }
    if(_millis() - temp_millis > 2000) {
      int p;
      if (extruder<0){
   27e1e:	21 14       	cp	r2, r1
   27e20:	31 04       	cpc	r3, r1
   27e22:	29 f4       	brne	.+10     	; 0x27e2e <PID_autotune(float, int, int)+0x616>
        p=soft_pwm_bed;
        SERIAL_PROTOCOLPGM("B:");
      }else{
        p=soft_pwm[extruder];
   27e24:	a0 90 16 05 	lds	r10, 0x0516	; 0x800516 <_ZL8soft_pwm.lto_priv.461>
   27e28:	b1 2c       	mov	r11, r1
        SERIAL_PROTOCOLPGM("T:");
   27e2a:	8d ee       	ldi	r24, 0xED	; 237
   27e2c:	99 e9       	ldi	r25, 0x99	; 153
   27e2e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   27e32:	42 e0       	ldi	r20, 0x02	; 2
   27e34:	b8 01       	movw	r22, r16
   27e36:	88 a9       	ldd	r24, Y+48	; 0x30
   27e38:	9f a5       	ldd	r25, Y+47	; 0x2f
   27e3a:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
      }

      SERIAL_PROTOCOL(input);
      SERIAL_PROTOCOLPGM(" @:");
   27e3e:	89 ee       	ldi	r24, 0xE9	; 233
   27e40:	99 e9       	ldi	r25, 0x99	; 153
   27e42:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_PROTOCOLLN(p);
   27e46:	c5 01       	movw	r24, r10
   27e48:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
		if (safety_check_cycles == 0) { //save ambient temp
   27e4c:	4d 81       	ldd	r20, Y+5	; 0x05
   27e4e:	44 23       	and	r20, r20
   27e50:	09 f4       	brne	.+2      	; 0x27e54 <PID_autotune(float, int, int)+0x63c>
   27e52:	6c c0       	rjmp	.+216    	; 0x27f2c <PID_autotune(float, int, int)+0x714>
			temp_ambient = input;
			//SERIAL_ECHOPGM("Ambient T: ");
			//MYSERIAL.println(temp_ambient);
			safety_check_cycles++;
		}
		else if (safety_check_cycles < safety_check_cycles_count) { //delay
   27e54:	5f 8d       	ldd	r21, Y+31	; 0x1f
   27e56:	45 17       	cp	r20, r21
   27e58:	70 f5       	brcc	.+92     	; 0x27eb6 <PID_autotune(float, int, int)+0x69e>
			safety_check_cycles++;
   27e5a:	4f 5f       	subi	r20, 0xFF	; 255
   27e5c:	4d 83       	std	Y+5, r20	; 0x05
				temp_runaway_stop(false, (extruder<0));
				pid_tuning_finished = true;
				return;
			}
		}
      temp_millis = _millis();
   27e5e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27e62:	68 a3       	std	Y+32, r22	; 0x20
   27e64:	79 a3       	std	Y+33, r23	; 0x21
   27e66:	8a a3       	std	Y+34, r24	; 0x22
   27e68:	9b a3       	std	Y+35, r25	; 0x23
    }
    if(((_millis() - t1) + (_millis() - t2)) > (10L*60L*1000L*2L)) {
   27e6a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27e6e:	4b 01       	movw	r8, r22
   27e70:	5c 01       	movw	r10, r24
   27e72:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27e76:	4e 80       	ldd	r4, Y+6	; 0x06
   27e78:	5f 80       	ldd	r5, Y+7	; 0x07
   27e7a:	68 84       	ldd	r6, Y+8	; 0x08
   27e7c:	79 84       	ldd	r7, Y+9	; 0x09
   27e7e:	2e 85       	ldd	r18, Y+14	; 0x0e
   27e80:	3f 85       	ldd	r19, Y+15	; 0x0f
   27e82:	48 89       	ldd	r20, Y+16	; 0x10
   27e84:	59 89       	ldd	r21, Y+17	; 0x11
   27e86:	42 0e       	add	r4, r18
   27e88:	53 1e       	adc	r5, r19
   27e8a:	64 1e       	adc	r6, r20
   27e8c:	75 1e       	adc	r7, r21
   27e8e:	84 18       	sub	r8, r4
   27e90:	95 08       	sbc	r9, r5
   27e92:	a6 08       	sbc	r10, r6
   27e94:	b7 08       	sbc	r11, r7
   27e96:	86 0e       	add	r8, r22
   27e98:	97 1e       	adc	r9, r23
   27e9a:	a8 1e       	adc	r10, r24
   27e9c:	b9 1e       	adc	r11, r25
   27e9e:	31 e8       	ldi	r19, 0x81	; 129
   27ea0:	83 16       	cp	r8, r19
   27ea2:	3f e4       	ldi	r19, 0x4F	; 79
   27ea4:	93 06       	cpc	r9, r19
   27ea6:	32 e1       	ldi	r19, 0x12	; 18
   27ea8:	a3 06       	cpc	r10, r19
   27eaa:	b1 04       	cpc	r11, r1
   27eac:	08 f4       	brcc	.+2      	; 0x27eb0 <PID_autotune(float, int, int)+0x698>
   27eae:	47 c0       	rjmp	.+142    	; 0x27f3e <PID_autotune(float, int, int)+0x726>
      SERIAL_PROTOCOLLNPGM("PID Autotune failed! timeout");
   27eb0:	8c ec       	ldi	r24, 0xCC	; 204
   27eb2:	99 e9       	ldi	r25, 0x99	; 153
   27eb4:	80 cf       	rjmp	.-256    	; 0x27db6 <PID_autotune(float, int, int)+0x59e>
			safety_check_cycles++;
		}
		else if (safety_check_cycles < safety_check_cycles_count) { //delay
			safety_check_cycles++;
		}
		else if (safety_check_cycles == safety_check_cycles_count){ //check that temperature is rising
   27eb6:	8d 81       	ldd	r24, Y+5	; 0x05
   27eb8:	9f 8d       	ldd	r25, Y+31	; 0x1f
   27eba:	89 13       	cpse	r24, r25
   27ebc:	d0 cf       	rjmp	.-96     	; 0x27e5e <PID_autotune(float, int, int)+0x646>
			safety_check_cycles++;
   27ebe:	8f 5f       	subi	r24, 0xFF	; 255
   27ec0:	8d 83       	std	Y+5, r24	; 0x05
			//SERIAL_ECHOPGM("Time from beginning: ");
			//MYSERIAL.print(safety_check_cycles_count * 2);
			//SERIAL_ECHOPGM("s. Difference between current and ambient T: ");
			//MYSERIAL.println(input - temp_ambient);

			if (fabs(input - temp_ambient) < 5.0) {
   27ec2:	2b a5       	ldd	r18, Y+43	; 0x2b
   27ec4:	3c a5       	ldd	r19, Y+44	; 0x2c
   27ec6:	4d a5       	ldd	r20, Y+45	; 0x2d
   27ec8:	5e a5       	ldd	r21, Y+46	; 0x2e
   27eca:	b8 01       	movw	r22, r16
   27ecc:	88 a9       	ldd	r24, Y+48	; 0x30
   27ece:	9f a5       	ldd	r25, Y+47	; 0x2f
   27ed0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   27ed4:	9f 77       	andi	r25, 0x7F	; 127
   27ed6:	20 e0       	ldi	r18, 0x00	; 0
   27ed8:	30 e0       	ldi	r19, 0x00	; 0
   27eda:	40 ea       	ldi	r20, 0xA0	; 160
   27edc:	50 e4       	ldi	r21, 0x40	; 64
   27ede:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   27ee2:	87 ff       	sbrs	r24, 7
   27ee4:	bc cf       	rjmp	.-136    	; 0x27e5e <PID_autotune(float, int, int)+0x646>
				temp_runaway_stop(false, (extruder<0));
   27ee6:	63 2d       	mov	r22, r3
   27ee8:	66 1f       	adc	r22, r22
   27eea:	66 27       	eor	r22, r22
   27eec:	66 1f       	adc	r22, r22
   27eee:	80 e0       	ldi	r24, 0x00	; 0
   27ef0:	0f 94 46 20 	call	0x2408c	; 0x2408c <temp_runaway_stop(bool, bool)>
				pid_tuning_finished = true;
   27ef4:	81 e0       	ldi	r24, 0x01	; 1
   27ef6:	80 93 3e 02 	sts	0x023E, r24	; 0x80023e <_ZL19pid_tuning_finished.lto_priv.460>
	  pid_cycle = 0;
      return;
    }
    lcd_update(0);
  }
}
   27efa:	e0 96       	adiw	r28, 0x30	; 48
   27efc:	0f b6       	in	r0, 0x3f	; 63
   27efe:	f8 94       	cli
   27f00:	de bf       	out	0x3e, r29	; 62
   27f02:	0f be       	out	0x3f, r0	; 63
   27f04:	cd bf       	out	0x3d, r28	; 61
   27f06:	df 91       	pop	r29
   27f08:	cf 91       	pop	r28
   27f0a:	1f 91       	pop	r17
   27f0c:	0f 91       	pop	r16
   27f0e:	ff 90       	pop	r15
   27f10:	ef 90       	pop	r14
   27f12:	df 90       	pop	r13
   27f14:	cf 90       	pop	r12
   27f16:	bf 90       	pop	r11
   27f18:	af 90       	pop	r10
   27f1a:	9f 90       	pop	r9
   27f1c:	8f 90       	pop	r8
   27f1e:	7f 90       	pop	r7
   27f20:	6f 90       	pop	r6
   27f22:	5f 90       	pop	r5
   27f24:	4f 90       	pop	r4
   27f26:	3f 90       	pop	r3
   27f28:	2f 90       	pop	r2
   27f2a:	08 95       	ret

      SERIAL_PROTOCOL(input);
      SERIAL_PROTOCOLPGM(" @:");
      SERIAL_PROTOCOLLN(p);
		if (safety_check_cycles == 0) { //save ambient temp
			temp_ambient = input;
   27f2c:	0b a7       	std	Y+43, r16	; 0x2b
   27f2e:	1c a7       	std	Y+44, r17	; 0x2c
   27f30:	a8 a9       	ldd	r26, Y+48	; 0x30
   27f32:	ad a7       	std	Y+45, r26	; 0x2d
   27f34:	bf a5       	ldd	r27, Y+47	; 0x2f
   27f36:	be a7       	std	Y+46, r27	; 0x2e
			//SERIAL_ECHOPGM("Ambient T: ");
			//MYSERIAL.println(temp_ambient);
			safety_check_cycles++;
   27f38:	21 e0       	ldi	r18, 0x01	; 1
   27f3a:	2d 83       	std	Y+5, r18	; 0x05
   27f3c:	90 cf       	rjmp	.-224    	; 0x27e5e <PID_autotune(float, int, int)+0x646>
      SERIAL_PROTOCOLLNPGM("PID Autotune failed! timeout");
	  pid_tuning_finished = true;
	  pid_cycle = 0;
      return;
    }
    if(pid_cycle > ncycles) {
   27f3e:	80 91 49 06 	lds	r24, 0x0649	; 0x800649 <pid_cycle>
   27f42:	90 91 4a 06 	lds	r25, 0x064A	; 0x80064a <pid_cycle+0x1>
   27f46:	49 a5       	ldd	r20, Y+41	; 0x29
   27f48:	5a a5       	ldd	r21, Y+42	; 0x2a
   27f4a:	48 17       	cp	r20, r24
   27f4c:	59 07       	cpc	r21, r25
   27f4e:	1c f4       	brge	.+6      	; 0x27f56 <PID_autotune(float, int, int)+0x73e>
      SERIAL_PROTOCOLLNPGM("PID Autotune finished! Put the last Kp, Ki and Kd constants from above into Configuration.h");
   27f50:	80 e7       	ldi	r24, 0x70	; 112
   27f52:	99 e9       	ldi	r25, 0x99	; 153
   27f54:	30 cf       	rjmp	.-416    	; 0x27db6 <PID_autotune(float, int, int)+0x59e>
	  pid_tuning_finished = true;
	  pid_cycle = 0;
      return;
    }
    lcd_update(0);
   27f56:	80 e0       	ldi	r24, 0x00	; 0
   27f58:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   27f5c:	e6 cc       	rjmp	.-1588   	; 0x2792a <PID_autotune(float, int, int)+0x112>

00027f5e <Stopwatch::duration()>:
  startTimestamp = 0;
  stopTimestamp = 0;
  accumulator = 0;
}

uint32_t Stopwatch::duration() {
   27f5e:	0f 93       	push	r16
   27f60:	1f 93       	push	r17
  return accumulator + MS_TO_SEC((isRunning() ? _millis() : stopTimestamp) - startTimestamp);
   27f62:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
   27f66:	81 30       	cpi	r24, 0x01	; 1
   27f68:	19 f5       	brne	.+70     	; 0x27fb0 <Stopwatch::duration()+0x52>
   27f6a:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   27f6e:	00 91 a7 05 	lds	r16, 0x05A7	; 0x8005a7 <Stopwatch::startTimestamp>
   27f72:	10 91 a8 05 	lds	r17, 0x05A8	; 0x8005a8 <Stopwatch::startTimestamp+0x1>
   27f76:	20 91 a9 05 	lds	r18, 0x05A9	; 0x8005a9 <Stopwatch::startTimestamp+0x2>
   27f7a:	30 91 aa 05 	lds	r19, 0x05AA	; 0x8005aa <Stopwatch::startTimestamp+0x3>
   27f7e:	60 1b       	sub	r22, r16
   27f80:	71 0b       	sbc	r23, r17
   27f82:	82 0b       	sbc	r24, r18
   27f84:	93 0b       	sbc	r25, r19
   27f86:	28 ee       	ldi	r18, 0xE8	; 232
   27f88:	33 e0       	ldi	r19, 0x03	; 3
   27f8a:	40 e0       	ldi	r20, 0x00	; 0
   27f8c:	50 e0       	ldi	r21, 0x00	; 0
   27f8e:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   27f92:	60 91 a3 05 	lds	r22, 0x05A3	; 0x8005a3 <Stopwatch::accumulator>
   27f96:	70 91 a4 05 	lds	r23, 0x05A4	; 0x8005a4 <Stopwatch::accumulator+0x1>
   27f9a:	80 91 a5 05 	lds	r24, 0x05A5	; 0x8005a5 <Stopwatch::accumulator+0x2>
   27f9e:	90 91 a6 05 	lds	r25, 0x05A6	; 0x8005a6 <Stopwatch::accumulator+0x3>
   27fa2:	62 0f       	add	r22, r18
   27fa4:	73 1f       	adc	r23, r19
   27fa6:	84 1f       	adc	r24, r20
   27fa8:	95 1f       	adc	r25, r21
}
   27faa:	1f 91       	pop	r17
   27fac:	0f 91       	pop	r16
   27fae:	08 95       	ret
  stopTimestamp = 0;
  accumulator = 0;
}

uint32_t Stopwatch::duration() {
  return accumulator + MS_TO_SEC((isRunning() ? _millis() : stopTimestamp) - startTimestamp);
   27fb0:	60 91 52 06 	lds	r22, 0x0652	; 0x800652 <Stopwatch::stopTimestamp>
   27fb4:	70 91 53 06 	lds	r23, 0x0653	; 0x800653 <Stopwatch::stopTimestamp+0x1>
   27fb8:	80 91 54 06 	lds	r24, 0x0654	; 0x800654 <Stopwatch::stopTimestamp+0x2>
   27fbc:	90 91 55 06 	lds	r25, 0x0655	; 0x800655 <Stopwatch::stopTimestamp+0x3>
   27fc0:	d6 cf       	rjmp	.-84     	; 0x27f6e <Stopwatch::duration()+0x10>

00027fc2 <lcd_menu_statistics()>:
//! |Total print time:   | MSG_TOTAL_PRINT_TIME c=19
//! |        00d 00h 00m |
//! ----------------------
//! @endcode
void lcd_menu_statistics()
{
   27fc2:	4f 92       	push	r4
   27fc4:	5f 92       	push	r5
   27fc6:	6f 92       	push	r6
   27fc8:	7f 92       	push	r7
   27fca:	8f 92       	push	r8
   27fcc:	9f 92       	push	r9
   27fce:	af 92       	push	r10
   27fd0:	bf 92       	push	r11
   27fd2:	cf 92       	push	r12
   27fd4:	df 92       	push	r13
   27fd6:	ef 92       	push	r14
   27fd8:	ff 92       	push	r15
   27fda:	0f 93       	push	r16
   27fdc:	1f 93       	push	r17
   27fde:	cf 93       	push	r28
   27fe0:	df 93       	push	r29
   27fe2:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    lcd_timeoutToStatus.stop(); //infinite timeout
	if (printJobOngoing())
   27fe6:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   27fea:	88 23       	and	r24, r24
   27fec:	09 f4       	brne	.+2      	; 0x27ff0 <lcd_menu_statistics()+0x2e>
   27fee:	6e c0       	rjmp	.+220    	; 0x280cc <lcd_menu_statistics()+0x10a>
	{
		const float _met = ((float)total_filament_used) / (100000.f);
   27ff0:	60 91 65 06 	lds	r22, 0x0665	; 0x800665 <total_filament_used>
   27ff4:	70 91 66 06 	lds	r23, 0x0666	; 0x800666 <total_filament_used+0x1>
   27ff8:	80 91 67 06 	lds	r24, 0x0667	; 0x800667 <total_filament_used+0x2>
   27ffc:	90 91 68 06 	lds	r25, 0x0668	; 0x800668 <total_filament_used+0x3>
   28000:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   28004:	20 e0       	ldi	r18, 0x00	; 0
   28006:	30 e5       	ldi	r19, 0x50	; 80
   28008:	43 ec       	ldi	r20, 0xC3	; 195
   2800a:	57 e4       	ldi	r21, 0x47	; 71
   2800c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   28010:	56 2e       	mov	r5, r22
   28012:	47 2e       	mov	r4, r23
   28014:	ec 01       	movw	r28, r24

		const uint32_t _t = print_job_timer.duration();
   28016:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   2801a:	6b 01       	movw	r12, r22
   2801c:	7c 01       	movw	r14, r24
		const uint32_t _h = (_t / 60) / 60;
		const uint8_t _m = (_t / 60) % 60;
		const uint8_t _s = _t % 60;

        lcd_home();
   2801e:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
		lcd_printf_P(_N(
   28022:	81 e0       	ldi	r24, 0x01	; 1
   28024:	90 e5       	ldi	r25, 0x50	; 80
   28026:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2802a:	18 2f       	mov	r17, r24
   2802c:	09 2f       	mov	r16, r25
   2802e:	81 ef       	ldi	r24, 0xF1	; 241
   28030:	9f e4       	ldi	r25, 0x4F	; 79
   28032:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   28036:	78 2e       	mov	r7, r24
   28038:	69 2e       	mov	r6, r25
		const float _met = ((float)total_filament_used) / (100000.f);

		const uint32_t _t = print_job_timer.duration();
		const uint32_t _h = (_t / 60) / 60;
		const uint8_t _m = (_t / 60) % 60;
		const uint8_t _s = _t % 60;
   2803a:	8c e3       	ldi	r24, 0x3C	; 60
   2803c:	88 2e       	mov	r8, r24
   2803e:	91 2c       	mov	r9, r1
   28040:	a1 2c       	mov	r10, r1
   28042:	b1 2c       	mov	r11, r1
   28044:	c7 01       	movw	r24, r14
   28046:	b6 01       	movw	r22, r12
   28048:	a5 01       	movw	r20, r10
   2804a:	94 01       	movw	r18, r8
   2804c:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>

        lcd_home();
		lcd_printf_P(_N(
   28050:	7f 93       	push	r23
   28052:	6f 93       	push	r22
	{
		const float _met = ((float)total_filament_used) / (100000.f);

		const uint32_t _t = print_job_timer.duration();
		const uint32_t _h = (_t / 60) / 60;
		const uint8_t _m = (_t / 60) % 60;
   28054:	ca 01       	movw	r24, r20
   28056:	b9 01       	movw	r22, r18
   28058:	a5 01       	movw	r20, r10
   2805a:	94 01       	movw	r18, r8
   2805c:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
		const uint8_t _s = _t % 60;

        lcd_home();
		lcd_printf_P(_N(
   28060:	7f 93       	push	r23
   28062:	6f 93       	push	r22
	if (printJobOngoing())
	{
		const float _met = ((float)total_filament_used) / (100000.f);

		const uint32_t _t = print_job_timer.duration();
		const uint32_t _h = (_t / 60) / 60;
   28064:	c7 01       	movw	r24, r14
   28066:	b6 01       	movw	r22, r12
   28068:	20 e1       	ldi	r18, 0x10	; 16
   2806a:	3e e0       	ldi	r19, 0x0E	; 14
   2806c:	40 e0       	ldi	r20, 0x00	; 0
   2806e:	50 e0       	ldi	r21, 0x00	; 0
   28070:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
		const uint8_t _m = (_t / 60) % 60;
		const uint8_t _s = _t % 60;

        lcd_home();
		lcd_printf_P(_N(
   28074:	5f 93       	push	r21
   28076:	4f 93       	push	r20
   28078:	3f 93       	push	r19
   2807a:	2f 93       	push	r18
   2807c:	0f 93       	push	r16
   2807e:	1f 93       	push	r17
   28080:	df 93       	push	r29
   28082:	cf 93       	push	r28
   28084:	4f 92       	push	r4
   28086:	5f 92       	push	r5
   28088:	6f 92       	push	r6
   2808a:	7f 92       	push	r7
   2808c:	88 ed       	ldi	r24, 0xD8	; 216
   2808e:	9e e6       	ldi	r25, 0x6E	; 110
   28090:	9f 93       	push	r25
   28092:	8f 93       	push	r24
   28094:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
			"%S:\n"
			"%10ldh %02dm %02ds"
		    ),
            _T(MSG_FILAMENT_USED), _met,
            _T(MSG_PRINT_TIME), _h, _m, _s);
		menu_back_if_clicked();
   28098:	8d b7       	in	r24, 0x3d	; 61
   2809a:	9e b7       	in	r25, 0x3e	; 62
   2809c:	42 96       	adiw	r24, 0x12	; 18
   2809e:	0f b6       	in	r0, 0x3f	; 63
   280a0:	f8 94       	cli
   280a2:	9e bf       	out	0x3e, r25	; 62
   280a4:	0f be       	out	0x3f, r0	; 63
   280a6:	8d bf       	out	0x3d, r24	; 61
            ),
            _T(MSG_TOTAL_FILAMENT), _filament_m,
            _T(MSG_TOTAL_PRINT_TIME), _days, _hours, _minutes);
        menu_back_if_clicked();
	}
}
   280a8:	df 91       	pop	r29
   280aa:	cf 91       	pop	r28
   280ac:	1f 91       	pop	r17
   280ae:	0f 91       	pop	r16
   280b0:	ff 90       	pop	r15
   280b2:	ef 90       	pop	r14
   280b4:	df 90       	pop	r13
   280b6:	cf 90       	pop	r12
   280b8:	bf 90       	pop	r11
   280ba:	af 90       	pop	r10
   280bc:	9f 90       	pop	r9
   280be:	8f 90       	pop	r8
   280c0:	7f 90       	pop	r7
   280c2:	6f 90       	pop	r6
   280c4:	5f 90       	pop	r5
   280c6:	4f 90       	pop	r4
			"%S:\n"
			"%10ldd %02dh %02dm"
            ),
            _T(MSG_TOTAL_FILAMENT), _filament_m,
            _T(MSG_TOTAL_PRINT_TIME), _days, _hours, _minutes);
        menu_back_if_clicked();
   280c8:	0d 94 3f d5 	jmp	0x3aa7e	; 0x3aa7e <menu_back_if_clicked()>
            _T(MSG_PRINT_TIME), _h, _m, _s);
		menu_back_if_clicked();
	}
	else
	{
		uint32_t _filament = eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED); // in centimeters
   280cc:	81 ef       	ldi	r24, 0xF1	; 241
   280ce:	9f e0       	ldi	r25, 0x0F	; 15
   280d0:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   280d4:	2b 01       	movw	r4, r22
   280d6:	3c 01       	movw	r6, r24
		uint32_t _time = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME); // in minutes
   280d8:	8d ee       	ldi	r24, 0xED	; 237
   280da:	9f e0       	ldi	r25, 0x0F	; 15
   280dc:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   280e0:	6b 01       	movw	r12, r22
   280e2:	7c 01       	movw	r14, r24
		float _filament_m = (float)_filament/100;
		_days  = (_time / 60) / 24;
		_hours = (_time / 60) % 24;
		_minutes = _time % 60;

		lcd_home();
   280e4:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
		lcd_printf_P(_N(
   280e8:	8e ed       	ldi	r24, 0xDE	; 222
   280ea:	9f e4       	ldi	r25, 0x4F	; 79
   280ec:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   280f0:	98 2e       	mov	r9, r24
   280f2:	89 2e       	mov	r8, r25
   280f4:	8d ec       	ldi	r24, 0xCD	; 205
   280f6:	9f e4       	ldi	r25, 0x4F	; 79
   280f8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   280fc:	b8 2e       	mov	r11, r24
   280fe:	a9 2e       	mov	r10, r25
		uint8_t _hours, _minutes;
		uint32_t _days;
		float _filament_m = (float)_filament/100;
		_days  = (_time / 60) / 24;
		_hours = (_time / 60) % 24;
		_minutes = _time % 60;
   28100:	c7 01       	movw	r24, r14
   28102:	b6 01       	movw	r22, r12
   28104:	2c e3       	ldi	r18, 0x3C	; 60
   28106:	30 e0       	ldi	r19, 0x00	; 0
   28108:	40 e0       	ldi	r20, 0x00	; 0
   2810a:	50 e0       	ldi	r21, 0x00	; 0
   2810c:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>

		lcd_home();
		lcd_printf_P(_N(
   28110:	7f 93       	push	r23
   28112:	6f 93       	push	r22
		uint32_t _time = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME); // in minutes
		uint8_t _hours, _minutes;
		uint32_t _days;
		float _filament_m = (float)_filament/100;
		_days  = (_time / 60) / 24;
		_hours = (_time / 60) % 24;
   28114:	ca 01       	movw	r24, r20
   28116:	b9 01       	movw	r22, r18
   28118:	28 e1       	ldi	r18, 0x18	; 24
   2811a:	30 e0       	ldi	r19, 0x00	; 0
   2811c:	40 e0       	ldi	r20, 0x00	; 0
   2811e:	50 e0       	ldi	r21, 0x00	; 0
   28120:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
		_minutes = _time % 60;

		lcd_home();
		lcd_printf_P(_N(
   28124:	7f 93       	push	r23
   28126:	6f 93       	push	r22
		uint32_t _filament = eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED); // in centimeters
		uint32_t _time = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME); // in minutes
		uint8_t _hours, _minutes;
		uint32_t _days;
		float _filament_m = (float)_filament/100;
		_days  = (_time / 60) / 24;
   28128:	c7 01       	movw	r24, r14
   2812a:	b6 01       	movw	r22, r12
   2812c:	20 ea       	ldi	r18, 0xA0	; 160
   2812e:	35 e0       	ldi	r19, 0x05	; 5
   28130:	40 e0       	ldi	r20, 0x00	; 0
   28132:	50 e0       	ldi	r21, 0x00	; 0
   28134:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
		_hours = (_time / 60) % 24;
		_minutes = _time % 60;

		lcd_home();
		lcd_printf_P(_N(
   28138:	5f 93       	push	r21
   2813a:	4f 93       	push	r20
   2813c:	3f 93       	push	r19
   2813e:	2f 93       	push	r18
   28140:	8f 92       	push	r8
   28142:	9f 92       	push	r9
	{
		uint32_t _filament = eeprom_read_dword((uint32_t *)EEPROM_FILAMENTUSED); // in centimeters
		uint32_t _time = eeprom_read_dword((uint32_t *)EEPROM_TOTALTIME); // in minutes
		uint8_t _hours, _minutes;
		uint32_t _days;
		float _filament_m = (float)_filament/100;
   28144:	c3 01       	movw	r24, r6
   28146:	b2 01       	movw	r22, r4
   28148:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2814c:	20 e0       	ldi	r18, 0x00	; 0
   2814e:	30 e0       	ldi	r19, 0x00	; 0
   28150:	48 ec       	ldi	r20, 0xC8	; 200
   28152:	52 e4       	ldi	r21, 0x42	; 66
   28154:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
		_days  = (_time / 60) / 24;
		_hours = (_time / 60) % 24;
		_minutes = _time % 60;

		lcd_home();
		lcd_printf_P(_N(
   28158:	9f 93       	push	r25
   2815a:	8f 93       	push	r24
   2815c:	7f 93       	push	r23
   2815e:	6f 93       	push	r22
   28160:	af 92       	push	r10
   28162:	bf 92       	push	r11
   28164:	84 eb       	ldi	r24, 0xB4	; 180
   28166:	9e e6       	ldi	r25, 0x6E	; 110
   28168:	9f 93       	push	r25
   2816a:	8f 93       	push	r24
   2816c:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
			"%S:\n"
			"%10ldd %02dh %02dm"
            ),
            _T(MSG_TOTAL_FILAMENT), _filament_m,
            _T(MSG_TOTAL_PRINT_TIME), _days, _hours, _minutes);
        menu_back_if_clicked();
   28170:	8d b7       	in	r24, 0x3d	; 61
   28172:	9e b7       	in	r25, 0x3e	; 62
   28174:	42 96       	adiw	r24, 0x12	; 18
   28176:	0f b6       	in	r0, 0x3f	; 63
   28178:	f8 94       	cli
   2817a:	9e bf       	out	0x3e, r25	; 62
   2817c:	0f be       	out	0x3f, r0	; 63
   2817e:	8d bf       	out	0x3d, r24	; 61
   28180:	93 cf       	rjmp	.-218    	; 0x280a8 <lcd_menu_statistics()+0xe6>

00028182 <lcd_status_screen()>:
    lcd_status_message_idx = 0; // Re-draw message from beginning
}

// Main status screen. It's up to the implementation specific part to show what is needed. As this is very display dependent
void lcd_status_screen()                          // NOT static due to using inside "Marlin_main" module ("manage_inactivity()")
{
   28182:	cf 92       	push	r12
   28184:	df 92       	push	r13
   28186:	ef 92       	push	r14
   28188:	ff 92       	push	r15
   2818a:	0f 93       	push	r16
   2818c:	1f 93       	push	r17
   2818e:	cf 93       	push	r28
   28190:	df 93       	push	r29
   28192:	00 d0       	rcall	.+0      	; 0x28194 <lcd_status_screen()+0x12>
   28194:	00 d0       	rcall	.+0      	; 0x28196 <lcd_status_screen()+0x14>
   28196:	1f 92       	push	r1
   28198:	1f 92       	push	r1
   2819a:	cd b7       	in	r28, 0x3d	; 61
   2819c:	de b7       	in	r29, 0x3e	; 62
	static uint8_t lcd_status_update_delay = 0;
#ifdef ULTIPANEL_FEEDMULTIPLY
    if (lcd_encoder)
   2819e:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   281a2:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   281a6:	00 97       	sbiw	r24, 0x00	; 0
   281a8:	e1 f1       	breq	.+120    	; 0x28222 <lcd_status_screen()+0xa0>
    {
        const int16_t initial_feedmultiply = feedmultiply;
   281aa:	20 91 39 02 	lds	r18, 0x0239	; 0x800239 <feedmultiply>
   281ae:	30 91 3a 02 	lds	r19, 0x023A	; 0x80023a <feedmultiply+0x1>
        // Dead zone at 100% feedrate
        if ((feedmultiply < 100 && (feedmultiply + lcd_encoder) > 100) ||
   281b2:	24 36       	cpi	r18, 0x64	; 100
   281b4:	31 05       	cpc	r19, r1
   281b6:	4c f4       	brge	.+18     	; 0x281ca <lcd_status_screen()+0x48>
   281b8:	ac 01       	movw	r20, r24
   281ba:	42 0f       	add	r20, r18
   281bc:	53 1f       	adc	r21, r19
   281be:	45 36       	cpi	r20, 0x65	; 101
   281c0:	51 05       	cpc	r21, r1
   281c2:	6c f4       	brge	.+26     	; 0x281de <lcd_status_screen()+0x5c>
            feedmultiply += lcd_encoder - ENCODER_FEEDRATE_DEADZONE;
        }
        else if (feedmultiply == 100 && lcd_encoder < -ENCODER_FEEDRATE_DEADZONE) {
            feedmultiply += lcd_encoder + ENCODER_FEEDRATE_DEADZONE;
        }
        else if (feedmultiply != 100) feedmultiply += lcd_encoder;
   281c4:	82 0f       	add	r24, r18
   281c6:	93 1f       	adc	r25, r19
   281c8:	0c c0       	rjmp	.+24     	; 0x281e2 <lcd_status_screen()+0x60>
#ifdef ULTIPANEL_FEEDMULTIPLY
    if (lcd_encoder)
    {
        const int16_t initial_feedmultiply = feedmultiply;
        // Dead zone at 100% feedrate
        if ((feedmultiply < 100 && (feedmultiply + lcd_encoder) > 100) ||
   281ca:	24 36       	cpi	r18, 0x64	; 100
   281cc:	31 05       	cpc	r19, r1
   281ce:	09 f4       	brne	.+2      	; 0x281d2 <lcd_status_screen()+0x50>
   281d0:	55 c0       	rjmp	.+170    	; 0x2827c <lcd_status_screen()+0xfa>
            (feedmultiply > 100 && (feedmultiply + lcd_encoder) < 100))
   281d2:	ac 01       	movw	r20, r24
   281d4:	42 0f       	add	r20, r18
   281d6:	53 1f       	adc	r21, r19
   281d8:	44 36       	cpi	r20, 0x64	; 100
   281da:	51 05       	cpc	r21, r1
   281dc:	9c f7       	brge	.-26     	; 0x281c4 <lcd_status_screen()+0x42>
        {
            feedmultiply = 100;
   281de:	84 e6       	ldi	r24, 0x64	; 100
   281e0:	90 e0       	ldi	r25, 0x00	; 0
            feedmultiply += lcd_encoder - ENCODER_FEEDRATE_DEADZONE;
        }
        else if (feedmultiply == 100 && lcd_encoder < -ENCODER_FEEDRATE_DEADZONE) {
            feedmultiply += lcd_encoder + ENCODER_FEEDRATE_DEADZONE;
        }
        else if (feedmultiply != 100) feedmultiply += lcd_encoder;
   281e2:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
   281e6:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>

        if (initial_feedmultiply != feedmultiply) {
   281ea:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
   281ee:	90 91 3a 02 	lds	r25, 0x023A	; 0x80023a <feedmultiply+0x1>
   281f2:	82 17       	cp	r24, r18
   281f4:	93 07       	cpc	r25, r19
   281f6:	a9 f0       	breq	.+42     	; 0x28222 <lcd_status_screen()+0xa0>
            feedmultiply = constrain(feedmultiply, 10, 999);
   281f8:	88 3e       	cpi	r24, 0xE8	; 232
   281fa:	53 e0       	ldi	r21, 0x03	; 3
   281fc:	95 07       	cpc	r25, r21
   281fe:	14 f0       	brlt	.+4      	; 0x28204 <lcd_status_screen()+0x82>
   28200:	87 ee       	ldi	r24, 0xE7	; 231
   28202:	93 e0       	ldi	r25, 0x03	; 3
   28204:	8a 30       	cpi	r24, 0x0A	; 10
   28206:	91 05       	cpc	r25, r1
   28208:	14 f4       	brge	.+4      	; 0x2820e <lcd_status_screen()+0x8c>
   2820a:	8a e0       	ldi	r24, 0x0A	; 10
   2820c:	90 e0       	ldi	r25, 0x00	; 0
   2820e:	90 93 3a 02 	sts	0x023A, r25	; 0x80023a <feedmultiply+0x1>
   28212:	80 93 39 02 	sts	0x0239, r24	; 0x800239 <feedmultiply>
            lcd_encoder = 0; // Consume rotation event
   28216:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   2821a:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
            refresh_saved_feedrate_multiplier_in_ram();
   2821e:	0e 94 6a 64 	call	0xc8d4	; 0xc8d4 <refresh_saved_feedrate_multiplier_in_ram()>
        }
    }
#endif //ULTIPANEL_FEEDMULTIPLY

	if (lcd_draw_update) {
   28222:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   28226:	81 11       	cpse	r24, r1
		// Update the status screen immediately
		lcd_status_update_delay = 0;
   28228:	10 92 51 06 	sts	0x0651, r1	; 0x800651 <lcd_status_screen()::lcd_status_update_delay>
	}

	if (lcd_status_update_delay)
   2822c:	10 91 51 06 	lds	r17, 0x0651	; 0x800651 <lcd_status_screen()::lcd_status_update_delay>
   28230:	11 23       	and	r17, r17
   28232:	91 f1       	breq	.+100    	; 0x28298 <lcd_status_screen()+0x116>
		lcd_status_update_delay--;
   28234:	2f ef       	ldi	r18, 0xFF	; 255
   28236:	21 0f       	add	r18, r17
   28238:	20 93 51 06 	sts	0x0651, r18	; 0x800651 <lcd_status_screen()::lcd_status_update_delay>

		if (lcd_commands_type != LcdCommands::Idle)
			lcd_commands();
	}

    if (!menu_is_any_block() && lcd_clicked()) {
   2823c:	80 91 d6 03 	lds	r24, 0x03D6	; 0x8003d6 <menu_block_mask>
   28240:	81 11       	cpse	r24, r1
   28242:	0d c0       	rjmp	.+26     	; 0x2825e <lcd_status_screen()+0xdc>
   28244:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   28248:	88 23       	and	r24, r24
   2824a:	49 f0       	breq	.+18     	; 0x2825e <lcd_status_screen()+0xdc>
		menu_depth = 0; //redundant, as already done in lcd_return_to_status(), just to be sure
   2824c:	10 92 f8 03 	sts	0x03F8, r1	; 0x8003f8 <menu_depth>
		menu_submenu(lcd_main_menu);
   28250:	60 e0       	ldi	r22, 0x00	; 0
   28252:	8d eb       	ldi	r24, 0xBD	; 189
   28254:	95 ed       	ldi	r25, 0xD5	; 213
   28256:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
		lcd_refresh(); // to maybe revive the LCD if static electricity killed it.
   2825a:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
	}
}
   2825e:	28 96       	adiw	r28, 0x08	; 8
   28260:	0f b6       	in	r0, 0x3f	; 63
   28262:	f8 94       	cli
   28264:	de bf       	out	0x3e, r29	; 62
   28266:	0f be       	out	0x3f, r0	; 63
   28268:	cd bf       	out	0x3d, r28	; 61
   2826a:	df 91       	pop	r29
   2826c:	cf 91       	pop	r28
   2826e:	1f 91       	pop	r17
   28270:	0f 91       	pop	r16
   28272:	ff 90       	pop	r15
   28274:	ef 90       	pop	r14
   28276:	df 90       	pop	r13
   28278:	cf 90       	pop	r12
   2827a:	08 95       	ret
        if ((feedmultiply < 100 && (feedmultiply + lcd_encoder) > 100) ||
            (feedmultiply > 100 && (feedmultiply + lcd_encoder) < 100))
        {
            feedmultiply = 100;
        }
        else if (feedmultiply == 100 && lcd_encoder > ENCODER_FEEDRATE_DEADZONE) {
   2827c:	8b 30       	cpi	r24, 0x0B	; 11
   2827e:	91 05       	cpc	r25, r1
   28280:	1c f0       	brlt	.+6      	; 0x28288 <lcd_status_screen()+0x106>
            feedmultiply += lcd_encoder - ENCODER_FEEDRATE_DEADZONE;
   28282:	86 5a       	subi	r24, 0xA6	; 166
   28284:	9f 4f       	sbci	r25, 0xFF	; 255
   28286:	ad cf       	rjmp	.-166    	; 0x281e2 <lcd_status_screen()+0x60>
        }
        else if (feedmultiply == 100 && lcd_encoder < -ENCODER_FEEDRATE_DEADZONE) {
   28288:	86 3f       	cpi	r24, 0xF6	; 246
   2828a:	4f ef       	ldi	r20, 0xFF	; 255
   2828c:	94 07       	cpc	r25, r20
   2828e:	0c f0       	brlt	.+2      	; 0x28292 <lcd_status_screen()+0x110>
   28290:	ac cf       	rjmp	.-168    	; 0x281ea <lcd_status_screen()+0x68>
            feedmultiply += lcd_encoder + ENCODER_FEEDRATE_DEADZONE;
   28292:	82 59       	subi	r24, 0x92	; 146
   28294:	9f 4f       	sbci	r25, 0xFF	; 255
   28296:	a5 cf       	rjmp	.-182    	; 0x281e2 <lcd_status_screen()+0x60>
	if (lcd_status_update_delay)
		lcd_status_update_delay--;
	else
	{	// Redraw the main screen every second (see LCD_UPDATE_INTERVAL).
		// This is easier then trying keep track of all things that change on the screen
		lcd_status_update_delay = 10;
   28298:	6a e0       	ldi	r22, 0x0A	; 10
   2829a:	60 93 51 06 	sts	0x0651, r22	; 0x800651 <lcd_status_screen()::lcd_status_update_delay>
		ReInitLCD++;
   2829e:	80 91 50 06 	lds	r24, 0x0650	; 0x800650 <ReInitLCD>
   282a2:	8f 5f       	subi	r24, 0xFF	; 255
   282a4:	80 93 50 06 	sts	0x0650, r24	; 0x800650 <ReInitLCD>
		if (ReInitLCD == 30)
   282a8:	8e 31       	cpi	r24, 0x1E	; 30
   282aa:	09 f0       	breq	.+2      	; 0x282ae <lcd_status_screen()+0x12c>
   282ac:	9f c0       	rjmp	.+318    	; 0x283ec <lcd_status_screen()+0x26a>
		{
			ReInitLCD = 0 ;
   282ae:	10 92 50 06 	sts	0x0650, r1	; 0x800650 <ReInitLCD>
#endif //DEBUG_DISABLE_LCD_STATUS_LINE
}

static void lcdui_refresh(uint8_t clear = true)
{
    clear ? lcd_refresh() : lcd_refresh_noclear();
   282b2:	0e 94 13 6f 	call	0xde26	; 0xde26 <lcd_refresh()>
    lcd_status_message_idx = 0; // Re-draw message from beginning
   282b6:	10 92 1e 05 	sts	0x051E, r1	; 0x80051e <_ZL22lcd_status_message_idx.lto_priv.450>
//! F - feedrate symbol 	LCD_STR_FEEDRATE
//! t - clock symbol 		LCD_STR_THERMOMETER
//! @endcode
void lcdui_print_status_screen(void)
{
    lcd_frame_start();
   282ba:	0e 94 1b 6e 	call	0xdc36	; 0xdc36 <lcd_frame_start()>
	lcd_home(); //line 0
   282be:	0e 94 93 6e 	call	0xdd26	; 0xdd26 <lcd_home()>
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
   282c2:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   282c6:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   282ca:	07 2e       	mov	r0, r23
   282cc:	00 0c       	add	r0, r0
   282ce:	88 0b       	sbc	r24, r24
   282d0:	99 0b       	sbc	r25, r25
   282d2:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>

    //Print the hotend temperature (9 chars total)
	lcdui_print_temp(LCD_STR_THERMOMETER[0], (int)(degHotend(0) + 0.5), (int)(degTargetHotend(0) + 0.5));
   282d6:	20 e0       	ldi	r18, 0x00	; 0
   282d8:	30 e0       	ldi	r19, 0x00	; 0
   282da:	40 e0       	ldi	r20, 0x00	; 0
   282dc:	5f e3       	ldi	r21, 0x3F	; 63
   282de:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   282e2:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   282e6:	6b 01       	movw	r12, r22
   282e8:	20 e0       	ldi	r18, 0x00	; 0
   282ea:	30 e0       	ldi	r19, 0x00	; 0
   282ec:	40 e0       	ldi	r20, 0x00	; 0
   282ee:	5f e3       	ldi	r21, 0x3F	; 63
   282f0:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   282f4:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   282f8:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   282fc:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   28300:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   28304:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   28308:	a6 01       	movw	r20, r12
   2830a:	82 e8       	ldi	r24, 0x82	; 130
   2830c:	0f 94 85 22 	call	0x2450a	; 0x2450a <lcdui_print_temp(char, int, int)>

	lcd_space(3); //3 spaces
   28310:	83 e0       	ldi	r24, 0x03	; 3
   28312:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
}

// Print Z-coordinate (8 chars total)
void lcdui_print_Z_coord(void)
{
    if (custom_message_type == CustomMsg::MeshBedLeveling)
   28316:	80 91 c4 06 	lds	r24, 0x06C4	; 0x8006c4 <custom_message_type>
   2831a:	81 30       	cpi	r24, 0x01	; 1
   2831c:	09 f0       	breq	.+2      	; 0x28320 <lcd_status_screen()+0x19e>
   2831e:	6e c0       	rjmp	.+220    	; 0x283fc <lcd_status_screen()+0x27a>
        lcd_puts_P(_N("Z   --- "));
   28320:	83 e1       	ldi	r24, 0x13	; 19
   28322:	9e e6       	ldi	r25, 0x6E	; 110
   28324:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
	lcd_space(3); //3 spaces

    //Print Z-coordinate (8 chars total)
	lcdui_print_Z_coord();

    lcd_set_cursor(0, 1); //line 1
   28328:	61 e0       	ldi	r22, 0x01	; 1
   2832a:	80 e0       	ldi	r24, 0x00	; 0
   2832c:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
};

FORCE_INLINE float degTargetBed() {
  return target_temperature_bed;
   28330:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
   28334:	70 91 73 06 	lds	r23, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   28338:	07 2e       	mov	r0, r23
   2833a:	00 0c       	add	r0, r0
   2833c:	88 0b       	sbc	r24, r24
   2833e:	99 0b       	sbc	r25, r25
   28340:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>

	//Print the Bed temperature (9 chars total)
	lcdui_print_temp(LCD_STR_BEDTEMP[0], (int)(degBed() + 0.5), (int)(degTargetBed() + 0.5));
   28344:	20 e0       	ldi	r18, 0x00	; 0
   28346:	30 e0       	ldi	r19, 0x00	; 0
   28348:	40 e0       	ldi	r20, 0x00	; 0
   2834a:	5f e3       	ldi	r21, 0x3F	; 63
   2834c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   28350:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   28354:	6b 01       	movw	r12, r22
   28356:	20 e0       	ldi	r18, 0x00	; 0
   28358:	30 e0       	ldi	r19, 0x00	; 0
   2835a:	40 e0       	ldi	r20, 0x00	; 0
   2835c:	5f e3       	ldi	r21, 0x3F	; 63
   2835e:	60 91 ee 04 	lds	r22, 0x04EE	; 0x8004ee <current_temperature_bed>
   28362:	70 91 ef 04 	lds	r23, 0x04EF	; 0x8004ef <current_temperature_bed+0x1>
   28366:	80 91 f0 04 	lds	r24, 0x04F0	; 0x8004f0 <current_temperature_bed+0x2>
   2836a:	90 91 f1 04 	lds	r25, 0x04F1	; 0x8004f1 <current_temperature_bed+0x3>
   2836e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   28372:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   28376:	a6 01       	movw	r20, r12
   28378:	80 e8       	ldi	r24, 0x80	; 128
   2837a:	0f 94 85 22 	call	0x2450a	; 0x2450a <lcdui_print_temp(char, int, int)>

	lcd_space(3); //3 spaces
   2837e:	83 e0       	ldi	r24, 0x03	; 3
   28380:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
#endif // PLANNER_DIAGNOSTICS

// Print feedrate (8 chars total)
void lcdui_print_feedrate(void)
{
	int chars = lcd_printf_P(_N(LCD_STR_FEEDRATE "%3d%%"), feedmultiply);
   28384:	80 91 3a 02 	lds	r24, 0x023A	; 0x80023a <feedmultiply+0x1>
   28388:	8f 93       	push	r24
   2838a:	80 91 39 02 	lds	r24, 0x0239	; 0x800239 <feedmultiply>
   2838e:	8f 93       	push	r24
   28390:	8c e1       	ldi	r24, 0x1C	; 28
   28392:	9e e6       	ldi	r25, 0x6E	; 110
   28394:	9f 93       	push	r25
   28396:	8f 93       	push	r24
   28398:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
	lcd_space(8 - chars);
   2839c:	98 e0       	ldi	r25, 0x08	; 8
   2839e:	98 1b       	sub	r25, r24
   283a0:	89 2f       	mov	r24, r25
   283a2:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
#else // PLANNER_DIAGNOSTICS
    //Print Feedrate (8 chars)
	lcdui_print_feedrate();
#endif // PLANNER_DIAGNOSTICS

	lcd_set_cursor(0, 2); //line 2
   283a6:	62 e0       	ldi	r22, 0x02	; 2
   283a8:	80 e0       	ldi	r24, 0x00	; 0
   283aa:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
}

// Print percent done in form "USB---%", " SD---%", "   ---%" (7 chars total)
void lcdui_print_percent_done(void)
{
	const char* src = usb_timer.running()?_N(" HO"):(IS_SD_PRINTING?_N(" SD"):_N("   "));
   283ae:	0f 90       	pop	r0
   283b0:	0f 90       	pop	r0
   283b2:	0f 90       	pop	r0
   283b4:	0f 90       	pop	r0
   283b6:	80 91 0e 05 	lds	r24, 0x050E	; 0x80050e <usb_timer>
   283ba:	e0 90 90 14 	lds	r14, 0x1490	; 0x801490 <card+0x2>
   283be:	81 11       	cpse	r24, r1
   283c0:	3e c0       	rjmp	.+124    	; 0x2843e <lcd_status_screen()+0x2bc>
   283c2:	2f e2       	ldi	r18, 0x2F	; 47
   283c4:	c2 2e       	mov	r12, r18
   283c6:	2e e6       	ldi	r18, 0x6E	; 110
   283c8:	d2 2e       	mov	r13, r18
   283ca:	e1 10       	cpse	r14, r1
   283cc:	3c c0       	rjmp	.+120    	; 0x28446 <lcd_status_screen()+0x2c4>
   283ce:	83 e3       	ldi	r24, 0x33	; 51
   283d0:	c8 2e       	mov	r12, r24
   283d2:	8e e6       	ldi	r24, 0x6E	; 110
   283d4:	d8 2e       	mov	r13, r24
	bool num = IS_SD_PRINTING || (printer_active() && (print_percent_done_normal != PRINT_PERCENT_DONE_INIT));
   283d6:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   283da:	f8 2e       	mov	r15, r24
   283dc:	88 23       	and	r24, r24
   283de:	e1 f1       	breq	.+120    	; 0x28458 <lcd_status_screen()+0x2d6>
   283e0:	80 91 ae 02 	lds	r24, 0x02AE	; 0x8002ae <print_percent_done_normal>
   283e4:	8f 3f       	cpi	r24, 0xFF	; 255
   283e6:	89 f5       	brne	.+98     	; 0x2844a <lcd_status_screen()+0x2c8>
   283e8:	f1 2c       	mov	r15, r1
   283ea:	36 c0       	rjmp	.+108    	; 0x28458 <lcd_status_screen()+0x2d6>
			ReInitLCD = 0 ;
            lcdui_refresh();
		}
		else
		{
			if ((ReInitLCD % 10) == 0)
   283ec:	0f 94 16 dd 	call	0x3ba2c	; 0x3ba2c <__divmodqi4>
   283f0:	91 11       	cpse	r25, r1
   283f2:	63 cf       	rjmp	.-314    	; 0x282ba <lcd_status_screen()+0x138>
    lcd_begin(1);
}

void lcd_refresh_noclear(void)
{
    lcd_begin(0);
   283f4:	80 e0       	ldi	r24, 0x00	; 0
   283f6:	0e 94 d2 6e 	call	0xdda4	; 0xdda4 <lcd_begin(unsigned char) [clone .lto_priv.433]>
   283fa:	5d cf       	rjmp	.-326    	; 0x282b6 <lcd_status_screen()+0x134>
void lcdui_print_Z_coord(void)
{
    if (custom_message_type == CustomMsg::MeshBedLeveling)
        lcd_puts_P(_N("Z   --- "));
    else
		lcd_printf_P(_N("Z%6.2f%c"), current_position[Z_AXIS], axis_known_position[Z_AXIS]?' ':'?');
   283fc:	80 91 91 06 	lds	r24, 0x0691	; 0x800691 <axis_known_position+0x2>
   28400:	88 23       	and	r24, r24
   28402:	d9 f0       	breq	.+54     	; 0x2843a <lcd_status_screen()+0x2b8>
   28404:	80 e2       	ldi	r24, 0x20	; 32
   28406:	1f 92       	push	r1
   28408:	8f 93       	push	r24
   2840a:	80 91 9d 06 	lds	r24, 0x069D	; 0x80069d <current_position+0xb>
   2840e:	8f 93       	push	r24
   28410:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   28414:	8f 93       	push	r24
   28416:	80 91 9b 06 	lds	r24, 0x069B	; 0x80069b <current_position+0x9>
   2841a:	8f 93       	push	r24
   2841c:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
   28420:	8f 93       	push	r24
   28422:	8a e0       	ldi	r24, 0x0A	; 10
   28424:	9e e6       	ldi	r25, 0x6E	; 110
   28426:	9f 93       	push	r25
   28428:	8f 93       	push	r24
   2842a:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   2842e:	0f b6       	in	r0, 0x3f	; 63
   28430:	f8 94       	cli
   28432:	de bf       	out	0x3e, r29	; 62
   28434:	0f be       	out	0x3f, r0	; 63
   28436:	cd bf       	out	0x3d, r28	; 61
   28438:	77 cf       	rjmp	.-274    	; 0x28328 <lcd_status_screen()+0x1a6>
   2843a:	8f e3       	ldi	r24, 0x3F	; 63
   2843c:	e4 cf       	rjmp	.-56     	; 0x28406 <lcd_status_screen()+0x284>
}

// Print percent done in form "USB---%", " SD---%", "   ---%" (7 chars total)
void lcdui_print_percent_done(void)
{
	const char* src = usb_timer.running()?_N(" HO"):(IS_SD_PRINTING?_N(" SD"):_N("   "));
   2843e:	97 e3       	ldi	r25, 0x37	; 55
   28440:	c9 2e       	mov	r12, r25
   28442:	9e e6       	ldi	r25, 0x6E	; 110
   28444:	d9 2e       	mov	r13, r25
	bool num = IS_SD_PRINTING || (printer_active() && (print_percent_done_normal != PRINT_PERCENT_DONE_INIT));
   28446:	ee 20       	and	r14, r14
   28448:	31 f2       	breq	.-116    	; 0x283d6 <lcd_status_screen()+0x254>
	if (!num || heating_status != HeatingStatus::NO_HEATING) // either not printing or heating
   2844a:	80 91 e3 03 	lds	r24, 0x03E3	; 0x8003e3 <heating_status>

// Print percent done in form "USB---%", " SD---%", "   ---%" (7 chars total)
void lcdui_print_percent_done(void)
{
	const char* src = usb_timer.running()?_N(" HO"):(IS_SD_PRINTING?_N(" SD"):_N("   "));
	bool num = IS_SD_PRINTING || (printer_active() && (print_percent_done_normal != PRINT_PERCENT_DONE_INIT));
   2844e:	ff 24       	eor	r15, r15
   28450:	f3 94       	inc	r15
	if (!num || heating_status != HeatingStatus::NO_HEATING) // either not printing or heating
   28452:	88 23       	and	r24, r24
   28454:	09 f4       	brne	.+2      	; 0x28458 <lcd_status_screen()+0x2d6>
   28456:	bb c0       	rjmp	.+374    	; 0x285ce <lcd_status_screen()+0x44c>
	{
		const int8_t sheetNR = eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet));
   28458:	81 ea       	ldi	r24, 0xA1	; 161
   2845a:	9d e0       	ldi	r25, 0x0D	; 13
   2845c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   28460:	08 2f       	mov	r16, r24
		const int8_t nextSheet = eeprom_next_initialized_sheet(sheetNR);
   28462:	0e 94 d6 75 	call	0xebac	; 0xebac <eeprom_next_initialized_sheet(signed char)>
		if ((nextSheet >= 0) && (sheetNR != nextSheet))
   28466:	87 fd       	sbrc	r24, 7
   28468:	b2 c0       	rjmp	.+356    	; 0x285ce <lcd_status_screen()+0x44c>
   2846a:	08 17       	cp	r16, r24
   2846c:	09 f4       	brne	.+2      	; 0x28470 <lcd_status_screen()+0x2ee>
   2846e:	af c0       	rjmp	.+350    	; 0x285ce <lcd_status_screen()+0x44c>
		{
			char sheet[8];
			eeprom_read_block(sheet, EEPROM_Sheets_base->s[sheetNR].name, 7);
   28470:	9b e0       	ldi	r25, 0x0B	; 11
   28472:	09 02       	muls	r16, r25
   28474:	b0 01       	movw	r22, r0
   28476:	11 24       	eor	r1, r1
   28478:	67 5b       	subi	r22, 0xB7	; 183
   2847a:	72 4f       	sbci	r23, 0xF2	; 242
   2847c:	47 e0       	ldi	r20, 0x07	; 7
   2847e:	50 e0       	ldi	r21, 0x00	; 0
   28480:	8e 01       	movw	r16, r28
   28482:	0f 5f       	subi	r16, 0xFF	; 255
   28484:	1f 4f       	sbci	r17, 0xFF	; 255
   28486:	c8 01       	movw	r24, r16
   28488:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
			sheet[7] = '\0';
   2848c:	18 86       	std	Y+8, r1	; 0x08
			lcd_printf_P(PSTR("%-7s"),sheet);
   2848e:	1f 93       	push	r17
   28490:	0f 93       	push	r16
   28492:	8b e9       	ldi	r24, 0x9B	; 155
   28494:	9f e9       	ldi	r25, 0x9F	; 159
        lcd_print(hostName); // Two characters
    } else {
        lcd_printf_P(PSTR("%3S"), src);
    }

    lcd_printf_P(num ? _N("%3d%%"):_N("---%%"), calc_percent_done());
   28496:	9f 93       	push	r25
   28498:	8f 93       	push	r24
   2849a:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   2849e:	0f 90       	pop	r0
   284a0:	0f 90       	pop	r0
   284a2:	0f 90       	pop	r0
   284a4:	0f 90       	pop	r0
	lcd_set_cursor(0, 2); //line 2

	//Print SD status (7 chars)
	lcdui_print_percent_done();

    if (MMU2::mmu2.Enabled()) {
   284a6:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   284aa:	81 30       	cpi	r24, 0x01	; 1
   284ac:	09 f0       	breq	.+2      	; 0x284b0 <lcd_status_screen()+0x32e>
   284ae:	e9 c0       	rjmp	.+466    	; 0x28682 <lcd_status_screen()+0x500>
        // Print extruder status (5 chars)
        lcd_space(5 - lcdui_print_extruder());
   284b0:	0f 94 54 22 	call	0x244a8	; 0x244a8 <lcdui_print_extruder()>
   284b4:	95 e0       	ldi	r25, 0x05	; 5
   284b6:	98 1b       	sub	r25, r24
   284b8:	89 2f       	mov	r24, r25
    } else if (farm_mode) {
        // Print farm number (5 chars)
        lcdui_print_farm();
    } else {
        lcd_space(5); // 5 spaces
   284ba:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
void lcdui_print_time(void)
{
    static uint8_t clock_interval; // max value is 10: CLOCK_INTERVAL_TIME * 2
    //if remaining print time estimation is available print it else print elapsed time
    int chars = 0;
    if (printer_active()) {
   284be:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   284c2:	88 23       	and	r24, r24
   284c4:	09 f4       	brne	.+2      	; 0x284c8 <lcd_status_screen()+0x346>
   284c6:	fa c0       	rjmp	.+500    	; 0x286bc <lcd_status_screen()+0x53a>
        uint16_t print_tc = PRINT_TIME_REMAINING_INIT; // unit: minutes
        char suff = ' ';
        char suff_doubt = ' ';

#ifdef TMC2130
        if (SilentModeMenu != SILENT_MODE_OFF) {
   284c8:	80 91 a4 03 	lds	r24, 0x03A4	; 0x8003a4 <SilentModeMenu>
   284cc:	88 23       	and	r24, r24
   284ce:	09 f4       	brne	.+2      	; 0x284d2 <lcd_status_screen()+0x350>
   284d0:	da c0       	rjmp	.+436    	; 0x28686 <lcd_status_screen()+0x504>
            if (print_time_remaining_silent != PRINT_TIME_REMAINING_INIT)
   284d2:	c0 90 b5 02 	lds	r12, 0x02B5	; 0x8002b5 <print_time_remaining_silent>
   284d6:	d0 90 b6 02 	lds	r13, 0x02B6	; 0x8002b6 <print_time_remaining_silent+0x1>
                print_tr = print_time_remaining_silent;
//#ifdef CLOCK_INTERVAL_TIME
            if (print_time_to_change_silent != PRINT_TIME_REMAINING_INIT)
   284da:	e0 90 b3 02 	lds	r14, 0x02B3	; 0x8002b3 <print_time_to_change_silent>
   284de:	f0 90 b4 02 	lds	r15, 0x02B4	; 0x8002b4 <print_time_to_change_silent+0x1>
#ifdef TMC2130
        }
#endif //TMC2130

//#ifdef CLOCK_INTERVAL_TIME
        if (clock_interval == CLOCK_INTERVAL_TIME*2)
   284e2:	80 91 4f 06 	lds	r24, 0x064F	; 0x80064f <lcdui_print_time()::clock_interval>
   284e6:	8a 30       	cpi	r24, 0x0A	; 10
   284e8:	11 f4       	brne	.+4      	; 0x284ee <lcd_status_screen()+0x36c>
            clock_interval = 0;
   284ea:	10 92 4f 06 	sts	0x064F, r1	; 0x80064f <lcdui_print_time()::clock_interval>

        clock_interval++;
   284ee:	80 91 4f 06 	lds	r24, 0x064F	; 0x80064f <lcdui_print_time()::clock_interval>
   284f2:	8f 5f       	subi	r24, 0xFF	; 255
   284f4:	80 93 4f 06 	sts	0x064F, r24	; 0x80064f <lcdui_print_time()::clock_interval>

        if (print_tc != PRINT_TIME_REMAINING_INIT && clock_interval > CLOCK_INTERVAL_TIME) {
   284f8:	2f ef       	ldi	r18, 0xFF	; 255
   284fa:	e2 16       	cp	r14, r18
   284fc:	f2 06       	cpc	r15, r18
   284fe:	21 f0       	breq	.+8      	; 0x28508 <lcd_status_screen()+0x386>
   28500:	97 01       	movw	r18, r14
            print_t = print_tc;
            suff = 'C';
   28502:	13 e4       	ldi	r17, 0x43	; 67
        if (clock_interval == CLOCK_INTERVAL_TIME*2)
            clock_interval = 0;

        clock_interval++;

        if (print_tc != PRINT_TIME_REMAINING_INIT && clock_interval > CLOCK_INTERVAL_TIME) {
   28504:	86 30       	cpi	r24, 0x06	; 6
   28506:	70 f4       	brcc	.+28     	; 0x28524 <lcd_status_screen()+0x3a2>
            print_t = print_tc;
            suff = 'C';
        } else
//#endif //CLOCK_INTERVAL_TIME
        if (print_tr != PRINT_TIME_REMAINING_INIT) {
   28508:	3f ef       	ldi	r19, 0xFF	; 255
   2850a:	c3 16       	cp	r12, r19
   2850c:	d3 06       	cpc	r13, r19
   2850e:	09 f0       	breq	.+2      	; 0x28512 <lcd_status_screen()+0x390>
   28510:	c3 c0       	rjmp	.+390    	; 0x28698 <lcd_status_screen()+0x516>
            print_t = print_tr;
            suff = 'R';
        } else
            print_t = print_job_timer.duration() / 60;
   28512:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   28516:	2c e3       	ldi	r18, 0x3C	; 60
   28518:	30 e0       	ldi	r19, 0x00	; 0
   2851a:	40 e0       	ldi	r20, 0x00	; 0
   2851c:	50 e0       	ldi	r21, 0x00	; 0
   2851e:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
    int chars = 0;
    if (printer_active()) {
        uint16_t print_t = PRINT_TIME_REMAINING_INIT;  // unit: minutes
        uint16_t print_tr = PRINT_TIME_REMAINING_INIT; // unit: minutes
        uint16_t print_tc = PRINT_TIME_REMAINING_INIT; // unit: minutes
        char suff = ' ';
   28522:	10 e2       	ldi	r17, 0x20	; 32
            print_t = print_tr;
            suff = 'R';
        } else
            print_t = print_job_timer.duration() / 60;

        if (feedmultiply != 100 && (print_t == print_tr || print_t == print_tc)) {
   28524:	40 91 39 02 	lds	r20, 0x0239	; 0x800239 <feedmultiply>
   28528:	50 91 3a 02 	lds	r21, 0x023A	; 0x80023a <feedmultiply+0x1>
   2852c:	44 36       	cpi	r20, 0x64	; 100
   2852e:	51 05       	cpc	r21, r1
   28530:	09 f4       	brne	.+2      	; 0x28534 <lcd_status_screen()+0x3b2>
   28532:	b5 c0       	rjmp	.+362    	; 0x2869e <lcd_status_screen()+0x51c>
   28534:	c2 16       	cp	r12, r18
   28536:	d3 06       	cpc	r13, r19
   28538:	21 f0       	breq	.+8      	; 0x28542 <lcd_status_screen()+0x3c0>
   2853a:	e2 16       	cp	r14, r18
   2853c:	f3 06       	cpc	r15, r19
   2853e:	09 f0       	breq	.+2      	; 0x28542 <lcd_status_screen()+0x3c0>
   28540:	ae c0       	rjmp	.+348    	; 0x2869e <lcd_status_screen()+0x51c>
            suff_doubt = '?';
            // (print_t * 100) overflows uint16_t at 10.9 hours, uint32_t is required
            print_t = (uint16_t)((100UL * (uint32_t)print_t) / feedmultiply);
   28542:	a4 e6       	ldi	r26, 0x64	; 100
   28544:	b0 e0       	ldi	r27, 0x00	; 0
   28546:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   2854a:	9a 01       	movw	r18, r20
   2854c:	55 0f       	add	r21, r21
   2854e:	44 0b       	sbc	r20, r20
   28550:	55 0b       	sbc	r21, r21
   28552:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
            suff = 'R';
        } else
            print_t = print_job_timer.duration() / 60;

        if (feedmultiply != 100 && (print_t == print_tr || print_t == print_tc)) {
            suff_doubt = '?';
   28556:	4f e3       	ldi	r20, 0x3F	; 63
   28558:	e4 2e       	mov	r14, r20
   2855a:	04 2e       	mov	r0, r20
   2855c:	00 0c       	add	r0, r0
   2855e:	ff 08       	sbc	r15, r15
   28560:	e1 2f       	mov	r30, r17
   28562:	01 2e       	mov	r0, r17
   28564:	00 0c       	add	r0, r0
   28566:	ff 0b       	sbc	r31, r31
   28568:	c9 01       	movw	r24, r18
   2856a:	6c e3       	ldi	r22, 0x3C	; 60
   2856c:	70 e0       	ldi	r23, 0x00	; 0
   2856e:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
            // (print_t * 100) overflows uint16_t at 10.9 hours, uint32_t is required
            print_t = (uint16_t)((100UL * (uint32_t)print_t) / feedmultiply);
        }

        if (print_t < 6000) //time<100h
   28572:	20 37       	cpi	r18, 0x70	; 112
   28574:	37 41       	sbci	r19, 0x17	; 23
   28576:	08 f0       	brcs	.+2      	; 0x2857a <lcd_status_screen()+0x3f8>
   28578:	94 c0       	rjmp	.+296    	; 0x286a2 <lcd_status_screen()+0x520>
            chars = lcd_printf_P(_N(LCD_STR_CLOCK "%02u:%02u%c%c"), print_t / 60, print_t % 60, suff, suff_doubt);
   2857a:	ff 92       	push	r15
   2857c:	4f 93       	push	r20
   2857e:	ff 93       	push	r31
   28580:	1f 93       	push	r17
   28582:	9f 93       	push	r25
   28584:	8f 93       	push	r24
   28586:	7f 93       	push	r23
   28588:	6f 93       	push	r22
   2858a:	86 e4       	ldi	r24, 0x46	; 70
   2858c:	9e e6       	ldi	r25, 0x6E	; 110
   2858e:	9f 93       	push	r25
   28590:	8f 93       	push	r24
   28592:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
        else //time>=100h
            chars = lcd_printf_P(_N(LCD_STR_CLOCK "%3uh %c%c"), print_t / 60, suff, suff_doubt);
   28596:	0f b6       	in	r0, 0x3f	; 63
   28598:	f8 94       	cli
   2859a:	de bf       	out	0x3e, r29	; 62
   2859c:	0f be       	out	0x3f, r0	; 63
   2859e:	cd bf       	out	0x3d, r28	; 61
        chars = lcd_printf_P(PSTR("Nd %4.2f "),(float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
#else
        chars = lcd_printf_P(_N(LCD_STR_CLOCK "--:--  "));
#endif //QUICK_NOZZLE_CHANGE
    }
    lcd_space(8 - chars);
   285a0:	98 e0       	ldi	r25, 0x08	; 8
   285a2:	98 1b       	sub	r25, r24
   285a4:	89 2f       	mov	r24, r25
   285a6:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
#else
    //Print time (8chars)
	lcdui_print_time();
#endif //CMD_DIAGNOSTICS

    lcd_set_cursor(0, 3); //line 3
   285aa:	63 e0       	ldi	r22, 0x03	; 3
   285ac:	80 e0       	ldi	r24, 0x00	; 0
   285ae:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>

#ifndef DEBUG_DISABLE_LCD_STATUS_LINE
	lcdui_print_status_line();
   285b2:	0f 94 7f 2b 	call	0x256fe	; 0x256fe <lcdui_print_status_line()>

		lcdui_print_status_screen();

		prusa_statistics_update_from_status_screen();

		if (lcd_commands_type != LcdCommands::Idle)
   285b6:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   285ba:	88 23       	and	r24, r24
   285bc:	09 f4       	brne	.+2      	; 0x285c0 <lcd_status_screen()+0x43e>
   285be:	3e ce       	rjmp	.-900    	; 0x2823c <lcd_status_screen()+0xba>
void lcd_print_stop_finish();

void lcd_commands()
{
    // printf_P(PSTR("lcd_commands begin, lcd_commands_type=%u, lcd_commands_step=%u\n"), (uint8_t)lcd_commands_type, lcd_commands_step);
    if (planner_aborted) {
   285c0:	80 91 ac 0d 	lds	r24, 0x0DAC	; 0x800dac <planner_aborted>
   285c4:	81 11       	cpse	r24, r1
   285c6:	3a ce       	rjmp	.-908    	; 0x2823c <lcd_status_screen()+0xba>
   285c8:	0f 94 71 07 	call	0x20ee2	; 0x20ee2 <lcd_commands() [clone .part.41]>
   285cc:	37 ce       	rjmp	.-914    	; 0x2823c <lcd_status_screen()+0xba>
			lcd_printf_P(PSTR("%-7s"),sheet);
			return; //do not also print the percentage
		}
	}

    if (!IS_SD_PRINTING && M79_timer_get_status() && GetHostStatusScreenName())
   285ce:	e1 10       	cpse	r14, r1
   285d0:	04 c0       	rjmp	.+8      	; 0x285da <lcd_status_screen()+0x458>
   285d2:	80 91 9e 03 	lds	r24, 0x039E	; 0x80039e <_ZL9M79_timer.lto_priv.452>
   285d6:	81 11       	cpse	r24, r1
   285d8:	4a c0       	rjmp	.+148    	; 0x2866e <lcd_status_screen()+0x4ec>
        // Overwrite the name
        char * hostName = GetHostStatusScreenName();
        lcd_space(1);    // Blank space
        lcd_print(hostName); // Two characters
    } else {
        lcd_printf_P(PSTR("%3S"), src);
   285da:	df 92       	push	r13
   285dc:	cf 92       	push	r12
   285de:	87 e9       	ldi	r24, 0x97	; 151
   285e0:	9f e9       	ldi	r25, 0x9F	; 159
   285e2:	9f 93       	push	r25
   285e4:	8f 93       	push	r24
   285e6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   285ea:	0f 90       	pop	r0
   285ec:	0f 90       	pop	r0
   285ee:	0f 90       	pop	r0
   285f0:	0f 90       	pop	r0
uint8_t calc_percent_done()
{
    //in case that we have information from M73 gcode return percentage counted by slicer, else return percentage counted as byte_printed/filesize
    uint8_t percent_done = 0;
#ifdef TMC2130
    if (SilentModeMenu == SILENT_MODE_OFF && print_percent_done_normal <= 100)
   285f2:	80 91 a4 03 	lds	r24, 0x03A4	; 0x8003a4 <SilentModeMenu>
   285f6:	81 11       	cpse	r24, r1
   285f8:	04 c0       	rjmp	.+8      	; 0x28602 <lcd_status_screen()+0x480>
   285fa:	80 91 ae 02 	lds	r24, 0x02AE	; 0x8002ae <print_percent_done_normal>
   285fe:	85 36       	cpi	r24, 0x65	; 101
   28600:	f0 f1       	brcs	.+124    	; 0x2867e <lcd_status_screen()+0x4fc>
    {
        percent_done = print_percent_done_normal;
    }
    else if (print_percent_done_silent <= 100)
   28602:	80 91 ad 02 	lds	r24, 0x02AD	; 0x8002ad <print_percent_done_silent>
   28606:	85 36       	cpi	r24, 0x65	; 101
   28608:	d0 f1       	brcs	.+116    	; 0x2867e <lcd_status_screen()+0x4fc>
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
  FORCE_INLINE uint8_t percentDone(){if(!isFileOpen()) return 0; if(filesize) return sdpos/((filesize+99)/100); else return 0;};
   2860a:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   2860e:	88 23       	and	r24, r24
   28610:	19 f1       	breq	.+70     	; 0x28658 <lcd_status_screen()+0x4d6>
   28612:	80 91 9d 17 	lds	r24, 0x179D	; 0x80179d <card+0x30f>
   28616:	90 91 9e 17 	lds	r25, 0x179E	; 0x80179e <card+0x310>
   2861a:	a0 91 9f 17 	lds	r26, 0x179F	; 0x80179f <card+0x311>
   2861e:	b0 91 a0 17 	lds	r27, 0x17A0	; 0x8017a0 <card+0x312>
   28622:	00 97       	sbiw	r24, 0x00	; 0
   28624:	a1 05       	cpc	r26, r1
   28626:	b1 05       	cpc	r27, r1
   28628:	b9 f0       	breq	.+46     	; 0x28658 <lcd_status_screen()+0x4d6>
   2862a:	bc 01       	movw	r22, r24
   2862c:	cd 01       	movw	r24, r26
   2862e:	6d 59       	subi	r22, 0x9D	; 157
   28630:	7f 4f       	sbci	r23, 0xFF	; 255
   28632:	8f 4f       	sbci	r24, 0xFF	; 255
   28634:	9f 4f       	sbci	r25, 0xFF	; 255
   28636:	24 e6       	ldi	r18, 0x64	; 100
   28638:	30 e0       	ldi	r19, 0x00	; 0
   2863a:	40 e0       	ldi	r20, 0x00	; 0
   2863c:	50 e0       	ldi	r21, 0x00	; 0
   2863e:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   28642:	60 91 a4 17 	lds	r22, 0x17A4	; 0x8017a4 <card+0x316>
   28646:	70 91 a5 17 	lds	r23, 0x17A5	; 0x8017a5 <card+0x317>
   2864a:	80 91 a6 17 	lds	r24, 0x17A6	; 0x8017a6 <card+0x318>
   2864e:	90 91 a7 17 	lds	r25, 0x17A7	; 0x8017a7 <card+0x319>
   28652:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   28656:	12 2f       	mov	r17, r18
    }

    lcd_printf_P(num ? _N("%3d%%"):_N("---%%"), calc_percent_done());
   28658:	21 2f       	mov	r18, r17
   2865a:	30 e0       	ldi	r19, 0x00	; 0
   2865c:	89 e2       	ldi	r24, 0x29	; 41
   2865e:	9e e6       	ldi	r25, 0x6E	; 110
   28660:	f1 10       	cpse	r15, r1
   28662:	02 c0       	rjmp	.+4      	; 0x28668 <lcd_status_screen()+0x4e6>
   28664:	83 e2       	ldi	r24, 0x23	; 35
   28666:	9e e6       	ldi	r25, 0x6E	; 110
   28668:	3f 93       	push	r19
   2866a:	2f 93       	push	r18
   2866c:	14 cf       	rjmp	.-472    	; 0x28496 <lcd_status_screen()+0x314>

    if (!IS_SD_PRINTING && M79_timer_get_status() && GetHostStatusScreenName())
    {
        // Overwrite the name
        char * hostName = GetHostStatusScreenName();
        lcd_space(1);    // Blank space
   2866e:	81 e0       	ldi	r24, 0x01	; 1
   28670:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>
        lcd_print(hostName); // Two characters
   28674:	8c e4       	ldi	r24, 0x4C	; 76
   28676:	96 e0       	ldi	r25, 0x06	; 6
   28678:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
   2867c:	ba cf       	rjmp	.-140    	; 0x285f2 <lcd_status_screen()+0x470>
   2867e:	18 2f       	mov	r17, r24
   28680:	eb cf       	rjmp	.-42     	; 0x28658 <lcd_status_screen()+0x4d6>
        lcd_space(5 - lcdui_print_extruder());
    } else if (farm_mode) {
        // Print farm number (5 chars)
        lcdui_print_farm();
    } else {
        lcd_space(5); // 5 spaces
   28682:	85 e0       	ldi	r24, 0x05	; 5
   28684:	1a cf       	rjmp	.-460    	; 0x284ba <lcd_status_screen()+0x338>
            if (print_time_to_change_silent != PRINT_TIME_REMAINING_INIT)
                print_tc = print_time_to_change_silent;
//#endif //CLOCK_INTERVAL_TIME
        } else {
#endif //TMC2130
            if (print_time_remaining_normal != PRINT_TIME_REMAINING_INIT)
   28686:	c0 90 b1 02 	lds	r12, 0x02B1	; 0x8002b1 <print_time_remaining_normal>
   2868a:	d0 90 b2 02 	lds	r13, 0x02B2	; 0x8002b2 <print_time_remaining_normal+0x1>
                print_tr = print_time_remaining_normal;
//#ifdef CLOCK_INTERVAL_TIME
            if (print_time_to_change_normal != PRINT_TIME_REMAINING_INIT)
   2868e:	e0 90 af 02 	lds	r14, 0x02AF	; 0x8002af <print_time_to_change_normal>
   28692:	f0 90 b0 02 	lds	r15, 0x02B0	; 0x8002b0 <print_time_to_change_normal+0x1>
   28696:	25 cf       	rjmp	.-438    	; 0x284e2 <lcd_status_screen()+0x360>
        if (print_tc != PRINT_TIME_REMAINING_INIT && clock_interval > CLOCK_INTERVAL_TIME) {
            print_t = print_tc;
            suff = 'C';
        } else
//#endif //CLOCK_INTERVAL_TIME
        if (print_tr != PRINT_TIME_REMAINING_INIT) {
   28698:	96 01       	movw	r18, r12
            print_t = print_tr;
            suff = 'R';
   2869a:	12 e5       	ldi	r17, 0x52	; 82
   2869c:	43 cf       	rjmp	.-378    	; 0x28524 <lcd_status_screen()+0x3a2>
    if (printer_active()) {
        uint16_t print_t = PRINT_TIME_REMAINING_INIT;  // unit: minutes
        uint16_t print_tr = PRINT_TIME_REMAINING_INIT; // unit: minutes
        uint16_t print_tc = PRINT_TIME_REMAINING_INIT; // unit: minutes
        char suff = ' ';
        char suff_doubt = ' ';
   2869e:	40 e2       	ldi	r20, 0x20	; 32
   286a0:	5b cf       	rjmp	.-330    	; 0x28558 <lcd_status_screen()+0x3d6>
        }

        if (print_t < 6000) //time<100h
            chars = lcd_printf_P(_N(LCD_STR_CLOCK "%02u:%02u%c%c"), print_t / 60, print_t % 60, suff, suff_doubt);
        else //time>=100h
            chars = lcd_printf_P(_N(LCD_STR_CLOCK "%3uh %c%c"), print_t / 60, suff, suff_doubt);
   286a2:	ff 92       	push	r15
   286a4:	4f 93       	push	r20
   286a6:	ff 93       	push	r31
   286a8:	1f 93       	push	r17
   286aa:	7f 93       	push	r23
   286ac:	6f 93       	push	r22
   286ae:	8b e3       	ldi	r24, 0x3B	; 59
   286b0:	9e e6       	ldi	r25, 0x6E	; 110
   286b2:	9f 93       	push	r25
   286b4:	8f 93       	push	r24
   286b6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   286ba:	6d cf       	rjmp	.-294    	; 0x28596 <lcd_status_screen()+0x414>
    } else {
#ifdef QUICK_NOZZLE_CHANGE
        chars = lcd_printf_P(PSTR("Nd %4.2f "),(float)eeprom_read_word((uint16_t*)EEPROM_NOZZLE_DIAMETER_uM)/1000.0);
   286bc:	85 ea       	ldi	r24, 0xA5	; 165
   286be:	9d e0       	ldi	r25, 0x0D	; 13
   286c0:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   286c4:	bc 01       	movw	r22, r24
   286c6:	90 e0       	ldi	r25, 0x00	; 0
   286c8:	80 e0       	ldi	r24, 0x00	; 0
   286ca:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   286ce:	20 e0       	ldi	r18, 0x00	; 0
   286d0:	30 e0       	ldi	r19, 0x00	; 0
   286d2:	4a e7       	ldi	r20, 0x7A	; 122
   286d4:	54 e4       	ldi	r21, 0x44	; 68
   286d6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   286da:	9f 93       	push	r25
   286dc:	8f 93       	push	r24
   286de:	7f 93       	push	r23
   286e0:	6f 93       	push	r22
   286e2:	80 ea       	ldi	r24, 0xA0	; 160
   286e4:	9f e9       	ldi	r25, 0x9F	; 159
   286e6:	9f 93       	push	r25
   286e8:	8f 93       	push	r24
   286ea:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   286ee:	0f 90       	pop	r0
   286f0:	0f 90       	pop	r0
   286f2:	0f 90       	pop	r0
   286f4:	0f 90       	pop	r0
   286f6:	0f 90       	pop	r0
   286f8:	0f 90       	pop	r0
   286fa:	52 cf       	rjmp	.-348    	; 0x285a0 <lcd_status_screen()+0x41e>

000286fc <Stopwatch::reset()>:
  reset();
  if ((accumulator = with_time)) state = RUNNING;
}

void Stopwatch::reset() {
  state = STOPPED;
   286fc:	10 92 9d 03 	sts	0x039D, r1	; 0x80039d <Stopwatch::state>
  startTimestamp = 0;
   28700:	10 92 a7 05 	sts	0x05A7, r1	; 0x8005a7 <Stopwatch::startTimestamp>
   28704:	10 92 a8 05 	sts	0x05A8, r1	; 0x8005a8 <Stopwatch::startTimestamp+0x1>
   28708:	10 92 a9 05 	sts	0x05A9, r1	; 0x8005a9 <Stopwatch::startTimestamp+0x2>
   2870c:	10 92 aa 05 	sts	0x05AA, r1	; 0x8005aa <Stopwatch::startTimestamp+0x3>
  stopTimestamp = 0;
   28710:	10 92 52 06 	sts	0x0652, r1	; 0x800652 <Stopwatch::stopTimestamp>
   28714:	10 92 53 06 	sts	0x0653, r1	; 0x800653 <Stopwatch::stopTimestamp+0x1>
   28718:	10 92 54 06 	sts	0x0654, r1	; 0x800654 <Stopwatch::stopTimestamp+0x2>
   2871c:	10 92 55 06 	sts	0x0655, r1	; 0x800655 <Stopwatch::stopTimestamp+0x3>
  accumulator = 0;
   28720:	10 92 a3 05 	sts	0x05A3, r1	; 0x8005a3 <Stopwatch::accumulator>
   28724:	10 92 a4 05 	sts	0x05A4, r1	; 0x8005a4 <Stopwatch::accumulator+0x1>
   28728:	10 92 a5 05 	sts	0x05A5, r1	; 0x8005a5 <Stopwatch::accumulator+0x2>
   2872c:	10 92 a6 05 	sts	0x05A6, r1	; 0x8005a6 <Stopwatch::accumulator+0x3>
}
   28730:	08 95       	ret

00028732 <Stopwatch::start()>:
    /**
     * @brief Check if the timer is running
     * @details Return true if the timer is currently running, false otherwise.
     * @return true if stopwatch is running
     */
    FORCE_INLINE static bool isRunning() { return state == RUNNING; }
   28732:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
  }
  else return false;
}

bool Stopwatch::start() {
  if (!isRunning()) {
   28736:	81 30       	cpi	r24, 0x01	; 1
   28738:	f1 f0       	breq	.+60     	; 0x28776 <Stopwatch::start()+0x44>
    if (isPaused()) accumulator = duration();
   2873a:	82 30       	cpi	r24, 0x02	; 2
   2873c:	c9 f4       	brne	.+50     	; 0x28770 <Stopwatch::start()+0x3e>
   2873e:	0f 94 af 3f 	call	0x27f5e	; 0x27f5e <Stopwatch::duration()>
   28742:	60 93 a3 05 	sts	0x05A3, r22	; 0x8005a3 <Stopwatch::accumulator>
   28746:	70 93 a4 05 	sts	0x05A4, r23	; 0x8005a4 <Stopwatch::accumulator+0x1>
   2874a:	80 93 a5 05 	sts	0x05A5, r24	; 0x8005a5 <Stopwatch::accumulator+0x2>
   2874e:	90 93 a6 05 	sts	0x05A6, r25	; 0x8005a6 <Stopwatch::accumulator+0x3>
    else reset();

    state = RUNNING;
   28752:	81 e0       	ldi	r24, 0x01	; 1
   28754:	80 93 9d 03 	sts	0x039D, r24	; 0x80039d <Stopwatch::state>
    startTimestamp = _millis();
   28758:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2875c:	60 93 a7 05 	sts	0x05A7, r22	; 0x8005a7 <Stopwatch::startTimestamp>
   28760:	70 93 a8 05 	sts	0x05A8, r23	; 0x8005a8 <Stopwatch::startTimestamp+0x1>
   28764:	80 93 a9 05 	sts	0x05A9, r24	; 0x8005a9 <Stopwatch::startTimestamp+0x2>
   28768:	90 93 aa 05 	sts	0x05AA, r25	; 0x8005aa <Stopwatch::startTimestamp+0x3>
   2876c:	81 e0       	ldi	r24, 0x01	; 1
   2876e:	08 95       	ret
}

bool Stopwatch::start() {
  if (!isRunning()) {
    if (isPaused()) accumulator = duration();
    else reset();
   28770:	0f 94 7e 43 	call	0x286fc	; 0x286fc <Stopwatch::reset()>
   28774:	ee cf       	rjmp	.-36     	; 0x28752 <Stopwatch::start()+0x20>

    state = RUNNING;
    startTimestamp = _millis();
    return true;
  }
  else return false;
   28776:	80 e0       	ldi	r24, 0x00	; 0
}
   28778:	08 95       	ret

0002877a <Stopwatch::stop()>:
uint32_t Stopwatch::accumulator;
uint32_t Stopwatch::startTimestamp;
uint32_t Stopwatch::stopTimestamp;

bool Stopwatch::stop() {
  if (isRunning() || isPaused()) {
   2877a:	80 91 9d 03 	lds	r24, 0x039D	; 0x80039d <Stopwatch::state>
   2877e:	81 50       	subi	r24, 0x01	; 1
   28780:	82 30       	cpi	r24, 0x02	; 2
   28782:	70 f4       	brcc	.+28     	; 0x287a0 <Stopwatch::stop()+0x26>
    state = STOPPED;
   28784:	10 92 9d 03 	sts	0x039D, r1	; 0x80039d <Stopwatch::state>
    stopTimestamp = _millis();
   28788:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2878c:	60 93 52 06 	sts	0x0652, r22	; 0x800652 <Stopwatch::stopTimestamp>
   28790:	70 93 53 06 	sts	0x0653, r23	; 0x800653 <Stopwatch::stopTimestamp+0x1>
   28794:	80 93 54 06 	sts	0x0654, r24	; 0x800654 <Stopwatch::stopTimestamp+0x2>
   28798:	90 93 55 06 	sts	0x0655, r25	; 0x800655 <Stopwatch::stopTimestamp+0x3>
   2879c:	81 e0       	ldi	r24, 0x01	; 1
   2879e:	08 95       	ret
    return true;
  }
  else return false;
   287a0:	80 e0       	ldi	r24, 0x00	; 0
}
   287a2:	08 95       	ret

000287a4 <st_get_position(unsigned char)>:
}

long st_get_position(uint8_t axis)
{
  long count_pos;
  CRITICAL_SECTION_START;
   287a4:	2f b7       	in	r18, 0x3f	; 63
   287a6:	f8 94       	cli
  count_pos = count_position[axis];
   287a8:	94 e0       	ldi	r25, 0x04	; 4
   287aa:	89 9f       	mul	r24, r25
   287ac:	f0 01       	movw	r30, r0
   287ae:	11 24       	eor	r1, r1
   287b0:	ed 54       	subi	r30, 0x4D	; 77
   287b2:	f9 4f       	sbci	r31, 0xF9	; 249
   287b4:	60 81       	ld	r22, Z
   287b6:	71 81       	ldd	r23, Z+1	; 0x01
   287b8:	82 81       	ldd	r24, Z+2	; 0x02
   287ba:	93 81       	ldd	r25, Z+3	; 0x03
  CRITICAL_SECTION_END;
   287bc:	2f bf       	out	0x3f, r18	; 63
  return count_pos;
}
   287be:	08 95       	ret

000287c0 <st_get_position_mm(unsigned char)>:
  y = count_position[Y_AXIS];
  CRITICAL_SECTION_END;
}

float st_get_position_mm(uint8_t axis)
{
   287c0:	cf 93       	push	r28
   287c2:	c8 2f       	mov	r28, r24
  float steper_position_in_steps = st_get_position(axis);
   287c4:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
   287c8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
  return steper_position_in_steps / cs.axis_steps_per_mm[axis];
   287cc:	24 e0       	ldi	r18, 0x04	; 4
   287ce:	c2 9f       	mul	r28, r18
   287d0:	f0 01       	movw	r30, r0
   287d2:	11 24       	eor	r1, r1
   287d4:	ee 53       	subi	r30, 0x3E	; 62
   287d6:	f2 4f       	sbci	r31, 0xF2	; 242
   287d8:	20 81       	ld	r18, Z
   287da:	31 81       	ldd	r19, Z+1	; 0x01
   287dc:	42 81       	ldd	r20, Z+2	; 0x02
   287de:	53 81       	ldd	r21, Z+3	; 0x03
   287e0:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
}
   287e4:	cf 91       	pop	r28
   287e6:	08 95       	ret

000287e8 <st_synchronize()>:
}


// Block until all buffered steps are executed
void st_synchronize()
{
   287e8:	cf 93       	push	r28
   287ea:	df 93       	push	r29
   287ec:	00 d0       	rcall	.+0      	; 0x287ee <st_synchronize()+0x6>
   287ee:	1f 92       	push	r1
   287f0:	cd b7       	in	r28, 0x3d	; 61
   287f2:	de b7       	in	r29, 0x3e	; 62
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   287f4:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   287f8:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
	while(blocks_queued())
   287fc:	98 17       	cp	r25, r24
   287fe:	09 f4       	brne	.+2      	; 0x28802 <st_synchronize()+0x1a>
   28800:	46 c0       	rjmp	.+140    	; 0x2888e <st_synchronize()+0xa6>
	{
#ifdef TMC2130
		manage_heater();
   28802:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	tmc2130_sg_stop_on_crash = eeprom_read_byte((uint8_t*)EEPROM_CRASH_DET);
}

bool tmc2130_update_sg()
{
	if (tmc2130_sg_measure <= E_AXIS)
   28806:	80 91 3b 02 	lds	r24, 0x023B	; 0x80023b <_ZL18tmc2130_sg_measure.lto_priv.475>
   2880a:	84 30       	cpi	r24, 0x04	; 4
   2880c:	38 f0       	brcs	.+14     	; 0x2881c <st_synchronize()+0x34>
		// Vojtech: Don't disable motors inside the planner!
		if (!tmc2130_update_sg())
		{
			manage_inactivity(true);
   2880e:	81 e0       	ldi	r24, 0x01	; 1
   28810:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
			lcd_update(0);
   28814:	80 e0       	ldi	r24, 0x00	; 0
   28816:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
   2881a:	ec cf       	rjmp	.-40     	; 0x287f4 <st_synchronize()+0xc>
	{
		uint32_t val32 = 0;
   2881c:	19 82       	std	Y+1, r1	; 0x01
   2881e:	1a 82       	std	Y+2, r1	; 0x02
   28820:	1b 82       	std	Y+3, r1	; 0x03
   28822:	1c 82       	std	Y+4, r1	; 0x04
		tmc2130_rd(tmc2130_sg_measure, TMC2130_REG_DRV_STATUS, &val32);
   28824:	ae 01       	movw	r20, r28
   28826:	4f 5f       	subi	r20, 0xFF	; 255
   28828:	5f 4f       	sbci	r21, 0xFF	; 255
   2882a:	6f e6       	ldi	r22, 0x6F	; 111
   2882c:	0f 94 fd 24 	call	0x249fa	; 0x249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>
		tmc2130_sg_measure_val += (val32 & 0x3ff);
   28830:	89 81       	ldd	r24, Y+1	; 0x01
   28832:	9a 81       	ldd	r25, Y+2	; 0x02
   28834:	ab 81       	ldd	r26, Y+3	; 0x03
   28836:	bc 81       	ldd	r27, Y+4	; 0x04
   28838:	93 70       	andi	r25, 0x03	; 3
   2883a:	aa 27       	eor	r26, r26
   2883c:	bb 27       	eor	r27, r27
   2883e:	40 91 d1 03 	lds	r20, 0x03D1	; 0x8003d1 <_ZL22tmc2130_sg_measure_val.lto_priv.476>
   28842:	50 91 d2 03 	lds	r21, 0x03D2	; 0x8003d2 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x1>
   28846:	60 91 d3 03 	lds	r22, 0x03D3	; 0x8003d3 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x2>
   2884a:	70 91 d4 03 	lds	r23, 0x03D4	; 0x8003d4 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x3>
   2884e:	84 0f       	add	r24, r20
   28850:	95 1f       	adc	r25, r21
   28852:	a6 1f       	adc	r26, r22
   28854:	b7 1f       	adc	r27, r23
   28856:	80 93 d1 03 	sts	0x03D1, r24	; 0x8003d1 <_ZL22tmc2130_sg_measure_val.lto_priv.476>
   2885a:	90 93 d2 03 	sts	0x03D2, r25	; 0x8003d2 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x1>
   2885e:	a0 93 d3 03 	sts	0x03D3, r26	; 0x8003d3 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x2>
   28862:	b0 93 d4 03 	sts	0x03D4, r27	; 0x8003d4 <_ZL22tmc2130_sg_measure_val.lto_priv.476+0x3>
		tmc2130_sg_measure_cnt++;
   28866:	80 91 cd 03 	lds	r24, 0x03CD	; 0x8003cd <_ZL22tmc2130_sg_measure_cnt.lto_priv.477>
   2886a:	90 91 ce 03 	lds	r25, 0x03CE	; 0x8003ce <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x1>
   2886e:	a0 91 cf 03 	lds	r26, 0x03CF	; 0x8003cf <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x2>
   28872:	b0 91 d0 03 	lds	r27, 0x03D0	; 0x8003d0 <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x3>
   28876:	01 96       	adiw	r24, 0x01	; 1
   28878:	a1 1d       	adc	r26, r1
   2887a:	b1 1d       	adc	r27, r1
   2887c:	80 93 cd 03 	sts	0x03CD, r24	; 0x8003cd <_ZL22tmc2130_sg_measure_cnt.lto_priv.477>
   28880:	90 93 ce 03 	sts	0x03CE, r25	; 0x8003ce <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x1>
   28884:	a0 93 cf 03 	sts	0x03CF, r26	; 0x8003cf <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x2>
   28888:	b0 93 d0 03 	sts	0x03D0, r27	; 0x8003d0 <_ZL22tmc2130_sg_measure_cnt.lto_priv.477+0x3>
   2888c:	b3 cf       	rjmp	.-154    	; 0x287f4 <st_synchronize()+0xc>
#else //TMC2130
		// Vojtech: Don't disable motors inside the planner!
		delay_keep_alive(0);
#endif //TMC2130
	}
}
   2888e:	0f 90       	pop	r0
   28890:	0f 90       	pop	r0
   28892:	0f 90       	pop	r0
   28894:	0f 90       	pop	r0
   28896:	df 91       	pop	r29
   28898:	cf 91       	pop	r28
   2889a:	08 95       	ret

0002889c <st_reset_timer()>:


void st_reset_timer()
{
  // Clear a possible pending interrupt on OCR1A overflow.
  TIFR1 |= 1 << OCF1A;
   2889c:	b1 9a       	sbi	0x16, 1	; 22
  // Reset the counter.
  TCNT1 = 0;
   2889e:	10 92 85 00 	sts	0x0085, r1	; 0x800085 <__TEXT_REGION_LENGTH__+0x7c2085>
   288a2:	10 92 84 00 	sts	0x0084, r1	; 0x800084 <__TEXT_REGION_LENGTH__+0x7c2084>
  // Wake up after 1ms from now.
  OCR1A = 2000;
   288a6:	80 ed       	ldi	r24, 0xD0	; 208
   288a8:	97 e0       	ldi	r25, 0x07	; 7
   288aa:	90 93 89 00 	sts	0x0089, r25	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   288ae:	80 93 88 00 	sts	0x0088, r24	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>

#ifdef LIN_ADVANCE
  nextMainISR = 0;
   288b2:	10 92 e6 04 	sts	0x04E6, r1	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   288b6:	10 92 e5 04 	sts	0x04E5, r1	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
  if(nextAdvanceISR && nextAdvanceISR != ADV_NEVER)
   288ba:	80 91 e3 04 	lds	r24, 0x04E3	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   288be:	90 91 e4 04 	lds	r25, 0x04E4	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   288c2:	01 97       	sbiw	r24, 0x01	; 1
   288c4:	8e 3f       	cpi	r24, 0xFE	; 254
   288c6:	9f 4f       	sbci	r25, 0xFF	; 255
   288c8:	20 f4       	brcc	.+8      	; 0x288d2 <st_reset_timer()+0x36>
      nextAdvanceISR = 0;
   288ca:	10 92 e4 04 	sts	0x04E4, r1	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   288ce:	10 92 e3 04 	sts	0x04E3, r1	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
#endif
}
   288d2:	08 95       	ret

000288d4 <__vector_17>:
//  step_events_completed reaches block->decelerate_after after which it decelerates until the trapezoid generator is reset.
//  The slope of acceleration is calculated using v = u + at where t is the accumulated timer values of the steps so far.

// "The Stepper Driver Interrupt" - This timer interrupt is the workhorse.
// It pops blocks from the block_buffer and executes them by pulsing the stepper pins appropriately.
ISR(TIMER1_COMPA_vect) {
   288d4:	1f 92       	push	r1
   288d6:	0f 92       	push	r0
   288d8:	0f b6       	in	r0, 0x3f	; 63
   288da:	0f 92       	push	r0
   288dc:	11 24       	eor	r1, r1
   288de:	0b b6       	in	r0, 0x3b	; 59
   288e0:	0f 92       	push	r0
   288e2:	6f 92       	push	r6
   288e4:	7f 92       	push	r7
   288e6:	8f 92       	push	r8
   288e8:	cf 92       	push	r12
   288ea:	df 92       	push	r13
   288ec:	ef 92       	push	r14
   288ee:	ff 92       	push	r15
   288f0:	0f 93       	push	r16
   288f2:	1f 93       	push	r17
   288f4:	2f 93       	push	r18
   288f6:	3f 93       	push	r19
   288f8:	4f 93       	push	r20
   288fa:	5f 93       	push	r21
   288fc:	6f 93       	push	r22
   288fe:	7f 93       	push	r23
   28900:	8f 93       	push	r24
   28902:	9f 93       	push	r25
   28904:	af 93       	push	r26
   28906:	bf 93       	push	r27
   28908:	cf 93       	push	r28
   2890a:	df 93       	push	r29
   2890c:	ef 93       	push	r30
   2890e:	ff 93       	push	r31
    }
}

FORCE_INLINE void advance_isr_scheduler() {
    // Integrate the final timer value, accounting for scheduling adjustments
    if(nextAdvanceISR && nextAdvanceISR != ADV_NEVER)
   28910:	80 91 e3 04 	lds	r24, 0x04E3	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   28914:	90 91 e4 04 	lds	r25, 0x04E4	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   28918:	9c 01       	movw	r18, r24
   2891a:	21 50       	subi	r18, 0x01	; 1
   2891c:	31 09       	sbc	r19, r1
   2891e:	2e 3f       	cpi	r18, 0xFE	; 254
   28920:	3f 4f       	sbci	r19, 0xFF	; 255
   28922:	90 f4       	brcc	.+36     	; 0x28948 <__vector_17+0x74>
    {
        if(nextAdvanceISR > OCR1A)
   28924:	20 91 88 00 	lds	r18, 0x0088	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   28928:	30 91 89 00 	lds	r19, 0x0089	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   2892c:	28 17       	cp	r18, r24
   2892e:	39 07       	cpc	r19, r25
   28930:	08 f0       	brcs	.+2      	; 0x28934 <__vector_17+0x60>
   28932:	f9 c0       	rjmp	.+498    	; 0x28b26 <__vector_17+0x252>
            nextAdvanceISR -= OCR1A;
   28934:	20 91 88 00 	lds	r18, 0x0088	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   28938:	30 91 89 00 	lds	r19, 0x0089	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   2893c:	82 1b       	sub	r24, r18
   2893e:	93 0b       	sbc	r25, r19
   28940:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   28944:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
        else
            nextAdvanceISR = 0;
    }
    if(nextMainISR > OCR1A)
   28948:	20 91 88 00 	lds	r18, 0x0088	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   2894c:	30 91 89 00 	lds	r19, 0x0089	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   28950:	80 91 e5 04 	lds	r24, 0x04E5	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   28954:	90 91 e6 04 	lds	r25, 0x04E6	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   28958:	28 17       	cp	r18, r24
   2895a:	39 07       	cpc	r19, r25
   2895c:	08 f0       	brcs	.+2      	; 0x28960 <__vector_17+0x8c>
   2895e:	e8 c0       	rjmp	.+464    	; 0x28b30 <__vector_17+0x25c>
        nextMainISR -= OCR1A;
   28960:	20 91 88 00 	lds	r18, 0x0088	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   28964:	30 91 89 00 	lds	r19, 0x0089	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   28968:	82 1b       	sub	r24, r18
   2896a:	93 0b       	sbc	r25, r19
   2896c:	90 93 e6 04 	sts	0x04E6, r25	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   28970:	80 93 e5 04 	sts	0x04E5, r24	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
    else
        nextMainISR = 0;

    // Run main stepping ISR if flagged
    if (!nextMainISR)
   28974:	80 91 e5 04 	lds	r24, 0x04E5	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   28978:	90 91 e6 04 	lds	r25, 0x04E6	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   2897c:	89 2b       	or	r24, r25
   2897e:	11 f0       	breq	.+4      	; 0x28984 <__vector_17+0xb0>
   28980:	0d 94 ba 4d 	jmp	0x29b74	; 0x29b74 <__vector_17+0x12a0>
FORCE_INLINE void isr() {
  //WRITE_NC(LOGIC_ANALYZER_CH0, true);

	//if (UVLO) uvlo();
  // If there is no current block, attempt to pop one from the buffer
  if (current_block == NULL)
   28984:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28988:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   2898c:	30 97       	sbiw	r30, 0x00	; 0
   2898e:	09 f0       	breq	.+2      	; 0x28992 <__vector_17+0xbe>
   28990:	87 c1       	rjmp	.+782    	; 0x28ca0 <__vector_17+0x3cc>
// Mark this block as busy, so its velocities and acceperations will be no more recalculated
// by the planner routine.
// Returns NULL if buffer empty
FORCE_INLINE block_t *plan_get_current_block()
{
  if (block_buffer_head == block_buffer_tail) {
   28992:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   28996:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   2899a:	98 17       	cp	r25, r24
   2899c:	09 f4       	brne	.+2      	; 0x289a0 <__vector_17+0xcc>
   2899e:	f9 c1       	rjmp	.+1010   	; 0x28d92 <__vector_17+0x4be>
    return(NULL);
  }
  block_t *block = &block_buffer[block_buffer_tail];
   289a0:	c0 91 a6 0d 	lds	r28, 0x0DA6	; 0x800da6 <block_buffer_tail>
   289a4:	2c 2f       	mov	r18, r28
   289a6:	30 e0       	ldi	r19, 0x00	; 0
   289a8:	5e e6       	ldi	r21, 0x6E	; 110
   289aa:	c5 9f       	mul	r28, r21
   289ac:	e0 01       	movw	r28, r0
   289ae:	11 24       	eor	r1, r1
   289b0:	cb 53       	subi	r28, 0x3B	; 59
   289b2:	d9 4f       	sbci	r29, 0xF9	; 249
  block->busy = true;
   289b4:	fe 01       	movw	r30, r28
   289b6:	e9 5b       	subi	r30, 0xB9	; 185
   289b8:	ff 4f       	sbci	r31, 0xFF	; 255
   289ba:	41 e0       	ldi	r20, 0x01	; 1
   289bc:	40 83       	st	Z, r20

FORCE_INLINE void stepper_next_block()
{
  // Anything in the buffer?
  //WRITE_NC(LOGIC_ANALYZER_CH2, true);
  current_block = plan_get_current_block();
   289be:	d0 93 a2 05 	sts	0x05A2, r29	; 0x8005a2 <current_block+0x1>
   289c2:	c0 93 a1 05 	sts	0x05A1, r28	; 0x8005a1 <current_block>
  if (current_block != NULL) {
   289c6:	20 97       	sbiw	r28, 0x00	; 0
   289c8:	09 f4       	brne	.+2      	; 0x289cc <__vector_17+0xf8>
   289ca:	e3 c1       	rjmp	.+966    	; 0x28d92 <__vector_17+0x4be>

    // The busy flag is set by the plan_get_current_block() call.
    // current_block->busy = true;
    // Initializes the trapezoid generator from the current block. Called whenever a new
    // block begins.
    deceleration_time = 0;
   289cc:	10 92 9d 05 	sts	0x059D, r1	; 0x80059d <deceleration_time>
   289d0:	10 92 9e 05 	sts	0x059E, r1	; 0x80059e <deceleration_time+0x1>
   289d4:	10 92 9f 05 	sts	0x059F, r1	; 0x80059f <deceleration_time+0x2>
   289d8:	10 92 a0 05 	sts	0x05A0, r1	; 0x8005a0 <deceleration_time+0x3>
    // Set the nominal step loops to zero to indicate, that the timer value is not known yet.
    // That means, delay the initialization of nominal step rate and step loops until the steady
    // state is reached.
    step_loops_nominal = 0;
   289dc:	10 92 9c 05 	sts	0x059C, r1	; 0x80059c <step_loops_nominal>
    acc_step_rate = uint16_t(current_block->initial_rate);
   289e0:	8a ad       	ldd	r24, Y+58	; 0x3a
   289e2:	9b ad       	ldd	r25, Y+59	; 0x3b
   289e4:	90 93 9b 05 	sts	0x059B, r25	; 0x80059b <acc_step_rate+0x1>
   289e8:	80 93 9a 05 	sts	0x059A, r24	; 0x80059a <acc_step_rate>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   289ec:	81 34       	cpi	r24, 0x41	; 65
   289ee:	ec e9       	ldi	r30, 0x9C	; 156
   289f0:	9e 07       	cpc	r25, r30
   289f2:	08 f0       	brcs	.+2      	; 0x289f6 <__vector_17+0x122>
   289f4:	a2 c0       	rjmp	.+324    	; 0x28b3a <__vector_17+0x266>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
   289f6:	81 32       	cpi	r24, 0x21	; 33
   289f8:	fe e4       	ldi	r31, 0x4E	; 78
   289fa:	9f 07       	cpc	r25, r31
   289fc:	08 f4       	brcc	.+2      	; 0x28a00 <__vector_17+0x12c>
   289fe:	a0 c0       	rjmp	.+320    	; 0x28b40 <__vector_17+0x26c>
    step_rate = (step_rate >> 2)&0x3fff;
   28a00:	96 95       	lsr	r25
   28a02:	87 95       	ror	r24
   28a04:	96 95       	lsr	r25
   28a06:	87 95       	ror	r24
    step_loops = 4;
   28a08:	44 e0       	ldi	r20, 0x04	; 4
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
    step_rate = (step_rate >> 1)&0x7fff;
    step_loops = 2;
   28a0a:	40 93 99 05 	sts	0x0599, r20	; 0x800599 <step_loops>
  else {
    step_loops = 1;
  }

  if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000);
  step_rate -= (F_CPU/500000); // Correct for minimal speed
   28a0e:	80 97       	sbiw	r24, 0x20	; 32
  if(step_rate >= (8*256)){ // higher step rate
   28a10:	81 15       	cp	r24, r1
   28a12:	e8 e0       	ldi	r30, 0x08	; 8
   28a14:	9e 07       	cpc	r25, r30
   28a16:	08 f4       	brcc	.+2      	; 0x28a1a <__vector_17+0x146>
   28a18:	a4 c0       	rjmp	.+328    	; 0x28b62 <__vector_17+0x28e>
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
   28a1a:	e9 2f       	mov	r30, r25
   28a1c:	ff 27       	eor	r31, r31
   28a1e:	ee 0f       	add	r30, r30
   28a20:	ff 1f       	adc	r31, r31
   28a22:	ee 0f       	add	r30, r30
   28a24:	ff 1f       	adc	r31, r31
   28a26:	af 01       	movw	r20, r30
   28a28:	40 59       	subi	r20, 0x90	; 144
   28a2a:	5a 46       	sbci	r21, 0x6A	; 106
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
   28a2c:	fa 01       	movw	r30, r20
   28a2e:	32 96       	adiw	r30, 0x02	; 2
   28a30:	a5 91       	lpm	r26, Z+
   28a32:	b4 91       	lpm	r27, Z
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   28a34:	fa 01       	movw	r30, r20
   28a36:	45 91       	lpm	r20, Z+
   28a38:	54 91       	lpm	r21, Z
    "clr r1" "\n\t"         //make r1 __zero_reg__ again
    "adc %B0, r1" "\n\t"    //propagate carry of addition (add 0 with carry)
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1"            //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case.
    );
   28a3a:	b8 9f       	mul	r27, r24
   28a3c:	b0 01       	movw	r22, r0
   28a3e:	a8 9f       	mul	r26, r24
   28a40:	00 0c       	add	r0, r0
   28a42:	61 1d       	adc	r22, r1
   28a44:	11 24       	eor	r1, r1
   28a46:	71 1d       	adc	r23, r1
  step_rate -= (F_CPU/500000); // Correct for minimal speed
  if(step_rate >= (8*256)){ // higher step rate
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   28a48:	ca 01       	movw	r24, r20
   28a4a:	86 1b       	sub	r24, r22
   28a4c:	97 0b       	sbc	r25, r23
    acceleration_time = calc_timer(acc_step_rate, step_loops);
   28a4e:	84 36       	cpi	r24, 0x64	; 100
   28a50:	91 05       	cpc	r25, r1
   28a52:	10 f4       	brcc	.+4      	; 0x28a58 <__vector_17+0x184>
   28a54:	84 e6       	ldi	r24, 0x64	; 100
   28a56:	90 e0       	ldi	r25, 0x00	; 0
   28a58:	b0 e0       	ldi	r27, 0x00	; 0
   28a5a:	a0 e0       	ldi	r26, 0x00	; 0
   28a5c:	80 93 95 05 	sts	0x0595, r24	; 0x800595 <acceleration_time>
   28a60:	90 93 96 05 	sts	0x0596, r25	; 0x800596 <acceleration_time+0x1>
   28a64:	a0 93 97 05 	sts	0x0597, r26	; 0x800597 <acceleration_time+0x2>
   28a68:	b0 93 98 05 	sts	0x0598, r27	; 0x800598 <acceleration_time+0x3>

#ifdef LIN_ADVANCE
    if (current_block->use_advance_lead) {
   28a6c:	4e e6       	ldi	r20, 0x6E	; 110
   28a6e:	42 9f       	mul	r20, r18
   28a70:	c0 01       	movw	r24, r0
   28a72:	43 9f       	mul	r20, r19
   28a74:	90 0d       	add	r25, r0
   28a76:	11 24       	eor	r1, r1
   28a78:	8b 53       	subi	r24, 0x3B	; 59
   28a7a:	99 4f       	sbci	r25, 0xF9	; 249
   28a7c:	fc 01       	movw	r30, r24
   28a7e:	e4 5b       	subi	r30, 0xB4	; 180
   28a80:	ff 4f       	sbci	r31, 0xFF	; 255
   28a82:	40 81       	ld	r20, Z
   28a84:	44 23       	and	r20, r20
   28a86:	49 f0       	breq	.+18     	; 0x28a9a <__vector_17+0x1c6>
        target_adv_steps = current_block->max_adv_steps;
   28a88:	81 5b       	subi	r24, 0xB1	; 177
   28a8a:	9f 4f       	sbci	r25, 0xFF	; 255
   28a8c:	fc 01       	movw	r30, r24
   28a8e:	80 81       	ld	r24, Z
   28a90:	91 81       	ldd	r25, Z+1	; 0x01
   28a92:	90 93 94 05 	sts	0x0594, r25	; 0x800594 <target_adv_steps+0x1>
   28a96:	80 93 93 05 	sts	0x0593, r24	; 0x800593 <target_adv_steps>
    }
    e_steps = 0;
   28a9a:	10 92 92 05 	sts	0x0592, r1	; 0x800592 <e_steps>
    nextAdvanceISR = ADV_NEVER;
   28a9e:	8f ef       	ldi	r24, 0xFF	; 255
   28aa0:	9f ef       	ldi	r25, 0xFF	; 255
   28aa2:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   28aa6:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
    LA_phase = -1;
   28aaa:	80 93 91 05 	sts	0x0591, r24	; 0x800591 <LA_phase>
#endif

    if (current_block->flag & BLOCK_FLAG_E_RESET) {
   28aae:	8e e6       	ldi	r24, 0x6E	; 110
   28ab0:	82 9f       	mul	r24, r18
   28ab2:	f0 01       	movw	r30, r0
   28ab4:	83 9f       	mul	r24, r19
   28ab6:	f0 0d       	add	r31, r0
   28ab8:	11 24       	eor	r1, r1
   28aba:	eb 53       	subi	r30, 0x3B	; 59
   28abc:	f9 4f       	sbci	r31, 0xF9	; 249
   28abe:	85 a9       	ldd	r24, Z+53	; 0x35
   28ac0:	84 ff       	sbrs	r24, 4
   28ac2:	08 c0       	rjmp	.+16     	; 0x28ad4 <__vector_17+0x200>
        count_position[E_AXIS] = 0;
   28ac4:	10 92 bf 06 	sts	0x06BF, r1	; 0x8006bf <count_position+0xc>
   28ac8:	10 92 c0 06 	sts	0x06C0, r1	; 0x8006c0 <count_position+0xd>
   28acc:	10 92 c1 06 	sts	0x06C1, r1	; 0x8006c1 <count_position+0xe>
   28ad0:	10 92 c2 06 	sts	0x06C2, r1	; 0x8006c2 <count_position+0xf>
    }

    if (current_block->flag & BLOCK_FLAG_DDA_LOWRES) {
   28ad4:	83 ff       	sbrs	r24, 3
   28ad6:	66 c0       	rjmp	.+204    	; 0x28ba4 <__vector_17+0x2d0>
      const int16_t value = -(current_block->step_event_count.lo >> 1);
   28ad8:	8e e6       	ldi	r24, 0x6E	; 110
   28ada:	82 9f       	mul	r24, r18
   28adc:	f0 01       	movw	r30, r0
   28ade:	83 9f       	mul	r24, r19
   28ae0:	f0 0d       	add	r31, r0
   28ae2:	11 24       	eor	r1, r1
   28ae4:	eb 53       	subi	r30, 0x3B	; 59
   28ae6:	f9 4f       	sbci	r31, 0xF9	; 249
   28ae8:	80 89       	ldd	r24, Z+16	; 0x10
   28aea:	91 89       	ldd	r25, Z+17	; 0x11
   28aec:	96 95       	lsr	r25
   28aee:	87 95       	ror	r24
   28af0:	91 95       	neg	r25
   28af2:	81 95       	neg	r24
   28af4:	91 09       	sbc	r25, r1
      for (uint8_t axis = 0; axis < NUM_AXIS; axis++)
      {
        counter[axis].lo = value;
   28af6:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   28afa:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
   28afe:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   28b02:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
   28b06:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   28b0a:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
   28b0e:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   28b12:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
      }
#ifdef LIN_ADVANCE
      e_extruding = current_block->steps[E_AXIS].lo != 0;
   28b16:	81 e0       	ldi	r24, 0x01	; 1
   28b18:	24 85       	ldd	r18, Z+12	; 0x0c
   28b1a:	35 85       	ldd	r19, Z+13	; 0x0d
   28b1c:	23 2b       	or	r18, r19
   28b1e:	09 f0       	breq	.+2      	; 0x28b22 <__vector_17+0x24e>
   28b20:	82 c0       	rjmp	.+260    	; 0x28c26 <__vector_17+0x352>
      for (uint8_t axis = 0; axis < NUM_AXIS; axis++)
      {
        counter[axis].wide = value;
      }
#ifdef LIN_ADVANCE
      e_extruding = current_block->steps[E_AXIS].wide != 0;
   28b22:	80 e0       	ldi	r24, 0x00	; 0
   28b24:	80 c0       	rjmp	.+256    	; 0x28c26 <__vector_17+0x352>
    if(nextAdvanceISR && nextAdvanceISR != ADV_NEVER)
    {
        if(nextAdvanceISR > OCR1A)
            nextAdvanceISR -= OCR1A;
        else
            nextAdvanceISR = 0;
   28b26:	10 92 e4 04 	sts	0x04E4, r1	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   28b2a:	10 92 e3 04 	sts	0x04E3, r1	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   28b2e:	0c cf       	rjmp	.-488    	; 0x28948 <__vector_17+0x74>
    }
    if(nextMainISR > OCR1A)
        nextMainISR -= OCR1A;
    else
        nextMainISR = 0;
   28b30:	10 92 e6 04 	sts	0x04E6, r1	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   28b34:	10 92 e5 04 	sts	0x04E5, r1	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   28b38:	1d cf       	rjmp	.-454    	; 0x28974 <__vector_17+0xa0>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   28b3a:	80 e4       	ldi	r24, 0x40	; 64
   28b3c:	9c e9       	ldi	r25, 0x9C	; 156
   28b3e:	60 cf       	rjmp	.-320    	; 0x28a00 <__vector_17+0x12c>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
    step_rate = (step_rate >> 2)&0x3fff;
    step_loops = 4;
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
   28b40:	81 31       	cpi	r24, 0x11	; 17
   28b42:	57 e2       	ldi	r21, 0x27	; 39
   28b44:	95 07       	cpc	r25, r21
   28b46:	20 f0       	brcs	.+8      	; 0x28b50 <__vector_17+0x27c>
    step_rate = (step_rate >> 1)&0x7fff;
   28b48:	96 95       	lsr	r25
   28b4a:	87 95       	ror	r24
    step_loops = 2;
   28b4c:	42 e0       	ldi	r20, 0x02	; 2
   28b4e:	5d cf       	rjmp	.-326    	; 0x28a0a <__vector_17+0x136>
  }
  else {
    step_loops = 1;
   28b50:	40 93 99 05 	sts	0x0599, r20	; 0x800599 <step_loops>
   28b54:	80 32       	cpi	r24, 0x20	; 32
   28b56:	91 05       	cpc	r25, r1
   28b58:	08 f0       	brcs	.+2      	; 0x28b5c <__vector_17+0x288>
   28b5a:	59 cf       	rjmp	.-334    	; 0x28a0e <__vector_17+0x13a>
   28b5c:	80 e2       	ldi	r24, 0x20	; 32
   28b5e:	90 e0       	ldi	r25, 0x00	; 0
   28b60:	56 cf       	rjmp	.-340    	; 0x28a0e <__vector_17+0x13a>
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
  }
  else { // lower step rates
    unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0];
    table_address += ((step_rate)>>1) & 0xfffc;
   28b62:	ac 01       	movw	r20, r24
   28b64:	56 95       	lsr	r21
   28b66:	47 95       	ror	r20
   28b68:	4c 7f       	andi	r20, 0xFC	; 252
   28b6a:	40 59       	subi	r20, 0x90	; 144
   28b6c:	5e 46       	sbci	r21, 0x6E	; 110
    timer = (unsigned short)pgm_read_word_near(table_address);
   28b6e:	fa 01       	movw	r30, r20
   28b70:	65 91       	lpm	r22, Z+
   28b72:	74 91       	lpm	r23, Z
    timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
   28b74:	fa 01       	movw	r30, r20
   28b76:	32 96       	adiw	r30, 0x02	; 2
   28b78:	a5 91       	lpm	r26, Z+
   28b7a:	b4 91       	lpm	r27, Z
   28b7c:	ac 01       	movw	r20, r24
   28b7e:	47 70       	andi	r20, 0x07	; 7
   28b80:	55 27       	eor	r21, r21
   28b82:	4a 9f       	mul	r20, r26
   28b84:	c0 01       	movw	r24, r0
   28b86:	4b 9f       	mul	r20, r27
   28b88:	90 0d       	add	r25, r0
   28b8a:	5a 9f       	mul	r21, r26
   28b8c:	90 0d       	add	r25, r0
   28b8e:	11 24       	eor	r1, r1
   28b90:	e3 e0       	ldi	r30, 0x03	; 3
   28b92:	96 95       	lsr	r25
   28b94:	87 95       	ror	r24
   28b96:	ea 95       	dec	r30
   28b98:	e1 f7       	brne	.-8      	; 0x28b92 <__vector_17+0x2be>
   28b9a:	ab 01       	movw	r20, r22
   28b9c:	48 1b       	sub	r20, r24
   28b9e:	59 0b       	sbc	r21, r25
   28ba0:	ca 01       	movw	r24, r20
   28ba2:	55 cf       	rjmp	.-342    	; 0x28a4e <__vector_17+0x17a>
      }
#ifdef LIN_ADVANCE
      e_extruding = current_block->steps[E_AXIS].lo != 0;
#endif
    } else {
      const int32_t value = -(current_block->step_event_count.wide >> 1);
   28ba4:	8e e6       	ldi	r24, 0x6E	; 110
   28ba6:	82 9f       	mul	r24, r18
   28ba8:	f0 01       	movw	r30, r0
   28baa:	83 9f       	mul	r24, r19
   28bac:	f0 0d       	add	r31, r0
   28bae:	11 24       	eor	r1, r1
   28bb0:	eb 53       	subi	r30, 0x3B	; 59
   28bb2:	f9 4f       	sbci	r31, 0xF9	; 249
   28bb4:	80 89       	ldd	r24, Z+16	; 0x10
   28bb6:	91 89       	ldd	r25, Z+17	; 0x11
   28bb8:	a2 89       	ldd	r26, Z+18	; 0x12
   28bba:	b3 89       	ldd	r27, Z+19	; 0x13
   28bbc:	b6 95       	lsr	r27
   28bbe:	a7 95       	ror	r26
   28bc0:	97 95       	ror	r25
   28bc2:	87 95       	ror	r24
   28bc4:	b0 95       	com	r27
   28bc6:	a0 95       	com	r26
   28bc8:	90 95       	com	r25
   28bca:	81 95       	neg	r24
   28bcc:	9f 4f       	sbci	r25, 0xFF	; 255
   28bce:	af 4f       	sbci	r26, 0xFF	; 255
   28bd0:	bf 4f       	sbci	r27, 0xFF	; 255
      for (uint8_t axis = 0; axis < NUM_AXIS; axis++)
      {
        counter[axis].wide = value;
   28bd2:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
   28bd6:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   28bda:	a0 93 83 05 	sts	0x0583, r26	; 0x800583 <counter+0x2>
   28bde:	b0 93 84 05 	sts	0x0584, r27	; 0x800584 <counter+0x3>
   28be2:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
   28be6:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   28bea:	a0 93 87 05 	sts	0x0587, r26	; 0x800587 <counter+0x6>
   28bee:	b0 93 88 05 	sts	0x0588, r27	; 0x800588 <counter+0x7>
   28bf2:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
   28bf6:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   28bfa:	a0 93 8b 05 	sts	0x058B, r26	; 0x80058b <counter+0xa>
   28bfe:	b0 93 8c 05 	sts	0x058C, r27	; 0x80058c <counter+0xb>
   28c02:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
   28c06:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   28c0a:	a0 93 8f 05 	sts	0x058F, r26	; 0x80058f <counter+0xe>
   28c0e:	b0 93 90 05 	sts	0x0590, r27	; 0x800590 <counter+0xf>
      }
#ifdef LIN_ADVANCE
      e_extruding = current_block->steps[E_AXIS].wide != 0;
   28c12:	81 e0       	ldi	r24, 0x01	; 1
   28c14:	44 85       	ldd	r20, Z+12	; 0x0c
   28c16:	55 85       	ldd	r21, Z+13	; 0x0d
   28c18:	66 85       	ldd	r22, Z+14	; 0x0e
   28c1a:	77 85       	ldd	r23, Z+15	; 0x0f
   28c1c:	45 2b       	or	r20, r21
   28c1e:	46 2b       	or	r20, r22
   28c20:	47 2b       	or	r20, r23
   28c22:	09 f4       	brne	.+2      	; 0x28c26 <__vector_17+0x352>
   28c24:	7e cf       	rjmp	.-260    	; 0x28b22 <__vector_17+0x24e>
   28c26:	80 93 80 05 	sts	0x0580, r24	; 0x800580 <e_extruding>
#endif
    }
    step_events_completed.wide = 0;
   28c2a:	10 92 7c 05 	sts	0x057C, r1	; 0x80057c <step_events_completed>
   28c2e:	10 92 7d 05 	sts	0x057D, r1	; 0x80057d <step_events_completed+0x1>
   28c32:	10 92 7e 05 	sts	0x057E, r1	; 0x80057e <step_events_completed+0x2>
   28c36:	10 92 7f 05 	sts	0x057F, r1	; 0x80057f <step_events_completed+0x3>
    // Set directions.
    out_bits = current_block->direction_bits;
   28c3a:	88 8d       	ldd	r24, Y+24	; 0x18
   28c3c:	80 93 7b 05 	sts	0x057B, r24	; 0x80057b <out_bits>
    // Set the direction bits (X_AXIS=A_AXIS and Y_AXIS=B_AXIS for COREXY)
    if((out_bits & (1<<X_AXIS))!=0){
   28c40:	80 ff       	sbrs	r24, 0
   28c42:	90 c0       	rjmp	.+288    	; 0x28d64 <__vector_17+0x490>
      WRITE_NC(X_DIR_PIN, INVERT_X_DIR);
   28c44:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28c48:	81 60       	ori	r24, 0x01	; 1
   28c4a:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[X_AXIS]=-1;
   28c4e:	8f ef       	ldi	r24, 0xFF	; 255
    } else {
      WRITE_NC(X_DIR_PIN, !INVERT_X_DIR);
      count_direction[X_AXIS]=1;
   28c50:	80 93 97 02 	sts	0x0297, r24	; 0x800297 <count_direction>
    }
    if((out_bits & (1<<Y_AXIS))!=0){
   28c54:	80 91 7b 05 	lds	r24, 0x057B	; 0x80057b <out_bits>
   28c58:	81 ff       	sbrs	r24, 1
   28c5a:	8b c0       	rjmp	.+278    	; 0x28d72 <__vector_17+0x49e>
      WRITE_NC(Y_DIR_PIN, INVERT_Y_DIR);
   28c5c:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28c60:	8d 7f       	andi	r24, 0xFD	; 253
   28c62:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[Y_AXIS]=-1;
   28c66:	8f ef       	ldi	r24, 0xFF	; 255
    } else {
      WRITE_NC(Y_DIR_PIN, !INVERT_Y_DIR);
      count_direction[Y_AXIS]=1;
   28c68:	80 93 98 02 	sts	0x0298, r24	; 0x800298 <count_direction+0x1>
    }
    if ((out_bits & (1<<Z_AXIS)) != 0) {   // -direction
   28c6c:	80 91 7b 05 	lds	r24, 0x057B	; 0x80057b <out_bits>
   28c70:	82 ff       	sbrs	r24, 2
   28c72:	86 c0       	rjmp	.+268    	; 0x28d80 <__vector_17+0x4ac>
      WRITE_NC(Z_DIR_PIN,INVERT_Z_DIR);
   28c74:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28c78:	84 60       	ori	r24, 0x04	; 4
   28c7a:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[Z_AXIS]=-1;
   28c7e:	8f ef       	ldi	r24, 0xFF	; 255
    } else { // +direction
      WRITE_NC(Z_DIR_PIN,!INVERT_Z_DIR);
      count_direction[Z_AXIS]=1;
   28c80:	80 93 99 02 	sts	0x0299, r24	; 0x800299 <count_direction+0x2>
    }
    if ((out_bits & (1 << E_AXIS)) != 0) { // -direction
   28c84:	80 91 7b 05 	lds	r24, 0x057B	; 0x80057b <out_bits>
   28c88:	83 ff       	sbrs	r24, 3
   28c8a:	81 c0       	rjmp	.+258    	; 0x28d8e <__vector_17+0x4ba>
#ifndef LIN_ADVANCE
      WRITE(E0_DIR_PIN, INVERT_E0_DIR);
#endif /* LIN_ADVANCE */
      count_direction[E_AXIS] = -1;
   28c8c:	8f ef       	ldi	r24, 0xFF	; 255
    } else { // +direction
#ifndef LIN_ADVANCE
      WRITE(E0_DIR_PIN, !INVERT_E0_DIR);
#endif /* LIN_ADVANCE */
      count_direction[E_AXIS] = 1;
   28c8e:	80 93 9a 02 	sts	0x029A, r24	; 0x80029a <count_direction+0x3>
	//if (UVLO) uvlo();
  // If there is no current block, attempt to pop one from the buffer
  if (current_block == NULL)
    stepper_next_block();

  if (current_block != NULL)
   28c92:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28c96:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28c9a:	30 97       	sbiw	r30, 0x00	; 0
   28c9c:	09 f4       	brne	.+2      	; 0x28ca0 <__vector_17+0x3cc>
   28c9e:	3d c7       	rjmp	.+3706   	; 0x29b1a <__vector_17+0x1246>
}

// Check limit switches.
FORCE_INLINE void stepper_check_endstops()
{
  if(check_endstops)
   28ca0:	80 91 b7 02 	lds	r24, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
   28ca4:	50 91 78 05 	lds	r21, 0x0578	; 0x800578 <check_z_endstop>
   28ca8:	88 23       	and	r24, r24
   28caa:	09 f4       	brne	.+2      	; 0x28cae <__vector_17+0x3da>
   28cac:	cb c0       	rjmp	.+406    	; 0x28e44 <__vector_17+0x570>
  {
    uint8_t _endstop_hit = endstop_hit;
   28cae:	20 91 0b 05 	lds	r18, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
    uint8_t _endstop = endstop;
   28cb2:	80 91 7a 05 	lds	r24, 0x057A	; 0x80057a <endstop>
    uint8_t _old_endstop = old_endstop;
   28cb6:	90 91 79 05 	lds	r25, 0x0579	; 0x800579 <old_endstop>
    #ifndef COREXY
    if ((out_bits & (1<<X_AXIS)) != 0) // stepping along -X axis
   28cba:	30 91 7b 05 	lds	r19, 0x057B	; 0x80057b <out_bits>
    #endif
    {
      #if ( (defined(X_MIN_PIN) && (X_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_XMINLIMIT)
      #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
        SET_BIT_TO(_endstop, X_AXIS, (!READ(X_TMC2130_DIAG)));
   28cbe:	40 91 06 01 	lds	r20, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
  {
    uint8_t _endstop_hit = endstop_hit;
    uint8_t _endstop = endstop;
    uint8_t _old_endstop = old_endstop;
    #ifndef COREXY
    if ((out_bits & (1<<X_AXIS)) != 0) // stepping along -X axis
   28cc2:	30 ff       	sbrs	r19, 0
   28cc4:	87 c0       	rjmp	.+270    	; 0x28dd4 <__vector_17+0x500>
    #endif
    {
      #if ( (defined(X_MIN_PIN) && (X_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_XMINLIMIT)
      #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
        SET_BIT_TO(_endstop, X_AXIS, (!READ(X_TMC2130_DIAG)));
   28cc6:	42 fd       	sbrc	r20, 2
   28cc8:	83 c0       	rjmp	.+262    	; 0x28dd0 <__vector_17+0x4fc>
   28cca:	81 60       	ori	r24, 0x01	; 1
      #else
        // Normal homing
        SET_BIT_TO(_endstop, X_AXIS, (READ(X_MIN_PIN) != X_MIN_ENDSTOP_INVERTING));
      #endif
        if((_endstop & _old_endstop & _BV(X_AXIS)) && (current_block->steps[X_AXIS].wide > 0)) {
   28ccc:	49 2f       	mov	r20, r25
   28cce:	41 70       	andi	r20, 0x01	; 1
          SET_BIT_TO(_endstop, X_AXIS + 4, (!READ(X_TMC2130_DIAG)));
        #else
        // Normal homing
          SET_BIT_TO(_endstop, X_AXIS + 4, (READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTING));
        #endif
        if((_endstop & _old_endstop & _BV(X_AXIS + 4)) && (current_block->steps[X_AXIS].wide > 0)){
   28cd0:	48 23       	and	r20, r24
   28cd2:	b1 f0       	breq	.+44     	; 0x28d00 <__vector_17+0x42c>
   28cd4:	c0 80       	ld	r12, Z
   28cd6:	d1 80       	ldd	r13, Z+1	; 0x01
   28cd8:	e2 80       	ldd	r14, Z+2	; 0x02
   28cda:	f3 80       	ldd	r15, Z+3	; 0x03
   28cdc:	1c 14       	cp	r1, r12
   28cde:	1d 04       	cpc	r1, r13
   28ce0:	1e 04       	cpc	r1, r14
   28ce2:	1f 04       	cpc	r1, r15
   28ce4:	6c f4       	brge	.+26     	; 0x28d00 <__vector_17+0x42c>
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
          endstops_trigsteps[X_AXIS] = count_position[X_AXIS];
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
          _endstop_hit |= _BV(X_AXIS);
   28ce6:	21 60       	ori	r18, 0x01	; 1
          step_events_completed.wide = current_block->step_event_count.wide;
   28ce8:	c0 88       	ldd	r12, Z+16	; 0x10
   28cea:	d1 88       	ldd	r13, Z+17	; 0x11
   28cec:	e2 88       	ldd	r14, Z+18	; 0x12
   28cee:	f3 88       	ldd	r15, Z+19	; 0x13
   28cf0:	c0 92 7c 05 	sts	0x057C, r12	; 0x80057c <step_events_completed>
   28cf4:	d0 92 7d 05 	sts	0x057D, r13	; 0x80057d <step_events_completed+0x1>
   28cf8:	e0 92 7e 05 	sts	0x057E, r14	; 0x80057e <step_events_completed+0x2>
   28cfc:	f0 92 7f 05 	sts	0x057F, r15	; 0x80057f <step_events_completed+0x3>
    #endif
    {
      #if ( (defined(Y_MIN_PIN) && (Y_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_YMINLIMIT)
      #ifdef TMC2130_SG_HOMING
      // Stall guard homing turned on
        SET_BIT_TO(_endstop, Y_AXIS, (!READ(Y_TMC2130_DIAG)));
   28d00:	40 91 06 01 	lds	r20, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
        }
      #endif
    }

    #ifndef COREXY
    if ((out_bits & (1<<Y_AXIS)) != 0) // -direction
   28d04:	31 ff       	sbrs	r19, 1
   28d06:	70 c0       	rjmp	.+224    	; 0x28de8 <__vector_17+0x514>
    #endif
    {
      #if ( (defined(Y_MIN_PIN) && (Y_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_YMINLIMIT)
      #ifdef TMC2130_SG_HOMING
      // Stall guard homing turned on
        SET_BIT_TO(_endstop, Y_AXIS, (!READ(Y_TMC2130_DIAG)));
   28d08:	47 fd       	sbrc	r20, 7
   28d0a:	6c c0       	rjmp	.+216    	; 0x28de4 <__vector_17+0x510>
   28d0c:	82 60       	ori	r24, 0x02	; 2
      #else
      // Normal homing
        SET_BIT_TO(_endstop, Y_AXIS, (READ(Y_MIN_PIN) != Y_MIN_ENDSTOP_INVERTING));
      #endif
        if((_endstop & _old_endstop & _BV(Y_AXIS)) && (current_block->steps[Y_AXIS].wide > 0)) {
   28d0e:	49 2f       	mov	r20, r25
   28d10:	42 70       	andi	r20, 0x02	; 2
          SET_BIT_TO(_endstop, Y_AXIS + 4, (!READ(Y_TMC2130_DIAG)));
        #else
        // Normal homing
          SET_BIT_TO(_endstop, Y_AXIS + 4, (READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTING));
        #endif
        if((_endstop & _old_endstop & _BV(Y_AXIS + 4)) && (current_block->steps[Y_AXIS].wide > 0)){
   28d12:	48 23       	and	r20, r24
   28d14:	b1 f0       	breq	.+44     	; 0x28d42 <__vector_17+0x46e>
   28d16:	c4 80       	ldd	r12, Z+4	; 0x04
   28d18:	d5 80       	ldd	r13, Z+5	; 0x05
   28d1a:	e6 80       	ldd	r14, Z+6	; 0x06
   28d1c:	f7 80       	ldd	r15, Z+7	; 0x07
   28d1e:	1c 14       	cp	r1, r12
   28d20:	1d 04       	cpc	r1, r13
   28d22:	1e 04       	cpc	r1, r14
   28d24:	1f 04       	cpc	r1, r15
   28d26:	6c f4       	brge	.+26     	; 0x28d42 <__vector_17+0x46e>
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
          endstops_trigsteps[Y_AXIS] = count_position[Y_AXIS];
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
          _endstop_hit |= _BV(Y_AXIS);
   28d28:	22 60       	ori	r18, 0x02	; 2
          step_events_completed.wide = current_block->step_event_count.wide;
   28d2a:	c0 88       	ldd	r12, Z+16	; 0x10
   28d2c:	d1 88       	ldd	r13, Z+17	; 0x11
   28d2e:	e2 88       	ldd	r14, Z+18	; 0x12
   28d30:	f3 88       	ldd	r15, Z+19	; 0x13
   28d32:	c0 92 7c 05 	sts	0x057C, r12	; 0x80057c <step_events_completed>
   28d36:	d0 92 7d 05 	sts	0x057D, r13	; 0x80057d <step_events_completed+0x1>
   28d3a:	e0 92 7e 05 	sts	0x057E, r14	; 0x80057e <step_events_completed+0x2>
   28d3e:	f0 92 7f 05 	sts	0x057F, r15	; 0x80057f <step_events_completed+0x3>
        }
      #endif
    }

    if ((out_bits & (1<<Z_AXIS)) != 0) // -direction
   28d42:	32 ff       	sbrs	r19, 2
   28d44:	94 c0       	rjmp	.+296    	; 0x28e6e <__vector_17+0x59a>
    {
      #if defined(Z_MIN_PIN) && (Z_MIN_PIN > -1) && !defined(DEBUG_DISABLE_ZMINLIMIT)
      if (! check_z_endstop) {
   28d46:	51 11       	cpse	r21, r1
   28d48:	77 c0       	rjmp	.+238    	; 0x28e38 <__vector_17+0x564>
        #ifdef TMC2130_SG_HOMING
          // Stall guard homing turned on
#ifdef TMC2130_STEALTH_Z
          if ((tmc2130_mode == TMC2130_MODE_SILENT) && !(tmc2130_sg_homing_axes_mask & 0x04))
   28d4a:	30 91 8c 06 	lds	r19, 0x068C	; 0x80068c <tmc2130_mode>
   28d4e:	31 30       	cpi	r19, 0x01	; 1
   28d50:	09 f0       	breq	.+2      	; 0x28d54 <__vector_17+0x480>
   28d52:	52 c0       	rjmp	.+164    	; 0x28df8 <__vector_17+0x524>
   28d54:	30 91 43 06 	lds	r19, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   28d58:	32 fd       	sbrc	r19, 2
   28d5a:	4e c0       	rjmp	.+156    	; 0x28df8 <__vector_17+0x524>
            SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
   28d5c:	1c 9b       	sbis	0x03, 4	; 3
   28d5e:	52 c0       	rjmp	.+164    	; 0x28e04 <__vector_17+0x530>
          else
#endif //TMC2130_STEALTH_Z
            SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) || (!READ(Z_TMC2130_DIAG)));
   28d60:	84 60       	ori	r24, 0x04	; 4
   28d62:	51 c0       	rjmp	.+162    	; 0x28e06 <__vector_17+0x532>
    // Set the direction bits (X_AXIS=A_AXIS and Y_AXIS=B_AXIS for COREXY)
    if((out_bits & (1<<X_AXIS))!=0){
      WRITE_NC(X_DIR_PIN, INVERT_X_DIR);
      count_direction[X_AXIS]=-1;
    } else {
      WRITE_NC(X_DIR_PIN, !INVERT_X_DIR);
   28d64:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28d68:	8e 7f       	andi	r24, 0xFE	; 254
   28d6a:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[X_AXIS]=1;
   28d6e:	81 e0       	ldi	r24, 0x01	; 1
   28d70:	6f cf       	rjmp	.-290    	; 0x28c50 <__vector_17+0x37c>
    }
    if((out_bits & (1<<Y_AXIS))!=0){
      WRITE_NC(Y_DIR_PIN, INVERT_Y_DIR);
      count_direction[Y_AXIS]=-1;
    } else {
      WRITE_NC(Y_DIR_PIN, !INVERT_Y_DIR);
   28d72:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28d76:	82 60       	ori	r24, 0x02	; 2
   28d78:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[Y_AXIS]=1;
   28d7c:	81 e0       	ldi	r24, 0x01	; 1
   28d7e:	74 cf       	rjmp	.-280    	; 0x28c68 <__vector_17+0x394>
    }
    if ((out_bits & (1<<Z_AXIS)) != 0) {   // -direction
      WRITE_NC(Z_DIR_PIN,INVERT_Z_DIR);
      count_direction[Z_AXIS]=-1;
    } else { // +direction
      WRITE_NC(Z_DIR_PIN,!INVERT_Z_DIR);
   28d80:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   28d84:	8b 7f       	andi	r24, 0xFB	; 251
   28d86:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
      count_direction[Z_AXIS]=1;
   28d8a:	81 e0       	ldi	r24, 0x01	; 1
   28d8c:	79 cf       	rjmp	.-270    	; 0x28c80 <__vector_17+0x3ac>
      count_direction[E_AXIS] = -1;
    } else { // +direction
#ifndef LIN_ADVANCE
      WRITE(E0_DIR_PIN, !INVERT_E0_DIR);
#endif /* LIN_ADVANCE */
      count_direction[E_AXIS] = 1;
   28d8e:	81 e0       	ldi	r24, 0x01	; 1
   28d90:	7e cf       	rjmp	.-260    	; 0x28c8e <__vector_17+0x3ba>
    }
  }
  else {
      _NEXT_ISR(2000); // 1kHz.
   28d92:	80 ed       	ldi	r24, 0xD0	; 208
   28d94:	97 e0       	ldi	r25, 0x07	; 7
   28d96:	90 93 e6 04 	sts	0x04E6, r25	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   28d9a:	80 93 e5 04 	sts	0x04E5, r24	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   28d9e:	90 93 e2 04 	sts	0x04E2, r25	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
   28da2:	80 93 e1 04 	sts	0x04E1, r24	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>

#ifdef LIN_ADVANCE
      // reset LA state when there's no block
      nextAdvanceISR = ADV_NEVER;
   28da6:	8f ef       	ldi	r24, 0xFF	; 255
   28da8:	9f ef       	ldi	r25, 0xFF	; 255
   28daa:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   28dae:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
      e_steps = 0;
   28db2:	10 92 92 05 	sts	0x0592, r1	; 0x800592 <e_steps>

      // incrementally lose pressure to give a chance for
      // a new LA block to be scheduled and recover
      if(current_adv_steps)
   28db6:	80 91 df 04 	lds	r24, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   28dba:	90 91 e0 04 	lds	r25, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   28dbe:	00 97       	sbiw	r24, 0x00	; 0
   28dc0:	09 f4       	brne	.+2      	; 0x28dc4 <__vector_17+0x4f0>
   28dc2:	67 cf       	rjmp	.-306    	; 0x28c92 <__vector_17+0x3be>
          --current_adv_steps;
   28dc4:	01 97       	sbiw	r24, 0x01	; 1
   28dc6:	90 93 e0 04 	sts	0x04E0, r25	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   28dca:	80 93 df 04 	sts	0x04DF, r24	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   28dce:	61 cf       	rjmp	.-318    	; 0x28c92 <__vector_17+0x3be>
    #endif
    {
      #if ( (defined(X_MIN_PIN) && (X_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_XMINLIMIT)
      #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
        SET_BIT_TO(_endstop, X_AXIS, (!READ(X_TMC2130_DIAG)));
   28dd0:	8e 7f       	andi	r24, 0xFE	; 254
   28dd2:	7c cf       	rjmp	.-264    	; 0x28ccc <__vector_17+0x3f8>
      #endif
    } else { // +direction
      #if ( (defined(X_MAX_PIN) && (X_MAX_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_XMAXLIMIT)
        #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
          SET_BIT_TO(_endstop, X_AXIS + 4, (!READ(X_TMC2130_DIAG)));
   28dd4:	42 fd       	sbrc	r20, 2
   28dd6:	04 c0       	rjmp	.+8      	; 0x28de0 <__vector_17+0x50c>
   28dd8:	80 61       	ori	r24, 0x10	; 16
        #else
        // Normal homing
          SET_BIT_TO(_endstop, X_AXIS + 4, (READ(X_MAX_PIN) != X_MAX_ENDSTOP_INVERTING));
        #endif
        if((_endstop & _old_endstop & _BV(X_AXIS + 4)) && (current_block->steps[X_AXIS].wide > 0)){
   28dda:	49 2f       	mov	r20, r25
   28ddc:	40 71       	andi	r20, 0x10	; 16
   28dde:	78 cf       	rjmp	.-272    	; 0x28cd0 <__vector_17+0x3fc>
      #endif
    } else { // +direction
      #if ( (defined(X_MAX_PIN) && (X_MAX_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_XMAXLIMIT)
        #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
          SET_BIT_TO(_endstop, X_AXIS + 4, (!READ(X_TMC2130_DIAG)));
   28de0:	8f 7e       	andi	r24, 0xEF	; 239
   28de2:	fb cf       	rjmp	.-10     	; 0x28dda <__vector_17+0x506>
    #endif
    {
      #if ( (defined(Y_MIN_PIN) && (Y_MIN_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_YMINLIMIT)
      #ifdef TMC2130_SG_HOMING
      // Stall guard homing turned on
        SET_BIT_TO(_endstop, Y_AXIS, (!READ(Y_TMC2130_DIAG)));
   28de4:	8d 7f       	andi	r24, 0xFD	; 253
   28de6:	93 cf       	rjmp	.-218    	; 0x28d0e <__vector_17+0x43a>
      #endif
    } else { // +direction
      #if ( (defined(Y_MAX_PIN) && (Y_MAX_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_YMAXLIMIT)
        #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
          SET_BIT_TO(_endstop, Y_AXIS + 4, (!READ(Y_TMC2130_DIAG)));
   28de8:	47 fd       	sbrc	r20, 7
   28dea:	04 c0       	rjmp	.+8      	; 0x28df4 <__vector_17+0x520>
   28dec:	80 62       	ori	r24, 0x20	; 32
        #else
        // Normal homing
          SET_BIT_TO(_endstop, Y_AXIS + 4, (READ(Y_MAX_PIN) != Y_MAX_ENDSTOP_INVERTING));
        #endif
        if((_endstop & _old_endstop & _BV(Y_AXIS + 4)) && (current_block->steps[Y_AXIS].wide > 0)){
   28dee:	49 2f       	mov	r20, r25
   28df0:	40 72       	andi	r20, 0x20	; 32
   28df2:	8f cf       	rjmp	.-226    	; 0x28d12 <__vector_17+0x43e>
      #endif
    } else { // +direction
      #if ( (defined(Y_MAX_PIN) && (Y_MAX_PIN > -1)) || defined(TMC2130_SG_HOMING) ) && !defined(DEBUG_DISABLE_YMAXLIMIT)
        #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
          SET_BIT_TO(_endstop, Y_AXIS + 4, (!READ(Y_TMC2130_DIAG)));
   28df4:	8f 7d       	andi	r24, 0xDF	; 223
   28df6:	fb cf       	rjmp	.-10     	; 0x28dee <__vector_17+0x51a>
#ifdef TMC2130_STEALTH_Z
          if ((tmc2130_mode == TMC2130_MODE_SILENT) && !(tmc2130_sg_homing_axes_mask & 0x04))
            SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
          else
#endif //TMC2130_STEALTH_Z
            SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) || (!READ(Z_TMC2130_DIAG)));
   28df8:	1c 99       	sbic	0x03, 4	; 3
   28dfa:	b2 cf       	rjmp	.-156    	; 0x28d60 <__vector_17+0x48c>
   28dfc:	30 91 06 01 	lds	r19, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   28e00:	36 ff       	sbrs	r19, 6
   28e02:	ae cf       	rjmp	.-164    	; 0x28d60 <__vector_17+0x48c>
   28e04:	8b 7f       	andi	r24, 0xFB	; 251
        #else
          SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
        #endif //TMC2130_SG_HOMING
        if((_endstop & _old_endstop & _BV(Z_AXIS)) && (current_block->steps[Z_AXIS].wide > 0)) {
   28e06:	94 70       	andi	r25, 0x04	; 4
#endif //TMC2130_STEALTH_Z
          SET_BIT_TO(_endstop, Z_AXIS + 4, (!READ(Z_TMC2130_DIAG)));
        #else
        SET_BIT_TO(_endstop, Z_AXIS + 4, (READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTING));
        #endif //TMC2130_SG_HOMING
        if((_endstop & _old_endstop & _BV(Z_AXIS + 4)) && (current_block->steps[Z_AXIS].wide > 0)) {
   28e08:	98 23       	and	r25, r24
   28e0a:	b1 f0       	breq	.+44     	; 0x28e38 <__vector_17+0x564>
   28e0c:	c0 84       	ldd	r12, Z+8	; 0x08
   28e0e:	d1 84       	ldd	r13, Z+9	; 0x09
   28e10:	e2 84       	ldd	r14, Z+10	; 0x0a
   28e12:	f3 84       	ldd	r15, Z+11	; 0x0b
   28e14:	1c 14       	cp	r1, r12
   28e16:	1d 04       	cpc	r1, r13
   28e18:	1e 04       	cpc	r1, r14
   28e1a:	1f 04       	cpc	r1, r15
   28e1c:	6c f4       	brge	.+26     	; 0x28e38 <__vector_17+0x564>
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
          endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
          _endstop_hit |= _BV(Z_AXIS);
   28e1e:	24 60       	ori	r18, 0x04	; 4
          step_events_completed.wide = current_block->step_event_count.wide;
   28e20:	c0 88       	ldd	r12, Z+16	; 0x10
   28e22:	d1 88       	ldd	r13, Z+17	; 0x11
   28e24:	e2 88       	ldd	r14, Z+18	; 0x12
   28e26:	f3 88       	ldd	r15, Z+19	; 0x13
   28e28:	c0 92 7c 05 	sts	0x057C, r12	; 0x80057c <step_events_completed>
   28e2c:	d0 92 7d 05 	sts	0x057D, r13	; 0x80057d <step_events_completed+0x1>
   28e30:	e0 92 7e 05 	sts	0x057E, r14	; 0x80057e <step_events_completed+0x2>
   28e34:	f0 92 7f 05 	sts	0x057F, r15	; 0x80057f <step_events_completed+0x3>
        }
      #endif
    }
    endstop = _endstop;
   28e38:	80 93 7a 05 	sts	0x057A, r24	; 0x80057a <endstop>
    old_endstop = _endstop; //apply current endstop state to the old endstop
   28e3c:	80 93 79 05 	sts	0x0579, r24	; 0x800579 <old_endstop>
    endstop_hit = _endstop_hit;
   28e40:	20 93 0b 05 	sts	0x050B, r18	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
  }

  // Supporting stopping on a trigger of the Z-stop induction sensor, not only for the Z-minus movements.
  #if defined(Z_MIN_PIN) && (Z_MIN_PIN > -1) && !defined(DEBUG_DISABLE_ZMINLIMIT)
  if (check_z_endstop) {
   28e44:	55 23       	and	r21, r21
   28e46:	09 f4       	brne	.+2      	; 0x28e4a <__vector_17+0x576>
   28e48:	40 c0       	rjmp	.+128    	; 0x28eca <__vector_17+0x5f6>
      uint8_t _endstop_hit = endstop_hit;
   28e4a:	20 91 0b 05 	lds	r18, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
      uint8_t _endstop = endstop;
   28e4e:	80 91 7a 05 	lds	r24, 0x057A	; 0x80057a <endstop>
      uint8_t _old_endstop = old_endstop;
   28e52:	90 91 79 05 	lds	r25, 0x0579	; 0x800579 <old_endstop>
      // Check the Z min end-stop no matter what.
      // Good for searching for the center of an induction target.
      #ifdef TMC2130_SG_HOMING
      // Stall guard homing turned on
#ifdef TMC2130_STEALTH_Z
      if ((tmc2130_mode == TMC2130_MODE_SILENT) && !(tmc2130_sg_homing_axes_mask & 0x04))
   28e56:	30 91 8c 06 	lds	r19, 0x068C	; 0x80068c <tmc2130_mode>
   28e5a:	31 30       	cpi	r19, 0x01	; 1
   28e5c:	c9 f4       	brne	.+50     	; 0x28e90 <__vector_17+0x5bc>
   28e5e:	30 91 43 06 	lds	r19, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   28e62:	32 fd       	sbrc	r19, 2
   28e64:	15 c0       	rjmp	.+42     	; 0x28e90 <__vector_17+0x5bc>
        SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
   28e66:	1c 9b       	sbis	0x03, 4	; 3
   28e68:	19 c0       	rjmp	.+50     	; 0x28e9c <__vector_17+0x5c8>
      else
#endif //TMC2130_STEALTH_Z
        SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) || (!READ(Z_TMC2130_DIAG)));
   28e6a:	84 60       	ori	r24, 0x04	; 4
   28e6c:	18 c0       	rjmp	.+48     	; 0x28e9e <__vector_17+0x5ca>
    } else { // +direction
      #if defined(Z_MAX_PIN) && (Z_MAX_PIN > -1) && !defined(DEBUG_DISABLE_ZMAXLIMIT)
        #ifdef TMC2130_SG_HOMING
        // Stall guard homing turned on
#ifdef TMC2130_STEALTH_Z
        if ((tmc2130_mode == TMC2130_MODE_SILENT) && !(tmc2130_sg_homing_axes_mask & 0x04))
   28e6e:	30 91 8c 06 	lds	r19, 0x068C	; 0x80068c <tmc2130_mode>
   28e72:	31 30       	cpi	r19, 0x01	; 1
   28e74:	31 f4       	brne	.+12     	; 0x28e82 <__vector_17+0x5ae>
   28e76:	30 91 43 06 	lds	r19, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   28e7a:	32 fd       	sbrc	r19, 2
   28e7c:	02 c0       	rjmp	.+4      	; 0x28e82 <__vector_17+0x5ae>
          SET_BIT_TO(_endstop, Z_AXIS + 4, 0);
        else
#endif //TMC2130_STEALTH_Z
          SET_BIT_TO(_endstop, Z_AXIS + 4, (!READ(Z_TMC2130_DIAG)));
   28e7e:	8f 7b       	andi	r24, 0xBF	; 191
   28e80:	05 c0       	rjmp	.+10     	; 0x28e8c <__vector_17+0x5b8>
   28e82:	30 91 06 01 	lds	r19, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   28e86:	36 fd       	sbrc	r19, 6
   28e88:	fa cf       	rjmp	.-12     	; 0x28e7e <__vector_17+0x5aa>
   28e8a:	80 64       	ori	r24, 0x40	; 64
        #else
        SET_BIT_TO(_endstop, Z_AXIS + 4, (READ(Z_MAX_PIN) != Z_MAX_ENDSTOP_INVERTING));
        #endif //TMC2130_SG_HOMING
        if((_endstop & _old_endstop & _BV(Z_AXIS + 4)) && (current_block->steps[Z_AXIS].wide > 0)) {
   28e8c:	90 74       	andi	r25, 0x40	; 64
   28e8e:	bc cf       	rjmp	.-136    	; 0x28e08 <__vector_17+0x534>
#ifdef TMC2130_STEALTH_Z
      if ((tmc2130_mode == TMC2130_MODE_SILENT) && !(tmc2130_sg_homing_axes_mask & 0x04))
        SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
      else
#endif //TMC2130_STEALTH_Z
        SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING) || (!READ(Z_TMC2130_DIAG)));
   28e90:	1c 99       	sbic	0x03, 4	; 3
   28e92:	eb cf       	rjmp	.-42     	; 0x28e6a <__vector_17+0x596>
   28e94:	30 91 06 01 	lds	r19, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   28e98:	36 ff       	sbrs	r19, 6
   28e9a:	e7 cf       	rjmp	.-50     	; 0x28e6a <__vector_17+0x596>
   28e9c:	8b 7f       	andi	r24, 0xFB	; 251
      #else
      SET_BIT_TO(_endstop, Z_AXIS, (READ(Z_MIN_PIN) != Z_MIN_ENDSTOP_INVERTING));
      #endif //TMC2130_SG_HOMING
      if(_endstop & _old_endstop & _BV(Z_AXIS)) {
   28e9e:	94 70       	andi	r25, 0x04	; 4
   28ea0:	98 23       	and	r25, r24
   28ea2:	69 f0       	breq	.+26     	; 0x28ebe <__vector_17+0x5ea>
#ifdef VERBOSE_CHECK_HIT_ENDSTOPS
        endstops_trigsteps[Z_AXIS] = count_position[Z_AXIS];
#endif //VERBOSE_CHECK_HIT_ENDSTOPS
        _endstop_hit |= _BV(Z_AXIS);
   28ea4:	24 60       	ori	r18, 0x04	; 4
        step_events_completed.wide = current_block->step_event_count.wide;
   28ea6:	40 89       	ldd	r20, Z+16	; 0x10
   28ea8:	51 89       	ldd	r21, Z+17	; 0x11
   28eaa:	62 89       	ldd	r22, Z+18	; 0x12
   28eac:	73 89       	ldd	r23, Z+19	; 0x13
   28eae:	40 93 7c 05 	sts	0x057C, r20	; 0x80057c <step_events_completed>
   28eb2:	50 93 7d 05 	sts	0x057D, r21	; 0x80057d <step_events_completed+0x1>
   28eb6:	60 93 7e 05 	sts	0x057E, r22	; 0x80057e <step_events_completed+0x2>
   28eba:	70 93 7f 05 	sts	0x057F, r23	; 0x80057f <step_events_completed+0x3>
      }
      endstop = _endstop;
   28ebe:	80 93 7a 05 	sts	0x057A, r24	; 0x80057a <endstop>
      old_endstop = _endstop; //apply current endstop state to the old endstop
   28ec2:	80 93 79 05 	sts	0x0579, r24	; 0x800579 <old_endstop>
      endstop_hit = _endstop_hit;
   28ec6:	20 93 0b 05 	sts	0x050B, r18	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
    stepper_next_block();

  if (current_block != NULL)
  {
    stepper_check_endstops();
    if (current_block->flag & BLOCK_FLAG_DDA_LOWRES)
   28eca:	85 a9       	ldd	r24, Z+53	; 0x35
}


FORCE_INLINE void stepper_tick_lowres()
{
  for (uint8_t i=0; i < step_loops; ++ i) { // Take multiple steps per interrupt (For high speed moves)
   28ecc:	c0 e0       	ldi	r28, 0x00	; 0
    MSerial.checkRx(); // Check for serial chars.
    // Step in X axis
    counter[X_AXIS].lo += current_block->steps[X_AXIS].lo;
    if (counter[X_AXIS].lo > 0) {
      STEP_NC_HI(X_AXIS);
   28ece:	d1 e0       	ldi	r29, 0x01	; 1
#endif //DEBUG_XSTEP_DUP_PIN
    }
    // Step in Y axis
    counter[Y_AXIS].lo += current_block->steps[Y_AXIS].lo;
    if (counter[Y_AXIS].lo > 0) {
      STEP_NC_HI(Y_AXIS);
   28ed0:	12 e0       	ldi	r17, 0x02	; 2
#endif //DEBUG_YSTEP_DUP_PIN
    }
    // Step in Z axis
    counter[Z_AXIS].lo += current_block->steps[Z_AXIS].lo;
    if (counter[Z_AXIS].lo > 0) {
      STEP_NC_HI(Z_AXIS);
   28ed2:	04 e0       	ldi	r16, 0x04	; 4
    stepper_next_block();

  if (current_block != NULL)
  {
    stepper_check_endstops();
    if (current_block->flag & BLOCK_FLAG_DDA_LOWRES)
   28ed4:	83 ff       	sbrs	r24, 3
   28ed6:	08 c1       	rjmp	.+528    	; 0x290e8 <__vector_17+0x814>
}


FORCE_INLINE void stepper_tick_lowres()
{
  for (uint8_t i=0; i < step_loops; ++ i) { // Take multiple steps per interrupt (For high speed moves)
   28ed8:	80 91 99 05 	lds	r24, 0x0599	; 0x800599 <step_loops>
   28edc:	c8 17       	cp	r28, r24
   28ede:	08 f0       	brcs	.+2      	; 0x28ee2 <__vector_17+0x60e>
   28ee0:	72 c2       	rjmp	.+1252   	; 0x293c6 <__vector_17+0xaf2>
    MSerial.checkRx(); // Check for serial chars.
   28ee2:	0f 94 21 15 	call	0x22a42	; 0x22a42 <MarlinSerial::checkRx()>
    // Step in X axis
    counter[X_AXIS].lo += current_block->steps[X_AXIS].lo;
   28ee6:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28eea:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28eee:	80 81       	ld	r24, Z
   28ef0:	91 81       	ldd	r25, Z+1	; 0x01
   28ef2:	20 91 81 05 	lds	r18, 0x0581	; 0x800581 <counter>
   28ef6:	30 91 82 05 	lds	r19, 0x0582	; 0x800582 <counter+0x1>
   28efa:	82 0f       	add	r24, r18
   28efc:	93 1f       	adc	r25, r19
   28efe:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   28f02:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
    if (counter[X_AXIS].lo > 0) {
   28f06:	18 16       	cp	r1, r24
   28f08:	19 06       	cpc	r1, r25
   28f0a:	64 f5       	brge	.+88     	; 0x28f64 <__vector_17+0x690>
      STEP_NC_HI(X_AXIS);
   28f0c:	d6 b9       	out	0x06, r29	; 6
#ifdef DEBUG_XSTEP_DUP_PIN
      STEP_NC_HI(X_DUP_AXIS);
#endif //DEBUG_XSTEP_DUP_PIN
      counter[X_AXIS].lo -= current_block->step_event_count.lo;
   28f0e:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28f12:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28f16:	80 91 81 05 	lds	r24, 0x0581	; 0x800581 <counter>
   28f1a:	90 91 82 05 	lds	r25, 0x0582	; 0x800582 <counter+0x1>
   28f1e:	20 89       	ldd	r18, Z+16	; 0x10
   28f20:	31 89       	ldd	r19, Z+17	; 0x11
   28f22:	82 1b       	sub	r24, r18
   28f24:	93 0b       	sbc	r25, r19
   28f26:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   28f2a:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
      count_position[X_AXIS]+=count_direction[X_AXIS];
   28f2e:	90 91 97 02 	lds	r25, 0x0297	; 0x800297 <count_direction>
   28f32:	40 91 b3 06 	lds	r20, 0x06B3	; 0x8006b3 <count_position>
   28f36:	50 91 b4 06 	lds	r21, 0x06B4	; 0x8006b4 <count_position+0x1>
   28f3a:	60 91 b5 06 	lds	r22, 0x06B5	; 0x8006b5 <count_position+0x2>
   28f3e:	70 91 b6 06 	lds	r23, 0x06B6	; 0x8006b6 <count_position+0x3>
   28f42:	89 2f       	mov	r24, r25
   28f44:	99 0f       	add	r25, r25
   28f46:	99 0b       	sbc	r25, r25
   28f48:	aa 0b       	sbc	r26, r26
   28f4a:	bb 0b       	sbc	r27, r27
   28f4c:	84 0f       	add	r24, r20
   28f4e:	95 1f       	adc	r25, r21
   28f50:	a6 1f       	adc	r26, r22
   28f52:	b7 1f       	adc	r27, r23
   28f54:	80 93 b3 06 	sts	0x06B3, r24	; 0x8006b3 <count_position>
   28f58:	90 93 b4 06 	sts	0x06B4, r25	; 0x8006b4 <count_position+0x1>
   28f5c:	a0 93 b5 06 	sts	0x06B5, r26	; 0x8006b5 <count_position+0x2>
   28f60:	b0 93 b6 06 	sts	0x06B6, r27	; 0x8006b6 <count_position+0x3>
#ifdef DEBUG_XSTEP_DUP_PIN
      STEP_NC_LO(X_DUP_AXIS);
#endif //DEBUG_XSTEP_DUP_PIN
    }
    // Step in Y axis
    counter[Y_AXIS].lo += current_block->steps[Y_AXIS].lo;
   28f64:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28f68:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28f6c:	84 81       	ldd	r24, Z+4	; 0x04
   28f6e:	95 81       	ldd	r25, Z+5	; 0x05
   28f70:	20 91 85 05 	lds	r18, 0x0585	; 0x800585 <counter+0x4>
   28f74:	30 91 86 05 	lds	r19, 0x0586	; 0x800586 <counter+0x5>
   28f78:	82 0f       	add	r24, r18
   28f7a:	93 1f       	adc	r25, r19
   28f7c:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   28f80:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
    if (counter[Y_AXIS].lo > 0) {
   28f84:	18 16       	cp	r1, r24
   28f86:	19 06       	cpc	r1, r25
   28f88:	44 f5       	brge	.+80     	; 0x28fda <__vector_17+0x706>
      STEP_NC_HI(Y_AXIS);
   28f8a:	16 b9       	out	0x06, r17	; 6
#ifdef DEBUG_YSTEP_DUP_PIN
      STEP_NC_HI(Y_DUP_AXIS);
#endif //DEBUG_YSTEP_DUP_PIN
      counter[Y_AXIS].lo -= current_block->step_event_count.lo;
   28f8c:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28f90:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28f94:	20 89       	ldd	r18, Z+16	; 0x10
   28f96:	31 89       	ldd	r19, Z+17	; 0x11
   28f98:	82 1b       	sub	r24, r18
   28f9a:	93 0b       	sbc	r25, r19
   28f9c:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   28fa0:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
      count_position[Y_AXIS]+=count_direction[Y_AXIS];
   28fa4:	90 91 98 02 	lds	r25, 0x0298	; 0x800298 <count_direction+0x1>
   28fa8:	40 91 b7 06 	lds	r20, 0x06B7	; 0x8006b7 <count_position+0x4>
   28fac:	50 91 b8 06 	lds	r21, 0x06B8	; 0x8006b8 <count_position+0x5>
   28fb0:	60 91 b9 06 	lds	r22, 0x06B9	; 0x8006b9 <count_position+0x6>
   28fb4:	70 91 ba 06 	lds	r23, 0x06BA	; 0x8006ba <count_position+0x7>
   28fb8:	89 2f       	mov	r24, r25
   28fba:	99 0f       	add	r25, r25
   28fbc:	99 0b       	sbc	r25, r25
   28fbe:	aa 0b       	sbc	r26, r26
   28fc0:	bb 0b       	sbc	r27, r27
   28fc2:	84 0f       	add	r24, r20
   28fc4:	95 1f       	adc	r25, r21
   28fc6:	a6 1f       	adc	r26, r22
   28fc8:	b7 1f       	adc	r27, r23
   28fca:	80 93 b7 06 	sts	0x06B7, r24	; 0x8006b7 <count_position+0x4>
   28fce:	90 93 b8 06 	sts	0x06B8, r25	; 0x8006b8 <count_position+0x5>
   28fd2:	a0 93 b9 06 	sts	0x06B9, r26	; 0x8006b9 <count_position+0x6>
   28fd6:	b0 93 ba 06 	sts	0x06BA, r27	; 0x8006ba <count_position+0x7>
#ifdef DEBUG_YSTEP_DUP_PIN
      STEP_NC_LO(Y_DUP_AXIS);
#endif //DEBUG_YSTEP_DUP_PIN
    }
    // Step in Z axis
    counter[Z_AXIS].lo += current_block->steps[Z_AXIS].lo;
   28fda:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   28fde:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   28fe2:	80 85       	ldd	r24, Z+8	; 0x08
   28fe4:	91 85       	ldd	r25, Z+9	; 0x09
   28fe6:	20 91 89 05 	lds	r18, 0x0589	; 0x800589 <counter+0x8>
   28fea:	30 91 8a 05 	lds	r19, 0x058A	; 0x80058a <counter+0x9>
   28fee:	82 0f       	add	r24, r18
   28ff0:	93 1f       	adc	r25, r19
   28ff2:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   28ff6:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
    if (counter[Z_AXIS].lo > 0) {
   28ffa:	18 16       	cp	r1, r24
   28ffc:	19 06       	cpc	r1, r25
   28ffe:	44 f5       	brge	.+80     	; 0x29050 <__vector_17+0x77c>
      STEP_NC_HI(Z_AXIS);
   29000:	06 b9       	out	0x06, r16	; 6
      counter[Z_AXIS].lo -= current_block->step_event_count.lo;
   29002:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   29006:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   2900a:	20 89       	ldd	r18, Z+16	; 0x10
   2900c:	31 89       	ldd	r19, Z+17	; 0x11
   2900e:	82 1b       	sub	r24, r18
   29010:	93 0b       	sbc	r25, r19
   29012:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   29016:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
      count_position[Z_AXIS]+=count_direction[Z_AXIS];
   2901a:	90 91 99 02 	lds	r25, 0x0299	; 0x800299 <count_direction+0x2>
   2901e:	40 91 bb 06 	lds	r20, 0x06BB	; 0x8006bb <count_position+0x8>
   29022:	50 91 bc 06 	lds	r21, 0x06BC	; 0x8006bc <count_position+0x9>
   29026:	60 91 bd 06 	lds	r22, 0x06BD	; 0x8006bd <count_position+0xa>
   2902a:	70 91 be 06 	lds	r23, 0x06BE	; 0x8006be <count_position+0xb>
   2902e:	89 2f       	mov	r24, r25
   29030:	99 0f       	add	r25, r25
   29032:	99 0b       	sbc	r25, r25
   29034:	aa 0b       	sbc	r26, r26
   29036:	bb 0b       	sbc	r27, r27
   29038:	84 0f       	add	r24, r20
   2903a:	95 1f       	adc	r25, r21
   2903c:	a6 1f       	adc	r26, r22
   2903e:	b7 1f       	adc	r27, r23
   29040:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   29044:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   29048:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2904c:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
      STEP_NC_LO(Z_AXIS);
    }
    // Step in E axis
    counter[E_AXIS].lo += current_block->steps[E_AXIS].lo;
   29050:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   29054:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   29058:	80 91 8d 05 	lds	r24, 0x058D	; 0x80058d <counter+0xc>
   2905c:	90 91 8e 05 	lds	r25, 0x058E	; 0x80058e <counter+0xd>
   29060:	24 85       	ldd	r18, Z+12	; 0x0c
   29062:	35 85       	ldd	r19, Z+13	; 0x0d
   29064:	82 0f       	add	r24, r18
   29066:	93 1f       	adc	r25, r19
   29068:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   2906c:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
   29070:	20 89       	ldd	r18, Z+16	; 0x10
   29072:	31 89       	ldd	r19, Z+17	; 0x11
    if (counter[E_AXIS].lo > 0) {
   29074:	18 16       	cp	r1, r24
   29076:	19 06       	cpc	r1, r25
   29078:	44 f5       	brge	.+80     	; 0x290ca <__vector_17+0x7f6>
#ifndef LIN_ADVANCE
      STEP_NC_HI(E_AXIS);
#endif /* LIN_ADVANCE */
      counter[E_AXIS].lo -= current_block->step_event_count.lo;
   2907a:	82 1b       	sub	r24, r18
   2907c:	93 0b       	sbc	r25, r19
   2907e:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   29082:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
      count_position[E_AXIS] += count_direction[E_AXIS];
   29086:	90 91 9a 02 	lds	r25, 0x029A	; 0x80029a <count_direction+0x3>
   2908a:	40 91 bf 06 	lds	r20, 0x06BF	; 0x8006bf <count_position+0xc>
   2908e:	50 91 c0 06 	lds	r21, 0x06C0	; 0x8006c0 <count_position+0xd>
   29092:	60 91 c1 06 	lds	r22, 0x06C1	; 0x8006c1 <count_position+0xe>
   29096:	70 91 c2 06 	lds	r23, 0x06C2	; 0x8006c2 <count_position+0xf>
   2909a:	89 2f       	mov	r24, r25
   2909c:	99 0f       	add	r25, r25
   2909e:	99 0b       	sbc	r25, r25
   290a0:	aa 0b       	sbc	r26, r26
   290a2:	bb 0b       	sbc	r27, r27
   290a4:	84 0f       	add	r24, r20
   290a6:	95 1f       	adc	r25, r21
   290a8:	a6 1f       	adc	r26, r22
   290aa:	b7 1f       	adc	r27, r23
   290ac:	80 93 bf 06 	sts	0x06BF, r24	; 0x8006bf <count_position+0xc>
   290b0:	90 93 c0 06 	sts	0x06C0, r25	; 0x8006c0 <count_position+0xd>
   290b4:	a0 93 c1 06 	sts	0x06C1, r26	; 0x8006c1 <count_position+0xe>
   290b8:	b0 93 c2 06 	sts	0x06C2, r27	; 0x8006c2 <count_position+0xf>
#ifdef LIN_ADVANCE
      e_steps += count_direction[E_AXIS];
   290bc:	90 91 9a 02 	lds	r25, 0x029A	; 0x80029a <count_direction+0x3>
   290c0:	80 91 92 05 	lds	r24, 0x0592	; 0x800592 <e_steps>
   290c4:	89 0f       	add	r24, r25
   290c6:	80 93 92 05 	sts	0x0592, r24	; 0x800592 <e_steps>
      fsensor.stStep(count_direction[E_AXIS] < 0);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
      STEP_NC_LO(E_AXIS);
#endif
    }
    if(++ step_events_completed.lo >= current_block->step_event_count.lo)
   290ca:	80 91 7c 05 	lds	r24, 0x057C	; 0x80057c <step_events_completed>
   290ce:	90 91 7d 05 	lds	r25, 0x057D	; 0x80057d <step_events_completed+0x1>
   290d2:	01 96       	adiw	r24, 0x01	; 1
   290d4:	90 93 7d 05 	sts	0x057D, r25	; 0x80057d <step_events_completed+0x1>
   290d8:	80 93 7c 05 	sts	0x057C, r24	; 0x80057c <step_events_completed>
   290dc:	82 17       	cp	r24, r18
   290de:	93 07       	cpc	r25, r19
   290e0:	08 f0       	brcs	.+2      	; 0x290e4 <__vector_17+0x810>
   290e2:	71 c1       	rjmp	.+738    	; 0x293c6 <__vector_17+0xaf2>
}


FORCE_INLINE void stepper_tick_lowres()
{
  for (uint8_t i=0; i < step_loops; ++ i) { // Take multiple steps per interrupt (For high speed moves)
   290e4:	cf 5f       	subi	r28, 0xFF	; 255
   290e6:	f8 ce       	rjmp	.-528    	; 0x28ed8 <__vector_17+0x604>
  }
}

FORCE_INLINE void stepper_tick_highres()
{
  for (uint8_t i=0; i < step_loops; ++ i) { // Take multiple steps per interrupt (For high speed moves)
   290e8:	80 91 99 05 	lds	r24, 0x0599	; 0x800599 <step_loops>
   290ec:	c8 17       	cp	r28, r24
   290ee:	08 f0       	brcs	.+2      	; 0x290f2 <__vector_17+0x81e>
   290f0:	6a c1       	rjmp	.+724    	; 0x293c6 <__vector_17+0xaf2>
    MSerial.checkRx(); // Check for serial chars.
   290f2:	0f 94 21 15 	call	0x22a42	; 0x22a42 <MarlinSerial::checkRx()>
    // Step in X axis
    counter[X_AXIS].wide += current_block->steps[X_AXIS].wide;
   290f6:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   290fa:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   290fe:	80 81       	ld	r24, Z
   29100:	91 81       	ldd	r25, Z+1	; 0x01
   29102:	a2 81       	ldd	r26, Z+2	; 0x02
   29104:	b3 81       	ldd	r27, Z+3	; 0x03
   29106:	40 91 81 05 	lds	r20, 0x0581	; 0x800581 <counter>
   2910a:	50 91 82 05 	lds	r21, 0x0582	; 0x800582 <counter+0x1>
   2910e:	60 91 83 05 	lds	r22, 0x0583	; 0x800583 <counter+0x2>
   29112:	70 91 84 05 	lds	r23, 0x0584	; 0x800584 <counter+0x3>
   29116:	84 0f       	add	r24, r20
   29118:	95 1f       	adc	r25, r21
   2911a:	a6 1f       	adc	r26, r22
   2911c:	b7 1f       	adc	r27, r23
   2911e:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
   29122:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   29126:	a0 93 83 05 	sts	0x0583, r26	; 0x800583 <counter+0x2>
   2912a:	b0 93 84 05 	sts	0x0584, r27	; 0x800584 <counter+0x3>
    if (counter[X_AXIS].wide > 0) {
   2912e:	18 16       	cp	r1, r24
   29130:	19 06       	cpc	r1, r25
   29132:	1a 06       	cpc	r1, r26
   29134:	1b 06       	cpc	r1, r27
   29136:	c4 f5       	brge	.+112    	; 0x291a8 <__vector_17+0x8d4>
      STEP_NC_HI(X_AXIS);
   29138:	d6 b9       	out	0x06, r29	; 6
#ifdef DEBUG_XSTEP_DUP_PIN
      STEP_NC_HI(X_DUP_AXIS);
#endif //DEBUG_XSTEP_DUP_PIN
      counter[X_AXIS].wide -= current_block->step_event_count.wide;
   2913a:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   2913e:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   29142:	80 91 81 05 	lds	r24, 0x0581	; 0x800581 <counter>
   29146:	90 91 82 05 	lds	r25, 0x0582	; 0x800582 <counter+0x1>
   2914a:	a0 91 83 05 	lds	r26, 0x0583	; 0x800583 <counter+0x2>
   2914e:	b0 91 84 05 	lds	r27, 0x0584	; 0x800584 <counter+0x3>
   29152:	40 89       	ldd	r20, Z+16	; 0x10
   29154:	51 89       	ldd	r21, Z+17	; 0x11
   29156:	62 89       	ldd	r22, Z+18	; 0x12
   29158:	73 89       	ldd	r23, Z+19	; 0x13
   2915a:	84 1b       	sub	r24, r20
   2915c:	95 0b       	sbc	r25, r21
   2915e:	a6 0b       	sbc	r26, r22
   29160:	b7 0b       	sbc	r27, r23
   29162:	80 93 81 05 	sts	0x0581, r24	; 0x800581 <counter>
   29166:	90 93 82 05 	sts	0x0582, r25	; 0x800582 <counter+0x1>
   2916a:	a0 93 83 05 	sts	0x0583, r26	; 0x800583 <counter+0x2>
   2916e:	b0 93 84 05 	sts	0x0584, r27	; 0x800584 <counter+0x3>
      count_position[X_AXIS]+=count_direction[X_AXIS];
   29172:	90 91 97 02 	lds	r25, 0x0297	; 0x800297 <count_direction>
   29176:	40 91 b3 06 	lds	r20, 0x06B3	; 0x8006b3 <count_position>
   2917a:	50 91 b4 06 	lds	r21, 0x06B4	; 0x8006b4 <count_position+0x1>
   2917e:	60 91 b5 06 	lds	r22, 0x06B5	; 0x8006b5 <count_position+0x2>
   29182:	70 91 b6 06 	lds	r23, 0x06B6	; 0x8006b6 <count_position+0x3>
   29186:	89 2f       	mov	r24, r25
   29188:	99 0f       	add	r25, r25
   2918a:	99 0b       	sbc	r25, r25
   2918c:	aa 0b       	sbc	r26, r26
   2918e:	bb 0b       	sbc	r27, r27
   29190:	84 0f       	add	r24, r20
   29192:	95 1f       	adc	r25, r21
   29194:	a6 1f       	adc	r26, r22
   29196:	b7 1f       	adc	r27, r23
   29198:	80 93 b3 06 	sts	0x06B3, r24	; 0x8006b3 <count_position>
   2919c:	90 93 b4 06 	sts	0x06B4, r25	; 0x8006b4 <count_position+0x1>
   291a0:	a0 93 b5 06 	sts	0x06B5, r26	; 0x8006b5 <count_position+0x2>
   291a4:	b0 93 b6 06 	sts	0x06B6, r27	; 0x8006b6 <count_position+0x3>
#ifdef DEBUG_XSTEP_DUP_PIN
      STEP_NC_LO(X_DUP_AXIS);
#endif //DEBUG_XSTEP_DUP_PIN
    }
    // Step in Y axis
    counter[Y_AXIS].wide += current_block->steps[Y_AXIS].wide;
   291a8:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   291ac:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   291b0:	84 81       	ldd	r24, Z+4	; 0x04
   291b2:	95 81       	ldd	r25, Z+5	; 0x05
   291b4:	a6 81       	ldd	r26, Z+6	; 0x06
   291b6:	b7 81       	ldd	r27, Z+7	; 0x07
   291b8:	40 91 85 05 	lds	r20, 0x0585	; 0x800585 <counter+0x4>
   291bc:	50 91 86 05 	lds	r21, 0x0586	; 0x800586 <counter+0x5>
   291c0:	60 91 87 05 	lds	r22, 0x0587	; 0x800587 <counter+0x6>
   291c4:	70 91 88 05 	lds	r23, 0x0588	; 0x800588 <counter+0x7>
   291c8:	84 0f       	add	r24, r20
   291ca:	95 1f       	adc	r25, r21
   291cc:	a6 1f       	adc	r26, r22
   291ce:	b7 1f       	adc	r27, r23
   291d0:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
   291d4:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   291d8:	a0 93 87 05 	sts	0x0587, r26	; 0x800587 <counter+0x6>
   291dc:	b0 93 88 05 	sts	0x0588, r27	; 0x800588 <counter+0x7>
    if (counter[Y_AXIS].wide > 0) {
   291e0:	18 16       	cp	r1, r24
   291e2:	19 06       	cpc	r1, r25
   291e4:	1a 06       	cpc	r1, r26
   291e6:	1b 06       	cpc	r1, r27
   291e8:	84 f5       	brge	.+96     	; 0x2924a <__vector_17+0x976>
      STEP_NC_HI(Y_AXIS);
   291ea:	16 b9       	out	0x06, r17	; 6
#ifdef DEBUG_YSTEP_DUP_PIN
      STEP_NC_HI(Y_DUP_AXIS);
#endif //DEBUG_YSTEP_DUP_PIN
      counter[Y_AXIS].wide -= current_block->step_event_count.wide;
   291ec:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   291f0:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   291f4:	40 89       	ldd	r20, Z+16	; 0x10
   291f6:	51 89       	ldd	r21, Z+17	; 0x11
   291f8:	62 89       	ldd	r22, Z+18	; 0x12
   291fa:	73 89       	ldd	r23, Z+19	; 0x13
   291fc:	84 1b       	sub	r24, r20
   291fe:	95 0b       	sbc	r25, r21
   29200:	a6 0b       	sbc	r26, r22
   29202:	b7 0b       	sbc	r27, r23
   29204:	80 93 85 05 	sts	0x0585, r24	; 0x800585 <counter+0x4>
   29208:	90 93 86 05 	sts	0x0586, r25	; 0x800586 <counter+0x5>
   2920c:	a0 93 87 05 	sts	0x0587, r26	; 0x800587 <counter+0x6>
   29210:	b0 93 88 05 	sts	0x0588, r27	; 0x800588 <counter+0x7>
      count_position[Y_AXIS]+=count_direction[Y_AXIS];
   29214:	90 91 98 02 	lds	r25, 0x0298	; 0x800298 <count_direction+0x1>
   29218:	40 91 b7 06 	lds	r20, 0x06B7	; 0x8006b7 <count_position+0x4>
   2921c:	50 91 b8 06 	lds	r21, 0x06B8	; 0x8006b8 <count_position+0x5>
   29220:	60 91 b9 06 	lds	r22, 0x06B9	; 0x8006b9 <count_position+0x6>
   29224:	70 91 ba 06 	lds	r23, 0x06BA	; 0x8006ba <count_position+0x7>
   29228:	89 2f       	mov	r24, r25
   2922a:	99 0f       	add	r25, r25
   2922c:	99 0b       	sbc	r25, r25
   2922e:	aa 0b       	sbc	r26, r26
   29230:	bb 0b       	sbc	r27, r27
   29232:	84 0f       	add	r24, r20
   29234:	95 1f       	adc	r25, r21
   29236:	a6 1f       	adc	r26, r22
   29238:	b7 1f       	adc	r27, r23
   2923a:	80 93 b7 06 	sts	0x06B7, r24	; 0x8006b7 <count_position+0x4>
   2923e:	90 93 b8 06 	sts	0x06B8, r25	; 0x8006b8 <count_position+0x5>
   29242:	a0 93 b9 06 	sts	0x06B9, r26	; 0x8006b9 <count_position+0x6>
   29246:	b0 93 ba 06 	sts	0x06BA, r27	; 0x8006ba <count_position+0x7>
#ifdef DEBUG_YSTEP_DUP_PIN
      STEP_NC_LO(Y_DUP_AXIS);
#endif //DEBUG_YSTEP_DUP_PIN
    }
    // Step in Z axis
    counter[Z_AXIS].wide += current_block->steps[Z_AXIS].wide;
   2924a:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   2924e:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   29252:	80 85       	ldd	r24, Z+8	; 0x08
   29254:	91 85       	ldd	r25, Z+9	; 0x09
   29256:	a2 85       	ldd	r26, Z+10	; 0x0a
   29258:	b3 85       	ldd	r27, Z+11	; 0x0b
   2925a:	40 91 89 05 	lds	r20, 0x0589	; 0x800589 <counter+0x8>
   2925e:	50 91 8a 05 	lds	r21, 0x058A	; 0x80058a <counter+0x9>
   29262:	60 91 8b 05 	lds	r22, 0x058B	; 0x80058b <counter+0xa>
   29266:	70 91 8c 05 	lds	r23, 0x058C	; 0x80058c <counter+0xb>
   2926a:	84 0f       	add	r24, r20
   2926c:	95 1f       	adc	r25, r21
   2926e:	a6 1f       	adc	r26, r22
   29270:	b7 1f       	adc	r27, r23
   29272:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
   29276:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   2927a:	a0 93 8b 05 	sts	0x058B, r26	; 0x80058b <counter+0xa>
   2927e:	b0 93 8c 05 	sts	0x058C, r27	; 0x80058c <counter+0xb>
    if (counter[Z_AXIS].wide > 0) {
   29282:	18 16       	cp	r1, r24
   29284:	19 06       	cpc	r1, r25
   29286:	1a 06       	cpc	r1, r26
   29288:	1b 06       	cpc	r1, r27
   2928a:	84 f5       	brge	.+96     	; 0x292ec <__vector_17+0xa18>
      STEP_NC_HI(Z_AXIS);
   2928c:	06 b9       	out	0x06, r16	; 6
      counter[Z_AXIS].wide -= current_block->step_event_count.wide;
   2928e:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   29292:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   29296:	40 89       	ldd	r20, Z+16	; 0x10
   29298:	51 89       	ldd	r21, Z+17	; 0x11
   2929a:	62 89       	ldd	r22, Z+18	; 0x12
   2929c:	73 89       	ldd	r23, Z+19	; 0x13
   2929e:	84 1b       	sub	r24, r20
   292a0:	95 0b       	sbc	r25, r21
   292a2:	a6 0b       	sbc	r26, r22
   292a4:	b7 0b       	sbc	r27, r23
   292a6:	80 93 89 05 	sts	0x0589, r24	; 0x800589 <counter+0x8>
   292aa:	90 93 8a 05 	sts	0x058A, r25	; 0x80058a <counter+0x9>
   292ae:	a0 93 8b 05 	sts	0x058B, r26	; 0x80058b <counter+0xa>
   292b2:	b0 93 8c 05 	sts	0x058C, r27	; 0x80058c <counter+0xb>
      count_position[Z_AXIS]+=count_direction[Z_AXIS];
   292b6:	90 91 99 02 	lds	r25, 0x0299	; 0x800299 <count_direction+0x2>
   292ba:	40 91 bb 06 	lds	r20, 0x06BB	; 0x8006bb <count_position+0x8>
   292be:	50 91 bc 06 	lds	r21, 0x06BC	; 0x8006bc <count_position+0x9>
   292c2:	60 91 bd 06 	lds	r22, 0x06BD	; 0x8006bd <count_position+0xa>
   292c6:	70 91 be 06 	lds	r23, 0x06BE	; 0x8006be <count_position+0xb>
   292ca:	89 2f       	mov	r24, r25
   292cc:	99 0f       	add	r25, r25
   292ce:	99 0b       	sbc	r25, r25
   292d0:	aa 0b       	sbc	r26, r26
   292d2:	bb 0b       	sbc	r27, r27
   292d4:	84 0f       	add	r24, r20
   292d6:	95 1f       	adc	r25, r21
   292d8:	a6 1f       	adc	r26, r22
   292da:	b7 1f       	adc	r27, r23
   292dc:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   292e0:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   292e4:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   292e8:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
      STEP_NC_LO(Z_AXIS);
    }
    // Step in E axis
    counter[E_AXIS].wide += current_block->steps[E_AXIS].wide;
   292ec:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   292f0:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   292f4:	80 91 8d 05 	lds	r24, 0x058D	; 0x80058d <counter+0xc>
   292f8:	90 91 8e 05 	lds	r25, 0x058E	; 0x80058e <counter+0xd>
   292fc:	a0 91 8f 05 	lds	r26, 0x058F	; 0x80058f <counter+0xe>
   29300:	b0 91 90 05 	lds	r27, 0x0590	; 0x800590 <counter+0xf>
   29304:	44 85       	ldd	r20, Z+12	; 0x0c
   29306:	55 85       	ldd	r21, Z+13	; 0x0d
   29308:	66 85       	ldd	r22, Z+14	; 0x0e
   2930a:	77 85       	ldd	r23, Z+15	; 0x0f
   2930c:	84 0f       	add	r24, r20
   2930e:	95 1f       	adc	r25, r21
   29310:	a6 1f       	adc	r26, r22
   29312:	b7 1f       	adc	r27, r23
   29314:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
   29318:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   2931c:	a0 93 8f 05 	sts	0x058F, r26	; 0x80058f <counter+0xe>
   29320:	b0 93 90 05 	sts	0x0590, r27	; 0x800590 <counter+0xf>
   29324:	40 89       	ldd	r20, Z+16	; 0x10
   29326:	51 89       	ldd	r21, Z+17	; 0x11
   29328:	62 89       	ldd	r22, Z+18	; 0x12
   2932a:	73 89       	ldd	r23, Z+19	; 0x13
    if (counter[E_AXIS].wide > 0) {
   2932c:	18 16       	cp	r1, r24
   2932e:	19 06       	cpc	r1, r25
   29330:	1a 06       	cpc	r1, r26
   29332:	1b 06       	cpc	r1, r27
   29334:	74 f5       	brge	.+92     	; 0x29392 <__vector_17+0xabe>
#ifndef LIN_ADVANCE
      STEP_NC_HI(E_AXIS);
#endif /* LIN_ADVANCE */
      counter[E_AXIS].wide -= current_block->step_event_count.wide;
   29336:	84 1b       	sub	r24, r20
   29338:	95 0b       	sbc	r25, r21
   2933a:	a6 0b       	sbc	r26, r22
   2933c:	b7 0b       	sbc	r27, r23
   2933e:	80 93 8d 05 	sts	0x058D, r24	; 0x80058d <counter+0xc>
   29342:	90 93 8e 05 	sts	0x058E, r25	; 0x80058e <counter+0xd>
   29346:	a0 93 8f 05 	sts	0x058F, r26	; 0x80058f <counter+0xe>
   2934a:	b0 93 90 05 	sts	0x0590, r27	; 0x800590 <counter+0xf>
      count_position[E_AXIS] += count_direction[E_AXIS];
   2934e:	90 91 9a 02 	lds	r25, 0x029A	; 0x80029a <count_direction+0x3>
   29352:	c0 90 bf 06 	lds	r12, 0x06BF	; 0x8006bf <count_position+0xc>
   29356:	d0 90 c0 06 	lds	r13, 0x06C0	; 0x8006c0 <count_position+0xd>
   2935a:	e0 90 c1 06 	lds	r14, 0x06C1	; 0x8006c1 <count_position+0xe>
   2935e:	f0 90 c2 06 	lds	r15, 0x06C2	; 0x8006c2 <count_position+0xf>
   29362:	89 2f       	mov	r24, r25
   29364:	99 0f       	add	r25, r25
   29366:	99 0b       	sbc	r25, r25
   29368:	aa 0b       	sbc	r26, r26
   2936a:	bb 0b       	sbc	r27, r27
   2936c:	8c 0d       	add	r24, r12
   2936e:	9d 1d       	adc	r25, r13
   29370:	ae 1d       	adc	r26, r14
   29372:	bf 1d       	adc	r27, r15
   29374:	80 93 bf 06 	sts	0x06BF, r24	; 0x8006bf <count_position+0xc>
   29378:	90 93 c0 06 	sts	0x06C0, r25	; 0x8006c0 <count_position+0xd>
   2937c:	a0 93 c1 06 	sts	0x06C1, r26	; 0x8006c1 <count_position+0xe>
   29380:	b0 93 c2 06 	sts	0x06C2, r27	; 0x8006c2 <count_position+0xf>
#ifdef LIN_ADVANCE
      e_steps += count_direction[E_AXIS];
   29384:	90 91 9a 02 	lds	r25, 0x029A	; 0x80029a <count_direction+0x3>
   29388:	80 91 92 05 	lds	r24, 0x0592	; 0x800592 <e_steps>
   2938c:	89 0f       	add	r24, r25
   2938e:	80 93 92 05 	sts	0x0592, r24	; 0x800592 <e_steps>
      fsensor.stStep(count_direction[E_AXIS] < 0);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
      STEP_NC_LO(E_AXIS);
#endif
    }
    if(++ step_events_completed.wide >= current_block->step_event_count.wide)
   29392:	80 91 7c 05 	lds	r24, 0x057C	; 0x80057c <step_events_completed>
   29396:	90 91 7d 05 	lds	r25, 0x057D	; 0x80057d <step_events_completed+0x1>
   2939a:	a0 91 7e 05 	lds	r26, 0x057E	; 0x80057e <step_events_completed+0x2>
   2939e:	b0 91 7f 05 	lds	r27, 0x057F	; 0x80057f <step_events_completed+0x3>
   293a2:	01 96       	adiw	r24, 0x01	; 1
   293a4:	a1 1d       	adc	r26, r1
   293a6:	b1 1d       	adc	r27, r1
   293a8:	80 93 7c 05 	sts	0x057C, r24	; 0x80057c <step_events_completed>
   293ac:	90 93 7d 05 	sts	0x057D, r25	; 0x80057d <step_events_completed+0x1>
   293b0:	a0 93 7e 05 	sts	0x057E, r26	; 0x80057e <step_events_completed+0x2>
   293b4:	b0 93 7f 05 	sts	0x057F, r27	; 0x80057f <step_events_completed+0x3>
   293b8:	84 17       	cp	r24, r20
   293ba:	95 07       	cpc	r25, r21
   293bc:	a6 07       	cpc	r26, r22
   293be:	b7 07       	cpc	r27, r23
   293c0:	10 f4       	brcc	.+4      	; 0x293c6 <__vector_17+0xaf2>
  }
}

FORCE_INLINE void stepper_tick_highres()
{
  for (uint8_t i=0; i < step_loops; ++ i) { // Take multiple steps per interrupt (For high speed moves)
   293c2:	cf 5f       	subi	r28, 0xFF	; 255
   293c4:	91 ce       	rjmp	.-734    	; 0x290e8 <__vector_17+0x814>
    else
      stepper_tick_highres();


#ifdef LIN_ADVANCE
    if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   293c6:	80 91 92 05 	lds	r24, 0x0592	; 0x800592 <e_steps>
   293ca:	88 23       	and	r24, r24
   293cc:	39 f0       	breq	.+14     	; 0x293dc <__vector_17+0xb08>
   293ce:	87 fd       	sbrc	r24, 7
   293d0:	ee c0       	rjmp	.+476    	; 0x295ae <__vector_17+0xcda>
   293d2:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   293d6:	80 64       	ori	r24, 0x40	; 64
   293d8:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
    // Calculate new timer value
    // 13.38-14.63us for steady state,
    // 25.12us for acceleration / deceleration.
    {
      //WRITE_NC(LOGIC_ANALYZER_CH1, true);
      if (step_events_completed.wide <= current_block->accelerate_until) {
   293dc:	40 91 7c 05 	lds	r20, 0x057C	; 0x80057c <step_events_completed>
   293e0:	50 91 7d 05 	lds	r21, 0x057D	; 0x80057d <step_events_completed+0x1>
   293e4:	60 91 7e 05 	lds	r22, 0x057E	; 0x80057e <step_events_completed+0x2>
   293e8:	70 91 7f 05 	lds	r23, 0x057F	; 0x80057f <step_events_completed+0x3>
   293ec:	c0 91 a1 05 	lds	r28, 0x05A1	; 0x8005a1 <current_block>
   293f0:	d0 91 a2 05 	lds	r29, 0x05A2	; 0x8005a2 <current_block+0x1>
   293f4:	89 8d       	ldd	r24, Y+25	; 0x19
   293f6:	9a 8d       	ldd	r25, Y+26	; 0x1a
   293f8:	ab 8d       	ldd	r26, Y+27	; 0x1b
   293fa:	bc 8d       	ldd	r27, Y+28	; 0x1c
   293fc:	84 17       	cp	r24, r20
   293fe:	95 07       	cpc	r25, r21
   29400:	a6 07       	cpc	r26, r22
   29402:	b7 07       	cpc	r27, r23
   29404:	08 f4       	brcc	.+2      	; 0x29408 <__vector_17+0xb34>
   29406:	34 c1       	rjmp	.+616    	; 0x29670 <__vector_17+0xd9c>
        // v = t * a   ->   acc_step_rate = acceleration_time * current_block->acceleration_rate
        acc_step_rate = MUL24x24R24(acceleration_time, current_block->acceleration_rate);
   29408:	40 91 95 05 	lds	r20, 0x0595	; 0x800595 <acceleration_time>
   2940c:	50 91 96 05 	lds	r21, 0x0596	; 0x800596 <acceleration_time+0x1>
   29410:	60 91 97 05 	lds	r22, 0x0597	; 0x800597 <acceleration_time+0x2>
   29414:	70 91 98 05 	lds	r23, 0x0598	; 0x800598 <acceleration_time+0x3>
    "adc %B0, r26 \n\t"
    "clr r1 \n\t"
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1", "r26" , "r27" //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case. R26 is __zero_reg__, R27 is a temporary register.
    );
   29418:	cc 88       	ldd	r12, Y+20	; 0x14
   2941a:	dd 88       	ldd	r13, Y+21	; 0x15
   2941c:	ee 88       	ldd	r14, Y+22	; 0x16
   2941e:	aa 27       	eor	r26, r26
   29420:	4d 9d       	mul	r20, r13
   29422:	b1 2d       	mov	r27, r1
   29424:	5e 9d       	mul	r21, r14
   29426:	c0 01       	movw	r24, r0
   29428:	6e 9d       	mul	r22, r14
   2942a:	90 0d       	add	r25, r0
   2942c:	6d 9d       	mul	r22, r13
   2942e:	80 0d       	add	r24, r0
   29430:	91 1d       	adc	r25, r1
   29432:	4e 9d       	mul	r20, r14
   29434:	b0 0d       	add	r27, r0
   29436:	81 1d       	adc	r24, r1
   29438:	9a 1f       	adc	r25, r26
   2943a:	5d 9d       	mul	r21, r13
   2943c:	b0 0d       	add	r27, r0
   2943e:	81 1d       	adc	r24, r1
   29440:	9a 1f       	adc	r25, r26
   29442:	6c 9d       	mul	r22, r12
   29444:	b0 0d       	add	r27, r0
   29446:	81 1d       	adc	r24, r1
   29448:	9a 1f       	adc	r25, r26
   2944a:	5c 9d       	mul	r21, r12
   2944c:	b1 0d       	add	r27, r1
   2944e:	8a 1f       	adc	r24, r26
   29450:	9a 1f       	adc	r25, r26
   29452:	bb 0f       	add	r27, r27
   29454:	8a 1f       	adc	r24, r26
   29456:	9a 1f       	adc	r25, r26
   29458:	11 24       	eor	r1, r1
        acc_step_rate += uint16_t(current_block->initial_rate);
   2945a:	2a ad       	ldd	r18, Y+58	; 0x3a
   2945c:	3b ad       	ldd	r19, Y+59	; 0x3b
   2945e:	82 0f       	add	r24, r18
   29460:	93 1f       	adc	r25, r19
   29462:	90 93 9b 05 	sts	0x059B, r25	; 0x80059b <acc_step_rate+0x1>
   29466:	80 93 9a 05 	sts	0x059A, r24	; 0x80059a <acc_step_rate>
        // upper limit
        if(acc_step_rate > uint16_t(current_block->nominal_rate))
   2946a:	2e a9       	ldd	r18, Y+54	; 0x36
   2946c:	3f a9       	ldd	r19, Y+55	; 0x37
   2946e:	28 17       	cp	r18, r24
   29470:	39 07       	cpc	r19, r25
   29472:	20 f4       	brcc	.+8      	; 0x2947c <__vector_17+0xba8>
          acc_step_rate = current_block->nominal_rate;
   29474:	30 93 9b 05 	sts	0x059B, r19	; 0x80059b <acc_step_rate+0x1>
   29478:	20 93 9a 05 	sts	0x059A, r18	; 0x80059a <acc_step_rate>
        // step_rate to timer interval
        uint16_t timer = calc_timer(acc_step_rate, step_loops);
   2947c:	80 91 9a 05 	lds	r24, 0x059A	; 0x80059a <acc_step_rate>
   29480:	90 91 9b 05 	lds	r25, 0x059B	; 0x80059b <acc_step_rate+0x1>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   29484:	81 34       	cpi	r24, 0x41	; 65
   29486:	fc e9       	ldi	r31, 0x9C	; 156
   29488:	9f 07       	cpc	r25, r31
   2948a:	08 f0       	brcs	.+2      	; 0x2948e <__vector_17+0xbba>
   2948c:	94 c0       	rjmp	.+296    	; 0x295b6 <__vector_17+0xce2>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
   2948e:	81 32       	cpi	r24, 0x21	; 33
   29490:	2e e4       	ldi	r18, 0x4E	; 78
   29492:	92 07       	cpc	r25, r18
   29494:	08 f4       	brcc	.+2      	; 0x29498 <__vector_17+0xbc4>
   29496:	92 c0       	rjmp	.+292    	; 0x295bc <__vector_17+0xce8>
    step_rate = (step_rate >> 2)&0x3fff;
   29498:	96 95       	lsr	r25
   2949a:	87 95       	ror	r24
   2949c:	96 95       	lsr	r25
   2949e:	87 95       	ror	r24
    step_loops = 4;
   294a0:	24 e0       	ldi	r18, 0x04	; 4
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
    step_rate = (step_rate >> 1)&0x7fff;
    step_loops = 2;
   294a2:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
  else {
    step_loops = 1;
  }

  if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000);
  step_rate -= (F_CPU/500000); // Correct for minimal speed
   294a6:	80 97       	sbiw	r24, 0x20	; 32
  if(step_rate >= (8*256)){ // higher step rate
   294a8:	81 15       	cp	r24, r1
   294aa:	f8 e0       	ldi	r31, 0x08	; 8
   294ac:	9f 07       	cpc	r25, r31
   294ae:	08 f4       	brcc	.+2      	; 0x294b2 <__vector_17+0xbde>
   294b0:	97 c0       	rjmp	.+302    	; 0x295e0 <__vector_17+0xd0c>
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
   294b2:	e9 2f       	mov	r30, r25
   294b4:	ff 27       	eor	r31, r31
   294b6:	ee 0f       	add	r30, r30
   294b8:	ff 1f       	adc	r31, r31
   294ba:	ee 0f       	add	r30, r30
   294bc:	ff 1f       	adc	r31, r31
   294be:	9f 01       	movw	r18, r30
   294c0:	20 59       	subi	r18, 0x90	; 144
   294c2:	3a 46       	sbci	r19, 0x6A	; 106
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
   294c4:	f9 01       	movw	r30, r18
   294c6:	32 96       	adiw	r30, 0x02	; 2
   294c8:	a5 91       	lpm	r26, Z+
   294ca:	b4 91       	lpm	r27, Z
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   294cc:	f9 01       	movw	r30, r18
   294ce:	25 91       	lpm	r18, Z+
   294d0:	34 91       	lpm	r19, Z
    "clr r1" "\n\t"         //make r1 __zero_reg__ again
    "adc %B0, r1" "\n\t"    //propagate carry of addition (add 0 with carry)
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1"            //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case.
    );
   294d2:	b8 9f       	mul	r27, r24
   294d4:	f0 01       	movw	r30, r0
   294d6:	a8 9f       	mul	r26, r24
   294d8:	00 0c       	add	r0, r0
   294da:	e1 1d       	adc	r30, r1
   294dc:	11 24       	eor	r1, r1
   294de:	f1 1d       	adc	r31, r1
  step_rate -= (F_CPU/500000); // Correct for minimal speed
  if(step_rate >= (8*256)){ // higher step rate
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   294e0:	c9 01       	movw	r24, r18
   294e2:	8e 1b       	sub	r24, r30
   294e4:	9f 0b       	sbc	r25, r31
   294e6:	84 36       	cpi	r24, 0x64	; 100
   294e8:	91 05       	cpc	r25, r1
   294ea:	10 f4       	brcc	.+4      	; 0x294f0 <__vector_17+0xc1c>
   294ec:	84 e6       	ldi	r24, 0x64	; 100
   294ee:	90 e0       	ldi	r25, 0x00	; 0
        _NEXT_ISR(timer);
   294f0:	90 93 e6 04 	sts	0x04E6, r25	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   294f4:	80 93 e5 04 	sts	0x04E5, r24	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   294f8:	90 93 e2 04 	sts	0x04E2, r25	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
   294fc:	80 93 e1 04 	sts	0x04E1, r24	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>
        acceleration_time += timer;
   29500:	48 0f       	add	r20, r24
   29502:	59 1f       	adc	r21, r25
   29504:	61 1d       	adc	r22, r1
   29506:	71 1d       	adc	r23, r1
   29508:	40 93 95 05 	sts	0x0595, r20	; 0x800595 <acceleration_time>
   2950c:	50 93 96 05 	sts	0x0596, r21	; 0x800596 <acceleration_time+0x1>
   29510:	60 93 97 05 	sts	0x0597, r22	; 0x800597 <acceleration_time+0x2>
   29514:	70 93 98 05 	sts	0x0598, r23	; 0x800598 <acceleration_time+0x3>
#ifdef LIN_ADVANCE
        if (current_block->use_advance_lead) {
   29518:	fe 01       	movw	r30, r28
   2951a:	e4 5b       	subi	r30, 0xB4	; 180
   2951c:	ff 4f       	sbci	r31, 0xFF	; 255
   2951e:	80 81       	ld	r24, Z
   29520:	81 11       	cpse	r24, r1
   29522:	7d c0       	rjmp	.+250    	; 0x2961e <__vector_17+0xd4a>
      stepper_tick_highres();


#ifdef LIN_ADVANCE
    if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
    uint8_t la_state = 0;
   29524:	80 e0       	ldi	r24, 0x00	; 0
      //WRITE_NC(LOGIC_ANALYZER_CH1, false);
    }

#ifdef LIN_ADVANCE
    // avoid multiple instances or function calls to advance_spread
    if (la_state & ADV_INIT) {
   29526:	80 ff       	sbrs	r24, 0
   29528:	16 c0       	rjmp	.+44     	; 0x29556 <__vector_17+0xc82>
        LA_phase = -1;
   2952a:	9f ef       	ldi	r25, 0xFF	; 255
   2952c:	90 93 91 05 	sts	0x0591, r25	; 0x800591 <LA_phase>

        if (current_adv_steps == target_adv_steps) {
   29530:	e0 91 df 04 	lds	r30, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29534:	f0 91 e0 04 	lds	r31, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29538:	20 91 93 05 	lds	r18, 0x0593	; 0x800593 <target_adv_steps>
   2953c:	30 91 94 05 	lds	r19, 0x0594	; 0x800594 <target_adv_steps+0x1>
   29540:	e2 17       	cp	r30, r18
   29542:	f3 07       	cpc	r31, r19
   29544:	09 f0       	breq	.+2      	; 0x29548 <__vector_17+0xc74>
   29546:	24 c2       	rjmp	.+1096   	; 0x29990 <__vector_17+0x10bc>
            // nothing to be done in this phase, cancel any pending eisr
            la_state = 0;
            nextAdvanceISR = ADV_NEVER;
   29548:	8f ef       	ldi	r24, 0xFF	; 255
   2954a:	9f ef       	ldi	r25, 0xFF	; 255
   2954c:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29550:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
    if (la_state & ADV_INIT) {
        LA_phase = -1;

        if (current_adv_steps == target_adv_steps) {
            // nothing to be done in this phase, cancel any pending eisr
            la_state = 0;
   29554:	80 e0       	ldi	r24, 0x00	; 0
                eISR_Err += current_block->advance_rate;
                LA_phase = 0;
            }
        }
    }
    if (la_state & ADV_INIT || nextAdvanceISR != ADV_NEVER) {
   29556:	80 fd       	sbrc	r24, 0
   29558:	07 c0       	rjmp	.+14     	; 0x29568 <__vector_17+0xc94>
   2955a:	80 91 e3 04 	lds	r24, 0x04E3	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   2955e:	90 91 e4 04 	lds	r25, 0x04E4	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29562:	01 96       	adiw	r24, 0x01	; 1
   29564:	09 f4       	brne	.+2      	; 0x29568 <__vector_17+0xc94>
   29566:	b2 c2       	rjmp	.+1380   	; 0x29acc <__vector_17+0x11f8>
        // update timers & phase for the next iteration
        advance_spread(main_Rate);
   29568:	e0 91 e1 04 	lds	r30, 0x04E1	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>
   2956c:	f0 91 e2 04 	lds	r31, 0x04E2	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
    else return ((uint32_t)0xAAAB * q) >> 17;
}

FORCE_INLINE void advance_spread(uint16_t timer)
{
    eISR_Err += timer;
   29570:	80 91 72 05 	lds	r24, 0x0572	; 0x800572 <eISR_Err>
   29574:	90 91 73 05 	lds	r25, 0x0573	; 0x800573 <eISR_Err+0x1>
   29578:	a0 91 74 05 	lds	r26, 0x0574	; 0x800574 <eISR_Err+0x2>
   2957c:	b0 91 75 05 	lds	r27, 0x0575	; 0x800575 <eISR_Err+0x3>
   29580:	8e 0f       	add	r24, r30
   29582:	9f 1f       	adc	r25, r31
   29584:	a1 1d       	adc	r26, r1
   29586:	b1 1d       	adc	r27, r1

    uint8_t ticks = 0;
    while(eISR_Err >= current_block->advance_rate)
   29588:	c3 5b       	subi	r28, 0xB3	; 179
   2958a:	df 4f       	sbci	r29, 0xFF	; 255
   2958c:	08 81       	ld	r16, Y
   2958e:	19 81       	ldd	r17, Y+1	; 0x01
   29590:	30 e0       	ldi	r19, 0x00	; 0
   29592:	20 e0       	ldi	r18, 0x00	; 0

FORCE_INLINE void advance_spread(uint16_t timer)
{
    eISR_Err += timer;

    uint8_t ticks = 0;
   29594:	60 e0       	ldi	r22, 0x00	; 0
    while(eISR_Err >= current_block->advance_rate)
   29596:	80 17       	cp	r24, r16
   29598:	91 07       	cpc	r25, r17
   2959a:	a2 07       	cpc	r26, r18
   2959c:	b3 07       	cpc	r27, r19
   2959e:	08 f4       	brcc	.+2      	; 0x295a2 <__vector_17+0xcce>
   295a0:	27 c2       	rjmp	.+1102   	; 0x299f0 <__vector_17+0x111c>
    {
        ++ticks;
   295a2:	6f 5f       	subi	r22, 0xFF	; 255
        eISR_Err -= current_block->advance_rate;
   295a4:	80 1b       	sub	r24, r16
   295a6:	91 0b       	sbc	r25, r17
   295a8:	a2 0b       	sbc	r26, r18
   295aa:	b3 0b       	sbc	r27, r19
   295ac:	f4 cf       	rjmp	.-24     	; 0x29596 <__vector_17+0xcc2>
    else
      stepper_tick_highres();


#ifdef LIN_ADVANCE
    if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   295ae:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   295b2:	8f 7b       	andi	r24, 0xBF	; 191
   295b4:	11 cf       	rjmp	.-478    	; 0x293d8 <__vector_17+0xb04>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   295b6:	80 e4       	ldi	r24, 0x40	; 64
   295b8:	9c e9       	ldi	r25, 0x9C	; 156
   295ba:	6e cf       	rjmp	.-292    	; 0x29498 <__vector_17+0xbc4>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
    step_rate = (step_rate >> 2)&0x3fff;
    step_loops = 4;
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
   295bc:	81 31       	cpi	r24, 0x11	; 17
   295be:	e7 e2       	ldi	r30, 0x27	; 39
   295c0:	9e 07       	cpc	r25, r30
   295c2:	20 f0       	brcs	.+8      	; 0x295cc <__vector_17+0xcf8>
    step_rate = (step_rate >> 1)&0x7fff;
   295c4:	96 95       	lsr	r25
   295c6:	87 95       	ror	r24
    step_loops = 2;
   295c8:	22 e0       	ldi	r18, 0x02	; 2
   295ca:	6b cf       	rjmp	.-298    	; 0x294a2 <__vector_17+0xbce>
  }
  else {
    step_loops = 1;
   295cc:	21 e0       	ldi	r18, 0x01	; 1
   295ce:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
   295d2:	80 32       	cpi	r24, 0x20	; 32
   295d4:	91 05       	cpc	r25, r1
   295d6:	08 f0       	brcs	.+2      	; 0x295da <__vector_17+0xd06>
   295d8:	66 cf       	rjmp	.-308    	; 0x294a6 <__vector_17+0xbd2>
   295da:	80 e2       	ldi	r24, 0x20	; 32
   295dc:	90 e0       	ldi	r25, 0x00	; 0
   295de:	63 cf       	rjmp	.-314    	; 0x294a6 <__vector_17+0xbd2>
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
  }
  else { // lower step rates
    unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0];
    table_address += ((step_rate)>>1) & 0xfffc;
   295e0:	9c 01       	movw	r18, r24
   295e2:	36 95       	lsr	r19
   295e4:	27 95       	ror	r18
   295e6:	2c 7f       	andi	r18, 0xFC	; 252
   295e8:	20 59       	subi	r18, 0x90	; 144
   295ea:	3e 46       	sbci	r19, 0x6E	; 110
    timer = (unsigned short)pgm_read_word_near(table_address);
   295ec:	f9 01       	movw	r30, r18
   295ee:	a5 91       	lpm	r26, Z+
   295f0:	b4 91       	lpm	r27, Z
    timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
   295f2:	f9 01       	movw	r30, r18
   295f4:	32 96       	adiw	r30, 0x02	; 2
   295f6:	05 91       	lpm	r16, Z+
   295f8:	14 91       	lpm	r17, Z
   295fa:	87 70       	andi	r24, 0x07	; 7
   295fc:	99 27       	eor	r25, r25
   295fe:	80 9f       	mul	r24, r16
   29600:	90 01       	movw	r18, r0
   29602:	81 9f       	mul	r24, r17
   29604:	30 0d       	add	r19, r0
   29606:	90 9f       	mul	r25, r16
   29608:	30 0d       	add	r19, r0
   2960a:	11 24       	eor	r1, r1
   2960c:	f3 e0       	ldi	r31, 0x03	; 3
   2960e:	36 95       	lsr	r19
   29610:	27 95       	ror	r18
   29612:	fa 95       	dec	r31
   29614:	e1 f7       	brne	.-8      	; 0x2960e <__vector_17+0xd3a>
   29616:	cd 01       	movw	r24, r26
   29618:	82 1b       	sub	r24, r18
   2961a:	93 0b       	sbc	r25, r19
   2961c:	64 cf       	rjmp	.-312    	; 0x294e6 <__vector_17+0xc12>
        uint16_t timer = calc_timer(acc_step_rate, step_loops);
        _NEXT_ISR(timer);
        acceleration_time += timer;
#ifdef LIN_ADVANCE
        if (current_block->use_advance_lead) {
            if (step_events_completed.wide <= (unsigned long int)step_loops) {
   2961e:	40 91 7c 05 	lds	r20, 0x057C	; 0x80057c <step_events_completed>
   29622:	50 91 7d 05 	lds	r21, 0x057D	; 0x80057d <step_events_completed+0x1>
   29626:	60 91 7e 05 	lds	r22, 0x057E	; 0x80057e <step_events_completed+0x2>
   2962a:	70 91 7f 05 	lds	r23, 0x057F	; 0x80057f <step_events_completed+0x3>
   2962e:	80 91 99 05 	lds	r24, 0x0599	; 0x800599 <step_loops>
   29632:	90 e0       	ldi	r25, 0x00	; 0
   29634:	b0 e0       	ldi	r27, 0x00	; 0
   29636:	a0 e0       	ldi	r26, 0x00	; 0
   29638:	84 17       	cp	r24, r20
   2963a:	95 07       	cpc	r25, r21
   2963c:	a6 07       	cpc	r26, r22
   2963e:	b7 07       	cpc	r27, r23
   29640:	08 f4       	brcc	.+2      	; 0x29644 <__vector_17+0xd70>
   29642:	70 cf       	rjmp	.-288    	; 0x29524 <__vector_17+0xc50>
                la_state = ADV_INIT | ADV_ACC_VARY;
                if (e_extruding && current_adv_steps > target_adv_steps)
   29644:	80 91 80 05 	lds	r24, 0x0580	; 0x800580 <e_extruding>
   29648:	81 11       	cpse	r24, r1
   2964a:	02 c0       	rjmp	.+4      	; 0x29650 <__vector_17+0xd7c>
        _NEXT_ISR(timer);
        acceleration_time += timer;
#ifdef LIN_ADVANCE
        if (current_block->use_advance_lead) {
            if (step_events_completed.wide <= (unsigned long int)step_loops) {
                la_state = ADV_INIT | ADV_ACC_VARY;
   2964c:	83 e0       	ldi	r24, 0x03	; 3
   2964e:	6b cf       	rjmp	.-298    	; 0x29526 <__vector_17+0xc52>
                if (e_extruding && current_adv_steps > target_adv_steps)
   29650:	80 91 df 04 	lds	r24, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29654:	90 91 e0 04 	lds	r25, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29658:	20 91 93 05 	lds	r18, 0x0593	; 0x800593 <target_adv_steps>
   2965c:	30 91 94 05 	lds	r19, 0x0594	; 0x800594 <target_adv_steps+0x1>
   29660:	28 17       	cp	r18, r24
   29662:	39 07       	cpc	r19, r25
   29664:	98 f7       	brcc	.-26     	; 0x2964c <__vector_17+0xd78>
                    target_adv_steps = current_adv_steps;
   29666:	90 93 94 05 	sts	0x0594, r25	; 0x800594 <target_adv_steps+0x1>
   2966a:	80 93 93 05 	sts	0x0593, r24	; 0x800593 <target_adv_steps>
   2966e:	ee cf       	rjmp	.-36     	; 0x2964c <__vector_17+0xd78>
            }
        }
#endif
      }
      else if (step_events_completed.wide > current_block->decelerate_after) {
   29670:	80 91 7c 05 	lds	r24, 0x057C	; 0x80057c <step_events_completed>
   29674:	90 91 7d 05 	lds	r25, 0x057D	; 0x80057d <step_events_completed+0x1>
   29678:	a0 91 7e 05 	lds	r26, 0x057E	; 0x80057e <step_events_completed+0x2>
   2967c:	b0 91 7f 05 	lds	r27, 0x057F	; 0x80057f <step_events_completed+0x3>
   29680:	4d 8d       	ldd	r20, Y+29	; 0x1d
   29682:	5e 8d       	ldd	r21, Y+30	; 0x1e
   29684:	6f 8d       	ldd	r22, Y+31	; 0x1f
   29686:	78 a1       	ldd	r23, Y+32	; 0x20
   29688:	48 17       	cp	r20, r24
   2968a:	59 07       	cpc	r21, r25
   2968c:	6a 07       	cpc	r22, r26
   2968e:	7b 07       	cpc	r23, r27
   29690:	08 f0       	brcs	.+2      	; 0x29694 <__vector_17+0xdc0>
   29692:	e3 c0       	rjmp	.+454    	; 0x2985a <__vector_17+0xf86>
        uint16_t step_rate = MUL24x24R24(deceleration_time, current_block->acceleration_rate);
   29694:	c0 90 9d 05 	lds	r12, 0x059D	; 0x80059d <deceleration_time>
   29698:	d0 90 9e 05 	lds	r13, 0x059E	; 0x80059e <deceleration_time+0x1>
   2969c:	e0 90 9f 05 	lds	r14, 0x059F	; 0x80059f <deceleration_time+0x2>
   296a0:	f0 90 a0 05 	lds	r15, 0x05A0	; 0x8005a0 <deceleration_time+0x3>
    "adc %B0, r26 \n\t"
    "clr r1 \n\t"
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1", "r26" , "r27" //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case. R26 is __zero_reg__, R27 is a temporary register.
    );
   296a4:	6c 88       	ldd	r6, Y+20	; 0x14
   296a6:	7d 88       	ldd	r7, Y+21	; 0x15
   296a8:	8e 88       	ldd	r8, Y+22	; 0x16
   296aa:	aa 27       	eor	r26, r26
   296ac:	c7 9c       	mul	r12, r7
   296ae:	b1 2d       	mov	r27, r1
   296b0:	d8 9c       	mul	r13, r8
   296b2:	f0 01       	movw	r30, r0
   296b4:	e8 9c       	mul	r14, r8
   296b6:	f0 0d       	add	r31, r0
   296b8:	e7 9c       	mul	r14, r7
   296ba:	e0 0d       	add	r30, r0
   296bc:	f1 1d       	adc	r31, r1
   296be:	c8 9c       	mul	r12, r8
   296c0:	b0 0d       	add	r27, r0
   296c2:	e1 1d       	adc	r30, r1
   296c4:	fa 1f       	adc	r31, r26
   296c6:	d7 9c       	mul	r13, r7
   296c8:	b0 0d       	add	r27, r0
   296ca:	e1 1d       	adc	r30, r1
   296cc:	fa 1f       	adc	r31, r26
   296ce:	e6 9c       	mul	r14, r6
   296d0:	b0 0d       	add	r27, r0
   296d2:	e1 1d       	adc	r30, r1
   296d4:	fa 1f       	adc	r31, r26
   296d6:	d6 9c       	mul	r13, r6
   296d8:	b1 0d       	add	r27, r1
   296da:	ea 1f       	adc	r30, r26
   296dc:	fa 1f       	adc	r31, r26
   296de:	bb 0f       	add	r27, r27
   296e0:	ea 1f       	adc	r30, r26
   296e2:	fa 1f       	adc	r31, r26
   296e4:	11 24       	eor	r1, r1

        if (step_rate > acc_step_rate) { // Check step_rate stays positive
   296e6:	20 91 9a 05 	lds	r18, 0x059A	; 0x80059a <acc_step_rate>
   296ea:	30 91 9b 05 	lds	r19, 0x059B	; 0x80059b <acc_step_rate+0x1>
   296ee:	8e ad       	ldd	r24, Y+62	; 0x3e
   296f0:	9f ad       	ldd	r25, Y+63	; 0x3f
   296f2:	2e 17       	cp	r18, r30
   296f4:	3f 07       	cpc	r19, r31
   296f6:	30 f0       	brcs	.+12     	; 0x29704 <__vector_17+0xe30>
            step_rate = uint16_t(current_block->final_rate);
        }
        else {
            step_rate = acc_step_rate - step_rate; // Decelerate from acceleration end point.
   296f8:	2e 1b       	sub	r18, r30
   296fa:	3f 0b       	sbc	r19, r31
   296fc:	82 17       	cp	r24, r18
   296fe:	93 07       	cpc	r25, r19
   29700:	08 f4       	brcc	.+2      	; 0x29704 <__vector_17+0xe30>
   29702:	c9 01       	movw	r24, r18
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   29704:	81 34       	cpi	r24, 0x41	; 65
   29706:	2c e9       	ldi	r18, 0x9C	; 156
   29708:	92 07       	cpc	r25, r18
   2970a:	08 f0       	brcs	.+2      	; 0x2970e <__vector_17+0xe3a>
   2970c:	75 c0       	rjmp	.+234    	; 0x297f8 <__vector_17+0xf24>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
   2970e:	81 32       	cpi	r24, 0x21	; 33
   29710:	ee e4       	ldi	r30, 0x4E	; 78
   29712:	9e 07       	cpc	r25, r30
   29714:	08 f4       	brcc	.+2      	; 0x29718 <__vector_17+0xe44>
   29716:	73 c0       	rjmp	.+230    	; 0x297fe <__vector_17+0xf2a>
    step_rate = (step_rate >> 2)&0x3fff;
   29718:	96 95       	lsr	r25
   2971a:	87 95       	ror	r24
   2971c:	96 95       	lsr	r25
   2971e:	87 95       	ror	r24
    step_loops = 4;
   29720:	24 e0       	ldi	r18, 0x04	; 4
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
    step_rate = (step_rate >> 1)&0x7fff;
    step_loops = 2;
   29722:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
  else {
    step_loops = 1;
  }

  if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000);
  step_rate -= (F_CPU/500000); // Correct for minimal speed
   29726:	80 97       	sbiw	r24, 0x20	; 32
  if(step_rate >= (8*256)){ // higher step rate
   29728:	81 15       	cp	r24, r1
   2972a:	28 e0       	ldi	r18, 0x08	; 8
   2972c:	92 07       	cpc	r25, r18
   2972e:	08 f4       	brcc	.+2      	; 0x29732 <__vector_17+0xe5e>
   29730:	78 c0       	rjmp	.+240    	; 0x29822 <__vector_17+0xf4e>
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
   29732:	e9 2f       	mov	r30, r25
   29734:	ff 27       	eor	r31, r31
   29736:	ee 0f       	add	r30, r30
   29738:	ff 1f       	adc	r31, r31
   2973a:	ee 0f       	add	r30, r30
   2973c:	ff 1f       	adc	r31, r31
   2973e:	9f 01       	movw	r18, r30
   29740:	20 59       	subi	r18, 0x90	; 144
   29742:	3a 46       	sbci	r19, 0x6A	; 106
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
   29744:	f9 01       	movw	r30, r18
   29746:	32 96       	adiw	r30, 0x02	; 2
   29748:	a5 91       	lpm	r26, Z+
   2974a:	b4 91       	lpm	r27, Z
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   2974c:	f9 01       	movw	r30, r18
   2974e:	25 91       	lpm	r18, Z+
   29750:	34 91       	lpm	r19, Z
    "clr r1" "\n\t"         //make r1 __zero_reg__ again
    "adc %B0, r1" "\n\t"    //propagate carry of addition (add 0 with carry)
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1"            //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case.
    );
   29752:	b8 9f       	mul	r27, r24
   29754:	f0 01       	movw	r30, r0
   29756:	a8 9f       	mul	r26, r24
   29758:	00 0c       	add	r0, r0
   2975a:	e1 1d       	adc	r30, r1
   2975c:	11 24       	eor	r1, r1
   2975e:	f1 1d       	adc	r31, r1
  }
  else { // lower step rates
    unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0];
    table_address += ((step_rate)>>1) & 0xfffc;
    timer = (unsigned short)pgm_read_word_near(table_address);
    timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
   29760:	2e 1b       	sub	r18, r30
   29762:	3f 0b       	sbc	r19, r31
   29764:	c9 01       	movw	r24, r18
   29766:	24 36       	cpi	r18, 0x64	; 100
   29768:	31 05       	cpc	r19, r1
   2976a:	10 f4       	brcc	.+4      	; 0x29770 <__vector_17+0xe9c>
   2976c:	84 e6       	ldi	r24, 0x64	; 100
   2976e:	90 e0       	ldi	r25, 0x00	; 0
                step_rate = uint16_t(current_block->final_rate);
        }

        // Step_rate to timer interval.
        uint16_t timer = calc_timer(step_rate, step_loops);
        _NEXT_ISR(timer);
   29770:	90 93 e6 04 	sts	0x04E6, r25	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   29774:	80 93 e5 04 	sts	0x04E5, r24	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   29778:	90 93 e2 04 	sts	0x04E2, r25	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
   2977c:	80 93 e1 04 	sts	0x04E1, r24	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>
        deceleration_time += timer;
   29780:	c8 0e       	add	r12, r24
   29782:	d9 1e       	adc	r13, r25
   29784:	e1 1c       	adc	r14, r1
   29786:	f1 1c       	adc	r15, r1
   29788:	c0 92 9d 05 	sts	0x059D, r12	; 0x80059d <deceleration_time>
   2978c:	d0 92 9e 05 	sts	0x059E, r13	; 0x80059e <deceleration_time+0x1>
   29790:	e0 92 9f 05 	sts	0x059F, r14	; 0x80059f <deceleration_time+0x2>
   29794:	f0 92 a0 05 	sts	0x05A0, r15	; 0x8005a0 <deceleration_time+0x3>

#ifdef LIN_ADVANCE
        if (current_block->use_advance_lead) {
   29798:	fe 01       	movw	r30, r28
   2979a:	e4 5b       	subi	r30, 0xB4	; 180
   2979c:	ff 4f       	sbci	r31, 0xFF	; 255
   2979e:	80 81       	ld	r24, Z
   297a0:	88 23       	and	r24, r24
   297a2:	09 f4       	brne	.+2      	; 0x297a6 <__vector_17+0xed2>
   297a4:	bf ce       	rjmp	.-642    	; 0x29524 <__vector_17+0xc50>
            if (step_events_completed.wide <= current_block->decelerate_after + step_loops) {
   297a6:	80 91 7c 05 	lds	r24, 0x057C	; 0x80057c <step_events_completed>
   297aa:	90 91 7d 05 	lds	r25, 0x057D	; 0x80057d <step_events_completed+0x1>
   297ae:	a0 91 7e 05 	lds	r26, 0x057E	; 0x80057e <step_events_completed+0x2>
   297b2:	b0 91 7f 05 	lds	r27, 0x057F	; 0x80057f <step_events_completed+0x3>
   297b6:	20 91 99 05 	lds	r18, 0x0599	; 0x800599 <step_loops>
   297ba:	42 0f       	add	r20, r18
   297bc:	51 1d       	adc	r21, r1
   297be:	61 1d       	adc	r22, r1
   297c0:	71 1d       	adc	r23, r1
   297c2:	48 17       	cp	r20, r24
   297c4:	59 07       	cpc	r21, r25
   297c6:	6a 07       	cpc	r22, r26
   297c8:	7b 07       	cpc	r23, r27
   297ca:	08 f4       	brcc	.+2      	; 0x297ce <__vector_17+0xefa>
   297cc:	ab ce       	rjmp	.-682    	; 0x29524 <__vector_17+0xc50>
                target_adv_steps = current_block->final_adv_steps;
   297ce:	35 96       	adiw	r30, 0x05	; 5
   297d0:	20 81       	ld	r18, Z
   297d2:	31 81       	ldd	r19, Z+1	; 0x01
   297d4:	30 93 94 05 	sts	0x0594, r19	; 0x800594 <target_adv_steps+0x1>
   297d8:	20 93 93 05 	sts	0x0593, r18	; 0x800593 <target_adv_steps>
                la_state = ADV_INIT | ADV_ACC_VARY;
                if (e_extruding && current_adv_steps < target_adv_steps)
   297dc:	80 91 80 05 	lds	r24, 0x0580	; 0x800580 <e_extruding>
   297e0:	88 23       	and	r24, r24
   297e2:	09 f4       	brne	.+2      	; 0x297e6 <__vector_17+0xf12>
   297e4:	33 cf       	rjmp	.-410    	; 0x2964c <__vector_17+0xd78>
   297e6:	80 91 df 04 	lds	r24, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   297ea:	90 91 e0 04 	lds	r25, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   297ee:	82 17       	cp	r24, r18
   297f0:	93 07       	cpc	r25, r19
   297f2:	08 f0       	brcs	.+2      	; 0x297f6 <__vector_17+0xf22>
   297f4:	2b cf       	rjmp	.-426    	; 0x2964c <__vector_17+0xd78>
   297f6:	37 cf       	rjmp	.-402    	; 0x29666 <__vector_17+0xd92>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   297f8:	80 e4       	ldi	r24, 0x40	; 64
   297fa:	9c e9       	ldi	r25, 0x9C	; 156
   297fc:	8d cf       	rjmp	.-230    	; 0x29718 <__vector_17+0xe44>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
    step_rate = (step_rate >> 2)&0x3fff;
    step_loops = 4;
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
   297fe:	81 31       	cpi	r24, 0x11	; 17
   29800:	f7 e2       	ldi	r31, 0x27	; 39
   29802:	9f 07       	cpc	r25, r31
   29804:	20 f0       	brcs	.+8      	; 0x2980e <__vector_17+0xf3a>
    step_rate = (step_rate >> 1)&0x7fff;
   29806:	96 95       	lsr	r25
   29808:	87 95       	ror	r24
    step_loops = 2;
   2980a:	22 e0       	ldi	r18, 0x02	; 2
   2980c:	8a cf       	rjmp	.-236    	; 0x29722 <__vector_17+0xe4e>
  }
  else {
    step_loops = 1;
   2980e:	21 e0       	ldi	r18, 0x01	; 1
   29810:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
   29814:	80 32       	cpi	r24, 0x20	; 32
   29816:	91 05       	cpc	r25, r1
   29818:	08 f0       	brcs	.+2      	; 0x2981c <__vector_17+0xf48>
   2981a:	85 cf       	rjmp	.-246    	; 0x29726 <__vector_17+0xe52>
   2981c:	80 e2       	ldi	r24, 0x20	; 32
   2981e:	90 e0       	ldi	r25, 0x00	; 0
   29820:	82 cf       	rjmp	.-252    	; 0x29726 <__vector_17+0xe52>
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
  }
  else { // lower step rates
    unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0];
    table_address += ((step_rate)>>1) & 0xfffc;
   29822:	dc 01       	movw	r26, r24
   29824:	b6 95       	lsr	r27
   29826:	a7 95       	ror	r26
   29828:	ac 7f       	andi	r26, 0xFC	; 252
   2982a:	a0 59       	subi	r26, 0x90	; 144
   2982c:	be 46       	sbci	r27, 0x6E	; 110
    timer = (unsigned short)pgm_read_word_near(table_address);
   2982e:	fd 01       	movw	r30, r26
   29830:	25 91       	lpm	r18, Z+
   29832:	34 91       	lpm	r19, Z
    timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
   29834:	fd 01       	movw	r30, r26
   29836:	32 96       	adiw	r30, 0x02	; 2
   29838:	a5 91       	lpm	r26, Z+
   2983a:	b4 91       	lpm	r27, Z
   2983c:	87 70       	andi	r24, 0x07	; 7
   2983e:	99 27       	eor	r25, r25
   29840:	8a 9f       	mul	r24, r26
   29842:	f0 01       	movw	r30, r0
   29844:	8b 9f       	mul	r24, r27
   29846:	f0 0d       	add	r31, r0
   29848:	9a 9f       	mul	r25, r26
   2984a:	f0 0d       	add	r31, r0
   2984c:	11 24       	eor	r1, r1
   2984e:	a3 e0       	ldi	r26, 0x03	; 3
   29850:	f6 95       	lsr	r31
   29852:	e7 95       	ror	r30
   29854:	aa 95       	dec	r26
   29856:	e1 f7       	brne	.-8      	; 0x29850 <__vector_17+0xf7c>
   29858:	83 cf       	rjmp	.-250    	; 0x29760 <__vector_17+0xe8c>
            }
        }
#endif
      }
      else {
        if (! step_loops_nominal) {
   2985a:	80 91 9c 05 	lds	r24, 0x059C	; 0x80059c <step_loops_nominal>
   2985e:	88 23       	and	r24, r24
   29860:	71 f0       	breq	.+28     	; 0x2987e <__vector_17+0xfaa>
      stepper_tick_highres();


#ifdef LIN_ADVANCE
    if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
    uint8_t la_state = 0;
   29862:	80 e0       	ldi	r24, 0x00	; 0
              if (e_extruding)
                  target_adv_steps = current_adv_steps;
          }
#endif
        }
        _NEXT_ISR(OCR1A_nominal);
   29864:	20 91 76 05 	lds	r18, 0x0576	; 0x800576 <OCR1A_nominal>
   29868:	30 91 77 05 	lds	r19, 0x0577	; 0x800577 <OCR1A_nominal+0x1>
   2986c:	30 93 e6 04 	sts	0x04E6, r19	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   29870:	20 93 e5 04 	sts	0x04E5, r18	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   29874:	30 93 e2 04 	sts	0x04E2, r19	; 0x8004e2 <_ZL9main_Rate.lto_priv.480+0x1>
   29878:	20 93 e1 04 	sts	0x04E1, r18	; 0x8004e1 <_ZL9main_Rate.lto_priv.480>
   2987c:	54 ce       	rjmp	.-856    	; 0x29526 <__vector_17+0xc52>
      }
      else {
        if (! step_loops_nominal) {
          // Calculation of the steady state timer rate has been delayed to the 1st tick of the steady state to lower
          // the initial interrupt blocking.
          OCR1A_nominal = calc_timer(uint16_t(current_block->nominal_rate), step_loops);
   2987e:	8e a9       	ldd	r24, Y+54	; 0x36
   29880:	9f a9       	ldd	r25, Y+55	; 0x37
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   29882:	81 34       	cpi	r24, 0x41	; 65
   29884:	4c e9       	ldi	r20, 0x9C	; 156
   29886:	94 07       	cpc	r25, r20
   29888:	08 f0       	brcs	.+2      	; 0x2988c <__vector_17+0xfb8>
   2988a:	4e c0       	rjmp	.+156    	; 0x29928 <__vector_17+0x1054>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
   2988c:	81 32       	cpi	r24, 0x21	; 33
   2988e:	5e e4       	ldi	r21, 0x4E	; 78
   29890:	95 07       	cpc	r25, r21
   29892:	08 f4       	brcc	.+2      	; 0x29896 <__vector_17+0xfc2>
   29894:	4c c0       	rjmp	.+152    	; 0x2992e <__vector_17+0x105a>
    step_rate = (step_rate >> 2)&0x3fff;
   29896:	96 95       	lsr	r25
   29898:	87 95       	ror	r24
   2989a:	96 95       	lsr	r25
   2989c:	87 95       	ror	r24
    step_loops = 4;
   2989e:	24 e0       	ldi	r18, 0x04	; 4
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
    step_rate = (step_rate >> 1)&0x7fff;
    step_loops = 2;
   298a0:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
  else {
    step_loops = 1;
  }

  if(step_rate < (F_CPU/500000)) step_rate = (F_CPU/500000);
  step_rate -= (F_CPU/500000); // Correct for minimal speed
   298a4:	80 97       	sbiw	r24, 0x20	; 32
  if(step_rate >= (8*256)){ // higher step rate
   298a6:	81 15       	cp	r24, r1
   298a8:	f8 e0       	ldi	r31, 0x08	; 8
   298aa:	9f 07       	cpc	r25, r31
   298ac:	08 f4       	brcc	.+2      	; 0x298b0 <__vector_17+0xfdc>
   298ae:	51 c0       	rjmp	.+162    	; 0x29952 <__vector_17+0x107e>
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
   298b0:	e9 2f       	mov	r30, r25
   298b2:	ff 27       	eor	r31, r31
   298b4:	ee 0f       	add	r30, r30
   298b6:	ff 1f       	adc	r31, r31
   298b8:	ee 0f       	add	r30, r30
   298ba:	ff 1f       	adc	r31, r31
   298bc:	9f 01       	movw	r18, r30
   298be:	20 59       	subi	r18, 0x90	; 144
   298c0:	3a 46       	sbci	r19, 0x6A	; 106
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
   298c2:	f9 01       	movw	r30, r18
   298c4:	32 96       	adiw	r30, 0x02	; 2
   298c6:	65 91       	lpm	r22, Z+
   298c8:	74 91       	lpm	r23, Z
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   298ca:	f9 01       	movw	r30, r18
   298cc:	25 91       	lpm	r18, Z+
   298ce:	34 91       	lpm	r19, Z
    "clr r1" "\n\t"         //make r1 __zero_reg__ again
    "adc %B0, r1" "\n\t"    //propagate carry of addition (add 0 with carry)
    : "=&r" (out)
    : "r" (x), "r" (y)
    : "r0", "r1"            //clobbers: Technically these are either scratch registers or always 0 registers, but I'm making sure the compiler knows just in case.
    );
   298d0:	78 9f       	mul	r23, r24
   298d2:	a0 01       	movw	r20, r0
   298d4:	68 9f       	mul	r22, r24
   298d6:	00 0c       	add	r0, r0
   298d8:	41 1d       	adc	r20, r1
   298da:	11 24       	eor	r1, r1
   298dc:	51 1d       	adc	r21, r1
  step_rate -= (F_CPU/500000); // Correct for minimal speed
  if(step_rate >= (8*256)){ // higher step rate
    unsigned short table_address = (unsigned short)&speed_lookuptable_fast[(unsigned char)(step_rate>>8)][0];
    unsigned char tmp_step_rate = (step_rate & 0x00ff);
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
   298de:	c9 01       	movw	r24, r18
   298e0:	84 1b       	sub	r24, r20
   298e2:	95 0b       	sbc	r25, r21
   298e4:	84 36       	cpi	r24, 0x64	; 100
   298e6:	91 05       	cpc	r25, r1
   298e8:	10 f4       	brcc	.+4      	; 0x298ee <__vector_17+0x101a>
   298ea:	84 e6       	ldi	r24, 0x64	; 100
   298ec:	90 e0       	ldi	r25, 0x00	; 0
   298ee:	90 93 77 05 	sts	0x0577, r25	; 0x800577 <OCR1A_nominal+0x1>
   298f2:	80 93 76 05 	sts	0x0576, r24	; 0x800576 <OCR1A_nominal>
          step_loops_nominal = step_loops;
   298f6:	80 91 99 05 	lds	r24, 0x0599	; 0x800599 <step_loops>
   298fa:	80 93 9c 05 	sts	0x059C, r24	; 0x80059c <step_loops_nominal>

#ifdef LIN_ADVANCE
          if(current_block->use_advance_lead) {
   298fe:	fe 01       	movw	r30, r28
   29900:	e4 5b       	subi	r30, 0xB4	; 180
   29902:	ff 4f       	sbci	r31, 0xFF	; 255
   29904:	80 81       	ld	r24, Z
   29906:	88 23       	and	r24, r24
   29908:	09 f4       	brne	.+2      	; 0x2990c <__vector_17+0x1038>
   2990a:	ab cf       	rjmp	.-170    	; 0x29862 <__vector_17+0xf8e>
              // Due to E-jerk, there can be discontinuities in pressure state where an
              // acceleration or deceleration can be skipped or joined with the previous block.
              // If LA was not previously active, re-check the pressure level
              la_state = ADV_INIT;
              if (e_extruding)
   2990c:	80 91 80 05 	lds	r24, 0x0580	; 0x800580 <e_extruding>
   29910:	88 23       	and	r24, r24
   29912:	41 f0       	breq	.+16     	; 0x29924 <__vector_17+0x1050>
                  target_adv_steps = current_adv_steps;
   29914:	80 91 df 04 	lds	r24, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29918:	90 91 e0 04 	lds	r25, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   2991c:	90 93 94 05 	sts	0x0594, r25	; 0x800594 <target_adv_steps+0x1>
   29920:	80 93 93 05 	sts	0x0593, r24	; 0x800593 <target_adv_steps>
#ifdef LIN_ADVANCE
          if(current_block->use_advance_lead) {
              // Due to E-jerk, there can be discontinuities in pressure state where an
              // acceleration or deceleration can be skipped or joined with the previous block.
              // If LA was not previously active, re-check the pressure level
              la_state = ADV_INIT;
   29924:	81 e0       	ldi	r24, 0x01	; 1
   29926:	9e cf       	rjmp	.-196    	; 0x29864 <__vector_17+0xf90>
#endif //_NO_ASM


FORCE_INLINE unsigned short calc_timer(uint16_t step_rate, uint8_t& step_loops) {
  uint16_t timer;
  if(step_rate > MAX_STEP_FREQUENCY) step_rate = MAX_STEP_FREQUENCY;
   29928:	80 e4       	ldi	r24, 0x40	; 64
   2992a:	9c e9       	ldi	r25, 0x9C	; 156
   2992c:	b4 cf       	rjmp	.-152    	; 0x29896 <__vector_17+0xfc2>

  if(step_rate > 20000) { // If steprate > 20kHz >> step 4 times
    step_rate = (step_rate >> 2)&0x3fff;
    step_loops = 4;
  }
  else if(step_rate > 10000) { // If steprate > 10kHz >> step 2 times
   2992e:	81 31       	cpi	r24, 0x11	; 17
   29930:	e7 e2       	ldi	r30, 0x27	; 39
   29932:	9e 07       	cpc	r25, r30
   29934:	20 f0       	brcs	.+8      	; 0x2993e <__vector_17+0x106a>
    step_rate = (step_rate >> 1)&0x7fff;
   29936:	96 95       	lsr	r25
   29938:	87 95       	ror	r24
    step_loops = 2;
   2993a:	22 e0       	ldi	r18, 0x02	; 2
   2993c:	b1 cf       	rjmp	.-158    	; 0x298a0 <__vector_17+0xfcc>
  }
  else {
    step_loops = 1;
   2993e:	21 e0       	ldi	r18, 0x01	; 1
   29940:	20 93 99 05 	sts	0x0599, r18	; 0x800599 <step_loops>
   29944:	80 32       	cpi	r24, 0x20	; 32
   29946:	91 05       	cpc	r25, r1
   29948:	08 f0       	brcs	.+2      	; 0x2994c <__vector_17+0x1078>
   2994a:	ac cf       	rjmp	.-168    	; 0x298a4 <__vector_17+0xfd0>
   2994c:	80 e2       	ldi	r24, 0x20	; 32
   2994e:	90 e0       	ldi	r25, 0x00	; 0
   29950:	a9 cf       	rjmp	.-174    	; 0x298a4 <__vector_17+0xfd0>
    uint16_t gain = (uint16_t)pgm_read_word_near(table_address+2);
    timer = (unsigned short)pgm_read_word_near(table_address) - MUL8x16R8(tmp_step_rate, gain);
  }
  else { // lower step rates
    unsigned short table_address = (unsigned short)&speed_lookuptable_slow[0][0];
    table_address += ((step_rate)>>1) & 0xfffc;
   29952:	9c 01       	movw	r18, r24
   29954:	36 95       	lsr	r19
   29956:	27 95       	ror	r18
   29958:	2c 7f       	andi	r18, 0xFC	; 252
   2995a:	20 59       	subi	r18, 0x90	; 144
   2995c:	3e 46       	sbci	r19, 0x6E	; 110
    timer = (unsigned short)pgm_read_word_near(table_address);
   2995e:	f9 01       	movw	r30, r18
   29960:	45 91       	lpm	r20, Z+
   29962:	54 91       	lpm	r21, Z
    timer -= (((unsigned short)pgm_read_word_near(table_address+2) * (unsigned char)(step_rate & 0x0007))>>3);
   29964:	f9 01       	movw	r30, r18
   29966:	32 96       	adiw	r30, 0x02	; 2
   29968:	65 91       	lpm	r22, Z+
   2996a:	74 91       	lpm	r23, Z
   2996c:	87 70       	andi	r24, 0x07	; 7
   2996e:	99 27       	eor	r25, r25
   29970:	86 9f       	mul	r24, r22
   29972:	90 01       	movw	r18, r0
   29974:	87 9f       	mul	r24, r23
   29976:	30 0d       	add	r19, r0
   29978:	96 9f       	mul	r25, r22
   2997a:	30 0d       	add	r19, r0
   2997c:	11 24       	eor	r1, r1
   2997e:	a3 e0       	ldi	r26, 0x03	; 3
   29980:	36 95       	lsr	r19
   29982:	27 95       	ror	r18
   29984:	aa 95       	dec	r26
   29986:	e1 f7       	brne	.-8      	; 0x29980 <__vector_17+0x10ac>
   29988:	ca 01       	movw	r24, r20
   2998a:	82 1b       	sub	r24, r18
   2998c:	93 0b       	sbc	r25, r19
   2998e:	aa cf       	rjmp	.-172    	; 0x298e4 <__vector_17+0x1010>
            la_state = 0;
            nextAdvanceISR = ADV_NEVER;
        }
        else {
            // reset error and iterations per loop for this phase
            eISR_Err = current_block->advance_rate;
   29990:	de 01       	movw	r26, r28
   29992:	a3 5b       	subi	r26, 0xB3	; 179
   29994:	bf 4f       	sbci	r27, 0xFF	; 255
   29996:	4d 91       	ld	r20, X+
   29998:	5c 91       	ld	r21, X
   2999a:	11 97       	sbiw	r26, 0x01	; 1
   2999c:	70 e0       	ldi	r23, 0x00	; 0
   2999e:	60 e0       	ldi	r22, 0x00	; 0
   299a0:	40 93 72 05 	sts	0x0572, r20	; 0x800572 <eISR_Err>
   299a4:	50 93 73 05 	sts	0x0573, r21	; 0x800573 <eISR_Err+0x1>
   299a8:	60 93 74 05 	sts	0x0574, r22	; 0x800574 <eISR_Err+0x2>
   299ac:	70 93 75 05 	sts	0x0575, r23	; 0x800575 <eISR_Err+0x3>
            e_step_loops = current_block->advance_step_loops;
   299b0:	16 96       	adiw	r26, 0x06	; 6
   299b2:	9c 91       	ld	r25, X
   299b4:	90 93 71 05 	sts	0x0571, r25	; 0x800571 <e_step_loops>

            if ((la_state & ADV_ACC_VARY) && e_extruding && (current_adv_steps > target_adv_steps)) {
   299b8:	98 2f       	mov	r25, r24
   299ba:	92 70       	andi	r25, 0x02	; 2
   299bc:	09 f4       	brne	.+2      	; 0x299c0 <__vector_17+0x10ec>
   299be:	cb cd       	rjmp	.-1130   	; 0x29556 <__vector_17+0xc82>
   299c0:	90 91 80 05 	lds	r25, 0x0580	; 0x800580 <e_extruding>
   299c4:	99 23       	and	r25, r25
   299c6:	09 f4       	brne	.+2      	; 0x299ca <__vector_17+0x10f6>
   299c8:	c6 cd       	rjmp	.-1140   	; 0x29556 <__vector_17+0xc82>
   299ca:	2e 17       	cp	r18, r30
   299cc:	3f 07       	cpc	r19, r31
   299ce:	08 f0       	brcs	.+2      	; 0x299d2 <__vector_17+0x10fe>
   299d0:	c2 cd       	rjmp	.-1148   	; 0x29556 <__vector_17+0xc82>
                // LA could reverse the direction of extrusion in this phase
                eISR_Err += current_block->advance_rate;
   299d2:	44 0f       	add	r20, r20
   299d4:	55 1f       	adc	r21, r21
   299d6:	66 1f       	adc	r22, r22
   299d8:	77 1f       	adc	r23, r23
   299da:	40 93 72 05 	sts	0x0572, r20	; 0x800572 <eISR_Err>
   299de:	50 93 73 05 	sts	0x0573, r21	; 0x800573 <eISR_Err+0x1>
   299e2:	60 93 74 05 	sts	0x0574, r22	; 0x800574 <eISR_Err+0x2>
   299e6:	70 93 75 05 	sts	0x0575, r23	; 0x800575 <eISR_Err+0x3>
                LA_phase = 0;
   299ea:	10 92 91 05 	sts	0x0591, r1	; 0x800591 <LA_phase>
   299ee:	b3 cd       	rjmp	.-1178   	; 0x29556 <__vector_17+0xc82>
   299f0:	80 93 72 05 	sts	0x0572, r24	; 0x800572 <eISR_Err>
   299f4:	90 93 73 05 	sts	0x0573, r25	; 0x800573 <eISR_Err+0x1>
   299f8:	a0 93 74 05 	sts	0x0574, r26	; 0x800574 <eISR_Err+0x2>
   299fc:	b0 93 75 05 	sts	0x0575, r27	; 0x800575 <eISR_Err+0x3>
    while(eISR_Err >= current_block->advance_rate)
    {
        ++ticks;
        eISR_Err -= current_block->advance_rate;
    }
    if(!ticks)
   29a00:	61 11       	cpse	r22, r1
   29a02:	1b c0       	rjmp	.+54     	; 0x29a3a <__vector_17+0x1166>
    {
        eISR_Rate = timer;
   29a04:	f0 93 70 05 	sts	0x0570, r31	; 0x800570 <eISR_Rate+0x1>
   29a08:	e0 93 6f 05 	sts	0x056F, r30	; 0x80056f <eISR_Rate>
        nextAdvanceISR = timer;
   29a0c:	f0 93 e4 04 	sts	0x04E4, r31	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29a10:	e0 93 e3 04 	sts	0x04E3, r30	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
        }
    }
    if (la_state & ADV_INIT || nextAdvanceISR != ADV_NEVER) {
        // update timers & phase for the next iteration
        advance_spread(main_Rate);
        if (LA_phase >= 0) {
   29a14:	80 91 91 05 	lds	r24, 0x0591	; 0x800591 <LA_phase>
   29a18:	87 fd       	sbrc	r24, 7
   29a1a:	58 c0       	rjmp	.+176    	; 0x29acc <__vector_17+0x11f8>
            if (step_loops == e_step_loops)
   29a1c:	80 91 99 05 	lds	r24, 0x0599	; 0x800599 <step_loops>
   29a20:	10 91 71 05 	lds	r17, 0x0571	; 0x800571 <e_step_loops>
   29a24:	28 81       	ld	r18, Y
   29a26:	39 81       	ldd	r19, Y+1	; 0x01
   29a28:	81 13       	cpse	r24, r17
   29a2a:	35 c0       	rjmp	.+106    	; 0x29a96 <__vector_17+0x11c2>
                LA_phase = (current_block->advance_rate < main_Rate);
   29a2c:	81 e0       	ldi	r24, 0x01	; 1
   29a2e:	2e 17       	cp	r18, r30
   29a30:	3f 07       	cpc	r19, r31
   29a32:	08 f4       	brcc	.+2      	; 0x29a36 <__vector_17+0x1162>
   29a34:	49 c0       	rjmp	.+146    	; 0x29ac8 <__vector_17+0x11f4>
            else {
                // avoid overflow through division. warning: we need to _guarantee_ step_loops
                // and e_step_loops are <= 4 due to fastdiv's limit
                auto adv_rate_n = fastdiv(current_block->advance_rate, step_loops);
                auto main_rate_n = fastdiv(main_Rate, e_step_loops);
                LA_phase = (adv_rate_n < main_rate_n);
   29a36:	80 e0       	ldi	r24, 0x00	; 0
   29a38:	47 c0       	rjmp	.+142    	; 0x29ac8 <__vector_17+0x11f4>
        eISR_Rate = timer;
        nextAdvanceISR = timer;
        return;
    }

    if (ticks <= 3)
   29a3a:	64 30       	cpi	r22, 0x04	; 4
   29a3c:	28 f5       	brcc	.+74     	; 0x29a88 <__vector_17+0x11b4>
        eISR_Rate = fastdiv(timer, ticks + 1);
   29a3e:	6f 5f       	subi	r22, 0xFF	; 255
#ifdef LIN_ADVANCE
// @wavexx: fast uint16_t division for small dividends<5
//          q/3 based on "Hacker's delight" formula
FORCE_INLINE uint16_t fastdiv(uint16_t q, uint8_t d)
{
    if(d != 3) return q >> (d / 2);
   29a40:	63 30       	cpi	r22, 0x03	; 3
   29a42:	a9 f0       	breq	.+42     	; 0x29a6e <__vector_17+0x119a>
   29a44:	66 95       	lsr	r22
   29a46:	af 01       	movw	r20, r30
   29a48:	02 c0       	rjmp	.+4      	; 0x29a4e <__vector_17+0x117a>
   29a4a:	56 95       	lsr	r21
   29a4c:	47 95       	ror	r20
   29a4e:	6a 95       	dec	r22
   29a50:	e2 f7       	brpl	.-8      	; 0x29a4a <__vector_17+0x1176>
   29a52:	ba 01       	movw	r22, r20
    if (ticks <= 3)
        eISR_Rate = fastdiv(timer, ticks + 1);
    else
    {
        // >4 ticks are still possible on slow moves
        eISR_Rate = timer / (ticks + 1);
   29a54:	70 93 70 05 	sts	0x0570, r23	; 0x800570 <eISR_Rate+0x1>
   29a58:	60 93 6f 05 	sts	0x056F, r22	; 0x80056f <eISR_Rate>
    }

    nextAdvanceISR = eISR_Rate;
   29a5c:	80 91 6f 05 	lds	r24, 0x056F	; 0x80056f <eISR_Rate>
   29a60:	90 91 70 05 	lds	r25, 0x0570	; 0x800570 <eISR_Rate+0x1>
   29a64:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29a68:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   29a6c:	d3 cf       	rjmp	.-90     	; 0x29a14 <__vector_17+0x1140>
// @wavexx: fast uint16_t division for small dividends<5
//          q/3 based on "Hacker's delight" formula
FORCE_INLINE uint16_t fastdiv(uint16_t q, uint8_t d)
{
    if(d != 3) return q >> (d / 2);
    else return ((uint32_t)0xAAAB * q) >> 17;
   29a6e:	9f 01       	movw	r18, r30
   29a70:	ab ea       	ldi	r26, 0xAB	; 171
   29a72:	ba ea       	ldi	r27, 0xAA	; 170
   29a74:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   29a78:	41 e1       	ldi	r20, 0x11	; 17
   29a7a:	96 95       	lsr	r25
   29a7c:	87 95       	ror	r24
   29a7e:	77 95       	ror	r23
   29a80:	67 95       	ror	r22
   29a82:	4a 95       	dec	r20
   29a84:	d1 f7       	brne	.-12     	; 0x29a7a <__vector_17+0x11a6>
   29a86:	e6 cf       	rjmp	.-52     	; 0x29a54 <__vector_17+0x1180>
    if (ticks <= 3)
        eISR_Rate = fastdiv(timer, ticks + 1);
    else
    {
        // >4 ticks are still possible on slow moves
        eISR_Rate = timer / (ticks + 1);
   29a88:	70 e0       	ldi	r23, 0x00	; 0
   29a8a:	6f 5f       	subi	r22, 0xFF	; 255
   29a8c:	7f 4f       	sbci	r23, 0xFF	; 255
   29a8e:	cf 01       	movw	r24, r30
   29a90:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   29a94:	df cf       	rjmp	.-66     	; 0x29a54 <__vector_17+0x1180>
#ifdef LIN_ADVANCE
// @wavexx: fast uint16_t division for small dividends<5
//          q/3 based on "Hacker's delight" formula
FORCE_INLINE uint16_t fastdiv(uint16_t q, uint8_t d)
{
    if(d != 3) return q >> (d / 2);
   29a96:	83 30       	cpi	r24, 0x03	; 3
   29a98:	09 f4       	brne	.+2      	; 0x29a9c <__vector_17+0x11c8>
   29a9a:	cf c0       	rjmp	.+414    	; 0x29c3a <__vector_17+0x1366>
   29a9c:	86 95       	lsr	r24
   29a9e:	a9 01       	movw	r20, r18
   29aa0:	02 c0       	rjmp	.+4      	; 0x29aa6 <__vector_17+0x11d2>
   29aa2:	56 95       	lsr	r21
   29aa4:	47 95       	ror	r20
   29aa6:	8a 95       	dec	r24
   29aa8:	e2 f7       	brpl	.-8      	; 0x29aa2 <__vector_17+0x11ce>
   29aaa:	13 30       	cpi	r17, 0x03	; 3
   29aac:	09 f4       	brne	.+2      	; 0x29ab0 <__vector_17+0x11dc>
   29aae:	d3 c0       	rjmp	.+422    	; 0x29c56 <__vector_17+0x1382>
   29ab0:	16 95       	lsr	r17
   29ab2:	bf 01       	movw	r22, r30
   29ab4:	02 c0       	rjmp	.+4      	; 0x29aba <__vector_17+0x11e6>
   29ab6:	76 95       	lsr	r23
   29ab8:	67 95       	ror	r22
   29aba:	1a 95       	dec	r17
   29abc:	e2 f7       	brpl	.-8      	; 0x29ab6 <__vector_17+0x11e2>
            else {
                // avoid overflow through division. warning: we need to _guarantee_ step_loops
                // and e_step_loops are <= 4 due to fastdiv's limit
                auto adv_rate_n = fastdiv(current_block->advance_rate, step_loops);
                auto main_rate_n = fastdiv(main_Rate, e_step_loops);
                LA_phase = (adv_rate_n < main_rate_n);
   29abe:	81 e0       	ldi	r24, 0x01	; 1
   29ac0:	46 17       	cp	r20, r22
   29ac2:	57 07       	cpc	r21, r23
   29ac4:	08 f0       	brcs	.+2      	; 0x29ac8 <__vector_17+0x11f4>
   29ac6:	b7 cf       	rjmp	.-146    	; 0x29a36 <__vector_17+0x1162>
   29ac8:	80 93 91 05 	sts	0x0591, r24	; 0x800591 <LA_phase>
        }
    }

    // Check for serial chars. This executes roughtly inbetween 50-60% of the total runtime of the
    // entire isr, making this spot a much better choice than checking during esteps
    MSerial.checkRx();
   29acc:	0f 94 21 15 	call	0x22a42	; 0x22a42 <MarlinSerial::checkRx()>
#endif

    // If current block is finished, reset pointer
    if (step_events_completed.wide >= current_block->step_event_count.wide) {
   29ad0:	40 91 7c 05 	lds	r20, 0x057C	; 0x80057c <step_events_completed>
   29ad4:	50 91 7d 05 	lds	r21, 0x057D	; 0x80057d <step_events_completed+0x1>
   29ad8:	60 91 7e 05 	lds	r22, 0x057E	; 0x80057e <step_events_completed+0x2>
   29adc:	70 91 7f 05 	lds	r23, 0x057F	; 0x80057f <step_events_completed+0x3>
   29ae0:	e0 91 a1 05 	lds	r30, 0x05A1	; 0x8005a1 <current_block>
   29ae4:	f0 91 a2 05 	lds	r31, 0x05A2	; 0x8005a2 <current_block+0x1>
   29ae8:	80 89       	ldd	r24, Z+16	; 0x10
   29aea:	91 89       	ldd	r25, Z+17	; 0x11
   29aec:	a2 89       	ldd	r26, Z+18	; 0x12
   29aee:	b3 89       	ldd	r27, Z+19	; 0x13
   29af0:	48 17       	cp	r20, r24
   29af2:	59 07       	cpc	r21, r25
   29af4:	6a 07       	cpc	r22, r26
   29af6:	7b 07       	cpc	r23, r27
   29af8:	80 f0       	brcs	.+32     	; 0x29b1a <__vector_17+0x1246>
      current_block = NULL;
   29afa:	10 92 a2 05 	sts	0x05A2, r1	; 0x8005a2 <current_block+0x1>
   29afe:	10 92 a1 05 	sts	0x05A1, r1	; 0x8005a1 <current_block>
extern volatile uint8_t block_buffer_tail;
// Called when the current block is no longer needed. Discards the block and makes the memory
// available for new blocks.
FORCE_INLINE void plan_discard_current_block()
{
  if (block_buffer_head != block_buffer_tail) {
   29b02:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   29b06:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   29b0a:	98 17       	cp	r25, r24
   29b0c:	31 f0       	breq	.+12     	; 0x29b1a <__vector_17+0x1246>
    block_buffer_tail = (block_buffer_tail + 1) & (BLOCK_BUFFER_SIZE - 1);
   29b0e:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   29b12:	8f 5f       	subi	r24, 0xFF	; 255
   29b14:	8f 70       	andi	r24, 0x0F	; 15
   29b16:	80 93 a6 0d 	sts	0x0DA6, r24	; 0x800da6 <block_buffer_tail>
	return mask;
}

void tmc2130_st_isr()
{
	if (tmc2130_mode == TMC2130_MODE_SILENT || tmc2130_sg_stop_on_crash == false || tmc2130_sg_homing_axes_mask != 0)
   29b1a:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
   29b1e:	81 30       	cpi	r24, 0x01	; 1
   29b20:	49 f1       	breq	.+82     	; 0x29b74 <__vector_17+0x12a0>
   29b22:	80 91 5c 02 	lds	r24, 0x025C	; 0x80025c <tmc2130_sg_stop_on_crash>
   29b26:	88 23       	and	r24, r24
   29b28:	29 f1       	breq	.+74     	; 0x29b74 <__vector_17+0x12a0>
   29b2a:	80 91 43 06 	lds	r24, 0x0643	; 0x800643 <tmc2130_sg_homing_axes_mask>
   29b2e:	81 11       	cpse	r24, r1
   29b30:	21 c0       	rjmp	.+66     	; 0x29b74 <__vector_17+0x12a0>
}

uint8_t tmc2130_sample_diag()
{
	uint8_t mask = 0;
	if (!READ(X_TMC2130_DIAG)) mask |= X_AXIS_MASK;
   29b32:	90 91 06 01 	lds	r25, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   29b36:	81 e0       	ldi	r24, 0x01	; 1
   29b38:	29 2f       	mov	r18, r25
   29b3a:	24 70       	andi	r18, 0x04	; 4
   29b3c:	92 fd       	sbrc	r25, 2
   29b3e:	80 e0       	ldi	r24, 0x00	; 0
	if (!READ(Y_TMC2130_DIAG)) mask |= Y_AXIS_MASK;
   29b40:	90 91 06 01 	lds	r25, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   29b44:	82 60       	ori	r24, 0x02	; 2
   29b46:	97 ff       	sbrs	r25, 7
   29b48:	03 c0       	rjmp	.+6      	; 0x29b50 <__vector_17+0x127c>
void tmc2130_st_isr()
{
	if (tmc2130_mode == TMC2130_MODE_SILENT || tmc2130_sg_stop_on_crash == false || tmc2130_sg_homing_axes_mask != 0)
		return;
	uint8_t mask = tmc2130_sample_diag();
	if (tmc2130_sg_stop_on_crash && mask) {
   29b4a:	21 11       	cpse	r18, r1
   29b4c:	13 c0       	rjmp	.+38     	; 0x29b74 <__vector_17+0x12a0>
   29b4e:	81 e0       	ldi	r24, 0x01	; 1
		tmc2130_sg_crash = mask;
   29b50:	80 93 0d 05 	sts	0x050D, r24	; 0x80050d <tmc2130_sg_crash>
		tmc2130_sg_stop_on_crash = false;
   29b54:	10 92 5c 02 	sts	0x025C, r1	; 0x80025c <tmc2130_sg_stop_on_crash>

#ifdef TMC2130

void crashdet_stop_and_save_print()
{
	stop_and_save_print_to_ram(pause_position[Z_AXIS], -default_retraction); //XY - no change, Pause Z LIFT mm up, E -1mm retract
   29b58:	60 91 47 02 	lds	r22, 0x0247	; 0x800247 <_ZL14pause_position.lto_priv.483+0x8>
   29b5c:	70 91 48 02 	lds	r23, 0x0248	; 0x800248 <_ZL14pause_position.lto_priv.483+0x9>
   29b60:	80 91 49 02 	lds	r24, 0x0249	; 0x800249 <_ZL14pause_position.lto_priv.483+0xa>
   29b64:	90 91 4a 02 	lds	r25, 0x024A	; 0x80024a <_ZL14pause_position.lto_priv.483+0xb>
   29b68:	20 e0       	ldi	r18, 0x00	; 0
   29b6a:	30 e0       	ldi	r19, 0x00	; 0
   29b6c:	40 e8       	ldi	r20, 0x80	; 128
   29b6e:	5f eb       	ldi	r21, 0xBF	; 191
   29b70:	0e 94 c6 88 	call	0x1118c	; 0x1118c <stop_and_save_print_to_ram(float, float)>
        WRITE_NC(LOGIC_ANALYZER_CH0, false);
#endif
    }

    // Run the next advance isr if triggered
    bool eisr = !nextAdvanceISR;
   29b74:	60 91 e3 04 	lds	r22, 0x04E3	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   29b78:	70 91 e4 04 	lds	r23, 0x04E4	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
    if (eisr)
   29b7c:	61 15       	cp	r22, r1
   29b7e:	71 05       	cpc	r23, r1
   29b80:	09 f0       	breq	.+2      	; 0x29b84 <__vector_17+0x12b0>
   29b82:	46 c0       	rjmp	.+140    	; 0x29c10 <__vector_17+0x133c>

#ifdef LIN_ADVANCE
// Timer interrupt for E. e_steps is set in the main routine.

FORCE_INLINE void advance_isr() {
    if (current_adv_steps > target_adv_steps) {
   29b84:	40 91 df 04 	lds	r20, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29b88:	50 91 e0 04 	lds	r21, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29b8c:	20 91 93 05 	lds	r18, 0x0593	; 0x800593 <target_adv_steps>
   29b90:	30 91 94 05 	lds	r19, 0x0594	; 0x800594 <target_adv_steps+0x1>
   29b94:	80 91 92 05 	lds	r24, 0x0592	; 0x800592 <e_steps>
   29b98:	24 17       	cp	r18, r20
   29b9a:	35 07       	cpc	r19, r21
   29b9c:	08 f0       	brcs	.+2      	; 0x29ba0 <__vector_17+0x12cc>
   29b9e:	6c c0       	rjmp	.+216    	; 0x29c78 <__vector_17+0x13a4>
        // decompression
        if (e_step_loops != 1) {
   29ba0:	90 91 71 05 	lds	r25, 0x0571	; 0x800571 <e_step_loops>
   29ba4:	91 30       	cpi	r25, 0x01	; 1
   29ba6:	41 f0       	breq	.+16     	; 0x29bb8 <__vector_17+0x12e4>
            uint16_t d_steps = current_adv_steps - target_adv_steps;
   29ba8:	42 1b       	sub	r20, r18
   29baa:	53 0b       	sbc	r21, r19
            if (d_steps < e_step_loops)
   29bac:	94 17       	cp	r25, r20
   29bae:	15 06       	cpc	r1, r21
   29bb0:	19 f0       	breq	.+6      	; 0x29bb8 <__vector_17+0x12e4>
   29bb2:	10 f0       	brcs	.+4      	; 0x29bb8 <__vector_17+0x12e4>
                e_step_loops = d_steps;
   29bb4:	40 93 71 05 	sts	0x0571, r20	; 0x800571 <e_step_loops>
        }
        e_steps -= e_step_loops;
   29bb8:	90 91 71 05 	lds	r25, 0x0571	; 0x800571 <e_step_loops>
   29bbc:	89 1b       	sub	r24, r25
   29bbe:	80 93 92 05 	sts	0x0592, r24	; 0x800592 <e_steps>
        if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   29bc2:	88 23       	and	r24, r24
   29bc4:	39 f0       	breq	.+14     	; 0x29bd4 <__vector_17+0x1300>
   29bc6:	87 fd       	sbrc	r24, 7
   29bc8:	53 c0       	rjmp	.+166    	; 0x29c70 <__vector_17+0x139c>
   29bca:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   29bce:	80 64       	ori	r24, 0x40	; 64
   29bd0:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
        current_adv_steps -= e_step_loops;
   29bd4:	20 91 71 05 	lds	r18, 0x0571	; 0x800571 <e_step_loops>
   29bd8:	80 91 df 04 	lds	r24, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29bdc:	90 91 e0 04 	lds	r25, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29be0:	82 1b       	sub	r24, r18
   29be2:	91 09       	sbc	r25, r1
            if (d_steps < e_step_loops)
                e_step_loops = d_steps;
        }
        e_steps += e_step_loops;
        if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
        current_adv_steps += e_step_loops;
   29be4:	90 93 e0 04 	sts	0x04E0, r25	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29be8:	80 93 df 04 	sts	0x04DF, r24	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
    }

    if (current_adv_steps == target_adv_steps) {
   29bec:	20 91 df 04 	lds	r18, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29bf0:	30 91 e0 04 	lds	r19, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29bf4:	80 91 93 05 	lds	r24, 0x0593	; 0x800593 <target_adv_steps>
   29bf8:	90 91 94 05 	lds	r25, 0x0594	; 0x800594 <target_adv_steps+0x1>
   29bfc:	28 17       	cp	r18, r24
   29bfe:	39 07       	cpc	r19, r25
   29c00:	09 f0       	breq	.+2      	; 0x29c04 <__vector_17+0x1330>
   29c02:	66 c0       	rjmp	.+204    	; 0x29cd0 <__vector_17+0x13fc>
        // advance steps completed
        nextAdvanceISR = ADV_NEVER;
   29c04:	8f ef       	ldi	r24, 0xFF	; 255
   29c06:	9f ef       	ldi	r25, 0xFF	; 255
    }
    else {
        // schedule another tick
        nextAdvanceISR = eISR_Rate;
   29c08:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29c0c:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
        WRITE_NC(LOGIC_ANALYZER_CH1, false);
#endif
    }

    // Tick E steps if any
    if (e_steps && (LA_phase < 0 || LA_phase == eisr)) {
   29c10:	40 91 92 05 	lds	r20, 0x0592	; 0x800592 <e_steps>
   29c14:	41 11       	cpse	r20, r1
   29c16:	61 c0       	rjmp	.+194    	; 0x29cda <__vector_17+0x1406>
        while(--max_ticks);
    }

    // Schedule the next closest tick, ignoring advance if scheduled too
    // soon in order to avoid skewing the regular stepper acceleration
    if (nextAdvanceISR != ADV_NEVER && (nextAdvanceISR + 40) < nextMainISR)
   29c18:	80 91 e3 04 	lds	r24, 0x04E3	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
   29c1c:	90 91 e4 04 	lds	r25, 0x04E4	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   29c20:	20 91 e5 04 	lds	r18, 0x04E5	; 0x8004e5 <_ZL11nextMainISR.lto_priv.478>
   29c24:	30 91 e6 04 	lds	r19, 0x04E6	; 0x8004e6 <_ZL11nextMainISR.lto_priv.478+0x1>
   29c28:	8f 3f       	cpi	r24, 0xFF	; 255
   29c2a:	98 07       	cpc	r25, r24
   29c2c:	09 f0       	breq	.+2      	; 0x29c30 <__vector_17+0x135c>
   29c2e:	98 c0       	rjmp	.+304    	; 0x29d60 <__vector_17+0x148c>
        OCR1A = nextAdvanceISR;
    else
        OCR1A = nextMainISR;
   29c30:	30 93 89 00 	sts	0x0089, r19	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   29c34:	20 93 88 00 	sts	0x0088, r18	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   29c38:	9e c0       	rjmp	.+316    	; 0x29d76 <__vector_17+0x14a2>
// @wavexx: fast uint16_t division for small dividends<5
//          q/3 based on "Hacker's delight" formula
FORCE_INLINE uint16_t fastdiv(uint16_t q, uint8_t d)
{
    if(d != 3) return q >> (d / 2);
    else return ((uint32_t)0xAAAB * q) >> 17;
   29c3a:	ab ea       	ldi	r26, 0xAB	; 171
   29c3c:	ba ea       	ldi	r27, 0xAA	; 170
   29c3e:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   29c42:	ab 01       	movw	r20, r22
   29c44:	bc 01       	movw	r22, r24
   29c46:	31 e1       	ldi	r19, 0x11	; 17
   29c48:	76 95       	lsr	r23
   29c4a:	67 95       	ror	r22
   29c4c:	57 95       	ror	r21
   29c4e:	47 95       	ror	r20
   29c50:	3a 95       	dec	r19
   29c52:	d1 f7       	brne	.-12     	; 0x29c48 <__vector_17+0x1374>
   29c54:	2a cf       	rjmp	.-428    	; 0x29aaa <__vector_17+0x11d6>
   29c56:	9f 01       	movw	r18, r30
   29c58:	ab ea       	ldi	r26, 0xAB	; 171
   29c5a:	ba ea       	ldi	r27, 0xAA	; 170
   29c5c:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   29c60:	21 e1       	ldi	r18, 0x11	; 17
   29c62:	96 95       	lsr	r25
   29c64:	87 95       	ror	r24
   29c66:	77 95       	ror	r23
   29c68:	67 95       	ror	r22
   29c6a:	2a 95       	dec	r18
   29c6c:	d1 f7       	brne	.-12     	; 0x29c62 <__vector_17+0x138e>
   29c6e:	27 cf       	rjmp	.-434    	; 0x29abe <__vector_17+0x11ea>
            uint16_t d_steps = current_adv_steps - target_adv_steps;
            if (d_steps < e_step_loops)
                e_step_loops = d_steps;
        }
        e_steps -= e_step_loops;
        if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   29c70:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   29c74:	8f 7b       	andi	r24, 0xBF	; 191
   29c76:	ac cf       	rjmp	.-168    	; 0x29bd0 <__vector_17+0x12fc>
        current_adv_steps -= e_step_loops;
    }
    else if (current_adv_steps < target_adv_steps) {
   29c78:	42 17       	cp	r20, r18
   29c7a:	53 07       	cpc	r21, r19
   29c7c:	08 f0       	brcs	.+2      	; 0x29c80 <__vector_17+0x13ac>
   29c7e:	b6 cf       	rjmp	.-148    	; 0x29bec <__vector_17+0x1318>
        // compression
        if (e_step_loops != 1) {
   29c80:	90 91 71 05 	lds	r25, 0x0571	; 0x800571 <e_step_loops>
   29c84:	91 30       	cpi	r25, 0x01	; 1
   29c86:	41 f0       	breq	.+16     	; 0x29c98 <__vector_17+0x13c4>
            uint16_t d_steps = target_adv_steps - current_adv_steps;
   29c88:	24 1b       	sub	r18, r20
   29c8a:	35 0b       	sbc	r19, r21
            if (d_steps < e_step_loops)
   29c8c:	92 17       	cp	r25, r18
   29c8e:	13 06       	cpc	r1, r19
   29c90:	19 f0       	breq	.+6      	; 0x29c98 <__vector_17+0x13c4>
   29c92:	10 f0       	brcs	.+4      	; 0x29c98 <__vector_17+0x13c4>
                e_step_loops = d_steps;
   29c94:	20 93 71 05 	sts	0x0571, r18	; 0x800571 <e_step_loops>
        }
        e_steps += e_step_loops;
   29c98:	90 91 71 05 	lds	r25, 0x0571	; 0x800571 <e_step_loops>
   29c9c:	89 0f       	add	r24, r25
   29c9e:	80 93 92 05 	sts	0x0592, r24	; 0x800592 <e_steps>
        if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   29ca2:	88 23       	and	r24, r24
   29ca4:	39 f0       	breq	.+14     	; 0x29cb4 <__vector_17+0x13e0>
   29ca6:	87 fd       	sbrc	r24, 7
   29ca8:	0f c0       	rjmp	.+30     	; 0x29cc8 <__vector_17+0x13f4>
   29caa:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   29cae:	80 64       	ori	r24, 0x40	; 64
   29cb0:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
        current_adv_steps += e_step_loops;
   29cb4:	80 91 71 05 	lds	r24, 0x0571	; 0x800571 <e_step_loops>
   29cb8:	20 91 df 04 	lds	r18, 0x04DF	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
   29cbc:	30 91 e0 04 	lds	r19, 0x04E0	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   29cc0:	82 0f       	add	r24, r18
   29cc2:	93 2f       	mov	r25, r19
   29cc4:	91 1d       	adc	r25, r1
   29cc6:	8e cf       	rjmp	.-228    	; 0x29be4 <__vector_17+0x1310>
            uint16_t d_steps = target_adv_steps - current_adv_steps;
            if (d_steps < e_step_loops)
                e_step_loops = d_steps;
        }
        e_steps += e_step_loops;
        if (e_steps) WRITE_NC(E0_DIR_PIN, e_steps < 0? INVERT_E0_DIR: !INVERT_E0_DIR);
   29cc8:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   29ccc:	8f 7b       	andi	r24, 0xBF	; 191
   29cce:	f0 cf       	rjmp	.-32     	; 0x29cb0 <__vector_17+0x13dc>
        // advance steps completed
        nextAdvanceISR = ADV_NEVER;
    }
    else {
        // schedule another tick
        nextAdvanceISR = eISR_Rate;
   29cd0:	80 91 6f 05 	lds	r24, 0x056F	; 0x80056f <eISR_Rate>
   29cd4:	90 91 70 05 	lds	r25, 0x0570	; 0x800570 <eISR_Rate+0x1>
   29cd8:	97 cf       	rjmp	.-210    	; 0x29c08 <__vector_17+0x1334>
        WRITE_NC(LOGIC_ANALYZER_CH1, false);
#endif
    }

    // Tick E steps if any
    if (e_steps && (LA_phase < 0 || LA_phase == eisr)) {
   29cda:	80 91 91 05 	lds	r24, 0x0591	; 0x800591 <LA_phase>
   29cde:	87 fd       	sbrc	r24, 7
   29ce0:	0e c0       	rjmp	.+28     	; 0x29cfe <__vector_17+0x142a>
   29ce2:	08 2e       	mov	r0, r24
   29ce4:	00 0c       	add	r0, r0
   29ce6:	99 0b       	sbc	r25, r25
        WRITE_NC(LOGIC_ANALYZER_CH0, false);
#endif
    }

    // Run the next advance isr if triggered
    bool eisr = !nextAdvanceISR;
   29ce8:	21 e0       	ldi	r18, 0x01	; 1
   29cea:	30 e0       	ldi	r19, 0x00	; 0
   29cec:	61 15       	cp	r22, r1
   29cee:	71 05       	cpc	r23, r1
   29cf0:	11 f0       	breq	.+4      	; 0x29cf6 <__vector_17+0x1422>
   29cf2:	30 e0       	ldi	r19, 0x00	; 0
   29cf4:	20 e0       	ldi	r18, 0x00	; 0
        WRITE_NC(LOGIC_ANALYZER_CH1, false);
#endif
    }

    // Tick E steps if any
    if (e_steps && (LA_phase < 0 || LA_phase == eisr)) {
   29cf6:	82 17       	cp	r24, r18
   29cf8:	93 07       	cpc	r25, r19
   29cfa:	09 f0       	breq	.+2      	; 0x29cfe <__vector_17+0x142a>
   29cfc:	8d cf       	rjmp	.-230    	; 0x29c18 <__vector_17+0x1344>
        uint8_t max_ticks = (eisr? e_step_loops: step_loops);
   29cfe:	20 91 71 05 	lds	r18, 0x0571	; 0x800571 <e_step_loops>
   29d02:	67 2b       	or	r22, r23
   29d04:	11 f0       	breq	.+4      	; 0x29d0a <__vector_17+0x1436>
   29d06:	20 91 99 05 	lds	r18, 0x0599	; 0x800599 <step_loops>
        max_ticks = min(abs(e_steps), max_ticks);
   29d0a:	84 2f       	mov	r24, r20
   29d0c:	04 2e       	mov	r0, r20
   29d0e:	00 0c       	add	r0, r0
   29d10:	99 0b       	sbc	r25, r25
   29d12:	97 ff       	sbrs	r25, 7
   29d14:	03 c0       	rjmp	.+6      	; 0x29d1c <__vector_17+0x1448>
   29d16:	91 95       	neg	r25
   29d18:	81 95       	neg	r24
   29d1a:	91 09       	sbc	r25, r1
   29d1c:	30 e0       	ldi	r19, 0x00	; 0
   29d1e:	28 17       	cp	r18, r24
   29d20:	39 07       	cpc	r19, r25
   29d22:	0c f4       	brge	.+2      	; 0x29d26 <__vector_17+0x1452>
   29d24:	c9 01       	movw	r24, r18
   29d26:	47 ff       	sbrs	r20, 7
   29d28:	17 c0       	rjmp	.+46     	; 0x29d58 <__vector_17+0x1484>
   29d2a:	61 e0       	ldi	r22, 0x01	; 1
   29d2c:	4f ef       	ldi	r20, 0xFF	; 255
   29d2e:	5f ef       	ldi	r21, 0xFF	; 255
        bool rev = (e_steps < 0);
        do
        {
            STEP_NC_HI(E_AXIS);
   29d30:	78 e0       	ldi	r23, 0x08	; 8
   29d32:	76 b9       	out	0x06, r23	; 6
            e_steps += (rev? 1: -1);
   29d34:	90 91 92 05 	lds	r25, 0x0592	; 0x800592 <e_steps>
   29d38:	96 0f       	add	r25, r22
   29d3a:	90 93 92 05 	sts	0x0592, r25	; 0x800592 <e_steps>

    void setJamDetectionEnabled(bool state, bool updateEEPROM = false);
    bool getJamDetectionEnabled() const { return jamDetection; }

    void stStep(bool rev) { //from stepper isr
        stepCount += rev ? -1 : 1;
   29d3e:	20 91 bb 17 	lds	r18, 0x17BB	; 0x8017bb <fsensor+0x11>
   29d42:	30 91 bc 17 	lds	r19, 0x17BC	; 0x8017bc <fsensor+0x12>
   29d46:	24 0f       	add	r18, r20
   29d48:	35 1f       	adc	r19, r21
   29d4a:	30 93 bc 17 	sts	0x17BC, r19	; 0x8017bc <fsensor+0x12>
   29d4e:	20 93 bb 17 	sts	0x17BB, r18	; 0x8017bb <fsensor+0x11>
            STEP_NC_LO(E_AXIS);
#if defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
            fsensor.stStep(rev);
#endif //defined(FILAMENT_SENSOR) && (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
        }
        while(--max_ticks);
   29d52:	81 50       	subi	r24, 0x01	; 1
   29d54:	71 f7       	brne	.-36     	; 0x29d32 <__vector_17+0x145e>
   29d56:	60 cf       	rjmp	.-320    	; 0x29c18 <__vector_17+0x1344>
   29d58:	6f ef       	ldi	r22, 0xFF	; 255
   29d5a:	41 e0       	ldi	r20, 0x01	; 1
   29d5c:	50 e0       	ldi	r21, 0x00	; 0
   29d5e:	e8 cf       	rjmp	.-48     	; 0x29d30 <__vector_17+0x145c>
    }

    // Schedule the next closest tick, ignoring advance if scheduled too
    // soon in order to avoid skewing the regular stepper acceleration
    if (nextAdvanceISR != ADV_NEVER && (nextAdvanceISR + 40) < nextMainISR)
   29d60:	ac 01       	movw	r20, r24
   29d62:	48 5d       	subi	r20, 0xD8	; 216
   29d64:	5f 4f       	sbci	r21, 0xFF	; 255
   29d66:	42 17       	cp	r20, r18
   29d68:	53 07       	cpc	r21, r19
   29d6a:	08 f0       	brcs	.+2      	; 0x29d6e <__vector_17+0x149a>
   29d6c:	61 cf       	rjmp	.-318    	; 0x29c30 <__vector_17+0x135c>
        OCR1A = nextAdvanceISR;
   29d6e:	90 93 89 00 	sts	0x0089, r25	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   29d72:	80 93 88 00 	sts	0x0088, r24	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
    isr();
#endif

  // Don't run the ISR faster than possible
  // Is there a 8us time left before the next interrupt triggers?
  if (OCR1A < TCNT1 + 16) {
   29d76:	20 91 88 00 	lds	r18, 0x0088	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
   29d7a:	30 91 89 00 	lds	r19, 0x0089	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   29d7e:	80 91 84 00 	lds	r24, 0x0084	; 0x800084 <__TEXT_REGION_LENGTH__+0x7c2084>
   29d82:	90 91 85 00 	lds	r25, 0x0085	; 0x800085 <__TEXT_REGION_LENGTH__+0x7c2085>
   29d86:	40 96       	adiw	r24, 0x10	; 16
   29d88:	28 17       	cp	r18, r24
   29d8a:	39 07       	cpc	r19, r25
   29d8c:	48 f4       	brcc	.+18     	; 0x29da0 <__vector_17+0x14cc>
      // Beep, the beeper will be cleared at the stepper_timer_overflow() called from the main thread.
      WRITE(BEEPER, HIGH);
    }
#endif
    // Fix the next interrupt to be executed after 8us from now.
    OCR1A = TCNT1 + 16;
   29d8e:	80 91 84 00 	lds	r24, 0x0084	; 0x800084 <__TEXT_REGION_LENGTH__+0x7c2084>
   29d92:	90 91 85 00 	lds	r25, 0x0085	; 0x800085 <__TEXT_REGION_LENGTH__+0x7c2085>
   29d96:	40 96       	adiw	r24, 0x10	; 16
   29d98:	90 93 89 00 	sts	0x0089, r25	; 0x800089 <__TEXT_REGION_LENGTH__+0x7c2089>
   29d9c:	80 93 88 00 	sts	0x0088, r24	; 0x800088 <__TEXT_REGION_LENGTH__+0x7c2088>
  }
}
   29da0:	ff 91       	pop	r31
   29da2:	ef 91       	pop	r30
   29da4:	df 91       	pop	r29
   29da6:	cf 91       	pop	r28
   29da8:	bf 91       	pop	r27
   29daa:	af 91       	pop	r26
   29dac:	9f 91       	pop	r25
   29dae:	8f 91       	pop	r24
   29db0:	7f 91       	pop	r23
   29db2:	6f 91       	pop	r22
   29db4:	5f 91       	pop	r21
   29db6:	4f 91       	pop	r20
   29db8:	3f 91       	pop	r19
   29dba:	2f 91       	pop	r18
   29dbc:	1f 91       	pop	r17
   29dbe:	0f 91       	pop	r16
   29dc0:	ff 90       	pop	r15
   29dc2:	ef 90       	pop	r14
   29dc4:	df 90       	pop	r13
   29dc6:	cf 90       	pop	r12
   29dc8:	8f 90       	pop	r8
   29dca:	7f 90       	pop	r7
   29dcc:	6f 90       	pop	r6
   29dce:	0f 90       	pop	r0
   29dd0:	0b be       	out	0x3b, r0	; 59
   29dd2:	0f 90       	pop	r0
   29dd4:	0f be       	out	0x3f, r0	; 63
   29dd6:	0f 90       	pop	r0
   29dd8:	1f 90       	pop	r1
   29dda:	18 95       	reti

00029ddc <enable_z_endstop(bool)>:
  return old;
}

bool enable_z_endstop(bool check)
{
	bool old = check_z_endstop;
   29ddc:	90 91 78 05 	lds	r25, 0x0578	; 0x800578 <check_z_endstop>
	check_z_endstop = check;
   29de0:	80 93 78 05 	sts	0x0578, r24	; 0x800578 <check_z_endstop>
CRITICAL_SECTION_START;
   29de4:	2f b7       	in	r18, 0x3f	; 63
   29de6:	f8 94       	cli
	endstop_hit &= ~_BV(Z_AXIS);
   29de8:	80 91 0b 05 	lds	r24, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
   29dec:	8b 7f       	andi	r24, 0xFB	; 251
   29dee:	80 93 0b 05 	sts	0x050B, r24	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
CRITICAL_SECTION_END;
   29df2:	2f bf       	out	0x3f, r18	; 63
	return old;
}
   29df4:	89 2f       	mov	r24, r25
   29df6:	08 95       	ret

00029df8 <endstop_z_hit_on_purpose()>:
  return old;
}

bool endstop_z_hit_on_purpose()
{
  bool hit = endstop_hit & _BV(Z_AXIS);
   29df8:	80 91 0b 05 	lds	r24, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
CRITICAL_SECTION_START;
   29dfc:	2f b7       	in	r18, 0x3f	; 63
   29dfe:	f8 94       	cli
  endstop_hit &= ~_BV(Z_AXIS);
   29e00:	90 91 0b 05 	lds	r25, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
   29e04:	9b 7f       	andi	r25, 0xFB	; 251
   29e06:	90 93 0b 05 	sts	0x050B, r25	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
CRITICAL_SECTION_END;
   29e0a:	2f bf       	out	0x3f, r18	; 63
  return hit;
}
   29e0c:	82 fb       	bst	r24, 2
   29e0e:	88 27       	eor	r24, r24
   29e10:	80 f9       	bld	r24, 0
   29e12:	08 95       	ret

00029e14 <endstops_hit_on_purpose()>:
 }
}

bool endstops_hit_on_purpose()
{
  uint8_t old = endstop_hit;
   29e14:	90 91 0b 05 	lds	r25, 0x050B	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
  endstop_hit = 0;
   29e18:	10 92 0b 05 	sts	0x050B, r1	; 0x80050b <_ZL11endstop_hit.lto_priv.482>
  return old;
   29e1c:	81 e0       	ldi	r24, 0x01	; 1
   29e1e:	91 11       	cpse	r25, r1
   29e20:	01 c0       	rjmp	.+2      	; 0x29e24 <endstops_hit_on_purpose()+0x10>
   29e22:	80 e0       	ldi	r24, 0x00	; 0
}
   29e24:	08 95       	ret

00029e26 <Sound_MakeSound(eSOUND_TYPE)>:
     }
}

void Sound_MakeSound(eSOUND_TYPE eSoundType)
{
switch(eSoundMode)
   29e26:	90 91 de 04 	lds	r25, 0x04DE	; 0x8004de <eSoundMode>
   29e2a:	91 30       	cpi	r25, 0x01	; 1
   29e2c:	a1 f0       	breq	.+40     	; 0x29e56 <Sound_MakeSound(eSOUND_TYPE)+0x30>
   29e2e:	28 f0       	brcs	.+10     	; 0x29e3a <Sound_MakeSound(eSOUND_TYPE)+0x14>
   29e30:	92 30       	cpi	r25, 0x02	; 2
   29e32:	a9 f0       	breq	.+42     	; 0x29e5e <Sound_MakeSound(eSOUND_TYPE)+0x38>
   29e34:	93 30       	cpi	r25, 0x03	; 3
   29e36:	c1 f0       	breq	.+48     	; 0x29e68 <Sound_MakeSound(eSOUND_TYPE)+0x42>
   29e38:	08 95       	ret
     {
     case e_SOUND_MODE_LOUD:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
   29e3a:	81 11       	cpse	r24, r1
   29e3c:	02 c0       	rjmp	.+4      	; 0x29e42 <Sound_MakeSound(eSOUND_TYPE)+0x1c>
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
               Sound_DoSound_Alert(true);
          break;
     case e_SOUND_MODE_BLIND:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
               Sound_DoSound_Echo();
   29e3e:	0d 94 89 15 	jmp	0x22b12	; 0x22b12 <Sound_DoSound_Echo()>
switch(eSoundMode)
     {
     case e_SOUND_MODE_LOUD:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
               Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
   29e42:	82 30       	cpi	r24, 0x02	; 2
   29e44:	11 f4       	brne	.+4      	; 0x29e4a <Sound_MakeSound(eSOUND_TYPE)+0x24>
          break;
     case e_SOUND_MODE_BLIND:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
               Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
               Sound_DoSound_Prompt();
   29e46:	0d 94 7b 20 	jmp	0x240f6	; 0x240f6 <Sound_DoSound_Prompt()>
     case e_SOUND_MODE_LOUD:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
               Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
   29e4a:	85 30       	cpi	r24, 0x05	; 5
   29e4c:	09 f0       	breq	.+2      	; 0x29e50 <Sound_MakeSound(eSOUND_TYPE)+0x2a>
   29e4e:	50 c0       	rjmp	.+160    	; 0x29ef0 <Sound_MakeSound(eSOUND_TYPE)+0xca>
               Sound_DoSound_Alert(false);
   29e50:	80 e0       	ldi	r24, 0x00	; 0
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
              Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
               Sound_DoSound_Alert(true);
   29e52:	0d 94 67 15 	jmp	0x22ace	; 0x22ace <Sound_DoSound_Alert(bool)>
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
               Sound_DoSound_Alert(false);
          break;
     case e_SOUND_MODE_ONCE:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
   29e56:	88 23       	and	r24, r24
   29e58:	91 f3       	breq	.-28     	; 0x29e3e <Sound_MakeSound(eSOUND_TYPE)+0x18>
              Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
   29e5a:	82 30       	cpi	r24, 0x02	; 2
   29e5c:	a1 f3       	breq	.-24     	; 0x29e46 <Sound_MakeSound(eSOUND_TYPE)+0x20>
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
   29e5e:	85 30       	cpi	r24, 0x05	; 5
   29e60:	09 f0       	breq	.+2      	; 0x29e64 <Sound_MakeSound(eSOUND_TYPE)+0x3e>
   29e62:	46 c0       	rjmp	.+140    	; 0x29ef0 <Sound_MakeSound(eSOUND_TYPE)+0xca>
               Sound_DoSound_Alert(true);
   29e64:	81 e0       	ldi	r24, 0x01	; 1
   29e66:	f5 cf       	rjmp	.-22     	; 0x29e52 <Sound_MakeSound(eSOUND_TYPE)+0x2c>
     case e_SOUND_MODE_SILENT:
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
               Sound_DoSound_Alert(true);
          break;
     case e_SOUND_MODE_BLIND:
          if(eSoundType==e_SOUND_TYPE_ButtonEcho)
   29e68:	88 23       	and	r24, r24
   29e6a:	49 f3       	breq	.-46     	; 0x29e3e <Sound_MakeSound(eSOUND_TYPE)+0x18>
               Sound_DoSound_Echo();
          if(eSoundType==e_SOUND_TYPE_StandardPrompt)
   29e6c:	82 30       	cpi	r24, 0x02	; 2
   29e6e:	59 f3       	breq	.-42     	; 0x29e46 <Sound_MakeSound(eSOUND_TYPE)+0x20>
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
   29e70:	85 30       	cpi	r24, 0x05	; 5
   29e72:	71 f3       	breq	.-36     	; 0x29e50 <Sound_MakeSound(eSOUND_TYPE)+0x2a>
               Sound_DoSound_Alert(false);
          if(eSoundType==e_SOUND_TYPE_EncoderMove)
   29e74:	86 30       	cpi	r24, 0x06	; 6
   29e76:	e1 f4       	brne	.+56     	; 0x29eb0 <Sound_MakeSound(eSOUND_TYPE)+0x8a>
   29e78:	85 e0       	ldi	r24, 0x05	; 5
   29e7a:	27 e2       	ldi	r18, 0x27	; 39
   29e7c:	31 e0       	ldi	r19, 0x01	; 1
{
uint8_t nI;

 for(nI=0;nI<5;nI++)
     {
     WRITE(BEEPER,HIGH);
   29e7e:	4f b7       	in	r20, 0x3f	; 63
   29e80:	f8 94       	cli
   29e82:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29e86:	94 60       	ori	r25, 0x04	; 4
   29e88:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29e8c:	4f bf       	out	0x3f, r20	; 63
   29e8e:	f9 01       	movw	r30, r18
   29e90:	31 97       	sbiw	r30, 0x01	; 1
   29e92:	f1 f7       	brne	.-4      	; 0x29e90 <Sound_MakeSound(eSOUND_TYPE)+0x6a>
     delayMicroseconds(75);
     WRITE(BEEPER,LOW);
   29e94:	4f b7       	in	r20, 0x3f	; 63
   29e96:	f8 94       	cli
   29e98:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29e9c:	9b 7f       	andi	r25, 0xFB	; 251
   29e9e:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29ea2:	4f bf       	out	0x3f, r20	; 63
   29ea4:	f9 01       	movw	r30, r18
   29ea6:	31 97       	sbiw	r30, 0x01	; 1
   29ea8:	f1 f7       	brne	.-4      	; 0x29ea6 <Sound_MakeSound(eSOUND_TYPE)+0x80>
   29eaa:	81 50       	subi	r24, 0x01	; 1

 static void Sound_DoSound_Encoder_Move(void)
{
uint8_t nI;

 for(nI=0;nI<5;nI++)
   29eac:	41 f7       	brne	.-48     	; 0x29e7e <Sound_MakeSound(eSOUND_TYPE)+0x58>
   29eae:	08 95       	ret
               Sound_DoSound_Prompt();
          if(eSoundType==e_SOUND_TYPE_StandardAlert)
               Sound_DoSound_Alert(false);
          if(eSoundType==e_SOUND_TYPE_EncoderMove)
               Sound_DoSound_Encoder_Move();
          if(eSoundType==e_SOUND_TYPE_BlindAlert)
   29eb0:	87 30       	cpi	r24, 0x07	; 7
   29eb2:	f1 f4       	brne	.+60     	; 0x29ef0 <Sound_MakeSound(eSOUND_TYPE)+0xca>
     }
}

static void Sound_DoSound_Blind_Alert(void)
{
    backlight_wake(1);
   29eb4:	81 e0       	ldi	r24, 0x01	; 1
   29eb6:	0e 94 fc 89 	call	0x113f8	; 0x113f8 <backlight_wake(unsigned char)>
   29eba:	84 e1       	ldi	r24, 0x14	; 20
   29ebc:	23 e7       	ldi	r18, 0x73	; 115
   29ebe:	31 e0       	ldi	r19, 0x01	; 1
     uint8_t nI;

     for(nI=0; nI<20; nI++)
     {
         WRITE(BEEPER,HIGH);
   29ec0:	4f b7       	in	r20, 0x3f	; 63
   29ec2:	f8 94       	cli
   29ec4:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29ec8:	94 60       	ori	r25, 0x04	; 4
   29eca:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29ece:	4f bf       	out	0x3f, r20	; 63
   29ed0:	f9 01       	movw	r30, r18
   29ed2:	31 97       	sbiw	r30, 0x01	; 1
   29ed4:	f1 f7       	brne	.-4      	; 0x29ed2 <Sound_MakeSound(eSOUND_TYPE)+0xac>
         delayMicroseconds(94);
         WRITE(BEEPER,LOW);
   29ed6:	4f b7       	in	r20, 0x3f	; 63
   29ed8:	f8 94       	cli
   29eda:	90 91 02 01 	lds	r25, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29ede:	9b 7f       	andi	r25, 0xFB	; 251
   29ee0:	90 93 02 01 	sts	0x0102, r25	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   29ee4:	4f bf       	out	0x3f, r20	; 63
   29ee6:	f9 01       	movw	r30, r18
   29ee8:	31 97       	sbiw	r30, 0x01	; 1
   29eea:	f1 f7       	brne	.-4      	; 0x29ee8 <Sound_MakeSound(eSOUND_TYPE)+0xc2>
   29eec:	81 50       	subi	r24, 0x01	; 1
static void Sound_DoSound_Blind_Alert(void)
{
    backlight_wake(1);
     uint8_t nI;

     for(nI=0; nI<20; nI++)
   29eee:	41 f7       	brne	.-48     	; 0x29ec0 <Sound_MakeSound(eSOUND_TYPE)+0x9a>
               Sound_DoSound_Blind_Alert();
          break;
     default:
          break;
     }
}
   29ef0:	08 95       	ret

00029ef2 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)>:
//! @retval 0xFF button timeout (only possible if allow_timeouting is true)
uint8_t lcd_show_multiscreen_message_with_choices_and_wait_P(
    const char *const msg, bool allow_timeouting, uint8_t default_selection,
    const char *const first_choice, const char *const second_choice, const char *const third_choice,
    uint8_t second_col
) {
   29ef2:	2f 92       	push	r2
   29ef4:	3f 92       	push	r3
   29ef6:	4f 92       	push	r4
   29ef8:	5f 92       	push	r5
   29efa:	6f 92       	push	r6
   29efc:	7f 92       	push	r7
   29efe:	8f 92       	push	r8
   29f00:	9f 92       	push	r9
   29f02:	af 92       	push	r10
   29f04:	bf 92       	push	r11
   29f06:	cf 92       	push	r12
   29f08:	df 92       	push	r13
   29f0a:	ef 92       	push	r14
   29f0c:	ff 92       	push	r15
   29f0e:	0f 93       	push	r16
   29f10:	1f 93       	push	r17
   29f12:	cf 93       	push	r28
   29f14:	df 93       	push	r29
   29f16:	00 d0       	rcall	.+0      	; 0x29f18 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x26>
   29f18:	00 d0       	rcall	.+0      	; 0x29f1a <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x28>
   29f1a:	cd b7       	in	r28, 0x3d	; 61
   29f1c:	de b7       	in	r29, 0x3e	; 62
   29f1e:	5c 01       	movw	r10, r24
   29f20:	6c 83       	std	Y+4, r22	; 0x04
   29f22:	34 2e       	mov	r3, r20
   29f24:	3b 83       	std	Y+3, r19	; 0x03
   29f26:	2a 83       	std	Y+2, r18	; 0x02
   29f28:	48 01       	movw	r8, r16
   29f2a:	2c 2c       	mov	r2, r12
    const char *msg_next = msg ? lcd_display_message_fullscreen_P(msg) : NULL;
   29f2c:	00 97       	sbiw	r24, 0x00	; 0
   29f2e:	09 f0       	breq	.+2      	; 0x29f32 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x40>
   29f30:	51 c0       	rjmp	.+162    	; 0x29fd4 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0xe2>
    bool multi_screen = msg_next != NULL;

    // Initial status/prompt on single-screen messages
    uint8_t current_selection = default_selection;
    if (!msg_next) {
        lcd_show_choices_prompt_P(current_selection, first_choice, second_choice, second_col, third_choice);
   29f32:	87 01       	movw	r16, r14
   29f34:	22 2d       	mov	r18, r2
   29f36:	a4 01       	movw	r20, r8
   29f38:	6a 81       	ldd	r22, Y+2	; 0x02
   29f3a:	7b 81       	ldd	r23, Y+3	; 0x03
   29f3c:	83 2d       	mov	r24, r3
   29f3e:	0f 94 9f 20 	call	0x2413e	; 0x2413e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)>
   29f42:	d1 2c       	mov	r13, r1
   29f44:	c1 2c       	mov	r12, r1
    }
    // Wait for user confirmation or a timeout.
    unsigned long previous_millis_cmd = _millis();
   29f46:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   29f4a:	2b 01       	movw	r4, r22
   29f4c:	3c 01       	movw	r6, r24
    lcd_consume_click();
   29f4e:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
    KEEPALIVE_STATE(PAUSED_FOR_USER);
   29f52:	84 e0       	ldi	r24, 0x04	; 4
   29f54:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
   29f58:	de 82       	std	Y+6, r13	; 0x06
   29f5a:	cd 82       	std	Y+5, r12	; 0x05
   29f5c:	24 e6       	ldi	r18, 0x64	; 100
   29f5e:	29 83       	std	Y+1, r18	; 0x01
    for (;;) {
        for (uint8_t i = 0; i < 100; ++i) {
            delay_keep_alive(50);
   29f60:	82 e3       	ldi	r24, 0x32	; 50
   29f62:	90 e0       	ldi	r25, 0x00	; 0
   29f64:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
            if (allow_timeouting && _millis() - previous_millis_cmd > LCD_TIMEOUT_TO_STATUS) {
   29f68:	3c 81       	ldd	r19, Y+4	; 0x04
   29f6a:	31 11       	cpse	r19, r1
   29f6c:	3a c0       	rjmp	.+116    	; 0x29fe2 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0xf0>
                current_selection = LCD_BUTTON_TIMEOUT;
                goto exit;
            }
            if (lcd_encoder) {
   29f6e:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   29f72:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   29f76:	00 97       	sbiw	r24, 0x00	; 0
   29f78:	09 f0       	breq	.+2      	; 0x29f7c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x8a>
   29f7a:	42 c0       	rjmp	.+132    	; 0x2a000 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x10e>
                } else {
                    Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
                    break; // turning knob skips waiting loop
                }
            }
            if (lcd_clicked()) {
   29f7c:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   29f80:	88 23       	and	r24, r24
   29f82:	09 f4       	brne	.+2      	; 0x29f86 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x94>
   29f84:	67 c0       	rjmp	.+206    	; 0x2a054 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x162>
                if (msg_next == NULL) {
   29f86:	8d 81       	ldd	r24, Y+5	; 0x05
   29f88:	9e 81       	ldd	r25, Y+6	; 0x06
   29f8a:	89 2b       	or	r24, r25
   29f8c:	09 f0       	breq	.+2      	; 0x29f90 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x9e>
   29f8e:	5e c0       	rjmp	.+188    	; 0x2a04c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x15a>
        if (msg_next == NULL) {
            lcd_show_choices_prompt_P(current_selection, first_choice, second_choice, second_col, third_choice);
        }
    }
exit:
    KEEPALIVE_STATE(IN_HANDLER);
   29f90:	82 e0       	ldi	r24, 0x02	; 2
   29f92:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
    // Enable LCD updates again. We may not call lcd_update_enable(true)
    // because it may create a recursion scenario when the caller of lcd_show_multiscreen_message_with_choices_and_wait_P
    // is a submenu lcd_update_enable(true) will cause another call to the submenu immediately
    // and so won't allow the user to exit the submenu
    lcd_update_enabled = true;
   29f96:	91 e0       	ldi	r25, 0x01	; 1
   29f98:	90 93 6e 02 	sts	0x026E, r25	; 0x80026e <lcd_update_enabled>
    lcd_draw_update = 2;
   29f9c:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
    return current_selection;
}
   29fa0:	83 2d       	mov	r24, r3
   29fa2:	26 96       	adiw	r28, 0x06	; 6
   29fa4:	0f b6       	in	r0, 0x3f	; 63
   29fa6:	f8 94       	cli
   29fa8:	de bf       	out	0x3e, r29	; 62
   29faa:	0f be       	out	0x3f, r0	; 63
   29fac:	cd bf       	out	0x3d, r28	; 61
   29fae:	df 91       	pop	r29
   29fb0:	cf 91       	pop	r28
   29fb2:	1f 91       	pop	r17
   29fb4:	0f 91       	pop	r16
   29fb6:	ff 90       	pop	r15
   29fb8:	ef 90       	pop	r14
   29fba:	df 90       	pop	r13
   29fbc:	cf 90       	pop	r12
   29fbe:	bf 90       	pop	r11
   29fc0:	af 90       	pop	r10
   29fc2:	9f 90       	pop	r9
   29fc4:	8f 90       	pop	r8
   29fc6:	7f 90       	pop	r7
   29fc8:	6f 90       	pop	r6
   29fca:	5f 90       	pop	r5
   29fcc:	4f 90       	pop	r4
   29fce:	3f 90       	pop	r3
   29fd0:	2f 90       	pop	r2
   29fd2:	08 95       	ret
uint8_t lcd_show_multiscreen_message_with_choices_and_wait_P(
    const char *const msg, bool allow_timeouting, uint8_t default_selection,
    const char *const first_choice, const char *const second_choice, const char *const third_choice,
    uint8_t second_col
) {
    const char *msg_next = msg ? lcd_display_message_fullscreen_P(msg) : NULL;
   29fd4:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
   29fd8:	6c 01       	movw	r12, r24
    bool multi_screen = msg_next != NULL;

    // Initial status/prompt on single-screen messages
    uint8_t current_selection = default_selection;
    if (!msg_next) {
   29fda:	89 2b       	or	r24, r25
   29fdc:	09 f0       	breq	.+2      	; 0x29fe0 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0xee>
   29fde:	b3 cf       	rjmp	.-154    	; 0x29f46 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x54>
   29fe0:	a8 cf       	rjmp	.-176    	; 0x29f32 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x40>
    lcd_consume_click();
    KEEPALIVE_STATE(PAUSED_FOR_USER);
    for (;;) {
        for (uint8_t i = 0; i < 100; ++i) {
            delay_keep_alive(50);
            if (allow_timeouting && _millis() - previous_millis_cmd > LCD_TIMEOUT_TO_STATUS) {
   29fe2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   29fe6:	64 19       	sub	r22, r4
   29fe8:	75 09       	sbc	r23, r5
   29fea:	86 09       	sbc	r24, r6
   29fec:	97 09       	sbc	r25, r7
   29fee:	61 33       	cpi	r22, 0x31	; 49
   29ff0:	75 47       	sbci	r23, 0x75	; 117
   29ff2:	81 05       	cpc	r24, r1
   29ff4:	91 05       	cpc	r25, r1
   29ff6:	08 f4       	brcc	.+2      	; 0x29ffa <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x108>
   29ff8:	ba cf       	rjmp	.-140    	; 0x29f6e <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x7c>
                current_selection = LCD_BUTTON_TIMEOUT;
   29ffa:	33 24       	eor	r3, r3
   29ffc:	3a 94       	dec	r3
   29ffe:	c8 cf       	rjmp	.-112    	; 0x29f90 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x9e>
                goto exit;
            }
            if (lcd_encoder) {
                if (msg_next == NULL) {
   2a000:	2d 81       	ldd	r18, Y+5	; 0x05
   2a002:	3e 81       	ldd	r19, Y+6	; 0x06
   2a004:	23 2b       	or	r18, r19
   2a006:	f9 f4       	brne	.+62     	; 0x2a046 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x154>
                    if (third_choice) { // third_choice is not nullptr, safe to dereference
   2a008:	e1 14       	cp	r14, r1
   2a00a:	f1 04       	cpc	r15, r1
   2a00c:	b1 f0       	breq	.+44     	; 0x2a03a <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x148>
                        if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
   2a00e:	97 ff       	sbrs	r25, 7
   2a010:	0f c0       	rjmp	.+30     	; 0x2a030 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x13e>
   2a012:	31 10       	cpse	r3, r1
                            // Rotating knob counter clockwise
                            current_selection--;
   2a014:	3a 94       	dec	r3
                        } else if (lcd_encoder > 0 && current_selection != LCD_MIDDLE_BUTTON_CHOICE) {
                            // Rotating knob clockwise
                            current_selection = LCD_MIDDLE_BUTTON_CHOICE;
                        }
                    }
                    lcd_show_choices_prompt_P(current_selection, first_choice, second_choice, second_col, third_choice);
   2a016:	87 01       	movw	r16, r14
   2a018:	22 2d       	mov	r18, r2
   2a01a:	a4 01       	movw	r20, r8
   2a01c:	6a 81       	ldd	r22, Y+2	; 0x02
   2a01e:	7b 81       	ldd	r23, Y+3	; 0x03
   2a020:	83 2d       	mov	r24, r3
   2a022:	0f 94 9f 20 	call	0x2413e	; 0x2413e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)>
                    lcd_encoder = 0;
   2a026:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   2a02a:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
   2a02e:	a6 cf       	rjmp	.-180    	; 0x29f7c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x8a>
                if (msg_next == NULL) {
                    if (third_choice) { // third_choice is not nullptr, safe to dereference
                        if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
                            // Rotating knob counter clockwise
                            current_selection--;
                        } else if (lcd_encoder > 0 && current_selection != LCD_RIGHT_BUTTON_CHOICE) {
   2a030:	32 e0       	ldi	r19, 0x02	; 2
   2a032:	33 16       	cp	r3, r19
   2a034:	81 f3       	breq	.-32     	; 0x2a016 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x124>
                            // Rotating knob clockwise
                            current_selection++;
   2a036:	33 94       	inc	r3
   2a038:	ee cf       	rjmp	.-36     	; 0x2a016 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x124>
                        }
                    } else {
                        if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
   2a03a:	39 2e       	mov	r3, r25
   2a03c:	30 94       	com	r3
   2a03e:	33 1c       	adc	r3, r3
   2a040:	33 24       	eor	r3, r3
   2a042:	33 1c       	adc	r3, r3
   2a044:	e8 cf       	rjmp	.-48     	; 0x2a016 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x124>
                        }
                    }
                    lcd_show_choices_prompt_P(current_selection, first_choice, second_choice, second_col, third_choice);
                    lcd_encoder = 0;
                } else {
                    Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   2a046:	87 e0       	ldi	r24, 0x07	; 7
   2a048:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
                    goto exit;
                } else
                    break;
            }
        }
        if (multi_screen) {
   2a04c:	c1 14       	cp	r12, r1
   2a04e:	d1 04       	cpc	r13, r1
   2a050:	79 f4       	brne	.+30     	; 0x2a070 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x17e>
   2a052:	84 cf       	rjmp	.-248    	; 0x29f5c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x6a>
   2a054:	99 81       	ldd	r25, Y+1	; 0x01
   2a056:	91 50       	subi	r25, 0x01	; 1
   2a058:	99 83       	std	Y+1, r25	; 0x01
    // Wait for user confirmation or a timeout.
    unsigned long previous_millis_cmd = _millis();
    lcd_consume_click();
    KEEPALIVE_STATE(PAUSED_FOR_USER);
    for (;;) {
        for (uint8_t i = 0; i < 100; ++i) {
   2a05a:	91 11       	cpse	r25, r1
   2a05c:	81 cf       	rjmp	.-254    	; 0x29f60 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x6e>
                    goto exit;
                } else
                    break;
            }
        }
        if (multi_screen) {
   2a05e:	c1 14       	cp	r12, r1
   2a060:	d1 04       	cpc	r13, r1
   2a062:	61 f0       	breq	.+24     	; 0x2a07c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x18a>
            if (msg_next == NULL) {
   2a064:	2d 81       	ldd	r18, Y+5	; 0x05
   2a066:	3e 81       	ldd	r19, Y+6	; 0x06
   2a068:	23 2b       	or	r18, r19
   2a06a:	11 f4       	brne	.+4      	; 0x2a070 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x17e>
   2a06c:	be 82       	std	Y+6, r11	; 0x06
   2a06e:	ad 82       	std	Y+5, r10	; 0x05
                msg_next = msg;
            }
            msg_next = lcd_display_message_fullscreen_P(msg_next);
   2a070:	8d 81       	ldd	r24, Y+5	; 0x05
   2a072:	9e 81       	ldd	r25, Y+6	; 0x06
   2a074:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
   2a078:	9e 83       	std	Y+6, r25	; 0x06
   2a07a:	8d 83       	std	Y+5, r24	; 0x05
        }
        if (msg_next == NULL) {
   2a07c:	8d 81       	ldd	r24, Y+5	; 0x05
   2a07e:	9e 81       	ldd	r25, Y+6	; 0x06
   2a080:	89 2b       	or	r24, r25
   2a082:	09 f0       	breq	.+2      	; 0x2a086 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x194>
   2a084:	6b cf       	rjmp	.-298    	; 0x29f5c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x6a>
            lcd_show_choices_prompt_P(current_selection, first_choice, second_choice, second_col, third_choice);
   2a086:	87 01       	movw	r16, r14
   2a088:	22 2d       	mov	r18, r2
   2a08a:	a4 01       	movw	r20, r8
   2a08c:	6a 81       	ldd	r22, Y+2	; 0x02
   2a08e:	7b 81       	ldd	r23, Y+3	; 0x03
   2a090:	83 2d       	mov	r24, r3
   2a092:	0f 94 9f 20 	call	0x2413e	; 0x2413e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)>
   2a096:	62 cf       	rjmp	.-316    	; 0x29f5c <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)+0x6a>

0002a098 <lcd_show_multiscreen_message_cont_cancel_and_wait_P(char const*, bool, unsigned char)>:
//! @param default_selection if 0, 'Yes' choice is selected by default, otherwise 'No' choice is preselected
//! @retval 0 cont choice selected by user
//! @retval 1 cancel choice selected by user
//! @retval 0xFF button timeout (only possible if allow_timeouting is true)
uint8_t lcd_show_multiscreen_message_cont_cancel_and_wait_P(const char *msg, bool allow_timeouting, uint8_t default_selection) //currently just max. n*4 + 3 lines supported (set in language header files)
{
   2a098:	bf 92       	push	r11
   2a09a:	cf 92       	push	r12
   2a09c:	df 92       	push	r13
   2a09e:	ef 92       	push	r14
   2a0a0:	ff 92       	push	r15
   2a0a2:	0f 93       	push	r16
   2a0a4:	1f 93       	push	r17
   2a0a6:	cf 93       	push	r28
   2a0a8:	df 93       	push	r29
   2a0aa:	ec 01       	movw	r28, r24
   2a0ac:	d6 2e       	mov	r13, r22
   2a0ae:	b4 2e       	mov	r11, r20
    return lcd_show_multiscreen_message_with_choices_and_wait_P(msg, allow_timeouting, default_selection, _T(MSG_CONTINUE_SHORT), _T(MSG_CANCEL), nullptr, 10);
   2a0b0:	8f e6       	ldi	r24, 0x6F	; 111
   2a0b2:	9b e3       	ldi	r25, 0x3B	; 59
   2a0b4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a0b8:	8c 01       	movw	r16, r24
   2a0ba:	80 e3       	ldi	r24, 0x30	; 48
   2a0bc:	93 e4       	ldi	r25, 0x43	; 67
   2a0be:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a0c2:	2a e0       	ldi	r18, 0x0A	; 10
   2a0c4:	c2 2e       	mov	r12, r18
   2a0c6:	f1 2c       	mov	r15, r1
   2a0c8:	e1 2c       	mov	r14, r1
   2a0ca:	9c 01       	movw	r18, r24
   2a0cc:	4b 2d       	mov	r20, r11
   2a0ce:	6d 2d       	mov	r22, r13
   2a0d0:	ce 01       	movw	r24, r28
   2a0d2:	0f 94 79 4f 	call	0x29ef2	; 0x29ef2 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)>
}
   2a0d6:	df 91       	pop	r29
   2a0d8:	cf 91       	pop	r28
   2a0da:	1f 91       	pop	r17
   2a0dc:	0f 91       	pop	r16
   2a0de:	ff 90       	pop	r15
   2a0e0:	ef 90       	pop	r14
   2a0e2:	df 90       	pop	r13
   2a0e4:	cf 90       	pop	r12
   2a0e6:	bf 90       	pop	r11
   2a0e8:	08 95       	ret

0002a0ea <lcd_show_multiscreen_message_yes_no_and_wait_P(char const*, bool, unsigned char)>:
//! @param default_selection if 0, 'Yes' choice is selected by default, otherwise 'No' choice is preselected
//! @retval 0 yes choice selected by user
//! @retval 1 no choice selected by user
//! @retval 0xFF button timeout (only possible if allow_timeouting is true)
uint8_t lcd_show_multiscreen_message_yes_no_and_wait_P(const char *msg, bool allow_timeouting, uint8_t default_selection) //currently just max. n*4 + 3 lines supported (set in language header files)
{
   2a0ea:	bf 92       	push	r11
   2a0ec:	cf 92       	push	r12
   2a0ee:	df 92       	push	r13
   2a0f0:	ef 92       	push	r14
   2a0f2:	ff 92       	push	r15
   2a0f4:	0f 93       	push	r16
   2a0f6:	1f 93       	push	r17
   2a0f8:	cf 93       	push	r28
   2a0fa:	df 93       	push	r29
   2a0fc:	ec 01       	movw	r28, r24
   2a0fe:	d6 2e       	mov	r13, r22
   2a100:	b4 2e       	mov	r11, r20
    return lcd_show_multiscreen_message_with_choices_and_wait_P(msg, allow_timeouting, default_selection, _T(MSG_YES), _T(MSG_NO), nullptr, 10);
   2a102:	8b ef       	ldi	r24, 0xFB	; 251
   2a104:	97 e4       	ldi	r25, 0x47	; 71
   2a106:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a10a:	8c 01       	movw	r16, r24
   2a10c:	85 ef       	ldi	r24, 0xF5	; 245
   2a10e:	97 e4       	ldi	r25, 0x47	; 71
   2a110:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a114:	2a e0       	ldi	r18, 0x0A	; 10
   2a116:	c2 2e       	mov	r12, r18
   2a118:	f1 2c       	mov	r15, r1
   2a11a:	e1 2c       	mov	r14, r1
   2a11c:	9c 01       	movw	r18, r24
   2a11e:	4b 2d       	mov	r20, r11
   2a120:	6d 2d       	mov	r22, r13
   2a122:	ce 01       	movw	r24, r28
   2a124:	0f 94 79 4f 	call	0x29ef2	; 0x29ef2 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)>
}
   2a128:	df 91       	pop	r29
   2a12a:	cf 91       	pop	r28
   2a12c:	1f 91       	pop	r17
   2a12e:	0f 91       	pop	r16
   2a130:	ff 90       	pop	r15
   2a132:	ef 90       	pop	r14
   2a134:	df 90       	pop	r13
   2a136:	cf 90       	pop	r12
   2a138:	bf 90       	pop	r11
   2a13a:	08 95       	ret

0002a13c <lcd_load_filament_color_check()>:
    _delay(2000);
    lcd_clear();
}

void lcd_load_filament_color_check()
{
   2a13c:	cf 92       	push	r12
   2a13e:	ef 92       	push	r14
   2a140:	ff 92       	push	r15
   2a142:	0f 93       	push	r16
   2a144:	1f 93       	push	r17
   2a146:	cf 93       	push	r28
   2a148:	df 93       	push	r29
    // >Ja >Nein >Auswerfen
    // Hungarian
    // 01234567890123456789
    // >Igen >Nem   >Kiadás

    uint8_t clean = lcd_show_multiscreen_message_with_choices_and_wait_P(_T(MSG_FILAMENT_CLEAN), false, LCD_LEFT_BUTTON_CHOICE, _T(MSG_YES), _T(MSG_NO), _T(MSG_EJECT), strlen_P(_T(MSG_YES))+2);
   2a14a:	85 ef       	ldi	r24, 0xF5	; 245
   2a14c:	97 e4       	ldi	r25, 0x47	; 71
   2a14e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a152:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
   2a156:	c8 2e       	mov	r12, r24
   2a158:	88 e7       	ldi	r24, 0x78	; 120
   2a15a:	9f e4       	ldi	r25, 0x4F	; 79
   2a15c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a160:	7c 01       	movw	r14, r24
   2a162:	8b ef       	ldi	r24, 0xFB	; 251
   2a164:	97 e4       	ldi	r25, 0x47	; 71
   2a166:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a16a:	8c 01       	movw	r16, r24
   2a16c:	85 ef       	ldi	r24, 0xF5	; 245
   2a16e:	97 e4       	ldi	r25, 0x47	; 71
   2a170:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a174:	ec 01       	movw	r28, r24
   2a176:	8d e4       	ldi	r24, 0x4D	; 77
   2a178:	9f e4       	ldi	r25, 0x4F	; 79
   2a17a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a17e:	c3 94       	inc	r12
   2a180:	c3 94       	inc	r12
   2a182:	9e 01       	movw	r18, r28
   2a184:	40 e0       	ldi	r20, 0x00	; 0
   2a186:	60 e0       	ldi	r22, 0x00	; 0
   2a188:	0f 94 79 4f 	call	0x29ef2	; 0x29ef2 <lcd_show_multiscreen_message_with_choices_and_wait_P(char const*, bool, unsigned char, char const*, char const*, char const*, unsigned char)>
    while (clean == LCD_MIDDLE_BUTTON_CHOICE) {
   2a18c:	81 30       	cpi	r24, 0x01	; 1
   2a18e:	29 f4       	brne	.+10     	; 0x2a19a <lcd_load_filament_color_check()+0x5e>
        load_filament_final_feed();
   2a190:	0e 94 1a 64 	call	0xc834	; 0xc834 <load_filament_final_feed()>
        st_synchronize();
   2a194:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   2a198:	d8 cf       	rjmp	.-80     	; 0x2a14a <lcd_load_filament_color_check()+0xe>
        clean = lcd_show_multiscreen_message_with_choices_and_wait_P(_T(MSG_FILAMENT_CLEAN), false, LCD_LEFT_BUTTON_CHOICE, _T(MSG_YES), _T(MSG_NO), _T(MSG_EJECT), strlen_P(_T(MSG_YES))+2);
    }
    if (clean == LCD_RIGHT_BUTTON_CHOICE) {
   2a19a:	82 30       	cpi	r24, 0x02	; 2
   2a19c:	61 f4       	brne	.+24     	; 0x2a1b6 <lcd_load_filament_color_check()+0x7a>
        unload_filament(FILAMENTCHANGE_FINALRETRACT);
   2a19e:	60 e0       	ldi	r22, 0x00	; 0
   2a1a0:	70 e0       	ldi	r23, 0x00	; 0
   2a1a2:	cb 01       	movw	r24, r22
    }
}
   2a1a4:	df 91       	pop	r29
   2a1a6:	cf 91       	pop	r28
   2a1a8:	1f 91       	pop	r17
   2a1aa:	0f 91       	pop	r16
   2a1ac:	ff 90       	pop	r15
   2a1ae:	ef 90       	pop	r14
   2a1b0:	cf 90       	pop	r12
        load_filament_final_feed();
        st_synchronize();
        clean = lcd_show_multiscreen_message_with_choices_and_wait_P(_T(MSG_FILAMENT_CLEAN), false, LCD_LEFT_BUTTON_CHOICE, _T(MSG_YES), _T(MSG_NO), _T(MSG_EJECT), strlen_P(_T(MSG_YES))+2);
    }
    if (clean == LCD_RIGHT_BUTTON_CHOICE) {
        unload_filament(FILAMENTCHANGE_FINALRETRACT);
   2a1b2:	0c 94 34 f9 	jmp	0x1f268	; 0x1f268 <unload_filament(float)>
    }
}
   2a1b6:	df 91       	pop	r29
   2a1b8:	cf 91       	pop	r28
   2a1ba:	1f 91       	pop	r17
   2a1bc:	0f 91       	pop	r16
   2a1be:	ff 90       	pop	r15
   2a1c0:	ef 90       	pop	r14
   2a1c2:	cf 90       	pop	r12
   2a1c4:	08 95       	ret

0002a1c6 <mFilamentItem(unsigned int, unsigned int)>:
static void __attribute__((noinline)) mFilamentResetMenuStack() {
    menu_back(bFilamentPreheatState ? 1 : 2);
}

void mFilamentItem(uint16_t nTemp, uint16_t nTempBed)
{
   2a1c6:	0f 93       	push	r16
   2a1c8:	1f 93       	push	r17
   2a1ca:	cf 93       	push	r28
   2a1cc:	df 93       	push	r29
   2a1ce:	8c 01       	movw	r16, r24
   2a1d0:	eb 01       	movw	r28, r22
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   2a1d2:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
   2a1d6:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
    setTargetHotend((float)nTemp);
    if (!shouldPreheatOnlyNozzle()) setTargetBed((float)nTempBed);
   2a1da:	0f 94 40 17 	call	0x22e80	; 0x22e80 <shouldPreheatOnlyNozzle()>
   2a1de:	81 11       	cpse	r24, r1
   2a1e0:	04 c0       	rjmp	.+8      	; 0x2a1ea <mFilamentItem(unsigned int, unsigned int)+0x24>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   2a1e2:	d0 93 73 06 	sts	0x0673, r29	; 0x800673 <target_temperature_bed+0x1>
   2a1e6:	c0 93 72 06 	sts	0x0672, r28	; 0x800672 <target_temperature_bed>

    {
        const FilamentAction action = eFilamentAction;
   2a1ea:	c0 91 a7 03 	lds	r28, 0x03A7	; 0x8003a7 <eFilamentAction>
        if (action == FilamentAction::Preheat || action == FilamentAction::Lay1Cal)
   2a1ee:	87 ef       	ldi	r24, 0xF7	; 247
   2a1f0:	8c 0f       	add	r24, r28
   2a1f2:	82 30       	cpi	r24, 0x02	; 2
   2a1f4:	f8 f4       	brcc	.+62     	; 0x2a234 <mFilamentItem(unsigned int, unsigned int)+0x6e>
        {
            lcd_return_to_status();
   2a1f6:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
            if (action == FilamentAction::Lay1Cal)
   2a1fa:	ca 30       	cpi	r28, 0x0A	; 10
   2a1fc:	41 f4       	brne	.+16     	; 0x2a20e <mFilamentItem(unsigned int, unsigned int)+0x48>
            {
                lcd_commands_type = LcdCommands::Layer1Cal;
   2a1fe:	84 e0       	ldi	r24, 0x04	; 4
   2a200:	80 93 b4 0d 	sts	0x0DB4, r24	; 0x800db4 <lcd_commands_type>
            }
            menu_back();
            clearFilamentAction();
        }
    }
}
   2a204:	df 91       	pop	r29
   2a206:	cf 91       	pop	r28
   2a208:	1f 91       	pop	r17
   2a20a:	0f 91       	pop	r16
   2a20c:	08 95       	ret
            {
                lcd_commands_type = LcdCommands::Layer1Cal;
            }
            else
            {
                raise_z_above(MIN_Z_FOR_PREHEAT);
   2a20e:	60 e0       	ldi	r22, 0x00	; 0
   2a210:	70 e0       	ldi	r23, 0x00	; 0
   2a212:	80 e2       	ldi	r24, 0x20	; 32
   2a214:	91 e4       	ldi	r25, 0x41	; 65
   2a216:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
                if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
   2a21a:	8f e5       	ldi	r24, 0x5F	; 95
   2a21c:	9f e0       	ldi	r25, 0x0F	; 15
   2a21e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2a222:	88 23       	and	r24, r24
   2a224:	79 f3       	breq	.-34     	; 0x2a204 <mFilamentItem(unsigned int, unsigned int)+0x3e>
                    lcd_wizard(WizState::LoadFilHot);
   2a226:	89 e0       	ldi	r24, 0x09	; 9
            }
            menu_back();
            clearFilamentAction();
        }
    }
}
   2a228:	df 91       	pop	r29
   2a22a:	cf 91       	pop	r28
   2a22c:	1f 91       	pop	r17
   2a22e:	0f 91       	pop	r16
            }
            else
            {
                raise_z_above(MIN_Z_FOR_PREHEAT);
                if (eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
                    lcd_wizard(WizState::LoadFilHot);
   2a230:	0c 94 e0 f9 	jmp	0x1f3c0	; 0x1f3c0 <lcd_wizard(WizState)>
   2a234:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>

    lcd_timeoutToStatus.stop();

    // the current temperature is within +-TEMP_HYSTERESIS of the target
    // then continue with the filament action if any is set
    if (bFilamentSkipPreheat || abs((int)current_temperature[0] - (int)nTemp) < TEMP_HYSTERESIS)
   2a238:	80 91 64 06 	lds	r24, 0x0664	; 0x800664 <bFilamentSkipPreheat>
   2a23c:	81 11       	cpse	r24, r1
   2a23e:	12 c0       	rjmp	.+36     	; 0x2a264 <mFilamentItem(unsigned int, unsigned int)+0x9e>
   2a240:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   2a244:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   2a248:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   2a24c:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   2a250:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2a254:	60 1b       	sub	r22, r16
   2a256:	71 0b       	sbc	r23, r17
   2a258:	6c 5f       	subi	r22, 0xFC	; 252
   2a25a:	7f 4f       	sbci	r23, 0xFF	; 255
   2a25c:	69 30       	cpi	r22, 0x09	; 9
   2a25e:	71 05       	cpc	r23, r1
   2a260:	08 f0       	brcs	.+2      	; 0x2a264 <mFilamentItem(unsigned int, unsigned int)+0x9e>
   2a262:	60 c0       	rjmp	.+192    	; 0x2a324 <mFilamentItem(unsigned int, unsigned int)+0x15e>
    {
        menu_func_t filamentActionMenu = nullptr;
        switch (eFilamentAction)
   2a264:	c1 50       	subi	r28, 0x01	; 1
   2a266:	c8 30       	cpi	r28, 0x08	; 8
   2a268:	88 f5       	brcc	.+98     	; 0x2a2cc <mFilamentItem(unsigned int, unsigned int)+0x106>
   2a26a:	ec 2f       	mov	r30, r28
   2a26c:	f0 e0       	ldi	r31, 0x00	; 0
   2a26e:	88 27       	eor	r24, r24
   2a270:	e3 5c       	subi	r30, 0xC3	; 195
   2a272:	fe 4a       	sbci	r31, 0xAE	; 174
   2a274:	8e 4f       	sbci	r24, 0xFE	; 254
   2a276:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   2a27a:	9e 39       	cpi	r25, 0x9E	; 158
   2a27c:	9e 39       	cpi	r25, 0x9E	; 158
   2a27e:	9e 39       	cpi	r25, 0x9E	; 158
   2a280:	f2 38       	cpi	r31, 0x82	; 130
   2a282:	9a 3a       	cpi	r25, 0xAA	; 170
   2a284:	fc 39       	cpi	r31, 0x9C	; 156
   2a286:	66 3a       	cpi	r22, 0xA6	; 166
   2a288:	b2 3a       	cpi	r27, 0xA2	; 162
                else if (eFilamentAction == FilamentAction::UnLoad)
                    enquecommand_P(MSG_M702); // unload filament
            }
            break;
        case FilamentAction::MmuLoad:
            filamentActionMenu = mmu_load_to_nozzle_menu;
   2a28a:	c6 e4       	ldi	r28, 0x46	; 70
   2a28c:	d2 ee       	ldi	r29, 0xE2	; 226
        case FilamentAction::Preheat:
        case FilamentAction::Lay1Cal:
            // handled earlier
            break;
        }
        if (bFilamentWaitingFlag) {
   2a28e:	80 91 62 06 	lds	r24, 0x0662	; 0x800662 <bFilamentWaitingFlag>
   2a292:	88 23       	and	r24, r24
   2a294:	29 f0       	breq	.+10     	; 0x2a2a0 <mFilamentItem(unsigned int, unsigned int)+0xda>
            Sound_MakeSound(e_SOUND_TYPE_StandardPrompt);
   2a296:	82 e0       	ldi	r24, 0x02	; 2
   2a298:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
            bFilamentWaitingFlag = false;
   2a29c:	10 92 62 06 	sts	0x0662, r1	; 0x800662 <bFilamentWaitingFlag>
        }

        if (filamentActionMenu) {
   2a2a0:	20 97       	sbiw	r28, 0x00	; 0
   2a2a2:	09 f4       	brne	.+2      	; 0x2a2a6 <mFilamentItem(unsigned int, unsigned int)+0xe0>
   2a2a4:	af cf       	rjmp	.-162    	; 0x2a204 <mFilamentItem(unsigned int, unsigned int)+0x3e>
            // Reset the menu stack and filament action before entering action menu
            mFilamentResetMenuStack();
   2a2a6:	0f 94 cd 1d 	call	0x23b9a	; 0x23b9a <mFilamentResetMenuStack()>

            // The menu should clear eFilamentAction when the
            // 'action' is done
            menu_submenu(filamentActionMenu, true);
   2a2aa:	61 e0       	ldi	r22, 0x01	; 1
   2a2ac:	ce 01       	movw	r24, r28
            }
            menu_back();
            clearFilamentAction();
        }
    }
}
   2a2ae:	df 91       	pop	r29
   2a2b0:	cf 91       	pop	r28
   2a2b2:	1f 91       	pop	r17
   2a2b4:	0f 91       	pop	r16
            // Reset the menu stack and filament action before entering action menu
            mFilamentResetMenuStack();

            // The menu should clear eFilamentAction when the
            // 'action' is done
            menu_submenu(filamentActionMenu, true);
   2a2b6:	0d 94 42 d3 	jmp	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
        switch (eFilamentAction)
        {
        case FilamentAction::Load:
        case FilamentAction::AutoLoad:
        case FilamentAction::UnLoad:
            if (bFilamentWaitingFlag) menu_submenu(mFilamentPrompt, true);
   2a2ba:	80 91 62 06 	lds	r24, 0x0662	; 0x800662 <bFilamentWaitingFlag>
   2a2be:	88 23       	and	r24, r24
   2a2c0:	41 f0       	breq	.+16     	; 0x2a2d2 <mFilamentItem(unsigned int, unsigned int)+0x10c>
   2a2c2:	61 e0       	ldi	r22, 0x01	; 1
   2a2c4:	86 ec       	ldi	r24, 0xC6	; 198
   2a2c6:	98 e3       	ldi	r25, 0x38	; 56
   2a2c8:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>

    // the current temperature is within +-TEMP_HYSTERESIS of the target
    // then continue with the filament action if any is set
    if (bFilamentSkipPreheat || abs((int)current_temperature[0] - (int)nTemp) < TEMP_HYSTERESIS)
    {
        menu_func_t filamentActionMenu = nullptr;
   2a2cc:	d0 e0       	ldi	r29, 0x00	; 0
   2a2ce:	c0 e0       	ldi	r28, 0x00	; 0
   2a2d0:	de cf       	rjmp	.-68     	; 0x2a28e <mFilamentItem(unsigned int, unsigned int)+0xc8>
        case FilamentAction::AutoLoad:
        case FilamentAction::UnLoad:
            if (bFilamentWaitingFlag) menu_submenu(mFilamentPrompt, true);
            else
            {
                mFilamentResetMenuStack();
   2a2d2:	0f 94 cd 1d 	call	0x23b9a	; 0x23b9a <mFilamentResetMenuStack()>
                if (eFilamentAction == FilamentAction::AutoLoad) {
   2a2d6:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   2a2da:	82 30       	cpi	r24, 0x02	; 2
   2a2dc:	19 f4       	brne	.+6      	; 0x2a2e4 <mFilamentItem(unsigned int, unsigned int)+0x11e>
                    // loading no longer cancellable
                    eFilamentAction = FilamentAction::Load;
   2a2de:	81 e0       	ldi	r24, 0x01	; 1
   2a2e0:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
                }

                if (eFilamentAction == FilamentAction::Load)
   2a2e4:	80 91 a7 03 	lds	r24, 0x03A7	; 0x8003a7 <eFilamentAction>
   2a2e8:	81 30       	cpi	r24, 0x01	; 1
   2a2ea:	31 f4       	brne	.+12     	; 0x2a2f8 <mFilamentItem(unsigned int, unsigned int)+0x132>
                    enquecommand_P(MSG_M701); // load filament
   2a2ec:	61 e0       	ldi	r22, 0x01	; 1
   2a2ee:	8f ea       	ldi	r24, 0xAF	; 175
   2a2f0:	9e e6       	ldi	r25, 0x6E	; 110
                else if (eFilamentAction == FilamentAction::UnLoad)
                    enquecommand_P(MSG_M702); // unload filament
   2a2f2:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
   2a2f6:	ea cf       	rjmp	.-44     	; 0x2a2cc <mFilamentItem(unsigned int, unsigned int)+0x106>
                    eFilamentAction = FilamentAction::Load;
                }

                if (eFilamentAction == FilamentAction::Load)
                    enquecommand_P(MSG_M701); // load filament
                else if (eFilamentAction == FilamentAction::UnLoad)
   2a2f8:	83 30       	cpi	r24, 0x03	; 3
   2a2fa:	41 f7       	brne	.-48     	; 0x2a2cc <mFilamentItem(unsigned int, unsigned int)+0x106>
                    enquecommand_P(MSG_M702); // unload filament
   2a2fc:	61 e0       	ldi	r22, 0x01	; 1
   2a2fe:	87 e3       	ldi	r24, 0x37	; 55
   2a300:	9b e6       	ldi	r25, 0x6B	; 107
   2a302:	f7 cf       	rjmp	.-18     	; 0x2a2f2 <mFilamentItem(unsigned int, unsigned int)+0x12c>
            break;
        case FilamentAction::MmuLoad:
            filamentActionMenu = mmu_load_to_nozzle_menu;
            break;
        case FilamentAction::MmuLoadingTest:
            filamentActionMenu = mmu_loading_test_menu;
   2a304:	c0 ec       	ldi	r28, 0xC0	; 192
   2a306:	d1 ee       	ldi	r29, 0xE1	; 225
   2a308:	c2 cf       	rjmp	.-124    	; 0x2a28e <mFilamentItem(unsigned int, unsigned int)+0xc8>
            break;
        case FilamentAction::MmuUnLoad:
            mFilamentResetMenuStack();
   2a30a:	0f 94 cd 1d 	call	0x23b9a	; 0x23b9a <mFilamentResetMenuStack()>
            MMU2::mmu2.unload();
   2a30e:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>

            // Clear the filament action. MMU Unload is currently a special edge
            // case in that it does not call a submenu. So we must clear the action
            // flag here for now
            clearFilamentAction();
   2a312:	0f 94 9f 21 	call	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
   2a316:	da cf       	rjmp	.-76     	; 0x2a2cc <mFilamentItem(unsigned int, unsigned int)+0x106>
            break;
        case FilamentAction::MmuEject:
            filamentActionMenu = mmu_fil_eject_menu;
   2a318:	ce e3       	ldi	r28, 0x3E	; 62
   2a31a:	d2 ee       	ldi	r29, 0xE2	; 226
   2a31c:	b8 cf       	rjmp	.-144    	; 0x2a28e <mFilamentItem(unsigned int, unsigned int)+0xc8>
            break;
        case FilamentAction::MmuCut:
#ifdef MMU_HAS_CUTTER
            filamentActionMenu = mmu_cut_filament_menu;
   2a31e:	c6 e3       	ldi	r28, 0x36	; 54
   2a320:	d2 ee       	ldi	r29, 0xE2	; 226
   2a322:	b5 cf       	rjmp	.-150    	; 0x2a28e <mFilamentItem(unsigned int, unsigned int)+0xc8>
            menu_submenu(filamentActionMenu, true);
        }
    }
    else // still preheating, continue updating LCD UI
    {
        if (!bFilamentWaitingFlag || lcd_draw_update)
   2a324:	80 91 62 06 	lds	r24, 0x0662	; 0x800662 <bFilamentWaitingFlag>
   2a328:	88 23       	and	r24, r24
   2a32a:	21 f0       	breq	.+8      	; 0x2a334 <mFilamentItem(unsigned int, unsigned int)+0x16e>
   2a32c:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   2a330:	88 23       	and	r24, r24
   2a332:	a1 f1       	breq	.+104    	; 0x2a39c <mFilamentItem(unsigned int, unsigned int)+0x1d6>
            // bFilamentWaitingFlag to distinguish: this flag is reset exactly once when entering
            // the menu and is used to raise the carriage *once*. In other cases, the LCD has been
            // modified elsewhere and needs to be redrawn in full.

            // reset bFilamentWaitingFlag immediately to avoid re-entry from raise_z_above()!
            bFilamentWaitingFlag = true;
   2a334:	81 e0       	ldi	r24, 0x01	; 1
   2a336:	80 93 62 06 	sts	0x0662, r24	; 0x800662 <bFilamentWaitingFlag>

            // also force-enable lcd_draw_update (might be 0 when called from outside a menu)
            lcd_draw_update = 1;
   2a33a:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>

            lcd_clear();
   2a33e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
            lcd_puts_at_P(0,3, PSTR(">"));
   2a342:	46 e2       	ldi	r20, 0x26	; 38
   2a344:	51 ea       	ldi	r21, 0xA1	; 161
   2a346:	63 e0       	ldi	r22, 0x03	; 3
   2a348:	80 e0       	ldi	r24, 0x00	; 0
   2a34a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
            lcd_puts_at_P(1, 3, _T(MSG_CANCEL));
   2a34e:	8f e6       	ldi	r24, 0x6F	; 111
   2a350:	9b e3       	ldi	r25, 0x3B	; 59
   2a352:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a356:	ac 01       	movw	r20, r24
   2a358:	63 e0       	ldi	r22, 0x03	; 3
   2a35a:	81 e0       	ldi	r24, 0x01	; 1
   2a35c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

            lcd_set_cursor(0, 1);
   2a360:	61 e0       	ldi	r22, 0x01	; 1
   2a362:	80 e0       	ldi	r24, 0x00	; 0
   2a364:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
            switch (eFilamentAction)
   2a368:	e0 91 a7 03 	lds	r30, 0x03A7	; 0x8003a7 <eFilamentAction>
   2a36c:	e1 50       	subi	r30, 0x01	; 1
   2a36e:	e8 30       	cpi	r30, 0x08	; 8
   2a370:	a8 f4       	brcc	.+42     	; 0x2a39c <mFilamentItem(unsigned int, unsigned int)+0x1d6>
   2a372:	f0 e0       	ldi	r31, 0x00	; 0
   2a374:	88 27       	eor	r24, r24
   2a376:	e0 54       	subi	r30, 0x40	; 64
   2a378:	fe 4a       	sbci	r31, 0xAE	; 174
   2a37a:	8e 4f       	sbci	r24, 0xFE	; 254
   2a37c:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   2a380:	62 39       	cpi	r22, 0x92	; 146
   2a382:	62 39       	cpi	r22, 0x92	; 146
   2a384:	7a 39       	cpi	r23, 0x9A	; 154
   2a386:	62 39       	cpi	r22, 0x92	; 146
   2a388:	7a 39       	cpi	r23, 0x9A	; 154
   2a38a:	68 3a       	cpi	r22, 0xA8	; 168
   2a38c:	12 3a       	cpi	r17, 0xA2	; 162
   2a38e:	62 39       	cpi	r22, 0x92	; 146
            {
            case FilamentAction::Load:
            case FilamentAction::AutoLoad:
            case FilamentAction::MmuLoad:
            case FilamentAction::MmuLoadingTest:
                lcd_puts_P(_T(MSG_PREHEATING_TO_LOAD));
   2a390:	8d e2       	ldi	r24, 0x2D	; 45
   2a392:	9f e4       	ldi	r25, 0x4F	; 79
                break;
            case FilamentAction::MmuEject:
                lcd_puts_P(_T(MSG_PREHEATING_TO_EJECT));
                break;
            case FilamentAction::MmuCut:
                lcd_puts_P(_T(MSG_PREHEATING_TO_CUT));
   2a394:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2a398:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
                // handled earlier
                break;
            }
        }

        if (bFilamentWaitingFlag) {
   2a39c:	80 91 62 06 	lds	r24, 0x0662	; 0x800662 <bFilamentWaitingFlag>
   2a3a0:	81 11       	cpse	r24, r1
            lcd_print_target_temps_first_line();
   2a3a2:	0f 94 a3 22 	call	0x24546	; 0x24546 <lcd_print_target_temps_first_line()>
        }

        if (lcd_clicked())
   2a3a6:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   2a3aa:	88 23       	and	r24, r24
   2a3ac:	09 f4       	brne	.+2      	; 0x2a3b0 <mFilamentItem(unsigned int, unsigned int)+0x1ea>
   2a3ae:	2a cf       	rjmp	.-428    	; 0x2a204 <mFilamentItem(unsigned int, unsigned int)+0x3e>
        {
            // Filament action canceled while preheating
            bFilamentWaitingFlag = false;
   2a3b0:	10 92 62 06 	sts	0x0662, r1	; 0x800662 <bFilamentWaitingFlag>
            if (!bFilamentPreheatState)
   2a3b4:	80 91 63 06 	lds	r24, 0x0663	; 0x800663 <bFilamentPreheatState>
   2a3b8:	81 11       	cpse	r24, r1
   2a3ba:	0e c0       	rjmp	.+28     	; 0x2a3d8 <mFilamentItem(unsigned int, unsigned int)+0x212>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   2a3bc:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   2a3c0:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
            {
                setTargetHotend(0);
                if (!printingIsPaused()) setTargetBed(0);
   2a3c4:	0e 94 0c 67 	call	0xce18	; 0xce18 <printingIsPaused()>
   2a3c8:	81 11       	cpse	r24, r1
   2a3ca:	04 c0       	rjmp	.+8      	; 0x2a3d4 <mFilamentItem(unsigned int, unsigned int)+0x20e>
  resetPID(0);
};

FORCE_INLINE void setTargetBed(const float &celsius) {
  target_temperature_bed = celsius;
   2a3cc:	10 92 73 06 	sts	0x0673, r1	; 0x800673 <target_temperature_bed+0x1>
   2a3d0:	10 92 72 06 	sts	0x0672, r1	; 0x800672 <target_temperature_bed>
                menu_back();
   2a3d4:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
            }
            menu_back();
   2a3d8:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
            clearFilamentAction();
        }
    }
}
   2a3dc:	df 91       	pop	r29
   2a3de:	cf 91       	pop	r28
   2a3e0:	1f 91       	pop	r17
   2a3e2:	0f 91       	pop	r16
                setTargetHotend(0);
                if (!printingIsPaused()) setTargetBed(0);
                menu_back();
            }
            menu_back();
            clearFilamentAction();
   2a3e4:	0d 94 9f 21 	jmp	0x2433e	; 0x2433e <clearFilamentAction() [clone .lto_priv.439]>
            case FilamentAction::MmuLoadingTest:
                lcd_puts_P(_T(MSG_PREHEATING_TO_LOAD));
                break;
            case FilamentAction::UnLoad:
            case FilamentAction::MmuUnLoad:
                lcd_puts_P(_T(MSG_PREHEATING_TO_UNLOAD));
   2a3e8:	86 e1       	ldi	r24, 0x16	; 22
   2a3ea:	9f e4       	ldi	r25, 0x4F	; 79
   2a3ec:	d3 cf       	rjmp	.-90     	; 0x2a394 <mFilamentItem(unsigned int, unsigned int)+0x1ce>
                break;
            case FilamentAction::MmuEject:
                lcd_puts_P(_T(MSG_PREHEATING_TO_EJECT));
   2a3ee:	80 e0       	ldi	r24, 0x00	; 0
   2a3f0:	9f e4       	ldi	r25, 0x4F	; 79
   2a3f2:	d0 cf       	rjmp	.-96     	; 0x2a394 <mFilamentItem(unsigned int, unsigned int)+0x1ce>
                break;
            case FilamentAction::MmuCut:
                lcd_puts_P(_T(MSG_PREHEATING_TO_CUT));
   2a3f4:	8c ee       	ldi	r24, 0xEC	; 236
   2a3f6:	9e e4       	ldi	r25, 0x4E	; 78
   2a3f8:	cd cf       	rjmp	.-102    	; 0x2a394 <mFilamentItem(unsigned int, unsigned int)+0x1ce>

0002a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>:
        }
    }
}

static void setFilamentAction(FilamentAction action) {
    eFilamentAction = action;
   2a3fa:	80 93 a7 03 	sts	0x03A7, r24	; 0x8003a7 <eFilamentAction>
    setFilamentAction(action);

    // For MMU: If FINDA doesn't detect filament on Cut or Eject action,
    // then preheating is unnecessary
    bFilamentSkipPreheat = ( MMU2::mmu2.Enabled() && !MMU2::mmu2.FindaDetectsFilament()
        && (action == FilamentAction::MmuCut ||  action == FilamentAction::MmuEject) );
   2a3fe:	40 91 ba 13 	lds	r20, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   2a402:	20 91 b6 0d 	lds	r18, 0x0DB6	; 0x800db6 <target_temperature>
   2a406:	30 91 b7 0d 	lds	r19, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2a40a:	41 30       	cpi	r20, 0x01	; 1
   2a40c:	59 f0       	breq	.+22     	; 0x2a424 <preheat_or_continue(FilamentAction) [clone .lto_priv.438]+0x2a>

    setFilamentAction(action);

    // For MMU: If FINDA doesn't detect filament on Cut or Eject action,
    // then preheating is unnecessary
    bFilamentSkipPreheat = ( MMU2::mmu2.Enabled() && !MMU2::mmu2.FindaDetectsFilament()
   2a40e:	10 92 64 06 	sts	0x0664, r1	; 0x800664 <bFilamentSkipPreheat>
        && (action == FilamentAction::MmuCut ||  action == FilamentAction::MmuEject) );

    if (bFilamentSkipPreheat || target_temperature[0] >= extrude_min_temp) {
   2a412:	80 91 6b 02 	lds	r24, 0x026B	; 0x80026b <extrude_min_temp>
   2a416:	90 91 6c 02 	lds	r25, 0x026C	; 0x80026c <extrude_min_temp+0x1>
   2a41a:	28 17       	cp	r18, r24
   2a41c:	39 07       	cpc	r19, r25
   2a41e:	5c f4       	brge	.+22     	; 0x2a436 <preheat_or_continue(FilamentAction) [clone .lto_priv.438]+0x3c>
        bFilamentPreheatState = true;
        mFilamentItem(target_temperature[0], target_temperature_bed);
        bFilamentSkipPreheat = false; // Reset flag
    } else {
        lcd_generic_preheat_menu();
   2a420:	0d 94 a2 21 	jmp	0x24344	; 0x24344 <lcd_generic_preheat_menu()>

    setFilamentAction(action);

    // For MMU: If FINDA doesn't detect filament on Cut or Eject action,
    // then preheating is unnecessary
    bFilamentSkipPreheat = ( MMU2::mmu2.Enabled() && !MMU2::mmu2.FindaDetectsFilament()
   2a424:	90 91 90 13 	lds	r25, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   2a428:	91 11       	cpse	r25, r1
   2a42a:	f1 cf       	rjmp	.-30     	; 0x2a40e <preheat_or_continue(FilamentAction) [clone .lto_priv.438]+0x14>
        && (action == FilamentAction::MmuCut ||  action == FilamentAction::MmuEject) );
   2a42c:	86 50       	subi	r24, 0x06	; 6
   2a42e:	82 30       	cpi	r24, 0x02	; 2
   2a430:	70 f7       	brcc	.-36     	; 0x2a40e <preheat_or_continue(FilamentAction) [clone .lto_priv.438]+0x14>

    setFilamentAction(action);

    // For MMU: If FINDA doesn't detect filament on Cut or Eject action,
    // then preheating is unnecessary
    bFilamentSkipPreheat = ( MMU2::mmu2.Enabled() && !MMU2::mmu2.FindaDetectsFilament()
   2a432:	40 93 64 06 	sts	0x0664, r20	; 0x800664 <bFilamentSkipPreheat>
        && (action == FilamentAction::MmuCut ||  action == FilamentAction::MmuEject) );

    if (bFilamentSkipPreheat || target_temperature[0] >= extrude_min_temp) {
        bFilamentPreheatState = true;
   2a436:	81 e0       	ldi	r24, 0x01	; 1
   2a438:	80 93 63 06 	sts	0x0663, r24	; 0x800663 <bFilamentPreheatState>
        mFilamentItem(target_temperature[0], target_temperature_bed);
   2a43c:	60 91 72 06 	lds	r22, 0x0672	; 0x800672 <target_temperature_bed>
   2a440:	70 91 73 06 	lds	r23, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   2a444:	c9 01       	movw	r24, r18
   2a446:	0f 94 e3 50 	call	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>
        bFilamentSkipPreheat = false; // Reset flag
   2a44a:	10 92 64 06 	sts	0x0664, r1	; 0x800664 <bFilamentSkipPreheat>
    } else {
        lcd_generic_preheat_menu();
    }
}
   2a44e:	08 95       	ret

0002a450 <lcd_AutoLoadFilament()>:
{
    preheat_or_continue(FilamentAction::Load);
}

void lcd_AutoLoadFilament() {
    preheat_or_continue(FilamentAction::AutoLoad);
   2a450:	82 e0       	ldi	r24, 0x02	; 2
   2a452:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0002a456 <lcd_LoadFilament() [clone .lto_priv.411]>:
    }
}

static void lcd_LoadFilament()
{
    preheat_or_continue(FilamentAction::Load);
   2a456:	81 e0       	ldi	r24, 0x01	; 1
   2a458:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0002a45c <lcd_unLoadFilament() [clone .lto_priv.412]>:
    MENU_END();
}

static void lcd_unLoadFilament()
{
     preheat_or_continue(FilamentAction::UnLoad);
   2a45c:	83 e0       	ldi	r24, 0x03	; 3
   2a45e:	0d 94 fd 51 	jmp	0x2a3fa	; 0x2a3fa <preheat_or_continue(FilamentAction) [clone .lto_priv.438]>

0002a462 <mFilamentItem_PLA()>:
    mFilamentItem(FARM_PREHEAT_HOTEND_TEMP, 0);
}

static void mFilamentItem_PLA()
{
    bFilamentPreheatState = false;
   2a462:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PLA_PREHEAT_HOTEND_TEMP, PLA_PREHEAT_HPB_TEMP);
   2a466:	6c e3       	ldi	r22, 0x3C	; 60
   2a468:	70 e0       	ldi	r23, 0x00	; 0
   2a46a:	87 ed       	ldi	r24, 0xD7	; 215
   2a46c:	90 e0       	ldi	r25, 0x00	; 0
   2a46e:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a472 <mFilamentItem_PET()>:
}

static void mFilamentItem_PET()
{
    bFilamentPreheatState = false;
   2a472:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PET_PREHEAT_HOTEND_TEMP, PET_PREHEAT_HPB_TEMP);
   2a476:	65 e5       	ldi	r22, 0x55	; 85
   2a478:	70 e0       	ldi	r23, 0x00	; 0
   2a47a:	86 ee       	ldi	r24, 0xE6	; 230
   2a47c:	90 e0       	ldi	r25, 0x00	; 0
   2a47e:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a482 <mFilamentItem_ASA()>:
}

static void mFilamentItem_ASA()
{
    bFilamentPreheatState = false;
   2a482:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(ASA_PREHEAT_HOTEND_TEMP, ASA_PREHEAT_HPB_TEMP);
   2a486:	69 e6       	ldi	r22, 0x69	; 105
   2a488:	70 e0       	ldi	r23, 0x00	; 0
   2a48a:	84 e0       	ldi	r24, 0x04	; 4
   2a48c:	91 e0       	ldi	r25, 0x01	; 1
   2a48e:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a492 <mFilamentItem_PC()>:
}

static void mFilamentItem_PC()
{
    bFilamentPreheatState = false;
   2a492:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PC_PREHEAT_HOTEND_TEMP, PC_PREHEAT_HPB_TEMP);
   2a496:	6e e6       	ldi	r22, 0x6E	; 110
   2a498:	70 e0       	ldi	r23, 0x00	; 0
   2a49a:	83 e1       	ldi	r24, 0x13	; 19
   2a49c:	91 e0       	ldi	r25, 0x01	; 1
   2a49e:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4a2 <mFilamentItem_PVB()>:
    mFilamentItem(FLEX_PREHEAT_HOTEND_TEMP, FLEX_PREHEAT_HPB_TEMP);
}

static void mFilamentItem_PVB()
{
    bFilamentPreheatState = false;
   2a4a2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PVB_PREHEAT_HOTEND_TEMP, PVB_PREHEAT_HPB_TEMP);
   2a4a6:	6b e4       	ldi	r22, 0x4B	; 75
   2a4a8:	70 e0       	ldi	r23, 0x00	; 0
   2a4aa:	87 ed       	ldi	r24, 0xD7	; 215
   2a4ac:	90 e0       	ldi	r25, 0x00	; 0
   2a4ae:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4b2 <mFilamentItem_PA()>:
    mFilamentItem(ABS_PREHEAT_HOTEND_TEMP, ABS_PREHEAT_HPB_TEMP);
}

static void mFilamentItem_PA()
{
    bFilamentPreheatState = false;
   2a4b2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PA_PREHEAT_HOTEND_TEMP, PA_PREHEAT_HPB_TEMP);
   2a4b6:	6a e5       	ldi	r22, 0x5A	; 90
   2a4b8:	70 e0       	ldi	r23, 0x00	; 0
   2a4ba:	83 e1       	ldi	r24, 0x13	; 19
   2a4bc:	91 e0       	ldi	r25, 0x01	; 1
   2a4be:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4c2 <mFilamentItem_ABS()>:
    mFilamentItem(PC_PREHEAT_HOTEND_TEMP, PC_PREHEAT_HPB_TEMP);
}

static void mFilamentItem_ABS()
{
    bFilamentPreheatState = false;
   2a4c2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(ABS_PREHEAT_HOTEND_TEMP, ABS_PREHEAT_HPB_TEMP);
   2a4c6:	64 e6       	ldi	r22, 0x64	; 100
   2a4c8:	70 e0       	ldi	r23, 0x00	; 0
   2a4ca:	8f ef       	ldi	r24, 0xFF	; 255
   2a4cc:	90 e0       	ldi	r25, 0x00	; 0
   2a4ce:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4d2 <mFilamentItem_HIPS()>:
    mFilamentItem(PA_PREHEAT_HOTEND_TEMP, PA_PREHEAT_HPB_TEMP);
}

static void mFilamentItem_HIPS()
{
    bFilamentPreheatState = false;
   2a4d2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(HIPS_PREHEAT_HOTEND_TEMP, HIPS_PREHEAT_HPB_TEMP);
   2a4d6:	64 e6       	ldi	r22, 0x64	; 100
   2a4d8:	70 e0       	ldi	r23, 0x00	; 0
   2a4da:	8c ed       	ldi	r24, 0xDC	; 220
   2a4dc:	90 e0       	ldi	r25, 0x00	; 0
   2a4de:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4e2 <mFilamentItem_PP()>:
}

static void mFilamentItem_PP()
{
    bFilamentPreheatState = false;
   2a4e2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(PP_PREHEAT_HOTEND_TEMP, PP_PREHEAT_HPB_TEMP);
   2a4e6:	64 e6       	ldi	r22, 0x64	; 100
   2a4e8:	70 e0       	ldi	r23, 0x00	; 0
   2a4ea:	8e ef       	ldi	r24, 0xFE	; 254
   2a4ec:	90 e0       	ldi	r25, 0x00	; 0
   2a4ee:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a4f2 <mFilamentItem_FLEX()>:
}

static void mFilamentItem_FLEX()
{
    bFilamentPreheatState = false;
   2a4f2:	10 92 63 06 	sts	0x0663, r1	; 0x800663 <bFilamentPreheatState>
    mFilamentItem(FLEX_PREHEAT_HOTEND_TEMP, FLEX_PREHEAT_HPB_TEMP);
   2a4f6:	62 e3       	ldi	r22, 0x32	; 50
   2a4f8:	70 e0       	ldi	r23, 0x00	; 0
   2a4fa:	80 ef       	ldi	r24, 0xF0	; 240
   2a4fc:	90 e0       	ldi	r25, 0x00	; 0
   2a4fe:	0d 94 e3 50 	jmp	0x2a1c6	; 0x2a1c6 <mFilamentItem(unsigned int, unsigned int)>

0002a502 <lcd_dump_memory()>:
	}
    return clicked;
}

void lcd_beeper_quick_feedback(void) {
	Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
   2a502:	80 e0       	ldi	r24, 0x00	; 0
   2a504:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
#include "xflash_dump.h"

static void lcd_dump_memory()
{
    lcd_beeper_quick_feedback();
    xfdump_dump();
   2a508:	0e 94 cf ee 	call	0x1dd9e	; 0x1dd9e <xfdump_dump()>
    lcd_return_to_status();
   2a50c:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>

0002a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>:
     }
Sound_SaveMode();
}

//if critical is true then silend and once mode is ignored
void __attribute__((noinline)) Sound_MakeCustom(uint16_t ms,uint16_t tone_,bool critical){
   2a510:	cf 92       	push	r12
   2a512:	df 92       	push	r13
   2a514:	ef 92       	push	r14
   2a516:	ff 92       	push	r15
     if (critical || eSoundMode != e_SOUND_MODE_SILENT) {
   2a518:	41 11       	cpse	r20, r1
   2a51a:	04 c0       	rjmp	.+8      	; 0x2a524 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x14>
   2a51c:	20 91 de 04 	lds	r18, 0x04DE	; 0x8004de <eSoundMode>
   2a520:	22 30       	cpi	r18, 0x02	; 2
   2a522:	d1 f0       	breq	.+52     	; 0x2a558 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x48>
   2a524:	9b 01       	movw	r18, r22
   2a526:	6c 01       	movw	r12, r24
   2a528:	f1 2c       	mov	r15, r1
   2a52a:	e1 2c       	mov	r14, r1
          if(!tone_) {
   2a52c:	67 2b       	or	r22, r23
   2a52e:	c9 f4       	brne	.+50     	; 0x2a562 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x52>
               WRITE(BEEPER, HIGH);
   2a530:	9f b7       	in	r25, 0x3f	; 63
   2a532:	f8 94       	cli
   2a534:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2a538:	84 60       	ori	r24, 0x04	; 4
   2a53a:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2a53e:	9f bf       	out	0x3f, r25	; 63
               _delay(ms);
   2a540:	c7 01       	movw	r24, r14
   2a542:	b6 01       	movw	r22, r12
   2a544:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
	OCR4A = 255U;
	// Disable Output compare A interrupt and timer overflow interrupt
	TIMSK4 &= ~(_BV(OCIE4A) | _BV(TOIE4));
	CRITICAL_SECTION_END;
	// Turn beeper off if it was on when noTone was called
	WRITE(BEEPER, 0);
   2a548:	9f b7       	in	r25, 0x3f	; 63
   2a54a:	f8 94       	cli
   2a54c:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2a550:	8b 7f       	andi	r24, 0xFB	; 251
   2a552:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2a556:	9f bf       	out	0x3f, r25	; 63
               _tone(BEEPER, tone_);
               _delay(ms);
               _noTone(BEEPER);
          }
     }
}
   2a558:	ff 90       	pop	r15
   2a55a:	ef 90       	pop	r14
   2a55c:	df 90       	pop	r13
   2a55e:	cf 90       	pop	r12
   2a560:	08 95       	ret

void tone4(_UNUSED uint8_t _pin, uint16_t frequency)
{
	//this ocr and prescalarbits calculation is taken from the Arduino core and simplified for one type of timer only
	uint8_t prescalarbits = 0b001;
	uint32_t pwm_freq = F_CPU / (2 * frequency);
   2a562:	22 0f       	add	r18, r18
   2a564:	33 1f       	adc	r19, r19
   2a566:	50 e0       	ldi	r21, 0x00	; 0
   2a568:	40 e0       	ldi	r20, 0x00	; 0
   2a56a:	60 e0       	ldi	r22, 0x00	; 0
   2a56c:	74 e2       	ldi	r23, 0x24	; 36
   2a56e:	84 ef       	ldi	r24, 0xF4	; 244
   2a570:	90 e0       	ldi	r25, 0x00	; 0
   2a572:	0f 94 4c dd 	call	0x3ba98	; 0x3ba98 <__divmodsi4>
}

void tone4(_UNUSED uint8_t _pin, uint16_t frequency)
{
	//this ocr and prescalarbits calculation is taken from the Arduino core and simplified for one type of timer only
	uint8_t prescalarbits = 0b001;
   2a576:	91 e0       	ldi	r25, 0x01	; 1
	uint32_t pwm_freq = F_CPU / (2 * frequency);

	if (pwm_freq > UINT16_MAX) {
   2a578:	21 15       	cp	r18, r1
   2a57a:	31 05       	cpc	r19, r1
   2a57c:	81 e0       	ldi	r24, 0x01	; 1
   2a57e:	48 07       	cpc	r20, r24
   2a580:	51 05       	cpc	r21, r1
   2a582:	44 f0       	brlt	.+16     	; 0x2a594 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x84>
		pwm_freq /= 64; // Increase prescaler to 64
   2a584:	86 e0       	ldi	r24, 0x06	; 6
   2a586:	56 95       	lsr	r21
   2a588:	47 95       	ror	r20
   2a58a:	37 95       	ror	r19
   2a58c:	27 95       	ror	r18
   2a58e:	8a 95       	dec	r24
   2a590:	d1 f7       	brne	.-12     	; 0x2a586 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x76>
		prescalarbits = 0b011;
   2a592:	93 e0       	ldi	r25, 0x03	; 3
	}

	uint16_t ocr = pwm_freq - 1;
   2a594:	21 50       	subi	r18, 0x01	; 1
   2a596:	31 09       	sbc	r19, r1

	CRITICAL_SECTION_START;
   2a598:	4f b7       	in	r20, 0x3f	; 63
   2a59a:	f8 94       	cli
	// Set calcualted prescaler
	TCCR4B = (TCCR4B & 0b11111000) | prescalarbits;
   2a59c:	80 91 a1 00 	lds	r24, 0x00A1	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
   2a5a0:	88 7f       	andi	r24, 0xF8	; 248
   2a5a2:	89 2b       	or	r24, r25
   2a5a4:	80 93 a1 00 	sts	0x00A1, r24	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
#ifdef EXTRUDER_0_AUTO_FAN_PIN
	// Scale the fan PWM duty cycle so that it remains constant, but at the tone frequency
	OCR4C = (OCR4C * ocr) / (uint16_t)((TIMSK4 & _BV(OCIE4A)) ? OCR4A : 255U);
   2a5a8:	60 91 ac 00 	lds	r22, 0x00AC	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
   2a5ac:	70 91 ad 00 	lds	r23, 0x00AD	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   2a5b0:	26 9f       	mul	r18, r22
   2a5b2:	c0 01       	movw	r24, r0
   2a5b4:	27 9f       	mul	r18, r23
   2a5b6:	90 0d       	add	r25, r0
   2a5b8:	36 9f       	mul	r19, r22
   2a5ba:	90 0d       	add	r25, r0
   2a5bc:	11 24       	eor	r1, r1
   2a5be:	50 91 72 00 	lds	r21, 0x0072	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
   2a5c2:	6f ef       	ldi	r22, 0xFF	; 255
   2a5c4:	70 e0       	ldi	r23, 0x00	; 0
   2a5c6:	51 ff       	sbrs	r21, 1
   2a5c8:	04 c0       	rjmp	.+8      	; 0x2a5d2 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0xc2>
   2a5ca:	60 91 a8 00 	lds	r22, 0x00A8	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
   2a5ce:	70 91 a9 00 	lds	r23, 0x00A9	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   2a5d2:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   2a5d6:	70 93 ad 00 	sts	0x00AD, r23	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   2a5da:	60 93 ac 00 	sts	0x00AC, r22	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
#endif //EXTRUDER_0_AUTO_FAN_PIN
	// Set calcualted ocr
	OCR4A = ocr;
   2a5de:	30 93 a9 00 	sts	0x00A9, r19	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   2a5e2:	20 93 a8 00 	sts	0x00A8, r18	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
	// Enable Output compare A interrupt and timer overflow interrupt
	TIMSK4 |= _BV(OCIE4A) | _BV(TOIE4);
   2a5e6:	80 91 72 00 	lds	r24, 0x0072	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
   2a5ea:	83 60       	ori	r24, 0x03	; 3
   2a5ec:	80 93 72 00 	sts	0x0072, r24	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
	CRITICAL_SECTION_END;
   2a5f0:	4f bf       	out	0x3f, r20	; 63
               WRITE(BEEPER, HIGH);
               _delay(ms);
               WRITE(BEEPER, LOW);
          } else {
               _tone(BEEPER, tone_);
               _delay(ms);
   2a5f2:	c7 01       	movw	r24, r14
   2a5f4:	b6 01       	movw	r22, r12
   2a5f6:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
}

void noTone4(_UNUSED uint8_t _pin)
{
	CRITICAL_SECTION_START;
   2a5fa:	2f b7       	in	r18, 0x3f	; 63
   2a5fc:	f8 94       	cli
	// Revert prescaler to CLK/1024
	TCCR4B = (TCCR4B & 0b11111000) | _BV(CS42) | _BV(CS40);
   2a5fe:	80 91 a1 00 	lds	r24, 0x00A1	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
   2a602:	88 7f       	andi	r24, 0xF8	; 248
   2a604:	85 60       	ori	r24, 0x05	; 5
   2a606:	80 93 a1 00 	sts	0x00A1, r24	; 0x8000a1 <__TEXT_REGION_LENGTH__+0x7c20a1>
#ifdef EXTRUDER_0_AUTO_FAN_PIN
	// Scale the fan OCR back to the original value.
	OCR4C = (OCR4C * 255U) / (uint16_t)((TIMSK4 & _BV(OCIE4A)) ? OCR4A : 255U);
   2a60a:	40 91 ac 00 	lds	r20, 0x00AC	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
   2a60e:	50 91 ad 00 	lds	r21, 0x00AD	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   2a612:	3f ef       	ldi	r19, 0xFF	; 255
   2a614:	34 9f       	mul	r19, r20
   2a616:	c0 01       	movw	r24, r0
   2a618:	35 9f       	mul	r19, r21
   2a61a:	90 0d       	add	r25, r0
   2a61c:	11 24       	eor	r1, r1
   2a61e:	30 91 72 00 	lds	r19, 0x0072	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
   2a622:	6f ef       	ldi	r22, 0xFF	; 255
   2a624:	70 e0       	ldi	r23, 0x00	; 0
   2a626:	31 ff       	sbrs	r19, 1
   2a628:	04 c0       	rjmp	.+8      	; 0x2a632 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x122>
   2a62a:	60 91 a8 00 	lds	r22, 0x00A8	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
   2a62e:	70 91 a9 00 	lds	r23, 0x00A9	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   2a632:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   2a636:	70 93 ad 00 	sts	0x00AD, r23	; 0x8000ad <__TEXT_REGION_LENGTH__+0x7c20ad>
   2a63a:	60 93 ac 00 	sts	0x00AC, r22	; 0x8000ac <__TEXT_REGION_LENGTH__+0x7c20ac>
#endif //EXTRUDER_0_AUTO_FAN_PIN
	OCR4A = 255U;
   2a63e:	8f ef       	ldi	r24, 0xFF	; 255
   2a640:	90 e0       	ldi	r25, 0x00	; 0
   2a642:	90 93 a9 00 	sts	0x00A9, r25	; 0x8000a9 <__TEXT_REGION_LENGTH__+0x7c20a9>
   2a646:	80 93 a8 00 	sts	0x00A8, r24	; 0x8000a8 <__TEXT_REGION_LENGTH__+0x7c20a8>
	// Disable Output compare A interrupt and timer overflow interrupt
	TIMSK4 &= ~(_BV(OCIE4A) | _BV(TOIE4));
   2a64a:	80 91 72 00 	lds	r24, 0x0072	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
   2a64e:	8c 7f       	andi	r24, 0xFC	; 252
   2a650:	80 93 72 00 	sts	0x0072, r24	; 0x800072 <__TEXT_REGION_LENGTH__+0x7c2072>
	CRITICAL_SECTION_END;
   2a654:	2f bf       	out	0x3f, r18	; 63
   2a656:	78 cf       	rjmp	.-272    	; 0x2a548 <Sound_MakeCustom(unsigned int, unsigned int, bool)+0x38>

0002a658 <sound_wait_for_user()>:
/// Make sure to call sound_wait_for_user_reset() when the user has clicked the knob
///     Loud - should continuously beep
///     Silent - should be silent
///     Once - should beep once
///     Assist/Blind - as loud with beep and click on knob rotation and press
void sound_wait_for_user() {
   2a658:	cf 93       	push	r28
#if BEEPER > 0
     if (eSoundMode == e_SOUND_MODE_SILENT) return;
   2a65a:	c0 91 de 04 	lds	r28, 0x04DE	; 0x8004de <eSoundMode>
   2a65e:	c2 30       	cpi	r28, 0x02	; 2
   2a660:	59 f1       	breq	.+86     	; 0x2a6b8 <sound_wait_for_user()+0x60>

     // Handle case where only one beep is needed
     if (eSoundMode == e_SOUND_MODE_ONCE) {
   2a662:	c1 30       	cpi	r28, 0x01	; 1
   2a664:	69 f4       	brne	.+26     	; 0x2a680 <sound_wait_for_user()+0x28>
          if (bFirst) return;
   2a666:	80 91 6e 05 	lds	r24, 0x056E	; 0x80056e <_ZL6bFirst.lto_priv.497>
   2a66a:	81 11       	cpse	r24, r1
   2a66c:	25 c0       	rjmp	.+74     	; 0x2a6b8 <sound_wait_for_user()+0x60>
          Sound_MakeCustom(80, 0, false);
   2a66e:	40 e0       	ldi	r20, 0x00	; 0
   2a670:	70 e0       	ldi	r23, 0x00	; 0
   2a672:	60 e0       	ldi	r22, 0x00	; 0
   2a674:	80 e5       	ldi	r24, 0x50	; 80
   2a676:	90 e0       	ldi	r25, 0x00	; 0
   2a678:	0f 94 88 52 	call	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
          bFirst = true;
   2a67c:	c0 93 6e 05 	sts	0x056E, r28	; 0x80056e <_ZL6bFirst.lto_priv.497>
     }

     // Handle case where there should be continous beeps
     if (beep_timer.expired_cont(CONTINOUS_BEEP_PERIOD)) {
   2a680:	60 ed       	ldi	r22, 0xD0	; 208
   2a682:	77 e0       	ldi	r23, 0x07	; 7
   2a684:	8b e6       	ldi	r24, 0x6B	; 107
   2a686:	95 e0       	ldi	r25, 0x05	; 5
   2a688:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   2a68c:	88 23       	and	r24, r24
   2a68e:	a1 f0       	breq	.+40     	; 0x2a6b8 <sound_wait_for_user()+0x60>
          beep_timer.start();
   2a690:	8b e6       	ldi	r24, 0x6B	; 107
   2a692:	95 e0       	ldi	r25, 0x05	; 5
   2a694:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
          if (eSoundMode == e_SOUND_MODE_LOUD) {
   2a698:	80 91 de 04 	lds	r24, 0x04DE	; 0x8004de <eSoundMode>
   2a69c:	81 11       	cpse	r24, r1
   2a69e:	08 c0       	rjmp	.+16     	; 0x2a6b0 <sound_wait_for_user()+0x58>
               Sound_MakeCustom(80, 0, false);
   2a6a0:	40 e0       	ldi	r20, 0x00	; 0
   2a6a2:	70 e0       	ldi	r23, 0x00	; 0
   2a6a4:	60 e0       	ldi	r22, 0x00	; 0
   2a6a6:	80 e5       	ldi	r24, 0x50	; 80
   2a6a8:	90 e0       	ldi	r25, 0x00	; 0
               // Assist (lower volume sound)
               Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
          }
     }
#endif // BEEPER > 0
}
   2a6aa:	cf 91       	pop	r28

     // Handle case where there should be continous beeps
     if (beep_timer.expired_cont(CONTINOUS_BEEP_PERIOD)) {
          beep_timer.start();
          if (eSoundMode == e_SOUND_MODE_LOUD) {
               Sound_MakeCustom(80, 0, false);
   2a6ac:	0d 94 88 52 	jmp	0x2a510	; 0x2a510 <Sound_MakeCustom(unsigned int, unsigned int, bool)>
          } else {
               // Assist (lower volume sound)
               Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
   2a6b0:	80 e0       	ldi	r24, 0x00	; 0
          }
     }
#endif // BEEPER > 0
}
   2a6b2:	cf 91       	pop	r28
          beep_timer.start();
          if (eSoundMode == e_SOUND_MODE_LOUD) {
               Sound_MakeCustom(80, 0, false);
          } else {
               // Assist (lower volume sound)
               Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
   2a6b4:	0d 94 13 4f 	jmp	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
          }
     }
#endif // BEEPER > 0
}
   2a6b8:	cf 91       	pop	r28
   2a6ba:	08 95       	ret

0002a6bc <sm4_set_dir(unsigned char, unsigned char)>:

sm4_calc_delay_cb_t sm4_calc_delay_cb = 0;

void sm4_set_dir(uint8_t axis, uint8_t dir)
{
	switch (axis)
   2a6bc:	82 30       	cpi	r24, 0x02	; 2
   2a6be:	b9 f0       	breq	.+46     	; 0x2a6ee <sm4_set_dir(unsigned char, unsigned char)+0x32>
   2a6c0:	83 30       	cpi	r24, 0x03	; 3
   2a6c2:	e9 f0       	breq	.+58     	; 0x2a6fe <sm4_set_dir(unsigned char, unsigned char)+0x42>
   2a6c4:	81 30       	cpi	r24, 0x01	; 1
   2a6c6:	59 f0       	breq	.+22     	; 0x2a6de <sm4_set_dir(unsigned char, unsigned char)+0x22>
	case 0: if (dir == INVERT_X_DIR) PORTL |= 2; else PORTL &= ~2; break;
	case 1: if (dir == INVERT_Y_DIR) PORTL |= 1; else PORTL &= ~1; break;
	case 2: if (dir == INVERT_Z_DIR) PORTL |= 4; else PORTL &= ~4; break;
	case 3: if (dir == INVERT_E0_DIR) PORTL |= 64; else PORTL &= ~64; break;
#elif ((MOTHERBOARD == BOARD_EINSY_1_0a))
	case 0: if (dir == INVERT_X_DIR) PORTL |= 1; else PORTL &= ~1; break;
   2a6c8:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   2a6cc:	61 30       	cpi	r22, 0x01	; 1
   2a6ce:	29 f4       	brne	.+10     	; 0x2a6da <sm4_set_dir(unsigned char, unsigned char)+0x1e>
   2a6d0:	81 60       	ori	r24, 0x01	; 1
	case 1: if (dir == INVERT_Y_DIR) PORTL |= 2; else PORTL &= ~2; break;
	case 2: if (dir == INVERT_Z_DIR) PORTL |= 4; else PORTL &= ~4; break;
	case 3: if (dir == INVERT_E0_DIR) PORTL |= 64; else PORTL &= ~64; break;
   2a6d2:	80 93 0b 01 	sts	0x010B, r24	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
#endif
	}
	asm("nop");
   2a6d6:	00 00       	nop
}
   2a6d8:	08 95       	ret
	case 0: if (dir == INVERT_X_DIR) PORTL |= 2; else PORTL &= ~2; break;
	case 1: if (dir == INVERT_Y_DIR) PORTL |= 1; else PORTL &= ~1; break;
	case 2: if (dir == INVERT_Z_DIR) PORTL |= 4; else PORTL &= ~4; break;
	case 3: if (dir == INVERT_E0_DIR) PORTL |= 64; else PORTL &= ~64; break;
#elif ((MOTHERBOARD == BOARD_EINSY_1_0a))
	case 0: if (dir == INVERT_X_DIR) PORTL |= 1; else PORTL &= ~1; break;
   2a6da:	8e 7f       	andi	r24, 0xFE	; 254
   2a6dc:	fa cf       	rjmp	.-12     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
	case 1: if (dir == INVERT_Y_DIR) PORTL |= 2; else PORTL &= ~2; break;
   2a6de:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   2a6e2:	61 11       	cpse	r22, r1
   2a6e4:	02 c0       	rjmp	.+4      	; 0x2a6ea <sm4_set_dir(unsigned char, unsigned char)+0x2e>
   2a6e6:	82 60       	ori	r24, 0x02	; 2
   2a6e8:	f4 cf       	rjmp	.-24     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
   2a6ea:	8d 7f       	andi	r24, 0xFD	; 253
   2a6ec:	f2 cf       	rjmp	.-28     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
	case 2: if (dir == INVERT_Z_DIR) PORTL |= 4; else PORTL &= ~4; break;
   2a6ee:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   2a6f2:	61 30       	cpi	r22, 0x01	; 1
   2a6f4:	11 f4       	brne	.+4      	; 0x2a6fa <sm4_set_dir(unsigned char, unsigned char)+0x3e>
   2a6f6:	84 60       	ori	r24, 0x04	; 4
   2a6f8:	ec cf       	rjmp	.-40     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
   2a6fa:	8b 7f       	andi	r24, 0xFB	; 251
   2a6fc:	ea cf       	rjmp	.-44     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
	case 3: if (dir == INVERT_E0_DIR) PORTL |= 64; else PORTL &= ~64; break;
   2a6fe:	80 91 0b 01 	lds	r24, 0x010B	; 0x80010b <__TEXT_REGION_LENGTH__+0x7c210b>
   2a702:	61 11       	cpse	r22, r1
   2a704:	02 c0       	rjmp	.+4      	; 0x2a70a <sm4_set_dir(unsigned char, unsigned char)+0x4e>
   2a706:	80 64       	ori	r24, 0x40	; 64
   2a708:	e4 cf       	rjmp	.-56     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>
   2a70a:	8f 7b       	andi	r24, 0xBF	; 191
   2a70c:	e2 cf       	rjmp	.-60     	; 0x2a6d2 <sm4_set_dir(unsigned char, unsigned char)+0x16>

0002a70e <spiSend(unsigned char) [clone .lto_priv.382]>:
  buf[nbyte] = SPDR;
}
//------------------------------------------------------------------------------
/** SPI send a byte */
static void spiSend(uint8_t b) {
  SPDR = b;
   2a70e:	8e bd       	out	0x2e, r24	; 46
  while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a710:	0d b4       	in	r0, 0x2d	; 45
   2a712:	07 fe       	sbrs	r0, 7
   2a714:	fd cf       	rjmp	.-6      	; 0x2a710 <spiSend(unsigned char) [clone .lto_priv.382]+0x2>
}
   2a716:	08 95       	ret

0002a718 <spiRec() [clone .lto_priv.376]>:
  SPSR = spiRate & 1 || spiRate == 6 ? 0 : 1 << SPI2X;
}
//------------------------------------------------------------------------------
/** SPI receive a byte */
static uint8_t spiRec() {
  SPDR = 0XFF;
   2a718:	8f ef       	ldi	r24, 0xFF	; 255
   2a71a:	8e bd       	out	0x2e, r24	; 46
  while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a71c:	0d b4       	in	r0, 0x2d	; 45
   2a71e:	07 fe       	sbrs	r0, 7
   2a720:	fd cf       	rjmp	.-6      	; 0x2a71c <spiRec() [clone .lto_priv.376]+0x4>
  return SPDR;
   2a722:	8e b5       	in	r24, 0x2e	; 46
}
   2a724:	08 95       	ret

0002a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>:
  }
}
#endif  // SOFTWARE_SPI
//------------------------------------------------------------------------------
// send command and return error code.  Return zero for OK
uint8_t Sd2Card::cardCommand(uint8_t cmd, uint32_t arg) {
   2a726:	8f 92       	push	r8
   2a728:	9f 92       	push	r9
   2a72a:	af 92       	push	r10
   2a72c:	bf 92       	push	r11
   2a72e:	ef 92       	push	r14
   2a730:	ff 92       	push	r15
   2a732:	0f 93       	push	r16
   2a734:	1f 93       	push	r17
   2a736:	cf 93       	push	r28
   2a738:	7c 01       	movw	r14, r24
   2a73a:	c6 2f       	mov	r28, r22
   2a73c:	49 01       	movw	r8, r18
   2a73e:	5a 01       	movw	r10, r20
  WRITE(SDSS, 1);
}
//------------------------------------------------------------------------------
void Sd2Card::chipSelectLow() {
#ifndef SOFTWARE_SPI
  spiInit(spiRate_);
   2a740:	fc 01       	movw	r30, r24
   2a742:	91 81       	ldd	r25, Z+1	; 0x01
 * Initialize hardware SPI
 * Set SCK rate to F_CPU/pow(2, 1 + spiRate) for spiRate [0,6]
 */
static void spiInit(uint8_t spiRate) {
  // See avr processor documentation
  SPCR = (1 << SPE) | (1 << MSTR) | (spiRate >> 1);
   2a744:	89 2f       	mov	r24, r25
   2a746:	80 6a       	ori	r24, 0xA0	; 160
   2a748:	86 95       	lsr	r24
   2a74a:	8c bd       	out	0x2c, r24	; 44
  SPSR = spiRate & 1 || spiRate == 6 ? 0 : 1 << SPI2X;
   2a74c:	90 fd       	sbrc	r25, 0
   2a74e:	03 c0       	rjmp	.+6      	; 0x2a756 <Sd2Card::cardCommand(unsigned char, unsigned long)+0x30>
   2a750:	81 e0       	ldi	r24, 0x01	; 1
   2a752:	96 30       	cpi	r25, 0x06	; 6
   2a754:	09 f4       	brne	.+2      	; 0x2a758 <Sd2Card::cardCommand(unsigned char, unsigned long)+0x32>
   2a756:	80 e0       	ldi	r24, 0x00	; 0
   2a758:	8d bd       	out	0x2d, r24	; 45
//------------------------------------------------------------------------------
void Sd2Card::chipSelectLow() {
#ifndef SOFTWARE_SPI
  spiInit(spiRate_);
#endif  // SOFTWARE_SPI
  WRITE(SDSS, 0);
   2a75a:	9f b7       	in	r25, 0x3f	; 63
   2a75c:	f8 94       	cli
   2a75e:	80 91 05 01 	lds	r24, 0x0105	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   2a762:	8f 7b       	andi	r24, 0xBF	; 191
   2a764:	80 93 05 01 	sts	0x0105, r24	; 0x800105 <__TEXT_REGION_LENGTH__+0x7c2105>
   2a768:	9f bf       	out	0x3f, r25	; 63
uint8_t Sd2Card::cardCommand(uint8_t cmd, uint32_t arg) {
  // select card
  chipSelectLow();

  // wait up to 300 ms if busy
  waitNotBusy(300);
   2a76a:	8c e2       	ldi	r24, 0x2C	; 44
   2a76c:	91 e0       	ldi	r25, 0x01	; 1
   2a76e:	0f 94 0a 76 	call	0x2ec14	; 0x2ec14 <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]>

  // send command
  spiSend(cmd | 0x40);
   2a772:	8c 2f       	mov	r24, r28
   2a774:	80 64       	ori	r24, 0x40	; 64
   2a776:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
   2a77a:	08 e1       	ldi	r16, 0x18	; 24
   2a77c:	10 e0       	ldi	r17, 0x00	; 0

  // send argument
  for (int8_t s = 24; s >= 0; s -= 8) spiSend(arg >> s);
   2a77e:	d5 01       	movw	r26, r10
   2a780:	c4 01       	movw	r24, r8
   2a782:	00 2e       	mov	r0, r16
   2a784:	04 c0       	rjmp	.+8      	; 0x2a78e <Sd2Card::cardCommand(unsigned char, unsigned long)+0x68>
   2a786:	b6 95       	lsr	r27
   2a788:	a7 95       	ror	r26
   2a78a:	97 95       	ror	r25
   2a78c:	87 95       	ror	r24
   2a78e:	0a 94       	dec	r0
   2a790:	d2 f7       	brpl	.-12     	; 0x2a786 <Sd2Card::cardCommand(unsigned char, unsigned long)+0x60>
   2a792:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
   2a796:	08 50       	subi	r16, 0x08	; 8
   2a798:	11 09       	sbc	r17, r1
   2a79a:	08 3f       	cpi	r16, 0xF8	; 248
   2a79c:	ff ef       	ldi	r31, 0xFF	; 255
   2a79e:	1f 07       	cpc	r17, r31
   2a7a0:	71 f7       	brne	.-36     	; 0x2a77e <Sd2Card::cardCommand(unsigned char, unsigned long)+0x58>

  // send CRC
  uint8_t crc = 0XFF;
  if (cmd == CMD0) crc = 0X95;  // correct crc for CMD0 with arg 0
   2a7a2:	85 e9       	ldi	r24, 0x95	; 149
   2a7a4:	cc 23       	and	r28, r28
   2a7a6:	21 f0       	breq	.+8      	; 0x2a7b0 <Sd2Card::cardCommand(unsigned char, unsigned long)+0x8a>
  if (cmd == CMD8) crc = 0X87;  // correct crc for CMD8 with arg 0X1AA
   2a7a8:	87 e8       	ldi	r24, 0x87	; 135
   2a7aa:	c8 30       	cpi	r28, 0x08	; 8
   2a7ac:	09 f0       	breq	.+2      	; 0x2a7b0 <Sd2Card::cardCommand(unsigned char, unsigned long)+0x8a>

  // send argument
  for (int8_t s = 24; s >= 0; s -= 8) spiSend(arg >> s);

  // send CRC
  uint8_t crc = 0XFF;
   2a7ae:	8f ef       	ldi	r24, 0xFF	; 255
  if (cmd == CMD0) crc = 0X95;  // correct crc for CMD0 with arg 0
  if (cmd == CMD8) crc = 0X87;  // correct crc for CMD8 with arg 0X1AA
  spiSend(crc);
   2a7b0:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>

  // skip stuff byte for stop read
  if (cmd == CMD12) spiRec();
   2a7b4:	cc 30       	cpi	r28, 0x0C	; 12
   2a7b6:	11 f4       	brne	.+4      	; 0x2a7bc <Sd2Card::cardCommand(unsigned char, unsigned long)+0x96>
   2a7b8:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>

  // send argument
  for (int8_t s = 24; s >= 0; s -= 8) spiSend(arg >> s);

  // send CRC
  uint8_t crc = 0XFF;
   2a7bc:	c0 e0       	ldi	r28, 0x00	; 0

  // skip stuff byte for stop read
  if (cmd == CMD12) spiRec();

  // wait for response
  for (uint8_t i = 0; ((status_ = spiRec()) & 0X80) && i != 0XFF; i++) { /* Intentionally left empty */ }
   2a7be:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2a7c2:	f7 01       	movw	r30, r14
   2a7c4:	82 83       	std	Z+2, r24	; 0x02
   2a7c6:	87 ff       	sbrs	r24, 7
   2a7c8:	04 c0       	rjmp	.+8      	; 0x2a7d2 <Sd2Card::cardCommand(unsigned char, unsigned long)+0xac>
   2a7ca:	cf 3f       	cpi	r28, 0xFF	; 255
   2a7cc:	11 f0       	breq	.+4      	; 0x2a7d2 <Sd2Card::cardCommand(unsigned char, unsigned long)+0xac>
   2a7ce:	cf 5f       	subi	r28, 0xFF	; 255
   2a7d0:	f6 cf       	rjmp	.-20     	; 0x2a7be <Sd2Card::cardCommand(unsigned char, unsigned long)+0x98>
  return status_;
}
   2a7d2:	cf 91       	pop	r28
   2a7d4:	1f 91       	pop	r17
   2a7d6:	0f 91       	pop	r16
   2a7d8:	ff 90       	pop	r15
   2a7da:	ef 90       	pop	r14
   2a7dc:	bf 90       	pop	r11
   2a7de:	af 90       	pop	r10
   2a7e0:	9f 90       	pop	r9
   2a7e2:	8f 90       	pop	r8
   2a7e4:	08 95       	ret

0002a7e6 <Sd2Card::writeBlock(unsigned long, unsigned char const*)>:
 * \param[in] blockNumber Logical block to be written.
 * \param[in] src Pointer to the location of the data to be written.
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
bool Sd2Card::writeBlock(uint32_t blockNumber, const uint8_t* src) {
   2a7e6:	0f 93       	push	r16
   2a7e8:	1f 93       	push	r17
   2a7ea:	cf 93       	push	r28
   2a7ec:	df 93       	push	r29
   2a7ee:	ec 01       	movw	r28, r24
   2a7f0:	89 01       	movw	r16, r18
  // use address if not SDHC card
  if (type() != SD_CARD_TYPE_SDHC) blockNumber <<= 9;
   2a7f2:	8b 81       	ldd	r24, Y+3	; 0x03
   2a7f4:	83 30       	cpi	r24, 0x03	; 3
   2a7f6:	39 f0       	breq	.+14     	; 0x2a806 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x20>
   2a7f8:	89 e0       	ldi	r24, 0x09	; 9
   2a7fa:	44 0f       	add	r20, r20
   2a7fc:	55 1f       	adc	r21, r21
   2a7fe:	66 1f       	adc	r22, r22
   2a800:	77 1f       	adc	r23, r23
   2a802:	8a 95       	dec	r24
   2a804:	d1 f7       	brne	.-12     	; 0x2a7fa <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x14>
  if (cardCommand(CMD24, blockNumber)) {
   2a806:	9a 01       	movw	r18, r20
   2a808:	ab 01       	movw	r20, r22
   2a80a:	68 e1       	ldi	r22, 0x18	; 24
   2a80c:	ce 01       	movw	r24, r28
   2a80e:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   2a812:	88 23       	and	r24, r24
   2a814:	19 f0       	breq	.+6      	; 0x2a81c <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x36>
  bool eraseSingleBlockEnable();
  /**
   *  Set SD error code.
   *  \param[in] code value for error code.
   */
  void error(uint8_t code) {errorCode_ = code;}
   2a816:	86 e0       	ldi	r24, 0x06	; 6
   2a818:	88 83       	st	Y, r24
   2a81a:	39 c0       	rjmp	.+114    	; 0x2a88e <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0xa8>
}
//------------------------------------------------------------------------------
/** SPI send block - only one call so force inline */
static inline __attribute__((always_inline))
  void spiSendBlock(uint8_t token, const uint8_t* buf) {
  SPDR = token;
   2a81c:	8e ef       	ldi	r24, 0xFE	; 254
   2a81e:	8e bd       	out	0x2e, r24	; 46
   2a820:	f8 01       	movw	r30, r16
   2a822:	c8 01       	movw	r24, r16
   2a824:	9e 5f       	subi	r25, 0xFE	; 254
  for (uint16_t i = 0; i < 512; i += 2) {
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a826:	0d b4       	in	r0, 0x2d	; 45
   2a828:	07 fe       	sbrs	r0, 7
   2a82a:	fd cf       	rjmp	.-6      	; 0x2a826 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x40>
    SPDR = buf[i];
   2a82c:	20 81       	ld	r18, Z
   2a82e:	2e bd       	out	0x2e, r18	; 46
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a830:	0d b4       	in	r0, 0x2d	; 45
   2a832:	07 fe       	sbrs	r0, 7
   2a834:	fd cf       	rjmp	.-6      	; 0x2a830 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x4a>
    SPDR = buf[i + 1];
   2a836:	21 81       	ldd	r18, Z+1	; 0x01
   2a838:	2e bd       	out	0x2e, r18	; 46
   2a83a:	32 96       	adiw	r30, 0x02	; 2
//------------------------------------------------------------------------------
/** SPI send block - only one call so force inline */
static inline __attribute__((always_inline))
  void spiSendBlock(uint8_t token, const uint8_t* buf) {
  SPDR = token;
  for (uint16_t i = 0; i < 512; i += 2) {
   2a83c:	e8 17       	cp	r30, r24
   2a83e:	f9 07       	cpc	r31, r25
   2a840:	91 f7       	brne	.-28     	; 0x2a826 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x40>
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
    SPDR = buf[i];
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
    SPDR = buf[i + 1];
  }
  while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a842:	0d b4       	in	r0, 0x2d	; 45
   2a844:	07 fe       	sbrs	r0, 7
   2a846:	fd cf       	rjmp	.-6      	; 0x2a842 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x5c>
//------------------------------------------------------------------------------
// send one block of data for write block or write multiple blocks
bool Sd2Card::writeData(uint8_t token, const uint8_t* src) {
  spiSendBlock(token, src);

  spiSend(0xff);  // dummy crc
   2a848:	8f ef       	ldi	r24, 0xFF	; 255
   2a84a:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
  spiSend(0xff);  // dummy crc
   2a84e:	8f ef       	ldi	r24, 0xFF	; 255
   2a850:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>

  status_ = spiRec();
   2a854:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2a858:	8a 83       	std	Y+2, r24	; 0x02
  if ((status_ & DATA_RES_MASK) != DATA_RES_ACCEPTED) {
   2a85a:	8f 71       	andi	r24, 0x1F	; 31
   2a85c:	85 30       	cpi	r24, 0x05	; 5
   2a85e:	99 f4       	brne	.+38     	; 0x2a886 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0xa0>
    goto fail;
  }
  if (!writeData(DATA_START_BLOCK, src)) goto fail;

  // wait for flash programming to complete
  if (!waitNotBusy(SD_WRITE_TIMEOUT)) {
   2a860:	88 e5       	ldi	r24, 0x58	; 88
   2a862:	92 e0       	ldi	r25, 0x02	; 2
   2a864:	0f 94 0a 76 	call	0x2ec14	; 0x2ec14 <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]>
   2a868:	18 2f       	mov	r17, r24
   2a86a:	87 e1       	ldi	r24, 0x17	; 23
   2a86c:	11 23       	and	r17, r17
   2a86e:	a1 f2       	breq	.-88     	; 0x2a818 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x32>
    error(SD_CARD_ERROR_WRITE_TIMEOUT);
    goto fail;
  }
  // response is r2 so get and check two bytes for nonzero
  if (cardCommand(CMD13, 0) || spiRec()) {
   2a870:	20 e0       	ldi	r18, 0x00	; 0
   2a872:	30 e0       	ldi	r19, 0x00	; 0
   2a874:	a9 01       	movw	r20, r18
   2a876:	6d e0       	ldi	r22, 0x0D	; 13
   2a878:	ce 01       	movw	r24, r28
   2a87a:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   2a87e:	88 23       	and	r24, r24
   2a880:	51 f0       	breq	.+20     	; 0x2a896 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0xb0>
   2a882:	86 e1       	ldi	r24, 0x16	; 22
   2a884:	c9 cf       	rjmp	.-110    	; 0x2a818 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x32>
   2a886:	83 e1       	ldi	r24, 0x13	; 19
   2a888:	88 83       	st	Y, r24
    goto fail;
  }
  return true;

 fail:
  chipSelectHigh();
   2a88a:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  }
  chipSelectHigh();
  return true;

 fail:
  chipSelectHigh();
   2a88e:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  return false;
   2a892:	10 e0       	ldi	r17, 0x00	; 0
   2a894:	06 c0       	rjmp	.+12     	; 0x2a8a2 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0xbc>
  if (!waitNotBusy(SD_WRITE_TIMEOUT)) {
    error(SD_CARD_ERROR_WRITE_TIMEOUT);
    goto fail;
  }
  // response is r2 so get and check two bytes for nonzero
  if (cardCommand(CMD13, 0) || spiRec()) {
   2a896:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2a89a:	81 11       	cpse	r24, r1
   2a89c:	f2 cf       	rjmp	.-28     	; 0x2a882 <Sd2Card::writeBlock(unsigned long, unsigned char const*)+0x9c>
    error(SD_CARD_ERROR_WRITE_PROGRAMMING);
    goto fail;
  }
  chipSelectHigh();
   2a89e:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  return true;

 fail:
  chipSelectHigh();
  return false;
}
   2a8a2:	81 2f       	mov	r24, r17
   2a8a4:	df 91       	pop	r29
   2a8a6:	cf 91       	pop	r28
   2a8a8:	1f 91       	pop	r17
   2a8aa:	0f 91       	pop	r16
   2a8ac:	08 95       	ret

0002a8ae <SdVolume::cacheFlush()>:

 fail:
  return false;
}
//------------------------------------------------------------------------------
bool SdVolume::cacheFlush() {
   2a8ae:	cf 93       	push	r28
  if (cacheDirty_) {
   2a8b0:	80 91 99 0e 	lds	r24, 0x0E99	; 0x800e99 <SdVolume::cacheDirty_>
      }
      cacheMirrorBlock_ = 0;
    }
    cacheDirty_ = 0;
  }
  return true;
   2a8b4:	c1 e0       	ldi	r28, 0x01	; 1
 fail:
  return false;
}
//------------------------------------------------------------------------------
bool SdVolume::cacheFlush() {
  if (cacheDirty_) {
   2a8b6:	88 23       	and	r24, r24
   2a8b8:	a1 f0       	breq	.+40     	; 0x2a8e2 <SdVolume::cacheFlush()+0x34>
    if (!sdCard_->writeBlock(cacheBlockNumber_, cacheBuffer_.data)) {
   2a8ba:	40 91 91 0e 	lds	r20, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2a8be:	50 91 92 0e 	lds	r21, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2a8c2:	60 91 93 0e 	lds	r22, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2a8c6:	70 91 94 0e 	lds	r23, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2a8ca:	2d e9       	ldi	r18, 0x9D	; 157
   2a8cc:	3e e0       	ldi	r19, 0x0E	; 14
   2a8ce:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   2a8d2:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   2a8d6:	0f 94 f3 53 	call	0x2a7e6	; 0x2a7e6 <Sd2Card::writeBlock(unsigned long, unsigned char const*)>
   2a8da:	c8 2f       	mov	r28, r24
   2a8dc:	81 11       	cpse	r24, r1
   2a8de:	04 c0       	rjmp	.+8      	; 0x2a8e8 <SdVolume::cacheFlush()+0x3a>
    cacheDirty_ = 0;
  }
  return true;

 fail:
  return false;
   2a8e0:	c0 e0       	ldi	r28, 0x00	; 0
}
   2a8e2:	8c 2f       	mov	r24, r28
   2a8e4:	cf 91       	pop	r28
   2a8e6:	08 95       	ret
  if (cacheDirty_) {
    if (!sdCard_->writeBlock(cacheBlockNumber_, cacheBuffer_.data)) {
      goto fail;
    }
    // mirror FAT tables
    if (cacheMirrorBlock_) {
   2a8e8:	40 91 95 0e 	lds	r20, 0x0E95	; 0x800e95 <SdVolume::cacheMirrorBlock_>
   2a8ec:	50 91 96 0e 	lds	r21, 0x0E96	; 0x800e96 <SdVolume::cacheMirrorBlock_+0x1>
   2a8f0:	60 91 97 0e 	lds	r22, 0x0E97	; 0x800e97 <SdVolume::cacheMirrorBlock_+0x2>
   2a8f4:	70 91 98 0e 	lds	r23, 0x0E98	; 0x800e98 <SdVolume::cacheMirrorBlock_+0x3>
   2a8f8:	41 15       	cp	r20, r1
   2a8fa:	51 05       	cpc	r21, r1
   2a8fc:	61 05       	cpc	r22, r1
   2a8fe:	71 05       	cpc	r23, r1
   2a900:	91 f0       	breq	.+36     	; 0x2a926 <SdVolume::cacheFlush()+0x78>
      if (!sdCard_->writeBlock(cacheMirrorBlock_, cacheBuffer_.data)) {
   2a902:	2d e9       	ldi	r18, 0x9D	; 157
   2a904:	3e e0       	ldi	r19, 0x0E	; 14
   2a906:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   2a90a:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   2a90e:	0f 94 f3 53 	call	0x2a7e6	; 0x2a7e6 <Sd2Card::writeBlock(unsigned long, unsigned char const*)>
   2a912:	88 23       	and	r24, r24
   2a914:	29 f3       	breq	.-54     	; 0x2a8e0 <SdVolume::cacheFlush()+0x32>
        goto fail;
      }
      cacheMirrorBlock_ = 0;
   2a916:	10 92 95 0e 	sts	0x0E95, r1	; 0x800e95 <SdVolume::cacheMirrorBlock_>
   2a91a:	10 92 96 0e 	sts	0x0E96, r1	; 0x800e96 <SdVolume::cacheMirrorBlock_+0x1>
   2a91e:	10 92 97 0e 	sts	0x0E97, r1	; 0x800e97 <SdVolume::cacheMirrorBlock_+0x2>
   2a922:	10 92 98 0e 	sts	0x0E98, r1	; 0x800e98 <SdVolume::cacheMirrorBlock_+0x3>
    }
    cacheDirty_ = 0;
   2a926:	10 92 99 0e 	sts	0x0E99, r1	; 0x800e99 <SdVolume::cacheDirty_>
   2a92a:	db cf       	rjmp	.-74     	; 0x2a8e2 <SdVolume::cacheFlush()+0x34>

0002a92c <Sd2Card::readBlock(unsigned long, unsigned char*)>:
 * \param[in] blockNumber Logical block to be read.
 * \param[out] dst Pointer to the location that will receive the data.
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
bool Sd2Card::readBlock(uint32_t blockNumber, uint8_t* dst) {
   2a92c:	2f 92       	push	r2
   2a92e:	3f 92       	push	r3
   2a930:	4f 92       	push	r4
   2a932:	5f 92       	push	r5
   2a934:	6f 92       	push	r6
   2a936:	7f 92       	push	r7
   2a938:	8f 92       	push	r8
   2a93a:	9f 92       	push	r9
   2a93c:	af 92       	push	r10
   2a93e:	bf 92       	push	r11
   2a940:	cf 92       	push	r12
   2a942:	df 92       	push	r13
   2a944:	ef 92       	push	r14
   2a946:	ff 92       	push	r15
   2a948:	0f 93       	push	r16
   2a94a:	1f 93       	push	r17
   2a94c:	cf 93       	push	r28
   2a94e:	df 93       	push	r29
   2a950:	ec 01       	movw	r28, r24
   2a952:	2a 01       	movw	r4, r20
   2a954:	3b 01       	movw	r6, r22
   2a956:	69 01       	movw	r12, r18
#ifdef SD_CHECK_AND_RETRY
  uint8_t retryCnt = 3;
  // use address if not SDHC card
  if (type()!= SD_CARD_TYPE_SDHC) blockNumber <<= 9;
   2a958:	8b 81       	ldd	r24, Y+3	; 0x03
   2a95a:	83 30       	cpi	r24, 0x03	; 3
   2a95c:	39 f0       	breq	.+14     	; 0x2a96c <Sd2Card::readBlock(unsigned long, unsigned char*)+0x40>
   2a95e:	69 e0       	ldi	r22, 0x09	; 9
   2a960:	44 0c       	add	r4, r4
   2a962:	55 1c       	adc	r5, r5
   2a964:	66 1c       	adc	r6, r6
   2a966:	77 1c       	adc	r7, r7
   2a968:	6a 95       	dec	r22
   2a96a:	d1 f7       	brne	.-12     	; 0x2a960 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x34>
 retry2:
   2a96c:	43 e0       	ldi	r20, 0x03	; 3
   2a96e:	94 2e       	mov	r9, r20
   2a970:	56 01       	movw	r10, r12
   2a972:	81 e0       	ldi	r24, 0x01	; 1
   2a974:	a8 1a       	sub	r10, r24
   2a976:	8e ef       	ldi	r24, 0xFE	; 254
   2a978:	b8 0a       	sbc	r11, r24
   2a97a:	16 01       	movw	r2, r12
   2a97c:	ee ef       	ldi	r30, 0xFE	; 254
   2a97e:	3e 1a       	sub	r3, r30
   2a980:	54 e0       	ldi	r21, 0x04	; 4
   2a982:	85 2e       	mov	r8, r21
  retryCnt --;
   2a984:	9a 94       	dec	r9
  if (cardCommand(CMD17, blockNumber)) {
   2a986:	a3 01       	movw	r20, r6
   2a988:	92 01       	movw	r18, r4
   2a98a:	61 e1       	ldi	r22, 0x11	; 17
   2a98c:	ce 01       	movw	r24, r28
   2a98e:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   2a992:	88 23       	and	r24, r24
   2a994:	79 f0       	breq	.+30     	; 0x2a9b4 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x88>
   2a996:	88 82       	st	Y, r8
    error(SD_CARD_ERROR_CMD17);
    if (retryCnt > 0) goto retry;
   2a998:	99 20       	and	r9, r9
   2a99a:	09 f4       	brne	.+2      	; 0x2a99e <Sd2Card::readBlock(unsigned long, unsigned char*)+0x72>
   2a99c:	7a c0       	rjmp	.+244    	; 0x2aa92 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x166>
    if (retryCnt > 0) goto retry;
    goto fail;
  }
  return true;
 retry:
   chipSelectHigh();
   2a99e:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
   cardCommand(CMD12, 0);//Try sending a stop command, but ignore the result.
   2a9a2:	20 e0       	ldi	r18, 0x00	; 0
   2a9a4:	30 e0       	ldi	r19, 0x00	; 0
   2a9a6:	a9 01       	movw	r20, r18
   2a9a8:	6c e0       	ldi	r22, 0x0C	; 12
   2a9aa:	ce 01       	movw	r24, r28
   2a9ac:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   errorCode_ = 0;
   2a9b0:	18 82       	st	Y, r1
   2a9b2:	e8 cf       	rjmp	.-48     	; 0x2a984 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x58>
#endif

//------------------------------------------------------------------------------
bool Sd2Card::readData(uint8_t* dst, uint16_t count) {
  // wait for start block token
  uint16_t t0 = _millis();
   2a9b4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2a9b8:	8b 01       	movw	r16, r22
  while ((status_ = spiRec()) == 0XFF) {
   2a9ba:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2a9be:	8a 83       	std	Y+2, r24	; 0x02
   2a9c0:	8f 3f       	cpi	r24, 0xFF	; 255
   2a9c2:	91 f4       	brne	.+36     	; 0x2a9e8 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xbc>
    if (((uint16_t)_millis() - t0) > SD_READ_TIMEOUT) {
   2a9c4:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2a9c8:	60 1b       	sub	r22, r16
   2a9ca:	71 0b       	sbc	r23, r17
   2a9cc:	6d 32       	cpi	r22, 0x2D	; 45
   2a9ce:	71 40       	sbci	r23, 0x01	; 1
   2a9d0:	a0 f3       	brcs	.-24     	; 0x2a9ba <Sd2Card::readBlock(unsigned long, unsigned char*)+0x8e>
   2a9d2:	81 e1       	ldi	r24, 0x11	; 17
   2a9d4:	88 83       	st	Y, r24
  if (flash_air_compatible_)
    spiSend(0XFF);
  return true;

 fail:
  chipSelectHigh();
   2a9d6:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  // Toshiba FlashAir Patch. Purge pending status byte.
  if (flash_air_compatible_)
   2a9da:	8c 81       	ldd	r24, Y+4	; 0x04
   2a9dc:	88 23       	and	r24, r24
   2a9de:	e1 f2       	breq	.-72     	; 0x2a998 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x6c>
    spiSend(0XFF);
   2a9e0:	8f ef       	ldi	r24, 0xFF	; 255
   2a9e2:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
   2a9e6:	d8 cf       	rjmp	.-80     	; 0x2a998 <Sd2Card::readBlock(unsigned long, unsigned char*)+0x6c>
    if (((uint16_t)_millis() - t0) > SD_READ_TIMEOUT) {
      error(SD_CARD_ERROR_READ_TIMEOUT);
      goto fail;
    }
  }
  if (status_ != DATA_START_BLOCK) {
   2a9e8:	8e 3f       	cpi	r24, 0xFE	; 254
   2a9ea:	11 f0       	breq	.+4      	; 0x2a9f0 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xc4>
   2a9ec:	8f e0       	ldi	r24, 0x0F	; 15
   2a9ee:	f2 cf       	rjmp	.-28     	; 0x2a9d4 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xa8>
//------------------------------------------------------------------------------
/** SPI read data - only one call so force inline */
static inline __attribute__((always_inline))
void spiRead(uint8_t* buf, uint16_t nbyte) {
  if (nbyte-- == 0) return;
  SPDR = 0XFF;
   2a9f0:	8f ef       	ldi	r24, 0xFF	; 255
   2a9f2:	8e bd       	out	0x2e, r24	; 46
   2a9f4:	d6 01       	movw	r26, r12
   2a9f6:	f6 01       	movw	r30, r12
  for (uint16_t i = 0; i < nbyte; i++) {
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2a9f8:	0d b4       	in	r0, 0x2d	; 45
   2a9fa:	07 fe       	sbrs	r0, 7
   2a9fc:	fd cf       	rjmp	.-6      	; 0x2a9f8 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xcc>
    buf[i] = SPDR;
   2a9fe:	9e b5       	in	r25, 0x2e	; 46
   2aa00:	91 93       	st	Z+, r25
    SPDR = 0XFF;
   2aa02:	8e bd       	out	0x2e, r24	; 46
/** SPI read data - only one call so force inline */
static inline __attribute__((always_inline))
void spiRead(uint8_t* buf, uint16_t nbyte) {
  if (nbyte-- == 0) return;
  SPDR = 0XFF;
  for (uint16_t i = 0; i < nbyte; i++) {
   2aa04:	ea 15       	cp	r30, r10
   2aa06:	fb 05       	cpc	r31, r11
   2aa08:	b9 f7       	brne	.-18     	; 0x2a9f8 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xcc>
    while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
    buf[i] = SPDR;
    SPDR = 0XFF;
  }
  while (!(SPSR & (1 << SPIF))) { /* Intentionally left empty */ }
   2aa0a:	0d b4       	in	r0, 0x2d	; 45
   2aa0c:	07 fe       	sbrs	r0, 7
   2aa0e:	fd cf       	rjmp	.-6      	; 0x2aa0a <Sd2Card::readBlock(unsigned long, unsigned char*)+0xde>
  buf[nbyte] = SPDR;
   2aa10:	8e b5       	in	r24, 0x2e	; 46
   2aa12:	f5 01       	movw	r30, r10
   2aa14:	80 83       	st	Z, r24
  0x7C26, 0x6C07, 0x5C64, 0x4C45, 0x3CA2, 0x2C83, 0x1CE0, 0x0CC1,
  0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8,
  0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0
};
static uint16_t CRC_CCITT(const uint8_t* data, size_t n) {
  uint16_t crc = 0;
   2aa16:	f1 2c       	mov	r15, r1
   2aa18:	e1 2c       	mov	r14, r1
  for (size_t i = 0; i < n; i++) {
    crc = pgm_read_word(&crctab[(crc >> 8 ^ data[i]) & 0XFF]) ^ (crc << 8);
   2aa1a:	8d 91       	ld	r24, X+
   2aa1c:	ef 2d       	mov	r30, r15
   2aa1e:	ff 27       	eor	r31, r31
   2aa20:	e8 27       	eor	r30, r24
   2aa22:	ee 0f       	add	r30, r30
   2aa24:	ff 1f       	adc	r31, r31
   2aa26:	e9 59       	subi	r30, 0x99	; 153
   2aa28:	f0 47       	sbci	r31, 0x70	; 112
   2aa2a:	85 91       	lpm	r24, Z+
   2aa2c:	94 91       	lpm	r25, Z
   2aa2e:	fe 2c       	mov	r15, r14
   2aa30:	ee 24       	eor	r14, r14
   2aa32:	e8 26       	eor	r14, r24
   2aa34:	f9 26       	eor	r15, r25
  0xEF1F, 0xFF3E, 0xCF5D, 0xDF7C, 0xAF9B, 0xBFBA, 0x8FD9, 0x9FF8,
  0x6E17, 0x7E36, 0x4E55, 0x5E74, 0x2E93, 0x3EB2, 0x0ED1, 0x1EF0
};
static uint16_t CRC_CCITT(const uint8_t* data, size_t n) {
  uint16_t crc = 0;
  for (size_t i = 0; i < n; i++) {
   2aa36:	2a 16       	cp	r2, r26
   2aa38:	3b 06       	cpc	r3, r27
   2aa3a:	79 f7       	brne	.-34     	; 0x2aa1a <Sd2Card::readBlock(unsigned long, unsigned char*)+0xee>
  spiRead(dst, count);

#ifdef SD_CHECK_AND_RETRY
  {
    uint16_t calcCrc = CRC_CCITT(dst, count);
    uint16_t recvCrc = spiRec() << 8;
   2aa3c:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2aa40:	08 2f       	mov	r16, r24
   2aa42:	10 e0       	ldi	r17, 0x00	; 0
   2aa44:	10 2f       	mov	r17, r16
   2aa46:	00 27       	eor	r16, r16
    recvCrc |= spiRec();
   2aa48:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2aa4c:	08 2b       	or	r16, r24
    if (calcCrc != recvCrc)
   2aa4e:	0e 15       	cp	r16, r14
   2aa50:	1f 05       	cpc	r17, r15
   2aa52:	19 f0       	breq	.+6      	; 0x2aa5a <Sd2Card::readBlock(unsigned long, unsigned char*)+0x12e>
   2aa54:	f0 e2       	ldi	r31, 0x20	; 32
   2aa56:	f8 83       	st	Y, r31
   2aa58:	be cf       	rjmp	.-132    	; 0x2a9d6 <Sd2Card::readBlock(unsigned long, unsigned char*)+0xaa>
#else
  // discard CRC
  spiRec();
  spiRec();
#endif
  chipSelectHigh();
   2aa5a:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  // Toshiba FlashAir Patch. Purge pending status byte.
  if (flash_air_compatible_)
   2aa5e:	cc 81       	ldd	r28, Y+4	; 0x04
   2aa60:	cc 23       	and	r28, r28
   2aa62:	d9 f0       	breq	.+54     	; 0x2aa9a <Sd2Card::readBlock(unsigned long, unsigned char*)+0x16e>
    spiSend(0XFF);
   2aa64:	8f ef       	ldi	r24, 0xFF	; 255
   2aa66:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
#endif

 fail:
  chipSelectHigh();
  return false;
}
   2aa6a:	8c 2f       	mov	r24, r28
   2aa6c:	df 91       	pop	r29
   2aa6e:	cf 91       	pop	r28
   2aa70:	1f 91       	pop	r17
   2aa72:	0f 91       	pop	r16
   2aa74:	ff 90       	pop	r15
   2aa76:	ef 90       	pop	r14
   2aa78:	df 90       	pop	r13
   2aa7a:	cf 90       	pop	r12
   2aa7c:	bf 90       	pop	r11
   2aa7e:	af 90       	pop	r10
   2aa80:	9f 90       	pop	r9
   2aa82:	8f 90       	pop	r8
   2aa84:	7f 90       	pop	r7
   2aa86:	6f 90       	pop	r6
   2aa88:	5f 90       	pop	r5
   2aa8a:	4f 90       	pop	r4
   2aa8c:	3f 90       	pop	r3
   2aa8e:	2f 90       	pop	r2
   2aa90:	08 95       	ret
  }
  return readData(dst, 512);
#endif

 fail:
  chipSelectHigh();
   2aa92:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  return false;
   2aa96:	c0 e0       	ldi	r28, 0x00	; 0
   2aa98:	e8 cf       	rjmp	.-48     	; 0x2aa6a <Sd2Card::readBlock(unsigned long, unsigned char*)+0x13e>
  if (!readData(dst, 512))
  {
    if (retryCnt > 0) goto retry;
    goto fail;
  }
  return true;
   2aa9a:	c1 e0       	ldi	r28, 0x01	; 1
   2aa9c:	e6 cf       	rjmp	.-52     	; 0x2aa6a <Sd2Card::readBlock(unsigned long, unsigned char*)+0x13e>

0002aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>:

 fail:
  return false;
}
//------------------------------------------------------------------------------
bool SdVolume::cacheRawBlock(uint32_t blockNumber, bool dirty) {
   2aa9e:	cf 92       	push	r12
   2aaa0:	df 92       	push	r13
   2aaa2:	ef 92       	push	r14
   2aaa4:	ff 92       	push	r15
   2aaa6:	cf 93       	push	r28
   2aaa8:	6b 01       	movw	r12, r22
   2aaaa:	7c 01       	movw	r14, r24
   2aaac:	c4 2f       	mov	r28, r20
  if (cacheBlockNumber_ != blockNumber) {
   2aaae:	80 91 91 0e 	lds	r24, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2aab2:	90 91 92 0e 	lds	r25, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2aab6:	a0 91 93 0e 	lds	r26, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2aaba:	b0 91 94 0e 	lds	r27, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2aabe:	8c 15       	cp	r24, r12
   2aac0:	9d 05       	cpc	r25, r13
   2aac2:	ae 05       	cpc	r26, r14
   2aac4:	bf 05       	cpc	r27, r15
   2aac6:	01 f1       	breq	.+64     	; 0x2ab08 <SdVolume::cacheRawBlock(unsigned long, bool)+0x6a>
    if (!cacheFlush()) goto fail;
   2aac8:	0f 94 57 54 	call	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>
   2aacc:	81 11       	cpse	r24, r1
   2aace:	08 c0       	rjmp	.+16     	; 0x2aae0 <SdVolume::cacheRawBlock(unsigned long, bool)+0x42>
  }
  if (dirty) cacheDirty_ = true;
  return true;

 fail:
  return false;
   2aad0:	c0 e0       	ldi	r28, 0x00	; 0
}
   2aad2:	8c 2f       	mov	r24, r28
   2aad4:	cf 91       	pop	r28
   2aad6:	ff 90       	pop	r15
   2aad8:	ef 90       	pop	r14
   2aada:	df 90       	pop	r13
   2aadc:	cf 90       	pop	r12
   2aade:	08 95       	ret
}
//------------------------------------------------------------------------------
bool SdVolume::cacheRawBlock(uint32_t blockNumber, bool dirty) {
  if (cacheBlockNumber_ != blockNumber) {
    if (!cacheFlush()) goto fail;
    if (!sdCard_->readBlock(blockNumber, cacheBuffer_.data)) goto fail;
   2aae0:	2d e9       	ldi	r18, 0x9D	; 157
   2aae2:	3e e0       	ldi	r19, 0x0E	; 14
   2aae4:	b7 01       	movw	r22, r14
   2aae6:	a6 01       	movw	r20, r12
   2aae8:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   2aaec:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   2aaf0:	0f 94 96 54 	call	0x2a92c	; 0x2a92c <Sd2Card::readBlock(unsigned long, unsigned char*)>
   2aaf4:	88 23       	and	r24, r24
   2aaf6:	61 f3       	breq	.-40     	; 0x2aad0 <SdVolume::cacheRawBlock(unsigned long, bool)+0x32>
    cacheBlockNumber_ = blockNumber;
   2aaf8:	c0 92 91 0e 	sts	0x0E91, r12	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2aafc:	d0 92 92 0e 	sts	0x0E92, r13	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2ab00:	e0 92 93 0e 	sts	0x0E93, r14	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2ab04:	f0 92 94 0e 	sts	0x0E94, r15	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
  }
  if (dirty) cacheDirty_ = true;
   2ab08:	cc 23       	and	r28, r28
   2ab0a:	21 f0       	breq	.+8      	; 0x2ab14 <SdVolume::cacheRawBlock(unsigned long, bool)+0x76>
   2ab0c:	81 e0       	ldi	r24, 0x01	; 1
   2ab0e:	80 93 99 0e 	sts	0x0E99, r24	; 0x800e99 <SdVolume::cacheDirty_>
   2ab12:	df cf       	rjmp	.-66     	; 0x2aad2 <SdVolume::cacheRawBlock(unsigned long, bool)+0x34>
  return true;
   2ab14:	c1 e0       	ldi	r28, 0x01	; 1
   2ab16:	dd cf       	rjmp	.-70     	; 0x2aad2 <SdVolume::cacheRawBlock(unsigned long, bool)+0x34>

0002ab18 <SdVolume::fatPut(unsigned long, unsigned long)>:
 fail:
  return false;
}
//------------------------------------------------------------------------------
// Store a FAT entry
bool SdVolume::fatPut(uint32_t cluster, uint32_t value) {
   2ab18:	4f 92       	push	r4
   2ab1a:	5f 92       	push	r5
   2ab1c:	6f 92       	push	r6
   2ab1e:	7f 92       	push	r7
   2ab20:	8f 92       	push	r8
   2ab22:	9f 92       	push	r9
   2ab24:	af 92       	push	r10
   2ab26:	bf 92       	push	r11
   2ab28:	cf 92       	push	r12
   2ab2a:	df 92       	push	r13
   2ab2c:	ef 92       	push	r14
   2ab2e:	ff 92       	push	r15
   2ab30:	0f 93       	push	r16
   2ab32:	1f 93       	push	r17
   2ab34:	cf 93       	push	r28
   2ab36:	df 93       	push	r29
   2ab38:	ec 01       	movw	r28, r24
  uint32_t lba;
  // error if reserved cluster
  if (cluster < 2) goto fail;
   2ab3a:	42 30       	cpi	r20, 0x02	; 2
   2ab3c:	51 05       	cpc	r21, r1
   2ab3e:	61 05       	cpc	r22, r1
   2ab40:	71 05       	cpc	r23, r1
   2ab42:	90 f4       	brcc	.+36     	; 0x2ab68 <SdVolume::fatPut(unsigned long, unsigned long)+0x50>
  // mirror second FAT
  if (fatCount_ > 1) cacheMirrorBlock_ = lba + blocksPerFat_;
  return true;

 fail:
  return false;
   2ab44:	80 e0       	ldi	r24, 0x00	; 0
}
   2ab46:	df 91       	pop	r29
   2ab48:	cf 91       	pop	r28
   2ab4a:	1f 91       	pop	r17
   2ab4c:	0f 91       	pop	r16
   2ab4e:	ff 90       	pop	r15
   2ab50:	ef 90       	pop	r14
   2ab52:	df 90       	pop	r13
   2ab54:	cf 90       	pop	r12
   2ab56:	bf 90       	pop	r11
   2ab58:	af 90       	pop	r10
   2ab5a:	9f 90       	pop	r9
   2ab5c:	8f 90       	pop	r8
   2ab5e:	7f 90       	pop	r7
   2ab60:	6f 90       	pop	r6
   2ab62:	5f 90       	pop	r5
   2ab64:	4f 90       	pop	r4
   2ab66:	08 95       	ret
  uint32_t lba;
  // error if reserved cluster
  if (cluster < 2) goto fail;

  // error if not in FAT
  if (cluster > (clusterCount_ + 1)) goto fail;
   2ab68:	89 85       	ldd	r24, Y+9	; 0x09
   2ab6a:	9a 85       	ldd	r25, Y+10	; 0x0a
   2ab6c:	ab 85       	ldd	r26, Y+11	; 0x0b
   2ab6e:	bc 85       	ldd	r27, Y+12	; 0x0c
   2ab70:	01 96       	adiw	r24, 0x01	; 1
   2ab72:	a1 1d       	adc	r26, r1
   2ab74:	b1 1d       	adc	r27, r1
   2ab76:	84 17       	cp	r24, r20
   2ab78:	95 07       	cpc	r25, r21
   2ab7a:	a6 07       	cpc	r26, r22
   2ab7c:	b7 07       	cpc	r27, r23
   2ab7e:	10 f3       	brcs	.-60     	; 0x2ab44 <SdVolume::fatPut(unsigned long, unsigned long)+0x2c>
      tmp = ((cacheBuffer_.data[index] & 0XF0)) | tmp >> 4;
    }
    cacheBuffer_.data[index] = tmp;
    return true;
  }
  if (fatType_ == 16) {
   2ab80:	8f 89       	ldd	r24, Y+23	; 0x17
   2ab82:	80 31       	cpi	r24, 0x10	; 16
   2ab84:	c9 f5       	brne	.+114    	; 0x2abf8 <SdVolume::fatPut(unsigned long, unsigned long)+0xe0>
    lba = fatStartBlock_ + (cluster >> 8);
   2ab86:	85 2e       	mov	r8, r21
   2ab88:	96 2e       	mov	r9, r22
   2ab8a:	a7 2e       	mov	r10, r23
   2ab8c:	bb 24       	eor	r11, r11
   2ab8e:	8b 89       	ldd	r24, Y+19	; 0x13
   2ab90:	9c 89       	ldd	r25, Y+20	; 0x14
   2ab92:	ad 89       	ldd	r26, Y+21	; 0x15
   2ab94:	be 89       	ldd	r27, Y+22	; 0x16
  } else if (fatType_ == 32) {
    lba = fatStartBlock_ + (cluster >> 7);
   2ab96:	88 0e       	add	r8, r24
   2ab98:	99 1e       	adc	r9, r25
   2ab9a:	aa 1e       	adc	r10, r26
   2ab9c:	bb 1e       	adc	r11, r27
   2ab9e:	28 01       	movw	r4, r16
   2aba0:	39 01       	movw	r6, r18
   2aba2:	6a 01       	movw	r12, r20
   2aba4:	7b 01       	movw	r14, r22
  } else {
    goto fail;
  }
  if (!cacheRawBlock(lba, CACHE_FOR_WRITE)) goto fail;
   2aba6:	41 e0       	ldi	r20, 0x01	; 1
   2aba8:	c5 01       	movw	r24, r10
   2abaa:	b4 01       	movw	r22, r8
   2abac:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2abb0:	88 23       	and	r24, r24
   2abb2:	41 f2       	breq	.-112    	; 0x2ab44 <SdVolume::fatPut(unsigned long, unsigned long)+0x2c>
  // store entry
  if (fatType_ == 16) {
   2abb4:	9f 89       	ldd	r25, Y+23	; 0x17
   2abb6:	90 31       	cpi	r25, 0x10	; 16
   2abb8:	81 f5       	brne	.+96     	; 0x2ac1a <SdVolume::fatPut(unsigned long, unsigned long)+0x102>
    cacheBuffer_.fat16[cluster & 0XFF] = value;
   2abba:	dd 24       	eor	r13, r13
   2abbc:	ee 24       	eor	r14, r14
   2abbe:	ff 24       	eor	r15, r15
   2abc0:	f6 01       	movw	r30, r12
   2abc2:	ee 0f       	add	r30, r30
   2abc4:	ff 1f       	adc	r31, r31
   2abc6:	e3 56       	subi	r30, 0x63	; 99
   2abc8:	f1 4f       	sbci	r31, 0xF1	; 241
   2abca:	11 83       	std	Z+1, r17	; 0x01
   2abcc:	00 83       	st	Z, r16
  } else {
    cacheBuffer_.fat32[cluster & 0X7F] = value;
  }
  // mirror second FAT
  if (fatCount_ > 1) cacheMirrorBlock_ = lba + blocksPerFat_;
   2abce:	9a 89       	ldd	r25, Y+18	; 0x12
   2abd0:	92 30       	cpi	r25, 0x02	; 2
   2abd2:	08 f4       	brcc	.+2      	; 0x2abd6 <SdVolume::fatPut(unsigned long, unsigned long)+0xbe>
   2abd4:	b8 cf       	rjmp	.-144    	; 0x2ab46 <SdVolume::fatPut(unsigned long, unsigned long)+0x2e>
   2abd6:	4d 81       	ldd	r20, Y+5	; 0x05
   2abd8:	5e 81       	ldd	r21, Y+6	; 0x06
   2abda:	6f 81       	ldd	r22, Y+7	; 0x07
   2abdc:	78 85       	ldd	r23, Y+8	; 0x08
   2abde:	84 0e       	add	r8, r20
   2abe0:	95 1e       	adc	r9, r21
   2abe2:	a6 1e       	adc	r10, r22
   2abe4:	b7 1e       	adc	r11, r23
   2abe6:	80 92 95 0e 	sts	0x0E95, r8	; 0x800e95 <SdVolume::cacheMirrorBlock_>
   2abea:	90 92 96 0e 	sts	0x0E96, r9	; 0x800e96 <SdVolume::cacheMirrorBlock_+0x1>
   2abee:	a0 92 97 0e 	sts	0x0E97, r10	; 0x800e97 <SdVolume::cacheMirrorBlock_+0x2>
   2abf2:	b0 92 98 0e 	sts	0x0E98, r11	; 0x800e98 <SdVolume::cacheMirrorBlock_+0x3>
   2abf6:	a7 cf       	rjmp	.-178    	; 0x2ab46 <SdVolume::fatPut(unsigned long, unsigned long)+0x2e>
    cacheBuffer_.data[index] = tmp;
    return true;
  }
  if (fatType_ == 16) {
    lba = fatStartBlock_ + (cluster >> 8);
  } else if (fatType_ == 32) {
   2abf8:	80 32       	cpi	r24, 0x20	; 32
   2abfa:	09 f0       	breq	.+2      	; 0x2abfe <SdVolume::fatPut(unsigned long, unsigned long)+0xe6>
   2abfc:	a3 cf       	rjmp	.-186    	; 0x2ab44 <SdVolume::fatPut(unsigned long, unsigned long)+0x2c>
    lba = fatStartBlock_ + (cluster >> 7);
   2abfe:	8b 89       	ldd	r24, Y+19	; 0x13
   2ac00:	9c 89       	ldd	r25, Y+20	; 0x14
   2ac02:	ad 89       	ldd	r26, Y+21	; 0x15
   2ac04:	be 89       	ldd	r27, Y+22	; 0x16
   2ac06:	4a 01       	movw	r8, r20
   2ac08:	5b 01       	movw	r10, r22
   2ac0a:	e7 e0       	ldi	r30, 0x07	; 7
   2ac0c:	b6 94       	lsr	r11
   2ac0e:	a7 94       	ror	r10
   2ac10:	97 94       	ror	r9
   2ac12:	87 94       	ror	r8
   2ac14:	ea 95       	dec	r30
   2ac16:	d1 f7       	brne	.-12     	; 0x2ac0c <SdVolume::fatPut(unsigned long, unsigned long)+0xf4>
   2ac18:	be cf       	rjmp	.-132    	; 0x2ab96 <SdVolume::fatPut(unsigned long, unsigned long)+0x7e>
  if (!cacheRawBlock(lba, CACHE_FOR_WRITE)) goto fail;
  // store entry
  if (fatType_ == 16) {
    cacheBuffer_.fat16[cluster & 0XFF] = value;
  } else {
    cacheBuffer_.fat32[cluster & 0X7F] = value;
   2ac1a:	e8 94       	clt
   2ac1c:	c7 f8       	bld	r12, 7
   2ac1e:	dd 24       	eor	r13, r13
   2ac20:	ee 24       	eor	r14, r14
   2ac22:	ff 24       	eor	r15, r15
   2ac24:	f6 01       	movw	r30, r12
   2ac26:	ee 0f       	add	r30, r30
   2ac28:	ff 1f       	adc	r31, r31
   2ac2a:	ee 0f       	add	r30, r30
   2ac2c:	ff 1f       	adc	r31, r31
   2ac2e:	e3 56       	subi	r30, 0x63	; 99
   2ac30:	f1 4f       	sbci	r31, 0xF1	; 241
   2ac32:	40 82       	st	Z, r4
   2ac34:	51 82       	std	Z+1, r5	; 0x01
   2ac36:	62 82       	std	Z+2, r6	; 0x02
   2ac38:	73 82       	std	Z+3, r7	; 0x03
   2ac3a:	c9 cf       	rjmp	.-110    	; 0x2abce <SdVolume::fatPut(unsigned long, unsigned long)+0xb6>

0002ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>:
 fail:
  return false;
}
//------------------------------------------------------------------------------
// Fetch a FAT entry
bool SdVolume::fatGet(uint32_t cluster, uint32_t* value) {
   2ac3c:	cf 92       	push	r12
   2ac3e:	df 92       	push	r13
   2ac40:	ef 92       	push	r14
   2ac42:	ff 92       	push	r15
   2ac44:	0f 93       	push	r16
   2ac46:	1f 93       	push	r17
   2ac48:	cf 93       	push	r28
   2ac4a:	df 93       	push	r29
   2ac4c:	fc 01       	movw	r30, r24
  uint32_t lba;
  if (cluster > (clusterCount_ + 1)) goto fail;
   2ac4e:	81 85       	ldd	r24, Z+9	; 0x09
   2ac50:	92 85       	ldd	r25, Z+10	; 0x0a
   2ac52:	a3 85       	ldd	r26, Z+11	; 0x0b
   2ac54:	b4 85       	ldd	r27, Z+12	; 0x0c
   2ac56:	01 96       	adiw	r24, 0x01	; 1
   2ac58:	a1 1d       	adc	r26, r1
   2ac5a:	b1 1d       	adc	r27, r1
   2ac5c:	84 17       	cp	r24, r20
   2ac5e:	95 07       	cpc	r25, r21
   2ac60:	a6 07       	cpc	r26, r22
   2ac62:	b7 07       	cpc	r27, r23
   2ac64:	50 f4       	brcc	.+20     	; 0x2ac7a <SdVolume::fatGet(unsigned long, unsigned long*)+0x3e>
    *value = cacheBuffer_.fat32[cluster & 0X7F] & FAT32MASK;
  }
  return true;

 fail:
  return false;
   2ac66:	80 e0       	ldi	r24, 0x00	; 0
}
   2ac68:	df 91       	pop	r29
   2ac6a:	cf 91       	pop	r28
   2ac6c:	1f 91       	pop	r17
   2ac6e:	0f 91       	pop	r16
   2ac70:	ff 90       	pop	r15
   2ac72:	ef 90       	pop	r14
   2ac74:	df 90       	pop	r13
   2ac76:	cf 90       	pop	r12
   2ac78:	08 95       	ret
    }
    tmp |= cacheBuffer_.data[index] << 8;
    *value = cluster & 1 ? tmp >> 4 : tmp & 0XFFF;
    return true;
  }
  if (fatType_ == 16) {
   2ac7a:	87 89       	ldd	r24, Z+23	; 0x17
   2ac7c:	80 31       	cpi	r24, 0x10	; 16
   2ac7e:	a9 f5       	brne	.+106    	; 0x2acea <SdVolume::fatGet(unsigned long, unsigned long*)+0xae>
    lba = fatStartBlock_ + (cluster >> 8);
   2ac80:	bb 27       	eor	r27, r27
   2ac82:	a7 2f       	mov	r26, r23
   2ac84:	96 2f       	mov	r25, r22
   2ac86:	85 2f       	mov	r24, r21
   2ac88:	c3 88       	ldd	r12, Z+19	; 0x13
   2ac8a:	d4 88       	ldd	r13, Z+20	; 0x14
   2ac8c:	e5 88       	ldd	r14, Z+21	; 0x15
   2ac8e:	f6 88       	ldd	r15, Z+22	; 0x16
  } else if (fatType_ == 32) {
    lba = fatStartBlock_ + (cluster >> 7);
   2ac90:	8c 0d       	add	r24, r12
   2ac92:	9d 1d       	adc	r25, r13
   2ac94:	ae 1d       	adc	r26, r14
   2ac96:	bf 1d       	adc	r27, r15
   2ac98:	e9 01       	movw	r28, r18
   2ac9a:	6a 01       	movw	r12, r20
   2ac9c:	7b 01       	movw	r14, r22
   2ac9e:	8f 01       	movw	r16, r30
  } else {
    goto fail;
  }
  if (lba != cacheBlockNumber_) {
   2aca0:	40 91 91 0e 	lds	r20, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2aca4:	50 91 92 0e 	lds	r21, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2aca8:	60 91 93 0e 	lds	r22, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2acac:	70 91 94 0e 	lds	r23, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2acb0:	84 17       	cp	r24, r20
   2acb2:	95 07       	cpc	r25, r21
   2acb4:	a6 07       	cpc	r26, r22
   2acb6:	b7 07       	cpc	r27, r23
   2acb8:	49 f5       	brne	.+82     	; 0x2ad0c <SdVolume::fatGet(unsigned long, unsigned long*)+0xd0>
    if (!cacheRawBlock(lba, CACHE_FOR_READ)) goto fail;
  }
  if (fatType_ == 16) {
   2acba:	f8 01       	movw	r30, r16
   2acbc:	87 89       	ldd	r24, Z+23	; 0x17
   2acbe:	80 31       	cpi	r24, 0x10	; 16
   2acc0:	69 f5       	brne	.+90     	; 0x2ad1c <SdVolume::fatGet(unsigned long, unsigned long*)+0xe0>
    *value = cacheBuffer_.fat16[cluster & 0XFF];
   2acc2:	b7 01       	movw	r22, r14
   2acc4:	a6 01       	movw	r20, r12
   2acc6:	55 27       	eor	r21, r21
   2acc8:	66 27       	eor	r22, r22
   2acca:	77 27       	eor	r23, r23
   2accc:	44 0f       	add	r20, r20
   2acce:	55 1f       	adc	r21, r21
   2acd0:	43 56       	subi	r20, 0x63	; 99
   2acd2:	51 4f       	sbci	r21, 0xF1	; 241
   2acd4:	fa 01       	movw	r30, r20
   2acd6:	80 81       	ld	r24, Z
   2acd8:	91 81       	ldd	r25, Z+1	; 0x01
   2acda:	b0 e0       	ldi	r27, 0x00	; 0
   2acdc:	a0 e0       	ldi	r26, 0x00	; 0
  } else {
    *value = cacheBuffer_.fat32[cluster & 0X7F] & FAT32MASK;
   2acde:	88 83       	st	Y, r24
   2ace0:	99 83       	std	Y+1, r25	; 0x01
   2ace2:	aa 83       	std	Y+2, r26	; 0x02
   2ace4:	bb 83       	std	Y+3, r27	; 0x03
   2ace6:	81 e0       	ldi	r24, 0x01	; 1
   2ace8:	bf cf       	rjmp	.-130    	; 0x2ac68 <SdVolume::fatGet(unsigned long, unsigned long*)+0x2c>
    *value = cluster & 1 ? tmp >> 4 : tmp & 0XFFF;
    return true;
  }
  if (fatType_ == 16) {
    lba = fatStartBlock_ + (cluster >> 8);
  } else if (fatType_ == 32) {
   2acea:	80 32       	cpi	r24, 0x20	; 32
   2acec:	09 f0       	breq	.+2      	; 0x2acf0 <SdVolume::fatGet(unsigned long, unsigned long*)+0xb4>
   2acee:	bb cf       	rjmp	.-138    	; 0x2ac66 <SdVolume::fatGet(unsigned long, unsigned long*)+0x2a>
    lba = fatStartBlock_ + (cluster >> 7);
   2acf0:	c3 88       	ldd	r12, Z+19	; 0x13
   2acf2:	d4 88       	ldd	r13, Z+20	; 0x14
   2acf4:	e5 88       	ldd	r14, Z+21	; 0x15
   2acf6:	f6 88       	ldd	r15, Z+22	; 0x16
   2acf8:	db 01       	movw	r26, r22
   2acfa:	ca 01       	movw	r24, r20
   2acfc:	c7 e0       	ldi	r28, 0x07	; 7
   2acfe:	b6 95       	lsr	r27
   2ad00:	a7 95       	ror	r26
   2ad02:	97 95       	ror	r25
   2ad04:	87 95       	ror	r24
   2ad06:	ca 95       	dec	r28
   2ad08:	d1 f7       	brne	.-12     	; 0x2acfe <SdVolume::fatGet(unsigned long, unsigned long*)+0xc2>
   2ad0a:	c2 cf       	rjmp	.-124    	; 0x2ac90 <SdVolume::fatGet(unsigned long, unsigned long*)+0x54>
  } else {
    goto fail;
  }
  if (lba != cacheBlockNumber_) {
    if (!cacheRawBlock(lba, CACHE_FOR_READ)) goto fail;
   2ad0c:	40 e0       	ldi	r20, 0x00	; 0
   2ad0e:	bc 01       	movw	r22, r24
   2ad10:	cd 01       	movw	r24, r26
   2ad12:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2ad16:	81 11       	cpse	r24, r1
   2ad18:	d0 cf       	rjmp	.-96     	; 0x2acba <SdVolume::fatGet(unsigned long, unsigned long*)+0x7e>
   2ad1a:	a5 cf       	rjmp	.-182    	; 0x2ac66 <SdVolume::fatGet(unsigned long, unsigned long*)+0x2a>
  }
  if (fatType_ == 16) {
    *value = cacheBuffer_.fat16[cluster & 0XFF];
  } else {
    *value = cacheBuffer_.fat32[cluster & 0X7F] & FAT32MASK;
   2ad1c:	b7 01       	movw	r22, r14
   2ad1e:	a6 01       	movw	r20, r12
   2ad20:	4f 77       	andi	r20, 0x7F	; 127
   2ad22:	55 27       	eor	r21, r21
   2ad24:	66 27       	eor	r22, r22
   2ad26:	77 27       	eor	r23, r23
   2ad28:	44 0f       	add	r20, r20
   2ad2a:	55 1f       	adc	r21, r21
   2ad2c:	44 0f       	add	r20, r20
   2ad2e:	55 1f       	adc	r21, r21
   2ad30:	43 56       	subi	r20, 0x63	; 99
   2ad32:	51 4f       	sbci	r21, 0xF1	; 241
   2ad34:	fa 01       	movw	r30, r20
   2ad36:	80 81       	ld	r24, Z
   2ad38:	91 81       	ldd	r25, Z+1	; 0x01
   2ad3a:	a2 81       	ldd	r26, Z+2	; 0x02
   2ad3c:	b3 81       	ldd	r27, Z+3	; 0x03
   2ad3e:	bf 70       	andi	r27, 0x0F	; 15
   2ad40:	ce cf       	rjmp	.-100    	; 0x2acde <SdVolume::fatGet(unsigned long, unsigned long*)+0xa2>

0002ad42 <SdVolume::chainSize(unsigned long, unsigned long*)>:
 fail:
  return false;
}
//------------------------------------------------------------------------------
// return the size in bytes of a cluster chain
bool SdVolume::chainSize(uint32_t cluster, uint32_t* size) {
   2ad42:	4f 92       	push	r4
   2ad44:	5f 92       	push	r5
   2ad46:	6f 92       	push	r6
   2ad48:	7f 92       	push	r7
   2ad4a:	af 92       	push	r10
   2ad4c:	bf 92       	push	r11
   2ad4e:	cf 92       	push	r12
   2ad50:	df 92       	push	r13
   2ad52:	ef 92       	push	r14
   2ad54:	ff 92       	push	r15
   2ad56:	0f 93       	push	r16
   2ad58:	1f 93       	push	r17
   2ad5a:	cf 93       	push	r28
   2ad5c:	df 93       	push	r29
   2ad5e:	00 d0       	rcall	.+0      	; 0x2ad60 <SdVolume::chainSize(unsigned long, unsigned long*)+0x1e>
   2ad60:	1f 92       	push	r1
   2ad62:	cd b7       	in	r28, 0x3d	; 61
   2ad64:	de b7       	in	r29, 0x3e	; 62
   2ad66:	8c 01       	movw	r16, r24
   2ad68:	49 83       	std	Y+1, r20	; 0x01
   2ad6a:	5a 83       	std	Y+2, r21	; 0x02
   2ad6c:	6b 83       	std	Y+3, r22	; 0x03
   2ad6e:	7c 83       	std	Y+4, r23	; 0x04
   2ad70:	59 01       	movw	r10, r18
  uint32_t s = 0;
   2ad72:	c1 2c       	mov	r12, r1
   2ad74:	d1 2c       	mov	r13, r1
   2ad76:	76 01       	movw	r14, r12
  do {
    if (!fatGet(cluster, &cluster)) goto fail;
    s += 512UL << clusterSizeShift_;
   2ad78:	41 2c       	mov	r4, r1
   2ad7a:	82 e0       	ldi	r24, 0x02	; 2
   2ad7c:	58 2e       	mov	r5, r24
   2ad7e:	61 2c       	mov	r6, r1
   2ad80:	71 2c       	mov	r7, r1
//------------------------------------------------------------------------------
// return the size in bytes of a cluster chain
bool SdVolume::chainSize(uint32_t cluster, uint32_t* size) {
  uint32_t s = 0;
  do {
    if (!fatGet(cluster, &cluster)) goto fail;
   2ad82:	49 81       	ldd	r20, Y+1	; 0x01
   2ad84:	5a 81       	ldd	r21, Y+2	; 0x02
   2ad86:	6b 81       	ldd	r22, Y+3	; 0x03
   2ad88:	7c 81       	ldd	r23, Y+4	; 0x04
   2ad8a:	9e 01       	movw	r18, r28
   2ad8c:	2f 5f       	subi	r18, 0xFF	; 255
   2ad8e:	3f 4f       	sbci	r19, 0xFF	; 255
   2ad90:	c8 01       	movw	r24, r16
   2ad92:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2ad96:	88 23       	and	r24, r24
   2ad98:	19 f1       	breq	.+70     	; 0x2ade0 <SdVolume::chainSize(unsigned long, unsigned long*)+0x9e>
    s += 512UL << clusterSizeShift_;
   2ad9a:	f8 01       	movw	r30, r16
   2ad9c:	85 85       	ldd	r24, Z+13	; 0x0d
   2ad9e:	a3 01       	movw	r20, r6
   2ada0:	92 01       	movw	r18, r4
   2ada2:	04 c0       	rjmp	.+8      	; 0x2adac <SdVolume::chainSize(unsigned long, unsigned long*)+0x6a>
   2ada4:	22 0f       	add	r18, r18
   2ada6:	33 1f       	adc	r19, r19
   2ada8:	44 1f       	adc	r20, r20
   2adaa:	55 1f       	adc	r21, r21
   2adac:	8a 95       	dec	r24
   2adae:	d2 f7       	brpl	.-12     	; 0x2ada4 <SdVolume::chainSize(unsigned long, unsigned long*)+0x62>
   2adb0:	da 01       	movw	r26, r20
   2adb2:	c9 01       	movw	r24, r18
   2adb4:	c8 0e       	add	r12, r24
   2adb6:	d9 1e       	adc	r13, r25
   2adb8:	ea 1e       	adc	r14, r26
   2adba:	fb 1e       	adc	r15, r27
  } while (!isEOC(cluster));
   2adbc:	49 81       	ldd	r20, Y+1	; 0x01
   2adbe:	5a 81       	ldd	r21, Y+2	; 0x02
   2adc0:	6b 81       	ldd	r22, Y+3	; 0x03
   2adc2:	7c 81       	ldd	r23, Y+4	; 0x04
    return fatPut(cluster, 0x0FFFFFFF);
  }
  bool freeChain(uint32_t cluster);
  bool isEOC(uint32_t cluster) const {
    if (FAT12_SUPPORT && fatType_ == 12) return  cluster >= FAT12EOC_MIN;
    if (fatType_ == 16) return cluster >= FAT16EOC_MIN;
   2adc4:	87 89       	ldd	r24, Z+23	; 0x17
   2adc6:	80 31       	cpi	r24, 0x10	; 16
   2adc8:	f1 f4       	brne	.+60     	; 0x2ae06 <SdVolume::chainSize(unsigned long, unsigned long*)+0xc4>
   2adca:	81 e0       	ldi	r24, 0x01	; 1
   2adcc:	48 3f       	cpi	r20, 0xF8	; 248
   2adce:	5f 4f       	sbci	r21, 0xFF	; 255
   2add0:	61 05       	cpc	r22, r1
   2add2:	71 05       	cpc	r23, r1
   2add4:	b0 f2       	brcs	.-84     	; 0x2ad82 <SdVolume::chainSize(unsigned long, unsigned long*)+0x40>
  *size = s;
   2add6:	f5 01       	movw	r30, r10
   2add8:	c0 82       	st	Z, r12
   2adda:	d1 82       	std	Z+1, r13	; 0x01
   2addc:	e2 82       	std	Z+2, r14	; 0x02
   2adde:	f3 82       	std	Z+3, r15	; 0x03
  return true;

 fail:
  return false;
}
   2ade0:	0f 90       	pop	r0
   2ade2:	0f 90       	pop	r0
   2ade4:	0f 90       	pop	r0
   2ade6:	0f 90       	pop	r0
   2ade8:	df 91       	pop	r29
   2adea:	cf 91       	pop	r28
   2adec:	1f 91       	pop	r17
   2adee:	0f 91       	pop	r16
   2adf0:	ff 90       	pop	r15
   2adf2:	ef 90       	pop	r14
   2adf4:	df 90       	pop	r13
   2adf6:	cf 90       	pop	r12
   2adf8:	bf 90       	pop	r11
   2adfa:	af 90       	pop	r10
   2adfc:	7f 90       	pop	r7
   2adfe:	6f 90       	pop	r6
   2ae00:	5f 90       	pop	r5
   2ae02:	4f 90       	pop	r4
   2ae04:	08 95       	ret
    return  cluster >= FAT32EOC_MIN;
   2ae06:	81 e0       	ldi	r24, 0x01	; 1
   2ae08:	48 3f       	cpi	r20, 0xF8	; 248
   2ae0a:	5f 4f       	sbci	r21, 0xFF	; 255
   2ae0c:	6f 4f       	sbci	r22, 0xFF	; 255
   2ae0e:	7f 40       	sbci	r23, 0x0F	; 15
   2ae10:	08 f4       	brcc	.+2      	; 0x2ae14 <SdVolume::chainSize(unsigned long, unsigned long*)+0xd2>
   2ae12:	b7 cf       	rjmp	.-146    	; 0x2ad82 <SdVolume::chainSize(unsigned long, unsigned long*)+0x40>
   2ae14:	e0 cf       	rjmp	.-64     	; 0x2add6 <SdVolume::chainSize(unsigned long, unsigned long*)+0x94>

0002ae16 <SdBaseFile::openRoot(SdVolume*)>:
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 * Reasons for failure include the file is already open, the FAT volume has
 * not been initialized or it a FAT12 volume.
 */
bool SdBaseFile::openRoot(SdVolume* vol) {
   2ae16:	0f 93       	push	r16
   2ae18:	1f 93       	push	r17
   2ae1a:	cf 93       	push	r28
   2ae1c:	df 93       	push	r29
  // error if file is already open
  if (isOpen()) goto fail;
   2ae1e:	fc 01       	movw	r30, r24
   2ae20:	23 81       	ldd	r18, Z+3	; 0x03
   2ae22:	22 23       	and	r18, r18
   2ae24:	31 f0       	breq	.+12     	; 0x2ae32 <SdBaseFile::openRoot(SdVolume*)+0x1c>
  dirBlock_ = 0;
  dirIndex_ = 0;
  return true;

 fail:
  return false;
   2ae26:	80 e0       	ldi	r24, 0x00	; 0
}
   2ae28:	df 91       	pop	r29
   2ae2a:	cf 91       	pop	r28
   2ae2c:	1f 91       	pop	r17
   2ae2e:	0f 91       	pop	r16
   2ae30:	08 95       	ret
   2ae32:	8b 01       	movw	r16, r22
   2ae34:	ec 01       	movw	r28, r24
   2ae36:	fb 01       	movw	r30, r22
   2ae38:	87 89       	ldd	r24, Z+23	; 0x17
 */
bool SdBaseFile::openRoot(SdVolume* vol) {
  // error if file is already open
  if (isOpen()) goto fail;

  if (vol->fatType() == 16 || (FAT12_SUPPORT && vol->fatType() == 12)) {
   2ae3a:	80 31       	cpi	r24, 0x10	; 16
   2ae3c:	39 f5       	brne	.+78     	; 0x2ae8c <SdBaseFile::openRoot(SdVolume*)+0x76>
    type_ = FAT_FILE_TYPE_ROOT_FIXED;
   2ae3e:	82 e0       	ldi	r24, 0x02	; 2
   2ae40:	8b 83       	std	Y+3, r24	; 0x03
    firstCluster_ = 0;
   2ae42:	1d 8a       	std	Y+21, r1	; 0x15
   2ae44:	1e 8a       	std	Y+22, r1	; 0x16
   2ae46:	1f 8a       	std	Y+23, r1	; 0x17
   2ae48:	18 8e       	std	Y+24, r1	; 0x18
    fileSize_ = 32 * vol->rootDirEntryCount();
   2ae4a:	80 8d       	ldd	r24, Z+24	; 0x18
   2ae4c:	91 8d       	ldd	r25, Z+25	; 0x19
   2ae4e:	b0 e0       	ldi	r27, 0x00	; 0
   2ae50:	a0 e0       	ldi	r26, 0x00	; 0
   2ae52:	25 e0       	ldi	r18, 0x05	; 5
   2ae54:	88 0f       	add	r24, r24
   2ae56:	99 1f       	adc	r25, r25
   2ae58:	aa 1f       	adc	r26, r26
   2ae5a:	bb 1f       	adc	r27, r27
   2ae5c:	2a 95       	dec	r18
   2ae5e:	d1 f7       	brne	.-12     	; 0x2ae54 <SdBaseFile::openRoot(SdVolume*)+0x3e>
   2ae60:	89 8b       	std	Y+17, r24	; 0x11
   2ae62:	9a 8b       	std	Y+18, r25	; 0x12
   2ae64:	ab 8b       	std	Y+19, r26	; 0x13
   2ae66:	bc 8b       	std	Y+20, r27	; 0x14
    if (!vol->chainSize(firstCluster_, &fileSize_)) goto fail;
  } else {
    // volume is not initialized, invalid, or FAT12 without support
    return false;
  }
  vol_ = vol;
   2ae68:	1a 8f       	std	Y+26, r17	; 0x1a
   2ae6a:	09 8f       	std	Y+25, r16	; 0x19
  // read only
  flags_ = O_READ;
   2ae6c:	81 e0       	ldi	r24, 0x01	; 1
   2ae6e:	89 83       	std	Y+1, r24	; 0x01

  // set to start of file
  curCluster_ = 0;
   2ae70:	1c 82       	std	Y+4, r1	; 0x04
   2ae72:	1d 82       	std	Y+5, r1	; 0x05
   2ae74:	1e 82       	std	Y+6, r1	; 0x06
   2ae76:	1f 82       	std	Y+7, r1	; 0x07
  curPosition_ = 0;
   2ae78:	18 86       	std	Y+8, r1	; 0x08
   2ae7a:	19 86       	std	Y+9, r1	; 0x09
   2ae7c:	1a 86       	std	Y+10, r1	; 0x0a
   2ae7e:	1b 86       	std	Y+11, r1	; 0x0b

  // root has no directory entry
  dirBlock_ = 0;
   2ae80:	1c 86       	std	Y+12, r1	; 0x0c
   2ae82:	1d 86       	std	Y+13, r1	; 0x0d
   2ae84:	1e 86       	std	Y+14, r1	; 0x0e
   2ae86:	1f 86       	std	Y+15, r1	; 0x0f
  dirIndex_ = 0;
   2ae88:	18 8a       	std	Y+16, r1	; 0x10
   2ae8a:	ce cf       	rjmp	.-100    	; 0x2ae28 <SdBaseFile::openRoot(SdVolume*)+0x12>

  if (vol->fatType() == 16 || (FAT12_SUPPORT && vol->fatType() == 12)) {
    type_ = FAT_FILE_TYPE_ROOT_FIXED;
    firstCluster_ = 0;
    fileSize_ = 32 * vol->rootDirEntryCount();
  } else if (vol->fatType() == 32) {
   2ae8c:	80 32       	cpi	r24, 0x20	; 32
   2ae8e:	59 f6       	brne	.-106    	; 0x2ae26 <SdBaseFile::openRoot(SdVolume*)+0x10>
    type_ = FAT_FILE_TYPE_ROOT32;
   2ae90:	83 e0       	ldi	r24, 0x03	; 3
   2ae92:	8b 83       	std	Y+3, r24	; 0x03
  int32_t freeClusterCount();
  /** \return The number of entries in the root directory for FAT16 volumes. */
  uint32_t rootDirEntryCount() const {return rootDirEntryCount_;}
  /** \return The logical block number for the start of the root directory
       on FAT16 volumes or the first cluster number on FAT32 volumes. */
  uint32_t rootDirStart() const {return rootDirStart_;}
   2ae94:	42 8d       	ldd	r20, Z+26	; 0x1a
   2ae96:	53 8d       	ldd	r21, Z+27	; 0x1b
   2ae98:	64 8d       	ldd	r22, Z+28	; 0x1c
   2ae9a:	75 8d       	ldd	r23, Z+29	; 0x1d
    firstCluster_ = vol->rootDirStart();
   2ae9c:	4d 8b       	std	Y+21, r20	; 0x15
   2ae9e:	5e 8b       	std	Y+22, r21	; 0x16
   2aea0:	6f 8b       	std	Y+23, r22	; 0x17
   2aea2:	78 8f       	std	Y+24, r23	; 0x18
    if (!vol->chainSize(firstCluster_, &fileSize_)) goto fail;
   2aea4:	9e 01       	movw	r18, r28
   2aea6:	2f 5e       	subi	r18, 0xEF	; 239
   2aea8:	3f 4f       	sbci	r19, 0xFF	; 255
   2aeaa:	c8 01       	movw	r24, r16
   2aeac:	0f 94 a1 56 	call	0x2ad42	; 0x2ad42 <SdVolume::chainSize(unsigned long, unsigned long*)>
   2aeb0:	81 11       	cpse	r24, r1
   2aeb2:	da cf       	rjmp	.-76     	; 0x2ae68 <SdBaseFile::openRoot(SdVolume*)+0x52>
   2aeb4:	b8 cf       	rjmp	.-144    	; 0x2ae26 <SdBaseFile::openRoot(SdVolume*)+0x10>

0002aeb6 <SdFile::gfComputeNextFileBlock()>:
        vol_->cache()->data[ terminateOfs < 512 ? terminateOfs : 512 ] = '\n';
    }
    return true;
}

bool SdFile::gfComputeNextFileBlock() {
   2aeb6:	cf 92       	push	r12
   2aeb8:	df 92       	push	r13
   2aeba:	ef 92       	push	r14
   2aebc:	ff 92       	push	r15
   2aebe:	1f 93       	push	r17
   2aec0:	cf 93       	push	r28
   2aec2:	df 93       	push	r29
   2aec4:	ec 01       	movw	r28, r24
   2aec6:	eb 81       	ldd	r30, Y+3	; 0x03
    // error if not open or write only
    if (!isOpen() || !(flags_ & O_READ)) return false;
   2aec8:	e1 11       	cpse	r30, r1
   2aeca:	09 c0       	rjmp	.+18     	; 0x2aede <SdFile::gfComputeNextFileBlock()+0x28>
   2aecc:	80 e0       	ldi	r24, 0x00	; 0
            }
        }
        gfBlock = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
    }
    return true;
}
   2aece:	df 91       	pop	r29
   2aed0:	cf 91       	pop	r28
   2aed2:	1f 91       	pop	r17
   2aed4:	ff 90       	pop	r15
   2aed6:	ef 90       	pop	r14
   2aed8:	df 90       	pop	r13
   2aeda:	cf 90       	pop	r12
   2aedc:	08 95       	ret
    return true;
}

bool SdFile::gfComputeNextFileBlock() {
    // error if not open or write only
    if (!isOpen() || !(flags_ & O_READ)) return false;
   2aede:	89 81       	ldd	r24, Y+1	; 0x01
   2aee0:	80 ff       	sbrs	r24, 0
   2aee2:	f4 cf       	rjmp	.-24     	; 0x2aecc <SdFile::gfComputeNextFileBlock()+0x16>

    gfOffset = curPosition_ & 0X1FF;  // offset in block
   2aee4:	48 85       	ldd	r20, Y+8	; 0x08
   2aee6:	59 85       	ldd	r21, Y+9	; 0x09
   2aee8:	6a 85       	ldd	r22, Y+10	; 0x0a
   2aeea:	7b 85       	ldd	r23, Y+11	; 0x0b
   2aeec:	9a 01       	movw	r18, r20
   2aeee:	31 70       	andi	r19, 0x01	; 1
   2aef0:	3a a3       	std	Y+34, r19	; 0x22
   2aef2:	29 a3       	std	Y+33, r18	; 0x21
   2aef4:	89 8d       	ldd	r24, Y+25	; 0x19
   2aef6:	9a 8d       	ldd	r25, Y+26	; 0x1a
   2aef8:	6a 01       	movw	r12, r20
   2aefa:	7b 01       	movw	r14, r22
   2aefc:	f9 e0       	ldi	r31, 0x09	; 9
   2aefe:	f6 94       	lsr	r15
   2af00:	e7 94       	ror	r14
   2af02:	d7 94       	ror	r13
   2af04:	c7 94       	ror	r12
   2af06:	fa 95       	dec	r31
   2af08:	d1 f7       	brne	.-12     	; 0x2aefe <SdFile::gfComputeNextFileBlock()+0x48>
    if (type_ == FAT_FILE_TYPE_ROOT_FIXED) {
   2af0a:	e2 30       	cpi	r30, 0x02	; 2
   2af0c:	79 f4       	brne	.+30     	; 0x2af2c <SdFile::gfComputeNextFileBlock()+0x76>
        // SHR by 9 means skip the last byte and shift just 3 bytes by 1
        // -> should be 8 instructions... and not the horrible loop shifting 4 bytes at once
        // still need to get some work on this
        gfBlock = vol_->rootDirStart() + (curPosition_ >> 9);
   2af0e:	fc 01       	movw	r30, r24
   2af10:	82 8d       	ldd	r24, Z+26	; 0x1a
   2af12:	93 8d       	ldd	r25, Z+27	; 0x1b
   2af14:	a4 8d       	ldd	r26, Z+28	; 0x1c
   2af16:	b5 8d       	ldd	r27, Z+29	; 0x1d
   2af18:	8c 0d       	add	r24, r12
   2af1a:	9d 1d       	adc	r25, r13
   2af1c:	ae 1d       	adc	r26, r14
   2af1e:	bf 1d       	adc	r27, r15
            } else {
                // get next cluster from FAT
                if (!vol_->fatGet(curCluster_, &curCluster_)) return false;
            }
        }
        gfBlock = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
   2af20:	8d 8f       	std	Y+29, r24	; 0x1d
   2af22:	9e 8f       	std	Y+30, r25	; 0x1e
   2af24:	af 8f       	std	Y+31, r26	; 0x1f
   2af26:	b8 a3       	std	Y+32, r27	; 0x20
    }
    return true;
   2af28:	81 e0       	ldi	r24, 0x01	; 1
   2af2a:	d1 cf       	rjmp	.-94     	; 0x2aece <SdFile::gfComputeNextFileBlock()+0x18>
  uint16_t rootDirEntryCount_;  // number of entries in FAT16 root dir
  uint32_t rootDirStart_;       // root start block for FAT16, cluster for FAT32
  //----------------------------------------------------------------------------
  bool allocContiguous(uint32_t count, uint32_t* curCluster);
  uint8_t blockOfCluster(uint32_t position) const {
          return (position >> 9) & (blocksPerCluster_ - 1);}
   2af2c:	fc 01       	movw	r30, r24
   2af2e:	14 81       	ldd	r17, Z+4	; 0x04
   2af30:	11 50       	subi	r17, 0x01	; 1
   2af32:	1c 21       	and	r17, r12
        // -> should be 8 instructions... and not the horrible loop shifting 4 bytes at once
        // still need to get some work on this
        gfBlock = vol_->rootDirStart() + (curPosition_ >> 9);
    } else {
        uint8_t blockOfCluster = vol_->blockOfCluster(curPosition_);
        if (gfOffset == 0 && blockOfCluster == 0) {
   2af34:	23 2b       	or	r18, r19
   2af36:	71 f4       	brne	.+28     	; 0x2af54 <SdFile::gfComputeNextFileBlock()+0x9e>
   2af38:	11 11       	cpse	r17, r1
   2af3a:	0c c0       	rjmp	.+24     	; 0x2af54 <SdFile::gfComputeNextFileBlock()+0x9e>
            // start of new cluster
            if (curPosition_ == 0) {
   2af3c:	45 2b       	or	r20, r21
   2af3e:	46 2b       	or	r20, r22
   2af40:	47 2b       	or	r20, r23
   2af42:	31 f5       	brne	.+76     	; 0x2af90 <SdFile::gfComputeNextFileBlock()+0xda>
                // use first cluster in file
                curCluster_ = firstCluster_;
   2af44:	8d 89       	ldd	r24, Y+21	; 0x15
   2af46:	9e 89       	ldd	r25, Y+22	; 0x16
   2af48:	af 89       	ldd	r26, Y+23	; 0x17
   2af4a:	b8 8d       	ldd	r27, Y+24	; 0x18
   2af4c:	8c 83       	std	Y+4, r24	; 0x04
   2af4e:	9d 83       	std	Y+5, r25	; 0x05
   2af50:	ae 83       	std	Y+6, r26	; 0x06
   2af52:	bf 83       	std	Y+7, r27	; 0x07
            } else {
                // get next cluster from FAT
                if (!vol_->fatGet(curCluster_, &curCluster_)) return false;
            }
        }
        gfBlock = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
   2af54:	e9 8d       	ldd	r30, Y+25	; 0x19
   2af56:	fa 8d       	ldd	r31, Y+26	; 0x1a
  uint32_t clusterStartBlock(uint32_t cluster) const {
           return dataStartBlock_ + ((cluster - 2) << clusterSizeShift_);}
   2af58:	8c 81       	ldd	r24, Y+4	; 0x04
   2af5a:	9d 81       	ldd	r25, Y+5	; 0x05
   2af5c:	ae 81       	ldd	r26, Y+6	; 0x06
   2af5e:	bf 81       	ldd	r27, Y+7	; 0x07
   2af60:	02 97       	sbiw	r24, 0x02	; 2
   2af62:	a1 09       	sbc	r26, r1
   2af64:	b1 09       	sbc	r27, r1
   2af66:	25 85       	ldd	r18, Z+13	; 0x0d
   2af68:	04 c0       	rjmp	.+8      	; 0x2af72 <SdFile::gfComputeNextFileBlock()+0xbc>
   2af6a:	88 0f       	add	r24, r24
   2af6c:	99 1f       	adc	r25, r25
   2af6e:	aa 1f       	adc	r26, r26
   2af70:	bb 1f       	adc	r27, r27
   2af72:	2a 95       	dec	r18
   2af74:	d2 f7       	brpl	.-12     	; 0x2af6a <SdFile::gfComputeNextFileBlock()+0xb4>
   2af76:	46 85       	ldd	r20, Z+14	; 0x0e
   2af78:	57 85       	ldd	r21, Z+15	; 0x0f
   2af7a:	60 89       	ldd	r22, Z+16	; 0x10
   2af7c:	71 89       	ldd	r23, Z+17	; 0x11
   2af7e:	84 0f       	add	r24, r20
   2af80:	95 1f       	adc	r25, r21
   2af82:	a6 1f       	adc	r26, r22
   2af84:	b7 1f       	adc	r27, r23
   2af86:	81 0f       	add	r24, r17
   2af88:	91 1d       	adc	r25, r1
   2af8a:	a1 1d       	adc	r26, r1
   2af8c:	b1 1d       	adc	r27, r1
   2af8e:	c8 cf       	rjmp	.-112    	; 0x2af20 <SdFile::gfComputeNextFileBlock()+0x6a>
            if (curPosition_ == 0) {
                // use first cluster in file
                curCluster_ = firstCluster_;
            } else {
                // get next cluster from FAT
                if (!vol_->fatGet(curCluster_, &curCluster_)) return false;
   2af90:	4c 81       	ldd	r20, Y+4	; 0x04
   2af92:	5d 81       	ldd	r21, Y+5	; 0x05
   2af94:	6e 81       	ldd	r22, Y+6	; 0x06
   2af96:	7f 81       	ldd	r23, Y+7	; 0x07
   2af98:	9e 01       	movw	r18, r28
   2af9a:	2c 5f       	subi	r18, 0xFC	; 252
   2af9c:	3f 4f       	sbci	r19, 0xFF	; 255
   2af9e:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2afa2:	81 11       	cpse	r24, r1
   2afa4:	d7 cf       	rjmp	.-82     	; 0x2af54 <SdFile::gfComputeNextFileBlock()+0x9e>
   2afa6:	92 cf       	rjmp	.-220    	; 0x2aecc <SdFile::gfComputeNextFileBlock()+0x16>

0002afa8 <SdBaseFile::seekSet(unsigned long)>:
 * \param[in] pos The new position in bytes from the beginning of the file.
 *
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
bool SdBaseFile::seekSet(uint32_t pos) {
   2afa8:	8f 92       	push	r8
   2afaa:	9f 92       	push	r9
   2afac:	af 92       	push	r10
   2afae:	bf 92       	push	r11
   2afb0:	cf 92       	push	r12
   2afb2:	df 92       	push	r13
   2afb4:	ef 92       	push	r14
   2afb6:	ff 92       	push	r15
   2afb8:	0f 93       	push	r16
   2afba:	1f 93       	push	r17
   2afbc:	cf 93       	push	r28
   2afbe:	df 93       	push	r29
   2afc0:	ec 01       	movw	r28, r24
   2afc2:	8b 81       	ldd	r24, Y+3	; 0x03
  uint32_t nCur;
  uint32_t nNew;
  // error if file not open or seek past end of file
  if (!isOpen() || pos > fileSize_) goto fail;
   2afc4:	81 11       	cpse	r24, r1
   2afc6:	0e c0       	rjmp	.+28     	; 0x2afe4 <SdBaseFile::seekSet(unsigned long)+0x3c>

 done:
  return true;

 fail:
  return false;
   2afc8:	80 e0       	ldi	r24, 0x00	; 0
}
   2afca:	df 91       	pop	r29
   2afcc:	cf 91       	pop	r28
   2afce:	1f 91       	pop	r17
   2afd0:	0f 91       	pop	r16
   2afd2:	ff 90       	pop	r15
   2afd4:	ef 90       	pop	r14
   2afd6:	df 90       	pop	r13
   2afd8:	cf 90       	pop	r12
   2afda:	bf 90       	pop	r11
   2afdc:	af 90       	pop	r10
   2afde:	9f 90       	pop	r9
   2afe0:	8f 90       	pop	r8
   2afe2:	08 95       	ret
 */
bool SdBaseFile::seekSet(uint32_t pos) {
  uint32_t nCur;
  uint32_t nNew;
  // error if file not open or seek past end of file
  if (!isOpen() || pos > fileSize_) goto fail;
   2afe4:	09 89       	ldd	r16, Y+17	; 0x11
   2afe6:	1a 89       	ldd	r17, Y+18	; 0x12
   2afe8:	2b 89       	ldd	r18, Y+19	; 0x13
   2afea:	3c 89       	ldd	r19, Y+20	; 0x14
   2afec:	04 17       	cp	r16, r20
   2afee:	15 07       	cpc	r17, r21
   2aff0:	26 07       	cpc	r18, r22
   2aff2:	37 07       	cpc	r19, r23
   2aff4:	48 f3       	brcs	.-46     	; 0x2afc8 <SdBaseFile::seekSet(unsigned long)+0x20>
   2aff6:	4a 01       	movw	r8, r20
   2aff8:	5b 01       	movw	r10, r22

  if (type_ == FAT_FILE_TYPE_ROOT_FIXED) {
   2affa:	82 30       	cpi	r24, 0x02	; 2
   2affc:	31 f4       	brne	.+12     	; 0x2b00a <SdBaseFile::seekSet(unsigned long)+0x62>
    curPosition_ = pos;
   2affe:	88 86       	std	Y+8, r8	; 0x08
   2b000:	99 86       	std	Y+9, r9	; 0x09
   2b002:	aa 86       	std	Y+10, r10	; 0x0a
   2b004:	bb 86       	std	Y+11, r11	; 0x0b
    if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
  }
  curPosition_ = pos;

 done:
  return true;
   2b006:	81 e0       	ldi	r24, 0x01	; 1
   2b008:	e0 cf       	rjmp	.-64     	; 0x2afca <SdBaseFile::seekSet(unsigned long)+0x22>

  if (type_ == FAT_FILE_TYPE_ROOT_FIXED) {
    curPosition_ = pos;
    goto done;
  }
  if (pos == 0) {
   2b00a:	81 14       	cp	r8, r1
   2b00c:	91 04       	cpc	r9, r1
   2b00e:	a1 04       	cpc	r10, r1
   2b010:	b1 04       	cpc	r11, r1
   2b012:	49 f4       	brne	.+18     	; 0x2b026 <SdBaseFile::seekSet(unsigned long)+0x7e>
    // set position to start of file
    curCluster_ = 0;
   2b014:	1c 82       	std	Y+4, r1	; 0x04
   2b016:	1d 82       	std	Y+5, r1	; 0x05
   2b018:	1e 82       	std	Y+6, r1	; 0x06
   2b01a:	1f 82       	std	Y+7, r1	; 0x07
    curPosition_ = 0;
   2b01c:	18 86       	std	Y+8, r1	; 0x08
   2b01e:	19 86       	std	Y+9, r1	; 0x09
   2b020:	1a 86       	std	Y+10, r1	; 0x0a
   2b022:	1b 86       	std	Y+11, r1	; 0x0b
   2b024:	f0 cf       	rjmp	.-32     	; 0x2b006 <SdBaseFile::seekSet(unsigned long)+0x5e>
    goto done;
  }
  // calculate cluster index for cur and new position
  nCur = (curPosition_ - 1) >> (vol_->clusterSizeShift_ + 9);
   2b026:	08 85       	ldd	r16, Y+8	; 0x08
   2b028:	19 85       	ldd	r17, Y+9	; 0x09
   2b02a:	2a 85       	ldd	r18, Y+10	; 0x0a
   2b02c:	3b 85       	ldd	r19, Y+11	; 0x0b
   2b02e:	e9 8d       	ldd	r30, Y+25	; 0x19
   2b030:	fa 8d       	ldd	r31, Y+26	; 0x1a
   2b032:	85 85       	ldd	r24, Z+13	; 0x0d
   2b034:	90 e0       	ldi	r25, 0x00	; 0
   2b036:	09 96       	adiw	r24, 0x09	; 9
   2b038:	b9 01       	movw	r22, r18
   2b03a:	a8 01       	movw	r20, r16
   2b03c:	41 50       	subi	r20, 0x01	; 1
   2b03e:	51 09       	sbc	r21, r1
   2b040:	61 09       	sbc	r22, r1
   2b042:	71 09       	sbc	r23, r1
   2b044:	08 2e       	mov	r0, r24
   2b046:	04 c0       	rjmp	.+8      	; 0x2b050 <SdBaseFile::seekSet(unsigned long)+0xa8>
   2b048:	76 95       	lsr	r23
   2b04a:	67 95       	ror	r22
   2b04c:	57 95       	ror	r21
   2b04e:	47 95       	ror	r20
   2b050:	0a 94       	dec	r0
   2b052:	d2 f7       	brpl	.-12     	; 0x2b048 <SdBaseFile::seekSet(unsigned long)+0xa0>
  nNew = (pos - 1) >> (vol_->clusterSizeShift_ + 9);
   2b054:	75 01       	movw	r14, r10
   2b056:	64 01       	movw	r12, r8
   2b058:	e1 e0       	ldi	r30, 0x01	; 1
   2b05a:	ce 1a       	sub	r12, r30
   2b05c:	d1 08       	sbc	r13, r1
   2b05e:	e1 08       	sbc	r14, r1
   2b060:	f1 08       	sbc	r15, r1
   2b062:	04 c0       	rjmp	.+8      	; 0x2b06c <SdBaseFile::seekSet(unsigned long)+0xc4>
   2b064:	f6 94       	lsr	r15
   2b066:	e7 94       	ror	r14
   2b068:	d7 94       	ror	r13
   2b06a:	c7 94       	ror	r12
   2b06c:	8a 95       	dec	r24
   2b06e:	d2 f7       	brpl	.-12     	; 0x2b064 <SdBaseFile::seekSet(unsigned long)+0xbc>

  if (nNew < nCur || curPosition_ == 0) {
   2b070:	c4 16       	cp	r12, r20
   2b072:	d5 06       	cpc	r13, r21
   2b074:	e6 06       	cpc	r14, r22
   2b076:	f7 06       	cpc	r15, r23
   2b078:	20 f0       	brcs	.+8      	; 0x2b082 <SdBaseFile::seekSet(unsigned long)+0xda>
   2b07a:	01 2b       	or	r16, r17
   2b07c:	02 2b       	or	r16, r18
   2b07e:	03 2b       	or	r16, r19
   2b080:	11 f5       	brne	.+68     	; 0x2b0c6 <SdBaseFile::seekSet(unsigned long)+0x11e>
    // must follow chain from first cluster
    curCluster_ = firstCluster_;
   2b082:	8d 89       	ldd	r24, Y+21	; 0x15
   2b084:	9e 89       	ldd	r25, Y+22	; 0x16
   2b086:	af 89       	ldd	r26, Y+23	; 0x17
   2b088:	b8 8d       	ldd	r27, Y+24	; 0x18
   2b08a:	8c 83       	std	Y+4, r24	; 0x04
   2b08c:	9d 83       	std	Y+5, r25	; 0x05
   2b08e:	ae 83       	std	Y+6, r26	; 0x06
   2b090:	bf 83       	std	Y+7, r27	; 0x07
  } else {
    // advance from curPosition
    nNew -= nCur;
  }
  while (nNew--) {
    if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
   2b092:	8e 01       	movw	r16, r28
   2b094:	0c 5f       	subi	r16, 0xFC	; 252
   2b096:	1f 4f       	sbci	r17, 0xFF	; 255
    curCluster_ = firstCluster_;
  } else {
    // advance from curPosition
    nNew -= nCur;
  }
  while (nNew--) {
   2b098:	c1 14       	cp	r12, r1
   2b09a:	d1 04       	cpc	r13, r1
   2b09c:	e1 04       	cpc	r14, r1
   2b09e:	f1 04       	cpc	r15, r1
   2b0a0:	09 f4       	brne	.+2      	; 0x2b0a4 <SdBaseFile::seekSet(unsigned long)+0xfc>
   2b0a2:	ad cf       	rjmp	.-166    	; 0x2affe <SdBaseFile::seekSet(unsigned long)+0x56>
    if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
   2b0a4:	4c 81       	ldd	r20, Y+4	; 0x04
   2b0a6:	5d 81       	ldd	r21, Y+5	; 0x05
   2b0a8:	6e 81       	ldd	r22, Y+6	; 0x06
   2b0aa:	7f 81       	ldd	r23, Y+7	; 0x07
   2b0ac:	98 01       	movw	r18, r16
   2b0ae:	89 8d       	ldd	r24, Y+25	; 0x19
   2b0b0:	9a 8d       	ldd	r25, Y+26	; 0x1a
   2b0b2:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2b0b6:	91 e0       	ldi	r25, 0x01	; 1
   2b0b8:	c9 1a       	sub	r12, r25
   2b0ba:	d1 08       	sbc	r13, r1
   2b0bc:	e1 08       	sbc	r14, r1
   2b0be:	f1 08       	sbc	r15, r1
   2b0c0:	81 11       	cpse	r24, r1
   2b0c2:	ea cf       	rjmp	.-44     	; 0x2b098 <SdBaseFile::seekSet(unsigned long)+0xf0>
   2b0c4:	81 cf       	rjmp	.-254    	; 0x2afc8 <SdBaseFile::seekSet(unsigned long)+0x20>
  if (nNew < nCur || curPosition_ == 0) {
    // must follow chain from first cluster
    curCluster_ = firstCluster_;
  } else {
    // advance from curPosition
    nNew -= nCur;
   2b0c6:	c4 1a       	sub	r12, r20
   2b0c8:	d5 0a       	sbc	r13, r21
   2b0ca:	e6 0a       	sbc	r14, r22
   2b0cc:	f7 0a       	sbc	r15, r23
   2b0ce:	e1 cf       	rjmp	.-62     	; 0x2b092 <SdBaseFile::seekSet(unsigned long)+0xea>

0002b0d0 <SdBaseFile::addCluster()>:
SdBaseFile* SdBaseFile::cwd_ = 0;
// callback function for date/time
void (*SdBaseFile::dateTime_)(uint16_t* date, uint16_t* time) = 0;
//------------------------------------------------------------------------------
// add a cluster to a file
bool SdBaseFile::addCluster() {
   2b0d0:	3f 92       	push	r3
   2b0d2:	4f 92       	push	r4
   2b0d4:	5f 92       	push	r5
   2b0d6:	6f 92       	push	r6
   2b0d8:	7f 92       	push	r7
   2b0da:	8f 92       	push	r8
   2b0dc:	9f 92       	push	r9
   2b0de:	af 92       	push	r10
   2b0e0:	bf 92       	push	r11
   2b0e2:	cf 92       	push	r12
   2b0e4:	df 92       	push	r13
   2b0e6:	ef 92       	push	r14
   2b0e8:	ff 92       	push	r15
   2b0ea:	0f 93       	push	r16
   2b0ec:	1f 93       	push	r17
   2b0ee:	cf 93       	push	r28
   2b0f0:	df 93       	push	r29
   2b0f2:	cd b7       	in	r28, 0x3d	; 61
   2b0f4:	de b7       	in	r29, 0x3e	; 62
   2b0f6:	2c 97       	sbiw	r28, 0x0c	; 12
   2b0f8:	0f b6       	in	r0, 0x3f	; 63
   2b0fa:	f8 94       	cli
   2b0fc:	de bf       	out	0x3e, r29	; 62
   2b0fe:	0f be       	out	0x3f, r0	; 63
   2b100:	cd bf       	out	0x3d, r28	; 61
   2b102:	5c 01       	movw	r10, r24
  if (!vol_->allocContiguous(1, &curCluster_)) goto fail;
   2b104:	dc 01       	movw	r26, r24
   2b106:	59 96       	adiw	r26, 0x19	; 25
   2b108:	8d 90       	ld	r8, X+
   2b10a:	9c 90       	ld	r9, X
  // start of group
  uint32_t bgnCluster;
  // end of group
  uint32_t endCluster;
  // last cluster of FAT
  uint32_t fatEnd = clusterCount_ + 1;
   2b10c:	f4 01       	movw	r30, r8
   2b10e:	81 85       	ldd	r24, Z+9	; 0x09
   2b110:	92 85       	ldd	r25, Z+10	; 0x0a
   2b112:	a3 85       	ldd	r26, Z+11	; 0x0b
   2b114:	b4 85       	ldd	r27, Z+12	; 0x0c
   2b116:	9c 01       	movw	r18, r24
   2b118:	ad 01       	movw	r20, r26
   2b11a:	2f 5f       	subi	r18, 0xFF	; 255
   2b11c:	3f 4f       	sbci	r19, 0xFF	; 255
   2b11e:	4f 4f       	sbci	r20, 0xFF	; 255
   2b120:	5f 4f       	sbci	r21, 0xFF	; 255
   2b122:	29 87       	std	Y+9, r18	; 0x09
   2b124:	3a 87       	std	Y+10, r19	; 0x0a
   2b126:	4b 87       	std	Y+11, r20	; 0x0b
   2b128:	5c 87       	std	Y+12, r21	; 0x0c

  // flag to save place to start next search
  bool setStart;

  // set search start cluster
  if (*curCluster) {
   2b12a:	d5 01       	movw	r26, r10
   2b12c:	14 96       	adiw	r26, 0x04	; 4
   2b12e:	4d 90       	ld	r4, X+
   2b130:	5d 90       	ld	r5, X+
   2b132:	6d 90       	ld	r6, X+
   2b134:	7c 90       	ld	r7, X
   2b136:	17 97       	sbiw	r26, 0x07	; 7
   2b138:	41 14       	cp	r4, r1
   2b13a:	51 04       	cpc	r5, r1
   2b13c:	61 04       	cpc	r6, r1
   2b13e:	71 04       	cpc	r7, r1
   2b140:	09 f4       	brne	.+2      	; 0x2b144 <SdBaseFile::addCluster()+0x74>
   2b142:	59 c0       	rjmp	.+178    	; 0x2b1f6 <SdBaseFile::addCluster()+0x126>
    // try to make file contiguous
    bgnCluster = *curCluster + 1;
   2b144:	bf ef       	ldi	r27, 0xFF	; 255
   2b146:	4b 1a       	sub	r4, r27
   2b148:	5b 0a       	sbc	r5, r27
   2b14a:	6b 0a       	sbc	r6, r27
   2b14c:	7b 0a       	sbc	r7, r27

    // don't save new start location
    setStart = false;
   2b14e:	31 2c       	mov	r3, r1

    // save next search start if one cluster
    setStart = count == 1;
  }
  // end of group
  endCluster = bgnCluster;
   2b150:	73 01       	movw	r14, r6
   2b152:	62 01       	movw	r12, r4

  // search the FAT for free clusters
  for (uint32_t n = 0;; n++, endCluster++) {
   2b154:	1d 82       	std	Y+5, r1	; 0x05
   2b156:	1e 82       	std	Y+6, r1	; 0x06
   2b158:	1f 82       	std	Y+7, r1	; 0x07
   2b15a:	18 86       	std	Y+8, r1	; 0x08
    // can't find space checked all clusters
    if (n >= clusterCount_) goto fail;
   2b15c:	f4 01       	movw	r30, r8
   2b15e:	81 85       	ldd	r24, Z+9	; 0x09
   2b160:	92 85       	ldd	r25, Z+10	; 0x0a
   2b162:	a3 85       	ldd	r26, Z+11	; 0x0b
   2b164:	b4 85       	ldd	r27, Z+12	; 0x0c
   2b166:	2d 81       	ldd	r18, Y+5	; 0x05
   2b168:	3e 81       	ldd	r19, Y+6	; 0x06
   2b16a:	4f 81       	ldd	r20, Y+7	; 0x07
   2b16c:	58 85       	ldd	r21, Y+8	; 0x08
   2b16e:	28 17       	cp	r18, r24
   2b170:	39 07       	cpc	r19, r25
   2b172:	4a 07       	cpc	r20, r26
   2b174:	5b 07       	cpc	r21, r27
   2b176:	08 f0       	brcs	.+2      	; 0x2b17a <SdBaseFile::addCluster()+0xaa>
   2b178:	56 c0       	rjmp	.+172    	; 0x2b226 <SdBaseFile::addCluster()+0x156>

    // past end - start from beginning of FAT
    if (endCluster > fatEnd) {
   2b17a:	89 85       	ldd	r24, Y+9	; 0x09
   2b17c:	9a 85       	ldd	r25, Y+10	; 0x0a
   2b17e:	ab 85       	ldd	r26, Y+11	; 0x0b
   2b180:	bc 85       	ldd	r27, Y+12	; 0x0c
   2b182:	8c 15       	cp	r24, r12
   2b184:	9d 05       	cpc	r25, r13
   2b186:	ae 05       	cpc	r26, r14
   2b188:	bf 05       	cpc	r27, r15
   2b18a:	50 f4       	brcc	.+20     	; 0x2b1a0 <SdBaseFile::addCluster()+0xd0>
      bgnCluster = endCluster = 2;
   2b18c:	82 e0       	ldi	r24, 0x02	; 2
   2b18e:	c8 2e       	mov	r12, r24
   2b190:	d1 2c       	mov	r13, r1
   2b192:	e1 2c       	mov	r14, r1
   2b194:	f1 2c       	mov	r15, r1
   2b196:	92 e0       	ldi	r25, 0x02	; 2
   2b198:	49 2e       	mov	r4, r25
   2b19a:	51 2c       	mov	r5, r1
   2b19c:	61 2c       	mov	r6, r1
   2b19e:	71 2c       	mov	r7, r1
    }
    uint32_t f;
    if (!fatGet(endCluster, &f)) goto fail;
   2b1a0:	9e 01       	movw	r18, r28
   2b1a2:	2f 5f       	subi	r18, 0xFF	; 255
   2b1a4:	3f 4f       	sbci	r19, 0xFF	; 255
   2b1a6:	b7 01       	movw	r22, r14
   2b1a8:	a6 01       	movw	r20, r12
   2b1aa:	c4 01       	movw	r24, r8
   2b1ac:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2b1b0:	88 23       	and	r24, r24
   2b1b2:	c9 f1       	breq	.+114    	; 0x2b226 <SdBaseFile::addCluster()+0x156>

    if (f != 0) {
   2b1b4:	89 81       	ldd	r24, Y+1	; 0x01
   2b1b6:	9a 81       	ldd	r25, Y+2	; 0x02
   2b1b8:	ab 81       	ldd	r26, Y+3	; 0x03
   2b1ba:	bc 81       	ldd	r27, Y+4	; 0x04
   2b1bc:	89 2b       	or	r24, r25
   2b1be:	8a 2b       	or	r24, r26
   2b1c0:	8b 2b       	or	r24, r27
   2b1c2:	01 f1       	breq	.+64     	; 0x2b204 <SdBaseFile::addCluster()+0x134>
      // cluster in use try next cluster as bgnCluster
      bgnCluster = endCluster + 1;
   2b1c4:	26 01       	movw	r4, r12
   2b1c6:	37 01       	movw	r6, r14
   2b1c8:	9f ef       	ldi	r25, 0xFF	; 255
   2b1ca:	49 1a       	sub	r4, r25
   2b1cc:	59 0a       	sbc	r5, r25
   2b1ce:	69 0a       	sbc	r6, r25
   2b1d0:	79 0a       	sbc	r7, r25
  }
  // end of group
  endCluster = bgnCluster;

  // search the FAT for free clusters
  for (uint32_t n = 0;; n++, endCluster++) {
   2b1d2:	2d 81       	ldd	r18, Y+5	; 0x05
   2b1d4:	3e 81       	ldd	r19, Y+6	; 0x06
   2b1d6:	4f 81       	ldd	r20, Y+7	; 0x07
   2b1d8:	58 85       	ldd	r21, Y+8	; 0x08
   2b1da:	2f 5f       	subi	r18, 0xFF	; 255
   2b1dc:	3f 4f       	sbci	r19, 0xFF	; 255
   2b1de:	4f 4f       	sbci	r20, 0xFF	; 255
   2b1e0:	5f 4f       	sbci	r21, 0xFF	; 255
   2b1e2:	2d 83       	std	Y+5, r18	; 0x05
   2b1e4:	3e 83       	std	Y+6, r19	; 0x06
   2b1e6:	4f 83       	std	Y+7, r20	; 0x07
   2b1e8:	58 87       	std	Y+8, r21	; 0x08
   2b1ea:	3f ef       	ldi	r19, 0xFF	; 255
   2b1ec:	c3 1a       	sub	r12, r19
   2b1ee:	d3 0a       	sbc	r13, r19
   2b1f0:	e3 0a       	sbc	r14, r19
   2b1f2:	f3 0a       	sbc	r15, r19
   2b1f4:	b3 cf       	rjmp	.-154    	; 0x2b15c <SdBaseFile::addCluster()+0x8c>

    // don't save new start location
    setStart = false;
  } else {
    // start at likely place for free cluster
    bgnCluster = allocSearchStart_;
   2b1f6:	40 80       	ld	r4, Z
   2b1f8:	51 80       	ldd	r5, Z+1	; 0x01
   2b1fa:	62 80       	ldd	r6, Z+2	; 0x02
   2b1fc:	73 80       	ldd	r7, Z+3	; 0x03

    // save next search start if one cluster
    setStart = count == 1;
   2b1fe:	33 24       	eor	r3, r3
   2b200:	33 94       	inc	r3
   2b202:	a6 cf       	rjmp	.-180    	; 0x2b150 <SdBaseFile::addCluster()+0x80>
    if (!fatGet(endCluster, &f)) goto fail;

    if (f != 0) {
      // cluster in use try next cluster as bgnCluster
      bgnCluster = endCluster + 1;
    } else if ((endCluster - bgnCluster + 1) == count) {
   2b204:	c4 14       	cp	r12, r4
   2b206:	d5 04       	cpc	r13, r5
   2b208:	e6 04       	cpc	r14, r6
   2b20a:	f7 04       	cpc	r15, r7
   2b20c:	11 f7       	brne	.-60     	; 0x2b1d2 <SdBaseFile::addCluster()+0x102>
  void cacheSetDirty() {cacheDirty_ |= CACHE_FOR_WRITE;}
  bool chainSize(uint32_t beginCluster, uint32_t* size);
  bool fatGet(uint32_t cluster, uint32_t* value);
  bool fatPut(uint32_t cluster, uint32_t value);
  bool fatPutEOC(uint32_t cluster) {
    return fatPut(cluster, 0x0FFFFFFF);
   2b20e:	0f ef       	ldi	r16, 0xFF	; 255
   2b210:	1f ef       	ldi	r17, 0xFF	; 255
   2b212:	2f ef       	ldi	r18, 0xFF	; 255
   2b214:	3f e0       	ldi	r19, 0x0F	; 15
   2b216:	b7 01       	movw	r22, r14
   2b218:	a6 01       	movw	r20, r12
   2b21a:	c4 01       	movw	r24, r8
   2b21c:	0f 94 8c 55 	call	0x2ab18	; 0x2ab18 <SdVolume::fatPut(unsigned long, unsigned long)>
   2b220:	78 2e       	mov	r7, r24
      // done - found space
      break;
    }
  }
  // mark end of chain
  if (!fatPutEOC(endCluster)) goto fail;
   2b222:	81 11       	cpse	r24, r1
   2b224:	1a c0       	rjmp	.+52     	; 0x2b25a <SdBaseFile::addCluster()+0x18a>
    flags_ |= F_FILE_DIR_DIRTY;
  }
  return true;

 fail:
  return false;
   2b226:	71 2c       	mov	r7, r1
}
   2b228:	87 2d       	mov	r24, r7
   2b22a:	2c 96       	adiw	r28, 0x0c	; 12
   2b22c:	0f b6       	in	r0, 0x3f	; 63
   2b22e:	f8 94       	cli
   2b230:	de bf       	out	0x3e, r29	; 62
   2b232:	0f be       	out	0x3f, r0	; 63
   2b234:	cd bf       	out	0x3d, r28	; 61
   2b236:	df 91       	pop	r29
   2b238:	cf 91       	pop	r28
   2b23a:	1f 91       	pop	r17
   2b23c:	0f 91       	pop	r16
   2b23e:	ff 90       	pop	r15
   2b240:	ef 90       	pop	r14
   2b242:	df 90       	pop	r13
   2b244:	cf 90       	pop	r12
   2b246:	bf 90       	pop	r11
   2b248:	af 90       	pop	r10
   2b24a:	9f 90       	pop	r9
   2b24c:	8f 90       	pop	r8
   2b24e:	7f 90       	pop	r7
   2b250:	6f 90       	pop	r6
   2b252:	5f 90       	pop	r5
   2b254:	4f 90       	pop	r4
   2b256:	3f 90       	pop	r3
   2b258:	08 95       	ret
  // link clusters
  while (endCluster > bgnCluster) {
    if (!fatPut(endCluster - 1, endCluster)) goto fail;
    endCluster--;
  }
  if (*curCluster != 0) {
   2b25a:	f5 01       	movw	r30, r10
   2b25c:	44 81       	ldd	r20, Z+4	; 0x04
   2b25e:	55 81       	ldd	r21, Z+5	; 0x05
   2b260:	66 81       	ldd	r22, Z+6	; 0x06
   2b262:	77 81       	ldd	r23, Z+7	; 0x07
   2b264:	41 15       	cp	r20, r1
   2b266:	51 05       	cpc	r21, r1
   2b268:	61 05       	cpc	r22, r1
   2b26a:	71 05       	cpc	r23, r1
   2b26c:	39 f0       	breq	.+14     	; 0x2b27c <SdBaseFile::addCluster()+0x1ac>
    // connect chains
    if (!fatPut(*curCluster, bgnCluster)) goto fail;
   2b26e:	97 01       	movw	r18, r14
   2b270:	86 01       	movw	r16, r12
   2b272:	c4 01       	movw	r24, r8
   2b274:	0f 94 8c 55 	call	0x2ab18	; 0x2ab18 <SdVolume::fatPut(unsigned long, unsigned long)>
   2b278:	88 23       	and	r24, r24
   2b27a:	a9 f2       	breq	.-86     	; 0x2b226 <SdBaseFile::addCluster()+0x156>
  }
  // return first cluster number to caller
  *curCluster = bgnCluster;
   2b27c:	d5 01       	movw	r26, r10
   2b27e:	14 96       	adiw	r26, 0x04	; 4
   2b280:	cd 92       	st	X+, r12
   2b282:	dd 92       	st	X+, r13
   2b284:	ed 92       	st	X+, r14
   2b286:	fc 92       	st	X, r15
   2b288:	17 97       	sbiw	r26, 0x07	; 7

  // remember possible next free cluster
  if (setStart) allocSearchStart_ = bgnCluster + 1;
   2b28a:	33 20       	and	r3, r3
   2b28c:	51 f0       	breq	.+20     	; 0x2b2a2 <SdBaseFile::addCluster()+0x1d2>
   2b28e:	d7 01       	movw	r26, r14
   2b290:	c6 01       	movw	r24, r12
   2b292:	01 96       	adiw	r24, 0x01	; 1
   2b294:	a1 1d       	adc	r26, r1
   2b296:	b1 1d       	adc	r27, r1
   2b298:	f4 01       	movw	r30, r8
   2b29a:	80 83       	st	Z, r24
   2b29c:	91 83       	std	Z+1, r25	; 0x01
   2b29e:	a2 83       	std	Z+2, r26	; 0x02
   2b2a0:	b3 83       	std	Z+3, r27	; 0x03
// add a cluster to a file
bool SdBaseFile::addCluster() {
  if (!vol_->allocContiguous(1, &curCluster_)) goto fail;

  // if first cluster of file link to directory entry
  if (firstCluster_ == 0) {
   2b2a2:	f5 01       	movw	r30, r10
   2b2a4:	85 89       	ldd	r24, Z+21	; 0x15
   2b2a6:	96 89       	ldd	r25, Z+22	; 0x16
   2b2a8:	a7 89       	ldd	r26, Z+23	; 0x17
   2b2aa:	b0 8d       	ldd	r27, Z+24	; 0x18
   2b2ac:	89 2b       	or	r24, r25
   2b2ae:	8a 2b       	or	r24, r26
   2b2b0:	8b 2b       	or	r24, r27
   2b2b2:	09 f0       	breq	.+2      	; 0x2b2b6 <SdBaseFile::addCluster()+0x1e6>
   2b2b4:	b9 cf       	rjmp	.-142    	; 0x2b228 <SdBaseFile::addCluster()+0x158>
    firstCluster_ = curCluster_;
   2b2b6:	c5 8a       	std	Z+21, r12	; 0x15
   2b2b8:	d6 8a       	std	Z+22, r13	; 0x16
   2b2ba:	e7 8a       	std	Z+23, r14	; 0x17
   2b2bc:	f0 8e       	std	Z+24, r15	; 0x18
    flags_ |= F_FILE_DIR_DIRTY;
   2b2be:	81 81       	ldd	r24, Z+1	; 0x01
   2b2c0:	80 68       	ori	r24, 0x80	; 128
   2b2c2:	81 83       	std	Z+1, r24	; 0x01
   2b2c4:	b1 cf       	rjmp	.-158    	; 0x2b228 <SdBaseFile::addCluster()+0x158>

0002b2c6 <SdBaseFile::cacheDirEntry(unsigned char)>:
  return false;
}
//------------------------------------------------------------------------------
// cache a file's directory entry
// return pointer to cached entry or null for failure
dir_t* SdBaseFile::cacheDirEntry(uint8_t action) {
   2b2c6:	cf 93       	push	r28
   2b2c8:	df 93       	push	r29
   2b2ca:	ec 01       	movw	r28, r24
  if (!vol_->cacheRawBlock(dirBlock_, action)) goto fail;
   2b2cc:	46 2f       	mov	r20, r22
   2b2ce:	41 70       	andi	r20, 0x01	; 1
   2b2d0:	6c 85       	ldd	r22, Y+12	; 0x0c
   2b2d2:	7d 85       	ldd	r23, Y+13	; 0x0d
   2b2d4:	8e 85       	ldd	r24, Y+14	; 0x0e
   2b2d6:	9f 85       	ldd	r25, Y+15	; 0x0f
   2b2d8:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2b2dc:	88 23       	and	r24, r24
   2b2de:	51 f0       	breq	.+20     	; 0x2b2f4 <SdBaseFile::cacheDirEntry(unsigned char)+0x2e>
  return vol_->cache()->dir + dirIndex_;
   2b2e0:	88 89       	ldd	r24, Y+16	; 0x10
   2b2e2:	20 e2       	ldi	r18, 0x20	; 32
   2b2e4:	82 9f       	mul	r24, r18
   2b2e6:	c0 01       	movw	r24, r0
   2b2e8:	11 24       	eor	r1, r1
   2b2ea:	83 56       	subi	r24, 0x63	; 99
   2b2ec:	91 4f       	sbci	r25, 0xF1	; 241

 fail:
  return 0;
}
   2b2ee:	df 91       	pop	r29
   2b2f0:	cf 91       	pop	r28
   2b2f2:	08 95       	ret
dir_t* SdBaseFile::cacheDirEntry(uint8_t action) {
  if (!vol_->cacheRawBlock(dirBlock_, action)) goto fail;
  return vol_->cache()->dir + dirIndex_;

 fail:
  return 0;
   2b2f4:	90 e0       	ldi	r25, 0x00	; 0
   2b2f6:	80 e0       	ldi	r24, 0x00	; 0
   2b2f8:	fa cf       	rjmp	.-12     	; 0x2b2ee <SdBaseFile::cacheDirEntry(unsigned char)+0x28>

0002b2fa <SdBaseFile::sync()>:
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 * Reasons for failure include a call to sync() before a file has been
 * opened or an I/O error.
 */
bool SdBaseFile::sync() {
   2b2fa:	cf 93       	push	r28
   2b2fc:	df 93       	push	r29
   2b2fe:	ec 01       	movw	r28, r24
  // only allow open files and directories
  if (!isOpen()) goto fail;
   2b300:	8b 81       	ldd	r24, Y+3	; 0x03
   2b302:	88 23       	and	r24, r24
   2b304:	49 f1       	breq	.+82     	; 0x2b358 <SdBaseFile::sync()+0x5e>

  if (flags_ & F_FILE_DIR_DIRTY) {
   2b306:	89 81       	ldd	r24, Y+1	; 0x01
   2b308:	87 ff       	sbrs	r24, 7
   2b30a:	22 c0       	rjmp	.+68     	; 0x2b350 <SdBaseFile::sync()+0x56>
    dir_t* d = cacheDirEntry(SdVolume::CACHE_FOR_WRITE);
   2b30c:	61 e0       	ldi	r22, 0x01	; 1
   2b30e:	ce 01       	movw	r24, r28
   2b310:	0f 94 63 59 	call	0x2b2c6	; 0x2b2c6 <SdBaseFile::cacheDirEntry(unsigned char)>
   2b314:	fc 01       	movw	r30, r24
    // check for deleted by another open file object
    if (!d || d->name[0] == DIR_NAME_DELETED) goto fail;
   2b316:	89 2b       	or	r24, r25
   2b318:	f9 f0       	breq	.+62     	; 0x2b358 <SdBaseFile::sync()+0x5e>
   2b31a:	80 81       	ld	r24, Z
   2b31c:	85 3e       	cpi	r24, 0xE5	; 229
   2b31e:	e1 f0       	breq	.+56     	; 0x2b358 <SdBaseFile::sync()+0x5e>

    // do not set filesize for dir files
    if (!isDir()) d->fileSize = fileSize_;
   2b320:	8b 81       	ldd	r24, Y+3	; 0x03
   2b322:	82 30       	cpi	r24, 0x02	; 2
   2b324:	40 f4       	brcc	.+16     	; 0x2b336 <SdBaseFile::sync()+0x3c>
   2b326:	89 89       	ldd	r24, Y+17	; 0x11
   2b328:	9a 89       	ldd	r25, Y+18	; 0x12
   2b32a:	ab 89       	ldd	r26, Y+19	; 0x13
   2b32c:	bc 89       	ldd	r27, Y+20	; 0x14
   2b32e:	84 8f       	std	Z+28, r24	; 0x1c
   2b330:	95 8f       	std	Z+29, r25	; 0x1d
   2b332:	a6 8f       	std	Z+30, r26	; 0x1e
   2b334:	b7 8f       	std	Z+31, r27	; 0x1f

    // update first cluster fields
    d->firstClusterLow = firstCluster_ & 0XFFFF;
   2b336:	8d 89       	ldd	r24, Y+21	; 0x15
   2b338:	9e 89       	ldd	r25, Y+22	; 0x16
   2b33a:	93 8f       	std	Z+27, r25	; 0x1b
   2b33c:	82 8f       	std	Z+26, r24	; 0x1a
    d->firstClusterHigh = firstCluster_ >> 16;
   2b33e:	8d 89       	ldd	r24, Y+21	; 0x15
   2b340:	9e 89       	ldd	r25, Y+22	; 0x16
   2b342:	af 89       	ldd	r26, Y+23	; 0x17
   2b344:	b8 8d       	ldd	r27, Y+24	; 0x18
   2b346:	b5 8b       	std	Z+21, r27	; 0x15
   2b348:	a4 8b       	std	Z+20, r26	; 0x14
    if (dateTime_) {
      dateTime_(&d->lastWriteDate, &d->lastWriteTime);
      d->lastAccessDate = d->lastWriteDate;
    }
    // clear directory dirty
    flags_ &= ~F_FILE_DIR_DIRTY;
   2b34a:	89 81       	ldd	r24, Y+1	; 0x01
   2b34c:	8f 77       	andi	r24, 0x7F	; 127
   2b34e:	89 83       	std	Y+1, r24	; 0x01
  return vol_->cacheFlush();

 fail:
  writeError = true;
  return false;
}
   2b350:	df 91       	pop	r29
   2b352:	cf 91       	pop	r28
      d->lastAccessDate = d->lastWriteDate;
    }
    // clear directory dirty
    flags_ &= ~F_FILE_DIR_DIRTY;
  }
  return vol_->cacheFlush();
   2b354:	0d 94 57 54 	jmp	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>

 fail:
  writeError = true;
   2b358:	81 e0       	ldi	r24, 0x01	; 1
   2b35a:	88 83       	st	Y, r24
  return false;
}
   2b35c:	80 e0       	ldi	r24, 0x00	; 0
   2b35e:	df 91       	pop	r29
   2b360:	cf 91       	pop	r28
   2b362:	08 95       	ret

0002b364 <SdBaseFile::close()>:
 *
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 * Reasons for failure include no file is open or an I/O error.
 */
bool SdBaseFile::close() {
   2b364:	cf 93       	push	r28
   2b366:	df 93       	push	r29
   2b368:	ec 01       	movw	r28, r24
  bool rtn = sync();
   2b36a:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
  type_ = FAT_FILE_TYPE_CLOSED;
   2b36e:	1b 82       	std	Y+3, r1	; 0x03
  return rtn;
}
   2b370:	df 91       	pop	r29
   2b372:	cf 91       	pop	r28
   2b374:	08 95       	ret

0002b376 <SdBaseFile::getFilename(char*)>:
 * \param[out] name An array of 13 characters for the file's name.
 *
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 */
bool SdBaseFile::getFilename(char* name) {
   2b376:	cf 93       	push	r28
   2b378:	df 93       	push	r29
   2b37a:	eb 01       	movw	r28, r22
   2b37c:	fc 01       	movw	r30, r24
   2b37e:	23 81       	ldd	r18, Z+3	; 0x03
  if (!isOpen()) return false;
   2b380:	21 11       	cpse	r18, r1
   2b382:	04 c0       	rjmp	.+8      	; 0x2b38c <SdBaseFile::getFilename(char*)+0x16>
   2b384:	80 e0       	ldi	r24, 0x00	; 0
  if (!p) return false;

  // format name
  dirName(*p, name);
  return true;
}
   2b386:	df 91       	pop	r29
   2b388:	cf 91       	pop	r28
   2b38a:	08 95       	ret
  bool isOpen() const {return type_ != FAT_FILE_TYPE_CLOSED;}
  /** \return True if this is a subdirectory else false. */
  bool isSubDir() const {return type_ == FAT_FILE_TYPE_SUBDIR;}
  /** \return True if this is the root directory. */
  bool isRoot() const {
    return type_ == FAT_FILE_TYPE_ROOT_FIXED || type_ == FAT_FILE_TYPE_ROOT32;
   2b38c:	22 50       	subi	r18, 0x02	; 2
 * the value zero, false, is returned for failure.
 */
bool SdBaseFile::getFilename(char* name) {
  if (!isOpen()) return false;

  if (isRoot()) {
   2b38e:	22 30       	cpi	r18, 0x02	; 2
   2b390:	28 f4       	brcc	.+10     	; 0x2b39c <SdBaseFile::getFilename(char*)+0x26>
    name[0] = '/';
   2b392:	8f e2       	ldi	r24, 0x2F	; 47
   2b394:	88 83       	st	Y, r24
    name[1] = '\0';
   2b396:	19 82       	std	Y+1, r1	; 0x01
  dir_t* p = cacheDirEntry(SdVolume::CACHE_FOR_READ);
  if (!p) return false;

  // format name
  dirName(*p, name);
  return true;
   2b398:	81 e0       	ldi	r24, 0x01	; 1
   2b39a:	f5 cf       	rjmp	.-22     	; 0x2b386 <SdBaseFile::getFilename(char*)+0x10>
    name[0] = '/';
    name[1] = '\0';
    return true;
  }
  // cache entry
  dir_t* p = cacheDirEntry(SdVolume::CACHE_FOR_READ);
   2b39c:	60 e0       	ldi	r22, 0x00	; 0
   2b39e:	0f 94 63 59 	call	0x2b2c6	; 0x2b2c6 <SdBaseFile::cacheDirEntry(unsigned char)>
  if (!p) return false;
   2b3a2:	00 97       	sbiw	r24, 0x00	; 0
   2b3a4:	79 f3       	breq	.-34     	; 0x2b384 <SdBaseFile::getFilename(char*)+0xe>
   2b3a6:	dc 01       	movw	r26, r24
 *
 * \param[in] dir The directory structure containing the name.
 * \param[out] name A 13 byte char array for the formatted name.
 */
void SdBaseFile::dirName(const dir_t& dir, char* name) {
  uint8_t j = 0;
   2b3a8:	60 e0       	ldi	r22, 0x00	; 0
  for (uint8_t i = 0; i < 11; i++) {
   2b3aa:	80 e0       	ldi	r24, 0x00	; 0
    if (dir.name[i] == ' ')continue;
    if (i == 8) name[j++] = '.';
   2b3ac:	9e e2       	ldi	r25, 0x2E	; 46
 * \param[out] name A 13 byte char array for the formatted name.
 */
void SdBaseFile::dirName(const dir_t& dir, char* name) {
  uint8_t j = 0;
  for (uint8_t i = 0; i < 11; i++) {
    if (dir.name[i] == ' ')continue;
   2b3ae:	2d 91       	ld	r18, X+
   2b3b0:	20 32       	cpi	r18, 0x20	; 32
   2b3b2:	99 f0       	breq	.+38     	; 0x2b3da <SdBaseFile::getFilename(char*)+0x64>
    if (i == 8) name[j++] = '.';
   2b3b4:	88 30       	cpi	r24, 0x08	; 8
   2b3b6:	31 f4       	brne	.+12     	; 0x2b3c4 <SdBaseFile::getFilename(char*)+0x4e>
   2b3b8:	9e 01       	movw	r18, r28
   2b3ba:	26 0f       	add	r18, r22
   2b3bc:	31 1d       	adc	r19, r1
   2b3be:	f9 01       	movw	r30, r18
   2b3c0:	90 83       	st	Z, r25
   2b3c2:	6f 5f       	subi	r22, 0xFF	; 255
    name[j++] = dir.name[i];
   2b3c4:	9e 01       	movw	r18, r28
   2b3c6:	26 0f       	add	r18, r22
   2b3c8:	31 1d       	adc	r19, r1
   2b3ca:	ad 01       	movw	r20, r26
   2b3cc:	41 50       	subi	r20, 0x01	; 1
   2b3ce:	51 09       	sbc	r21, r1
   2b3d0:	fa 01       	movw	r30, r20
   2b3d2:	40 81       	ld	r20, Z
   2b3d4:	f9 01       	movw	r30, r18
   2b3d6:	40 83       	st	Z, r20
   2b3d8:	6f 5f       	subi	r22, 0xFF	; 255
 * \param[in] dir The directory structure containing the name.
 * \param[out] name A 13 byte char array for the formatted name.
 */
void SdBaseFile::dirName(const dir_t& dir, char* name) {
  uint8_t j = 0;
  for (uint8_t i = 0; i < 11; i++) {
   2b3da:	8f 5f       	subi	r24, 0xFF	; 255
   2b3dc:	8b 30       	cpi	r24, 0x0B	; 11
   2b3de:	39 f7       	brne	.-50     	; 0x2b3ae <SdBaseFile::getFilename(char*)+0x38>
    if (dir.name[i] == ' ')continue;
    if (i == 8) name[j++] = '.';
    name[j++] = dir.name[i];
  }
  name[j] = 0;
   2b3e0:	fe 01       	movw	r30, r28
   2b3e2:	e6 0f       	add	r30, r22
   2b3e4:	f1 1d       	adc	r31, r1
   2b3e6:	10 82       	st	Z, r1
   2b3e8:	d7 cf       	rjmp	.-82     	; 0x2b398 <SdBaseFile::getFilename(char*)+0x22>

0002b3ea <SdBaseFile::read(void*, unsigned int)>:
 * if end of file is reached.
 * If an error occurs, read() returns -1.  Possible errors include
 * read() called before a file has been opened, corrupt file system
 * or an I/O error occurred.
 */
int16_t SdBaseFile::read(void* buf, uint16_t nbyte) {
   2b3ea:	2f 92       	push	r2
   2b3ec:	3f 92       	push	r3
   2b3ee:	4f 92       	push	r4
   2b3f0:	5f 92       	push	r5
   2b3f2:	6f 92       	push	r6
   2b3f4:	7f 92       	push	r7
   2b3f6:	8f 92       	push	r8
   2b3f8:	9f 92       	push	r9
   2b3fa:	af 92       	push	r10
   2b3fc:	bf 92       	push	r11
   2b3fe:	cf 92       	push	r12
   2b400:	df 92       	push	r13
   2b402:	ef 92       	push	r14
   2b404:	ff 92       	push	r15
   2b406:	0f 93       	push	r16
   2b408:	1f 93       	push	r17
   2b40a:	cf 93       	push	r28
   2b40c:	df 93       	push	r29
   2b40e:	00 d0       	rcall	.+0      	; 0x2b410 <SdBaseFile::read(void*, unsigned int)+0x26>
   2b410:	1f 92       	push	r1
   2b412:	cd b7       	in	r28, 0x3d	; 61
   2b414:	de b7       	in	r29, 0x3e	; 62
   2b416:	9c 83       	std	Y+4, r25	; 0x04
   2b418:	8b 83       	std	Y+3, r24	; 0x03
   2b41a:	4b 01       	movw	r8, r22
   2b41c:	7a 01       	movw	r14, r20
  uint16_t offset;
  uint16_t toRead;
  uint32_t block;  // raw device block number

  // error if not open or write only
  if (!isOpen() || !(flags_ & O_READ)) goto fail;
   2b41e:	dc 01       	movw	r26, r24
   2b420:	13 96       	adiw	r26, 0x03	; 3
   2b422:	8c 91       	ld	r24, X
   2b424:	81 11       	cpse	r24, r1
   2b426:	19 c0       	rjmp	.+50     	; 0x2b45a <SdBaseFile::read(void*, unsigned int)+0x70>
    toRead -= n;
  }
  return nbyte;

 fail:
  return -1;
   2b428:	8f ef       	ldi	r24, 0xFF	; 255
   2b42a:	9f ef       	ldi	r25, 0xFF	; 255
}
   2b42c:	0f 90       	pop	r0
   2b42e:	0f 90       	pop	r0
   2b430:	0f 90       	pop	r0
   2b432:	0f 90       	pop	r0
   2b434:	df 91       	pop	r29
   2b436:	cf 91       	pop	r28
   2b438:	1f 91       	pop	r17
   2b43a:	0f 91       	pop	r16
   2b43c:	ff 90       	pop	r15
   2b43e:	ef 90       	pop	r14
   2b440:	df 90       	pop	r13
   2b442:	cf 90       	pop	r12
   2b444:	bf 90       	pop	r11
   2b446:	af 90       	pop	r10
   2b448:	9f 90       	pop	r9
   2b44a:	8f 90       	pop	r8
   2b44c:	7f 90       	pop	r7
   2b44e:	6f 90       	pop	r6
   2b450:	5f 90       	pop	r5
   2b452:	4f 90       	pop	r4
   2b454:	3f 90       	pop	r3
   2b456:	2f 90       	pop	r2
   2b458:	08 95       	ret
  uint16_t offset;
  uint16_t toRead;
  uint32_t block;  // raw device block number

  // error if not open or write only
  if (!isOpen() || !(flags_ & O_READ)) goto fail;
   2b45a:	eb 81       	ldd	r30, Y+3	; 0x03
   2b45c:	fc 81       	ldd	r31, Y+4	; 0x04
   2b45e:	81 81       	ldd	r24, Z+1	; 0x01
   2b460:	80 ff       	sbrs	r24, 0
   2b462:	e2 cf       	rjmp	.-60     	; 0x2b428 <SdBaseFile::read(void*, unsigned int)+0x3e>

  // max bytes left in file
  if (nbyte >= (fileSize_ - curPosition_)) {
   2b464:	01 89       	ldd	r16, Z+17	; 0x11
   2b466:	12 89       	ldd	r17, Z+18	; 0x12
   2b468:	23 89       	ldd	r18, Z+19	; 0x13
   2b46a:	34 89       	ldd	r19, Z+20	; 0x14
   2b46c:	40 85       	ldd	r20, Z+8	; 0x08
   2b46e:	51 85       	ldd	r21, Z+9	; 0x09
   2b470:	62 85       	ldd	r22, Z+10	; 0x0a
   2b472:	73 85       	ldd	r23, Z+11	; 0x0b
   2b474:	c7 01       	movw	r24, r14
   2b476:	b0 e0       	ldi	r27, 0x00	; 0
   2b478:	a0 e0       	ldi	r26, 0x00	; 0
   2b47a:	28 01       	movw	r4, r16
   2b47c:	39 01       	movw	r6, r18
   2b47e:	44 1a       	sub	r4, r20
   2b480:	55 0a       	sbc	r5, r21
   2b482:	66 0a       	sbc	r6, r22
   2b484:	77 0a       	sbc	r7, r23
   2b486:	84 15       	cp	r24, r4
   2b488:	95 05       	cpc	r25, r5
   2b48a:	a6 05       	cpc	r26, r6
   2b48c:	b7 05       	cpc	r27, r7
   2b48e:	18 f0       	brcs	.+6      	; 0x2b496 <SdBaseFile::read(void*, unsigned int)+0xac>
    nbyte = fileSize_ - curPosition_;
   2b490:	78 01       	movw	r14, r16
   2b492:	e4 1a       	sub	r14, r20
   2b494:	f5 0a       	sbc	r15, r21
  }
  // amount left to read
  toRead = nbyte;
   2b496:	67 01       	movw	r12, r14
        if (curPosition_ == 0) {
          // use first cluster in file
          curCluster_ = firstCluster_;
        } else {
          // get next cluster from FAT
          if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
   2b498:	8b 81       	ldd	r24, Y+3	; 0x03
   2b49a:	9c 81       	ldd	r25, Y+4	; 0x04
   2b49c:	04 96       	adiw	r24, 0x04	; 4
   2b49e:	9a 83       	std	Y+2, r25	; 0x02
   2b4a0:	89 83       	std	Y+1, r24	; 0x01
      block = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
    }
    uint16_t n = toRead;

    // amount to be read from current block
    if (n > (512 - offset)) n = 512 - offset;
   2b4a2:	61 2c       	mov	r6, r1
   2b4a4:	32 e0       	ldi	r19, 0x02	; 2
   2b4a6:	73 2e       	mov	r7, r19
  if (nbyte >= (fileSize_ - curPosition_)) {
    nbyte = fileSize_ - curPosition_;
  }
  // amount left to read
  toRead = nbyte;
  while (toRead > 0) {
   2b4a8:	c1 14       	cp	r12, r1
   2b4aa:	d1 04       	cpc	r13, r1
   2b4ac:	09 f4       	brne	.+2      	; 0x2b4b0 <SdBaseFile::read(void*, unsigned int)+0xc6>
   2b4ae:	b7 c0       	rjmp	.+366    	; 0x2b61e <SdBaseFile::read(void*, unsigned int)+0x234>
    offset = curPosition_ & 0X1FF;  // offset in block
   2b4b0:	ab 81       	ldd	r26, Y+3	; 0x03
   2b4b2:	bc 81       	ldd	r27, Y+4	; 0x04
   2b4b4:	18 96       	adiw	r26, 0x08	; 8
   2b4b6:	4d 91       	ld	r20, X+
   2b4b8:	5d 91       	ld	r21, X+
   2b4ba:	6d 91       	ld	r22, X+
   2b4bc:	7c 91       	ld	r23, X
   2b4be:	1b 97       	sbiw	r26, 0x0b	; 11
   2b4c0:	5a 01       	movw	r10, r20
   2b4c2:	b1 e0       	ldi	r27, 0x01	; 1
   2b4c4:	bb 22       	and	r11, r27
   2b4c6:	eb 81       	ldd	r30, Y+3	; 0x03
   2b4c8:	fc 81       	ldd	r31, Y+4	; 0x04
   2b4ca:	81 8d       	ldd	r24, Z+25	; 0x19
   2b4cc:	92 8d       	ldd	r25, Z+26	; 0x1a
   2b4ce:	1a 01       	movw	r2, r20
   2b4d0:	2b 01       	movw	r4, r22
   2b4d2:	29 e0       	ldi	r18, 0x09	; 9
   2b4d4:	56 94       	lsr	r5
   2b4d6:	47 94       	ror	r4
   2b4d8:	37 94       	ror	r3
   2b4da:	27 94       	ror	r2
   2b4dc:	2a 95       	dec	r18
   2b4de:	d1 f7       	brne	.-12     	; 0x2b4d4 <SdBaseFile::read(void*, unsigned int)+0xea>
    if (type_ == FAT_FILE_TYPE_ROOT_FIXED) {
   2b4e0:	23 81       	ldd	r18, Z+3	; 0x03
   2b4e2:	22 30       	cpi	r18, 0x02	; 2
   2b4e4:	91 f5       	brne	.+100    	; 0x2b54a <SdBaseFile::read(void*, unsigned int)+0x160>
      block = vol_->rootDirStart() + (curPosition_ >> 9);
   2b4e6:	dc 01       	movw	r26, r24
   2b4e8:	5a 96       	adiw	r26, 0x1a	; 26
   2b4ea:	6d 91       	ld	r22, X+
   2b4ec:	7d 91       	ld	r23, X+
   2b4ee:	8d 91       	ld	r24, X+
   2b4f0:	9c 91       	ld	r25, X
   2b4f2:	5d 97       	sbiw	r26, 0x1d	; 29
   2b4f4:	62 0d       	add	r22, r2
   2b4f6:	73 1d       	adc	r23, r3
   2b4f8:	84 1d       	adc	r24, r4
   2b4fa:	95 1d       	adc	r25, r5
   2b4fc:	83 01       	movw	r16, r6
   2b4fe:	0a 19       	sub	r16, r10
   2b500:	1b 09       	sbc	r17, r11
   2b502:	c0 16       	cp	r12, r16
   2b504:	d1 06       	cpc	r13, r17
   2b506:	08 f4       	brcc	.+2      	; 0x2b50a <SdBaseFile::read(void*, unsigned int)+0x120>
   2b508:	86 01       	movw	r16, r12

    // amount to be read from current block
    if (n > (512 - offset)) n = 512 - offset;

    // no buffering needed if n == 512
    if (n == 512 && block != vol_->cacheBlockNumber()) {
   2b50a:	01 15       	cp	r16, r1
   2b50c:	b2 e0       	ldi	r27, 0x02	; 2
   2b50e:	1b 07       	cpc	r17, r27
   2b510:	71 f4       	brne	.+28     	; 0x2b52e <SdBaseFile::read(void*, unsigned int)+0x144>
   2b512:	20 91 91 0e 	lds	r18, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2b516:	30 91 92 0e 	lds	r19, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2b51a:	40 91 93 0e 	lds	r20, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2b51e:	50 91 94 0e 	lds	r21, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2b522:	62 17       	cp	r22, r18
   2b524:	73 07       	cpc	r23, r19
   2b526:	84 07       	cpc	r24, r20
   2b528:	95 07       	cpc	r25, r21
   2b52a:	09 f0       	breq	.+2      	; 0x2b52e <SdBaseFile::read(void*, unsigned int)+0x144>
   2b52c:	59 c0       	rjmp	.+178    	; 0x2b5e0 <SdBaseFile::read(void*, unsigned int)+0x1f6>
      if (!vol_->readBlock(block, dst)) goto fail;
    } else {
      // read block to cache and copy data to caller
      if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_READ)) goto fail;
   2b52e:	40 e0       	ldi	r20, 0x00	; 0
   2b530:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2b534:	88 23       	and	r24, r24
   2b536:	09 f4       	brne	.+2      	; 0x2b53a <SdBaseFile::read(void*, unsigned int)+0x150>
   2b538:	77 cf       	rjmp	.-274    	; 0x2b428 <SdBaseFile::read(void*, unsigned int)+0x3e>
      uint8_t* src = vol_->cache()->data + offset;
   2b53a:	b5 01       	movw	r22, r10
   2b53c:	63 56       	subi	r22, 0x63	; 99
   2b53e:	71 4f       	sbci	r23, 0xF1	; 241
      memcpy(dst, src, n);
   2b540:	a8 01       	movw	r20, r16
   2b542:	c4 01       	movw	r24, r8
   2b544:	0f 94 84 e2 	call	0x3c508	; 0x3c508 <memcpy>
   2b548:	57 c0       	rjmp	.+174    	; 0x2b5f8 <SdBaseFile::read(void*, unsigned int)+0x20e>
  uint16_t rootDirEntryCount_;  // number of entries in FAT16 root dir
  uint32_t rootDirStart_;       // root start block for FAT16, cluster for FAT32
  //----------------------------------------------------------------------------
  bool allocContiguous(uint32_t count, uint32_t* curCluster);
  uint8_t blockOfCluster(uint32_t position) const {
          return (position >> 9) & (blocksPerCluster_ - 1);}
   2b54a:	fc 01       	movw	r30, r24
   2b54c:	14 81       	ldd	r17, Z+4	; 0x04
   2b54e:	11 50       	subi	r17, 0x01	; 1
   2b550:	12 21       	and	r17, r2
    offset = curPosition_ & 0X1FF;  // offset in block
    if (type_ == FAT_FILE_TYPE_ROOT_FIXED) {
      block = vol_->rootDirStart() + (curPosition_ >> 9);
    } else {
      uint8_t blockOfCluster = vol_->blockOfCluster(curPosition_);
      if (offset == 0 && blockOfCluster == 0) {
   2b552:	a1 14       	cp	r10, r1
   2b554:	b1 04       	cpc	r11, r1
   2b556:	81 f4       	brne	.+32     	; 0x2b578 <SdBaseFile::read(void*, unsigned int)+0x18e>
   2b558:	11 11       	cpse	r17, r1
   2b55a:	0e c0       	rjmp	.+28     	; 0x2b578 <SdBaseFile::read(void*, unsigned int)+0x18e>
        // start of new cluster
        if (curPosition_ == 0) {
   2b55c:	45 2b       	or	r20, r21
   2b55e:	46 2b       	or	r20, r22
   2b560:	47 2b       	or	r20, r23
   2b562:	79 f5       	brne	.+94     	; 0x2b5c2 <SdBaseFile::read(void*, unsigned int)+0x1d8>
          // use first cluster in file
          curCluster_ = firstCluster_;
   2b564:	eb 81       	ldd	r30, Y+3	; 0x03
   2b566:	fc 81       	ldd	r31, Y+4	; 0x04
   2b568:	85 89       	ldd	r24, Z+21	; 0x15
   2b56a:	96 89       	ldd	r25, Z+22	; 0x16
   2b56c:	a7 89       	ldd	r26, Z+23	; 0x17
   2b56e:	b0 8d       	ldd	r27, Z+24	; 0x18
   2b570:	84 83       	std	Z+4, r24	; 0x04
   2b572:	95 83       	std	Z+5, r25	; 0x05
   2b574:	a6 83       	std	Z+6, r26	; 0x06
   2b576:	b7 83       	std	Z+7, r27	; 0x07
        } else {
          // get next cluster from FAT
          if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
        }
      }
      block = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
   2b578:	ab 81       	ldd	r26, Y+3	; 0x03
   2b57a:	bc 81       	ldd	r27, Y+4	; 0x04
   2b57c:	59 96       	adiw	r26, 0x19	; 25
   2b57e:	ed 91       	ld	r30, X+
   2b580:	fc 91       	ld	r31, X
   2b582:	5a 97       	sbiw	r26, 0x1a	; 26
  uint32_t clusterStartBlock(uint32_t cluster) const {
           return dataStartBlock_ + ((cluster - 2) << clusterSizeShift_);}
   2b584:	14 96       	adiw	r26, 0x04	; 4
   2b586:	6d 91       	ld	r22, X+
   2b588:	7d 91       	ld	r23, X+
   2b58a:	8d 91       	ld	r24, X+
   2b58c:	9c 91       	ld	r25, X
   2b58e:	17 97       	sbiw	r26, 0x07	; 7
   2b590:	62 50       	subi	r22, 0x02	; 2
   2b592:	71 09       	sbc	r23, r1
   2b594:	81 09       	sbc	r24, r1
   2b596:	91 09       	sbc	r25, r1
   2b598:	25 85       	ldd	r18, Z+13	; 0x0d
   2b59a:	04 c0       	rjmp	.+8      	; 0x2b5a4 <SdBaseFile::read(void*, unsigned int)+0x1ba>
   2b59c:	66 0f       	add	r22, r22
   2b59e:	77 1f       	adc	r23, r23
   2b5a0:	88 1f       	adc	r24, r24
   2b5a2:	99 1f       	adc	r25, r25
   2b5a4:	2a 95       	dec	r18
   2b5a6:	d2 f7       	brpl	.-12     	; 0x2b59c <SdBaseFile::read(void*, unsigned int)+0x1b2>
   2b5a8:	26 85       	ldd	r18, Z+14	; 0x0e
   2b5aa:	37 85       	ldd	r19, Z+15	; 0x0f
   2b5ac:	40 89       	ldd	r20, Z+16	; 0x10
   2b5ae:	51 89       	ldd	r21, Z+17	; 0x11
   2b5b0:	62 0f       	add	r22, r18
   2b5b2:	73 1f       	adc	r23, r19
   2b5b4:	84 1f       	adc	r24, r20
   2b5b6:	95 1f       	adc	r25, r21
   2b5b8:	61 0f       	add	r22, r17
   2b5ba:	71 1d       	adc	r23, r1
   2b5bc:	81 1d       	adc	r24, r1
   2b5be:	91 1d       	adc	r25, r1
   2b5c0:	9d cf       	rjmp	.-198    	; 0x2b4fc <SdBaseFile::read(void*, unsigned int)+0x112>
        if (curPosition_ == 0) {
          // use first cluster in file
          curCluster_ = firstCluster_;
        } else {
          // get next cluster from FAT
          if (!vol_->fatGet(curCluster_, &curCluster_)) goto fail;
   2b5c2:	ab 81       	ldd	r26, Y+3	; 0x03
   2b5c4:	bc 81       	ldd	r27, Y+4	; 0x04
   2b5c6:	14 96       	adiw	r26, 0x04	; 4
   2b5c8:	4d 91       	ld	r20, X+
   2b5ca:	5d 91       	ld	r21, X+
   2b5cc:	6d 91       	ld	r22, X+
   2b5ce:	7c 91       	ld	r23, X
   2b5d0:	17 97       	sbiw	r26, 0x07	; 7
   2b5d2:	29 81       	ldd	r18, Y+1	; 0x01
   2b5d4:	3a 81       	ldd	r19, Y+2	; 0x02
   2b5d6:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2b5da:	81 11       	cpse	r24, r1
   2b5dc:	cd cf       	rjmp	.-102    	; 0x2b578 <SdBaseFile::read(void*, unsigned int)+0x18e>
   2b5de:	24 cf       	rjmp	.-440    	; 0x2b428 <SdBaseFile::read(void*, unsigned int)+0x3e>
    if (FAT12_SUPPORT && fatType_ == 12) return  cluster >= FAT12EOC_MIN;
    if (fatType_ == 16) return cluster >= FAT16EOC_MIN;
    return  cluster >= FAT32EOC_MIN;
  }
  bool readBlock(uint32_t block, uint8_t* dst) {
    return sdCard_->readBlock(block, dst);}
   2b5e0:	94 01       	movw	r18, r8
   2b5e2:	ab 01       	movw	r20, r22
   2b5e4:	bc 01       	movw	r22, r24
   2b5e6:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   2b5ea:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   2b5ee:	0f 94 96 54 	call	0x2a92c	; 0x2a92c <Sd2Card::readBlock(unsigned long, unsigned char*)>
    // amount to be read from current block
    if (n > (512 - offset)) n = 512 - offset;

    // no buffering needed if n == 512
    if (n == 512 && block != vol_->cacheBlockNumber()) {
      if (!vol_->readBlock(block, dst)) goto fail;
   2b5f2:	88 23       	and	r24, r24
   2b5f4:	09 f4       	brne	.+2      	; 0x2b5f8 <SdBaseFile::read(void*, unsigned int)+0x20e>
   2b5f6:	18 cf       	rjmp	.-464    	; 0x2b428 <SdBaseFile::read(void*, unsigned int)+0x3e>
      // read block to cache and copy data to caller
      if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_READ)) goto fail;
      uint8_t* src = vol_->cache()->data + offset;
      memcpy(dst, src, n);
    }
    dst += n;
   2b5f8:	80 0e       	add	r8, r16
   2b5fa:	91 1e       	adc	r9, r17
    curPosition_ += n;
   2b5fc:	eb 81       	ldd	r30, Y+3	; 0x03
   2b5fe:	fc 81       	ldd	r31, Y+4	; 0x04
   2b600:	80 85       	ldd	r24, Z+8	; 0x08
   2b602:	91 85       	ldd	r25, Z+9	; 0x09
   2b604:	a2 85       	ldd	r26, Z+10	; 0x0a
   2b606:	b3 85       	ldd	r27, Z+11	; 0x0b
   2b608:	80 0f       	add	r24, r16
   2b60a:	91 1f       	adc	r25, r17
   2b60c:	a1 1d       	adc	r26, r1
   2b60e:	b1 1d       	adc	r27, r1
   2b610:	80 87       	std	Z+8, r24	; 0x08
   2b612:	91 87       	std	Z+9, r25	; 0x09
   2b614:	a2 87       	std	Z+10, r26	; 0x0a
   2b616:	b3 87       	std	Z+11, r27	; 0x0b
    toRead -= n;
   2b618:	c0 1a       	sub	r12, r16
   2b61a:	d1 0a       	sbc	r13, r17
   2b61c:	45 cf       	rjmp	.-374    	; 0x2b4a8 <SdBaseFile::read(void*, unsigned int)+0xbe>
  }
  return nbyte;
   2b61e:	c7 01       	movw	r24, r14
   2b620:	05 cf       	rjmp	.-502    	; 0x2b42c <SdBaseFile::read(void*, unsigned int)+0x42>

0002b622 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]>:
 * A value of zero will be returned if end of file is reached.
 * If an error occurs, readDir() returns -1.  Possible errors include
 * readDir() called before a directory has been opened, this is not
 * a directory file or an I/O error occurred.
 */
int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) {
   2b622:	df 92       	push	r13
   2b624:	ef 92       	push	r14
   2b626:	ff 92       	push	r15
   2b628:	0f 93       	push	r16
   2b62a:	1f 93       	push	r17
   2b62c:	cf 93       	push	r28
   2b62e:	df 93       	push	r29
   2b630:	8c 01       	movw	r16, r24
   2b632:	eb 01       	movw	r28, r22
   2b634:	7a 01       	movw	r14, r20
    	vfat_t *VFAT = (vfat_t*)dir;
		//Sanity check the VFAT entry. The first cluster is always set to zero. And th esequence number should be higher then 0
    	if (VFAT->firstClusterLow == 0 && (VFAT->sequenceNumber & 0x1F) > 0 && (VFAT->sequenceNumber & 0x1F) <= MAX_VFAT_ENTRIES)
    	{
			//TODO: Store the filename checksum to verify if a none-long filename aware system modified the file table.
    		n = ((VFAT->sequenceNumber & 0x1F) - 1) * 13;
   2b636:	8d e0       	ldi	r24, 0x0D	; 13
   2b638:	d8 2e       	mov	r13, r24
  {
  	longFilename[0] = '\0';
  }

  while (1) {
    n = read(dir, sizeof(dir_t));
   2b63a:	40 e2       	ldi	r20, 0x20	; 32
   2b63c:	50 e0       	ldi	r21, 0x00	; 0
   2b63e:	be 01       	movw	r22, r28
   2b640:	c8 01       	movw	r24, r16
   2b642:	0f 94 f5 59 	call	0x2b3ea	; 0x2b3ea <SdBaseFile::read(void*, unsigned int)>
    if (n != sizeof(dir_t)) return n == 0 ? 0 : -1;
   2b646:	80 32       	cpi	r24, 0x20	; 32
   2b648:	91 05       	cpc	r25, r1
   2b64a:	71 f0       	breq	.+28     	; 0x2b668 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x46>
   2b64c:	21 e0       	ldi	r18, 0x01	; 1
   2b64e:	89 2b       	or	r24, r25
   2b650:	09 f4       	brne	.+2      	; 0x2b654 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x32>
   2b652:	20 e0       	ldi	r18, 0x00	; 0
   2b654:	82 2f       	mov	r24, r18
   2b656:	81 95       	neg	r24
		}
    }
    // return if normal file or subdirectory
    if (DIR_IS_FILE_OR_SUBDIR(dir)) return n;
  }
}
   2b658:	df 91       	pop	r29
   2b65a:	cf 91       	pop	r28
   2b65c:	1f 91       	pop	r17
   2b65e:	0f 91       	pop	r16
   2b660:	ff 90       	pop	r15
   2b662:	ef 90       	pop	r14
   2b664:	df 90       	pop	r13
   2b666:	08 95       	ret

  while (1) {
    n = read(dir, sizeof(dir_t));
    if (n != sizeof(dir_t)) return n == 0 ? 0 : -1;
    // last entry if DIR_NAME_FREE
    if (dir->name[0] == DIR_NAME_FREE) return 0;
   2b668:	28 81       	ld	r18, Y
   2b66a:	22 23       	and	r18, r18
   2b66c:	09 f4       	brne	.+2      	; 0x2b670 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x4e>
   2b66e:	3f c0       	rjmp	.+126    	; 0x2b6ee <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0xcc>
    // skip empty entries and entry for .  and ..
    if (dir->name[0] == DIR_NAME_DELETED || dir->name[0] == '.') continue;
   2b670:	25 3e       	cpi	r18, 0xE5	; 229
   2b672:	19 f3       	breq	.-58     	; 0x2b63a <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x18>
   2b674:	2e 32       	cpi	r18, 0x2E	; 46
   2b676:	09 f3       	breq	.-62     	; 0x2b63a <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x18>
    //Fill the long filename if we have a long filename entry,
	// long filename entries are stored before the actual filename.
	if (DIR_IS_LONG_NAME(dir) && longFilename != NULL)
   2b678:	3b 85       	ldd	r19, Y+11	; 0x0b
   2b67a:	3f 73       	andi	r19, 0x3F	; 63
   2b67c:	3f 30       	cpi	r19, 0x0F	; 15
   2b67e:	99 f5       	brne	.+102    	; 0x2b6e6 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0xc4>
   2b680:	e1 14       	cp	r14, r1
   2b682:	f1 04       	cpc	r15, r1
   2b684:	81 f1       	breq	.+96     	; 0x2b6e6 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0xc4>
    {
    	vfat_t *VFAT = (vfat_t*)dir;
		//Sanity check the VFAT entry. The first cluster is always set to zero. And th esequence number should be higher then 0
    	if (VFAT->firstClusterLow == 0 && (VFAT->sequenceNumber & 0x1F) > 0 && (VFAT->sequenceNumber & 0x1F) <= MAX_VFAT_ENTRIES)
   2b686:	4a 8d       	ldd	r20, Y+26	; 0x1a
   2b688:	5b 8d       	ldd	r21, Y+27	; 0x1b
   2b68a:	45 2b       	or	r20, r21
   2b68c:	61 f5       	brne	.+88     	; 0x2b6e6 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0xc4>
   2b68e:	2f 71       	andi	r18, 0x1F	; 31
   2b690:	3f ef       	ldi	r19, 0xFF	; 255
   2b692:	32 0f       	add	r19, r18
   2b694:	34 30       	cpi	r19, 0x04	; 4
   2b696:	38 f5       	brcc	.+78     	; 0x2b6e6 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0xc4>
    	{
			//TODO: Store the filename checksum to verify if a none-long filename aware system modified the file table.
    		n = ((VFAT->sequenceNumber & 0x1F) - 1) * 13;
   2b698:	21 50       	subi	r18, 0x01	; 1
   2b69a:	33 0b       	sbc	r19, r19
   2b69c:	d2 9e       	mul	r13, r18
   2b69e:	c0 01       	movw	r24, r0
   2b6a0:	d3 9e       	mul	r13, r19
   2b6a2:	90 0d       	add	r25, r0
   2b6a4:	11 24       	eor	r1, r1
			longFilename[n+0] = VFAT->name1[0];
   2b6a6:	f7 01       	movw	r30, r14
   2b6a8:	e8 0f       	add	r30, r24
   2b6aa:	f9 1f       	adc	r31, r25
   2b6ac:	29 81       	ldd	r18, Y+1	; 0x01
   2b6ae:	20 83       	st	Z, r18
			longFilename[n+1] = VFAT->name1[1];
   2b6b0:	2b 81       	ldd	r18, Y+3	; 0x03
   2b6b2:	21 83       	std	Z+1, r18	; 0x01
			longFilename[n+2] = VFAT->name1[2];
   2b6b4:	2d 81       	ldd	r18, Y+5	; 0x05
   2b6b6:	22 83       	std	Z+2, r18	; 0x02
			longFilename[n+3] = VFAT->name1[3];
   2b6b8:	2f 81       	ldd	r18, Y+7	; 0x07
   2b6ba:	23 83       	std	Z+3, r18	; 0x03
			longFilename[n+4] = VFAT->name1[4];
   2b6bc:	29 85       	ldd	r18, Y+9	; 0x09
   2b6be:	24 83       	std	Z+4, r18	; 0x04
			longFilename[n+5] = VFAT->name2[0];
   2b6c0:	2e 85       	ldd	r18, Y+14	; 0x0e
   2b6c2:	25 83       	std	Z+5, r18	; 0x05
			longFilename[n+6] = VFAT->name2[1];
   2b6c4:	28 89       	ldd	r18, Y+16	; 0x10
   2b6c6:	26 83       	std	Z+6, r18	; 0x06
			longFilename[n+7] = VFAT->name2[2];
   2b6c8:	2a 89       	ldd	r18, Y+18	; 0x12
   2b6ca:	27 83       	std	Z+7, r18	; 0x07
			longFilename[n+8] = VFAT->name2[3];
   2b6cc:	2c 89       	ldd	r18, Y+20	; 0x14
   2b6ce:	20 87       	std	Z+8, r18	; 0x08
			longFilename[n+9] = VFAT->name2[4];
   2b6d0:	2e 89       	ldd	r18, Y+22	; 0x16
   2b6d2:	21 87       	std	Z+9, r18	; 0x09
			longFilename[n+10] = VFAT->name2[5];
   2b6d4:	28 8d       	ldd	r18, Y+24	; 0x18
   2b6d6:	22 87       	std	Z+10, r18	; 0x0a
			longFilename[n+11] = VFAT->name3[0];
   2b6d8:	2c 8d       	ldd	r18, Y+28	; 0x1c
   2b6da:	23 87       	std	Z+11, r18	; 0x0b
			longFilename[n+12] = VFAT->name3[1];
   2b6dc:	2e 8d       	ldd	r18, Y+30	; 0x1e
   2b6de:	24 87       	std	Z+12, r18	; 0x0c
			//If this VFAT entry is the last one, add a NUL terminator at the end of the string
			if (VFAT->sequenceNumber & 0x40)
   2b6e0:	28 81       	ld	r18, Y
   2b6e2:	26 fd       	sbrc	r18, 6
				longFilename[n+13] = '\0';
   2b6e4:	15 86       	std	Z+13, r1	; 0x0d
		}
    }
    // return if normal file or subdirectory
    if (DIR_IS_FILE_OR_SUBDIR(dir)) return n;
   2b6e6:	2b 85       	ldd	r18, Y+11	; 0x0b
   2b6e8:	23 fd       	sbrc	r18, 3
   2b6ea:	a7 cf       	rjmp	.-178    	; 0x2b63a <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x18>
   2b6ec:	b5 cf       	rjmp	.-150    	; 0x2b658 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x36>

  while (1) {
    n = read(dir, sizeof(dir_t));
    if (n != sizeof(dir_t)) return n == 0 ? 0 : -1;
    // last entry if DIR_NAME_FREE
    if (dir->name[0] == DIR_NAME_FREE) return 0;
   2b6ee:	80 e0       	ldi	r24, 0x00	; 0
   2b6f0:	b3 cf       	rjmp	.-154    	; 0x2b658 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]+0x36>

0002b6f2 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)>:
  return false;
}
//------------------------------------------------------------------------------
// open with filename in dname
bool SdBaseFile::open(SdBaseFile* dirFile,
  const uint8_t dname[11], uint8_t oflag) {
   2b6f2:	4f 92       	push	r4
   2b6f4:	5f 92       	push	r5
   2b6f6:	6f 92       	push	r6
   2b6f8:	7f 92       	push	r7
   2b6fa:	af 92       	push	r10
   2b6fc:	bf 92       	push	r11
   2b6fe:	cf 92       	push	r12
   2b700:	df 92       	push	r13
   2b702:	ef 92       	push	r14
   2b704:	ff 92       	push	r15
   2b706:	0f 93       	push	r16
   2b708:	1f 93       	push	r17
   2b70a:	cf 93       	push	r28
   2b70c:	df 93       	push	r29
   2b70e:	1f 92       	push	r1
   2b710:	cd b7       	in	r28, 0x3d	; 61
   2b712:	de b7       	in	r29, 0x3e	; 62
   2b714:	8c 01       	movw	r16, r24
   2b716:	7b 01       	movw	r14, r22
   2b718:	5a 01       	movw	r10, r20
   2b71a:	c2 2e       	mov	r12, r18
  bool emptyFound = false;
  bool fileFound = false;
  uint8_t index;
  dir_t* p;

  vol_ = dirFile->vol_;
   2b71c:	db 01       	movw	r26, r22
   2b71e:	59 96       	adiw	r26, 0x19	; 25
   2b720:	8d 91       	ld	r24, X+
   2b722:	9c 91       	ld	r25, X
   2b724:	f8 01       	movw	r30, r16
   2b726:	92 8f       	std	Z+26, r25	; 0x1a
   2b728:	81 8f       	std	Z+25, r24	; 0x19

  dirFile->rewind();
   2b72a:	cb 01       	movw	r24, r22
   2b72c:	0e 94 b3 76 	call	0xed66	; 0xed66 <SdBaseFile::rewind()>
}
//------------------------------------------------------------------------------
// open with filename in dname
bool SdBaseFile::open(SdBaseFile* dirFile,
  const uint8_t dname[11], uint8_t oflag) {
  bool emptyFound = false;
   2b730:	71 2c       	mov	r7, r1
  vol_ = dirFile->vol_;

  dirFile->rewind();
  // search for file

  while (dirFile->curPosition_ < dirFile->fileSize_) {
   2b732:	f7 01       	movw	r30, r14
   2b734:	80 85       	ldd	r24, Z+8	; 0x08
   2b736:	91 85       	ldd	r25, Z+9	; 0x09
   2b738:	a2 85       	ldd	r26, Z+10	; 0x0a
   2b73a:	b3 85       	ldd	r27, Z+11	; 0x0b
   2b73c:	41 89       	ldd	r20, Z+17	; 0x11
   2b73e:	52 89       	ldd	r21, Z+18	; 0x12
   2b740:	63 89       	ldd	r22, Z+19	; 0x13
   2b742:	74 89       	ldd	r23, Z+20	; 0x14
   2b744:	84 17       	cp	r24, r20
   2b746:	95 07       	cpc	r25, r21
   2b748:	a6 07       	cpc	r26, r22
   2b74a:	b7 07       	cpc	r27, r23
   2b74c:	08 f0       	brcs	.+2      	; 0x2b750 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x5e>
   2b74e:	52 c0       	rjmp	.+164    	; 0x2b7f4 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x102>
    index = 0XF & (dirFile->curPosition_ >> 5);
   2b750:	55 e0       	ldi	r21, 0x05	; 5
   2b752:	b6 95       	lsr	r27
   2b754:	a7 95       	ror	r26
   2b756:	97 95       	ror	r25
   2b758:	87 95       	ror	r24
   2b75a:	5a 95       	dec	r21
   2b75c:	d1 f7       	brne	.-12     	; 0x2b752 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x60>
   2b75e:	f8 2f       	mov	r31, r24
   2b760:	ff 70       	andi	r31, 0x0F	; 15
   2b762:	df 2e       	mov	r13, r31
// Read next directory entry into the cache
// Assumes file is correctly positioned
dir_t* SdBaseFile::readDirCache() {
  uint8_t i;
  // error if not directory
  if (!isDir()) goto fail;
   2b764:	d7 01       	movw	r26, r14
   2b766:	13 96       	adiw	r26, 0x03	; 3
   2b768:	8c 91       	ld	r24, X
   2b76a:	82 30       	cpi	r24, 0x02	; 2
   2b76c:	10 f4       	brcc	.+4      	; 0x2b772 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x80>
  if ((oflag & O_TRUNC) && !truncate(0)) return false;
  return oflag & O_AT_END ? seekEnd(0) : true;

 fail:
  type_ = FAT_FILE_TYPE_CLOSED;
  return false;
   2b76e:	80 e0       	ldi	r24, 0x00	; 0
   2b770:	db c0       	rjmp	.+438    	; 0x2b928 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x236>
 * \return For success read returns the next byte in the file as an int.
 * If an error occurs or end of file is reached -1 is returned.
 */
int16_t SdBaseFile::read() {
  uint8_t b;
  return read(&b, 1) == 1 ? b : -1;
   2b772:	41 e0       	ldi	r20, 0x01	; 1
   2b774:	50 e0       	ldi	r21, 0x00	; 0
   2b776:	be 01       	movw	r22, r28
   2b778:	6f 5f       	subi	r22, 0xFF	; 255
   2b77a:	7f 4f       	sbci	r23, 0xFF	; 255
   2b77c:	c7 01       	movw	r24, r14
   2b77e:	0f 94 f5 59 	call	0x2b3ea	; 0x2b3ea <SdBaseFile::read(void*, unsigned int)>
   2b782:	01 97       	sbiw	r24, 0x01	; 1
   2b784:	a1 f7       	brne	.-24     	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

  // use read to locate and cache block
  if (read() < 0) goto fail;

  // advance to next entry
  curPosition_ += 31;
   2b786:	f7 01       	movw	r30, r14
   2b788:	80 85       	ldd	r24, Z+8	; 0x08
   2b78a:	91 85       	ldd	r25, Z+9	; 0x09
   2b78c:	a2 85       	ldd	r26, Z+10	; 0x0a
   2b78e:	b3 85       	ldd	r27, Z+11	; 0x0b
   2b790:	4f 96       	adiw	r24, 0x1f	; 31
   2b792:	a1 1d       	adc	r26, r1
   2b794:	b1 1d       	adc	r27, r1
   2b796:	80 87       	std	Z+8, r24	; 0x08
   2b798:	91 87       	std	Z+9, r25	; 0x09
   2b79a:	a2 87       	std	Z+10, r26	; 0x0a
   2b79c:	b3 87       	std	Z+11, r27	; 0x0b

  // return pointer to entry
  return vol_->cache()->dir + i;
   2b79e:	f0 e2       	ldi	r31, 0x20	; 32
   2b7a0:	df 9e       	mul	r13, r31
   2b7a2:	b0 01       	movw	r22, r0
   2b7a4:	11 24       	eor	r1, r1
   2b7a6:	63 56       	subi	r22, 0x63	; 99
   2b7a8:	71 4f       	sbci	r23, 0xF1	; 241
  // search for file

  while (dirFile->curPosition_ < dirFile->fileSize_) {
    index = 0XF & (dirFile->curPosition_ >> 5);
    p = dirFile->readDirCache();
    if (!p) goto fail;
   2b7aa:	61 15       	cp	r22, r1
   2b7ac:	71 05       	cpc	r23, r1
   2b7ae:	f9 f2       	breq	.-66     	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

    if (p->name[0] == DIR_NAME_FREE || p->name[0] == DIR_NAME_DELETED) {
   2b7b0:	db 01       	movw	r26, r22
   2b7b2:	8c 91       	ld	r24, X
   2b7b4:	88 23       	and	r24, r24
   2b7b6:	41 f0       	breq	.+16     	; 0x2b7c8 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0xd6>
   2b7b8:	85 3e       	cpi	r24, 0xE5	; 229
   2b7ba:	09 f0       	breq	.+2      	; 0x2b7be <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0xcc>
   2b7bc:	4c c0       	rjmp	.+152    	; 0x2b856 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x164>
      // remember first empty slot
      if (!emptyFound) {
   2b7be:	77 20       	and	r7, r7
   2b7c0:	29 f0       	breq	.+10     	; 0x2b7cc <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0xda>
  return false;
}
//------------------------------------------------------------------------------
// open with filename in dname
bool SdBaseFile::open(SdBaseFile* dirFile,
  const uint8_t dname[11], uint8_t oflag) {
   2b7c2:	77 24       	eor	r7, r7
   2b7c4:	73 94       	inc	r7
   2b7c6:	b5 cf       	rjmp	.-150    	; 0x2b732 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x40>
    p = dirFile->readDirCache();
    if (!p) goto fail;

    if (p->name[0] == DIR_NAME_FREE || p->name[0] == DIR_NAME_DELETED) {
      // remember first empty slot
      if (!emptyFound) {
   2b7c8:	71 10       	cpse	r7, r1
   2b7ca:	0e c0       	rjmp	.+28     	; 0x2b7e8 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0xf6>
        dirBlock_ = dirFile->vol_->cacheBlockNumber();
   2b7cc:	80 91 91 0e 	lds	r24, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2b7d0:	90 91 92 0e 	lds	r25, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2b7d4:	a0 91 93 0e 	lds	r26, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2b7d8:	b0 91 94 0e 	lds	r27, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2b7dc:	f8 01       	movw	r30, r16
   2b7de:	84 87       	std	Z+12, r24	; 0x0c
   2b7e0:	95 87       	std	Z+13, r25	; 0x0d
   2b7e2:	a6 87       	std	Z+14, r26	; 0x0e
   2b7e4:	b7 87       	std	Z+15, r27	; 0x0f
        dirIndex_ = index;
   2b7e6:	d0 8a       	std	Z+16, r13	; 0x10
        emptyFound = true;
      }
      // done if no entries follow
      if (p->name[0] == DIR_NAME_FREE) break;
   2b7e8:	db 01       	movw	r26, r22
   2b7ea:	8c 91       	ld	r24, X
   2b7ec:	81 11       	cpse	r24, r1
   2b7ee:	e9 cf       	rjmp	.-46     	; 0x2b7c2 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0xd0>
   2b7f0:	77 24       	eor	r7, r7
   2b7f2:	73 94       	inc	r7
  if (fileFound) {
    // don't open existing file if O_EXCL
    if (oflag & O_EXCL) goto fail;
  } else {
    // don't create unless O_CREAT and O_WRITE
    if (!(oflag & O_CREAT) || !(oflag & O_WRITE)) goto fail;
   2b7f4:	8c 2d       	mov	r24, r12
   2b7f6:	82 74       	andi	r24, 0x42	; 66
   2b7f8:	82 34       	cpi	r24, 0x42	; 66
   2b7fa:	09 f0       	breq	.+2      	; 0x2b7fe <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x10c>
   2b7fc:	b8 cf       	rjmp	.-144    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>
    if (emptyFound) {
   2b7fe:	77 20       	and	r7, r7
   2b800:	09 f4       	brne	.+2      	; 0x2b804 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x112>
   2b802:	a2 c0       	rjmp	.+324    	; 0x2b948 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x256>
      index = dirIndex_;
   2b804:	f8 01       	movw	r30, r16
   2b806:	d0 88       	ldd	r13, Z+16	; 0x10
      p = cacheDirEntry(SdVolume::CACHE_FOR_WRITE);
   2b808:	61 e0       	ldi	r22, 0x01	; 1
   2b80a:	c8 01       	movw	r24, r16
   2b80c:	0f 94 63 59 	call	0x2b2c6	; 0x2b2c6 <SdBaseFile::cacheDirEntry(unsigned char)>
      if (!p) goto fail;
   2b810:	00 97       	sbiw	r24, 0x00	; 0
   2b812:	09 f4       	brne	.+2      	; 0x2b816 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x124>
   2b814:	ac cf       	rjmp	.-168    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>
      // use first entry in cluster
      p = dirFile->vol_->cache()->dir;
      index = 0;
    }
    // initialize as empty file
    memset(p, 0, sizeof(dir_t));
   2b816:	20 e2       	ldi	r18, 0x20	; 32
   2b818:	dc 01       	movw	r26, r24
   2b81a:	1d 92       	st	X+, r1
   2b81c:	2a 95       	dec	r18
   2b81e:	e9 f7       	brne	.-6      	; 0x2b81a <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x128>
    memcpy(p->name, dname, 11);
   2b820:	2b e0       	ldi	r18, 0x0B	; 11
   2b822:	f5 01       	movw	r30, r10
   2b824:	dc 01       	movw	r26, r24
   2b826:	01 90       	ld	r0, Z+
   2b828:	0d 92       	st	X+, r0
   2b82a:	2a 95       	dec	r18
   2b82c:	e1 f7       	brne	.-8      	; 0x2b826 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x134>
    if (dateTime_) {
      // call user date/time function
      dateTime_(&p->creationDate, &p->creationTime);
    } else {
      // use default date/time
      p->creationDate = FAT_DEFAULT_DATE;
   2b82e:	21 e2       	ldi	r18, 0x21	; 33
   2b830:	38 e2       	ldi	r19, 0x28	; 40
   2b832:	fc 01       	movw	r30, r24
   2b834:	31 8b       	std	Z+17, r19	; 0x11
   2b836:	20 8b       	std	Z+16, r18	; 0x10
      p->creationTime = FAT_DEFAULT_TIME;
   2b838:	40 e0       	ldi	r20, 0x00	; 0
   2b83a:	58 e0       	ldi	r21, 0x08	; 8
   2b83c:	57 87       	std	Z+15, r21	; 0x0f
   2b83e:	46 87       	std	Z+14, r20	; 0x0e
    }
    p->lastAccessDate = p->creationDate;
   2b840:	33 8b       	std	Z+19, r19	; 0x13
   2b842:	22 8b       	std	Z+18, r18	; 0x12
    p->lastWriteDate = p->creationDate;
   2b844:	31 8f       	std	Z+25, r19	; 0x19
   2b846:	20 8f       	std	Z+24, r18	; 0x18
    p->lastWriteTime = p->creationTime;
   2b848:	57 8b       	std	Z+23, r21	; 0x17
   2b84a:	46 8b       	std	Z+22, r20	; 0x16

    // write entry to SD
    if (!dirFile->vol_->cacheFlush()) goto fail;
   2b84c:	0f 94 57 54 	call	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>
   2b850:	81 11       	cpse	r24, r1
   2b852:	09 c0       	rjmp	.+18     	; 0x2b866 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x174>
   2b854:	8c cf       	rjmp	.-232    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>
        dirIndex_ = index;
        emptyFound = true;
      }
      // done if no entries follow
      if (p->name[0] == DIR_NAME_FREE) break;
    } else if (!memcmp(dname, p->name, 11)) {
   2b856:	4b e0       	ldi	r20, 0x0B	; 11
   2b858:	50 e0       	ldi	r21, 0x00	; 0
   2b85a:	c5 01       	movw	r24, r10
   2b85c:	0f 94 77 e2 	call	0x3c4ee	; 0x3c4ee <memcmp>
   2b860:	89 2b       	or	r24, r25
   2b862:	09 f0       	breq	.+2      	; 0x2b866 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x174>
   2b864:	66 cf       	rjmp	.-308    	; 0x2b732 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x40>
}
//------------------------------------------------------------------------------
// open a cached directory entry. Assumes vol_ is initialized
bool SdBaseFile::openCachedEntry(uint8_t dirIndex, uint8_t oflag) {
  // location of entry in cache
  dir_t* p = &vol_->cache()->dir[dirIndex];
   2b866:	f0 e2       	ldi	r31, 0x20	; 32
   2b868:	df 9e       	mul	r13, r31
   2b86a:	d0 01       	movw	r26, r0
   2b86c:	11 24       	eor	r1, r1
   2b86e:	9d 01       	movw	r18, r26
   2b870:	23 56       	subi	r18, 0x63	; 99
   2b872:	31 4f       	sbci	r19, 0xF1	; 241

  // write or truncate is an error for a directory or read-only file
  if (p->attributes & (DIR_ATT_READ_ONLY | DIR_ATT_DIRECTORY)) {
   2b874:	f9 01       	movw	r30, r18
   2b876:	83 85       	ldd	r24, Z+11	; 0x0b
   2b878:	81 71       	andi	r24, 0x11	; 17
   2b87a:	21 f0       	breq	.+8      	; 0x2b884 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x192>
    if (oflag & (O_WRITE | O_TRUNC)) goto fail;
   2b87c:	8c 2d       	mov	r24, r12
   2b87e:	82 71       	andi	r24, 0x12	; 18
   2b880:	09 f0       	breq	.+2      	; 0x2b884 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x192>
   2b882:	fc c0       	rjmp	.+504    	; 0x2ba7c <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x38a>
}
//------------------------------------------------------------------------------
// open a cached directory entry. Assumes vol_ is initialized
bool SdBaseFile::openCachedEntry(uint8_t dirIndex, uint8_t oflag) {
  // location of entry in cache
  dir_t* p = &vol_->cache()->dir[dirIndex];
   2b884:	f8 01       	movw	r30, r16
   2b886:	81 8d       	ldd	r24, Z+25	; 0x19
   2b888:	92 8d       	ldd	r25, Z+26	; 0x1a
  // write or truncate is an error for a directory or read-only file
  if (p->attributes & (DIR_ATT_READ_ONLY | DIR_ATT_DIRECTORY)) {
    if (oflag & (O_WRITE | O_TRUNC)) goto fail;
  }
  // remember location of directory entry on SD
  dirBlock_ = vol_->cacheBlockNumber();
   2b88a:	40 91 91 0e 	lds	r20, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2b88e:	50 91 92 0e 	lds	r21, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2b892:	60 91 93 0e 	lds	r22, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2b896:	70 91 94 0e 	lds	r23, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2b89a:	44 87       	std	Z+12, r20	; 0x0c
   2b89c:	55 87       	std	Z+13, r21	; 0x0d
   2b89e:	66 87       	std	Z+14, r22	; 0x0e
   2b8a0:	77 87       	std	Z+15, r23	; 0x0f
  dirIndex_ = dirIndex;
   2b8a2:	d0 8a       	std	Z+16, r13	; 0x10

  // copy first cluster number for directory fields
  firstCluster_ = (uint32_t)p->firstClusterHigh << 16;
   2b8a4:	fd 01       	movw	r30, r26
   2b8a6:	e3 56       	subi	r30, 0x63	; 99
   2b8a8:	f1 4f       	sbci	r31, 0xF1	; 241
   2b8aa:	44 88       	ldd	r4, Z+20	; 0x14
   2b8ac:	55 88       	ldd	r5, Z+21	; 0x15
   2b8ae:	71 2c       	mov	r7, r1
   2b8b0:	61 2c       	mov	r6, r1
   2b8b2:	32 01       	movw	r6, r4
   2b8b4:	55 24       	eor	r5, r5
   2b8b6:	44 24       	eor	r4, r4
   2b8b8:	d8 01       	movw	r26, r16
   2b8ba:	55 96       	adiw	r26, 0x15	; 21
   2b8bc:	4d 92       	st	X+, r4
   2b8be:	5d 92       	st	X+, r5
   2b8c0:	6d 92       	st	X+, r6
   2b8c2:	7c 92       	st	X, r7
   2b8c4:	58 97       	sbiw	r26, 0x18	; 24
  firstCluster_ |= p->firstClusterLow;
   2b8c6:	42 8d       	ldd	r20, Z+26	; 0x1a
   2b8c8:	53 8d       	ldd	r21, Z+27	; 0x1b
   2b8ca:	70 e0       	ldi	r23, 0x00	; 0
   2b8cc:	60 e0       	ldi	r22, 0x00	; 0
   2b8ce:	44 29       	or	r20, r4
   2b8d0:	55 29       	or	r21, r5
   2b8d2:	66 29       	or	r22, r6
   2b8d4:	77 29       	or	r23, r7
   2b8d6:	55 96       	adiw	r26, 0x15	; 21
   2b8d8:	4d 93       	st	X+, r20
   2b8da:	5d 93       	st	X+, r21
   2b8dc:	6d 93       	st	X+, r22
   2b8de:	7c 93       	st	X, r23
   2b8e0:	58 97       	sbiw	r26, 0x18	; 24
   2b8e2:	d9 01       	movw	r26, r18
   2b8e4:	1b 96       	adiw	r26, 0x0b	; 11
   2b8e6:	2c 91       	ld	r18, X
   2b8e8:	28 71       	andi	r18, 0x18	; 24

  // make sure it is a normal file or subdirectory
  if (DIR_IS_FILE(p)) {
   2b8ea:	09 f0       	breq	.+2      	; 0x2b8ee <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x1fc>
   2b8ec:	b9 c0       	rjmp	.+370    	; 0x2ba60 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x36e>
    fileSize_ = p->fileSize;
   2b8ee:	84 8d       	ldd	r24, Z+28	; 0x1c
   2b8f0:	95 8d       	ldd	r25, Z+29	; 0x1d
   2b8f2:	a6 8d       	ldd	r26, Z+30	; 0x1e
   2b8f4:	b7 8d       	ldd	r27, Z+31	; 0x1f
   2b8f6:	f8 01       	movw	r30, r16
   2b8f8:	81 8b       	std	Z+17, r24	; 0x11
   2b8fa:	92 8b       	std	Z+18, r25	; 0x12
   2b8fc:	a3 8b       	std	Z+19, r26	; 0x13
   2b8fe:	b4 8b       	std	Z+20, r27	; 0x14
    type_ = FAT_FILE_TYPE_NORMAL;
   2b900:	81 e0       	ldi	r24, 0x01	; 1
   2b902:	83 83       	std	Z+3, r24	; 0x03
    type_ = FAT_FILE_TYPE_SUBDIR;
  } else {
    goto fail;
  }
  // save open flags for read/write
  flags_ = oflag & F_OFLAG;
   2b904:	8c 2d       	mov	r24, r12
   2b906:	8f 70       	andi	r24, 0x0F	; 15
   2b908:	f8 01       	movw	r30, r16
   2b90a:	81 83       	std	Z+1, r24	; 0x01

  // set to start of file
  curCluster_ = 0;
   2b90c:	14 82       	std	Z+4, r1	; 0x04
   2b90e:	15 82       	std	Z+5, r1	; 0x05
   2b910:	16 82       	std	Z+6, r1	; 0x06
   2b912:	17 82       	std	Z+7, r1	; 0x07
  curPosition_ = 0;
   2b914:	10 86       	std	Z+8, r1	; 0x08
   2b916:	11 86       	std	Z+9, r1	; 0x09
   2b918:	12 86       	std	Z+10, r1	; 0x0a
   2b91a:	13 86       	std	Z+11, r1	; 0x0b
  if ((oflag & O_TRUNC) && !truncate(0)) return false;
  return oflag & O_AT_END ? seekEnd(0) : true;
   2b91c:	81 e0       	ldi	r24, 0x01	; 1
  flags_ = oflag & F_OFLAG;

  // set to start of file
  curCluster_ = 0;
  curPosition_ = 0;
  if ((oflag & O_TRUNC) && !truncate(0)) return false;
   2b91e:	c4 fe       	sbrs	r12, 4
   2b920:	03 c0       	rjmp	.+6      	; 0x2b928 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x236>
   2b922:	c8 01       	movw	r24, r16
   2b924:	0f 94 bf 77 	call	0x2ef7e	; 0x2ef7e <SdBaseFile::truncate(unsigned long) [clone .constprop.263]>
  // open entry in cache
  return openCachedEntry(index, oflag);

 fail:
  return false;
}
   2b928:	0f 90       	pop	r0
   2b92a:	df 91       	pop	r29
   2b92c:	cf 91       	pop	r28
   2b92e:	1f 91       	pop	r17
   2b930:	0f 91       	pop	r16
   2b932:	ff 90       	pop	r15
   2b934:	ef 90       	pop	r14
   2b936:	df 90       	pop	r13
   2b938:	cf 90       	pop	r12
   2b93a:	bf 90       	pop	r11
   2b93c:	af 90       	pop	r10
   2b93e:	7f 90       	pop	r7
   2b940:	6f 90       	pop	r6
   2b942:	5f 90       	pop	r5
   2b944:	4f 90       	pop	r4
   2b946:	08 95       	ret
    if (emptyFound) {
      index = dirIndex_;
      p = cacheDirEntry(SdVolume::CACHE_FOR_WRITE);
      if (!p) goto fail;
    } else {
      if (dirFile->type_ == FAT_FILE_TYPE_ROOT_FIXED) goto fail;
   2b948:	d7 01       	movw	r26, r14
   2b94a:	13 96       	adiw	r26, 0x03	; 3
   2b94c:	8c 91       	ld	r24, X
   2b94e:	13 97       	sbiw	r26, 0x03	; 3
   2b950:	82 30       	cpi	r24, 0x02	; 2
   2b952:	09 f4       	brne	.+2      	; 0x2b956 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x264>
   2b954:	0c cf       	rjmp	.-488    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>
// Add a cluster to a directory file and zero the cluster.
// return with first block of cluster in the cache
bool SdBaseFile::addDirCluster() {
  uint32_t block;
  // max folder size
  if (fileSize_/sizeof(dir_t) >= 0XFFFF) goto fail;
   2b956:	51 96       	adiw	r26, 0x11	; 17
   2b958:	8d 91       	ld	r24, X+
   2b95a:	9d 91       	ld	r25, X+
   2b95c:	0d 90       	ld	r0, X+
   2b95e:	bc 91       	ld	r27, X
   2b960:	a0 2d       	mov	r26, r0
   2b962:	80 3e       	cpi	r24, 0xE0	; 224
   2b964:	9f 4f       	sbci	r25, 0xFF	; 255
   2b966:	af 41       	sbci	r26, 0x1F	; 31
   2b968:	b1 05       	cpc	r27, r1
   2b96a:	08 f0       	brcs	.+2      	; 0x2b96e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x27c>
   2b96c:	00 cf       	rjmp	.-512    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

  if (!addCluster()) goto fail;
   2b96e:	c7 01       	movw	r24, r14
   2b970:	0f 94 68 58 	call	0x2b0d0	; 0x2b0d0 <SdBaseFile::addCluster()>
   2b974:	88 23       	and	r24, r24
   2b976:	09 f4       	brne	.+2      	; 0x2b97a <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x288>
   2b978:	fa ce       	rjmp	.-524    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>
  if (!vol_->cacheFlush()) goto fail;
   2b97a:	0f 94 57 54 	call	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>
   2b97e:	88 23       	and	r24, r24
   2b980:	09 f4       	brne	.+2      	; 0x2b984 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x292>
   2b982:	f5 ce       	rjmp	.-534    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

  block = vol_->clusterStartBlock(curCluster_);
   2b984:	d7 01       	movw	r26, r14
   2b986:	59 96       	adiw	r26, 0x19	; 25
   2b988:	ed 91       	ld	r30, X+
   2b98a:	fc 91       	ld	r31, X
   2b98c:	5a 97       	sbiw	r26, 0x1a	; 26
  //----------------------------------------------------------------------------
  bool allocContiguous(uint32_t count, uint32_t* curCluster);
  uint8_t blockOfCluster(uint32_t position) const {
          return (position >> 9) & (blocksPerCluster_ - 1);}
  uint32_t clusterStartBlock(uint32_t cluster) const {
           return dataStartBlock_ + ((cluster - 2) << clusterSizeShift_);}
   2b98e:	14 96       	adiw	r26, 0x04	; 4
   2b990:	4d 90       	ld	r4, X+
   2b992:	5d 90       	ld	r5, X+
   2b994:	6d 90       	ld	r6, X+
   2b996:	7c 90       	ld	r7, X
   2b998:	17 97       	sbiw	r26, 0x07	; 7
   2b99a:	b2 e0       	ldi	r27, 0x02	; 2
   2b99c:	4b 1a       	sub	r4, r27
   2b99e:	51 08       	sbc	r5, r1
   2b9a0:	61 08       	sbc	r6, r1
   2b9a2:	71 08       	sbc	r7, r1
   2b9a4:	85 85       	ldd	r24, Z+13	; 0x0d
   2b9a6:	04 c0       	rjmp	.+8      	; 0x2b9b0 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x2be>
   2b9a8:	44 0c       	add	r4, r4
   2b9aa:	55 1c       	adc	r5, r5
   2b9ac:	66 1c       	adc	r6, r6
   2b9ae:	77 1c       	adc	r7, r7
   2b9b0:	8a 95       	dec	r24
   2b9b2:	d2 f7       	brpl	.-12     	; 0x2b9a8 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x2b6>
   2b9b4:	86 85       	ldd	r24, Z+14	; 0x0e
   2b9b6:	97 85       	ldd	r25, Z+15	; 0x0f
   2b9b8:	a0 89       	ldd	r26, Z+16	; 0x10
   2b9ba:	b1 89       	ldd	r27, Z+17	; 0x11
   2b9bc:	48 0e       	add	r4, r24
   2b9be:	59 1e       	adc	r5, r25
   2b9c0:	6a 1e       	adc	r6, r26
   2b9c2:	7b 1e       	adc	r7, r27
  static bool cacheFlush();
  static bool cacheRawBlock(uint32_t blockNumber, bool dirty);
#endif  // USE_MULTIPLE_CARDS
  // used by SdBaseFile write to assign cache to SD location
  void cacheSetBlockNumber(uint32_t blockNumber, bool dirty) {
    cacheDirty_ = dirty;
   2b9c4:	81 e0       	ldi	r24, 0x01	; 1
   2b9c6:	80 93 99 0e 	sts	0x0E99, r24	; 0x800e99 <SdVolume::cacheDirty_>
    cacheBlockNumber_  = blockNumber;
   2b9ca:	40 92 91 0e 	sts	0x0E91, r4	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2b9ce:	50 92 92 0e 	sts	0x0E92, r5	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2b9d2:	60 92 93 0e 	sts	0x0E93, r6	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2b9d6:	70 92 94 0e 	sts	0x0E94, r7	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>

  // set cache to first block of cluster
  vol_->cacheSetBlockNumber(block, true);

  // zero first block of cluster
  memset(vol_->cacheBuffer_.data, 0, 512);
   2b9da:	ed e9       	ldi	r30, 0x9D	; 157
   2b9dc:	fe e0       	ldi	r31, 0x0E	; 14
   2b9de:	80 e0       	ldi	r24, 0x00	; 0
   2b9e0:	92 e0       	ldi	r25, 0x02	; 2
   2b9e2:	df 01       	movw	r26, r30
   2b9e4:	9c 01       	movw	r18, r24
   2b9e6:	1d 92       	st	X+, r1
   2b9e8:	21 50       	subi	r18, 0x01	; 1
   2b9ea:	30 40       	sbci	r19, 0x00	; 0
   2b9ec:	e1 f7       	brne	.-8      	; 0x2b9e6 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x2f4>

  // zero rest of cluster
  for (uint8_t i = 1; i < vol_->blocksPerCluster_; i++) {
   2b9ee:	dd 24       	eor	r13, r13
   2b9f0:	d3 94       	inc	r13
   2b9f2:	d7 01       	movw	r26, r14
   2b9f4:	59 96       	adiw	r26, 0x19	; 25
   2b9f6:	ed 91       	ld	r30, X+
   2b9f8:	fc 91       	ld	r31, X
   2b9fa:	84 81       	ldd	r24, Z+4	; 0x04
   2b9fc:	d8 16       	cp	r13, r24
   2b9fe:	98 f4       	brcc	.+38     	; 0x2ba26 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x334>
    return  cluster >= FAT32EOC_MIN;
  }
  bool readBlock(uint32_t block, uint8_t* dst) {
    return sdCard_->readBlock(block, dst);}
  bool writeBlock(uint32_t block, const uint8_t* dst) {
    return sdCard_->writeBlock(block, dst);
   2ba00:	2d e9       	ldi	r18, 0x9D	; 157
   2ba02:	3e e0       	ldi	r19, 0x0E	; 14
   2ba04:	b3 01       	movw	r22, r6
   2ba06:	a2 01       	movw	r20, r4
   2ba08:	4d 0d       	add	r20, r13
   2ba0a:	51 1d       	adc	r21, r1
   2ba0c:	61 1d       	adc	r22, r1
   2ba0e:	71 1d       	adc	r23, r1
   2ba10:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   2ba14:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   2ba18:	0f 94 f3 53 	call	0x2a7e6	; 0x2a7e6 <Sd2Card::writeBlock(unsigned long, unsigned char const*)>
    if (!vol_->writeBlock(block + i, vol_->cacheBuffer_.data)) goto fail;
   2ba1c:	88 23       	and	r24, r24
   2ba1e:	09 f4       	brne	.+2      	; 0x2ba22 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x330>
   2ba20:	a6 ce       	rjmp	.-692    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

  // zero first block of cluster
  memset(vol_->cacheBuffer_.data, 0, 512);

  // zero rest of cluster
  for (uint8_t i = 1; i < vol_->blocksPerCluster_; i++) {
   2ba22:	d3 94       	inc	r13
   2ba24:	e6 cf       	rjmp	.-52     	; 0x2b9f2 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x300>
    if (!vol_->writeBlock(block + i, vol_->cacheBuffer_.data)) goto fail;
  }
  // Increase directory file size by cluster size
  fileSize_ += 512UL << vol_->clusterSizeShift_;
   2ba26:	25 85       	ldd	r18, Z+13	; 0x0d
   2ba28:	80 e0       	ldi	r24, 0x00	; 0
   2ba2a:	92 e0       	ldi	r25, 0x02	; 2
   2ba2c:	a0 e0       	ldi	r26, 0x00	; 0
   2ba2e:	b0 e0       	ldi	r27, 0x00	; 0
   2ba30:	04 c0       	rjmp	.+8      	; 0x2ba3a <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x348>
   2ba32:	88 0f       	add	r24, r24
   2ba34:	99 1f       	adc	r25, r25
   2ba36:	aa 1f       	adc	r26, r26
   2ba38:	bb 1f       	adc	r27, r27
   2ba3a:	2a 95       	dec	r18
   2ba3c:	d2 f7       	brpl	.-12     	; 0x2ba32 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x340>
   2ba3e:	f7 01       	movw	r30, r14
   2ba40:	41 89       	ldd	r20, Z+17	; 0x11
   2ba42:	52 89       	ldd	r21, Z+18	; 0x12
   2ba44:	63 89       	ldd	r22, Z+19	; 0x13
   2ba46:	74 89       	ldd	r23, Z+20	; 0x14
   2ba48:	84 0f       	add	r24, r20
   2ba4a:	95 1f       	adc	r25, r21
   2ba4c:	a6 1f       	adc	r26, r22
   2ba4e:	b7 1f       	adc	r27, r23
   2ba50:	81 8b       	std	Z+17, r24	; 0x11
   2ba52:	92 8b       	std	Z+18, r25	; 0x12
   2ba54:	a3 8b       	std	Z+19, r26	; 0x13
   2ba56:	b4 8b       	std	Z+20, r27	; 0x14

      // add and zero cluster for dirFile - first cluster is in cache for write
      if (!dirFile->addDirCluster()) goto fail;

      // use first entry in cluster
      p = dirFile->vol_->cache()->dir;
   2ba58:	8d e9       	ldi	r24, 0x9D	; 157
   2ba5a:	9e e0       	ldi	r25, 0x0E	; 14
      index = 0;
   2ba5c:	d1 2c       	mov	r13, r1
   2ba5e:	db ce       	rjmp	.-586    	; 0x2b816 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x124>

  // make sure it is a normal file or subdirectory
  if (DIR_IS_FILE(p)) {
    fileSize_ = p->fileSize;
    type_ = FAT_FILE_TYPE_NORMAL;
  } else if (DIR_IS_SUBDIR(p)) {
   2ba60:	20 31       	cpi	r18, 0x10	; 16
   2ba62:	61 f4       	brne	.+24     	; 0x2ba7c <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x38a>
    if (!vol_->chainSize(firstCluster_, &fileSize_)) goto fail;
   2ba64:	98 01       	movw	r18, r16
   2ba66:	2f 5e       	subi	r18, 0xEF	; 239
   2ba68:	3f 4f       	sbci	r19, 0xFF	; 255
   2ba6a:	0f 94 a1 56 	call	0x2ad42	; 0x2ad42 <SdVolume::chainSize(unsigned long, unsigned long*)>
   2ba6e:	88 23       	and	r24, r24
   2ba70:	29 f0       	breq	.+10     	; 0x2ba7c <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x38a>
    type_ = FAT_FILE_TYPE_SUBDIR;
   2ba72:	84 e0       	ldi	r24, 0x04	; 4
   2ba74:	d8 01       	movw	r26, r16
   2ba76:	13 96       	adiw	r26, 0x03	; 3
   2ba78:	8c 93       	st	X, r24
   2ba7a:	44 cf       	rjmp	.-376    	; 0x2b904 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x212>
  curPosition_ = 0;
  if ((oflag & O_TRUNC) && !truncate(0)) return false;
  return oflag & O_AT_END ? seekEnd(0) : true;

 fail:
  type_ = FAT_FILE_TYPE_CLOSED;
   2ba7c:	d8 01       	movw	r26, r16
   2ba7e:	13 96       	adiw	r26, 0x03	; 3
   2ba80:	1c 92       	st	X, r1
   2ba82:	75 ce       	rjmp	.-790    	; 0x2b76e <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)+0x7c>

0002ba84 <recover_print(unsigned char)>:
        // version of uvlo_() which doesn't overwrite the print state already waiting in EEPROM
        uvlo_tiny();
    }
}

void recover_print(uint8_t automatic) {
   2ba84:	4f 92       	push	r4
   2ba86:	5f 92       	push	r5
   2ba88:	6f 92       	push	r6
   2ba8a:	7f 92       	push	r7
   2ba8c:	8f 92       	push	r8
   2ba8e:	9f 92       	push	r9
   2ba90:	af 92       	push	r10
   2ba92:	bf 92       	push	r11
   2ba94:	cf 92       	push	r12
   2ba96:	df 92       	push	r13
   2ba98:	ef 92       	push	r14
   2ba9a:	ff 92       	push	r15
   2ba9c:	0f 93       	push	r16
   2ba9e:	1f 93       	push	r17
   2baa0:	cf 93       	push	r28
   2baa2:	df 93       	push	r29
   2baa4:	1f 92       	push	r1
   2baa6:	1f 92       	push	r1
   2baa8:	cd b7       	in	r28, 0x3d	; 61
   2baaa:	de b7       	in	r29, 0x3e	; 62
   2baac:	a8 2e       	mov	r10, r24
    lcd_setstatuspgm(_T(MSG_RECOVERING_PRINT));
   2baae:	89 ed       	ldi	r24, 0xD9	; 217
   2bab0:	9c e4       	ldi	r25, 0x4C	; 76
   2bab2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2bab6:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    gcode_M114();
}

bool recover_machine_state_after_power_panic() {
    // 1) Preset some dummy values for the XY axes
    current_position[X_AXIS] = 0;
   2baba:	10 92 92 06 	sts	0x0692, r1	; 0x800692 <current_position>
   2babe:	10 92 93 06 	sts	0x0693, r1	; 0x800693 <current_position+0x1>
   2bac2:	10 92 94 06 	sts	0x0694, r1	; 0x800694 <current_position+0x2>
   2bac6:	10 92 95 06 	sts	0x0695, r1	; 0x800695 <current_position+0x3>
    current_position[Y_AXIS] = 0;
   2baca:	10 92 96 06 	sts	0x0696, r1	; 0x800696 <current_position+0x4>
   2bace:	10 92 97 06 	sts	0x0697, r1	; 0x800697 <current_position+0x5>
   2bad2:	10 92 98 06 	sts	0x0698, r1	; 0x800698 <current_position+0x6>
   2bad6:	10 92 99 06 	sts	0x0699, r1	; 0x800699 <current_position+0x7>
   2bada:	9e ea       	ldi	r25, 0xAE	; 174
   2badc:	e9 2e       	mov	r14, r25
   2bade:	9d e0       	ldi	r25, 0x0D	; 13
   2bae0:	f9 2e       	mov	r15, r25

    // 2) Restore the mesh bed leveling offsets, but not the MBL status.
    // This is 2*7*7=98 bytes, which takes 98*3.4us=333us in worst case.
    bool mbl_was_active = false;
   2bae2:	d1 2c       	mov	r13, r1
    for (int8_t mesh_point = 0; mesh_point < MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS; ++ mesh_point) {
   2bae4:	c1 2c       	mov	r12, r1
        uint8_t ix = mesh_point % MESH_NUM_X_POINTS; // from 0 to MESH_NUM_X_POINTS - 1
   2bae6:	27 e0       	ldi	r18, 0x07	; 7
   2bae8:	b2 2e       	mov	r11, r18
   2baea:	8c 2d       	mov	r24, r12
   2baec:	6b 2d       	mov	r22, r11
   2baee:	0f 94 16 dd 	call	0x3ba2c	; 0x3ba2c <__divmodqi4>
   2baf2:	08 2f       	mov	r16, r24
   2baf4:	99 2e       	mov	r9, r25
        uint8_t iy = mesh_point / MESH_NUM_X_POINTS;
        // Scale the z value to 10u resolution.
        int16_t v;
        eeprom_read_block(&v, (void*)(EEPROM_UVLO_MESH_BED_LEVELING_FULL+2*mesh_point), 2);
   2baf6:	42 e0       	ldi	r20, 0x02	; 2
   2baf8:	50 e0       	ldi	r21, 0x00	; 0
   2bafa:	b7 01       	movw	r22, r14
   2bafc:	ce 01       	movw	r24, r28
   2bafe:	01 96       	adiw	r24, 0x01	; 1
   2bb00:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
        if (v != 0)
   2bb04:	69 81       	ldd	r22, Y+1	; 0x01
   2bb06:	7a 81       	ldd	r23, Y+2	; 0x02
   2bb08:	61 15       	cp	r22, r1
   2bb0a:	71 05       	cpc	r23, r1
   2bb0c:	11 f0       	breq	.+4      	; 0x2bb12 <recover_print(unsigned char)+0x8e>
            mbl_was_active = true;
   2bb0e:	dd 24       	eor	r13, r13
   2bb10:	d3 94       	inc	r13
        mbl.z_values[iy][ix] = float(v) * 0.001f;
   2bb12:	2b 2d       	mov	r18, r11
   2bb14:	02 03       	mulsu	r16, r18
   2bb16:	80 01       	movw	r16, r0
   2bb18:	11 24       	eor	r1, r1
   2bb1a:	09 0d       	add	r16, r9
   2bb1c:	11 1d       	adc	r17, r1
   2bb1e:	97 fc       	sbrc	r9, 7
   2bb20:	1a 95       	dec	r17
   2bb22:	00 0f       	add	r16, r16
   2bb24:	11 1f       	adc	r17, r17
   2bb26:	00 0f       	add	r16, r16
   2bb28:	11 1f       	adc	r17, r17
   2bb2a:	0e 53       	subi	r16, 0x3E	; 62
   2bb2c:	1c 4e       	sbci	r17, 0xEC	; 236
   2bb2e:	07 2e       	mov	r0, r23
   2bb30:	00 0c       	add	r0, r0
   2bb32:	88 0b       	sbc	r24, r24
   2bb34:	99 0b       	sbc	r25, r25
   2bb36:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2bb3a:	2f e6       	ldi	r18, 0x6F	; 111
   2bb3c:	32 e1       	ldi	r19, 0x12	; 18
   2bb3e:	43 e8       	ldi	r20, 0x83	; 131
   2bb40:	5a e3       	ldi	r21, 0x3A	; 58
   2bb42:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2bb46:	f8 01       	movw	r30, r16
   2bb48:	61 83       	std	Z+1, r22	; 0x01
   2bb4a:	72 83       	std	Z+2, r23	; 0x02
   2bb4c:	83 83       	std	Z+3, r24	; 0x03
   2bb4e:	94 83       	std	Z+4, r25	; 0x04
   2bb50:	f2 e0       	ldi	r31, 0x02	; 2
   2bb52:	ef 0e       	add	r14, r31
   2bb54:	f1 1c       	adc	r15, r1
   2bb56:	c3 94       	inc	r12
    current_position[Y_AXIS] = 0;

    // 2) Restore the mesh bed leveling offsets, but not the MBL status.
    // This is 2*7*7=98 bytes, which takes 98*3.4us=333us in worst case.
    bool mbl_was_active = false;
    for (int8_t mesh_point = 0; mesh_point < MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS; ++ mesh_point) {
   2bb58:	21 e3       	ldi	r18, 0x31	; 49
   2bb5a:	c2 12       	cpse	r12, r18
   2bb5c:	c6 cf       	rjmp	.-116    	; 0x2baea <recover_print(unsigned char)+0x66>
        mbl.z_values[iy][ix] = float(v) * 0.001f;
    }

    // Recover the physical coordinate of the Z axis at the time of the power panic.
    // The current position after power panic is moved to the next closest 0th full step.
    current_position[Z_AXIS] = eeprom_read_float((float*)(EEPROM_UVLO_TINY_CURRENT_POSITION_Z));
   2bb5e:	8a ed       	ldi	r24, 0xDA	; 218
   2bb60:	9e e0       	ldi	r25, 0x0E	; 14
   2bb62:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bb66:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   2bb6a:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   2bb6e:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   2bb72:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>

    // Recover last E axis position
    current_position[E_AXIS] = eeprom_read_float((float*)(EEPROM_UVLO_CURRENT_POSITION_E));
   2bb76:	8e e6       	ldi	r24, 0x6E	; 110
   2bb78:	9f e0       	ldi	r25, 0x0F	; 15
   2bb7a:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bb7e:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   2bb82:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   2bb86:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   2bb8a:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>

    // 3) Initialize the logical to physical coordinate system transformation.
    world2machine_initialize();
   2bb8e:	0f 94 da ce 	call	0x39db4	; 0x39db4 <world2machine_initialize()>

    // 4) Load the baby stepping value, which is expected to be active at the time of power panic.
    // The baby stepping value is used to reset the physical Z axis when rehoming the Z axis.
    babystep_load();
   2bb92:	0f 94 c4 c9 	call	0x39388	; 0x39388 <babystep_load()>

    // 5) Set the physical positions from the logical positions using the world2machine transformation
    // This is only done to inizialize Z/E axes with physical locations, since X/Y are unknown.
    clamp_to_software_endstops(current_position);
   2bb96:	82 e9       	ldi	r24, 0x92	; 146
   2bb98:	96 e0       	ldi	r25, 0x06	; 6
   2bb9a:	0e 94 50 6b 	call	0xd6a0	; 0xd6a0 <clamp_to_software_endstops(float*)>
    set_destination_to_current();
   2bb9e:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
    plan_set_position_curposXYZE();
   2bba2:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
    SERIAL_ECHOPGM("recover_machine_state_after_power_panic, initial ");
   2bba6:	84 e5       	ldi	r24, 0x54	; 84
   2bba8:	9e e8       	ldi	r25, 0x8E	; 142
   2bbaa:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    saved_printing = false;
}

void print_world_coordinates()
{
	printf_P(_N("world coordinates: (%.3f, %.3f, %.3f)\n"), current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS]);
   2bbae:	80 91 9d 06 	lds	r24, 0x069D	; 0x80069d <current_position+0xb>
   2bbb2:	8f 93       	push	r24
   2bbb4:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   2bbb8:	8f 93       	push	r24
   2bbba:	80 91 9b 06 	lds	r24, 0x069B	; 0x80069b <current_position+0x9>
   2bbbe:	8f 93       	push	r24
   2bbc0:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
   2bbc4:	8f 93       	push	r24
   2bbc6:	80 91 99 06 	lds	r24, 0x0699	; 0x800699 <current_position+0x7>
   2bbca:	8f 93       	push	r24
   2bbcc:	80 91 98 06 	lds	r24, 0x0698	; 0x800698 <current_position+0x6>
   2bbd0:	8f 93       	push	r24
   2bbd2:	80 91 97 06 	lds	r24, 0x0697	; 0x800697 <current_position+0x5>
   2bbd6:	8f 93       	push	r24
   2bbd8:	80 91 96 06 	lds	r24, 0x0696	; 0x800696 <current_position+0x4>
   2bbdc:	8f 93       	push	r24
   2bbde:	80 91 95 06 	lds	r24, 0x0695	; 0x800695 <current_position+0x3>
   2bbe2:	8f 93       	push	r24
   2bbe4:	80 91 94 06 	lds	r24, 0x0694	; 0x800694 <current_position+0x2>
   2bbe8:	8f 93       	push	r24
   2bbea:	80 91 93 06 	lds	r24, 0x0693	; 0x800693 <current_position+0x1>
   2bbee:	8f 93       	push	r24
   2bbf0:	80 91 92 06 	lds	r24, 0x0692	; 0x800692 <current_position>
   2bbf4:	8f 93       	push	r24
   2bbf6:	8b e5       	ldi	r24, 0x5B	; 91
   2bbf8:	9d e6       	ldi	r25, 0x6D	; 109
   2bbfa:	9f 93       	push	r25
   2bbfc:	8f 93       	push	r24
   2bbfe:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    print_world_coordinates();

    // 6) Power up the Z motors, mark their positions as known.
    axis_known_position[Z_AXIS] = true;
   2bc02:	81 e0       	ldi	r24, 0x01	; 1
   2bc04:	80 93 91 06 	sts	0x0691, r24	; 0x800691 <axis_known_position+0x2>
    enable_z();
   2bc08:	15 98       	cbi	0x02, 5	; 2

    // 7) Recover the target temperatures.
    target_temperature[active_extruder] = eeprom_read_word((uint16_t*)EEPROM_UVLO_TARGET_HOTEND);
   2bc0a:	88 ed       	ldi	r24, 0xD8	; 216
   2bc0c:	9e e0       	ldi	r25, 0x0E	; 14
   2bc0e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2bc12:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
   2bc16:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
    target_temperature_bed = eeprom_read_byte((uint8_t*)EEPROM_UVLO_TARGET_BED);
   2bc1a:	8b e8       	ldi	r24, 0x8B	; 139
   2bc1c:	9f e0       	ldi	r25, 0x0F	; 15
   2bc1e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2bc22:	90 e0       	ldi	r25, 0x00	; 0
   2bc24:	90 93 73 06 	sts	0x0673, r25	; 0x800673 <target_temperature_bed+0x1>
   2bc28:	80 93 72 06 	sts	0x0672, r24	; 0x800672 <target_temperature_bed>

    // 8) Recover extruder multipilers
    extruder_multiplier[0] = eeprom_read_float((float*)(EEPROM_EXTRUDER_MULTIPLIER_0));
   2bc2c:	88 ee       	ldi	r24, 0xE8	; 232
   2bc2e:	9e e0       	ldi	r25, 0x0E	; 14
   2bc30:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bc34:	60 93 93 02 	sts	0x0293, r22	; 0x800293 <extruder_multiplier>
   2bc38:	70 93 94 02 	sts	0x0294, r23	; 0x800294 <extruder_multiplier+0x1>
   2bc3c:	80 93 95 02 	sts	0x0295, r24	; 0x800295 <extruder_multiplier+0x2>
   2bc40:	90 93 96 02 	sts	0x0296, r25	; 0x800296 <extruder_multiplier+0x3>
    extrudemultiply = (int)eeprom_read_word((uint16_t*)(EEPROM_EXTRUDEMULTIPLY));
   2bc44:	8e ed       	ldi	r24, 0xDE	; 222
   2bc46:	9e e0       	ldi	r25, 0x0E	; 14
   2bc48:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2bc4c:	90 93 bd 02 	sts	0x02BD, r25	; 0x8002bd <extrudemultiply+0x1>
   2bc50:	80 93 bc 02 	sts	0x02BC, r24	; 0x8002bc <extrudemultiply>

    // 9) Recover the saved target
    eeprom_read_block(saved_start_position, (float *)EEPROM_UVLO_SAVED_START_POSITION, sizeof(saved_start_position));
   2bc54:	40 e1       	ldi	r20, 0x10	; 16
   2bc56:	50 e0       	ldi	r21, 0x00	; 0
   2bc58:	67 e3       	ldi	r22, 0x37	; 55
   2bc5a:	7d e0       	ldi	r23, 0x0D	; 13
   2bc5c:	83 e8       	ldi	r24, 0x83	; 131
   2bc5e:	92 e0       	ldi	r25, 0x02	; 2
   2bc60:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>

    saved_segment_idx = eeprom_read_word((uint16_t*)EEPROM_UVLO_SAVED_SEGMENT_IDX);
   2bc64:	8c e6       	ldi	r24, 0x6C	; 108
   2bc66:	9f e0       	ldi	r25, 0x0F	; 15
   2bc68:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2bc6c:	90 93 6a 05 	sts	0x056A, r25	; 0x80056a <saved_segment_idx+0x1>
   2bc70:	80 93 69 05 	sts	0x0569, r24	; 0x800569 <saved_segment_idx>

#ifdef LIN_ADVANCE
    extruder_advance_K = eeprom_read_float((float*)EEPROM_UVLO_LA_K);
   2bc74:	8c e2       	ldi	r24, 0x2C	; 44
   2bc76:	9d e0       	ldi	r25, 0x0D	; 13
   2bc78:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bc7c:	60 93 65 05 	sts	0x0565, r22	; 0x800565 <extruder_advance_K>
   2bc80:	70 93 66 05 	sts	0x0566, r23	; 0x800566 <extruder_advance_K+0x1>
   2bc84:	80 93 67 05 	sts	0x0567, r24	; 0x800567 <extruder_advance_K+0x2>
   2bc88:	90 93 68 05 	sts	0x0568, r25	; 0x800568 <extruder_advance_K+0x3>
#endif

#ifdef PREVENT_DANGEROUS_EXTRUDE
    extrude_min_temp = eeprom_read_word((uint16_t*)EEPROM_UVLO_EXTRUDE_MINTEMP);
   2bc8c:	8d e7       	ldi	r24, 0x7D	; 125
   2bc8e:	9c e0       	ldi	r25, 0x0C	; 12
   2bc90:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2bc94:	90 93 6c 02 	sts	0x026C, r25	; 0x80026c <extrude_min_temp+0x1>
   2bc98:	80 93 6b 02 	sts	0x026B, r24	; 0x80026b <extrude_min_temp>
#endif //PREVENT_DANGEROUS_EXTRUDE
    eeprom_read_block(cs.max_acceleration_mm_per_s2_normal, (uint32_t *)EEPROM_UVLO_ACCELL_MM_S2_NORMAL, sizeof(cs.max_acceleration_mm_per_s2_normal));
   2bc9c:	40 e1       	ldi	r20, 0x10	; 16
   2bc9e:	50 e0       	ldi	r21, 0x00	; 0
   2bca0:	6d e6       	ldi	r22, 0x6D	; 109
   2bca2:	7c e0       	ldi	r23, 0x0C	; 12
   2bca4:	82 ee       	ldi	r24, 0xE2	; 226
   2bca6:	9d e0       	ldi	r25, 0x0D	; 13
   2bca8:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    eeprom_read_block(cs.max_acceleration_mm_per_s2_silent, (uint32_t *)EEPROM_UVLO_ACCELL_MM_S2_SILENT, sizeof(cs.max_acceleration_mm_per_s2_silent));
   2bcac:	40 e1       	ldi	r20, 0x10	; 16
   2bcae:	50 e0       	ldi	r21, 0x00	; 0
   2bcb0:	6d e5       	ldi	r22, 0x5D	; 93
   2bcb2:	7c e0       	ldi	r23, 0x0C	; 12
   2bcb4:	8a e6       	ldi	r24, 0x6A	; 106
   2bcb6:	9e e0       	ldi	r25, 0x0E	; 14
   2bcb8:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    eeprom_read_block(cs.max_feedrate_normal, (float *)EEPROM_UVLO_MAX_FEEDRATE_NORMAL, sizeof(cs.max_feedrate_normal));
   2bcbc:	40 e1       	ldi	r20, 0x10	; 16
   2bcbe:	50 e0       	ldi	r21, 0x00	; 0
   2bcc0:	6d e4       	ldi	r22, 0x4D	; 77
   2bcc2:	7c e0       	ldi	r23, 0x0C	; 12
   2bcc4:	82 ed       	ldi	r24, 0xD2	; 210
   2bcc6:	9d e0       	ldi	r25, 0x0D	; 13
   2bcc8:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    eeprom_read_block(cs.max_feedrate_silent, (float *)EEPROM_UVLO_MAX_FEEDRATE_SILENT, sizeof(cs.max_feedrate_silent));
   2bccc:	40 e1       	ldi	r20, 0x10	; 16
   2bcce:	50 e0       	ldi	r21, 0x00	; 0
   2bcd0:	6d e3       	ldi	r22, 0x3D	; 61
   2bcd2:	7c e0       	ldi	r23, 0x0C	; 12
   2bcd4:	8a e5       	ldi	r24, 0x5A	; 90
   2bcd6:	9e e0       	ldi	r25, 0x0E	; 14
   2bcd8:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    cs.minimumfeedrate = eeprom_read_float((float *)EEPROM_UVLO_MIN_FEEDRATE);
   2bcdc:	89 e3       	ldi	r24, 0x39	; 57
   2bcde:	9c e0       	ldi	r25, 0x0C	; 12
   2bce0:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bce4:	60 93 fa 0d 	sts	0x0DFA, r22	; 0x800dfa <cs+0x3c>
   2bce8:	70 93 fb 0d 	sts	0x0DFB, r23	; 0x800dfb <cs+0x3d>
   2bcec:	80 93 fc 0d 	sts	0x0DFC, r24	; 0x800dfc <cs+0x3e>
   2bcf0:	90 93 fd 0d 	sts	0x0DFD, r25	; 0x800dfd <cs+0x3f>
    cs.mintravelfeedrate = eeprom_read_float((float *)EEPROM_UVLO_MIN_TRAVEL_FEEDRATE);
   2bcf4:	85 e3       	ldi	r24, 0x35	; 53
   2bcf6:	9c e0       	ldi	r25, 0x0C	; 12
   2bcf8:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bcfc:	60 93 fe 0d 	sts	0x0DFE, r22	; 0x800dfe <cs+0x40>
   2bd00:	70 93 ff 0d 	sts	0x0DFF, r23	; 0x800dff <cs+0x41>
   2bd04:	80 93 00 0e 	sts	0x0E00, r24	; 0x800e00 <cs+0x42>
   2bd08:	90 93 01 0e 	sts	0x0E01, r25	; 0x800e01 <cs+0x43>
    cs.min_segment_time_us = eeprom_read_dword((uint32_t *)EEPROM_UVLO_MIN_SEGMENT_TIME_US);
   2bd0c:	81 e3       	ldi	r24, 0x31	; 49
   2bd0e:	9c e0       	ldi	r25, 0x0C	; 12
   2bd10:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bd14:	60 93 02 0e 	sts	0x0E02, r22	; 0x800e02 <cs+0x44>
   2bd18:	70 93 03 0e 	sts	0x0E03, r23	; 0x800e03 <cs+0x45>
   2bd1c:	80 93 04 0e 	sts	0x0E04, r24	; 0x800e04 <cs+0x46>
   2bd20:	90 93 05 0e 	sts	0x0E05, r25	; 0x800e05 <cs+0x47>
    eeprom_read_block(cs.max_jerk, (float *)EEPROM_UVLO_MAX_JERK, sizeof(cs.max_jerk));
   2bd24:	40 e1       	ldi	r20, 0x10	; 16
   2bd26:	50 e0       	ldi	r21, 0x00	; 0
   2bd28:	61 e2       	ldi	r22, 0x21	; 33
   2bd2a:	7c e0       	ldi	r23, 0x0C	; 12
   2bd2c:	86 e0       	ldi	r24, 0x06	; 6
   2bd2e:	9e e0       	ldi	r25, 0x0E	; 14
   2bd30:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    bool mbl_was_active = recover_machine_state_after_power_panic();

    // Undo PP Z Lift by setting current Z pos to + Z_PAUSE_LIFT
    // With first PP or Pause + PP the Z has been already lift.
    // After a reboot the printer doesn't know the Z height and we have to set its previous value
    if(eeprom_read_byte((uint8_t*)EEPROM_UVLO_Z_LIFTED) == 1 ) {
   2bd34:	8f e7       	ldi	r24, 0x7F	; 127
   2bd36:	9c e0       	ldi	r25, 0x0C	; 12
   2bd38:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2bd3c:	0f b6       	in	r0, 0x3f	; 63
   2bd3e:	f8 94       	cli
   2bd40:	de bf       	out	0x3e, r29	; 62
   2bd42:	0f be       	out	0x3f, r0	; 63
   2bd44:	cd bf       	out	0x3d, r28	; 61
   2bd46:	81 30       	cpi	r24, 0x01	; 1
   2bd48:	b1 f4       	brne	.+44     	; 0x2bd76 <recover_print(unsigned char)+0x2f2>
        current_position[Z_AXIS] += Z_PAUSE_LIFT;
   2bd4a:	20 e0       	ldi	r18, 0x00	; 0
   2bd4c:	30 e0       	ldi	r19, 0x00	; 0
   2bd4e:	40 ea       	ldi	r20, 0xA0	; 160
   2bd50:	51 e4       	ldi	r21, 0x41	; 65
   2bd52:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   2bd56:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   2bd5a:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   2bd5e:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   2bd62:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2bd66:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   2bd6a:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   2bd6e:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   2bd72:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
    }

    // Lift the print head ONCE plus Z_PAUSE_LIFT first to avoid collisions with oozed material with the print,
    if(eeprom_read_byte((uint8_t*)EEPROM_UVLO_Z_LIFTED) == 0) {
   2bd76:	8f e7       	ldi	r24, 0x7F	; 127
   2bd78:	9c e0       	ldi	r25, 0x0C	; 12
   2bd7a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2bd7e:	81 11       	cpse	r24, r1
   2bd80:	23 c0       	rjmp	.+70     	; 0x2bdc8 <recover_print(unsigned char)+0x344>
        enquecommandf_P(PSTR("G1 Z%.3f F800"), current_position[Z_AXIS] + Z_PAUSE_LIFT);
   2bd82:	20 e0       	ldi	r18, 0x00	; 0
   2bd84:	30 e0       	ldi	r19, 0x00	; 0
   2bd86:	40 ea       	ldi	r20, 0xA0	; 160
   2bd88:	51 e4       	ldi	r21, 0x41	; 65
   2bd8a:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   2bd8e:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   2bd92:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   2bd96:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   2bd9a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2bd9e:	9f 93       	push	r25
   2bda0:	8f 93       	push	r24
   2bda2:	7f 93       	push	r23
   2bda4:	6f 93       	push	r22
   2bda6:	89 e5       	ldi	r24, 0x59	; 89
   2bda8:	9f e8       	ldi	r25, 0x8F	; 143
   2bdaa:	9f 93       	push	r25
   2bdac:	8f 93       	push	r24
   2bdae:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   2bdb2:	61 e0       	ldi	r22, 0x01	; 1
   2bdb4:	8f e7       	ldi	r24, 0x7F	; 127
   2bdb6:	9c e0       	ldi	r25, 0x0C	; 12
   2bdb8:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   2bdbc:	0f 90       	pop	r0
   2bdbe:	0f 90       	pop	r0
   2bdc0:	0f 90       	pop	r0
   2bdc2:	0f 90       	pop	r0
   2bdc4:	0f 90       	pop	r0
   2bdc6:	0f 90       	pop	r0
        eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO_Z_LIFTED, 1);
    }

    // Home X and Y axes. Homing just X and Y shall not touch the babystep and the world2machine
    // transformation status. G28 will not touch Z when MBL is off.
    enquecommand_P(PSTR("G28 X Y"));
   2bdc8:	61 e0       	ldi	r22, 0x01	; 1
   2bdca:	81 e5       	ldi	r24, 0x51	; 81
   2bdcc:	9f e8       	ldi	r25, 0x8F	; 143
   2bdce:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    // Set the target bed and nozzle temperatures and wait.
    enquecommandf_P(PSTR("M104 S%d"), target_temperature[active_extruder]);
   2bdd2:	80 91 b7 0d 	lds	r24, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2bdd6:	8f 93       	push	r24
   2bdd8:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   2bddc:	8f 93       	push	r24
   2bdde:	88 e4       	ldi	r24, 0x48	; 72
   2bde0:	9f e8       	ldi	r25, 0x8F	; 143
   2bde2:	9f 93       	push	r25
   2bde4:	8f 93       	push	r24
   2bde6:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommandf_P(PSTR("M140 S%d"), target_temperature_bed);
   2bdea:	80 91 73 06 	lds	r24, 0x0673	; 0x800673 <target_temperature_bed+0x1>
   2bdee:	8f 93       	push	r24
   2bdf0:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   2bdf4:	8f 93       	push	r24
   2bdf6:	8f e3       	ldi	r24, 0x3F	; 63
   2bdf8:	9f e8       	ldi	r25, 0x8F	; 143
   2bdfa:	9f 93       	push	r25
   2bdfc:	8f 93       	push	r24
   2bdfe:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    //No need to wait for hotend heatup while host printing, as print will pause and wait for host.
    if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_PRINT_TYPE) == PowerPanic::PRINT_TYPE_SD) {
   2be02:	8c e8       	ldi	r24, 0x8C	; 140
   2be04:	9f e0       	ldi	r25, 0x0F	; 15
   2be06:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2be0a:	0f b6       	in	r0, 0x3f	; 63
   2be0c:	f8 94       	cli
   2be0e:	de bf       	out	0x3e, r29	; 62
   2be10:	0f be       	out	0x3f, r0	; 63
   2be12:	cd bf       	out	0x3d, r28	; 61
   2be14:	81 11       	cpse	r24, r1
   2be16:	10 c0       	rjmp	.+32     	; 0x2be38 <recover_print(unsigned char)+0x3b4>
        enquecommandf_P(PSTR("M109 S%d"), target_temperature[active_extruder]);
   2be18:	80 91 b7 0d 	lds	r24, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2be1c:	8f 93       	push	r24
   2be1e:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   2be22:	8f 93       	push	r24
   2be24:	86 e3       	ldi	r24, 0x36	; 54
   2be26:	9f e8       	ldi	r25, 0x8F	; 143
   2be28:	9f 93       	push	r25
   2be2a:	8f 93       	push	r24
   2be2c:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   2be30:	0f 90       	pop	r0
   2be32:	0f 90       	pop	r0
   2be34:	0f 90       	pop	r0
   2be36:	0f 90       	pop	r0
    }
    enquecommand_P(MSG_M83); //E axis relative mode
   2be38:	61 e0       	ldi	r22, 0x01	; 1
   2be3a:	8c e3       	ldi	r24, 0x3C	; 60
   2be3c:	9b e6       	ldi	r25, 0x6B	; 107
   2be3e:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>

    // If not automatically recoreverd (long power loss)
    if(automatic == 0){
   2be42:	a1 10       	cpse	r10, r1
   2be44:	17 c0       	rjmp	.+46     	; 0x2be74 <recover_print(unsigned char)+0x3f0>
        //Extrude some filament to stabilize the pressure
        enquecommand_P(PSTR("G1 E5 F120"));
   2be46:	61 e0       	ldi	r22, 0x01	; 1
   2be48:	8b e2       	ldi	r24, 0x2B	; 43
   2be4a:	9f e8       	ldi	r25, 0x8F	; 143
   2be4c:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
        // Retract to be consistent with a short pause
        enquecommandf_P(G1_E_F2700, default_retraction);
   2be50:	8f e3       	ldi	r24, 0x3F	; 63
   2be52:	8f 93       	push	r24
   2be54:	80 e8       	ldi	r24, 0x80	; 128
   2be56:	8f 93       	push	r24
   2be58:	1f 92       	push	r1
   2be5a:	1f 92       	push	r1
   2be5c:	86 eb       	ldi	r24, 0xB6	; 182
   2be5e:	9d e6       	ldi	r25, 0x6D	; 109
   2be60:	9f 93       	push	r25
   2be62:	8f 93       	push	r24
   2be64:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   2be68:	0f 90       	pop	r0
   2be6a:	0f 90       	pop	r0
   2be6c:	0f 90       	pop	r0
   2be6e:	0f 90       	pop	r0
   2be70:	0f 90       	pop	r0
   2be72:	0f 90       	pop	r0
    }

    puts_P(_N("Temperature Restored\n"));
   2be74:	80 ea       	ldi	r24, 0xA0	; 160
   2be76:	9d e6       	ldi	r25, 0x6D	; 109
   2be78:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
    gcode_M114();
   2be7c:	0e 94 ce 77 	call	0xef9c	; 0xef9c <gcode_M114()>
void restore_print_from_eeprom(bool mbl_was_active) {
    int feedrate_rec;
    int feedmultiply_rec;
    uint8_t fan_speed_rec;

    fan_speed_rec = eeprom_read_byte((uint8_t*)EEPROM_UVLO_FAN_SPEED);
   2be80:	88 e8       	ldi	r24, 0x88	; 136
   2be82:	9f e0       	ldi	r25, 0x0F	; 15
   2be84:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2be88:	88 2e       	mov	r8, r24
    feedrate_rec = eeprom_read_word((uint16_t*)EEPROM_UVLO_FEEDRATE);
   2be8a:	89 e8       	ldi	r24, 0x89	; 137
   2be8c:	9f e0       	ldi	r25, 0x0F	; 15
   2be8e:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2be92:	8c 01       	movw	r16, r24
    feedmultiply_rec = eeprom_read_word((uint16_t*)EEPROM_UVLO_FEEDMULTIPLY);
   2be94:	85 e3       	ldi	r24, 0x35	; 53
   2be96:	9d e0       	ldi	r25, 0x0D	; 13
   2be98:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   2be9c:	f8 2e       	mov	r15, r24
   2be9e:	e9 2e       	mov	r14, r25
    SERIAL_ECHOPGM("Feedrate:");
   2bea0:	81 e2       	ldi	r24, 0x21	; 33
   2bea2:	9f e8       	ldi	r25, 0x8F	; 143
   2bea4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   2bea8:	b8 01       	movw	r22, r16
   2beaa:	01 2e       	mov	r0, r17
   2beac:	00 0c       	add	r0, r0
   2beae:	88 0b       	sbc	r24, r24
   2beb0:	99 0b       	sbc	r25, r25
   2beb2:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
    MYSERIAL.print(feedrate_rec);
    SERIAL_ECHOPGM(", feedmultiply:");
   2beb6:	81 e1       	ldi	r24, 0x11	; 17
   2beb8:	9f e8       	ldi	r25, 0x8F	; 143
   2beba:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    MYSERIAL.println(feedmultiply_rec);
   2bebe:	8f 2d       	mov	r24, r15
   2bec0:	9e 2d       	mov	r25, r14
   2bec2:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>

    if (saved_printing_type == PowerPanic::PRINT_TYPE_SD)
   2bec6:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
   2beca:	81 11       	cpse	r24, r1
   2becc:	02 c0       	rjmp	.+4      	; 0x2bed2 <recover_print(unsigned char)+0x44e>
    { // M23
        restore_file_from_sd();
   2bece:	0e 94 6a 88 	call	0x110d4	; 0x110d4 <restore_file_from_sd()>
    }

    // Move to the XY print position in logical coordinates, where the print has been killed, but
    // without shifting Z along the way. This requires performing the move without mbl.
    float pos_x = eeprom_read_float((float*)(EEPROM_UVLO_CURRENT_POSITION + 0));
   2bed2:	8d e9       	ldi	r24, 0x9D	; 157
   2bed4:	9f e0       	ldi	r25, 0x0F	; 15
   2bed6:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2beda:	c6 2e       	mov	r12, r22
   2bedc:	b7 2e       	mov	r11, r23
   2bede:	a8 2e       	mov	r10, r24
   2bee0:	99 2e       	mov	r9, r25
    float pos_y = eeprom_read_float((float*)(EEPROM_UVLO_CURRENT_POSITION + 4));
   2bee2:	81 ea       	ldi	r24, 0xA1	; 161
   2bee4:	9f e0       	ldi	r25, 0x0F	; 15
   2bee6:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2beea:	76 2e       	mov	r7, r22
   2beec:	67 2e       	mov	r6, r23
   2beee:	58 2e       	mov	r5, r24
   2bef0:	49 2e       	mov	r4, r25
    if (pos_x != X_COORD_INVALID) {
   2bef2:	20 e0       	ldi	r18, 0x00	; 0
   2bef4:	30 e0       	ldi	r19, 0x00	; 0
   2bef6:	40 e8       	ldi	r20, 0x80	; 128
   2bef8:	5f eb       	ldi	r21, 0xBF	; 191
   2befa:	6c 2d       	mov	r22, r12
   2befc:	7b 2d       	mov	r23, r11
   2befe:	8a 2d       	mov	r24, r10
   2bf00:	99 2d       	mov	r25, r9
   2bf02:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2bf06:	88 23       	and	r24, r24
   2bf08:	99 f0       	breq	.+38     	; 0x2bf30 <recover_print(unsigned char)+0x4ac>
        enquecommandf_P(PSTR("G1 X%-.3f Y%-.3f F3000"), pos_x, pos_y);
   2bf0a:	4f 92       	push	r4
   2bf0c:	5f 92       	push	r5
   2bf0e:	6f 92       	push	r6
   2bf10:	7f 92       	push	r7
   2bf12:	9f 92       	push	r9
   2bf14:	af 92       	push	r10
   2bf16:	bf 92       	push	r11
   2bf18:	cf 92       	push	r12
   2bf1a:	8a ef       	ldi	r24, 0xFA	; 250
   2bf1c:	9e e8       	ldi	r25, 0x8E	; 142
   2bf1e:	9f 93       	push	r25
   2bf20:	8f 93       	push	r24
   2bf22:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   2bf26:	0f b6       	in	r0, 0x3f	; 63
   2bf28:	f8 94       	cli
   2bf2a:	de bf       	out	0x3e, r29	; 62
   2bf2c:	0f be       	out	0x3f, r0	; 63
   2bf2e:	cd bf       	out	0x3d, r28	; 61
    }

    // Enable MBL and switch to logical positioning
    if (mbl_was_active)
   2bf30:	dd 20       	and	r13, r13
   2bf32:	29 f0       	breq	.+10     	; 0x2bf3e <recover_print(unsigned char)+0x4ba>
        enquecommand_P(PSTR("PRUSA MBL V1"));
   2bf34:	61 e0       	ldi	r22, 0x01	; 1
   2bf36:	8d ee       	ldi	r24, 0xED	; 237
   2bf38:	9e e8       	ldi	r25, 0x8E	; 142
   2bf3a:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>

    // Move the Z axis down to the print, in logical coordinates.
    enquecommandf_P(PSTR("G1 Z%-.3f"), eeprom_read_float((float*)(EEPROM_UVLO_CURRENT_POSITION_Z)));
   2bf3e:	8d e8       	ldi	r24, 0x8D	; 141
   2bf40:	9f e0       	ldi	r25, 0x0F	; 15
   2bf42:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bf46:	9f 93       	push	r25
   2bf48:	8f 93       	push	r24
   2bf4a:	7f 93       	push	r23
   2bf4c:	6f 93       	push	r22
   2bf4e:	83 ee       	ldi	r24, 0xE3	; 227
   2bf50:	9e e8       	ldi	r25, 0x8E	; 142
   2bf52:	9f 93       	push	r25
   2bf54:	8f 93       	push	r24
   2bf56:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>

    // Restore acceleration settings
    float acceleration = eeprom_read_float((float*)(EEPROM_UVLO_ACCELL));
   2bf5a:	81 e1       	ldi	r24, 0x11	; 17
   2bf5c:	9d e0       	ldi	r25, 0x0D	; 13
   2bf5e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bf62:	d6 2e       	mov	r13, r22
   2bf64:	c7 2e       	mov	r12, r23
   2bf66:	b8 2e       	mov	r11, r24
   2bf68:	a9 2e       	mov	r10, r25
    float retract_acceleration = eeprom_read_float((float*)(EEPROM_UVLO_RETRACT_ACCELL));
   2bf6a:	8d e0       	ldi	r24, 0x0D	; 13
   2bf6c:	9d e0       	ldi	r25, 0x0D	; 13
   2bf6e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2bf72:	96 2e       	mov	r9, r22
   2bf74:	77 2e       	mov	r7, r23
   2bf76:	68 2e       	mov	r6, r24
   2bf78:	59 2e       	mov	r5, r25
    float travel_acceleration = eeprom_read_float((float*)(EEPROM_UVLO_TRAVEL_ACCELL));
   2bf7a:	89 e0       	ldi	r24, 0x09	; 9
   2bf7c:	9d e0       	ldi	r25, 0x0D	; 13
   2bf7e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
    // accelerations are usually ordinary numbers, no need to keep extensive amount of decimal places
    enquecommandf_P(PSTR("M204 P%-.1f R%-.1f T%-.1f"), acceleration, retract_acceleration, travel_acceleration);
   2bf82:	9f 93       	push	r25
   2bf84:	8f 93       	push	r24
   2bf86:	7f 93       	push	r23
   2bf88:	6f 93       	push	r22
   2bf8a:	5f 92       	push	r5
   2bf8c:	6f 92       	push	r6
   2bf8e:	7f 92       	push	r7
   2bf90:	9f 92       	push	r9
   2bf92:	af 92       	push	r10
   2bf94:	bf 92       	push	r11
   2bf96:	cf 92       	push	r12
   2bf98:	df 92       	push	r13
   2bf9a:	89 ec       	ldi	r24, 0xC9	; 201
   2bf9c:	9e e8       	ldi	r25, 0x8E	; 142
   2bf9e:	9f 93       	push	r25
   2bfa0:	8f 93       	push	r24
   2bfa2:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>

    // Unretract.
    enquecommandf_P(G1_E_F2700, default_retraction);
   2bfa6:	8f e3       	ldi	r24, 0x3F	; 63
   2bfa8:	8f 93       	push	r24
   2bfaa:	80 e8       	ldi	r24, 0x80	; 128
   2bfac:	8f 93       	push	r24
   2bfae:	1f 92       	push	r1
   2bfb0:	1f 92       	push	r1
   2bfb2:	86 eb       	ldi	r24, 0xB6	; 182
   2bfb4:	9d e6       	ldi	r25, 0x6D	; 109
   2bfb6:	9f 93       	push	r25
   2bfb8:	8f 93       	push	r24
   2bfba:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    // Recover final E axis position and mode
    float pos_e = eeprom_read_float((float*)(EEPROM_UVLO_CURRENT_POSITION_E));
   2bfbe:	8e e6       	ldi	r24, 0x6E	; 110
   2bfc0:	9f e0       	ldi	r25, 0x0F	; 15
   2bfc2:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
    enquecommandf_P(PSTR("G92 E%-.3f"), pos_e);
   2bfc6:	9f 93       	push	r25
   2bfc8:	8f 93       	push	r24
   2bfca:	7f 93       	push	r23
   2bfcc:	6f 93       	push	r22
   2bfce:	8e eb       	ldi	r24, 0xBE	; 190
   2bfd0:	9e e8       	ldi	r25, 0x8E	; 142
   2bfd2:	9f 93       	push	r25
   2bfd4:	8f 93       	push	r24
   2bfd6:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    if (eeprom_read_byte((uint8_t*)EEPROM_UVLO_E_ABS))
   2bfda:	0f b6       	in	r0, 0x3f	; 63
   2bfdc:	f8 94       	cli
   2bfde:	de bf       	out	0x3e, r29	; 62
   2bfe0:	0f be       	out	0x3f, r0	; 63
   2bfe2:	cd bf       	out	0x3d, r28	; 61
   2bfe4:	82 e7       	ldi	r24, 0x72	; 114
   2bfe6:	9f e0       	ldi	r25, 0x0F	; 15
   2bfe8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2bfec:	88 23       	and	r24, r24
   2bfee:	29 f0       	breq	.+10     	; 0x2bffa <recover_print(unsigned char)+0x576>
        enquecommand_P(PSTR("M82")); //E axis abslute mode
   2bff0:	61 e0       	ldi	r22, 0x01	; 1
   2bff2:	8a eb       	ldi	r24, 0xBA	; 186
   2bff4:	9e e8       	ldi	r25, 0x8E	; 142
   2bff6:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    // Set the feedrates saved at the power panic.
    enquecommandf_P(PSTR("G1 F%d"), feedrate_rec);
   2bffa:	1f 93       	push	r17
   2bffc:	0f 93       	push	r16
   2bffe:	83 eb       	ldi	r24, 0xB3	; 179
   2c000:	9e e8       	ldi	r25, 0x8E	; 142
   2c002:	9f 93       	push	r25
   2c004:	8f 93       	push	r24
   2c006:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    enquecommandf_P(MSG_M220, feedmultiply_rec);
   2c00a:	ef 92       	push	r14
   2c00c:	ff 92       	push	r15
   2c00e:	82 e8       	ldi	r24, 0x82	; 130
   2c010:	9d e6       	ldi	r25, 0x6D	; 109
   2c012:	9f 93       	push	r25
   2c014:	8f 93       	push	r24
   2c016:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
    // Set the fan speed saved at the power panic.
    enquecommandf_P(PSTR("M106 S%u"), fan_speed_rec);
   2c01a:	1f 92       	push	r1
   2c01c:	8f 92       	push	r8
   2c01e:	8a ea       	ldi	r24, 0xAA	; 170
   2c020:	9e e8       	ldi	r25, 0x8E	; 142
   2c022:	9f 93       	push	r25
   2c024:	8f 93       	push	r24
   2c026:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>

    // SD: Position in file, USB: g-code line number
    uint32_t position = eeprom_read_dword((uint32_t*)(EEPROM_FILE_POSITION));
   2c02a:	81 e9       	ldi	r24, 0x91	; 145
   2c02c:	9f e0       	ldi	r25, 0x0F	; 15
   2c02e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
    if (saved_printing_type == PowerPanic::PRINT_TYPE_SD)
   2c032:	20 91 6a 02 	lds	r18, 0x026A	; 0x80026a <saved_printing_type>
   2c036:	0f b6       	in	r0, 0x3f	; 63
   2c038:	f8 94       	cli
   2c03a:	de bf       	out	0x3e, r29	; 62
   2c03c:	0f be       	out	0x3f, r0	; 63
   2c03e:	cd bf       	out	0x3d, r28	; 61
   2c040:	21 11       	cpse	r18, r1
   2c042:	33 c0       	rjmp	.+102    	; 0x2c0aa <recover_print(unsigned char)+0x626>
    {
        // Set a position in the file.
        enquecommandf_P(PSTR("M26 S%lu"), position);
   2c044:	9f 93       	push	r25
   2c046:	8f 93       	push	r24
   2c048:	7f 93       	push	r23
   2c04a:	6f 93       	push	r22
   2c04c:	81 ea       	ldi	r24, 0xA1	; 161
   2c04e:	9e e8       	ldi	r25, 0x8E	; 142
    }
    else if (saved_printing_type == PowerPanic::PRINT_TYPE_HOST)
    {
        // Set line number
        enquecommandf_P(PSTR("M110 N%lu"), position);
   2c050:	9f 93       	push	r25
   2c052:	8f 93       	push	r24
   2c054:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
   2c058:	0f 90       	pop	r0
   2c05a:	0f 90       	pop	r0
   2c05c:	0f 90       	pop	r0
   2c05e:	0f 90       	pop	r0
   2c060:	0f 90       	pop	r0
   2c062:	0f 90       	pop	r0
    }

    enquecommand_P(PSTR("G4 S0"));
   2c064:	61 e0       	ldi	r22, 0x01	; 1
   2c066:	81 e9       	ldi	r24, 0x91	; 145
   2c068:	9e e8       	ldi	r25, 0x8E	; 142
   2c06a:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    enquecommand_P(PSTR("PRUSA uvlo"));
   2c06e:	61 e0       	ldi	r22, 0x01	; 1
   2c070:	86 e8       	ldi	r24, 0x86	; 134
   2c072:	9e e8       	ldi	r25, 0x8E	; 142
   2c074:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
    puts_P(_N("Temperature Restored\n"));
    gcode_M114();

    // Restart the print.
    restore_print_from_eeprom(mbl_was_active);
    puts_P(_N("Done reading EEPROM\n"));
   2c078:	8b e8       	ldi	r24, 0x8B	; 139
   2c07a:	9d e6       	ldi	r25, 0x6D	; 109
   2c07c:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
    gcode_M114();
   2c080:	0e 94 ce 77 	call	0xef9c	; 0xef9c <gcode_M114()>
}
   2c084:	0f 90       	pop	r0
   2c086:	0f 90       	pop	r0
   2c088:	df 91       	pop	r29
   2c08a:	cf 91       	pop	r28
   2c08c:	1f 91       	pop	r17
   2c08e:	0f 91       	pop	r16
   2c090:	ff 90       	pop	r15
   2c092:	ef 90       	pop	r14
   2c094:	df 90       	pop	r13
   2c096:	cf 90       	pop	r12
   2c098:	bf 90       	pop	r11
   2c09a:	af 90       	pop	r10
   2c09c:	9f 90       	pop	r9
   2c09e:	8f 90       	pop	r8
   2c0a0:	7f 90       	pop	r7
   2c0a2:	6f 90       	pop	r6
   2c0a4:	5f 90       	pop	r5
   2c0a6:	4f 90       	pop	r4
   2c0a8:	08 95       	ret
    if (saved_printing_type == PowerPanic::PRINT_TYPE_SD)
    {
        // Set a position in the file.
        enquecommandf_P(PSTR("M26 S%lu"), position);
    }
    else if (saved_printing_type == PowerPanic::PRINT_TYPE_HOST)
   2c0aa:	21 30       	cpi	r18, 0x01	; 1
   2c0ac:	d9 f6       	brne	.-74     	; 0x2c064 <recover_print(unsigned char)+0x5e0>
    {
        // Set line number
        enquecommandf_P(PSTR("M110 N%lu"), position);
   2c0ae:	9f 93       	push	r25
   2c0b0:	8f 93       	push	r24
   2c0b2:	7f 93       	push	r23
   2c0b4:	6f 93       	push	r22
   2c0b6:	87 e9       	ldi	r24, 0x97	; 151
   2c0b8:	9e e8       	ldi	r25, 0x8E	; 142
   2c0ba:	ca cf       	rjmp	.-108    	; 0x2c050 <recover_print(unsigned char)+0x5cc>

0002c0bc <uvlo_drain_reset() [clone .lto_priv.428]>:
   2c0bc:	88 e1       	ldi	r24, 0x18	; 24
   2c0be:	9e e0       	ldi	r25, 0x0E	; 14
   2c0c0:	0f b6       	in	r0, 0x3f	; 63
   2c0c2:	f8 94       	cli
   2c0c4:	a8 95       	wdr
   2c0c6:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   2c0ca:	0f be       	out	0x3f, r0	; 63
   2c0cc:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
static void restore_print_from_eeprom(bool mbl_was_active);

static void uvlo_drain_reset() {
    // burn all that residual power
    wdt_enable(WDTO_1S);
    WRITE(BEEPER,HIGH);
   2c0d0:	9f b7       	in	r25, 0x3f	; 63
   2c0d2:	f8 94       	cli
   2c0d4:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2c0d8:	84 60       	ori	r24, 0x04	; 4
   2c0da:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2c0de:	9f bf       	out	0x3f, r25	; 63
    lcd_clear();
   2c0e0:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    lcd_puts_at_P(0, 1, MSG_POWERPANIC_DETECTED);
   2c0e4:	43 e2       	ldi	r20, 0x23	; 35
   2c0e6:	5d e6       	ldi	r21, 0x6D	; 109
   2c0e8:	61 e0       	ldi	r22, 0x01	; 1
   2c0ea:	80 e0       	ldi	r24, 0x00	; 0
   2c0ec:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
   2c0f0:	ff cf       	rjmp	.-2      	; 0x2c0f0 <uvlo_drain_reset() [clone .lto_priv.428]+0x34>

0002c0f2 <__vector_5>:
        SERIAL_ECHOLNRPGM(MSG_INT4);
        uvlo_drain_reset();
    }
}

ISR(INT4_vect) {
   2c0f2:	1f 92       	push	r1
   2c0f4:	0f 92       	push	r0
   2c0f6:	0f b6       	in	r0, 0x3f	; 63
   2c0f8:	0f 92       	push	r0
   2c0fa:	11 24       	eor	r1, r1
   2c0fc:	0b b6       	in	r0, 0x3b	; 59
   2c0fe:	0f 92       	push	r0
   2c100:	8f 92       	push	r8
   2c102:	9f 92       	push	r9
   2c104:	af 92       	push	r10
   2c106:	bf 92       	push	r11
   2c108:	cf 92       	push	r12
   2c10a:	df 92       	push	r13
   2c10c:	ef 92       	push	r14
   2c10e:	ff 92       	push	r15
   2c110:	0f 93       	push	r16
   2c112:	1f 93       	push	r17
   2c114:	2f 93       	push	r18
   2c116:	3f 93       	push	r19
   2c118:	4f 93       	push	r20
   2c11a:	5f 93       	push	r21
   2c11c:	6f 93       	push	r22
   2c11e:	7f 93       	push	r23
   2c120:	8f 93       	push	r24
   2c122:	9f 93       	push	r25
   2c124:	af 93       	push	r26
   2c126:	bf 93       	push	r27
   2c128:	cf 93       	push	r28
   2c12a:	df 93       	push	r29
   2c12c:	ef 93       	push	r30
   2c12e:	ff 93       	push	r31
    EIMSK &= ~(1 << 4); //disable INT4 interrupt to make sure that this code will be executed just once
   2c130:	ec 98       	cbi	0x1d, 4	; 29
    SERIAL_ECHOLNRPGM(MSG_INT4);
   2c132:	8c e2       	ldi	r24, 0x2C	; 44
   2c134:	9d e8       	ldi	r25, 0x8D	; 141
   2c136:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    if (eeprom_read_byte((uint8_t*)EEPROM_UVLO) == PowerPanic::NO_PENDING_RECOVERY)
   2c13a:	85 ea       	ldi	r24, 0xA5	; 165
   2c13c:	9f e0       	ldi	r25, 0x0F	; 15
   2c13e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2c142:	18 2f       	mov	r17, r24
   2c144:	81 11       	cpse	r24, r1
   2c146:	de c2       	rjmp	.+1468   	; 0x2c704 <__vector_5+0x612>
    {
        if(printer_active()) {
   2c148:	0e 94 68 67 	call	0xced0	; 0xced0 <printer_active()>
   2c14c:	88 23       	and	r24, r24
   2c14e:	09 f4       	brne	.+2      	; 0x2c152 <__vector_5+0x60>
   2c150:	a9 c3       	rjmp	.+1874   	; 0x2c8a4 <__vector_5+0x7b2>
    while(1);
}


void uvlo_() {
    unsigned long time_start = _millis();
   2c152:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2c156:	6b 01       	movw	r12, r22
   2c158:	7c 01       	movw	r14, r24

    // True if a print is already saved to RAM
    const bool print_saved_in_ram = saved_printing && (saved_printing_type != PowerPanic::PRINT_TYPE_NONE);
   2c15a:	c0 91 a9 0d 	lds	r28, 0x0DA9	; 0x800da9 <saved_printing>
   2c15e:	cc 23       	and	r28, r28
   2c160:	31 f0       	breq	.+12     	; 0x2c16e <__vector_5+0x7c>
   2c162:	c1 e0       	ldi	r28, 0x01	; 1
   2c164:	80 91 6a 02 	lds	r24, 0x026A	; 0x80026a <saved_printing_type>
   2c168:	82 30       	cpi	r24, 0x02	; 2
   2c16a:	09 f4       	brne	.+2      	; 0x2c16e <__vector_5+0x7c>
   2c16c:	c0 e0       	ldi	r28, 0x00	; 0
    const bool pos_invalid = mesh_bed_leveling_flag || homing_flag;
   2c16e:	d0 91 a8 0d 	lds	r29, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   2c172:	d1 11       	cpse	r29, r1
   2c174:	02 c0       	rjmp	.+4      	; 0x2c17a <__vector_5+0x88>
   2c176:	d0 91 a7 0d 	lds	r29, 0x0DA7	; 0x800da7 <homing_flag>

    // Conserve as much power as soon as possible
    // Turn off the LCD backlight
#ifdef LCD_BL_PIN
    backlightMode = BACKLIGHT_MODE_DIM;
   2c17a:	10 92 4f 02 	sts	0x024F, r1	; 0x80024f <backlightMode>
    backlightLevel_LOW = 0;
   2c17e:	10 92 00 04 	sts	0x0400, r1	; 0x800400 <backlightLevel_LOW>
    backlight_update();
   2c182:	0e 94 95 89 	call	0x1132a	; 0x1132a <backlight_update()>
#endif //LCD_BL_PIN

    // Disable X and Y motors to conserve power
    disable_x();
   2c186:	17 9a       	sbi	0x02, 7	; 2
   2c188:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
    disable_y();
   2c18c:	16 9a       	sbi	0x02, 6	; 2
   2c18e:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>

    // Minimise Z and E motor currents (Hold and Run)
#ifdef TMC2130
    currents[Z_AXIS].setiHold(20);
   2c192:	64 e1       	ldi	r22, 0x14	; 20
   2c194:	83 e6       	ldi	r24, 0x63	; 99
   2c196:	92 e0       	ldi	r25, 0x02	; 2
   2c198:	0e 94 85 67 	call	0xcf0a	; 0xcf0a <MotorCurrents::setiHold(unsigned char)>
    currents[Z_AXIS].setiRun(20);
   2c19c:	64 e1       	ldi	r22, 0x14	; 20
   2c19e:	83 e6       	ldi	r24, 0x63	; 99
   2c1a0:	92 e0       	ldi	r25, 0x02	; 2
   2c1a2:	0e 94 8d 67 	call	0xcf1a	; 0xcf1a <MotorCurrents::setiRun(unsigned char)>
    tmc2130_setup_chopper(Z_AXIS, tmc2130_mres[Z_AXIS]);
   2c1a6:	50 e0       	ldi	r21, 0x00	; 0
   2c1a8:	40 e0       	ldi	r20, 0x00	; 0
   2c1aa:	60 91 f7 04 	lds	r22, 0x04F7	; 0x8004f7 <tmc2130_mres+0x2>
   2c1ae:	82 e0       	ldi	r24, 0x02	; 2
   2c1b0:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
    currents[E_AXIS].setiHold(20);
   2c1b4:	64 e1       	ldi	r22, 0x14	; 20
   2c1b6:	86 e6       	ldi	r24, 0x66	; 102
   2c1b8:	92 e0       	ldi	r25, 0x02	; 2
   2c1ba:	0e 94 85 67 	call	0xcf0a	; 0xcf0a <MotorCurrents::setiHold(unsigned char)>
    currents[E_AXIS].setiRun(20);
   2c1be:	64 e1       	ldi	r22, 0x14	; 20
   2c1c0:	86 e6       	ldi	r24, 0x66	; 102
   2c1c2:	92 e0       	ldi	r25, 0x02	; 2
   2c1c4:	0e 94 8d 67 	call	0xcf1a	; 0xcf1a <MotorCurrents::setiRun(unsigned char)>
    tmc2130_setup_chopper(E_AXIS, tmc2130_mres[E_AXIS]);
   2c1c8:	50 e0       	ldi	r21, 0x00	; 0
   2c1ca:	40 e0       	ldi	r20, 0x00	; 0
   2c1cc:	60 91 f8 04 	lds	r22, 0x04F8	; 0x8004f8 <tmc2130_mres+0x3>
   2c1d0:	83 e0       	ldi	r24, 0x03	; 3
   2c1d2:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
#endif //TMC2130

    if (!print_saved_in_ram && !isPartialBackupAvailable)
   2c1d6:	c1 11       	cpse	r28, r1
   2c1d8:	1b c0       	rjmp	.+54     	; 0x2c210 <__vector_5+0x11e>
   2c1da:	80 91 a2 06 	lds	r24, 0x06A2	; 0x8006a2 <isPartialBackupAvailable>
   2c1de:	81 11       	cpse	r24, r1
   2c1e0:	17 c0       	rjmp	.+46     	; 0x2c210 <__vector_5+0x11e>
    {
        saved_bed_temperature = target_temperature_bed;
   2c1e2:	80 91 72 06 	lds	r24, 0x0672	; 0x800672 <target_temperature_bed>
   2c1e6:	80 93 ae 05 	sts	0x05AE, r24	; 0x8005ae <saved_bed_temperature>
        saved_extruder_temperature = target_temperature[active_extruder];
   2c1ea:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   2c1ee:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2c1f2:	90 93 ad 05 	sts	0x05AD, r25	; 0x8005ad <saved_extruder_temperature+0x1>
   2c1f6:	80 93 ac 05 	sts	0x05AC, r24	; 0x8005ac <saved_extruder_temperature>
        saved_extruder_relative_mode = axis_relative_modes & E_AXIS_MASK;
   2c1fa:	80 91 e5 03 	lds	r24, 0x03E5	; 0x8003e5 <axis_relative_modes>
   2c1fe:	83 fb       	bst	r24, 3
   2c200:	88 27       	eor	r24, r24
   2c202:	80 f9       	bld	r24, 0
   2c204:	80 93 64 05 	sts	0x0564, r24	; 0x800564 <saved_extruder_relative_mode>
        saved_fan_speed = fanSpeed;
   2c208:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
   2c20c:	80 93 ab 05 	sts	0x05AB, r24	; 0x8005ab <saved_fan_speed>
    }

    // Stop all heaters before continuing
    disable_heater();
   2c210:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>

    // Fetch data not included in a partial back-up
    if (!print_saved_in_ram) {
   2c214:	c1 11       	cpse	r28, r1
   2c216:	04 c0       	rjmp	.+8      	; 0x2c220 <__vector_5+0x12e>
        // Calculate the file position, from which to resume this print.
        save_print_file_state();
   2c218:	0e 94 c1 64 	call	0xc982	; 0xc982 <save_print_file_state()>

        // save the global state at planning time
        save_planner_global_state();
   2c21c:	0e 94 77 64 	call	0xc8ee	; 0xc8ee <save_planner_global_state()>
    }

    // From this point on and up to the print recovery, Z should not move during X/Y travels and
    // should be controlled precisely. Reset the MBL status before planner_abort_hard in order to
    // get the physical Z for further manipulation.
    bool mbl_was_active = mbl.active;
   2c220:	00 91 c2 13 	lds	r16, 0x13C2	; 0x8013c2 <mbl>
    mbl.active = false;
   2c224:	10 92 c2 13 	sts	0x13C2, r1	; 0x8013c2 <mbl>

    // After this call, the planner queue is emptied and the current_position is set to a current logical coordinate.
    // The logical coordinate will likely differ from the machine coordinate if the skew calibration and mesh bed leveling
    // are in action.
    planner_abort_hard();
   2c228:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>

    // When there is no position already saved, then we must grab whatever the current position is.
    // This is most likely a position where the printer is in the middle of a G-code move
    if (!print_saved_in_ram && !isPartialBackupAvailable)
   2c22c:	c1 11       	cpse	r28, r1
   2c22e:	1b c0       	rjmp	.+54     	; 0x2c266 <__vector_5+0x174>
   2c230:	80 91 a2 06 	lds	r24, 0x06A2	; 0x8006a2 <isPartialBackupAvailable>
   2c234:	81 11       	cpse	r24, r1
   2c236:	17 c0       	rjmp	.+46     	; 0x2c266 <__vector_5+0x174>
    {
        memcpy(saved_pos, current_position, sizeof(saved_pos));
   2c238:	80 e1       	ldi	r24, 0x10	; 16
   2c23a:	e2 e9       	ldi	r30, 0x92	; 146
   2c23c:	f6 e0       	ldi	r31, 0x06	; 6
   2c23e:	a3 e7       	ldi	r26, 0x73	; 115
   2c240:	b2 e0       	ldi	r27, 0x02	; 2
   2c242:	01 90       	ld	r0, Z+
   2c244:	0d 92       	st	X+, r0
   2c246:	8a 95       	dec	r24
   2c248:	e1 f7       	brne	.-8      	; 0x2c242 <__vector_5+0x150>
        if (pos_invalid) saved_pos[X_AXIS] = X_COORD_INVALID;
   2c24a:	dd 23       	and	r29, r29
   2c24c:	61 f0       	breq	.+24     	; 0x2c266 <__vector_5+0x174>
   2c24e:	80 e0       	ldi	r24, 0x00	; 0
   2c250:	90 e0       	ldi	r25, 0x00	; 0
   2c252:	a0 e8       	ldi	r26, 0x80	; 128
   2c254:	bf eb       	ldi	r27, 0xBF	; 191
   2c256:	80 93 73 02 	sts	0x0273, r24	; 0x800273 <saved_pos>
   2c25a:	90 93 74 02 	sts	0x0274, r25	; 0x800274 <saved_pos+0x1>
   2c25e:	a0 93 75 02 	sts	0x0275, r26	; 0x800275 <saved_pos+0x2>
   2c262:	b0 93 76 02 	sts	0x0276, r27	; 0x800276 <saved_pos+0x3>
    }

    // Store the print logical Z position, which we need to recover (a slight error here would be
    // recovered on the next Gcode instruction, while a physical location error would not)
    float logical_z = saved_pos[Z_AXIS];
   2c266:	80 90 7b 02 	lds	r8, 0x027B	; 0x80027b <saved_pos+0x8>
   2c26a:	90 90 7c 02 	lds	r9, 0x027C	; 0x80027c <saved_pos+0x9>
   2c26e:	a0 90 7d 02 	lds	r10, 0x027D	; 0x80027d <saved_pos+0xa>
   2c272:	b0 90 7e 02 	lds	r11, 0x027E	; 0x80027e <saved_pos+0xb>
    if(mbl_was_active) {
   2c276:	00 23       	and	r16, r16
   2c278:	d1 f0       	breq	.+52     	; 0x2c2ae <__vector_5+0x1bc>
        // Mesh bed leveling was being actively applied to the Z-position. Revert the
        // mesh bed leveling offset value.
        logical_z -= mbl.get_z(saved_pos[X_AXIS], saved_pos[Y_AXIS]);
   2c27a:	20 91 77 02 	lds	r18, 0x0277	; 0x800277 <saved_pos+0x4>
   2c27e:	30 91 78 02 	lds	r19, 0x0278	; 0x800278 <saved_pos+0x5>
   2c282:	40 91 79 02 	lds	r20, 0x0279	; 0x800279 <saved_pos+0x6>
   2c286:	50 91 7a 02 	lds	r21, 0x027A	; 0x80027a <saved_pos+0x7>
   2c28a:	60 91 73 02 	lds	r22, 0x0273	; 0x800273 <saved_pos>
   2c28e:	70 91 74 02 	lds	r23, 0x0274	; 0x800274 <saved_pos+0x1>
   2c292:	80 91 75 02 	lds	r24, 0x0275	; 0x800275 <saved_pos+0x2>
   2c296:	90 91 76 02 	lds	r25, 0x0276	; 0x800276 <saved_pos+0x3>
   2c29a:	0f 94 f0 a1 	call	0x343e0	; 0x343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>
   2c29e:	9b 01       	movw	r18, r22
   2c2a0:	ac 01       	movw	r20, r24
   2c2a2:	c5 01       	movw	r24, r10
   2c2a4:	b4 01       	movw	r22, r8
   2c2a6:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2c2aa:	4b 01       	movw	r8, r22
   2c2ac:	5c 01       	movw	r10, r24
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c2ae:	b5 01       	movw	r22, r10
   2c2b0:	a4 01       	movw	r20, r8
   2c2b2:	8d e8       	ldi	r24, 0x8D	; 141
   2c2b4:	9f e0       	ldi	r25, 0x0F	; 15
   2c2b6:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c2ba:	40 91 7f 02 	lds	r20, 0x027F	; 0x80027f <saved_pos+0xc>
   2c2be:	50 91 80 02 	lds	r21, 0x0280	; 0x800280 <saved_pos+0xd>
   2c2c2:	60 91 81 02 	lds	r22, 0x0281	; 0x800281 <saved_pos+0xe>
   2c2c6:	70 91 82 02 	lds	r23, 0x0282	; 0x800282 <saved_pos+0xf>
   2c2ca:	8e e6       	ldi	r24, 0x6E	; 110
   2c2cc:	9f e0       	ldi	r25, 0x0F	; 15
   2c2ce:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
    }
    eeprom_update_float_notify((float*)EEPROM_UVLO_CURRENT_POSITION_Z, logical_z);

    // Store the print E position before we lose track
    eeprom_update_float_notify((float*)(EEPROM_UVLO_CURRENT_POSITION_E), saved_pos[E_AXIS]);
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO_E_ABS, !saved_extruder_relative_mode);
   2c2d2:	60 91 64 05 	lds	r22, 0x0564	; 0x800564 <saved_extruder_relative_mode>
   2c2d6:	c1 e0       	ldi	r28, 0x01	; 1
   2c2d8:	6c 27       	eor	r22, r28
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2c2da:	82 e7       	ldi	r24, 0x72	; 114
   2c2dc:	9f e0       	ldi	r25, 0x0F	; 15
   2c2de:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

    // Clean the input command queue, inhibit serial processing using saved_printing
    cmdqueue_reset();
   2c2e2:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
    card.sdprinting = false;
   2c2e6:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
    saved_printing = true;
   2c2ea:	c0 93 a9 0d 	sts	0x0DA9, r28	; 0x800da9 <saved_printing>

    // Enable stepper driver interrupt to move Z axis. This should be fine as the planner and
    // command queues are empty, SD card printing is disabled, usb is inhibited.
    planner_aborted = false;
   2c2ee:	10 92 ac 0d 	sts	0x0DAC, r1	; 0x800dac <planner_aborted>
    sei();
   2c2f2:	78 94       	sei

    // Retract
    current_position[E_AXIS] -= default_retraction;
   2c2f4:	20 e0       	ldi	r18, 0x00	; 0
   2c2f6:	30 e0       	ldi	r19, 0x00	; 0
   2c2f8:	40 e8       	ldi	r20, 0x80	; 128
   2c2fa:	5f e3       	ldi	r21, 0x3F	; 63
   2c2fc:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   2c300:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   2c304:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   2c308:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   2c30c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2c310:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   2c314:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   2c318:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   2c31c:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
    plan_buffer_line_curposXYZE(95);
   2c320:	60 e0       	ldi	r22, 0x00	; 0
   2c322:	70 e0       	ldi	r23, 0x00	; 0
   2c324:	8e eb       	ldi	r24, 0xBE	; 190
   2c326:	92 e4       	ldi	r25, 0x42	; 66
   2c328:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   2c32c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    disable_e0();
   2c330:	14 9a       	sbi	0x02, 4	; 2
	return stat;
}

uint16_t tmc2130_get_res(uint8_t axis)
{
	return tmc2130_mres2usteps(tmc2130_mres[axis]);
   2c332:	80 91 f7 04 	lds	r24, 0x04F7	; 0x8004f7 <tmc2130_mres+0x2>
   2c336:	c0 e0       	ldi	r28, 0x00	; 0
   2c338:	d1 e0       	ldi	r29, 0x01	; 1
   2c33a:	02 c0       	rjmp	.+4      	; 0x2c340 <__vector_5+0x24e>
   2c33c:	d6 95       	lsr	r29
   2c33e:	c7 95       	ror	r28
   2c340:	8a 95       	dec	r24
   2c342:	e2 f7       	brpl	.-8      	; 0x2c33c <__vector_5+0x24a>
    // Read out the current Z motor microstep counter to move the axis up towards
    // a full step before powering off. NOTE: we need to ensure to schedule more
    // than "dropsegments" steps in order to move (this is always the case here
    // due to UVLO_Z_AXIS_SHIFT being used)
    uint16_t z_res = tmc2130_get_res(Z_AXIS);
    uint16_t z_microsteps = tmc2130_rd_MSCNT(Z_AXIS);
   2c344:	82 e0       	ldi	r24, 0x02	; 2
   2c346:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
    current_position[Z_AXIS] += float(1024 - z_microsteps)
   2c34a:	60 e0       	ldi	r22, 0x00	; 0
   2c34c:	74 e0       	ldi	r23, 0x04	; 4
   2c34e:	68 1b       	sub	r22, r24
   2c350:	79 0b       	sbc	r23, r25
   2c352:	90 e0       	ldi	r25, 0x00	; 0
   2c354:	80 e0       	ldi	r24, 0x00	; 0
   2c356:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2c35a:	4b 01       	movw	r8, r22
   2c35c:	5c 01       	movw	r10, r24
                                / (z_res * cs.axis_steps_per_mm[Z_AXIS])
   2c35e:	be 01       	movw	r22, r28
   2c360:	90 e0       	ldi	r25, 0x00	; 0
   2c362:	80 e0       	ldi	r24, 0x00	; 0
   2c364:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2c368:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   2c36c:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2c370:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   2c374:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   2c378:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2c37c:	9b 01       	movw	r18, r22
   2c37e:	ac 01       	movw	r20, r24
   2c380:	c5 01       	movw	r24, r10
   2c382:	b4 01       	movw	r22, r8
   2c384:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
                                + UVLO_Z_AXIS_SHIFT;
   2c388:	2a e0       	ldi	r18, 0x0A	; 10
   2c38a:	37 ed       	ldi	r19, 0xD7	; 215
   2c38c:	43 e2       	ldi	r20, 0x23	; 35
   2c38e:	5f e3       	ldi	r21, 0x3F	; 63
   2c390:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    // a full step before powering off. NOTE: we need to ensure to schedule more
    // than "dropsegments" steps in order to move (this is always the case here
    // due to UVLO_Z_AXIS_SHIFT being used)
    uint16_t z_res = tmc2130_get_res(Z_AXIS);
    uint16_t z_microsteps = tmc2130_rd_MSCNT(Z_AXIS);
    current_position[Z_AXIS] += float(1024 - z_microsteps)
   2c394:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
   2c398:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
   2c39c:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
   2c3a0:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
   2c3a4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2c3a8:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   2c3ac:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   2c3b0:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   2c3b4:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
                                / (z_res * cs.axis_steps_per_mm[Z_AXIS])
                                + UVLO_Z_AXIS_SHIFT;
    plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS]/60);
   2c3b8:	65 e5       	ldi	r22, 0x55	; 85
   2c3ba:	75 e5       	ldi	r23, 0x55	; 85
   2c3bc:	85 e5       	ldi	r24, 0x55	; 85
   2c3be:	91 e4       	ldi	r25, 0x41	; 65
   2c3c0:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   2c3c4:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
   2c3c8:	40 91 60 05 	lds	r20, 0x0560	; 0x800560 <saved_sdpos>
   2c3cc:	50 91 61 05 	lds	r21, 0x0561	; 0x800561 <saved_sdpos+0x1>
   2c3d0:	60 91 62 05 	lds	r22, 0x0562	; 0x800562 <saved_sdpos+0x2>
   2c3d4:	70 91 63 05 	lds	r23, 0x0563	; 0x800563 <saved_sdpos+0x3>
   2c3d8:	81 e9       	ldi	r24, 0x91	; 145
   2c3da:	9f e0       	ldi	r25, 0x0F	; 15
   2c3dc:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c3e0:	ce ea       	ldi	r28, 0xAE	; 174
   2c3e2:	dd e0       	ldi	r29, 0x0D	; 13

    // Store the mesh bed leveling offsets. This is 2*7*7=98 bytes, which takes 98*3.4us=333us in worst case.
    for (uint8_t mesh_point = 0; mesh_point < MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS; ++ mesh_point)
    {
        uint8_t ix = mesh_point % MESH_NUM_X_POINTS; // from 0 to MESH_NUM_X_POINTS - 1
        uint8_t iy = mesh_point / MESH_NUM_X_POINTS;
   2c3e4:	97 e0       	ldi	r25, 0x07	; 7
   2c3e6:	b9 2e       	mov	r11, r25
        // Scale the z value to 1u resolution.
        int16_t v = mbl_was_active ? int16_t(floor(mbl.z_values[iy][ix] * 1000.f + 0.5f)) : 0;
   2c3e8:	70 e0       	ldi	r23, 0x00	; 0
   2c3ea:	60 e0       	ldi	r22, 0x00	; 0
   2c3ec:	00 23       	and	r16, r16
   2c3ee:	19 f1       	breq	.+70     	; 0x2c436 <__vector_5+0x344>

    // Store the mesh bed leveling offsets. This is 2*7*7=98 bytes, which takes 98*3.4us=333us in worst case.
    for (uint8_t mesh_point = 0; mesh_point < MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS; ++ mesh_point)
    {
        uint8_t ix = mesh_point % MESH_NUM_X_POINTS; // from 0 to MESH_NUM_X_POINTS - 1
        uint8_t iy = mesh_point / MESH_NUM_X_POINTS;
   2c3f0:	81 2f       	mov	r24, r17
   2c3f2:	6b 2d       	mov	r22, r11
   2c3f4:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
        // Scale the z value to 1u resolution.
        int16_t v = mbl_was_active ? int16_t(floor(mbl.z_values[iy][ix] * 1000.f + 0.5f)) : 0;
   2c3f8:	b8 9e       	mul	r11, r24
   2c3fa:	f0 01       	movw	r30, r0
   2c3fc:	11 24       	eor	r1, r1
   2c3fe:	e9 0f       	add	r30, r25
   2c400:	f1 1d       	adc	r31, r1
   2c402:	ee 0f       	add	r30, r30
   2c404:	ff 1f       	adc	r31, r31
   2c406:	ee 0f       	add	r30, r30
   2c408:	ff 1f       	adc	r31, r31
   2c40a:	ee 53       	subi	r30, 0x3E	; 62
   2c40c:	fc 4e       	sbci	r31, 0xEC	; 236
   2c40e:	20 e0       	ldi	r18, 0x00	; 0
   2c410:	30 e0       	ldi	r19, 0x00	; 0
   2c412:	4a e7       	ldi	r20, 0x7A	; 122
   2c414:	54 e4       	ldi	r21, 0x44	; 68
   2c416:	61 81       	ldd	r22, Z+1	; 0x01
   2c418:	72 81       	ldd	r23, Z+2	; 0x02
   2c41a:	83 81       	ldd	r24, Z+3	; 0x03
   2c41c:	94 81       	ldd	r25, Z+4	; 0x04
   2c41e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2c422:	20 e0       	ldi	r18, 0x00	; 0
   2c424:	30 e0       	ldi	r19, 0x00	; 0
   2c426:	40 e0       	ldi	r20, 0x00	; 0
   2c428:	5f e3       	ldi	r21, 0x3F	; 63
   2c42a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2c42e:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   2c432:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   2c436:	ce 01       	movw	r24, r28
   2c438:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>

    // Write the file position.
    eeprom_update_dword_notify((uint32_t*)(EEPROM_FILE_POSITION), saved_sdpos);

    // Store the mesh bed leveling offsets. This is 2*7*7=98 bytes, which takes 98*3.4us=333us in worst case.
    for (uint8_t mesh_point = 0; mesh_point < MESH_NUM_X_POINTS * MESH_NUM_Y_POINTS; ++ mesh_point)
   2c43c:	1f 5f       	subi	r17, 0xFF	; 255
   2c43e:	22 96       	adiw	r28, 0x02	; 2
   2c440:	11 33       	cpi	r17, 0x31	; 49
   2c442:	91 f6       	brne	.-92     	; 0x2c3e8 <__vector_5+0x2f6>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c444:	40 91 9a 06 	lds	r20, 0x069A	; 0x80069a <current_position+0x8>
   2c448:	50 91 9b 06 	lds	r21, 0x069B	; 0x80069b <current_position+0x9>
   2c44c:	60 91 9c 06 	lds	r22, 0x069C	; 0x80069c <current_position+0xa>
   2c450:	70 91 9d 06 	lds	r23, 0x069D	; 0x80069d <current_position+0xb>
   2c454:	8a ed       	ldi	r24, 0xDA	; 218
   2c456:	9e e0       	ldi	r25, 0x0E	; 14
   2c458:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c45c:	40 91 73 02 	lds	r20, 0x0273	; 0x800273 <saved_pos>
   2c460:	50 91 74 02 	lds	r21, 0x0274	; 0x800274 <saved_pos+0x1>
   2c464:	60 91 75 02 	lds	r22, 0x0275	; 0x800275 <saved_pos+0x2>
   2c468:	70 91 76 02 	lds	r23, 0x0276	; 0x800276 <saved_pos+0x3>
   2c46c:	8d e9       	ldi	r24, 0x9D	; 157
   2c46e:	9f e0       	ldi	r25, 0x0F	; 15
   2c470:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c474:	40 91 77 02 	lds	r20, 0x0277	; 0x800277 <saved_pos+0x4>
   2c478:	50 91 78 02 	lds	r21, 0x0278	; 0x800278 <saved_pos+0x5>
   2c47c:	60 91 79 02 	lds	r22, 0x0279	; 0x800279 <saved_pos+0x6>
   2c480:	70 91 7a 02 	lds	r23, 0x027A	; 0x80027a <saved_pos+0x7>
   2c484:	81 ea       	ldi	r24, 0xA1	; 161
   2c486:	9f e0       	ldi	r25, 0x0F	; 15
   2c488:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   2c48c:	60 91 5e 05 	lds	r22, 0x055E	; 0x80055e <saved_feedrate2>
   2c490:	70 91 5f 05 	lds	r23, 0x055F	; 0x80055f <saved_feedrate2+0x1>
   2c494:	89 e8       	ldi	r24, 0x89	; 137
   2c496:	9f e0       	ldi	r25, 0x0F	; 15
   2c498:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   2c49c:	60 91 39 02 	lds	r22, 0x0239	; 0x800239 <feedmultiply>
   2c4a0:	70 91 3a 02 	lds	r23, 0x023A	; 0x80023a <feedmultiply+0x1>
   2c4a4:	85 e3       	ldi	r24, 0x35	; 53
   2c4a6:	9d e0       	ldi	r25, 0x0D	; 13
   2c4a8:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
   2c4ac:	60 91 ac 05 	lds	r22, 0x05AC	; 0x8005ac <saved_extruder_temperature>
   2c4b0:	70 91 ad 05 	lds	r23, 0x05AD	; 0x8005ad <saved_extruder_temperature+0x1>
   2c4b4:	88 ed       	ldi	r24, 0xD8	; 216
   2c4b6:	9e e0       	ldi	r25, 0x0E	; 14
   2c4b8:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2c4bc:	60 91 ae 05 	lds	r22, 0x05AE	; 0x8005ae <saved_bed_temperature>
   2c4c0:	8b e8       	ldi	r24, 0x8B	; 139
   2c4c2:	9f e0       	ldi	r25, 0x0F	; 15
   2c4c4:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   2c4c8:	60 91 ab 05 	lds	r22, 0x05AB	; 0x8005ab <saved_fan_speed>
   2c4cc:	88 e8       	ldi	r24, 0x88	; 136
   2c4ce:	9f e0       	ldi	r25, 0x0F	; 15
   2c4d0:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c4d4:	40 91 93 02 	lds	r20, 0x0293	; 0x800293 <extruder_multiplier>
   2c4d8:	50 91 94 02 	lds	r21, 0x0294	; 0x800294 <extruder_multiplier+0x1>
   2c4dc:	60 91 95 02 	lds	r22, 0x0295	; 0x800295 <extruder_multiplier+0x2>
   2c4e0:	70 91 96 02 	lds	r23, 0x0296	; 0x800296 <extruder_multiplier+0x3>
   2c4e4:	88 ee       	ldi	r24, 0xE8	; 232
   2c4e6:	9e e0       	ldi	r25, 0x0E	; 14
   2c4e8:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   2c4ec:	60 91 bc 02 	lds	r22, 0x02BC	; 0x8002bc <extrudemultiply>
   2c4f0:	70 91 bd 02 	lds	r23, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
   2c4f4:	8e ed       	ldi	r24, 0xDE	; 222
   2c4f6:	9e e0       	ldi	r25, 0x0E	; 14
   2c4f8:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c4fc:	40 91 f2 0d 	lds	r20, 0x0DF2	; 0x800df2 <cs+0x34>
   2c500:	50 91 f3 0d 	lds	r21, 0x0DF3	; 0x800df3 <cs+0x35>
   2c504:	60 91 f4 0d 	lds	r22, 0x0DF4	; 0x800df4 <cs+0x36>
   2c508:	70 91 f5 0d 	lds	r23, 0x0DF5	; 0x800df5 <cs+0x37>
   2c50c:	81 e1       	ldi	r24, 0x11	; 17
   2c50e:	9d e0       	ldi	r25, 0x0D	; 13
   2c510:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c514:	40 91 f6 0d 	lds	r20, 0x0DF6	; 0x800df6 <cs+0x38>
   2c518:	50 91 f7 0d 	lds	r21, 0x0DF7	; 0x800df7 <cs+0x39>
   2c51c:	60 91 f8 0d 	lds	r22, 0x0DF8	; 0x800df8 <cs+0x3a>
   2c520:	70 91 f9 0d 	lds	r23, 0x0DF9	; 0x800df9 <cs+0x3b>
   2c524:	8d e0       	ldi	r24, 0x0D	; 13
   2c526:	9d e0       	ldi	r25, 0x0D	; 13
   2c528:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c52c:	40 91 7e 0e 	lds	r20, 0x0E7E	; 0x800e7e <cs+0xc0>
   2c530:	50 91 7f 0e 	lds	r21, 0x0E7F	; 0x800e7f <cs+0xc1>
   2c534:	60 91 80 0e 	lds	r22, 0x0E80	; 0x800e80 <cs+0xc2>
   2c538:	70 91 81 0e 	lds	r23, 0x0E81	; 0x800e81 <cs+0xc3>
   2c53c:	89 e0       	ldi	r24, 0x09	; 9
   2c53e:	9d e0       	ldi	r25, 0x0D	; 13
   2c540:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   2c544:	40 e1       	ldi	r20, 0x10	; 16
   2c546:	50 e0       	ldi	r21, 0x00	; 0
   2c548:	67 e3       	ldi	r22, 0x37	; 55
   2c54a:	7d e0       	ldi	r23, 0x0D	; 13
   2c54c:	83 e8       	ldi	r24, 0x83	; 131
   2c54e:	92 e0       	ldi	r25, 0x02	; 2
   2c550:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   2c554:	60 91 69 05 	lds	r22, 0x0569	; 0x800569 <saved_segment_idx>
   2c558:	70 91 6a 05 	lds	r23, 0x056A	; 0x80056a <saved_segment_idx+0x1>
   2c55c:	8c e6       	ldi	r24, 0x6C	; 108
   2c55e:	9f e0       	ldi	r25, 0x0F	; 15
   2c560:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2c564:	60 91 6a 02 	lds	r22, 0x026A	; 0x80026a <saved_printing_type>
   2c568:	8c e8       	ldi	r24, 0x8C	; 140
   2c56a:	9f e0       	ldi	r25, 0x0F	; 15
   2c56c:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c570:	40 91 65 05 	lds	r20, 0x0565	; 0x800565 <extruder_advance_K>
   2c574:	50 91 66 05 	lds	r21, 0x0566	; 0x800566 <extruder_advance_K+0x1>
   2c578:	60 91 67 05 	lds	r22, 0x0567	; 0x800567 <extruder_advance_K+0x2>
   2c57c:	70 91 68 05 	lds	r23, 0x0568	; 0x800568 <extruder_advance_K+0x3>
   2c580:	8c e2       	ldi	r24, 0x2C	; 44
   2c582:	9d e0       	ldi	r25, 0x0D	; 13
   2c584:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   2c588:	60 91 6b 02 	lds	r22, 0x026B	; 0x80026b <extrude_min_temp>
   2c58c:	70 91 6c 02 	lds	r23, 0x026C	; 0x80026c <extrude_min_temp+0x1>
   2c590:	8d e7       	ldi	r24, 0x7D	; 125
   2c592:	9c e0       	ldi	r25, 0x0C	; 12
   2c594:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   2c598:	40 e1       	ldi	r20, 0x10	; 16
   2c59a:	50 e0       	ldi	r21, 0x00	; 0
   2c59c:	6d e6       	ldi	r22, 0x6D	; 109
   2c59e:	7c e0       	ldi	r23, 0x0C	; 12
   2c5a0:	82 ee       	ldi	r24, 0xE2	; 226
   2c5a2:	9d e0       	ldi	r25, 0x0D	; 13
   2c5a4:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   2c5a8:	40 e1       	ldi	r20, 0x10	; 16
   2c5aa:	50 e0       	ldi	r21, 0x00	; 0
   2c5ac:	6d e5       	ldi	r22, 0x5D	; 93
   2c5ae:	7c e0       	ldi	r23, 0x0C	; 12
   2c5b0:	8a e6       	ldi	r24, 0x6A	; 106
   2c5b2:	9e e0       	ldi	r25, 0x0E	; 14
   2c5b4:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   2c5b8:	40 e1       	ldi	r20, 0x10	; 16
   2c5ba:	50 e0       	ldi	r21, 0x00	; 0
   2c5bc:	6d e4       	ldi	r22, 0x4D	; 77
   2c5be:	7c e0       	ldi	r23, 0x0C	; 12
   2c5c0:	82 ed       	ldi	r24, 0xD2	; 210
   2c5c2:	9d e0       	ldi	r25, 0x0D	; 13
   2c5c4:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   2c5c8:	40 e1       	ldi	r20, 0x10	; 16
   2c5ca:	50 e0       	ldi	r21, 0x00	; 0
   2c5cc:	6d e3       	ldi	r22, 0x3D	; 61
   2c5ce:	7c e0       	ldi	r23, 0x0C	; 12
   2c5d0:	8a e5       	ldi	r24, 0x5A	; 90
   2c5d2:	9e e0       	ldi	r25, 0x0E	; 14
   2c5d4:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c5d8:	40 91 fa 0d 	lds	r20, 0x0DFA	; 0x800dfa <cs+0x3c>
   2c5dc:	50 91 fb 0d 	lds	r21, 0x0DFB	; 0x800dfb <cs+0x3d>
   2c5e0:	60 91 fc 0d 	lds	r22, 0x0DFC	; 0x800dfc <cs+0x3e>
   2c5e4:	70 91 fd 0d 	lds	r23, 0x0DFD	; 0x800dfd <cs+0x3f>
   2c5e8:	89 e3       	ldi	r24, 0x39	; 57
   2c5ea:	9c e0       	ldi	r25, 0x0C	; 12
   2c5ec:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   2c5f0:	40 91 fe 0d 	lds	r20, 0x0DFE	; 0x800dfe <cs+0x40>
   2c5f4:	50 91 ff 0d 	lds	r21, 0x0DFF	; 0x800dff <cs+0x41>
   2c5f8:	60 91 00 0e 	lds	r22, 0x0E00	; 0x800e00 <cs+0x42>
   2c5fc:	70 91 01 0e 	lds	r23, 0x0E01	; 0x800e01 <cs+0x43>
   2c600:	85 e3       	ldi	r24, 0x35	; 53
   2c602:	9c e0       	ldi	r25, 0x0C	; 12
   2c604:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
   2c608:	40 91 02 0e 	lds	r20, 0x0E02	; 0x800e02 <cs+0x44>
   2c60c:	50 91 03 0e 	lds	r21, 0x0E03	; 0x800e03 <cs+0x45>
   2c610:	60 91 04 0e 	lds	r22, 0x0E04	; 0x800e04 <cs+0x46>
   2c614:	70 91 05 0e 	lds	r23, 0x0E05	; 0x800e05 <cs+0x47>
   2c618:	81 e3       	ldi	r24, 0x31	; 49
   2c61a:	9c e0       	ldi	r25, 0x0C	; 12
   2c61c:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   2c620:	40 e1       	ldi	r20, 0x10	; 16
   2c622:	50 e0       	ldi	r21, 0x00	; 0
   2c624:	61 e2       	ldi	r22, 0x21	; 33
   2c626:	7c e0       	ldi	r23, 0x0C	; 12
   2c628:	86 e0       	ldi	r24, 0x06	; 6
   2c62a:	9e e0       	ldi	r25, 0x0E	; 14
   2c62c:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
    eeprom_update_float_notify((float *)(EEPROM_UVLO_MIN_FEEDRATE), cs.minimumfeedrate);
    eeprom_update_float_notify((float *)(EEPROM_UVLO_MIN_TRAVEL_FEEDRATE), cs.mintravelfeedrate);
    eeprom_update_dword_notify((uint32_t *)(EEPROM_UVLO_MIN_SEGMENT_TIME_US), cs.min_segment_time_us);
    eeprom_update_block_notify(cs.max_jerk, (float *)EEPROM_UVLO_MAX_JERK, sizeof(cs.max_jerk));
    // Finally store the "power outage" flag.
    if (did_pause_print) {
   2c630:	80 91 e4 03 	lds	r24, 0x03E4	; 0x8003e4 <did_pause_print>
   2c634:	88 23       	and	r24, r24
   2c636:	29 f0       	breq	.+10     	; 0x2c642 <__vector_5+0x550>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2c638:	61 e0       	ldi	r22, 0x01	; 1
   2c63a:	8f e7       	ldi	r24, 0x7F	; 127
   2c63c:	9c e0       	ldi	r25, 0x0C	; 12
   2c63e:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   2c642:	61 e0       	ldi	r22, 0x01	; 1
   2c644:	85 ea       	ldi	r24, 0xA5	; 165
   2c646:	9f e0       	ldi	r25, 0x0F	; 15
   2c648:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
    }

    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::PENDING_RECOVERY);

    // Increment power failure counter
    eeprom_increment_byte((uint8_t*)EEPROM_POWER_COUNT);
   2c64c:	84 e6       	ldi	r24, 0x64	; 100
   2c64e:	9f e0       	ldi	r25, 0x0F	; 15
   2c650:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t*)EEPROM_POWER_COUNT_TOT);
   2c654:	8f ef       	ldi	r24, 0xFF	; 255
   2c656:	9e e0       	ldi	r25, 0x0E	; 14
   2c658:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>

    printf_P(_N("UVLO - end %d\n"), _millis() - time_start);
   2c65c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2c660:	dc 01       	movw	r26, r24
   2c662:	cb 01       	movw	r24, r22
   2c664:	8c 19       	sub	r24, r12
   2c666:	9d 09       	sbc	r25, r13
   2c668:	ae 09       	sbc	r26, r14
   2c66a:	bf 09       	sbc	r27, r15
   2c66c:	bf 93       	push	r27
   2c66e:	af 93       	push	r26
   2c670:	9f 93       	push	r25
   2c672:	8f 93       	push	r24
   2c674:	88 e3       	ldi	r24, 0x38	; 56
   2c676:	9d e6       	ldi	r25, 0x6D	; 109
   2c678:	9f 93       	push	r25
   2c67a:	8f 93       	push	r24
   2c67c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    WRITE(BEEPER,HIGH);
   2c680:	9f b7       	in	r25, 0x3f	; 63
   2c682:	f8 94       	cli
   2c684:	80 91 02 01 	lds	r24, 0x0102	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2c688:	84 60       	ori	r24, 0x04	; 4
   2c68a:	80 93 02 01 	sts	0x0102, r24	; 0x800102 <__TEXT_REGION_LENGTH__+0x7c2102>
   2c68e:	9f bf       	out	0x3f, r25	; 63

    // All is set: with all the juice left, try to move extruder away to detach the nozzle completely from the print
    poweron_z();
   2c690:	15 98       	cbi	0x02, 5	; 2
    current_position[X_AXIS] = (current_position[X_AXIS] < 0.5f * (X_MIN_POS + X_MAX_POS)) ? X_MIN_POS : X_MAX_POS;
   2c692:	0f 90       	pop	r0
   2c694:	0f 90       	pop	r0
   2c696:	0f 90       	pop	r0
   2c698:	0f 90       	pop	r0
   2c69a:	0f 90       	pop	r0
   2c69c:	0f 90       	pop	r0
   2c69e:	20 e0       	ldi	r18, 0x00	; 0
   2c6a0:	30 e0       	ldi	r19, 0x00	; 0
   2c6a2:	4f ef       	ldi	r20, 0xFF	; 255
   2c6a4:	52 e4       	ldi	r21, 0x42	; 66
   2c6a6:	60 91 92 06 	lds	r22, 0x0692	; 0x800692 <current_position>
   2c6aa:	70 91 93 06 	lds	r23, 0x0693	; 0x800693 <current_position+0x1>
   2c6ae:	80 91 94 06 	lds	r24, 0x0694	; 0x800694 <current_position+0x2>
   2c6b2:	90 91 95 06 	lds	r25, 0x0695	; 0x800695 <current_position+0x3>
   2c6b6:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2c6ba:	87 fd       	sbrc	r24, 7
   2c6bc:	1f c0       	rjmp	.+62     	; 0x2c6fc <__vector_5+0x60a>
   2c6be:	80 e0       	ldi	r24, 0x00	; 0
   2c6c0:	90 e0       	ldi	r25, 0x00	; 0
   2c6c2:	af e7       	ldi	r26, 0x7F	; 127
   2c6c4:	b3 e4       	ldi	r27, 0x43	; 67
   2c6c6:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   2c6ca:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   2c6ce:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   2c6d2:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
    plan_buffer_line_curposXYZE(500);
   2c6d6:	60 e0       	ldi	r22, 0x00	; 0
   2c6d8:	70 e0       	ldi	r23, 0x00	; 0
   2c6da:	8a ef       	ldi	r24, 0xFA	; 250
   2c6dc:	93 e4       	ldi	r25, 0x43	; 67
   2c6de:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   2c6e2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
   2c6e6:	88 e1       	ldi	r24, 0x18	; 24
   2c6e8:	9e e0       	ldi	r25, 0x0E	; 14
   2c6ea:	0f b6       	in	r0, 0x3f	; 63
   2c6ec:	f8 94       	cli
   2c6ee:	a8 95       	wdr
   2c6f0:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   2c6f4:	0f be       	out	0x3f, r0	; 63
   2c6f6:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   2c6fa:	ff cf       	rjmp	.-2      	; 0x2c6fa <__vector_5+0x608>
    printf_P(_N("UVLO - end %d\n"), _millis() - time_start);
    WRITE(BEEPER,HIGH);

    // All is set: with all the juice left, try to move extruder away to detach the nozzle completely from the print
    poweron_z();
    current_position[X_AXIS] = (current_position[X_AXIS] < 0.5f * (X_MIN_POS + X_MAX_POS)) ? X_MIN_POS : X_MAX_POS;
   2c6fc:	80 e0       	ldi	r24, 0x00	; 0
   2c6fe:	90 e0       	ldi	r25, 0x00	; 0
   2c700:	dc 01       	movw	r26, r24
   2c702:	e1 cf       	rjmp	.-62     	; 0x2c6c6 <__vector_5+0x5d4>
    while(1);
}


static void uvlo_tiny() {
    unsigned long time_start = _millis();
   2c704:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2c708:	6b 01       	movw	r12, r22
   2c70a:	7c 01       	movw	r14, r24

    // Conserve power as soon as possible.
    disable_x();
   2c70c:	17 9a       	sbi	0x02, 7	; 2
   2c70e:	10 92 8f 06 	sts	0x068F, r1	; 0x80068f <axis_known_position>
    disable_y();
   2c712:	16 9a       	sbi	0x02, 6	; 2
   2c714:	10 92 90 06 	sts	0x0690, r1	; 0x800690 <axis_known_position+0x1>
    disable_e0();
   2c718:	14 9a       	sbi	0x02, 4	; 2

#ifdef TMC2130
    currents[Z_AXIS].setiHold(20);
   2c71a:	64 e1       	ldi	r22, 0x14	; 20
   2c71c:	83 e6       	ldi	r24, 0x63	; 99
   2c71e:	92 e0       	ldi	r25, 0x02	; 2
   2c720:	0e 94 85 67 	call	0xcf0a	; 0xcf0a <MotorCurrents::setiHold(unsigned char)>
    currents[Z_AXIS].setiRun(20);
   2c724:	64 e1       	ldi	r22, 0x14	; 20
   2c726:	83 e6       	ldi	r24, 0x63	; 99
   2c728:	92 e0       	ldi	r25, 0x02	; 2
   2c72a:	0e 94 8d 67 	call	0xcf1a	; 0xcf1a <MotorCurrents::setiRun(unsigned char)>
    tmc2130_setup_chopper(Z_AXIS, tmc2130_mres[Z_AXIS]);
   2c72e:	50 e0       	ldi	r21, 0x00	; 0
   2c730:	40 e0       	ldi	r20, 0x00	; 0
   2c732:	60 91 f7 04 	lds	r22, 0x04F7	; 0x8004f7 <tmc2130_mres+0x2>
   2c736:	82 e0       	ldi	r24, 0x02	; 2
   2c738:	0f 94 9b 25 	call	0x24b36	; 0x24b36 <tmc2130_setup_chopper(unsigned char, unsigned char, MotorCurrents const*)>
#endif //TMC2130

    // Stop all heaters
    disable_heater();
   2c73c:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>

    // When power is interrupted on the _first_ recovery an attempt can be made to raise the
    // extruder, causing the Z position to change. Similarly, when recovering, the Z position is
    // lowered. In such cases we cannot just save Z, we need to re-align the steppers to a fullstep.
    // Disable MBL (if not already) to work with physical coordinates.
    mbl.active = false;
   2c740:	10 92 c2 13 	sts	0x13C2, r1	; 0x8013c2 <mbl>
    planner_abort_hard();
   2c744:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>

    // Allow for small roundoffs to be ignored
    if(fabs(current_position[Z_AXIS] - eeprom_read_float((float*)(EEPROM_UVLO_TINY_CURRENT_POSITION_Z))) >= 1.f/cs.axis_steps_per_mm[Z_AXIS])
   2c748:	80 90 9a 06 	lds	r8, 0x069A	; 0x80069a <current_position+0x8>
   2c74c:	90 90 9b 06 	lds	r9, 0x069B	; 0x80069b <current_position+0x9>
   2c750:	a0 90 9c 06 	lds	r10, 0x069C	; 0x80069c <current_position+0xa>
   2c754:	b0 90 9d 06 	lds	r11, 0x069D	; 0x80069d <current_position+0xb>
   2c758:	8a ed       	ldi	r24, 0xDA	; 218
   2c75a:	9e e0       	ldi	r25, 0x0E	; 14
   2c75c:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2c760:	9b 01       	movw	r18, r22
   2c762:	ac 01       	movw	r20, r24
   2c764:	c5 01       	movw	r24, r10
   2c766:	b4 01       	movw	r22, r8
   2c768:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2c76c:	4b 01       	movw	r8, r22
   2c76e:	5c 01       	movw	r10, r24
   2c770:	e8 94       	clt
   2c772:	b7 f8       	bld	r11, 7
   2c774:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   2c778:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2c77c:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   2c780:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   2c784:	60 e0       	ldi	r22, 0x00	; 0
   2c786:	70 e0       	ldi	r23, 0x00	; 0
   2c788:	80 e8       	ldi	r24, 0x80	; 128
   2c78a:	9f e3       	ldi	r25, 0x3F	; 63
   2c78c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2c790:	9b 01       	movw	r18, r22
   2c792:	ac 01       	movw	r20, r24
   2c794:	c5 01       	movw	r24, r10
   2c796:	b4 01       	movw	r22, r8
   2c798:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2c79c:	87 fd       	sbrc	r24, 7
   2c79e:	61 c0       	rjmp	.+194    	; 0x2c862 <__vector_5+0x770>
    {
        // Clean the input command queue, inhibit serial processing using saved_printing
        cmdqueue_reset();
   2c7a0:	0e 94 cb 7e 	call	0xfd96	; 0xfd96 <cmdqueue_reset()>
        card.sdprinting = false;
   2c7a4:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
        saved_printing = true;
   2c7a8:	81 e0       	ldi	r24, 0x01	; 1
   2c7aa:	80 93 a9 0d 	sts	0x0DA9, r24	; 0x800da9 <saved_printing>

        // Enable stepper driver interrupt to move Z axis. This should be fine as the planner and
        // command queues are empty, SD card printing is disabled, usb is inhibited.
        planner_aborted = false;
   2c7ae:	10 92 ac 0d 	sts	0x0DAC, r1	; 0x800dac <planner_aborted>
        sei();
   2c7b2:	78 94       	sei
   2c7b4:	80 91 f7 04 	lds	r24, 0x04F7	; 0x8004f7 <tmc2130_mres+0x2>
   2c7b8:	c0 e0       	ldi	r28, 0x00	; 0
   2c7ba:	d1 e0       	ldi	r29, 0x01	; 1
   2c7bc:	02 c0       	rjmp	.+4      	; 0x2c7c2 <__vector_5+0x6d0>
   2c7be:	d6 95       	lsr	r29
   2c7c0:	c7 95       	ror	r28
   2c7c2:	8a 95       	dec	r24
   2c7c4:	e2 f7       	brpl	.-8      	; 0x2c7be <__vector_5+0x6cc>

        // The axis was moved: adjust Z as done on a regular UVLO.
        uint16_t z_res = tmc2130_get_res(Z_AXIS);
        uint16_t z_microsteps = tmc2130_rd_MSCNT(Z_AXIS);
   2c7c6:	82 e0       	ldi	r24, 0x02	; 2
   2c7c8:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
        current_position[Z_AXIS] += float(1024 - z_microsteps)
   2c7cc:	60 e0       	ldi	r22, 0x00	; 0
   2c7ce:	74 e0       	ldi	r23, 0x04	; 4
   2c7d0:	68 1b       	sub	r22, r24
   2c7d2:	79 0b       	sbc	r23, r25
   2c7d4:	90 e0       	ldi	r25, 0x00	; 0
   2c7d6:	80 e0       	ldi	r24, 0x00	; 0
   2c7d8:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2c7dc:	4b 01       	movw	r8, r22
   2c7de:	5c 01       	movw	r10, r24
                                    / (z_res * cs.axis_steps_per_mm[Z_AXIS])
   2c7e0:	be 01       	movw	r22, r28
   2c7e2:	90 e0       	ldi	r25, 0x00	; 0
   2c7e4:	80 e0       	ldi	r24, 0x00	; 0
   2c7e6:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2c7ea:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   2c7ee:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2c7f2:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   2c7f6:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   2c7fa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2c7fe:	9b 01       	movw	r18, r22
   2c800:	ac 01       	movw	r20, r24
   2c802:	c5 01       	movw	r24, r10
   2c804:	b4 01       	movw	r22, r8
   2c806:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
                                    + UVLO_TINY_Z_AXIS_SHIFT;
   2c80a:	2a e0       	ldi	r18, 0x0A	; 10
   2c80c:	37 ed       	ldi	r19, 0xD7	; 215
   2c80e:	43 e2       	ldi	r20, 0x23	; 35
   2c810:	5e e3       	ldi	r21, 0x3E	; 62
   2c812:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
        sei();

        // The axis was moved: adjust Z as done on a regular UVLO.
        uint16_t z_res = tmc2130_get_res(Z_AXIS);
        uint16_t z_microsteps = tmc2130_rd_MSCNT(Z_AXIS);
        current_position[Z_AXIS] += float(1024 - z_microsteps)
   2c816:	20 91 9a 06 	lds	r18, 0x069A	; 0x80069a <current_position+0x8>
   2c81a:	30 91 9b 06 	lds	r19, 0x069B	; 0x80069b <current_position+0x9>
   2c81e:	40 91 9c 06 	lds	r20, 0x069C	; 0x80069c <current_position+0xa>
   2c822:	50 91 9d 06 	lds	r21, 0x069D	; 0x80069d <current_position+0xb>
   2c826:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2c82a:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   2c82e:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   2c832:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   2c836:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
                                    / (z_res * cs.axis_steps_per_mm[Z_AXIS])
                                    + UVLO_TINY_Z_AXIS_SHIFT;
        plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS]/60);
   2c83a:	65 e5       	ldi	r22, 0x55	; 85
   2c83c:	75 e5       	ldi	r23, 0x55	; 85
   2c83e:	85 e5       	ldi	r24, 0x55	; 85
   2c840:	91 e4       	ldi	r25, 0x41	; 65
   2c842:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
        st_synchronize();
   2c846:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   2c84a:	40 91 9a 06 	lds	r20, 0x069A	; 0x80069a <current_position+0x8>
   2c84e:	50 91 9b 06 	lds	r21, 0x069B	; 0x80069b <current_position+0x9>
   2c852:	60 91 9c 06 	lds	r22, 0x069C	; 0x80069c <current_position+0xa>
   2c856:	70 91 9d 06 	lds	r23, 0x069D	; 0x80069d <current_position+0xb>
   2c85a:	8a ed       	ldi	r24, 0xDA	; 218
   2c85c:	9e e0       	ldi	r25, 0x0E	; 14
   2c85e:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   2c862:	62 e0       	ldi	r22, 0x02	; 2
   2c864:	85 ea       	ldi	r24, 0xA5	; 165
   2c866:	9f e0       	ldi	r25, 0x0F	; 15
   2c868:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

    // Update the the "power outage" flag.
    eeprom_update_byte_notify((uint8_t*)EEPROM_UVLO, PowerPanic::PENDING_RECOVERY_RETRY);

    // Increment power failure counter
    eeprom_increment_byte((uint8_t*)EEPROM_POWER_COUNT);
   2c86c:	84 e6       	ldi	r24, 0x64	; 100
   2c86e:	9f e0       	ldi	r25, 0x0F	; 15
   2c870:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t*)EEPROM_POWER_COUNT_TOT);
   2c874:	8f ef       	ldi	r24, 0xFF	; 255
   2c876:	9e e0       	ldi	r25, 0x0E	; 14
   2c878:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>

    printf_P(_N("UVLO_TINY - end %d\n"), _millis() - time_start);
   2c87c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2c880:	dc 01       	movw	r26, r24
   2c882:	cb 01       	movw	r24, r22
   2c884:	8c 19       	sub	r24, r12
   2c886:	9d 09       	sbc	r25, r13
   2c888:	ae 09       	sbc	r26, r14
   2c88a:	bf 09       	sbc	r27, r15
   2c88c:	bf 93       	push	r27
   2c88e:	af 93       	push	r26
   2c890:	9f 93       	push	r25
   2c892:	8f 93       	push	r24
   2c894:	87 e4       	ldi	r24, 0x47	; 71
   2c896:	9d e6       	ldi	r25, 0x6D	; 109
   2c898:	9f 93       	push	r25
   2c89a:	8f 93       	push	r24
   2c89c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
    uvlo_drain_reset();
   2c8a0:	0f 94 5e 60 	call	0x2c0bc	; 0x2c0bc <uvlo_drain_reset() [clone .lto_priv.428]>
        // There is already a pending recovery waiting. Power outage in this scenario
        // arrives before we can fully recover the print. In that case call a 'tiny'
        // version of uvlo_() which doesn't overwrite the print state already waiting in EEPROM
        uvlo_tiny();
    }
}
   2c8a4:	ff 91       	pop	r31
   2c8a6:	ef 91       	pop	r30
   2c8a8:	df 91       	pop	r29
   2c8aa:	cf 91       	pop	r28
   2c8ac:	bf 91       	pop	r27
   2c8ae:	af 91       	pop	r26
   2c8b0:	9f 91       	pop	r25
   2c8b2:	8f 91       	pop	r24
   2c8b4:	7f 91       	pop	r23
   2c8b6:	6f 91       	pop	r22
   2c8b8:	5f 91       	pop	r21
   2c8ba:	4f 91       	pop	r20
   2c8bc:	3f 91       	pop	r19
   2c8be:	2f 91       	pop	r18
   2c8c0:	1f 91       	pop	r17
   2c8c2:	0f 91       	pop	r16
   2c8c4:	ff 90       	pop	r15
   2c8c6:	ef 90       	pop	r14
   2c8c8:	df 90       	pop	r13
   2c8ca:	cf 90       	pop	r12
   2c8cc:	bf 90       	pop	r11
   2c8ce:	af 90       	pop	r10
   2c8d0:	9f 90       	pop	r9
   2c8d2:	8f 90       	pop	r8
   2c8d4:	0f 90       	pop	r0
   2c8d6:	0b be       	out	0x3b, r0	; 59
   2c8d8:	0f 90       	pop	r0
   2c8da:	0f be       	out	0x3f, r0	; 63
   2c8dc:	0f 90       	pop	r0
   2c8de:	1f 90       	pop	r1
   2c8e0:	18 95       	reti

0002c8e2 <planner_calc_sd_length()>:
  }
}

uint16_t planner_calc_sd_length()
{
	uint8_t _block_buffer_head = block_buffer_head;
   2c8e2:	60 91 a5 0d 	lds	r22, 0x0DA5	; 0x800da5 <block_buffer_head>
	uint8_t _block_buffer_tail = block_buffer_tail;
   2c8e6:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
	uint16_t sdlen = 0;
   2c8ea:	30 e0       	ldi	r19, 0x00	; 0
   2c8ec:	20 e0       	ldi	r18, 0x00	; 0
	while (_block_buffer_head != _block_buffer_tail)
	{
		sdlen += block_buffer[_block_buffer_tail].sdlen;
   2c8ee:	8e e6       	ldi	r24, 0x6E	; 110
uint16_t planner_calc_sd_length()
{
	uint8_t _block_buffer_head = block_buffer_head;
	uint8_t _block_buffer_tail = block_buffer_tail;
	uint16_t sdlen = 0;
	while (_block_buffer_head != _block_buffer_tail)
   2c8f0:	96 17       	cp	r25, r22
   2c8f2:	61 f0       	breq	.+24     	; 0x2c90c <planner_calc_sd_length()+0x2a>
	{
		sdlen += block_buffer[_block_buffer_tail].sdlen;
   2c8f4:	89 9f       	mul	r24, r25
   2c8f6:	f0 01       	movw	r30, r0
   2c8f8:	11 24       	eor	r1, r1
   2c8fa:	ef 5c       	subi	r30, 0xCF	; 207
   2c8fc:	f8 4f       	sbci	r31, 0xF8	; 248
   2c8fe:	40 81       	ld	r20, Z
   2c900:	51 81       	ldd	r21, Z+1	; 0x01
   2c902:	24 0f       	add	r18, r20
   2c904:	35 1f       	adc	r19, r21
	    _block_buffer_tail = (_block_buffer_tail + 1) & (BLOCK_BUFFER_SIZE - 1);
   2c906:	9f 5f       	subi	r25, 0xFF	; 255
   2c908:	9f 70       	andi	r25, 0x0F	; 15
   2c90a:	f2 cf       	rjmp	.-28     	; 0x2c8f0 <planner_calc_sd_length()+0xe>
	}
	return sdlen;
}
   2c90c:	c9 01       	movw	r24, r18
   2c90e:	08 95       	ret

0002c910 <planner_add_sd_length(unsigned int)>:
}
#endif /* PLANNER_DIAGNOSTICS */

void planner_add_sd_length(uint16_t sdlen)
{
  if (block_buffer_head != block_buffer_tail) {
   2c910:	30 91 a5 0d 	lds	r19, 0x0DA5	; 0x800da5 <block_buffer_head>
   2c914:	20 91 a6 0d 	lds	r18, 0x0DA6	; 0x800da6 <block_buffer_tail>
   2c918:	32 17       	cp	r19, r18
   2c91a:	91 f0       	breq	.+36     	; 0x2c940 <planner_add_sd_length(unsigned int)+0x30>
    // The planner buffer is not empty. Get the index of the last buffer line entered,
    // which is (block_buffer_head - 1) modulo BLOCK_BUFFER_SIZE.
    block_buffer[prev_block_index(block_buffer_head)].sdlen += sdlen;
   2c91c:	e0 91 a5 0d 	lds	r30, 0x0DA5	; 0x800da5 <block_buffer_head>
}


// Returns the index of the previous block in the ring buffer
static inline uint8_t prev_block_index(uint8_t block_index) {
  if (block_index == 0)
   2c920:	e1 11       	cpse	r30, r1
   2c922:	01 c0       	rjmp	.+2      	; 0x2c926 <planner_add_sd_length(unsigned int)+0x16>
    block_index = BLOCK_BUFFER_SIZE;
   2c924:	e0 e1       	ldi	r30, 0x10	; 16
  -- block_index;
   2c926:	e1 50       	subi	r30, 0x01	; 1
void planner_add_sd_length(uint16_t sdlen)
{
  if (block_buffer_head != block_buffer_tail) {
    // The planner buffer is not empty. Get the index of the last buffer line entered,
    // which is (block_buffer_head - 1) modulo BLOCK_BUFFER_SIZE.
    block_buffer[prev_block_index(block_buffer_head)].sdlen += sdlen;
   2c928:	2e e6       	ldi	r18, 0x6E	; 110
   2c92a:	e2 9f       	mul	r30, r18
   2c92c:	f0 01       	movw	r30, r0
   2c92e:	11 24       	eor	r1, r1
   2c930:	ef 5c       	subi	r30, 0xCF	; 207
   2c932:	f8 4f       	sbci	r31, 0xF8	; 248
   2c934:	20 81       	ld	r18, Z
   2c936:	31 81       	ldd	r19, Z+1	; 0x01
   2c938:	82 0f       	add	r24, r18
   2c93a:	93 1f       	adc	r25, r19
   2c93c:	91 83       	std	Z+1, r25	; 0x01
   2c93e:	80 83       	st	Z, r24
  } else {
    // There is no line stored in the planner buffer, which means the last command does not need to be revertible,
    // at a power panic, so the length of this command may be forgotten.
  }
}
   2c940:	08 95       	ret

0002c942 <reset_acceleration_rates()>:
}
#endif //PREVENT_DANGEROUS_EXTRUDE

// Calculate the steps/s^2 acceleration rates, based on the mm/s^s
void reset_acceleration_rates()
{
   2c942:	8f 92       	push	r8
   2c944:	9f 92       	push	r9
   2c946:	af 92       	push	r10
   2c948:	bf 92       	push	r11
   2c94a:	cf 92       	push	r12
   2c94c:	df 92       	push	r13
   2c94e:	ef 92       	push	r14
   2c950:	ff 92       	push	r15
   2c952:	0f 93       	push	r16
   2c954:	1f 93       	push	r17
   2c956:	cf 93       	push	r28
   2c958:	df 93       	push	r29
   2c95a:	c0 91 6f 02 	lds	r28, 0x026F	; 0x80026f <max_acceleration_mm_per_s2>
   2c95e:	d0 91 70 02 	lds	r29, 0x0270	; 0x800270 <max_acceleration_mm_per_s2+0x1>
   2c962:	82 ec       	ldi	r24, 0xC2	; 194
   2c964:	e8 2e       	mov	r14, r24
   2c966:	8d e0       	ldi	r24, 0x0D	; 13
   2c968:	f8 2e       	mov	r15, r24
   2c96a:	0e e4       	ldi	r16, 0x4E	; 78
   2c96c:	15 e0       	ldi	r17, 0x05	; 5
   2c96e:	6e 01       	movw	r12, r28
   2c970:	80 e1       	ldi	r24, 0x10	; 16
   2c972:	c8 0e       	add	r12, r24
   2c974:	d1 1c       	adc	r13, r1
	for(int8_t i=0; i < NUM_AXIS; i++)
        max_acceleration_steps_per_s2[i] = max_acceleration_mm_per_s2[i] * cs.axis_steps_per_mm[i];
   2c976:	69 91       	ld	r22, Y+
   2c978:	79 91       	ld	r23, Y+
   2c97a:	89 91       	ld	r24, Y+
   2c97c:	99 91       	ld	r25, Y+
   2c97e:	f7 01       	movw	r30, r14
   2c980:	81 90       	ld	r8, Z+
   2c982:	91 90       	ld	r9, Z+
   2c984:	a1 90       	ld	r10, Z+
   2c986:	b1 90       	ld	r11, Z+
   2c988:	7f 01       	movw	r14, r30
   2c98a:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2c98e:	a5 01       	movw	r20, r10
   2c990:	94 01       	movw	r18, r8
   2c992:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2c996:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   2c99a:	f8 01       	movw	r30, r16
   2c99c:	61 93       	st	Z+, r22
   2c99e:	71 93       	st	Z+, r23
   2c9a0:	81 93       	st	Z+, r24
   2c9a2:	91 93       	st	Z+, r25
   2c9a4:	8f 01       	movw	r16, r30
#endif //PREVENT_DANGEROUS_EXTRUDE

// Calculate the steps/s^2 acceleration rates, based on the mm/s^s
void reset_acceleration_rates()
{
	for(int8_t i=0; i < NUM_AXIS; i++)
   2c9a6:	cc 15       	cp	r28, r12
   2c9a8:	dd 05       	cpc	r29, r13
   2c9aa:	29 f7       	brne	.-54     	; 0x2c976 <reset_acceleration_rates()+0x34>
        max_acceleration_steps_per_s2[i] = max_acceleration_mm_per_s2[i] * cs.axis_steps_per_mm[i];
}
   2c9ac:	df 91       	pop	r29
   2c9ae:	cf 91       	pop	r28
   2c9b0:	1f 91       	pop	r17
   2c9b2:	0f 91       	pop	r16
   2c9b4:	ff 90       	pop	r15
   2c9b6:	ef 90       	pop	r14
   2c9b8:	df 90       	pop	r13
   2c9ba:	cf 90       	pop	r12
   2c9bc:	bf 90       	pop	r11
   2c9be:	af 90       	pop	r10
   2c9c0:	9f 90       	pop	r9
   2c9c2:	8f 90       	pop	r8
   2c9c4:	08 95       	ret

0002c9c6 <update_mode_profile()>:

#ifdef TMC2130
void update_mode_profile()
{
	if (tmc2130_mode == TMC2130_MODE_NORMAL)
   2c9c6:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
   2c9ca:	81 11       	cpse	r24, r1
   2c9cc:	0e c0       	rjmp	.+28     	; 0x2c9ea <update_mode_profile()+0x24>
	{
		max_feedrate = cs.max_feedrate_normal;
   2c9ce:	82 ed       	ldi	r24, 0xD2	; 210
   2c9d0:	9d e0       	ldi	r25, 0x0D	; 13
   2c9d2:	90 93 72 02 	sts	0x0272, r25	; 0x800272 <max_feedrate+0x1>
   2c9d6:	80 93 71 02 	sts	0x0271, r24	; 0x800271 <max_feedrate>
		max_acceleration_mm_per_s2 = cs.max_acceleration_mm_per_s2_normal;
   2c9da:	82 ee       	ldi	r24, 0xE2	; 226
   2c9dc:	9d e0       	ldi	r25, 0x0D	; 13
	}
	else if (tmc2130_mode == TMC2130_MODE_SILENT)
	{
		max_feedrate = cs.max_feedrate_silent;
		max_acceleration_mm_per_s2 = cs.max_acceleration_mm_per_s2_silent;
   2c9de:	90 93 70 02 	sts	0x0270, r25	; 0x800270 <max_acceleration_mm_per_s2+0x1>
   2c9e2:	80 93 6f 02 	sts	0x026F, r24	; 0x80026f <max_acceleration_mm_per_s2>
	}
	reset_acceleration_rates();
   2c9e6:	0d 94 a1 64 	jmp	0x2c942	; 0x2c942 <reset_acceleration_rates()>
	if (tmc2130_mode == TMC2130_MODE_NORMAL)
	{
		max_feedrate = cs.max_feedrate_normal;
		max_acceleration_mm_per_s2 = cs.max_acceleration_mm_per_s2_normal;
	}
	else if (tmc2130_mode == TMC2130_MODE_SILENT)
   2c9ea:	81 30       	cpi	r24, 0x01	; 1
   2c9ec:	e1 f7       	brne	.-8      	; 0x2c9e6 <update_mode_profile()+0x20>
	{
		max_feedrate = cs.max_feedrate_silent;
   2c9ee:	8a e5       	ldi	r24, 0x5A	; 90
   2c9f0:	9e e0       	ldi	r25, 0x0E	; 14
   2c9f2:	90 93 72 02 	sts	0x0272, r25	; 0x800272 <max_feedrate+0x1>
   2c9f6:	80 93 71 02 	sts	0x0271, r24	; 0x800271 <max_feedrate>
		max_acceleration_mm_per_s2 = cs.max_acceleration_mm_per_s2_silent;
   2c9fa:	8a e6       	ldi	r24, 0x6A	; 106
   2c9fc:	9e e0       	ldi	r25, 0x0E	; 14
   2c9fe:	ef cf       	rjmp	.-34     	; 0x2c9de <update_mode_profile()+0x18>

0002ca00 <plan_set_e_position(float const&)>:
}

void plan_set_e_position(const float &e)
{
  #ifdef LIN_ADVANCE
  position_float[E_AXIS] = e;
   2ca00:	fc 01       	movw	r30, r24
   2ca02:	40 81       	ld	r20, Z
   2ca04:	51 81       	ldd	r21, Z+1	; 0x01
   2ca06:	62 81       	ldd	r22, Z+2	; 0x02
   2ca08:	73 81       	ldd	r23, Z+3	; 0x03
   2ca0a:	40 93 d9 04 	sts	0x04D9, r20	; 0x8004d9 <position_float+0xc>
   2ca0e:	50 93 da 04 	sts	0x04DA, r21	; 0x8004da <position_float+0xd>
   2ca12:	60 93 db 04 	sts	0x04DB, r22	; 0x8004db <position_float+0xe>
   2ca16:	70 93 dc 04 	sts	0x04DC, r23	; 0x8004dc <position_float+0xf>
  #endif
  position[E_AXIS] = lround(e*cs.axis_steps_per_mm[E_AXIS]);
   2ca1a:	20 91 ce 0d 	lds	r18, 0x0DCE	; 0x800dce <cs+0x10>
   2ca1e:	30 91 cf 0d 	lds	r19, 0x0DCF	; 0x800dcf <cs+0x11>
   2ca22:	40 91 d0 0d 	lds	r20, 0x0DD0	; 0x800dd0 <cs+0x12>
   2ca26:	50 91 d1 0d 	lds	r21, 0x0DD1	; 0x800dd1 <cs+0x13>
   2ca2a:	60 81       	ld	r22, Z
   2ca2c:	71 81       	ldd	r23, Z+1	; 0x01
   2ca2e:	82 81       	ldd	r24, Z+2	; 0x02
   2ca30:	93 81       	ldd	r25, Z+3	; 0x03
   2ca32:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2ca36:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   2ca3a:	e3 ea       	ldi	r30, 0xA3	; 163
   2ca3c:	f6 e0       	ldi	r31, 0x06	; 6
   2ca3e:	64 87       	std	Z+12, r22	; 0x0c
   2ca40:	75 87       	std	Z+13, r23	; 0x0d
   2ca42:	86 87       	std	Z+14, r24	; 0x0e
   2ca44:	97 87       	std	Z+15, r25	; 0x0f
  CRITICAL_SECTION_END;
}

void st_set_e_position(const long &e)
{
  CRITICAL_SECTION_START;
   2ca46:	8f b7       	in	r24, 0x3f	; 63
   2ca48:	f8 94       	cli
  count_position[E_AXIS] = e;
   2ca4a:	44 85       	ldd	r20, Z+12	; 0x0c
   2ca4c:	55 85       	ldd	r21, Z+13	; 0x0d
   2ca4e:	66 85       	ldd	r22, Z+14	; 0x0e
   2ca50:	77 85       	ldd	r23, Z+15	; 0x0f
   2ca52:	40 93 bf 06 	sts	0x06BF, r20	; 0x8006bf <count_position+0xc>
   2ca56:	50 93 c0 06 	sts	0x06C0, r21	; 0x8006c0 <count_position+0xd>
   2ca5a:	60 93 c1 06 	sts	0x06C1, r22	; 0x8006c1 <count_position+0xe>
   2ca5e:	70 93 c2 06 	sts	0x06C2, r23	; 0x8006c2 <count_position+0xf>
  CRITICAL_SECTION_END;
   2ca62:	8f bf       	out	0x3f, r24	; 63
  st_set_e_position(position[E_AXIS]);
}
   2ca64:	08 95       	ret

0002ca66 <plan_set_z_position(float const&)>:

// Only useful in the bed leveling routine, when the mesh bed leveling is off.
void plan_set_z_position(const float &z)
{
  #ifdef LIN_ADVANCE
  position_float[Z_AXIS] = z;
   2ca66:	fc 01       	movw	r30, r24
   2ca68:	40 81       	ld	r20, Z
   2ca6a:	51 81       	ldd	r21, Z+1	; 0x01
   2ca6c:	62 81       	ldd	r22, Z+2	; 0x02
   2ca6e:	73 81       	ldd	r23, Z+3	; 0x03
   2ca70:	40 93 d5 04 	sts	0x04D5, r20	; 0x8004d5 <position_float+0x8>
   2ca74:	50 93 d6 04 	sts	0x04D6, r21	; 0x8004d6 <position_float+0x9>
   2ca78:	60 93 d7 04 	sts	0x04D7, r22	; 0x8004d7 <position_float+0xa>
   2ca7c:	70 93 d8 04 	sts	0x04D8, r23	; 0x8004d8 <position_float+0xb>
  #endif
  position[Z_AXIS] = lround(z*cs.axis_steps_per_mm[Z_AXIS]);
   2ca80:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   2ca84:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   2ca88:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   2ca8c:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   2ca90:	60 81       	ld	r22, Z
   2ca92:	71 81       	ldd	r23, Z+1	; 0x01
   2ca94:	82 81       	ldd	r24, Z+2	; 0x02
   2ca96:	93 81       	ldd	r25, Z+3	; 0x03
   2ca98:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2ca9c:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   2caa0:	60 93 ab 06 	sts	0x06AB, r22	; 0x8006ab <position+0x8>
   2caa4:	70 93 ac 06 	sts	0x06AC, r23	; 0x8006ac <position+0x9>
   2caa8:	80 93 ad 06 	sts	0x06AD, r24	; 0x8006ad <position+0xa>
   2caac:	90 93 ae 06 	sts	0x06AE, r25	; 0x8006ae <position+0xb>
  st_set_position(position);
   2cab0:	0d 94 2a 88 	jmp	0x31054	; 0x31054 <st_set_position(long const*) [clone .constprop.151]>

0002cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>:
 * the value zero, false, is returned for failure.
 * Reasons for failure include this file is already open, \a dirFile is not
 * a directory, \a path is invalid, the file does not exist
 * or can't be opened in the access mode specified by oflag.
 */
bool SdBaseFile::open(SdBaseFile* dirFile, const char* path, uint8_t oflag) {
   2cab4:	2f 92       	push	r2
   2cab6:	3f 92       	push	r3
   2cab8:	4f 92       	push	r4
   2caba:	5f 92       	push	r5
   2cabc:	6f 92       	push	r6
   2cabe:	7f 92       	push	r7
   2cac0:	8f 92       	push	r8
   2cac2:	9f 92       	push	r9
   2cac4:	af 92       	push	r10
   2cac6:	bf 92       	push	r11
   2cac8:	cf 92       	push	r12
   2caca:	df 92       	push	r13
   2cacc:	ef 92       	push	r14
   2cace:	ff 92       	push	r15
   2cad0:	0f 93       	push	r16
   2cad2:	1f 93       	push	r17
   2cad4:	cf 93       	push	r28
   2cad6:	df 93       	push	r29
   2cad8:	cd b7       	in	r28, 0x3d	; 61
   2cada:	de b7       	in	r29, 0x3e	; 62
   2cadc:	c2 54       	subi	r28, 0x42	; 66
   2cade:	d1 09       	sbc	r29, r1
   2cae0:	0f b6       	in	r0, 0x3f	; 63
   2cae2:	f8 94       	cli
   2cae4:	de bf       	out	0x3e, r29	; 62
   2cae6:	0f be       	out	0x3f, r0	; 63
   2cae8:	cd bf       	out	0x3d, r28	; 61
   2caea:	4c 01       	movw	r8, r24
   2caec:	5b 01       	movw	r10, r22
   2caee:	6a 01       	movw	r12, r20
   2caf0:	32 2e       	mov	r3, r18
 * \brief Base class for SdFile with Print and C++ streams.
 */
class SdBaseFile {
 public:
  /** Create an instance. */
  SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {}
   2caf2:	19 82       	std	Y+1, r1	; 0x01
   2caf4:	1c 82       	std	Y+4, r1	; 0x04
   2caf6:	1c 8e       	std	Y+28, r1	; 0x1c
   2caf8:	1f 8e       	std	Y+31, r1	; 0x1f
  uint8_t dname[11];
  SdBaseFile dir1, dir2;
  SdBaseFile *parent = dirFile;
  SdBaseFile *sub = &dir1;

  if (!dirFile) goto fail;
   2cafa:	67 2b       	or	r22, r23
   2cafc:	21 f5       	brne	.+72     	; 0x2cb46 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x92>
    sub = parent != &dir1 ? &dir1 : &dir2;
  }
  return open(parent, dname, oflag);

 fail:
  return false;
   2cafe:	10 e0       	ldi	r17, 0x00	; 0
 * a directory, \a path is invalid, the file does not exist
 * or can't be opened in the access mode specified by oflag.
 */
bool SdBaseFile::open(SdBaseFile* dirFile, const char* path, uint8_t oflag) {
  uint8_t dname[11];
  SdBaseFile dir1, dir2;
   2cb00:	ce 01       	movw	r24, r28
   2cb02:	4c 96       	adiw	r24, 0x1c	; 28
   2cb04:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
   2cb08:	ce 01       	movw	r24, r28
   2cb0a:	01 96       	adiw	r24, 0x01	; 1
   2cb0c:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
  }
  return open(parent, dname, oflag);

 fail:
  return false;
}
   2cb10:	81 2f       	mov	r24, r17
   2cb12:	ce 5b       	subi	r28, 0xBE	; 190
   2cb14:	df 4f       	sbci	r29, 0xFF	; 255
   2cb16:	0f b6       	in	r0, 0x3f	; 63
   2cb18:	f8 94       	cli
   2cb1a:	de bf       	out	0x3e, r29	; 62
   2cb1c:	0f be       	out	0x3f, r0	; 63
   2cb1e:	cd bf       	out	0x3d, r28	; 61
   2cb20:	df 91       	pop	r29
   2cb22:	cf 91       	pop	r28
   2cb24:	1f 91       	pop	r17
   2cb26:	0f 91       	pop	r16
   2cb28:	ff 90       	pop	r15
   2cb2a:	ef 90       	pop	r14
   2cb2c:	df 90       	pop	r13
   2cb2e:	cf 90       	pop	r12
   2cb30:	bf 90       	pop	r11
   2cb32:	af 90       	pop	r10
   2cb34:	9f 90       	pop	r9
   2cb36:	8f 90       	pop	r8
   2cb38:	7f 90       	pop	r7
   2cb3a:	6f 90       	pop	r6
   2cb3c:	5f 90       	pop	r5
   2cb3e:	4f 90       	pop	r4
   2cb40:	3f 90       	pop	r3
   2cb42:	2f 90       	pop	r2
   2cb44:	08 95       	ret
  SdBaseFile *sub = &dir1;

  if (!dirFile) goto fail;

  // error if already open
  if (isOpen()) goto fail;
   2cb46:	fc 01       	movw	r30, r24
   2cb48:	83 81       	ldd	r24, Z+3	; 0x03
   2cb4a:	81 11       	cpse	r24, r1
   2cb4c:	d8 cf       	rjmp	.-80     	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>

  if (*path == '/') {
   2cb4e:	fa 01       	movw	r30, r20
   2cb50:	80 81       	ld	r24, Z
   2cb52:	8f 32       	cpi	r24, 0x2F	; 47
   2cb54:	c1 f4       	brne	.+48     	; 0x2cb86 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xd2>
   2cb56:	ca 01       	movw	r24, r20
   2cb58:	6c 01       	movw	r12, r24
   2cb5a:	01 96       	adiw	r24, 0x01	; 1
    while (*path == '/') path++;
   2cb5c:	f6 01       	movw	r30, r12
   2cb5e:	20 81       	ld	r18, Z
   2cb60:	2f 32       	cpi	r18, 0x2F	; 47
   2cb62:	d1 f3       	breq	.-12     	; 0x2cb58 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xa4>
  bool isOpen() const {return type_ != FAT_FILE_TYPE_CLOSED;}
  /** \return True if this is a subdirectory else false. */
  bool isSubDir() const {return type_ == FAT_FILE_TYPE_SUBDIR;}
  /** \return True if this is the root directory. */
  bool isRoot() const {
    return type_ == FAT_FILE_TYPE_ROOT_FIXED || type_ == FAT_FILE_TYPE_ROOT32;
   2cb64:	f5 01       	movw	r30, r10
   2cb66:	83 81       	ldd	r24, Z+3	; 0x03
   2cb68:	82 50       	subi	r24, 0x02	; 2
    if (!dirFile->isRoot()) {
   2cb6a:	82 30       	cpi	r24, 0x02	; 2
   2cb6c:	60 f0       	brcs	.+24     	; 0x2cb86 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xd2>
      if (!dir2.openRoot(dirFile->vol_)) goto fail;
   2cb6e:	61 8d       	ldd	r22, Z+25	; 0x19
   2cb70:	72 8d       	ldd	r23, Z+26	; 0x1a
   2cb72:	ce 01       	movw	r24, r28
   2cb74:	4c 96       	adiw	r24, 0x1c	; 28
   2cb76:	0f 94 0b 57 	call	0x2ae16	; 0x2ae16 <SdBaseFile::openRoot(SdVolume*)>
      parent = &dir2;
   2cb7a:	8e 01       	movw	r16, r28
   2cb7c:	04 5e       	subi	r16, 0xE4	; 228
   2cb7e:	1f 4f       	sbci	r17, 0xFF	; 255
  if (isOpen()) goto fail;

  if (*path == '/') {
    while (*path == '/') path++;
    if (!dirFile->isRoot()) {
      if (!dir2.openRoot(dirFile->vol_)) goto fail;
   2cb80:	81 11       	cpse	r24, r1
   2cb82:	02 c0       	rjmp	.+4      	; 0x2cb88 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xd4>
   2cb84:	bc cf       	rjmp	.-136    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
  // error if already open
  if (isOpen()) goto fail;

  if (*path == '/') {
    while (*path == '/') path++;
    if (!dirFile->isRoot()) {
   2cb86:	85 01       	movw	r16, r10
    while (*path == '/') path++;
    if (!*path) break;
    if (!sub->open(parent, dname, O_READ)) goto fail;
    if (parent != dirFile) parent->close();
    parent = sub;
    sub = parent != &dir1 ? &dir1 : &dir2;
   2cb88:	ce 01       	movw	r24, r28
   2cb8a:	01 96       	adiw	r24, 0x01	; 1
   2cb8c:	7c 01       	movw	r14, r24
   2cb8e:	3c 01       	movw	r6, r24
   2cb90:	2e 01       	movw	r4, r28
   2cb92:	9c e1       	ldi	r25, 0x1C	; 28
   2cb94:	49 0e       	add	r4, r25
   2cb96:	51 1c       	adc	r5, r1
   2cb98:	23 96       	adiw	r28, 0x03	; 3
   2cb9a:	ef ae       	std	Y+63, r14	; 0x3f
   2cb9c:	23 97       	sbiw	r28, 0x03	; 3
   2cb9e:	2f 2c       	mov	r2, r15
   2cba0:	fe 01       	movw	r30, r28
   2cba2:	f7 96       	adiw	r30, 0x37	; 55
   2cba4:	cf 01       	movw	r24, r30
   2cba6:	0b 96       	adiw	r24, 0x0b	; 11
   2cba8:	af 01       	movw	r20, r30
bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) {
  uint8_t c;
  uint8_t n = 7;  // max index for part before dot
  uint8_t i = 0;
  // blank fill name and extension
  while (i < 11) name[i++] = ' ';
   2cbaa:	20 e2       	ldi	r18, 0x20	; 32
   2cbac:	21 93       	st	Z+, r18
   2cbae:	e8 17       	cp	r30, r24
   2cbb0:	f9 07       	cpc	r31, r25
   2cbb2:	d9 f7       	brne	.-10     	; 0x2cbaa <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xf6>
   2cbb4:	96 01       	movw	r18, r12
  i = 0;
   2cbb6:	90 e0       	ldi	r25, 0x00	; 0
}
//------------------------------------------------------------------------------
// format directory name field from a 8.3 name string
bool SdBaseFile::make83Name(const char* str, uint8_t* name, const char** ptr) {
  uint8_t c;
  uint8_t n = 7;  // max index for part before dot
   2cbb8:	67 e0       	ldi	r22, 0x07	; 7
  uint8_t i = 0;
  // blank fill name and extension
  while (i < 11) name[i++] = ' ';
  i = 0;
  while (*str != '\0' && *str != '/') {
   2cbba:	d9 01       	movw	r26, r18
   2cbbc:	8d 91       	ld	r24, X+
   2cbbe:	88 23       	and	r24, r24
   2cbc0:	49 f1       	breq	.+82     	; 0x2cc14 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x160>
   2cbc2:	8f 32       	cpi	r24, 0x2F	; 47
   2cbc4:	39 f1       	breq	.+78     	; 0x2cc14 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x160>
    c = *str++;
   2cbc6:	28 2f       	mov	r18, r24
    if (c == '.') {
   2cbc8:	8e 32       	cpi	r24, 0x2E	; 46
   2cbca:	39 f4       	brne	.+14     	; 0x2cbda <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x126>
      if (n == 10) goto fail;  // only one dot allowed
   2cbcc:	6a 30       	cpi	r22, 0x0A	; 10
   2cbce:	09 f4       	brne	.+2      	; 0x2cbd2 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x11e>
   2cbd0:	96 cf       	rjmp	.-212    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
      n = 10;  // max index for full 8.3 name
      i = 8;   // place for extension
   2cbd2:	98 e0       	ldi	r25, 0x08	; 8
  i = 0;
  while (*str != '\0' && *str != '/') {
    c = *str++;
    if (c == '.') {
      if (n == 10) goto fail;  // only one dot allowed
      n = 10;  // max index for full 8.3 name
   2cbd4:	6a e0       	ldi	r22, 0x0A	; 10
   2cbd6:	9d 01       	movw	r18, r26
   2cbd8:	f0 cf       	rjmp	.-32     	; 0x2cbba <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x106>
   2cbda:	e7 e6       	ldi	r30, 0x67	; 103
   2cbdc:	f1 e9       	ldi	r31, 0x91	; 145
      //PGM_P p = PSTR("|<>^+=?/[];,*\"\\");
      // 2019-08-27 really?
      // Microsoft defines, that only a subset of these characters is not allowed.
      PGM_P p = PSTR("|<>?/*\"\\");
      uint8_t b;
      while ((b = pgm_read_byte(p++))) if (b == c) goto fail;
   2cbde:	34 91       	lpm	r19, Z
   2cbe0:	33 23       	and	r19, r19
   2cbe2:	21 f0       	breq	.+8      	; 0x2cbec <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x138>
   2cbe4:	31 96       	adiw	r30, 0x01	; 1
   2cbe6:	83 13       	cpse	r24, r19
   2cbe8:	fa cf       	rjmp	.-12     	; 0x2cbde <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x12a>
   2cbea:	89 cf       	rjmp	.-238    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
      // check size and only allow ASCII printable characters
      if (i > n || c < 0X21 || c > 0X7E)goto fail;
   2cbec:	69 17       	cp	r22, r25
   2cbee:	08 f4       	brcc	.+2      	; 0x2cbf2 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x13e>
   2cbf0:	86 cf       	rjmp	.-244    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
   2cbf2:	3f ed       	ldi	r19, 0xDF	; 223
   2cbf4:	38 0f       	add	r19, r24
   2cbf6:	3e 35       	cpi	r19, 0x5E	; 94
   2cbf8:	08 f0       	brcs	.+2      	; 0x2cbfc <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x148>
   2cbfa:	81 cf       	rjmp	.-254    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
      // only upper case allowed in 8.3 names - convert lower to upper
      name[i++] = (c < 'a' || c > 'z') ?  (c) : (c + ('A' - 'a'));
   2cbfc:	3f e9       	ldi	r19, 0x9F	; 159
   2cbfe:	38 0f       	add	r19, r24
   2cc00:	3a 31       	cpi	r19, 0x1A	; 26
   2cc02:	10 f4       	brcc	.+4      	; 0x2cc08 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x154>
   2cc04:	20 ee       	ldi	r18, 0xE0	; 224
   2cc06:	28 0f       	add	r18, r24
   2cc08:	fa 01       	movw	r30, r20
   2cc0a:	e9 0f       	add	r30, r25
   2cc0c:	f1 1d       	adc	r31, r1
   2cc0e:	20 83       	st	Z, r18
   2cc10:	9f 5f       	subi	r25, 0xFF	; 255
   2cc12:	e1 cf       	rjmp	.-62     	; 0x2cbd6 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x122>
      if (!dir2.openRoot(dirFile->vol_)) goto fail;
      parent = &dir2;
    }
  }
  while (1) {
    if (!make83Name(path, dname, &path)) goto fail;
   2cc14:	8f a9       	ldd	r24, Y+55	; 0x37
   2cc16:	80 32       	cpi	r24, 0x20	; 32
   2cc18:	09 f4       	brne	.+2      	; 0x2cc1c <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x168>
   2cc1a:	71 cf       	rjmp	.-286    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
   2cc1c:	69 01       	movw	r12, r18
    while (*path == '/') path++;
   2cc1e:	f9 01       	movw	r30, r18
   2cc20:	80 81       	ld	r24, Z
   2cc22:	2f 5f       	subi	r18, 0xFF	; 255
   2cc24:	3f 4f       	sbci	r19, 0xFF	; 255
   2cc26:	8f 32       	cpi	r24, 0x2F	; 47
   2cc28:	c9 f3       	breq	.-14     	; 0x2cc1c <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x168>
    if (!*path) break;
   2cc2a:	88 23       	and	r24, r24
   2cc2c:	d9 f0       	breq	.+54     	; 0x2cc64 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x1b0>
    if (!sub->open(parent, dname, O_READ)) goto fail;
   2cc2e:	21 e0       	ldi	r18, 0x01	; 1
   2cc30:	b8 01       	movw	r22, r16
   2cc32:	c7 01       	movw	r24, r14
   2cc34:	0f 94 79 5b 	call	0x2b6f2	; 0x2b6f2 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)>
   2cc38:	88 23       	and	r24, r24
   2cc3a:	09 f4       	brne	.+2      	; 0x2cc3e <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x18a>
   2cc3c:	60 cf       	rjmp	.-320    	; 0x2cafe <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4a>
    if (parent != dirFile) parent->close();
   2cc3e:	0a 15       	cp	r16, r10
   2cc40:	1b 05       	cpc	r17, r11
   2cc42:	19 f0       	breq	.+6      	; 0x2cc4a <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x196>
   2cc44:	c8 01       	movw	r24, r16
   2cc46:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
    parent = sub;
    sub = parent != &dir1 ? &dir1 : &dir2;
   2cc4a:	94 2d       	mov	r25, r4
   2cc4c:	85 2d       	mov	r24, r5
   2cc4e:	6e 14       	cp	r6, r14
   2cc50:	7f 04       	cpc	r7, r15
   2cc52:	21 f0       	breq	.+8      	; 0x2cc5c <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x1a8>
   2cc54:	23 96       	adiw	r28, 0x03	; 3
   2cc56:	9f ad       	ldd	r25, Y+63	; 0x3f
   2cc58:	23 97       	sbiw	r28, 0x03	; 3
   2cc5a:	82 2d       	mov	r24, r2
   2cc5c:	87 01       	movw	r16, r14
   2cc5e:	e9 2e       	mov	r14, r25
   2cc60:	f8 2e       	mov	r15, r24
   2cc62:	9e cf       	rjmp	.-196    	; 0x2cba0 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0xec>
  }
  return open(parent, dname, oflag);
   2cc64:	23 2d       	mov	r18, r3
   2cc66:	b8 01       	movw	r22, r16
   2cc68:	c4 01       	movw	r24, r8
   2cc6a:	0f 94 79 5b 	call	0x2b6f2	; 0x2b6f2 <SdBaseFile::open(SdBaseFile*, unsigned char const*, unsigned char)>
   2cc6e:	18 2f       	mov	r17, r24
   2cc70:	47 cf       	rjmp	.-370    	; 0x2cb00 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)+0x4c>

0002cc72 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]>:
float median(float *points, const uint8_t num_points){
	sort(points, num_points);
	return points[num_points / 2];
}

float __attribute__ ((noinline)) CLAMP_median(float *shifts, uint8_t blocks, float norm){
   2cc72:	2f 92       	push	r2
   2cc74:	3f 92       	push	r3
   2cc76:	4f 92       	push	r4
   2cc78:	5f 92       	push	r5
   2cc7a:	6f 92       	push	r6
   2cc7c:	7f 92       	push	r7
   2cc7e:	8f 92       	push	r8
   2cc80:	9f 92       	push	r9
   2cc82:	af 92       	push	r10
   2cc84:	bf 92       	push	r11
   2cc86:	cf 92       	push	r12
   2cc88:	df 92       	push	r13
   2cc8a:	ef 92       	push	r14
   2cc8c:	ff 92       	push	r15
   2cc8e:	0f 93       	push	r16
   2cc90:	1f 93       	push	r17
   2cc92:	cf 93       	push	r28
   2cc94:	df 93       	push	r29
   2cc96:	00 d0       	rcall	.+0      	; 0x2cc98 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x26>
   2cc98:	1f 92       	push	r1
   2cc9a:	1f 92       	push	r1
   2cc9c:	cd b7       	in	r28, 0x3d	; 61
   2cc9e:	de b7       	in	r29, 0x3e	; 62
   2cca0:	1c 01       	movw	r2, r24
   2cca2:	2a 01       	movw	r4, r20
   2cca4:	3b 01       	movw	r6, r22
   2cca6:	00 e2       	ldi	r16, 0x20	; 32
   2cca8:	10 e0       	ldi	r17, 0x00	; 0

/// slow bubble sort but short
void sort(float *points, const uint8_t num_points){
	/// one direction bubble sort
	for (uint8_t i = 0; i < num_points; ++i){
		for (uint8_t j = 0; j < num_points - i - 1; ++j){
   2ccaa:	19 82       	std	Y+1, r1	; 0x01
   2ccac:	99 81       	ldd	r25, Y+1	; 0x01
   2ccae:	89 2f       	mov	r24, r25
   2ccb0:	90 e0       	ldi	r25, 0x00	; 0
   2ccb2:	9b 83       	std	Y+3, r25	; 0x03
   2ccb4:	8a 83       	std	Y+2, r24	; 0x02
   2ccb6:	80 17       	cp	r24, r16
   2ccb8:	91 07       	cpc	r25, r17
   2ccba:	9c f5       	brge	.+102    	; 0x2cd22 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0xb0>
			if (points[j] > points[j + 1])
   2ccbc:	88 0f       	add	r24, r24
   2ccbe:	99 1f       	adc	r25, r25
   2ccc0:	88 0f       	add	r24, r24
   2ccc2:	99 1f       	adc	r25, r25
   2ccc4:	9d 83       	std	Y+5, r25	; 0x05
   2ccc6:	8c 83       	std	Y+4, r24	; 0x04
   2ccc8:	82 0d       	add	r24, r2
   2ccca:	93 1d       	adc	r25, r3
   2cccc:	9b 83       	std	Y+3, r25	; 0x03
   2ccce:	8a 83       	std	Y+2, r24	; 0x02
   2ccd0:	fc 01       	movw	r30, r24
   2ccd2:	c0 80       	ld	r12, Z
   2ccd4:	d1 80       	ldd	r13, Z+1	; 0x01
   2ccd6:	e2 80       	ldd	r14, Z+2	; 0x02
   2ccd8:	f3 80       	ldd	r15, Z+3	; 0x03
   2ccda:	8c 81       	ldd	r24, Y+4	; 0x04
   2ccdc:	9d 81       	ldd	r25, Y+5	; 0x05
   2ccde:	04 96       	adiw	r24, 0x04	; 4
   2cce0:	82 0d       	add	r24, r2
   2cce2:	93 1d       	adc	r25, r3
   2cce4:	9d 83       	std	Y+5, r25	; 0x05
   2cce6:	8c 83       	std	Y+4, r24	; 0x04
   2cce8:	fc 01       	movw	r30, r24
   2ccea:	80 80       	ld	r8, Z
   2ccec:	91 80       	ldd	r9, Z+1	; 0x01
   2ccee:	a2 80       	ldd	r10, Z+2	; 0x02
   2ccf0:	b3 80       	ldd	r11, Z+3	; 0x03
   2ccf2:	a5 01       	movw	r20, r10
   2ccf4:	94 01       	movw	r18, r8
   2ccf6:	c7 01       	movw	r24, r14
   2ccf8:	b6 01       	movw	r22, r12
   2ccfa:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2ccfe:	18 16       	cp	r1, r24
   2cd00:	64 f4       	brge	.+24     	; 0x2cd1a <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0xa8>
				SWAP(points[j], points[j + 1]);
   2cd02:	ea 81       	ldd	r30, Y+2	; 0x02
   2cd04:	fb 81       	ldd	r31, Y+3	; 0x03
   2cd06:	80 82       	st	Z, r8
   2cd08:	91 82       	std	Z+1, r9	; 0x01
   2cd0a:	a2 82       	std	Z+2, r10	; 0x02
   2cd0c:	b3 82       	std	Z+3, r11	; 0x03
   2cd0e:	ec 81       	ldd	r30, Y+4	; 0x04
   2cd10:	fd 81       	ldd	r31, Y+5	; 0x05
   2cd12:	c0 82       	st	Z, r12
   2cd14:	d1 82       	std	Z+1, r13	; 0x01
   2cd16:	e2 82       	std	Z+2, r14	; 0x02
   2cd18:	f3 82       	std	Z+3, r15	; 0x03

/// slow bubble sort but short
void sort(float *points, const uint8_t num_points){
	/// one direction bubble sort
	for (uint8_t i = 0; i < num_points; ++i){
		for (uint8_t j = 0; j < num_points - i - 1; ++j){
   2cd1a:	f9 81       	ldd	r31, Y+1	; 0x01
   2cd1c:	ff 5f       	subi	r31, 0xFF	; 255
   2cd1e:	f9 83       	std	Y+1, r31	; 0x01
   2cd20:	c5 cf       	rjmp	.-118    	; 0x2ccac <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x3a>
   2cd22:	01 50       	subi	r16, 0x01	; 1
   2cd24:	11 09       	sbc	r17, r1
   2cd26:	08 f6       	brcc	.-126    	; 0x2ccaa <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x38>

/// sort array and returns median value
/// don't send empty array or nullptr
float median(float *points, const uint8_t num_points){
	sort(points, num_points);
	return points[num_points / 2];
   2cd28:	f1 01       	movw	r30, r2
   2cd2a:	e0 5c       	subi	r30, 0xC0	; 192
   2cd2c:	ff 4f       	sbci	r31, 0xFF	; 255
}

float __attribute__ ((noinline)) CLAMP_median(float *shifts, uint8_t blocks, float norm){
    const constexpr float max_change = 0.5f; ///< avoids too fast changes (avoid oscillation)
    return CLAMP( median(shifts, blocks) * norm, -max_change, max_change);
   2cd2e:	20 81       	ld	r18, Z
   2cd30:	31 81       	ldd	r19, Z+1	; 0x01
   2cd32:	42 81       	ldd	r20, Z+2	; 0x02
   2cd34:	53 81       	ldd	r21, Z+3	; 0x03
   2cd36:	c3 01       	movw	r24, r6
   2cd38:	b2 01       	movw	r22, r4
   2cd3a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2cd3e:	6b 01       	movw	r12, r22
   2cd40:	7c 01       	movw	r14, r24
   2cd42:	20 e0       	ldi	r18, 0x00	; 0
   2cd44:	30 e0       	ldi	r19, 0x00	; 0
   2cd46:	40 e0       	ldi	r20, 0x00	; 0
   2cd48:	5f eb       	ldi	r21, 0xBF	; 191
   2cd4a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2cd4e:	87 fd       	sbrc	r24, 7
   2cd50:	10 c0       	rjmp	.+32     	; 0x2cd72 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x100>
   2cd52:	20 e0       	ldi	r18, 0x00	; 0
   2cd54:	30 e0       	ldi	r19, 0x00	; 0
   2cd56:	40 e0       	ldi	r20, 0x00	; 0
   2cd58:	5f e3       	ldi	r21, 0x3F	; 63
   2cd5a:	c7 01       	movw	r24, r14
   2cd5c:	b6 01       	movw	r22, r12
   2cd5e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2cd62:	18 16       	cp	r1, r24
   2cd64:	5c f4       	brge	.+22     	; 0x2cd7c <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x10a>
   2cd66:	c1 2c       	mov	r12, r1
   2cd68:	d1 2c       	mov	r13, r1
   2cd6a:	e1 2c       	mov	r14, r1
   2cd6c:	8f e3       	ldi	r24, 0x3F	; 63
   2cd6e:	f8 2e       	mov	r15, r24
   2cd70:	05 c0       	rjmp	.+10     	; 0x2cd7c <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]+0x10a>
   2cd72:	c1 2c       	mov	r12, r1
   2cd74:	d1 2c       	mov	r13, r1
   2cd76:	e1 2c       	mov	r14, r1
   2cd78:	9f eb       	ldi	r25, 0xBF	; 191
   2cd7a:	f9 2e       	mov	r15, r25
}
   2cd7c:	c7 01       	movw	r24, r14
   2cd7e:	b6 01       	movw	r22, r12
   2cd80:	0f 90       	pop	r0
   2cd82:	0f 90       	pop	r0
   2cd84:	0f 90       	pop	r0
   2cd86:	0f 90       	pop	r0
   2cd88:	0f 90       	pop	r0
   2cd8a:	df 91       	pop	r29
   2cd8c:	cf 91       	pop	r28
   2cd8e:	1f 91       	pop	r17
   2cd90:	0f 91       	pop	r16
   2cd92:	ff 90       	pop	r15
   2cd94:	ef 90       	pop	r14
   2cd96:	df 90       	pop	r13
   2cd98:	cf 90       	pop	r12
   2cd9a:	bf 90       	pop	r11
   2cd9c:	af 90       	pop	r10
   2cd9e:	9f 90       	pop	r9
   2cda0:	8f 90       	pop	r8
   2cda2:	7f 90       	pop	r7
   2cda4:	6f 90       	pop	r6
   2cda6:	5f 90       	pop	r5
   2cda8:	4f 90       	pop	r4
   2cdaa:	3f 90       	pop	r3
   2cdac:	2f 90       	pop	r2
   2cdae:	08 95       	ret

0002cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>:
bool ProtocolLogic::Elapsed(uint32_t timeout) const {
    return _millis() >= (lastUARTActivityMs + timeout);
}

void ProtocolLogic::RecordUARTActivity() {
    lastUARTActivityMs = _millis();
   2cdb0:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2cdb4:	60 93 5a 13 	sts	0x135A, r22	; 0x80135a <MMU2::mmu2+0xf>
   2cdb8:	70 93 5b 13 	sts	0x135B, r23	; 0x80135b <MMU2::mmu2+0x10>
   2cdbc:	80 93 5c 13 	sts	0x135C, r24	; 0x80135c <MMU2::mmu2+0x11>
   2cdc0:	90 93 5d 13 	sts	0x135D, r25	; 0x80135d <MMU2::mmu2+0x12>
}
   2cdc4:	08 95       	ret

0002cdc6 <MMU2::ProtocolLogic::DecrementRetryAttempts() [clone .constprop.293]>:
    }
    return (uint8_t)ReqMsg().code;
}

void ProtocolLogic::DecrementRetryAttempts() {
    if (inAutoRetry && retryAttempts) {
   2cdc6:	80 91 a0 13 	lds	r24, 0x13A0	; 0x8013a0 <MMU2::mmu2+0x55>
   2cdca:	88 23       	and	r24, r24
   2cdcc:	69 f0       	breq	.+26     	; 0x2cde8 <MMU2::ProtocolLogic::DecrementRetryAttempts() [clone .constprop.293]+0x22>
   2cdce:	80 91 9f 13 	lds	r24, 0x139F	; 0x80139f <MMU2::mmu2+0x54>
   2cdd2:	88 23       	and	r24, r24
   2cdd4:	49 f0       	breq	.+18     	; 0x2cde8 <MMU2::ProtocolLogic::DecrementRetryAttempts() [clone .constprop.293]+0x22>
        SERIAL_ECHOLNPGM("DecrementRetryAttempts");
   2cdd6:	87 e5       	ldi	r24, 0x57	; 87
   2cdd8:	9a ea       	ldi	r25, 0xAA	; 170
   2cdda:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        retryAttempts--;
   2cdde:	80 91 9f 13 	lds	r24, 0x139F	; 0x80139f <MMU2::mmu2+0x54>
   2cde2:	81 50       	subi	r24, 0x01	; 1
   2cde4:	80 93 9f 13 	sts	0x139F, r24	; 0x80139f <MMU2::mmu2+0x54>
    }
}
   2cde8:	08 95       	ret

0002cdea <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]>:
        MMU2_ECHO_MSGLN(tmp);
    }
    strncpy(lastMsg, tmp, rqs);
}

void ProtocolLogic::LogError(const char *reason_P) {
   2cdea:	9f 92       	push	r9
   2cdec:	af 92       	push	r10
   2cdee:	bf 92       	push	r11
   2cdf0:	cf 92       	push	r12
   2cdf2:	df 92       	push	r13
   2cdf4:	ef 92       	push	r14
   2cdf6:	ff 92       	push	r15
   2cdf8:	0f 93       	push	r16
   2cdfa:	1f 93       	push	r17
   2cdfc:	cf 93       	push	r28
   2cdfe:	df 93       	push	r29
   2ce00:	cd b7       	in	r28, 0x3d	; 61
   2ce02:	de b7       	in	r29, 0x3e	; 62
   2ce04:	e0 97       	sbiw	r28, 0x30	; 48
   2ce06:	0f b6       	in	r0, 0x3f	; 63
   2ce08:	f8 94       	cli
   2ce0a:	de bf       	out	0x3e, r29	; 62
   2ce0c:	0f be       	out	0x3f, r0	; 63
   2ce0e:	cd bf       	out	0x3d, r28	; 61
   2ce10:	8c 01       	movw	r16, r24
    }
}

void ProtocolLogic::FormatLastReceivedBytes(char *dst) {
    for (uint8_t i = 0; i < lastReceivedBytes.size(); ++i) {
        uint8_t b = lastReceivedBytes[(lrb - i - 1) % lastReceivedBytes.size()];
   2ce12:	e0 90 88 13 	lds	r14, 0x1388	; 0x801388 <MMU2::mmu2+0x3d>
   2ce16:	fe 01       	movw	r30, r28
   2ce18:	31 96       	adiw	r30, 0x01	; 1
   2ce1a:	21 e0       	ldi	r18, 0x01	; 1
   2ce1c:	30 e0       	ldi	r19, 0x00	; 0
   2ce1e:	5f 01       	movw	r10, r30
   2ce20:	f1 2c       	mov	r15, r1
   2ce22:	40 e1       	ldi	r20, 0x10	; 16
   2ce24:	c4 2e       	mov	r12, r20
   2ce26:	d1 2c       	mov	r13, r1
        dst[i * 3] = NibbleToChar(b >> 4);
        dst[i * 3 + 1] = NibbleToChar(b & 0xf);
        dst[i * 3 + 2] = ' ';
   2ce28:	50 e2       	ldi	r21, 0x20	; 32
   2ce2a:	95 2e       	mov	r9, r21
    }
}

void ProtocolLogic::FormatLastReceivedBytes(char *dst) {
    for (uint8_t i = 0; i < lastReceivedBytes.size(); ++i) {
        uint8_t b = lastReceivedBytes[(lrb - i - 1) % lastReceivedBytes.size()];
   2ce2c:	c7 01       	movw	r24, r14
   2ce2e:	82 1b       	sub	r24, r18
   2ce30:	93 0b       	sbc	r25, r19
   2ce32:	b6 01       	movw	r22, r12
   2ce34:	0f 94 38 dd 	call	0x3ba70	; 0x3ba70 <__divmodhi4>
   2ce38:	dc 01       	movw	r26, r24
   2ce3a:	bb 27       	eor	r27, r27
   2ce3c:	a5 5b       	subi	r26, 0xB5	; 181
   2ce3e:	bc 4e       	sbci	r27, 0xEC	; 236
   2ce40:	9d 96       	adiw	r26, 0x2d	; 45
   2ce42:	8c 91       	ld	r24, X
        dst[i * 3] = NibbleToChar(b >> 4);
   2ce44:	48 2f       	mov	r20, r24
   2ce46:	50 e0       	ldi	r21, 0x00	; 0
   2ce48:	94 e0       	ldi	r25, 0x04	; 4
   2ce4a:	55 95       	asr	r21
   2ce4c:	47 95       	ror	r20
   2ce4e:	9a 95       	dec	r25
   2ce50:	e1 f7       	brne	.-8      	; 0x2ce4a <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0x60>
    lastReceivedBytes[lrb] = c;
    lrb = (lrb + 1) % lastReceivedBytes.size();
}

constexpr char NibbleToChar(uint8_t c) {
    switch (c) {
   2ce52:	96 ef       	ldi	r25, 0xF6	; 246
   2ce54:	94 0f       	add	r25, r20
   2ce56:	96 30       	cpi	r25, 0x06	; 6
   2ce58:	a8 f1       	brcs	.+106    	; 0x2cec4 <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0xda>
    case 5:
    case 6:
    case 7:
    case 8:
    case 9:
        return c + '0';
   2ce5a:	40 5d       	subi	r20, 0xD0	; 208
}

void ProtocolLogic::FormatLastReceivedBytes(char *dst) {
    for (uint8_t i = 0; i < lastReceivedBytes.size(); ++i) {
        uint8_t b = lastReceivedBytes[(lrb - i - 1) % lastReceivedBytes.size()];
        dst[i * 3] = NibbleToChar(b >> 4);
   2ce5c:	40 83       	st	Z, r20
        dst[i * 3 + 1] = NibbleToChar(b & 0xf);
   2ce5e:	8f 70       	andi	r24, 0x0F	; 15
    lastReceivedBytes[lrb] = c;
    lrb = (lrb + 1) % lastReceivedBytes.size();
}

constexpr char NibbleToChar(uint8_t c) {
    switch (c) {
   2ce60:	96 ef       	ldi	r25, 0xF6	; 246
   2ce62:	98 0f       	add	r25, r24
   2ce64:	96 30       	cpi	r25, 0x06	; 6
   2ce66:	80 f1       	brcs	.+96     	; 0x2cec8 <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0xde>
    case 5:
    case 6:
    case 7:
    case 8:
    case 9:
        return c + '0';
   2ce68:	80 5d       	subi	r24, 0xD0	; 208

void ProtocolLogic::FormatLastReceivedBytes(char *dst) {
    for (uint8_t i = 0; i < lastReceivedBytes.size(); ++i) {
        uint8_t b = lastReceivedBytes[(lrb - i - 1) % lastReceivedBytes.size()];
        dst[i * 3] = NibbleToChar(b >> 4);
        dst[i * 3 + 1] = NibbleToChar(b & 0xf);
   2ce6a:	81 83       	std	Z+1, r24	; 0x01
        dst[i * 3 + 2] = ' ';
   2ce6c:	92 82       	std	Z+2, r9	; 0x02
   2ce6e:	2f 5f       	subi	r18, 0xFF	; 255
   2ce70:	3f 4f       	sbci	r19, 0xFF	; 255
   2ce72:	33 96       	adiw	r30, 0x03	; 3
        return 0;
    }
}

void ProtocolLogic::FormatLastReceivedBytes(char *dst) {
    for (uint8_t i = 0; i < lastReceivedBytes.size(); ++i) {
   2ce74:	21 31       	cpi	r18, 0x11	; 17
   2ce76:	31 05       	cpc	r19, r1
   2ce78:	c9 f6       	brne	.-78     	; 0x2ce2c <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0x42>
        uint8_t b = lastReceivedBytes[(lrb - i - 1) % lastReceivedBytes.size()];
        dst[i * 3] = NibbleToChar(b >> 4);
        dst[i * 3 + 1] = NibbleToChar(b & 0xf);
        dst[i * 3 + 2] = ' ';
    }
    dst[(lastReceivedBytes.size() - 1) * 3 + 2] = 0; // terminate properly
   2ce7a:	18 aa       	std	Y+48, r1	; 0x30

void ProtocolLogic::LogError(const char *reason_P) {
    char lrb[lastReceivedBytes.size() * 3];
    FormatLastReceivedBytes(lrb);

    MMU2_ERROR_MSGRPGM(reason_P);
   2ce7c:	80 ed       	ldi	r24, 0xD0	; 208
   2ce7e:	9a ea       	ldi	r25, 0xAA	; 170
   2ce80:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   2ce84:	8a ec       	ldi	r24, 0xCA	; 202
   2ce86:	9a ea       	ldi	r25, 0xAA	; 170
   2ce88:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   2ce8c:	c8 01       	movw	r24, r16
   2ce8e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOPGM(", last bytes: ");
   2ce92:	82 e8       	ldi	r24, 0x82	; 130
   2ce94:	9a ea       	ldi	r25, 0xAA	; 170
   2ce96:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLN(lrb);
   2ce9a:	c5 01       	movw	r24, r10
   2ce9c:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
}
   2cea0:	e0 96       	adiw	r28, 0x30	; 48
   2cea2:	0f b6       	in	r0, 0x3f	; 63
   2cea4:	f8 94       	cli
   2cea6:	de bf       	out	0x3e, r29	; 62
   2cea8:	0f be       	out	0x3f, r0	; 63
   2ceaa:	cd bf       	out	0x3d, r28	; 61
   2ceac:	df 91       	pop	r29
   2ceae:	cf 91       	pop	r28
   2ceb0:	1f 91       	pop	r17
   2ceb2:	0f 91       	pop	r16
   2ceb4:	ff 90       	pop	r15
   2ceb6:	ef 90       	pop	r14
   2ceb8:	df 90       	pop	r13
   2ceba:	cf 90       	pop	r12
   2cebc:	bf 90       	pop	r11
   2cebe:	af 90       	pop	r10
   2cec0:	9f 90       	pop	r9
   2cec2:	08 95       	ret
    case 11:
    case 12:
    case 13:
    case 14:
    case 15:
        return (c - 10) + 'a';
   2cec4:	49 5a       	subi	r20, 0xA9	; 169
   2cec6:	ca cf       	rjmp	.-108    	; 0x2ce5c <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0x72>
   2cec8:	89 5a       	subi	r24, 0xA9	; 169
   2ceca:	cf cf       	rjmp	.-98     	; 0x2ce6a <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]+0x80>

0002cecc <MMU2::ProtocolLogic::SuppressShortDropOuts(char const*, MMU2::StepStatus) [clone .constprop.310]>:
    char lrb[lastReceivedBytes.size()];
    FormatLastResponseMsgAndClearLRB(lrb);
    MMU2_ECHO_MSGLN(lrb);
}

StepStatus ProtocolLogic::SuppressShortDropOuts(const char *msg_P, StepStatus ss) {
   2cecc:	9c 01       	movw	r18, r24
    SERIAL_ECHOLNPGM("RSTCommTimeout");
    dataTO.Reset();
}

bool DropOutFilter::Record(StepStatus ss) {
    if (occurrences == maxOccurrences) {
   2cece:	90 91 5f 13 	lds	r25, 0x135F	; 0x80135f <MMU2::mmu2+0x14>
   2ced2:	9a 30       	cpi	r25, 0x0A	; 10
   2ced4:	11 f4       	brne	.+4      	; 0x2ceda <MMU2::ProtocolLogic::SuppressShortDropOuts(char const*, MMU2::StepStatus) [clone .constprop.310]+0xe>
        cause = ss;
   2ced6:	60 93 5e 13 	sts	0x135E, r22	; 0x80135e <MMU2::mmu2+0x13>
    }
    --occurrences;
   2ceda:	91 50       	subi	r25, 0x01	; 1
   2cedc:	90 93 5f 13 	sts	0x135F, r25	; 0x80135f <MMU2::mmu2+0x14>
    FormatLastResponseMsgAndClearLRB(lrb);
    MMU2_ECHO_MSGLN(lrb);
}

StepStatus ProtocolLogic::SuppressShortDropOuts(const char *msg_P, StepStatus ss) {
    if (dataTO.Record(ss)) {
   2cee0:	91 11       	cpse	r25, r1
   2cee2:	0d c0       	rjmp	.+26     	; 0x2cefe <MMU2::ProtocolLogic::SuppressShortDropOuts(char const*, MMU2::StepStatus) [clone .constprop.310]+0x32>
   2cee4:	c9 01       	movw	r24, r18
        LogError(msg_P);
   2cee6:	0f 94 f5 66 	call	0x2cdea	; 0x2cdea <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]>
    SERIAL_ECHOLNPGM("ResetRetryAttempts");
    retryAttempts = MAX_RETRIES;
}

void ProtocolLogic::ResetCommunicationTimeoutAttempts() {
    SERIAL_ECHOLNPGM("RSTCommTimeout");
   2ceea:	83 e7       	ldi	r24, 0x73	; 115
   2ceec:	9a ea       	ldi	r25, 0xAA	; 170
   2ceee:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    /// @returns the initial cause which started this drop out event
    inline StepStatus InitialCause() const { return cause; }

    /// Rearms the object for further processing - basically call this once the MMU responds with something meaningful (e.g. S0 A2)
    inline void Reset() { occurrences = maxOccurrences; }
   2cef2:	8a e0       	ldi	r24, 0x0A	; 10
   2cef4:	80 93 5f 13 	sts	0x135F, r24	; 0x80135f <MMU2::mmu2+0x14>
   2cef8:	80 91 5e 13 	lds	r24, 0x135E	; 0x80135e <MMU2::mmu2+0x13>
   2cefc:	08 95       	ret
    if (dataTO.Record(ss)) {
        LogError(msg_P);
        ResetCommunicationTimeoutAttempts(); // prepare for another run of consecutive retries before firing an error
        return dataTO.InitialCause();
    } else {
        return Processing; // suppress short drop outs of communication
   2cefe:	80 e0       	ldi	r24, 0x00	; 0
    }
}
   2cf00:	08 95       	ret

0002cf02 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]>:
    }
    *dst = 0; // terminate properly
    lrb = 0; // reset the input buffer index in case of a clean message
}

void ProtocolLogic::LogRequestMsg(const uint8_t *txbuff, uint8_t size) {
   2cf02:	cf 93       	push	r28
   2cf04:	df 93       	push	r29
   2cf06:	cd b7       	in	r28, 0x3d	; 61
   2cf08:	de b7       	in	r29, 0x3e	; 62
   2cf0a:	2e 97       	sbiw	r28, 0x0e	; 14
   2cf0c:	0f b6       	in	r0, 0x3f	; 63
   2cf0e:	f8 94       	cli
   2cf10:	de bf       	out	0x3e, r29	; 62
   2cf12:	0f be       	out	0x3f, r0	; 63
   2cf14:	cd bf       	out	0x3d, r28	; 61
    constexpr uint_fast8_t rqs = modules::protocol::Protocol::MaxRequestSize() + 1;
    char tmp[rqs] = ">";
   2cf16:	2e e3       	ldi	r18, 0x3E	; 62
   2cf18:	30 e0       	ldi	r19, 0x00	; 0
   2cf1a:	3a 83       	std	Y+2, r19	; 0x02
   2cf1c:	29 83       	std	Y+1, r18	; 0x01
   2cf1e:	fe 01       	movw	r30, r28
   2cf20:	33 96       	adiw	r30, 0x03	; 3
   2cf22:	2c e0       	ldi	r18, 0x0C	; 12
   2cf24:	df 01       	movw	r26, r30
   2cf26:	1d 92       	st	X+, r1
   2cf28:	2a 95       	dec	r18
   2cf2a:	e9 f7       	brne	.-6      	; 0x2cf26 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x24>
   2cf2c:	de 01       	movw	r26, r28
   2cf2e:	12 96       	adiw	r26, 0x02	; 2
   2cf30:	48 2f       	mov	r20, r24
   2cf32:	fc 01       	movw	r30, r24
   2cf34:	9d 01       	movw	r18, r26
    static char lastMsg[rqs] = "";
    for (uint8_t i = 0; i < size; ++i) {
   2cf36:	8e 2f       	mov	r24, r30
   2cf38:	84 1b       	sub	r24, r20
   2cf3a:	86 17       	cp	r24, r22
   2cf3c:	40 f4       	brcc	.+16     	; 0x2cf4e <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x4c>
        uint8_t b = txbuff[i];
   2cf3e:	81 91       	ld	r24, Z+
        // Check for printable character, including space
        if (b < 32 || b > 127) {
   2cf40:	90 ee       	ldi	r25, 0xE0	; 224
   2cf42:	98 0f       	add	r25, r24
   2cf44:	90 36       	cpi	r25, 0x60	; 96
   2cf46:	08 f0       	brcs	.+2      	; 0x2cf4a <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x48>
            b = '.';
   2cf48:	8e e2       	ldi	r24, 0x2E	; 46
        }
        tmp[i + 1] = b;
   2cf4a:	8d 93       	st	X+, r24
   2cf4c:	f4 cf       	rjmp	.-24     	; 0x2cf36 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x34>
    }
    tmp[size + 1] = 0;
   2cf4e:	f9 01       	movw	r30, r18
   2cf50:	e6 0f       	add	r30, r22
   2cf52:	f1 1d       	adc	r31, r1
   2cf54:	10 82       	st	Z, r1
    if (!strncmp_P(tmp, PSTR(">S0*c6."), rqs) && !strncmp(lastMsg, tmp, rqs)) {
   2cf56:	4e e0       	ldi	r20, 0x0E	; 14
   2cf58:	50 e0       	ldi	r21, 0x00	; 0
   2cf5a:	66 ed       	ldi	r22, 0xD6	; 214
   2cf5c:	7a ea       	ldi	r23, 0xAA	; 170
   2cf5e:	ce 01       	movw	r24, r28
   2cf60:	01 96       	adiw	r24, 0x01	; 1
   2cf62:	0f 94 3a da 	call	0x3b474	; 0x3b474 <strncmp_P>
   2cf66:	89 2b       	or	r24, r25
   2cf68:	59 f4       	brne	.+22     	; 0x2cf80 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x7e>
   2cf6a:	4e e0       	ldi	r20, 0x0E	; 14
   2cf6c:	50 e0       	ldi	r21, 0x00	; 0
   2cf6e:	be 01       	movw	r22, r28
   2cf70:	6f 5f       	subi	r22, 0xFF	; 255
   2cf72:	7f 4f       	sbci	r23, 0xFF	; 255
   2cf74:	82 ea       	ldi	r24, 0xA2	; 162
   2cf76:	92 e1       	ldi	r25, 0x12	; 18
   2cf78:	0f 94 cd e2 	call	0x3c59a	; 0x3c59a <strncmp>
   2cf7c:	89 2b       	or	r24, r25
   2cf7e:	61 f0       	breq	.+24     	; 0x2cf98 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]+0x96>
        // especially when the MMU is not connected.
        // We'll lose the ability to see if the printer is actually
        // trying to find the MMU, but since it has been reliable in the past
        // we can live without it for now.
    } else {
        MMU2_ECHO_MSGLN(tmp);
   2cf80:	80 ed       	ldi	r24, 0xD0	; 208
   2cf82:	9a ea       	ldi	r25, 0xAA	; 170
   2cf84:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   2cf88:	8a ec       	ldi	r24, 0xCA	; 202
   2cf8a:	9a ea       	ldi	r25, 0xAA	; 170
   2cf8c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   2cf90:	ce 01       	movw	r24, r28
   2cf92:	01 96       	adiw	r24, 0x01	; 1
   2cf94:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
    }
    strncpy(lastMsg, tmp, rqs);
   2cf98:	4e e0       	ldi	r20, 0x0E	; 14
   2cf9a:	50 e0       	ldi	r21, 0x00	; 0
   2cf9c:	be 01       	movw	r22, r28
   2cf9e:	6f 5f       	subi	r22, 0xFF	; 255
   2cfa0:	7f 4f       	sbci	r23, 0xFF	; 255
   2cfa2:	82 ea       	ldi	r24, 0xA2	; 162
   2cfa4:	92 e1       	ldi	r25, 0x12	; 18
   2cfa6:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
}
   2cfaa:	2e 96       	adiw	r28, 0x0e	; 14
   2cfac:	0f b6       	in	r0, 0x3f	; 63
   2cfae:	f8 94       	cli
   2cfb0:	de bf       	out	0x3e, r29	; 62
   2cfb2:	0f be       	out	0x3f, r0	; 63
   2cfb4:	cd bf       	out	0x3d, r28	; 61
   2cfb6:	df 91       	pop	r29
   2cfb8:	cf 91       	pop	r28
   2cfba:	08 95       	ret

0002cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>:
        return CommunicationTimeout;
    }
    return Processing;
}

void ProtocolLogic::SendMsg(RequestMsg rq) {
   2cfbc:	cf 92       	push	r12
   2cfbe:	df 92       	push	r13
   2cfc0:	ef 92       	push	r14
   2cfc2:	ff 92       	push	r15
   2cfc4:	1f 93       	push	r17
   2cfc6:	cf 93       	push	r28
   2cfc8:	df 93       	push	r29
   2cfca:	cd b7       	in	r28, 0x3d	; 61
   2cfcc:	de b7       	in	r29, 0x3e	; 62
   2cfce:	62 97       	sbiw	r28, 0x12	; 18
   2cfd0:	0f b6       	in	r0, 0x3f	; 63
   2cfd2:	f8 94       	cli
   2cfd4:	de bf       	out	0x3e, r29	; 62
   2cfd6:	0f be       	out	0x3f, r0	; 63
   2cfd8:	cd bf       	out	0x3d, r28	; 61
   2cfda:	4e 87       	std	Y+14, r20	; 0x0e
   2cfdc:	5f 87       	std	Y+15, r21	; 0x0f
   2cfde:	68 8b       	std	Y+16, r22	; 0x10
   2cfe0:	79 8b       	std	Y+17, r23	; 0x11
   2cfe2:	8a 8b       	std	Y+18, r24	; 0x12
        }
    }
}

uint8_t Protocol::EncodeRequest(const RequestMsg &msg, uint8_t *txbuff) {
    txbuff[0] = (uint8_t)msg.code;
   2cfe4:	49 83       	std	Y+1, r20	; 0x01
    uint8_t i = 1 + UInt8ToHex(msg.value, txbuff + 1);
   2cfe6:	85 2f       	mov	r24, r21
    txbuff[i] = '\n';
    return i + 1;
}

uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
    if (value == 0) {
   2cfe8:	51 11       	cpse	r21, r1
   2cfea:	31 c0       	rjmp	.+98     	; 0x2d04e <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0x92>
        *dst = '0';
   2cfec:	80 e3       	ldi	r24, 0x30	; 48
   2cfee:	8a 83       	std	Y+2, r24	; 0x02
        return 1;
   2cff0:	11 e0       	ldi	r17, 0x01	; 1

uint8_t Protocol::EncodeRequest(const RequestMsg &msg, uint8_t *txbuff) {
    txbuff[0] = (uint8_t)msg.code;
    uint8_t i = 1 + UInt8ToHex(msg.value, txbuff + 1);

    i += AppendCRC(msg.CRC(), txbuff + i);
   2cff2:	e1 e0       	ldi	r30, 0x01	; 1
   2cff4:	e1 0f       	add	r30, r17
   2cff6:	81 e0       	ldi	r24, 0x01	; 1
   2cff8:	90 e0       	ldi	r25, 0x00	; 0
   2cffa:	8c 0f       	add	r24, r28
   2cffc:	9d 1f       	adc	r25, r29
   2cffe:	8e 0f       	add	r24, r30
   2d000:	91 1d       	adc	r25, r1
   2d002:	fc 01       	movw	r30, r24
   2d004:	8a 89       	ldd	r24, Y+18	; 0x12
    dst[i] = ' ';
    return i + 1;
}

uint8_t Protocol::AppendCRC(uint8_t crc, uint8_t *dst) {
    dst[0] = '*'; // reprap-style separator of CRC
   2d006:	9a e2       	ldi	r25, 0x2A	; 42
   2d008:	90 83       	st	Z, r25
    txbuff[i] = '\n';
    return i + 1;
}

uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
    if (value == 0) {
   2d00a:	81 11       	cpse	r24, r1
   2d00c:	27 c0       	rjmp	.+78     	; 0x2d05c <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0xa0>
        *dst = '0';
   2d00e:	80 e3       	ldi	r24, 0x30	; 48
   2d010:	81 83       	std	Z+1, r24	; 0x01
        return 1;
   2d012:	81 e0       	ldi	r24, 0x01	; 1

uint8_t Protocol::EncodeRequest(const RequestMsg &msg, uint8_t *txbuff) {
    txbuff[0] = (uint8_t)msg.code;
    uint8_t i = 1 + UInt8ToHex(msg.value, txbuff + 1);

    i += AppendCRC(msg.CRC(), txbuff + i);
   2d014:	1e 5f       	subi	r17, 0xFE	; 254
   2d016:	18 0f       	add	r17, r24

    txbuff[i] = '\n';
   2d018:	e1 e0       	ldi	r30, 0x01	; 1
   2d01a:	f0 e0       	ldi	r31, 0x00	; 0
   2d01c:	ec 0f       	add	r30, r28
   2d01e:	fd 1f       	adc	r31, r29
   2d020:	e1 0f       	add	r30, r17
   2d022:	f1 1d       	adc	r31, r1
   2d024:	8a e0       	ldi	r24, 0x0A	; 10
   2d026:	80 83       	st	Z, r24
    ++i;
   2d028:	1f 5f       	subi	r17, 0xFF	; 255
    // Buddy FW cannot use stack-allocated txbuff - DMA doesn't work with CCMRAM
    // No restrictions on MK3/S/+ though
    uint8_t txbuff[Protocol::MaxRequestSize()];
#endif
    uint8_t len = Protocol::EncodeRequest(rq, txbuff);
    uart->write(txbuff, len);
   2d02a:	fe 01       	movw	r30, r28
   2d02c:	31 96       	adiw	r30, 0x01	; 1
   2d02e:	7f 01       	movw	r14, r30
void MMU2Serial::flush() {
    // @@TODO - clear the output buffer
}

void MMU2Serial::write(const uint8_t *buffer, size_t size) {
    while(size--){
   2d030:	6f 01       	movw	r12, r30
   2d032:	c1 0e       	add	r12, r17
   2d034:	d1 1c       	adc	r13, r1
   2d036:	ec 14       	cp	r14, r12
   2d038:	fd 04       	cpc	r15, r13
   2d03a:	b1 f0       	breq	.+44     	; 0x2d068 <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0xac>
        fputc(*buffer, uart2io);
   2d03c:	f7 01       	movw	r30, r14
   2d03e:	81 91       	ld	r24, Z+
   2d040:	7f 01       	movw	r14, r30
   2d042:	64 e9       	ldi	r22, 0x94	; 148
   2d044:	72 e1       	ldi	r23, 0x12	; 18
   2d046:	90 e0       	ldi	r25, 0x00	; 0
   2d048:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
   2d04c:	f4 cf       	rjmp	.-24     	; 0x2d036 <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0x7a>
   2d04e:	be 01       	movw	r22, r28
   2d050:	6e 5f       	subi	r22, 0xFE	; 254
   2d052:	7f 4f       	sbci	r23, 0xFF	; 255
   2d054:	0f 94 7c c5 	call	0x38af8	; 0x38af8 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]>
   2d058:	18 2f       	mov	r17, r24
   2d05a:	cb cf       	rjmp	.-106    	; 0x2cff2 <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0x36>
    return i + 1;
}

uint8_t Protocol::AppendCRC(uint8_t crc, uint8_t *dst) {
    dst[0] = '*'; // reprap-style separator of CRC
    return 1 + UInt8ToHex(crc, dst + 1);
   2d05c:	bf 01       	movw	r22, r30
   2d05e:	6f 5f       	subi	r22, 0xFF	; 255
   2d060:	7f 4f       	sbci	r23, 0xFF	; 255
   2d062:	0f 94 7c c5 	call	0x38af8	; 0x38af8 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]>
   2d066:	d6 cf       	rjmp	.-84     	; 0x2d014 <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]+0x58>
    LogRequestMsg(txbuff, len);
   2d068:	61 2f       	mov	r22, r17
   2d06a:	ce 01       	movw	r24, r28
   2d06c:	01 96       	adiw	r24, 0x01	; 1
   2d06e:	0f 94 81 67 	call	0x2cf02	; 0x2cf02 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]>
    RecordUARTActivity();
   2d072:	0f 94 d8 66 	call	0x2cdb0	; 0x2cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>
}
   2d076:	62 96       	adiw	r28, 0x12	; 18
   2d078:	0f b6       	in	r0, 0x3f	; 63
   2d07a:	f8 94       	cli
   2d07c:	de bf       	out	0x3e, r29	; 62
   2d07e:	0f be       	out	0x3f, r0	; 63
   2d080:	cd bf       	out	0x3d, r28	; 61
   2d082:	df 91       	pop	r29
   2d084:	cf 91       	pop	r28
   2d086:	1f 91       	pop	r17
   2d088:	ff 90       	pop	r15
   2d08a:	ef 90       	pop	r14
   2d08c:	df 90       	pop	r13
   2d08e:	cf 90       	pop	r12
   2d090:	08 95       	ret

0002d092 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]>:
void ProtocolLogic::SendReadRegister(uint8_t index, ScopeState nextState) {
    SendMsg(RequestMsg(RequestMsgCodes::Read, index));
    scopeState = nextState;
}

void ProtocolLogic::SendWriteRegister(uint8_t index, uint16_t value, ScopeState nextState) {
   2d092:	8f 92       	push	r8
   2d094:	9f 92       	push	r9
   2d096:	af 92       	push	r10
   2d098:	bf 92       	push	r11
   2d09a:	df 92       	push	r13
   2d09c:	ef 92       	push	r14
   2d09e:	ff 92       	push	r15
   2d0a0:	0f 93       	push	r16
   2d0a2:	1f 93       	push	r17
   2d0a4:	cf 93       	push	r28
   2d0a6:	df 93       	push	r29
   2d0a8:	cd b7       	in	r28, 0x3d	; 61
   2d0aa:	de b7       	in	r29, 0x3e	; 62
   2d0ac:	67 97       	sbiw	r28, 0x17	; 23
   2d0ae:	0f b6       	in	r0, 0x3f	; 63
   2d0b0:	f8 94       	cli
   2d0b2:	de bf       	out	0x3e, r29	; 62
   2d0b4:	0f be       	out	0x3f, r0	; 63
   2d0b6:	cd bf       	out	0x3d, r28	; 61
   2d0b8:	18 2f       	mov	r17, r24
   2d0ba:	7b 01       	movw	r14, r22
   2d0bc:	d4 2e       	mov	r13, r20
   2d0be:	07 e5       	ldi	r16, 0x57	; 87
   2d0c0:	0b 8b       	std	Y+19, r16	; 0x13
   2d0c2:	8c 8b       	std	Y+20, r24	; 0x14
   2d0c4:	7e 8b       	std	Y+22, r23	; 0x16
   2d0c6:	6d 8b       	std	Y+21, r22	; 0x15
   2d0c8:	ce 01       	movw	r24, r28
   2d0ca:	43 96       	adiw	r24, 0x13	; 19
   2d0cc:	0f 94 a8 c5 	call	0x38b50	; 0x38b50 <modules::protocol::RequestMsg::ComputeCRC8() const>
   2d0d0:	8f 8b       	std	Y+23, r24	; 0x17
   2d0d2:	0e 87       	std	Y+14, r16	; 0x0e
   2d0d4:	1f 87       	std	Y+15, r17	; 0x0f
   2d0d6:	f9 8a       	std	Y+17, r15	; 0x11
   2d0d8:	e8 8a       	std	Y+16, r14	; 0x10
   2d0da:	ce 01       	movw	r24, r28
   2d0dc:	0e 96       	adiw	r24, 0x0e	; 14
   2d0de:	0f 94 a8 c5 	call	0x38b50	; 0x38b50 <modules::protocol::RequestMsg::ComputeCRC8() const>
   2d0e2:	8a 8b       	std	Y+18, r24	; 0x12
    }
    return charsOut;
}

uint8_t Protocol::BeginEncodeRequest(const RequestMsg &msg, uint8_t *dst) {
    dst[0] = (uint8_t)msg.code;
   2d0e4:	09 83       	std	Y+1, r16	; 0x01
    txbuff[i] = '\n';
    return i + 1;
}

uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
    if (value == 0) {
   2d0e6:	11 11       	cpse	r17, r1
   2d0e8:	27 c0       	rjmp	.+78     	; 0x2d138 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xa6>
        *dst = '0';
   2d0ea:	80 e3       	ldi	r24, 0x30	; 48
   2d0ec:	8a 83       	std	Y+2, r24	; 0x02
        return 1;
   2d0ee:	81 e0       	ldi	r24, 0x01	; 1
}

uint8_t Protocol::BeginEncodeRequest(const RequestMsg &msg, uint8_t *dst) {
    dst[0] = (uint8_t)msg.code;

    uint8_t i = 1 + UInt8ToHex(msg.value, dst + 1);
   2d0f0:	e1 e0       	ldi	r30, 0x01	; 1
   2d0f2:	e8 0f       	add	r30, r24

    dst[i] = ' ';
   2d0f4:	21 e0       	ldi	r18, 0x01	; 1
   2d0f6:	30 e0       	ldi	r19, 0x00	; 0
   2d0f8:	2c 0f       	add	r18, r28
   2d0fa:	3d 1f       	adc	r19, r29
   2d0fc:	2e 0f       	add	r18, r30
   2d0fe:	31 1d       	adc	r19, r1
   2d100:	f9 01       	movw	r30, r18
   2d102:	90 e2       	ldi	r25, 0x20	; 32
   2d104:	90 83       	st	Z, r25
    return i + 1;
   2d106:	02 e0       	ldi	r16, 0x02	; 2
   2d108:	08 0f       	add	r16, r24

uint8_t Protocol::EncodeWriteRequest(uint8_t address, uint16_t value, uint8_t *txbuff) {
    const RequestMsg msg(RequestMsgCodes::Write, address, value);
    uint8_t i = BeginEncodeRequest(msg, txbuff);
    // dump the value
    i += UInt16ToHex(value, txbuff + i);
   2d10a:	aa 24       	eor	r10, r10
   2d10c:	a3 94       	inc	r10
   2d10e:	b1 2c       	mov	r11, r1
   2d110:	ac 0e       	add	r10, r28
   2d112:	bd 1e       	adc	r11, r29
   2d114:	a0 0e       	add	r10, r16
   2d116:	b1 1c       	adc	r11, r1
    return charsOut;
}

uint8_t Protocol::UInt16ToHex(uint16_t value, uint8_t *dst) {
    constexpr uint16_t topNibbleMask = 0xf000;
    if (value == 0) {
   2d118:	e1 14       	cp	r14, r1
   2d11a:	f1 04       	cpc	r15, r1
   2d11c:	39 f1       	breq	.+78     	; 0x2d16c <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xda>
        *dst = '0';
        return 1;
    }
    // skip initial zeros
    uint8_t charsOut = 4;
   2d11e:	14 e0       	ldi	r17, 0x04	; 4
    while ((value & topNibbleMask) == 0) {
   2d120:	c7 01       	movw	r24, r14
   2d122:	88 27       	eor	r24, r24
   2d124:	90 7f       	andi	r25, 0xF0	; 240
   2d126:	89 2b       	or	r24, r25
   2d128:	71 f4       	brne	.+28     	; 0x2d146 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xb4>
        value <<= 4U;
   2d12a:	24 e0       	ldi	r18, 0x04	; 4
   2d12c:	ee 0c       	add	r14, r14
   2d12e:	ff 1c       	adc	r15, r15
   2d130:	2a 95       	dec	r18
   2d132:	e1 f7       	brne	.-8      	; 0x2d12c <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x9a>
        --charsOut;
   2d134:	11 50       	subi	r17, 0x01	; 1
   2d136:	f4 cf       	rjmp	.-24     	; 0x2d120 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x8e>
   2d138:	be 01       	movw	r22, r28
   2d13a:	6e 5f       	subi	r22, 0xFE	; 254
   2d13c:	7f 4f       	sbci	r23, 0xFF	; 255
   2d13e:	81 2f       	mov	r24, r17
   2d140:	0f 94 7c c5 	call	0x38af8	; 0x38af8 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]>
   2d144:	d5 cf       	rjmp	.-86     	; 0x2d0f0 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x5e>
        *dst = '0';
        return 1;
    }
    // skip initial zeros
    uint8_t charsOut = 4;
    while ((value & topNibbleMask) == 0) {
   2d146:	45 01       	movw	r8, r10
        value <<= 4U;
        --charsOut;
    }
    for (uint8_t i = 0; i < charsOut; ++i) {
   2d148:	88 2d       	mov	r24, r8
   2d14a:	8a 19       	sub	r24, r10
   2d14c:	81 17       	cp	r24, r17
   2d14e:	90 f4       	brcc	.+36     	; 0x2d174 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xe2>
        uint8_t n = (value & topNibbleMask) >> (8U + 4U);
        value <<= 4U;
        *dst = Nibble2Char(n);
   2d150:	8f 2d       	mov	r24, r15
   2d152:	82 95       	swap	r24
   2d154:	8f 70       	andi	r24, 0x0F	; 15
   2d156:	94 e0       	ldi	r25, 0x04	; 4
   2d158:	ee 0c       	add	r14, r14
   2d15a:	ff 1c       	adc	r15, r15
   2d15c:	9a 95       	dec	r25
   2d15e:	e1 f7       	brne	.-8      	; 0x2d158 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xc6>
   2d160:	0f 94 72 c5 	call	0x38ae4	; 0x38ae4 <modules::protocol::Protocol::Nibble2Char(unsigned char)>
   2d164:	f4 01       	movw	r30, r8
   2d166:	81 93       	st	Z+, r24
   2d168:	4f 01       	movw	r8, r30
   2d16a:	ee cf       	rjmp	.-36     	; 0x2d148 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0xb6>
}

uint8_t Protocol::UInt16ToHex(uint16_t value, uint8_t *dst) {
    constexpr uint16_t topNibbleMask = 0xf000;
    if (value == 0) {
        *dst = '0';
   2d16c:	80 e3       	ldi	r24, 0x30	; 48
   2d16e:	f5 01       	movw	r30, r10
   2d170:	80 83       	st	Z, r24
        return 1;
   2d172:	11 e0       	ldi	r17, 0x01	; 1

uint8_t Protocol::EncodeWriteRequest(uint8_t address, uint16_t value, uint8_t *txbuff) {
    const RequestMsg msg(RequestMsgCodes::Write, address, value);
    uint8_t i = BeginEncodeRequest(msg, txbuff);
    // dump the value
    i += UInt16ToHex(value, txbuff + i);
   2d174:	10 0f       	add	r17, r16

    i += AppendCRC(msg.CRC(), txbuff + i);
   2d176:	e1 e0       	ldi	r30, 0x01	; 1
   2d178:	f0 e0       	ldi	r31, 0x00	; 0
   2d17a:	ec 0f       	add	r30, r28
   2d17c:	fd 1f       	adc	r31, r29
   2d17e:	e1 0f       	add	r30, r17
   2d180:	f1 1d       	adc	r31, r1
   2d182:	8a 89       	ldd	r24, Y+18	; 0x12
    dst[i] = ' ';
    return i + 1;
}

uint8_t Protocol::AppendCRC(uint8_t crc, uint8_t *dst) {
    dst[0] = '*'; // reprap-style separator of CRC
   2d184:	9a e2       	ldi	r25, 0x2A	; 42
   2d186:	90 83       	st	Z, r25
    txbuff[i] = '\n';
    return i + 1;
}

uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
    if (value == 0) {
   2d188:	81 11       	cpse	r24, r1
   2d18a:	21 c0       	rjmp	.+66     	; 0x2d1ce <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x13c>
        *dst = '0';
   2d18c:	80 e3       	ldi	r24, 0x30	; 48
   2d18e:	81 83       	std	Z+1, r24	; 0x01
        return 1;
   2d190:	81 e0       	ldi	r24, 0x01	; 1
   2d192:	1f 5f       	subi	r17, 0xFF	; 255
    const RequestMsg msg(RequestMsgCodes::Write, address, value);
    uint8_t i = BeginEncodeRequest(msg, txbuff);
    // dump the value
    i += UInt16ToHex(value, txbuff + i);

    i += AppendCRC(msg.CRC(), txbuff + i);
   2d194:	18 0f       	add	r17, r24

    txbuff[i] = '\n';
   2d196:	e1 e0       	ldi	r30, 0x01	; 1
   2d198:	f0 e0       	ldi	r31, 0x00	; 0
   2d19a:	ec 0f       	add	r30, r28
   2d19c:	fd 1f       	adc	r31, r29
   2d19e:	e1 0f       	add	r30, r17
   2d1a0:	f1 1d       	adc	r31, r1
   2d1a2:	8a e0       	ldi	r24, 0x0A	; 10
   2d1a4:	80 83       	st	Z, r24
    ++i;
   2d1a6:	1f 5f       	subi	r17, 0xFF	; 255
    // Buddy FW cannot use stack-allocated txbuff - DMA doesn't work with CCMRAM
    // No restrictions on MK3/S/+ though
    uint8_t txbuff[Protocol::MaxRequestSize()];
#endif
    uint8_t len = Protocol::EncodeWriteRequest(rq.value, rq.value2, txbuff);
    uart->write(txbuff, len);
   2d1a8:	9e 01       	movw	r18, r28
   2d1aa:	2f 5f       	subi	r18, 0xFF	; 255
   2d1ac:	3f 4f       	sbci	r19, 0xFF	; 255
   2d1ae:	79 01       	movw	r14, r18
void MMU2Serial::flush() {
    // @@TODO - clear the output buffer
}

void MMU2Serial::write(const uint8_t *buffer, size_t size) {
    while(size--){
   2d1b0:	59 01       	movw	r10, r18
   2d1b2:	a1 0e       	add	r10, r17
   2d1b4:	b1 1c       	adc	r11, r1
   2d1b6:	ea 14       	cp	r14, r10
   2d1b8:	fb 04       	cpc	r15, r11
   2d1ba:	79 f0       	breq	.+30     	; 0x2d1da <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x148>
        fputc(*buffer, uart2io);
   2d1bc:	f7 01       	movw	r30, r14
   2d1be:	81 91       	ld	r24, Z+
   2d1c0:	7f 01       	movw	r14, r30
   2d1c2:	64 e9       	ldi	r22, 0x94	; 148
   2d1c4:	72 e1       	ldi	r23, 0x12	; 18
   2d1c6:	90 e0       	ldi	r25, 0x00	; 0
   2d1c8:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
   2d1cc:	f4 cf       	rjmp	.-24     	; 0x2d1b6 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x124>
    return i + 1;
}

uint8_t Protocol::AppendCRC(uint8_t crc, uint8_t *dst) {
    dst[0] = '*'; // reprap-style separator of CRC
    return 1 + UInt8ToHex(crc, dst + 1);
   2d1ce:	bf 01       	movw	r22, r30
   2d1d0:	6f 5f       	subi	r22, 0xFF	; 255
   2d1d2:	7f 4f       	sbci	r23, 0xFF	; 255
   2d1d4:	0f 94 7c c5 	call	0x38af8	; 0x38af8 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]>
   2d1d8:	dc cf       	rjmp	.-72     	; 0x2d192 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]+0x100>
    LogRequestMsg(txbuff, len);
   2d1da:	61 2f       	mov	r22, r17
   2d1dc:	ce 01       	movw	r24, r28
   2d1de:	01 96       	adiw	r24, 0x01	; 1
   2d1e0:	0f 94 81 67 	call	0x2cf02	; 0x2cf02 <MMU2::ProtocolLogic::LogRequestMsg(unsigned char const*, unsigned char) [clone .constprop.338]>
    RecordUARTActivity();
   2d1e4:	0f 94 d8 66 	call	0x2cdb0	; 0x2cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>
    scopeState = nextState;
}

void ProtocolLogic::SendWriteRegister(uint8_t index, uint16_t value, ScopeState nextState) {
    SendWriteMsg(RequestMsg(RequestMsgCodes::Write, index, value));
    scopeState = nextState;
   2d1e8:	d0 92 4e 13 	sts	0x134E, r13	; 0x80134e <MMU2::mmu2+0x3>
}
   2d1ec:	67 96       	adiw	r28, 0x17	; 23
   2d1ee:	0f b6       	in	r0, 0x3f	; 63
   2d1f0:	f8 94       	cli
   2d1f2:	de bf       	out	0x3e, r29	; 62
   2d1f4:	0f be       	out	0x3f, r0	; 63
   2d1f6:	cd bf       	out	0x3d, r28	; 61
   2d1f8:	df 91       	pop	r29
   2d1fa:	cf 91       	pop	r28
   2d1fc:	1f 91       	pop	r17
   2d1fe:	0f 91       	pop	r16
   2d200:	ff 90       	pop	r15
   2d202:	ef 90       	pop	r14
   2d204:	df 90       	pop	r13
   2d206:	bf 90       	pop	r11
   2d208:	af 90       	pop	r10
   2d20a:	9f 90       	pop	r9
   2d20c:	8f 90       	pop	r8
   2d20e:	08 95       	ret

0002d210 <MMU2::ProtocolLogic::ProcessWritingInitRegister() [clone .constprop.301]>:
    regIndex = 0;
    SendWriteRegister(pgm_read_byte(initRegs8Addrs + regIndex), initRegs8[regIndex], ScopeState::WritingInitRegisters);
}

bool __attribute__((noinline)) ProtocolLogic::ProcessWritingInitRegister() {
    ++regIndex;
   2d210:	20 91 99 13 	lds	r18, 0x1399	; 0x801399 <MMU2::mmu2+0x4e>
   2d214:	2f 5f       	subi	r18, 0xFF	; 255
   2d216:	20 93 99 13 	sts	0x1399, r18	; 0x801399 <MMU2::mmu2+0x4e>
    if (regIndex >= initRegs8Count) {
   2d21a:	22 30       	cpi	r18, 0x02	; 2
   2d21c:	78 f4       	brcc	.+30     	; 0x2d23c <MMU2::ProtocolLogic::ProcessWritingInitRegister() [clone .constprop.301]+0x2c>
        return true;
    } else {
        SendWriteRegister(pgm_read_byte(initRegs8Addrs + regIndex), initRegs8[regIndex], ScopeState::WritingInitRegisters);
   2d21e:	30 e0       	ldi	r19, 0x00	; 0
   2d220:	f9 01       	movw	r30, r18
   2d222:	ef 58       	subi	r30, 0x8F	; 143
   2d224:	f5 45       	sbci	r31, 0x55	; 85
   2d226:	84 91       	lpm	r24, Z
   2d228:	29 56       	subi	r18, 0x69	; 105
   2d22a:	3c 4e       	sbci	r19, 0xEC	; 236
   2d22c:	f9 01       	movw	r30, r18
   2d22e:	60 81       	ld	r22, Z
   2d230:	70 e0       	ldi	r23, 0x00	; 0
   2d232:	49 e0       	ldi	r20, 0x09	; 9
   2d234:	0f 94 49 68 	call	0x2d092	; 0x2d092 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]>
    }
    return false;
   2d238:	80 e0       	ldi	r24, 0x00	; 0
   2d23a:	08 95       	ret
}

bool __attribute__((noinline)) ProtocolLogic::ProcessWritingInitRegister() {
    ++regIndex;
    if (regIndex >= initRegs8Count) {
        return true;
   2d23c:	81 e0       	ldi	r24, 0x01	; 1
    } else {
        SendWriteRegister(pgm_read_byte(initRegs8Addrs + regIndex), initRegs8[regIndex], ScopeState::WritingInitRegisters);
    }
    return false;
}
   2d23e:	08 95       	ret

0002d240 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]>:
}

/// Searches for best match of pattern by shifting it
/// Returns rate of match and the best location
/// max match = 132, min match = 0
uint8_t xyzcal_find_pattern_12x12_in_32x32(uint8_t* pixels, uint16_t* pattern, uint8_t* pc, uint8_t* pr){
   2d240:	2f 92       	push	r2
   2d242:	3f 92       	push	r3
   2d244:	4f 92       	push	r4
   2d246:	5f 92       	push	r5
   2d248:	6f 92       	push	r6
   2d24a:	7f 92       	push	r7
   2d24c:	8f 92       	push	r8
   2d24e:	9f 92       	push	r9
   2d250:	af 92       	push	r10
   2d252:	bf 92       	push	r11
   2d254:	cf 92       	push	r12
   2d256:	df 92       	push	r13
   2d258:	ef 92       	push	r14
   2d25a:	ff 92       	push	r15
   2d25c:	0f 93       	push	r16
   2d25e:	1f 93       	push	r17
   2d260:	cf 93       	push	r28
   2d262:	df 93       	push	r29
   2d264:	00 d0       	rcall	.+0      	; 0x2d266 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x26>
   2d266:	1f 92       	push	r1
   2d268:	1f 92       	push	r1
   2d26a:	cd b7       	in	r28, 0x3d	; 61
   2d26c:	de b7       	in	r29, 0x3e	; 62
   2d26e:	2b 01       	movw	r4, r22
   2d270:	1a 01       	movw	r2, r20
   2d272:	f1 2c       	mov	r15, r1
   2d274:	e1 2c       	mov	r14, r1
	if (!pixels || !pattern || !pc || !pr)
		return -1;
	uint8_t max_c = 0;
	uint8_t max_r = 0;
	uint8_t max_match = 0;
   2d276:	1c 82       	std	Y+4, r1	; 0x04
/// max match = 132, min match = 0
uint8_t xyzcal_find_pattern_12x12_in_32x32(uint8_t* pixels, uint16_t* pattern, uint8_t* pc, uint8_t* pr){
	if (!pixels || !pattern || !pc || !pr)
		return -1;
	uint8_t max_c = 0;
	uint8_t max_r = 0;
   2d278:	1d 82       	std	Y+5, r1	; 0x05
/// Returns rate of match and the best location
/// max match = 132, min match = 0
uint8_t xyzcal_find_pattern_12x12_in_32x32(uint8_t* pixels, uint16_t* pattern, uint8_t* pc, uint8_t* pr){
	if (!pixels || !pattern || !pc || !pr)
		return -1;
	uint8_t max_c = 0;
   2d27a:	10 e0       	ldi	r17, 0x00	; 0
	uint8_t max_r = 0;
	uint8_t max_match = 0;

	// DBG(_n("Matching:\n"));
	/// pixel precision
	for (uint8_t r = 0; r < (32 - 12); ++r){
   2d27c:	50 e0       	ldi	r21, 0x00	; 0
			/// skip corners (3 pixels in each)
			if (((i == 0) || (i == 11)) && ((j < 2) || (j >= 10))) continue;
			if (((j == 0) || (j == 11)) && ((i < 2) || (i >= 10))) continue;
			const uint16_t idx = (c + j) + 32 * ((uint16_t)r + i);
			const bool high_pix = pixels[idx] > thr;
			const bool high_pat = pattern[i] & (1 << j);
   2d27e:	66 24       	eor	r6, r6
   2d280:	63 94       	inc	r6
   2d282:	71 2c       	mov	r7, r1
	uint8_t max_r = 0;
	uint8_t max_match = 0;

	// DBG(_n("Matching:\n"));
	/// pixel precision
	for (uint8_t r = 0; r < (32 - 12); ++r){
   2d284:	70 e0       	ldi	r23, 0x00	; 0
   2d286:	60 e0       	ldi	r22, 0x00	; 0
   2d288:	97 01       	movw	r18, r14
   2d28a:	2b 53       	subi	r18, 0x3B	; 59
   2d28c:	39 4f       	sbci	r19, 0xF9	; 249
   2d28e:	3a 83       	std	Y+2, r19	; 0x02
   2d290:	29 83       	std	Y+1, r18	; 0x01
   2d292:	86 2e       	mov	r8, r22
   2d294:	c9 80       	ldd	r12, Y+1	; 0x01
   2d296:	da 80       	ldd	r13, Y+2	; 0x02
   2d298:	c6 0e       	add	r12, r22
   2d29a:	d7 1e       	adc	r13, r23
   2d29c:	fc 01       	movw	r30, r24

/// Returns rate of match
/// max match = 132, min match = 0
uint8_t xyzcal_match_pattern_12x12_in_32x32(uint16_t* pattern, uint8_t* pixels, uint8_t c, uint8_t r){
	uint8_t thr = 16;
	uint8_t match = 0;
   2d29e:	00 e0       	ldi	r16, 0x00	; 0
	for (uint8_t i = 0; i < 12; ++i){
   2d2a0:	40 e0       	ldi	r20, 0x00	; 0
   2d2a2:	30 e0       	ldi	r19, 0x00	; 0
   2d2a4:	20 e0       	ldi	r18, 0x00	; 0
		for (uint8_t j = 0; j < 12; ++j){
			/// skip corners (3 pixels in each)
			if (((i == 0) || (i == 11)) && ((j < 2) || (j >= 10))) continue;
			if (((j == 0) || (j == 11)) && ((i < 2) || (i >= 10))) continue;
   2d2a6:	ae ef       	ldi	r26, 0xFE	; 254
   2d2a8:	a4 0f       	add	r26, r20
   2d2aa:	ab 83       	std	Y+3, r26	; 0x03
	uint8_t thr = 16;
	uint8_t match = 0;
	for (uint8_t i = 0; i < 12; ++i){
		for (uint8_t j = 0; j < 12; ++j){
			/// skip corners (3 pixels in each)
			if (((i == 0) || (i == 11)) && ((j < 2) || (j >= 10))) continue;
   2d2ac:	44 23       	and	r20, r20
   2d2ae:	19 f0       	breq	.+6      	; 0x2d2b6 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x76>
   2d2b0:	4b 30       	cpi	r20, 0x0B	; 11
   2d2b2:	09 f0       	breq	.+2      	; 0x2d2b6 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x76>
   2d2b4:	7d c0       	rjmp	.+250    	; 0x2d3b0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x170>
   2d2b6:	ae ef       	ldi	r26, 0xFE	; 254
   2d2b8:	a2 0f       	add	r26, r18
   2d2ba:	a8 30       	cpi	r26, 0x08	; 8
   2d2bc:	08 f4       	brcc	.+2      	; 0x2d2c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x80>
   2d2be:	7a c0       	rjmp	.+244    	; 0x2d3b4 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x174>
   2d2c0:	2f 5f       	subi	r18, 0xFF	; 255
   2d2c2:	3f 4f       	sbci	r19, 0xFF	; 255
/// max match = 132, min match = 0
uint8_t xyzcal_match_pattern_12x12_in_32x32(uint16_t* pattern, uint8_t* pixels, uint8_t c, uint8_t r){
	uint8_t thr = 16;
	uint8_t match = 0;
	for (uint8_t i = 0; i < 12; ++i){
		for (uint8_t j = 0; j < 12; ++j){
   2d2c4:	2c 30       	cpi	r18, 0x0C	; 12
   2d2c6:	31 05       	cpc	r19, r1
   2d2c8:	89 f7       	brne	.-30     	; 0x2d2ac <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x6c>
/// Returns rate of match
/// max match = 132, min match = 0
uint8_t xyzcal_match_pattern_12x12_in_32x32(uint16_t* pattern, uint8_t* pixels, uint8_t c, uint8_t r){
	uint8_t thr = 16;
	uint8_t match = 0;
	for (uint8_t i = 0; i < 12; ++i){
   2d2ca:	4f 5f       	subi	r20, 0xFF	; 255
   2d2cc:	20 e2       	ldi	r18, 0x20	; 32
   2d2ce:	c2 0e       	add	r12, r18
   2d2d0:	d1 1c       	adc	r13, r1
   2d2d2:	32 96       	adiw	r30, 0x02	; 2
   2d2d4:	4c 30       	cpi	r20, 0x0C	; 12
   2d2d6:	29 f7       	brne	.-54     	; 0x2d2a2 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x62>
	// DBG(_n("Matching:\n"));
	/// pixel precision
	for (uint8_t r = 0; r < (32 - 12); ++r){
		for (uint8_t c = 0; c < (32 - 12); ++c){
			const uint8_t match = xyzcal_match_pattern_12x12_in_32x32(pattern, pixels, c, r);
			if (max_match < match){
   2d2d8:	3c 81       	ldd	r19, Y+4	; 0x04
   2d2da:	30 17       	cp	r19, r16
   2d2dc:	18 f4       	brcc	.+6      	; 0x2d2e4 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0xa4>
   2d2de:	0c 83       	std	Y+4, r16	; 0x04
   2d2e0:	5d 83       	std	Y+5, r21	; 0x05
   2d2e2:	18 2d       	mov	r17, r8
   2d2e4:	6f 5f       	subi	r22, 0xFF	; 255
   2d2e6:	7f 4f       	sbci	r23, 0xFF	; 255
	uint8_t max_match = 0;

	// DBG(_n("Matching:\n"));
	/// pixel precision
	for (uint8_t r = 0; r < (32 - 12); ++r){
		for (uint8_t c = 0; c < (32 - 12); ++c){
   2d2e8:	64 31       	cpi	r22, 0x14	; 20
   2d2ea:	71 05       	cpc	r23, r1
   2d2ec:	91 f6       	brne	.-92     	; 0x2d292 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x52>
	uint8_t max_r = 0;
	uint8_t max_match = 0;

	// DBG(_n("Matching:\n"));
	/// pixel precision
	for (uint8_t r = 0; r < (32 - 12); ++r){
   2d2ee:	5f 5f       	subi	r21, 0xFF	; 255
   2d2f0:	a0 e2       	ldi	r26, 0x20	; 32
   2d2f2:	ea 0e       	add	r14, r26
   2d2f4:	f1 1c       	adc	r15, r1
   2d2f6:	54 31       	cpi	r21, 0x14	; 20
   2d2f8:	29 f6       	brne	.-118    	; 0x2d284 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x44>
			// DBG(_n("%d "), match);
		}
		// DBG(_n("\n"));
	}
    //@size=278
	DBG(_n("Pattern center [%f %f], match %f%%\n"), max_c + 5.5f, max_r + 5.5f, max_match / 1.32f);
   2d2fa:	ec 81       	ldd	r30, Y+4	; 0x04
   2d2fc:	6e 2f       	mov	r22, r30
   2d2fe:	70 e0       	ldi	r23, 0x00	; 0
   2d300:	90 e0       	ldi	r25, 0x00	; 0
   2d302:	80 e0       	ldi	r24, 0x00	; 0
   2d304:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2d308:	23 ec       	ldi	r18, 0xC3	; 195
   2d30a:	35 ef       	ldi	r19, 0xF5	; 245
   2d30c:	48 ea       	ldi	r20, 0xA8	; 168
   2d30e:	5f e3       	ldi	r21, 0x3F	; 63
   2d310:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2d314:	9f 93       	push	r25
   2d316:	8f 93       	push	r24
   2d318:	7f 93       	push	r23
   2d31a:	6f 93       	push	r22
   2d31c:	fd 81       	ldd	r31, Y+5	; 0x05
   2d31e:	6f 2f       	mov	r22, r31
   2d320:	70 e0       	ldi	r23, 0x00	; 0
   2d322:	90 e0       	ldi	r25, 0x00	; 0
   2d324:	80 e0       	ldi	r24, 0x00	; 0
   2d326:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2d32a:	20 e0       	ldi	r18, 0x00	; 0
   2d32c:	30 e0       	ldi	r19, 0x00	; 0
   2d32e:	40 eb       	ldi	r20, 0xB0	; 176
   2d330:	50 e4       	ldi	r21, 0x40	; 64
   2d332:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2d336:	9f 93       	push	r25
   2d338:	8f 93       	push	r24
   2d33a:	7f 93       	push	r23
   2d33c:	6f 93       	push	r22
   2d33e:	61 2f       	mov	r22, r17
   2d340:	70 e0       	ldi	r23, 0x00	; 0
   2d342:	90 e0       	ldi	r25, 0x00	; 0
   2d344:	80 e0       	ldi	r24, 0x00	; 0
   2d346:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2d34a:	20 e0       	ldi	r18, 0x00	; 0
   2d34c:	30 e0       	ldi	r19, 0x00	; 0
   2d34e:	40 eb       	ldi	r20, 0xB0	; 176
   2d350:	50 e4       	ldi	r21, 0x40	; 64
   2d352:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2d356:	9f 93       	push	r25
   2d358:	8f 93       	push	r24
   2d35a:	7f 93       	push	r23
   2d35c:	6f 93       	push	r22
   2d35e:	8e eb       	ldi	r24, 0xBE	; 190
   2d360:	95 ea       	ldi	r25, 0xA5	; 165
   2d362:	9f 93       	push	r25
   2d364:	8f 93       	push	r24
   2d366:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

	*pc = max_c;
   2d36a:	f2 01       	movw	r30, r4
   2d36c:	10 83       	st	Z, r17
	*pr = max_r;
   2d36e:	2d 81       	ldd	r18, Y+5	; 0x05
   2d370:	f1 01       	movw	r30, r2
   2d372:	20 83       	st	Z, r18
   2d374:	0f b6       	in	r0, 0x3f	; 63
   2d376:	f8 94       	cli
   2d378:	de bf       	out	0x3e, r29	; 62
   2d37a:	0f be       	out	0x3f, r0	; 63
   2d37c:	cd bf       	out	0x3d, r28	; 61
	return max_match;
}
   2d37e:	8c 81       	ldd	r24, Y+4	; 0x04
   2d380:	0f 90       	pop	r0
   2d382:	0f 90       	pop	r0
   2d384:	0f 90       	pop	r0
   2d386:	0f 90       	pop	r0
   2d388:	0f 90       	pop	r0
   2d38a:	df 91       	pop	r29
   2d38c:	cf 91       	pop	r28
   2d38e:	1f 91       	pop	r17
   2d390:	0f 91       	pop	r16
   2d392:	ff 90       	pop	r15
   2d394:	ef 90       	pop	r14
   2d396:	df 90       	pop	r13
   2d398:	cf 90       	pop	r12
   2d39a:	bf 90       	pop	r11
   2d39c:	af 90       	pop	r10
   2d39e:	9f 90       	pop	r9
   2d3a0:	8f 90       	pop	r8
   2d3a2:	7f 90       	pop	r7
   2d3a4:	6f 90       	pop	r6
   2d3a6:	5f 90       	pop	r5
   2d3a8:	4f 90       	pop	r4
   2d3aa:	3f 90       	pop	r3
   2d3ac:	2f 90       	pop	r2
   2d3ae:	08 95       	ret
	uint8_t match = 0;
	for (uint8_t i = 0; i < 12; ++i){
		for (uint8_t j = 0; j < 12; ++j){
			/// skip corners (3 pixels in each)
			if (((i == 0) || (i == 11)) && ((j < 2) || (j >= 10))) continue;
			if (((j == 0) || (j == 11)) && ((i < 2) || (i >= 10))) continue;
   2d3b0:	22 23       	and	r18, r18
   2d3b2:	11 f0       	breq	.+4      	; 0x2d3b8 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x178>
   2d3b4:	2b 30       	cpi	r18, 0x0B	; 11
   2d3b6:	21 f4       	brne	.+8      	; 0x2d3c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x180>
   2d3b8:	ab 81       	ldd	r26, Y+3	; 0x03
   2d3ba:	a8 30       	cpi	r26, 0x08	; 8
   2d3bc:	08 f0       	brcs	.+2      	; 0x2d3c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x180>
   2d3be:	80 cf       	rjmp	.-256    	; 0x2d2c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x80>
			const uint16_t idx = (c + j) + 32 * ((uint16_t)r + i);
			const bool high_pix = pixels[idx] > thr;
   2d3c0:	99 24       	eor	r9, r9
   2d3c2:	93 94       	inc	r9
   2d3c4:	d6 01       	movw	r26, r12
   2d3c6:	a2 0f       	add	r26, r18
   2d3c8:	b3 1f       	adc	r27, r19
   2d3ca:	ac 91       	ld	r26, X
   2d3cc:	a1 31       	cpi	r26, 0x11	; 17
   2d3ce:	08 f4       	brcc	.+2      	; 0x2d3d2 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x192>
   2d3d0:	91 2c       	mov	r9, r1
			const bool high_pat = pattern[i] & (1 << j);
   2d3d2:	a0 80       	ld	r10, Z
   2d3d4:	b1 80       	ldd	r11, Z+1	; 0x01
   2d3d6:	d3 01       	movw	r26, r6
   2d3d8:	02 2e       	mov	r0, r18
   2d3da:	02 c0       	rjmp	.+4      	; 0x2d3e0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x1a0>
   2d3dc:	aa 0f       	add	r26, r26
   2d3de:	bb 1f       	adc	r27, r27
   2d3e0:	0a 94       	dec	r0
   2d3e2:	e2 f7       	brpl	.-8      	; 0x2d3dc <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x19c>
   2d3e4:	aa 21       	and	r26, r10
   2d3e6:	bb 21       	and	r27, r11
   2d3e8:	bb 24       	eor	r11, r11
   2d3ea:	b3 94       	inc	r11
   2d3ec:	ab 2b       	or	r26, r27
   2d3ee:	09 f4       	brne	.+2      	; 0x2d3f2 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x1b2>
   2d3f0:	b1 2c       	mov	r11, r1
			if (high_pix == high_pat)
   2d3f2:	9b 10       	cpse	r9, r11
   2d3f4:	65 cf       	rjmp	.-310    	; 0x2d2c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x80>
				match++;
   2d3f6:	0f 5f       	subi	r16, 0xFF	; 255
   2d3f8:	63 cf       	rjmp	.-314    	; 0x2d2c0 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]+0x80>

0002d3fa <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]>:
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.  Reasons for
 * failure include not finding a valid partition, not finding a valid
 * FAT file system in the specified partition or an I/O error.
 */
bool SdVolume::init(Sd2Card* dev, uint8_t part) {
   2d3fa:	8f 92       	push	r8
   2d3fc:	9f 92       	push	r9
   2d3fe:	af 92       	push	r10
   2d400:	bf 92       	push	r11
   2d402:	cf 92       	push	r12
   2d404:	df 92       	push	r13
   2d406:	ef 92       	push	r14
   2d408:	ff 92       	push	r15
   2d40a:	cf 93       	push	r28
   2d40c:	df 93       	push	r29
  uint32_t totalBlocks;
  uint32_t volumeStartBlock = 0;
  fat32_boot_t* fbs;

  sdCard_ = dev;
   2d40e:	2d ef       	ldi	r18, 0xFD	; 253
   2d410:	36 e1       	ldi	r19, 0x16	; 22
   2d412:	30 93 9b 0e 	sts	0x0E9B, r19	; 0x800e9b <SdVolume::sdCard_+0x1>
   2d416:	20 93 9a 0e 	sts	0x0E9A, r18	; 0x800e9a <SdVolume::sdCard_>
  fatType_ = 0;
   2d41a:	10 92 19 17 	sts	0x1719, r1	; 0x801719 <card+0x28b>
  allocSearchStart_ = 2;
   2d41e:	42 e0       	ldi	r20, 0x02	; 2
   2d420:	50 e0       	ldi	r21, 0x00	; 0
   2d422:	60 e0       	ldi	r22, 0x00	; 0
   2d424:	70 e0       	ldi	r23, 0x00	; 0
   2d426:	40 93 02 17 	sts	0x1702, r20	; 0x801702 <card+0x274>
   2d42a:	50 93 03 17 	sts	0x1703, r21	; 0x801703 <card+0x275>
   2d42e:	60 93 04 17 	sts	0x1704, r22	; 0x801704 <card+0x276>
   2d432:	70 93 05 17 	sts	0x1705, r23	; 0x801705 <card+0x277>
  cacheDirty_ = 0;  // cacheFlush() will write block if true
   2d436:	10 92 99 0e 	sts	0x0E99, r1	; 0x800e99 <SdVolume::cacheDirty_>
  cacheMirrorBlock_ = 0;
   2d43a:	10 92 95 0e 	sts	0x0E95, r1	; 0x800e95 <SdVolume::cacheMirrorBlock_>
   2d43e:	10 92 96 0e 	sts	0x0E96, r1	; 0x800e96 <SdVolume::cacheMirrorBlock_+0x1>
   2d442:	10 92 97 0e 	sts	0x0E97, r1	; 0x800e97 <SdVolume::cacheMirrorBlock_+0x2>
   2d446:	10 92 98 0e 	sts	0x0E98, r1	; 0x800e98 <SdVolume::cacheMirrorBlock_+0x3>
  cacheBlockNumber_ = 0XFFFFFFFF;
   2d44a:	4f ef       	ldi	r20, 0xFF	; 255
   2d44c:	5f ef       	ldi	r21, 0xFF	; 255
   2d44e:	ba 01       	movw	r22, r20
   2d450:	40 93 91 0e 	sts	0x0E91, r20	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2d454:	50 93 92 0e 	sts	0x0E92, r21	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2d458:	60 93 93 0e 	sts	0x0E93, r22	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2d45c:	70 93 94 0e 	sts	0x0E94, r23	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>

  // if part == 0 assume super floppy with FAT boot sector in block zero
  // if part > 0 assume mbr volume with partition table
  if (part) {
   2d460:	88 23       	and	r24, r24
   2d462:	09 f4       	brne	.+2      	; 0x2d466 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x6c>
   2d464:	70 c0       	rjmp	.+224    	; 0x2d546 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x14c>
    if (part > 4)goto fail;
    if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
   2d466:	40 e0       	ldi	r20, 0x00	; 0
   2d468:	60 e0       	ldi	r22, 0x00	; 0
   2d46a:	70 e0       	ldi	r23, 0x00	; 0
   2d46c:	cb 01       	movw	r24, r22
   2d46e:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2d472:	81 11       	cpse	r24, r1
   2d474:	0d c0       	rjmp	.+26     	; 0x2d490 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x96>
    fatType_ = 32;
  }
  return true;

 fail:
  return false;
   2d476:	c0 e0       	ldi	r28, 0x00	; 0
}
   2d478:	8c 2f       	mov	r24, r28
   2d47a:	df 91       	pop	r29
   2d47c:	cf 91       	pop	r28
   2d47e:	ff 90       	pop	r15
   2d480:	ef 90       	pop	r14
   2d482:	df 90       	pop	r13
   2d484:	cf 90       	pop	r12
   2d486:	bf 90       	pop	r11
   2d488:	af 90       	pop	r10
   2d48a:	9f 90       	pop	r9
   2d48c:	8f 90       	pop	r8
   2d48e:	08 95       	ret
  // if part > 0 assume mbr volume with partition table
  if (part) {
    if (part > 4)goto fail;
    if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
    part_t* p = &cacheBuffer_.mbr.part[part-1];
    if ((p->boot & 0X7F) !=0  ||
   2d490:	80 91 5b 10 	lds	r24, 0x105B	; 0x80105b <SdVolume::cacheBuffer_+0x1be>
   2d494:	8f 77       	andi	r24, 0x7F	; 127
   2d496:	79 f7       	brne	.-34     	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
   2d498:	80 91 67 10 	lds	r24, 0x1067	; 0x801067 <SdVolume::cacheBuffer_+0x1ca>
   2d49c:	90 91 68 10 	lds	r25, 0x1068	; 0x801068 <SdVolume::cacheBuffer_+0x1cb>
   2d4a0:	a0 91 69 10 	lds	r26, 0x1069	; 0x801069 <SdVolume::cacheBuffer_+0x1cc>
   2d4a4:	b0 91 6a 10 	lds	r27, 0x106A	; 0x80106a <SdVolume::cacheBuffer_+0x1cd>
   2d4a8:	84 36       	cpi	r24, 0x64	; 100
   2d4aa:	91 05       	cpc	r25, r1
   2d4ac:	a1 05       	cpc	r26, r1
   2d4ae:	b1 05       	cpc	r27, r1
   2d4b0:	10 f3       	brcs	.-60     	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
      p->totalSectors < 100 ||
      p->firstSector == 0) {
   2d4b2:	c0 90 63 10 	lds	r12, 0x1063	; 0x801063 <SdVolume::cacheBuffer_+0x1c6>
   2d4b6:	d0 90 64 10 	lds	r13, 0x1064	; 0x801064 <SdVolume::cacheBuffer_+0x1c7>
   2d4ba:	e0 90 65 10 	lds	r14, 0x1065	; 0x801065 <SdVolume::cacheBuffer_+0x1c8>
   2d4be:	f0 90 66 10 	lds	r15, 0x1066	; 0x801066 <SdVolume::cacheBuffer_+0x1c9>
  if (part) {
    if (part > 4)goto fail;
    if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
    part_t* p = &cacheBuffer_.mbr.part[part-1];
    if ((p->boot & 0X7F) !=0  ||
      p->totalSectors < 100 ||
   2d4c2:	c1 14       	cp	r12, r1
   2d4c4:	d1 04       	cpc	r13, r1
   2d4c6:	e1 04       	cpc	r14, r1
   2d4c8:	f1 04       	cpc	r15, r1
   2d4ca:	a9 f2       	breq	.-86     	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
      // not a valid partition
      goto fail;
    }
    volumeStartBlock = p->firstSector;
  }
  if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
   2d4cc:	40 e0       	ldi	r20, 0x00	; 0
   2d4ce:	c7 01       	movw	r24, r14
   2d4d0:	b6 01       	movw	r22, r12
   2d4d2:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2d4d6:	c8 2f       	mov	r28, r24
   2d4d8:	88 23       	and	r24, r24
   2d4da:	69 f2       	breq	.-102    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
  fbs = &cacheBuffer_.fbs32;
  if (fbs->bytesPerSector != 512 ||
   2d4dc:	80 91 a8 0e 	lds	r24, 0x0EA8	; 0x800ea8 <SdVolume::cacheBuffer_+0xb>
   2d4e0:	90 91 a9 0e 	lds	r25, 0x0EA9	; 0x800ea9 <SdVolume::cacheBuffer_+0xc>
   2d4e4:	81 15       	cp	r24, r1
   2d4e6:	92 40       	sbci	r25, 0x02	; 2
   2d4e8:	31 f6       	brne	.-116    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
    fbs->fatCount == 0 ||
   2d4ea:	a0 91 ad 0e 	lds	r26, 0x0EAD	; 0x800ead <SdVolume::cacheBuffer_+0x10>
    }
    volumeStartBlock = p->firstSector;
  }
  if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
  fbs = &cacheBuffer_.fbs32;
  if (fbs->bytesPerSector != 512 ||
   2d4ee:	aa 23       	and	r26, r26
   2d4f0:	11 f2       	breq	.-124    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
    fbs->fatCount == 0 ||
    fbs->reservedSectorCount == 0 ||
   2d4f2:	60 91 ab 0e 	lds	r22, 0x0EAB	; 0x800eab <SdVolume::cacheBuffer_+0xe>
   2d4f6:	70 91 ac 0e 	lds	r23, 0x0EAC	; 0x800eac <SdVolume::cacheBuffer_+0xf>
    volumeStartBlock = p->firstSector;
  }
  if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
  fbs = &cacheBuffer_.fbs32;
  if (fbs->bytesPerSector != 512 ||
    fbs->fatCount == 0 ||
   2d4fa:	61 15       	cp	r22, r1
   2d4fc:	71 05       	cpc	r23, r1
   2d4fe:	09 f4       	brne	.+2      	; 0x2d502 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x108>
   2d500:	ba cf       	rjmp	.-140    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
    fbs->reservedSectorCount == 0 ||
    fbs->sectorsPerCluster == 0) {
   2d502:	20 91 aa 0e 	lds	r18, 0x0EAA	; 0x800eaa <SdVolume::cacheBuffer_+0xd>
  }
  if (!cacheRawBlock(volumeStartBlock, CACHE_FOR_READ)) goto fail;
  fbs = &cacheBuffer_.fbs32;
  if (fbs->bytesPerSector != 512 ||
    fbs->fatCount == 0 ||
    fbs->reservedSectorCount == 0 ||
   2d506:	22 23       	and	r18, r18
   2d508:	09 f4       	brne	.+2      	; 0x2d50c <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x112>
   2d50a:	b5 cf       	rjmp	.-150    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
    fbs->sectorsPerCluster == 0) {
       // not valid FAT volume
      goto fail;
  }
  fatCount_ = fbs->fatCount;
   2d50c:	a0 93 14 17 	sts	0x1714, r26	; 0x801714 <card+0x286>
  blocksPerCluster_ = fbs->sectorsPerCluster;
   2d510:	20 93 06 17 	sts	0x1706, r18	; 0x801706 <card+0x278>
  // determine shift that is same as multiply by blocksPerCluster_
  clusterSizeShift_ = 0;
   2d514:	90 e0       	ldi	r25, 0x00	; 0
   2d516:	80 e0       	ldi	r24, 0x00	; 0
  while (blocksPerCluster_ != (1 << clusterSizeShift_)) {
   2d518:	30 e0       	ldi	r19, 0x00	; 0
   2d51a:	e1 e0       	ldi	r30, 0x01	; 1
   2d51c:	f0 e0       	ldi	r31, 0x00	; 0
   2d51e:	d8 2f       	mov	r29, r24
   2d520:	af 01       	movw	r20, r30
   2d522:	08 2e       	mov	r0, r24
   2d524:	02 c0       	rjmp	.+4      	; 0x2d52a <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x130>
   2d526:	44 0f       	add	r20, r20
   2d528:	55 1f       	adc	r21, r21
   2d52a:	0a 94       	dec	r0
   2d52c:	e2 f7       	brpl	.-8      	; 0x2d526 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x12c>
   2d52e:	24 17       	cp	r18, r20
   2d530:	35 07       	cpc	r19, r21
   2d532:	69 f0       	breq	.+26     	; 0x2d54e <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x154>
   2d534:	41 e0       	ldi	r20, 0x01	; 1
   2d536:	48 0f       	add	r20, r24
   2d538:	01 96       	adiw	r24, 0x01	; 1
    // error if not power of 2
    if (clusterSizeShift_++ > 7) goto fail;
   2d53a:	89 30       	cpi	r24, 0x09	; 9
   2d53c:	91 05       	cpc	r25, r1
   2d53e:	79 f7       	brne	.-34     	; 0x2d51e <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x124>
   2d540:	40 93 0f 17 	sts	0x170F, r20	; 0x80170f <card+0x281>
   2d544:	98 cf       	rjmp	.-208    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
 * failure include not finding a valid partition, not finding a valid
 * FAT file system in the specified partition or an I/O error.
 */
bool SdVolume::init(Sd2Card* dev, uint8_t part) {
  uint32_t totalBlocks;
  uint32_t volumeStartBlock = 0;
   2d546:	c1 2c       	mov	r12, r1
   2d548:	d1 2c       	mov	r13, r1
   2d54a:	76 01       	movw	r14, r12
   2d54c:	bf cf       	rjmp	.-130    	; 0x2d4cc <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0xd2>
   2d54e:	80 93 0f 17 	sts	0x170F, r24	; 0x80170f <card+0x281>
  clusterSizeShift_ = 0;
  while (blocksPerCluster_ != (1 << clusterSizeShift_)) {
    // error if not power of 2
    if (clusterSizeShift_++ > 7) goto fail;
  }
  blocksPerFat_ = fbs->sectorsPerFat16 ?
   2d552:	20 91 b3 0e 	lds	r18, 0x0EB3	; 0x800eb3 <SdVolume::cacheBuffer_+0x16>
   2d556:	30 91 b4 0e 	lds	r19, 0x0EB4	; 0x800eb4 <SdVolume::cacheBuffer_+0x17>
   2d55a:	50 e0       	ldi	r21, 0x00	; 0
   2d55c:	40 e0       	ldi	r20, 0x00	; 0
   2d55e:	21 15       	cp	r18, r1
   2d560:	31 05       	cpc	r19, r1
   2d562:	41 f4       	brne	.+16     	; 0x2d574 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x17a>
   2d564:	20 91 c1 0e 	lds	r18, 0x0EC1	; 0x800ec1 <SdVolume::cacheBuffer_+0x24>
   2d568:	30 91 c2 0e 	lds	r19, 0x0EC2	; 0x800ec2 <SdVolume::cacheBuffer_+0x25>
   2d56c:	40 91 c3 0e 	lds	r20, 0x0EC3	; 0x800ec3 <SdVolume::cacheBuffer_+0x26>
   2d570:	50 91 c4 0e 	lds	r21, 0x0EC4	; 0x800ec4 <SdVolume::cacheBuffer_+0x27>
   2d574:	20 93 07 17 	sts	0x1707, r18	; 0x801707 <card+0x279>
   2d578:	30 93 08 17 	sts	0x1708, r19	; 0x801708 <card+0x27a>
   2d57c:	40 93 09 17 	sts	0x1709, r20	; 0x801709 <card+0x27b>
   2d580:	50 93 0a 17 	sts	0x170A, r21	; 0x80170a <card+0x27c>
                    fbs->sectorsPerFat16 : fbs->sectorsPerFat32;

  fatStartBlock_ = volumeStartBlock + fbs->reservedSectorCount;
   2d584:	46 01       	movw	r8, r12
   2d586:	57 01       	movw	r10, r14
   2d588:	86 0e       	add	r8, r22
   2d58a:	97 1e       	adc	r9, r23
   2d58c:	a1 1c       	adc	r10, r1
   2d58e:	b1 1c       	adc	r11, r1
   2d590:	80 92 15 17 	sts	0x1715, r8	; 0x801715 <card+0x287>
   2d594:	90 92 16 17 	sts	0x1716, r9	; 0x801716 <card+0x288>
   2d598:	a0 92 17 17 	sts	0x1717, r10	; 0x801717 <card+0x289>
   2d59c:	b0 92 18 17 	sts	0x1718, r11	; 0x801718 <card+0x28a>

  // count for FAT16 zero for FAT32
  rootDirEntryCount_ = fbs->rootDirEntryCount;
   2d5a0:	e0 91 ae 0e 	lds	r30, 0x0EAE	; 0x800eae <SdVolume::cacheBuffer_+0x11>
   2d5a4:	f0 91 af 0e 	lds	r31, 0x0EAF	; 0x800eaf <SdVolume::cacheBuffer_+0x12>
   2d5a8:	f0 93 1b 17 	sts	0x171B, r31	; 0x80171b <card+0x28d>
   2d5ac:	e0 93 1a 17 	sts	0x171A, r30	; 0x80171a <card+0x28c>

  // directory start for FAT16 dataStart for FAT32
  rootDirStart_ = fatStartBlock_ + fbs->fatCount * blocksPerFat_;
   2d5b0:	b0 e0       	ldi	r27, 0x00	; 0
   2d5b2:	0f 94 f0 dc 	call	0x3b9e0	; 0x3b9e0 <__muluhisi3>
   2d5b6:	dc 01       	movw	r26, r24
   2d5b8:	cb 01       	movw	r24, r22
   2d5ba:	88 0d       	add	r24, r8
   2d5bc:	99 1d       	adc	r25, r9
   2d5be:	aa 1d       	adc	r26, r10
   2d5c0:	bb 1d       	adc	r27, r11
   2d5c2:	80 93 1c 17 	sts	0x171C, r24	; 0x80171c <card+0x28e>
   2d5c6:	90 93 1d 17 	sts	0x171D, r25	; 0x80171d <card+0x28f>
   2d5ca:	a0 93 1e 17 	sts	0x171E, r26	; 0x80171e <card+0x290>
   2d5ce:	b0 93 1f 17 	sts	0x171F, r27	; 0x80171f <card+0x291>

  // data start for FAT16 and FAT32
  dataStartBlock_ = rootDirStart_ + ((32 * fbs->rootDirEntryCount + 511)/512);
   2d5d2:	25 e0       	ldi	r18, 0x05	; 5
   2d5d4:	ee 0f       	add	r30, r30
   2d5d6:	ff 1f       	adc	r31, r31
   2d5d8:	2a 95       	dec	r18
   2d5da:	e1 f7       	brne	.-8      	; 0x2d5d4 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x1da>
   2d5dc:	e1 50       	subi	r30, 0x01	; 1
   2d5de:	fe 4f       	sbci	r31, 0xFE	; 254
   2d5e0:	ef 2f       	mov	r30, r31
   2d5e2:	ff 27       	eor	r31, r31
   2d5e4:	e6 95       	lsr	r30
   2d5e6:	8e 0f       	add	r24, r30
   2d5e8:	9f 1f       	adc	r25, r31
   2d5ea:	a1 1d       	adc	r26, r1
   2d5ec:	b1 1d       	adc	r27, r1
   2d5ee:	80 93 10 17 	sts	0x1710, r24	; 0x801710 <card+0x282>
   2d5f2:	90 93 11 17 	sts	0x1711, r25	; 0x801711 <card+0x283>
   2d5f6:	a0 93 12 17 	sts	0x1712, r26	; 0x801712 <card+0x284>
   2d5fa:	b0 93 13 17 	sts	0x1713, r27	; 0x801713 <card+0x285>

  // total blocks for FAT16 or FAT32
  totalBlocks = fbs->totalSectors16 ?
   2d5fe:	80 90 b0 0e 	lds	r8, 0x0EB0	; 0x800eb0 <SdVolume::cacheBuffer_+0x13>
   2d602:	90 90 b1 0e 	lds	r9, 0x0EB1	; 0x800eb1 <SdVolume::cacheBuffer_+0x14>
   2d606:	b1 2c       	mov	r11, r1
   2d608:	a1 2c       	mov	r10, r1
   2d60a:	81 14       	cp	r8, r1
   2d60c:	91 04       	cpc	r9, r1
   2d60e:	41 f4       	brne	.+16     	; 0x2d620 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x226>
   2d610:	80 90 bd 0e 	lds	r8, 0x0EBD	; 0x800ebd <SdVolume::cacheBuffer_+0x20>
   2d614:	90 90 be 0e 	lds	r9, 0x0EBE	; 0x800ebe <SdVolume::cacheBuffer_+0x21>
   2d618:	a0 90 bf 0e 	lds	r10, 0x0EBF	; 0x800ebf <SdVolume::cacheBuffer_+0x22>
   2d61c:	b0 90 c0 0e 	lds	r11, 0x0EC0	; 0x800ec0 <SdVolume::cacheBuffer_+0x23>
                           fbs->totalSectors16 : fbs->totalSectors32;
  // total data blocks
  clusterCount_ = totalBlocks - (dataStartBlock_ - volumeStartBlock);
   2d620:	c8 1a       	sub	r12, r24
   2d622:	d9 0a       	sbc	r13, r25
   2d624:	ea 0a       	sbc	r14, r26
   2d626:	fb 0a       	sbc	r15, r27
   2d628:	c8 0c       	add	r12, r8
   2d62a:	d9 1c       	adc	r13, r9
   2d62c:	ea 1c       	adc	r14, r10
   2d62e:	fb 1c       	adc	r15, r11

  // divide by cluster size to get cluster count
  clusterCount_ >>= clusterSizeShift_;
   2d630:	04 c0       	rjmp	.+8      	; 0x2d63a <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x240>
   2d632:	f6 94       	lsr	r15
   2d634:	e7 94       	ror	r14
   2d636:	d7 94       	ror	r13
   2d638:	c7 94       	ror	r12
   2d63a:	da 95       	dec	r29
   2d63c:	d2 f7       	brpl	.-12     	; 0x2d632 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x238>
   2d63e:	c0 92 0b 17 	sts	0x170B, r12	; 0x80170b <card+0x27d>
   2d642:	d0 92 0c 17 	sts	0x170C, r13	; 0x80170c <card+0x27e>
   2d646:	e0 92 0d 17 	sts	0x170D, r14	; 0x80170d <card+0x27f>
   2d64a:	f0 92 0e 17 	sts	0x170E, r15	; 0x80170e <card+0x280>

  // FAT type is determined by cluster count
  if (clusterCount_ < 4085) {
   2d64e:	85 ef       	ldi	r24, 0xF5	; 245
   2d650:	c8 16       	cp	r12, r24
   2d652:	8f e0       	ldi	r24, 0x0F	; 15
   2d654:	d8 06       	cpc	r13, r24
   2d656:	e1 04       	cpc	r14, r1
   2d658:	f1 04       	cpc	r15, r1
   2d65a:	20 f4       	brcc	.+8      	; 0x2d664 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x26a>
    fatType_ = 12;
   2d65c:	8c e0       	ldi	r24, 0x0C	; 12
   2d65e:	80 93 19 17 	sts	0x1719, r24	; 0x801719 <card+0x28b>
   2d662:	09 cf       	rjmp	.-494    	; 0x2d476 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7c>
    if (!FAT12_SUPPORT) goto fail;
  } else if (clusterCount_ < 65525) {
    fatType_ = 16;
   2d664:	80 e1       	ldi	r24, 0x10	; 16

  // FAT type is determined by cluster count
  if (clusterCount_ < 4085) {
    fatType_ = 12;
    if (!FAT12_SUPPORT) goto fail;
  } else if (clusterCount_ < 65525) {
   2d666:	25 ef       	ldi	r18, 0xF5	; 245
   2d668:	c2 16       	cp	r12, r18
   2d66a:	2f ef       	ldi	r18, 0xFF	; 255
   2d66c:	d2 06       	cpc	r13, r18
   2d66e:	e1 04       	cpc	r14, r1
   2d670:	f1 04       	cpc	r15, r1
   2d672:	88 f0       	brcs	.+34     	; 0x2d696 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x29c>
    fatType_ = 16;
  } else {
    rootDirStart_ = fbs->fat32RootCluster;
   2d674:	80 91 c9 0e 	lds	r24, 0x0EC9	; 0x800ec9 <SdVolume::cacheBuffer_+0x2c>
   2d678:	90 91 ca 0e 	lds	r25, 0x0ECA	; 0x800eca <SdVolume::cacheBuffer_+0x2d>
   2d67c:	a0 91 cb 0e 	lds	r26, 0x0ECB	; 0x800ecb <SdVolume::cacheBuffer_+0x2e>
   2d680:	b0 91 cc 0e 	lds	r27, 0x0ECC	; 0x800ecc <SdVolume::cacheBuffer_+0x2f>
   2d684:	80 93 1c 17 	sts	0x171C, r24	; 0x80171c <card+0x28e>
   2d688:	90 93 1d 17 	sts	0x171D, r25	; 0x80171d <card+0x28f>
   2d68c:	a0 93 1e 17 	sts	0x171E, r26	; 0x80171e <card+0x290>
   2d690:	b0 93 1f 17 	sts	0x171F, r27	; 0x80171f <card+0x291>
    fatType_ = 32;
   2d694:	80 e2       	ldi	r24, 0x20	; 32
   2d696:	80 93 19 17 	sts	0x1719, r24	; 0x801719 <card+0x28b>
   2d69a:	ee ce       	rjmp	.-548    	; 0x2d478 <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]+0x7e>

0002d69c <MMU2::MMU2::HelpUnloadToFinda() [clone .constprop.203]>:
        break;
    }
}

void __attribute__((noinline)) MMU2::HelpUnloadToFinda() {
    extruder_move(-MMU2_RETRY_UNLOAD_TO_FINDA_LENGTH, MMU2_RETRY_UNLOAD_TO_FINDA_FEED_RATE);
   2d69c:	20 e0       	ldi	r18, 0x00	; 0
   2d69e:	30 e0       	ldi	r19, 0x00	; 0
   2d6a0:	40 ea       	ldi	r20, 0xA0	; 160
   2d6a2:	52 e4       	ldi	r21, 0x42	; 66
   2d6a4:	60 e0       	ldi	r22, 0x00	; 0
   2d6a6:	70 e0       	ldi	r23, 0x00	; 0
   2d6a8:	80 ea       	ldi	r24, 0xA0	; 160
   2d6aa:	92 ec       	ldi	r25, 0xC2	; 194
   2d6ac:	0d 94 f0 c5 	jmp	0x38be0	; 0x38be0 <MMU2::extruder_move(float, float)>

0002d6b0 <MMU2::MMU2::SaveHotendTemp(bool) [clone .constprop.142]>:
void MMU2::Home(uint8_t mode) {
    logic.Home(mode);
}

void MMU2::SaveHotendTemp(bool turn_off_nozzle) {
    if (mmu_print_saved & SavedState::Cooldown) {
   2d6b0:	90 91 bb 13 	lds	r25, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d6b4:	91 fd       	sbrc	r25, 1
   2d6b6:	17 c0       	rjmp	.+46     	; 0x2d6e6 <MMU2::MMU2::SaveHotendTemp(bool) [clone .constprop.142]+0x36>
        return;
    }

    if (turn_off_nozzle && !(mmu_print_saved & SavedState::CooldownPending)) {
   2d6b8:	88 23       	and	r24, r24
   2d6ba:	a9 f0       	breq	.+42     	; 0x2d6e6 <MMU2::MMU2::SaveHotendTemp(bool) [clone .constprop.142]+0x36>
   2d6bc:	92 fd       	sbrc	r25, 2
   2d6be:	13 c0       	rjmp	.+38     	; 0x2d6e6 <MMU2::MMU2::SaveHotendTemp(bool) [clone .constprop.142]+0x36>
        Disable_E0();
   2d6c0:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
        resume_hotend_temp = thermal_degTargetHotend();
   2d6c4:	80 91 b6 0d 	lds	r24, 0x0DB6	; 0x800db6 <target_temperature>
   2d6c8:	90 91 b7 0d 	lds	r25, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   2d6cc:	90 93 b0 13 	sts	0x13B0, r25	; 0x8013b0 <MMU2::mmu2+0x65>
   2d6d0:	80 93 af 13 	sts	0x13AF, r24	; 0x8013af <MMU2::mmu2+0x64>
        mmu_print_saved |= SavedState::CooldownPending;
   2d6d4:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d6d8:	84 60       	ori	r24, 0x04	; 4
   2d6da:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
        LogEchoEvent_P(PSTR("Heater cooldown pending"));
   2d6de:	82 e1       	ldi	r24, 0x12	; 18
   2d6e0:	97 ea       	ldi	r25, 0xA7	; 167
   2d6e2:	0d 94 14 c6 	jmp	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
    }
}
   2d6e6:	08 95       	ret

0002d6e8 <MMU2::MMU2::ResumeUnpark() [clone .constprop.144]>:
        ScreenClear();
    }
}

void MMU2::ResumeUnpark() {
    if (mmu_print_saved & SavedState::ParkExtruder) {
   2d6e8:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d6ec:	80 ff       	sbrs	r24, 0
   2d6ee:	47 c0       	rjmp	.+142    	; 0x2d77e <MMU2::MMU2::ResumeUnpark() [clone .constprop.144]+0x96>
        LogEchoEvent_P(PSTR("Resuming XYZ"));
   2d6f0:	8a e2       	ldi	r24, 0x2A	; 42
   2d6f2:	97 ea       	ldi	r25, 0xA7	; 167
   2d6f4:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>

        // Move XY to starting position, then Z
        motion_do_blocking_move_to_xy(resume_position.xyz[0], resume_position.xyz[1], feedRate_t(NOZZLE_PARK_XY_FEEDRATE));
   2d6f8:	80 91 a7 13 	lds	r24, 0x13A7	; 0x8013a7 <MMU2::mmu2+0x5c>
   2d6fc:	90 91 a8 13 	lds	r25, 0x13A8	; 0x8013a8 <MMU2::mmu2+0x5d>
   2d700:	a0 91 a9 13 	lds	r26, 0x13A9	; 0x8013a9 <MMU2::mmu2+0x5e>
   2d704:	b0 91 aa 13 	lds	r27, 0x13AA	; 0x8013aa <MMU2::mmu2+0x5f>
pos3d planner_current_position() {
    return pos3d(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS]);
}

void motion_do_blocking_move_to_xy(float rx, float ry, float feedRate_mm_s) {
    current_position[X_AXIS] = rx;
   2d708:	40 91 a3 13 	lds	r20, 0x13A3	; 0x8013a3 <MMU2::mmu2+0x58>
   2d70c:	50 91 a4 13 	lds	r21, 0x13A4	; 0x8013a4 <MMU2::mmu2+0x59>
   2d710:	60 91 a5 13 	lds	r22, 0x13A5	; 0x8013a5 <MMU2::mmu2+0x5a>
   2d714:	70 91 a6 13 	lds	r23, 0x13A6	; 0x8013a6 <MMU2::mmu2+0x5b>
   2d718:	40 93 92 06 	sts	0x0692, r20	; 0x800692 <current_position>
   2d71c:	50 93 93 06 	sts	0x0693, r21	; 0x800693 <current_position+0x1>
   2d720:	60 93 94 06 	sts	0x0694, r22	; 0x800694 <current_position+0x2>
   2d724:	70 93 95 06 	sts	0x0695, r23	; 0x800695 <current_position+0x3>
    current_position[Y_AXIS] = ry;
   2d728:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   2d72c:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   2d730:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   2d734:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
    planner_line_to_current_position_sync(feedRate_mm_s);
   2d738:	60 e0       	ldi	r22, 0x00	; 0
   2d73a:	70 e0       	ldi	r23, 0x00	; 0
   2d73c:	88 e4       	ldi	r24, 0x48	; 72
   2d73e:	92 e4       	ldi	r25, 0x42	; 66
   2d740:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
}

void motion_do_blocking_move_to_z(float z, float feedRate_mm_s) {
    current_position[Z_AXIS] = z;
   2d744:	80 91 ab 13 	lds	r24, 0x13AB	; 0x8013ab <MMU2::mmu2+0x60>
   2d748:	90 91 ac 13 	lds	r25, 0x13AC	; 0x8013ac <MMU2::mmu2+0x61>
   2d74c:	a0 91 ad 13 	lds	r26, 0x13AD	; 0x8013ad <MMU2::mmu2+0x62>
   2d750:	b0 91 ae 13 	lds	r27, 0x13AE	; 0x8013ae <MMU2::mmu2+0x63>
   2d754:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   2d758:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   2d75c:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   2d760:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
    planner_line_to_current_position_sync(feedRate_mm_s);
   2d764:	60 e0       	ldi	r22, 0x00	; 0
   2d766:	70 e0       	ldi	r23, 0x00	; 0
   2d768:	80 e7       	ldi	r24, 0x70	; 112
   2d76a:	91 e4       	ldi	r25, 0x41	; 65
   2d76c:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>

void clear_print_state_in_ram()
{
    // Set flag to false in order to avoid using
    // the saved values during power panic
    isPartialBackupAvailable = false;
   2d770:	10 92 a2 06 	sts	0x06A2, r1	; 0x8006a2 <isPartialBackupAvailable>
        // From this point forward, power panic should not use
        // the partial backup in RAM since the extruder is no
        // longer in parking position
        marlin_clear_print_state_in_ram();

        mmu_print_saved &= ~(SavedState::ParkExtruder);
   2d774:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d778:	8e 7f       	andi	r24, 0xFE	; 254
   2d77a:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
    }
}
   2d77e:	08 95       	ret

0002d780 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]>:
        mmu_print_saved |= SavedState::CooldownPending;
        LogEchoEvent_P(PSTR("Heater cooldown pending"));
    }
}

void MMU2::SaveAndPark(bool move_axes) {
   2d780:	0f 93       	push	r16
   2d782:	1f 93       	push	r17
   2d784:	cf 93       	push	r28
    if (mmu_print_saved == SavedState::None) { // First occurrence. Save current position, park print head, disable nozzle heater.
   2d786:	90 91 bb 13 	lds	r25, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d78a:	91 11       	cpse	r25, r1
   2d78c:	72 c0       	rjmp	.+228    	; 0x2d872 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0xf2>
   2d78e:	c8 2f       	mov	r28, r24
        LogEchoEvent_P(PSTR("Saving and parking"));
   2d790:	8f ef       	ldi	r24, 0xFF	; 255
   2d792:	96 ea       	ldi	r25, 0xA6	; 166
   2d794:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
        Disable_E0();
   2d798:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   2d79c:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
/// e.g. feedrate, Z-axis position etc.
/// This function should backup variables which may be lost
/// For example a power panic in M600 or during MMU error
void refresh_print_state_in_ram()
{
    if (saved_printing) return;
   2d7a0:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   2d7a4:	81 11       	cpse	r24, r1
   2d7a6:	02 c0       	rjmp	.+4      	; 0x2d7ac <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0x2c>
   2d7a8:	0e 94 d0 63 	call	0xc7a0	; 0xc7a0 <refresh_print_state_in_ram() [clone .part.39]>

        // In case a power panic happens while waiting for the user
        // take a partial back up of print state into RAM (current position, etc.)
        marlin_refresh_print_state_in_ram();

        if (move_axes) {
   2d7ac:	cc 23       	and	r28, r28
   2d7ae:	09 f4       	brne	.+2      	; 0x2d7b2 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0x32>
   2d7b0:	60 c0       	rjmp	.+192    	; 0x2d872 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0xf2>
            mmu_print_saved |= SavedState::ParkExtruder;
   2d7b2:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   2d7b6:	81 60       	ori	r24, 0x01	; 1
   2d7b8:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
void planner_set_current_position_E(float e) {
        current_position[E_AXIS] = e;
}

pos3d planner_current_position() {
    return pos3d(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS]);
   2d7bc:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
   2d7c0:	90 91 9b 06 	lds	r25, 0x069B	; 0x80069b <current_position+0x9>
   2d7c4:	a0 91 9c 06 	lds	r26, 0x069C	; 0x80069c <current_position+0xa>
   2d7c8:	b0 91 9d 06 	lds	r27, 0x069D	; 0x80069d <current_position+0xb>
   2d7cc:	40 91 96 06 	lds	r20, 0x0696	; 0x800696 <current_position+0x4>
   2d7d0:	50 91 97 06 	lds	r21, 0x0697	; 0x800697 <current_position+0x5>
   2d7d4:	60 91 98 06 	lds	r22, 0x0698	; 0x800698 <current_position+0x6>
   2d7d8:	70 91 99 06 	lds	r23, 0x0699	; 0x800699 <current_position+0x7>
            resume_position = planner_current_position(); // save current pos
   2d7dc:	00 91 92 06 	lds	r16, 0x0692	; 0x800692 <current_position>
   2d7e0:	10 91 93 06 	lds	r17, 0x0693	; 0x800693 <current_position+0x1>
   2d7e4:	20 91 94 06 	lds	r18, 0x0694	; 0x800694 <current_position+0x2>
   2d7e8:	30 91 95 06 	lds	r19, 0x0695	; 0x800695 <current_position+0x3>
   2d7ec:	00 93 a3 13 	sts	0x13A3, r16	; 0x8013a3 <MMU2::mmu2+0x58>
   2d7f0:	10 93 a4 13 	sts	0x13A4, r17	; 0x8013a4 <MMU2::mmu2+0x59>
   2d7f4:	20 93 a5 13 	sts	0x13A5, r18	; 0x8013a5 <MMU2::mmu2+0x5a>
   2d7f8:	30 93 a6 13 	sts	0x13A6, r19	; 0x8013a6 <MMU2::mmu2+0x5b>
   2d7fc:	40 93 a7 13 	sts	0x13A7, r20	; 0x8013a7 <MMU2::mmu2+0x5c>
   2d800:	50 93 a8 13 	sts	0x13A8, r21	; 0x8013a8 <MMU2::mmu2+0x5d>
   2d804:	60 93 a9 13 	sts	0x13A9, r22	; 0x8013a9 <MMU2::mmu2+0x5e>
   2d808:	70 93 aa 13 	sts	0x13AA, r23	; 0x8013aa <MMU2::mmu2+0x5f>
   2d80c:	80 93 ab 13 	sts	0x13AB, r24	; 0x8013ab <MMU2::mmu2+0x60>
   2d810:	90 93 ac 13 	sts	0x13AC, r25	; 0x8013ac <MMU2::mmu2+0x61>
   2d814:	a0 93 ad 13 	sts	0x13AD, r26	; 0x8013ad <MMU2::mmu2+0x62>
   2d818:	b0 93 ae 13 	sts	0x13AE, r27	; 0x8013ae <MMU2::mmu2+0x63>
    current_position[E_AXIS] += delta;
    planner_line_to_current_position(feedRate);
}

float move_raise_z(float delta) {
    return raise_z(delta);
   2d81c:	60 e0       	ldi	r22, 0x00	; 0
   2d81e:	70 e0       	ldi	r23, 0x00	; 0
   2d820:	80 ea       	ldi	r24, 0xA0	; 160
   2d822:	91 e4       	ldi	r25, 0x41	; 65
   2d824:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
void Disable_E0() {
    disable_e0();
}

bool all_axes_homed() {
    return axis_known_position[X_AXIS] && axis_known_position[Y_AXIS];
   2d828:	80 91 8f 06 	lds	r24, 0x068F	; 0x80068f <axis_known_position>
   2d82c:	88 23       	and	r24, r24
   2d82e:	09 f1       	breq	.+66     	; 0x2d872 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0xf2>
   2d830:	80 91 90 06 	lds	r24, 0x0690	; 0x800690 <axis_known_position+0x1>
   2d834:	88 23       	and	r24, r24
   2d836:	e9 f0       	breq	.+58     	; 0x2d872 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]+0xf2>
    current_position[Z_AXIS] = z;
    planner_line_to_current_position_sync(feedRate_mm_s);
}

void nozzle_park() {
    current_position[X_AXIS] = MMU_ERR_X_PAUSE_POS;
   2d838:	80 e0       	ldi	r24, 0x00	; 0
   2d83a:	90 e0       	ldi	r25, 0x00	; 0
   2d83c:	aa ef       	ldi	r26, 0xFA	; 250
   2d83e:	b2 e4       	ldi	r27, 0x42	; 66
   2d840:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   2d844:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   2d848:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   2d84c:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
    current_position[Y_AXIS] = MMU_ERR_Y_PAUSE_POS;
   2d850:	10 92 96 06 	sts	0x0696, r1	; 0x800696 <current_position+0x4>
   2d854:	10 92 97 06 	sts	0x0697, r1	; 0x800697 <current_position+0x5>
   2d858:	10 92 98 06 	sts	0x0698, r1	; 0x800698 <current_position+0x6>
   2d85c:	10 92 99 06 	sts	0x0699, r1	; 0x800699 <current_position+0x7>
    planner_line_to_current_position_sync(NOZZLE_PARK_XY_FEEDRATE);
   2d860:	60 e0       	ldi	r22, 0x00	; 0
   2d862:	70 e0       	ldi	r23, 0x00	; 0
   2d864:	88 e4       	ldi	r24, 0x48	; 72
   2d866:	92 e4       	ldi	r25, 0x42	; 66
            if (all_axes_homed()) {
                nozzle_park();
            }
        }
    }
}
   2d868:	cf 91       	pop	r28
   2d86a:	1f 91       	pop	r17
   2d86c:	0f 91       	pop	r16
   2d86e:	0d 94 10 c6 	jmp	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
   2d872:	cf 91       	pop	r28
   2d874:	1f 91       	pop	r17
   2d876:	0f 91       	pop	r16
   2d878:	08 95       	ret

0002d87a <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]>:

/// Searches for circle iteratively
/// Uses points on the perimeter. If point is high it pushes circle out of the center (shift or change of radius),
/// otherwise to the center.
/// Algorithm is stopped after fixed number of iterations. Move is limited to 0.5 px per iteration.
void dynamic_circle(uint8_t *matrix_32x32, float &x, float &y, float &r, uint8_t iterations){
   2d87a:	2f 92       	push	r2
   2d87c:	3f 92       	push	r3
   2d87e:	4f 92       	push	r4
   2d880:	5f 92       	push	r5
   2d882:	6f 92       	push	r6
   2d884:	7f 92       	push	r7
   2d886:	8f 92       	push	r8
   2d888:	9f 92       	push	r9
   2d88a:	af 92       	push	r10
   2d88c:	bf 92       	push	r11
   2d88e:	cf 92       	push	r12
   2d890:	df 92       	push	r13
   2d892:	ef 92       	push	r14
   2d894:	ff 92       	push	r15
   2d896:	0f 93       	push	r16
   2d898:	1f 93       	push	r17
   2d89a:	cf 93       	push	r28
   2d89c:	df 93       	push	r29
   2d89e:	cd b7       	in	r28, 0x3d	; 61
   2d8a0:	de b7       	in	r29, 0x3e	; 62
   2d8a2:	cd 5b       	subi	r28, 0xBD	; 189
   2d8a4:	d1 40       	sbci	r29, 0x01	; 1
   2d8a6:	0f b6       	in	r0, 0x3f	; 63
   2d8a8:	f8 94       	cli
   2d8aa:	de bf       	out	0x3e, r29	; 62
   2d8ac:	0f be       	out	0x3f, r0	; 63
   2d8ae:	cd bf       	out	0x3d, r28	; 61
   2d8b0:	c3 57       	subi	r28, 0x73	; 115
   2d8b2:	de 4f       	sbci	r29, 0xFE	; 254
   2d8b4:	99 83       	std	Y+1, r25	; 0x01
   2d8b6:	88 83       	st	Y, r24
   2d8b8:	cd 58       	subi	r28, 0x8D	; 141
   2d8ba:	d1 40       	sbci	r29, 0x01	; 1
   2d8bc:	c1 57       	subi	r28, 0x71	; 113
   2d8be:	de 4f       	sbci	r29, 0xFE	; 254
   2d8c0:	79 83       	std	Y+1, r23	; 0x01
   2d8c2:	68 83       	st	Y, r22
   2d8c4:	cf 58       	subi	r28, 0x8F	; 143
   2d8c6:	d1 40       	sbci	r29, 0x01	; 1
   2d8c8:	ce 56       	subi	r28, 0x6E	; 110
   2d8ca:	de 4f       	sbci	r29, 0xFE	; 254
   2d8cc:	59 83       	std	Y+1, r21	; 0x01
   2d8ce:	48 83       	st	Y, r20
   2d8d0:	c2 59       	subi	r28, 0x92	; 146
   2d8d2:	d1 40       	sbci	r29, 0x01	; 1
   2d8d4:	84 e1       	ldi	r24, 0x14	; 20
   2d8d6:	cf 56       	subi	r28, 0x6F	; 111
   2d8d8:	de 4f       	sbci	r29, 0xFE	; 254
   2d8da:	88 83       	st	Y, r24
   2d8dc:	c1 59       	subi	r28, 0x91	; 145
   2d8de:	d1 40       	sbci	r29, 0x01	; 1
		// DBG(_n(" [%f, %f][%f] circle\n"), x, y, r);

		/// read points on the circle
		for (uint8_t p = 0; p < num_points; ++p){
			const float angle = p * pi_2_div_num_points;
			const float height = get_value(matrix_32x32, r * cos(angle) + x, r * sin(angle) + y) - target_z;
   2d8e0:	ce 56       	subi	r28, 0x6E	; 110
   2d8e2:	de 4f       	sbci	r29, 0xFE	; 254
   2d8e4:	a8 81       	ld	r26, Y
   2d8e6:	b9 81       	ldd	r27, Y+1	; 0x01
   2d8e8:	c2 59       	subi	r28, 0x92	; 146
   2d8ea:	d1 40       	sbci	r29, 0x01	; 1
   2d8ec:	8d 91       	ld	r24, X+
   2d8ee:	9d 91       	ld	r25, X+
   2d8f0:	0d 90       	ld	r0, X+
   2d8f2:	bc 91       	ld	r27, X
   2d8f4:	a0 2d       	mov	r26, r0
   2d8f6:	c6 56       	subi	r28, 0x66	; 102
   2d8f8:	de 4f       	sbci	r29, 0xFE	; 254
   2d8fa:	88 83       	st	Y, r24
   2d8fc:	99 83       	std	Y+1, r25	; 0x01
   2d8fe:	aa 83       	std	Y+2, r26	; 0x02
   2d900:	bb 83       	std	Y+3, r27	; 0x03
   2d902:	ca 59       	subi	r28, 0x9A	; 154
   2d904:	d1 40       	sbci	r29, 0x01	; 1
   2d906:	c1 57       	subi	r28, 0x71	; 113
   2d908:	de 4f       	sbci	r29, 0xFE	; 254
   2d90a:	a8 81       	ld	r26, Y
   2d90c:	b9 81       	ldd	r27, Y+1	; 0x01
   2d90e:	cf 58       	subi	r28, 0x8F	; 143
   2d910:	d1 40       	sbci	r29, 0x01	; 1
   2d912:	8d 91       	ld	r24, X+
   2d914:	9d 91       	ld	r25, X+
   2d916:	0d 90       	ld	r0, X+
   2d918:	bc 91       	ld	r27, X
   2d91a:	a0 2d       	mov	r26, r0
   2d91c:	ca 54       	subi	r28, 0x4A	; 74
   2d91e:	de 4f       	sbci	r29, 0xFE	; 254
   2d920:	88 83       	st	Y, r24
   2d922:	99 83       	std	Y+1, r25	; 0x01
   2d924:	aa 83       	std	Y+2, r26	; 0x02
   2d926:	bb 83       	std	Y+3, r27	; 0x03
   2d928:	c6 5b       	subi	r28, 0xB6	; 182
   2d92a:	d1 40       	sbci	r29, 0x01	; 1
   2d92c:	c3 57       	subi	r28, 0x73	; 115
   2d92e:	de 4f       	sbci	r29, 0xFE	; 254
   2d930:	a8 81       	ld	r26, Y
   2d932:	b9 81       	ldd	r27, Y+1	; 0x01
   2d934:	cd 58       	subi	r28, 0x8D	; 141
   2d936:	d1 40       	sbci	r29, 0x01	; 1
   2d938:	8d 91       	ld	r24, X+
   2d93a:	9d 91       	ld	r25, X+
   2d93c:	0d 90       	ld	r0, X+
   2d93e:	bc 91       	ld	r27, X
   2d940:	a0 2d       	mov	r26, r0
   2d942:	c6 54       	subi	r28, 0x46	; 70
   2d944:	de 4f       	sbci	r29, 0xFE	; 254
   2d946:	88 83       	st	Y, r24
   2d948:	99 83       	std	Y+1, r25	; 0x01
   2d94a:	aa 83       	std	Y+2, r26	; 0x02
   2d94c:	bb 83       	std	Y+3, r27	; 0x03
   2d94e:	ca 5b       	subi	r28, 0xBA	; 186
   2d950:	d1 40       	sbci	r29, 0x01	; 1
   2d952:	fe 01       	movw	r30, r28
   2d954:	e7 5f       	subi	r30, 0xF7	; 247
   2d956:	fe 4f       	sbci	r31, 0xFE	; 254
   2d958:	c8 55       	subi	r28, 0x58	; 88
   2d95a:	de 4f       	sbci	r29, 0xFE	; 254
   2d95c:	f9 83       	std	Y+1, r31	; 0x01
   2d95e:	e8 83       	st	Y, r30
   2d960:	c8 5a       	subi	r28, 0xA8	; 168
   2d962:	d1 40       	sbci	r29, 0x01	; 1
   2d964:	ce 01       	movw	r24, r28
   2d966:	8b 57       	subi	r24, 0x7B	; 123
   2d968:	9f 4f       	sbci	r25, 0xFF	; 255
   2d96a:	ca 55       	subi	r28, 0x5A	; 90
   2d96c:	de 4f       	sbci	r29, 0xFE	; 254
   2d96e:	99 83       	std	Y+1, r25	; 0x01
   2d970:	88 83       	st	Y, r24
   2d972:	c6 5a       	subi	r28, 0xA6	; 166
   2d974:	d1 40       	sbci	r29, 0x01	; 1
   2d976:	de 01       	movw	r26, r28
   2d978:	11 96       	adiw	r26, 0x01	; 1
   2d97a:	c8 56       	subi	r28, 0x68	; 104
   2d97c:	de 4f       	sbci	r29, 0xFE	; 254
   2d97e:	b9 83       	std	Y+1, r27	; 0x01
   2d980:	a8 83       	st	Y, r26
   2d982:	c8 59       	subi	r28, 0x98	; 152
   2d984:	d1 40       	sbci	r29, 0x01	; 1
   2d986:	31 2c       	mov	r3, r1
   2d988:	21 2c       	mov	r2, r1
        //@size=128B
		// DBG(_n(" [%f, %f][%f] circle\n"), x, y, r);

		/// read points on the circle
		for (uint8_t p = 0; p < num_points; ++p){
			const float angle = p * pi_2_div_num_points;
   2d98a:	b1 01       	movw	r22, r2
   2d98c:	03 2c       	mov	r0, r3
   2d98e:	00 0c       	add	r0, r0
   2d990:	88 0b       	sbc	r24, r24
   2d992:	99 0b       	sbc	r25, r25
   2d994:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2d998:	2a e1       	ldi	r18, 0x1A	; 26
   2d99a:	38 ef       	ldi	r19, 0xF8	; 248
   2d99c:	42 e4       	ldi	r20, 0x42	; 66
   2d99e:	5e e3       	ldi	r21, 0x3E	; 62
   2d9a0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2d9a4:	6b 01       	movw	r12, r22
   2d9a6:	7c 01       	movw	r14, r24
			const float height = get_value(matrix_32x32, r * cos(angle) + x, r * sin(angle) + y) - target_z;
   2d9a8:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   2d9ac:	c2 56       	subi	r28, 0x62	; 98
   2d9ae:	de 4f       	sbci	r29, 0xFE	; 254
   2d9b0:	68 83       	st	Y, r22
   2d9b2:	79 83       	std	Y+1, r23	; 0x01
   2d9b4:	8a 83       	std	Y+2, r24	; 0x02
   2d9b6:	9b 83       	std	Y+3, r25	; 0x03
   2d9b8:	ce 59       	subi	r28, 0x9E	; 158
   2d9ba:	d1 40       	sbci	r29, 0x01	; 1
   2d9bc:	c7 01       	movw	r24, r14
   2d9be:	b6 01       	movw	r22, r12
   2d9c0:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   2d9c4:	ce 55       	subi	r28, 0x5E	; 94
   2d9c6:	de 4f       	sbci	r29, 0xFE	; 254
   2d9c8:	68 83       	st	Y, r22
   2d9ca:	79 83       	std	Y+1, r23	; 0x01
   2d9cc:	8a 83       	std	Y+2, r24	; 0x02
   2d9ce:	9b 83       	std	Y+3, r25	; 0x03
   2d9d0:	c2 5a       	subi	r28, 0xA2	; 162
   2d9d2:	d1 40       	sbci	r29, 0x01	; 1
   2d9d4:	9b 01       	movw	r18, r22
   2d9d6:	ac 01       	movw	r20, r24
   2d9d8:	c6 56       	subi	r28, 0x66	; 102
   2d9da:	de 4f       	sbci	r29, 0xFE	; 254
   2d9dc:	68 81       	ld	r22, Y
   2d9de:	79 81       	ldd	r23, Y+1	; 0x01
   2d9e0:	8a 81       	ldd	r24, Y+2	; 0x02
   2d9e2:	9b 81       	ldd	r25, Y+3	; 0x03
   2d9e4:	ca 59       	subi	r28, 0x9A	; 154
   2d9e6:	d1 40       	sbci	r29, 0x01	; 1
   2d9e8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2d9ec:	c6 54       	subi	r28, 0x46	; 70
   2d9ee:	de 4f       	sbci	r29, 0xFE	; 254
   2d9f0:	28 81       	ld	r18, Y
   2d9f2:	39 81       	ldd	r19, Y+1	; 0x01
   2d9f4:	4a 81       	ldd	r20, Y+2	; 0x02
   2d9f6:	5b 81       	ldd	r21, Y+3	; 0x03
   2d9f8:	ca 5b       	subi	r28, 0xBA	; 186
   2d9fa:	d1 40       	sbci	r29, 0x01	; 1
   2d9fc:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2da00:	6b 01       	movw	r12, r22
   2da02:	7c 01       	movw	r14, r24
}

/// returns value of any location within data
/// uses bilinear interpolation
float get_value(uint8_t * matrix_32x32, float c, float r){
	if (c <= 0 || r <= 0 || c >= 31 || r >= 31)
   2da04:	20 e0       	ldi	r18, 0x00	; 0
   2da06:	30 e0       	ldi	r19, 0x00	; 0
   2da08:	a9 01       	movw	r20, r18
   2da0a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2da0e:	18 16       	cp	r1, r24
   2da10:	0c f0       	brlt	.+2      	; 0x2da14 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x19a>
   2da12:	7a c2       	rjmp	.+1268   	; 0x2df08 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x68e>
		// DBG(_n(" [%f, %f][%f] circle\n"), x, y, r);

		/// read points on the circle
		for (uint8_t p = 0; p < num_points; ++p){
			const float angle = p * pi_2_div_num_points;
			const float height = get_value(matrix_32x32, r * cos(angle) + x, r * sin(angle) + y) - target_z;
   2da14:	c2 56       	subi	r28, 0x62	; 98
   2da16:	de 4f       	sbci	r29, 0xFE	; 254
   2da18:	28 81       	ld	r18, Y
   2da1a:	39 81       	ldd	r19, Y+1	; 0x01
   2da1c:	4a 81       	ldd	r20, Y+2	; 0x02
   2da1e:	5b 81       	ldd	r21, Y+3	; 0x03
   2da20:	ce 59       	subi	r28, 0x9E	; 158
   2da22:	d1 40       	sbci	r29, 0x01	; 1
   2da24:	c6 56       	subi	r28, 0x66	; 102
   2da26:	de 4f       	sbci	r29, 0xFE	; 254
   2da28:	68 81       	ld	r22, Y
   2da2a:	79 81       	ldd	r23, Y+1	; 0x01
   2da2c:	8a 81       	ldd	r24, Y+2	; 0x02
   2da2e:	9b 81       	ldd	r25, Y+3	; 0x03
   2da30:	ca 59       	subi	r28, 0x9A	; 154
   2da32:	d1 40       	sbci	r29, 0x01	; 1
   2da34:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2da38:	ca 54       	subi	r28, 0x4A	; 74
   2da3a:	de 4f       	sbci	r29, 0xFE	; 254
   2da3c:	28 81       	ld	r18, Y
   2da3e:	39 81       	ldd	r19, Y+1	; 0x01
   2da40:	4a 81       	ldd	r20, Y+2	; 0x02
   2da42:	5b 81       	ldd	r21, Y+3	; 0x03
   2da44:	c6 5b       	subi	r28, 0xB6	; 182
   2da46:	d1 40       	sbci	r29, 0x01	; 1
   2da48:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2da4c:	4b 01       	movw	r8, r22
   2da4e:	5c 01       	movw	r10, r24
}

/// returns value of any location within data
/// uses bilinear interpolation
float get_value(uint8_t * matrix_32x32, float c, float r){
	if (c <= 0 || r <= 0 || c >= 31 || r >= 31)
   2da50:	20 e0       	ldi	r18, 0x00	; 0
   2da52:	30 e0       	ldi	r19, 0x00	; 0
   2da54:	a9 01       	movw	r20, r18
   2da56:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2da5a:	18 16       	cp	r1, r24
   2da5c:	0c f0       	brlt	.+2      	; 0x2da60 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x1e6>
   2da5e:	54 c2       	rjmp	.+1192   	; 0x2df08 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x68e>
   2da60:	20 e0       	ldi	r18, 0x00	; 0
   2da62:	30 e0       	ldi	r19, 0x00	; 0
   2da64:	48 ef       	ldi	r20, 0xF8	; 248
   2da66:	51 e4       	ldi	r21, 0x41	; 65
   2da68:	c7 01       	movw	r24, r14
   2da6a:	b6 01       	movw	r22, r12
   2da6c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2da70:	87 ff       	sbrs	r24, 7
   2da72:	4a c2       	rjmp	.+1172   	; 0x2df08 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x68e>
   2da74:	20 e0       	ldi	r18, 0x00	; 0
   2da76:	30 e0       	ldi	r19, 0x00	; 0
   2da78:	48 ef       	ldi	r20, 0xF8	; 248
   2da7a:	51 e4       	ldi	r21, 0x41	; 65
   2da7c:	c5 01       	movw	r24, r10
   2da7e:	b4 01       	movw	r22, r8
   2da80:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   2da84:	87 ff       	sbrs	r24, 7
   2da86:	40 c2       	rjmp	.+1152   	; 0x2df08 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x68e>
		return 0;

	/// calculate weights of nearby points
	const float wc1 = c - floor(c);
   2da88:	c7 01       	movw	r24, r14
   2da8a:	b6 01       	movw	r22, r12
   2da8c:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   2da90:	9b 01       	movw	r18, r22
   2da92:	ac 01       	movw	r20, r24
   2da94:	c7 01       	movw	r24, r14
   2da96:	b6 01       	movw	r22, r12
   2da98:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2da9c:	2b 01       	movw	r4, r22
   2da9e:	3c 01       	movw	r6, r24
	const float wr1 = r - floor(r);
   2daa0:	c5 01       	movw	r24, r10
   2daa2:	b4 01       	movw	r22, r8
   2daa4:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   2daa8:	9b 01       	movw	r18, r22
   2daaa:	ac 01       	movw	r20, r24
   2daac:	c5 01       	movw	r24, r10
   2daae:	b4 01       	movw	r22, r8
   2dab0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2dab4:	cc 56       	subi	r28, 0x6C	; 108
   2dab6:	de 4f       	sbci	r29, 0xFE	; 254
   2dab8:	68 83       	st	Y, r22
   2daba:	79 83       	std	Y+1, r23	; 0x01
   2dabc:	8a 83       	std	Y+2, r24	; 0x02
   2dabe:	9b 83       	std	Y+3, r25	; 0x03
   2dac0:	c4 59       	subi	r28, 0x94	; 148
   2dac2:	d1 40       	sbci	r29, 0x01	; 1
	const float wc0 = 1 - wc1;
   2dac4:	a3 01       	movw	r20, r6
   2dac6:	92 01       	movw	r18, r4
   2dac8:	60 e0       	ldi	r22, 0x00	; 0
   2daca:	70 e0       	ldi	r23, 0x00	; 0
   2dacc:	80 e8       	ldi	r24, 0x80	; 128
   2dace:	9f e3       	ldi	r25, 0x3F	; 63
   2dad0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2dad4:	c2 55       	subi	r28, 0x52	; 82
   2dad6:	de 4f       	sbci	r29, 0xFE	; 254
   2dad8:	68 83       	st	Y, r22
   2dada:	79 83       	std	Y+1, r23	; 0x01
   2dadc:	8a 83       	std	Y+2, r24	; 0x02
   2dade:	9b 83       	std	Y+3, r25	; 0x03
   2dae0:	ce 5a       	subi	r28, 0xAE	; 174
   2dae2:	d1 40       	sbci	r29, 0x01	; 1
	const float wr0 = 1 - wr1;
   2dae4:	cc 56       	subi	r28, 0x6C	; 108
   2dae6:	de 4f       	sbci	r29, 0xFE	; 254
   2dae8:	28 81       	ld	r18, Y
   2daea:	39 81       	ldd	r19, Y+1	; 0x01
   2daec:	4a 81       	ldd	r20, Y+2	; 0x02
   2daee:	5b 81       	ldd	r21, Y+3	; 0x03
   2daf0:	c4 59       	subi	r28, 0x94	; 148
   2daf2:	d1 40       	sbci	r29, 0x01	; 1
   2daf4:	60 e0       	ldi	r22, 0x00	; 0
   2daf6:	70 e0       	ldi	r23, 0x00	; 0
   2daf8:	80 e8       	ldi	r24, 0x80	; 128
   2dafa:	9f e3       	ldi	r25, 0x3F	; 63
   2dafc:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2db00:	ce 54       	subi	r28, 0x4E	; 78
   2db02:	de 4f       	sbci	r29, 0xFE	; 254
   2db04:	68 83       	st	Y, r22
   2db06:	79 83       	std	Y+1, r23	; 0x01
   2db08:	8a 83       	std	Y+2, r24	; 0x02
   2db0a:	9b 83       	std	Y+3, r25	; 0x03
   2db0c:	c2 5b       	subi	r28, 0xB2	; 178
   2db0e:	d1 40       	sbci	r29, 0x01	; 1
	const float w00 = wc0 * wr0;
	const float w01 = wc0 * wr1;
	const float w10 = wc1 * wr0;
	const float w11 = wc1 * wr1;

	const uint16_t c0 = c;
   2db10:	c7 01       	movw	r24, r14
   2db12:	b6 01       	movw	r22, r12
   2db14:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   2db18:	6b 01       	movw	r12, r22
	const uint16_t c1 = c0 + 1;
   2db1a:	fb 01       	movw	r30, r22
   2db1c:	31 96       	adiw	r30, 0x01	; 1
   2db1e:	c6 55       	subi	r28, 0x56	; 86
   2db20:	de 4f       	sbci	r29, 0xFE	; 254
   2db22:	f9 83       	std	Y+1, r31	; 0x01
   2db24:	e8 83       	st	Y, r30
   2db26:	ca 5a       	subi	r28, 0xAA	; 170
   2db28:	d1 40       	sbci	r29, 0x01	; 1
	const uint16_t r0 = r;
   2db2a:	c5 01       	movw	r24, r10
   2db2c:	b4 01       	movw	r22, r8
   2db2e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
	const uint16_t r1 = r0 + 1;

	const uint16_t idx00 = c0 + 32 * r0;
   2db32:	8b 01       	movw	r16, r22
   2db34:	95 e0       	ldi	r25, 0x05	; 5
   2db36:	00 0f       	add	r16, r16
   2db38:	11 1f       	adc	r17, r17
   2db3a:	9a 95       	dec	r25
   2db3c:	e1 f7       	brne	.-8      	; 0x2db36 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x2bc>
	const uint16_t idx01 = c0 + 32 * r1;
   2db3e:	c8 01       	movw	r24, r16
   2db40:	80 96       	adiw	r24, 0x20	; 32
   2db42:	c4 55       	subi	r28, 0x54	; 84
   2db44:	de 4f       	sbci	r29, 0xFE	; 254
   2db46:	99 83       	std	Y+1, r25	; 0x01
   2db48:	88 83       	st	Y, r24
   2db4a:	cc 5a       	subi	r28, 0xAC	; 172
   2db4c:	d1 40       	sbci	r29, 0x01	; 1
	const uint16_t idx10 = c1 + 32 * r0;
	const uint16_t idx11 = c1 + 32 * r1;

	/// bilinear resampling
	return w00 * matrix_32x32[idx00] + w01 * matrix_32x32[idx01] + w10 * matrix_32x32[idx10] + w11 * matrix_32x32[idx11];
   2db4e:	f8 01       	movw	r30, r16
   2db50:	ec 0d       	add	r30, r12
   2db52:	fd 1d       	adc	r31, r13
   2db54:	eb 53       	subi	r30, 0x3B	; 59
   2db56:	f9 4f       	sbci	r31, 0xF9	; 249
   2db58:	60 81       	ld	r22, Z
   2db5a:	70 e0       	ldi	r23, 0x00	; 0
   2db5c:	90 e0       	ldi	r25, 0x00	; 0
   2db5e:	80 e0       	ldi	r24, 0x00	; 0
   2db60:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2db64:	4b 01       	movw	r8, r22
   2db66:	5c 01       	movw	r10, r24
	const float wc1 = c - floor(c);
	const float wr1 = r - floor(r);
	const float wc0 = 1 - wc1;
	const float wr0 = 1 - wr1;

	const float w00 = wc0 * wr0;
   2db68:	ce 54       	subi	r28, 0x4E	; 78
   2db6a:	de 4f       	sbci	r29, 0xFE	; 254
   2db6c:	28 81       	ld	r18, Y
   2db6e:	39 81       	ldd	r19, Y+1	; 0x01
   2db70:	4a 81       	ldd	r20, Y+2	; 0x02
   2db72:	5b 81       	ldd	r21, Y+3	; 0x03
   2db74:	c2 5b       	subi	r28, 0xB2	; 178
   2db76:	d1 40       	sbci	r29, 0x01	; 1
   2db78:	c2 55       	subi	r28, 0x52	; 82
   2db7a:	de 4f       	sbci	r29, 0xFE	; 254
   2db7c:	68 81       	ld	r22, Y
   2db7e:	79 81       	ldd	r23, Y+1	; 0x01
   2db80:	8a 81       	ldd	r24, Y+2	; 0x02
   2db82:	9b 81       	ldd	r25, Y+3	; 0x03
   2db84:	ce 5a       	subi	r28, 0xAE	; 174
   2db86:	d1 40       	sbci	r29, 0x01	; 1
   2db88:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2db8c:	9b 01       	movw	r18, r22
   2db8e:	ac 01       	movw	r20, r24
	const uint16_t idx01 = c0 + 32 * r1;
	const uint16_t idx10 = c1 + 32 * r0;
	const uint16_t idx11 = c1 + 32 * r1;

	/// bilinear resampling
	return w00 * matrix_32x32[idx00] + w01 * matrix_32x32[idx01] + w10 * matrix_32x32[idx10] + w11 * matrix_32x32[idx11];
   2db90:	c5 01       	movw	r24, r10
   2db92:	b4 01       	movw	r22, r8
   2db94:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2db98:	4b 01       	movw	r8, r22
   2db9a:	5c 01       	movw	r10, r24
   2db9c:	c4 55       	subi	r28, 0x54	; 84
   2db9e:	de 4f       	sbci	r29, 0xFE	; 254
   2dba0:	e8 81       	ld	r30, Y
   2dba2:	f9 81       	ldd	r31, Y+1	; 0x01
   2dba4:	cc 5a       	subi	r28, 0xAC	; 172
   2dba6:	d1 40       	sbci	r29, 0x01	; 1
   2dba8:	ec 0d       	add	r30, r12
   2dbaa:	fd 1d       	adc	r31, r13
   2dbac:	eb 53       	subi	r30, 0x3B	; 59
   2dbae:	f9 4f       	sbci	r31, 0xF9	; 249
   2dbb0:	60 81       	ld	r22, Z
   2dbb2:	70 e0       	ldi	r23, 0x00	; 0
   2dbb4:	90 e0       	ldi	r25, 0x00	; 0
   2dbb6:	80 e0       	ldi	r24, 0x00	; 0
   2dbb8:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2dbbc:	6b 01       	movw	r12, r22
   2dbbe:	7c 01       	movw	r14, r24
	const float wr1 = r - floor(r);
	const float wc0 = 1 - wc1;
	const float wr0 = 1 - wr1;

	const float w00 = wc0 * wr0;
	const float w01 = wc0 * wr1;
   2dbc0:	c2 55       	subi	r28, 0x52	; 82
   2dbc2:	de 4f       	sbci	r29, 0xFE	; 254
   2dbc4:	28 81       	ld	r18, Y
   2dbc6:	39 81       	ldd	r19, Y+1	; 0x01
   2dbc8:	4a 81       	ldd	r20, Y+2	; 0x02
   2dbca:	5b 81       	ldd	r21, Y+3	; 0x03
   2dbcc:	ce 5a       	subi	r28, 0xAE	; 174
   2dbce:	d1 40       	sbci	r29, 0x01	; 1
   2dbd0:	cc 56       	subi	r28, 0x6C	; 108
   2dbd2:	de 4f       	sbci	r29, 0xFE	; 254
   2dbd4:	68 81       	ld	r22, Y
   2dbd6:	79 81       	ldd	r23, Y+1	; 0x01
   2dbd8:	8a 81       	ldd	r24, Y+2	; 0x02
   2dbda:	9b 81       	ldd	r25, Y+3	; 0x03
   2dbdc:	c4 59       	subi	r28, 0x94	; 148
   2dbde:	d1 40       	sbci	r29, 0x01	; 1
   2dbe0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dbe4:	9b 01       	movw	r18, r22
   2dbe6:	ac 01       	movw	r20, r24
	const uint16_t idx01 = c0 + 32 * r1;
	const uint16_t idx10 = c1 + 32 * r0;
	const uint16_t idx11 = c1 + 32 * r1;

	/// bilinear resampling
	return w00 * matrix_32x32[idx00] + w01 * matrix_32x32[idx01] + w10 * matrix_32x32[idx10] + w11 * matrix_32x32[idx11];
   2dbe8:	c7 01       	movw	r24, r14
   2dbea:	b6 01       	movw	r22, r12
   2dbec:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dbf0:	9b 01       	movw	r18, r22
   2dbf2:	ac 01       	movw	r20, r24
   2dbf4:	c5 01       	movw	r24, r10
   2dbf6:	b4 01       	movw	r22, r8
   2dbf8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2dbfc:	6b 01       	movw	r12, r22
   2dbfe:	7c 01       	movw	r14, r24
   2dc00:	c6 55       	subi	r28, 0x56	; 86
   2dc02:	de 4f       	sbci	r29, 0xFE	; 254
   2dc04:	a8 81       	ld	r26, Y
   2dc06:	b9 81       	ldd	r27, Y+1	; 0x01
   2dc08:	ca 5a       	subi	r28, 0xAA	; 170
   2dc0a:	d1 40       	sbci	r29, 0x01	; 1
   2dc0c:	0a 0f       	add	r16, r26
   2dc0e:	1b 1f       	adc	r17, r27
   2dc10:	f8 01       	movw	r30, r16
   2dc12:	eb 53       	subi	r30, 0x3B	; 59
   2dc14:	f9 4f       	sbci	r31, 0xF9	; 249
   2dc16:	60 81       	ld	r22, Z
   2dc18:	70 e0       	ldi	r23, 0x00	; 0
   2dc1a:	90 e0       	ldi	r25, 0x00	; 0
   2dc1c:	80 e0       	ldi	r24, 0x00	; 0
   2dc1e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2dc22:	4b 01       	movw	r8, r22
   2dc24:	5c 01       	movw	r10, r24
	const float wc0 = 1 - wc1;
	const float wr0 = 1 - wr1;

	const float w00 = wc0 * wr0;
	const float w01 = wc0 * wr1;
	const float w10 = wc1 * wr0;
   2dc26:	ce 54       	subi	r28, 0x4E	; 78
   2dc28:	de 4f       	sbci	r29, 0xFE	; 254
   2dc2a:	28 81       	ld	r18, Y
   2dc2c:	39 81       	ldd	r19, Y+1	; 0x01
   2dc2e:	4a 81       	ldd	r20, Y+2	; 0x02
   2dc30:	5b 81       	ldd	r21, Y+3	; 0x03
   2dc32:	c2 5b       	subi	r28, 0xB2	; 178
   2dc34:	d1 40       	sbci	r29, 0x01	; 1
   2dc36:	c3 01       	movw	r24, r6
   2dc38:	b2 01       	movw	r22, r4
   2dc3a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dc3e:	9b 01       	movw	r18, r22
   2dc40:	ac 01       	movw	r20, r24
	const uint16_t idx01 = c0 + 32 * r1;
	const uint16_t idx10 = c1 + 32 * r0;
	const uint16_t idx11 = c1 + 32 * r1;

	/// bilinear resampling
	return w00 * matrix_32x32[idx00] + w01 * matrix_32x32[idx01] + w10 * matrix_32x32[idx10] + w11 * matrix_32x32[idx11];
   2dc42:	c5 01       	movw	r24, r10
   2dc44:	b4 01       	movw	r22, r8
   2dc46:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dc4a:	9b 01       	movw	r18, r22
   2dc4c:	ac 01       	movw	r20, r24
   2dc4e:	c7 01       	movw	r24, r14
   2dc50:	b6 01       	movw	r22, r12
   2dc52:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2dc56:	6b 01       	movw	r12, r22
   2dc58:	7c 01       	movw	r14, r24
   2dc5a:	c6 55       	subi	r28, 0x56	; 86
   2dc5c:	de 4f       	sbci	r29, 0xFE	; 254
   2dc5e:	e8 81       	ld	r30, Y
   2dc60:	f9 81       	ldd	r31, Y+1	; 0x01
   2dc62:	ca 5a       	subi	r28, 0xAA	; 170
   2dc64:	d1 40       	sbci	r29, 0x01	; 1
   2dc66:	c4 55       	subi	r28, 0x54	; 84
   2dc68:	de 4f       	sbci	r29, 0xFE	; 254
   2dc6a:	88 81       	ld	r24, Y
   2dc6c:	99 81       	ldd	r25, Y+1	; 0x01
   2dc6e:	cc 5a       	subi	r28, 0xAC	; 172
   2dc70:	d1 40       	sbci	r29, 0x01	; 1
   2dc72:	e8 0f       	add	r30, r24
   2dc74:	f9 1f       	adc	r31, r25
   2dc76:	eb 53       	subi	r30, 0x3B	; 59
   2dc78:	f9 4f       	sbci	r31, 0xF9	; 249
   2dc7a:	60 81       	ld	r22, Z
   2dc7c:	70 e0       	ldi	r23, 0x00	; 0
   2dc7e:	90 e0       	ldi	r25, 0x00	; 0
   2dc80:	80 e0       	ldi	r24, 0x00	; 0
   2dc82:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2dc86:	4b 01       	movw	r8, r22
   2dc88:	5c 01       	movw	r10, r24
	const float wr0 = 1 - wr1;

	const float w00 = wc0 * wr0;
	const float w01 = wc0 * wr1;
	const float w10 = wc1 * wr0;
	const float w11 = wc1 * wr1;
   2dc8a:	cc 56       	subi	r28, 0x6C	; 108
   2dc8c:	de 4f       	sbci	r29, 0xFE	; 254
   2dc8e:	28 81       	ld	r18, Y
   2dc90:	39 81       	ldd	r19, Y+1	; 0x01
   2dc92:	4a 81       	ldd	r20, Y+2	; 0x02
   2dc94:	5b 81       	ldd	r21, Y+3	; 0x03
   2dc96:	c4 59       	subi	r28, 0x94	; 148
   2dc98:	d1 40       	sbci	r29, 0x01	; 1
   2dc9a:	c3 01       	movw	r24, r6
   2dc9c:	b2 01       	movw	r22, r4
   2dc9e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dca2:	9b 01       	movw	r18, r22
   2dca4:	ac 01       	movw	r20, r24
	const uint16_t idx01 = c0 + 32 * r1;
	const uint16_t idx10 = c1 + 32 * r0;
	const uint16_t idx11 = c1 + 32 * r1;

	/// bilinear resampling
	return w00 * matrix_32x32[idx00] + w01 * matrix_32x32[idx01] + w10 * matrix_32x32[idx10] + w11 * matrix_32x32[idx11];
   2dca6:	c5 01       	movw	r24, r10
   2dca8:	b4 01       	movw	r22, r8
   2dcaa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dcae:	9b 01       	movw	r18, r22
   2dcb0:	ac 01       	movw	r20, r24
   2dcb2:	c7 01       	movw	r24, r14
   2dcb4:	b6 01       	movw	r22, r12
   2dcb6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
		// DBG(_n(" [%f, %f][%f] circle\n"), x, y, r);

		/// read points on the circle
		for (uint8_t p = 0; p < num_points; ++p){
			const float angle = p * pi_2_div_num_points;
			const float height = get_value(matrix_32x32, r * cos(angle) + x, r * sin(angle) + y) - target_z;
   2dcba:	20 e0       	ldi	r18, 0x00	; 0
   2dcbc:	30 e0       	ldi	r19, 0x00	; 0
   2dcbe:	40 e0       	ldi	r20, 0x00	; 0
   2dcc0:	52 e4       	ldi	r21, 0x42	; 66
   2dcc2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2dcc6:	6b 01       	movw	r12, r22
   2dcc8:	7c 01       	movw	r14, r24
			// DBG(_n("%f "), point);

			shifts_x[p] = cos(angle) * height;
   2dcca:	ac 01       	movw	r20, r24
   2dccc:	9b 01       	movw	r18, r22
   2dcce:	ce 55       	subi	r28, 0x5E	; 94
   2dcd0:	de 4f       	sbci	r29, 0xFE	; 254
   2dcd2:	68 81       	ld	r22, Y
   2dcd4:	79 81       	ldd	r23, Y+1	; 0x01
   2dcd6:	8a 81       	ldd	r24, Y+2	; 0x02
   2dcd8:	9b 81       	ldd	r25, Y+3	; 0x03
   2dcda:	c2 5a       	subi	r28, 0xA2	; 162
   2dcdc:	d1 40       	sbci	r29, 0x01	; 1
   2dcde:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dce2:	c8 55       	subi	r28, 0x58	; 88
   2dce4:	de 4f       	sbci	r29, 0xFE	; 254
   2dce6:	a8 81       	ld	r26, Y
   2dce8:	b9 81       	ldd	r27, Y+1	; 0x01
   2dcea:	c8 5a       	subi	r28, 0xA8	; 168
   2dcec:	d1 40       	sbci	r29, 0x01	; 1
   2dcee:	6d 93       	st	X+, r22
   2dcf0:	7d 93       	st	X+, r23
   2dcf2:	8d 93       	st	X+, r24
   2dcf4:	9d 93       	st	X+, r25
   2dcf6:	c8 55       	subi	r28, 0x58	; 88
   2dcf8:	de 4f       	sbci	r29, 0xFE	; 254
   2dcfa:	b9 83       	std	Y+1, r27	; 0x01
   2dcfc:	a8 83       	st	Y, r26
   2dcfe:	c8 5a       	subi	r28, 0xA8	; 168
   2dd00:	d1 40       	sbci	r29, 0x01	; 1
			shifts_y[p] = sin(angle) * height;
   2dd02:	a7 01       	movw	r20, r14
   2dd04:	96 01       	movw	r18, r12
   2dd06:	c2 56       	subi	r28, 0x62	; 98
   2dd08:	de 4f       	sbci	r29, 0xFE	; 254
   2dd0a:	68 81       	ld	r22, Y
   2dd0c:	79 81       	ldd	r23, Y+1	; 0x01
   2dd0e:	8a 81       	ldd	r24, Y+2	; 0x02
   2dd10:	9b 81       	ldd	r25, Y+3	; 0x03
   2dd12:	ce 59       	subi	r28, 0x9E	; 158
   2dd14:	d1 40       	sbci	r29, 0x01	; 1
   2dd16:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2dd1a:	ca 55       	subi	r28, 0x5A	; 90
   2dd1c:	de 4f       	sbci	r29, 0xFE	; 254
   2dd1e:	e8 81       	ld	r30, Y
   2dd20:	f9 81       	ldd	r31, Y+1	; 0x01
   2dd22:	c6 5a       	subi	r28, 0xA6	; 166
   2dd24:	d1 40       	sbci	r29, 0x01	; 1
   2dd26:	61 93       	st	Z+, r22
   2dd28:	71 93       	st	Z+, r23
   2dd2a:	81 93       	st	Z+, r24
   2dd2c:	91 93       	st	Z+, r25
   2dd2e:	ca 55       	subi	r28, 0x5A	; 90
   2dd30:	de 4f       	sbci	r29, 0xFE	; 254
   2dd32:	f9 83       	std	Y+1, r31	; 0x01
   2dd34:	e8 83       	st	Y, r30
   2dd36:	c6 5a       	subi	r28, 0xA6	; 166
   2dd38:	d1 40       	sbci	r29, 0x01	; 1
			shifts_r[p] = height;
   2dd3a:	c8 56       	subi	r28, 0x68	; 104
   2dd3c:	de 4f       	sbci	r29, 0xFE	; 254
   2dd3e:	a8 81       	ld	r26, Y
   2dd40:	b9 81       	ldd	r27, Y+1	; 0x01
   2dd42:	c8 59       	subi	r28, 0x98	; 152
   2dd44:	d1 40       	sbci	r29, 0x01	; 1
   2dd46:	cd 92       	st	X+, r12
   2dd48:	dd 92       	st	X+, r13
   2dd4a:	ed 92       	st	X+, r14
   2dd4c:	fd 92       	st	X+, r15
   2dd4e:	c8 56       	subi	r28, 0x68	; 104
   2dd50:	de 4f       	sbci	r29, 0xFE	; 254
   2dd52:	b9 83       	std	Y+1, r27	; 0x01
   2dd54:	a8 83       	st	Y, r26
   2dd56:	c8 59       	subi	r28, 0x98	; 152
   2dd58:	d1 40       	sbci	r29, 0x01	; 1
   2dd5a:	bf ef       	ldi	r27, 0xFF	; 255
   2dd5c:	2b 1a       	sub	r2, r27
   2dd5e:	3b 0a       	sbc	r3, r27

        //@size=128B
		// DBG(_n(" [%f, %f][%f] circle\n"), x, y, r);

		/// read points on the circle
		for (uint8_t p = 0; p < num_points; ++p){
   2dd60:	e1 e2       	ldi	r30, 0x21	; 33
   2dd62:	2e 16       	cp	r2, r30
   2dd64:	31 04       	cpc	r3, r1
   2dd66:	09 f0       	breq	.+2      	; 0x2dd6a <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x4f0>
   2dd68:	10 ce       	rjmp	.-992    	; 0x2d98a <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x110>
		const float norm = 1.f / reducer;
//		x += CLAMP(median(shifts_x, blocks) * norm, -max_change, max_change);
//		y += CLAMP(median(shifts_y, blocks) * norm, -max_change, max_change);
//		r += CLAMP(median(shifts_r, blocks) * norm * .5f, -max_change, max_change);
        //104B down
        x += CLAMP_median(shifts_x, blocks, norm);
   2dd6a:	40 e0       	ldi	r20, 0x00	; 0
   2dd6c:	50 e0       	ldi	r21, 0x00	; 0
   2dd6e:	60 e0       	ldi	r22, 0x00	; 0
   2dd70:	7d e3       	ldi	r23, 0x3D	; 61
   2dd72:	ce 01       	movw	r24, r28
   2dd74:	87 5f       	subi	r24, 0xF7	; 247
   2dd76:	9e 4f       	sbci	r25, 0xFE	; 254
   2dd78:	0f 94 39 66 	call	0x2cc72	; 0x2cc72 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]>
   2dd7c:	9b 01       	movw	r18, r22
   2dd7e:	ac 01       	movw	r20, r24
   2dd80:	c3 57       	subi	r28, 0x73	; 115
   2dd82:	de 4f       	sbci	r29, 0xFE	; 254
   2dd84:	a8 81       	ld	r26, Y
   2dd86:	b9 81       	ldd	r27, Y+1	; 0x01
   2dd88:	cd 58       	subi	r28, 0x8D	; 141
   2dd8a:	d1 40       	sbci	r29, 0x01	; 1
   2dd8c:	6d 91       	ld	r22, X+
   2dd8e:	7d 91       	ld	r23, X+
   2dd90:	8d 91       	ld	r24, X+
   2dd92:	9c 91       	ld	r25, X
   2dd94:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2dd98:	c3 57       	subi	r28, 0x73	; 115
   2dd9a:	de 4f       	sbci	r29, 0xFE	; 254
   2dd9c:	e8 81       	ld	r30, Y
   2dd9e:	f9 81       	ldd	r31, Y+1	; 0x01
   2dda0:	cd 58       	subi	r28, 0x8D	; 141
   2dda2:	d1 40       	sbci	r29, 0x01	; 1
   2dda4:	60 83       	st	Z, r22
   2dda6:	71 83       	std	Z+1, r23	; 0x01
   2dda8:	82 83       	std	Z+2, r24	; 0x02
   2ddaa:	93 83       	std	Z+3, r25	; 0x03
        y += CLAMP_median(shifts_y, blocks, norm);
   2ddac:	40 e0       	ldi	r20, 0x00	; 0
   2ddae:	50 e0       	ldi	r21, 0x00	; 0
   2ddb0:	60 e0       	ldi	r22, 0x00	; 0
   2ddb2:	7d e3       	ldi	r23, 0x3D	; 61
   2ddb4:	ce 01       	movw	r24, r28
   2ddb6:	8b 57       	subi	r24, 0x7B	; 123
   2ddb8:	9f 4f       	sbci	r25, 0xFF	; 255
   2ddba:	0f 94 39 66 	call	0x2cc72	; 0x2cc72 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]>
   2ddbe:	9b 01       	movw	r18, r22
   2ddc0:	ac 01       	movw	r20, r24
   2ddc2:	c1 57       	subi	r28, 0x71	; 113
   2ddc4:	de 4f       	sbci	r29, 0xFE	; 254
   2ddc6:	a8 81       	ld	r26, Y
   2ddc8:	b9 81       	ldd	r27, Y+1	; 0x01
   2ddca:	cf 58       	subi	r28, 0x8F	; 143
   2ddcc:	d1 40       	sbci	r29, 0x01	; 1
   2ddce:	6d 91       	ld	r22, X+
   2ddd0:	7d 91       	ld	r23, X+
   2ddd2:	8d 91       	ld	r24, X+
   2ddd4:	9c 91       	ld	r25, X
   2ddd6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2ddda:	c1 57       	subi	r28, 0x71	; 113
   2dddc:	de 4f       	sbci	r29, 0xFE	; 254
   2ddde:	e8 81       	ld	r30, Y
   2dde0:	f9 81       	ldd	r31, Y+1	; 0x01
   2dde2:	cf 58       	subi	r28, 0x8F	; 143
   2dde4:	d1 40       	sbci	r29, 0x01	; 1
   2dde6:	60 83       	st	Z, r22
   2dde8:	71 83       	std	Z+1, r23	; 0x01
   2ddea:	82 83       	std	Z+2, r24	; 0x02
   2ddec:	93 83       	std	Z+3, r25	; 0x03
        r += CLAMP_median(shifts_r, blocks, norm * .5f);
   2ddee:	40 e0       	ldi	r20, 0x00	; 0
   2ddf0:	50 e0       	ldi	r21, 0x00	; 0
   2ddf2:	60 e8       	ldi	r22, 0x80	; 128
   2ddf4:	7c e3       	ldi	r23, 0x3C	; 60
   2ddf6:	ce 01       	movw	r24, r28
   2ddf8:	01 96       	adiw	r24, 0x01	; 1
   2ddfa:	0f 94 39 66 	call	0x2cc72	; 0x2cc72 <CLAMP_median(float*, unsigned char, float) [clone .constprop.95]>
   2ddfe:	ce 56       	subi	r28, 0x6E	; 110
   2de00:	de 4f       	sbci	r29, 0xFE	; 254
   2de02:	a8 81       	ld	r26, Y
   2de04:	b9 81       	ldd	r27, Y+1	; 0x01
   2de06:	c2 59       	subi	r28, 0x92	; 146
   2de08:	d1 40       	sbci	r29, 0x01	; 1
   2de0a:	2d 91       	ld	r18, X+
   2de0c:	3d 91       	ld	r19, X+
   2de0e:	4d 91       	ld	r20, X+
   2de10:	5c 91       	ld	r21, X
   2de12:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2de16:	16 2f       	mov	r17, r22
   2de18:	07 2f       	mov	r16, r23
   2de1a:	f8 2e       	mov	r15, r24
   2de1c:	e9 2e       	mov	r14, r25

		r = MAX(2, r);
   2de1e:	20 e0       	ldi	r18, 0x00	; 0
   2de20:	30 e0       	ldi	r19, 0x00	; 0
   2de22:	40 e0       	ldi	r20, 0x00	; 0
   2de24:	50 e4       	ldi	r21, 0x40	; 64
   2de26:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   2de2a:	18 16       	cp	r1, r24
   2de2c:	2c f0       	brlt	.+10     	; 0x2de38 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x5be>
   2de2e:	10 e0       	ldi	r17, 0x00	; 0
   2de30:	00 e0       	ldi	r16, 0x00	; 0
   2de32:	f1 2c       	mov	r15, r1
   2de34:	80 e4       	ldi	r24, 0x40	; 64
   2de36:	e8 2e       	mov	r14, r24
   2de38:	a8 01       	movw	r20, r16
   2de3a:	97 01       	movw	r18, r14
   2de3c:	85 2f       	mov	r24, r21
   2de3e:	90 2f       	mov	r25, r16
   2de40:	a3 2f       	mov	r26, r19
   2de42:	be 2d       	mov	r27, r14
   2de44:	ce 56       	subi	r28, 0x6E	; 110
   2de46:	de 4f       	sbci	r29, 0xFE	; 254
   2de48:	e8 81       	ld	r30, Y
   2de4a:	f9 81       	ldd	r31, Y+1	; 0x01
   2de4c:	c2 59       	subi	r28, 0x92	; 146
   2de4e:	d1 40       	sbci	r29, 0x01	; 1
   2de50:	80 83       	st	Z, r24
   2de52:	91 83       	std	Z+1, r25	; 0x01
   2de54:	a2 83       	std	Z+2, r26	; 0x02
   2de56:	b3 83       	std	Z+3, r27	; 0x03
   2de58:	cf 56       	subi	r28, 0x6F	; 111
   2de5a:	de 4f       	sbci	r29, 0xFE	; 254
   2de5c:	f8 81       	ld	r31, Y
   2de5e:	c1 59       	subi	r28, 0x91	; 145
   2de60:	d1 40       	sbci	r29, 0x01	; 1
   2de62:	f1 50       	subi	r31, 0x01	; 1
   2de64:	cf 56       	subi	r28, 0x6F	; 111
   2de66:	de 4f       	sbci	r29, 0xFE	; 254
   2de68:	f8 83       	st	Y, r31
   2de6a:	c1 59       	subi	r28, 0x91	; 145
   2de6c:	d1 40       	sbci	r29, 0x01	; 1
	float shifts_y[blocks];
	float shifts_r[blocks];

	// DBG(_n(" [%f, %f][%f] start circle\n"), x, y, r);

	for (int8_t i = iterations; i > 0; --i){
   2de6e:	f1 11       	cpse	r31, r1
   2de70:	37 cd       	rjmp	.-1426   	; 0x2d8e0 <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x66>

		r = MAX(2, r);

	}
    //@size=118
	DBG(_n(" [%f, %f][%f] final circle\n"), x, y, r);
   2de72:	ef 92       	push	r14
   2de74:	ff 92       	push	r15
   2de76:	0f 93       	push	r16
   2de78:	1f 93       	push	r17
   2de7a:	c1 57       	subi	r28, 0x71	; 113
   2de7c:	de 4f       	sbci	r29, 0xFE	; 254
   2de7e:	a8 81       	ld	r26, Y
   2de80:	b9 81       	ldd	r27, Y+1	; 0x01
   2de82:	cf 58       	subi	r28, 0x8F	; 143
   2de84:	d1 40       	sbci	r29, 0x01	; 1
   2de86:	13 96       	adiw	r26, 0x03	; 3
   2de88:	8c 91       	ld	r24, X
   2de8a:	13 97       	sbiw	r26, 0x03	; 3
   2de8c:	8f 93       	push	r24
   2de8e:	12 96       	adiw	r26, 0x02	; 2
   2de90:	8c 91       	ld	r24, X
   2de92:	12 97       	sbiw	r26, 0x02	; 2
   2de94:	8f 93       	push	r24
   2de96:	11 96       	adiw	r26, 0x01	; 1
   2de98:	8c 91       	ld	r24, X
   2de9a:	11 97       	sbiw	r26, 0x01	; 1
   2de9c:	8f 93       	push	r24
   2de9e:	8c 91       	ld	r24, X
   2dea0:	8f 93       	push	r24
   2dea2:	c3 57       	subi	r28, 0x73	; 115
   2dea4:	de 4f       	sbci	r29, 0xFE	; 254
   2dea6:	e8 81       	ld	r30, Y
   2dea8:	f9 81       	ldd	r31, Y+1	; 0x01
   2deaa:	cd 58       	subi	r28, 0x8D	; 141
   2deac:	d1 40       	sbci	r29, 0x01	; 1
   2deae:	83 81       	ldd	r24, Z+3	; 0x03
   2deb0:	8f 93       	push	r24
   2deb2:	82 81       	ldd	r24, Z+2	; 0x02
   2deb4:	8f 93       	push	r24
   2deb6:	81 81       	ldd	r24, Z+1	; 0x01
   2deb8:	8f 93       	push	r24
   2deba:	80 81       	ld	r24, Z
   2debc:	8f 93       	push	r24
   2debe:	82 ee       	ldi	r24, 0xE2	; 226
   2dec0:	95 ea       	ldi	r25, 0xA5	; 165
   2dec2:	9f 93       	push	r25
   2dec4:	8f 93       	push	r24
   2dec6:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2deca:	0f b6       	in	r0, 0x3f	; 63
   2decc:	f8 94       	cli
   2dece:	de bf       	out	0x3e, r29	; 62
   2ded0:	0f be       	out	0x3f, r0	; 63
   2ded2:	cd bf       	out	0x3d, r28	; 61
}
   2ded4:	c3 54       	subi	r28, 0x43	; 67
   2ded6:	de 4f       	sbci	r29, 0xFE	; 254
   2ded8:	0f b6       	in	r0, 0x3f	; 63
   2deda:	f8 94       	cli
   2dedc:	de bf       	out	0x3e, r29	; 62
   2dede:	0f be       	out	0x3f, r0	; 63
   2dee0:	cd bf       	out	0x3d, r28	; 61
   2dee2:	df 91       	pop	r29
   2dee4:	cf 91       	pop	r28
   2dee6:	1f 91       	pop	r17
   2dee8:	0f 91       	pop	r16
   2deea:	ff 90       	pop	r15
   2deec:	ef 90       	pop	r14
   2deee:	df 90       	pop	r13
   2def0:	cf 90       	pop	r12
   2def2:	bf 90       	pop	r11
   2def4:	af 90       	pop	r10
   2def6:	9f 90       	pop	r9
   2def8:	8f 90       	pop	r8
   2defa:	7f 90       	pop	r7
   2defc:	6f 90       	pop	r6
   2defe:	5f 90       	pop	r5
   2df00:	4f 90       	pop	r4
   2df02:	3f 90       	pop	r3
   2df04:	2f 90       	pop	r2
   2df06:	08 95       	ret

/// returns value of any location within data
/// uses bilinear interpolation
float get_value(uint8_t * matrix_32x32, float c, float r){
	if (c <= 0 || r <= 0 || c >= 31 || r >= 31)
		return 0;
   2df08:	60 e0       	ldi	r22, 0x00	; 0
   2df0a:	70 e0       	ldi	r23, 0x00	; 0
   2df0c:	cb 01       	movw	r24, r22
   2df0e:	d5 ce       	rjmp	.-598    	; 0x2dcba <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]+0x440>

0002df10 <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]>:
		accelerate_1_step(axes, -dec, delay_us, delay_us);
		update_position_1_step(axes, dir);
	}
}

void go_start_stop(uint8_t axes, uint8_t dir, int16_t acc, uint16_t min_delay_us, uint16_t steps){
   2df10:	ef 92       	push	r14
   2df12:	ff 92       	push	r15
   2df14:	0f 93       	push	r16
   2df16:	1f 93       	push	r17
   2df18:	cf 93       	push	r28
   2df1a:	df 93       	push	r29
   2df1c:	1f 92       	push	r1
   2df1e:	1f 92       	push	r1
   2df20:	cd b7       	in	r28, 0x3d	; 61
   2df22:	de b7       	in	r29, 0x3e	; 62
   2df24:	f8 2e       	mov	r15, r24
   2df26:	e6 2e       	mov	r14, r22
	if (steps == 0)
		return;
	uint16_t current_delay_us = MAX_DELAY;
   2df28:	80 e1       	ldi	r24, 0x10	; 16
   2df2a:	97 e2       	ldi	r25, 0x27	; 39
   2df2c:	9a 83       	std	Y+2, r25	; 0x02
   2df2e:	89 83       	std	Y+1, r24	; 0x01
	const uint16_t half = steps / 2;
   2df30:	8a 01       	movw	r16, r20
   2df32:	16 95       	lsr	r17
   2df34:	07 95       	ror	r16
}

/// Goes defined number of steps while accelerating
/// updates global positions
void accelerate(uint8_t axes, uint8_t dir, int16_t acc, uint16_t &delay_us, uint16_t min_delay_us, uint16_t steps){
	set_axes_dir(axes, dir);
   2df36:	8f 2d       	mov	r24, r15
   2df38:	0e 94 01 ec 	call	0x1d802	; 0x1d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>
	while (steps--){
   2df3c:	01 50       	subi	r16, 0x01	; 1
   2df3e:	11 09       	sbc	r17, r1
   2df40:	78 f0       	brcs	.+30     	; 0x2df60 <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]+0x50>
		accelerate_1_step(axes, acc, delay_us, min_delay_us);
   2df42:	28 ec       	ldi	r18, 0xC8	; 200
   2df44:	30 e0       	ldi	r19, 0x00	; 0
   2df46:	ae 01       	movw	r20, r28
   2df48:	4f 5f       	subi	r20, 0xFF	; 255
   2df4a:	5f 4f       	sbci	r21, 0xFF	; 255
   2df4c:	68 ee       	ldi	r22, 0xE8	; 232
   2df4e:	73 e0       	ldi	r23, 0x03	; 3
   2df50:	8f 2d       	mov	r24, r15
   2df52:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>
		update_position_1_step(axes, dir);
   2df56:	6e 2d       	mov	r22, r14
   2df58:	8f 2d       	mov	r24, r15
   2df5a:	0e 94 1a ec 	call	0x1d834	; 0x1d834 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]>
   2df5e:	ee cf       	rjmp	.-36     	; 0x2df3c <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]+0x2c>
}

/// \param dir sets direction of movement
/// updates global positions
void go_and_stop(uint8_t axes, uint8_t dir, int16_t dec, uint16_t &delay_us, uint16_t steps){
	set_axes_dir(axes, dir);
   2df60:	6e 2d       	mov	r22, r14
   2df62:	8f 2d       	mov	r24, r15
   2df64:	0e 94 01 ec 	call	0x1d802	; 0x1d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>
		return;
	uint16_t current_delay_us = MAX_DELAY;
	const uint16_t half = steps / 2;
	accelerate(axes, dir, acc, current_delay_us, min_delay_us, half);
	go_and_stop(axes, dir, -acc, current_delay_us, steps - half);
}
   2df68:	0f 90       	pop	r0
   2df6a:	0f 90       	pop	r0
   2df6c:	df 91       	pop	r29
   2df6e:	cf 91       	pop	r28
   2df70:	1f 91       	pop	r17
   2df72:	0f 91       	pop	r16
   2df74:	ff 90       	pop	r15
   2df76:	ef 90       	pop	r14
   2df78:	08 95       	ret

0002df7a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]>:
/// Moves printer to absolute position [x,y,z] defined in millimeters
bool xyzcal_lineXYZ_to_float(pos_mm_t x, pos_mm_t y, pos_mm_t z, uint16_t delay_us, int8_t check_pinda){
	return xyzcal_lineXYZ_to(mm_2_pos(x), mm_2_pos(y), mm_2_pos(z), delay_us, check_pinda);
}

bool xyzcal_spiral2(int16_t cx, int16_t cy, int16_t z0, int16_t dz, int16_t radius, int16_t rotation, uint16_t delay_us, int8_t check_pinda, uint16_t* pad)
   2df7a:	2f 92       	push	r2
   2df7c:	3f 92       	push	r3
   2df7e:	4f 92       	push	r4
   2df80:	5f 92       	push	r5
   2df82:	6f 92       	push	r6
   2df84:	7f 92       	push	r7
   2df86:	8f 92       	push	r8
   2df88:	9f 92       	push	r9
   2df8a:	af 92       	push	r10
   2df8c:	bf 92       	push	r11
   2df8e:	cf 92       	push	r12
   2df90:	df 92       	push	r13
   2df92:	ef 92       	push	r14
   2df94:	ff 92       	push	r15
   2df96:	0f 93       	push	r16
   2df98:	1f 93       	push	r17
   2df9a:	cf 93       	push	r28
   2df9c:	df 93       	push	r29
   2df9e:	cd b7       	in	r28, 0x3d	; 61
   2dfa0:	de b7       	in	r29, 0x3e	; 62
   2dfa2:	6c 97       	sbiw	r28, 0x1c	; 28
   2dfa4:	0f b6       	in	r0, 0x3f	; 63
   2dfa6:	f8 94       	cli
   2dfa8:	de bf       	out	0x3e, r29	; 62
   2dfaa:	0f be       	out	0x3f, r0	; 63
   2dfac:	cd bf       	out	0x3d, r28	; 61
   2dfae:	6c 01       	movw	r12, r24
   2dfb0:	5b 01       	movw	r10, r22
   2dfb2:	4a 01       	movw	r8, r20
   2dfb4:	19 01       	movw	r2, r18
   2dfb6:	18 87       	std	Y+8, r17	; 0x08
   2dfb8:	0f 83       	std	Y+7, r16	; 0x07
   2dfba:	fa 82       	std	Y+2, r15	; 0x02
   2dfbc:	e9 82       	std	Y+1, r14	; 0x01
	uint8_t dad = 0; //delta angle [deg]
	uint8_t dad_min = 4; //delta angle min [deg]
	uint8_t dad_max = 16; //delta angle max [deg]
	uint8_t k = 720 / (dad_max - dad_min); //delta calculation constant
	ad = 0;
	if (pad) ad = *pad % 720;
   2dfbe:	d7 01       	movw	r26, r14
   2dfc0:	8d 91       	ld	r24, X+
   2dfc2:	9c 91       	ld	r25, X
   2dfc4:	60 ed       	ldi	r22, 0xD0	; 208
   2dfc6:	72 e0       	ldi	r23, 0x02	; 2
   2dfc8:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   2dfcc:	9c 8f       	std	Y+28, r25	; 0x1c
   2dfce:	8b 8f       	std	Y+27, r24	; 0x1b

    //@size=214
	DBG(_n("xyzcal_spiral2 cx=%d cy=%d z0=%d dz=%d radius=%d ad=%d\n"), cx, cy, z0, dz, radius, ad);
   2dfd0:	9f 93       	push	r25
   2dfd2:	8f 93       	push	r24
   2dfd4:	3f 92       	push	r3
   2dfd6:	2f 93       	push	r18
   2dfd8:	1f 92       	push	r1
   2dfda:	84 e6       	ldi	r24, 0x64	; 100
   2dfdc:	8f 93       	push	r24
   2dfde:	9f 92       	push	r9
   2dfe0:	8f 92       	push	r8
   2dfe2:	bf 92       	push	r11
   2dfe4:	af 92       	push	r10
   2dfe6:	df 92       	push	r13
   2dfe8:	cf 92       	push	r12
   2dfea:	80 e6       	ldi	r24, 0x60	; 96
   2dfec:	95 ea       	ldi	r25, 0xA5	; 165
   2dfee:	9f 93       	push	r25
   2dff0:	8f 93       	push	r24
   2dff2:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2dff6:	0f b6       	in	r0, 0x3f	; 63
   2dff8:	f8 94       	cli
   2dffa:	de bf       	out	0x3e, r29	; 62
   2dffc:	0f be       	out	0x3f, r0	; 63
   2dffe:	cd bf       	out	0x3d, r28	; 61
			r = (float)(((uint32_t)ad) * radius) / 720;
		}
		else
		{
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
   2e000:	22 27       	eor	r18, r18
   2e002:	33 27       	eor	r19, r19
   2e004:	22 19       	sub	r18, r2
   2e006:	33 09       	sbc	r19, r3
   2e008:	3a 8f       	std	Y+26, r19	; 0x1a
   2e00a:	29 8f       	std	Y+25, r18	; 0x19
		}
		ar = radians(ad + rotation);
		int x = (int)(cx + (cos(ar) * r));
		int y = (int)(cy + (sin(ar) * r));
		int z = (int)(z0 - ((float)((int32_t)dz * ad) / 720));
   2e00c:	c4 01       	movw	r24, r8
   2e00e:	99 0c       	add	r9, r9
   2e010:	aa 0b       	sbc	r26, r26
   2e012:	bb 0b       	sbc	r27, r27
   2e014:	89 87       	std	Y+9, r24	; 0x09
   2e016:	9a 87       	std	Y+10, r25	; 0x0a
   2e018:	ab 87       	std	Y+11, r26	; 0x0b
   2e01a:	bc 87       	std	Y+12, r27	; 0x0c
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
		}
		ar = radians(ad + rotation);
		int x = (int)(cx + (cos(ar) * r));
		int y = (int)(cy + (sin(ar) * r));
   2e01c:	95 01       	movw	r18, r10
   2e01e:	bb 0c       	add	r11, r11
   2e020:	44 0b       	sbc	r20, r20
   2e022:	55 0b       	sbc	r21, r21
   2e024:	29 8b       	std	Y+17, r18	; 0x11
   2e026:	3a 8b       	std	Y+18, r19	; 0x12
   2e028:	4b 8b       	std	Y+19, r20	; 0x13
   2e02a:	5c 8b       	std	Y+20, r21	; 0x14
		{
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
		}
		ar = radians(ad + rotation);
		int x = (int)(cx + (cos(ar) * r));
   2e02c:	c6 01       	movw	r24, r12
   2e02e:	dd 0c       	add	r13, r13
   2e030:	aa 0b       	sbc	r26, r26
   2e032:	bb 0b       	sbc	r27, r27
   2e034:	8d 8b       	std	Y+21, r24	; 0x15
   2e036:	9e 8b       	std	Y+22, r25	; 0x16
   2e038:	af 8b       	std	Y+23, r26	; 0x17
   2e03a:	b8 8f       	std	Y+24, r27	; 0x18
	// snprintf(text, 10, "%4d", z0);
	// lcd_print(text);

	for (; ad < 720; ad++)
	{
		if (radius > 0)
   2e03c:	12 14       	cp	r1, r2
   2e03e:	13 04       	cpc	r1, r3
   2e040:	0c f0       	brlt	.+2      	; 0x2e044 <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0xca>
   2e042:	ba c0       	rjmp	.+372    	; 0x2e1b8 <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0x23e>
		{
			dad = dad_max - (ad / k);
   2e044:	8b 8d       	ldd	r24, Y+27	; 0x1b
   2e046:	9c 8d       	ldd	r25, Y+28	; 0x1c
   2e048:	6c e3       	ldi	r22, 0x3C	; 60
   2e04a:	70 e0       	ldi	r23, 0x00	; 0
   2e04c:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   2e050:	10 e1       	ldi	r17, 0x10	; 16
   2e052:	16 1b       	sub	r17, r22
			r = (float)(((uint32_t)ad) * radius) / 720;
   2e054:	2b 8d       	ldd	r18, Y+27	; 0x1b
   2e056:	3c 8d       	ldd	r19, Y+28	; 0x1c
   2e058:	d1 01       	movw	r26, r2
		}
		else
		{
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
   2e05a:	0f 94 7b dd 	call	0x3baf6	; 0x3baf6 <__usmulhisi3>
   2e05e:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2e062:	20 e0       	ldi	r18, 0x00	; 0
   2e064:	30 e0       	ldi	r19, 0x00	; 0
   2e066:	44 e3       	ldi	r20, 0x34	; 52
   2e068:	54 e4       	ldi	r21, 0x44	; 68
   2e06a:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2e06e:	6b 01       	movw	r12, r22
   2e070:	7c 01       	movw	r14, r24
		}
		ar = radians(ad + rotation);
   2e072:	6f 81       	ldd	r22, Y+7	; 0x07
   2e074:	78 85       	ldd	r23, Y+8	; 0x08
   2e076:	eb 8d       	ldd	r30, Y+27	; 0x1b
   2e078:	fc 8d       	ldd	r31, Y+28	; 0x1c
   2e07a:	6e 0f       	add	r22, r30
   2e07c:	7f 1f       	adc	r23, r31
   2e07e:	90 e0       	ldi	r25, 0x00	; 0
   2e080:	80 e0       	ldi	r24, 0x00	; 0
   2e082:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   2e086:	25 e3       	ldi	r18, 0x35	; 53
   2e088:	3a ef       	ldi	r19, 0xFA	; 250
   2e08a:	4e e8       	ldi	r20, 0x8E	; 142
   2e08c:	5c e3       	ldi	r21, 0x3C	; 60
   2e08e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2e092:	4b 01       	movw	r8, r22
   2e094:	5c 01       	movw	r10, r24
		int x = (int)(cx + (cos(ar) * r));
   2e096:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   2e09a:	6b 83       	std	Y+3, r22	; 0x03
   2e09c:	7c 83       	std	Y+4, r23	; 0x04
   2e09e:	8d 83       	std	Y+5, r24	; 0x05
   2e0a0:	9e 83       	std	Y+6, r25	; 0x06
		int y = (int)(cy + (sin(ar) * r));
   2e0a2:	c5 01       	movw	r24, r10
   2e0a4:	b4 01       	movw	r22, r8
   2e0a6:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   2e0aa:	2b 01       	movw	r4, r22
   2e0ac:	3c 01       	movw	r6, r24
		int z = (int)(z0 - ((float)((int32_t)dz * ad) / 720));
   2e0ae:	69 85       	ldd	r22, Y+9	; 0x09
   2e0b0:	7a 85       	ldd	r23, Y+10	; 0x0a
   2e0b2:	8b 85       	ldd	r24, Y+11	; 0x0b
   2e0b4:	9c 85       	ldd	r25, Y+12	; 0x0c
   2e0b6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2e0ba:	4b 01       	movw	r8, r22
   2e0bc:	5c 01       	movw	r10, r24
   2e0be:	2b 8d       	ldd	r18, Y+27	; 0x1b
   2e0c0:	3c 8d       	ldd	r19, Y+28	; 0x1c
   2e0c2:	a4 e6       	ldi	r26, 0x64	; 100
   2e0c4:	b0 e0       	ldi	r27, 0x00	; 0
   2e0c6:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   2e0ca:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2e0ce:	20 e0       	ldi	r18, 0x00	; 0
   2e0d0:	30 e0       	ldi	r19, 0x00	; 0
   2e0d2:	44 e3       	ldi	r20, 0x34	; 52
   2e0d4:	54 e4       	ldi	r21, 0x44	; 68
   2e0d6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   2e0da:	9b 01       	movw	r18, r22
   2e0dc:	ac 01       	movw	r20, r24
   2e0de:	c5 01       	movw	r24, r10
   2e0e0:	b4 01       	movw	r22, r8
   2e0e2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   2e0e6:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2e0ea:	6d 87       	std	Y+13, r22	; 0x0d
   2e0ec:	7e 87       	std	Y+14, r23	; 0x0e
   2e0ee:	8f 87       	std	Y+15, r24	; 0x0f
   2e0f0:	98 8b       	std	Y+16, r25	; 0x10
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
		}
		ar = radians(ad + rotation);
		int x = (int)(cx + (cos(ar) * r));
		int y = (int)(cy + (sin(ar) * r));
   2e0f2:	69 89       	ldd	r22, Y+17	; 0x11
   2e0f4:	7a 89       	ldd	r23, Y+18	; 0x12
   2e0f6:	8b 89       	ldd	r24, Y+19	; 0x13
   2e0f8:	9c 89       	ldd	r25, Y+20	; 0x14
   2e0fa:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2e0fe:	4b 01       	movw	r8, r22
   2e100:	5c 01       	movw	r10, r24
   2e102:	a3 01       	movw	r20, r6
   2e104:	92 01       	movw	r18, r4
   2e106:	c7 01       	movw	r24, r14
   2e108:	b6 01       	movw	r22, r12
   2e10a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2e10e:	9b 01       	movw	r18, r22
   2e110:	ac 01       	movw	r20, r24
   2e112:	c5 01       	movw	r24, r10
   2e114:	b4 01       	movw	r22, r8
   2e116:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2e11a:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2e11e:	4b 01       	movw	r8, r22
		{
			dad = dad_max - ((719 - ad) / k);
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
		}
		ar = radians(ad + rotation);
		int x = (int)(cx + (cos(ar) * r));
   2e120:	6d 89       	ldd	r22, Y+21	; 0x15
   2e122:	7e 89       	ldd	r23, Y+22	; 0x16
   2e124:	8f 89       	ldd	r24, Y+23	; 0x17
   2e126:	98 8d       	ldd	r25, Y+24	; 0x18
   2e128:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   2e12c:	2b 01       	movw	r4, r22
   2e12e:	3c 01       	movw	r6, r24
   2e130:	a7 01       	movw	r20, r14
   2e132:	96 01       	movw	r18, r12
   2e134:	6b 81       	ldd	r22, Y+3	; 0x03
   2e136:	7c 81       	ldd	r23, Y+4	; 0x04
   2e138:	8d 81       	ldd	r24, Y+5	; 0x05
   2e13a:	9e 81       	ldd	r25, Y+6	; 0x06
   2e13c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2e140:	9b 01       	movw	r18, r22
   2e142:	ac 01       	movw	r20, r24
   2e144:	c3 01       	movw	r24, r6
   2e146:	b2 01       	movw	r22, r4
   2e148:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   2e14c:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2e150:	cb 01       	movw	r24, r22
		int y = (int)(cy + (sin(ar) * r));
		int z = (int)(z0 - ((float)((int32_t)dz * ad) / 720));
		if (xyzcal_lineXYZ_to(x, y, z, delay_us, check_pinda))
   2e152:	01 e0       	ldi	r16, 0x01	; 1
   2e154:	20 e4       	ldi	r18, 0x40	; 64
   2e156:	31 e0       	ldi	r19, 0x01	; 1
   2e158:	4d 85       	ldd	r20, Y+13	; 0x0d
   2e15a:	5e 85       	ldd	r21, Y+14	; 0x0e
   2e15c:	b4 01       	movw	r22, r8
   2e15e:	0e 94 5a ec 	call	0x1d8b4	; 0x1d8b4 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)>
   2e162:	21 2f       	mov	r18, r17
   2e164:	30 e0       	ldi	r19, 0x00	; 0
   2e166:	88 23       	and	r24, r24
   2e168:	b9 f1       	breq	.+110    	; 0x2e1d8 <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0x25e>
   2e16a:	4b 8d       	ldd	r20, Y+27	; 0x1b
   2e16c:	5c 8d       	ldd	r21, Y+28	; 0x1c
   2e16e:	42 0f       	add	r20, r18
   2e170:	53 1f       	adc	r21, r19
		{
			ad += dad + 1;
   2e172:	4f 5f       	subi	r20, 0xFF	; 255
   2e174:	5f 4f       	sbci	r21, 0xFF	; 255
   2e176:	5c 8f       	std	Y+28, r21	; 0x1c
   2e178:	4b 8f       	std	Y+27, r20	; 0x1b
			ret = true;
			break;
		}
		ad += dad;
	}
	if (pad) *pad = ad;
   2e17a:	eb 8d       	ldd	r30, Y+27	; 0x1b
   2e17c:	fc 8d       	ldd	r31, Y+28	; 0x1c
   2e17e:	a9 81       	ldd	r26, Y+1	; 0x01
   2e180:	ba 81       	ldd	r27, Y+2	; 0x02
   2e182:	ed 93       	st	X+, r30
   2e184:	fc 93       	st	X, r31
	// if(ret){
	// 	lcd_set_cursor(0, 4);
	// 	lcd_print("         ");
	// }
	return ret;
}
   2e186:	6c 96       	adiw	r28, 0x1c	; 28
   2e188:	0f b6       	in	r0, 0x3f	; 63
   2e18a:	f8 94       	cli
   2e18c:	de bf       	out	0x3e, r29	; 62
   2e18e:	0f be       	out	0x3f, r0	; 63
   2e190:	cd bf       	out	0x3d, r28	; 61
   2e192:	df 91       	pop	r29
   2e194:	cf 91       	pop	r28
   2e196:	1f 91       	pop	r17
   2e198:	0f 91       	pop	r16
   2e19a:	ff 90       	pop	r15
   2e19c:	ef 90       	pop	r14
   2e19e:	df 90       	pop	r13
   2e1a0:	cf 90       	pop	r12
   2e1a2:	bf 90       	pop	r11
   2e1a4:	af 90       	pop	r10
   2e1a6:	9f 90       	pop	r9
   2e1a8:	8f 90       	pop	r8
   2e1aa:	7f 90       	pop	r7
   2e1ac:	6f 90       	pop	r6
   2e1ae:	5f 90       	pop	r5
   2e1b0:	4f 90       	pop	r4
   2e1b2:	3f 90       	pop	r3
   2e1b4:	2f 90       	pop	r2
   2e1b6:	08 95       	ret
			dad = dad_max - (ad / k);
			r = (float)(((uint32_t)ad) * radius) / 720;
		}
		else
		{
			dad = dad_max - ((719 - ad) / k);
   2e1b8:	2f ec       	ldi	r18, 0xCF	; 207
   2e1ba:	32 e0       	ldi	r19, 0x02	; 2
   2e1bc:	ab 8d       	ldd	r26, Y+27	; 0x1b
   2e1be:	bc 8d       	ldd	r27, Y+28	; 0x1c
   2e1c0:	2a 1b       	sub	r18, r26
   2e1c2:	3b 0b       	sbc	r19, r27
   2e1c4:	c9 01       	movw	r24, r18
   2e1c6:	6c e3       	ldi	r22, 0x3C	; 60
   2e1c8:	70 e0       	ldi	r23, 0x00	; 0
   2e1ca:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   2e1ce:	10 e1       	ldi	r17, 0x10	; 16
   2e1d0:	16 1b       	sub	r17, r22
			r = (float)(((uint32_t)(719 - ad)) * (-radius)) / 720;
   2e1d2:	a9 8d       	ldd	r26, Y+25	; 0x19
   2e1d4:	ba 8d       	ldd	r27, Y+26	; 0x1a
   2e1d6:	41 cf       	rjmp	.-382    	; 0x2e05a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0xe0>
	// lcd_set_cursor(0, 4);
	// char text[10];
	// snprintf(text, 10, "%4d", z0);
	// lcd_print(text);

	for (; ad < 720; ad++)
   2e1d8:	2f 5f       	subi	r18, 0xFF	; 255
   2e1da:	3f 4f       	sbci	r19, 0xFF	; 255
   2e1dc:	ab 8d       	ldd	r26, Y+27	; 0x1b
   2e1de:	bc 8d       	ldd	r27, Y+28	; 0x1c
   2e1e0:	a2 0f       	add	r26, r18
   2e1e2:	b3 1f       	adc	r27, r19
   2e1e4:	bc 8f       	std	Y+28, r27	; 0x1c
   2e1e6:	ab 8f       	std	Y+27, r26	; 0x1b
   2e1e8:	a0 3d       	cpi	r26, 0xD0	; 208
   2e1ea:	b2 40       	sbci	r27, 0x02	; 2
   2e1ec:	08 f4       	brcc	.+2      	; 0x2e1f0 <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0x276>
   2e1ee:	26 cf       	rjmp	.-436    	; 0x2e03c <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0xc2>
   2e1f0:	c4 cf       	rjmp	.-120    	; 0x2e17a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]+0x200>

0002e1f2 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]>:
	length = z - _Z;
	go_start_stop(Z_AXIS_MASK, length < 0 ? Z_MINUS_MASK : Z_PLUS_MASK, acc, min_delay_us, ABS(length));
	// DBG(_n("\n"));
}

void __attribute__((noinline)) xyzcal_scan_pixels_32x32_Zhop(int16_t cx, int16_t cy, int16_t min_z, int16_t max_z, uint16_t delay_us, uint8_t *pixels){
   2e1f2:	2f 92       	push	r2
   2e1f4:	3f 92       	push	r3
   2e1f6:	4f 92       	push	r4
   2e1f8:	5f 92       	push	r5
   2e1fa:	6f 92       	push	r6
   2e1fc:	7f 92       	push	r7
   2e1fe:	8f 92       	push	r8
   2e200:	9f 92       	push	r9
   2e202:	af 92       	push	r10
   2e204:	bf 92       	push	r11
   2e206:	cf 92       	push	r12
   2e208:	df 92       	push	r13
   2e20a:	ef 92       	push	r14
   2e20c:	ff 92       	push	r15
   2e20e:	0f 93       	push	r16
   2e210:	1f 93       	push	r17
   2e212:	cf 93       	push	r28
   2e214:	df 93       	push	r29
   2e216:	cd b7       	in	r28, 0x3d	; 61
   2e218:	de b7       	in	r29, 0x3e	; 62
   2e21a:	ca 55       	subi	r28, 0x5A	; 90
   2e21c:	d1 09       	sbc	r29, r1
   2e21e:	0f b6       	in	r0, 0x3f	; 63
   2e220:	f8 94       	cli
   2e222:	de bf       	out	0x3e, r29	; 62
   2e224:	0f be       	out	0x3f, r0	; 63
   2e226:	cd bf       	out	0x3d, r28	; 61
   2e228:	63 96       	adiw	r28, 0x13	; 19
   2e22a:	9f af       	std	Y+63, r25	; 0x3f
   2e22c:	8e af       	std	Y+62, r24	; 0x3e
   2e22e:	63 97       	sbiw	r28, 0x13	; 19
   2e230:	8b 01       	movw	r16, r22
   2e232:	6a 01       	movw	r12, r20
	if (!pixels)
		return;
	int16_t z_trig;
	uint16_t line_buffer[32];
	uint16_t current_delay_us = MAX_DELAY; ///< defines current speed
   2e234:	7e 01       	movw	r14, r28
   2e236:	25 e4       	ldi	r18, 0x45	; 69
   2e238:	e2 0e       	add	r14, r18
   2e23a:	f1 1c       	adc	r15, r1
   2e23c:	80 e1       	ldi	r24, 0x10	; 16
   2e23e:	97 e2       	ldi	r25, 0x27	; 39
   2e240:	f7 01       	movw	r30, r14
   2e242:	91 83       	std	Z+1, r25	; 0x01
   2e244:	80 83       	st	Z, r24
	int16_t start_z;
	uint16_t steps_to_go;

	DBG(_n("Scan countdown: "));
   2e246:	8d ea       	ldi	r24, 0xAD	; 173
   2e248:	95 ea       	ldi	r25, 0xA5	; 165
   2e24a:	9f 93       	push	r25
   2e24c:	8f 93       	push	r24
   2e24e:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2e252:	25 ec       	ldi	r18, 0xC5	; 197
   2e254:	36 e0       	ldi	r19, 0x06	; 6
   2e256:	61 96       	adiw	r28, 0x11	; 17
   2e258:	3f af       	std	Y+63, r19	; 0x3f
   2e25a:	2e af       	std	Y+62, r18	; 0x3e
   2e25c:	61 97       	sbiw	r28, 0x11	; 17
   2e25e:	c8 01       	movw	r24, r16
   2e260:	80 5e       	subi	r24, 0xE0	; 224
   2e262:	93 40       	sbci	r25, 0x03	; 3
   2e264:	2b 96       	adiw	r28, 0x0b	; 11
   2e266:	9f af       	std	Y+63, r25	; 0x3f
   2e268:	8e af       	std	Y+62, r24	; 0x3e
   2e26a:	2b 97       	sbiw	r28, 0x0b	; 11
   2e26c:	0f 90       	pop	r0
   2e26e:	0f 90       	pop	r0
   2e270:	e0 e4       	ldi	r30, 0x40	; 64
   2e272:	f0 e0       	ldi	r31, 0x00	; 0
   2e274:	29 96       	adiw	r28, 0x09	; 9
   2e276:	ff af       	std	Y+63, r31	; 0x3f
   2e278:	ee af       	std	Y+62, r30	; 0x3e
   2e27a:	29 97       	sbiw	r28, 0x09	; 9

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
		for (uint8_t d = 0; d < 2; ++d){
			go_manhattan((d & 1) ? (cx + 992) : (cx - 992), cy - 992 + r * 64, _Z, Z_ACCEL, Z_MIN_DELAY);
   2e27c:	63 96       	adiw	r28, 0x13	; 19
   2e27e:	2e ad       	ldd	r18, Y+62	; 0x3e
   2e280:	3f ad       	ldd	r19, Y+63	; 0x3f
   2e282:	63 97       	sbiw	r28, 0x13	; 19
   2e284:	20 5e       	subi	r18, 0xE0	; 224
   2e286:	33 40       	sbci	r19, 0x03	; 3
   2e288:	69 96       	adiw	r28, 0x19	; 25
   2e28a:	3f af       	std	Y+63, r19	; 0x3f
   2e28c:	2e af       	std	Y+62, r18	; 0x3e
   2e28e:	69 97       	sbiw	r28, 0x19	; 25
   2e290:	29 96       	adiw	r28, 0x09	; 9
   2e292:	4e ac       	ldd	r4, Y+62	; 0x3e
   2e294:	5f ac       	ldd	r5, Y+63	; 0x3f
   2e296:	29 97       	sbiw	r28, 0x09	; 9
	uint16_t steps_to_go;

	DBG(_n("Scan countdown: "));

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
		for (uint8_t d = 0; d < 2; ++d){
   2e298:	31 2c       	mov	r3, r1
			go_manhattan((d & 1) ? (cx + 992) : (cx - 992), cy - 992 + r * 64, _Z, Z_ACCEL, Z_MIN_DELAY);
   2e29a:	63 96       	adiw	r28, 0x13	; 19
   2e29c:	8e ad       	ldd	r24, Y+62	; 0x3e
   2e29e:	9f ad       	ldd	r25, Y+63	; 0x3f
   2e2a0:	63 97       	sbiw	r28, 0x13	; 19
   2e2a2:	80 52       	subi	r24, 0x20	; 32
   2e2a4:	9c 4f       	sbci	r25, 0xFC	; 252
   2e2a6:	6b 96       	adiw	r28, 0x1b	; 27
   2e2a8:	9f af       	std	Y+63, r25	; 0x3f
   2e2aa:	8e af       	std	Y+62, r24	; 0x3e
   2e2ac:	6b 97       	sbiw	r28, 0x1b	; 27
   2e2ae:	60 90 bb 06 	lds	r6, 0x06BB	; 0x8006bb <count_position+0x8>
   2e2b2:	70 90 bc 06 	lds	r7, 0x06BC	; 0x8006bc <count_position+0x9>
   2e2b6:	80 90 bd 06 	lds	r8, 0x06BD	; 0x8006bd <count_position+0xa>
   2e2ba:	90 90 be 06 	lds	r9, 0x06BE	; 0x8006be <count_position+0xb>
   2e2be:	6b 96       	adiw	r28, 0x1b	; 27
   2e2c0:	ae ac       	ldd	r10, Y+62	; 0x3e
   2e2c2:	bf ac       	ldd	r11, Y+63	; 0x3f
   2e2c4:	6b 97       	sbiw	r28, 0x1b	; 27
   2e2c6:	31 10       	cpse	r3, r1
   2e2c8:	04 c0       	rjmp	.+8      	; 0x2e2d2 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0xe0>
   2e2ca:	69 96       	adiw	r28, 0x19	; 25
   2e2cc:	ae ac       	ldd	r10, Y+62	; 0x3e
   2e2ce:	bf ac       	ldd	r11, Y+63	; 0x3f
   2e2d0:	69 97       	sbiw	r28, 0x19	; 25
/// starts and ends at 0 speed
void go_manhattan(int16_t x, int16_t y, int16_t z, int16_t acc, uint16_t min_delay_us){
	int16_t length;

	// DBG(_n("x %d -> %d, "), x, _X);
	length = x - _X;
   2e2d2:	80 91 b3 06 	lds	r24, 0x06B3	; 0x8006b3 <count_position>
   2e2d6:	90 91 b4 06 	lds	r25, 0x06B4	; 0x8006b4 <count_position+0x1>
   2e2da:	a0 91 b5 06 	lds	r26, 0x06B5	; 0x8006b5 <count_position+0x2>
   2e2de:	b0 91 b6 06 	lds	r27, 0x06B6	; 0x8006b6 <count_position+0x3>
   2e2e2:	f5 01       	movw	r30, r10
   2e2e4:	e8 1b       	sub	r30, r24
   2e2e6:	f9 0b       	sbc	r31, r25
   2e2e8:	cf 01       	movw	r24, r30
		update_position_1_step(axes, dir);
	}
}

void go_start_stop(uint8_t axes, uint8_t dir, int16_t acc, uint16_t min_delay_us, uint16_t steps){
	if (steps == 0)
   2e2ea:	71 f0       	breq	.+28     	; 0x2e308 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x116>
void go_manhattan(int16_t x, int16_t y, int16_t z, int16_t acc, uint16_t min_delay_us){
	int16_t length;

	// DBG(_n("x %d -> %d, "), x, _X);
	length = x - _X;
	go_start_stop(X_AXIS_MASK, length < 0 ? X_MINUS_MASK : X_PLUS_MASK, acc, min_delay_us, ABS(length));
   2e2ec:	af 01       	movw	r20, r30
   2e2ee:	f7 ff       	sbrs	r31, 7
   2e2f0:	04 c0       	rjmp	.+8      	; 0x2e2fa <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x108>
   2e2f2:	44 27       	eor	r20, r20
   2e2f4:	55 27       	eor	r21, r21
   2e2f6:	4e 1b       	sub	r20, r30
   2e2f8:	5f 0b       	sbc	r21, r31
   2e2fa:	69 2f       	mov	r22, r25
   2e2fc:	66 1f       	adc	r22, r22
   2e2fe:	66 27       	eor	r22, r22
   2e300:	66 1f       	adc	r22, r22
   2e302:	81 e0       	ldi	r24, 0x01	; 1
   2e304:	0f 94 88 6f 	call	0x2df10	; 0x2df10 <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]>

	// DBG(_n("y %d -> %d, "), y, _Y);
	length = y - _Y;
   2e308:	80 91 b7 06 	lds	r24, 0x06B7	; 0x8006b7 <count_position+0x4>
   2e30c:	90 91 b8 06 	lds	r25, 0x06B8	; 0x8006b8 <count_position+0x5>
   2e310:	a0 91 b9 06 	lds	r26, 0x06B9	; 0x8006b9 <count_position+0x6>
   2e314:	b0 91 ba 06 	lds	r27, 0x06BA	; 0x8006ba <count_position+0x7>
   2e318:	2b 96       	adiw	r28, 0x0b	; 11
   2e31a:	4e ad       	ldd	r20, Y+62	; 0x3e
   2e31c:	5f ad       	ldd	r21, Y+63	; 0x3f
   2e31e:	2b 97       	sbiw	r28, 0x0b	; 11
   2e320:	48 1b       	sub	r20, r24
   2e322:	59 0b       	sbc	r21, r25
	go_start_stop(Y_AXIS_MASK, length < 0 ? Y_MINUS_MASK : Y_PLUS_MASK, acc, min_delay_us, ABS(length));
   2e324:	57 fd       	sbrc	r21, 7
   2e326:	b2 c0       	rjmp	.+356    	; 0x2e48c <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x29a>
   2e328:	60 e0       	ldi	r22, 0x00	; 0
		update_position_1_step(axes, dir);
	}
}

void go_start_stop(uint8_t axes, uint8_t dir, int16_t acc, uint16_t min_delay_us, uint16_t steps){
	if (steps == 0)
   2e32a:	41 15       	cp	r20, r1
   2e32c:	51 05       	cpc	r21, r1
   2e32e:	09 f0       	breq	.+2      	; 0x2e332 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x140>
   2e330:	ae c0       	rjmp	.+348    	; 0x2e48e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x29c>
	// DBG(_n("y %d -> %d, "), y, _Y);
	length = y - _Y;
	go_start_stop(Y_AXIS_MASK, length < 0 ? Y_MINUS_MASK : Y_PLUS_MASK, acc, min_delay_us, ABS(length));

	// DBG(_n("z %d -> %d\n"), z, _Z);
	length = z - _Z;
   2e332:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e336:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e33a:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e33e:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e342:	68 1a       	sub	r6, r24
   2e344:	79 0a       	sbc	r7, r25
	go_start_stop(Z_AXIS_MASK, length < 0 ? Z_MINUS_MASK : Z_PLUS_MASK, acc, min_delay_us, ABS(length));
   2e346:	77 fc       	sbrc	r7, 7
   2e348:	ab c0       	rjmp	.+342    	; 0x2e4a0 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2ae>
   2e34a:	60 e0       	ldi	r22, 0x00	; 0
		update_position_1_step(axes, dir);
	}
}

void go_start_stop(uint8_t axes, uint8_t dir, int16_t acc, uint16_t min_delay_us, uint16_t steps){
	if (steps == 0)
   2e34c:	61 14       	cp	r6, r1
   2e34e:	71 04       	cpc	r7, r1
   2e350:	09 f0       	breq	.+2      	; 0x2e354 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x162>
   2e352:	a7 c0       	rjmp	.+334    	; 0x2e4a2 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2b0>
	DBG(_n("Scan countdown: "));

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
		for (uint8_t d = 0; d < 2; ++d){
			go_manhattan((d & 1) ? (cx + 992) : (cx - 992), cy - 992 + r * 64, _Z, Z_ACCEL, Z_MIN_DELAY);
			xyzcal_lineXYZ_to((d & 1) ? (cx + 992) : (cx - 992), cy - 992 + r * 64, _Z, delay_us, 0);
   2e354:	40 91 bb 06 	lds	r20, 0x06BB	; 0x8006bb <count_position+0x8>
   2e358:	50 91 bc 06 	lds	r21, 0x06BC	; 0x8006bc <count_position+0x9>
   2e35c:	60 91 bd 06 	lds	r22, 0x06BD	; 0x8006bd <count_position+0xa>
   2e360:	70 91 be 06 	lds	r23, 0x06BE	; 0x8006be <count_position+0xb>
   2e364:	00 e0       	ldi	r16, 0x00	; 0
   2e366:	28 ec       	ldi	r18, 0xC8	; 200
   2e368:	30 e0       	ldi	r19, 0x00	; 0
   2e36a:	2b 96       	adiw	r28, 0x0b	; 11
   2e36c:	6e ad       	ldd	r22, Y+62	; 0x3e
   2e36e:	7f ad       	ldd	r23, Y+63	; 0x3f
   2e370:	2b 97       	sbiw	r28, 0x0b	; 11
   2e372:	c5 01       	movw	r24, r10
   2e374:	0e 94 5a ec 	call	0x1d8b4	; 0x1d8b4 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)>
			sm4_set_dir(X_AXIS, d);
   2e378:	63 2d       	mov	r22, r3
   2e37a:	80 e0       	ldi	r24, 0x00	; 0
   2e37c:	0f 94 5e 53 	call	0x2a6bc	; 0x2a6bc <sm4_set_dir(unsigned char, unsigned char)>
            //@size=242
			DBG(_n("%d\n"), 64 - (r * 2 + d)); ///< to keep host connection alive
   2e380:	5f 92       	push	r5
   2e382:	4f 92       	push	r4
   2e384:	89 ea       	ldi	r24, 0xA9	; 169
   2e386:	95 ea       	ldi	r25, 0xA5	; 165
   2e388:	9f 93       	push	r25
   2e38a:	8f 93       	push	r24
   2e38c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
			lcd_set_cursor(4,3);
   2e390:	63 e0       	ldi	r22, 0x03	; 3
   2e392:	84 e0       	ldi	r24, 0x04	; 4
   2e394:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
			lcd_printf_P(PSTR("Countdown: %d "),64 - (r * 2 + d)); ////MSG_COUNTDOWN c=12
   2e398:	5f 92       	push	r5
   2e39a:	4f 92       	push	r4
   2e39c:	8a e9       	ldi	r24, 0x9A	; 154
   2e39e:	95 ea       	ldi	r25, 0xA5	; 165
   2e3a0:	9f 93       	push	r25
   2e3a2:	8f 93       	push	r24
   2e3a4:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   2e3a8:	0f b6       	in	r0, 0x3f	; 63
   2e3aa:	f8 94       	cli
   2e3ac:	de bf       	out	0x3e, r29	; 62
   2e3ae:	0f be       	out	0x3f, r0	; 63
   2e3b0:	cd bf       	out	0x3d, r28	; 61
   2e3b2:	21 e0       	ldi	r18, 0x01	; 1
   2e3b4:	30 e0       	ldi	r19, 0x00	; 0
   2e3b6:	31 10       	cpse	r3, r1
   2e3b8:	02 c0       	rjmp	.+4      	; 0x2e3be <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x1cc>
   2e3ba:	2f ef       	ldi	r18, 0xFF	; 255
   2e3bc:	3f ef       	ldi	r19, 0xFF	; 255
   2e3be:	40 ec       	ldi	r20, 0xC0	; 192
   2e3c0:	42 03       	mulsu	r20, r18
   2e3c2:	c0 01       	movw	r24, r0
   2e3c4:	43 9f       	mul	r20, r19
   2e3c6:	90 0d       	add	r25, r0
   2e3c8:	11 24       	eor	r1, r1
   2e3ca:	67 96       	adiw	r28, 0x17	; 23
   2e3cc:	9f af       	std	Y+63, r25	; 0x3f
   2e3ce:	8e af       	std	Y+62, r24	; 0x3e
   2e3d0:	67 97       	sbiw	r28, 0x17	; 23
   2e3d2:	40 ee       	ldi	r20, 0xE0	; 224
   2e3d4:	53 e0       	ldi	r21, 0x03	; 3
   2e3d6:	24 9f       	mul	r18, r20
   2e3d8:	40 01       	movw	r8, r0
   2e3da:	25 9f       	mul	r18, r21
   2e3dc:	90 0c       	add	r9, r0
   2e3de:	34 9f       	mul	r19, r20
   2e3e0:	90 0c       	add	r9, r0
   2e3e2:	11 24       	eor	r1, r1
   2e3e4:	63 96       	adiw	r28, 0x13	; 19
   2e3e6:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e3e8:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e3ea:	63 97       	sbiw	r28, 0x13	; 19
   2e3ec:	8e 0e       	add	r8, r30
   2e3ee:	9f 1e       	adc	r9, r31
   2e3f0:	9e 01       	movw	r18, r28
   2e3f2:	2f 5f       	subi	r18, 0xFF	; 255
   2e3f4:	3f 4f       	sbci	r19, 0xFF	; 255
   2e3f6:	2d 96       	adiw	r28, 0x0d	; 13
   2e3f8:	3f af       	std	Y+63, r19	; 0x3f
   2e3fa:	2e af       	std	Y+62, r18	; 0x3e
   2e3fc:	2d 97       	sbiw	r28, 0x0d	; 13
   2e3fe:	61 96       	adiw	r28, 0x11	; 17
   2e400:	8e ad       	ldd	r24, Y+62	; 0x3e
   2e402:	9f ad       	ldd	r25, Y+63	; 0x3f
   2e404:	61 97       	sbiw	r28, 0x11	; 17
   2e406:	2f 96       	adiw	r28, 0x0f	; 15
   2e408:	9f af       	std	Y+63, r25	; 0x3f
   2e40a:	8e af       	std	Y+62, r24	; 0x3e
   2e40c:	2f 97       	sbiw	r28, 0x0f	; 15
   2e40e:	71 2c       	mov	r7, r1
   2e410:	61 2c       	mov	r6, r1

			for (uint8_t c = 0; c < 32; c++){ ///< X axis
				/// move to the next point and move Z up diagonally (if needed)
				current_delay_us = MAX_DELAY;
   2e412:	e0 e1       	ldi	r30, 0x10	; 16
   2e414:	f7 e2       	ldi	r31, 0x27	; 39
   2e416:	27 96       	adiw	r28, 0x07	; 7
   2e418:	ff af       	std	Y+63, r31	; 0x3f
   2e41a:	ee af       	std	Y+62, r30	; 0x3e
   2e41c:	27 97       	sbiw	r28, 0x07	; 7
				const int16_t end_x = ((d & 1) ? 1 : -1) * (64 * (16 - c) - 32) + cx;
				const int16_t length_x = ABS(end_x - _X);
   2e41e:	80 91 b3 06 	lds	r24, 0x06B3	; 0x8006b3 <count_position>
   2e422:	90 91 b4 06 	lds	r25, 0x06B4	; 0x8006b4 <count_position+0x1>
   2e426:	a0 91 b5 06 	lds	r26, 0x06B5	; 0x8006b5 <count_position+0x2>
   2e42a:	b0 91 b6 06 	lds	r27, 0x06B6	; 0x8006b6 <count_position+0x3>
   2e42e:	84 01       	movw	r16, r8
   2e430:	08 1b       	sub	r16, r24
   2e432:	19 0b       	sbc	r17, r25
   2e434:	17 ff       	sbrs	r17, 7
   2e436:	03 c0       	rjmp	.+6      	; 0x2e43e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x24c>
   2e438:	11 95       	neg	r17
   2e43a:	01 95       	neg	r16
   2e43c:	11 09       	sbc	r17, r1
				const int16_t half_x = length_x / 2;
   2e43e:	98 01       	movw	r18, r16
   2e440:	35 95       	asr	r19
   2e442:	27 95       	ror	r18
   2e444:	65 96       	adiw	r28, 0x15	; 21
   2e446:	3f af       	std	Y+63, r19	; 0x3f
   2e448:	2e af       	std	Y+62, r18	; 0x3e
   2e44a:	65 97       	sbiw	r28, 0x15	; 21
				/// don't go up if PINDA not triggered (optimization)
				const bool up = _PINDA;
				const uint8_t axes = up ? X_AXIS_MASK | Z_AXIS_MASK : X_AXIS_MASK;
   2e44c:	1c 9b       	sbis	0x03, 4	; 3
   2e44e:	33 c0       	rjmp	.+102    	; 0x2e4b6 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2c4>
   2e450:	45 e0       	ldi	r20, 0x05	; 5
   2e452:	24 2e       	mov	r2, r20
				const uint8_t dir = Z_PLUS_MASK | (d & 1 ? X_MINUS_MASK : X_PLUS_MASK);

				accelerate(axes, dir, Z_ACCEL, current_delay_us, Z_MIN_DELAY, half_x);
   2e454:	65 96       	adiw	r28, 0x15	; 21
   2e456:	ae ac       	ldd	r10, Y+62	; 0x3e
   2e458:	bf ac       	ldd	r11, Y+63	; 0x3f
   2e45a:	65 97       	sbiw	r28, 0x15	; 21
}

/// Goes defined number of steps while accelerating
/// updates global positions
void accelerate(uint8_t axes, uint8_t dir, int16_t acc, uint16_t &delay_us, uint16_t min_delay_us, uint16_t steps){
	set_axes_dir(axes, dir);
   2e45c:	63 2d       	mov	r22, r3
   2e45e:	82 2d       	mov	r24, r2
   2e460:	0e 94 01 ec 	call	0x1d802	; 0x1d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>
	while (steps--){
   2e464:	31 e0       	ldi	r19, 0x01	; 1
   2e466:	a3 1a       	sub	r10, r19
   2e468:	b1 08       	sbc	r11, r1
   2e46a:	40 f1       	brcs	.+80     	; 0x2e4bc <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2ca>
		accelerate_1_step(axes, acc, delay_us, min_delay_us);
   2e46c:	28 ec       	ldi	r18, 0xC8	; 200
   2e46e:	30 e0       	ldi	r19, 0x00	; 0
   2e470:	a7 01       	movw	r20, r14
   2e472:	68 ee       	ldi	r22, 0xE8	; 232
   2e474:	73 e0       	ldi	r23, 0x03	; 3
   2e476:	82 2d       	mov	r24, r2
   2e478:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>
		update_position_1_step(axes, dir);
   2e47c:	63 2d       	mov	r22, r3
   2e47e:	82 2d       	mov	r24, r2
   2e480:	0e 94 1a ec 	call	0x1d834	; 0x1d834 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]>
   2e484:	ef cf       	rjmp	.-34     	; 0x2e464 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x272>
	uint16_t steps_to_go;

	DBG(_n("Scan countdown: "));

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
		for (uint8_t d = 0; d < 2; ++d){
   2e486:	33 24       	eor	r3, r3
   2e488:	33 94       	inc	r3
   2e48a:	11 cf       	rjmp	.-478    	; 0x2e2ae <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0xbc>
	length = x - _X;
	go_start_stop(X_AXIS_MASK, length < 0 ? X_MINUS_MASK : X_PLUS_MASK, acc, min_delay_us, ABS(length));

	// DBG(_n("y %d -> %d, "), y, _Y);
	length = y - _Y;
	go_start_stop(Y_AXIS_MASK, length < 0 ? Y_MINUS_MASK : Y_PLUS_MASK, acc, min_delay_us, ABS(length));
   2e48c:	62 e0       	ldi	r22, 0x02	; 2
   2e48e:	57 ff       	sbrs	r21, 7
   2e490:	03 c0       	rjmp	.+6      	; 0x2e498 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2a6>
   2e492:	51 95       	neg	r21
   2e494:	41 95       	neg	r20
   2e496:	51 09       	sbc	r21, r1
   2e498:	82 e0       	ldi	r24, 0x02	; 2
   2e49a:	0f 94 88 6f 	call	0x2df10	; 0x2df10 <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]>
   2e49e:	49 cf       	rjmp	.-366    	; 0x2e332 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x140>

	// DBG(_n("z %d -> %d\n"), z, _Z);
	length = z - _Z;
	go_start_stop(Z_AXIS_MASK, length < 0 ? Z_MINUS_MASK : Z_PLUS_MASK, acc, min_delay_us, ABS(length));
   2e4a0:	64 e0       	ldi	r22, 0x04	; 4
   2e4a2:	a3 01       	movw	r20, r6
   2e4a4:	77 fe       	sbrs	r7, 7
   2e4a6:	03 c0       	rjmp	.+6      	; 0x2e4ae <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2bc>
   2e4a8:	51 95       	neg	r21
   2e4aa:	41 95       	neg	r20
   2e4ac:	51 09       	sbc	r21, r1
   2e4ae:	84 e0       	ldi	r24, 0x04	; 4
   2e4b0:	0f 94 88 6f 	call	0x2df10	; 0x2df10 <go_start_stop(unsigned char, unsigned char, int, unsigned int, unsigned int) [clone .part.2] [clone .constprop.83]>
   2e4b4:	4f cf       	rjmp	.-354    	; 0x2e354 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x162>
				const int16_t end_x = ((d & 1) ? 1 : -1) * (64 * (16 - c) - 32) + cx;
				const int16_t length_x = ABS(end_x - _X);
				const int16_t half_x = length_x / 2;
				/// don't go up if PINDA not triggered (optimization)
				const bool up = _PINDA;
				const uint8_t axes = up ? X_AXIS_MASK | Z_AXIS_MASK : X_AXIS_MASK;
   2e4b6:	22 24       	eor	r2, r2
   2e4b8:	23 94       	inc	r2
   2e4ba:	cc cf       	rjmp	.-104    	; 0x2e454 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x262>
				const uint8_t dir = Z_PLUS_MASK | (d & 1 ? X_MINUS_MASK : X_PLUS_MASK);

				accelerate(axes, dir, Z_ACCEL, current_delay_us, Z_MIN_DELAY, half_x);
				go_and_stop(axes, dir, Z_ACCEL, current_delay_us, length_x - half_x);
   2e4bc:	65 96       	adiw	r28, 0x15	; 21
   2e4be:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e4c0:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e4c2:	65 97       	sbiw	r28, 0x15	; 21
   2e4c4:	0e 1b       	sub	r16, r30
   2e4c6:	1f 0b       	sbc	r17, r31
   2e4c8:	23 96       	adiw	r28, 0x03	; 3
   2e4ca:	1f af       	std	Y+63, r17	; 0x3f
   2e4cc:	0e af       	std	Y+62, r16	; 0x3e
   2e4ce:	23 97       	sbiw	r28, 0x03	; 3
}

/// \param dir sets direction of movement
/// updates global positions
void go_and_stop(uint8_t axes, uint8_t dir, int16_t dec, uint16_t &delay_us, uint16_t steps){
	set_axes_dir(axes, dir);
   2e4d0:	63 2d       	mov	r22, r3
   2e4d2:	82 2d       	mov	r24, r2
   2e4d4:	0e 94 01 ec 	call	0x1d802	; 0x1d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>
	while (go_and_stop_1_step(axes, dec, delay_us, steps)){
   2e4d8:	9e 01       	movw	r18, r28
   2e4da:	2f 5b       	subi	r18, 0xBF	; 191
   2e4dc:	3f 4f       	sbci	r19, 0xFF	; 255
   2e4de:	a7 01       	movw	r20, r14
   2e4e0:	68 ee       	ldi	r22, 0xE8	; 232
   2e4e2:	73 e0       	ldi	r23, 0x03	; 3
   2e4e4:	82 2d       	mov	r24, r2
   2e4e6:	0e 94 78 eb 	call	0x1d6f0	; 0x1d6f0 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)>
   2e4ea:	88 23       	and	r24, r24
   2e4ec:	29 f0       	breq	.+10     	; 0x2e4f8 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x306>
		update_position_1_step(axes, dir);
   2e4ee:	63 2d       	mov	r22, r3
   2e4f0:	82 2d       	mov	r24, r2
   2e4f2:	0e 94 1a ec 	call	0x1d834	; 0x1d834 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]>
   2e4f6:	f0 cf       	rjmp	.-32     	; 0x2e4d8 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x2e6>


				z_trig = min_z;

				/// move up to un-trigger (surpress hysteresis)
				sm4_set_dir(Z_AXIS, Z_PLUS);
   2e4f8:	60 e0       	ldi	r22, 0x00	; 0
   2e4fa:	82 e0       	ldi	r24, 0x02	; 2
   2e4fc:	0f 94 5e 53 	call	0x2a6bc	; 0x2a6bc <sm4_set_dir(unsigned char, unsigned char)>
				/// speed up from stop, go half the way
				current_delay_us = MAX_DELAY;
   2e500:	20 e1       	ldi	r18, 0x10	; 16
   2e502:	37 e2       	ldi	r19, 0x27	; 39
   2e504:	27 96       	adiw	r28, 0x07	; 7
   2e506:	3f af       	std	Y+63, r19	; 0x3f
   2e508:	2e af       	std	Y+62, r18	; 0x3e
   2e50a:	27 97       	sbiw	r28, 0x07	; 7
				for (start_z = _Z; _Z < (max_z + start_z) / 2; ++_Z_){
   2e50c:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   2e510:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   2e514:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   2e518:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
   2e51c:	00 5a       	subi	r16, 0xA0	; 160
   2e51e:	16 4f       	sbci	r17, 0xF6	; 246
   2e520:	17 ff       	sbrs	r17, 7
   2e522:	02 c0       	rjmp	.+4      	; 0x2e528 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x336>
   2e524:	0f 5f       	subi	r16, 0xFF	; 255
   2e526:	1f 4f       	sbci	r17, 0xFF	; 255
   2e528:	15 95       	asr	r17
   2e52a:	07 95       	ror	r16
   2e52c:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e530:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e534:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e538:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e53c:	80 17       	cp	r24, r16
   2e53e:	91 07       	cpc	r25, r17
   2e540:	f4 f4       	brge	.+60     	; 0x2e57e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x38c>
					if (!_PINDA){
   2e542:	1c 9b       	sbis	0x03, 4	; 3
   2e544:	1c c0       	rjmp	.+56     	; 0x2e57e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x38c>
						break;
					}
					accelerate_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, Z_MIN_DELAY);
   2e546:	28 ec       	ldi	r18, 0xC8	; 200
   2e548:	30 e0       	ldi	r19, 0x00	; 0
   2e54a:	a7 01       	movw	r20, r14
   2e54c:	68 ee       	ldi	r22, 0xE8	; 232
   2e54e:	73 e0       	ldi	r23, 0x03	; 3
   2e550:	84 e0       	ldi	r24, 0x04	; 4
   2e552:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>

				/// move up to un-trigger (surpress hysteresis)
				sm4_set_dir(Z_AXIS, Z_PLUS);
				/// speed up from stop, go half the way
				current_delay_us = MAX_DELAY;
				for (start_z = _Z; _Z < (max_z + start_z) / 2; ++_Z_){
   2e556:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e55a:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e55e:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e562:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e566:	01 96       	adiw	r24, 0x01	; 1
   2e568:	a1 1d       	adc	r26, r1
   2e56a:	b1 1d       	adc	r27, r1
   2e56c:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   2e570:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   2e574:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2e578:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
   2e57c:	d7 cf       	rjmp	.-82     	; 0x2e52c <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x33a>
						break;
					}
					accelerate_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, Z_MIN_DELAY);
				}

				if (_PINDA){
   2e57e:	1c 9b       	sbis	0x03, 4	; 3
   2e580:	3f c0       	rjmp	.+126    	; 0x2e600 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x40e>
					steps_to_go = MAX(0, max_z - _Z);
   2e582:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e586:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e58a:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e58e:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e592:	e0 e6       	ldi	r30, 0x60	; 96
   2e594:	f9 e0       	ldi	r31, 0x09	; 9
   2e596:	e8 1b       	sub	r30, r24
   2e598:	f9 0b       	sbc	r31, r25
   2e59a:	cf 01       	movw	r24, r30
   2e59c:	f7 ff       	sbrs	r31, 7
   2e59e:	02 c0       	rjmp	.+4      	; 0x2e5a4 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x3b2>
   2e5a0:	90 e0       	ldi	r25, 0x00	; 0
   2e5a2:	80 e0       	ldi	r24, 0x00	; 0
   2e5a4:	25 96       	adiw	r28, 0x05	; 5
   2e5a6:	9f af       	std	Y+63, r25	; 0x3f
   2e5a8:	8e af       	std	Y+62, r24	; 0x3e
   2e5aa:	25 97       	sbiw	r28, 0x05	; 5
					while (_PINDA && _Z < max_z){
   2e5ac:	1c 9b       	sbis	0x03, 4	; 3
   2e5ae:	28 c0       	rjmp	.+80     	; 0x2e600 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x40e>
   2e5b0:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e5b4:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e5b8:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e5bc:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e5c0:	80 36       	cpi	r24, 0x60	; 96
   2e5c2:	99 40       	sbci	r25, 0x09	; 9
   2e5c4:	ec f4       	brge	.+58     	; 0x2e600 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x40e>
						go_and_stop_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, steps_to_go);
   2e5c6:	9e 01       	movw	r18, r28
   2e5c8:	2d 5b       	subi	r18, 0xBD	; 189
   2e5ca:	3f 4f       	sbci	r19, 0xFF	; 255
   2e5cc:	a7 01       	movw	r20, r14
   2e5ce:	68 ee       	ldi	r22, 0xE8	; 232
   2e5d0:	73 e0       	ldi	r23, 0x03	; 3
   2e5d2:	84 e0       	ldi	r24, 0x04	; 4
   2e5d4:	0e 94 78 eb 	call	0x1d6f0	; 0x1d6f0 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)>
						++_Z_;
   2e5d8:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e5dc:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e5e0:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e5e4:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e5e8:	01 96       	adiw	r24, 0x01	; 1
   2e5ea:	a1 1d       	adc	r26, r1
   2e5ec:	b1 1d       	adc	r27, r1
   2e5ee:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   2e5f2:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   2e5f6:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2e5fa:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
   2e5fe:	d6 cf       	rjmp	.-84     	; 0x2e5ac <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x3ba>
/// \returns steps done
/// updates global positions
void stop_smoothly(uint8_t axes, uint8_t dir, int16_t dec, uint16_t &delay_us){
	if (dec <= 0)
		return;
	set_axes_dir(axes, dir);
   2e600:	60 e0       	ldi	r22, 0x00	; 0
   2e602:	84 e0       	ldi	r24, 0x04	; 4
   2e604:	0e 94 01 ec 	call	0x1d802	; 0x1d802 <set_axes_dir(unsigned char, unsigned char) [clone .lto_priv.391]>
	while (delay_us < MAX_DELAY){
   2e608:	f7 01       	movw	r30, r14
   2e60a:	20 81       	ld	r18, Z
   2e60c:	31 81       	ldd	r19, Z+1	; 0x01
   2e60e:	20 31       	cpi	r18, 0x10	; 16
   2e610:	f7 e2       	ldi	r31, 0x27	; 39
   2e612:	3f 07       	cpc	r19, r31
   2e614:	58 f4       	brcc	.+22     	; 0x2e62c <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x43a>
		accelerate_1_step(axes, -dec, delay_us, delay_us);
   2e616:	a7 01       	movw	r20, r14
   2e618:	68 e1       	ldi	r22, 0x18	; 24
   2e61a:	7c ef       	ldi	r23, 0xFC	; 252
   2e61c:	84 e0       	ldi	r24, 0x04	; 4
   2e61e:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>
		update_position_1_step(axes, dir);
   2e622:	60 e0       	ldi	r22, 0x00	; 0
   2e624:	84 e0       	ldi	r24, 0x04	; 4
   2e626:	0e 94 1a ec 	call	0x1d834	; 0x1d834 <update_position_1_step(unsigned char, unsigned char) [clone .lto_priv.390]>
   2e62a:	ee cf       	rjmp	.-36     	; 0x2e608 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x416>
					}
				}
				stop_smoothly(Z_AXIS_MASK, Z_PLUS_MASK, Z_ACCEL, current_delay_us);

				/// move down to trigger
				sm4_set_dir(Z_AXIS, Z_MINUS);
   2e62c:	61 e0       	ldi	r22, 0x01	; 1
   2e62e:	82 e0       	ldi	r24, 0x02	; 2
   2e630:	0f 94 5e 53 	call	0x2a6bc	; 0x2a6bc <sm4_set_dir(unsigned char, unsigned char)>
				/// speed up
				current_delay_us = MAX_DELAY;
   2e634:	20 e1       	ldi	r18, 0x10	; 16
   2e636:	37 e2       	ldi	r19, 0x27	; 39
   2e638:	f7 01       	movw	r30, r14
   2e63a:	31 83       	std	Z+1, r19	; 0x01
   2e63c:	20 83       	st	Z, r18
				for (start_z = _Z; _Z > (min_z + start_z) / 2; --_Z_){
   2e63e:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   2e642:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   2e646:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   2e64a:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
   2e64e:	0c 0d       	add	r16, r12
   2e650:	1d 1d       	adc	r17, r13
   2e652:	17 ff       	sbrs	r17, 7
   2e654:	02 c0       	rjmp	.+4      	; 0x2e65a <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x468>
   2e656:	0f 5f       	subi	r16, 0xFF	; 255
   2e658:	1f 4f       	sbci	r17, 0xFF	; 255
   2e65a:	15 95       	asr	r17
   2e65c:	07 95       	ror	r16
   2e65e:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e662:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e666:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e66a:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e66e:	08 17       	cp	r16, r24
   2e670:	19 07       	cpc	r17, r25
   2e672:	0c f0       	brlt	.+2      	; 0x2e676 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x484>
   2e674:	d9 c0       	rjmp	.+434    	; 0x2e828 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x636>
					if (_PINDA){
   2e676:	1c 9b       	sbis	0x03, 4	; 3
   2e678:	bb c0       	rjmp	.+374    	; 0x2e7f0 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x5fe>
						z_trig = _Z;
   2e67a:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   2e67e:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   2e682:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   2e686:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
						break;
					}
					accelerate_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, Z_MIN_DELAY);
				}
				/// slow down
				if (!_PINDA){
   2e68a:	1c 99       	sbic	0x03, 4	; 3
   2e68c:	28 c0       	rjmp	.+80     	; 0x2e6de <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4ec>
					steps_to_go = MAX(0, _Z - min_z);
   2e68e:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e692:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e696:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e69a:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e69e:	8c 19       	sub	r24, r12
   2e6a0:	9d 09       	sbc	r25, r13
   2e6a2:	97 ff       	sbrs	r25, 7
   2e6a4:	02 c0       	rjmp	.+4      	; 0x2e6aa <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4b8>
   2e6a6:	90 e0       	ldi	r25, 0x00	; 0
   2e6a8:	80 e0       	ldi	r24, 0x00	; 0
   2e6aa:	25 96       	adiw	r28, 0x05	; 5
   2e6ac:	9f af       	std	Y+63, r25	; 0x3f
   2e6ae:	8e af       	std	Y+62, r24	; 0x3e
   2e6b0:	25 97       	sbiw	r28, 0x05	; 5
					while (!_PINDA && _Z > min_z){
   2e6b2:	1c 99       	sbic	0x03, 4	; 3
   2e6b4:	0c c0       	rjmp	.+24     	; 0x2e6ce <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4dc>
   2e6b6:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e6ba:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e6be:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e6c2:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e6c6:	c8 16       	cp	r12, r24
   2e6c8:	d9 06       	cpc	r13, r25
   2e6ca:	0c f4       	brge	.+2      	; 0x2e6ce <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4dc>
   2e6cc:	af c0       	rjmp	.+350    	; 0x2e82c <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x63a>
						go_and_stop_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, steps_to_go);
						--_Z_;
					}
					z_trig = _Z;
   2e6ce:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   2e6d2:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   2e6d6:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   2e6da:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
				}
				/// slow down to stop but not lower than min_z
				while (_Z > min_z && current_delay_us < MAX_DELAY){
   2e6de:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e6e2:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e6e6:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e6ea:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e6ee:	c8 16       	cp	r12, r24
   2e6f0:	d9 06       	cpc	r13, r25
   2e6f2:	3c f4       	brge	.+14     	; 0x2e702 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x510>
   2e6f4:	f7 01       	movw	r30, r14
   2e6f6:	80 81       	ld	r24, Z
   2e6f8:	91 81       	ldd	r25, Z+1	; 0x01
   2e6fa:	80 31       	cpi	r24, 0x10	; 16
   2e6fc:	97 42       	sbci	r25, 0x27	; 39
   2e6fe:	08 f4       	brcc	.+2      	; 0x2e702 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x510>
   2e700:	b2 c0       	rjmp	.+356    	; 0x2e866 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x674>
   2e702:	0c 19       	sub	r16, r12
   2e704:	1d 09       	sbc	r17, r13
					accelerate_1_step(Z_AXIS_MASK, -Z_ACCEL, current_delay_us, Z_MIN_DELAY);
					--_Z_;
				}

				if (d == 0){
   2e706:	31 10       	cpse	r3, r1
   2e708:	ca c0       	rjmp	.+404    	; 0x2e89e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x6ac>
					line_buffer[c] = (uint16_t)(z_trig - min_z);
   2e70a:	f3 01       	movw	r30, r6
   2e70c:	ee 0f       	add	r30, r30
   2e70e:	ff 1f       	adc	r31, r31
   2e710:	21 e0       	ldi	r18, 0x01	; 1
   2e712:	30 e0       	ldi	r19, 0x00	; 0
   2e714:	2c 0f       	add	r18, r28
   2e716:	3d 1f       	adc	r19, r29
   2e718:	e2 0f       	add	r30, r18
   2e71a:	f3 1f       	adc	r31, r19
   2e71c:	11 83       	std	Z+1, r17	; 0x01
   2e71e:	00 83       	st	Z, r16
   2e720:	ff ef       	ldi	r31, 0xFF	; 255
   2e722:	6f 1a       	sub	r6, r31
   2e724:	7f 0a       	sbc	r7, r31
   2e726:	67 96       	adiw	r28, 0x17	; 23
   2e728:	2e ad       	ldd	r18, Y+62	; 0x3e
   2e72a:	3f ad       	ldd	r19, Y+63	; 0x3f
   2e72c:	67 97       	sbiw	r28, 0x17	; 23
   2e72e:	82 0e       	add	r8, r18
   2e730:	93 1e       	adc	r9, r19
   2e732:	2d 96       	adiw	r28, 0x0d	; 13
   2e734:	8e ad       	ldd	r24, Y+62	; 0x3e
   2e736:	9f ad       	ldd	r25, Y+63	; 0x3f
   2e738:	2d 97       	sbiw	r28, 0x0d	; 13
   2e73a:	02 97       	sbiw	r24, 0x02	; 2
   2e73c:	2d 96       	adiw	r28, 0x0d	; 13
   2e73e:	9f af       	std	Y+63, r25	; 0x3f
   2e740:	8e af       	std	Y+62, r24	; 0x3e
   2e742:	2d 97       	sbiw	r28, 0x0d	; 13
   2e744:	2f 96       	adiw	r28, 0x0f	; 15
   2e746:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e748:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e74a:	2f 97       	sbiw	r28, 0x0f	; 15
   2e74c:	31 97       	sbiw	r30, 0x01	; 1
   2e74e:	2f 96       	adiw	r28, 0x0f	; 15
   2e750:	ff af       	std	Y+63, r31	; 0x3f
   2e752:	ee af       	std	Y+62, r30	; 0x3e
   2e754:	2f 97       	sbiw	r28, 0x0f	; 15
            //@size=242
			DBG(_n("%d\n"), 64 - (r * 2 + d)); ///< to keep host connection alive
			lcd_set_cursor(4,3);
			lcd_printf_P(PSTR("Countdown: %d "),64 - (r * 2 + d)); ////MSG_COUNTDOWN c=12

			for (uint8_t c = 0; c < 32; c++){ ///< X axis
   2e756:	f0 e2       	ldi	r31, 0x20	; 32
   2e758:	6f 16       	cp	r6, r31
   2e75a:	71 04       	cpc	r7, r1
   2e75c:	09 f0       	breq	.+2      	; 0x2e760 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x56e>
   2e75e:	59 ce       	rjmp	.-846    	; 0x2e412 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x220>
   2e760:	21 e0       	ldi	r18, 0x01	; 1
   2e762:	42 1a       	sub	r4, r18
   2e764:	51 08       	sbc	r5, r1
	uint16_t steps_to_go;

	DBG(_n("Scan countdown: "));

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
		for (uint8_t d = 0; d < 2; ++d){
   2e766:	31 e0       	ldi	r19, 0x01	; 1
   2e768:	33 12       	cpse	r3, r19
   2e76a:	8d ce       	rjmp	.-742    	; 0x2e486 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x294>
   2e76c:	61 96       	adiw	r28, 0x11	; 17
   2e76e:	8e ad       	ldd	r24, Y+62	; 0x3e
   2e770:	9f ad       	ldd	r25, Y+63	; 0x3f
   2e772:	61 97       	sbiw	r28, 0x11	; 17
   2e774:	80 96       	adiw	r24, 0x20	; 32
   2e776:	61 96       	adiw	r28, 0x11	; 17
   2e778:	9f af       	std	Y+63, r25	; 0x3f
   2e77a:	8e af       	std	Y+62, r24	; 0x3e
   2e77c:	61 97       	sbiw	r28, 0x11	; 17
   2e77e:	2b 96       	adiw	r28, 0x0b	; 11
   2e780:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e782:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e784:	2b 97       	sbiw	r28, 0x0b	; 11
   2e786:	e0 5c       	subi	r30, 0xC0	; 192
   2e788:	ff 4f       	sbci	r31, 0xFF	; 255
   2e78a:	2b 96       	adiw	r28, 0x0b	; 11
   2e78c:	ff af       	std	Y+63, r31	; 0x3f
   2e78e:	ee af       	std	Y+62, r30	; 0x3e
   2e790:	2b 97       	sbiw	r28, 0x0b	; 11
   2e792:	29 96       	adiw	r28, 0x09	; 9
   2e794:	2e ad       	ldd	r18, Y+62	; 0x3e
   2e796:	3f ad       	ldd	r19, Y+63	; 0x3f
   2e798:	29 97       	sbiw	r28, 0x09	; 9
   2e79a:	22 50       	subi	r18, 0x02	; 2
   2e79c:	31 09       	sbc	r19, r1
   2e79e:	29 96       	adiw	r28, 0x09	; 9
   2e7a0:	3f af       	std	Y+63, r19	; 0x3f
   2e7a2:	2e af       	std	Y+62, r18	; 0x3e
   2e7a4:	29 97       	sbiw	r28, 0x09	; 9
	int16_t start_z;
	uint16_t steps_to_go;

	DBG(_n("Scan countdown: "));

	for (uint8_t r = 0; r < 32; r++){ ///< Y axis
   2e7a6:	23 2b       	or	r18, r19
   2e7a8:	09 f0       	breq	.+2      	; 0x2e7ac <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x5ba>
   2e7aa:	72 cd       	rjmp	.-1308   	; 0x2e290 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x9e>
					pixels[(uint16_t)r * 32 + (31 - c)] = (uint8_t)MIN((uint32_t)255, ((uint32_t)line_buffer[31 - c] + (z_trig - min_z)) / 2);
				}
			}
		}
	}
	DBG(endl);
   2e7ac:	88 e9       	ldi	r24, 0x98	; 152
   2e7ae:	95 ea       	ldi	r25, 0xA5	; 165
   2e7b0:	9f 93       	push	r25
   2e7b2:	8f 93       	push	r24
   2e7b4:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2e7b8:	0f 90       	pop	r0
   2e7ba:	0f 90       	pop	r0
}
   2e7bc:	c6 5a       	subi	r28, 0xA6	; 166
   2e7be:	df 4f       	sbci	r29, 0xFF	; 255
   2e7c0:	0f b6       	in	r0, 0x3f	; 63
   2e7c2:	f8 94       	cli
   2e7c4:	de bf       	out	0x3e, r29	; 62
   2e7c6:	0f be       	out	0x3f, r0	; 63
   2e7c8:	cd bf       	out	0x3d, r28	; 61
   2e7ca:	df 91       	pop	r29
   2e7cc:	cf 91       	pop	r28
   2e7ce:	1f 91       	pop	r17
   2e7d0:	0f 91       	pop	r16
   2e7d2:	ff 90       	pop	r15
   2e7d4:	ef 90       	pop	r14
   2e7d6:	df 90       	pop	r13
   2e7d8:	cf 90       	pop	r12
   2e7da:	bf 90       	pop	r11
   2e7dc:	af 90       	pop	r10
   2e7de:	9f 90       	pop	r9
   2e7e0:	8f 90       	pop	r8
   2e7e2:	7f 90       	pop	r7
   2e7e4:	6f 90       	pop	r6
   2e7e6:	5f 90       	pop	r5
   2e7e8:	4f 90       	pop	r4
   2e7ea:	3f 90       	pop	r3
   2e7ec:	2f 90       	pop	r2
   2e7ee:	08 95       	ret
				for (start_z = _Z; _Z > (min_z + start_z) / 2; --_Z_){
					if (_PINDA){
						z_trig = _Z;
						break;
					}
					accelerate_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, Z_MIN_DELAY);
   2e7f0:	28 ec       	ldi	r18, 0xC8	; 200
   2e7f2:	30 e0       	ldi	r19, 0x00	; 0
   2e7f4:	a7 01       	movw	r20, r14
   2e7f6:	68 ee       	ldi	r22, 0xE8	; 232
   2e7f8:	73 e0       	ldi	r23, 0x03	; 3
   2e7fa:	84 e0       	ldi	r24, 0x04	; 4
   2e7fc:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>

				/// move down to trigger
				sm4_set_dir(Z_AXIS, Z_MINUS);
				/// speed up
				current_delay_us = MAX_DELAY;
				for (start_z = _Z; _Z > (min_z + start_z) / 2; --_Z_){
   2e800:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e804:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e808:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e80c:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e810:	01 97       	sbiw	r24, 0x01	; 1
   2e812:	a1 09       	sbc	r26, r1
   2e814:	b1 09       	sbc	r27, r1
   2e816:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   2e81a:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   2e81e:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2e822:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
   2e826:	1b cf       	rjmp	.-458    	; 0x2e65e <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x46c>
   2e828:	86 01       	movw	r16, r12
   2e82a:	2f cf       	rjmp	.-418    	; 0x2e68a <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x498>
				}
				/// slow down
				if (!_PINDA){
					steps_to_go = MAX(0, _Z - min_z);
					while (!_PINDA && _Z > min_z){
						go_and_stop_1_step(Z_AXIS_MASK, Z_ACCEL, current_delay_us, steps_to_go);
   2e82c:	9e 01       	movw	r18, r28
   2e82e:	2d 5b       	subi	r18, 0xBD	; 189
   2e830:	3f 4f       	sbci	r19, 0xFF	; 255
   2e832:	a7 01       	movw	r20, r14
   2e834:	68 ee       	ldi	r22, 0xE8	; 232
   2e836:	73 e0       	ldi	r23, 0x03	; 3
   2e838:	84 e0       	ldi	r24, 0x04	; 4
   2e83a:	0e 94 78 eb 	call	0x1d6f0	; 0x1d6f0 <go_and_stop_1_step(unsigned char, int, unsigned int&, unsigned int&)>
						--_Z_;
   2e83e:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e842:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e846:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e84a:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e84e:	01 97       	sbiw	r24, 0x01	; 1
   2e850:	a1 09       	sbc	r26, r1
   2e852:	b1 09       	sbc	r27, r1
   2e854:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   2e858:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   2e85c:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2e860:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
   2e864:	26 cf       	rjmp	.-436    	; 0x2e6b2 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4c0>
					}
					z_trig = _Z;
				}
				/// slow down to stop but not lower than min_z
				while (_Z > min_z && current_delay_us < MAX_DELAY){
					accelerate_1_step(Z_AXIS_MASK, -Z_ACCEL, current_delay_us, Z_MIN_DELAY);
   2e866:	28 ec       	ldi	r18, 0xC8	; 200
   2e868:	30 e0       	ldi	r19, 0x00	; 0
   2e86a:	a7 01       	movw	r20, r14
   2e86c:	68 e1       	ldi	r22, 0x18	; 24
   2e86e:	7c ef       	ldi	r23, 0xFC	; 252
   2e870:	84 e0       	ldi	r24, 0x04	; 4
   2e872:	0e 94 d2 ea 	call	0x1d5a4	; 0x1d5a4 <accelerate_1_step(unsigned char, int, unsigned int&, unsigned int)>
					--_Z_;
   2e876:	80 91 bb 06 	lds	r24, 0x06BB	; 0x8006bb <count_position+0x8>
   2e87a:	90 91 bc 06 	lds	r25, 0x06BC	; 0x8006bc <count_position+0x9>
   2e87e:	a0 91 bd 06 	lds	r26, 0x06BD	; 0x8006bd <count_position+0xa>
   2e882:	b0 91 be 06 	lds	r27, 0x06BE	; 0x8006be <count_position+0xb>
   2e886:	01 97       	sbiw	r24, 0x01	; 1
   2e888:	a1 09       	sbc	r26, r1
   2e88a:	b1 09       	sbc	r27, r1
   2e88c:	80 93 bb 06 	sts	0x06BB, r24	; 0x8006bb <count_position+0x8>
   2e890:	90 93 bc 06 	sts	0x06BC, r25	; 0x8006bc <count_position+0x9>
   2e894:	a0 93 bd 06 	sts	0x06BD, r26	; 0x8006bd <count_position+0xa>
   2e898:	b0 93 be 06 	sts	0x06BE, r27	; 0x8006be <count_position+0xb>
   2e89c:	20 cf       	rjmp	.-448    	; 0x2e6de <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x4ec>
					line_buffer[c] = (uint16_t)(z_trig - min_z);
				} else {
					/// !!! data reversed in X
					// DBG(_n("%04x"), ((uint32_t)line_buffer[31 - c] + (z_trig - min_z)) / 2);
					/// save average of both directions (filters effect of hysteresis)
					pixels[(uint16_t)r * 32 + (31 - c)] = (uint8_t)MIN((uint32_t)255, ((uint32_t)line_buffer[31 - c] + (z_trig - min_z)) / 2);
   2e89e:	2d 96       	adiw	r28, 0x0d	; 13
   2e8a0:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e8a2:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e8a4:	2d 97       	sbiw	r28, 0x0d	; 13
   2e8a6:	86 ad       	ldd	r24, Z+62	; 0x3e
   2e8a8:	97 ad       	ldd	r25, Z+63	; 0x3f
   2e8aa:	01 2e       	mov	r0, r17
   2e8ac:	00 0c       	add	r0, r0
   2e8ae:	22 0b       	sbc	r18, r18
   2e8b0:	33 0b       	sbc	r19, r19
   2e8b2:	08 0f       	add	r16, r24
   2e8b4:	19 1f       	adc	r17, r25
   2e8b6:	21 1d       	adc	r18, r1
   2e8b8:	31 1d       	adc	r19, r1
   2e8ba:	36 95       	lsr	r19
   2e8bc:	27 95       	ror	r18
   2e8be:	17 95       	ror	r17
   2e8c0:	07 95       	ror	r16
   2e8c2:	0f 3f       	cpi	r16, 0xFF	; 255
   2e8c4:	11 05       	cpc	r17, r1
   2e8c6:	21 05       	cpc	r18, r1
   2e8c8:	31 05       	cpc	r19, r1
   2e8ca:	29 f0       	breq	.+10     	; 0x2e8d6 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x6e4>
   2e8cc:	20 f0       	brcs	.+8      	; 0x2e8d6 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x6e4>
   2e8ce:	0f ef       	ldi	r16, 0xFF	; 255
   2e8d0:	10 e0       	ldi	r17, 0x00	; 0
   2e8d2:	20 e0       	ldi	r18, 0x00	; 0
   2e8d4:	30 e0       	ldi	r19, 0x00	; 0
   2e8d6:	2f 96       	adiw	r28, 0x0f	; 15
   2e8d8:	ee ad       	ldd	r30, Y+62	; 0x3e
   2e8da:	ff ad       	ldd	r31, Y+63	; 0x3f
   2e8dc:	2f 97       	sbiw	r28, 0x0f	; 15
   2e8de:	07 8f       	std	Z+31, r16	; 0x1f
   2e8e0:	1f cf       	rjmp	.-450    	; 0x2e720 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]+0x52e>

0002e8e2 <global constructors keyed to 65535_0_adc.cpp.obj.14581>:
   2e8e2:	ef 92       	push	r14
   2e8e4:	ff 92       	push	r15
   2e8e6:	0f 93       	push	r16
   2e8e8:	1f 93       	push	r17
   2e8ea:	cf 93       	push	r28
   2e8ec:	df 93       	push	r29
   2e8ee:	cd b7       	in	r28, 0x3d	; 61
   2e8f0:	de b7       	in	r29, 0x3e	; 62
   2e8f2:	2f 97       	sbiw	r28, 0x0f	; 15
   2e8f4:	0f b6       	in	r0, 0x3f	; 63
   2e8f6:	f8 94       	cli
   2e8f8:	de bf       	out	0x3e, r29	; 62
   2e8fa:	0f be       	out	0x3f, r0	; 63
   2e8fc:	cd bf       	out	0x3d, r28	; 61
   2e8fe:	e0 eb       	ldi	r30, 0xB0	; 176
   2e900:	f2 e1       	ldi	r31, 0x12	; 18
   2e902:	10 a2       	std	Z+32, r1	; 0x20
   2e904:	11 a2       	std	Z+33, r1	; 0x21
   2e906:	12 a2       	std	Z+34, r1	; 0x22
   2e908:	13 a2       	std	Z+35, r1	; 0x23
   2e90a:	14 a2       	std	Z+36, r1	; 0x24
   2e90c:	15 a2       	std	Z+37, r1	; 0x25
   2e90e:	16 a2       	std	Z+38, r1	; 0x26
   2e910:	17 a2       	std	Z+39, r1	; 0x27
   2e912:	10 a6       	std	Z+40, r1	; 0x28
   2e914:	11 a6       	std	Z+41, r1	; 0x29
   2e916:	10 92 49 13 	sts	0x1349, r1	; 0x801349 <SpoolJoin::spooljoin>
   2e91a:	0b e4       	ldi	r16, 0x4B	; 75
   2e91c:	13 e1       	ldi	r17, 0x13	; 19
   2e91e:	ee 24       	eor	r14, r14
   2e920:	e3 94       	inc	r14
   2e922:	f1 2c       	mov	r15, r1
   2e924:	d8 01       	movw	r26, r16
   2e926:	11 96       	adiw	r26, 0x01	; 1
   2e928:	fc 92       	st	X, r15
   2e92a:	ee 92       	st	-X, r14
   2e92c:	12 96       	adiw	r26, 0x02	; 2
   2e92e:	1c 92       	st	X, r1
   2e930:	12 97       	sbiw	r26, 0x02	; 2
   2e932:	82 e8       	ldi	r24, 0x82	; 130
   2e934:	13 96       	adiw	r26, 0x03	; 3
   2e936:	8c 93       	st	X, r24
   2e938:	40 e0       	ldi	r20, 0x00	; 0
   2e93a:	60 e0       	ldi	r22, 0x00	; 0
   2e93c:	80 e5       	ldi	r24, 0x50	; 80
   2e93e:	93 e1       	ldi	r25, 0x13	; 19
   2e940:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2e944:	40 e0       	ldi	r20, 0x00	; 0
   2e946:	60 e0       	ldi	r22, 0x00	; 0
   2e948:	85 e5       	ldi	r24, 0x55	; 85
   2e94a:	93 e1       	ldi	r25, 0x13	; 19
   2e94c:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2e950:	f8 01       	movw	r30, r16
   2e952:	17 86       	std	Z+15, r1	; 0x0f
   2e954:	10 8a       	std	Z+16, r1	; 0x10
   2e956:	11 8a       	std	Z+17, r1	; 0x11
   2e958:	12 8a       	std	Z+18, r1	; 0x12
   2e95a:	13 8a       	std	Z+19, r1	; 0x13
   2e95c:	8a e0       	ldi	r24, 0x0A	; 10
   2e95e:	84 8b       	std	Z+20, r24	; 0x14
   2e960:	40 e0       	ldi	r20, 0x00	; 0
   2e962:	60 e0       	ldi	r22, 0x00	; 0
   2e964:	ce 01       	movw	r24, r28
   2e966:	01 96       	adiw	r24, 0x01	; 1
   2e968:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2e96c:	85 e0       	ldi	r24, 0x05	; 5
   2e96e:	fe 01       	movw	r30, r28
   2e970:	31 96       	adiw	r30, 0x01	; 1
   2e972:	de 01       	movw	r26, r28
   2e974:	16 96       	adiw	r26, 0x06	; 6
   2e976:	01 90       	ld	r0, Z+
   2e978:	0d 92       	st	X+, r0
   2e97a:	8a 95       	dec	r24
   2e97c:	e1 f7       	brne	.-8      	; 0x2e976 <global constructors keyed to 65535_0_adc.cpp.obj.14581+0x94>
   2e97e:	85 e0       	ldi	r24, 0x05	; 5
   2e980:	fe 01       	movw	r30, r28
   2e982:	36 96       	adiw	r30, 0x06	; 6
   2e984:	a0 e6       	ldi	r26, 0x60	; 96
   2e986:	b3 e1       	ldi	r27, 0x13	; 19
   2e988:	01 90       	ld	r0, Z+
   2e98a:	0d 92       	st	X+, r0
   2e98c:	8a 95       	dec	r24
   2e98e:	e1 f7       	brne	.-8      	; 0x2e988 <global constructors keyed to 65535_0_adc.cpp.obj.14581+0xa6>
   2e990:	d8 01       	movw	r26, r16
   2e992:	5a 96       	adiw	r26, 0x1a	; 26
   2e994:	1c 92       	st	X, r1
   2e996:	5a 97       	sbiw	r26, 0x1a	; 26
   2e998:	5c 96       	adiw	r26, 0x1c	; 28
   2e99a:	1c 92       	st	X, r1
   2e99c:	1e 92       	st	-X, r1
   2e99e:	5b 97       	sbiw	r26, 0x1b	; 27
   2e9a0:	80 e6       	ldi	r24, 0x60	; 96
   2e9a2:	93 e1       	ldi	r25, 0x13	; 19
   2e9a4:	0f 94 bb c5 	call	0x38b76	; 0x38b76 <modules::protocol::ResponseMsg::ComputeCRC8() const>
   2e9a8:	f8 01       	movw	r30, r16
   2e9aa:	81 8f       	std	Z+25, r24	; 0x19
   2e9ac:	15 8e       	std	Z+29, r1	; 0x1d
   2e9ae:	16 8e       	std	Z+30, r1	; 0x1e
   2e9b0:	40 e0       	ldi	r20, 0x00	; 0
   2e9b2:	60 e0       	ldi	r22, 0x00	; 0
   2e9b4:	8a e6       	ldi	r24, 0x6A	; 106
   2e9b6:	93 e1       	ldi	r25, 0x13	; 19
   2e9b8:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2e9bc:	d8 01       	movw	r26, r16
   2e9be:	94 96       	adiw	r26, 0x24	; 36
   2e9c0:	1c 92       	st	X, r1
   2e9c2:	40 e0       	ldi	r20, 0x00	; 0
   2e9c4:	60 e0       	ldi	r22, 0x00	; 0
   2e9c6:	ce 01       	movw	r24, r28
   2e9c8:	0b 96       	adiw	r24, 0x0b	; 11
   2e9ca:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   2e9ce:	85 e0       	ldi	r24, 0x05	; 5
   2e9d0:	fe 01       	movw	r30, r28
   2e9d2:	3b 96       	adiw	r30, 0x0b	; 11
   2e9d4:	de 01       	movw	r26, r28
   2e9d6:	11 96       	adiw	r26, 0x01	; 1
   2e9d8:	01 90       	ld	r0, Z+
   2e9da:	0d 92       	st	X+, r0
   2e9dc:	8a 95       	dec	r24
   2e9de:	e1 f7       	brne	.-8      	; 0x2e9d8 <global constructors keyed to 65535_0_adc.cpp.obj.14581+0xf6>
   2e9e0:	85 e0       	ldi	r24, 0x05	; 5
   2e9e2:	fe 01       	movw	r30, r28
   2e9e4:	31 96       	adiw	r30, 0x01	; 1
   2e9e6:	a0 e7       	ldi	r26, 0x70	; 112
   2e9e8:	b3 e1       	ldi	r27, 0x13	; 19
   2e9ea:	01 90       	ld	r0, Z+
   2e9ec:	0d 92       	st	X+, r0
   2e9ee:	8a 95       	dec	r24
   2e9f0:	e1 f7       	brne	.-8      	; 0x2e9ea <global constructors keyed to 65535_0_adc.cpp.obj.14581+0x108>
   2e9f2:	f8 01       	movw	r30, r16
   2e9f4:	12 a6       	std	Z+42, r1	; 0x2a
   2e9f6:	14 a6       	std	Z+44, r1	; 0x2c
   2e9f8:	13 a6       	std	Z+43, r1	; 0x2b
   2e9fa:	80 e7       	ldi	r24, 0x70	; 112
   2e9fc:	93 e1       	ldi	r25, 0x13	; 19
   2e9fe:	0f 94 bb c5 	call	0x38b76	; 0x38b76 <modules::protocol::ResponseMsg::ComputeCRC8() const>
   2ea02:	d8 01       	movw	r26, r16
   2ea04:	99 96       	adiw	r26, 0x29	; 41
   2ea06:	8c 93       	st	X, r24
   2ea08:	99 97       	sbiw	r26, 0x29	; 41
   2ea0a:	dd 96       	adiw	r26, 0x3d	; 61
   2ea0c:	1c 92       	st	X, r1
   2ea0e:	dd 97       	sbiw	r26, 0x3d	; 61
   2ea10:	8a e4       	ldi	r24, 0x4A	; 74
   2ea12:	93 e1       	ldi	r25, 0x13	; 19
   2ea14:	df 96       	adiw	r26, 0x3f	; 63
   2ea16:	9c 93       	st	X, r25
   2ea18:	8e 93       	st	-X, r24
   2ea1a:	de 97       	sbiw	r26, 0x3e	; 62
   2ea1c:	f0 92 8c 13 	sts	0x138C, r15	; 0x80138c <MMU2::mmu2+0x41>
   2ea20:	e0 92 8b 13 	sts	0x138B, r14	; 0x80138b <MMU2::mmu2+0x40>
   2ea24:	10 92 8d 13 	sts	0x138D, r1	; 0x80138d <MMU2::mmu2+0x42>
   2ea28:	1f ef       	ldi	r17, 0xFF	; 255
   2ea2a:	10 93 8e 13 	sts	0x138E, r17	; 0x80138e <MMU2::mmu2+0x43>
   2ea2e:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   2ea32:	80 93 8f 13 	sts	0x138F, r24	; 0x80138f <MMU2::mmu2+0x44>
   2ea36:	10 92 90 13 	sts	0x1390, r1	; 0x801390 <MMU2::mmu2+0x45>
   2ea3a:	10 92 91 13 	sts	0x1391, r1	; 0x801391 <MMU2::mmu2+0x46>
   2ea3e:	10 92 92 13 	sts	0x1392, r1	; 0x801392 <MMU2::mmu2+0x47>
   2ea42:	10 92 94 13 	sts	0x1394, r1	; 0x801394 <MMU2::mmu2+0x49>
   2ea46:	10 92 93 13 	sts	0x1393, r1	; 0x801393 <MMU2::mmu2+0x48>
   2ea4a:	10 92 96 13 	sts	0x1396, r1	; 0x801396 <MMU2::mmu2+0x4b>
   2ea4e:	10 92 95 13 	sts	0x1395, r1	; 0x801395 <MMU2::mmu2+0x4a>
   2ea52:	10 92 99 13 	sts	0x1399, r1	; 0x801399 <MMU2::mmu2+0x4e>
   2ea56:	10 92 9a 13 	sts	0x139A, r1	; 0x80139a <MMU2::mmu2+0x4f>
   2ea5a:	10 92 9b 13 	sts	0x139B, r1	; 0x80139b <MMU2::mmu2+0x50>
   2ea5e:	10 92 9c 13 	sts	0x139C, r1	; 0x80139c <MMU2::mmu2+0x51>
   2ea62:	83 e0       	ldi	r24, 0x03	; 3
   2ea64:	80 93 9f 13 	sts	0x139F, r24	; 0x80139f <MMU2::mmu2+0x54>
   2ea68:	10 92 a0 13 	sts	0x13A0, r1	; 0x8013a0 <MMU2::mmu2+0x55>
   2ea6c:	85 e1       	ldi	r24, 0x15	; 21
   2ea6e:	80 93 97 13 	sts	0x1397, r24	; 0x801397 <MMU2::mmu2+0x4c>
   2ea72:	84 e1       	ldi	r24, 0x14	; 20
   2ea74:	80 93 98 13 	sts	0x1398, r24	; 0x801398 <MMU2::mmu2+0x4d>
   2ea78:	83 e6       	ldi	r24, 0x63	; 99
   2ea7a:	80 93 a1 13 	sts	0x13A1, r24	; 0x8013a1 <MMU2::mmu2+0x56>
   2ea7e:	80 93 a2 13 	sts	0x13A2, r24	; 0x8013a2 <MMU2::mmu2+0x57>
   2ea82:	10 92 a3 13 	sts	0x13A3, r1	; 0x8013a3 <MMU2::mmu2+0x58>
   2ea86:	10 92 a4 13 	sts	0x13A4, r1	; 0x8013a4 <MMU2::mmu2+0x59>
   2ea8a:	10 92 a5 13 	sts	0x13A5, r1	; 0x8013a5 <MMU2::mmu2+0x5a>
   2ea8e:	10 92 a6 13 	sts	0x13A6, r1	; 0x8013a6 <MMU2::mmu2+0x5b>
   2ea92:	10 92 a7 13 	sts	0x13A7, r1	; 0x8013a7 <MMU2::mmu2+0x5c>
   2ea96:	10 92 a8 13 	sts	0x13A8, r1	; 0x8013a8 <MMU2::mmu2+0x5d>
   2ea9a:	10 92 a9 13 	sts	0x13A9, r1	; 0x8013a9 <MMU2::mmu2+0x5e>
   2ea9e:	10 92 aa 13 	sts	0x13AA, r1	; 0x8013aa <MMU2::mmu2+0x5f>
   2eaa2:	10 92 ab 13 	sts	0x13AB, r1	; 0x8013ab <MMU2::mmu2+0x60>
   2eaa6:	10 92 ac 13 	sts	0x13AC, r1	; 0x8013ac <MMU2::mmu2+0x61>
   2eaaa:	10 92 ad 13 	sts	0x13AD, r1	; 0x8013ad <MMU2::mmu2+0x62>
   2eaae:	10 92 ae 13 	sts	0x13AE, r1	; 0x8013ae <MMU2::mmu2+0x63>
   2eab2:	10 92 b0 13 	sts	0x13B0, r1	; 0x8013b0 <MMU2::mmu2+0x65>
   2eab6:	10 92 af 13 	sts	0x13AF, r1	; 0x8013af <MMU2::mmu2+0x64>
   2eaba:	10 92 b1 13 	sts	0x13B1, r1	; 0x8013b1 <MMU2::mmu2+0x66>
   2eabe:	8e e2       	ldi	r24, 0x2E	; 46
   2eac0:	90 e8       	ldi	r25, 0x80	; 128
   2eac2:	90 93 b3 13 	sts	0x13B3, r25	; 0x8013b3 <MMU2::mmu2+0x68>
   2eac6:	80 93 b2 13 	sts	0x13B2, r24	; 0x8013b2 <MMU2::mmu2+0x67>
   2eaca:	10 93 b4 13 	sts	0x13B4, r17	; 0x8013b4 <MMU2::mmu2+0x69>
   2eace:	10 93 b5 13 	sts	0x13B5, r17	; 0x8013b5 <MMU2::mmu2+0x6a>
   2ead2:	10 92 b7 13 	sts	0x13B7, r1	; 0x8013b7 <MMU2::mmu2+0x6c>
   2ead6:	10 92 b6 13 	sts	0x13B6, r1	; 0x8013b6 <MMU2::mmu2+0x6b>
   2eada:	10 93 b8 13 	sts	0x13B8, r17	; 0x8013b8 <MMU2::mmu2+0x6d>
   2eade:	82 e0       	ldi	r24, 0x02	; 2
   2eae0:	80 93 b9 13 	sts	0x13B9, r24	; 0x8013b9 <MMU2::mmu2+0x6e>
   2eae4:	10 92 ba 13 	sts	0x13BA, r1	; 0x8013ba <MMU2::mmu2+0x6f>
   2eae8:	10 92 bb 13 	sts	0x13BB, r1	; 0x8013bb <MMU2::mmu2+0x70>
   2eaec:	10 92 bc 13 	sts	0x13BC, r1	; 0x8013bc <MMU2::mmu2+0x71>
   2eaf0:	10 92 bd 13 	sts	0x13BD, r1	; 0x8013bd <MMU2::mmu2+0x72>
   2eaf4:	10 92 bf 13 	sts	0x13BF, r1	; 0x8013bf <MMU2::mmu2+0x74>
   2eaf8:	10 92 be 13 	sts	0x13BE, r1	; 0x8013be <MMU2::mmu2+0x73>
   2eafc:	10 92 c1 13 	sts	0x13C1, r1	; 0x8013c1 <MMU2::mmu2+0x76>
   2eb00:	10 92 c0 13 	sts	0x13C0, r1	; 0x8013c0 <MMU2::mmu2+0x75>
   2eb04:	0f 94 8c 8c 	call	0x31918	; 0x31918 <mesh_bed_leveling::reset() [clone .constprop.100]>
   2eb08:	ee e8       	ldi	r30, 0x8E	; 142
   2eb0a:	f4 e1       	ldi	r31, 0x14	; 20
   2eb0c:	10 92 16 15 	sts	0x1516, r1	; 0x801516 <card+0x88>
   2eb10:	10 92 19 15 	sts	0x1519, r1	; 0x801519 <card+0x8b>
   2eb14:	10 92 3b 15 	sts	0x153B, r1	; 0x80153b <card+0xad>
   2eb18:	10 92 3e 15 	sts	0x153E, r1	; 0x80153e <card+0xb0>
   2eb1c:	89 e1       	ldi	r24, 0x19	; 25
   2eb1e:	80 93 fd 16 	sts	0x16FD, r24	; 0x8016fd <card+0x26f>
   2eb22:	10 92 00 17 	sts	0x1700, r1	; 0x801700 <card+0x272>
   2eb26:	10 92 01 17 	sts	0x1701, r1	; 0x801701 <card+0x273>
   2eb2a:	10 92 19 17 	sts	0x1719, r1	; 0x801719 <card+0x28b>
   2eb2e:	10 92 20 17 	sts	0x1720, r1	; 0x801720 <card+0x292>
   2eb32:	10 92 23 17 	sts	0x1723, r1	; 0x801723 <card+0x295>
   2eb36:	10 92 a1 17 	sts	0x17A1, r1	; 0x8017a1 <card+0x313>
   2eb3a:	10 92 a3 17 	sts	0x17A3, r1	; 0x8017a3 <card+0x315>
   2eb3e:	10 92 a2 17 	sts	0x17A2, r1	; 0x8017a2 <card+0x314>
   2eb42:	10 92 32 16 	sts	0x1632, r1	; 0x801632 <card+0x1a4>
   2eb46:	10 92 31 16 	sts	0x1631, r1	; 0x801631 <card+0x1a3>
   2eb4a:	10 92 9d 17 	sts	0x179D, r1	; 0x80179d <card+0x30f>
   2eb4e:	10 92 9e 17 	sts	0x179E, r1	; 0x80179e <card+0x310>
   2eb52:	10 92 9f 17 	sts	0x179F, r1	; 0x80179f <card+0x311>
   2eb56:	10 92 a0 17 	sts	0x17A0, r1	; 0x8017a0 <card+0x312>
   2eb5a:	10 92 a4 17 	sts	0x17A4, r1	; 0x8017a4 <card+0x316>
   2eb5e:	10 92 a5 17 	sts	0x17A5, r1	; 0x8017a5 <card+0x317>
   2eb62:	10 92 a6 17 	sts	0x17A6, r1	; 0x8017a6 <card+0x318>
   2eb66:	10 92 a7 17 	sts	0x17A7, r1	; 0x8017a7 <card+0x319>
   2eb6a:	12 82       	std	Z+2, r1	; 0x02
   2eb6c:	13 82       	std	Z+3, r1	; 0x03
   2eb6e:	10 82       	st	Z, r1
   2eb70:	11 82       	std	Z+1, r1	; 0x01
   2eb72:	10 92 30 16 	sts	0x1630, r1	; 0x801630 <card+0x1a2>
   2eb76:	10 92 43 17 	sts	0x1743, r1	; 0x801743 <card+0x2b5>
   2eb7a:	ee e5       	ldi	r30, 0x5E	; 94
   2eb7c:	f5 e1       	ldi	r31, 0x15	; 21
   2eb7e:	82 ed       	ldi	r24, 0xD2	; 210
   2eb80:	df 01       	movw	r26, r30
   2eb82:	1d 92       	st	X+, r1
   2eb84:	8a 95       	dec	r24
   2eb86:	e9 f7       	brne	.-6      	; 0x2eb82 <global constructors keyed to 65535_0_adc.cpp.obj.14581+0x2a0>
   2eb88:	10 92 df 14 	sts	0x14DF, r1	; 0x8014df <card+0x51>
   2eb8c:	10 92 de 14 	sts	0x14DE, r1	; 0x8014de <card+0x50>
   2eb90:	10 92 dd 14 	sts	0x14DD, r1	; 0x8014dd <card+0x4f>
   2eb94:	81 ea       	ldi	r24, 0xA1	; 161
   2eb96:	97 e1       	ldi	r25, 0x17	; 23
   2eb98:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
   2eb9c:	e7 e8       	ldi	r30, 0x87	; 135
   2eb9e:	f4 e1       	ldi	r31, 0x14	; 20
   2eba0:	11 82       	std	Z+1, r1	; 0x01
   2eba2:	12 82       	std	Z+2, r1	; 0x02
   2eba4:	13 82       	std	Z+3, r1	; 0x03
   2eba6:	14 82       	std	Z+4, r1	; 0x04
   2eba8:	15 82       	std	Z+5, r1	; 0x05
   2ebaa:	16 82       	std	Z+6, r1	; 0x06
   2ebac:	10 83       	st	Z, r17
   2ebae:	ea ea       	ldi	r30, 0xAA	; 170
   2ebb0:	f7 e1       	ldi	r31, 0x17	; 23
   2ebb2:	15 82       	std	Z+5, r1	; 0x05
   2ebb4:	17 82       	std	Z+7, r1	; 0x07
   2ebb6:	16 82       	std	Z+6, r1	; 0x06
   2ebb8:	11 86       	std	Z+9, r1	; 0x09
   2ebba:	13 86       	std	Z+11, r1	; 0x0b
   2ebbc:	12 86       	std	Z+10, r1	; 0x0a
   2ebbe:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2ebc2:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
   2ebc6:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
   2ebca:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
   2ebce:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
   2ebd2:	2f 96       	adiw	r28, 0x0f	; 15
   2ebd4:	0f b6       	in	r0, 0x3f	; 63
   2ebd6:	f8 94       	cli
   2ebd8:	de bf       	out	0x3e, r29	; 62
   2ebda:	0f be       	out	0x3f, r0	; 63
   2ebdc:	cd bf       	out	0x3d, r28	; 61
   2ebde:	df 91       	pop	r29
   2ebe0:	cf 91       	pop	r28
   2ebe2:	1f 91       	pop	r17
   2ebe4:	0f 91       	pop	r16
   2ebe6:	ff 90       	pop	r15
   2ebe8:	ef 90       	pop	r14
   2ebea:	08 95       	ret

0002ebec <MarlinSerial::println(double, int) [clone .constprop.367]>:
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   2ebec:	42 e0       	ldi	r20, 0x02	; 2
   2ebee:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
}

void MarlinSerial::println(double n, int digits)
{
  print(n, digits);
  println();
   2ebf2:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0002ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>:
void MMU2::get_statistics() {
    logic.Statistics();
}

uint8_t __attribute__((noinline)) MMU2::get_current_tool() const {
    return extruder == MMU2_NO_TOOL ? (uint8_t)FILAMENT_UNKNOWN : extruder;
   2ebf6:	80 91 a1 13 	lds	r24, 0x13A1	; 0x8013a1 <MMU2::mmu2+0x56>
   2ebfa:	83 36       	cpi	r24, 0x63	; 99
   2ebfc:	09 f4       	brne	.+2      	; 0x2ec00 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]+0xa>
   2ebfe:	8f ef       	ldi	r24, 0xFF	; 255
}
   2ec00:	08 95       	ret

0002ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>:
    return 0;
  }
}
//------------------------------------------------------------------------------
void Sd2Card::chipSelectHigh() {
  WRITE(SDSS, 1);
   2ec02:	9f b7       	in	r25, 0x3f	; 63
   2ec04:	f8 94       	cli
   2ec06:	e5 e0       	ldi	r30, 0x05	; 5
   2ec08:	f1 e0       	ldi	r31, 0x01	; 1
   2ec0a:	80 81       	ld	r24, Z
   2ec0c:	80 64       	ori	r24, 0x40	; 64
   2ec0e:	80 83       	st	Z, r24
   2ec10:	9f bf       	out	0x3f, r25	; 63
}
   2ec12:	08 95       	ret

0002ec14 <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]>:
  spiRate_ = sckRateID;
  return true;
}
//------------------------------------------------------------------------------
// wait for card to go not busy
bool Sd2Card::waitNotBusy(uint16_t timeoutMillis) {
   2ec14:	0f 93       	push	r16
   2ec16:	1f 93       	push	r17
   2ec18:	cf 93       	push	r28
   2ec1a:	df 93       	push	r29
   2ec1c:	ec 01       	movw	r28, r24
  uint16_t t0 = _millis();
   2ec1e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2ec22:	8b 01       	movw	r16, r22
  while (spiRec() != 0XFF) {
   2ec24:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   2ec28:	8f 3f       	cpi	r24, 0xFF	; 255
   2ec2a:	69 f0       	breq	.+26     	; 0x2ec46 <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]+0x32>
    if (((uint16_t)_millis() - t0) >= timeoutMillis) goto fail;
   2ec2c:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   2ec30:	60 1b       	sub	r22, r16
   2ec32:	71 0b       	sbc	r23, r17
   2ec34:	6c 17       	cp	r22, r28
   2ec36:	7d 07       	cpc	r23, r29
   2ec38:	a8 f3       	brcs	.-22     	; 0x2ec24 <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]+0x10>
  }
  return true;

 fail:
  return false;
   2ec3a:	80 e0       	ldi	r24, 0x00	; 0
}
   2ec3c:	df 91       	pop	r29
   2ec3e:	cf 91       	pop	r28
   2ec40:	1f 91       	pop	r17
   2ec42:	0f 91       	pop	r16
   2ec44:	08 95       	ret
bool Sd2Card::waitNotBusy(uint16_t timeoutMillis) {
  uint16_t t0 = _millis();
  while (spiRec() != 0XFF) {
    if (((uint16_t)_millis() - t0) >= timeoutMillis) goto fail;
  }
  return true;
   2ec46:	81 e0       	ldi	r24, 0x01	; 1
   2ec48:	f9 cf       	rjmp	.-14     	; 0x2ec3c <Sd2Card::waitNotBusy(unsigned int) [clone .constprop.358]+0x28>

0002ec4a <MMU2::MMU2::Status() [clone .constprop.342]>:
    , tmcFailures(0) {
}

void MMU2::Status() {
    // Useful information to see during bootup and change state
    SERIAL_ECHOPGM("MMU is ");
   2ec4a:	8e ed       	ldi	r24, 0xDE	; 222
   2ec4c:	9a ea       	ldi	r25, 0xAA	; 170
   2ec4e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    uint8_t status = eeprom_init_default_byte((uint8_t*)EEPROM_MMU_ENABLED, 0);
   2ec52:	60 e0       	ldi	r22, 0x00	; 0
   2ec54:	8c ea       	ldi	r24, 0xAC	; 172
   2ec56:	9c e0       	ldi	r25, 0x0C	; 12
   2ec58:	0e 94 90 75 	call	0xeb20	; 0xeb20 <eeprom_init_default_byte(unsigned char*, unsigned char)>
    if (status == 1) {
   2ec5c:	81 30       	cpi	r24, 0x01	; 1
   2ec5e:	21 f4       	brne	.+8      	; 0x2ec68 <MMU2::MMU2::Status() [clone .constprop.342]+0x1e>
        SERIAL_ECHOLNRPGM(_O(MSG_ON));
   2ec60:	89 e1       	ldi	r24, 0x19	; 25
   2ec62:	9c e5       	ldi	r25, 0x5C	; 92
    } else {
        SERIAL_ECHOLNRPGM(_O(MSG_OFF));
   2ec64:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
   2ec68:	83 e1       	ldi	r24, 0x13	; 19
   2ec6a:	9c e5       	ldi	r25, 0x5C	; 92
   2ec6c:	fb cf       	rjmp	.-10     	; 0x2ec64 <MMU2::MMU2::Status() [clone .constprop.342]+0x1a>

0002ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>:
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   2ec6e:	bc 01       	movw	r22, r24
   2ec70:	99 0f       	add	r25, r25
   2ec72:	88 0b       	sbc	r24, r24
   2ec74:	99 0b       	sbc	r25, r25
   2ec76:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
}

void MarlinSerial::println(int n, int base)
{
  print(n, base);
  println();
   2ec7a:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0002ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>:
bool cmd_buffer_empty()
{
	return (buflen == 0);
}

void enquecommand_front(const char *cmd, bool from_progmem)
   2ec7e:	0f 93       	push	r16
   2ec80:	1f 93       	push	r17
   2ec82:	cf 93       	push	r28
   2ec84:	df 93       	push	r29
   2ec86:	ec 01       	movw	r28, r24
   2ec88:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
   2ec8c:	8c 01       	movw	r16, r24
// If yes, adjust bufindr to the new position, where the new command could be enqued.
// len_asked does not contain the zero terminator size.
static bool cmdqueue_could_enqueue_front(size_t len_asked)
{
    // MAX_CMD_SIZE has to accommodate the zero terminator.
    if (len_asked >= MAX_CMD_SIZE)
   2ec8e:	80 36       	cpi	r24, 0x60	; 96
   2ec90:	91 05       	cpc	r25, r1
   2ec92:	08 f0       	brcs	.+2      	; 0x2ec96 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x18>
   2ec94:	85 c0       	rjmp	.+266    	; 0x2eda0 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x122>
        return false;
    // Remove the currently processed command from the queue.
    if (! cmdbuffer_front_already_processed) {
   2ec96:	80 91 a2 10 	lds	r24, 0x10A2	; 0x8010a2 <cmdbuffer_front_already_processed>
   2ec9a:	81 11       	cpse	r24, r1
   2ec9c:	05 c0       	rjmp	.+10     	; 0x2eca8 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x2a>
        cmdqueue_pop_front();
   2ec9e:	0e 94 43 76 	call	0xec86	; 0xec86 <cmdqueue_pop_front()>
        cmdbuffer_front_already_processed = true;
   2eca2:	81 e0       	ldi	r24, 0x01	; 1
   2eca4:	80 93 a2 10 	sts	0x10A2, r24	; 0x8010a2 <cmdbuffer_front_already_processed>
    }
    if (bufindr == bufindw && buflen > 0)
   2eca8:	40 91 92 12 	lds	r20, 0x1292	; 0x801292 <bufindr>
   2ecac:	50 91 93 12 	lds	r21, 0x1293	; 0x801293 <bufindr+0x1>
   2ecb0:	80 91 a0 10 	lds	r24, 0x10A0	; 0x8010a0 <_ZL7bufindw.lto_priv.552>
   2ecb4:	90 91 a1 10 	lds	r25, 0x10A1	; 0x8010a1 <_ZL7bufindw.lto_priv.552+0x1>
   2ecb8:	48 17       	cp	r20, r24
   2ecba:	59 07       	cpc	r21, r25
   2ecbc:	41 f4       	brne	.+16     	; 0x2ecce <enquecommand_front(char const*, bool) [clone .constprop.323]+0x50>
   2ecbe:	20 91 a3 10 	lds	r18, 0x10A3	; 0x8010a3 <buflen>
   2ecc2:	30 91 a4 10 	lds	r19, 0x10A4	; 0x8010a4 <buflen+0x1>
   2ecc6:	12 16       	cp	r1, r18
   2ecc8:	13 06       	cpc	r1, r19
   2ecca:	0c f4       	brge	.+2      	; 0x2ecce <enquecommand_front(char const*, bool) [clone .constprop.323]+0x50>
   2eccc:	69 c0       	rjmp	.+210    	; 0x2eda0 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x122>
        // Full buffer.
        return false;
    // Adjust the end of the write buffer based on whether a partial line is in the receive buffer.
    int endw = (serial_count > 0) ? (bufindw + MAX_CMD_SIZE + 1) : bufindw;
   2ecce:	20 91 9e 10 	lds	r18, 0x109E	; 0x80109e <serial_count>
   2ecd2:	30 91 9f 10 	lds	r19, 0x109F	; 0x80109f <serial_count+0x1>
   2ecd6:	12 16       	cp	r1, r18
   2ecd8:	13 06       	cpc	r1, r19
   2ecda:	0c f0       	brlt	.+2      	; 0x2ecde <enquecommand_front(char const*, bool) [clone .constprop.323]+0x60>
   2ecdc:	41 c0       	rjmp	.+130    	; 0x2ed60 <enquecommand_front(char const*, bool) [clone .constprop.323]+0xe2>
   2ecde:	9c 01       	movw	r18, r24
   2ece0:	2f 59       	subi	r18, 0x9F	; 159
   2ece2:	3f 4f       	sbci	r19, 0xFF	; 255
    if (bufindw < bufindr) {
   2ece4:	84 17       	cp	r24, r20
   2ece6:	95 07       	cpc	r25, r21
   2ece8:	e8 f5       	brcc	.+122    	; 0x2ed64 <enquecommand_front(char const*, bool) [clone .constprop.323]+0xe6>
        int bufindr_new = bufindr - len_asked - (1 + CMDHDRSIZE);
   2ecea:	44 50       	subi	r20, 0x04	; 4
   2ecec:	51 09       	sbc	r21, r1
   2ecee:	40 1b       	sub	r20, r16
   2ecf0:	51 0b       	sbc	r21, r17
        // Simple case. There is a contiguous space between the write buffer and the read buffer.
        if (endw <= bufindr_new) {
   2ecf2:	42 17       	cp	r20, r18
   2ecf4:	53 07       	cpc	r21, r19
   2ecf6:	0c f4       	brge	.+2      	; 0x2ecfa <enquecommand_front(char const*, bool) [clone .constprop.323]+0x7c>
   2ecf8:	53 c0       	rjmp	.+166    	; 0x2eda0 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x122>
        }
    } else {
        // Otherwise the free space is split between the start and end.
        if (len_asked + (1 + CMDHDRSIZE) <= bufindr) {
            // Could fit at the start.
            bufindr -= len_asked + (1 + CMDHDRSIZE);
   2ecfa:	50 93 93 12 	sts	0x1293, r21	; 0x801293 <bufindr+0x1>
   2ecfe:	40 93 92 12 	sts	0x1292, r20	; 0x801292 <bufindr>
void enquecommand_front(const char *cmd, bool from_progmem)
{
    size_t len = from_progmem ? strlen_P(cmd) : strlen(cmd);
    // Does cmd fit the queue? This call shall move bufindr, so the command may be copied.
    if (cmdqueue_could_enqueue_front(len)) {
        cmdbuffer[bufindr] = CMDBUFFER_CURRENT_TYPE_UI;
   2ed02:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   2ed06:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
   2ed0a:	fc 01       	movw	r30, r24
   2ed0c:	eb 55       	subi	r30, 0x5B	; 91
   2ed0e:	ff 4e       	sbci	r31, 0xEF	; 239
   2ed10:	23 e0       	ldi	r18, 0x03	; 3
   2ed12:	20 83       	st	Z, r18
        if (from_progmem)
            strcpy_P(cmdbuffer + bufindr + CMDHDRSIZE, cmd);
   2ed14:	be 01       	movw	r22, r28
   2ed16:	88 55       	subi	r24, 0x58	; 88
   2ed18:	9f 4e       	sbci	r25, 0xEF	; 239
   2ed1a:	0f 94 12 da 	call	0x3b424	; 0x3b424 <strcpy_P>
        else
            strcpy(cmdbuffer + bufindr + CMDHDRSIZE, cmd);
        ++ buflen;
   2ed1e:	80 91 a3 10 	lds	r24, 0x10A3	; 0x8010a3 <buflen>
   2ed22:	90 91 a4 10 	lds	r25, 0x10A4	; 0x8010a4 <buflen+0x1>
   2ed26:	01 96       	adiw	r24, 0x01	; 1
   2ed28:	90 93 a4 10 	sts	0x10A4, r25	; 0x8010a4 <buflen+0x1>
   2ed2c:	80 93 a3 10 	sts	0x10A3, r24	; 0x8010a3 <buflen>
        SERIAL_ECHO_START;
   2ed30:	80 ed       	ldi	r24, 0xD0	; 208
   2ed32:	9a ea       	ldi	r25, 0xAA	; 170
   2ed34:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(enqueingFront);
   2ed38:	81 eb       	ldi	r24, 0xB1	; 177
   2ed3a:	9a ea       	ldi	r25, 0xAA	; 170
   2ed3c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHO(cmdbuffer + bufindr + CMDHDRSIZE);
   2ed40:	80 91 92 12 	lds	r24, 0x1292	; 0x801292 <bufindr>
   2ed44:	90 91 93 12 	lds	r25, 0x1293	; 0x801293 <bufindr+0x1>
      }
    }*/

    static FORCE_INLINE void print(const char *str)
    {
      write(str);
   2ed48:	88 55       	subi	r24, 0x58	; 88
   2ed4a:	9f 4e       	sbci	r25, 0xEF	; 239
   2ed4c:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
        SERIAL_ECHOLNPGM("\"");
   2ed50:	8f ea       	ldi	r24, 0xAF	; 175
   2ed52:	9a ea       	ldi	r25, 0xAA	; 170
        SERIAL_ECHOLNRPGM(bufferFull);
#ifdef CMDBUFFER_DEBUG
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    }
}
   2ed54:	df 91       	pop	r29
   2ed56:	cf 91       	pop	r28
   2ed58:	1f 91       	pop	r17
   2ed5a:	0f 91       	pop	r16
        SERIAL_ECHORPGM(enqueingFront);
        if (from_progmem)
            SERIAL_PROTOCOLRPGM(cmd);
        else
            SERIAL_ECHO(cmd);
        SERIAL_ECHOLNRPGM(bufferFull);
   2ed5c:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    // Remove the currently processed command from the queue.
    if (! cmdbuffer_front_already_processed) {
        cmdqueue_pop_front();
        cmdbuffer_front_already_processed = true;
    }
    if (bufindr == bufindw && buflen > 0)
   2ed60:	9c 01       	movw	r18, r24
   2ed62:	c0 cf       	rjmp	.-128    	; 0x2ece4 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x66>
            bufindr = bufindr_new;
            return true;
        }
    } else {
        // Otherwise the free space is split between the start and end.
        if (len_asked + (1 + CMDHDRSIZE) <= bufindr) {
   2ed64:	c8 01       	movw	r24, r16
   2ed66:	04 96       	adiw	r24, 0x04	; 4
   2ed68:	48 17       	cp	r20, r24
   2ed6a:	59 07       	cpc	r21, r25
   2ed6c:	28 f0       	brcs	.+10     	; 0x2ed78 <enquecommand_front(char const*, bool) [clone .constprop.323]+0xfa>
            // Could fit at the start.
            bufindr -= len_asked + (1 + CMDHDRSIZE);
   2ed6e:	44 50       	subi	r20, 0x04	; 4
   2ed70:	51 09       	sbc	r21, r1
   2ed72:	40 1b       	sub	r20, r16
   2ed74:	51 0b       	sbc	r21, r17
   2ed76:	c1 cf       	rjmp	.-126    	; 0x2ecfa <enquecommand_front(char const*, bool) [clone .constprop.323]+0x7c>
            return true;
        }
        int bufindr_new = sizeof(cmdbuffer) - len_asked - (1 + CMDHDRSIZE);
   2ed78:	89 ee       	ldi	r24, 0xE9	; 233
   2ed7a:	91 e0       	ldi	r25, 0x01	; 1
   2ed7c:	bc 01       	movw	r22, r24
   2ed7e:	60 1b       	sub	r22, r16
   2ed80:	71 0b       	sbc	r23, r17
   2ed82:	8b 01       	movw	r16, r22
        if (endw <= bufindr_new) {
   2ed84:	62 17       	cp	r22, r18
   2ed86:	73 07       	cpc	r23, r19
   2ed88:	5c f0       	brlt	.+22     	; 0x2eda0 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x122>
            memset(cmdbuffer, 0, bufindr);
   2ed8a:	70 e0       	ldi	r23, 0x00	; 0
   2ed8c:	60 e0       	ldi	r22, 0x00	; 0
   2ed8e:	85 ea       	ldi	r24, 0xA5	; 165
   2ed90:	90 e1       	ldi	r25, 0x10	; 16
   2ed92:	0f 94 8d e2 	call	0x3c51a	; 0x3c51a <memset>
            bufindr = bufindr_new;
   2ed96:	10 93 93 12 	sts	0x1293, r17	; 0x801293 <bufindr+0x1>
   2ed9a:	00 93 92 12 	sts	0x1292, r16	; 0x801292 <bufindr>
   2ed9e:	b1 cf       	rjmp	.-158    	; 0x2ed02 <enquecommand_front(char const*, bool) [clone .constprop.323]+0x84>
        SERIAL_ECHOLNPGM("\"");
#ifdef CMDBUFFER_DEBUG
        cmdqueue_dump_to_serial();
#endif /* CMDBUFFER_DEBUG */
    } else {
        SERIAL_ERROR_START;
   2eda0:	88 ea       	ldi	r24, 0xA8	; 168
   2eda2:	9a ea       	ldi	r25, 0xAA	; 170
   2eda4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(enqueingFront);
   2eda8:	81 eb       	ldi	r24, 0xB1	; 177
   2edaa:	9a ea       	ldi	r25, 0xAA	; 170
   2edac:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        if (from_progmem)
            SERIAL_PROTOCOLRPGM(cmd);
   2edb0:	ce 01       	movw	r24, r28
   2edb2:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        else
            SERIAL_ECHO(cmd);
        SERIAL_ECHOLNRPGM(bufferFull);
   2edb6:	81 e9       	ldi	r24, 0x91	; 145
   2edb8:	9a ea       	ldi	r25, 0xAA	; 170
   2edba:	cc cf       	rjmp	.-104    	; 0x2ed54 <enquecommand_front(char const*, bool) [clone .constprop.323]+0xd6>

0002edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>:
    } else {
        return false;
    }
}

bool SdFile::seekSetFilteredGcode(uint32_t pos){
   2edbc:	ab 01       	movw	r20, r22
   2edbe:	bc 01       	movw	r22, r24
    if(! seekSet(pos) )return false;
   2edc0:	80 e2       	ldi	r24, 0x20	; 32
   2edc2:	97 e1       	ldi	r25, 0x17	; 23
   2edc4:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
   2edc8:	81 11       	cpse	r24, r1
   2edca:	02 c0       	rjmp	.+4      	; 0x2edd0 <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]+0x14>
   2edcc:	80 e0       	ldi	r24, 0x00	; 0
   2edce:	08 95       	ret
}

bool SdFile::openFilteredGcode(SdBaseFile* dirFile, const char* path){
    if( open(dirFile, path, O_READ) ){
        // compute the block to start with
        if( ! gfComputeNextFileBlock() )
   2edd0:	80 e2       	ldi	r24, 0x20	; 32
   2edd2:	97 e1       	ldi	r25, 0x17	; 23
   2edd4:	0f 94 5b 57 	call	0x2aeb6	; 0x2aeb6 <SdFile::gfComputeNextFileBlock()>
   2edd8:	88 23       	and	r24, r24
   2edda:	c1 f3       	breq	.-16     	; 0x2edcc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]+0x10>
    return vol_->cache()->data; // this is constant for the whole time, so it should be fast and sleek
}

void SdFile::gfReset(){
    // reset cache read ptr to its begin
    gfReadPtr = gfBlockBuffBegin() + gfOffset;
   2eddc:	20 91 41 17 	lds	r18, 0x1741	; 0x801741 <card+0x2b3>
   2ede0:	30 91 42 17 	lds	r19, 0x1742	; 0x801742 <card+0x2b4>
   2ede4:	23 56       	subi	r18, 0x63	; 99
   2ede6:	31 4f       	sbci	r19, 0xF1	; 241
   2ede8:	30 93 3c 17 	sts	0x173C, r19	; 0x80173c <card+0x2ae>
   2edec:	20 93 3b 17 	sts	0x173B, r18	; 0x80173b <card+0x2ad>
bool SdFile::seekSetFilteredGcode(uint32_t pos){
    if(! seekSet(pos) )return false;
    if(! gfComputeNextFileBlock() )return false;
    gfReset();
    return true;
}
   2edf0:	08 95       	ret

0002edf2 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]>:
    SERIAL_PROTOCOLLNPGM("An error while writing to the SD Card.");
  }
}


void CardReader::checkautostart(bool force)
   2edf2:	8f 92       	push	r8
   2edf4:	9f 92       	push	r9
   2edf6:	af 92       	push	r10
   2edf8:	bf 92       	push	r11
   2edfa:	cf 92       	push	r12
   2edfc:	df 92       	push	r13
   2edfe:	ef 92       	push	r14
   2ee00:	ff 92       	push	r15
   2ee02:	0f 93       	push	r16
   2ee04:	1f 93       	push	r17
   2ee06:	cf 93       	push	r28
   2ee08:	df 93       	push	r29
   2ee0a:	cd b7       	in	r28, 0x3d	; 61
   2ee0c:	de b7       	in	r29, 0x3e	; 62
   2ee0e:	ee 97       	sbiw	r28, 0x3e	; 62
   2ee10:	0f b6       	in	r0, 0x3f	; 63
   2ee12:	f8 94       	cli
   2ee14:	de bf       	out	0x3e, r29	; 62
   2ee16:	0f be       	out	0x3f, r0	; 63
   2ee18:	cd bf       	out	0x3d, r28	; 61
    if(!mounted) //fail
      return;
  }

  char autoname[30];
  sprintf_P(autoname, PSTR("auto%i.g"), lastnr);
   2ee1a:	80 91 de 14 	lds	r24, 0x14DE	; 0x8014de <card+0x50>
   2ee1e:	8f 93       	push	r24
   2ee20:	80 91 dd 14 	lds	r24, 0x14DD	; 0x8014dd <card+0x4f>
   2ee24:	8f 93       	push	r24
   2ee26:	8c e4       	ldi	r24, 0x4C	; 76
   2ee28:	9a ea       	ldi	r25, 0xAA	; 170
   2ee2a:	9f 93       	push	r25
   2ee2c:	8f 93       	push	r24
   2ee2e:	8e 01       	movw	r16, r28
   2ee30:	0f 5d       	subi	r16, 0xDF	; 223
   2ee32:	1f 4f       	sbci	r17, 0xFF	; 255
   2ee34:	1f 93       	push	r17
   2ee36:	0f 93       	push	r16
   2ee38:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
   2ee3c:	0f 90       	pop	r0
   2ee3e:	0f 90       	pop	r0
   2ee40:	0f 90       	pop	r0
   2ee42:	0f 90       	pop	r0
   2ee44:	0f 90       	pop	r0
   2ee46:	0f 90       	pop	r0
  for(int8_t i=0;i<(int8_t)strlen(autoname);i++)
   2ee48:	f1 2c       	mov	r15, r1
   2ee4a:	f8 01       	movw	r30, r16
   2ee4c:	01 90       	ld	r0, Z+
   2ee4e:	00 20       	and	r0, r0
   2ee50:	e9 f7       	brne	.-6      	; 0x2ee4c <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x5a>
   2ee52:	31 97       	sbiw	r30, 0x01	; 1
   2ee54:	e0 1b       	sub	r30, r16
   2ee56:	f1 0b       	sbc	r31, r17
   2ee58:	fe 16       	cp	r15, r30
   2ee5a:	84 f4       	brge	.+32     	; 0x2ee7c <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x8a>
    autoname[i]=tolower(autoname[i]);
   2ee5c:	68 01       	movw	r12, r16
   2ee5e:	cf 0c       	add	r12, r15
   2ee60:	d1 1c       	adc	r13, r1
   2ee62:	f7 fc       	sbrc	r15, 7
   2ee64:	da 94       	dec	r13
   2ee66:	f6 01       	movw	r30, r12
   2ee68:	80 81       	ld	r24, Z
   2ee6a:	08 2e       	mov	r0, r24
   2ee6c:	00 0c       	add	r0, r0
   2ee6e:	99 0b       	sbc	r25, r25
   2ee70:	0f 94 6f e2 	call	0x3c4de	; 0x3c4de <tolower>
   2ee74:	f6 01       	movw	r30, r12
   2ee76:	80 83       	st	Z, r24
   2ee78:	f3 94       	inc	r15
   2ee7a:	e7 cf       	rjmp	.-50     	; 0x2ee4a <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x58>
  dir_t p;

  root.rewind();
   2ee7c:	86 e1       	ldi	r24, 0x16	; 22
   2ee7e:	95 e1       	ldi	r25, 0x15	; 21
   2ee80:	0e 94 b3 76 	call	0xed66	; 0xed66 <SdBaseFile::rewind()>

  bool found=false;
   2ee84:	a1 2c       	mov	r10, r1
   2ee86:	ce 01       	movw	r24, r28
   2ee88:	01 96       	adiw	r24, 0x01	; 1
   2ee8a:	7c 01       	movw	r14, r24
    //Serial.println(autoname);
    if(p.name[9]!='~') //skip safety copies
    if(strncmp((char*)p.name,autoname,5)==0)
    {
      // M23: Select SD file
      enquecommandf_P(MSG_M23, autoname);
   2ee8c:	81 e5       	ldi	r24, 0x51	; 81
   2ee8e:	c8 2e       	mov	r12, r24
   2ee90:	80 e7       	ldi	r24, 0x70	; 112
   2ee92:	d8 2e       	mov	r13, r24
 * a directory file or an I/O error occurred.
 */
int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) {
  int16_t n;
  // if not a directory file or miss-positioned return an error
  if (!isDir() || (0X1F & curPosition_)) return -1;
   2ee94:	80 91 19 15 	lds	r24, 0x1519	; 0x801519 <card+0x8b>
   2ee98:	82 30       	cpi	r24, 0x02	; 2
   2ee9a:	08 f4       	brcc	.+2      	; 0x2ee9e <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xac>
   2ee9c:	50 c0       	rjmp	.+160    	; 0x2ef3e <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x14c>
   2ee9e:	80 91 1e 15 	lds	r24, 0x151E	; 0x80151e <card+0x90>
   2eea2:	90 91 1f 15 	lds	r25, 0x151F	; 0x80151f <card+0x91>
   2eea6:	a0 91 20 15 	lds	r26, 0x1520	; 0x801520 <card+0x92>
   2eeaa:	b0 91 21 15 	lds	r27, 0x1521	; 0x801521 <card+0x93>
   2eeae:	8f 71       	andi	r24, 0x1F	; 31
   2eeb0:	99 27       	eor	r25, r25
   2eeb2:	aa 27       	eor	r26, r26
   2eeb4:	bb 27       	eor	r27, r27
   2eeb6:	89 2b       	or	r24, r25
   2eeb8:	8a 2b       	or	r24, r26
   2eeba:	8b 2b       	or	r24, r27
   2eebc:	09 f0       	breq	.+2      	; 0x2eec0 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xce>
   2eebe:	3f c0       	rjmp	.+126    	; 0x2ef3e <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x14c>
   2eec0:	50 e0       	ldi	r21, 0x00	; 0
   2eec2:	40 e0       	ldi	r20, 0x00	; 0
   2eec4:	b7 01       	movw	r22, r14
   2eec6:	86 e1       	ldi	r24, 0x16	; 22
   2eec8:	95 e1       	ldi	r25, 0x15	; 21
   2eeca:	0f 94 11 5b 	call	0x2b622	; 0x2b622 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]>
  dir_t p;

  root.rewind();

  bool found=false;
  while (root.readDir(p, NULL) > 0)
   2eece:	18 16       	cp	r1, r24
   2eed0:	b4 f5       	brge	.+108    	; 0x2ef3e <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x14c>
  {
    for(int8_t i=0;i<(int8_t)strlen((char*)p.name);i++)
   2eed2:	b1 2c       	mov	r11, r1
   2eed4:	f7 01       	movw	r30, r14
   2eed6:	01 90       	ld	r0, Z+
   2eed8:	00 20       	and	r0, r0
   2eeda:	e9 f7       	brne	.-6      	; 0x2eed6 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xe4>
   2eedc:	31 97       	sbiw	r30, 0x01	; 1
   2eede:	ee 19       	sub	r30, r14
   2eee0:	ff 09       	sbc	r31, r15
   2eee2:	be 16       	cp	r11, r30
   2eee4:	74 f4       	brge	.+28     	; 0x2ef02 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x110>
    p.name[i]=tolower(p.name[i]);
   2eee6:	47 01       	movw	r8, r14
   2eee8:	8b 0c       	add	r8, r11
   2eeea:	91 1c       	adc	r9, r1
   2eeec:	b7 fc       	sbrc	r11, 7
   2eeee:	9a 94       	dec	r9
   2eef0:	f4 01       	movw	r30, r8
   2eef2:	80 81       	ld	r24, Z
   2eef4:	90 e0       	ldi	r25, 0x00	; 0
   2eef6:	0f 94 6f e2 	call	0x3c4de	; 0x3c4de <tolower>
   2eefa:	f4 01       	movw	r30, r8
   2eefc:	80 83       	st	Z, r24
   2eefe:	b3 94       	inc	r11
   2ef00:	e9 cf       	rjmp	.-46     	; 0x2eed4 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xe2>
    //Serial.print((char*)p.name);
    //Serial.print(" ");
    //Serial.println(autoname);
    if(p.name[9]!='~') //skip safety copies
   2ef02:	8a 85       	ldd	r24, Y+10	; 0x0a
   2ef04:	8e 37       	cpi	r24, 0x7E	; 126
   2ef06:	31 f2       	breq	.-116    	; 0x2ee94 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xa2>
    if(strncmp((char*)p.name,autoname,5)==0)
   2ef08:	45 e0       	ldi	r20, 0x05	; 5
   2ef0a:	50 e0       	ldi	r21, 0x00	; 0
   2ef0c:	b8 01       	movw	r22, r16
   2ef0e:	c7 01       	movw	r24, r14
   2ef10:	0f 94 cd e2 	call	0x3c59a	; 0x3c59a <strncmp>
   2ef14:	89 2b       	or	r24, r25
   2ef16:	09 f0       	breq	.+2      	; 0x2ef1a <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x128>
   2ef18:	bd cf       	rjmp	.-134    	; 0x2ee94 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xa2>
    {
      // M23: Select SD file
      enquecommandf_P(MSG_M23, autoname);
   2ef1a:	1f 93       	push	r17
   2ef1c:	0f 93       	push	r16
   2ef1e:	df 92       	push	r13
   2ef20:	cf 92       	push	r12
   2ef22:	0e 94 45 88 	call	0x1108a	; 0x1108a <enquecommandf_P(char const*, ...)>
      // M24: Start/resume SD print
      enquecommand_P(MSG_M24);
   2ef26:	61 e0       	ldi	r22, 0x01	; 1
   2ef28:	8d e4       	ldi	r24, 0x4D	; 77
   2ef2a:	90 e7       	ldi	r25, 0x70	; 112
   2ef2c:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
   2ef30:	0f 90       	pop	r0
   2ef32:	0f 90       	pop	r0
   2ef34:	0f 90       	pop	r0
   2ef36:	0f 90       	pop	r0
      found=true;
   2ef38:	aa 24       	eor	r10, r10
   2ef3a:	a3 94       	inc	r10
   2ef3c:	ab cf       	rjmp	.-170    	; 0x2ee94 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0xa2>
    }
  }
  if(!found)
    lastnr=-1;
   2ef3e:	8f ef       	ldi	r24, 0xFF	; 255
   2ef40:	9f ef       	ldi	r25, 0xFF	; 255
      // M24: Start/resume SD print
      enquecommand_P(MSG_M24);
      found=true;
    }
  }
  if(!found)
   2ef42:	aa 20       	and	r10, r10
   2ef44:	29 f0       	breq	.+10     	; 0x2ef50 <CardReader::checkautostart(bool) [clone .part.9] [clone .constprop.266]+0x15e>
    lastnr=-1;
  else
    lastnr++;
   2ef46:	80 91 dd 14 	lds	r24, 0x14DD	; 0x8014dd <card+0x4f>
   2ef4a:	90 91 de 14 	lds	r25, 0x14DE	; 0x8014de <card+0x50>
   2ef4e:	01 96       	adiw	r24, 0x01	; 1
   2ef50:	90 93 de 14 	sts	0x14DE, r25	; 0x8014de <card+0x50>
   2ef54:	80 93 dd 14 	sts	0x14DD, r24	; 0x8014dd <card+0x4f>
}
   2ef58:	ee 96       	adiw	r28, 0x3e	; 62
   2ef5a:	0f b6       	in	r0, 0x3f	; 63
   2ef5c:	f8 94       	cli
   2ef5e:	de bf       	out	0x3e, r29	; 62
   2ef60:	0f be       	out	0x3f, r0	; 63
   2ef62:	cd bf       	out	0x3d, r28	; 61
   2ef64:	df 91       	pop	r29
   2ef66:	cf 91       	pop	r28
   2ef68:	1f 91       	pop	r17
   2ef6a:	0f 91       	pop	r16
   2ef6c:	ff 90       	pop	r15
   2ef6e:	ef 90       	pop	r14
   2ef70:	df 90       	pop	r13
   2ef72:	cf 90       	pop	r12
   2ef74:	bf 90       	pop	r11
   2ef76:	af 90       	pop	r10
   2ef78:	9f 90       	pop	r9
   2ef7a:	8f 90       	pop	r8
   2ef7c:	08 95       	ret

0002ef7e <SdBaseFile::truncate(unsigned long) [clone .constprop.263]>:
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.
 * Reasons for failure include file is read only, file is a directory,
 * \a length is greater than the current file size or an I/O error occurs.
 */
bool SdBaseFile::truncate(uint32_t length) {
   2ef7e:	8f 92       	push	r8
   2ef80:	9f 92       	push	r9
   2ef82:	af 92       	push	r10
   2ef84:	bf 92       	push	r11
   2ef86:	cf 92       	push	r12
   2ef88:	df 92       	push	r13
   2ef8a:	ef 92       	push	r14
   2ef8c:	ff 92       	push	r15
   2ef8e:	0f 93       	push	r16
   2ef90:	1f 93       	push	r17
   2ef92:	cf 93       	push	r28
   2ef94:	df 93       	push	r29
   2ef96:	00 d0       	rcall	.+0      	; 0x2ef98 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x1a>
   2ef98:	1f 92       	push	r1
   2ef9a:	cd b7       	in	r28, 0x3d	; 61
   2ef9c:	de b7       	in	r29, 0x3e	; 62
   2ef9e:	fc 01       	movw	r30, r24
  uint32_t newPos;
  // error if not a normal file or read-only
  if (!isFile() || !(flags_ & O_WRITE)) goto fail;
   2efa0:	83 81       	ldd	r24, Z+3	; 0x03
   2efa2:	81 30       	cpi	r24, 0x01	; 1
   2efa4:	11 f0       	breq	.+4      	; 0x2efaa <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x2c>

  // set file to correct position
  return seekSet(newPos);

 fail:
  return false;
   2efa6:	80 e0       	ldi	r24, 0x00	; 0
   2efa8:	60 c0       	rjmp	.+192    	; 0x2f06a <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0xec>
 * \a length is greater than the current file size or an I/O error occurs.
 */
bool SdBaseFile::truncate(uint32_t length) {
  uint32_t newPos;
  // error if not a normal file or read-only
  if (!isFile() || !(flags_ & O_WRITE)) goto fail;
   2efaa:	81 81       	ldd	r24, Z+1	; 0x01
   2efac:	81 ff       	sbrs	r24, 1
   2efae:	fb cf       	rjmp	.-10     	; 0x2efa6 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x28>

  // error if length is greater than current size
  if (length > fileSize_) goto fail;

  // fileSize and length are zero - nothing to do
  if (fileSize_ == 0) return true;
   2efb0:	81 89       	ldd	r24, Z+17	; 0x11
   2efb2:	92 89       	ldd	r25, Z+18	; 0x12
   2efb4:	a3 89       	ldd	r26, Z+19	; 0x13
   2efb6:	b4 89       	ldd	r27, Z+20	; 0x14
   2efb8:	89 2b       	or	r24, r25
   2efba:	8a 2b       	or	r24, r26
   2efbc:	8b 2b       	or	r24, r27
   2efbe:	09 f4       	brne	.+2      	; 0x2efc2 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x44>
   2efc0:	6e c0       	rjmp	.+220    	; 0x2f09e <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x120>
   2efc2:	7f 01       	movw	r14, r30

  // remember position for seek after truncation
  newPos = curPosition_ > length ? length : curPosition_;

  // position to last cluster in truncated file
  if (!seekSet(length)) goto fail;
   2efc4:	40 e0       	ldi	r20, 0x00	; 0
   2efc6:	50 e0       	ldi	r21, 0x00	; 0
   2efc8:	ba 01       	movw	r22, r20
   2efca:	cf 01       	movw	r24, r30
   2efcc:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
   2efd0:	88 23       	and	r24, r24
   2efd2:	49 f3       	breq	.-46     	; 0x2efa6 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x28>

  if (length == 0) {
    // free all clusters
    if (!vol_->freeChain(firstCluster_)) goto fail;
   2efd4:	f7 01       	movw	r30, r14
   2efd6:	c1 8c       	ldd	r12, Z+25	; 0x19
   2efd8:	d2 8c       	ldd	r13, Z+26	; 0x1a
   2efda:	85 88       	ldd	r8, Z+21	; 0x15
   2efdc:	96 88       	ldd	r9, Z+22	; 0x16
   2efde:	a7 88       	ldd	r10, Z+23	; 0x17
   2efe0:	b0 8c       	ldd	r11, Z+24	; 0x18
// free a cluster chain
bool SdVolume::freeChain(uint32_t cluster) {
  uint32_t next;

  // clear free cluster location
  allocSearchStart_ = 2;
   2efe2:	82 e0       	ldi	r24, 0x02	; 2
   2efe4:	90 e0       	ldi	r25, 0x00	; 0
   2efe6:	a0 e0       	ldi	r26, 0x00	; 0
   2efe8:	b0 e0       	ldi	r27, 0x00	; 0
   2efea:	f6 01       	movw	r30, r12
   2efec:	80 83       	st	Z, r24
   2efee:	91 83       	std	Z+1, r25	; 0x01
   2eff0:	a2 83       	std	Z+2, r26	; 0x02
   2eff2:	b3 83       	std	Z+3, r27	; 0x03

  do {
    if (!fatGet(cluster, &next)) goto fail;
   2eff4:	9e 01       	movw	r18, r28
   2eff6:	2f 5f       	subi	r18, 0xFF	; 255
   2eff8:	3f 4f       	sbci	r19, 0xFF	; 255
   2effa:	b5 01       	movw	r22, r10
   2effc:	a4 01       	movw	r20, r8
   2effe:	c6 01       	movw	r24, r12
   2f000:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   2f004:	88 23       	and	r24, r24
   2f006:	79 f2       	breq	.-98     	; 0x2efa6 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x28>

    // free cluster
    if (!fatPut(cluster, 0)) goto fail;
   2f008:	00 e0       	ldi	r16, 0x00	; 0
   2f00a:	10 e0       	ldi	r17, 0x00	; 0
   2f00c:	98 01       	movw	r18, r16
   2f00e:	b5 01       	movw	r22, r10
   2f010:	a4 01       	movw	r20, r8
   2f012:	c6 01       	movw	r24, r12
   2f014:	0f 94 8c 55 	call	0x2ab18	; 0x2ab18 <SdVolume::fatPut(unsigned long, unsigned long)>
   2f018:	88 23       	and	r24, r24
   2f01a:	29 f2       	breq	.-118    	; 0x2efa6 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x28>

    cluster = next;
   2f01c:	89 80       	ldd	r8, Y+1	; 0x01
   2f01e:	9a 80       	ldd	r9, Y+2	; 0x02
   2f020:	ab 80       	ldd	r10, Y+3	; 0x03
   2f022:	bc 80       	ldd	r11, Y+4	; 0x04
    return fatPut(cluster, 0x0FFFFFFF);
  }
  bool freeChain(uint32_t cluster);
  bool isEOC(uint32_t cluster) const {
    if (FAT12_SUPPORT && fatType_ == 12) return  cluster >= FAT12EOC_MIN;
    if (fatType_ == 16) return cluster >= FAT16EOC_MIN;
   2f024:	f6 01       	movw	r30, r12
   2f026:	87 89       	ldd	r24, Z+23	; 0x17
   2f028:	80 31       	cpi	r24, 0x10	; 16
   2f02a:	81 f5       	brne	.+96     	; 0x2f08c <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x10e>
   2f02c:	f8 ef       	ldi	r31, 0xF8	; 248
   2f02e:	8f 16       	cp	r8, r31
   2f030:	ff ef       	ldi	r31, 0xFF	; 255
   2f032:	9f 06       	cpc	r9, r31
   2f034:	a1 04       	cpc	r10, r1
   2f036:	b1 04       	cpc	r11, r1
   2f038:	e8 f2       	brcs	.-70     	; 0x2eff4 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x76>
    firstCluster_ = 0;
   2f03a:	f7 01       	movw	r30, r14
   2f03c:	15 8a       	std	Z+21, r1	; 0x15
   2f03e:	16 8a       	std	Z+22, r1	; 0x16
   2f040:	17 8a       	std	Z+23, r1	; 0x17
   2f042:	10 8e       	std	Z+24, r1	; 0x18

      // current cluster is end of chain
      if (!vol_->fatPutEOC(curCluster_)) goto fail;
    }
  }
  fileSize_ = length;
   2f044:	11 8a       	std	Z+17, r1	; 0x11
   2f046:	12 8a       	std	Z+18, r1	; 0x12
   2f048:	13 8a       	std	Z+19, r1	; 0x13
   2f04a:	14 8a       	std	Z+20, r1	; 0x14

  // need to update directory entry
  flags_ |= F_FILE_DIR_DIRTY;
   2f04c:	81 81       	ldd	r24, Z+1	; 0x01
   2f04e:	80 68       	ori	r24, 0x80	; 128
   2f050:	81 83       	std	Z+1, r24	; 0x01

  if (!sync()) goto fail;
   2f052:	c7 01       	movw	r24, r14
   2f054:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
   2f058:	88 23       	and	r24, r24
   2f05a:	09 f4       	brne	.+2      	; 0x2f05e <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0xe0>
   2f05c:	a4 cf       	rjmp	.-184    	; 0x2efa6 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x28>

  // set file to correct position
  return seekSet(newPos);
   2f05e:	40 e0       	ldi	r20, 0x00	; 0
   2f060:	50 e0       	ldi	r21, 0x00	; 0
   2f062:	ba 01       	movw	r22, r20
   2f064:	c7 01       	movw	r24, r14
   2f066:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>

 fail:
  return false;
}
   2f06a:	0f 90       	pop	r0
   2f06c:	0f 90       	pop	r0
   2f06e:	0f 90       	pop	r0
   2f070:	0f 90       	pop	r0
   2f072:	df 91       	pop	r29
   2f074:	cf 91       	pop	r28
   2f076:	1f 91       	pop	r17
   2f078:	0f 91       	pop	r16
   2f07a:	ff 90       	pop	r15
   2f07c:	ef 90       	pop	r14
   2f07e:	df 90       	pop	r13
   2f080:	cf 90       	pop	r12
   2f082:	bf 90       	pop	r11
   2f084:	af 90       	pop	r10
   2f086:	9f 90       	pop	r9
   2f088:	8f 90       	pop	r8
   2f08a:	08 95       	ret
    return  cluster >= FAT32EOC_MIN;
   2f08c:	88 ef       	ldi	r24, 0xF8	; 248
   2f08e:	88 16       	cp	r8, r24
   2f090:	8f ef       	ldi	r24, 0xFF	; 255
   2f092:	98 06       	cpc	r9, r24
   2f094:	a8 06       	cpc	r10, r24
   2f096:	8f e0       	ldi	r24, 0x0F	; 15
   2f098:	b8 06       	cpc	r11, r24
   2f09a:	78 f6       	brcc	.-98     	; 0x2f03a <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0xbc>
   2f09c:	ab cf       	rjmp	.-170    	; 0x2eff4 <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0x76>

  // error if length is greater than current size
  if (length > fileSize_) goto fail;

  // fileSize and length are zero - nothing to do
  if (fileSize_ == 0) return true;
   2f09e:	81 e0       	ldi	r24, 0x01	; 1
   2f0a0:	e4 cf       	rjmp	.-56     	; 0x2f06a <SdBaseFile::truncate(unsigned long) [clone .constprop.263]+0xec>

0002f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>:
+*   LS_Count           - Add +1 to nrFiles for every file within the parent
+*   LS_GetFilename     - Get the filename of the file indexed by nrFiles
+*   LS_SerialPrint     - Print the full path and size of each file to serial output
+*/

void CardReader::lsDive(const char *prepend, SdFile parent, const char * const match/*=NULL*/, LsAction lsAction, ls_param lsParams) {
   2f0a2:	2f 92       	push	r2
   2f0a4:	3f 92       	push	r3
   2f0a6:	4f 92       	push	r4
   2f0a8:	5f 92       	push	r5
   2f0aa:	6f 92       	push	r6
   2f0ac:	7f 92       	push	r7
   2f0ae:	8f 92       	push	r8
   2f0b0:	9f 92       	push	r9
   2f0b2:	af 92       	push	r10
   2f0b4:	bf 92       	push	r11
   2f0b6:	cf 92       	push	r12
   2f0b8:	df 92       	push	r13
   2f0ba:	ef 92       	push	r14
   2f0bc:	ff 92       	push	r15
   2f0be:	0f 93       	push	r16
   2f0c0:	1f 93       	push	r17
   2f0c2:	cf 93       	push	r28
   2f0c4:	df 93       	push	r29
   2f0c6:	cd b7       	in	r28, 0x3d	; 61
   2f0c8:	de b7       	in	r29, 0x3e	; 62
   2f0ca:	c6 57       	subi	r28, 0x76	; 118
   2f0cc:	d1 09       	sbc	r29, r1
   2f0ce:	0f b6       	in	r0, 0x3f	; 63
   2f0d0:	f8 94       	cli
   2f0d2:	de bf       	out	0x3e, r29	; 62
   2f0d4:	0f be       	out	0x3f, r0	; 63
   2f0d6:	cd bf       	out	0x3d, r28	; 61
   2f0d8:	4c 01       	movw	r8, r24
   2f0da:	6b 01       	movw	r12, r22
   2f0dc:	3a 01       	movw	r6, r20
   2f0de:	e5 96       	adiw	r28, 0x35	; 53
   2f0e0:	2f af       	std	Y+63, r18	; 0x3f
   2f0e2:	e5 97       	sbiw	r28, 0x35	; 53
   2f0e4:	50 2e       	mov	r5, r16
						cnt++;
						break;
				}
			}
		} // while readDir
}
   2f0e6:	2d b6       	in	r2, 0x3d	; 61
   2f0e8:	3e b6       	in	r3, 0x3e	; 62
   2f0ea:	10 2f       	mov	r17, r16
   2f0ec:	11 70       	andi	r17, 0x01	; 1
	static uint8_t recursionCnt = 0;
	// RAII incrementer for the recursionCnt
	class _incrementer
	{
		public:
		_incrementer() {recursionCnt++;}
   2f0ee:	80 91 9c 0e 	lds	r24, 0x0E9C	; 0x800e9c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::recursionCnt>
   2f0f2:	8f 5f       	subi	r24, 0xFF	; 255
   2f0f4:	80 93 9c 0e 	sts	0x0E9C, r24	; 0x800e9c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::recursionCnt>
	} recursionCntIncrementer;

	dir_t p;
	uint8_t cnt = 0;
		// Read the next entry from a directory
		for (position = parent.curPosition(); parent.readDir(p, longFilename) > 0; position = parent.curPosition()) {
   2f0f8:	fb 01       	movw	r30, r22
   2f0fa:	80 85       	ldd	r24, Z+8	; 0x08
   2f0fc:	91 85       	ldd	r25, Z+9	; 0x09
   2f0fe:	a2 85       	ldd	r26, Z+10	; 0x0a
   2f100:	b3 85       	ldd	r27, Z+11	; 0x0b
   2f102:	80 93 a3 14 	sts	0x14A3, r24	; 0x8014a3 <card+0x15>
   2f106:	90 93 a4 14 	sts	0x14A4, r25	; 0x8014a4 <card+0x16>
   2f10a:	a0 93 a5 14 	sts	0x14A5, r26	; 0x8014a5 <card+0x17>
   2f10e:	b0 93 a6 14 	sts	0x14A6, r27	; 0x8014a6 <card+0x18>
		_incrementer() {recursionCnt++;}
		~_incrementer() {recursionCnt--;}
	} recursionCntIncrementer;

	dir_t p;
	uint8_t cnt = 0;
   2f112:	41 2c       	mov	r4, r1
			if (longFilename[0] == '.') continue;
			if (!DIR_IS_FILE_OR_SUBDIR(&p) || (p.attributes & DIR_ATT_HIDDEN)) continue;
			if (DIR_IS_SUBDIR(&p) && lsAction == LS_SerialPrint) { // If the entry is a directory and the action is LS_SerialPrint
				// Get the short name for the item, which we know is a folder
				char lfilename[FILENAME_LENGTH];
				createFilename(lfilename, p);
   2f114:	5e 01       	movw	r10, r28
   2f116:	f7 e6       	ldi	r31, 0x67	; 103
   2f118:	af 0e       	add	r10, r31
   2f11a:	b1 1c       	adc	r11, r1
 * a directory file or an I/O error occurred.
 */
int8_t SdBaseFile::readDir(dir_t* dir, char* longFilename) {
  int16_t n;
  // if not a directory file or miss-positioned return an error
  if (!isDir() || (0X1F & curPosition_)) return -1;
   2f11c:	f6 01       	movw	r30, r12
   2f11e:	83 81       	ldd	r24, Z+3	; 0x03
   2f120:	82 30       	cpi	r24, 0x02	; 2
   2f122:	08 f4       	brcc	.+2      	; 0x2f126 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x84>
   2f124:	c0 c1       	rjmp	.+896    	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>
   2f126:	80 85       	ldd	r24, Z+8	; 0x08
   2f128:	91 85       	ldd	r25, Z+9	; 0x09
   2f12a:	a2 85       	ldd	r26, Z+10	; 0x0a
   2f12c:	b3 85       	ldd	r27, Z+11	; 0x0b
   2f12e:	8f 71       	andi	r24, 0x1F	; 31
   2f130:	99 27       	eor	r25, r25
   2f132:	aa 27       	eor	r26, r26
   2f134:	bb 27       	eor	r27, r27
   2f136:	89 2b       	or	r24, r25
   2f138:	8a 2b       	or	r24, r26
   2f13a:	8b 2b       	or	r24, r27
   2f13c:	09 f0       	breq	.+2      	; 0x2f140 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x9e>
   2f13e:	b3 c1       	rjmp	.+870    	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>

  //If we have a longFilename buffer, mark it as invalid. If we find a long filename it will be filled automaticly.
  if (longFilename != NULL)
  {
  	longFilename[0] = '\0';
   2f140:	10 92 a7 14 	sts	0x14A7, r1	; 0x8014a7 <card+0x19>
   2f144:	47 ea       	ldi	r20, 0xA7	; 167
   2f146:	54 e1       	ldi	r21, 0x14	; 20
   2f148:	be 01       	movw	r22, r28
   2f14a:	69 5b       	subi	r22, 0xB9	; 185
   2f14c:	7f 4f       	sbci	r23, 0xFF	; 255
   2f14e:	c6 01       	movw	r24, r12
   2f150:	0f 94 11 5b 	call	0x2b622	; 0x2b622 <SdBaseFile::readDir(directoryEntry*, char*) [clone .part.23]>
	} recursionCntIncrementer;

	dir_t p;
	uint8_t cnt = 0;
		// Read the next entry from a directory
		for (position = parent.curPosition(); parent.readDir(p, longFilename) > 0; position = parent.curPosition()) {
   2f154:	18 16       	cp	r1, r24
   2f156:	0c f0       	brlt	.+2      	; 0x2f15a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xb8>
   2f158:	a6 c1       	rjmp	.+844    	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>
			if (recursionCnt > MAX_DIR_DEPTH)
   2f15a:	80 91 9c 0e 	lds	r24, 0x0E9C	; 0x800e9c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::recursionCnt>
   2f15e:	87 30       	cpi	r24, 0x07	; 7
   2f160:	08 f0       	brcs	.+2      	; 0x2f164 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xc2>
   2f162:	a1 c1       	rjmp	.+834    	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>
				return;
			uint8_t pn0 = p.name[0];
   2f164:	28 96       	adiw	r28, 0x08	; 8
   2f166:	8f ad       	ldd	r24, Y+63	; 0x3f
   2f168:	28 97       	sbiw	r28, 0x08	; 8
			if (pn0 == DIR_NAME_FREE) break;
   2f16a:	88 23       	and	r24, r24
   2f16c:	09 f4       	brne	.+2      	; 0x2f170 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xce>
   2f16e:	9b c1       	rjmp	.+822    	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>
			if (pn0 == DIR_NAME_DELETED || pn0 == '.') continue;
   2f170:	85 3e       	cpi	r24, 0xE5	; 229
   2f172:	09 f4       	brne	.+2      	; 0x2f176 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xd4>
   2f174:	39 c1       	rjmp	.+626    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
   2f176:	8e 32       	cpi	r24, 0x2E	; 46
   2f178:	09 f4       	brne	.+2      	; 0x2f17c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xda>
   2f17a:	36 c1       	rjmp	.+620    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
			if (longFilename[0] == '.') continue;
   2f17c:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2f180:	8e 32       	cpi	r24, 0x2E	; 46
   2f182:	09 f4       	brne	.+2      	; 0x2f186 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xe4>
   2f184:	31 c1       	rjmp	.+610    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
   2f186:	63 96       	adiw	r28, 0x13	; 19
   2f188:	8f ad       	ldd	r24, Y+63	; 0x3f
   2f18a:	63 97       	sbiw	r28, 0x13	; 19
			if (!DIR_IS_FILE_OR_SUBDIR(&p) || (p.attributes & DIR_ATT_HIDDEN)) continue;
   2f18c:	98 2f       	mov	r25, r24
   2f18e:	9a 70       	andi	r25, 0x0A	; 10
   2f190:	09 f0       	breq	.+2      	; 0x2f194 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0xf2>
   2f192:	2a c1       	rjmp	.+596    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
   2f194:	88 71       	andi	r24, 0x18	; 24
 * \param[in] dir Pointer to a directory entry.
 *
 * \return true if the entry is for a subdirectory else false.
 */
static inline uint8_t DIR_IS_SUBDIR(const dir_t* dir) {
  return (dir->attributes & DIR_ATT_FILE_TYPE_MASK) == DIR_ATT_DIRECTORY;
   2f196:	91 e0       	ldi	r25, 0x01	; 1
   2f198:	80 31       	cpi	r24, 0x10	; 16
   2f19a:	19 f0       	breq	.+6      	; 0x2f1a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x100>
   2f19c:	90 e0       	ldi	r25, 0x00	; 0
			if (DIR_IS_SUBDIR(&p) && lsAction == LS_SerialPrint) { // If the entry is a directory and the action is LS_SerialPrint
   2f19e:	80 31       	cpi	r24, 0x10	; 16
   2f1a0:	31 f4       	brne	.+12     	; 0x2f1ae <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x10c>
   2f1a2:	e5 96       	adiw	r28, 0x35	; 53
   2f1a4:	ff ad       	ldd	r31, Y+63	; 0x3f
   2f1a6:	e5 97       	sbiw	r28, 0x35	; 53
   2f1a8:	ff 23       	and	r31, r31
   2f1aa:	09 f4       	brne	.+2      	; 0x2f1ae <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x10c>
   2f1ac:	94 c0       	rjmp	.+296    	; 0x2f2d6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x234>

				if (lsParams.LFN)
					puts_P(PSTR("DIR_EXIT"));
			}
			else {
				filenameIsDir = DIR_IS_SUBDIR(&p);
   2f1ae:	90 93 dc 14 	sts	0x14DC, r25	; 0x8014dc <card+0x4e>
				if (!filenameIsDir && (p.name[8] != 'G' || p.name[9] == '~')) continue;
   2f1b2:	80 31       	cpi	r24, 0x10	; 16
   2f1b4:	61 f0       	breq	.+24     	; 0x2f1ce <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x12c>
   2f1b6:	60 96       	adiw	r28, 0x10	; 16
   2f1b8:	8f ad       	ldd	r24, Y+63	; 0x3f
   2f1ba:	60 97       	sbiw	r28, 0x10	; 16
   2f1bc:	87 34       	cpi	r24, 0x47	; 71
   2f1be:	09 f0       	breq	.+2      	; 0x2f1c2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x120>
   2f1c0:	13 c1       	rjmp	.+550    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
   2f1c2:	61 96       	adiw	r28, 0x11	; 17
   2f1c4:	8f ad       	ldd	r24, Y+63	; 0x3f
   2f1c6:	61 97       	sbiw	r28, 0x11	; 17
   2f1c8:	8e 37       	cpi	r24, 0x7E	; 126
   2f1ca:	09 f4       	brne	.+2      	; 0x2f1ce <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x12c>
   2f1cc:	0d c1       	rjmp	.+538    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
				switch (lsAction) {
   2f1ce:	e5 96       	adiw	r28, 0x35	; 53
   2f1d0:	ff ad       	ldd	r31, Y+63	; 0x3f
   2f1d2:	e5 97       	sbiw	r28, 0x35	; 53
   2f1d4:	f1 30       	cpi	r31, 0x01	; 1
   2f1d6:	09 f4       	brne	.+2      	; 0x2f1da <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x138>
   2f1d8:	1b c1       	rjmp	.+566    	; 0x2f410 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x36e>
   2f1da:	f2 30       	cpi	r31, 0x02	; 2
   2f1dc:	09 f4       	brne	.+2      	; 0x2f1e0 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x13e>
   2f1de:	25 c1       	rjmp	.+586    	; 0x2f42a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x388>
					case LS_Count:
						nrFiles++;
						break;

					case LS_SerialPrint:
						createFilename(filename, p);
   2f1e0:	be 01       	movw	r22, r28
   2f1e2:	69 5b       	subi	r22, 0xB9	; 185
   2f1e4:	7f 4f       	sbci	r23, 0xFF	; 255
   2f1e6:	82 e9       	ldi	r24, 0x92	; 146
   2f1e8:	94 e1       	ldi	r25, 0x14	; 20
   2f1ea:	0e 94 9d 76 	call	0xed3a	; 0xed3a <createFilename(char*, directoryEntry const&)>
   2f1ee:	c4 01       	movw	r24, r8
   2f1f0:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   2f1f4:	82 e9       	ldi	r24, 0x92	; 146
   2f1f6:	94 e1       	ldi	r25, 0x14	; 20
   2f1f8:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
						SERIAL_PROTOCOL(prepend);
						SERIAL_PROTOCOL(filename);

						MYSERIAL.write(' ');
   2f1fc:	80 e2       	ldi	r24, 0x20	; 32
   2f1fe:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   2f202:	a7 96       	adiw	r28, 0x27	; 39
   2f204:	6c ad       	ldd	r22, Y+60	; 0x3c
   2f206:	7d ad       	ldd	r23, Y+61	; 0x3d
   2f208:	8e ad       	ldd	r24, Y+62	; 0x3e
   2f20a:	9f ad       	ldd	r25, Y+63	; 0x3f
   2f20c:	a7 97       	sbiw	r28, 0x27	; 39
   2f20e:	4a e0       	ldi	r20, 0x0A	; 10
   2f210:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
						SERIAL_PROTOCOL(p.fileSize);

						if (lsParams.timestamp)
   2f214:	51 fe       	sbrs	r5, 1
   2f216:	45 c0       	rjmp	.+138    	; 0x2f2a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x200>
						{
							crmodDate = p.lastWriteDate;
   2f218:	a1 96       	adiw	r28, 0x21	; 33
   2f21a:	2e ad       	ldd	r18, Y+62	; 0x3e
   2f21c:	3f ad       	ldd	r19, Y+63	; 0x3f
   2f21e:	a1 97       	sbiw	r28, 0x21	; 33
   2f220:	30 93 a2 14 	sts	0x14A2, r19	; 0x8014a2 <card+0x14>
   2f224:	20 93 a1 14 	sts	0x14A1, r18	; 0x8014a1 <card+0x13>
							crmodTime = p.lastWriteTime;
   2f228:	6f 96       	adiw	r28, 0x1f	; 31
   2f22a:	4e ad       	ldd	r20, Y+62	; 0x3e
   2f22c:	5f ad       	ldd	r21, Y+63	; 0x3f
   2f22e:	6f 97       	sbiw	r28, 0x1f	; 31
   2f230:	50 93 a0 14 	sts	0x14A0, r21	; 0x8014a0 <card+0x12>
   2f234:	40 93 9f 14 	sts	0x149F, r20	; 0x80149f <card+0x11>
							if( crmodDate < p.creationDate || ( crmodDate == p.creationDate && crmodTime < p.creationTime ) ){
   2f238:	69 96       	adiw	r28, 0x19	; 25
   2f23a:	8e ad       	ldd	r24, Y+62	; 0x3e
   2f23c:	9f ad       	ldd	r25, Y+63	; 0x3f
   2f23e:	69 97       	sbiw	r28, 0x19	; 25
   2f240:	28 17       	cp	r18, r24
   2f242:	39 07       	cpc	r19, r25
   2f244:	50 f0       	brcs	.+20     	; 0x2f25a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x1b8>
   2f246:	28 17       	cp	r18, r24
   2f248:	39 07       	cpc	r19, r25
   2f24a:	99 f4       	brne	.+38     	; 0x2f272 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x1d0>
   2f24c:	67 96       	adiw	r28, 0x17	; 23
   2f24e:	2e ad       	ldd	r18, Y+62	; 0x3e
   2f250:	3f ad       	ldd	r19, Y+63	; 0x3f
   2f252:	67 97       	sbiw	r28, 0x17	; 23
   2f254:	42 17       	cp	r20, r18
   2f256:	53 07       	cpc	r21, r19
   2f258:	60 f4       	brcc	.+24     	; 0x2f272 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x1d0>
								crmodDate = p.creationDate;
   2f25a:	90 93 a2 14 	sts	0x14A2, r25	; 0x8014a2 <card+0x14>
   2f25e:	80 93 a1 14 	sts	0x14A1, r24	; 0x8014a1 <card+0x13>
								crmodTime = p.creationTime;
   2f262:	67 96       	adiw	r28, 0x17	; 23
   2f264:	8e ad       	ldd	r24, Y+62	; 0x3e
   2f266:	9f ad       	ldd	r25, Y+63	; 0x3f
   2f268:	67 97       	sbiw	r28, 0x17	; 23
   2f26a:	90 93 a0 14 	sts	0x14A0, r25	; 0x8014a0 <card+0x12>
   2f26e:	80 93 9f 14 	sts	0x149F, r24	; 0x80149f <card+0x11>
							}
							printf_P(PSTR(" %#lx"), ((uint32_t)crmodDate << 16) | crmodTime);
   2f272:	80 91 a2 14 	lds	r24, 0x14A2	; 0x8014a2 <card+0x14>
   2f276:	8f 93       	push	r24
   2f278:	80 91 a1 14 	lds	r24, 0x14A1	; 0x8014a1 <card+0x13>
   2f27c:	8f 93       	push	r24
   2f27e:	80 91 a0 14 	lds	r24, 0x14A0	; 0x8014a0 <card+0x12>
   2f282:	8f 93       	push	r24
   2f284:	80 91 9f 14 	lds	r24, 0x149F	; 0x80149f <card+0x11>
   2f288:	8f 93       	push	r24
   2f28a:	29 e2       	ldi	r18, 0x29	; 41
   2f28c:	3a ea       	ldi	r19, 0xAA	; 170
   2f28e:	3f 93       	push	r19
   2f290:	2f 93       	push	r18
   2f292:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2f296:	0f 90       	pop	r0
   2f298:	0f 90       	pop	r0
   2f29a:	0f 90       	pop	r0
   2f29c:	0f 90       	pop	r0
   2f29e:	0f 90       	pop	r0
   2f2a0:	0f 90       	pop	r0
						}

						if (lsParams.LFN)
   2f2a2:	11 23       	and	r17, r17
   2f2a4:	99 f0       	breq	.+38     	; 0x2f2cc <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x22a>
							printf_P(PSTR(" \"%s\""), LONGEST_FILENAME);
   2f2a6:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2f2aa:	88 23       	and	r24, r24
   2f2ac:	09 f4       	brne	.+2      	; 0x2f2b0 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x20e>
   2f2ae:	ba c0       	rjmp	.+372    	; 0x2f424 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x382>
   2f2b0:	87 ea       	ldi	r24, 0xA7	; 167
   2f2b2:	94 e1       	ldi	r25, 0x14	; 20
   2f2b4:	9f 93       	push	r25
   2f2b6:	8f 93       	push	r24
   2f2b8:	e3 e2       	ldi	r30, 0x23	; 35
   2f2ba:	fa ea       	ldi	r31, 0xAA	; 170
   2f2bc:	ff 93       	push	r31
   2f2be:	ef 93       	push	r30
   2f2c0:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2f2c4:	0f 90       	pop	r0
   2f2c6:	0f 90       	pop	r0
   2f2c8:	0f 90       	pop	r0
   2f2ca:	0f 90       	pop	r0

						SERIAL_PROTOCOLLN();
   2f2cc:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
						manage_heater();
   2f2d0:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
   2f2d4:	89 c0       	rjmp	.+274    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
				}
				lsDive(path, dir, NULL, lsAction, lsParams);
				// close() is done automatically by destructor of SdFile

				if (lsParams.LFN)
					puts_P(PSTR("DIR_EXIT"));
   2f2d6:	2d b7       	in	r18, 0x3d	; 61
   2f2d8:	3e b7       	in	r19, 0x3e	; 62
   2f2da:	e7 96       	adiw	r28, 0x37	; 55
   2f2dc:	3f af       	std	Y+63, r19	; 0x3f
   2f2de:	2e af       	std	Y+62, r18	; 0x3e
   2f2e0:	e7 97       	sbiw	r28, 0x37	; 55
			if (longFilename[0] == '.') continue;
			if (!DIR_IS_FILE_OR_SUBDIR(&p) || (p.attributes & DIR_ATT_HIDDEN)) continue;
			if (DIR_IS_SUBDIR(&p) && lsAction == LS_SerialPrint) { // If the entry is a directory and the action is LS_SerialPrint
				// Get the short name for the item, which we know is a folder
				char lfilename[FILENAME_LENGTH];
				createFilename(lfilename, p);
   2f2e2:	be 01       	movw	r22, r28
   2f2e4:	69 5b       	subi	r22, 0xB9	; 185
   2f2e6:	7f 4f       	sbci	r23, 0xFF	; 255
   2f2e8:	c5 01       	movw	r24, r10
   2f2ea:	0e 94 9d 76 	call	0xed3a	; 0xed3a <createFilename(char*, directoryEntry const&)>
				// Allocate enough stack space for the full path to a folder, trailing slash, and nul
				bool prepend_is_empty = (prepend[0] == '\0');
   2f2ee:	f4 01       	movw	r30, r8
   2f2f0:	80 81       	ld	r24, Z
				int len = (prepend_is_empty ? 1 : strlen(prepend)) + strlen(lfilename) + 1 + 1;
   2f2f2:	88 23       	and	r24, r24
   2f2f4:	09 f4       	brne	.+2      	; 0x2f2f8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x256>
   2f2f6:	86 c0       	rjmp	.+268    	; 0x2f404 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x362>
   2f2f8:	01 90       	ld	r0, Z+
   2f2fa:	00 20       	and	r0, r0
   2f2fc:	e9 f7       	brne	.-6      	; 0x2f2f8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x256>
   2f2fe:	31 97       	sbiw	r30, 0x01	; 1
   2f300:	e8 19       	sub	r30, r8
   2f302:	f9 09       	sbc	r31, r9
   2f304:	d5 01       	movw	r26, r10
   2f306:	0d 90       	ld	r0, X+
   2f308:	00 20       	and	r0, r0
   2f30a:	e9 f7       	brne	.-6      	; 0x2f306 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x264>
   2f30c:	ea 19       	sub	r30, r10
   2f30e:	fb 09       	sbc	r31, r11
				char path[len];
   2f310:	ea 0f       	add	r30, r26
   2f312:	fb 1f       	adc	r31, r27
   2f314:	31 96       	adiw	r30, 0x01	; 1
   2f316:	2d b7       	in	r18, 0x3d	; 61
   2f318:	3e b7       	in	r19, 0x3e	; 62
   2f31a:	2e 1b       	sub	r18, r30
   2f31c:	3f 0b       	sbc	r19, r31
   2f31e:	0f b6       	in	r0, 0x3f	; 63
   2f320:	f8 94       	cli
   2f322:	3e bf       	out	0x3e, r19	; 62
   2f324:	0f be       	out	0x3f, r0	; 63
   2f326:	2d bf       	out	0x3d, r18	; 61
   2f328:	ed b7       	in	r30, 0x3d	; 61
   2f32a:	fe b7       	in	r31, 0x3e	; 62
   2f32c:	31 96       	adiw	r30, 0x01	; 1
   2f32e:	7f 01       	movw	r14, r30
				// Append the FOLDERNAME12/ to the passed string.
				// It contains the full path to the "parent" argument.
				// We now have the full path to the item in this folder.
				strcpy(path, prepend_is_empty ? "/" : prepend); // root slash if prepend is empty
   2f330:	6e e1       	ldi	r22, 0x1E	; 30
   2f332:	73 e0       	ldi	r23, 0x03	; 3
   2f334:	81 11       	cpse	r24, r1
   2f336:	b4 01       	movw	r22, r8
   2f338:	c7 01       	movw	r24, r14
   2f33a:	0f 94 c6 e2 	call	0x3c58c	; 0x3c58c <strcpy>
				strcat(path, lfilename); // FILENAME_LENGTH-1 characters maximum
   2f33e:	b5 01       	movw	r22, r10
   2f340:	c7 01       	movw	r24, r14
   2f342:	0f 94 a7 e2 	call	0x3c54e	; 0x3c54e <strcat>
				strcat(path, "/");       // 1 character
   2f346:	6e e1       	ldi	r22, 0x1E	; 30
   2f348:	73 e0       	ldi	r23, 0x03	; 3
   2f34a:	c7 01       	movw	r24, r14
   2f34c:	0f 94 a7 e2 	call	0x3c54e	; 0x3c54e <strcat>
				// Serial.print(path);
				// Get a new directory object using the full path
				// and dive recursively into it.

				if (lsParams.LFN)
   2f350:	11 23       	and	r17, r17
   2f352:	a9 f0       	breq	.+42     	; 0x2f37e <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x2dc>
					printf_P(PSTR("DIR_ENTER: %s \"%s\"\n"), path, longFilename[0] ? longFilename : lfilename);
   2f354:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2f358:	81 11       	cpse	r24, r1
   2f35a:	57 c0       	rjmp	.+174    	; 0x2f40a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x368>
   2f35c:	c5 01       	movw	r24, r10
   2f35e:	9f 93       	push	r25
   2f360:	8f 93       	push	r24
   2f362:	ff 92       	push	r15
   2f364:	ef 92       	push	r14
   2f366:	28 e3       	ldi	r18, 0x38	; 56
   2f368:	3a ea       	ldi	r19, 0xAA	; 170
   2f36a:	3f 93       	push	r19
   2f36c:	2f 93       	push	r18
   2f36e:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   2f372:	0f 90       	pop	r0
   2f374:	0f 90       	pop	r0
   2f376:	0f 90       	pop	r0
   2f378:	0f 90       	pop	r0
   2f37a:	0f 90       	pop	r0
   2f37c:	0f 90       	pop	r0
 * \brief Base class for SdFile with Print and C++ streams.
 */
class SdBaseFile {
 public:
  /** Create an instance. */
  SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {}
   2f37e:	1c a2       	std	Y+36, r1	; 0x24
   2f380:	1f a2       	std	Y+39, r1	; 0x27
   * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC.
   * \return true for success or false for failure.
   */
  bool open(SdBaseFile& dirFile, // NOLINT
    const char* path, uint8_t oflag) {
    return open(&dirFile, path, oflag);
   2f382:	21 e0       	ldi	r18, 0x01	; 1
   2f384:	a5 01       	movw	r20, r10
   2f386:	b6 01       	movw	r22, r12
   2f388:	ce 01       	movw	r24, r28
   2f38a:	84 96       	adiw	r24, 0x24	; 36
   2f38c:	0f 94 5a 65 	call	0x2cab4	; 0x2cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>
				if (!dir.open(parent, lfilename, O_READ)) {
					//SERIAL_ECHO_START();
					//SERIAL_ECHOPGM(_i("Cannot open subdir"));////MSG_SD_CANT_OPEN_SUBDIR
					//SERIAL_ECHOLN(lfilename);
				}
				lsDive(path, dir, NULL, lsAction, lsParams);
   2f390:	83 e2       	ldi	r24, 0x23	; 35
   2f392:	fe 01       	movw	r30, r28
   2f394:	b4 96       	adiw	r30, 0x24	; 36
   2f396:	de 01       	movw	r26, r28
   2f398:	11 96       	adiw	r26, 0x01	; 1
   2f39a:	01 90       	ld	r0, Z+
   2f39c:	0d 92       	st	X+, r0
   2f39e:	8a 95       	dec	r24
   2f3a0:	e1 f7       	brne	.-8      	; 0x2f39a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x2f8>
   2f3a2:	10 fb       	bst	r17, 0
   2f3a4:	50 f8       	bld	r5, 0
   2f3a6:	05 2d       	mov	r16, r5
   2f3a8:	20 e0       	ldi	r18, 0x00	; 0
   2f3aa:	50 e0       	ldi	r21, 0x00	; 0
   2f3ac:	40 e0       	ldi	r20, 0x00	; 0
   2f3ae:	be 01       	movw	r22, r28
   2f3b0:	6f 5f       	subi	r22, 0xFF	; 255
   2f3b2:	7f 4f       	sbci	r23, 0xFF	; 255
   2f3b4:	c7 01       	movw	r24, r14
   2f3b6:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   2f3ba:	ce 01       	movw	r24, r28
   2f3bc:	01 96       	adiw	r24, 0x01	; 1
   2f3be:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
				// close() is done automatically by destructor of SdFile

				if (lsParams.LFN)
   2f3c2:	11 23       	and	r17, r17
   2f3c4:	21 f0       	breq	.+8      	; 0x2f3ce <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x32c>
					puts_P(PSTR("DIR_EXIT"));
   2f3c6:	8f e2       	ldi	r24, 0x2F	; 47
   2f3c8:	9a ea       	ldi	r25, 0xAA	; 170
   2f3ca:	0f 94 44 db 	call	0x3b688	; 0x3b688 <puts_P>
   2f3ce:	ce 01       	movw	r24, r28
   2f3d0:	84 96       	adiw	r24, 0x24	; 36
   2f3d2:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
   2f3d6:	e7 96       	adiw	r28, 0x37	; 55
   2f3d8:	ee ad       	ldd	r30, Y+62	; 0x3e
   2f3da:	ff ad       	ldd	r31, Y+63	; 0x3f
   2f3dc:	e7 97       	sbiw	r28, 0x37	; 55
   2f3de:	0f b6       	in	r0, 0x3f	; 63
   2f3e0:	f8 94       	cli
   2f3e2:	fe bf       	out	0x3e, r31	; 62
   2f3e4:	0f be       	out	0x3f, r0	; 63
   2f3e6:	ed bf       	out	0x3d, r30	; 61
	} recursionCntIncrementer;

	dir_t p;
	uint8_t cnt = 0;
		// Read the next entry from a directory
		for (position = parent.curPosition(); parent.readDir(p, longFilename) > 0; position = parent.curPosition()) {
   2f3e8:	f6 01       	movw	r30, r12
   2f3ea:	80 85       	ldd	r24, Z+8	; 0x08
   2f3ec:	91 85       	ldd	r25, Z+9	; 0x09
   2f3ee:	a2 85       	ldd	r26, Z+10	; 0x0a
   2f3f0:	b3 85       	ldd	r27, Z+11	; 0x0b
   2f3f2:	80 93 a3 14 	sts	0x14A3, r24	; 0x8014a3 <card+0x15>
   2f3f6:	90 93 a4 14 	sts	0x14A4, r25	; 0x8014a4 <card+0x16>
   2f3fa:	a0 93 a5 14 	sts	0x14A5, r26	; 0x8014a5 <card+0x17>
   2f3fe:	b0 93 a6 14 	sts	0x14A6, r27	; 0x8014a6 <card+0x18>
   2f402:	8c ce       	rjmp	.-744    	; 0x2f11c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x7a>
				// Get the short name for the item, which we know is a folder
				char lfilename[FILENAME_LENGTH];
				createFilename(lfilename, p);
				// Allocate enough stack space for the full path to a folder, trailing slash, and nul
				bool prepend_is_empty = (prepend[0] == '\0');
				int len = (prepend_is_empty ? 1 : strlen(prepend)) + strlen(lfilename) + 1 + 1;
   2f404:	e1 e0       	ldi	r30, 0x01	; 1
   2f406:	f0 e0       	ldi	r31, 0x00	; 0
   2f408:	7d cf       	rjmp	.-262    	; 0x2f304 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x262>
				// Serial.print(path);
				// Get a new directory object using the full path
				// and dive recursively into it.

				if (lsParams.LFN)
					printf_P(PSTR("DIR_ENTER: %s \"%s\"\n"), path, longFilename[0] ? longFilename : lfilename);
   2f40a:	87 ea       	ldi	r24, 0xA7	; 167
   2f40c:	94 e1       	ldi	r25, 0x14	; 20
   2f40e:	a7 cf       	rjmp	.-178    	; 0x2f35e <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x2bc>
			else {
				filenameIsDir = DIR_IS_SUBDIR(&p);
				if (!filenameIsDir && (p.name[8] != 'G' || p.name[9] == '~')) continue;
				switch (lsAction) {
					case LS_Count:
						nrFiles++;
   2f410:	80 91 a8 17 	lds	r24, 0x17A8	; 0x8017a8 <card+0x31a>
   2f414:	90 91 a9 17 	lds	r25, 0x17A9	; 0x8017a9 <card+0x31b>
   2f418:	01 96       	adiw	r24, 0x01	; 1
   2f41a:	90 93 a9 17 	sts	0x17A9, r25	; 0x8017a9 <card+0x31b>
   2f41e:	80 93 a8 17 	sts	0x17A8, r24	; 0x8017a8 <card+0x31a>
   2f422:	e2 cf       	rjmp	.-60     	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>
							}
							printf_P(PSTR(" %#lx"), ((uint32_t)crmodDate << 16) | crmodTime);
						}

						if (lsParams.LFN)
							printf_P(PSTR(" \"%s\""), LONGEST_FILENAME);
   2f424:	82 e9       	ldi	r24, 0x92	; 146
   2f426:	94 e1       	ldi	r25, 0x14	; 20
   2f428:	45 cf       	rjmp	.-374    	; 0x2f2b4 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x212>
						manage_heater();
						break;

					case LS_GetFilename:
						//SERIAL_ECHOPGM("File: ");
						createFilename(filename, p);
   2f42a:	be 01       	movw	r22, r28
   2f42c:	69 5b       	subi	r22, 0xB9	; 185
   2f42e:	7f 4f       	sbci	r23, 0xFF	; 255
   2f430:	82 e9       	ldi	r24, 0x92	; 146
   2f432:	94 e1       	ldi	r25, 0x14	; 20
   2f434:	0e 94 9d 76 	call	0xed3a	; 0xed3a <createFilename(char*, directoryEntry const&)>
						SERIAL_ECHOPGM("Creation date: ");
						MYSERIAL.println(p.creationDate);
						SERIAL_ECHOPGM("Access date: ");
						MYSERIAL.println(p.lastAccessDate);
						SERIAL_ECHOLNPGM("");*/
						crmodDate = p.lastWriteDate;
   2f438:	a1 96       	adiw	r28, 0x21	; 33
   2f43a:	2e ad       	ldd	r18, Y+62	; 0x3e
   2f43c:	3f ad       	ldd	r19, Y+63	; 0x3f
   2f43e:	a1 97       	sbiw	r28, 0x21	; 33
   2f440:	30 93 a2 14 	sts	0x14A2, r19	; 0x8014a2 <card+0x14>
   2f444:	20 93 a1 14 	sts	0x14A1, r18	; 0x8014a1 <card+0x13>
						crmodTime = p.lastWriteTime;
   2f448:	6f 96       	adiw	r28, 0x1f	; 31
   2f44a:	4e ad       	ldd	r20, Y+62	; 0x3e
   2f44c:	5f ad       	ldd	r21, Y+63	; 0x3f
   2f44e:	6f 97       	sbiw	r28, 0x1f	; 31
   2f450:	50 93 a0 14 	sts	0x14A0, r21	; 0x8014a0 <card+0x12>
   2f454:	40 93 9f 14 	sts	0x149F, r20	; 0x80149f <card+0x11>
						// There are scenarios when simple modification time is not enough (on MS Windows)
						// For example - extract an old g-code from an archive onto the SD card.
						// In such case the creation time is current time (which is correct), but the modification time
						// stays the same - i.e. old.
						// Therefore let's pick the most recent timestamp from both creation and modification timestamps
						if( crmodDate < p.creationDate || ( crmodDate == p.creationDate && crmodTime < p.creationTime ) ){
   2f458:	69 96       	adiw	r28, 0x19	; 25
   2f45a:	8e ad       	ldd	r24, Y+62	; 0x3e
   2f45c:	9f ad       	ldd	r25, Y+63	; 0x3f
   2f45e:	69 97       	sbiw	r28, 0x19	; 25
   2f460:	28 17       	cp	r18, r24
   2f462:	39 07       	cpc	r19, r25
   2f464:	50 f0       	brcs	.+20     	; 0x2f47a <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x3d8>
   2f466:	28 17       	cp	r18, r24
   2f468:	39 07       	cpc	r19, r25
   2f46a:	99 f4       	brne	.+38     	; 0x2f492 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x3f0>
   2f46c:	67 96       	adiw	r28, 0x17	; 23
   2f46e:	2e ad       	ldd	r18, Y+62	; 0x3e
   2f470:	3f ad       	ldd	r19, Y+63	; 0x3f
   2f472:	67 97       	sbiw	r28, 0x17	; 23
   2f474:	42 17       	cp	r20, r18
   2f476:	53 07       	cpc	r21, r19
   2f478:	60 f4       	brcc	.+24     	; 0x2f492 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x3f0>
							crmodDate = p.creationDate;
   2f47a:	90 93 a2 14 	sts	0x14A2, r25	; 0x8014a2 <card+0x14>
   2f47e:	80 93 a1 14 	sts	0x14A1, r24	; 0x8014a1 <card+0x13>
							crmodTime = p.creationTime;
   2f482:	67 96       	adiw	r28, 0x17	; 23
   2f484:	8e ad       	ldd	r24, Y+62	; 0x3e
   2f486:	9f ad       	ldd	r25, Y+63	; 0x3f
   2f488:	67 97       	sbiw	r28, 0x17	; 23
   2f48a:	90 93 a0 14 	sts	0x14A0, r25	; 0x8014a0 <card+0x12>
   2f48e:	80 93 9f 14 	sts	0x149F, r24	; 0x80149f <card+0x11>
						}
						//writeDate = p.lastAccessDate;
						if (match != NULL) {
   2f492:	61 14       	cp	r6, r1
   2f494:	71 04       	cpc	r7, r1
   2f496:	59 f1       	breq	.+86     	; 0x2f4ee <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x44c>
							if (strcasecmp(match, filename) == 0) return;
   2f498:	62 e9       	ldi	r22, 0x92	; 146
   2f49a:	74 e1       	ldi	r23, 0x14	; 20
   2f49c:	c3 01       	movw	r24, r6
   2f49e:	0f 94 94 e2 	call	0x3c528	; 0x3c528 <strcasecmp>
   2f4a2:	89 2b       	or	r24, r25
   2f4a4:	59 f5       	brne	.+86     	; 0x2f4fc <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x45a>
	// RAII incrementer for the recursionCnt
	class _incrementer
	{
		public:
		_incrementer() {recursionCnt++;}
		~_incrementer() {recursionCnt--;}
   2f4a6:	80 91 9c 0e 	lds	r24, 0x0E9C	; 0x800e9c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::recursionCnt>
   2f4aa:	81 50       	subi	r24, 0x01	; 1
   2f4ac:	80 93 9c 0e 	sts	0x0E9C, r24	; 0x800e9c <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param)::recursionCnt>
						cnt++;
						break;
				}
			}
		} // while readDir
}
   2f4b0:	0f b6       	in	r0, 0x3f	; 63
   2f4b2:	f8 94       	cli
   2f4b4:	3e be       	out	0x3e, r3	; 62
   2f4b6:	0f be       	out	0x3f, r0	; 63
   2f4b8:	2d be       	out	0x3d, r2	; 61
   2f4ba:	ca 58       	subi	r28, 0x8A	; 138
   2f4bc:	df 4f       	sbci	r29, 0xFF	; 255
   2f4be:	0f b6       	in	r0, 0x3f	; 63
   2f4c0:	f8 94       	cli
   2f4c2:	de bf       	out	0x3e, r29	; 62
   2f4c4:	0f be       	out	0x3f, r0	; 63
   2f4c6:	cd bf       	out	0x3d, r28	; 61
   2f4c8:	df 91       	pop	r29
   2f4ca:	cf 91       	pop	r28
   2f4cc:	1f 91       	pop	r17
   2f4ce:	0f 91       	pop	r16
   2f4d0:	ff 90       	pop	r15
   2f4d2:	ef 90       	pop	r14
   2f4d4:	df 90       	pop	r13
   2f4d6:	cf 90       	pop	r12
   2f4d8:	bf 90       	pop	r11
   2f4da:	af 90       	pop	r10
   2f4dc:	9f 90       	pop	r9
   2f4de:	8f 90       	pop	r8
   2f4e0:	7f 90       	pop	r7
   2f4e2:	6f 90       	pop	r6
   2f4e4:	5f 90       	pop	r5
   2f4e6:	4f 90       	pop	r4
   2f4e8:	3f 90       	pop	r3
   2f4ea:	2f 90       	pop	r2
   2f4ec:	08 95       	ret
						}
						//writeDate = p.lastAccessDate;
						if (match != NULL) {
							if (strcasecmp(match, filename) == 0) return;
						}
						else if (cnt == nrFiles) return;
   2f4ee:	80 91 a8 17 	lds	r24, 0x17A8	; 0x8017a8 <card+0x31a>
   2f4f2:	90 91 a9 17 	lds	r25, 0x17A9	; 0x8017a9 <card+0x31b>
   2f4f6:	48 16       	cp	r4, r24
   2f4f8:	19 06       	cpc	r1, r25
   2f4fa:	a9 f2       	breq	.-86     	; 0x2f4a6 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x404>
						cnt++;
   2f4fc:	43 94       	inc	r4
   2f4fe:	74 cf       	rjmp	.-280    	; 0x2f3e8 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]+0x346>

0002f500 <CardReader::getfilename(unsigned int, char const*) [clone .constprop.259]>:
  }


}

void CardReader::getfilename(uint16_t nr, const char * const match/*=NULL*/)
   2f500:	cf 92       	push	r12
   2f502:	df 92       	push	r13
   2f504:	ef 92       	push	r14
   2f506:	ff 92       	push	r15
   2f508:	0f 93       	push	r16
   2f50a:	cf 93       	push	r28
   2f50c:	df 93       	push	r29
   2f50e:	cd b7       	in	r28, 0x3d	; 61
   2f510:	de b7       	in	r29, 0x3e	; 62
   2f512:	a3 97       	sbiw	r28, 0x23	; 35
   2f514:	0f b6       	in	r0, 0x3f	; 63
   2f516:	f8 94       	cli
   2f518:	de bf       	out	0x3e, r29	; 62
   2f51a:	0f be       	out	0x3f, r0	; 63
   2f51c:	cd bf       	out	0x3d, r28	; 61
   2f51e:	6c 01       	movw	r12, r24
{
  curDir=&workDir;
   2f520:	89 e3       	ldi	r24, 0x39	; 57
   2f522:	e8 2e       	mov	r14, r24
   2f524:	85 e1       	ldi	r24, 0x15	; 21
   2f526:	f8 2e       	mov	r15, r24
   2f528:	8b e3       	ldi	r24, 0x3B	; 59
   2f52a:	95 e1       	ldi	r25, 0x15	; 21
   2f52c:	d7 01       	movw	r26, r14
   2f52e:	8d 93       	st	X+, r24
   2f530:	9c 93       	st	X, r25
  nrFiles=nr;
   2f532:	10 92 a9 17 	sts	0x17A9, r1	; 0x8017a9 <card+0x31b>
   2f536:	10 92 a8 17 	sts	0x17A8, r1	; 0x8017a8 <card+0x31a>
  curDir->rewind();
   2f53a:	0e 94 b3 76 	call	0xed66	; 0xed66 <SdBaseFile::rewind()>
  };
  struct ls_param
  {
    bool LFN : 1;
    bool timestamp : 1;
    inline ls_param():LFN(0), timestamp(0) { }
   2f53e:	00 e0       	ldi	r16, 0x00	; 0
   2f540:	0e 7f       	andi	r16, 0xFE	; 254
   2f542:	0d 7f       	andi	r16, 0xFD	; 253
  lsDive("",*curDir,match, LS_GetFilename);
   2f544:	d7 01       	movw	r26, r14
   2f546:	ed 91       	ld	r30, X+
   2f548:	fc 91       	ld	r31, X
   2f54a:	83 e2       	ldi	r24, 0x23	; 35
   2f54c:	de 01       	movw	r26, r28
   2f54e:	11 96       	adiw	r26, 0x01	; 1
   2f550:	01 90       	ld	r0, Z+
   2f552:	0d 92       	st	X+, r0
   2f554:	8a 95       	dec	r24
   2f556:	e1 f7       	brne	.-8      	; 0x2f550 <CardReader::getfilename(unsigned int, char const*) [clone .constprop.259]+0x50>
   2f558:	22 e0       	ldi	r18, 0x02	; 2
   2f55a:	a6 01       	movw	r20, r12
   2f55c:	be 01       	movw	r22, r28
   2f55e:	6f 5f       	subi	r22, 0xFF	; 255
   2f560:	7f 4f       	sbci	r23, 0xFF	; 255
   2f562:	89 ef       	ldi	r24, 0xF9	; 249
   2f564:	92 e0       	ldi	r25, 0x02	; 2
   2f566:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   2f56a:	ce 01       	movw	r24, r28
   2f56c:	01 96       	adiw	r24, 0x01	; 1
   2f56e:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>

}
   2f572:	a3 96       	adiw	r28, 0x23	; 35
   2f574:	0f b6       	in	r0, 0x3f	; 63
   2f576:	f8 94       	cli
   2f578:	de bf       	out	0x3e, r29	; 62
   2f57a:	0f be       	out	0x3f, r0	; 63
   2f57c:	cd bf       	out	0x3d, r28	; 61
   2f57e:	df 91       	pop	r29
   2f580:	cf 91       	pop	r28
   2f582:	0f 91       	pop	r16
   2f584:	ff 90       	pop	r15
   2f586:	ef 90       	pop	r14
   2f588:	df 90       	pop	r13
   2f58a:	cf 90       	pop	r12
   2f58c:	08 95       	ret

0002f58e <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]>:

void CardReader::getfilename_simple(uint16_t entry, const char * const match/*=NULL*/)
   2f58e:	ef 92       	push	r14
   2f590:	ff 92       	push	r15
   2f592:	0f 93       	push	r16
   2f594:	cf 93       	push	r28
   2f596:	df 93       	push	r29
   2f598:	cd b7       	in	r28, 0x3d	; 61
   2f59a:	de b7       	in	r29, 0x3e	; 62
   2f59c:	a3 97       	sbiw	r28, 0x23	; 35
   2f59e:	0f b6       	in	r0, 0x3f	; 63
   2f5a0:	f8 94       	cli
   2f5a2:	de bf       	out	0x3e, r29	; 62
   2f5a4:	0f be       	out	0x3f, r0	; 63
   2f5a6:	cd bf       	out	0x3d, r28	; 61
{
	curDir = &workDir;
   2f5a8:	29 e3       	ldi	r18, 0x39	; 57
   2f5aa:	e2 2e       	mov	r14, r18
   2f5ac:	25 e1       	ldi	r18, 0x15	; 21
   2f5ae:	f2 2e       	mov	r15, r18
   2f5b0:	2b e3       	ldi	r18, 0x3B	; 59
   2f5b2:	35 e1       	ldi	r19, 0x15	; 21
   2f5b4:	d7 01       	movw	r26, r14
   2f5b6:	2d 93       	st	X+, r18
   2f5b8:	3c 93       	st	X, r19
	nrFiles = 0;
   2f5ba:	10 92 a9 17 	sts	0x17A9, r1	; 0x8017a9 <card+0x31b>
   2f5be:	10 92 a8 17 	sts	0x17A8, r1	; 0x8017a8 <card+0x31a>
	curDir->seekSet((uint32_t)entry << 5);
   2f5c2:	b0 e0       	ldi	r27, 0x00	; 0
   2f5c4:	a0 e0       	ldi	r26, 0x00	; 0
   2f5c6:	ac 01       	movw	r20, r24
   2f5c8:	bd 01       	movw	r22, r26
   2f5ca:	e5 e0       	ldi	r30, 0x05	; 5
   2f5cc:	44 0f       	add	r20, r20
   2f5ce:	55 1f       	adc	r21, r21
   2f5d0:	66 1f       	adc	r22, r22
   2f5d2:	77 1f       	adc	r23, r23
   2f5d4:	ea 95       	dec	r30
   2f5d6:	d1 f7       	brne	.-12     	; 0x2f5cc <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]+0x3e>
   2f5d8:	c9 01       	movw	r24, r18
   2f5da:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
   2f5de:	00 e0       	ldi	r16, 0x00	; 0
   2f5e0:	0e 7f       	andi	r16, 0xFE	; 254
   2f5e2:	0d 7f       	andi	r16, 0xFD	; 253
	lsDive("", *curDir, match, LS_GetFilename);
   2f5e4:	d7 01       	movw	r26, r14
   2f5e6:	ed 91       	ld	r30, X+
   2f5e8:	fc 91       	ld	r31, X
   2f5ea:	83 e2       	ldi	r24, 0x23	; 35
   2f5ec:	de 01       	movw	r26, r28
   2f5ee:	11 96       	adiw	r26, 0x01	; 1
   2f5f0:	01 90       	ld	r0, Z+
   2f5f2:	0d 92       	st	X+, r0
   2f5f4:	8a 95       	dec	r24
   2f5f6:	e1 f7       	brne	.-8      	; 0x2f5f0 <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]+0x62>
   2f5f8:	22 e0       	ldi	r18, 0x02	; 2
   2f5fa:	50 e0       	ldi	r21, 0x00	; 0
   2f5fc:	40 e0       	ldi	r20, 0x00	; 0
   2f5fe:	be 01       	movw	r22, r28
   2f600:	6f 5f       	subi	r22, 0xFF	; 255
   2f602:	7f 4f       	sbci	r23, 0xFF	; 255
   2f604:	89 ef       	ldi	r24, 0xF9	; 249
   2f606:	92 e0       	ldi	r25, 0x02	; 2
   2f608:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   2f60c:	ce 01       	movw	r24, r28
   2f60e:	01 96       	adiw	r24, 0x01	; 1
   2f610:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
}
   2f614:	a3 96       	adiw	r28, 0x23	; 35
   2f616:	0f b6       	in	r0, 0x3f	; 63
   2f618:	f8 94       	cli
   2f61a:	de bf       	out	0x3e, r29	; 62
   2f61c:	0f be       	out	0x3f, r0	; 63
   2f61e:	cd bf       	out	0x3d, r28	; 61
   2f620:	df 91       	pop	r29
   2f622:	cf 91       	pop	r28
   2f624:	0f 91       	pop	r16
   2f626:	ff 90       	pop	r15
   2f628:	ef 90       	pop	r14
   2f62a:	08 95       	ret

0002f62c <CardReader::getnrfilenames() [clone .constprop.260]>:
	nrFiles = 1;
	curDir->seekSet(position);
	lsDive("", *curDir, match, LS_GetFilename);
}

uint16_t CardReader::getnrfilenames()
   2f62c:	cf 92       	push	r12
   2f62e:	df 92       	push	r13
   2f630:	ef 92       	push	r14
   2f632:	ff 92       	push	r15
   2f634:	0f 93       	push	r16
   2f636:	cf 93       	push	r28
   2f638:	df 93       	push	r29
   2f63a:	cd b7       	in	r28, 0x3d	; 61
   2f63c:	de b7       	in	r29, 0x3e	; 62
   2f63e:	a3 97       	sbiw	r28, 0x23	; 35
   2f640:	0f b6       	in	r0, 0x3f	; 63
   2f642:	f8 94       	cli
   2f644:	de bf       	out	0x3e, r29	; 62
   2f646:	0f be       	out	0x3f, r0	; 63
   2f648:	cd bf       	out	0x3d, r28	; 61
{
  curDir=&workDir;
   2f64a:	89 e3       	ldi	r24, 0x39	; 57
   2f64c:	c8 2e       	mov	r12, r24
   2f64e:	85 e1       	ldi	r24, 0x15	; 21
   2f650:	d8 2e       	mov	r13, r24
   2f652:	8b e3       	ldi	r24, 0x3B	; 59
   2f654:	95 e1       	ldi	r25, 0x15	; 21
   2f656:	d6 01       	movw	r26, r12
   2f658:	8d 93       	st	X+, r24
   2f65a:	9c 93       	st	X, r25
  nrFiles=0;
   2f65c:	28 ea       	ldi	r18, 0xA8	; 168
   2f65e:	e2 2e       	mov	r14, r18
   2f660:	27 e1       	ldi	r18, 0x17	; 23
   2f662:	f2 2e       	mov	r15, r18
   2f664:	f7 01       	movw	r30, r14
   2f666:	11 82       	std	Z+1, r1	; 0x01
   2f668:	10 82       	st	Z, r1
  curDir->rewind();
   2f66a:	0e 94 b3 76 	call	0xed66	; 0xed66 <SdBaseFile::rewind()>
   2f66e:	00 e0       	ldi	r16, 0x00	; 0
   2f670:	0e 7f       	andi	r16, 0xFE	; 254
   2f672:	0d 7f       	andi	r16, 0xFD	; 253
  lsDive("",*curDir, NULL, LS_Count);
   2f674:	d6 01       	movw	r26, r12
   2f676:	ed 91       	ld	r30, X+
   2f678:	fc 91       	ld	r31, X
   2f67a:	83 e2       	ldi	r24, 0x23	; 35
   2f67c:	de 01       	movw	r26, r28
   2f67e:	11 96       	adiw	r26, 0x01	; 1
   2f680:	01 90       	ld	r0, Z+
   2f682:	0d 92       	st	X+, r0
   2f684:	8a 95       	dec	r24
   2f686:	e1 f7       	brne	.-8      	; 0x2f680 <CardReader::getnrfilenames() [clone .constprop.260]+0x54>
   2f688:	21 e0       	ldi	r18, 0x01	; 1
   2f68a:	50 e0       	ldi	r21, 0x00	; 0
   2f68c:	40 e0       	ldi	r20, 0x00	; 0
   2f68e:	be 01       	movw	r22, r28
   2f690:	6f 5f       	subi	r22, 0xFF	; 255
   2f692:	7f 4f       	sbci	r23, 0xFF	; 255
   2f694:	89 ef       	ldi	r24, 0xF9	; 249
   2f696:	92 e0       	ldi	r25, 0x02	; 2
   2f698:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   2f69c:	ce 01       	movw	r24, r28
   2f69e:	01 96       	adiw	r24, 0x01	; 1
   2f6a0:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
  //SERIAL_ECHOLN(nrFiles);
  return nrFiles;
}
   2f6a4:	f7 01       	movw	r30, r14
   2f6a6:	80 81       	ld	r24, Z
   2f6a8:	91 81       	ldd	r25, Z+1	; 0x01
   2f6aa:	a3 96       	adiw	r28, 0x23	; 35
   2f6ac:	0f b6       	in	r0, 0x3f	; 63
   2f6ae:	f8 94       	cli
   2f6b0:	de bf       	out	0x3e, r29	; 62
   2f6b2:	0f be       	out	0x3f, r0	; 63
   2f6b4:	cd bf       	out	0x3d, r28	; 61
   2f6b6:	df 91       	pop	r29
   2f6b8:	cf 91       	pop	r28
   2f6ba:	0f 91       	pop	r16
   2f6bc:	ff 90       	pop	r15
   2f6be:	ef 90       	pop	r14
   2f6c0:	df 90       	pop	r13
   2f6c2:	cf 90       	pop	r12
   2f6c4:	08 95       	ret

0002f6c6 <CardReader::printAbsFilenameFast() [clone .constprop.250]>:
    file.getFilename(t);
  else
    t[0]=0;
}

void CardReader::printAbsFilenameFast()
   2f6c6:	cf 93       	push	r28
   2f6c8:	df 93       	push	r29
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   2f6ca:	8f e2       	ldi	r24, 0x2F	; 47
   2f6cc:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
{
    SERIAL_PROTOCOL('/');
    for (uint8_t i = 0; i < getWorkDirDepth(); i++)
   2f6d0:	c0 e0       	ldi	r28, 0x00	; 0
    {
        SERIAL_PROTOCOL(dir_names[i]);
   2f6d2:	d9 e0       	ldi	r29, 0x09	; 9
}

void CardReader::printAbsFilenameFast()
{
    SERIAL_PROTOCOL('/');
    for (uint8_t i = 0; i < getWorkDirDepth(); i++)
   2f6d4:	80 91 30 16 	lds	r24, 0x1630	; 0x801630 <card+0x1a2>
   2f6d8:	c8 17       	cp	r28, r24
   2f6da:	60 f4       	brcc	.+24     	; 0x2f6f4 <CardReader::printAbsFilenameFast() [clone .constprop.250]+0x2e>
    {
        SERIAL_PROTOCOL(dir_names[i]);
   2f6dc:	cd 9f       	mul	r28, r29
   2f6de:	c0 01       	movw	r24, r0
   2f6e0:	11 24       	eor	r1, r1
   2f6e2:	80 52       	subi	r24, 0x20	; 32
   2f6e4:	9b 4e       	sbci	r25, 0xEB	; 235
   2f6e6:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   2f6ea:	8f e2       	ldi	r24, 0x2F	; 47
   2f6ec:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void CardReader::printAbsFilenameFast()
{
    SERIAL_PROTOCOL('/');
    for (uint8_t i = 0; i < getWorkDirDepth(); i++)
   2f6f0:	cf 5f       	subi	r28, 0xFF	; 255
   2f6f2:	f0 cf       	rjmp	.-32     	; 0x2f6d4 <CardReader::printAbsFilenameFast() [clone .constprop.250]+0xe>
    {
        SERIAL_PROTOCOL(dir_names[i]);
        SERIAL_PROTOCOL('/');
    }
    SERIAL_PROTOCOL(LONGEST_FILENAME);
   2f6f4:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2f6f8:	81 11       	cpse	r24, r1
   2f6fa:	06 c0       	rjmp	.+12     	; 0x2f708 <CardReader::printAbsFilenameFast() [clone .constprop.250]+0x42>
   2f6fc:	82 e9       	ldi	r24, 0x92	; 146
   2f6fe:	94 e1       	ldi	r25, 0x14	; 20
}
   2f700:	df 91       	pop	r29
   2f702:	cf 91       	pop	r28
   2f704:	0c 94 9b 87 	jmp	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
    for (uint8_t i = 0; i < getWorkDirDepth(); i++)
    {
        SERIAL_PROTOCOL(dir_names[i]);
        SERIAL_PROTOCOL('/');
    }
    SERIAL_PROTOCOL(LONGEST_FILENAME);
   2f708:	87 ea       	ldi	r24, 0xA7	; 167
   2f70a:	94 e1       	ldi	r25, 0x14	; 20
   2f70c:	f9 cf       	rjmp	.-14     	; 0x2f700 <CardReader::printAbsFilenameFast() [clone .constprop.250]+0x3a>

0002f70e <eeprom_add_dword(unsigned long*, unsigned long) [clone .constprop.247]>:

void __attribute__((noinline)) eeprom_add_word(uint16_t *__p, uint16_t add) {
    eeprom_write_word_notify(__p, eeprom_read_word(__p) + add);
}

void __attribute__((noinline)) eeprom_add_dword(uint32_t *__p, uint32_t add) {
   2f70e:	cf 92       	push	r12
   2f710:	df 92       	push	r13
   2f712:	ef 92       	push	r14
   2f714:	ff 92       	push	r15
   2f716:	6b 01       	movw	r12, r22
   2f718:	7c 01       	movw	r14, r24
    eeprom_write_dword_notify(__p, eeprom_read_dword(__p) + add);
   2f71a:	88 ea       	ldi	r24, 0xA8	; 168
   2f71c:	9c e0       	ldi	r25, 0x0C	; 12
   2f71e:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
   2f722:	ab 01       	movw	r20, r22
   2f724:	bc 01       	movw	r22, r24
   2f726:	4c 0d       	add	r20, r12
   2f728:	5d 1d       	adc	r21, r13
   2f72a:	6e 1d       	adc	r22, r14
   2f72c:	7f 1d       	adc	r23, r15
    if (active) {
        uint32_t previous_value = eeprom_read_dword(dst);
        eeprom_dword_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_dword(dst, value);
   2f72e:	88 ea       	ldi	r24, 0xA8	; 168
   2f730:	9c e0       	ldi	r25, 0x0C	; 12
    eeprom_write_word_notify(__p, eeprom_read_word(__p) + add);
}

void __attribute__((noinline)) eeprom_add_dword(uint32_t *__p, uint32_t add) {
    eeprom_write_dword_notify(__p, eeprom_read_dword(__p) + add);
}
   2f732:	ff 90       	pop	r15
   2f734:	ef 90       	pop	r14
   2f736:	df 90       	pop	r13
   2f738:	cf 90       	pop	r12
    if (active) {
        uint32_t previous_value = eeprom_read_dword(dst);
        eeprom_dword_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_dword(dst, value);
   2f73a:	0d 94 b1 dc 	jmp	0x3b962	; 0x3b962 <eeprom_write_dword>

0002f73e <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]>:
        return def;
    }
    return val;
}

uint32_t __attribute__((noinline)) eeprom_init_default_dword(uint32_t *__p, uint32_t def) {
   2f73e:	cf 93       	push	r28
   2f740:	df 93       	push	r29
   2f742:	ec 01       	movw	r28, r24
    uint32_t val = eeprom_read_dword(__p);
   2f744:	0f 94 63 dc 	call	0x3b8c6	; 0x3b8c6 <eeprom_read_dword>
    if (val == EEPROM_EMPTY_VALUE32) {
   2f748:	6f 3f       	cpi	r22, 0xFF	; 255
   2f74a:	2f ef       	ldi	r18, 0xFF	; 255
   2f74c:	72 07       	cpc	r23, r18
   2f74e:	82 07       	cpc	r24, r18
   2f750:	92 07       	cpc	r25, r18
   2f752:	49 f4       	brne	.+18     	; 0x2f766 <eeprom_init_default_dword(unsigned long*, unsigned long) [clone .constprop.246]+0x28>
    if (active) {
        uint32_t previous_value = eeprom_read_dword(dst);
        eeprom_dword_notify(dst, previous_value, value, true);
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_write_dword(dst, value);
   2f754:	40 e0       	ldi	r20, 0x00	; 0
   2f756:	50 e0       	ldi	r21, 0x00	; 0
   2f758:	ba 01       	movw	r22, r20
   2f75a:	ce 01       	movw	r24, r28
   2f75c:	0f 94 b1 dc 	call	0x3b962	; 0x3b962 <eeprom_write_dword>

uint32_t __attribute__((noinline)) eeprom_init_default_dword(uint32_t *__p, uint32_t def) {
    uint32_t val = eeprom_read_dword(__p);
    if (val == EEPROM_EMPTY_VALUE32) {
        eeprom_write_dword_notify(__p, def);
        return def;
   2f760:	60 e0       	ldi	r22, 0x00	; 0
   2f762:	70 e0       	ldi	r23, 0x00	; 0
   2f764:	cb 01       	movw	r24, r22
    }
    return val;
}
   2f766:	df 91       	pop	r29
   2f768:	cf 91       	pop	r28
   2f76a:	08 95       	ret

0002f76c <SdFile::gfUpdateCurrentPosition(unsigned int) [clone .constprop.245]>:
}

// think twice before allowing this to inline - manipulating 4B longs is costly
// moreover - this function has its parameters in registers only, so no heavy stack usage besides the call/ret
void __attribute__((noinline)) SdFile::gfUpdateCurrentPosition(uint16_t inc){
    curPosition_ += inc;
   2f76c:	e8 e2       	ldi	r30, 0x28	; 40
   2f76e:	f7 e1       	ldi	r31, 0x17	; 23
   2f770:	40 81       	ld	r20, Z
   2f772:	51 81       	ldd	r21, Z+1	; 0x01
   2f774:	62 81       	ldd	r22, Z+2	; 0x02
   2f776:	73 81       	ldd	r23, Z+3	; 0x03
   2f778:	48 0f       	add	r20, r24
   2f77a:	59 1f       	adc	r21, r25
   2f77c:	61 1d       	adc	r22, r1
   2f77e:	71 1d       	adc	r23, r1
   2f780:	40 83       	st	Z, r20
   2f782:	51 83       	std	Z+1, r21	; 0x01
   2f784:	62 83       	std	Z+2, r22	; 0x02
   2f786:	73 83       	std	Z+3, r23	; 0x03
}
   2f788:	08 95       	ret

0002f78a <SdFile::gfEnsureBlock() [clone .constprop.243]>:
    // make the rdptr point to a safe location - end of file
    gfReadPtr = gfBlockBuffBegin() + 512;
    return -1;
}

bool SdFile::gfEnsureBlock(){
   2f78a:	0f 93       	push	r16
   2f78c:	1f 93       	push	r17
    // this comparison is heavy-weight, especially when there is another one inside cacheRawBlock
    // but it is necessary to avoid computing of terminateOfs if not needed
    if( gfBlock != vol_->cacheBlockNumber_ ){
   2f78e:	60 91 3d 17 	lds	r22, 0x173D	; 0x80173d <card+0x2af>
   2f792:	70 91 3e 17 	lds	r23, 0x173E	; 0x80173e <card+0x2b0>
   2f796:	80 91 3f 17 	lds	r24, 0x173F	; 0x80173f <card+0x2b1>
   2f79a:	90 91 40 17 	lds	r25, 0x1740	; 0x801740 <card+0x2b2>
   2f79e:	00 91 91 0e 	lds	r16, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   2f7a2:	10 91 92 0e 	lds	r17, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   2f7a6:	20 91 93 0e 	lds	r18, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   2f7aa:	30 91 94 0e 	lds	r19, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   2f7ae:	60 17       	cp	r22, r16
   2f7b0:	71 07       	cpc	r23, r17
   2f7b2:	82 07       	cpc	r24, r18
   2f7b4:	93 07       	cpc	r25, r19
   2f7b6:	39 f1       	breq	.+78     	; 0x2f806 <SdFile::gfEnsureBlock() [clone .constprop.243]+0x7c>
        if ( ! vol_->cacheRawBlock(gfBlock, SdVolume::CACHE_FOR_READ)){
   2f7b8:	40 e0       	ldi	r20, 0x00	; 0
   2f7ba:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   2f7be:	88 23       	and	r24, r24
   2f7c0:	f9 f0       	breq	.+62     	; 0x2f800 <SdFile::gfEnsureBlock() [clone .constprop.243]+0x76>
            return false;
        }
        // terminate with a '\n'
        const uint32_t terminateOfs = fileSize_ - gfOffset;
   2f7c2:	20 91 41 17 	lds	r18, 0x1741	; 0x801741 <card+0x2b3>
   2f7c6:	30 91 42 17 	lds	r19, 0x1742	; 0x801742 <card+0x2b4>
   2f7ca:	40 91 31 17 	lds	r20, 0x1731	; 0x801731 <card+0x2a3>
   2f7ce:	50 91 32 17 	lds	r21, 0x1732	; 0x801732 <card+0x2a4>
   2f7d2:	60 91 33 17 	lds	r22, 0x1733	; 0x801733 <card+0x2a5>
   2f7d6:	70 91 34 17 	lds	r23, 0x1734	; 0x801734 <card+0x2a6>
   2f7da:	42 1b       	sub	r20, r18
   2f7dc:	53 0b       	sbc	r21, r19
   2f7de:	61 09       	sbc	r22, r1
   2f7e0:	71 09       	sbc	r23, r1
        vol_->cache()->data[ terminateOfs < 512 ? terminateOfs : 512 ] = '\n';
   2f7e2:	41 30       	cpi	r20, 0x01	; 1
   2f7e4:	92 e0       	ldi	r25, 0x02	; 2
   2f7e6:	59 07       	cpc	r21, r25
   2f7e8:	61 05       	cpc	r22, r1
   2f7ea:	71 05       	cpc	r23, r1
   2f7ec:	20 f0       	brcs	.+8      	; 0x2f7f6 <SdFile::gfEnsureBlock() [clone .constprop.243]+0x6c>
   2f7ee:	40 e0       	ldi	r20, 0x00	; 0
   2f7f0:	52 e0       	ldi	r21, 0x02	; 2
   2f7f2:	60 e0       	ldi	r22, 0x00	; 0
   2f7f4:	70 e0       	ldi	r23, 0x00	; 0
   2f7f6:	43 56       	subi	r20, 0x63	; 99
   2f7f8:	51 4f       	sbci	r21, 0xF1	; 241
   2f7fa:	9a e0       	ldi	r25, 0x0A	; 10
   2f7fc:	fa 01       	movw	r30, r20
   2f7fe:	90 83       	st	Z, r25
    }
    return true;
}
   2f800:	1f 91       	pop	r17
   2f802:	0f 91       	pop	r16
   2f804:	08 95       	ret
        }
        // terminate with a '\n'
        const uint32_t terminateOfs = fileSize_ - gfOffset;
        vol_->cache()->data[ terminateOfs < 512 ? terminateOfs : 512 ] = '\n';
    }
    return true;
   2f806:	81 e0       	ldi	r24, 0x01	; 1
   2f808:	fb cf       	rjmp	.-10     	; 0x2f800 <SdFile::gfEnsureBlock() [clone .constprop.243]+0x76>

0002f80a <twi_start(unsigned char, unsigned char) [clone .constprop.239]>:
}


static uint8_t twi_start(uint8_t address, uint8_t reg)
   2f80a:	cf 93       	push	r28
   2f80c:	df 93       	push	r29
   2f80e:	d8 2f       	mov	r29, r24
{
  // send start condition
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTA);
   2f810:	84 ea       	ldi	r24, 0xA4	; 164
   2f812:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_START))
   2f816:	88 e0       	ldi	r24, 0x08	; 8
   2f818:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   2f81c:	81 11       	cpse	r24, r1
   2f81e:	16 c0       	rjmp	.+44     	; 0x2f84c <twi_start(unsigned char, unsigned char) [clone .constprop.239]+0x42>
      return 1;

  // send address
  TWDR = TW_WRITE | (address << 1);
   2f820:	8a ee       	ldi	r24, 0xEA	; 234
   2f822:	80 93 bb 00 	sts	0x00BB, r24	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
  TWCR = _BV(TWEN) | _BV(TWINT);
   2f826:	c4 e8       	ldi	r28, 0x84	; 132
   2f828:	c0 93 bc 00 	sts	0x00BC, r28	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_MT_SLA_ACK))
   2f82c:	88 e1       	ldi	r24, 0x18	; 24
   2f82e:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   2f832:	81 11       	cpse	r24, r1
   2f834:	0f c0       	rjmp	.+30     	; 0x2f854 <twi_start(unsigned char, unsigned char) [clone .constprop.239]+0x4a>
      return 2;

  // send register
  TWDR = reg;
   2f836:	d0 93 bb 00 	sts	0x00BB, r29	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
  TWCR = _BV(TWEN) | _BV(TWINT);
   2f83a:	c0 93 bc 00 	sts	0x00BC, r28	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_MT_DATA_ACK))
   2f83e:	88 e2       	ldi	r24, 0x28	; 40
   2f840:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   2f844:	88 23       	and	r24, r24
   2f846:	19 f0       	breq	.+6      	; 0x2f84e <twi_start(unsigned char, unsigned char) [clone .constprop.239]+0x44>
      return 3;
   2f848:	83 e0       	ldi	r24, 0x03	; 3
   2f84a:	01 c0       	rjmp	.+2      	; 0x2f84e <twi_start(unsigned char, unsigned char) [clone .constprop.239]+0x44>
static uint8_t twi_start(uint8_t address, uint8_t reg)
{
  // send start condition
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTA);
  if(twi_wait(TW_START))
      return 1;
   2f84c:	81 e0       	ldi	r24, 0x01	; 1
  TWCR = _BV(TWEN) | _BV(TWINT);
  if(twi_wait(TW_MT_DATA_ACK))
      return 3;

  return 0;
}
   2f84e:	df 91       	pop	r29
   2f850:	cf 91       	pop	r28
   2f852:	08 95       	ret

  // send address
  TWDR = TW_WRITE | (address << 1);
  TWCR = _BV(TWEN) | _BV(TWINT);
  if(twi_wait(TW_MT_SLA_ACK))
      return 2;
   2f854:	82 e0       	ldi	r24, 0x02	; 2
   2f856:	fb cf       	rjmp	.-10     	; 0x2f84e <twi_start(unsigned char, unsigned char) [clone .constprop.239]+0x44>

0002f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>:
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { ret = stepCount; }
    return ret;
}

void PAT9125_sensor::resetStepCount() {
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { stepCount = 0; }
   2f858:	8f b7       	in	r24, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   2f85a:	f8 94       	cli
   2f85c:	10 92 bc 17 	sts	0x17BC, r1	; 0x8017bc <fsensor+0x12>
   2f860:	10 92 bb 17 	sts	0x17BB, r1	; 0x8017bb <fsensor+0x11>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   2f864:	8f bf       	out	0x3f, r24	; 63
}
   2f866:	08 95       	ret

0002f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>:
        eeprom_update_byte_notify((uint8_t *)EEPROM_FSENSOR_ACTION_NA, (uint8_t)state);
    }
}

void Filament_sensor::settings_init_common() {
    bool enabled = eeprom_read_byte((uint8_t *)EEPROM_FSENSOR);
   2f868:	87 e6       	ldi	r24, 0x67	; 103
   2f86a:	9f e0       	ldi	r25, 0x0F	; 15
   2f86c:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2f870:	91 e0       	ldi	r25, 0x01	; 1
   2f872:	81 11       	cpse	r24, r1
   2f874:	01 c0       	rjmp	.+2      	; 0x2f878 <PAT9125_sensor::settings_init() [clone .constprop.231]+0x10>
   2f876:	90 e0       	ldi	r25, 0x00	; 0
    if ((state != State::disabled) != enabled) {
   2f878:	81 e0       	ldi	r24, 0x01	; 1
   2f87a:	20 91 aa 17 	lds	r18, 0x17AA	; 0x8017aa <fsensor>
   2f87e:	21 11       	cpse	r18, r1
   2f880:	01 c0       	rjmp	.+2      	; 0x2f884 <PAT9125_sensor::settings_init() [clone .constprop.231]+0x1c>
   2f882:	80 e0       	ldi	r24, 0x00	; 0
   2f884:	98 13       	cpse	r25, r24
        state = enabled ? State::initializing : State::disabled;
   2f886:	90 93 aa 17 	sts	0x17AA, r25	; 0x8017aa <fsensor>
    }

    autoLoadEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED);
   2f88a:	87 e0       	ldi	r24, 0x07	; 7
   2f88c:	9f e0       	ldi	r25, 0x0F	; 15
   2f88e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2f892:	91 e0       	ldi	r25, 0x01	; 1
   2f894:	81 11       	cpse	r24, r1
   2f896:	01 c0       	rjmp	.+2      	; 0x2f89a <PAT9125_sensor::settings_init() [clone .constprop.231]+0x32>
   2f898:	90 e0       	ldi	r25, 0x00	; 0
   2f89a:	90 93 ab 17 	sts	0x17AB, r25	; 0x8017ab <fsensor+0x1>
    runoutEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_RUNOUT_ENABLED);
   2f89e:	85 ed       	ldi	r24, 0xD5	; 213
   2f8a0:	9e e0       	ldi	r25, 0x0E	; 14
   2f8a2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2f8a6:	91 e0       	ldi	r25, 0x01	; 1
   2f8a8:	81 11       	cpse	r24, r1
   2f8aa:	01 c0       	rjmp	.+2      	; 0x2f8ae <PAT9125_sensor::settings_init() [clone .constprop.231]+0x46>
   2f8ac:	90 e0       	ldi	r25, 0x00	; 0
   2f8ae:	90 93 ac 17 	sts	0x17AC, r25	; 0x8017ac <fsensor+0x2>
    sensorActionOnError = (SensorActionOnError)eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_ACTION_NA);
   2f8b2:	87 e4       	ldi	r24, 0x47	; 71
   2f8b4:	9d e0       	ldi	r25, 0x0D	; 13
   2f8b6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    if (sensorActionOnError == SensorActionOnError::_Undef) {
   2f8ba:	8f 3f       	cpi	r24, 0xFF	; 255
   2f8bc:	c9 f0       	breq	.+50     	; 0x2f8f0 <PAT9125_sensor::settings_init() [clone .constprop.231]+0x88>
        state = enabled ? State::initializing : State::disabled;
    }

    autoLoadEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED);
    runoutEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_RUNOUT_ENABLED);
    sensorActionOnError = (SensorActionOnError)eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_ACTION_NA);
   2f8be:	80 93 b2 17 	sts	0x17B2, r24	; 0x8017b2 <fsensor+0x8>
}

void PAT9125_sensor::settings_init() {
//    puts_P(PSTR("settings_init"));
    Filament_sensor::settings_init_common();
    setJamDetectionEnabled(eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_JAM_DETECTION));
   2f8c2:	8d ea       	ldi	r24, 0xAD	; 173
   2f8c4:	9c e0       	ldi	r25, 0x0C	; 12
   2f8c6:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2f8ca:	91 e0       	ldi	r25, 0x01	; 1
   2f8cc:	81 11       	cpse	r24, r1
   2f8ce:	01 c0       	rjmp	.+2      	; 0x2f8d2 <PAT9125_sensor::settings_init() [clone .constprop.231]+0x6a>
   2f8d0:	90 e0       	ldi	r25, 0x00	; 0
    return fsensorDetected;
}
#endif

void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
    jamDetection = state;
   2f8d2:	90 93 b8 17 	sts	0x17B8, r25	; 0x8017b8 <fsensor+0xe>
    oldPos = pat9125_y;
   2f8d6:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   2f8da:	90 91 90 0e 	lds	r25, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   2f8de:	90 93 ba 17 	sts	0x17BA, r25	; 0x8017ba <fsensor+0x10>
   2f8e2:	80 93 b9 17 	sts	0x17B9, r24	; 0x8017b9 <fsensor+0xf>
    resetStepCount();
   2f8e6:	0f 94 2c 7c 	call	0x2f858	; 0x2f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>
    jamErrCnt = 0;
   2f8ea:	10 92 bf 17 	sts	0x17BF, r1	; 0x8017bf <fsensor+0x15>

void PAT9125_sensor::settings_init() {
//    puts_P(PSTR("settings_init"));
    Filament_sensor::settings_init_common();
    setJamDetectionEnabled(eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_JAM_DETECTION));
}
   2f8ee:	08 95       	ret

    autoLoadEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED);
    runoutEnabled = eeprom_read_byte((uint8_t *)EEPROM_FSENS_RUNOUT_ENABLED);
    sensorActionOnError = (SensorActionOnError)eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_ACTION_NA);
    if (sensorActionOnError == SensorActionOnError::_Undef) {
        sensorActionOnError = SensorActionOnError::_Continue;
   2f8f0:	10 92 b2 17 	sts	0x17B2, r1	; 0x8017b2 <fsensor+0x8>
   2f8f4:	e6 cf       	rjmp	.-52     	; 0x2f8c2 <PAT9125_sensor::settings_init() [clone .constprop.231]+0x5a>

0002f8f6 <PAT9125_sensor::init() [clone .constprop.230]>:
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_IR) || (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)

#if (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
void PAT9125_sensor::init() {
    if (state == State::error) {
   2f8f6:	80 91 aa 17 	lds	r24, 0x17AA	; 0x8017aa <fsensor>
   2f8fa:	83 30       	cpi	r24, 0x03	; 3
   2f8fc:	21 f4       	brne	.+8      	; 0x2f906 <PAT9125_sensor::init() [clone .constprop.230]+0x10>
}

void PAT9125_sensor::deinit() {
//    puts_P(PSTR("fsensor::deinit()"));
    ; //
    state = State::disabled;
   2f8fe:	10 92 aa 17 	sts	0x17AA, r1	; 0x8017aa <fsensor>
    filter = 0;
   2f902:	10 92 b6 17 	sts	0x17B6, r1	; 0x8017b6 <fsensor+0xc>
    if (state == State::error) {
        deinit(); // deinit first if there was an error.
    }
//    puts_P(PSTR("fsensor::init()"));

    settings_init(); // also sets the state to State::initializing
   2f906:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
    int16_t stepCount;
    int16_t chunkSteps;
    uint8_t jamErrCnt;

    constexpr void calcChunkSteps(float u) {
        chunkSteps = (int16_t)(1.25 * u); //[mm]
   2f90a:	20 e0       	ldi	r18, 0x00	; 0
   2f90c:	30 e0       	ldi	r19, 0x00	; 0
   2f90e:	40 ea       	ldi	r20, 0xA0	; 160
   2f910:	5f e3       	ldi	r21, 0x3F	; 63
   2f912:	60 91 ce 0d 	lds	r22, 0x0DCE	; 0x800dce <cs+0x10>
   2f916:	70 91 cf 0d 	lds	r23, 0x0DCF	; 0x800dcf <cs+0x11>
   2f91a:	80 91 d0 0d 	lds	r24, 0x0DD0	; 0x800dd0 <cs+0x12>
   2f91e:	90 91 d1 0d 	lds	r25, 0x0DD1	; 0x800dd1 <cs+0x13>
   2f922:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   2f926:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   2f92a:	70 93 be 17 	sts	0x17BE, r23	; 0x8017be <fsensor+0x14>
   2f92e:	60 93 bd 17 	sts	0x17BD, r22	; 0x8017bd <fsensor+0x13>


void twi_init(void)
{
  // activate internal pullups for SDA
  SET_INPUT(SDA_PIN);
   2f932:	51 98       	cbi	0x0a, 1	; 10
  WRITE(SDA_PIN, 1);
   2f934:	59 9a       	sbi	0x0b, 1	; 11

  // start with the SDA pulled low
  WRITE(SCL_PIN, 0);
   2f936:	58 98       	cbi	0x0b, 0	; 11
  SET_OUTPUT(SCL_PIN);
   2f938:	50 9a       	sbi	0x0a, 0	; 10
   2f93a:	8a e0       	ldi	r24, 0x0A	; 10

  // clock 10 cycles to make sure that the sensor is not stuck in a register read.
  for (uint8_t i = 0; i < 10; i++) {
    WRITE(SCL_PIN, 1);
   2f93c:	58 9a       	sbi	0x0b, 0	; 11
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   2f93e:	95 e0       	ldi	r25, 0x05	; 5
   2f940:	9a 95       	dec	r25
   2f942:	f1 f7       	brne	.-4      	; 0x2f940 <PAT9125_sensor::init() [clone .constprop.230]+0x4a>
   2f944:	00 00       	nop
    _delay_us((1000000 / TWI_FREQ) / 2);
    WRITE(SCL_PIN, 0);
   2f946:	58 98       	cbi	0x0b, 0	; 11
   2f948:	95 e0       	ldi	r25, 0x05	; 5
   2f94a:	9a 95       	dec	r25
   2f94c:	f1 f7       	brne	.-4      	; 0x2f94a <PAT9125_sensor::init() [clone .constprop.230]+0x54>
   2f94e:	00 00       	nop
   2f950:	81 50       	subi	r24, 0x01	; 1
  // start with the SDA pulled low
  WRITE(SCL_PIN, 0);
  SET_OUTPUT(SCL_PIN);

  // clock 10 cycles to make sure that the sensor is not stuck in a register read.
  for (uint8_t i = 0; i < 10; i++) {
   2f952:	a1 f7       	brne	.-24     	; 0x2f93c <PAT9125_sensor::init() [clone .constprop.230]+0x46>
    WRITE(SCL_PIN, 0);
    _delay_us((1000000 / TWI_FREQ) / 2);
  }

  // activate internal pullups for SCL
  SET_INPUT(SCL_PIN);
   2f954:	50 98       	cbi	0x0a, 0	; 10
  WRITE(SCL_PIN, 1);
   2f956:	58 9a       	sbi	0x0b, 0	; 11

  // initialize twi prescaler and bit rate
  TWSR &= ~(_BV(TWPS0) | _BV(TWPS1));
   2f958:	80 91 b9 00 	lds	r24, 0x00B9	; 0x8000b9 <__TEXT_REGION_LENGTH__+0x7c20b9>
   2f95c:	8c 7f       	andi	r24, 0xFC	; 252
   2f95e:	80 93 b9 00 	sts	0x00B9, r24	; 0x8000b9 <__TEXT_REGION_LENGTH__+0x7c20b9>
  TWBR = ((F_CPU / TWI_FREQ) - 16) / 2;
   2f962:	8c e0       	ldi	r24, 0x0C	; 12
   2f964:	80 93 b8 00 	sts	0x00B8, r24	; 0x8000b8 <__TEXT_REGION_LENGTH__+0x7c20b8>


uint8_t twi_check(uint8_t address)
{
    // send start condition
    TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTA);
   2f968:	84 ea       	ldi	r24, 0xA4	; 164
   2f96a:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
    if(twi_wait(TW_START))
   2f96e:	88 e0       	ldi	r24, 0x08	; 8
   2f970:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   2f974:	81 11       	cpse	r24, r1
   2f976:	68 c0       	rjmp	.+208    	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
        return 1;

      // send address
    TWDR = TW_WRITE | (address << 1);
   2f978:	8a ee       	ldi	r24, 0xEA	; 234
   2f97a:	80 93 bb 00 	sts	0x00BB, r24	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
    TWCR = _BV(TWEN) | _BV(TWINT);
   2f97e:	84 e8       	ldi	r24, 0x84	; 132
   2f980:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
    if(twi_wait(TW_MT_SLA_ACK))
   2f984:	88 e1       	ldi	r24, 0x18	; 24
   2f986:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   2f98a:	81 11       	cpse	r24, r1
   2f98c:	5d c0       	rjmp	.+186    	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
}


static void twi_stop()
{
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTO);
   2f98e:	84 e9       	ldi	r24, 0x94	; 148
   2f990:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
{
	if (!pat9125_probe())
		return 0;

// Switch to bank0, not allowed to perform pat9125_wr_reg_verify on this register.
	pat9125_wr_reg(PAT9125_BANK_SELECTION, 0);
   2f994:	60 e0       	ldi	r22, 0x00	; 0
   2f996:	8f e7       	ldi	r24, 0x7F	; 127
   2f998:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>

	// Verify that the sensor responds with its correct product ID.
	pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1);
   2f99c:	80 e0       	ldi	r24, 0x00	; 0
   2f99e:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2f9a2:	80 93 bd 0d 	sts	0x0DBD, r24	; 0x800dbd <pat9125_PID1>
	pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2);
   2f9a6:	81 e0       	ldi	r24, 0x01	; 1
   2f9a8:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2f9ac:	80 93 bc 0d 	sts	0x0DBC, r24	; 0x800dbc <pat9125_PID2>
	if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91))
   2f9b0:	90 91 bd 0d 	lds	r25, 0x0DBD	; 0x800dbd <pat9125_PID1>
   2f9b4:	91 33       	cpi	r25, 0x31	; 49
   2f9b6:	b9 f5       	brne	.+110    	; 0x2fa26 <PAT9125_sensor::init() [clone .constprop.230]+0x130>
   2f9b8:	81 39       	cpi	r24, 0x91	; 145
   2f9ba:	a9 f5       	brne	.+106    	; 0x2fa26 <PAT9125_sensor::init() [clone .constprop.230]+0x130>
	}

#if PAT9125_NEW_INIT
	// Software reset (i.e. set bit7 to 1). It will reset to 0 automatically.
	// pat9125_wr_reg_verify is not allowed because the register contents will change as soon as they are written. No point in verifying those.
	pat9125_wr_reg(PAT9125_CONFIG, 0x97);
   2f9bc:	67 e9       	ldi	r22, 0x97	; 151
   2f9be:	86 e0       	ldi	r24, 0x06	; 6
   2f9c0:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   2f9c4:	8f e9       	ldi	r24, 0x9F	; 159
   2f9c6:	9f e0       	ldi	r25, 0x0F	; 15
   2f9c8:	01 97       	sbiw	r24, 0x01	; 1
   2f9ca:	f1 f7       	brne	.-4      	; 0x2f9c8 <PAT9125_sensor::init() [clone .constprop.230]+0xd2>
   2f9cc:	00 c0       	rjmp	.+0      	; 0x2f9ce <PAT9125_sensor::init() [clone .constprop.230]+0xd8>
   2f9ce:	00 00       	nop
	// Wait until the sensor reboots.
	_delay_ms(1);

	//Write init sequence in bank0. MUST ALREADY BE IN bank0.
	if (!pat9125_wr_seq(pat9125_init_bank0))
   2f9d0:	82 e1       	ldi	r24, 0x12	; 18
   2f9d2:	9a ea       	ldi	r25, 0xAA	; 170
   2f9d4:	0f 94 95 c2 	call	0x3852a	; 0x3852a <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]>
   2f9d8:	88 23       	and	r24, r24
   2f9da:	b1 f1       	breq	.+108    	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
   2f9dc:	8f e3       	ldi	r24, 0x3F	; 63
   2f9de:	9c e9       	ldi	r25, 0x9C	; 156
   2f9e0:	01 97       	sbiw	r24, 0x01	; 1
   2f9e2:	f1 f7       	brne	.-4      	; 0x2f9e0 <PAT9125_sensor::init() [clone .constprop.230]+0xea>
   2f9e4:	00 c0       	rjmp	.+0      	; 0x2f9e6 <PAT9125_sensor::init() [clone .constprop.230]+0xf0>
   2f9e6:	00 00       	nop
		return 0;

	_delay_ms(10); // not sure why this is here. But I'll allow it.

	// Switch to bank1, not allowed to perform pat9125_wr_reg_verify on this register.
	pat9125_wr_reg(PAT9125_BANK_SELECTION, 0x01);
   2f9e8:	61 e0       	ldi	r22, 0x01	; 1
   2f9ea:	8f e7       	ldi	r24, 0x7F	; 127
   2f9ec:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>
	//Write init sequence in bank1. MUST ALREADY BE IN bank1.
	if (!pat9125_wr_seq(pat9125_init_bank1))
   2f9f0:	8f ed       	ldi	r24, 0xDF	; 223
   2f9f2:	99 ea       	ldi	r25, 0xA9	; 169
   2f9f4:	0f 94 95 c2 	call	0x3852a	; 0x3852a <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]>
   2f9f8:	88 23       	and	r24, r24
   2f9fa:	31 f1       	breq	.+76     	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
		return 0;

	// Switch to bank0, not allowed to perform pat9125_wr_reg_verify on this register.
	pat9125_wr_reg(PAT9125_BANK_SELECTION, 0x00);
   2f9fc:	60 e0       	ldi	r22, 0x00	; 0
   2f9fe:	8f e7       	ldi	r24, 0x7F	; 127
   2fa00:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>

	// Enable write protect.
	pat9125_wr_reg(PAT9125_WP, 0x00); //prevents writing to registers over 0x09
   2fa04:	60 e0       	ldi	r22, 0x00	; 0
   2fa06:	89 e0       	ldi	r24, 0x09	; 9
   2fa08:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>

	pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1);
   2fa0c:	80 e0       	ldi	r24, 0x00	; 0
   2fa0e:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2fa12:	80 93 bd 0d 	sts	0x0DBD, r24	; 0x800dbd <pat9125_PID1>
	pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2);
   2fa16:	81 e0       	ldi	r24, 0x01	; 1
   2fa18:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2fa1c:	80 93 bc 0d 	sts	0x0DBC, r24	; 0x800dbc <pat9125_PID2>
        deinit();
        triggerError();
        ; //
    }
#ifdef IR_SENSOR_PIN
    else if (!READ(IR_SENSOR_PIN)) {
   2fa20:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   2fa24:	08 95       	ret
	// Verify that the sensor responds with its correct product ID.
	pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1);
	pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2);
	if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91))
	{
		pat9125_PID1 = pat9125_rd_reg(PAT9125_PID1);
   2fa26:	80 e0       	ldi	r24, 0x00	; 0
   2fa28:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2fa2c:	80 93 bd 0d 	sts	0x0DBD, r24	; 0x800dbd <pat9125_PID1>
		pat9125_PID2 = pat9125_rd_reg(PAT9125_PID2);
   2fa30:	81 e0       	ldi	r24, 0x01	; 1
   2fa32:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   2fa36:	80 93 bc 0d 	sts	0x0DBC, r24	; 0x800dbc <pat9125_PID2>
		if ((pat9125_PID1 != 0x31) || (pat9125_PID2 != 0x91))
   2fa3a:	90 91 bd 0d 	lds	r25, 0x0DBD	; 0x800dbd <pat9125_PID1>
   2fa3e:	91 33       	cpi	r25, 0x31	; 49
   2fa40:	19 f4       	brne	.+6      	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
   2fa42:	81 39       	cpi	r24, 0x91	; 145
   2fa44:	09 f4       	brne	.+2      	; 0x2fa48 <PAT9125_sensor::init() [clone .constprop.230]+0x152>
   2fa46:	ba cf       	rjmp	.-140    	; 0x2f9bc <PAT9125_sensor::init() [clone .constprop.230]+0xc6>

void PAT9125_sensor::deinit() {
//    puts_P(PSTR("fsensor::deinit()"));
    ; //
    state = State::disabled;
    filter = 0;
   2fa48:	10 92 b6 17 	sts	0x17B6, r1	; 0x8017b6 <fsensor+0xc>
    eeprom_increment_word((uint16_t *)EEPROM_FERROR_COUNT_TOT);
    enquecommand_front_P(MSG_M600);
}

void Filament_sensor::triggerError() {
    state = State::error;
   2fa4c:	83 e0       	ldi	r24, 0x03	; 3
   2fa4e:	80 93 aa 17 	sts	0x17AA, r24	; 0x8017aa <fsensor>
#ifdef IR_SENSOR_PIN
    else if (!READ(IR_SENSOR_PIN)) {
        ; // MK3 fw on MK3S printer
    }
#endif // IR_SENSOR_PIN
}
   2fa52:	08 95       	ret

0002fa54 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]>:
    eeprom_increment_byte((uint8_t *)EEPROM_FERROR_COUNT);
    eeprom_increment_word((uint16_t *)EEPROM_FERROR_COUNT_TOT);
    enquecommand_front_P(MSG_M600);
}

bool PAT9125_sensor::updatePAT9125() {
   2fa54:	cf 93       	push	r28
   2fa56:	df 93       	push	r29
    if (jamDetection) {
   2fa58:	80 91 b8 17 	lds	r24, 0x17B8	; 0x8017b8 <fsensor+0xe>
   2fa5c:	88 23       	and	r24, r24
   2fa5e:	09 f4       	brne	.+2      	; 0x2fa62 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0xe>
   2fa60:	62 c0       	rjmp	.+196    	; 0x2fb26 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0xd2>
    setJamDetectionEnabled(eeprom_read_byte((uint8_t *)EEPROM_FSENSOR_JAM_DETECTION));
}

int16_t PAT9125_sensor::getStepCount() {
    int16_t ret;
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { ret = stepCount; }
   2fa62:	8f b7       	in	r24, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   2fa64:	f8 94       	cli
   2fa66:	c0 91 bb 17 	lds	r28, 0x17BB	; 0x8017bb <fsensor+0x11>
   2fa6a:	d0 91 bc 17 	lds	r29, 0x17BC	; 0x8017bc <fsensor+0x12>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   2fa6e:	8f bf       	out	0x3f, r24	; 63
}

bool PAT9125_sensor::updatePAT9125() {
    if (jamDetection) {
        int16_t _stepCount = getStepCount();
        if (abs(_stepCount) >= chunkSteps) { // end of chunk. Check distance
   2fa70:	ce 01       	movw	r24, r28
   2fa72:	d7 ff       	sbrs	r29, 7
   2fa74:	04 c0       	rjmp	.+8      	; 0x2fa7e <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x2a>
   2fa76:	88 27       	eor	r24, r24
   2fa78:	99 27       	eor	r25, r25
   2fa7a:	8c 1b       	sub	r24, r28
   2fa7c:	9d 0b       	sbc	r25, r29
   2fa7e:	20 91 bd 17 	lds	r18, 0x17BD	; 0x8017bd <fsensor+0x13>
   2fa82:	30 91 be 17 	lds	r19, 0x17BE	; 0x8017be <fsensor+0x14>
   2fa86:	82 17       	cp	r24, r18
   2fa88:	93 07       	cpc	r25, r19
   2fa8a:	4c f1       	brlt	.+82     	; 0x2fade <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x8a>
            resetStepCount();
   2fa8c:	0f 94 2c 7c 	call	0x2f858	; 0x2f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>
            if (!pat9125_update()) { // get up to date data. reinit on error.
   2fa90:	0f 94 b3 c2 	call	0x38566	; 0x38566 <pat9125_update()>
   2fa94:	81 11       	cpse	r24, r1
   2fa96:	02 c0       	rjmp	.+4      	; 0x2fa9c <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x48>
                init();              // try to reinit.
   2fa98:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
            }
            bool fsDir = (pat9125_y - oldPos) > 0;
   2fa9c:	20 91 8f 0e 	lds	r18, 0x0E8F	; 0x800e8f <pat9125_y>
   2faa0:	30 91 90 0e 	lds	r19, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   2faa4:	80 91 bf 17 	lds	r24, 0x17BF	; 0x8017bf <fsensor+0x15>
   2faa8:	40 91 b9 17 	lds	r20, 0x17B9	; 0x8017b9 <fsensor+0xf>
   2faac:	50 91 ba 17 	lds	r21, 0x17BA	; 0x8017ba <fsensor+0x10>
   2fab0:	b9 01       	movw	r22, r18
   2fab2:	64 1b       	sub	r22, r20
   2fab4:	75 0b       	sbc	r23, r21
   2fab6:	41 e0       	ldi	r20, 0x01	; 1
   2fab8:	16 16       	cp	r1, r22
   2faba:	17 06       	cpc	r1, r23
   2fabc:	0c f0       	brlt	.+2      	; 0x2fac0 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x6c>
   2fabe:	40 e0       	ldi	r20, 0x00	; 0
            bool stDir = _stepCount > 0;
   2fac0:	91 e0       	ldi	r25, 0x01	; 1
   2fac2:	1c 16       	cp	r1, r28
   2fac4:	1d 06       	cpc	r1, r29
   2fac6:	0c f0       	brlt	.+2      	; 0x2faca <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x76>
   2fac8:	90 e0       	ldi	r25, 0x00	; 0
            if (fsDir != stDir) {
   2faca:	49 17       	cp	r20, r25
   2facc:	09 f4       	brne	.+2      	; 0x2fad0 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x7c>
   2face:	63 c0       	rjmp	.+198    	; 0x2fb96 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x142>
                jamErrCnt++;
   2fad0:	8f 5f       	subi	r24, 0xFF	; 255
            } else if (jamErrCnt) {
                jamErrCnt--;
   2fad2:	80 93 bf 17 	sts	0x17BF, r24	; 0x8017bf <fsensor+0x15>
            }
            oldPos = pat9125_y;
   2fad6:	30 93 ba 17 	sts	0x17BA, r19	; 0x8017ba <fsensor+0x10>
   2fada:	20 93 b9 17 	sts	0x17B9, r18	; 0x8017b9 <fsensor+0xf>
        }
        if (jamErrCnt > 10) {
   2fade:	80 91 bf 17 	lds	r24, 0x17BF	; 0x8017bf <fsensor+0x15>
   2fae2:	8b 30       	cpi	r24, 0x0B	; 11
   2fae4:	00 f1       	brcs	.+64     	; 0x2fb26 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0xd2>
            jamErrCnt = 0;
   2fae6:	10 92 bf 17 	sts	0x17BF, r1	; 0x8017bf <fsensor+0x15>
void PAT9125_sensor::resetStepCount() {
    ATOMIC_BLOCK(ATOMIC_RESTORESTATE) { stepCount = 0; }
}

void PAT9125_sensor::filJam() {
    runoutEnabled = false;
   2faea:	10 92 ac 17 	sts	0x17AC, r1	; 0x8017ac <fsensor+0x2>
    autoLoadEnabled = false;
   2faee:	10 92 ab 17 	sts	0x17AB, r1	; 0x8017ab <fsensor+0x1>
    jamDetection = false;
   2faf2:	10 92 b8 17 	sts	0x17B8, r1	; 0x8017b8 <fsensor+0xe>
    stop_and_save_print_to_ram(0, 0);
   2faf6:	20 e0       	ldi	r18, 0x00	; 0
   2faf8:	30 e0       	ldi	r19, 0x00	; 0
   2fafa:	a9 01       	movw	r20, r18
   2fafc:	ca 01       	movw	r24, r20
   2fafe:	b9 01       	movw	r22, r18
   2fb00:	0e 94 c6 88 	call	0x1118c	; 0x1118c <stop_and_save_print_to_ram(float, float)>
    restore_print_from_ram_and_continue(0);
   2fb04:	60 e0       	ldi	r22, 0x00	; 0
   2fb06:	70 e0       	ldi	r23, 0x00	; 0
   2fb08:	cb 01       	movw	r24, r22
   2fb0a:	0e 94 cb 67 	call	0xcf96	; 0xcf96 <restore_print_from_ram_and_continue(float)>
    eeprom_increment_byte((uint8_t *)EEPROM_FERROR_COUNT);
   2fb0e:	85 e6       	ldi	r24, 0x65	; 101
   2fb10:	9f e0       	ldi	r25, 0x0F	; 15
   2fb12:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t *)EEPROM_FERROR_COUNT_TOT);
   2fb16:	81 e0       	ldi	r24, 0x01	; 1
   2fb18:	9f e0       	ldi	r25, 0x0F	; 15
   2fb1a:	0e 94 a2 75 	call	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>
    enquecommand_front_P(MSG_M600);
   2fb1e:	88 e4       	ldi	r24, 0x48	; 72
   2fb20:	90 e7       	ldi	r25, 0x70	; 112
   2fb22:	0f 94 3f 76 	call	0x2ec7e	; 0x2ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>
            jamErrCnt = 0;
            filJam();
        }
    }

    if (pollingTimer.expired_cont(pollingPeriod)) {
   2fb26:	6a e0       	ldi	r22, 0x0A	; 10
   2fb28:	70 e0       	ldi	r23, 0x00	; 0
   2fb2a:	83 eb       	ldi	r24, 0xB3	; 179
   2fb2c:	97 e1       	ldi	r25, 0x17	; 23
   2fb2e:	0f 94 b2 2a 	call	0x25564	; 0x25564 <Timer<unsigned short>::expired_cont(unsigned short)>
   2fb32:	c8 2f       	mov	r28, r24
   2fb34:	88 23       	and	r24, r24
   2fb36:	39 f1       	breq	.+78     	; 0x2fb86 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x132>
        pollingTimer.start();
   2fb38:	83 eb       	ldi	r24, 0xB3	; 179
   2fb3a:	97 e1       	ldi	r25, 0x17	; 23
   2fb3c:	0f 94 b9 2a 	call	0x25572	; 0x25572 <Timer<unsigned short>::start()>
        if (!pat9125_update()) {
   2fb40:	0f 94 b3 c2 	call	0x38566	; 0x38566 <pat9125_update()>
   2fb44:	81 11       	cpse	r24, r1
   2fb46:	02 c0       	rjmp	.+4      	; 0x2fb4c <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0xf8>
            init(); // try to reinit.
   2fb48:	0f 94 7b 7c 	call	0x2f8f6	; 0x2f8f6 <PAT9125_sensor::init() [clone .constprop.230]>
        }

        bool present = (pat9125_s < 17) || (pat9125_s >= 17 && pat9125_b >= 50);
   2fb4c:	80 91 bb 0d 	lds	r24, 0x0DBB	; 0x800dbb <pat9125_s>
   2fb50:	81 31       	cpi	r24, 0x11	; 17
   2fb52:	30 f0       	brcs	.+12     	; 0x2fb60 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x10c>
   2fb54:	c1 e0       	ldi	r28, 0x01	; 1
   2fb56:	80 91 ba 0d 	lds	r24, 0x0DBA	; 0x800dba <pat9125_b>
   2fb5a:	82 33       	cpi	r24, 0x32	; 50
   2fb5c:	08 f4       	brcc	.+2      	; 0x2fb60 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x10c>
   2fb5e:	c0 e0       	ldi	r28, 0x00	; 0
   2fb60:	80 91 b6 17 	lds	r24, 0x17B6	; 0x8017b6 <fsensor+0xc>
        if (present != filterFilPresent) {
   2fb64:	20 91 b7 17 	lds	r18, 0x17B7	; 0x8017b7 <fsensor+0xd>
   2fb68:	30 e0       	ldi	r19, 0x00	; 0
   2fb6a:	c2 17       	cp	r28, r18
   2fb6c:	13 06       	cpc	r1, r19
   2fb6e:	c1 f0       	breq	.+48     	; 0x2fba0 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x14c>
            filter++;
   2fb70:	8f 5f       	subi	r24, 0xFF	; 255
        } else if (filter) {
            filter--;
   2fb72:	80 93 b6 17 	sts	0x17B6, r24	; 0x8017b6 <fsensor+0xc>
        }
        if (filter >= filterCnt) {
   2fb76:	80 91 b6 17 	lds	r24, 0x17B6	; 0x8017b6 <fsensor+0xc>
   2fb7a:	85 30       	cpi	r24, 0x05	; 5
   2fb7c:	20 f0       	brcs	.+8      	; 0x2fb86 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x132>
            filter = 0;
   2fb7e:	10 92 b6 17 	sts	0x17B6, r1	; 0x8017b6 <fsensor+0xc>
            filterFilPresent = present;
   2fb82:	c0 93 b7 17 	sts	0x17B7, r28	; 0x8017b7 <fsensor+0xd>
        }
    }
    return (filter == 0); // return stability
   2fb86:	81 e0       	ldi	r24, 0x01	; 1
   2fb88:	90 91 b6 17 	lds	r25, 0x17B6	; 0x8017b6 <fsensor+0xc>
   2fb8c:	91 11       	cpse	r25, r1
   2fb8e:	80 e0       	ldi	r24, 0x00	; 0
}
   2fb90:	df 91       	pop	r29
   2fb92:	cf 91       	pop	r28
   2fb94:	08 95       	ret
            }
            bool fsDir = (pat9125_y - oldPos) > 0;
            bool stDir = _stepCount > 0;
            if (fsDir != stDir) {
                jamErrCnt++;
            } else if (jamErrCnt) {
   2fb96:	88 23       	and	r24, r24
   2fb98:	09 f4       	brne	.+2      	; 0x2fb9c <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x148>
   2fb9a:	9d cf       	rjmp	.-198    	; 0x2fad6 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x82>
                jamErrCnt--;
   2fb9c:	81 50       	subi	r24, 0x01	; 1
   2fb9e:	99 cf       	rjmp	.-206    	; 0x2fad2 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x7e>
        }

        bool present = (pat9125_s < 17) || (pat9125_s >= 17 && pat9125_b >= 50);
        if (present != filterFilPresent) {
            filter++;
        } else if (filter) {
   2fba0:	88 23       	and	r24, r24
   2fba2:	49 f3       	breq	.-46     	; 0x2fb76 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x122>
            filter--;
   2fba4:	81 50       	subi	r24, 0x01	; 1
   2fba6:	e5 cf       	rjmp	.-54     	; 0x2fb72 <PAT9125_sensor::updatePAT9125() [clone .constprop.226]+0x11e>

0002fba8 <CardReader::presort() [clone .constprop.218]>:
* We can do this in 3 ways...
*  - Minimal RAM: Read two filenames at a time sorting along...
*  - Some RAM: Buffer the directory just for this sort
*  - Most RAM: Buffer the directory and return filenames from RAM
*/
void CardReader::presort() {
   2fba8:	2f 92       	push	r2
   2fbaa:	3f 92       	push	r3
   2fbac:	4f 92       	push	r4
   2fbae:	5f 92       	push	r5
   2fbb0:	6f 92       	push	r6
   2fbb2:	7f 92       	push	r7
   2fbb4:	8f 92       	push	r8
   2fbb6:	9f 92       	push	r9
   2fbb8:	af 92       	push	r10
   2fbba:	bf 92       	push	r11
   2fbbc:	cf 92       	push	r12
   2fbbe:	df 92       	push	r13
   2fbc0:	ef 92       	push	r14
   2fbc2:	ff 92       	push	r15
   2fbc4:	0f 93       	push	r16
   2fbc6:	1f 93       	push	r17
   2fbc8:	cf 93       	push	r28
   2fbca:	df 93       	push	r29
   2fbcc:	cd b7       	in	r28, 0x3d	; 61
   2fbce:	de b7       	in	r29, 0x3e	; 62
   2fbd0:	ed 97       	sbiw	r28, 0x3d	; 61
   2fbd2:	0f b6       	in	r0, 0x3f	; 63
   2fbd4:	f8 94       	cli
   2fbd6:	de bf       	out	0x3e, r29	; 62
   2fbd8:	0f be       	out	0x3f, r0	; 63
   2fbda:	cd bf       	out	0x3d, r28	; 61

	KEEPALIVE_STATE(NOT_BUSY);
}

void CardReader::flush_presort() {
	sort_count = 0;
   2fbdc:	10 92 32 16 	sts	0x1632, r1	; 0x801632 <card+0x1a4>
   2fbe0:	10 92 31 16 	sts	0x1631, r1	; 0x801631 <card+0x1a3>
	lastSortedFilePosition = 0;
   2fbe4:	10 92 fc 16 	sts	0x16FC, r1	; 0x8016fc <card+0x26e>
   2fbe8:	10 92 fb 16 	sts	0x16FB, r1	; 0x8016fb <card+0x26d>
*/
void CardReader::presort() {
	// Throw away old sort index
	flush_presort();

	if (IS_SD_INSERTED == false) return; //sorting is not used in farm mode
   2fbec:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   2fbf0:	80 fd       	sbrc	r24, 0
   2fbf2:	ef c0       	rjmp	.+478    	; 0x2fdd2 <CardReader::presort() [clone .constprop.218]+0x22a>
	uint8_t sdSort = eeprom_read_byte((uint8_t*)EEPROM_SD_SORT);
   2fbf4:	89 e0       	ldi	r24, 0x09	; 9
   2fbf6:	9f e0       	ldi	r25, 0x0F	; 15
   2fbf8:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   2fbfc:	38 2e       	mov	r3, r24

	KEEPALIVE_STATE(IN_HANDLER);
   2fbfe:	82 e0       	ldi	r24, 0x02	; 2
   2fc00:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

	// If there are files, sort up to the limit
	uint16_t fileCnt = getnrfilenames();
   2fc04:	0f 94 16 7b 	call	0x2f62c	; 0x2f62c <CardReader::getnrfilenames() [clone .constprop.260]>
   2fc08:	6c 01       	movw	r12, r24
	if (fileCnt > 0) {
   2fc0a:	00 97       	sbiw	r24, 0x00	; 0
   2fc0c:	09 f4       	brne	.+2      	; 0x2fc10 <CardReader::presort() [clone .constprop.218]+0x68>
   2fc0e:	de c0       	rjmp	.+444    	; 0x2fdcc <CardReader::presort() [clone .constprop.218]+0x224>
		// Never sort more than the max allowed
		// If you use folders to organize, 20 may be enough
		if (fileCnt > SDSORT_LIMIT) {
   2fc10:	85 36       	cpi	r24, 0x65	; 101
   2fc12:	91 05       	cpc	r25, r1
   2fc14:	60 f0       	brcs	.+24     	; 0x2fc2e <CardReader::presort() [clone .constprop.218]+0x86>
			if ((sdSort != SD_SORT_NONE) && !farm_mode) {
   2fc16:	32 e0       	ldi	r19, 0x02	; 2
   2fc18:	33 16       	cp	r3, r19
   2fc1a:	31 f0       	breq	.+12     	; 0x2fc28 <CardReader::presort() [clone .constprop.218]+0x80>
				lcd_show_fullscreen_message_and_wait_P(_T(MSG_FILE_CNT));
   2fc1c:	8e eb       	ldi	r24, 0xBE	; 190
   2fc1e:	9b e5       	ldi	r25, 0x5B	; 91
   2fc20:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2fc24:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			}
			fileCnt = SDSORT_LIMIT;
   2fc28:	f4 e6       	ldi	r31, 0x64	; 100
   2fc2a:	cf 2e       	mov	r12, r31
   2fc2c:	d1 2c       	mov	r13, r1
		}

		sort_count = fileCnt;
   2fc2e:	d0 92 32 16 	sts	0x1632, r13	; 0x801632 <card+0x1a4>
   2fc32:	c0 92 31 16 	sts	0x1631, r12	; 0x801631 <card+0x1a3>
   2fc36:	63 e3       	ldi	r22, 0x33	; 51
   2fc38:	66 2e       	mov	r6, r22
   2fc3a:	66 e1       	ldi	r22, 0x16	; 22
   2fc3c:	76 2e       	mov	r7, r22

		// Init sort order.
		for (uint16_t i = 0; i < fileCnt; i++) {
   2fc3e:	f1 2c       	mov	r15, r1
   2fc40:	e1 2c       	mov	r14, r1
	lsDive("", *curDir, match, LS_GetFilename);
}

void CardReader::getfilename_next(uint32_t position, const char * const match/*=NULL*/)
{
	curDir = &workDir;
   2fc42:	7b e3       	ldi	r23, 0x3B	; 59
   2fc44:	a7 2e       	mov	r10, r23
   2fc46:	75 e1       	ldi	r23, 0x15	; 21
   2fc48:	b7 2e       	mov	r11, r23
	nrFiles = 1;
   2fc4a:	88 24       	eor	r8, r8
   2fc4c:	83 94       	inc	r8
   2fc4e:	91 2c       	mov	r9, r1

		sort_count = fileCnt;

		// Init sort order.
		for (uint16_t i = 0; i < fileCnt; i++) {
			if (!IS_SD_INSERTED) return;
   2fc50:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   2fc54:	80 fd       	sbrc	r24, 0
   2fc56:	bd c0       	rjmp	.+378    	; 0x2fdd2 <CardReader::presort() [clone .constprop.218]+0x22a>
			manage_heater();
   2fc58:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
			if (i == 0)
   2fc5c:	e1 14       	cp	r14, r1
   2fc5e:	f1 04       	cpc	r15, r1
   2fc60:	09 f0       	breq	.+2      	; 0x2fc64 <CardReader::presort() [clone .constprop.218]+0xbc>
   2fc62:	d0 c0       	rjmp	.+416    	; 0x2fe04 <CardReader::presort() [clone .constprop.218]+0x25c>
				getfilename(0);
   2fc64:	90 e0       	ldi	r25, 0x00	; 0
   2fc66:	80 e0       	ldi	r24, 0x00	; 0
   2fc68:	0f 94 80 7a 	call	0x2f500	; 0x2f500 <CardReader::getfilename(unsigned int, char const*) [clone .constprop.259]>
			else
				getfilename_next(position);
			sort_entries[i] = position >> 5;
   2fc6c:	80 91 a3 14 	lds	r24, 0x14A3	; 0x8014a3 <card+0x15>
   2fc70:	90 91 a4 14 	lds	r25, 0x14A4	; 0x8014a4 <card+0x16>
   2fc74:	a0 91 a5 14 	lds	r26, 0x14A5	; 0x8014a5 <card+0x17>
   2fc78:	b0 91 a6 14 	lds	r27, 0x14A6	; 0x8014a6 <card+0x18>
   2fc7c:	55 e0       	ldi	r21, 0x05	; 5
   2fc7e:	b6 95       	lsr	r27
   2fc80:	a7 95       	ror	r26
   2fc82:	97 95       	ror	r25
   2fc84:	87 95       	ror	r24
   2fc86:	5a 95       	dec	r21
   2fc88:	d1 f7       	brne	.-12     	; 0x2fc7e <CardReader::presort() [clone .constprop.218]+0xd6>
   2fc8a:	f3 01       	movw	r30, r6
   2fc8c:	81 93       	st	Z+, r24
   2fc8e:	91 93       	st	Z+, r25
   2fc90:	3f 01       	movw	r6, r30
		}

		sort_count = fileCnt;

		// Init sort order.
		for (uint16_t i = 0; i < fileCnt; i++) {
   2fc92:	ff ef       	ldi	r31, 0xFF	; 255
   2fc94:	ef 1a       	sub	r14, r31
   2fc96:	ff 0a       	sbc	r15, r31
   2fc98:	ce 14       	cp	r12, r14
   2fc9a:	df 04       	cpc	r13, r15
   2fc9c:	c9 f6       	brne	.-78     	; 0x2fc50 <CardReader::presort() [clone .constprop.218]+0xa8>
			else
				getfilename_next(position);
			sort_entries[i] = position >> 5;
		}

		if ((fileCnt > 1) && (sdSort != SD_SORT_NONE) && !farm_mode) {
   2fc9e:	21 e0       	ldi	r18, 0x01	; 1
   2fca0:	e2 16       	cp	r14, r18
   2fca2:	f1 04       	cpc	r15, r1
   2fca4:	09 f4       	brne	.+2      	; 0x2fca8 <CardReader::presort() [clone .constprop.218]+0x100>
   2fca6:	92 c0       	rjmp	.+292    	; 0x2fdcc <CardReader::presort() [clone .constprop.218]+0x224>
   2fca8:	32 e0       	ldi	r19, 0x02	; 2
   2fcaa:	33 16       	cp	r3, r19
   2fcac:	09 f4       	brne	.+2      	; 0x2fcb0 <CardReader::presort() [clone .constprop.218]+0x108>
   2fcae:	8e c0       	rjmp	.+284    	; 0x2fdcc <CardReader::presort() [clone .constprop.218]+0x224>

#ifdef SORTING_SPEEDTEST
			LongTimer sortingSpeedtestTimer;
			sortingSpeedtestTimer.start();
#endif //SORTING_SPEEDTEST
			lastSortedFilePosition = position >> 5;
   2fcb0:	90 93 fc 16 	sts	0x16FC, r25	; 0x8016fc <card+0x26e>
   2fcb4:	80 93 fb 16 	sts	0x16FB, r24	; 0x8016fb <card+0x26d>
#define _SORT_CMP_DIR(fs) ((dir1 == filenameIsDir) ? _SORT_CMP_NODIR() : (fs < 0 ? dir1 : !dir1))
#define _SORT_CMP_TIME_DIR(fs) ((dir1 == filenameIsDir) ? _SORT_CMP_TIME_NODIR() : (fs < 0 ? dir1 : !dir1))
#endif

      uint16_t counter = 0;
      menu_progressbar_init(fileCnt * fileCnt / 2, _T(MSG_SORTING_FILES));
   2fcb8:	8e ea       	ldi	r24, 0xAE	; 174
   2fcba:	9b e5       	ldi	r25, 0x5B	; 91
   2fcbc:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   2fcc0:	ee 9c       	mul	r14, r14
   2fcc2:	90 01       	movw	r18, r0
   2fcc4:	ef 9c       	mul	r14, r15
   2fcc6:	30 0d       	add	r19, r0
   2fcc8:	30 0d       	add	r19, r0
   2fcca:	11 24       	eor	r1, r1
   2fccc:	bc 01       	movw	r22, r24
   2fcce:	c9 01       	movw	r24, r18
   2fcd0:	96 95       	lsr	r25
   2fcd2:	87 95       	ror	r24
   2fcd4:	0f 94 37 d0 	call	0x3a06e	; 0x3a06e <menu_progressbar_init(unsigned int, char const*)>
   2fcd8:	35 e3       	ldi	r19, 0x35	; 53
   2fcda:	a3 2e       	mov	r10, r19
   2fcdc:	36 e1       	ldi	r19, 0x16	; 22
   2fcde:	b3 2e       	mov	r11, r19
#if HAS_FOLDER_SORTING
#define _SORT_CMP_DIR(fs) ((dir1 == filenameIsDir) ? _SORT_CMP_NODIR() : (fs < 0 ? dir1 : !dir1))
#define _SORT_CMP_TIME_DIR(fs) ((dir1 == filenameIsDir) ? _SORT_CMP_TIME_NODIR() : (fs < 0 ? dir1 : !dir1))
#endif

      uint16_t counter = 0;
   2fce0:	91 2c       	mov	r9, r1
   2fce2:	81 2c       	mov	r8, r1
      menu_progressbar_init(fileCnt * fileCnt / 2, _T(MSG_SORTING_FILES));

      for (uint16_t i = 1; i < fileCnt; ++i){
   2fce4:	cc 24       	eor	r12, r12
   2fce6:	c3 94       	inc	r12
   2fce8:	d1 2c       	mov	r13, r1
        // if (!IS_SD_INSERTED) return;
        menu_progressbar_update(counter);
   2fcea:	c4 01       	movw	r24, r8
   2fcec:	0f 94 08 d0 	call	0x3a010	; 0x3a010 <menu_progressbar_update(unsigned int)>
        counter += i;
   2fcf0:	8c 0c       	add	r8, r12
   2fcf2:	9d 1c       	adc	r9, r13

        /// pop the position
        const uint16_t o1 = sort_entries[i];
   2fcf4:	f5 01       	movw	r30, r10
   2fcf6:	01 90       	ld	r0, Z+
   2fcf8:	f0 81       	ld	r31, Z
   2fcfa:	e0 2d       	mov	r30, r0
   2fcfc:	f9 af       	std	Y+57, r31	; 0x39
   2fcfe:	e8 af       	std	Y+56, r30	; 0x38
        getfilename_simple(o1);
   2fd00:	cf 01       	movw	r24, r30
   2fd02:	0f 94 c7 7a 	call	0x2f58e	; 0x2f58e <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]>
        strcpy(name1, LONGEST_FILENAME); // save (or getfilename below will trounce it)
   2fd06:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2fd0a:	62 e9       	ldi	r22, 0x92	; 146
   2fd0c:	74 e1       	ldi	r23, 0x14	; 20
   2fd0e:	88 23       	and	r24, r24
   2fd10:	11 f0       	breq	.+4      	; 0x2fd16 <CardReader::presort() [clone .constprop.218]+0x16e>
   2fd12:	67 ea       	ldi	r22, 0xA7	; 167
   2fd14:	74 e1       	ldi	r23, 0x14	; 20
   2fd16:	ce 01       	movw	r24, r28
   2fd18:	01 96       	adiw	r24, 0x01	; 1
   2fd1a:	0f 94 c6 e2 	call	0x3c58c	; 0x3c58c <strcpy>
        crmod_date_bckp = crmodDate;
   2fd1e:	60 90 a1 14 	lds	r6, 0x14A1	; 0x8014a1 <card+0x13>
   2fd22:	70 90 a2 14 	lds	r7, 0x14A2	; 0x8014a2 <card+0x14>
        crmod_time_bckp = crmodTime;
   2fd26:	20 91 9f 14 	lds	r18, 0x149F	; 0x80149f <card+0x11>
   2fd2a:	30 91 a0 14 	lds	r19, 0x14A0	; 0x8014a0 <card+0x12>
   2fd2e:	3b af       	std	Y+59, r19	; 0x3b
   2fd30:	2a af       	std	Y+58, r18	; 0x3a
        #if HAS_FOLDER_SORTING
        bool dir1 = filenameIsDir;
   2fd32:	20 90 dc 14 	lds	r2, 0x14DC	; 0x8014dc <card+0x4e>
   2fd36:	bf aa       	std	Y+55, r11	; 0x37
   2fd38:	ae aa       	std	Y+54, r10	; 0x36
   2fd3a:	86 01       	movw	r16, r12
        #endif

        /// find proper place
        uint16_t j = i;
        for (; j > 0; --j){
          if (!IS_SD_INSERTED) return;
   2fd3c:	80 91 03 01 	lds	r24, 0x0103	; 0x800103 <__TEXT_REGION_LENGTH__+0x7c2103>
   2fd40:	80 fd       	sbrc	r24, 0
   2fd42:	47 c0       	rjmp	.+142    	; 0x2fdd2 <CardReader::presort() [clone .constprop.218]+0x22a>
            printf_P(PSTR("%2u "), sort_entries[z]);
          }
          MYSERIAL.println();
          #endif

          manage_heater();
   2fd44:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
          const uint16_t o2 = sort_entries[j - 1];
   2fd48:	c8 01       	movw	r24, r16
   2fd4a:	01 97       	sbiw	r24, 0x01	; 1
   2fd4c:	9d af       	std	Y+61, r25	; 0x3d
   2fd4e:	8c af       	std	Y+60, r24	; 0x3c
   2fd50:	ee a9       	ldd	r30, Y+54	; 0x36
   2fd52:	ff a9       	ldd	r31, Y+55	; 0x37
   2fd54:	52 90       	ld	r5, -Z
   2fd56:	42 90       	ld	r4, -Z
   2fd58:	ff ab       	std	Y+55, r31	; 0x37
   2fd5a:	ee ab       	std	Y+54, r30	; 0x36

          getfilename_simple(o2);
   2fd5c:	c2 01       	movw	r24, r4
   2fd5e:	0f 94 c7 7a 	call	0x2f58e	; 0x2f58e <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]>
          char *name2 = LONGEST_FILENAME; // use the string in-place
   2fd62:	80 91 a7 14 	lds	r24, 0x14A7	; 0x8014a7 <card+0x19>
   2fd66:	62 e9       	ldi	r22, 0x92	; 146
   2fd68:	74 e1       	ldi	r23, 0x14	; 20
   2fd6a:	88 23       	and	r24, r24
   2fd6c:	11 f0       	breq	.+4      	; 0x2fd72 <CardReader::presort() [clone .constprop.218]+0x1ca>
   2fd6e:	67 ea       	ldi	r22, 0xA7	; 167
   2fd70:	74 e1       	ldi	r23, 0x14	; 20

          // Sort the current pair according to settings.
          if (
   2fd72:	31 10       	cpse	r3, r1
   2fd74:	8a c0       	rjmp	.+276    	; 0x2fe8a <CardReader::presort() [clone .constprop.218]+0x2e2>
   2fd76:	80 91 dc 14 	lds	r24, 0x14DC	; 0x8014dc <card+0x4e>
   2fd7a:	28 12       	cpse	r2, r24
   2fd7c:	83 c0       	rjmp	.+262    	; 0x2fe84 <CardReader::presort() [clone .constprop.218]+0x2dc>
          #if HAS_FOLDER_SORTING
            (sdSort == SD_SORT_TIME && _SORT_CMP_TIME_DIR(FOLDER_SORTING)) || (sdSort == SD_SORT_ALPHA && !_SORT_CMP_DIR(FOLDER_SORTING))
   2fd7e:	80 91 a1 14 	lds	r24, 0x14A1	; 0x8014a1 <card+0x13>
   2fd82:	90 91 a2 14 	lds	r25, 0x14A2	; 0x8014a2 <card+0x14>
   2fd86:	68 16       	cp	r6, r24
   2fd88:	79 06       	cpc	r7, r25
   2fd8a:	09 f0       	breq	.+2      	; 0x2fd8e <CardReader::presort() [clone .constprop.218]+0x1e6>
   2fd8c:	6c c0       	rjmp	.+216    	; 0x2fe66 <CardReader::presort() [clone .constprop.218]+0x2be>
   2fd8e:	80 91 9f 14 	lds	r24, 0x149F	; 0x80149f <card+0x11>
   2fd92:	90 91 a0 14 	lds	r25, 0x14A0	; 0x8014a0 <card+0x12>
   2fd96:	2a ad       	ldd	r18, Y+58	; 0x3a
   2fd98:	3b ad       	ldd	r19, Y+59	; 0x3b
   2fd9a:	82 17       	cp	r24, r18
   2fd9c:	93 07       	cpc	r25, r19
   2fd9e:	08 f0       	brcs	.+2      	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>
   2fda0:	66 c0       	rjmp	.+204    	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>
            #endif
            sort_entries[j] = o2;
          }
        }
        /// place the position
        sort_entries[j] = o1;
   2fda2:	00 0f       	add	r16, r16
   2fda4:	11 1f       	adc	r17, r17
   2fda6:	f8 01       	movw	r30, r16
   2fda8:	ed 5c       	subi	r30, 0xCD	; 205
   2fdaa:	f9 4e       	sbci	r31, 0xE9	; 233
   2fdac:	28 ad       	ldd	r18, Y+56	; 0x38
   2fdae:	39 ad       	ldd	r19, Y+57	; 0x39
   2fdb0:	31 83       	std	Z+1, r19	; 0x01
   2fdb2:	20 83       	st	Z, r18
#endif

      uint16_t counter = 0;
      menu_progressbar_init(fileCnt * fileCnt / 2, _T(MSG_SORTING_FILES));

      for (uint16_t i = 1; i < fileCnt; ++i){
   2fdb4:	3f ef       	ldi	r19, 0xFF	; 255
   2fdb6:	c3 1a       	sub	r12, r19
   2fdb8:	d3 0a       	sbc	r13, r19
   2fdba:	82 e0       	ldi	r24, 0x02	; 2
   2fdbc:	a8 0e       	add	r10, r24
   2fdbe:	b1 1c       	adc	r11, r1
   2fdc0:	ec 14       	cp	r14, r12
   2fdc2:	fd 04       	cpc	r15, r13
   2fdc4:	09 f0       	breq	.+2      	; 0x2fdc8 <CardReader::presort() [clone .constprop.218]+0x220>
   2fdc6:	91 cf       	rjmp	.-222    	; 0x2fcea <CardReader::presort() [clone .constprop.218]+0x142>
			for (uint16_t z = 0; z < fileCnt; z++)
				printf_P(PSTR("%2u "), sort_entries[z]);
			SERIAL_PROTOCOLLN();
			#endif

			menu_progressbar_finish();
   2fdc8:	0f 94 29 d0 	call	0x3a052	; 0x3a052 <menu_progressbar_finish()>
		}
	}

	KEEPALIVE_STATE(NOT_BUSY);
   2fdcc:	81 e0       	ldi	r24, 0x01	; 1
   2fdce:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
}
   2fdd2:	ed 96       	adiw	r28, 0x3d	; 61
   2fdd4:	0f b6       	in	r0, 0x3f	; 63
   2fdd6:	f8 94       	cli
   2fdd8:	de bf       	out	0x3e, r29	; 62
   2fdda:	0f be       	out	0x3f, r0	; 63
   2fddc:	cd bf       	out	0x3d, r28	; 61
   2fdde:	df 91       	pop	r29
   2fde0:	cf 91       	pop	r28
   2fde2:	1f 91       	pop	r17
   2fde4:	0f 91       	pop	r16
   2fde6:	ff 90       	pop	r15
   2fde8:	ef 90       	pop	r14
   2fdea:	df 90       	pop	r13
   2fdec:	cf 90       	pop	r12
   2fdee:	bf 90       	pop	r11
   2fdf0:	af 90       	pop	r10
   2fdf2:	9f 90       	pop	r9
   2fdf4:	8f 90       	pop	r8
   2fdf6:	7f 90       	pop	r7
   2fdf8:	6f 90       	pop	r6
   2fdfa:	5f 90       	pop	r5
   2fdfc:	4f 90       	pop	r4
   2fdfe:	3f 90       	pop	r3
   2fe00:	2f 90       	pop	r2
   2fe02:	08 95       	ret
			if (!IS_SD_INSERTED) return;
			manage_heater();
			if (i == 0)
				getfilename(0);
			else
				getfilename_next(position);
   2fe04:	40 91 a3 14 	lds	r20, 0x14A3	; 0x8014a3 <card+0x15>
   2fe08:	50 91 a4 14 	lds	r21, 0x14A4	; 0x8014a4 <card+0x16>
   2fe0c:	60 91 a5 14 	lds	r22, 0x14A5	; 0x8014a5 <card+0x17>
   2fe10:	70 91 a6 14 	lds	r23, 0x14A6	; 0x8014a6 <card+0x18>
	lsDive("", *curDir, match, LS_GetFilename);
}

void CardReader::getfilename_next(uint32_t position, const char * const match/*=NULL*/)
{
	curDir = &workDir;
   2fe14:	b0 92 3a 15 	sts	0x153A, r11	; 0x80153a <card+0xac>
   2fe18:	a0 92 39 15 	sts	0x1539, r10	; 0x801539 <card+0xab>
	nrFiles = 1;
   2fe1c:	90 92 a9 17 	sts	0x17A9, r9	; 0x8017a9 <card+0x31b>
   2fe20:	80 92 a8 17 	sts	0x17A8, r8	; 0x8017a8 <card+0x31a>
	curDir->seekSet(position);
   2fe24:	8b e3       	ldi	r24, 0x3B	; 59
   2fe26:	95 e1       	ldi	r25, 0x15	; 21
   2fe28:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
   2fe2c:	1e 7f       	andi	r17, 0xFE	; 254
   2fe2e:	1d 7f       	andi	r17, 0xFD	; 253
	lsDive("", *curDir, match, LS_GetFilename);
   2fe30:	e0 91 39 15 	lds	r30, 0x1539	; 0x801539 <card+0xab>
   2fe34:	f0 91 3a 15 	lds	r31, 0x153A	; 0x80153a <card+0xac>
   2fe38:	83 e2       	ldi	r24, 0x23	; 35
   2fe3a:	de 01       	movw	r26, r28
   2fe3c:	11 96       	adiw	r26, 0x01	; 1
   2fe3e:	01 90       	ld	r0, Z+
   2fe40:	0d 92       	st	X+, r0
   2fe42:	8a 95       	dec	r24
   2fe44:	e1 f7       	brne	.-8      	; 0x2fe3e <CardReader::presort() [clone .constprop.218]+0x296>
   2fe46:	01 2f       	mov	r16, r17
   2fe48:	22 e0       	ldi	r18, 0x02	; 2
   2fe4a:	50 e0       	ldi	r21, 0x00	; 0
   2fe4c:	40 e0       	ldi	r20, 0x00	; 0
   2fe4e:	be 01       	movw	r22, r28
   2fe50:	6f 5f       	subi	r22, 0xFF	; 255
   2fe52:	7f 4f       	sbci	r23, 0xFF	; 255
   2fe54:	89 ef       	ldi	r24, 0xF9	; 249
   2fe56:	92 e0       	ldi	r25, 0x02	; 2
   2fe58:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   2fe5c:	ce 01       	movw	r24, r28
   2fe5e:	01 96       	adiw	r24, 0x01	; 1
   2fe60:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
   2fe64:	03 cf       	rjmp	.-506    	; 0x2fc6c <CardReader::presort() [clone .constprop.218]+0xc4>
          char *name2 = LONGEST_FILENAME; // use the string in-place

          // Sort the current pair according to settings.
          if (
          #if HAS_FOLDER_SORTING
            (sdSort == SD_SORT_TIME && _SORT_CMP_TIME_DIR(FOLDER_SORTING)) || (sdSort == SD_SORT_ALPHA && !_SORT_CMP_DIR(FOLDER_SORTING))
   2fe66:	86 15       	cp	r24, r6
   2fe68:	97 05       	cpc	r25, r7
   2fe6a:	08 f4       	brcc	.+2      	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>
   2fe6c:	9a cf       	rjmp	.-204    	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>
            break;
          } else {
            #ifdef SORTING_DUMP
            puts_P(PSTR("shift"));
            #endif
            sort_entries[j] = o2;
   2fe6e:	ee a9       	ldd	r30, Y+54	; 0x36
   2fe70:	ff a9       	ldd	r31, Y+55	; 0x37
   2fe72:	53 82       	std	Z+3, r5	; 0x03
   2fe74:	42 82       	std	Z+2, r4	; 0x02
   2fe76:	0c ad       	ldd	r16, Y+60	; 0x3c
   2fe78:	1d ad       	ldd	r17, Y+61	; 0x3d
        bool dir1 = filenameIsDir;
        #endif

        /// find proper place
        uint16_t j = i;
        for (; j > 0; --j){
   2fe7a:	01 15       	cp	r16, r1
   2fe7c:	11 05       	cpc	r17, r1
   2fe7e:	09 f0       	breq	.+2      	; 0x2fe82 <CardReader::presort() [clone .constprop.218]+0x2da>
   2fe80:	5d cf       	rjmp	.-326    	; 0x2fd3c <CardReader::presort() [clone .constprop.218]+0x194>
   2fe82:	8f cf       	rjmp	.-226    	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>
          char *name2 = LONGEST_FILENAME; // use the string in-place

          // Sort the current pair according to settings.
          if (
          #if HAS_FOLDER_SORTING
            (sdSort == SD_SORT_TIME && _SORT_CMP_TIME_DIR(FOLDER_SORTING)) || (sdSort == SD_SORT_ALPHA && !_SORT_CMP_DIR(FOLDER_SORTING))
   2fe84:	22 20       	and	r2, r2
   2fe86:	99 f3       	breq	.-26     	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>
   2fe88:	8c cf       	rjmp	.-232    	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>
   2fe8a:	31 e0       	ldi	r19, 0x01	; 1
   2fe8c:	33 12       	cpse	r3, r19
   2fe8e:	ef cf       	rjmp	.-34     	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>

          getfilename_simple(o2);
          char *name2 = LONGEST_FILENAME; // use the string in-place

          // Sort the current pair according to settings.
          if (
   2fe90:	80 91 dc 14 	lds	r24, 0x14DC	; 0x8014dc <card+0x4e>
   2fe94:	28 12       	cpse	r2, r24
   2fe96:	07 c0       	rjmp	.+14     	; 0x2fea6 <CardReader::presort() [clone .constprop.218]+0x2fe>
          #if HAS_FOLDER_SORTING
            (sdSort == SD_SORT_TIME && _SORT_CMP_TIME_DIR(FOLDER_SORTING)) || (sdSort == SD_SORT_ALPHA && !_SORT_CMP_DIR(FOLDER_SORTING))
   2fe98:	ce 01       	movw	r24, r28
   2fe9a:	01 96       	adiw	r24, 0x01	; 1
   2fe9c:	0f 94 94 e2 	call	0x3c528	; 0x3c528 <strcasecmp>
   2fea0:	97 fd       	sbrc	r25, 7
   2fea2:	e5 cf       	rjmp	.-54     	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>
   2fea4:	7e cf       	rjmp	.-260    	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>
   2fea6:	21 10       	cpse	r2, r1
   2fea8:	e2 cf       	rjmp	.-60     	; 0x2fe6e <CardReader::presort() [clone .constprop.218]+0x2c6>
   2feaa:	7b cf       	rjmp	.-266    	; 0x2fda2 <CardReader::presort() [clone .constprop.218]+0x1fa>

0002feac <CardReader::chdir(char const*, bool) [clone .constprop.224]>:
  lsDive("",*curDir, NULL, LS_Count);
  //SERIAL_ECHOLN(nrFiles);
  return nrFiles;
}

bool CardReader::chdir(const char * relpath, bool doPresort)
   2feac:	cf 92       	push	r12
   2feae:	df 92       	push	r13
   2feb0:	ef 92       	push	r14
   2feb2:	ff 92       	push	r15
   2feb4:	0f 93       	push	r16
   2feb6:	1f 93       	push	r17
   2feb8:	cf 93       	push	r28
   2feba:	df 93       	push	r29
   2febc:	cd b7       	in	r28, 0x3d	; 61
   2febe:	de b7       	in	r29, 0x3e	; 62
   2fec0:	a3 97       	sbiw	r28, 0x23	; 35
   2fec2:	0f b6       	in	r0, 0x3f	; 63
   2fec4:	f8 94       	cli
   2fec6:	de bf       	out	0x3e, r29	; 62
   2fec8:	0f be       	out	0x3f, r0	; 63
   2feca:	cd bf       	out	0x3d, r28	; 61
   2fecc:	7c 01       	movw	r14, r24
   2fece:	06 2f       	mov	r16, r22
 * \brief Base class for SdFile with Print and C++ streams.
 */
class SdBaseFile {
 public:
  /** Create an instance. */
  SdBaseFile() : writeError(false), type_(FAT_FILE_TYPE_CLOSED) {}
   2fed0:	19 82       	std	Y+1, r1	; 0x01
   2fed2:	1c 82       	std	Y+4, r1	; 0x04
{
  SdFile newfile;
  SdFile *parent=&root;

  if(workDir.isOpen())
   2fed4:	80 91 3e 15 	lds	r24, 0x153E	; 0x80153e <card+0xb0>
    parent=&workDir;
   2fed8:	9b e3       	ldi	r25, 0x3B	; 59
   2feda:	c9 2e       	mov	r12, r25
   2fedc:	95 e1       	ldi	r25, 0x15	; 21
   2fede:	d9 2e       	mov	r13, r25
bool CardReader::chdir(const char * relpath, bool doPresort)
{
  SdFile newfile;
  SdFile *parent=&root;

  if(workDir.isOpen())
   2fee0:	81 11       	cpse	r24, r1
   2fee2:	04 c0       	rjmp	.+8      	; 0x2feec <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x40>
}

bool CardReader::chdir(const char * relpath, bool doPresort)
{
  SdFile newfile;
  SdFile *parent=&root;
   2fee4:	86 e1       	ldi	r24, 0x16	; 22
   2fee6:	c8 2e       	mov	r12, r24
   2fee8:	85 e1       	ldi	r24, 0x15	; 21
   2feea:	d8 2e       	mov	r13, r24
   * OR of flags O_READ, O_WRITE, O_TRUNC, and O_SYNC.
   * \return true for success or false for failure.
   */
  bool open(SdBaseFile& dirFile, // NOLINT
    const char* path, uint8_t oflag) {
    return open(&dirFile, path, oflag);
   2feec:	21 e0       	ldi	r18, 0x01	; 1
   2feee:	a7 01       	movw	r20, r14
   2fef0:	b6 01       	movw	r22, r12
   2fef2:	ce 01       	movw	r24, r28
   2fef4:	01 96       	adiw	r24, 0x01	; 1
   2fef6:	0f 94 5a 65 	call	0x2cab4	; 0x2cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>
   2fefa:	18 2f       	mov	r17, r24

  if(workDir.isOpen())
    parent=&workDir;

  if(!newfile.open(*parent,relpath, O_READ) || ((workDirDepth + 1) >= MAX_DIR_DEPTH))
   2fefc:	88 23       	and	r24, r24
   2fefe:	21 f1       	breq	.+72     	; 0x2ff48 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x9c>
   2ff00:	80 91 30 16 	lds	r24, 0x1630	; 0x801630 <card+0x1a2>
   2ff04:	85 30       	cpi	r24, 0x05	; 5
   2ff06:	00 f5       	brcc	.+64     	; 0x2ff48 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x9c>
   SERIAL_ECHOLN(relpath);
   return 0;
  }
  else
  {
    strcpy(dir_names[workDirDepth], relpath);
   2ff08:	29 e0       	ldi	r18, 0x09	; 9
   2ff0a:	82 9f       	mul	r24, r18
   2ff0c:	c0 01       	movw	r24, r0
   2ff0e:	11 24       	eor	r1, r1
   2ff10:	b7 01       	movw	r22, r14
   2ff12:	80 52       	subi	r24, 0x20	; 32
   2ff14:	9b 4e       	sbci	r25, 0xEB	; 235
   2ff16:	0f 94 c6 e2 	call	0x3c58c	; 0x3c58c <strcpy>
    puts(relpath);
   2ff1a:	c7 01       	movw	r24, r14
   2ff1c:	0f 94 ea e2 	call	0x3c5d4	; 0x3c5d4 <puts>

    if (workDirDepth < MAX_DIR_DEPTH) {
   2ff20:	80 91 30 16 	lds	r24, 0x1630	; 0x801630 <card+0x1a2>
   2ff24:	86 30       	cpi	r24, 0x06	; 6
   2ff26:	80 f1       	brcs	.+96     	; 0x2ff88 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0xdc>
      for (uint8_t d = ++workDirDepth; d--;)
        workDirParents[d+1] = workDirParents[d];
      workDirParents[0]=*parent;
    }
    workDir=newfile;
   2ff28:	83 e2       	ldi	r24, 0x23	; 35
   2ff2a:	fe 01       	movw	r30, r28
   2ff2c:	31 96       	adiw	r30, 0x01	; 1
   2ff2e:	ab e3       	ldi	r26, 0x3B	; 59
   2ff30:	b5 e1       	ldi	r27, 0x15	; 21
   2ff32:	01 90       	ld	r0, Z+
   2ff34:	0d 92       	st	X+, r0
   2ff36:	8a 95       	dec	r24
   2ff38:	e1 f7       	brne	.-8      	; 0x2ff32 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x86>

#ifdef SDCARD_SORT_ALPHA
	if (doPresort)
   2ff3a:	00 23       	and	r16, r16
   2ff3c:	09 f4       	brne	.+2      	; 0x2ff40 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x94>
   2ff3e:	4c c0       	rjmp	.+152    	; 0x2ffd8 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x12c>
		presort();
   2ff40:	0f 94 d4 7d 	call	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
	else
		presort_flag = true;
#endif
	return 1;
   2ff44:	10 2f       	mov	r17, r16
   2ff46:	0c c0       	rjmp	.+24     	; 0x2ff60 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0xb4>
  if(workDir.isOpen())
    parent=&workDir;

  if(!newfile.open(*parent,relpath, O_READ) || ((workDirDepth + 1) >= MAX_DIR_DEPTH))
  {
   SERIAL_ECHO_START;
   2ff48:	80 ed       	ldi	r24, 0xD0	; 208
   2ff4a:	9a ea       	ldi	r25, 0xAA	; 170
   2ff4c:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   SERIAL_ECHORPGM(_n("Cannot enter subdir: "));////MSG_SD_CANT_ENTER_SUBDIR
   2ff50:	82 e3       	ldi	r24, 0x32	; 50
   2ff52:	90 e7       	ldi	r25, 0x70	; 112
   2ff54:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   SERIAL_ECHOLN(relpath);
   2ff58:	c7 01       	movw	r24, r14
   2ff5a:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   return 0;
   2ff5e:	10 e0       	ldi	r17, 0x00	; 0
   2ff60:	ce 01       	movw	r24, r28
   2ff62:	01 96       	adiw	r24, 0x01	; 1
   2ff64:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
	else
		presort_flag = true;
#endif
	return 1;
  }
}
   2ff68:	81 2f       	mov	r24, r17
   2ff6a:	a3 96       	adiw	r28, 0x23	; 35
   2ff6c:	0f b6       	in	r0, 0x3f	; 63
   2ff6e:	f8 94       	cli
   2ff70:	de bf       	out	0x3e, r29	; 62
   2ff72:	0f be       	out	0x3f, r0	; 63
   2ff74:	cd bf       	out	0x3d, r28	; 61
   2ff76:	df 91       	pop	r29
   2ff78:	cf 91       	pop	r28
   2ff7a:	1f 91       	pop	r17
   2ff7c:	0f 91       	pop	r16
   2ff7e:	ff 90       	pop	r15
   2ff80:	ef 90       	pop	r14
   2ff82:	df 90       	pop	r13
   2ff84:	cf 90       	pop	r12
   2ff86:	08 95       	ret
  {
    strcpy(dir_names[workDirDepth], relpath);
    puts(relpath);

    if (workDirDepth < MAX_DIR_DEPTH) {
      for (uint8_t d = ++workDirDepth; d--;)
   2ff88:	8f 5f       	subi	r24, 0xFF	; 255
   2ff8a:	80 93 30 16 	sts	0x1630, r24	; 0x801630 <card+0x1a2>
        workDirParents[d+1] = workDirParents[d];
   2ff8e:	93 e2       	ldi	r25, 0x23	; 35
  {
    strcpy(dir_names[workDirDepth], relpath);
    puts(relpath);

    if (workDirDepth < MAX_DIR_DEPTH) {
      for (uint8_t d = ++workDirDepth; d--;)
   2ff90:	81 50       	subi	r24, 0x01	; 1
   2ff92:	c8 f0       	brcs	.+50     	; 0x2ffc6 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x11a>
        workDirParents[d+1] = workDirParents[d];
   2ff94:	28 2f       	mov	r18, r24
   2ff96:	30 e0       	ldi	r19, 0x00	; 0
   2ff98:	a9 01       	movw	r20, r18
   2ff9a:	4f 5f       	subi	r20, 0xFF	; 255
   2ff9c:	5f 4f       	sbci	r21, 0xFF	; 255
   2ff9e:	94 9f       	mul	r25, r20
   2ffa0:	d0 01       	movw	r26, r0
   2ffa2:	95 9f       	mul	r25, r21
   2ffa4:	b0 0d       	add	r27, r0
   2ffa6:	11 24       	eor	r1, r1
   2ffa8:	a2 5a       	subi	r26, 0xA2	; 162
   2ffaa:	ba 4e       	sbci	r27, 0xEA	; 234
   2ffac:	92 9f       	mul	r25, r18
   2ffae:	f0 01       	movw	r30, r0
   2ffb0:	93 9f       	mul	r25, r19
   2ffb2:	f0 0d       	add	r31, r0
   2ffb4:	11 24       	eor	r1, r1
   2ffb6:	e2 5a       	subi	r30, 0xA2	; 162
   2ffb8:	fa 4e       	sbci	r31, 0xEA	; 234
   2ffba:	29 2f       	mov	r18, r25
   2ffbc:	01 90       	ld	r0, Z+
   2ffbe:	0d 92       	st	X+, r0
   2ffc0:	2a 95       	dec	r18
   2ffc2:	e1 f7       	brne	.-8      	; 0x2ffbc <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x110>
   2ffc4:	e5 cf       	rjmp	.-54     	; 0x2ff90 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0xe4>
      workDirParents[0]=*parent;
   2ffc6:	83 e2       	ldi	r24, 0x23	; 35
   2ffc8:	f6 01       	movw	r30, r12
   2ffca:	ae e5       	ldi	r26, 0x5E	; 94
   2ffcc:	b5 e1       	ldi	r27, 0x15	; 21
   2ffce:	01 90       	ld	r0, Z+
   2ffd0:	0d 92       	st	X+, r0
   2ffd2:	8a 95       	dec	r24
   2ffd4:	e1 f7       	brne	.-8      	; 0x2ffce <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x122>
   2ffd6:	a8 cf       	rjmp	.-176    	; 0x2ff28 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0x7c>

#ifdef SDCARD_SORT_ALPHA
	if (doPresort)
		presort();
	else
		presort_flag = true;
   2ffd8:	81 e0       	ldi	r24, 0x01	; 1
   2ffda:	80 93 df 14 	sts	0x14DF, r24	; 0x8014df <card+0x51>
   2ffde:	c0 cf       	rjmp	.-128    	; 0x2ff60 <CardReader::chdir(char const*, bool) [clone .constprop.224]+0xb4>

0002ffe0 <CardReader::cdroot(bool) [clone .constprop.217]>:
  }
}

void __attribute__((noinline)) CardReader::cdroot(bool doPresort)
{
  workDir=root;
   2ffe0:	93 e2       	ldi	r25, 0x23	; 35
   2ffe2:	e6 e1       	ldi	r30, 0x16	; 22
   2ffe4:	f5 e1       	ldi	r31, 0x15	; 21
   2ffe6:	ab e3       	ldi	r26, 0x3B	; 59
   2ffe8:	b5 e1       	ldi	r27, 0x15	; 21
   2ffea:	01 90       	ld	r0, Z+
   2ffec:	0d 92       	st	X+, r0
   2ffee:	9a 95       	dec	r25
   2fff0:	e1 f7       	brne	.-8      	; 0x2ffea <CardReader::cdroot(bool) [clone .constprop.217]+0xa>
  workDirDepth = 0;
   2fff2:	10 92 30 16 	sts	0x1630, r1	; 0x801630 <card+0x1a2>
  curDir=&workDir;
   2fff6:	2b e3       	ldi	r18, 0x3B	; 59
   2fff8:	35 e1       	ldi	r19, 0x15	; 21
   2fffa:	30 93 3a 15 	sts	0x153A, r19	; 0x80153a <card+0xac>
   2fffe:	20 93 39 15 	sts	0x1539, r18	; 0x801539 <card+0xab>
#ifdef SDCARD_SORT_ALPHA
	if (doPresort)
   30002:	81 11       	cpse	r24, r1
		presort();
   30004:	0d 94 d4 7d 	jmp	0x2fba8	; 0x2fba8 <CardReader::presort() [clone .constprop.218]>
	else
		presort_flag = true;
   30008:	81 e0       	ldi	r24, 0x01	; 1
   3000a:	80 93 df 14 	sts	0x14DF, r24	; 0x8014df <card+0x51>
#endif
}
   3000e:	08 95       	ret

00030010 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]>:
 *
 * @param[in,out] fileName
 *  expects file name including path
 *  in case of absolute path, file name without path is returned
 */
bool CardReader::diveSubfolder (const char *&fileName)
   30010:	8f 92       	push	r8
   30012:	9f 92       	push	r9
   30014:	af 92       	push	r10
   30016:	bf 92       	push	r11
   30018:	cf 92       	push	r12
   3001a:	df 92       	push	r13
   3001c:	ef 92       	push	r14
   3001e:	ff 92       	push	r15
   30020:	0f 93       	push	r16
   30022:	1f 93       	push	r17
   30024:	cf 93       	push	r28
   30026:	df 93       	push	r29
   30028:	cd b7       	in	r28, 0x3d	; 61
   3002a:	de b7       	in	r29, 0x3e	; 62
   3002c:	2d 97       	sbiw	r28, 0x0d	; 13
   3002e:	0f b6       	in	r0, 0x3f	; 63
   30030:	f8 94       	cli
   30032:	de bf       	out	0x3e, r29	; 62
   30034:	0f be       	out	0x3f, r0	; 63
   30036:	cd bf       	out	0x3d, r28	; 61
{
    curDir=&root;
   30038:	26 e1       	ldi	r18, 0x16	; 22
   3003a:	35 e1       	ldi	r19, 0x15	; 21
   3003c:	30 93 3a 15 	sts	0x153A, r19	; 0x80153a <card+0xac>
   30040:	20 93 39 15 	sts	0x1539, r18	; 0x801539 <card+0xab>
    if (!fileName)
   30044:	dc 01       	movw	r26, r24
   30046:	ed 91       	ld	r30, X+
   30048:	fc 91       	ld	r31, X
   3004a:	30 97       	sbiw	r30, 0x00	; 0
   3004c:	a1 f4       	brne	.+40     	; 0x30076 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x66>
    }
    else //relative path
    {
        curDir = &workDir;
    }
    return 1;
   3004e:	81 e0       	ldi	r24, 0x01	; 1
}
   30050:	2d 96       	adiw	r28, 0x0d	; 13
   30052:	0f b6       	in	r0, 0x3f	; 63
   30054:	f8 94       	cli
   30056:	de bf       	out	0x3e, r29	; 62
   30058:	0f be       	out	0x3f, r0	; 63
   3005a:	cd bf       	out	0x3d, r28	; 61
   3005c:	df 91       	pop	r29
   3005e:	cf 91       	pop	r28
   30060:	1f 91       	pop	r17
   30062:	0f 91       	pop	r16
   30064:	ff 90       	pop	r15
   30066:	ef 90       	pop	r14
   30068:	df 90       	pop	r13
   3006a:	cf 90       	pop	r12
   3006c:	bf 90       	pop	r11
   3006e:	af 90       	pop	r10
   30070:	9f 90       	pop	r9
   30072:	8f 90       	pop	r8
   30074:	08 95       	ret
    curDir=&root;
    if (!fileName)
        return 1;

    const char *dirname_start, *dirname_end;
    if (fileName[0] == '/') // absolute path
   30076:	20 81       	ld	r18, Z
   30078:	2f 32       	cpi	r18, 0x2F	; 47
   3007a:	09 f0       	breq	.+2      	; 0x3007e <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x6e>
   3007c:	47 c0       	rjmp	.+142    	; 0x3010c <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0xfc>
   3007e:	6c 01       	movw	r12, r24
    {
        cdroot(false);
   30080:	80 e0       	ldi	r24, 0x00	; 0
   30082:	0f 94 f0 7f 	call	0x2ffe0	; 0x2ffe0 <CardReader::cdroot(bool) [clone .constprop.217]>
        dirname_start = fileName + 1;
   30086:	f6 01       	movw	r30, r12
   30088:	00 81       	ld	r16, Z
   3008a:	11 81       	ldd	r17, Z+1	; 0x01
   3008c:	0f 5f       	subi	r16, 0xFF	; 255
   3008e:	1f 4f       	sbci	r17, 0xFF	; 255
                strncpy(subdirname, dirname_start, len);
                subdirname[len] = 0;
                if (!chdir(subdirname, false))
                    return 0;

                curDir = &workDir;
   30090:	9b e3       	ldi	r25, 0x3B	; 59
   30092:	89 2e       	mov	r8, r25
   30094:	95 e1       	ldi	r25, 0x15	; 21
   30096:	99 2e       	mov	r9, r25
    const char *dirname_start, *dirname_end;
    if (fileName[0] == '/') // absolute path
    {
        cdroot(false);
        dirname_start = fileName + 1;
        while (*dirname_start)
   30098:	d8 01       	movw	r26, r16
   3009a:	8c 91       	ld	r24, X
   3009c:	88 23       	and	r24, r24
   3009e:	b9 f2       	breq	.-82     	; 0x3004e <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x3e>
        {
            dirname_end = strchr(dirname_start, '/');
   300a0:	6f e2       	ldi	r22, 0x2F	; 47
   300a2:	70 e0       	ldi	r23, 0x00	; 0
   300a4:	c8 01       	movw	r24, r16
   300a6:	0f 94 b2 e2 	call	0x3c564	; 0x3c564 <strchr>
   300aa:	5c 01       	movw	r10, r24
            //SERIAL_ECHO("start:");SERIAL_ECHOLN((int)(dirname_start-name));
            //SERIAL_ECHO("end  :");SERIAL_ECHOLN((int)(dirname_end-name));
            if (dirname_end && dirname_end > dirname_start)
   300ac:	00 97       	sbiw	r24, 0x00	; 0
   300ae:	51 f1       	breq	.+84     	; 0x30104 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0xf4>
   300b0:	08 17       	cp	r16, r24
   300b2:	19 07       	cpc	r17, r25
   300b4:	38 f5       	brcc	.+78     	; 0x30104 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0xf4>
            {
                const size_t maxLen = 12;
                char subdirname[maxLen+1];
                const size_t len = ((static_cast<size_t>(dirname_end-dirname_start))>maxLen) ? maxLen : (dirname_end-dirname_start);
   300b6:	7c 01       	movw	r14, r24
   300b8:	e0 1a       	sub	r14, r16
   300ba:	f1 0a       	sbc	r15, r17
   300bc:	bd e0       	ldi	r27, 0x0D	; 13
   300be:	eb 16       	cp	r14, r27
   300c0:	f1 04       	cpc	r15, r1
   300c2:	18 f0       	brcs	.+6      	; 0x300ca <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0xba>
   300c4:	8c e0       	ldi	r24, 0x0C	; 12
   300c6:	e8 2e       	mov	r14, r24
   300c8:	f1 2c       	mov	r15, r1
                strncpy(subdirname, dirname_start, len);
   300ca:	a7 01       	movw	r20, r14
   300cc:	b8 01       	movw	r22, r16
   300ce:	ce 01       	movw	r24, r28
   300d0:	01 96       	adiw	r24, 0x01	; 1
   300d2:	0f 94 db e2 	call	0x3c5b6	; 0x3c5b6 <strncpy>
                subdirname[len] = 0;
   300d6:	e1 e0       	ldi	r30, 0x01	; 1
   300d8:	f0 e0       	ldi	r31, 0x00	; 0
   300da:	ec 0f       	add	r30, r28
   300dc:	fd 1f       	adc	r31, r29
   300de:	ee 0d       	add	r30, r14
   300e0:	ff 1d       	adc	r31, r15
   300e2:	10 82       	st	Z, r1
                if (!chdir(subdirname, false))
   300e4:	60 e0       	ldi	r22, 0x00	; 0
   300e6:	ce 01       	movw	r24, r28
   300e8:	01 96       	adiw	r24, 0x01	; 1
   300ea:	0f 94 56 7f 	call	0x2feac	; 0x2feac <CardReader::chdir(char const*, bool) [clone .constprop.224]>
   300ee:	88 23       	and	r24, r24
   300f0:	09 f4       	brne	.+2      	; 0x300f4 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0xe4>
   300f2:	ae cf       	rjmp	.-164    	; 0x30050 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x40>
                    return 0;

                curDir = &workDir;
   300f4:	90 92 3a 15 	sts	0x153A, r9	; 0x80153a <card+0xac>
   300f8:	80 92 39 15 	sts	0x1539, r8	; 0x801539 <card+0xab>
                dirname_start = dirname_end + 1;
   300fc:	85 01       	movw	r16, r10
   300fe:	0f 5f       	subi	r16, 0xFF	; 255
   30100:	1f 4f       	sbci	r17, 0xFF	; 255
   30102:	ca cf       	rjmp	.-108    	; 0x30098 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x88>
            }
            else // the reminder after all /fsa/fdsa/ is the filename
            {
                fileName = dirname_start;
   30104:	f6 01       	movw	r30, r12
   30106:	11 83       	std	Z+1, r17	; 0x01
   30108:	00 83       	st	Z, r16
   3010a:	a1 cf       	rjmp	.-190    	; 0x3004e <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x3e>

        }
    }
    else //relative path
    {
        curDir = &workDir;
   3010c:	8b e3       	ldi	r24, 0x3B	; 59
   3010e:	95 e1       	ldi	r25, 0x15	; 21
   30110:	90 93 3a 15 	sts	0x153A, r25	; 0x80153a <card+0xac>
   30114:	80 93 39 15 	sts	0x1539, r24	; 0x801539 <card+0xab>
   30118:	9a cf       	rjmp	.-204    	; 0x3004e <CardReader::diveSubfolder(char const*&) [clone .constprop.222]+0x3e>

0003011a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]>:
static const char ofSize[] PROGMEM = " Size: ";
static const char ofFileSelected[] PROGMEM = "File selected";
static const char ofSDPrinting[] PROGMEM = "SD-PRINTING";
static const char ofWritingToFile[] PROGMEM = "Writing to file: ";

void CardReader::openFileReadFilteredGcode(const char* name, bool replace_current/* = false*/){
   3011a:	bf 92       	push	r11
   3011c:	cf 92       	push	r12
   3011e:	df 92       	push	r13
   30120:	ef 92       	push	r14
   30122:	ff 92       	push	r15
   30124:	0f 93       	push	r16
   30126:	1f 93       	push	r17
   30128:	cf 93       	push	r28
   3012a:	df 93       	push	r29
   3012c:	1f 92       	push	r1
   3012e:	1f 92       	push	r1
   30130:	cd b7       	in	r28, 0x3d	; 61
   30132:	de b7       	in	r29, 0x3e	; 62
    if(!mounted)
   30134:	20 91 91 14 	lds	r18, 0x1491	; 0x801491 <card+0x3>
   30138:	22 23       	and	r18, r18
   3013a:	09 f4       	brne	.+2      	; 0x3013e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x24>
   3013c:	ef c0       	rjmp	.+478    	; 0x3031c <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x202>
   3013e:	7c 01       	movw	r14, r24
        return;

    if(file.isOpen()){  //replacing current file by new file, or subfile call
   30140:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   30144:	88 23       	and	r24, r24
   30146:	09 f4       	brne	.+2      	; 0x3014a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x30>
   30148:	04 c1       	rjmp	.+520    	; 0x30352 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x238>
        if(!replace_current){
   3014a:	61 11       	cpse	r22, r1
   3014c:	f6 c0       	rjmp	.+492    	; 0x3033a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x220>
            if((int)file_subcall_ctr>(int)SD_PROCEDURE_DEPTH-1){
   3014e:	d0 90 43 17 	lds	r13, 0x1743	; 0x801743 <card+0x2b5>
   30152:	dd 20       	and	r13, r13
   30154:	21 f0       	breq	.+8      	; 0x3015e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x44>
                // SERIAL_ERROR_START;
                // SERIAL_ERRORPGM("trying to call sub-gcode files with too many levels. MAX level is:");
                // SERIAL_ERRORLN(SD_PROCEDURE_DEPTH);
                kill(ofKill);
   30156:	8a ea       	ldi	r24, 0xAA	; 170
   30158:	99 ea       	ldi	r25, 0xA9	; 169
   3015a:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>
                return;
            }

            SERIAL_ECHO_START;
   3015e:	80 ed       	ldi	r24, 0xD0	; 208
   30160:	9a ea       	ldi	r25, 0xAA	; 170
   30162:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_ECHORPGM(ofSubroutineCallTgt);
   30166:	81 e9       	ldi	r24, 0x91	; 145
   30168:	99 ea       	ldi	r25, 0xA9	; 169
   3016a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   3016e:	c7 01       	movw	r24, r14
   30170:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
            SERIAL_ECHO(name);
            SERIAL_ECHORPGM(ofParent);
   30174:	86 e8       	ldi	r24, 0x86	; 134
   30176:	99 ea       	ldi	r25, 0xA9	; 169
   30178:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>

            //store current filename and position
            getAbsFilename(filenames[file_subcall_ctr]);
   3017c:	00 91 43 17 	lds	r16, 0x1743	; 0x801743 <card+0x2b5>
   30180:	25 e5       	ldi	r18, 0x55	; 85
   30182:	02 9f       	mul	r16, r18
   30184:	80 01       	movw	r16, r0
   30186:	11 24       	eor	r1, r1
}

void CardReader::getAbsFilename(char *t)
{
  uint8_t cnt=0;
  *t='/';t++;cnt++;
   30188:	08 5b       	subi	r16, 0xB8	; 184
   3018a:	18 4e       	sbci	r17, 0xE8	; 232
   3018c:	8f e2       	ldi	r24, 0x2F	; 47
   3018e:	f8 01       	movw	r30, r16
   30190:	81 93       	st	Z+, r24
   30192:	8f 01       	movw	r16, r30
   30194:	cc 24       	eor	r12, r12
   30196:	c3 94       	inc	r12
  for(uint8_t i=0;i<workDirDepth;i++)
  {
    workDirParents[i].getFilename(t); //SDBaseFile.getfilename!
   30198:	83 e2       	ldi	r24, 0x23	; 35
   3019a:	b8 2e       	mov	r11, r24

void CardReader::getAbsFilename(char *t)
{
  uint8_t cnt=0;
  *t='/';t++;cnt++;
  for(uint8_t i=0;i<workDirDepth;i++)
   3019c:	80 91 30 16 	lds	r24, 0x1630	; 0x801630 <card+0x1a2>
   301a0:	d8 16       	cp	r13, r24
   301a2:	b0 f4       	brcc	.+44     	; 0x301d0 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0xb6>
  {
    workDirParents[i].getFilename(t); //SDBaseFile.getfilename!
   301a4:	db 9c       	mul	r13, r11
   301a6:	c0 01       	movw	r24, r0
   301a8:	11 24       	eor	r1, r1
   301aa:	b8 01       	movw	r22, r16
   301ac:	82 5a       	subi	r24, 0xA2	; 162
   301ae:	9a 4e       	sbci	r25, 0xEA	; 234
   301b0:	0f 94 bb 59 	call	0x2b376	; 0x2b376 <SdBaseFile::getFilename(char*)>
   301b4:	c8 01       	movw	r24, r16
   301b6:	8c 01       	movw	r16, r24
   301b8:	01 96       	adiw	r24, 0x01	; 1
    while(*t!=0 && cnt< MAXPATHNAMELENGTH)
   301ba:	f8 01       	movw	r30, r16
   301bc:	20 81       	ld	r18, Z
   301be:	22 23       	and	r18, r18
   301c0:	29 f0       	breq	.+10     	; 0x301cc <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0xb2>
   301c2:	f4 e5       	ldi	r31, 0x54	; 84
   301c4:	fc 15       	cp	r31, r12
   301c6:	10 f0       	brcs	.+4      	; 0x301cc <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0xb2>
    {t++;cnt++;}  //crawl counter forward.
   301c8:	c3 94       	inc	r12
   301ca:	f5 cf       	rjmp	.-22     	; 0x301b6 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x9c>

void CardReader::getAbsFilename(char *t)
{
  uint8_t cnt=0;
  *t='/';t++;cnt++;
  for(uint8_t i=0;i<workDirDepth;i++)
   301cc:	d3 94       	inc	r13
   301ce:	e6 cf       	rjmp	.-52     	; 0x3019c <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x82>
  {
    workDirParents[i].getFilename(t); //SDBaseFile.getfilename!
    while(*t!=0 && cnt< MAXPATHNAMELENGTH)
    {t++;cnt++;}  //crawl counter forward.
  }
  if(cnt < MAXPATHNAMELENGTH - FILENAME_LENGTH)
   301d0:	27 e4       	ldi	r18, 0x47	; 71
   301d2:	2c 15       	cp	r18, r12
   301d4:	08 f4       	brcc	.+2      	; 0x301d8 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0xbe>
   301d6:	ae c0       	rjmp	.+348    	; 0x30334 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x21a>
    file.getFilename(t);
   301d8:	b8 01       	movw	r22, r16
   301da:	80 e2       	ldi	r24, 0x20	; 32
   301dc:	97 e1       	ldi	r25, 0x17	; 23
   301de:	0f 94 bb 59 	call	0x2b376	; 0x2b376 <SdBaseFile::getFilename(char*)>
            SERIAL_ECHORPGM(ofParent);

            //store current filename and position
            getAbsFilename(filenames[file_subcall_ctr]);

            SERIAL_ECHO(filenames[file_subcall_ctr]);
   301e2:	80 91 43 17 	lds	r24, 0x1743	; 0x801743 <card+0x2b5>
   301e6:	f5 e5       	ldi	r31, 0x55	; 85
   301e8:	8f 9f       	mul	r24, r31
   301ea:	c0 01       	movw	r24, r0
   301ec:	11 24       	eor	r1, r1
   301ee:	88 5b       	subi	r24, 0xB8	; 184
   301f0:	98 4e       	sbci	r25, 0xE8	; 232
   301f2:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
            SERIAL_ECHORPGM(ofPos);
   301f6:	80 e8       	ldi	r24, 0x80	; 128
   301f8:	99 ea       	ldi	r25, 0xA9	; 169
   301fa:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   301fe:	60 91 a4 17 	lds	r22, 0x17A4	; 0x8017a4 <card+0x316>
   30202:	70 91 a5 17 	lds	r23, 0x17A5	; 0x8017a5 <card+0x317>
   30206:	80 91 a6 17 	lds	r24, 0x17A6	; 0x8017a6 <card+0x318>
   3020a:	90 91 a7 17 	lds	r25, 0x17A7	; 0x8017a7 <card+0x319>
   3020e:	4a e0       	ldi	r20, 0x0A	; 10
   30210:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
}

void MarlinSerial::println(unsigned long n, int base)
{
  print(n, base);
  println();
   30214:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
            SERIAL_ECHOLN(sdpos);
            filespos[file_subcall_ctr]=sdpos;
   30218:	80 91 43 17 	lds	r24, 0x1743	; 0x801743 <card+0x2b5>
   3021c:	24 e0       	ldi	r18, 0x04	; 4
   3021e:	82 9f       	mul	r24, r18
   30220:	f0 01       	movw	r30, r0
   30222:	11 24       	eor	r1, r1
   30224:	ec 5b       	subi	r30, 0xBC	; 188
   30226:	f8 4e       	sbci	r31, 0xE8	; 232
   30228:	40 91 a4 17 	lds	r20, 0x17A4	; 0x8017a4 <card+0x316>
   3022c:	50 91 a5 17 	lds	r21, 0x17A5	; 0x8017a5 <card+0x317>
   30230:	60 91 a6 17 	lds	r22, 0x17A6	; 0x8017a6 <card+0x318>
   30234:	70 91 a7 17 	lds	r23, 0x17A7	; 0x8017a7 <card+0x319>
   30238:	40 83       	st	Z, r20
   3023a:	51 83       	std	Z+1, r21	; 0x01
   3023c:	62 83       	std	Z+2, r22	; 0x02
   3023e:	73 83       	std	Z+3, r23	; 0x03
            file_subcall_ctr++;
   30240:	8f 5f       	subi	r24, 0xFF	; 255
   30242:	80 93 43 17 	sts	0x1743, r24	; 0x801743 <card+0x2b5>
        } else {
            SERIAL_ECHO_START;
            SERIAL_ECHORPGM(ofNowDoingFile);
            SERIAL_ECHOLN(name);
        }
        file.close();
   30246:	80 e2       	ldi	r24, 0x20	; 32
   30248:	97 e1       	ldi	r25, 0x17	; 23
   3024a:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
        file_subcall_ctr=0; //resetting procedure depth in case user cancels print while in procedure
        SERIAL_ECHO_START;
        SERIAL_ECHORPGM(ofNowFreshFile);
        SERIAL_ECHOLN(name);
    }
    sdprinting = false;
   3024e:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>

    const char *fname=name;
   30252:	fa 82       	std	Y+2, r15	; 0x02
   30254:	e9 82       	std	Y+1, r14	; 0x01
    if (!diveSubfolder(fname))
   30256:	ce 01       	movw	r24, r28
   30258:	01 96       	adiw	r24, 0x01	; 1
   3025a:	0f 94 08 80 	call	0x30010	; 0x30010 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]>
   3025e:	88 23       	and	r24, r24
   30260:	09 f4       	brne	.+2      	; 0x30264 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x14a>
   30262:	5c c0       	rjmp	.+184    	; 0x3031c <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x202>
 */
SdFile::SdFile(const char* path, uint8_t oflag) : SdBaseFile(path, oflag) {
}

bool SdFile::openFilteredGcode(SdBaseFile* dirFile, const char* path){
    if( open(dirFile, path, O_READ) ){
   30264:	49 81       	ldd	r20, Y+1	; 0x01
   30266:	5a 81       	ldd	r21, Y+2	; 0x02
   30268:	60 91 39 15 	lds	r22, 0x1539	; 0x801539 <card+0xab>
   3026c:	70 91 3a 15 	lds	r23, 0x153A	; 0x80153a <card+0xac>
   30270:	21 e0       	ldi	r18, 0x01	; 1
   30272:	80 e2       	ldi	r24, 0x20	; 32
   30274:	97 e1       	ldi	r25, 0x17	; 23
   30276:	0f 94 5a 65 	call	0x2cab4	; 0x2cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>
   3027a:	88 23       	and	r24, r24
   3027c:	09 f4       	brne	.+2      	; 0x30280 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x166>
   3027e:	77 c0       	rjmp	.+238    	; 0x3036e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x254>
        // compute the block to start with
        if( ! gfComputeNextFileBlock() )
   30280:	80 e2       	ldi	r24, 0x20	; 32
   30282:	97 e1       	ldi	r25, 0x17	; 23
   30284:	0f 94 5b 57 	call	0x2aeb6	; 0x2aeb6 <SdFile::gfComputeNextFileBlock()>
   30288:	88 23       	and	r24, r24
   3028a:	09 f4       	brne	.+2      	; 0x3028e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x174>
   3028c:	70 c0       	rjmp	.+224    	; 0x3036e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x254>
    return vol_->cache()->data; // this is constant for the whole time, so it should be fast and sleek
}

void SdFile::gfReset(){
    // reset cache read ptr to its begin
    gfReadPtr = gfBlockBuffBegin() + gfOffset;
   3028e:	80 91 41 17 	lds	r24, 0x1741	; 0x801741 <card+0x2b3>
   30292:	90 91 42 17 	lds	r25, 0x1742	; 0x801742 <card+0x2b4>
   30296:	83 56       	subi	r24, 0x63	; 99
   30298:	91 4f       	sbci	r25, 0xF1	; 241
   3029a:	90 93 3c 17 	sts	0x173C, r25	; 0x80173c <card+0x2ae>
   3029e:	80 93 3b 17 	sts	0x173B, r24	; 0x80173b <card+0x2ad>
      return;

    if (file.openFilteredGcode(curDir, fname)) {
        getfilename(0, fname);
   302a2:	89 81       	ldd	r24, Y+1	; 0x01
   302a4:	9a 81       	ldd	r25, Y+2	; 0x02
   302a6:	0f 94 80 7a 	call	0x2f500	; 0x2f500 <CardReader::getfilename(unsigned int, char const*) [clone .constprop.259]>
        filesize = file.fileSize();
   302aa:	80 91 31 17 	lds	r24, 0x1731	; 0x801731 <card+0x2a3>
   302ae:	90 91 32 17 	lds	r25, 0x1732	; 0x801732 <card+0x2a4>
   302b2:	a0 91 33 17 	lds	r26, 0x1733	; 0x801733 <card+0x2a5>
   302b6:	b0 91 34 17 	lds	r27, 0x1734	; 0x801734 <card+0x2a6>
   302ba:	80 93 9d 17 	sts	0x179D, r24	; 0x80179d <card+0x30f>
   302be:	90 93 9e 17 	sts	0x179E, r25	; 0x80179e <card+0x310>
   302c2:	a0 93 9f 17 	sts	0x179F, r26	; 0x80179f <card+0x311>
   302c6:	b0 93 a0 17 	sts	0x17A0, r27	; 0x8017a0 <card+0x312>
        SERIAL_PROTOCOLRPGM(ofFileOpened);////MSG_SD_FILE_OPENED
   302ca:	80 e5       	ldi	r24, 0x50	; 80
   302cc:	99 ea       	ldi	r25, 0xA9	; 169
   302ce:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        printAbsFilenameFast();
   302d2:	0f 94 63 7b 	call	0x2f6c6	; 0x2f6c6 <CardReader::printAbsFilenameFast() [clone .constprop.250]>
        SERIAL_PROTOCOLRPGM(ofSize);////MSG_SD_SIZE
   302d6:	88 e4       	ldi	r24, 0x48	; 72
   302d8:	99 ea       	ldi	r25, 0xA9	; 169
   302da:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   302de:	60 91 9d 17 	lds	r22, 0x179D	; 0x80179d <card+0x30f>
   302e2:	70 91 9e 17 	lds	r23, 0x179E	; 0x80179e <card+0x310>
   302e6:	80 91 9f 17 	lds	r24, 0x179F	; 0x80179f <card+0x311>
   302ea:	90 91 a0 17 	lds	r25, 0x17A0	; 0x8017a0 <card+0x312>
   302ee:	4a e0       	ldi	r20, 0x0A	; 10
   302f0:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
}

void MarlinSerial::println(unsigned long n, int base)
{
  print(n, base);
  println();
   302f4:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
        SERIAL_PROTOCOLLN(filesize);
        sdpos = 0;
   302f8:	10 92 a4 17 	sts	0x17A4, r1	; 0x8017a4 <card+0x316>
   302fc:	10 92 a5 17 	sts	0x17A5, r1	; 0x8017a5 <card+0x317>
   30300:	10 92 a6 17 	sts	0x17A6, r1	; 0x8017a6 <card+0x318>
   30304:	10 92 a7 17 	sts	0x17A7, r1	; 0x8017a7 <card+0x319>

        SERIAL_PROTOCOLLNRPGM(ofFileSelected);////MSG_SD_FILE_SELECTED
   30308:	8a e3       	ldi	r24, 0x3A	; 58
   3030a:	99 ea       	ldi	r25, 0xA9	; 169
   3030c:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        lcd_setstatuspgm(ofFileSelected);
   30310:	8a e3       	ldi	r24, 0x3A	; 58
   30312:	99 ea       	ldi	r25, 0xA9	; 169
   30314:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        scrollstuff = 0;
   30318:	10 92 b9 0d 	sts	0x0DB9, r1	; 0x800db9 <scrollstuff>
      } else {
        SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
        SERIAL_PROTOCOL(fname);
        SERIAL_PROTOCOLLN('.');
      }
}
   3031c:	0f 90       	pop	r0
   3031e:	0f 90       	pop	r0
   30320:	df 91       	pop	r29
   30322:	cf 91       	pop	r28
   30324:	1f 91       	pop	r17
   30326:	0f 91       	pop	r16
   30328:	ff 90       	pop	r15
   3032a:	ef 90       	pop	r14
   3032c:	df 90       	pop	r13
   3032e:	cf 90       	pop	r12
   30330:	bf 90       	pop	r11
   30332:	08 95       	ret
    {t++;cnt++;}  //crawl counter forward.
  }
  if(cnt < MAXPATHNAMELENGTH - FILENAME_LENGTH)
    file.getFilename(t);
  else
    t[0]=0;
   30334:	f8 01       	movw	r30, r16
   30336:	10 82       	st	Z, r1
   30338:	54 cf       	rjmp	.-344    	; 0x301e2 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0xc8>
            SERIAL_ECHORPGM(ofPos);
            SERIAL_ECHOLN(sdpos);
            filespos[file_subcall_ctr]=sdpos;
            file_subcall_ctr++;
        } else {
            SERIAL_ECHO_START;
   3033a:	80 ed       	ldi	r24, 0xD0	; 208
   3033c:	9a ea       	ldi	r25, 0xAA	; 170
   3033e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_ECHORPGM(ofNowDoingFile);
   30342:	8f e6       	ldi	r24, 0x6F	; 111
   30344:	99 ea       	ldi	r25, 0xA9	; 169
   30346:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
            SERIAL_ECHOLN(name);
   3034a:	c7 01       	movw	r24, r14
   3034c:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   30350:	7a cf       	rjmp	.-268    	; 0x30246 <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x12c>
        }
        file.close();
    } else { //opening fresh file
        file_subcall_ctr=0; //resetting procedure depth in case user cancels print while in procedure
   30352:	10 92 43 17 	sts	0x1743, r1	; 0x801743 <card+0x2b5>
        SERIAL_ECHO_START;
   30356:	80 ed       	ldi	r24, 0xD0	; 208
   30358:	9a ea       	ldi	r25, 0xAA	; 170
   3035a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(ofNowFreshFile);
   3035e:	8e e5       	ldi	r24, 0x5E	; 94
   30360:	99 ea       	ldi	r25, 0xA9	; 169
   30362:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLN(name);
   30366:	c7 01       	movw	r24, r14
   30368:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   3036c:	70 cf       	rjmp	.-288    	; 0x3024e <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x134>

        SERIAL_PROTOCOLLNRPGM(ofFileSelected);////MSG_SD_FILE_SELECTED
        lcd_setstatuspgm(ofFileSelected);
        scrollstuff = 0;
      } else {
        SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
   3036e:	8e e1       	ldi	r24, 0x1E	; 30
   30370:	90 e7       	ldi	r25, 0x70	; 112
   30372:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   30376:	89 81       	ldd	r24, Y+1	; 0x01
   30378:	9a 81       	ldd	r25, Y+2	; 0x02
   3037a:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3037e:	8e e2       	ldi	r24, 0x2E	; 46
   30380:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::println(char c, int base)
{
  print(c, base);
  println();
   30384:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
   30388:	c9 cf       	rjmp	.-110    	; 0x3031c <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]+0x202>

0003038a <CardReader::printingHasFinished() [clone .constprop.220]>:



void CardReader::printingHasFinished()
{
    st_synchronize();
   3038a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    file.close();
   3038e:	80 e2       	ldi	r24, 0x20	; 32
   30390:	97 e1       	ldi	r25, 0x17	; 23
   30392:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>

    if(file_subcall_ctr>0) //heading up to a parent file that called current as a procedure.
   30396:	80 91 43 17 	lds	r24, 0x1743	; 0x801743 <card+0x2b5>
   3039a:	88 23       	and	r24, r24
   3039c:	69 f1       	breq	.+90     	; 0x303f8 <CardReader::printingHasFinished() [clone .constprop.220]+0x6e>
    {
      file_subcall_ctr--;
   3039e:	81 50       	subi	r24, 0x01	; 1
   303a0:	80 93 43 17 	sts	0x1743, r24	; 0x801743 <card+0x2b5>
      openFileReadFilteredGcode(filenames[file_subcall_ctr],true);
   303a4:	25 e5       	ldi	r18, 0x55	; 85
   303a6:	82 9f       	mul	r24, r18
   303a8:	c0 01       	movw	r24, r0
   303aa:	11 24       	eor	r1, r1
   303ac:	61 e0       	ldi	r22, 0x01	; 1
   303ae:	88 5b       	subi	r24, 0xB8	; 184
   303b0:	98 4e       	sbci	r25, 0xE8	; 232
   303b2:	0f 94 8d 80 	call	0x3011a	; 0x3011a <CardReader::openFileReadFilteredGcode(char const*, bool) [clone .constprop.221]>
      setIndex(filespos[file_subcall_ctr]);
   303b6:	e0 91 43 17 	lds	r30, 0x1743	; 0x801743 <card+0x2b5>
   303ba:	84 e0       	ldi	r24, 0x04	; 4
   303bc:	e8 9f       	mul	r30, r24
   303be:	f0 01       	movw	r30, r0
   303c0:	11 24       	eor	r1, r1
   303c2:	ec 5b       	subi	r30, 0xBC	; 188
   303c4:	f8 4e       	sbci	r31, 0xE8	; 232
   303c6:	60 81       	ld	r22, Z
   303c8:	71 81       	ldd	r23, Z+1	; 0x01
   303ca:	82 81       	ldd	r24, Z+2	; 0x02
   303cc:	93 81       	ldd	r25, Z+3	; 0x03
  {
      int16_t c = (int16_t)file.readFilteredGcode();
      sdpos = file.curPosition();
      return c;
  };
  void setIndex(long index) {sdpos = index;file.seekSetFilteredGcode(index);};
   303ce:	60 93 a4 17 	sts	0x17A4, r22	; 0x8017a4 <card+0x316>
   303d2:	70 93 a5 17 	sts	0x17A5, r23	; 0x8017a5 <card+0x317>
   303d6:	80 93 a6 17 	sts	0x17A6, r24	; 0x8017a6 <card+0x318>
   303da:	90 93 a7 17 	sts	0x17A7, r25	; 0x8017a7 <card+0x319>
   303de:	0f 94 de 76 	call	0x2edbc	; 0x2edbc <SdFile::seekSetFilteredGcode(unsigned long) [clone .constprop.317]>
  SERIAL_ECHOLNRPGM(_n("SD card released"));////MSG_SD_CARD_RELEASED
}

void CardReader::startFileprint()
{
  if(mounted)
   303e2:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   303e6:	88 23       	and	r24, r24
   303e8:	71 f0       	breq	.+28     	; 0x30406 <CardReader::printingHasFinished() [clone .constprop.220]+0x7c>
  {
    sdprinting = true;
   303ea:	81 e0       	ldi	r24, 0x01	; 1
   303ec:	80 93 90 14 	sts	0x1490, r24	; 0x801490 <card+0x2>
   303f0:	85 e0       	ldi	r24, 0x05	; 5
   303f2:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
   303f6:	08 95       	ret
      setIndex(filespos[file_subcall_ctr]);
      startFileprint();
    }
    else
    {
      sdprinting = false;
   303f8:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>
   303fc:	83 e0       	ldi	r24, 0x03	; 3
   303fe:	80 93 b8 0d 	sts	0x0DB8, r24	; 0x800db8 <_ZL13printer_state.lto_priv.403>
      SetPrinterState(PrinterState::SDPrintingFinished); //set printer state to show LCD menu after finished SD print
      if(SD_FINISHED_STEPPERRELEASE)
      {
          finishAndDisableSteppers();
   30402:	0c 94 ef 81 	jmp	0x103de	; 0x103de <finishAndDisableSteppers()>
      autotempShutdown();
	  #ifdef SDCARD_SORT_ALPHA
		  //presort();
	  #endif
    }
}
   30406:	08 95       	ret

00030408 <CardReader::mount(bool) [clone .constprop.216]>:
  root.rewind();
  lsDive("",root, NULL, LS_SerialPrint, params);
}


void CardReader::mount(bool doPresort/* = true*/)
   30408:	cf 92       	push	r12
   3040a:	df 92       	push	r13
   3040c:	ef 92       	push	r14
   3040e:	ff 92       	push	r15
   30410:	0f 93       	push	r16
   30412:	1f 93       	push	r17
   30414:	cf 93       	push	r28
   30416:	df 93       	push	r29
   30418:	08 2f       	mov	r16, r24
{
  mounted = false;
   3041a:	10 92 91 14 	sts	0x1491, r1	; 0x801491 <card+0x3>
  if(root.isOpen())
   3041e:	80 91 19 15 	lds	r24, 0x1519	; 0x801519 <card+0x8b>
   30422:	88 23       	and	r24, r24
   30424:	21 f0       	breq	.+8      	; 0x3042e <CardReader::mount(bool) [clone .constprop.216]+0x26>
    root.close();
   30426:	86 e1       	ldi	r24, 0x16	; 22
   30428:	95 e1       	ldi	r25, 0x15	; 21
   3042a:	0f 94 b2 59 	call	0x2b364	; 0x2b364 <SdBaseFile::close()>
 * \return The value one, true, is returned for success and
 * the value zero, false, is returned for failure.  The reason for failure
 * can be determined by calling errorCode() and errorData().
 */
bool Sd2Card::init(uint8_t sckRateID) {
  errorCode_ = type_ = 0;
   3042e:	10 92 00 17 	sts	0x1700, r1	; 0x801700 <card+0x272>
   30432:	10 92 fd 16 	sts	0x16FD, r1	; 0x8016fd <card+0x26f>
  // 16-bit init start time allows over a minute
  uint16_t t0 = (uint16_t)_millis();
   30436:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   3043a:	eb 01       	movw	r28, r22
  uint32_t arg;

  // set pin modes
  chipSelectHigh();
   3043c:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  SET_OUTPUT(SDSS);
   30440:	80 91 04 01 	lds	r24, 0x0104	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
   30444:	80 64       	ori	r24, 0x40	; 64
   30446:	80 93 04 01 	sts	0x0104, r24	; 0x800104 <__TEXT_REGION_LENGTH__+0x7c2104>
  SET_INPUT(MISO);
   3044a:	23 98       	cbi	0x04, 3	; 4
  SET_OUTPUT(MOSI);
   3044c:	22 9a       	sbi	0x04, 2	; 4
  SET_OUTPUT(SCK);
   3044e:	21 9a       	sbi	0x04, 1	; 4

#ifndef SOFTWARE_SPI
  // SS must be in output mode even it is not chip select
  SET_OUTPUT(SS);
   30450:	20 9a       	sbi	0x04, 0	; 4
  // set SS high - may be chip select for another SPI device
#if SET_SPI_SS_HIGH
  WRITE(SS, 1);
   30452:	28 9a       	sbi	0x05, 0	; 5
#endif  // SET_SPI_SS_HIGH
  // set SCK rate for initialization commands
  spiRate_ = SPI_SD_INIT_RATE;
   30454:	85 e0       	ldi	r24, 0x05	; 5
   30456:	80 93 fe 16 	sts	0x16FE, r24	; 0x8016fe <card+0x270>
 * Initialize hardware SPI
 * Set SCK rate to F_CPU/pow(2, 1 + spiRate) for spiRate [0,6]
 */
static void spiInit(uint8_t spiRate) {
  // See avr processor documentation
  SPCR = (1 << SPE) | (1 << MSTR) | (spiRate >> 1);
   3045a:	82 e5       	ldi	r24, 0x52	; 82
   3045c:	8c bd       	out	0x2c, r24	; 44
  SPSR = spiRate & 1 || spiRate == 6 ? 0 : 1 << SPI2X;
   3045e:	1d bc       	out	0x2d, r1	; 45
   30460:	1a e0       	ldi	r17, 0x0A	; 10
  spiRate_ = SPI_SD_INIT_RATE;
  spiInit(spiRate_);
#endif  // SOFTWARE_SPI

  // must supply min of 74 clock cycles with CS high.
  for (uint8_t i = 0; i < 10; i++) spiSend(0XFF);
   30462:	8f ef       	ldi	r24, 0xFF	; 255
   30464:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
   30468:	11 50       	subi	r17, 0x01	; 1
   3046a:	d9 f7       	brne	.-10     	; 0x30462 <CardReader::mount(bool) [clone .constprop.216]+0x5a>

  WRITE(MISO, 1); // temporarily enable the MISO line pullup
   3046c:	2b 9a       	sbi	0x05, 3	; 5
  // command to go idle in SPI mode
  while ((status_ = cardCommand(CMD0, 0)) != R1_IDLE_STATE) {
   3046e:	20 e0       	ldi	r18, 0x00	; 0
   30470:	30 e0       	ldi	r19, 0x00	; 0
   30472:	a9 01       	movw	r20, r18
   30474:	60 e0       	ldi	r22, 0x00	; 0
   30476:	8d ef       	ldi	r24, 0xFD	; 253
   30478:	96 e1       	ldi	r25, 0x16	; 22
   3047a:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   3047e:	80 93 ff 16 	sts	0x16FF, r24	; 0x8016ff <card+0x271>
   30482:	81 30       	cpi	r24, 0x01	; 1
   30484:	61 f0       	breq	.+24     	; 0x3049e <CardReader::mount(bool) [clone .constprop.216]+0x96>
    if (((uint16_t)_millis() - t0) > SD_INIT_TIMEOUT) {
   30486:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   3048a:	6c 1b       	sub	r22, r28
   3048c:	7d 0b       	sbc	r23, r29
   3048e:	61 3d       	cpi	r22, 0xD1	; 209
   30490:	77 40       	sbci	r23, 0x07	; 7
   30492:	68 f3       	brcs	.-38     	; 0x3046e <CardReader::mount(bool) [clone .constprop.216]+0x66>
      WRITE(MISO, 0); // disable the MISO line pullup
   30494:	2b 98       	cbi	0x05, 3	; 5
   30496:	81 e0       	ldi	r24, 0x01	; 1
   30498:	80 93 fd 16 	sts	0x16FD, r24	; 0x8016fd <card+0x26f>
   3049c:	22 c0       	rjmp	.+68     	; 0x304e2 <CardReader::mount(bool) [clone .constprop.216]+0xda>
      error(SD_CARD_ERROR_CMD0);
      goto fail;
    }
  }
  WRITE(MISO, 0); // disable the MISO line pullup
   3049e:	2b 98       	cbi	0x05, 3	; 5

  // send 0xFF until 0xFF received to give card some clock cycles
  t0 = (uint16_t)_millis();
   304a0:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   304a4:	eb 01       	movw	r28, r22
  SERIAL_ECHOLNRPGM(PSTR("Sending 0xFF"));
   304a6:	8d e2       	ldi	r24, 0x2D	; 45
   304a8:	99 ea       	ldi	r25, 0xA9	; 169
   304aa:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
  spiSend(0XFF);
   304ae:	8f ef       	ldi	r24, 0xFF	; 255
   304b0:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
  while ((status_ = spiRec()) != 0xFF)
   304b4:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   304b8:	80 93 ff 16 	sts	0x16FF, r24	; 0x8016ff <card+0x271>
   304bc:	8f 3f       	cpi	r24, 0xFF	; 255
   304be:	59 f1       	breq	.+86     	; 0x30516 <CardReader::mount(bool) [clone .constprop.216]+0x10e>
  {
    spiSend(0XFF);
   304c0:	8f ef       	ldi	r24, 0xFF	; 255
   304c2:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
    if (((uint16_t)_millis() - t0) > SD_CARD_ERROR_FF_TIMEOUT)
   304c6:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   304ca:	6c 1b       	sub	r22, r28
   304cc:	7d 0b       	sbc	r23, r29
   304ce:	62 32       	cpi	r22, 0x22	; 34
   304d0:	71 05       	cpc	r23, r1
   304d2:	80 f3       	brcs	.-32     	; 0x304b4 <CardReader::mount(bool) [clone .constprop.216]+0xac>
   304d4:	82 e0       	ldi	r24, 0x02	; 2
   304d6:	80 93 fd 16 	sts	0x16FD, r24	; 0x8016fd <card+0x26f>
    {
      error(SD_CARD_ERROR_CMD8);
      SERIAL_ECHOLNRPGM(PSTR("No 0xFF received"));
   304da:	8c e1       	ldi	r24, 0x1C	; 28
   304dc:	99 ea       	ldi	r25, 0xA9	; 169
   304de:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
#else  // SOFTWARE_SPI
  return true;
#endif  // SOFTWARE_SPI

 fail:
  chipSelectHigh();
   304e2:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
#else
  if (!card.init(SPI_FULL_SPEED)
    )
#endif
  {
    SERIAL_ECHO_START;
   304e6:	80 ed       	ldi	r24, 0xD0	; 208
   304e8:	9a ea       	ldi	r25, 0xAA	; 170
   304ea:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLNRPGM(_n("SD init fail"));////MSG_SD_INIT_FAIL
   304ee:	81 e1       	ldi	r24, 0x11	; 17
   304f0:	90 e7       	ldi	r25, 0x70	; 112
  }
  else
  {
    mounted = true;
    SERIAL_ECHO_START;
    SERIAL_ECHOLNRPGM(_n("SD card ok"));////MSG_SD_CARD_OK
   304f2:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
  }

  if (mounted)
   304f6:	80 91 91 14 	lds	r24, 0x1491	; 0x801491 <card+0x3>
   304fa:	88 23       	and	r24, r24
   304fc:	09 f4       	brne	.+2      	; 0x30500 <CardReader::mount(bool) [clone .constprop.216]+0xf8>
   304fe:	9a c0       	rjmp	.+308    	; 0x30634 <CardReader::mount(bool) [clone .constprop.216]+0x22c>
  {
    cdroot(doPresort);
   30500:	80 2f       	mov	r24, r16
  }
}
   30502:	df 91       	pop	r29
   30504:	cf 91       	pop	r28
   30506:	1f 91       	pop	r17
   30508:	0f 91       	pop	r16
   3050a:	ff 90       	pop	r15
   3050c:	ef 90       	pop	r14
   3050e:	df 90       	pop	r13
   30510:	cf 90       	pop	r12
    SERIAL_ECHOLNRPGM(_n("SD card ok"));////MSG_SD_CARD_OK
  }

  if (mounted)
  {
    cdroot(doPresort);
   30512:	0d 94 f0 7f 	jmp	0x2ffe0	; 0x2ffe0 <CardReader::cdroot(bool) [clone .constprop.217]>
      goto fail;
    }
  }

  // check SD version
  if ((cardCommand(CMD8, 0x1AA) & R1_ILLEGAL_COMMAND)) {
   30516:	2a ea       	ldi	r18, 0xAA	; 170
   30518:	31 e0       	ldi	r19, 0x01	; 1
   3051a:	40 e0       	ldi	r20, 0x00	; 0
   3051c:	50 e0       	ldi	r21, 0x00	; 0
   3051e:	68 e0       	ldi	r22, 0x08	; 8
   30520:	8d ef       	ldi	r24, 0xFD	; 253
   30522:	96 e1       	ldi	r25, 0x16	; 22
   30524:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   30528:	82 ff       	sbrs	r24, 2
   3052a:	2b c0       	rjmp	.+86     	; 0x30582 <CardReader::mount(bool) [clone .constprop.216]+0x17a>

  bool readData(uint8_t* dst, uint16_t count);
  bool readRegister(uint8_t cmd, void* buf);
  void chipSelectHigh();
  void chipSelectLow();
  void type(uint8_t value) {type_ = value;}
   3052c:	81 e0       	ldi	r24, 0x01	; 1
   3052e:	80 93 00 17 	sts	0x1700, r24	; 0x801700 <card+0x272>
      goto fail;
    }
    type(SD_CARD_TYPE_SD2);
  }
  // initialize card and send host supports SDHC if SD2
  arg = type() == SD_CARD_TYPE_SD2 ? 0X40000000 : 0;
   30532:	80 91 00 17 	lds	r24, 0x1700	; 0x801700 <card+0x272>
   30536:	c1 2c       	mov	r12, r1
   30538:	d1 2c       	mov	r13, r1
   3053a:	76 01       	movw	r14, r12
   3053c:	82 30       	cpi	r24, 0x02	; 2
   3053e:	29 f4       	brne	.+10     	; 0x3054a <CardReader::mount(bool) [clone .constprop.216]+0x142>
   30540:	c1 2c       	mov	r12, r1
   30542:	d1 2c       	mov	r13, r1
   30544:	e1 2c       	mov	r14, r1
   30546:	80 e4       	ldi	r24, 0x40	; 64
   30548:	f8 2e       	mov	r15, r24
  uint8_t status_;
  uint8_t type_;
  bool    flash_air_compatible_;
  // private functions
  uint8_t cardAcmd(uint8_t cmd, uint32_t arg) {
    cardCommand(CMD55, 0);
   3054a:	20 e0       	ldi	r18, 0x00	; 0
   3054c:	30 e0       	ldi	r19, 0x00	; 0
   3054e:	a9 01       	movw	r20, r18
   30550:	67 e3       	ldi	r22, 0x37	; 55
   30552:	8d ef       	ldi	r24, 0xFD	; 253
   30554:	96 e1       	ldi	r25, 0x16	; 22
   30556:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
    return cardCommand(cmd, arg);
   3055a:	a7 01       	movw	r20, r14
   3055c:	96 01       	movw	r18, r12
   3055e:	69 e2       	ldi	r22, 0x29	; 41
   30560:	8d ef       	ldi	r24, 0xFD	; 253
   30562:	96 e1       	ldi	r25, 0x16	; 22
   30564:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>

  while ((status_ = cardAcmd(ACMD41, arg)) != R1_READY_STATE) {
   30568:	80 93 ff 16 	sts	0x16FF, r24	; 0x8016ff <card+0x271>
   3056c:	88 23       	and	r24, r24
   3056e:	b1 f0       	breq	.+44     	; 0x3059c <CardReader::mount(bool) [clone .constprop.216]+0x194>
    // check for timeout
    if (((uint16_t)_millis() - t0) > SD_INIT_TIMEOUT) {
   30570:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   30574:	6c 1b       	sub	r22, r28
   30576:	7d 0b       	sbc	r23, r29
   30578:	61 3d       	cpi	r22, 0xD1	; 209
   3057a:	77 40       	sbci	r23, 0x07	; 7
   3057c:	30 f3       	brcs	.-52     	; 0x3054a <CardReader::mount(bool) [clone .constprop.216]+0x142>
  bool eraseSingleBlockEnable();
  /**
   *  Set SD error code.
   *  \param[in] code value for error code.
   */
  void error(uint8_t code) {errorCode_ = code;}
   3057e:	8a e0       	ldi	r24, 0x0A	; 10
   30580:	8b cf       	rjmp	.-234    	; 0x30498 <CardReader::mount(bool) [clone .constprop.216]+0x90>
      goto fail;
    }
  }

  // check SD version
  if ((cardCommand(CMD8, 0x1AA) & R1_ILLEGAL_COMMAND)) {
   30582:	14 e0       	ldi	r17, 0x04	; 4
    type(SD_CARD_TYPE_SD1);
  } else {
    // only need last byte of r7 response
    for (uint8_t i = 0; i < 4; i++) status_ = spiRec();
   30584:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   30588:	80 93 ff 16 	sts	0x16FF, r24	; 0x8016ff <card+0x271>
   3058c:	11 50       	subi	r17, 0x01	; 1
   3058e:	d1 f7       	brne	.-12     	; 0x30584 <CardReader::mount(bool) [clone .constprop.216]+0x17c>
    if (status_ != 0XAA) {
   30590:	8a 3a       	cpi	r24, 0xAA	; 170
   30592:	11 f0       	breq	.+4      	; 0x30598 <CardReader::mount(bool) [clone .constprop.216]+0x190>
   30594:	82 e0       	ldi	r24, 0x02	; 2
   30596:	80 cf       	rjmp	.-256    	; 0x30498 <CardReader::mount(bool) [clone .constprop.216]+0x90>

  bool readData(uint8_t* dst, uint16_t count);
  bool readRegister(uint8_t cmd, void* buf);
  void chipSelectHigh();
  void chipSelectLow();
  void type(uint8_t value) {type_ = value;}
   30598:	82 e0       	ldi	r24, 0x02	; 2
   3059a:	c9 cf       	rjmp	.-110    	; 0x3052e <CardReader::mount(bool) [clone .constprop.216]+0x126>
      error(SD_CARD_ERROR_ACMD41);
      goto fail;
    }
  }
  // if SD2 read OCR register to check for SDHC card
  if (type() == SD_CARD_TYPE_SD2) {
   3059c:	80 91 00 17 	lds	r24, 0x1700	; 0x801700 <card+0x272>
   305a0:	82 30       	cpi	r24, 0x02	; 2
   305a2:	d1 f4       	brne	.+52     	; 0x305d8 <CardReader::mount(bool) [clone .constprop.216]+0x1d0>
    if (cardCommand(CMD58, 0)) {
   305a4:	20 e0       	ldi	r18, 0x00	; 0
   305a6:	30 e0       	ldi	r19, 0x00	; 0
   305a8:	a9 01       	movw	r20, r18
   305aa:	6a e3       	ldi	r22, 0x3A	; 58
   305ac:	8d ef       	ldi	r24, 0xFD	; 253
   305ae:	96 e1       	ldi	r25, 0x16	; 22
   305b0:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   305b4:	88 23       	and	r24, r24
   305b6:	11 f0       	breq	.+4      	; 0x305bc <CardReader::mount(bool) [clone .constprop.216]+0x1b4>
  bool eraseSingleBlockEnable();
  /**
   *  Set SD error code.
   *  \param[in] code value for error code.
   */
  void error(uint8_t code) {errorCode_ = code;}
   305b8:	88 e0       	ldi	r24, 0x08	; 8
   305ba:	6e cf       	rjmp	.-292    	; 0x30498 <CardReader::mount(bool) [clone .constprop.216]+0x90>
      error(SD_CARD_ERROR_CMD58);
      goto fail;
    }
    if ((spiRec() & 0XC0) == 0XC0) type(SD_CARD_TYPE_SDHC);
   305bc:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   305c0:	80 7c       	andi	r24, 0xC0	; 192
   305c2:	80 3c       	cpi	r24, 0xC0	; 192
   305c4:	19 f4       	brne	.+6      	; 0x305cc <CardReader::mount(bool) [clone .constprop.216]+0x1c4>

  bool readData(uint8_t* dst, uint16_t count);
  bool readRegister(uint8_t cmd, void* buf);
  void chipSelectHigh();
  void chipSelectLow();
  void type(uint8_t value) {type_ = value;}
   305c6:	83 e0       	ldi	r24, 0x03	; 3
   305c8:	80 93 00 17 	sts	0x1700, r24	; 0x801700 <card+0x272>
    // discard rest of ocr - contains allowed voltage range
    for (uint8_t i = 0; i < 3; i++) spiRec();
   305cc:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   305d0:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   305d4:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
  }
  chipSelectHigh();
   305d8:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
bool Sd2Card::setSckRate(uint8_t sckRateID) {
  if (sckRateID > 6) {
    error(SD_CARD_ERROR_SCK_RATE);
    return false;
  }
  spiRate_ = sckRateID;
   305dc:	10 92 fe 16 	sts	0x16FE, r1	; 0x8016fe <card+0x270>
   * \return The value one, true, is returned for success and
   * the value zero, false, is returned for failure.  Reasons for
   * failure include not finding a valid partition, not finding a valid
   * FAT file system or an I/O error.
   */
  bool init(Sd2Card* dev) { return init(dev, 1) ? true : init(dev, 0);}
   305e0:	81 e0       	ldi	r24, 0x01	; 1
   305e2:	0f 94 fd 69 	call	0x2d3fa	; 0x2d3fa <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]>
   305e6:	81 11       	cpse	r24, r1
   305e8:	0c c0       	rjmp	.+24     	; 0x30602 <CardReader::mount(bool) [clone .constprop.216]+0x1fa>
   305ea:	80 e0       	ldi	r24, 0x00	; 0
   305ec:	0f 94 fd 69 	call	0x2d3fa	; 0x2d3fa <SdVolume::init(Sd2Card*, unsigned char) [clone .constprop.256]>
#endif
  {
    SERIAL_ECHO_START;
    SERIAL_ECHOLNRPGM(_n("SD init fail"));////MSG_SD_INIT_FAIL
  }
  else if (!volume.init(&card))
   305f0:	81 11       	cpse	r24, r1
   305f2:	07 c0       	rjmp	.+14     	; 0x30602 <CardReader::mount(bool) [clone .constprop.216]+0x1fa>
  {
    SERIAL_ERROR_START;
   305f4:	88 ea       	ldi	r24, 0xA8	; 168
   305f6:	9a ea       	ldi	r25, 0xAA	; 170
   305f8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORLNRPGM(_n("volume.init failed"));////MSG_SD_VOL_INIT_FAIL
   305fc:	8e ef       	ldi	r24, 0xFE	; 254
   305fe:	9f e6       	ldi	r25, 0x6F	; 111
   30600:	78 cf       	rjmp	.-272    	; 0x304f2 <CardReader::mount(bool) [clone .constprop.216]+0xea>
  }
  else if (!root.openRoot(&volume))
   30602:	62 e0       	ldi	r22, 0x02	; 2
   30604:	77 e1       	ldi	r23, 0x17	; 23
   30606:	86 e1       	ldi	r24, 0x16	; 22
   30608:	95 e1       	ldi	r25, 0x15	; 21
   3060a:	0f 94 0b 57 	call	0x2ae16	; 0x2ae16 <SdBaseFile::openRoot(SdVolume*)>
   3060e:	81 11       	cpse	r24, r1
   30610:	07 c0       	rjmp	.+14     	; 0x30620 <CardReader::mount(bool) [clone .constprop.216]+0x218>
  {
    SERIAL_ERROR_START;
   30612:	88 ea       	ldi	r24, 0xA8	; 168
   30614:	9a ea       	ldi	r25, 0xAA	; 170
   30616:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ERRORLNRPGM(_n("openRoot failed"));////MSG_SD_OPENROOT_FAIL
   3061a:	8e ee       	ldi	r24, 0xEE	; 238
   3061c:	9f e6       	ldi	r25, 0x6F	; 111
   3061e:	69 cf       	rjmp	.-302    	; 0x304f2 <CardReader::mount(bool) [clone .constprop.216]+0xea>
  }
  else
  {
    mounted = true;
   30620:	81 e0       	ldi	r24, 0x01	; 1
   30622:	80 93 91 14 	sts	0x1491, r24	; 0x801491 <card+0x3>
    SERIAL_ECHO_START;
   30626:	80 ed       	ldi	r24, 0xD0	; 208
   30628:	9a ea       	ldi	r25, 0xAA	; 170
   3062a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLNRPGM(_n("SD card ok"));////MSG_SD_CARD_OK
   3062e:	83 ee       	ldi	r24, 0xE3	; 227
   30630:	9f e6       	ldi	r25, 0x6F	; 111
   30632:	5f cf       	rjmp	.-322    	; 0x304f2 <CardReader::mount(bool) [clone .constprop.216]+0xea>

  if (mounted)
  {
    cdroot(doPresort);
  }
}
   30634:	df 91       	pop	r29
   30636:	cf 91       	pop	r28
   30638:	1f 91       	pop	r17
   3063a:	0f 91       	pop	r16
   3063c:	ff 90       	pop	r15
   3063e:	ef 90       	pop	r14
   30640:	df 90       	pop	r13
   30642:	cf 90       	pop	r12
   30644:	08 95       	ret

00030646 <wait_for_heater(long, unsigned char) [clone .constprop.214]>:
            ms = 0;
        }
    }
}

static void wait_for_heater(long codenum, uint8_t extruder) {
   30646:	4f 92       	push	r4
   30648:	5f 92       	push	r5
   3064a:	6f 92       	push	r6
   3064c:	7f 92       	push	r7
   3064e:	8f 92       	push	r8
   30650:	9f 92       	push	r9
   30652:	af 92       	push	r10
   30654:	bf 92       	push	r11
   30656:	cf 92       	push	r12
   30658:	df 92       	push	r13
   3065a:	ef 92       	push	r14
   3065c:	ff 92       	push	r15
   3065e:	4b 01       	movw	r8, r22
   30660:	5c 01       	movw	r10, r24
  return current_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE float degTargetHotend(uint8_t extruder) {
  return target_temperature[extruder];
   30662:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   30666:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   3066a:	07 2e       	mov	r0, r23
   3066c:	00 0c       	add	r0, r0
   3066e:	88 0b       	sbc	r24, r24
   30670:	99 0b       	sbc	r25, r25
   30672:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
    if (!degTargetHotend(extruder))
   30676:	20 e0       	ldi	r18, 0x00	; 0
   30678:	30 e0       	ldi	r19, 0x00	; 0
   3067a:	a9 01       	movw	r20, r18
   3067c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   30680:	88 23       	and	r24, r24
   30682:	d1 f0       	breq	.+52     	; 0x306b8 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x72>
#ifdef TEMP_RESIDENCY_TIME
	long residencyStart;
	residencyStart = -1;
	/* continue to loop until we have reached the target temp
	_and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
    cancel_heatup = false;
   30684:	10 92 b5 0d 	sts	0x0DB5, r1	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
    if (!degTargetHotend(extruder))
        return;

#ifdef TEMP_RESIDENCY_TIME
	long residencyStart;
	residencyStart = -1;
   30688:	cc 24       	eor	r12, r12
   3068a:	ca 94       	dec	r12
   3068c:	dc 2c       	mov	r13, r12
   3068e:	76 01       	movw	r14, r12

#ifdef TEMP_RESIDENCY_TIME
				SERIAL_PROTOCOLPGM(" W:");
				if (residencyStart > -1)
				{
					codenum = ((TEMP_RESIDENCY_TIME * 1000UL) - (_millis() - residencyStart)) / 1000UL;
   30690:	98 ee       	ldi	r25, 0xE8	; 232
   30692:	49 2e       	mov	r4, r25
   30694:	93 e0       	ldi	r25, 0x03	; 3
   30696:	59 2e       	mov	r5, r25
   30698:	61 2c       	mov	r6, r1
   3069a:	71 2c       	mov	r7, r1
	long residencyStart;
	residencyStart = -1;
	/* continue to loop until we have reached the target temp
	_and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
    cancel_heatup = false;
	while ((!cancel_heatup) && ((residencyStart == -1) ||
   3069c:	80 91 b5 0d 	lds	r24, 0x0DB5	; 0x800db5 <_ZL13cancel_heatup.lto_priv.410>
   306a0:	81 11       	cpse	r24, r1
   306a2:	0a c0       	rjmp	.+20     	; 0x306b8 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x72>
   306a4:	2f ef       	ldi	r18, 0xFF	; 255
   306a6:	c2 16       	cp	r12, r18
   306a8:	d2 06       	cpc	r13, r18
   306aa:	e2 06       	cpc	r14, r18
   306ac:	f2 06       	cpc	r15, r18
   306ae:	89 f4       	brne	.+34     	; 0x306d2 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x8c>
		(residencyStart >= 0 && (((unsigned int)(_millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL))))) {
#else
	while (target_direction ? (isHeatingHotend(tmp_extruder)) : (isCoolingHotend(tmp_extruder) && (CooldownNoWait == false))) {
#endif //TEMP_RESIDENCY_TIME
        if (lcd_commands_type == LcdCommands::LongPause) {
   306b0:	80 91 b4 0d 	lds	r24, 0x0DB4	; 0x800db4 <lcd_commands_type>
   306b4:	82 30       	cpi	r24, 0x02	; 2
   306b6:	b9 f4       	brne	.+46     	; 0x306e6 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0xa0>
			{
				residencyStart = _millis();
			}
#endif //TEMP_RESIDENCY_TIME
	}
}
   306b8:	ff 90       	pop	r15
   306ba:	ef 90       	pop	r14
   306bc:	df 90       	pop	r13
   306be:	cf 90       	pop	r12
   306c0:	bf 90       	pop	r11
   306c2:	af 90       	pop	r10
   306c4:	9f 90       	pop	r9
   306c6:	8f 90       	pop	r8
   306c8:	7f 90       	pop	r7
   306ca:	6f 90       	pop	r6
   306cc:	5f 90       	pop	r5
   306ce:	4f 90       	pop	r4
   306d0:	08 95       	ret
	long residencyStart;
	residencyStart = -1;
	/* continue to loop until we have reached the target temp
	_and_ until TEMP_RESIDENCY_TIME hasn't passed since we reached it */
    cancel_heatup = false;
	while ((!cancel_heatup) && ((residencyStart == -1) ||
   306d2:	f7 fc       	sbrc	r15, 7
   306d4:	f1 cf       	rjmp	.-30     	; 0x306b8 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x72>
		(residencyStart >= 0 && (((unsigned int)(_millis() - residencyStart)) < (TEMP_RESIDENCY_TIME * 1000UL))))) {
   306d6:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   306da:	6c 19       	sub	r22, r12
   306dc:	7d 09       	sbc	r23, r13
   306de:	68 3b       	cpi	r22, 0xB8	; 184
   306e0:	7b 40       	sbci	r23, 0x0B	; 11
   306e2:	30 f3       	brcs	.-52     	; 0x306b0 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x6a>
   306e4:	e9 cf       	rjmp	.-46     	; 0x306b8 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x72>
        if (lcd_commands_type == LcdCommands::LongPause) {
            // Print was suddenly paused, break out of the loop
            // This can happen when the firmware report a fan error
            break;
        }
		if ((_millis() - codenum) > 1000UL)
   306e6:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   306ea:	68 19       	sub	r22, r8
   306ec:	79 09       	sbc	r23, r9
   306ee:	8a 09       	sbc	r24, r10
   306f0:	9b 09       	sbc	r25, r11
   306f2:	69 3e       	cpi	r22, 0xE9	; 233
   306f4:	73 40       	sbci	r23, 0x03	; 3
   306f6:	81 05       	cpc	r24, r1
   306f8:	91 05       	cpc	r25, r1
   306fa:	f0 f1       	brcs	.+124    	; 0x30778 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x132>
		{ //Print Temp Reading and remaining time every 1 second while heating up/cooling down
			if (!farm_mode) {
				SERIAL_PROTOCOLPGM("T:");
   306fc:	89 e1       	ldi	r24, 0x19	; 25
   306fe:	99 ea       	ldi	r25, 0xA9	; 169
   30700:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   30704:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   30708:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   3070c:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   30710:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   30714:	41 e0       	ldi	r20, 0x01	; 1
   30716:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
				SERIAL_PROTOCOL_F(degHotend(extruder), 1);
				SERIAL_PROTOCOLPGM(" E:");
   3071a:	85 e1       	ldi	r24, 0x15	; 21
   3071c:	99 ea       	ldi	r25, 0xA9	; 169
   3071e:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   30722:	60 e0       	ldi	r22, 0x00	; 0
   30724:	70 e0       	ldi	r23, 0x00	; 0
   30726:	cb 01       	movw	r24, r22
   30728:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
				SERIAL_PROTOCOL((int)extruder);

#ifdef TEMP_RESIDENCY_TIME
				SERIAL_PROTOCOLPGM(" W:");
   3072c:	81 e1       	ldi	r24, 0x11	; 17
   3072e:	99 ea       	ldi	r25, 0xA9	; 169
   30730:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
				if (residencyStart > -1)
   30734:	f7 fc       	sbrc	r15, 7
   30736:	52 c0       	rjmp	.+164    	; 0x307dc <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x196>
				{
					codenum = ((TEMP_RESIDENCY_TIME * 1000UL) - (_millis() - residencyStart)) / 1000UL;
   30738:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   3073c:	46 01       	movw	r8, r12
   3073e:	57 01       	movw	r10, r14
   30740:	58 eb       	ldi	r21, 0xB8	; 184
   30742:	85 0e       	add	r8, r21
   30744:	5b e0       	ldi	r21, 0x0B	; 11
   30746:	95 1e       	adc	r9, r21
   30748:	a1 1c       	adc	r10, r1
   3074a:	b1 1c       	adc	r11, r1
   3074c:	a5 01       	movw	r20, r10
   3074e:	94 01       	movw	r18, r8
   30750:	26 1b       	sub	r18, r22
   30752:	37 0b       	sbc	r19, r23
   30754:	48 0b       	sbc	r20, r24
   30756:	59 0b       	sbc	r21, r25
   30758:	ca 01       	movw	r24, r20
   3075a:	b9 01       	movw	r22, r18
   3075c:	a3 01       	movw	r20, r6
   3075e:	92 01       	movw	r18, r4
   30760:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   30764:	ca 01       	movw	r24, r20
   30766:	b9 01       	movw	r22, r18
   30768:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
}

void MarlinSerial::println(char c, int base)
{
  print(c, base);
  println();
   3076c:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>
				}
			}
#else
				SERIAL_PROTOCOLLN();
#endif
				codenum = _millis();
   30770:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   30774:	4b 01       	movw	r8, r22
   30776:	5c 01       	movw	r10, r24
		}
		delay_keep_alive(0); //do not disable steppers
   30778:	90 e0       	ldi	r25, 0x00	; 0
   3077a:	80 e0       	ldi	r24, 0x00	; 0
   3077c:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
#ifdef TEMP_RESIDENCY_TIME
			/* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
			or when current temp falls outside the hysteresis after target temp was reached */
			if ((residencyStart == -1 && target_direction && (degHotend(extruder) >= (degTargetHotend(extruder) - TEMP_WINDOW))) ||
				(residencyStart == -1 && !target_direction && (degHotend(extruder) <= (degTargetHotend(extruder) + TEMP_WINDOW))) ||
   30780:	3f ef       	ldi	r19, 0xFF	; 255
   30782:	c3 16       	cp	r12, r19
   30784:	d3 06       	cpc	r13, r19
   30786:	e3 06       	cpc	r14, r19
   30788:	f3 06       	cpc	r15, r19
   3078a:	09 f0       	breq	.+2      	; 0x3078e <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x148>
   3078c:	46 c0       	rjmp	.+140    	; 0x3081a <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x1d4>
		}
		delay_keep_alive(0); //do not disable steppers
#ifdef TEMP_RESIDENCY_TIME
			/* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
			or when current temp falls outside the hysteresis after target temp was reached */
			if ((residencyStart == -1 && target_direction && (degHotend(extruder) >= (degTargetHotend(extruder) - TEMP_WINDOW))) ||
   3078e:	80 91 af 0d 	lds	r24, 0x0DAF	; 0x800daf <_ZL16target_direction.lto_priv.534>
   30792:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   30796:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   3079a:	88 23       	and	r24, r24
   3079c:	19 f1       	breq	.+70     	; 0x307e4 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x19e>
   3079e:	07 2e       	mov	r0, r23
   307a0:	00 0c       	add	r0, r0
   307a2:	88 0b       	sbc	r24, r24
   307a4:	99 0b       	sbc	r25, r25
   307a6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   307aa:	20 e0       	ldi	r18, 0x00	; 0
   307ac:	30 e0       	ldi	r19, 0x00	; 0
   307ae:	40 e8       	ldi	r20, 0x80	; 128
   307b0:	5f e3       	ldi	r21, 0x3F	; 63
   307b2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   307b6:	9b 01       	movw	r18, r22
   307b8:	ac 01       	movw	r20, r24
   307ba:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   307be:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   307c2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   307c6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   307ca:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   307ce:	87 fd       	sbrc	r24, 7
   307d0:	65 cf       	rjmp	.-310    	; 0x3069c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x56>
				(residencyStart == -1 && !target_direction && (degHotend(extruder) <= (degTargetHotend(extruder) + TEMP_WINDOW))) ||
				(residencyStart > -1 && fabs(degHotend(extruder) - degTargetHotend(extruder)) > TEMP_HYSTERESIS))
			{
				residencyStart = _millis();
   307d2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   307d6:	6b 01       	movw	r12, r22
   307d8:	7c 01       	movw	r14, r24
   307da:	60 cf       	rjmp	.-320    	; 0x3069c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x56>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   307dc:	8f e3       	ldi	r24, 0x3F	; 63
   307de:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
   307e2:	c4 cf       	rjmp	.-120    	; 0x3076c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x126>
   307e4:	07 2e       	mov	r0, r23
   307e6:	00 0c       	add	r0, r0
   307e8:	88 0b       	sbc	r24, r24
   307ea:	99 0b       	sbc	r25, r25
   307ec:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
		delay_keep_alive(0); //do not disable steppers
#ifdef TEMP_RESIDENCY_TIME
			/* start/restart the TEMP_RESIDENCY_TIME timer whenever we reach target temp for the first time
			or when current temp falls outside the hysteresis after target temp was reached */
			if ((residencyStart == -1 && target_direction && (degHotend(extruder) >= (degTargetHotend(extruder) - TEMP_WINDOW))) ||
				(residencyStart == -1 && !target_direction && (degHotend(extruder) <= (degTargetHotend(extruder) + TEMP_WINDOW))) ||
   307f0:	20 e0       	ldi	r18, 0x00	; 0
   307f2:	30 e0       	ldi	r19, 0x00	; 0
   307f4:	40 e8       	ldi	r20, 0x80	; 128
   307f6:	5f e3       	ldi	r21, 0x3F	; 63
   307f8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   307fc:	9b 01       	movw	r18, r22
   307fe:	ac 01       	movw	r20, r24
   30800:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   30804:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   30808:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   3080c:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   30810:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   30814:	18 16       	cp	r1, r24
   30816:	ec f6       	brge	.-70     	; 0x307d2 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x18c>
   30818:	41 cf       	rjmp	.-382    	; 0x3069c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x56>
   3081a:	f7 fc       	sbrc	r15, 7
   3081c:	3f cf       	rjmp	.-386    	; 0x3069c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x56>
   3081e:	60 91 b6 0d 	lds	r22, 0x0DB6	; 0x800db6 <target_temperature>
   30822:	70 91 b7 0d 	lds	r23, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   30826:	07 2e       	mov	r0, r23
   30828:	00 0c       	add	r0, r0
   3082a:	88 0b       	sbc	r24, r24
   3082c:	99 0b       	sbc	r25, r25
   3082e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   30832:	9b 01       	movw	r18, r22
   30834:	ac 01       	movw	r20, r24
				(residencyStart > -1 && fabs(degHotend(extruder) - degTargetHotend(extruder)) > TEMP_HYSTERESIS))
   30836:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   3083a:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   3083e:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   30842:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   30846:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3084a:	9f 77       	andi	r25, 0x7F	; 127
   3084c:	20 e0       	ldi	r18, 0x00	; 0
   3084e:	30 e0       	ldi	r19, 0x00	; 0
   30850:	40 ea       	ldi	r20, 0xA0	; 160
   30852:	50 e4       	ldi	r21, 0x40	; 64
   30854:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   30858:	18 16       	cp	r1, r24
   3085a:	0c f0       	brlt	.+2      	; 0x3085e <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x218>
   3085c:	1f cf       	rjmp	.-450    	; 0x3069c <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x56>
   3085e:	b9 cf       	rjmp	.-142    	; 0x307d2 <wait_for_heater(long, unsigned char) [clone .constprop.214]+0x18c>

00030860 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]>:
    // Compensate for configurable Extra Loading Distance
    planner_set_current_position_E(planner_get_current_position_E() - (logic.ExtraLoadDistance() - MMU2_FILAMENT_SENSOR_POSITION));
    execute_extruder_sequence(load_to_nozzle_sequence, sizeof(load_to_nozzle_sequence) / sizeof(load_to_nozzle_sequence[0]));
}

void MMU2::ReportError(ErrorCode ec, ErrorSource res) {
   30860:	1f 93       	push	r17
   30862:	cf 93       	push	r28
   30864:	df 93       	push	r29
   30866:	ec 01       	movw	r28, r24
   30868:	16 2f       	mov	r17, r22
    // - report only changes of states (we can miss an error message)
    // - may be some combination of MMUAvailable + UseMMU flags and decide based on their state
    // Right now the filtering of MMU_NOT_RESPONDING is done in ReportErrorHook() as it is not a problem if mmu2.cpp

    // Depending on the Progress code, we may want to do some action when an error occurs
    switch (logic.Progress()) {
   3086a:	80 91 8d 13 	lds	r24, 0x138D	; 0x80138d <MMU2::mmu2+0x42>
   3086e:	83 30       	cpi	r24, 0x03	; 3
   30870:	09 f4       	brne	.+2      	; 0x30874 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x14>
   30872:	4e c0       	rjmp	.+156    	; 0x30910 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xb0>
   30874:	8c 31       	cpi	r24, 0x1C	; 28
   30876:	09 f4       	brne	.+2      	; 0x3087a <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x1a>
   30878:	52 c0       	rjmp	.+164    	; 0x3091e <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xbe>
        break;
    default:
        break;
    }

    if (ec != lastErrorCode) { // deduplicate: only report changes in error codes into the log
   3087a:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   3087e:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   30882:	8c 17       	cp	r24, r28
   30884:	9d 07       	cpc	r25, r29
   30886:	79 f1       	breq	.+94     	; 0x308e6 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x86>
        lastErrorCode = ec;
   30888:	d0 93 b3 13 	sts	0x13B3, r29	; 0x8013b3 <MMU2::mmu2+0x68>
   3088c:	c0 93 b2 13 	sts	0x13B2, r28	; 0x8013b2 <MMU2::mmu2+0x67>
        lastErrorSource = res;
   30890:	10 93 b4 13 	sts	0x13B4, r17	; 0x8013b4 <MMU2::mmu2+0x69>
        LogErrorEvent_P(_O(PrusaErrorTitle(PrusaErrorCodeIndex(ec))));
   30894:	ce 01       	movw	r24, r28
   30896:	0f 94 2b c6 	call	0x38c56	; 0x38c56 <MMU2::PrusaErrorCodeIndex(ErrorCode)>
uint16_t PrusaErrorCode(uint8_t i) {
    return pgm_read_word(errorCodes + i);
}

const char *PrusaErrorTitle(uint8_t i) {
    return (const char *)pgm_read_ptr(errorTitles + i);
   3089a:	e8 2f       	mov	r30, r24
   3089c:	f0 e0       	ldi	r31, 0x00	; 0
   3089e:	ee 0f       	add	r30, r30
   308a0:	ff 1f       	adc	r31, r31
   308a2:	eb 5b       	subi	r30, 0xBB	; 187
   308a4:	f7 45       	sbci	r31, 0x57	; 87
   308a6:	85 91       	lpm	r24, Z+
   308a8:	94 91       	lpm	r25, Z
   308aa:	02 96       	adiw	r24, 0x02	; 2
   308ac:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>

        if (ec != ErrorCode::OK && ec != ErrorCode::FILAMENT_EJECTED && ec != ErrorCode::FILAMENT_CHANGE) {
   308b0:	c1 30       	cpi	r28, 0x01	; 1
   308b2:	d1 05       	cpc	r29, r1
   308b4:	c1 f0       	breq	.+48     	; 0x308e6 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x86>
   308b6:	cc 30       	cpi	r28, 0x0C	; 12
   308b8:	80 e8       	ldi	r24, 0x80	; 128
   308ba:	d8 07       	cpc	r29, r24
   308bc:	a1 f0       	breq	.+40     	; 0x308e6 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x86>
   308be:	c9 32       	cpi	r28, 0x29	; 41
   308c0:	80 e8       	ldi	r24, 0x80	; 128
   308c2:	d8 07       	cpc	r29, r24
   308c4:	81 f0       	breq	.+32     	; 0x308e6 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x86>
            IncrementMMUFails();
   308c6:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>
                | (uint16_t)ErrorCode::TMC_OVER_TEMPERATURE_ERROR
                | (uint16_t)ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION ) & 0x7fffU; // skip the top bit
            // clang-format on
            static_assert(tmcMask == 0x7e00); // just make sure we fail compilation if any of the TMC error codes change

            if ((uint16_t)ec & tmcMask) { // @@TODO can be optimized to uint8_t operation
   308ca:	ce 01       	movw	r24, r28
   308cc:	88 27       	eor	r24, r24
   308ce:	9e 77       	andi	r25, 0x7E	; 126
   308d0:	89 2b       	or	r24, r25
   308d2:	49 f0       	breq	.+18     	; 0x308e6 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x86>

    /// Set toolchange counter to zero
    inline void ClearToolChangeCounter() { toolchange_counter = 0; };

    inline uint16_t TMCFailures() const { return tmcFailures; }
    inline void IncrementTMCFailures() { ++tmcFailures; }
   308d4:	80 91 c0 13 	lds	r24, 0x13C0	; 0x8013c0 <MMU2::mmu2+0x75>
   308d8:	90 91 c1 13 	lds	r25, 0x13C1	; 0x8013c1 <MMU2::mmu2+0x76>
   308dc:	01 96       	adiw	r24, 0x01	; 1
   308de:	90 93 c1 13 	sts	0x13C1, r25	; 0x8013c1 <MMU2::mmu2+0x76>
   308e2:	80 93 c0 13 	sts	0x13C0, r24	; 0x8013c0 <MMU2::mmu2+0x75>
        return true;
    }
}

bool MMU2::RetryIfPossible(ErrorCode ec) {
    if (logic.RetryAttempts()) {
   308e6:	80 91 9f 13 	lds	r24, 0x139F	; 0x80139f <MMU2::mmu2+0x54>
   308ea:	88 23       	and	r24, r24
   308ec:	d9 f0       	breq	.+54     	; 0x30924 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xc4>

    return Buttons::NoButton;
}

void SetButtonResponse(ButtonOperations rsp) {
    buttonSelectedOperation = rsp;
   308ee:	11 e0       	ldi	r17, 0x01	; 1
   308f0:	10 93 ae 0d 	sts	0x0DAE, r17	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
        SetButtonResponse(ButtonOperations::Retry);
        // check, that Retry is actually allowed on that operation
        if (ButtonAvailable(ec) != Buttons::NoButton) {
   308f4:	ce 01       	movw	r24, r28
   308f6:	0f 94 b6 c8 	call	0x3916c	; 0x3916c <MMU2::ButtonAvailable(ErrorCode)>
   308fa:	8f 3f       	cpi	r24, 0xFF	; 255
   308fc:	99 f0       	breq	.+38     	; 0x30924 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xc4>

    void ResetCommunicationTimeoutAttempts();

    constexpr bool InAutoRetry() const { return inAutoRetry; }
    void SetInAutoRetry(bool iar) {
        inAutoRetry = iar;
   308fe:	10 93 a0 13 	sts	0x13A0, r17	; 0x8013a0 <MMU2::mmu2+0x55>
            logic.SetInAutoRetry(true);
            SERIAL_ECHOLNPGM("RetryButtonPressed");
   30902:	82 e3       	ldi	r24, 0x32	; 50
   30904:	98 ea       	ldi	r25, 0xA8	; 168
            && mmu2Magic[2] == 'U'
            && mmu2Magic[3] == '2'
            && mmu2Magic[4] == ':'
            && strlen_constexpr(mmu2Magic) == 5,
        "MMU2 logging prefix mismatch, must be updated at various spots");
}
   30906:	df 91       	pop	r29
   30908:	cf 91       	pop	r28
   3090a:	1f 91       	pop	r17
    if (logic.RetryAttempts()) {
        SetButtonResponse(ButtonOperations::Retry);
        // check, that Retry is actually allowed on that operation
        if (ButtonAvailable(ec) != Buttons::NoButton) {
            logic.SetInAutoRetry(true);
            SERIAL_ECHOLNPGM("RetryButtonPressed");
   3090c:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    // Right now the filtering of MMU_NOT_RESPONDING is done in ReportErrorHook() as it is not a problem if mmu2.cpp

    // Depending on the Progress code, we may want to do some action when an error occurs
    switch (logic.Progress()) {
    case ProgressCode::UnloadingToFinda:
        unloadFilamentStarted = false;
   30910:	10 92 bd 13 	sts	0x13BD, r1	; 0x8013bd <MMU2::mmu2+0x72>
float move_raise_z(float delta) {
    return raise_z(delta);
}

void planner_abort_queued_moves() {
    planner_abort_hard();
   30914:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>
    // Unblock the planner. This should be safe in the
    // toolchange context. Currently we are mainly aborting
    // excess E-moves after detecting filament during toolchange.
    // If a MMU error is reported, the planner must be unblocked
    // as well so the extruder can be parked safely.
    planner_aborted = false;
   30918:	10 92 ac 0d 	sts	0x0DAC, r1	; 0x800dac <planner_aborted>
   3091c:	ae cf       	rjmp	.-164    	; 0x3087a <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0x1a>
        planner_abort_queued_moves();  // Abort excess E-moves to be safe
        break;
    case ProgressCode::FeedingToFSensor:
        // FSENSOR error during load. Make sure E-motor stops moving.
        loadFilamentStarted = false;
   3091e:	10 92 bc 13 	sts	0x13BC, r1	; 0x8013bc <MMU2::mmu2+0x71>
   30922:	f8 cf       	rjmp	.-16     	; 0x30914 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xb4>
   30924:	10 92 a0 13 	sts	0x13A0, r1	; 0x8013a0 <MMU2::mmu2+0x55>
bool TuneMenuEntered() {
    return putErrorScreenToSleep;
}

void ReportErrorHook(CommandInProgress /*cip*/, ErrorCode ec, uint8_t /*es*/) {
    if (putErrorScreenToSleep) return;
   30928:	80 91 ad 0d 	lds	r24, 0x0DAD	; 0x800dad <_ZN4MMU2L21putErrorScreenToSleepE.lto_priv.498>
   3092c:	81 11       	cpse	r24, r1
   3092e:	06 c0       	rjmp	.+12     	; 0x3093c <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]+0xdc>
   30930:	ce 01       	movw	r24, r28
            && mmu2Magic[2] == 'U'
            && mmu2Magic[3] == '2'
            && mmu2Magic[4] == ':'
            && strlen_constexpr(mmu2Magic) == 5,
        "MMU2 logging prefix mismatch, must be updated at various spots");
}
   30932:	df 91       	pop	r29
   30934:	cf 91       	pop	r28
   30936:	1f 91       	pop	r17
   30938:	0d 94 7c c7 	jmp	0x38ef8	; 0x38ef8 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]>
   3093c:	df 91       	pop	r29
   3093e:	cf 91       	pop	r28
   30940:	1f 91       	pop	r17
   30942:	08 95       	ret

00030944 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]>:
 * \a nbyte.  If an error occurs, write() returns -1.  Possible errors
 * include write() is called before a file has been opened, write is called
 * for a read-only file, device is full, a corrupt file system or an I/O error.
 *
 */
int16_t SdBaseFile::write(const void* buf, uint16_t nbyte) {
   30944:	2f 92       	push	r2
   30946:	3f 92       	push	r3
   30948:	4f 92       	push	r4
   3094a:	5f 92       	push	r5
   3094c:	6f 92       	push	r6
   3094e:	7f 92       	push	r7
   30950:	8f 92       	push	r8
   30952:	9f 92       	push	r9
   30954:	af 92       	push	r10
   30956:	bf 92       	push	r11
   30958:	cf 92       	push	r12
   3095a:	df 92       	push	r13
   3095c:	ef 92       	push	r14
   3095e:	ff 92       	push	r15
   30960:	0f 93       	push	r16
   30962:	1f 93       	push	r17
   30964:	cf 93       	push	r28
   30966:	df 93       	push	r29
   30968:	00 d0       	rcall	.+0      	; 0x3096a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x26>
   3096a:	1f 92       	push	r1
   3096c:	cd b7       	in	r28, 0x3d	; 61
   3096e:	de b7       	in	r29, 0x3e	; 62
   30970:	5c 01       	movw	r10, r24
   30972:	4b 01       	movw	r8, r22

  // number of bytes left to write  -  must be before goto statements
  uint16_t nToWrite = nbyte;

  // error if not a normal file or is read-only
  if (!isFile() || !(flags_ & O_WRITE)) goto fail;
   30974:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   30978:	81 30       	cpi	r24, 0x01	; 1
   3097a:	09 f0       	breq	.+2      	; 0x3097e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x3a>
   3097c:	de c0       	rjmp	.+444    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
   3097e:	80 91 21 17 	lds	r24, 0x1721	; 0x801721 <card+0x293>
   30982:	81 ff       	sbrs	r24, 1
   30984:	da c0       	rjmp	.+436    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>

  // seek to end of file if append flag
  if ((flags_ & O_APPEND) && curPosition_ != fileSize_) {
   30986:	82 fd       	sbrc	r24, 2
   30988:	bc c0       	rjmp	.+376    	; 0x30b02 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1be>
 * \a nbyte.  If an error occurs, write() returns -1.  Possible errors
 * include write() is called before a file has been opened, write is called
 * for a read-only file, device is full, a corrupt file system or an I/O error.
 *
 */
int16_t SdBaseFile::write(const void* buf, uint16_t nbyte) {
   3098a:	74 01       	movw	r14, r8
          curCluster_ = next;
        }
      }
    }
    // max space in block
    uint16_t n = 512 - blockOffset;
   3098c:	21 2c       	mov	r2, r1
   3098e:	32 e0       	ldi	r19, 0x02	; 2
   30990:	33 2e       	mov	r3, r19
   30992:	00 91 28 17 	lds	r16, 0x1728	; 0x801728 <card+0x29a>
   30996:	10 91 29 17 	lds	r17, 0x1729	; 0x801729 <card+0x29b>
   3099a:	20 91 2a 17 	lds	r18, 0x172A	; 0x80172a <card+0x29c>
   3099e:	30 91 2b 17 	lds	r19, 0x172B	; 0x80172b <card+0x29d>
  // seek to end of file if append flag
  if ((flags_ & O_APPEND) && curPosition_ != fileSize_) {
    if (!seekEnd()) goto fail;
  }

  while (nToWrite > 0) {
   309a2:	e1 14       	cp	r14, r1
   309a4:	f1 04       	cpc	r15, r1
   309a6:	09 f4       	brne	.+2      	; 0x309aa <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x66>
   309a8:	30 c1       	rjmp	.+608    	; 0x30c0a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x2c6>
    uint8_t blockOfCluster = vol_->blockOfCluster(curPosition_);
   309aa:	80 91 39 17 	lds	r24, 0x1739	; 0x801739 <card+0x2ab>
   309ae:	90 91 3a 17 	lds	r25, 0x173A	; 0x80173a <card+0x2ac>
  uint16_t rootDirEntryCount_;  // number of entries in FAT16 root dir
  uint32_t rootDirStart_;       // root start block for FAT16, cluster for FAT32
  //----------------------------------------------------------------------------
  bool allocContiguous(uint32_t count, uint32_t* curCluster);
  uint8_t blockOfCluster(uint32_t position) const {
          return (position >> 9) & (blocksPerCluster_ - 1);}
   309b2:	dc 01       	movw	r26, r24
   309b4:	14 96       	adiw	r26, 0x04	; 4
   309b6:	7c 90       	ld	r7, X
   309b8:	7a 94       	dec	r7
   309ba:	b9 01       	movw	r22, r18
   309bc:	a8 01       	movw	r20, r16
   309be:	29 e0       	ldi	r18, 0x09	; 9
   309c0:	76 95       	lsr	r23
   309c2:	67 95       	ror	r22
   309c4:	57 95       	ror	r21
   309c6:	47 95       	ror	r20
   309c8:	2a 95       	dec	r18
   309ca:	d1 f7       	brne	.-12     	; 0x309c0 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x7c>
   309cc:	74 22       	and	r7, r20
    uint16_t blockOffset = curPosition_ & 0X1FF;
   309ce:	11 70       	andi	r17, 0x01	; 1
    if (blockOfCluster == 0 && blockOffset == 0) {
   309d0:	71 10       	cpse	r7, r1
   309d2:	25 c0       	rjmp	.+74     	; 0x30a1e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xda>
   309d4:	01 15       	cp	r16, r1
   309d6:	11 05       	cpc	r17, r1
   309d8:	11 f5       	brne	.+68     	; 0x30a1e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xda>
   309da:	40 91 24 17 	lds	r20, 0x1724	; 0x801724 <card+0x296>
   309de:	50 91 25 17 	lds	r21, 0x1725	; 0x801725 <card+0x297>
   309e2:	60 91 26 17 	lds	r22, 0x1726	; 0x801726 <card+0x298>
   309e6:	70 91 27 17 	lds	r23, 0x1727	; 0x801727 <card+0x299>
      // start of new cluster
      if (curCluster_ == 0) {
   309ea:	41 15       	cp	r20, r1
   309ec:	51 05       	cpc	r21, r1
   309ee:	61 05       	cpc	r22, r1
   309f0:	71 05       	cpc	r23, r1
   309f2:	09 f0       	breq	.+2      	; 0x309f6 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xb2>
   309f4:	a8 c0       	rjmp	.+336    	; 0x30b46 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x202>
        if (firstCluster_ == 0) {
   309f6:	80 91 35 17 	lds	r24, 0x1735	; 0x801735 <card+0x2a7>
   309fa:	90 91 36 17 	lds	r25, 0x1736	; 0x801736 <card+0x2a8>
   309fe:	a0 91 37 17 	lds	r26, 0x1737	; 0x801737 <card+0x2a9>
   30a02:	b0 91 38 17 	lds	r27, 0x1738	; 0x801738 <card+0x2aa>
   30a06:	00 97       	sbiw	r24, 0x00	; 0
   30a08:	a1 05       	cpc	r26, r1
   30a0a:	b1 05       	cpc	r27, r1
   30a0c:	09 f0       	breq	.+2      	; 0x30a10 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xcc>
   30a0e:	b4 c0       	rjmp	.+360    	; 0x30b78 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x234>
      } else {
        uint32_t next;
        if (!vol_->fatGet(curCluster_, &next)) goto fail;
        if (vol_->isEOC(next)) {
          // add cluster if at end of chain
          if (!addCluster()) goto fail;
   30a10:	80 e2       	ldi	r24, 0x20	; 32
   30a12:	97 e1       	ldi	r25, 0x17	; 23
   30a14:	0f 94 68 58 	call	0x2b0d0	; 0x2b0d0 <SdBaseFile::addCluster()>
   30a18:	88 23       	and	r24, r24
   30a1a:	09 f4       	brne	.+2      	; 0x30a1e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xda>
   30a1c:	8e c0       	rjmp	.+284    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
          curCluster_ = next;
        }
      }
    }
    // max space in block
    uint16_t n = 512 - blockOffset;
   30a1e:	c1 01       	movw	r24, r2
   30a20:	80 1b       	sub	r24, r16
   30a22:	91 0b       	sbc	r25, r17
   30a24:	67 01       	movw	r12, r14
   30a26:	8e 15       	cp	r24, r14
   30a28:	9f 05       	cpc	r25, r15
   30a2a:	08 f4       	brcc	.+2      	; 0x30a2e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xea>
   30a2c:	6c 01       	movw	r12, r24

    // lesser of space and amount to write
    if (n > nToWrite) n = nToWrite;

    // block for data write
    uint32_t block = vol_->clusterStartBlock(curCluster_) + blockOfCluster;
   30a2e:	e0 91 39 17 	lds	r30, 0x1739	; 0x801739 <card+0x2ab>
   30a32:	f0 91 3a 17 	lds	r31, 0x173A	; 0x80173a <card+0x2ac>
  uint32_t clusterStartBlock(uint32_t cluster) const {
           return dataStartBlock_ + ((cluster - 2) << clusterSizeShift_);}
   30a36:	80 91 24 17 	lds	r24, 0x1724	; 0x801724 <card+0x296>
   30a3a:	90 91 25 17 	lds	r25, 0x1725	; 0x801725 <card+0x297>
   30a3e:	a0 91 26 17 	lds	r26, 0x1726	; 0x801726 <card+0x298>
   30a42:	b0 91 27 17 	lds	r27, 0x1727	; 0x801727 <card+0x299>
   30a46:	02 97       	sbiw	r24, 0x02	; 2
   30a48:	a1 09       	sbc	r26, r1
   30a4a:	b1 09       	sbc	r27, r1
   30a4c:	25 85       	ldd	r18, Z+13	; 0x0d
   30a4e:	04 c0       	rjmp	.+8      	; 0x30a58 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x114>
   30a50:	88 0f       	add	r24, r24
   30a52:	99 1f       	adc	r25, r25
   30a54:	aa 1f       	adc	r26, r26
   30a56:	bb 1f       	adc	r27, r27
   30a58:	2a 95       	dec	r18
   30a5a:	d2 f7       	brpl	.-12     	; 0x30a50 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x10c>
   30a5c:	46 85       	ldd	r20, Z+14	; 0x0e
   30a5e:	57 85       	ldd	r21, Z+15	; 0x0f
   30a60:	60 89       	ldd	r22, Z+16	; 0x10
   30a62:	71 89       	ldd	r23, Z+17	; 0x11
   30a64:	84 0f       	add	r24, r20
   30a66:	95 1f       	adc	r25, r21
   30a68:	a6 1f       	adc	r26, r22
   30a6a:	b7 1f       	adc	r27, r23
   30a6c:	9c 01       	movw	r18, r24
   30a6e:	ad 01       	movw	r20, r26
   30a70:	27 0d       	add	r18, r7
   30a72:	31 1d       	adc	r19, r1
   30a74:	41 1d       	adc	r20, r1
   30a76:	51 1d       	adc	r21, r1
   30a78:	29 01       	movw	r4, r18
   30a7a:	3a 01       	movw	r6, r20
    if (n == 512) {
   30a7c:	c1 14       	cp	r12, r1
   30a7e:	32 e0       	ldi	r19, 0x02	; 2
   30a80:	d3 06       	cpc	r13, r19
   30a82:	09 f0       	breq	.+2      	; 0x30a86 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x142>
   30a84:	8a c0       	rjmp	.+276    	; 0x30b9a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x256>
      // full block - don't need to use cache
      if (vol_->cacheBlockNumber() == block) {
   30a86:	80 91 91 0e 	lds	r24, 0x0E91	; 0x800e91 <SdVolume::cacheBlockNumber_>
   30a8a:	90 91 92 0e 	lds	r25, 0x0E92	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   30a8e:	a0 91 93 0e 	lds	r26, 0x0E93	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   30a92:	b0 91 94 0e 	lds	r27, 0x0E94	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
   30a96:	48 16       	cp	r4, r24
   30a98:	59 06       	cpc	r5, r25
   30a9a:	6a 06       	cpc	r6, r26
   30a9c:	7b 06       	cpc	r7, r27
   30a9e:	69 f4       	brne	.+26     	; 0x30aba <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x176>
  static bool cacheFlush();
  static bool cacheRawBlock(uint32_t blockNumber, bool dirty);
#endif  // USE_MULTIPLE_CARDS
  // used by SdBaseFile write to assign cache to SD location
  void cacheSetBlockNumber(uint32_t blockNumber, bool dirty) {
    cacheDirty_ = dirty;
   30aa0:	10 92 99 0e 	sts	0x0E99, r1	; 0x800e99 <SdVolume::cacheDirty_>
    cacheBlockNumber_  = blockNumber;
   30aa4:	8f ef       	ldi	r24, 0xFF	; 255
   30aa6:	9f ef       	ldi	r25, 0xFF	; 255
   30aa8:	dc 01       	movw	r26, r24
   30aaa:	80 93 91 0e 	sts	0x0E91, r24	; 0x800e91 <SdVolume::cacheBlockNumber_>
   30aae:	90 93 92 0e 	sts	0x0E92, r25	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   30ab2:	a0 93 93 0e 	sts	0x0E93, r26	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   30ab6:	b0 93 94 0e 	sts	0x0E94, r27	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
    return  cluster >= FAT32EOC_MIN;
  }
  bool readBlock(uint32_t block, uint8_t* dst) {
    return sdCard_->readBlock(block, dst);}
  bool writeBlock(uint32_t block, const uint8_t* dst) {
    return sdCard_->writeBlock(block, dst);
   30aba:	95 01       	movw	r18, r10
   30abc:	b3 01       	movw	r22, r6
   30abe:	a2 01       	movw	r20, r4
   30ac0:	80 91 9a 0e 	lds	r24, 0x0E9A	; 0x800e9a <SdVolume::sdCard_>
   30ac4:	90 91 9b 0e 	lds	r25, 0x0E9B	; 0x800e9b <SdVolume::sdCard_+0x1>
   30ac8:	0f 94 f3 53 	call	0x2a7e6	; 0x2a7e6 <Sd2Card::writeBlock(unsigned long, unsigned char const*)>
        // invalidate cache if block is in cache
        vol_->cacheSetBlockNumber(0XFFFFFFFF, false);
      }
      if (!vol_->writeBlock(block, src)) goto fail;
   30acc:	88 23       	and	r24, r24
   30ace:	a9 f1       	breq	.+106    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
        if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail;
      }
      uint8_t* dst = vol_->cache()->data + blockOffset;
      memcpy(dst, src, n);
    }
    curPosition_ += n;
   30ad0:	80 91 28 17 	lds	r24, 0x1728	; 0x801728 <card+0x29a>
   30ad4:	90 91 29 17 	lds	r25, 0x1729	; 0x801729 <card+0x29b>
   30ad8:	a0 91 2a 17 	lds	r26, 0x172A	; 0x80172a <card+0x29c>
   30adc:	b0 91 2b 17 	lds	r27, 0x172B	; 0x80172b <card+0x29d>
   30ae0:	8c 0d       	add	r24, r12
   30ae2:	9d 1d       	adc	r25, r13
   30ae4:	a1 1d       	adc	r26, r1
   30ae6:	b1 1d       	adc	r27, r1
   30ae8:	80 93 28 17 	sts	0x1728, r24	; 0x801728 <card+0x29a>
   30aec:	90 93 29 17 	sts	0x1729, r25	; 0x801729 <card+0x29b>
   30af0:	a0 93 2a 17 	sts	0x172A, r26	; 0x80172a <card+0x29c>
   30af4:	b0 93 2b 17 	sts	0x172B, r27	; 0x80172b <card+0x29d>
    src += n;
   30af8:	ac 0c       	add	r10, r12
   30afa:	bd 1c       	adc	r11, r13
    nToWrite -= n;
   30afc:	ec 18       	sub	r14, r12
   30afe:	fd 08       	sbc	r15, r13
   30b00:	48 cf       	rjmp	.-368    	; 0x30992 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x4e>

  // error if not a normal file or is read-only
  if (!isFile() || !(flags_ & O_WRITE)) goto fail;

  // seek to end of file if append flag
  if ((flags_ & O_APPEND) && curPosition_ != fileSize_) {
   30b02:	40 91 31 17 	lds	r20, 0x1731	; 0x801731 <card+0x2a3>
   30b06:	50 91 32 17 	lds	r21, 0x1732	; 0x801732 <card+0x2a4>
   30b0a:	60 91 33 17 	lds	r22, 0x1733	; 0x801733 <card+0x2a5>
   30b0e:	70 91 34 17 	lds	r23, 0x1734	; 0x801734 <card+0x2a6>
   30b12:	80 91 28 17 	lds	r24, 0x1728	; 0x801728 <card+0x29a>
   30b16:	90 91 29 17 	lds	r25, 0x1729	; 0x801729 <card+0x29b>
   30b1a:	a0 91 2a 17 	lds	r26, 0x172A	; 0x80172a <card+0x29c>
   30b1e:	b0 91 2b 17 	lds	r27, 0x172B	; 0x80172b <card+0x29d>
   30b22:	48 17       	cp	r20, r24
   30b24:	59 07       	cpc	r21, r25
   30b26:	6a 07       	cpc	r22, r26
   30b28:	7b 07       	cpc	r23, r27
   30b2a:	09 f4       	brne	.+2      	; 0x30b2e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1ea>
   30b2c:	2e cf       	rjmp	.-420    	; 0x3098a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x46>
  }
  /** Set the files position to end-of-file + \a offset. See seekSet().
   * \param[in] offset The new position in bytes from end-of-file.
   * \return true for success or false for failure.
   */
  bool seekEnd(int32_t offset = 0) {return seekSet(fileSize_ + offset);}
   30b2e:	80 e2       	ldi	r24, 0x20	; 32
   30b30:	97 e1       	ldi	r25, 0x17	; 23
   30b32:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
    if (!seekEnd()) goto fail;
   30b36:	81 11       	cpse	r24, r1
   30b38:	28 cf       	rjmp	.-432    	; 0x3098a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x46>
  }
  return nbyte;

 fail:
  // return for write error
  writeError = true;
   30b3a:	81 e0       	ldi	r24, 0x01	; 1
   30b3c:	80 93 20 17 	sts	0x1720, r24	; 0x801720 <card+0x292>
  return -1;
   30b40:	8f ef       	ldi	r24, 0xFF	; 255
   30b42:	9f ef       	ldi	r25, 0xFF	; 255
   30b44:	81 c0       	rjmp	.+258    	; 0x30c48 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x304>
        } else {
          curCluster_ = firstCluster_;
        }
      } else {
        uint32_t next;
        if (!vol_->fatGet(curCluster_, &next)) goto fail;
   30b46:	9e 01       	movw	r18, r28
   30b48:	2f 5f       	subi	r18, 0xFF	; 255
   30b4a:	3f 4f       	sbci	r19, 0xFF	; 255
   30b4c:	0f 94 1e 56 	call	0x2ac3c	; 0x2ac3c <SdVolume::fatGet(unsigned long, unsigned long*)>
   30b50:	88 23       	and	r24, r24
   30b52:	99 f3       	breq	.-26     	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
        if (vol_->isEOC(next)) {
   30b54:	89 81       	ldd	r24, Y+1	; 0x01
   30b56:	9a 81       	ldd	r25, Y+2	; 0x02
   30b58:	ab 81       	ldd	r26, Y+3	; 0x03
   30b5a:	bc 81       	ldd	r27, Y+4	; 0x04
    return fatPut(cluster, 0x0FFFFFFF);
  }
  bool freeChain(uint32_t cluster);
  bool isEOC(uint32_t cluster) const {
    if (FAT12_SUPPORT && fatType_ == 12) return  cluster >= FAT12EOC_MIN;
    if (fatType_ == 16) return cluster >= FAT16EOC_MIN;
   30b5c:	e0 91 39 17 	lds	r30, 0x1739	; 0x801739 <card+0x2ab>
   30b60:	f0 91 3a 17 	lds	r31, 0x173A	; 0x80173a <card+0x2ac>
   30b64:	27 89       	ldd	r18, Z+23	; 0x17
   30b66:	20 31       	cpi	r18, 0x10	; 16
   30b68:	81 f4       	brne	.+32     	; 0x30b8a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x246>
   30b6a:	88 3f       	cpi	r24, 0xF8	; 248
   30b6c:	ef ef       	ldi	r30, 0xFF	; 255
   30b6e:	9e 07       	cpc	r25, r30
   30b70:	a1 05       	cpc	r26, r1
   30b72:	b1 05       	cpc	r27, r1
   30b74:	08 f0       	brcs	.+2      	; 0x30b78 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x234>
   30b76:	4c cf       	rjmp	.-360    	; 0x30a10 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xcc>
          // add cluster if at end of chain
          if (!addCluster()) goto fail;
        } else {
          curCluster_ = next;
   30b78:	80 93 24 17 	sts	0x1724, r24	; 0x801724 <card+0x296>
   30b7c:	90 93 25 17 	sts	0x1725, r25	; 0x801725 <card+0x297>
   30b80:	a0 93 26 17 	sts	0x1726, r26	; 0x801726 <card+0x298>
   30b84:	b0 93 27 17 	sts	0x1727, r27	; 0x801727 <card+0x299>
   30b88:	4a cf       	rjmp	.-364    	; 0x30a1e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xda>
    return  cluster >= FAT32EOC_MIN;
   30b8a:	88 3f       	cpi	r24, 0xF8	; 248
   30b8c:	ff ef       	ldi	r31, 0xFF	; 255
   30b8e:	9f 07       	cpc	r25, r31
   30b90:	af 07       	cpc	r26, r31
   30b92:	ff e0       	ldi	r31, 0x0F	; 15
   30b94:	bf 07       	cpc	r27, r31
   30b96:	80 f3       	brcs	.-32     	; 0x30b78 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x234>
   30b98:	3b cf       	rjmp	.-394    	; 0x30a10 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0xcc>
        // invalidate cache if block is in cache
        vol_->cacheSetBlockNumber(0XFFFFFFFF, false);
      }
      if (!vol_->writeBlock(block, src)) goto fail;
    } else {
      if (blockOffset == 0 && curPosition_ >= fileSize_) {
   30b9a:	01 15       	cp	r16, r1
   30b9c:	11 05       	cpc	r17, r1
   30b9e:	69 f5       	brne	.+90     	; 0x30bfa <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x2b6>
   30ba0:	40 91 28 17 	lds	r20, 0x1728	; 0x801728 <card+0x29a>
   30ba4:	50 91 29 17 	lds	r21, 0x1729	; 0x801729 <card+0x29b>
   30ba8:	60 91 2a 17 	lds	r22, 0x172A	; 0x80172a <card+0x29c>
   30bac:	70 91 2b 17 	lds	r23, 0x172B	; 0x80172b <card+0x29d>
   30bb0:	80 91 31 17 	lds	r24, 0x1731	; 0x801731 <card+0x2a3>
   30bb4:	90 91 32 17 	lds	r25, 0x1732	; 0x801732 <card+0x2a4>
   30bb8:	a0 91 33 17 	lds	r26, 0x1733	; 0x801733 <card+0x2a5>
   30bbc:	b0 91 34 17 	lds	r27, 0x1734	; 0x801734 <card+0x2a6>
   30bc0:	48 17       	cp	r20, r24
   30bc2:	59 07       	cpc	r21, r25
   30bc4:	6a 07       	cpc	r22, r26
   30bc6:	7b 07       	cpc	r23, r27
   30bc8:	c0 f0       	brcs	.+48     	; 0x30bfa <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x2b6>
        // start of new block don't need to read into cache
        if (!vol_->cacheFlush()) goto fail;
   30bca:	0f 94 57 54 	call	0x2a8ae	; 0x2a8ae <SdVolume::cacheFlush()>
   30bce:	88 23       	and	r24, r24
   30bd0:	09 f4       	brne	.+2      	; 0x30bd4 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x290>
   30bd2:	b3 cf       	rjmp	.-154    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
  static bool cacheFlush();
  static bool cacheRawBlock(uint32_t blockNumber, bool dirty);
#endif  // USE_MULTIPLE_CARDS
  // used by SdBaseFile write to assign cache to SD location
  void cacheSetBlockNumber(uint32_t blockNumber, bool dirty) {
    cacheDirty_ = dirty;
   30bd4:	81 e0       	ldi	r24, 0x01	; 1
   30bd6:	80 93 99 0e 	sts	0x0E99, r24	; 0x800e99 <SdVolume::cacheDirty_>
    cacheBlockNumber_  = blockNumber;
   30bda:	40 92 91 0e 	sts	0x0E91, r4	; 0x800e91 <SdVolume::cacheBlockNumber_>
   30bde:	50 92 92 0e 	sts	0x0E92, r5	; 0x800e92 <SdVolume::cacheBlockNumber_+0x1>
   30be2:	60 92 93 0e 	sts	0x0E93, r6	; 0x800e93 <SdVolume::cacheBlockNumber_+0x2>
   30be6:	70 92 94 0e 	sts	0x0E94, r7	; 0x800e94 <SdVolume::cacheBlockNumber_+0x3>
      } else {
        // rewrite part of block
        if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail;
      }
      uint8_t* dst = vol_->cache()->data + blockOffset;
      memcpy(dst, src, n);
   30bea:	a6 01       	movw	r20, r12
   30bec:	b5 01       	movw	r22, r10
   30bee:	c8 01       	movw	r24, r16
   30bf0:	83 56       	subi	r24, 0x63	; 99
   30bf2:	91 4f       	sbci	r25, 0xF1	; 241
   30bf4:	0f 94 84 e2 	call	0x3c508	; 0x3c508 <memcpy>
   30bf8:	6b cf       	rjmp	.-298    	; 0x30ad0 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x18c>
        if (!vol_->cacheFlush()) goto fail;
        // set cache dirty and SD address of block
        vol_->cacheSetBlockNumber(block, true);
      } else {
        // rewrite part of block
        if (!vol_->cacheRawBlock(block, SdVolume::CACHE_FOR_WRITE)) goto fail;
   30bfa:	41 e0       	ldi	r20, 0x01	; 1
   30bfc:	c3 01       	movw	r24, r6
   30bfe:	b2 01       	movw	r22, r4
   30c00:	0f 94 4f 55 	call	0x2aa9e	; 0x2aa9e <SdVolume::cacheRawBlock(unsigned long, bool)>
   30c04:	81 11       	cpse	r24, r1
   30c06:	f1 cf       	rjmp	.-30     	; 0x30bea <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x2a6>
   30c08:	98 cf       	rjmp	.-208    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>
    }
    curPosition_ += n;
    src += n;
    nToWrite -= n;
  }
  if (curPosition_ > fileSize_) {
   30c0a:	80 91 31 17 	lds	r24, 0x1731	; 0x801731 <card+0x2a3>
   30c0e:	90 91 32 17 	lds	r25, 0x1732	; 0x801732 <card+0x2a4>
   30c12:	a0 91 33 17 	lds	r26, 0x1733	; 0x801733 <card+0x2a5>
   30c16:	b0 91 34 17 	lds	r27, 0x1734	; 0x801734 <card+0x2a6>
   30c1a:	80 17       	cp	r24, r16
   30c1c:	91 07       	cpc	r25, r17
   30c1e:	a2 07       	cpc	r26, r18
   30c20:	b3 07       	cpc	r27, r19
   30c22:	68 f4       	brcc	.+26     	; 0x30c3e <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x2fa>
   30c24:	80 91 21 17 	lds	r24, 0x1721	; 0x801721 <card+0x293>
    // update fileSize and insure sync will update dir entry
    fileSize_ = curPosition_;
   30c28:	00 93 31 17 	sts	0x1731, r16	; 0x801731 <card+0x2a3>
   30c2c:	10 93 32 17 	sts	0x1732, r17	; 0x801732 <card+0x2a4>
   30c30:	20 93 33 17 	sts	0x1733, r18	; 0x801733 <card+0x2a5>
   30c34:	30 93 34 17 	sts	0x1734, r19	; 0x801734 <card+0x2a6>
    flags_ |= F_FILE_DIR_DIRTY;
   30c38:	80 68       	ori	r24, 0x80	; 128
   30c3a:	80 93 21 17 	sts	0x1721, r24	; 0x801721 <card+0x293>
  } else if (dateTime_ && nbyte) {
    // insure sync will update modified date and time
    flags_ |= F_FILE_DIR_DIRTY;
  }

  if (flags_ & O_SYNC) {
   30c3e:	80 91 21 17 	lds	r24, 0x1721	; 0x801721 <card+0x293>
   30c42:	83 fd       	sbrc	r24, 3
   30c44:	18 c0       	rjmp	.+48     	; 0x30c76 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x332>
    if (!sync()) goto fail;
  }
  return nbyte;
   30c46:	c4 01       	movw	r24, r8

 fail:
  // return for write error
  writeError = true;
  return -1;
}
   30c48:	0f 90       	pop	r0
   30c4a:	0f 90       	pop	r0
   30c4c:	0f 90       	pop	r0
   30c4e:	0f 90       	pop	r0
   30c50:	df 91       	pop	r29
   30c52:	cf 91       	pop	r28
   30c54:	1f 91       	pop	r17
   30c56:	0f 91       	pop	r16
   30c58:	ff 90       	pop	r15
   30c5a:	ef 90       	pop	r14
   30c5c:	df 90       	pop	r13
   30c5e:	cf 90       	pop	r12
   30c60:	bf 90       	pop	r11
   30c62:	af 90       	pop	r10
   30c64:	9f 90       	pop	r9
   30c66:	8f 90       	pop	r8
   30c68:	7f 90       	pop	r7
   30c6a:	6f 90       	pop	r6
   30c6c:	5f 90       	pop	r5
   30c6e:	4f 90       	pop	r4
   30c70:	3f 90       	pop	r3
   30c72:	2f 90       	pop	r2
   30c74:	08 95       	ret
    // insure sync will update modified date and time
    flags_ |= F_FILE_DIR_DIRTY;
  }

  if (flags_ & O_SYNC) {
    if (!sync()) goto fail;
   30c76:	80 e2       	ldi	r24, 0x20	; 32
   30c78:	97 e1       	ldi	r25, 0x17	; 23
   30c7a:	0f 94 7d 59 	call	0x2b2fa	; 0x2b2fa <SdBaseFile::sync()>
   30c7e:	81 11       	cpse	r24, r1
   30c80:	e2 cf       	rjmp	.-60     	; 0x30c46 <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x302>
   30c82:	5b cf       	rjmp	.-330    	; 0x30b3a <SdBaseFile::write(void const*, unsigned int) [clone .constprop.187]+0x1f6>

00030c84 <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]>:
#ifdef SDCARD_SORT_ALPHA

/**
* Get the name of a file in the current directory by sort-index
*/
void CardReader::getfilename_sorted(const uint16_t nr, uint8_t sdSort) {
   30c84:	0f 93       	push	r16
   30c86:	cf 93       	push	r28
   30c88:	df 93       	push	r29
   30c8a:	cd b7       	in	r28, 0x3d	; 61
   30c8c:	de b7       	in	r29, 0x3e	; 62
   30c8e:	a3 97       	sbiw	r28, 0x23	; 35
   30c90:	0f b6       	in	r0, 0x3f	; 63
   30c92:	f8 94       	cli
   30c94:	de bf       	out	0x3e, r29	; 62
   30c96:	0f be       	out	0x3f, r0	; 63
   30c98:	cd bf       	out	0x3d, r28	; 61
    if (nr < sort_count)
   30c9a:	20 91 31 16 	lds	r18, 0x1631	; 0x801631 <card+0x1a3>
   30c9e:	30 91 32 16 	lds	r19, 0x1632	; 0x801632 <card+0x1a4>
   30ca2:	82 17       	cp	r24, r18
   30ca4:	93 07       	cpc	r25, r19
   30ca6:	d8 f4       	brcc	.+54     	; 0x30cde <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]+0x5a>
        getfilename_simple(sort_entries[(sdSort == SD_SORT_ALPHA) ? (sort_count - nr - 1) : nr]);
   30ca8:	61 30       	cpi	r22, 0x01	; 1
   30caa:	31 f4       	brne	.+12     	; 0x30cb8 <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]+0x34>
   30cac:	21 50       	subi	r18, 0x01	; 1
   30cae:	31 09       	sbc	r19, r1
   30cb0:	a9 01       	movw	r20, r18
   30cb2:	48 1b       	sub	r20, r24
   30cb4:	59 0b       	sbc	r21, r25
   30cb6:	ca 01       	movw	r24, r20
   30cb8:	88 0f       	add	r24, r24
   30cba:	99 1f       	adc	r25, r25
   30cbc:	fc 01       	movw	r30, r24
   30cbe:	ed 5c       	subi	r30, 0xCD	; 205
   30cc0:	f9 4e       	sbci	r31, 0xE9	; 233
   30cc2:	80 81       	ld	r24, Z
   30cc4:	91 81       	ldd	r25, Z+1	; 0x01
   30cc6:	0f 94 c7 7a 	call	0x2f58e	; 0x2f58e <CardReader::getfilename_simple(unsigned int, char const*) [clone .constprop.257]>
    else
        getfilename_afterMaxSorting(nr);
}
   30cca:	a3 96       	adiw	r28, 0x23	; 35
   30ccc:	0f b6       	in	r0, 0x3f	; 63
   30cce:	f8 94       	cli
   30cd0:	de bf       	out	0x3e, r29	; 62
   30cd2:	0f be       	out	0x3f, r0	; 63
   30cd4:	cd bf       	out	0x3d, r28	; 61
   30cd6:	df 91       	pop	r29
   30cd8:	cf 91       	pop	r28
   30cda:	0f 91       	pop	r16
   30cdc:	08 95       	ret

void CardReader::getfilename_afterMaxSorting(uint16_t entry, const char * const match/*=NULL*/)
{
	curDir = &workDir;
   30cde:	4b e3       	ldi	r20, 0x3B	; 59
   30ce0:	55 e1       	ldi	r21, 0x15	; 21
   30ce2:	50 93 3a 15 	sts	0x153A, r21	; 0x80153a <card+0xac>
   30ce6:	40 93 39 15 	sts	0x1539, r20	; 0x801539 <card+0xab>
	nrFiles = entry - sort_count + 1;
   30cea:	82 1b       	sub	r24, r18
   30cec:	93 0b       	sbc	r25, r19
   30cee:	01 96       	adiw	r24, 0x01	; 1
   30cf0:	90 93 a9 17 	sts	0x17A9, r25	; 0x8017a9 <card+0x31b>
   30cf4:	80 93 a8 17 	sts	0x17A8, r24	; 0x8017a8 <card+0x31a>
	curDir->seekSet(lastSortedFilePosition << 5);
   30cf8:	40 91 fb 16 	lds	r20, 0x16FB	; 0x8016fb <card+0x26d>
   30cfc:	50 91 fc 16 	lds	r21, 0x16FC	; 0x8016fc <card+0x26e>
   30d00:	85 e0       	ldi	r24, 0x05	; 5
   30d02:	44 0f       	add	r20, r20
   30d04:	55 1f       	adc	r21, r21
   30d06:	8a 95       	dec	r24
   30d08:	e1 f7       	brne	.-8      	; 0x30d02 <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]+0x7e>
   30d0a:	70 e0       	ldi	r23, 0x00	; 0
   30d0c:	60 e0       	ldi	r22, 0x00	; 0
   30d0e:	8b e3       	ldi	r24, 0x3B	; 59
   30d10:	95 e1       	ldi	r25, 0x15	; 21
   30d12:	0f 94 d4 57 	call	0x2afa8	; 0x2afa8 <SdBaseFile::seekSet(unsigned long)>
  };
  struct ls_param
  {
    bool LFN : 1;
    bool timestamp : 1;
    inline ls_param():LFN(0), timestamp(0) { }
   30d16:	00 e0       	ldi	r16, 0x00	; 0
   30d18:	0e 7f       	andi	r16, 0xFE	; 254
   30d1a:	0d 7f       	andi	r16, 0xFD	; 253
	lsDive("", *curDir, match, LS_GetFilename);
   30d1c:	e0 91 39 15 	lds	r30, 0x1539	; 0x801539 <card+0xab>
   30d20:	f0 91 3a 15 	lds	r31, 0x153A	; 0x80153a <card+0xac>
   30d24:	83 e2       	ldi	r24, 0x23	; 35
   30d26:	de 01       	movw	r26, r28
   30d28:	11 96       	adiw	r26, 0x01	; 1
   30d2a:	01 90       	ld	r0, Z+
   30d2c:	0d 92       	st	X+, r0
   30d2e:	8a 95       	dec	r24
   30d30:	e1 f7       	brne	.-8      	; 0x30d2a <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]+0xa6>
   30d32:	22 e0       	ldi	r18, 0x02	; 2
   30d34:	50 e0       	ldi	r21, 0x00	; 0
   30d36:	40 e0       	ldi	r20, 0x00	; 0
   30d38:	be 01       	movw	r22, r28
   30d3a:	6f 5f       	subi	r22, 0xFF	; 255
   30d3c:	7f 4f       	sbci	r23, 0xFF	; 255
   30d3e:	89 ef       	ldi	r24, 0xF9	; 249
   30d40:	92 e0       	ldi	r25, 0x02	; 2
   30d42:	0f 94 51 78 	call	0x2f0a2	; 0x2f0a2 <CardReader::lsDive(char const*, SdFile, char const*, CardReader::LsAction, CardReader::ls_param) [clone .constprop.261]>
   30d46:	ce 01       	movw	r24, r28
   30d48:	01 96       	adiw	r24, 0x01	; 1
   30d4a:	0e 94 b8 76 	call	0xed70	; 0xed70 <SdBaseFile::~SdBaseFile()>
   30d4e:	bd cf       	rjmp	.-134    	; 0x30cca <CardReader::getfilename_sorted(unsigned int, unsigned char) [clone .constprop.183]+0x46>

00030d50 <CardReader::openFileWrite(char const*) [clone .constprop.182]>:
        SERIAL_PROTOCOL(fname);
        SERIAL_PROTOCOLLN('.');
      }
}

void CardReader::openFileWrite(const char* name)
   30d50:	0f 93       	push	r16
   30d52:	1f 93       	push	r17
   30d54:	cf 93       	push	r28
   30d56:	df 93       	push	r29
   30d58:	1f 92       	push	r1
   30d5a:	1f 92       	push	r1
   30d5c:	cd b7       	in	r28, 0x3d	; 61
   30d5e:	de b7       	in	r29, 0x3e	; 62
{
    if(!mounted)
   30d60:	20 91 91 14 	lds	r18, 0x1491	; 0x801491 <card+0x3>
   30d64:	22 23       	and	r18, r18
   30d66:	69 f1       	breq	.+90     	; 0x30dc2 <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x72>
   30d68:	8c 01       	movw	r16, r24
        return;
    if(file.isOpen()){  //replacing current file by new file, or subfile call
   30d6a:	80 91 23 17 	lds	r24, 0x1723	; 0x801723 <card+0x295>
   30d6e:	88 23       	and	r24, r24
   30d70:	79 f1       	breq	.+94     	; 0x30dd0 <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x80>
        SERIAL_ECHOLN(sdpos);
        filespos[file_subcall_ctr]=sdpos;
        file_subcall_ctr++;
        file.close();
#else
        SERIAL_ECHOLNPGM("File already opened");
   30d72:	89 e5       	ldi	r24, 0x59	; 89
   30d74:	97 ea       	ldi	r25, 0xA7	; 167
   30d76:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        file_subcall_ctr=0; //resetting procedure depth in case user cancels print while in procedure
        SERIAL_ECHO_START;
        SERIAL_ECHORPGM(ofNowFreshFile);
        SERIAL_ECHOLN(name);
    }
    sdprinting = false;
   30d7a:	10 92 90 14 	sts	0x1490, r1	; 0x801490 <card+0x2>

    const char *fname=name;
   30d7e:	1a 83       	std	Y+2, r17	; 0x02
   30d80:	09 83       	std	Y+1, r16	; 0x01
    if (!diveSubfolder(fname))
   30d82:	ce 01       	movw	r24, r28
   30d84:	01 96       	adiw	r24, 0x01	; 1
   30d86:	0f 94 08 80 	call	0x30010	; 0x30010 <CardReader::diveSubfolder(char const*&) [clone .constprop.222]>
   30d8a:	88 23       	and	r24, r24
   30d8c:	d1 f0       	breq	.+52     	; 0x30dc2 <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x72>
      return;

    //write
    if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)){
   30d8e:	49 81       	ldd	r20, Y+1	; 0x01
   30d90:	5a 81       	ldd	r21, Y+2	; 0x02
   30d92:	60 91 39 15 	lds	r22, 0x1539	; 0x801539 <card+0xab>
   30d96:	70 91 3a 15 	lds	r23, 0x153A	; 0x80153a <card+0xac>
   30d9a:	26 e5       	ldi	r18, 0x56	; 86
   30d9c:	80 e2       	ldi	r24, 0x20	; 32
   30d9e:	97 e1       	ldi	r25, 0x17	; 23
   30da0:	0f 94 5a 65 	call	0x2cab4	; 0x2cab4 <SdBaseFile::open(SdBaseFile*, char const*, unsigned char)>
   30da4:	81 11       	cpse	r24, r1
   30da6:	22 c0       	rjmp	.+68     	; 0x30dec <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x9c>
        SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
   30da8:	8e e1       	ldi	r24, 0x1E	; 30
   30daa:	90 e7       	ldi	r25, 0x70	; 112
   30dac:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   30db0:	89 81       	ldd	r24, Y+1	; 0x01
   30db2:	9a 81       	ldd	r25, Y+2	; 0x02
   30db4:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
   30db8:	8e e2       	ldi	r24, 0x2E	; 46
   30dba:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
}

void MarlinSerial::println(char c, int base)
{
  print(c, base);
  println();
   30dbe:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

        SERIAL_PROTOCOLLNRPGM(ofFileSelected);////MSG_SD_FILE_SELECTED
        lcd_setstatuspgm(ofFileSelected);
        scrollstuff = 0;
    }
}
   30dc2:	0f 90       	pop	r0
   30dc4:	0f 90       	pop	r0
   30dc6:	df 91       	pop	r29
   30dc8:	cf 91       	pop	r28
   30dca:	1f 91       	pop	r17
   30dcc:	0f 91       	pop	r16
   30dce:	08 95       	ret
        file.close();
#else
        SERIAL_ECHOLNPGM("File already opened");
#endif
    } else { //opening fresh file
        file_subcall_ctr=0; //resetting procedure depth in case user cancels print while in procedure
   30dd0:	10 92 43 17 	sts	0x1743, r1	; 0x801743 <card+0x2b5>
        SERIAL_ECHO_START;
   30dd4:	80 ed       	ldi	r24, 0xD0	; 208
   30dd6:	9a ea       	ldi	r25, 0xAA	; 170
   30dd8:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHORPGM(ofNowFreshFile);
   30ddc:	8e e5       	ldi	r24, 0x5E	; 94
   30dde:	99 ea       	ldi	r25, 0xA9	; 169
   30de0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLN(name);
   30de4:	c8 01       	movw	r24, r16
   30de6:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
   30dea:	c7 cf       	rjmp	.-114    	; 0x30d7a <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x2a>
    if (!file.open(curDir, fname, O_CREAT | O_APPEND | O_WRITE | O_TRUNC)){
        SERIAL_PROTOCOLRPGM(MSG_SD_OPEN_FILE_FAIL);
        SERIAL_PROTOCOL(fname);
        SERIAL_PROTOCOLLN('.');
    } else {
        saving = true;
   30dec:	81 e0       	ldi	r24, 0x01	; 1
   30dee:	80 93 8e 14 	sts	0x148E, r24	; 0x80148e <card>
        getfilename(0, fname);
   30df2:	89 81       	ldd	r24, Y+1	; 0x01
   30df4:	9a 81       	ldd	r25, Y+2	; 0x02
   30df6:	0f 94 80 7a 	call	0x2f500	; 0x2f500 <CardReader::getfilename(unsigned int, char const*) [clone .constprop.259]>
        SERIAL_PROTOCOLRPGM(ofWritingToFile);////MSG_SD_WRITE_TO_FILE
   30dfa:	87 e4       	ldi	r24, 0x47	; 71
   30dfc:	97 ea       	ldi	r25, 0xA7	; 167
   30dfe:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        printAbsFilenameFast();
   30e02:	0f 94 63 7b 	call	0x2f6c6	; 0x2f6c6 <CardReader::printAbsFilenameFast() [clone .constprop.250]>
        SERIAL_PROTOCOLLN();
   30e06:	0f 94 3c d6 	call	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

        SERIAL_PROTOCOLLNRPGM(ofFileSelected);////MSG_SD_FILE_SELECTED
   30e0a:	8a e3       	ldi	r24, 0x3A	; 58
   30e0c:	99 ea       	ldi	r25, 0xA9	; 169
   30e0e:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
        lcd_setstatuspgm(ofFileSelected);
   30e12:	8a e3       	ldi	r24, 0x3A	; 58
   30e14:	99 ea       	ldi	r25, 0xA9	; 169
   30e16:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
        scrollstuff = 0;
   30e1a:	10 92 b9 0d 	sts	0x0DB9, r1	; 0x800db9 <scrollstuff>
   30e1e:	d1 cf       	rjmp	.-94     	; 0x30dc2 <CardReader::openFileWrite(char const*) [clone .constprop.182]+0x72>

00030e20 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]>:
		  //presort();
	  #endif
    }
}

bool CardReader::ToshibaFlashAir_GetIP(uint8_t *ip)
   30e20:	0f 93       	push	r16
   30e22:	1f 93       	push	r17
   30e24:	cf 93       	push	r28
   30e26:	df 93       	push	r29
   30e28:	ec 01       	movw	r28, r24
{
    memset(ip, 0, 4);
   30e2a:	84 e0       	ldi	r24, 0x04	; 4
   30e2c:	fe 01       	movw	r30, r28
   30e2e:	11 92       	st	Z+, r1
   30e30:	8a 95       	dec	r24
   30e32:	e9 f7       	brne	.-6      	; 0x30e2e <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0xe>
/** Perform Extention Read. */
uint8_t Sd2Card::readExt(uint32_t arg, uint8_t* dst, uint16_t count) {
  uint16_t i;

  // send command and argument.
  if (cardCommand(CMD48, arg) && cardCommand(CMD17, arg)) { // CMD48 for W-03, CMD17 for W-04
   30e34:	23 e0       	ldi	r18, 0x03	; 3
   30e36:	30 ea       	ldi	r19, 0xA0	; 160
   30e38:	4a e0       	ldi	r20, 0x0A	; 10
   30e3a:	50 e9       	ldi	r21, 0x90	; 144
   30e3c:	60 e3       	ldi	r22, 0x30	; 48
   30e3e:	8d ef       	ldi	r24, 0xFD	; 253
   30e40:	96 e1       	ldi	r25, 0x16	; 22
   30e42:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   30e46:	88 23       	and	r24, r24
   30e48:	91 f0       	breq	.+36     	; 0x30e6e <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x4e>
   30e4a:	23 e0       	ldi	r18, 0x03	; 3
   30e4c:	30 ea       	ldi	r19, 0xA0	; 160
   30e4e:	4a e0       	ldi	r20, 0x0A	; 10
   30e50:	50 e9       	ldi	r21, 0x90	; 144
   30e52:	61 e1       	ldi	r22, 0x11	; 17
   30e54:	8d ef       	ldi	r24, 0xFD	; 253
   30e56:	96 e1       	ldi	r25, 0x16	; 22
   30e58:	0f 94 93 53 	call	0x2a726	; 0x2a726 <Sd2Card::cardCommand(unsigned char, unsigned long)>
   30e5c:	88 23       	and	r24, r24
   30e5e:	39 f0       	breq	.+14     	; 0x30e6e <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x4e>
  bool eraseSingleBlockEnable();
  /**
   *  Set SD error code.
   *  \param[in] code value for error code.
   */
  void error(uint8_t code) {errorCode_ = code;}
   30e60:	80 e8       	ldi	r24, 0x80	; 128
   30e62:	80 93 fd 16 	sts	0x16FD, r24	; 0x8016fd <card+0x26f>
  chipSelectHigh();
  spiSend(0xFF); // dummy clock to force FlashAir finish the command.
  return true;

 fail:
  chipSelectHigh();
   30e66:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  return false;
   30e6a:	80 e0       	ldi	r24, 0x00	; 0
   30e6c:	2f c0       	rjmp	.+94     	; 0x30ecc <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0xac>
//------------------------------------------------------------------------------
/** Wait for start block token */
//FIXME Vojtech: Copied from a current version of Sd2Card Arduino code.
// We shall likely upgrade the rest of the Sd2Card.
uint8_t Sd2Card::waitStartBlock(void) {
  uint16_t t0 = _millis();
   30e6e:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   30e72:	8b 01       	movw	r16, r22
  while ((status_ = spiRec()) == 0XFF) {
   30e74:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   30e78:	80 93 ff 16 	sts	0x16FF, r24	; 0x8016ff <card+0x271>
   30e7c:	8f 3f       	cpi	r24, 0xFF	; 255
   30e7e:	69 f4       	brne	.+26     	; 0x30e9a <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x7a>
    if (((uint16_t)_millis() - t0) > SD_READ_TIMEOUT) {
   30e80:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   30e84:	60 1b       	sub	r22, r16
   30e86:	71 0b       	sbc	r23, r17
   30e88:	6d 32       	cpi	r22, 0x2D	; 45
   30e8a:	71 40       	sbci	r23, 0x01	; 1
   30e8c:	98 f3       	brcs	.-26     	; 0x30e74 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x54>
   30e8e:	81 e1       	ldi	r24, 0x11	; 17
   30e90:	80 93 fd 16 	sts	0x16FD, r24	; 0x8016fd <card+0x26f>
    goto fail;
  }
  return true;

 fail:
  chipSelectHigh();
   30e94:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
   30e98:	e6 cf       	rjmp	.-52     	; 0x30e66 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x46>
    if (((uint16_t)_millis() - t0) > SD_READ_TIMEOUT) {
      error(SD_CARD_ERROR_READ_TIMEOUT);
      goto fail;
    }
  }
  if (status_ != DATA_START_BLOCK) {
   30e9a:	8e 3f       	cpi	r24, 0xFE	; 254
   30e9c:	11 f0       	breq	.+4      	; 0x30ea2 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x82>
   30e9e:	8f e0       	ldi	r24, 0x0F	; 15
   30ea0:	f7 cf       	rjmp	.-18     	; 0x30e90 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x70>
   30ea2:	8e 01       	movw	r16, r28
   30ea4:	0c 5f       	subi	r16, 0xFC	; 252
   30ea6:	1f 4f       	sbci	r17, 0xFF	; 255
    goto fail;
  }

  // receive data
  for (i = 0; i < count; ++i) {
    dst[i] = spiRec();
   30ea8:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   30eac:	89 93       	st	Y+, r24
  if (!waitStartBlock()) {
    goto fail;
  }

  // receive data
  for (i = 0; i < count; ++i) {
   30eae:	c0 17       	cp	r28, r16
   30eb0:	d1 07       	cpc	r29, r17
   30eb2:	d1 f7       	brne	.-12     	; 0x30ea8 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x88>
   30eb4:	ce ef       	ldi	r28, 0xFE	; 254
   30eb6:	d1 e0       	ldi	r29, 0x01	; 1
    dst[i] = spiRec();
  }

  // skip dummy bytes and 16-bit crc.
  for (; i < 514; ++i) {
    spiRec();
   30eb8:	0f 94 8c 53 	call	0x2a718	; 0x2a718 <spiRec() [clone .lto_priv.376]>
   30ebc:	21 97       	sbiw	r28, 0x01	; 1
  for (i = 0; i < count; ++i) {
    dst[i] = spiRec();
  }

  // skip dummy bytes and 16-bit crc.
  for (; i < 514; ++i) {
   30ebe:	e1 f7       	brne	.-8      	; 0x30eb8 <CardReader::ToshibaFlashAir_GetIP(unsigned char*) [clone .constprop.174]+0x98>
    spiRec();
  }

  chipSelectHigh();
   30ec0:	0f 94 01 76 	call	0x2ec02	; 0x2ec02 <Sd2Card::chipSelectHigh() [clone .constprop.359]>
  spiSend(0xFF); // dummy clock to force FlashAir finish the command.
   30ec4:	8f ef       	ldi	r24, 0xFF	; 255
   30ec6:	0f 94 87 53 	call	0x2a70e	; 0x2a70e <spiSend(unsigned char) [clone .lto_priv.382]>
   30eca:	81 e0       	ldi	r24, 0x01	; 1
    return card.readExtMemory(1, 1, 0x400+0x150, 4, ip);
}
   30ecc:	df 91       	pop	r29
   30ece:	cf 91       	pop	r28
   30ed0:	1f 91       	pop	r17
   30ed2:	0f 91       	pop	r16
   30ed4:	08 95       	ret

00030ed6 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]>:
}


enum class dcode_mem_t:uint8_t { sram, eeprom, progmem, xflash };

void print_mem(daddr_t address, daddr_t count, dcode_mem_t type, uint8_t countperline = 16)
   30ed6:	8f 92       	push	r8
   30ed8:	9f 92       	push	r9
   30eda:	af 92       	push	r10
   30edc:	bf 92       	push	r11
   30ede:	cf 92       	push	r12
   30ee0:	df 92       	push	r13
   30ee2:	ef 92       	push	r14
   30ee4:	ff 92       	push	r15
   30ee6:	0f 93       	push	r16
   30ee8:	1f 93       	push	r17
   30eea:	cf 93       	push	r28
   30eec:	df 93       	push	r29
   30eee:	1f 92       	push	r1
   30ef0:	cd b7       	in	r28, 0x3d	; 61
   30ef2:	de b7       	in	r29, 0x3e	; 62
   30ef4:	6b 01       	movw	r12, r22
   30ef6:	7c 01       	movw	r14, r24
   30ef8:	49 01       	movw	r8, r18
   30efa:	5a 01       	movw	r10, r20
{
#if defined(DEBUG_DCODE6) || defined(DEBUG_DCODES) || defined(XFLASH_DUMP)
    if(type == dcode_mem_t::xflash)
   30efc:	03 30       	cpi	r16, 0x03	; 3
   30efe:	19 f4       	brne	.+6      	; 0x30f06 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x30>
	SPSR = 0x00;
}

static inline void spi_setup(uint8_t spcr, uint8_t spsr)
{
	SPCR = spcr;
   30f00:	8c e5       	ldi	r24, 0x5C	; 92
   30f02:	8c bd       	out	0x2c, r24	; 44
	SPSR = spsr;
   30f04:	1d bc       	out	0x2d, r1	; 45
        XFLASH_SPI_ENTER();
#endif
	while (count)
   30f06:	81 14       	cp	r8, r1
   30f08:	91 04       	cpc	r9, r1
   30f0a:	a1 04       	cpc	r10, r1
   30f0c:	b1 04       	cpc	r11, r1
   30f0e:	09 f4       	brne	.+2      	; 0x30f12 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x3c>
   30f10:	59 c0       	rjmp	.+178    	; 0x30fc4 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xee>
#endif

void print_hex_word(daddr_t val)
{
#if DADDR_SIZE > 16
    print_hex_byte((val >> 16) & 0xFF);
   30f12:	8e 2d       	mov	r24, r14
   30f14:	0e 94 38 76 	call	0xec70	; 0xec70 <print_hex_byte(unsigned char)>
#endif
    print_hex_byte((val >> 8) & 0xFF);
   30f18:	8d 2d       	mov	r24, r13
   30f1a:	0e 94 38 76 	call	0xec70	; 0xec70 <print_hex_byte(unsigned char)>
    print_hex_byte(val & 0xFF);
   30f1e:	8c 2d       	mov	r24, r12
   30f20:	0e 94 38 76 	call	0xec70	; 0xec70 <print_hex_byte(unsigned char)>
        XFLASH_SPI_ENTER();
#endif
	while (count)
	{
		print_hex_word(address);
		putchar(' ');
   30f24:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
   30f28:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
   30f2c:	80 e2       	ldi	r24, 0x20	; 32
   30f2e:	90 e0       	ldi	r25, 0x00	; 0
   30f30:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
		uint8_t count_line = countperline;
   30f34:	10 e1       	ldi	r17, 0x10	; 16
		while (count && count_line)
		{
			uint8_t data = 0;
   30f36:	19 82       	std	Y+1, r1	; 0x01
			switch (type)
   30f38:	01 30       	cpi	r16, 0x01	; 1
   30f3a:	b1 f1       	breq	.+108    	; 0x30fa8 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xd2>
   30f3c:	88 f1       	brcs	.+98     	; 0x30fa0 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xca>
   30f3e:	03 30       	cpi	r16, 0x03	; 3
   30f40:	b9 f1       	breq	.+110    	; 0x30fb0 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xda>
            case dcode_mem_t::xflash: xflash_rd_data(address, &data, 1); break;
#else
            case dcode_mem_t::xflash: break;
#endif
			}
            ++address;
   30f42:	8f ef       	ldi	r24, 0xFF	; 255
   30f44:	c8 1a       	sub	r12, r24
   30f46:	d8 0a       	sbc	r13, r24
   30f48:	e8 0a       	sbc	r14, r24
   30f4a:	f8 0a       	sbc	r15, r24
			putchar(' ');
   30f4c:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
   30f50:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
   30f54:	80 e2       	ldi	r24, 0x20	; 32
   30f56:	90 e0       	ldi	r25, 0x00	; 0
   30f58:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
			print_hex_byte(data);
   30f5c:	89 81       	ldd	r24, Y+1	; 0x01
   30f5e:	0e 94 38 76 	call	0xec70	; 0xec70 <print_hex_byte(unsigned char)>
			count_line--;
   30f62:	11 50       	subi	r17, 0x01	; 1
			count--;
   30f64:	81 e0       	ldi	r24, 0x01	; 1
   30f66:	88 1a       	sub	r8, r24
   30f68:	91 08       	sbc	r9, r1
   30f6a:	a1 08       	sbc	r10, r1
   30f6c:	b1 08       	sbc	r11, r1

            // sporadically call manage_heater, but only when interrupts are enabled (meaning
            // print_mem is called by D2). Don't do anything otherwise: we are inside a crash
            // handler where memory & stack needs to be preserved!
            if((SREG & (1 << SREG_I)) && !((uint16_t)count % 8192))
   30f6e:	0f b6       	in	r0, 0x3f	; 63
   30f70:	07 fe       	sbrs	r0, 7
   30f72:	06 c0       	rjmp	.+12     	; 0x30f80 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xaa>
   30f74:	c4 01       	movw	r24, r8
   30f76:	9f 71       	andi	r25, 0x1F	; 31
   30f78:	89 2b       	or	r24, r25
   30f7a:	11 f4       	brne	.+4      	; 0x30f80 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xaa>
                manage_heater();
   30f7c:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	while (count)
	{
		print_hex_word(address);
		putchar(' ');
		uint8_t count_line = countperline;
		while (count && count_line)
   30f80:	81 14       	cp	r8, r1
   30f82:	91 04       	cpc	r9, r1
   30f84:	a1 04       	cpc	r10, r1
   30f86:	b1 04       	cpc	r11, r1
   30f88:	11 f0       	breq	.+4      	; 0x30f8e <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xb8>
   30f8a:	11 11       	cpse	r17, r1
   30f8c:	d4 cf       	rjmp	.-88     	; 0x30f36 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x60>
            // print_mem is called by D2). Don't do anything otherwise: we are inside a crash
            // handler where memory & stack needs to be preserved!
            if((SREG & (1 << SREG_I)) && !((uint16_t)count % 8192))
                manage_heater();
		}
		putchar('\n');
   30f8e:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
   30f92:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
   30f96:	8a e0       	ldi	r24, 0x0A	; 10
   30f98:	90 e0       	ldi	r25, 0x00	; 0
   30f9a:	0f 94 c3 da 	call	0x3b586	; 0x3b586 <fputc>
   30f9e:	b3 cf       	rjmp	.-154    	; 0x30f06 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x30>
		while (count && count_line)
		{
			uint8_t data = 0;
			switch (type)
			{
			case dcode_mem_t::sram: data = *((uint8_t*)address); break;
   30fa0:	f6 01       	movw	r30, r12
   30fa2:	80 81       	ld	r24, Z
			case dcode_mem_t::eeprom: data = eeprom_read_byte((uint8_t*)address); break;
   30fa4:	89 83       	std	Y+1, r24	; 0x01
   30fa6:	cd cf       	rjmp	.-102    	; 0x30f42 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x6c>
   30fa8:	c6 01       	movw	r24, r12
   30faa:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   30fae:	fa cf       	rjmp	.-12     	; 0x30fa4 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0xce>
			case dcode_mem_t::progmem: break;
#if defined(DEBUG_DCODE6) || defined(DEBUG_DCODES) || defined(XFLASH_DUMP)
            case dcode_mem_t::xflash: xflash_rd_data(address, &data, 1); break;
   30fb0:	21 e0       	ldi	r18, 0x01	; 1
   30fb2:	30 e0       	ldi	r19, 0x00	; 0
   30fb4:	ae 01       	movw	r20, r28
   30fb6:	4f 5f       	subi	r20, 0xFF	; 255
   30fb8:	5f 4f       	sbci	r21, 0xFF	; 255
   30fba:	c7 01       	movw	r24, r14
   30fbc:	b6 01       	movw	r22, r12
   30fbe:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
   30fc2:	bf cf       	rjmp	.-130    	; 0x30f42 <print_mem(unsigned long, unsigned long, dcode_mem_t, unsigned char) [clone .constprop.170]+0x6c>
            if((SREG & (1 << SREG_I)) && !((uint16_t)count % 8192))
                manage_heater();
		}
		putchar('\n');
	}
}
   30fc4:	0f 90       	pop	r0
   30fc6:	df 91       	pop	r29
   30fc8:	cf 91       	pop	r28
   30fca:	1f 91       	pop	r17
   30fcc:	0f 91       	pop	r16
   30fce:	ff 90       	pop	r15
   30fd0:	ef 90       	pop	r14
   30fd2:	df 90       	pop	r13
   30fd4:	cf 90       	pop	r12
   30fd6:	bf 90       	pop	r11
   30fd8:	af 90       	pop	r10
   30fda:	9f 90       	pop	r9
   30fdc:	8f 90       	pop	r8
   30fde:	08 95       	ret

00030fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>:
#include "planner.h"
#include "temperature.h"
#include "ultralcd.h"

#ifdef FILAMENT_SENSOR
FSensorBlockRunout::FSensorBlockRunout() {
   30fe0:	cf 93       	push	r28
   30fe2:	df 93       	push	r29
        eeprom_update_byte_notify((uint8_t *)EEPROM_FSENS_AUTOLOAD_ENABLED, state);
    }
}

void Filament_sensor::setRunoutEnabled(bool state, bool updateEEPROM) {
    runoutEnabled = state;
   30fe4:	ca ea       	ldi	r28, 0xAA	; 170
   30fe6:	d7 e1       	ldi	r29, 0x17	; 23
   30fe8:	1a 82       	std	Y+2, r1	; 0x02
        fsensor.deinit();
    }
}

void Filament_sensor::setAutoLoadEnabled(bool state, bool updateEEPROM) {
    autoLoadEnabled = state;
   30fea:	19 82       	std	Y+1, r1	; 0x01
    return fsensorDetected;
}
#endif

void PAT9125_sensor::setJamDetectionEnabled(bool state, bool updateEEPROM) {
    jamDetection = state;
   30fec:	1e 86       	std	Y+14, r1	; 0x0e
    oldPos = pat9125_y;
   30fee:	80 91 8f 0e 	lds	r24, 0x0E8F	; 0x800e8f <pat9125_y>
   30ff2:	90 91 90 0e 	lds	r25, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   30ff6:	98 8b       	std	Y+16, r25	; 0x10
   30ff8:	8f 87       	std	Y+15, r24	; 0x0f
    resetStepCount();
   30ffa:	0f 94 2c 7c 	call	0x2f858	; 0x2f858 <PAT9125_sensor::resetStepCount() [clone .constprop.234]>
    jamErrCnt = 0;
   30ffe:	1d 8a       	std	Y+21, r1	; 0x15
    fsensor.setAutoLoadEnabled(false); //suppress filament autoloads while loading filament.
#if (FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
    fsensor.setJamDetectionEnabled(false); //suppress filament jam detection while loading filament.
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_PAT9125)
//    SERIAL_ECHOLNPGM("FSBlockRunout");
}
   31000:	df 91       	pop	r29
   31002:	cf 91       	pop	r28
   31004:	08 95       	ret

00031006 <count_e(float, float, float, float) [clone .constprop.161]>:
//!
//! @param layer_height layer height in mm
//! @param extrusion_width extrusion width in mm
//! @param extrusion_length extrusion length in mm
//! @return filament length in mm which needs to be extruded to form line
static constexpr float __attribute__((noinline)) count_e(float layer_height, float extrusion_width, float extrusion_length, float filament_diameter=1.75f)
   31006:	cf 92       	push	r12
   31008:	df 92       	push	r13
   3100a:	ef 92       	push	r14
   3100c:	ff 92       	push	r15
   3100e:	69 01       	movw	r12, r18
   31010:	7a 01       	movw	r14, r20
{
    return (extrusion_length * ((M_PI * pow(layer_height, 2)) / 4 + layer_height * (extrusion_width - layer_height))) / ((M_PI * pow(filament_diameter, 2)) / 4);
   31012:	2d ec       	ldi	r18, 0xCD	; 205
   31014:	3c ec       	ldi	r19, 0xCC	; 204
   31016:	4c e4       	ldi	r20, 0x4C	; 76
   31018:	5e e3       	ldi	r21, 0x3E	; 62
   3101a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3101e:	2d ec       	ldi	r18, 0xCD	; 205
   31020:	3c ec       	ldi	r19, 0xCC	; 204
   31022:	4c e4       	ldi	r20, 0x4C	; 76
   31024:	5e e3       	ldi	r21, 0x3E	; 62
   31026:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3102a:	2d ef       	ldi	r18, 0xFD	; 253
   3102c:	3d ea       	ldi	r19, 0xAD	; 173
   3102e:	40 e0       	ldi	r20, 0x00	; 0
   31030:	5d e3       	ldi	r21, 0x3D	; 61
   31032:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   31036:	a7 01       	movw	r20, r14
   31038:	96 01       	movw	r18, r12
   3103a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3103e:	24 e2       	ldi	r18, 0x24	; 36
   31040:	30 ef       	ldi	r19, 0xF0	; 240
   31042:	49 e1       	ldi	r20, 0x19	; 25
   31044:	50 e4       	ldi	r21, 0x40	; 64
   31046:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
}
   3104a:	ff 90       	pop	r15
   3104c:	ef 90       	pop	r14
   3104e:	df 90       	pop	r13
   31050:	cf 90       	pop	r12
   31052:	08 95       	ret

00031054 <st_set_position(long const*) [clone .constprop.151]>:
	}
}

void st_set_position(const long *pos)
{
  CRITICAL_SECTION_START;
   31054:	9f b7       	in	r25, 0x3f	; 63
   31056:	f8 94       	cli
  // Copy 4x4B.
  // This block locks the interrupts globally for 2.06 us,
  // which corresponds to a maximum repeat frequency of ~484kHz.
  // This blocking is safe in the context of a 10kHz stepper driver interrupt
  // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz.
  memcpy((long *)count_position, pos, sizeof(count_position));
   31058:	80 e1       	ldi	r24, 0x10	; 16
   3105a:	e3 ea       	ldi	r30, 0xA3	; 163
   3105c:	f6 e0       	ldi	r31, 0x06	; 6
   3105e:	a3 eb       	ldi	r26, 0xB3	; 179
   31060:	b6 e0       	ldi	r27, 0x06	; 6
   31062:	01 90       	ld	r0, Z+
   31064:	0d 92       	st	X+, r0
   31066:	8a 95       	dec	r24
   31068:	e1 f7       	brne	.-8      	; 0x31062 <st_set_position(long const*) [clone .constprop.151]+0xe>
  CRITICAL_SECTION_END;
   3106a:	9f bf       	out	0x3f, r25	; 63
}
   3106c:	08 95       	ret

0003106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>:
#include "sound.h"

namespace MMU2 {

void BeginReport(CommandInProgress /*cip*/, ProgressCode ec) {
    custom_message_type = CustomMsg::MMUProgress;
   3106e:	89 e0       	ldi	r24, 0x09	; 9
   31070:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
};

const char *ProgressCodeToText(ProgressCode pc) {
    // @@TODO ?? a better fallback option?
    return ((uint16_t)pc <= (sizeof(progressTexts) / sizeof(progressTexts[0])))
        ? static_cast<const char *>(pgm_read_ptr(&progressTexts[(uint16_t)pc]))
   31074:	ef e6       	ldi	r30, 0x6F	; 111
   31076:	f7 ea       	ldi	r31, 0xA7	; 167
   31078:	85 91       	lpm	r24, Z+
   3107a:	94 91       	lpm	r25, Z
    lcd_setstatuspgm( _T(ProgressCodeToText(ec)) );
   3107c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31080:	0c 94 42 f2 	jmp	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>

00031084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>:

uint8_t MMU2::get_tool_change_tool() const {
    return tool_change_extruder == MMU2_NO_TOOL ? (uint8_t)FILAMENT_UNKNOWN : tool_change_extruder;
}

void MMU2::SetCurrentTool(uint8_t ex){
   31084:	cf 93       	push	r28
   31086:	c8 2f       	mov	r28, r24
    extruder = ex;
   31088:	80 93 a1 13 	sts	0x13A1, r24	; 0x8013a1 <MMU2::mmu2+0x56>
    MMU2_ECHO_MSGRPGM(PSTR("MMU2tool="));
   3108c:	80 ed       	ldi	r24, 0xD0	; 208
   3108e:	9a ea       	ldi	r25, 0xAA	; 170
   31090:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   31094:	81 e4       	ldi	r24, 0x41	; 65
   31096:	97 ea       	ldi	r25, 0xA7	; 167
   31098:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   3109c:	87 e3       	ldi	r24, 0x37	; 55
   3109e:	97 ea       	ldi	r25, 0xA7	; 167
   310a0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLN((int)ex);
   310a4:	8c 2f       	mov	r24, r28
   310a6:	90 e0       	ldi	r25, 0x00	; 0
}
   310a8:	cf 91       	pop	r28
}

void MMU2::SetCurrentTool(uint8_t ex){
    extruder = ex;
    MMU2_ECHO_MSGRPGM(PSTR("MMU2tool="));
    SERIAL_ECHOLN((int)ex);
   310aa:	0d 94 37 76 	jmp	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>

000310ae <tmc2130_wait_standstill_xy(int) [clone .constprop.139]>:
	tmc2130_sg_measure = 0xff;
	return tmc2130_sg_measure_val / tmc2130_sg_measure_cnt;
}


bool tmc2130_wait_standstill_xy(int timeout)
   310ae:	0f 93       	push	r16
   310b0:	1f 93       	push	r17
   310b2:	cf 93       	push	r28
   310b4:	df 93       	push	r29
   310b6:	00 d0       	rcall	.+0      	; 0x310b8 <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0xa>
   310b8:	00 d0       	rcall	.+0      	; 0x310ba <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0xc>
   310ba:	1f 92       	push	r1
   310bc:	1f 92       	push	r1
   310be:	cd b7       	in	r28, 0x3d	; 61
   310c0:	de b7       	in	r29, 0x3e	; 62
   310c2:	08 ee       	ldi	r16, 0xE8	; 232
   310c4:	13 e0       	ldi	r17, 0x03	; 3
{
//	DBG(_n("tmc2130_wait_standstill_xy(timeout=%d)\n"), timeout);
	bool standstill = false;
	while (!standstill && (timeout > 0))
	{
		uint32_t drv_status_x = 0;
   310c6:	1d 82       	std	Y+5, r1	; 0x05
   310c8:	1e 82       	std	Y+6, r1	; 0x06
   310ca:	1f 82       	std	Y+7, r1	; 0x07
   310cc:	18 86       	std	Y+8, r1	; 0x08
		uint32_t drv_status_y = 0;
   310ce:	19 82       	std	Y+1, r1	; 0x01
   310d0:	1a 82       	std	Y+2, r1	; 0x02
   310d2:	1b 82       	std	Y+3, r1	; 0x03
   310d4:	1c 82       	std	Y+4, r1	; 0x04
		tmc2130_rd(X_AXIS, TMC2130_REG_DRV_STATUS, &drv_status_x);
   310d6:	ae 01       	movw	r20, r28
   310d8:	4b 5f       	subi	r20, 0xFB	; 251
   310da:	5f 4f       	sbci	r21, 0xFF	; 255
   310dc:	6f e6       	ldi	r22, 0x6F	; 111
   310de:	80 e0       	ldi	r24, 0x00	; 0
   310e0:	0f 94 fd 24 	call	0x249fa	; 0x249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>
		tmc2130_rd(Y_AXIS, TMC2130_REG_DRV_STATUS, &drv_status_y);
   310e4:	ae 01       	movw	r20, r28
   310e6:	4f 5f       	subi	r20, 0xFF	; 255
   310e8:	5f 4f       	sbci	r21, 0xFF	; 255
   310ea:	6f e6       	ldi	r22, 0x6F	; 111
   310ec:	81 e0       	ldi	r24, 0x01	; 1
   310ee:	0f 94 fd 24 	call	0x249fa	; 0x249fa <tmc2130_rx(unsigned char, unsigned char, unsigned long*) [clone .lto_priv.384]>
//		DBG(_n("\tdrv_status_x=0x%08x drv_status_x=0x%08x\n"), drv_status_x, drv_status_y);
		standstill = (drv_status_x & 0x80000000) && (drv_status_y & 0x80000000);
   310f2:	8d 81       	ldd	r24, Y+5	; 0x05
   310f4:	9e 81       	ldd	r25, Y+6	; 0x06
   310f6:	af 81       	ldd	r26, Y+7	; 0x07
   310f8:	b8 85       	ldd	r27, Y+8	; 0x08
   310fa:	b7 fd       	sbrc	r27, 7
   310fc:	07 c0       	rjmp	.+14     	; 0x3110c <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0x5e>
		tmc2130_check_overtemp();
   310fe:	0f 94 f3 2a 	call	0x255e6	; 0x255e6 <tmc2130_check_overtemp()>
   31102:	01 50       	subi	r16, 0x01	; 1
   31104:	11 09       	sbc	r17, r1

bool tmc2130_wait_standstill_xy(int timeout)
{
//	DBG(_n("tmc2130_wait_standstill_xy(timeout=%d)\n"), timeout);
	bool standstill = false;
	while (!standstill && (timeout > 0))
   31106:	f9 f6       	brne	.-66     	; 0x310c6 <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0x18>
   31108:	80 e0       	ldi	r24, 0x00	; 0
   3110a:	09 c0       	rjmp	.+18     	; 0x3111e <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0x70>
		uint32_t drv_status_x = 0;
		uint32_t drv_status_y = 0;
		tmc2130_rd(X_AXIS, TMC2130_REG_DRV_STATUS, &drv_status_x);
		tmc2130_rd(Y_AXIS, TMC2130_REG_DRV_STATUS, &drv_status_y);
//		DBG(_n("\tdrv_status_x=0x%08x drv_status_x=0x%08x\n"), drv_status_x, drv_status_y);
		standstill = (drv_status_x & 0x80000000) && (drv_status_y & 0x80000000);
   3110c:	89 81       	ldd	r24, Y+1	; 0x01
   3110e:	9a 81       	ldd	r25, Y+2	; 0x02
   31110:	ab 81       	ldd	r26, Y+3	; 0x03
   31112:	bc 81       	ldd	r27, Y+4	; 0x04
   31114:	b7 ff       	sbrs	r27, 7
   31116:	f3 cf       	rjmp	.-26     	; 0x310fe <tmc2130_wait_standstill_xy(int) [clone .constprop.139]+0x50>
		tmc2130_check_overtemp();
   31118:	0f 94 f3 2a 	call	0x255e6	; 0x255e6 <tmc2130_check_overtemp()>
   3111c:	81 e0       	ldi	r24, 0x01	; 1
		timeout--;
	}
	return standstill;
}
   3111e:	28 96       	adiw	r28, 0x08	; 8
   31120:	0f b6       	in	r0, 0x3f	; 63
   31122:	f8 94       	cli
   31124:	de bf       	out	0x3e, r29	; 62
   31126:	0f be       	out	0x3f, r0	; 63
   31128:	cd bf       	out	0x3d, r28	; 61
   3112a:	df 91       	pop	r29
   3112c:	cf 91       	pop	r28
   3112e:	1f 91       	pop	r17
   31130:	0f 91       	pop	r16
   31132:	08 95       	ret

00031134 <MMU2::MMU2::execute_extruder_sequence(E_Step const*, unsigned char) [clone .constprop.132]>:

void MMU2::filament_ramming() {
    execute_extruder_sequence(ramming_sequence, sizeof(ramming_sequence) / sizeof(E_Step));
}

void MMU2::execute_extruder_sequence(const E_Step *sequence, uint8_t stepCount) {
   31134:	1f 93       	push	r17
   31136:	cf 93       	push	r28
   31138:	df 93       	push	r29
   3113a:	ec 01       	movw	r28, r24
   3113c:	16 2f       	mov	r17, r22
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   3113e:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    planner_synchronize();

    // Plan the moves
    const E_Step *step = sequence;
    for (uint8_t i = stepCount; i > 0; --i) {
        extruder_move(pgm_read_float(&(step->extrude)), pgm_read_float(&(step->feedRate)));
   31142:	fe 01       	movw	r30, r28
   31144:	34 96       	adiw	r30, 0x04	; 4
   31146:	25 91       	lpm	r18, Z+
   31148:	35 91       	lpm	r19, Z+
   3114a:	45 91       	lpm	r20, Z+
   3114c:	54 91       	lpm	r21, Z
   3114e:	fe 01       	movw	r30, r28
   31150:	65 91       	lpm	r22, Z+
   31152:	75 91       	lpm	r23, Z+
   31154:	85 91       	lpm	r24, Z+
   31156:	94 91       	lpm	r25, Z
   31158:	0f 94 f0 c5 	call	0x38be0	; 0x38be0 <MMU2::extruder_move(float, float)>
        step++;
   3115c:	28 96       	adiw	r28, 0x08	; 8
void MMU2::execute_extruder_sequence(const E_Step *sequence, uint8_t stepCount) {
    planner_synchronize();

    // Plan the moves
    const E_Step *step = sequence;
    for (uint8_t i = stepCount; i > 0; --i) {
   3115e:	11 50       	subi	r17, 0x01	; 1
   31160:	81 f7       	brne	.-32     	; 0x31142 <MMU2::MMU2::execute_extruder_sequence(E_Step const*, unsigned char) [clone .constprop.132]+0xe>
   31162:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    // Wait for the moves to finish
    // it looks like it's better to sync the moves at the end - smoother move (if the sequence is not too long).
    planner_synchronize();

    Disable_E0();
}
   31166:	df 91       	pop	r29
   31168:	cf 91       	pop	r28
   3116a:	1f 91       	pop	r17

    // Wait for the moves to finish
    // it looks like it's better to sync the moves at the end - smoother move (if the sequence is not too long).
    planner_synchronize();

    Disable_E0();
   3116c:	0d 94 ee c5 	jmp	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>

00031170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>:
}

void EndReport(CommandInProgress /*cip*/, ProgressCode /*ec*/) {
    // clear the status msg line - let the printed filename get visible again
    if (!printJobOngoing()) {
   31170:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
   31174:	81 11       	cpse	r24, r1
   31176:	04 c0       	rjmp	.+8      	; 0x31180 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]+0x10>
        lcd_setstatuspgm(MSG_WELCOME);
   31178:	8f ec       	ldi	r24, 0xCF	; 207
   3117a:	9f e6       	ldi	r25, 0x6F	; 111
   3117c:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
    }
    custom_message_type = CustomMsg::Status;
   31180:	10 92 c4 06 	sts	0x06C4, r1	; 0x8006c4 <custom_message_type>
}
   31184:	08 95       	ret

00031186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>:
        EndReport(cip, ProgressCode::OK);
    }
};

bool MMU2::WaitForMMUReady() {
    switch (State()) {
   31186:	80 91 ba 13 	lds	r24, 0x13BA	; 0x8013ba <MMU2::mmu2+0x6f>
   3118a:	88 23       	and	r24, r24
   3118c:	11 f0       	breq	.+4      	; 0x31192 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]+0xc>
        return false;
    case xState::Connecting:
        // shall we wait until the MMU reconnects?
        // fire-up a fsm_dlg and show "MMU not responding"?
    default:
        return true;
   3118e:	81 e0       	ldi	r24, 0x01	; 1
   31190:	08 95       	ret
};

bool MMU2::WaitForMMUReady() {
    switch (State()) {
    case xState::Stopped:
        return false;
   31192:	80 e0       	ldi	r24, 0x00	; 0
        // shall we wait until the MMU reconnects?
        // fire-up a fsm_dlg and show "MMU not responding"?
    default:
        return true;
    }
}
   31194:	08 95       	ret

00031196 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]>:
	}
	tmc2130_setup_chopper(axis, tmc2130_mres[axis]);
	tmc2130_set_pwr(axis, pwr);
}

void tmc2130_set_wave(uint8_t axis, uint8_t amp, uint8_t fac1000)
   31196:	2f 92       	push	r2
   31198:	3f 92       	push	r3
   3119a:	4f 92       	push	r4
   3119c:	5f 92       	push	r5
   3119e:	6f 92       	push	r6
   311a0:	7f 92       	push	r7
   311a2:	8f 92       	push	r8
   311a4:	9f 92       	push	r9
   311a6:	af 92       	push	r10
   311a8:	bf 92       	push	r11
   311aa:	cf 92       	push	r12
   311ac:	df 92       	push	r13
   311ae:	ef 92       	push	r14
   311b0:	ff 92       	push	r15
   311b2:	0f 93       	push	r16
   311b4:	1f 93       	push	r17
   311b6:	cf 93       	push	r28
   311b8:	df 93       	push	r29
   311ba:	cd b7       	in	r28, 0x3d	; 61
   311bc:	de b7       	in	r29, 0x3e	; 62
   311be:	2d 97       	sbiw	r28, 0x0d	; 13
   311c0:	0f b6       	in	r0, 0x3f	; 63
   311c2:	f8 94       	cli
   311c4:	de bf       	out	0x3e, r29	; 62
   311c6:	0f be       	out	0x3f, r0	; 63
   311c8:	cd bf       	out	0x3d, r28	; 61
   311ca:	e8 2e       	mov	r14, r24
// TMC2130 wave compression algorithm
// optimized for minimal memory requirements
//	printf_P(PSTR("tmc2130_set_wave %d %d\n"), axis, fac1000);
	if (fac1000 < TMC2130_WAVE_FAC1000_MIN) fac1000 = 0;
	if (fac1000 > TMC2130_WAVE_FAC1000_MAX) fac1000 = TMC2130_WAVE_FAC1000_MAX;
	float fac = 0;
   311cc:	41 2c       	mov	r4, r1
   311ce:	51 2c       	mov	r5, r1
   311d0:	32 01       	movw	r6, r4
void tmc2130_set_wave(uint8_t axis, uint8_t amp, uint8_t fac1000)
{
// TMC2130 wave compression algorithm
// optimized for minimal memory requirements
//	printf_P(PSTR("tmc2130_set_wave %d %d\n"), axis, fac1000);
	if (fac1000 < TMC2130_WAVE_FAC1000_MIN) fac1000 = 0;
   311d2:	6e 31       	cpi	r22, 0x1E	; 30
   311d4:	90 f0       	brcs	.+36     	; 0x311fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x64>
	if (fac1000 > TMC2130_WAVE_FAC1000_MAX) fac1000 = TMC2130_WAVE_FAC1000_MAX;
	float fac = 0;
	if (fac1000) fac = ((float)((uint16_t)fac1000 + 1000) / 1000); //correction factor
   311d6:	69 3c       	cpi	r22, 0xC9	; 201
   311d8:	08 f0       	brcs	.+2      	; 0x311dc <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x46>
   311da:	68 ec       	ldi	r22, 0xC8	; 200
   311dc:	70 e0       	ldi	r23, 0x00	; 0
   311de:	68 51       	subi	r22, 0x18	; 24
   311e0:	7c 4f       	sbci	r23, 0xFC	; 252
   311e2:	90 e0       	ldi	r25, 0x00	; 0
   311e4:	80 e0       	ldi	r24, 0x00	; 0
   311e6:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   311ea:	20 e0       	ldi	r18, 0x00	; 0
   311ec:	30 e0       	ldi	r19, 0x00	; 0
   311ee:	4a e7       	ldi	r20, 0x7A	; 122
   311f0:	54 e4       	ldi	r21, 0x44	; 68
   311f2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   311f6:	2b 01       	movw	r4, r22
   311f8:	3c 01       	movw	r6, r24
//	printf_P(PSTR(" factor: %s\n"), ftostr43(fac));
	uint8_t vA = 0;                //value of currentA
	uint8_t va = 0;                //previous vA
	int8_t d0 = 0;                //delta0
	int8_t d1 = 1;                //delta1
	uint8_t w[4] = {1,1,1,1};      //W bits (MSLUTSEL)
   311fa:	80 91 bf 02 	lds	r24, 0x02BF	; 0x8002bf <busy_state+0x1>
   311fe:	90 91 c0 02 	lds	r25, 0x02C0	; 0x8002c0 <busy_state+0x2>
   31202:	a0 91 c1 02 	lds	r26, 0x02C1	; 0x8002c1 <busy_state+0x3>
   31206:	b0 91 c2 02 	lds	r27, 0x02C2	; 0x8002c2 <busy_state+0x4>
   3120a:	89 83       	std	Y+1, r24	; 0x01
   3120c:	9a 83       	std	Y+2, r25	; 0x02
   3120e:	ab 83       	std	Y+3, r26	; 0x03
   31210:	bc 83       	std	Y+4, r27	; 0x04
	uint8_t x[3] = {255,255,255};  //X segment bounds (MSLUTSEL)
   31212:	80 91 c3 02 	lds	r24, 0x02C3	; 0x8002c3 <busy_state+0x5>
   31216:	90 91 c4 02 	lds	r25, 0x02C4	; 0x8002c4 <busy_state+0x6>
   3121a:	a0 91 c5 02 	lds	r26, 0x02C5	; 0x8002c5 <busy_state+0x7>
   3121e:	8d 83       	std	Y+5, r24	; 0x05
   31220:	9e 83       	std	Y+6, r25	; 0x06
   31222:	af 83       	std	Y+7, r26	; 0x07
void tmc2130_wr_MSLUTSTART(uint8_t axis, uint8_t start_sin, uint8_t start_sin90)
{
	uint32_t val = 0;
	val |= (uint32_t)start_sin;
	val |= ((uint32_t)start_sin90) << 16;
	tmc2130_wr(axis, TMC2130_REG_MSLUTSTART, val);
   31224:	20 e0       	ldi	r18, 0x00	; 0
   31226:	30 e0       	ldi	r19, 0x00	; 0
   31228:	47 ef       	ldi	r20, 0xF7	; 247
   3122a:	50 e0       	ldi	r21, 0x00	; 0
   3122c:	69 ee       	ldi	r22, 0xE9	; 233
   3122e:	8e 2d       	mov	r24, r14
   31230:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
	uint8_t x[3] = {255,255,255};  //X segment bounds (MSLUTSEL)
	uint8_t s = 0;                 //current segment
	int8_t b;                      //encoded bit value
	int8_t dA;                     //delta value
	uint8_t i = 0;                         //microstep index
	uint32_t reg = 0;              //tmc2130 register
   31234:	81 2c       	mov	r8, r1
   31236:	91 2c       	mov	r9, r1
   31238:	54 01       	movw	r10, r8
	uint8_t w[4] = {1,1,1,1};      //W bits (MSLUTSEL)
	uint8_t x[3] = {255,255,255};  //X segment bounds (MSLUTSEL)
	uint8_t s = 0;                 //current segment
	int8_t b;                      //encoded bit value
	int8_t dA;                     //delta value
	uint8_t i = 0;                         //microstep index
   3123a:	f1 2c       	mov	r15, r1
	uint8_t va = 0;                //previous vA
	int8_t d0 = 0;                //delta0
	int8_t d1 = 1;                //delta1
	uint8_t w[4] = {1,1,1,1};      //W bits (MSLUTSEL)
	uint8_t x[3] = {255,255,255};  //X segment bounds (MSLUTSEL)
	uint8_t s = 0;                 //current segment
   3123c:	10 e0       	ldi	r17, 0x00	; 0
	if (fac1000) fac = ((float)((uint16_t)fac1000 + 1000) / 1000); //correction factor
//	printf_P(PSTR(" factor: %s\n"), ftostr43(fac));
	uint8_t vA = 0;                //value of currentA
	uint8_t va = 0;                //previous vA
	int8_t d0 = 0;                //delta0
	int8_t d1 = 1;                //delta1
   3123e:	01 e0       	ldi	r16, 0x01	; 1
	float fac = 0;
	if (fac1000) fac = ((float)((uint16_t)fac1000 + 1000) / 1000); //correction factor
//	printf_P(PSTR(" factor: %s\n"), ftostr43(fac));
	uint8_t vA = 0;                //value of currentA
	uint8_t va = 0;                //previous vA
	int8_t d0 = 0;                //delta0
   31240:	d1 2c       	mov	r13, r1
	if (fac1000 > TMC2130_WAVE_FAC1000_MAX) fac1000 = TMC2130_WAVE_FAC1000_MAX;
	float fac = 0;
	if (fac1000) fac = ((float)((uint16_t)fac1000 + 1000) / 1000); //correction factor
//	printf_P(PSTR(" factor: %s\n"), ftostr43(fac));
	uint8_t vA = 0;                //value of currentA
	uint8_t va = 0;                //previous vA
   31242:	19 86       	std	Y+9, r1	; 0x09
	uint8_t i = 0;                         //microstep index
	uint32_t reg = 0;              //tmc2130 register
	tmc2130_wr_MSLUTSTART(axis, 0, amp);
	do
	{
		if ((i & 0x1f) == 0)
   31244:	2f 2c       	mov	r2, r15
   31246:	31 2c       	mov	r3, r1
   31248:	8f 2d       	mov	r24, r15
   3124a:	8f 71       	andi	r24, 0x1F	; 31
   3124c:	88 87       	std	Y+8, r24	; 0x08
   3124e:	81 11       	cpse	r24, r1
   31250:	03 c0       	rjmp	.+6      	; 0x31258 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0xc2>
			reg = 0;
   31252:	81 2c       	mov	r8, r1
   31254:	91 2c       	mov	r9, r1
   31256:	54 01       	movw	r10, r8
   31258:	b1 01       	movw	r22, r2
   3125a:	03 2c       	mov	r0, r3
   3125c:	00 0c       	add	r0, r0
   3125e:	88 0b       	sbc	r24, r24
   31260:	99 0b       	sbc	r25, r25
   31262:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   31266:	2b ed       	ldi	r18, 0xDB	; 219
   31268:	3f e0       	ldi	r19, 0x0F	; 15
   3126a:	49 ec       	ldi	r20, 0xC9	; 201
   3126c:	50 e4       	ldi	r21, 0x40	; 64
   3126e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   31272:	6a 87       	std	Y+10, r22	; 0x0a
   31274:	7b 87       	std	Y+11, r23	; 0x0b
   31276:	8c 87       	std	Y+12, r24	; 0x0c
   31278:	9d 87       	std	Y+13, r25	; 0x0d
		// calculate value
		if (fac == 0) // default TMC wave
   3127a:	20 e0       	ldi	r18, 0x00	; 0
   3127c:	30 e0       	ldi	r19, 0x00	; 0
   3127e:	a9 01       	movw	r20, r18
   31280:	c3 01       	movw	r24, r6
   31282:	b2 01       	movw	r22, r4
   31284:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   31288:	81 11       	cpse	r24, r1
   3128a:	4d c0       	rjmp	.+154    	; 0x31326 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x190>
			vA = (uint8_t)((amp+1) * sin((2*PI*i + PI)/1024) + 0.5) - 1;
   3128c:	2b ed       	ldi	r18, 0xDB	; 219
   3128e:	3f e0       	ldi	r19, 0x0F	; 15
   31290:	49 e4       	ldi	r20, 0x49	; 73
   31292:	50 e4       	ldi	r21, 0x40	; 64
   31294:	6a 85       	ldd	r22, Y+10	; 0x0a
   31296:	7b 85       	ldd	r23, Y+11	; 0x0b
   31298:	8c 85       	ldd	r24, Y+12	; 0x0c
   3129a:	9d 85       	ldd	r25, Y+13	; 0x0d
   3129c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   312a0:	20 e0       	ldi	r18, 0x00	; 0
   312a2:	30 e0       	ldi	r19, 0x00	; 0
   312a4:	40 e8       	ldi	r20, 0x80	; 128
   312a6:	5a e3       	ldi	r21, 0x3A	; 58
   312a8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   312ac:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   312b0:	20 e0       	ldi	r18, 0x00	; 0
   312b2:	30 e0       	ldi	r19, 0x00	; 0
   312b4:	48 e7       	ldi	r20, 0x78	; 120
   312b6:	53 e4       	ldi	r21, 0x43	; 67
   312b8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   312bc:	20 e0       	ldi	r18, 0x00	; 0
   312be:	30 e0       	ldi	r19, 0x00	; 0
   312c0:	40 e0       	ldi	r20, 0x00	; 0
   312c2:	5f e3       	ldi	r21, 0x3F	; 63
   312c4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   312c8:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   312cc:	cc 24       	eor	r12, r12
   312ce:	ca 94       	dec	r12
   312d0:	c6 0e       	add	r12, r22
		else // corrected wave
			vA = (uint8_t)(amp * pow(sin(2*PI*i/1024), fac) + 0.5);
		dA = vA - va; // calculate delta
   312d2:	8c 2d       	mov	r24, r12
   312d4:	99 85       	ldd	r25, Y+9	; 0x09
   312d6:	89 1b       	sub	r24, r25
		va = vA;
		b = -1;
		if (dA == d0) b = 0;      //delta == delta0 => bit=0
   312d8:	8d 15       	cp	r24, r13
   312da:	f9 f0       	breq	.+62     	; 0x3131a <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x184>
		else if (dA == d1) b = 1; //delta == delta1 => bit=1
   312dc:	80 17       	cp	r24, r16
   312de:	09 f4       	brne	.+2      	; 0x312e2 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x14c>
   312e0:	71 c0       	rjmp	.+226    	; 0x313c4 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x22e>
		else
		{
			if (dA < d0) // delta < delta0 => switch wbit down
   312e2:	8d 15       	cp	r24, r13
   312e4:	0c f0       	brlt	.+2      	; 0x312e8 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x152>
   312e6:	53 c0       	rjmp	.+166    	; 0x3138e <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x1f8>
			{
				//printf("dn\n");
				b = 0;
				switch (dA)
   312e8:	88 23       	and	r24, r24
   312ea:	e9 f1       	breq	.+122    	; 0x31366 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x1d0>
   312ec:	81 30       	cpi	r24, 0x01	; 1
   312ee:	09 f4       	brne	.+2      	; 0x312f2 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x15c>
   312f0:	44 c0       	rjmp	.+136    	; 0x3137a <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x1e4>
   312f2:	8f 3f       	cpi	r24, 0xFF	; 255
   312f4:	09 f0       	breq	.+2      	; 0x312f8 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x162>
   312f6:	81 c0       	rjmp	.+258    	; 0x313fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x264>
				{
				case -1: d0 = -1; d1 = 0; w[s+1] = 0; break;
   312f8:	e2 e0       	ldi	r30, 0x02	; 2
   312fa:	f0 e0       	ldi	r31, 0x00	; 0
   312fc:	ec 0f       	add	r30, r28
   312fe:	fd 1f       	adc	r31, r29
   31300:	e1 0f       	add	r30, r17
   31302:	f1 1d       	adc	r31, r1
   31304:	10 82       	st	Z, r1
   31306:	00 e0       	ldi	r16, 0x00	; 0
				case  0: d0 =  0; d1 = 1; w[s+1] = 1; break;
				case  1: d0 =  1; d1 = 2; w[s+1] = 2; break;
				default: b = -1; break;
				}
				if (b >= 0) { x[s] = i; s++; }
   31308:	e5 e0       	ldi	r30, 0x05	; 5
   3130a:	f0 e0       	ldi	r31, 0x00	; 0
   3130c:	ec 0f       	add	r30, r28
   3130e:	fd 1f       	adc	r31, r29
   31310:	e1 0f       	add	r30, r17
   31312:	f1 1d       	adc	r31, r1
   31314:	f0 82       	st	Z, r15
   31316:	1f 5f       	subi	r17, 0xFF	; 255
   31318:	d8 2e       	mov	r13, r24
				}
			    if (b >= 0) { x[s] = i; s++; }
			}
		}
		if (b < 0) break; // delta out of range (<-1 or >3)
		if (s > 3) break; // segment out of range (> 3)
   3131a:	14 30       	cpi	r17, 0x04	; 4
   3131c:	08 f4       	brcc	.+2      	; 0x31320 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x18a>
   3131e:	56 c0       	rjmp	.+172    	; 0x313cc <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x236>
   31320:	6c c0       	rjmp	.+216    	; 0x313fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x264>
		if ((i & 31) == 31)
			tmc2130_wr_MSLUT(axis, (uint8_t)(i >> 5), reg);
		else
			reg >>= 1;
//		printf("%3d\t%3d\t%2d\t%2d\t%2d\t%2d    %08x\n", i, vA, dA, b, w[s], s, reg);
	} while (i++ != 255);
   31322:	f8 2e       	mov	r15, r24
   31324:	8f cf       	rjmp	.-226    	; 0x31244 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0xae>
			reg = 0;
		// calculate value
		if (fac == 0) // default TMC wave
			vA = (uint8_t)((amp+1) * sin((2*PI*i + PI)/1024) + 0.5) - 1;
		else // corrected wave
			vA = (uint8_t)(amp * pow(sin(2*PI*i/1024), fac) + 0.5);
   31326:	20 e0       	ldi	r18, 0x00	; 0
   31328:	30 e0       	ldi	r19, 0x00	; 0
   3132a:	40 e8       	ldi	r20, 0x80	; 128
   3132c:	5a e3       	ldi	r21, 0x3A	; 58
   3132e:	6a 85       	ldd	r22, Y+10	; 0x0a
   31330:	7b 85       	ldd	r23, Y+11	; 0x0b
   31332:	8c 85       	ldd	r24, Y+12	; 0x0c
   31334:	9d 85       	ldd	r25, Y+13	; 0x0d
   31336:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3133a:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   3133e:	a3 01       	movw	r20, r6
   31340:	92 01       	movw	r18, r4
   31342:	0f 94 f3 e0 	call	0x3c1e6	; 0x3c1e6 <pow>
   31346:	20 e0       	ldi	r18, 0x00	; 0
   31348:	30 e0       	ldi	r19, 0x00	; 0
   3134a:	47 e7       	ldi	r20, 0x77	; 119
   3134c:	53 e4       	ldi	r21, 0x43	; 67
   3134e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   31352:	20 e0       	ldi	r18, 0x00	; 0
   31354:	30 e0       	ldi	r19, 0x00	; 0
   31356:	40 e0       	ldi	r20, 0x00	; 0
   31358:	5f e3       	ldi	r21, 0x3F	; 63
   3135a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3135e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   31362:	c6 2e       	mov	r12, r22
   31364:	b6 cf       	rjmp	.-148    	; 0x312d2 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x13c>
				//printf("dn\n");
				b = 0;
				switch (dA)
				{
				case -1: d0 = -1; d1 = 0; w[s+1] = 0; break;
				case  0: d0 =  0; d1 = 1; w[s+1] = 1; break;
   31366:	e2 e0       	ldi	r30, 0x02	; 2
   31368:	f0 e0       	ldi	r31, 0x00	; 0
   3136a:	ec 0f       	add	r30, r28
   3136c:	fd 1f       	adc	r31, r29
   3136e:	e1 0f       	add	r30, r17
   31370:	f1 1d       	adc	r31, r1
   31372:	91 e0       	ldi	r25, 0x01	; 1
   31374:	90 83       	st	Z, r25
   31376:	01 e0       	ldi	r16, 0x01	; 1
   31378:	c7 cf       	rjmp	.-114    	; 0x31308 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x172>
				case  1: d0 =  1; d1 = 2; w[s+1] = 2; break;
   3137a:	e2 e0       	ldi	r30, 0x02	; 2
   3137c:	f0 e0       	ldi	r31, 0x00	; 0
   3137e:	ec 0f       	add	r30, r28
   31380:	fd 1f       	adc	r31, r29
   31382:	e1 0f       	add	r30, r17
   31384:	f1 1d       	adc	r31, r1
   31386:	92 e0       	ldi	r25, 0x02	; 2
   31388:	90 83       	st	Z, r25
   3138a:	02 e0       	ldi	r16, 0x02	; 2
   3138c:	bd cf       	rjmp	.-134    	; 0x31308 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x172>
				default: b = -1; break;
				}
				if (b >= 0) { x[s] = i; s++; }
			}
			else if (dA > d1) // delta > delta0 => switch wbit up
   3138e:	08 17       	cp	r16, r24
   31390:	a4 f5       	brge	.+104    	; 0x313fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x264>
			{
				//printf("up\n");
				b = 1;
				switch (dA)
   31392:	82 30       	cpi	r24, 0x02	; 2
   31394:	09 f4       	brne	.+2      	; 0x31398 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x202>
   31396:	80 c0       	rjmp	.+256    	; 0x31498 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x302>
   31398:	83 30       	cpi	r24, 0x03	; 3
   3139a:	09 f4       	brne	.+2      	; 0x3139e <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x208>
   3139c:	88 c0       	rjmp	.+272    	; 0x314ae <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x318>
   3139e:	81 30       	cpi	r24, 0x01	; 1
   313a0:	61 f5       	brne	.+88     	; 0x313fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x264>
				{
				case  1: d0 =  0; d1 = 1; w[s+1] = 1; break;
   313a2:	e2 e0       	ldi	r30, 0x02	; 2
   313a4:	f0 e0       	ldi	r31, 0x00	; 0
   313a6:	ec 0f       	add	r30, r28
   313a8:	fd 1f       	adc	r31, r29
   313aa:	e1 0f       	add	r30, r17
   313ac:	f1 1d       	adc	r31, r1
   313ae:	80 83       	st	Z, r24
   313b0:	01 e0       	ldi	r16, 0x01	; 1
   313b2:	d1 2c       	mov	r13, r1
				case  2: d0 =  1; d1 = 2; w[s+1] = 2; break;
				case  3: d0 =  2; d1 = 3; w[s+1] = 3; break;
				default: b = -1; break;
				}
			    if (b >= 0) { x[s] = i; s++; }
   313b4:	e5 e0       	ldi	r30, 0x05	; 5
   313b6:	f0 e0       	ldi	r31, 0x00	; 0
   313b8:	ec 0f       	add	r30, r28
   313ba:	fd 1f       	adc	r31, r29
   313bc:	e1 0f       	add	r30, r17
   313be:	f1 1d       	adc	r31, r1
   313c0:	f0 82       	st	Z, r15
   313c2:	1f 5f       	subi	r17, 0xFF	; 255
			}
		}
		if (b < 0) break; // delta out of range (<-1 or >3)
		if (s > 3) break; // segment out of range (> 3)
   313c4:	14 30       	cpi	r17, 0x04	; 4
   313c6:	c8 f4       	brcc	.+50     	; 0x313fa <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x264>
		//printf("%d\n", vA);
		if (b == 1) reg |= 0x80000000;
   313c8:	68 94       	set
   313ca:	b7 f8       	bld	r11, 7
		if ((i & 31) == 31)
   313cc:	88 85       	ldd	r24, Y+8	; 0x08
   313ce:	8f 31       	cpi	r24, 0x1F	; 31
   313d0:	09 f0       	breq	.+2      	; 0x313d4 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x23e>
   313d2:	78 c0       	rjmp	.+240    	; 0x314c4 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x32e>
			tmc2130_wr_MSLUT(axis, (uint8_t)(i >> 5), reg);
   313d4:	b1 01       	movw	r22, r2
   313d6:	e5 e0       	ldi	r30, 0x05	; 5
   313d8:	75 95       	asr	r23
   313da:	67 95       	ror	r22
   313dc:	ea 95       	dec	r30
   313de:	e1 f7       	brne	.-8      	; 0x313d8 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x242>
	//printf_P(PSTR("MSLUTSEL=%08lx (x1=%d x2=%d x3=%d w0=%d w1=%d w2=%d w3=%d)\n"), val, x1, x2, x3, w0, w1, w2, w3);
}

void tmc2130_wr_MSLUT(uint8_t axis, uint8_t i, uint32_t val)
{
	tmc2130_wr(axis, TMC2130_REG_MSLUT0 + (i & 7), val);
   313e0:	60 5a       	subi	r22, 0xA0	; 160
   313e2:	60 68       	ori	r22, 0x80	; 128
   313e4:	a5 01       	movw	r20, r10
   313e6:	94 01       	movw	r18, r8
   313e8:	8e 2d       	mov	r24, r14
   313ea:	0f 94 57 25 	call	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
		if ((i & 31) == 31)
			tmc2130_wr_MSLUT(axis, (uint8_t)(i >> 5), reg);
		else
			reg >>= 1;
//		printf("%3d\t%3d\t%2d\t%2d\t%2d\t%2d    %08x\n", i, vA, dA, b, w[s], s, reg);
	} while (i++ != 255);
   313ee:	81 e0       	ldi	r24, 0x01	; 1
   313f0:	8f 0d       	add	r24, r15
		if (fac == 0) // default TMC wave
			vA = (uint8_t)((amp+1) * sin((2*PI*i + PI)/1024) + 0.5) - 1;
		else // corrected wave
			vA = (uint8_t)(amp * pow(sin(2*PI*i/1024), fac) + 0.5);
		dA = vA - va; // calculate delta
		va = vA;
   313f2:	c9 86       	std	Y+9, r12	; 0x09
		if ((i & 31) == 31)
			tmc2130_wr_MSLUT(axis, (uint8_t)(i >> 5), reg);
		else
			reg >>= 1;
//		printf("%3d\t%3d\t%2d\t%2d\t%2d\t%2d    %08x\n", i, vA, dA, b, w[s], s, reg);
	} while (i++ != 255);
   313f4:	9f ef       	ldi	r25, 0xFF	; 255
   313f6:	f9 12       	cpse	r15, r25
   313f8:	94 cf       	rjmp	.-216    	; 0x31322 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x18c>

void tmc2130_wr_MSLUTSEL(uint8_t axis, uint8_t x1, uint8_t x2, uint8_t x3, uint8_t w0, uint8_t w1, uint8_t w2, uint8_t w3)
{
	uint32_t val = 0;
	val |= ((uint32_t)w0);
	val |= ((uint32_t)w1) << 2;
   313fa:	2a 81       	ldd	r18, Y+2	; 0x02
   313fc:	30 e0       	ldi	r19, 0x00	; 0
   313fe:	50 e0       	ldi	r21, 0x00	; 0
   31400:	40 e0       	ldi	r20, 0x00	; 0
   31402:	82 e0       	ldi	r24, 0x02	; 2
   31404:	22 0f       	add	r18, r18
   31406:	33 1f       	adc	r19, r19
   31408:	44 1f       	adc	r20, r20
   3140a:	55 1f       	adc	r21, r21
   3140c:	8a 95       	dec	r24
   3140e:	d1 f7       	brne	.-12     	; 0x31404 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x26e>
	val |= ((uint32_t)w2) << 4;
   31410:	8b 80       	ldd	r8, Y+3	; 0x03
   31412:	91 2c       	mov	r9, r1
   31414:	b1 2c       	mov	r11, r1
   31416:	a1 2c       	mov	r10, r1
   31418:	94 e0       	ldi	r25, 0x04	; 4
   3141a:	88 0c       	add	r8, r8
   3141c:	99 1c       	adc	r9, r9
   3141e:	aa 1c       	adc	r10, r10
   31420:	bb 1c       	adc	r11, r11
   31422:	9a 95       	dec	r25
   31424:	d1 f7       	brne	.-12     	; 0x3141a <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x284>
   31426:	82 2a       	or	r8, r18
   31428:	93 2a       	or	r9, r19
   3142a:	a4 2a       	or	r10, r20
   3142c:	b5 2a       	or	r11, r21
}

void tmc2130_wr_MSLUTSEL(uint8_t axis, uint8_t x1, uint8_t x2, uint8_t x3, uint8_t w0, uint8_t w1, uint8_t w2, uint8_t w3)
{
	uint32_t val = 0;
	val |= ((uint32_t)w0);
   3142e:	89 81       	ldd	r24, Y+1	; 0x01
	val |= ((uint32_t)w1) << 2;
	val |= ((uint32_t)w2) << 4;
   31430:	88 2a       	or	r8, r24
	val |= ((uint32_t)w3) << 6;
   31432:	8c 81       	ldd	r24, Y+4	; 0x04
   31434:	90 e0       	ldi	r25, 0x00	; 0
   31436:	b0 e0       	ldi	r27, 0x00	; 0
   31438:	a0 e0       	ldi	r26, 0x00	; 0
   3143a:	9c 01       	movw	r18, r24
   3143c:	ad 01       	movw	r20, r26
   3143e:	66 e0       	ldi	r22, 0x06	; 6
   31440:	22 0f       	add	r18, r18
   31442:	33 1f       	adc	r19, r19
   31444:	44 1f       	adc	r20, r20
   31446:	55 1f       	adc	r21, r21
   31448:	6a 95       	dec	r22
   3144a:	d1 f7       	brne	.-12     	; 0x31440 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x2aa>
   3144c:	28 29       	or	r18, r8
   3144e:	39 29       	or	r19, r9
   31450:	4a 29       	or	r20, r10
   31452:	5b 29       	or	r21, r11
	val |= ((uint32_t)x1) << 8;
   31454:	8d 81       	ldd	r24, Y+5	; 0x05
   31456:	38 2b       	or	r19, r24
	val |= ((uint32_t)x2) << 16;
   31458:	8e 81       	ldd	r24, Y+6	; 0x06
   3145a:	48 2b       	or	r20, r24
	val |= ((uint32_t)x3) << 24;
   3145c:	8f 81       	ldd	r24, Y+7	; 0x07
   3145e:	58 2b       	or	r21, r24
	tmc2130_wr(axis, TMC2130_REG_MSLUTSEL, val);
   31460:	68 ee       	ldi	r22, 0xE8	; 232
   31462:	8e 2d       	mov	r24, r14
		else
			reg >>= 1;
//		printf("%3d\t%3d\t%2d\t%2d\t%2d\t%2d    %08x\n", i, vA, dA, b, w[s], s, reg);
	} while (i++ != 255);
	tmc2130_wr_MSLUTSEL(axis, x[0], x[1], x[2], w[0], w[1], w[2], w[3]);
}
   31464:	2d 96       	adiw	r28, 0x0d	; 13
   31466:	0f b6       	in	r0, 0x3f	; 63
   31468:	f8 94       	cli
   3146a:	de bf       	out	0x3e, r29	; 62
   3146c:	0f be       	out	0x3f, r0	; 63
   3146e:	cd bf       	out	0x3d, r28	; 61
   31470:	df 91       	pop	r29
   31472:	cf 91       	pop	r28
   31474:	1f 91       	pop	r17
   31476:	0f 91       	pop	r16
   31478:	ff 90       	pop	r15
   3147a:	ef 90       	pop	r14
   3147c:	df 90       	pop	r13
   3147e:	cf 90       	pop	r12
   31480:	bf 90       	pop	r11
   31482:	af 90       	pop	r10
   31484:	9f 90       	pop	r9
   31486:	8f 90       	pop	r8
   31488:	7f 90       	pop	r7
   3148a:	6f 90       	pop	r6
   3148c:	5f 90       	pop	r5
   3148e:	4f 90       	pop	r4
   31490:	3f 90       	pop	r3
   31492:	2f 90       	pop	r2
	val |= ((uint32_t)w2) << 4;
	val |= ((uint32_t)w3) << 6;
	val |= ((uint32_t)x1) << 8;
	val |= ((uint32_t)x2) << 16;
	val |= ((uint32_t)x3) << 24;
	tmc2130_wr(axis, TMC2130_REG_MSLUTSEL, val);
   31494:	0d 94 57 25 	jmp	0x24aae	; 0x24aae <tmc2130_tx(unsigned char, unsigned char, unsigned long) [clone .lto_priv.387]>
				//printf("up\n");
				b = 1;
				switch (dA)
				{
				case  1: d0 =  0; d1 = 1; w[s+1] = 1; break;
				case  2: d0 =  1; d1 = 2; w[s+1] = 2; break;
   31498:	e2 e0       	ldi	r30, 0x02	; 2
   3149a:	f0 e0       	ldi	r31, 0x00	; 0
   3149c:	ec 0f       	add	r30, r28
   3149e:	fd 1f       	adc	r31, r29
   314a0:	e1 0f       	add	r30, r17
   314a2:	f1 1d       	adc	r31, r1
   314a4:	80 83       	st	Z, r24
   314a6:	02 e0       	ldi	r16, 0x02	; 2
   314a8:	dd 24       	eor	r13, r13
   314aa:	d3 94       	inc	r13
   314ac:	83 cf       	rjmp	.-250    	; 0x313b4 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x21e>
				case  3: d0 =  2; d1 = 3; w[s+1] = 3; break;
   314ae:	e2 e0       	ldi	r30, 0x02	; 2
   314b0:	f0 e0       	ldi	r31, 0x00	; 0
   314b2:	ec 0f       	add	r30, r28
   314b4:	fd 1f       	adc	r31, r29
   314b6:	e1 0f       	add	r30, r17
   314b8:	f1 1d       	adc	r31, r1
   314ba:	80 83       	st	Z, r24
   314bc:	03 e0       	ldi	r16, 0x03	; 3
   314be:	f2 e0       	ldi	r31, 0x02	; 2
   314c0:	df 2e       	mov	r13, r31
   314c2:	78 cf       	rjmp	.-272    	; 0x313b4 <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x21e>
		//printf("%d\n", vA);
		if (b == 1) reg |= 0x80000000;
		if ((i & 31) == 31)
			tmc2130_wr_MSLUT(axis, (uint8_t)(i >> 5), reg);
		else
			reg >>= 1;
   314c4:	b6 94       	lsr	r11
   314c6:	a7 94       	ror	r10
   314c8:	97 94       	ror	r9
   314ca:	87 94       	ror	r8
   314cc:	90 cf       	rjmp	.-224    	; 0x313ee <tmc2130_set_wave(unsigned char, unsigned char, unsigned char) [clone .constprop.108]+0x258>

000314ce <retract(bool, bool) [clone .constprop.106]>:
{
  previous_millis_cmd.start();
}

#ifdef FWRETRACT
void retract(bool retracting, bool swapretract = false) {
   314ce:	8f 92       	push	r8
   314d0:	9f 92       	push	r9
   314d2:	af 92       	push	r10
   314d4:	bf 92       	push	r11
   314d6:	cf 92       	push	r12
   314d8:	df 92       	push	r13
   314da:	ef 92       	push	r14
   314dc:	ff 92       	push	r15
   314de:	90 91 8e 06 	lds	r25, 0x068E	; 0x80068e <retracted>
    // Perform FW retraction, just if needed, but behave as if the move has never took place in
    // order to keep E/Z coordinates unchanged. This is done by manipulating the internal planner
    // position, which requires a sync
    if(retracting && !retracted[active_extruder]) {
   314e2:	88 23       	and	r24, r24
   314e4:	09 f4       	brne	.+2      	; 0x314e8 <retract(bool, bool) [clone .constprop.106]+0x1a>
   314e6:	9d c0       	rjmp	.+314    	; 0x31622 <retract(bool, bool) [clone .constprop.106]+0x154>
   314e8:	91 11       	cpse	r25, r1
   314ea:	92 c0       	rjmp	.+292    	; 0x31610 <retract(bool, bool) [clone .constprop.106]+0x142>
        st_synchronize();
   314ec:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        set_destination_to_current();
   314f0:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
        current_position[E_AXIS]+=(swapretract?retract_length_swap:cs.retract_length)*float(extrudemultiply)*0.01f;
   314f4:	60 91 bc 02 	lds	r22, 0x02BC	; 0x8002bc <extrudemultiply>
   314f8:	70 91 bd 02 	lds	r23, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
   314fc:	07 2e       	mov	r0, r23
   314fe:	00 0c       	add	r0, r0
   31500:	88 0b       	sbc	r24, r24
   31502:	99 0b       	sbc	r25, r25
   31504:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   31508:	20 91 41 0e 	lds	r18, 0x0E41	; 0x800e41 <cs+0x83>
   3150c:	30 91 42 0e 	lds	r19, 0x0E42	; 0x800e42 <cs+0x84>
   31510:	40 91 43 0e 	lds	r20, 0x0E43	; 0x800e43 <cs+0x85>
   31514:	50 91 44 0e 	lds	r21, 0x0E44	; 0x800e44 <cs+0x86>
   31518:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3151c:	2a e0       	ldi	r18, 0x0A	; 10
   3151e:	37 ed       	ldi	r19, 0xD7	; 215
   31520:	43 e2       	ldi	r20, 0x23	; 35
   31522:	5c e3       	ldi	r21, 0x3C	; 60
   31524:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   31528:	20 91 9e 06 	lds	r18, 0x069E	; 0x80069e <current_position+0xc>
   3152c:	30 91 9f 06 	lds	r19, 0x069F	; 0x80069f <current_position+0xd>
   31530:	40 91 a0 06 	lds	r20, 0x06A0	; 0x8006a0 <current_position+0xe>
   31534:	50 91 a1 06 	lds	r21, 0x06A1	; 0x8006a1 <current_position+0xf>
   31538:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3153c:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   31540:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   31544:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   31548:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
        plan_set_e_position(current_position[E_AXIS]);
   3154c:	8e e9       	ldi	r24, 0x9E	; 158
   3154e:	96 e0       	ldi	r25, 0x06	; 6
   31550:	0f 94 00 65 	call	0x2ca00	; 0x2ca00 <plan_set_e_position(float const&)>
        float oldFeedrate = feedrate;
   31554:	c0 90 b8 02 	lds	r12, 0x02B8	; 0x8002b8 <feedrate>
   31558:	d0 90 b9 02 	lds	r13, 0x02B9	; 0x8002b9 <feedrate+0x1>
   3155c:	e0 90 ba 02 	lds	r14, 0x02BA	; 0x8002ba <feedrate+0x2>
   31560:	f0 90 bb 02 	lds	r15, 0x02BB	; 0x8002bb <feedrate+0x3>
        feedrate=cs.retract_feedrate*60;
   31564:	20 e0       	ldi	r18, 0x00	; 0
   31566:	30 e0       	ldi	r19, 0x00	; 0
   31568:	40 e7       	ldi	r20, 0x70	; 112
   3156a:	52 e4       	ldi	r21, 0x42	; 66
   3156c:	60 91 45 0e 	lds	r22, 0x0E45	; 0x800e45 <cs+0x87>
   31570:	70 91 46 0e 	lds	r23, 0x0E46	; 0x800e46 <cs+0x88>
   31574:	80 91 47 0e 	lds	r24, 0x0E47	; 0x800e47 <cs+0x89>
   31578:	90 91 48 0e 	lds	r25, 0x0E48	; 0x800e48 <cs+0x8a>
   3157c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   31580:	60 93 b8 02 	sts	0x02B8, r22	; 0x8002b8 <feedrate>
   31584:	70 93 b9 02 	sts	0x02B9, r23	; 0x8002b9 <feedrate+0x1>
   31588:	80 93 ba 02 	sts	0x02BA, r24	; 0x8002ba <feedrate+0x2>
   3158c:	90 93 bb 02 	sts	0x02BB, r25	; 0x8002bb <feedrate+0x3>
        retracted[active_extruder]=true;
   31590:	81 e0       	ldi	r24, 0x01	; 1
   31592:	80 93 8e 06 	sts	0x068E, r24	; 0x80068e <retracted>
        prepare_move();
   31596:	90 e0       	ldi	r25, 0x00	; 0
   31598:	80 e0       	ldi	r24, 0x00	; 0
   3159a:	0e 94 8f 6b 	call	0xd71e	; 0xd71e <prepare_move(unsigned int)>
        if(cs.retract_zlift) {
   3159e:	20 e0       	ldi	r18, 0x00	; 0
   315a0:	30 e0       	ldi	r19, 0x00	; 0
   315a2:	a9 01       	movw	r20, r18
   315a4:	60 91 49 0e 	lds	r22, 0x0E49	; 0x800e49 <cs+0x8b>
   315a8:	70 91 4a 0e 	lds	r23, 0x0E4A	; 0x800e4a <cs+0x8c>
   315ac:	80 91 4b 0e 	lds	r24, 0x0E4B	; 0x800e4b <cs+0x8d>
   315b0:	90 91 4c 0e 	lds	r25, 0x0E4C	; 0x800e4c <cs+0x8e>
   315b4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   315b8:	88 23       	and	r24, r24
   315ba:	11 f1       	breq	.+68     	; 0x31600 <retract(bool, bool) [clone .constprop.106]+0x132>
            st_synchronize();
   315bc:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            current_position[Z_AXIS]-=cs.retract_zlift;
   315c0:	20 91 49 0e 	lds	r18, 0x0E49	; 0x800e49 <cs+0x8b>
   315c4:	30 91 4a 0e 	lds	r19, 0x0E4A	; 0x800e4a <cs+0x8c>
   315c8:	40 91 4b 0e 	lds	r20, 0x0E4B	; 0x800e4b <cs+0x8d>
   315cc:	50 91 4c 0e 	lds	r21, 0x0E4C	; 0x800e4c <cs+0x8e>
   315d0:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   315d4:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   315d8:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   315dc:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   315e0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   315e4:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   315e8:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   315ec:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   315f0:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
            plan_set_position_curposXYZE();
   315f4:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
            prepare_move();
   315f8:	90 e0       	ldi	r25, 0x00	; 0
   315fa:	80 e0       	ldi	r24, 0x00	; 0
   315fc:	0e 94 8f 6b 	call	0xd71e	; 0xd71e <prepare_move(unsigned int)>
        }
        feedrate = oldFeedrate;
   31600:	c0 92 b8 02 	sts	0x02B8, r12	; 0x8002b8 <feedrate>
   31604:	d0 92 b9 02 	sts	0x02B9, r13	; 0x8002b9 <feedrate+0x1>
   31608:	e0 92 ba 02 	sts	0x02BA, r14	; 0x8002ba <feedrate+0x2>
   3160c:	f0 92 bb 02 	sts	0x02BB, r15	; 0x8002bb <feedrate+0x3>
        plan_set_e_position(current_position[E_AXIS]);
        retracted[active_extruder]=false;
        prepare_move();
        feedrate = oldFeedrate;
    }
} //retract
   31610:	ff 90       	pop	r15
   31612:	ef 90       	pop	r14
   31614:	df 90       	pop	r13
   31616:	cf 90       	pop	r12
   31618:	bf 90       	pop	r11
   3161a:	af 90       	pop	r10
   3161c:	9f 90       	pop	r9
   3161e:	8f 90       	pop	r8
   31620:	08 95       	ret
            current_position[Z_AXIS]-=cs.retract_zlift;
            plan_set_position_curposXYZE();
            prepare_move();
        }
        feedrate = oldFeedrate;
    } else if(!retracting && retracted[active_extruder]) {
   31622:	99 23       	and	r25, r25
   31624:	a9 f3       	breq	.-22     	; 0x31610 <retract(bool, bool) [clone .constprop.106]+0x142>
        st_synchronize();
   31626:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        set_destination_to_current();
   3162a:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
        float oldFeedrate = feedrate;
   3162e:	80 90 b8 02 	lds	r8, 0x02B8	; 0x8002b8 <feedrate>
   31632:	90 90 b9 02 	lds	r9, 0x02B9	; 0x8002b9 <feedrate+0x1>
   31636:	a0 90 ba 02 	lds	r10, 0x02BA	; 0x8002ba <feedrate+0x2>
   3163a:	b0 90 bb 02 	lds	r11, 0x02BB	; 0x8002bb <feedrate+0x3>
        feedrate=cs.retract_recover_feedrate*60;
   3163e:	20 e0       	ldi	r18, 0x00	; 0
   31640:	30 e0       	ldi	r19, 0x00	; 0
   31642:	40 e7       	ldi	r20, 0x70	; 112
   31644:	52 e4       	ldi	r21, 0x42	; 66
   31646:	60 91 51 0e 	lds	r22, 0x0E51	; 0x800e51 <cs+0x93>
   3164a:	70 91 52 0e 	lds	r23, 0x0E52	; 0x800e52 <cs+0x94>
   3164e:	80 91 53 0e 	lds	r24, 0x0E53	; 0x800e53 <cs+0x95>
   31652:	90 91 54 0e 	lds	r25, 0x0E54	; 0x800e54 <cs+0x96>
   31656:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3165a:	60 93 b8 02 	sts	0x02B8, r22	; 0x8002b8 <feedrate>
   3165e:	70 93 b9 02 	sts	0x02B9, r23	; 0x8002b9 <feedrate+0x1>
   31662:	80 93 ba 02 	sts	0x02BA, r24	; 0x8002ba <feedrate+0x2>
   31666:	90 93 bb 02 	sts	0x02BB, r25	; 0x8002bb <feedrate+0x3>
        if(cs.retract_zlift) {
   3166a:	c0 90 49 0e 	lds	r12, 0x0E49	; 0x800e49 <cs+0x8b>
   3166e:	d0 90 4a 0e 	lds	r13, 0x0E4A	; 0x800e4a <cs+0x8c>
   31672:	e0 90 4b 0e 	lds	r14, 0x0E4B	; 0x800e4b <cs+0x8d>
   31676:	f0 90 4c 0e 	lds	r15, 0x0E4C	; 0x800e4c <cs+0x8e>
   3167a:	20 e0       	ldi	r18, 0x00	; 0
   3167c:	30 e0       	ldi	r19, 0x00	; 0
   3167e:	a9 01       	movw	r20, r18
   31680:	c7 01       	movw	r24, r14
   31682:	b6 01       	movw	r22, r12
   31684:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   31688:	88 23       	and	r24, r24
   3168a:	e1 f0       	breq	.+56     	; 0x316c4 <retract(bool, bool) [clone .constprop.106]+0x1f6>
            current_position[Z_AXIS]+=cs.retract_zlift;
   3168c:	a7 01       	movw	r20, r14
   3168e:	96 01       	movw	r18, r12
   31690:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   31694:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   31698:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   3169c:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   316a0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   316a4:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   316a8:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   316ac:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   316b0:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
            plan_set_position_curposXYZE();
   316b4:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
            prepare_move();
   316b8:	90 e0       	ldi	r25, 0x00	; 0
   316ba:	80 e0       	ldi	r24, 0x00	; 0
   316bc:	0e 94 8f 6b 	call	0xd71e	; 0xd71e <prepare_move(unsigned int)>
            st_synchronize();
   316c0:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        }
        current_position[E_AXIS]-=(swapretract?(retract_length_swap+retract_recover_length_swap):(cs.retract_length+cs.retract_recover_length))*float(extrudemultiply)*0.01f;
   316c4:	20 91 4d 0e 	lds	r18, 0x0E4D	; 0x800e4d <cs+0x8f>
   316c8:	30 91 4e 0e 	lds	r19, 0x0E4E	; 0x800e4e <cs+0x90>
   316cc:	40 91 4f 0e 	lds	r20, 0x0E4F	; 0x800e4f <cs+0x91>
   316d0:	50 91 50 0e 	lds	r21, 0x0E50	; 0x800e50 <cs+0x92>
   316d4:	60 91 41 0e 	lds	r22, 0x0E41	; 0x800e41 <cs+0x83>
   316d8:	70 91 42 0e 	lds	r23, 0x0E42	; 0x800e42 <cs+0x84>
   316dc:	80 91 43 0e 	lds	r24, 0x0E43	; 0x800e43 <cs+0x85>
   316e0:	90 91 44 0e 	lds	r25, 0x0E44	; 0x800e44 <cs+0x86>
   316e4:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   316e8:	6b 01       	movw	r12, r22
   316ea:	7c 01       	movw	r14, r24
   316ec:	60 91 bc 02 	lds	r22, 0x02BC	; 0x8002bc <extrudemultiply>
   316f0:	70 91 bd 02 	lds	r23, 0x02BD	; 0x8002bd <extrudemultiply+0x1>
   316f4:	07 2e       	mov	r0, r23
   316f6:	00 0c       	add	r0, r0
   316f8:	88 0b       	sbc	r24, r24
   316fa:	99 0b       	sbc	r25, r25
   316fc:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   31700:	9b 01       	movw	r18, r22
   31702:	ac 01       	movw	r20, r24
   31704:	c7 01       	movw	r24, r14
   31706:	b6 01       	movw	r22, r12
   31708:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3170c:	2a e0       	ldi	r18, 0x0A	; 10
   3170e:	37 ed       	ldi	r19, 0xD7	; 215
   31710:	43 e2       	ldi	r20, 0x23	; 35
   31712:	5c e3       	ldi	r21, 0x3C	; 60
   31714:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   31718:	9b 01       	movw	r18, r22
   3171a:	ac 01       	movw	r20, r24
   3171c:	60 91 9e 06 	lds	r22, 0x069E	; 0x80069e <current_position+0xc>
   31720:	70 91 9f 06 	lds	r23, 0x069F	; 0x80069f <current_position+0xd>
   31724:	80 91 a0 06 	lds	r24, 0x06A0	; 0x8006a0 <current_position+0xe>
   31728:	90 91 a1 06 	lds	r25, 0x06A1	; 0x8006a1 <current_position+0xf>
   3172c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   31730:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   31734:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   31738:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   3173c:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>
        plan_set_e_position(current_position[E_AXIS]);
   31740:	8e e9       	ldi	r24, 0x9E	; 158
   31742:	96 e0       	ldi	r25, 0x06	; 6
   31744:	0f 94 00 65 	call	0x2ca00	; 0x2ca00 <plan_set_e_position(float const&)>
        retracted[active_extruder]=false;
   31748:	10 92 8e 06 	sts	0x068E, r1	; 0x80068e <retracted>
        prepare_move();
   3174c:	90 e0       	ldi	r25, 0x00	; 0
   3174e:	80 e0       	ldi	r24, 0x00	; 0
   31750:	0e 94 8f 6b 	call	0xd71e	; 0xd71e <prepare_move(unsigned int)>
        feedrate = oldFeedrate;
   31754:	80 92 b8 02 	sts	0x02B8, r8	; 0x8002b8 <feedrate>
   31758:	90 92 b9 02 	sts	0x02B9, r9	; 0x8002b9 <feedrate+0x1>
   3175c:	a0 92 ba 02 	sts	0x02BA, r10	; 0x8002ba <feedrate+0x2>
   31760:	b0 92 bb 02 	sts	0x02BB, r11	; 0x8002bb <feedrate+0x3>
   31764:	55 cf       	rjmp	.-342    	; 0x31610 <retract(bool, bool) [clone .constprop.106]+0x142>

00031766 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]>:
	case Z_AXIS: _DO_STEP_Z; break;
	case E_AXIS: _DO_STEP_E; break;
	}
}

void tmc2130_do_steps(uint8_t axis, uint16_t steps, uint8_t dir, uint16_t delay_us)
   31766:	ef 92       	push	r14
   31768:	ff 92       	push	r15
   3176a:	0f 93       	push	r16
   3176c:	1f 93       	push	r17
   3176e:	cf 93       	push	r28
   31770:	c8 2f       	mov	r28, r24
   31772:	8b 01       	movw	r16, r22
uint8_t tmc2130_get_dir(uint8_t axis)
{
	switch (axis)
	{
	case X_AXIS: return _GET_DIR_X;
	case Y_AXIS: return _GET_DIR_Y;
   31774:	80 91 09 01 	lds	r24, 0x0109	; 0x800109 <__TEXT_REGION_LENGTH__+0x7c2109>
	return 0;
}

uint8_t tmc2130_get_dir(uint8_t axis)
{
	switch (axis)
   31778:	c1 30       	cpi	r28, 0x01	; 1
   3177a:	b9 f0       	breq	.+46     	; 0x317aa <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x44>
   3177c:	c2 30       	cpi	r28, 0x02	; 2
   3177e:	c1 f0       	breq	.+48     	; 0x317b0 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x4a>
	{
	case X_AXIS: return _GET_DIR_X;
	case Y_AXIS: return _GET_DIR_Y;
   31780:	81 70       	andi	r24, 0x01	; 1
	}
}

void tmc2130_do_steps(uint8_t axis, uint16_t steps, uint8_t dir, uint16_t delay_us)
{
    if (tmc2130_get_dir(axis) != dir)
   31782:	48 17       	cp	r20, r24
   31784:	21 f0       	breq	.+8      	; 0x3178e <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x28>
        tmc2130_set_dir(axis, dir);
   31786:	64 2f       	mov	r22, r20
   31788:	8c 2f       	mov	r24, r28
   3178a:	0f 94 ba 24 	call	0x24974	; 0x24974 <tmc2130_set_dir(unsigned char, unsigned char)>
   3178e:	8b e9       	ldi	r24, 0x9B	; 155
   31790:	e8 2e       	mov	r14, r24
   31792:	8f e0       	ldi	r24, 0x0F	; 15
   31794:	f8 2e       	mov	r15, r24
    while (steps--)
   31796:	01 50       	subi	r16, 0x01	; 1
   31798:	11 09       	sbc	r17, r1
   3179a:	70 f0       	brcs	.+28     	; 0x317b8 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x52>
    {
		tmc2130_do_step(axis);
   3179c:	8c 2f       	mov	r24, r28
   3179e:	0f 94 a9 24 	call	0x24952	; 0x24952 <tmc2130_do_step(unsigned char)>
   317a2:	c7 01       	movw	r24, r14
   317a4:	01 97       	sbiw	r24, 0x01	; 1
   317a6:	f1 f7       	brne	.-4      	; 0x317a4 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x3e>
   317a8:	f6 cf       	rjmp	.-20     	; 0x31796 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x30>
uint8_t tmc2130_get_dir(uint8_t axis)
{
	switch (axis)
	{
	case X_AXIS: return _GET_DIR_X;
	case Y_AXIS: return _GET_DIR_Y;
   317aa:	86 95       	lsr	r24
   317ac:	8c 27       	eor	r24, r28
   317ae:	e8 cf       	rjmp	.-48     	; 0x31780 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x1a>
	case Z_AXIS: return _GET_DIR_Z;
   317b0:	82 fb       	bst	r24, 2
   317b2:	88 27       	eor	r24, r24
   317b4:	80 f9       	bld	r24, 0
   317b6:	e5 cf       	rjmp	.-54     	; 0x31782 <tmc2130_do_steps(unsigned char, unsigned int, unsigned char, unsigned int) [clone .constprop.104]+0x1c>
    while (steps--)
    {
		tmc2130_do_step(axis);
		delayMicroseconds(delay_us);
    }
}
   317b8:	cf 91       	pop	r28
   317ba:	1f 91       	pop	r17
   317bc:	0f 91       	pop	r16
   317be:	ff 90       	pop	r15
   317c0:	ef 90       	pop	r14
   317c2:	08 95       	ret

000317c4 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]>:

void tmc2130_goto_step(uint8_t axis, uint8_t step, uint8_t dir, uint16_t delay_us, uint16_t microstep_resolution)
   317c4:	8f 92       	push	r8
   317c6:	9f 92       	push	r9
   317c8:	af 92       	push	r10
   317ca:	bf 92       	push	r11
   317cc:	cf 92       	push	r12
   317ce:	df 92       	push	r13
   317d0:	ef 92       	push	r14
   317d2:	ff 92       	push	r15
   317d4:	0f 93       	push	r16
   317d6:	1f 93       	push	r17
   317d8:	cf 93       	push	r28
   317da:	c8 2f       	mov	r28, r24
   317dc:	8a 01       	movw	r16, r20
{
	printf_P(PSTR("tmc2130_goto_step %d %d %d %d \n"), axis, step, dir, delay_us, microstep_resolution);
   317de:	c6 2e       	mov	r12, r22
   317e0:	d1 2c       	mov	r13, r1
   317e2:	1f 93       	push	r17
   317e4:	4f 93       	push	r20
   317e6:	83 e0       	ldi	r24, 0x03	; 3
   317e8:	8f 93       	push	r24
   317ea:	88 ee       	ldi	r24, 0xE8	; 232
   317ec:	8f 93       	push	r24
   317ee:	1f 92       	push	r1
   317f0:	82 e0       	ldi	r24, 0x02	; 2
   317f2:	8f 93       	push	r24
   317f4:	1f 92       	push	r1
   317f6:	6f 93       	push	r22
   317f8:	1f 92       	push	r1
   317fa:	cf 93       	push	r28
   317fc:	8e ef       	ldi	r24, 0xFE	; 254
   317fe:	95 ea       	ldi	r25, 0xA5	; 165
   31800:	9f 93       	push	r25
   31802:	8f 93       	push	r24
   31804:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   31808:	8d b7       	in	r24, 0x3d	; 61
   3180a:	9e b7       	in	r25, 0x3e	; 62
   3180c:	0c 96       	adiw	r24, 0x0c	; 12
   3180e:	0f b6       	in	r0, 0x3f	; 63
   31810:	f8 94       	cli
   31812:	9e bf       	out	0x3e, r25	; 62
   31814:	0f be       	out	0x3f, r0	; 63
   31816:	8d bf       	out	0x3d, r24	; 61
   31818:	90 e0       	ldi	r25, 0x00	; 0
   3181a:	80 e0       	ldi	r24, 0x00	; 0
	uint8_t shift; for (shift = 0; shift < 8; shift++) if (microstep_resolution == (256u >> shift)) break;
   3181c:	40 e0       	ldi	r20, 0x00	; 0
   3181e:	51 e0       	ldi	r21, 0x01	; 1
   31820:	28 2f       	mov	r18, r24
   31822:	ba 01       	movw	r22, r20
   31824:	08 2e       	mov	r0, r24
   31826:	02 c0       	rjmp	.+4      	; 0x3182c <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x68>
   31828:	76 95       	lsr	r23
   3182a:	67 95       	ror	r22
   3182c:	0a 94       	dec	r0
   3182e:	e2 f7       	brpl	.-8      	; 0x31828 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x64>
   31830:	06 17       	cp	r16, r22
   31832:	17 07       	cpc	r17, r23
   31834:	29 f0       	breq	.+10     	; 0x31840 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x7c>
   31836:	01 96       	adiw	r24, 0x01	; 1
   31838:	88 30       	cpi	r24, 0x08	; 8
   3183a:	91 05       	cpc	r25, r1
   3183c:	89 f7       	brne	.-30     	; 0x31820 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x5c>
   3183e:	28 e0       	ldi	r18, 0x08	; 8
	uint16_t cnt = 4 * (1 << (8 - shift));
   31840:	e2 2e       	mov	r14, r18
   31842:	f1 2c       	mov	r15, r1
   31844:	88 e0       	ldi	r24, 0x08	; 8
   31846:	90 e0       	ldi	r25, 0x00	; 0
   31848:	8e 19       	sub	r24, r14
   3184a:	9f 09       	sbc	r25, r15
   3184c:	24 e0       	ldi	r18, 0x04	; 4
   3184e:	30 e0       	ldi	r19, 0x00	; 0
   31850:	59 01       	movw	r10, r18
   31852:	02 c0       	rjmp	.+4      	; 0x31858 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x94>
   31854:	aa 0c       	add	r10, r10
   31856:	bb 1c       	adc	r11, r11
   31858:	8a 95       	dec	r24
   3185a:	e2 f7       	brpl	.-8      	; 0x31854 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x90>
	uint16_t mscnt = tmc2130_rd_MSCNT(axis);
   3185c:	8c 2f       	mov	r24, r28
   3185e:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
   31862:	9c 01       	movw	r18, r24
   31864:	90 e0       	ldi	r25, 0x00	; 0
   31866:	c4 30       	cpi	r28, 0x04	; 4
   31868:	28 f4       	brcc	.+10     	; 0x31874 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xb0>
   3186a:	ec 2f       	mov	r30, r28
   3186c:	f0 e0       	ldi	r31, 0x00	; 0
   3186e:	e0 5e       	subi	r30, 0xE0	; 224
   31870:	fc 4f       	sbci	r31, 0xFC	; 252
   31872:	90 81       	ld	r25, Z
	if (dir == 2)
	{
		dir = tmc2130_get_inv(axis)?0:1;
		int steps = (int)step - (int)(mscnt >> shift);
   31874:	0e 2c       	mov	r0, r14
   31876:	02 c0       	rjmp	.+4      	; 0x3187c <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xb8>
   31878:	36 95       	lsr	r19
   3187a:	27 95       	ror	r18
   3187c:	0a 94       	dec	r0
   3187e:	e2 f7       	brpl	.-8      	; 0x31878 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xb4>
   31880:	86 01       	movw	r16, r12
   31882:	02 1b       	sub	r16, r18
   31884:	13 0b       	sbc	r17, r19
		if (steps > static_cast<int>(cnt / 2))
   31886:	95 01       	movw	r18, r10
   31888:	36 95       	lsr	r19
   3188a:	27 95       	ror	r18
		{
			dir ^= 1;
   3188c:	61 e0       	ldi	r22, 0x01	; 1
	uint16_t mscnt = tmc2130_rd_MSCNT(axis);
	if (dir == 2)
	{
		dir = tmc2130_get_inv(axis)?0:1;
		int steps = (int)step - (int)(mscnt >> shift);
		if (steps > static_cast<int>(cnt / 2))
   3188e:	20 17       	cp	r18, r16
   31890:	31 07       	cpc	r19, r17
   31892:	74 f1       	brlt	.+92     	; 0x318f0 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x12c>
	uint8_t shift; for (shift = 0; shift < 8; shift++) if (microstep_resolution == (256u >> shift)) break;
	uint16_t cnt = 4 * (1 << (8 - shift));
	uint16_t mscnt = tmc2130_rd_MSCNT(axis);
	if (dir == 2)
	{
		dir = tmc2130_get_inv(axis)?0:1;
   31894:	91 11       	cpse	r25, r1
   31896:	60 e0       	ldi	r22, 0x00	; 0
		if (steps > static_cast<int>(cnt / 2))
		{
			dir ^= 1;
			steps = cnt - steps; // This can create a negative step value
		}
        if (steps < 0)
   31898:	17 ff       	sbrs	r17, 7
   3189a:	05 c0       	rjmp	.+10     	; 0x318a6 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xe2>
		{
			dir ^= 1;
   3189c:	81 e0       	ldi	r24, 0x01	; 1
   3189e:	68 27       	eor	r22, r24
			steps = -steps;
   318a0:	11 95       	neg	r17
   318a2:	01 95       	neg	r16
   318a4:	11 09       	sbc	r17, r1
		}
		cnt = steps;
	}
	tmc2130_set_dir(axis, dir);
   318a6:	8c 2f       	mov	r24, r28
   318a8:	0f 94 ba 24 	call	0x24974	; 0x24974 <tmc2130_set_dir(unsigned char, unsigned char)>
	mscnt = tmc2130_rd_MSCNT(axis);
   318ac:	8c 2f       	mov	r24, r28
   318ae:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
   318b2:	b1 2c       	mov	r11, r1
   318b4:	a1 2c       	mov	r10, r1
   318b6:	2b e9       	ldi	r18, 0x9B	; 155
   318b8:	82 2e       	mov	r8, r18
   318ba:	2f e0       	ldi	r18, 0x0F	; 15
   318bc:	92 2e       	mov	r9, r18
	while ((cnt--) && ((mscnt >> shift) != step))
   318be:	0a 15       	cp	r16, r10
   318c0:	1b 05       	cpc	r17, r11
   318c2:	f1 f0       	breq	.+60     	; 0x31900 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x13c>
   318c4:	2f ef       	ldi	r18, 0xFF	; 255
   318c6:	a2 1a       	sub	r10, r18
   318c8:	b2 0a       	sbc	r11, r18
   318ca:	0e 2c       	mov	r0, r14
   318cc:	02 c0       	rjmp	.+4      	; 0x318d2 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x10e>
   318ce:	96 95       	lsr	r25
   318d0:	87 95       	ror	r24
   318d2:	0a 94       	dec	r0
   318d4:	e2 f7       	brpl	.-8      	; 0x318ce <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x10a>
   318d6:	8c 15       	cp	r24, r12
   318d8:	9d 05       	cpc	r25, r13
   318da:	91 f0       	breq	.+36     	; 0x31900 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x13c>
	{
		tmc2130_do_step(axis);
   318dc:	8c 2f       	mov	r24, r28
   318de:	0f 94 a9 24 	call	0x24952	; 0x24952 <tmc2130_do_step(unsigned char)>
   318e2:	c4 01       	movw	r24, r8
   318e4:	01 97       	sbiw	r24, 0x01	; 1
   318e6:	f1 f7       	brne	.-4      	; 0x318e4 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x120>
		delayMicroseconds(delay_us);
		mscnt = tmc2130_rd_MSCNT(axis);
   318e8:	8c 2f       	mov	r24, r28
   318ea:	0f 94 81 25 	call	0x24b02	; 0x24b02 <tmc2130_rd_MSCNT(unsigned char)>
   318ee:	e7 cf       	rjmp	.-50     	; 0x318be <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xfa>
	{
		dir = tmc2130_get_inv(axis)?0:1;
		int steps = (int)step - (int)(mscnt >> shift);
		if (steps > static_cast<int>(cnt / 2))
		{
			dir ^= 1;
   318f0:	91 11       	cpse	r25, r1
   318f2:	01 c0       	rjmp	.+2      	; 0x318f6 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0x132>
   318f4:	60 e0       	ldi	r22, 0x00	; 0
			steps = cnt - steps; // This can create a negative step value
   318f6:	c5 01       	movw	r24, r10
   318f8:	80 1b       	sub	r24, r16
   318fa:	91 0b       	sbc	r25, r17
   318fc:	8c 01       	movw	r16, r24
   318fe:	cc cf       	rjmp	.-104    	; 0x31898 <tmc2130_goto_step(unsigned char, unsigned char, unsigned char, unsigned int, unsigned int) [clone .constprop.103]+0xd4>
	{
		tmc2130_do_step(axis);
		delayMicroseconds(delay_us);
		mscnt = tmc2130_rd_MSCNT(axis);
	}
}
   31900:	cf 91       	pop	r28
   31902:	1f 91       	pop	r17
   31904:	0f 91       	pop	r16
   31906:	ff 90       	pop	r15
   31908:	ef 90       	pop	r14
   3190a:	df 90       	pop	r13
   3190c:	cf 90       	pop	r12
   3190e:	bf 90       	pop	r11
   31910:	af 90       	pop	r10
   31912:	9f 90       	pop	r9
   31914:	8f 90       	pop	r8
   31916:	08 95       	ret

00031918 <mesh_bed_leveling::reset() [clone .constprop.100]>:
#ifdef MESH_BED_LEVELING

mesh_bed_leveling mbl;

void mesh_bed_leveling::reset() {
    active = 0;
   31918:	10 92 c2 13 	sts	0x13C2, r1	; 0x8013c2 <mbl>
    memset(z_values, 0, sizeof(z_values));
   3191c:	e3 ec       	ldi	r30, 0xC3	; 195
   3191e:	f3 e1       	ldi	r31, 0x13	; 19
   31920:	84 ec       	ldi	r24, 0xC4	; 196
   31922:	df 01       	movw	r26, r30
   31924:	1d 92       	st	X+, r1
   31926:	8a 95       	dec	r24
   31928:	e9 f7       	brne	.-6      	; 0x31924 <mesh_bed_leveling::reset() [clone .constprop.100]+0xc>
}
   3192a:	08 95       	ret

0003192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>:
      plan_set_z_position(current_position[Z_AXIS]);
}

// At the current position, find the Z stop.

bool find_bed_induction_sensor_point_z(float minimum_z, uint8_t n_iter, int
   3192c:	2f 92       	push	r2
   3192e:	3f 92       	push	r3
   31930:	4f 92       	push	r4
   31932:	5f 92       	push	r5
   31934:	6f 92       	push	r6
   31936:	7f 92       	push	r7
   31938:	8f 92       	push	r8
   3193a:	9f 92       	push	r9
   3193c:	af 92       	push	r10
   3193e:	bf 92       	push	r11
   31940:	cf 92       	push	r12
   31942:	df 92       	push	r13
   31944:	ef 92       	push	r14
   31946:	ff 92       	push	r15
   31948:	0f 93       	push	r16
   3194a:	1f 93       	push	r17
   3194c:	cf 93       	push	r28
   3194e:	df 93       	push	r29
   31950:	00 d0       	rcall	.+0      	; 0x31952 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x26>
   31952:	1f 92       	push	r1
   31954:	cd b7       	in	r28, 0x3d	; 61
   31956:	de b7       	in	r29, 0x3e	; 62
   31958:	4b 01       	movw	r8, r22
   3195a:	5c 01       	movw	r10, r24
   3195c:	04 2f       	mov	r16, r20
    verbosity_level
#endif //SUPPORT_VERBOSITY
        )
{
	bool high_deviation_occured = false;
    bedPWMDisabled = 1;
   3195e:	81 e0       	ldi	r24, 0x01	; 1
   31960:	80 93 8d 06 	sts	0x068D, r24	; 0x80068d <bedPWMDisabled>
#ifdef TMC2130
    bool bHighPowerForced = false;
	if (tmc2130_mode == TMC2130_MODE_SILENT)
   31964:	80 91 8c 06 	lds	r24, 0x068C	; 0x80068c <tmc2130_mode>
        )
{
	bool high_deviation_occured = false;
    bedPWMDisabled = 1;
#ifdef TMC2130
    bool bHighPowerForced = false;
   31968:	10 e0       	ldi	r17, 0x00	; 0
	if (tmc2130_mode == TMC2130_MODE_SILENT)
   3196a:	81 30       	cpi	r24, 0x01	; 1
   3196c:	19 f4       	brne	.+6      	; 0x31974 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x48>
    {
        FORCE_HIGH_POWER_START;
   3196e:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
        bHighPowerForced = true;
   31972:	11 e0       	ldi	r17, 0x01	; 1
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
   31974:	20 91 b7 02 	lds	r18, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
   31978:	2a 83       	std	Y+2, r18	; 0x02
  check_endstops = check;
   3197a:	81 e0       	ldi	r24, 0x01	; 1
   3197c:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	//printf_P(PSTR("Min. Z: %f\n"), minimum_z);
	#ifdef SUPPORT_VERBOSITY
    if(verbosity_level >= 10) SERIAL_ECHOLNPGM("find bed induction sensor point z");
	#endif // SUPPORT_VERBOSITY
	bool endstops_enabled  = enable_endstops(true);
    bool endstop_z_enabled = enable_z_endstop(false);
   31980:	80 e0       	ldi	r24, 0x00	; 0
   31982:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
   31986:	89 83       	std	Y+1, r24	; 0x01
    float z = 0.f;
    endstop_z_hit_on_purpose();
   31988:	0f 94 fc 4e 	call	0x29df8	; 0x29df8 <endstop_z_hit_on_purpose()>

    // move down until you find the bed
    current_position[Z_AXIS] = minimum_z;
   3198c:	80 92 9a 06 	sts	0x069A, r8	; 0x80069a <current_position+0x8>
   31990:	90 92 9b 06 	sts	0x069B, r9	; 0x80069b <current_position+0x9>
   31994:	a0 92 9c 06 	sts	0x069C, r10	; 0x80069c <current_position+0xa>
   31998:	b0 92 9d 06 	sts	0x069D, r11	; 0x80069d <current_position+0xb>
    go_to_current(homing_feedrate[Z_AXIS]/60);
   3199c:	65 e5       	ldi	r22, 0x55	; 85
   3199e:	75 e5       	ldi	r23, 0x55	; 85
   319a0:	85 e5       	ldi	r24, 0x55	; 85
   319a2:	91 e4       	ldi	r25, 0x41	; 65
   319a4:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
    // we have to let the planner know where we are right now as it is not where we said to go.
    update_current_position_z();
   319a8:	0f 94 69 cc 	call	0x398d2	; 0x398d2 <update_current_position_z() [clone .lto_priv.389]>
    if (! endstop_z_hit_on_purpose())
   319ac:	0f 94 fc 4e 	call	0x29df8	; 0x29df8 <endstop_z_hit_on_purpose()>
   319b0:	8c 83       	std	Y+4, r24	; 0x04
   319b2:	88 23       	and	r24, r24
   319b4:	09 f4       	brne	.+2      	; 0x319b8 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x8c>
   319b6:	f9 c0       	rjmp	.+498    	; 0x31baa <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x27e>
	{
		//printf_P(PSTR("endstop not hit 1, current_pos[Z]: %f \n"), current_position[Z_AXIS]);
		goto error;
	}
#ifdef TMC2130
	if (!READ(Z_TMC2130_DIAG))
   319b8:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   319bc:	86 ff       	sbrs	r24, 6
   319be:	f5 c0       	rjmp	.+490    	; 0x31baa <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x27e>
	{
		//printf_P(PSTR("crash detected 1, current_pos[Z]: %f \n"), current_position[Z_AXIS]);
		goto error; //crash Z detected
	}
#endif //TMC2130
    for (uint8_t i = 0; i < n_iter; ++ i)
   319c0:	1b 82       	std	Y+3, r1	; 0x03
	#ifdef SUPPORT_VERBOSITY
    if(verbosity_level >= 10) SERIAL_ECHOLNPGM("find bed induction sensor point z");
	#endif // SUPPORT_VERBOSITY
	bool endstops_enabled  = enable_endstops(true);
    bool endstop_z_enabled = enable_z_endstop(false);
    float z = 0.f;
   319c2:	c1 2c       	mov	r12, r1
   319c4:	d1 2c       	mov	r13, r1
   319c6:	76 01       	movw	r14, r12
#ifdef SUPPORT_VERBOSITY
    verbosity_level
#endif //SUPPORT_VERBOSITY
        )
{
	bool high_deviation_occured = false;
   319c8:	31 2c       	mov	r3, r1
	{
		//printf_P(PSTR("crash detected 1, current_pos[Z]: %f \n"), current_position[Z_AXIS]);
		goto error; //crash Z detected
	}
#endif //TMC2130
    for (uint8_t i = 0; i < n_iter; ++ i)
   319ca:	8b 81       	ldd	r24, Y+3	; 0x03
   319cc:	80 17       	cp	r24, r16
   319ce:	08 f0       	brcs	.+2      	; 0x319d2 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0xa6>
   319d0:	a8 c0       	rjmp	.+336    	; 0x31b22 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x1f6>
	{

		current_position[Z_AXIS] += high_deviation_occured ? 0.5 : 0.2;
   319d2:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   319d6:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   319da:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   319de:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   319e2:	20 e0       	ldi	r18, 0x00	; 0
   319e4:	30 e0       	ldi	r19, 0x00	; 0
   319e6:	40 e0       	ldi	r20, 0x00	; 0
   319e8:	5f e3       	ldi	r21, 0x3F	; 63
   319ea:	31 10       	cpse	r3, r1
   319ec:	04 c0       	rjmp	.+8      	; 0x319f6 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0xca>
   319ee:	2d ec       	ldi	r18, 0xCD	; 205
   319f0:	3c ec       	ldi	r19, 0xCC	; 204
   319f2:	4c e4       	ldi	r20, 0x4C	; 76
   319f4:	5e e3       	ldi	r21, 0x3E	; 62
   319f6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   319fa:	2b 01       	movw	r4, r22
   319fc:	3c 01       	movw	r6, r24
   319fe:	40 92 9a 06 	sts	0x069A, r4	; 0x80069a <current_position+0x8>
   31a02:	50 92 9b 06 	sts	0x069B, r5	; 0x80069b <current_position+0x9>
   31a06:	60 92 9c 06 	sts	0x069C, r6	; 0x80069c <current_position+0xa>
   31a0a:	70 92 9d 06 	sts	0x069D, r7	; 0x80069d <current_position+0xb>
		float z_bckp = current_position[Z_AXIS];
		go_to_current(homing_feedrate[Z_AXIS]/60);
   31a0e:	65 e5       	ldi	r22, 0x55	; 85
   31a10:	75 e5       	ldi	r23, 0x55	; 85
   31a12:	85 e5       	ldi	r24, 0x55	; 85
   31a14:	91 e4       	ldi	r25, 0x41	; 65
   31a16:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
		// Move back down slowly to find bed.
        current_position[Z_AXIS] = minimum_z;
   31a1a:	80 92 9a 06 	sts	0x069A, r8	; 0x80069a <current_position+0x8>
   31a1e:	90 92 9b 06 	sts	0x069B, r9	; 0x80069b <current_position+0x9>
   31a22:	a0 92 9c 06 	sts	0x069C, r10	; 0x80069c <current_position+0xa>
   31a26:	b0 92 9d 06 	sts	0x069D, r11	; 0x80069d <current_position+0xb>
		//printf_P(PSTR("init Z = %f, min_z = %f, i = %d\n"), z_bckp, minimum_z, i);
        go_to_current(homing_feedrate[Z_AXIS]/(4*60));
   31a2a:	65 e5       	ldi	r22, 0x55	; 85
   31a2c:	75 e5       	ldi	r23, 0x55	; 85
   31a2e:	85 e5       	ldi	r24, 0x55	; 85
   31a30:	90 e4       	ldi	r25, 0x40	; 64
   31a32:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
        // we have to let the planner know where we are right now as it is not where we said to go.
        update_current_position_z();
   31a36:	0f 94 69 cc 	call	0x398d2	; 0x398d2 <update_current_position_z() [clone .lto_priv.389]>
		//printf_P(PSTR("Zs: %f, Z: %f, delta Z: %f"), z_bckp, current_position[Z_AXIS], (z_bckp - current_position[Z_AXIS]));
		if (fabs(current_position[Z_AXIS] - z_bckp) < 0.025) {
   31a3a:	a3 01       	movw	r20, r6
   31a3c:	92 01       	movw	r18, r4
   31a3e:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   31a42:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   31a46:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   31a4a:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   31a4e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   31a52:	9f 77       	andi	r25, 0x7F	; 127
   31a54:	2d ec       	ldi	r18, 0xCD	; 205
   31a56:	3c ec       	ldi	r19, 0xCC	; 204
   31a58:	4c ec       	ldi	r20, 0xCC	; 204
   31a5a:	5c e3       	ldi	r21, 0x3C	; 60
   31a5c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   31a60:	87 ff       	sbrs	r24, 7
   31a62:	16 c0       	rjmp	.+44     	; 0x31a90 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x164>
			//printf_P(PSTR("PINDA triggered immediately, move Z higher and repeat measurement\n"));
			raise_z(0.5);
   31a64:	60 e0       	ldi	r22, 0x00	; 0
   31a66:	70 e0       	ldi	r23, 0x00	; 0
   31a68:	80 e0       	ldi	r24, 0x00	; 0
   31a6a:	9f e3       	ldi	r25, 0x3F	; 63
   31a6c:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>
			current_position[Z_AXIS] = minimum_z;
   31a70:	80 92 9a 06 	sts	0x069A, r8	; 0x80069a <current_position+0x8>
   31a74:	90 92 9b 06 	sts	0x069B, r9	; 0x80069b <current_position+0x9>
   31a78:	a0 92 9c 06 	sts	0x069C, r10	; 0x80069c <current_position+0xa>
   31a7c:	b0 92 9d 06 	sts	0x069D, r11	; 0x80069d <current_position+0xb>
            go_to_current(homing_feedrate[Z_AXIS]/(4*60));
   31a80:	65 e5       	ldi	r22, 0x55	; 85
   31a82:	75 e5       	ldi	r23, 0x55	; 85
   31a84:	85 e5       	ldi	r24, 0x55	; 85
   31a86:	90 e4       	ldi	r25, 0x40	; 64
   31a88:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
            // we have to let the planner know where we are right now as it is not where we said to go.
			update_current_position_z();
   31a8c:	0f 94 69 cc 	call	0x398d2	; 0x398d2 <update_current_position_z() [clone .lto_priv.389]>
		}



		if (!endstop_z_hit_on_purpose())
   31a90:	0f 94 fc 4e 	call	0x29df8	; 0x29df8 <endstop_z_hit_on_purpose()>
   31a94:	28 2e       	mov	r2, r24
   31a96:	88 23       	and	r24, r24
   31a98:	09 f4       	brne	.+2      	; 0x31a9c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x170>
   31a9a:	87 c0       	rjmp	.+270    	; 0x31baa <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x27e>
		{
			//printf_P(PSTR("i = %d, endstop not hit 2, current_pos[Z]: %f \n"), i, current_position[Z_AXIS]);
			goto error;
		}
#ifdef TMC2130
		if (!READ(Z_TMC2130_DIAG)) {
   31a9c:	80 91 06 01 	lds	r24, 0x0106	; 0x800106 <__TEXT_REGION_LENGTH__+0x7c2106>
   31aa0:	86 ff       	sbrs	r24, 6
   31aa2:	83 c0       	rjmp	.+262    	; 0x31baa <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x27e>
   31aa4:	40 90 9a 06 	lds	r4, 0x069A	; 0x80069a <current_position+0x8>
   31aa8:	50 90 9b 06 	lds	r5, 0x069B	; 0x80069b <current_position+0x9>
   31aac:	60 90 9c 06 	lds	r6, 0x069C	; 0x80069c <current_position+0xa>
   31ab0:	70 90 9d 06 	lds	r7, 0x069D	; 0x80069d <current_position+0xb>
		}
#endif //TMC2130
//        SERIAL_ECHOPGM("Bed find_bed_induction_sensor_point_z low, height: ");
//        MYSERIAL.print(current_position[Z_AXIS], 5);
//        SERIAL_ECHOLNPGM("");
		float dz = i?fabs(current_position[Z_AXIS] - (z / i)):0;
   31ab4:	2b 81       	ldd	r18, Y+3	; 0x03
   31ab6:	22 23       	and	r18, r18
   31ab8:	d9 f0       	breq	.+54     	; 0x31af0 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x1c4>
   31aba:	62 2f       	mov	r22, r18
   31abc:	70 e0       	ldi	r23, 0x00	; 0
   31abe:	90 e0       	ldi	r25, 0x00	; 0
   31ac0:	80 e0       	ldi	r24, 0x00	; 0
   31ac2:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   31ac6:	9b 01       	movw	r18, r22
   31ac8:	ac 01       	movw	r20, r24
   31aca:	c7 01       	movw	r24, r14
   31acc:	b6 01       	movw	r22, r12
   31ace:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   31ad2:	9b 01       	movw	r18, r22
   31ad4:	ac 01       	movw	r20, r24
   31ad6:	c3 01       	movw	r24, r6
   31ad8:	b2 01       	movw	r22, r4
   31ada:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   31ade:	9f 77       	andi	r25, 0x7F	; 127
        z += current_position[Z_AXIS];
		//printf_P(PSTR("Z[%d] = %d, dz=%d\n"), i, (int)(current_position[Z_AXIS] * 1000), (int)(dz * 1000));
		//printf_P(PSTR("Z- measurement deviation from avg value %f um\n"), dz);
		if (dz > 0.05) { //deviation > 50um
   31ae0:	2d ec       	ldi	r18, 0xCD	; 205
   31ae2:	3c ec       	ldi	r19, 0xCC	; 204
   31ae4:	4c e4       	ldi	r20, 0x4C	; 76
   31ae6:	5d e3       	ldi	r21, 0x3D	; 61
   31ae8:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   31aec:	18 16       	cp	r1, r24
   31aee:	64 f0       	brlt	.+24     	; 0x31b08 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x1dc>
#endif //TMC2130
//        SERIAL_ECHOPGM("Bed find_bed_induction_sensor_point_z low, height: ");
//        MYSERIAL.print(current_position[Z_AXIS], 5);
//        SERIAL_ECHOLNPGM("");
		float dz = i?fabs(current_position[Z_AXIS] - (z / i)):0;
        z += current_position[Z_AXIS];
   31af0:	a3 01       	movw	r20, r6
   31af2:	92 01       	movw	r18, r4
   31af4:	c7 01       	movw	r24, r14
   31af6:	b6 01       	movw	r22, r12
   31af8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   31afc:	6b 01       	movw	r12, r22
   31afe:	7c 01       	movw	r14, r24
	{
		//printf_P(PSTR("crash detected 1, current_pos[Z]: %f \n"), current_position[Z_AXIS]);
		goto error; //crash Z detected
	}
#endif //TMC2130
    for (uint8_t i = 0; i < n_iter; ++ i)
   31b00:	2b 81       	ldd	r18, Y+3	; 0x03
   31b02:	2f 5f       	subi	r18, 0xFF	; 255
   31b04:	2b 83       	std	Y+3, r18	; 0x03
   31b06:	61 cf       	rjmp	.-318    	; 0x319ca <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x9e>
		float dz = i?fabs(current_position[Z_AXIS] - (z / i)):0;
        z += current_position[Z_AXIS];
		//printf_P(PSTR("Z[%d] = %d, dz=%d\n"), i, (int)(current_position[Z_AXIS] * 1000), (int)(dz * 1000));
		//printf_P(PSTR("Z- measurement deviation from avg value %f um\n"), dz);
		if (dz > 0.05) { //deviation > 50um
			if (high_deviation_occured == false) { //first occurence may be caused in some cases by mechanic resonance probably especially if printer is placed on unstable surface
   31b08:	31 10       	cpse	r3, r1
   31b0a:	4f c0       	rjmp	.+158    	; 0x31baa <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x27e>
				//printf_P(PSTR("high dev. first occurence\n"));
				delay_keep_alive(500); //damping
   31b0c:	84 ef       	ldi	r24, 0xF4	; 244
   31b0e:	91 e0       	ldi	r25, 0x01	; 1
   31b10:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
				//start measurement from the begining, but this time with higher movements in Z axis which should help to reduce mechanical resonance
				high_deviation_occured = true;
   31b14:	32 2c       	mov	r3, r2
				i = -1;
   31b16:	8f ef       	ldi	r24, 0xFF	; 255
   31b18:	8b 83       	std	Y+3, r24	; 0x03
				z = 0;
   31b1a:	c1 2c       	mov	r12, r1
   31b1c:	d1 2c       	mov	r13, r1
   31b1e:	76 01       	movw	r14, r12
   31b20:	ef cf       	rjmp	.-34     	; 0x31b00 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x1d4>
			}
		}
		//printf_P(PSTR("PINDA triggered at %f\n"), current_position[Z_AXIS]);
    }
    current_position[Z_AXIS] = z;
    if (n_iter > 1)
   31b22:	02 30       	cpi	r16, 0x02	; 2
   31b24:	68 f5       	brcc	.+90     	; 0x31b80 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x254>
				goto error;
			}
		}
		//printf_P(PSTR("PINDA triggered at %f\n"), current_position[Z_AXIS]);
    }
    current_position[Z_AXIS] = z;
   31b26:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   31b2a:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   31b2e:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   31b32:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
   31b36:	8a 81       	ldd	r24, Y+2	; 0x02
   31b38:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    if (n_iter > 1)
        current_position[Z_AXIS] /= float(n_iter);


    enable_endstops(endstops_enabled);
    enable_z_endstop(endstop_z_enabled);
   31b3c:	89 81       	ldd	r24, Y+1	; 0x01
   31b3e:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
//    SERIAL_ECHOLNPGM("find_bed_induction_sensor_point_z 3");
#ifdef TMC2130
    if (bHighPowerForced) FORCE_HIGH_POWER_END;
   31b42:	11 23       	and	r17, r17
   31b44:	19 f0       	breq	.+6      	; 0x31b4c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x220>
   31b46:	80 e0       	ldi	r24, 0x00	; 0
   31b48:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
#endif
    bedPWMDisabled = 0;
   31b4c:	10 92 8d 06 	sts	0x068D, r1	; 0x80068d <bedPWMDisabled>
#ifdef TMC2130
	if (bHighPowerForced) FORCE_HIGH_POWER_END;
#endif
    bedPWMDisabled = 0;
	return false;
}
   31b50:	8c 81       	ldd	r24, Y+4	; 0x04
   31b52:	0f 90       	pop	r0
   31b54:	0f 90       	pop	r0
   31b56:	0f 90       	pop	r0
   31b58:	0f 90       	pop	r0
   31b5a:	df 91       	pop	r29
   31b5c:	cf 91       	pop	r28
   31b5e:	1f 91       	pop	r17
   31b60:	0f 91       	pop	r16
   31b62:	ff 90       	pop	r15
   31b64:	ef 90       	pop	r14
   31b66:	df 90       	pop	r13
   31b68:	cf 90       	pop	r12
   31b6a:	bf 90       	pop	r11
   31b6c:	af 90       	pop	r10
   31b6e:	9f 90       	pop	r9
   31b70:	8f 90       	pop	r8
   31b72:	7f 90       	pop	r7
   31b74:	6f 90       	pop	r6
   31b76:	5f 90       	pop	r5
   31b78:	4f 90       	pop	r4
   31b7a:	3f 90       	pop	r3
   31b7c:	2f 90       	pop	r2
   31b7e:	08 95       	ret
		}
		//printf_P(PSTR("PINDA triggered at %f\n"), current_position[Z_AXIS]);
    }
    current_position[Z_AXIS] = z;
    if (n_iter > 1)
        current_position[Z_AXIS] /= float(n_iter);
   31b80:	60 2f       	mov	r22, r16
   31b82:	70 e0       	ldi	r23, 0x00	; 0
   31b84:	90 e0       	ldi	r25, 0x00	; 0
   31b86:	80 e0       	ldi	r24, 0x00	; 0
   31b88:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   31b8c:	9b 01       	movw	r18, r22
   31b8e:	ac 01       	movw	r20, r24
   31b90:	c7 01       	movw	r24, r14
   31b92:	b6 01       	movw	r22, r12
   31b94:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   31b98:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   31b9c:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   31ba0:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   31ba4:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
   31ba8:	c6 cf       	rjmp	.-116    	; 0x31b36 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x20a>
   31baa:	2a 81       	ldd	r18, Y+2	; 0x02
   31bac:	20 93 b7 02 	sts	0x02B7, r18	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	return true;

error:
//    SERIAL_ECHOLNPGM("find_bed_induction_sensor_point_z 4");
    enable_endstops(endstops_enabled);
    enable_z_endstop(endstop_z_enabled);
   31bb0:	89 81       	ldd	r24, Y+1	; 0x01
   31bb2:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
#ifdef TMC2130
	if (bHighPowerForced) FORCE_HIGH_POWER_END;
   31bb6:	11 23       	and	r17, r17
   31bb8:	19 f0       	breq	.+6      	; 0x31bc0 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x294>
   31bba:	80 e0       	ldi	r24, 0x00	; 0
   31bbc:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
#endif
    bedPWMDisabled = 0;
   31bc0:	10 92 8d 06 	sts	0x068D, r1	; 0x80068d <bedPWMDisabled>
	return false;
   31bc4:	1c 82       	std	Y+4, r1	; 0x04
   31bc6:	c4 cf       	rjmp	.-120    	; 0x31b50 <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]+0x224>

00031bc8 <gcode_M45(bool, signed char) [clone .constprop.76]>:
//! @brief Calibrate XYZ
//! @param onlyZ if true, calibrate only Z axis
//! @param verbosity_level
//! @retval true Succeeded
//! @retval false Failed
bool gcode_M45(bool onlyZ, int8_t verbosity_level)
   31bc8:	2f 92       	push	r2
   31bca:	3f 92       	push	r3
   31bcc:	4f 92       	push	r4
   31bce:	5f 92       	push	r5
   31bd0:	6f 92       	push	r6
   31bd2:	7f 92       	push	r7
   31bd4:	8f 92       	push	r8
   31bd6:	9f 92       	push	r9
   31bd8:	af 92       	push	r10
   31bda:	bf 92       	push	r11
   31bdc:	cf 92       	push	r12
   31bde:	df 92       	push	r13
   31be0:	ef 92       	push	r14
   31be2:	ff 92       	push	r15
   31be4:	0f 93       	push	r16
   31be6:	1f 93       	push	r17
   31be8:	cf 93       	push	r28
   31bea:	df 93       	push	r29
   31bec:	cd b7       	in	r28, 0x3d	; 61
   31bee:	de b7       	in	r29, 0x3e	; 62
   31bf0:	ce 5c       	subi	r28, 0xCE	; 206
   31bf2:	d1 09       	sbc	r29, r1
   31bf4:	0f b6       	in	r0, 0x3f	; 63
   31bf6:	f8 94       	cli
   31bf8:	de bf       	out	0x3e, r29	; 62
   31bfa:	0f be       	out	0x3f, r0	; 63
   31bfc:	cd bf       	out	0x3d, r28	; 61
   31bfe:	18 2f       	mov	r17, r24
{
	bool final_result = false;
	#ifdef TMC2130
	FORCE_HIGH_POWER_START;
   31c00:	81 e0       	ldi	r24, 0x01	; 1
   31c02:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
	#endif // TMC2130

    FORCE_BL_ON_START;
   31c06:	81 e0       	ldi	r24, 0x01	; 1
   31c08:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

    // Only Z calibration?
	if (!onlyZ)
   31c0c:	11 11       	cpse	r17, r1
   31c0e:	04 c0       	rjmp	.+8      	; 0x31c18 <gcode_M45(bool, signed char) [clone .constprop.76]+0x50>
	{
		disable_heater();
   31c10:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
		eeprom_adjust_bed_reset(); //reset bed level correction
   31c14:	0e 94 1f 76 	call	0xec3e	; 0xec3e <eeprom_adjust_bed_reset()>
	}

	// Disable the default update procedure of the display. We will do a modal dialog.
	lcd_update_enable(false);
   31c18:	80 e0       	ldi	r24, 0x00	; 0
   31c1a:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
	// Let the planner use the uncorrected coordinates.
	mbl.reset();
   31c1e:	0f 94 8c 8c 	call	0x31918	; 0x31918 <mesh_bed_leveling::reset() [clone .constprop.100]>
	// Reset world2machine_rotation_and_skew and world2machine_shift, therefore
	// the planner will not perform any adjustments in the XY plane.
	// Wait for the motors to stop and update the current position with the absolute values.
	world2machine_revert_to_uncorrected();
   31c22:	0f 94 75 ce 	call	0x39cea	; 0x39cea <world2machine_revert_to_uncorrected()>
      babystepLoadZ = 0;
}

void babystep_reset()
{
	babystepLoadZ = 0;
   31c26:	10 92 8b 06 	sts	0x068B, r1	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   31c2a:	10 92 8a 06 	sts	0x068A, r1	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
	// Reset the baby step value applied without moving the axes.
	babystep_reset();
	// Mark all axes as in a need for homing.
	memset(axis_known_position, 0, sizeof(axis_known_position));
   31c2e:	ef e8       	ldi	r30, 0x8F	; 143
   31c30:	f6 e0       	ldi	r31, 0x06	; 6
   31c32:	83 e0       	ldi	r24, 0x03	; 3
   31c34:	df 01       	movw	r26, r30
   31c36:	1d 92       	st	X+, r1
   31c38:	8a 95       	dec	r24
   31c3a:	e9 f7       	brne	.-6      	; 0x31c36 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6e>

	// Home in the XY plane.
	//set_destination_to_current();
	int l_feedmultiply = setup_for_endstop_move();
   31c3c:	81 e0       	ldi	r24, 0x01	; 1
   31c3e:	0e 94 6f 66 	call	0xccde	; 0xccde <setup_for_endstop_move(bool) [clone .lto_priv.392]>
   31c42:	c7 55       	subi	r28, 0x57	; 87
   31c44:	df 4f       	sbci	r29, 0xFF	; 255
   31c46:	99 83       	std	Y+1, r25	; 0x01
   31c48:	88 83       	st	Y, r24
   31c4a:	c9 5a       	subi	r28, 0xA9	; 169
   31c4c:	d0 40       	sbci	r29, 0x00	; 0
	lcd_display_message_fullscreen_P(_T(MSG_AUTO_HOME));
   31c4e:	89 e4       	ldi	r24, 0x49	; 73
   31c50:	9b e5       	ldi	r25, 0x5B	; 91
   31c52:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31c56:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
  raise_z_above(MESH_HOME_Z_SEARCH);
   31c5a:	60 e0       	ldi	r22, 0x00	; 0
   31c5c:	70 e0       	ldi	r23, 0x00	; 0
   31c5e:	80 ea       	ldi	r24, 0xA0	; 160
   31c60:	90 e4       	ldi	r25, 0x40	; 64
   31c62:	0e 94 e7 6d 	call	0xdbce	; 0xdbce <raise_z_above(float)>
}

/**/
void home_xy()
{
    set_destination_to_current();
   31c66:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
    homeaxis(X_AXIS);
   31c6a:	50 e0       	ldi	r21, 0x00	; 0
   31c6c:	40 e0       	ldi	r20, 0x00	; 0
   31c6e:	61 e0       	ldi	r22, 0x01	; 1
   31c70:	80 e0       	ldi	r24, 0x00	; 0
   31c72:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
    homeaxis(Y_AXIS);
   31c76:	50 e0       	ldi	r21, 0x00	; 0
   31c78:	40 e0       	ldi	r20, 0x00	; 0
   31c7a:	61 e0       	ldi	r22, 0x01	; 1
   31c7c:	81 e0       	ldi	r24, 0x01	; 1
   31c7e:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
    plan_set_position_curposXYZE();
   31c82:	0f 94 48 bf 	call	0x37e90	; 0x37e90 <plan_set_position_curposXYZE()>
    endstops_hit_on_purpose();
   31c86:	0f 94 0a 4f 	call	0x29e14	; 0x29e14 <endstops_hit_on_purpose()>
   31c8a:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
	lcd_display_message_fullscreen_P(_T(MSG_AUTO_HOME));
  raise_z_above(MESH_HOME_Z_SEARCH);
	home_xy();

	enable_endstops(false);
	current_position[X_AXIS] += 5;
   31c8e:	20 e0       	ldi	r18, 0x00	; 0
   31c90:	30 e0       	ldi	r19, 0x00	; 0
   31c92:	40 ea       	ldi	r20, 0xA0	; 160
   31c94:	50 e4       	ldi	r21, 0x40	; 64
   31c96:	60 91 92 06 	lds	r22, 0x0692	; 0x800692 <current_position>
   31c9a:	70 91 93 06 	lds	r23, 0x0693	; 0x800693 <current_position+0x1>
   31c9e:	80 91 94 06 	lds	r24, 0x0694	; 0x800694 <current_position+0x2>
   31ca2:	90 91 95 06 	lds	r25, 0x0695	; 0x800695 <current_position+0x3>
   31ca6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   31caa:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   31cae:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   31cb2:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   31cb6:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
	current_position[Y_AXIS] += 5;
   31cba:	20 e0       	ldi	r18, 0x00	; 0
   31cbc:	30 e0       	ldi	r19, 0x00	; 0
   31cbe:	40 ea       	ldi	r20, 0xA0	; 160
   31cc0:	50 e4       	ldi	r21, 0x40	; 64
   31cc2:	60 91 96 06 	lds	r22, 0x0696	; 0x800696 <current_position+0x4>
   31cc6:	70 91 97 06 	lds	r23, 0x0697	; 0x800697 <current_position+0x5>
   31cca:	80 91 98 06 	lds	r24, 0x0698	; 0x800698 <current_position+0x6>
   31cce:	90 91 99 06 	lds	r25, 0x0699	; 0x800699 <current_position+0x7>
   31cd2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   31cd6:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   31cda:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   31cde:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   31ce2:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
	plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 40);
   31ce6:	60 e0       	ldi	r22, 0x00	; 0
   31ce8:	70 e0       	ldi	r23, 0x00	; 0
   31cea:	80 ea       	ldi	r24, 0xA0	; 160
   31cec:	91 e4       	ldi	r25, 0x41	; 65
   31cee:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
	st_synchronize();
   31cf2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	// Let the user move the Z axes up to the end stoppers.
#ifdef TMC2130
	if (calibrate_z_auto())
   31cf6:	0e 94 c5 72 	call	0xe58a	; 0xe58a <calibrate_z_auto()>
   31cfa:	e5 96       	adiw	r28, 0x35	; 53
   31cfc:	8f af       	std	Y+63, r24	; 0x3f
   31cfe:	e5 97       	sbiw	r28, 0x35	; 53
   31d00:	81 11       	cpse	r24, r1
   31d02:	04 c0       	rjmp	.+8      	; 0x31d0c <gcode_M45(bool, signed char) [clone .constprop.76]+0x144>
//! @param verbosity_level
//! @retval true Succeeded
//! @retval false Failed
bool gcode_M45(bool onlyZ, int8_t verbosity_level)
{
	bool final_result = false;
   31d04:	e5 96       	adiw	r28, 0x35	; 53
   31d06:	1f ae       	std	Y+63, r1	; 0x3f
   31d08:	e5 97       	sbiw	r28, 0x35	; 53
   31d0a:	74 c4       	rjmp	.+2280   	; 0x325f4 <gcode_M45(bool, signed char) [clone .constprop.76]+0xa2c>
	{
#else //TMC2130
	if (lcd_calibrate_z_end_stop_manual(onlyZ))
	{
#endif //TMC2130
		lcd_show_fullscreen_message_and_wait_P(_T(MSG_CONFIRM_NOZZLE_CLEAN));
   31d0c:	8d e0       	ldi	r24, 0x0D	; 13
   31d0e:	9b e5       	ldi	r25, 0x5B	; 91
   31d10:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31d14:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
		if(onlyZ){
   31d18:	11 23       	and	r17, r17
   31d1a:	09 f4       	brne	.+2      	; 0x31d1e <gcode_M45(bool, signed char) [clone .constprop.76]+0x156>
   31d1c:	46 c4       	rjmp	.+2188   	; 0x325aa <gcode_M45(bool, signed char) [clone .constprop.76]+0x9e2>
			prompt_steel_sheet_on_bed(true);
   31d1e:	81 e0       	ldi	r24, 0x01	; 1
   31d20:	0f 94 a5 0d 	call	0x21b4a	; 0x21b4a <prompt_steel_sheet_on_bed(bool)>
			lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
   31d24:	8b ed       	ldi	r24, 0xDB	; 219
   31d26:	9a e5       	ldi	r25, 0x5A	; 90
   31d28:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31d2c:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
			lcd_puts_at_P(0,3,_n("1/9"));
   31d30:	4b ec       	ldi	r20, 0xCB	; 203
   31d32:	5f e6       	ldi	r21, 0x6F	; 111
		}else{
			//lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
			lcd_puts_at_P(0,3,_n("1/4"));
   31d34:	63 e0       	ldi	r22, 0x03	; 3
   31d36:	80 e0       	ldi	r24, 0x00	; 0
   31d38:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		}

		refresh_cmd_timeout();
   31d3c:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
		if (((degHotend(0) > MAX_HOTEND_TEMP_CALIBRATION) || (degBed() > MAX_BED_TEMP_CALIBRATION)) && (!onlyZ))
		{
			lcd_wait_for_cool_down();
		}
		#endif //STEEL_SHEET
		if(!onlyZ)
   31d40:	11 11       	cpse	r17, r1
   31d42:	1b c0       	rjmp	.+54     	; 0x31d7a <gcode_M45(bool, signed char) [clone .constprop.76]+0x1b2>
		{
			KEEPALIVE_STATE(PAUSED_FOR_USER);
   31d44:	84 e0       	ldi	r24, 0x04	; 4
   31d46:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
			prompt_steel_sheet_on_bed(false);
   31d4a:	80 e0       	ldi	r24, 0x00	; 0
   31d4c:	0f 94 a5 0d 	call	0x21b4a	; 0x21b4a <prompt_steel_sheet_on_bed(bool)>
			lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
   31d50:	81 e2       	ldi	r24, 0x21	; 33
   31d52:	9a e5       	ldi	r25, 0x5A	; 90
   31d54:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31d58:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
			KEEPALIVE_STATE(IN_HANDLER);
   31d5c:	82 e0       	ldi	r24, 0x02	; 2
   31d5e:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
   31d62:	89 eb       	ldi	r24, 0xB9	; 185
   31d64:	9a e5       	ldi	r25, 0x5A	; 90
   31d66:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31d6a:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
			lcd_puts_at_P(0,3,_n("1/4"));
   31d6e:	43 ec       	ldi	r20, 0xC3	; 195
   31d70:	5f e6       	ldi	r21, 0x6F	; 111
   31d72:	63 e0       	ldi	r22, 0x03	; 3
   31d74:	80 e0       	ldi	r24, 0x00	; 0
   31d76:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
   31d7a:	00 91 b7 02 	lds	r16, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
  check_endstops = check;
   31d7e:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
		}

		bool endstops_enabled  = enable_endstops(false);
    raise_z(-1);
   31d82:	60 e0       	ldi	r22, 0x00	; 0
   31d84:	70 e0       	ldi	r23, 0x00	; 0
   31d86:	80 e8       	ldi	r24, 0x80	; 128
   31d88:	9f eb       	ldi	r25, 0xBF	; 191
   31d8a:	0e 94 68 6d 	call	0xdad0	; 0xdad0 <raise_z(float)>

		// Move the print head close to the bed.
		current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   31d8e:	c1 2c       	mov	r12, r1
   31d90:	d1 2c       	mov	r13, r1
   31d92:	b0 ea       	ldi	r27, 0xA0	; 160
   31d94:	eb 2e       	mov	r14, r27
   31d96:	b0 e4       	ldi	r27, 0x40	; 64
   31d98:	fb 2e       	mov	r15, r27
   31d9a:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   31d9e:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   31da2:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   31da6:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
   31daa:	81 e0       	ldi	r24, 0x01	; 1
   31dac:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>

		enable_endstops(true);
#ifdef TMC2130
		tmc2130_home_enter(Z_AXIS_MASK);
   31db0:	84 e0       	ldi	r24, 0x04	; 4
   31db2:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>
#endif //TMC2130

		plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 40);
   31db6:	60 e0       	ldi	r22, 0x00	; 0
   31db8:	70 e0       	ldi	r23, 0x00	; 0
   31dba:	80 ea       	ldi	r24, 0xA0	; 160
   31dbc:	91 e4       	ldi	r25, 0x41	; 65
   31dbe:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

		st_synchronize();
   31dc2:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
#ifdef TMC2130
		tmc2130_home_exit();
   31dc6:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
   31dca:	00 93 b7 02 	sts	0x02B7, r16	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#endif //TMC2130
		enable_endstops(endstops_enabled);

		if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) &&
   31dce:	82 e0       	ldi	r24, 0x02	; 2
   31dd0:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   31dd4:	2d ec       	ldi	r18, 0xCD	; 205
   31dd6:	3c ec       	ldi	r19, 0xCC	; 204
   31dd8:	44 ea       	ldi	r20, 0xA4	; 164
   31dda:	50 e4       	ldi	r21, 0x40	; 64
   31ddc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   31de0:	18 16       	cp	r1, r24
   31de2:	0c f4       	brge	.+2      	; 0x31de6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21e>
   31de4:	eb c3       	rjmp	.+2006   	; 0x325bc <gcode_M45(bool, signed char) [clone .constprop.76]+0x9f4>
		    (st_get_position_mm(Z_AXIS) >= (MESH_HOME_Z_SEARCH - HOME_Z_SEARCH_THRESHOLD)))
   31de6:	82 e0       	ldi	r24, 0x02	; 2
   31de8:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
#ifdef TMC2130
		tmc2130_home_exit();
#endif //TMC2130
		enable_endstops(endstops_enabled);

		if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) &&
   31dec:	23 e3       	ldi	r18, 0x33	; 51
   31dee:	33 e3       	ldi	r19, 0x33	; 51
   31df0:	4b e9       	ldi	r20, 0x9B	; 155
   31df2:	50 e4       	ldi	r21, 0x40	; 64
   31df4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   31df8:	87 fd       	sbrc	r24, 7
   31dfa:	e0 c3       	rjmp	.+1984   	; 0x325bc <gcode_M45(bool, signed char) [clone .constprop.76]+0x9f4>
		    (st_get_position_mm(Z_AXIS) >= (MESH_HOME_Z_SEARCH - HOME_Z_SEARCH_THRESHOLD)))
		{
			if (onlyZ)
   31dfc:	11 11       	cpse	r17, r1
   31dfe:	e3 c3       	rjmp	.+1990   	; 0x325c6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x9fe>
				}
			}
			else
			{
				// Reset the baby step value and the baby step applied flag.
				calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
   31e00:	80 e1       	ldi	r24, 0x10	; 16
   31e02:	0e 94 22 ef 	call	0x1de44	; 0x1de44 <calibration_status_clear(unsigned char)>
				eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);
   31e06:	81 ea       	ldi	r24, 0xA1	; 161
   31e08:	9d e0       	ldi	r25, 0x0D	; 13
   31e0a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   31e0e:	bb e0       	ldi	r27, 0x0B	; 11
   31e10:	8b 9f       	mul	r24, r27
   31e12:	c0 01       	movw	r24, r0
   31e14:	11 24       	eor	r1, r1
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   31e16:	70 e0       	ldi	r23, 0x00	; 0
   31e18:	60 e0       	ldi	r22, 0x00	; 0
   31e1a:	80 5b       	subi	r24, 0xB0	; 176
   31e1c:	92 4f       	sbci	r25, 0xF2	; 242
   31e1e:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
}

BedSkewOffsetDetectionResultType find_bed_offset_and_skew(int8_t verbosity_level, uint8_t &too_far_mask)
{
    // Don't let the manage_inactivity() function remove power from the motors.
    refresh_cmd_timeout();
   31e22:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
    // 7x7=49 floats, good for 16 (x,y,z) vectors.
    float *pts = &mbl.z_values[0][0];
    float *vec_x = pts + 2 * 4;
    float *vec_y = vec_x + 2;
    float *cntr  = vec_y + 2;
    memset(pts, 0, sizeof(float) * 7 * 7);
   31e26:	e3 ec       	ldi	r30, 0xC3	; 195
   31e28:	f3 e1       	ldi	r31, 0x13	; 19
   31e2a:	84 ec       	ldi	r24, 0xC4	; 196
   31e2c:	df 01       	movw	r26, r30
   31e2e:	1d 92       	st	X+, r1
   31e30:	8a 95       	dec	r24
   31e32:	e9 f7       	brne	.-6      	; 0x31e2e <gcode_M45(bool, signed char) [clone .constprop.76]+0x266>
	{
#else //NEW_XYZCAL
	while (iteration < 3) {
#endif //NEW_XYZCAL

		SERIAL_ECHOPGM("Iteration: ");
   31e34:	82 e2       	ldi	r24, 0x22	; 34
   31e36:	95 ea       	ldi	r25, 0xA5	; 165
   31e38:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
		MYSERIAL.println(int(iteration + 1));
   31e3c:	81 e0       	ldi	r24, 0x01	; 1
   31e3e:	90 e0       	ldi	r25, 0x00	; 0
   31e40:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
			MYSERIAL.print(cntr[1], 5);
			SERIAL_ECHOLNPGM("");
		}
		#endif // SUPPORT_VERBOSITY
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
    lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
   31e44:	89 eb       	ldi	r24, 0xB9	; 185
   31e46:	9a e5       	ldi	r25, 0x5A	; 90
   31e48:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   31e4c:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */

    // Collect the rear 2x3 points.
	current_position[Z_AXIS] = MESH_HOME_Z_SEARCH + FIND_BED_INDUCTION_SENSOR_POINT_Z_STEP * iteration * 0.3;
   31e50:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   31e54:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   31e58:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   31e5c:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
   31e60:	b2 e0       	ldi	r27, 0x02	; 2
   31e62:	e1 96       	adiw	r28, 0x31	; 49
   31e64:	bf af       	std	Y+63, r27	; 0x3f
   31e66:	e1 97       	sbiw	r28, 0x31	; 49
   31e68:	2d ef       	ldi	r18, 0xFD	; 253
   31e6a:	34 ea       	ldi	r19, 0xA4	; 164
   31e6c:	cd 56       	subi	r28, 0x6D	; 109
   31e6e:	df 4f       	sbci	r29, 0xFF	; 255
   31e70:	39 83       	std	Y+1, r19	; 0x01
   31e72:	28 83       	st	Y, r18
   31e74:	c3 59       	subi	r28, 0x93	; 147
   31e76:	d0 40       	sbci	r29, 0x00	; 0
   31e78:	42 ec       	ldi	r20, 0xC2	; 194
   31e7a:	53 e1       	ldi	r21, 0x13	; 19
   31e7c:	cf 56       	subi	r28, 0x6F	; 111
   31e7e:	df 4f       	sbci	r29, 0xFF	; 255
   31e80:	59 83       	std	Y+1, r21	; 0x01
   31e82:	48 83       	st	Y, r20
   31e84:	c1 59       	subi	r28, 0x91	; 145
   31e86:	d0 40       	sbci	r29, 0x00	; 0
   31e88:	a0 96       	adiw	r28, 0x20	; 32
   31e8a:	5f af       	std	Y+63, r21	; 0x3f
   31e8c:	4e af       	std	Y+62, r20	; 0x3e
   31e8e:	a0 97       	sbiw	r28, 0x20	; 32
   31e90:	e0 96       	adiw	r28, 0x30	; 48
   31e92:	3f af       	std	Y+63, r19	; 0x3f
   31e94:	2e af       	std	Y+62, r18	; 0x3e
   31e96:	e0 97       	sbiw	r28, 0x30	; 48

    /// Retry point scanning if a point with bad data appears.
    /// Bad data could be cause by "cold" sensor.
    /// This behavior vanishes after few point scans so retry will help.
    for (uint8_t retries = 0; retries <= 1; ++retries) {
        bool retry = false;
   31e98:	a7 96       	adiw	r28, 0x27	; 39
   31e9a:	1f ae       	std	Y+63, r1	; 0x3f
   31e9c:	a7 97       	sbiw	r28, 0x27	; 39
        for (int k = 0; k < 4; ++k) {
   31e9e:	31 2c       	mov	r3, r1
   31ea0:	21 2c       	mov	r2, r1
            // Don't let the manage_inactivity() function remove power from the motors.
            refresh_cmd_timeout();
   31ea2:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
		lcd_set_cursor(0, 3);
   31ea6:	63 e0       	ldi	r22, 0x03	; 3
   31ea8:	80 e0       	ldi	r24, 0x00	; 0
   31eaa:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_printf_P(PSTR("%d/4"),(k+1));
   31eae:	bf ef       	ldi	r27, 0xFF	; 255
   31eb0:	2b 1a       	sub	r2, r27
   31eb2:	3b 0a       	sbc	r3, r27
   31eb4:	3f 92       	push	r3
   31eb6:	2f 92       	push	r2
   31eb8:	ed e1       	ldi	r30, 0x1D	; 29
   31eba:	f5 ea       	ldi	r31, 0xA5	; 165
   31ebc:	ff 93       	push	r31
   31ebe:	ef 93       	push	r30
   31ec0:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
		}
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
		float *pt = pts + k * 2;
		// Go up to z_initial.

		go_to_current(homing_feedrate[Z_AXIS] / 60.f);
   31ec4:	65 e5       	ldi	r22, 0x55	; 85
   31ec6:	75 e5       	ldi	r23, 0x55	; 85
   31ec8:	85 e5       	ldi	r24, 0x55	; 85
   31eca:	91 e4       	ldi	r25, 0x41	; 65
   31ecc:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
			delay_keep_alive(5000);
		}
		#endif // SUPPORT_VERBOSITY
		// Go to the measurement point position.
		//if (iteration == 0) {
			current_position[X_AXIS] = pgm_read_float(bed_ref_points_4 + k * 2);
   31ed0:	e0 96       	adiw	r28, 0x30	; 48
   31ed2:	ee ad       	ldd	r30, Y+62	; 0x3e
   31ed4:	ff ad       	ldd	r31, Y+63	; 0x3f
   31ed6:	e0 97       	sbiw	r28, 0x30	; 48
   31ed8:	85 91       	lpm	r24, Z+
   31eda:	95 91       	lpm	r25, Z+
   31edc:	a5 91       	lpm	r26, Z+
   31ede:	b4 91       	lpm	r27, Z
   31ee0:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   31ee4:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   31ee8:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   31eec:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
			current_position[Y_AXIS] = pgm_read_float(bed_ref_points_4 + k * 2 + 1);
   31ef0:	e0 96       	adiw	r28, 0x30	; 48
   31ef2:	ee ad       	ldd	r30, Y+62	; 0x3e
   31ef4:	ff ad       	ldd	r31, Y+63	; 0x3f
   31ef6:	e0 97       	sbiw	r28, 0x30	; 48
   31ef8:	34 96       	adiw	r30, 0x04	; 4
   31efa:	85 91       	lpm	r24, Z+
   31efc:	95 91       	lpm	r25, Z+
   31efe:	a5 91       	lpm	r26, Z+
   31f00:	b4 91       	lpm	r27, Z
   31f02:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   31f06:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   31f0a:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   31f0e:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
			MYSERIAL.print(current_position[Z_AXIS], 5);
			SERIAL_ECHOLNPGM("");
		}
		#endif // SUPPORT_VERBOSITY

		go_to_current(homing_feedrate[X_AXIS] / 60.f);
   31f12:	60 e0       	ldi	r22, 0x00	; 0
   31f14:	70 e0       	ldi	r23, 0x00	; 0
   31f16:	88 e4       	ldi	r24, 0x48	; 72
   31f18:	92 e4       	ldi	r25, 0x42	; 66
   31f1a:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
	return pos * 0.01f;
}

void xyzcal_measure_enter(void)
{
	DBG(_n("xyzcal_measure_enter\n"));
   31f1e:	42 e8       	ldi	r20, 0x82	; 130
   31f20:	53 ea       	ldi	r21, 0xA3	; 163
   31f22:	5f 93       	push	r21
   31f24:	4f 93       	push	r20
   31f26:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	lcd_puts_at_P(4,3,PSTR("Measure center  ")); ////MSG_MEASURE_CENTER c=16
   31f2a:	41 e7       	ldi	r20, 0x71	; 113
   31f2c:	53 ea       	ldi	r21, 0xA3	; 163
   31f2e:	63 e0       	ldi	r22, 0x03	; 3
   31f30:	84 e0       	ldi	r24, 0x04	; 4
   31f32:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	// disable heaters and stop motion before we initialize sm4
	disable_heater();
   31f36:	0f 94 24 30 	call	0x26048	; 0x26048 <disable_heater()>
	st_synchronize();
   31f3a:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>

	// disable incompatible interrupts
	DISABLE_STEPPER_DRIVER_INTERRUPT();
   31f3e:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   31f42:	8d 7f       	andi	r24, 0xFD	; 253
   31f44:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
				"out __SREG__,__tmp_reg__"   "\n\t"
				: [TEMPREG] "=d" (temp_reg)
				: [WDTREG]  "n"  (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				[WDCE_WDE]  "n"  ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE)))
				: "r0"
		);
   31f48:	0f b6       	in	r0, 0x3f	; 63
   31f4a:	f8 94       	cli
   31f4c:	a8 95       	wdr
   31f4e:	80 91 60 00 	lds	r24, 0x0060	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   31f52:	88 61       	ori	r24, 0x18	; 24
   31f54:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   31f58:	10 92 60 00 	sts	0x0060, r1	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   31f5c:	0f be       	out	0x3f, r0	; 63
#ifdef WATCHDOG
	wdt_disable();
#endif //WATCHDOG

	// setup internal callbacks
	sm4_stop_cb = 0;
   31f5e:	10 92 89 06 	sts	0x0689, r1	; 0x800689 <sm4_stop_cb+0x1>
   31f62:	10 92 88 06 	sts	0x0688, r1	; 0x800688 <sm4_stop_cb>
	sm4_update_pos_cb = xyzcal_update_pos;
   31f66:	8c e0       	ldi	r24, 0x0C	; 12
   31f68:	9e ec       	ldi	r25, 0xCE	; 206
   31f6a:	90 93 87 06 	sts	0x0687, r25	; 0x800687 <sm4_update_pos_cb+0x1>
   31f6e:	80 93 86 06 	sts	0x0686, r24	; 0x800686 <sm4_update_pos_cb>
	sm4_calc_delay_cb = xyzcal_calc_delay;
   31f72:	a7 e0       	ldi	r26, 0x07	; 7
   31f74:	be ec       	ldi	r27, 0xCE	; 206
   31f76:	b0 93 85 06 	sts	0x0685, r27	; 0x800685 <sm4_calc_delay_cb+0x1>
   31f7a:	a0 93 84 06 	sts	0x0684, r26	; 0x800684 <sm4_calc_delay_cb>
const uint16_t xyzcal_point_pattern_10[12] PROGMEM = {0x000, 0x0f0, 0x1f8, 0x3fc, 0x7fe, 0x7fe, 0x7fe, 0x7fe, 0x3fc, 0x1f8, 0x0f0, 0x000};
const uint16_t xyzcal_point_pattern_08[12] PROGMEM = {0x000, 0x000, 0x0f0, 0x1f8, 0x3fc, 0x3fc, 0x3fc, 0x3fc, 0x1f8, 0x0f0, 0x000, 0x000};

bool xyzcal_searchZ(void) {
	//@size=118
	DBG(_n("xyzcal_searchZ x=%ld y=%ld z=%ld\n"), count_position[X_AXIS], count_position[Y_AXIS], count_position[Z_AXIS]);
   31f7e:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   31f82:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   31f86:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   31f8a:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
   31f8e:	40 91 b7 06 	lds	r20, 0x06B7	; 0x8006b7 <count_position+0x4>
   31f92:	50 91 b8 06 	lds	r21, 0x06B8	; 0x8006b8 <count_position+0x5>
   31f96:	60 91 b9 06 	lds	r22, 0x06B9	; 0x8006b9 <count_position+0x6>
   31f9a:	70 91 ba 06 	lds	r23, 0x06BA	; 0x8006ba <count_position+0x7>
   31f9e:	80 91 b3 06 	lds	r24, 0x06B3	; 0x8006b3 <count_position>
   31fa2:	90 91 b4 06 	lds	r25, 0x06B4	; 0x8006b4 <count_position+0x1>
   31fa6:	a0 91 b5 06 	lds	r26, 0x06B5	; 0x8006b5 <count_position+0x2>
   31faa:	b0 91 b6 06 	lds	r27, 0x06B6	; 0x8006b6 <count_position+0x3>
   31fae:	3f 93       	push	r19
   31fb0:	2f 93       	push	r18
   31fb2:	1f 93       	push	r17
   31fb4:	0f 93       	push	r16
   31fb6:	7f 93       	push	r23
   31fb8:	6f 93       	push	r22
   31fba:	5f 93       	push	r21
   31fbc:	4f 93       	push	r20
   31fbe:	bf 93       	push	r27
   31fc0:	af 93       	push	r26
   31fc2:	9f 93       	push	r25
   31fc4:	8f 93       	push	r24
   31fc6:	e1 e2       	ldi	r30, 0x21	; 33
   31fc8:	f4 ea       	ldi	r31, 0xA4	; 164
   31fca:	ff 93       	push	r31
   31fcc:	ef 93       	push	r30
   31fce:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	int16_t x0 = _X;
   31fd2:	40 90 b3 06 	lds	r4, 0x06B3	; 0x8006b3 <count_position>
   31fd6:	50 90 b4 06 	lds	r5, 0x06B4	; 0x8006b4 <count_position+0x1>
   31fda:	60 90 b5 06 	lds	r6, 0x06B5	; 0x8006b5 <count_position+0x2>
   31fde:	70 90 b6 06 	lds	r7, 0x06B6	; 0x8006b6 <count_position+0x3>
   31fe2:	b4 2c       	mov	r11, r4
   31fe4:	a5 2c       	mov	r10, r5
	int16_t y0 = _Y;
   31fe6:	80 91 b7 06 	lds	r24, 0x06B7	; 0x8006b7 <count_position+0x4>
   31fea:	90 91 b8 06 	lds	r25, 0x06B8	; 0x8006b8 <count_position+0x5>
   31fee:	a0 91 b9 06 	lds	r26, 0x06B9	; 0x8006b9 <count_position+0x6>
   31ff2:	b0 91 ba 06 	lds	r27, 0x06BA	; 0x8006ba <count_position+0x7>
   31ff6:	a6 96       	adiw	r28, 0x26	; 38
   31ff8:	8c af       	std	Y+60, r24	; 0x3c
   31ffa:	9d af       	std	Y+61, r25	; 0x3d
   31ffc:	ae af       	std	Y+62, r26	; 0x3e
   31ffe:	bf af       	std	Y+63, r27	; 0x3f
   32000:	a6 97       	sbiw	r28, 0x26	; 38
   32002:	a3 96       	adiw	r28, 0x23	; 35
   32004:	9f ac       	ldd	r9, Y+63	; 0x3f
   32006:	a3 97       	sbiw	r28, 0x23	; 35
   32008:	a4 96       	adiw	r28, 0x24	; 36
   3200a:	8f ac       	ldd	r8, Y+63	; 0x3f
   3200c:	a4 97       	sbiw	r28, 0x24	; 36
	int16_t z = _Z;
   3200e:	c0 90 bb 06 	lds	r12, 0x06BB	; 0x8006bb <count_position+0x8>
   32012:	d0 90 bc 06 	lds	r13, 0x06BC	; 0x8006bc <count_position+0x9>
   32016:	e0 90 bd 06 	lds	r14, 0x06BD	; 0x8006bd <count_position+0xa>
   3201a:	f0 90 be 06 	lds	r15, 0x06BE	; 0x8006be <count_position+0xb>
   3201e:	0f b6       	in	r0, 0x3f	; 63
   32020:	f8 94       	cli
   32022:	de bf       	out	0x3e, r29	; 62
   32024:	0f be       	out	0x3f, r0	; 63
   32026:	cd bf       	out	0x3d, r28	; 61
//	int16_t min_z = -6000;
//	int16_t dz = 100;
	while (z > -2300) { //-6mm + 0.25mm
   32028:	b5 e0       	ldi	r27, 0x05	; 5
   3202a:	cb 16       	cp	r12, r27
   3202c:	b7 ef       	ldi	r27, 0xF7	; 247
   3202e:	db 06       	cpc	r13, r27
   32030:	0c f4       	brge	.+2      	; 0x32034 <gcode_M45(bool, signed char) [clone .constprop.76]+0x46c>
   32032:	40 c3       	rjmp	.+1664   	; 0x326b4 <gcode_M45(bool, signed char) [clone .constprop.76]+0xaec>
}

bool xyzcal_spiral8(int16_t cx, int16_t cy, int16_t z0, int16_t dz, int16_t radius, uint16_t delay_us, int8_t check_pinda, uint16_t* pad)
{
	bool ret = false;
	uint16_t ad = 0;
   32034:	1a 82       	std	Y+2, r1	; 0x02
   32036:	19 82       	std	Y+1, r1	; 0x01
	if (pad) ad = *pad;
    //@size=274
	DBG(_n("xyzcal_spiral8 cx=%d cy=%d z0=%d dz=%d radius=%d ad=%d\n"), cx, cy, z0, dz, radius, ad);
   32038:	1f 92       	push	r1
   3203a:	1f 92       	push	r1
   3203c:	e3 e0       	ldi	r30, 0x03	; 3
   3203e:	ef 93       	push	r30
   32040:	f4 e8       	ldi	r31, 0x84	; 132
   32042:	ff 93       	push	r31
   32044:	1f 92       	push	r1
   32046:	24 e6       	ldi	r18, 0x64	; 100
   32048:	2f 93       	push	r18
   3204a:	df 92       	push	r13
   3204c:	cf 92       	push	r12
   3204e:	8f 92       	push	r8
   32050:	9f 92       	push	r9
   32052:	af 92       	push	r10
   32054:	bf 92       	push	r11
   32056:	48 e9       	ldi	r20, 0x98	; 152
   32058:	53 ea       	ldi	r21, 0xA3	; 163
   3205a:	5f 93       	push	r21
   3205c:	4f 93       	push	r20
   3205e:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	if (!ret && (ad < 720))
   32062:	0f b6       	in	r0, 0x3f	; 63
   32064:	f8 94       	cli
   32066:	de bf       	out	0x3e, r29	; 62
   32068:	0f be       	out	0x3f, r0	; 63
   3206a:	cd bf       	out	0x3d, r28	; 61
   3206c:	89 81       	ldd	r24, Y+1	; 0x01
   3206e:	9a 81       	ldd	r25, Y+2	; 0x02
   32070:	80 3d       	cpi	r24, 0xD0	; 208
   32072:	92 40       	sbci	r25, 0x02	; 2
   32074:	08 f4       	brcc	.+2      	; 0x32078 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4b0>
   32076:	e9 c2       	rjmp	.+1490   	; 0x3264a <gcode_M45(bool, signed char) [clone .constprop.76]+0xa82>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 0*dz, dz, radius, 0, delay_us, check_pinda, &ad)) != 0)
			ad += 0;
	if (!ret && (ad < 1440))
   32078:	89 81       	ldd	r24, Y+1	; 0x01
   3207a:	9a 81       	ldd	r25, Y+2	; 0x02
   3207c:	80 3a       	cpi	r24, 0xA0	; 160
   3207e:	95 40       	sbci	r25, 0x05	; 5
   32080:	10 f0       	brcs	.+4      	; 0x32086 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4be>
   32082:	0d 94 2f 9f 	jmp	0x33e5e	; 0x33e5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x2296>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 1*dz, dz, -radius, 0, delay_us, check_pinda, &ad)) != 0)
   32086:	9e 01       	movw	r18, r28
   32088:	2f 5f       	subi	r18, 0xFF	; 255
   3208a:	3f 4f       	sbci	r19, 0xFF	; 255
   3208c:	79 01       	movw	r14, r18
   3208e:	10 e0       	ldi	r17, 0x00	; 0
   32090:	00 e0       	ldi	r16, 0x00	; 0
   32092:	2c e7       	ldi	r18, 0x7C	; 124
   32094:	3c ef       	ldi	r19, 0xFC	; 252
   32096:	a6 01       	movw	r20, r12
   32098:	44 56       	subi	r20, 0x64	; 100
   3209a:	51 09       	sbc	r21, r1
   3209c:	69 2d       	mov	r22, r9
   3209e:	78 2d       	mov	r23, r8
   320a0:	8b 2d       	mov	r24, r11
   320a2:	9a 2d       	mov	r25, r10
   320a4:	0f 94 bd 6f 	call	0x2df7a	; 0x2df7a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]>
   320a8:	88 23       	and	r24, r24
   320aa:	11 f4       	brne	.+4      	; 0x320b0 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4e8>
   320ac:	0d 94 2f 9f 	jmp	0x33e5e	; 0x33e5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x2296>
			ad += 720;
   320b0:	89 81       	ldd	r24, Y+1	; 0x01
   320b2:	9a 81       	ldd	r25, Y+2	; 0x02
   320b4:	80 53       	subi	r24, 0x30	; 48
   320b6:	9d 4f       	sbci	r25, 0xFD	; 253
//	int16_t dz = 100;
	while (z > -2300) { //-6mm + 0.25mm
		uint16_t ad = 0;
		if (xyzcal_spiral8(x0, y0, z, 100, 900, 320, 1, &ad)) { //dz=100 radius=900 delay=400
			//@size=82
			DBG(_n(" ON-SIGNAL at x=%d y=%d z=%d ad=%d\n"), _X, _Y, _Z, ad);
   320b8:	c0 90 bb 06 	lds	r12, 0x06BB	; 0x8006bb <count_position+0x8>
   320bc:	d0 90 bc 06 	lds	r13, 0x06BC	; 0x8006bc <count_position+0x9>
   320c0:	e0 90 bd 06 	lds	r14, 0x06BD	; 0x8006bd <count_position+0xa>
   320c4:	f0 90 be 06 	lds	r15, 0x06BE	; 0x8006be <count_position+0xb>
   320c8:	00 91 b7 06 	lds	r16, 0x06B7	; 0x8006b7 <count_position+0x4>
   320cc:	10 91 b8 06 	lds	r17, 0x06B8	; 0x8006b8 <count_position+0x5>
   320d0:	20 91 b9 06 	lds	r18, 0x06B9	; 0x8006b9 <count_position+0x6>
   320d4:	30 91 ba 06 	lds	r19, 0x06BA	; 0x8006ba <count_position+0x7>
   320d8:	40 91 b3 06 	lds	r20, 0x06B3	; 0x8006b3 <count_position>
   320dc:	50 91 b4 06 	lds	r21, 0x06B4	; 0x8006b4 <count_position+0x1>
   320e0:	60 91 b5 06 	lds	r22, 0x06B5	; 0x8006b5 <count_position+0x2>
   320e4:	70 91 b6 06 	lds	r23, 0x06B6	; 0x8006b6 <count_position+0x3>
   320e8:	9f 93       	push	r25
   320ea:	8f 93       	push	r24
   320ec:	df 92       	push	r13
   320ee:	cf 92       	push	r12
   320f0:	1f 93       	push	r17
   320f2:	0f 93       	push	r16
   320f4:	5f 93       	push	r21
   320f6:	4f 93       	push	r20
   320f8:	8d ef       	ldi	r24, 0xFD	; 253
   320fa:	93 ea       	ldi	r25, 0xA3	; 163
   320fc:	9f 93       	push	r25
   320fe:	8f 93       	push	r24
   32100:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>

			/// return to starting XY position
			/// magic constant, lowers min_z after searchZ to obtain more dense data in scan
			const pos_i16_t lower_z = 72;
			xyzcal_lineXYZ_to(x0, y0, _Z - lower_z, 200, 0);
   32104:	40 91 bb 06 	lds	r20, 0x06BB	; 0x8006bb <count_position+0x8>
   32108:	50 91 bc 06 	lds	r21, 0x06BC	; 0x8006bc <count_position+0x9>
   3210c:	60 91 bd 06 	lds	r22, 0x06BD	; 0x8006bd <count_position+0xa>
   32110:	70 91 be 06 	lds	r23, 0x06BE	; 0x8006be <count_position+0xb>
   32114:	48 54       	subi	r20, 0x48	; 72
   32116:	51 09       	sbc	r21, r1
   32118:	00 e0       	ldi	r16, 0x00	; 0
   3211a:	28 ec       	ldi	r18, 0xC8	; 200
   3211c:	30 e0       	ldi	r19, 0x00	; 0
   3211e:	a3 96       	adiw	r28, 0x23	; 35
   32120:	6f ad       	ldd	r22, Y+63	; 0x3f
   32122:	a3 97       	sbiw	r28, 0x23	; 35
   32124:	a4 96       	adiw	r28, 0x24	; 36
   32126:	7f ad       	ldd	r23, Y+63	; 0x3f
   32128:	a4 97       	sbiw	r28, 0x24	; 36
   3212a:	c2 01       	movw	r24, r4
   3212c:	0e 94 5a ec 	call	0x1d8b4	; 0x1d8b4 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)>
/// searches for the center of the calibration pin
BedSkewOffsetDetectionResultType xyzcal_scan_and_process(){
    //@size=44
	// DBG(_n("sizeof(block_buffer)=%d\n"), sizeof(block_t)*BLOCK_BUFFER_SIZE);
	BedSkewOffsetDetectionResultType ret = BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND;
	int16_t x = _X;
   32130:	20 91 b3 06 	lds	r18, 0x06B3	; 0x8006b3 <count_position>
   32134:	30 91 b4 06 	lds	r19, 0x06B4	; 0x8006b4 <count_position+0x1>
   32138:	40 91 b5 06 	lds	r20, 0x06B5	; 0x8006b5 <count_position+0x2>
   3213c:	50 91 b6 06 	lds	r21, 0x06B6	; 0x8006b6 <count_position+0x3>
   32140:	6e 96       	adiw	r28, 0x1e	; 30
   32142:	2c af       	std	Y+60, r18	; 0x3c
   32144:	3d af       	std	Y+61, r19	; 0x3d
   32146:	4e af       	std	Y+62, r20	; 0x3e
   32148:	5f af       	std	Y+63, r21	; 0x3f
   3214a:	6e 97       	sbiw	r28, 0x1e	; 30
	int16_t y = _Y;
   3214c:	80 91 b7 06 	lds	r24, 0x06B7	; 0x8006b7 <count_position+0x4>
   32150:	90 91 b8 06 	lds	r25, 0x06B8	; 0x8006b8 <count_position+0x5>
   32154:	a0 91 b9 06 	lds	r26, 0x06B9	; 0x8006b9 <count_position+0x6>
   32158:	b0 91 ba 06 	lds	r27, 0x06BA	; 0x8006ba <count_position+0x7>
   3215c:	ae 96       	adiw	r28, 0x2e	; 46
   3215e:	8c af       	std	Y+60, r24	; 0x3c
   32160:	9d af       	std	Y+61, r25	; 0x3d
   32162:	ae af       	std	Y+62, r26	; 0x3e
   32164:	bf af       	std	Y+63, r27	; 0x3f
   32166:	ae 97       	sbiw	r28, 0x2e	; 46
	const int16_t z = _Z;
   32168:	20 91 bb 06 	lds	r18, 0x06BB	; 0x8006bb <count_position+0x8>
   3216c:	30 91 bc 06 	lds	r19, 0x06BC	; 0x8006bc <count_position+0x9>
   32170:	40 91 bd 06 	lds	r20, 0x06BD	; 0x8006bd <count_position+0xa>
   32174:	50 91 be 06 	lds	r21, 0x06BE	; 0x8006be <count_position+0xb>
   32178:	e9 96       	adiw	r28, 0x39	; 57
   3217a:	2c af       	std	Y+60, r18	; 0x3c
   3217c:	3d af       	std	Y+61, r19	; 0x3d
   3217e:	4e af       	std	Y+62, r20	; 0x3e
   32180:	5f af       	std	Y+63, r21	; 0x3f
   32182:	e9 97       	sbiw	r28, 0x39	; 57
   32184:	a5 ec       	ldi	r26, 0xC5	; 197
   32186:	ba e0       	ldi	r27, 0x0A	; 10
   32188:	0f b6       	in	r0, 0x3f	; 63
   3218a:	f8 94       	cli
   3218c:	de bf       	out	0x3e, r29	; 62
   3218e:	0f be       	out	0x3f, r0	; 63
   32190:	cd bf       	out	0x3d, r28	; 61
   32192:	90 e0       	ldi	r25, 0x00	; 0
   32194:	80 e0       	ldi	r24, 0x00	; 0
	uint8_t *matrix32 = (uint8_t *)block_buffer;
	uint16_t *pattern08 = (uint16_t *)(matrix32 + 32 * 32);
	uint16_t *pattern10 = (uint16_t *)(pattern08 + 12);

	for (uint8_t i = 0; i < 12; i++){
		pattern08[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_08 + i));
   32196:	fc 01       	movw	r30, r24
   32198:	e8 56       	subi	r30, 0x68	; 104
   3219a:	fb 45       	sbci	r31, 0x5B	; 91
   3219c:	25 91       	lpm	r18, Z+
   3219e:	34 91       	lpm	r19, Z
   321a0:	2d 93       	st	X+, r18
   321a2:	3d 93       	st	X+, r19
		pattern10[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_10 + i));
   321a4:	fc 01       	movw	r30, r24
   321a6:	e0 58       	subi	r30, 0x80	; 128
   321a8:	fb 45       	sbci	r31, 0x5B	; 91
   321aa:	25 91       	lpm	r18, Z+
   321ac:	34 91       	lpm	r19, Z
   321ae:	57 96       	adiw	r26, 0x17	; 23
   321b0:	3c 93       	st	X, r19
   321b2:	2e 93       	st	-X, r18
   321b4:	56 97       	sbiw	r26, 0x16	; 22
   321b6:	02 96       	adiw	r24, 0x02	; 2

	uint8_t *matrix32 = (uint8_t *)block_buffer;
	uint16_t *pattern08 = (uint16_t *)(matrix32 + 32 * 32);
	uint16_t *pattern10 = (uint16_t *)(pattern08 + 12);

	for (uint8_t i = 0; i < 12; i++){
   321b8:	88 31       	cpi	r24, 0x18	; 24
   321ba:	91 05       	cpc	r25, r1
   321bc:	61 f7       	brne	.-40     	; 0x32196 <gcode_M45(bool, signed char) [clone .constprop.76]+0x5ce>
		pattern08[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_08 + i));
		pattern10[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_10 + i));
	}

	xyzcal_scan_pixels_32x32_Zhop(x, y, z, 2400, 200, matrix32);
   321be:	e7 96       	adiw	r28, 0x37	; 55
   321c0:	4e ad       	ldd	r20, Y+62	; 0x3e
   321c2:	5f ad       	ldd	r21, Y+63	; 0x3f
   321c4:	e7 97       	sbiw	r28, 0x37	; 55
   321c6:	ac 96       	adiw	r28, 0x2c	; 44
   321c8:	6e ad       	ldd	r22, Y+62	; 0x3e
   321ca:	7f ad       	ldd	r23, Y+63	; 0x3f
   321cc:	ac 97       	sbiw	r28, 0x2c	; 44
   321ce:	6c 96       	adiw	r28, 0x1c	; 28
   321d0:	8e ad       	ldd	r24, Y+62	; 0x3e
   321d2:	9f ad       	ldd	r25, Y+63	; 0x3f
   321d4:	6c 97       	sbiw	r28, 0x1c	; 28
   321d6:	0f 94 f9 70 	call	0x2e1f2	; 0x2e1f2 <xyzcal_scan_pixels_32x32_Zhop(int, int, int, int, unsigned int, unsigned char*) [clone .constprop.80]>
   321da:	25 ec       	ldi	r18, 0xC5	; 197
   321dc:	36 e0       	ldi	r19, 0x06	; 6
   321de:	a4 96       	adiw	r28, 0x24	; 36
   321e0:	3f af       	std	Y+63, r19	; 0x3f
   321e2:	2e af       	std	Y+62, r18	; 0x3e
   321e4:	a4 97       	sbiw	r28, 0x24	; 36
   321e6:	79 01       	movw	r14, r18
   321e8:	f0 e2       	ldi	r31, 0x20	; 32
   321ea:	9f 2e       	mov	r9, r31
/// Prints matrix in hex to debug output (serial line)
void print_image(const uint8_t *matrix_32x32){
	for (uint8_t y = 0; y < 32; ++y){
		const uint16_t idx_y = y * 32;
		for (uint8_t x = 0; x < 32; ++x){
			DBG(_n("%02x"), matrix_32x32[idx_y + x]);
   321ec:	a3 e4       	ldi	r26, 0x43	; 67
   321ee:	ca 2e       	mov	r12, r26
   321f0:	a4 ea       	ldi	r26, 0xA4	; 164
   321f2:	da 2e       	mov	r13, r26
		}
		DBG(endl);
   321f4:	08 e9       	ldi	r16, 0x98	; 152
   321f6:	15 ea       	ldi	r17, 0xA5	; 165
	for (uint8_t i = 0; i < 12; i++){
		pattern08[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_08 + i));
		pattern10[i] = pgm_read_word((uint16_t*)(xyzcal_point_pattern_10 + i));
	}

	xyzcal_scan_pixels_32x32_Zhop(x, y, z, 2400, 200, matrix32);
   321f8:	57 01       	movw	r10, r14
   321fa:	e0 e2       	ldi	r30, 0x20	; 32
   321fc:	8e 2e       	mov	r8, r30
/// Prints matrix in hex to debug output (serial line)
void print_image(const uint8_t *matrix_32x32){
	for (uint8_t y = 0; y < 32; ++y){
		const uint16_t idx_y = y * 32;
		for (uint8_t x = 0; x < 32; ++x){
			DBG(_n("%02x"), matrix_32x32[idx_y + x]);
   321fe:	d5 01       	movw	r26, r10
   32200:	8d 91       	ld	r24, X+
   32202:	5d 01       	movw	r10, r26
   32204:	1f 92       	push	r1
   32206:	8f 93       	push	r24
   32208:	df 92       	push	r13
   3220a:	cf 92       	push	r12
   3220c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   32210:	8a 94       	dec	r8

/// Prints matrix in hex to debug output (serial line)
void print_image(const uint8_t *matrix_32x32){
	for (uint8_t y = 0; y < 32; ++y){
		const uint16_t idx_y = y * 32;
		for (uint8_t x = 0; x < 32; ++x){
   32212:	0f 90       	pop	r0
   32214:	0f 90       	pop	r0
   32216:	0f 90       	pop	r0
   32218:	0f 90       	pop	r0
   3221a:	81 10       	cpse	r8, r1
   3221c:	f0 cf       	rjmp	.-32     	; 0x321fe <gcode_M45(bool, signed char) [clone .constprop.76]+0x636>
			DBG(_n("%02x"), matrix_32x32[idx_y + x]);
		}
		DBG(endl);
   3221e:	1f 93       	push	r17
   32220:	0f 93       	push	r16
   32222:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   32226:	9a 94       	dec	r9
   32228:	b0 e2       	ldi	r27, 0x20	; 32
   3222a:	eb 0e       	add	r14, r27
   3222c:	f1 1c       	adc	r15, r1
	DBG(_n(" [%f, %f][%f] final circle\n"), x, y, r);
}

/// Prints matrix in hex to debug output (serial line)
void print_image(const uint8_t *matrix_32x32){
	for (uint8_t y = 0; y < 32; ++y){
   3222e:	0f 90       	pop	r0
   32230:	0f 90       	pop	r0
   32232:	91 10       	cpse	r9, r1
   32234:	e1 cf       	rjmp	.-62     	; 0x321f8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x630>
		for (uint8_t x = 0; x < 32; ++x){
			DBG(_n("%02x"), matrix_32x32[idx_y + x]);
		}
		DBG(endl);
	}
	DBG(endl);
   32236:	1f 93       	push	r17
   32238:	0f 93       	push	r16
   3223a:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   3223e:	65 ec       	ldi	r22, 0xC5	; 197
   32240:	7a e0       	ldi	r23, 0x0A	; 10
   32242:	0f 90       	pop	r0
   32244:	0f 90       	pop	r0
   32246:	e5 ec       	ldi	r30, 0xC5	; 197
   32248:	f6 e0       	ldi	r31, 0x06	; 6
	/// magic constants that define normality
	const int16_t threshold_total = 900;
	const int threshold_extreme = 50;

	int16_t mins = 0;
	int16_t maxs = 0;
   3224a:	90 e0       	ldi	r25, 0x00	; 0
   3224c:	80 e0       	ldi	r24, 0x00	; 0
bool check_scan(uint8_t *matrix32){
	/// magic constants that define normality
	const int16_t threshold_total = 900;
	const int threshold_extreme = 50;

	int16_t mins = 0;
   3224e:	50 e0       	ldi	r21, 0x00	; 0
   32250:	40 e0       	ldi	r20, 0x00	; 0
	int16_t maxs = 0;

	for (int16_t i = 0; i < 32*32;++i){
		if (matrix32[i] == 0) {
   32252:	21 91       	ld	r18, Z+
   32254:	21 11       	cpse	r18, r1
   32256:	6d c4       	rjmp	.+2266   	; 0x32b32 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf6a>
			++mins;
   32258:	4f 5f       	subi	r20, 0xFF	; 255
   3225a:	5f 4f       	sbci	r21, 0xFF	; 255
	const int threshold_extreme = 50;

	int16_t mins = 0;
	int16_t maxs = 0;

	for (int16_t i = 0; i < 32*32;++i){
   3225c:	6e 17       	cp	r22, r30
   3225e:	7f 07       	cpc	r23, r31
   32260:	c1 f7       	brne	.-16     	; 0x32252 <gcode_M45(bool, signed char) [clone .constprop.76]+0x68a>
			++maxs;
		}
	}
	const int16_t rest = 1024 - mins - maxs;

	if (mins + maxs > threshold_total
   32262:	9a 01       	movw	r18, r20
   32264:	28 0f       	add	r18, r24
   32266:	39 1f       	adc	r19, r25
   32268:	25 38       	cpi	r18, 0x85	; 133
   3226a:	33 40       	sbci	r19, 0x03	; 3
   3226c:	a4 f0       	brlt	.+40     	; 0x32296 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6ce>
		&& mins > threshold_extreme
   3226e:	43 33       	cpi	r20, 0x33	; 51
   32270:	51 05       	cpc	r21, r1
   32272:	8c f0       	brlt	.+34     	; 0x32296 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6ce>
		&& maxs > threshold_extreme
   32274:	83 33       	cpi	r24, 0x33	; 51
   32276:	91 05       	cpc	r25, r1
   32278:	74 f0       	brlt	.+28     	; 0x32296 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6ce>
			++mins;
		} else if (matrix32[i] == 0xFF){
			++maxs;
		}
	}
	const int16_t rest = 1024 - mins - maxs;
   3227a:	20 e0       	ldi	r18, 0x00	; 0
   3227c:	34 e0       	ldi	r19, 0x04	; 4
   3227e:	24 1b       	sub	r18, r20
   32280:	35 0b       	sbc	r19, r21
   32282:	28 1b       	sub	r18, r24
   32284:	39 0b       	sbc	r19, r25

	if (mins + maxs > threshold_total
		&& mins > threshold_extreme
		&& maxs > threshold_extreme
		&& mins > rest
   32286:	24 17       	cp	r18, r20
   32288:	35 07       	cpc	r19, r21
   3228a:	2c f4       	brge	.+10     	; 0x32296 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6ce>
	}

	xyzcal_scan_pixels_32x32_Zhop(x, y, z, 2400, 200, matrix32);
	print_image(matrix32);
	if (!check_scan(matrix32))
		return BED_SKEW_OFFSET_DETECTION_POINT_SCAN_FAILED;
   3228c:	1d ef       	ldi	r17, 0xFD	; 253

	if (mins + maxs > threshold_total
		&& mins > threshold_extreme
		&& maxs > threshold_extreme
		&& mins > rest
		&& maxs > rest)
   3228e:	28 17       	cp	r18, r24
   32290:	39 07       	cpc	r19, r25
   32292:	0c f4       	brge	.+2      	; 0x32296 <gcode_M45(bool, signed char) [clone .constprop.76]+0x6ce>
   32294:	3f c2       	rjmp	.+1150   	; 0x32714 <gcode_M45(bool, signed char) [clone .constprop.76]+0xb4c>
}

/// Takes two patterns and searches them in matrix32
/// \returns best match
uint8_t find_patterns(uint8_t *matrix32, uint16_t *pattern08, uint16_t *pattern10, uint8_t &col, uint8_t &row){
	uint8_t c08 = 0;
   32296:	66 96       	adiw	r28, 0x16	; 22
   32298:	1f ae       	std	Y+63, r1	; 0x3f
   3229a:	66 97       	sbiw	r28, 0x16	; 22
	uint8_t r08 = 0;
   3229c:	62 96       	adiw	r28, 0x12	; 18
   3229e:	1f ae       	std	Y+63, r1	; 0x3f
   322a0:	62 97       	sbiw	r28, 0x12	; 18
	uint8_t match08 = 0;
	uint8_t c10 = 0;
   322a2:	22 96       	adiw	r28, 0x02	; 2
   322a4:	1f ae       	std	Y+63, r1	; 0x3f
   322a6:	22 97       	sbiw	r28, 0x02	; 2
	uint8_t r10 = 0;
   322a8:	19 82       	std	Y+1, r1	; 0x01
   322aa:	ae 01       	movw	r20, r28
   322ac:	4f 5a       	subi	r20, 0xAF	; 175
   322ae:	5f 4f       	sbci	r21, 0xFF	; 255
   322b0:	be 01       	movw	r22, r28
   322b2:	6b 5a       	subi	r22, 0xAB	; 171
   322b4:	7f 4f       	sbci	r23, 0xFF	; 255
   322b6:	85 ec       	ldi	r24, 0xC5	; 197
   322b8:	9a e0       	ldi	r25, 0x0A	; 10
   322ba:	0f 94 20 69 	call	0x2d240	; 0x2d240 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]>
   322be:	08 2f       	mov	r16, r24
   322c0:	ae 01       	movw	r20, r28
   322c2:	4f 5f       	subi	r20, 0xFF	; 255
   322c4:	5f 4f       	sbci	r21, 0xFF	; 255
   322c6:	be 01       	movw	r22, r28
   322c8:	6f 5b       	subi	r22, 0xBF	; 191
   322ca:	7f 4f       	sbci	r23, 0xFF	; 255
   322cc:	8d ed       	ldi	r24, 0xDD	; 221
   322ce:	9a e0       	ldi	r25, 0x0A	; 10
   322d0:	0f 94 20 69 	call	0x2d240	; 0x2d240 <xyzcal_find_pattern_12x12_in_32x32(unsigned char*, unsigned int*, unsigned char*, unsigned char*) [clone .part.3] [clone .constprop.90]>

	match08 = xyzcal_find_pattern_12x12_in_32x32(matrix32, pattern08, &c08, &r08);
	match10 = xyzcal_find_pattern_12x12_in_32x32(matrix32, pattern10, &c10, &r10);

	if (match08 > match10){
		col = c08;
   322d4:	66 96       	adiw	r28, 0x16	; 22
   322d6:	6f ad       	ldd	r22, Y+63	; 0x3f
   322d8:	66 97       	sbiw	r28, 0x16	; 22
		row = r08;
   322da:	62 96       	adiw	r28, 0x12	; 18
   322dc:	1f ad       	ldd	r17, Y+63	; 0x3f
   322de:	62 97       	sbiw	r28, 0x12	; 18
	uint8_t match10 = 0;

	match08 = xyzcal_find_pattern_12x12_in_32x32(matrix32, pattern08, &c08, &r08);
	match10 = xyzcal_find_pattern_12x12_in_32x32(matrix32, pattern10, &c10, &r10);

	if (match08 > match10){
   322e0:	80 17       	cp	r24, r16
   322e2:	28 f0       	brcs	.+10     	; 0x322ee <gcode_M45(bool, signed char) [clone .constprop.76]+0x726>
		col = c08;
		row = r08;
		return match08;
	}

	col = c10;
   322e4:	22 96       	adiw	r28, 0x02	; 2
   322e6:	6f ad       	ldd	r22, Y+63	; 0x3f
   322e8:	22 97       	sbiw	r28, 0x02	; 2
	row = r10;
   322ea:	19 81       	ldd	r17, Y+1	; 0x01
   322ec:	08 2f       	mov	r16, r24
	/// SEARCH FOR BINARY CIRCLE
	uint8_t uc = 0;
	uint8_t ur = 0;

	/// max match = 132, 1/2 good = 66, 2/3 good = 88
	if (find_patterns(matrix32, pattern08, pattern10, uc, ur) >= 88){
   322ee:	08 35       	cpi	r16, 0x58	; 88
   322f0:	08 f4       	brcc	.+2      	; 0x322f4 <gcode_M45(bool, signed char) [clone .constprop.76]+0x72c>
   322f2:	24 c4       	rjmp	.+2120   	; 0x32b3c <gcode_M45(bool, signed char) [clone .constprop.76]+0xf74>
		/// find precise circle
		/// move to the center of the pattern (+5.5)
		float xf = uc + 5.5f;
   322f4:	70 e0       	ldi	r23, 0x00	; 0
   322f6:	90 e0       	ldi	r25, 0x00	; 0
   322f8:	80 e0       	ldi	r24, 0x00	; 0
   322fa:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   322fe:	20 e0       	ldi	r18, 0x00	; 0
   32300:	30 e0       	ldi	r19, 0x00	; 0
   32302:	40 eb       	ldi	r20, 0xB0	; 176
   32304:	50 e4       	ldi	r21, 0x40	; 64
   32306:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3230a:	2b 01       	movw	r4, r22
   3230c:	3c 01       	movw	r6, r24
   3230e:	65 96       	adiw	r28, 0x15	; 21
   32310:	4c ae       	std	Y+60, r4	; 0x3c
   32312:	5d ae       	std	Y+61, r5	; 0x3d
   32314:	6e ae       	std	Y+62, r6	; 0x3e
   32316:	7f ae       	std	Y+63, r7	; 0x3f
   32318:	65 97       	sbiw	r28, 0x15	; 21
		float yf = ur + 5.5f;
   3231a:	61 2f       	mov	r22, r17
   3231c:	70 e0       	ldi	r23, 0x00	; 0
   3231e:	90 e0       	ldi	r25, 0x00	; 0
   32320:	80 e0       	ldi	r24, 0x00	; 0
   32322:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   32326:	20 e0       	ldi	r18, 0x00	; 0
   32328:	30 e0       	ldi	r19, 0x00	; 0
   3232a:	40 eb       	ldi	r20, 0xB0	; 176
   3232c:	50 e4       	ldi	r21, 0x40	; 64
   3232e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32332:	4b 01       	movw	r8, r22
   32334:	5c 01       	movw	r10, r24
   32336:	25 96       	adiw	r28, 0x05	; 5
   32338:	8c ae       	std	Y+60, r8	; 0x3c
   3233a:	9d ae       	std	Y+61, r9	; 0x3d
   3233c:	ae ae       	std	Y+62, r10	; 0x3e
   3233e:	bf ae       	std	Y+63, r11	; 0x3f
   32340:	25 97       	sbiw	r28, 0x05	; 5
		float radius = 4.5f; ///< default radius
   32342:	20 e0       	ldi	r18, 0x00	; 0
   32344:	30 e0       	ldi	r19, 0x00	; 0
   32346:	40 e9       	ldi	r20, 0x90	; 144
   32348:	50 e4       	ldi	r21, 0x40	; 64
   3234a:	29 83       	std	Y+1, r18	; 0x01
   3234c:	3a 83       	std	Y+2, r19	; 0x02
   3234e:	4b 83       	std	Y+3, r20	; 0x03
   32350:	5c 83       	std	Y+4, r21	; 0x04
		constexpr const uint8_t iterations = 20;
		dynamic_circle(matrix32, xf, yf, radius, iterations);
   32352:	ae 01       	movw	r20, r28
   32354:	4f 5f       	subi	r20, 0xFF	; 255
   32356:	5f 4f       	sbci	r21, 0xFF	; 255
   32358:	be 01       	movw	r22, r28
   3235a:	6f 5b       	subi	r22, 0xBF	; 191
   3235c:	7f 4f       	sbci	r23, 0xFF	; 255
   3235e:	ce 01       	movw	r24, r28
   32360:	8f 5a       	subi	r24, 0xAF	; 175
   32362:	9f 4f       	sbci	r25, 0xFF	; 255
   32364:	0f 94 3d 6c 	call	0x2d87a	; 0x2d87a <dynamic_circle(unsigned char*, float&, float&, float&, unsigned char) [clone .constprop.92]>
		if (fabs(xf - (uc + 5.5f)) > 3 || fabs(yf - (ur + 5.5f)) > 3 || fabs(radius - 5) > 3){
   32368:	a3 01       	movw	r20, r6
   3236a:	92 01       	movw	r18, r4
   3236c:	65 96       	adiw	r28, 0x15	; 21
   3236e:	6c ad       	ldd	r22, Y+60	; 0x3c
   32370:	7d ad       	ldd	r23, Y+61	; 0x3d
   32372:	8e ad       	ldd	r24, Y+62	; 0x3e
   32374:	9f ad       	ldd	r25, Y+63	; 0x3f
   32376:	65 97       	sbiw	r28, 0x15	; 21
   32378:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3237c:	6b 01       	movw	r12, r22
   3237e:	7c 01       	movw	r14, r24
   32380:	9f 77       	andi	r25, 0x7F	; 127
   32382:	20 e0       	ldi	r18, 0x00	; 0
   32384:	30 e0       	ldi	r19, 0x00	; 0
   32386:	40 e4       	ldi	r20, 0x40	; 64
   32388:	50 e4       	ldi	r21, 0x40	; 64
   3238a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   3238e:	18 16       	cp	r1, r24
   32390:	34 f1       	brlt	.+76     	; 0x323de <gcode_M45(bool, signed char) [clone .constprop.76]+0x816>
   32392:	a5 01       	movw	r20, r10
   32394:	94 01       	movw	r18, r8
   32396:	25 96       	adiw	r28, 0x05	; 5
   32398:	6c ad       	ldd	r22, Y+60	; 0x3c
   3239a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3239c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3239e:	9f ad       	ldd	r25, Y+63	; 0x3f
   323a0:	25 97       	sbiw	r28, 0x05	; 5
   323a2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   323a6:	9f 77       	andi	r25, 0x7F	; 127
   323a8:	20 e0       	ldi	r18, 0x00	; 0
   323aa:	30 e0       	ldi	r19, 0x00	; 0
   323ac:	40 e4       	ldi	r20, 0x40	; 64
   323ae:	50 e4       	ldi	r21, 0x40	; 64
   323b0:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   323b4:	18 16       	cp	r1, r24
   323b6:	9c f0       	brlt	.+38     	; 0x323de <gcode_M45(bool, signed char) [clone .constprop.76]+0x816>
   323b8:	20 e0       	ldi	r18, 0x00	; 0
   323ba:	30 e0       	ldi	r19, 0x00	; 0
   323bc:	40 ea       	ldi	r20, 0xA0	; 160
   323be:	50 e4       	ldi	r21, 0x40	; 64
   323c0:	69 81       	ldd	r22, Y+1	; 0x01
   323c2:	7a 81       	ldd	r23, Y+2	; 0x02
   323c4:	8b 81       	ldd	r24, Y+3	; 0x03
   323c6:	9c 81       	ldd	r25, Y+4	; 0x04
   323c8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   323cc:	9f 77       	andi	r25, 0x7F	; 127
   323ce:	20 e0       	ldi	r18, 0x00	; 0
   323d0:	30 e0       	ldi	r19, 0x00	; 0
   323d2:	40 e4       	ldi	r20, 0x40	; 64
   323d4:	50 e4       	ldi	r21, 0x40	; 64
   323d6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   323da:	18 16       	cp	r1, r24
   323dc:	bc f5       	brge	.+110    	; 0x3244c <gcode_M45(bool, signed char) [clone .constprop.76]+0x884>
			//@size=88
            DBG(_n(" [%f %f][%f] mm divergence\n"), xf - (uc + 5.5f), yf - (ur + 5.5f), radius - 5);
   323de:	20 e0       	ldi	r18, 0x00	; 0
   323e0:	30 e0       	ldi	r19, 0x00	; 0
   323e2:	40 ea       	ldi	r20, 0xA0	; 160
   323e4:	50 e4       	ldi	r21, 0x40	; 64
   323e6:	69 81       	ldd	r22, Y+1	; 0x01
   323e8:	7a 81       	ldd	r23, Y+2	; 0x02
   323ea:	8b 81       	ldd	r24, Y+3	; 0x03
   323ec:	9c 81       	ldd	r25, Y+4	; 0x04
   323ee:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   323f2:	9f 93       	push	r25
   323f4:	8f 93       	push	r24
   323f6:	7f 93       	push	r23
   323f8:	6f 93       	push	r22
   323fa:	a5 01       	movw	r20, r10
   323fc:	94 01       	movw	r18, r8
   323fe:	25 96       	adiw	r28, 0x05	; 5
   32400:	6c ad       	ldd	r22, Y+60	; 0x3c
   32402:	7d ad       	ldd	r23, Y+61	; 0x3d
   32404:	8e ad       	ldd	r24, Y+62	; 0x3e
   32406:	9f ad       	ldd	r25, Y+63	; 0x3f
   32408:	25 97       	sbiw	r28, 0x05	; 5
   3240a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3240e:	9f 93       	push	r25
   32410:	8f 93       	push	r24
   32412:	7f 93       	push	r23
   32414:	6f 93       	push	r22
   32416:	ff 92       	push	r15
   32418:	ef 92       	push	r14
   3241a:	df 92       	push	r13
   3241c:	cf 92       	push	r12
   3241e:	84 e6       	ldi	r24, 0x64	; 100
   32420:	94 ea       	ldi	r25, 0xA4	; 164
   32422:	9f 93       	push	r25
   32424:	8f 93       	push	r24
   32426:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
			/// dynamic algorithm diverged, use original position instead
			xf = uc + 5.5f;
   3242a:	65 96       	adiw	r28, 0x15	; 21
   3242c:	4c ae       	std	Y+60, r4	; 0x3c
   3242e:	5d ae       	std	Y+61, r5	; 0x3d
   32430:	6e ae       	std	Y+62, r6	; 0x3e
   32432:	7f ae       	std	Y+63, r7	; 0x3f
   32434:	65 97       	sbiw	r28, 0x15	; 21
			yf = ur + 5.5f;
   32436:	25 96       	adiw	r28, 0x05	; 5
   32438:	8c ae       	std	Y+60, r8	; 0x3c
   3243a:	9d ae       	std	Y+61, r9	; 0x3d
   3243c:	ae ae       	std	Y+62, r10	; 0x3e
   3243e:	bf ae       	std	Y+63, r11	; 0x3f
   32440:	25 97       	sbiw	r28, 0x05	; 5
   32442:	0f b6       	in	r0, 0x3f	; 63
   32444:	f8 94       	cli
   32446:	de bf       	out	0x3e, r29	; 62
   32448:	0f be       	out	0x3f, r0	; 63
   3244a:	cd bf       	out	0x3d, r28	; 61
		}

		/// move to the center of area and convert to position
		xf = (float)x + (xf - 15.5f) * 64;
   3244c:	20 e0       	ldi	r18, 0x00	; 0
   3244e:	30 e0       	ldi	r19, 0x00	; 0
   32450:	48 e7       	ldi	r20, 0x78	; 120
   32452:	51 e4       	ldi	r21, 0x41	; 65
   32454:	65 96       	adiw	r28, 0x15	; 21
   32456:	6c ad       	ldd	r22, Y+60	; 0x3c
   32458:	7d ad       	ldd	r23, Y+61	; 0x3d
   3245a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3245c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3245e:	65 97       	sbiw	r28, 0x15	; 21
   32460:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   32464:	20 e0       	ldi	r18, 0x00	; 0
   32466:	30 e0       	ldi	r19, 0x00	; 0
   32468:	40 e8       	ldi	r20, 0x80	; 128
   3246a:	52 e4       	ldi	r21, 0x42	; 66
   3246c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32470:	6b 01       	movw	r12, r22
   32472:	7c 01       	movw	r14, r24
   32474:	6c 96       	adiw	r28, 0x1c	; 28
   32476:	ae ad       	ldd	r26, Y+62	; 0x3e
   32478:	bf ad       	ldd	r27, Y+63	; 0x3f
   3247a:	6c 97       	sbiw	r28, 0x1c	; 28
   3247c:	bd 01       	movw	r22, r26
   3247e:	bb 0f       	add	r27, r27
   32480:	88 0b       	sbc	r24, r24
   32482:	99 0b       	sbc	r25, r25
   32484:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   32488:	9b 01       	movw	r18, r22
   3248a:	ac 01       	movw	r20, r24
   3248c:	c7 01       	movw	r24, r14
   3248e:	b6 01       	movw	r22, r12
   32490:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32494:	6b 01       	movw	r12, r22
   32496:	7c 01       	movw	r14, r24
   32498:	65 96       	adiw	r28, 0x15	; 21
   3249a:	cc ae       	std	Y+60, r12	; 0x3c
   3249c:	dd ae       	std	Y+61, r13	; 0x3d
   3249e:	ee ae       	std	Y+62, r14	; 0x3e
   324a0:	ff ae       	std	Y+63, r15	; 0x3f
   324a2:	65 97       	sbiw	r28, 0x15	; 21
		yf = (float)y + (yf - 15.5f) * 64;
   324a4:	20 e0       	ldi	r18, 0x00	; 0
   324a6:	30 e0       	ldi	r19, 0x00	; 0
   324a8:	48 e7       	ldi	r20, 0x78	; 120
   324aa:	51 e4       	ldi	r21, 0x41	; 65
   324ac:	25 96       	adiw	r28, 0x05	; 5
   324ae:	6c ad       	ldd	r22, Y+60	; 0x3c
   324b0:	7d ad       	ldd	r23, Y+61	; 0x3d
   324b2:	8e ad       	ldd	r24, Y+62	; 0x3e
   324b4:	9f ad       	ldd	r25, Y+63	; 0x3f
   324b6:	25 97       	sbiw	r28, 0x05	; 5
   324b8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   324bc:	20 e0       	ldi	r18, 0x00	; 0
   324be:	30 e0       	ldi	r19, 0x00	; 0
   324c0:	40 e8       	ldi	r20, 0x80	; 128
   324c2:	52 e4       	ldi	r21, 0x42	; 66
   324c4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   324c8:	4b 01       	movw	r8, r22
   324ca:	5c 01       	movw	r10, r24
   324cc:	ac 96       	adiw	r28, 0x2c	; 44
   324ce:	ee ad       	ldd	r30, Y+62	; 0x3e
   324d0:	ff ad       	ldd	r31, Y+63	; 0x3f
   324d2:	ac 97       	sbiw	r28, 0x2c	; 44
   324d4:	bf 01       	movw	r22, r30
   324d6:	ff 0f       	add	r31, r31
   324d8:	88 0b       	sbc	r24, r24
   324da:	99 0b       	sbc	r25, r25
   324dc:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   324e0:	9b 01       	movw	r18, r22
   324e2:	ac 01       	movw	r20, r24
   324e4:	c5 01       	movw	r24, r10
   324e6:	b4 01       	movw	r22, r8
   324e8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   324ec:	25 96       	adiw	r28, 0x05	; 5
   324ee:	6c af       	std	Y+60, r22	; 0x3c
   324f0:	7d af       	std	Y+61, r23	; 0x3d
   324f2:	8e af       	std	Y+62, r24	; 0x3e
   324f4:	9f af       	std	Y+63, r25	; 0x3f
   324f6:	25 97       	sbiw	r28, 0x05	; 5
/// converts integer position to millimeters
pos_mm_t pos_2_mm(pos_i16_t pos){
	return pos * 0.01f;
}
pos_mm_t pos_2_mm(float pos){
	return pos * 0.01f;
   324f8:	2a e0       	ldi	r18, 0x0A	; 10
   324fa:	37 ed       	ldi	r19, 0xD7	; 215
   324fc:	43 e2       	ldi	r20, 0x23	; 35
   324fe:	5c e3       	ldi	r21, 0x3C	; 60
   32500:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>

		/// move to the center of area and convert to position
		xf = (float)x + (xf - 15.5f) * 64;
		yf = (float)y + (yf - 15.5f) * 64;
		//@size=114
        DBG(_n(" [%f %f] mm pattern center\n"), pos_2_mm(xf), pos_2_mm(yf));
   32504:	9f 93       	push	r25
   32506:	8f 93       	push	r24
   32508:	7f 93       	push	r23
   3250a:	6f 93       	push	r22
/// converts integer position to millimeters
pos_mm_t pos_2_mm(pos_i16_t pos){
	return pos * 0.01f;
}
pos_mm_t pos_2_mm(float pos){
	return pos * 0.01f;
   3250c:	2a e0       	ldi	r18, 0x0A	; 10
   3250e:	37 ed       	ldi	r19, 0xD7	; 215
   32510:	43 e2       	ldi	r20, 0x23	; 35
   32512:	5c e3       	ldi	r21, 0x3C	; 60
   32514:	c7 01       	movw	r24, r14
   32516:	b6 01       	movw	r22, r12
   32518:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>

		/// move to the center of area and convert to position
		xf = (float)x + (xf - 15.5f) * 64;
		yf = (float)y + (yf - 15.5f) * 64;
		//@size=114
        DBG(_n(" [%f %f] mm pattern center\n"), pos_2_mm(xf), pos_2_mm(yf));
   3251c:	9f 93       	push	r25
   3251e:	8f 93       	push	r24
   32520:	7f 93       	push	r23
   32522:	6f 93       	push	r22
   32524:	88 e4       	ldi	r24, 0x48	; 72
   32526:	94 ea       	ldi	r25, 0xA4	; 164
   32528:	9f 93       	push	r25
   3252a:	8f 93       	push	r24
   3252c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
uint16_t round_to_u16(float f){
	return (uint16_t)(f + .5f);
}

int16_t round_to_i16(float f){
	return (int16_t)(f + .5f);
   32530:	20 e0       	ldi	r18, 0x00	; 0
   32532:	30 e0       	ldi	r19, 0x00	; 0
   32534:	40 e0       	ldi	r20, 0x00	; 0
   32536:	5f e3       	ldi	r21, 0x3F	; 63
   32538:	25 96       	adiw	r28, 0x05	; 5
   3253a:	6c ad       	ldd	r22, Y+60	; 0x3c
   3253c:	7d ad       	ldd	r23, Y+61	; 0x3d
   3253e:	8e ad       	ldd	r24, Y+62	; 0x3e
   32540:	9f ad       	ldd	r25, Y+63	; 0x3f
   32542:	25 97       	sbiw	r28, 0x05	; 5
   32544:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32548:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   3254c:	6b 01       	movw	r12, r22
   3254e:	20 e0       	ldi	r18, 0x00	; 0
   32550:	30 e0       	ldi	r19, 0x00	; 0
   32552:	40 e0       	ldi	r20, 0x00	; 0
   32554:	5f e3       	ldi	r21, 0x3F	; 63
   32556:	65 96       	adiw	r28, 0x15	; 21
   32558:	6c ad       	ldd	r22, Y+60	; 0x3c
   3255a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3255c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3255e:	9f ad       	ldd	r25, Y+63	; 0x3f
   32560:	65 97       	sbiw	r28, 0x15	; 21
   32562:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32566:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   3256a:	cb 01       	movw	r24, r22
		yf = (float)y + (yf - 15.5f) * 64;
		//@size=114
        DBG(_n(" [%f %f] mm pattern center\n"), pos_2_mm(xf), pos_2_mm(yf));
		x = round_to_i16(xf);
		y = round_to_i16(yf);
		xyzcal_lineXYZ_to(x, y, z, 200, 0);
   3256c:	00 e0       	ldi	r16, 0x00	; 0
   3256e:	28 ec       	ldi	r18, 0xC8	; 200
   32570:	30 e0       	ldi	r19, 0x00	; 0
   32572:	e7 96       	adiw	r28, 0x37	; 55
   32574:	4e ad       	ldd	r20, Y+62	; 0x3e
   32576:	5f ad       	ldd	r21, Y+63	; 0x3f
   32578:	e7 97       	sbiw	r28, 0x37	; 55
   3257a:	b6 01       	movw	r22, r12
   3257c:	0e 94 5a ec 	call	0x1d8b4	; 0x1d8b4 <xyzcal_lineXYZ_to(int, int, int, unsigned int, signed char)>
   32580:	0f b6       	in	r0, 0x3f	; 63
   32582:	f8 94       	cli
   32584:	de bf       	out	0x3e, r29	; 62
   32586:	0f be       	out	0x3f, r0	; 63
   32588:	cd bf       	out	0x3d, r28	; 61
		ret = BED_SKEW_OFFSET_DETECTION_POINT_FOUND;
   3258a:	10 e0       	ldi	r17, 0x00	; 0
   3258c:	85 ea       	ldi	r24, 0xA5	; 165
   3258e:	9d e0       	ldi	r25, 0x0D	; 13
	}

	/// wipe buffer
	for (uint16_t i = 0; i < sizeof(block_t)*BLOCK_BUFFER_SIZE; i++)
		matrix32[i] = 0;
   32590:	a4 96       	adiw	r28, 0x24	; 36
   32592:	ae ad       	ldd	r26, Y+62	; 0x3e
   32594:	bf ad       	ldd	r27, Y+63	; 0x3f
   32596:	a4 97       	sbiw	r28, 0x24	; 36
   32598:	1d 92       	st	X+, r1
   3259a:	a4 96       	adiw	r28, 0x24	; 36
   3259c:	bf af       	std	Y+63, r27	; 0x3f
   3259e:	ae af       	std	Y+62, r26	; 0x3e
   325a0:	a4 97       	sbiw	r28, 0x24	; 36
		xyzcal_lineXYZ_to(x, y, z, 200, 0);
		ret = BED_SKEW_OFFSET_DETECTION_POINT_FOUND;
	}

	/// wipe buffer
	for (uint16_t i = 0; i < sizeof(block_t)*BLOCK_BUFFER_SIZE; i++)
   325a2:	8a 17       	cp	r24, r26
   325a4:	9b 07       	cpc	r25, r27
   325a6:	a1 f7       	brne	.-24     	; 0x32590 <gcode_M45(bool, signed char) [clone .constprop.76]+0x9c8>
   325a8:	b5 c0       	rjmp	.+362    	; 0x32714 <gcode_M45(bool, signed char) [clone .constprop.76]+0xb4c>
			prompt_steel_sheet_on_bed(true);
			lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
			lcd_puts_at_P(0,3,_n("1/9"));
		}else{
			//lcd_show_fullscreen_message_and_wait_P(_T(MSG_PAPER));
			lcd_display_message_fullscreen_P(_T(MSG_FIND_BED_OFFSET_AND_SKEW_LINE1));
   325aa:	89 eb       	ldi	r24, 0xB9	; 185
   325ac:	9a e5       	ldi	r25, 0x5A	; 90
   325ae:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   325b2:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
			lcd_puts_at_P(0,3,_n("1/4"));
   325b6:	47 ec       	ldi	r20, 0xC7	; 199
   325b8:	5f e6       	ldi	r21, 0x6F	; 111
   325ba:	bc cb       	rjmp	.-2184   	; 0x31d34 <gcode_M45(bool, signed char) [clone .constprop.76]+0x16c>
				}
			}
		}
		else
		{
			lcd_show_fullscreen_message_and_wait_P(PSTR("Calibration failed! Check the axes and run again."));
   325bc:	8e e2       	ldi	r24, 0x2E	; 46
   325be:	95 ea       	ldi	r25, 0xA5	; 165
            // The right and maybe the center point out of reach.
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_RIGHT_FAR);
        else
            // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
            msg = _n("XYZ calibration failed. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_LEFT_FAR c=20 r=8
        lcd_show_fullscreen_message_and_wait_P(msg);
   325c0:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   325c4:	9f cb       	rjmp	.-2242   	; 0x31d04 <gcode_M45(bool, signed char) [clone .constprop.76]+0x13c>
		if ((st_get_position_mm(Z_AXIS) <= (MESH_HOME_Z_SEARCH + HOME_Z_SEARCH_THRESHOLD)) &&
		    (st_get_position_mm(Z_AXIS) >= (MESH_HOME_Z_SEARCH - HOME_Z_SEARCH_THRESHOLD)))
		{
			if (onlyZ)
			{
				clean_up_after_endstop_move(l_feedmultiply);
   325c6:	c7 55       	subi	r28, 0x57	; 87
   325c8:	df 4f       	sbci	r29, 0xFF	; 255
   325ca:	88 81       	ld	r24, Y
   325cc:	99 81       	ldd	r25, Y+1	; 0x01
   325ce:	c9 5a       	subi	r28, 0xA9	; 169
   325d0:	d0 40       	sbci	r29, 0x00	; 0
   325d2:	0e 94 55 66 	call	0xccaa	; 0xccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>
				// Z only calibration.
				// Load the machine correction matrix
				world2machine_initialize();
   325d6:	0f 94 da ce 	call	0x39db4	; 0x39db4 <world2machine_initialize()>
				// and correct the current_position to match the transformed coordinate system.
				world2machine_update_current();
   325da:	0f 94 78 cc 	call	0x398f0	; 0x398f0 <world2machine_update_current()>
				//FIXME
				bool result = sample_mesh_and_store_reference();
   325de:	0f 94 87 ca 	call	0x3950e	; 0x3950e <sample_mesh_and_store_reference()>
   325e2:	e5 96       	adiw	r28, 0x35	; 53
   325e4:	8f af       	std	Y+63, r24	; 0x3f
   325e6:	e5 97       	sbiw	r28, 0x35	; 53
				if (result)
   325e8:	88 23       	and	r24, r24
   325ea:	09 f4       	brne	.+2      	; 0x325ee <gcode_M45(bool, signed char) [clone .constprop.76]+0xa26>
   325ec:	8b cb       	rjmp	.-2282   	; 0x31d04 <gcode_M45(bool, signed char) [clone .constprop.76]+0x13c>
				{
					calibration_status_set(CALIBRATION_STATUS_Z);
   325ee:	84 e0       	ldi	r24, 0x04	; 4
   325f0:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
	}
	else
	{
		// Timeouted.
	}
	lcd_update_enable(true);
   325f4:	81 e0       	ldi	r24, 0x01	; 1
   325f6:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
#ifdef TMC2130
	FORCE_HIGH_POWER_END;
   325fa:	80 e0       	ldi	r24, 0x00	; 0
   325fc:	0e 94 37 66 	call	0xcc6e	; 0xcc6e <force_high_power_mode(bool)>
#endif // TMC2130

    FORCE_BL_ON_END;
   32600:	80 e0       	ldi	r24, 0x00	; 0
   32602:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

	return final_result;
}
   32606:	e5 96       	adiw	r28, 0x35	; 53
   32608:	8f ad       	ldd	r24, Y+63	; 0x3f
   3260a:	e5 97       	sbiw	r28, 0x35	; 53
   3260c:	c2 53       	subi	r28, 0x32	; 50
   3260e:	df 4f       	sbci	r29, 0xFF	; 255
   32610:	0f b6       	in	r0, 0x3f	; 63
   32612:	f8 94       	cli
   32614:	de bf       	out	0x3e, r29	; 62
   32616:	0f be       	out	0x3f, r0	; 63
   32618:	cd bf       	out	0x3d, r28	; 61
   3261a:	df 91       	pop	r29
   3261c:	cf 91       	pop	r28
   3261e:	1f 91       	pop	r17
   32620:	0f 91       	pop	r16
   32622:	ff 90       	pop	r15
   32624:	ef 90       	pop	r14
   32626:	df 90       	pop	r13
   32628:	cf 90       	pop	r12
   3262a:	bf 90       	pop	r11
   3262c:	af 90       	pop	r10
   3262e:	9f 90       	pop	r9
   32630:	8f 90       	pop	r8
   32632:	7f 90       	pop	r7
   32634:	6f 90       	pop	r6
   32636:	5f 90       	pop	r5
   32638:	4f 90       	pop	r4
   3263a:	3f 90       	pop	r3
   3263c:	2f 90       	pop	r2
   3263e:	08 95       	ret
	current_position[Z_AXIS] = MESH_HOME_Z_SEARCH + FIND_BED_INDUCTION_SENSOR_POINT_Z_STEP * iteration * 0.3;

    /// Retry point scanning if a point with bad data appears.
    /// Bad data could be cause by "cold" sensor.
    /// This behavior vanishes after few point scans so retry will help.
    for (uint8_t retries = 0; retries <= 1; ++retries) {
   32640:	e1 e0       	ldi	r30, 0x01	; 1
   32642:	e1 96       	adiw	r28, 0x31	; 49
   32644:	ef af       	std	Y+63, r30	; 0x3f
   32646:	e1 97       	sbiw	r28, 0x31	; 49
   32648:	0f cc       	rjmp	.-2018   	; 0x31e68 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2a0>
	uint16_t ad = 0;
	if (pad) ad = *pad;
    //@size=274
	DBG(_n("xyzcal_spiral8 cx=%d cy=%d z0=%d dz=%d radius=%d ad=%d\n"), cx, cy, z0, dz, radius, ad);
	if (!ret && (ad < 720))
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 0*dz, dz, radius, 0, delay_us, check_pinda, &ad)) != 0)
   3264a:	fe 01       	movw	r30, r28
   3264c:	31 96       	adiw	r30, 0x01	; 1
   3264e:	7f 01       	movw	r14, r30
   32650:	10 e0       	ldi	r17, 0x00	; 0
   32652:	00 e0       	ldi	r16, 0x00	; 0
   32654:	24 e8       	ldi	r18, 0x84	; 132
   32656:	33 e0       	ldi	r19, 0x03	; 3
   32658:	a6 01       	movw	r20, r12
   3265a:	69 2d       	mov	r22, r9
   3265c:	78 2d       	mov	r23, r8
   3265e:	8b 2d       	mov	r24, r11
   32660:	9a 2d       	mov	r25, r10
   32662:	0f 94 bd 6f 	call	0x2df7a	; 0x2df7a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]>
			ad += 0;
	if (!ret && (ad < 1440))
   32666:	88 23       	and	r24, r24
   32668:	09 f4       	brne	.+2      	; 0x3266c <gcode_M45(bool, signed char) [clone .constprop.76]+0xaa4>
   3266a:	06 cd       	rjmp	.-1524   	; 0x32078 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4b0>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 2*dz, dz, radius, 180, delay_us, check_pinda, &ad)) != 0)
			ad += 1440;
	if (!ret && (ad < 2880))
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 3*dz, dz, -radius, 180, delay_us, check_pinda, &ad)) != 0)
			ad += 2160;
	if (pad) *pad = ad;
   3266c:	89 81       	ldd	r24, Y+1	; 0x01
   3266e:	9a 81       	ldd	r25, Y+2	; 0x02
   32670:	23 cd       	rjmp	.-1466   	; 0x320b8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4f0>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 1*dz, dz, -radius, 0, delay_us, check_pinda, &ad)) != 0)
			ad += 720;
	if (!ret && (ad < 2160))
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 2*dz, dz, radius, 180, delay_us, check_pinda, &ad)) != 0)
			ad += 1440;
	if (!ret && (ad < 2880))
   32672:	89 81       	ldd	r24, Y+1	; 0x01
   32674:	9a 81       	ldd	r25, Y+2	; 0x02
   32676:	80 34       	cpi	r24, 0x40	; 64
   32678:	9b 40       	sbci	r25, 0x0B	; 11
   3267a:	b8 f4       	brcc	.+46     	; 0x326aa <gcode_M45(bool, signed char) [clone .constprop.76]+0xae2>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 3*dz, dz, -radius, 180, delay_us, check_pinda, &ad)) != 0)
   3267c:	ce 01       	movw	r24, r28
   3267e:	01 96       	adiw	r24, 0x01	; 1
   32680:	7c 01       	movw	r14, r24
   32682:	04 eb       	ldi	r16, 0xB4	; 180
   32684:	10 e0       	ldi	r17, 0x00	; 0
   32686:	2c e7       	ldi	r18, 0x7C	; 124
   32688:	3c ef       	ldi	r19, 0xFC	; 252
   3268a:	a6 01       	movw	r20, r12
   3268c:	4c 52       	subi	r20, 0x2C	; 44
   3268e:	51 40       	sbci	r21, 0x01	; 1
   32690:	69 2d       	mov	r22, r9
   32692:	78 2d       	mov	r23, r8
   32694:	8b 2d       	mov	r24, r11
   32696:	9a 2d       	mov	r25, r10
   32698:	0f 94 bd 6f 	call	0x2df7a	; 0x2df7a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]>
   3269c:	88 23       	and	r24, r24
   3269e:	29 f0       	breq	.+10     	; 0x326aa <gcode_M45(bool, signed char) [clone .constprop.76]+0xae2>
			ad += 2160;
   326a0:	89 81       	ldd	r24, Y+1	; 0x01
   326a2:	9a 81       	ldd	r25, Y+2	; 0x02
   326a4:	80 59       	subi	r24, 0x90	; 144
   326a6:	97 4f       	sbci	r25, 0xF7	; 247
   326a8:	07 cd       	rjmp	.-1522   	; 0x320b8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4f0>
			/// magic constant, lowers min_z after searchZ to obtain more dense data in scan
			const pos_i16_t lower_z = 72;
			xyzcal_lineXYZ_to(x0, y0, _Z - lower_z, 200, 0);
			return true;
		}
		z -= 400;
   326aa:	90 e9       	ldi	r25, 0x90	; 144
   326ac:	c9 1a       	sub	r12, r25
   326ae:	91 e0       	ldi	r25, 0x01	; 1
   326b0:	d9 0a       	sbc	r13, r25
   326b2:	ba cc       	rjmp	.-1676   	; 0x32028 <gcode_M45(bool, signed char) [clone .constprop.76]+0x460>
	}
	//@size=138
	DBG(_n("xyzcal_searchZ no signal\n x=%ld y=%ld z=%ld\n"), count_position[X_AXIS], count_position[Y_AXIS], count_position[Z_AXIS]);
   326b4:	00 91 bb 06 	lds	r16, 0x06BB	; 0x8006bb <count_position+0x8>
   326b8:	10 91 bc 06 	lds	r17, 0x06BC	; 0x8006bc <count_position+0x9>
   326bc:	20 91 bd 06 	lds	r18, 0x06BD	; 0x8006bd <count_position+0xa>
   326c0:	30 91 be 06 	lds	r19, 0x06BE	; 0x8006be <count_position+0xb>
   326c4:	40 91 b7 06 	lds	r20, 0x06B7	; 0x8006b7 <count_position+0x4>
   326c8:	50 91 b8 06 	lds	r21, 0x06B8	; 0x8006b8 <count_position+0x5>
   326cc:	60 91 b9 06 	lds	r22, 0x06B9	; 0x8006b9 <count_position+0x6>
   326d0:	70 91 ba 06 	lds	r23, 0x06BA	; 0x8006ba <count_position+0x7>
   326d4:	80 91 b3 06 	lds	r24, 0x06B3	; 0x8006b3 <count_position>
   326d8:	90 91 b4 06 	lds	r25, 0x06B4	; 0x8006b4 <count_position+0x1>
   326dc:	a0 91 b5 06 	lds	r26, 0x06B5	; 0x8006b5 <count_position+0x2>
   326e0:	b0 91 b6 06 	lds	r27, 0x06B6	; 0x8006b6 <count_position+0x3>
   326e4:	3f 93       	push	r19
   326e6:	2f 93       	push	r18
   326e8:	1f 93       	push	r17
   326ea:	0f 93       	push	r16
   326ec:	7f 93       	push	r23
   326ee:	6f 93       	push	r22
   326f0:	5f 93       	push	r21
   326f2:	4f 93       	push	r20
   326f4:	bf 93       	push	r27
   326f6:	af 93       	push	r26
   326f8:	9f 93       	push	r25
   326fa:	8f 93       	push	r24
   326fc:	80 ed       	ldi	r24, 0xD0	; 208
   326fe:	93 ea       	ldi	r25, 0xA3	; 163
   32700:	9f 93       	push	r25
   32702:	8f 93       	push	r24
   32704:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   32708:	0f b6       	in	r0, 0x3f	; 63
   3270a:	f8 94       	cli
   3270c:	de bf       	out	0x3e, r29	; 62
   3270e:	0f be       	out	0x3f, r0	; 63
   32710:	cd bf       	out	0x3d, r28	; 61
	return ret;
}

BedSkewOffsetDetectionResultType xyzcal_find_bed_induction_sensor_point_xy(void) {
    // DBG(_n("xyzcal_find_bed_induction_sensor_point_xy x=%ld y=%ld z=%ld\n"), count_position[X_AXIS], count_position[Y_AXIS], count_position[Z_AXIS]);
	BedSkewOffsetDetectionResultType ret = BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND;
   32712:	1f ef       	ldi	r17, 0xFF	; 255
	sm4_calc_delay_cb = xyzcal_calc_delay;
}

void xyzcal_measure_leave(void)
{
	DBG(_n("xyzcal_measure_leave\n"));
   32714:	80 eb       	ldi	r24, 0xB0	; 176
   32716:	94 ea       	ldi	r25, 0xA4	; 164
   32718:	9f 93       	push	r25
   3271a:	8f 93       	push	r24
   3271c:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
	lcd_set_cursor(4,3);
   32720:	63 e0       	ldi	r22, 0x03	; 3
   32722:	84 e0       	ldi	r24, 0x04	; 4
   32724:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_space(16);
   32728:	80 e1       	ldi	r24, 0x10	; 16
   3272a:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>

	// resync planner position from counters (changed by xyzcal_update_pos)
	planner_reset_position();
   3272e:	0f 94 bb c0 	call	0x38176	; 0x38176 <planner_reset_position()>
				: "n" (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
				"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) |
						_BV(WDE) | (value & 0x07)) )
				: "r0"
		);
   32732:	88 e1       	ldi	r24, 0x18	; 24
   32734:	98 e2       	ldi	r25, 0x28	; 40
   32736:	0f b6       	in	r0, 0x3f	; 63
   32738:	f8 94       	cli
   3273a:	a8 95       	wdr
   3273c:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   32740:	0f be       	out	0x3f, r0	; 63
   32742:	90 93 60 00 	sts	0x0060, r25	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>

	// re-enable interrupts
#ifdef WATCHDOG
	wdt_enable(WDTO_4S);
#ifdef EMERGENCY_HANDLERS
	WDTCSR |= (1 << WDIE);
   32746:	80 91 60 00 	lds	r24, 0x0060	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   3274a:	80 64       	ori	r24, 0x40	; 64
   3274c:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
#endif //EMERGENCY_HANDLERS
#endif //WATCHDOG
	ENABLE_STEPPER_DRIVER_INTERRUPT();
   32750:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   32754:	82 60       	ori	r24, 0x02	; 2
   32756:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
			delay_keep_alive(3000);
		#endif // SUPPORT_VERBOSITY

        BedSkewOffsetDetectionResultType result;
        result = find_bed_induction_sensor_point_xy(verbosity_level);
        switch(result){
   3275a:	0f 90       	pop	r0
   3275c:	0f 90       	pop	r0
   3275e:	1d 3f       	cpi	r17, 0xFD	; 253
   32760:	09 f4       	brne	.+2      	; 0x32764 <gcode_M45(bool, signed char) [clone .constprop.76]+0xb9c>
   32762:	ee c1       	rjmp	.+988    	; 0x32b40 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf78>
   32764:	1f 3f       	cpi	r17, 0xFF	; 255
   32766:	11 f4       	brne	.+4      	; 0x3276c <gcode_M45(bool, signed char) [clone .constprop.76]+0xba4>
   32768:	0d 94 eb 9e 	jmp	0x33dd6	; 0x33dd6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x220e>
				SERIAL_ECHOLNPGM("Measured:");
				MYSERIAL.println(current_position[X_AXIS]);
				MYSERIAL.println(current_position[Y_AXIS]);
			}
			#endif // SUPPORT_VERBOSITY
			pt[0] = (pt[0] * iteration) / (iteration + 1);
   3276c:	20 e0       	ldi	r18, 0x00	; 0
   3276e:	30 e0       	ldi	r19, 0x00	; 0
   32770:	a9 01       	movw	r20, r18
   32772:	a0 96       	adiw	r28, 0x20	; 32
   32774:	ee ad       	ldd	r30, Y+62	; 0x3e
   32776:	ff ad       	ldd	r31, Y+63	; 0x3f
   32778:	a0 97       	sbiw	r28, 0x20	; 32
   3277a:	61 81       	ldd	r22, Z+1	; 0x01
   3277c:	72 81       	ldd	r23, Z+2	; 0x02
   3277e:	83 81       	ldd	r24, Z+3	; 0x03
   32780:	94 81       	ldd	r25, Z+4	; 0x04
   32782:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
			pt[0] += (current_position[X_AXIS]/(iteration + 1)); //count average
   32786:	20 91 92 06 	lds	r18, 0x0692	; 0x800692 <current_position>
   3278a:	30 91 93 06 	lds	r19, 0x0693	; 0x800693 <current_position+0x1>
   3278e:	40 91 94 06 	lds	r20, 0x0694	; 0x800694 <current_position+0x2>
   32792:	50 91 95 06 	lds	r21, 0x0695	; 0x800695 <current_position+0x3>
   32796:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3279a:	a0 96       	adiw	r28, 0x20	; 32
   3279c:	ae ad       	ldd	r26, Y+62	; 0x3e
   3279e:	bf ad       	ldd	r27, Y+63	; 0x3f
   327a0:	a0 97       	sbiw	r28, 0x20	; 32
   327a2:	11 96       	adiw	r26, 0x01	; 1
   327a4:	6d 93       	st	X+, r22
   327a6:	7d 93       	st	X+, r23
   327a8:	8d 93       	st	X+, r24
   327aa:	9c 93       	st	X, r25
   327ac:	14 97       	sbiw	r26, 0x04	; 4
			pt[1] = (pt[1] * iteration) / (iteration + 1);
			pt[1] += (current_position[Y_AXIS] / (iteration + 1));
   327ae:	c0 90 96 06 	lds	r12, 0x0696	; 0x800696 <current_position+0x4>
   327b2:	d0 90 97 06 	lds	r13, 0x0697	; 0x800697 <current_position+0x5>
   327b6:	e0 90 98 06 	lds	r14, 0x0698	; 0x800698 <current_position+0x6>
   327ba:	f0 90 99 06 	lds	r15, 0x0699	; 0x800699 <current_position+0x7>
				MYSERIAL.println(current_position[Y_AXIS]);
			}
			#endif // SUPPORT_VERBOSITY
			pt[0] = (pt[0] * iteration) / (iteration + 1);
			pt[0] += (current_position[X_AXIS]/(iteration + 1)); //count average
			pt[1] = (pt[1] * iteration) / (iteration + 1);
   327be:	20 e0       	ldi	r18, 0x00	; 0
   327c0:	30 e0       	ldi	r19, 0x00	; 0
   327c2:	a9 01       	movw	r20, r18
   327c4:	15 96       	adiw	r26, 0x05	; 5
   327c6:	6d 91       	ld	r22, X+
   327c8:	7d 91       	ld	r23, X+
   327ca:	8d 91       	ld	r24, X+
   327cc:	9c 91       	ld	r25, X
   327ce:	18 97       	sbiw	r26, 0x08	; 8
   327d0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
			pt[1] += (current_position[Y_AXIS] / (iteration + 1));
   327d4:	a7 01       	movw	r20, r14
   327d6:	96 01       	movw	r18, r12
   327d8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   327dc:	a0 96       	adiw	r28, 0x20	; 32
   327de:	ee ad       	ldd	r30, Y+62	; 0x3e
   327e0:	ff ad       	ldd	r31, Y+63	; 0x3f
   327e2:	a0 97       	sbiw	r28, 0x20	; 32
   327e4:	65 83       	std	Z+5, r22	; 0x05
   327e6:	76 83       	std	Z+6, r23	; 0x06
   327e8:	87 83       	std	Z+7, r24	; 0x07
   327ea:	90 87       	std	Z+8, r25	; 0x08
				SERIAL_ECHOPGM("pt[1]:");
				MYSERIAL.println(pt[1]);
			}
			#endif // SUPPORT_VERBOSITY

			if (current_position[Y_AXIS] < Y_MIN_POS)
   327ec:	20 e0       	ldi	r18, 0x00	; 0
   327ee:	30 e0       	ldi	r19, 0x00	; 0
   327f0:	40 e8       	ldi	r20, 0x80	; 128
   327f2:	50 ec       	ldi	r21, 0xC0	; 192
   327f4:	c7 01       	movw	r24, r14
   327f6:	b6 01       	movw	r22, r12
   327f8:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   327fc:	87 ff       	sbrs	r24, 7
   327fe:	0c c0       	rjmp	.+24     	; 0x32818 <gcode_M45(bool, signed char) [clone .constprop.76]+0xc50>
				current_position[Y_AXIS] = Y_MIN_POS;
   32800:	80 e0       	ldi	r24, 0x00	; 0
   32802:	90 e0       	ldi	r25, 0x00	; 0
   32804:	a0 e8       	ldi	r26, 0x80	; 128
   32806:	b0 ec       	ldi	r27, 0xC0	; 192
   32808:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   3280c:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   32810:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   32814:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
			// Start searching for the other points at 3mm above the last point.
			current_position[Z_AXIS] += 3.f + FIND_BED_INDUCTION_SENSOR_POINT_Z_STEP * iteration * 0.3;
   32818:	20 e0       	ldi	r18, 0x00	; 0
   3281a:	30 e0       	ldi	r19, 0x00	; 0
   3281c:	40 e4       	ldi	r20, 0x40	; 64
   3281e:	50 e4       	ldi	r21, 0x40	; 64
   32820:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   32824:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   32828:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   3282c:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   32830:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32834:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   32838:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   3283c:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   32840:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
   32844:	e0 96       	adiw	r28, 0x30	; 48
   32846:	2e ad       	ldd	r18, Y+62	; 0x3e
   32848:	3f ad       	ldd	r19, Y+63	; 0x3f
   3284a:	e0 97       	sbiw	r28, 0x30	; 48
   3284c:	28 5f       	subi	r18, 0xF8	; 248
   3284e:	3f 4f       	sbci	r19, 0xFF	; 255
   32850:	e0 96       	adiw	r28, 0x30	; 48
   32852:	3f af       	std	Y+63, r19	; 0x3f
   32854:	2e af       	std	Y+62, r18	; 0x3e
   32856:	e0 97       	sbiw	r28, 0x30	; 48
   32858:	a0 96       	adiw	r28, 0x20	; 32
   3285a:	4e ad       	ldd	r20, Y+62	; 0x3e
   3285c:	5f ad       	ldd	r21, Y+63	; 0x3f
   3285e:	a0 97       	sbiw	r28, 0x20	; 32
   32860:	48 5f       	subi	r20, 0xF8	; 248
   32862:	5f 4f       	sbci	r21, 0xFF	; 255
   32864:	a0 96       	adiw	r28, 0x20	; 32
   32866:	5f af       	std	Y+63, r21	; 0x3f
   32868:	4e af       	std	Y+62, r20	; 0x3e
   3286a:	a0 97       	sbiw	r28, 0x20	; 32
    /// Retry point scanning if a point with bad data appears.
    /// Bad data could be cause by "cold" sensor.
    /// This behavior vanishes after few point scans so retry will help.
    for (uint8_t retries = 0; retries <= 1; ++retries) {
        bool retry = false;
        for (int k = 0; k < 4; ++k) {
   3286c:	54 e0       	ldi	r21, 0x04	; 4
   3286e:	25 16       	cp	r2, r21
   32870:	31 04       	cpc	r3, r1
   32872:	09 f0       	breq	.+2      	; 0x32876 <gcode_M45(bool, signed char) [clone .constprop.76]+0xcae>
   32874:	16 cb       	rjmp	.-2516   	; 0x31ea2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2da>
				go_to_current(homing_feedrate[X_AXIS] / 60.f);
				delay_keep_alive(3000);
			}
			#endif // SUPPORT_VERBOSITY
        }
        if (!retry)
   32876:	a7 96       	adiw	r28, 0x27	; 39
   32878:	6f ad       	ldd	r22, Y+63	; 0x3f
   3287a:	a7 97       	sbiw	r28, 0x27	; 39
   3287c:	66 23       	and	r22, r22
   3287e:	31 f0       	breq	.+12     	; 0x3288c <gcode_M45(bool, signed char) [clone .constprop.76]+0xcc4>
	current_position[Z_AXIS] = MESH_HOME_Z_SEARCH + FIND_BED_INDUCTION_SENSOR_POINT_Z_STEP * iteration * 0.3;

    /// Retry point scanning if a point with bad data appears.
    /// Bad data could be cause by "cold" sensor.
    /// This behavior vanishes after few point scans so retry will help.
    for (uint8_t retries = 0; retries <= 1; ++retries) {
   32880:	e1 96       	adiw	r28, 0x31	; 49
   32882:	8f ad       	ldd	r24, Y+63	; 0x3f
   32884:	e1 97       	sbiw	r28, 0x31	; 49
   32886:	81 30       	cpi	r24, 0x01	; 1
   32888:	09 f0       	breq	.+2      	; 0x3288c <gcode_M45(bool, signed char) [clone .constprop.76]+0xcc4>
   3288a:	da ce       	rjmp	.-588    	; 0x32640 <gcode_M45(bool, signed char) [clone .constprop.76]+0xa78>
			#endif // SUPPORT_VERBOSITY
        }
        if (!retry)
            break;
    }
        DBG(_n("All 4 calibration points found.\n"));
   3288c:	82 ea       	ldi	r24, 0xA2	; 162
   3288e:	9f e6       	ldi	r25, 0x6F	; 111
   32890:	9f 93       	push	r25
   32892:	8f 93       	push	r24
   32894:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        delay_keep_alive(0); //manage_heater, reset watchdog, manage inactivity
   32898:	90 e0       	ldi	r25, 0x00	; 0
   3289a:	80 e0       	ldi	r24, 0x00	; 0
   3289c:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
				go_to_current(homing_feedrate[X_AXIS] / 60);
				delay_keep_alive(3000);
			}
		}
		#endif // SUPPORT_VERBOSITY
		if (pts[1] < Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH) {
   328a0:	0f 90       	pop	r0
   328a2:	0f 90       	pop	r0
   328a4:	20 e0       	ldi	r18, 0x00	; 0
   328a6:	30 e0       	ldi	r19, 0x00	; 0
   328a8:	40 e9       	ldi	r20, 0x90	; 144
   328aa:	50 ec       	ldi	r21, 0xC0	; 192
   328ac:	60 91 c7 13 	lds	r22, 0x13C7	; 0x8013c7 <mbl+0x5>
   328b0:	70 91 c8 13 	lds	r23, 0x13C8	; 0x8013c8 <mbl+0x6>
   328b4:	80 91 c9 13 	lds	r24, 0x13C9	; 0x8013c9 <mbl+0x7>
   328b8:	90 91 ca 13 	lds	r25, 0x13CA	; 0x8013ca <mbl+0x8>
   328bc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   328c0:	87 ff       	sbrs	r24, 7
   328c2:	45 c1       	rjmp	.+650    	; 0x32b4e <gcode_M45(bool, signed char) [clone .constprop.76]+0xf86>
			too_far_mask |= 1 << 1; //front center point is out of reach
				SERIAL_ECHOLNPGM("");
   328c4:	8c ef       	ldi	r24, 0xFC	; 252
   328c6:	94 ea       	ldi	r25, 0xA4	; 164
   328c8:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
				SERIAL_ECHOPGM("WARNING: Front point not reachable. Y coordinate:");
   328cc:	8a ec       	ldi	r24, 0xCA	; 202
   328ce:	94 ea       	ldi	r25, 0xA4	; 164
   328d0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
  else printNumber(n, base);
}

void MarlinSerial::print(double n, int digits)
{
  printFloat(n, digits);
   328d4:	60 91 c7 13 	lds	r22, 0x13C7	; 0x8013c7 <mbl+0x5>
   328d8:	70 91 c8 13 	lds	r23, 0x13C8	; 0x8013c8 <mbl+0x6>
   328dc:	80 91 c9 13 	lds	r24, 0x13C9	; 0x8013c9 <mbl+0x7>
   328e0:	90 91 ca 13 	lds	r25, 0x13CA	; 0x8013ca <mbl+0x8>
   328e4:	42 e0       	ldi	r20, 0x02	; 2
   328e6:	0f 94 c6 d5 	call	0x3ab8c	; 0x3ab8c <MarlinSerial::printFloat(double, unsigned char)>
				MYSERIAL.print(pts[1]);
				SERIAL_ECHOPGM(" < ");
   328ea:	86 ec       	ldi	r24, 0xC6	; 198
   328ec:	94 ea       	ldi	r25, 0xA4	; 164
   328ee:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
				MYSERIAL.println(Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH);
   328f2:	60 e0       	ldi	r22, 0x00	; 0
   328f4:	70 e0       	ldi	r23, 0x00	; 0
   328f6:	80 e9       	ldi	r24, 0x90	; 144
   328f8:	90 ec       	ldi	r25, 0xC0	; 192
   328fa:	0f 94 f6 75 	call	0x2ebec	; 0x2ebec <MarlinSerial::println(double, int) [clone .constprop.367]>
				delay_keep_alive(3000);
			}
		}
		#endif // SUPPORT_VERBOSITY
		if (pts[1] < Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH) {
			too_far_mask |= 1 << 1; //front center point is out of reach
   328fe:	92 e0       	ldi	r25, 0x02	; 2
   32900:	af 96       	adiw	r28, 0x2f	; 47
   32902:	9f af       	std	Y+63, r25	; 0x3f
   32904:	af 97       	sbiw	r28, 0x2f	; 47
	#endif // SUPPORT_VERBOSITY

    // Run some iterations of the Gauss-Newton method of non-linear least squares.
    // Initial set of parameters:
    // X,Y offset
    cntr[0] = 0.f;
   32906:	10 92 f3 13 	sts	0x13F3, r1	; 0x8013f3 <mbl+0x31>
   3290a:	10 92 f4 13 	sts	0x13F4, r1	; 0x8013f4 <mbl+0x32>
   3290e:	10 92 f5 13 	sts	0x13F5, r1	; 0x8013f5 <mbl+0x33>
   32912:	10 92 f6 13 	sts	0x13F6, r1	; 0x8013f6 <mbl+0x34>
    cntr[1] = 0.f;
   32916:	10 92 f7 13 	sts	0x13F7, r1	; 0x8013f7 <mbl+0x35>
   3291a:	10 92 f8 13 	sts	0x13F8, r1	; 0x8013f8 <mbl+0x36>
   3291e:	10 92 f9 13 	sts	0x13F9, r1	; 0x8013f9 <mbl+0x37>
   32922:	10 92 fa 13 	sts	0x13FA, r1	; 0x8013fa <mbl+0x38>
   32926:	a4 e6       	ldi	r26, 0x64	; 100
   32928:	e6 96       	adiw	r28, 0x36	; 54
   3292a:	af af       	std	Y+63, r26	; 0x3f
   3292c:	e6 97       	sbiw	r28, 0x36	; 54
    // Rotation of the machine X axis from the bed X axis.
    float a1 = 0;
    // Rotation of the machine Y axis from the bed Y axis.
    float a2 = 0;
   3292e:	a2 96       	adiw	r28, 0x22	; 34
   32930:	1c ae       	std	Y+60, r1	; 0x3c
   32932:	1d ae       	std	Y+61, r1	; 0x3d
   32934:	1e ae       	std	Y+62, r1	; 0x3e
   32936:	1f ae       	std	Y+63, r1	; 0x3f
   32938:	a2 97       	sbiw	r28, 0x22	; 34
    // Initial set of parameters:
    // X,Y offset
    cntr[0] = 0.f;
    cntr[1] = 0.f;
    // Rotation of the machine X axis from the bed X axis.
    float a1 = 0;
   3293a:	a6 96       	adiw	r28, 0x26	; 38
   3293c:	1c ae       	std	Y+60, r1	; 0x3c
   3293e:	1d ae       	std	Y+61, r1	; 0x3d
   32940:	1e ae       	std	Y+62, r1	; 0x3e
   32942:	1f ae       	std	Y+63, r1	; 0x3f
   32944:	a6 97       	sbiw	r28, 0x26	; 38
        float c1 = cos(a1) * MACHINE_AXIS_SCALE_X;
        float s1 = sin(a1) * MACHINE_AXIS_SCALE_X;
        float c2 = cos(a2) * MACHINE_AXIS_SCALE_Y;
        float s2 = sin(a2) * MACHINE_AXIS_SCALE_Y;
        // Prepare the Normal equation for the Gauss-Newton method.
        float A[4][4] = { 0.f };
   32946:	fe 01       	movw	r30, r28
   32948:	31 96       	adiw	r30, 0x01	; 1
   3294a:	68 96       	adiw	r28, 0x18	; 24
   3294c:	ff af       	std	Y+63, r31	; 0x3f
   3294e:	ee af       	std	Y+62, r30	; 0x3e
   32950:	68 97       	sbiw	r28, 0x18	; 24
        float b[4] = { 0.f };
   32952:	9e 01       	movw	r18, r28
   32954:	2f 5b       	subi	r18, 0xBF	; 191
   32956:	3f 4f       	sbci	r19, 0xFF	; 255
   32958:	6a 96       	adiw	r28, 0x1a	; 26
   3295a:	3f af       	std	Y+63, r19	; 0x3f
   3295c:	2e af       	std	Y+62, r18	; 0x3e
   3295e:	6a 97       	sbiw	r28, 0x1a	; 26
    // Rotation of the machine X axis from the bed X axis.
    float a1 = 0;
    // Rotation of the machine Y axis from the bed Y axis.
    float a2 = 0;
    for (int8_t iter = 0; iter < 100; ++iter) {
        float c1 = cos(a1) * MACHINE_AXIS_SCALE_X;
   32960:	a6 96       	adiw	r28, 0x26	; 38
   32962:	6c ad       	ldd	r22, Y+60	; 0x3c
   32964:	7d ad       	ldd	r23, Y+61	; 0x3d
   32966:	8e ad       	ldd	r24, Y+62	; 0x3e
   32968:	9f ad       	ldd	r25, Y+63	; 0x3f
   3296a:	a6 97       	sbiw	r28, 0x26	; 38
   3296c:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   32970:	6e 96       	adiw	r28, 0x1e	; 30
   32972:	6c af       	std	Y+60, r22	; 0x3c
   32974:	7d af       	std	Y+61, r23	; 0x3d
   32976:	8e af       	std	Y+62, r24	; 0x3e
   32978:	9f af       	std	Y+63, r25	; 0x3f
   3297a:	6e 97       	sbiw	r28, 0x1e	; 30
        float s1 = sin(a1) * MACHINE_AXIS_SCALE_X;
   3297c:	a6 96       	adiw	r28, 0x26	; 38
   3297e:	6c ad       	ldd	r22, Y+60	; 0x3c
   32980:	7d ad       	ldd	r23, Y+61	; 0x3d
   32982:	8e ad       	ldd	r24, Y+62	; 0x3e
   32984:	9f ad       	ldd	r25, Y+63	; 0x3f
   32986:	a6 97       	sbiw	r28, 0x26	; 38
   32988:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   3298c:	cb 57       	subi	r28, 0x7B	; 123
   3298e:	df 4f       	sbci	r29, 0xFF	; 255
   32990:	68 83       	st	Y, r22
   32992:	79 83       	std	Y+1, r23	; 0x01
   32994:	8a 83       	std	Y+2, r24	; 0x02
   32996:	9b 83       	std	Y+3, r25	; 0x03
   32998:	c5 58       	subi	r28, 0x85	; 133
   3299a:	d0 40       	sbci	r29, 0x00	; 0
        float c2 = cos(a2) * MACHINE_AXIS_SCALE_Y;
   3299c:	a2 96       	adiw	r28, 0x22	; 34
   3299e:	6c ad       	ldd	r22, Y+60	; 0x3c
   329a0:	7d ad       	ldd	r23, Y+61	; 0x3d
   329a2:	8e ad       	ldd	r24, Y+62	; 0x3e
   329a4:	9f ad       	ldd	r25, Y+63	; 0x3f
   329a6:	a2 97       	sbiw	r28, 0x22	; 34
   329a8:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   329ac:	c7 57       	subi	r28, 0x77	; 119
   329ae:	df 4f       	sbci	r29, 0xFF	; 255
   329b0:	68 83       	st	Y, r22
   329b2:	79 83       	std	Y+1, r23	; 0x01
   329b4:	8a 83       	std	Y+2, r24	; 0x02
   329b6:	9b 83       	std	Y+3, r25	; 0x03
   329b8:	c9 58       	subi	r28, 0x89	; 137
   329ba:	d0 40       	sbci	r29, 0x00	; 0
        float s2 = sin(a2) * MACHINE_AXIS_SCALE_Y;
   329bc:	a2 96       	adiw	r28, 0x22	; 34
   329be:	6c ad       	ldd	r22, Y+60	; 0x3c
   329c0:	7d ad       	ldd	r23, Y+61	; 0x3d
   329c2:	8e ad       	ldd	r24, Y+62	; 0x3e
   329c4:	9f ad       	ldd	r25, Y+63	; 0x3f
   329c6:	a2 97       	sbiw	r28, 0x22	; 34
   329c8:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   329cc:	cb 56       	subi	r28, 0x6B	; 107
   329ce:	df 4f       	sbci	r29, 0xFF	; 255
   329d0:	68 83       	st	Y, r22
   329d2:	79 83       	std	Y+1, r23	; 0x01
   329d4:	8a 83       	std	Y+2, r24	; 0x02
   329d6:	9b 83       	std	Y+3, r25	; 0x03
   329d8:	c5 59       	subi	r28, 0x95	; 149
   329da:	d0 40       	sbci	r29, 0x00	; 0
        // Prepare the Normal equation for the Gauss-Newton method.
        float A[4][4] = { 0.f };
   329dc:	68 96       	adiw	r28, 0x18	; 24
   329de:	ae ad       	ldd	r26, Y+62	; 0x3e
   329e0:	bf ad       	ldd	r27, Y+63	; 0x3f
   329e2:	68 97       	sbiw	r28, 0x18	; 24
   329e4:	e0 e4       	ldi	r30, 0x40	; 64
   329e6:	1d 92       	st	X+, r1
   329e8:	ea 95       	dec	r30
   329ea:	e9 f7       	brne	.-6      	; 0x329e6 <gcode_M45(bool, signed char) [clone .constprop.76]+0xe1e>
        float b[4] = { 0.f };
   329ec:	80 e1       	ldi	r24, 0x10	; 16
   329ee:	6a 96       	adiw	r28, 0x1a	; 26
   329f0:	ae ad       	ldd	r26, Y+62	; 0x3e
   329f2:	bf ad       	ldd	r27, Y+63	; 0x3f
   329f4:	6a 97       	sbiw	r28, 0x1a	; 26
   329f6:	1d 92       	st	X+, r1
   329f8:	8a 95       	dec	r24
   329fa:	e9 f7       	brne	.-6      	; 0x329f6 <gcode_M45(bool, signed char) [clone .constprop.76]+0xe2e>
        float acc;
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
   329fc:	90 e0       	ldi	r25, 0x00	; 0
   329fe:	80 e0       	ldi	r24, 0x00	; 0
   32a00:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
                    float j =
                         (r == 0) ? 1.f :
                        ((r == 1) ? 0.f :
                        ((r == 2) ? (-s1 * measured_pts[2 * i]) :
                                    (-c2 * measured_pts[2 * i + 1])));
                    float fx = c1 * measured_pts[2 * i] - s2 * measured_pts[2 * i + 1] + cntr[0] - pgm_read_float(true_pts + i * 2);
   32a04:	20 91 f3 13 	lds	r18, 0x13F3	; 0x8013f3 <mbl+0x31>
   32a08:	30 91 f4 13 	lds	r19, 0x13F4	; 0x8013f4 <mbl+0x32>
   32a0c:	40 91 f5 13 	lds	r20, 0x13F5	; 0x8013f5 <mbl+0x33>
   32a10:	50 91 f6 13 	lds	r21, 0x13F6	; 0x8013f6 <mbl+0x34>
   32a14:	c5 55       	subi	r28, 0x55	; 85
   32a16:	df 4f       	sbci	r29, 0xFF	; 255
   32a18:	28 83       	st	Y, r18
   32a1a:	39 83       	std	Y+1, r19	; 0x01
   32a1c:	4a 83       	std	Y+2, r20	; 0x02
   32a1e:	5b 83       	std	Y+3, r21	; 0x03
   32a20:	cb 5a       	subi	r28, 0xAB	; 171
   32a22:	d0 40       	sbci	r29, 0x00	; 0
                    float j =
                         (r == 0) ? 0.f :
                        ((r == 1) ? 1.f :
                        ((r == 2) ? ( c1 * measured_pts[2 * i]) :
                                    (-s2 * measured_pts[2 * i + 1])));
                    float fy = s1 * measured_pts[2 * i] + c2 * measured_pts[2 * i + 1] + cntr[1] - pgm_read_float(true_pts + i * 2 + 1);
   32a24:	80 91 f7 13 	lds	r24, 0x13F7	; 0x8013f7 <mbl+0x35>
   32a28:	90 91 f8 13 	lds	r25, 0x13F8	; 0x8013f8 <mbl+0x36>
   32a2c:	a0 91 f9 13 	lds	r26, 0x13F9	; 0x8013f9 <mbl+0x37>
   32a30:	b0 91 fa 13 	lds	r27, 0x13FA	; 0x8013fa <mbl+0x38>
   32a34:	c1 55       	subi	r28, 0x51	; 81
   32a36:	df 4f       	sbci	r29, 0xFF	; 255
   32a38:	88 83       	st	Y, r24
   32a3a:	99 83       	std	Y+1, r25	; 0x01
   32a3c:	aa 83       	std	Y+2, r26	; 0x02
   32a3e:	bb 83       	std	Y+3, r27	; 0x03
   32a40:	cf 5a       	subi	r28, 0xAF	; 175
   32a42:	d0 40       	sbci	r29, 0x00	; 0
   32a44:	de 01       	movw	r26, r28
   32a46:	af 5b       	subi	r26, 0xBF	; 191
   32a48:	bf 4f       	sbci	r27, 0xFF	; 255
   32a4a:	c7 56       	subi	r28, 0x67	; 103
   32a4c:	df 4f       	sbci	r29, 0xFF	; 255
   32a4e:	b9 83       	std	Y+1, r27	; 0x01
   32a50:	a8 83       	st	Y, r26
   32a52:	c9 59       	subi	r28, 0x99	; 153
   32a54:	d0 40       	sbci	r29, 0x00	; 0
   32a56:	fe 01       	movw	r30, r28
   32a58:	31 96       	adiw	r30, 0x01	; 1
   32a5a:	ac 96       	adiw	r28, 0x2c	; 44
   32a5c:	ff af       	std	Y+63, r31	; 0x3f
   32a5e:	ee af       	std	Y+62, r30	; 0x3e
   32a60:	ac 97       	sbiw	r28, 0x2c	; 44
        // Prepare the Normal equation for the Gauss-Newton method.
        float A[4][4] = { 0.f };
        float b[4] = { 0.f };
        float acc;
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
        for (uint8_t r = 0; r < 4; ++r) {
   32a62:	00 e0       	ldi	r16, 0x00	; 0
                            ((r == 2) ? ( c1 * measured_pts[2 * i]) :
                                        (-s2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 1) ? 1.f :
                            ((c == 2) ? ( c1 * measured_pts[2 * i]) :
                                        (-s2 * measured_pts[2 * i + 1]));
   32a64:	cb 56       	subi	r28, 0x6B	; 107
   32a66:	df 4f       	sbci	r29, 0xFF	; 255
   32a68:	28 81       	ld	r18, Y
   32a6a:	39 81       	ldd	r19, Y+1	; 0x01
   32a6c:	4a 81       	ldd	r20, Y+2	; 0x02
   32a6e:	5b 81       	ldd	r21, Y+3	; 0x03
   32a70:	c5 59       	subi	r28, 0x95	; 149
   32a72:	d0 40       	sbci	r29, 0x00	; 0
   32a74:	50 58       	subi	r21, 0x80	; 128
   32a76:	ed 96       	adiw	r28, 0x3d	; 61
   32a78:	2c af       	std	Y+60, r18	; 0x3c
   32a7a:	3d af       	std	Y+61, r19	; 0x3d
   32a7c:	4e af       	std	Y+62, r20	; 0x3e
   32a7e:	5f af       	std	Y+63, r21	; 0x3f
   32a80:	ed 97       	sbiw	r28, 0x3d	; 61
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
                            ((c == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
   32a82:	c7 57       	subi	r28, 0x77	; 119
   32a84:	df 4f       	sbci	r29, 0xFF	; 255
   32a86:	88 81       	ld	r24, Y
   32a88:	99 81       	ldd	r25, Y+1	; 0x01
   32a8a:	aa 81       	ldd	r26, Y+2	; 0x02
   32a8c:	bb 81       	ldd	r27, Y+3	; 0x03
   32a8e:	c9 58       	subi	r28, 0x89	; 137
   32a90:	d0 40       	sbci	r29, 0x00	; 0
   32a92:	b0 58       	subi	r27, 0x80	; 128
   32a94:	c3 58       	subi	r28, 0x83	; 131
   32a96:	df 4f       	sbci	r29, 0xFF	; 255
   32a98:	88 83       	st	Y, r24
   32a9a:	99 83       	std	Y+1, r25	; 0x01
   32a9c:	aa 83       	std	Y+2, r26	; 0x02
   32a9e:	bb 83       	std	Y+3, r27	; 0x03
   32aa0:	cd 57       	subi	r28, 0x7D	; 125
   32aa2:	d0 40       	sbci	r29, 0x00	; 0
                             (r == 0) ? 1.f :
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
                            ((c == 2) ? (-s1 * measured_pts[2 * i]) :
   32aa4:	cb 57       	subi	r28, 0x7B	; 123
   32aa6:	df 4f       	sbci	r29, 0xFF	; 255
   32aa8:	28 81       	ld	r18, Y
   32aaa:	39 81       	ldd	r19, Y+1	; 0x01
   32aac:	4a 81       	ldd	r20, Y+2	; 0x02
   32aae:	5b 81       	ldd	r21, Y+3	; 0x03
   32ab0:	c5 58       	subi	r28, 0x85	; 133
   32ab2:	d0 40       	sbci	r29, 0x00	; 0
   32ab4:	50 58       	subi	r21, 0x80	; 128
   32ab6:	cf 57       	subi	r28, 0x7F	; 127
   32ab8:	df 4f       	sbci	r29, 0xFF	; 255
   32aba:	28 83       	st	Y, r18
   32abc:	39 83       	std	Y+1, r19	; 0x01
   32abe:	4a 83       	std	Y+2, r20	; 0x02
   32ac0:	5b 83       	std	Y+3, r21	; 0x03
   32ac2:	c1 58       	subi	r28, 0x81	; 129
   32ac4:	d0 40       	sbci	r29, 0x00	; 0
        // Prepare the Normal equation for the Gauss-Newton method.
        float A[4][4] = { 0.f };
        float b[4] = { 0.f };
        float acc;
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
        for (uint8_t r = 0; r < 4; ++r) {
   32ac6:	ac 96       	adiw	r28, 0x2c	; 44
   32ac8:	2e ac       	ldd	r2, Y+62	; 0x3e
   32aca:	3f ac       	ldd	r3, Y+63	; 0x3f
   32acc:	ac 97       	sbiw	r28, 0x2c	; 44
            for (uint8_t c = 0; c < 4; ++c) {
   32ace:	10 e0       	ldi	r17, 0x00	; 0
   32ad0:	62 ec       	ldi	r22, 0xC2	; 194
   32ad2:	46 2e       	mov	r4, r22
   32ad4:	63 e1       	ldi	r22, 0x13	; 19
   32ad6:	56 2e       	mov	r5, r22
   32ad8:	74 e0       	ldi	r23, 0x04	; 4
   32ada:	77 2e       	mov	r7, r23
                acc = 0;
   32adc:	c1 2c       	mov	r12, r1
   32ade:	d1 2c       	mov	r13, r1
   32ae0:	76 01       	movw	r14, r12
                // J^T times J
                for (uint8_t i = 0; i < npts; ++i) {
                    // First for the residuum in the x axis:
                    if (r != 1 && c != 1) {
   32ae2:	01 30       	cpi	r16, 0x01	; 1
   32ae4:	11 f4       	brne	.+4      	; 0x32aea <gcode_M45(bool, signed char) [clone .constprop.76]+0xf22>
   32ae6:	0d 94 9f 9f 	jmp	0x33f3e	; 0x33f3e <gcode_M45(bool, signed char) [clone .constprop.76]+0x2376>
   32aea:	11 30       	cpi	r17, 0x01	; 1
   32aec:	11 f4       	brne	.+4      	; 0x32af2 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf2a>
   32aee:	0d 94 51 9f 	jmp	0x33ea2	; 0x33ea2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x22da>
                        float a =
                             (r == 0) ? 1.f :
   32af2:	00 23       	and	r16, r16
   32af4:	11 f4       	brne	.+4      	; 0x32afa <gcode_M45(bool, signed char) [clone .constprop.76]+0xf32>
   32af6:	0d 94 91 9f 	jmp	0x33f22	; 0x33f22 <gcode_M45(bool, signed char) [clone .constprop.76]+0x235a>
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
   32afa:	02 30       	cpi	r16, 0x02	; 2
   32afc:	61 f5       	brne	.+88     	; 0x32b56 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf8e>
   32afe:	d2 01       	movw	r26, r4
   32b00:	11 96       	adiw	r26, 0x01	; 1
   32b02:	2d 91       	ld	r18, X+
   32b04:	3d 91       	ld	r19, X+
   32b06:	4d 91       	ld	r20, X+
   32b08:	5c 91       	ld	r21, X
   32b0a:	14 97       	sbiw	r26, 0x04	; 4
   32b0c:	cf 57       	subi	r28, 0x7F	; 127
   32b0e:	df 4f       	sbci	r29, 0xFF	; 255
   32b10:	68 81       	ld	r22, Y
   32b12:	79 81       	ldd	r23, Y+1	; 0x01
   32b14:	8a 81       	ldd	r24, Y+2	; 0x02
   32b16:	9b 81       	ldd	r25, Y+3	; 0x03
   32b18:	c1 58       	subi	r28, 0x81	; 129
   32b1a:	d0 40       	sbci	r29, 0x00	; 0
   32b1c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32b20:	4b 01       	movw	r8, r22
   32b22:	5c 01       	movw	r10, r24
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
   32b24:	11 11       	cpse	r17, r1
   32b26:	25 c0       	rjmp	.+74     	; 0x32b72 <gcode_M45(bool, signed char) [clone .constprop.76]+0xfaa>
   32b28:	60 e0       	ldi	r22, 0x00	; 0
   32b2a:	70 e0       	ldi	r23, 0x00	; 0
   32b2c:	80 e8       	ldi	r24, 0x80	; 128
   32b2e:	9f e3       	ldi	r25, 0x3F	; 63
   32b30:	35 c0       	rjmp	.+106    	; 0x32b9c <gcode_M45(bool, signed char) [clone .constprop.76]+0xfd4>
	int16_t maxs = 0;

	for (int16_t i = 0; i < 32*32;++i){
		if (matrix32[i] == 0) {
			++mins;
		} else if (matrix32[i] == 0xFF){
   32b32:	2f 3f       	cpi	r18, 0xFF	; 255
   32b34:	09 f0       	breq	.+2      	; 0x32b38 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf70>
   32b36:	92 cb       	rjmp	.-2268   	; 0x3225c <gcode_M45(bool, signed char) [clone .constprop.76]+0x694>
			++maxs;
   32b38:	01 96       	adiw	r24, 0x01	; 1
   32b3a:	90 cb       	rjmp	.-2272   	; 0x3225c <gcode_M45(bool, signed char) [clone .constprop.76]+0x694>
/// scans area around the current head location and
/// searches for the center of the calibration pin
BedSkewOffsetDetectionResultType xyzcal_scan_and_process(){
    //@size=44
	// DBG(_n("sizeof(block_buffer)=%d\n"), sizeof(block_t)*BLOCK_BUFFER_SIZE);
	BedSkewOffsetDetectionResultType ret = BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND;
   32b3c:	1f ef       	ldi	r17, 0xFF	; 255
   32b3e:	26 cd       	rjmp	.-1460   	; 0x3258c <gcode_M45(bool, signed char) [clone .constprop.76]+0x9c4>
        result = find_bed_induction_sensor_point_xy(verbosity_level);
        switch(result){
            case BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND:
                return BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND;
            case BED_SKEW_OFFSET_DETECTION_POINT_SCAN_FAILED:
                retry = true;
   32b40:	e5 96       	adiw	r28, 0x35	; 53
   32b42:	bf ad       	ldd	r27, Y+63	; 0x3f
   32b44:	e5 97       	sbiw	r28, 0x35	; 53
   32b46:	a7 96       	adiw	r28, 0x27	; 39
   32b48:	bf af       	std	Y+63, r27	; 0x3f
   32b4a:	a7 97       	sbiw	r28, 0x27	; 39
   32b4c:	0f ce       	rjmp	.-994    	; 0x3276c <gcode_M45(bool, signed char) [clone .constprop.76]+0xba4>
				// Reset the baby step value and the baby step applied flag.
				calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
				eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);

				// Complete XYZ calibration.
				uint8_t point_too_far_mask = 0;
   32b4e:	af 96       	adiw	r28, 0x2f	; 47
   32b50:	1f ae       	std	Y+63, r1	; 0x3f
   32b52:	af 97       	sbiw	r28, 0x2f	; 47
   32b54:	d8 ce       	rjmp	.-592    	; 0x32906 <gcode_M45(bool, signed char) [clone .constprop.76]+0xd3e>
                for (uint8_t i = 0; i < npts; ++i) {
                    // First for the residuum in the x axis:
                    if (r != 1 && c != 1) {
                        float a =
                             (r == 0) ? 1.f :
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
   32b56:	f2 01       	movw	r30, r4
   32b58:	25 81       	ldd	r18, Z+5	; 0x05
   32b5a:	36 81       	ldd	r19, Z+6	; 0x06
   32b5c:	47 81       	ldd	r20, Z+7	; 0x07
   32b5e:	50 85       	ldd	r21, Z+8	; 0x08
   32b60:	c3 58       	subi	r28, 0x83	; 131
   32b62:	df 4f       	sbci	r29, 0xFF	; 255
   32b64:	68 81       	ld	r22, Y
   32b66:	79 81       	ldd	r23, Y+1	; 0x01
   32b68:	8a 81       	ldd	r24, Y+2	; 0x02
   32b6a:	9b 81       	ldd	r25, Y+3	; 0x03
   32b6c:	cd 57       	subi	r28, 0x7D	; 125
   32b6e:	d0 40       	sbci	r29, 0x00	; 0
   32b70:	d5 cf       	rjmp	.-86     	; 0x32b1c <gcode_M45(bool, signed char) [clone .constprop.76]+0xf54>
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
                            ((c == 2) ? (-s1 * measured_pts[2 * i]) :
   32b72:	12 30       	cpi	r17, 0x02	; 2
   32b74:	11 f0       	breq	.+4      	; 0x32b7a <gcode_M45(bool, signed char) [clone .constprop.76]+0xfb2>
   32b76:	0d 94 92 9e 	jmp	0x33d24	; 0x33d24 <gcode_M45(bool, signed char) [clone .constprop.76]+0x215c>
   32b7a:	d2 01       	movw	r26, r4
   32b7c:	11 96       	adiw	r26, 0x01	; 1
   32b7e:	2d 91       	ld	r18, X+
   32b80:	3d 91       	ld	r19, X+
   32b82:	4d 91       	ld	r20, X+
   32b84:	5c 91       	ld	r21, X
   32b86:	14 97       	sbiw	r26, 0x04	; 4
   32b88:	cf 57       	subi	r28, 0x7F	; 127
   32b8a:	df 4f       	sbci	r29, 0xFF	; 255
   32b8c:	68 81       	ld	r22, Y
   32b8e:	79 81       	ldd	r23, Y+1	; 0x01
   32b90:	8a 81       	ldd	r24, Y+2	; 0x02
   32b92:	9b 81       	ldd	r25, Y+3	; 0x03
   32b94:	c1 58       	subi	r28, 0x81	; 129
   32b96:	d0 40       	sbci	r29, 0x00	; 0
   32b98:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
                                        (-c2 * measured_pts[2 * i + 1]));
                        float w = point_weight_x(i, measured_pts[2 * i + 1]);
                        acc += a * b * w;
   32b9c:	9b 01       	movw	r18, r22
   32b9e:	ac 01       	movw	r20, r24
   32ba0:	c5 01       	movw	r24, r10
   32ba2:	b4 01       	movw	r22, r8
   32ba4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32ba8:	9b 01       	movw	r18, r22
   32baa:	ac 01       	movw	r20, r24
   32bac:	c7 01       	movw	r24, r14
   32bae:	b6 01       	movw	r22, r12
   32bb0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32bb4:	6b 01       	movw	r12, r22
   32bb6:	7c 01       	movw	r14, r24
                    }
                    // Second for the residuum in the y axis.
                    // The first row of the points have a low weight, because their position may not be known
                    // with a sufficient accuracy.
                    if (r != 0 && c != 0) {
   32bb8:	01 11       	cpse	r16, r1
   32bba:	0d 94 a9 9f 	jmp	0x33f52	; 0x33f52 <gcode_M45(bool, signed char) [clone .constprop.76]+0x238a>
   32bbe:	7a 94       	dec	r7
   32bc0:	f8 e0       	ldi	r31, 0x08	; 8
   32bc2:	4f 0e       	add	r4, r31
   32bc4:	51 1c       	adc	r5, r1
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
        for (uint8_t r = 0; r < 4; ++r) {
            for (uint8_t c = 0; c < 4; ++c) {
                acc = 0;
                // J^T times J
                for (uint8_t i = 0; i < npts; ++i) {
   32bc6:	71 10       	cpse	r7, r1
   32bc8:	8c cf       	rjmp	.-232    	; 0x32ae2 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf1a>
                                        (-s2 * measured_pts[2 * i + 1]));
                        float w = point_weight_y(i, measured_pts[2 * i + 1]);
                        acc += a * b * w;
                    }
                }
                A[r][c] = acc;
   32bca:	d1 01       	movw	r26, r2
   32bcc:	cd 92       	st	X+, r12
   32bce:	dd 92       	st	X+, r13
   32bd0:	ed 92       	st	X+, r14
   32bd2:	fd 92       	st	X+, r15
   32bd4:	1d 01       	movw	r2, r26
        float A[4][4] = { 0.f };
        float b[4] = { 0.f };
        float acc;
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
        for (uint8_t r = 0; r < 4; ++r) {
            for (uint8_t c = 0; c < 4; ++c) {
   32bd6:	1f 5f       	subi	r17, 0xFF	; 255
   32bd8:	14 30       	cpi	r17, 0x04	; 4
   32bda:	09 f0       	breq	.+2      	; 0x32bde <gcode_M45(bool, signed char) [clone .constprop.76]+0x1016>
   32bdc:	79 cf       	rjmp	.-270    	; 0x32ad0 <gcode_M45(bool, signed char) [clone .constprop.76]+0xf08>
   32bde:	3d ef       	ldi	r19, 0xFD	; 253
   32be0:	23 2e       	mov	r2, r19
   32be2:	34 ea       	ldi	r19, 0xA4	; 164
   32be4:	33 2e       	mov	r3, r19
   32be6:	e2 ec       	ldi	r30, 0xC2	; 194
   32be8:	f3 e1       	ldi	r31, 0x13	; 19
   32bea:	a8 96       	adiw	r28, 0x28	; 40
   32bec:	ff af       	std	Y+63, r31	; 0x3f
   32bee:	ee af       	std	Y+62, r30	; 0x3e
   32bf0:	a8 97       	sbiw	r28, 0x28	; 40
                    }
                }
                A[r][c] = acc;
            }
            // J^T times f(x)
            acc = 0.f;
   32bf2:	c3 57       	subi	r28, 0x73	; 115
   32bf4:	df 4f       	sbci	r29, 0xFF	; 255
   32bf6:	18 82       	st	Y, r1
   32bf8:	cd 58       	subi	r28, 0x8D	; 141
   32bfa:	d0 40       	sbci	r29, 0x00	; 0
   32bfc:	c3 56       	subi	r28, 0x63	; 99
   32bfe:	df 4f       	sbci	r29, 0xFF	; 255
   32c00:	18 82       	st	Y, r1
   32c02:	cd 59       	subi	r28, 0x9D	; 157
   32c04:	d0 40       	sbci	r29, 0x00	; 0
   32c06:	cf 55       	subi	r28, 0x5F	; 95
   32c08:	df 4f       	sbci	r29, 0xFF	; 255
   32c0a:	18 82       	st	Y, r1
   32c0c:	c1 5a       	subi	r28, 0xA1	; 161
   32c0e:	d0 40       	sbci	r29, 0x00	; 0
   32c10:	10 e0       	ldi	r17, 0x00	; 0
   32c12:	a8 96       	adiw	r28, 0x28	; 40
   32c14:	ae ad       	ldd	r26, Y+62	; 0x3e
   32c16:	bf ad       	ldd	r27, Y+63	; 0x3f
   32c18:	a8 97       	sbiw	r28, 0x28	; 40
   32c1a:	11 96       	adiw	r26, 0x01	; 1
   32c1c:	2d 91       	ld	r18, X+
   32c1e:	3d 91       	ld	r19, X+
   32c20:	4d 91       	ld	r20, X+
   32c22:	5c 91       	ld	r21, X
   32c24:	14 97       	sbiw	r26, 0x04	; 4
   32c26:	e4 96       	adiw	r28, 0x34	; 52
   32c28:	2c af       	std	Y+60, r18	; 0x3c
   32c2a:	3d af       	std	Y+61, r19	; 0x3d
   32c2c:	4e af       	std	Y+62, r20	; 0x3e
   32c2e:	5f af       	std	Y+63, r21	; 0x3f
   32c30:	e4 97       	sbiw	r28, 0x34	; 52
   32c32:	15 96       	adiw	r26, 0x05	; 5
   32c34:	4d 90       	ld	r4, X+
   32c36:	5d 90       	ld	r5, X+
   32c38:	6d 90       	ld	r6, X+
   32c3a:	7c 90       	ld	r7, X
   32c3c:	18 97       	sbiw	r26, 0x08	; 8
            for (uint8_t i = 0; i < npts; ++i) {
                {
                    float j =
                         (r == 0) ? 1.f :
   32c3e:	00 23       	and	r16, r16
   32c40:	11 f4       	brne	.+4      	; 0x32c46 <gcode_M45(bool, signed char) [clone .constprop.76]+0x107e>
   32c42:	0d 94 c5 9e 	jmp	0x33d8a	; 0x33d8a <gcode_M45(bool, signed char) [clone .constprop.76]+0x21c2>
                        ((r == 1) ? 0.f :
   32c46:	81 2c       	mov	r8, r1
   32c48:	91 2c       	mov	r9, r1
   32c4a:	54 01       	movw	r10, r8
   32c4c:	01 30       	cpi	r16, 0x01	; 1
   32c4e:	81 f0       	breq	.+32     	; 0x32c70 <gcode_M45(bool, signed char) [clone .constprop.76]+0x10a8>
                        ((r == 2) ? (-s1 * measured_pts[2 * i]) :
   32c50:	02 30       	cpi	r16, 0x02	; 2
   32c52:	11 f0       	breq	.+4      	; 0x32c58 <gcode_M45(bool, signed char) [clone .constprop.76]+0x1090>
   32c54:	0d 94 b9 9e 	jmp	0x33d72	; 0x33d72 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21aa>
   32c58:	cf 57       	subi	r28, 0x7F	; 127
   32c5a:	df 4f       	sbci	r29, 0xFF	; 255
   32c5c:	68 81       	ld	r22, Y
   32c5e:	79 81       	ldd	r23, Y+1	; 0x01
   32c60:	8a 81       	ldd	r24, Y+2	; 0x02
   32c62:	9b 81       	ldd	r25, Y+3	; 0x03
   32c64:	c1 58       	subi	r28, 0x81	; 129
   32c66:	d0 40       	sbci	r29, 0x00	; 0
   32c68:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32c6c:	4b 01       	movw	r8, r22
   32c6e:	5c 01       	movw	r10, r24
                                    (-c2 * measured_pts[2 * i + 1])));
                    float fx = c1 * measured_pts[2 * i] - s2 * measured_pts[2 * i + 1] + cntr[0] - pgm_read_float(true_pts + i * 2);
   32c70:	e4 96       	adiw	r28, 0x34	; 52
   32c72:	2c ad       	ldd	r18, Y+60	; 0x3c
   32c74:	3d ad       	ldd	r19, Y+61	; 0x3d
   32c76:	4e ad       	ldd	r20, Y+62	; 0x3e
   32c78:	5f ad       	ldd	r21, Y+63	; 0x3f
   32c7a:	e4 97       	sbiw	r28, 0x34	; 52
   32c7c:	6e 96       	adiw	r28, 0x1e	; 30
   32c7e:	6c ad       	ldd	r22, Y+60	; 0x3c
   32c80:	7d ad       	ldd	r23, Y+61	; 0x3d
   32c82:	8e ad       	ldd	r24, Y+62	; 0x3e
   32c84:	9f ad       	ldd	r25, Y+63	; 0x3f
   32c86:	6e 97       	sbiw	r28, 0x1e	; 30
   32c88:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32c8c:	6b 01       	movw	r12, r22
   32c8e:	7c 01       	movw	r14, r24
   32c90:	f1 01       	movw	r30, r2
   32c92:	25 91       	lpm	r18, Z+
   32c94:	35 91       	lpm	r19, Z+
   32c96:	45 91       	lpm	r20, Z+
   32c98:	54 91       	lpm	r21, Z
   32c9a:	cb 55       	subi	r28, 0x5B	; 91
   32c9c:	df 4f       	sbci	r29, 0xFF	; 255
   32c9e:	28 83       	st	Y, r18
   32ca0:	39 83       	std	Y+1, r19	; 0x01
   32ca2:	4a 83       	std	Y+2, r20	; 0x02
   32ca4:	5b 83       	std	Y+3, r21	; 0x03
   32ca6:	c5 5a       	subi	r28, 0xA5	; 165
   32ca8:	d0 40       	sbci	r29, 0x00	; 0
   32caa:	a3 01       	movw	r20, r6
   32cac:	92 01       	movw	r18, r4
   32cae:	cb 56       	subi	r28, 0x6B	; 107
   32cb0:	df 4f       	sbci	r29, 0xFF	; 255
   32cb2:	68 81       	ld	r22, Y
   32cb4:	79 81       	ldd	r23, Y+1	; 0x01
   32cb6:	8a 81       	ldd	r24, Y+2	; 0x02
   32cb8:	9b 81       	ldd	r25, Y+3	; 0x03
   32cba:	c5 59       	subi	r28, 0x95	; 149
   32cbc:	d0 40       	sbci	r29, 0x00	; 0
   32cbe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32cc2:	9b 01       	movw	r18, r22
   32cc4:	ac 01       	movw	r20, r24
   32cc6:	c7 01       	movw	r24, r14
   32cc8:	b6 01       	movw	r22, r12
   32cca:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   32cce:	c5 55       	subi	r28, 0x55	; 85
   32cd0:	df 4f       	sbci	r29, 0xFF	; 255
   32cd2:	28 81       	ld	r18, Y
   32cd4:	39 81       	ldd	r19, Y+1	; 0x01
   32cd6:	4a 81       	ldd	r20, Y+2	; 0x02
   32cd8:	5b 81       	ldd	r21, Y+3	; 0x03
   32cda:	cb 5a       	subi	r28, 0xAB	; 171
   32cdc:	d0 40       	sbci	r29, 0x00	; 0
   32cde:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32ce2:	cb 55       	subi	r28, 0x5B	; 91
   32ce4:	df 4f       	sbci	r29, 0xFF	; 255
   32ce6:	28 81       	ld	r18, Y
   32ce8:	39 81       	ldd	r19, Y+1	; 0x01
   32cea:	4a 81       	ldd	r20, Y+2	; 0x02
   32cec:	5b 81       	ldd	r21, Y+3	; 0x03
   32cee:	c5 5a       	subi	r28, 0xA5	; 165
   32cf0:	d0 40       	sbci	r29, 0x00	; 0
   32cf2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
                    float w = point_weight_x(i, measured_pts[2 * i + 1]);
                    acc += j * fx * w;
   32cf6:	a5 01       	movw	r20, r10
   32cf8:	94 01       	movw	r18, r8
   32cfa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32cfe:	c3 57       	subi	r28, 0x73	; 115
   32d00:	df 4f       	sbci	r29, 0xFF	; 255
   32d02:	28 81       	ld	r18, Y
   32d04:	cd 58       	subi	r28, 0x8D	; 141
   32d06:	d0 40       	sbci	r29, 0x00	; 0
   32d08:	c3 56       	subi	r28, 0x63	; 99
   32d0a:	df 4f       	sbci	r29, 0xFF	; 255
   32d0c:	38 81       	ld	r19, Y
   32d0e:	cd 59       	subi	r28, 0x9D	; 157
   32d10:	d0 40       	sbci	r29, 0x00	; 0
   32d12:	cf 55       	subi	r28, 0x5F	; 95
   32d14:	df 4f       	sbci	r29, 0xFF	; 255
   32d16:	48 81       	ld	r20, Y
   32d18:	c1 5a       	subi	r28, 0xA1	; 161
   32d1a:	d0 40       	sbci	r29, 0x00	; 0
   32d1c:	51 2f       	mov	r21, r17
   32d1e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32d22:	c3 57       	subi	r28, 0x73	; 115
   32d24:	df 4f       	sbci	r29, 0xFF	; 255
   32d26:	68 83       	st	Y, r22
   32d28:	79 83       	std	Y+1, r23	; 0x01
   32d2a:	8a 83       	std	Y+2, r24	; 0x02
   32d2c:	9b 83       	std	Y+3, r25	; 0x03
   32d2e:	cd 58       	subi	r28, 0x8D	; 141
   32d30:	d0 40       	sbci	r29, 0x00	; 0
                }
                {
                    float j =
                         (r == 0) ? 0.f :
   32d32:	00 23       	and	r16, r16
   32d34:	11 f4       	brne	.+4      	; 0x32d3a <gcode_M45(bool, signed char) [clone .constprop.76]+0x1172>
   32d36:	0d 94 cd 9e 	jmp	0x33d9a	; 0x33d9a <gcode_M45(bool, signed char) [clone .constprop.76]+0x21d2>
                        ((r == 1) ? 1.f :
   32d3a:	01 30       	cpi	r16, 0x01	; 1
   32d3c:	11 f4       	brne	.+4      	; 0x32d42 <gcode_M45(bool, signed char) [clone .constprop.76]+0x117a>
   32d3e:	0d 94 d2 9e 	jmp	0x33da4	; 0x33da4 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21dc>
                        ((r == 2) ? ( c1 * measured_pts[2 * i]) :
   32d42:	02 30       	cpi	r16, 0x02	; 2
   32d44:	61 f0       	breq	.+24     	; 0x32d5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x1196>
   32d46:	a3 01       	movw	r20, r6
   32d48:	92 01       	movw	r18, r4
   32d4a:	ed 96       	adiw	r28, 0x3d	; 61
   32d4c:	6c ad       	ldd	r22, Y+60	; 0x3c
   32d4e:	7d ad       	ldd	r23, Y+61	; 0x3d
   32d50:	8e ad       	ldd	r24, Y+62	; 0x3e
   32d52:	9f ad       	ldd	r25, Y+63	; 0x3f
   32d54:	ed 97       	sbiw	r28, 0x3d	; 61
   32d56:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32d5a:	6b 01       	movw	r12, r22
   32d5c:	7c 01       	movw	r14, r24
                                    (-s2 * measured_pts[2 * i + 1])));
                    float fy = s1 * measured_pts[2 * i] + c2 * measured_pts[2 * i + 1] + cntr[1] - pgm_read_float(true_pts + i * 2 + 1);
   32d5e:	f1 01       	movw	r30, r2
   32d60:	34 96       	adiw	r30, 0x04	; 4
   32d62:	85 90       	lpm	r8, Z+
   32d64:	95 90       	lpm	r9, Z+
   32d66:	a5 90       	lpm	r10, Z+
   32d68:	b4 90       	lpm	r11, Z
   32d6a:	e4 96       	adiw	r28, 0x34	; 52
   32d6c:	2c ad       	ldd	r18, Y+60	; 0x3c
   32d6e:	3d ad       	ldd	r19, Y+61	; 0x3d
   32d70:	4e ad       	ldd	r20, Y+62	; 0x3e
   32d72:	5f ad       	ldd	r21, Y+63	; 0x3f
   32d74:	e4 97       	sbiw	r28, 0x34	; 52
   32d76:	cb 57       	subi	r28, 0x7B	; 123
   32d78:	df 4f       	sbci	r29, 0xFF	; 255
   32d7a:	68 81       	ld	r22, Y
   32d7c:	79 81       	ldd	r23, Y+1	; 0x01
   32d7e:	8a 81       	ldd	r24, Y+2	; 0x02
   32d80:	9b 81       	ldd	r25, Y+3	; 0x03
   32d82:	c5 58       	subi	r28, 0x85	; 133
   32d84:	d0 40       	sbci	r29, 0x00	; 0
   32d86:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32d8a:	e4 96       	adiw	r28, 0x34	; 52
   32d8c:	6c af       	std	Y+60, r22	; 0x3c
   32d8e:	7d af       	std	Y+61, r23	; 0x3d
   32d90:	8e af       	std	Y+62, r24	; 0x3e
   32d92:	9f af       	std	Y+63, r25	; 0x3f
   32d94:	e4 97       	sbiw	r28, 0x34	; 52
   32d96:	a3 01       	movw	r20, r6
   32d98:	92 01       	movw	r18, r4
   32d9a:	c7 57       	subi	r28, 0x77	; 119
   32d9c:	df 4f       	sbci	r29, 0xFF	; 255
   32d9e:	68 81       	ld	r22, Y
   32da0:	79 81       	ldd	r23, Y+1	; 0x01
   32da2:	8a 81       	ldd	r24, Y+2	; 0x02
   32da4:	9b 81       	ldd	r25, Y+3	; 0x03
   32da6:	c9 58       	subi	r28, 0x89	; 137
   32da8:	d0 40       	sbci	r29, 0x00	; 0
   32daa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32dae:	9b 01       	movw	r18, r22
   32db0:	ac 01       	movw	r20, r24
   32db2:	e4 96       	adiw	r28, 0x34	; 52
   32db4:	6c ad       	ldd	r22, Y+60	; 0x3c
   32db6:	7d ad       	ldd	r23, Y+61	; 0x3d
   32db8:	8e ad       	ldd	r24, Y+62	; 0x3e
   32dba:	9f ad       	ldd	r25, Y+63	; 0x3f
   32dbc:	e4 97       	sbiw	r28, 0x34	; 52
   32dbe:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32dc2:	c1 55       	subi	r28, 0x51	; 81
   32dc4:	df 4f       	sbci	r29, 0xFF	; 255
   32dc6:	28 81       	ld	r18, Y
   32dc8:	39 81       	ldd	r19, Y+1	; 0x01
   32dca:	4a 81       	ldd	r20, Y+2	; 0x02
   32dcc:	5b 81       	ldd	r21, Y+3	; 0x03
   32dce:	cf 5a       	subi	r28, 0xAF	; 175
   32dd0:	d0 40       	sbci	r29, 0x00	; 0
   32dd2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32dd6:	a5 01       	movw	r20, r10
   32dd8:	94 01       	movw	r18, r8
   32dda:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
                    float w = point_weight_y(i, measured_pts[2 * i + 1]);
                    acc += j * fy * w;
   32dde:	a7 01       	movw	r20, r14
   32de0:	96 01       	movw	r18, r12
   32de2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   32de6:	c3 57       	subi	r28, 0x73	; 115
   32de8:	df 4f       	sbci	r29, 0xFF	; 255
   32dea:	28 81       	ld	r18, Y
   32dec:	39 81       	ldd	r19, Y+1	; 0x01
   32dee:	4a 81       	ldd	r20, Y+2	; 0x02
   32df0:	5b 81       	ldd	r21, Y+3	; 0x03
   32df2:	cd 58       	subi	r28, 0x8D	; 141
   32df4:	d0 40       	sbci	r29, 0x00	; 0
   32df6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   32dfa:	c3 57       	subi	r28, 0x73	; 115
   32dfc:	df 4f       	sbci	r29, 0xFF	; 255
   32dfe:	68 83       	st	Y, r22
   32e00:	cd 58       	subi	r28, 0x8D	; 141
   32e02:	d0 40       	sbci	r29, 0x00	; 0
   32e04:	c3 56       	subi	r28, 0x63	; 99
   32e06:	df 4f       	sbci	r29, 0xFF	; 255
   32e08:	78 83       	st	Y, r23
   32e0a:	cd 59       	subi	r28, 0x9D	; 157
   32e0c:	d0 40       	sbci	r29, 0x00	; 0
   32e0e:	cf 55       	subi	r28, 0x5F	; 95
   32e10:	df 4f       	sbci	r29, 0xFF	; 255
   32e12:	88 83       	st	Y, r24
   32e14:	c1 5a       	subi	r28, 0xA1	; 161
   32e16:	d0 40       	sbci	r29, 0x00	; 0
   32e18:	19 2f       	mov	r17, r25
   32e1a:	a8 96       	adiw	r28, 0x28	; 40
   32e1c:	4e ad       	ldd	r20, Y+62	; 0x3e
   32e1e:	5f ad       	ldd	r21, Y+63	; 0x3f
   32e20:	a8 97       	sbiw	r28, 0x28	; 40
   32e22:	48 5f       	subi	r20, 0xF8	; 248
   32e24:	5f 4f       	sbci	r21, 0xFF	; 255
   32e26:	a8 96       	adiw	r28, 0x28	; 40
   32e28:	5f af       	std	Y+63, r21	; 0x3f
   32e2a:	4e af       	std	Y+62, r20	; 0x3e
   32e2c:	a8 97       	sbiw	r28, 0x28	; 40
   32e2e:	58 e0       	ldi	r21, 0x08	; 8
   32e30:	25 0e       	add	r2, r21
   32e32:	31 1c       	adc	r3, r1
                }
                A[r][c] = acc;
            }
            // J^T times f(x)
            acc = 0.f;
            for (uint8_t i = 0; i < npts; ++i) {
   32e34:	a2 ee       	ldi	r26, 0xE2	; 226
   32e36:	b3 e1       	ldi	r27, 0x13	; 19
   32e38:	a8 96       	adiw	r28, 0x28	; 40
   32e3a:	ee ad       	ldd	r30, Y+62	; 0x3e
   32e3c:	ff ad       	ldd	r31, Y+63	; 0x3f
   32e3e:	a8 97       	sbiw	r28, 0x28	; 40
   32e40:	ae 17       	cp	r26, r30
   32e42:	bf 07       	cpc	r27, r31
   32e44:	09 f0       	breq	.+2      	; 0x32e48 <gcode_M45(bool, signed char) [clone .constprop.76]+0x1280>
   32e46:	e5 ce       	rjmp	.-566    	; 0x32c12 <gcode_M45(bool, signed char) [clone .constprop.76]+0x104a>
                    float fy = s1 * measured_pts[2 * i] + c2 * measured_pts[2 * i + 1] + cntr[1] - pgm_read_float(true_pts + i * 2 + 1);
                    float w = point_weight_y(i, measured_pts[2 * i + 1]);
                    acc += j * fy * w;
                }
            }
            b[r] = -acc;
   32e48:	90 58       	subi	r25, 0x80	; 128
   32e4a:	c7 56       	subi	r28, 0x67	; 103
   32e4c:	df 4f       	sbci	r29, 0xFF	; 255
   32e4e:	a8 81       	ld	r26, Y
   32e50:	b9 81       	ldd	r27, Y+1	; 0x01
   32e52:	c9 59       	subi	r28, 0x99	; 153
   32e54:	d0 40       	sbci	r29, 0x00	; 0
   32e56:	6d 93       	st	X+, r22
   32e58:	7d 93       	st	X+, r23
   32e5a:	8d 93       	st	X+, r24
   32e5c:	9d 93       	st	X+, r25
   32e5e:	c7 56       	subi	r28, 0x67	; 103
   32e60:	df 4f       	sbci	r29, 0xFF	; 255
   32e62:	b9 83       	std	Y+1, r27	; 0x01
   32e64:	a8 83       	st	Y, r26
   32e66:	c9 59       	subi	r28, 0x99	; 153
   32e68:	d0 40       	sbci	r29, 0x00	; 0
        // Prepare the Normal equation for the Gauss-Newton method.
        float A[4][4] = { 0.f };
        float b[4] = { 0.f };
        float acc;
		delay_keep_alive(0); //manage heater, reset watchdog, manage inactivity
        for (uint8_t r = 0; r < 4; ++r) {
   32e6a:	0f 5f       	subi	r16, 0xFF	; 255
   32e6c:	ac 96       	adiw	r28, 0x2c	; 44
   32e6e:	ee ad       	ldd	r30, Y+62	; 0x3e
   32e70:	ff ad       	ldd	r31, Y+63	; 0x3f
   32e72:	ac 97       	sbiw	r28, 0x2c	; 44
   32e74:	70 96       	adiw	r30, 0x10	; 16
   32e76:	ac 96       	adiw	r28, 0x2c	; 44
   32e78:	ff af       	std	Y+63, r31	; 0x3f
   32e7a:	ee af       	std	Y+62, r30	; 0x3e
   32e7c:	ac 97       	sbiw	r28, 0x2c	; 44
   32e7e:	04 30       	cpi	r16, 0x04	; 4
   32e80:	09 f0       	breq	.+2      	; 0x32e84 <gcode_M45(bool, signed char) [clone .constprop.76]+0x12bc>
   32e82:	21 ce       	rjmp	.-958    	; 0x32ac6 <gcode_M45(bool, signed char) [clone .constprop.76]+0xefe>
        }

        // Solve for h by a Gauss iteration method.
        float h[4] = { 0.f };
        for (uint8_t gauss_iter = 0; gauss_iter < 100; ++gauss_iter) {
            h[0] = (b[0] - A[0][1] * h[1] - A[0][2] * h[2] - A[0][3] * h[3]) / A[0][0];
   32e84:	25 96       	adiw	r28, 0x05	; 5
   32e86:	2c ad       	ldd	r18, Y+60	; 0x3c
   32e88:	3d ad       	ldd	r19, Y+61	; 0x3d
   32e8a:	4e ad       	ldd	r20, Y+62	; 0x3e
   32e8c:	5f ad       	ldd	r21, Y+63	; 0x3f
   32e8e:	25 97       	sbiw	r28, 0x05	; 5
   32e90:	ae 96       	adiw	r28, 0x2e	; 46
   32e92:	2c af       	std	Y+60, r18	; 0x3c
   32e94:	3d af       	std	Y+61, r19	; 0x3d
   32e96:	4e af       	std	Y+62, r20	; 0x3e
   32e98:	5f af       	std	Y+63, r21	; 0x3f
   32e9a:	ae 97       	sbiw	r28, 0x2e	; 46
   32e9c:	8d 81       	ldd	r24, Y+5	; 0x05
   32e9e:	9e 81       	ldd	r25, Y+6	; 0x06
   32ea0:	af 81       	ldd	r26, Y+7	; 0x07
   32ea2:	b8 85       	ldd	r27, Y+8	; 0x08
   32ea4:	e4 96       	adiw	r28, 0x34	; 52
   32ea6:	8c af       	std	Y+60, r24	; 0x3c
   32ea8:	9d af       	std	Y+61, r25	; 0x3d
   32eaa:	ae af       	std	Y+62, r26	; 0x3e
   32eac:	bf af       	std	Y+63, r27	; 0x3f
   32eae:	e4 97       	sbiw	r28, 0x34	; 52
   32eb0:	29 85       	ldd	r18, Y+9	; 0x09
   32eb2:	3a 85       	ldd	r19, Y+10	; 0x0a
   32eb4:	4b 85       	ldd	r20, Y+11	; 0x0b
   32eb6:	5c 85       	ldd	r21, Y+12	; 0x0c
   32eb8:	ed 96       	adiw	r28, 0x3d	; 61
   32eba:	2c af       	std	Y+60, r18	; 0x3c
   32ebc:	3d af       	std	Y+61, r19	; 0x3d
   32ebe:	4e af       	std	Y+62, r20	; 0x3e
   32ec0:	5f af       	std	Y+63, r21	; 0x3f
   32ec2:	ed 97       	sbiw	r28, 0x3d	; 61
   32ec4:	8d 85       	ldd	r24, Y+13	; 0x0d
   32ec6:	9e 85       	ldd	r25, Y+14	; 0x0e
   32ec8:	af 85       	ldd	r26, Y+15	; 0x0f
   32eca:	b8 89       	ldd	r27, Y+16	; 0x10
   32ecc:	c3 58       	subi	r28, 0x83	; 131
   32ece:	df 4f       	sbci	r29, 0xFF	; 255
   32ed0:	88 83       	st	Y, r24
   32ed2:	99 83       	std	Y+1, r25	; 0x01
   32ed4:	aa 83       	std	Y+2, r26	; 0x02
   32ed6:	bb 83       	std	Y+3, r27	; 0x03
   32ed8:	cd 57       	subi	r28, 0x7D	; 125
   32eda:	d0 40       	sbci	r29, 0x00	; 0
   32edc:	29 81       	ldd	r18, Y+1	; 0x01
   32ede:	3a 81       	ldd	r19, Y+2	; 0x02
   32ee0:	4b 81       	ldd	r20, Y+3	; 0x03
   32ee2:	5c 81       	ldd	r21, Y+4	; 0x04
   32ee4:	cf 57       	subi	r28, 0x7F	; 127
   32ee6:	df 4f       	sbci	r29, 0xFF	; 255
   32ee8:	28 83       	st	Y, r18
   32eea:	39 83       	std	Y+1, r19	; 0x01
   32eec:	4a 83       	std	Y+2, r20	; 0x02
   32eee:	5b 83       	std	Y+3, r21	; 0x03
   32ef0:	c1 58       	subi	r28, 0x81	; 129
   32ef2:	d0 40       	sbci	r29, 0x00	; 0
            h[1] = (b[1] - A[1][0] * h[0] - A[1][2] * h[2] - A[1][3] * h[3]) / A[1][1];
   32ef4:	29 96       	adiw	r28, 0x09	; 9
   32ef6:	8c ad       	ldd	r24, Y+60	; 0x3c
   32ef8:	9d ad       	ldd	r25, Y+61	; 0x3d
   32efa:	ae ad       	ldd	r26, Y+62	; 0x3e
   32efc:	bf ad       	ldd	r27, Y+63	; 0x3f
   32efe:	29 97       	sbiw	r28, 0x09	; 9
   32f00:	cb 57       	subi	r28, 0x7B	; 123
   32f02:	df 4f       	sbci	r29, 0xFF	; 255
   32f04:	88 83       	st	Y, r24
   32f06:	99 83       	std	Y+1, r25	; 0x01
   32f08:	aa 83       	std	Y+2, r26	; 0x02
   32f0a:	bb 83       	std	Y+3, r27	; 0x03
   32f0c:	c5 58       	subi	r28, 0x85	; 133
   32f0e:	d0 40       	sbci	r29, 0x00	; 0
   32f10:	29 89       	ldd	r18, Y+17	; 0x11
   32f12:	3a 89       	ldd	r19, Y+18	; 0x12
   32f14:	4b 89       	ldd	r20, Y+19	; 0x13
   32f16:	5c 89       	ldd	r21, Y+20	; 0x14
   32f18:	c7 57       	subi	r28, 0x77	; 119
   32f1a:	df 4f       	sbci	r29, 0xFF	; 255
   32f1c:	28 83       	st	Y, r18
   32f1e:	39 83       	std	Y+1, r19	; 0x01
   32f20:	4a 83       	std	Y+2, r20	; 0x02
   32f22:	5b 83       	std	Y+3, r21	; 0x03
   32f24:	c9 58       	subi	r28, 0x89	; 137
   32f26:	d0 40       	sbci	r29, 0x00	; 0
   32f28:	89 8d       	ldd	r24, Y+25	; 0x19
   32f2a:	9a 8d       	ldd	r25, Y+26	; 0x1a
   32f2c:	ab 8d       	ldd	r26, Y+27	; 0x1b
   32f2e:	bc 8d       	ldd	r27, Y+28	; 0x1c
   32f30:	cb 56       	subi	r28, 0x6B	; 107
   32f32:	df 4f       	sbci	r29, 0xFF	; 255
   32f34:	88 83       	st	Y, r24
   32f36:	99 83       	std	Y+1, r25	; 0x01
   32f38:	aa 83       	std	Y+2, r26	; 0x02
   32f3a:	bb 83       	std	Y+3, r27	; 0x03
   32f3c:	c5 59       	subi	r28, 0x95	; 149
   32f3e:	d0 40       	sbci	r29, 0x00	; 0
   32f40:	2d 8d       	ldd	r18, Y+29	; 0x1d
   32f42:	3e 8d       	ldd	r19, Y+30	; 0x1e
   32f44:	4f 8d       	ldd	r20, Y+31	; 0x1f
   32f46:	58 a1       	ldd	r21, Y+32	; 0x20
   32f48:	c7 56       	subi	r28, 0x67	; 103
   32f4a:	df 4f       	sbci	r29, 0xFF	; 255
   32f4c:	28 83       	st	Y, r18
   32f4e:	39 83       	std	Y+1, r19	; 0x01
   32f50:	4a 83       	std	Y+2, r20	; 0x02
   32f52:	5b 83       	std	Y+3, r21	; 0x03
   32f54:	c9 59       	subi	r28, 0x99	; 153
   32f56:	d0 40       	sbci	r29, 0x00	; 0
   32f58:	8d 89       	ldd	r24, Y+21	; 0x15
   32f5a:	9e 89       	ldd	r25, Y+22	; 0x16
   32f5c:	af 89       	ldd	r26, Y+23	; 0x17
   32f5e:	b8 8d       	ldd	r27, Y+24	; 0x18
   32f60:	c3 57       	subi	r28, 0x73	; 115
   32f62:	df 4f       	sbci	r29, 0xFF	; 255
   32f64:	88 83       	st	Y, r24
   32f66:	99 83       	std	Y+1, r25	; 0x01
   32f68:	aa 83       	std	Y+2, r26	; 0x02
   32f6a:	bb 83       	std	Y+3, r27	; 0x03
   32f6c:	cd 58       	subi	r28, 0x8D	; 141
   32f6e:	d0 40       	sbci	r29, 0x00	; 0
            h[2] = (b[2] - A[2][0] * h[0] - A[2][1] * h[1] - A[2][3] * h[3]) / A[2][2];
   32f70:	2d 96       	adiw	r28, 0x0d	; 13
   32f72:	2c ad       	ldd	r18, Y+60	; 0x3c
   32f74:	3d ad       	ldd	r19, Y+61	; 0x3d
   32f76:	4e ad       	ldd	r20, Y+62	; 0x3e
   32f78:	5f ad       	ldd	r21, Y+63	; 0x3f
   32f7a:	2d 97       	sbiw	r28, 0x0d	; 13
   32f7c:	c3 56       	subi	r28, 0x63	; 99
   32f7e:	df 4f       	sbci	r29, 0xFF	; 255
   32f80:	28 83       	st	Y, r18
   32f82:	39 83       	std	Y+1, r19	; 0x01
   32f84:	4a 83       	std	Y+2, r20	; 0x02
   32f86:	5b 83       	std	Y+3, r21	; 0x03
   32f88:	cd 59       	subi	r28, 0x9D	; 157
   32f8a:	d0 40       	sbci	r29, 0x00	; 0
   32f8c:	89 a1       	ldd	r24, Y+33	; 0x21
   32f8e:	9a a1       	ldd	r25, Y+34	; 0x22
   32f90:	ab a1       	ldd	r26, Y+35	; 0x23
   32f92:	bc a1       	ldd	r27, Y+36	; 0x24
   32f94:	cf 55       	subi	r28, 0x5F	; 95
   32f96:	df 4f       	sbci	r29, 0xFF	; 255
   32f98:	88 83       	st	Y, r24
   32f9a:	99 83       	std	Y+1, r25	; 0x01
   32f9c:	aa 83       	std	Y+2, r26	; 0x02
   32f9e:	bb 83       	std	Y+3, r27	; 0x03
   32fa0:	c1 5a       	subi	r28, 0xA1	; 161
   32fa2:	d0 40       	sbci	r29, 0x00	; 0
   32fa4:	2d a1       	ldd	r18, Y+37	; 0x25
   32fa6:	3e a1       	ldd	r19, Y+38	; 0x26
   32fa8:	4f a1       	ldd	r20, Y+39	; 0x27
   32faa:	58 a5       	ldd	r21, Y+40	; 0x28
   32fac:	cb 55       	subi	r28, 0x5B	; 91
   32fae:	df 4f       	sbci	r29, 0xFF	; 255
   32fb0:	28 83       	st	Y, r18
   32fb2:	39 83       	std	Y+1, r19	; 0x01
   32fb4:	4a 83       	std	Y+2, r20	; 0x02
   32fb6:	5b 83       	std	Y+3, r21	; 0x03
   32fb8:	c5 5a       	subi	r28, 0xA5	; 165
   32fba:	d0 40       	sbci	r29, 0x00	; 0
   32fbc:	8d a5       	ldd	r24, Y+45	; 0x2d
   32fbe:	9e a5       	ldd	r25, Y+46	; 0x2e
   32fc0:	af a5       	ldd	r26, Y+47	; 0x2f
   32fc2:	b8 a9       	ldd	r27, Y+48	; 0x30
   32fc4:	cd 54       	subi	r28, 0x4D	; 77
   32fc6:	df 4f       	sbci	r29, 0xFF	; 255
   32fc8:	88 83       	st	Y, r24
   32fca:	99 83       	std	Y+1, r25	; 0x01
   32fcc:	aa 83       	std	Y+2, r26	; 0x02
   32fce:	bb 83       	std	Y+3, r27	; 0x03
   32fd0:	c3 5b       	subi	r28, 0xB3	; 179
   32fd2:	d0 40       	sbci	r29, 0x00	; 0
   32fd4:	29 a5       	ldd	r18, Y+41	; 0x29
   32fd6:	3a a5       	ldd	r19, Y+42	; 0x2a
   32fd8:	4b a5       	ldd	r20, Y+43	; 0x2b
   32fda:	5c a5       	ldd	r21, Y+44	; 0x2c
   32fdc:	c9 54       	subi	r28, 0x49	; 73
   32fde:	df 4f       	sbci	r29, 0xFF	; 255
   32fe0:	28 83       	st	Y, r18
   32fe2:	39 83       	std	Y+1, r19	; 0x01
   32fe4:	4a 83       	std	Y+2, r20	; 0x02
   32fe6:	5b 83       	std	Y+3, r21	; 0x03
   32fe8:	c7 5b       	subi	r28, 0xB7	; 183
   32fea:	d0 40       	sbci	r29, 0x00	; 0
            h[3] = (b[3] - A[3][0] * h[0] - A[3][1] * h[1] - A[3][2] * h[2]) / A[3][3];
   32fec:	61 96       	adiw	r28, 0x11	; 17
   32fee:	8c ad       	ldd	r24, Y+60	; 0x3c
   32ff0:	9d ad       	ldd	r25, Y+61	; 0x3d
   32ff2:	ae ad       	ldd	r26, Y+62	; 0x3e
   32ff4:	bf ad       	ldd	r27, Y+63	; 0x3f
   32ff6:	61 97       	sbiw	r28, 0x11	; 17
   32ff8:	c5 54       	subi	r28, 0x45	; 69
   32ffa:	df 4f       	sbci	r29, 0xFF	; 255
   32ffc:	88 83       	st	Y, r24
   32ffe:	99 83       	std	Y+1, r25	; 0x01
   33000:	aa 83       	std	Y+2, r26	; 0x02
   33002:	bb 83       	std	Y+3, r27	; 0x03
   33004:	cb 5b       	subi	r28, 0xBB	; 187
   33006:	d0 40       	sbci	r29, 0x00	; 0
   33008:	29 a9       	ldd	r18, Y+49	; 0x31
   3300a:	3a a9       	ldd	r19, Y+50	; 0x32
   3300c:	4b a9       	ldd	r20, Y+51	; 0x33
   3300e:	5c a9       	ldd	r21, Y+52	; 0x34
   33010:	c1 54       	subi	r28, 0x41	; 65
   33012:	df 4f       	sbci	r29, 0xFF	; 255
   33014:	28 83       	st	Y, r18
   33016:	39 83       	std	Y+1, r19	; 0x01
   33018:	4a 83       	std	Y+2, r20	; 0x02
   3301a:	5b 83       	std	Y+3, r21	; 0x03
   3301c:	cf 5b       	subi	r28, 0xBF	; 191
   3301e:	d0 40       	sbci	r29, 0x00	; 0
   33020:	8d a9       	ldd	r24, Y+53	; 0x35
   33022:	9e a9       	ldd	r25, Y+54	; 0x36
   33024:	af a9       	ldd	r26, Y+55	; 0x37
   33026:	b8 ad       	ldd	r27, Y+56	; 0x38
   33028:	cd 53       	subi	r28, 0x3D	; 61
   3302a:	df 4f       	sbci	r29, 0xFF	; 255
   3302c:	88 83       	st	Y, r24
   3302e:	99 83       	std	Y+1, r25	; 0x01
   33030:	aa 83       	std	Y+2, r26	; 0x02
   33032:	bb 83       	std	Y+3, r27	; 0x03
   33034:	c3 5c       	subi	r28, 0xC3	; 195
   33036:	d0 40       	sbci	r29, 0x00	; 0
   33038:	29 ad       	ldd	r18, Y+57	; 0x39
   3303a:	3a ad       	ldd	r19, Y+58	; 0x3a
   3303c:	4b ad       	ldd	r20, Y+59	; 0x3b
   3303e:	5c ad       	ldd	r21, Y+60	; 0x3c
   33040:	c9 53       	subi	r28, 0x39	; 57
   33042:	df 4f       	sbci	r29, 0xFF	; 255
   33044:	28 83       	st	Y, r18
   33046:	39 83       	std	Y+1, r19	; 0x01
   33048:	4a 83       	std	Y+2, r20	; 0x02
   3304a:	5b 83       	std	Y+3, r21	; 0x03
   3304c:	c7 5c       	subi	r28, 0xC7	; 199
   3304e:	d0 40       	sbci	r29, 0x00	; 0
   33050:	21 96       	adiw	r28, 0x01	; 1
   33052:	8c ad       	ldd	r24, Y+60	; 0x3c
   33054:	9d ad       	ldd	r25, Y+61	; 0x3d
   33056:	ae ad       	ldd	r26, Y+62	; 0x3e
   33058:	bf ad       	ldd	r27, Y+63	; 0x3f
   3305a:	21 97       	sbiw	r28, 0x01	; 1
   3305c:	c5 53       	subi	r28, 0x35	; 53
   3305e:	df 4f       	sbci	r29, 0xFF	; 255
   33060:	88 83       	st	Y, r24
   33062:	99 83       	std	Y+1, r25	; 0x01
   33064:	aa 83       	std	Y+2, r26	; 0x02
   33066:	bb 83       	std	Y+3, r27	; 0x03
   33068:	cb 5c       	subi	r28, 0xCB	; 203
   3306a:	d0 40       	sbci	r29, 0x00	; 0
   3306c:	14 e6       	ldi	r17, 0x64	; 100
            }
            b[r] = -acc;
        }

        // Solve for h by a Gauss iteration method.
        float h[4] = { 0.f };
   3306e:	c1 2c       	mov	r12, r1
   33070:	d1 2c       	mov	r13, r1
   33072:	76 01       	movw	r14, r12
   33074:	46 01       	movw	r8, r12
   33076:	57 01       	movw	r10, r14
   33078:	26 01       	movw	r4, r12
   3307a:	37 01       	movw	r6, r14
        for (uint8_t gauss_iter = 0; gauss_iter < 100; ++gauss_iter) {
            h[0] = (b[0] - A[0][1] * h[1] - A[0][2] * h[2] - A[0][3] * h[3]) / A[0][0];
   3307c:	a3 01       	movw	r20, r6
   3307e:	92 01       	movw	r18, r4
   33080:	e4 96       	adiw	r28, 0x34	; 52
   33082:	6c ad       	ldd	r22, Y+60	; 0x3c
   33084:	7d ad       	ldd	r23, Y+61	; 0x3d
   33086:	8e ad       	ldd	r24, Y+62	; 0x3e
   33088:	9f ad       	ldd	r25, Y+63	; 0x3f
   3308a:	e4 97       	sbiw	r28, 0x34	; 52
   3308c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33090:	9b 01       	movw	r18, r22
   33092:	ac 01       	movw	r20, r24
   33094:	ae 96       	adiw	r28, 0x2e	; 46
   33096:	6c ad       	ldd	r22, Y+60	; 0x3c
   33098:	7d ad       	ldd	r23, Y+61	; 0x3d
   3309a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3309c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3309e:	ae 97       	sbiw	r28, 0x2e	; 46
   330a0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   330a4:	2b 01       	movw	r4, r22
   330a6:	3c 01       	movw	r6, r24
   330a8:	a5 01       	movw	r20, r10
   330aa:	94 01       	movw	r18, r8
   330ac:	ed 96       	adiw	r28, 0x3d	; 61
   330ae:	6c ad       	ldd	r22, Y+60	; 0x3c
   330b0:	7d ad       	ldd	r23, Y+61	; 0x3d
   330b2:	8e ad       	ldd	r24, Y+62	; 0x3e
   330b4:	9f ad       	ldd	r25, Y+63	; 0x3f
   330b6:	ed 97       	sbiw	r28, 0x3d	; 61
   330b8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   330bc:	9b 01       	movw	r18, r22
   330be:	ac 01       	movw	r20, r24
   330c0:	c3 01       	movw	r24, r6
   330c2:	b2 01       	movw	r22, r4
   330c4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   330c8:	2b 01       	movw	r4, r22
   330ca:	3c 01       	movw	r6, r24
   330cc:	a7 01       	movw	r20, r14
   330ce:	96 01       	movw	r18, r12
   330d0:	c3 58       	subi	r28, 0x83	; 131
   330d2:	df 4f       	sbci	r29, 0xFF	; 255
   330d4:	68 81       	ld	r22, Y
   330d6:	79 81       	ldd	r23, Y+1	; 0x01
   330d8:	8a 81       	ldd	r24, Y+2	; 0x02
   330da:	9b 81       	ldd	r25, Y+3	; 0x03
   330dc:	cd 57       	subi	r28, 0x7D	; 125
   330de:	d0 40       	sbci	r29, 0x00	; 0
   330e0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   330e4:	9b 01       	movw	r18, r22
   330e6:	ac 01       	movw	r20, r24
   330e8:	c3 01       	movw	r24, r6
   330ea:	b2 01       	movw	r22, r4
   330ec:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   330f0:	cf 57       	subi	r28, 0x7F	; 127
   330f2:	df 4f       	sbci	r29, 0xFF	; 255
   330f4:	28 81       	ld	r18, Y
   330f6:	39 81       	ldd	r19, Y+1	; 0x01
   330f8:	4a 81       	ldd	r20, Y+2	; 0x02
   330fa:	5b 81       	ldd	r21, Y+3	; 0x03
   330fc:	c1 58       	subi	r28, 0x81	; 129
   330fe:	d0 40       	sbci	r29, 0x00	; 0
   33100:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33104:	6e 96       	adiw	r28, 0x1e	; 30
   33106:	6c af       	std	Y+60, r22	; 0x3c
   33108:	7d af       	std	Y+61, r23	; 0x3d
   3310a:	8e af       	std	Y+62, r24	; 0x3e
   3310c:	9f af       	std	Y+63, r25	; 0x3f
   3310e:	6e 97       	sbiw	r28, 0x1e	; 30
            h[1] = (b[1] - A[1][0] * h[0] - A[1][2] * h[2] - A[1][3] * h[3]) / A[1][1];
   33110:	c7 57       	subi	r28, 0x77	; 119
   33112:	df 4f       	sbci	r29, 0xFF	; 255
   33114:	28 81       	ld	r18, Y
   33116:	39 81       	ldd	r19, Y+1	; 0x01
   33118:	4a 81       	ldd	r20, Y+2	; 0x02
   3311a:	5b 81       	ldd	r21, Y+3	; 0x03
   3311c:	c9 58       	subi	r28, 0x89	; 137
   3311e:	d0 40       	sbci	r29, 0x00	; 0
   33120:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33124:	9b 01       	movw	r18, r22
   33126:	ac 01       	movw	r20, r24
   33128:	cb 57       	subi	r28, 0x7B	; 123
   3312a:	df 4f       	sbci	r29, 0xFF	; 255
   3312c:	68 81       	ld	r22, Y
   3312e:	79 81       	ldd	r23, Y+1	; 0x01
   33130:	8a 81       	ldd	r24, Y+2	; 0x02
   33132:	9b 81       	ldd	r25, Y+3	; 0x03
   33134:	c5 58       	subi	r28, 0x85	; 133
   33136:	d0 40       	sbci	r29, 0x00	; 0
   33138:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3313c:	2b 01       	movw	r4, r22
   3313e:	3c 01       	movw	r6, r24
   33140:	a5 01       	movw	r20, r10
   33142:	94 01       	movw	r18, r8
   33144:	cb 56       	subi	r28, 0x6B	; 107
   33146:	df 4f       	sbci	r29, 0xFF	; 255
   33148:	68 81       	ld	r22, Y
   3314a:	79 81       	ldd	r23, Y+1	; 0x01
   3314c:	8a 81       	ldd	r24, Y+2	; 0x02
   3314e:	9b 81       	ldd	r25, Y+3	; 0x03
   33150:	c5 59       	subi	r28, 0x95	; 149
   33152:	d0 40       	sbci	r29, 0x00	; 0
   33154:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33158:	9b 01       	movw	r18, r22
   3315a:	ac 01       	movw	r20, r24
   3315c:	c3 01       	movw	r24, r6
   3315e:	b2 01       	movw	r22, r4
   33160:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33164:	4b 01       	movw	r8, r22
   33166:	5c 01       	movw	r10, r24
   33168:	a7 01       	movw	r20, r14
   3316a:	96 01       	movw	r18, r12
   3316c:	c7 56       	subi	r28, 0x67	; 103
   3316e:	df 4f       	sbci	r29, 0xFF	; 255
   33170:	68 81       	ld	r22, Y
   33172:	79 81       	ldd	r23, Y+1	; 0x01
   33174:	8a 81       	ldd	r24, Y+2	; 0x02
   33176:	9b 81       	ldd	r25, Y+3	; 0x03
   33178:	c9 59       	subi	r28, 0x99	; 153
   3317a:	d0 40       	sbci	r29, 0x00	; 0
   3317c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33180:	9b 01       	movw	r18, r22
   33182:	ac 01       	movw	r20, r24
   33184:	c5 01       	movw	r24, r10
   33186:	b4 01       	movw	r22, r8
   33188:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3318c:	c3 57       	subi	r28, 0x73	; 115
   3318e:	df 4f       	sbci	r29, 0xFF	; 255
   33190:	28 81       	ld	r18, Y
   33192:	39 81       	ldd	r19, Y+1	; 0x01
   33194:	4a 81       	ldd	r20, Y+2	; 0x02
   33196:	5b 81       	ldd	r21, Y+3	; 0x03
   33198:	cd 58       	subi	r28, 0x8D	; 141
   3319a:	d0 40       	sbci	r29, 0x00	; 0
   3319c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   331a0:	2b 01       	movw	r4, r22
   331a2:	3c 01       	movw	r6, r24
            h[2] = (b[2] - A[2][0] * h[0] - A[2][1] * h[1] - A[2][3] * h[3]) / A[2][2];
   331a4:	cf 55       	subi	r28, 0x5F	; 95
   331a6:	df 4f       	sbci	r29, 0xFF	; 255
   331a8:	28 81       	ld	r18, Y
   331aa:	39 81       	ldd	r19, Y+1	; 0x01
   331ac:	4a 81       	ldd	r20, Y+2	; 0x02
   331ae:	5b 81       	ldd	r21, Y+3	; 0x03
   331b0:	c1 5a       	subi	r28, 0xA1	; 161
   331b2:	d0 40       	sbci	r29, 0x00	; 0
   331b4:	6e 96       	adiw	r28, 0x1e	; 30
   331b6:	6c ad       	ldd	r22, Y+60	; 0x3c
   331b8:	7d ad       	ldd	r23, Y+61	; 0x3d
   331ba:	8e ad       	ldd	r24, Y+62	; 0x3e
   331bc:	9f ad       	ldd	r25, Y+63	; 0x3f
   331be:	6e 97       	sbiw	r28, 0x1e	; 30
   331c0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   331c4:	9b 01       	movw	r18, r22
   331c6:	ac 01       	movw	r20, r24
   331c8:	c3 56       	subi	r28, 0x63	; 99
   331ca:	df 4f       	sbci	r29, 0xFF	; 255
   331cc:	68 81       	ld	r22, Y
   331ce:	79 81       	ldd	r23, Y+1	; 0x01
   331d0:	8a 81       	ldd	r24, Y+2	; 0x02
   331d2:	9b 81       	ldd	r25, Y+3	; 0x03
   331d4:	cd 59       	subi	r28, 0x9D	; 157
   331d6:	d0 40       	sbci	r29, 0x00	; 0
   331d8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   331dc:	4b 01       	movw	r8, r22
   331de:	5c 01       	movw	r10, r24
   331e0:	cb 55       	subi	r28, 0x5B	; 91
   331e2:	df 4f       	sbci	r29, 0xFF	; 255
   331e4:	28 81       	ld	r18, Y
   331e6:	39 81       	ldd	r19, Y+1	; 0x01
   331e8:	4a 81       	ldd	r20, Y+2	; 0x02
   331ea:	5b 81       	ldd	r21, Y+3	; 0x03
   331ec:	c5 5a       	subi	r28, 0xA5	; 165
   331ee:	d0 40       	sbci	r29, 0x00	; 0
   331f0:	c3 01       	movw	r24, r6
   331f2:	b2 01       	movw	r22, r4
   331f4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   331f8:	9b 01       	movw	r18, r22
   331fa:	ac 01       	movw	r20, r24
   331fc:	c5 01       	movw	r24, r10
   331fe:	b4 01       	movw	r22, r8
   33200:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33204:	4b 01       	movw	r8, r22
   33206:	5c 01       	movw	r10, r24
   33208:	a7 01       	movw	r20, r14
   3320a:	96 01       	movw	r18, r12
   3320c:	cd 54       	subi	r28, 0x4D	; 77
   3320e:	df 4f       	sbci	r29, 0xFF	; 255
   33210:	68 81       	ld	r22, Y
   33212:	79 81       	ldd	r23, Y+1	; 0x01
   33214:	8a 81       	ldd	r24, Y+2	; 0x02
   33216:	9b 81       	ldd	r25, Y+3	; 0x03
   33218:	c3 5b       	subi	r28, 0xB3	; 179
   3321a:	d0 40       	sbci	r29, 0x00	; 0
   3321c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33220:	9b 01       	movw	r18, r22
   33222:	ac 01       	movw	r20, r24
   33224:	c5 01       	movw	r24, r10
   33226:	b4 01       	movw	r22, r8
   33228:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3322c:	c9 54       	subi	r28, 0x49	; 73
   3322e:	df 4f       	sbci	r29, 0xFF	; 255
   33230:	28 81       	ld	r18, Y
   33232:	39 81       	ldd	r19, Y+1	; 0x01
   33234:	4a 81       	ldd	r20, Y+2	; 0x02
   33236:	5b 81       	ldd	r21, Y+3	; 0x03
   33238:	c7 5b       	subi	r28, 0xB7	; 183
   3323a:	d0 40       	sbci	r29, 0x00	; 0
   3323c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33240:	4b 01       	movw	r8, r22
   33242:	5c 01       	movw	r10, r24
            h[3] = (b[3] - A[3][0] * h[0] - A[3][1] * h[1] - A[3][2] * h[2]) / A[3][3];
   33244:	c1 54       	subi	r28, 0x41	; 65
   33246:	df 4f       	sbci	r29, 0xFF	; 255
   33248:	28 81       	ld	r18, Y
   3324a:	39 81       	ldd	r19, Y+1	; 0x01
   3324c:	4a 81       	ldd	r20, Y+2	; 0x02
   3324e:	5b 81       	ldd	r21, Y+3	; 0x03
   33250:	cf 5b       	subi	r28, 0xBF	; 191
   33252:	d0 40       	sbci	r29, 0x00	; 0
   33254:	6e 96       	adiw	r28, 0x1e	; 30
   33256:	6c ad       	ldd	r22, Y+60	; 0x3c
   33258:	7d ad       	ldd	r23, Y+61	; 0x3d
   3325a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3325c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3325e:	6e 97       	sbiw	r28, 0x1e	; 30
   33260:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33264:	9b 01       	movw	r18, r22
   33266:	ac 01       	movw	r20, r24
   33268:	c5 54       	subi	r28, 0x45	; 69
   3326a:	df 4f       	sbci	r29, 0xFF	; 255
   3326c:	68 81       	ld	r22, Y
   3326e:	79 81       	ldd	r23, Y+1	; 0x01
   33270:	8a 81       	ldd	r24, Y+2	; 0x02
   33272:	9b 81       	ldd	r25, Y+3	; 0x03
   33274:	cb 5b       	subi	r28, 0xBB	; 187
   33276:	d0 40       	sbci	r29, 0x00	; 0
   33278:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3327c:	6b 01       	movw	r12, r22
   3327e:	7c 01       	movw	r14, r24
   33280:	cd 53       	subi	r28, 0x3D	; 61
   33282:	df 4f       	sbci	r29, 0xFF	; 255
   33284:	28 81       	ld	r18, Y
   33286:	39 81       	ldd	r19, Y+1	; 0x01
   33288:	4a 81       	ldd	r20, Y+2	; 0x02
   3328a:	5b 81       	ldd	r21, Y+3	; 0x03
   3328c:	c3 5c       	subi	r28, 0xC3	; 195
   3328e:	d0 40       	sbci	r29, 0x00	; 0
   33290:	c3 01       	movw	r24, r6
   33292:	b2 01       	movw	r22, r4
   33294:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33298:	9b 01       	movw	r18, r22
   3329a:	ac 01       	movw	r20, r24
   3329c:	c7 01       	movw	r24, r14
   3329e:	b6 01       	movw	r22, r12
   332a0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   332a4:	6b 01       	movw	r12, r22
   332a6:	7c 01       	movw	r14, r24
   332a8:	c9 53       	subi	r28, 0x39	; 57
   332aa:	df 4f       	sbci	r29, 0xFF	; 255
   332ac:	28 81       	ld	r18, Y
   332ae:	39 81       	ldd	r19, Y+1	; 0x01
   332b0:	4a 81       	ldd	r20, Y+2	; 0x02
   332b2:	5b 81       	ldd	r21, Y+3	; 0x03
   332b4:	c7 5c       	subi	r28, 0xC7	; 199
   332b6:	d0 40       	sbci	r29, 0x00	; 0
   332b8:	c5 01       	movw	r24, r10
   332ba:	b4 01       	movw	r22, r8
   332bc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   332c0:	9b 01       	movw	r18, r22
   332c2:	ac 01       	movw	r20, r24
   332c4:	c7 01       	movw	r24, r14
   332c6:	b6 01       	movw	r22, r12
   332c8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   332cc:	c5 53       	subi	r28, 0x35	; 53
   332ce:	df 4f       	sbci	r29, 0xFF	; 255
   332d0:	28 81       	ld	r18, Y
   332d2:	39 81       	ldd	r19, Y+1	; 0x01
   332d4:	4a 81       	ldd	r20, Y+2	; 0x02
   332d6:	5b 81       	ldd	r21, Y+3	; 0x03
   332d8:	cb 5c       	subi	r28, 0xCB	; 203
   332da:	d0 40       	sbci	r29, 0x00	; 0
   332dc:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   332e0:	6b 01       	movw	r12, r22
   332e2:	7c 01       	movw	r14, r24
   332e4:	11 50       	subi	r17, 0x01	; 1
            b[r] = -acc;
        }

        // Solve for h by a Gauss iteration method.
        float h[4] = { 0.f };
        for (uint8_t gauss_iter = 0; gauss_iter < 100; ++gauss_iter) {
   332e6:	09 f0       	breq	.+2      	; 0x332ea <gcode_M45(bool, signed char) [clone .constprop.76]+0x1722>
   332e8:	c9 ce       	rjmp	.-622    	; 0x3307c <gcode_M45(bool, signed char) [clone .constprop.76]+0x14b4>

        // and update the current position with h.
        // It may be better to use the Levenberg-Marquart method here,
        // but because we are very close to the solution alread,
        // the simple Gauss-Newton non-linear Least Squares method works well enough.
        cntr[0] += h[0];
   332ea:	6e 96       	adiw	r28, 0x1e	; 30
   332ec:	2c ad       	ldd	r18, Y+60	; 0x3c
   332ee:	3d ad       	ldd	r19, Y+61	; 0x3d
   332f0:	4e ad       	ldd	r20, Y+62	; 0x3e
   332f2:	5f ad       	ldd	r21, Y+63	; 0x3f
   332f4:	6e 97       	sbiw	r28, 0x1e	; 30
   332f6:	c5 55       	subi	r28, 0x55	; 85
   332f8:	df 4f       	sbci	r29, 0xFF	; 255
   332fa:	68 81       	ld	r22, Y
   332fc:	79 81       	ldd	r23, Y+1	; 0x01
   332fe:	8a 81       	ldd	r24, Y+2	; 0x02
   33300:	9b 81       	ldd	r25, Y+3	; 0x03
   33302:	cb 5a       	subi	r28, 0xAB	; 171
   33304:	d0 40       	sbci	r29, 0x00	; 0
   33306:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3330a:	60 93 f3 13 	sts	0x13F3, r22	; 0x8013f3 <mbl+0x31>
   3330e:	70 93 f4 13 	sts	0x13F4, r23	; 0x8013f4 <mbl+0x32>
   33312:	80 93 f5 13 	sts	0x13F5, r24	; 0x8013f5 <mbl+0x33>
   33316:	90 93 f6 13 	sts	0x13F6, r25	; 0x8013f6 <mbl+0x34>
        cntr[1] += h[1];
   3331a:	a3 01       	movw	r20, r6
   3331c:	92 01       	movw	r18, r4
   3331e:	c1 55       	subi	r28, 0x51	; 81
   33320:	df 4f       	sbci	r29, 0xFF	; 255
   33322:	68 81       	ld	r22, Y
   33324:	79 81       	ldd	r23, Y+1	; 0x01
   33326:	8a 81       	ldd	r24, Y+2	; 0x02
   33328:	9b 81       	ldd	r25, Y+3	; 0x03
   3332a:	cf 5a       	subi	r28, 0xAF	; 175
   3332c:	d0 40       	sbci	r29, 0x00	; 0
   3332e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33332:	60 93 f7 13 	sts	0x13F7, r22	; 0x8013f7 <mbl+0x35>
   33336:	70 93 f8 13 	sts	0x13F8, r23	; 0x8013f8 <mbl+0x36>
   3333a:	80 93 f9 13 	sts	0x13F9, r24	; 0x8013f9 <mbl+0x37>
   3333e:	90 93 fa 13 	sts	0x13FA, r25	; 0x8013fa <mbl+0x38>
        a1 += h[2];
   33342:	a5 01       	movw	r20, r10
   33344:	94 01       	movw	r18, r8
   33346:	a6 96       	adiw	r28, 0x26	; 38
   33348:	6c ad       	ldd	r22, Y+60	; 0x3c
   3334a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3334c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3334e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33350:	a6 97       	sbiw	r28, 0x26	; 38
   33352:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33356:	a6 96       	adiw	r28, 0x26	; 38
   33358:	6c af       	std	Y+60, r22	; 0x3c
   3335a:	7d af       	std	Y+61, r23	; 0x3d
   3335c:	8e af       	std	Y+62, r24	; 0x3e
   3335e:	9f af       	std	Y+63, r25	; 0x3f
   33360:	a6 97       	sbiw	r28, 0x26	; 38
        a2 += h[3];
   33362:	a7 01       	movw	r20, r14
   33364:	96 01       	movw	r18, r12
   33366:	a2 96       	adiw	r28, 0x22	; 34
   33368:	6c ad       	ldd	r22, Y+60	; 0x3c
   3336a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3336c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3336e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33370:	a2 97       	sbiw	r28, 0x22	; 34
   33372:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33376:	a2 96       	adiw	r28, 0x22	; 34
   33378:	6c af       	std	Y+60, r22	; 0x3c
   3337a:	7d af       	std	Y+61, r23	; 0x3d
   3337c:	8e af       	std	Y+62, r24	; 0x3e
   3337e:	9f af       	std	Y+63, r25	; 0x3f
   33380:	a2 97       	sbiw	r28, 0x22	; 34
   33382:	e6 96       	adiw	r28, 0x36	; 54
   33384:	9f ad       	ldd	r25, Y+63	; 0x3f
   33386:	e6 97       	sbiw	r28, 0x36	; 54
   33388:	91 50       	subi	r25, 0x01	; 1
   3338a:	e6 96       	adiw	r28, 0x36	; 54
   3338c:	9f af       	std	Y+63, r25	; 0x3f
   3338e:	e6 97       	sbiw	r28, 0x36	; 54
    cntr[1] = 0.f;
    // Rotation of the machine X axis from the bed X axis.
    float a1 = 0;
    // Rotation of the machine Y axis from the bed Y axis.
    float a2 = 0;
    for (int8_t iter = 0; iter < 100; ++iter) {
   33390:	91 11       	cpse	r25, r1
   33392:	e6 ca       	rjmp	.-2612   	; 0x32960 <gcode_M45(bool, signed char) [clone .constprop.76]+0xd98>
            SERIAL_ECHOLNPGM("");
        }
		#endif // SUPPORT_VERBOSITY
    }

    vec_x[0] =  cos(a1) * MACHINE_AXIS_SCALE_X;
   33394:	a6 96       	adiw	r28, 0x26	; 38
   33396:	6c ad       	ldd	r22, Y+60	; 0x3c
   33398:	7d ad       	ldd	r23, Y+61	; 0x3d
   3339a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3339c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3339e:	a6 97       	sbiw	r28, 0x26	; 38
   333a0:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   333a4:	60 93 e3 13 	sts	0x13E3, r22	; 0x8013e3 <mbl+0x21>
   333a8:	70 93 e4 13 	sts	0x13E4, r23	; 0x8013e4 <mbl+0x22>
   333ac:	80 93 e5 13 	sts	0x13E5, r24	; 0x8013e5 <mbl+0x23>
   333b0:	90 93 e6 13 	sts	0x13E6, r25	; 0x8013e6 <mbl+0x24>
    vec_x[1] =  sin(a1) * MACHINE_AXIS_SCALE_X;
   333b4:	a6 96       	adiw	r28, 0x26	; 38
   333b6:	6c ad       	ldd	r22, Y+60	; 0x3c
   333b8:	7d ad       	ldd	r23, Y+61	; 0x3d
   333ba:	8e ad       	ldd	r24, Y+62	; 0x3e
   333bc:	9f ad       	ldd	r25, Y+63	; 0x3f
   333be:	a6 97       	sbiw	r28, 0x26	; 38
   333c0:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   333c4:	60 93 e7 13 	sts	0x13E7, r22	; 0x8013e7 <mbl+0x25>
   333c8:	70 93 e8 13 	sts	0x13E8, r23	; 0x8013e8 <mbl+0x26>
   333cc:	80 93 e9 13 	sts	0x13E9, r24	; 0x8013e9 <mbl+0x27>
   333d0:	90 93 ea 13 	sts	0x13EA, r25	; 0x8013ea <mbl+0x28>
    vec_y[0] = -sin(a2) * MACHINE_AXIS_SCALE_Y;
   333d4:	a2 96       	adiw	r28, 0x22	; 34
   333d6:	6c ad       	ldd	r22, Y+60	; 0x3c
   333d8:	7d ad       	ldd	r23, Y+61	; 0x3d
   333da:	8e ad       	ldd	r24, Y+62	; 0x3e
   333dc:	9f ad       	ldd	r25, Y+63	; 0x3f
   333de:	a2 97       	sbiw	r28, 0x22	; 34
   333e0:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   333e4:	90 58       	subi	r25, 0x80	; 128
   333e6:	60 93 eb 13 	sts	0x13EB, r22	; 0x8013eb <mbl+0x29>
   333ea:	70 93 ec 13 	sts	0x13EC, r23	; 0x8013ec <mbl+0x2a>
   333ee:	80 93 ed 13 	sts	0x13ED, r24	; 0x8013ed <mbl+0x2b>
   333f2:	90 93 ee 13 	sts	0x13EE, r25	; 0x8013ee <mbl+0x2c>
    vec_y[1] =  cos(a2) * MACHINE_AXIS_SCALE_Y;
   333f6:	a2 96       	adiw	r28, 0x22	; 34
   333f8:	6c ad       	ldd	r22, Y+60	; 0x3c
   333fa:	7d ad       	ldd	r23, Y+61	; 0x3d
   333fc:	8e ad       	ldd	r24, Y+62	; 0x3e
   333fe:	9f ad       	ldd	r25, Y+63	; 0x3f
   33400:	a2 97       	sbiw	r28, 0x22	; 34
   33402:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   33406:	60 93 ef 13 	sts	0x13EF, r22	; 0x8013ef <mbl+0x2d>
   3340a:	70 93 f0 13 	sts	0x13F0, r23	; 0x8013f0 <mbl+0x2e>
   3340e:	80 93 f1 13 	sts	0x13F1, r24	; 0x8013f1 <mbl+0x2f>
   33412:	90 93 f2 13 	sts	0x13F2, r25	; 0x8013f2 <mbl+0x30>

    BedSkewOffsetDetectionResultType result = BED_SKEW_OFFSET_DETECTION_PERFECT;
    {
        angleDiff = fabs(a2 - a1);
   33416:	a6 96       	adiw	r28, 0x26	; 38
   33418:	2c ad       	ldd	r18, Y+60	; 0x3c
   3341a:	3d ad       	ldd	r19, Y+61	; 0x3d
   3341c:	4e ad       	ldd	r20, Y+62	; 0x3e
   3341e:	5f ad       	ldd	r21, Y+63	; 0x3f
   33420:	a6 97       	sbiw	r28, 0x26	; 38
   33422:	a2 96       	adiw	r28, 0x22	; 34
   33424:	6c ad       	ldd	r22, Y+60	; 0x3c
   33426:	7d ad       	ldd	r23, Y+61	; 0x3d
   33428:	8e ad       	ldd	r24, Y+62	; 0x3e
   3342a:	9f ad       	ldd	r25, Y+63	; 0x3f
   3342c:	a2 97       	sbiw	r28, 0x22	; 34
   3342e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33432:	4b 01       	movw	r8, r22
   33434:	5c 01       	movw	r10, r24
   33436:	7c 01       	movw	r14, r24
   33438:	6b 01       	movw	r12, r22
   3343a:	e8 94       	clt
   3343c:	f7 f8       	bld	r15, 7
        /// XY skew and Y-bed skew
        DBG(_n("Measured skews: %f %f\n"), degrees(a2 - a1), degrees(a2));
   3343e:	21 ee       	ldi	r18, 0xE1	; 225
   33440:	3e e2       	ldi	r19, 0x2E	; 46
   33442:	45 e6       	ldi	r20, 0x65	; 101
   33444:	52 e4       	ldi	r21, 0x42	; 66
   33446:	a2 96       	adiw	r28, 0x22	; 34
   33448:	6c ad       	ldd	r22, Y+60	; 0x3c
   3344a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3344c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3344e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33450:	a2 97       	sbiw	r28, 0x22	; 34
   33452:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33456:	9f 93       	push	r25
   33458:	8f 93       	push	r24
   3345a:	7f 93       	push	r23
   3345c:	6f 93       	push	r22
   3345e:	21 ee       	ldi	r18, 0xE1	; 225
   33460:	3e e2       	ldi	r19, 0x2E	; 46
   33462:	45 e6       	ldi	r20, 0x65	; 101
   33464:	52 e4       	ldi	r21, 0x42	; 66
   33466:	c5 01       	movw	r24, r10
   33468:	b4 01       	movw	r22, r8
   3346a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3346e:	9f 93       	push	r25
   33470:	8f 93       	push	r24
   33472:	7f 93       	push	r23
   33474:	6f 93       	push	r22
   33476:	8e e4       	ldi	r24, 0x4E	; 78
   33478:	9f e6       	ldi	r25, 0x6F	; 111
   3347a:	9f 93       	push	r25
   3347c:	8f 93       	push	r24
   3347e:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
        if (previous_value != value) {
            eeprom_float_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_float(dst, value);
   33482:	b7 01       	movw	r22, r14
   33484:	a6 01       	movw	r20, r12
   33486:	80 e6       	ldi	r24, 0x60	; 96
   33488:	9f e0       	ldi	r25, 0x0F	; 15
   3348a:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
        eeprom_update_float_notify((float *)(EEPROM_XYZ_CAL_SKEW), angleDiff); //storing xyz cal. skew to be able to show in support menu later
        if (angleDiff > bed_skew_angle_mild)
   3348e:	0f b6       	in	r0, 0x3f	; 63
   33490:	f8 94       	cli
   33492:	de bf       	out	0x3e, r29	; 62
   33494:	0f be       	out	0x3f, r0	; 63
   33496:	cd bf       	out	0x3d, r28	; 61
   33498:	2f e1       	ldi	r18, 0x1F	; 31
   3349a:	32 e4       	ldi	r19, 0x42	; 66
   3349c:	49 e0       	ldi	r20, 0x09	; 9
   3349e:	5b e3       	ldi	r21, 0x3B	; 59
   334a0:	c7 01       	movw	r24, r14
   334a2:	b6 01       	movw	r22, r12
   334a4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
    vec_x[0] =  cos(a1) * MACHINE_AXIS_SCALE_X;
    vec_x[1] =  sin(a1) * MACHINE_AXIS_SCALE_X;
    vec_y[0] = -sin(a2) * MACHINE_AXIS_SCALE_Y;
    vec_y[1] =  cos(a2) * MACHINE_AXIS_SCALE_Y;

    BedSkewOffsetDetectionResultType result = BED_SKEW_OFFSET_DETECTION_PERFECT;
   334a8:	10 e0       	ldi	r17, 0x00	; 0
    {
        angleDiff = fabs(a2 - a1);
        /// XY skew and Y-bed skew
        DBG(_n("Measured skews: %f %f\n"), degrees(a2 - a1), degrees(a2));
        eeprom_update_float_notify((float *)(EEPROM_XYZ_CAL_SKEW), angleDiff); //storing xyz cal. skew to be able to show in support menu later
        if (angleDiff > bed_skew_angle_mild)
   334aa:	18 16       	cp	r1, r24
   334ac:	64 f4       	brge	.+24     	; 0x334c6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x18fe>
            result = (angleDiff > bed_skew_angle_extreme) ?
   334ae:	25 e3       	ldi	r18, 0x35	; 53
   334b0:	3a ef       	ldi	r19, 0xFA	; 250
   334b2:	4e e8       	ldi	r20, 0x8E	; 142
   334b4:	5b e3       	ldi	r21, 0x3B	; 59
   334b6:	c7 01       	movw	r24, r14
   334b8:	b6 01       	movw	r22, r12
   334ba:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   334be:	12 e0       	ldi	r17, 0x02	; 2
   334c0:	18 16       	cp	r1, r24
   334c2:	0c f0       	brlt	.+2      	; 0x334c6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x18fe>
   334c4:	11 e0       	ldi	r17, 0x01	; 1
                BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME :
                BED_SKEW_OFFSET_DETECTION_SKEW_MILD;
        if (fabs(a1) > bed_skew_angle_extreme ||
   334c6:	25 e3       	ldi	r18, 0x35	; 53
   334c8:	3a ef       	ldi	r19, 0xFA	; 250
   334ca:	4e e8       	ldi	r20, 0x8E	; 142
   334cc:	5b e3       	ldi	r21, 0x3B	; 59
   334ce:	a6 96       	adiw	r28, 0x26	; 38
   334d0:	6c ad       	ldd	r22, Y+60	; 0x3c
   334d2:	7d ad       	ldd	r23, Y+61	; 0x3d
   334d4:	8e ad       	ldd	r24, Y+62	; 0x3e
   334d6:	9f ad       	ldd	r25, Y+63	; 0x3f
   334d8:	a6 97       	sbiw	r28, 0x26	; 38
   334da:	9f 77       	andi	r25, 0x7F	; 127
   334dc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   334e0:	18 16       	cp	r1, r24
   334e2:	0c f4       	brge	.+2      	; 0x334e6 <gcode_M45(bool, signed char) [clone .constprop.76]+0x191e>
   334e4:	67 c4       	rjmp	.+2254   	; 0x33db4 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21ec>
   334e6:	25 e3       	ldi	r18, 0x35	; 53
   334e8:	3a ef       	ldi	r19, 0xFA	; 250
   334ea:	4e e8       	ldi	r20, 0x8E	; 142
   334ec:	5b e3       	ldi	r21, 0x3B	; 59
   334ee:	a2 96       	adiw	r28, 0x22	; 34
   334f0:	6c ad       	ldd	r22, Y+60	; 0x3c
   334f2:	7d ad       	ldd	r23, Y+61	; 0x3d
   334f4:	8e ad       	ldd	r24, Y+62	; 0x3e
   334f6:	9f ad       	ldd	r25, Y+63	; 0x3f
   334f8:	a2 97       	sbiw	r28, 0x22	; 34
   334fa:	9f 77       	andi	r25, 0x7F	; 127
   334fc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   33500:	18 16       	cp	r1, r24
   33502:	0c f4       	brge	.+2      	; 0x33506 <gcode_M45(bool, signed char) [clone .constprop.76]+0x193e>
   33504:	57 c4       	rjmp	.+2222   	; 0x33db4 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21ec>
        SERIAL_ECHOLNPGM("Error after correction: ");
    }
	#endif // SUPPORT_VERBOSITY
    // Measure the error after correction.
    for (uint8_t i = 0; i < npts; ++i) {
        float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1] + cntr[0];
   33506:	20 91 e3 13 	lds	r18, 0x13E3	; 0x8013e3 <mbl+0x21>
   3350a:	30 91 e4 13 	lds	r19, 0x13E4	; 0x8013e4 <mbl+0x22>
   3350e:	40 91 e5 13 	lds	r20, 0x13E5	; 0x8013e5 <mbl+0x23>
   33512:	50 91 e6 13 	lds	r21, 0x13E6	; 0x8013e6 <mbl+0x24>
   33516:	ae 96       	adiw	r28, 0x2e	; 46
   33518:	2c af       	std	Y+60, r18	; 0x3c
   3351a:	3d af       	std	Y+61, r19	; 0x3d
   3351c:	4e af       	std	Y+62, r20	; 0x3e
   3351e:	5f af       	std	Y+63, r21	; 0x3f
   33520:	ae 97       	sbiw	r28, 0x2e	; 46
   33522:	80 91 eb 13 	lds	r24, 0x13EB	; 0x8013eb <mbl+0x29>
   33526:	90 91 ec 13 	lds	r25, 0x13EC	; 0x8013ec <mbl+0x2a>
   3352a:	a0 91 ed 13 	lds	r26, 0x13ED	; 0x8013ed <mbl+0x2b>
   3352e:	b0 91 ee 13 	lds	r27, 0x13EE	; 0x8013ee <mbl+0x2c>
   33532:	e9 96       	adiw	r28, 0x39	; 57
   33534:	8c af       	std	Y+60, r24	; 0x3c
   33536:	9d af       	std	Y+61, r25	; 0x3d
   33538:	ae af       	std	Y+62, r26	; 0x3e
   3353a:	bf af       	std	Y+63, r27	; 0x3f
   3353c:	e9 97       	sbiw	r28, 0x39	; 57
   3353e:	20 91 f3 13 	lds	r18, 0x13F3	; 0x8013f3 <mbl+0x31>
   33542:	30 91 f4 13 	lds	r19, 0x13F4	; 0x8013f4 <mbl+0x32>
   33546:	40 91 f5 13 	lds	r20, 0x13F5	; 0x8013f5 <mbl+0x33>
   3354a:	50 91 f6 13 	lds	r21, 0x13F6	; 0x8013f6 <mbl+0x34>
   3354e:	e4 96       	adiw	r28, 0x34	; 52
   33550:	2c af       	std	Y+60, r18	; 0x3c
   33552:	3d af       	std	Y+61, r19	; 0x3d
   33554:	4e af       	std	Y+62, r20	; 0x3e
   33556:	5f af       	std	Y+63, r21	; 0x3f
   33558:	e4 97       	sbiw	r28, 0x34	; 52
        float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1] + cntr[1];
   3355a:	80 91 e7 13 	lds	r24, 0x13E7	; 0x8013e7 <mbl+0x25>
   3355e:	90 91 e8 13 	lds	r25, 0x13E8	; 0x8013e8 <mbl+0x26>
   33562:	a0 91 e9 13 	lds	r26, 0x13E9	; 0x8013e9 <mbl+0x27>
   33566:	b0 91 ea 13 	lds	r27, 0x13EA	; 0x8013ea <mbl+0x28>
   3356a:	ed 96       	adiw	r28, 0x3d	; 61
   3356c:	8c af       	std	Y+60, r24	; 0x3c
   3356e:	9d af       	std	Y+61, r25	; 0x3d
   33570:	ae af       	std	Y+62, r26	; 0x3e
   33572:	bf af       	std	Y+63, r27	; 0x3f
   33574:	ed 97       	sbiw	r28, 0x3d	; 61
   33576:	20 91 ef 13 	lds	r18, 0x13EF	; 0x8013ef <mbl+0x2d>
   3357a:	30 91 f0 13 	lds	r19, 0x13F0	; 0x8013f0 <mbl+0x2e>
   3357e:	40 91 f1 13 	lds	r20, 0x13F1	; 0x8013f1 <mbl+0x2f>
   33582:	50 91 f2 13 	lds	r21, 0x13F2	; 0x8013f2 <mbl+0x30>
   33586:	c3 58       	subi	r28, 0x83	; 131
   33588:	df 4f       	sbci	r29, 0xFF	; 255
   3358a:	28 83       	st	Y, r18
   3358c:	39 83       	std	Y+1, r19	; 0x01
   3358e:	4a 83       	std	Y+2, r20	; 0x02
   33590:	5b 83       	std	Y+3, r21	; 0x03
   33592:	cd 57       	subi	r28, 0x7D	; 125
   33594:	d0 40       	sbci	r29, 0x00	; 0
   33596:	80 91 f7 13 	lds	r24, 0x13F7	; 0x8013f7 <mbl+0x35>
   3359a:	90 91 f8 13 	lds	r25, 0x13F8	; 0x8013f8 <mbl+0x36>
   3359e:	a0 91 f9 13 	lds	r26, 0x13F9	; 0x8013f9 <mbl+0x37>
   335a2:	b0 91 fa 13 	lds	r27, 0x13FA	; 0x8013fa <mbl+0x38>
   335a6:	cf 57       	subi	r28, 0x7F	; 127
   335a8:	df 4f       	sbci	r29, 0xFF	; 255
   335aa:	88 83       	st	Y, r24
   335ac:	99 83       	std	Y+1, r25	; 0x01
   335ae:	aa 83       	std	Y+2, r26	; 0x02
   335b0:	bb 83       	std	Y+3, r27	; 0x03
   335b2:	c1 58       	subi	r28, 0x81	; 129
   335b4:	d0 40       	sbci	r29, 0x00	; 0
   335b6:	ad ef       	ldi	r26, 0xFD	; 253
   335b8:	b4 ea       	ldi	r27, 0xA4	; 164
   335ba:	6c 96       	adiw	r28, 0x1c	; 28
   335bc:	bf af       	std	Y+63, r27	; 0x3f
   335be:	ae af       	std	Y+62, r26	; 0x3e
   335c0:	6c 97       	sbiw	r28, 0x1c	; 28
   335c2:	82 ec       	ldi	r24, 0xC2	; 194
   335c4:	28 2e       	mov	r2, r24
   335c6:	83 e1       	ldi	r24, 0x13	; 19
   335c8:	38 2e       	mov	r3, r24
        SERIAL_ECHOLNPGM("Error after correction: ");
    }
	#endif // SUPPORT_VERBOSITY
    // Measure the error after correction.
    for (uint8_t i = 0; i < npts; ++i) {
        float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1] + cntr[0];
   335ca:	f1 01       	movw	r30, r2
   335cc:	c1 80       	ldd	r12, Z+1	; 0x01
   335ce:	d2 80       	ldd	r13, Z+2	; 0x02
   335d0:	e3 80       	ldd	r14, Z+3	; 0x03
   335d2:	f4 80       	ldd	r15, Z+4	; 0x04
   335d4:	45 80       	ldd	r4, Z+5	; 0x05
   335d6:	56 80       	ldd	r5, Z+6	; 0x06
   335d8:	67 80       	ldd	r6, Z+7	; 0x07
   335da:	70 84       	ldd	r7, Z+8	; 0x08
        float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1] + cntr[1];
        float errX = pgm_read_float(true_pts + i * 2) - x;
   335dc:	6c 96       	adiw	r28, 0x1c	; 28
   335de:	ee ad       	ldd	r30, Y+62	; 0x3e
   335e0:	ff ad       	ldd	r31, Y+63	; 0x3f
   335e2:	6c 97       	sbiw	r28, 0x1c	; 28
   335e4:	25 91       	lpm	r18, Z+
   335e6:	35 91       	lpm	r19, Z+
   335e8:	45 91       	lpm	r20, Z+
   335ea:	54 91       	lpm	r21, Z
   335ec:	cb 57       	subi	r28, 0x7B	; 123
   335ee:	df 4f       	sbci	r29, 0xFF	; 255
   335f0:	28 83       	st	Y, r18
   335f2:	39 83       	std	Y+1, r19	; 0x01
   335f4:	4a 83       	std	Y+2, r20	; 0x02
   335f6:	5b 83       	std	Y+3, r21	; 0x03
   335f8:	c5 58       	subi	r28, 0x85	; 133
   335fa:	d0 40       	sbci	r29, 0x00	; 0
        float errY = pgm_read_float(true_pts + i * 2 + 1) - y;
   335fc:	6c 96       	adiw	r28, 0x1c	; 28
   335fe:	ee ad       	ldd	r30, Y+62	; 0x3e
   33600:	ff ad       	ldd	r31, Y+63	; 0x3f
   33602:	6c 97       	sbiw	r28, 0x1c	; 28
   33604:	34 96       	adiw	r30, 0x04	; 4
   33606:	85 90       	lpm	r8, Z+
   33608:	95 90       	lpm	r9, Z+
   3360a:	a5 90       	lpm	r10, Z+
   3360c:	b4 90       	lpm	r11, Z
    }
	#endif // SUPPORT_VERBOSITY
    // Measure the error after correction.
    for (uint8_t i = 0; i < npts; ++i) {
        float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1] + cntr[0];
        float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1] + cntr[1];
   3360e:	ed 96       	adiw	r28, 0x3d	; 61
   33610:	2c ad       	ldd	r18, Y+60	; 0x3c
   33612:	3d ad       	ldd	r19, Y+61	; 0x3d
   33614:	4e ad       	ldd	r20, Y+62	; 0x3e
   33616:	5f ad       	ldd	r21, Y+63	; 0x3f
   33618:	ed 97       	sbiw	r28, 0x3d	; 61
   3361a:	c7 01       	movw	r24, r14
   3361c:	b6 01       	movw	r22, r12
   3361e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33622:	c7 57       	subi	r28, 0x77	; 119
   33624:	df 4f       	sbci	r29, 0xFF	; 255
   33626:	68 83       	st	Y, r22
   33628:	79 83       	std	Y+1, r23	; 0x01
   3362a:	8a 83       	std	Y+2, r24	; 0x02
   3362c:	9b 83       	std	Y+3, r25	; 0x03
   3362e:	c9 58       	subi	r28, 0x89	; 137
   33630:	d0 40       	sbci	r29, 0x00	; 0
   33632:	c3 58       	subi	r28, 0x83	; 131
   33634:	df 4f       	sbci	r29, 0xFF	; 255
   33636:	28 81       	ld	r18, Y
   33638:	39 81       	ldd	r19, Y+1	; 0x01
   3363a:	4a 81       	ldd	r20, Y+2	; 0x02
   3363c:	5b 81       	ldd	r21, Y+3	; 0x03
   3363e:	cd 57       	subi	r28, 0x7D	; 125
   33640:	d0 40       	sbci	r29, 0x00	; 0
   33642:	c3 01       	movw	r24, r6
   33644:	b2 01       	movw	r22, r4
   33646:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3364a:	9b 01       	movw	r18, r22
   3364c:	ac 01       	movw	r20, r24
   3364e:	c7 57       	subi	r28, 0x77	; 119
   33650:	df 4f       	sbci	r29, 0xFF	; 255
   33652:	68 81       	ld	r22, Y
   33654:	79 81       	ldd	r23, Y+1	; 0x01
   33656:	8a 81       	ldd	r24, Y+2	; 0x02
   33658:	9b 81       	ldd	r25, Y+3	; 0x03
   3365a:	c9 58       	subi	r28, 0x89	; 137
   3365c:	d0 40       	sbci	r29, 0x00	; 0
   3365e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33662:	cf 57       	subi	r28, 0x7F	; 127
   33664:	df 4f       	sbci	r29, 0xFF	; 255
   33666:	28 81       	ld	r18, Y
   33668:	39 81       	ldd	r19, Y+1	; 0x01
   3366a:	4a 81       	ldd	r20, Y+2	; 0x02
   3366c:	5b 81       	ldd	r21, Y+3	; 0x03
   3366e:	c1 58       	subi	r28, 0x81	; 129
   33670:	d0 40       	sbci	r29, 0x00	; 0
   33672:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33676:	9b 01       	movw	r18, r22
   33678:	ac 01       	movw	r20, r24
        float errX = pgm_read_float(true_pts + i * 2) - x;
        float errY = pgm_read_float(true_pts + i * 2 + 1) - y;
   3367a:	c5 01       	movw	r24, r10
   3367c:	b4 01       	movw	r22, r8
   3367e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33682:	4b 01       	movw	r8, r22
   33684:	5c 01       	movw	r10, r24
        SERIAL_ECHOLNPGM("Error after correction: ");
    }
	#endif // SUPPORT_VERBOSITY
    // Measure the error after correction.
    for (uint8_t i = 0; i < npts; ++i) {
        float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1] + cntr[0];
   33686:	a7 01       	movw	r20, r14
   33688:	96 01       	movw	r18, r12
   3368a:	ae 96       	adiw	r28, 0x2e	; 46
   3368c:	6c ad       	ldd	r22, Y+60	; 0x3c
   3368e:	7d ad       	ldd	r23, Y+61	; 0x3d
   33690:	8e ad       	ldd	r24, Y+62	; 0x3e
   33692:	9f ad       	ldd	r25, Y+63	; 0x3f
   33694:	ae 97       	sbiw	r28, 0x2e	; 46
   33696:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3369a:	6b 01       	movw	r12, r22
   3369c:	7c 01       	movw	r14, r24
   3369e:	a3 01       	movw	r20, r6
   336a0:	92 01       	movw	r18, r4
   336a2:	e9 96       	adiw	r28, 0x39	; 57
   336a4:	6c ad       	ldd	r22, Y+60	; 0x3c
   336a6:	7d ad       	ldd	r23, Y+61	; 0x3d
   336a8:	8e ad       	ldd	r24, Y+62	; 0x3e
   336aa:	9f ad       	ldd	r25, Y+63	; 0x3f
   336ac:	e9 97       	sbiw	r28, 0x39	; 57
   336ae:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   336b2:	9b 01       	movw	r18, r22
   336b4:	ac 01       	movw	r20, r24
   336b6:	c7 01       	movw	r24, r14
   336b8:	b6 01       	movw	r22, r12
   336ba:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   336be:	e4 96       	adiw	r28, 0x34	; 52
   336c0:	2c ad       	ldd	r18, Y+60	; 0x3c
   336c2:	3d ad       	ldd	r19, Y+61	; 0x3d
   336c4:	4e ad       	ldd	r20, Y+62	; 0x3e
   336c6:	5f ad       	ldd	r21, Y+63	; 0x3f
   336c8:	e4 97       	sbiw	r28, 0x34	; 52
   336ca:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   336ce:	9b 01       	movw	r18, r22
   336d0:	ac 01       	movw	r20, r24
        float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1] + cntr[1];
        float errX = pgm_read_float(true_pts + i * 2) - x;
   336d2:	cb 57       	subi	r28, 0x7B	; 123
   336d4:	df 4f       	sbci	r29, 0xFF	; 255
   336d6:	68 81       	ld	r22, Y
   336d8:	79 81       	ldd	r23, Y+1	; 0x01
   336da:	8a 81       	ldd	r24, Y+2	; 0x02
   336dc:	9b 81       	ldd	r25, Y+3	; 0x03
   336de:	c5 58       	subi	r28, 0x85	; 133
   336e0:	d0 40       	sbci	r29, 0x00	; 0
   336e2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
        float errY = pgm_read_float(true_pts + i * 2 + 1) - y;
        float err = hypot(errX, errY);
   336e6:	a5 01       	movw	r20, r10
   336e8:	94 01       	movw	r18, r8
   336ea:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
		}
		else {
			#ifdef SUPPORT_VERBOSITY
			if(verbosity_level >=20 ) SERIAL_ECHOPGM("Point not on first row");
			#endif // SUPPORT_VERBOSITY
			if (err > BED_CALIBRATION_POINT_OFFSET_MAX_EUCLIDIAN) {
   336ee:	2d ec       	ldi	r18, 0xCD	; 205
   336f0:	3c ec       	ldi	r19, 0xCC	; 204
   336f2:	4c e4       	ldi	r20, 0x4C	; 76
   336f4:	5f e3       	ldi	r21, 0x3F	; 63
   336f6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   336fa:	18 16       	cp	r1, r24
   336fc:	0c f4       	brge	.+2      	; 0x33700 <gcode_M45(bool, signed char) [clone .constprop.76]+0x1b38>
				result = BED_SKEW_OFFSET_DETECTION_FITTING_FAILED;
   336fe:	1e ef       	ldi	r17, 0xFE	; 254
   33700:	38 e0       	ldi	r19, 0x08	; 8
   33702:	23 0e       	add	r2, r19
   33704:	31 1c       	adc	r3, r1
   33706:	6c 96       	adiw	r28, 0x1c	; 28
   33708:	4e ad       	ldd	r20, Y+62	; 0x3e
   3370a:	5f ad       	ldd	r21, Y+63	; 0x3f
   3370c:	6c 97       	sbiw	r28, 0x1c	; 28
   3370e:	48 5f       	subi	r20, 0xF8	; 248
   33710:	5f 4f       	sbci	r21, 0xFF	; 255
   33712:	6c 96       	adiw	r28, 0x1c	; 28
   33714:	5f af       	std	Y+63, r21	; 0x3f
   33716:	4e af       	std	Y+62, r20	; 0x3e
   33718:	6c 97       	sbiw	r28, 0x1c	; 28

        SERIAL_ECHOLNPGM("Error after correction: ");
    }
	#endif // SUPPORT_VERBOSITY
    // Measure the error after correction.
    for (uint8_t i = 0; i < npts; ++i) {
   3371a:	a8 96       	adiw	r28, 0x28	; 40
   3371c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3371e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33720:	a8 97       	sbiw	r28, 0x28	; 40
   33722:	82 15       	cp	r24, r2
   33724:	93 05       	cpc	r25, r3
   33726:	09 f0       	breq	.+2      	; 0x3372a <gcode_M45(bool, signed char) [clone .constprop.76]+0x1b62>
   33728:	50 cf       	rjmp	.-352    	; 0x335ca <gcode_M45(bool, signed char) [clone .constprop.76]+0x1a02>
		MYSERIAL.println(BED_CALIBRATION_POINT_OFFSET_MAX_EUCLIDIAN);
		SERIAL_ECHOLNPGM("");
	}
	#endif // SUPPORT_VERBOSITY

    if (result == BED_SKEW_OFFSET_DETECTION_PERFECT) {
   3372a:	11 11       	cpse	r17, r1
   3372c:	62 c1       	rjmp	.+708    	; 0x339f2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x1e2a>
		#ifdef SUPPORT_VERBOSITY
		if (verbosity_level > 0)
            SERIAL_ECHOLNPGM("Very little skew detected. Orthogonalizing the axes.");
		#endif // SUPPORT_VERBOSITY
		// Orthogonalize the axes.
        a1 = 0.5f * (a1 + a2);
   3372e:	a2 96       	adiw	r28, 0x22	; 34
   33730:	2c ad       	ldd	r18, Y+60	; 0x3c
   33732:	3d ad       	ldd	r19, Y+61	; 0x3d
   33734:	4e ad       	ldd	r20, Y+62	; 0x3e
   33736:	5f ad       	ldd	r21, Y+63	; 0x3f
   33738:	a2 97       	sbiw	r28, 0x22	; 34
   3373a:	a6 96       	adiw	r28, 0x26	; 38
   3373c:	6c ad       	ldd	r22, Y+60	; 0x3c
   3373e:	7d ad       	ldd	r23, Y+61	; 0x3d
   33740:	8e ad       	ldd	r24, Y+62	; 0x3e
   33742:	9f ad       	ldd	r25, Y+63	; 0x3f
   33744:	a6 97       	sbiw	r28, 0x26	; 38
   33746:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3374a:	20 e0       	ldi	r18, 0x00	; 0
   3374c:	30 e0       	ldi	r19, 0x00	; 0
   3374e:	40 e0       	ldi	r20, 0x00	; 0
   33750:	5f e3       	ldi	r21, 0x3F	; 63
   33752:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33756:	6b 01       	movw	r12, r22
   33758:	7c 01       	movw	r14, r24
        vec_x[0] =  cos(a1) * MACHINE_AXIS_SCALE_X;
   3375a:	0f 94 7d de 	call	0x3bcfa	; 0x3bcfa <cos>
   3375e:	a2 96       	adiw	r28, 0x22	; 34
   33760:	6c af       	std	Y+60, r22	; 0x3c
   33762:	7d af       	std	Y+61, r23	; 0x3d
   33764:	8e af       	std	Y+62, r24	; 0x3e
   33766:	9f af       	std	Y+63, r25	; 0x3f
   33768:	a2 97       	sbiw	r28, 0x22	; 34
   3376a:	60 93 e3 13 	sts	0x13E3, r22	; 0x8013e3 <mbl+0x21>
   3376e:	70 93 e4 13 	sts	0x13E4, r23	; 0x8013e4 <mbl+0x22>
   33772:	80 93 e5 13 	sts	0x13E5, r24	; 0x8013e5 <mbl+0x23>
   33776:	90 93 e6 13 	sts	0x13E6, r25	; 0x8013e6 <mbl+0x24>
        vec_x[1] =  sin(a1) * MACHINE_AXIS_SCALE_X;
   3377a:	c7 01       	movw	r24, r14
   3377c:	b6 01       	movw	r22, r12
   3377e:	0f 94 43 e1 	call	0x3c286	; 0x3c286 <sin>
   33782:	a6 96       	adiw	r28, 0x26	; 38
   33784:	6c af       	std	Y+60, r22	; 0x3c
   33786:	7d af       	std	Y+61, r23	; 0x3d
   33788:	8e af       	std	Y+62, r24	; 0x3e
   3378a:	9f af       	std	Y+63, r25	; 0x3f
   3378c:	a6 97       	sbiw	r28, 0x26	; 38
   3378e:	60 93 e7 13 	sts	0x13E7, r22	; 0x8013e7 <mbl+0x25>
   33792:	70 93 e8 13 	sts	0x13E8, r23	; 0x8013e8 <mbl+0x26>
   33796:	80 93 e9 13 	sts	0x13E9, r24	; 0x8013e9 <mbl+0x27>
   3379a:	90 93 ea 13 	sts	0x13EA, r25	; 0x8013ea <mbl+0x28>
        vec_y[0] = -sin(a1) * MACHINE_AXIS_SCALE_Y;
   3379e:	9b 01       	movw	r18, r22
   337a0:	ac 01       	movw	r20, r24
   337a2:	50 58       	subi	r21, 0x80	; 128
   337a4:	aa 96       	adiw	r28, 0x2a	; 42
   337a6:	2c af       	std	Y+60, r18	; 0x3c
   337a8:	3d af       	std	Y+61, r19	; 0x3d
   337aa:	4e af       	std	Y+62, r20	; 0x3e
   337ac:	5f af       	std	Y+63, r21	; 0x3f
   337ae:	aa 97       	sbiw	r28, 0x2a	; 42
   337b0:	20 93 eb 13 	sts	0x13EB, r18	; 0x8013eb <mbl+0x29>
   337b4:	30 93 ec 13 	sts	0x13EC, r19	; 0x8013ec <mbl+0x2a>
   337b8:	40 93 ed 13 	sts	0x13ED, r20	; 0x8013ed <mbl+0x2b>
   337bc:	50 93 ee 13 	sts	0x13EE, r21	; 0x8013ee <mbl+0x2c>
        vec_y[1] =  cos(a1) * MACHINE_AXIS_SCALE_Y;
   337c0:	a2 96       	adiw	r28, 0x22	; 34
   337c2:	8c ad       	ldd	r24, Y+60	; 0x3c
   337c4:	9d ad       	ldd	r25, Y+61	; 0x3d
   337c6:	ae ad       	ldd	r26, Y+62	; 0x3e
   337c8:	bf ad       	ldd	r27, Y+63	; 0x3f
   337ca:	a2 97       	sbiw	r28, 0x22	; 34
   337cc:	80 93 ef 13 	sts	0x13EF, r24	; 0x8013ef <mbl+0x2d>
   337d0:	90 93 f0 13 	sts	0x13F0, r25	; 0x8013f0 <mbl+0x2e>
   337d4:	a0 93 f1 13 	sts	0x13F1, r26	; 0x8013f1 <mbl+0x2f>
   337d8:	b0 93 f2 13 	sts	0x13F2, r27	; 0x8013f2 <mbl+0x30>
        // Refresh the offset.
        cntr[0] = 0.f;
   337dc:	10 92 f3 13 	sts	0x13F3, r1	; 0x8013f3 <mbl+0x31>
   337e0:	10 92 f4 13 	sts	0x13F4, r1	; 0x8013f4 <mbl+0x32>
   337e4:	10 92 f5 13 	sts	0x13F5, r1	; 0x8013f5 <mbl+0x33>
   337e8:	10 92 f6 13 	sts	0x13F6, r1	; 0x8013f6 <mbl+0x34>
        cntr[1] = 0.f;
   337ec:	10 92 f7 13 	sts	0x13F7, r1	; 0x8013f7 <mbl+0x35>
   337f0:	10 92 f8 13 	sts	0x13F8, r1	; 0x8013f8 <mbl+0x36>
   337f4:	10 92 f9 13 	sts	0x13F9, r1	; 0x8013f9 <mbl+0x37>
   337f8:	10 92 fa 13 	sts	0x13FA, r1	; 0x8013fa <mbl+0x38>
        float wx = 0.f;
   337fc:	41 2c       	mov	r4, r1
   337fe:	51 2c       	mov	r5, r1
   33800:	32 01       	movw	r6, r4
        float wy = 0.f;
        for (int8_t i = 0; i < npts; ++ i) {
            float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1];
   33802:	cf 56       	subi	r28, 0x6F	; 111
   33804:	df 4f       	sbci	r29, 0xFF	; 255
   33806:	a8 81       	ld	r26, Y
   33808:	b9 81       	ldd	r27, Y+1	; 0x01
   3380a:	c1 59       	subi	r28, 0x91	; 145
   3380c:	d0 40       	sbci	r29, 0x00	; 0
   3380e:	11 96       	adiw	r26, 0x01	; 1
   33810:	8d 90       	ld	r8, X+
   33812:	9d 90       	ld	r9, X+
   33814:	ad 90       	ld	r10, X+
   33816:	bc 90       	ld	r11, X
   33818:	14 97       	sbiw	r26, 0x04	; 4
   3381a:	15 96       	adiw	r26, 0x05	; 5
   3381c:	2d 91       	ld	r18, X+
   3381e:	3d 91       	ld	r19, X+
   33820:	4d 91       	ld	r20, X+
   33822:	5c 91       	ld	r21, X
   33824:	18 97       	sbiw	r26, 0x08	; 8
   33826:	6e 96       	adiw	r28, 0x1e	; 30
   33828:	2c af       	std	Y+60, r18	; 0x3c
   3382a:	3d af       	std	Y+61, r19	; 0x3d
   3382c:	4e af       	std	Y+62, r20	; 0x3e
   3382e:	5f af       	std	Y+63, r21	; 0x3f
   33830:	6e 97       	sbiw	r28, 0x1e	; 30
            float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1];
            float w = point_weight_x(i, y);
			cntr[0] += w * (pgm_read_float(true_pts + i * 2) - x);
   33832:	cd 56       	subi	r28, 0x6D	; 109
   33834:	df 4f       	sbci	r29, 0xFF	; 255
   33836:	e8 81       	ld	r30, Y
   33838:	f9 81       	ldd	r31, Y+1	; 0x01
   3383a:	c3 59       	subi	r28, 0x93	; 147
   3383c:	d0 40       	sbci	r29, 0x00	; 0
   3383e:	c5 90       	lpm	r12, Z+
   33840:	d5 90       	lpm	r13, Z+
   33842:	e5 90       	lpm	r14, Z+
   33844:	f4 90       	lpm	r15, Z
        cntr[0] = 0.f;
        cntr[1] = 0.f;
        float wx = 0.f;
        float wy = 0.f;
        for (int8_t i = 0; i < npts; ++ i) {
            float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1];
   33846:	a5 01       	movw	r20, r10
   33848:	94 01       	movw	r18, r8
   3384a:	a2 96       	adiw	r28, 0x22	; 34
   3384c:	6c ad       	ldd	r22, Y+60	; 0x3c
   3384e:	7d ad       	ldd	r23, Y+61	; 0x3d
   33850:	8e ad       	ldd	r24, Y+62	; 0x3e
   33852:	9f ad       	ldd	r25, Y+63	; 0x3f
   33854:	a2 97       	sbiw	r28, 0x22	; 34
   33856:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3385a:	ae 96       	adiw	r28, 0x2e	; 46
   3385c:	6c af       	std	Y+60, r22	; 0x3c
   3385e:	7d af       	std	Y+61, r23	; 0x3d
   33860:	8e af       	std	Y+62, r24	; 0x3e
   33862:	9f af       	std	Y+63, r25	; 0x3f
   33864:	ae 97       	sbiw	r28, 0x2e	; 46
   33866:	6e 96       	adiw	r28, 0x1e	; 30
   33868:	2c ad       	ldd	r18, Y+60	; 0x3c
   3386a:	3d ad       	ldd	r19, Y+61	; 0x3d
   3386c:	4e ad       	ldd	r20, Y+62	; 0x3e
   3386e:	5f ad       	ldd	r21, Y+63	; 0x3f
   33870:	6e 97       	sbiw	r28, 0x1e	; 30
   33872:	aa 96       	adiw	r28, 0x2a	; 42
   33874:	6c ad       	ldd	r22, Y+60	; 0x3c
   33876:	7d ad       	ldd	r23, Y+61	; 0x3d
   33878:	8e ad       	ldd	r24, Y+62	; 0x3e
   3387a:	9f ad       	ldd	r25, Y+63	; 0x3f
   3387c:	aa 97       	sbiw	r28, 0x2a	; 42
   3387e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33882:	9b 01       	movw	r18, r22
   33884:	ac 01       	movw	r20, r24
   33886:	ae 96       	adiw	r28, 0x2e	; 46
   33888:	6c ad       	ldd	r22, Y+60	; 0x3c
   3388a:	7d ad       	ldd	r23, Y+61	; 0x3d
   3388c:	8e ad       	ldd	r24, Y+62	; 0x3e
   3388e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33890:	ae 97       	sbiw	r28, 0x2e	; 46
   33892:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33896:	9b 01       	movw	r18, r22
   33898:	ac 01       	movw	r20, r24
            float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1];
            float w = point_weight_x(i, y);
			cntr[0] += w * (pgm_read_float(true_pts + i * 2) - x);
   3389a:	c7 01       	movw	r24, r14
   3389c:	b6 01       	movw	r22, r12
   3389e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   338a2:	20 91 f3 13 	lds	r18, 0x13F3	; 0x8013f3 <mbl+0x31>
   338a6:	30 91 f4 13 	lds	r19, 0x13F4	; 0x8013f4 <mbl+0x32>
   338aa:	40 91 f5 13 	lds	r20, 0x13F5	; 0x8013f5 <mbl+0x33>
   338ae:	50 91 f6 13 	lds	r21, 0x13F6	; 0x8013f6 <mbl+0x34>
   338b2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   338b6:	6b 01       	movw	r12, r22
   338b8:	7c 01       	movw	r14, r24
   338ba:	c0 92 f3 13 	sts	0x13F3, r12	; 0x8013f3 <mbl+0x31>
   338be:	d0 92 f4 13 	sts	0x13F4, r13	; 0x8013f4 <mbl+0x32>
   338c2:	e0 92 f5 13 	sts	0x13F5, r14	; 0x8013f5 <mbl+0x33>
   338c6:	f0 92 f6 13 	sts	0x13F6, r15	; 0x8013f6 <mbl+0x34>
			wx += w;
   338ca:	20 e0       	ldi	r18, 0x00	; 0
   338cc:	30 e0       	ldi	r19, 0x00	; 0
   338ce:	40 e8       	ldi	r20, 0x80	; 128
   338d0:	5f e3       	ldi	r21, 0x3F	; 63
   338d2:	c3 01       	movw	r24, r6
   338d4:	b2 01       	movw	r22, r4
   338d6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   338da:	2b 01       	movw	r4, r22
   338dc:	3c 01       	movw	r6, r24
				SERIAL_ECHOLNPGM("wx:");
				MYSERIAL.print(wx);
			}
			#endif // SUPPORT_VERBOSITY
            w = point_weight_y(i, y);
			cntr[1] += w * (pgm_read_float(true_pts + i * 2 + 1) - y);
   338de:	cd 56       	subi	r28, 0x6D	; 109
   338e0:	df 4f       	sbci	r29, 0xFF	; 255
   338e2:	e8 81       	ld	r30, Y
   338e4:	f9 81       	ldd	r31, Y+1	; 0x01
   338e6:	c3 59       	subi	r28, 0x93	; 147
   338e8:	d0 40       	sbci	r29, 0x00	; 0
   338ea:	34 96       	adiw	r30, 0x04	; 4
   338ec:	25 91       	lpm	r18, Z+
   338ee:	35 91       	lpm	r19, Z+
   338f0:	45 91       	lpm	r20, Z+
   338f2:	54 91       	lpm	r21, Z
   338f4:	ae 96       	adiw	r28, 0x2e	; 46
   338f6:	2c af       	std	Y+60, r18	; 0x3c
   338f8:	3d af       	std	Y+61, r19	; 0x3d
   338fa:	4e af       	std	Y+62, r20	; 0x3e
   338fc:	5f af       	std	Y+63, r21	; 0x3f
   338fe:	ae 97       	sbiw	r28, 0x2e	; 46
        cntr[1] = 0.f;
        float wx = 0.f;
        float wy = 0.f;
        for (int8_t i = 0; i < npts; ++ i) {
            float x = vec_x[0] * measured_pts[i * 2] + vec_y[0] * measured_pts[i * 2 + 1];
            float y = vec_x[1] * measured_pts[i * 2] + vec_y[1] * measured_pts[i * 2 + 1];
   33900:	a5 01       	movw	r20, r10
   33902:	94 01       	movw	r18, r8
   33904:	a6 96       	adiw	r28, 0x26	; 38
   33906:	6c ad       	ldd	r22, Y+60	; 0x3c
   33908:	7d ad       	ldd	r23, Y+61	; 0x3d
   3390a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3390c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3390e:	a6 97       	sbiw	r28, 0x26	; 38
   33910:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33914:	4b 01       	movw	r8, r22
   33916:	5c 01       	movw	r10, r24
   33918:	6e 96       	adiw	r28, 0x1e	; 30
   3391a:	2c ad       	ldd	r18, Y+60	; 0x3c
   3391c:	3d ad       	ldd	r19, Y+61	; 0x3d
   3391e:	4e ad       	ldd	r20, Y+62	; 0x3e
   33920:	5f ad       	ldd	r21, Y+63	; 0x3f
   33922:	6e 97       	sbiw	r28, 0x1e	; 30
   33924:	a2 96       	adiw	r28, 0x22	; 34
   33926:	6c ad       	ldd	r22, Y+60	; 0x3c
   33928:	7d ad       	ldd	r23, Y+61	; 0x3d
   3392a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3392c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3392e:	a2 97       	sbiw	r28, 0x22	; 34
   33930:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33934:	9b 01       	movw	r18, r22
   33936:	ac 01       	movw	r20, r24
   33938:	c5 01       	movw	r24, r10
   3393a:	b4 01       	movw	r22, r8
   3393c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33940:	9b 01       	movw	r18, r22
   33942:	ac 01       	movw	r20, r24
				SERIAL_ECHOLNPGM("wx:");
				MYSERIAL.print(wx);
			}
			#endif // SUPPORT_VERBOSITY
            w = point_weight_y(i, y);
			cntr[1] += w * (pgm_read_float(true_pts + i * 2 + 1) - y);
   33944:	ae 96       	adiw	r28, 0x2e	; 46
   33946:	6c ad       	ldd	r22, Y+60	; 0x3c
   33948:	7d ad       	ldd	r23, Y+61	; 0x3d
   3394a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3394c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3394e:	ae 97       	sbiw	r28, 0x2e	; 46
   33950:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33954:	20 91 f7 13 	lds	r18, 0x13F7	; 0x8013f7 <mbl+0x35>
   33958:	30 91 f8 13 	lds	r19, 0x13F8	; 0x8013f8 <mbl+0x36>
   3395c:	40 91 f9 13 	lds	r20, 0x13F9	; 0x8013f9 <mbl+0x37>
   33960:	50 91 fa 13 	lds	r21, 0x13FA	; 0x8013fa <mbl+0x38>
   33964:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33968:	4b 01       	movw	r8, r22
   3396a:	5c 01       	movw	r10, r24
   3396c:	80 92 f7 13 	sts	0x13F7, r8	; 0x8013f7 <mbl+0x35>
   33970:	90 92 f8 13 	sts	0x13F8, r9	; 0x8013f8 <mbl+0x36>
   33974:	a0 92 f9 13 	sts	0x13F9, r10	; 0x8013f9 <mbl+0x37>
   33978:	b0 92 fa 13 	sts	0x13FA, r11	; 0x8013fa <mbl+0x38>
   3397c:	cf 56       	subi	r28, 0x6F	; 111
   3397e:	df 4f       	sbci	r29, 0xFF	; 255
   33980:	48 81       	ld	r20, Y
   33982:	59 81       	ldd	r21, Y+1	; 0x01
   33984:	c1 59       	subi	r28, 0x91	; 145
   33986:	d0 40       	sbci	r29, 0x00	; 0
   33988:	48 5f       	subi	r20, 0xF8	; 248
   3398a:	5f 4f       	sbci	r21, 0xFF	; 255
   3398c:	cf 56       	subi	r28, 0x6F	; 111
   3398e:	df 4f       	sbci	r29, 0xFF	; 255
   33990:	59 83       	std	Y+1, r21	; 0x01
   33992:	48 83       	st	Y, r20
   33994:	c1 59       	subi	r28, 0x91	; 145
   33996:	d0 40       	sbci	r29, 0x00	; 0
   33998:	cd 56       	subi	r28, 0x6D	; 109
   3399a:	df 4f       	sbci	r29, 0xFF	; 255
   3399c:	88 81       	ld	r24, Y
   3399e:	99 81       	ldd	r25, Y+1	; 0x01
   339a0:	c3 59       	subi	r28, 0x93	; 147
   339a2:	d0 40       	sbci	r29, 0x00	; 0
   339a4:	08 96       	adiw	r24, 0x08	; 8
   339a6:	cd 56       	subi	r28, 0x6D	; 109
   339a8:	df 4f       	sbci	r29, 0xFF	; 255
   339aa:	99 83       	std	Y+1, r25	; 0x01
   339ac:	88 83       	st	Y, r24
   339ae:	c3 59       	subi	r28, 0x93	; 147
   339b0:	d0 40       	sbci	r29, 0x00	; 0
        // Refresh the offset.
        cntr[0] = 0.f;
        cntr[1] = 0.f;
        float wx = 0.f;
        float wy = 0.f;
        for (int8_t i = 0; i < npts; ++ i) {
   339b2:	24 16       	cp	r2, r20
   339b4:	35 06       	cpc	r3, r21
   339b6:	09 f0       	breq	.+2      	; 0x339ba <gcode_M45(bool, signed char) [clone .constprop.76]+0x1df2>
   339b8:	24 cf       	rjmp	.-440    	; 0x33802 <gcode_M45(bool, signed char) [clone .constprop.76]+0x1c3a>
				SERIAL_ECHOLNPGM("");
			}
			#endif // SUPPORT_VERBOSITY

		}
        cntr[0] /= wx;
   339ba:	a3 01       	movw	r20, r6
   339bc:	92 01       	movw	r18, r4
   339be:	c7 01       	movw	r24, r14
   339c0:	b6 01       	movw	r22, r12
   339c2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   339c6:	60 93 f3 13 	sts	0x13F3, r22	; 0x8013f3 <mbl+0x31>
   339ca:	70 93 f4 13 	sts	0x13F4, r23	; 0x8013f4 <mbl+0x32>
   339ce:	80 93 f5 13 	sts	0x13F5, r24	; 0x8013f5 <mbl+0x33>
   339d2:	90 93 f6 13 	sts	0x13F6, r25	; 0x8013f6 <mbl+0x34>
        cntr[1] /= wy;
   339d6:	a3 01       	movw	r20, r6
   339d8:	92 01       	movw	r18, r4
   339da:	c5 01       	movw	r24, r10
   339dc:	b4 01       	movw	r22, r8
   339de:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   339e2:	60 93 f7 13 	sts	0x13F7, r22	; 0x8013f7 <mbl+0x35>
   339e6:	70 93 f8 13 	sts	0x13F8, r23	; 0x8013f8 <mbl+0x36>
   339ea:	80 93 f9 13 	sts	0x13F9, r24	; 0x8013f9 <mbl+0x37>
   339ee:	90 93 fa 13 	sts	0x13FA, r25	; 0x8013fa <mbl+0x38>
		#endif // SUPPORT_VERBOSITY
    }

    // Invert the transformation matrix made of vec_x, vec_y and cntr.
    {
        float d = vec_x[0] * vec_y[1] - vec_x[1] * vec_y[0];
   339f2:	40 90 e3 13 	lds	r4, 0x13E3	; 0x8013e3 <mbl+0x21>
   339f6:	50 90 e4 13 	lds	r5, 0x13E4	; 0x8013e4 <mbl+0x22>
   339fa:	60 90 e5 13 	lds	r6, 0x13E5	; 0x8013e5 <mbl+0x23>
   339fe:	70 90 e6 13 	lds	r7, 0x13E6	; 0x8013e6 <mbl+0x24>
   33a02:	c0 90 ef 13 	lds	r12, 0x13EF	; 0x8013ef <mbl+0x2d>
   33a06:	d0 90 f0 13 	lds	r13, 0x13F0	; 0x8013f0 <mbl+0x2e>
   33a0a:	e0 90 f1 13 	lds	r14, 0x13F1	; 0x8013f1 <mbl+0x2f>
   33a0e:	f0 90 f2 13 	lds	r15, 0x13F2	; 0x8013f2 <mbl+0x30>
   33a12:	20 91 e7 13 	lds	r18, 0x13E7	; 0x8013e7 <mbl+0x25>
   33a16:	30 91 e8 13 	lds	r19, 0x13E8	; 0x8013e8 <mbl+0x26>
   33a1a:	40 91 e9 13 	lds	r20, 0x13E9	; 0x8013e9 <mbl+0x27>
   33a1e:	50 91 ea 13 	lds	r21, 0x13EA	; 0x8013ea <mbl+0x28>
   33a22:	a2 96       	adiw	r28, 0x22	; 34
   33a24:	2c af       	std	Y+60, r18	; 0x3c
   33a26:	3d af       	std	Y+61, r19	; 0x3d
   33a28:	4e af       	std	Y+62, r20	; 0x3e
   33a2a:	5f af       	std	Y+63, r21	; 0x3f
   33a2c:	a2 97       	sbiw	r28, 0x22	; 34
   33a2e:	80 91 eb 13 	lds	r24, 0x13EB	; 0x8013eb <mbl+0x29>
   33a32:	90 91 ec 13 	lds	r25, 0x13EC	; 0x8013ec <mbl+0x2a>
   33a36:	a0 91 ed 13 	lds	r26, 0x13ED	; 0x8013ed <mbl+0x2b>
   33a3a:	b0 91 ee 13 	lds	r27, 0x13EE	; 0x8013ee <mbl+0x2c>
   33a3e:	a6 96       	adiw	r28, 0x26	; 38
   33a40:	8c af       	std	Y+60, r24	; 0x3c
   33a42:	9d af       	std	Y+61, r25	; 0x3d
   33a44:	ae af       	std	Y+62, r26	; 0x3e
   33a46:	bf af       	std	Y+63, r27	; 0x3f
   33a48:	a6 97       	sbiw	r28, 0x26	; 38
   33a4a:	a7 01       	movw	r20, r14
   33a4c:	96 01       	movw	r18, r12
   33a4e:	c3 01       	movw	r24, r6
   33a50:	b2 01       	movw	r22, r4
   33a52:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33a56:	4b 01       	movw	r8, r22
   33a58:	5c 01       	movw	r10, r24
   33a5a:	a6 96       	adiw	r28, 0x26	; 38
   33a5c:	2c ad       	ldd	r18, Y+60	; 0x3c
   33a5e:	3d ad       	ldd	r19, Y+61	; 0x3d
   33a60:	4e ad       	ldd	r20, Y+62	; 0x3e
   33a62:	5f ad       	ldd	r21, Y+63	; 0x3f
   33a64:	a6 97       	sbiw	r28, 0x26	; 38
   33a66:	a2 96       	adiw	r28, 0x22	; 34
   33a68:	6c ad       	ldd	r22, Y+60	; 0x3c
   33a6a:	7d ad       	ldd	r23, Y+61	; 0x3d
   33a6c:	8e ad       	ldd	r24, Y+62	; 0x3e
   33a6e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33a70:	a2 97       	sbiw	r28, 0x22	; 34
   33a72:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33a76:	9b 01       	movw	r18, r22
   33a78:	ac 01       	movw	r20, r24
   33a7a:	c5 01       	movw	r24, r10
   33a7c:	b4 01       	movw	r22, r8
   33a7e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   33a82:	4b 01       	movw	r8, r22
   33a84:	5c 01       	movw	r10, r24
        float Ainv[2][2] = {
            { vec_y[1] / d, -vec_y[0] / d },
   33a86:	ac 01       	movw	r20, r24
   33a88:	9b 01       	movw	r18, r22
   33a8a:	c7 01       	movw	r24, r14
   33a8c:	b6 01       	movw	r22, r12
   33a8e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33a92:	6b 01       	movw	r12, r22
   33a94:	7c 01       	movw	r14, r24
   33a96:	a6 96       	adiw	r28, 0x26	; 38
   33a98:	6c ad       	ldd	r22, Y+60	; 0x3c
   33a9a:	7d ad       	ldd	r23, Y+61	; 0x3d
   33a9c:	8e ad       	ldd	r24, Y+62	; 0x3e
   33a9e:	9f ad       	ldd	r25, Y+63	; 0x3f
   33aa0:	a6 97       	sbiw	r28, 0x26	; 38
   33aa2:	90 58       	subi	r25, 0x80	; 128
   33aa4:	a5 01       	movw	r20, r10
   33aa6:	94 01       	movw	r18, r8
   33aa8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33aac:	a6 96       	adiw	r28, 0x26	; 38
   33aae:	6c af       	std	Y+60, r22	; 0x3c
   33ab0:	7d af       	std	Y+61, r23	; 0x3d
   33ab2:	8e af       	std	Y+62, r24	; 0x3e
   33ab4:	9f af       	std	Y+63, r25	; 0x3f
   33ab6:	a6 97       	sbiw	r28, 0x26	; 38
            { -vec_x[1] / d, vec_x[0] / d }
   33ab8:	a2 96       	adiw	r28, 0x22	; 34
   33aba:	6c ad       	ldd	r22, Y+60	; 0x3c
   33abc:	7d ad       	ldd	r23, Y+61	; 0x3d
   33abe:	8e ad       	ldd	r24, Y+62	; 0x3e
   33ac0:	9f ad       	ldd	r25, Y+63	; 0x3f
   33ac2:	a2 97       	sbiw	r28, 0x22	; 34
   33ac4:	90 58       	subi	r25, 0x80	; 128
   33ac6:	a5 01       	movw	r20, r10
   33ac8:	94 01       	movw	r18, r8
   33aca:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33ace:	aa 96       	adiw	r28, 0x2a	; 42
   33ad0:	6c af       	std	Y+60, r22	; 0x3c
   33ad2:	7d af       	std	Y+61, r23	; 0x3d
   33ad4:	8e af       	std	Y+62, r24	; 0x3e
   33ad6:	9f af       	std	Y+63, r25	; 0x3f
   33ad8:	aa 97       	sbiw	r28, 0x2a	; 42
   33ada:	a5 01       	movw	r20, r10
   33adc:	94 01       	movw	r18, r8
   33ade:	c3 01       	movw	r24, r6
   33ae0:	b2 01       	movw	r22, r4
   33ae2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   33ae6:	4b 01       	movw	r8, r22
   33ae8:	5c 01       	movw	r10, r24
        };
        float cntrInv[2] = {
            -Ainv[0][0] * cntr[0] - Ainv[0][1] * cntr[1],
   33aea:	40 90 f3 13 	lds	r4, 0x13F3	; 0x8013f3 <mbl+0x31>
   33aee:	50 90 f4 13 	lds	r5, 0x13F4	; 0x8013f4 <mbl+0x32>
   33af2:	60 90 f5 13 	lds	r6, 0x13F5	; 0x8013f5 <mbl+0x33>
   33af6:	70 90 f6 13 	lds	r7, 0x13F6	; 0x8013f6 <mbl+0x34>
   33afa:	20 91 f7 13 	lds	r18, 0x13F7	; 0x8013f7 <mbl+0x35>
   33afe:	30 91 f8 13 	lds	r19, 0x13F8	; 0x8013f8 <mbl+0x36>
   33b02:	40 91 f9 13 	lds	r20, 0x13F9	; 0x8013f9 <mbl+0x37>
   33b06:	50 91 fa 13 	lds	r21, 0x13FA	; 0x8013fa <mbl+0x38>
   33b0a:	a2 96       	adiw	r28, 0x22	; 34
   33b0c:	2c af       	std	Y+60, r18	; 0x3c
   33b0e:	3d af       	std	Y+61, r19	; 0x3d
   33b10:	4e af       	std	Y+62, r20	; 0x3e
   33b12:	5f af       	std	Y+63, r21	; 0x3f
   33b14:	a2 97       	sbiw	r28, 0x22	; 34
            -Ainv[1][0] * cntr[0] - Ainv[1][1] * cntr[1]
        };
        vec_x[0] = Ainv[0][0];
   33b16:	c0 92 e3 13 	sts	0x13E3, r12	; 0x8013e3 <mbl+0x21>
   33b1a:	d0 92 e4 13 	sts	0x13E4, r13	; 0x8013e4 <mbl+0x22>
   33b1e:	e0 92 e5 13 	sts	0x13E5, r14	; 0x8013e5 <mbl+0x23>
   33b22:	f0 92 e6 13 	sts	0x13E6, r15	; 0x8013e6 <mbl+0x24>
        vec_x[1] = Ainv[1][0];
   33b26:	aa 96       	adiw	r28, 0x2a	; 42
   33b28:	8c ad       	ldd	r24, Y+60	; 0x3c
   33b2a:	9d ad       	ldd	r25, Y+61	; 0x3d
   33b2c:	ae ad       	ldd	r26, Y+62	; 0x3e
   33b2e:	bf ad       	ldd	r27, Y+63	; 0x3f
   33b30:	aa 97       	sbiw	r28, 0x2a	; 42
   33b32:	80 93 e7 13 	sts	0x13E7, r24	; 0x8013e7 <mbl+0x25>
   33b36:	90 93 e8 13 	sts	0x13E8, r25	; 0x8013e8 <mbl+0x26>
   33b3a:	a0 93 e9 13 	sts	0x13E9, r26	; 0x8013e9 <mbl+0x27>
   33b3e:	b0 93 ea 13 	sts	0x13EA, r27	; 0x8013ea <mbl+0x28>
        vec_y[0] = Ainv[0][1];
   33b42:	a6 96       	adiw	r28, 0x26	; 38
   33b44:	2c ad       	ldd	r18, Y+60	; 0x3c
   33b46:	3d ad       	ldd	r19, Y+61	; 0x3d
   33b48:	4e ad       	ldd	r20, Y+62	; 0x3e
   33b4a:	5f ad       	ldd	r21, Y+63	; 0x3f
   33b4c:	a6 97       	sbiw	r28, 0x26	; 38
   33b4e:	20 93 eb 13 	sts	0x13EB, r18	; 0x8013eb <mbl+0x29>
   33b52:	30 93 ec 13 	sts	0x13EC, r19	; 0x8013ec <mbl+0x2a>
   33b56:	40 93 ed 13 	sts	0x13ED, r20	; 0x8013ed <mbl+0x2b>
   33b5a:	50 93 ee 13 	sts	0x13EE, r21	; 0x8013ee <mbl+0x2c>
        vec_y[1] = Ainv[1][1];
   33b5e:	80 92 ef 13 	sts	0x13EF, r8	; 0x8013ef <mbl+0x2d>
   33b62:	90 92 f0 13 	sts	0x13F0, r9	; 0x8013f0 <mbl+0x2e>
   33b66:	a0 92 f1 13 	sts	0x13F1, r10	; 0x8013f1 <mbl+0x2f>
   33b6a:	b0 92 f2 13 	sts	0x13F2, r11	; 0x8013f2 <mbl+0x30>
        float Ainv[2][2] = {
            { vec_y[1] / d, -vec_y[0] / d },
            { -vec_x[1] / d, vec_x[0] / d }
        };
        float cntrInv[2] = {
            -Ainv[0][0] * cntr[0] - Ainv[0][1] * cntr[1],
   33b6e:	c7 01       	movw	r24, r14
   33b70:	b6 01       	movw	r22, r12
   33b72:	90 58       	subi	r25, 0x80	; 128
   33b74:	a3 01       	movw	r20, r6
   33b76:	92 01       	movw	r18, r4
   33b78:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33b7c:	6b 01       	movw	r12, r22
   33b7e:	7c 01       	movw	r14, r24
   33b80:	a2 96       	adiw	r28, 0x22	; 34
   33b82:	2c ad       	ldd	r18, Y+60	; 0x3c
   33b84:	3d ad       	ldd	r19, Y+61	; 0x3d
   33b86:	4e ad       	ldd	r20, Y+62	; 0x3e
   33b88:	5f ad       	ldd	r21, Y+63	; 0x3f
   33b8a:	a2 97       	sbiw	r28, 0x22	; 34
   33b8c:	a6 96       	adiw	r28, 0x26	; 38
   33b8e:	6c ad       	ldd	r22, Y+60	; 0x3c
   33b90:	7d ad       	ldd	r23, Y+61	; 0x3d
   33b92:	8e ad       	ldd	r24, Y+62	; 0x3e
   33b94:	9f ad       	ldd	r25, Y+63	; 0x3f
   33b96:	a6 97       	sbiw	r28, 0x26	; 38
   33b98:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33b9c:	9b 01       	movw	r18, r22
   33b9e:	ac 01       	movw	r20, r24
   33ba0:	c7 01       	movw	r24, r14
   33ba2:	b6 01       	movw	r22, r12
   33ba4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
        };
        vec_x[0] = Ainv[0][0];
        vec_x[1] = Ainv[1][0];
        vec_y[0] = Ainv[0][1];
        vec_y[1] = Ainv[1][1];
        cntr[0] = cntrInv[0];
   33ba8:	60 93 f3 13 	sts	0x13F3, r22	; 0x8013f3 <mbl+0x31>
   33bac:	70 93 f4 13 	sts	0x13F4, r23	; 0x8013f4 <mbl+0x32>
   33bb0:	80 93 f5 13 	sts	0x13F5, r24	; 0x8013f5 <mbl+0x33>
   33bb4:	90 93 f6 13 	sts	0x13F6, r25	; 0x8013f6 <mbl+0x34>
            { vec_y[1] / d, -vec_y[0] / d },
            { -vec_x[1] / d, vec_x[0] / d }
        };
        float cntrInv[2] = {
            -Ainv[0][0] * cntr[0] - Ainv[0][1] * cntr[1],
            -Ainv[1][0] * cntr[0] - Ainv[1][1] * cntr[1]
   33bb8:	aa 96       	adiw	r28, 0x2a	; 42
   33bba:	6c ad       	ldd	r22, Y+60	; 0x3c
   33bbc:	7d ad       	ldd	r23, Y+61	; 0x3d
   33bbe:	8e ad       	ldd	r24, Y+62	; 0x3e
   33bc0:	9f ad       	ldd	r25, Y+63	; 0x3f
   33bc2:	aa 97       	sbiw	r28, 0x2a	; 42
   33bc4:	90 58       	subi	r25, 0x80	; 128
   33bc6:	a3 01       	movw	r20, r6
   33bc8:	92 01       	movw	r18, r4
   33bca:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33bce:	6b 01       	movw	r12, r22
   33bd0:	7c 01       	movw	r14, r24
   33bd2:	a2 96       	adiw	r28, 0x22	; 34
   33bd4:	2c ad       	ldd	r18, Y+60	; 0x3c
   33bd6:	3d ad       	ldd	r19, Y+61	; 0x3d
   33bd8:	4e ad       	ldd	r20, Y+62	; 0x3e
   33bda:	5f ad       	ldd	r21, Y+63	; 0x3f
   33bdc:	a2 97       	sbiw	r28, 0x22	; 34
   33bde:	c5 01       	movw	r24, r10
   33be0:	b4 01       	movw	r22, r8
   33be2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33be6:	9b 01       	movw	r18, r22
   33be8:	ac 01       	movw	r20, r24
   33bea:	c7 01       	movw	r24, r14
   33bec:	b6 01       	movw	r22, r12
   33bee:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
        vec_x[0] = Ainv[0][0];
        vec_x[1] = Ainv[1][0];
        vec_y[0] = Ainv[0][1];
        vec_y[1] = Ainv[1][1];
        cntr[0] = cntrInv[0];
        cntr[1] = cntrInv[1];
   33bf2:	60 93 f7 13 	sts	0x13F7, r22	; 0x8013f7 <mbl+0x35>
   33bf6:	70 93 f8 13 	sts	0x13F8, r23	; 0x8013f8 <mbl+0x36>
   33bfa:	80 93 f9 13 	sts	0x13F9, r24	; 0x8013f9 <mbl+0x37>
   33bfe:	90 93 fa 13 	sts	0x13FA, r25	; 0x8013fa <mbl+0x38>
				MYSERIAL.print(pts[1]);
				SERIAL_ECHOPGM(" < ");
				MYSERIAL.println(Y_MIN_POS_CALIBRATION_POINT_OUT_OF_REACH);
		}
		result = calculate_machine_skew_and_offset_LS(pts, 4, bed_ref_points_4, vec_x, vec_y, cntr, verbosity_level);
		delay_keep_alive(0); //manage_heater, reset watchdog, manage inactivity
   33c02:	90 e0       	ldi	r25, 0x00	; 0
   33c04:	80 e0       	ldi	r24, 0x00	; 0
   33c06:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>

		if (result >= 0) {
   33c0a:	17 fd       	sbrc	r17, 7
   33c0c:	d5 c0       	rjmp	.+426    	; 0x33db8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x21f0>
            DBG(_n("Calibration success.\n"));
   33c0e:	8c e8       	ldi	r24, 0x8C	; 140
   33c10:	9f e6       	ldi	r25, 0x6F	; 111
   33c12:	9f 93       	push	r25
   33c14:	8f 93       	push	r24
   33c16:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
			world2machine_update(vec_x, vec_y, cntr);
   33c1a:	43 ef       	ldi	r20, 0xF3	; 243
   33c1c:	53 e1       	ldi	r21, 0x13	; 19
   33c1e:	6b ee       	ldi	r22, 0xEB	; 235
   33c20:	73 e1       	ldi	r23, 0x13	; 19
   33c22:	83 ee       	ldi	r24, 0xE3	; 227
   33c24:	93 e1       	ldi	r25, 0x13	; 19
   33c26:	0f 94 f3 cc 	call	0x399e6	; 0x399e6 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]>
#endif //DEBUG_EEPROM_CHANGES
}

#ifndef DEBUG_EEPROM_CHANGES
void eeprom_update_block_notify(const void *__src, void *__dst, size_t __n){
    eeprom_update_block(__src, __dst, __n);
   33c2a:	48 e0       	ldi	r20, 0x08	; 8
   33c2c:	50 e0       	ldi	r21, 0x00	; 0
   33c2e:	65 ee       	ldi	r22, 0xE5	; 229
   33c30:	7f e0       	ldi	r23, 0x0F	; 15
   33c32:	83 ef       	ldi	r24, 0xF3	; 243
   33c34:	93 e1       	ldi	r25, 0x13	; 19
   33c36:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   33c3a:	48 e0       	ldi	r20, 0x08	; 8
   33c3c:	50 e0       	ldi	r21, 0x00	; 0
   33c3e:	6d ed       	ldi	r22, 0xDD	; 221
   33c40:	7f e0       	ldi	r23, 0x0F	; 15
   33c42:	83 ee       	ldi	r24, 0xE3	; 227
   33c44:	93 e1       	ldi	r25, 0x13	; 19
   33c46:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
   33c4a:	48 e0       	ldi	r20, 0x08	; 8
   33c4c:	50 e0       	ldi	r21, 0x00	; 0
   33c4e:	65 ed       	ldi	r22, 0xD5	; 213
   33c50:	7f e0       	ldi	r23, 0x0F	; 15
   33c52:	8b ee       	ldi	r24, 0xEB	; 235
   33c54:	93 e1       	ldi	r25, 0x13	; 19
   33c56:	0f 94 6f dc 	call	0x3b8de	; 0x3b8de <eeprom_update_block>
				MYSERIAL.println(fabs(l));
				SERIAL_ECHOLNPGM("Saving bed calibration vectors to EEPROM");
			}
			#endif // SUPPORT_VERBOSITY
			// Correct the current_position to match the transformed coordinate system after world2machine_rotation_and_skew and world2machine_shift were set.
			world2machine_update_current();
   33c5a:	0f 94 78 cc 	call	0x398f0	; 0x398f0 <world2machine_update_current()>
			}
			#endif // SUPPORT_VERBOSITY
			return result;
		}
        if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED && too_far_mask == 2){
            DBG(_n("Fitting failed => calibration failed.\n"));
   33c5e:	0f 90       	pop	r0
   33c60:	0f 90       	pop	r0
				BedSkewOffsetDetectionResultType result = find_bed_offset_and_skew(verbosity_level, point_too_far_mask);
				clean_up_after_endstop_move(l_feedmultiply);
   33c62:	c7 55       	subi	r28, 0x57	; 87
   33c64:	df 4f       	sbci	r29, 0xFF	; 255
   33c66:	88 81       	ld	r24, Y
   33c68:	99 81       	ldd	r25, Y+1	; 0x01
   33c6a:	c9 5a       	subi	r28, 0xA9	; 169
   33c6c:	d0 40       	sbci	r29, 0x00	; 0
   33c6e:	0e 94 55 66 	call	0xccaa	; 0xccaa <clean_up_after_endstop_move(int) [clone .lto_priv.393]>
				// Print head up.
				current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   33c72:	80 e0       	ldi	r24, 0x00	; 0
   33c74:	90 e0       	ldi	r25, 0x00	; 0
   33c76:	a0 ea       	ldi	r26, 0xA0	; 160
   33c78:	b0 e4       	ldi	r27, 0x40	; 64
   33c7a:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   33c7e:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   33c82:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   33c86:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
				plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 40);
   33c8a:	60 e0       	ldi	r22, 0x00	; 0
   33c8c:	70 e0       	ldi	r23, 0x00	; 0
   33c8e:	80 ea       	ldi	r24, 0xA0	; 160
   33c90:	91 e4       	ldi	r25, 0x41	; 65
   33c92:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
				st_synchronize();
   33c96:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
//#ifndef NEW_XYZCAL
				if (result >= 0)
   33c9a:	17 fd       	sbrc	r17, 7
   33c9c:	22 c0       	rjmp	.+68     	; 0x33ce2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x211a>
bool sample_z() {
    bool sampled = true;
    // make some space for the sheet
    // Avoid calling raise_z(), because a false triggering stallguard may prevent the Z from moving.
    // The extruder then may ram the sheet hard if not going down from some ~150mm height
    current_position[Z_AXIS] = 0.F;
   33c9e:	10 92 9a 06 	sts	0x069A, r1	; 0x80069a <current_position+0x8>
   33ca2:	10 92 9b 06 	sts	0x069B, r1	; 0x80069b <current_position+0x9>
   33ca6:	10 92 9c 06 	sts	0x069C, r1	; 0x80069c <current_position+0xa>
   33caa:	10 92 9d 06 	sts	0x069D, r1	; 0x80069d <current_position+0xb>
    destination[Z_AXIS] = 150.F;
   33cae:	80 e0       	ldi	r24, 0x00	; 0
   33cb0:	90 e0       	ldi	r25, 0x00	; 0
   33cb2:	a6 e1       	ldi	r26, 0x16	; 22
   33cb4:	b3 e4       	ldi	r27, 0x43	; 67
   33cb6:	80 93 7c 06 	sts	0x067C, r24	; 0x80067c <destination+0x8>
   33cba:	90 93 7d 06 	sts	0x067D, r25	; 0x80067d <destination+0x9>
   33cbe:	a0 93 7e 06 	sts	0x067E, r26	; 0x80067e <destination+0xa>
   33cc2:	b0 93 7f 06 	sts	0x067F, r27	; 0x80067f <destination+0xb>
    plan_buffer_line_destinationXYZE(homing_feedrate[Z_AXIS] / 60);
   33cc6:	65 e5       	ldi	r22, 0x55	; 85
   33cc8:	75 e5       	ldi	r23, 0x55	; 85
   33cca:	85 e5       	ldi	r24, 0x55	; 85
   33ccc:	91 e4       	ldi	r25, 0x41	; 65
   33cce:	0f 94 55 c0 	call	0x380aa	; 0x380aa <plan_buffer_line_destinationXYZE(float)>

    lcd_show_fullscreen_message_and_wait_P(_T(MSG_PLACE_STEEL_SHEET));
   33cd2:	8b e5       	ldi	r24, 0x5B	; 91
   33cd4:	99 e5       	ldi	r25, 0x59	; 89
   33cd6:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33cda:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>

    // Sample Z heights for the mesh bed leveling.
    // In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
    if (!sample_mesh_and_store_reference())
   33cde:	0f 94 87 ca 	call	0x3950e	; 0x3950e <sample_mesh_and_store_reference()>
					st_synchronize();
					// if (result >= 0) babystep_apply();
					#endif //HEATBED_V2
				}
//#endif //NEW_XYZCAL
				lcd_update_enable(true);
   33ce2:	81 e0       	ldi	r24, 0x01	; 1
   33ce4:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
				lcd_update(2);
   33ce8:	82 e0       	ldi	r24, 0x02	; 2
   33cea:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>

void lcd_bed_calibration_show_result(BedSkewOffsetDetectionResultType result, uint8_t point_too_far_mask)
{
    const char *msg = NULL;
    if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND));
   33cee:	8c e1       	ldi	r24, 0x1C	; 28
   33cf0:	99 e5       	ldi	r25, 0x59	; 89
}

void lcd_bed_calibration_show_result(BedSkewOffsetDetectionResultType result, uint8_t point_too_far_mask)
{
    const char *msg = NULL;
    if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
   33cf2:	1f 3f       	cpi	r17, 0xFF	; 255
   33cf4:	99 f0       	breq	.+38     	; 0x33d1c <gcode_M45(bool, signed char) [clone .constprop.76]+0x2154>
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND));
    } else if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED) {
   33cf6:	1e 3f       	cpi	r17, 0xFE	; 254
   33cf8:	09 f0       	breq	.+2      	; 0x33cfc <gcode_M45(bool, signed char) [clone .constprop.76]+0x2134>
   33cfa:	73 c0       	rjmp	.+230    	; 0x33de2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x221a>
        if (point_too_far_mask == 0)
   33cfc:	af 96       	adiw	r28, 0x2f	; 47
   33cfe:	4f ad       	ldd	r20, Y+63	; 0x3f
   33d00:	af 97       	sbiw	r28, 0x2f	; 47
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
   33d02:	87 ee       	ldi	r24, 0xE7	; 231
   33d04:	98 e5       	ldi	r25, 0x58	; 88
{
    const char *msg = NULL;
    if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND));
    } else if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED) {
        if (point_too_far_mask == 0)
   33d06:	44 23       	and	r20, r20
   33d08:	49 f0       	breq	.+18     	; 0x33d1c <gcode_M45(bool, signed char) [clone .constprop.76]+0x2154>
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
        else if (point_too_far_mask == 2 || point_too_far_mask == 7)
   33d0a:	af 96       	adiw	r28, 0x2f	; 47
   33d0c:	5f ad       	ldd	r21, Y+63	; 0x3f
   33d0e:	af 97       	sbiw	r28, 0x2f	; 47
            // Only the center point or all the three front points.
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_BOTH_FAR);
   33d10:	85 ea       	ldi	r24, 0xA5	; 165
   33d12:	98 e5       	ldi	r25, 0x58	; 88
    if (result == BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND) {
        lcd_show_fullscreen_message_and_wait_P(_T(MSG_BED_SKEW_OFFSET_DETECTION_POINT_NOT_FOUND));
    } else if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED) {
        if (point_too_far_mask == 0)
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
        else if (point_too_far_mask == 2 || point_too_far_mask == 7)
   33d14:	52 30       	cpi	r21, 0x02	; 2
   33d16:	11 f0       	breq	.+4      	; 0x33d1c <gcode_M45(bool, signed char) [clone .constprop.76]+0x2154>
            // Only the center point or all the three front points.
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_BOTH_FAR);
        else if ((point_too_far_mask & 1) == 0)
            // The right and maybe the center point out of reach.
            msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_RIGHT_FAR);
   33d18:	8e e5       	ldi	r24, 0x5E	; 94
   33d1a:	98 e5       	ldi	r25, 0x58	; 88
   33d1c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33d20:	0d 94 e0 92 	jmp	0x325c0	; 0x325c0 <gcode_M45(bool, signed char) [clone .constprop.76]+0x9f8>
                             (r == 0) ? 1.f :
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
                            ((c == 2) ? (-s1 * measured_pts[2 * i]) :
   33d24:	f2 01       	movw	r30, r4
   33d26:	25 81       	ldd	r18, Z+5	; 0x05
   33d28:	36 81       	ldd	r19, Z+6	; 0x06
   33d2a:	47 81       	ldd	r20, Z+7	; 0x07
   33d2c:	50 85       	ldd	r21, Z+8	; 0x08
   33d2e:	c3 58       	subi	r28, 0x83	; 131
   33d30:	df 4f       	sbci	r29, 0xFF	; 255
   33d32:	68 81       	ld	r22, Y
   33d34:	79 81       	ldd	r23, Y+1	; 0x01
   33d36:	8a 81       	ldd	r24, Y+2	; 0x02
   33d38:	9b 81       	ldd	r25, Y+3	; 0x03
   33d3a:	cd 57       	subi	r28, 0x7D	; 125
   33d3c:	d0 40       	sbci	r29, 0x00	; 0
   33d3e:	0d 94 cc 95 	jmp	0x32b98	; 0x32b98 <gcode_M45(bool, signed char) [clone .constprop.76]+0xfd0>
                    // The first row of the points have a low weight, because their position may not be known
                    // with a sufficient accuracy.
                    if (r != 0 && c != 0) {
                        float a =
                             (r == 1) ? 1.f :
                            ((r == 2) ? ( c1 * measured_pts[2 * i]) :
   33d42:	f2 01       	movw	r30, r4
   33d44:	25 81       	ldd	r18, Z+5	; 0x05
   33d46:	36 81       	ldd	r19, Z+6	; 0x06
   33d48:	47 81       	ldd	r20, Z+7	; 0x07
   33d4a:	50 85       	ldd	r21, Z+8	; 0x08
   33d4c:	ed 96       	adiw	r28, 0x3d	; 61
   33d4e:	6c ad       	ldd	r22, Y+60	; 0x3c
   33d50:	7d ad       	ldd	r23, Y+61	; 0x3d
   33d52:	8e ad       	ldd	r24, Y+62	; 0x3e
   33d54:	9f ad       	ldd	r25, Y+63	; 0x3f
   33d56:	ed 97       	sbiw	r28, 0x3d	; 61
   33d58:	b8 c0       	rjmp	.+368    	; 0x33eca <gcode_M45(bool, signed char) [clone .constprop.76]+0x2302>
                                        (-s2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 1) ? 1.f :
                            ((c == 2) ? ( c1 * measured_pts[2 * i]) :
   33d5a:	f2 01       	movw	r30, r4
   33d5c:	25 81       	ldd	r18, Z+5	; 0x05
   33d5e:	36 81       	ldd	r19, Z+6	; 0x06
   33d60:	47 81       	ldd	r20, Z+7	; 0x07
   33d62:	50 85       	ldd	r21, Z+8	; 0x08
   33d64:	ed 96       	adiw	r28, 0x3d	; 61
   33d66:	6c ad       	ldd	r22, Y+60	; 0x3c
   33d68:	7d ad       	ldd	r23, Y+61	; 0x3d
   33d6a:	8e ad       	ldd	r24, Y+62	; 0x3e
   33d6c:	9f ad       	ldd	r25, Y+63	; 0x3f
   33d6e:	ed 97       	sbiw	r28, 0x3d	; 61
   33d70:	c6 c0       	rjmp	.+396    	; 0x33efe <gcode_M45(bool, signed char) [clone .constprop.76]+0x2336>
            for (uint8_t i = 0; i < npts; ++i) {
                {
                    float j =
                         (r == 0) ? 1.f :
                        ((r == 1) ? 0.f :
                        ((r == 2) ? (-s1 * measured_pts[2 * i]) :
   33d72:	a3 01       	movw	r20, r6
   33d74:	92 01       	movw	r18, r4
   33d76:	c3 58       	subi	r28, 0x83	; 131
   33d78:	df 4f       	sbci	r29, 0xFF	; 255
   33d7a:	68 81       	ld	r22, Y
   33d7c:	79 81       	ldd	r23, Y+1	; 0x01
   33d7e:	8a 81       	ldd	r24, Y+2	; 0x02
   33d80:	9b 81       	ldd	r25, Y+3	; 0x03
   33d82:	cd 57       	subi	r28, 0x7D	; 125
   33d84:	d0 40       	sbci	r29, 0x00	; 0
   33d86:	0d 94 34 96 	jmp	0x32c68	; 0x32c68 <gcode_M45(bool, signed char) [clone .constprop.76]+0x10a0>
            // J^T times f(x)
            acc = 0.f;
            for (uint8_t i = 0; i < npts; ++i) {
                {
                    float j =
                         (r == 0) ? 1.f :
   33d8a:	81 2c       	mov	r8, r1
   33d8c:	91 2c       	mov	r9, r1
   33d8e:	20 e8       	ldi	r18, 0x80	; 128
   33d90:	a2 2e       	mov	r10, r18
   33d92:	2f e3       	ldi	r18, 0x3F	; 63
   33d94:	b2 2e       	mov	r11, r18
   33d96:	0d 94 38 96 	jmp	0x32c70	; 0x32c70 <gcode_M45(bool, signed char) [clone .constprop.76]+0x10a8>
                    float w = point_weight_x(i, measured_pts[2 * i + 1]);
                    acc += j * fx * w;
                }
                {
                    float j =
                         (r == 0) ? 0.f :
   33d9a:	c1 2c       	mov	r12, r1
   33d9c:	d1 2c       	mov	r13, r1
   33d9e:	76 01       	movw	r14, r12
   33da0:	0d 94 af 96 	jmp	0x32d5e	; 0x32d5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x1196>
                        ((r == 1) ? 1.f :
   33da4:	c1 2c       	mov	r12, r1
   33da6:	d1 2c       	mov	r13, r1
   33da8:	90 e8       	ldi	r25, 0x80	; 128
   33daa:	e9 2e       	mov	r14, r25
   33dac:	9f e3       	ldi	r25, 0x3F	; 63
   33dae:	f9 2e       	mov	r15, r25
   33db0:	0d 94 af 96 	jmp	0x32d5e	; 0x32d5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x1196>
            result = (angleDiff > bed_skew_angle_extreme) ?
                BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME :
                BED_SKEW_OFFSET_DETECTION_SKEW_MILD;
        if (fabs(a1) > bed_skew_angle_extreme ||
            fabs(a2) > bed_skew_angle_extreme)
            result = BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME;
   33db4:	12 e0       	ldi	r17, 0x02	; 2
   33db6:	a7 cb       	rjmp	.-2226   	; 0x33506 <gcode_M45(bool, signed char) [clone .constprop.76]+0x193e>
				}
			}
			#endif // SUPPORT_VERBOSITY
			return result;
		}
        if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED && too_far_mask == 2){
   33db8:	1e 3f       	cpi	r17, 0xFE	; 254
   33dba:	89 f4       	brne	.+34     	; 0x33dde <gcode_M45(bool, signed char) [clone .constprop.76]+0x2216>
   33dbc:	af 96       	adiw	r28, 0x2f	; 47
   33dbe:	3f ad       	ldd	r19, Y+63	; 0x3f
   33dc0:	af 97       	sbiw	r28, 0x2f	; 47
   33dc2:	32 30       	cpi	r19, 0x02	; 2
   33dc4:	09 f0       	breq	.+2      	; 0x33dc8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2200>
   33dc6:	4d cf       	rjmp	.-358    	; 0x33c62 <gcode_M45(bool, signed char) [clone .constprop.76]+0x209a>
            DBG(_n("Fitting failed => calibration failed.\n"));
   33dc8:	85 e6       	ldi	r24, 0x65	; 101
   33dca:	9f e6       	ldi	r25, 0x6F	; 111
   33dcc:	9f 93       	push	r25
   33dce:	8f 93       	push	r24
   33dd0:	0f 94 1d db 	call	0x3b63a	; 0x3b63a <printf_P>
   33dd4:	44 cf       	rjmp	.-376    	; 0x33c5e <gcode_M45(bool, signed char) [clone .constprop.76]+0x2096>
				// Reset the baby step value and the baby step applied flag.
				calibration_status_clear(CALIBRATION_STATUS_LIVE_ADJUST);
				eeprom_update_word_notify(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)),0);

				// Complete XYZ calibration.
				uint8_t point_too_far_mask = 0;
   33dd6:	af 96       	adiw	r28, 0x2f	; 47
   33dd8:	1f ae       	std	Y+63, r1	; 0x3f
   33dda:	af 97       	sbiw	r28, 0x2f	; 47
   33ddc:	42 cf       	rjmp	.-380    	; 0x33c62 <gcode_M45(bool, signed char) [clone .constprop.76]+0x209a>
				}
			}
			#endif // SUPPORT_VERBOSITY
			return result;
		}
        if (result == BED_SKEW_OFFSET_DETECTION_FITTING_FAILED && too_far_mask == 2){
   33dde:	1f ef       	ldi	r17, 0xFF	; 255
   33de0:	40 cf       	rjmp	.-384    	; 0x33c62 <gcode_M45(bool, signed char) [clone .constprop.76]+0x209a>
        else
            // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
            msg = _n("XYZ calibration failed. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_LEFT_FAR c=20 r=8
        lcd_show_fullscreen_message_and_wait_P(msg);
    } else {
        if (point_too_far_mask != 0) {
   33de2:	af 96       	adiw	r28, 0x2f	; 47
   33de4:	6f ad       	ldd	r22, Y+63	; 0x3f
   33de6:	af 97       	sbiw	r28, 0x2f	; 47
   33de8:	61 11       	cpse	r22, r1
   33dea:	13 c0       	rjmp	.+38     	; 0x33e12 <gcode_M45(bool, signed char) [clone .constprop.76]+0x224a>
                    break;
                case BED_SKEW_OFFSET_DETECTION_PERFECT:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_PERFECT);
                    break;
                case BED_SKEW_OFFSET_DETECTION_SKEW_MILD:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_SKEW_MILD);
   33dec:	83 e4       	ldi	r24, 0x43	; 67
   33dee:	97 e5       	ldi	r25, 0x57	; 87
                // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
                msg = _n("XYZ calibration compromised. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_LEFT_FAR c=20 r=8
            lcd_show_fullscreen_message_and_wait_P(msg);
        }
        if (point_too_far_mask == 0 || result > 0) {
            switch (result) {
   33df0:	11 30       	cpi	r17, 0x01	; 1
   33df2:	51 f0       	breq	.+20     	; 0x33e08 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2240>
                    break;
                case BED_SKEW_OFFSET_DETECTION_SKEW_MILD:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_SKEW_MILD);
                    break;
                case BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME);
   33df4:	80 e0       	ldi	r24, 0x00	; 0
   33df6:	97 e5       	ldi	r25, 0x57	; 87
                // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
                msg = _n("XYZ calibration compromised. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_LEFT_FAR c=20 r=8
            lcd_show_fullscreen_message_and_wait_P(msg);
        }
        if (point_too_far_mask == 0 || result > 0) {
            switch (result) {
   33df8:	12 30       	cpi	r17, 0x02	; 2
   33dfa:	31 f0       	breq	.+12     	; 0x33e08 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2240>
                default:
                    // should not happen
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
   33dfc:	87 ee       	ldi	r24, 0xE7	; 231
   33dfe:	98 e5       	ldi	r25, 0x58	; 88
                // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
                msg = _n("XYZ calibration compromised. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_LEFT_FAR c=20 r=8
            lcd_show_fullscreen_message_and_wait_P(msg);
        }
        if (point_too_far_mask == 0 || result > 0) {
            switch (result) {
   33e00:	11 11       	cpse	r17, r1
   33e02:	02 c0       	rjmp	.+4      	; 0x33e08 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2240>
                default:
                    // should not happen
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_FITTING_FAILED);
                    break;
                case BED_SKEW_OFFSET_DETECTION_PERFECT:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_PERFECT);
   33e04:	88 e8       	ldi	r24, 0x88	; 136
   33e06:	97 e5       	ldi	r25, 0x57	; 87
                    break;
                case BED_SKEW_OFFSET_DETECTION_SKEW_MILD:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_SKEW_MILD);
                    break;
                case BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME:
                    msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_SKEW_EXTREME);
   33e08:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
                    break;
            }
            lcd_show_fullscreen_message_and_wait_P(msg);
   33e0c:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   33e10:	0d c0       	rjmp	.+26     	; 0x33e2c <gcode_M45(bool, signed char) [clone .constprop.76]+0x2264>
            // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
            msg = _n("XYZ calibration failed. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_FAILED_FRONT_LEFT_FAR c=20 r=8
        lcd_show_fullscreen_message_and_wait_P(msg);
    } else {
        if (point_too_far_mask != 0) {
            if (point_too_far_mask == 2 || point_too_far_mask == 7)
   33e12:	af 96       	adiw	r28, 0x2f	; 47
   33e14:	8f ad       	ldd	r24, Y+63	; 0x3f
   33e16:	af 97       	sbiw	r28, 0x2f	; 47
   33e18:	82 30       	cpi	r24, 0x02	; 2
   33e1a:	f1 f4       	brne	.+60     	; 0x33e58 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2290>
                // Only the center point or all the three front points.
                msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_BOTH_FAR);
   33e1c:	87 e1       	ldi	r24, 0x17	; 23
   33e1e:	98 e5       	ldi	r25, 0x58	; 88
            else if ((point_too_far_mask & 1) == 0)
                // The right and maybe the center point out of reach.
                msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_RIGHT_FAR);
   33e20:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
            else
                // The left and maybe the center point out of reach. //@todo Why isn't it found in the firmware.map
                msg = _n("XYZ calibration compromised. Left front calibration point not reachable.");////MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_LEFT_FAR c=20 r=8
            lcd_show_fullscreen_message_and_wait_P(msg);
   33e24:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        }
        if (point_too_far_mask == 0 || result > 0) {
   33e28:	11 16       	cp	r1, r17
   33e2a:	04 f3       	brlt	.-64     	; 0x33dec <gcode_M45(bool, signed char) [clone .constprop.76]+0x2224>
//#endif //NEW_XYZCAL
				lcd_update_enable(true);
				lcd_update(2);

				lcd_bed_calibration_show_result(result, point_too_far_mask);
				if (result >= 0)
   33e2c:	1f 3f       	cpi	r17, 0xFF	; 255
   33e2e:	11 f4       	brne	.+4      	; 0x33e34 <gcode_M45(bool, signed char) [clone .constprop.76]+0x226c>
   33e30:	0d 94 82 8e 	jmp	0x31d04	; 0x31d04 <gcode_M45(bool, signed char) [clone .constprop.76]+0x13c>
				{
					// Calibration valid, the machine should be able to print. Advise the user to run the V2Calibration.gcode.
					calibration_status_set(CALIBRATION_STATUS_XYZ | CALIBRATION_STATUS_Z);
   33e34:	86 e0       	ldi	r24, 0x06	; 6
   33e36:	0e 94 77 ef 	call	0x1deee	; 0x1deee <calibration_status_set(unsigned char)>
					if (!eeprom_read_byte((uint8_t*)EEPROM_WIZARD_ACTIVE))
   33e3a:	8f e5       	ldi	r24, 0x5F	; 95
   33e3c:	9f e0       	ldi	r25, 0x0F	; 15
   33e3e:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   33e42:	81 11       	cpse	r24, r1
   33e44:	0d 94 fa 92 	jmp	0x325f4	; 0x325f4 <gcode_M45(bool, signed char) [clone .constprop.76]+0xa2c>
						lcd_show_fullscreen_message_and_wait_P(_T(MSG_BABYSTEP_Z_NOT_SET));
   33e48:	82 e8       	ldi	r24, 0x82	; 130
   33e4a:	99 e5       	ldi	r25, 0x59	; 89
   33e4c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33e50:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
   33e54:	0d 94 fa 92 	jmp	0x325f4	; 0x325f4 <gcode_M45(bool, signed char) [clone .constprop.76]+0xa2c>
            if (point_too_far_mask == 2 || point_too_far_mask == 7)
                // Only the center point or all the three front points.
                msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_BOTH_FAR);
            else if ((point_too_far_mask & 1) == 0)
                // The right and maybe the center point out of reach.
                msg = _T(MSG_BED_SKEW_OFFSET_DETECTION_WARNING_FRONT_RIGHT_FAR);
   33e58:	8b ec       	ldi	r24, 0xCB	; 203
   33e5a:	97 e5       	ldi	r25, 0x57	; 87
   33e5c:	e1 cf       	rjmp	.-62     	; 0x33e20 <gcode_M45(bool, signed char) [clone .constprop.76]+0x2258>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 0*dz, dz, radius, 0, delay_us, check_pinda, &ad)) != 0)
			ad += 0;
	if (!ret && (ad < 1440))
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 1*dz, dz, -radius, 0, delay_us, check_pinda, &ad)) != 0)
			ad += 720;
	if (!ret && (ad < 2160))
   33e5e:	89 81       	ldd	r24, Y+1	; 0x01
   33e60:	9a 81       	ldd	r25, Y+2	; 0x02
   33e62:	80 37       	cpi	r24, 0x70	; 112
   33e64:	98 40       	sbci	r25, 0x08	; 8
   33e66:	10 f0       	brcs	.+4      	; 0x33e6c <gcode_M45(bool, signed char) [clone .constprop.76]+0x22a4>
   33e68:	0d 94 39 93 	jmp	0x32672	; 0x32672 <gcode_M45(bool, signed char) [clone .constprop.76]+0xaaa>
		if ((ret = xyzcal_spiral2(cx, cy, z0 - 2*dz, dz, radius, 180, delay_us, check_pinda, &ad)) != 0)
   33e6c:	ae 01       	movw	r20, r28
   33e6e:	4f 5f       	subi	r20, 0xFF	; 255
   33e70:	5f 4f       	sbci	r21, 0xFF	; 255
   33e72:	7a 01       	movw	r14, r20
   33e74:	04 eb       	ldi	r16, 0xB4	; 180
   33e76:	10 e0       	ldi	r17, 0x00	; 0
   33e78:	24 e8       	ldi	r18, 0x84	; 132
   33e7a:	33 e0       	ldi	r19, 0x03	; 3
   33e7c:	a6 01       	movw	r20, r12
   33e7e:	48 5c       	subi	r20, 0xC8	; 200
   33e80:	51 09       	sbc	r21, r1
   33e82:	69 2d       	mov	r22, r9
   33e84:	78 2d       	mov	r23, r8
   33e86:	8b 2d       	mov	r24, r11
   33e88:	9a 2d       	mov	r25, r10
   33e8a:	0f 94 bd 6f 	call	0x2df7a	; 0x2df7a <xyzcal_spiral2(int, int, int, int, int, int, unsigned int, signed char, unsigned int*) [clone .constprop.79]>
   33e8e:	88 23       	and	r24, r24
   33e90:	11 f4       	brne	.+4      	; 0x33e96 <gcode_M45(bool, signed char) [clone .constprop.76]+0x22ce>
   33e92:	0d 94 39 93 	jmp	0x32672	; 0x32672 <gcode_M45(bool, signed char) [clone .constprop.76]+0xaaa>
			ad += 1440;
   33e96:	89 81       	ldd	r24, Y+1	; 0x01
   33e98:	9a 81       	ldd	r25, Y+2	; 0x02
   33e9a:	80 56       	subi	r24, 0x60	; 96
   33e9c:	9a 4f       	sbci	r25, 0xFA	; 250
   33e9e:	0d 94 5c 90 	jmp	0x320b8	; 0x320b8 <gcode_M45(bool, signed char) [clone .constprop.76]+0x4f0>
                        acc += a * b * w;
                    }
                    // Second for the residuum in the y axis.
                    // The first row of the points have a low weight, because their position may not be known
                    // with a sufficient accuracy.
                    if (r != 0 && c != 0) {
   33ea2:	00 23       	and	r16, r16
   33ea4:	11 f4       	brne	.+4      	; 0x33eaa <gcode_M45(bool, signed char) [clone .constprop.76]+0x22e2>
   33ea6:	0d 94 df 95 	jmp	0x32bbe	; 0x32bbe <gcode_M45(bool, signed char) [clone .constprop.76]+0xff6>
                        float a =
                             (r == 1) ? 1.f :
                            ((r == 2) ? ( c1 * measured_pts[2 * i]) :
   33eaa:	02 30       	cpi	r16, 0x02	; 2
   33eac:	09 f0       	breq	.+2      	; 0x33eb0 <gcode_M45(bool, signed char) [clone .constprop.76]+0x22e8>
   33eae:	49 cf       	rjmp	.-366    	; 0x33d42 <gcode_M45(bool, signed char) [clone .constprop.76]+0x217a>
   33eb0:	d2 01       	movw	r26, r4
   33eb2:	11 96       	adiw	r26, 0x01	; 1
   33eb4:	2d 91       	ld	r18, X+
   33eb6:	3d 91       	ld	r19, X+
   33eb8:	4d 91       	ld	r20, X+
   33eba:	5c 91       	ld	r21, X
   33ebc:	14 97       	sbiw	r26, 0x04	; 4
   33ebe:	6e 96       	adiw	r28, 0x1e	; 30
   33ec0:	6c ad       	ldd	r22, Y+60	; 0x3c
   33ec2:	7d ad       	ldd	r23, Y+61	; 0x3d
   33ec4:	8e ad       	ldd	r24, Y+62	; 0x3e
   33ec6:	9f ad       	ldd	r25, Y+63	; 0x3f
   33ec8:	6e 97       	sbiw	r28, 0x1e	; 30
   33eca:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33ece:	4b 01       	movw	r8, r22
   33ed0:	5c 01       	movw	r10, r24
                                        (-s2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 1) ? 1.f :
   33ed2:	60 e0       	ldi	r22, 0x00	; 0
   33ed4:	70 e0       	ldi	r23, 0x00	; 0
   33ed6:	80 e8       	ldi	r24, 0x80	; 128
   33ed8:	9f e3       	ldi	r25, 0x3F	; 63
   33eda:	11 30       	cpi	r17, 0x01	; 1
   33edc:	91 f0       	breq	.+36     	; 0x33f02 <gcode_M45(bool, signed char) [clone .constprop.76]+0x233a>
                            ((c == 2) ? ( c1 * measured_pts[2 * i]) :
   33ede:	12 30       	cpi	r17, 0x02	; 2
   33ee0:	09 f0       	breq	.+2      	; 0x33ee4 <gcode_M45(bool, signed char) [clone .constprop.76]+0x231c>
   33ee2:	3b cf       	rjmp	.-394    	; 0x33d5a <gcode_M45(bool, signed char) [clone .constprop.76]+0x2192>
   33ee4:	d2 01       	movw	r26, r4
   33ee6:	11 96       	adiw	r26, 0x01	; 1
   33ee8:	2d 91       	ld	r18, X+
   33eea:	3d 91       	ld	r19, X+
   33eec:	4d 91       	ld	r20, X+
   33eee:	5c 91       	ld	r21, X
   33ef0:	14 97       	sbiw	r26, 0x04	; 4
   33ef2:	6e 96       	adiw	r28, 0x1e	; 30
   33ef4:	6c ad       	ldd	r22, Y+60	; 0x3c
   33ef6:	7d ad       	ldd	r23, Y+61	; 0x3d
   33ef8:	8e ad       	ldd	r24, Y+62	; 0x3e
   33efa:	9f ad       	ldd	r25, Y+63	; 0x3f
   33efc:	6e 97       	sbiw	r28, 0x1e	; 30
   33efe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
                                        (-s2 * measured_pts[2 * i + 1]));
                        float w = point_weight_y(i, measured_pts[2 * i + 1]);
                        acc += a * b * w;
   33f02:	9b 01       	movw	r18, r22
   33f04:	ac 01       	movw	r20, r24
   33f06:	c5 01       	movw	r24, r10
   33f08:	b4 01       	movw	r22, r8
   33f0a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   33f0e:	9b 01       	movw	r18, r22
   33f10:	ac 01       	movw	r20, r24
   33f12:	c7 01       	movw	r24, r14
   33f14:	b6 01       	movw	r22, r12
   33f16:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   33f1a:	6b 01       	movw	r12, r22
   33f1c:	7c 01       	movw	r14, r24
   33f1e:	0d 94 df 95 	jmp	0x32bbe	; 0x32bbe <gcode_M45(bool, signed char) [clone .constprop.76]+0xff6>
                // J^T times J
                for (uint8_t i = 0; i < npts; ++i) {
                    // First for the residuum in the x axis:
                    if (r != 1 && c != 1) {
                        float a =
                             (r == 0) ? 1.f :
   33f22:	81 2c       	mov	r8, r1
   33f24:	91 2c       	mov	r9, r1
   33f26:	50 e8       	ldi	r21, 0x80	; 128
   33f28:	a5 2e       	mov	r10, r21
   33f2a:	5f e3       	ldi	r21, 0x3F	; 63
   33f2c:	b5 2e       	mov	r11, r21
                            ((r == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
                        float b =
                             (c == 0) ? 1.f :
   33f2e:	11 11       	cpse	r17, r1
   33f30:	0d 94 b9 95 	jmp	0x32b72	; 0x32b72 <gcode_M45(bool, signed char) [clone .constprop.76]+0xfaa>
                            ((c == 2) ? (-s1 * measured_pts[2 * i]) :
                                        (-c2 * measured_pts[2 * i + 1]));
                        float w = point_weight_x(i, measured_pts[2 * i + 1]);
                        acc += a * b * w;
   33f34:	20 e0       	ldi	r18, 0x00	; 0
   33f36:	30 e0       	ldi	r19, 0x00	; 0
   33f38:	40 e8       	ldi	r20, 0x80	; 128
   33f3a:	5f e3       	ldi	r21, 0x3F	; 63
   33f3c:	ea cf       	rjmp	.-44     	; 0x33f12 <gcode_M45(bool, signed char) [clone .constprop.76]+0x234a>
                    // Second for the residuum in the y axis.
                    // The first row of the points have a low weight, because their position may not be known
                    // with a sufficient accuracy.
                    if (r != 0 && c != 0) {
                        float a =
                             (r == 1) ? 1.f :
   33f3e:	81 2c       	mov	r8, r1
   33f40:	91 2c       	mov	r9, r1
   33f42:	40 e8       	ldi	r20, 0x80	; 128
   33f44:	a4 2e       	mov	r10, r20
   33f46:	4f e3       	ldi	r20, 0x3F	; 63
   33f48:	b4 2e       	mov	r11, r20
                        acc += a * b * w;
                    }
                    // Second for the residuum in the y axis.
                    // The first row of the points have a low weight, because their position may not be known
                    // with a sufficient accuracy.
                    if (r != 0 && c != 0) {
   33f4a:	11 11       	cpse	r17, r1
   33f4c:	c2 cf       	rjmp	.-124    	; 0x33ed2 <gcode_M45(bool, signed char) [clone .constprop.76]+0x230a>
   33f4e:	0d 94 df 95 	jmp	0x32bbe	; 0x32bbe <gcode_M45(bool, signed char) [clone .constprop.76]+0xff6>
   33f52:	11 11       	cpse	r17, r1
   33f54:	aa cf       	rjmp	.-172    	; 0x33eaa <gcode_M45(bool, signed char) [clone .constprop.76]+0x22e2>
   33f56:	0d 94 df 95 	jmp	0x32bbe	; 0x32bbe <gcode_M45(bool, signed char) [clone .constprop.76]+0xff6>

00033f5a <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]>:
	manage_heater();
	manage_inactivity(true);
	return _stepresult;

}
static void lcd_selftest_error(TestError testError, const char *_error_1, const char *_error_2)
   33f5a:	1f 93       	push	r17
   33f5c:	cf 93       	push	r28
   33f5e:	df 93       	push	r29
   33f60:	18 2f       	mov	r17, r24
   33f62:	eb 01       	movw	r28, r22
   33f64:	80 e0       	ldi	r24, 0x00	; 0
   33f66:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
{
	lcd_beeper_quick_feedback();

    FORCE_BL_ON_END;
   33f6a:	80 e0       	ldi	r24, 0x00	; 0
   33f6c:	0e 94 d8 89 	call	0x113b0	; 0x113b0 <force_bl_on(bool)>

	target_temperature[0] = 0;
   33f70:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   33f74:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
	target_temperature_bed = 0;
   33f78:	10 92 73 06 	sts	0x0673, r1	; 0x800673 <target_temperature_bed+0x1>
   33f7c:	10 92 72 06 	sts	0x0672, r1	; 0x800672 <target_temperature_bed>
	manage_heater();
   33f80:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
	manage_inactivity();
   33f84:	80 e0       	ldi	r24, 0x00	; 0
   33f86:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>

	lcd_clear();
   33f8a:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

	lcd_puts_at_P(0, 0, _T(MSG_SELFTEST_ERROR));
   33f8e:	8e ee       	ldi	r24, 0xEE	; 238
   33f90:	96 e5       	ldi	r25, 0x56	; 86
   33f92:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33f96:	ac 01       	movw	r20, r24
   33f98:	60 e0       	ldi	r22, 0x00	; 0
   33f9a:	80 e0       	ldi	r24, 0x00	; 0
   33f9c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	lcd_puts_at_P(0, 1, _T(MSG_SELFTEST_PLEASECHECK));
   33fa0:	8e ed       	ldi	r24, 0xDE	; 222
   33fa2:	96 e5       	ldi	r25, 0x56	; 86
   33fa4:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33fa8:	ac 01       	movw	r20, r24
   33faa:	61 e0       	ldi	r22, 0x01	; 1
   33fac:	80 e0       	ldi	r24, 0x00	; 0
   33fae:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

	switch (testError)
   33fb2:	11 50       	subi	r17, 0x01	; 1
   33fb4:	1a 30       	cpi	r17, 0x0A	; 10
   33fb6:	90 f4       	brcc	.+36     	; 0x33fdc <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x82>
   33fb8:	e1 2f       	mov	r30, r17
   33fba:	f0 e0       	ldi	r31, 0x00	; 0
   33fbc:	88 27       	eor	r24, r24
   33fbe:	ec 51       	subi	r30, 0x1C	; 28
   33fc0:	f0 46       	sbci	r31, 0x60	; 96
   33fc2:	8e 4f       	sbci	r24, 0xFE	; 254
   33fc4:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   33fc8:	56 3a       	cpi	r21, 0xA6	; 166
   33fca:	56 39       	cpi	r21, 0x96	; 150
   33fcc:	3c 3a       	cpi	r19, 0xAC	; 172
   33fce:	5e 3a       	cpi	r21, 0xAE	; 174
   33fd0:	00 39       	cpi	r16, 0x90	; 144
   33fd2:	1a 39       	cpi	r17, 0x9A	; 154
   33fd4:	92 39       	cpi	r25, 0x92	; 146
   33fd6:	94 3a       	cpi	r25, 0xA4	; 164
   33fd8:	5c 3a       	cpi	r21, 0xAC	; 172
   33fda:	02 3a       	cpi	r16, 0xA2	; 162
	{
	case TestError::Heater:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_HEATERTHERMISTOR));
   33fdc:	8a ec       	ldi	r24, 0xCA	; 202
   33fde:	96 e5       	ldi	r25, 0x56	; 86
   33fe0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33fe4:	ac 01       	movw	r20, r24
   33fe6:	62 e0       	ldi	r22, 0x02	; 2
   33fe8:	80 e0       	ldi	r24, 0x00	; 0
   33fea:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_NOTCONNECTED));
   33fee:	8a eb       	ldi	r24, 0xBA	; 186
   33ff0:	96 e5       	ldi	r25, 0x56	; 86
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::WiringFsensor:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
   33ff2:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   33ff6:	ac 01       	movw	r20, r24
   33ff8:	63 e0       	ldi	r22, 0x03	; 3
   33ffa:	80 e0       	ldi	r24, 0x00	; 0
   33ffc:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
   34000:	45 c0       	rjmp	.+138    	; 0x3408c <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x132>
	case TestError::Heater:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_HEATERTHERMISTOR));
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_NOTCONNECTED));
		break;
	case TestError::Bed:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_BEDHEATER));
   34002:	8d ea       	ldi	r24, 0xAD	; 173
   34004:	96 e5       	ldi	r25, 0x56	; 86
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_SWAPPED));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::WiringFsensor:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
   34006:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3400a:	ac 01       	movw	r20, r24
   3400c:	62 e0       	ldi	r22, 0x02	; 2
   3400e:	80 e0       	ldi	r24, 0x00	; 0
   34010:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
   34014:	8e e9       	ldi	r24, 0x9E	; 158
   34016:	96 e5       	ldi	r25, 0x56	; 86
   34018:	ec cf       	rjmp	.-40     	; 0x33ff2 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x98>
	case TestError::Bed:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_BEDHEATER));
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		break;
	case TestError::Endstops:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_ENDSTOPS));
   3401a:	83 e9       	ldi	r24, 0x93	; 147
   3401c:	96 e5       	ldi	r25, 0x56	; 86
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::ExtruderFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_HOTEND_FAN));
   3401e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34022:	ac 01       	movw	r20, r24
   34024:	62 e0       	ldi	r22, 0x02	; 2
   34026:	80 e0       	ldi	r24, 0x00	; 0
   34028:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
   3402c:	8e e9       	ldi	r24, 0x9E	; 158
   3402e:	96 e5       	ldi	r25, 0x56	; 86
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::SwappedFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FANS));
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_SWAPPED));
   34030:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34034:	ac 01       	movw	r20, r24
   34036:	63 e0       	ldi	r22, 0x03	; 3
   34038:	80 e0       	ldi	r24, 0x00	; 0
   3403a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(18, 3);
   3403e:	63 e0       	ldi	r22, 0x03	; 3
   34040:	82 e1       	ldi	r24, 0x12	; 18
   34042:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_print(_error_1);
   34046:	ce 01       	movw	r24, r28
   34048:	1f c0       	rjmp	.+62     	; 0x34088 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x12e>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::Motor:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_MOTOR));
   3404a:	8b e8       	ldi	r24, 0x8B	; 139
   3404c:	96 e5       	ldi	r25, 0x56	; 86
   3404e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34052:	ac 01       	movw	r20, r24
   34054:	62 e0       	ldi	r22, 0x02	; 2
   34056:	80 e0       	ldi	r24, 0x00	; 0
   34058:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(18, 2);
   3405c:	62 e0       	ldi	r22, 0x02	; 2
   3405e:	82 e1       	ldi	r24, 0x12	; 18
   34060:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_print(_error_1);
   34064:	ce 01       	movw	r24, r28
   34066:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_ENDSTOP));
   3406a:	81 e8       	ldi	r24, 0x81	; 129
   3406c:	96 e5       	ldi	r25, 0x56	; 86
   3406e:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34072:	ac 01       	movw	r20, r24
   34074:	63 e0       	ldi	r22, 0x03	; 3
   34076:	80 e0       	ldi	r24, 0x00	; 0
   34078:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_set_cursor(18, 3);
   3407c:	63 e0       	ldi	r22, 0x03	; 3
   3407e:	82 e1       	ldi	r24, 0x12	; 18
   34080:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		lcd_print(_error_2);
   34084:	89 ef       	ldi	r24, 0xF9	; 249
   34086:	92 e0       	ldi	r25, 0x02	; 2
		break;
	case TestError::SwappedFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FANS));
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_SWAPPED));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
   34088:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
          lcd_set_cursor(0, 3);
          lcd_printf_P(_T(MSG_SELFTEST_FS_LEVEL),_error_1);
          break;
	}

	_delay(1000);
   3408c:	68 ee       	ldi	r22, 0xE8	; 232
   3408e:	73 e0       	ldi	r23, 0x03	; 3
   34090:	80 e0       	ldi	r24, 0x00	; 0
   34092:	90 e0       	ldi	r25, 0x00	; 0
   34094:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
   34098:	80 e0       	ldi	r24, 0x00	; 0
   3409a:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
	lcd_beeper_quick_feedback();

	do {
		_delay(100);
   3409e:	64 e6       	ldi	r22, 0x64	; 100
   340a0:	70 e0       	ldi	r23, 0x00	; 0
   340a2:	80 e0       	ldi	r24, 0x00	; 0
   340a4:	90 e0       	ldi	r25, 0x00	; 0
   340a6:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>
		manage_heater();
   340aa:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
		manage_inactivity();
   340ae:	80 e0       	ldi	r24, 0x00	; 0
   340b0:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
	} while (!lcd_clicked());
   340b4:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   340b8:	88 23       	and	r24, r24
   340ba:	89 f3       	breq	.-30     	; 0x3409e <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x144>

	LCD_ALERTMESSAGERPGM(_T(MSG_SELFTEST_FAILED));
   340bc:	85 ee       	ldi	r24, 0xE5	; 229
   340be:	95 e5       	ldi	r25, 0x55	; 85
   340c0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   340c4:	62 e0       	ldi	r22, 0x02	; 2
   340c6:	0e 94 02 f2 	call	0x1e404	; 0x1e404 <lcd_setalertstatuspgm(char const*, unsigned char)>
	lcd_return_to_status();

}
   340ca:	df 91       	pop	r29
   340cc:	cf 91       	pop	r28
   340ce:	1f 91       	pop	r17
		manage_heater();
		manage_inactivity();
	} while (!lcd_clicked());

	LCD_ALERTMESSAGERPGM(_T(MSG_SELFTEST_FAILED));
	lcd_return_to_status();
   340d0:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_ENDSTOP));
		lcd_set_cursor(18, 3);
		lcd_print(_error_2);
		break;
	case TestError::Endstop:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_ENDSTOP_NOTHIT));
   340d4:	8f e6       	ldi	r24, 0x6F	; 111
   340d6:	96 e5       	ldi	r25, 0x56	; 86
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::Pulley:
		lcd_puts_at_P(0, 2, _T(MSG_LOOSE_PULLEY));
   340d8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   340dc:	ac 01       	movw	r20, r24
   340de:	62 e0       	ldi	r22, 0x02	; 2
   340e0:	80 e0       	ldi	r24, 0x00	; 0
   340e2:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_MOTOR));
   340e6:	8b e8       	ldi	r24, 0x8B	; 139
   340e8:	96 e5       	ldi	r25, 0x56	; 86
   340ea:	a2 cf       	rjmp	.-188    	; 0x34030 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xd6>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_MOTOR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::PrintFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_PART_FAN));
   340ec:	8c e5       	ldi	r24, 0x5C	; 92
   340ee:	96 e5       	ldi	r25, 0x56	; 86
   340f0:	96 cf       	rjmp	.-212    	; 0x3401e <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xc4>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::ExtruderFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_HOTEND_FAN));
   340f2:	89 e4       	ldi	r24, 0x49	; 73
   340f4:	96 e5       	ldi	r25, 0x56	; 86
   340f6:	93 cf       	rjmp	.-218    	; 0x3401e <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xc4>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_WIRINGERROR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::Pulley:
		lcd_puts_at_P(0, 2, _T(MSG_LOOSE_PULLEY));
   340f8:	8a e3       	ldi	r24, 0x3A	; 58
   340fa:	96 e5       	ldi	r25, 0x56	; 86
   340fc:	ed cf       	rjmp	.-38     	; 0x340d8 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0x17e>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_MOTOR));
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::Axis:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_AXIS_LENGTH));
   340fe:	8c e2       	ldi	r24, 0x2C	; 44
   34100:	96 e5       	ldi	r25, 0x56	; 86
   34102:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34106:	ac 01       	movw	r20, r24
   34108:	62 e0       	ldi	r22, 0x02	; 2
   3410a:	80 e0       	ldi	r24, 0x00	; 0
   3410c:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_AXIS));
   34110:	85 e2       	ldi	r24, 0x25	; 37
   34112:	96 e5       	ldi	r25, 0x56	; 86
   34114:	8d cf       	rjmp	.-230    	; 0x34030 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xd6>
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::SwappedFan:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FANS));
   34116:	83 e1       	ldi	r24, 0x13	; 19
   34118:	96 e5       	ldi	r25, 0x56	; 86
   3411a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3411e:	ac 01       	movw	r20, r24
   34120:	62 e0       	ldi	r22, 0x02	; 2
   34122:	80 e0       	ldi	r24, 0x00	; 0
   34124:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 3, _T(MSG_SELFTEST_SWAPPED));
   34128:	89 e0       	ldi	r24, 0x09	; 9
   3412a:	96 e5       	ldi	r25, 0x56	; 86
   3412c:	81 cf       	rjmp	.-254    	; 0x34030 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xd6>
		lcd_set_cursor(18, 3);
		lcd_print(_error_1);
		break;
	case TestError::WiringFsensor:
		lcd_puts_at_P(0, 2, _T(MSG_SELFTEST_FILAMENT_SENSOR));
   3412e:	87 ef       	ldi	r24, 0xF7	; 247
   34130:	95 e5       	ldi	r25, 0x55	; 85
   34132:	69 cf       	rjmp	.-302    	; 0x34006 <lcd_selftest_error(TestError, char const*, char const*) [clone .constprop.74]+0xac>

00034134 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]>:
    return true;
}
#endif //(FILAMENT_SENSOR_TYPE == FSENSOR_IR) || (FILAMENT_SENSOR_TYPE == FSENSOR_IR_ANALOG)
#endif //FILAMENT_SENSOR

static bool lcd_selftest_manual_fan_check(const uint8_t _fan, const bool check_opposite,
   34134:	1f 93       	push	r17
   34136:	cf 93       	push	r28
   34138:	df 93       	push	r29
   3413a:	c8 2f       	mov	r28, r24
   3413c:	d6 2f       	mov	r29, r22
	const bool _default)
{

	bool _result = check_opposite;
	lcd_clear();
   3413e:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>

	lcd_puts_at_P(0, 0, _T(MSG_SELFTEST_FAN));
   34142:	8a ed       	ldi	r24, 0xDA	; 218
   34144:	95 e5       	ldi	r25, 0x55	; 85
   34146:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3414a:	ac 01       	movw	r20, r24
   3414c:	60 e0       	ldi	r22, 0x00	; 0
   3414e:	80 e0       	ldi	r24, 0x00	; 0
   34150:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_puts_at_P(0, 1, check_opposite ? _T(MSG_SELFTEST_PART_FAN) : _T(MSG_SELFTEST_HOTEND_FAN));
		setExtruderAutoFanState(3);
		break;
	case 1:
		// object cooling fan
		lcd_puts_at_P(0, 1, check_opposite ? _T(MSG_SELFTEST_HOTEND_FAN) : _T(MSG_SELFTEST_PART_FAN));
   34154:	89 e4       	ldi	r24, 0x49	; 73
   34156:	96 e5       	ldi	r25, 0x56	; 86
   34158:	c1 11       	cpse	r28, r1
   3415a:	02 c0       	rjmp	.+4      	; 0x34160 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]+0x2c>
   3415c:	8c e5       	ldi	r24, 0x5C	; 92
   3415e:	96 e5       	ldi	r25, 0x56	; 86
   34160:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34164:	ac 01       	movw	r20, r24
   34166:	61 e0       	ldi	r22, 0x01	; 1
   34168:	80 e0       	ldi	r24, 0x00	; 0
   3416a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
		lcd_selftest_setfan(255);
   3416e:	8f ef       	ldi	r24, 0xFF	; 255
   34170:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>
		break;
	}
	_delay(500);
   34174:	64 ef       	ldi	r22, 0xF4	; 244
   34176:	71 e0       	ldi	r23, 0x01	; 1
   34178:	80 e0       	ldi	r24, 0x00	; 0
   3417a:	90 e0       	ldi	r25, 0x00	; 0
   3417c:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>

	lcd_puts_at_P(1, 2, _T(MSG_SELFTEST_FAN_YES));
   34180:	8f ec       	ldi	r24, 0xCF	; 207
   34182:	95 e5       	ldi	r25, 0x55	; 85
   34184:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   34188:	ac 01       	movw	r20, r24
   3418a:	62 e0       	ldi	r22, 0x02	; 2
   3418c:	81 e0       	ldi	r24, 0x01	; 1
   3418e:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
	lcd_putc_at(0, 3, '>');
   34192:	4e e3       	ldi	r20, 0x3E	; 62
   34194:	63 e0       	ldi	r22, 0x03	; 3
   34196:	80 e0       	ldi	r24, 0x00	; 0
   34198:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
	lcd_puts_P(_T(MSG_SELFTEST_FAN_NO));
   3419c:	80 ec       	ldi	r24, 0xC0	; 192
   3419e:	95 e5       	ldi	r25, 0x55	; 85
   341a0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   341a4:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>

	lcd_encoder = _default;
   341a8:	6d 2f       	mov	r22, r29
   341aa:	70 e0       	ldi	r23, 0x00	; 0
   341ac:	70 93 71 06 	sts	0x0671, r23	; 0x800671 <lcd_encoder+0x1>
   341b0:	60 93 70 06 	sts	0x0670, r22	; 0x800670 <lcd_encoder>

	KEEPALIVE_STATE(PAUSED_FOR_USER);
   341b4:	84 e0       	ldi	r24, 0x04	; 4
   341b6:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
	lcd_consume_click();
   341ba:	0e 94 7f 70 	call	0xe0fe	; 0xe0fe <lcd_consume_click()>
   341be:	dc 2f       	mov	r29, r28

	do
	{
		if (lcd_encoder) {
			if (lcd_encoder < 0) {
				_result = !check_opposite;
   341c0:	11 e0       	ldi	r17, 0x01	; 1
   341c2:	1c 27       	eor	r17, r28
	KEEPALIVE_STATE(PAUSED_FOR_USER);
	lcd_consume_click();

	do
	{
		if (lcd_encoder) {
   341c4:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   341c8:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   341cc:	00 97       	sbiw	r24, 0x00	; 0
   341ce:	19 f1       	breq	.+70     	; 0x34216 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]+0xe2>
			if (lcd_encoder < 0) {
   341d0:	97 ff       	sbrs	r25, 7
   341d2:	0b c0       	rjmp	.+22     	; 0x341ea <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]+0xb6>
				_result = !check_opposite;
   341d4:	d1 2f       	mov	r29, r17
				lcd_putc_at(0, 2, '>');
   341d6:	4e e3       	ldi	r20, 0x3E	; 62
   341d8:	62 e0       	ldi	r22, 0x02	; 2
   341da:	80 e0       	ldi	r24, 0x00	; 0
   341dc:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
				lcd_putc_at(0, 3, ' ');
   341e0:	40 e2       	ldi	r20, 0x20	; 32
   341e2:	63 e0       	ldi	r22, 0x03	; 3
   341e4:	80 e0       	ldi	r24, 0x00	; 0
   341e6:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
			}

			if (lcd_encoder > 0) {
   341ea:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   341ee:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   341f2:	18 16       	cp	r1, r24
   341f4:	19 06       	cpc	r1, r25
   341f6:	5c f4       	brge	.+22     	; 0x3420e <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]+0xda>
				_result = check_opposite;
				lcd_putc_at(0, 2, ' ');
   341f8:	40 e2       	ldi	r20, 0x20	; 32
   341fa:	62 e0       	ldi	r22, 0x02	; 2
   341fc:	80 e0       	ldi	r24, 0x00	; 0
   341fe:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
				lcd_putc_at(0, 3, '>');
   34202:	4e e3       	ldi	r20, 0x3E	; 62
   34204:	63 e0       	ldi	r22, 0x03	; 3
   34206:	80 e0       	ldi	r24, 0x00	; 0
   34208:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
   3420c:	dc 2f       	mov	r29, r28
			}
			lcd_encoder = 0;
   3420e:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   34212:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
		}

		manage_heater();
   34216:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
		manage_inactivity(true);
   3421a:	81 e0       	ldi	r24, 0x01	; 1
   3421c:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
		_delay(100);
   34220:	64 e6       	ldi	r22, 0x64	; 100
   34222:	70 e0       	ldi	r23, 0x00	; 0
   34224:	80 e0       	ldi	r24, 0x00	; 0
   34226:	90 e0       	ldi	r25, 0x00	; 0
   34228:	0f 94 5f 28 	call	0x250be	; 0x250be <delay2>

	} while (!lcd_clicked());
   3422c:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   34230:	88 23       	and	r24, r24
   34232:	41 f2       	breq	.-112    	; 0x341c4 <lcd_selftest_manual_fan_check(unsigned char, bool, bool) [clone .constprop.73]+0x90>
	KEEPALIVE_STATE(IN_HANDLER);
   34234:	82 e0       	ldi	r24, 0x02	; 2
   34236:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
	setExtruderAutoFanState(0); // Turn off hotend fan
   3423a:	80 e0       	ldi	r24, 0x00	; 0
   3423c:	0e 94 e2 74 	call	0xe9c4	; 0xe9c4 <setExtruderAutoFanState(unsigned char)>
	lcd_selftest_setfan(0); // Turn off print fan
   34240:	80 e0       	ldi	r24, 0x00	; 0
   34242:	0e 94 3f f6 	call	0x1ec7e	; 0x1ec7e <lcd_selftest_setfan(unsigned char) [clone .lto_priv.395]>

	return _result;
}
   34246:	8d 2f       	mov	r24, r29
   34248:	df 91       	pop	r29
   3424a:	cf 91       	pop	r28
   3424c:	1f 91       	pop	r17
   3424e:	08 95       	ret

00034250 <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]>:

#ifdef FANCHECK
// Wait for the specified number of seconds while displaying some single-character indicator on the
// screen coordinate col/row, then perform fan measurement
static void lcd_selftest_measure_fans(uint8_t delay, uint8_t col, uint8_t row) {
   34250:	cf 93       	push	r28
   34252:	df 93       	push	r29
   34254:	c8 2f       	mov	r28, r24
   34256:	d6 2f       	mov	r29, r22
    // spin-up delay
    static char symbols[] = {'-', '|'};
    static_assert(1000 / sizeof(symbols) * sizeof(symbols) == 1000);
    while(delay--) {
   34258:	c1 50       	subi	r28, 0x01	; 1
   3425a:	98 f0       	brcs	.+38     	; 0x34282 <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]+0x32>
        for(uint8_t i = 0; i != sizeof(symbols); ++i) {
            lcd_putc_at(col, row, symbols[i]);
   3425c:	4d e2       	ldi	r20, 0x2D	; 45
   3425e:	6d 2f       	mov	r22, r29
   34260:	82 e1       	ldi	r24, 0x12	; 18
   34262:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
            delay_keep_alive(1000 / sizeof(symbols));
   34266:	84 ef       	ldi	r24, 0xF4	; 244
   34268:	91 e0       	ldi	r25, 0x01	; 1
   3426a:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
    // spin-up delay
    static char symbols[] = {'-', '|'};
    static_assert(1000 / sizeof(symbols) * sizeof(symbols) == 1000);
    while(delay--) {
        for(uint8_t i = 0; i != sizeof(symbols); ++i) {
            lcd_putc_at(col, row, symbols[i]);
   3426e:	4c e7       	ldi	r20, 0x7C	; 124
   34270:	6d 2f       	mov	r22, r29
   34272:	82 e1       	ldi	r24, 0x12	; 18
   34274:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
            delay_keep_alive(1000 / sizeof(symbols));
   34278:	84 ef       	ldi	r24, 0xF4	; 244
   3427a:	91 e0       	ldi	r25, 0x01	; 1
   3427c:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   34280:	eb cf       	rjmp	.-42     	; 0x34258 <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]+0x8>
        }
    }

#ifdef FANCHECK
    extruder_autofan_last_check = _millis();
   34282:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   34286:	60 93 c0 17 	sts	0x17C0, r22	; 0x8017c0 <extruder_autofan_last_check>
   3428a:	70 93 c1 17 	sts	0x17C1, r23	; 0x8017c1 <extruder_autofan_last_check+0x1>
   3428e:	80 93 c2 17 	sts	0x17C2, r24	; 0x8017c2 <extruder_autofan_last_check+0x2>
   34292:	90 93 c3 17 	sts	0x17C3, r25	; 0x8017c3 <extruder_autofan_last_check+0x3>
#endif
    fan_measuring = true;
   34296:	81 e0       	ldi	r24, 0x01	; 1
   34298:	80 93 6f 06 	sts	0x066F, r24	; 0x80066f <fan_measuring>
    while(fan_measuring) {
   3429c:	80 91 6f 06 	lds	r24, 0x066F	; 0x80066f <fan_measuring>
   342a0:	88 23       	and	r24, r24
   342a2:	29 f0       	breq	.+10     	; 0x342ae <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]+0x5e>
        delay_keep_alive(100);
   342a4:	84 e6       	ldi	r24, 0x64	; 100
   342a6:	90 e0       	ldi	r25, 0x00	; 0
   342a8:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   342ac:	f7 cf       	rjmp	.-18     	; 0x3429c <lcd_selftest_measure_fans(unsigned char, unsigned char, unsigned char) [clone .constprop.72]+0x4c>
    }

    gcode_M123();
}
   342ae:	df 91       	pop	r29
   342b0:	cf 91       	pop	r28
    fan_measuring = true;
    while(fan_measuring) {
        delay_keep_alive(100);
    }

    gcode_M123();
   342b2:	0c 94 0b 66 	jmp	0xcc16	; 0xcc16 <gcode_M123()>

000342b6 <analog2temp(int, unsigned char) [clone .constprop.70]>:
}

#define PGM_RD_W(x)   (short)pgm_read_word(&x)
// Derived from RepRap FiveD extruder::getTemperature()
// For hot end temperature measurement.
static float analog2temp(int raw, uint8_t e) {
   342b6:	4f 92       	push	r4
   342b8:	5f 92       	push	r5
   342ba:	6f 92       	push	r6
   342bc:	7f 92       	push	r7
   342be:	af 92       	push	r10
   342c0:	bf 92       	push	r11
   342c2:	cf 92       	push	r12
   342c4:	df 92       	push	r13
   342c6:	ef 92       	push	r14
   342c8:	ff 92       	push	r15
   342ca:	0f 93       	push	r16
   342cc:	1f 93       	push	r17
   342ce:	cf 93       	push	r28
   342d0:	df 93       	push	r29
   342d2:	24 e0       	ldi	r18, 0x04	; 4
   342d4:	30 e0       	ldi	r19, 0x00	; 0
   342d6:	41 e0       	ldi	r20, 0x01	; 1
   342d8:	50 e0       	ldi	r21, 0x00	; 0
   342da:	d9 01       	movw	r26, r18
   342dc:	af 50       	subi	r26, 0x0F	; 15
   342de:	bd 45       	sbci	r27, 0x5D	; 93
    uint8_t i;
    short (*tt)[][2] = (short (*)[][2])(heater_ttbl_map[e]);

    for (i=1; i<heater_ttbllen_map[e]; i++)
    {
      if (PGM_RD_W((*tt)[i][0]) > raw)
   342e0:	fd 01       	movw	r30, r26
   342e2:	65 91       	lpm	r22, Z+
   342e4:	74 91       	lpm	r23, Z
   342e6:	86 17       	cp	r24, r22
   342e8:	97 07       	cpc	r25, r23
   342ea:	0c f0       	brlt	.+2      	; 0x342ee <analog2temp(int, unsigned char) [clone .constprop.70]+0x38>
   342ec:	66 c0       	rjmp	.+204    	; 0x343ba <analog2temp(int, unsigned char) [clone .constprop.70]+0x104>
      {
        celsius = PGM_RD_W((*tt)[i-1][1]) +
   342ee:	41 50       	subi	r20, 0x01	; 1
   342f0:	51 09       	sbc	r21, r1
   342f2:	44 0f       	add	r20, r20
   342f4:	55 1f       	adc	r21, r21
   342f6:	44 0f       	add	r20, r20
   342f8:	55 1f       	adc	r21, r21
   342fa:	ea 01       	movw	r28, r20
   342fc:	cd 50       	subi	r28, 0x0D	; 13
   342fe:	dd 45       	sbci	r29, 0x5D	; 93
   34300:	fe 01       	movw	r30, r28
   34302:	05 91       	lpm	r16, Z+
   34304:	14 91       	lpm	r17, Z
          (raw - PGM_RD_W((*tt)[i-1][0])) *
   34306:	4f 50       	subi	r20, 0x0F	; 15
   34308:	5d 45       	sbci	r21, 0x5D	; 93
   3430a:	fa 01       	movw	r30, r20
   3430c:	65 91       	lpm	r22, Z+
   3430e:	74 91       	lpm	r23, Z
          (float)(PGM_RD_W((*tt)[i][1]) - PGM_RD_W((*tt)[i-1][1])) /
   34310:	f9 01       	movw	r30, r18
   34312:	ed 50       	subi	r30, 0x0D	; 13
   34314:	fd 45       	sbci	r31, 0x5D	; 93
   34316:	e5 90       	lpm	r14, Z+
   34318:	f4 90       	lpm	r15, Z
   3431a:	fe 01       	movw	r30, r28
   3431c:	c5 90       	lpm	r12, Z+
   3431e:	d4 90       	lpm	r13, Z
          (float)(PGM_RD_W((*tt)[i][0]) - PGM_RD_W((*tt)[i-1][0]));
   34320:	fd 01       	movw	r30, r26
   34322:	c5 91       	lpm	r28, Z+
   34324:	d4 91       	lpm	r29, Z
   34326:	fa 01       	movw	r30, r20
   34328:	a5 90       	lpm	r10, Z+
   3432a:	b4 90       	lpm	r11, Z
    for (i=1; i<heater_ttbllen_map[e]; i++)
    {
      if (PGM_RD_W((*tt)[i][0]) > raw)
      {
        celsius = PGM_RD_W((*tt)[i-1][1]) +
          (raw - PGM_RD_W((*tt)[i-1][0])) *
   3432c:	86 1b       	sub	r24, r22
   3432e:	97 0b       	sbc	r25, r23
   34330:	bc 01       	movw	r22, r24
   34332:	99 0f       	add	r25, r25
   34334:	88 0b       	sbc	r24, r24
   34336:	99 0b       	sbc	r25, r25
   34338:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   3433c:	2b 01       	movw	r4, r22
   3433e:	3c 01       	movw	r6, r24
          (float)(PGM_RD_W((*tt)[i][1]) - PGM_RD_W((*tt)[i-1][1])) /
   34340:	b7 01       	movw	r22, r14
   34342:	6c 19       	sub	r22, r12
   34344:	7d 09       	sbc	r23, r13
   34346:	07 2e       	mov	r0, r23
   34348:	00 0c       	add	r0, r0
   3434a:	88 0b       	sbc	r24, r24
   3434c:	99 0b       	sbc	r25, r25
   3434e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   34352:	9b 01       	movw	r18, r22
   34354:	ac 01       	movw	r20, r24
    for (i=1; i<heater_ttbllen_map[e]; i++)
    {
      if (PGM_RD_W((*tt)[i][0]) > raw)
      {
        celsius = PGM_RD_W((*tt)[i-1][1]) +
          (raw - PGM_RD_W((*tt)[i-1][0])) *
   34356:	c3 01       	movw	r24, r6
   34358:	b2 01       	movw	r22, r4
   3435a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3435e:	6b 01       	movw	r12, r22
   34360:	7c 01       	movw	r14, r24
          (float)(PGM_RD_W((*tt)[i][1]) - PGM_RD_W((*tt)[i-1][1])) /
          (float)(PGM_RD_W((*tt)[i][0]) - PGM_RD_W((*tt)[i-1][0]));
   34362:	be 01       	movw	r22, r28
   34364:	6a 19       	sub	r22, r10
   34366:	7b 09       	sbc	r23, r11
   34368:	07 2e       	mov	r0, r23
   3436a:	00 0c       	add	r0, r0
   3436c:	88 0b       	sbc	r24, r24
   3436e:	99 0b       	sbc	r25, r25
   34370:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   34374:	9b 01       	movw	r18, r22
   34376:	ac 01       	movw	r20, r24
    {
      if (PGM_RD_W((*tt)[i][0]) > raw)
      {
        celsius = PGM_RD_W((*tt)[i-1][1]) +
          (raw - PGM_RD_W((*tt)[i-1][0])) *
          (float)(PGM_RD_W((*tt)[i][1]) - PGM_RD_W((*tt)[i-1][1])) /
   34378:	c7 01       	movw	r24, r14
   3437a:	b6 01       	movw	r22, r12
   3437c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   34380:	6b 01       	movw	r12, r22
   34382:	7c 01       	movw	r14, r24

    for (i=1; i<heater_ttbllen_map[e]; i++)
    {
      if (PGM_RD_W((*tt)[i][0]) > raw)
      {
        celsius = PGM_RD_W((*tt)[i-1][1]) +
   34384:	b8 01       	movw	r22, r16
   34386:	11 0f       	add	r17, r17
   34388:	88 0b       	sbc	r24, r24
   3438a:	99 0b       	sbc	r25, r25
   3438c:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   34390:	9b 01       	movw	r18, r22
   34392:	ac 01       	movw	r20, r24
   34394:	c7 01       	movw	r24, r14
   34396:	b6 01       	movw	r22, r12
   34398:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    if (i == heater_ttbllen_map[e]) celsius = PGM_RD_W((*tt)[i-1][1]);

    return celsius;
  }
  return ((raw * ((5.0 * 100.0) / 1024.0) / OVERSAMPLENR) * TEMP_SENSOR_AD595_GAIN) + TEMP_SENSOR_AD595_OFFSET;
}
   3439c:	df 91       	pop	r29
   3439e:	cf 91       	pop	r28
   343a0:	1f 91       	pop	r17
   343a2:	0f 91       	pop	r16
   343a4:	ff 90       	pop	r15
   343a6:	ef 90       	pop	r14
   343a8:	df 90       	pop	r13
   343aa:	cf 90       	pop	r12
   343ac:	bf 90       	pop	r11
   343ae:	af 90       	pop	r10
   343b0:	7f 90       	pop	r7
   343b2:	6f 90       	pop	r6
   343b4:	5f 90       	pop	r5
   343b6:	4f 90       	pop	r4
   343b8:	08 95       	ret
   343ba:	4f 5f       	subi	r20, 0xFF	; 255
   343bc:	5f 4f       	sbci	r21, 0xFF	; 255
   343be:	2c 5f       	subi	r18, 0xFC	; 252
   343c0:	3f 4f       	sbci	r19, 0xFF	; 255
  {
    float celsius = 0;
    uint8_t i;
    short (*tt)[][2] = (short (*)[][2])(heater_ttbl_map[e]);

    for (i=1; i<heater_ttbllen_map[e]; i++)
   343c2:	20 38       	cpi	r18, 0x80	; 128
   343c4:	31 05       	cpc	r19, r1
   343c6:	09 f0       	breq	.+2      	; 0x343ca <analog2temp(int, unsigned char) [clone .constprop.70]+0x114>
   343c8:	88 cf       	rjmp	.-240    	; 0x342da <analog2temp(int, unsigned char) [clone .constprop.70]+0x24>
        break;
      }
    }

    // Overflow: Set to last value in the table
    if (i == heater_ttbllen_map[e]) celsius = PGM_RD_W((*tt)[i-1][1]);
   343ca:	ef e6       	ldi	r30, 0x6F	; 111
   343cc:	f3 ea       	ldi	r31, 0xA3	; 163
   343ce:	65 91       	lpm	r22, Z+
   343d0:	74 91       	lpm	r23, Z
   343d2:	07 2e       	mov	r0, r23
   343d4:	00 0c       	add	r0, r0
   343d6:	88 0b       	sbc	r24, r24
   343d8:	99 0b       	sbc	r25, r25
   343da:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   343de:	de cf       	rjmp	.-68     	; 0x3439c <analog2temp(int, unsigned char) [clone .constprop.70]+0xe6>

000343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>:

float mesh_bed_leveling::get_z(float x, float y) {
   343e0:	2f 92       	push	r2
   343e2:	3f 92       	push	r3
   343e4:	4f 92       	push	r4
   343e6:	5f 92       	push	r5
   343e8:	6f 92       	push	r6
   343ea:	7f 92       	push	r7
   343ec:	8f 92       	push	r8
   343ee:	9f 92       	push	r9
   343f0:	af 92       	push	r10
   343f2:	bf 92       	push	r11
   343f4:	cf 92       	push	r12
   343f6:	df 92       	push	r13
   343f8:	ef 92       	push	r14
   343fa:	ff 92       	push	r15
   343fc:	0f 93       	push	r16
   343fe:	1f 93       	push	r17
   34400:	cf 93       	push	r28
   34402:	df 93       	push	r29
   34404:	00 d0       	rcall	.+0      	; 0x34406 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x26>
   34406:	00 d0       	rcall	.+0      	; 0x34408 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x28>
   34408:	00 d0       	rcall	.+0      	; 0x3440a <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x2a>
   3440a:	1f 92       	push	r1
   3440c:	cd b7       	in	r28, 0x3d	; 61
   3440e:	de b7       	in	r29, 0x3e	; 62
   34410:	2b 01       	movw	r4, r22
   34412:	3c 01       	movw	r6, r24
   34414:	49 01       	movw	r8, r18
   34416:	5a 01       	movw	r10, r20
    int   i, j;
    float s, t;

    i = int(floor((x - (BED_X0 + X_PROBE_OFFSET_FROM_EXTRUDER)) / x_mesh_density));
   34418:	20 e0       	ldi	r18, 0x00	; 0
   3441a:	30 e0       	ldi	r19, 0x00	; 0
   3441c:	40 ec       	ldi	r20, 0xC0	; 192
   3441e:	51 e4       	ldi	r21, 0x41	; 65
   34420:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34424:	20 e0       	ldi	r18, 0x00	; 0
   34426:	30 e0       	ldi	r19, 0x00	; 0
   34428:	48 e0       	ldi	r20, 0x08	; 8
   3442a:	52 e4       	ldi	r21, 0x42	; 66
   3442c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   34430:	6b 01       	movw	r12, r22
   34432:	7c 01       	movw	r14, r24
   34434:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   34438:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
    if (i < 0) {
        i = 0;
   3443c:	31 2c       	mov	r3, r1
   3443e:	21 2c       	mov	r2, r1
float mesh_bed_leveling::get_z(float x, float y) {
    int   i, j;
    float s, t;

    i = int(floor((x - (BED_X0 + X_PROBE_OFFSET_FROM_EXTRUDER)) / x_mesh_density));
    if (i < 0) {
   34440:	77 fd       	sbrc	r23, 7
   34442:	1e c0       	rjmp	.+60     	; 0x34480 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0xa0>
   34444:	1b 01       	movw	r2, r22
   34446:	66 30       	cpi	r22, 0x06	; 6
   34448:	71 05       	cpc	r23, r1
   3444a:	1c f0       	brlt	.+6      	; 0x34452 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x72>
   3444c:	45 e0       	ldi	r20, 0x05	; 5
   3444e:	24 2e       	mov	r2, r20
   34450:	31 2c       	mov	r3, r1

    mesh_bed_leveling() { reset(); }

    void reset();

    static float get_x(int i) { return BED_X(i) + X_PROBE_OFFSET_FROM_EXTRUDER; }
   34452:	82 2d       	mov	r24, r2
   34454:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   34458:	20 e0       	ldi	r18, 0x00	; 0
   3445a:	30 e0       	ldi	r19, 0x00	; 0
   3445c:	48 eb       	ldi	r20, 0xB8	; 184
   3445e:	51 e4       	ldi	r21, 0x41	; 65
   34460:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   34464:	9b 01       	movw	r18, r22
   34466:	ac 01       	movw	r20, r24
        s = (x - (BED_X0 + X_PROBE_OFFSET_FROM_EXTRUDER)) / x_mesh_density;
    } else {
        if (i > MESH_NUM_X_POINTS - 2) {
            i = MESH_NUM_X_POINTS - 2;
        }
        s = (x - get_x(i)) / x_mesh_density;
   34468:	c3 01       	movw	r24, r6
   3446a:	b2 01       	movw	r22, r4
   3446c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34470:	20 e0       	ldi	r18, 0x00	; 0
   34472:	30 e0       	ldi	r19, 0x00	; 0
   34474:	48 e0       	ldi	r20, 0x08	; 8
   34476:	52 e4       	ldi	r21, 0x42	; 66
   34478:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   3447c:	6b 01       	movw	r12, r22
   3447e:	7c 01       	movw	r14, r24
    }

    j = int(floor((y - (BED_Y0 + Y_PROBE_OFFSET_FROM_EXTRUDER)) / y_mesh_density));
   34480:	20 e0       	ldi	r18, 0x00	; 0
   34482:	30 e0       	ldi	r19, 0x00	; 0
   34484:	40 ec       	ldi	r20, 0xC0	; 192
   34486:	50 e4       	ldi	r21, 0x40	; 64
   34488:	c5 01       	movw	r24, r10
   3448a:	b4 01       	movw	r22, r8
   3448c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34490:	20 e0       	ldi	r18, 0x00	; 0
   34492:	30 e0       	ldi	r19, 0x00	; 0
   34494:	48 e0       	ldi	r20, 0x08	; 8
   34496:	52 e4       	ldi	r21, 0x42	; 66
   34498:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   3449c:	69 83       	std	Y+1, r22	; 0x01
   3449e:	7a 83       	std	Y+2, r23	; 0x02
   344a0:	8b 83       	std	Y+3, r24	; 0x03
   344a2:	9c 83       	std	Y+4, r25	; 0x04
   344a4:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   344a8:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
    if (j < 0) {
   344ac:	77 fd       	sbrc	r23, 7
   344ae:	da c0       	rjmp	.+436    	; 0x34664 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x284>
   344b0:	7a 87       	std	Y+10, r23	; 0x0a
   344b2:	69 87       	std	Y+9, r22	; 0x09
   344b4:	66 30       	cpi	r22, 0x06	; 6
   344b6:	71 05       	cpc	r23, r1
   344b8:	24 f0       	brlt	.+8      	; 0x344c2 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0xe2>
   344ba:	e5 e0       	ldi	r30, 0x05	; 5
   344bc:	f0 e0       	ldi	r31, 0x00	; 0
   344be:	fa 87       	std	Y+10, r31	; 0x0a
   344c0:	e9 87       	std	Y+9, r30	; 0x09
    static float get_y(int i) { return BED_Y(i) + Y_PROBE_OFFSET_FROM_EXTRUDER; }
   344c2:	89 85       	ldd	r24, Y+9	; 0x09
   344c4:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   344c8:	20 e0       	ldi	r18, 0x00	; 0
   344ca:	30 e0       	ldi	r19, 0x00	; 0
   344cc:	40 ea       	ldi	r20, 0xA0	; 160
   344ce:	50 e4       	ldi	r21, 0x40	; 64
   344d0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   344d4:	9b 01       	movw	r18, r22
   344d6:	ac 01       	movw	r20, r24
        t = (y - (BED_Y0 + Y_PROBE_OFFSET_FROM_EXTRUDER)) / y_mesh_density;
    } else {
        if (j > MESH_NUM_Y_POINTS - 2) {
            j = MESH_NUM_Y_POINTS - 2;
        }
        t = (y - get_y(j)) / y_mesh_density;
   344d8:	c5 01       	movw	r24, r10
   344da:	b4 01       	movw	r22, r8
   344dc:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   344e0:	20 e0       	ldi	r18, 0x00	; 0
   344e2:	30 e0       	ldi	r19, 0x00	; 0
   344e4:	48 e0       	ldi	r20, 0x08	; 8
   344e6:	52 e4       	ldi	r21, 0x42	; 66
   344e8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   344ec:	69 83       	std	Y+1, r22	; 0x01
   344ee:	7a 83       	std	Y+2, r23	; 0x02
   344f0:	8b 83       	std	Y+3, r24	; 0x03
   344f2:	9c 83       	std	Y+4, r25	; 0x04
    }

    float si = 1.f-s;
   344f4:	a7 01       	movw	r20, r14
   344f6:	96 01       	movw	r18, r12
   344f8:	60 e0       	ldi	r22, 0x00	; 0
   344fa:	70 e0       	ldi	r23, 0x00	; 0
   344fc:	80 e8       	ldi	r24, 0x80	; 128
   344fe:	9f e3       	ldi	r25, 0x3F	; 63
   34500:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34504:	2b 01       	movw	r4, r22
   34506:	3c 01       	movw	r6, r24
    float z0 = si * z_values[j  ][i] + s * z_values[j  ][i+1];
   34508:	91 01       	movw	r18, r2
   3450a:	2f 5f       	subi	r18, 0xFF	; 255
   3450c:	3f 4f       	sbci	r19, 0xFF	; 255
   3450e:	3e 83       	std	Y+6, r19	; 0x06
   34510:	2d 83       	std	Y+5, r18	; 0x05
    float z1 = si * z_values[j+1][i] + s * z_values[j+1][i+1];
   34512:	89 85       	ldd	r24, Y+9	; 0x09
   34514:	9a 85       	ldd	r25, Y+10	; 0x0a
   34516:	01 96       	adiw	r24, 0x01	; 1
   34518:	98 87       	std	Y+8, r25	; 0x08
   3451a:	8f 83       	std	Y+7, r24	; 0x07
        }
        t = (y - get_y(j)) / y_mesh_density;
    }

    float si = 1.f-s;
    float z0 = si * z_values[j  ][i] + s * z_values[j  ][i+1];
   3451c:	27 e0       	ldi	r18, 0x07	; 7
   3451e:	e9 85       	ldd	r30, Y+9	; 0x09
   34520:	fa 85       	ldd	r31, Y+10	; 0x0a
   34522:	2e 9f       	mul	r18, r30
   34524:	80 01       	movw	r16, r0
   34526:	2f 9f       	mul	r18, r31
   34528:	10 0d       	add	r17, r0
   3452a:	11 24       	eor	r1, r1
   3452c:	f8 01       	movw	r30, r16
   3452e:	e2 0d       	add	r30, r2
   34530:	f3 1d       	adc	r31, r3
   34532:	ee 0f       	add	r30, r30
   34534:	ff 1f       	adc	r31, r31
   34536:	ee 0f       	add	r30, r30
   34538:	ff 1f       	adc	r31, r31
   3453a:	ee 53       	subi	r30, 0x3E	; 62
   3453c:	fc 4e       	sbci	r31, 0xEC	; 236
   3453e:	21 81       	ldd	r18, Z+1	; 0x01
   34540:	32 81       	ldd	r19, Z+2	; 0x02
   34542:	43 81       	ldd	r20, Z+3	; 0x03
   34544:	54 81       	ldd	r21, Z+4	; 0x04
   34546:	c3 01       	movw	r24, r6
   34548:	b2 01       	movw	r22, r4
   3454a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3454e:	4b 01       	movw	r8, r22
   34550:	5c 01       	movw	r10, r24
   34552:	ed 81       	ldd	r30, Y+5	; 0x05
   34554:	fe 81       	ldd	r31, Y+6	; 0x06
   34556:	e0 0f       	add	r30, r16
   34558:	f1 1f       	adc	r31, r17
   3455a:	ee 0f       	add	r30, r30
   3455c:	ff 1f       	adc	r31, r31
   3455e:	ee 0f       	add	r30, r30
   34560:	ff 1f       	adc	r31, r31
   34562:	ee 53       	subi	r30, 0x3E	; 62
   34564:	fc 4e       	sbci	r31, 0xEC	; 236
   34566:	21 81       	ldd	r18, Z+1	; 0x01
   34568:	32 81       	ldd	r19, Z+2	; 0x02
   3456a:	43 81       	ldd	r20, Z+3	; 0x03
   3456c:	54 81       	ldd	r21, Z+4	; 0x04
   3456e:	c7 01       	movw	r24, r14
   34570:	b6 01       	movw	r22, r12
   34572:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34576:	9b 01       	movw	r18, r22
   34578:	ac 01       	movw	r20, r24
   3457a:	c5 01       	movw	r24, r10
   3457c:	b4 01       	movw	r22, r8
   3457e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   34582:	4b 01       	movw	r8, r22
   34584:	5c 01       	movw	r10, r24
    float z1 = si * z_values[j+1][i] + s * z_values[j+1][i+1];
    return (1.f-t) * z0 + t * z1;
   34586:	29 81       	ldd	r18, Y+1	; 0x01
   34588:	3a 81       	ldd	r19, Y+2	; 0x02
   3458a:	4b 81       	ldd	r20, Y+3	; 0x03
   3458c:	5c 81       	ldd	r21, Y+4	; 0x04
   3458e:	60 e0       	ldi	r22, 0x00	; 0
   34590:	70 e0       	ldi	r23, 0x00	; 0
   34592:	80 e8       	ldi	r24, 0x80	; 128
   34594:	9f e3       	ldi	r25, 0x3F	; 63
   34596:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3459a:	9b 01       	movw	r18, r22
   3459c:	ac 01       	movw	r20, r24
   3459e:	c5 01       	movw	r24, r10
   345a0:	b4 01       	movw	r22, r8
   345a2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   345a6:	4b 01       	movw	r8, r22
   345a8:	5c 01       	movw	r10, r24
        t = (y - get_y(j)) / y_mesh_density;
    }

    float si = 1.f-s;
    float z0 = si * z_values[j  ][i] + s * z_values[j  ][i+1];
    float z1 = si * z_values[j+1][i] + s * z_values[j+1][i+1];
   345aa:	27 e0       	ldi	r18, 0x07	; 7
   345ac:	ef 81       	ldd	r30, Y+7	; 0x07
   345ae:	f8 85       	ldd	r31, Y+8	; 0x08
   345b0:	2e 9f       	mul	r18, r30
   345b2:	c0 01       	movw	r24, r0
   345b4:	2f 9f       	mul	r18, r31
   345b6:	90 0d       	add	r25, r0
   345b8:	11 24       	eor	r1, r1
   345ba:	9a 87       	std	Y+10, r25	; 0x0a
   345bc:	89 87       	std	Y+9, r24	; 0x09
   345be:	fc 01       	movw	r30, r24
   345c0:	e2 0d       	add	r30, r2
   345c2:	f3 1d       	adc	r31, r3
   345c4:	ee 0f       	add	r30, r30
   345c6:	ff 1f       	adc	r31, r31
   345c8:	ee 0f       	add	r30, r30
   345ca:	ff 1f       	adc	r31, r31
   345cc:	ee 53       	subi	r30, 0x3E	; 62
   345ce:	fc 4e       	sbci	r31, 0xEC	; 236
   345d0:	21 81       	ldd	r18, Z+1	; 0x01
   345d2:	32 81       	ldd	r19, Z+2	; 0x02
   345d4:	43 81       	ldd	r20, Z+3	; 0x03
   345d6:	54 81       	ldd	r21, Z+4	; 0x04
   345d8:	c3 01       	movw	r24, r6
   345da:	b2 01       	movw	r22, r4
   345dc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   345e0:	2b 01       	movw	r4, r22
   345e2:	3c 01       	movw	r6, r24
   345e4:	89 85       	ldd	r24, Y+9	; 0x09
   345e6:	9a 85       	ldd	r25, Y+10	; 0x0a
   345e8:	ed 81       	ldd	r30, Y+5	; 0x05
   345ea:	fe 81       	ldd	r31, Y+6	; 0x06
   345ec:	8e 0f       	add	r24, r30
   345ee:	9f 1f       	adc	r25, r31
   345f0:	88 0f       	add	r24, r24
   345f2:	99 1f       	adc	r25, r25
   345f4:	88 0f       	add	r24, r24
   345f6:	99 1f       	adc	r25, r25
   345f8:	8e 53       	subi	r24, 0x3E	; 62
   345fa:	9c 4e       	sbci	r25, 0xEC	; 236
   345fc:	fc 01       	movw	r30, r24
   345fe:	21 81       	ldd	r18, Z+1	; 0x01
   34600:	32 81       	ldd	r19, Z+2	; 0x02
   34602:	43 81       	ldd	r20, Z+3	; 0x03
   34604:	54 81       	ldd	r21, Z+4	; 0x04
   34606:	c7 01       	movw	r24, r14
   34608:	b6 01       	movw	r22, r12
   3460a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3460e:	9b 01       	movw	r18, r22
   34610:	ac 01       	movw	r20, r24
   34612:	c3 01       	movw	r24, r6
   34614:	b2 01       	movw	r22, r4
   34616:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
    return (1.f-t) * z0 + t * z1;
   3461a:	29 81       	ldd	r18, Y+1	; 0x01
   3461c:	3a 81       	ldd	r19, Y+2	; 0x02
   3461e:	4b 81       	ldd	r20, Y+3	; 0x03
   34620:	5c 81       	ldd	r21, Y+4	; 0x04
   34622:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34626:	9b 01       	movw	r18, r22
   34628:	ac 01       	movw	r20, r24
   3462a:	c5 01       	movw	r24, r10
   3462c:	b4 01       	movw	r22, r8
   3462e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
}
   34632:	2a 96       	adiw	r28, 0x0a	; 10
   34634:	0f b6       	in	r0, 0x3f	; 63
   34636:	f8 94       	cli
   34638:	de bf       	out	0x3e, r29	; 62
   3463a:	0f be       	out	0x3f, r0	; 63
   3463c:	cd bf       	out	0x3d, r28	; 61
   3463e:	df 91       	pop	r29
   34640:	cf 91       	pop	r28
   34642:	1f 91       	pop	r17
   34644:	0f 91       	pop	r16
   34646:	ff 90       	pop	r15
   34648:	ef 90       	pop	r14
   3464a:	df 90       	pop	r13
   3464c:	cf 90       	pop	r12
   3464e:	bf 90       	pop	r11
   34650:	af 90       	pop	r10
   34652:	9f 90       	pop	r9
   34654:	8f 90       	pop	r8
   34656:	7f 90       	pop	r7
   34658:	6f 90       	pop	r6
   3465a:	5f 90       	pop	r5
   3465c:	4f 90       	pop	r4
   3465e:	3f 90       	pop	r3
   34660:	2f 90       	pop	r2
   34662:	08 95       	ret
        s = (x - get_x(i)) / x_mesh_density;
    }

    j = int(floor((y - (BED_Y0 + Y_PROBE_OFFSET_FROM_EXTRUDER)) / y_mesh_density));
    if (j < 0) {
        j = 0;
   34664:	1a 86       	std	Y+10, r1	; 0x0a
   34666:	19 86       	std	Y+9, r1	; 0x09
   34668:	45 cf       	rjmp	.-374    	; 0x344f4 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]+0x114>

0003466a <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]>:
    float z1 = si * z_values[j+1][i] + s * z_values[j+1][i+1];
    return (1.f-t) * z0 + t * z1;
}
// Works for an odd number of MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS

void mesh_bed_leveling::upsample_3x3()
   3466a:	2f 92       	push	r2
   3466c:	3f 92       	push	r3
   3466e:	4f 92       	push	r4
   34670:	5f 92       	push	r5
   34672:	6f 92       	push	r6
   34674:	7f 92       	push	r7
   34676:	8f 92       	push	r8
   34678:	9f 92       	push	r9
   3467a:	af 92       	push	r10
   3467c:	bf 92       	push	r11
   3467e:	cf 92       	push	r12
   34680:	df 92       	push	r13
   34682:	ef 92       	push	r14
   34684:	ff 92       	push	r15
   34686:	0f 93       	push	r16
   34688:	1f 93       	push	r17
   3468a:	cf 93       	push	r28
   3468c:	df 93       	push	r29
   3468e:	00 d0       	rcall	.+0      	; 0x34690 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x26>
   34690:	00 d0       	rcall	.+0      	; 0x34692 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x28>
   34692:	00 d0       	rcall	.+0      	; 0x34694 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x2a>
   34694:	cd b7       	in	r28, 0x3d	; 61
   34696:	de b7       	in	r29, 0x3e	; 62
   34698:	02 ec       	ldi	r16, 0xC2	; 194
   3469a:	13 e1       	ldi	r17, 0x13	; 19
   3469c:	1f 83       	std	Y+7, r17	; 0x07
   3469e:	0e 83       	std	Y+6, r16	; 0x06
   346a0:	2e 80       	ldd	r2, Y+6	; 0x06
   346a2:	3f 80       	ldd	r3, Y+7	; 0x07
   346a4:	19 82       	std	Y+1, r1	; 0x01
        static const float x1 = 0.5f * float(BED_X0 + BED_Xn) + X_PROBE_OFFSET_FROM_EXTRUDER;
        static const float x2 = BED_Xn + X_PROBE_OFFSET_FROM_EXTRUDER;
        for (int j = 0; j < MESH_NUM_Y_POINTS; ++ j) {
            // Interpolate the remaining values by Largrangian polynomials.
            for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
                if (!isnan(z_values[j][i]))
   346a6:	f1 01       	movw	r30, r2
   346a8:	61 81       	ldd	r22, Z+1	; 0x01
   346aa:	72 81       	ldd	r23, Z+2	; 0x02
   346ac:	83 81       	ldd	r24, Z+3	; 0x03
   346ae:	94 81       	ldd	r25, Z+4	; 0x04
   346b0:	9b 01       	movw	r18, r22
   346b2:	ac 01       	movw	r20, r24
   346b4:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   346b8:	88 23       	and	r24, r24
   346ba:	09 f4       	brne	.+2      	; 0x346be <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x54>
   346bc:	7c c0       	rjmp	.+248    	; 0x347b6 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x14c>

    mesh_bed_leveling() { reset(); }

    void reset();

    static float get_x(int i) { return BED_X(i) + X_PROBE_OFFSET_FROM_EXTRUDER; }
   346be:	89 81       	ldd	r24, Y+1	; 0x01
   346c0:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   346c4:	20 e0       	ldi	r18, 0x00	; 0
   346c6:	30 e0       	ldi	r19, 0x00	; 0
   346c8:	48 eb       	ldi	r20, 0xB8	; 184
   346ca:	51 e4       	ldi	r21, 0x41	; 65
   346cc:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   346d0:	6b 01       	movw	r12, r22
   346d2:	7c 01       	movw	r14, r24
                    continue;
                float x = get_x(i);
                z_values[j][i] =
                    z_values[j][idx0] * (x - x1) * (x - x2) / ((x0 - x1) * (x0 - x2)) +
   346d4:	20 e0       	ldi	r18, 0x00	; 0
   346d6:	30 e0       	ldi	r19, 0x00	; 0
   346d8:	4c ef       	ldi	r20, 0xFC	; 252
   346da:	52 e4       	ldi	r21, 0x42	; 66
   346dc:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   346e0:	2b 01       	movw	r4, r22
   346e2:	3c 01       	movw	r6, r24
   346e4:	20 e0       	ldi	r18, 0x00	; 0
   346e6:	30 e0       	ldi	r19, 0x00	; 0
   346e8:	44 e6       	ldi	r20, 0x64	; 100
   346ea:	53 e4       	ldi	r21, 0x43	; 67
   346ec:	c7 01       	movw	r24, r14
   346ee:	b6 01       	movw	r22, r12
   346f0:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   346f4:	4b 01       	movw	r8, r22
   346f6:	5c 01       	movw	r10, r24
                    z_values[j][idx1] * (x - x0) * (x - x2) / ((x1 - x0) * (x1 - x2)) +
   346f8:	20 e0       	ldi	r18, 0x00	; 0
   346fa:	30 e0       	ldi	r19, 0x00	; 0
   346fc:	40 ec       	ldi	r20, 0xC0	; 192
   346fe:	51 e4       	ldi	r21, 0x41	; 65
   34700:	c7 01       	movw	r24, r14
   34702:	b6 01       	movw	r22, r12
   34704:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34708:	6b 01       	movw	r12, r22
   3470a:	7c 01       	movw	r14, r24
            for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
                if (!isnan(z_values[j][i]))
                    continue;
                float x = get_x(i);
                z_values[j][i] =
                    z_values[j][idx0] * (x - x1) * (x - x2) / ((x0 - x1) * (x0 - x2)) +
   3470c:	ee 81       	ldd	r30, Y+6	; 0x06
   3470e:	ff 81       	ldd	r31, Y+7	; 0x07
   34710:	21 81       	ldd	r18, Z+1	; 0x01
   34712:	32 81       	ldd	r19, Z+2	; 0x02
   34714:	43 81       	ldd	r20, Z+3	; 0x03
   34716:	54 81       	ldd	r21, Z+4	; 0x04
   34718:	c3 01       	movw	r24, r6
   3471a:	b2 01       	movw	r22, r4
   3471c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34720:	a5 01       	movw	r20, r10
   34722:	94 01       	movw	r18, r8
   34724:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34728:	20 e0       	ldi	r18, 0x00	; 0
   3472a:	30 e9       	ldi	r19, 0x90	; 144
   3472c:	42 ea       	ldi	r20, 0xA2	; 162
   3472e:	56 e4       	ldi	r21, 0x46	; 70
   34730:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   34734:	6a 83       	std	Y+2, r22	; 0x02
   34736:	7b 83       	std	Y+3, r23	; 0x03
   34738:	8c 83       	std	Y+4, r24	; 0x04
   3473a:	9d 83       	std	Y+5, r25	; 0x05
                    z_values[j][idx1] * (x - x0) * (x - x2) / ((x1 - x0) * (x1 - x2)) +
   3473c:	ee 81       	ldd	r30, Y+6	; 0x06
   3473e:	ff 81       	ldd	r31, Y+7	; 0x07
   34740:	25 85       	ldd	r18, Z+13	; 0x0d
   34742:	36 85       	ldd	r19, Z+14	; 0x0e
   34744:	47 85       	ldd	r20, Z+15	; 0x0f
   34746:	50 89       	ldd	r21, Z+16	; 0x10
   34748:	c7 01       	movw	r24, r14
   3474a:	b6 01       	movw	r22, r12
   3474c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34750:	a5 01       	movw	r20, r10
   34752:	94 01       	movw	r18, r8
   34754:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34758:	20 e0       	ldi	r18, 0x00	; 0
   3475a:	30 e9       	ldi	r19, 0x90	; 144
   3475c:	42 e2       	ldi	r20, 0x22	; 34
   3475e:	56 ec       	ldi	r21, 0xC6	; 198
   34760:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   34764:	9b 01       	movw	r18, r22
   34766:	ac 01       	movw	r20, r24
            for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
                if (!isnan(z_values[j][i]))
                    continue;
                float x = get_x(i);
                z_values[j][i] =
                    z_values[j][idx0] * (x - x1) * (x - x2) / ((x0 - x1) * (x0 - x2)) +
   34768:	6a 81       	ldd	r22, Y+2	; 0x02
   3476a:	7b 81       	ldd	r23, Y+3	; 0x03
   3476c:	8c 81       	ldd	r24, Y+4	; 0x04
   3476e:	9d 81       	ldd	r25, Y+5	; 0x05
   34770:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   34774:	4b 01       	movw	r8, r22
   34776:	5c 01       	movw	r10, r24
                    z_values[j][idx1] * (x - x0) * (x - x2) / ((x1 - x0) * (x1 - x2)) +
                    z_values[j][idx2] * (x - x0) * (x - x1) / ((x2 - x0) * (x2 - x1));
   34778:	ee 81       	ldd	r30, Y+6	; 0x06
   3477a:	ff 81       	ldd	r31, Y+7	; 0x07
   3477c:	21 8d       	ldd	r18, Z+25	; 0x19
   3477e:	32 8d       	ldd	r19, Z+26	; 0x1a
   34780:	43 8d       	ldd	r20, Z+27	; 0x1b
   34782:	54 8d       	ldd	r21, Z+28	; 0x1c
   34784:	c7 01       	movw	r24, r14
   34786:	b6 01       	movw	r22, r12
   34788:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3478c:	a3 01       	movw	r20, r6
   3478e:	92 01       	movw	r18, r4
   34790:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34794:	20 e0       	ldi	r18, 0x00	; 0
   34796:	30 e9       	ldi	r19, 0x90	; 144
   34798:	42 ea       	ldi	r20, 0xA2	; 162
   3479a:	56 e4       	ldi	r21, 0x46	; 70
   3479c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   347a0:	9b 01       	movw	r18, r22
   347a2:	ac 01       	movw	r20, r24
                if (!isnan(z_values[j][i]))
                    continue;
                float x = get_x(i);
                z_values[j][i] =
                    z_values[j][idx0] * (x - x1) * (x - x2) / ((x0 - x1) * (x0 - x2)) +
                    z_values[j][idx1] * (x - x0) * (x - x2) / ((x1 - x0) * (x1 - x2)) +
   347a4:	c5 01       	movw	r24, r10
   347a6:	b4 01       	movw	r22, r8
   347a8:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
            // Interpolate the remaining values by Largrangian polynomials.
            for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
                if (!isnan(z_values[j][i]))
                    continue;
                float x = get_x(i);
                z_values[j][i] =
   347ac:	f1 01       	movw	r30, r2
   347ae:	61 83       	std	Z+1, r22	; 0x01
   347b0:	72 83       	std	Z+2, r23	; 0x02
   347b2:	83 83       	std	Z+3, r24	; 0x03
   347b4:	94 83       	std	Z+4, r25	; 0x04
   347b6:	f4 e0       	ldi	r31, 0x04	; 4
   347b8:	2f 0e       	add	r2, r31
   347ba:	31 1c       	adc	r3, r1
   347bc:	29 81       	ldd	r18, Y+1	; 0x01
   347be:	2f 5f       	subi	r18, 0xFF	; 255
   347c0:	29 83       	std	Y+1, r18	; 0x01
        static const float x0 = (BED_X0 + X_PROBE_OFFSET_FROM_EXTRUDER);
        static const float x1 = 0.5f * float(BED_X0 + BED_Xn) + X_PROBE_OFFSET_FROM_EXTRUDER;
        static const float x2 = BED_Xn + X_PROBE_OFFSET_FROM_EXTRUDER;
        for (int j = 0; j < MESH_NUM_Y_POINTS; ++ j) {
            // Interpolate the remaining values by Largrangian polynomials.
            for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
   347c2:	27 30       	cpi	r18, 0x07	; 7
   347c4:	09 f0       	breq	.+2      	; 0x347c8 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x15e>
   347c6:	6f cf       	rjmp	.-290    	; 0x346a6 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x3c>
   347c8:	8e 81       	ldd	r24, Y+6	; 0x06
   347ca:	9f 81       	ldd	r25, Y+7	; 0x07
   347cc:	4c 96       	adiw	r24, 0x1c	; 28
   347ce:	9f 83       	std	Y+7, r25	; 0x07
   347d0:	8e 83       	std	Y+6, r24	; 0x06
    {
        // First interpolate the points in X axis.
        static const float x0 = (BED_X0 + X_PROBE_OFFSET_FROM_EXTRUDER);
        static const float x1 = 0.5f * float(BED_X0 + BED_Xn) + X_PROBE_OFFSET_FROM_EXTRUDER;
        static const float x2 = BED_Xn + X_PROBE_OFFSET_FROM_EXTRUDER;
        for (int j = 0; j < MESH_NUM_Y_POINTS; ++ j) {
   347d2:	86 58       	subi	r24, 0x86	; 134
   347d4:	94 41       	sbci	r25, 0x14	; 20
   347d6:	09 f0       	breq	.+2      	; 0x347da <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x170>
   347d8:	63 cf       	rjmp	.-314    	; 0x346a0 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x36>
    float z1 = si * z_values[j+1][i] + s * z_values[j+1][i+1];
    return (1.f-t) * z0 + t * z1;
}
// Works for an odd number of MESH_NUM_X_POINTS and MESH_NUM_Y_POINTS

void mesh_bed_leveling::upsample_3x3()
   347da:	19 87       	std	Y+9, r17	; 0x09
   347dc:	08 87       	std	Y+8, r16	; 0x08
   347de:	f1 e0       	ldi	r31, 0x01	; 1
   347e0:	f9 83       	std	Y+1, r31	; 0x01
                if (!isnan(z_values[j][i]))
                    continue;
                float y = get_y(j);
                z_values[j][i] =
                    z_values[idx0][i] * (y - y1) * (y - y2) / ((y0 - y1) * (y0 - y2)) +
                    z_values[idx1][i] * (y - y0) * (y - y2) / ((y1 - y0) * (y1 - y2)) +
   347e2:	c8 01       	movw	r24, r16
   347e4:	8b 5a       	subi	r24, 0xAB	; 171
   347e6:	9f 4f       	sbci	r25, 0xFF	; 255
   347e8:	9f 83       	std	Y+7, r25	; 0x07
   347ea:	8e 83       	std	Y+6, r24	; 0x06
                    z_values[idx2][i] * (y - y0) * (y - y1) / ((y2 - y0) * (y2 - y1));
   347ec:	18 01       	movw	r2, r16
   347ee:	99 ea       	ldi	r25, 0xA9	; 169
   347f0:	29 0e       	add	r2, r25
   347f2:	31 1c       	adc	r3, r1
        static const float y1 = 0.5f * float(BED_Y0 + BED_Yn) + Y_PROBE_OFFSET_FROM_EXTRUDER;
        static const float y2 = BED_Yn + Y_PROBE_OFFSET_FROM_EXTRUDER;
        for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
            // Interpolate the remaining values by Largrangian polynomials.
            for (int j = 1; j + 1 < MESH_NUM_Y_POINTS; ++ j) {
                if (!isnan(z_values[j][i]))
   347f4:	e8 85       	ldd	r30, Y+8	; 0x08
   347f6:	f9 85       	ldd	r31, Y+9	; 0x09
   347f8:	65 8d       	ldd	r22, Z+29	; 0x1d
   347fa:	76 8d       	ldd	r23, Z+30	; 0x1e
   347fc:	87 8d       	ldd	r24, Z+31	; 0x1f
   347fe:	90 a1       	ldd	r25, Z+32	; 0x20
   34800:	9b 01       	movw	r18, r22
   34802:	ac 01       	movw	r20, r24
   34804:	0f 94 91 e1 	call	0x3c322	; 0x3c322 <__unordsf2>
   34808:	88 23       	and	r24, r24
   3480a:	09 f4       	brne	.+2      	; 0x3480e <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x1a4>
   3480c:	79 c0       	rjmp	.+242    	; 0x34900 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x296>
    static float get_y(int i) { return BED_Y(i) + Y_PROBE_OFFSET_FROM_EXTRUDER; }
   3480e:	89 81       	ldd	r24, Y+1	; 0x01
   34810:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   34814:	20 e0       	ldi	r18, 0x00	; 0
   34816:	30 e0       	ldi	r19, 0x00	; 0
   34818:	40 ea       	ldi	r20, 0xA0	; 160
   3481a:	50 e4       	ldi	r21, 0x40	; 64
   3481c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   34820:	6b 01       	movw	r12, r22
   34822:	7c 01       	movw	r14, r24
                    continue;
                float y = get_y(j);
                z_values[j][i] =
                    z_values[idx0][i] * (y - y1) * (y - y2) / ((y0 - y1) * (y0 - y2)) +
   34824:	20 e0       	ldi	r18, 0x00	; 0
   34826:	30 e0       	ldi	r19, 0x00	; 0
   34828:	48 ed       	ldi	r20, 0xD8	; 216
   3482a:	52 e4       	ldi	r21, 0x42	; 66
   3482c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34830:	2b 01       	movw	r4, r22
   34832:	3c 01       	movw	r6, r24
   34834:	20 e0       	ldi	r18, 0x00	; 0
   34836:	30 e0       	ldi	r19, 0x00	; 0
   34838:	42 e5       	ldi	r20, 0x52	; 82
   3483a:	53 e4       	ldi	r21, 0x43	; 67
   3483c:	c7 01       	movw	r24, r14
   3483e:	b6 01       	movw	r22, r12
   34840:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34844:	4b 01       	movw	r8, r22
   34846:	5c 01       	movw	r10, r24
                    z_values[idx1][i] * (y - y0) * (y - y2) / ((y1 - y0) * (y1 - y2)) +
   34848:	20 e0       	ldi	r18, 0x00	; 0
   3484a:	30 e0       	ldi	r19, 0x00	; 0
   3484c:	40 ec       	ldi	r20, 0xC0	; 192
   3484e:	50 e4       	ldi	r21, 0x40	; 64
   34850:	c7 01       	movw	r24, r14
   34852:	b6 01       	movw	r22, r12
   34854:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   34858:	6b 01       	movw	r12, r22
   3485a:	7c 01       	movw	r14, r24
   3485c:	ee 81       	ldd	r30, Y+6	; 0x06
   3485e:	ff 81       	ldd	r31, Y+7	; 0x07
   34860:	20 81       	ld	r18, Z
   34862:	31 81       	ldd	r19, Z+1	; 0x01
   34864:	42 81       	ldd	r20, Z+2	; 0x02
   34866:	53 81       	ldd	r21, Z+3	; 0x03
   34868:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3486c:	a5 01       	movw	r20, r10
   3486e:	94 01       	movw	r18, r8
   34870:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   34874:	20 e0       	ldi	r18, 0x00	; 0
   34876:	30 e9       	ldi	r19, 0x90	; 144
   34878:	42 e2       	ldi	r20, 0x22	; 34
   3487a:	56 ec       	ldi	r21, 0xC6	; 198
   3487c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   34880:	6a 83       	std	Y+2, r22	; 0x02
   34882:	7b 83       	std	Y+3, r23	; 0x03
   34884:	8c 83       	std	Y+4, r24	; 0x04
   34886:	9d 83       	std	Y+5, r25	; 0x05
            for (int j = 1; j + 1 < MESH_NUM_Y_POINTS; ++ j) {
                if (!isnan(z_values[j][i]))
                    continue;
                float y = get_y(j);
                z_values[j][i] =
                    z_values[idx0][i] * (y - y1) * (y - y2) / ((y0 - y1) * (y0 - y2)) +
   34888:	f8 01       	movw	r30, r16
   3488a:	21 81       	ldd	r18, Z+1	; 0x01
   3488c:	32 81       	ldd	r19, Z+2	; 0x02
   3488e:	43 81       	ldd	r20, Z+3	; 0x03
   34890:	54 81       	ldd	r21, Z+4	; 0x04
   34892:	c3 01       	movw	r24, r6
   34894:	b2 01       	movw	r22, r4
   34896:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3489a:	a5 01       	movw	r20, r10
   3489c:	94 01       	movw	r18, r8
   3489e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   348a2:	20 e0       	ldi	r18, 0x00	; 0
   348a4:	30 e9       	ldi	r19, 0x90	; 144
   348a6:	42 ea       	ldi	r20, 0xA2	; 162
   348a8:	56 e4       	ldi	r21, 0x46	; 70
   348aa:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   348ae:	9b 01       	movw	r18, r22
   348b0:	ac 01       	movw	r20, r24
   348b2:	6a 81       	ldd	r22, Y+2	; 0x02
   348b4:	7b 81       	ldd	r23, Y+3	; 0x03
   348b6:	8c 81       	ldd	r24, Y+4	; 0x04
   348b8:	9d 81       	ldd	r25, Y+5	; 0x05
   348ba:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   348be:	4b 01       	movw	r8, r22
   348c0:	5c 01       	movw	r10, r24
                    z_values[idx1][i] * (y - y0) * (y - y2) / ((y1 - y0) * (y1 - y2)) +
                    z_values[idx2][i] * (y - y0) * (y - y1) / ((y2 - y0) * (y2 - y1));
   348c2:	f1 01       	movw	r30, r2
   348c4:	20 81       	ld	r18, Z
   348c6:	31 81       	ldd	r19, Z+1	; 0x01
   348c8:	42 81       	ldd	r20, Z+2	; 0x02
   348ca:	53 81       	ldd	r21, Z+3	; 0x03
   348cc:	c7 01       	movw	r24, r14
   348ce:	b6 01       	movw	r22, r12
   348d0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   348d4:	a3 01       	movw	r20, r6
   348d6:	92 01       	movw	r18, r4
   348d8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   348dc:	20 e0       	ldi	r18, 0x00	; 0
   348de:	30 e9       	ldi	r19, 0x90	; 144
   348e0:	42 ea       	ldi	r20, 0xA2	; 162
   348e2:	56 e4       	ldi	r21, 0x46	; 70
   348e4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   348e8:	9b 01       	movw	r18, r22
   348ea:	ac 01       	movw	r20, r24
                if (!isnan(z_values[j][i]))
                    continue;
                float y = get_y(j);
                z_values[j][i] =
                    z_values[idx0][i] * (y - y1) * (y - y2) / ((y0 - y1) * (y0 - y2)) +
                    z_values[idx1][i] * (y - y0) * (y - y2) / ((y1 - y0) * (y1 - y2)) +
   348ec:	c5 01       	movw	r24, r10
   348ee:	b4 01       	movw	r22, r8
   348f0:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
            // Interpolate the remaining values by Largrangian polynomials.
            for (int j = 1; j + 1 < MESH_NUM_Y_POINTS; ++ j) {
                if (!isnan(z_values[j][i]))
                    continue;
                float y = get_y(j);
                z_values[j][i] =
   348f4:	e8 85       	ldd	r30, Y+8	; 0x08
   348f6:	f9 85       	ldd	r31, Y+9	; 0x09
   348f8:	65 8f       	std	Z+29, r22	; 0x1d
   348fa:	76 8f       	std	Z+30, r23	; 0x1e
   348fc:	87 8f       	std	Z+31, r24	; 0x1f
   348fe:	90 a3       	std	Z+32, r25	; 0x20
   34900:	88 85       	ldd	r24, Y+8	; 0x08
   34902:	99 85       	ldd	r25, Y+9	; 0x09
   34904:	4c 96       	adiw	r24, 0x1c	; 28
   34906:	99 87       	std	Y+9, r25	; 0x09
   34908:	88 87       	std	Y+8, r24	; 0x08
   3490a:	99 81       	ldd	r25, Y+1	; 0x01
   3490c:	9f 5f       	subi	r25, 0xFF	; 255
   3490e:	99 83       	std	Y+1, r25	; 0x01
        static const float y0 = (BED_Y0 + Y_PROBE_OFFSET_FROM_EXTRUDER);
        static const float y1 = 0.5f * float(BED_Y0 + BED_Yn) + Y_PROBE_OFFSET_FROM_EXTRUDER;
        static const float y2 = BED_Yn + Y_PROBE_OFFSET_FROM_EXTRUDER;
        for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
            // Interpolate the remaining values by Largrangian polynomials.
            for (int j = 1; j + 1 < MESH_NUM_Y_POINTS; ++ j) {
   34910:	96 30       	cpi	r25, 0x06	; 6
   34912:	09 f0       	breq	.+2      	; 0x34916 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x2ac>
   34914:	6f cf       	rjmp	.-290    	; 0x347f4 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x18a>
   34916:	0c 5f       	subi	r16, 0xFC	; 252
   34918:	1f 4f       	sbci	r17, 0xFF	; 255
    {
        // Second interpolate the points in Y axis.
        static const float y0 = (BED_Y0 + Y_PROBE_OFFSET_FROM_EXTRUDER);
        static const float y1 = 0.5f * float(BED_Y0 + BED_Yn) + Y_PROBE_OFFSET_FROM_EXTRUDER;
        static const float y2 = BED_Yn + Y_PROBE_OFFSET_FROM_EXTRUDER;
        for (int i = 0; i < MESH_NUM_X_POINTS; ++ i) {
   3491a:	e3 e1       	ldi	r30, 0x13	; 19
   3491c:	0e 3d       	cpi	r16, 0xDE	; 222
   3491e:	1e 07       	cpc	r17, r30
   34920:	09 f0       	breq	.+2      	; 0x34924 <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x2ba>
   34922:	5b cf       	rjmp	.-330    	; 0x347da <mesh_bed_leveling::upsample_3x3() [clone .constprop.75]+0x170>
                    z_values[idx1][i] * (y - y0) * (y - y2) / ((y1 - y0) * (y1 - y2)) +
                    z_values[idx2][i] * (y - y0) * (y - y1) / ((y2 - y0) * (y2 - y1));
            }
        }
    }
}
   34924:	29 96       	adiw	r28, 0x09	; 9
   34926:	0f b6       	in	r0, 0x3f	; 63
   34928:	f8 94       	cli
   3492a:	de bf       	out	0x3e, r29	; 62
   3492c:	0f be       	out	0x3f, r0	; 63
   3492e:	cd bf       	out	0x3d, r28	; 61
   34930:	df 91       	pop	r29
   34932:	cf 91       	pop	r28
   34934:	1f 91       	pop	r17
   34936:	0f 91       	pop	r16
   34938:	ff 90       	pop	r15
   3493a:	ef 90       	pop	r14
   3493c:	df 90       	pop	r13
   3493e:	cf 90       	pop	r12
   34940:	bf 90       	pop	r11
   34942:	af 90       	pop	r10
   34944:	9f 90       	pop	r9
   34946:	8f 90       	pop	r8
   34948:	7f 90       	pop	r7
   3494a:	6f 90       	pop	r6
   3494c:	5f 90       	pop	r5
   3494e:	4f 90       	pop	r4
   34950:	3f 90       	pop	r3
   34952:	2f 90       	pop	r2
   34954:	08 95       	ret

00034956 <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]>:
void ProtocolLogic::SendVersion(uint8_t stage) {
    SendMsg(RequestMsg(RequestMsgCodes::Version, stage));
    scopeState = (ScopeState)((uint_fast8_t)ScopeState::S0Sent + stage);
}

void ProtocolLogic::SendReadRegister(uint8_t index, ScopeState nextState) {
   34956:	1f 93       	push	r17
   34958:	cf 93       	push	r28
   3495a:	df 93       	push	r29
   3495c:	00 d0       	rcall	.+0      	; 0x3495e <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]+0x8>
   3495e:	1f 92       	push	r1
   34960:	1f 92       	push	r1
   34962:	cd b7       	in	r28, 0x3d	; 61
   34964:	de b7       	in	r29, 0x3e	; 62
   34966:	16 2f       	mov	r17, r22
    SendMsg(RequestMsg(RequestMsgCodes::Read, index));
   34968:	48 2f       	mov	r20, r24
   3496a:	62 e5       	ldi	r22, 0x52	; 82
   3496c:	ce 01       	movw	r24, r28
   3496e:	01 96       	adiw	r24, 0x01	; 1
   34970:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34974:	49 81       	ldd	r20, Y+1	; 0x01
   34976:	5a 81       	ldd	r21, Y+2	; 0x02
   34978:	6b 81       	ldd	r22, Y+3	; 0x03
   3497a:	7c 81       	ldd	r23, Y+4	; 0x04
   3497c:	8d 81       	ldd	r24, Y+5	; 0x05
   3497e:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
    scopeState = nextState;
   34982:	10 93 4e 13 	sts	0x134E, r17	; 0x80134e <MMU2::mmu2+0x3>
}
   34986:	0f 90       	pop	r0
   34988:	0f 90       	pop	r0
   3498a:	0f 90       	pop	r0
   3498c:	0f 90       	pop	r0
   3498e:	0f 90       	pop	r0
   34990:	df 91       	pop	r29
   34992:	cf 91       	pop	r28
   34994:	1f 91       	pop	r17
   34996:	08 95       	ret

00034998 <MMU2::ProtocolLogic::StartReading8bitRegisters() [clone .constprop.295]>:
    SendMsg(RequestMsg(RequestMsgCodes::Query, 0));
    scopeState = ScopeState::QuerySent;
}

void ProtocolLogic::StartReading8bitRegisters() {
    regIndex = 0;
   34998:	10 92 99 13 	sts	0x1399, r1	; 0x801399 <MMU2::mmu2+0x4e>
    SendReadRegister(pgm_read_byte(regs8Addrs + regIndex), ScopeState::Reading8bitRegisters);
   3499c:	ee e6       	ldi	r30, 0x6E	; 110
   3499e:	fa ea       	ldi	r31, 0xAA	; 170
   349a0:	84 91       	lpm	r24, Z
   349a2:	67 e0       	ldi	r22, 0x07	; 7
   349a4:	0d 94 ab a4 	jmp	0x34956	; 0x34956 <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]>

000349a8 <MMU2::ProtocolLogic::ProcessRead16bitRegister(MMU2::ProtocolLogic::ScopeState) [clone .constprop.292]>:
    regIndex = 0;
    SendReadRegister(pgm_read_byte(regs16Addrs + regIndex), ScopeState::Reading16bitRegisters);
}

ProtocolLogic::ScopeState __attribute__((noinline)) ProtocolLogic::ProcessRead16bitRegister(ProtocolLogic::ScopeState stateAtEnd) {
    regs16[regIndex] = rsp.paramValue;
   349a8:	e0 91 99 13 	lds	r30, 0x1399	; 0x801399 <MMU2::mmu2+0x4e>
   349ac:	ae 2f       	mov	r26, r30
   349ae:	b0 e0       	ldi	r27, 0x00	; 0
   349b0:	aa 0f       	add	r26, r26
   349b2:	bb 1f       	adc	r27, r27
   349b4:	ad 56       	subi	r26, 0x6D	; 109
   349b6:	bc 4e       	sbci	r27, 0xEC	; 236
   349b8:	20 91 66 13 	lds	r18, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   349bc:	30 91 67 13 	lds	r19, 0x1367	; 0x801367 <MMU2::mmu2+0x1c>
   349c0:	2d 93       	st	X+, r18
   349c2:	3c 93       	st	X, r19
    ++regIndex;
   349c4:	ef 5f       	subi	r30, 0xFF	; 255
   349c6:	e0 93 99 13 	sts	0x1399, r30	; 0x801399 <MMU2::mmu2+0x4e>
    if (regIndex >= regs16Count) {
   349ca:	e2 30       	cpi	r30, 0x02	; 2
   349cc:	40 f4       	brcc	.+16     	; 0x349de <MMU2::ProtocolLogic::ProcessRead16bitRegister(MMU2::ProtocolLogic::ScopeState) [clone .constprop.292]+0x36>
        return stateAtEnd;
    } else {
        SendReadRegister(pgm_read_byte(regs16Addrs + regIndex), ScopeState::Reading16bitRegisters);
   349ce:	f0 e0       	ldi	r31, 0x00	; 0
   349d0:	eb 5a       	subi	r30, 0xAB	; 171
   349d2:	f5 45       	sbci	r31, 0x55	; 85
   349d4:	84 91       	lpm	r24, Z
   349d6:	68 e0       	ldi	r22, 0x08	; 8
   349d8:	0f 94 ab a4 	call	0x34956	; 0x34956 <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]>
    }
    return ScopeState::Reading16bitRegisters;
   349dc:	88 e0       	ldi	r24, 0x08	; 8
}
   349de:	08 95       	ret

000349e0 <MMU2::ProtocolLogic::ProcessRead8bitRegister() [clone .constprop.290]>:
    regIndex = 0;
    SendReadRegister(pgm_read_byte(regs8Addrs + regIndex), ScopeState::Reading8bitRegisters);
}

void ProtocolLogic::ProcessRead8bitRegister() {
    regs8[regIndex] = rsp.paramValue;
   349e0:	e0 91 99 13 	lds	r30, 0x1399	; 0x801399 <MMU2::mmu2+0x4e>
   349e4:	ae 2f       	mov	r26, r30
   349e6:	b0 e0       	ldi	r27, 0x00	; 0
   349e8:	a0 57       	subi	r26, 0x70	; 112
   349ea:	bc 4e       	sbci	r27, 0xEC	; 236
   349ec:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   349f0:	8c 93       	st	X, r24
    ++regIndex;
   349f2:	ef 5f       	subi	r30, 0xFF	; 255
   349f4:	e0 93 99 13 	sts	0x1399, r30	; 0x801399 <MMU2::mmu2+0x4e>
    if (regIndex >= regs8Count) {
   349f8:	e3 30       	cpi	r30, 0x03	; 3
   349fa:	40 f0       	brcs	.+16     	; 0x34a0c <MMU2::ProtocolLogic::ProcessRead8bitRegister() [clone .constprop.290]+0x2c>
        SendReadRegister(pgm_read_byte(regs8Addrs + regIndex), ScopeState::Reading8bitRegisters);
    }
}

void ProtocolLogic::StartReading16bitRegisters() {
    regIndex = 0;
   349fc:	10 92 99 13 	sts	0x1399, r1	; 0x801399 <MMU2::mmu2+0x4e>
    SendReadRegister(pgm_read_byte(regs16Addrs + regIndex), ScopeState::Reading16bitRegisters);
   34a00:	e5 e5       	ldi	r30, 0x55	; 85
   34a02:	fa ea       	ldi	r31, 0xAA	; 170
   34a04:	84 91       	lpm	r24, Z
   34a06:	68 e0       	ldi	r22, 0x08	; 8
    ++regIndex;
    if (regIndex >= regs8Count) {
        // proceed with reading 16bit registers
        StartReading16bitRegisters();
    } else {
        SendReadRegister(pgm_read_byte(regs8Addrs + regIndex), ScopeState::Reading8bitRegisters);
   34a08:	0d 94 ab a4 	jmp	0x34956	; 0x34956 <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]>
   34a0c:	f0 e0       	ldi	r31, 0x00	; 0
   34a0e:	e2 59       	subi	r30, 0x92	; 146
   34a10:	f5 45       	sbci	r31, 0x55	; 85
   34a12:	84 91       	lpm	r24, Z
   34a14:	67 e0       	ldi	r22, 0x07	; 7
   34a16:	f8 cf       	rjmp	.-16     	; 0x34a08 <MMU2::ProtocolLogic::ProcessRead8bitRegister() [clone .constprop.290]+0x28>

00034a18 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]>:
    if (!ExpectsResponse()) {
        ActivatePlannedRequest();
    } // otherwise wait for an empty window to activate the request
}

bool ProtocolLogic::ActivatePlannedRequest() {
   34a18:	cf 93       	push	r28
   34a1a:	df 93       	push	r29
   34a1c:	00 d0       	rcall	.+0      	; 0x34a1e <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x6>
   34a1e:	00 d0       	rcall	.+0      	; 0x34a20 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x8>
   34a20:	00 d0       	rcall	.+0      	; 0x34a22 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xa>
   34a22:	1f 92       	push	r1
   34a24:	cd b7       	in	r28, 0x3d	; 61
   34a26:	de b7       	in	r29, 0x3e	; 62
    switch (plannedRq.code) {
   34a28:	80 91 55 13 	lds	r24, 0x1355	; 0x801355 <MMU2::mmu2+0xa>
   34a2c:	82 34       	cpi	r24, 0x42	; 66
   34a2e:	09 f4       	brne	.+2      	; 0x34a32 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x1a>
   34a30:	46 c0       	rjmp	.+140    	; 0x34abe <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xa6>
   34a32:	b8 f5       	brcc	.+110    	; 0x34aa2 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x8a>
   34a34:	88 23       	and	r24, r24
   34a36:	09 f4       	brne	.+2      	; 0x34a3a <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x22>
   34a38:	72 c0       	rjmp	.+228    	; 0x34b1e <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x106>
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        return true;
    case RequestMsgCodes::unknown:
        return false;
    default: // commands
        currentScope = Scope::Command;
   34a3a:	84 e0       	ldi	r24, 0x04	; 4
   34a3c:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
   34a40:	85 e0       	ldi	r24, 0x05	; 5
   34a42:	e5 e5       	ldi	r30, 0x55	; 85
   34a44:	f3 e1       	ldi	r31, 0x13	; 19
   34a46:	de 01       	movw	r26, r28
   34a48:	16 96       	adiw	r26, 0x06	; 6
   34a4a:	01 90       	ld	r0, Z+
   34a4c:	0d 92       	st	X+, r0
   34a4e:	8a 95       	dec	r24
   34a50:	e1 f7       	brne	.-8      	; 0x34a4a <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x32>
    StepStatus StoppedStep() { return Processing; }

    StepStatus ProcessCommandQueryResponse();

    inline void SetRequestMsg(RequestMsg msg) {
        rq = msg;
   34a52:	85 e0       	ldi	r24, 0x05	; 5
   34a54:	fe 01       	movw	r30, r28
   34a56:	36 96       	adiw	r30, 0x06	; 6
   34a58:	a0 e5       	ldi	r26, 0x50	; 80
   34a5a:	b3 e1       	ldi	r27, 0x13	; 19
   34a5c:	01 90       	ld	r0, Z+
   34a5e:	0d 92       	st	X+, r0
   34a60:	8a 95       	dec	r24
   34a62:	e1 f7       	brne	.-8      	; 0x34a5c <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x44>
        SetRequestMsg(plannedRq);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
   34a64:	40 e0       	ldi	r20, 0x00	; 0
   34a66:	60 e0       	ldi	r22, 0x00	; 0
   34a68:	ce 01       	movw	r24, r28
   34a6a:	01 96       	adiw	r24, 0x01	; 1
   34a6c:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34a70:	85 e0       	ldi	r24, 0x05	; 5
   34a72:	fe 01       	movw	r30, r28
   34a74:	31 96       	adiw	r30, 0x01	; 1
   34a76:	a5 e5       	ldi	r26, 0x55	; 85
   34a78:	b3 e1       	ldi	r27, 0x13	; 19
   34a7a:	01 90       	ld	r0, Z+
   34a7c:	0d 92       	st	X+, r0
   34a7e:	8a 95       	dec	r24
   34a80:	e1 f7       	brne	.-8      	; 0x34a7a <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x62>
void ProtocolLogic::DelayedRestartRestart() {
    scopeState = ScopeState::RecoveringProtocolError;
}

void ProtocolLogic::CommandRestart() {
    scopeState = ScopeState::CommandSent;
   34a82:	85 e0       	ldi	r24, 0x05	; 5
   34a84:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
    SendMsg(rq);
   34a88:	40 91 50 13 	lds	r20, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   34a8c:	50 91 51 13 	lds	r21, 0x1351	; 0x801351 <MMU2::mmu2+0x6>
   34a90:	60 91 52 13 	lds	r22, 0x1352	; 0x801352 <MMU2::mmu2+0x7>
   34a94:	70 91 53 13 	lds	r23, 0x1353	; 0x801353 <MMU2::mmu2+0x8>
   34a98:	80 91 54 13 	lds	r24, 0x1354	; 0x801354 <MMU2::mmu2+0x9>
   34a9c:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
   34aa0:	2e c0       	rjmp	.+92     	; 0x34afe <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xe6>
        ActivatePlannedRequest();
    } // otherwise wait for an empty window to activate the request
}

bool ProtocolLogic::ActivatePlannedRequest() {
    switch (plannedRq.code) {
   34aa2:	82 35       	cpi	r24, 0x52	; 82
   34aa4:	b1 f1       	breq	.+108    	; 0x34b12 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xfa>
   34aa6:	87 35       	cpi	r24, 0x57	; 87
   34aa8:	41 f6       	brne	.-112    	; 0x34a3a <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0x22>
    case RequestMsgCodes::Read:
        SendReadRegister(plannedRq.value, ScopeState::ReadRegisterSent);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        return true;
    case RequestMsgCodes::Write:
        SendWriteRegister(plannedRq.value, plannedRq.value2, ScopeState::WriteRegisterSent);
   34aaa:	60 91 57 13 	lds	r22, 0x1357	; 0x801357 <MMU2::mmu2+0xc>
   34aae:	70 91 58 13 	lds	r23, 0x1358	; 0x801358 <MMU2::mmu2+0xd>
   34ab2:	4c e0       	ldi	r20, 0x0C	; 12
   34ab4:	80 91 56 13 	lds	r24, 0x1356	; 0x801356 <MMU2::mmu2+0xb>
   34ab8:	0f 94 49 68 	call	0x2d092	; 0x2d092 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]>
   34abc:	11 c0       	rjmp	.+34     	; 0x34ae0 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xc8>
    SendMsg(RequestMsg(RequestMsgCodes::FilamentSensor, lastFSensor = (uint8_t)WhereIsFilament()));
    scopeState = ScopeState::FilamentSensorStateSent;
}

void ProtocolLogic::SendButton(uint8_t btn) {
    SendMsg(RequestMsg(RequestMsgCodes::Button, btn));
   34abe:	40 91 56 13 	lds	r20, 0x1356	; 0x801356 <MMU2::mmu2+0xb>
   34ac2:	62 e4       	ldi	r22, 0x42	; 66
   34ac4:	ce 01       	movw	r24, r28
   34ac6:	01 96       	adiw	r24, 0x01	; 1
   34ac8:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34acc:	49 81       	ldd	r20, Y+1	; 0x01
   34ace:	5a 81       	ldd	r21, Y+2	; 0x02
   34ad0:	6b 81       	ldd	r22, Y+3	; 0x03
   34ad2:	7c 81       	ldd	r23, Y+4	; 0x04
   34ad4:	8d 81       	ldd	r24, Y+5	; 0x05
   34ad6:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
    scopeState = ScopeState::ButtonSent;
   34ada:	8a e0       	ldi	r24, 0x0A	; 10
   34adc:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
        SendReadRegister(plannedRq.value, ScopeState::ReadRegisterSent);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        return true;
    case RequestMsgCodes::Write:
        SendWriteRegister(plannedRq.value, plannedRq.value2, ScopeState::WriteRegisterSent);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
   34ae0:	40 e0       	ldi	r20, 0x00	; 0
   34ae2:	60 e0       	ldi	r22, 0x00	; 0
   34ae4:	ce 01       	movw	r24, r28
   34ae6:	01 96       	adiw	r24, 0x01	; 1
   34ae8:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34aec:	85 e0       	ldi	r24, 0x05	; 5
   34aee:	fe 01       	movw	r30, r28
   34af0:	31 96       	adiw	r30, 0x01	; 1
   34af2:	a5 e5       	ldi	r26, 0x55	; 85
   34af4:	b3 e1       	ldi	r27, 0x13	; 19
   34af6:	01 90       	ld	r0, Z+
   34af8:	0d 92       	st	X+, r0
   34afa:	8a 95       	dec	r24
   34afc:	e1 f7       	brne	.-8      	; 0x34af6 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xde>
    default: // commands
        currentScope = Scope::Command;
        SetRequestMsg(plannedRq);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        CommandRestart();
        return true;
   34afe:	81 e0       	ldi	r24, 0x01	; 1
    }
}
   34b00:	2a 96       	adiw	r28, 0x0a	; 10
   34b02:	0f b6       	in	r0, 0x3f	; 63
   34b04:	f8 94       	cli
   34b06:	de bf       	out	0x3e, r29	; 62
   34b08:	0f be       	out	0x3f, r0	; 63
   34b0a:	cd bf       	out	0x3d, r28	; 61
   34b0c:	df 91       	pop	r29
   34b0e:	cf 91       	pop	r28
   34b10:	08 95       	ret
        // only issue the button to the MMU and do not restart the state machines
        SendButton(plannedRq.value);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        return true;
    case RequestMsgCodes::Read:
        SendReadRegister(plannedRq.value, ScopeState::ReadRegisterSent);
   34b12:	6b e0       	ldi	r22, 0x0B	; 11
   34b14:	80 91 56 13 	lds	r24, 0x1356	; 0x801356 <MMU2::mmu2+0xb>
   34b18:	0f 94 ab a4 	call	0x34956	; 0x34956 <MMU2::ProtocolLogic::SendReadRegister(unsigned char, MMU2::ProtocolLogic::ScopeState) [clone .constprop.331]>
   34b1c:	e1 cf       	rjmp	.-62     	; 0x34ae0 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xc8>
    case RequestMsgCodes::Write:
        SendWriteRegister(plannedRq.value, plannedRq.value2, ScopeState::WriteRegisterSent);
        plannedRq = RequestMsg(RequestMsgCodes::unknown, 0);
        return true;
    case RequestMsgCodes::unknown:
        return false;
   34b1e:	80 e0       	ldi	r24, 0x00	; 0
   34b20:	ef cf       	rjmp	.-34     	; 0x34b00 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]+0xe8>

00034b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>:

void ProtocolLogic::WriteRegister(uint8_t address, uint16_t data) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Write, address, data));
}

void ProtocolLogic::PlanGenericRequest(RequestMsg rq) {
   34b22:	cf 93       	push	r28
   34b24:	df 93       	push	r29
   34b26:	00 d0       	rcall	.+0      	; 0x34b28 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]+0x6>
   34b28:	1f 92       	push	r1
   34b2a:	1f 92       	push	r1
   34b2c:	cd b7       	in	r28, 0x3d	; 61
   34b2e:	de b7       	in	r29, 0x3e	; 62
   34b30:	49 83       	std	Y+1, r20	; 0x01
   34b32:	5a 83       	std	Y+2, r21	; 0x02
   34b34:	6b 83       	std	Y+3, r22	; 0x03
   34b36:	7c 83       	std	Y+4, r23	; 0x04
   34b38:	8d 83       	std	Y+5, r24	; 0x05
    plannedRq = rq;
   34b3a:	85 e0       	ldi	r24, 0x05	; 5
   34b3c:	fe 01       	movw	r30, r28
   34b3e:	31 96       	adiw	r30, 0x01	; 1
   34b40:	a5 e5       	ldi	r26, 0x55	; 85
   34b42:	b3 e1       	ldi	r27, 0x13	; 19
   34b44:	01 90       	ld	r0, Z+
   34b46:	0d 92       	st	X+, r0
   34b48:	8a 95       	dec	r24
   34b4a:	e1 f7       	brne	.-8      	; 0x34b44 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]+0x22>
    if (!ExpectsResponse()) {
   34b4c:	80 91 4e 13 	lds	r24, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   34b50:	87 ff       	sbrs	r24, 7
   34b52:	09 c0       	rjmp	.+18     	; 0x34b66 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]+0x44>
        ActivatePlannedRequest();
    } // otherwise wait for an empty window to activate the request
}
   34b54:	0f 90       	pop	r0
   34b56:	0f 90       	pop	r0
   34b58:	0f 90       	pop	r0
   34b5a:	0f 90       	pop	r0
   34b5c:	0f 90       	pop	r0
   34b5e:	df 91       	pop	r29
   34b60:	cf 91       	pop	r28
}

void ProtocolLogic::PlanGenericRequest(RequestMsg rq) {
    plannedRq = rq;
    if (!ExpectsResponse()) {
        ActivatePlannedRequest();
   34b62:	0d 94 0c a5 	jmp	0x34a18	; 0x34a18 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]>
    } // otherwise wait for an empty window to activate the request
}
   34b66:	0f 90       	pop	r0
   34b68:	0f 90       	pop	r0
   34b6a:	0f 90       	pop	r0
   34b6c:	0f 90       	pop	r0
   34b6e:	0f 90       	pop	r0
   34b70:	df 91       	pop	r29
   34b72:	cf 91       	pop	r28
   34b74:	08 95       	ret

00034b76 <MMU2::ProtocolLogic::SendVersion(unsigned char) [clone .constprop.309]>:
void ProtocolLogic::SendButton(uint8_t btn) {
    SendMsg(RequestMsg(RequestMsgCodes::Button, btn));
    scopeState = ScopeState::ButtonSent;
}

void ProtocolLogic::SendVersion(uint8_t stage) {
   34b76:	1f 93       	push	r17
   34b78:	cf 93       	push	r28
   34b7a:	df 93       	push	r29
   34b7c:	00 d0       	rcall	.+0      	; 0x34b7e <MMU2::ProtocolLogic::SendVersion(unsigned char) [clone .constprop.309]+0x8>
   34b7e:	1f 92       	push	r1
   34b80:	1f 92       	push	r1
   34b82:	cd b7       	in	r28, 0x3d	; 61
   34b84:	de b7       	in	r29, 0x3e	; 62
   34b86:	18 2f       	mov	r17, r24
    SendMsg(RequestMsg(RequestMsgCodes::Version, stage));
   34b88:	48 2f       	mov	r20, r24
   34b8a:	63 e5       	ldi	r22, 0x53	; 83
   34b8c:	ce 01       	movw	r24, r28
   34b8e:	01 96       	adiw	r24, 0x01	; 1
   34b90:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34b94:	49 81       	ldd	r20, Y+1	; 0x01
   34b96:	5a 81       	ldd	r21, Y+2	; 0x02
   34b98:	6b 81       	ldd	r22, Y+3	; 0x03
   34b9a:	7c 81       	ldd	r23, Y+4	; 0x04
   34b9c:	8d 81       	ldd	r24, Y+5	; 0x05
   34b9e:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
    scopeState = (ScopeState)((uint_fast8_t)ScopeState::S0Sent + stage);
   34ba2:	10 93 4e 13 	sts	0x134E, r17	; 0x80134e <MMU2::mmu2+0x3>
}
   34ba6:	0f 90       	pop	r0
   34ba8:	0f 90       	pop	r0
   34baa:	0f 90       	pop	r0
   34bac:	0f 90       	pop	r0
   34bae:	0f 90       	pop	r0
   34bb0:	df 91       	pop	r29
   34bb2:	cf 91       	pop	r28
   34bb4:	1f 91       	pop	r17
   34bb6:	08 95       	ret

00034bb8 <MMU2::ProtocolLogic::SendQuery() [clone .constprop.304]>:
    if (fs != lastFSensor) {
        SendAndUpdateFilamentSensor();
    }
}

void ProtocolLogic::SendQuery() {
   34bb8:	cf 93       	push	r28
   34bba:	df 93       	push	r29
   34bbc:	00 d0       	rcall	.+0      	; 0x34bbe <MMU2::ProtocolLogic::SendQuery() [clone .constprop.304]+0x6>
   34bbe:	1f 92       	push	r1
   34bc0:	1f 92       	push	r1
   34bc2:	cd b7       	in	r28, 0x3d	; 61
   34bc4:	de b7       	in	r29, 0x3e	; 62
    SendMsg(RequestMsg(RequestMsgCodes::Query, 0));
   34bc6:	40 e0       	ldi	r20, 0x00	; 0
   34bc8:	61 e5       	ldi	r22, 0x51	; 81
   34bca:	ce 01       	movw	r24, r28
   34bcc:	01 96       	adiw	r24, 0x01	; 1
   34bce:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34bd2:	49 81       	ldd	r20, Y+1	; 0x01
   34bd4:	5a 81       	ldd	r21, Y+2	; 0x02
   34bd6:	6b 81       	ldd	r22, Y+3	; 0x03
   34bd8:	7c 81       	ldd	r23, Y+4	; 0x04
   34bda:	8d 81       	ldd	r24, Y+5	; 0x05
   34bdc:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
    scopeState = ScopeState::QuerySent;
   34be0:	84 e0       	ldi	r24, 0x04	; 4
   34be2:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
}
   34be6:	0f 90       	pop	r0
   34be8:	0f 90       	pop	r0
   34bea:	0f 90       	pop	r0
   34bec:	0f 90       	pop	r0
   34bee:	0f 90       	pop	r0
   34bf0:	df 91       	pop	r29
   34bf2:	cf 91       	pop	r28
   34bf4:	08 95       	ret

00034bf6 <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]>:
        SendWriteRegister(pgm_read_byte(initRegs8Addrs + regIndex), initRegs8[regIndex], ScopeState::WritingInitRegisters);
    }
    return false;
}

void ProtocolLogic::SendAndUpdateFilamentSensor() {
   34bf6:	cf 93       	push	r28
   34bf8:	df 93       	push	r29
   34bfa:	00 d0       	rcall	.+0      	; 0x34bfc <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]+0x6>
   34bfc:	1f 92       	push	r1
   34bfe:	1f 92       	push	r1
   34c00:	cd b7       	in	r28, 0x3d	; 61
   34c02:	de b7       	in	r29, 0x3e	; 62
    SendMsg(RequestMsg(RequestMsgCodes::FilamentSensor, lastFSensor = (uint8_t)WhereIsFilament()));
   34c04:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   34c08:	80 93 8f 13 	sts	0x138F, r24	; 0x80138f <MMU2::mmu2+0x44>
   34c0c:	48 2f       	mov	r20, r24
   34c0e:	66 e6       	ldi	r22, 0x66	; 102
   34c10:	ce 01       	movw	r24, r28
   34c12:	01 96       	adiw	r24, 0x01	; 1
   34c14:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34c18:	49 81       	ldd	r20, Y+1	; 0x01
   34c1a:	5a 81       	ldd	r21, Y+2	; 0x02
   34c1c:	6b 81       	ldd	r22, Y+3	; 0x03
   34c1e:	7c 81       	ldd	r23, Y+4	; 0x04
   34c20:	8d 81       	ldd	r24, Y+5	; 0x05
   34c22:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
    scopeState = ScopeState::FilamentSensorStateSent;
   34c26:	86 e0       	ldi	r24, 0x06	; 6
   34c28:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
}
   34c2c:	0f 90       	pop	r0
   34c2e:	0f 90       	pop	r0
   34c30:	0f 90       	pop	r0
   34c32:	0f 90       	pop	r0
   34c34:	0f 90       	pop	r0
   34c36:	df 91       	pop	r29
   34c38:	cf 91       	pop	r28
   34c3a:	08 95       	ret

00034c3c <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]>:
        CheckAndReportAsyncEvents();
    }
    return Processing;
}

StepStatus ProtocolLogic::ProcessCommandQueryResponse() {
   34c3c:	cf 93       	push	r28
   34c3e:	df 93       	push	r29
   34c40:	00 d0       	rcall	.+0      	; 0x34c42 <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x6>
   34c42:	1f 92       	push	r1
   34c44:	1f 92       	push	r1
   34c46:	cd b7       	in	r28, 0x3d	; 61
   34c48:	de b7       	in	r29, 0x3e	; 62
    switch (rsp.paramCode) {
   34c4a:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   34c4e:	85 34       	cpi	r24, 0x45	; 69
   34c50:	f1 f0       	breq	.+60     	; 0x34c8e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x52>
   34c52:	20 f4       	brcc	.+8      	; 0x34c5c <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x20>
   34c54:	82 34       	cpi	r24, 0x42	; 66
   34c56:	51 f1       	breq	.+84     	; 0x34cac <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x70>
        } else {
            // got response to some other command - the originally issued command was interrupted!
            return Interrupted;
        }
    default:
        return ProtocolError;
   34c58:	85 e0       	ldi	r24, 0x05	; 5
   34c5a:	11 c0       	rjmp	.+34     	; 0x34c7e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x42>
    }
    return Processing;
}

StepStatus ProtocolLogic::ProcessCommandQueryResponse() {
    switch (rsp.paramCode) {
   34c5c:	86 34       	cpi	r24, 0x46	; 70
   34c5e:	71 f1       	breq	.+92     	; 0x34cbc <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x80>
   34c60:	80 35       	cpi	r24, 0x50	; 80
   34c62:	d1 f7       	brne	.-12     	; 0x34c58 <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x1c>
    case ResponseMsgParamCodes::Processing:
        progressCode = static_cast<ProgressCode>(rsp.paramValue);
   34c64:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   34c68:	80 93 8d 13 	sts	0x138D, r24	; 0x80138d <MMU2::mmu2+0x42>
        errorCode = ErrorCode::OK;
   34c6c:	81 e0       	ldi	r24, 0x01	; 1
   34c6e:	90 e0       	ldi	r25, 0x00	; 0
   34c70:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   34c74:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
        SendAndUpdateFilamentSensor(); // keep on reporting the state of fsensor regularly
   34c78:	0f 94 fb a5 	call	0x34bf6	; 0x34bf6 <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]>
        return Processing;
   34c7c:	80 e0       	ldi	r24, 0x00	; 0
            return Interrupted;
        }
    default:
        return ProtocolError;
    }
}
   34c7e:	0f 90       	pop	r0
   34c80:	0f 90       	pop	r0
   34c82:	0f 90       	pop	r0
   34c84:	0f 90       	pop	r0
   34c86:	0f 90       	pop	r0
   34c88:	df 91       	pop	r29
   34c8a:	cf 91       	pop	r28
   34c8c:	08 95       	ret
        errorCode = ErrorCode::OK;
        SendAndUpdateFilamentSensor(); // keep on reporting the state of fsensor regularly
        return Processing;
    case ResponseMsgParamCodes::Error:
        // in case of an error the progress code remains as it has been before
        progressCode = ProgressCode::ERRWaitingForUser;
   34c8e:	8c e0       	ldi	r24, 0x0C	; 12
   34c90:	80 93 8d 13 	sts	0x138D, r24	; 0x80138d <MMU2::mmu2+0x42>
        errorCode = static_cast<ErrorCode>(rsp.paramValue);
   34c94:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   34c98:	90 91 67 13 	lds	r25, 0x1367	; 0x801367 <MMU2::mmu2+0x1c>
   34c9c:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   34ca0:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
        // keep on reporting the state of fsensor regularly even in command error state
        // - the MMU checks FINDA and fsensor even while recovering from errors
        SendAndUpdateFilamentSensor();
   34ca4:	0f 94 fb a5 	call	0x34bf6	; 0x34bf6 <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]>
        return CommandError;
   34ca8:	87 e0       	ldi	r24, 0x07	; 7
   34caa:	e9 cf       	rjmp	.-46     	; 0x34c7e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x42>
    case ResponseMsgParamCodes::Button:
        // The user pushed a button on the MMU. Save it, do what we need to do
        // to prepare, then pass it back to the MMU so it can work its magic.
        buttonCode = static_cast<Buttons>(rsp.paramValue);
   34cac:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   34cb0:	80 93 8e 13 	sts	0x138E, r24	; 0x80138e <MMU2::mmu2+0x43>
        SendAndUpdateFilamentSensor();
   34cb4:	0f 94 fb a5 	call	0x34bf6	; 0x34bf6 <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]>
        return ButtonPushed;
   34cb8:	8b e0       	ldi	r24, 0x0B	; 11
   34cba:	e1 cf       	rjmp	.-62     	; 0x34c7e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x42>
    case ResponseMsgParamCodes::Finished:
        // We must check whether the "finished" is actually related to the command issued into the MMU
        // It can also be an X0 F which means MMU just successfully restarted.
        if (ReqMsg().code == rsp.request.code && ReqMsg().value == rsp.request.value) {
   34cbc:	90 91 50 13 	lds	r25, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   34cc0:	80 91 60 13 	lds	r24, 0x1360	; 0x801360 <MMU2::mmu2+0x15>
   34cc4:	98 13       	cpse	r25, r24
   34cc6:	22 c0       	rjmp	.+68     	; 0x34d0c <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0xd0>
   34cc8:	90 91 51 13 	lds	r25, 0x1351	; 0x801351 <MMU2::mmu2+0x6>
   34ccc:	80 91 61 13 	lds	r24, 0x1361	; 0x801361 <MMU2::mmu2+0x16>
   34cd0:	98 13       	cpse	r25, r24
   34cd2:	1c c0       	rjmp	.+56     	; 0x34d0c <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0xd0>
            progressCode = ProgressCode::OK;
   34cd4:	10 92 8d 13 	sts	0x138D, r1	; 0x80138d <MMU2::mmu2+0x42>
            errorCode = ErrorCode::OK;
   34cd8:	81 e0       	ldi	r24, 0x01	; 1
   34cda:	90 e0       	ldi	r25, 0x00	; 0
   34cdc:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   34ce0:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
            scopeState = ScopeState::Ready;
   34ce4:	82 e8       	ldi	r24, 0x82	; 130
   34ce6:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
            rq = RequestMsg(RequestMsgCodes::unknown, 0); // clear the successfully finished request
   34cea:	40 e0       	ldi	r20, 0x00	; 0
   34cec:	60 e0       	ldi	r22, 0x00	; 0
   34cee:	ce 01       	movw	r24, r28
   34cf0:	01 96       	adiw	r24, 0x01	; 1
   34cf2:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34cf6:	85 e0       	ldi	r24, 0x05	; 5
   34cf8:	fe 01       	movw	r30, r28
   34cfa:	31 96       	adiw	r30, 0x01	; 1
   34cfc:	a0 e5       	ldi	r26, 0x50	; 80
   34cfe:	b3 e1       	ldi	r27, 0x13	; 19
   34d00:	01 90       	ld	r0, Z+
   34d02:	0d 92       	st	X+, r0
   34d04:	8a 95       	dec	r24
   34d06:	e1 f7       	brne	.-8      	; 0x34d00 <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0xc4>
   34d08:	82 e0       	ldi	r24, 0x02	; 2
   34d0a:	b9 cf       	rjmp	.-142    	; 0x34c7e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x42>
            return Finished;
        } else {
            // got response to some other command - the originally issued command was interrupted!
            return Interrupted;
   34d0c:	83 e0       	ldi	r24, 0x03	; 3
   34d0e:	b7 cf       	rjmp	.-146    	; 0x34c7e <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]+0x42>

00034d10 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]>:

        mmu_print_saved &= ~(SavedState::ParkExtruder);
    }
}

void MMU2::CheckUserInput() {
   34d10:	1f 93       	push	r17
   34d12:	cf 93       	push	r28
   34d14:	df 93       	push	r29
   34d16:	00 d0       	rcall	.+0      	; 0x34d18 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x8>
   34d18:	1f 92       	push	r1
   34d1a:	1f 92       	push	r1
   34d1c:	cd b7       	in	r28, 0x3d	; 61
   34d1e:	de b7       	in	r29, 0x3e	; 62
const char *PrusaErrorButtonMore() {
    return MSG_BTN_MORE;
}

Buttons ButtonPressed(ErrorCode ec) {
    if (buttonSelectedOperation == ButtonOperations::NoOperation) {
   34d20:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   34d24:	81 11       	cpse	r24, r1
   34d26:	2a c0       	rjmp	.+84     	; 0x34d7c <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x6c>
    auto btn = ButtonPressed(lastErrorCode);

    // Was a button pressed on the MMU itself instead of the LCD?
    if (btn == Buttons::NoButton && lastButton != Buttons::NoButton) {
   34d28:	10 91 b5 13 	lds	r17, 0x13B5	; 0x8013b5 <MMU2::mmu2+0x6a>
   34d2c:	1f 3f       	cpi	r17, 0xFF	; 255
   34d2e:	91 f5       	brne	.+100    	; 0x34d94 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x84>
        btn = lastButton;
        lastButton = Buttons::NoButton; // Clear it.
    }

    if (mmu2.MMULastErrorSource() == ErrorSourcePrinter && btn != Buttons::NoButton) {
   34d30:	80 91 b4 13 	lds	r24, 0x13B4	; 0x8013b4 <MMU2::mmu2+0x69>
   34d34:	81 11       	cpse	r24, r1
   34d36:	60 c0       	rjmp	.+192    	; 0x34df8 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0xe8>
   34d38:	1f 3f       	cpi	r17, 0xFF	; 255
   34d3a:	b9 f0       	breq	.+46     	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>

    inline void SetPrinterError(ErrorCode ec) {
        explicitPrinterError = ec;
    }
    inline void ClearPrinterError() {
        explicitPrinterError = ErrorCode::OK;
   34d3c:	81 e0       	ldi	r24, 0x01	; 1
   34d3e:	90 e0       	ldi	r25, 0x00	; 0
   34d40:	90 93 4c 13 	sts	0x134C, r25	; 0x80134c <MMU2::mmu2+0x1>
   34d44:	80 93 4b 13 	sts	0x134B, r24	; 0x80134b <MMU2::mmu2>
        }
    }

    void ClearPrinterError() {
        logic.ClearPrinterError();
        lastErrorCode = ErrorCode::OK;
   34d48:	90 93 b3 13 	sts	0x13B3, r25	; 0x8013b3 <MMU2::mmu2+0x68>
   34d4c:	80 93 b2 13 	sts	0x13B2, r24	; 0x8013b2 <MMU2::mmu2+0x67>
        lastErrorSource = ErrorSource::ErrorSourceNone;
   34d50:	8f ef       	ldi	r24, 0xFF	; 255
   34d52:	80 93 b4 13 	sts	0x13B4, r24	; 0x8013b4 <MMU2::mmu2+0x69>
        // Moreover - if the MMU is currently doing something (like the LoadFilament - see comment above)
        // we'll actually wait for it automagically in manage_response and after it finishes correctly,
        // we'll issue another command (like toolchange)
    }

    switch (btn) {
   34d56:	13 30       	cpi	r17, 0x03	; 3
   34d58:	09 f4       	brne	.+2      	; 0x34d5c <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x4c>
   34d5a:	82 c0       	rjmp	.+260    	; 0x34e60 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x150>
   34d5c:	f8 f0       	brcs	.+62     	; 0x34d9c <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x8c>
   34d5e:	16 30       	cpi	r17, 0x06	; 6
   34d60:	08 f4       	brcc	.+2      	; 0x34d64 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x54>
   34d62:	7b c0       	rjmp	.+246    	; 0x34e5a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x14a>
   34d64:	17 30       	cpi	r17, 0x07	; 7
   34d66:	09 f4       	brne	.+2      	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
   34d68:	7e c0       	rjmp	.+252    	; 0x34e66 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x156>
        // @@TODO not sure if we shall handle this high level operation at this spot
        break;
    default:
        break;
    }
}
   34d6a:	0f 90       	pop	r0
   34d6c:	0f 90       	pop	r0
   34d6e:	0f 90       	pop	r0
   34d70:	0f 90       	pop	r0
   34d72:	0f 90       	pop	r0
   34d74:	df 91       	pop	r29
   34d76:	cf 91       	pop	r28
   34d78:	1f 91       	pop	r17
   34d7a:	08 95       	ret
        return Buttons::NoButton; // no button
    }

    const auto result = ButtonAvailable(ec);
   34d7c:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   34d80:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   34d84:	0f 94 b6 c8 	call	0x3916c	; 0x3916c <MMU2::ButtonAvailable(ErrorCode)>
   34d88:	18 2f       	mov	r17, r24
    buttonSelectedOperation = ButtonOperations::NoOperation; // Reset operation
   34d8a:	10 92 ae 0d 	sts	0x0DAE, r1	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>

void MMU2::CheckUserInput() {
    auto btn = ButtonPressed(lastErrorCode);

    // Was a button pressed on the MMU itself instead of the LCD?
    if (btn == Buttons::NoButton && lastButton != Buttons::NoButton) {
   34d8e:	8f 3f       	cpi	r24, 0xFF	; 255
   34d90:	79 f6       	brne	.-98     	; 0x34d30 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x20>
   34d92:	ca cf       	rjmp	.-108    	; 0x34d28 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x18>
        btn = lastButton;
        lastButton = Buttons::NoButton; // Clear it.
   34d94:	8f ef       	ldi	r24, 0xFF	; 255
   34d96:	80 93 b5 13 	sts	0x13B5, r24	; 0x8013b5 <MMU2::mmu2+0x6a>
   34d9a:	ca cf       	rjmp	.-108    	; 0x34d30 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x20>

    switch (btn) {
    case Buttons::Left:
    case Buttons::Middle:
    case Buttons::Right:
        SERIAL_ECHOPGM("CheckUserInput-btnLMR ");
   34d9c:	86 ea       	ldi	r24, 0xA6	; 166
   34d9e:	98 ea       	ldi	r25, 0xA8	; 168
   34da0:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
        SERIAL_ECHOLN((int)buttons_to_uint8t(btn));
   34da4:	81 2f       	mov	r24, r17
   34da6:	90 e0       	ldi	r25, 0x00	; 0
   34da8:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
        ResumeHotendTemp(); // Recover the hotend temp before we attempt to do anything else...
   34dac:	0f 94 53 ac 	call	0x358a6	; 0x358a6 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]>

        if (mmu2.MMULastErrorSource() == ErrorSourceMMU) {
   34db0:	80 91 b4 13 	lds	r24, 0x13B4	; 0x8013b4 <MMU2::mmu2+0x69>
   34db4:	81 30       	cpi	r24, 0x01	; 1
   34db6:	89 f4       	brne	.+34     	; 0x34dda <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0xca>
    ScreenUpdateEnable();
    return true;
}

void MMU2::Button(uint8_t index) {
    LogEchoEvent_P(PSTR("Button"));
   34db8:	8f e9       	ldi	r24, 0x9F	; 159
   34dba:	98 ea       	ldi	r25, 0xA8	; 168
   34dbc:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
void ProtocolLogic::ResetMMU(uint8_t mode /* = 0 */) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Reset, mode));
}

void ProtocolLogic::Button(uint8_t index) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Button, index));
   34dc0:	41 2f       	mov	r20, r17
   34dc2:	62 e4       	ldi	r22, 0x42	; 66
   34dc4:	ce 01       	movw	r24, r28
   34dc6:	01 96       	adiw	r24, 0x01	; 1
   34dc8:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   34dcc:	49 81       	ldd	r20, Y+1	; 0x01
   34dce:	5a 81       	ldd	r21, Y+2	; 0x02
   34dd0:	6b 81       	ldd	r22, Y+3	; 0x03
   34dd2:	7c 81       	ldd	r23, Y+4	; 0x04
   34dd4:	8d 81       	ldd	r24, Y+5	; 0x05
   34dd6:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
        }

        // A quick hack: for specific error codes move the E-motor every time.
        // Not sure if we can rely on the fsensor.
        // Just plan the move, let the MMU take over when it is ready
        switch (lastErrorCode) {
   34dda:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   34dde:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   34de2:	84 30       	cpi	r24, 0x04	; 4
   34de4:	20 e8       	ldi	r18, 0x80	; 128
   34de6:	92 07       	cpc	r25, r18
   34de8:	21 f0       	breq	.+8      	; 0x34df2 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0xe2>
   34dea:	89 30       	cpi	r24, 0x09	; 9
   34dec:	90 48       	sbci	r25, 0x80	; 128
   34dee:	09 f0       	breq	.+2      	; 0x34df2 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0xe2>
   34df0:	bc cf       	rjmp	.-136    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
        case ErrorCode::FSENSOR_DIDNT_SWITCH_OFF:
        case ErrorCode::FSENSOR_TOO_EARLY:
            HelpUnloadToFinda();
   34df2:	0f 94 4e 6b 	call	0x2d69c	; 0x2d69c <MMU2::MMU2::HelpUnloadToFinda() [clone .constprop.203]>
   34df6:	b9 cf       	rjmp	.-142    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
        // Moreover - if the MMU is currently doing something (like the LoadFilament - see comment above)
        // we'll actually wait for it automagically in manage_response and after it finishes correctly,
        // we'll issue another command (like toolchange)
    }

    switch (btn) {
   34df8:	19 30       	cpi	r17, 0x09	; 9
   34dfa:	08 f0       	brcs	.+2      	; 0x34dfe <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0xee>
   34dfc:	b6 cf       	rjmp	.-148    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
   34dfe:	e1 2f       	mov	r30, r17
   34e00:	f0 e0       	ldi	r31, 0x00	; 0
   34e02:	88 27       	eor	r24, r24
   34e04:	e9 5f       	subi	r30, 0xF9	; 249
   34e06:	f8 45       	sbci	r31, 0x58	; 88
   34e08:	8e 4f       	sbci	r24, 0xFE	; 254
   34e0a:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   34e0e:	ca 39       	cpi	r28, 0x9A	; 154
   34e10:	ca 39       	cpi	r28, 0x9A	; 154
   34e12:	ca 39       	cpi	r28, 0x9A	; 154
   34e14:	36 39       	cpi	r19, 0x96	; 150
   34e16:	d6 38       	cpi	r29, 0x86	; 134
   34e18:	d6 38       	cpi	r29, 0x86	; 134
   34e1a:	20 3a       	cpi	r18, 0xA0	; 160
   34e1c:	7c 39       	cpi	r23, 0x9C	; 156
   34e1e:	54 3a       	cpi	r21, 0xA4	; 164
    logic.Stop();
    mmu2Serial.close();
}

void MMU2::Tune() {
    switch (lastErrorCode) {
   34e20:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   34e24:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   34e28:	87 38       	cpi	r24, 0x87	; 135
   34e2a:	20 e8       	ldi	r18, 0x80	; 128
   34e2c:	92 07       	cpc	r25, r18
   34e2e:	21 f0       	breq	.+8      	; 0x34e38 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x128>
   34e30:	87 30       	cpi	r24, 0x07	; 7
   34e32:	91 48       	sbci	r25, 0x81	; 129
   34e34:	09 f0       	breq	.+2      	; 0x34e38 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x128>
   34e36:	99 cf       	rjmp	.-206    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
    // special handling of explicit printer errors
    return IsPrinterError() ? StepStatus::PrinterError : currentStatus;
}

uint8_t ProtocolLogic::CommandInProgress() const {
    if (currentScope != Scope::Command) {
   34e38:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   34e3c:	84 30       	cpi	r24, 0x04	; 4
   34e3e:	21 f4       	brne	.+8      	; 0x34e48 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x138>
    );
    MENU_END();
}

void tuneIdlerStallguardThreshold() {
    if ((CommandInProgress)mmu2.GetCommandInProgress() != NoCommand)
   34e40:	80 91 50 13 	lds	r24, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   34e44:	81 11       	cpse	r24, r1
   34e46:	91 cf       	rjmp	.-222    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
        // homing fails during toolchange.
        // To save the print, make the Tune button unresponsive for now.
        return;
    }

    putErrorScreenToSleep = true;
   34e48:	81 e0       	ldi	r24, 0x01	; 1
   34e4a:	80 93 ad 0d 	sts	0x0DAD, r24	; 0x800dad <_ZN4MMU2L21putErrorScreenToSleepE.lto_priv.498>
    menu_submenu(tuneIdlerStallguardThresholdMenu);
   34e4e:	60 e0       	ldi	r22, 0x00	; 0
   34e50:	8c ed       	ldi	r24, 0xDC	; 220
   34e52:	99 e3       	ldi	r25, 0x39	; 57
   34e54:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
   34e58:	88 cf       	rjmp	.-240    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
    }

    /// @brief Queue a button operation which the printer can act upon
    /// @param btn Button operation
    inline void SetPrinterButtonOperation(Buttons btn) {
        printerButtonOperation = btn;
   34e5a:	10 93 b8 13 	sts	0x13B8, r17	; 0x8013b8 <MMU2::mmu2+0x6d>
   34e5e:	85 cf       	rjmp	.-246    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
void MMU2::ResetX42() {
    logic.ResetMMU(42);
}

void MMU2::TriggerResetPin() {
    reset();
   34e60:	0f 94 d9 c5 	call	0x38bb2	; 0x38bb2 <MMU2::reset()>
   34e64:	82 cf       	rjmp	.-252    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>
    StopKeepPowered();
    PowerOff();
}

void MMU2::StopKeepPowered() {
    state = xState::Stopped;
   34e66:	10 92 ba 13 	sts	0x13BA, r1	; 0x8013ba <MMU2::mmu2+0x6f>
    protocol.ResetResponseDecoder(); // important - finished delayed restart relies on this
    StartSeqRestart();
}

void ProtocolLogic::Stop() {
    state = State::Stopped;
   34e6a:	10 92 68 13 	sts	0x1368, r1	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Stopped;
   34e6e:	10 92 4d 13 	sts	0x134D, r1	; 0x80134d <MMU2::mmu2+0x2>
        if (previous_value != value) {
            eeprom_byte_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_byte(dst, value);
   34e72:	60 e0       	ldi	r22, 0x00	; 0
   34e74:	8c ea       	ldi	r24, 0xAC	; 172
   34e76:	9c e0       	ldi	r25, 0x0C	; 12
   34e78:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
}

/// Disables MMU in EEPROM
void DisableMMUInSettings() {
    eeprom_update_byte_notify((uint8_t *)EEPROM_MMU_ENABLED, false);
    mmu2.Status();
   34e7c:	0f 94 25 76 	call	0x2ec4a	; 0x2ec4a <MMU2::MMU2::Status() [clone .constprop.342]>
   34e80:	74 cf       	rjmp	.-280    	; 0x34d6a <MMU2::MMU2::CheckUserInput() [clone .constprop.202]+0x5a>

00034e82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]>:
    avoidRecursion = true;
    mmu_loop_inner(true);
    avoidRecursion = false;
}

void __attribute__((noinline)) MMU2::mmu_loop_inner(bool reportErrors) {
   34e82:	4f 92       	push	r4
   34e84:	5f 92       	push	r5
   34e86:	6f 92       	push	r6
   34e88:	7f 92       	push	r7
   34e8a:	8f 92       	push	r8
   34e8c:	9f 92       	push	r9
   34e8e:	af 92       	push	r10
   34e90:	bf 92       	push	r11
   34e92:	cf 92       	push	r12
   34e94:	df 92       	push	r13
   34e96:	ef 92       	push	r14
   34e98:	ff 92       	push	r15
   34e9a:	0f 93       	push	r16
   34e9c:	1f 93       	push	r17
   34e9e:	cf 93       	push	r28
   34ea0:	df 93       	push	r29
   34ea2:	cd b7       	in	r28, 0x3d	; 61
   34ea4:	de b7       	in	r29, 0x3e	; 62
   34ea6:	a0 97       	sbiw	r28, 0x20	; 32
   34ea8:	0f b6       	in	r0, 0x3f	; 63
   34eaa:	f8 94       	cli
   34eac:	de bf       	out	0x3e, r29	; 62
   34eae:	0f be       	out	0x3f, r0	; 63
   34eb0:	cd bf       	out	0x3d, r28	; 61
   34eb2:	08 2f       	mov	r16, r24
    }
}

StepStatus MMU2::LogicStep(bool reportErrors) {
    // Process any buttons before proceeding with another MMU Query
    CheckUserInput();
   34eb4:	0f 94 88 a6 	call	0x34d10	; 0x34d10 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]>
    DelayedRestartRestart();
    return SuppressShortDropOuts(PSTR("Protocol Error"), ProtocolError);
}

StepStatus ProtocolLogic::Step() {
    if (!ExpectsResponse()) { // if not waiting for a response, activate a planned request immediately
   34eb8:	80 91 4e 13 	lds	r24, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   34ebc:	87 fd       	sbrc	r24, 7
        ActivatePlannedRequest();
   34ebe:	0f 94 0c a5 	call	0x34a18	; 0x34a18 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]>
   34ec2:	90 91 4e 13 	lds	r25, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
    }
    return Processing;
}

StepStatus ProtocolLogic::ScopeStep() {
    if (!ExpectsResponse()) {
   34ec6:	97 ff       	sbrs	r25, 7
   34ec8:	7d c0       	rjmp	.+250    	; 0x34fc4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x142>
        // we are waiting for something
        switch (currentScope) {
   34eca:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   34ece:	82 30       	cpi	r24, 0x02	; 2
   34ed0:	b1 f0       	breq	.+44     	; 0x34efe <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x7c>
   34ed2:	08 f4       	brcc	.+2      	; 0x34ed6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x54>
   34ed4:	75 c0       	rjmp	.+234    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   34ed6:	83 30       	cpi	r24, 0x03	; 3
   34ed8:	e1 f1       	breq	.+120    	; 0x34f52 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xd0>
   34eda:	84 30       	cpi	r24, 0x04	; 4
   34edc:	09 f4       	brne	.+2      	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
   34ede:	54 c0       	rjmp	.+168    	; 0x34f88 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x106>
        break;
    case Finished: {
        // We are ok, switching to Idle if there is no potential next request planned.
        // But the trouble is we must report a finished command if the previous command has just been finished
        // i.e. only try to find some planned command if we just finished the Idle cycle
        if (!ActivatePlannedRequest()) { // if nothing is planned, switch to Idle
   34ee0:	0f 94 0c a5 	call	0x34a18	; 0x34a18 <MMU2::ProtocolLogic::ActivatePlannedRequest() [clone .constprop.329]>
   34ee4:	81 11       	cpse	r24, r1
   34ee6:	6b c3       	rjmp	.+1750   	; 0x355be <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x73c>
    // and we have just received a response to a Q0 message about a command progress
    return ProcessCommandQueryResponse();
}

void ProtocolLogic::SwitchToIdle() {
    state = State::Running;
   34ee8:	82 e0       	ldi	r24, 0x02	; 2
   34eea:	80 93 68 13 	sts	0x1368, r24	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Idle;
   34eee:	83 e0       	ldi	r24, 0x03	; 3
   34ef0:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
    scopeState = ScopeState::CommandSent;
    SendMsg(rq);
}

void ProtocolLogic::IdleRestart() {
    scopeState = ScopeState::Ready;
   34ef4:	82 e8       	ldi	r24, 0x82	; 130
   34ef6:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
        // We are ok, switching to Idle if there is no potential next request planned.
        // But the trouble is we must report a finished command if the previous command has just been finished
        // i.e. only try to find some planned command if we just finished the Idle cycle
        if (!ActivatePlannedRequest()) { // if nothing is planned, switch to Idle
            SwitchToIdle();
        } else if (ExpectsResponse()) {
   34efa:	12 e0       	ldi	r17, 0x02	; 2
   34efc:	db c2       	rjmp	.+1462   	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
    IdleRestart();
    SendQuery(); // force sending Q0 immediately
}

bool ProtocolLogic::Elapsed(uint32_t timeout) const {
    return _millis() >= (lastUARTActivityMs + timeout);
   34efe:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   34f02:	ab 01       	movw	r20, r22
   34f04:	bc 01       	movw	r22, r24
   34f06:	80 91 5a 13 	lds	r24, 0x135A	; 0x80135a <MMU2::mmu2+0xf>
   34f0a:	90 91 5b 13 	lds	r25, 0x135B	; 0x80135b <MMU2::mmu2+0x10>
   34f0e:	a0 91 5c 13 	lds	r26, 0x135C	; 0x80135c <MMU2::mmu2+0x11>
   34f12:	b0 91 5d 13 	lds	r27, 0x135D	; 0x80135d <MMU2::mmu2+0x12>
   34f16:	88 51       	subi	r24, 0x18	; 24
   34f18:	9c 4f       	sbci	r25, 0xFC	; 252
   34f1a:	af 4f       	sbci	r26, 0xFF	; 255
   34f1c:	bf 4f       	sbci	r27, 0xFF	; 255
        return VersionMismatch;
    }
}

StepStatus ProtocolLogic::DelayedRestartWait() {
    if (Elapsed(heartBeatPeriod)) { // this basically means, that we are waiting until there is some traffic on
   34f1e:	48 17       	cp	r20, r24
   34f20:	59 07       	cpc	r21, r25
   34f22:	6a 07       	cpc	r22, r26
   34f24:	7b 07       	cpc	r23, r27
   34f26:	08 f4       	brcc	.+2      	; 0x34f2a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa8>
   34f28:	4b c0       	rjmp	.+150    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
void MMU2Serial::close() {
    // @@TODO - probably turn off the UART
}

int MMU2Serial::read() {
    return fgetc(uart2io);
   34f2a:	84 e9       	ldi	r24, 0x94	; 148
   34f2c:	92 e1       	ldi	r25, 0x12	; 18
   34f2e:	0f 94 87 da 	call	0x3b50e	; 0x3b50e <fgetc>
        while (uart->read() != -1)
   34f32:	01 96       	adiw	r24, 0x01	; 1
   34f34:	d1 f7       	brne	.-12     	; 0x34f2a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa8>
    initRegs8[0] = extraLoadDistance;
    initRegs8[1] = pulleySlowFeedrate;
}

void ProtocolLogic::Start() {
    state = State::InitSequence;
   34f36:	81 e0       	ldi	r24, 0x01	; 1
   34f38:	80 93 68 13 	sts	0x1368, r24	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::StartSeq;
   34f3c:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
        rqState = RequestStates::Code;
    }

    /// resets the internal response decoding state (typically after an error)
    void ResetResponseDecoder() {
        rspState = ResponseStates::RequestCode;
   34f40:	10 92 6f 13 	sts	0x136F, r1	; 0x80136f <MMU2::mmu2+0x24>
    LogRequestMsg(txbuff, len);
    RecordUARTActivity();
}

void ProtocolLogic::StartSeqRestart() {
    retries = maxRetries;
   34f44:	86 e0       	ldi	r24, 0x06	; 6
   34f46:	80 93 4f 13 	sts	0x134F, r24	; 0x80134f <MMU2::mmu2+0x4>
    SendVersion(0);
   34f4a:	80 e0       	ldi	r24, 0x00	; 0
    case ScopeState::S2Sent: // received response to S2 - minor
        return ProcessVersionResponse((uint8_t)scopeState - (uint8_t)ScopeState::S0Sent);
    case ScopeState::S3Sent: // received response to S3 - revision
        if (rsp.request.code != RequestMsgCodes::Version || rsp.request.value != 3) {
            // got a response to something else - protocol corruption probably, repeat the query OR restart the comm by issuing S0?
            SendVersion(3);
   34f4c:	0f 94 bb a5 	call	0x34b76	; 0x34b76 <MMU2::ProtocolLogic::SendVersion(unsigned char) [clone .constprop.309]>
   34f50:	37 c0       	rjmp	.+110    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
    }
    return Processing;
}

StepStatus ProtocolLogic::IdleWait() {
    if (scopeState == ScopeState::Ready) { // check timeout
   34f52:	92 38       	cpi	r25, 0x82	; 130
   34f54:	29 f6       	brne	.-118    	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
    IdleRestart();
    SendQuery(); // force sending Q0 immediately
}

bool ProtocolLogic::Elapsed(uint32_t timeout) const {
    return _millis() >= (lastUARTActivityMs + timeout);
   34f56:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   34f5a:	ab 01       	movw	r20, r22
   34f5c:	bc 01       	movw	r22, r24
   34f5e:	80 91 5a 13 	lds	r24, 0x135A	; 0x80135a <MMU2::mmu2+0xf>
   34f62:	90 91 5b 13 	lds	r25, 0x135B	; 0x80135b <MMU2::mmu2+0x10>
   34f66:	a0 91 5c 13 	lds	r26, 0x135C	; 0x80135c <MMU2::mmu2+0x11>
   34f6a:	b0 91 5d 13 	lds	r27, 0x135D	; 0x80135d <MMU2::mmu2+0x12>
   34f6e:	88 51       	subi	r24, 0x18	; 24
   34f70:	9c 4f       	sbci	r25, 0xFC	; 252
   34f72:	af 4f       	sbci	r26, 0xFF	; 255
   34f74:	bf 4f       	sbci	r27, 0xFF	; 255
    return Processing;
}

StepStatus ProtocolLogic::IdleWait() {
    if (scopeState == ScopeState::Ready) { // check timeout
        if (Elapsed(heartBeatPeriod)) {
   34f76:	48 17       	cp	r20, r24
   34f78:	59 07       	cpc	r21, r25
   34f7a:	6a 07       	cpc	r22, r26
   34f7c:	7b 07       	cpc	r23, r27
   34f7e:	08 f4       	brcc	.+2      	; 0x34f82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x100>
   34f80:	af cf       	rjmp	.-162    	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>

void ProtocolLogic::SwitchFromStartToIdle() {
    state = State::Running;
    currentScope = Scope::Idle;
    IdleRestart();
    SendQuery(); // force sending Q0 immediately
   34f82:	0f 94 dc a5 	call	0x34bb8	; 0x34bb8 <MMU2::ProtocolLogic::SendQuery() [clone .constprop.304]>
   34f86:	1c c0       	rjmp	.+56     	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
}

bool ProtocolLogic::Elapsed(uint32_t timeout) const {
    return _millis() >= (lastUARTActivityMs + timeout);
   34f88:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   34f8c:	ab 01       	movw	r20, r22
   34f8e:	bc 01       	movw	r22, r24
   34f90:	80 91 5a 13 	lds	r24, 0x135A	; 0x80135a <MMU2::mmu2+0xf>
   34f94:	90 91 5b 13 	lds	r25, 0x135B	; 0x80135b <MMU2::mmu2+0x10>
   34f98:	a0 91 5c 13 	lds	r26, 0x135C	; 0x80135c <MMU2::mmu2+0x11>
   34f9c:	b0 91 5d 13 	lds	r27, 0x135D	; 0x80135d <MMU2::mmu2+0x12>
   34fa0:	88 51       	subi	r24, 0x18	; 24
   34fa2:	9c 4f       	sbci	r25, 0xFC	; 252
   34fa4:	af 4f       	sbci	r26, 0xFF	; 255
   34fa6:	bf 4f       	sbci	r27, 0xFF	; 255
    }
    return Processing;
}

StepStatus ProtocolLogic::CommandWait() {
    if (Elapsed(heartBeatPeriod)) {
   34fa8:	48 17       	cp	r20, r24
   34faa:	59 07       	cpc	r21, r25
   34fac:	6a 07       	cpc	r22, r26
   34fae:	7b 07       	cpc	r23, r27
   34fb0:	40 f7       	brcc	.-48     	; 0x34f82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x100>
};

void ProtocolLogic::CheckAndReportAsyncEvents() {
    // even when waiting for a query period, we need to report a change in filament sensor's state
    // - it is vital for a precise synchronization of moves of the printer and the MMU
    uint8_t fs = (uint8_t)WhereIsFilament();
   34fb2:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
    if (fs != lastFSensor) {
   34fb6:	90 91 8f 13 	lds	r25, 0x138F	; 0x80138f <MMU2::mmu2+0x44>
   34fba:	89 13       	cpse	r24, r25
        SendAndUpdateFilamentSensor();
   34fbc:	0f 94 fb a5 	call	0x34bf6	; 0x34bf6 <MMU2::ProtocolLogic::SendAndUpdateFilamentSensor() [clone .constprop.302]>
        // i.e. only try to find some planned command if we just finished the Idle cycle
        if (!ActivatePlannedRequest()) { // if nothing is planned, switch to Idle
            SwitchToIdle();
        } else if (ExpectsResponse()) {
            // if the previous cycle was Idle and now we have planned a new command -> avoid returning Finished
            currentStatus = Processing;
   34fc0:	10 e0       	ldi	r17, 0x00	; 0
   34fc2:	78 c2       	rjmp	.+1264   	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>

StepStatus ProtocolLogic::ExpectingMessage() {
    int bytesConsumed = 0;
    int c = -1;

    OldMMUFWDetector oldMMUh4x0r; // old MMU FW hacker ;)
   34fc4:	a1 2c       	mov	r10, r1
        return State::SomethingElse;
    }
};

StepStatus ProtocolLogic::ExpectingMessage() {
    int bytesConsumed = 0;
   34fc6:	d1 2c       	mov	r13, r1
   34fc8:	c1 2c       	mov	r12, r1

    /// @returns true when "ok\n" gets detected
    State Detect(uint8_t c) {
        // consume old MMU FW's data if any -> avoid confusion of protocol decoder
        if (ok == 0 && c == 'o') {
            ++ok;
   34fca:	99 24       	eor	r9, r9
   34fcc:	93 94       	inc	r9
            responseMsg.paramCode = (ResponseMsgParamCodes)c;
            responseMsg.paramValue = 0;
            return DecodeStatus::NeedMoreData;
        default:
            responseMsg.paramCode = ResponseMsgParamCodes::unknown;
            rspState = ResponseStates::Error;
   34fce:	55 e0       	ldi	r21, 0x05	; 5
   34fd0:	b5 2e       	mov	r11, r21
        case 'E':
        case 'F':
        case 'A':
        case 'R':
        case 'B':
            rspState = ResponseStates::ParamValue;
   34fd2:	63 e0       	ldi	r22, 0x03	; 3
   34fd4:	86 2e       	mov	r8, r22
        if (IsHexDigit(c)) {
            responseMsg.paramValue <<= 4U;
            responseMsg.paramValue += Char2Nibble(c);
            return DecodeStatus::NeedMoreData;
        } else if (IsCRCSeparator(c)) {
            rspState = ResponseStates::CRC;
   34fd6:	74 e0       	ldi	r23, 0x04	; 4
   34fd8:	77 2e       	mov	r7, r23
        if (IsHexDigit(c)) {
            responseMsg.request.value <<= 4U;
            responseMsg.request.value += Char2Nibble(c);
            return DecodeStatus::NeedMoreData;
        } else if (c == ' ') {
            rspState = ResponseStates::ParamCode;
   34fda:	e2 e0       	ldi	r30, 0x02	; 2
   34fdc:	6e 2e       	mov	r6, r30
   34fde:	66 c0       	rjmp	.+204    	; 0x350ac <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x22a>
    ++i;
    return i;
}

DecodeStatus Protocol::DecodeResponse(uint8_t c) {
    switch (rspState) {
   34fe0:	23 30       	cpi	r18, 0x03	; 3
   34fe2:	09 f4       	brne	.+2      	; 0x34fe6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x164>
   34fe4:	e0 c0       	rjmp	.+448    	; 0x351a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x324>
   34fe6:	24 30       	cpi	r18, 0x04	; 4
   34fe8:	09 f0       	breq	.+2      	; 0x34fec <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x16a>
   34fea:	83 c0       	rjmp	.+262    	; 0x350f2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x270>
    }
    static constexpr bool IsCRCSeparator(uint8_t c) {
        return c == '*';
    }
    static constexpr bool IsHexDigit(uint8_t c) {
        return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
   34fec:	20 ed       	ldi	r18, 0xD0	; 208
   34fee:	28 0f       	add	r18, r24
   34ff0:	2a 30       	cpi	r18, 0x0A	; 10
   34ff2:	08 f4       	brcc	.+2      	; 0x34ff6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x174>
   34ff4:	f8 c0       	rjmp	.+496    	; 0x351e6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x364>
   34ff6:	2f e9       	ldi	r18, 0x9F	; 159
   34ff8:	28 0f       	add	r18, r24
   34ffa:	26 30       	cpi	r18, 0x06	; 6
   34ffc:	08 f4       	brcc	.+2      	; 0x35000 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x17e>
   34ffe:	f3 c0       	rjmp	.+486    	; 0x351e6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x364>

    ResponseStates rspState;
    ResponseMsg responseMsg;

    static constexpr bool IsNewLine(uint8_t c) {
        return c == '\n' || c == '\r';
   35000:	8a 30       	cpi	r24, 0x0A	; 10
   35002:	09 f0       	breq	.+2      	; 0x35006 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x184>
   35004:	fa c0       	rjmp	.+500    	; 0x351fa <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x378>
            responseMsg.request.crc8 <<= 4U;
            responseMsg.request.crc8 += Char2Nibble(c);
            return DecodeStatus::NeedMoreData;
        } else if (IsNewLine(c)) {
            // check CRC at this spot
            if (responseMsg.request.crc8 != responseMsg.ComputeCRC8()) {
   35006:	40 90 74 13 	lds	r4, 0x1374	; 0x801374 <MMU2::mmu2+0x29>
   3500a:	80 e7       	ldi	r24, 0x70	; 112
   3500c:	93 e1       	ldi	r25, 0x13	; 19
   3500e:	0f 94 bb c5 	call	0x38b76	; 0x38b76 <modules::protocol::ResponseMsg::ComputeCRC8() const>
   35012:	48 12       	cpse	r4, r24
   35014:	b8 c0       	rjmp	.+368    	; 0x35186 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x304>
                // CRC mismatch
                responseMsg.paramCode = ResponseMsgParamCodes::unknown;
                rspState = ResponseStates::Error;
                return DecodeStatus::Error;
            } else {
                rspState = ResponseStates::RequestCode;
   35016:	10 92 6f 13 	sts	0x136F, r1	; 0x80136f <MMU2::mmu2+0x24>

    /// @returns the most recently lexed request message
    inline const RequestMsg GetRequestMsg() const { return requestMsg; }

    /// @returns the most recently lexed response message
    inline const ResponseMsg GetResponseMsg() const { return responseMsg; }
   3501a:	88 e0       	ldi	r24, 0x08	; 8
   3501c:	e0 e7       	ldi	r30, 0x70	; 112
   3501e:	f3 e1       	ldi	r31, 0x13	; 19
   35020:	de 01       	movw	r26, r28
   35022:	51 96       	adiw	r26, 0x11	; 17
   35024:	01 90       	ld	r0, Z+
   35026:	0d 92       	st	X+, r0
   35028:	8a 95       	dec	r24
   3502a:	e1 f7       	brne	.-8      	; 0x35024 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1a2>
   3502c:	88 e0       	ldi	r24, 0x08	; 8
   3502e:	fe 01       	movw	r30, r28
   35030:	71 96       	adiw	r30, 0x11	; 17
   35032:	de 01       	movw	r26, r28
   35034:	59 96       	adiw	r26, 0x19	; 25
   35036:	01 90       	ld	r0, Z+
   35038:	0d 92       	st	X+, r0
   3503a:	8a 95       	dec	r24
   3503c:	e1 f7       	brne	.-8      	; 0x35036 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1b4>
    while ((c = uart->read()) >= 0) {
        ++bytesConsumed;
        RecordReceivedByte(c);
        switch (protocol.DecodeResponse(c)) {
        case DecodeStatus::MessageCompleted:
            rsp = protocol.GetResponseMsg();
   3503e:	88 e0       	ldi	r24, 0x08	; 8
   35040:	fe 01       	movw	r30, r28
   35042:	79 96       	adiw	r30, 0x19	; 25
   35044:	a0 e6       	ldi	r26, 0x60	; 96
   35046:	b3 e1       	ldi	r27, 0x13	; 19
   35048:	01 90       	ld	r0, Z+
   3504a:	0d 92       	st	X+, r0
   3504c:	8a 95       	dec	r24
   3504e:	e1 f7       	brne	.-8      	; 0x35048 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1c6>
    }
    dst[(lastReceivedBytes.size() - 1) * 3 + 2] = 0; // terminate properly
}

void ProtocolLogic::FormatLastResponseMsgAndClearLRB(char *dst) {
    *dst++ = '<';
   35050:	8c e3       	ldi	r24, 0x3C	; 60
   35052:	89 83       	std	Y+1, r24	; 0x01
   35054:	fe 01       	movw	r30, r28
   35056:	32 96       	adiw	r30, 0x02	; 2
   35058:	a8 e7       	ldi	r26, 0x78	; 120
   3505a:	b3 e1       	ldi	r27, 0x13	; 19
    for (uint8_t i = 0; i < lrb; ++i) {
   3505c:	20 e0       	ldi	r18, 0x00	; 0
   3505e:	cf 01       	movw	r24, r30
   35060:	52 16       	cp	r5, r18
   35062:	09 f4       	brne	.+2      	; 0x35066 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1e4>
   35064:	cd c0       	rjmp	.+410    	; 0x35200 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x37e>
        uint8_t b = lastReceivedBytes[i];
   35066:	3d 91       	ld	r19, X+
        // Check for printable character, including space
        if (b < 32 || b > 127) {
   35068:	40 ee       	ldi	r20, 0xE0	; 224
   3506a:	43 0f       	add	r20, r19
   3506c:	40 36       	cpi	r20, 0x60	; 96
   3506e:	08 f0       	brcs	.+2      	; 0x35072 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1f0>
            b = '.';
   35070:	3e e2       	ldi	r19, 0x2E	; 46
        }
        *dst++ = b;
   35072:	31 93       	st	Z+, r19
    dst[(lastReceivedBytes.size() - 1) * 3 + 2] = 0; // terminate properly
}

void ProtocolLogic::FormatLastResponseMsgAndClearLRB(char *dst) {
    *dst++ = '<';
    for (uint8_t i = 0; i < lrb; ++i) {
   35074:	2f 5f       	subi	r18, 0xFF	; 255
   35076:	f4 cf       	rjmp	.-24     	; 0x35060 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1de>
}

DecodeStatus Protocol::DecodeResponse(uint8_t c) {
    switch (rspState) {
    case ResponseStates::RequestCode:
        switch (c) {
   35078:	8e 34       	cpi	r24, 0x4E	; 78
   3507a:	08 f0       	brcs	.+2      	; 0x3507e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1fc>
   3507c:	56 c0       	rjmp	.+172    	; 0x3512a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2a8>
   3507e:	8b 34       	cpi	r24, 0x4B	; 75
   35080:	08 f0       	brcs	.+2      	; 0x35084 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x202>
   35082:	46 c0       	rjmp	.+140    	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
   35084:	82 34       	cpi	r24, 0x42	; 66
   35086:	09 f4       	brne	.+2      	; 0x3508a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x208>
   35088:	43 c0       	rjmp	.+134    	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
   3508a:	e0 f5       	brcc	.+120    	; 0x35104 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x282>
   3508c:	8a 30       	cpi	r24, 0x0A	; 10
   3508e:	59 f0       	breq	.+22     	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
   35090:	8d 30       	cpi	r24, 0x0D	; 13
   35092:	49 f0       	breq	.+18     	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
        } else if (IsCRCSeparator(c)) {
            rspState = ResponseStates::CRC;
            return DecodeStatus::NeedMoreData;
        } else {
            responseMsg.paramCode = ResponseMsgParamCodes::unknown;
            rspState = ResponseStates::Error;
   35094:	b0 92 6f 13 	sts	0x136F, r11	; 0x80136f <MMU2::mmu2+0x24>
        Matched };

    /// @returns true when "ok\n" gets detected
    State Detect(uint8_t c) {
        // consume old MMU FW's data if any -> avoid confusion of protocol decoder
        if (ok == 0 && c == 'o') {
   35098:	a1 10       	cpse	r10, r1
   3509a:	05 c1       	rjmp	.+522    	; 0x352a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x424>
   3509c:	1f 36       	cpi	r17, 0x6F	; 111
   3509e:	09 f0       	breq	.+2      	; 0x350a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x220>
   350a0:	fc c3       	rjmp	.+2040   	; 0x3589a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa18>
            ++ok;
   350a2:	aa 24       	eor	r10, r10
   350a4:	a3 94       	inc	r10

    OldMMUFWDetector oldMMUh4x0r; // old MMU FW hacker ;)

    // try to consume as many rx bytes as possible (until a message has been completed)
    while ((c = uart->read()) >= 0) {
        ++bytesConsumed;
   350a6:	4f ef       	ldi	r20, 0xFF	; 255
   350a8:	c4 1a       	sub	r12, r20
   350aa:	d4 0a       	sbc	r13, r20
   350ac:	84 e9       	ldi	r24, 0x94	; 148
   350ae:	92 e1       	ldi	r25, 0x12	; 18
   350b0:	0f 94 87 da 	call	0x3b50e	; 0x3b50e <fgetc>
    int c = -1;

    OldMMUFWDetector oldMMUh4x0r; // old MMU FW hacker ;)

    // try to consume as many rx bytes as possible (until a message has been completed)
    while ((c = uart->read()) >= 0) {
   350b4:	97 fd       	sbrc	r25, 7
   350b6:	00 c1       	rjmp	.+512    	; 0x352b8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x436>
        ++bytesConsumed;
        RecordReceivedByte(c);
   350b8:	18 2f       	mov	r17, r24
    array() = default;
    inline constexpr T *begin() const { return data; }
    inline constexpr T *end() const { return data + N; }
    static constexpr uint8_t size() { return N; }
    inline T &operator[](uint8_t i) {
        return data[i];
   350ba:	20 91 88 13 	lds	r18, 0x1388	; 0x801388 <MMU2::mmu2+0x3d>
   350be:	30 e0       	ldi	r19, 0x00	; 0
void ProtocolLogic::RecordUARTActivity() {
    lastUARTActivityMs = _millis();
}

void ProtocolLogic::RecordReceivedByte(uint8_t c) {
    lastReceivedBytes[lrb] = c;
   350c0:	f9 01       	movw	r30, r18
   350c2:	e5 5b       	subi	r30, 0xB5	; 181
   350c4:	fc 4e       	sbci	r31, 0xEC	; 236
   350c6:	85 a7       	std	Z+45, r24	; 0x2d
    lrb = (lrb + 1) % lastReceivedBytes.size();
   350c8:	79 01       	movw	r14, r18
   350ca:	ef ef       	ldi	r30, 0xFF	; 255
   350cc:	ee 1a       	sub	r14, r30
   350ce:	fe 0a       	sbc	r15, r30
   350d0:	ff e0       	ldi	r31, 0x0F	; 15
   350d2:	ef 22       	and	r14, r31
   350d4:	ff 24       	eor	r15, r15
   350d6:	5e 2c       	mov	r5, r14
   350d8:	e0 92 88 13 	sts	0x1388, r14	; 0x801388 <MMU2::mmu2+0x3d>
    ++i;
    return i;
}

DecodeStatus Protocol::DecodeResponse(uint8_t c) {
    switch (rspState) {
   350dc:	20 91 6f 13 	lds	r18, 0x136F	; 0x80136f <MMU2::mmu2+0x24>
   350e0:	22 30       	cpi	r18, 0x02	; 2
   350e2:	09 f4       	brne	.+2      	; 0x350e6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x264>
   350e4:	48 c0       	rjmp	.+144    	; 0x35176 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2f4>
   350e6:	08 f0       	brcs	.+2      	; 0x350ea <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x268>
   350e8:	7b cf       	rjmp	.-266    	; 0x34fe0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x15e>
   350ea:	22 23       	and	r18, r18
   350ec:	29 f2       	breq	.-118    	; 0x35078 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x1f6>
   350ee:	21 30       	cpi	r18, 0x01	; 1
   350f0:	51 f1       	breq	.+84     	; 0x35146 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2c4>

    ResponseStates rspState;
    ResponseMsg responseMsg;

    static constexpr bool IsNewLine(uint8_t c) {
        return c == '\n' || c == '\r';
   350f2:	1a 30       	cpi	r17, 0x0A	; 10
   350f4:	09 f4       	brne	.+2      	; 0x350f8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x276>
   350f6:	8f cf       	rjmp	.-226    	; 0x35016 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x194>
   350f8:	1d 30       	cpi	r17, 0x0D	; 13
   350fa:	09 f4       	brne	.+2      	; 0x350fe <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x27c>
   350fc:	8c cf       	rjmp	.-232    	; 0x35016 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x194>
    default: //case error:
        if (IsNewLine(c)) {
            rspState = ResponseStates::RequestCode;
            return DecodeStatus::MessageCompleted;
        } else {
            responseMsg.paramCode = ResponseMsgParamCodes::unknown;
   350fe:	10 92 75 13 	sts	0x1375, r1	; 0x801375 <MMU2::mmu2+0x2a>
   35102:	ca cf       	rjmp	.-108    	; 0x35098 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x216>
}

DecodeStatus Protocol::DecodeResponse(uint8_t c) {
    switch (rspState) {
    case ResponseStates::RequestCode:
        switch (c) {
   35104:	85 34       	cpi	r24, 0x45	; 69
   35106:	30 f2       	brcs	.-116    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
   35108:	87 34       	cpi	r24, 0x47	; 71
   3510a:	10 f0       	brcs	.+4      	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
   3510c:	88 34       	cpi	r24, 0x48	; 72
   3510e:	11 f6       	brne	.-124    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
        case 'K':
        case 'F':
        case 'f':
        case 'H':
        case 'R':
            responseMsg.request.code = (RequestMsgCodes)c;
   35110:	80 93 70 13 	sts	0x1370, r24	; 0x801370 <MMU2::mmu2+0x25>
            responseMsg.request.value = 0;
   35114:	10 92 71 13 	sts	0x1371, r1	; 0x801371 <MMU2::mmu2+0x26>
            responseMsg.request.value2 = 0;
   35118:	10 92 73 13 	sts	0x1373, r1	; 0x801373 <MMU2::mmu2+0x28>
   3511c:	10 92 72 13 	sts	0x1372, r1	; 0x801372 <MMU2::mmu2+0x27>
            responseMsg.request.crc8 = 0;
   35120:	10 92 74 13 	sts	0x1374, r1	; 0x801374 <MMU2::mmu2+0x29>
            rspState = ResponseStates::RequestValue;
   35124:	90 92 6f 13 	sts	0x136F, r9	; 0x80136f <MMU2::mmu2+0x24>
   35128:	be cf       	rjmp	.-132    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
}

DecodeStatus Protocol::DecodeResponse(uint8_t c) {
    switch (rspState) {
    case ResponseStates::RequestCode:
        switch (c) {
   3512a:	89 35       	cpi	r24, 0x59	; 89
   3512c:	40 f4       	brcc	.+16     	; 0x3513e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2bc>
   3512e:	87 35       	cpi	r24, 0x57	; 87
   35130:	78 f7       	brcc	.-34     	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
   35132:	20 eb       	ldi	r18, 0xB0	; 176
   35134:	28 0f       	add	r18, r24
   35136:	26 30       	cpi	r18, 0x06	; 6
   35138:	08 f0       	brcs	.+2      	; 0x3513c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2ba>
   3513a:	ac cf       	rjmp	.-168    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
   3513c:	e9 cf       	rjmp	.-46     	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
   3513e:	86 36       	cpi	r24, 0x66	; 102
   35140:	09 f0       	breq	.+2      	; 0x35144 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2c2>
   35142:	a8 cf       	rjmp	.-176    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
   35144:	e5 cf       	rjmp	.-54     	; 0x35110 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x28e>
    }
    static constexpr bool IsCRCSeparator(uint8_t c) {
        return c == '*';
    }
    static constexpr bool IsHexDigit(uint8_t c) {
        return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
   35146:	20 ed       	ldi	r18, 0xD0	; 208
   35148:	28 0f       	add	r18, r24
   3514a:	2a 30       	cpi	r18, 0x0A	; 10
   3514c:	50 f0       	brcs	.+20     	; 0x35162 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2e0>
   3514e:	2f e9       	ldi	r18, 0x9F	; 159
   35150:	28 0f       	add	r18, r24
   35152:	26 30       	cpi	r18, 0x06	; 6
   35154:	30 f0       	brcs	.+12     	; 0x35162 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2e0>
    case ResponseStates::RequestValue:
        if (IsHexDigit(c)) {
            responseMsg.request.value <<= 4U;
            responseMsg.request.value += Char2Nibble(c);
            return DecodeStatus::NeedMoreData;
        } else if (c == ' ') {
   35156:	80 32       	cpi	r24, 0x20	; 32
   35158:	09 f0       	breq	.+2      	; 0x3515c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x2da>
   3515a:	9c cf       	rjmp	.-200    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
            rspState = ResponseStates::ParamCode;
   3515c:	60 92 6f 13 	sts	0x136F, r6	; 0x80136f <MMU2::mmu2+0x24>
   35160:	a2 cf       	rjmp	.-188    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
            return DecodeStatus::Error;
        }
    case ResponseStates::RequestValue:
        if (IsHexDigit(c)) {
            responseMsg.request.value <<= 4U;
            responseMsg.request.value += Char2Nibble(c);
   35162:	0f 94 9a c5 	call	0x38b34	; 0x38b34 <modules::protocol::Protocol::Char2Nibble(unsigned char)>
            rspState = ResponseStates::Error;
            return DecodeStatus::Error;
        }
    case ResponseStates::RequestValue:
        if (IsHexDigit(c)) {
            responseMsg.request.value <<= 4U;
   35166:	90 91 71 13 	lds	r25, 0x1371	; 0x801371 <MMU2::mmu2+0x26>
   3516a:	92 95       	swap	r25
   3516c:	90 7f       	andi	r25, 0xF0	; 240
            responseMsg.request.value += Char2Nibble(c);
   3516e:	89 0f       	add	r24, r25
   35170:	80 93 71 13 	sts	0x1371, r24	; 0x801371 <MMU2::mmu2+0x26>
   35174:	98 cf       	rjmp	.-208    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
        } else {
            rspState = ResponseStates::Error;
            return DecodeStatus::Error;
        }
    case ResponseStates::ParamCode:
        switch (c) {
   35176:	87 34       	cpi	r24, 0x47	; 71
   35178:	48 f4       	brcc	.+18     	; 0x3518c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x30a>
   3517a:	85 34       	cpi	r24, 0x45	; 69
   3517c:	58 f4       	brcc	.+22     	; 0x35194 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x312>
   3517e:	2f eb       	ldi	r18, 0xBF	; 191
   35180:	28 0f       	add	r18, r24
   35182:	22 30       	cpi	r18, 0x02	; 2
   35184:	38 f0       	brcs	.+14     	; 0x35194 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x312>
            return DecodeStatus::NeedMoreData;
        } else if (IsCRCSeparator(c)) {
            rspState = ResponseStates::CRC;
            return DecodeStatus::NeedMoreData;
        } else {
            responseMsg.paramCode = ResponseMsgParamCodes::unknown;
   35186:	10 92 75 13 	sts	0x1375, r1	; 0x801375 <MMU2::mmu2+0x2a>
   3518a:	84 cf       	rjmp	.-248    	; 0x35094 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x212>
        } else {
            rspState = ResponseStates::Error;
            return DecodeStatus::Error;
        }
    case ResponseStates::ParamCode:
        switch (c) {
   3518c:	80 35       	cpi	r24, 0x50	; 80
   3518e:	11 f0       	breq	.+4      	; 0x35194 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x312>
   35190:	82 35       	cpi	r24, 0x52	; 82
   35192:	c9 f7       	brne	.-14     	; 0x35186 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x304>
        case 'E':
        case 'F':
        case 'A':
        case 'R':
        case 'B':
            rspState = ResponseStates::ParamValue;
   35194:	80 92 6f 13 	sts	0x136F, r8	; 0x80136f <MMU2::mmu2+0x24>
            responseMsg.paramCode = (ResponseMsgParamCodes)c;
   35198:	80 93 75 13 	sts	0x1375, r24	; 0x801375 <MMU2::mmu2+0x2a>
            responseMsg.paramValue = 0;
   3519c:	10 92 77 13 	sts	0x1377, r1	; 0x801377 <MMU2::mmu2+0x2c>
   351a0:	10 92 76 13 	sts	0x1376, r1	; 0x801376 <MMU2::mmu2+0x2b>
   351a4:	80 cf       	rjmp	.-256    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
   351a6:	20 ed       	ldi	r18, 0xD0	; 208
   351a8:	28 0f       	add	r18, r24
   351aa:	2a 30       	cpi	r18, 0x0A	; 10
   351ac:	48 f0       	brcs	.+18     	; 0x351c0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x33e>
   351ae:	2f e9       	ldi	r18, 0x9F	; 159
   351b0:	28 0f       	add	r18, r24
   351b2:	26 30       	cpi	r18, 0x06	; 6
   351b4:	28 f0       	brcs	.+10     	; 0x351c0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x33e>
    case ResponseStates::ParamValue:
        if (IsHexDigit(c)) {
            responseMsg.paramValue <<= 4U;
            responseMsg.paramValue += Char2Nibble(c);
            return DecodeStatus::NeedMoreData;
        } else if (IsCRCSeparator(c)) {
   351b6:	8a 32       	cpi	r24, 0x2A	; 42
   351b8:	31 f7       	brne	.-52     	; 0x35186 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x304>
            rspState = ResponseStates::CRC;
   351ba:	70 92 6f 13 	sts	0x136F, r7	; 0x80136f <MMU2::mmu2+0x24>
   351be:	73 cf       	rjmp	.-282    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
            return DecodeStatus::Error;
        }
    case ResponseStates::ParamValue:
        if (IsHexDigit(c)) {
            responseMsg.paramValue <<= 4U;
            responseMsg.paramValue += Char2Nibble(c);
   351c0:	0f 94 9a c5 	call	0x38b34	; 0x38b34 <modules::protocol::Protocol::Char2Nibble(unsigned char)>
            rspState = ResponseStates::Error;
            return DecodeStatus::Error;
        }
    case ResponseStates::ParamValue:
        if (IsHexDigit(c)) {
            responseMsg.paramValue <<= 4U;
   351c4:	20 91 76 13 	lds	r18, 0x1376	; 0x801376 <MMU2::mmu2+0x2b>
   351c8:	30 91 77 13 	lds	r19, 0x1377	; 0x801377 <MMU2::mmu2+0x2c>
   351cc:	44 e0       	ldi	r20, 0x04	; 4
   351ce:	22 0f       	add	r18, r18
   351d0:	33 1f       	adc	r19, r19
   351d2:	4a 95       	dec	r20
   351d4:	e1 f7       	brne	.-8      	; 0x351ce <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x34c>
            responseMsg.paramValue += Char2Nibble(c);
   351d6:	82 0f       	add	r24, r18
   351d8:	93 2f       	mov	r25, r19
   351da:	91 1d       	adc	r25, r1
   351dc:	90 93 77 13 	sts	0x1377, r25	; 0x801377 <MMU2::mmu2+0x2c>
   351e0:	80 93 76 13 	sts	0x1376, r24	; 0x801376 <MMU2::mmu2+0x2b>
   351e4:	60 cf       	rjmp	.-320    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>
            return DecodeStatus::Error;
        }
    case ResponseStates::CRC:
        if (IsHexDigit(c)) {
            responseMsg.request.crc8 <<= 4U;
            responseMsg.request.crc8 += Char2Nibble(c);
   351e6:	0f 94 9a c5 	call	0x38b34	; 0x38b34 <modules::protocol::Protocol::Char2Nibble(unsigned char)>
            rspState = ResponseStates::Error;
            return DecodeStatus::Error;
        }
    case ResponseStates::CRC:
        if (IsHexDigit(c)) {
            responseMsg.request.crc8 <<= 4U;
   351ea:	90 91 74 13 	lds	r25, 0x1374	; 0x801374 <MMU2::mmu2+0x29>
   351ee:	92 95       	swap	r25
   351f0:	90 7f       	andi	r25, 0xF0	; 240
            responseMsg.request.crc8 += Char2Nibble(c);
   351f2:	89 0f       	add	r24, r25
   351f4:	80 93 74 13 	sts	0x1374, r24	; 0x801374 <MMU2::mmu2+0x29>
   351f8:	56 cf       	rjmp	.-340    	; 0x350a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x224>

    ResponseStates rspState;
    ResponseMsg responseMsg;

    static constexpr bool IsNewLine(uint8_t c) {
        return c == '\n' || c == '\r';
   351fa:	8d 30       	cpi	r24, 0x0D	; 13
   351fc:	21 f6       	brne	.-120    	; 0x35186 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x304>
   351fe:	03 cf       	rjmp	.-506    	; 0x35006 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x184>
        if (b < 32 || b > 127) {
            b = '.';
        }
        *dst++ = b;
    }
    *dst = 0; // terminate properly
   35200:	e8 0e       	add	r14, r24
   35202:	f9 1e       	adc	r15, r25
   35204:	f7 01       	movw	r30, r14
   35206:	10 82       	st	Z, r1
    lrb = 0; // reset the input buffer index in case of a clean message
   35208:	10 92 88 13 	sts	0x1388, r1	; 0x801388 <MMU2::mmu2+0x3d>
}

void ProtocolLogic::LogResponse() {
    char lrb[lastReceivedBytes.size()];
    FormatLastResponseMsgAndClearLRB(lrb);
    MMU2_ECHO_MSGLN(lrb);
   3520c:	80 ed       	ldi	r24, 0xD0	; 208
   3520e:	9a ea       	ldi	r25, 0xAA	; 170
   35210:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   35214:	8a ec       	ldi	r24, 0xCA	; 202
   35216:	9a ea       	ldi	r25, 0xAA	; 170
   35218:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
   3521c:	ce 01       	movw	r24, r28
   3521e:	01 96       	adiw	r24, 0x01	; 1
   35220:	0f 94 3f d6 	call	0x3ac7e	; 0x3ac7e <MarlinSerial::println(char const*)>
        switch (protocol.DecodeResponse(c)) {
        case DecodeStatus::MessageCompleted:
            rsp = protocol.GetResponseMsg();
            LogResponse();
            // @@TODO reset direction of communication
            RecordUARTActivity(); // something has happened on the UART, update the timeout record
   35224:	0f 94 d8 66 	call	0x2cdb0	; 0x2cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>
        if (auto expmsg = ExpectingMessage(); expmsg != MessageReady) { // this whole statement takes 12B
            return expmsg;
        }

        // process message
        switch (currentScope) {
   35228:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   3522c:	81 30       	cpi	r24, 0x01	; 1
   3522e:	09 f4       	brne	.+2      	; 0x35232 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3b0>
   35230:	74 c0       	rjmp	.+232    	; 0x3531a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x498>
   35232:	08 f4       	brcc	.+2      	; 0x35236 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3b4>
   35234:	c5 ce       	rjmp	.-630    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   35236:	83 30       	cpi	r24, 0x03	; 3
   35238:	09 f4       	brne	.+2      	; 0x3523c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3ba>
   3523a:	d1 c0       	rjmp	.+418    	; 0x353de <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x55c>
   3523c:	84 30       	cpi	r24, 0x04	; 4
   3523e:	09 f0       	breq	.+2      	; 0x35242 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3c0>
   35240:	4f ce       	rjmp	.-866    	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
        return ProtocolError;
    }
}

StepStatus ProtocolLogic::CommandStep() {
    switch (scopeState) {
   35242:	80 91 4e 13 	lds	r24, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   35246:	86 30       	cpi	r24, 0x06	; 6
   35248:	09 f4       	brne	.+2      	; 0x3524c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3ca>
   3524a:	6c c1       	rjmp	.+728    	; 0x35524 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6a2>
   3524c:	08 f0       	brcs	.+2      	; 0x35250 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3ce>
   3524e:	93 c1       	rjmp	.+806    	; 0x35576 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6f4>
   35250:	84 30       	cpi	r24, 0x04	; 4
   35252:	09 f4       	brne	.+2      	; 0x35256 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3d4>
   35254:	09 c1       	rjmp	.+530    	; 0x35468 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e6>
   35256:	85 30       	cpi	r24, 0x05	; 5
   35258:	09 f0       	breq	.+2      	; 0x3525c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3da>
   3525a:	cc c0       	rjmp	.+408    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
    case ScopeState::CommandSent: {
        switch (rsp.paramCode) { // the response should be either accepted or rejected
   3525c:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   35260:	81 34       	cpi	r24, 0x41	; 65
   35262:	09 f4       	brne	.+2      	; 0x35266 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3e4>
   35264:	96 c1       	rjmp	.+812    	; 0x35592 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x710>
   35266:	82 35       	cpi	r24, 0x52	; 82
   35268:	09 f0       	breq	.+2      	; 0x3526c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3ea>
   3526a:	c4 c0       	rjmp	.+392    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
            errorCode = ErrorCode::RUNNING;
            scopeState = ScopeState::Wait;
            break;
        case ResponseMsgParamCodes::Rejected:
            // rejected - should normally not happen, but report the error up
            progressCode = ProgressCode::OK;
   3526c:	10 92 8d 13 	sts	0x138D, r1	; 0x80138d <MMU2::mmu2+0x42>
            errorCode = ErrorCode::PROTOCOL_ERROR;
   35270:	8d e2       	ldi	r24, 0x2D	; 45
   35272:	90 e8       	ldi	r25, 0x80	; 128
   35274:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   35278:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
    } break;
    case CommandRejected:
        // we have to repeat it - that's the only thing we can do
        // no change in state
        // @@TODO wait until Q0 returns command in progress finished, then we can send this one
        LogError(PSTR("Command rejected"));
   3527c:	8f e0       	ldi	r24, 0x0F	; 15
   3527e:	98 ea       	ldi	r25, 0xA8	; 168
   35280:	0f 94 f5 66 	call	0x2cdea	; 0x2cdea <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]>
void ProtocolLogic::DelayedRestartRestart() {
    scopeState = ScopeState::RecoveringProtocolError;
}

void ProtocolLogic::CommandRestart() {
    scopeState = ScopeState::CommandSent;
   35284:	85 e0       	ldi	r24, 0x05	; 5
   35286:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
    SendMsg(rq);
   3528a:	40 91 50 13 	lds	r20, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   3528e:	50 91 51 13 	lds	r21, 0x1351	; 0x801351 <MMU2::mmu2+0x6>
   35292:	60 91 52 13 	lds	r22, 0x1352	; 0x801352 <MMU2::mmu2+0x7>
   35296:	70 91 53 13 	lds	r23, 0x1353	; 0x801353 <MMU2::mmu2+0x8>
   3529a:	80 91 54 13 	lds	r24, 0x1354	; 0x801354 <MMU2::mmu2+0x9>
   3529e:	0f 94 de 67 	call	0x2cfbc	; 0x2cfbc <MMU2::ProtocolLogic::SendMsg(modules::protocol::RequestMsg) [clone .constprop.336]>
   352a2:	16 e0       	ldi	r17, 0x06	; 6
   352a4:	07 c1       	rjmp	.+526    	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
    State Detect(uint8_t c) {
        // consume old MMU FW's data if any -> avoid confusion of protocol decoder
        if (ok == 0 && c == 'o') {
            ++ok;
            return State::MatchingPart;
        } else if (ok == 1 && c == 'k') {
   352a6:	1b 36       	cpi	r17, 0x6B	; 107
   352a8:	09 f0       	breq	.+2      	; 0x352ac <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x42a>
   352aa:	f7 c2       	rjmp	.+1518   	; 0x3589a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa18>
        LogError(PSTR("Command Error"));
        // we shall probably transfer into the Idle state and await further instructions from the upper layer
        // Idle state may solve the problem of keeping up the heart beat running
        break;
    case VersionMismatch:
        LogError(PSTR("Version mismatch"));
   352ac:	80 ef       	ldi	r24, 0xF0	; 240
   352ae:	97 ea       	ldi	r25, 0xA7	; 167
   352b0:	0f 94 f5 66 	call	0x2cdea	; 0x2cdea <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]>
   352b4:	18 e0       	ldi	r17, 0x08	; 8
   352b6:	fe c0       	rjmp	.+508    	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
        default:
            RecordUARTActivity(); // something has happened on the UART, update the timeout record
            return ProtocolError;
        }
    }
    if (bytesConsumed != 0) {
   352b8:	cd 28       	or	r12, r13
   352ba:	19 f0       	breq	.+6      	; 0x352c2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x440>
        RecordUARTActivity(); // something has happened on the UART, update the timeout record
   352bc:	0f 94 d8 66 	call	0x2cdb0	; 0x2cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>
   352c0:	7f ce       	rjmp	.-770    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
    IdleRestart();
    SendQuery(); // force sending Q0 immediately
}

bool ProtocolLogic::Elapsed(uint32_t timeout) const {
    return _millis() >= (lastUARTActivityMs + timeout);
   352c2:	0f 94 58 2a 	call	0x254b0	; 0x254b0 <millis2>
   352c6:	ab 01       	movw	r20, r22
   352c8:	bc 01       	movw	r22, r24
   352ca:	80 91 5a 13 	lds	r24, 0x135A	; 0x80135a <MMU2::mmu2+0xf>
   352ce:	90 91 5b 13 	lds	r25, 0x135B	; 0x80135b <MMU2::mmu2+0x10>
   352d2:	a0 91 5c 13 	lds	r26, 0x135C	; 0x80135c <MMU2::mmu2+0x11>
   352d6:	b0 91 5d 13 	lds	r27, 0x135D	; 0x80135d <MMU2::mmu2+0x12>
   352da:	80 53       	subi	r24, 0x30	; 48
   352dc:	98 4f       	sbci	r25, 0xF8	; 248
   352de:	af 4f       	sbci	r26, 0xFF	; 255
   352e0:	bf 4f       	sbci	r27, 0xFF	; 255
        }
    }
    if (bytesConsumed != 0) {
        RecordUARTActivity(); // something has happened on the UART, update the timeout record
        return Processing; // consumed some bytes, but message still not ready
    } else if (Elapsed(linkLayerTimeout) && currentScope != Scope::Stopped) {
   352e2:	48 17       	cp	r20, r24
   352e4:	59 07       	cpc	r21, r25
   352e6:	6a 07       	cpc	r22, r26
   352e8:	7b 07       	cpc	r23, r27
   352ea:	08 f4       	brcc	.+2      	; 0x352ee <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x46c>
   352ec:	69 ce       	rjmp	.-814    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   352ee:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   352f2:	88 23       	and	r24, r24
   352f4:	09 f4       	brne	.+2      	; 0x352f8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x476>
   352f6:	64 ce       	rjmp	.-824    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
        rqState = RequestStates::Code;
    }

    /// resets the internal response decoding state (typically after an error)
    void ResetResponseDecoder() {
        rspState = ResponseStates::RequestCode;
   352f8:	10 92 6f 13 	sts	0x136F, r1	; 0x80136f <MMU2::mmu2+0x24>
    initRegs8[0] = extraLoadDistance;
    initRegs8[1] = pulleySlowFeedrate;
}

void ProtocolLogic::Start() {
    state = State::InitSequence;
   352fc:	81 e0       	ldi	r24, 0x01	; 1
   352fe:	80 93 68 13 	sts	0x1368, r24	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::StartSeq;
   35302:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
    LogRequestMsg(txbuff, len);
    RecordUARTActivity();
}

void ProtocolLogic::StartSeqRestart() {
    retries = maxRetries;
   35306:	86 e0       	ldi	r24, 0x06	; 6
   35308:	80 93 4f 13 	sts	0x134F, r24	; 0x80134f <MMU2::mmu2+0x4>
    SendVersion(0);
   3530c:	80 e0       	ldi	r24, 0x00	; 0
   3530e:	0f 94 bb a5 	call	0x34b76	; 0x34b76 <MMU2::ProtocolLogic::SendVersion(unsigned char) [clone .constprop.309]>

StepStatus ProtocolLogic::HandleCommunicationTimeout() {
    uart->flush(); // clear the output buffer
    protocol.ResetResponseDecoder();
    Start();
    return SuppressShortDropOuts(PSTR("Communication timeout"), CommunicationTimeout);
   35312:	64 e0       	ldi	r22, 0x04	; 4
   35314:	88 ec       	ldi	r24, 0xC8	; 200
   35316:	97 ea       	ldi	r25, 0xA7	; 167
   35318:	79 c0       	rjmp	.+242    	; 0x3540c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x58a>
    return Finished;
}

StepStatus ProtocolLogic::StartSeqStep() {
    // solve initial handshake
    switch (scopeState) {
   3531a:	10 91 4e 13 	lds	r17, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   3531e:	13 30       	cpi	r17, 0x03	; 3
   35320:	b1 f1       	breq	.+108    	; 0x3538e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x50c>
   35322:	60 f0       	brcs	.+24     	; 0x3533c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4ba>
   35324:	16 30       	cpi	r17, 0x06	; 6
   35326:	09 f4       	brne	.+2      	; 0x3532a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4a8>
   35328:	50 c0       	rjmp	.+160    	; 0x353ca <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x548>
   3532a:	19 30       	cpi	r17, 0x09	; 9
   3532c:	09 f0       	breq	.+2      	; 0x35330 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4ae>
   3532e:	be cf       	rjmp	.-132    	; 0x352ac <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x42a>
            // Start General Interrogation after line up - initial parametrization is started
            StartWritingInitRegisters();
        }
        return Processing;
    case ScopeState::WritingInitRegisters:
        if (ProcessWritingInitRegister()) {
   35330:	0f 94 08 69 	call	0x2d210	; 0x2d210 <MMU2::ProtocolLogic::ProcessWritingInitRegister() [clone .constprop.301]>
   35334:	88 23       	and	r24, r24
   35336:	09 f4       	brne	.+2      	; 0x3533a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4b8>
   35338:	43 ce       	rjmp	.-890    	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   3533a:	40 ce       	rjmp	.-896    	; 0x34fbc <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13a>
void ProtocolLogic::IdleRestart() {
    scopeState = ScopeState::Ready;
}

StepStatus ProtocolLogic::ProcessVersionResponse(uint8_t stage) {
    if (rsp.request.code != RequestMsgCodes::Version || rsp.request.value != stage) {
   3533c:	80 91 60 13 	lds	r24, 0x1360	; 0x801360 <MMU2::mmu2+0x15>
   35340:	83 35       	cpi	r24, 0x53	; 83
   35342:	21 f4       	brne	.+8      	; 0x3534c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4ca>
   35344:	80 91 61 13 	lds	r24, 0x1361	; 0x801361 <MMU2::mmu2+0x16>
   35348:	18 17       	cp	r17, r24
   3534a:	11 f0       	breq	.+4      	; 0x35350 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4ce>
        mmuFwVersion[stage] = rsp.paramValue;
        if (mmuFwVersion[stage] != pgm_read_byte(supportedMmuFWVersion + stage)) {
            if (--retries == 0) {
                return VersionMismatch;
            } else {
                SendVersion(stage);
   3534c:	81 2f       	mov	r24, r17
   3534e:	fe cd       	rjmp	.-1028   	; 0x34f4c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xca>
StepStatus ProtocolLogic::ProcessVersionResponse(uint8_t stage) {
    if (rsp.request.code != RequestMsgCodes::Version || rsp.request.value != stage) {
        // got a response to something else - protocol corruption probably, repeat the query OR restart the comm by issuing S0?
        SendVersion(stage);
    } else {
        mmuFwVersion[stage] = rsp.paramValue;
   35350:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   35354:	e1 2f       	mov	r30, r17
   35356:	f0 e0       	ldi	r31, 0x00	; 0
   35358:	df 01       	movw	r26, r30
   3535a:	a6 56       	subi	r26, 0x66	; 102
   3535c:	bc 4e       	sbci	r27, 0xEC	; 236
   3535e:	8c 93       	st	X, r24
        if (mmuFwVersion[stage] != pgm_read_byte(supportedMmuFWVersion + stage)) {
   35360:	e3 51       	subi	r30, 0x13	; 19
   35362:	f8 45       	sbci	r31, 0x58	; 88
   35364:	e4 91       	lpm	r30, Z
   35366:	8e 17       	cp	r24, r30
   35368:	41 f0       	breq	.+16     	; 0x3537a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4f8>
            if (--retries == 0) {
   3536a:	80 91 4f 13 	lds	r24, 0x134F	; 0x80134f <MMU2::mmu2+0x4>
   3536e:	81 50       	subi	r24, 0x01	; 1
   35370:	80 93 4f 13 	sts	0x134F, r24	; 0x80134f <MMU2::mmu2+0x4>
   35374:	81 11       	cpse	r24, r1
   35376:	ea cf       	rjmp	.-44     	; 0x3534c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x4ca>
   35378:	99 cf       	rjmp	.-206    	; 0x352ac <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x42a>
    SERIAL_ECHOLNPGM("ResetRetryAttempts");
    retryAttempts = MAX_RETRIES;
}

void ProtocolLogic::ResetCommunicationTimeoutAttempts() {
    SERIAL_ECHOLNPGM("RSTCommTimeout");
   3537a:	83 e7       	ldi	r24, 0x73	; 115
   3537c:	9a ea       	ldi	r25, 0xAA	; 170
   3537e:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

    /// @returns the initial cause which started this drop out event
    inline StepStatus InitialCause() const { return cause; }

    /// Rearms the object for further processing - basically call this once the MMU responds with something meaningful (e.g. S0 A2)
    inline void Reset() { occurrences = maxOccurrences; }
   35382:	8a e0       	ldi	r24, 0x0A	; 10
   35384:	80 93 5f 13 	sts	0x135F, r24	; 0x80135f <MMU2::mmu2+0x14>
            } else {
                SendVersion(stage);
            }
        } else {
            ResetCommunicationTimeoutAttempts(); // got a meaningful response from the MMU, stop data layer timeout tracking
            SendVersion(stage + 1);
   35388:	81 e0       	ldi	r24, 0x01	; 1
   3538a:	81 0f       	add	r24, r17
   3538c:	df cd       	rjmp	.-1090   	; 0x34f4c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xca>
    case ScopeState::S0Sent: // received response to S0 - major
    case ScopeState::S1Sent: // received response to S1 - minor
    case ScopeState::S2Sent: // received response to S2 - minor
        return ProcessVersionResponse((uint8_t)scopeState - (uint8_t)ScopeState::S0Sent);
    case ScopeState::S3Sent: // received response to S3 - revision
        if (rsp.request.code != RequestMsgCodes::Version || rsp.request.value != 3) {
   3538e:	80 91 60 13 	lds	r24, 0x1360	; 0x801360 <MMU2::mmu2+0x15>
   35392:	83 35       	cpi	r24, 0x53	; 83
   35394:	21 f4       	brne	.+8      	; 0x3539e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x51c>
   35396:	80 91 61 13 	lds	r24, 0x1361	; 0x801361 <MMU2::mmu2+0x16>
   3539a:	83 30       	cpi	r24, 0x03	; 3
   3539c:	11 f0       	breq	.+4      	; 0x353a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x520>
            // got a response to something else - protocol corruption probably, repeat the query OR restart the comm by issuing S0?
            SendVersion(3);
   3539e:	83 e0       	ldi	r24, 0x03	; 3
   353a0:	d5 cd       	rjmp	.-1110   	; 0x34f4c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xca>
        } else {
            mmuFwVersionBuild = rsp.paramValue; // just register the build number
   353a2:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   353a6:	90 91 67 13 	lds	r25, 0x1367	; 0x801367 <MMU2::mmu2+0x1c>
   353aa:	90 93 9e 13 	sts	0x139E, r25	; 0x80139e <MMU2::mmu2+0x53>
   353ae:	80 93 9d 13 	sts	0x139D, r24	; 0x80139d <MMU2::mmu2+0x52>
    }
    return ScopeState::Reading16bitRegisters;
}

void ProtocolLogic::StartWritingInitRegisters() {
    regIndex = 0;
   353b2:	10 92 99 13 	sts	0x1399, r1	; 0x801399 <MMU2::mmu2+0x4e>
    SendWriteRegister(pgm_read_byte(initRegs8Addrs + regIndex), initRegs8[regIndex], ScopeState::WritingInitRegisters);
   353b6:	e1 e7       	ldi	r30, 0x71	; 113
   353b8:	fa ea       	ldi	r31, 0xAA	; 170
   353ba:	84 91       	lpm	r24, Z
   353bc:	60 91 97 13 	lds	r22, 0x1397	; 0x801397 <MMU2::mmu2+0x4c>
   353c0:	70 e0       	ldi	r23, 0x00	; 0
   353c2:	49 e0       	ldi	r20, 0x09	; 9
   353c4:	0f 94 49 68 	call	0x2d092	; 0x2d092 <MMU2::ProtocolLogic::SendWriteRegister(unsigned char, unsigned int, MMU2::ProtocolLogic::ScopeState) [clone .constprop.332]>
   353c8:	fb cd       	rjmp	.-1034   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
    currentScope = Scope::Idle;
    IdleRestart();
}

void ProtocolLogic::SwitchFromStartToIdle() {
    state = State::Running;
   353ca:	82 e0       	ldi	r24, 0x02	; 2
   353cc:	80 93 68 13 	sts	0x1368, r24	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Idle;
   353d0:	83 e0       	ldi	r24, 0x03	; 3
   353d2:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
    scopeState = ScopeState::CommandSent;
    SendMsg(rq);
}

void ProtocolLogic::IdleRestart() {
    scopeState = ScopeState::Ready;
   353d6:	82 e8       	ldi	r24, 0x82	; 130
   353d8:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
   353dc:	d2 cd       	rjmp	.-1116   	; 0x34f82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x100>
    }
    return Finished;
}

StepStatus ProtocolLogic::IdleStep() {
    switch (scopeState) {
   353de:	80 91 4e 13 	lds	r24, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   353e2:	88 30       	cpi	r24, 0x08	; 8
   353e4:	09 f4       	brne	.+2      	; 0x353e8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x566>
   353e6:	b7 c0       	rjmp	.+366    	; 0x35556 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6d4>
   353e8:	a8 f4       	brcc	.+42     	; 0x35414 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x592>
   353ea:	84 30       	cpi	r24, 0x04	; 4
   353ec:	d9 f0       	breq	.+54     	; 0x35424 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5a2>
   353ee:	87 30       	cpi	r24, 0x07	; 7
   353f0:	09 f4       	brne	.+2      	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
   353f2:	ae c0       	rjmp	.+348    	; 0x35550 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6ce>
    return SuppressShortDropOuts(PSTR("Communication timeout"), CommunicationTimeout);
}

StepStatus ProtocolLogic::HandleProtocolError() {
    uart->flush(); // clear the output buffer
    state = State::InitSequence;
   353f4:	81 e0       	ldi	r24, 0x01	; 1
   353f6:	80 93 68 13 	sts	0x1368, r24	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::DelayedRestart;
   353fa:	82 e0       	ldi	r24, 0x02	; 2
   353fc:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
    retries = maxRetries;
    SendVersion(0);
}

void ProtocolLogic::DelayedRestartRestart() {
    scopeState = ScopeState::RecoveringProtocolError;
   35400:	83 e8       	ldi	r24, 0x83	; 131
   35402:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
StepStatus ProtocolLogic::HandleProtocolError() {
    uart->flush(); // clear the output buffer
    state = State::InitSequence;
    currentScope = Scope::DelayedRestart;
    DelayedRestartRestart();
    return SuppressShortDropOuts(PSTR("Protocol Error"), ProtocolError);
   35406:	65 e0       	ldi	r22, 0x05	; 5
   35408:	8e ed       	ldi	r24, 0xDE	; 222
   3540a:	97 ea       	ldi	r25, 0xA7	; 167

StepStatus ProtocolLogic::HandleCommunicationTimeout() {
    uart->flush(); // clear the output buffer
    protocol.ResetResponseDecoder();
    Start();
    return SuppressShortDropOuts(PSTR("Communication timeout"), CommunicationTimeout);
   3540c:	0f 94 66 67 	call	0x2cecc	; 0x2cecc <MMU2::ProtocolLogic::SuppressShortDropOuts(char const*, MMU2::StepStatus) [clone .constprop.310]>
   35410:	18 2f       	mov	r17, r24
   35412:	50 c0       	rjmp	.+160    	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
    }
    return Finished;
}

StepStatus ProtocolLogic::IdleStep() {
    switch (scopeState) {
   35414:	8a 30       	cpi	r24, 0x0A	; 10
   35416:	09 f4       	brne	.+2      	; 0x3541a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x598>
   35418:	a7 c0       	rjmp	.+334    	; 0x35568 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6e6>
   3541a:	60 f3       	brcs	.-40     	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
   3541c:	8d 30       	cpi	r24, 0x0D	; 13
   3541e:	08 f4       	brcc	.+2      	; 0x35422 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5a0>
   35420:	5f cd       	rjmp	.-1346   	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
   35422:	e8 cf       	rjmp	.-48     	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
    case ScopeState::QuerySent: // check UART
        // If we are accidentally in Idle and we receive something like "T0 P1" - that means the communication dropped out while a command was in progress.
        // That causes no issues here, we just need to switch to Command processing and continue there from now on.
        // The usual response in this case should be some command and "F" - finished - that confirms we are in an Idle state even on the MMU side.
        switch (rsp.request.code) {
   35424:	80 91 60 13 	lds	r24, 0x1360	; 0x801360 <MMU2::mmu2+0x15>
   35428:	8e 34       	cpi	r24, 0x4E	; 78
   3542a:	60 f5       	brcc	.+88     	; 0x35484 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x602>
   3542c:	8b 34       	cpi	r24, 0x4B	; 75
   3542e:	10 f4       	brcc	.+4      	; 0x35434 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5b2>
   35430:	85 34       	cpi	r24, 0x45	; 69
   35432:	01 f7       	brne	.-64     	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
        case RequestMsgCodes::Eject:
        case RequestMsgCodes::Load:
        case RequestMsgCodes::Mode:
        case RequestMsgCodes::Tool:
        case RequestMsgCodes::Unload:
            if (rsp.paramCode != ResponseMsgParamCodes::Finished) {
   35434:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   35438:	86 34       	cpi	r24, 0x46	; 70
   3543a:	09 f4       	brne	.+2      	; 0x3543e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5bc>
   3543c:	73 c0       	rjmp	.+230    	; 0x35524 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6a2>
        return true;
    }
}

StepStatus ProtocolLogic::SwitchFromIdleToCommand() {
    currentScope = Scope::Command;
   3543e:	84 e0       	ldi	r24, 0x04	; 4
   35440:	80 93 4d 13 	sts	0x134D, r24	; 0x80134d <MMU2::mmu2+0x2>
   35444:	85 e0       	ldi	r24, 0x05	; 5
   35446:	e0 e6       	ldi	r30, 0x60	; 96
   35448:	f3 e1       	ldi	r31, 0x13	; 19
   3544a:	de 01       	movw	r26, r28
   3544c:	11 96       	adiw	r26, 0x01	; 1
   3544e:	01 90       	ld	r0, Z+
   35450:	0d 92       	st	X+, r0
   35452:	8a 95       	dec	r24
   35454:	e1 f7       	brne	.-8      	; 0x3544e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5cc>
    StepStatus StoppedStep() { return Processing; }

    StepStatus ProcessCommandQueryResponse();

    inline void SetRequestMsg(RequestMsg msg) {
        rq = msg;
   35456:	85 e0       	ldi	r24, 0x05	; 5
   35458:	fe 01       	movw	r30, r28
   3545a:	31 96       	adiw	r30, 0x01	; 1
   3545c:	a0 e5       	ldi	r26, 0x50	; 80
   3545e:	b3 e1       	ldi	r27, 0x13	; 19
   35460:	01 90       	ld	r0, Z+
   35462:	0d 92       	st	X+, r0
   35464:	8a 95       	dec	r24
   35466:	e1 f7       	brne	.-8      	; 0x35460 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5de>
        default:
            return ProtocolError;
        }
    } break;
    case ScopeState::QuerySent:
        return ProcessCommandQueryResponse();
   35468:	0f 94 1e a6 	call	0x34c3c	; 0x34c3c <MMU2::ProtocolLogic::ProcessCommandQueryResponse() [clone .constprop.288]>
   3546c:	18 2f       	mov	r17, r24
StepStatus ProtocolLogic::Step() {
    if (!ExpectsResponse()) { // if not waiting for a response, activate a planned request immediately
        ActivatePlannedRequest();
    }
    auto currentStatus = ScopeStep();
    switch (currentStatus) {
   3546e:	85 30       	cpi	r24, 0x05	; 5
   35470:	09 f2       	breq	.-126    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
   35472:	08 f0       	brcs	.+2      	; 0x35476 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5f4>
   35474:	9c c0       	rjmp	.+312    	; 0x355ae <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x72c>
   35476:	82 30       	cpi	r24, 0x02	; 2
   35478:	09 f4       	brne	.+2      	; 0x3547c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5fa>
   3547a:	32 cd       	rjmp	.-1436   	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
   3547c:	84 30       	cpi	r24, 0x04	; 4
   3547e:	09 f4       	brne	.+2      	; 0x35482 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x600>
   35480:	3b cf       	rjmp	.-394    	; 0x352f8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x476>
   35482:	18 c0       	rjmp	.+48     	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
    switch (scopeState) {
    case ScopeState::QuerySent: // check UART
        // If we are accidentally in Idle and we receive something like "T0 P1" - that means the communication dropped out while a command was in progress.
        // That causes no issues here, we just need to switch to Command processing and continue there from now on.
        // The usual response in this case should be some command and "F" - finished - that confirms we are in an Idle state even on the MMU side.
        switch (rsp.request.code) {
   35484:	84 35       	cpi	r24, 0x54	; 84
   35486:	08 f4       	brcc	.+2      	; 0x3548a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x608>
   35488:	b5 cf       	rjmp	.-150    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
   3548a:	86 35       	cpi	r24, 0x56	; 86
   3548c:	98 f2       	brcs	.-90     	; 0x35434 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5b2>
   3548e:	88 35       	cpi	r24, 0x58	; 88
   35490:	09 f0       	breq	.+2      	; 0x35494 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x612>
   35492:	b0 cf       	rjmp	.-160    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
            break;
        case RequestMsgCodes::Reset:
            // this one is kind of special
            // we do not transfer to any "running" command (i.e. we stay in Idle),
            // but in case there is an error reported we must make sure it gets propagated
            switch (rsp.paramCode) {
   35494:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   35498:	86 34       	cpi	r24, 0x46	; 70
   3549a:	89 f1       	breq	.+98     	; 0x354fe <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x67c>
   3549c:	80 35       	cpi	r24, 0x50	; 80
   3549e:	c1 f1       	breq	.+112    	; 0x35510 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x68e>
   354a0:	82 34       	cpi	r24, 0x42	; 66
   354a2:	09 f0       	breq	.+2      	; 0x354a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x624>
   354a4:	42 c0       	rjmp	.+132    	; 0x3552a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6a8>
            case ResponseMsgParamCodes::Button:
                // The user pushed a button on the MMU. Save it, do what we need to do
                // to prepare, then pass it back to the MMU so it can work its magic.
                buttonCode = static_cast<Buttons>(rsp.paramValue);
   354a6:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   354aa:	80 93 8e 13 	sts	0x138E, r24	; 0x80138e <MMU2::mmu2+0x43>
                StartReading8bitRegisters();
   354ae:	0f 94 cc a4 	call	0x34998	; 0x34998 <MMU2::ProtocolLogic::StartReading8bitRegisters() [clone .constprop.295]>
                return ButtonPushed;
   354b2:	1b e0       	ldi	r17, 0x0B	; 11
   354b4:	80 91 4b 13 	lds	r24, 0x134B	; 0x80134b <MMU2::mmu2>
   354b8:	90 91 4c 13 	lds	r25, 0x134C	; 0x80134c <MMU2::mmu2+0x1>
        break;
    default:
        break;
    }
    // special handling of explicit printer errors
    return IsPrinterError() ? StepStatus::PrinterError : currentStatus;
   354bc:	81 30       	cpi	r24, 0x01	; 1
   354be:	91 05       	cpc	r25, r1
   354c0:	09 f0       	breq	.+2      	; 0x354c4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x642>
   354c2:	ee c1       	rjmp	.+988    	; 0x358a0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa1e>

    const StepStatus ss = logic.Step();
    switch (ss) {
   354c4:	12 30       	cpi	r17, 0x02	; 2
   354c6:	09 f4       	brne	.+2      	; 0x354ca <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x648>
   354c8:	90 c0       	rjmp	.+288    	; 0x355ea <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x768>
   354ca:	08 f0       	brcs	.+2      	; 0x354ce <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x64c>
   354cc:	7d c0       	rjmp	.+250    	; 0x355c8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x746>
   354ce:	11 23       	and	r17, r17
   354d0:	09 f4       	brne	.+2      	; 0x354d4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x652>
   354d2:	18 c1       	rjmp	.+560    	; 0x35704 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x882>
    case Interrupted:
        // can be silently handed over to a higher layer, no processing necessary at this spot
        break;

    default:
        if (reportErrors) {
   354d4:	00 23       	and	r16, r16
   354d6:	09 f4       	brne	.+2      	; 0x354da <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x658>
   354d8:	e4 c0       	rjmp	.+456    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
            switch (ss) {
   354da:	17 30       	cpi	r17, 0x07	; 7
   354dc:	09 f4       	brne	.+2      	; 0x354e0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x65e>
   354de:	c4 c1       	rjmp	.+904    	; 0x35868 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9e6>
   354e0:	08 f0       	brcs	.+2      	; 0x354e4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x662>
   354e2:	b8 c1       	rjmp	.+880    	; 0x35854 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9d2>
   354e4:	14 30       	cpi	r17, 0x04	; 4
   354e6:	09 f4       	brne	.+2      	; 0x354ea <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x668>
   354e8:	c7 c1       	rjmp	.+910    	; 0x35878 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9f6>
   354ea:	15 30       	cpi	r17, 0x05	; 5
   354ec:	09 f0       	breq	.+2      	; 0x354f0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x66e>
   354ee:	d9 c0       	rjmp	.+434    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
                state = xState::Connecting;
                ReportError(ErrorCode::MMU_NOT_RESPONDING, ErrorSourcePrinter);
                break;

            case ProtocolError:
                state = xState::Connecting;
   354f0:	82 e0       	ldi	r24, 0x02	; 2
   354f2:	80 93 ba 13 	sts	0x13BA, r24	; 0x8013ba <MMU2::mmu2+0x6f>
                ReportError(ErrorCode::PROTOCOL_ERROR, ErrorSourcePrinter);
   354f6:	60 e0       	ldi	r22, 0x00	; 0
   354f8:	8d e2       	ldi	r24, 0x2D	; 45
   354fa:	90 e8       	ldi	r25, 0x80	; 128
   354fc:	ba c1       	rjmp	.+884    	; 0x35872 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9f0>
                // to prepare, then pass it back to the MMU so it can work its magic.
                buttonCode = static_cast<Buttons>(rsp.paramValue);
                StartReading8bitRegisters();
                return ButtonPushed;
            case ResponseMsgParamCodes::Finished:
                if (ReqMsg().code != RequestMsgCodes::unknown) {
   354fe:	80 91 50 13 	lds	r24, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   35502:	88 23       	and	r24, r24
   35504:	29 f0       	breq	.+10     	; 0x35510 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x68e>
    scopeState = ScopeState::CommandSent;
    SendMsg(rq);
}

void ProtocolLogic::IdleRestart() {
    scopeState = ScopeState::Ready;
   35506:	82 e8       	ldi	r24, 0x82	; 130
   35508:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
            case ResponseMsgParamCodes::Finished:
                if (ReqMsg().code != RequestMsgCodes::unknown) {
                    // got reset while doing some other command - the originally issued command was interrupted!
                    // this must be solved by the upper layer, protocol logic doesn't have all the context (like unload before trying again)
                    IdleRestart();
                    return Interrupted;
   3550c:	13 e0       	ldi	r17, 0x03	; 3
   3550e:	d2 cf       	rjmp	.-92     	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
                }
                [[fallthrough]];
            case ResponseMsgParamCodes::Processing:
                // @@TODO we may actually use this branch to report progress of manual operation on the MMU
                // The MMU sends e.g. X0 P27 after its restart when the user presses an MMU button to move the Selector
                progressCode = static_cast<ProgressCode>(rsp.paramValue);
   35510:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   35514:	80 93 8d 13 	sts	0x138D, r24	; 0x80138d <MMU2::mmu2+0x42>
                errorCode = ErrorCode::OK;
   35518:	81 e0       	ldi	r24, 0x01	; 1
   3551a:	90 e0       	ldi	r25, 0x00	; 0
   3551c:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   35520:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
        }
    } break;
    case ScopeState::QuerySent:
        return ProcessCommandQueryResponse();
    case ScopeState::FilamentSensorStateSent:
        StartReading8bitRegisters();
   35524:	0f 94 cc a4 	call	0x34998	; 0x34998 <MMU2::ProtocolLogic::StartReading8bitRegisters() [clone .constprop.295]>
   35528:	4b cd       	rjmp	.-1386   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
                // The MMU sends e.g. X0 P27 after its restart when the user presses an MMU button to move the Selector
                progressCode = static_cast<ProgressCode>(rsp.paramValue);
                errorCode = ErrorCode::OK;
                break;
            default:
                progressCode = ProgressCode::ERRWaitingForUser;
   3552a:	8c e0       	ldi	r24, 0x0C	; 12
   3552c:	80 93 8d 13 	sts	0x138D, r24	; 0x80138d <MMU2::mmu2+0x42>
                errorCode = static_cast<ErrorCode>(rsp.paramValue);
   35530:	80 91 66 13 	lds	r24, 0x1366	; 0x801366 <MMU2::mmu2+0x1b>
   35534:	90 91 67 13 	lds	r25, 0x1367	; 0x801367 <MMU2::mmu2+0x1c>
   35538:	90 93 8c 13 	sts	0x138C, r25	; 0x80138c <MMU2::mmu2+0x41>
   3553c:	80 93 8b 13 	sts	0x138B, r24	; 0x80138b <MMU2::mmu2+0x40>
                StartReading8bitRegisters(); // continue Idle state without restarting the communication
   35540:	0f 94 cc a4 	call	0x34998	; 0x34998 <MMU2::ProtocolLogic::StartReading8bitRegisters() [clone .constprop.295]>
        // @@TODO wait until Q0 returns command in progress finished, then we can send this one
        LogError(PSTR("Command rejected"));
        CommandRestart();
        break;
    case CommandError:
        LogError(PSTR("Command Error"));
   35544:	81 e0       	ldi	r24, 0x01	; 1
   35546:	98 ea       	ldi	r25, 0xA8	; 168
   35548:	0f 94 f5 66 	call	0x2cdea	; 0x2cdea <MMU2::ProtocolLogic::LogError(char const*) [clone .constprop.314]>
   3554c:	17 e0       	ldi	r17, 0x07	; 7
   3554e:	b2 cf       	rjmp	.-156    	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
            return ProtocolError;
        }
        StartReading8bitRegisters();
        return Processing;
    case ScopeState::Reading8bitRegisters:
        ProcessRead8bitRegister();
   35550:	0f 94 f0 a4 	call	0x349e0	; 0x349e0 <MMU2::ProtocolLogic::ProcessRead8bitRegister() [clone .constprop.290]>
   35554:	35 cd       	rjmp	.-1430   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
        return Processing;
    case ScopeState::Reading16bitRegisters:
        scopeState = ProcessRead16bitRegister(ScopeState::Ready);
   35556:	82 e8       	ldi	r24, 0x82	; 130
   35558:	0f 94 d4 a4 	call	0x349a8	; 0x349a8 <MMU2::ProtocolLogic::ProcessRead16bitRegister(MMU2::ProtocolLogic::ScopeState) [clone .constprop.292]>
   3555c:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
        return scopeState == ScopeState::Ready ? Finished : Processing;
   35560:	82 38       	cpi	r24, 0x82	; 130
   35562:	09 f0       	breq	.+2      	; 0x35566 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6e4>
   35564:	2d cd       	rjmp	.-1446   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   35566:	bc cc       	rjmp	.-1672   	; 0x34ee0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x5e>
    case ScopeState::ButtonSent:
        if (rsp.paramCode == ResponseMsgParamCodes::Accepted) {
   35568:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   3556c:	81 34       	cpi	r24, 0x41	; 65
   3556e:	d1 f6       	brne	.-76     	; 0x35524 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6a2>
            // Button was accepted, decrement the retry.
            DecrementRetryAttempts();
   35570:	0f 94 e3 66 	call	0x2cdc6	; 0x2cdc6 <MMU2::ProtocolLogic::DecrementRetryAttempts() [clone .constprop.293]>
   35574:	d7 cf       	rjmp	.-82     	; 0x35524 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6a2>
        return ProtocolError;
    }
}

StepStatus ProtocolLogic::CommandStep() {
    switch (scopeState) {
   35576:	88 30       	cpi	r24, 0x08	; 8
   35578:	b1 f0       	breq	.+44     	; 0x355a6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x724>
   3557a:	50 f3       	brcs	.-44     	; 0x35550 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6ce>
   3557c:	8a 30       	cpi	r24, 0x0A	; 10
   3557e:	09 f0       	breq	.+2      	; 0x35582 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x700>
   35580:	39 cf       	rjmp	.-398    	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
        return Processing;
    case ScopeState::Reading16bitRegisters:
        scopeState = ProcessRead16bitRegister(ScopeState::Wait);
        return Processing;
    case ScopeState::ButtonSent:
        if (rsp.paramCode == ResponseMsgParamCodes::Accepted) {
   35582:	80 91 65 13 	lds	r24, 0x1365	; 0x801365 <MMU2::mmu2+0x1a>
   35586:	81 34       	cpi	r24, 0x41	; 65
   35588:	09 f0       	breq	.+2      	; 0x3558c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x70a>
   3558a:	18 cd       	rjmp	.-1488   	; 0x34fbc <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13a>
            // Button was accepted, decrement the retry.
            DecrementRetryAttempts();
   3558c:	0f 94 e3 66 	call	0x2cdc6	; 0x2cdc6 <MMU2::ProtocolLogic::DecrementRetryAttempts() [clone .constprop.293]>
   35590:	15 cd       	rjmp	.-1494   	; 0x34fbc <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13a>
StepStatus ProtocolLogic::CommandStep() {
    switch (scopeState) {
    case ScopeState::CommandSent: {
        switch (rsp.paramCode) { // the response should be either accepted or rejected
        case ResponseMsgParamCodes::Accepted:
            progressCode = ProgressCode::OK;
   35592:	10 92 8d 13 	sts	0x138D, r1	; 0x80138d <MMU2::mmu2+0x42>
            errorCode = ErrorCode::RUNNING;
   35596:	10 92 8c 13 	sts	0x138C, r1	; 0x80138c <MMU2::mmu2+0x41>
   3559a:	10 92 8b 13 	sts	0x138B, r1	; 0x80138b <MMU2::mmu2+0x40>
            scopeState = ScopeState::Wait;
   3559e:	81 e8       	ldi	r24, 0x81	; 129
        return Processing;
    case ScopeState::Reading8bitRegisters:
        ProcessRead8bitRegister();
        return Processing;
    case ScopeState::Reading16bitRegisters:
        scopeState = ProcessRead16bitRegister(ScopeState::Wait);
   355a0:	80 93 4e 13 	sts	0x134E, r24	; 0x80134e <MMU2::mmu2+0x3>
   355a4:	0d cd       	rjmp	.-1510   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
   355a6:	81 e8       	ldi	r24, 0x81	; 129
   355a8:	0f 94 d4 a4 	call	0x349a8	; 0x349a8 <MMU2::ProtocolLogic::ProcessRead16bitRegister(MMU2::ProtocolLogic::ScopeState) [clone .constprop.292]>
   355ac:	f9 cf       	rjmp	.-14     	; 0x355a0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x71e>
StepStatus ProtocolLogic::Step() {
    if (!ExpectsResponse()) { // if not waiting for a response, activate a planned request immediately
        ActivatePlannedRequest();
    }
    auto currentStatus = ScopeStep();
    switch (currentStatus) {
   355ae:	87 30       	cpi	r24, 0x07	; 7
   355b0:	49 f2       	breq	.-110    	; 0x35544 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x6c2>
   355b2:	08 f4       	brcc	.+2      	; 0x355b6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x734>
   355b4:	63 ce       	rjmp	.-826    	; 0x3527c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x3fa>
   355b6:	88 30       	cpi	r24, 0x08	; 8
   355b8:	09 f4       	brne	.+2      	; 0x355bc <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x73a>
   355ba:	78 ce       	rjmp	.-784    	; 0x352ac <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x42a>
   355bc:	7b cf       	rjmp	.-266    	; 0x354b4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x632>
        // We are ok, switching to Idle if there is no potential next request planned.
        // But the trouble is we must report a finished command if the previous command has just been finished
        // i.e. only try to find some planned command if we just finished the Idle cycle
        if (!ActivatePlannedRequest()) { // if nothing is planned, switch to Idle
            SwitchToIdle();
        } else if (ExpectsResponse()) {
   355be:	80 91 4e 13 	lds	r24, 0x134E	; 0x80134e <MMU2::mmu2+0x3>
   355c2:	87 fd       	sbrc	r24, 7
   355c4:	9a cc       	rjmp	.-1740   	; 0x34efa <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x78>
   355c6:	fc cc       	rjmp	.-1544   	; 0x34fc0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x13e>
StepStatus MMU2::LogicStep(bool reportErrors) {
    // Process any buttons before proceeding with another MMU Query
    CheckUserInput();

    const StepStatus ss = logic.Step();
    switch (ss) {
   355c8:	13 30       	cpi	r17, 0x03	; 3
   355ca:	09 f4       	brne	.+2      	; 0x355ce <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x74c>
   355cc:	6a c0       	rjmp	.+212    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
   355ce:	1b 30       	cpi	r17, 0x0B	; 11
   355d0:	09 f0       	breq	.+2      	; 0x355d4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x752>
   355d2:	80 cf       	rjmp	.-256    	; 0x354d4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x652>
    case Processing:
        OnMMUProgressMsg(logic.Progress());
        break;

    case ButtonPushed:
        lastButton = logic.Button();
   355d4:	80 91 8e 13 	lds	r24, 0x138E	; 0x80138e <MMU2::mmu2+0x43>
   355d8:	80 93 b5 13 	sts	0x13B5, r24	; 0x8013b5 <MMU2::mmu2+0x6a>
        LogEchoEvent_P(PSTR("MMU Button pushed"));
   355dc:	80 e2       	ldi	r24, 0x20	; 32
   355de:	98 ea       	ldi	r25, 0xA8	; 168
   355e0:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
        CheckUserInput(); // Process the button immediately
   355e4:	0f 94 88 a6 	call	0x34d10	; 0x34d10 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]>
   355e8:	5c c0       	rjmp	.+184    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
    CheckErrorScreenUserInput();
}

void MMU2::CheckFINDARunout() {
    // Check for FINDA filament runout
    if (!FindaDetectsFilament() && check_fsensor()) { // Check if we have filament runout detected from sensors
   355ea:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   355ee:	81 11       	cpse	r24, r1
   355f0:	58 c0       	rjmp	.+176    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
    return (eeprom_read_byte((uint8_t*)EEPROM_UVLO) != PowerPanic::NO_PENDING_RECOVERY);
}

// Currently only used in one place, allowed to be inlined
bool check_fsensor() {
    return printJobOngoing()
   355f2:	0e 94 17 67 	call	0xce2e	; 0xce2e <printJobOngoing()>
        && mcode_in_progress != 600
        && !saved_printing
        && !mesh_bed_leveling_flag
        && !homing_flag
        && e_active();
   355f6:	88 23       	and	r24, r24
   355f8:	09 f4       	brne	.+2      	; 0x355fc <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x77a>
   355fa:	53 c0       	rjmp	.+166    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
}

// Currently only used in one place, allowed to be inlined
bool check_fsensor() {
    return printJobOngoing()
        && mcode_in_progress != 600
   355fc:	80 91 aa 0d 	lds	r24, 0x0DAA	; 0x800daa <_ZL17mcode_in_progress.lto_priv.532>
   35600:	90 91 ab 0d 	lds	r25, 0x0DAB	; 0x800dab <_ZL17mcode_in_progress.lto_priv.532+0x1>
   35604:	88 35       	cpi	r24, 0x58	; 88
   35606:	92 40       	sbci	r25, 0x02	; 2
   35608:	09 f4       	brne	.+2      	; 0x3560c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x78a>
   3560a:	4b c0       	rjmp	.+150    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
        && !saved_printing
   3560c:	80 91 a9 0d 	lds	r24, 0x0DA9	; 0x800da9 <saved_printing>
   35610:	81 11       	cpse	r24, r1
   35612:	47 c0       	rjmp	.+142    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
        && !mesh_bed_leveling_flag
   35614:	80 91 a8 0d 	lds	r24, 0x0DA8	; 0x800da8 <mesh_bed_leveling_flag>
   35618:	81 11       	cpse	r24, r1
   3561a:	43 c0       	rjmp	.+134    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
        && !homing_flag
   3561c:	80 91 a7 0d 	lds	r24, 0x0DA7	; 0x800da7 <homing_flag>
   35620:	81 11       	cpse	r24, r1
   35622:	3f c0       	rjmp	.+126    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>

bool e_active()
{
	unsigned char e_active = 0;
	block_t *block;
  if(block_buffer_tail != block_buffer_head)
   35624:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   35628:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   3562c:	98 17       	cp	r25, r24
   3562e:	c9 f1       	breq	.+114    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
  {
    uint8_t block_index = block_buffer_tail;
   35630:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
}
#endif

bool e_active()
{
	unsigned char e_active = 0;
   35634:	90 e0       	ldi	r25, 0x00	; 0
  {
    uint8_t block_index = block_buffer_tail;
    while(block_index != block_buffer_head)
    {
      block = &block_buffer[block_index];
      if(block->steps[E_AXIS].wide != 0) e_active++;
   35636:	2e e6       	ldi	r18, 0x6E	; 110
	unsigned char e_active = 0;
	block_t *block;
  if(block_buffer_tail != block_buffer_head)
  {
    uint8_t block_index = block_buffer_tail;
    while(block_index != block_buffer_head)
   35638:	30 91 a5 0d 	lds	r19, 0x0DA5	; 0x800da5 <block_buffer_head>
   3563c:	38 17       	cp	r19, r24
   3563e:	89 f0       	breq	.+34     	; 0x35662 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x7e0>
    {
      block = &block_buffer[block_index];
      if(block->steps[E_AXIS].wide != 0) e_active++;
   35640:	28 9f       	mul	r18, r24
   35642:	f0 01       	movw	r30, r0
   35644:	11 24       	eor	r1, r1
   35646:	eb 53       	subi	r30, 0x3B	; 59
   35648:	f9 4f       	sbci	r31, 0xF9	; 249
   3564a:	44 85       	ldd	r20, Z+12	; 0x0c
   3564c:	55 85       	ldd	r21, Z+13	; 0x0d
   3564e:	66 85       	ldd	r22, Z+14	; 0x0e
   35650:	77 85       	ldd	r23, Z+15	; 0x0f
   35652:	45 2b       	or	r20, r21
   35654:	46 2b       	or	r20, r22
   35656:	47 2b       	or	r20, r23
   35658:	09 f0       	breq	.+2      	; 0x3565c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x7da>
   3565a:	9f 5f       	subi	r25, 0xFF	; 255
      block_index = (block_index+1) & (BLOCK_BUFFER_SIZE - 1);
   3565c:	8f 5f       	subi	r24, 0xFF	; 255
   3565e:	8f 70       	andi	r24, 0x0F	; 15
   35660:	eb cf       	rjmp	.-42     	; 0x35638 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x7b6>
        && e_active();
   35662:	99 23       	and	r25, r25
   35664:	f1 f0       	breq	.+60     	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
        SERIAL_ECHOLNPGM("FINDA filament runout!");
   35666:	81 eb       	ldi	r24, 0xB1	; 177
   35668:	97 ea       	ldi	r25, 0xA7	; 167
   3566a:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
void marlin_clear_print_state_in_ram() {
    clear_print_state_in_ram();
}

void marlin_stop_and_save_print_to_ram() {
    stop_and_save_print_to_ram(0,0);
   3566e:	20 e0       	ldi	r18, 0x00	; 0
   35670:	30 e0       	ldi	r19, 0x00	; 0
   35672:	a9 01       	movw	r20, r18
   35674:	ca 01       	movw	r24, r20
   35676:	b9 01       	movw	r22, r18
   35678:	0e 94 c6 88 	call	0x1118c	; 0x1118c <stop_and_save_print_to_ram(float, float)>
        marlin_stop_and_save_print_to_ram();
        restore_print_from_ram_and_continue(0);
   3567c:	60 e0       	ldi	r22, 0x00	; 0
   3567e:	70 e0       	ldi	r23, 0x00	; 0
   35680:	cb 01       	movw	r24, r22
   35682:	0e 94 cb 67 	call	0xcf96	; 0xcf96 <restore_print_from_ram_and_continue(float)>
    }
}

bool SpoolJoin::isSpoolJoinEnabled()
{
    if(eeprom_read_byte((uint8_t*)EEPROM_SPOOL_JOIN) == (uint8_t)EEPROM::Enabled) {
   35686:	86 ed       	ldi	r24, 0xD6	; 214
   35688:	9e e0       	ldi	r25, 0x0E	; 14
   3568a:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
   3568e:	81 30       	cpi	r24, 0x01	; 1
   35690:	21 f4       	brne	.+8      	; 0x3569a <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x818>
        if (SpoolJoin::spooljoin.isSpoolJoinEnabled() && get_current_tool() != (uint8_t)FILAMENT_UNKNOWN){ // Can't auto if F=?
   35692:	0f 94 fb 75 	call	0x2ebf6	; 0x2ebf6 <MMU2::MMU2::get_current_tool() const [clone .constprop.364]>
   35696:	8f 3f       	cpi	r24, 0xFF	; 255
   35698:	91 f5       	brne	.+100    	; 0x356fe <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x87c>
            enquecommand_front_P(PSTR("M600 AUTO")); // save print and run M600 command
        } else {
            enquecommand_front_P(MSG_M600); // save print and run M600 command
   3569a:	88 e4       	ldi	r24, 0x48	; 72
   3569c:	90 e7       	ldi	r25, 0x70	; 112
    if (!FindaDetectsFilament() && check_fsensor()) { // Check if we have filament runout detected from sensors
        SERIAL_ECHOLNPGM("FINDA filament runout!");
        marlin_stop_and_save_print_to_ram();
        restore_print_from_ram_and_continue(0);
        if (SpoolJoin::spooljoin.isSpoolJoinEnabled() && get_current_tool() != (uint8_t)FILAMENT_UNKNOWN){ // Can't auto if F=?
            enquecommand_front_P(PSTR("M600 AUTO")); // save print and run M600 command
   3569e:	0f 94 3f 76 	call	0x2ec7e	; 0x2ec7e <enquecommand_front(char const*, bool) [clone .constprop.323]>
                break;
            }
        }
    }

    if (logic.Running()) {
   356a2:	80 91 68 13 	lds	r24, 0x1368	; 0x801368 <MMU2::mmu2+0x1d>
   356a6:	82 30       	cpi	r24, 0x02	; 2
   356a8:	19 f4       	brne	.+6      	; 0x356b0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x82e>
        state = xState::Active;
   356aa:	81 e0       	ldi	r24, 0x01	; 1
   356ac:	80 93 ba 13 	sts	0x13BA, r24	; 0x8013ba <MMU2::mmu2+0x6f>
    mmu_loop_inner(true);
    avoidRecursion = false;
}

void __attribute__((noinline)) MMU2::mmu_loop_inner(bool reportErrors) {
    logicStepLastStatus = LogicStep(reportErrors); // it looks like the mmu_loop doesn't need to be a blocking call
   356b0:	10 93 b9 13 	sts	0x13B9, r17	; 0x8013b9 <MMU2::mmu2+0x6e>
// UI to resolve the error screen, for example tuning Idler Stallguard Threshold
// Set to false to allow the error screen to render again.
static bool putErrorScreenToSleep;

void CheckErrorScreenUserInput() {
    if (is_mmu_error_monitor_active) {
   356b4:	80 91 c3 06 	lds	r24, 0x06C3	; 0x8006c3 <_ZN4MMU2L27is_mmu_error_monitor_activeE.lto_priv.492>
   356b8:	88 23       	and	r24, r24
   356ba:	51 f0       	breq	.+20     	; 0x356d0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x84e>
bool TuneMenuEntered() {
    return putErrorScreenToSleep;
}

void ReportErrorHook(CommandInProgress /*cip*/, ErrorCode ec, uint8_t /*es*/) {
    if (putErrorScreenToSleep) return;
   356bc:	80 91 ad 0d 	lds	r24, 0x0DAD	; 0x800dad <_ZN4MMU2L21putErrorScreenToSleepE.lto_priv.498>
   356c0:	81 11       	cpse	r24, r1
   356c2:	06 c0       	rjmp	.+12     	; 0x356d0 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x84e>
   356c4:	80 91 b2 13 	lds	r24, 0x13B2	; 0x8013b2 <MMU2::mmu2+0x67>
   356c8:	90 91 b3 13 	lds	r25, 0x13B3	; 0x8013b3 <MMU2::mmu2+0x68>
   356cc:	0f 94 7c c7 	call	0x38ef8	; 0x38ef8 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]>
    CheckErrorScreenUserInput();
}
   356d0:	a0 96       	adiw	r28, 0x20	; 32
   356d2:	0f b6       	in	r0, 0x3f	; 63
   356d4:	f8 94       	cli
   356d6:	de bf       	out	0x3e, r29	; 62
   356d8:	0f be       	out	0x3f, r0	; 63
   356da:	cd bf       	out	0x3d, r28	; 61
   356dc:	df 91       	pop	r29
   356de:	cf 91       	pop	r28
   356e0:	1f 91       	pop	r17
   356e2:	0f 91       	pop	r16
   356e4:	ff 90       	pop	r15
   356e6:	ef 90       	pop	r14
   356e8:	df 90       	pop	r13
   356ea:	cf 90       	pop	r12
   356ec:	bf 90       	pop	r11
   356ee:	af 90       	pop	r10
   356f0:	9f 90       	pop	r9
   356f2:	8f 90       	pop	r8
   356f4:	7f 90       	pop	r7
   356f6:	6f 90       	pop	r6
   356f8:	5f 90       	pop	r5
   356fa:	4f 90       	pop	r4
   356fc:	08 95       	ret
    if (!FindaDetectsFilament() && check_fsensor()) { // Check if we have filament runout detected from sensors
        SERIAL_ECHOLNPGM("FINDA filament runout!");
        marlin_stop_and_save_print_to_ram();
        restore_print_from_ram_and_continue(0);
        if (SpoolJoin::spooljoin.isSpoolJoinEnabled() && get_current_tool() != (uint8_t)FILAMENT_UNKNOWN){ // Can't auto if F=?
            enquecommand_front_P(PSTR("M600 AUTO")); // save print and run M600 command
   356fe:	87 ea       	ldi	r24, 0xA7	; 167
   35700:	97 ea       	ldi	r25, 0xA7	; 167
   35702:	cd cf       	rjmp	.-102    	; 0x3569e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x81c>
   35704:	00 91 8d 13 	lds	r16, 0x138D	; 0x80138d <MMU2::mmu2+0x42>
    ReportProgressHook((CommandInProgress)logic.CommandInProgress(), pc);
    LogEchoEvent_P(_O(ProgressCodeToText(pc)));
}

void MMU2::OnMMUProgressMsg(ProgressCode pc) {
    if (pc != lastProgressCode) {
   35708:	80 91 b1 13 	lds	r24, 0x13B1	; 0x8013b1 <MMU2::mmu2+0x66>
   3570c:	08 17       	cp	r16, r24
   3570e:	09 f4       	brne	.+2      	; 0x35712 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x890>
   35710:	49 c0       	rjmp	.+146    	; 0x357a4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x922>
    // special handling of explicit printer errors
    return IsPrinterError() ? StepStatus::PrinterError : currentStatus;
}

uint8_t ProtocolLogic::CommandInProgress() const {
    if (currentScope != Scope::Command) {
   35712:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   35716:	84 30       	cpi	r24, 0x04	; 4
   35718:	b9 f4       	brne	.+46     	; 0x35748 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8c6>
        break;
    }
}

void ReportProgressHook(CommandInProgress cip, ProgressCode ec) {
    if (cip != CommandInProgress::NoCommand) {
   3571a:	80 91 50 13 	lds	r24, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   3571e:	88 23       	and	r24, r24
   35720:	99 f0       	breq	.+38     	; 0x35748 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8c6>
        custom_message_type = CustomMsg::MMUProgress;
   35722:	89 e0       	ldi	r24, 0x09	; 9
   35724:	80 93 c4 06 	sts	0x06C4, r24	; 0x8006c4 <custom_message_type>
        : static_cast<const char *>(pgm_read_ptr(&progressTexts[0]));
   35728:	ed e6       	ldi	r30, 0x6D	; 109
   3572a:	f7 ea       	ldi	r31, 0xA7	; 167
};

const char *ProgressCodeToText(ProgressCode pc) {
    // @@TODO ?? a better fallback option?
    return ((uint16_t)pc <= (sizeof(progressTexts) / sizeof(progressTexts[0])))
        ? static_cast<const char *>(pgm_read_ptr(&progressTexts[(uint16_t)pc]))
   3572c:	0e 31       	cpi	r16, 0x1E	; 30
   3572e:	30 f4       	brcc	.+12     	; 0x3573c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8ba>
   35730:	e0 2f       	mov	r30, r16
   35732:	f0 e0       	ldi	r31, 0x00	; 0
   35734:	ee 0f       	add	r30, r30
   35736:	ff 1f       	adc	r31, r31
   35738:	e3 59       	subi	r30, 0x93	; 147
   3573a:	f8 45       	sbci	r31, 0x58	; 88
        : static_cast<const char *>(pgm_read_ptr(&progressTexts[0]));
   3573c:	85 91       	lpm	r24, Z+
   3573e:	94 91       	lpm	r25, Z
        lcd_setstatuspgm( _T(ProgressCodeToText(ec)) );
   35740:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   35744:	0e 94 42 f2 	call	0x1e484	; 0x1e484 <lcd_setstatuspgm(char const*)>
   35748:	ed e6       	ldi	r30, 0x6D	; 109
   3574a:	f7 ea       	ldi	r31, 0xA7	; 167
};

const char *ProgressCodeToText(ProgressCode pc) {
    // @@TODO ?? a better fallback option?
    return ((uint16_t)pc <= (sizeof(progressTexts) / sizeof(progressTexts[0])))
        ? static_cast<const char *>(pgm_read_ptr(&progressTexts[(uint16_t)pc]))
   3574c:	0e 31       	cpi	r16, 0x1E	; 30
   3574e:	30 f4       	brcc	.+12     	; 0x3575c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8da>
   35750:	e0 2f       	mov	r30, r16
   35752:	f0 e0       	ldi	r31, 0x00	; 0
   35754:	ee 0f       	add	r30, r30
   35756:	ff 1f       	adc	r31, r31
   35758:	e3 59       	subi	r30, 0x93	; 147
   3575a:	f8 45       	sbci	r31, 0x58	; 88
        : static_cast<const char *>(pgm_read_ptr(&progressTexts[0]));
   3575c:	85 91       	lpm	r24, Z+
   3575e:	94 91       	lpm	r25, Z
        "MMU2 logging prefix mismatch, must be updated at various spots");
}

void MMU2::ReportProgress(ProgressCode pc) {
    ReportProgressHook((CommandInProgress)logic.CommandInProgress(), pc);
    LogEchoEvent_P(_O(ProgressCodeToText(pc)));
   35760:	02 96       	adiw	r24, 0x02	; 2
   35762:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
    }
}

void MMU2::OnMMUProgressMsgChanged(ProgressCode pc) {
    ReportProgress(pc);
    lastProgressCode = pc;
   35766:	00 93 b1 13 	sts	0x13B1, r16	; 0x8013b1 <MMU2::mmu2+0x66>
    switch (pc) {
   3576a:	03 30       	cpi	r16, 0x03	; 3
   3576c:	49 f0       	breq	.+18     	; 0x35780 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8fe>
   3576e:	0c 31       	cpi	r16, 0x1C	; 28
   35770:	09 f0       	breq	.+2      	; 0x35774 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x8f2>
   35772:	97 cf       	rjmp	.-210    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   35774:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        }
        break;
    case ProgressCode::FeedingToFSensor:
        // prepare for the movement of the E-motor
        planner_synchronize();
        loadFilamentStarted = true;
   35778:	81 e0       	ldi	r24, 0x01	; 1
   3577a:	80 93 bc 13 	sts	0x13BC, r24	; 0x8013bc <MMU2::mmu2+0x71>
   3577e:	91 cf       	rjmp	.-222    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
   35780:	80 91 4d 13 	lds	r24, 0x134D	; 0x80134d <MMU2::mmu2+0x2>
   35784:	84 30       	cpi	r24, 0x04	; 4
   35786:	31 f4       	brne	.+12     	; 0x35794 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x912>
    ReportProgress(pc);
    lastProgressCode = pc;
    switch (pc) {
    case ProgressCode::UnloadingToFinda:
        if ((CommandInProgress)logic.CommandInProgress() == CommandInProgress::UnloadFilament
            || ((CommandInProgress)logic.CommandInProgress() == CommandInProgress::ToolChange)) {
   35788:	80 91 50 13 	lds	r24, 0x1350	; 0x801350 <MMU2::mmu2+0x5>
   3578c:	84 55       	subi	r24, 0x54	; 84
   3578e:	82 30       	cpi	r24, 0x02	; 2
   35790:	08 f4       	brcc	.+2      	; 0x35794 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x912>
   35792:	87 cf       	rjmp	.-242    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
   35794:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
            // If printing is not in progress, ToolChange will issue a U0 command.
            break;
        } else {
            // We're likely recovering from an MMU error
            planner_synchronize();
            unloadFilamentStarted = true;
   35798:	81 e0       	ldi	r24, 0x01	; 1
   3579a:	80 93 bd 13 	sts	0x13BD, r24	; 0x8013bd <MMU2::mmu2+0x72>
        if (unloadFilamentStarted && !planner_any_moves()) { // Only plan a move if there is no move ongoing
            switch (WhereIsFilament()) {
            case FilamentState::AT_FSENSOR:
            case FilamentState::IN_NOZZLE:
            case FilamentState::UNAVAILABLE: // actually Unavailable makes sense as well to start the E-move to release the filament from the gears
                HelpUnloadToFinda();
   3579e:	0f 94 4e 6b 	call	0x2d69c	; 0x2d69c <MMU2::MMU2::HelpUnloadToFinda() [clone .constprop.203]>
   357a2:	7f cf       	rjmp	.-258    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
void __attribute__((noinline)) MMU2::HelpUnloadToFinda() {
    extruder_move(-MMU2_RETRY_UNLOAD_TO_FINDA_LENGTH, MMU2_RETRY_UNLOAD_TO_FINDA_FEED_RATE);
}

void MMU2::OnMMUProgressMsgSame(ProgressCode pc) {
    switch (pc) {
   357a4:	03 30       	cpi	r16, 0x03	; 3
   357a6:	71 f1       	breq	.+92     	; 0x35804 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x982>
   357a8:	0c 31       	cpi	r16, 0x1C	; 28
   357aa:	09 f0       	breq	.+2      	; 0x357ae <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x92c>
   357ac:	7a cf       	rjmp	.-268    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
                unloadFilamentStarted = false;
            }
        }
        break;
    case ProgressCode::FeedingToFSensor:
        if (loadFilamentStarted) {
   357ae:	80 91 bc 13 	lds	r24, 0x13BC	; 0x8013bc <MMU2::mmu2+0x71>
   357b2:	88 23       	and	r24, r24
   357b4:	09 f4       	brne	.+2      	; 0x357b8 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x936>
   357b6:	75 cf       	rjmp	.-278    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
            switch (WhereIsFilament()) {
   357b8:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   357bc:	88 23       	and	r24, r24
   357be:	b1 f1       	breq	.+108    	; 0x3582c <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9aa>
   357c0:	81 30       	cpi	r24, 0x01	; 1
   357c2:	09 f0       	breq	.+2      	; 0x357c6 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x944>
   357c4:	6e cf       	rjmp	.-292    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
            case FilamentState::AT_FSENSOR:
                // fsensor triggered, finish FeedingToExtruder state
                loadFilamentStarted = false;
   357c6:	10 92 bc 13 	sts	0x13BC, r1	; 0x8013bc <MMU2::mmu2+0x71>
float move_raise_z(float delta) {
    return raise_z(delta);
}

void planner_abort_queued_moves() {
    planner_abort_hard();
   357ca:	0f 94 02 c2 	call	0x38404	; 0x38404 <planner_abort_hard()>
    // Unblock the planner. This should be safe in the
    // toolchange context. Currently we are mainly aborting
    // excess E-moves after detecting filament during toolchange.
    // If a MMU error is reported, the planner must be unblocked
    // as well so the extruder can be parked safely.
    planner_aborted = false;
   357ce:	10 92 ac 0d 	sts	0x0DAC, r1	; 0x800dac <planner_aborted>
                planner_abort_queued_moves();
                {
                    extruder_move(logic.ExtraLoadDistance() + 2, logic.PulleySlowFeedRate());
   357d2:	60 91 98 13 	lds	r22, 0x1398	; 0x801398 <MMU2::mmu2+0x4d>
   357d6:	70 e0       	ldi	r23, 0x00	; 0
   357d8:	90 e0       	ldi	r25, 0x00	; 0
   357da:	80 e0       	ldi	r24, 0x00	; 0
   357dc:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   357e0:	6b 01       	movw	r12, r22
   357e2:	7c 01       	movw	r14, r24
   357e4:	60 91 97 13 	lds	r22, 0x1397	; 0x801397 <MMU2::mmu2+0x4c>
   357e8:	70 e0       	ldi	r23, 0x00	; 0
   357ea:	6e 5f       	subi	r22, 0xFE	; 254
   357ec:	7f 4f       	sbci	r23, 0xFF	; 255
   357ee:	07 2e       	mov	r0, r23
   357f0:	00 0c       	add	r0, r0
   357f2:	88 0b       	sbc	r24, r24
   357f4:	99 0b       	sbc	r25, r25
   357f6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   357fa:	a7 01       	movw	r20, r14
   357fc:	96 01       	movw	r18, r12
                    // Plan a very long move, where 'very long' is hundreds
                    // of millimeters. Keep in mind though the move can't be much longer
                    // than 450mm because the firmware will ignore too long extrusions
                    // for safety reasons. See PREVENT_LENGTHY_EXTRUDE.
                    // Use 350mm to be safely away from the prevention threshold
                    extruder_move(350.0f, logic.PulleySlowFeedRate());
   357fe:	0f 94 f0 c5 	call	0x38be0	; 0x38be0 <MMU2::extruder_move(float, float)>
   35802:	4f cf       	rjmp	.-354    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
}

void MMU2::OnMMUProgressMsgSame(ProgressCode pc) {
    switch (pc) {
    case ProgressCode::UnloadingToFinda:
        if (unloadFilamentStarted && !planner_any_moves()) { // Only plan a move if there is no move ongoing
   35804:	80 91 bd 13 	lds	r24, 0x13BD	; 0x8013bd <MMU2::mmu2+0x72>
   35808:	88 23       	and	r24, r24
   3580a:	09 f4       	brne	.+2      	; 0x3580e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x98c>
   3580c:	4a cf       	rjmp	.-364    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   3580e:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   35812:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   35816:	98 13       	cpse	r25, r24
   35818:	44 cf       	rjmp	.-376    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
            switch (WhereIsFilament()) {
   3581a:	0f 94 24 c6 	call	0x38c48	; 0x38c48 <MMU2::WhereIsFilament()>
   3581e:	81 50       	subi	r24, 0x01	; 1
   35820:	83 30       	cpi	r24, 0x03	; 3
   35822:	08 f4       	brcc	.+2      	; 0x35826 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9a4>
   35824:	bc cf       	rjmp	.-136    	; 0x3579e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x91c>
            case FilamentState::IN_NOZZLE:
            case FilamentState::UNAVAILABLE: // actually Unavailable makes sense as well to start the E-move to release the filament from the gears
                HelpUnloadToFinda();
                break;
            default:
                unloadFilamentStarted = false;
   35826:	10 92 bd 13 	sts	0x13BD, r1	; 0x8013bd <MMU2::mmu2+0x72>
   3582a:	3b cf       	rjmp	.-394    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
   3582c:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   35830:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
                    extruder_move(logic.ExtraLoadDistance() + 2, logic.PulleySlowFeedRate());
                }
                break;
            case FilamentState::NOT_PRESENT:
                // fsensor not triggered, continue moving extruder
                if (!planner_any_moves()) { // Only plan a move if there is no move ongoing
   35834:	98 13       	cpse	r25, r24
   35836:	35 cf       	rjmp	.-406    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
                    // Plan a very long move, where 'very long' is hundreds
                    // of millimeters. Keep in mind though the move can't be much longer
                    // than 450mm because the firmware will ignore too long extrusions
                    // for safety reasons. See PREVENT_LENGTHY_EXTRUDE.
                    // Use 350mm to be safely away from the prevention threshold
                    extruder_move(350.0f, logic.PulleySlowFeedRate());
   35838:	60 91 98 13 	lds	r22, 0x1398	; 0x801398 <MMU2::mmu2+0x4d>
   3583c:	70 e0       	ldi	r23, 0x00	; 0
   3583e:	90 e0       	ldi	r25, 0x00	; 0
   35840:	80 e0       	ldi	r24, 0x00	; 0
   35842:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   35846:	9b 01       	movw	r18, r22
   35848:	ac 01       	movw	r20, r24
   3584a:	60 e0       	ldi	r22, 0x00	; 0
   3584c:	70 e0       	ldi	r23, 0x00	; 0
   3584e:	8f ea       	ldi	r24, 0xAF	; 175
   35850:	93 e4       	ldi	r25, 0x43	; 67
   35852:	d5 cf       	rjmp	.-86     	; 0x357fe <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x97c>
        // can be silently handed over to a higher layer, no processing necessary at this spot
        break;

    default:
        if (reportErrors) {
            switch (ss) {
   35854:	18 30       	cpi	r17, 0x08	; 8
   35856:	b9 f0       	breq	.+46     	; 0x35886 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0xa04>
   35858:	19 30       	cpi	r17, 0x09	; 9
   3585a:	09 f0       	breq	.+2      	; 0x3585e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9dc>
   3585c:	22 cf       	rjmp	.-444    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
                StopKeepPowered();
                ReportError(ErrorCode::VERSION_MISMATCH, ErrorSourcePrinter);
                break;

            case PrinterError:
                ReportError(logic.PrinterError(), ErrorSourcePrinter);
   3585e:	60 e0       	ldi	r22, 0x00	; 0
   35860:	0f 94 30 84 	call	0x30860	; 0x30860 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]>
   35864:	19 e0       	ldi	r17, 0x09	; 9
   35866:	1d cf       	rjmp	.-454    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
    default:
        if (reportErrors) {
            switch (ss) {

            case CommandError:
                ReportError(logic.Error(), ErrorSourceMMU);
   35868:	61 e0       	ldi	r22, 0x01	; 1
   3586a:	80 91 8b 13 	lds	r24, 0x138B	; 0x80138b <MMU2::mmu2+0x40>
   3586e:	90 91 8c 13 	lds	r25, 0x138C	; 0x80138c <MMU2::mmu2+0x41>
                ReportError(ErrorCode::PROTOCOL_ERROR, ErrorSourcePrinter);
                break;

            case VersionMismatch:
                StopKeepPowered();
                ReportError(ErrorCode::VERSION_MISMATCH, ErrorSourcePrinter);
   35872:	0f 94 30 84 	call	0x30860	; 0x30860 <MMU2::MMU2::ReportError(ErrorCode, MMU2::MMU2::ErrorSource) [clone .constprop.201]>
   35876:	15 cf       	rjmp	.-470    	; 0x356a2 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x820>
            case CommandError:
                ReportError(logic.Error(), ErrorSourceMMU);
                break;

            case CommunicationTimeout:
                state = xState::Connecting;
   35878:	82 e0       	ldi	r24, 0x02	; 2
   3587a:	80 93 ba 13 	sts	0x13BA, r24	; 0x8013ba <MMU2::mmu2+0x6f>
                ReportError(ErrorCode::MMU_NOT_RESPONDING, ErrorSourcePrinter);
   3587e:	60 e0       	ldi	r22, 0x00	; 0
   35880:	8e e2       	ldi	r24, 0x2E	; 46
   35882:	90 e8       	ldi	r25, 0x80	; 128
   35884:	f6 cf       	rjmp	.-20     	; 0x35872 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9f0>
    StopKeepPowered();
    PowerOff();
}

void MMU2::StopKeepPowered() {
    state = xState::Stopped;
   35886:	10 92 ba 13 	sts	0x13BA, r1	; 0x8013ba <MMU2::mmu2+0x6f>
    protocol.ResetResponseDecoder(); // important - finished delayed restart relies on this
    StartSeqRestart();
}

void ProtocolLogic::Stop() {
    state = State::Stopped;
   3588a:	10 92 68 13 	sts	0x1368, r1	; 0x801368 <MMU2::mmu2+0x1d>
    currentScope = Scope::Stopped;
   3588e:	10 92 4d 13 	sts	0x134D, r1	; 0x80134d <MMU2::mmu2+0x2>
                ReportError(ErrorCode::PROTOCOL_ERROR, ErrorSourcePrinter);
                break;

            case VersionMismatch:
                StopKeepPowered();
                ReportError(ErrorCode::VERSION_MISMATCH, ErrorSourcePrinter);
   35892:	60 e0       	ldi	r22, 0x00	; 0
   35894:	8c e2       	ldi	r24, 0x2C	; 44
   35896:	90 e8       	ldi	r25, 0x80	; 128
   35898:	ec cf       	rjmp	.-40     	; 0x35872 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9f0>
                break;
            }
        }
            [[fallthrough]]; // otherwise
        default:
            RecordUARTActivity(); // something has happened on the UART, update the timeout record
   3589a:	0f 94 d8 66 	call	0x2cdb0	; 0x2cdb0 <MMU2::ProtocolLogic::RecordUARTActivity() [clone .constprop.339]>
   3589e:	aa cd       	rjmp	.-1196   	; 0x353f4 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x572>
    case Interrupted:
        // can be silently handed over to a higher layer, no processing necessary at this spot
        break;

    default:
        if (reportErrors) {
   358a0:	00 23       	and	r16, r16
   358a2:	01 f3       	breq	.-64     	; 0x35864 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9e2>
   358a4:	dc cf       	rjmp	.-72     	; 0x3585e <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]+0x9dc>

000358a6 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]>:
        }
    }
}

void MMU2::ResumeHotendTemp() {
    if ((mmu_print_saved & SavedState::CooldownPending)) {
   358a6:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   358aa:	82 ff       	sbrs	r24, 2
   358ac:	07 c0       	rjmp	.+14     	; 0x358bc <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0x16>
        // Clear the "pending" flag if we haven't cooled yet.
        mmu_print_saved &= ~(SavedState::CooldownPending);
   358ae:	8b 7f       	andi	r24, 0xFB	; 251
   358b0:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
        LogEchoEvent_P(PSTR("Cooldown flag cleared"));
   358b4:	8b ef       	ldi	r24, 0xFB	; 251
   358b6:	98 ea       	ldi	r25, 0xA8	; 168
   358b8:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
    }
    if ((mmu_print_saved & SavedState::Cooldown) && resume_hotend_temp) {
   358bc:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   358c0:	81 ff       	sbrs	r24, 1
   358c2:	52 c0       	rjmp	.+164    	; 0x35968 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0xc2>
   358c4:	80 91 af 13 	lds	r24, 0x13AF	; 0x8013af <MMU2::mmu2+0x64>
   358c8:	90 91 b0 13 	lds	r25, 0x13B0	; 0x8013b0 <MMU2::mmu2+0x65>
   358cc:	89 2b       	or	r24, r25
   358ce:	09 f4       	brne	.+2      	; 0x358d2 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0x2c>
   358d0:	4b c0       	rjmp	.+150    	; 0x35968 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0xc2>
        LogEchoEvent_P(PSTR("Resuming Temp"));
   358d2:	8d ee       	ldi	r24, 0xED	; 237
   358d4:	98 ea       	ldi	r25, 0xA8	; 168
   358d6:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
        // @@TODO MMU2_ECHO_MSGRPGM(PSTR("Restoring hotend temperature "));
        SERIAL_ECHOLN(resume_hotend_temp);
   358da:	80 91 af 13 	lds	r24, 0x13AF	; 0x8013af <MMU2::mmu2+0x64>
   358de:	90 91 b0 13 	lds	r25, 0x13B0	; 0x8013b0 <MMU2::mmu2+0x65>
   358e2:	0f 94 37 76 	call	0x2ec6e	; 0x2ec6e <MarlinSerial::println(int, int) [clone .constprop.325]>
        mmu_print_saved &= ~(SavedState::Cooldown);
   358e6:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   358ea:	8d 7f       	andi	r24, 0xFD	; 253
   358ec:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
  return target_temperature_bed;
};

// Doesn't save FLASH when FORCE_INLINE removed.
FORCE_INLINE void setTargetHotend(const float &celsius) {
  target_temperature[0] = celsius;
   358f0:	80 91 af 13 	lds	r24, 0x13AF	; 0x8013af <MMU2::mmu2+0x64>
   358f4:	90 91 b0 13 	lds	r25, 0x13B0	; 0x8013b0 <MMU2::mmu2+0x65>
   358f8:	90 93 b7 0d 	sts	0x0DB7, r25	; 0x800db7 <target_temperature+0x1>
   358fc:	80 93 b6 0d 	sts	0x0DB6, r24	; 0x800db6 <target_temperature>
void FullScreenMsgLoad(uint8_t slot){
    FullScreenMsg(_T(MSG_LOADING_FILAMENT), slot);
}

void FullScreenMsgRestoringTemperature(){
    lcd_display_message_fullscreen_P(_T(MSG_MMU_RESTORE_TEMP));
   35900:	88 e8       	ldi	r24, 0x88	; 136
   35902:	9b e5       	ldi	r25, 0x5B	; 91
   35904:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   35908:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
    lcd_show_choices_prompt_P(two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE, _T(PrusaErrorButtonTitle(button_op_middle)), two_choices ? PrusaErrorButtonMore() : _T(PrusaErrorButtonTitle(button_op_right)), two_choices ? 18 : 9, two_choices ? nullptr : PrusaErrorButtonMore());
}

void ReportErrorHookSensorLineRender(){
    // Render static characters in third line
    lcd_puts_at_P(0, 2, PSTR("FI:  FS:    >  " LCD_STR_THERMOMETER "   " LCD_STR_DEGREE));
   3590c:	4d eb       	ldi	r20, 0xBD	; 189
   3590e:	58 ea       	ldi	r21, 0xA8	; 168
   35910:	62 e0       	ldi	r22, 0x02	; 2
   35912:	80 e0       	ldi	r24, 0x00	; 0
   35914:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
int16_t thermal_degTargetHotend() {
    return degTargetHotend(0);
}

int16_t thermal_degHotend() {
    return degHotend(0);
   35918:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   3591c:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   35920:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   35924:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   35928:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>

namespace MMU2 {

template <typename F>
void waitForHotendTargetTemp(uint16_t delay, F f) {
    while (((thermal_degTargetHotend() - thermal_degHotend()) > 5)) {
   3592c:	20 91 b6 0d 	lds	r18, 0x0DB6	; 0x800db6 <target_temperature>
   35930:	30 91 b7 0d 	lds	r19, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   35934:	c9 01       	movw	r24, r18
   35936:	86 1b       	sub	r24, r22
   35938:	97 0b       	sbc	r25, r23
   3593a:	06 97       	sbiw	r24, 0x06	; 6
   3593c:	6c f0       	brlt	.+26     	; 0x35958 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0xb2>
void marlin_manage_heater() {
    manage_heater();
}

void marlin_manage_inactivity(bool ignore_stepper_queue) {
    manage_inactivity(ignore_stepper_queue);
   3593e:	81 e0       	ldi	r24, 0x01	; 1
   35940:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
        FullScreenMsgRestoringTemperature();
        //@todo better report the event and let the GUI do its work somewhere else
        ReportErrorHookSensorLineRender();
        waitForHotendTargetTemp(100, [] {
            marlin_manage_inactivity(true);
            mmu2.mmu_loop_inner(false);
   35944:	80 e0       	ldi	r24, 0x00	; 0
   35946:	0f 94 41 a7 	call	0x34e82	; 0x34e82 <MMU2::MMU2::mmu_loop_inner(bool) [clone .constprop.198]>
            ReportErrorHookDynamicRender();
   3594a:	0f 94 35 c5 	call	0x38a6a	; 0x38a6a <MMU2::ReportErrorHookDynamicRender()>
void thermal_setTargetHotend(int16_t t) {
    setTargetHotend(t);
}

void safe_delay_keep_alive(uint16_t t) {
    delay_keep_alive(t);
   3594e:	84 e6       	ldi	r24, 0x64	; 100
   35950:	90 e0       	ldi	r25, 0x00	; 0
   35952:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   35956:	e0 cf       	rjmp	.-64     	; 0x35918 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]+0x72>
        });
        ScreenUpdateEnable(); // temporary hack to stop this locking the printer...
   35958:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
        LogEchoEvent_P(PSTR("Hotend temperature reached"));
   3595c:	82 ed       	ldi	r24, 0xD2	; 210
   3595e:	98 ea       	ldi	r25, 0xA8	; 168
   35960:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
void ScreenUpdateEnable(){
    lcd_update_enable(true);
}

void ScreenClear(){
    lcd_clear();
   35964:	0c 94 9a 6e 	jmp	0xdd34	; 0xdd34 <lcd_clear()>
        ScreenClear();
    }
}
   35968:	08 95       	ret

0003596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>:
/// just to verify the result of an issued command (which was basically the original idea)
///
/// It is closely related to mmu_loop() (which corresponds to our ProtocolLogic::Step()), which does NOT perform any blocking wait for a command to finish.
/// But - in case of an error, the command is not yet finished, but we must react accordingly - move the printhead elsewhere, stop heating, eat a cat or so.
/// That's what's being done here...
bool MMU2::manage_response(const bool move_axes, const bool turn_off_nozzle) {
   3596a:	0f 93       	push	r16
   3596c:	1f 93       	push	r17
   3596e:	cf 93       	push	r28
   35970:	df 93       	push	r29
   35972:	00 d0       	rcall	.+0      	; 0x35974 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xa>
   35974:	1f 92       	push	r1
   35976:	1f 92       	push	r1
   35978:	cd b7       	in	r28, 0x3d	; 61
   3597a:	de b7       	in	r29, 0x3e	; 62
   3597c:	18 2f       	mov	r17, r24
   3597e:	06 2f       	mov	r16, r22
    mmu_print_saved = SavedState::None;
   35980:	10 92 bb 13 	sts	0x13BB, r1	; 0x8013bb <MMU2::mmu2+0x70>

    MARLIN_KEEPALIVE_STATE_IN_PROCESS;
   35984:	83 e0       	ldi	r24, 0x03	; 3
   35986:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>

    LongTimer nozzleTimeout;
   3598a:	19 82       	std	Y+1, r1	; 0x01
   3598c:	1a 82       	std	Y+2, r1	; 0x02
   3598e:	1b 82       	std	Y+3, r1	; 0x03
   35990:	1c 82       	std	Y+4, r1	; 0x04
   35992:	1d 82       	std	Y+5, r1	; 0x05
   35994:	90 e0       	ldi	r25, 0x00	; 0
   35996:	80 e0       	ldi	r24, 0x00	; 0
   35998:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
        // - failed -> then do the safety moves on the printer like before
        // - finished ok -> proceed with reading other commands
        safe_delay_keep_alive(0); // calls LogicStep() and remembers its return status
                                 // also disables stepper motor unlocking

        if (mmu_print_saved & SavedState::CooldownPending) {
   3599c:	90 91 bb 13 	lds	r25, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   359a0:	89 81       	ldd	r24, Y+1	; 0x01
   359a2:	92 ff       	sbrs	r25, 2
   359a4:	37 c0       	rjmp	.+110    	; 0x35a14 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xaa>
            if (!nozzleTimeout.running()) {
   359a6:	81 11       	cpse	r24, r1
   359a8:	1e c0       	rjmp	.+60     	; 0x359e6 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x7c>
                nozzleTimeout.start();
   359aa:	ce 01       	movw	r24, r28
   359ac:	01 96       	adiw	r24, 0x01	; 1
   359ae:	0f 94 fb 2c 	call	0x259f6	; 0x259f6 <Timer<unsigned long>::start()>
                LogEchoEvent_P(PSTR("Cooling Timeout started"));
   359b2:	87 ee       	ldi	r24, 0xE7	; 231
   359b4:	96 ea       	ldi	r25, 0xA6	; 166
                thermal_setTargetHotend(0);
                LogEchoEvent_P(PSTR("Heater cooldown"));
            }
        } else if (nozzleTimeout.running()) {
            nozzleTimeout.stop();
            LogEchoEvent_P(PSTR("Cooling timer stopped"));
   359b6:	0f 94 14 c6 	call	0x38c28	; 0x38c28 <MMU2::LogEchoEvent_P(char const*)>
        }

        switch (logicStepLastStatus) {
   359ba:	e0 91 b9 13 	lds	r30, 0x13B9	; 0x8013b9 <MMU2::mmu2+0x6e>
   359be:	e2 50       	subi	r30, 0x02	; 2
   359c0:	ea 30       	cpi	r30, 0x0A	; 10
   359c2:	40 f7       	brcc	.-48     	; 0x35994 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x2a>
   359c4:	f0 e0       	ldi	r31, 0x00	; 0
   359c6:	88 27       	eor	r24, r24
   359c8:	e7 51       	subi	r30, 0x17	; 23
   359ca:	f3 45       	sbci	r31, 0x53	; 83
   359cc:	8e 4f       	sbci	r24, 0xFE	; 254
   359ce:	0d 94 6b dd 	jmp	0x3bad6	; 0x3bad6 <__tablejump2__>
   359d2:	8c 39       	cpi	r24, 0x9C	; 156
   359d4:	f6 38       	cpi	r31, 0x86	; 134
   359d6:	a6 39       	cpi	r26, 0x96	; 150
   359d8:	a6 39       	cpi	r26, 0x96	; 150
   359da:	34 3a       	cpi	r19, 0xA4	; 164
   359dc:	a6 39       	cpi	r26, 0x96	; 150
   359de:	ea 39       	cpi	r30, 0x9A	; 154
   359e0:	6a 3a       	cpi	r22, 0xAA	; 170
   359e2:	32 3a       	cpi	r19, 0xA2	; 162
   359e4:	a6 39       	cpi	r26, 0x96	; 150

        if (mmu_print_saved & SavedState::CooldownPending) {
            if (!nozzleTimeout.running()) {
                nozzleTimeout.start();
                LogEchoEvent_P(PSTR("Cooling Timeout started"));
            } else if (nozzleTimeout.expired(DEFAULT_SAFETYTIMER_TIME_MINS * 60 * 1000ul)) { // mins->msec.
   359e6:	40 e4       	ldi	r20, 0x40	; 64
   359e8:	57 e7       	ldi	r21, 0x77	; 119
   359ea:	6b e1       	ldi	r22, 0x1B	; 27
   359ec:	70 e0       	ldi	r23, 0x00	; 0
   359ee:	ce 01       	movw	r24, r28
   359f0:	01 96       	adiw	r24, 0x01	; 1
   359f2:	0f 94 3c 2b 	call	0x25678	; 0x25678 <Timer<unsigned long>::expired(unsigned long)>
   359f6:	88 23       	and	r24, r24
   359f8:	01 f3       	breq	.-64     	; 0x359ba <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x50>
                mmu_print_saved &= ~(SavedState::CooldownPending);
   359fa:	80 91 bb 13 	lds	r24, 0x13BB	; 0x8013bb <MMU2::mmu2+0x70>
   359fe:	8b 7f       	andi	r24, 0xFB	; 251
                mmu_print_saved |= SavedState::Cooldown;
   35a00:	82 60       	ori	r24, 0x02	; 2
   35a02:	80 93 bb 13 	sts	0x13BB, r24	; 0x8013bb <MMU2::mmu2+0x70>
   35a06:	10 92 b7 0d 	sts	0x0DB7, r1	; 0x800db7 <target_temperature+0x1>
   35a0a:	10 92 b6 0d 	sts	0x0DB6, r1	; 0x800db6 <target_temperature>
                thermal_setTargetHotend(0);
                LogEchoEvent_P(PSTR("Heater cooldown"));
   35a0e:	87 ed       	ldi	r24, 0xD7	; 215
   35a10:	96 ea       	ldi	r25, 0xA6	; 166
   35a12:	d1 cf       	rjmp	.-94     	; 0x359b6 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x4c>
            }
        } else if (nozzleTimeout.running()) {
   35a14:	88 23       	and	r24, r24
   35a16:	89 f2       	breq	.-94     	; 0x359ba <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x50>
   35a18:	19 82       	std	Y+1, r1	; 0x01
            nozzleTimeout.stop();
            LogEchoEvent_P(PSTR("Cooling timer stopped"));
   35a1a:	81 ec       	ldi	r24, 0xC1	; 193
   35a1c:	96 ea       	ldi	r25, 0xA6	; 166
   35a1e:	cb cf       	rjmp	.-106    	; 0x359b6 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x4c>

        switch (logicStepLastStatus) {
        case Finished:
            // command/operation completed, let Marlin continue its work
            // the E may have some more moves to finish - wait for them
            ResumeHotendTemp();
   35a20:	0f 94 53 ac 	call	0x358a6	; 0x358a6 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]>
            ResumeUnpark(); // We can now travel back to the tower or wherever we were when we saved.
   35a24:	0f 94 74 6b 	call	0x2d6e8	; 0x2d6e8 <MMU2::MMU2::ResumeUnpark() [clone .constprop.144]>
            if (!TuneMenuEntered()) {
   35a28:	80 91 ad 0d 	lds	r24, 0x0DAD	; 0x800dad <_ZN4MMU2L21putErrorScreenToSleepE.lto_priv.498>
   35a2c:	81 11       	cpse	r24, r1
   35a2e:	07 c0       	rjmp	.+14     	; 0x35a3e <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xd4>
        retryAttempts--;
    }
}

void ProtocolLogic::ResetRetryAttempts() {
    SERIAL_ECHOLNPGM("ResetRetryAttempts");
   35a30:	8e ea       	ldi	r24, 0xAE	; 174
   35a32:	96 ea       	ldi	r25, 0xA6	; 166
   35a34:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    retryAttempts = MAX_RETRIES;
   35a38:	83 e0       	ldi	r24, 0x03	; 3
   35a3a:	80 93 9f 13 	sts	0x139F, r24	; 0x80139f <MMU2::mmu2+0x54>
bool planner_draining() {
    return planner_aborted;
}

void planner_synchronize() {
    st_synchronize();
   35a3e:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        case Interrupted:
            // now what :D ... big bad ... ramming, unload, retry the whole command originally issued
            return false;
        case VersionMismatch: // this basically means the MMU will be disabled until reconnected
            CheckUserInput();
            return true;
   35a42:	81 e0       	ldi	r24, 0x01	; 1
        case Processing: // wait for the MMU to respond
        default:
            break;
        }
    }
}
   35a44:	0f 90       	pop	r0
   35a46:	0f 90       	pop	r0
   35a48:	0f 90       	pop	r0
   35a4a:	0f 90       	pop	r0
   35a4c:	0f 90       	pop	r0
   35a4e:	df 91       	pop	r29
   35a50:	cf 91       	pop	r28
   35a52:	1f 91       	pop	r17
   35a54:	0f 91       	pop	r16
   35a56:	08 95       	ret
            return true;
        case Interrupted:
            // now what :D ... big bad ... ramming, unload, retry the whole command originally issued
            return false;
        case VersionMismatch: // this basically means the MMU will be disabled until reconnected
            CheckUserInput();
   35a58:	0f 94 88 a6 	call	0x34d10	; 0x34d10 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]>
   35a5c:	f2 cf       	rjmp	.-28     	; 0x35a42 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xd8>
            break;
        case CommandError:
        case CommunicationTimeout:
        case ProtocolError:
        case ButtonPushed:
            if (!logic.InAutoRetry()) {
   35a5e:	80 91 a0 13 	lds	r24, 0x13A0	; 0x8013a0 <MMU2::mmu2+0x55>
   35a62:	81 11       	cpse	r24, r1
   35a64:	97 cf       	rjmp	.-210    	; 0x35994 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x2a>
                // Don't proceed to the park/save if we are doing an autoretry.
                SaveAndPark(move_axes);
   35a66:	81 2f       	mov	r24, r17
   35a68:	0f 94 c0 6b 	call	0x2d780	; 0x2d780 <MMU2::MMU2::SaveAndPark(bool) [clone .constprop.136]>
                SaveHotendTemp(turn_off_nozzle);
   35a6c:	80 2f       	mov	r24, r16
   35a6e:	0f 94 58 6b 	call	0x2d6b0	; 0x2d6b0 <MMU2::MMU2::SaveHotendTemp(bool) [clone .constprop.142]>
                CheckUserInput();
   35a72:	0f 94 88 a6 	call	0x34d10	; 0x34d10 <MMU2::MMU2::CheckUserInput() [clone .constprop.202]>
   35a76:	8e cf       	rjmp	.-228    	; 0x35994 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x2a>
            }
            break;
        case CommunicationRecovered: // @@TODO communication recovered and may be an error recovered as well
            // may be the logic layer can detect the change of state a respond with one "Recovered" to be handled here
            ResumeHotendTemp();
   35a78:	0f 94 53 ac 	call	0x358a6	; 0x358a6 <MMU2::MMU2::ResumeHotendTemp() [clone .constprop.204]>
            ResumeUnpark();
   35a7c:	0f 94 74 6b 	call	0x2d6e8	; 0x2d6e8 <MMU2::MMU2::ResumeUnpark() [clone .constprop.144]>
   35a80:	89 cf       	rjmp	.-238    	; 0x35994 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0x2a>
            }
            planner_synchronize();
            return true;
        case Interrupted:
            // now what :D ... big bad ... ramming, unload, retry the whole command originally issued
            return false;
   35a82:	80 e0       	ldi	r24, 0x00	; 0
   35a84:	df cf       	rjmp	.-66     	; 0x35a44 <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]+0xda>

00035a86 <MMU2::MMU2::UnloadInner() [clone .constprop.130]>:
    } // true, true); -- Comment: how is it possible for a filament type set to fail?

    return true;
}

void MMU2::UnloadInner() {
   35a86:	cf 93       	push	r28
   35a88:	df 93       	push	r29
   35a8a:	00 d0       	rcall	.+0      	; 0x35a8c <MMU2::MMU2::UnloadInner() [clone .constprop.130]+0x6>
   35a8c:	1f 92       	push	r1
   35a8e:	1f 92       	push	r1
   35a90:	cd b7       	in	r28, 0x3d	; 61
   35a92:	de b7       	in	r29, 0x3e	; 62
    FSensorBlockRunout blockRunout;
   35a94:	0f 94 f0 87 	call	0x30fe0	; 0x30fe0 <FSensorBlockRunout::FSensorBlockRunout() [clone .constprop.163]>

    return ss;
}

void MMU2::filament_ramming() {
    execute_extruder_sequence(ramming_sequence, sizeof(ramming_sequence) / sizeof(E_Step));
   35a98:	62 e1       	ldi	r22, 0x12	; 18
   35a9a:	8e e1       	ldi	r24, 0x1E	; 30
   35a9c:	96 ea       	ldi	r25, 0xA6	; 166
   35a9e:	0f 94 9a 88 	call	0x31134	; 0x31134 <MMU2::MMU2::execute_extruder_sequence(E_Step const*, unsigned char) [clone .constprop.132]>
    filament_ramming();

    // we assume the printer managed to relieve filament tip from the gears,
    // so repeating that part in case of an MMU restart is not necessary
    for (;;) {
        Disable_E0();
   35aa2:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
void ProtocolLogic::Statistics() {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Version, 3));
}

void ProtocolLogic::UnloadFilament() {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Unload, 0));
   35aa6:	40 e0       	ldi	r20, 0x00	; 0
   35aa8:	65 e5       	ldi	r22, 0x55	; 85
   35aaa:	ce 01       	movw	r24, r28
   35aac:	01 96       	adiw	r24, 0x01	; 1
   35aae:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   35ab2:	49 81       	ldd	r20, Y+1	; 0x01
   35ab4:	5a 81       	ldd	r21, Y+2	; 0x02
   35ab6:	6b 81       	ldd	r22, Y+3	; 0x03
   35ab8:	7c 81       	ldd	r23, Y+4	; 0x04
   35aba:	8d 81       	ldd	r24, Y+5	; 0x05
   35abc:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
        logic.UnloadFilament();
        if (manage_response(false, true)) {
   35ac0:	61 e0       	ldi	r22, 0x01	; 1
   35ac2:	80 e0       	ldi	r24, 0x00	; 0
   35ac4:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   35ac8:	81 11       	cpse	r24, r1
   35aca:	03 c0       	rjmp	.+6      	; 0x35ad2 <MMU2::MMU2::UnloadInner() [clone .constprop.130]+0x4c>
            break;
        }
        IncrementMMUFails();
   35acc:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>
   35ad0:	e8 cf       	rjmp	.-48     	; 0x35aa2 <MMU2::MMU2::UnloadInner() [clone .constprop.130]+0x1c>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   35ad2:	83 e0       	ldi	r24, 0x03	; 3
   35ad4:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
    }
    MakeSound(Confirm);

    // no active tool
    SetCurrentTool(MMU2_NO_TOOL);
   35ad8:	83 e6       	ldi	r24, 0x63	; 99
   35ada:	0f 94 42 88 	call	0x31084	; 0x31084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>
    tool_change_extruder = MMU2_NO_TOOL;
   35ade:	83 e6       	ldi	r24, 0x63	; 99
   35ae0:	80 93 a2 13 	sts	0x13A2, r24	; 0x8013a2 <MMU2::mmu2+0x57>

FSensorBlockRunout::~FSensorBlockRunout() {
    fsensor.settings_init(); // restore filament runout state.
   35ae4:	0f 94 34 7c 	call	0x2f868	; 0x2f868 <PAT9125_sensor::settings_init() [clone .constprop.231]>
}
   35ae8:	0f 90       	pop	r0
   35aea:	0f 90       	pop	r0
   35aec:	0f 90       	pop	r0
   35aee:	0f 90       	pop	r0
   35af0:	0f 90       	pop	r0
   35af2:	df 91       	pop	r29
   35af4:	cf 91       	pop	r28
   35af6:	08 95       	ret

00035af8 <MMU2::MMU2::unload() [clone .constprop.126]>:

bool MMU2::unload() {
   35af8:	cf 93       	push	r28
    if (!WaitForMMUReady()) {
   35afa:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   35afe:	c8 2f       	mov	r28, r24
   35b00:	88 23       	and	r24, r24
   35b02:	79 f0       	breq	.+30     	; 0x35b22 <MMU2::MMU2::unload() [clone .constprop.126]+0x2a>
        safe_delay_keep_alive(delay);
    }
}

void WaitForHotendTargetTempBeep() {
    waitForHotendTargetTemp(200, [] {});
   35b04:	88 ec       	ldi	r24, 0xC8	; 200
   35b06:	90 e0       	ldi	r25, 0x00	; 0
   35b08:	0f 94 72 c9 	call	0x392e4	; 0x392e4 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]>
   35b0c:	82 e0       	ldi	r24, 0x02	; 2
   35b0e:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   35b12:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>

    WaitForHotendTargetTempBeep();

    {
        ReportingRAII rep(CommandInProgress::UnloadFilament);
        UnloadInner();
   35b16:	0f 94 43 ad 	call	0x35a86	; 0x35a86 <MMU2::MMU2::UnloadInner() [clone .constprop.130]>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   35b1a:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>
    {
        ReportingRAII rep(CommandInProgress::UnloadFilament);
        UnloadInner();
    }

    ScreenUpdateEnable();
   35b1e:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    return true;
}
   35b22:	8c 2f       	mov	r24, r28
   35b24:	cf 91       	pop	r28
   35b26:	08 95       	ret

00035b28 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]>:
    unload();
    ScreenUpdateEnable();
    return true;
}

bool MMU2::load_filament(uint8_t slot) {
   35b28:	0f 93       	push	r16
   35b2a:	1f 93       	push	r17
   35b2c:	cf 93       	push	r28
   35b2e:	df 93       	push	r29
   35b30:	00 d0       	rcall	.+0      	; 0x35b32 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]+0xa>
   35b32:	1f 92       	push	r1
   35b34:	1f 92       	push	r1
   35b36:	cd b7       	in	r28, 0x3d	; 61
   35b38:	de b7       	in	r29, 0x3e	; 62
   35b3a:	08 2f       	mov	r16, r24
    if (!WaitForMMUReady()) {
   35b3c:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   35b40:	18 2f       	mov	r17, r24
   35b42:	88 23       	and	r24, r24
   35b44:	49 f1       	breq	.+82     	; 0x35b98 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]+0x70>
void FullScreenMsgTest(uint8_t slot){
    FullScreenMsg(_T(MSG_TESTING_FILAMENT), slot);
}

void FullScreenMsgLoad(uint8_t slot){
    FullScreenMsg(_T(MSG_LOADING_FILAMENT), slot);
   35b46:	85 e7       	ldi	r24, 0x75	; 117
   35b48:	9b e5       	ldi	r25, 0x5B	; 91
   35b4a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   35b4e:	60 2f       	mov	r22, r16
   35b50:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   35b54:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>

    FullScreenMsgLoad(slot);
    {
        ReportingRAII rep(CommandInProgress::LoadFilament);
        for (;;) {
            Disable_E0();
   35b58:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
}

void ProtocolLogic::LoadFilament(uint8_t slot) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Load, slot));
   35b5c:	40 2f       	mov	r20, r16
   35b5e:	6c e4       	ldi	r22, 0x4C	; 76
   35b60:	ce 01       	movw	r24, r28
   35b62:	01 96       	adiw	r24, 0x01	; 1
   35b64:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   35b68:	49 81       	ldd	r20, Y+1	; 0x01
   35b6a:	5a 81       	ldd	r21, Y+2	; 0x02
   35b6c:	6b 81       	ldd	r22, Y+3	; 0x03
   35b6e:	7c 81       	ldd	r23, Y+4	; 0x04
   35b70:	8d 81       	ldd	r24, Y+5	; 0x05
   35b72:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
            logic.LoadFilament(slot);
            if (manage_response(false, false)) {
   35b76:	60 e0       	ldi	r22, 0x00	; 0
   35b78:	80 e0       	ldi	r24, 0x00	; 0
   35b7a:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   35b7e:	18 2f       	mov	r17, r24
   35b80:	81 11       	cpse	r24, r1
   35b82:	03 c0       	rjmp	.+6      	; 0x35b8a <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]+0x62>
                break;
            }
            IncrementMMUFails();
   35b84:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>
   35b88:	e7 cf       	rjmp	.-50     	; 0x35b58 <MMU2::MMU2::load_filament(unsigned char) [clone .constprop.123]+0x30>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   35b8a:	83 e0       	ldi	r24, 0x03	; 3
   35b8c:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   35b90:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>
            }
            IncrementMMUFails();
        }
        MakeSound(SoundType::Confirm);
    }
    ScreenUpdateEnable();
   35b94:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    return true;
}
   35b98:	81 2f       	mov	r24, r17
   35b9a:	0f 90       	pop	r0
   35b9c:	0f 90       	pop	r0
   35b9e:	0f 90       	pop	r0
   35ba0:	0f 90       	pop	r0
   35ba2:	0f 90       	pop	r0
   35ba4:	df 91       	pop	r29
   35ba6:	cf 91       	pop	r28
   35ba8:	1f 91       	pop	r17
   35baa:	0f 91       	pop	r16
   35bac:	08 95       	ret

00035bae <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]>:
    }
    ScreenUpdateEnable();
    return true;
}

bool MMU2::eject_filament(uint8_t slot, bool enableFullScreenMsg /* = true */) {
   35bae:	ff 92       	push	r15
   35bb0:	0f 93       	push	r16
   35bb2:	1f 93       	push	r17
   35bb4:	cf 93       	push	r28
   35bb6:	df 93       	push	r29
   35bb8:	00 d0       	rcall	.+0      	; 0x35bba <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]+0xc>
   35bba:	1f 92       	push	r1
   35bbc:	1f 92       	push	r1
   35bbe:	cd b7       	in	r28, 0x3d	; 61
   35bc0:	de b7       	in	r29, 0x3e	; 62
   35bc2:	08 2f       	mov	r16, r24
   35bc4:	f6 2e       	mov	r15, r22
    if (!WaitForMMUReady()) {
   35bc6:	0f 94 c3 88 	call	0x31186	; 0x31186 <MMU2::MMU2::WaitForMMUReady() [clone .constprop.127]>
   35bca:	18 2f       	mov	r17, r24
   35bcc:	88 23       	and	r24, r24
   35bce:	b1 f1       	breq	.+108    	; 0x35c3c <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]+0x8e>
        return false;
    }

    if (enableFullScreenMsg) {
   35bd0:	ff 20       	and	r15, r15
   35bd2:	39 f0       	breq	.+14     	; 0x35be2 <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]+0x34>
void FullScreenMsgCut(uint8_t slot){
    FullScreenMsg(_T(MSG_CUT_FILAMENT), slot);
}

void FullScreenMsgEject(uint8_t slot){
    FullScreenMsg(_T(MSG_EJECT_FROM_MMU), slot);
   35bd4:	84 e6       	ldi	r24, 0x64	; 100
   35bd6:	9b e5       	ldi	r25, 0x5B	; 91
   35bd8:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   35bdc:	60 2f       	mov	r22, r16
   35bde:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>
        FullScreenMsgEject(slot);
    }
    {
        if (FindaDetectsFilament()) {
   35be2:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   35be6:	81 11       	cpse	r24, r1
            unload();
   35be8:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   35bec:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>
            unload();
        }

        ReportingRAII rep(CommandInProgress::EjectFilament);
        for (;;) {
            Disable_E0();
   35bf0:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
}

void ProtocolLogic::EjectFilament(uint8_t slot) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Eject, slot));
   35bf4:	40 2f       	mov	r20, r16
   35bf6:	65 e4       	ldi	r22, 0x45	; 69
   35bf8:	ce 01       	movw	r24, r28
   35bfa:	01 96       	adiw	r24, 0x01	; 1
   35bfc:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   35c00:	49 81       	ldd	r20, Y+1	; 0x01
   35c02:	5a 81       	ldd	r21, Y+2	; 0x02
   35c04:	6b 81       	ldd	r22, Y+3	; 0x03
   35c06:	7c 81       	ldd	r23, Y+4	; 0x04
   35c08:	8d 81       	ldd	r24, Y+5	; 0x05
   35c0a:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
            logic.EjectFilament(slot);
            if (manage_response(false, true)) {
   35c0e:	61 e0       	ldi	r22, 0x01	; 1
   35c10:	80 e0       	ldi	r24, 0x00	; 0
   35c12:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   35c16:	18 2f       	mov	r17, r24
   35c18:	81 11       	cpse	r24, r1
   35c1a:	03 c0       	rjmp	.+6      	; 0x35c22 <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]+0x74>
                break;
            }
            IncrementMMUFails();
   35c1c:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>
   35c20:	e7 cf       	rjmp	.-50     	; 0x35bf0 <MMU2::MMU2::eject_filament(unsigned char, bool) [clone .constprop.120]+0x42>
        }
        SetCurrentTool(MMU2_NO_TOOL);
   35c22:	83 e6       	ldi	r24, 0x63	; 99
   35c24:	0f 94 42 88 	call	0x31084	; 0x31084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>
        tool_change_extruder = MMU2_NO_TOOL;
   35c28:	83 e6       	ldi	r24, 0x63	; 99
   35c2a:	80 93 a2 13 	sts	0x13A2, r24	; 0x8013a2 <MMU2::mmu2+0x57>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   35c2e:	83 e0       	ldi	r24, 0x03	; 3
   35c30:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   35c34:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>
        }
        SetCurrentTool(MMU2_NO_TOOL);
        tool_change_extruder = MMU2_NO_TOOL;
        MakeSound(Confirm);
    }
    ScreenUpdateEnable();
   35c38:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    return true;
}
   35c3c:	81 2f       	mov	r24, r17
   35c3e:	0f 90       	pop	r0
   35c40:	0f 90       	pop	r0
   35c42:	0f 90       	pop	r0
   35c44:	0f 90       	pop	r0
   35c46:	0f 90       	pop	r0
   35c48:	df 91       	pop	r29
   35c4a:	cf 91       	pop	r28
   35c4c:	1f 91       	pop	r17
   35c4e:	0f 91       	pop	r16
   35c50:	ff 90       	pop	r15
   35c52:	08 95       	ret

00035c54 <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]>:

    ScreenUpdateEnable();
    return true;
}

void MMU2::CutFilamentInner(uint8_t slot) {
   35c54:	1f 93       	push	r17
   35c56:	cf 93       	push	r28
   35c58:	df 93       	push	r29
   35c5a:	00 d0       	rcall	.+0      	; 0x35c5c <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]+0x8>
   35c5c:	1f 92       	push	r1
   35c5e:	1f 92       	push	r1
   35c60:	cd b7       	in	r28, 0x3d	; 61
   35c62:	de b7       	in	r29, 0x3e	; 62
   35c64:	18 2f       	mov	r17, r24
    for (;;) {
        Disable_E0();
   35c66:	0f 94 ee c5 	call	0x38bdc	; 0x38bdc <MMU2::Disable_E0()>
}

void ProtocolLogic::CutFilament(uint8_t slot) {
    PlanGenericRequest(RequestMsg(RequestMsgCodes::Cut, slot));
   35c6a:	41 2f       	mov	r20, r17
   35c6c:	6b e4       	ldi	r22, 0x4B	; 75
   35c6e:	ce 01       	movw	r24, r28
   35c70:	01 96       	adiw	r24, 0x01	; 1
   35c72:	0f 94 cc c5 	call	0x38b98	; 0x38b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>
   35c76:	49 81       	ldd	r20, Y+1	; 0x01
   35c78:	5a 81       	ldd	r21, Y+2	; 0x02
   35c7a:	6b 81       	ldd	r22, Y+3	; 0x03
   35c7c:	7c 81       	ldd	r23, Y+4	; 0x04
   35c7e:	8d 81       	ldd	r24, Y+5	; 0x05
   35c80:	0f 94 91 a5 	call	0x34b22	; 0x34b22 <MMU2::ProtocolLogic::PlanGenericRequest(modules::protocol::RequestMsg) [clone .constprop.328]>
        logic.CutFilament(slot);
        if (manage_response(false, true)) {
   35c84:	61 e0       	ldi	r22, 0x01	; 1
   35c86:	80 e0       	ldi	r24, 0x00	; 0
   35c88:	0f 94 b5 ac 	call	0x3596a	; 0x3596a <MMU2::MMU2::manage_response(bool, bool) [clone .constprop.134]>
   35c8c:	81 11       	cpse	r24, r1
   35c8e:	03 c0       	rjmp	.+6      	; 0x35c96 <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]+0x42>
            break;
        }
        IncrementMMUFails();
   35c90:	0f 94 2d c5 	call	0x38a5a	; 0x38a5a <MMU2::IncrementMMUFails()>
   35c94:	e8 cf       	rjmp	.-48     	; 0x35c66 <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]+0x12>
    }
}
   35c96:	0f 90       	pop	r0
   35c98:	0f 90       	pop	r0
   35c9a:	0f 90       	pop	r0
   35c9c:	0f 90       	pop	r0
   35c9e:	0f 90       	pop	r0
   35ca0:	df 91       	pop	r29
   35ca2:	cf 91       	pop	r28
   35ca4:	1f 91       	pop	r17
   35ca6:	08 95       	ret

00035ca8 <MMU2::MMU2::cut_filament(unsigned char, bool) [clone .part.39] [clone .constprop.117]>:

bool MMU2::cut_filament(uint8_t slot, bool enableFullScreenMsg /*= true*/) {
   35ca8:	cf 93       	push	r28
   35caa:	c8 2f       	mov	r28, r24
    lcd_print(' ');
    lcd_print(slot + 1);
}

void FullScreenMsgCut(uint8_t slot){
    FullScreenMsg(_T(MSG_CUT_FILAMENT), slot);
   35cac:	85 e5       	ldi	r24, 0x55	; 85
   35cae:	9b e5       	ldi	r25, 0x5B	; 91
   35cb0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   35cb4:	6c 2f       	mov	r22, r28
   35cb6:	0f 94 0e c5 	call	0x38a1c	; 0x38a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>

    if (enableFullScreenMsg) {
        FullScreenMsgCut(slot);
    }
    {
        if (FindaDetectsFilament()) {
   35cba:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   35cbe:	81 11       	cpse	r24, r1
            unload();
   35cc0:	0f 94 7c ad 	call	0x35af8	; 0x35af8 <MMU2::MMU2::unload() [clone .constprop.126]>

struct ReportingRAII {
    CommandInProgress cip;
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
   35cc4:	0f 94 37 88 	call	0x3106e	; 0x3106e <MMU2::BeginReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.149]>
        if (FindaDetectsFilament()) {
            unload();
        }

        ReportingRAII rep(CommandInProgress::CutFilament);
        CutFilamentInner(slot);
   35cc8:	8c 2f       	mov	r24, r28
   35cca:	0f 94 2a ae 	call	0x35c54	; 0x35c54 <MMU2::MMU2::CutFilamentInner(unsigned char) [clone .constprop.118]>
        SetCurrentTool(MMU2_NO_TOOL);
   35cce:	83 e6       	ldi	r24, 0x63	; 99
   35cd0:	0f 94 42 88 	call	0x31084	; 0x31084 <MMU2::MMU2::SetCurrentTool(unsigned char) [clone .constprop.148]>
        tool_change_extruder = MMU2_NO_TOOL;
   35cd4:	83 e6       	ldi	r24, 0x63	; 99
   35cd6:	80 93 a2 13 	sts	0x13A2, r24	; 0x8013a2 <MMU2::mmu2+0x57>
bool cutter_enabled(){
    return eeprom_read_byte((uint8_t*)EEPROM_MMU_CUTTER_ENABLED) == EEPROM_MMU_CUTTER_ENABLED_enabled;
}

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
   35cda:	83 e0       	ldi	r24, 0x03	; 3
   35cdc:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
    explicit inline __attribute__((always_inline)) ReportingRAII(CommandInProgress cip)
        : cip(cip) {
        BeginReport(cip, ProgressCode::EngagingIdler);
    }
    inline __attribute__((always_inline)) ~ReportingRAII() {
        EndReport(cip, ProgressCode::OK);
   35ce0:	0f 94 b8 88 	call	0x31170	; 0x31170 <MMU2::EndReport(MMU2::CommandInProgress, ProgressCode) [clone .constprop.129]>
        CutFilamentInner(slot);
        SetCurrentTool(MMU2_NO_TOOL);
        tool_change_extruder = MMU2_NO_TOOL;
        MakeSound(SoundType::Confirm);
    }
    ScreenUpdateEnable();
   35ce4:	0f 94 0b c5 	call	0x38a16	; 0x38a16 <MMU2::ScreenUpdateEnable()>
    return true;
}
   35ce8:	81 e0       	ldi	r24, 0x01	; 1
   35cea:	cf 91       	pop	r28
   35cec:	08 95       	ret

00035cee <putch(char)>:
  ch = UDR0;
  return ch;
}

static void putch(char ch) {
  while (!(UCSR0A & _BV(UDRE0)));
   35cee:	90 91 c0 00 	lds	r25, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   35cf2:	95 ff       	sbrs	r25, 5
   35cf4:	fc cf       	rjmp	.-8      	; 0x35cee <putch(char)>
  UDR0 = ch;
   35cf6:	80 93 c6 00 	sts	0x00C6, r24	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
}
   35cfa:	08 95       	ret

00035cfc <getch()>:

#define RECV_READY ((UCSR0A & _BV(RXC0)) != 0)

static uint8_t getch(void) {
  uint8_t ch;
  while(! RECV_READY) ;
   35cfc:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   35d00:	87 ff       	sbrs	r24, 7
   35d02:	fc cf       	rjmp	.-8      	; 0x35cfc <getch()>
  if (!(UCSR0A & _BV(FE0))) {
   35d04:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   35d08:	84 fd       	sbrc	r24, 4
   35d0a:	01 c0       	rjmp	.+2      	; 0x35d0e <getch()+0x12>
       * expects to be talking to the application, and DON'T reset the
       * watchdog.  This should cause the bootloader to abort and run
       * the application "soon", if it keeps happening.  (Note that we
       * don't care that an invalid char is returned...)
       */
    wdt_reset();
   35d0c:	a8 95       	wdr
  }
  ch = UDR0;
   35d0e:	80 91 c6 00 	lds	r24, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
  return ch;
}
   35d12:	08 95       	ret

00035d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>:
    /// Compute/update CRC8 CCIIT from 8bits.
    /// Details: https://www.nongnu.org/avr-libc/user-manual/group__util__crc.html
    static uint8_t CCITT_update(uint8_t crc, uint8_t b);

    static constexpr uint8_t CCITT_updateCX(uint8_t crc, uint8_t b) {
        uint8_t data = crc ^ b;
   35d14:	86 27       	eor	r24, r22
   35d16:	98 e0       	ldi	r25, 0x08	; 8
        for (uint8_t i = 0; i < 8; i++) {
            if ((data & 0x80U) != 0) {
                data <<= 1U;
                data ^= 0x07U;
   35d18:	27 e0       	ldi	r18, 0x07	; 7
    static uint8_t CCITT_update(uint8_t crc, uint8_t b);

    static constexpr uint8_t CCITT_updateCX(uint8_t crc, uint8_t b) {
        uint8_t data = crc ^ b;
        for (uint8_t i = 0; i < 8; i++) {
            if ((data & 0x80U) != 0) {
   35d1a:	38 2f       	mov	r19, r24
   35d1c:	88 0f       	add	r24, r24
   35d1e:	37 fd       	sbrc	r19, 7
                data <<= 1U;
                data ^= 0x07U;
   35d20:	82 27       	eor	r24, r18
   35d22:	91 50       	subi	r25, 0x01	; 1
    /// Details: https://www.nongnu.org/avr-libc/user-manual/group__util__crc.html
    static uint8_t CCITT_update(uint8_t crc, uint8_t b);

    static constexpr uint8_t CCITT_updateCX(uint8_t crc, uint8_t b) {
        uint8_t data = crc ^ b;
        for (uint8_t i = 0; i < 8; i++) {
   35d24:	d1 f7       	brne	.-12     	; 0x35d1a <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)+0x6>
            } else {
                data <<= 1U;
            }
        }
        return data;
    }
   35d26:	08 95       	ret

00035d28 <calculate_trapezoid_for_block(block_t*, float, float)>:
// Minimum stepper rate 120Hz.
#define MINIMAL_STEP_RATE 120

// Calculates trapezoid parameters so that the entry- and exit-speed is compensated by the provided factors.
void calculate_trapezoid_for_block(block_t *block, float entry_speed, float exit_speed)
{
   35d28:	2f 92       	push	r2
   35d2a:	3f 92       	push	r3
   35d2c:	4f 92       	push	r4
   35d2e:	5f 92       	push	r5
   35d30:	6f 92       	push	r6
   35d32:	7f 92       	push	r7
   35d34:	8f 92       	push	r8
   35d36:	9f 92       	push	r9
   35d38:	af 92       	push	r10
   35d3a:	bf 92       	push	r11
   35d3c:	cf 92       	push	r12
   35d3e:	df 92       	push	r13
   35d40:	ef 92       	push	r14
   35d42:	ff 92       	push	r15
   35d44:	0f 93       	push	r16
   35d46:	1f 93       	push	r17
   35d48:	cf 93       	push	r28
   35d4a:	df 93       	push	r29
   35d4c:	cd b7       	in	r28, 0x3d	; 61
   35d4e:	de b7       	in	r29, 0x3e	; 62
   35d50:	a1 97       	sbiw	r28, 0x21	; 33
   35d52:	0f b6       	in	r0, 0x3f	; 63
   35d54:	f8 94       	cli
   35d56:	de bf       	out	0x3e, r29	; 62
   35d58:	0f be       	out	0x3f, r0	; 63
   35d5a:	cd bf       	out	0x3d, r28	; 61
   35d5c:	1c 01       	movw	r2, r24
   35d5e:	48 01       	movw	r8, r16
   35d60:	59 01       	movw	r10, r18
  // These two lines are the only floating point calculations performed in this routine.
  // initial_rate, final_rate in Hz.
  // Minimum stepper rate 120Hz, maximum 40kHz. If the stepper rate goes above 10kHz,
  // the stepper interrupt routine groups the pulses by 2 or 4 pulses per interrupt tick.
  uint32_t initial_rate = ceil(entry_speed * block->speed_factor); // (step/min)
   35d62:	fc 01       	movw	r30, r24
   35d64:	e8 5b       	subi	r30, 0xB8	; 184
   35d66:	ff 4f       	sbci	r31, 0xFF	; 255
   35d68:	c0 80       	ld	r12, Z
   35d6a:	d1 80       	ldd	r13, Z+1	; 0x01
   35d6c:	e2 80       	ldd	r14, Z+2	; 0x02
   35d6e:	f3 80       	ldd	r15, Z+3	; 0x03
   35d70:	9a 01       	movw	r18, r20
   35d72:	ab 01       	movw	r20, r22
   35d74:	c7 01       	movw	r24, r14
   35d76:	b6 01       	movw	r22, r12
   35d78:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   35d7c:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   35d80:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   35d84:	8b 01       	movw	r16, r22
   35d86:	8d 83       	std	Y+5, r24	; 0x05
   35d88:	99 83       	std	Y+1, r25	; 0x01
  uint32_t final_rate   = ceil(exit_speed  * block->speed_factor); // (step/min)
   35d8a:	a5 01       	movw	r20, r10
   35d8c:	94 01       	movw	r18, r8
   35d8e:	c7 01       	movw	r24, r14
   35d90:	b6 01       	movw	r22, r12
   35d92:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   35d96:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   35d9a:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   35d9e:	36 2f       	mov	r19, r22
   35da0:	27 2f       	mov	r18, r23
   35da2:	a8 01       	movw	r20, r16
   35da4:	6d 81       	ldd	r22, Y+5	; 0x05
   35da6:	79 81       	ldd	r23, Y+1	; 0x01
   35da8:	48 37       	cpi	r20, 0x78	; 120
   35daa:	51 05       	cpc	r21, r1
   35dac:	61 05       	cpc	r22, r1
   35dae:	71 05       	cpc	r23, r1
   35db0:	20 f4       	brcc	.+8      	; 0x35dba <calculate_trapezoid_for_block(block_t*, float, float)+0x92>
   35db2:	48 e7       	ldi	r20, 0x78	; 120
   35db4:	50 e0       	ldi	r21, 0x00	; 0
   35db6:	60 e0       	ldi	r22, 0x00	; 0
   35db8:	70 e0       	ldi	r23, 0x00	; 0

  // Limit minimal step rate (Otherwise the timer will overflow.)
  if (initial_rate < MINIMAL_STEP_RATE)
      initial_rate = MINIMAL_STEP_RATE;
  if (initial_rate > block->nominal_rate)
   35dba:	d1 01       	movw	r26, r2
   35dbc:	d6 96       	adiw	r26, 0x36	; 54
   35dbe:	8d 90       	ld	r8, X+
   35dc0:	9d 90       	ld	r9, X+
   35dc2:	ad 90       	ld	r10, X+
   35dc4:	bc 90       	ld	r11, X
   35dc6:	d9 97       	sbiw	r26, 0x39	; 57
   35dc8:	8f 8a       	std	Y+23, r8	; 0x17
   35dca:	98 8e       	std	Y+24, r9	; 0x18
   35dcc:	a9 8e       	std	Y+25, r10	; 0x19
   35dce:	ba 8e       	std	Y+26, r11	; 0x1a
   35dd0:	48 15       	cp	r20, r8
   35dd2:	59 05       	cpc	r21, r9
   35dd4:	6a 05       	cpc	r22, r10
   35dd6:	7b 05       	cpc	r23, r11
   35dd8:	20 f4       	brcc	.+8      	; 0x35de2 <calculate_trapezoid_for_block(block_t*, float, float)+0xba>
   35dda:	4f 8b       	std	Y+23, r20	; 0x17
   35ddc:	58 8f       	std	Y+24, r21	; 0x18
   35dde:	69 8f       	std	Y+25, r22	; 0x19
   35de0:	7a 8f       	std	Y+26, r23	; 0x1a
   35de2:	43 2f       	mov	r20, r19
   35de4:	52 2f       	mov	r21, r18
   35de6:	bc 01       	movw	r22, r24
   35de8:	48 37       	cpi	r20, 0x78	; 120
   35dea:	51 05       	cpc	r21, r1
   35dec:	61 05       	cpc	r22, r1
   35dee:	71 05       	cpc	r23, r1
   35df0:	20 f4       	brcc	.+8      	; 0x35dfa <calculate_trapezoid_for_block(block_t*, float, float)+0xd2>
   35df2:	48 e7       	ldi	r20, 0x78	; 120
   35df4:	50 e0       	ldi	r21, 0x00	; 0
   35df6:	60 e0       	ldi	r22, 0x00	; 0
   35df8:	70 e0       	ldi	r23, 0x00	; 0
   35dfa:	18 2d       	mov	r17, r8
   35dfc:	09 2d       	mov	r16, r9
   35dfe:	a9 a2       	std	Y+33, r10	; 0x21
   35e00:	b8 a2       	std	Y+32, r11	; 0x20
   35e02:	48 15       	cp	r20, r8
   35e04:	59 05       	cpc	r21, r9
   35e06:	6a 05       	cpc	r22, r10
   35e08:	7b 05       	cpc	r23, r11
   35e0a:	20 f4       	brcc	.+8      	; 0x35e14 <calculate_trapezoid_for_block(block_t*, float, float)+0xec>
   35e0c:	14 2f       	mov	r17, r20
   35e0e:	05 2f       	mov	r16, r21
   35e10:	69 a3       	std	Y+33, r22	; 0x21
   35e12:	78 a3       	std	Y+32, r23	; 0x20
  if (final_rate < MINIMAL_STEP_RATE)
      final_rate = MINIMAL_STEP_RATE;
  if (final_rate > block->nominal_rate)
      final_rate = block->nominal_rate;

  uint32_t acceleration      = block->acceleration_steps_per_s2;
   35e14:	f1 01       	movw	r30, r2
   35e16:	ee 5b       	subi	r30, 0xBE	; 190
   35e18:	ff 4f       	sbci	r31, 0xFF	; 255
   35e1a:	c0 80       	ld	r12, Z
   35e1c:	d1 80       	ldd	r13, Z+1	; 0x01
   35e1e:	e2 80       	ldd	r14, Z+2	; 0x02
   35e20:	f3 80       	ldd	r15, Z+3	; 0x03
   35e22:	cd 82       	std	Y+5, r12	; 0x05
   35e24:	de 82       	std	Y+6, r13	; 0x06
   35e26:	ef 82       	std	Y+7, r14	; 0x07
   35e28:	f8 86       	std	Y+8, r15	; 0x08
  if (acceleration == 0)
   35e2a:	cd 28       	or	r12, r13
   35e2c:	ce 28       	or	r12, r14
   35e2e:	cf 28       	or	r12, r15
   35e30:	41 f4       	brne	.+16     	; 0x35e42 <calculate_trapezoid_for_block(block_t*, float, float)+0x11a>
      // Don't allow zero acceleration.
      acceleration = 1;
   35e32:	c1 2c       	mov	r12, r1
   35e34:	d1 2c       	mov	r13, r1
   35e36:	76 01       	movw	r14, r12
   35e38:	c3 94       	inc	r12
   35e3a:	cd 82       	std	Y+5, r12	; 0x05
   35e3c:	de 82       	std	Y+6, r13	; 0x06
   35e3e:	ef 82       	std	Y+7, r14	; 0x07
   35e40:	f8 86       	std	Y+8, r15	; 0x08
  // estimate_acceleration_distance(float initial_rate, float target_rate, float acceleration)
  // (target_rate*target_rate-initial_rate*initial_rate)/(2.0*acceleration));
  uint32_t initial_rate_sqr  = initial_rate*initial_rate;
   35e42:	2f 89       	ldd	r18, Y+23	; 0x17
   35e44:	38 8d       	ldd	r19, Y+24	; 0x18
   35e46:	49 8d       	ldd	r20, Y+25	; 0x19
   35e48:	5a 8d       	ldd	r21, Y+26	; 0x1a
   35e4a:	b9 01       	movw	r22, r18
   35e4c:	ca 01       	movw	r24, r20
   35e4e:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   35e52:	6d 87       	std	Y+13, r22	; 0x0d
   35e54:	7e 87       	std	Y+14, r23	; 0x0e
   35e56:	8f 87       	std	Y+15, r24	; 0x0f
   35e58:	98 8b       	std	Y+16, r25	; 0x10
  //FIXME assert that this result fits a 64bit unsigned int.
  uint32_t nominal_rate_sqr  = block->nominal_rate*block->nominal_rate;
   35e5a:	a5 01       	movw	r20, r10
   35e5c:	94 01       	movw	r18, r8
   35e5e:	c5 01       	movw	r24, r10
   35e60:	b4 01       	movw	r22, r8
   35e62:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   35e66:	2b 01       	movw	r4, r22
   35e68:	3c 01       	movw	r6, r24
  uint32_t final_rate_sqr    = final_rate*final_rate;
   35e6a:	21 2f       	mov	r18, r17
   35e6c:	30 2f       	mov	r19, r16
   35e6e:	49 a1       	ldd	r20, Y+33	; 0x21
   35e70:	58 a1       	ldd	r21, Y+32	; 0x20
   35e72:	61 2f       	mov	r22, r17
   35e74:	70 2f       	mov	r23, r16
   35e76:	ca 01       	movw	r24, r20
   35e78:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   35e7c:	69 8b       	std	Y+17, r22	; 0x11
   35e7e:	7a 8b       	std	Y+18, r23	; 0x12
   35e80:	8b 8b       	std	Y+19, r24	; 0x13
   35e82:	9c 8b       	std	Y+20, r25	; 0x14
  uint32_t acceleration_x2   = acceleration << 1;
   35e84:	cd 80       	ldd	r12, Y+5	; 0x05
   35e86:	de 80       	ldd	r13, Y+6	; 0x06
   35e88:	ef 80       	ldd	r14, Y+7	; 0x07
   35e8a:	f8 84       	ldd	r15, Y+8	; 0x08
   35e8c:	cc 0c       	add	r12, r12
   35e8e:	dd 1c       	adc	r13, r13
   35e90:	ee 1c       	adc	r14, r14
   35e92:	ff 1c       	adc	r15, r15
   35e94:	c9 86       	std	Y+9, r12	; 0x09
   35e96:	da 86       	std	Y+10, r13	; 0x0a
   35e98:	eb 86       	std	Y+11, r14	; 0x0b
   35e9a:	fc 86       	std	Y+12, r15	; 0x0c
  // ceil(estimate_acceleration_distance(initial_rate, block->nominal_rate, acceleration));
  uint32_t accelerate_steps  = (nominal_rate_sqr - initial_rate_sqr + acceleration_x2 - 1) / acceleration_x2;
   35e9c:	c3 01       	movw	r24, r6
   35e9e:	b2 01       	movw	r22, r4
   35ea0:	61 50       	subi	r22, 0x01	; 1
   35ea2:	71 09       	sbc	r23, r1
   35ea4:	81 09       	sbc	r24, r1
   35ea6:	91 09       	sbc	r25, r1
   35ea8:	cd 84       	ldd	r12, Y+13	; 0x0d
   35eaa:	de 84       	ldd	r13, Y+14	; 0x0e
   35eac:	ef 84       	ldd	r14, Y+15	; 0x0f
   35eae:	f8 88       	ldd	r15, Y+16	; 0x10
   35eb0:	6c 19       	sub	r22, r12
   35eb2:	7d 09       	sbc	r23, r13
   35eb4:	8e 09       	sbc	r24, r14
   35eb6:	9f 09       	sbc	r25, r15
   35eb8:	c9 84       	ldd	r12, Y+9	; 0x09
   35eba:	da 84       	ldd	r13, Y+10	; 0x0a
   35ebc:	eb 84       	ldd	r14, Y+11	; 0x0b
   35ebe:	fc 84       	ldd	r15, Y+12	; 0x0c
   35ec0:	6c 0d       	add	r22, r12
   35ec2:	7d 1d       	adc	r23, r13
   35ec4:	8e 1d       	adc	r24, r14
   35ec6:	9f 1d       	adc	r25, r15
   35ec8:	a7 01       	movw	r20, r14
   35eca:	96 01       	movw	r18, r12
   35ecc:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   35ed0:	69 01       	movw	r12, r18
   35ed2:	7a 01       	movw	r14, r20
  // floor(estimate_acceleration_distance(block->nominal_rate, final_rate, -acceleration));
  uint32_t decelerate_steps  = (nominal_rate_sqr - final_rate_sqr) / acceleration_x2;
   35ed4:	c3 01       	movw	r24, r6
   35ed6:	b2 01       	movw	r22, r4
   35ed8:	29 89       	ldd	r18, Y+17	; 0x11
   35eda:	3a 89       	ldd	r19, Y+18	; 0x12
   35edc:	4b 89       	ldd	r20, Y+19	; 0x13
   35ede:	5c 89       	ldd	r21, Y+20	; 0x14
   35ee0:	62 1b       	sub	r22, r18
   35ee2:	73 0b       	sbc	r23, r19
   35ee4:	84 0b       	sbc	r24, r20
   35ee6:	95 0b       	sbc	r25, r21
   35ee8:	29 85       	ldd	r18, Y+9	; 0x09
   35eea:	3a 85       	ldd	r19, Y+10	; 0x0a
   35eec:	4b 85       	ldd	r20, Y+11	; 0x0b
   35eee:	5c 85       	ldd	r21, Y+12	; 0x0c
   35ef0:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   35ef4:	29 01       	movw	r4, r18
   35ef6:	3a 01       	movw	r6, r20
  uint32_t accel_decel_steps = accelerate_steps + decelerate_steps;
   35ef8:	d7 01       	movw	r26, r14
   35efa:	c6 01       	movw	r24, r12
   35efc:	84 0d       	add	r24, r4
   35efe:	95 1d       	adc	r25, r5
   35f00:	a6 1d       	adc	r26, r6
   35f02:	b7 1d       	adc	r27, r7
   35f04:	8c 8f       	std	Y+28, r24	; 0x1c
   35f06:	9d 8f       	std	Y+29, r25	; 0x1d
   35f08:	ae 8f       	std	Y+30, r26	; 0x1e
   35f0a:	bf 8f       	std	Y+31, r27	; 0x1f
  uint32_t plateau_steps     = 0;

#ifdef LIN_ADVANCE
  uint16_t final_adv_steps = 0;
  uint16_t max_adv_steps = 0;
  if (block->use_advance_lead) {
   35f0c:	f1 01       	movw	r30, r2
   35f0e:	e4 5b       	subi	r30, 0xB4	; 180
   35f10:	ff 4f       	sbci	r31, 0xFF	; 255
   35f12:	90 81       	ld	r25, Z
   35f14:	9b 8f       	std	Y+27, r25	; 0x1b
   35f16:	99 23       	and	r25, r25
   35f18:	09 f4       	brne	.+2      	; 0x35f1c <calculate_trapezoid_for_block(block_t*, float, float)+0x1f4>
   35f1a:	8d c0       	rjmp	.+282    	; 0x36036 <calculate_trapezoid_for_block(block_t*, float, float)+0x30e>
      final_adv_steps = final_rate * block->adv_comp;
   35f1c:	61 2f       	mov	r22, r17
   35f1e:	70 2f       	mov	r23, r16
   35f20:	89 a1       	ldd	r24, Y+33	; 0x21
   35f22:	98 a1       	ldd	r25, Y+32	; 0x20
   35f24:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   35f28:	f1 01       	movw	r30, r2
   35f2a:	ec 5a       	subi	r30, 0xAC	; 172
   35f2c:	ff 4f       	sbci	r31, 0xFF	; 255
   35f2e:	20 81       	ld	r18, Z
   35f30:	31 81       	ldd	r19, Z+1	; 0x01
   35f32:	42 81       	ldd	r20, Z+2	; 0x02
   35f34:	53 81       	ldd	r21, Z+3	; 0x03
   35f36:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   35f3a:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   35f3e:	6d 8b       	std	Y+21, r22	; 0x15
   35f40:	7e 8b       	std	Y+22, r23	; 0x16
#endif

  // Is the Plateau of Nominal Rate smaller than nothing? That means no cruising, and we will
  // have to use intersection_distance() to calculate when to abort acceleration and start braking
  // in order to reach the final_rate exactly at the end of this block.
  if (accel_decel_steps < block->step_event_count.wide) {
   35f42:	d1 01       	movw	r26, r2
   35f44:	50 96       	adiw	r26, 0x10	; 16
   35f46:	2d 91       	ld	r18, X+
   35f48:	3d 91       	ld	r19, X+
   35f4a:	4d 91       	ld	r20, X+
   35f4c:	5c 91       	ld	r21, X
   35f4e:	53 97       	sbiw	r26, 0x13	; 19
   35f50:	29 83       	std	Y+1, r18	; 0x01
   35f52:	3a 83       	std	Y+2, r19	; 0x02
   35f54:	4b 83       	std	Y+3, r20	; 0x03
   35f56:	5c 83       	std	Y+4, r21	; 0x04
   35f58:	8c 8d       	ldd	r24, Y+28	; 0x1c
   35f5a:	9d 8d       	ldd	r25, Y+29	; 0x1d
   35f5c:	ae 8d       	ldd	r26, Y+30	; 0x1e
   35f5e:	bf 8d       	ldd	r27, Y+31	; 0x1f
   35f60:	82 17       	cp	r24, r18
   35f62:	93 07       	cpc	r25, r19
   35f64:	a4 07       	cpc	r26, r20
   35f66:	b5 07       	cpc	r27, r21
   35f68:	08 f0       	brcs	.+2      	; 0x35f6c <calculate_trapezoid_for_block(block_t*, float, float)+0x244>
   35f6a:	68 c0       	rjmp	.+208    	; 0x3603c <calculate_trapezoid_for_block(block_t*, float, float)+0x314>
    plateau_steps = block->step_event_count.wide - accel_decel_steps;
   35f6c:	29 01       	movw	r4, r18
   35f6e:	3a 01       	movw	r6, r20
   35f70:	48 1a       	sub	r4, r24
   35f72:	59 0a       	sbc	r5, r25
   35f74:	6a 0a       	sbc	r6, r26
   35f76:	7b 0a       	sbc	r7, r27
#ifdef LIN_ADVANCE
    if (block->use_advance_lead)
   35f78:	9b 8d       	ldd	r25, Y+27	; 0x1b
  // Size of Plateau of Nominal Rate.
  uint32_t plateau_steps     = 0;

#ifdef LIN_ADVANCE
  uint16_t final_adv_steps = 0;
  uint16_t max_adv_steps = 0;
   35f7a:	40 e0       	ldi	r20, 0x00	; 0
   35f7c:	80 e0       	ldi	r24, 0x00	; 0
  // have to use intersection_distance() to calculate when to abort acceleration and start braking
  // in order to reach the final_rate exactly at the end of this block.
  if (accel_decel_steps < block->step_event_count.wide) {
    plateau_steps = block->step_event_count.wide - accel_decel_steps;
#ifdef LIN_ADVANCE
    if (block->use_advance_lead)
   35f7e:	99 23       	and	r25, r25
   35f80:	89 f0       	breq	.+34     	; 0x35fa4 <calculate_trapezoid_for_block(block_t*, float, float)+0x27c>
        max_adv_steps = block->nominal_rate * block->adv_comp;
   35f82:	c5 01       	movw	r24, r10
   35f84:	b4 01       	movw	r22, r8
   35f86:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   35f8a:	f1 01       	movw	r30, r2
   35f8c:	ec 5a       	subi	r30, 0xAC	; 172
   35f8e:	ff 4f       	sbci	r31, 0xFF	; 255
   35f90:	20 81       	ld	r18, Z
   35f92:	31 81       	ldd	r19, Z+1	; 0x01
   35f94:	42 81       	ldd	r20, Z+2	; 0x02
   35f96:	53 81       	ldd	r21, Z+3	; 0x03
   35f98:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   35f9c:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   35fa0:	46 2f       	mov	r20, r22
   35fa2:	87 2f       	mov	r24, r23
        }
    }
#endif
  }

  CRITICAL_SECTION_START;  // Fill variables used by the stepper in a critical section
   35fa4:	3f b7       	in	r19, 0x3f	; 63
   35fa6:	f8 94       	cli
  // This block locks the interrupts globally for 4.38 us,
  // which corresponds to a maximum repeat frequency of 228.57 kHz.
  // This blocking is safe in the context of a 10kHz stepper driver interrupt
  // or a 115200 Bd serial line receive interrupt, which will not trigger faster than 12kHz.
  if (! block->busy) { // Don't update variables if block is busy.
   35fa8:	f1 01       	movw	r30, r2
   35faa:	e9 5b       	subi	r30, 0xB9	; 185
   35fac:	ff 4f       	sbci	r31, 0xFF	; 255
   35fae:	20 81       	ld	r18, Z
   35fb0:	21 11       	cpse	r18, r1
   35fb2:	27 c0       	rjmp	.+78     	; 0x36002 <calculate_trapezoid_for_block(block_t*, float, float)+0x2da>
    block->accelerate_until = accelerate_steps;
   35fb4:	d1 01       	movw	r26, r2
   35fb6:	59 96       	adiw	r26, 0x19	; 25
   35fb8:	cd 92       	st	X+, r12
   35fba:	dd 92       	st	X+, r13
   35fbc:	ed 92       	st	X+, r14
   35fbe:	fc 92       	st	X, r15
   35fc0:	5c 97       	sbiw	r26, 0x1c	; 28
    block->decelerate_after = accelerate_steps+plateau_steps;
   35fc2:	c4 0c       	add	r12, r4
   35fc4:	d5 1c       	adc	r13, r5
   35fc6:	e6 1c       	adc	r14, r6
   35fc8:	f7 1c       	adc	r15, r7
   35fca:	f1 01       	movw	r30, r2
   35fcc:	c5 8e       	std	Z+29, r12	; 0x1d
   35fce:	d6 8e       	std	Z+30, r13	; 0x1e
   35fd0:	e7 8e       	std	Z+31, r14	; 0x1f
   35fd2:	f0 a2       	std	Z+32, r15	; 0x20
    block->initial_rate = initial_rate;
   35fd4:	cf 88       	ldd	r12, Y+23	; 0x17
   35fd6:	c2 ae       	std	Z+58, r12	; 0x3a
   35fd8:	d8 8c       	ldd	r13, Y+24	; 0x18
   35fda:	d3 ae       	std	Z+59, r13	; 0x3b
   35fdc:	e9 8c       	ldd	r14, Y+25	; 0x19
   35fde:	e4 ae       	std	Z+60, r14	; 0x3c
   35fe0:	fa 8c       	ldd	r15, Y+26	; 0x1a
   35fe2:	f5 ae       	std	Z+61, r15	; 0x3d
    block->final_rate = final_rate;
   35fe4:	fe 96       	adiw	r30, 0x3e	; 62
   35fe6:	10 83       	st	Z, r17
   35fe8:	01 83       	std	Z+1, r16	; 0x01
   35fea:	c9 a0       	ldd	r12, Y+33	; 0x21
   35fec:	c2 82       	std	Z+2, r12	; 0x02
   35fee:	d8 a0       	ldd	r13, Y+32	; 0x20
   35ff0:	d3 82       	std	Z+3, r13	; 0x03
#ifdef LIN_ADVANCE
    block->final_adv_steps = final_adv_steps;
   35ff2:	73 96       	adiw	r30, 0x13	; 19
   35ff4:	ed 88       	ldd	r14, Y+21	; 0x15
   35ff6:	e0 82       	st	Z, r14
   35ff8:	fe 88       	ldd	r15, Y+22	; 0x16
   35ffa:	f1 82       	std	Z+1, r15	; 0x01
    block->max_adv_steps = max_adv_steps;
   35ffc:	32 97       	sbiw	r30, 0x02	; 2
   35ffe:	40 83       	st	Z, r20
   36000:	81 83       	std	Z+1, r24	; 0x01
#endif
  }
  CRITICAL_SECTION_END;
   36002:	3f bf       	out	0x3f, r19	; 63
}
   36004:	a1 96       	adiw	r28, 0x21	; 33
   36006:	0f b6       	in	r0, 0x3f	; 63
   36008:	f8 94       	cli
   3600a:	de bf       	out	0x3e, r29	; 62
   3600c:	0f be       	out	0x3f, r0	; 63
   3600e:	cd bf       	out	0x3d, r28	; 61
   36010:	df 91       	pop	r29
   36012:	cf 91       	pop	r28
   36014:	1f 91       	pop	r17
   36016:	0f 91       	pop	r16
   36018:	ff 90       	pop	r15
   3601a:	ef 90       	pop	r14
   3601c:	df 90       	pop	r13
   3601e:	cf 90       	pop	r12
   36020:	bf 90       	pop	r11
   36022:	af 90       	pop	r10
   36024:	9f 90       	pop	r9
   36026:	8f 90       	pop	r8
   36028:	7f 90       	pop	r7
   3602a:	6f 90       	pop	r6
   3602c:	5f 90       	pop	r5
   3602e:	4f 90       	pop	r4
   36030:	3f 90       	pop	r3
   36032:	2f 90       	pop	r2
   36034:	08 95       	ret
  uint32_t accel_decel_steps = accelerate_steps + decelerate_steps;
  // Size of Plateau of Nominal Rate.
  uint32_t plateau_steps     = 0;

#ifdef LIN_ADVANCE
  uint16_t final_adv_steps = 0;
   36036:	1d 8a       	std	Y+21, r1	; 0x15
   36038:	1e 8a       	std	Y+22, r1	; 0x16
   3603a:	83 cf       	rjmp	.-250    	; 0x35f42 <calculate_trapezoid_for_block(block_t*, float, float)+0x21a>
#ifdef LIN_ADVANCE
    if (block->use_advance_lead)
        max_adv_steps = block->nominal_rate * block->adv_comp;
#endif
  } else {
    uint32_t acceleration_x4  = acceleration << 2;
   3603c:	2d 81       	ldd	r18, Y+5	; 0x05
   3603e:	3e 81       	ldd	r19, Y+6	; 0x06
   36040:	4f 81       	ldd	r20, Y+7	; 0x07
   36042:	58 85       	ldd	r21, Y+8	; 0x08
   36044:	82 e0       	ldi	r24, 0x02	; 2
   36046:	22 0f       	add	r18, r18
   36048:	33 1f       	adc	r19, r19
   3604a:	44 1f       	adc	r20, r20
   3604c:	55 1f       	adc	r21, r21
   3604e:	8a 95       	dec	r24
   36050:	d1 f7       	brne	.-12     	; 0x36046 <calculate_trapezoid_for_block(block_t*, float, float)+0x31e>
   36052:	89 81       	ldd	r24, Y+1	; 0x01
   36054:	9a 81       	ldd	r25, Y+2	; 0x02
   36056:	ab 81       	ldd	r26, Y+3	; 0x03
   36058:	bc 81       	ldd	r27, Y+4	; 0x04
   3605a:	81 70       	andi	r24, 0x01	; 1
   3605c:	99 27       	eor	r25, r25
   3605e:	aa 27       	eor	r26, r26
   36060:	bb 27       	eor	r27, r27
   36062:	8d 83       	std	Y+5, r24	; 0x05
   36064:	9e 83       	std	Y+6, r25	; 0x06
   36066:	af 83       	std	Y+7, r26	; 0x07
   36068:	b8 87       	std	Y+8, r27	; 0x08
   3606a:	89 80       	ldd	r8, Y+1	; 0x01
   3606c:	9a 80       	ldd	r9, Y+2	; 0x02
   3606e:	ab 80       	ldd	r10, Y+3	; 0x03
   36070:	bc 80       	ldd	r11, Y+4	; 0x04
   36072:	b6 94       	lsr	r11
   36074:	a7 94       	ror	r10
   36076:	97 94       	ror	r9
   36078:	87 94       	ror	r8
    // Avoid negative numbers
    if (final_rate_sqr >= initial_rate_sqr) {
   3607a:	cd 84       	ldd	r12, Y+13	; 0x0d
   3607c:	de 84       	ldd	r13, Y+14	; 0x0e
   3607e:	ef 84       	ldd	r14, Y+15	; 0x0f
   36080:	f8 88       	ldd	r15, Y+16	; 0x10
   36082:	89 89       	ldd	r24, Y+17	; 0x11
   36084:	9a 89       	ldd	r25, Y+18	; 0x12
   36086:	ab 89       	ldd	r26, Y+19	; 0x13
   36088:	bc 89       	ldd	r27, Y+20	; 0x14
   3608a:	8c 15       	cp	r24, r12
   3608c:	9d 05       	cpc	r25, r13
   3608e:	ae 05       	cpc	r26, r14
   36090:	bf 05       	cpc	r27, r15
   36092:	08 f4       	brcc	.+2      	; 0x36096 <calculate_trapezoid_for_block(block_t*, float, float)+0x36e>
   36094:	6f c0       	rjmp	.+222    	; 0x36174 <calculate_trapezoid_for_block(block_t*, float, float)+0x44c>
        // intersection_distance(float initial_rate, float final_rate, float acceleration, float distance)
        // (2.0*acceleration*distance-initial_rate*initial_rate+final_rate*final_rate)/(4.0*acceleration);
#if 0
        accelerate_steps = (block->step_event_count >> 1) + (final_rate_sqr - initial_rate_sqr + acceleration_x4 - 1 + (block->step_event_count & 1) * acceleration_x2) / acceleration_x4;
#else
        accelerate_steps = final_rate_sqr - initial_rate_sqr + acceleration_x4 - 1;
   36096:	6c 01       	movw	r12, r24
   36098:	7d 01       	movw	r14, r26
   3609a:	91 e0       	ldi	r25, 0x01	; 1
   3609c:	c9 1a       	sub	r12, r25
   3609e:	d1 08       	sbc	r13, r1
   360a0:	e1 08       	sbc	r14, r1
   360a2:	f1 08       	sbc	r15, r1
   360a4:	8d 85       	ldd	r24, Y+13	; 0x0d
   360a6:	9e 85       	ldd	r25, Y+14	; 0x0e
   360a8:	af 85       	ldd	r26, Y+15	; 0x0f
   360aa:	b8 89       	ldd	r27, Y+16	; 0x10
   360ac:	c8 1a       	sub	r12, r24
   360ae:	d9 0a       	sbc	r13, r25
   360b0:	ea 0a       	sbc	r14, r26
   360b2:	fb 0a       	sbc	r15, r27
   360b4:	c7 01       	movw	r24, r14
   360b6:	b6 01       	movw	r22, r12
   360b8:	62 0f       	add	r22, r18
   360ba:	73 1f       	adc	r23, r19
   360bc:	84 1f       	adc	r24, r20
   360be:	95 1f       	adc	r25, r21
        if (block->step_event_count.wide & 1)
   360c0:	cd 80       	ldd	r12, Y+5	; 0x05
   360c2:	de 80       	ldd	r13, Y+6	; 0x06
   360c4:	ef 80       	ldd	r14, Y+7	; 0x07
   360c6:	f8 84       	ldd	r15, Y+8	; 0x08
   360c8:	cd 28       	or	r12, r13
   360ca:	ce 28       	or	r12, r14
   360cc:	cf 28       	or	r12, r15
   360ce:	41 f0       	breq	.+16     	; 0x360e0 <calculate_trapezoid_for_block(block_t*, float, float)+0x3b8>
            accelerate_steps += acceleration_x2;
   360d0:	c9 84       	ldd	r12, Y+9	; 0x09
   360d2:	da 84       	ldd	r13, Y+10	; 0x0a
   360d4:	eb 84       	ldd	r14, Y+11	; 0x0b
   360d6:	fc 84       	ldd	r15, Y+12	; 0x0c
   360d8:	6c 0d       	add	r22, r12
   360da:	7d 1d       	adc	r23, r13
   360dc:	8e 1d       	adc	r24, r14
   360de:	9f 1d       	adc	r25, r15
        accelerate_steps /= acceleration_x4;
   360e0:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   360e4:	75 01       	movw	r14, r10
   360e6:	64 01       	movw	r12, r8
   360e8:	c2 0e       	add	r12, r18
   360ea:	d3 1e       	adc	r13, r19
   360ec:	e4 1e       	adc	r14, r20
   360ee:	f5 1e       	adc	r15, r21
   360f0:	29 81       	ldd	r18, Y+1	; 0x01
   360f2:	3a 81       	ldd	r19, Y+2	; 0x02
   360f4:	4b 81       	ldd	r20, Y+3	; 0x03
   360f6:	5c 81       	ldd	r21, Y+4	; 0x04
   360f8:	2c 15       	cp	r18, r12
   360fa:	3d 05       	cpc	r19, r13
   360fc:	4e 05       	cpc	r20, r14
   360fe:	5f 05       	cpc	r21, r15
   36100:	10 f4       	brcc	.+4      	; 0x36106 <calculate_trapezoid_for_block(block_t*, float, float)+0x3de>
   36102:	69 01       	movw	r12, r18
   36104:	7a 01       	movw	r14, r20
            decelerate_steps = block->step_event_count.wide;
        accelerate_steps = block->step_event_count.wide - decelerate_steps;
    }

#ifdef LIN_ADVANCE
    if (block->use_advance_lead) {
   36106:	2b 8d       	ldd	r18, Y+27	; 0x1b
   36108:	22 23       	and	r18, r18
   3610a:	09 f4       	brne	.+2      	; 0x3610e <calculate_trapezoid_for_block(block_t*, float, float)+0x3e6>
   3610c:	69 c0       	rjmp	.+210    	; 0x361e0 <calculate_trapezoid_for_block(block_t*, float, float)+0x4b8>
        if(!accelerate_steps || !decelerate_steps) {
   3610e:	c1 14       	cp	r12, r1
   36110:	d1 04       	cpc	r13, r1
   36112:	e1 04       	cpc	r14, r1
   36114:	f1 04       	cpc	r15, r1
   36116:	09 f4       	brne	.+2      	; 0x3611a <calculate_trapezoid_for_block(block_t*, float, float)+0x3f2>
   36118:	66 c0       	rjmp	.+204    	; 0x361e6 <calculate_trapezoid_for_block(block_t*, float, float)+0x4be>
            // accelerate_steps=0: deceleration-only ramp, max_rate is effectively unused
            // decelerate_steps=0: acceleration-only ramp, max_rate _is_ final_rate
            max_adv_steps = final_adv_steps;
   3611a:	4d 89       	ldd	r20, Y+21	; 0x15
   3611c:	8e 89       	ldd	r24, Y+22	; 0x16
        accelerate_steps = block->step_event_count.wide - decelerate_steps;
    }

#ifdef LIN_ADVANCE
    if (block->use_advance_lead) {
        if(!accelerate_steps || !decelerate_steps) {
   3611e:	41 14       	cp	r4, r1
   36120:	51 04       	cpc	r5, r1
   36122:	61 04       	cpc	r6, r1
   36124:	71 04       	cpc	r7, r1
   36126:	09 f4       	brne	.+2      	; 0x3612a <calculate_trapezoid_for_block(block_t*, float, float)+0x402>
   36128:	3d cf       	rjmp	.-390    	; 0x35fa4 <calculate_trapezoid_for_block(block_t*, float, float)+0x27c>
            // accelerate_steps=0: deceleration-only ramp, max_rate is effectively unused
            // decelerate_steps=0: acceleration-only ramp, max_rate _is_ final_rate
            max_adv_steps = final_adv_steps;
        } else {
            float max_rate = sqrt(acceleration_x2 * accelerate_steps + initial_rate_sqr);
   3612a:	a7 01       	movw	r20, r14
   3612c:	96 01       	movw	r18, r12
   3612e:	69 85       	ldd	r22, Y+9	; 0x09
   36130:	7a 85       	ldd	r23, Y+10	; 0x0a
   36132:	8b 85       	ldd	r24, Y+11	; 0x0b
   36134:	9c 85       	ldd	r25, Y+12	; 0x0c
   36136:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   3613a:	2d 85       	ldd	r18, Y+13	; 0x0d
   3613c:	3e 85       	ldd	r19, Y+14	; 0x0e
   3613e:	4f 85       	ldd	r20, Y+15	; 0x0f
   36140:	58 89       	ldd	r21, Y+16	; 0x10
   36142:	62 0f       	add	r22, r18
   36144:	73 1f       	adc	r23, r19
   36146:	84 1f       	adc	r24, r20
   36148:	95 1f       	adc	r25, r21
   3614a:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   3614e:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
            max_adv_steps = max_rate * block->adv_comp;
   36152:	f1 01       	movw	r30, r2
   36154:	ec 5a       	subi	r30, 0xAC	; 172
   36156:	ff 4f       	sbci	r31, 0xFF	; 255
   36158:	20 81       	ld	r18, Z
   3615a:	31 81       	ldd	r19, Z+1	; 0x01
   3615c:	42 81       	ldd	r20, Z+2	; 0x02
   3615e:	53 81       	ldd	r21, Z+3	; 0x03
   36160:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36164:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   36168:	46 2f       	mov	r20, r22
   3616a:	87 2f       	mov	r24, r23
  uint32_t accelerate_steps  = (nominal_rate_sqr - initial_rate_sqr + acceleration_x2 - 1) / acceleration_x2;
  // floor(estimate_acceleration_distance(block->nominal_rate, final_rate, -acceleration));
  uint32_t decelerate_steps  = (nominal_rate_sqr - final_rate_sqr) / acceleration_x2;
  uint32_t accel_decel_steps = accelerate_steps + decelerate_steps;
  // Size of Plateau of Nominal Rate.
  uint32_t plateau_steps     = 0;
   3616c:	41 2c       	mov	r4, r1
   3616e:	51 2c       	mov	r5, r1
   36170:	32 01       	movw	r6, r4
   36172:	18 cf       	rjmp	.-464    	; 0x35fa4 <calculate_trapezoid_for_block(block_t*, float, float)+0x27c>
            accelerate_steps = block->step_event_count.wide;
    } else {
#if 0
        decelerate_steps = (block->step_event_count >> 1) + (initial_rate_sqr - final_rate_sqr + (block->step_event_count & 1) * acceleration_x2) / acceleration_x4;
#else
        decelerate_steps = initial_rate_sqr - final_rate_sqr;
   36174:	6d 85       	ldd	r22, Y+13	; 0x0d
   36176:	7e 85       	ldd	r23, Y+14	; 0x0e
   36178:	8f 85       	ldd	r24, Y+15	; 0x0f
   3617a:	98 89       	ldd	r25, Y+16	; 0x10
   3617c:	c9 88       	ldd	r12, Y+17	; 0x11
   3617e:	da 88       	ldd	r13, Y+18	; 0x12
   36180:	eb 88       	ldd	r14, Y+19	; 0x13
   36182:	fc 88       	ldd	r15, Y+20	; 0x14
   36184:	6c 19       	sub	r22, r12
   36186:	7d 09       	sbc	r23, r13
   36188:	8e 09       	sbc	r24, r14
   3618a:	9f 09       	sbc	r25, r15
        if (block->step_event_count.wide & 1)
   3618c:	cd 80       	ldd	r12, Y+5	; 0x05
   3618e:	de 80       	ldd	r13, Y+6	; 0x06
   36190:	ef 80       	ldd	r14, Y+7	; 0x07
   36192:	f8 84       	ldd	r15, Y+8	; 0x08
   36194:	cd 28       	or	r12, r13
   36196:	ce 28       	or	r12, r14
   36198:	cf 28       	or	r12, r15
   3619a:	41 f0       	breq	.+16     	; 0x361ac <calculate_trapezoid_for_block(block_t*, float, float)+0x484>
            decelerate_steps += acceleration_x2;
   3619c:	c9 84       	ldd	r12, Y+9	; 0x09
   3619e:	da 84       	ldd	r13, Y+10	; 0x0a
   361a0:	eb 84       	ldd	r14, Y+11	; 0x0b
   361a2:	fc 84       	ldd	r15, Y+12	; 0x0c
   361a4:	6c 0d       	add	r22, r12
   361a6:	7d 1d       	adc	r23, r13
   361a8:	8e 1d       	adc	r24, r14
   361aa:	9f 1d       	adc	r25, r15
        decelerate_steps /= acceleration_x4;
   361ac:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
        decelerate_steps += (block->step_event_count.wide >> 1);
   361b0:	82 0e       	add	r8, r18
   361b2:	93 1e       	adc	r9, r19
   361b4:	a4 1e       	adc	r10, r20
   361b6:	b5 1e       	adc	r11, r21
   361b8:	49 80       	ldd	r4, Y+1	; 0x01
   361ba:	5a 80       	ldd	r5, Y+2	; 0x02
   361bc:	6b 80       	ldd	r6, Y+3	; 0x03
   361be:	7c 80       	ldd	r7, Y+4	; 0x04
   361c0:	84 14       	cp	r8, r4
   361c2:	95 04       	cpc	r9, r5
   361c4:	a6 04       	cpc	r10, r6
   361c6:	b7 04       	cpc	r11, r7
   361c8:	10 f4       	brcc	.+4      	; 0x361ce <calculate_trapezoid_for_block(block_t*, float, float)+0x4a6>
   361ca:	24 01       	movw	r4, r8
   361cc:	35 01       	movw	r6, r10
#endif
        if (decelerate_steps > block->step_event_count.wide)
            decelerate_steps = block->step_event_count.wide;
        accelerate_steps = block->step_event_count.wide - decelerate_steps;
   361ce:	c9 80       	ldd	r12, Y+1	; 0x01
   361d0:	da 80       	ldd	r13, Y+2	; 0x02
   361d2:	eb 80       	ldd	r14, Y+3	; 0x03
   361d4:	fc 80       	ldd	r15, Y+4	; 0x04
   361d6:	c4 18       	sub	r12, r4
   361d8:	d5 08       	sbc	r13, r5
   361da:	e6 08       	sbc	r14, r6
   361dc:	f7 08       	sbc	r15, r7
   361de:	93 cf       	rjmp	.-218    	; 0x36106 <calculate_trapezoid_for_block(block_t*, float, float)+0x3de>
  // Size of Plateau of Nominal Rate.
  uint32_t plateau_steps     = 0;

#ifdef LIN_ADVANCE
  uint16_t final_adv_steps = 0;
  uint16_t max_adv_steps = 0;
   361e0:	40 e0       	ldi	r20, 0x00	; 0
   361e2:	80 e0       	ldi	r24, 0x00	; 0
   361e4:	c3 cf       	rjmp	.-122    	; 0x3616c <calculate_trapezoid_for_block(block_t*, float, float)+0x444>
#ifdef LIN_ADVANCE
    if (block->use_advance_lead) {
        if(!accelerate_steps || !decelerate_steps) {
            // accelerate_steps=0: deceleration-only ramp, max_rate is effectively unused
            // decelerate_steps=0: acceleration-only ramp, max_rate _is_ final_rate
            max_adv_steps = final_adv_steps;
   361e6:	4d 89       	ldd	r20, Y+21	; 0x15
   361e8:	8e 89       	ldd	r24, Y+22	; 0x16
   361ea:	c0 cf       	rjmp	.-128    	; 0x3616c <calculate_trapezoid_for_block(block_t*, float, float)+0x444>

000361ec <verifySpace()>:
  while (!(UCSR0A & _BV(UDRE0)));
  UDR0 = ch;
}

static void verifySpace() {
  if (getch() != CRC_EOP) {
   361ec:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   361f0:	80 32       	cpi	r24, 0x20	; 32
   361f2:	29 f0       	breq	.+10     	; 0x361fe <verifySpace()+0x12>
    putch(STK_FAILED);
   361f4:	81 e1       	ldi	r24, 0x11	; 17
   361f6:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
    softReset();
   361fa:	0e 94 d3 66 	call	0xcda6	; 0xcda6 <softReset>
  }
  putch(STK_INSYNC);
   361fe:	84 e1       	ldi	r24, 0x14	; 20
   36200:	0d 94 77 ae 	jmp	0x35cee	; 0x35cee <putch(char)>

00036204 <getNch(unsigned char)>:
}

static void getNch(uint8_t count) {
   36204:	cf 93       	push	r28
   36206:	c8 2f       	mov	r28, r24
  do getch(); while (--count);
   36208:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3620c:	c1 50       	subi	r28, 0x01	; 1
   3620e:	e1 f7       	brne	.-8      	; 0x36208 <getNch(unsigned char)+0x4>
  verifySpace();
}
   36210:	cf 91       	pop	r28
  putch(STK_INSYNC);
}

static void getNch(uint8_t count) {
  do getch(); while (--count);
  verifySpace();
   36212:	0d 94 f6 b0 	jmp	0x361ec	; 0x361ec <verifySpace()>

00036216 <menu_draw_P(char, char const*, int)>:
/// @brief Draw the label and value for a menu edit item
/// @param chr 1 byte character
/// @param str String residing in program memory (PROGMEM)
/// @param val value to render, ranges from -999 to 9999
static void menu_draw_P(const char chr, const char* str, const int16_t val)
{
   36216:	0f 93       	push	r16
   36218:	1f 93       	push	r17
   3621a:	cf 93       	push	r28
   3621c:	df 93       	push	r29
   3621e:	eb 01       	movw	r28, r22
   36220:	14 2f       	mov	r17, r20
   36222:	05 2f       	mov	r16, r21
	lcd_putc(chr);
   36224:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
	lcd_puts_P(str);
   36228:	ce 01       	movw	r24, r28
   3622a:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
	lcd_putc(':');
   3622e:	8a e3       	ldi	r24, 0x3A	; 58
   36230:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
   36234:	ce 01       	movw	r24, r28
   36236:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>

	// Padding to compensate variable string length
	const uint8_t len = strlen_P(str);
	lcd_space((LCD_WIDTH - 4) - (2 + len));
   3623a:	9e e0       	ldi	r25, 0x0E	; 14
   3623c:	98 1b       	sub	r25, r24
   3623e:	89 2f       	mov	r24, r25
   36240:	0e 94 5d 6e 	call	0xdcba	; 0xdcba <lcd_space(unsigned char)>

	// Right adjusted value
	lcd_printf_P(PSTR("%4d"), val);
   36244:	0f 93       	push	r16
   36246:	1f 93       	push	r17
   36248:	8d ee       	ldi	r24, 0xED	; 237
   3624a:	9a ea       	ldi	r25, 0xAA	; 170
   3624c:	9f 93       	push	r25
   3624e:	8f 93       	push	r24
   36250:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   36254:	0f 90       	pop	r0
   36256:	0f 90       	pop	r0
   36258:	0f 90       	pop	r0
   3625a:	0f 90       	pop	r0
}
   3625c:	df 91       	pop	r29
   3625e:	cf 91       	pop	r28
   36260:	1f 91       	pop	r17
   36262:	0f 91       	pop	r16
   36264:	08 95       	ret

00036266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>:

// Add a new linear movement to the buffer. steps_x, _y and _z is the absolute position in
// mm. Microseconds specify how many microseconds the move should take to perform. To aid acceleration
// calculation the caller must also provide the physical length of the line in millimeters.
void plan_buffer_line(float x, float y, float z, const float &e, float feed_rate, const float* gcode_start_position, uint16_t segment_idx)
{
   36266:	2f 92       	push	r2
   36268:	3f 92       	push	r3
   3626a:	4f 92       	push	r4
   3626c:	5f 92       	push	r5
   3626e:	6f 92       	push	r6
   36270:	7f 92       	push	r7
   36272:	8f 92       	push	r8
   36274:	9f 92       	push	r9
   36276:	af 92       	push	r10
   36278:	bf 92       	push	r11
   3627a:	cf 92       	push	r12
   3627c:	df 92       	push	r13
   3627e:	ef 92       	push	r14
   36280:	ff 92       	push	r15
   36282:	0f 93       	push	r16
   36284:	1f 93       	push	r17
   36286:	cf 93       	push	r28
   36288:	df 93       	push	r29
   3628a:	cd b7       	in	r28, 0x3d	; 61
   3628c:	de b7       	in	r29, 0x3e	; 62
   3628e:	c5 58       	subi	r28, 0x85	; 133
   36290:	d1 09       	sbc	r29, r1
   36292:	0f b6       	in	r0, 0x3f	; 63
   36294:	f8 94       	cli
   36296:	de bf       	out	0x3e, r29	; 62
   36298:	0f be       	out	0x3f, r0	; 63
   3629a:	cd bf       	out	0x3d, r28	; 61
   3629c:	69 a3       	std	Y+33, r22	; 0x21
   3629e:	7a a3       	std	Y+34, r23	; 0x22
   362a0:	8b a3       	std	Y+35, r24	; 0x23
   362a2:	9c a3       	std	Y+36, r25	; 0x24
   362a4:	2d a3       	std	Y+37, r18	; 0x25
   362a6:	3e a3       	std	Y+38, r19	; 0x26
   362a8:	4f a3       	std	Y+39, r20	; 0x27
   362aa:	58 a7       	std	Y+40, r21	; 0x28
   362ac:	a8 96       	adiw	r28, 0x28	; 40
   362ae:	ec ae       	std	Y+60, r14	; 0x3c
   362b0:	fd ae       	std	Y+61, r15	; 0x3d
   362b2:	0e af       	std	Y+62, r16	; 0x3e
   362b4:	1f af       	std	Y+63, r17	; 0x3f
   362b6:	a8 97       	sbiw	r28, 0x28	; 40
   362b8:	aa 96       	adiw	r28, 0x2a	; 42
   362ba:	df ae       	std	Y+63, r13	; 0x3f
   362bc:	ce ae       	std	Y+62, r12	; 0x3e
   362be:	aa 97       	sbiw	r28, 0x2a	; 42
   362c0:	89 aa       	std	Y+49, r8	; 0x31
   362c2:	99 ae       	std	Y+57, r9	; 0x39
   362c4:	ad ae       	std	Y+61, r10	; 0x3d
   362c6:	bd aa       	std	Y+53, r11	; 0x35
   362c8:	c5 56       	subi	r28, 0x65	; 101
   362ca:	df 4f       	sbci	r29, 0xFF	; 255
   362cc:	08 81       	ld	r16, Y
   362ce:	19 81       	ldd	r17, Y+1	; 0x01
   362d0:	cb 59       	subi	r28, 0x9B	; 155
   362d2:	d0 40       	sbci	r29, 0x00	; 0
  // CRITICAL_SECTION_START; //prevent stack overflow in ISR
  // printf_P(PSTR("plan_buffer_line(%f, %f, %f, %f, %f, %u, [%f,%f,%f,%f], %u)\n"), x, y, z, e, feed_rate, extruder, gcode_start_position[0], gcode_start_position[1], gcode_start_position[2], gcode_start_position[3], segment_idx);
  // CRITICAL_SECTION_END;

  // Calculate the buffer head after we push this byte
  uint8_t next_buffer_head = next_block_index(block_buffer_head);
   362d4:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
static bool plan_reset_next_e_sched;

// Returns the index of the next block in the ring buffer
// NOTE: Removed modulo (%) operator, which uses an expensive divide and multiplication.
static inline uint8_t next_block_index(uint8_t block_index) {
  if (++ block_index == BLOCK_BUFFER_SIZE)
   362d8:	8f 5f       	subi	r24, 0xFF	; 255
   362da:	a1 96       	adiw	r28, 0x21	; 33
   362dc:	8f af       	std	Y+63, r24	; 0x3f
   362de:	a1 97       	sbiw	r28, 0x21	; 33
   362e0:	80 31       	cpi	r24, 0x10	; 16
   362e2:	19 f4       	brne	.+6      	; 0x362ea <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x84>
    block_index = 0;
   362e4:	a1 96       	adiw	r28, 0x21	; 33
   362e6:	1f ae       	std	Y+63, r1	; 0x3f
   362e8:	a1 97       	sbiw	r28, 0x21	; 33
  // Calculate the buffer head after we push this byte
  uint8_t next_buffer_head = next_block_index(block_buffer_head);

  // If the buffer is full: good! That means we are well ahead of the robot.
  // Rest here until there is room in the buffer.
  if (block_buffer_tail == next_buffer_head) {
   362ea:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   362ee:	a1 96       	adiw	r28, 0x21	; 33
   362f0:	2f ad       	ldd	r18, Y+63	; 0x3f
   362f2:	a1 97       	sbiw	r28, 0x21	; 33
   362f4:	82 13       	cpse	r24, r18
   362f6:	0f c0       	rjmp	.+30     	; 0x36316 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xb0>
      do {
          manage_heater();
   362f8:	0f 94 68 39 	call	0x272d0	; 0x272d0 <manage_heater()>
          // Vojtech: Don't disable motors inside the planner!
          manage_inactivity(false);
   362fc:	80 e0       	ldi	r24, 0x00	; 0
   362fe:	0e 94 3e 8a 	call	0x1147c	; 0x1147c <manage_inactivity(bool)>
          lcd_update(0);
   36302:	80 e0       	ldi	r24, 0x00	; 0
   36304:	0e 94 2e 6e 	call	0xdc5c	; 0xdc5c <lcd_update(unsigned char)>
      } while (block_buffer_tail == next_buffer_head);
   36308:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   3630c:	a1 96       	adiw	r28, 0x21	; 33
   3630e:	3f ad       	ldd	r19, Y+63	; 0x3f
   36310:	a1 97       	sbiw	r28, 0x21	; 33
   36312:	83 17       	cp	r24, r19
   36314:	89 f3       	breq	.-30     	; 0x362f8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x92>
  }
#ifdef PLANNER_DIAGNOSTICS
  planner_update_queue_min_counter();
#endif /* PLANNER_DIAGNOSTICS */
  if(planner_aborted) {
   36316:	40 91 ac 0d 	lds	r20, 0x0DAC	; 0x800dac <planner_aborted>
   3631a:	a2 96       	adiw	r28, 0x22	; 34
   3631c:	4f af       	std	Y+63, r20	; 0x3f
   3631e:	a2 97       	sbiw	r28, 0x22	; 34
   36320:	44 23       	and	r20, r20
   36322:	11 f1       	breq	.+68     	; 0x36368 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x102>
      // avoid planning the block early if aborted
      SERIAL_ECHO_START;
   36324:	80 ed       	ldi	r24, 0xD0	; 208
   36326:	9a ea       	ldi	r25, 0xAA	; 170
   36328:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_ECHOLNRPGM(_n("Move aborted"));
   3632c:	86 e9       	ldi	r24, 0x96	; 150
   3632e:	90 e7       	ldi	r25, 0x70	; 112
   36330:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
  // The stepper timer interrupt will run continuously from now on.
  // If there are no planner blocks to be executed by the stepper routine,
  // the stepper interrupt ticks at 1kHz to wake up and pick a block
  // from the planner queue if available.
  ENABLE_STEPPER_DRIVER_INTERRUPT();
}
   36334:	cb 57       	subi	r28, 0x7B	; 123
   36336:	df 4f       	sbci	r29, 0xFF	; 255
   36338:	0f b6       	in	r0, 0x3f	; 63
   3633a:	f8 94       	cli
   3633c:	de bf       	out	0x3e, r29	; 62
   3633e:	0f be       	out	0x3f, r0	; 63
   36340:	cd bf       	out	0x3d, r28	; 61
   36342:	df 91       	pop	r29
   36344:	cf 91       	pop	r28
   36346:	1f 91       	pop	r17
   36348:	0f 91       	pop	r16
   3634a:	ff 90       	pop	r15
   3634c:	ef 90       	pop	r14
   3634e:	df 90       	pop	r13
   36350:	cf 90       	pop	r12
   36352:	bf 90       	pop	r11
   36354:	af 90       	pop	r10
   36356:	9f 90       	pop	r9
   36358:	8f 90       	pop	r8
   3635a:	7f 90       	pop	r7
   3635c:	6f 90       	pop	r6
   3635e:	5f 90       	pop	r5
   36360:	4f 90       	pop	r4
   36362:	3f 90       	pop	r3
   36364:	2f 90       	pop	r2
   36366:	08 95       	ret
      SERIAL_ECHOLNRPGM(_n("Move aborted"));
      return;
  }

  // Prepare to set up new block
  block_t *block = &block_buffer[block_buffer_head];
   36368:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   3636c:	29 2e       	mov	r2, r25
   3636e:	31 2c       	mov	r3, r1
   36370:	8e e6       	ldi	r24, 0x6E	; 110
   36372:	98 9f       	mul	r25, r24
   36374:	d0 01       	movw	r26, r0
   36376:	11 24       	eor	r1, r1
   36378:	a4 96       	adiw	r28, 0x24	; 36
   3637a:	bf af       	std	Y+63, r27	; 0x3f
   3637c:	ae af       	std	Y+62, r26	; 0x3e
   3637e:	a4 97       	sbiw	r28, 0x24	; 36

  // Mark block as not busy (Not executed by the stepper interrupt, could be still tinkered with.)
  block->busy = false;
   36380:	cd 01       	movw	r24, r26
   36382:	8b 53       	subi	r24, 0x3B	; 59
   36384:	99 4f       	sbci	r25, 0xF9	; 249
   36386:	fc 01       	movw	r30, r24
   36388:	e9 5b       	subi	r30, 0xB9	; 185
   3638a:	ff 4f       	sbci	r31, 0xFF	; 255
   3638c:	10 82       	st	Z, r1

  // Set sdlen for calculating sd position
  block->sdlen = 0;
   3638e:	84 59       	subi	r24, 0x94	; 148
   36390:	9f 4f       	sbci	r25, 0xFF	; 255
   36392:	fc 01       	movw	r30, r24
   36394:	11 82       	std	Z+1, r1	; 0x01
   36396:	10 82       	st	Z, r1

  // Save original start position of the move
  if (gcode_start_position)
   36398:	01 15       	cp	r16, r1
   3639a:	11 05       	cpc	r17, r1
   3639c:	11 f4       	brne	.+4      	; 0x363a2 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x13c>
   3639e:	0d 94 27 bc 	jmp	0x3784e	; 0x3784e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x15e8>
      memcpy(block->gcode_start_position, gcode_start_position, sizeof(block_t::gcode_start_position));
   363a2:	80 e1       	ldi	r24, 0x10	; 16
   363a4:	f8 01       	movw	r30, r16
   363a6:	a3 5e       	subi	r26, 0xE3	; 227
   363a8:	b8 4f       	sbci	r27, 0xF8	; 248
  else
      memcpy(block->gcode_start_position, current_position, sizeof(block_t::gcode_start_position));
   363aa:	01 90       	ld	r0, Z+
   363ac:	0d 92       	st	X+, r0
   363ae:	8a 95       	dec	r24
   363b0:	e1 f7       	brne	.-8      	; 0x363aa <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x144>

  // Save the index of this segment (when a single G0/1/2/3 command plans multiple segments)
  block->segment_idx = segment_idx;
   363b2:	8e e6       	ldi	r24, 0x6E	; 110
   363b4:	82 9d       	mul	r24, r2
   363b6:	80 01       	movw	r16, r0
   363b8:	83 9d       	mul	r24, r3
   363ba:	10 0d       	add	r17, r0
   363bc:	11 24       	eor	r1, r1
   363be:	0b 53       	subi	r16, 0x3B	; 59
   363c0:	19 4f       	sbci	r17, 0xF9	; 249
   363c2:	f8 01       	movw	r30, r16
   363c4:	e8 59       	subi	r30, 0x98	; 152
   363c6:	ff 4f       	sbci	r31, 0xFF	; 255
   363c8:	c3 56       	subi	r28, 0x63	; 99
   363ca:	df 4f       	sbci	r29, 0xFF	; 255
   363cc:	88 81       	ld	r24, Y
   363ce:	99 81       	ldd	r25, Y+1	; 0x01
   363d0:	cd 59       	subi	r28, 0x9D	; 157
   363d2:	d0 40       	sbci	r29, 0x00	; 0
   363d4:	91 83       	std	Z+1, r25	; 0x01
   363d6:	80 83       	st	Z, r24

  // Save the global feedrate at scheduling time
  block->gcode_feedrate = feedrate;
   363d8:	06 59       	subi	r16, 0x96	; 150
   363da:	1f 4f       	sbci	r17, 0xFF	; 255
   363dc:	60 91 b8 02 	lds	r22, 0x02B8	; 0x8002b8 <feedrate>
   363e0:	70 91 b9 02 	lds	r23, 0x02B9	; 0x8002b9 <feedrate+0x1>
   363e4:	80 91 ba 02 	lds	r24, 0x02BA	; 0x8002ba <feedrate+0x2>
   363e8:	90 91 bb 02 	lds	r25, 0x02BB	; 0x8002bb <feedrate+0x3>
   363ec:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   363f0:	d8 01       	movw	r26, r16
   363f2:	6d 93       	st	X+, r22
   363f4:	7c 93       	st	X, r23

  // Reset the starting E position when requested
  if (plan_reset_next_e_queue)
   363f6:	80 91 b8 04 	lds	r24, 0x04B8	; 0x8004b8 <_ZL23plan_reset_next_e_queue.lto_priv.488>
   363fa:	88 23       	and	r24, r24
   363fc:	a9 f0       	breq	.+42     	; 0x36428 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1c2>
  {
      position[E_AXIS] = 0;
   363fe:	10 92 af 06 	sts	0x06AF, r1	; 0x8006af <position+0xc>
   36402:	10 92 b0 06 	sts	0x06B0, r1	; 0x8006b0 <position+0xd>
   36406:	10 92 b1 06 	sts	0x06B1, r1	; 0x8006b1 <position+0xe>
   3640a:	10 92 b2 06 	sts	0x06B2, r1	; 0x8006b2 <position+0xf>
#ifdef LIN_ADVANCE
      position_float[E_AXIS] = 0;
   3640e:	10 92 d9 04 	sts	0x04D9, r1	; 0x8004d9 <position_float+0xc>
   36412:	10 92 da 04 	sts	0x04DA, r1	; 0x8004da <position_float+0xd>
   36416:	10 92 db 04 	sts	0x04DB, r1	; 0x8004db <position_float+0xe>
   3641a:	10 92 dc 04 	sts	0x04DC, r1	; 0x8004dc <position_float+0xf>
#endif

      // the block might still be discarded later, but we need to ensure the lower-level
      // count_position is also reset correctly for consistent results!
      plan_reset_next_e_queue = false;
   3641e:	10 92 b8 04 	sts	0x04B8, r1	; 0x8004b8 <_ZL23plan_reset_next_e_queue.lto_priv.488>
      plan_reset_next_e_sched = true;
   36422:	81 e0       	ldi	r24, 0x01	; 1
   36424:	80 93 b7 04 	sts	0x04B7, r24	; 0x8004b7 <_ZL23plan_reset_next_e_sched.lto_priv.489>
  }

  // Apply the machine correction matrix.
  world2machine(x, y);
   36428:	be 01       	movw	r22, r28
   3642a:	6b 5d       	subi	r22, 0xDB	; 219
   3642c:	7f 4f       	sbci	r23, 0xFF	; 255
   3642e:	ce 01       	movw	r24, r28
   36430:	81 96       	adiw	r24, 0x21	; 33
   36432:	0e 94 89 69 	call	0xd312	; 0xd312 <world2machine(float&, float&)>

  // The target position of the tool in absolute steps
  // Calculate target position in absolute steps
  //this should be done after the wait, because otherwise a M92 code within the gcode disrupts this calculation somehow
  long target[4];
  target[X_AXIS] = lround(x*cs.axis_steps_per_mm[X_AXIS]);
   36436:	c9 a0       	ldd	r12, Y+33	; 0x21
   36438:	da a0       	ldd	r13, Y+34	; 0x22
   3643a:	eb a0       	ldd	r14, Y+35	; 0x23
   3643c:	fc a0       	ldd	r15, Y+36	; 0x24
   3643e:	20 91 c2 0d 	lds	r18, 0x0DC2	; 0x800dc2 <cs+0x4>
   36442:	30 91 c3 0d 	lds	r19, 0x0DC3	; 0x800dc3 <cs+0x5>
   36446:	40 91 c4 0d 	lds	r20, 0x0DC4	; 0x800dc4 <cs+0x6>
   3644a:	50 91 c5 0d 	lds	r21, 0x0DC5	; 0x800dc5 <cs+0x7>
   3644e:	c7 01       	movw	r24, r14
   36450:	b6 01       	movw	r22, r12
   36452:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36456:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   3645a:	c2 58       	subi	r28, 0x82	; 130
   3645c:	df 4f       	sbci	r29, 0xFF	; 255
   3645e:	68 83       	st	Y, r22
   36460:	79 83       	std	Y+1, r23	; 0x01
   36462:	8a 83       	std	Y+2, r24	; 0x02
   36464:	9b 83       	std	Y+3, r25	; 0x03
   36466:	ce 57       	subi	r28, 0x7E	; 126
   36468:	d0 40       	sbci	r29, 0x00	; 0
  target[Y_AXIS] = lround(y*cs.axis_steps_per_mm[Y_AXIS]);
   3646a:	8d a0       	ldd	r8, Y+37	; 0x25
   3646c:	9e a0       	ldd	r9, Y+38	; 0x26
   3646e:	af a0       	ldd	r10, Y+39	; 0x27
   36470:	b8 a4       	ldd	r11, Y+40	; 0x28
   36472:	20 91 c6 0d 	lds	r18, 0x0DC6	; 0x800dc6 <cs+0x8>
   36476:	30 91 c7 0d 	lds	r19, 0x0DC7	; 0x800dc7 <cs+0x9>
   3647a:	40 91 c8 0d 	lds	r20, 0x0DC8	; 0x800dc8 <cs+0xa>
   3647e:	50 91 c9 0d 	lds	r21, 0x0DC9	; 0x800dc9 <cs+0xb>
   36482:	c5 01       	movw	r24, r10
   36484:	b4 01       	movw	r22, r8
   36486:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3648a:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   3648e:	ce 57       	subi	r28, 0x7E	; 126
   36490:	df 4f       	sbci	r29, 0xFF	; 255
   36492:	68 83       	st	Y, r22
   36494:	79 83       	std	Y+1, r23	; 0x01
   36496:	8a 83       	std	Y+2, r24	; 0x02
   36498:	9b 83       	std	Y+3, r25	; 0x03
   3649a:	c2 58       	subi	r28, 0x82	; 130
   3649c:	d0 40       	sbci	r29, 0x00	; 0
#ifdef MESH_BED_LEVELING
    if (mbl.active){
   3649e:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
   364a2:	88 23       	and	r24, r24
   364a4:	11 f4       	brne	.+4      	; 0x364aa <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x244>
   364a6:	0d 94 2e bc 	jmp	0x3785c	; 0x3785c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x15f6>
        target[Z_AXIS] = lround((z+mbl.get_z(x, y))*cs.axis_steps_per_mm[Z_AXIS]);
   364aa:	a5 01       	movw	r20, r10
   364ac:	94 01       	movw	r18, r8
   364ae:	c7 01       	movw	r24, r14
   364b0:	b6 01       	movw	r22, r12
   364b2:	0f 94 f0 a1 	call	0x343e0	; 0x343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>
   364b6:	a8 96       	adiw	r28, 0x28	; 40
   364b8:	2c ad       	ldd	r18, Y+60	; 0x3c
   364ba:	3d ad       	ldd	r19, Y+61	; 0x3d
   364bc:	4e ad       	ldd	r20, Y+62	; 0x3e
   364be:	5f ad       	ldd	r21, Y+63	; 0x3f
   364c0:	a8 97       	sbiw	r28, 0x28	; 40
   364c2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   364c6:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   364ca:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   364ce:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   364d2:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
    }else{
        target[Z_AXIS] = lround(z*cs.axis_steps_per_mm[Z_AXIS]);
   364d6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   364da:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   364de:	e6 96       	adiw	r28, 0x36	; 54
   364e0:	6c af       	std	Y+60, r22	; 0x3c
   364e2:	7d af       	std	Y+61, r23	; 0x3d
   364e4:	8e af       	std	Y+62, r24	; 0x3e
   364e6:	9f af       	std	Y+63, r25	; 0x3f
   364e8:	e6 97       	sbiw	r28, 0x36	; 54
    }
#else
    target[Z_AXIS] = lround(z*cs.axis_steps_per_mm[Z_AXIS]);
#endif // ENABLE_MESH_BED_LEVELING
  target[E_AXIS] = lround(e*cs.axis_steps_per_mm[E_AXIS]);
   364ea:	aa 96       	adiw	r28, 0x2a	; 42
   364ec:	ee ad       	ldd	r30, Y+62	; 0x3e
   364ee:	ff ad       	ldd	r31, Y+63	; 0x3f
   364f0:	aa 97       	sbiw	r28, 0x2a	; 42
   364f2:	80 80       	ld	r8, Z
   364f4:	91 80       	ldd	r9, Z+1	; 0x01
   364f6:	a2 80       	ldd	r10, Z+2	; 0x02
   364f8:	b3 80       	ldd	r11, Z+3	; 0x03
   364fa:	20 91 ce 0d 	lds	r18, 0x0DCE	; 0x800dce <cs+0x10>
   364fe:	30 91 cf 0d 	lds	r19, 0x0DCF	; 0x800dcf <cs+0x11>
   36502:	40 91 d0 0d 	lds	r20, 0x0DD0	; 0x800dd0 <cs+0x12>
   36506:	50 91 d1 0d 	lds	r21, 0x0DD1	; 0x800dd1 <cs+0x13>
   3650a:	c5 01       	movw	r24, r10
   3650c:	b4 01       	movw	r22, r8
   3650e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36512:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   36516:	ae 96       	adiw	r28, 0x2e	; 46
   36518:	6c af       	std	Y+60, r22	; 0x3c
   3651a:	7d af       	std	Y+61, r23	; 0x3d
   3651c:	8e af       	std	Y+62, r24	; 0x3e
   3651e:	9f af       	std	Y+63, r25	; 0x3f
   36520:	ae 97       	sbiw	r28, 0x2e	; 46

  // Calculate subtraction to re-use result in many places
  // This saves memory and speeds up calculations
  int32_t de = target[E_AXIS] - position[E_AXIS];
   36522:	80 91 af 06 	lds	r24, 0x06AF	; 0x8006af <position+0xc>
   36526:	90 91 b0 06 	lds	r25, 0x06B0	; 0x8006b0 <position+0xd>
   3652a:	a0 91 b1 06 	lds	r26, 0x06B1	; 0x8006b1 <position+0xe>
   3652e:	b0 91 b2 06 	lds	r27, 0x06B2	; 0x8006b2 <position+0xf>
   36532:	ae 96       	adiw	r28, 0x2e	; 46
   36534:	4c ac       	ldd	r4, Y+60	; 0x3c
   36536:	5d ac       	ldd	r5, Y+61	; 0x3d
   36538:	6e ac       	ldd	r6, Y+62	; 0x3e
   3653a:	7f ac       	ldd	r7, Y+63	; 0x3f
   3653c:	ae 97       	sbiw	r28, 0x2e	; 46
   3653e:	48 1a       	sub	r4, r24
   36540:	59 0a       	sbc	r5, r25
   36542:	6a 0a       	sbc	r6, r26
   36544:	7b 0a       	sbc	r7, r27
  int32_t dx = target[X_AXIS] - position[X_AXIS];
   36546:	80 91 a3 06 	lds	r24, 0x06A3	; 0x8006a3 <position>
   3654a:	90 91 a4 06 	lds	r25, 0x06A4	; 0x8006a4 <position+0x1>
   3654e:	a0 91 a5 06 	lds	r26, 0x06A5	; 0x8006a5 <position+0x2>
   36552:	b0 91 a6 06 	lds	r27, 0x06A6	; 0x8006a6 <position+0x3>
   36556:	c2 58       	subi	r28, 0x82	; 130
   36558:	df 4f       	sbci	r29, 0xFF	; 255
   3655a:	c8 80       	ld	r12, Y
   3655c:	d9 80       	ldd	r13, Y+1	; 0x01
   3655e:	ea 80       	ldd	r14, Y+2	; 0x02
   36560:	fb 80       	ldd	r15, Y+3	; 0x03
   36562:	ce 57       	subi	r28, 0x7E	; 126
   36564:	d0 40       	sbci	r29, 0x00	; 0
   36566:	c8 1a       	sub	r12, r24
   36568:	d9 0a       	sbc	r13, r25
   3656a:	ea 0a       	sbc	r14, r26
   3656c:	fb 0a       	sbc	r15, r27
  int32_t dy = target[Y_AXIS] - position[Y_AXIS];
   3656e:	80 91 a7 06 	lds	r24, 0x06A7	; 0x8006a7 <position+0x4>
   36572:	90 91 a8 06 	lds	r25, 0x06A8	; 0x8006a8 <position+0x5>
   36576:	a0 91 a9 06 	lds	r26, 0x06A9	; 0x8006a9 <position+0x6>
   3657a:	b0 91 aa 06 	lds	r27, 0x06AA	; 0x8006aa <position+0x7>
   3657e:	ce 57       	subi	r28, 0x7E	; 126
   36580:	df 4f       	sbci	r29, 0xFF	; 255
   36582:	28 81       	ld	r18, Y
   36584:	39 81       	ldd	r19, Y+1	; 0x01
   36586:	4a 81       	ldd	r20, Y+2	; 0x02
   36588:	5b 81       	ldd	r21, Y+3	; 0x03
   3658a:	c2 58       	subi	r28, 0x82	; 130
   3658c:	d0 40       	sbci	r29, 0x00	; 0
   3658e:	28 1b       	sub	r18, r24
   36590:	39 0b       	sbc	r19, r25
   36592:	4a 0b       	sbc	r20, r26
   36594:	5b 0b       	sbc	r21, r27
   36596:	29 a7       	std	Y+41, r18	; 0x29
   36598:	3a a7       	std	Y+42, r19	; 0x2a
   3659a:	4b a7       	std	Y+43, r20	; 0x2b
   3659c:	5c a7       	std	Y+44, r21	; 0x2c
  int32_t dz = target[Z_AXIS] - position[Z_AXIS];
   3659e:	80 91 ab 06 	lds	r24, 0x06AB	; 0x8006ab <position+0x8>
   365a2:	90 91 ac 06 	lds	r25, 0x06AC	; 0x8006ac <position+0x9>
   365a6:	a0 91 ad 06 	lds	r26, 0x06AD	; 0x8006ad <position+0xa>
   365aa:	b0 91 ae 06 	lds	r27, 0x06AE	; 0x8006ae <position+0xb>
   365ae:	e6 96       	adiw	r28, 0x36	; 54
   365b0:	2c ad       	ldd	r18, Y+60	; 0x3c
   365b2:	3d ad       	ldd	r19, Y+61	; 0x3d
   365b4:	4e ad       	ldd	r20, Y+62	; 0x3e
   365b6:	5f ad       	ldd	r21, Y+63	; 0x3f
   365b8:	e6 97       	sbiw	r28, 0x36	; 54
   365ba:	28 1b       	sub	r18, r24
   365bc:	39 0b       	sbc	r19, r25
   365be:	4a 0b       	sbc	r20, r26
   365c0:	5b 0b       	sbc	r21, r27
   365c2:	2d a7       	std	Y+45, r18	; 0x2d
   365c4:	3e a7       	std	Y+46, r19	; 0x2e
   365c6:	4f a7       	std	Y+47, r20	; 0x2f
   365c8:	58 ab       	std	Y+48, r21	; 0x30

  #ifdef PREVENT_DANGEROUS_EXTRUDE
  if(de)
   365ca:	41 14       	cp	r4, r1
   365cc:	51 04       	cpc	r5, r1
   365ce:	61 04       	cpc	r6, r1
   365d0:	71 04       	cpc	r7, r1
   365d2:	09 f4       	brne	.+2      	; 0x365d6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x370>
   365d4:	80 c0       	rjmp	.+256    	; 0x366d6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x470>
  {
    if((int)degHotend(active_extruder)<extrude_min_temp)
   365d6:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   365da:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   365de:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   365e2:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   365e6:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   365ea:	20 91 6b 02 	lds	r18, 0x026B	; 0x80026b <extrude_min_temp>
   365ee:	30 91 6c 02 	lds	r19, 0x026C	; 0x80026c <extrude_min_temp+0x1>
   365f2:	62 17       	cp	r22, r18
   365f4:	73 07       	cpc	r23, r19
   365f6:	0c f5       	brge	.+66     	; 0x3663a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x3d4>
    {
      position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
   365f8:	ae 96       	adiw	r28, 0x2e	; 46
   365fa:	8c ad       	ldd	r24, Y+60	; 0x3c
   365fc:	9d ad       	ldd	r25, Y+61	; 0x3d
   365fe:	ae ad       	ldd	r26, Y+62	; 0x3e
   36600:	bf ad       	ldd	r27, Y+63	; 0x3f
   36602:	ae 97       	sbiw	r28, 0x2e	; 46
   36604:	80 93 af 06 	sts	0x06AF, r24	; 0x8006af <position+0xc>
   36608:	90 93 b0 06 	sts	0x06B0, r25	; 0x8006b0 <position+0xd>
   3660c:	a0 93 b1 06 	sts	0x06B1, r26	; 0x8006b1 <position+0xe>
   36610:	b0 93 b2 06 	sts	0x06B2, r27	; 0x8006b2 <position+0xf>
      #ifdef LIN_ADVANCE
      position_float[E_AXIS] = e;
   36614:	80 92 d9 04 	sts	0x04D9, r8	; 0x8004d9 <position_float+0xc>
   36618:	90 92 da 04 	sts	0x04DA, r9	; 0x8004da <position_float+0xd>
   3661c:	a0 92 db 04 	sts	0x04DB, r10	; 0x8004db <position_float+0xe>
   36620:	b0 92 dc 04 	sts	0x04DC, r11	; 0x8004dc <position_float+0xf>
      #endif
      de = 0; // no difference
      SERIAL_ECHO_START;
   36624:	80 ed       	ldi	r24, 0xD0	; 208
   36626:	9a ea       	ldi	r25, 0xAA	; 170
   36628:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_ECHOLNRPGM(_n(" cold extrusion prevented"));////MSG_ERR_COLD_EXTRUDE_STOP
   3662c:	8c e7       	ldi	r24, 0x7C	; 124
   3662e:	90 e7       	ldi	r25, 0x70	; 112
   36630:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    {
      position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
      #ifdef LIN_ADVANCE
      position_float[E_AXIS] = e;
      #endif
      de = 0; // no difference
   36634:	41 2c       	mov	r4, r1
   36636:	51 2c       	mov	r5, r1
   36638:	32 01       	movw	r6, r4
      SERIAL_ECHO_START;
      SERIAL_ECHOLNRPGM(_n(" cold extrusion prevented"));////MSG_ERR_COLD_EXTRUDE_STOP
    }

    #ifdef PREVENT_LENGTHY_EXTRUDE
    if(labs(de) > cs.axis_steps_per_mm[E_AXIS]*EXTRUDE_MAXLENGTH)
   3663a:	c3 01       	movw	r24, r6
   3663c:	b2 01       	movw	r22, r4
   3663e:	77 fe       	sbrs	r7, 7
   36640:	07 c0       	rjmp	.+14     	; 0x36650 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x3ea>
   36642:	66 27       	eor	r22, r22
   36644:	77 27       	eor	r23, r23
   36646:	cb 01       	movw	r24, r22
   36648:	64 19       	sub	r22, r4
   3664a:	75 09       	sbc	r23, r5
   3664c:	86 09       	sbc	r24, r6
   3664e:	97 09       	sbc	r25, r7
   36650:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   36654:	4b 01       	movw	r8, r22
   36656:	5c 01       	movw	r10, r24
   36658:	20 e0       	ldi	r18, 0x00	; 0
   3665a:	30 ec       	ldi	r19, 0xC0	; 192
   3665c:	4b ee       	ldi	r20, 0xEB	; 235
   3665e:	53 e4       	ldi	r21, 0x43	; 67
   36660:	60 91 ce 0d 	lds	r22, 0x0DCE	; 0x800dce <cs+0x10>
   36664:	70 91 cf 0d 	lds	r23, 0x0DCF	; 0x800dcf <cs+0x11>
   36668:	80 91 d0 0d 	lds	r24, 0x0DD0	; 0x800dd0 <cs+0x12>
   3666c:	90 91 d1 0d 	lds	r25, 0x0DD1	; 0x800dd1 <cs+0x13>
   36670:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36674:	9b 01       	movw	r18, r22
   36676:	ac 01       	movw	r20, r24
   36678:	c5 01       	movw	r24, r10
   3667a:	b4 01       	movw	r22, r8
   3667c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   36680:	18 16       	cp	r1, r24
   36682:	4c f5       	brge	.+82     	; 0x366d6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x470>
    {
      position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
   36684:	ae 96       	adiw	r28, 0x2e	; 46
   36686:	2c ad       	ldd	r18, Y+60	; 0x3c
   36688:	3d ad       	ldd	r19, Y+61	; 0x3d
   3668a:	4e ad       	ldd	r20, Y+62	; 0x3e
   3668c:	5f ad       	ldd	r21, Y+63	; 0x3f
   3668e:	ae 97       	sbiw	r28, 0x2e	; 46
   36690:	20 93 af 06 	sts	0x06AF, r18	; 0x8006af <position+0xc>
   36694:	30 93 b0 06 	sts	0x06B0, r19	; 0x8006b0 <position+0xd>
   36698:	40 93 b1 06 	sts	0x06B1, r20	; 0x8006b1 <position+0xe>
   3669c:	50 93 b2 06 	sts	0x06B2, r21	; 0x8006b2 <position+0xf>
      #ifdef LIN_ADVANCE
      position_float[E_AXIS] = e;
   366a0:	aa 96       	adiw	r28, 0x2a	; 42
   366a2:	ee ad       	ldd	r30, Y+62	; 0x3e
   366a4:	ff ad       	ldd	r31, Y+63	; 0x3f
   366a6:	aa 97       	sbiw	r28, 0x2a	; 42
   366a8:	80 81       	ld	r24, Z
   366aa:	91 81       	ldd	r25, Z+1	; 0x01
   366ac:	a2 81       	ldd	r26, Z+2	; 0x02
   366ae:	b3 81       	ldd	r27, Z+3	; 0x03
   366b0:	80 93 d9 04 	sts	0x04D9, r24	; 0x8004d9 <position_float+0xc>
   366b4:	90 93 da 04 	sts	0x04DA, r25	; 0x8004da <position_float+0xd>
   366b8:	a0 93 db 04 	sts	0x04DB, r26	; 0x8004db <position_float+0xe>
   366bc:	b0 93 dc 04 	sts	0x04DC, r27	; 0x8004dc <position_float+0xf>
      #endif
      de = 0; // no difference
      SERIAL_ECHO_START;
   366c0:	80 ed       	ldi	r24, 0xD0	; 208
   366c2:	9a ea       	ldi	r25, 0xAA	; 170
   366c4:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
      SERIAL_ECHOLNRPGM(_n(" too long extrusion prevented"));////MSG_ERR_LONG_EXTRUDE_STOP
   366c8:	8e e5       	ldi	r24, 0x5E	; 94
   366ca:	90 e7       	ldi	r25, 0x70	; 112
   366cc:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
    {
      position[E_AXIS]=target[E_AXIS]; //behave as if the move really took place, but ignore E part
      #ifdef LIN_ADVANCE
      position_float[E_AXIS] = e;
      #endif
      de = 0; // no difference
   366d0:	41 2c       	mov	r4, r1
   366d2:	51 2c       	mov	r5, r1
   366d4:	32 01       	movw	r6, r4
  #endif //PREVENT_DANGEROUS_EXTRUDE

  // Number of steps for each axis
#ifndef COREXY
// default non-h-bot planning
block->steps[X_AXIS].wide = labs(dx);
   366d6:	8e e6       	ldi	r24, 0x6E	; 110
   366d8:	82 9d       	mul	r24, r2
   366da:	f0 01       	movw	r30, r0
   366dc:	83 9d       	mul	r24, r3
   366de:	f0 0d       	add	r31, r0
   366e0:	11 24       	eor	r1, r1
   366e2:	eb 53       	subi	r30, 0x3B	; 59
   366e4:	f9 4f       	sbci	r31, 0xF9	; 249
   366e6:	d7 01       	movw	r26, r14
   366e8:	c6 01       	movw	r24, r12
   366ea:	f7 fe       	sbrs	r15, 7
   366ec:	07 c0       	rjmp	.+14     	; 0x366fc <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x496>
   366ee:	88 27       	eor	r24, r24
   366f0:	99 27       	eor	r25, r25
   366f2:	dc 01       	movw	r26, r24
   366f4:	8c 19       	sub	r24, r12
   366f6:	9d 09       	sbc	r25, r13
   366f8:	ae 09       	sbc	r26, r14
   366fa:	bf 09       	sbc	r27, r15
   366fc:	80 83       	st	Z, r24
   366fe:	91 83       	std	Z+1, r25	; 0x01
   36700:	a2 83       	std	Z+2, r26	; 0x02
   36702:	b3 83       	std	Z+3, r27	; 0x03
block->steps[Y_AXIS].wide = labs(dy);
   36704:	8e e6       	ldi	r24, 0x6E	; 110
   36706:	82 9d       	mul	r24, r2
   36708:	f0 01       	movw	r30, r0
   3670a:	83 9d       	mul	r24, r3
   3670c:	f0 0d       	add	r31, r0
   3670e:	11 24       	eor	r1, r1
   36710:	eb 53       	subi	r30, 0x3B	; 59
   36712:	f9 4f       	sbci	r31, 0xF9	; 249
   36714:	89 a5       	ldd	r24, Y+41	; 0x29
   36716:	9a a5       	ldd	r25, Y+42	; 0x2a
   36718:	ab a5       	ldd	r26, Y+43	; 0x2b
   3671a:	bc a5       	ldd	r27, Y+44	; 0x2c
   3671c:	b7 ff       	sbrs	r27, 7
   3671e:	07 c0       	rjmp	.+14     	; 0x3672e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x4c8>
   36720:	b0 95       	com	r27
   36722:	a0 95       	com	r26
   36724:	90 95       	com	r25
   36726:	81 95       	neg	r24
   36728:	9f 4f       	sbci	r25, 0xFF	; 255
   3672a:	af 4f       	sbci	r26, 0xFF	; 255
   3672c:	bf 4f       	sbci	r27, 0xFF	; 255
   3672e:	84 83       	std	Z+4, r24	; 0x04
   36730:	95 83       	std	Z+5, r25	; 0x05
   36732:	a6 83       	std	Z+6, r26	; 0x06
   36734:	b7 83       	std	Z+7, r27	; 0x07
// corexy planning
// these equations follow the form of the dA and dB equations on http://www.corexy.com/theory.html
block->steps[X_AXIS].wide = labs(dx + dy);
block->steps[Y_AXIS].wide = labs(dx - dy);
#endif
  block->steps[Z_AXIS].wide = labs(dz);
   36736:	8e e6       	ldi	r24, 0x6E	; 110
   36738:	82 9d       	mul	r24, r2
   3673a:	f0 01       	movw	r30, r0
   3673c:	83 9d       	mul	r24, r3
   3673e:	f0 0d       	add	r31, r0
   36740:	11 24       	eor	r1, r1
   36742:	eb 53       	subi	r30, 0x3B	; 59
   36744:	f9 4f       	sbci	r31, 0xF9	; 249
   36746:	8d a5       	ldd	r24, Y+45	; 0x2d
   36748:	9e a5       	ldd	r25, Y+46	; 0x2e
   3674a:	af a5       	ldd	r26, Y+47	; 0x2f
   3674c:	b8 a9       	ldd	r27, Y+48	; 0x30
   3674e:	b7 ff       	sbrs	r27, 7
   36750:	07 c0       	rjmp	.+14     	; 0x36760 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x4fa>
   36752:	b0 95       	com	r27
   36754:	a0 95       	com	r26
   36756:	90 95       	com	r25
   36758:	81 95       	neg	r24
   3675a:	9f 4f       	sbci	r25, 0xFF	; 255
   3675c:	af 4f       	sbci	r26, 0xFF	; 255
   3675e:	bf 4f       	sbci	r27, 0xFF	; 255
   36760:	80 87       	std	Z+8, r24	; 0x08
   36762:	91 87       	std	Z+9, r25	; 0x09
   36764:	a2 87       	std	Z+10, r26	; 0x0a
   36766:	b3 87       	std	Z+11, r27	; 0x0b
  block->steps[E_AXIS].wide = labs(de);
   36768:	b3 01       	movw	r22, r6
   3676a:	a2 01       	movw	r20, r4
   3676c:	77 fe       	sbrs	r7, 7
   3676e:	07 c0       	rjmp	.+14     	; 0x3677e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x518>
   36770:	44 27       	eor	r20, r20
   36772:	55 27       	eor	r21, r21
   36774:	ba 01       	movw	r22, r20
   36776:	44 19       	sub	r20, r4
   36778:	55 09       	sbc	r21, r5
   3677a:	66 09       	sbc	r22, r6
   3677c:	77 09       	sbc	r23, r7
   3677e:	8e e6       	ldi	r24, 0x6E	; 110
   36780:	82 9d       	mul	r24, r2
   36782:	f0 01       	movw	r30, r0
   36784:	83 9d       	mul	r24, r3
   36786:	f0 0d       	add	r31, r0
   36788:	11 24       	eor	r1, r1
   3678a:	eb 53       	subi	r30, 0x3B	; 59
   3678c:	f9 4f       	sbci	r31, 0xF9	; 249
   3678e:	44 87       	std	Z+12, r20	; 0x0c
   36790:	55 87       	std	Z+13, r21	; 0x0d
   36792:	66 87       	std	Z+14, r22	; 0x0e
   36794:	77 87       	std	Z+15, r23	; 0x0f
  block->step_event_count.wide = max(block->steps[X_AXIS].wide, max(block->steps[Y_AXIS].wide, max(block->steps[Z_AXIS].wide, block->steps[E_AXIS].wide)));
   36796:	00 81       	ld	r16, Z
   36798:	11 81       	ldd	r17, Z+1	; 0x01
   3679a:	22 81       	ldd	r18, Z+2	; 0x02
   3679c:	33 81       	ldd	r19, Z+3	; 0x03
   3679e:	84 81       	ldd	r24, Z+4	; 0x04
   367a0:	95 81       	ldd	r25, Z+5	; 0x05
   367a2:	a6 81       	ldd	r26, Z+6	; 0x06
   367a4:	b7 81       	ldd	r27, Z+7	; 0x07
   367a6:	80 17       	cp	r24, r16
   367a8:	91 07       	cpc	r25, r17
   367aa:	a2 07       	cpc	r26, r18
   367ac:	b3 07       	cpc	r27, r19
   367ae:	14 f4       	brge	.+4      	; 0x367b4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x54e>
   367b0:	d9 01       	movw	r26, r18
   367b2:	c8 01       	movw	r24, r16
   367b4:	ee e6       	ldi	r30, 0x6E	; 110
   367b6:	be 2e       	mov	r11, r30
   367b8:	b2 9c       	mul	r11, r2
   367ba:	f0 01       	movw	r30, r0
   367bc:	b3 9c       	mul	r11, r3
   367be:	f0 0d       	add	r31, r0
   367c0:	11 24       	eor	r1, r1
   367c2:	eb 53       	subi	r30, 0x3B	; 59
   367c4:	f9 4f       	sbci	r31, 0xF9	; 249
   367c6:	80 84       	ldd	r8, Z+8	; 0x08
   367c8:	91 84       	ldd	r9, Z+9	; 0x09
   367ca:	a2 84       	ldd	r10, Z+10	; 0x0a
   367cc:	b3 84       	ldd	r11, Z+11	; 0x0b
   367ce:	88 15       	cp	r24, r8
   367d0:	99 05       	cpc	r25, r9
   367d2:	aa 05       	cpc	r26, r10
   367d4:	bb 05       	cpc	r27, r11
   367d6:	14 f4       	brge	.+4      	; 0x367dc <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x576>
   367d8:	d5 01       	movw	r26, r10
   367da:	c4 01       	movw	r24, r8
   367dc:	84 17       	cp	r24, r20
   367de:	95 07       	cpc	r25, r21
   367e0:	a6 07       	cpc	r26, r22
   367e2:	b7 07       	cpc	r27, r23
   367e4:	14 f4       	brge	.+4      	; 0x367ea <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x584>
   367e6:	db 01       	movw	r26, r22
   367e8:	ca 01       	movw	r24, r20
   367ea:	4e e6       	ldi	r20, 0x6E	; 110
   367ec:	42 9d       	mul	r20, r2
   367ee:	f0 01       	movw	r30, r0
   367f0:	43 9d       	mul	r20, r3
   367f2:	f0 0d       	add	r31, r0
   367f4:	11 24       	eor	r1, r1
   367f6:	eb 53       	subi	r30, 0x3B	; 59
   367f8:	f9 4f       	sbci	r31, 0xF9	; 249
   367fa:	80 8b       	std	Z+16, r24	; 0x10
   367fc:	91 8b       	std	Z+17, r25	; 0x11
   367fe:	a2 8b       	std	Z+18, r26	; 0x12
   36800:	b3 8b       	std	Z+19, r27	; 0x13

  // Bail if this is a zero-length block
  if (block->step_event_count.wide <= dropsegments)
   36802:	06 97       	sbiw	r24, 0x06	; 6
   36804:	a1 05       	cpc	r26, r1
   36806:	b1 05       	cpc	r27, r1
   36808:	0c f4       	brge	.+2      	; 0x3680c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x5a6>
   3680a:	94 cd       	rjmp	.-1240   	; 0x36334 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xce>
    planner_update_queue_min_counter();
#endif /* PLANNER_DIAGNOSTICS */
    return;
  }

  block->fan_speed = fanSpeed;
   3680c:	80 91 e7 03 	lds	r24, 0x03E7	; 0x8003e7 <fanSpeed>
   36810:	df 01       	movw	r26, r30
   36812:	aa 5b       	subi	r26, 0xBA	; 186
   36814:	bf 4f       	sbci	r27, 0xFF	; 255
   36816:	8c 93       	st	X, r24

  // Compute direction bits for this block
  block->direction_bits = 0;
#ifndef COREXY
  if (dx < 0) block->direction_bits |= _BV(X_AXIS);
   36818:	f7 fe       	sbrs	r15, 7
   3681a:	02 c0       	rjmp	.+4      	; 0x36820 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x5ba>
   3681c:	0d 94 3e bc 	jmp	0x3787c	; 0x3787c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1616>
  }

  block->fan_speed = fanSpeed;

  // Compute direction bits for this block
  block->direction_bits = 0;
   36820:	10 8e       	std	Z+24, r1	; 0x18
#ifndef COREXY
  if (dx < 0) block->direction_bits |= _BV(X_AXIS);
  if (dy < 0) block->direction_bits |= _BV(Y_AXIS);
   36822:	89 a5       	ldd	r24, Y+41	; 0x29
   36824:	9a a5       	ldd	r25, Y+42	; 0x2a
   36826:	ab a5       	ldd	r26, Y+43	; 0x2b
   36828:	bc a5       	ldd	r27, Y+44	; 0x2c
   3682a:	b7 ff       	sbrs	r27, 7
   3682c:	0b c0       	rjmp	.+22     	; 0x36844 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x5de>
   3682e:	8e e6       	ldi	r24, 0x6E	; 110
   36830:	82 9d       	mul	r24, r2
   36832:	f0 01       	movw	r30, r0
   36834:	83 9d       	mul	r24, r3
   36836:	f0 0d       	add	r31, r0
   36838:	11 24       	eor	r1, r1
   3683a:	eb 53       	subi	r30, 0x3B	; 59
   3683c:	f9 4f       	sbci	r31, 0xF9	; 249
   3683e:	80 8d       	ldd	r24, Z+24	; 0x18
   36840:	82 60       	ori	r24, 0x02	; 2
   36842:	80 8f       	std	Z+24, r24	; 0x18
#else
  if (dx + dy < 0) block->direction_bits |= _BV(X_AXIS);
  if (dx - dy < 0) block->direction_bits |= _BV(Y_AXIS);
#endif
  if (dz < 0) block->direction_bits |= _BV(Z_AXIS);
   36844:	8d a5       	ldd	r24, Y+45	; 0x2d
   36846:	9e a5       	ldd	r25, Y+46	; 0x2e
   36848:	af a5       	ldd	r26, Y+47	; 0x2f
   3684a:	b8 a9       	ldd	r27, Y+48	; 0x30
   3684c:	b7 ff       	sbrs	r27, 7
   3684e:	0b c0       	rjmp	.+22     	; 0x36866 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x600>
   36850:	8e e6       	ldi	r24, 0x6E	; 110
   36852:	82 9d       	mul	r24, r2
   36854:	f0 01       	movw	r30, r0
   36856:	83 9d       	mul	r24, r3
   36858:	f0 0d       	add	r31, r0
   3685a:	11 24       	eor	r1, r1
   3685c:	eb 53       	subi	r30, 0x3B	; 59
   3685e:	f9 4f       	sbci	r31, 0xF9	; 249
   36860:	80 8d       	ldd	r24, Z+24	; 0x18
   36862:	84 60       	ori	r24, 0x04	; 4
   36864:	80 8f       	std	Z+24, r24	; 0x18
  if (de < 0) block->direction_bits |= _BV(E_AXIS);
   36866:	77 fe       	sbrs	r7, 7
   36868:	0b c0       	rjmp	.+22     	; 0x36880 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x61a>
   3686a:	8e e6       	ldi	r24, 0x6E	; 110
   3686c:	82 9d       	mul	r24, r2
   3686e:	f0 01       	movw	r30, r0
   36870:	83 9d       	mul	r24, r3
   36872:	f0 0d       	add	r31, r0
   36874:	11 24       	eor	r1, r1
   36876:	eb 53       	subi	r30, 0x3B	; 59
   36878:	f9 4f       	sbci	r31, 0xF9	; 249
   3687a:	80 8d       	ldd	r24, Z+24	; 0x18
   3687c:	88 60       	ori	r24, 0x08	; 8
   3687e:	80 8f       	std	Z+24, r24	; 0x18
  {
    enable_x();
    enable_y();
  }
  #else
  if(block->steps[X_AXIS].wide != 0) enable_x();
   36880:	01 2b       	or	r16, r17
   36882:	02 2b       	or	r16, r18
   36884:	03 2b       	or	r16, r19
   36886:	09 f0       	breq	.+2      	; 0x3688a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x624>
   36888:	17 98       	cbi	0x02, 7	; 2
  if(block->steps[Y_AXIS].wide != 0) enable_y();
   3688a:	8e e6       	ldi	r24, 0x6E	; 110
   3688c:	82 9d       	mul	r24, r2
   3688e:	f0 01       	movw	r30, r0
   36890:	83 9d       	mul	r24, r3
   36892:	f0 0d       	add	r31, r0
   36894:	11 24       	eor	r1, r1
   36896:	eb 53       	subi	r30, 0x3B	; 59
   36898:	f9 4f       	sbci	r31, 0xF9	; 249
   3689a:	84 81       	ldd	r24, Z+4	; 0x04
   3689c:	95 81       	ldd	r25, Z+5	; 0x05
   3689e:	a6 81       	ldd	r26, Z+6	; 0x06
   368a0:	b7 81       	ldd	r27, Z+7	; 0x07
   368a2:	89 2b       	or	r24, r25
   368a4:	8a 2b       	or	r24, r26
   368a6:	8b 2b       	or	r24, r27
   368a8:	09 f0       	breq	.+2      	; 0x368ac <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x646>
   368aa:	16 98       	cbi	0x02, 6	; 2
  #endif
  if(block->steps[Z_AXIS].wide != 0) enable_z();
   368ac:	8e e6       	ldi	r24, 0x6E	; 110
   368ae:	82 9d       	mul	r24, r2
   368b0:	f0 01       	movw	r30, r0
   368b2:	83 9d       	mul	r24, r3
   368b4:	f0 0d       	add	r31, r0
   368b6:	11 24       	eor	r1, r1
   368b8:	eb 53       	subi	r30, 0x3B	; 59
   368ba:	f9 4f       	sbci	r31, 0xF9	; 249
   368bc:	80 85       	ldd	r24, Z+8	; 0x08
   368be:	91 85       	ldd	r25, Z+9	; 0x09
   368c0:	a2 85       	ldd	r26, Z+10	; 0x0a
   368c2:	b3 85       	ldd	r27, Z+11	; 0x0b
   368c4:	89 2b       	or	r24, r25
   368c6:	8a 2b       	or	r24, r26
   368c8:	8b 2b       	or	r24, r27
   368ca:	09 f0       	breq	.+2      	; 0x368ce <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x668>
   368cc:	15 98       	cbi	0x02, 5	; 2
  if(block->steps[E_AXIS].wide != 0) enable_e0();
   368ce:	8e e6       	ldi	r24, 0x6E	; 110
   368d0:	82 9d       	mul	r24, r2
   368d2:	f0 01       	movw	r30, r0
   368d4:	83 9d       	mul	r24, r3
   368d6:	f0 0d       	add	r31, r0
   368d8:	11 24       	eor	r1, r1
   368da:	eb 53       	subi	r30, 0x3B	; 59
   368dc:	f9 4f       	sbci	r31, 0xF9	; 249
   368de:	84 85       	ldd	r24, Z+12	; 0x0c
   368e0:	95 85       	ldd	r25, Z+13	; 0x0d
   368e2:	a6 85       	ldd	r26, Z+14	; 0x0e
   368e4:	b7 85       	ldd	r27, Z+15	; 0x0f
   368e6:	89 2b       	or	r24, r25
   368e8:	8a 2b       	or	r24, r26
   368ea:	8b 2b       	or	r24, r27
   368ec:	09 f0       	breq	.+2      	; 0x368f0 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x68a>
   368ee:	14 98       	cbi	0x02, 4	; 2

  if (block->steps[E_AXIS].wide == 0)
   368f0:	8e e6       	ldi	r24, 0x6E	; 110
   368f2:	82 9d       	mul	r24, r2
   368f4:	f0 01       	movw	r30, r0
   368f6:	83 9d       	mul	r24, r3
   368f8:	f0 0d       	add	r31, r0
   368fa:	11 24       	eor	r1, r1
   368fc:	eb 53       	subi	r30, 0x3B	; 59
   368fe:	f9 4f       	sbci	r31, 0xF9	; 249
   36900:	24 85       	ldd	r18, Z+12	; 0x0c
   36902:	35 85       	ldd	r19, Z+13	; 0x0d
   36904:	46 85       	ldd	r20, Z+14	; 0x0e
   36906:	57 85       	ldd	r21, Z+15	; 0x0f
   36908:	2a 96       	adiw	r28, 0x0a	; 10
   3690a:	2c af       	std	Y+60, r18	; 0x3c
   3690c:	3d af       	std	Y+61, r19	; 0x3d
   3690e:	4e af       	std	Y+62, r20	; 0x3e
   36910:	5f af       	std	Y+63, r21	; 0x3f
   36912:	2a 97       	sbiw	r28, 0x0a	; 10
   36914:	23 2b       	or	r18, r19
   36916:	24 2b       	or	r18, r20
   36918:	25 2b       	or	r18, r21
   3691a:	09 f0       	breq	.+2      	; 0x3691e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x6b8>
   3691c:	b3 c7       	rjmp	.+3942   	; 0x37884 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x161e>
  {
    if(feed_rate<cs.mintravelfeedrate) feed_rate=cs.mintravelfeedrate;
   3691e:	a0 90 fe 0d 	lds	r10, 0x0DFE	; 0x800dfe <cs+0x40>
   36922:	b0 90 ff 0d 	lds	r11, 0x0DFF	; 0x800dff <cs+0x41>
   36926:	00 91 00 0e 	lds	r16, 0x0E00	; 0x800e00 <cs+0x42>
   3692a:	10 91 01 0e 	lds	r17, 0x0E01	; 0x800e01 <cs+0x43>
  }
  else
  {
    if(feed_rate<cs.minimumfeedrate) feed_rate=cs.minimumfeedrate;
   3692e:	29 a9       	ldd	r18, Y+49	; 0x31
   36930:	39 ad       	ldd	r19, Y+57	; 0x39
   36932:	4d ad       	ldd	r20, Y+61	; 0x3d
   36934:	5d a9       	ldd	r21, Y+53	; 0x35
   36936:	b5 01       	movw	r22, r10
   36938:	c8 01       	movw	r24, r16
   3693a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   3693e:	18 16       	cp	r1, r24
   36940:	24 f4       	brge	.+8      	; 0x3694a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x6e4>
   36942:	a9 aa       	std	Y+49, r10	; 0x31
   36944:	b9 ae       	std	Y+57, r11	; 0x39
   36946:	0d af       	std	Y+61, r16	; 0x3d
   36948:	1d ab       	std	Y+53, r17	; 0x35
So we need to create other 2 "AXIS", named X_HEAD and Y_HEAD, meaning the real displacement of the Head.
Having the real displacement of the head, we can calculate the total movement length and apply the desired speed.
*/
  #ifndef COREXY
    float delta_mm[4];
    delta_mm[X_AXIS] = dx / cs.axis_steps_per_mm[X_AXIS];
   3694a:	c7 01       	movw	r24, r14
   3694c:	b6 01       	movw	r22, r12
   3694e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   36952:	20 91 c2 0d 	lds	r18, 0x0DC2	; 0x800dc2 <cs+0x4>
   36956:	30 91 c3 0d 	lds	r19, 0x0DC3	; 0x800dc3 <cs+0x5>
   3695a:	40 91 c4 0d 	lds	r20, 0x0DC4	; 0x800dc4 <cs+0x6>
   3695e:	50 91 c5 0d 	lds	r21, 0x0DC5	; 0x800dc5 <cs+0x7>
   36962:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36966:	4b 01       	movw	r8, r22
   36968:	5c 01       	movw	r10, r24
   3696a:	89 82       	std	Y+1, r8	; 0x01
   3696c:	9a 82       	std	Y+2, r9	; 0x02
   3696e:	ab 82       	std	Y+3, r10	; 0x03
   36970:	bc 82       	std	Y+4, r11	; 0x04
    delta_mm[Y_AXIS] = dy / cs.axis_steps_per_mm[Y_AXIS];
   36972:	69 a5       	ldd	r22, Y+41	; 0x29
   36974:	7a a5       	ldd	r23, Y+42	; 0x2a
   36976:	8b a5       	ldd	r24, Y+43	; 0x2b
   36978:	9c a5       	ldd	r25, Y+44	; 0x2c
   3697a:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   3697e:	20 91 c6 0d 	lds	r18, 0x0DC6	; 0x800dc6 <cs+0x8>
   36982:	30 91 c7 0d 	lds	r19, 0x0DC7	; 0x800dc7 <cs+0x9>
   36986:	40 91 c8 0d 	lds	r20, 0x0DC8	; 0x800dc8 <cs+0xa>
   3698a:	50 91 c9 0d 	lds	r21, 0x0DC9	; 0x800dc9 <cs+0xb>
   3698e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36992:	6b 01       	movw	r12, r22
   36994:	7c 01       	movw	r14, r24
   36996:	cd 82       	std	Y+5, r12	; 0x05
   36998:	de 82       	std	Y+6, r13	; 0x06
   3699a:	ef 82       	std	Y+7, r14	; 0x07
   3699c:	f8 86       	std	Y+8, r15	; 0x08
    delta_mm[X_HEAD] = dx / cs.axis_steps_per_mm[X_AXIS];
    delta_mm[Y_HEAD] = dy / cs.axis_steps_per_mm[Y_AXIS];
    delta_mm[X_AXIS] = (dx + dy) / cs.axis_steps_per_mm[X_AXIS];
    delta_mm[Y_AXIS] = (dx - dy) / cs.axis_steps_per_mm[Y_AXIS];
  #endif
  delta_mm[Z_AXIS] = dz / cs.axis_steps_per_mm[Z_AXIS];
   3699e:	6d a5       	ldd	r22, Y+45	; 0x2d
   369a0:	7e a5       	ldd	r23, Y+46	; 0x2e
   369a2:	8f a5       	ldd	r24, Y+47	; 0x2f
   369a4:	98 a9       	ldd	r25, Y+48	; 0x30
   369a6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   369aa:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   369ae:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   369b2:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   369b6:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   369ba:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   369be:	22 96       	adiw	r28, 0x02	; 2
   369c0:	6c af       	std	Y+60, r22	; 0x3c
   369c2:	7d af       	std	Y+61, r23	; 0x3d
   369c4:	8e af       	std	Y+62, r24	; 0x3e
   369c6:	9f af       	std	Y+63, r25	; 0x3f
   369c8:	22 97       	sbiw	r28, 0x02	; 2
   369ca:	69 87       	std	Y+9, r22	; 0x09
   369cc:	7a 87       	std	Y+10, r23	; 0x0a
   369ce:	8b 87       	std	Y+11, r24	; 0x0b
   369d0:	9c 87       	std	Y+12, r25	; 0x0c
  delta_mm[E_AXIS] = de / cs.axis_steps_per_mm[E_AXIS];
   369d2:	c3 01       	movw	r24, r6
   369d4:	b2 01       	movw	r22, r4
   369d6:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   369da:	20 91 ce 0d 	lds	r18, 0x0DCE	; 0x800dce <cs+0x10>
   369de:	30 91 cf 0d 	lds	r19, 0x0DCF	; 0x800dcf <cs+0x11>
   369e2:	40 91 d0 0d 	lds	r20, 0x0DD0	; 0x800dd0 <cs+0x12>
   369e6:	50 91 d1 0d 	lds	r21, 0x0DD1	; 0x800dd1 <cs+0x13>
   369ea:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   369ee:	26 96       	adiw	r28, 0x06	; 6
   369f0:	6c af       	std	Y+60, r22	; 0x3c
   369f2:	7d af       	std	Y+61, r23	; 0x3d
   369f4:	8e af       	std	Y+62, r24	; 0x3e
   369f6:	9f af       	std	Y+63, r25	; 0x3f
   369f8:	26 97       	sbiw	r28, 0x06	; 6
   369fa:	6d 87       	std	Y+13, r22	; 0x0d
   369fc:	7e 87       	std	Y+14, r23	; 0x0e
   369fe:	8f 87       	std	Y+15, r24	; 0x0f
   36a00:	98 8b       	std	Y+16, r25	; 0x10
  if ( block->steps[X_AXIS].wide <=dropsegments && block->steps[Y_AXIS].wide <=dropsegments && block->steps[Z_AXIS].wide <=dropsegments )
   36a02:	8e e6       	ldi	r24, 0x6E	; 110
   36a04:	82 9d       	mul	r24, r2
   36a06:	f0 01       	movw	r30, r0
   36a08:	83 9d       	mul	r24, r3
   36a0a:	f0 0d       	add	r31, r0
   36a0c:	11 24       	eor	r1, r1
   36a0e:	eb 53       	subi	r30, 0x3B	; 59
   36a10:	f9 4f       	sbci	r31, 0xF9	; 249
   36a12:	80 81       	ld	r24, Z
   36a14:	91 81       	ldd	r25, Z+1	; 0x01
   36a16:	a2 81       	ldd	r26, Z+2	; 0x02
   36a18:	b3 81       	ldd	r27, Z+3	; 0x03
   36a1a:	2e 96       	adiw	r28, 0x0e	; 14
   36a1c:	8c af       	std	Y+60, r24	; 0x3c
   36a1e:	9d af       	std	Y+61, r25	; 0x3d
   36a20:	ae af       	std	Y+62, r26	; 0x3e
   36a22:	bf af       	std	Y+63, r27	; 0x3f
   36a24:	2e 97       	sbiw	r28, 0x0e	; 14
   36a26:	06 97       	sbiw	r24, 0x06	; 6
   36a28:	a1 05       	cpc	r26, r1
   36a2a:	b1 05       	cpc	r27, r1
   36a2c:	0c f0       	brlt	.+2      	; 0x36a30 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x7ca>
   36a2e:	33 c7       	rjmp	.+3686   	; 0x37896 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1630>
   36a30:	84 81       	ldd	r24, Z+4	; 0x04
   36a32:	95 81       	ldd	r25, Z+5	; 0x05
   36a34:	a6 81       	ldd	r26, Z+6	; 0x06
   36a36:	b7 81       	ldd	r27, Z+7	; 0x07
   36a38:	06 97       	sbiw	r24, 0x06	; 6
   36a3a:	a1 05       	cpc	r26, r1
   36a3c:	b1 05       	cpc	r27, r1
   36a3e:	0c f0       	brlt	.+2      	; 0x36a42 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x7dc>
   36a40:	2a c7       	rjmp	.+3668   	; 0x37896 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1630>
   36a42:	80 85       	ldd	r24, Z+8	; 0x08
   36a44:	91 85       	ldd	r25, Z+9	; 0x09
   36a46:	a2 85       	ldd	r26, Z+10	; 0x0a
   36a48:	b3 85       	ldd	r27, Z+11	; 0x0b
   36a4a:	06 97       	sbiw	r24, 0x06	; 6
   36a4c:	a1 05       	cpc	r26, r1
   36a4e:	b1 05       	cpc	r27, r1
   36a50:	0c f0       	brlt	.+2      	; 0x36a54 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x7ee>
   36a52:	21 c7       	rjmp	.+3650   	; 0x37896 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1630>
  {
    block->millimeters = fabs(delta_mm[E_AXIS]);
   36a54:	26 96       	adiw	r28, 0x06	; 6
   36a56:	8c ad       	ldd	r24, Y+60	; 0x3c
   36a58:	9d ad       	ldd	r25, Y+61	; 0x3d
   36a5a:	ae ad       	ldd	r26, Y+62	; 0x3e
   36a5c:	bf ad       	ldd	r27, Y+63	; 0x3f
   36a5e:	26 97       	sbiw	r28, 0x06	; 6
   36a60:	bf 77       	andi	r27, 0x7F	; 127
   36a62:	85 a7       	std	Z+45, r24	; 0x2d
   36a64:	96 a7       	std	Z+46, r25	; 0x2e
   36a66:	a7 a7       	std	Z+47, r26	; 0x2f
   36a68:	b0 ab       	std	Z+48, r27	; 0x30
      block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS]));
	#else
	  block->millimeters = sqrt(square(delta_mm[X_HEAD]) + square(delta_mm[Y_HEAD]) + square(delta_mm[Z_AXIS]));
    #endif
  }
  float inverse_millimeters = 1.0/block->millimeters;  // Inverse millimeters to remove multiple divides
   36a6a:	8e e6       	ldi	r24, 0x6E	; 110
   36a6c:	82 9d       	mul	r24, r2
   36a6e:	f0 01       	movw	r30, r0
   36a70:	83 9d       	mul	r24, r3
   36a72:	f0 0d       	add	r31, r0
   36a74:	11 24       	eor	r1, r1
   36a76:	eb 53       	subi	r30, 0x3B	; 59
   36a78:	f9 4f       	sbci	r31, 0xF9	; 249
   36a7a:	45 a4       	ldd	r4, Z+45	; 0x2d
   36a7c:	56 a4       	ldd	r5, Z+46	; 0x2e
   36a7e:	67 a4       	ldd	r6, Z+47	; 0x2f
   36a80:	70 a8       	ldd	r7, Z+48	; 0x30
   36a82:	a3 01       	movw	r20, r6
   36a84:	92 01       	movw	r18, r4
   36a86:	60 e0       	ldi	r22, 0x00	; 0
   36a88:	70 e0       	ldi	r23, 0x00	; 0
   36a8a:	80 e8       	ldi	r24, 0x80	; 128
   36a8c:	9f e3       	ldi	r25, 0x3F	; 63
   36a8e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>

    // Calculate speed in mm/second for each axis. No divide by zero due to previous checks.
  float inverse_second = feed_rate * inverse_millimeters;
   36a92:	29 a9       	ldd	r18, Y+49	; 0x31
   36a94:	39 ad       	ldd	r19, Y+57	; 0x39
   36a96:	4d ad       	ldd	r20, Y+61	; 0x3d
   36a98:	5d a9       	ldd	r21, Y+53	; 0x35
   36a9a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36a9e:	6b 01       	movw	r12, r22
   36aa0:	7c 01       	movw	r14, r24
}

//return the nr of buffered moves
FORCE_INLINE uint8_t moves_planned() {
    return (block_buffer_head + BLOCK_BUFFER_SIZE - block_buffer_tail) & (BLOCK_BUFFER_SIZE - 1);
   36aa2:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   36aa6:	90 91 a6 0d 	lds	r25, 0x0DA6	; 0x800da6 <block_buffer_tail>
   36aaa:	89 1b       	sub	r24, r25
   36aac:	8f 70       	andi	r24, 0x0F	; 15
   36aae:	8d af       	std	Y+61, r24	; 0x3d

  // slow down when de buffer starts to empty, rather than wait at the corner for a buffer refill
#ifdef SLOWDOWN
  //FIXME Vojtech: Why moves_queued > 1? Why not >=1?
  // Can we somehow differentiate the filling of the buffer at the start of a g-code from a buffer draining situation?
  if (moves_queued > 1 && moves_queued < (BLOCK_BUFFER_SIZE >> 1)) {
   36ab0:	82 50       	subi	r24, 0x02	; 2
   36ab2:	86 30       	cpi	r24, 0x06	; 6
   36ab4:	08 f0       	brcs	.+2      	; 0x36ab8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x852>
   36ab6:	40 c0       	rjmp	.+128    	; 0x36b38 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x8d2>
      // segment time in micro seconds
      unsigned long segment_time = lround(1000000.0/inverse_second);
   36ab8:	a7 01       	movw	r20, r14
   36aba:	96 01       	movw	r18, r12
   36abc:	60 e0       	ldi	r22, 0x00	; 0
   36abe:	74 e2       	ldi	r23, 0x24	; 36
   36ac0:	84 e7       	ldi	r24, 0x74	; 116
   36ac2:	99 e4       	ldi	r25, 0x49	; 73
   36ac4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36ac8:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   36acc:	4b 01       	movw	r8, r22
   36ace:	5c 01       	movw	r10, r24
      if (segment_time < cs.min_segment_time_us)
   36ad0:	80 91 02 0e 	lds	r24, 0x0E02	; 0x800e02 <cs+0x44>
   36ad4:	90 91 03 0e 	lds	r25, 0x0E03	; 0x800e03 <cs+0x45>
   36ad8:	a0 91 04 0e 	lds	r26, 0x0E04	; 0x800e04 <cs+0x46>
   36adc:	b0 91 05 0e 	lds	r27, 0x0E05	; 0x800e05 <cs+0x47>
   36ae0:	88 16       	cp	r8, r24
   36ae2:	99 06       	cpc	r9, r25
   36ae4:	aa 06       	cpc	r10, r26
   36ae6:	bb 06       	cpc	r11, r27
   36ae8:	38 f5       	brcc	.+78     	; 0x36b38 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x8d2>
          // buffer is draining, add extra time.  The amount of time added increases if the buffer is still emptied more.
          inverse_second=1000000.0/(segment_time+lround(2*(cs.min_segment_time_us-segment_time)/moves_queued));
   36aea:	bc 01       	movw	r22, r24
   36aec:	cd 01       	movw	r24, r26
   36aee:	68 19       	sub	r22, r8
   36af0:	79 09       	sbc	r23, r9
   36af2:	8a 09       	sbc	r24, r10
   36af4:	9b 09       	sbc	r25, r11
   36af6:	66 0f       	add	r22, r22
   36af8:	77 1f       	adc	r23, r23
   36afa:	88 1f       	adc	r24, r24
   36afc:	99 1f       	adc	r25, r25
   36afe:	ad ad       	ldd	r26, Y+61	; 0x3d
   36b00:	2a 2f       	mov	r18, r26
   36b02:	30 e0       	ldi	r19, 0x00	; 0
   36b04:	50 e0       	ldi	r21, 0x00	; 0
   36b06:	40 e0       	ldi	r20, 0x00	; 0
   36b08:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   36b0c:	ca 01       	movw	r24, r20
   36b0e:	b9 01       	movw	r22, r18
   36b10:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   36b14:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   36b18:	68 0d       	add	r22, r8
   36b1a:	79 1d       	adc	r23, r9
   36b1c:	8a 1d       	adc	r24, r10
   36b1e:	9b 1d       	adc	r25, r11
   36b20:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   36b24:	9b 01       	movw	r18, r22
   36b26:	ac 01       	movw	r20, r24
   36b28:	60 e0       	ldi	r22, 0x00	; 0
   36b2a:	74 e2       	ldi	r23, 0x24	; 36
   36b2c:	84 e7       	ldi	r24, 0x74	; 116
   36b2e:	99 e4       	ldi	r25, 0x49	; 73
   36b30:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36b34:	6b 01       	movw	r12, r22
   36b36:	7c 01       	movw	r14, r24
  }
#endif // SLOWDOWN

  block->nominal_speed = block->millimeters * inverse_second; // (mm/sec) Always > 0
   36b38:	a3 01       	movw	r20, r6
   36b3a:	92 01       	movw	r18, r4
   36b3c:	c7 01       	movw	r24, r14
   36b3e:	b6 01       	movw	r22, r12
   36b40:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36b44:	6d ab       	std	Y+53, r22	; 0x35
   36b46:	7e ab       	std	Y+54, r23	; 0x36
   36b48:	8f ab       	std	Y+55, r24	; 0x37
   36b4a:	98 af       	std	Y+56, r25	; 0x38
   36b4c:	8e e6       	ldi	r24, 0x6E	; 110
   36b4e:	82 9d       	mul	r24, r2
   36b50:	80 01       	movw	r16, r0
   36b52:	83 9d       	mul	r24, r3
   36b54:	10 0d       	add	r17, r0
   36b56:	11 24       	eor	r1, r1
   36b58:	0b 53       	subi	r16, 0x3B	; 59
   36b5a:	19 4f       	sbci	r17, 0xF9	; 249
   36b5c:	2d a9       	ldd	r18, Y+53	; 0x35
   36b5e:	3e a9       	ldd	r19, Y+54	; 0x36
   36b60:	4f a9       	ldd	r20, Y+55	; 0x37
   36b62:	58 ad       	ldd	r21, Y+56	; 0x38
   36b64:	d8 01       	movw	r26, r16
   36b66:	91 96       	adiw	r26, 0x21	; 33
   36b68:	2d 93       	st	X+, r18
   36b6a:	3d 93       	st	X+, r19
   36b6c:	4d 93       	st	X+, r20
   36b6e:	5c 93       	st	X, r21
   36b70:	94 97       	sbiw	r26, 0x24	; 36
  block->nominal_rate = ceil(block->step_event_count.wide * inverse_second); // (step/sec) Always > 0
   36b72:	50 96       	adiw	r26, 0x10	; 16
   36b74:	6d 91       	ld	r22, X+
   36b76:	7d 91       	ld	r23, X+
   36b78:	8d 91       	ld	r24, X+
   36b7a:	9c 91       	ld	r25, X
   36b7c:	53 97       	sbiw	r26, 0x13	; 19
   36b7e:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   36b82:	69 af       	std	Y+57, r22	; 0x39
   36b84:	7a af       	std	Y+58, r23	; 0x3a
   36b86:	8b af       	std	Y+59, r24	; 0x3b
   36b88:	9c af       	std	Y+60, r25	; 0x3c
   36b8a:	9b 01       	movw	r18, r22
   36b8c:	ac 01       	movw	r20, r24
   36b8e:	c7 01       	movw	r24, r14
   36b90:	b6 01       	movw	r22, r12
   36b92:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36b96:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   36b9a:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   36b9e:	62 96       	adiw	r28, 0x12	; 18
   36ba0:	6c af       	std	Y+60, r22	; 0x3c
   36ba2:	7d af       	std	Y+61, r23	; 0x3d
   36ba4:	8e af       	std	Y+62, r24	; 0x3e
   36ba6:	9f af       	std	Y+63, r25	; 0x3f
   36ba8:	62 97       	sbiw	r28, 0x12	; 18
   36baa:	f8 01       	movw	r30, r16
   36bac:	66 ab       	std	Z+54, r22	; 0x36
   36bae:	77 ab       	std	Z+55, r23	; 0x37
   36bb0:	80 af       	std	Z+56, r24	; 0x38
   36bb2:	91 af       	std	Z+57, r25	; 0x39
   36bb4:	9e 01       	movw	r18, r28
   36bb6:	2f 5f       	subi	r18, 0xFF	; 255
   36bb8:	3f 4f       	sbci	r19, 0xFF	; 255
   36bba:	6c 96       	adiw	r28, 0x1c	; 28
   36bbc:	3f af       	std	Y+63, r19	; 0x3f
   36bbe:	2e af       	std	Y+62, r18	; 0x3e
   36bc0:	6c 97       	sbiw	r28, 0x1c	; 28
   36bc2:	ae 01       	movw	r20, r28
   36bc4:	4f 5e       	subi	r20, 0xEF	; 239
   36bc6:	5f 4f       	sbci	r21, 0xFF	; 255
   36bc8:	a0 96       	adiw	r28, 0x20	; 32
   36bca:	5f af       	std	Y+63, r21	; 0x3f
   36bcc:	4e af       	std	Y+62, r20	; 0x3e
   36bce:	a0 97       	sbiw	r28, 0x20	; 32
   36bd0:	80 91 71 02 	lds	r24, 0x0271	; 0x800271 <max_feedrate>
   36bd4:	90 91 72 02 	lds	r25, 0x0272	; 0x800272 <max_feedrate+0x1>
   36bd8:	9a ab       	std	Y+50, r25	; 0x32
   36bda:	89 ab       	std	Y+49, r24	; 0x31
   36bdc:	40 96       	adiw	r24, 0x10	; 16
   36bde:	6e 96       	adiw	r28, 0x1e	; 30
   36be0:	9f af       	std	Y+63, r25	; 0x3f
   36be2:	8e af       	std	Y+62, r24	; 0x3e
   36be4:	6e 97       	sbiw	r28, 0x1e	; 30
  float current_speed[4];
  float speed_factor = 1.0; //factor <=1 do decrease speed
  for(int i=0; i < 4; i++)
  {
    current_speed[i] = delta_mm[i] * inverse_second;
	if(fabs(current_speed[i]) > max_feedrate[i])
   36be6:	68 96       	adiw	r28, 0x18	; 24
   36be8:	5f af       	std	Y+63, r21	; 0x3f
   36bea:	4e af       	std	Y+62, r20	; 0x3e
   36bec:	68 97       	sbiw	r28, 0x18	; 24
  block->nominal_speed = block->millimeters * inverse_second; // (mm/sec) Always > 0
  block->nominal_rate = ceil(block->step_event_count.wide * inverse_second); // (step/sec) Always > 0

  // Calculate and limit speed in mm/sec for each axis
  float current_speed[4];
  float speed_factor = 1.0; //factor <=1 do decrease speed
   36bee:	19 a6       	std	Y+41, r1	; 0x29
   36bf0:	1d a6       	std	Y+45, r1	; 0x2d
   36bf2:	00 e8       	ldi	r16, 0x80	; 128
   36bf4:	1f e3       	ldi	r17, 0x3F	; 63
  for(int i=0; i < 4; i++)
  {
    current_speed[i] = delta_mm[i] * inverse_second;
   36bf6:	6c 96       	adiw	r28, 0x1c	; 28
   36bf8:	ae ad       	ldd	r26, Y+62	; 0x3e
   36bfa:	bf ad       	ldd	r27, Y+63	; 0x3f
   36bfc:	6c 97       	sbiw	r28, 0x1c	; 28
   36bfe:	2d 91       	ld	r18, X+
   36c00:	3d 91       	ld	r19, X+
   36c02:	4d 91       	ld	r20, X+
   36c04:	5d 91       	ld	r21, X+
   36c06:	6c 96       	adiw	r28, 0x1c	; 28
   36c08:	bf af       	std	Y+63, r27	; 0x3f
   36c0a:	ae af       	std	Y+62, r26	; 0x3e
   36c0c:	6c 97       	sbiw	r28, 0x1c	; 28
   36c0e:	c7 01       	movw	r24, r14
   36c10:	b6 01       	movw	r22, r12
   36c12:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36c16:	68 96       	adiw	r28, 0x18	; 24
   36c18:	ee ad       	ldd	r30, Y+62	; 0x3e
   36c1a:	ff ad       	ldd	r31, Y+63	; 0x3f
   36c1c:	68 97       	sbiw	r28, 0x18	; 24
   36c1e:	61 93       	st	Z+, r22
   36c20:	71 93       	st	Z+, r23
   36c22:	81 93       	st	Z+, r24
   36c24:	91 93       	st	Z+, r25
   36c26:	68 96       	adiw	r28, 0x18	; 24
   36c28:	ff af       	std	Y+63, r31	; 0x3f
   36c2a:	ee af       	std	Y+62, r30	; 0x3e
   36c2c:	68 97       	sbiw	r28, 0x18	; 24
	if(fabs(current_speed[i]) > max_feedrate[i])
   36c2e:	4b 01       	movw	r8, r22
   36c30:	5c 01       	movw	r10, r24
   36c32:	e8 94       	clt
   36c34:	b7 f8       	bld	r11, 7
   36c36:	a9 a9       	ldd	r26, Y+49	; 0x31
   36c38:	ba a9       	ldd	r27, Y+50	; 0x32
   36c3a:	2d 91       	ld	r18, X+
   36c3c:	3d 91       	ld	r19, X+
   36c3e:	4d 91       	ld	r20, X+
   36c40:	5d 91       	ld	r21, X+
   36c42:	ba ab       	std	Y+50, r27	; 0x32
   36c44:	a9 ab       	std	Y+49, r26	; 0x31
   36c46:	66 96       	adiw	r28, 0x16	; 22
   36c48:	2c af       	std	Y+60, r18	; 0x3c
   36c4a:	3d af       	std	Y+61, r19	; 0x3d
   36c4c:	4e af       	std	Y+62, r20	; 0x3e
   36c4e:	5f af       	std	Y+63, r21	; 0x3f
   36c50:	66 97       	sbiw	r28, 0x16	; 22
   36c52:	c5 01       	movw	r24, r10
   36c54:	b4 01       	movw	r22, r8
   36c56:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   36c5a:	18 16       	cp	r1, r24
   36c5c:	b4 f4       	brge	.+44     	; 0x36c8a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xa24>
	{
      speed_factor = min(speed_factor, max_feedrate[i] / fabs(current_speed[i]));
   36c5e:	a5 01       	movw	r20, r10
   36c60:	94 01       	movw	r18, r8
   36c62:	66 96       	adiw	r28, 0x16	; 22
   36c64:	6c ad       	ldd	r22, Y+60	; 0x3c
   36c66:	7d ad       	ldd	r23, Y+61	; 0x3d
   36c68:	8e ad       	ldd	r24, Y+62	; 0x3e
   36c6a:	9f ad       	ldd	r25, Y+63	; 0x3f
   36c6c:	66 97       	sbiw	r28, 0x16	; 22
   36c6e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36c72:	4b 01       	movw	r8, r22
   36c74:	5c 01       	movw	r10, r24
   36c76:	29 a5       	ldd	r18, Y+41	; 0x29
   36c78:	3d a5       	ldd	r19, Y+45	; 0x2d
   36c7a:	a8 01       	movw	r20, r16
   36c7c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   36c80:	18 16       	cp	r1, r24
   36c82:	1c f0       	brlt	.+6      	; 0x36c8a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xa24>
   36c84:	89 a6       	std	Y+41, r8	; 0x29
   36c86:	9d a6       	std	Y+45, r9	; 0x2d
   36c88:	85 01       	movw	r16, r10
  block->nominal_rate = ceil(block->step_event_count.wide * inverse_second); // (step/sec) Always > 0

  // Calculate and limit speed in mm/sec for each axis
  float current_speed[4];
  float speed_factor = 1.0; //factor <=1 do decrease speed
  for(int i=0; i < 4; i++)
   36c8a:	6e 96       	adiw	r28, 0x1e	; 30
   36c8c:	ee ad       	ldd	r30, Y+62	; 0x3e
   36c8e:	ff ad       	ldd	r31, Y+63	; 0x3f
   36c90:	6e 97       	sbiw	r28, 0x1e	; 30
   36c92:	29 a9       	ldd	r18, Y+49	; 0x31
   36c94:	3a a9       	ldd	r19, Y+50	; 0x32
   36c96:	e2 17       	cp	r30, r18
   36c98:	f3 07       	cpc	r31, r19
   36c9a:	09 f0       	breq	.+2      	; 0x36c9e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xa38>
   36c9c:	ac cf       	rjmp	.-168    	; 0x36bf6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x990>
      speed_factor = min(speed_factor, max_feedrate[i] / fabs(current_speed[i]));
	}
  }

  // Correct the speed
  if( speed_factor < 1.0)
   36c9e:	20 e0       	ldi	r18, 0x00	; 0
   36ca0:	30 e0       	ldi	r19, 0x00	; 0
   36ca2:	40 e8       	ldi	r20, 0x80	; 128
   36ca4:	5f e3       	ldi	r21, 0x3F	; 63
   36ca6:	69 a5       	ldd	r22, Y+41	; 0x29
   36ca8:	7d a5       	ldd	r23, Y+45	; 0x2d
   36caa:	c8 01       	movw	r24, r16
   36cac:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   36cb0:	87 ff       	sbrs	r24, 7
   36cb2:	50 c0       	rjmp	.+160    	; 0x36d54 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xaee>
   36cb4:	a0 96       	adiw	r28, 0x20	; 32
   36cb6:	ae ac       	ldd	r10, Y+62	; 0x3e
   36cb8:	bf ac       	ldd	r11, Y+63	; 0x3f
   36cba:	a0 97       	sbiw	r28, 0x20	; 32
   36cbc:	30 e1       	ldi	r19, 0x10	; 16
   36cbe:	a3 0e       	add	r10, r19
   36cc0:	b1 1c       	adc	r11, r1
   36cc2:	a0 96       	adiw	r28, 0x20	; 32
   36cc4:	ce ac       	ldd	r12, Y+62	; 0x3e
   36cc6:	df ac       	ldd	r13, Y+63	; 0x3f
   36cc8:	a0 97       	sbiw	r28, 0x20	; 32
  {
    for(unsigned char i=0; i < 4; i++)
    {
      current_speed[i] *= speed_factor;
   36cca:	d6 01       	movw	r26, r12
   36ccc:	6d 91       	ld	r22, X+
   36cce:	7d 91       	ld	r23, X+
   36cd0:	8d 91       	ld	r24, X+
   36cd2:	9d 91       	ld	r25, X+
   36cd4:	6d 01       	movw	r12, r26
   36cd6:	7d 01       	movw	r14, r26
   36cd8:	b4 e0       	ldi	r27, 0x04	; 4
   36cda:	eb 1a       	sub	r14, r27
   36cdc:	f1 08       	sbc	r15, r1
   36cde:	29 a5       	ldd	r18, Y+41	; 0x29
   36ce0:	3d a5       	ldd	r19, Y+45	; 0x2d
   36ce2:	a8 01       	movw	r20, r16
   36ce4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36ce8:	f7 01       	movw	r30, r14
   36cea:	60 83       	st	Z, r22
   36cec:	71 83       	std	Z+1, r23	; 0x01
   36cee:	82 83       	std	Z+2, r24	; 0x02
   36cf0:	93 83       	std	Z+3, r25	; 0x03
  }

  // Correct the speed
  if( speed_factor < 1.0)
  {
    for(unsigned char i=0; i < 4; i++)
   36cf2:	ac 14       	cp	r10, r12
   36cf4:	bd 04       	cpc	r11, r13
   36cf6:	49 f7       	brne	.-46     	; 0x36cca <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xa64>
    {
      current_speed[i] *= speed_factor;
    }
    block->nominal_speed *= speed_factor;
   36cf8:	2e e6       	ldi	r18, 0x6E	; 110
   36cfa:	22 9d       	mul	r18, r2
   36cfc:	c0 01       	movw	r24, r0
   36cfe:	23 9d       	mul	r18, r3
   36d00:	90 0d       	add	r25, r0
   36d02:	11 24       	eor	r1, r1
   36d04:	9c 01       	movw	r18, r24
   36d06:	2b 53       	subi	r18, 0x3B	; 59
   36d08:	39 4f       	sbci	r19, 0xF9	; 249
   36d0a:	79 01       	movw	r14, r18
   36d0c:	29 a5       	ldd	r18, Y+41	; 0x29
   36d0e:	3d a5       	ldd	r19, Y+45	; 0x2d
   36d10:	a8 01       	movw	r20, r16
   36d12:	6d a9       	ldd	r22, Y+53	; 0x35
   36d14:	7e a9       	ldd	r23, Y+54	; 0x36
   36d16:	8f a9       	ldd	r24, Y+55	; 0x37
   36d18:	98 ad       	ldd	r25, Y+56	; 0x38
   36d1a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36d1e:	d7 01       	movw	r26, r14
   36d20:	91 96       	adiw	r26, 0x21	; 33
   36d22:	6d 93       	st	X+, r22
   36d24:	7d 93       	st	X+, r23
   36d26:	8d 93       	st	X+, r24
   36d28:	9c 93       	st	X, r25
   36d2a:	94 97       	sbiw	r26, 0x24	; 36
    block->nominal_rate *= speed_factor;
   36d2c:	62 96       	adiw	r28, 0x12	; 18
   36d2e:	6c ad       	ldd	r22, Y+60	; 0x3c
   36d30:	7d ad       	ldd	r23, Y+61	; 0x3d
   36d32:	8e ad       	ldd	r24, Y+62	; 0x3e
   36d34:	9f ad       	ldd	r25, Y+63	; 0x3f
   36d36:	62 97       	sbiw	r28, 0x12	; 18
   36d38:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   36d3c:	29 a5       	ldd	r18, Y+41	; 0x29
   36d3e:	3d a5       	ldd	r19, Y+45	; 0x2d
   36d40:	a8 01       	movw	r20, r16
   36d42:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36d46:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   36d4a:	f7 01       	movw	r30, r14
   36d4c:	66 ab       	std	Z+54, r22	; 0x36
   36d4e:	77 ab       	std	Z+55, r23	; 0x37
   36d50:	80 af       	std	Z+56, r24	; 0x38
   36d52:	91 af       	std	Z+57, r25	; 0x39
  float e_D_ratio = 0;
#endif
  // Compute and limit the acceleration rate for the trapezoid generator.
  // block->step_event_count ... event count of the fastest axis
  // block->millimeters ... Euclidian length of the XYZ movement or the E length, if no XYZ movement.
  float steps_per_mm = block->step_event_count.wide/block->millimeters;
   36d54:	a3 01       	movw	r20, r6
   36d56:	92 01       	movw	r18, r4
   36d58:	69 ad       	ldd	r22, Y+57	; 0x39
   36d5a:	7a ad       	ldd	r23, Y+58	; 0x3a
   36d5c:	8b ad       	ldd	r24, Y+59	; 0x3b
   36d5e:	9c ad       	ldd	r25, Y+60	; 0x3c
   36d60:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36d64:	69 a7       	std	Y+41, r22	; 0x29
   36d66:	7a a7       	std	Y+42, r23	; 0x2a
   36d68:	8b a7       	std	Y+43, r24	; 0x2b
   36d6a:	9c a7       	std	Y+44, r25	; 0x2c
  uint32_t accel;
  if(block->steps[X_AXIS].wide == 0 && block->steps[Y_AXIS].wide == 0 && block->steps[Z_AXIS].wide == 0)
   36d6c:	2e 96       	adiw	r28, 0x0e	; 14
   36d6e:	2c ad       	ldd	r18, Y+60	; 0x3c
   36d70:	3d ad       	ldd	r19, Y+61	; 0x3d
   36d72:	4e ad       	ldd	r20, Y+62	; 0x3e
   36d74:	5f ad       	ldd	r21, Y+63	; 0x3f
   36d76:	2e 97       	sbiw	r28, 0x0e	; 14
   36d78:	23 2b       	or	r18, r19
   36d7a:	24 2b       	or	r18, r20
   36d7c:	25 2b       	or	r18, r21
   36d7e:	09 f0       	breq	.+2      	; 0x36d82 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xb1c>
   36d80:	b9 c5       	rjmp	.+2930   	; 0x378f4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x168e>
   36d82:	8e e6       	ldi	r24, 0x6E	; 110
   36d84:	82 9d       	mul	r24, r2
   36d86:	80 01       	movw	r16, r0
   36d88:	83 9d       	mul	r24, r3
   36d8a:	10 0d       	add	r17, r0
   36d8c:	11 24       	eor	r1, r1
   36d8e:	0b 53       	subi	r16, 0x3B	; 59
   36d90:	19 4f       	sbci	r17, 0xF9	; 249
   36d92:	f8 01       	movw	r30, r16
   36d94:	84 81       	ldd	r24, Z+4	; 0x04
   36d96:	95 81       	ldd	r25, Z+5	; 0x05
   36d98:	a6 81       	ldd	r26, Z+6	; 0x06
   36d9a:	b7 81       	ldd	r27, Z+7	; 0x07
   36d9c:	89 2b       	or	r24, r25
   36d9e:	8a 2b       	or	r24, r26
   36da0:	8b 2b       	or	r24, r27
   36da2:	09 f0       	breq	.+2      	; 0x36da6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xb40>
   36da4:	a7 c5       	rjmp	.+2894   	; 0x378f4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x168e>
   36da6:	80 85       	ldd	r24, Z+8	; 0x08
   36da8:	91 85       	ldd	r25, Z+9	; 0x09
   36daa:	a2 85       	ldd	r26, Z+10	; 0x0a
   36dac:	b3 85       	ldd	r27, Z+11	; 0x0b
   36dae:	89 2b       	or	r24, r25
   36db0:	8a 2b       	or	r24, r26
   36db2:	8b 2b       	or	r24, r27
   36db4:	09 f0       	breq	.+2      	; 0x36db8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xb52>
   36db6:	9e c5       	rjmp	.+2876   	; 0x378f4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x168e>
  {
    accel = ceil(cs.retract_acceleration * steps_per_mm); // convert to: acceleration steps/sec^2
   36db8:	20 91 f6 0d 	lds	r18, 0x0DF6	; 0x800df6 <cs+0x38>
   36dbc:	30 91 f7 0d 	lds	r19, 0x0DF7	; 0x800df7 <cs+0x39>
   36dc0:	40 91 f8 0d 	lds	r20, 0x0DF8	; 0x800df8 <cs+0x3a>
   36dc4:	50 91 f9 0d 	lds	r21, 0x0DF9	; 0x800df9 <cs+0x3b>
   36dc8:	69 a5       	ldd	r22, Y+41	; 0x29
   36dca:	7a a5       	ldd	r23, Y+42	; 0x2a
   36dcc:	8b a5       	ldd	r24, Y+43	; 0x2b
   36dce:	9c a5       	ldd	r25, Y+44	; 0x2c
   36dd0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36dd4:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   36dd8:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   36ddc:	2b 01       	movw	r4, r22
   36dde:	3c 01       	movw	r6, r24
    #ifdef LIN_ADVANCE
    block->use_advance_lead = false;
   36de0:	f8 01       	movw	r30, r16
   36de2:	e4 5b       	subi	r30, 0xB4	; 180
   36de4:	ff 4f       	sbci	r31, 0xFF	; 255
   36de6:	10 82       	st	Z, r1
    block->nominal_speed *= speed_factor;
    block->nominal_rate *= speed_factor;
  }

#ifdef LIN_ADVANCE
  float e_D_ratio = 0;
   36de8:	6a 96       	adiw	r28, 0x1a	; 26
   36dea:	1c ae       	std	Y+60, r1	; 0x3c
   36dec:	1d ae       	std	Y+61, r1	; 0x3d
   36dee:	1e ae       	std	Y+62, r1	; 0x3e
   36df0:	1f ae       	std	Y+63, r1	; 0x3f
   36df2:	6a 97       	sbiw	r28, 0x1a	; 26
        if (max_possible < accel) accel = max_possible;
      }
    }
  }
  // Acceleration of the segment, in mm/sec^2
  block->acceleration_steps_per_s2 = accel;
   36df4:	8e e6       	ldi	r24, 0x6E	; 110
   36df6:	82 9d       	mul	r24, r2
   36df8:	80 01       	movw	r16, r0
   36dfa:	83 9d       	mul	r24, r3
   36dfc:	10 0d       	add	r17, r0
   36dfe:	11 24       	eor	r1, r1
   36e00:	0b 53       	subi	r16, 0x3B	; 59
   36e02:	19 4f       	sbci	r17, 0xF9	; 249
   36e04:	f8 01       	movw	r30, r16
   36e06:	ee 5b       	subi	r30, 0xBE	; 190
   36e08:	ff 4f       	sbci	r31, 0xFF	; 255
   36e0a:	40 82       	st	Z, r4
   36e0c:	51 82       	std	Z+1, r5	; 0x01
   36e0e:	62 82       	std	Z+2, r6	; 0x02
   36e10:	73 82       	std	Z+3, r7	; 0x03
  block->acceleration = accel / steps_per_mm;
   36e12:	c3 01       	movw	r24, r6
   36e14:	b2 01       	movw	r22, r4
   36e16:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   36e1a:	6b 01       	movw	r12, r22
   36e1c:	7c 01       	movw	r14, r24
   36e1e:	29 a5       	ldd	r18, Y+41	; 0x29
   36e20:	3a a5       	ldd	r19, Y+42	; 0x2a
   36e22:	4b a5       	ldd	r20, Y+43	; 0x2b
   36e24:	5c a5       	ldd	r21, Y+44	; 0x2c
   36e26:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36e2a:	e2 96       	adiw	r28, 0x32	; 50
   36e2c:	6c af       	std	Y+60, r22	; 0x3c
   36e2e:	7d af       	std	Y+61, r23	; 0x3d
   36e30:	8e af       	std	Y+62, r24	; 0x3e
   36e32:	9f af       	std	Y+63, r25	; 0x3f
   36e34:	e2 97       	sbiw	r28, 0x32	; 50
   36e36:	f8 01       	movw	r30, r16
   36e38:	61 ab       	std	Z+49, r22	; 0x31
   36e3a:	72 ab       	std	Z+50, r23	; 0x32
   36e3c:	83 ab       	std	Z+51, r24	; 0x33
   36e3e:	94 ab       	std	Z+52, r25	; 0x34
  block->acceleration_rate = (uint32_t)(accel * (float(1UL << 24) / ((F_CPU) / 8.0f)));
   36e40:	2d eb       	ldi	r18, 0xBD	; 189
   36e42:	37 e3       	ldi	r19, 0x37	; 55
   36e44:	46 e0       	ldi	r20, 0x06	; 6
   36e46:	51 e4       	ldi	r21, 0x41	; 65
   36e48:	c7 01       	movw	r24, r14
   36e4a:	b6 01       	movw	r22, r12
   36e4c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36e50:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   36e54:	d8 01       	movw	r26, r16
   36e56:	54 96       	adiw	r26, 0x14	; 20
   36e58:	6d 93       	st	X+, r22
   36e5a:	7d 93       	st	X+, r23
   36e5c:	8d 93       	st	X+, r24
   36e5e:	9c 93       	st	X, r25
   36e60:	57 97       	sbiw	r26, 0x17	; 23

  // Start with a safe speed.
  // Safe speed is the speed, from which the machine may halt to stop immediately.
  float safe_speed = block->nominal_speed;
   36e62:	91 96       	adiw	r26, 0x21	; 33
   36e64:	bc 91       	ld	r27, X
   36e66:	27 96       	adiw	r28, 0x07	; 7
   36e68:	bf af       	std	Y+63, r27	; 0x3f
   36e6a:	27 97       	sbiw	r28, 0x07	; 7
   36e6c:	f8 01       	movw	r30, r16
   36e6e:	f2 a1       	ldd	r31, Z+34	; 0x22
   36e70:	2b 96       	adiw	r28, 0x0b	; 11
   36e72:	ff af       	std	Y+63, r31	; 0x3f
   36e74:	2b 97       	sbiw	r28, 0x0b	; 11
   36e76:	d8 01       	movw	r26, r16
   36e78:	93 96       	adiw	r26, 0x23	; 35
   36e7a:	bc 91       	ld	r27, X
   36e7c:	2f 96       	adiw	r28, 0x0f	; 15
   36e7e:	bf af       	std	Y+63, r27	; 0x3f
   36e80:	2f 97       	sbiw	r28, 0x0f	; 15
   36e82:	f8 01       	movw	r30, r16
   36e84:	f4 a1       	ldd	r31, Z+36	; 0x24
   36e86:	63 96       	adiw	r28, 0x13	; 19
   36e88:	ff af       	std	Y+63, r31	; 0x3f
   36e8a:	63 97       	sbiw	r28, 0x13	; 19
   36e8c:	26 e0       	ldi	r18, 0x06	; 6
   36e8e:	3e e0       	ldi	r19, 0x0E	; 14
   36e90:	ee 96       	adiw	r28, 0x3e	; 62
   36e92:	3f af       	std	Y+63, r19	; 0x3f
   36e94:	2e af       	std	Y+62, r18	; 0x3e
   36e96:	ee 97       	sbiw	r28, 0x3e	; 62
   36e98:	a0 96       	adiw	r28, 0x20	; 32
   36e9a:	4e ac       	ldd	r4, Y+62	; 0x3e
   36e9c:	5f ac       	ldd	r5, Y+63	; 0x3f
   36e9e:	a0 97       	sbiw	r28, 0x20	; 32
   36ea0:	30 e1       	ldi	r19, 0x10	; 16
   36ea2:	43 0e       	add	r4, r19
   36ea4:	51 1c       	adc	r5, r1
   36ea6:	06 e0       	ldi	r16, 0x06	; 6
   36ea8:	1e e0       	ldi	r17, 0x0E	; 14
   36eaa:	a0 96       	adiw	r28, 0x20	; 32
   36eac:	6e ac       	ldd	r6, Y+62	; 0x3e
   36eae:	7f ac       	ldd	r7, Y+63	; 0x3f
   36eb0:	a0 97       	sbiw	r28, 0x20	; 32
   36eb2:	27 96       	adiw	r28, 0x07	; 7
   36eb4:	4f ad       	ldd	r20, Y+63	; 0x3f
   36eb6:	27 97       	sbiw	r28, 0x07	; 7
   36eb8:	49 a7       	std	Y+41, r20	; 0x29
   36eba:	2b 96       	adiw	r28, 0x0b	; 11
   36ebc:	5f ad       	ldd	r21, Y+63	; 0x3f
   36ebe:	2b 97       	sbiw	r28, 0x0b	; 11
   36ec0:	5d a7       	std	Y+45, r21	; 0x2d
   36ec2:	b9 ab       	std	Y+49, r27	; 0x31
   36ec4:	f9 af       	std	Y+57, r31	; 0x39
  bool  limited = false;
   36ec6:	1d aa       	std	Y+53, r1	; 0x35
  for (uint8_t axis = 0; axis < 4; ++ axis) {
      float jerk = fabs(current_speed[axis]);
   36ec8:	d3 01       	movw	r26, r6
   36eca:	8d 90       	ld	r8, X+
   36ecc:	9d 90       	ld	r9, X+
   36ece:	ad 90       	ld	r10, X+
   36ed0:	bd 90       	ld	r11, X+
   36ed2:	3d 01       	movw	r6, r26
   36ed4:	e8 94       	clt
   36ed6:	b7 f8       	bld	r11, 7
      if (jerk > cs.max_jerk[axis]) {
   36ed8:	f8 01       	movw	r30, r16
   36eda:	c1 90       	ld	r12, Z+
   36edc:	d1 90       	ld	r13, Z+
   36ede:	e1 90       	ld	r14, Z+
   36ee0:	f1 90       	ld	r15, Z+
   36ee2:	8f 01       	movw	r16, r30
   36ee4:	a5 01       	movw	r20, r10
   36ee6:	94 01       	movw	r18, r8
   36ee8:	c7 01       	movw	r24, r14
   36eea:	b6 01       	movw	r22, r12
   36eec:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   36ef0:	87 ff       	sbrs	r24, 7
   36ef2:	3a c0       	rjmp	.+116    	; 0x36f68 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd02>
          // The actual jerk is lower, if it has been limited by the XY jerk.
          if (limited) {
   36ef4:	fd a9       	ldd	r31, Y+53	; 0x35
   36ef6:	ff 23       	and	r31, r31
   36ef8:	09 f4       	brne	.+2      	; 0x36efc <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xc96>
   36efa:	7e c6       	rjmp	.+3324   	; 0x37bf8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1992>
              // Spare one division by a following gymnastics:
              // Instead of jerk *= safe_speed / block->nominal_speed,
              // multiply max_jerk[axis] by the divisor.
              jerk *= safe_speed;
   36efc:	29 a5       	ldd	r18, Y+41	; 0x29
   36efe:	3d a5       	ldd	r19, Y+45	; 0x2d
   36f00:	49 a9       	ldd	r20, Y+49	; 0x31
   36f02:	59 ad       	ldd	r21, Y+57	; 0x39
   36f04:	c5 01       	movw	r24, r10
   36f06:	b4 01       	movw	r22, r8
   36f08:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36f0c:	4b 01       	movw	r8, r22
   36f0e:	5c 01       	movw	r10, r24
              float mjerk = cs.max_jerk[axis] * block->nominal_speed;
   36f10:	a7 01       	movw	r20, r14
   36f12:	96 01       	movw	r18, r12
   36f14:	27 96       	adiw	r28, 0x07	; 7
   36f16:	6f ad       	ldd	r22, Y+63	; 0x3f
   36f18:	27 97       	sbiw	r28, 0x07	; 7
   36f1a:	2b 96       	adiw	r28, 0x0b	; 11
   36f1c:	7f ad       	ldd	r23, Y+63	; 0x3f
   36f1e:	2b 97       	sbiw	r28, 0x0b	; 11
   36f20:	2f 96       	adiw	r28, 0x0f	; 15
   36f22:	8f ad       	ldd	r24, Y+63	; 0x3f
   36f24:	2f 97       	sbiw	r28, 0x0f	; 15
   36f26:	63 96       	adiw	r28, 0x13	; 19
   36f28:	9f ad       	ldd	r25, Y+63	; 0x3f
   36f2a:	63 97       	sbiw	r28, 0x13	; 19
   36f2c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36f30:	6b 01       	movw	r12, r22
   36f32:	7c 01       	movw	r14, r24
              if (jerk > mjerk) {
   36f34:	ac 01       	movw	r20, r24
   36f36:	9b 01       	movw	r18, r22
   36f38:	c5 01       	movw	r24, r10
   36f3a:	b4 01       	movw	r22, r8
   36f3c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   36f40:	18 16       	cp	r1, r24
   36f42:	94 f4       	brge	.+36     	; 0x36f68 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd02>
                  safe_speed *= mjerk / jerk;
   36f44:	a5 01       	movw	r20, r10
   36f46:	94 01       	movw	r18, r8
   36f48:	c7 01       	movw	r24, r14
   36f4a:	b6 01       	movw	r22, r12
   36f4c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   36f50:	9b 01       	movw	r18, r22
   36f52:	ac 01       	movw	r20, r24
   36f54:	69 a5       	ldd	r22, Y+41	; 0x29
   36f56:	7d a5       	ldd	r23, Y+45	; 0x2d
   36f58:	89 a9       	ldd	r24, Y+49	; 0x31
   36f5a:	99 ad       	ldd	r25, Y+57	; 0x39
   36f5c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   36f60:	69 a7       	std	Y+41, r22	; 0x29
   36f62:	7d a7       	std	Y+45, r23	; 0x2d
   36f64:	89 ab       	std	Y+49, r24	; 0x31
   36f66:	99 af       	std	Y+57, r25	; 0x39

  // Start with a safe speed.
  // Safe speed is the speed, from which the machine may halt to stop immediately.
  float safe_speed = block->nominal_speed;
  bool  limited = false;
  for (uint8_t axis = 0; axis < 4; ++ axis) {
   36f68:	46 14       	cp	r4, r6
   36f6a:	57 04       	cpc	r5, r7
   36f6c:	09 f0       	breq	.+2      	; 0x36f70 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd0a>
   36f6e:	ac cf       	rjmp	.-168    	; 0x36ec8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xc62>
          }
      }
  }

  // Reset the block flag.
  block->flag = 0;
   36f70:	8e e6       	ldi	r24, 0x6E	; 110
   36f72:	82 9d       	mul	r24, r2
   36f74:	f0 01       	movw	r30, r0
   36f76:	83 9d       	mul	r24, r3
   36f78:	f0 0d       	add	r31, r0
   36f7a:	11 24       	eor	r1, r1
   36f7c:	eb 53       	subi	r30, 0x3B	; 59
   36f7e:	f9 4f       	sbci	r31, 0xF9	; 249
   36f80:	15 aa       	std	Z+53, r1	; 0x35

  if (plan_reset_next_e_sched)
   36f82:	80 91 b7 04 	lds	r24, 0x04B7	; 0x8004b7 <_ZL23plan_reset_next_e_sched.lto_priv.489>
   36f86:	88 23       	and	r24, r24
   36f88:	21 f0       	breq	.+8      	; 0x36f92 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd2c>
  {
      // finally propagate a pending reset
      block->flag |= BLOCK_FLAG_E_RESET;
   36f8a:	80 e1       	ldi	r24, 0x10	; 16
   36f8c:	85 ab       	std	Z+53, r24	; 0x35
      plan_reset_next_e_sched = false;
   36f8e:	10 92 b7 04 	sts	0x04B7, r1	; 0x8004b7 <_ZL23plan_reset_next_e_sched.lto_priv.489>
  float vmax_junction;

  //FIXME Vojtech: Why only if at least two lines are planned in the queue?
  // Is it because we don't want to tinker with the first buffer line, which
  // is likely to be executed by the stepper interrupt routine soon?
  if (moves_queued > 1 && previous_nominal_speed > 0.0001f) {
   36f92:	3d ad       	ldd	r19, Y+61	; 0x3d
   36f94:	32 30       	cpi	r19, 0x02	; 2
   36f96:	08 f4       	brcc	.+2      	; 0x36f9a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd34>
   36f98:	8f c6       	rjmp	.+3358   	; 0x37cb8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a52>
   36f9a:	40 91 b9 04 	lds	r20, 0x04B9	; 0x8004b9 <_ZL22previous_nominal_speed.lto_priv.490>
   36f9e:	6b 96       	adiw	r28, 0x1b	; 27
   36fa0:	4f af       	std	Y+63, r20	; 0x3f
   36fa2:	6b 97       	sbiw	r28, 0x1b	; 27
   36fa4:	50 91 ba 04 	lds	r21, 0x04BA	; 0x8004ba <_ZL22previous_nominal_speed.lto_priv.490+0x1>
   36fa8:	6d 96       	adiw	r28, 0x1d	; 29
   36faa:	5f af       	std	Y+63, r21	; 0x3f
   36fac:	6d 97       	sbiw	r28, 0x1d	; 29
   36fae:	00 91 bb 04 	lds	r16, 0x04BB	; 0x8004bb <_ZL22previous_nominal_speed.lto_priv.490+0x2>
   36fb2:	10 91 bc 04 	lds	r17, 0x04BC	; 0x8004bc <_ZL22previous_nominal_speed.lto_priv.490+0x3>
   36fb6:	27 e1       	ldi	r18, 0x17	; 23
   36fb8:	37 eb       	ldi	r19, 0xB7	; 183
   36fba:	41 ed       	ldi	r20, 0xD1	; 209
   36fbc:	58 e3       	ldi	r21, 0x38	; 56
   36fbe:	6b 96       	adiw	r28, 0x1b	; 27
   36fc0:	6f ad       	ldd	r22, Y+63	; 0x3f
   36fc2:	6b 97       	sbiw	r28, 0x1b	; 27
   36fc4:	6d 96       	adiw	r28, 0x1d	; 29
   36fc6:	7f ad       	ldd	r23, Y+63	; 0x3f
   36fc8:	6d 97       	sbiw	r28, 0x1d	; 29
   36fca:	c8 01       	movw	r24, r16
   36fcc:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   36fd0:	18 16       	cp	r1, r24
   36fd2:	0c f0       	brlt	.+2      	; 0x36fd6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd70>
   36fd4:	71 c6       	rjmp	.+3298   	; 0x37cb8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a52>
      // If this maximum velocity allowed is lower than the minimum of the entry / exit safe velocities,
      // then the machine is not coasting anymore and the safe entry / exit velocities shall be used.

      // The junction velocity will be shared between successive segments. Limit the junction velocity to their minimum.
      bool prev_speed_larger = previous_nominal_speed > block->nominal_speed;
      float smaller_speed_factor = prev_speed_larger ? (block->nominal_speed / previous_nominal_speed) : (previous_nominal_speed / block->nominal_speed);
   36fd6:	6b 96       	adiw	r28, 0x1b	; 27
   36fd8:	2f ad       	ldd	r18, Y+63	; 0x3f
   36fda:	6b 97       	sbiw	r28, 0x1b	; 27
   36fdc:	6d 96       	adiw	r28, 0x1d	; 29
   36fde:	3f ad       	ldd	r19, Y+63	; 0x3f
   36fe0:	6d 97       	sbiw	r28, 0x1d	; 29
   36fe2:	a8 01       	movw	r20, r16
   36fe4:	27 96       	adiw	r28, 0x07	; 7
   36fe6:	6f ad       	ldd	r22, Y+63	; 0x3f
   36fe8:	27 97       	sbiw	r28, 0x07	; 7
   36fea:	2b 96       	adiw	r28, 0x0b	; 11
   36fec:	7f ad       	ldd	r23, Y+63	; 0x3f
   36fee:	2b 97       	sbiw	r28, 0x0b	; 11
   36ff0:	2f 96       	adiw	r28, 0x0f	; 15
   36ff2:	8f ad       	ldd	r24, Y+63	; 0x3f
   36ff4:	2f 97       	sbiw	r28, 0x0f	; 15
   36ff6:	63 96       	adiw	r28, 0x13	; 19
   36ff8:	9f ad       	ldd	r25, Y+63	; 0x3f
   36ffa:	63 97       	sbiw	r28, 0x13	; 19
   36ffc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37000:	87 ff       	sbrs	r24, 7
   37002:	01 c6       	rjmp	.+3074   	; 0x37c06 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x19a0>
   37004:	6b 96       	adiw	r28, 0x1b	; 27
   37006:	2f ad       	ldd	r18, Y+63	; 0x3f
   37008:	6b 97       	sbiw	r28, 0x1b	; 27
   3700a:	6d 96       	adiw	r28, 0x1d	; 29
   3700c:	3f ad       	ldd	r19, Y+63	; 0x3f
   3700e:	6d 97       	sbiw	r28, 0x1d	; 29
   37010:	a8 01       	movw	r20, r16
   37012:	27 96       	adiw	r28, 0x07	; 7
   37014:	6f ad       	ldd	r22, Y+63	; 0x3f
   37016:	27 97       	sbiw	r28, 0x07	; 7
   37018:	2b 96       	adiw	r28, 0x0b	; 11
   3701a:	7f ad       	ldd	r23, Y+63	; 0x3f
   3701c:	2b 97       	sbiw	r28, 0x0b	; 11
   3701e:	2f 96       	adiw	r28, 0x0f	; 15
   37020:	8f ad       	ldd	r24, Y+63	; 0x3f
   37022:	2f 97       	sbiw	r28, 0x0f	; 15
   37024:	63 96       	adiw	r28, 0x13	; 19
   37026:	9f ad       	ldd	r25, Y+63	; 0x3f
   37028:	63 97       	sbiw	r28, 0x13	; 19
   3702a:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   3702e:	ec 96       	adiw	r28, 0x3c	; 60
   37030:	6c af       	std	Y+60, r22	; 0x3c
   37032:	7d af       	std	Y+61, r23	; 0x3d
   37034:	8e af       	std	Y+62, r24	; 0x3e
   37036:	9f af       	std	Y+63, r25	; 0x3f
   37038:	ec 97       	sbiw	r28, 0x3c	; 60
      // Pick the smaller of the nominal speeds. Higher speed shall not be achieved at the junction during coasting.
      vmax_junction = prev_speed_larger ? block->nominal_speed : previous_nominal_speed;
   3703a:	27 96       	adiw	r28, 0x07	; 7
   3703c:	8f ad       	ldd	r24, Y+63	; 0x3f
   3703e:	27 97       	sbiw	r28, 0x07	; 7
   37040:	8d af       	std	Y+61, r24	; 0x3d
   37042:	2b 96       	adiw	r28, 0x0b	; 11
   37044:	9f ad       	ldd	r25, Y+63	; 0x3f
   37046:	2b 97       	sbiw	r28, 0x0b	; 11
   37048:	9d ab       	std	Y+53, r25	; 0x35
   3704a:	2f 96       	adiw	r28, 0x0f	; 15
   3704c:	af ad       	ldd	r26, Y+63	; 0x3f
   3704e:	2f 97       	sbiw	r28, 0x0f	; 15
   37050:	ae af       	std	Y+62, r26	; 0x3e
   37052:	63 96       	adiw	r28, 0x13	; 19
   37054:	bf ad       	ldd	r27, Y+63	; 0x3f
   37056:	63 97       	sbiw	r28, 0x13	; 19
   37058:	23 96       	adiw	r28, 0x03	; 3
   3705a:	bf af       	std	Y+63, r27	; 0x3f
   3705c:	23 97       	sbiw	r28, 0x03	; 3
   3705e:	2d eb       	ldi	r18, 0xBD	; 189
   37060:	34 e0       	ldi	r19, 0x04	; 4
   37062:	e8 96       	adiw	r28, 0x38	; 56
   37064:	3f af       	std	Y+63, r19	; 0x3f
   37066:	2e af       	std	Y+62, r18	; 0x3e
   37068:	e8 97       	sbiw	r28, 0x38	; 56
      // Factor to multiply the previous / current nominal velocities to get componentwise limited velocities.
      float v_factor = 1.f;
   3706a:	41 2c       	mov	r4, r1
   3706c:	51 2c       	mov	r5, r1
   3706e:	30 e8       	ldi	r19, 0x80	; 128
   37070:	63 2e       	mov	r6, r19
   37072:	3f e3       	ldi	r19, 0x3F	; 63
   37074:	73 2e       	mov	r7, r19
      limited = false;
      // Now limit the jerk in all axes.
      for (uint8_t axis = 0; axis < 4; ++ axis) {
          // Limit an axis. We have to differentiate coasting from the reversal of an axis movement, or a full stop.
          float v_exit  = previous_speed[axis];
   37076:	e8 96       	adiw	r28, 0x38	; 56
   37078:	ae ad       	ldd	r26, Y+62	; 0x3e
   3707a:	bf ad       	ldd	r27, Y+63	; 0x3f
   3707c:	e8 97       	sbiw	r28, 0x38	; 56
   3707e:	8d 90       	ld	r8, X+
   37080:	9d 90       	ld	r9, X+
   37082:	ad 90       	ld	r10, X+
   37084:	bd 90       	ld	r11, X+
   37086:	e8 96       	adiw	r28, 0x38	; 56
   37088:	bf af       	std	Y+63, r27	; 0x3f
   3708a:	ae af       	std	Y+62, r26	; 0x3e
   3708c:	e8 97       	sbiw	r28, 0x38	; 56
          float v_entry = current_speed [axis];
   3708e:	a0 96       	adiw	r28, 0x20	; 32
   37090:	ee ad       	ldd	r30, Y+62	; 0x3e
   37092:	ff ad       	ldd	r31, Y+63	; 0x3f
   37094:	a0 97       	sbiw	r28, 0x20	; 32
   37096:	c1 90       	ld	r12, Z+
   37098:	d1 90       	ld	r13, Z+
   3709a:	e1 90       	ld	r14, Z+
   3709c:	f1 90       	ld	r15, Z+
   3709e:	a0 96       	adiw	r28, 0x20	; 32
   370a0:	ff af       	std	Y+63, r31	; 0x3f
   370a2:	ee af       	std	Y+62, r30	; 0x3e
   370a4:	a0 97       	sbiw	r28, 0x20	; 32
          if (prev_speed_larger)
   370a6:	6b 96       	adiw	r28, 0x1b	; 27
   370a8:	2f ad       	ldd	r18, Y+63	; 0x3f
   370aa:	6b 97       	sbiw	r28, 0x1b	; 27
   370ac:	6d 96       	adiw	r28, 0x1d	; 29
   370ae:	3f ad       	ldd	r19, Y+63	; 0x3f
   370b0:	6d 97       	sbiw	r28, 0x1d	; 29
   370b2:	a8 01       	movw	r20, r16
   370b4:	27 96       	adiw	r28, 0x07	; 7
   370b6:	6f ad       	ldd	r22, Y+63	; 0x3f
   370b8:	27 97       	sbiw	r28, 0x07	; 7
   370ba:	2b 96       	adiw	r28, 0x0b	; 11
   370bc:	7f ad       	ldd	r23, Y+63	; 0x3f
   370be:	2b 97       	sbiw	r28, 0x0b	; 11
   370c0:	2f 96       	adiw	r28, 0x0f	; 15
   370c2:	8f ad       	ldd	r24, Y+63	; 0x3f
   370c4:	2f 97       	sbiw	r28, 0x0f	; 15
   370c6:	63 96       	adiw	r28, 0x13	; 19
   370c8:	9f ad       	ldd	r25, Y+63	; 0x3f
   370ca:	63 97       	sbiw	r28, 0x13	; 19
   370cc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   370d0:	87 ff       	sbrs	r24, 7
   370d2:	0c c0       	rjmp	.+24     	; 0x370ec <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xe86>
              v_exit *= smaller_speed_factor;
   370d4:	ec 96       	adiw	r28, 0x3c	; 60
   370d6:	2c ad       	ldd	r18, Y+60	; 0x3c
   370d8:	3d ad       	ldd	r19, Y+61	; 0x3d
   370da:	4e ad       	ldd	r20, Y+62	; 0x3e
   370dc:	5f ad       	ldd	r21, Y+63	; 0x3f
   370de:	ec 97       	sbiw	r28, 0x3c	; 60
   370e0:	c5 01       	movw	r24, r10
   370e2:	b4 01       	movw	r22, r8
   370e4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   370e8:	4b 01       	movw	r8, r22
   370ea:	5c 01       	movw	r10, r24
          if (limited) {
   370ec:	a2 96       	adiw	r28, 0x22	; 34
   370ee:	ff ad       	ldd	r31, Y+63	; 0x3f
   370f0:	a2 97       	sbiw	r28, 0x22	; 34
   370f2:	ff 23       	and	r31, r31
   370f4:	81 f0       	breq	.+32     	; 0x37116 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xeb0>
              v_exit  *= v_factor;
   370f6:	a3 01       	movw	r20, r6
   370f8:	92 01       	movw	r18, r4
   370fa:	c5 01       	movw	r24, r10
   370fc:	b4 01       	movw	r22, r8
   370fe:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37102:	4b 01       	movw	r8, r22
   37104:	5c 01       	movw	r10, r24
              v_entry *= v_factor;
   37106:	a3 01       	movw	r20, r6
   37108:	92 01       	movw	r18, r4
   3710a:	c7 01       	movw	r24, r14
   3710c:	b6 01       	movw	r22, r12
   3710e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37112:	6b 01       	movw	r12, r22
   37114:	7c 01       	movw	r14, r24
          }
          // Calculate the jerk depending on whether the axis is coasting in the same direction or reversing a direction.
          float jerk =
              (v_exit > v_entry) ?
   37116:	a7 01       	movw	r20, r14
   37118:	96 01       	movw	r18, r12
   3711a:	c5 01       	movw	r24, r10
   3711c:	b4 01       	movw	r22, r8
   3711e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
                  ((v_entry > 0.f || v_exit < 0.f) ?
   37122:	20 e0       	ldi	r18, 0x00	; 0
   37124:	30 e0       	ldi	r19, 0x00	; 0
   37126:	a9 01       	movw	r20, r18
              v_exit  *= v_factor;
              v_entry *= v_factor;
          }
          // Calculate the jerk depending on whether the axis is coasting in the same direction or reversing a direction.
          float jerk =
              (v_exit > v_entry) ?
   37128:	18 16       	cp	r1, r24
   3712a:	0c f0       	brlt	.+2      	; 0x3712e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xec8>
   3712c:	a3 c5       	rjmp	.+2886   	; 0x37c74 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a0e>
                  ((v_entry > 0.f || v_exit < 0.f) ?
   3712e:	c7 01       	movw	r24, r14
   37130:	b6 01       	movw	r22, r12
   37132:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37136:	18 16       	cp	r1, r24
   37138:	4c f0       	brlt	.+18     	; 0x3714c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xee6>
   3713a:	20 e0       	ldi	r18, 0x00	; 0
   3713c:	30 e0       	ldi	r19, 0x00	; 0
   3713e:	a9 01       	movw	r20, r18
   37140:	c5 01       	movw	r24, r10
   37142:	b4 01       	movw	r22, r8
   37144:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37148:	87 ff       	sbrs	r24, 7
   3714a:	85 c5       	rjmp	.+2826   	; 0x37c56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x19f0>
   3714c:	a7 01       	movw	r20, r14
   3714e:	96 01       	movw	r18, r12
   37150:	c5 01       	movw	r24, r10
   37152:	b4 01       	movw	r22, r8
                      // coasting
                      (v_exit - v_entry) :
                      // axis reversal
                      max(v_exit, - v_entry)) :
                  // v_exit <= v_entry
                  ((v_entry < 0.f || v_exit > 0.f) ?
   37154:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   37158:	6b 01       	movw	r12, r22
   3715a:	7c 01       	movw	r14, r24
                      // coasting
                      (v_entry - v_exit) :
                      // axis reversal
                      max(- v_exit, v_entry));
          if (jerk > cs.max_jerk[axis]) {
   3715c:	ee 96       	adiw	r28, 0x3e	; 62
   3715e:	ae ad       	ldd	r26, Y+62	; 0x3e
   37160:	bf ad       	ldd	r27, Y+63	; 0x3f
   37162:	ee 97       	sbiw	r28, 0x3e	; 62
   37164:	8d 90       	ld	r8, X+
   37166:	9d 90       	ld	r9, X+
   37168:	ad 90       	ld	r10, X+
   3716a:	bd 90       	ld	r11, X+
   3716c:	ee 96       	adiw	r28, 0x3e	; 62
   3716e:	bf af       	std	Y+63, r27	; 0x3f
   37170:	ae af       	std	Y+62, r26	; 0x3e
   37172:	ee 97       	sbiw	r28, 0x3e	; 62
   37174:	a5 01       	movw	r20, r10
   37176:	94 01       	movw	r18, r8
   37178:	c7 01       	movw	r24, r14
   3717a:	b6 01       	movw	r22, r12
   3717c:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37180:	18 16       	cp	r1, r24
   37182:	94 f4       	brge	.+36     	; 0x371a8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xf42>
              v_factor *= cs.max_jerk[axis] / jerk;
   37184:	a7 01       	movw	r20, r14
   37186:	96 01       	movw	r18, r12
   37188:	c5 01       	movw	r24, r10
   3718a:	b4 01       	movw	r22, r8
   3718c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37190:	9b 01       	movw	r18, r22
   37192:	ac 01       	movw	r20, r24
   37194:	c3 01       	movw	r24, r6
   37196:	b2 01       	movw	r22, r4
   37198:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3719c:	2b 01       	movw	r4, r22
   3719e:	3c 01       	movw	r6, r24
              limited = true;
   371a0:	b1 e0       	ldi	r27, 0x01	; 1
   371a2:	a2 96       	adiw	r28, 0x22	; 34
   371a4:	bf af       	std	Y+63, r27	; 0x3f
   371a6:	a2 97       	sbiw	r28, 0x22	; 34
      vmax_junction = prev_speed_larger ? block->nominal_speed : previous_nominal_speed;
      // Factor to multiply the previous / current nominal velocities to get componentwise limited velocities.
      float v_factor = 1.f;
      limited = false;
      // Now limit the jerk in all axes.
      for (uint8_t axis = 0; axis < 4; ++ axis) {
   371a8:	ed ec       	ldi	r30, 0xCD	; 205
   371aa:	f4 e0       	ldi	r31, 0x04	; 4
   371ac:	e8 96       	adiw	r28, 0x38	; 56
   371ae:	2e ad       	ldd	r18, Y+62	; 0x3e
   371b0:	3f ad       	ldd	r19, Y+63	; 0x3f
   371b2:	e8 97       	sbiw	r28, 0x38	; 56
   371b4:	e2 17       	cp	r30, r18
   371b6:	f3 07       	cpc	r31, r19
   371b8:	09 f0       	breq	.+2      	; 0x371bc <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xf56>
   371ba:	5d cf       	rjmp	.-326    	; 0x37076 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xe10>
          if (jerk > cs.max_jerk[axis]) {
              v_factor *= cs.max_jerk[axis] / jerk;
              limited = true;
          }
      }
      if (limited)
   371bc:	a2 96       	adiw	r28, 0x22	; 34
   371be:	3f ad       	ldd	r19, Y+63	; 0x3f
   371c0:	a2 97       	sbiw	r28, 0x22	; 34
   371c2:	33 23       	and	r19, r19
   371c4:	81 f0       	breq	.+32     	; 0x371e6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xf80>
          vmax_junction *= v_factor;
   371c6:	a3 01       	movw	r20, r6
   371c8:	92 01       	movw	r18, r4
   371ca:	6d ad       	ldd	r22, Y+61	; 0x3d
   371cc:	7d a9       	ldd	r23, Y+53	; 0x35
   371ce:	8e ad       	ldd	r24, Y+62	; 0x3e
   371d0:	23 96       	adiw	r28, 0x03	; 3
   371d2:	9f ad       	ldd	r25, Y+63	; 0x3f
   371d4:	23 97       	sbiw	r28, 0x03	; 3
   371d6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   371da:	6d af       	std	Y+61, r22	; 0x3d
   371dc:	7d ab       	std	Y+53, r23	; 0x35
   371de:	8e af       	std	Y+62, r24	; 0x3e
   371e0:	23 96       	adiw	r28, 0x03	; 3
   371e2:	9f af       	std	Y+63, r25	; 0x3f
   371e4:	23 97       	sbiw	r28, 0x03	; 3
      // Now the transition velocity is known, which maximizes the shared exit / entry velocity while
      // respecting the jerk factors, it may be possible, that applying separate safe exit / entry velocities will achieve faster prints.
      float vmax_junction_threshold = vmax_junction * 0.99f;
   371e6:	24 ea       	ldi	r18, 0xA4	; 164
   371e8:	30 e7       	ldi	r19, 0x70	; 112
   371ea:	4d e7       	ldi	r20, 0x7D	; 125
   371ec:	5f e3       	ldi	r21, 0x3F	; 63
   371ee:	6d ad       	ldd	r22, Y+61	; 0x3d
   371f0:	7d a9       	ldd	r23, Y+53	; 0x35
   371f2:	8e ad       	ldd	r24, Y+62	; 0x3e
   371f4:	23 96       	adiw	r28, 0x03	; 3
   371f6:	9f ad       	ldd	r25, Y+63	; 0x3f
   371f8:	23 97       	sbiw	r28, 0x03	; 3
   371fa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   371fe:	6b 01       	movw	r12, r22
   37200:	7c 01       	movw	r14, r24
      if (previous_safe_speed > vmax_junction_threshold && safe_speed > vmax_junction_threshold) {
   37202:	ac 01       	movw	r20, r24
   37204:	9b 01       	movw	r18, r22
   37206:	60 91 10 18 	lds	r22, 0x1810	; 0x801810 <previous_safe_speed>
   3720a:	70 91 11 18 	lds	r23, 0x1811	; 0x801811 <previous_safe_speed+0x1>
   3720e:	80 91 12 18 	lds	r24, 0x1812	; 0x801812 <previous_safe_speed+0x2>
   37212:	90 91 13 18 	lds	r25, 0x1813	; 0x801813 <previous_safe_speed+0x3>
   37216:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   3721a:	18 16       	cp	r1, r24
   3721c:	fc f4       	brge	.+62     	; 0x3725c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xff6>
   3721e:	29 a5       	ldd	r18, Y+41	; 0x29
   37220:	3d a5       	ldd	r19, Y+45	; 0x2d
   37222:	49 a9       	ldd	r20, Y+49	; 0x31
   37224:	59 ad       	ldd	r21, Y+57	; 0x39
   37226:	c7 01       	movw	r24, r14
   37228:	b6 01       	movw	r22, r12
   3722a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   3722e:	87 ff       	sbrs	r24, 7
   37230:	15 c0       	rjmp	.+42     	; 0x3725c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xff6>
          // Not coasting. The machine will stop and start the movements anyway,
          // better to start the segment from start.
          block->flag |= BLOCK_FLAG_START_FROM_FULL_HALT;
   37232:	8e e6       	ldi	r24, 0x6E	; 110
   37234:	82 9d       	mul	r24, r2
   37236:	f0 01       	movw	r30, r0
   37238:	83 9d       	mul	r24, r3
   3723a:	f0 0d       	add	r31, r0
   3723c:	11 24       	eor	r1, r1
   3723e:	eb 53       	subi	r30, 0x3B	; 59
   37240:	f9 4f       	sbci	r31, 0xF9	; 249
   37242:	85 a9       	ldd	r24, Z+53	; 0x35
   37244:	84 60       	ori	r24, 0x04	; 4
   37246:	85 ab       	std	Z+53, r24	; 0x35
   37248:	49 a5       	ldd	r20, Y+41	; 0x29
   3724a:	4d af       	std	Y+61, r20	; 0x3d
   3724c:	5d a5       	ldd	r21, Y+45	; 0x2d
   3724e:	5d ab       	std	Y+53, r21	; 0x35
   37250:	89 a9       	ldd	r24, Y+49	; 0x31
   37252:	8e af       	std	Y+62, r24	; 0x3e
   37254:	99 ad       	ldd	r25, Y+57	; 0x39
   37256:	23 96       	adiw	r28, 0x03	; 3
   37258:	9f af       	std	Y+63, r25	; 0x3f
   3725a:	23 97       	sbiw	r28, 0x03	; 3
      block->flag |= BLOCK_FLAG_START_FROM_FULL_HALT;
      vmax_junction = safe_speed;
  }

  // Max entry speed of this block equals the max exit speed of the previous block.
  block->max_entry_speed = vmax_junction;
   3725c:	8e e6       	ldi	r24, 0x6E	; 110
   3725e:	82 9d       	mul	r24, r2
   37260:	80 01       	movw	r16, r0
   37262:	83 9d       	mul	r24, r3
   37264:	10 0d       	add	r17, r0
   37266:	11 24       	eor	r1, r1
   37268:	0b 53       	subi	r16, 0x3B	; 59
   3726a:	19 4f       	sbci	r17, 0xF9	; 249
   3726c:	8d ad       	ldd	r24, Y+61	; 0x3d
   3726e:	9d a9       	ldd	r25, Y+53	; 0x35
   37270:	ae ad       	ldd	r26, Y+62	; 0x3e
   37272:	23 96       	adiw	r28, 0x03	; 3
   37274:	bf ad       	ldd	r27, Y+63	; 0x3f
   37276:	23 97       	sbiw	r28, 0x03	; 3
   37278:	f8 01       	movw	r30, r16
   3727a:	81 a7       	std	Z+41, r24	; 0x29
   3727c:	92 a7       	std	Z+42, r25	; 0x2a
   3727e:	a3 a7       	std	Z+43, r26	; 0x2b
   37280:	b4 a7       	std	Z+44, r27	; 0x2c
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   37282:	29 a5       	ldd	r18, Y+41	; 0x29
   37284:	3d a5       	ldd	r19, Y+45	; 0x2d
   37286:	49 a9       	ldd	r20, Y+49	; 0x31
   37288:	59 ad       	ldd	r21, Y+57	; 0x39
   3728a:	69 a5       	ldd	r22, Y+41	; 0x29
   3728c:	7d a5       	ldd	r23, Y+45	; 0x2d
   3728e:	89 a9       	ldd	r24, Y+49	; 0x31
   37290:	99 ad       	ldd	r25, Y+57	; 0x39
   37292:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37296:	6b 01       	movw	r12, r22
   37298:	7c 01       	movw	r14, r24

  // Max entry speed of this block equals the max exit speed of the previous block.
  block->max_entry_speed = vmax_junction;

  // Initialize block entry speed. Compute based on deceleration to safe_speed.
  double v_allowable = max_allowable_entry_speed(-block->acceleration,safe_speed,block->millimeters);
   3729a:	e2 96       	adiw	r28, 0x32	; 50
   3729c:	6c ad       	ldd	r22, Y+60	; 0x3c
   3729e:	7d ad       	ldd	r23, Y+61	; 0x3d
   372a0:	8e ad       	ldd	r24, Y+62	; 0x3e
   372a2:	9f ad       	ldd	r25, Y+63	; 0x3f
   372a4:	e2 97       	sbiw	r28, 0x32	; 50
   372a6:	90 58       	subi	r25, 0x80	; 128
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   372a8:	9b 01       	movw	r18, r22
   372aa:	ac 01       	movw	r20, r24
   372ac:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   372b0:	d8 01       	movw	r26, r16
   372b2:	9d 96       	adiw	r26, 0x2d	; 45
   372b4:	2d 91       	ld	r18, X+
   372b6:	3d 91       	ld	r19, X+
   372b8:	4d 91       	ld	r20, X+
   372ba:	5c 91       	ld	r21, X
   372bc:	d0 97       	sbiw	r26, 0x30	; 48
   372be:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   372c2:	9b 01       	movw	r18, r22
   372c4:	ac 01       	movw	r20, r24
   372c6:	c7 01       	movw	r24, r14
   372c8:	b6 01       	movw	r22, r12
   372ca:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   372ce:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   372d2:	d6 2e       	mov	r13, r22
   372d4:	e7 2e       	mov	r14, r23
   372d6:	8c 01       	movw	r16, r24
  // Max entry speed of this block equals the max exit speed of the previous block.
  block->max_entry_speed = vmax_junction;

  // Initialize block entry speed. Compute based on deceleration to safe_speed.
  double v_allowable = max_allowable_entry_speed(-block->acceleration,safe_speed,block->millimeters);
  block->entry_speed = min(vmax_junction, v_allowable);
   372d8:	2d ad       	ldd	r18, Y+61	; 0x3d
   372da:	3d a9       	ldd	r19, Y+53	; 0x35
   372dc:	4e ad       	ldd	r20, Y+62	; 0x3e
   372de:	23 96       	adiw	r28, 0x03	; 3
   372e0:	5f ad       	ldd	r21, Y+63	; 0x3f
   372e2:	23 97       	sbiw	r28, 0x03	; 3
   372e4:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   372e8:	18 16       	cp	r1, r24
   372ea:	34 f0       	brlt	.+12     	; 0x372f8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1092>
   372ec:	dd ae       	std	Y+61, r13	; 0x3d
   372ee:	ed aa       	std	Y+53, r14	; 0x35
   372f0:	0e af       	std	Y+62, r16	; 0x3e
   372f2:	23 96       	adiw	r28, 0x03	; 3
   372f4:	1f af       	std	Y+63, r17	; 0x3f
   372f6:	23 97       	sbiw	r28, 0x03	; 3
   372f8:	8e e6       	ldi	r24, 0x6E	; 110
   372fa:	82 9d       	mul	r24, r2
   372fc:	f0 01       	movw	r30, r0
   372fe:	83 9d       	mul	r24, r3
   37300:	f0 0d       	add	r31, r0
   37302:	11 24       	eor	r1, r1
   37304:	eb 53       	subi	r30, 0x3B	; 59
   37306:	f9 4f       	sbci	r31, 0xF9	; 249
   37308:	8d ad       	ldd	r24, Y+61	; 0x3d
   3730a:	9d a9       	ldd	r25, Y+53	; 0x35
   3730c:	ae ad       	ldd	r26, Y+62	; 0x3e
   3730e:	23 96       	adiw	r28, 0x03	; 3
   37310:	bf ad       	ldd	r27, Y+63	; 0x3f
   37312:	23 97       	sbiw	r28, 0x03	; 3
   37314:	85 a3       	std	Z+37, r24	; 0x25
   37316:	96 a3       	std	Z+38, r25	; 0x26
   37318:	a7 a3       	std	Z+39, r26	; 0x27
   3731a:	b0 a7       	std	Z+40, r27	; 0x28
  // junction speeds in deceleration and acceleration, respectively. This is due to how the current
  // block nominal speed limits both the current and next maximum junction speeds. Hence, in both
  // the reverse and forward planners, the corresponding block junction speed will always be at the
  // the maximum junction speed and may always be ignored for any speed reduction checks.
  // Always calculate trapezoid for new block
  block->flag |= (block->nominal_speed <= v_allowable) ? (BLOCK_FLAG_NOMINAL_LENGTH | BLOCK_FLAG_RECALCULATE) : BLOCK_FLAG_RECALCULATE;
   3731c:	f5 a8       	ldd	r15, Z+53	; 0x35
   3731e:	2d 2d       	mov	r18, r13
   37320:	3e 2d       	mov	r19, r14
   37322:	a8 01       	movw	r20, r16
   37324:	27 96       	adiw	r28, 0x07	; 7
   37326:	6f ad       	ldd	r22, Y+63	; 0x3f
   37328:	27 97       	sbiw	r28, 0x07	; 7
   3732a:	2b 96       	adiw	r28, 0x0b	; 11
   3732c:	7f ad       	ldd	r23, Y+63	; 0x3f
   3732e:	2b 97       	sbiw	r28, 0x0b	; 11
   37330:	2f 96       	adiw	r28, 0x0f	; 15
   37332:	8f ad       	ldd	r24, Y+63	; 0x3f
   37334:	2f 97       	sbiw	r28, 0x0f	; 15
   37336:	63 96       	adiw	r28, 0x13	; 19
   37338:	9f ad       	ldd	r25, Y+63	; 0x3f
   3733a:	63 97       	sbiw	r28, 0x13	; 19
   3733c:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37340:	18 16       	cp	r1, r24
   37342:	0c f4       	brge	.+2      	; 0x37346 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x10e0>
   37344:	cf c4       	rjmp	.+2462   	; 0x37ce4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a7e>
   37346:	83 e0       	ldi	r24, 0x03	; 3
   37348:	9e e6       	ldi	r25, 0x6E	; 110
   3734a:	92 9d       	mul	r25, r2
   3734c:	80 01       	movw	r16, r0
   3734e:	93 9d       	mul	r25, r3
   37350:	10 0d       	add	r17, r0
   37352:	11 24       	eor	r1, r1
   37354:	0b 53       	subi	r16, 0x3B	; 59
   37356:	19 4f       	sbci	r17, 0xF9	; 249
   37358:	f8 2a       	or	r15, r24
   3735a:	f8 01       	movw	r30, r16
   3735c:	f5 aa       	std	Z+53, r15	; 0x35

  // Update previous path unit_vector and nominal speed
  memcpy(previous_speed, current_speed, sizeof(previous_speed)); // previous_speed[] = current_speed[]
   3735e:	80 e1       	ldi	r24, 0x10	; 16
   37360:	fe 01       	movw	r30, r28
   37362:	71 96       	adiw	r30, 0x11	; 17
   37364:	ad eb       	ldi	r26, 0xBD	; 189
   37366:	b4 e0       	ldi	r27, 0x04	; 4
   37368:	01 90       	ld	r0, Z+
   3736a:	0d 92       	st	X+, r0
   3736c:	8a 95       	dec	r24
   3736e:	e1 f7       	brne	.-8      	; 0x37368 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1102>
  previous_nominal_speed = block->nominal_speed;
   37370:	27 96       	adiw	r28, 0x07	; 7
   37372:	8f ad       	ldd	r24, Y+63	; 0x3f
   37374:	27 97       	sbiw	r28, 0x07	; 7
   37376:	2b 96       	adiw	r28, 0x0b	; 11
   37378:	9f ad       	ldd	r25, Y+63	; 0x3f
   3737a:	2b 97       	sbiw	r28, 0x0b	; 11
   3737c:	2f 96       	adiw	r28, 0x0f	; 15
   3737e:	af ad       	ldd	r26, Y+63	; 0x3f
   37380:	2f 97       	sbiw	r28, 0x0f	; 15
   37382:	63 96       	adiw	r28, 0x13	; 19
   37384:	bf ad       	ldd	r27, Y+63	; 0x3f
   37386:	63 97       	sbiw	r28, 0x13	; 19
   37388:	80 93 b9 04 	sts	0x04B9, r24	; 0x8004b9 <_ZL22previous_nominal_speed.lto_priv.490>
   3738c:	90 93 ba 04 	sts	0x04BA, r25	; 0x8004ba <_ZL22previous_nominal_speed.lto_priv.490+0x1>
   37390:	a0 93 bb 04 	sts	0x04BB, r26	; 0x8004bb <_ZL22previous_nominal_speed.lto_priv.490+0x2>
   37394:	b0 93 bc 04 	sts	0x04BC, r27	; 0x8004bc <_ZL22previous_nominal_speed.lto_priv.490+0x3>
  previous_safe_speed = safe_speed;
   37398:	89 a5       	ldd	r24, Y+41	; 0x29
   3739a:	9d a5       	ldd	r25, Y+45	; 0x2d
   3739c:	a9 a9       	ldd	r26, Y+49	; 0x31
   3739e:	b9 ad       	ldd	r27, Y+57	; 0x39
   373a0:	80 93 10 18 	sts	0x1810, r24	; 0x801810 <previous_safe_speed>
   373a4:	90 93 11 18 	sts	0x1811, r25	; 0x801811 <previous_safe_speed+0x1>
   373a8:	a0 93 12 18 	sts	0x1812, r26	; 0x801812 <previous_safe_speed+0x2>
   373ac:	b0 93 13 18 	sts	0x1813, r27	; 0x801813 <previous_safe_speed+0x3>

  // Precalculate the division, so when all the trapezoids in the planner queue get recalculated, the division is not repeated.
  block->speed_factor = block->nominal_rate / block->nominal_speed;
   373b0:	d8 01       	movw	r26, r16
   373b2:	d6 96       	adiw	r26, 0x36	; 54
   373b4:	6d 91       	ld	r22, X+
   373b6:	7d 91       	ld	r23, X+
   373b8:	8d 91       	ld	r24, X+
   373ba:	9c 91       	ld	r25, X
   373bc:	d9 97       	sbiw	r26, 0x39	; 57
   373be:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   373c2:	27 96       	adiw	r28, 0x07	; 7
   373c4:	2f ad       	ldd	r18, Y+63	; 0x3f
   373c6:	27 97       	sbiw	r28, 0x07	; 7
   373c8:	2b 96       	adiw	r28, 0x0b	; 11
   373ca:	3f ad       	ldd	r19, Y+63	; 0x3f
   373cc:	2b 97       	sbiw	r28, 0x0b	; 11
   373ce:	2f 96       	adiw	r28, 0x0f	; 15
   373d0:	4f ad       	ldd	r20, Y+63	; 0x3f
   373d2:	2f 97       	sbiw	r28, 0x0f	; 15
   373d4:	63 96       	adiw	r28, 0x13	; 19
   373d6:	5f ad       	ldd	r21, Y+63	; 0x3f
   373d8:	63 97       	sbiw	r28, 0x13	; 19
   373da:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   373de:	2b 01       	movw	r4, r22
   373e0:	3c 01       	movw	r6, r24
   373e2:	f8 01       	movw	r30, r16
   373e4:	e8 5b       	subi	r30, 0xB8	; 184
   373e6:	ff 4f       	sbci	r31, 0xFF	; 255
   373e8:	40 82       	st	Z, r4
   373ea:	51 82       	std	Z+1, r5	; 0x01
   373ec:	62 82       	std	Z+2, r6	; 0x02
   373ee:	73 82       	std	Z+3, r7	; 0x03

#ifdef LIN_ADVANCE
  if (block->use_advance_lead) {
   373f0:	34 96       	adiw	r30, 0x04	; 4
   373f2:	80 81       	ld	r24, Z
   373f4:	88 23       	and	r24, r24
   373f6:	09 f4       	brne	.+2      	; 0x373fa <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1194>
   373f8:	89 c0       	rjmp	.+274    	; 0x3750c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x12a6>
      // calculate the compression ratio for the segment (the required advance steps are computed
      // during trapezoid planning)
      float adv_comp = extruder_advance_K * e_D_ratio * cs.axis_steps_per_mm[E_AXIS]; // (step/(mm/s))
   373fa:	20 91 65 05 	lds	r18, 0x0565	; 0x800565 <extruder_advance_K>
   373fe:	30 91 66 05 	lds	r19, 0x0566	; 0x800566 <extruder_advance_K+0x1>
   37402:	40 91 67 05 	lds	r20, 0x0567	; 0x800567 <extruder_advance_K+0x2>
   37406:	50 91 68 05 	lds	r21, 0x0568	; 0x800568 <extruder_advance_K+0x3>
   3740a:	6a 96       	adiw	r28, 0x1a	; 26
   3740c:	6c ad       	ldd	r22, Y+60	; 0x3c
   3740e:	7d ad       	ldd	r23, Y+61	; 0x3d
   37410:	8e ad       	ldd	r24, Y+62	; 0x3e
   37412:	9f ad       	ldd	r25, Y+63	; 0x3f
   37414:	6a 97       	sbiw	r28, 0x1a	; 26
   37416:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3741a:	4b 01       	movw	r8, r22
   3741c:	5c 01       	movw	r10, r24
   3741e:	c0 90 ce 0d 	lds	r12, 0x0DCE	; 0x800dce <cs+0x10>
   37422:	d0 90 cf 0d 	lds	r13, 0x0DCF	; 0x800dcf <cs+0x11>
   37426:	e0 90 d0 0d 	lds	r14, 0x0DD0	; 0x800dd0 <cs+0x12>
   3742a:	f0 90 d1 0d 	lds	r15, 0x0DD1	; 0x800dd1 <cs+0x13>
      block->adv_comp = adv_comp / block->speed_factor; // step/(step/min)
   3742e:	0c 5a       	subi	r16, 0xAC	; 172
   37430:	1f 4f       	sbci	r17, 0xFF	; 255

#ifdef LIN_ADVANCE
  if (block->use_advance_lead) {
      // calculate the compression ratio for the segment (the required advance steps are computed
      // during trapezoid planning)
      float adv_comp = extruder_advance_K * e_D_ratio * cs.axis_steps_per_mm[E_AXIS]; // (step/(mm/s))
   37432:	a7 01       	movw	r20, r14
   37434:	96 01       	movw	r18, r12
   37436:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
      block->adv_comp = adv_comp / block->speed_factor; // step/(step/min)
   3743a:	a3 01       	movw	r20, r6
   3743c:	92 01       	movw	r18, r4
   3743e:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37442:	f8 01       	movw	r30, r16
   37444:	60 83       	st	Z, r22
   37446:	71 83       	std	Z+1, r23	; 0x01
   37448:	82 83       	std	Z+2, r24	; 0x02
   3744a:	93 83       	std	Z+3, r25	; 0x03

      float advance_speed;
      if (e_D_ratio > 0)
   3744c:	20 e0       	ldi	r18, 0x00	; 0
   3744e:	30 e0       	ldi	r19, 0x00	; 0
   37450:	a9 01       	movw	r20, r18
   37452:	6a 96       	adiw	r28, 0x1a	; 26
   37454:	6c ad       	ldd	r22, Y+60	; 0x3c
   37456:	7d ad       	ldd	r23, Y+61	; 0x3d
   37458:	8e ad       	ldd	r24, Y+62	; 0x3e
   3745a:	9f ad       	ldd	r25, Y+63	; 0x3f
   3745c:	6a 97       	sbiw	r28, 0x1a	; 26
   3745e:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37462:	18 16       	cp	r1, r24
   37464:	0c f0       	brlt	.+2      	; 0x37468 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1202>
   37466:	40 c4       	rjmp	.+2176   	; 0x37ce8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a82>
          advance_speed = (extruder_advance_K * e_D_ratio * block->acceleration * cs.axis_steps_per_mm[E_AXIS]);
   37468:	a5 01       	movw	r20, r10
   3746a:	94 01       	movw	r18, r8
   3746c:	e2 96       	adiw	r28, 0x32	; 50
   3746e:	6c ad       	ldd	r22, Y+60	; 0x3c
   37470:	7d ad       	ldd	r23, Y+61	; 0x3d
   37472:	8e ad       	ldd	r24, Y+62	; 0x3e
   37474:	9f ad       	ldd	r25, Y+63	; 0x3f
   37476:	e2 97       	sbiw	r28, 0x32	; 50
   37478:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3747c:	a7 01       	movw	r20, r14
   3747e:	96 01       	movw	r18, r12
      else
          advance_speed = cs.max_jerk[E_AXIS] * cs.axis_steps_per_mm[E_AXIS];
   37480:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37484:	6b 01       	movw	r12, r22
   37486:	7c 01       	movw	r14, r24

      // to save more space we avoid another copy of calc_timer and go through slow division, but we
      // still need to replicate the *exact* same step grouping policy (see below)
      if (advance_speed > MAX_STEP_FREQUENCY) advance_speed = MAX_STEP_FREQUENCY;
   37488:	20 e0       	ldi	r18, 0x00	; 0
   3748a:	30 e4       	ldi	r19, 0x40	; 64
   3748c:	4c e1       	ldi	r20, 0x1C	; 28
   3748e:	57 e4       	ldi	r21, 0x47	; 71
   37490:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37494:	18 16       	cp	r1, r24
   37496:	3c f4       	brge	.+14     	; 0x374a6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1240>
   37498:	c1 2c       	mov	r12, r1
   3749a:	20 e4       	ldi	r18, 0x40	; 64
   3749c:	d2 2e       	mov	r13, r18
   3749e:	2c e1       	ldi	r18, 0x1C	; 28
   374a0:	e2 2e       	mov	r14, r18
   374a2:	27 e4       	ldi	r18, 0x47	; 71
   374a4:	f2 2e       	mov	r15, r18
      float advance_rate = (F_CPU / 8.0) / advance_speed;
   374a6:	a7 01       	movw	r20, r14
   374a8:	96 01       	movw	r18, r12
   374aa:	60 e0       	ldi	r22, 0x00	; 0
   374ac:	74 e2       	ldi	r23, 0x24	; 36
   374ae:	84 ef       	ldi	r24, 0xF4	; 244
   374b0:	99 e4       	ldi	r25, 0x49	; 73
   374b2:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   374b6:	4b 01       	movw	r8, r22
   374b8:	5c 01       	movw	r10, r24
      if (advance_speed > 20000) {
   374ba:	20 e0       	ldi	r18, 0x00	; 0
   374bc:	30 e4       	ldi	r19, 0x40	; 64
   374be:	4c e9       	ldi	r20, 0x9C	; 156
   374c0:	56 e4       	ldi	r21, 0x46	; 70
   374c2:	c7 01       	movw	r24, r14
   374c4:	b6 01       	movw	r22, r12
   374c6:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   374ca:	18 16       	cp	r1, r24
   374cc:	0c f0       	brlt	.+2      	; 0x374d0 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x126a>
   374ce:	17 c4       	rjmp	.+2094   	; 0x37cfe <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a98>
          block->advance_rate = advance_rate * 4;
   374d0:	8e e6       	ldi	r24, 0x6E	; 110
   374d2:	82 9d       	mul	r24, r2
   374d4:	80 01       	movw	r16, r0
   374d6:	83 9d       	mul	r24, r3
   374d8:	10 0d       	add	r17, r0
   374da:	11 24       	eor	r1, r1
   374dc:	0b 53       	subi	r16, 0x3B	; 59
   374de:	19 4f       	sbci	r17, 0xF9	; 249
   374e0:	78 01       	movw	r14, r16
   374e2:	fd e4       	ldi	r31, 0x4D	; 77
   374e4:	ef 0e       	add	r14, r31
   374e6:	f1 1c       	adc	r15, r1
   374e8:	20 e0       	ldi	r18, 0x00	; 0
   374ea:	30 e0       	ldi	r19, 0x00	; 0
   374ec:	40 e8       	ldi	r20, 0x80	; 128
   374ee:	50 e4       	ldi	r21, 0x40	; 64
   374f0:	c5 01       	movw	r24, r10
   374f2:	b4 01       	movw	r22, r8
   374f4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   374f8:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   374fc:	d7 01       	movw	r26, r14
   374fe:	6d 93       	st	X+, r22
   37500:	7c 93       	st	X, r23
          block->advance_step_loops = 4;
   37502:	f8 01       	movw	r30, r16
   37504:	ed 5a       	subi	r30, 0xAD	; 173
   37506:	ff 4f       	sbci	r31, 0xFF	; 255
   37508:	84 e0       	ldi	r24, 0x04	; 4
          // never overflow the internal accumulator with very low rates
          if (advance_rate < UINT16_MAX)
              block->advance_rate = advance_rate;
          else
              block->advance_rate = UINT16_MAX;
          block->advance_step_loops = 1;
   3750a:	80 83       	st	Z, r24
          SERIAL_ECHOLNPGM("LA: More than 2 steps per eISR loop executed.");
      #endif
  }
#endif

  calculate_trapezoid_for_block(block, block->entry_speed, safe_speed);
   3750c:	09 a5       	ldd	r16, Y+41	; 0x29
   3750e:	1d a5       	ldd	r17, Y+45	; 0x2d
   37510:	29 a9       	ldd	r18, Y+49	; 0x31
   37512:	39 ad       	ldd	r19, Y+57	; 0x39
   37514:	4d ad       	ldd	r20, Y+61	; 0x3d
   37516:	5d a9       	ldd	r21, Y+53	; 0x35
   37518:	6e ad       	ldd	r22, Y+62	; 0x3e
   3751a:	23 96       	adiw	r28, 0x03	; 3
   3751c:	7f ad       	ldd	r23, Y+63	; 0x3f
   3751e:	23 97       	sbiw	r28, 0x03	; 3
   37520:	a4 96       	adiw	r28, 0x24	; 36
   37522:	8e ad       	ldd	r24, Y+62	; 0x3e
   37524:	9f ad       	ldd	r25, Y+63	; 0x3f
   37526:	a4 97       	sbiw	r28, 0x24	; 36
   37528:	8b 53       	subi	r24, 0x3B	; 59
   3752a:	99 4f       	sbci	r25, 0xF9	; 249
   3752c:	0f 94 94 ae 	call	0x35d28	; 0x35d28 <calculate_trapezoid_for_block(block_t*, float, float)>

  if (block->step_event_count.wide <= 32767)
   37530:	8e e6       	ldi	r24, 0x6E	; 110
   37532:	82 9d       	mul	r24, r2
   37534:	f0 01       	movw	r30, r0
   37536:	83 9d       	mul	r24, r3
   37538:	f0 0d       	add	r31, r0
   3753a:	11 24       	eor	r1, r1
   3753c:	eb 53       	subi	r30, 0x3B	; 59
   3753e:	f9 4f       	sbci	r31, 0xF9	; 249
   37540:	80 89       	ldd	r24, Z+16	; 0x10
   37542:	91 89       	ldd	r25, Z+17	; 0x11
   37544:	a2 89       	ldd	r26, Z+18	; 0x12
   37546:	b3 89       	ldd	r27, Z+19	; 0x13
   37548:	81 15       	cp	r24, r1
   3754a:	90 48       	sbci	r25, 0x80	; 128
   3754c:	a1 05       	cpc	r26, r1
   3754e:	b1 05       	cpc	r27, r1
   37550:	18 f4       	brcc	.+6      	; 0x37558 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x12f2>
    block->flag |= BLOCK_FLAG_DDA_LOWRES;
   37552:	85 a9       	ldd	r24, Z+53	; 0x35
   37554:	88 60       	ori	r24, 0x08	; 8
   37556:	85 ab       	std	Z+53, r24	; 0x35

  ATOMIC_BLOCK(ATOMIC_RESTORESTATE) {
   37558:	8f b7       	in	r24, 0x3f	; 63
    return 1;
}

static __inline__ uint8_t __iCliRetVal(void)
{
    cli();
   3755a:	f8 94       	cli
      // Move the buffer head ensuring the current block hasn't been cancelled from an isr context
      // (this is possible both during crash detection *and* uvlo, thus needing a global cli)
      if(planner_aborted) return;
   3755c:	90 91 ac 0d 	lds	r25, 0x0DAC	; 0x800dac <planner_aborted>
   37560:	91 11       	cpse	r25, r1
   37562:	93 c4       	rjmp	.+2342   	; 0x37e8a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1c24>
      block_buffer_head = next_buffer_head;
   37564:	a1 96       	adiw	r28, 0x21	; 33
   37566:	3f ad       	ldd	r19, Y+63	; 0x3f
   37568:	a1 97       	sbiw	r28, 0x21	; 33
   3756a:	30 93 a5 0d 	sts	0x0DA5, r19	; 0x800da5 <block_buffer_head>
    (void)__s;
}

static __inline__ void __iRestore(const  uint8_t *__s)
{
    SREG = *__s;
   3756e:	8f bf       	out	0x3f, r24	; 63
  }

  // Update position
  memcpy(position, target, sizeof(target)); // position[] = target[]
   37570:	c2 58       	subi	r28, 0x82	; 130
   37572:	df 4f       	sbci	r29, 0xFF	; 255
   37574:	88 81       	ld	r24, Y
   37576:	99 81       	ldd	r25, Y+1	; 0x01
   37578:	aa 81       	ldd	r26, Y+2	; 0x02
   3757a:	bb 81       	ldd	r27, Y+3	; 0x03
   3757c:	ce 57       	subi	r28, 0x7E	; 126
   3757e:	d0 40       	sbci	r29, 0x00	; 0
   37580:	80 93 a3 06 	sts	0x06A3, r24	; 0x8006a3 <position>
   37584:	90 93 a4 06 	sts	0x06A4, r25	; 0x8006a4 <position+0x1>
   37588:	a0 93 a5 06 	sts	0x06A5, r26	; 0x8006a5 <position+0x2>
   3758c:	b0 93 a6 06 	sts	0x06A6, r27	; 0x8006a6 <position+0x3>
   37590:	ce 57       	subi	r28, 0x7E	; 126
   37592:	df 4f       	sbci	r29, 0xFF	; 255
   37594:	28 81       	ld	r18, Y
   37596:	39 81       	ldd	r19, Y+1	; 0x01
   37598:	4a 81       	ldd	r20, Y+2	; 0x02
   3759a:	5b 81       	ldd	r21, Y+3	; 0x03
   3759c:	c2 58       	subi	r28, 0x82	; 130
   3759e:	d0 40       	sbci	r29, 0x00	; 0
   375a0:	20 93 a7 06 	sts	0x06A7, r18	; 0x8006a7 <position+0x4>
   375a4:	30 93 a8 06 	sts	0x06A8, r19	; 0x8006a8 <position+0x5>
   375a8:	40 93 a9 06 	sts	0x06A9, r20	; 0x8006a9 <position+0x6>
   375ac:	50 93 aa 06 	sts	0x06AA, r21	; 0x8006aa <position+0x7>
   375b0:	e6 96       	adiw	r28, 0x36	; 54
   375b2:	8c ad       	ldd	r24, Y+60	; 0x3c
   375b4:	9d ad       	ldd	r25, Y+61	; 0x3d
   375b6:	ae ad       	ldd	r26, Y+62	; 0x3e
   375b8:	bf ad       	ldd	r27, Y+63	; 0x3f
   375ba:	e6 97       	sbiw	r28, 0x36	; 54
   375bc:	80 93 ab 06 	sts	0x06AB, r24	; 0x8006ab <position+0x8>
   375c0:	90 93 ac 06 	sts	0x06AC, r25	; 0x8006ac <position+0x9>
   375c4:	a0 93 ad 06 	sts	0x06AD, r26	; 0x8006ad <position+0xa>
   375c8:	b0 93 ae 06 	sts	0x06AE, r27	; 0x8006ae <position+0xb>
   375cc:	ae 96       	adiw	r28, 0x2e	; 46
   375ce:	2c ad       	ldd	r18, Y+60	; 0x3c
   375d0:	3d ad       	ldd	r19, Y+61	; 0x3d
   375d2:	4e ad       	ldd	r20, Y+62	; 0x3e
   375d4:	5f ad       	ldd	r21, Y+63	; 0x3f
   375d6:	ae 97       	sbiw	r28, 0x2e	; 46
   375d8:	20 93 af 06 	sts	0x06AF, r18	; 0x8006af <position+0xc>
   375dc:	30 93 b0 06 	sts	0x06B0, r19	; 0x8006b0 <position+0xd>
   375e0:	40 93 b1 06 	sts	0x06B1, r20	; 0x8006b1 <position+0xe>
   375e4:	50 93 b2 06 	sts	0x06B2, r21	; 0x8006b2 <position+0xf>

  #ifdef LIN_ADVANCE
  position_float[X_AXIS] = x;
   375e8:	89 a1       	ldd	r24, Y+33	; 0x21
   375ea:	9a a1       	ldd	r25, Y+34	; 0x22
   375ec:	ab a1       	ldd	r26, Y+35	; 0x23
   375ee:	bc a1       	ldd	r27, Y+36	; 0x24
   375f0:	80 93 cd 04 	sts	0x04CD, r24	; 0x8004cd <position_float>
   375f4:	90 93 ce 04 	sts	0x04CE, r25	; 0x8004ce <position_float+0x1>
   375f8:	a0 93 cf 04 	sts	0x04CF, r26	; 0x8004cf <position_float+0x2>
   375fc:	b0 93 d0 04 	sts	0x04D0, r27	; 0x8004d0 <position_float+0x3>
  position_float[Y_AXIS] = y;
   37600:	8d a1       	ldd	r24, Y+37	; 0x25
   37602:	9e a1       	ldd	r25, Y+38	; 0x26
   37604:	af a1       	ldd	r26, Y+39	; 0x27
   37606:	b8 a5       	ldd	r27, Y+40	; 0x28
   37608:	80 93 d1 04 	sts	0x04D1, r24	; 0x8004d1 <position_float+0x4>
   3760c:	90 93 d2 04 	sts	0x04D2, r25	; 0x8004d2 <position_float+0x5>
   37610:	a0 93 d3 04 	sts	0x04D3, r26	; 0x8004d3 <position_float+0x6>
   37614:	b0 93 d4 04 	sts	0x04D4, r27	; 0x8004d4 <position_float+0x7>
  position_float[Z_AXIS] = z;
   37618:	a8 96       	adiw	r28, 0x28	; 40
   3761a:	8c ad       	ldd	r24, Y+60	; 0x3c
   3761c:	9d ad       	ldd	r25, Y+61	; 0x3d
   3761e:	ae ad       	ldd	r26, Y+62	; 0x3e
   37620:	bf ad       	ldd	r27, Y+63	; 0x3f
   37622:	a8 97       	sbiw	r28, 0x28	; 40
   37624:	80 93 d5 04 	sts	0x04D5, r24	; 0x8004d5 <position_float+0x8>
   37628:	90 93 d6 04 	sts	0x04D6, r25	; 0x8004d6 <position_float+0x9>
   3762c:	a0 93 d7 04 	sts	0x04D7, r26	; 0x8004d7 <position_float+0xa>
   37630:	b0 93 d8 04 	sts	0x04D8, r27	; 0x8004d8 <position_float+0xb>
  position_float[E_AXIS] = e;
   37634:	aa 96       	adiw	r28, 0x2a	; 42
   37636:	ee ad       	ldd	r30, Y+62	; 0x3e
   37638:	ff ad       	ldd	r31, Y+63	; 0x3f
   3763a:	aa 97       	sbiw	r28, 0x2a	; 42
   3763c:	80 81       	ld	r24, Z
   3763e:	91 81       	ldd	r25, Z+1	; 0x01
   37640:	a2 81       	ldd	r26, Z+2	; 0x02
   37642:	b3 81       	ldd	r27, Z+3	; 0x03
   37644:	80 93 d9 04 	sts	0x04D9, r24	; 0x8004d9 <position_float+0xc>
   37648:	90 93 da 04 	sts	0x04DA, r25	; 0x8004da <position_float+0xd>
   3764c:	a0 93 db 04 	sts	0x04DB, r26	; 0x8004db <position_float+0xe>
   37650:	b0 93 dc 04 	sts	0x04DC, r27	; 0x8004dc <position_float+0xf>
void planner_recalculate(const float &safe_final_speed)
{
    // Reverse pass
    // Make a local copy of block_buffer_tail, because the interrupt can alter it
    // by consuming the blocks, therefore shortening the queue.
    uint8_t tail = block_buffer_tail;
   37654:	f0 90 a6 0d 	lds	r15, 0x0DA6	; 0x800da6 <block_buffer_tail>
    block_t *prev, *current, *next;

//    SERIAL_ECHOLNPGM("planner_recalculate - 1");

    // At least three blocks are in the queue?
    uint8_t n_blocks = (block_buffer_head + BLOCK_BUFFER_SIZE - tail) & (BLOCK_BUFFER_SIZE - 1);
   37658:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   3765c:	8f 19       	sub	r24, r15
   3765e:	8f 70       	andi	r24, 0x0F	; 15
    if (n_blocks >= 3) {
   37660:	83 30       	cpi	r24, 0x03	; 3
   37662:	40 f1       	brcs	.+80     	; 0x376b4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x144e>
        // Initialize the last tripple of blocks.
        block_index = prev_block_index(block_buffer_head);
   37664:	10 91 a5 0d 	lds	r17, 0x0DA5	; 0x800da5 <block_buffer_head>
}


// Returns the index of the previous block in the ring buffer
static inline uint8_t prev_block_index(uint8_t block_index) {
  if (block_index == 0)
   37668:	11 11       	cpse	r17, r1
   3766a:	01 c0       	rjmp	.+2      	; 0x3766e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1408>
    block_index = BLOCK_BUFFER_SIZE;
   3766c:	10 e1       	ldi	r17, 0x10	; 16
  -- block_index;
   3766e:	11 50       	subi	r17, 0x01	; 1
    // At least three blocks are in the queue?
    uint8_t n_blocks = (block_buffer_head + BLOCK_BUFFER_SIZE - tail) & (BLOCK_BUFFER_SIZE - 1);
    if (n_blocks >= 3) {
        // Initialize the last tripple of blocks.
        block_index = prev_block_index(block_buffer_head);
        next        = block_buffer + block_index;
   37670:	fe e6       	ldi	r31, 0x6E	; 110
   37672:	1f 9f       	mul	r17, r31
   37674:	c0 01       	movw	r24, r0
   37676:	11 24       	eor	r1, r1
   37678:	9c 01       	movw	r18, r24
   3767a:	2b 53       	subi	r18, 0x3B	; 59
   3767c:	39 4f       	sbci	r19, 0xF9	; 249
   3767e:	59 01       	movw	r10, r18
}


// Returns the index of the previous block in the ring buffer
static inline uint8_t prev_block_index(uint8_t block_index) {
  if (block_index == 0)
   37680:	11 11       	cpse	r17, r1
   37682:	01 c0       	rjmp	.+2      	; 0x37686 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1420>
    block_index = BLOCK_BUFFER_SIZE;
   37684:	10 e1       	ldi	r17, 0x10	; 16
  -- block_index;
   37686:	11 50       	subi	r17, 0x01	; 1
    uint8_t n_blocks = (block_buffer_head + BLOCK_BUFFER_SIZE - tail) & (BLOCK_BUFFER_SIZE - 1);
    if (n_blocks >= 3) {
        // Initialize the last tripple of blocks.
        block_index = prev_block_index(block_buffer_head);
        next        = block_buffer + block_index;
        current     = block_buffer + (block_index = prev_block_index(block_index));
   37688:	3e e6       	ldi	r19, 0x6E	; 110
   3768a:	13 9f       	mul	r17, r19
   3768c:	c0 01       	movw	r24, r0
   3768e:	11 24       	eor	r1, r1
   37690:	ac 01       	movw	r20, r24
   37692:	4b 53       	subi	r20, 0x3B	; 59
   37694:	59 4f       	sbci	r21, 0xF9	; 249
   37696:	6a 01       	movw	r12, r20
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
                current->flag |= BLOCK_FLAG_RECALCULATE;
            }
            next = current;
            current = block_buffer + (block_index = prev_block_index(block_index));
   37698:	9e e6       	ldi	r25, 0x6E	; 110
   3769a:	69 2e       	mov	r6, r25
        current     = block_buffer + (block_index = prev_block_index(block_index));
        // No need to recalculate the last block, it has already been set by the plan_buffer_line() function.
        // Vojtech thinks, that one shall not touch the entry speed of the very first block as well, because
        // 1) it may already be running at the stepper interrupt,
        // 2) there is no way to limit it when going in the forward direction.
        while (block_index != tail) {
   3769c:	f1 16       	cp	r15, r17
   3769e:	69 f0       	breq	.+26     	; 0x376ba <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1454>
            if (current->flag & BLOCK_FLAG_START_FROM_FULL_HALT) {
   376a0:	d6 01       	movw	r26, r12
   376a2:	d5 96       	adiw	r26, 0x35	; 53
   376a4:	0c 91       	ld	r16, X
   376a6:	02 ff       	sbrs	r16, 2
   376a8:	7e c3       	rjmp	.+1788   	; 0x37da6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1b40>
                // Don't modify the entry velocity of the starting block.
                // Also don't modify the trapezoids before this block, they are finalized already, prepared
                // for the stepper interrupt routine to use them.
                tail = block_index;
                // Update the number of blocks to process.
                n_blocks = (block_buffer_head + BLOCK_BUFFER_SIZE - tail) & (BLOCK_BUFFER_SIZE - 1);
   376aa:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
   376ae:	81 1b       	sub	r24, r17
   376b0:	8f 70       	andi	r24, 0x0F	; 15
   376b2:	f1 2e       	mov	r15, r17
    }

//    SERIAL_ECHOLNPGM("planner_recalculate - 2");

    // Forward pass and recalculate the trapezoids.
    if (n_blocks >= 2) {
   376b4:	82 30       	cpi	r24, 0x02	; 2
   376b6:	08 f4       	brcc	.+2      	; 0x376ba <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1454>
   376b8:	a3 c0       	rjmp	.+326    	; 0x37800 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x159a>
        // Better to limit the velocities using the already processed block, if it is available, so rather use the saved tail.
        block_index = tail;
        prev    = block_buffer + block_index;
   376ba:	3e e6       	ldi	r19, 0x6E	; 110
   376bc:	f3 9e       	mul	r15, r19
   376be:	c0 01       	movw	r24, r0
   376c0:	11 24       	eor	r1, r1
   376c2:	ac 01       	movw	r20, r24
   376c4:	4b 53       	subi	r20, 0x3B	; 59
   376c6:	59 4f       	sbci	r21, 0xF9	; 249
   376c8:	5a 01       	movw	r10, r20
static bool plan_reset_next_e_sched;

// Returns the index of the next block in the ring buffer
// NOTE: Removed modulo (%) operator, which uses an expensive divide and multiplication.
static inline uint8_t next_block_index(uint8_t block_index) {
  if (++ block_index == BLOCK_BUFFER_SIZE)
   376ca:	f3 94       	inc	r15
   376cc:	50 e1       	ldi	r21, 0x10	; 16
   376ce:	f5 12       	cpse	r15, r21
   376d0:	01 c0       	rjmp	.+2      	; 0x376d4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x146e>
    block_index = 0;
   376d2:	f1 2c       	mov	r15, r1
    // Forward pass and recalculate the trapezoids.
    if (n_blocks >= 2) {
        // Better to limit the velocities using the already processed block, if it is available, so rather use the saved tail.
        block_index = tail;
        prev    = block_buffer + block_index;
        current = block_buffer + (block_index = next_block_index(block_index));
   376d4:	ae e6       	ldi	r26, 0x6E	; 110
   376d6:	fa 9e       	mul	r15, r26
   376d8:	c0 01       	movw	r24, r0
   376da:	11 24       	eor	r1, r1
   376dc:	fc 01       	movw	r30, r24
   376de:	eb 53       	subi	r30, 0x3B	; 59
   376e0:	f9 4f       	sbci	r31, 0xF9	; 249
   376e2:	6f 01       	movw	r12, r30
                calculate_trapezoid_for_block(prev, prev->entry_speed, current->entry_speed);
                // Reset current only to ensure next trapezoid is computed.
                prev->flag &= ~BLOCK_FLAG_RECALCULATE;
            }
            prev = current;
            current = block_buffer + (block_index = next_block_index(block_index));
   376e4:	8e e6       	ldi	r24, 0x6E	; 110
   376e6:	88 2e       	mov	r8, r24
        do {
            // If the previous block is an acceleration block, but it is not long enough to complete the
            // full speed change within the block, we need to adjust the entry speed accordingly. Entry
            // speeds have already been reset, maximized, and reverse planned by reverse planner.
            // If nominal length is true, max junction speed is guaranteed to be reached. No need to recheck.
            if (! (prev->flag & BLOCK_FLAG_NOMINAL_LENGTH) && prev->entry_speed < current->entry_speed) {
   376e8:	d5 01       	movw	r26, r10
   376ea:	d5 96       	adiw	r26, 0x35	; 53
   376ec:	8c 91       	ld	r24, X
   376ee:	d5 97       	sbiw	r26, 0x35	; 53
   376f0:	81 fd       	sbrc	r24, 1
   376f2:	5a c0       	rjmp	.+180    	; 0x377a8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1542>
   376f4:	95 96       	adiw	r26, 0x25	; 37
   376f6:	4d 90       	ld	r4, X+
   376f8:	5d 90       	ld	r5, X+
   376fa:	6d 90       	ld	r6, X+
   376fc:	7c 90       	ld	r7, X
   376fe:	98 97       	sbiw	r26, 0x28	; 40
   37700:	f6 01       	movw	r30, r12
   37702:	95 a0       	ldd	r9, Z+37	; 0x25
   37704:	e6 a0       	ldd	r14, Z+38	; 0x26
   37706:	07 a1       	ldd	r16, Z+39	; 0x27
   37708:	10 a5       	ldd	r17, Z+40	; 0x28
   3770a:	29 2d       	mov	r18, r9
   3770c:	3e 2d       	mov	r19, r14
   3770e:	a8 01       	movw	r20, r16
   37710:	c3 01       	movw	r24, r6
   37712:	b2 01       	movw	r22, r4
   37714:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37718:	87 ff       	sbrs	r24, 7
   3771a:	46 c0       	rjmp	.+140    	; 0x377a8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1542>
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   3771c:	a3 01       	movw	r20, r6
   3771e:	92 01       	movw	r18, r4
   37720:	c3 01       	movw	r24, r6
   37722:	b2 01       	movw	r22, r4
   37724:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37728:	2b 01       	movw	r4, r22
   3772a:	3c 01       	movw	r6, r24
            // If the previous block is an acceleration block, but it is not long enough to complete the
            // full speed change within the block, we need to adjust the entry speed accordingly. Entry
            // speeds have already been reset, maximized, and reverse planned by reverse planner.
            // If nominal length is true, max junction speed is guaranteed to be reached. No need to recheck.
            if (! (prev->flag & BLOCK_FLAG_NOMINAL_LENGTH) && prev->entry_speed < current->entry_speed) {
                float entry_speed = min(current->entry_speed, max_allowable_entry_speed(-prev->acceleration,prev->entry_speed,prev->millimeters));
   3772c:	d5 01       	movw	r26, r10
   3772e:	d1 96       	adiw	r26, 0x31	; 49
   37730:	6d 91       	ld	r22, X+
   37732:	7d 91       	ld	r23, X+
   37734:	8d 91       	ld	r24, X+
   37736:	9c 91       	ld	r25, X
   37738:	d4 97       	sbiw	r26, 0x34	; 52
   3773a:	90 58       	subi	r25, 0x80	; 128
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   3773c:	9b 01       	movw	r18, r22
   3773e:	ac 01       	movw	r20, r24
   37740:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   37744:	f5 01       	movw	r30, r10
   37746:	25 a5       	ldd	r18, Z+45	; 0x2d
   37748:	36 a5       	ldd	r19, Z+46	; 0x2e
   3774a:	47 a5       	ldd	r20, Z+47	; 0x2f
   3774c:	50 a9       	ldd	r21, Z+48	; 0x30
   3774e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37752:	9b 01       	movw	r18, r22
   37754:	ac 01       	movw	r20, r24
   37756:	c3 01       	movw	r24, r6
   37758:	b2 01       	movw	r22, r4
   3775a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3775e:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   37762:	2b 01       	movw	r4, r22
   37764:	3c 01       	movw	r6, r24
            // If the previous block is an acceleration block, but it is not long enough to complete the
            // full speed change within the block, we need to adjust the entry speed accordingly. Entry
            // speeds have already been reset, maximized, and reverse planned by reverse planner.
            // If nominal length is true, max junction speed is guaranteed to be reached. No need to recheck.
            if (! (prev->flag & BLOCK_FLAG_NOMINAL_LENGTH) && prev->entry_speed < current->entry_speed) {
                float entry_speed = min(current->entry_speed, max_allowable_entry_speed(-prev->acceleration,prev->entry_speed,prev->millimeters));
   37766:	9b 01       	movw	r18, r22
   37768:	ac 01       	movw	r20, r24
   3776a:	69 2d       	mov	r22, r9
   3776c:	7e 2d       	mov	r23, r14
   3776e:	c8 01       	movw	r24, r16
   37770:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37774:	87 ff       	sbrs	r24, 7
   37776:	03 c0       	rjmp	.+6      	; 0x3777e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1518>
   37778:	49 2c       	mov	r4, r9
   3777a:	5e 2c       	mov	r5, r14
   3777c:	38 01       	movw	r6, r16
                // Check for junction speed change
                if (current->entry_speed != entry_speed) {
   3777e:	92 01       	movw	r18, r4
   37780:	a3 01       	movw	r20, r6
   37782:	69 2d       	mov	r22, r9
   37784:	7e 2d       	mov	r23, r14
   37786:	c8 01       	movw	r24, r16
   37788:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   3778c:	88 23       	and	r24, r24
   3778e:	61 f0       	breq	.+24     	; 0x377a8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1542>
   37790:	d6 01       	movw	r26, r12
   37792:	d5 96       	adiw	r26, 0x35	; 53
   37794:	2c 91       	ld	r18, X
                    current->entry_speed = entry_speed;
   37796:	c2 01       	movw	r24, r4
   37798:	d3 01       	movw	r26, r6
   3779a:	f6 01       	movw	r30, r12
   3779c:	85 a3       	std	Z+37, r24	; 0x25
   3779e:	96 a3       	std	Z+38, r25	; 0x26
   377a0:	a7 a3       	std	Z+39, r26	; 0x27
   377a2:	b0 a7       	std	Z+40, r27	; 0x28
                    current->flag |= BLOCK_FLAG_RECALCULATE;
   377a4:	21 60       	ori	r18, 0x01	; 1
   377a6:	25 ab       	std	Z+53, r18	; 0x35
                }
            }
            // Recalculate if current block entry or exit junction speed has changed.
            if ((prev->flag | current->flag) & BLOCK_FLAG_RECALCULATE) {
   377a8:	d5 01       	movw	r26, r10
   377aa:	d5 96       	adiw	r26, 0x35	; 53
   377ac:	8c 91       	ld	r24, X
   377ae:	d5 97       	sbiw	r26, 0x35	; 53
   377b0:	f6 01       	movw	r30, r12
   377b2:	95 a9       	ldd	r25, Z+53	; 0x35
   377b4:	89 2b       	or	r24, r25
   377b6:	80 ff       	sbrs	r24, 0
   377b8:	14 c0       	rjmp	.+40     	; 0x377e2 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x157c>
                // NOTE: Entry and exit factors always > 0 by all previous logic operations.
                calculate_trapezoid_for_block(prev, prev->entry_speed, current->entry_speed);
   377ba:	05 a1       	ldd	r16, Z+37	; 0x25
   377bc:	16 a1       	ldd	r17, Z+38	; 0x26
   377be:	27 a1       	ldd	r18, Z+39	; 0x27
   377c0:	30 a5       	ldd	r19, Z+40	; 0x28
   377c2:	95 96       	adiw	r26, 0x25	; 37
   377c4:	4d 91       	ld	r20, X+
   377c6:	5d 91       	ld	r21, X+
   377c8:	6d 91       	ld	r22, X+
   377ca:	7c 91       	ld	r23, X
   377cc:	98 97       	sbiw	r26, 0x28	; 40
   377ce:	c5 01       	movw	r24, r10
   377d0:	0f 94 94 ae 	call	0x35d28	; 0x35d28 <calculate_trapezoid_for_block(block_t*, float, float)>
                // Reset current only to ensure next trapezoid is computed.
                prev->flag &= ~BLOCK_FLAG_RECALCULATE;
   377d4:	d5 01       	movw	r26, r10
   377d6:	d5 96       	adiw	r26, 0x35	; 53
   377d8:	8c 91       	ld	r24, X
   377da:	d5 97       	sbiw	r26, 0x35	; 53
   377dc:	8e 7f       	andi	r24, 0xFE	; 254
   377de:	d5 96       	adiw	r26, 0x35	; 53
   377e0:	8c 93       	st	X, r24
static bool plan_reset_next_e_sched;

// Returns the index of the next block in the ring buffer
// NOTE: Removed modulo (%) operator, which uses an expensive divide and multiplication.
static inline uint8_t next_block_index(uint8_t block_index) {
  if (++ block_index == BLOCK_BUFFER_SIZE)
   377e2:	f3 94       	inc	r15
   377e4:	b0 e1       	ldi	r27, 0x10	; 16
   377e6:	fb 12       	cpse	r15, r27
   377e8:	01 c0       	rjmp	.+2      	; 0x377ec <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1586>
    block_index = 0;
   377ea:	f1 2c       	mov	r15, r1
                calculate_trapezoid_for_block(prev, prev->entry_speed, current->entry_speed);
                // Reset current only to ensure next trapezoid is computed.
                prev->flag &= ~BLOCK_FLAG_RECALCULATE;
            }
            prev = current;
            current = block_buffer + (block_index = next_block_index(block_index));
   377ec:	f8 9c       	mul	r15, r8
   377ee:	c0 01       	movw	r24, r0
   377f0:	11 24       	eor	r1, r1
   377f2:	8b 53       	subi	r24, 0x3B	; 59
   377f4:	99 4f       	sbci	r25, 0xF9	; 249
        } while (block_index != block_buffer_head);
   377f6:	20 91 a5 0d 	lds	r18, 0x0DA5	; 0x800da5 <block_buffer_head>
                // NOTE: Entry and exit factors always > 0 by all previous logic operations.
                calculate_trapezoid_for_block(prev, prev->entry_speed, current->entry_speed);
                // Reset current only to ensure next trapezoid is computed.
                prev->flag &= ~BLOCK_FLAG_RECALCULATE;
            }
            prev = current;
   377fa:	56 01       	movw	r10, r12
            current = block_buffer + (block_index = next_block_index(block_index));
        } while (block_index != block_buffer_head);
   377fc:	f2 12       	cpse	r15, r18
   377fe:	43 c3       	rjmp	.+1670   	; 0x37e86 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1c20>
    }

//    SERIAL_ECHOLNPGM("planner_recalculate - 3");

    // Last/newest block in buffer. Exit speed is set with safe_final_speed. Always recalculated.
    current = block_buffer + prev_block_index(block_buffer_head);
   37800:	80 91 a5 0d 	lds	r24, 0x0DA5	; 0x800da5 <block_buffer_head>
}


// Returns the index of the previous block in the ring buffer
static inline uint8_t prev_block_index(uint8_t block_index) {
  if (block_index == 0)
   37804:	81 11       	cpse	r24, r1
   37806:	01 c0       	rjmp	.+2      	; 0x3780a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x15a4>
    block_index = BLOCK_BUFFER_SIZE;
   37808:	80 e1       	ldi	r24, 0x10	; 16
  -- block_index;
   3780a:	81 50       	subi	r24, 0x01	; 1
    }

//    SERIAL_ECHOLNPGM("planner_recalculate - 3");

    // Last/newest block in buffer. Exit speed is set with safe_final_speed. Always recalculated.
    current = block_buffer + prev_block_index(block_buffer_head);
   3780c:	ee e6       	ldi	r30, 0x6E	; 110
   3780e:	8e 9f       	mul	r24, r30
   37810:	c0 01       	movw	r24, r0
   37812:	11 24       	eor	r1, r1
   37814:	9c 01       	movw	r18, r24
   37816:	2b 53       	subi	r18, 0x3B	; 59
   37818:	39 4f       	sbci	r19, 0xF9	; 249
   3781a:	79 01       	movw	r14, r18
    calculate_trapezoid_for_block(current, current->entry_speed, safe_final_speed);
   3781c:	d9 01       	movw	r26, r18
   3781e:	95 96       	adiw	r26, 0x25	; 37
   37820:	4d 91       	ld	r20, X+
   37822:	5d 91       	ld	r21, X+
   37824:	6d 91       	ld	r22, X+
   37826:	7c 91       	ld	r23, X
   37828:	98 97       	sbiw	r26, 0x28	; 40
   3782a:	09 a5       	ldd	r16, Y+41	; 0x29
   3782c:	1d a5       	ldd	r17, Y+45	; 0x2d
   3782e:	29 a9       	ldd	r18, Y+49	; 0x31
   37830:	39 ad       	ldd	r19, Y+57	; 0x39
   37832:	c7 01       	movw	r24, r14
   37834:	0f 94 94 ae 	call	0x35d28	; 0x35d28 <calculate_trapezoid_for_block(block_t*, float, float)>
    current->flag &= ~BLOCK_FLAG_RECALCULATE;
   37838:	f7 01       	movw	r30, r14
   3783a:	85 a9       	ldd	r24, Z+53	; 0x35
   3783c:	8e 7f       	andi	r24, 0xFE	; 254
   3783e:	85 ab       	std	Z+53, r24	; 0x35

  // The stepper timer interrupt will run continuously from now on.
  // If there are no planner blocks to be executed by the stepper routine,
  // the stepper interrupt ticks at 1kHz to wake up and pick a block
  // from the planner queue if available.
  ENABLE_STEPPER_DRIVER_INTERRUPT();
   37840:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   37844:	82 60       	ori	r24, 0x02	; 2
   37846:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   3784a:	0d 94 9a b1 	jmp	0x36334	; 0x36334 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xce>

  // Save original start position of the move
  if (gcode_start_position)
      memcpy(block->gcode_start_position, gcode_start_position, sizeof(block_t::gcode_start_position));
  else
      memcpy(block->gcode_start_position, current_position, sizeof(block_t::gcode_start_position));
   3784e:	a3 5e       	subi	r26, 0xE3	; 227
   37850:	b8 4f       	sbci	r27, 0xF8	; 248
   37852:	80 e1       	ldi	r24, 0x10	; 16
   37854:	e2 e9       	ldi	r30, 0x92	; 146
   37856:	f6 e0       	ldi	r31, 0x06	; 6
   37858:	0d 94 d5 b1 	jmp	0x363aa	; 0x363aa <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x144>
  target[Y_AXIS] = lround(y*cs.axis_steps_per_mm[Y_AXIS]);
#ifdef MESH_BED_LEVELING
    if (mbl.active){
        target[Z_AXIS] = lround((z+mbl.get_z(x, y))*cs.axis_steps_per_mm[Z_AXIS]);
    }else{
        target[Z_AXIS] = lround(z*cs.axis_steps_per_mm[Z_AXIS]);
   3785c:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   37860:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   37864:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   37868:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   3786c:	a8 96       	adiw	r28, 0x28	; 40
   3786e:	6c ad       	ldd	r22, Y+60	; 0x3c
   37870:	7d ad       	ldd	r23, Y+61	; 0x3d
   37872:	8e ad       	ldd	r24, Y+62	; 0x3e
   37874:	9f ad       	ldd	r25, Y+63	; 0x3f
   37876:	a8 97       	sbiw	r28, 0x28	; 40
   37878:	0d 94 6b b2 	jmp	0x364d6	; 0x364d6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x270>
  block->fan_speed = fanSpeed;

  // Compute direction bits for this block
  block->direction_bits = 0;
#ifndef COREXY
  if (dx < 0) block->direction_bits |= _BV(X_AXIS);
   3787c:	81 e0       	ldi	r24, 0x01	; 1
   3787e:	80 8f       	std	Z+24, r24	; 0x18
   37880:	0d 94 11 b4 	jmp	0x36822	; 0x36822 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x5bc>
  {
    if(feed_rate<cs.mintravelfeedrate) feed_rate=cs.mintravelfeedrate;
  }
  else
  {
    if(feed_rate<cs.minimumfeedrate) feed_rate=cs.minimumfeedrate;
   37884:	a0 90 fa 0d 	lds	r10, 0x0DFA	; 0x800dfa <cs+0x3c>
   37888:	b0 90 fb 0d 	lds	r11, 0x0DFB	; 0x800dfb <cs+0x3d>
   3788c:	00 91 fc 0d 	lds	r16, 0x0DFC	; 0x800dfc <cs+0x3e>
   37890:	10 91 fd 0d 	lds	r17, 0x0DFD	; 0x800dfd <cs+0x3f>
   37894:	4c c8       	rjmp	.-3944   	; 0x3692e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x6c8>
    block->millimeters = fabs(delta_mm[E_AXIS]);
  }
  else
  {
    #ifndef COREXY
      block->millimeters = sqrt(square(delta_mm[X_AXIS]) + square(delta_mm[Y_AXIS]) + square(delta_mm[Z_AXIS]));
   37896:	c5 01       	movw	r24, r10
   37898:	b4 01       	movw	r22, r8
   3789a:	0f 94 24 d7 	call	0x3ae48	; 0x3ae48 <square>
   3789e:	4b 01       	movw	r8, r22
   378a0:	5c 01       	movw	r10, r24
   378a2:	c7 01       	movw	r24, r14
   378a4:	b6 01       	movw	r22, r12
   378a6:	0f 94 24 d7 	call	0x3ae48	; 0x3ae48 <square>
   378aa:	9b 01       	movw	r18, r22
   378ac:	ac 01       	movw	r20, r24
   378ae:	c5 01       	movw	r24, r10
   378b0:	b4 01       	movw	r22, r8
   378b2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   378b6:	6b 01       	movw	r12, r22
   378b8:	7c 01       	movw	r14, r24
   378ba:	22 96       	adiw	r28, 0x02	; 2
   378bc:	6c ad       	ldd	r22, Y+60	; 0x3c
   378be:	7d ad       	ldd	r23, Y+61	; 0x3d
   378c0:	8e ad       	ldd	r24, Y+62	; 0x3e
   378c2:	9f ad       	ldd	r25, Y+63	; 0x3f
   378c4:	22 97       	sbiw	r28, 0x02	; 2
   378c6:	0f 94 24 d7 	call	0x3ae48	; 0x3ae48 <square>
   378ca:	9b 01       	movw	r18, r22
   378cc:	ac 01       	movw	r20, r24
   378ce:	c7 01       	movw	r24, r14
   378d0:	b6 01       	movw	r22, r12
   378d2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   378d6:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   378da:	2e e6       	ldi	r18, 0x6E	; 110
   378dc:	22 9d       	mul	r18, r2
   378de:	f0 01       	movw	r30, r0
   378e0:	23 9d       	mul	r18, r3
   378e2:	f0 0d       	add	r31, r0
   378e4:	11 24       	eor	r1, r1
   378e6:	eb 53       	subi	r30, 0x3B	; 59
   378e8:	f9 4f       	sbci	r31, 0xF9	; 249
   378ea:	65 a7       	std	Z+45, r22	; 0x2d
   378ec:	76 a7       	std	Z+46, r23	; 0x2e
   378ee:	87 a7       	std	Z+47, r24	; 0x2f
   378f0:	90 ab       	std	Z+48, r25	; 0x30
   378f2:	bb c8       	rjmp	.-3722   	; 0x36a6a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x804>
    block->use_advance_lead = false;
    #endif
  }
  else
  {
    accel = ceil((block->steps[E_AXIS].wide ? cs.acceleration : cs.travel_acceleration) * steps_per_mm); // convert to: acceleration steps/sec^2
   378f4:	2a 96       	adiw	r28, 0x0a	; 10
   378f6:	2c ad       	ldd	r18, Y+60	; 0x3c
   378f8:	3d ad       	ldd	r19, Y+61	; 0x3d
   378fa:	4e ad       	ldd	r20, Y+62	; 0x3e
   378fc:	5f ad       	ldd	r21, Y+63	; 0x3f
   378fe:	2a 97       	sbiw	r28, 0x0a	; 10
   37900:	23 2b       	or	r18, r19
   37902:	24 2b       	or	r18, r20
   37904:	25 2b       	or	r18, r21
   37906:	09 f4       	brne	.+2      	; 0x3790a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x16a4>
   37908:	0e c1       	rjmp	.+540    	; 0x37b26 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18c0>
   3790a:	60 91 f2 0d 	lds	r22, 0x0DF2	; 0x800df2 <cs+0x34>
   3790e:	70 91 f3 0d 	lds	r23, 0x0DF3	; 0x800df3 <cs+0x35>
   37912:	80 91 f4 0d 	lds	r24, 0x0DF4	; 0x800df4 <cs+0x36>
   37916:	90 91 f5 0d 	lds	r25, 0x0DF5	; 0x800df5 <cs+0x37>
   3791a:	29 a5       	ldd	r18, Y+41	; 0x29
   3791c:	3a a5       	ldd	r19, Y+42	; 0x2a
   3791e:	4b a5       	ldd	r20, Y+43	; 0x2b
   37920:	5c a5       	ldd	r21, Y+44	; 0x2c
   37922:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37926:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   3792a:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   3792e:	2b 01       	movw	r4, r22
   37930:	3c 01       	movw	r6, r24
     *
     * extruder_advance_K       : There is an advance factor set.
     * delta_mm[E_AXIS] >= 0    : Extruding or traveling, but _not_ retracting.
     * |delta_mm[Z_AXIS]| < 0.5 : Z is only moved for leveling (_not_ for priming)
     */
    block->use_advance_lead = extruder_advance_K > 0
   37932:	80 91 65 05 	lds	r24, 0x0565	; 0x800565 <extruder_advance_K>
   37936:	90 91 66 05 	lds	r25, 0x0566	; 0x800566 <extruder_advance_K+0x1>
   3793a:	a0 91 67 05 	lds	r26, 0x0567	; 0x800567 <extruder_advance_K+0x2>
   3793e:	b0 91 68 05 	lds	r27, 0x0568	; 0x800568 <extruder_advance_K+0x3>
   37942:	8d a7       	std	Y+45, r24	; 0x2d
   37944:	9e a7       	std	Y+46, r25	; 0x2e
   37946:	af a7       	std	Y+47, r26	; 0x2f
   37948:	b8 ab       	std	Y+48, r27	; 0x30
                              && delta_mm[E_AXIS] >= 0
                              && fabs(delta_mm[Z_AXIS]) < 0.5;
   3794a:	20 e0       	ldi	r18, 0x00	; 0
   3794c:	30 e0       	ldi	r19, 0x00	; 0
   3794e:	a9 01       	movw	r20, r18
   37950:	bc 01       	movw	r22, r24
   37952:	cd 01       	movw	r24, r26
   37954:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37958:	18 16       	cp	r1, r24
   3795a:	0c f0       	brlt	.+2      	; 0x3795e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x16f8>
   3795c:	ed c0       	rjmp	.+474    	; 0x37b38 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18d2>
     * extruder_advance_K       : There is an advance factor set.
     * delta_mm[E_AXIS] >= 0    : Extruding or traveling, but _not_ retracting.
     * |delta_mm[Z_AXIS]| < 0.5 : Z is only moved for leveling (_not_ for priming)
     */
    block->use_advance_lead = extruder_advance_K > 0
                              && delta_mm[E_AXIS] >= 0
   3795e:	20 e0       	ldi	r18, 0x00	; 0
   37960:	30 e0       	ldi	r19, 0x00	; 0
   37962:	a9 01       	movw	r20, r18
   37964:	26 96       	adiw	r28, 0x06	; 6
   37966:	6c ad       	ldd	r22, Y+60	; 0x3c
   37968:	7d ad       	ldd	r23, Y+61	; 0x3d
   3796a:	8e ad       	ldd	r24, Y+62	; 0x3e
   3796c:	9f ad       	ldd	r25, Y+63	; 0x3f
   3796e:	26 97       	sbiw	r28, 0x06	; 6
   37970:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37974:	87 fd       	sbrc	r24, 7
   37976:	e0 c0       	rjmp	.+448    	; 0x37b38 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18d2>
                              && fabs(delta_mm[Z_AXIS]) < 0.5;
   37978:	22 96       	adiw	r28, 0x02	; 2
   3797a:	6c ad       	ldd	r22, Y+60	; 0x3c
   3797c:	7d ad       	ldd	r23, Y+61	; 0x3d
   3797e:	8e ad       	ldd	r24, Y+62	; 0x3e
   37980:	9f ad       	ldd	r25, Y+63	; 0x3f
   37982:	22 97       	sbiw	r28, 0x02	; 2
   37984:	9f 77       	andi	r25, 0x7F	; 127
   37986:	20 e0       	ldi	r18, 0x00	; 0
   37988:	30 e0       	ldi	r19, 0x00	; 0
   3798a:	40 e0       	ldi	r20, 0x00	; 0
   3798c:	5f e3       	ldi	r21, 0x3F	; 63
   3798e:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37992:	87 ff       	sbrs	r24, 7
   37994:	d1 c0       	rjmp	.+418    	; 0x37b38 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18d2>
     *
     * extruder_advance_K       : There is an advance factor set.
     * delta_mm[E_AXIS] >= 0    : Extruding or traveling, but _not_ retracting.
     * |delta_mm[Z_AXIS]| < 0.5 : Z is only moved for leveling (_not_ for priming)
     */
    block->use_advance_lead = extruder_advance_K > 0
   37996:	8e e6       	ldi	r24, 0x6E	; 110
   37998:	82 9d       	mul	r24, r2
   3799a:	80 01       	movw	r16, r0
   3799c:	83 9d       	mul	r24, r3
   3799e:	10 0d       	add	r17, r0
   379a0:	11 24       	eor	r1, r1
   379a2:	0f 5e       	subi	r16, 0xEF	; 239
   379a4:	18 4f       	sbci	r17, 0xF8	; 248
   379a6:	81 e0       	ldi	r24, 0x01	; 1
   379a8:	d8 01       	movw	r26, r16
   379aa:	8c 93       	st	X, r24
        float delta_e = (e - position_float[E_AXIS]) / extruder_multiplier[extruder];
#else
        // M221/FLOW only adjusts for an incorrect source diameter
        float delta_e = (e - position_float[E_AXIS]);
#endif
        float delta_D = sqrt(sq(x - position_float[X_AXIS])
   379ac:	20 91 cd 04 	lds	r18, 0x04CD	; 0x8004cd <position_float>
   379b0:	30 91 ce 04 	lds	r19, 0x04CE	; 0x8004ce <position_float+0x1>
   379b4:	40 91 cf 04 	lds	r20, 0x04CF	; 0x8004cf <position_float+0x2>
   379b8:	50 91 d0 04 	lds	r21, 0x04D0	; 0x8004d0 <position_float+0x3>
   379bc:	69 a1       	ldd	r22, Y+33	; 0x21
   379be:	7a a1       	ldd	r23, Y+34	; 0x22
   379c0:	8b a1       	ldd	r24, Y+35	; 0x23
   379c2:	9c a1       	ldd	r25, Y+36	; 0x24
   379c4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   379c8:	69 ab       	std	Y+49, r22	; 0x31
   379ca:	7a ab       	std	Y+50, r23	; 0x32
   379cc:	8b ab       	std	Y+51, r24	; 0x33
   379ce:	9c ab       	std	Y+52, r25	; 0x34
                             + sq(y - position_float[Y_AXIS])
   379d0:	20 91 d1 04 	lds	r18, 0x04D1	; 0x8004d1 <position_float+0x4>
   379d4:	30 91 d2 04 	lds	r19, 0x04D2	; 0x8004d2 <position_float+0x5>
   379d8:	40 91 d3 04 	lds	r20, 0x04D3	; 0x8004d3 <position_float+0x6>
   379dc:	50 91 d4 04 	lds	r21, 0x04D4	; 0x8004d4 <position_float+0x7>
   379e0:	6d a1       	ldd	r22, Y+37	; 0x25
   379e2:	7e a1       	ldd	r23, Y+38	; 0x26
   379e4:	8f a1       	ldd	r24, Y+39	; 0x27
   379e6:	98 a5       	ldd	r25, Y+40	; 0x28
   379e8:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   379ec:	4b 01       	movw	r8, r22
   379ee:	5c 01       	movw	r10, r24
                             + sq(z - position_float[Z_AXIS]));
   379f0:	20 91 d5 04 	lds	r18, 0x04D5	; 0x8004d5 <position_float+0x8>
   379f4:	30 91 d6 04 	lds	r19, 0x04D6	; 0x8004d6 <position_float+0x9>
   379f8:	40 91 d7 04 	lds	r20, 0x04D7	; 0x8004d7 <position_float+0xa>
   379fc:	50 91 d8 04 	lds	r21, 0x04D8	; 0x8004d8 <position_float+0xb>
   37a00:	a8 96       	adiw	r28, 0x28	; 40
   37a02:	6c ad       	ldd	r22, Y+60	; 0x3c
   37a04:	7d ad       	ldd	r23, Y+61	; 0x3d
   37a06:	8e ad       	ldd	r24, Y+62	; 0x3e
   37a08:	9f ad       	ldd	r25, Y+63	; 0x3f
   37a0a:	a8 97       	sbiw	r28, 0x28	; 40
   37a0c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   37a10:	6b 01       	movw	r12, r22
   37a12:	7c 01       	movw	r14, r24
        float delta_e = (e - position_float[E_AXIS]) / extruder_multiplier[extruder];
#else
        // M221/FLOW only adjusts for an incorrect source diameter
        float delta_e = (e - position_float[E_AXIS]);
#endif
        float delta_D = sqrt(sq(x - position_float[X_AXIS])
   37a14:	29 a9       	ldd	r18, Y+49	; 0x31
   37a16:	3a a9       	ldd	r19, Y+50	; 0x32
   37a18:	4b a9       	ldd	r20, Y+51	; 0x33
   37a1a:	5c a9       	ldd	r21, Y+52	; 0x34
   37a1c:	ca 01       	movw	r24, r20
   37a1e:	b9 01       	movw	r22, r18
   37a20:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37a24:	69 ab       	std	Y+49, r22	; 0x31
   37a26:	7a ab       	std	Y+50, r23	; 0x32
   37a28:	8b ab       	std	Y+51, r24	; 0x33
   37a2a:	9c ab       	std	Y+52, r25	; 0x34
                             + sq(y - position_float[Y_AXIS])
   37a2c:	a5 01       	movw	r20, r10
   37a2e:	94 01       	movw	r18, r8
   37a30:	c5 01       	movw	r24, r10
   37a32:	b4 01       	movw	r22, r8
   37a34:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37a38:	9b 01       	movw	r18, r22
   37a3a:	ac 01       	movw	r20, r24
   37a3c:	69 a9       	ldd	r22, Y+49	; 0x31
   37a3e:	7a a9       	ldd	r23, Y+50	; 0x32
   37a40:	8b a9       	ldd	r24, Y+51	; 0x33
   37a42:	9c a9       	ldd	r25, Y+52	; 0x34
   37a44:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   37a48:	4b 01       	movw	r8, r22
   37a4a:	5c 01       	movw	r10, r24
                             + sq(z - position_float[Z_AXIS]));
   37a4c:	a7 01       	movw	r20, r14
   37a4e:	96 01       	movw	r18, r12
   37a50:	c7 01       	movw	r24, r14
   37a52:	b6 01       	movw	r22, r12
   37a54:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37a58:	9b 01       	movw	r18, r22
   37a5a:	ac 01       	movw	r20, r24
   37a5c:	c5 01       	movw	r24, r10
   37a5e:	b4 01       	movw	r22, r8
   37a60:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
        float delta_e = (e - position_float[E_AXIS]) / extruder_multiplier[extruder];
#else
        // M221/FLOW only adjusts for an incorrect source diameter
        float delta_e = (e - position_float[E_AXIS]);
#endif
        float delta_D = sqrt(sq(x - position_float[X_AXIS])
   37a64:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   37a68:	6b 01       	movw	r12, r22
   37a6a:	7c 01       	movw	r14, r24
#ifdef LA_FLOWADJ
        // M221/FLOW should change uniformly the extrusion thickness
        float delta_e = (e - position_float[E_AXIS]) / extruder_multiplier[extruder];
#else
        // M221/FLOW only adjusts for an incorrect source diameter
        float delta_e = (e - position_float[E_AXIS]);
   37a6c:	20 91 d9 04 	lds	r18, 0x04D9	; 0x8004d9 <position_float+0xc>
   37a70:	30 91 da 04 	lds	r19, 0x04DA	; 0x8004da <position_float+0xd>
   37a74:	40 91 db 04 	lds	r20, 0x04DB	; 0x8004db <position_float+0xe>
   37a78:	50 91 dc 04 	lds	r21, 0x04DC	; 0x8004dc <position_float+0xf>
   37a7c:	aa 96       	adiw	r28, 0x2a	; 42
   37a7e:	ee ad       	ldd	r30, Y+62	; 0x3e
   37a80:	ff ad       	ldd	r31, Y+63	; 0x3f
   37a82:	aa 97       	sbiw	r28, 0x2a	; 42
   37a84:	60 81       	ld	r22, Z
   37a86:	71 81       	ldd	r23, Z+1	; 0x01
   37a88:	82 81       	ldd	r24, Z+2	; 0x02
   37a8a:	93 81       	ldd	r25, Z+3	; 0x03
   37a8c:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
                             + sq(y - position_float[Y_AXIS])
                             + sq(z - position_float[Z_AXIS]));

        // all extrusion moves with LA require a compression which is proportional to the
        // extrusion_length to distance ratio (e/D)
        e_D_ratio = delta_e / delta_D;
   37a90:	a7 01       	movw	r20, r14
   37a92:	96 01       	movw	r18, r12
   37a94:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37a98:	6a 96       	adiw	r28, 0x1a	; 26
   37a9a:	6c af       	std	Y+60, r22	; 0x3c
   37a9c:	7d af       	std	Y+61, r23	; 0x3d
   37a9e:	8e af       	std	Y+62, r24	; 0x3e
   37aa0:	9f af       	std	Y+63, r25	; 0x3f
   37aa2:	6a 97       	sbiw	r28, 0x1a	; 26

        // Check for unusual high e_D ratio to detect if a retract move was combined with the last
        // print move due to min. steps per segment. Never execute this with advance! This assumes
        // no one will use a retract length of 0mm < retr_length < ~0.2mm and no one will print
        // 100mm wide lines using 3mm filament or 35mm wide lines using 1.75mm filament.
        if (e_D_ratio > 3.0)
   37aa4:	20 e0       	ldi	r18, 0x00	; 0
   37aa6:	30 e0       	ldi	r19, 0x00	; 0
   37aa8:	40 e4       	ldi	r20, 0x40	; 64
   37aaa:	50 e4       	ldi	r21, 0x40	; 64
   37aac:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37ab0:	18 16       	cp	r1, r24
   37ab2:	0c f4       	brge	.+2      	; 0x37ab6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1850>
   37ab4:	9e c0       	rjmp	.+316    	; 0x37bf2 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x198c>
            block->use_advance_lead = false;
        else if (e_D_ratio > 0) {
   37ab6:	20 e0       	ldi	r18, 0x00	; 0
   37ab8:	30 e0       	ldi	r19, 0x00	; 0
   37aba:	a9 01       	movw	r20, r18
   37abc:	6a 96       	adiw	r28, 0x1a	; 26
   37abe:	6c ad       	ldd	r22, Y+60	; 0x3c
   37ac0:	7d ad       	ldd	r23, Y+61	; 0x3d
   37ac2:	8e ad       	ldd	r24, Y+62	; 0x3e
   37ac4:	9f ad       	ldd	r25, Y+63	; 0x3f
   37ac6:	6a 97       	sbiw	r28, 0x1a	; 26
   37ac8:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37acc:	18 16       	cp	r1, r24
   37ace:	0c f0       	brlt	.+2      	; 0x37ad2 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x186c>
   37ad0:	42 c0       	rjmp	.+132    	; 0x37b56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18f0>
            const uint32_t max_accel_steps_per_s2 = ceil(cs.max_jerk[E_AXIS] / (extruder_advance_K * e_D_ratio) * steps_per_mm);
   37ad2:	6a 96       	adiw	r28, 0x1a	; 26
   37ad4:	2c ad       	ldd	r18, Y+60	; 0x3c
   37ad6:	3d ad       	ldd	r19, Y+61	; 0x3d
   37ad8:	4e ad       	ldd	r20, Y+62	; 0x3e
   37ada:	5f ad       	ldd	r21, Y+63	; 0x3f
   37adc:	6a 97       	sbiw	r28, 0x1a	; 26
   37ade:	6d a5       	ldd	r22, Y+45	; 0x2d
   37ae0:	7e a5       	ldd	r23, Y+46	; 0x2e
   37ae2:	8f a5       	ldd	r24, Y+47	; 0x2f
   37ae4:	98 a9       	ldd	r25, Y+48	; 0x30
   37ae6:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37aea:	9b 01       	movw	r18, r22
   37aec:	ac 01       	movw	r20, r24
   37aee:	60 91 12 0e 	lds	r22, 0x0E12	; 0x800e12 <cs+0x54>
   37af2:	70 91 13 0e 	lds	r23, 0x0E13	; 0x800e13 <cs+0x55>
   37af6:	80 91 14 0e 	lds	r24, 0x0E14	; 0x800e14 <cs+0x56>
   37afa:	90 91 15 0e 	lds	r25, 0x0E15	; 0x800e15 <cs+0x57>
   37afe:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37b02:	29 a5       	ldd	r18, Y+41	; 0x29
   37b04:	3a a5       	ldd	r19, Y+42	; 0x2a
   37b06:	4b a5       	ldd	r20, Y+43	; 0x2b
   37b08:	5c a5       	ldd	r21, Y+44	; 0x2c
   37b0a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37b0e:	0f 94 61 de 	call	0x3bcc2	; 0x3bcc2 <ceil>
   37b12:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   37b16:	64 15       	cp	r22, r4
   37b18:	75 05       	cpc	r23, r5
   37b1a:	86 05       	cpc	r24, r6
   37b1c:	97 05       	cpc	r25, r7
   37b1e:	d8 f4       	brcc	.+54     	; 0x37b56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18f0>
   37b20:	2b 01       	movw	r4, r22
   37b22:	3c 01       	movw	r6, r24
   37b24:	18 c0       	rjmp	.+48     	; 0x37b56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18f0>
    block->use_advance_lead = false;
    #endif
  }
  else
  {
    accel = ceil((block->steps[E_AXIS].wide ? cs.acceleration : cs.travel_acceleration) * steps_per_mm); // convert to: acceleration steps/sec^2
   37b26:	60 91 7e 0e 	lds	r22, 0x0E7E	; 0x800e7e <cs+0xc0>
   37b2a:	70 91 7f 0e 	lds	r23, 0x0E7F	; 0x800e7f <cs+0xc1>
   37b2e:	80 91 80 0e 	lds	r24, 0x0E80	; 0x800e80 <cs+0xc2>
   37b32:	90 91 81 0e 	lds	r25, 0x0E81	; 0x800e81 <cs+0xc3>
   37b36:	f1 ce       	rjmp	.-542    	; 0x3791a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x16b4>
     *
     * extruder_advance_K       : There is an advance factor set.
     * delta_mm[E_AXIS] >= 0    : Extruding or traveling, but _not_ retracting.
     * |delta_mm[Z_AXIS]| < 0.5 : Z is only moved for leveling (_not_ for priming)
     */
    block->use_advance_lead = extruder_advance_K > 0
   37b38:	8e e6       	ldi	r24, 0x6E	; 110
   37b3a:	82 9d       	mul	r24, r2
   37b3c:	f0 01       	movw	r30, r0
   37b3e:	83 9d       	mul	r24, r3
   37b40:	f0 0d       	add	r31, r0
   37b42:	11 24       	eor	r1, r1
   37b44:	ef 5e       	subi	r30, 0xEF	; 239
   37b46:	f8 4f       	sbci	r31, 0xF8	; 248
   37b48:	10 82       	st	Z, r1
    block->nominal_speed *= speed_factor;
    block->nominal_rate *= speed_factor;
  }

#ifdef LIN_ADVANCE
  float e_D_ratio = 0;
   37b4a:	6a 96       	adiw	r28, 0x1a	; 26
   37b4c:	1c ae       	std	Y+60, r1	; 0x3c
   37b4e:	1d ae       	std	Y+61, r1	; 0x3d
   37b50:	1e ae       	std	Y+62, r1	; 0x3e
   37b52:	1f ae       	std	Y+63, r1	; 0x3f
   37b54:	6a 97       	sbiw	r28, 0x1a	; 26
   37b56:	10 e0       	ldi	r17, 0x00	; 0
   37b58:	00 e0       	ldi	r16, 0x00	; 0
    #endif

    // Limit acceleration per axis
    for (uint8_t axis = 0; axis < NUM_AXIS; axis++)
    {
      if(block->steps[axis].wide && max_acceleration_steps_per_s2[axis] < accel)
   37b5a:	a4 96       	adiw	r28, 0x24	; 36
   37b5c:	ee ad       	ldd	r30, Y+62	; 0x3e
   37b5e:	ff ad       	ldd	r31, Y+63	; 0x3f
   37b60:	a4 97       	sbiw	r28, 0x24	; 36
   37b62:	e0 0f       	add	r30, r16
   37b64:	f1 1f       	adc	r31, r17
   37b66:	eb 53       	subi	r30, 0x3B	; 59
   37b68:	f9 4f       	sbci	r31, 0xF9	; 249
   37b6a:	c0 80       	ld	r12, Z
   37b6c:	d1 80       	ldd	r13, Z+1	; 0x01
   37b6e:	e2 80       	ldd	r14, Z+2	; 0x02
   37b70:	f3 80       	ldd	r15, Z+3	; 0x03
   37b72:	c1 14       	cp	r12, r1
   37b74:	d1 04       	cpc	r13, r1
   37b76:	e1 04       	cpc	r14, r1
   37b78:	f1 04       	cpc	r15, r1
   37b7a:	a1 f1       	breq	.+104    	; 0x37be4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x197e>
   37b7c:	f8 01       	movw	r30, r16
   37b7e:	e2 5b       	subi	r30, 0xB2	; 178
   37b80:	fa 4f       	sbci	r31, 0xFA	; 250
   37b82:	60 81       	ld	r22, Z
   37b84:	71 81       	ldd	r23, Z+1	; 0x01
   37b86:	82 81       	ldd	r24, Z+2	; 0x02
   37b88:	93 81       	ldd	r25, Z+3	; 0x03
   37b8a:	64 15       	cp	r22, r4
   37b8c:	75 05       	cpc	r23, r5
   37b8e:	86 05       	cpc	r24, r6
   37b90:	97 05       	cpc	r25, r7
   37b92:	40 f5       	brcc	.+80     	; 0x37be4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x197e>
      {
        const float max_possible = float(max_acceleration_steps_per_s2[axis]) * float(block->step_event_count.wide) / float(block->steps[axis].wide);
   37b94:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   37b98:	29 ad       	ldd	r18, Y+57	; 0x39
   37b9a:	3a ad       	ldd	r19, Y+58	; 0x3a
   37b9c:	4b ad       	ldd	r20, Y+59	; 0x3b
   37b9e:	5c ad       	ldd	r21, Y+60	; 0x3c
   37ba0:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37ba4:	4b 01       	movw	r8, r22
   37ba6:	5c 01       	movw	r10, r24
   37ba8:	c7 01       	movw	r24, r14
   37baa:	b6 01       	movw	r22, r12
   37bac:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   37bb0:	9b 01       	movw	r18, r22
   37bb2:	ac 01       	movw	r20, r24
   37bb4:	c5 01       	movw	r24, r10
   37bb6:	b4 01       	movw	r22, r8
   37bb8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37bbc:	6b 01       	movw	r12, r22
   37bbe:	7c 01       	movw	r14, r24
        if (max_possible < accel) accel = max_possible;
   37bc0:	c3 01       	movw	r24, r6
   37bc2:	b2 01       	movw	r22, r4
   37bc4:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   37bc8:	9b 01       	movw	r18, r22
   37bca:	ac 01       	movw	r20, r24
   37bcc:	c7 01       	movw	r24, r14
   37bce:	b6 01       	movw	r22, r12
   37bd0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37bd4:	87 ff       	sbrs	r24, 7
   37bd6:	06 c0       	rjmp	.+12     	; 0x37be4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x197e>
   37bd8:	c7 01       	movw	r24, r14
   37bda:	b6 01       	movw	r22, r12
   37bdc:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   37be0:	2b 01       	movw	r4, r22
   37be2:	3c 01       	movw	r6, r24
   37be4:	0c 5f       	subi	r16, 0xFC	; 252
   37be6:	1f 4f       	sbci	r17, 0xFF	; 255
        }
    }
    #endif

    // Limit acceleration per axis
    for (uint8_t axis = 0; axis < NUM_AXIS; axis++)
   37be8:	00 31       	cpi	r16, 0x10	; 16
   37bea:	11 05       	cpc	r17, r1
   37bec:	09 f0       	breq	.+2      	; 0x37bf0 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x198a>
   37bee:	b5 cf       	rjmp	.-150    	; 0x37b5a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18f4>
   37bf0:	01 c9       	rjmp	.-3582   	; 0x36df4 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xb8e>
        // Check for unusual high e_D ratio to detect if a retract move was combined with the last
        // print move due to min. steps per segment. Never execute this with advance! This assumes
        // no one will use a retract length of 0mm < retr_length < ~0.2mm and no one will print
        // 100mm wide lines using 3mm filament or 35mm wide lines using 1.75mm filament.
        if (e_D_ratio > 3.0)
            block->use_advance_lead = false;
   37bf2:	d8 01       	movw	r26, r16
   37bf4:	1c 92       	st	X, r1
   37bf6:	af cf       	rjmp	.-162    	; 0x37b56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x18f0>
              if (jerk > mjerk) {
                  safe_speed *= mjerk / jerk;
                  limited = true;
              }
          } else {
              safe_speed = cs.max_jerk[axis];
   37bf8:	c9 a6       	std	Y+41, r12	; 0x29
   37bfa:	dd a6       	std	Y+45, r13	; 0x2d
   37bfc:	e9 aa       	std	Y+49, r14	; 0x31
   37bfe:	f9 ae       	std	Y+57, r15	; 0x39
              limited = true;
   37c00:	21 e0       	ldi	r18, 0x01	; 1
   37c02:	2d ab       	std	Y+53, r18	; 0x35
   37c04:	b1 c9       	rjmp	.-3230   	; 0x36f68 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xd02>
      // If this maximum velocity allowed is lower than the minimum of the entry / exit safe velocities,
      // then the machine is not coasting anymore and the safe entry / exit velocities shall be used.

      // The junction velocity will be shared between successive segments. Limit the junction velocity to their minimum.
      bool prev_speed_larger = previous_nominal_speed > block->nominal_speed;
      float smaller_speed_factor = prev_speed_larger ? (block->nominal_speed / previous_nominal_speed) : (previous_nominal_speed / block->nominal_speed);
   37c06:	27 96       	adiw	r28, 0x07	; 7
   37c08:	2f ad       	ldd	r18, Y+63	; 0x3f
   37c0a:	27 97       	sbiw	r28, 0x07	; 7
   37c0c:	2b 96       	adiw	r28, 0x0b	; 11
   37c0e:	3f ad       	ldd	r19, Y+63	; 0x3f
   37c10:	2b 97       	sbiw	r28, 0x0b	; 11
   37c12:	2f 96       	adiw	r28, 0x0f	; 15
   37c14:	4f ad       	ldd	r20, Y+63	; 0x3f
   37c16:	2f 97       	sbiw	r28, 0x0f	; 15
   37c18:	63 96       	adiw	r28, 0x13	; 19
   37c1a:	5f ad       	ldd	r21, Y+63	; 0x3f
   37c1c:	63 97       	sbiw	r28, 0x13	; 19
   37c1e:	6b 96       	adiw	r28, 0x1b	; 27
   37c20:	6f ad       	ldd	r22, Y+63	; 0x3f
   37c22:	6b 97       	sbiw	r28, 0x1b	; 27
   37c24:	6d 96       	adiw	r28, 0x1d	; 29
   37c26:	7f ad       	ldd	r23, Y+63	; 0x3f
   37c28:	6d 97       	sbiw	r28, 0x1d	; 29
   37c2a:	c8 01       	movw	r24, r16
   37c2c:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   37c30:	ec 96       	adiw	r28, 0x3c	; 60
   37c32:	6c af       	std	Y+60, r22	; 0x3c
   37c34:	7d af       	std	Y+61, r23	; 0x3d
   37c36:	8e af       	std	Y+62, r24	; 0x3e
   37c38:	9f af       	std	Y+63, r25	; 0x3f
   37c3a:	ec 97       	sbiw	r28, 0x3c	; 60
      // Pick the smaller of the nominal speeds. Higher speed shall not be achieved at the junction during coasting.
      vmax_junction = prev_speed_larger ? block->nominal_speed : previous_nominal_speed;
   37c3c:	6b 96       	adiw	r28, 0x1b	; 27
   37c3e:	ef ad       	ldd	r30, Y+63	; 0x3f
   37c40:	6b 97       	sbiw	r28, 0x1b	; 27
   37c42:	ed af       	std	Y+61, r30	; 0x3d
   37c44:	6d 96       	adiw	r28, 0x1d	; 29
   37c46:	ff ad       	ldd	r31, Y+63	; 0x3f
   37c48:	6d 97       	sbiw	r28, 0x1d	; 29
   37c4a:	fd ab       	std	Y+53, r31	; 0x35
   37c4c:	0e af       	std	Y+62, r16	; 0x3e
   37c4e:	23 96       	adiw	r28, 0x03	; 3
   37c50:	1f af       	std	Y+63, r17	; 0x3f
   37c52:	23 97       	sbiw	r28, 0x03	; 3
   37c54:	04 ca       	rjmp	.-3064   	; 0x3705e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xdf8>
              (v_exit > v_entry) ?
                  ((v_entry > 0.f || v_exit < 0.f) ?
                      // coasting
                      (v_exit - v_entry) :
                      // axis reversal
                      max(v_exit, - v_entry)) :
   37c56:	f7 fa       	bst	r15, 7
   37c58:	f0 94       	com	r15
   37c5a:	f7 f8       	bld	r15, 7
   37c5c:	f0 94       	com	r15
   37c5e:	a5 01       	movw	r20, r10
   37c60:	94 01       	movw	r18, r8
   37c62:	c7 01       	movw	r24, r14
   37c64:	b6 01       	movw	r22, r12
   37c66:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37c6a:	87 ff       	sbrs	r24, 7
   37c6c:	77 ca       	rjmp	.-2834   	; 0x3715c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xef6>
                  // v_exit <= v_entry
                  ((v_entry < 0.f || v_exit > 0.f) ?
                      // coasting
                      (v_entry - v_exit) :
                      // axis reversal
                      max(- v_exit, v_entry));
   37c6e:	75 01       	movw	r14, r10
   37c70:	64 01       	movw	r12, r8
   37c72:	74 ca       	rjmp	.-2840   	; 0x3715c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xef6>
                      // coasting
                      (v_exit - v_entry) :
                      // axis reversal
                      max(v_exit, - v_entry)) :
                  // v_exit <= v_entry
                  ((v_entry < 0.f || v_exit > 0.f) ?
   37c74:	c7 01       	movw	r24, r14
   37c76:	b6 01       	movw	r22, r12
   37c78:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37c7c:	87 fd       	sbrc	r24, 7
   37c7e:	09 c0       	rjmp	.+18     	; 0x37c92 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a2c>
   37c80:	20 e0       	ldi	r18, 0x00	; 0
   37c82:	30 e0       	ldi	r19, 0x00	; 0
   37c84:	a9 01       	movw	r20, r18
   37c86:	c5 01       	movw	r24, r10
   37c88:	b4 01       	movw	r22, r8
   37c8a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37c8e:	18 16       	cp	r1, r24
   37c90:	2c f4       	brge	.+10     	; 0x37c9c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a36>
   37c92:	a5 01       	movw	r20, r10
   37c94:	94 01       	movw	r18, r8
   37c96:	c7 01       	movw	r24, r14
   37c98:	b6 01       	movw	r22, r12
   37c9a:	5c ca       	rjmp	.-2888   	; 0x37154 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xeee>
                      // coasting
                      (v_entry - v_exit) :
                      // axis reversal
                      max(- v_exit, v_entry));
   37c9c:	b7 fa       	bst	r11, 7
   37c9e:	b0 94       	com	r11
   37ca0:	b7 f8       	bld	r11, 7
   37ca2:	b0 94       	com	r11
   37ca4:	a7 01       	movw	r20, r14
   37ca6:	96 01       	movw	r18, r12
   37ca8:	c5 01       	movw	r24, r10
   37caa:	b4 01       	movw	r22, r8
   37cac:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37cb0:	18 16       	cp	r1, r24
   37cb2:	0c f0       	brlt	.+2      	; 0x37cb6 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a50>
   37cb4:	53 ca       	rjmp	.-2906   	; 0x3715c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xef6>
   37cb6:	db cf       	rjmp	.-74     	; 0x37c6e <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1a08>
          // better to start the segment from start.
          block->flag |= BLOCK_FLAG_START_FROM_FULL_HALT;
          vmax_junction = safe_speed;
      }
  } else {
      block->flag |= BLOCK_FLAG_START_FROM_FULL_HALT;
   37cb8:	8e e6       	ldi	r24, 0x6E	; 110
   37cba:	82 9d       	mul	r24, r2
   37cbc:	f0 01       	movw	r30, r0
   37cbe:	83 9d       	mul	r24, r3
   37cc0:	f0 0d       	add	r31, r0
   37cc2:	11 24       	eor	r1, r1
   37cc4:	eb 53       	subi	r30, 0x3B	; 59
   37cc6:	f9 4f       	sbci	r31, 0xF9	; 249
   37cc8:	85 a9       	ldd	r24, Z+53	; 0x35
   37cca:	84 60       	ori	r24, 0x04	; 4
   37ccc:	85 ab       	std	Z+53, r24	; 0x35
   37cce:	a9 a5       	ldd	r26, Y+41	; 0x29
   37cd0:	ad af       	std	Y+61, r26	; 0x3d
   37cd2:	bd a5       	ldd	r27, Y+45	; 0x2d
   37cd4:	bd ab       	std	Y+53, r27	; 0x35
   37cd6:	e9 a9       	ldd	r30, Y+49	; 0x31
   37cd8:	ee af       	std	Y+62, r30	; 0x3e
   37cda:	f9 ad       	ldd	r31, Y+57	; 0x39
   37cdc:	23 96       	adiw	r28, 0x03	; 3
   37cde:	ff af       	std	Y+63, r31	; 0x3f
   37ce0:	23 97       	sbiw	r28, 0x03	; 3
   37ce2:	bc ca       	rjmp	.-2696   	; 0x3725c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xff6>
  // junction speeds in deceleration and acceleration, respectively. This is due to how the current
  // block nominal speed limits both the current and next maximum junction speeds. Hence, in both
  // the reverse and forward planners, the corresponding block junction speed will always be at the
  // the maximum junction speed and may always be ignored for any speed reduction checks.
  // Always calculate trapezoid for new block
  block->flag |= (block->nominal_speed <= v_allowable) ? (BLOCK_FLAG_NOMINAL_LENGTH | BLOCK_FLAG_RECALCULATE) : BLOCK_FLAG_RECALCULATE;
   37ce4:	81 e0       	ldi	r24, 0x01	; 1
   37ce6:	30 cb       	rjmp	.-2464   	; 0x37348 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x10e2>

      float advance_speed;
      if (e_D_ratio > 0)
          advance_speed = (extruder_advance_K * e_D_ratio * block->acceleration * cs.axis_steps_per_mm[E_AXIS]);
      else
          advance_speed = cs.max_jerk[E_AXIS] * cs.axis_steps_per_mm[E_AXIS];
   37ce8:	20 91 12 0e 	lds	r18, 0x0E12	; 0x800e12 <cs+0x54>
   37cec:	30 91 13 0e 	lds	r19, 0x0E13	; 0x800e13 <cs+0x55>
   37cf0:	40 91 14 0e 	lds	r20, 0x0E14	; 0x800e14 <cs+0x56>
   37cf4:	50 91 15 0e 	lds	r21, 0x0E15	; 0x800e15 <cs+0x57>
   37cf8:	c7 01       	movw	r24, r14
   37cfa:	b6 01       	movw	r22, r12
   37cfc:	c1 cb       	rjmp	.-2174   	; 0x37480 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x121a>
      float advance_rate = (F_CPU / 8.0) / advance_speed;
      if (advance_speed > 20000) {
          block->advance_rate = advance_rate * 4;
          block->advance_step_loops = 4;
      }
      else if (advance_speed > 10000) {
   37cfe:	20 e0       	ldi	r18, 0x00	; 0
   37d00:	30 e4       	ldi	r19, 0x40	; 64
   37d02:	4c e1       	ldi	r20, 0x1C	; 28
   37d04:	56 e4       	ldi	r21, 0x46	; 70
   37d06:	c7 01       	movw	r24, r14
   37d08:	b6 01       	movw	r22, r12
   37d0a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   37d0e:	18 16       	cp	r1, r24
   37d10:	d4 f4       	brge	.+52     	; 0x37d46 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1ae0>
          block->advance_rate = advance_rate * 2;
   37d12:	8e e6       	ldi	r24, 0x6E	; 110
   37d14:	82 9d       	mul	r24, r2
   37d16:	80 01       	movw	r16, r0
   37d18:	83 9d       	mul	r24, r3
   37d1a:	10 0d       	add	r17, r0
   37d1c:	11 24       	eor	r1, r1
   37d1e:	0b 53       	subi	r16, 0x3B	; 59
   37d20:	19 4f       	sbci	r17, 0xF9	; 249
   37d22:	78 01       	movw	r14, r16
   37d24:	bd e4       	ldi	r27, 0x4D	; 77
   37d26:	eb 0e       	add	r14, r27
   37d28:	f1 1c       	adc	r15, r1
   37d2a:	a5 01       	movw	r20, r10
   37d2c:	94 01       	movw	r18, r8
   37d2e:	c5 01       	movw	r24, r10
   37d30:	b4 01       	movw	r22, r8
   37d32:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   37d36:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   37d3a:	f7 01       	movw	r30, r14
   37d3c:	71 83       	std	Z+1, r23	; 0x01
   37d3e:	60 83       	st	Z, r22
          block->advance_step_loops = 2;
   37d40:	36 96       	adiw	r30, 0x06	; 6
   37d42:	82 e0       	ldi	r24, 0x02	; 2
   37d44:	e2 cb       	rjmp	.-2108   	; 0x3750a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x12a4>
      }
      else
      {
          // never overflow the internal accumulator with very low rates
          if (advance_rate < UINT16_MAX)
   37d46:	20 e0       	ldi	r18, 0x00	; 0
   37d48:	3f ef       	ldi	r19, 0xFF	; 255
   37d4a:	4f e7       	ldi	r20, 0x7F	; 127
   37d4c:	57 e4       	ldi	r21, 0x47	; 71
   37d4e:	c5 01       	movw	r24, r10
   37d50:	b4 01       	movw	r22, r8
   37d52:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37d56:	87 ff       	sbrs	r24, 7
   37d58:	19 c0       	rjmp	.+50     	; 0x37d8c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1b26>
              block->advance_rate = advance_rate;
   37d5a:	8e e6       	ldi	r24, 0x6E	; 110
   37d5c:	82 9d       	mul	r24, r2
   37d5e:	80 01       	movw	r16, r0
   37d60:	83 9d       	mul	r24, r3
   37d62:	10 0d       	add	r17, r0
   37d64:	11 24       	eor	r1, r1
   37d66:	0e 5e       	subi	r16, 0xEE	; 238
   37d68:	18 4f       	sbci	r17, 0xF8	; 248
   37d6a:	c5 01       	movw	r24, r10
   37d6c:	b4 01       	movw	r22, r8
   37d6e:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   37d72:	d8 01       	movw	r26, r16
   37d74:	6d 93       	st	X+, r22
   37d76:	7c 93       	st	X, r23
          else
              block->advance_rate = UINT16_MAX;
          block->advance_step_loops = 1;
   37d78:	8e e6       	ldi	r24, 0x6E	; 110
   37d7a:	82 9d       	mul	r24, r2
   37d7c:	f0 01       	movw	r30, r0
   37d7e:	83 9d       	mul	r24, r3
   37d80:	f0 0d       	add	r31, r0
   37d82:	11 24       	eor	r1, r1
   37d84:	e8 5e       	subi	r30, 0xE8	; 232
   37d86:	f8 4f       	sbci	r31, 0xF8	; 248
   37d88:	81 e0       	ldi	r24, 0x01	; 1
   37d8a:	bf cb       	rjmp	.-2178   	; 0x3750a <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x12a4>
      {
          // never overflow the internal accumulator with very low rates
          if (advance_rate < UINT16_MAX)
              block->advance_rate = advance_rate;
          else
              block->advance_rate = UINT16_MAX;
   37d8c:	8e e6       	ldi	r24, 0x6E	; 110
   37d8e:	82 9d       	mul	r24, r2
   37d90:	f0 01       	movw	r30, r0
   37d92:	83 9d       	mul	r24, r3
   37d94:	f0 0d       	add	r31, r0
   37d96:	11 24       	eor	r1, r1
   37d98:	ee 5e       	subi	r30, 0xEE	; 238
   37d9a:	f8 4f       	sbci	r31, 0xF8	; 248
   37d9c:	8f ef       	ldi	r24, 0xFF	; 255
   37d9e:	9f ef       	ldi	r25, 0xFF	; 255
   37da0:	91 83       	std	Z+1, r25	; 0x01
   37da2:	80 83       	st	Z, r24
   37da4:	e9 cf       	rjmp	.-46     	; 0x37d78 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1b12>
                break;
            }
            // If entry speed is already at the maximum entry speed, no need to recheck. Block is cruising.
            // If not, block in state of acceleration or deceleration. Reset entry speed to maximum and
            // check for maximum allowable speed reductions to ensure maximum possible planned speed.
            if (current->entry_speed != current->max_entry_speed) {
   37da6:	f6 01       	movw	r30, r12
   37da8:	71 a4       	ldd	r7, Z+41	; 0x29
   37daa:	82 a4       	ldd	r8, Z+42	; 0x2a
   37dac:	93 a4       	ldd	r9, Z+43	; 0x2b
   37dae:	e4 a4       	ldd	r14, Z+44	; 0x2c
   37db0:	27 2d       	mov	r18, r7
   37db2:	38 2d       	mov	r19, r8
   37db4:	49 2d       	mov	r20, r9
   37db6:	5e 2d       	mov	r21, r14
   37db8:	65 a1       	ldd	r22, Z+37	; 0x25
   37dba:	76 a1       	ldd	r23, Z+38	; 0x26
   37dbc:	87 a1       	ldd	r24, Z+39	; 0x27
   37dbe:	90 a5       	ldd	r25, Z+40	; 0x28
   37dc0:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37dc4:	88 23       	and	r24, r24
   37dc6:	09 f4       	brne	.+2      	; 0x37dca <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1b64>
   37dc8:	51 c0       	rjmp	.+162    	; 0x37e6c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1c06>
                // If nominal length true, max junction speed is guaranteed to be reached even if decelerating to a jerk-from-zero velocity.
                // Only compute for max allowable speed if block is decelerating and nominal length is false.
                // entry_speed is uint16_t, 24 bits would be sufficient for block->acceleration and block->millimiteres, if scaled to um.
                // therefore an optimized assembly 24bit x 24bit -> 32bit multiply would be more than sufficient
                // together with an assembly 32bit->16bit sqrt function.
                current->entry_speed = ((current->flag & BLOCK_FLAG_NOMINAL_LENGTH) || current->max_entry_speed <= next->entry_speed) ?
   37dca:	01 fd       	sbrc	r16, 1
   37dcc:	44 c0       	rjmp	.+136    	; 0x37e56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1bf0>
   37dce:	d5 01       	movw	r26, r10
   37dd0:	95 96       	adiw	r26, 0x25	; 37
   37dd2:	2d 90       	ld	r2, X+
   37dd4:	3d 90       	ld	r3, X+
   37dd6:	4d 90       	ld	r4, X+
   37dd8:	5c 90       	ld	r5, X
   37dda:	98 97       	sbiw	r26, 0x28	; 40
   37ddc:	a2 01       	movw	r20, r4
   37dde:	91 01       	movw	r18, r2
   37de0:	67 2d       	mov	r22, r7
   37de2:	78 2d       	mov	r23, r8
   37de4:	89 2d       	mov	r24, r9
   37de6:	9e 2d       	mov	r25, r14
   37de8:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37dec:	18 16       	cp	r1, r24
   37dee:	9c f5       	brge	.+102    	; 0x37e56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1bf0>
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   37df0:	a2 01       	movw	r20, r4
   37df2:	91 01       	movw	r18, r2
   37df4:	c2 01       	movw	r24, r4
   37df6:	b1 01       	movw	r22, r2
   37df8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37dfc:	1b 01       	movw	r2, r22
   37dfe:	2c 01       	movw	r4, r24
                // therefore an optimized assembly 24bit x 24bit -> 32bit multiply would be more than sufficient
                // together with an assembly 32bit->16bit sqrt function.
                current->entry_speed = ((current->flag & BLOCK_FLAG_NOMINAL_LENGTH) || current->max_entry_speed <= next->entry_speed) ?
                    current->max_entry_speed :
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
   37e00:	f6 01       	movw	r30, r12
   37e02:	61 a9       	ldd	r22, Z+49	; 0x31
   37e04:	72 a9       	ldd	r23, Z+50	; 0x32
   37e06:	83 a9       	ldd	r24, Z+51	; 0x33
   37e08:	94 a9       	ldd	r25, Z+52	; 0x34
   37e0a:	90 58       	subi	r25, 0x80	; 128
// Calculates the maximum allowable entry speed, when you must be able to reach target_velocity using the
// decceleration within the allotted distance.
FORCE_INLINE float max_allowable_entry_speed(float decceleration, float target_velocity, float distance)
{
    // assert(decceleration < 0);
    return  sqrt(target_velocity*target_velocity-2*decceleration*distance);
   37e0c:	9b 01       	movw	r18, r22
   37e0e:	ac 01       	movw	r20, r24
   37e10:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   37e14:	d6 01       	movw	r26, r12
   37e16:	9d 96       	adiw	r26, 0x2d	; 45
   37e18:	2d 91       	ld	r18, X+
   37e1a:	3d 91       	ld	r19, X+
   37e1c:	4d 91       	ld	r20, X+
   37e1e:	5c 91       	ld	r21, X
   37e20:	d0 97       	sbiw	r26, 0x30	; 48
   37e22:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37e26:	9b 01       	movw	r18, r22
   37e28:	ac 01       	movw	r20, r24
   37e2a:	c2 01       	movw	r24, r4
   37e2c:	b1 01       	movw	r22, r2
   37e2e:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   37e32:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   37e36:	2b 01       	movw	r4, r22
   37e38:	5c 01       	movw	r10, r24
                // therefore an optimized assembly 24bit x 24bit -> 32bit multiply would be more than sufficient
                // together with an assembly 32bit->16bit sqrt function.
                current->entry_speed = ((current->flag & BLOCK_FLAG_NOMINAL_LENGTH) || current->max_entry_speed <= next->entry_speed) ?
                    current->max_entry_speed :
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
   37e3a:	9b 01       	movw	r18, r22
   37e3c:	ac 01       	movw	r20, r24
   37e3e:	67 2d       	mov	r22, r7
   37e40:	78 2d       	mov	r23, r8
   37e42:	89 2d       	mov	r24, r9
   37e44:	9e 2d       	mov	r25, r14
   37e46:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   37e4a:	87 fd       	sbrc	r24, 7
   37e4c:	04 c0       	rjmp	.+8      	; 0x37e56 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1bf0>
   37e4e:	74 2c       	mov	r7, r4
   37e50:	85 2c       	mov	r8, r5
   37e52:	9a 2c       	mov	r9, r10
   37e54:	eb 2c       	mov	r14, r11
                // If nominal length true, max junction speed is guaranteed to be reached even if decelerating to a jerk-from-zero velocity.
                // Only compute for max allowable speed if block is decelerating and nominal length is false.
                // entry_speed is uint16_t, 24 bits would be sufficient for block->acceleration and block->millimiteres, if scaled to um.
                // therefore an optimized assembly 24bit x 24bit -> 32bit multiply would be more than sufficient
                // together with an assembly 32bit->16bit sqrt function.
                current->entry_speed = ((current->flag & BLOCK_FLAG_NOMINAL_LENGTH) || current->max_entry_speed <= next->entry_speed) ?
   37e56:	87 2d       	mov	r24, r7
   37e58:	98 2d       	mov	r25, r8
   37e5a:	a9 2d       	mov	r26, r9
   37e5c:	be 2d       	mov	r27, r14
   37e5e:	f6 01       	movw	r30, r12
   37e60:	85 a3       	std	Z+37, r24	; 0x25
   37e62:	96 a3       	std	Z+38, r25	; 0x26
   37e64:	a7 a3       	std	Z+39, r26	; 0x27
   37e66:	b0 a7       	std	Z+40, r27	; 0x28
                    current->max_entry_speed :
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
                current->flag |= BLOCK_FLAG_RECALCULATE;
   37e68:	01 60       	ori	r16, 0x01	; 1
   37e6a:	05 ab       	std	Z+53, r16	; 0x35
}


// Returns the index of the previous block in the ring buffer
static inline uint8_t prev_block_index(uint8_t block_index) {
  if (block_index == 0)
   37e6c:	11 11       	cpse	r17, r1
   37e6e:	01 c0       	rjmp	.+2      	; 0x37e72 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1c0c>
    block_index = BLOCK_BUFFER_SIZE;
   37e70:	10 e1       	ldi	r17, 0x10	; 16
  -- block_index;
   37e72:	11 50       	subi	r17, 0x01	; 1
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
                current->flag |= BLOCK_FLAG_RECALCULATE;
            }
            next = current;
            current = block_buffer + (block_index = prev_block_index(block_index));
   37e74:	16 9d       	mul	r17, r6
   37e76:	c0 01       	movw	r24, r0
   37e78:	11 24       	eor	r1, r1
                    current->max_entry_speed :
                    // min(current->max_entry_speed, sqrt(next->entry_speed*next->entry_speed+2*current->acceleration*current->millimeters));
                    min(current->max_entry_speed, max_allowable_entry_speed(-current->acceleration,next->entry_speed,current->millimeters));
                current->flag |= BLOCK_FLAG_RECALCULATE;
            }
            next = current;
   37e7a:	56 01       	movw	r10, r12
            current = block_buffer + (block_index = prev_block_index(block_index));
   37e7c:	9c 01       	movw	r18, r24
   37e7e:	2b 53       	subi	r18, 0x3B	; 59
   37e80:	39 4f       	sbci	r19, 0xF9	; 249
   37e82:	69 01       	movw	r12, r18
   37e84:	0b cc       	rjmp	.-2026   	; 0x3769c <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1436>
                calculate_trapezoid_for_block(prev, prev->entry_speed, current->entry_speed);
                // Reset current only to ensure next trapezoid is computed.
                prev->flag &= ~BLOCK_FLAG_RECALCULATE;
            }
            prev = current;
            current = block_buffer + (block_index = next_block_index(block_index));
   37e86:	6c 01       	movw	r12, r24
   37e88:	2f cc       	rjmp	.-1954   	; 0x376e8 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0x1482>
   37e8a:	8f bf       	out	0x3f, r24	; 63
    __asm__ volatile ("" ::: "memory");
   37e8c:	0d 94 9a b1 	jmp	0x36334	; 0x36334 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)+0xce>

00037e90 <plan_set_position_curposXYZE()>:

void plan_buffer_line_destinationXYZE(float feed_rate) {
    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feed_rate);
}

void plan_set_position_curposXYZE(){
   37e90:	4f 92       	push	r4
   37e92:	5f 92       	push	r5
   37e94:	6f 92       	push	r6
   37e96:	7f 92       	push	r7
   37e98:	8f 92       	push	r8
   37e9a:	9f 92       	push	r9
   37e9c:	af 92       	push	r10
   37e9e:	bf 92       	push	r11
   37ea0:	cf 92       	push	r12
   37ea2:	df 92       	push	r13
   37ea4:	ef 92       	push	r14
   37ea6:	ff 92       	push	r15
   37ea8:	cf 93       	push	r28
   37eaa:	df 93       	push	r29
   37eac:	cd b7       	in	r28, 0x3d	; 61
   37eae:	de b7       	in	r29, 0x3e	; 62
   37eb0:	2c 97       	sbiw	r28, 0x0c	; 12
   37eb2:	0f b6       	in	r0, 0x3f	; 63
   37eb4:	f8 94       	cli
   37eb6:	de bf       	out	0x3e, r29	; 62
   37eb8:	0f be       	out	0x3f, r0	; 63
   37eba:	cd bf       	out	0x3d, r28	; 61
    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
   37ebc:	c0 90 9a 06 	lds	r12, 0x069A	; 0x80069a <current_position+0x8>
   37ec0:	d0 90 9b 06 	lds	r13, 0x069B	; 0x80069b <current_position+0x9>
   37ec4:	e0 90 9c 06 	lds	r14, 0x069C	; 0x80069c <current_position+0xa>
   37ec8:	f0 90 9d 06 	lds	r15, 0x069D	; 0x80069d <current_position+0xb>
   37ecc:	80 91 96 06 	lds	r24, 0x0696	; 0x800696 <current_position+0x4>
   37ed0:	90 91 97 06 	lds	r25, 0x0697	; 0x800697 <current_position+0x5>
   37ed4:	a0 91 98 06 	lds	r26, 0x0698	; 0x800698 <current_position+0x6>
   37ed8:	b0 91 99 06 	lds	r27, 0x0699	; 0x800699 <current_position+0x7>
   37edc:	40 91 92 06 	lds	r20, 0x0692	; 0x800692 <current_position>
   37ee0:	50 91 93 06 	lds	r21, 0x0693	; 0x800693 <current_position+0x1>
   37ee4:	60 91 94 06 	lds	r22, 0x0694	; 0x800694 <current_position+0x2>
   37ee8:	70 91 95 06 	lds	r23, 0x0695	; 0x800695 <current_position+0x3>
   37eec:	4d 83       	std	Y+5, r20	; 0x05
   37eee:	5e 83       	std	Y+6, r21	; 0x06
   37ef0:	6f 83       	std	Y+7, r22	; 0x07
   37ef2:	78 87       	std	Y+8, r23	; 0x08
   37ef4:	89 83       	std	Y+1, r24	; 0x01
   37ef6:	9a 83       	std	Y+2, r25	; 0x02
   37ef8:	ab 83       	std	Y+3, r26	; 0x03
   37efa:	bc 83       	std	Y+4, r27	; 0x04
  ENABLE_STEPPER_DRIVER_INTERRUPT();
}

void plan_set_position(float x, float y, float z, const float &e)
{
    world2machine(x, y);
   37efc:	be 01       	movw	r22, r28
   37efe:	6f 5f       	subi	r22, 0xFF	; 255
   37f00:	7f 4f       	sbci	r23, 0xFF	; 255
   37f02:	ce 01       	movw	r24, r28
   37f04:	05 96       	adiw	r24, 0x05	; 5
   37f06:	0e 94 89 69 	call	0xd312	; 0xd312 <world2machine(float&, float&)>

  position[X_AXIS] = lround(x*cs.axis_steps_per_mm[X_AXIS]);
   37f0a:	4d 80       	ldd	r4, Y+5	; 0x05
   37f0c:	5e 80       	ldd	r5, Y+6	; 0x06
   37f0e:	6f 80       	ldd	r6, Y+7	; 0x07
   37f10:	78 84       	ldd	r7, Y+8	; 0x08
   37f12:	20 91 c2 0d 	lds	r18, 0x0DC2	; 0x800dc2 <cs+0x4>
   37f16:	30 91 c3 0d 	lds	r19, 0x0DC3	; 0x800dc3 <cs+0x5>
   37f1a:	40 91 c4 0d 	lds	r20, 0x0DC4	; 0x800dc4 <cs+0x6>
   37f1e:	50 91 c5 0d 	lds	r21, 0x0DC5	; 0x800dc5 <cs+0x7>
   37f22:	c3 01       	movw	r24, r6
   37f24:	b2 01       	movw	r22, r4
   37f26:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37f2a:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   37f2e:	60 93 a3 06 	sts	0x06A3, r22	; 0x8006a3 <position>
   37f32:	70 93 a4 06 	sts	0x06A4, r23	; 0x8006a4 <position+0x1>
   37f36:	80 93 a5 06 	sts	0x06A5, r24	; 0x8006a5 <position+0x2>
   37f3a:	90 93 a6 06 	sts	0x06A6, r25	; 0x8006a6 <position+0x3>
  position[Y_AXIS] = lround(y*cs.axis_steps_per_mm[Y_AXIS]);
   37f3e:	89 80       	ldd	r8, Y+1	; 0x01
   37f40:	9a 80       	ldd	r9, Y+2	; 0x02
   37f42:	ab 80       	ldd	r10, Y+3	; 0x03
   37f44:	bc 80       	ldd	r11, Y+4	; 0x04
   37f46:	20 91 c6 0d 	lds	r18, 0x0DC6	; 0x800dc6 <cs+0x8>
   37f4a:	30 91 c7 0d 	lds	r19, 0x0DC7	; 0x800dc7 <cs+0x9>
   37f4e:	40 91 c8 0d 	lds	r20, 0x0DC8	; 0x800dc8 <cs+0xa>
   37f52:	50 91 c9 0d 	lds	r21, 0x0DC9	; 0x800dc9 <cs+0xb>
   37f56:	c5 01       	movw	r24, r10
   37f58:	b4 01       	movw	r22, r8
   37f5a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37f5e:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   37f62:	60 93 a7 06 	sts	0x06A7, r22	; 0x8006a7 <position+0x4>
   37f66:	70 93 a8 06 	sts	0x06A8, r23	; 0x8006a8 <position+0x5>
   37f6a:	80 93 a9 06 	sts	0x06A9, r24	; 0x8006a9 <position+0x6>
   37f6e:	90 93 aa 06 	sts	0x06AA, r25	; 0x8006aa <position+0x7>
#ifdef MESH_BED_LEVELING
  position[Z_AXIS] = mbl.active ?
   37f72:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
   37f76:	88 23       	and	r24, r24
   37f78:	09 f4       	brne	.+2      	; 0x37f7c <plan_set_position_curposXYZE()+0xec>
   37f7a:	8c c0       	rjmp	.+280    	; 0x38094 <plan_set_position_curposXYZE()+0x204>
    lround((z+mbl.get_z(x, y))*cs.axis_steps_per_mm[Z_AXIS]) :
   37f7c:	a5 01       	movw	r20, r10
   37f7e:	94 01       	movw	r18, r8
   37f80:	c3 01       	movw	r24, r6
   37f82:	b2 01       	movw	r22, r4
   37f84:	0f 94 f0 a1 	call	0x343e0	; 0x343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>
   37f88:	9b 01       	movw	r18, r22
   37f8a:	ac 01       	movw	r20, r24
   37f8c:	c7 01       	movw	r24, r14
   37f8e:	b6 01       	movw	r22, r12
   37f90:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   37f94:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   37f98:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   37f9c:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   37fa0:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
    lround(z*cs.axis_steps_per_mm[Z_AXIS]);
   37fa4:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
    world2machine(x, y);

  position[X_AXIS] = lround(x*cs.axis_steps_per_mm[X_AXIS]);
  position[Y_AXIS] = lround(y*cs.axis_steps_per_mm[Y_AXIS]);
#ifdef MESH_BED_LEVELING
  position[Z_AXIS] = mbl.active ?
   37fa8:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   37fac:	60 93 ab 06 	sts	0x06AB, r22	; 0x8006ab <position+0x8>
   37fb0:	70 93 ac 06 	sts	0x06AC, r23	; 0x8006ac <position+0x9>
   37fb4:	80 93 ad 06 	sts	0x06AD, r24	; 0x8006ad <position+0xa>
   37fb8:	90 93 ae 06 	sts	0x06AE, r25	; 0x8006ae <position+0xb>
    lround((z+mbl.get_z(x, y))*cs.axis_steps_per_mm[Z_AXIS]) :
    lround(z*cs.axis_steps_per_mm[Z_AXIS]);
#else
  position[Z_AXIS] = lround(z*cs.axis_steps_per_mm[Z_AXIS]);
#endif // ENABLE_MESH_BED_LEVELING
  position[E_AXIS] = lround(e*cs.axis_steps_per_mm[E_AXIS]);
   37fbc:	80 91 9e 06 	lds	r24, 0x069E	; 0x80069e <current_position+0xc>
   37fc0:	90 91 9f 06 	lds	r25, 0x069F	; 0x80069f <current_position+0xd>
   37fc4:	a0 91 a0 06 	lds	r26, 0x06A0	; 0x8006a0 <current_position+0xe>
   37fc8:	b0 91 a1 06 	lds	r27, 0x06A1	; 0x8006a1 <current_position+0xf>
   37fcc:	89 87       	std	Y+9, r24	; 0x09
   37fce:	9a 87       	std	Y+10, r25	; 0x0a
   37fd0:	ab 87       	std	Y+11, r26	; 0x0b
   37fd2:	bc 87       	std	Y+12, r27	; 0x0c
   37fd4:	20 91 ce 0d 	lds	r18, 0x0DCE	; 0x800dce <cs+0x10>
   37fd8:	30 91 cf 0d 	lds	r19, 0x0DCF	; 0x800dcf <cs+0x11>
   37fdc:	40 91 d0 0d 	lds	r20, 0x0DD0	; 0x800dd0 <cs+0x12>
   37fe0:	50 91 d1 0d 	lds	r21, 0x0DD1	; 0x800dd1 <cs+0x13>
   37fe4:	bc 01       	movw	r22, r24
   37fe6:	cd 01       	movw	r24, r26
   37fe8:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   37fec:	0f 94 c0 e0 	call	0x3c180	; 0x3c180 <lround>
   37ff0:	60 93 af 06 	sts	0x06AF, r22	; 0x8006af <position+0xc>
   37ff4:	70 93 b0 06 	sts	0x06B0, r23	; 0x8006b0 <position+0xd>
   37ff8:	80 93 b1 06 	sts	0x06B1, r24	; 0x8006b1 <position+0xe>
   37ffc:	90 93 b2 06 	sts	0x06B2, r25	; 0x8006b2 <position+0xf>
  #ifdef LIN_ADVANCE
  position_float[X_AXIS] = x;
   38000:	40 92 cd 04 	sts	0x04CD, r4	; 0x8004cd <position_float>
   38004:	50 92 ce 04 	sts	0x04CE, r5	; 0x8004ce <position_float+0x1>
   38008:	60 92 cf 04 	sts	0x04CF, r6	; 0x8004cf <position_float+0x2>
   3800c:	70 92 d0 04 	sts	0x04D0, r7	; 0x8004d0 <position_float+0x3>
  position_float[Y_AXIS] = y;
   38010:	80 92 d1 04 	sts	0x04D1, r8	; 0x8004d1 <position_float+0x4>
   38014:	90 92 d2 04 	sts	0x04D2, r9	; 0x8004d2 <position_float+0x5>
   38018:	a0 92 d3 04 	sts	0x04D3, r10	; 0x8004d3 <position_float+0x6>
   3801c:	b0 92 d4 04 	sts	0x04D4, r11	; 0x8004d4 <position_float+0x7>
  position_float[Z_AXIS] = z;
   38020:	c0 92 d5 04 	sts	0x04D5, r12	; 0x8004d5 <position_float+0x8>
   38024:	d0 92 d6 04 	sts	0x04D6, r13	; 0x8004d6 <position_float+0x9>
   38028:	e0 92 d7 04 	sts	0x04D7, r14	; 0x8004d7 <position_float+0xa>
   3802c:	f0 92 d8 04 	sts	0x04D8, r15	; 0x8004d8 <position_float+0xb>
  position_float[E_AXIS] = e;
   38030:	89 85       	ldd	r24, Y+9	; 0x09
   38032:	9a 85       	ldd	r25, Y+10	; 0x0a
   38034:	ab 85       	ldd	r26, Y+11	; 0x0b
   38036:	bc 85       	ldd	r27, Y+12	; 0x0c
   38038:	80 93 d9 04 	sts	0x04D9, r24	; 0x8004d9 <position_float+0xc>
   3803c:	90 93 da 04 	sts	0x04DA, r25	; 0x8004da <position_float+0xd>
   38040:	a0 93 db 04 	sts	0x04DB, r26	; 0x8004db <position_float+0xe>
   38044:	b0 93 dc 04 	sts	0x04DC, r27	; 0x8004dc <position_float+0xf>
  #endif
  st_set_position(position);
   38048:	0f 94 2a 88 	call	0x31054	; 0x31054 <st_set_position(long const*) [clone .constprop.151]>
  previous_nominal_speed = 0.0; // Resets planner junction speeds. Assumes start from rest.
   3804c:	10 92 b9 04 	sts	0x04B9, r1	; 0x8004b9 <_ZL22previous_nominal_speed.lto_priv.490>
   38050:	10 92 ba 04 	sts	0x04BA, r1	; 0x8004ba <_ZL22previous_nominal_speed.lto_priv.490+0x1>
   38054:	10 92 bb 04 	sts	0x04BB, r1	; 0x8004bb <_ZL22previous_nominal_speed.lto_priv.490+0x2>
   38058:	10 92 bc 04 	sts	0x04BC, r1	; 0x8004bc <_ZL22previous_nominal_speed.lto_priv.490+0x3>
  memset(previous_speed, 0, sizeof(previous_speed));
   3805c:	ed eb       	ldi	r30, 0xBD	; 189
   3805e:	f4 e0       	ldi	r31, 0x04	; 4
   38060:	80 e1       	ldi	r24, 0x10	; 16
   38062:	df 01       	movw	r26, r30
   38064:	1d 92       	st	X+, r1
   38066:	8a 95       	dec	r24
   38068:	e9 f7       	brne	.-6      	; 0x38064 <plan_set_position_curposXYZE()+0x1d4>
    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feed_rate);
}

void plan_set_position_curposXYZE(){
    plan_set_position(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS]);
}
   3806a:	2c 96       	adiw	r28, 0x0c	; 12
   3806c:	0f b6       	in	r0, 0x3f	; 63
   3806e:	f8 94       	cli
   38070:	de bf       	out	0x3e, r29	; 62
   38072:	0f be       	out	0x3f, r0	; 63
   38074:	cd bf       	out	0x3d, r28	; 61
   38076:	df 91       	pop	r29
   38078:	cf 91       	pop	r28
   3807a:	ff 90       	pop	r15
   3807c:	ef 90       	pop	r14
   3807e:	df 90       	pop	r13
   38080:	cf 90       	pop	r12
   38082:	bf 90       	pop	r11
   38084:	af 90       	pop	r10
   38086:	9f 90       	pop	r9
   38088:	8f 90       	pop	r8
   3808a:	7f 90       	pop	r7
   3808c:	6f 90       	pop	r6
   3808e:	5f 90       	pop	r5
   38090:	4f 90       	pop	r4
   38092:	08 95       	ret
  position[X_AXIS] = lround(x*cs.axis_steps_per_mm[X_AXIS]);
  position[Y_AXIS] = lround(y*cs.axis_steps_per_mm[Y_AXIS]);
#ifdef MESH_BED_LEVELING
  position[Z_AXIS] = mbl.active ?
    lround((z+mbl.get_z(x, y))*cs.axis_steps_per_mm[Z_AXIS]) :
    lround(z*cs.axis_steps_per_mm[Z_AXIS]);
   38094:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   38098:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   3809c:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   380a0:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   380a4:	c7 01       	movw	r24, r14
   380a6:	b6 01       	movw	r22, r12
   380a8:	7d cf       	rjmp	.-262    	; 0x37fa4 <plan_set_position_curposXYZE()+0x114>

000380aa <plan_buffer_line_destinationXYZE(float)>:

void plan_buffer_line_curposXYZE(float feed_rate) {
    plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feed_rate);
}

void plan_buffer_line_destinationXYZE(float feed_rate) {
   380aa:	8f 92       	push	r8
   380ac:	9f 92       	push	r9
   380ae:	af 92       	push	r10
   380b0:	bf 92       	push	r11
   380b2:	cf 92       	push	r12
   380b4:	df 92       	push	r13
   380b6:	ef 92       	push	r14
   380b8:	ff 92       	push	r15
   380ba:	0f 93       	push	r16
   380bc:	1f 93       	push	r17
   380be:	4b 01       	movw	r8, r22
   380c0:	5c 01       	movw	r10, r24
    plan_buffer_line(destination[X_AXIS], destination[Y_AXIS], destination[Z_AXIS], destination[E_AXIS], feed_rate);
   380c2:	e4 e7       	ldi	r30, 0x74	; 116
   380c4:	f6 e0       	ldi	r31, 0x06	; 6
   380c6:	e0 84       	ldd	r14, Z+8	; 0x08
   380c8:	f1 84       	ldd	r15, Z+9	; 0x09
   380ca:	02 85       	ldd	r16, Z+10	; 0x0a
   380cc:	13 85       	ldd	r17, Z+11	; 0x0b
   380ce:	24 81       	ldd	r18, Z+4	; 0x04
   380d0:	35 81       	ldd	r19, Z+5	; 0x05
   380d2:	46 81       	ldd	r20, Z+6	; 0x06
   380d4:	57 81       	ldd	r21, Z+7	; 0x07
   380d6:	60 81       	ld	r22, Z
   380d8:	71 81       	ldd	r23, Z+1	; 0x01
   380da:	82 81       	ldd	r24, Z+2	; 0x02
   380dc:	93 81       	ldd	r25, Z+3	; 0x03
   380de:	1f 92       	push	r1
   380e0:	1f 92       	push	r1
   380e2:	1f 92       	push	r1
   380e4:	1f 92       	push	r1
   380e6:	e0 e8       	ldi	r30, 0x80	; 128
   380e8:	ce 2e       	mov	r12, r30
   380ea:	e6 e0       	ldi	r30, 0x06	; 6
   380ec:	de 2e       	mov	r13, r30
   380ee:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
   380f2:	0f 90       	pop	r0
   380f4:	0f 90       	pop	r0
   380f6:	0f 90       	pop	r0
   380f8:	0f 90       	pop	r0
}
   380fa:	1f 91       	pop	r17
   380fc:	0f 91       	pop	r16
   380fe:	ff 90       	pop	r15
   38100:	ef 90       	pop	r14
   38102:	df 90       	pop	r13
   38104:	cf 90       	pop	r12
   38106:	bf 90       	pop	r11
   38108:	af 90       	pop	r10
   3810a:	9f 90       	pop	r9
   3810c:	8f 90       	pop	r8
   3810e:	08 95       	ret

00038110 <plan_buffer_line_curposXYZE(float)>:
    // Reset position sync requests
    plan_reset_next_e_queue = false;
    plan_reset_next_e_sched = false;
}

void plan_buffer_line_curposXYZE(float feed_rate) {
   38110:	8f 92       	push	r8
   38112:	9f 92       	push	r9
   38114:	af 92       	push	r10
   38116:	bf 92       	push	r11
   38118:	cf 92       	push	r12
   3811a:	df 92       	push	r13
   3811c:	ef 92       	push	r14
   3811e:	ff 92       	push	r15
   38120:	0f 93       	push	r16
   38122:	1f 93       	push	r17
   38124:	4b 01       	movw	r8, r22
   38126:	5c 01       	movw	r10, r24
    plan_buffer_line(current_position[X_AXIS], current_position[Y_AXIS], current_position[Z_AXIS], current_position[E_AXIS], feed_rate);
   38128:	e2 e9       	ldi	r30, 0x92	; 146
   3812a:	f6 e0       	ldi	r31, 0x06	; 6
   3812c:	e0 84       	ldd	r14, Z+8	; 0x08
   3812e:	f1 84       	ldd	r15, Z+9	; 0x09
   38130:	02 85       	ldd	r16, Z+10	; 0x0a
   38132:	13 85       	ldd	r17, Z+11	; 0x0b
   38134:	24 81       	ldd	r18, Z+4	; 0x04
   38136:	35 81       	ldd	r19, Z+5	; 0x05
   38138:	46 81       	ldd	r20, Z+6	; 0x06
   3813a:	57 81       	ldd	r21, Z+7	; 0x07
   3813c:	60 81       	ld	r22, Z
   3813e:	71 81       	ldd	r23, Z+1	; 0x01
   38140:	82 81       	ldd	r24, Z+2	; 0x02
   38142:	93 81       	ldd	r25, Z+3	; 0x03
   38144:	1f 92       	push	r1
   38146:	1f 92       	push	r1
   38148:	1f 92       	push	r1
   3814a:	1f 92       	push	r1
   3814c:	ee e9       	ldi	r30, 0x9E	; 158
   3814e:	ce 2e       	mov	r12, r30
   38150:	e6 e0       	ldi	r30, 0x06	; 6
   38152:	de 2e       	mov	r13, r30
   38154:	0f 94 33 b1 	call	0x36266	; 0x36266 <plan_buffer_line(float, float, float, float const&, float, float const*, unsigned int)>
   38158:	0f 90       	pop	r0
   3815a:	0f 90       	pop	r0
   3815c:	0f 90       	pop	r0
   3815e:	0f 90       	pop	r0
}
   38160:	1f 91       	pop	r17
   38162:	0f 91       	pop	r16
   38164:	ff 90       	pop	r15
   38166:	ef 90       	pop	r14
   38168:	df 90       	pop	r13
   3816a:	cf 90       	pop	r12
   3816c:	bf 90       	pop	r11
   3816e:	af 90       	pop	r10
   38170:	9f 90       	pop	r9
   38172:	8f 90       	pop	r8
   38174:	08 95       	ret

00038176 <planner_reset_position()>:
#endif /* PLANNER_DIAGNOSTICS */

extern volatile uint32_t step_events_completed; // The number of step events executed in the current block

void planner_reset_position()
{
   38176:	4f 92       	push	r4
   38178:	5f 92       	push	r5
   3817a:	6f 92       	push	r6
   3817c:	7f 92       	push	r7
   3817e:	8f 92       	push	r8
   38180:	9f 92       	push	r9
   38182:	af 92       	push	r10
   38184:	bf 92       	push	r11
   38186:	cf 92       	push	r12
   38188:	df 92       	push	r13
   3818a:	ef 92       	push	r14
   3818c:	ff 92       	push	r15
   3818e:	cf 93       	push	r28
    // First update the planner's current position in the physical motor steps.
    position[X_AXIS] = st_get_position(X_AXIS);
   38190:	80 e0       	ldi	r24, 0x00	; 0
   38192:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
   38196:	60 93 a3 06 	sts	0x06A3, r22	; 0x8006a3 <position>
   3819a:	70 93 a4 06 	sts	0x06A4, r23	; 0x8006a4 <position+0x1>
   3819e:	80 93 a5 06 	sts	0x06A5, r24	; 0x8006a5 <position+0x2>
   381a2:	90 93 a6 06 	sts	0x06A6, r25	; 0x8006a6 <position+0x3>
    position[Y_AXIS] = st_get_position(Y_AXIS);
   381a6:	81 e0       	ldi	r24, 0x01	; 1
   381a8:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
   381ac:	60 93 a7 06 	sts	0x06A7, r22	; 0x8006a7 <position+0x4>
   381b0:	70 93 a8 06 	sts	0x06A8, r23	; 0x8006a8 <position+0x5>
   381b4:	80 93 a9 06 	sts	0x06A9, r24	; 0x8006a9 <position+0x6>
   381b8:	90 93 aa 06 	sts	0x06AA, r25	; 0x8006aa <position+0x7>
    position[Z_AXIS] = st_get_position(Z_AXIS);
   381bc:	82 e0       	ldi	r24, 0x02	; 2
   381be:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
   381c2:	60 93 ab 06 	sts	0x06AB, r22	; 0x8006ab <position+0x8>
   381c6:	70 93 ac 06 	sts	0x06AC, r23	; 0x8006ac <position+0x9>
   381ca:	80 93 ad 06 	sts	0x06AD, r24	; 0x8006ad <position+0xa>
   381ce:	90 93 ae 06 	sts	0x06AE, r25	; 0x8006ae <position+0xb>
    position[E_AXIS] = st_get_position(E_AXIS);
   381d2:	83 e0       	ldi	r24, 0x03	; 3
   381d4:	0f 94 d2 43 	call	0x287a4	; 0x287a4 <st_get_position(unsigned char)>
   381d8:	60 93 af 06 	sts	0x06AF, r22	; 0x8006af <position+0xc>
   381dc:	70 93 b0 06 	sts	0x06B0, r23	; 0x8006b0 <position+0xd>
   381e0:	80 93 b1 06 	sts	0x06B1, r24	; 0x8006b1 <position+0xe>
   381e4:	90 93 b2 06 	sts	0x06B2, r25	; 0x8006b2 <position+0xf>

    // Second update the current position of the front end.
    current_position[X_AXIS] = st_get_position_mm(X_AXIS);
   381e8:	80 e0       	ldi	r24, 0x00	; 0
   381ea:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   381ee:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   381f2:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   381f6:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   381fa:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
    current_position[Y_AXIS] = st_get_position_mm(Y_AXIS);
   381fe:	81 e0       	ldi	r24, 0x01	; 1
   38200:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   38204:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   38208:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   3820c:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   38210:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
    current_position[Z_AXIS] = st_get_position_mm(Z_AXIS);
   38214:	82 e0       	ldi	r24, 0x02	; 2
   38216:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   3821a:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   3821e:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   38222:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   38226:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
    current_position[E_AXIS] = st_get_position_mm(E_AXIS);
   3822a:	83 e0       	ldi	r24, 0x03	; 3
   3822c:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   38230:	60 93 9e 06 	sts	0x069E, r22	; 0x80069e <current_position+0xc>
   38234:	70 93 9f 06 	sts	0x069F, r23	; 0x80069f <current_position+0xd>
   38238:	80 93 a0 06 	sts	0x06A0, r24	; 0x8006a0 <current_position+0xe>
   3823c:	90 93 a1 06 	sts	0x06A1, r25	; 0x8006a1 <current_position+0xf>

    // Apply the mesh bed leveling correction to the Z axis.
#ifdef MESH_BED_LEVELING
    if (mbl.active) {
   38240:	80 91 c2 13 	lds	r24, 0x13C2	; 0x8013c2 <mbl>
   38244:	88 23       	and	r24, r24
   38246:	31 f1       	breq	.+76     	; 0x38294 <planner_reset_position()+0x11e>
#if 1
        // Undo the bed level correction so the current Z position is reversible wrt. the machine coordinates.
        // This does not necessary mean that the Z position will be the same as linearly interpolated from the source G-code line.
        current_position[Z_AXIS] -= mbl.get_z(current_position[X_AXIS], current_position[Y_AXIS]);
   38248:	20 91 96 06 	lds	r18, 0x0696	; 0x800696 <current_position+0x4>
   3824c:	30 91 97 06 	lds	r19, 0x0697	; 0x800697 <current_position+0x5>
   38250:	40 91 98 06 	lds	r20, 0x0698	; 0x800698 <current_position+0x6>
   38254:	50 91 99 06 	lds	r21, 0x0699	; 0x800699 <current_position+0x7>
   38258:	60 91 92 06 	lds	r22, 0x0692	; 0x800692 <current_position>
   3825c:	70 91 93 06 	lds	r23, 0x0693	; 0x800693 <current_position+0x1>
   38260:	80 91 94 06 	lds	r24, 0x0694	; 0x800694 <current_position+0x2>
   38264:	90 91 95 06 	lds	r25, 0x0695	; 0x800695 <current_position+0x3>
   38268:	0f 94 f0 a1 	call	0x343e0	; 0x343e0 <mesh_bed_leveling::get_z(float, float) [clone .constprop.351]>
   3826c:	9b 01       	movw	r18, r22
   3826e:	ac 01       	movw	r20, r24
   38270:	60 91 9a 06 	lds	r22, 0x069A	; 0x80069a <current_position+0x8>
   38274:	70 91 9b 06 	lds	r23, 0x069B	; 0x80069b <current_position+0x9>
   38278:	80 91 9c 06 	lds	r24, 0x069C	; 0x80069c <current_position+0xa>
   3827c:	90 91 9d 06 	lds	r25, 0x069D	; 0x80069d <current_position+0xb>
   38280:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   38284:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   38288:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   3828c:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   38290:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
	}
}

inline void machine2world(float &x, float &y)
{
	if (world2machine_correction_mode == WORLD2MACHINE_CORRECTION_NONE) {
   38294:	c0 91 0f 18 	lds	r28, 0x180F	; 0x80180f <world2machine_correction_mode>
   38298:	cc 23       	and	r28, r28
   3829a:	09 f4       	brne	.+2      	; 0x3829e <planner_reset_position()+0x128>
   3829c:	9a c0       	rjmp	.+308    	; 0x383d2 <planner_reset_position()+0x25c>
		// No correction.
	} else {
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SHIFT) {
   3829e:	c0 ff       	sbrs	r28, 0
   382a0:	34 c0       	rjmp	.+104    	; 0x3830a <planner_reset_position()+0x194>
			// Then add the offset.
			x -= world2machine_shift[0];
   382a2:	20 91 07 18 	lds	r18, 0x1807	; 0x801807 <world2machine_shift>
   382a6:	30 91 08 18 	lds	r19, 0x1808	; 0x801808 <world2machine_shift+0x1>
   382aa:	40 91 09 18 	lds	r20, 0x1809	; 0x801809 <world2machine_shift+0x2>
   382ae:	50 91 0a 18 	lds	r21, 0x180A	; 0x80180a <world2machine_shift+0x3>
   382b2:	60 91 92 06 	lds	r22, 0x0692	; 0x800692 <current_position>
   382b6:	70 91 93 06 	lds	r23, 0x0693	; 0x800693 <current_position+0x1>
   382ba:	80 91 94 06 	lds	r24, 0x0694	; 0x800694 <current_position+0x2>
   382be:	90 91 95 06 	lds	r25, 0x0695	; 0x800695 <current_position+0x3>
   382c2:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   382c6:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   382ca:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   382ce:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   382d2:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
			y -= world2machine_shift[1];
   382d6:	20 91 0b 18 	lds	r18, 0x180B	; 0x80180b <world2machine_shift+0x4>
   382da:	30 91 0c 18 	lds	r19, 0x180C	; 0x80180c <world2machine_shift+0x5>
   382de:	40 91 0d 18 	lds	r20, 0x180D	; 0x80180d <world2machine_shift+0x6>
   382e2:	50 91 0e 18 	lds	r21, 0x180E	; 0x80180e <world2machine_shift+0x7>
   382e6:	60 91 96 06 	lds	r22, 0x0696	; 0x800696 <current_position+0x4>
   382ea:	70 91 97 06 	lds	r23, 0x0697	; 0x800697 <current_position+0x5>
   382ee:	80 91 98 06 	lds	r24, 0x0698	; 0x800698 <current_position+0x6>
   382f2:	90 91 99 06 	lds	r25, 0x0699	; 0x800699 <current_position+0x7>
   382f6:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   382fa:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   382fe:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   38302:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   38306:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
		}
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
   3830a:	c1 ff       	sbrs	r28, 1
   3830c:	62 c0       	rjmp	.+196    	; 0x383d2 <planner_reset_position()+0x25c>
			// Firs the skew & rotation correction.
			float out_x = world2machine_rotation_and_skew_inv[0][0] * x + world2machine_rotation_and_skew_inv[0][1] * y;
   3830e:	80 90 92 06 	lds	r8, 0x0692	; 0x800692 <current_position>
   38312:	90 90 93 06 	lds	r9, 0x0693	; 0x800693 <current_position+0x1>
   38316:	a0 90 94 06 	lds	r10, 0x0694	; 0x800694 <current_position+0x2>
   3831a:	b0 90 95 06 	lds	r11, 0x0695	; 0x800695 <current_position+0x3>
   3831e:	c0 90 96 06 	lds	r12, 0x0696	; 0x800696 <current_position+0x4>
   38322:	d0 90 97 06 	lds	r13, 0x0697	; 0x800697 <current_position+0x5>
   38326:	e0 90 98 06 	lds	r14, 0x0698	; 0x800698 <current_position+0x6>
   3832a:	f0 90 99 06 	lds	r15, 0x0699	; 0x800699 <current_position+0x7>
			float out_y = world2machine_rotation_and_skew_inv[1][0] * x + world2machine_rotation_and_skew_inv[1][1] * y;
   3832e:	20 91 ff 17 	lds	r18, 0x17FF	; 0x8017ff <world2machine_rotation_and_skew_inv+0x8>
   38332:	30 91 00 18 	lds	r19, 0x1800	; 0x801800 <world2machine_rotation_and_skew_inv+0x9>
   38336:	40 91 01 18 	lds	r20, 0x1801	; 0x801801 <world2machine_rotation_and_skew_inv+0xa>
   3833a:	50 91 02 18 	lds	r21, 0x1802	; 0x801802 <world2machine_rotation_and_skew_inv+0xb>
   3833e:	c5 01       	movw	r24, r10
   38340:	b4 01       	movw	r22, r8
   38342:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   38346:	2b 01       	movw	r4, r22
   38348:	3c 01       	movw	r6, r24
   3834a:	20 91 03 18 	lds	r18, 0x1803	; 0x801803 <world2machine_rotation_and_skew_inv+0xc>
   3834e:	30 91 04 18 	lds	r19, 0x1804	; 0x801804 <world2machine_rotation_and_skew_inv+0xd>
   38352:	40 91 05 18 	lds	r20, 0x1805	; 0x801805 <world2machine_rotation_and_skew_inv+0xe>
   38356:	50 91 06 18 	lds	r21, 0x1806	; 0x801806 <world2machine_rotation_and_skew_inv+0xf>
   3835a:	c7 01       	movw	r24, r14
   3835c:	b6 01       	movw	r22, r12
   3835e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   38362:	9b 01       	movw	r18, r22
   38364:	ac 01       	movw	r20, r24
   38366:	c3 01       	movw	r24, r6
   38368:	b2 01       	movw	r22, r4
   3836a:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3836e:	2b 01       	movw	r4, r22
   38370:	3c 01       	movw	r6, r24
			x -= world2machine_shift[0];
			y -= world2machine_shift[1];
		}
		if (world2machine_correction_mode & WORLD2MACHINE_CORRECTION_SKEW) {
			// Firs the skew & rotation correction.
			float out_x = world2machine_rotation_and_skew_inv[0][0] * x + world2machine_rotation_and_skew_inv[0][1] * y;
   38372:	20 91 f7 17 	lds	r18, 0x17F7	; 0x8017f7 <world2machine_rotation_and_skew_inv>
   38376:	30 91 f8 17 	lds	r19, 0x17F8	; 0x8017f8 <world2machine_rotation_and_skew_inv+0x1>
   3837a:	40 91 f9 17 	lds	r20, 0x17F9	; 0x8017f9 <world2machine_rotation_and_skew_inv+0x2>
   3837e:	50 91 fa 17 	lds	r21, 0x17FA	; 0x8017fa <world2machine_rotation_and_skew_inv+0x3>
   38382:	c5 01       	movw	r24, r10
   38384:	b4 01       	movw	r22, r8
   38386:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3838a:	4b 01       	movw	r8, r22
   3838c:	5c 01       	movw	r10, r24
   3838e:	20 91 fb 17 	lds	r18, 0x17FB	; 0x8017fb <world2machine_rotation_and_skew_inv+0x4>
   38392:	30 91 fc 17 	lds	r19, 0x17FC	; 0x8017fc <world2machine_rotation_and_skew_inv+0x5>
   38396:	40 91 fd 17 	lds	r20, 0x17FD	; 0x8017fd <world2machine_rotation_and_skew_inv+0x6>
   3839a:	50 91 fe 17 	lds	r21, 0x17FE	; 0x8017fe <world2machine_rotation_and_skew_inv+0x7>
   3839e:	c7 01       	movw	r24, r14
   383a0:	b6 01       	movw	r22, r12
   383a2:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   383a6:	9b 01       	movw	r18, r22
   383a8:	ac 01       	movw	r20, r24
   383aa:	c5 01       	movw	r24, r10
   383ac:	b4 01       	movw	r22, r8
   383ae:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
			float out_y = world2machine_rotation_and_skew_inv[1][0] * x + world2machine_rotation_and_skew_inv[1][1] * y;
			x = out_x;
   383b2:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   383b6:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   383ba:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   383be:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
			y = out_y;
   383c2:	40 92 96 06 	sts	0x0696, r4	; 0x800696 <current_position+0x4>
   383c6:	50 92 97 06 	sts	0x0697, r5	; 0x800697 <current_position+0x5>
   383ca:	60 92 98 06 	sts	0x0698, r6	; 0x800698 <current_position+0x6>
   383ce:	70 92 99 06 	sts	0x0699, r7	; 0x800699 <current_position+0x7>
    }
#endif

    // Apply inverse world correction matrix.
    machine2world(current_position[X_AXIS], current_position[Y_AXIS]);
    set_destination_to_current();
   383d2:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
#ifdef LIN_ADVANCE
    memcpy(position_float, current_position, sizeof(position_float));
   383d6:	80 e1       	ldi	r24, 0x10	; 16
   383d8:	e2 e9       	ldi	r30, 0x92	; 146
   383da:	f6 e0       	ldi	r31, 0x06	; 6
   383dc:	ad ec       	ldi	r26, 0xCD	; 205
   383de:	b4 e0       	ldi	r27, 0x04	; 4
   383e0:	01 90       	ld	r0, Z+
   383e2:	0d 92       	st	X+, r0
   383e4:	8a 95       	dec	r24
   383e6:	e1 f7       	brne	.-8      	; 0x383e0 <planner_reset_position()+0x26a>
#endif
}
   383e8:	cf 91       	pop	r28
   383ea:	ff 90       	pop	r15
   383ec:	ef 90       	pop	r14
   383ee:	df 90       	pop	r13
   383f0:	cf 90       	pop	r12
   383f2:	bf 90       	pop	r11
   383f4:	af 90       	pop	r10
   383f6:	9f 90       	pop	r9
   383f8:	8f 90       	pop	r8
   383fa:	7f 90       	pop	r7
   383fc:	6f 90       	pop	r6
   383fe:	5f 90       	pop	r5
   38400:	4f 90       	pop	r4
   38402:	08 95       	ret

00038404 <planner_abort_hard()>:

void planner_abort_hard()
{
    // Abort the stepper routine and flush the planner queue.
    DISABLE_STEPPER_DRIVER_INTERRUPT();
   38404:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   38408:	8d 7f       	andi	r24, 0xFD	; 253
   3840a:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>

    // Now the front-end (the Marlin_main.cpp with its current_position) is out of sync.
    planner_reset_position();
   3840e:	0f 94 bb c0 	call	0x38176	; 0x38176 <planner_reset_position()>

    // Relay to planner wait routine that the current line shall be canceled.
    planner_aborted = true;
   38412:	81 e0       	ldi	r24, 0x01	; 1
   38414:	80 93 ac 0d 	sts	0x0DAC, r24	; 0x800dac <planner_aborted>
}


void quickStop()
{
  DISABLE_STEPPER_DRIVER_INTERRUPT();
   38418:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   3841c:	8d 7f       	andi	r24, 0xFD	; 253
   3841e:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
  return(block);
}

// Returns true if the buffer has a queued block, false otherwise
FORCE_INLINE bool blocks_queued() {
	return (block_buffer_head != block_buffer_tail);
   38422:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   38426:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
  while (blocks_queued()) plan_discard_current_block();
   3842a:	98 17       	cp	r25, r24
   3842c:	69 f0       	breq	.+26     	; 0x38448 <planner_abort_hard()+0x44>
extern volatile uint8_t block_buffer_tail;
// Called when the current block is no longer needed. Discards the block and makes the memory
// available for new blocks.
FORCE_INLINE void plan_discard_current_block()
{
  if (block_buffer_head != block_buffer_tail) {
   3842e:	90 91 a5 0d 	lds	r25, 0x0DA5	; 0x800da5 <block_buffer_head>
   38432:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   38436:	98 17       	cp	r25, r24
   38438:	a1 f3       	breq	.-24     	; 0x38422 <planner_abort_hard()+0x1e>
    block_buffer_tail = (block_buffer_tail + 1) & (BLOCK_BUFFER_SIZE - 1);
   3843a:	80 91 a6 0d 	lds	r24, 0x0DA6	; 0x800da6 <block_buffer_tail>
   3843e:	8f 5f       	subi	r24, 0xFF	; 255
   38440:	8f 70       	andi	r24, 0x0F	; 15
   38442:	80 93 a6 0d 	sts	0x0DA6, r24	; 0x800da6 <block_buffer_tail>
   38446:	ed cf       	rjmp	.-38     	; 0x38422 <planner_abort_hard()+0x1e>
  current_block = NULL;
   38448:	10 92 a2 05 	sts	0x05A2, r1	; 0x8005a2 <current_block+0x1>
   3844c:	10 92 a1 05 	sts	0x05A1, r1	; 0x8005a1 <current_block>
#ifdef LIN_ADVANCE
  nextAdvanceISR = ADV_NEVER;
   38450:	8f ef       	ldi	r24, 0xFF	; 255
   38452:	9f ef       	ldi	r25, 0xFF	; 255
   38454:	90 93 e4 04 	sts	0x04E4, r25	; 0x8004e4 <_ZL14nextAdvanceISR.lto_priv.479+0x1>
   38458:	80 93 e3 04 	sts	0x04E3, r24	; 0x8004e3 <_ZL14nextAdvanceISR.lto_priv.479>
  current_adv_steps = 0;
   3845c:	10 92 e0 04 	sts	0x04E0, r1	; 0x8004e0 <_ZL17current_adv_steps.lto_priv.481+0x1>
   38460:	10 92 df 04 	sts	0x04DF, r1	; 0x8004df <_ZL17current_adv_steps.lto_priv.481>
#endif
  st_reset_timer();
   38464:	0f 94 4e 44 	call	0x2889c	; 0x2889c <st_reset_timer()>
  ENABLE_STEPPER_DRIVER_INTERRUPT();
   38468:	80 91 6f 00 	lds	r24, 0x006F	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>
   3846c:	82 60       	ori	r24, 0x02	; 2
   3846e:	80 93 6f 00 	sts	0x006F, r24	; 0x80006f <__TEXT_REGION_LENGTH__+0x7c206f>

    // Clear the planner queue, reset and re-enable the stepper timer.
    quickStop();

    // Resets planner junction speeds. Assumes start from rest.
    previous_nominal_speed = 0.0;
   38472:	10 92 b9 04 	sts	0x04B9, r1	; 0x8004b9 <_ZL22previous_nominal_speed.lto_priv.490>
   38476:	10 92 ba 04 	sts	0x04BA, r1	; 0x8004ba <_ZL22previous_nominal_speed.lto_priv.490+0x1>
   3847a:	10 92 bb 04 	sts	0x04BB, r1	; 0x8004bb <_ZL22previous_nominal_speed.lto_priv.490+0x2>
   3847e:	10 92 bc 04 	sts	0x04BC, r1	; 0x8004bc <_ZL22previous_nominal_speed.lto_priv.490+0x3>
    memset(previous_speed, 0, sizeof(previous_speed));
   38482:	ed eb       	ldi	r30, 0xBD	; 189
   38484:	f4 e0       	ldi	r31, 0x04	; 4
   38486:	80 e1       	ldi	r24, 0x10	; 16
   38488:	df 01       	movw	r26, r30
   3848a:	1d 92       	st	X+, r1
   3848c:	8a 95       	dec	r24
   3848e:	e9 f7       	brne	.-6      	; 0x3848a <planner_abort_hard()+0x86>

    // Reset position sync requests
    plan_reset_next_e_queue = false;
   38490:	10 92 b8 04 	sts	0x04B8, r1	; 0x8004b8 <_ZL23plan_reset_next_e_queue.lto_priv.488>
    plan_reset_next_e_sched = false;
   38494:	10 92 b7 04 	sts	0x04B7, r1	; 0x8004b7 <_ZL23plan_reset_next_e_sched.lto_priv.489>
}
   38498:	08 95       	ret

0003849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>:
    pat9125_PID2 = 0xff;
    return 0;
}

static void pat9125_wr_reg(uint8_t addr, uint8_t data)
{
   3849a:	cf 93       	push	r28
   3849c:	c6 2f       	mov	r28, r22
}


uint8_t twi_w8(uint8_t address, uint8_t reg, uint8_t data)
{
  if(twi_start(address, reg))
   3849e:	0f 94 05 7c 	call	0x2f80a	; 0x2f80a <twi_start(unsigned char, unsigned char) [clone .constprop.239]>
   384a2:	81 11       	cpse	r24, r1
   384a4:	0f c0       	rjmp	.+30     	; 0x384c4 <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]+0x2a>
      return 1;

  // send data
  TWDR = data;
   384a6:	c0 93 bb 00 	sts	0x00BB, r28	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
  TWCR = _BV(TWEN) | _BV(TWINT);
   384aa:	84 e8       	ldi	r24, 0x84	; 132
   384ac:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_MT_DATA_ACK))
   384b0:	88 e2       	ldi	r24, 0x28	; 40
   384b2:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   384b6:	81 11       	cpse	r24, r1
   384b8:	05 c0       	rjmp	.+10     	; 0x384c4 <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]+0x2a>
}


static void twi_stop()
{
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTO);
   384ba:	84 e9       	ldi	r24, 0x94	; 148
   384bc:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>

 error:
    pat9125_PID1 = 0xff;
    pat9125_PID2 = 0xff;
    return;
}
   384c0:	cf 91       	pop	r28
   384c2:	08 95       	ret
        goto error;
#endif
    return;

 error:
    pat9125_PID1 = 0xff;
   384c4:	8f ef       	ldi	r24, 0xFF	; 255
   384c6:	80 93 bd 0d 	sts	0x0DBD, r24	; 0x800dbd <pat9125_PID1>
    pat9125_PID2 = 0xff;
   384ca:	80 93 bc 0d 	sts	0x0DBC, r24	; 0x800dbc <pat9125_PID2>
   384ce:	f8 cf       	rjmp	.-16     	; 0x384c0 <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]+0x26>

000384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>:
	}
	return 0;
}

static uint8_t pat9125_rd_reg(uint8_t addr)
{
   384d0:	cf 93       	push	r28
}


uint8_t twi_r8(uint8_t address, uint8_t reg, uint8_t* data)
{
  if(twi_start(address, reg))
   384d2:	0f 94 05 7c 	call	0x2f80a	; 0x2f80a <twi_start(unsigned char, unsigned char) [clone .constprop.239]>
   384d6:	81 11       	cpse	r24, r1
   384d8:	21 c0       	rjmp	.+66     	; 0x3851c <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]+0x4c>
      return 1;

  // repeat start
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTA);
   384da:	84 ea       	ldi	r24, 0xA4	; 164
   384dc:	80 93 bc 00 	sts	0x00BC, r24	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_REP_START))
   384e0:	80 e1       	ldi	r24, 0x10	; 16
   384e2:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   384e6:	81 11       	cpse	r24, r1
   384e8:	19 c0       	rjmp	.+50     	; 0x3851c <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]+0x4c>
      return 2;

  // start receiving
  TWDR = TW_READ | (address << 1);
   384ea:	8b ee       	ldi	r24, 0xEB	; 235
   384ec:	80 93 bb 00 	sts	0x00BB, r24	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
  TWCR = _BV(TWEN) | _BV(TWINT);
   384f0:	c4 e8       	ldi	r28, 0x84	; 132
   384f2:	c0 93 bc 00 	sts	0x00BC, r28	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_MR_SLA_ACK))
   384f6:	80 e4       	ldi	r24, 0x40	; 64
   384f8:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   384fc:	81 11       	cpse	r24, r1
   384fe:	0e c0       	rjmp	.+28     	; 0x3851c <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]+0x4c>
      return 3;

  // receive data
  TWCR = _BV(TWEN) | _BV(TWINT);
   38500:	c0 93 bc 00 	sts	0x00BC, r28	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>
  if(twi_wait(TW_MR_DATA_NACK))
   38504:	88 e5       	ldi	r24, 0x58	; 88
   38506:	0f 94 c5 2a 	call	0x2558a	; 0x2558a <twi_wait(unsigned char) [clone .lto_priv.378]>
   3850a:	81 11       	cpse	r24, r1
   3850c:	07 c0       	rjmp	.+14     	; 0x3851c <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]+0x4c>
      return 4;

  *data = TWDR;
   3850e:	80 91 bb 00 	lds	r24, 0x00BB	; 0x8000bb <__TEXT_REGION_LENGTH__+0x7c20bb>
}


static void twi_stop()
{
  TWCR = _BV(TWEN) | _BV(TWINT) | _BV(TWSTO);
   38512:	94 e9       	ldi	r25, 0x94	; 148
   38514:	90 93 bc 00 	sts	0x00BC, r25	; 0x8000bc <__TEXT_REGION_LENGTH__+0x7c20bc>

 error:
    pat9125_PID1 = 0xff;
    pat9125_PID2 = 0xff;
    return 0;
}
   38518:	cf 91       	pop	r28
   3851a:	08 95       	ret
        goto error;
#endif
	return data;

 error:
    pat9125_PID1 = 0xff;
   3851c:	8f ef       	ldi	r24, 0xFF	; 255
   3851e:	80 93 bd 0d 	sts	0x0DBD, r24	; 0x800dbd <pat9125_PID1>
    pat9125_PID2 = 0xff;
   38522:	80 93 bc 0d 	sts	0x0DBC, r24	; 0x800dbc <pat9125_PID2>
    return 0;
   38526:	80 e0       	ldi	r24, 0x00	; 0
   38528:	f7 cf       	rjmp	.-18     	; 0x38518 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]+0x48>

0003852a <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]>:
	pat9125_wr_reg(addr, data);
	return pat9125_rd_reg(addr) == data;
}

static uint8_t pat9125_wr_seq(const uint8_t* seq)
{
   3852a:	0f 93       	push	r16
   3852c:	1f 93       	push	r17
   3852e:	cf 93       	push	r28
   38530:	df 93       	push	r29
   38532:	8c 01       	movw	r16, r24
	for (;;) {
		const uint8_t addr = pgm_read_byte(seq++);
   38534:	f8 01       	movw	r30, r16
   38536:	d4 91       	lpm	r29, Z
		if (addr == 0xff)
   38538:	df 3f       	cpi	r29, 0xFF	; 255
   3853a:	99 f0       	breq	.+38     	; 0x38562 <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]+0x38>
			break;
		if (!pat9125_wr_reg_verify(addr, pgm_read_byte(seq++)))
   3853c:	31 96       	adiw	r30, 0x01	; 1
   3853e:	c4 91       	lpm	r28, Z
    return;
}

static uint8_t pat9125_wr_reg_verify(uint8_t addr, uint8_t data)
{
	pat9125_wr_reg(addr, data);
   38540:	6c 2f       	mov	r22, r28
   38542:	8d 2f       	mov	r24, r29
   38544:	0f 94 4d c2 	call	0x3849a	; 0x3849a <pat9125_wr_reg(unsigned char, unsigned char) [clone .lto_priv.380]>
	return pat9125_rd_reg(addr) == data;
   38548:	8d 2f       	mov	r24, r29
   3854a:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
{
	for (;;) {
		const uint8_t addr = pgm_read_byte(seq++);
		if (addr == 0xff)
			break;
		if (!pat9125_wr_reg_verify(addr, pgm_read_byte(seq++)))
   3854e:	0e 5f       	subi	r16, 0xFE	; 254
   38550:	1f 4f       	sbci	r17, 0xFF	; 255
   38552:	c8 17       	cp	r28, r24
   38554:	79 f3       	breq	.-34     	; 0x38534 <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]+0xa>
			// Verification of the register write failed.
			return 0;
   38556:	80 e0       	ldi	r24, 0x00	; 0
	}
	return 1;
}
   38558:	df 91       	pop	r29
   3855a:	cf 91       	pop	r28
   3855c:	1f 91       	pop	r17
   3855e:	0f 91       	pop	r16
   38560:	08 95       	ret
			break;
		if (!pat9125_wr_reg_verify(addr, pgm_read_byte(seq++)))
			// Verification of the register write failed.
			return 0;
	}
	return 1;
   38562:	81 e0       	ldi	r24, 0x01	; 1
   38564:	f9 cf       	rjmp	.-14     	; 0x38558 <pat9125_wr_seq(unsigned char const*) [clone .lto_priv.381]+0x2e>

00038566 <pat9125_update()>:

	return 1;
}

uint8_t pat9125_update(void)
{
   38566:	cf 93       	push	r28
   38568:	df 93       	push	r29
	if ((pat9125_PID1 == 0x31) && (pat9125_PID2 == 0x91))
   3856a:	80 91 bd 0d 	lds	r24, 0x0DBD	; 0x800dbd <pat9125_PID1>
   3856e:	81 33       	cpi	r24, 0x31	; 49
   38570:	21 f0       	breq	.+8      	; 0x3857a <pat9125_update()+0x14>
			pat9125_x += iDX;
			pat9125_y += iDY;
		}
		return 1;
	}
	return 0;
   38572:	80 e0       	ldi	r24, 0x00	; 0
}
   38574:	df 91       	pop	r29
   38576:	cf 91       	pop	r28
   38578:	08 95       	ret
	return 1;
}

uint8_t pat9125_update(void)
{
	if ((pat9125_PID1 == 0x31) && (pat9125_PID2 == 0x91))
   3857a:	80 91 bc 0d 	lds	r24, 0x0DBC	; 0x800dbc <pat9125_PID2>
   3857e:	81 39       	cpi	r24, 0x91	; 145
   38580:	c1 f7       	brne	.-16     	; 0x38572 <pat9125_update()+0xc>
	{
		uint8_t ucMotion = pat9125_rd_reg(PAT9125_MOTION);
   38582:	82 e0       	ldi	r24, 0x02	; 2
   38584:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   38588:	c8 2f       	mov	r28, r24
		pat9125_b = pat9125_rd_reg(PAT9125_FRAME);
   3858a:	87 e1       	ldi	r24, 0x17	; 23
   3858c:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   38590:	80 93 ba 0d 	sts	0x0DBA, r24	; 0x800dba <pat9125_b>
		pat9125_s = pat9125_rd_reg(PAT9125_SHUTTER);
   38594:	84 e1       	ldi	r24, 0x14	; 20
   38596:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   3859a:	80 93 bb 0d 	sts	0x0DBB, r24	; 0x800dbb <pat9125_s>
		if (pat9125_PID1 == 0xff) return 0;
   3859e:	80 91 bd 0d 	lds	r24, 0x0DBD	; 0x800dbd <pat9125_PID1>
   385a2:	8f 3f       	cpi	r24, 0xFF	; 255
   385a4:	31 f3       	breq	.-52     	; 0x38572 <pat9125_update()+0xc>
		if (ucMotion & 0x80)
   385a6:	c7 ff       	sbrs	r28, 7
   385a8:	36 c0       	rjmp	.+108    	; 0x38616 <pat9125_update()+0xb0>
		{
			uint16_t ucXL = pat9125_rd_reg(PAT9125_DELTA_XL);
   385aa:	83 e0       	ldi	r24, 0x03	; 3
   385ac:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   385b0:	d8 2f       	mov	r29, r24
			uint16_t ucYL = pat9125_rd_reg(PAT9125_DELTA_YL);
   385b2:	84 e0       	ldi	r24, 0x04	; 4
   385b4:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
   385b8:	c8 2f       	mov	r28, r24
			uint16_t ucXYH = pat9125_rd_reg(PAT9125_DELTA_XYH);
   385ba:	82 e1       	ldi	r24, 0x12	; 18
   385bc:	0f 94 68 c2 	call	0x384d0	; 0x384d0 <pat9125_rd_reg(unsigned char) [clone .lto_priv.379]>
			if (pat9125_PID1 == 0xff) return 0;
   385c0:	90 91 bd 0d 	lds	r25, 0x0DBD	; 0x800dbd <pat9125_PID1>
   385c4:	9f 3f       	cpi	r25, 0xFF	; 255
   385c6:	a9 f2       	breq	.-86     	; 0x38572 <pat9125_update()+0xc>
		if (pat9125_PID1 == 0xff) return 0;
		if (ucMotion & 0x80)
		{
			uint16_t ucXL = pat9125_rd_reg(PAT9125_DELTA_XL);
			uint16_t ucYL = pat9125_rd_reg(PAT9125_DELTA_YL);
			uint16_t ucXYH = pat9125_rd_reg(PAT9125_DELTA_XYH);
   385c8:	90 e0       	ldi	r25, 0x00	; 0
			if (pat9125_PID1 == 0xff) return 0;
			int16_t iDX = ucXL | ((ucXYH << 4) & 0xf00);
   385ca:	9c 01       	movw	r18, r24
   385cc:	44 e0       	ldi	r20, 0x04	; 4
   385ce:	22 0f       	add	r18, r18
   385d0:	33 1f       	adc	r19, r19
   385d2:	4a 95       	dec	r20
   385d4:	e1 f7       	brne	.-8      	; 0x385ce <pat9125_update()+0x68>
   385d6:	22 27       	eor	r18, r18
   385d8:	3f 70       	andi	r19, 0x0F	; 15
   385da:	2d 2b       	or	r18, r29
			int16_t iDY = ucYL | ((ucXYH << 8) & 0xf00);
   385dc:	98 2f       	mov	r25, r24
   385de:	88 27       	eor	r24, r24
   385e0:	88 27       	eor	r24, r24
   385e2:	9f 70       	andi	r25, 0x0F	; 15
   385e4:	8c 2b       	or	r24, r28
			if (iDX & 0x800) iDX -= 4096;
   385e6:	33 fd       	sbrc	r19, 3
   385e8:	30 51       	subi	r19, 0x10	; 16
			if (iDY & 0x800) iDY -= 4096;
   385ea:	93 fd       	sbrc	r25, 3
   385ec:	90 51       	subi	r25, 0x10	; 16
			pat9125_x += iDX;
   385ee:	40 91 97 03 	lds	r20, 0x0397	; 0x800397 <pat9125_x>
   385f2:	50 91 98 03 	lds	r21, 0x0398	; 0x800398 <pat9125_x+0x1>
   385f6:	24 0f       	add	r18, r20
   385f8:	35 1f       	adc	r19, r21
   385fa:	30 93 98 03 	sts	0x0398, r19	; 0x800398 <pat9125_x+0x1>
   385fe:	20 93 97 03 	sts	0x0397, r18	; 0x800397 <pat9125_x>
			pat9125_y += iDY;
   38602:	20 91 8f 0e 	lds	r18, 0x0E8F	; 0x800e8f <pat9125_y>
   38606:	30 91 90 0e 	lds	r19, 0x0E90	; 0x800e90 <pat9125_y+0x1>
   3860a:	82 0f       	add	r24, r18
   3860c:	93 1f       	adc	r25, r19
   3860e:	90 93 90 0e 	sts	0x0E90, r25	; 0x800e90 <pat9125_y+0x1>
   38612:	80 93 8f 0e 	sts	0x0E8F, r24	; 0x800e8f <pat9125_y>
		}
		return 1;
   38616:	81 e0       	ldi	r24, 0x01	; 1
   38618:	ad cf       	rjmp	.-166    	; 0x38574 <pat9125_update()+0xe>

0003861a <spi_init.lto_priv.427>:
extern "C" {
#endif //defined(__cplusplus)

static inline void spi_init()
{
	DDRB &= ~((1 << DD_SCK) | (1 << DD_MOSI) | (1 << DD_MISO));
   3861a:	84 b1       	in	r24, 0x04	; 4
   3861c:	81 7f       	andi	r24, 0xF1	; 241
   3861e:	84 b9       	out	0x04, r24	; 4
	DDRB |= (1 << DD_SS) | (1 << DD_SCK) | (1 << DD_MOSI);
   38620:	84 b1       	in	r24, 0x04	; 4
   38622:	87 60       	ori	r24, 0x07	; 7
   38624:	84 b9       	out	0x04, r24	; 4
	PORTB &= ~((1 << DD_SCK) | (1 << DD_MOSI) | (1 << DD_MISO));
   38626:	85 b1       	in	r24, 0x05	; 5
   38628:	81 7f       	andi	r24, 0xF1	; 241
   3862a:	85 b9       	out	0x05, r24	; 5
	PORTB |= (1 << DD_SS);
   3862c:	28 9a       	sbi	0x05, 0	; 5
	SPCR = SPI_SPCR(0, 0, 0, 1, 0); //SPE=1, MSTR=1 (0x50)
   3862e:	80 e5       	ldi	r24, 0x50	; 80
   38630:	8c bd       	out	0x2c, r24	; 44
	SPSR = 0x00;
   38632:	1d bc       	out	0x2d, r1	; 45
}
   38634:	08 95       	ret

00038636 <optiboot_xflash_enter()>:

//! @brief Enter an STK500 compatible Optiboot boot loader waiting for flashing the languages to an external flash memory.
//! @return 1 if "start\n" was not sent. Optiboot was skipped
//! @return 0 if "start\n" was sent. Optiboot ran normally. No need to send "start\n" in setup()
uint8_t optiboot_xflash_enter()
{
   38636:	2f 92       	push	r2
   38638:	3f 92       	push	r3
   3863a:	4f 92       	push	r4
   3863c:	5f 92       	push	r5
   3863e:	6f 92       	push	r6
   38640:	7f 92       	push	r7
   38642:	8f 92       	push	r8
   38644:	9f 92       	push	r9
   38646:	af 92       	push	r10
   38648:	bf 92       	push	r11
   3864a:	cf 92       	push	r12
   3864c:	df 92       	push	r13
   3864e:	ef 92       	push	r14
   38650:	ff 92       	push	r15
   38652:	0f 93       	push	r16
   38654:	1f 93       	push	r17
   38656:	cf 93       	push	r28
   38658:	df 93       	push	r29
   3865a:	cd b7       	in	r28, 0x3d	; 61
   3865c:	de b7       	in	r29, 0x3e	; 62
   3865e:	c6 50       	subi	r28, 0x06	; 6
   38660:	d1 40       	sbci	r29, 0x01	; 1
   38662:	0f b6       	in	r0, 0x3f	; 63
   38664:	f8 94       	cli
   38666:	de bf       	out	0x3e, r29	; 62
   38668:	0f be       	out	0x3f, r0	; 63
   3866a:	cd bf       	out	0x3d, r28	; 61
// Make sure to check boot_app_magic as well. Since these bootapp flags are located right in the middle of the stack,
// they can be unintentionally changed. As a workaround to the language upload problem, do not only check for one bit if it's set,
// but rather test 33 bits for the correct value before exiting optiboot early.
  if ((boot_app_magic == BOOT_APP_MAGIC) && (boot_app_flags & BOOT_APP_FLG_USER0)) return 1;
   3866c:	80 91 fc 1f 	lds	r24, 0x1FFC	; 0x801ffc <__bss_end+0x7dc>
   38670:	90 91 fd 1f 	lds	r25, 0x1FFD	; 0x801ffd <__bss_end+0x7dd>
   38674:	a0 91 fe 1f 	lds	r26, 0x1FFE	; 0x801ffe <__bss_end+0x7de>
   38678:	b0 91 ff 1f 	lds	r27, 0x1FFF	; 0x801fff <__bss_end+0x7df>
   3867c:	8a 3a       	cpi	r24, 0xAA	; 170
   3867e:	95 45       	sbci	r25, 0x55	; 85
   38680:	aa 4a       	sbci	r26, 0xAA	; 170
   38682:	b5 45       	sbci	r27, 0x55	; 85
   38684:	21 f4       	brne	.+8      	; 0x3868e <optiboot_xflash_enter()+0x58>
   38686:	80 91 fb 1f 	lds	r24, 0x1FFB	; 0x801ffb <__bss_end+0x7db>
   3868a:	87 fd       	sbrc	r24, 7
   3868c:	c2 c1       	rjmp	.+900    	; 0x38a12 <optiboot_xflash_enter()+0x3dc>
  uint8_t pages_erased = 0;

  // Handshake sequence: Initialize the serial line, flush serial line, send magic, receive magic.
  // If the magic is not received on time, or it is not received correctly, continue to the application.
  {
    wdt_reset();
   3868e:	a8 95       	wdr
    const char    *ptr = entry_magic_send;
    const char    *end = strlen_P(entry_magic_send) + ptr;
    const uint8_t selectedSerialPort_bak = selectedSerialPort;
   38690:	d0 90 39 05 	lds	r13, 0x0539	; 0x800539 <selectedSerialPort>
    // Flush the serial line.
    while (RECV_READY) {
   38694:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   38698:	87 ff       	sbrs	r24, 7
   3869a:	04 c0       	rjmp	.+8      	; 0x386a4 <optiboot_xflash_enter()+0x6e>
      wdt_reset();
   3869c:	a8 95       	wdr
      // Dummy register read (discard)
      (void)(*(char *)UDR0);
   3869e:	80 91 c6 00 	lds	r24, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
   386a2:	f8 cf       	rjmp	.-16     	; 0x38694 <optiboot_xflash_enter()+0x5e>
    }
    selectedSerialPort = 0; //switch to Serial0
   386a4:	10 92 39 05 	sts	0x0539, r1	; 0x800539 <selectedSerialPort>
  // don't reverse this or there may be problems if the RX interrupt
  // occurs after reading the value of rx_buffer_head but before writing
  // the value to rx_buffer_tail; the previous value of rx_buffer_head
  // may be written to rx_buffer_tail, making it appear as if the buffer
  // were full, not empty.
  rx_buffer.head = rx_buffer.tail;
   386a8:	00 91 9b 04 	lds	r16, 0x049B	; 0x80049b <rx_buffer+0x82>
   386ac:	10 91 9c 04 	lds	r17, 0x049C	; 0x80049c <rx_buffer+0x83>
   386b0:	10 93 9a 04 	sts	0x049A, r17	; 0x80049a <rx_buffer+0x81>
   386b4:	00 93 99 04 	sts	0x0499, r16	; 0x800499 <rx_buffer+0x80>
   386b8:	5f e6       	ldi	r21, 0x6F	; 111
   386ba:	e5 2e       	mov	r14, r21
   386bc:	5c ea       	ldi	r21, 0xAC	; 172
   386be:	f5 2e       	mov	r15, r21
   386c0:	65 e7       	ldi	r22, 0x75	; 117
   386c2:	a6 2e       	mov	r10, r22
   386c4:	6c ea       	ldi	r22, 0xAC	; 172
   386c6:	b6 2e       	mov	r11, r22
    MYSERIAL.flush(); //clear RX buffer
    int SerialHead = rx_buffer.head;
    // Send the initial magic string.
    while (ptr != end)
      putch(pgm_read_byte(ptr ++));
   386c8:	f7 01       	movw	r30, r14
   386ca:	84 91       	lpm	r24, Z
   386cc:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
   386d0:	ff ef       	ldi	r31, 0xFF	; 255
   386d2:	ef 1a       	sub	r14, r31
   386d4:	ff 0a       	sbc	r15, r31
    }
    selectedSerialPort = 0; //switch to Serial0
    MYSERIAL.flush(); //clear RX buffer
    int SerialHead = rx_buffer.head;
    // Send the initial magic string.
    while (ptr != end)
   386d6:	ae 14       	cp	r10, r14
   386d8:	bf 04       	cpc	r11, r15
   386da:	b1 f7       	brne	.-20     	; 0x386c8 <optiboot_xflash_enter()+0x92>
      putch(pgm_read_byte(ptr ++));
    wdt_reset();
   386dc:	a8 95       	wdr
   386de:	8f e0       	ldi	r24, 0x0F	; 15
   386e0:	90 e0       	ldi	r25, 0x00	; 0
          return 0;
        }
      }
      ch = rx_buffer.buffer[SerialHead];
      SerialHead = (unsigned int)(SerialHead + 1) % RX_BUFFER_SIZE;
      if (pgm_read_byte(ptr ++) != ch)
   386e2:	2e e6       	ldi	r18, 0x6E	; 110
   386e4:	3c ea       	ldi	r19, 0xAC	; 172
    MYSERIAL.flush(); //clear RX buffer
    int SerialHead = rx_buffer.head;
    // Send the initial magic string.
    while (ptr != end)
      putch(pgm_read_byte(ptr ++));
    wdt_reset();
   386e6:	40 e8       	ldi	r20, 0x80	; 128
   386e8:	54 e8       	ldi	r21, 0x84	; 132
   386ea:	6e e1       	ldi	r22, 0x1E	; 30
   386ec:	70 e0       	ldi	r23, 0x00	; 0
      // thus the compiler is allowed to remove the check from the cycle
      // i.e. rx_buffer.head == SerialHead would not be checked at all!
      // With the volatile keyword the compiler generates exactly the same code as without it with only one difference:
      // the last brne instruction jumps onto the (*rx_head == SerialHead) check and NOT onto the wdr instruction bypassing the check.
      volatile int *rx_head = &rx_buffer.head;
      while (*rx_head == SerialHead) {
   386ee:	e0 91 99 04 	lds	r30, 0x0499	; 0x800499 <rx_buffer+0x80>
   386f2:	f0 91 9a 04 	lds	r31, 0x049A	; 0x80049a <rx_buffer+0x81>
   386f6:	e0 17       	cp	r30, r16
   386f8:	f1 07       	cpc	r31, r17
   386fa:	19 f5       	brne	.+70     	; 0x38742 <optiboot_xflash_enter()+0x10c>
        wdt_reset();
   386fc:	a8 95       	wdr
   386fe:	41 50       	subi	r20, 0x01	; 1
   38700:	51 09       	sbc	r21, r1
   38702:	61 09       	sbc	r22, r1
   38704:	71 09       	sbc	r23, r1
        if ( --boot_timer == 0) {
   38706:	99 f7       	brne	.-26     	; 0x386ee <optiboot_xflash_enter()+0xb8>
      ch = rx_buffer.buffer[SerialHead];
      SerialHead = (unsigned int)(SerialHead + 1) % RX_BUFFER_SIZE;
      if (pgm_read_byte(ptr ++) != ch)
      {
          // Magic was not received correctly, continue with the application
          selectedSerialPort = selectedSerialPort_bak; //revert Serial setting
   38708:	d0 92 39 05 	sts	0x0539, r13	; 0x800539 <selectedSerialPort>
          return 0;
   3870c:	80 e0       	ldi	r24, 0x00	; 0
      // This covers the response to commands like STK_ENTER_PROGMODE
      verifySpace();
    }
    putch(STK_OK);
  }
}
   3870e:	ca 5f       	subi	r28, 0xFA	; 250
   38710:	de 4f       	sbci	r29, 0xFE	; 254
   38712:	0f b6       	in	r0, 0x3f	; 63
   38714:	f8 94       	cli
   38716:	de bf       	out	0x3e, r29	; 62
   38718:	0f be       	out	0x3f, r0	; 63
   3871a:	cd bf       	out	0x3d, r28	; 61
   3871c:	df 91       	pop	r29
   3871e:	cf 91       	pop	r28
   38720:	1f 91       	pop	r17
   38722:	0f 91       	pop	r16
   38724:	ff 90       	pop	r15
   38726:	ef 90       	pop	r14
   38728:	df 90       	pop	r13
   3872a:	cf 90       	pop	r12
   3872c:	bf 90       	pop	r11
   3872e:	af 90       	pop	r10
   38730:	9f 90       	pop	r9
   38732:	8f 90       	pop	r8
   38734:	7f 90       	pop	r7
   38736:	6f 90       	pop	r6
   38738:	5f 90       	pop	r5
   3873a:	4f 90       	pop	r4
   3873c:	3f 90       	pop	r3
   3873e:	2f 90       	pop	r2
   38740:	08 95       	ret
          // Timeout expired, continue with the application.
          selectedSerialPort = selectedSerialPort_bak; //revert Serial setting
          return 0;
        }
      }
      ch = rx_buffer.buffer[SerialHead];
   38742:	f8 01       	movw	r30, r16
   38744:	e7 5e       	subi	r30, 0xE7	; 231
   38746:	fb 4f       	sbci	r31, 0xFB	; 251
   38748:	40 81       	ld	r20, Z
      SerialHead = (unsigned int)(SerialHead + 1) % RX_BUFFER_SIZE;
   3874a:	0f 5f       	subi	r16, 0xFF	; 255
   3874c:	1f 4f       	sbci	r17, 0xFF	; 255
   3874e:	0f 77       	andi	r16, 0x7F	; 127
   38750:	11 27       	eor	r17, r17
      if (pgm_read_byte(ptr ++) != ch)
   38752:	f9 01       	movw	r30, r18
   38754:	e8 1b       	sub	r30, r24
   38756:	f9 0b       	sbc	r31, r25
   38758:	e4 91       	lpm	r30, Z
   3875a:	4e 13       	cpse	r20, r30
   3875c:	d5 cf       	rjmp	.-86     	; 0x38708 <optiboot_xflash_enter()+0xd2>
      {
          // Magic was not received correctly, continue with the application
          selectedSerialPort = selectedSerialPort_bak; //revert Serial setting
          return 0;
      }
      wdt_reset();
   3875e:	a8 95       	wdr
   38760:	01 97       	sbiw	r24, 0x01	; 1
    wdt_reset();
    // Wait for two seconds until a magic string (constant entry_magic) is received
    // from the serial line.
    ptr = entry_magic_receive;
    end = strlen_P(entry_magic_receive) + ptr;
    while (ptr != end) {
   38762:	09 f0       	breq	.+2      	; 0x38766 <optiboot_xflash_enter()+0x130>
   38764:	c0 cf       	rjmp	.-128    	; 0x386e6 <optiboot_xflash_enter()+0xb0>
          selectedSerialPort = selectedSerialPort_bak; //revert Serial setting
          return 0;
      }
      wdt_reset();
    }
    cbi(UCSR0B, RXCIE0); //disable the MarlinSerial0 interrupt
   38766:	80 91 c1 00 	lds	r24, 0x00C1	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   3876a:	8f 77       	andi	r24, 0x7F	; 127
   3876c:	80 93 c1 00 	sts	0x00C1, r24	; 0x8000c1 <__TEXT_REGION_LENGTH__+0x7c20c1>
   38770:	01 e5       	ldi	r16, 0x51	; 81
   38772:	1c ea       	ldi	r17, 0xAC	; 172
    // Send the cfm magic string.
    ptr = entry_magic_cfm;
    end = strlen_P(entry_magic_cfm) + ptr;
    while (ptr != end)
      putch(pgm_read_byte(ptr ++));
   38774:	f8 01       	movw	r30, r16
   38776:	84 91       	lpm	r24, Z
   38778:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
   3877c:	0f 5f       	subi	r16, 0xFF	; 255
   3877e:	1f 4f       	sbci	r17, 0xFF	; 255
    }
    cbi(UCSR0B, RXCIE0); //disable the MarlinSerial0 interrupt
    // Send the cfm magic string.
    ptr = entry_magic_cfm;
    end = strlen_P(entry_magic_cfm) + ptr;
    while (ptr != end)
   38780:	fc ea       	ldi	r31, 0xAC	; 172
   38782:	0e 35       	cpi	r16, 0x5E	; 94
   38784:	1f 07       	cpc	r17, r31
   38786:	b1 f7       	brne	.-20     	; 0x38774 <optiboot_xflash_enter()+0x13e>
      putch(pgm_read_byte(ptr ++));
  }

  spi_init();
   38788:	0f 94 0d c3 	call	0x3861a	; 0x3861a <spi_init.lto_priv.427>
  xflash_init();
   3878c:	0e 94 fc ee 	call	0x1ddf8	; 0x1ddf8 <xflash_init>
				"out __SREG__,__tmp_reg__"   "\n\t"
				: [TEMPREG] "=d" (temp_reg)
				: [WDTREG]  "n"  (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				[WDCE_WDE]  "n"  ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE)))
				: "r0"
		);
   38790:	0f b6       	in	r0, 0x3f	; 63
   38792:	f8 94       	cli
   38794:	a8 95       	wdr
   38796:	80 91 60 00 	lds	r24, 0x0060	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   3879a:	88 61       	ori	r24, 0x18	; 24
   3879c:	80 93 60 00 	sts	0x0060, r24	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   387a0:	10 92 60 00 	sts	0x0060, r1	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   387a4:	0f be       	out	0x3f, r0	; 63
  wdt_disable();

  lcd_clear();
   387a6:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
  lcd_puts_at_P(0, 1, PSTR(" Upgrading xflash\n Do not disconnect!"));
   387aa:	4b e2       	ldi	r20, 0x2B	; 43
   387ac:	5c ea       	ldi	r21, 0xAC	; 172
   387ae:	61 e0       	ldi	r22, 0x01	; 1
   387b0:	80 e0       	ldi	r24, 0x00	; 0
   387b2:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>

  boot_app_magic = 0; //disable the bootapp if a watchdog reset is going to be used
   387b6:	10 92 fc 1f 	sts	0x1FFC, r1	; 0x801ffc <__bss_end+0x7dc>
   387ba:	10 92 fd 1f 	sts	0x1FFD, r1	; 0x801ffd <__bss_end+0x7dd>
   387be:	10 92 fe 1f 	sts	0x1FFE, r1	; 0x801ffe <__bss_end+0x7de>
   387c2:	10 92 ff 1f 	sts	0x1FFF, r1	; 0x801fff <__bss_end+0x7df>
  pagelen_t length;
  // Use the planner's queue for the receive / transmit buffers.
//  uint8_t *buff = (uint8_t*)block_buffer;
  uint8_t buff[260];
  // bitmap of pages to be written. Bit is set to 1 if the page has already been erased.
  uint8_t pages_erased = 0;
   387c6:	cb 5f       	subi	r28, 0xFB	; 251
   387c8:	de 4f       	sbci	r29, 0xFE	; 254
   387ca:	18 82       	st	Y, r1
   387cc:	c5 50       	subi	r28, 0x05	; 5
   387ce:	d1 40       	sbci	r29, 0x01	; 1
// they can be unintentionally changed. As a workaround to the language upload problem, do not only check for one bit if it's set,
// but rather test 33 bits for the correct value before exiting optiboot early.
  if ((boot_app_magic == BOOT_APP_MAGIC) && (boot_app_flags & BOOT_APP_FLG_USER0)) return 1;
  uint8_t ch;
  uint8_t rampz = 0;
  uint16_t address = 0;
   387d0:	10 e0       	ldi	r17, 0x00	; 0
   387d2:	00 e0       	ldi	r16, 0x00	; 0
// Make sure to check boot_app_magic as well. Since these bootapp flags are located right in the middle of the stack,
// they can be unintentionally changed. As a workaround to the language upload problem, do not only check for one bit if it's set,
// but rather test 33 bits for the correct value before exiting optiboot early.
  if ((boot_app_magic == BOOT_APP_MAGIC) && (boot_app_flags & BOOT_APP_FLG_USER0)) return 1;
  uint8_t ch;
  uint8_t rampz = 0;
   387d4:	f1 2c       	mov	r15, r1
      length |= getch();
      // Read the destination type. It should always be 'F' as flash. It is not checked.
      (void)getch();
      verifySpace();
      xflash_wait_busy();
      xflash_rd_data(addr, buff, length);
   387d6:	ae 01       	movw	r20, r28
   387d8:	4f 5f       	subi	r20, 0xFF	; 255
   387da:	5f 4f       	sbci	r21, 0xFF	; 255
   387dc:	3a 01       	movw	r6, r20
  boot_app_magic = 0; //disable the bootapp if a watchdog reset is going to be used

  /* Forever loop: exits by causing WDT reset */
  for (;;) {
    /* get character from UART */
    ch = getch();
   387de:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>

    if(ch == STK_GET_PARAMETER) {
   387e2:	81 34       	cpi	r24, 0x41	; 65
   387e4:	a9 f4       	brne	.+42     	; 0x38810 <optiboot_xflash_enter()+0x1da>
      unsigned char which = getch();
   387e6:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   387ea:	e8 2e       	mov	r14, r24
      verifySpace();
   387ec:	0f 94 f6 b0 	call	0x361ec	; 0x361ec <verifySpace()>
      /*
       * Send optiboot version as "SW version"
       * Note that the references to memory are optimized away.
       */
      if (which == STK_SW_MINOR) {
   387f0:	52 e8       	ldi	r21, 0x82	; 130
        putch(optiboot_version & 0xFF);
   387f2:	82 e0       	ldi	r24, 0x02	; 2
      verifySpace();
      /*
       * Send optiboot version as "SW version"
       * Note that the references to memory are optimized away.
       */
      if (which == STK_SW_MINOR) {
   387f4:	e5 16       	cp	r14, r21
   387f6:	21 f0       	breq	.+8      	; 0x38800 <optiboot_xflash_enter()+0x1ca>
        putch(optiboot_version & 0xFF);
      } else if (which == STK_SW_MAJOR) {
   387f8:	81 e8       	ldi	r24, 0x81	; 129
   387fa:	e8 12       	cpse	r14, r24
   387fc:	07 c0       	rjmp	.+14     	; 0x3880c <optiboot_xflash_enter()+0x1d6>
        putch(optiboot_version >> 8);
   387fe:	86 e0       	ldi	r24, 0x06	; 6
   38800:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
    }
    else {
      // This covers the response to commands like STK_ENTER_PROGMODE
      verifySpace();
    }
    putch(STK_OK);
   38804:	80 e1       	ldi	r24, 0x10	; 16
   38806:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
   3880a:	e9 cf       	rjmp	.-46     	; 0x387de <optiboot_xflash_enter()+0x1a8>
      } else {
        /*
         * GET PARAMETER returns a generic 0x03 reply for
               * other parameters - enough to keep Avrdude happy
         */
        putch(0x03);
   3880c:	83 e0       	ldi	r24, 0x03	; 3
   3880e:	f8 cf       	rjmp	.-16     	; 0x38800 <optiboot_xflash_enter()+0x1ca>
      }
    }
    else if(ch == STK_SET_DEVICE) {
   38810:	82 34       	cpi	r24, 0x42	; 66
   38812:	21 f4       	brne	.+8      	; 0x3881c <optiboot_xflash_enter()+0x1e6>
      // SET DEVICE is ignored
      getNch(20);
   38814:	84 e1       	ldi	r24, 0x14	; 20
    }
    else if(ch == STK_SET_DEVICE_EXT) {
      // SET DEVICE EXT is ignored
      getNch(5);
   38816:	0f 94 02 b1 	call	0x36204	; 0x36204 <getNch(unsigned char)>
   3881a:	f4 cf       	rjmp	.-24     	; 0x38804 <optiboot_xflash_enter()+0x1ce>
    }
    else if(ch == STK_SET_DEVICE) {
      // SET DEVICE is ignored
      getNch(20);
    }
    else if(ch == STK_SET_DEVICE_EXT) {
   3881c:	85 34       	cpi	r24, 0x45	; 69
   3881e:	11 f4       	brne	.+4      	; 0x38824 <optiboot_xflash_enter()+0x1ee>
      // SET DEVICE EXT is ignored
      getNch(5);
   38820:	85 e0       	ldi	r24, 0x05	; 5
   38822:	f9 cf       	rjmp	.-14     	; 0x38816 <optiboot_xflash_enter()+0x1e0>
    }
    else if(ch == STK_LOAD_ADDRESS) {
   38824:	85 35       	cpi	r24, 0x55	; 85
   38826:	c9 f4       	brne	.+50     	; 0x3885a <optiboot_xflash_enter()+0x224>
      // LOAD ADDRESS
      uint16_t newAddress;
      // Workaround for the infamous ';' bug in the Prusa3D usb to serial converter.
      // Send the binary data by nibbles to avoid transmitting the ';' character.
      newAddress  = getch();
   38828:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3882c:	08 2f       	mov	r16, r24
      newAddress |= getch();
   3882e:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38832:	08 2b       	or	r16, r24
   38834:	10 e0       	ldi	r17, 0x00	; 0
      newAddress |= (((uint16_t)getch()) << 8);
   38836:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3883a:	18 2b       	or	r17, r24
      newAddress |= (((uint16_t)getch()) << 8);
   3883c:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38840:	18 2b       	or	r17, r24
      // Transfer top bit to LSB in rampz
      if (newAddress & 0x8000)
   38842:	17 ff       	sbrs	r17, 7
   38844:	07 c0       	rjmp	.+14     	; 0x38854 <optiboot_xflash_enter()+0x21e>
        rampz |= 0x01;
   38846:	68 94       	set
   38848:	f0 f8       	bld	r15, 0
      else
        rampz &= 0xFE;
      newAddress += newAddress; // Convert from word address to byte address
   3884a:	00 0f       	add	r16, r16
   3884c:	11 1f       	adc	r17, r17
      wdt_enable(WATCHDOG_SOFT_RESET_VALUE);
      verifySpace();
    }
    else {
      // This covers the response to commands like STK_ENTER_PROGMODE
      verifySpace();
   3884e:	0f 94 f6 b0 	call	0x361ec	; 0x361ec <verifySpace()>
   38852:	d8 cf       	rjmp	.-80     	; 0x38804 <optiboot_xflash_enter()+0x1ce>
      newAddress |= (((uint16_t)getch()) << 8);
      // Transfer top bit to LSB in rampz
      if (newAddress & 0x8000)
        rampz |= 0x01;
      else
        rampz &= 0xFE;
   38854:	e8 94       	clt
   38856:	f0 f8       	bld	r15, 0
   38858:	f8 cf       	rjmp	.-16     	; 0x3884a <optiboot_xflash_enter()+0x214>
      newAddress += newAddress; // Convert from word address to byte address
      address = newAddress;
      verifySpace();
    }
    else if(ch == STK_UNIVERSAL) {
   3885a:	86 35       	cpi	r24, 0x56	; 86
   3885c:	a1 f4       	brne	.+40     	; 0x38886 <optiboot_xflash_enter()+0x250>
      // LOAD_EXTENDED_ADDRESS is needed in STK_UNIVERSAL for addressing more than 128kB
      if ( AVR_OP_LOAD_EXT_ADDR == getch() ) {
   3885e:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38862:	8d 34       	cpi	r24, 0x4D	; 77
   38864:	71 f4       	brne	.+28     	; 0x38882 <optiboot_xflash_enter()+0x24c>
        // get address
        getch();  // get '0'
   38866:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
        rampz = (rampz & 0x01) | ((getch() << 1) & 0xff);  // get address and put it in rampz
   3886a:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3886e:	9f 2d       	mov	r25, r15
   38870:	91 70       	andi	r25, 0x01	; 1
   38872:	f9 2e       	mov	r15, r25
   38874:	88 0f       	add	r24, r24
   38876:	f8 2a       	or	r15, r24
        getNch(1); // get last '0'
   38878:	81 e0       	ldi	r24, 0x01	; 1
        // response
        putch(0x00);
      }
      else {
        // everything else is ignored
        getNch(3);
   3887a:	0f 94 02 b1 	call	0x36204	; 0x36204 <getNch(unsigned char)>
        putch(0x00);
   3887e:	80 e0       	ldi	r24, 0x00	; 0
   38880:	bf cf       	rjmp	.-130    	; 0x38800 <optiboot_xflash_enter()+0x1ca>
        // response
        putch(0x00);
      }
      else {
        // everything else is ignored
        getNch(3);
   38882:	83 e0       	ldi	r24, 0x03	; 3
   38884:	fa cf       	rjmp	.-12     	; 0x3887a <optiboot_xflash_enter()+0x244>
        putch(0x00);
      }
    }
    /* Write memory, length is big endian and is in bytes */
    else if(ch == STK_PROG_PAGE) {
   38886:	84 36       	cpi	r24, 0x64	; 100
   38888:	09 f0       	breq	.+2      	; 0x3888c <optiboot_xflash_enter()+0x256>
   3888a:	77 c0       	rjmp	.+238    	; 0x3897a <optiboot_xflash_enter()+0x344>
      uint8_t desttype;
      uint8_t *bufPtr;
      pagelen_t savelength;
      // Read the page length, with the length transferred each nibble separately to work around
      // the Prusa's USB to serial infamous semicolon issue.
      length  = ((pagelen_t)getch()) << 8;
   3888c:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38890:	b8 2e       	mov	r11, r24
      length |= ((pagelen_t)getch()) << 8;
   38892:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38896:	c8 2e       	mov	r12, r24
      length |= getch();
   38898:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3889c:	e8 2e       	mov	r14, r24
      length |= getch();
   3889e:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
      uint8_t *bufPtr;
      pagelen_t savelength;
      // Read the page length, with the length transferred each nibble separately to work around
      // the Prusa's USB to serial infamous semicolon issue.
      length  = ((pagelen_t)getch()) << 8;
      length |= ((pagelen_t)getch()) << 8;
   388a2:	d1 2c       	mov	r13, r1
   388a4:	dc 2c       	mov	r13, r12
   388a6:	cc 24       	eor	r12, r12
   388a8:	db 28       	or	r13, r11
      length |= getch();
      length |= getch();
   388aa:	8e 29       	or	r24, r14
   388ac:	c8 2a       	or	r12, r24

      savelength = length;
      // Read the destination type. It should always be 'F' as flash.
      desttype = getch();
   388ae:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   388b2:	58 2e       	mov	r5, r24
   388b4:	fe 01       	movw	r30, r28
   388b6:	31 96       	adiw	r30, 0x01	; 1
   388b8:	5f 01       	movw	r10, r30
   388ba:	46 01       	movw	r8, r12
   388bc:	8e 0e       	add	r8, r30
   388be:	9f 1e       	adc	r9, r31
   388c0:	ee 2e       	mov	r14, r30
   388c2:	ca 5f       	subi	r28, 0xFA	; 250
   388c4:	de 4f       	sbci	r29, 0xFE	; 254
   388c6:	b8 82       	st	Y, r11
   388c8:	c6 50       	subi	r28, 0x06	; 6
   388ca:	d1 40       	sbci	r29, 0x01	; 1

      // read a page worth of contents
      bufPtr = buff;
      do *bufPtr++ = getch();
   388cc:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   388d0:	f5 01       	movw	r30, r10
   388d2:	81 93       	st	Z+, r24
   388d4:	5f 01       	movw	r10, r30
      while (--length);
   388d6:	8e 16       	cp	r8, r30
   388d8:	9f 06       	cpc	r9, r31
   388da:	c1 f7       	brne	.-16     	; 0x388cc <optiboot_xflash_enter()+0x296>

      // Read command terminator, start reply
      verifySpace();
   388dc:	0f 94 f6 b0 	call	0x361ec	; 0x361ec <verifySpace()>
      if (desttype == 'E') {
   388e0:	f5 e4       	ldi	r31, 0x45	; 69
   388e2:	5f 12       	cpse	r5, r31
   388e4:	01 c0       	rjmp	.+2      	; 0x388e8 <optiboot_xflash_enter()+0x2b2>
   388e6:	ff cf       	rjmp	.-2      	; 0x388e6 <optiboot_xflash_enter()+0x2b0>
        while (1) ; // Error: wait for WDT
      } else {
        uint32_t addr = (((uint32_t)rampz) << 16) | address;
   388e8:	18 01       	movw	r2, r16
   388ea:	51 2c       	mov	r5, r1
   388ec:	4f 2c       	mov	r4, r15
        // During a single bootloader run, only erase a 64kB block once.
        // An 8bit bitmask 'pages_erased' covers 512kB of FLASH memory.
        if ((address == 0) && (pages_erased & (1 << (addr >> 16))) == 0) {
   388ee:	01 15       	cp	r16, r1
   388f0:	11 05       	cpc	r17, r1
   388f2:	61 f5       	brne	.+88     	; 0x3894c <optiboot_xflash_enter()+0x316>
   388f4:	42 01       	movw	r8, r4
   388f6:	aa 24       	eor	r10, r10
   388f8:	bb 24       	eor	r11, r11
   388fa:	cb 5f       	subi	r28, 0xFB	; 251
   388fc:	de 4f       	sbci	r29, 0xFE	; 254
   388fe:	28 81       	ld	r18, Y
   38900:	c5 50       	subi	r28, 0x05	; 5
   38902:	d1 40       	sbci	r29, 0x01	; 1
   38904:	82 2f       	mov	r24, r18
   38906:	90 e0       	ldi	r25, 0x00	; 0
   38908:	08 2c       	mov	r0, r8
   3890a:	02 c0       	rjmp	.+4      	; 0x38910 <optiboot_xflash_enter()+0x2da>
   3890c:	95 95       	asr	r25
   3890e:	87 95       	ror	r24
   38910:	0a 94       	dec	r0
   38912:	e2 f7       	brpl	.-8      	; 0x3890c <optiboot_xflash_enter()+0x2d6>
   38914:	80 fd       	sbrc	r24, 0
   38916:	1a c0       	rjmp	.+52     	; 0x3894c <optiboot_xflash_enter()+0x316>
          xflash_wait_busy();
   38918:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
          xflash_enable_wr();
   3891c:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
	return xflash_erase(_CMD_BLOCK32_ERASE, addr);
}

void xflash_block64_erase(uint32_t addr)
{
	return xflash_erase(_CMD_BLOCK64_ERASE, addr);
   38920:	b2 01       	movw	r22, r4
   38922:	a8 01       	movw	r20, r16
   38924:	88 ed       	ldi	r24, 0xD8	; 216
   38926:	0e 94 a7 ed 	call	0x1db4e	; 0x1db4e <xflash_erase>
          xflash_block64_erase(addr);
          pages_erased |= (1 << (addr >> 16));
   3892a:	81 e0       	ldi	r24, 0x01	; 1
   3892c:	90 e0       	ldi	r25, 0x00	; 0
   3892e:	01 c0       	rjmp	.+2      	; 0x38932 <optiboot_xflash_enter()+0x2fc>
   38930:	88 0f       	add	r24, r24
   38932:	8a 94       	dec	r8
   38934:	ea f7       	brpl	.-6      	; 0x38930 <optiboot_xflash_enter()+0x2fa>
   38936:	cb 5f       	subi	r28, 0xFB	; 251
   38938:	de 4f       	sbci	r29, 0xFE	; 254
   3893a:	48 81       	ld	r20, Y
   3893c:	c5 50       	subi	r28, 0x05	; 5
   3893e:	d1 40       	sbci	r29, 0x01	; 1
   38940:	48 2b       	or	r20, r24
   38942:	cb 5f       	subi	r28, 0xFB	; 251
   38944:	de 4f       	sbci	r29, 0xFE	; 254
   38946:	48 83       	st	Y, r20
   38948:	c5 50       	subi	r28, 0x05	; 5
   3894a:	d1 40       	sbci	r29, 0x01	; 1
        }
        xflash_wait_busy();
   3894c:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
        xflash_enable_wr();
   38950:	0e 94 25 ee 	call	0x1dc4a	; 0x1dc4a <xflash_enable_wr>
        xflash_page_program(addr, buff, savelength);
   38954:	96 01       	movw	r18, r12
   38956:	4e 2d       	mov	r20, r14
   38958:	ca 5f       	subi	r28, 0xFA	; 250
   3895a:	de 4f       	sbci	r29, 0xFE	; 254
   3895c:	58 81       	ld	r21, Y
   3895e:	c6 50       	subi	r28, 0x06	; 6
   38960:	d1 40       	sbci	r29, 0x01	; 1
   38962:	c2 01       	movw	r24, r4
   38964:	b1 01       	movw	r22, r2
   38966:	0e 94 ac ed 	call	0x1db58	; 0x1db58 <xflash_page_program>
        xflash_wait_busy();
   3896a:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
	_CS_HIGH();
}

void xflash_disable_wr(void)
{
	_CS_LOW();
   3896e:	45 98       	cbi	0x08, 5	; 8
	_SPI_TX(_CMD_DISABLE_WR);            // send command 0x04
   38970:	84 e0       	ldi	r24, 0x04	; 4
   38972:	0e 94 83 ed 	call	0x1db06	; 0x1db06 <spi_txrx.lto_priv.531>
	_CS_HIGH();
   38976:	45 9a       	sbi	0x08, 5	; 8
   38978:	45 cf       	rjmp	.-374    	; 0x38804 <optiboot_xflash_enter()+0x1ce>
        xflash_disable_wr();
      }
    }
    /* Read memory block mode, length is big endian.  */
    else if(ch == STK_READ_PAGE) {
   3897a:	84 37       	cpi	r24, 0x74	; 116
   3897c:	81 f5       	brne	.+96     	; 0x389de <optiboot_xflash_enter()+0x3a8>
      uint32_t addr = (((uint32_t)rampz) << 16) | address;
   3897e:	b1 2c       	mov	r11, r1
   38980:	af 2c       	mov	r10, r15
      pagelen_t i;
      // Read the page length, with the length transferred each nibble separately to work around
      // the Prusa's USB to serial infamous semicolon issue.
      length  = ((pagelen_t)getch()) << 8;
   38982:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38986:	d8 2e       	mov	r13, r24
      length |= ((pagelen_t)getch()) << 8;
   38988:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   3898c:	c8 2e       	mov	r12, r24
      length |= getch();
   3898e:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
   38992:	e8 2e       	mov	r14, r24
      length |= getch();
   38994:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
      uint32_t addr = (((uint32_t)rampz) << 16) | address;
      pagelen_t i;
      // Read the page length, with the length transferred each nibble separately to work around
      // the Prusa's USB to serial infamous semicolon issue.
      length  = ((pagelen_t)getch()) << 8;
      length |= ((pagelen_t)getch()) << 8;
   38998:	2c 2d       	mov	r18, r12
   3899a:	30 e0       	ldi	r19, 0x00	; 0
   3899c:	32 2f       	mov	r19, r18
   3899e:	22 27       	eor	r18, r18
   389a0:	f9 01       	movw	r30, r18
   389a2:	fd 29       	or	r31, r13
   389a4:	6f 01       	movw	r12, r30
      length |= getch();
      length |= getch();
   389a6:	8e 29       	or	r24, r14
   389a8:	c8 2a       	or	r12, r24
      // Read the destination type. It should always be 'F' as flash. It is not checked.
      (void)getch();
   389aa:	0f 94 7e ae 	call	0x35cfc	; 0x35cfc <getch()>
      verifySpace();
   389ae:	0f 94 f6 b0 	call	0x361ec	; 0x361ec <verifySpace()>
      xflash_wait_busy();
   389b2:	0e 94 89 ed 	call	0x1db12	; 0x1db12 <xflash_wait_busy>
      xflash_rd_data(addr, buff, length);
   389b6:	96 01       	movw	r18, r12
   389b8:	a3 01       	movw	r20, r6
   389ba:	c5 01       	movw	r24, r10
   389bc:	b8 01       	movw	r22, r16
   389be:	0e 94 cc ed 	call	0x1db98	; 0x1db98 <xflash_rd_data>
   389c2:	53 01       	movw	r10, r6
      for (i = 0; i < length; ++ i)
   389c4:	c5 01       	movw	r24, r10
   389c6:	86 19       	sub	r24, r6
   389c8:	97 09       	sbc	r25, r7
   389ca:	8c 15       	cp	r24, r12
   389cc:	9d 05       	cpc	r25, r13
   389ce:	08 f0       	brcs	.+2      	; 0x389d2 <optiboot_xflash_enter()+0x39c>
   389d0:	19 cf       	rjmp	.-462    	; 0x38804 <optiboot_xflash_enter()+0x1ce>
        putch(buff[i]);
   389d2:	f5 01       	movw	r30, r10
   389d4:	81 91       	ld	r24, Z+
   389d6:	5f 01       	movw	r10, r30
   389d8:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
   389dc:	f3 cf       	rjmp	.-26     	; 0x389c4 <optiboot_xflash_enter()+0x38e>
    }
    /* Get device signature bytes  */
    else if(ch == STK_READ_SIGN) {
   389de:	85 37       	cpi	r24, 0x75	; 117
   389e0:	51 f4       	brne	.+20     	; 0x389f6 <optiboot_xflash_enter()+0x3c0>
      // READ SIGN - return what Avrdude wants to hear
      verifySpace();
   389e2:	0f 94 f6 b0 	call	0x361ec	; 0x361ec <verifySpace()>
      putch(XFLASH_SIGNATURE_0);
   389e6:	8e e1       	ldi	r24, 0x1E	; 30
   389e8:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
      putch(XFLASH_SIGNATURE_1);
   389ec:	88 e9       	ldi	r24, 0x98	; 152
   389ee:	0f 94 77 ae 	call	0x35cee	; 0x35cee <putch(char)>
      putch(XFLASH_SIGNATURE_2);
   389f2:	81 e0       	ldi	r24, 0x01	; 1
   389f4:	05 cf       	rjmp	.-502    	; 0x38800 <optiboot_xflash_enter()+0x1ca>
    }
    else if (ch == STK_LEAVE_PROGMODE) { /* 'Q' */
   389f6:	81 35       	cpi	r24, 0x51	; 81
   389f8:	09 f0       	breq	.+2      	; 0x389fc <optiboot_xflash_enter()+0x3c6>
   389fa:	29 cf       	rjmp	.-430    	; 0x3884e <optiboot_xflash_enter()+0x218>
				: "n" (_SFR_MEM_ADDR(_WD_CONTROL_REG)),
				"r" ((uint8_t)(_BV(_WD_CHANGE_BIT) | _BV(WDE))),
				"r" ((uint8_t) ((value & 0x08 ? _WD_PS3_MASK : 0x00) |
						_BV(WDE) | (value & 0x07)) )
				: "r0"
		);
   389fc:	f8 e1       	ldi	r31, 0x18	; 24
   389fe:	28 e0       	ldi	r18, 0x08	; 8
   38a00:	0f b6       	in	r0, 0x3f	; 63
   38a02:	f8 94       	cli
   38a04:	a8 95       	wdr
   38a06:	f0 93 60 00 	sts	0x0060, r31	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   38a0a:	0f be       	out	0x3f, r0	; 63
   38a0c:	20 93 60 00 	sts	0x0060, r18	; 0x800060 <__TEXT_REGION_LENGTH__+0x7c2060>
   38a10:	1e cf       	rjmp	.-452    	; 0x3884e <optiboot_xflash_enter()+0x218>
uint8_t optiboot_xflash_enter()
{
// Make sure to check boot_app_magic as well. Since these bootapp flags are located right in the middle of the stack,
// they can be unintentionally changed. As a workaround to the language upload problem, do not only check for one bit if it's set,
// but rather test 33 bits for the correct value before exiting optiboot early.
  if ((boot_app_magic == BOOT_APP_MAGIC) && (boot_app_flags & BOOT_APP_FLG_USER0)) return 1;
   38a12:	81 e0       	ldi	r24, 0x01	; 1
   38a14:	7c ce       	rjmp	.-776    	; 0x3870e <optiboot_xflash_enter()+0xd8>

00038a16 <MMU2::ScreenUpdateEnable()>:
void FullScreenMsgRestoringTemperature(){
    lcd_display_message_fullscreen_P(_T(MSG_MMU_RESTORE_TEMP));
}

void ScreenUpdateEnable(){
    lcd_update_enable(true);
   38a16:	81 e0       	ldi	r24, 0x01	; 1
   38a18:	0c 94 ac 6e 	jmp	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>

00038a1c <MMU2::FullScreenMsg(char const*, unsigned char) [clone .lto_priv.386]>:

void MakeSound(SoundType s){
    Sound_MakeSound( (eSOUND_TYPE)s);
}

static void FullScreenMsg(const char *pgmS, uint8_t slot){
   38a1c:	0f 93       	push	r16
   38a1e:	1f 93       	push	r17
   38a20:	cf 93       	push	r28
   38a22:	8c 01       	movw	r16, r24
   38a24:	c6 2f       	mov	r28, r22
    lcd_update_enable(false);
   38a26:	80 e0       	ldi	r24, 0x00	; 0
   38a28:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
    lcd_clear();
   38a2c:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    lcd_puts_at_P(0, 1, pgmS);
   38a30:	a8 01       	movw	r20, r16
   38a32:	61 e0       	ldi	r22, 0x01	; 1
   38a34:	80 e0       	ldi	r24, 0x00	; 0
   38a36:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
   38a3a:	80 e2       	ldi	r24, 0x20	; 32
   38a3c:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
    lcd_print(' ');
    lcd_print(slot + 1);
   38a40:	6c 2f       	mov	r22, r28
   38a42:	70 e0       	ldi	r23, 0x00	; 0
   38a44:	6f 5f       	subi	r22, 0xFF	; 255
   38a46:	7f 4f       	sbci	r23, 0xFF	; 255
	lcd_print((unsigned long) b, base);
}

void lcd_print(int n, int base)
{
	lcd_print((long) n, base);
   38a48:	07 2e       	mov	r0, r23
   38a4a:	00 0c       	add	r0, r0
   38a4c:	88 0b       	sbc	r24, r24
   38a4e:	99 0b       	sbc	r25, r25
}
   38a50:	cf 91       	pop	r28
   38a52:	1f 91       	pop	r17
   38a54:	0f 91       	pop	r16
   38a56:	0c 94 20 70 	jmp	0xe040	; 0xe040 <lcd_print(long, int) [clone .part.3]>

00038a5a <MMU2::IncrementMMUFails()>:
    eeprom_increment_byte((uint8_t *)EEPROM_MMU_LOAD_FAIL);
    eeprom_increment_word((uint16_t *)EEPROM_MMU_LOAD_FAIL_TOT);
}

void IncrementMMUFails(){
    eeprom_increment_byte((uint8_t *)EEPROM_MMU_FAIL);
   38a5a:	82 ed       	ldi	r24, 0xD2	; 210
   38a5c:	9e e0       	ldi	r25, 0x0E	; 14
   38a5e:	0e 94 af 75 	call	0xeb5e	; 0xeb5e <eeprom_increment_byte(unsigned char*)>
    eeprom_increment_word((uint16_t *)EEPROM_MMU_FAIL_TOT);
   38a62:	83 ed       	ldi	r24, 0xD3	; 211
   38a64:	9e e0       	ldi	r25, 0x0E	; 14
   38a66:	0c 94 a2 75 	jmp	0xeb44	; 0xeb44 <eeprom_increment_word(unsigned int*)>

00038a6a <MMU2::ReportErrorHookDynamicRender()>:
    inline bool Running() const {
        return state == State::Running;
    }

    inline bool FindaPressed() const {
        return regs8[0];
   38a6a:	41 e0       	ldi	r20, 0x01	; 1
   38a6c:	80 91 90 13 	lds	r24, 0x1390	; 0x801390 <MMU2::mmu2+0x45>
   38a70:	81 11       	cpse	r24, r1
   38a72:	01 c0       	rjmp	.+2      	; 0x38a76 <MMU2::ReportErrorHookDynamicRender()+0xc>
   38a74:	40 e0       	ldi	r20, 0x00	; 0
 * @brief Renders any characters that will be updated live on the MMU error screen.
 *Currently, this is FINDA and Filament Sensor status and Extruder temperature.
 */
extern void ReportErrorHookDynamicRender(void){
    // beware - this optimization abuses the fact, that FindaDetectsFilament returns 0 or 1 and '0' is followed by '1' in the ASCII table
    lcd_putc_at(3, 2, mmu2.FindaDetectsFilament() + '0');
   38a76:	40 5d       	subi	r20, 0xD0	; 208
   38a78:	62 e0       	ldi	r22, 0x02	; 2
   38a7a:	83 e0       	ldi	r24, 0x03	; 3
   38a7c:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
class PAT9125_sensor: public Filament_sensor {
public:
    void init();
    void deinit();
    bool update();
    bool getFilamentPresent() const { return filterFilPresent; }
   38a80:	41 e0       	ldi	r20, 0x01	; 1
   38a82:	80 91 b7 17 	lds	r24, 0x17B7	; 0x8017b7 <fsensor+0xd>
   38a86:	81 11       	cpse	r24, r1
   38a88:	01 c0       	rjmp	.+2      	; 0x38a8c <MMU2::ReportErrorHookDynamicRender()+0x22>
   38a8a:	40 e0       	ldi	r20, 0x00	; 0
    lcd_putc_at(8, 2, fsensor.getFilamentPresent() + '0');
   38a8c:	40 5d       	subi	r20, 0xD0	; 208
   38a8e:	62 e0       	ldi	r22, 0x02	; 2
   38a90:	88 e0       	ldi	r24, 0x08	; 8
   38a92:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>

    // print active/changing filament slot
    lcd_set_cursor(10, 2);
   38a96:	62 e0       	ldi	r22, 0x02	; 2
   38a98:	8a e0       	ldi	r24, 0x0A	; 10
   38a9a:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
    lcdui_print_extruder();
   38a9e:	0f 94 54 22 	call	0x244a8	; 0x244a8 <lcdui_print_extruder()>

    // Print active extruder temperature
    lcd_set_cursor(16, 2);
   38aa2:	62 e0       	ldi	r22, 0x02	; 2
   38aa4:	80 e1       	ldi	r24, 0x10	; 16
   38aa6:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
    lcd_printf_P(PSTR("%3d"), (int)(degHotend(0) + 0.5));
   38aaa:	20 e0       	ldi	r18, 0x00	; 0
   38aac:	30 e0       	ldi	r19, 0x00	; 0
   38aae:	40 e0       	ldi	r20, 0x00	; 0
   38ab0:	5f e3       	ldi	r21, 0x3F	; 63
   38ab2:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   38ab6:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   38aba:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   38abe:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   38ac2:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   38ac6:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
   38aca:	7f 93       	push	r23
   38acc:	6f 93       	push	r22
   38ace:	89 e1       	ldi	r24, 0x19	; 25
   38ad0:	9b ea       	ldi	r25, 0xAB	; 171
   38ad2:	9f 93       	push	r25
   38ad4:	8f 93       	push	r24
   38ad6:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
   38ada:	0f 90       	pop	r0
   38adc:	0f 90       	pop	r0
   38ade:	0f 90       	pop	r0
   38ae0:	0f 90       	pop	r0
}
   38ae2:	08 95       	ret

00038ae4 <modules::protocol::Protocol::Nibble2Char(unsigned char)>:
            return 0;
        }
    }

    static constexpr uint8_t Nibble2Char(uint8_t n) {
        switch (n) {
   38ae4:	8a 30       	cpi	r24, 0x0A	; 10
   38ae6:	20 f0       	brcs	.+8      	; 0x38af0 <modules::protocol::Protocol::Nibble2Char(unsigned char)+0xc>
   38ae8:	80 31       	cpi	r24, 0x10	; 16
   38aea:	20 f4       	brcc	.+8      	; 0x38af4 <modules::protocol::Protocol::Nibble2Char(unsigned char)+0x10>
        case 0xb:
        case 0xc:
        case 0xd:
        case 0xe:
        case 0xf:
            return n - 10 + 'a';
   38aec:	89 5a       	subi	r24, 0xA9	; 169
   38aee:	08 95       	ret
        case 5:
        case 6:
        case 7:
        case 8:
        case 9:
            return n + '0';
   38af0:	80 5d       	subi	r24, 0xD0	; 208
   38af2:	08 95       	ret
        case 0xd:
        case 0xe:
        case 0xf:
            return n - 10 + 'a';
        default:
            return 0;
   38af4:	80 e0       	ldi	r24, 0x00	; 0
        }
    }
   38af6:	08 95       	ret

00038af8 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]>:
    i += AppendCRC(rsp.CRC(), txbuff + i);
    txbuff[i] = '\n';
    return i + 1;
}

uint8_t Protocol::UInt8ToHex(uint8_t value, uint8_t *dst) {
   38af8:	0f 93       	push	r16
   38afa:	1f 93       	push	r17
   38afc:	cf 93       	push	r28
   38afe:	df 93       	push	r29
   38b00:	08 2f       	mov	r16, r24
   38b02:	eb 01       	movw	r28, r22
    if (value == 0) {
        *dst = '0';
        return 1;
    }

    uint8_t v = value >> 4U;
   38b04:	90 e0       	ldi	r25, 0x00	; 0
   38b06:	24 e0       	ldi	r18, 0x04	; 4
   38b08:	95 95       	asr	r25
   38b0a:	87 95       	ror	r24
   38b0c:	2a 95       	dec	r18
   38b0e:	e1 f7       	brne	.-8      	; 0x38b08 <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]+0x10>
    uint8_t charsOut = 1;
   38b10:	11 e0       	ldi	r17, 0x01	; 1
    if (v != 0) { // skip the first '0' if any
   38b12:	00 97       	sbiw	r24, 0x00	; 0
   38b14:	21 f0       	breq	.+8      	; 0x38b1e <modules::protocol::Protocol::UInt8ToHex(unsigned char, unsigned char*) [clone .part.2]+0x26>
        *dst = Nibble2Char(v);
   38b16:	0f 94 72 c5 	call	0x38ae4	; 0x38ae4 <modules::protocol::Protocol::Nibble2Char(unsigned char)>
   38b1a:	89 93       	st	Y+, r24
        ++dst;
        charsOut = 2;
   38b1c:	12 e0       	ldi	r17, 0x02	; 2
    }
    v = value & 0xfU;
    *dst = Nibble2Char(v);
   38b1e:	80 2f       	mov	r24, r16
   38b20:	8f 70       	andi	r24, 0x0F	; 15
   38b22:	0f 94 72 c5 	call	0x38ae4	; 0x38ae4 <modules::protocol::Protocol::Nibble2Char(unsigned char)>
   38b26:	88 83       	st	Y, r24
    return charsOut;
}
   38b28:	81 2f       	mov	r24, r17
   38b2a:	df 91       	pop	r29
   38b2c:	cf 91       	pop	r28
   38b2e:	1f 91       	pop	r17
   38b30:	0f 91       	pop	r16
   38b32:	08 95       	ret

00038b34 <modules::protocol::Protocol::Char2Nibble(unsigned char)>:
    }
    static constexpr bool IsHexDigit(uint8_t c) {
        return (c >= '0' && c <= '9') || (c >= 'a' && c <= 'f');
    }
    static constexpr uint8_t Char2Nibble(uint8_t c) {
        switch (c) {
   38b34:	80 33       	cpi	r24, 0x30	; 48
   38b36:	30 f0       	brcs	.+12     	; 0x38b44 <modules::protocol::Protocol::Char2Nibble(unsigned char)+0x10>
   38b38:	8a 33       	cpi	r24, 0x3A	; 58
   38b3a:	30 f0       	brcs	.+12     	; 0x38b48 <modules::protocol::Protocol::Char2Nibble(unsigned char)+0x14>
   38b3c:	9f e9       	ldi	r25, 0x9F	; 159
   38b3e:	98 0f       	add	r25, r24
   38b40:	96 30       	cpi	r25, 0x06	; 6
   38b42:	20 f0       	brcs	.+8      	; 0x38b4c <modules::protocol::Protocol::Char2Nibble(unsigned char)+0x18>
        case 'd':
        case 'e':
        case 'f':
            return c - 'a' + 10;
        default:
            return 0;
   38b44:	80 e0       	ldi	r24, 0x00	; 0
        }
    }
   38b46:	08 95       	ret
        case '5':
        case '6':
        case '7':
        case '8':
        case '9':
            return c - '0';
   38b48:	80 53       	subi	r24, 0x30	; 48
   38b4a:	08 95       	ret
        case 'b':
        case 'c':
        case 'd':
        case 'e':
        case 'f':
            return c - 'a' + 10;
   38b4c:	87 55       	subi	r24, 0x57	; 87
   38b4e:	08 95       	ret

00038b50 <modules::protocol::RequestMsg::ComputeCRC8() const>:
    /// CRC8 check - please note we abuse this byte for CRC of ResponseMsgs as well.
    /// The crc8 byte itself is not added into the CRC computation (obviously ;) )
    /// Beware - adding any members of this data structure may need changing the way CRC is being computed!
    uint8_t crc8;

    constexpr uint8_t ComputeCRC8() const {
   38b50:	cf 93       	push	r28
   38b52:	df 93       	push	r29
   38b54:	ec 01       	movw	r28, r24
        uint8_t crc = 0;
        crc = modules::crc::CRC8::CCITT_updateCX(0, (uint8_t)code);
   38b56:	68 81       	ld	r22, Y
   38b58:	80 e0       	ldi	r24, 0x00	; 0
   38b5a:	0f 94 8a ae 	call	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>
        crc = modules::crc::CRC8::CCITT_updateCX(crc, value);
   38b5e:	69 81       	ldd	r22, Y+1	; 0x01
   38b60:	0f 94 8a ae 	call	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>
        crc = modules::crc::CRC8::CCITT_updateW(crc, value2);
   38b64:	6a 81       	ldd	r22, Y+2	; 0x02
   38b66:	cb 81       	ldd	r28, Y+3	; 0x03
            uint8_t b[2];
            uint16_t w;
            explicit constexpr inline U(uint16_t w)
                : w(w) {}
        } u(w);
        return CCITT_updateCX(CCITT_updateCX(crc, u.b[0]), u.b[1]);
   38b68:	0f 94 8a ae 	call	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>
   38b6c:	6c 2f       	mov	r22, r28
        return crc;
    }
   38b6e:	df 91       	pop	r29
   38b70:	cf 91       	pop	r28
   38b72:	0d 94 8a ae 	jmp	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>

00038b76 <modules::protocol::ResponseMsg::ComputeCRC8() const>:
struct ResponseMsg {
    RequestMsg request; ///< response is always preceeded by the request message
    ResponseMsgParamCodes paramCode; ///< code of the parameter
    uint16_t paramValue; ///< value of the parameter

    constexpr uint8_t ComputeCRC8() const {
   38b76:	cf 93       	push	r28
   38b78:	df 93       	push	r29
   38b7a:	ec 01       	movw	r28, r24
        uint8_t crc = request.ComputeCRC8();
   38b7c:	0f 94 a8 c5 	call	0x38b50	; 0x38b50 <modules::protocol::RequestMsg::ComputeCRC8() const>
        crc = modules::crc::CRC8::CCITT_updateCX(crc, (uint8_t)paramCode);
   38b80:	6d 81       	ldd	r22, Y+5	; 0x05
   38b82:	0f 94 8a ae 	call	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>
        crc = modules::crc::CRC8::CCITT_updateW(crc, paramValue);
   38b86:	6e 81       	ldd	r22, Y+6	; 0x06
   38b88:	cf 81       	ldd	r28, Y+7	; 0x07
   38b8a:	0f 94 8a ae 	call	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>
   38b8e:	6c 2f       	mov	r22, r28
        return crc;
    }
   38b90:	df 91       	pop	r29
   38b92:	cf 91       	pop	r28
   38b94:	0d 94 8a ae 	jmp	0x35d14	; 0x35d14 <modules::crc::CRC8::CCITT_updateCX(unsigned char, unsigned char)>

00038b98 <modules::protocol::RequestMsg::RequestMsg(modules::protocol::RequestMsgCodes, unsigned char)>:
        return crc;
    }

    /// @param code of the request message
    /// @param value of the request message
    inline constexpr RequestMsg(RequestMsgCodes code, uint8_t value)
   38b98:	cf 93       	push	r28
   38b9a:	df 93       	push	r29
   38b9c:	ec 01       	movw	r28, r24
        : code(code)
        , value(value)
        , value2(0)
        , crc8(ComputeCRC8()) {
   38b9e:	68 83       	st	Y, r22
   38ba0:	49 83       	std	Y+1, r20	; 0x01
   38ba2:	1b 82       	std	Y+3, r1	; 0x03
   38ba4:	1a 82       	std	Y+2, r1	; 0x02
   38ba6:	0f 94 a8 c5 	call	0x38b50	; 0x38b50 <modules::protocol::RequestMsg::ComputeCRC8() const>
   38baa:	8c 83       	std	Y+4, r24	; 0x04
    }
   38bac:	df 91       	pop	r29
   38bae:	cf 91       	pop	r28
   38bb0:	08 95       	ret

00038bb2 <MMU2::reset()>:
void power_off() {
}

void reset() {
#ifdef MMU_HWRESET // HW - pulse reset pin
    WRITE(MMU_RST_PIN, 0);
   38bb2:	9f b7       	in	r25, 0x3f	; 63
   38bb4:	f8 94       	cli
   38bb6:	e5 e0       	ldi	r30, 0x05	; 5
   38bb8:	f1 e0       	ldi	r31, 0x01	; 1
   38bba:	80 81       	ld	r24, Z
   38bbc:	8f 7d       	andi	r24, 0xDF	; 223
   38bbe:	80 83       	st	Z, r24
   38bc0:	9f bf       	out	0x3f, r25	; 63
	#else
		//round up by default
		__ticks_dc = (uint32_t)(ceil(fabs(__tmp)));
	#endif

	__builtin_avr_delay_cycles(__ticks_dc);
   38bc2:	8f e8       	ldi	r24, 0x8F	; 143
   38bc4:	91 e0       	ldi	r25, 0x01	; 1
   38bc6:	01 97       	sbiw	r24, 0x01	; 1
   38bc8:	f1 f7       	brne	.-4      	; 0x38bc6 <MMU2::reset()+0x14>
   38bca:	00 c0       	rjmp	.+0      	; 0x38bcc <MMU2::reset()+0x1a>
   38bcc:	00 00       	nop
    _delay_us(100);
    WRITE(MMU_RST_PIN, 1);
   38bce:	9f b7       	in	r25, 0x3f	; 63
   38bd0:	f8 94       	cli
   38bd2:	80 81       	ld	r24, Z
   38bd4:	80 62       	ori	r24, 0x20	; 32
   38bd6:	80 83       	st	Z, r24
   38bd8:	9f bf       	out	0x3f, r25	; 63
#else
    mmu2.Reset(MMU2::Software); // @@TODO needs to be redesigned, this power implementation shall not know anything about the MMU itself
#endif
    // otherwise HW reset is not available
}
   38bda:	08 95       	ret

00038bdc <MMU2::Disable_E0()>:
void Enable_E0() {
    enable_e0();
}

void Disable_E0() {
    disable_e0();
   38bdc:	14 9a       	sbi	0x02, 4	; 2
}
   38bde:	08 95       	ret

00038be0 <MMU2::extruder_move(float, float)>:
static void planner_line_to_current_position_sync(float feedRate_mm_s){
    planner_line_to_current_position(feedRate_mm_s);
    planner_synchronize();
}

void extruder_move(float delta, float feedRate) {
   38be0:	cf 92       	push	r12
   38be2:	df 92       	push	r13
   38be4:	ef 92       	push	r14
   38be6:	ff 92       	push	r15
   38be8:	cf 93       	push	r28
   38bea:	df 93       	push	r29
   38bec:	69 01       	movw	r12, r18
   38bee:	7a 01       	movw	r14, r20
    current_position[E_AXIS] += delta;
   38bf0:	c2 e9       	ldi	r28, 0x92	; 146
   38bf2:	d6 e0       	ldi	r29, 0x06	; 6
   38bf4:	9b 01       	movw	r18, r22
   38bf6:	ac 01       	movw	r20, r24
   38bf8:	6c 85       	ldd	r22, Y+12	; 0x0c
   38bfa:	7d 85       	ldd	r23, Y+13	; 0x0d
   38bfc:	8e 85       	ldd	r24, Y+14	; 0x0e
   38bfe:	9f 85       	ldd	r25, Y+15	; 0x0f
   38c00:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   38c04:	6c 87       	std	Y+12, r22	; 0x0c
   38c06:	7d 87       	std	Y+13, r23	; 0x0d
   38c08:	8e 87       	std	Y+14, r24	; 0x0e
   38c0a:	9f 87       	std	Y+15, r25	; 0x0f
#include "temperature.h"

namespace MMU2 {

static void planner_line_to_current_position(float feedRate_mm_s){
     plan_buffer_line_curposXYZE(feedRate_mm_s);
   38c0c:	c7 01       	movw	r24, r14
   38c0e:	b6 01       	movw	r22, r12
}

void extruder_move(float delta, float feedRate) {
    current_position[E_AXIS] += delta;
    planner_line_to_current_position(feedRate);
}
   38c10:	df 91       	pop	r29
   38c12:	cf 91       	pop	r28
   38c14:	ff 90       	pop	r15
   38c16:	ef 90       	pop	r14
   38c18:	df 90       	pop	r13
   38c1a:	cf 90       	pop	r12
#include "temperature.h"

namespace MMU2 {

static void planner_line_to_current_position(float feedRate_mm_s){
     plan_buffer_line_curposXYZE(feedRate_mm_s);
   38c1c:	0d 94 88 c0 	jmp	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>

00038c20 <go_to_current(float) [clone .lto_priv.388]>:
    st_synchronize();
}

static inline void go_to_current(float fr)
{
    plan_buffer_line_curposXYZE(fr);
   38c20:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   38c24:	0d 94 f4 43 	jmp	0x287e8	; 0x287e8 <st_synchronize()>

00038c28 <MMU2::LogEchoEvent_P(char const*)>:
#include "mmu2_log.h"

namespace MMU2 {

void LogErrorEvent_P(const char *msg){
   38c28:	cf 93       	push	r28
   38c2a:	df 93       	push	r29
   38c2c:	ec 01       	movw	r28, r24
    SERIAL_ECHO_START; //!@todo Decide MMU errors  on serial line
   38c2e:	80 ed       	ldi	r24, 0xD0	; 208
   38c30:	9a ea       	ldi	r25, 0xAA	; 170
   38c32:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_MMU2();
   38c36:	83 e1       	ldi	r24, 0x13	; 19
   38c38:	9b ea       	ldi	r25, 0xAB	; 171
   38c3a:	0e 94 d7 76 	call	0xedae	; 0xedae <serialprintPGM(char const*)>
    SERIAL_ECHOLNRPGM(msg);
   38c3e:	ce 01       	movw	r24, r28
}
   38c40:	df 91       	pop	r29
   38c42:	cf 91       	pop	r28
namespace MMU2 {

void LogErrorEvent_P(const char *msg){
    SERIAL_ECHO_START; //!@todo Decide MMU errors  on serial line
    SERIAL_MMU2();
    SERIAL_ECHOLNRPGM(msg);
   38c44:	0c 94 02 79 	jmp	0xf204	; 0xf204 <serialprintlnPGM(char const*)>

00038c48 <MMU2::WhereIsFilament()>:
#include "Filament_sensor.h"

namespace MMU2 {

FilamentState WhereIsFilament(){
    return fsensor.getFilamentPresent() ? FilamentState::AT_FSENSOR : FilamentState::NOT_PRESENT;
   38c48:	81 e0       	ldi	r24, 0x01	; 1
   38c4a:	90 91 b7 17 	lds	r25, 0x17B7	; 0x8017b7 <fsensor+0xd>
   38c4e:	91 11       	cpse	r25, r1
   38c50:	01 c0       	rjmp	.+2      	; 0x38c54 <MMU2::WhereIsFilament()+0xc>
   38c52:	80 e0       	ldi	r24, 0x00	; 0
}
   38c54:	08 95       	ret

00038c56 <MMU2::PrusaErrorCodeIndex(ErrorCode)>:
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38c56:	89 32       	cpi	r24, 0x29	; 41
   38c58:	20 e8       	ldi	r18, 0x80	; 128
   38c5a:	92 07       	cpc	r25, r18
   38c5c:	09 f4       	brne	.+2      	; 0x38c60 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xa>
   38c5e:	97 c0       	rjmp	.+302    	; 0x38d8e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x138>
   38c60:	08 f0       	brcs	.+2      	; 0x38c64 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xe>
   38c62:	48 c0       	rjmp	.+144    	; 0x38cf4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x9e>
   38c64:	86 30       	cpi	r24, 0x06	; 6
   38c66:	60 e8       	ldi	r22, 0x80	; 128
   38c68:	96 07       	cpc	r25, r22
   38c6a:	09 f4       	brne	.+2      	; 0x38c6e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x18>
   38c6c:	9a c0       	rjmp	.+308    	; 0x38da2 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x14c>
   38c6e:	30 f5       	brcc	.+76     	; 0x38cbc <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x66>
   38c70:	83 30       	cpi	r24, 0x03	; 3
   38c72:	40 e8       	ldi	r20, 0x80	; 128
   38c74:	94 07       	cpc	r25, r20
   38c76:	09 f4       	brne	.+2      	; 0x38c7a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x24>
   38c78:	80 c0       	rjmp	.+256    	; 0x38d7a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x124>
   38c7a:	a8 f4       	brcc	.+42     	; 0x38ca6 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x50>
   38c7c:	81 30       	cpi	r24, 0x01	; 1
   38c7e:	20 e8       	ldi	r18, 0x80	; 128
   38c80:	92 07       	cpc	r25, r18
   38c82:	09 f4       	brne	.+2      	; 0x38c86 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x30>
   38c84:	17 c1       	rjmp	.+558    	; 0x38eb4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x25e>
   38c86:	82 30       	cpi	r24, 0x02	; 2
   38c88:	40 e8       	ldi	r20, 0x80	; 128
   38c8a:	94 07       	cpc	r25, r20
   38c8c:	09 f4       	brne	.+2      	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
   38c8e:	73 c0       	rjmp	.+230    	; 0x38d76 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x120>
static_assert(FindErrorIndex(ERR_MECHANICAL_FINDA_FILAMENT_STUCK) == 1);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER) == 2);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK) == 3);

constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
   38c90:	9c 01       	movw	r18, r24
    }

    // Electrical issues which can be detected somehow.
    // Need to be placed before TMC-related errors in order to process couples of error bits between single ones
    // and to keep the code size down.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
   38c92:	86 ff       	sbrs	r24, 6
   38c94:	8e c0       	rjmp	.+284    	; 0x38db2 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x15c>
static_assert(FindErrorIndex(ERR_MECHANICAL_FINDA_FILAMENT_STUCK) == 1);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER) == 2);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK) == 3);

constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
   38c96:	22 27       	eor	r18, r18
   38c98:	32 7c       	andi	r19, 0xC2	; 194

    // Electrical issues which can be detected somehow.
    // Need to be placed before TMC-related errors in order to process couples of error bits between single ones
    // and to keep the code size down.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
   38c9a:	21 15       	cp	r18, r1
   38c9c:	32 4c       	sbci	r19, 0xC2	; 194
   38c9e:	09 f0       	breq	.+2      	; 0x38ca2 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x4c>
   38ca0:	9e c0       	rjmp	.+316    	; 0x38dde <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x188>
            return FindErrorIndex(ERR_ELECTRICAL_MMU_PULLEY_SELFTEST_FAILED);
   38ca2:	8e e1       	ldi	r24, 0x1E	; 30
   38ca4:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38ca6:	84 30       	cpi	r24, 0x04	; 4
   38ca8:	60 e8       	ldi	r22, 0x80	; 128
   38caa:	96 07       	cpc	r25, r22
   38cac:	09 f4       	brne	.+2      	; 0x38cb0 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x5a>
   38cae:	67 c0       	rjmp	.+206    	; 0x38d7e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x128>
   38cb0:	85 30       	cpi	r24, 0x05	; 5
   38cb2:	20 e8       	ldi	r18, 0x80	; 128
   38cb4:	92 07       	cpc	r25, r18
   38cb6:	61 f7       	brne	.-40     	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
    case ErrorCode::MMU_NOT_RESPONDING:
        return FindErrorIndex(ERR_CONNECT_MMU_NOT_RESPONDING);
    case ErrorCode::PROTOCOL_ERROR:
        return FindErrorIndex(ERR_CONNECT_COMMUNICATION_ERROR);
    case ErrorCode::FILAMENT_ALREADY_LOADED:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_ALREADY_LOADED);
   38cb8:	84 e2       	ldi	r24, 0x24	; 36
   38cba:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38cbc:	8a 30       	cpi	r24, 0x0A	; 10
   38cbe:	40 e8       	ldi	r20, 0x80	; 128
   38cc0:	94 07       	cpc	r25, r20
   38cc2:	09 f4       	brne	.+2      	; 0x38cc6 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x70>
   38cc4:	5e c0       	rjmp	.+188    	; 0x38d82 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x12c>
   38cc6:	58 f4       	brcc	.+22     	; 0x38cde <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x88>
   38cc8:	88 30       	cpi	r24, 0x08	; 8
   38cca:	20 e8       	ldi	r18, 0x80	; 128
   38ccc:	92 07       	cpc	r25, r18
   38cce:	09 f4       	brne	.+2      	; 0x38cd2 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x7c>
   38cd0:	6e c0       	rjmp	.+220    	; 0x38dae <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x158>
   38cd2:	89 30       	cpi	r24, 0x09	; 9
   38cd4:	40 e8       	ldi	r20, 0x80	; 128
   38cd6:	94 07       	cpc	r25, r20
   38cd8:	d9 f6       	brne	.-74     	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
    case ErrorCode::FSENSOR_DIDNT_SWITCH_ON:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER);
    case ErrorCode::FSENSOR_DIDNT_SWITCH_OFF:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK);
    case ErrorCode::FSENSOR_TOO_EARLY:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_TOO_EARLY);
   38cda:	85 e0       	ldi	r24, 0x05	; 5
   38cdc:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38cde:	8c 30       	cpi	r24, 0x0C	; 12
   38ce0:	60 e8       	ldi	r22, 0x80	; 128
   38ce2:	96 07       	cpc	r25, r22
   38ce4:	09 f4       	brne	.+2      	; 0x38ce8 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x92>
   38ce6:	51 c0       	rjmp	.+162    	; 0x38d8a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x134>
   38ce8:	8d 30       	cpi	r24, 0x0D	; 13
   38cea:	20 e8       	ldi	r18, 0x80	; 128
   38cec:	92 07       	cpc	r25, r18
   38cee:	81 f6       	brne	.-96     	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
    case ErrorCode::INTERNAL:
        return FindErrorIndex(ERR_SYSTEM_FW_RUNTIME_ERROR);
    case ErrorCode::FINDA_VS_EEPROM_DISREPANCY:
        return FindErrorIndex(ERR_SYSTEM_UNLOAD_MANUALLY);
    case ErrorCode::MCU_UNDERVOLTAGE_VCC:
        return FindErrorIndex(ERR_ELECTRICAL_MMU_MCU_ERROR);
   38cf0:	81 e2       	ldi	r24, 0x21	; 33
   38cf2:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38cf4:	8f 32       	cpi	r24, 0x2F	; 47
   38cf6:	40 e8       	ldi	r20, 0x80	; 128
   38cf8:	94 07       	cpc	r25, r20
   38cfa:	09 f4       	brne	.+2      	; 0x38cfe <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xa8>
   38cfc:	56 c0       	rjmp	.+172    	; 0x38daa <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x154>
   38cfe:	e0 f4       	brcc	.+56     	; 0x38d38 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xe2>
   38d00:	8c 32       	cpi	r24, 0x2C	; 44
   38d02:	20 e8       	ldi	r18, 0x80	; 128
   38d04:	92 07       	cpc	r25, r18
   38d06:	09 f4       	brne	.+2      	; 0x38d0a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xb4>
   38d08:	4e c0       	rjmp	.+156    	; 0x38da6 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x150>
   38d0a:	58 f4       	brcc	.+22     	; 0x38d22 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xcc>
   38d0c:	8a 32       	cpi	r24, 0x2A	; 42
   38d0e:	60 e8       	ldi	r22, 0x80	; 128
   38d10:	96 07       	cpc	r25, r22
   38d12:	c9 f1       	breq	.+114    	; 0x38d86 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x130>
   38d14:	8b 32       	cpi	r24, 0x2B	; 43
   38d16:	20 e8       	ldi	r18, 0x80	; 128
   38d18:	92 07       	cpc	r25, r18
   38d1a:	09 f0       	breq	.+2      	; 0x38d1e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xc8>
   38d1c:	b9 cf       	rjmp	.-142    	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
    case ErrorCode::FILAMENT_ALREADY_LOADED:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_ALREADY_LOADED);
    case ErrorCode::INVALID_TOOL:
        return FindErrorIndex(ERR_SYSTEM_INVALID_TOOL);
    case ErrorCode::QUEUE_FULL:
        return FindErrorIndex(ERR_SYSTEM_QUEUE_FULL);
   38d1e:	86 e2       	ldi	r24, 0x26	; 38
   38d20:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38d22:	8d 32       	cpi	r24, 0x2D	; 45
   38d24:	40 e8       	ldi	r20, 0x80	; 128
   38d26:	94 07       	cpc	r25, r20
   38d28:	d1 f1       	breq	.+116    	; 0x38d9e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x148>
   38d2a:	8e 32       	cpi	r24, 0x2E	; 46
   38d2c:	60 e8       	ldi	r22, 0x80	; 128
   38d2e:	96 07       	cpc	r25, r22
   38d30:	09 f0       	breq	.+2      	; 0x38d34 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xde>
   38d32:	ae cf       	rjmp	.-164    	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
        return FindErrorIndex(ERR_MECHANICAL_IDLER_CANNOT_HOME);
    case ErrorCode::MOVE_IDLER_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_IDLER_CANNOT_MOVE);

    case ErrorCode::MMU_NOT_RESPONDING:
        return FindErrorIndex(ERR_CONNECT_MMU_NOT_RESPONDING);
   38d34:	82 e2       	ldi	r24, 0x22	; 34
   38d36:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38d38:	87 38       	cpi	r24, 0x87	; 135
   38d3a:	20 e8       	ldi	r18, 0x80	; 128
   38d3c:	92 07       	cpc	r25, r18
   38d3e:	49 f1       	breq	.+82     	; 0x38d92 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x13c>
   38d40:	58 f4       	brcc	.+22     	; 0x38d58 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x102>
   38d42:	87 34       	cpi	r24, 0x47	; 71
   38d44:	60 e8       	ldi	r22, 0x80	; 128
   38d46:	96 07       	cpc	r25, r22
   38d48:	29 f0       	breq	.+10     	; 0x38d54 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xfe>
   38d4a:	8b 34       	cpi	r24, 0x4B	; 75
   38d4c:	20 e8       	ldi	r18, 0x80	; 128
   38d4e:	92 07       	cpc	r25, r18
   38d50:	09 f0       	breq	.+2      	; 0x38d54 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0xfe>
   38d52:	9e cf       	rjmp	.-196    	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
    case ErrorCode::FILAMENT_CHANGE:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_CHANGE);

    case ErrorCode::STALLED_PULLEY:
    case ErrorCode::MOVE_PULLEY_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_PULLEY_CANNOT_MOVE);
   38d54:	84 e0       	ldi	r24, 0x04	; 4
   38d56:	08 95       	ret
constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
   38d58:	87 30       	cpi	r24, 0x07	; 7
   38d5a:	41 e8       	ldi	r20, 0x81	; 129
   38d5c:	94 07       	cpc	r25, r20
   38d5e:	d9 f0       	breq	.+54     	; 0x38d96 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x140>
   38d60:	8b 30       	cpi	r24, 0x0B	; 11
   38d62:	61 e8       	ldi	r22, 0x81	; 129
   38d64:	96 07       	cpc	r25, r22
   38d66:	c9 f0       	breq	.+50     	; 0x38d9a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x144>
   38d68:	8b 38       	cpi	r24, 0x8B	; 139
   38d6a:	20 e8       	ldi	r18, 0x80	; 128
   38d6c:	92 07       	cpc	r25, r18
   38d6e:	09 f0       	breq	.+2      	; 0x38d72 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x11c>
   38d70:	8f cf       	rjmp	.-226    	; 0x38c90 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x3a>
        return FindErrorIndex(ERR_MECHANICAL_PULLEY_CANNOT_MOVE);

    case ErrorCode::HOMING_SELECTOR_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_SELECTOR_CANNOT_HOME);
    case ErrorCode::MOVE_SELECTOR_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_SELECTOR_CANNOT_MOVE);
   38d72:	89 e0       	ldi	r24, 0x09	; 9
   38d74:	08 95       	ret
uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
    case ErrorCode::FINDA_DIDNT_SWITCH_ON:
        return FindErrorIndex(ERR_MECHANICAL_FINDA_DIDNT_TRIGGER);
    case ErrorCode::FINDA_DIDNT_SWITCH_OFF:
        return FindErrorIndex(ERR_MECHANICAL_FINDA_FILAMENT_STUCK);
   38d76:	81 e0       	ldi	r24, 0x01	; 1
   38d78:	08 95       	ret
    case ErrorCode::FSENSOR_DIDNT_SWITCH_ON:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER);
   38d7a:	82 e0       	ldi	r24, 0x02	; 2
   38d7c:	08 95       	ret
    case ErrorCode::FSENSOR_DIDNT_SWITCH_OFF:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK);
   38d7e:	83 e0       	ldi	r24, 0x03	; 3
   38d80:	08 95       	ret
    case ErrorCode::FSENSOR_TOO_EARLY:
        return FindErrorIndex(ERR_MECHANICAL_FSENSOR_TOO_EARLY);
    case ErrorCode::FINDA_FLICKERS:
        return FindErrorIndex(ERR_MECHANICAL_INSPECT_FINDA);
   38d82:	86 e0       	ldi	r24, 0x06	; 6
   38d84:	08 95       	ret
    case ErrorCode::LOAD_TO_EXTRUDER_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_LOAD_TO_EXTRUDER_FAILED);
   38d86:	87 e0       	ldi	r24, 0x07	; 7
   38d88:	08 95       	ret
    case ErrorCode::FILAMENT_EJECTED:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_EJECTED);
   38d8a:	8a e2       	ldi	r24, 0x2A	; 42
   38d8c:	08 95       	ret
    case ErrorCode::FILAMENT_CHANGE:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_CHANGE);
   38d8e:	8b e2       	ldi	r24, 0x2B	; 43
   38d90:	08 95       	ret
    case ErrorCode::STALLED_PULLEY:
    case ErrorCode::MOVE_PULLEY_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_PULLEY_CANNOT_MOVE);

    case ErrorCode::HOMING_SELECTOR_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_SELECTOR_CANNOT_HOME);
   38d92:	88 e0       	ldi	r24, 0x08	; 8
   38d94:	08 95       	ret
    case ErrorCode::MOVE_SELECTOR_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_SELECTOR_CANNOT_MOVE);

    case ErrorCode::HOMING_IDLER_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_IDLER_CANNOT_HOME);
   38d96:	8a e0       	ldi	r24, 0x0A	; 10
   38d98:	08 95       	ret
    case ErrorCode::MOVE_IDLER_FAILED:
        return FindErrorIndex(ERR_MECHANICAL_IDLER_CANNOT_MOVE);
   38d9a:	8b e0       	ldi	r24, 0x0B	; 11
   38d9c:	08 95       	ret

    case ErrorCode::MMU_NOT_RESPONDING:
        return FindErrorIndex(ERR_CONNECT_MMU_NOT_RESPONDING);
    case ErrorCode::PROTOCOL_ERROR:
        return FindErrorIndex(ERR_CONNECT_COMMUNICATION_ERROR);
   38d9e:	83 e2       	ldi	r24, 0x23	; 35
   38da0:	08 95       	ret
    case ErrorCode::FILAMENT_ALREADY_LOADED:
        return FindErrorIndex(ERR_SYSTEM_FILAMENT_ALREADY_LOADED);
    case ErrorCode::INVALID_TOOL:
        return FindErrorIndex(ERR_SYSTEM_INVALID_TOOL);
   38da2:	85 e2       	ldi	r24, 0x25	; 37
   38da4:	08 95       	ret
    case ErrorCode::QUEUE_FULL:
        return FindErrorIndex(ERR_SYSTEM_QUEUE_FULL);
    case ErrorCode::VERSION_MISMATCH:
        return FindErrorIndex(ERR_SYSTEM_FW_UPDATE_NEEDED);
   38da6:	87 e2       	ldi	r24, 0x27	; 39
   38da8:	08 95       	ret
    case ErrorCode::INTERNAL:
        return FindErrorIndex(ERR_SYSTEM_FW_RUNTIME_ERROR);
   38daa:	88 e2       	ldi	r24, 0x28	; 40
   38dac:	08 95       	ret
    case ErrorCode::FINDA_VS_EEPROM_DISREPANCY:
        return FindErrorIndex(ERR_SYSTEM_UNLOAD_MANUALLY);
   38dae:	89 e2       	ldi	r24, 0x29	; 41
   38db0:	08 95       	ret
    // and to keep the code size down.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
            return FindErrorIndex(ERR_ELECTRICAL_MMU_PULLEY_SELFTEST_FAILED);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
   38db2:	87 ff       	sbrs	r24, 7
   38db4:	07 c0       	rjmp	.+14     	; 0x38dc4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x16e>
static_assert(FindErrorIndex(ERR_MECHANICAL_FINDA_FILAMENT_STUCK) == 1);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER) == 2);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK) == 3);

constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
   38db6:	22 27       	eor	r18, r18
   38db8:	32 7c       	andi	r19, 0xC2	; 194
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
            return FindErrorIndex(ERR_ELECTRICAL_MMU_PULLEY_SELFTEST_FAILED);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
   38dba:	21 15       	cp	r18, r1
   38dbc:	32 4c       	sbci	r19, 0xC2	; 194
   38dbe:	a1 f5       	brne	.+104    	; 0x38e28 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1d2>
            return FindErrorIndex(ERR_ELECTRICAL_MMU_SELECTOR_SELFTEST_FAILED);
   38dc0:	8f e1       	ldi	r24, 0x1F	; 31
   38dc2:	08 95       	ret
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
   38dc4:	22 27       	eor	r18, r18
   38dc6:	31 70       	andi	r19, 0x01	; 1
   38dc8:	90 ff       	sbrs	r25, 0
   38dca:	52 c0       	rjmp	.+164    	; 0x38e70 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x21a>
static_assert(FindErrorIndex(ERR_MECHANICAL_FINDA_FILAMENT_STUCK) == 1);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_DIDNT_TRIGGER) == 2);
static_assert(FindErrorIndex(ERR_MECHANICAL_FSENSOR_FILAMENT_STUCK) == 3);

constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
   38dcc:	ac 01       	movw	r20, r24
   38dce:	44 27       	eor	r20, r20
   38dd0:	52 7c       	andi	r21, 0xC2	; 194
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
            return FindErrorIndex(ERR_ELECTRICAL_MMU_SELECTOR_SELFTEST_FAILED);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
        if ((ec & ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) == ErrorCode::MMU_SOLDERING_NEEDS_ATTENTION) {
   38dd2:	41 15       	cp	r20, r1
   38dd4:	52 4c       	sbci	r21, 0xC2	; 194
   38dd6:	09 f0       	breq	.+2      	; 0x38dda <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x184>
   38dd8:	4b c0       	rjmp	.+150    	; 0x38e70 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x21a>
            return FindErrorIndex(ERR_ELECTRICAL_MMU_IDLER_SELFTEST_FAILED);
   38dda:	80 e2       	ldi	r24, 0x20	; 32
   38ddc:	08 95       	ret
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38dde:	9c 01       	movw	r18, r24
   38de0:	22 27       	eor	r18, r18
   38de2:	32 78       	andi	r19, 0x82	; 130

    // TMC-related errors - multiple of these can occur at once
    // - in such a case we report the first which gets found/converted into Prusa-Error-Codes (usually the fact, that one TMC has an issue is serious enough)
    // By carefully ordering the checks here we can prioritize the errors being reported to the user.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
   38de4:	23 2b       	or	r18, r19
   38de6:	09 f0       	breq	.+2      	; 0x38dea <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x194>
   38de8:	67 c0       	rjmp	.+206    	; 0x38eb8 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x262>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38dea:	9c 01       	movw	r18, r24
   38dec:	22 27       	eor	r18, r18
   38dee:	34 78       	andi	r19, 0x84	; 132
    // By carefully ordering the checks here we can prioritize the errors being reported to the user.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
   38df0:	23 2b       	or	r18, r19
   38df2:	09 f0       	breq	.+2      	; 0x38df6 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1a0>
   38df4:	63 c0       	rjmp	.+198    	; 0x38ebc <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x266>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38df6:	9c 01       	movw	r18, r24
   38df8:	22 27       	eor	r18, r18
   38dfa:	38 78       	andi	r19, 0x88	; 136
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
   38dfc:	23 2b       	or	r18, r19
   38dfe:	09 f0       	breq	.+2      	; 0x38e02 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1ac>
   38e00:	5f c0       	rjmp	.+190    	; 0x38ec0 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x26a>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e02:	9c 01       	movw	r18, r24
   38e04:	22 27       	eor	r18, r18
   38e06:	30 79       	andi	r19, 0x90	; 144
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
   38e08:	23 2b       	or	r18, r19
   38e0a:	09 f0       	breq	.+2      	; 0x38e0e <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1b8>
   38e0c:	5b c0       	rjmp	.+182    	; 0x38ec4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x26e>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e0e:	9c 01       	movw	r18, r24
   38e10:	22 27       	eor	r18, r18
   38e12:	30 7a       	andi	r19, 0xA0	; 160
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
   38e14:	23 2b       	or	r18, r19
   38e16:	09 f0       	breq	.+2      	; 0x38e1a <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1c4>
   38e18:	57 c0       	rjmp	.+174    	; 0x38ec8 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x272>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e1a:	88 27       	eor	r24, r24
   38e1c:	90 7c       	andi	r25, 0xC0	; 192
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_PULLEY_TOO_HOT);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
   38e1e:	89 2b       	or	r24, r25
   38e20:	09 f4       	brne	.+2      	; 0x38e24 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1ce>
   38e22:	68 c0       	rjmp	.+208    	; 0x38ef4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x29e>
            return FindErrorIndex(ERR_TEMPERATURE_TMC_PULLEY_OVERHEAT_ERROR);
   38e24:	8f e0       	ldi	r24, 0x0F	; 15
   38e26:	08 95       	ret
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e28:	9c 01       	movw	r18, r24
   38e2a:	22 27       	eor	r18, r18
   38e2c:	32 78       	andi	r19, 0x82	; 130
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
            return FindErrorIndex(ERR_TEMPERATURE_TMC_PULLEY_OVERHEAT_ERROR);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
   38e2e:	23 2b       	or	r18, r19
   38e30:	09 f0       	breq	.+2      	; 0x38e34 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1de>
   38e32:	4c c0       	rjmp	.+152    	; 0x38ecc <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x276>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e34:	9c 01       	movw	r18, r24
   38e36:	22 27       	eor	r18, r18
   38e38:	34 78       	andi	r19, 0x84	; 132
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
   38e3a:	23 2b       	or	r18, r19
   38e3c:	09 f0       	breq	.+2      	; 0x38e40 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1ea>
   38e3e:	48 c0       	rjmp	.+144    	; 0x38ed0 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x27a>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e40:	9c 01       	movw	r18, r24
   38e42:	22 27       	eor	r18, r18
   38e44:	38 78       	andi	r19, 0x88	; 136
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
   38e46:	23 2b       	or	r18, r19
   38e48:	09 f0       	breq	.+2      	; 0x38e4c <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x1f6>
   38e4a:	44 c0       	rjmp	.+136    	; 0x38ed4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x27e>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e4c:	9c 01       	movw	r18, r24
   38e4e:	22 27       	eor	r18, r18
   38e50:	30 79       	andi	r19, 0x90	; 144
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
   38e52:	23 2b       	or	r18, r19
   38e54:	09 f0       	breq	.+2      	; 0x38e58 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x202>
   38e56:	40 c0       	rjmp	.+128    	; 0x38ed8 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x282>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e58:	9c 01       	movw	r18, r24
   38e5a:	22 27       	eor	r18, r18
   38e5c:	30 7a       	andi	r19, 0xA0	; 160
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
   38e5e:	23 2b       	or	r18, r19
   38e60:	e9 f5       	brne	.+122    	; 0x38edc <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x286>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e62:	88 27       	eor	r24, r24
   38e64:	90 7c       	andi	r25, 0xC0	; 192
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_SELECTOR_TOO_HOT);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
   38e66:	89 2b       	or	r24, r25
   38e68:	09 f4       	brne	.+2      	; 0x38e6c <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x216>
   38e6a:	44 c0       	rjmp	.+136    	; 0x38ef4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x29e>
            return FindErrorIndex(ERR_TEMPERATURE_TMC_SELECTOR_OVERHEAT_ERROR);
   38e6c:	80 e1       	ldi	r24, 0x10	; 16
   38e6e:	08 95       	ret
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
   38e70:	23 2b       	or	r18, r19
   38e72:	09 f4       	brne	.+2      	; 0x38e76 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x220>
   38e74:	3f c0       	rjmp	.+126    	; 0x38ef4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x29e>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e76:	9c 01       	movw	r18, r24
   38e78:	22 27       	eor	r18, r18
   38e7a:	32 78       	andi	r19, 0x82	; 130
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
            return FindErrorIndex(ERR_TEMPERATURE_TMC_SELECTOR_OVERHEAT_ERROR);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
   38e7c:	23 2b       	or	r18, r19
   38e7e:	81 f5       	brne	.+96     	; 0x38ee0 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x28a>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e80:	9c 01       	movw	r18, r24
   38e82:	22 27       	eor	r18, r18
   38e84:	34 78       	andi	r19, 0x84	; 132
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
   38e86:	23 2b       	or	r18, r19
   38e88:	69 f5       	brne	.+90     	; 0x38ee4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x28e>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e8a:	9c 01       	movw	r18, r24
   38e8c:	22 27       	eor	r18, r18
   38e8e:	38 78       	andi	r19, 0x88	; 136
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
   38e90:	23 2b       	or	r18, r19
   38e92:	51 f5       	brne	.+84     	; 0x38ee8 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x292>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e94:	9c 01       	movw	r18, r24
   38e96:	22 27       	eor	r18, r18
   38e98:	30 79       	andi	r19, 0x90	; 144
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_RESET);
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
   38e9a:	23 2b       	or	r18, r19
   38e9c:	39 f5       	brne	.+78     	; 0x38eec <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x296>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38e9e:	9c 01       	movw	r18, r24
   38ea0:	22 27       	eor	r18, r18
   38ea2:	30 7a       	andi	r19, 0xA0	; 160
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_UNDERVOLTAGE_ERROR);
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
   38ea4:	23 2b       	or	r18, r19
   38ea6:	21 f5       	brne	.+72     	; 0x38ef0 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x29a>
constexpr ErrorCode operator&(ErrorCode a, ErrorCode b) {
    return (ErrorCode)((uint16_t)a & (uint16_t)b);
}

constexpr bool ContainsBit(ErrorCode ec, ErrorCode mask) {
    return (uint16_t)ec & (uint16_t)mask;
   38ea8:	88 27       	eor	r24, r24
   38eaa:	90 7c       	andi	r25, 0xC0	; 192
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_SHORTED);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_IDLER_TOO_HOT);
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
   38eac:	89 2b       	or	r24, r25
   38eae:	11 f1       	breq	.+68     	; 0x38ef4 <MMU2::PrusaErrorCodeIndex(ErrorCode)+0x29e>
            return FindErrorIndex(ERR_TEMPERATURE_TMC_IDLER_OVERHEAT_ERROR);
   38eb0:	81 e1       	ldi	r24, 0x11	; 17
   38eb2:	08 95       	ret
}

uint8_t PrusaErrorCodeIndex(ErrorCode ec) {
    switch (ec) {
    case ErrorCode::FINDA_DIDNT_SWITCH_ON:
        return FindErrorIndex(ERR_MECHANICAL_FINDA_DIDNT_TRIGGER);
   38eb4:	80 e0       	ldi	r24, 0x00	; 0
   38eb6:	08 95       	ret
    // TMC-related errors - multiple of these can occur at once
    // - in such a case we report the first which gets found/converted into Prusa-Error-Codes (usually the fact, that one TMC has an issue is serious enough)
    // By carefully ordering the checks here we can prioritize the errors being reported to the user.
    if (ContainsBit(ec, ErrorCode::TMC_PULLEY_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_ERROR);
   38eb8:	82 e1       	ldi	r24, 0x12	; 18
   38eba:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_RESET);
   38ebc:	85 e1       	ldi	r24, 0x15	; 21
   38ebe:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_UNDERVOLTAGE_ERROR);
   38ec0:	88 e1       	ldi	r24, 0x18	; 24
   38ec2:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_PULLEY_DRIVER_SHORTED);
   38ec4:	8b e1       	ldi	r24, 0x1B	; 27
   38ec6:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_PULLEY_TOO_HOT);
   38ec8:	8c e0       	ldi	r24, 0x0C	; 12
   38eca:	08 95       	ret
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
            return FindErrorIndex(ERR_TEMPERATURE_TMC_PULLEY_OVERHEAT_ERROR);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_SELECTOR_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_ERROR);
   38ecc:	83 e1       	ldi	r24, 0x13	; 19
   38ece:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_RESET);
   38ed0:	86 e1       	ldi	r24, 0x16	; 22
   38ed2:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_UNDERVOLTAGE_ERROR);
   38ed4:	89 e1       	ldi	r24, 0x19	; 25
   38ed6:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_SELECTOR_DRIVER_SHORTED);
   38ed8:	8c e1       	ldi	r24, 0x1C	; 28
   38eda:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_SELECTOR_TOO_HOT);
   38edc:	8d e0       	ldi	r24, 0x0D	; 13
   38ede:	08 95       	ret
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_ERROR)) {
            return FindErrorIndex(ERR_TEMPERATURE_TMC_SELECTOR_OVERHEAT_ERROR);
        }
    } else if (ContainsBit(ec, ErrorCode::TMC_IDLER_BIT)) {
        if (ContainsBit(ec, ErrorCode::TMC_IOIN_MISMATCH)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_ERROR);
   38ee0:	84 e1       	ldi	r24, 0x14	; 20
   38ee2:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_RESET)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_RESET);
   38ee4:	87 e1       	ldi	r24, 0x17	; 23
   38ee6:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_UNDERVOLTAGE_ON_CHARGE_PUMP)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_UNDERVOLTAGE_ERROR);
   38ee8:	8a e1       	ldi	r24, 0x1A	; 26
   38eea:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_SHORT_TO_GROUND)) {
            return FindErrorIndex(ERR_ELECTRICAL_TMC_IDLER_DRIVER_SHORTED);
   38eec:	8d e1       	ldi	r24, 0x1D	; 29
   38eee:	08 95       	ret
        }
        if (ContainsBit(ec, ErrorCode::TMC_OVER_TEMPERATURE_WARN)) {
            return FindErrorIndex(ERR_TEMPERATURE_WARNING_TMC_IDLER_TOO_HOT);
   38ef0:	8e e0       	ldi	r24, 0x0E	; 14
   38ef2:	08 95       	ret
            return FindErrorIndex(ERR_TEMPERATURE_TMC_IDLER_OVERHEAT_ERROR);
        }
    }

    // if nothing got caught, return a generic error
    return FindErrorIndex(ERR_OTHER_UNKNOWN_ERROR);
   38ef4:	8c e2       	ldi	r24, 0x2C	; 44
}
   38ef6:	08 95       	ret

00038ef8 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]>:

bool TuneMenuEntered() {
    return putErrorScreenToSleep;
}

void ReportErrorHook(CommandInProgress /*cip*/, ErrorCode ec, uint8_t /*es*/) {
   38ef8:	cf 92       	push	r12
   38efa:	df 92       	push	r13
   38efc:	ef 92       	push	r14
   38efe:	ff 92       	push	r15
   38f00:	0f 93       	push	r16
   38f02:	1f 93       	push	r17
   38f04:	cf 93       	push	r28
   38f06:	df 93       	push	r29
    if (putErrorScreenToSleep) return;

    if (mmu2.MMUCurrentErrorCode() == ErrorCode::OK && mmu2.MMULastErrorSource() == MMU2::ErrorSourceMMU) {
   38f08:	20 91 8b 13 	lds	r18, 0x138B	; 0x80138b <MMU2::mmu2+0x40>
   38f0c:	30 91 8c 13 	lds	r19, 0x138C	; 0x80138c <MMU2::mmu2+0x41>
   38f10:	21 30       	cpi	r18, 0x01	; 1
   38f12:	31 05       	cpc	r19, r1
   38f14:	39 f4       	brne	.+14     	; 0x38f24 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x2c>
   38f16:	20 91 b4 13 	lds	r18, 0x13B4	; 0x8013b4 <MMU2::mmu2+0x69>
   38f1a:	21 30       	cpi	r18, 0x01	; 1
   38f1c:	19 f4       	brne	.+6      	; 0x38f24 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x2c>
        // If the error code suddenly changes to OK, that means
        // a button was pushed on the MMU and the LCD should
        // dismiss the error screen until MMU raises a new error
        ReportErrorHookState = ReportErrorHookStates::DISMISS_ERROR_SCREEN;
   38f1e:	22 e0       	ldi	r18, 0x02	; 2
   38f20:	20 93 f6 17 	sts	0x17F6, r18	; 0x8017f6 <MMU2::ReportErrorHookState>
    }

    const uint8_t ei = PrusaErrorCodeIndex((ErrorCode)ec);
   38f24:	0f 94 2b c6 	call	0x38c56	; 0x38c56 <MMU2::PrusaErrorCodeIndex(ErrorCode)>
   38f28:	d8 2f       	mov	r29, r24

    switch ((uint8_t)ReportErrorHookState) {
   38f2a:	80 91 f6 17 	lds	r24, 0x17F6	; 0x8017f6 <MMU2::ReportErrorHookState>
   38f2e:	81 30       	cpi	r24, 0x01	; 1
   38f30:	09 f4       	brne	.+2      	; 0x38f34 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x3c>
   38f32:	64 c0       	rjmp	.+200    	; 0x38ffc <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x104>
   38f34:	60 f0       	brcs	.+24     	; 0x38f4e <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x56>
   38f36:	82 30       	cpi	r24, 0x02	; 2
   38f38:	09 f4       	brne	.+2      	; 0x38f3c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x44>
   38f3a:	f4 c0       	rjmp	.+488    	; 0x39124 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x22c>
        ReportErrorHookState = ReportErrorHookStates::RENDER_ERROR_SCREEN;
        break;
    default:
        break;
    }
}
   38f3c:	df 91       	pop	r29
   38f3e:	cf 91       	pop	r28
   38f40:	1f 91       	pop	r17
   38f42:	0f 91       	pop	r16
   38f44:	ff 90       	pop	r15
   38f46:	ef 90       	pop	r14
   38f48:	df 90       	pop	r13
   38f4a:	cf 90       	pop	r12
   38f4c:	08 95       	ret

    const uint8_t ei = PrusaErrorCodeIndex((ErrorCode)ec);

    switch ((uint8_t)ReportErrorHookState) {
    case (uint8_t)ReportErrorHookStates::RENDER_ERROR_SCREEN:
        KEEPALIVE_STATE(PAUSED_FOR_USER);
   38f4e:	84 e0       	ldi	r24, 0x04	; 4
   38f50:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
const char *PrusaErrorDesc(uint8_t i) {
    return (const char *)pgm_read_ptr(errorDescs + i);
}

uint8_t PrusaErrorButtons(uint8_t i) {
    return pgm_read_byte(errorButtons + i);
   38f54:	0d 2f       	mov	r16, r29
   38f56:	10 e0       	ldi	r17, 0x00	; 0
   38f58:	f8 01       	movw	r30, r16
   38f5a:	e3 58       	subi	r30, 0x83	; 131
   38f5c:	f4 45       	sbci	r31, 0x54	; 84
   38f5e:	c4 91       	lpm	r28, Z
    //! |>Retry   >Done    >W|     <- buttons
    bool two_choices = false;

    // Read and determine what operations should be shown on the menu
    const uint8_t button_operation   = PrusaErrorButtons(ei);
    const uint8_t button_op_right = BUTTON_OP_RIGHT(button_operation);
   38f60:	fc 2e       	mov	r15, r28
   38f62:	f2 94       	swap	r15
   38f64:	6f e0       	ldi	r22, 0x0F	; 15
   38f66:	f6 22       	and	r15, r22
    const uint8_t button_op_middle  = BUTTON_OP_MIDDLE(button_operation);
   38f68:	cf 70       	andi	r28, 0x0F	; 15
    if (button_op_right == (uint8_t)ButtonOperations::NoOperation){
        // Two operations not specified, the error menu should only show two choices
        two_choices = true;
    }

    lcd_update_enable(false);
   38f6a:	80 e0       	ldi	r24, 0x00	; 0
   38f6c:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
    lcd_clear();
   38f70:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
    // if nothing got caught, return a generic error
    return FindErrorIndex(ERR_OTHER_UNKNOWN_ERROR);
}

uint16_t PrusaErrorCode(uint8_t i) {
    return pgm_read_word(errorCodes + i);
   38f74:	00 0f       	add	r16, r16
   38f76:	11 1f       	adc	r17, r17
   38f78:	f8 01       	movw	r30, r16
   38f7a:	e6 55       	subi	r30, 0x56	; 86
   38f7c:	f4 45       	sbci	r31, 0x54	; 84
   38f7e:	c5 90       	lpm	r12, Z+
   38f80:	d4 90       	lpm	r13, Z
}

const char *PrusaErrorTitle(uint8_t i) {
    return (const char *)pgm_read_ptr(errorTitles + i);
   38f82:	0b 5b       	subi	r16, 0xBB	; 187
   38f84:	17 45       	sbci	r17, 0x57	; 87
   38f86:	f8 01       	movw	r30, r16
   38f88:	85 91       	lpm	r24, Z+
   38f8a:	94 91       	lpm	r25, Z

    // Print title and header
    lcd_printf_P(PSTR("%.20S\nprusa.io/04%hu"), _T(PrusaErrorTitle(ei)), PrusaErrorCode(ei) );
   38f8c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   38f90:	df 92       	push	r13
   38f92:	cf 92       	push	r12
   38f94:	9f 93       	push	r25
   38f96:	8f 93       	push	r24
   38f98:	86 e1       	ldi	r24, 0x16	; 22
   38f9a:	9c ea       	ldi	r25, 0xAC	; 172
   38f9c:	9f 93       	push	r25
   38f9e:	8f 93       	push	r24
   38fa0:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
    lcd_show_choices_prompt_P(two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE, _T(PrusaErrorButtonTitle(button_op_middle)), two_choices ? PrusaErrorButtonMore() : _T(PrusaErrorButtonTitle(button_op_right)), two_choices ? 18 : 9, two_choices ? nullptr : PrusaErrorButtonMore());
}

void ReportErrorHookSensorLineRender(){
    // Render static characters in third line
    lcd_puts_at_P(0, 2, PSTR("FI:  FS:    >  " LCD_STR_THERMOMETER "   " LCD_STR_DEGREE));
   38fa4:	4d eb       	ldi	r20, 0xBD	; 189
   38fa6:	58 ea       	ldi	r21, 0xA8	; 168
   38fa8:	62 e0       	ldi	r22, 0x02	; 2
   38faa:	80 e0       	ldi	r24, 0x00	; 0
   38fac:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
    lcd_printf_P(PSTR("%.20S\nprusa.io/04%hu"), _T(PrusaErrorTitle(ei)), PrusaErrorCode(ei) );

    ReportErrorHookSensorLineRender();

    // Render the choices
    lcd_show_choices_prompt_P(two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE, _T(PrusaErrorButtonTitle(button_op_middle)), two_choices ? PrusaErrorButtonMore() : _T(PrusaErrorButtonTitle(button_op_right)), two_choices ? 18 : 9, two_choices ? nullptr : PrusaErrorButtonMore());
   38fb0:	0f 90       	pop	r0
   38fb2:	0f 90       	pop	r0
   38fb4:	0f 90       	pop	r0
   38fb6:	0f 90       	pop	r0
   38fb8:	0f 90       	pop	r0
   38fba:	0f 90       	pop	r0
   38fbc:	f1 10       	cpse	r15, r1
   38fbe:	c6 c0       	rjmp	.+396    	; 0x3914c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x254>
   38fc0:	10 e0       	ldi	r17, 0x00	; 0
   38fc2:	00 e0       	ldi	r16, 0x00	; 0
   38fc4:	42 e1       	ldi	r20, 0x12	; 18
   38fc6:	e4 2e       	mov	r14, r20
   38fc8:	5c e5       	ldi	r21, 0x5C	; 92
   38fca:	c5 2e       	mov	r12, r21
   38fcc:	50 e7       	ldi	r21, 0x70	; 112
   38fce:	d5 2e       	mov	r13, r21
    return pgm_read_byte(errorButtons + i);
}

const char *PrusaErrorButtonTitle(uint8_t bi) {
    // -1 represents the hidden NoOperation button which is not drawn in any way
    return (const char *)pgm_read_ptr(btnOperation + bi - 1);
   38fd0:	ec 2f       	mov	r30, r28
   38fd2:	f0 e0       	ldi	r31, 0x00	; 0
   38fd4:	ee 0f       	add	r30, r30
   38fd6:	ff 1f       	adc	r31, r31
   38fd8:	ee 5f       	subi	r30, 0xFE	; 254
   38fda:	f3 45       	sbci	r31, 0x53	; 83
   38fdc:	85 91       	lpm	r24, Z+
   38fde:	94 91       	lpm	r25, Z
   38fe0:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   38fe4:	bc 01       	movw	r22, r24
   38fe6:	81 e0       	ldi	r24, 0x01	; 1
   38fe8:	f1 10       	cpse	r15, r1
   38fea:	01 c0       	rjmp	.+2      	; 0x38fee <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0xf6>
   38fec:	80 e0       	ldi	r24, 0x00	; 0
   38fee:	2e 2d       	mov	r18, r14
   38ff0:	a6 01       	movw	r20, r12
   38ff2:	0f 94 9f 20 	call	0x2413e	; 0x2413e <lcd_show_choices_prompt_P(unsigned char, char const*, char const*, unsigned char, char const*)>

    switch ((uint8_t)ReportErrorHookState) {
    case (uint8_t)ReportErrorHookStates::RENDER_ERROR_SCREEN:
        KEEPALIVE_STATE(PAUSED_FOR_USER);
        ReportErrorHookStaticRender(ei);
        ReportErrorHookState = ReportErrorHookStates::MONITOR_SELECTION;
   38ff6:	81 e0       	ldi	r24, 0x01	; 1
   38ff8:	80 93 f6 17 	sts	0x17F6, r24	; 0x8017f6 <MMU2::ReportErrorHookState>
        [[fallthrough]];
    case (uint8_t)ReportErrorHookStates::MONITOR_SELECTION:
        is_mmu_error_monitor_active = true;
   38ffc:	81 e0       	ldi	r24, 0x01	; 1
   38ffe:	80 93 c3 06 	sts	0x06C3, r24	; 0x8006c3 <_ZN4MMU2L27is_mmu_error_monitor_activeE.lto_priv.492>
        ReportErrorHookDynamicRender(); // Render dynamic characters
   39002:	0f 94 35 c5 	call	0x38a6a	; 0x38a6a <MMU2::ReportErrorHookDynamicRender()>
        sound_wait_for_user();
   39006:	0f 94 2c 53 	call	0x2a658	; 0x2a658 <sound_wait_for_user()>
const char *PrusaErrorDesc(uint8_t i) {
    return (const char *)pgm_read_ptr(errorDescs + i);
}

uint8_t PrusaErrorButtons(uint8_t i) {
    return pgm_read_byte(errorButtons + i);
   3900a:	0d 2f       	mov	r16, r29
   3900c:	10 e0       	ldi	r17, 0x00	; 0
   3900e:	f8 01       	movw	r30, r16
   39010:	e3 58       	subi	r30, 0x83	; 131
   39012:	f4 45       	sbci	r31, 0x54	; 84
   39014:	c4 91       	lpm	r28, Z
    bool two_choices = false;
    static uint8_t reset_button_selection;

    // Read and determine what operations should be shown on the menu
    const uint8_t button_operation   = PrusaErrorButtons(ei);
    const uint8_t button_op_right = BUTTON_OP_RIGHT(button_operation);
   39016:	dc 2f       	mov	r29, r28
   39018:	d2 95       	swap	r29
   3901a:	df 70       	andi	r29, 0x0F	; 15
    if (button_op_right == (uint8_t)ButtonOperations::NoOperation){
        // Two operations not specified, the error menu should only show two choices
        two_choices = true;
    }

    static int8_t current_selection = two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE;
   3901c:	80 91 ee 17 	lds	r24, 0x17EE	; 0x8017ee <guard variable for MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
   39020:	81 11       	cpse	r24, r1
   39022:	09 c0       	rjmp	.+18     	; 0x39036 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x13e>
   39024:	81 e0       	ldi	r24, 0x01	; 1
   39026:	d1 11       	cpse	r29, r1
   39028:	01 c0       	rjmp	.+2      	; 0x3902c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x134>
   3902a:	80 e0       	ldi	r24, 0x00	; 0
   3902c:	80 93 ed 17 	sts	0x17ED, r24	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
   39030:	81 e0       	ldi	r24, 0x01	; 1
   39032:	80 93 ee 17 	sts	0x17EE, r24	; 0x8017ee <guard variable for MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
    static int8_t choice_selected = -1;

    if (reset_button_selection) {
   39036:	80 91 ec 17 	lds	r24, 0x17EC	; 0x8017ec <MMU2::ReportErrorHookMonitor(unsigned char)::reset_button_selection>
   3903a:	88 23       	and	r24, r24
   3903c:	41 f0       	breq	.+16     	; 0x3904e <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x156>
        // If a new error screen is shown, we must reset the button selection
        // Default selection is different depending on how many buttons are present
        current_selection = two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE;
   3903e:	81 e0       	ldi	r24, 0x01	; 1
   39040:	d1 11       	cpse	r29, r1
   39042:	01 c0       	rjmp	.+2      	; 0x39046 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x14e>
   39044:	80 e0       	ldi	r24, 0x00	; 0
   39046:	80 93 ed 17 	sts	0x17ED, r24	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
        choice_selected = -1;
        reset_button_selection = 0;
   3904a:	10 92 ec 17 	sts	0x17EC, r1	; 0x8017ec <MMU2::ReportErrorHookMonitor(unsigned char)::reset_button_selection>
    }

    // Check if knob was rotated
    if (lcd_encoder) {
   3904e:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   39052:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   39056:	21 15       	cp	r18, r1
   39058:	31 05       	cpc	r19, r1
   3905a:	b9 f1       	breq	.+110    	; 0x390ca <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1d2>
   3905c:	80 91 ed 17 	lds	r24, 0x17ED	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
        if (two_choices == false) { // third_choice is not nullptr, safe to dereference
   39060:	dd 23       	and	r29, r29
   39062:	61 f0       	breq	.+24     	; 0x3907c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x184>
            if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
   39064:	37 ff       	sbrs	r19, 7
   39066:	06 c0       	rjmp	.+12     	; 0x39074 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x17c>
   39068:	88 23       	and	r24, r24
   3906a:	69 f0       	breq	.+26     	; 0x39086 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x18e>
                // Rotating knob counter clockwise
                current_selection--;
   3906c:	81 50       	subi	r24, 0x01	; 1
            if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
                // Rotating knob counter clockwise
                current_selection = LCD_LEFT_BUTTON_CHOICE;
            } else if (lcd_encoder > 0 && current_selection != LCD_MIDDLE_BUTTON_CHOICE) {
                // Rotating knob clockwise
                current_selection = LCD_MIDDLE_BUTTON_CHOICE;
   3906e:	80 93 ed 17 	sts	0x17ED, r24	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
   39072:	09 c0       	rjmp	.+18     	; 0x39086 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x18e>
    if (lcd_encoder) {
        if (two_choices == false) { // third_choice is not nullptr, safe to dereference
            if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
                // Rotating knob counter clockwise
                current_selection--;
            } else if (lcd_encoder > 0 && current_selection != LCD_RIGHT_BUTTON_CHOICE) {
   39074:	82 30       	cpi	r24, 0x02	; 2
   39076:	39 f0       	breq	.+14     	; 0x39086 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x18e>
                // Rotating knob clockwise
                current_selection++;
   39078:	8f 5f       	subi	r24, 0xFF	; 255
   3907a:	f9 cf       	rjmp	.-14     	; 0x3906e <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x176>
            }
        } else {
            if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
   3907c:	37 ff       	sbrs	r19, 7
   3907e:	41 c0       	rjmp	.+130    	; 0x39102 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x20a>
   39080:	81 11       	cpse	r24, r1
                // Rotating knob counter clockwise
                current_selection = LCD_LEFT_BUTTON_CHOICE;
   39082:	10 92 ed 17 	sts	0x17ED, r1	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
        //! ----------------------
        //! |>(left)   >(mid)    |
        //! ----------------------
        //! @endcode
        //
        lcd_putc_at(0, 3, current_selection == LCD_LEFT_BUTTON_CHOICE ? '>': ' ');
   39086:	80 91 ed 17 	lds	r24, 0x17ED	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
   3908a:	4e e3       	ldi	r20, 0x3E	; 62
   3908c:	81 11       	cpse	r24, r1
   3908e:	40 e2       	ldi	r20, 0x20	; 32
   39090:	63 e0       	ldi	r22, 0x03	; 3
   39092:	80 e0       	ldi	r24, 0x00	; 0
   39094:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
   39098:	80 91 ed 17 	lds	r24, 0x17ED	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
        if (two_choices == false)
   3909c:	dd 23       	and	r29, r29
   3909e:	b1 f1       	breq	.+108    	; 0x3910c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x214>
        {
            lcd_putc_at(9, 3, current_selection == LCD_MIDDLE_BUTTON_CHOICE ? '>': ' ');
   390a0:	4e e3       	ldi	r20, 0x3E	; 62
   390a2:	81 30       	cpi	r24, 0x01	; 1
   390a4:	09 f0       	breq	.+2      	; 0x390a8 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1b0>
   390a6:	40 e2       	ldi	r20, 0x20	; 32
   390a8:	63 e0       	ldi	r22, 0x03	; 3
   390aa:	89 e0       	ldi	r24, 0x09	; 9
   390ac:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
            lcd_putc_at(18, 3, current_selection == LCD_RIGHT_BUTTON_CHOICE ? '>': ' ');
   390b0:	80 91 ed 17 	lds	r24, 0x17ED	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
   390b4:	82 30       	cpi	r24, 0x02	; 2
   390b6:	61 f5       	brne	.+88     	; 0x39110 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x218>
        } else {
            // More button for two button screen
            lcd_putc_at(18, 3, current_selection == LCD_MIDDLE_BUTTON_CHOICE ? '>': ' ');
   390b8:	4e e3       	ldi	r20, 0x3E	; 62
   390ba:	63 e0       	ldi	r22, 0x03	; 3
   390bc:	82 e1       	ldi	r24, 0x12	; 18
   390be:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
        }
        // Consume rotation event
        lcd_encoder = 0;
   390c2:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   390c6:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
    }

    // Check if knob was clicked and consume the event
    if (lcd_clicked()) {
   390ca:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   390ce:	88 23       	and	r24, r24
   390d0:	09 f4       	brne	.+2      	; 0x390d4 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1dc>
   390d2:	34 cf       	rjmp	.-408    	; 0x38f3c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x44>
        choice_selected = current_selection;
   390d4:	80 91 ed 17 	lds	r24, 0x17ED	; 0x8017ed <MMU2::ReportErrorHookMonitor(unsigned char)::current_selection>
    } else {
        // continue monitoring
        return ret;
    }

    if ((two_choices && choice_selected == LCD_MIDDLE_BUTTON_CHOICE)      // Two choices and middle button selected
   390d8:	d1 11       	cpse	r29, r1
   390da:	1c c0       	rjmp	.+56     	; 0x39114 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x21c>
   390dc:	81 30       	cpi	r24, 0x01	; 1
   390de:	89 f5       	brne	.+98     	; 0x39142 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x24a>
const char *PrusaErrorTitle(uint8_t i) {
    return (const char *)pgm_read_ptr(errorTitles + i);
}

const char *PrusaErrorDesc(uint8_t i) {
    return (const char *)pgm_read_ptr(errorDescs + i);
   390e0:	f8 01       	movw	r30, r16
   390e2:	ee 0f       	add	r30, r30
   390e4:	ff 1f       	adc	r31, r31
   390e6:	ed 5d       	subi	r30, 0xDD	; 221
   390e8:	f4 45       	sbci	r31, 0x54	; 84
   390ea:	85 91       	lpm	r24, Z+
   390ec:	94 91       	lpm	r25, Z
        || (!two_choices && choice_selected == LCD_RIGHT_BUTTON_CHOICE)) // Three choices and right most button selected
    {
        // 'More' show error description
        lcd_show_fullscreen_message_and_wait_P(_T(PrusaErrorDesc(ei)));
   390ee:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   390f2:	0f 94 fd 20 	call	0x241fa	; 0x241fa <lcd_show_fullscreen_message_and_wait_P(char const*)>
        SetButtonResponse((ButtonOperations)button_op_middle);
        ret = 2;
    }

    // Next MMU error screen should reset the choice selection
    reset_button_selection = 1;
   390f6:	81 e0       	ldi	r24, 0x01	; 1
   390f8:	80 93 ec 17 	sts	0x17EC, r24	; 0x8017ec <MMU2::ReportErrorHookMonitor(unsigned char)::reset_button_selection>
                lcd_return_to_status();
                sound_wait_for_user_reset();
                // Reset the state in case a new error is reported
                is_mmu_error_monitor_active = false;
                KEEPALIVE_STATE(IN_HANDLER);
                ReportErrorHookState = ReportErrorHookStates::RENDER_ERROR_SCREEN;
   390fc:	10 92 f6 17 	sts	0x17F6, r1	; 0x8017f6 <MMU2::ReportErrorHookState>
   39100:	1d cf       	rjmp	.-454    	; 0x38f3c <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x44>
            }
        } else {
            if (lcd_encoder < 0 && current_selection != LCD_LEFT_BUTTON_CHOICE) {
                // Rotating knob counter clockwise
                current_selection = LCD_LEFT_BUTTON_CHOICE;
            } else if (lcd_encoder > 0 && current_selection != LCD_MIDDLE_BUTTON_CHOICE) {
   39102:	81 30       	cpi	r24, 0x01	; 1
   39104:	09 f4       	brne	.+2      	; 0x39108 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x210>
   39106:	bf cf       	rjmp	.-130    	; 0x39086 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x18e>
                // Rotating knob clockwise
                current_selection = LCD_MIDDLE_BUTTON_CHOICE;
   39108:	81 e0       	ldi	r24, 0x01	; 1
   3910a:	b1 cf       	rjmp	.-158    	; 0x3906e <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x176>
        {
            lcd_putc_at(9, 3, current_selection == LCD_MIDDLE_BUTTON_CHOICE ? '>': ' ');
            lcd_putc_at(18, 3, current_selection == LCD_RIGHT_BUTTON_CHOICE ? '>': ' ');
        } else {
            // More button for two button screen
            lcd_putc_at(18, 3, current_selection == LCD_MIDDLE_BUTTON_CHOICE ? '>': ' ');
   3910c:	81 30       	cpi	r24, 0x01	; 1
   3910e:	a1 f2       	breq	.-88     	; 0x390b8 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1c0>
   39110:	40 e2       	ldi	r20, 0x20	; 32
   39112:	d3 cf       	rjmp	.-90     	; 0x390ba <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1c2>
        // continue monitoring
        return ret;
    }

    if ((two_choices && choice_selected == LCD_MIDDLE_BUTTON_CHOICE)      // Two choices and middle button selected
        || (!two_choices && choice_selected == LCD_RIGHT_BUTTON_CHOICE)) // Three choices and right most button selected
   39114:	82 30       	cpi	r24, 0x02	; 2
   39116:	21 f3       	breq	.-56     	; 0x390e0 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x1e8>
    {
        // 'More' show error description
        lcd_show_fullscreen_message_and_wait_P(_T(PrusaErrorDesc(ei)));
        ret = 1;
    } else if(choice_selected == LCD_MIDDLE_BUTTON_CHOICE) {
   39118:	81 30       	cpi	r24, 0x01	; 1
   3911a:	99 f4       	brne	.+38     	; 0x39142 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x24a>

    return Buttons::NoButton;
}

void SetButtonResponse(ButtonOperations rsp) {
    buttonSelectedOperation = rsp;
   3911c:	d0 93 ae 0d 	sts	0x0DAE, r29	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
        SetButtonResponse((ButtonOperations)button_op_middle);
        ret = 2;
    }

    // Next MMU error screen should reset the choice selection
    reset_button_selection = 1;
   39120:	80 93 ec 17 	sts	0x17EC, r24	; 0x8017ec <MMU2::ReportErrorHookMonitor(unsigned char)::reset_button_selection>
                // More button selected, change state
                ReportErrorHookState = ReportErrorHookStates::RENDER_ERROR_SCREEN;
                break;
            case 2:
                // Exit error screen and enable lcd updates
                lcd_update_enable(true);
   39124:	81 e0       	ldi	r24, 0x01	; 1
   39126:	0e 94 ac 6e 	call	0xdd58	; 0xdd58 <lcd_update_enable(unsigned char)>
                lcd_return_to_status();
   3912a:	0f 94 b2 1f 	call	0x23f64	; 0x23f64 <lcd_return_to_status()>
   3912e:	10 92 6b 05 	sts	0x056B, r1	; 0x80056b <_ZL10beep_timer.lto_priv.496>

/// @brief Resets the global state of sound_wait_for_user()
void sound_wait_for_user_reset()
{
     beep_timer.stop();
     bFirst = false;
   39132:	10 92 6e 05 	sts	0x056E, r1	; 0x80056e <_ZL6bFirst.lto_priv.497>
                sound_wait_for_user_reset();
                // Reset the state in case a new error is reported
                is_mmu_error_monitor_active = false;
   39136:	10 92 c3 06 	sts	0x06C3, r1	; 0x8006c3 <_ZN4MMU2L27is_mmu_error_monitor_activeE.lto_priv.492>
                KEEPALIVE_STATE(IN_HANDLER);
   3913a:	82 e0       	ldi	r24, 0x02	; 2
   3913c:	80 93 be 02 	sts	0x02BE, r24	; 0x8002be <busy_state>
   39140:	dd cf       	rjmp	.-70     	; 0x390fc <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x204>
    static uint8_t reset_button_selection;

    // Read and determine what operations should be shown on the menu
    const uint8_t button_operation   = PrusaErrorButtons(ei);
    const uint8_t button_op_right = BUTTON_OP_RIGHT(button_operation);
    const uint8_t button_op_middle  = BUTTON_OP_MIDDLE(button_operation);
   39142:	cf 70       	andi	r28, 0x0F	; 15
   39144:	c0 93 ae 0d 	sts	0x0DAE, r28	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
        SetButtonResponse((ButtonOperations)button_op_middle);
        ret = 2;
    }

    // Next MMU error screen should reset the choice selection
    reset_button_selection = 1;
   39148:	81 e0       	ldi	r24, 0x01	; 1
   3914a:	ea cf       	rjmp	.-44     	; 0x39120 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0x228>
    return pgm_read_byte(errorButtons + i);
}

const char *PrusaErrorButtonTitle(uint8_t bi) {
    // -1 represents the hidden NoOperation button which is not drawn in any way
    return (const char *)pgm_read_ptr(btnOperation + bi - 1);
   3914c:	ef 2d       	mov	r30, r15
   3914e:	f0 e0       	ldi	r31, 0x00	; 0
   39150:	ee 0f       	add	r30, r30
   39152:	ff 1f       	adc	r31, r31
   39154:	ee 5f       	subi	r30, 0xFE	; 254
   39156:	f3 45       	sbci	r31, 0x53	; 83
   39158:	85 91       	lpm	r24, Z+
   3915a:	94 91       	lpm	r25, Z
    lcd_printf_P(PSTR("%.20S\nprusa.io/04%hu"), _T(PrusaErrorTitle(ei)), PrusaErrorCode(ei) );

    ReportErrorHookSensorLineRender();

    // Render the choices
    lcd_show_choices_prompt_P(two_choices ? LCD_LEFT_BUTTON_CHOICE : LCD_MIDDLE_BUTTON_CHOICE, _T(PrusaErrorButtonTitle(button_op_middle)), two_choices ? PrusaErrorButtonMore() : _T(PrusaErrorButtonTitle(button_op_right)), two_choices ? 18 : 9, two_choices ? nullptr : PrusaErrorButtonMore());
   3915c:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   39160:	6c 01       	movw	r12, r24
   39162:	0c e5       	ldi	r16, 0x5C	; 92
   39164:	10 e7       	ldi	r17, 0x70	; 112
   39166:	99 e0       	ldi	r25, 0x09	; 9
   39168:	e9 2e       	mov	r14, r25
   3916a:	32 cf       	rjmp	.-412    	; 0x38fd0 <MMU2::ReportErrorHook(MMU2::CommandInProgress, ErrorCode, unsigned char) [clone .part.6]+0xd8>

0003916c <MMU2::ButtonAvailable(ErrorCode)>:
    buttonSelectedOperation = ButtonOperations::NoOperation; // Reset operation
    return result;
}

Buttons ButtonAvailable(ErrorCode ec) {
    uint8_t ei = PrusaErrorCodeIndex(ec);
   3916c:	0f 94 2b c6 	call	0x38c56	; 0x38c56 <MMU2::PrusaErrorCodeIndex(ErrorCode)>
    // if nothing got caught, return a generic error
    return FindErrorIndex(ERR_OTHER_UNKNOWN_ERROR);
}

uint16_t PrusaErrorCode(uint8_t i) {
    return pgm_read_word(errorCodes + i);
   39170:	e8 2f       	mov	r30, r24
   39172:	f0 e0       	ldi	r31, 0x00	; 0
   39174:	ee 0f       	add	r30, r30
   39176:	ff 1f       	adc	r31, r31
   39178:	e6 55       	subi	r30, 0x56	; 86
   3917a:	f4 45       	sbci	r31, 0x54	; 84
   3917c:	25 91       	lpm	r18, Z+
   3917e:	34 91       	lpm	r19, Z

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   39180:	23 33       	cpi	r18, 0x33	; 51
   39182:	81 e0       	ldi	r24, 0x01	; 1
   39184:	38 07       	cpc	r19, r24
   39186:	08 f0       	brcs	.+2      	; 0x3918a <MMU2::ButtonAvailable(ErrorCode)+0x1e>
   39188:	41 c0       	rjmp	.+130    	; 0x3920c <MMU2::ButtonAvailable(ErrorCode)+0xa0>
   3918a:	2d 32       	cpi	r18, 0x2D	; 45
   3918c:	81 e0       	ldi	r24, 0x01	; 1
   3918e:	38 07       	cpc	r19, r24
   39190:	78 f5       	brcc	.+94     	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   39192:	2e 37       	cpi	r18, 0x7E	; 126
   39194:	31 05       	cpc	r19, r1
   39196:	09 f4       	brne	.+2      	; 0x3919a <MMU2::ButtonAvailable(ErrorCode)+0x2e>
   39198:	83 c0       	rjmp	.+262    	; 0x392a0 <MMU2::ButtonAvailable(ErrorCode)+0x134>
   3919a:	f0 f4       	brcc	.+60     	; 0x391d8 <MMU2::ButtonAvailable(ErrorCode)+0x6c>
   3919c:	2c 36       	cpi	r18, 0x6C	; 108
   3919e:	31 05       	cpc	r19, r1
   391a0:	09 f4       	brne	.+2      	; 0x391a4 <MMU2::ButtonAvailable(ErrorCode)+0x38>
   391a2:	85 c0       	rjmp	.+266    	; 0x392ae <MMU2::ButtonAvailable(ErrorCode)+0x142>
   391a4:	30 f4       	brcc	.+12     	; 0x391b2 <MMU2::ButtonAvailable(ErrorCode)+0x46>
   391a6:	25 36       	cpi	r18, 0x65	; 101
   391a8:	31 05       	cpc	r19, r1
   391aa:	08 f0       	brcs	.+2      	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
   391ac:	79 c0       	rjmp	.+242    	; 0x392a0 <MMU2::ButtonAvailable(ErrorCode)+0x134>

    default:
        break;
    }

    return Buttons::NoButton;
   391ae:	8f ef       	ldi	r24, 0xFF	; 255
   391b0:	08 95       	ret

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   391b2:	24 37       	cpi	r18, 0x74	; 116
   391b4:	31 05       	cpc	r19, r1
   391b6:	09 f4       	brne	.+2      	; 0x391ba <MMU2::ButtonAvailable(ErrorCode)+0x4e>
   391b8:	73 c0       	rjmp	.+230    	; 0x392a0 <MMU2::ButtonAvailable(ErrorCode)+0x134>
   391ba:	2d 37       	cpi	r18, 0x7D	; 125
   391bc:	31 05       	cpc	r19, r1
   391be:	19 f0       	breq	.+6      	; 0x391c6 <MMU2::ButtonAvailable(ErrorCode)+0x5a>
   391c0:	23 37       	cpi	r18, 0x73	; 115
   391c2:	31 05       	cpc	r19, r1
   391c4:	a1 f7       	brne	.-24     	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
            break;
        }
        break;
    case ERR_MECHANICAL_SELECTOR_CANNOT_HOME:
    case ERR_MECHANICAL_IDLER_CANNOT_HOME:
        switch (buttonSelectedOperation) {
   391c6:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   391ca:	81 30       	cpi	r24, 0x01	; 1
   391cc:	09 f4       	brne	.+2      	; 0x391d0 <MMU2::ButtonAvailable(ErrorCode)+0x64>
   391ce:	6d c0       	rjmp	.+218    	; 0x392aa <MMU2::ButtonAvailable(ErrorCode)+0x13e>
   391d0:	87 30       	cpi	r24, 0x07	; 7
   391d2:	69 f7       	brne	.-38     	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        // may be allow move selector right and left in the future
        case ButtonOperations::Tune: // Tune Stallguard threshold
            return Buttons::TuneMMU;
   391d4:	88 e0       	ldi	r24, 0x08	; 8
   391d6:	08 95       	ret

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   391d8:	23 3d       	cpi	r18, 0xD3	; 211
   391da:	31 05       	cpc	r19, r1
   391dc:	09 f4       	brne	.+2      	; 0x391e0 <MMU2::ButtonAvailable(ErrorCode)+0x74>
   391de:	6e c0       	rjmp	.+220    	; 0x392bc <MMU2::ButtonAvailable(ErrorCode)+0x150>
   391e0:	50 f4       	brcc	.+20     	; 0x391f6 <MMU2::ButtonAvailable(ErrorCode)+0x8a>
   391e2:	29 3c       	cpi	r18, 0xC9	; 201
   391e4:	31 05       	cpc	r19, r1
   391e6:	09 f4       	brne	.+2      	; 0x391ea <MMU2::ButtonAvailable(ErrorCode)+0x7e>
   391e8:	69 c0       	rjmp	.+210    	; 0x392bc <MMU2::ButtonAvailable(ErrorCode)+0x150>
   391ea:	2a 3c       	cpi	r18, 0xCA	; 202
   391ec:	31 05       	cpc	r19, r1
   391ee:	f9 f6       	brne	.-66     	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
    case ERR_ELECTRICAL_MMU_IDLER_SELFTEST_FAILED:

    case ERR_SYSTEM_QUEUE_FULL:
    case ERR_SYSTEM_FW_RUNTIME_ERROR:
    case ERR_ELECTRICAL_MMU_MCU_ERROR:
        switch (buttonSelectedOperation) {
   391f0:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   391f4:	67 c0       	rjmp	.+206    	; 0x392c4 <MMU2::ButtonAvailable(ErrorCode)+0x158>

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   391f6:	2d 3d       	cpi	r18, 0xDD	; 221
   391f8:	31 05       	cpc	r19, r1
   391fa:	09 f4       	brne	.+2      	; 0x391fe <MMU2::ButtonAvailable(ErrorCode)+0x92>
   391fc:	5f c0       	rjmp	.+190    	; 0x392bc <MMU2::ButtonAvailable(ErrorCode)+0x150>
   391fe:	2e 3d       	cpi	r18, 0xDE	; 222
   39200:	31 05       	cpc	r19, r1
   39202:	b1 f3       	breq	.-20     	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   39204:	24 3d       	cpi	r18, 0xD4	; 212
   39206:	31 05       	cpc	r19, r1
   39208:	91 f6       	brne	.-92     	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
   3920a:	f2 cf       	rjmp	.-28     	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   3920c:	25 3f       	cpi	r18, 0xF5	; 245
   3920e:	81 e0       	ldi	r24, 0x01	; 1
   39210:	38 07       	cpc	r19, r24
   39212:	09 f4       	brne	.+2      	; 0x39216 <MMU2::ButtonAvailable(ErrorCode)+0xaa>
   39214:	5c c0       	rjmp	.+184    	; 0x392ce <MMU2::ButtonAvailable(ErrorCode)+0x162>
   39216:	f8 f4       	brcc	.+62     	; 0x39256 <MMU2::ButtonAvailable(ErrorCode)+0xea>
   39218:	26 34       	cpi	r18, 0x46	; 70
   3921a:	81 e0       	ldi	r24, 0x01	; 1
   3921c:	38 07       	cpc	r19, r24
   3921e:	58 f4       	brcc	.+22     	; 0x39236 <MMU2::ButtonAvailable(ErrorCode)+0xca>
   39220:	21 34       	cpi	r18, 0x41	; 65
   39222:	81 e0       	ldi	r24, 0x01	; 1
   39224:	38 07       	cpc	r19, r24
   39226:	20 f7       	brcc	.-56     	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   39228:	27 53       	subi	r18, 0x37	; 55
   3922a:	31 40       	sbci	r19, 0x01	; 1
   3922c:	25 30       	cpi	r18, 0x05	; 5
   3922e:	31 05       	cpc	r19, r1
   39230:	08 f0       	brcs	.+2      	; 0x39234 <MMU2::ButtonAvailable(ErrorCode)+0xc8>
   39232:	bd cf       	rjmp	.-134    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
   39234:	dd cf       	rjmp	.-70     	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   39236:	21 59       	subi	r18, 0x91	; 145
   39238:	31 40       	sbci	r19, 0x01	; 1
   3923a:	22 30       	cpi	r18, 0x02	; 2
   3923c:	31 05       	cpc	r19, r1
   3923e:	08 f0       	brcs	.+2      	; 0x39242 <MMU2::ButtonAvailable(ErrorCode)+0xd6>
   39240:	b6 cf       	rjmp	.-148    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        }
        break;
    case ERR_CONNECT_MMU_NOT_RESPONDING:
    case ERR_CONNECT_COMMUNICATION_ERROR:
    case ERR_SYSTEM_FW_UPDATE_NEEDED:
        switch (buttonSelectedOperation) {
   39242:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   39246:	83 30       	cpi	r24, 0x03	; 3
   39248:	09 f4       	brne	.+2      	; 0x3924c <MMU2::ButtonAvailable(ErrorCode)+0xe0>
   3924a:	3f c0       	rjmp	.+126    	; 0x392ca <MMU2::ButtonAvailable(ErrorCode)+0x15e>
   3924c:	89 30       	cpi	r24, 0x09	; 9
   3924e:	09 f0       	breq	.+2      	; 0x39252 <MMU2::ButtonAvailable(ErrorCode)+0xe6>
   39250:	ae cf       	rjmp	.-164    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        case ButtonOperations::DisableMMU: // "Disable"
            return Buttons::DisableMMU;
   39252:	87 e0       	ldi	r24, 0x07	; 7
   39254:	08 95       	ret

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   39256:	29 3f       	cpi	r18, 0xF9	; 249
   39258:	81 e0       	ldi	r24, 0x01	; 1
   3925a:	38 07       	cpc	r19, r24
   3925c:	49 f2       	breq	.-110    	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   3925e:	70 f4       	brcc	.+28     	; 0x3927c <MMU2::ButtonAvailable(ErrorCode)+0x110>
   39260:	27 3f       	cpi	r18, 0xF7	; 247
   39262:	81 e0       	ldi	r24, 0x01	; 1
   39264:	38 07       	cpc	r19, r24
   39266:	21 f2       	breq	.-120    	; 0x391f0 <MMU2::ButtonAvailable(ErrorCode)+0x84>
   39268:	60 f7       	brcc	.-40     	; 0x39242 <MMU2::ButtonAvailable(ErrorCode)+0xd6>
            break;
        }
        break;

    case ERR_SYSTEM_INVALID_TOOL:
        switch (buttonSelectedOperation) {
   3926a:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   3926e:	83 30       	cpi	r24, 0x03	; 3
   39270:	61 f1       	breq	.+88     	; 0x392ca <MMU2::ButtonAvailable(ErrorCode)+0x15e>
   39272:	88 30       	cpi	r24, 0x08	; 8
   39274:	09 f0       	breq	.+2      	; 0x39278 <MMU2::ButtonAvailable(ErrorCode)+0x10c>
   39276:	9b cf       	rjmp	.-202    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        case ButtonOperations::StopPrint: // "Stop print"
            return Buttons::StopPrint;
   39278:	86 e0       	ldi	r24, 0x06	; 6
   3927a:	08 95       	ret

    // The list of responses which occur in mmu error dialogs
    // Return button index or perform some action on the MK3 by itself (like Reset MMU)
    // Based on Prusa-Error-Codes errors_list.h
    // So far hardcoded, but shall be generated in the future
    switch ( PrusaErrorCode(ei) ) {
   3927c:	2b 3f       	cpi	r18, 0xFB	; 251
   3927e:	81 e0       	ldi	r24, 0x01	; 1
   39280:	38 07       	cpc	r19, r24
   39282:	a9 f0       	breq	.+42     	; 0x392ae <MMU2::ButtonAvailable(ErrorCode)+0x142>
   39284:	68 f0       	brcs	.+26     	; 0x392a0 <MMU2::ButtonAvailable(ErrorCode)+0x134>
   39286:	2c 3f       	cpi	r18, 0xFC	; 252
   39288:	31 40       	sbci	r19, 0x01	; 1
   3928a:	09 f0       	breq	.+2      	; 0x3928e <MMU2::ButtonAvailable(ErrorCode)+0x122>
   3928c:	90 cf       	rjmp	.-224    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        default:
            break;
        }
        break;
    case ERR_SYSTEM_FILAMENT_CHANGE:
        switch (buttonSelectedOperation) {
   3928e:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   39292:	85 30       	cpi	r24, 0x05	; 5
   39294:	89 f0       	breq	.+34     	; 0x392b8 <MMU2::ButtonAvailable(ErrorCode)+0x14c>
   39296:	86 30       	cpi	r24, 0x06	; 6
   39298:	09 f0       	breq	.+2      	; 0x3929c <MMU2::ButtonAvailable(ErrorCode)+0x130>
   3929a:	89 cf       	rjmp	.-238    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        case ButtonOperations::Load:
            return Buttons::Load;
        case ButtonOperations::Eject:
            return Buttons::Eject;
   3929c:	85 e0       	ldi	r24, 0x05	; 5
   3929e:	08 95       	ret
    case ERR_MECHANICAL_INSPECT_FINDA:
    case ERR_MECHANICAL_SELECTOR_CANNOT_MOVE:
    case ERR_MECHANICAL_IDLER_CANNOT_MOVE:
    case ERR_MECHANICAL_PULLEY_CANNOT_MOVE:
    case ERR_SYSTEM_UNLOAD_MANUALLY:
        switch (buttonSelectedOperation) {
   392a0:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   392a4:	81 30       	cpi	r24, 0x01	; 1
   392a6:	09 f0       	breq	.+2      	; 0x392aa <MMU2::ButtonAvailable(ErrorCode)+0x13e>
   392a8:	82 cf       	rjmp	.-252    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        switch (buttonSelectedOperation) {
        // may be allow move selector right and left in the future
        case ButtonOperations::Tune: // Tune Stallguard threshold
            return Buttons::TuneMMU;
        case ButtonOperations::Retry: // "Repeat action"
            return Buttons::Middle;
   392aa:	81 e0       	ldi	r24, 0x01	; 1
   392ac:	08 95       	ret
            break;
        }
        break;
    case ERR_MECHANICAL_LOAD_TO_EXTRUDER_FAILED:
    case ERR_SYSTEM_FILAMENT_EJECTED:
        switch (buttonSelectedOperation) {
   392ae:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   392b2:	82 30       	cpi	r24, 0x02	; 2
   392b4:	d1 f3       	breq	.-12     	; 0x392aa <MMU2::ButtonAvailable(ErrorCode)+0x13e>
   392b6:	7b cf       	rjmp	.-266    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
        }
        break;
    case ERR_SYSTEM_FILAMENT_CHANGE:
        switch (buttonSelectedOperation) {
        case ButtonOperations::Load:
            return Buttons::Load;
   392b8:	84 e0       	ldi	r24, 0x04	; 4
   392ba:	08 95       	ret
        }
        break;
    case ERR_TEMPERATURE_WARNING_TMC_PULLEY_TOO_HOT:
    case ERR_TEMPERATURE_WARNING_TMC_SELECTOR_TOO_HOT:
    case ERR_TEMPERATURE_WARNING_TMC_IDLER_TOO_HOT:
        switch (buttonSelectedOperation) {
   392bc:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   392c0:	82 30       	cpi	r24, 0x02	; 2
   392c2:	61 f0       	breq	.+24     	; 0x392dc <MMU2::ButtonAvailable(ErrorCode)+0x170>
    case ERR_ELECTRICAL_MMU_IDLER_SELFTEST_FAILED:

    case ERR_SYSTEM_QUEUE_FULL:
    case ERR_SYSTEM_FW_RUNTIME_ERROR:
    case ERR_ELECTRICAL_MMU_MCU_ERROR:
        switch (buttonSelectedOperation) {
   392c4:	83 30       	cpi	r24, 0x03	; 3
   392c6:	09 f0       	breq	.+2      	; 0x392ca <MMU2::ButtonAvailable(ErrorCode)+0x15e>
   392c8:	72 cf       	rjmp	.-284    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
    case ERR_TEMPERATURE_WARNING_TMC_IDLER_TOO_HOT:
        switch (buttonSelectedOperation) {
        case ButtonOperations::Continue: // "Continue"
            return Buttons::Left;
        case ButtonOperations::ResetMMU: // "Reset MMU"
            return Buttons::ResetMMU;
   392ca:	83 e0       	ldi	r24, 0x03	; 3
    default:
        break;
    }

    return Buttons::NoButton;
}
   392cc:	08 95       	ret
        default:
            break;
        }
        break;
    case ERR_SYSTEM_FILAMENT_ALREADY_LOADED:
        switch (buttonSelectedOperation) {
   392ce:	80 91 ae 0d 	lds	r24, 0x0DAE	; 0x800dae <_ZN4MMU2L23buttonSelectedOperationE.lto_priv.495>
   392d2:	82 30       	cpi	r24, 0x02	; 2
   392d4:	29 f0       	breq	.+10     	; 0x392e0 <MMU2::ButtonAvailable(ErrorCode)+0x174>
   392d6:	84 30       	cpi	r24, 0x04	; 4
   392d8:	09 f0       	breq	.+2      	; 0x392dc <MMU2::ButtonAvailable(ErrorCode)+0x170>
   392da:	69 cf       	rjmp	.-302    	; 0x391ae <MMU2::ButtonAvailable(ErrorCode)+0x42>
    case ERR_TEMPERATURE_WARNING_TMC_PULLEY_TOO_HOT:
    case ERR_TEMPERATURE_WARNING_TMC_SELECTOR_TOO_HOT:
    case ERR_TEMPERATURE_WARNING_TMC_IDLER_TOO_HOT:
        switch (buttonSelectedOperation) {
        case ButtonOperations::Continue: // "Continue"
            return Buttons::Left;
   392dc:	82 e0       	ldi	r24, 0x02	; 2
   392de:	08 95       	ret
    case ERR_SYSTEM_FILAMENT_ALREADY_LOADED:
        switch (buttonSelectedOperation) {
        case ButtonOperations::Unload: // "Unload"
            return Buttons::Left;
        case ButtonOperations::Continue: // "Proceed/Continue"
            return Buttons::Right;
   392e0:	80 e0       	ldi	r24, 0x00	; 0
   392e2:	08 95       	ret

000392e4 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]>:
#endif

namespace MMU2 {

template <typename F>
void waitForHotendTargetTemp(uint16_t delay, F f) {
   392e4:	cf 93       	push	r28
   392e6:	df 93       	push	r29
   392e8:	ec 01       	movw	r28, r24
int16_t thermal_degTargetHotend() {
    return degTargetHotend(0);
}

int16_t thermal_degHotend() {
    return degHotend(0);
   392ea:	60 91 b0 0d 	lds	r22, 0x0DB0	; 0x800db0 <current_temperature>
   392ee:	70 91 b1 0d 	lds	r23, 0x0DB1	; 0x800db1 <current_temperature+0x1>
   392f2:	80 91 b2 0d 	lds	r24, 0x0DB2	; 0x800db2 <current_temperature+0x2>
   392f6:	90 91 b3 0d 	lds	r25, 0x0DB3	; 0x800db3 <current_temperature+0x3>
   392fa:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
    while (((thermal_degTargetHotend() - thermal_degHotend()) > 5)) {
   392fe:	20 91 b6 0d 	lds	r18, 0x0DB6	; 0x800db6 <target_temperature>
   39302:	30 91 b7 0d 	lds	r19, 0x0DB7	; 0x800db7 <target_temperature+0x1>
   39306:	c9 01       	movw	r24, r18
   39308:	86 1b       	sub	r24, r22
   3930a:	97 0b       	sbc	r25, r23
   3930c:	06 97       	sbiw	r24, 0x06	; 6
   3930e:	24 f0       	brlt	.+8      	; 0x39318 <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]+0x34>
void thermal_setTargetHotend(int16_t t) {
    setTargetHotend(t);
}

void safe_delay_keep_alive(uint16_t t) {
    delay_keep_alive(t);
   39310:	ce 01       	movw	r24, r28
   39312:	0e 94 73 8c 	call	0x118e6	; 0x118e6 <delay_keep_alive(unsigned int)>
   39316:	e9 cf       	rjmp	.-46     	; 0x392ea <void MMU2::waitForHotendTargetTemp<MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}>(unsigned int, MMU2::WaitForHotendTargetTempBeep()::{lambda()#1}) [clone .isra.0] [clone .lto_priv.385]+0x6>
        f();
        safe_delay_keep_alive(delay);
    }
}
   39318:	df 91       	pop	r29
   3931a:	cf 91       	pop	r28
   3931c:	08 95       	ret

0003931e <mbl_point_measurement_valid(unsigned char, unsigned char)>:
}

//parameter ix: index of mesh bed leveling point in X-axis (for meas_points == 7 is valid range from 0 to 6; for meas_points == 3 is valid range from 0 to 2 )
//parameter iy: index of mesh bed leveling point in Y-axis (for meas_points == 7 is valid range from 0 to 6; for meas_points == 3 is valid range from 0 to 2 )
//function returns true if point is considered valid (typicaly in safe distance from magnet or another object which inflences PINDA measurements)
bool mbl_point_measurement_valid(uint8_t ix, uint8_t iy) {
   3931e:	cf 93       	push	r28
   39320:	df 93       	push	r29
   39322:	00 d0       	rcall	.+0      	; 0x39324 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x6>
   39324:	00 d0       	rcall	.+0      	; 0x39326 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x8>
   39326:	1f 92       	push	r1
   39328:	cd b7       	in	r28, 0x3d	; 61
   3932a:	de b7       	in	r29, 0x3e	; 62
	    //"human readable" heatbed plan
		//magnet proximity influence Z coordinate measurements significantly (40 - 100 um)
		//0 - measurement point is above magnet and Z coordinate can be influenced negatively
		//1 - we should be in safe distance from magnets, measurement should be accurate
		if ((ix >= MESH_NUM_X_POINTS) || (iy >= MESH_NUM_Y_POINTS))
   3932c:	87 30       	cpi	r24, 0x07	; 7
   3932e:	50 f5       	brcc	.+84     	; 0x39384 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x66>
   39330:	67 30       	cpi	r22, 0x07	; 7
   39332:	40 f5       	brcc	.+80     	; 0x39384 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x66>
            return false;

		uint8_t valid_points_mask[7] = {
   39334:	97 e0       	ldi	r25, 0x07	; 7
   39336:	e6 ec       	ldi	r30, 0xC6	; 198
   39338:	f2 e0       	ldi	r31, 0x02	; 2
   3933a:	de 01       	movw	r26, r28
   3933c:	11 96       	adiw	r26, 0x01	; 1
   3933e:	01 90       	ld	r0, Z+
   39340:	0d 92       	st	X+, r0
   39342:	9a 95       	dec	r25
   39344:	e1 f7       	brne	.-8      	; 0x3933e <mbl_point_measurement_valid(unsigned char, unsigned char)+0x20>
			0b1110111,//2
			0b1111111,//1
			0b1111111,//0
		//[0,0]
		};
        return (valid_points_mask[6 - iy] & (1 << (6 - ix)));
   39346:	46 e0       	ldi	r20, 0x06	; 6
   39348:	50 e0       	ldi	r21, 0x00	; 0
   3934a:	fa 01       	movw	r30, r20
   3934c:	e6 1b       	sub	r30, r22
   3934e:	f1 09       	sbc	r31, r1
   39350:	21 e0       	ldi	r18, 0x01	; 1
   39352:	30 e0       	ldi	r19, 0x00	; 0
   39354:	2c 0f       	add	r18, r28
   39356:	3d 1f       	adc	r19, r29
   39358:	e2 0f       	add	r30, r18
   3935a:	f3 1f       	adc	r31, r19
   3935c:	20 81       	ld	r18, Z
   3935e:	30 e0       	ldi	r19, 0x00	; 0
   39360:	48 1b       	sub	r20, r24
   39362:	51 09       	sbc	r21, r1
   39364:	c9 01       	movw	r24, r18
   39366:	02 c0       	rjmp	.+4      	; 0x3936c <mbl_point_measurement_valid(unsigned char, unsigned char)+0x4e>
   39368:	95 95       	asr	r25
   3936a:	87 95       	ror	r24
   3936c:	4a 95       	dec	r20
   3936e:	e2 f7       	brpl	.-8      	; 0x39368 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x4a>
   39370:	81 70       	andi	r24, 0x01	; 1
}
   39372:	27 96       	adiw	r28, 0x07	; 7
   39374:	0f b6       	in	r0, 0x3f	; 63
   39376:	f8 94       	cli
   39378:	de bf       	out	0x3e, r29	; 62
   3937a:	0f be       	out	0x3f, r0	; 63
   3937c:	cd bf       	out	0x3d, r28	; 61
   3937e:	df 91       	pop	r29
   39380:	cf 91       	pop	r28
   39382:	08 95       	ret
	    //"human readable" heatbed plan
		//magnet proximity influence Z coordinate measurements significantly (40 - 100 um)
		//0 - measurement point is above magnet and Z coordinate can be influenced negatively
		//1 - we should be in safe distance from magnets, measurement should be accurate
		if ((ix >= MESH_NUM_X_POINTS) || (iy >= MESH_NUM_Y_POINTS))
            return false;
   39384:	80 e0       	ldi	r24, 0x00	; 0
   39386:	f5 cf       	rjmp	.-22     	; 0x39372 <mbl_point_measurement_valid(unsigned char, unsigned char)+0x54>

00039388 <babystep_load()>:
// Number of baby steps applied
static int babystepLoadZ = 0;

void babystep_load()
{
	babystepLoadZ = 0;
   39388:	10 92 8b 06 	sts	0x068B, r1	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   3938c:	10 92 8a 06 	sts	0x068A, r1	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
    // Apply Z height correction aka baby stepping before mesh bed leveling gets activated.
    if (calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST))
   39390:	80 e1       	ldi	r24, 0x10	; 16
   39392:	0e 94 84 ef 	call	0x1df08	; 0x1df08 <calibration_status_get(unsigned char)>
   39396:	88 23       	and	r24, r24
   39398:	91 f0       	breq	.+36     	; 0x393be <babystep_load()+0x36>
    {
        check_babystep(); //checking if babystep is in allowed range, otherwise setting babystep to 0
   3939a:	0e 94 06 79 	call	0xf20c	; 0xf20c <check_babystep()>

        // End of G80: Apply the baby stepping value.
        babystepLoadZ = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
                    s[(eeprom_read_byte(&(EEPROM_Sheets_base->active_sheet)))].z_offset)));
   3939e:	81 ea       	ldi	r24, 0xA1	; 161
   393a0:	9d e0       	ldi	r25, 0x0D	; 13
   393a2:	0f 94 5b dc 	call	0x3b8b6	; 0x3b8b6 <eeprom_read_byte>
    if (calibration_status_get(CALIBRATION_STATUS_LIVE_ADJUST))
    {
        check_babystep(); //checking if babystep is in allowed range, otherwise setting babystep to 0

        // End of G80: Apply the baby stepping value.
        babystepLoadZ = eeprom_read_word(reinterpret_cast<uint16_t *>(&(EEPROM_Sheets_base->
   393a6:	2b e0       	ldi	r18, 0x0B	; 11
   393a8:	82 9f       	mul	r24, r18
   393aa:	c0 01       	movw	r24, r0
   393ac:	11 24       	eor	r1, r1
   393ae:	80 5b       	subi	r24, 0xB0	; 176
   393b0:	92 4f       	sbci	r25, 0xF2	; 242
   393b2:	0f 94 69 dc 	call	0x3b8d2	; 0x3b8d2 <eeprom_read_word>
   393b6:	90 93 8b 06 	sts	0x068B, r25	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   393ba:	80 93 8a 06 	sts	0x068A, r24	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
        SERIAL_ECHO("correction: ");
        SERIAL_ECHO(float(babystepLoadZ) / float(axis_steps_per_mm[Z_AXIS]));
        SERIAL_ECHOLN("");
    #endif
    }
}
   393be:	08 95       	ret

000393c0 <shift_z(float) [clone .lto_priv.562]>:
#endif //NEW_XYZCAL

// Shift a Z axis by a given delta.
// To replace loading of the babystep correction.
static void shift_z(float delta)
{
   393c0:	0f 93       	push	r16
   393c2:	1f 93       	push	r17
   393c4:	cf 93       	push	r28
   393c6:	df 93       	push	r29
   393c8:	00 d0       	rcall	.+0      	; 0x393ca <shift_z(float) [clone .lto_priv.562]+0xa>
   393ca:	1f 92       	push	r1
   393cc:	cd b7       	in	r28, 0x3d	; 61
   393ce:	de b7       	in	r29, 0x3e	; 62
   393d0:	9b 01       	movw	r18, r22
   393d2:	ac 01       	movw	r20, r24
    const float curpos_z = current_position[Z_AXIS];
   393d4:	02 e9       	ldi	r16, 0x92	; 146
   393d6:	16 e0       	ldi	r17, 0x06	; 6
   393d8:	f8 01       	movw	r30, r16
   393da:	60 85       	ldd	r22, Z+8	; 0x08
   393dc:	71 85       	ldd	r23, Z+9	; 0x09
   393de:	82 85       	ldd	r24, Z+10	; 0x0a
   393e0:	93 85       	ldd	r25, Z+11	; 0x0b
   393e2:	69 83       	std	Y+1, r22	; 0x01
   393e4:	7a 83       	std	Y+2, r23	; 0x02
   393e6:	8b 83       	std	Y+3, r24	; 0x03
   393e8:	9c 83       	std	Y+4, r25	; 0x04
    current_position[Z_AXIS] -= delta;
   393ea:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   393ee:	f8 01       	movw	r30, r16
   393f0:	60 87       	std	Z+8, r22	; 0x08
   393f2:	71 87       	std	Z+9, r23	; 0x09
   393f4:	82 87       	std	Z+10, r24	; 0x0a
   393f6:	93 87       	std	Z+11, r25	; 0x0b
    plan_buffer_line_curposXYZE(homing_feedrate[Z_AXIS] / 60);
   393f8:	65 e5       	ldi	r22, 0x55	; 85
   393fa:	75 e5       	ldi	r23, 0x55	; 85
   393fc:	85 e5       	ldi	r24, 0x55	; 85
   393fe:	91 e4       	ldi	r25, 0x41	; 65
   39400:	0f 94 88 c0 	call	0x38110	; 0x38110 <plan_buffer_line_curposXYZE(float)>
    st_synchronize();
   39404:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
    current_position[Z_AXIS] = curpos_z;
   39408:	89 81       	ldd	r24, Y+1	; 0x01
   3940a:	9a 81       	ldd	r25, Y+2	; 0x02
   3940c:	ab 81       	ldd	r26, Y+3	; 0x03
   3940e:	bc 81       	ldd	r27, Y+4	; 0x04
   39410:	f8 01       	movw	r30, r16
   39412:	80 87       	std	Z+8, r24	; 0x08
   39414:	91 87       	std	Z+9, r25	; 0x09
   39416:	a2 87       	std	Z+10, r26	; 0x0a
   39418:	b3 87       	std	Z+11, r27	; 0x0b
    plan_set_z_position(curpos_z);
   3941a:	ce 01       	movw	r24, r28
   3941c:	01 96       	adiw	r24, 0x01	; 1
   3941e:	0f 94 33 65 	call	0x2ca66	; 0x2ca66 <plan_set_z_position(float const&)>
}
   39422:	0f 90       	pop	r0
   39424:	0f 90       	pop	r0
   39426:	0f 90       	pop	r0
   39428:	0f 90       	pop	r0
   3942a:	df 91       	pop	r29
   3942c:	cf 91       	pop	r28
   3942e:	1f 91       	pop	r17
   39430:	0f 91       	pop	r16
   39432:	08 95       	ret

00039434 <babystep_undo()>:
    shift_z(- float(babystepLoadZ) / float(cs.axis_steps_per_mm[Z_AXIS]));
}

void babystep_undo()
{
      shift_z(float(babystepLoadZ) / float(cs.axis_steps_per_mm[Z_AXIS]));
   39434:	60 91 8a 06 	lds	r22, 0x068A	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
   39438:	70 91 8b 06 	lds	r23, 0x068B	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   3943c:	07 2e       	mov	r0, r23
   3943e:	00 0c       	add	r0, r0
   39440:	88 0b       	sbc	r24, r24
   39442:	99 0b       	sbc	r25, r25
   39444:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   39448:	20 91 ca 0d 	lds	r18, 0x0DCA	; 0x800dca <cs+0xc>
   3944c:	30 91 cb 0d 	lds	r19, 0x0DCB	; 0x800dcb <cs+0xd>
   39450:	40 91 cc 0d 	lds	r20, 0x0DCC	; 0x800dcc <cs+0xe>
   39454:	50 91 cd 0d 	lds	r21, 0x0DCD	; 0x800dcd <cs+0xf>
   39458:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   3945c:	0f 94 e0 c9 	call	0x393c0	; 0x393c0 <shift_z(float) [clone .lto_priv.562]>
      babystepLoadZ = 0;
   39460:	10 92 8b 06 	sts	0x068B, r1	; 0x80068b <_ZL13babystepLoadZ.lto_priv.499+0x1>
   39464:	10 92 8a 06 	sts	0x068A, r1	; 0x80068a <_ZL13babystepLoadZ.lto_priv.499>
}
   39468:	08 95       	ret

0003946a <go_home_with_z_lift()>:

    return sampled;
}

void go_home_with_z_lift()
{
   3946a:	cf 93       	push	r28
   3946c:	df 93       	push	r29
    // Don't let the manage_inactivity() function remove power from the motors.
    refresh_cmd_timeout();
   3946e:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
    // Go home.
    // First move up to a safe height.
    current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   39472:	c2 e9       	ldi	r28, 0x92	; 146
   39474:	d6 e0       	ldi	r29, 0x06	; 6
   39476:	80 e0       	ldi	r24, 0x00	; 0
   39478:	90 e0       	ldi	r25, 0x00	; 0
   3947a:	a0 ea       	ldi	r26, 0xA0	; 160
   3947c:	b0 e4       	ldi	r27, 0x40	; 64
   3947e:	88 87       	std	Y+8, r24	; 0x08
   39480:	99 87       	std	Y+9, r25	; 0x09
   39482:	aa 87       	std	Y+10, r26	; 0x0a
   39484:	bb 87       	std	Y+11, r27	; 0x0b
    go_to_current(homing_feedrate[Z_AXIS] / 60);
   39486:	65 e5       	ldi	r22, 0x55	; 85
   39488:	75 e5       	ldi	r23, 0x55	; 85
   3948a:	85 e5       	ldi	r24, 0x55	; 85
   3948c:	91 e4       	ldi	r25, 0x41	; 65
   3948e:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
    // Second move to XY [0, 0].
    current_position[X_AXIS] = X_MIN_POS + 0.2;
   39492:	8d ec       	ldi	r24, 0xCD	; 205
   39494:	9c ec       	ldi	r25, 0xCC	; 204
   39496:	ac e4       	ldi	r26, 0x4C	; 76
   39498:	be e3       	ldi	r27, 0x3E	; 62
   3949a:	88 83       	st	Y, r24
   3949c:	99 83       	std	Y+1, r25	; 0x01
   3949e:	aa 83       	std	Y+2, r26	; 0x02
   394a0:	bb 83       	std	Y+3, r27	; 0x03
    current_position[Y_AXIS] = Y_MIN_POS + 0.2;
   394a2:	83 e3       	ldi	r24, 0x33	; 51
   394a4:	93 e3       	ldi	r25, 0x33	; 51
   394a6:	a3 e7       	ldi	r26, 0x73	; 115
   394a8:	b0 ec       	ldi	r27, 0xC0	; 192
   394aa:	8c 83       	std	Y+4, r24	; 0x04
   394ac:	9d 83       	std	Y+5, r25	; 0x05
   394ae:	ae 83       	std	Y+6, r26	; 0x06
   394b0:	bf 83       	std	Y+7, r27	; 0x07
    // Clamp to the physical coordinates.
    world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
   394b2:	66 e9       	ldi	r22, 0x96	; 150
   394b4:	76 e0       	ldi	r23, 0x06	; 6
   394b6:	ce 01       	movw	r24, r28
   394b8:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>
    go_to_current((3 * homing_feedrate[X_AXIS]) / 60);
   394bc:	60 e0       	ldi	r22, 0x00	; 0
   394be:	70 e0       	ldi	r23, 0x00	; 0
   394c0:	86 e1       	ldi	r24, 0x16	; 22
   394c2:	93 e4       	ldi	r25, 0x43	; 67
   394c4:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
    // Third move up to a safe height.
    current_position[Z_AXIS] = Z_MIN_POS;
   394c8:	8a e9       	ldi	r24, 0x9A	; 154
   394ca:	99 e9       	ldi	r25, 0x99	; 153
   394cc:	a9 e1       	ldi	r26, 0x19	; 25
   394ce:	be e3       	ldi	r27, 0x3E	; 62
   394d0:	88 87       	std	Y+8, r24	; 0x08
   394d2:	99 87       	std	Y+9, r25	; 0x09
   394d4:	aa 87       	std	Y+10, r26	; 0x0a
   394d6:	bb 87       	std	Y+11, r27	; 0x0b
    go_to_current(homing_feedrate[Z_AXIS] / 60);
   394d8:	65 e5       	ldi	r22, 0x55	; 85
   394da:	75 e5       	ldi	r23, 0x55	; 85
   394dc:	85 e5       	ldi	r24, 0x55	; 85
   394de:	91 e4       	ldi	r25, 0x41	; 65
}
   394e0:	df 91       	pop	r29
   394e2:	cf 91       	pop	r28
    // Clamp to the physical coordinates.
    world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
    go_to_current((3 * homing_feedrate[X_AXIS]) / 60);
    // Third move up to a safe height.
    current_position[Z_AXIS] = Z_MIN_POS;
    go_to_current(homing_feedrate[Z_AXIS] / 60);
   394e4:	0d 94 10 c6 	jmp	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>

000394e8 <BED_X(unsigned char)>:

#define MESH_BED_CALIBRATION_SHOW_LCD

float __attribute__((noinline)) BED_X(const uint8_t col)
{
    return ((float)col * x_mesh_density + BED_X0);
   394e8:	68 2f       	mov	r22, r24
   394ea:	70 e0       	ldi	r23, 0x00	; 0
   394ec:	90 e0       	ldi	r25, 0x00	; 0
   394ee:	80 e0       	ldi	r24, 0x00	; 0
   394f0:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   394f4:	20 e0       	ldi	r18, 0x00	; 0
   394f6:	30 e0       	ldi	r19, 0x00	; 0
   394f8:	48 e0       	ldi	r20, 0x08	; 8
   394fa:	52 e4       	ldi	r21, 0x42	; 66
   394fc:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39500:	20 e0       	ldi	r18, 0x00	; 0
   39502:	30 e0       	ldi	r19, 0x00	; 0
   39504:	40 e8       	ldi	r20, 0x80	; 128
   39506:	5f e3       	ldi	r21, 0x3F	; 63
   39508:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
}
   3950c:	08 95       	ret

0003950e <sample_mesh_and_store_reference()>:
// Sample the 9 points of the bed and store them into the EEPROM as a reference.
// When calling this function, the X, Y, Z axes should be already homed,
// and the world2machine correction matrix should be active.
// Returns false if the reference values are more than 3mm far away.
bool sample_mesh_and_store_reference()
{
   3950e:	2f 92       	push	r2
   39510:	3f 92       	push	r3
   39512:	4f 92       	push	r4
   39514:	5f 92       	push	r5
   39516:	6f 92       	push	r6
   39518:	7f 92       	push	r7
   3951a:	8f 92       	push	r8
   3951c:	9f 92       	push	r9
   3951e:	af 92       	push	r10
   39520:	bf 92       	push	r11
   39522:	cf 92       	push	r12
   39524:	df 92       	push	r13
   39526:	ef 92       	push	r14
   39528:	ff 92       	push	r15
   3952a:	0f 93       	push	r16
   3952c:	1f 93       	push	r17
   3952e:	cf 93       	push	r28
   39530:	df 93       	push	r29
   39532:	00 d0       	rcall	.+0      	; 0x39534 <sample_mesh_and_store_reference()+0x26>
   39534:	00 d0       	rcall	.+0      	; 0x39536 <sample_mesh_and_store_reference()+0x28>
   39536:	cd b7       	in	r28, 0x3d	; 61
   39538:	de b7       	in	r29, 0x3e	; 62
    bool result = false;
#ifdef TMC2130
    tmc2130_home_enter(Z_AXIS_MASK);
   3953a:	84 e0       	ldi	r24, 0x04	; 4
   3953c:	0f 94 e4 26 	call	0x24dc8	; 0x24dc8 <tmc2130_home_enter(unsigned char)>
  return hit;
}

bool enable_endstops(bool check)
{
  bool old = check_endstops;
   39540:	80 91 b7 02 	lds	r24, 0x02B7	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
   39544:	8c 83       	std	Y+4, r24	; 0x04
  check_endstops = check;
   39546:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#endif
    bool endstops_enabled  = enable_endstops(false);
    bool endstop_z_enabled = enable_z_endstop(false);
   3954a:	80 e0       	ldi	r24, 0x00	; 0
   3954c:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
   39550:	8b 83       	std	Y+3, r24	; 0x03

    // Don't let the manage_inactivity() function remove power from the motors.
    refresh_cmd_timeout();
   39552:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>

#ifdef MESH_BED_CALIBRATION_SHOW_LCD
    lcd_display_message_fullscreen_P(_T(MSG_MEASURE_BED_REFERENCE_HEIGHT_LINE1));
   39556:	8b ed       	ldi	r24, 0xDB	; 219
   39558:	9a e5       	ldi	r25, 0x5A	; 90
   3955a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3955e:	0f 94 f0 20 	call	0x241e0	; 0x241e0 <lcd_display_message_fullscreen_P(char const*)>
    // display "point xx of yy"
    lcd_puts_at_P(0,3,_n("1/9"));
   39562:	48 e5       	ldi	r20, 0x58	; 88
   39564:	50 e7       	ldi	r21, 0x70	; 112
   39566:	63 e0       	ldi	r22, 0x03	; 3
   39568:	80 e0       	ldi	r24, 0x00	; 0
   3956a:	0e 94 7b 6e 	call	0xdcf6	; 0xdcf6 <lcd_puts_at_P(unsigned char, unsigned char, char const*)>
   3956e:	81 e0       	ldi	r24, 0x01	; 1
   39570:	80 93 b7 02 	sts	0x02B7, r24	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    // Sample Z heights for the mesh bed leveling.
    // In addition, store the results into an eeprom, to be used later for verification of the bed leveling process.
    {
        // Lower Z to the mesh search height with stall detection
        enable_endstops(true);
        current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   39574:	80 e0       	ldi	r24, 0x00	; 0
   39576:	90 e0       	ldi	r25, 0x00	; 0
   39578:	a0 ea       	ldi	r26, 0xA0	; 160
   3957a:	b0 e4       	ldi	r27, 0x40	; 64
   3957c:	80 93 9a 06 	sts	0x069A, r24	; 0x80069a <current_position+0x8>
   39580:	90 93 9b 06 	sts	0x069B, r25	; 0x80069b <current_position+0x9>
   39584:	a0 93 9c 06 	sts	0x069C, r26	; 0x80069c <current_position+0xa>
   39588:	b0 93 9d 06 	sts	0x069D, r27	; 0x80069d <current_position+0xb>
        go_to_current(homing_feedrate[Z_AXIS]/60);
   3958c:	65 e5       	ldi	r22, 0x55	; 85
   3958e:	75 e5       	ldi	r23, 0x55	; 85
   39590:	85 e5       	ldi	r24, 0x55	; 85
   39592:	91 e4       	ldi	r25, 0x41	; 65
   39594:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
#ifdef TMC2130
        check_Z_crash();
   39598:	0e 94 b8 79 	call	0xf370	; 0xf370 <check_Z_crash()>
   3959c:	10 92 b7 02 	sts	0x02B7, r1	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
#endif
        enable_endstops(false);

        // Move XY to first point
        current_position[X_AXIS] = BED_X0;
   395a0:	80 e0       	ldi	r24, 0x00	; 0
   395a2:	90 e0       	ldi	r25, 0x00	; 0
   395a4:	a0 e8       	ldi	r26, 0x80	; 128
   395a6:	bf e3       	ldi	r27, 0x3F	; 63
   395a8:	80 93 92 06 	sts	0x0692, r24	; 0x800692 <current_position>
   395ac:	90 93 93 06 	sts	0x0693, r25	; 0x800693 <current_position+0x1>
   395b0:	a0 93 94 06 	sts	0x0694, r26	; 0x800694 <current_position+0x2>
   395b4:	b0 93 95 06 	sts	0x0695, r27	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = BED_Y0;
   395b8:	80 93 96 06 	sts	0x0696, r24	; 0x800696 <current_position+0x4>
   395bc:	90 93 97 06 	sts	0x0697, r25	; 0x800697 <current_position+0x5>
   395c0:	a0 93 98 06 	sts	0x0698, r26	; 0x800698 <current_position+0x6>
   395c4:	b0 93 99 06 	sts	0x0699, r27	; 0x800699 <current_position+0x7>
        world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
   395c8:	66 e9       	ldi	r22, 0x96	; 150
   395ca:	76 e0       	ldi	r23, 0x06	; 6
   395cc:	82 e9       	ldi	r24, 0x92	; 146
   395ce:	96 e0       	ldi	r25, 0x06	; 6
   395d0:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>
        go_to_current(homing_feedrate[X_AXIS]/60);
   395d4:	60 e0       	ldi	r22, 0x00	; 0
   395d6:	70 e0       	ldi	r23, 0x00	; 0
   395d8:	88 e4       	ldi	r24, 0x48	; 72
   395da:	92 e4       	ldi	r25, 0x42	; 66
   395dc:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
        set_destination_to_current();
   395e0:	0e 94 c1 67 	call	0xcf82	; 0xcf82 <set_destination_to_current()>
        homeaxis(Z_AXIS);
   395e4:	50 e0       	ldi	r21, 0x00	; 0
   395e6:	40 e0       	ldi	r20, 0x00	; 0
   395e8:	61 e0       	ldi	r22, 0x01	; 1
   395ea:	82 e0       	ldi	r24, 0x02	; 2
   395ec:	0e 94 f2 79 	call	0xf3e4	; 0xf3e4 <homeaxis(unsigned char, unsigned char, unsigned char*)>
		if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
   395f0:	43 e0       	ldi	r20, 0x03	; 3
   395f2:	60 e0       	ldi	r22, 0x00	; 0
   395f4:	70 e0       	ldi	r23, 0x00	; 0
   395f6:	80 e2       	ldi	r24, 0x20	; 32
   395f8:	91 ec       	ldi	r25, 0xC1	; 193
   395fa:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
   395fe:	81 11       	cpse	r24, r1
   39600:	06 c0       	rjmp	.+12     	; 0x3960e <sample_mesh_and_store_reference()+0x100>
		lcd_set_cursor(0, 3);
        lcd_printf_P(PSTR("%d/9"),mesh_point+1);
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
		if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
		{
			kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
   39602:	8f e8       	ldi	r24, 0x8F	; 143
   39604:	93 e6       	ldi	r25, 0x63	; 99
   39606:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3960a:	0e 94 91 79 	call	0xf322	; 0xf322 <kill(char const*)>
    float get_z(float x, float y);
    void set_z(uint8_t ix, uint8_t iy, float z) { z_values[iy][ix] = z; }
   3960e:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
   39612:	90 91 9b 06 	lds	r25, 0x069B	; 0x80069b <current_position+0x9>
   39616:	a0 91 9c 06 	lds	r26, 0x069C	; 0x80069c <current_position+0xa>
   3961a:	b0 91 9d 06 	lds	r27, 0x069D	; 0x80069d <current_position+0xb>
   3961e:	80 93 c3 13 	sts	0x13C3, r24	; 0x8013c3 <mbl+0x1>
   39622:	90 93 c4 13 	sts	0x13C4, r25	; 0x8013c4 <mbl+0x2>
   39626:	a0 93 c5 13 	sts	0x13C5, r26	; 0x8013c5 <mbl+0x3>
   3962a:	b0 93 c6 13 	sts	0x13C6, r27	; 0x8013c6 <mbl+0x4>
   3962e:	e2 e0       	ldi	r30, 0x02	; 2
   39630:	f0 e0       	ldi	r31, 0x00	; 0
   39632:	fa 83       	std	Y+2, r31	; 0x02
   39634:	e9 83       	std	Y+1, r30	; 0x01
    static_assert(MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS <= 255, "overflow.....");
    for (uint8_t mesh_point = 1; mesh_point != MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS; ++ mesh_point) {
        // Don't let the manage_inactivity() function remove power from the motors.
        refresh_cmd_timeout();
        // Print the decrasing ID of the measurement point.
        current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   39636:	c1 2c       	mov	r12, r1
   39638:	d1 2c       	mov	r13, r1
   3963a:	30 ea       	ldi	r19, 0xA0	; 160
   3963c:	e3 2e       	mov	r14, r19
   3963e:	30 e4       	ldi	r19, 0x40	; 64
   39640:	f3 2e       	mov	r15, r19
        go_to_current(homing_feedrate[Z_AXIS]/60);
		uint8_t ix = mesh_point % MESH_MEAS_NUM_X_POINTS;
   39642:	43 e0       	ldi	r20, 0x03	; 3
   39644:	b4 2e       	mov	r11, r20
		uint8_t iy = mesh_point / MESH_MEAS_NUM_X_POINTS;
		if (iy & 1) ix = (MESH_MEAS_NUM_X_POINTS - 1) - ix; // Zig zag
   39646:	52 e0       	ldi	r21, 0x02	; 2
   39648:	95 2e       	mov	r9, r21
        world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
        go_to_current(homing_feedrate[X_AXIS]/60);
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
        // display "point xx of yy"
		lcd_set_cursor(0, 3);
        lcd_printf_P(PSTR("%d/9"),mesh_point+1);
   3964a:	0e e0       	ldi	r16, 0x0E	; 14
   3964c:	1b ea       	ldi	r17, 0xAB	; 171
   3964e:	67 e0       	ldi	r22, 0x07	; 7
   39650:	a6 2e       	mov	r10, r22
        mbl.set_z(0, 0, current_position[Z_AXIS]);
    }
    static_assert(MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS <= 255, "overflow.....");
    for (uint8_t mesh_point = 1; mesh_point != MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS; ++ mesh_point) {
        // Don't let the manage_inactivity() function remove power from the motors.
        refresh_cmd_timeout();
   39652:	0e 94 4a 66 	call	0xcc94	; 0xcc94 <refresh_cmd_timeout()>
        // Print the decrasing ID of the measurement point.
        current_position[Z_AXIS] = MESH_HOME_Z_SEARCH;
   39656:	c0 92 9a 06 	sts	0x069A, r12	; 0x80069a <current_position+0x8>
   3965a:	d0 92 9b 06 	sts	0x069B, r13	; 0x80069b <current_position+0x9>
   3965e:	e0 92 9c 06 	sts	0x069C, r14	; 0x80069c <current_position+0xa>
   39662:	f0 92 9d 06 	sts	0x069D, r15	; 0x80069d <current_position+0xb>
        go_to_current(homing_feedrate[Z_AXIS]/60);
   39666:	65 e5       	ldi	r22, 0x55	; 85
   39668:	75 e5       	ldi	r23, 0x55	; 85
   3966a:	85 e5       	ldi	r24, 0x55	; 85
   3966c:	91 e4       	ldi	r25, 0x41	; 65
   3966e:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
		uint8_t ix = mesh_point % MESH_MEAS_NUM_X_POINTS;
   39672:	29 81       	ldd	r18, Y+1	; 0x01
   39674:	21 50       	subi	r18, 0x01	; 1
   39676:	82 2f       	mov	r24, r18
   39678:	6b 2d       	mov	r22, r11
   3967a:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   3967e:	89 2e       	mov	r8, r25
		uint8_t iy = mesh_point / MESH_MEAS_NUM_X_POINTS;
   39680:	82 2f       	mov	r24, r18
   39682:	0f 94 16 dd 	call	0x3ba2c	; 0x3ba2c <__divmodqi4>
   39686:	78 2e       	mov	r7, r24
		if (iy & 1) ix = (MESH_MEAS_NUM_X_POINTS - 1) - ix; // Zig zag
   39688:	80 ff       	sbrs	r24, 0
   3968a:	03 c0       	rjmp	.+6      	; 0x39692 <sample_mesh_and_store_reference()+0x184>
   3968c:	f9 2d       	mov	r31, r9
   3968e:	f8 19       	sub	r31, r8
   39690:	8f 2e       	mov	r8, r31
		current_position[X_AXIS] = BED_X(ix * 3);
   39692:	88 2d       	mov	r24, r8
   39694:	88 0f       	add	r24, r24
   39696:	88 0d       	add	r24, r8
   39698:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   3969c:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   396a0:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   396a4:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   396a8:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
		current_position[Y_AXIS] = BED_Y(iy * 3);
   396ac:	87 2d       	mov	r24, r7
   396ae:	88 0f       	add	r24, r24
   396b0:	87 0d       	add	r24, r7
   396b2:	0f 94 74 ca 	call	0x394e8	; 0x394e8 <BED_X(unsigned char)>
   396b6:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   396ba:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   396be:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   396c2:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
        world2machine_clamp(current_position[X_AXIS], current_position[Y_AXIS]);
   396c6:	66 e9       	ldi	r22, 0x96	; 150
   396c8:	76 e0       	ldi	r23, 0x06	; 6
   396ca:	82 e9       	ldi	r24, 0x92	; 146
   396cc:	96 e0       	ldi	r25, 0x06	; 6
   396ce:	0e 94 31 6a 	call	0xd462	; 0xd462 <world2machine_clamp(float&, float&)>
        go_to_current(homing_feedrate[X_AXIS]/60);
   396d2:	60 e0       	ldi	r22, 0x00	; 0
   396d4:	70 e0       	ldi	r23, 0x00	; 0
   396d6:	88 e4       	ldi	r24, 0x48	; 72
   396d8:	92 e4       	ldi	r25, 0x42	; 66
   396da:	0f 94 10 c6 	call	0x38c20	; 0x38c20 <go_to_current(float) [clone .lto_priv.388]>
#ifdef MESH_BED_CALIBRATION_SHOW_LCD
        // display "point xx of yy"
		lcd_set_cursor(0, 3);
   396de:	63 e0       	ldi	r22, 0x03	; 3
   396e0:	80 e0       	ldi	r24, 0x00	; 0
   396e2:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
        lcd_printf_P(PSTR("%d/9"),mesh_point+1);
   396e6:	8a 81       	ldd	r24, Y+2	; 0x02
   396e8:	8f 93       	push	r24
   396ea:	99 81       	ldd	r25, Y+1	; 0x01
   396ec:	9f 93       	push	r25
   396ee:	1f 93       	push	r17
   396f0:	0f 93       	push	r16
   396f2:	0e 94 40 6e 	call	0xdc80	; 0xdc80 <lcd_printf_P(char const*, ...)>
#endif /* MESH_BED_CALIBRATION_SHOW_LCD */
		if (!find_bed_induction_sensor_point_z()) //Z crash or deviation > 50um
   396f6:	43 e0       	ldi	r20, 0x03	; 3
   396f8:	60 e0       	ldi	r22, 0x00	; 0
   396fa:	70 e0       	ldi	r23, 0x00	; 0
   396fc:	80 e2       	ldi	r24, 0x20	; 32
   396fe:	91 ec       	ldi	r25, 0xC1	; 193
   39700:	0f 94 96 8c 	call	0x3192c	; 0x3192c <find_bed_induction_sensor_point_z(float, unsigned char, int) [clone .constprop.99]>
   39704:	58 2e       	mov	r5, r24
   39706:	0f 90       	pop	r0
   39708:	0f 90       	pop	r0
   3970a:	0f 90       	pop	r0
   3970c:	0f 90       	pop	r0
   3970e:	88 23       	and	r24, r24
   39710:	09 f4       	brne	.+2      	; 0x39714 <sample_mesh_and_store_reference()+0x206>
   39712:	77 cf       	rjmp	.-274    	; 0x39602 <sample_mesh_and_store_reference()+0xf4>
   39714:	a7 9c       	mul	r10, r7
   39716:	f0 01       	movw	r30, r0
   39718:	11 24       	eor	r1, r1
   3971a:	e8 0d       	add	r30, r8
   3971c:	f1 1d       	adc	r31, r1
   3971e:	ee 0f       	add	r30, r30
   39720:	ff 1f       	adc	r31, r31
   39722:	ee 0f       	add	r30, r30
   39724:	ff 1f       	adc	r31, r31
   39726:	ee 53       	subi	r30, 0x3E	; 62
   39728:	fc 4e       	sbci	r31, 0xEC	; 236
   3972a:	80 91 9a 06 	lds	r24, 0x069A	; 0x80069a <current_position+0x8>
   3972e:	90 91 9b 06 	lds	r25, 0x069B	; 0x80069b <current_position+0x9>
   39732:	a0 91 9c 06 	lds	r26, 0x069C	; 0x80069c <current_position+0xa>
   39736:	b0 91 9d 06 	lds	r27, 0x069D	; 0x80069d <current_position+0xb>
   3973a:	81 83       	std	Z+1, r24	; 0x01
   3973c:	92 83       	std	Z+2, r25	; 0x02
   3973e:	a3 83       	std	Z+3, r26	; 0x03
   39740:	b4 83       	std	Z+4, r27	; 0x04
   39742:	e9 81       	ldd	r30, Y+1	; 0x01
   39744:	fa 81       	ldd	r31, Y+2	; 0x02
   39746:	31 96       	adiw	r30, 0x01	; 1
   39748:	fa 83       	std	Y+2, r31	; 0x02
   3974a:	e9 83       	std	Y+1, r30	; 0x01
			kill(_T(MSG_BED_LEVELING_FAILED_POINT_LOW));
		}
        mbl.set_z(0, 0, current_position[Z_AXIS]);
    }
    static_assert(MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS <= 255, "overflow.....");
    for (uint8_t mesh_point = 1; mesh_point != MESH_MEAS_NUM_X_POINTS * MESH_MEAS_NUM_Y_POINTS; ++ mesh_point) {
   3974c:	3a 97       	sbiw	r30, 0x0a	; 10
   3974e:	09 f0       	breq	.+2      	; 0x39752 <sample_mesh_and_store_reference()+0x244>
   39750:	80 cf       	rjmp	.-256    	; 0x39652 <sample_mesh_and_store_reference()+0x144>

        mbl.set_z(ix, iy, current_position[Z_AXIS]);
    }
    {
        // Verify the span of the Z values.
        float zmin = mbl.z_values[0][0];
   39752:	60 90 c3 13 	lds	r6, 0x13C3	; 0x8013c3 <mbl+0x1>
   39756:	70 90 c4 13 	lds	r7, 0x13C4	; 0x8013c4 <mbl+0x2>
   3975a:	80 90 c5 13 	lds	r8, 0x13C5	; 0x8013c5 <mbl+0x3>
   3975e:	90 90 c6 13 	lds	r9, 0x13C6	; 0x8013c6 <mbl+0x4>
        float zmax = zmin;
   39762:	46 2c       	mov	r4, r6
   39764:	a7 2c       	mov	r10, r7
   39766:	b8 2c       	mov	r11, r8
   39768:	29 2c       	mov	r2, r9

        mbl.set_z(ix, iy, current_position[Z_AXIS]);
    }
    {
        // Verify the span of the Z values.
        float zmin = mbl.z_values[0][0];
   3976a:	1e 82       	std	Y+6, r1	; 0x06
   3976c:	1d 82       	std	Y+5, r1	; 0x05
   3976e:	02 ec       	ldi	r16, 0xC2	; 194
   39770:	13 e1       	ldi	r17, 0x13	; 19
   39772:	8d 81       	ldd	r24, Y+5	; 0x05
   39774:	9e 81       	ldd	r25, Y+6	; 0x06
   39776:	8d 53       	subi	r24, 0x3D	; 61
   39778:	9c 4e       	sbci	r25, 0xEC	; 236
   3977a:	9a 83       	std	Y+2, r25	; 0x02
   3977c:	89 83       	std	Y+1, r24	; 0x01
   3977e:	93 e0       	ldi	r25, 0x03	; 3
   39780:	39 2e       	mov	r3, r25
        float zmax = zmin;
        for (int8_t j = 0; j < 3; ++ j)
           for (int8_t i = 0; i < 3; ++ i) {
                zmin = min(zmin, mbl.z_values[j][i]);
   39782:	e9 81       	ldd	r30, Y+1	; 0x01
   39784:	fa 81       	ldd	r31, Y+2	; 0x02
   39786:	c1 90       	ld	r12, Z+
   39788:	d1 90       	ld	r13, Z+
   3978a:	e1 90       	ld	r14, Z+
   3978c:	f1 90       	ld	r15, Z+
   3978e:	fa 83       	std	Y+2, r31	; 0x02
   39790:	e9 83       	std	Y+1, r30	; 0x01
   39792:	93 01       	movw	r18, r6
   39794:	a4 01       	movw	r20, r8
   39796:	c7 01       	movw	r24, r14
   39798:	b6 01       	movw	r22, r12
   3979a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   3979e:	18 16       	cp	r1, r24
   397a0:	14 f0       	brlt	.+4      	; 0x397a6 <sample_mesh_and_store_reference()+0x298>
   397a2:	36 01       	movw	r6, r12
   397a4:	47 01       	movw	r8, r14
                zmax = max(zmax, mbl.z_values[j][i]);
   397a6:	24 2d       	mov	r18, r4
   397a8:	3a 2d       	mov	r19, r10
   397aa:	4b 2d       	mov	r20, r11
   397ac:	52 2d       	mov	r21, r2
   397ae:	c7 01       	movw	r24, r14
   397b0:	b6 01       	movw	r22, r12
   397b2:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   397b6:	87 fd       	sbrc	r24, 7
   397b8:	04 c0       	rjmp	.+8      	; 0x397c2 <sample_mesh_and_store_reference()+0x2b4>
   397ba:	4c 2c       	mov	r4, r12
   397bc:	ad 2c       	mov	r10, r13
   397be:	be 2c       	mov	r11, r14
   397c0:	2f 2c       	mov	r2, r15
   397c2:	3a 94       	dec	r3
    {
        // Verify the span of the Z values.
        float zmin = mbl.z_values[0][0];
        float zmax = zmin;
        for (int8_t j = 0; j < 3; ++ j)
           for (int8_t i = 0; i < 3; ++ i) {
   397c4:	31 10       	cpse	r3, r1
   397c6:	dd cf       	rjmp	.-70     	; 0x39782 <sample_mesh_and_store_reference()+0x274>
   397c8:	8d 81       	ldd	r24, Y+5	; 0x05
   397ca:	9e 81       	ldd	r25, Y+6	; 0x06
   397cc:	4c 96       	adiw	r24, 0x1c	; 28
   397ce:	9e 83       	std	Y+6, r25	; 0x06
   397d0:	8d 83       	std	Y+5, r24	; 0x05
    }
    {
        // Verify the span of the Z values.
        float zmin = mbl.z_values[0][0];
        float zmax = zmin;
        for (int8_t j = 0; j < 3; ++ j)
   397d2:	84 35       	cpi	r24, 0x54	; 84
   397d4:	91 05       	cpc	r25, r1
   397d6:	59 f6       	brne	.-106    	; 0x3976e <sample_mesh_and_store_reference()+0x260>
           for (int8_t i = 0; i < 3; ++ i) {
                zmin = min(zmin, mbl.z_values[j][i]);
                zmax = max(zmax, mbl.z_values[j][i]);
           }
        if (zmax - zmin > 3.f) {
   397d8:	93 01       	movw	r18, r6
   397da:	a4 01       	movw	r20, r8
   397dc:	64 2d       	mov	r22, r4
   397de:	7a 2d       	mov	r23, r10
   397e0:	8b 2d       	mov	r24, r11
   397e2:	92 2d       	mov	r25, r2
   397e4:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   397e8:	20 e0       	ldi	r18, 0x00	; 0
   397ea:	30 e0       	ldi	r19, 0x00	; 0
   397ec:	40 e4       	ldi	r20, 0x40	; 64
   397ee:	50 e4       	ldi	r21, 0x40	; 64
   397f0:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   397f4:	18 16       	cp	r1, r24
   397f6:	3c f5       	brge	.+78     	; 0x39846 <sample_mesh_and_store_reference()+0x338>
            // The span of the Z offsets is extreme. Give up.
            // Homing failed on some of the points.
            SERIAL_PROTOCOLLNPGM("Exreme span of the Z values!");
   397f8:	81 ef       	ldi	r24, 0xF1	; 241
   397fa:	9a ea       	ldi	r25, 0xAA	; 170
   397fc:	0e 94 02 79 	call	0xf204	; 0xf204 <serialprintlnPGM(char const*)>
// When calling this function, the X, Y, Z axes should be already homed,
// and the world2machine correction matrix should be active.
// Returns false if the reference values are more than 3mm far away.
bool sample_mesh_and_store_reference()
{
    bool result = false;
   39800:	51 2c       	mov	r5, r1
   39802:	fc 81       	ldd	r31, Y+4	; 0x04
   39804:	f0 93 b7 02 	sts	0x02B7, r31	; 0x8002b7 <_ZL14check_endstops.lto_priv.404>
    go_home_with_z_lift();

    result = true;
end:
    enable_endstops(endstops_enabled);
    enable_z_endstop(endstop_z_enabled);
   39808:	8b 81       	ldd	r24, Y+3	; 0x03
   3980a:	0f 94 ee 4e 	call	0x29ddc	; 0x29ddc <enable_z_endstop(bool)>
#ifdef TMC2130
    tmc2130_home_exit();
   3980e:	0f 94 b5 26 	call	0x24d6a	; 0x24d6a <tmc2130_home_exit()>
#endif
    return result;
}
   39812:	85 2d       	mov	r24, r5
   39814:	26 96       	adiw	r28, 0x06	; 6
   39816:	0f b6       	in	r0, 0x3f	; 63
   39818:	f8 94       	cli
   3981a:	de bf       	out	0x3e, r29	; 62
   3981c:	0f be       	out	0x3f, r0	; 63
   3981e:	cd bf       	out	0x3d, r28	; 61
   39820:	df 91       	pop	r29
   39822:	cf 91       	pop	r28
   39824:	1f 91       	pop	r17
   39826:	0f 91       	pop	r16
   39828:	ff 90       	pop	r15
   3982a:	ef 90       	pop	r14
   3982c:	df 90       	pop	r13
   3982e:	cf 90       	pop	r12
   39830:	bf 90       	pop	r11
   39832:	af 90       	pop	r10
   39834:	9f 90       	pop	r9
   39836:	8f 90       	pop	r8
   39838:	7f 90       	pop	r7
   3983a:	6f 90       	pop	r6
   3983c:	5f 90       	pop	r5
   3983e:	4f 90       	pop	r4
   39840:	3f 90       	pop	r3
   39842:	2f 90       	pop	r2
   39844:	08 95       	ret
    // Store the correction values to EEPROM.
    // Offsets of the Z heiths of the calibration points from the first point.
    // The offsets are saved as 16bit signed int, scaled to tenths of microns.
    {
        uint16_t addr = EEPROM_BED_CALIBRATION_Z_JITTER;
        for (int8_t j = 0; j < 3; ++ j)
   39846:	19 82       	std	Y+1, r1	; 0x01

    // Store the correction values to EEPROM.
    // Offsets of the Z heiths of the calibration points from the first point.
    // The offsets are saved as 16bit signed int, scaled to tenths of microns.
    {
        uint16_t addr = EEPROM_BED_CALIBRATION_Z_JITTER;
   39848:	85 ec       	ldi	r24, 0xC5	; 197
   3984a:	e8 2e       	mov	r14, r24
   3984c:	8f e0       	ldi	r24, 0x0F	; 15
   3984e:	f8 2e       	mov	r15, r24
   39850:	68 01       	movw	r12, r16
        for (int8_t j = 0; j < 3; ++ j)
            for (int8_t i = 0; i < 3; ++ i) {
   39852:	1d 82       	std	Y+5, r1	; 0x05
                if (i == 0 && j == 0)
   39854:	9d 81       	ldd	r25, Y+5	; 0x05
   39856:	91 11       	cpse	r25, r1
   39858:	03 c0       	rjmp	.+6      	; 0x39860 <sample_mesh_and_store_reference()+0x352>
   3985a:	e9 81       	ldd	r30, Y+1	; 0x01
   3985c:	ee 23       	and	r30, r30
   3985e:	29 f1       	breq	.+74     	; 0x398aa <sample_mesh_and_store_reference()+0x39c>
                    continue;
                float dif = mbl.z_values[j][i] - mbl.z_values[0][0];
   39860:	20 91 c3 13 	lds	r18, 0x13C3	; 0x8013c3 <mbl+0x1>
   39864:	30 91 c4 13 	lds	r19, 0x13C4	; 0x8013c4 <mbl+0x2>
   39868:	40 91 c5 13 	lds	r20, 0x13C5	; 0x8013c5 <mbl+0x3>
   3986c:	50 91 c6 13 	lds	r21, 0x13C6	; 0x8013c6 <mbl+0x4>
   39870:	f6 01       	movw	r30, r12
   39872:	61 81       	ldd	r22, Z+1	; 0x01
   39874:	72 81       	ldd	r23, Z+2	; 0x02
   39876:	83 81       	ldd	r24, Z+3	; 0x03
   39878:	94 81       	ldd	r25, Z+4	; 0x04
   3987a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
                int16_t dif_quantized = int16_t(floor(dif * 100.f + 0.5f));
   3987e:	20 e0       	ldi	r18, 0x00	; 0
   39880:	30 e0       	ldi	r19, 0x00	; 0
   39882:	48 ec       	ldi	r20, 0xC8	; 200
   39884:	52 e4       	ldi	r21, 0x42	; 66
   39886:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3988a:	20 e0       	ldi	r18, 0x00	; 0
   3988c:	30 e0       	ldi	r19, 0x00	; 0
   3988e:	40 e0       	ldi	r20, 0x00	; 0
   39890:	5f e3       	ldi	r21, 0x3F	; 63
   39892:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   39896:	0f 94 2a df 	call	0x3be54	; 0x3be54 <floor>
   3989a:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
        if (previous_value != value) {
            eeprom_word_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_word(dst, value);
   3989e:	c7 01       	movw	r24, r14
   398a0:	0f 94 9d dc 	call	0x3b93a	; 0x3b93a <eeprom_update_word>
                    SERIAL_ECHOPGM(", read: ");
                    MYSERIAL.print(dif2, 5);
                    SERIAL_ECHOLNPGM("");
                }
                #endif
                addr += 2;
   398a4:	f2 e0       	ldi	r31, 0x02	; 2
   398a6:	ef 0e       	add	r14, r31
   398a8:	f1 1c       	adc	r15, r1
   398aa:	84 e0       	ldi	r24, 0x04	; 4
   398ac:	c8 0e       	add	r12, r24
   398ae:	d1 1c       	adc	r13, r1
   398b0:	9d 81       	ldd	r25, Y+5	; 0x05
   398b2:	9f 5f       	subi	r25, 0xFF	; 255
   398b4:	9d 83       	std	Y+5, r25	; 0x05
    // Offsets of the Z heiths of the calibration points from the first point.
    // The offsets are saved as 16bit signed int, scaled to tenths of microns.
    {
        uint16_t addr = EEPROM_BED_CALIBRATION_Z_JITTER;
        for (int8_t j = 0; j < 3; ++ j)
            for (int8_t i = 0; i < 3; ++ i) {
   398b6:	93 30       	cpi	r25, 0x03	; 3
   398b8:	69 f6       	brne	.-102    	; 0x39854 <sample_mesh_and_store_reference()+0x346>
   398ba:	04 5e       	subi	r16, 0xE4	; 228
   398bc:	1f 4f       	sbci	r17, 0xFF	; 255
   398be:	e9 81       	ldd	r30, Y+1	; 0x01
   398c0:	ef 5f       	subi	r30, 0xFF	; 255
   398c2:	e9 83       	std	Y+1, r30	; 0x01
    // Store the correction values to EEPROM.
    // Offsets of the Z heiths of the calibration points from the first point.
    // The offsets are saved as 16bit signed int, scaled to tenths of microns.
    {
        uint16_t addr = EEPROM_BED_CALIBRATION_Z_JITTER;
        for (int8_t j = 0; j < 3; ++ j)
   398c4:	e3 30       	cpi	r30, 0x03	; 3
   398c6:	21 f6       	brne	.-120    	; 0x39850 <sample_mesh_and_store_reference()+0x342>
                #endif
                addr += 2;
            }
    }

    mbl.reset();
   398c8:	0f 94 8c 8c 	call	0x31918	; 0x31918 <mesh_bed_leveling::reset() [clone .constprop.100]>

    go_home_with_z_lift();
   398cc:	0f 94 35 ca 	call	0x3946a	; 0x3946a <go_home_with_z_lift()>
   398d0:	98 cf       	rjmp	.-208    	; 0x39802 <sample_mesh_and_store_reference()+0x2f4>

000398d2 <update_current_position_z() [clone .lto_priv.389]>:
      plan_set_position_curposXYZE();
}

static inline void update_current_position_z()
{
      current_position[Z_AXIS] = st_get_position_mm(Z_AXIS);
   398d2:	82 e0       	ldi	r24, 0x02	; 2
   398d4:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   398d8:	60 93 9a 06 	sts	0x069A, r22	; 0x80069a <current_position+0x8>
   398dc:	70 93 9b 06 	sts	0x069B, r23	; 0x80069b <current_position+0x9>
   398e0:	80 93 9c 06 	sts	0x069C, r24	; 0x80069c <current_position+0xa>
   398e4:	90 93 9d 06 	sts	0x069D, r25	; 0x80069d <current_position+0xb>
      plan_set_z_position(current_position[Z_AXIS]);
   398e8:	8a e9       	ldi	r24, 0x9A	; 154
   398ea:	96 e0       	ldi	r25, 0x06	; 6
   398ec:	0d 94 33 65 	jmp	0x2ca66	; 0x2ca66 <plan_set_z_position(float const&)>

000398f0 <world2machine_update_current()>:
 * this will get the absolute coordinates from the servos,
 * applies the inverse world2machine transformation
 * and stores the result into current_position[x,y].
 */
void world2machine_update_current()
{
   398f0:	4f 92       	push	r4
   398f2:	5f 92       	push	r5
   398f4:	6f 92       	push	r6
   398f6:	7f 92       	push	r7
   398f8:	8f 92       	push	r8
   398fa:	9f 92       	push	r9
   398fc:	af 92       	push	r10
   398fe:	bf 92       	push	r11
   39900:	cf 92       	push	r12
   39902:	df 92       	push	r13
   39904:	ef 92       	push	r14
   39906:	ff 92       	push	r15
   39908:	0f 93       	push	r16
   3990a:	1f 93       	push	r17
   3990c:	cf 93       	push	r28
   3990e:	df 93       	push	r29
    float x = current_position[X_AXIS] - world2machine_shift[0];
   39910:	02 e9       	ldi	r16, 0x92	; 146
   39912:	16 e0       	ldi	r17, 0x06	; 6
   39914:	c7 e0       	ldi	r28, 0x07	; 7
   39916:	d8 e1       	ldi	r29, 0x18	; 24
   39918:	28 81       	ld	r18, Y
   3991a:	39 81       	ldd	r19, Y+1	; 0x01
   3991c:	4a 81       	ldd	r20, Y+2	; 0x02
   3991e:	5b 81       	ldd	r21, Y+3	; 0x03
   39920:	f8 01       	movw	r30, r16
   39922:	60 81       	ld	r22, Z
   39924:	71 81       	ldd	r23, Z+1	; 0x01
   39926:	82 81       	ldd	r24, Z+2	; 0x02
   39928:	93 81       	ldd	r25, Z+3	; 0x03
   3992a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3992e:	4b 01       	movw	r8, r22
   39930:	5c 01       	movw	r10, r24
    float y = current_position[Y_AXIS] - world2machine_shift[1];
   39932:	2c 81       	ldd	r18, Y+4	; 0x04
   39934:	3d 81       	ldd	r19, Y+5	; 0x05
   39936:	4e 81       	ldd	r20, Y+6	; 0x06
   39938:	5f 81       	ldd	r21, Y+7	; 0x07
   3993a:	f8 01       	movw	r30, r16
   3993c:	64 81       	ldd	r22, Z+4	; 0x04
   3993e:	75 81       	ldd	r23, Z+5	; 0x05
   39940:	86 81       	ldd	r24, Z+6	; 0x06
   39942:	97 81       	ldd	r25, Z+7	; 0x07
   39944:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   39948:	6b 01       	movw	r12, r22
   3994a:	7c 01       	movw	r14, r24
    current_position[X_AXIS] = world2machine_rotation_and_skew_inv[0][0] * x + world2machine_rotation_and_skew_inv[0][1] * y;
   3994c:	c7 ef       	ldi	r28, 0xF7	; 247
   3994e:	d7 e1       	ldi	r29, 0x17	; 23
   39950:	28 81       	ld	r18, Y
   39952:	39 81       	ldd	r19, Y+1	; 0x01
   39954:	4a 81       	ldd	r20, Y+2	; 0x02
   39956:	5b 81       	ldd	r21, Y+3	; 0x03
   39958:	c5 01       	movw	r24, r10
   3995a:	b4 01       	movw	r22, r8
   3995c:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39960:	2b 01       	movw	r4, r22
   39962:	3c 01       	movw	r6, r24
   39964:	2c 81       	ldd	r18, Y+4	; 0x04
   39966:	3d 81       	ldd	r19, Y+5	; 0x05
   39968:	4e 81       	ldd	r20, Y+6	; 0x06
   3996a:	5f 81       	ldd	r21, Y+7	; 0x07
   3996c:	c7 01       	movw	r24, r14
   3996e:	b6 01       	movw	r22, r12
   39970:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39974:	9b 01       	movw	r18, r22
   39976:	ac 01       	movw	r20, r24
   39978:	c3 01       	movw	r24, r6
   3997a:	b2 01       	movw	r22, r4
   3997c:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   39980:	f8 01       	movw	r30, r16
   39982:	60 83       	st	Z, r22
   39984:	71 83       	std	Z+1, r23	; 0x01
   39986:	82 83       	std	Z+2, r24	; 0x02
   39988:	93 83       	std	Z+3, r25	; 0x03
    current_position[Y_AXIS] = world2machine_rotation_and_skew_inv[1][0] * x + world2machine_rotation_and_skew_inv[1][1] * y;
   3998a:	28 85       	ldd	r18, Y+8	; 0x08
   3998c:	39 85       	ldd	r19, Y+9	; 0x09
   3998e:	4a 85       	ldd	r20, Y+10	; 0x0a
   39990:	5b 85       	ldd	r21, Y+11	; 0x0b
   39992:	c5 01       	movw	r24, r10
   39994:	b4 01       	movw	r22, r8
   39996:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3999a:	4b 01       	movw	r8, r22
   3999c:	5c 01       	movw	r10, r24
   3999e:	2c 85       	ldd	r18, Y+12	; 0x0c
   399a0:	3d 85       	ldd	r19, Y+13	; 0x0d
   399a2:	4e 85       	ldd	r20, Y+14	; 0x0e
   399a4:	5f 85       	ldd	r21, Y+15	; 0x0f
   399a6:	c7 01       	movw	r24, r14
   399a8:	b6 01       	movw	r22, r12
   399aa:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   399ae:	9b 01       	movw	r18, r22
   399b0:	ac 01       	movw	r20, r24
   399b2:	c5 01       	movw	r24, r10
   399b4:	b4 01       	movw	r22, r8
   399b6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   399ba:	f8 01       	movw	r30, r16
   399bc:	64 83       	std	Z+4, r22	; 0x04
   399be:	75 83       	std	Z+5, r23	; 0x05
   399c0:	86 83       	std	Z+6, r24	; 0x06
   399c2:	97 83       	std	Z+7, r25	; 0x07
}
   399c4:	df 91       	pop	r29
   399c6:	cf 91       	pop	r28
   399c8:	1f 91       	pop	r17
   399ca:	0f 91       	pop	r16
   399cc:	ff 90       	pop	r15
   399ce:	ef 90       	pop	r14
   399d0:	df 90       	pop	r13
   399d2:	cf 90       	pop	r12
   399d4:	bf 90       	pop	r11
   399d6:	af 90       	pop	r10
   399d8:	9f 90       	pop	r9
   399da:	8f 90       	pop	r8
   399dc:	7f 90       	pop	r7
   399de:	6f 90       	pop	r6
   399e0:	5f 90       	pop	r5
   399e2:	4f 90       	pop	r4
   399e4:	08 95       	ret

000399e6 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]>:
	}
    return false;
}

static void world2machine_update(const float vec_x[2], const float vec_y[2], const float cntr[2])
{
   399e6:	4f 92       	push	r4
   399e8:	5f 92       	push	r5
   399ea:	6f 92       	push	r6
   399ec:	7f 92       	push	r7
   399ee:	8f 92       	push	r8
   399f0:	9f 92       	push	r9
   399f2:	af 92       	push	r10
   399f4:	bf 92       	push	r11
   399f6:	cf 92       	push	r12
   399f8:	df 92       	push	r13
   399fa:	ef 92       	push	r14
   399fc:	ff 92       	push	r15
   399fe:	0f 93       	push	r16
   39a00:	1f 93       	push	r17
   39a02:	cf 93       	push	r28
   39a04:	df 93       	push	r29
   39a06:	00 d0       	rcall	.+0      	; 0x39a08 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x22>
   39a08:	00 d0       	rcall	.+0      	; 0x39a0a <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x24>
   39a0a:	1f 92       	push	r1
   39a0c:	1f 92       	push	r1
   39a0e:	cd b7       	in	r28, 0x3d	; 61
   39a10:	de b7       	in	r29, 0x3e	; 62
    world2machine_rotation_and_skew[0][0] = vec_x[0];
   39a12:	dc 01       	movw	r26, r24
   39a14:	cd 90       	ld	r12, X+
   39a16:	dd 90       	ld	r13, X+
   39a18:	ed 90       	ld	r14, X+
   39a1a:	fc 90       	ld	r15, X
   39a1c:	13 97       	sbiw	r26, 0x03	; 3
   39a1e:	c0 92 dc 17 	sts	0x17DC, r12	; 0x8017dc <world2machine_rotation_and_skew>
   39a22:	d0 92 dd 17 	sts	0x17DD, r13	; 0x8017dd <world2machine_rotation_and_skew+0x1>
   39a26:	e0 92 de 17 	sts	0x17DE, r14	; 0x8017de <world2machine_rotation_and_skew+0x2>
   39a2a:	f0 92 df 17 	sts	0x17DF, r15	; 0x8017df <world2machine_rotation_and_skew+0x3>
    world2machine_rotation_and_skew[1][0] = vec_x[1];
   39a2e:	14 96       	adiw	r26, 0x04	; 4
   39a30:	0d 91       	ld	r16, X+
   39a32:	1d 91       	ld	r17, X+
   39a34:	2d 91       	ld	r18, X+
   39a36:	3c 91       	ld	r19, X
   39a38:	17 97       	sbiw	r26, 0x07	; 7
   39a3a:	09 83       	std	Y+1, r16	; 0x01
   39a3c:	1a 83       	std	Y+2, r17	; 0x02
   39a3e:	2b 83       	std	Y+3, r18	; 0x03
   39a40:	3c 83       	std	Y+4, r19	; 0x04
   39a42:	00 93 e4 17 	sts	0x17E4, r16	; 0x8017e4 <world2machine_rotation_and_skew+0x8>
   39a46:	10 93 e5 17 	sts	0x17E5, r17	; 0x8017e5 <world2machine_rotation_and_skew+0x9>
   39a4a:	20 93 e6 17 	sts	0x17E6, r18	; 0x8017e6 <world2machine_rotation_and_skew+0xa>
   39a4e:	30 93 e7 17 	sts	0x17E7, r19	; 0x8017e7 <world2machine_rotation_and_skew+0xb>
    world2machine_rotation_and_skew[0][1] = vec_y[0];
   39a52:	db 01       	movw	r26, r22
   39a54:	0d 91       	ld	r16, X+
   39a56:	1d 91       	ld	r17, X+
   39a58:	2d 91       	ld	r18, X+
   39a5a:	3c 91       	ld	r19, X
   39a5c:	13 97       	sbiw	r26, 0x03	; 3
   39a5e:	0d 83       	std	Y+5, r16	; 0x05
   39a60:	1e 83       	std	Y+6, r17	; 0x06
   39a62:	2f 83       	std	Y+7, r18	; 0x07
   39a64:	38 87       	std	Y+8, r19	; 0x08
   39a66:	00 93 e0 17 	sts	0x17E0, r16	; 0x8017e0 <world2machine_rotation_and_skew+0x4>
   39a6a:	10 93 e1 17 	sts	0x17E1, r17	; 0x8017e1 <world2machine_rotation_and_skew+0x5>
   39a6e:	20 93 e2 17 	sts	0x17E2, r18	; 0x8017e2 <world2machine_rotation_and_skew+0x6>
   39a72:	30 93 e3 17 	sts	0x17E3, r19	; 0x8017e3 <world2machine_rotation_and_skew+0x7>
    world2machine_rotation_and_skew[1][1] = vec_y[1];
   39a76:	14 96       	adiw	r26, 0x04	; 4
   39a78:	4d 90       	ld	r4, X+
   39a7a:	5d 90       	ld	r5, X+
   39a7c:	6d 90       	ld	r6, X+
   39a7e:	7c 90       	ld	r7, X
   39a80:	17 97       	sbiw	r26, 0x07	; 7
   39a82:	40 92 e8 17 	sts	0x17E8, r4	; 0x8017e8 <world2machine_rotation_and_skew+0xc>
   39a86:	50 92 e9 17 	sts	0x17E9, r5	; 0x8017e9 <world2machine_rotation_and_skew+0xd>
   39a8a:	60 92 ea 17 	sts	0x17EA, r6	; 0x8017ea <world2machine_rotation_and_skew+0xe>
   39a8e:	70 92 eb 17 	sts	0x17EB, r7	; 0x8017eb <world2machine_rotation_and_skew+0xf>
    world2machine_shift[0] = cntr[0];
   39a92:	fa 01       	movw	r30, r20
   39a94:	60 81       	ld	r22, Z
   39a96:	71 81       	ldd	r23, Z+1	; 0x01
   39a98:	82 81       	ldd	r24, Z+2	; 0x02
   39a9a:	93 81       	ldd	r25, Z+3	; 0x03
   39a9c:	60 93 07 18 	sts	0x1807, r22	; 0x801807 <world2machine_shift>
   39aa0:	70 93 08 18 	sts	0x1808, r23	; 0x801808 <world2machine_shift+0x1>
   39aa4:	80 93 09 18 	sts	0x1809, r24	; 0x801809 <world2machine_shift+0x2>
   39aa8:	90 93 0a 18 	sts	0x180A, r25	; 0x80180a <world2machine_shift+0x3>
    world2machine_shift[1] = cntr[1];
   39aac:	84 80       	ldd	r8, Z+4	; 0x04
   39aae:	95 80       	ldd	r9, Z+5	; 0x05
   39ab0:	a6 80       	ldd	r10, Z+6	; 0x06
   39ab2:	b7 80       	ldd	r11, Z+7	; 0x07
   39ab4:	80 92 0b 18 	sts	0x180B, r8	; 0x80180b <world2machine_shift+0x4>
   39ab8:	90 92 0c 18 	sts	0x180C, r9	; 0x80180c <world2machine_shift+0x5>
   39abc:	a0 92 0d 18 	sts	0x180D, r10	; 0x80180d <world2machine_shift+0x6>
   39ac0:	b0 92 0e 18 	sts	0x180E, r11	; 0x80180e <world2machine_shift+0x7>
    // No correction.
    world2machine_correction_mode = WORLD2MACHINE_CORRECTION_NONE;
    if (world2machine_shift[0] != 0.f || world2machine_shift[1] != 0.f)
   39ac4:	20 e0       	ldi	r18, 0x00	; 0
   39ac6:	30 e0       	ldi	r19, 0x00	; 0
   39ac8:	a9 01       	movw	r20, r18
   39aca:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39ace:	81 11       	cpse	r24, r1
   39ad0:	aa c0       	rjmp	.+340    	; 0x39c26 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x240>
   39ad2:	20 e0       	ldi	r18, 0x00	; 0
   39ad4:	30 e0       	ldi	r19, 0x00	; 0
   39ad6:	a9 01       	movw	r20, r18
   39ad8:	c5 01       	movw	r24, r10
   39ada:	b4 01       	movw	r22, r8
   39adc:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39ae0:	81 11       	cpse	r24, r1
   39ae2:	a1 c0       	rjmp	.+322    	; 0x39c26 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x240>
    world2machine_rotation_and_skew[0][1] = vec_y[0];
    world2machine_rotation_and_skew[1][1] = vec_y[1];
    world2machine_shift[0] = cntr[0];
    world2machine_shift[1] = cntr[1];
    // No correction.
    world2machine_correction_mode = WORLD2MACHINE_CORRECTION_NONE;
   39ae4:	10 92 0f 18 	sts	0x180F, r1	; 0x80180f <world2machine_correction_mode>
    if (world2machine_shift[0] != 0.f || world2machine_shift[1] != 0.f)
        // Shift correction.
        world2machine_correction_mode |= WORLD2MACHINE_CORRECTION_SHIFT;
    if (world2machine_rotation_and_skew[0][0] != 1.f || world2machine_rotation_and_skew[0][1] != 0.f ||
   39ae8:	20 e0       	ldi	r18, 0x00	; 0
   39aea:	30 e0       	ldi	r19, 0x00	; 0
   39aec:	40 e8       	ldi	r20, 0x80	; 128
   39aee:	5f e3       	ldi	r21, 0x3F	; 63
   39af0:	c7 01       	movw	r24, r14
   39af2:	b6 01       	movw	r22, r12
   39af4:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39af8:	81 11       	cpse	r24, r1
   39afa:	21 c0       	rjmp	.+66     	; 0x39b3e <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x158>
   39afc:	20 e0       	ldi	r18, 0x00	; 0
   39afe:	30 e0       	ldi	r19, 0x00	; 0
   39b00:	a9 01       	movw	r20, r18
   39b02:	6d 81       	ldd	r22, Y+5	; 0x05
   39b04:	7e 81       	ldd	r23, Y+6	; 0x06
   39b06:	8f 81       	ldd	r24, Y+7	; 0x07
   39b08:	98 85       	ldd	r25, Y+8	; 0x08
   39b0a:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39b0e:	81 11       	cpse	r24, r1
   39b10:	16 c0       	rjmp	.+44     	; 0x39b3e <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x158>
   39b12:	20 e0       	ldi	r18, 0x00	; 0
   39b14:	30 e0       	ldi	r19, 0x00	; 0
   39b16:	a9 01       	movw	r20, r18
   39b18:	69 81       	ldd	r22, Y+1	; 0x01
   39b1a:	7a 81       	ldd	r23, Y+2	; 0x02
   39b1c:	8b 81       	ldd	r24, Y+3	; 0x03
   39b1e:	9c 81       	ldd	r25, Y+4	; 0x04
   39b20:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39b24:	81 11       	cpse	r24, r1
   39b26:	0b c0       	rjmp	.+22     	; 0x39b3e <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x158>
        world2machine_rotation_and_skew[1][0] != 0.f || world2machine_rotation_and_skew[1][1] != 1.f) {
   39b28:	20 e0       	ldi	r18, 0x00	; 0
   39b2a:	30 e0       	ldi	r19, 0x00	; 0
   39b2c:	40 e8       	ldi	r20, 0x80	; 128
   39b2e:	5f e3       	ldi	r21, 0x3F	; 63
   39b30:	c3 01       	movw	r24, r6
   39b32:	b2 01       	movw	r22, r4
   39b34:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39b38:	88 23       	and	r24, r24
   39b3a:	09 f4       	brne	.+2      	; 0x39b3e <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x158>
   39b3c:	78 c0       	rjmp	.+240    	; 0x39c2e <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x248>
        // Rotation & skew correction.
        world2machine_correction_mode |= WORLD2MACHINE_CORRECTION_SKEW;
   39b3e:	80 91 0f 18 	lds	r24, 0x180F	; 0x80180f <world2machine_correction_mode>
   39b42:	82 60       	ori	r24, 0x02	; 2
   39b44:	80 93 0f 18 	sts	0x180F, r24	; 0x80180f <world2machine_correction_mode>
        // Invert the world2machine matrix.
        float d = world2machine_rotation_and_skew[0][0] * world2machine_rotation_and_skew[1][1] - world2machine_rotation_and_skew[1][0] * world2machine_rotation_and_skew[0][1];
   39b48:	a3 01       	movw	r20, r6
   39b4a:	92 01       	movw	r18, r4
   39b4c:	c7 01       	movw	r24, r14
   39b4e:	b6 01       	movw	r22, r12
   39b50:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39b54:	4b 01       	movw	r8, r22
   39b56:	5c 01       	movw	r10, r24
   39b58:	2d 81       	ldd	r18, Y+5	; 0x05
   39b5a:	3e 81       	ldd	r19, Y+6	; 0x06
   39b5c:	4f 81       	ldd	r20, Y+7	; 0x07
   39b5e:	58 85       	ldd	r21, Y+8	; 0x08
   39b60:	69 81       	ldd	r22, Y+1	; 0x01
   39b62:	7a 81       	ldd	r23, Y+2	; 0x02
   39b64:	8b 81       	ldd	r24, Y+3	; 0x03
   39b66:	9c 81       	ldd	r25, Y+4	; 0x04
   39b68:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39b6c:	9b 01       	movw	r18, r22
   39b6e:	ac 01       	movw	r20, r24
   39b70:	c5 01       	movw	r24, r10
   39b72:	b4 01       	movw	r22, r8
   39b74:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   39b78:	4b 01       	movw	r8, r22
   39b7a:	5c 01       	movw	r10, r24
        world2machine_rotation_and_skew_inv[0][0] =  world2machine_rotation_and_skew[1][1] / d;
   39b7c:	ac 01       	movw	r20, r24
   39b7e:	9b 01       	movw	r18, r22
   39b80:	c3 01       	movw	r24, r6
   39b82:	b2 01       	movw	r22, r4
   39b84:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   39b88:	60 93 f7 17 	sts	0x17F7, r22	; 0x8017f7 <world2machine_rotation_and_skew_inv>
   39b8c:	70 93 f8 17 	sts	0x17F8, r23	; 0x8017f8 <world2machine_rotation_and_skew_inv+0x1>
   39b90:	80 93 f9 17 	sts	0x17F9, r24	; 0x8017f9 <world2machine_rotation_and_skew_inv+0x2>
   39b94:	90 93 fa 17 	sts	0x17FA, r25	; 0x8017fa <world2machine_rotation_and_skew_inv+0x3>
        world2machine_rotation_and_skew_inv[0][1] = -world2machine_rotation_and_skew[0][1] / d;
   39b98:	6d 81       	ldd	r22, Y+5	; 0x05
   39b9a:	7e 81       	ldd	r23, Y+6	; 0x06
   39b9c:	8f 81       	ldd	r24, Y+7	; 0x07
   39b9e:	98 85       	ldd	r25, Y+8	; 0x08
   39ba0:	90 58       	subi	r25, 0x80	; 128
   39ba2:	a5 01       	movw	r20, r10
   39ba4:	94 01       	movw	r18, r8
   39ba6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   39baa:	60 93 fb 17 	sts	0x17FB, r22	; 0x8017fb <world2machine_rotation_and_skew_inv+0x4>
   39bae:	70 93 fc 17 	sts	0x17FC, r23	; 0x8017fc <world2machine_rotation_and_skew_inv+0x5>
   39bb2:	80 93 fd 17 	sts	0x17FD, r24	; 0x8017fd <world2machine_rotation_and_skew_inv+0x6>
   39bb6:	90 93 fe 17 	sts	0x17FE, r25	; 0x8017fe <world2machine_rotation_and_skew_inv+0x7>
        world2machine_rotation_and_skew_inv[1][0] = -world2machine_rotation_and_skew[1][0] / d;
   39bba:	69 81       	ldd	r22, Y+1	; 0x01
   39bbc:	7a 81       	ldd	r23, Y+2	; 0x02
   39bbe:	8b 81       	ldd	r24, Y+3	; 0x03
   39bc0:	9c 81       	ldd	r25, Y+4	; 0x04
   39bc2:	90 58       	subi	r25, 0x80	; 128
   39bc4:	a5 01       	movw	r20, r10
   39bc6:	94 01       	movw	r18, r8
   39bc8:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   39bcc:	60 93 ff 17 	sts	0x17FF, r22	; 0x8017ff <world2machine_rotation_and_skew_inv+0x8>
   39bd0:	70 93 00 18 	sts	0x1800, r23	; 0x801800 <world2machine_rotation_and_skew_inv+0x9>
   39bd4:	80 93 01 18 	sts	0x1801, r24	; 0x801801 <world2machine_rotation_and_skew_inv+0xa>
   39bd8:	90 93 02 18 	sts	0x1802, r25	; 0x801802 <world2machine_rotation_and_skew_inv+0xb>
        world2machine_rotation_and_skew_inv[1][1] =  world2machine_rotation_and_skew[0][0] / d;
   39bdc:	a5 01       	movw	r20, r10
   39bde:	94 01       	movw	r18, r8
   39be0:	c7 01       	movw	r24, r14
   39be2:	b6 01       	movw	r22, r12
   39be4:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
   39be8:	60 93 03 18 	sts	0x1803, r22	; 0x801803 <world2machine_rotation_and_skew_inv+0xc>
   39bec:	70 93 04 18 	sts	0x1804, r23	; 0x801804 <world2machine_rotation_and_skew_inv+0xd>
   39bf0:	80 93 05 18 	sts	0x1805, r24	; 0x801805 <world2machine_rotation_and_skew_inv+0xe>
   39bf4:	90 93 06 18 	sts	0x1806, r25	; 0x801806 <world2machine_rotation_and_skew_inv+0xf>
        world2machine_rotation_and_skew_inv[0][0] = 1.f;
        world2machine_rotation_and_skew_inv[0][1] = 0.f;
        world2machine_rotation_and_skew_inv[1][0] = 0.f;
        world2machine_rotation_and_skew_inv[1][1] = 1.f;
    }
}
   39bf8:	28 96       	adiw	r28, 0x08	; 8
   39bfa:	0f b6       	in	r0, 0x3f	; 63
   39bfc:	f8 94       	cli
   39bfe:	de bf       	out	0x3e, r29	; 62
   39c00:	0f be       	out	0x3f, r0	; 63
   39c02:	cd bf       	out	0x3d, r28	; 61
   39c04:	df 91       	pop	r29
   39c06:	cf 91       	pop	r28
   39c08:	1f 91       	pop	r17
   39c0a:	0f 91       	pop	r16
   39c0c:	ff 90       	pop	r15
   39c0e:	ef 90       	pop	r14
   39c10:	df 90       	pop	r13
   39c12:	cf 90       	pop	r12
   39c14:	bf 90       	pop	r11
   39c16:	af 90       	pop	r10
   39c18:	9f 90       	pop	r9
   39c1a:	8f 90       	pop	r8
   39c1c:	7f 90       	pop	r7
   39c1e:	6f 90       	pop	r6
   39c20:	5f 90       	pop	r5
   39c22:	4f 90       	pop	r4
   39c24:	08 95       	ret
    world2machine_shift[1] = cntr[1];
    // No correction.
    world2machine_correction_mode = WORLD2MACHINE_CORRECTION_NONE;
    if (world2machine_shift[0] != 0.f || world2machine_shift[1] != 0.f)
        // Shift correction.
        world2machine_correction_mode |= WORLD2MACHINE_CORRECTION_SHIFT;
   39c26:	81 e0       	ldi	r24, 0x01	; 1
   39c28:	80 93 0f 18 	sts	0x180F, r24	; 0x80180f <world2machine_correction_mode>
   39c2c:	5d cf       	rjmp	.-326    	; 0x39ae8 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x102>
        world2machine_rotation_and_skew_inv[0][0] =  world2machine_rotation_and_skew[1][1] / d;
        world2machine_rotation_and_skew_inv[0][1] = -world2machine_rotation_and_skew[0][1] / d;
        world2machine_rotation_and_skew_inv[1][0] = -world2machine_rotation_and_skew[1][0] / d;
        world2machine_rotation_and_skew_inv[1][1] =  world2machine_rotation_and_skew[0][0] / d;
    } else {
        world2machine_rotation_and_skew_inv[0][0] = 1.f;
   39c2e:	80 e0       	ldi	r24, 0x00	; 0
   39c30:	90 e0       	ldi	r25, 0x00	; 0
   39c32:	a0 e8       	ldi	r26, 0x80	; 128
   39c34:	bf e3       	ldi	r27, 0x3F	; 63
   39c36:	80 93 f7 17 	sts	0x17F7, r24	; 0x8017f7 <world2machine_rotation_and_skew_inv>
   39c3a:	90 93 f8 17 	sts	0x17F8, r25	; 0x8017f8 <world2machine_rotation_and_skew_inv+0x1>
   39c3e:	a0 93 f9 17 	sts	0x17F9, r26	; 0x8017f9 <world2machine_rotation_and_skew_inv+0x2>
   39c42:	b0 93 fa 17 	sts	0x17FA, r27	; 0x8017fa <world2machine_rotation_and_skew_inv+0x3>
        world2machine_rotation_and_skew_inv[0][1] = 0.f;
   39c46:	10 92 fb 17 	sts	0x17FB, r1	; 0x8017fb <world2machine_rotation_and_skew_inv+0x4>
   39c4a:	10 92 fc 17 	sts	0x17FC, r1	; 0x8017fc <world2machine_rotation_and_skew_inv+0x5>
   39c4e:	10 92 fd 17 	sts	0x17FD, r1	; 0x8017fd <world2machine_rotation_and_skew_inv+0x6>
   39c52:	10 92 fe 17 	sts	0x17FE, r1	; 0x8017fe <world2machine_rotation_and_skew_inv+0x7>
        world2machine_rotation_and_skew_inv[1][0] = 0.f;
   39c56:	10 92 ff 17 	sts	0x17FF, r1	; 0x8017ff <world2machine_rotation_and_skew_inv+0x8>
   39c5a:	10 92 00 18 	sts	0x1800, r1	; 0x801800 <world2machine_rotation_and_skew_inv+0x9>
   39c5e:	10 92 01 18 	sts	0x1801, r1	; 0x801801 <world2machine_rotation_and_skew_inv+0xa>
   39c62:	10 92 02 18 	sts	0x1802, r1	; 0x801802 <world2machine_rotation_and_skew_inv+0xb>
        world2machine_rotation_and_skew_inv[1][1] = 1.f;
   39c66:	80 93 03 18 	sts	0x1803, r24	; 0x801803 <world2machine_rotation_and_skew_inv+0xc>
   39c6a:	90 93 04 18 	sts	0x1804, r25	; 0x801804 <world2machine_rotation_and_skew_inv+0xd>
   39c6e:	a0 93 05 18 	sts	0x1805, r26	; 0x801805 <world2machine_rotation_and_skew_inv+0xe>
   39c72:	b0 93 06 18 	sts	0x1806, r27	; 0x801806 <world2machine_rotation_and_skew_inv+0xf>
   39c76:	c0 cf       	rjmp	.-128    	; 0x39bf8 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]+0x212>

00039c78 <world2machine_reset()>:
 *
 * In contrast with world2machine_revert_to_uncorrected(), it doesn't wait for finishing moves
 * nor updates the current position with the absolute values.
 */
void world2machine_reset()
{
   39c78:	cf 93       	push	r28
   39c7a:	df 93       	push	r29
   39c7c:	cd b7       	in	r28, 0x3d	; 61
   39c7e:	de b7       	in	r29, 0x3e	; 62
   39c80:	68 97       	sbiw	r28, 0x18	; 24
   39c82:	0f b6       	in	r0, 0x3f	; 63
   39c84:	f8 94       	cli
   39c86:	de bf       	out	0x3e, r29	; 62
   39c88:	0f be       	out	0x3f, r0	; 63
   39c8a:	cd bf       	out	0x3d, r28	; 61
    const float vx[] = { 1.f, 0.f };
   39c8c:	80 e0       	ldi	r24, 0x00	; 0
   39c8e:	90 e0       	ldi	r25, 0x00	; 0
   39c90:	a0 e8       	ldi	r26, 0x80	; 128
   39c92:	bf e3       	ldi	r27, 0x3F	; 63
   39c94:	89 83       	std	Y+1, r24	; 0x01
   39c96:	9a 83       	std	Y+2, r25	; 0x02
   39c98:	ab 83       	std	Y+3, r26	; 0x03
   39c9a:	bc 83       	std	Y+4, r27	; 0x04
   39c9c:	1d 82       	std	Y+5, r1	; 0x05
   39c9e:	1e 82       	std	Y+6, r1	; 0x06
   39ca0:	1f 82       	std	Y+7, r1	; 0x07
   39ca2:	18 86       	std	Y+8, r1	; 0x08
    const float vy[] = { 0.f, 1.f };
   39ca4:	19 86       	std	Y+9, r1	; 0x09
   39ca6:	1a 86       	std	Y+10, r1	; 0x0a
   39ca8:	1b 86       	std	Y+11, r1	; 0x0b
   39caa:	1c 86       	std	Y+12, r1	; 0x0c
   39cac:	8d 87       	std	Y+13, r24	; 0x0d
   39cae:	9e 87       	std	Y+14, r25	; 0x0e
   39cb0:	af 87       	std	Y+15, r26	; 0x0f
   39cb2:	b8 8b       	std	Y+16, r27	; 0x10
    const float cntr[] = { 0.f, 0.f };
   39cb4:	19 8a       	std	Y+17, r1	; 0x11
   39cb6:	1a 8a       	std	Y+18, r1	; 0x12
   39cb8:	1b 8a       	std	Y+19, r1	; 0x13
   39cba:	1c 8a       	std	Y+20, r1	; 0x14
   39cbc:	1d 8a       	std	Y+21, r1	; 0x15
   39cbe:	1e 8a       	std	Y+22, r1	; 0x16
   39cc0:	1f 8a       	std	Y+23, r1	; 0x17
   39cc2:	18 8e       	std	Y+24, r1	; 0x18
    world2machine_update(vx, vy, cntr);
   39cc4:	ae 01       	movw	r20, r28
   39cc6:	4f 5e       	subi	r20, 0xEF	; 239
   39cc8:	5f 4f       	sbci	r21, 0xFF	; 255
   39cca:	be 01       	movw	r22, r28
   39ccc:	67 5f       	subi	r22, 0xF7	; 247
   39cce:	7f 4f       	sbci	r23, 0xFF	; 255
   39cd0:	ce 01       	movw	r24, r28
   39cd2:	01 96       	adiw	r24, 0x01	; 1
   39cd4:	0f 94 f3 cc 	call	0x399e6	; 0x399e6 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]>
}
   39cd8:	68 96       	adiw	r28, 0x18	; 24
   39cda:	0f b6       	in	r0, 0x3f	; 63
   39cdc:	f8 94       	cli
   39cde:	de bf       	out	0x3e, r29	; 62
   39ce0:	0f be       	out	0x3f, r0	; 63
   39ce2:	cd bf       	out	0x3d, r28	; 61
   39ce4:	df 91       	pop	r29
   39ce6:	cf 91       	pop	r28
   39ce8:	08 95       	ret

00039cea <world2machine_revert_to_uncorrected()>:
 *
 * Wait for the motors to stop and then update the current position with the absolute values.
 */
void world2machine_revert_to_uncorrected()
{
    if (world2machine_correction_mode != WORLD2MACHINE_CORRECTION_NONE) {
   39cea:	80 91 0f 18 	lds	r24, 0x180F	; 0x80180f <world2machine_correction_mode>
   39cee:	88 23       	and	r24, r24
   39cf0:	d1 f0       	breq	.+52     	; 0x39d26 <world2machine_revert_to_uncorrected()+0x3c>
        world2machine_reset();
   39cf2:	0f 94 3c ce 	call	0x39c78	; 0x39c78 <world2machine_reset()>
        st_synchronize();
   39cf6:	0f 94 f4 43 	call	0x287e8	; 0x287e8 <st_synchronize()>
        current_position[X_AXIS] = st_get_position_mm(X_AXIS);
   39cfa:	80 e0       	ldi	r24, 0x00	; 0
   39cfc:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   39d00:	60 93 92 06 	sts	0x0692, r22	; 0x800692 <current_position>
   39d04:	70 93 93 06 	sts	0x0693, r23	; 0x800693 <current_position+0x1>
   39d08:	80 93 94 06 	sts	0x0694, r24	; 0x800694 <current_position+0x2>
   39d0c:	90 93 95 06 	sts	0x0695, r25	; 0x800695 <current_position+0x3>
        current_position[Y_AXIS] = st_get_position_mm(Y_AXIS);
   39d10:	81 e0       	ldi	r24, 0x01	; 1
   39d12:	0f 94 e0 43 	call	0x287c0	; 0x287c0 <st_get_position_mm(unsigned char)>
   39d16:	60 93 96 06 	sts	0x0696, r22	; 0x800696 <current_position+0x4>
   39d1a:	70 93 97 06 	sts	0x0697, r23	; 0x800697 <current_position+0x5>
   39d1e:	80 93 98 06 	sts	0x0698, r24	; 0x800698 <current_position+0x6>
   39d22:	90 93 99 06 	sts	0x0699, r25	; 0x800699 <current_position+0x7>
    }
}
   39d26:	08 95       	ret

00039d28 <reset_bed_offset_and_skew()>:
        if (previous_value != value) {
            eeprom_dword_notify(dst, previous_value, value, false);
        }
    }
#endif //DEBUG_EEPROM_CHANGES
    eeprom_update_dword(dst, value);
   39d28:	4f ef       	ldi	r20, 0xFF	; 255
   39d2a:	5f ef       	ldi	r21, 0xFF	; 255
   39d2c:	ba 01       	movw	r22, r20
   39d2e:	85 ee       	ldi	r24, 0xE5	; 229
   39d30:	9f e0       	ldi	r25, 0x0F	; 15
   39d32:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d36:	4f ef       	ldi	r20, 0xFF	; 255
   39d38:	5f ef       	ldi	r21, 0xFF	; 255
   39d3a:	ba 01       	movw	r22, r20
   39d3c:	89 ee       	ldi	r24, 0xE9	; 233
   39d3e:	9f e0       	ldi	r25, 0x0F	; 15
   39d40:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d44:	4f ef       	ldi	r20, 0xFF	; 255
   39d46:	5f ef       	ldi	r21, 0xFF	; 255
   39d48:	ba 01       	movw	r22, r20
   39d4a:	8d ed       	ldi	r24, 0xDD	; 221
   39d4c:	9f e0       	ldi	r25, 0x0F	; 15
   39d4e:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d52:	4f ef       	ldi	r20, 0xFF	; 255
   39d54:	5f ef       	ldi	r21, 0xFF	; 255
   39d56:	ba 01       	movw	r22, r20
   39d58:	81 ee       	ldi	r24, 0xE1	; 225
   39d5a:	9f e0       	ldi	r25, 0x0F	; 15
   39d5c:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d60:	4f ef       	ldi	r20, 0xFF	; 255
   39d62:	5f ef       	ldi	r21, 0xFF	; 255
   39d64:	ba 01       	movw	r22, r20
   39d66:	85 ed       	ldi	r24, 0xD5	; 213
   39d68:	9f e0       	ldi	r25, 0x0F	; 15
   39d6a:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d6e:	4f ef       	ldi	r20, 0xFF	; 255
   39d70:	5f ef       	ldi	r21, 0xFF	; 255
   39d72:	ba 01       	movw	r22, r20
   39d74:	89 ed       	ldi	r24, 0xD9	; 217
   39d76:	9f e0       	ldi	r25, 0x0F	; 15
   39d78:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d7c:	4f ef       	ldi	r20, 0xFF	; 255
   39d7e:	5f ef       	ldi	r21, 0xFF	; 255
   39d80:	ba 01       	movw	r22, r20
   39d82:	85 ec       	ldi	r24, 0xC5	; 197
   39d84:	9f e0       	ldi	r25, 0x0F	; 15
   39d86:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d8a:	4f ef       	ldi	r20, 0xFF	; 255
   39d8c:	5f ef       	ldi	r21, 0xFF	; 255
   39d8e:	ba 01       	movw	r22, r20
   39d90:	89 ec       	ldi	r24, 0xC9	; 201
   39d92:	9f e0       	ldi	r25, 0x0F	; 15
   39d94:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39d98:	4f ef       	ldi	r20, 0xFF	; 255
   39d9a:	5f ef       	ldi	r21, 0xFF	; 255
   39d9c:	ba 01       	movw	r22, r20
   39d9e:	8d ec       	ldi	r24, 0xCD	; 205
   39da0:	9f e0       	ldi	r25, 0x0F	; 15
   39da2:	0f 94 91 dc 	call	0x3b922	; 0x3b922 <eeprom_update_dword>
   39da6:	4f ef       	ldi	r20, 0xFF	; 255
   39da8:	5f ef       	ldi	r21, 0xFF	; 255
   39daa:	ba 01       	movw	r22, r20
   39dac:	81 ed       	ldi	r24, 0xD1	; 209
   39dae:	9f e0       	ldi	r25, 0x0F	; 15
   39db0:	0d 94 91 dc 	jmp	0x3b922	; 0x3b922 <eeprom_update_dword>

00039db4 <world2machine_initialize()>:

/**
 * @brief Read and apply validated calibration data from EEPROM
 */
void world2machine_initialize()
{
   39db4:	4f 92       	push	r4
   39db6:	5f 92       	push	r5
   39db8:	6f 92       	push	r6
   39dba:	7f 92       	push	r7
   39dbc:	8f 92       	push	r8
   39dbe:	9f 92       	push	r9
   39dc0:	af 92       	push	r10
   39dc2:	bf 92       	push	r11
   39dc4:	cf 92       	push	r12
   39dc6:	df 92       	push	r13
   39dc8:	ef 92       	push	r14
   39dca:	ff 92       	push	r15
   39dcc:	1f 93       	push	r17
   39dce:	cf 93       	push	r28
   39dd0:	df 93       	push	r29
   39dd2:	cd b7       	in	r28, 0x3d	; 61
   39dd4:	de b7       	in	r29, 0x3e	; 62
   39dd6:	a8 97       	sbiw	r28, 0x28	; 40
   39dd8:	0f b6       	in	r0, 0x3f	; 63
   39dda:	f8 94       	cli
   39ddc:	de bf       	out	0x3e, r29	; 62
   39dde:	0f be       	out	0x3f, r0	; 63
   39de0:	cd bf       	out	0x3d, r28	; 61
 * @param [out] vec_y axis y vector
 * @param [out] cntr offset vector
 */
void world2machine_read_valid(float vec_x[2], float vec_y[2], float cntr[2])
{
    eeprom_read_block(&vec_x[0], (float*)(EEPROM_BED_CALIBRATION_VEC_X), 8);
   39de2:	48 e0       	ldi	r20, 0x08	; 8
   39de4:	50 e0       	ldi	r21, 0x00	; 0
   39de6:	6d ed       	ldi	r22, 0xDD	; 221
   39de8:	7f e0       	ldi	r23, 0x0F	; 15
   39dea:	ce 01       	movw	r24, r28
   39dec:	01 96       	adiw	r24, 0x01	; 1
   39dee:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    eeprom_read_block(&vec_y[0], (float*)(EEPROM_BED_CALIBRATION_VEC_Y), 8);
   39df2:	48 e0       	ldi	r20, 0x08	; 8
   39df4:	50 e0       	ldi	r21, 0x00	; 0
   39df6:	65 ed       	ldi	r22, 0xD5	; 213
   39df8:	7f e0       	ldi	r23, 0x0F	; 15
   39dfa:	ce 01       	movw	r24, r28
   39dfc:	09 96       	adiw	r24, 0x09	; 9
   39dfe:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    eeprom_read_block(&cntr[0], (float*)(EEPROM_BED_CALIBRATION_CENTER), 8);
   39e02:	48 e0       	ldi	r20, 0x08	; 8
   39e04:	50 e0       	ldi	r21, 0x00	; 0
   39e06:	65 ee       	ldi	r22, 0xE5	; 229
   39e08:	7f e0       	ldi	r23, 0x0F	; 15
   39e0a:	ce 01       	movw	r24, r28
   39e0c:	41 96       	adiw	r24, 0x11	; 17
   39e0e:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
}

static inline bool vec_undef(const float v[2])
{
    const uint32_t *vx = (const uint32_t*)v;
    return vx[0] == 0xFFFFFFFF || vx[1] == 0xFFFFFFFF;
   39e12:	89 89       	ldd	r24, Y+17	; 0x11
   39e14:	9a 89       	ldd	r25, Y+18	; 0x12
   39e16:	ab 89       	ldd	r26, Y+19	; 0x13
   39e18:	bc 89       	ldd	r27, Y+20	; 0x14
   39e1a:	89 a3       	std	Y+33, r24	; 0x21
   39e1c:	9a a3       	std	Y+34, r25	; 0x22
   39e1e:	ab a3       	std	Y+35, r26	; 0x23
   39e20:	bc a3       	std	Y+36, r27	; 0x24
   39e22:	8f 3f       	cpi	r24, 0xFF	; 255
   39e24:	9f 4f       	sbci	r25, 0xFF	; 255
   39e26:	af 4f       	sbci	r26, 0xFF	; 255
   39e28:	bf 4f       	sbci	r27, 0xFF	; 255
   39e2a:	09 f4       	brne	.+2      	; 0x39e2e <world2machine_initialize()+0x7a>
   39e2c:	b1 c0       	rjmp	.+354    	; 0x39f90 <world2machine_initialize()+0x1dc>
   39e2e:	8d 89       	ldd	r24, Y+21	; 0x15
   39e30:	9e 89       	ldd	r25, Y+22	; 0x16
   39e32:	af 89       	ldd	r26, Y+23	; 0x17
   39e34:	b8 8d       	ldd	r27, Y+24	; 0x18
   39e36:	8d a3       	std	Y+37, r24	; 0x25
   39e38:	9e a3       	std	Y+38, r25	; 0x26
   39e3a:	af a3       	std	Y+39, r26	; 0x27
   39e3c:	b8 a7       	std	Y+40, r27	; 0x28
   39e3e:	8f 3f       	cpi	r24, 0xFF	; 255
   39e40:	9f 4f       	sbci	r25, 0xFF	; 255
   39e42:	af 4f       	sbci	r26, 0xFF	; 255
   39e44:	bf 4f       	sbci	r27, 0xFF	; 255
   39e46:	09 f4       	brne	.+2      	; 0x39e4a <world2machine_initialize()+0x96>
   39e48:	a3 c0       	rjmp	.+326    	; 0x39f90 <world2machine_initialize()+0x1dc>
   39e4a:	89 80       	ldd	r8, Y+1	; 0x01
   39e4c:	9a 80       	ldd	r9, Y+2	; 0x02
   39e4e:	ab 80       	ldd	r10, Y+3	; 0x03
   39e50:	bc 80       	ldd	r11, Y+4	; 0x04
   39e52:	8f ef       	ldi	r24, 0xFF	; 255
   39e54:	88 16       	cp	r8, r24
   39e56:	98 06       	cpc	r9, r24
   39e58:	a8 06       	cpc	r10, r24
   39e5a:	b8 06       	cpc	r11, r24
   39e5c:	09 f4       	brne	.+2      	; 0x39e60 <world2machine_initialize()+0xac>
   39e5e:	98 c0       	rjmp	.+304    	; 0x39f90 <world2machine_initialize()+0x1dc>
   39e60:	8d 81       	ldd	r24, Y+5	; 0x05
   39e62:	9e 81       	ldd	r25, Y+6	; 0x06
   39e64:	af 81       	ldd	r26, Y+7	; 0x07
   39e66:	b8 85       	ldd	r27, Y+8	; 0x08
   39e68:	89 8f       	std	Y+25, r24	; 0x19
   39e6a:	9a 8f       	std	Y+26, r25	; 0x1a
   39e6c:	ab 8f       	std	Y+27, r26	; 0x1b
   39e6e:	bc 8f       	std	Y+28, r27	; 0x1c
   39e70:	8f 3f       	cpi	r24, 0xFF	; 255
   39e72:	9f 4f       	sbci	r25, 0xFF	; 255
   39e74:	af 4f       	sbci	r26, 0xFF	; 255
   39e76:	bf 4f       	sbci	r27, 0xFF	; 255
   39e78:	09 f4       	brne	.+2      	; 0x39e7c <world2machine_initialize()+0xc8>
   39e7a:	8a c0       	rjmp	.+276    	; 0x39f90 <world2machine_initialize()+0x1dc>
   39e7c:	c9 84       	ldd	r12, Y+9	; 0x09
   39e7e:	da 84       	ldd	r13, Y+10	; 0x0a
   39e80:	eb 84       	ldd	r14, Y+11	; 0x0b
   39e82:	fc 84       	ldd	r15, Y+12	; 0x0c
   39e84:	8f ef       	ldi	r24, 0xFF	; 255
   39e86:	c8 16       	cp	r12, r24
   39e88:	d8 06       	cpc	r13, r24
   39e8a:	e8 06       	cpc	r14, r24
   39e8c:	f8 06       	cpc	r15, r24
   39e8e:	09 f4       	brne	.+2      	; 0x39e92 <world2machine_initialize()+0xde>
   39e90:	7f c0       	rjmp	.+254    	; 0x39f90 <world2machine_initialize()+0x1dc>
   39e92:	8d 85       	ldd	r24, Y+13	; 0x0d
   39e94:	9e 85       	ldd	r25, Y+14	; 0x0e
   39e96:	af 85       	ldd	r26, Y+15	; 0x0f
   39e98:	b8 89       	ldd	r27, Y+16	; 0x10
   39e9a:	8d 8f       	std	Y+29, r24	; 0x1d
   39e9c:	9e 8f       	std	Y+30, r25	; 0x1e
   39e9e:	af 8f       	std	Y+31, r26	; 0x1f
   39ea0:	b8 a3       	std	Y+32, r27	; 0x20
   39ea2:	8f 3f       	cpi	r24, 0xFF	; 255
   39ea4:	9f 4f       	sbci	r25, 0xFF	; 255
   39ea6:	af 4f       	sbci	r26, 0xFF	; 255
   39ea8:	bf 4f       	sbci	r27, 0xFF	; 255
   39eaa:	09 f4       	brne	.+2      	; 0x39eae <world2machine_initialize()+0xfa>
   39eac:	71 c0       	rjmp	.+226    	; 0x39f90 <world2machine_initialize()+0x1dc>
        reset = true;
    }
    else
    {
        // Length of the vec_x shall be close to unity.
        float l = hypot(vec_x[0], vec_x[1]);
   39eae:	29 8d       	ldd	r18, Y+25	; 0x19
   39eb0:	3a 8d       	ldd	r19, Y+26	; 0x1a
   39eb2:	4b 8d       	ldd	r20, Y+27	; 0x1b
   39eb4:	5c 8d       	ldd	r21, Y+28	; 0x1c
   39eb6:	c5 01       	movw	r24, r10
   39eb8:	b4 01       	movw	r22, r8
   39eba:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
   39ebe:	2b 01       	movw	r4, r22
   39ec0:	3c 01       	movw	r6, r24
        if (l < 0.9 || l > 1.1)
   39ec2:	26 e6       	ldi	r18, 0x66	; 102
   39ec4:	36 e6       	ldi	r19, 0x66	; 102
   39ec6:	46 e6       	ldi	r20, 0x66	; 102
   39ec8:	5f e3       	ldi	r21, 0x3F	; 63
   39eca:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
#if 0
            SERIAL_ECHOLNPGM("X vector length:");
            MYSERIAL.println(l);
            SERIAL_ECHOLNPGM("Invalid bed correction matrix. Length of the X vector out of range.");
#endif
            reset = true;
   39ece:	11 e0       	ldi	r17, 0x01	; 1
    }
    else
    {
        // Length of the vec_x shall be close to unity.
        float l = hypot(vec_x[0], vec_x[1]);
        if (l < 0.9 || l > 1.1)
   39ed0:	87 fd       	sbrc	r24, 7
   39ed2:	0b c0       	rjmp	.+22     	; 0x39eea <world2machine_initialize()+0x136>
   39ed4:	2d ec       	ldi	r18, 0xCD	; 205
   39ed6:	3c ec       	ldi	r19, 0xCC	; 204
   39ed8:	4c e8       	ldi	r20, 0x8C	; 140
   39eda:	5f e3       	ldi	r21, 0x3F	; 63
   39edc:	c3 01       	movw	r24, r6
   39ede:	b2 01       	movw	r22, r4
   39ee0:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   39ee4:	18 16       	cp	r1, r24
   39ee6:	0c f0       	brlt	.+2      	; 0x39eea <world2machine_initialize()+0x136>
   39ee8:	10 e0       	ldi	r17, 0x00	; 0
            SERIAL_ECHOLNPGM("Invalid bed correction matrix. Length of the X vector out of range.");
#endif
            reset = true;
        }
        // Length of the vec_y shall be close to unity.
        l = hypot(vec_y[0], vec_y[1]);
   39eea:	2d 8d       	ldd	r18, Y+29	; 0x1d
   39eec:	3e 8d       	ldd	r19, Y+30	; 0x1e
   39eee:	4f 8d       	ldd	r20, Y+31	; 0x1f
   39ef0:	58 a1       	ldd	r21, Y+32	; 0x20
   39ef2:	c7 01       	movw	r24, r14
   39ef4:	b6 01       	movw	r22, r12
   39ef6:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
   39efa:	2b 01       	movw	r4, r22
   39efc:	3c 01       	movw	r6, r24
        if (l < 0.9 || l > 1.1)
   39efe:	26 e6       	ldi	r18, 0x66	; 102
   39f00:	36 e6       	ldi	r19, 0x66	; 102
   39f02:	46 e6       	ldi	r20, 0x66	; 102
   39f04:	5f e3       	ldi	r21, 0x3F	; 63
   39f06:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   39f0a:	87 fd       	sbrc	r24, 7
   39f0c:	7f c0       	rjmp	.+254    	; 0x3a00c <world2machine_initialize()+0x258>
   39f0e:	2d ec       	ldi	r18, 0xCD	; 205
   39f10:	3c ec       	ldi	r19, 0xCC	; 204
   39f12:	4c e8       	ldi	r20, 0x8C	; 140
   39f14:	5f e3       	ldi	r21, 0x3F	; 63
   39f16:	c3 01       	movw	r24, r6
   39f18:	b2 01       	movw	r22, r4
   39f1a:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   39f1e:	18 16       	cp	r1, r24
   39f20:	0c f4       	brge	.+2      	; 0x39f24 <world2machine_initialize()+0x170>
   39f22:	74 c0       	rjmp	.+232    	; 0x3a00c <world2machine_initialize()+0x258>
            SERIAL_ECHOLNPGM("Invalid bed correction matrix. Length of the Y vector out of range.");
#endif
            reset = true;
        }
        // Correction of the zero point shall be reasonably small.
        l = hypot(cntr[0], cntr[1]);
   39f24:	2d a1       	ldd	r18, Y+37	; 0x25
   39f26:	3e a1       	ldd	r19, Y+38	; 0x26
   39f28:	4f a1       	ldd	r20, Y+39	; 0x27
   39f2a:	58 a5       	ldd	r21, Y+40	; 0x28
   39f2c:	69 a1       	ldd	r22, Y+33	; 0x21
   39f2e:	7a a1       	ldd	r23, Y+34	; 0x22
   39f30:	8b a1       	ldd	r24, Y+35	; 0x23
   39f32:	9c a1       	ldd	r25, Y+36	; 0x24
   39f34:	0f 94 1f e0 	call	0x3c03e	; 0x3c03e <hypot>
        if (l > 15.f)
   39f38:	20 e0       	ldi	r18, 0x00	; 0
   39f3a:	30 e0       	ldi	r19, 0x00	; 0
   39f3c:	40 e7       	ldi	r20, 0x70	; 112
   39f3e:	51 e4       	ldi	r21, 0x41	; 65
   39f40:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   39f44:	18 16       	cp	r1, r24
   39f46:	0c f4       	brge	.+2      	; 0x39f4a <world2machine_initialize()+0x196>
#if 0
            SERIAL_ECHOLNPGM("Zero point correction:");
            MYSERIAL.println(l);
            SERIAL_ECHOLNPGM("Invalid bed correction matrix. Shift out of range.");
#endif
            reset = true;
   39f48:	11 e0       	ldi	r17, 0x01	; 1
        }
        // vec_x and vec_y shall be nearly perpendicular.
        l = vec_x[0] * vec_y[0] + vec_x[1] * vec_y[1];
   39f4a:	a5 01       	movw	r20, r10
   39f4c:	94 01       	movw	r18, r8
   39f4e:	c7 01       	movw	r24, r14
   39f50:	b6 01       	movw	r22, r12
   39f52:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39f56:	6b 01       	movw	r12, r22
   39f58:	7c 01       	movw	r14, r24
   39f5a:	2d 8d       	ldd	r18, Y+29	; 0x1d
   39f5c:	3e 8d       	ldd	r19, Y+30	; 0x1e
   39f5e:	4f 8d       	ldd	r20, Y+31	; 0x1f
   39f60:	58 a1       	ldd	r21, Y+32	; 0x20
   39f62:	69 8d       	ldd	r22, Y+25	; 0x19
   39f64:	7a 8d       	ldd	r23, Y+26	; 0x1a
   39f66:	8b 8d       	ldd	r24, Y+27	; 0x1b
   39f68:	9c 8d       	ldd	r25, Y+28	; 0x1c
   39f6a:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   39f6e:	9b 01       	movw	r18, r22
   39f70:	ac 01       	movw	r20, r24
   39f72:	c7 01       	movw	r24, r14
   39f74:	b6 01       	movw	r22, r12
   39f76:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
        if (fabs(l) > 0.1f)
   39f7a:	9f 77       	andi	r25, 0x7F	; 127
   39f7c:	2d ec       	ldi	r18, 0xCD	; 205
   39f7e:	3c ec       	ldi	r19, 0xCC	; 204
   39f80:	4c ec       	ldi	r20, 0xCC	; 204
   39f82:	5d e3       	ldi	r21, 0x3D	; 61
   39f84:	0f 94 0c e0 	call	0x3c018	; 0x3c018 <__gesf2>
   39f88:	18 16       	cp	r1, r24
   39f8a:	14 f0       	brlt	.+4      	; 0x39f90 <world2machine_initialize()+0x1dc>
#endif
            reset = true;
        }
    }

    if (reset)
   39f8c:	11 23       	and	r17, r17
   39f8e:	f1 f0       	breq	.+60     	; 0x39fcc <world2machine_initialize()+0x218>
    {
#if 0
        SERIAL_ECHOLNPGM("Invalid bed correction matrix. Resetting to identity.");
#endif
        reset_bed_offset_and_skew();
   39f90:	0f 94 94 ce 	call	0x39d28	; 0x39d28 <reset_bed_offset_and_skew()>
 * @param [out] vec_y axis y vector
 * @param [out] cntr offset vector
 */
static void world2machine_default(float vec_x[2], float vec_y[2], float cntr[2])
{
    vec_x[0] = 1.f;
   39f94:	80 e0       	ldi	r24, 0x00	; 0
   39f96:	90 e0       	ldi	r25, 0x00	; 0
   39f98:	a0 e8       	ldi	r26, 0x80	; 128
   39f9a:	bf e3       	ldi	r27, 0x3F	; 63
   39f9c:	89 83       	std	Y+1, r24	; 0x01
   39f9e:	9a 83       	std	Y+2, r25	; 0x02
   39fa0:	ab 83       	std	Y+3, r26	; 0x03
   39fa2:	bc 83       	std	Y+4, r27	; 0x04
    vec_x[1] = 0.f;
   39fa4:	1d 82       	std	Y+5, r1	; 0x05
   39fa6:	1e 82       	std	Y+6, r1	; 0x06
   39fa8:	1f 82       	std	Y+7, r1	; 0x07
   39faa:	18 86       	std	Y+8, r1	; 0x08
    vec_y[0] = 0.f;
   39fac:	19 86       	std	Y+9, r1	; 0x09
   39fae:	1a 86       	std	Y+10, r1	; 0x0a
   39fb0:	1b 86       	std	Y+11, r1	; 0x0b
   39fb2:	1c 86       	std	Y+12, r1	; 0x0c
    vec_y[1] = 1.f;
   39fb4:	8d 87       	std	Y+13, r24	; 0x0d
   39fb6:	9e 87       	std	Y+14, r25	; 0x0e
   39fb8:	af 87       	std	Y+15, r26	; 0x0f
   39fba:	b8 8b       	std	Y+16, r27	; 0x10
    cntr[0] =  0.f;
   39fbc:	19 8a       	std	Y+17, r1	; 0x11
   39fbe:	1a 8a       	std	Y+18, r1	; 0x12
   39fc0:	1b 8a       	std	Y+19, r1	; 0x13
   39fc2:	1c 8a       	std	Y+20, r1	; 0x14
#ifdef DEFAULT_Y_OFFSET
    cntr[1] = DEFAULT_Y_OFFSET;
#else
    cntr[1] = 0.f;
   39fc4:	1d 8a       	std	Y+21, r1	; 0x15
   39fc6:	1e 8a       	std	Y+22, r1	; 0x16
   39fc8:	1f 8a       	std	Y+23, r1	; 0x17
   39fca:	18 8e       	std	Y+24, r1	; 0x18
#endif
    float vec_x[2];
    float vec_y[2];
    float cntr[2];
    world2machine_read_valid(vec_x, vec_y, cntr);
    world2machine_update(vec_x, vec_y, cntr);
   39fcc:	ae 01       	movw	r20, r28
   39fce:	4f 5e       	subi	r20, 0xEF	; 239
   39fd0:	5f 4f       	sbci	r21, 0xFF	; 255
   39fd2:	be 01       	movw	r22, r28
   39fd4:	67 5f       	subi	r22, 0xF7	; 247
   39fd6:	7f 4f       	sbci	r23, 0xFF	; 255
   39fd8:	ce 01       	movw	r24, r28
   39fda:	01 96       	adiw	r24, 0x01	; 1
   39fdc:	0f 94 f3 cc 	call	0x399e6	; 0x399e6 <world2machine_update(float const*, float const*, float const*) [clone .lto_priv.394]>
    MYSERIAL.print(world2machine_shift[0], 5);
    SERIAL_ECHOPGM(", ");
    MYSERIAL.print(world2machine_shift[1], 5);
    SERIAL_ECHOLNPGM("");
#endif
}
   39fe0:	a8 96       	adiw	r28, 0x28	; 40
   39fe2:	0f b6       	in	r0, 0x3f	; 63
   39fe4:	f8 94       	cli
   39fe6:	de bf       	out	0x3e, r29	; 62
   39fe8:	0f be       	out	0x3f, r0	; 63
   39fea:	cd bf       	out	0x3d, r28	; 61
   39fec:	df 91       	pop	r29
   39fee:	cf 91       	pop	r28
   39ff0:	1f 91       	pop	r17
   39ff2:	ff 90       	pop	r15
   39ff4:	ef 90       	pop	r14
   39ff6:	df 90       	pop	r13
   39ff8:	cf 90       	pop	r12
   39ffa:	bf 90       	pop	r11
   39ffc:	af 90       	pop	r10
   39ffe:	9f 90       	pop	r9
   3a000:	8f 90       	pop	r8
   3a002:	7f 90       	pop	r7
   3a004:	6f 90       	pop	r6
   3a006:	5f 90       	pop	r5
   3a008:	4f 90       	pop	r4
   3a00a:	08 95       	ret
#if 0
            SERIAL_ECHOLNPGM("Y vector length:");
            MYSERIAL.println(l);
            SERIAL_ECHOLNPGM("Invalid bed correction matrix. Length of the Y vector out of range.");
#endif
            reset = true;
   3a00c:	11 e0       	ldi	r17, 0x01	; 1
   3a00e:	8a cf       	rjmp	.-236    	; 0x39f24 <world2machine_initialize()+0x170>

0003a010 <menu_progressbar_update(unsigned int)>:
	lcd_print_pad_P(title, LCD_WIDTH);
	lcd_set_cursor(0, 2);
}

void menu_progressbar_update(uint16_t newVal)
{
   3a010:	cf 93       	push	r28
	uint8_t newCnt = (newVal * LCD_WIDTH) / progressbar_total;
   3a012:	24 e1       	ldi	r18, 0x14	; 20
   3a014:	ac 01       	movw	r20, r24
   3a016:	24 9f       	mul	r18, r20
   3a018:	c0 01       	movw	r24, r0
   3a01a:	25 9f       	mul	r18, r21
   3a01c:	90 0d       	add	r25, r0
   3a01e:	11 24       	eor	r1, r1
   3a020:	60 91 da 17 	lds	r22, 0x17DA	; 0x8017da <progressbar_total>
   3a024:	70 91 db 17 	lds	r23, 0x17DB	; 0x8017db <progressbar_total+0x1>
   3a028:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   3a02c:	c6 2f       	mov	r28, r22
   3a02e:	65 31       	cpi	r22, 0x15	; 21
   3a030:	08 f0       	brcs	.+2      	; 0x3a034 <menu_progressbar_update(unsigned int)+0x24>
   3a032:	c4 e1       	ldi	r28, 0x14	; 20
	if (newCnt > LCD_WIDTH)
		newCnt = LCD_WIDTH;
	while (newCnt > progressbar_block_count)
   3a034:	80 91 d9 17 	lds	r24, 0x17D9	; 0x8017d9 <progressbar_block_count>
   3a038:	8c 17       	cp	r24, r28
   3a03a:	48 f4       	brcc	.+18     	; 0x3a04e <menu_progressbar_update(unsigned int)+0x3e>
}

void lcd_print(long n, int base)
{
	if (base == 0)
		lcd_write(n);
   3a03c:	8f ef       	ldi	r24, 0xFF	; 255
   3a03e:	0e 94 16 6f 	call	0xde2c	; 0xde2c <lcd_write(unsigned char) [clone .lto_priv.432]>
	{
		lcd_print(LCD_STR_SOLID_BLOCK[0]);
		progressbar_block_count++;
   3a042:	80 91 d9 17 	lds	r24, 0x17D9	; 0x8017d9 <progressbar_block_count>
   3a046:	8f 5f       	subi	r24, 0xFF	; 255
   3a048:	80 93 d9 17 	sts	0x17D9, r24	; 0x8017d9 <progressbar_block_count>
   3a04c:	f3 cf       	rjmp	.-26     	; 0x3a034 <menu_progressbar_update(unsigned int)+0x24>
	}
}
   3a04e:	cf 91       	pop	r28
   3a050:	08 95       	ret

0003a052 <menu_progressbar_finish()>:

void menu_progressbar_finish(void)
{
	progressbar_total = 1;
   3a052:	81 e0       	ldi	r24, 0x01	; 1
   3a054:	90 e0       	ldi	r25, 0x00	; 0
   3a056:	90 93 db 17 	sts	0x17DB, r25	; 0x8017db <progressbar_total+0x1>
   3a05a:	80 93 da 17 	sts	0x17DA, r24	; 0x8017da <progressbar_total>
	menu_progressbar_update(1);
   3a05e:	0f 94 08 d0 	call	0x3a010	; 0x3a010 <menu_progressbar_update(unsigned int)>
	_delay(300);
   3a062:	6c e2       	ldi	r22, 0x2C	; 44
   3a064:	71 e0       	ldi	r23, 0x01	; 1
   3a066:	80 e0       	ldi	r24, 0x00	; 0
   3a068:	90 e0       	ldi	r25, 0x00	; 0
   3a06a:	0d 94 5f 28 	jmp	0x250be	; 0x250be <delay2>

0003a06e <menu_progressbar_init(unsigned int, char const*)>:
}

static uint8_t progressbar_block_count = 0;
static uint16_t progressbar_total = 0;
void menu_progressbar_init(uint16_t total, const char* title)
{
   3a06e:	0f 93       	push	r16
   3a070:	1f 93       	push	r17
   3a072:	cf 93       	push	r28
   3a074:	df 93       	push	r29
   3a076:	8c 01       	movw	r16, r24
   3a078:	eb 01       	movw	r28, r22
	lcd_clear();
   3a07a:	0e 94 9a 6e 	call	0xdd34	; 0xdd34 <lcd_clear()>
	progressbar_block_count = 0;
   3a07e:	10 92 d9 17 	sts	0x17D9, r1	; 0x8017d9 <progressbar_block_count>
	progressbar_total = total;
   3a082:	10 93 db 17 	sts	0x17DB, r17	; 0x8017db <progressbar_total+0x1>
   3a086:	00 93 da 17 	sts	0x17DA, r16	; 0x8017da <progressbar_total>

	lcd_set_cursor(0, 1);
   3a08a:	61 e0       	ldi	r22, 0x01	; 1
   3a08c:	80 e0       	ldi	r24, 0x00	; 0
   3a08e:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
	lcd_print_pad_P(title, LCD_WIDTH);
   3a092:	64 e1       	ldi	r22, 0x14	; 20
   3a094:	ce 01       	movw	r24, r28
   3a096:	0e 94 3c 70 	call	0xe078	; 0xe078 <lcd_print_pad_P(char const*, unsigned char)>
	lcd_set_cursor(0, 2);
   3a09a:	62 e0       	ldi	r22, 0x02	; 2
   3a09c:	80 e0       	ldi	r24, 0x00	; 0
}
   3a09e:	df 91       	pop	r29
   3a0a0:	cf 91       	pop	r28
   3a0a2:	1f 91       	pop	r17
   3a0a4:	0f 91       	pop	r16
	progressbar_block_count = 0;
	progressbar_total = total;

	lcd_set_cursor(0, 1);
	lcd_print_pad_P(title, LCD_WIDTH);
	lcd_set_cursor(0, 2);
   3a0a6:	0c 94 67 6e 	jmp	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>

0003a0aa <menu_item_leave()>:
	}
	menu_item++;
}

bool __attribute__((noinline)) menu_item_leave(){
    return ((menu_item == menu_line) && menu_clicked && (lcd_encoder == menu_item)) || menu_leaving;
   3a0aa:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a0ae:	90 91 14 05 	lds	r25, 0x0514	; 0x800514 <menu_line>
   3a0b2:	89 13       	cpse	r24, r25
   3a0b4:	0b c0       	rjmp	.+22     	; 0x3a0cc <menu_item_leave()+0x22>
   3a0b6:	90 91 13 05 	lds	r25, 0x0513	; 0x800513 <menu_clicked>
   3a0ba:	99 23       	and	r25, r25
   3a0bc:	39 f0       	breq	.+14     	; 0x3a0cc <menu_item_leave()+0x22>
   3a0be:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   3a0c2:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a0c6:	82 17       	cp	r24, r18
   3a0c8:	13 06       	cpc	r1, r19
   3a0ca:	39 f0       	breq	.+14     	; 0x3a0da <menu_item_leave()+0x30>
   3a0cc:	81 e0       	ldi	r24, 0x01	; 1
   3a0ce:	90 91 d7 03 	lds	r25, 0x03D7	; 0x8003d7 <menu_leaving>
   3a0d2:	91 11       	cpse	r25, r1
   3a0d4:	03 c0       	rjmp	.+6      	; 0x3a0dc <menu_item_leave()+0x32>
   3a0d6:	80 e0       	ldi	r24, 0x00	; 0
   3a0d8:	08 95       	ret
   3a0da:	81 e0       	ldi	r24, 0x01	; 1
}
   3a0dc:	08 95       	ret

0003a0de <menu_format_sheet_E(Sheet const&, SheetFormatBuffer&)>:
//! @brief Format sheet name
//!
//! @param[in] sheet_E Sheet in EEPROM
//! @param[out] buffer for formatted output
void menu_format_sheet_E(const Sheet &sheet_E, SheetFormatBuffer &buffer)
{
   3a0de:	0f 93       	push	r16
   3a0e0:	1f 93       	push	r17
   3a0e2:	cf 93       	push	r28
   3a0e4:	df 93       	push	r29
   3a0e6:	8c 01       	movw	r16, r24
   3a0e8:	eb 01       	movw	r28, r22
    uint_least8_t index = sprintf_P(buffer.c, PSTR("%.10S "), _T(MSG_SHEET));
   3a0ea:	81 ed       	ldi	r24, 0xD1	; 209
   3a0ec:	9c e4       	ldi	r25, 0x4C	; 76
   3a0ee:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3a0f2:	9f 93       	push	r25
   3a0f4:	8f 93       	push	r24
   3a0f6:	86 ee       	ldi	r24, 0xE6	; 230
   3a0f8:	9a ea       	ldi	r25, 0xAA	; 170
   3a0fa:	9f 93       	push	r25
   3a0fc:	8f 93       	push	r24
   3a0fe:	df 93       	push	r29
   3a100:	cf 93       	push	r28
   3a102:	0f 94 72 db 	call	0x3b6e4	; 0x3b6e4 <sprintf_P>
    eeprom_read_block(&(buffer.c[index]), sheet_E.name, 7);
   3a106:	c8 0f       	add	r28, r24
   3a108:	d1 1d       	adc	r29, r1
   3a10a:	47 e0       	ldi	r20, 0x07	; 7
   3a10c:	50 e0       	ldi	r21, 0x00	; 0
   3a10e:	b8 01       	movw	r22, r16
   3a110:	ce 01       	movw	r24, r28
   3a112:	0f 94 4b dc 	call	0x3b896	; 0x3b896 <eeprom_read_block>
    //index += 7;
    buffer.c[index + 7] = '\0';
   3a116:	1f 82       	std	Y+7, r1	; 0x07
   3a118:	0f 90       	pop	r0
   3a11a:	0f 90       	pop	r0
   3a11c:	0f 90       	pop	r0
   3a11e:	0f 90       	pop	r0
   3a120:	0f 90       	pop	r0
   3a122:	0f 90       	pop	r0
}
   3a124:	df 91       	pop	r29
   3a126:	cf 91       	pop	r28
   3a128:	1f 91       	pop	r17
   3a12a:	0f 91       	pop	r16
   3a12c:	08 95       	ret

0003a12e <menu_selection_mark() [clone .lto_priv.426]>:
	menu_line = 0; // prevent subsequent menu items from rendering at all in the current MENU_BEGIN() for loop cycle
	menu_clicked = 0; // prevent subsequent items from being able to be clicked in case the current menu or position was changed by the clicked menu item
}

static char menu_selection_mark(){
	return (lcd_encoder == menu_item)?'>':' ';
   3a12e:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a132:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a136:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a13a:	28 17       	cp	r18, r24
   3a13c:	19 06       	cpc	r1, r25
   3a13e:	11 f0       	breq	.+4      	; 0x3a144 <menu_selection_mark() [clone .lto_priv.426]+0x16>
   3a140:	80 e2       	ldi	r24, 0x20	; 32
   3a142:	08 95       	ret
   3a144:	8e e3       	ldi	r24, 0x3E	; 62
}
   3a146:	08 95       	ret

0003a148 <menu_draw_item_puts_P(char, char const*)>:

static void menu_draw_item_puts_P(char type_char, const char* str)
{
   3a148:	0f 93       	push	r16
   3a14a:	1f 93       	push	r17
   3a14c:	cf 93       	push	r28
   3a14e:	c8 2f       	mov	r28, r24
   3a150:	8b 01       	movw	r16, r22
    lcd_putc_at(0, menu_row, menu_selection_mark());
   3a152:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   3a156:	48 2f       	mov	r20, r24
   3a158:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a15c:	80 e0       	ldi	r24, 0x00	; 0
   3a15e:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_print_pad_P(str, LCD_WIDTH - 2);
   3a162:	62 e1       	ldi	r22, 0x12	; 18
   3a164:	c8 01       	movw	r24, r16
   3a166:	0e 94 3c 70 	call	0xe078	; 0xe078 <lcd_print_pad_P(char const*, unsigned char)>
    lcd_putc(type_char);
   3a16a:	8c 2f       	mov	r24, r28
}
   3a16c:	cf 91       	pop	r28
   3a16e:	1f 91       	pop	r17
   3a170:	0f 91       	pop	r16

static void menu_draw_item_puts_P(char type_char, const char* str)
{
    lcd_putc_at(0, menu_row, menu_selection_mark());
    lcd_print_pad_P(str, LCD_WIDTH - 2);
    lcd_putc(type_char);
   3a172:	0c 94 56 6e 	jmp	0xdcac	; 0xdcac <lcd_putc(char)>

0003a176 <menu_item_ret()>:
	}
}

void menu_item_ret(void)
{
	lcd_draw_update = 2;
   3a176:	82 e0       	ldi	r24, 0x02	; 2
   3a178:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
	menu_item++;
   3a17c:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a180:	8f 5f       	subi	r24, 0xFF	; 255
   3a182:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>

	//prevent the rest of the menu items from rendering or getting clicked
	menu_row = LCD_HEIGHT; // early exit from the MENU_BEGIN() for loop at the end of the current cycle
   3a186:	84 e0       	ldi	r24, 0x04	; 4
   3a188:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
	menu_line = 0; // prevent subsequent menu items from rendering at all in the current MENU_BEGIN() for loop cycle
   3a18c:	10 92 14 05 	sts	0x0514, r1	; 0x800514 <menu_line>
	menu_clicked = 0; // prevent subsequent items from being able to be clicked in case the current menu or position was changed by the clicked menu item
   3a190:	10 92 13 05 	sts	0x0513, r1	; 0x800513 <menu_clicked>
}
   3a194:	08 95       	ret

0003a196 <menu_item_gcode_P(char const*, char const*)>:
	}
	menu_item++;
}

void menu_item_gcode_P(const char* str, const char* str_gcode)
{
   3a196:	cf 93       	push	r28
   3a198:	df 93       	push	r29
	if (menu_item == menu_line)
   3a19a:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a19e:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a1a2:	32 13       	cpse	r19, r18
   3a1a4:	20 c0       	rjmp	.+64     	; 0x3a1e6 <menu_item_gcode_P(char const*, char const*)+0x50>
   3a1a6:	eb 01       	movw	r28, r22
   3a1a8:	bc 01       	movw	r22, r24
	{
		if (lcd_draw_update) menu_draw_item_puts_P(' ', str);
   3a1aa:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a1ae:	88 23       	and	r24, r24
   3a1b0:	19 f0       	breq	.+6      	; 0x3a1b8 <menu_item_gcode_P(char const*, char const*)+0x22>
   3a1b2:	80 e2       	ldi	r24, 0x20	; 32
   3a1b4:	0f 94 a4 d0 	call	0x3a148	; 0x3a148 <menu_draw_item_puts_P(char, char const*)>
		if (menu_clicked && (lcd_encoder == menu_item))
   3a1b8:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a1bc:	88 23       	and	r24, r24
   3a1be:	99 f0       	breq	.+38     	; 0x3a1e6 <menu_item_gcode_P(char const*, char const*)+0x50>
   3a1c0:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a1c4:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a1c8:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a1cc:	28 17       	cp	r18, r24
   3a1ce:	19 06       	cpc	r1, r25
   3a1d0:	51 f4       	brne	.+20     	; 0x3a1e6 <menu_item_gcode_P(char const*, char const*)+0x50>
		{
			if (str_gcode) enquecommand_P(str_gcode);
   3a1d2:	20 97       	sbiw	r28, 0x00	; 0
   3a1d4:	21 f0       	breq	.+8      	; 0x3a1de <menu_item_gcode_P(char const*, char const*)+0x48>
   3a1d6:	61 e0       	ldi	r22, 0x01	; 1
   3a1d8:	ce 01       	movw	r24, r28
   3a1da:	0e 94 a7 87 	call	0x10f4e	; 0x10f4e <enquecommand(char const*, bool)>
			menu_item_ret();
			return;
		}
	}
	menu_item++;
}
   3a1de:	df 91       	pop	r29
   3a1e0:	cf 91       	pop	r28
	{
		if (lcd_draw_update) menu_draw_item_puts_P(' ', str);
		if (menu_clicked && (lcd_encoder == menu_item))
		{
			if (str_gcode) enquecommand_P(str_gcode);
			menu_item_ret();
   3a1e2:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
			return;
		}
	}
	menu_item++;
   3a1e6:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a1ea:	8f 5f       	subi	r24, 0xFF	; 255
   3a1ec:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a1f0:	df 91       	pop	r29
   3a1f2:	cf 91       	pop	r28
   3a1f4:	08 95       	ret

0003a1f6 <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)>:
//! @param func pointer to function taking uint8_t with no return value
//! @param fn_par value to be passed to function
//! @retval 0
//! @retval 1 Item was clicked
void menu_item_function_P(const char* str, char number, void (*func)(uint8_t), uint8_t fn_par)
{
   3a1f6:	ef 92       	push	r14
   3a1f8:	ff 92       	push	r15
   3a1fa:	0f 93       	push	r16
   3a1fc:	1f 93       	push	r17
   3a1fe:	cf 93       	push	r28
   3a200:	df 93       	push	r29
    if (menu_item == menu_line)
   3a202:	70 91 15 05 	lds	r23, 0x0515	; 0x800515 <menu_item>
   3a206:	30 91 14 05 	lds	r19, 0x0514	; 0x800514 <menu_line>
   3a20a:	73 13       	cpse	r23, r19
   3a20c:	3f c0       	rjmp	.+126    	; 0x3a28c <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)+0x96>
   3a20e:	12 2f       	mov	r17, r18
   3a210:	ea 01       	movw	r28, r20
   3a212:	06 2f       	mov	r16, r22
   3a214:	7c 01       	movw	r14, r24
    {
        if (lcd_draw_update) menu_draw_item_puts_P(' ', str, number);
   3a216:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a21a:	88 23       	and	r24, r24
   3a21c:	d1 f0       	breq	.+52     	; 0x3a252 <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)+0x5c>
}

static void menu_draw_item_puts_P(char type_char, const char* str, char num)
{
    const uint8_t max_strlen = LCD_WIDTH - 3;
    lcd_putc_at(0, menu_row, menu_selection_mark());
   3a21e:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   3a222:	48 2f       	mov	r20, r24
   3a224:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a228:	80 e0       	ldi	r24, 0x00	; 0
   3a22a:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    uint8_t len = lcd_print_pad_P(str, max_strlen);
   3a22e:	61 e1       	ldi	r22, 0x11	; 17
   3a230:	c7 01       	movw	r24, r14
   3a232:	0e 94 3c 70 	call	0xe078	; 0xe078 <lcd_print_pad_P(char const*, unsigned char)>
    lcd_putc_at((max_strlen - len) + 2, menu_row, num);
   3a236:	40 2f       	mov	r20, r16
   3a238:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a23c:	93 e1       	ldi	r25, 0x13	; 19
   3a23e:	98 1b       	sub	r25, r24
   3a240:	89 2f       	mov	r24, r25
   3a242:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_putc_at(LCD_WIDTH - 1, menu_row, type_char);
   3a246:	40 e2       	ldi	r20, 0x20	; 32
   3a248:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a24c:	83 e1       	ldi	r24, 0x13	; 19
   3a24e:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
void menu_item_function_P(const char* str, char number, void (*func)(uint8_t), uint8_t fn_par)
{
    if (menu_item == menu_line)
    {
        if (lcd_draw_update) menu_draw_item_puts_P(' ', str, number);
        if (menu_clicked && (lcd_encoder == menu_item))
   3a252:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a256:	88 23       	and	r24, r24
   3a258:	c9 f0       	breq	.+50     	; 0x3a28c <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)+0x96>
   3a25a:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a25e:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a262:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a266:	28 17       	cp	r18, r24
   3a268:	19 06       	cpc	r1, r25
   3a26a:	81 f4       	brne	.+32     	; 0x3a28c <menu_item_function_P(char const*, char, void (*)(unsigned char), unsigned char)+0x96>
        {
            lcd_update_enabled = 0;
   3a26c:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
            if (func) func(fn_par);
   3a270:	81 2f       	mov	r24, r17
   3a272:	fe 01       	movw	r30, r28
   3a274:	19 95       	eicall
            lcd_update_enabled = 1;
   3a276:	81 e0       	ldi	r24, 0x01	; 1
   3a278:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
            menu_item_ret();
            return;
        }
    }
    menu_item++;
}
   3a27c:	df 91       	pop	r29
   3a27e:	cf 91       	pop	r28
   3a280:	1f 91       	pop	r17
   3a282:	0f 91       	pop	r16
   3a284:	ff 90       	pop	r15
   3a286:	ef 90       	pop	r14
        if (menu_clicked && (lcd_encoder == menu_item))
        {
            lcd_update_enabled = 0;
            if (func) func(fn_par);
            lcd_update_enabled = 1;
            menu_item_ret();
   3a288:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
            return;
        }
    }
    menu_item++;
   3a28c:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a290:	8f 5f       	subi	r24, 0xFF	; 255
   3a292:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a296:	df 91       	pop	r29
   3a298:	cf 91       	pop	r28
   3a29a:	1f 91       	pop	r17
   3a29c:	0f 91       	pop	r16
   3a29e:	ff 90       	pop	r15
   3a2a0:	ef 90       	pop	r14
   3a2a2:	08 95       	ret

0003a2a4 <menu_item_function_P(char const*, void (*)())>:
bool __attribute__((noinline)) menu_item_leave(){
    return ((menu_item == menu_line) && menu_clicked && (lcd_encoder == menu_item)) || menu_leaving;
}

void menu_item_function_P(const char* str, menu_func_t func)
{
   3a2a4:	cf 93       	push	r28
   3a2a6:	df 93       	push	r29
	if (menu_item == menu_line)
   3a2a8:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a2ac:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a2b0:	32 13       	cpse	r19, r18
   3a2b2:	21 c0       	rjmp	.+66     	; 0x3a2f6 <menu_item_function_P(char const*, void (*)())+0x52>
   3a2b4:	eb 01       	movw	r28, r22
   3a2b6:	bc 01       	movw	r22, r24
	{
		if (lcd_draw_update) menu_draw_item_puts_P(' ', str);
   3a2b8:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a2bc:	88 23       	and	r24, r24
   3a2be:	19 f0       	breq	.+6      	; 0x3a2c6 <menu_item_function_P(char const*, void (*)())+0x22>
   3a2c0:	80 e2       	ldi	r24, 0x20	; 32
   3a2c2:	0f 94 a4 d0 	call	0x3a148	; 0x3a148 <menu_draw_item_puts_P(char, char const*)>
		if (menu_clicked && (lcd_encoder == menu_item))
   3a2c6:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a2ca:	88 23       	and	r24, r24
   3a2cc:	a1 f0       	breq	.+40     	; 0x3a2f6 <menu_item_function_P(char const*, void (*)())+0x52>
   3a2ce:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a2d2:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a2d6:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a2da:	28 17       	cp	r18, r24
   3a2dc:	19 06       	cpc	r1, r25
   3a2de:	59 f4       	brne	.+22     	; 0x3a2f6 <menu_item_function_P(char const*, void (*)())+0x52>
		{
			lcd_update_enabled = 0;
   3a2e0:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
			if (func) func();
   3a2e4:	fe 01       	movw	r30, r28
   3a2e6:	19 95       	eicall
			lcd_update_enabled = 1;
   3a2e8:	81 e0       	ldi	r24, 0x01	; 1
   3a2ea:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
			menu_item_ret();
			return;
		}
	}
	menu_item++;
}
   3a2ee:	df 91       	pop	r29
   3a2f0:	cf 91       	pop	r28
		if (menu_clicked && (lcd_encoder == menu_item))
		{
			lcd_update_enabled = 0;
			if (func) func();
			lcd_update_enabled = 1;
			menu_item_ret();
   3a2f2:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
			return;
		}
	}
	menu_item++;
   3a2f6:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a2fa:	8f 5f       	subi	r24, 0xFF	; 255
   3a2fc:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a300:	df 91       	pop	r29
   3a302:	cf 91       	pop	r28
   3a304:	08 95       	ret

0003a306 <menu_item_text_P(char const*)>:
	menu_item++;
}

uint8_t menu_item_text_P(const char* str)
{
	if (menu_item == menu_line)
   3a306:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a30a:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a30e:	32 13       	cpse	r19, r18
   3a310:	19 c0       	rjmp	.+50     	; 0x3a344 <menu_item_text_P(char const*)+0x3e>
   3a312:	bc 01       	movw	r22, r24
	{
		if (lcd_draw_update) menu_draw_item_puts_P(' ', str);
   3a314:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a318:	88 23       	and	r24, r24
   3a31a:	19 f0       	breq	.+6      	; 0x3a322 <menu_item_text_P(char const*)+0x1c>
   3a31c:	80 e2       	ldi	r24, 0x20	; 32
   3a31e:	0f 94 a4 d0 	call	0x3a148	; 0x3a148 <menu_draw_item_puts_P(char, char const*)>
		if (menu_clicked && (lcd_encoder == menu_item))
   3a322:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a326:	88 23       	and	r24, r24
   3a328:	69 f0       	breq	.+26     	; 0x3a344 <menu_item_text_P(char const*)+0x3e>
   3a32a:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a32e:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a332:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a336:	28 17       	cp	r18, r24
   3a338:	19 06       	cpc	r1, r25
   3a33a:	21 f4       	brne	.+8      	; 0x3a344 <menu_item_text_P(char const*)+0x3e>
		{
			menu_item_ret();
   3a33c:	0f 94 bb d0 	call	0x3a176	; 0x3a176 <menu_item_ret()>
			return 1;
   3a340:	81 e0       	ldi	r24, 0x01	; 1
   3a342:	08 95       	ret
		}
	}
	menu_item++;
   3a344:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a348:	8f 5f       	subi	r24, 0xFF	; 255
   3a34a:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
	return 0;
   3a34e:	80 e0       	ldi	r24, 0x00	; 0
}
   3a350:	08 95       	ret

0003a352 <menu_end()>:
    menu_clicked = lcd_clicked(); // Consume click event
}

void menu_end(void)
{
	if (menu_row >= LCD_HEIGHT)
   3a352:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   3a356:	84 30       	cpi	r24, 0x04	; 4
   3a358:	38 f5       	brcc	.+78     	; 0x3a3a8 <menu_end()+0x56>
	{
		// Early abort if the menu was clicked. The current menu might have changed because of the click event
		return;
	}
	if (lcd_encoder >= menu_item)
   3a35a:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a35e:	90 e0       	ldi	r25, 0x00	; 0
   3a360:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   3a364:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a368:	28 17       	cp	r18, r24
   3a36a:	39 07       	cpc	r19, r25
   3a36c:	44 f0       	brlt	.+16     	; 0x3a37e <menu_end()+0x2c>
	{
		lcd_encoder = menu_item - 1;
   3a36e:	01 97       	sbiw	r24, 0x01	; 1
   3a370:	90 93 71 06 	sts	0x0671, r25	; 0x800671 <lcd_encoder+0x1>
   3a374:	80 93 70 06 	sts	0x0670, r24	; 0x800670 <lcd_encoder>
		Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   3a378:	87 e0       	ldi	r24, 0x07	; 7
   3a37a:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
	}
	if (((uint8_t)lcd_encoder) >= menu_top + LCD_HEIGHT)
   3a37e:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a382:	20 91 a5 03 	lds	r18, 0x03A5	; 0x8003a5 <menu_top>
   3a386:	30 e0       	ldi	r19, 0x00	; 0
   3a388:	2d 5f       	subi	r18, 0xFD	; 253
   3a38a:	3f 4f       	sbci	r19, 0xFF	; 255
   3a38c:	82 17       	cp	r24, r18
   3a38e:	13 06       	cpc	r1, r19
   3a390:	59 f0       	breq	.+22     	; 0x3a3a8 <menu_end()+0x56>
   3a392:	54 f0       	brlt	.+20     	; 0x3a3a8 <menu_end()+0x56>
	{
		menu_top = lcd_encoder - LCD_HEIGHT + 1;
   3a394:	9d ef       	ldi	r25, 0xFD	; 253
   3a396:	98 0f       	add	r25, r24
   3a398:	90 93 a5 03 	sts	0x03A5, r25	; 0x8003a5 <menu_top>
		menu_line = menu_top - 1;
   3a39c:	84 50       	subi	r24, 0x04	; 4
   3a39e:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
		menu_row = -1;
   3a3a2:	8f ef       	ldi	r24, 0xFF	; 255
   3a3a4:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
	}
}
   3a3a8:	08 95       	ret

0003a3aa <menu_start()>:
		CRITICAL_SECTION_END;
}

void menu_start(void)
{
    if (lcd_encoder < 0)
   3a3aa:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a3ae:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a3b2:	97 ff       	sbrs	r25, 7
   3a3b4:	07 c0       	rjmp	.+14     	; 0x3a3c4 <menu_start()+0x1a>
    {
        lcd_encoder = 0;
   3a3b6:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   3a3ba:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
		Sound_MakeSound(e_SOUND_TYPE_BlindAlert);
   3a3be:	87 e0       	ldi	r24, 0x07	; 7
   3a3c0:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
    }
    if (lcd_encoder < menu_top)
   3a3c4:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a3c8:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a3cc:	20 91 a5 03 	lds	r18, 0x03A5	; 0x8003a5 <menu_top>
   3a3d0:	28 17       	cp	r18, r24
   3a3d2:	19 06       	cpc	r1, r25
   3a3d4:	19 f0       	breq	.+6      	; 0x3a3dc <menu_start()+0x32>
   3a3d6:	14 f0       	brlt	.+4      	; 0x3a3dc <menu_start()+0x32>
		menu_top = lcd_encoder;
   3a3d8:	80 93 a5 03 	sts	0x03A5, r24	; 0x8003a5 <menu_top>
    menu_line = menu_top;
   3a3dc:	80 91 a5 03 	lds	r24, 0x03A5	; 0x8003a5 <menu_top>
   3a3e0:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
    menu_clicked = lcd_clicked(); // Consume click event
   3a3e4:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   3a3e8:	80 93 13 05 	sts	0x0513, r24	; 0x800513 <menu_clicked>
}
   3a3ec:	08 95       	ret

0003a3ee <menu_data_reset()>:

void menu_data_reset(void)
{
	// Resets the global shared C union.
	// This ensures, that the menu entered will find out, that it shall initialize itself.
	memset(&menu_data, 0, sizeof(menu_data));
   3a3ee:	e9 ea       	ldi	r30, 0xA9	; 169
   3a3f0:	f3 e0       	ldi	r31, 0x03	; 3
   3a3f2:	80 e2       	ldi	r24, 0x20	; 32
   3a3f4:	df 01       	movw	r26, r30
   3a3f6:	1d 92       	st	X+, r1
   3a3f8:	8a 95       	dec	r24
   3a3fa:	e9 f7       	brne	.-6      	; 0x3a3f6 <menu_data_reset()+0x8>
}
   3a3fc:	08 95       	ret

0003a3fe <menu_goto(void (*)(), int, bool, bool)>:

void menu_goto(menu_func_t menu, const int16_t encoder, bool reset_menu_state, const bool feedback)
{
   3a3fe:	cf 93       	push	r28
	CRITICAL_SECTION_START;
   3a400:	3f b7       	in	r19, 0x3f	; 63
   3a402:	f8 94       	cli
	if (menu_menu != menu)
   3a404:	e0 91 13 04 	lds	r30, 0x0413	; 0x800413 <menu_menu>
   3a408:	f0 91 14 04 	lds	r31, 0x0414	; 0x800414 <menu_menu+0x1>
   3a40c:	e8 17       	cp	r30, r24
   3a40e:	f9 07       	cpc	r31, r25
   3a410:	c9 f0       	breq	.+50     	; 0x3a444 <menu_goto(void (*)(), int, bool, bool)+0x46>
   3a412:	c4 2f       	mov	r28, r20
	{
		menu_menu = menu;
   3a414:	90 93 14 04 	sts	0x0414, r25	; 0x800414 <menu_menu+0x1>
   3a418:	80 93 13 04 	sts	0x0413, r24	; 0x800413 <menu_menu>
		lcd_encoder = encoder;
   3a41c:	70 93 71 06 	sts	0x0671, r23	; 0x800671 <lcd_encoder+0x1>
   3a420:	60 93 70 06 	sts	0x0670, r22	; 0x800670 <lcd_encoder>
		menu_top = 0; //reset menu view. Needed if menu_back() is called from deep inside a menu, such as Support
   3a424:	10 92 a5 03 	sts	0x03A5, r1	; 0x8003a5 <menu_top>
		lcd_draw_update = 2; // Full LCD re-draw
   3a428:	82 e0       	ldi	r24, 0x02	; 2
   3a42a:	80 93 6d 02 	sts	0x026D, r24	; 0x80026d <lcd_draw_update>
		CRITICAL_SECTION_END;
   3a42e:	3f bf       	out	0x3f, r19	; 63
		if (feedback) lcd_beeper_quick_feedback();
   3a430:	22 23       	and	r18, r18
   3a432:	19 f0       	breq	.+6      	; 0x3a43a <menu_goto(void (*)(), int, bool, bool)+0x3c>
	}
    return clicked;
}

void lcd_beeper_quick_feedback(void) {
	Sound_MakeSound(e_SOUND_TYPE_ButtonEcho);
   3a434:	80 e0       	ldi	r24, 0x00	; 0
   3a436:	0f 94 13 4f 	call	0x29e26	; 0x29e26 <Sound_MakeSound(eSOUND_TYPE)>
		if (reset_menu_state) menu_data_reset();
   3a43a:	cc 23       	and	r28, r28
   3a43c:	21 f0       	breq	.+8      	; 0x3a446 <menu_goto(void (*)(), int, bool, bool)+0x48>
	}
	else
		CRITICAL_SECTION_END;
}
   3a43e:	cf 91       	pop	r28
		lcd_encoder = encoder;
		menu_top = 0; //reset menu view. Needed if menu_back() is called from deep inside a menu, such as Support
		lcd_draw_update = 2; // Full LCD re-draw
		CRITICAL_SECTION_END;
		if (feedback) lcd_beeper_quick_feedback();
		if (reset_menu_state) menu_data_reset();
   3a440:	0d 94 f7 d1 	jmp	0x3a3ee	; 0x3a3ee <menu_data_reset()>
	}
	else
		CRITICAL_SECTION_END;
   3a444:	3f bf       	out	0x3f, r19	; 63
}
   3a446:	cf 91       	pop	r28
   3a448:	08 95       	ret

0003a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>:
		menu_back_no_reset();
	}
}

void menu_item_edit_P(const char* str, void* pval, uint8_t pbits, int16_t min_val, int16_t max_val, int16_t jmp_val)
{
   3a44a:	7f 92       	push	r7
   3a44c:	8f 92       	push	r8
   3a44e:	9f 92       	push	r9
   3a450:	af 92       	push	r10
   3a452:	bf 92       	push	r11
   3a454:	cf 92       	push	r12
   3a456:	df 92       	push	r13
   3a458:	ef 92       	push	r14
   3a45a:	ff 92       	push	r15
   3a45c:	0f 93       	push	r16
   3a45e:	1f 93       	push	r17
   3a460:	cf 93       	push	r28
   3a462:	df 93       	push	r29
	menu_data_edit_t* _md = (menu_data_edit_t*)&(menu_data[0]);
	if (menu_item == menu_line)
   3a464:	e0 91 15 05 	lds	r30, 0x0515	; 0x800515 <menu_item>
   3a468:	50 91 14 05 	lds	r21, 0x0514	; 0x800514 <menu_line>
   3a46c:	e5 13       	cpse	r30, r21
   3a46e:	73 c0       	rjmp	.+230    	; 0x3a556 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x10c>
	{
        int16_t cur_val = (pbits == 8 ? *((uint8_t*)pval) : *((int16_t*)pval));
   3a470:	fb 01       	movw	r30, r22
   3a472:	48 30       	cpi	r20, 0x08	; 8
   3a474:	09 f0       	breq	.+2      	; 0x3a478 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x2e>
   3a476:	6c c0       	rjmp	.+216    	; 0x3a550 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x106>
   3a478:	c0 81       	ld	r28, Z
   3a47a:	d0 e0       	ldi	r29, 0x00	; 0
   3a47c:	49 01       	movw	r8, r18
   3a47e:	74 2e       	mov	r7, r20
   3a480:	6b 01       	movw	r12, r22
   3a482:	5c 01       	movw	r10, r24

		if (lcd_draw_update)
   3a484:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a488:	88 23       	and	r24, r24
   3a48a:	59 f0       	breq	.+22     	; 0x3a4a2 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x58>
		{
			lcd_set_cursor(0, menu_row);
   3a48c:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a490:	80 e0       	ldi	r24, 0x00	; 0
   3a492:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
			menu_draw_P(menu_selection_mark(), str, cur_val);
   3a496:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   3a49a:	ae 01       	movw	r20, r28
   3a49c:	b5 01       	movw	r22, r10
   3a49e:	0f 94 0b b1 	call	0x36216	; 0x36216 <menu_draw_P(char, char const*, int)>
		}
		if (menu_clicked && (lcd_encoder == menu_item))
   3a4a2:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a4a6:	88 23       	and	r24, r24
   3a4a8:	09 f4       	brne	.+2      	; 0x3a4ac <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x62>
   3a4aa:	55 c0       	rjmp	.+170    	; 0x3a556 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x10c>
   3a4ac:	90 91 15 05 	lds	r25, 0x0515	; 0x800515 <menu_item>
   3a4b0:	20 91 70 06 	lds	r18, 0x0670	; 0x800670 <lcd_encoder>
   3a4b4:	30 91 71 06 	lds	r19, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a4b8:	92 17       	cp	r25, r18
   3a4ba:	13 06       	cpc	r1, r19
   3a4bc:	09 f0       	breq	.+2      	; 0x3a4c0 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x76>
   3a4be:	4b c0       	rjmp	.+150    	; 0x3a556 <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x10c>
	}
}

void menu_submenu_no_reset(menu_func_t submenu, const bool feedback)
{
	if (menu_depth < MENU_DEPTH_MAX)
   3a4c0:	80 91 f8 03 	lds	r24, 0x03F8	; 0x8003f8 <menu_depth>
   3a4c4:	87 30       	cpi	r24, 0x07	; 7
   3a4c6:	d8 f4       	brcc	.+54     	; 0x3a4fe <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0xb4>
	{
		menu_stack[menu_depth].menu = menu_menu;
   3a4c8:	28 2f       	mov	r18, r24
   3a4ca:	30 e0       	ldi	r19, 0x00	; 0
   3a4cc:	f9 01       	movw	r30, r18
   3a4ce:	ee 0f       	add	r30, r30
   3a4d0:	ff 1f       	adc	r31, r31
   3a4d2:	e2 0f       	add	r30, r18
   3a4d4:	f3 1f       	adc	r31, r19
   3a4d6:	ec 53       	subi	r30, 0x3C	; 60
   3a4d8:	f8 4e       	sbci	r31, 0xE8	; 232
   3a4da:	20 91 13 04 	lds	r18, 0x0413	; 0x800413 <menu_menu>
   3a4de:	30 91 14 04 	lds	r19, 0x0414	; 0x800414 <menu_menu+0x1>
   3a4e2:	31 83       	std	Z+1, r19	; 0x01
   3a4e4:	20 83       	st	Z, r18
		menu_stack[menu_depth++].position = lcd_encoder;
   3a4e6:	8f 5f       	subi	r24, 0xFF	; 255
   3a4e8:	80 93 f8 03 	sts	0x03F8, r24	; 0x8003f8 <menu_depth>
   3a4ec:	92 83       	std	Z+2, r25	; 0x02
		menu_goto(submenu, 0, false, feedback);
   3a4ee:	20 e0       	ldi	r18, 0x00	; 0
   3a4f0:	40 e0       	ldi	r20, 0x00	; 0
   3a4f2:	70 e0       	ldi	r23, 0x00	; 0
   3a4f4:	60 e0       	ldi	r22, 0x00	; 0
   3a4f6:	88 e7       	ldi	r24, 0x78	; 120
   3a4f8:	9a e3       	ldi	r25, 0x3A	; 58
   3a4fa:	0f 94 ff d1 	call	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
			menu_draw_P(menu_selection_mark(), str, cur_val);
		}
		if (menu_clicked && (lcd_encoder == menu_item))
		{
			menu_submenu_no_reset(_menu_edit_P);
			_md->editLabel = str;
   3a4fe:	b0 92 aa 03 	sts	0x03AA, r11	; 0x8003aa <menu_data+0x1>
   3a502:	a0 92 a9 03 	sts	0x03A9, r10	; 0x8003a9 <menu_data>
			_md->editValuePtr = pval;
   3a506:	d0 92 ad 03 	sts	0x03AD, r13	; 0x8003ad <menu_data+0x4>
   3a50a:	c0 92 ac 03 	sts	0x03AC, r12	; 0x8003ac <menu_data+0x3>
			_md->editValueBits = pbits;
   3a50e:	70 92 ab 03 	sts	0x03AB, r7	; 0x8003ab <menu_data+0x2>
			_md->currentValue = cur_val;
   3a512:	d0 93 af 03 	sts	0x03AF, r29	; 0x8003af <menu_data+0x6>
   3a516:	c0 93 ae 03 	sts	0x03AE, r28	; 0x8003ae <menu_data+0x5>
			_md->minEditValue = min_val;
   3a51a:	90 92 b1 03 	sts	0x03B1, r9	; 0x8003b1 <menu_data+0x8>
   3a51e:	80 92 b0 03 	sts	0x03B0, r8	; 0x8003b0 <menu_data+0x7>
			_md->maxEditValue = max_val;
   3a522:	10 93 b3 03 	sts	0x03B3, r17	; 0x8003b3 <menu_data+0xa>
   3a526:	00 93 b2 03 	sts	0x03B2, r16	; 0x8003b2 <menu_data+0x9>
			_md->minJumpValue = jmp_val;
   3a52a:	f0 92 b5 03 	sts	0x03B5, r15	; 0x8003b5 <menu_data+0xc>
   3a52e:	e0 92 b4 03 	sts	0x03B4, r14	; 0x8003b4 <menu_data+0xb>
			menu_item_ret();
			return;
		}
	}
	menu_item++;
}
   3a532:	df 91       	pop	r29
   3a534:	cf 91       	pop	r28
   3a536:	1f 91       	pop	r17
   3a538:	0f 91       	pop	r16
   3a53a:	ff 90       	pop	r15
   3a53c:	ef 90       	pop	r14
   3a53e:	df 90       	pop	r13
   3a540:	cf 90       	pop	r12
   3a542:	bf 90       	pop	r11
   3a544:	af 90       	pop	r10
   3a546:	9f 90       	pop	r9
   3a548:	8f 90       	pop	r8
   3a54a:	7f 90       	pop	r7
			_md->editValueBits = pbits;
			_md->currentValue = cur_val;
			_md->minEditValue = min_val;
			_md->maxEditValue = max_val;
			_md->minJumpValue = jmp_val;
			menu_item_ret();
   3a54c:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
void menu_item_edit_P(const char* str, void* pval, uint8_t pbits, int16_t min_val, int16_t max_val, int16_t jmp_val)
{
	menu_data_edit_t* _md = (menu_data_edit_t*)&(menu_data[0]);
	if (menu_item == menu_line)
	{
        int16_t cur_val = (pbits == 8 ? *((uint8_t*)pval) : *((int16_t*)pval));
   3a550:	c0 81       	ld	r28, Z
   3a552:	d1 81       	ldd	r29, Z+1	; 0x01
   3a554:	93 cf       	rjmp	.-218    	; 0x3a47c <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)+0x32>
			_md->minJumpValue = jmp_val;
			menu_item_ret();
			return;
		}
	}
	menu_item++;
   3a556:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a55a:	8f 5f       	subi	r24, 0xFF	; 255
   3a55c:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a560:	df 91       	pop	r29
   3a562:	cf 91       	pop	r28
   3a564:	1f 91       	pop	r17
   3a566:	0f 91       	pop	r16
   3a568:	ff 90       	pop	r15
   3a56a:	ef 90       	pop	r14
   3a56c:	df 90       	pop	r13
   3a56e:	cf 90       	pop	r12
   3a570:	bf 90       	pop	r11
   3a572:	af 90       	pop	r10
   3a574:	9f 90       	pop	r9
   3a576:	8f 90       	pop	r8
   3a578:	7f 90       	pop	r7
   3a57a:	08 95       	ret

0003a57c <_menu_edit_P()>:
}

static void _menu_edit_P()
{
	menu_data_edit_t* _md = (menu_data_edit_t*)&(menu_data[0]);
	if (lcd_draw_update)
   3a57c:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a580:	88 23       	and	r24, r24
   3a582:	09 f4       	brne	.+2      	; 0x3a586 <_menu_edit_P()+0xa>
   3a584:	52 c0       	rjmp	.+164    	; 0x3a62a <_menu_edit_P()+0xae>
	{
        // handle initial value jumping
        if (_md->minJumpValue && lcd_encoder) {
   3a586:	20 91 b4 03 	lds	r18, 0x03B4	; 0x8003b4 <menu_data+0xb>
   3a58a:	30 91 b5 03 	lds	r19, 0x03B5	; 0x8003b5 <menu_data+0xc>
   3a58e:	80 91 b0 03 	lds	r24, 0x03B0	; 0x8003b0 <menu_data+0x7>
   3a592:	90 91 b1 03 	lds	r25, 0x03B1	; 0x8003b1 <menu_data+0x8>
   3a596:	21 15       	cp	r18, r1
   3a598:	31 05       	cpc	r19, r1
   3a59a:	d9 f0       	breq	.+54     	; 0x3a5d2 <_menu_edit_P()+0x56>
   3a59c:	40 91 70 06 	lds	r20, 0x0670	; 0x800670 <lcd_encoder>
   3a5a0:	50 91 71 06 	lds	r21, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a5a4:	41 15       	cp	r20, r1
   3a5a6:	51 05       	cpc	r21, r1
   3a5a8:	a1 f0       	breq	.+40     	; 0x3a5d2 <_menu_edit_P()+0x56>
            if (lcd_encoder > 0 && _md->currentValue == _md->minEditValue) {
   3a5aa:	7c f0       	brlt	.+30     	; 0x3a5ca <_menu_edit_P()+0x4e>
   3a5ac:	40 91 ae 03 	lds	r20, 0x03AE	; 0x8003ae <menu_data+0x5>
   3a5b0:	50 91 af 03 	lds	r21, 0x03AF	; 0x8003af <menu_data+0x6>
   3a5b4:	48 17       	cp	r20, r24
   3a5b6:	59 07       	cpc	r21, r25
   3a5b8:	41 f4       	brne	.+16     	; 0x3a5ca <_menu_edit_P()+0x4e>
                _md->currentValue = _md->minJumpValue;
   3a5ba:	30 93 af 03 	sts	0x03AF, r19	; 0x8003af <menu_data+0x6>
   3a5be:	20 93 ae 03 	sts	0x03AE, r18	; 0x8003ae <menu_data+0x5>
                lcd_encoder = 0;
   3a5c2:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   3a5c6:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
            }
            // disable after first use and/or if the initial value is not minEditValue
            _md->minJumpValue = 0;
   3a5ca:	10 92 b5 03 	sts	0x03B5, r1	; 0x8003b5 <menu_data+0xc>
   3a5ce:	10 92 b4 03 	sts	0x03B4, r1	; 0x8003b4 <menu_data+0xb>
        }
		_md->currentValue += lcd_encoder;
   3a5d2:	20 91 ae 03 	lds	r18, 0x03AE	; 0x8003ae <menu_data+0x5>
   3a5d6:	30 91 af 03 	lds	r19, 0x03AF	; 0x8003af <menu_data+0x6>
   3a5da:	40 91 70 06 	lds	r20, 0x0670	; 0x800670 <lcd_encoder>
   3a5de:	50 91 71 06 	lds	r21, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a5e2:	24 0f       	add	r18, r20
   3a5e4:	35 1f       	adc	r19, r21
		lcd_encoder = 0; // Consume knob rotation event
   3a5e6:	10 92 71 06 	sts	0x0671, r1	; 0x800671 <lcd_encoder+0x1>
   3a5ea:	10 92 70 06 	sts	0x0670, r1	; 0x800670 <lcd_encoder>
		// Constrain the value in case it's outside the allowed limits
		_md->currentValue = constrain(_md->currentValue, _md->minEditValue, _md->maxEditValue);
   3a5ee:	28 17       	cp	r18, r24
   3a5f0:	39 07       	cpc	r19, r25
   3a5f2:	44 f0       	brlt	.+16     	; 0x3a604 <_menu_edit_P()+0x88>
   3a5f4:	80 91 b2 03 	lds	r24, 0x03B2	; 0x8003b2 <menu_data+0x9>
   3a5f8:	90 91 b3 03 	lds	r25, 0x03B3	; 0x8003b3 <menu_data+0xa>
   3a5fc:	28 17       	cp	r18, r24
   3a5fe:	39 07       	cpc	r19, r25
   3a600:	0c f4       	brge	.+2      	; 0x3a604 <_menu_edit_P()+0x88>
   3a602:	c9 01       	movw	r24, r18
   3a604:	90 93 af 03 	sts	0x03AF, r25	; 0x8003af <menu_data+0x6>
   3a608:	80 93 ae 03 	sts	0x03AE, r24	; 0x8003ae <menu_data+0x5>
		lcd_set_cursor(0, 1);
   3a60c:	61 e0       	ldi	r22, 0x01	; 1
   3a60e:	80 e0       	ldi	r24, 0x00	; 0
   3a610:	0e 94 67 6e 	call	0xdcce	; 0xdcce <lcd_set_cursor(unsigned char, unsigned char)>
		menu_draw_P(' ', _md->editLabel, _md->currentValue);
   3a614:	40 91 ae 03 	lds	r20, 0x03AE	; 0x8003ae <menu_data+0x5>
   3a618:	50 91 af 03 	lds	r21, 0x03AF	; 0x8003af <menu_data+0x6>
   3a61c:	60 91 a9 03 	lds	r22, 0x03A9	; 0x8003a9 <menu_data>
   3a620:	70 91 aa 03 	lds	r23, 0x03AA	; 0x8003aa <menu_data+0x1>
   3a624:	80 e2       	ldi	r24, 0x20	; 32
   3a626:	0f 94 0b b1 	call	0x36216	; 0x36216 <menu_draw_P(char, char const*, int)>
	}
	if (lcd_clicked())
   3a62a:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   3a62e:	88 23       	and	r24, r24
   3a630:	41 f1       	breq	.+80     	; 0x3a682 <_menu_edit_P()+0x106>
   3a632:	e0 91 ac 03 	lds	r30, 0x03AC	; 0x8003ac <menu_data+0x3>
   3a636:	f0 91 ad 03 	lds	r31, 0x03AD	; 0x8003ad <menu_data+0x4>
   3a63a:	80 91 ae 03 	lds	r24, 0x03AE	; 0x8003ae <menu_data+0x5>
   3a63e:	90 91 af 03 	lds	r25, 0x03AF	; 0x8003af <menu_data+0x6>
	{
        if (_md->editValueBits == 8)
   3a642:	20 91 ab 03 	lds	r18, 0x03AB	; 0x8003ab <menu_data+0x2>
            *((uint8_t*)(_md->editValuePtr)) = _md->currentValue;
   3a646:	80 83       	st	Z, r24
		lcd_set_cursor(0, 1);
		menu_draw_P(' ', _md->editLabel, _md->currentValue);
	}
	if (lcd_clicked())
	{
        if (_md->editValueBits == 8)
   3a648:	28 30       	cpi	r18, 0x08	; 8
   3a64a:	c9 f4       	brne	.+50     	; 0x3a67e <_menu_edit_P()+0x102>
menu_back(1);
}

void menu_back_no_reset(void)
{
	if (menu_depth > 0)
   3a64c:	80 91 f8 03 	lds	r24, 0x03F8	; 0x8003f8 <menu_depth>
   3a650:	88 23       	and	r24, r24
   3a652:	b9 f0       	breq	.+46     	; 0x3a682 <_menu_edit_P()+0x106>
	{
		menu_depth--;
   3a654:	81 50       	subi	r24, 0x01	; 1
   3a656:	80 93 f8 03 	sts	0x03F8, r24	; 0x8003f8 <menu_depth>
		menu_goto(menu_stack[menu_depth].menu, menu_stack[menu_depth].position, false);
   3a65a:	90 e0       	ldi	r25, 0x00	; 0
   3a65c:	fc 01       	movw	r30, r24
   3a65e:	ee 0f       	add	r30, r30
   3a660:	ff 1f       	adc	r31, r31
   3a662:	e8 0f       	add	r30, r24
   3a664:	f9 1f       	adc	r31, r25
   3a666:	ec 53       	subi	r30, 0x3C	; 60
   3a668:	f8 4e       	sbci	r31, 0xE8	; 232
   3a66a:	62 81       	ldd	r22, Z+2	; 0x02
   3a66c:	06 2e       	mov	r0, r22
   3a66e:	00 0c       	add	r0, r0
   3a670:	77 0b       	sbc	r23, r23
   3a672:	20 e0       	ldi	r18, 0x00	; 0
   3a674:	40 e0       	ldi	r20, 0x00	; 0
   3a676:	80 81       	ld	r24, Z
   3a678:	91 81       	ldd	r25, Z+1	; 0x01
   3a67a:	0d 94 ff d1 	jmp	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	if (lcd_clicked())
	{
        if (_md->editValueBits == 8)
            *((uint8_t*)(_md->editValuePtr)) = _md->currentValue;
        else
            *((int16_t*)(_md->editValuePtr)) = _md->currentValue;
   3a67e:	91 83       	std	Z+1, r25	; 0x01
   3a680:	e5 cf       	rjmp	.-54     	; 0x3a64c <_menu_edit_P()+0xd0>
		menu_back_no_reset();
	}
}
   3a682:	08 95       	ret

0003a684 <menu_submenu(void (*)(), bool)>:
	if (lcd_clicked())
		menu_back();
}

void menu_submenu(menu_func_t submenu, const bool feedback)
{
   3a684:	dc 01       	movw	r26, r24
   3a686:	26 2f       	mov	r18, r22
	if (menu_depth < MENU_DEPTH_MAX)
   3a688:	90 91 f8 03 	lds	r25, 0x03F8	; 0x8003f8 <menu_depth>
   3a68c:	97 30       	cpi	r25, 0x07	; 7
   3a68e:	d8 f4       	brcc	.+54     	; 0x3a6c6 <menu_submenu(void (*)(), bool)+0x42>
	{
		menu_stack[menu_depth].menu = menu_menu;
   3a690:	49 2f       	mov	r20, r25
   3a692:	50 e0       	ldi	r21, 0x00	; 0
   3a694:	fa 01       	movw	r30, r20
   3a696:	ee 0f       	add	r30, r30
   3a698:	ff 1f       	adc	r31, r31
   3a69a:	e4 0f       	add	r30, r20
   3a69c:	f5 1f       	adc	r31, r21
   3a69e:	ec 53       	subi	r30, 0x3C	; 60
   3a6a0:	f8 4e       	sbci	r31, 0xE8	; 232
   3a6a2:	40 91 13 04 	lds	r20, 0x0413	; 0x800413 <menu_menu>
   3a6a6:	50 91 14 04 	lds	r21, 0x0414	; 0x800414 <menu_menu+0x1>
   3a6aa:	51 83       	std	Z+1, r21	; 0x01
   3a6ac:	40 83       	st	Z, r20
		menu_stack[menu_depth++].position = lcd_encoder;
   3a6ae:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a6b2:	9f 5f       	subi	r25, 0xFF	; 255
   3a6b4:	90 93 f8 03 	sts	0x03F8, r25	; 0x8003f8 <menu_depth>
   3a6b8:	82 83       	std	Z+2, r24	; 0x02
		menu_goto(submenu, 0, true, feedback);
   3a6ba:	41 e0       	ldi	r20, 0x01	; 1
   3a6bc:	70 e0       	ldi	r23, 0x00	; 0
   3a6be:	60 e0       	ldi	r22, 0x00	; 0
   3a6c0:	cd 01       	movw	r24, r26
   3a6c2:	0d 94 ff d1 	jmp	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	}
}
   3a6c6:	08 95       	ret

0003a6c8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)>:
    }
    menu_item++;
}

void menu_item_toggle_P(const char* str, const char* toggle, menu_func_t func, const uint8_t settings)
{
   3a6c8:	8f 92       	push	r8
   3a6ca:	9f 92       	push	r9
   3a6cc:	af 92       	push	r10
   3a6ce:	bf 92       	push	r11
   3a6d0:	cf 92       	push	r12
   3a6d2:	df 92       	push	r13
   3a6d4:	ef 92       	push	r14
   3a6d6:	ff 92       	push	r15
   3a6d8:	0f 93       	push	r16
   3a6da:	1f 93       	push	r17
   3a6dc:	cf 93       	push	r28
   3a6de:	df 93       	push	r29
	if (menu_item == menu_line)
   3a6e0:	e0 91 15 05 	lds	r30, 0x0515	; 0x800515 <menu_item>
   3a6e4:	30 91 14 05 	lds	r19, 0x0514	; 0x800514 <menu_line>
   3a6e8:	e3 13       	cpse	r30, r19
   3a6ea:	73 c0       	rjmp	.+230    	; 0x3a7d2 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x10a>
   3a6ec:	c2 2f       	mov	r28, r18
   3a6ee:	6a 01       	movw	r12, r20
   3a6f0:	7b 01       	movw	r14, r22
   3a6f2:	5c 01       	movw	r10, r24
	{
		if (lcd_draw_update) menu_draw_toggle_puts_P(str, toggle, settings | (menu_selection_mark()=='>'));
   3a6f4:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a6f8:	88 23       	and	r24, r24
   3a6fa:	a1 f1       	breq	.+104    	; 0x3a764 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x9c>
   3a6fc:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   3a700:	01 e0       	ldi	r16, 0x01	; 1
   3a702:	8e 33       	cpi	r24, 0x3E	; 62
   3a704:	09 f0       	breq	.+2      	; 0x3a708 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x40>
   3a706:	00 e0       	ldi	r16, 0x00	; 0
   3a708:	0c 2b       	or	r16, r28
{
    //settings:
    //xxxxxcba
    //a = selection mark. If it's set(1), then '>' will be used as the first character on the line. Else leave blank
    //b = toggle string is from progmem
    uint8_t is_progmem = settings & 0x02;
   3a70a:	80 2f       	mov	r24, r16
   3a70c:	82 70       	andi	r24, 0x02	; 2
   3a70e:	88 2e       	mov	r8, r24
    const char eol = (toggle == NULL) ? LCD_STR_ARROW_RIGHT[0] : ' ';
   3a710:	e1 14       	cp	r14, r1
   3a712:	f1 04       	cpc	r15, r1
   3a714:	09 f4       	brne	.+2      	; 0x3a718 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x50>
   3a716:	6f c0       	rjmp	.+222    	; 0x3a7f6 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x12e>
   3a718:	e7 01       	movw	r28, r14
   3a71a:	90 e2       	ldi	r25, 0x20	; 32
   3a71c:	99 2e       	mov	r9, r25
    if (toggle == NULL) toggle = _T(MSG_NA);
    uint8_t len = 4 + (is_progmem ? strlen_P(toggle) : strlen(toggle));
   3a71e:	88 20       	and	r8, r8
   3a720:	09 f4       	brne	.+2      	; 0x3a724 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x5c>
   3a722:	41 c0       	rjmp	.+130    	; 0x3a7a6 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0xde>
   3a724:	ce 01       	movw	r24, r28
   3a726:	0f 94 19 da 	call	0x3b432	; 0x3b432 <__strlen_P>
   3a72a:	14 e0       	ldi	r17, 0x04	; 4
   3a72c:	18 0f       	add	r17, r24
	lcd_putc_at(0, menu_row, (settings & 0x01) ? '>' : ' ');
   3a72e:	4e e3       	ldi	r20, 0x3E	; 62
   3a730:	00 ff       	sbrs	r16, 0
   3a732:	40 e2       	ldi	r20, 0x20	; 32
   3a734:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a738:	80 e0       	ldi	r24, 0x00	; 0
   3a73a:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_print_pad_P(str, LCD_WIDTH - len);
   3a73e:	64 e1       	ldi	r22, 0x14	; 20
   3a740:	61 1b       	sub	r22, r17
   3a742:	c5 01       	movw	r24, r10
   3a744:	0e 94 3c 70 	call	0xe078	; 0xe078 <lcd_print_pad_P(char const*, unsigned char)>
    lcd_putc('[');
   3a748:	8b e5       	ldi	r24, 0x5B	; 91
   3a74a:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
    if (is_progmem)
    {
        lcd_puts_P(toggle);
   3a74e:	ce 01       	movw	r24, r28
    if (toggle == NULL) toggle = _T(MSG_NA);
    uint8_t len = 4 + (is_progmem ? strlen_P(toggle) : strlen(toggle));
	lcd_putc_at(0, menu_row, (settings & 0x01) ? '>' : ' ');
    lcd_print_pad_P(str, LCD_WIDTH - len);
    lcd_putc('[');
    if (is_progmem)
   3a750:	88 20       	and	r8, r8
   3a752:	89 f1       	breq	.+98     	; 0x3a7b6 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0xee>
    {
        lcd_puts_P(toggle);
   3a754:	0e 94 52 6e 	call	0xdca4	; 0xdca4 <lcd_puts_P(char const*)>
    } else {
        lcd_print(toggle);
    }
    lcd_putc(']');
   3a758:	8d e5       	ldi	r24, 0x5D	; 93
   3a75a:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
    lcd_putc(eol);
   3a75e:	89 2d       	mov	r24, r9
   3a760:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
void menu_item_toggle_P(const char* str, const char* toggle, menu_func_t func, const uint8_t settings)
{
	if (menu_item == menu_line)
	{
		if (lcd_draw_update) menu_draw_toggle_puts_P(str, toggle, settings | (menu_selection_mark()=='>'));
		if (menu_clicked && (lcd_encoder == menu_item))
   3a764:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a768:	88 23       	and	r24, r24
   3a76a:	99 f1       	breq	.+102    	; 0x3a7d2 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x10a>
   3a76c:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a770:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a774:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a778:	28 17       	cp	r18, r24
   3a77a:	19 06       	cpc	r1, r25
   3a77c:	51 f5       	brne	.+84     	; 0x3a7d2 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x10a>
		{
			if (toggle == NULL) // print N/A warning message
   3a77e:	ef 28       	or	r14, r15
   3a780:	e9 f4       	brne	.+58     	; 0x3a7bc <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0xf4>
			{
				menu_submenu(func);
   3a782:	60 e0       	ldi	r22, 0x00	; 0
   3a784:	c6 01       	movw	r24, r12
   3a786:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
			menu_item_ret();
			return;
		}
	}
	menu_item++;
}
   3a78a:	df 91       	pop	r29
   3a78c:	cf 91       	pop	r28
   3a78e:	1f 91       	pop	r17
   3a790:	0f 91       	pop	r16
   3a792:	ff 90       	pop	r15
   3a794:	ef 90       	pop	r14
   3a796:	df 90       	pop	r13
   3a798:	cf 90       	pop	r12
   3a79a:	bf 90       	pop	r11
   3a79c:	af 90       	pop	r10
   3a79e:	9f 90       	pop	r9
   3a7a0:	8f 90       	pop	r8
			{
				lcd_update_enabled = 0;
				if (func) func();
				lcd_update_enabled = 1;
			}
			menu_item_ret();
   3a7a2:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
    //a = selection mark. If it's set(1), then '>' will be used as the first character on the line. Else leave blank
    //b = toggle string is from progmem
    uint8_t is_progmem = settings & 0x02;
    const char eol = (toggle == NULL) ? LCD_STR_ARROW_RIGHT[0] : ' ';
    if (toggle == NULL) toggle = _T(MSG_NA);
    uint8_t len = 4 + (is_progmem ? strlen_P(toggle) : strlen(toggle));
   3a7a6:	fe 01       	movw	r30, r28
   3a7a8:	01 90       	ld	r0, Z+
   3a7aa:	00 20       	and	r0, r0
   3a7ac:	e9 f7       	brne	.-6      	; 0x3a7a8 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0xe0>
   3a7ae:	ec 1b       	sub	r30, r28
   3a7b0:	13 e0       	ldi	r17, 0x03	; 3
   3a7b2:	1e 0f       	add	r17, r30
   3a7b4:	bc cf       	rjmp	.-136    	; 0x3a72e <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x66>
    lcd_putc('[');
    if (is_progmem)
    {
        lcd_puts_P(toggle);
    } else {
        lcd_print(toggle);
   3a7b6:	0e 94 6e 70 	call	0xe0dc	; 0xe0dc <lcd_print(char const*)>
   3a7ba:	ce cf       	rjmp	.-100    	; 0x3a758 <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x90>
			{
				menu_submenu(func);
			}
			else // do the actual toggling
			{
				lcd_update_enabled = 0;
   3a7bc:	10 92 6e 02 	sts	0x026E, r1	; 0x80026e <lcd_update_enabled>
				if (func) func();
   3a7c0:	c1 14       	cp	r12, r1
   3a7c2:	d1 04       	cpc	r13, r1
   3a7c4:	11 f0       	breq	.+4      	; 0x3a7ca <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x102>
   3a7c6:	f6 01       	movw	r30, r12
   3a7c8:	19 95       	eicall
				lcd_update_enabled = 1;
   3a7ca:	81 e0       	ldi	r24, 0x01	; 1
   3a7cc:	80 93 6e 02 	sts	0x026E, r24	; 0x80026e <lcd_update_enabled>
   3a7d0:	dc cf       	rjmp	.-72     	; 0x3a78a <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0xc2>
			}
			menu_item_ret();
			return;
		}
	}
	menu_item++;
   3a7d2:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a7d6:	8f 5f       	subi	r24, 0xFF	; 255
   3a7d8:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a7dc:	df 91       	pop	r29
   3a7de:	cf 91       	pop	r28
   3a7e0:	1f 91       	pop	r17
   3a7e2:	0f 91       	pop	r16
   3a7e4:	ff 90       	pop	r15
   3a7e6:	ef 90       	pop	r14
   3a7e8:	df 90       	pop	r13
   3a7ea:	cf 90       	pop	r12
   3a7ec:	bf 90       	pop	r11
   3a7ee:	af 90       	pop	r10
   3a7f0:	9f 90       	pop	r9
   3a7f2:	8f 90       	pop	r8
   3a7f4:	08 95       	ret
    //xxxxxcba
    //a = selection mark. If it's set(1), then '>' will be used as the first character on the line. Else leave blank
    //b = toggle string is from progmem
    uint8_t is_progmem = settings & 0x02;
    const char eol = (toggle == NULL) ? LCD_STR_ARROW_RIGHT[0] : ' ';
    if (toggle == NULL) toggle = _T(MSG_NA);
   3a7f6:	8a e8       	ldi	r24, 0x8A	; 138
   3a7f8:	97 e4       	ldi	r25, 0x47	; 71
   3a7fa:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3a7fe:	ec 01       	movw	r28, r24
    //settings:
    //xxxxxcba
    //a = selection mark. If it's set(1), then '>' will be used as the first character on the line. Else leave blank
    //b = toggle string is from progmem
    uint8_t is_progmem = settings & 0x02;
    const char eol = (toggle == NULL) ? LCD_STR_ARROW_RIGHT[0] : ' ';
   3a800:	8e e7       	ldi	r24, 0x7E	; 126
   3a802:	98 2e       	mov	r9, r24
   3a804:	8c cf       	rjmp	.-232    	; 0x3a71e <menu_item_toggle_P(char const*, char const*, void (*)(), unsigned char)+0x56>

0003a806 <menu_item_submenu_E(Sheet const&, void (*)())>:
	}
	menu_item++;
}

void menu_item_submenu_E(const Sheet &sheet, menu_func_t submenu)
{
   3a806:	0f 93       	push	r16
   3a808:	1f 93       	push	r17
   3a80a:	cf 93       	push	r28
   3a80c:	df 93       	push	r29
   3a80e:	cd b7       	in	r28, 0x3d	; 61
   3a810:	de b7       	in	r29, 0x3e	; 62
   3a812:	63 97       	sbiw	r28, 0x13	; 19
   3a814:	0f b6       	in	r0, 0x3f	; 63
   3a816:	f8 94       	cli
   3a818:	de bf       	out	0x3e, r29	; 62
   3a81a:	0f be       	out	0x3f, r0	; 63
   3a81c:	cd bf       	out	0x3d, r28	; 61
    if (menu_item == menu_line)
   3a81e:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a822:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a826:	32 13       	cpse	r19, r18
   3a828:	38 c0       	rjmp	.+112    	; 0x3a89a <menu_item_submenu_E(Sheet const&, void (*)())+0x94>
   3a82a:	8b 01       	movw	r16, r22
    {
        if (lcd_draw_update) menu_draw_item_puts_E(LCD_STR_ARROW_RIGHT[0], sheet);
   3a82c:	20 91 6d 02 	lds	r18, 0x026D	; 0x80026d <lcd_draw_update>
   3a830:	22 23       	and	r18, r18
   3a832:	a9 f0       	breq	.+42     	; 0x3a85e <menu_item_submenu_E(Sheet const&, void (*)())+0x58>


static void menu_draw_item_puts_E(char type_char, const Sheet &sheet)
{
    SheetFormatBuffer buffer;
    menu_format_sheet_E(sheet, buffer);
   3a834:	be 01       	movw	r22, r28
   3a836:	6f 5f       	subi	r22, 0xFF	; 255
   3a838:	7f 4f       	sbci	r23, 0xFF	; 255
   3a83a:	0f 94 6f d0 	call	0x3a0de	; 0x3a0de <menu_format_sheet_E(Sheet const&, SheetFormatBuffer&)>
    lcd_putc_at(0, menu_row, menu_selection_mark());
   3a83e:	0f 94 97 d0 	call	0x3a12e	; 0x3a12e <menu_selection_mark() [clone .lto_priv.426]>
   3a842:	48 2f       	mov	r20, r24
   3a844:	60 91 12 05 	lds	r22, 0x0512	; 0x800512 <menu_row>
   3a848:	80 e0       	ldi	r24, 0x00	; 0
   3a84a:	0e 94 87 6e 	call	0xdd0e	; 0xdd0e <lcd_putc_at(unsigned char, unsigned char, char)>
    lcd_print_pad(buffer.c, LCD_WIDTH - 2);
   3a84e:	62 e1       	ldi	r22, 0x12	; 18
   3a850:	ce 01       	movw	r24, r28
   3a852:	01 96       	adiw	r24, 0x01	; 1
   3a854:	0e 94 56 70 	call	0xe0ac	; 0xe0ac <lcd_print_pad(char const*, unsigned char)>
    lcd_putc(type_char);
   3a858:	8e e7       	ldi	r24, 0x7E	; 126
   3a85a:	0e 94 56 6e 	call	0xdcac	; 0xdcac <lcd_putc(char)>
void menu_item_submenu_E(const Sheet &sheet, menu_func_t submenu)
{
    if (menu_item == menu_line)
    {
        if (lcd_draw_update) menu_draw_item_puts_E(LCD_STR_ARROW_RIGHT[0], sheet);
        if (menu_clicked && (lcd_encoder == menu_item))
   3a85e:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a862:	88 23       	and	r24, r24
   3a864:	d1 f0       	breq	.+52     	; 0x3a89a <menu_item_submenu_E(Sheet const&, void (*)())+0x94>
   3a866:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a86a:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a86e:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a872:	28 17       	cp	r18, r24
   3a874:	19 06       	cpc	r1, r25
   3a876:	89 f4       	brne	.+34     	; 0x3a89a <menu_item_submenu_E(Sheet const&, void (*)())+0x94>
	if (menu_item == menu_line)
	{
		if (lcd_draw_update) menu_draw_item_puts_P(LCD_STR_ARROW_RIGHT[0], str);
		if (menu_clicked && (lcd_encoder == menu_item))
		{
			menu_submenu(submenu);
   3a878:	60 e0       	ldi	r22, 0x00	; 0
   3a87a:	c8 01       	movw	r24, r16
   3a87c:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
			menu_item_ret();
   3a880:	0f 94 bb d0 	call	0x3a176	; 0x3a176 <menu_item_ret()>
            menu_item_ret();
            return;
        }
    }
    menu_item++;
}
   3a884:	63 96       	adiw	r28, 0x13	; 19
   3a886:	0f b6       	in	r0, 0x3f	; 63
   3a888:	f8 94       	cli
   3a88a:	de bf       	out	0x3e, r29	; 62
   3a88c:	0f be       	out	0x3f, r0	; 63
   3a88e:	cd bf       	out	0x3d, r28	; 61
   3a890:	df 91       	pop	r29
   3a892:	cf 91       	pop	r28
   3a894:	1f 91       	pop	r17
   3a896:	0f 91       	pop	r16
   3a898:	08 95       	ret
            menu_submenu(submenu);
            menu_item_ret();
            return;
        }
    }
    menu_item++;
   3a89a:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a89e:	8f 5f       	subi	r24, 0xFF	; 255
   3a8a0:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
   3a8a4:	ef cf       	rjmp	.-34     	; 0x3a884 <menu_item_submenu_E(Sheet const&, void (*)())+0x7e>

0003a8a6 <menu_item_submenu_P(char const*, void (*)())>:
	menu_item++;
	return 0;
}

void menu_item_submenu_P(const char* str, menu_func_t submenu)
{
   3a8a6:	cf 93       	push	r28
   3a8a8:	df 93       	push	r29
	if (menu_item == menu_line)
   3a8aa:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a8ae:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a8b2:	32 13       	cpse	r19, r18
   3a8b4:	1e c0       	rjmp	.+60     	; 0x3a8f2 <menu_item_submenu_P(char const*, void (*)())+0x4c>
   3a8b6:	eb 01       	movw	r28, r22
   3a8b8:	bc 01       	movw	r22, r24
	{
		if (lcd_draw_update) menu_draw_item_puts_P(LCD_STR_ARROW_RIGHT[0], str);
   3a8ba:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a8be:	88 23       	and	r24, r24
   3a8c0:	19 f0       	breq	.+6      	; 0x3a8c8 <menu_item_submenu_P(char const*, void (*)())+0x22>
   3a8c2:	8e e7       	ldi	r24, 0x7E	; 126
   3a8c4:	0f 94 a4 d0 	call	0x3a148	; 0x3a148 <menu_draw_item_puts_P(char, char const*)>
		if (menu_clicked && (lcd_encoder == menu_item))
   3a8c8:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a8cc:	88 23       	and	r24, r24
   3a8ce:	89 f0       	breq	.+34     	; 0x3a8f2 <menu_item_submenu_P(char const*, void (*)())+0x4c>
   3a8d0:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a8d4:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a8d8:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a8dc:	28 17       	cp	r18, r24
   3a8de:	19 06       	cpc	r1, r25
   3a8e0:	41 f4       	brne	.+16     	; 0x3a8f2 <menu_item_submenu_P(char const*, void (*)())+0x4c>
		{
			menu_submenu(submenu);
   3a8e2:	60 e0       	ldi	r22, 0x00	; 0
   3a8e4:	ce 01       	movw	r24, r28
   3a8e6:	0f 94 42 d3 	call	0x3a684	; 0x3a684 <menu_submenu(void (*)(), bool)>
			menu_item_ret();
			return;
		}
	}
	menu_item++;
}
   3a8ea:	df 91       	pop	r29
   3a8ec:	cf 91       	pop	r28
	{
		if (lcd_draw_update) menu_draw_item_puts_P(LCD_STR_ARROW_RIGHT[0], str);
		if (menu_clicked && (lcd_encoder == menu_item))
		{
			menu_submenu(submenu);
			menu_item_ret();
   3a8ee:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
			return;
		}
	}
	menu_item++;
   3a8f2:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a8f6:	8f 5f       	subi	r24, 0xFF	; 255
   3a8f8:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a8fc:	df 91       	pop	r29
   3a8fe:	cf 91       	pop	r28
   3a900:	08 95       	ret

0003a902 <menu_back(unsigned char)>:
		menu_row = -1;
	}
}

void menu_back(uint8_t nLevel)
{
   3a902:	98 2f       	mov	r25, r24
     menu_depth = ((menu_depth > nLevel) ? (menu_depth - nLevel) : 0);
   3a904:	80 91 f8 03 	lds	r24, 0x03F8	; 0x8003f8 <menu_depth>
   3a908:	98 17       	cp	r25, r24
   3a90a:	a8 f4       	brcc	.+42     	; 0x3a936 <menu_back(unsigned char)+0x34>
   3a90c:	89 1b       	sub	r24, r25
   3a90e:	80 93 f8 03 	sts	0x03F8, r24	; 0x8003f8 <menu_depth>
     menu_goto(menu_stack[menu_depth].menu, menu_stack[menu_depth].position, true);
   3a912:	90 e0       	ldi	r25, 0x00	; 0
   3a914:	fc 01       	movw	r30, r24
   3a916:	ee 0f       	add	r30, r30
   3a918:	ff 1f       	adc	r31, r31
   3a91a:	e8 0f       	add	r30, r24
   3a91c:	f9 1f       	adc	r31, r25
   3a91e:	ec 53       	subi	r30, 0x3C	; 60
   3a920:	f8 4e       	sbci	r31, 0xE8	; 232
   3a922:	62 81       	ldd	r22, Z+2	; 0x02
   3a924:	06 2e       	mov	r0, r22
   3a926:	00 0c       	add	r0, r0
   3a928:	77 0b       	sbc	r23, r23
   3a92a:	20 e0       	ldi	r18, 0x00	; 0
   3a92c:	41 e0       	ldi	r20, 0x01	; 1
   3a92e:	80 81       	ld	r24, Z
   3a930:	91 81       	ldd	r25, Z+1	; 0x01
   3a932:	0d 94 ff d1 	jmp	0x3a3fe	; 0x3a3fe <menu_goto(void (*)(), int, bool, bool)>
	}
}

void menu_back(uint8_t nLevel)
{
     menu_depth = ((menu_depth > nLevel) ? (menu_depth - nLevel) : 0);
   3a936:	80 e0       	ldi	r24, 0x00	; 0
   3a938:	ea cf       	rjmp	.-44     	; 0x3a90e <menu_back(unsigned char)+0xc>

0003a93a <menu_back()>:
     menu_goto(menu_stack[menu_depth].menu, menu_stack[menu_depth].position, true);
}

void menu_back(void)
{
menu_back(1);
   3a93a:	81 e0       	ldi	r24, 0x01	; 1
   3a93c:	0d 94 81 d4 	jmp	0x3a902	; 0x3a902 <menu_back(unsigned char)>

0003a940 <menu_item_back_P(char const*)>:
    menu_item++;
}

void menu_item_back_P(const char* str)
{
	if (menu_item == menu_line)
   3a940:	30 91 15 05 	lds	r19, 0x0515	; 0x800515 <menu_item>
   3a944:	20 91 14 05 	lds	r18, 0x0514	; 0x800514 <menu_line>
   3a948:	32 13       	cpse	r19, r18
   3a94a:	19 c0       	rjmp	.+50     	; 0x3a97e <menu_item_back_P(char const*)+0x3e>
   3a94c:	bc 01       	movw	r22, r24
	{
		if (lcd_draw_update) menu_draw_item_puts_P(LCD_STR_UPLEVEL[0], str);
   3a94e:	80 91 6d 02 	lds	r24, 0x026D	; 0x80026d <lcd_draw_update>
   3a952:	88 23       	and	r24, r24
   3a954:	19 f0       	breq	.+6      	; 0x3a95c <menu_item_back_P(char const*)+0x1c>
   3a956:	83 e8       	ldi	r24, 0x83	; 131
   3a958:	0f 94 a4 d0 	call	0x3a148	; 0x3a148 <menu_draw_item_puts_P(char, char const*)>
		if (menu_clicked && (lcd_encoder == menu_item))
   3a95c:	80 91 13 05 	lds	r24, 0x0513	; 0x800513 <menu_clicked>
   3a960:	88 23       	and	r24, r24
   3a962:	69 f0       	breq	.+26     	; 0x3a97e <menu_item_back_P(char const*)+0x3e>
   3a964:	20 91 15 05 	lds	r18, 0x0515	; 0x800515 <menu_item>
   3a968:	80 91 70 06 	lds	r24, 0x0670	; 0x800670 <lcd_encoder>
   3a96c:	90 91 71 06 	lds	r25, 0x0671	; 0x800671 <lcd_encoder+0x1>
   3a970:	28 17       	cp	r18, r24
   3a972:	19 06       	cpc	r1, r25
   3a974:	21 f4       	brne	.+8      	; 0x3a97e <menu_item_back_P(char const*)+0x3e>
		{
			menu_back();
   3a976:	0f 94 9d d4 	call	0x3a93a	; 0x3a93a <menu_back()>
			menu_item_ret();
   3a97a:	0d 94 bb d0 	jmp	0x3a176	; 0x3a176 <menu_item_ret()>
			return;
		}
	}
	menu_item++;
   3a97e:	80 91 15 05 	lds	r24, 0x0515	; 0x800515 <menu_item>
   3a982:	8f 5f       	subi	r24, 0xFF	; 255
   3a984:	80 93 15 05 	sts	0x0515, r24	; 0x800515 <menu_item>
}
   3a988:	08 95       	ret

0003a98a <MMU2::tuneIdlerStallguardThresholdMenu()>:
};

static_assert(sizeof(_menu_tune_data_t) == 18);
static_assert(sizeof(menu_data)>= sizeof(_menu_tune_data_t),"_menu_tune_data_t doesn't fit into menu_data");

void tuneIdlerStallguardThresholdMenu() {
   3a98a:	ef 92       	push	r14
   3a98c:	ff 92       	push	r15
   3a98e:	0f 93       	push	r16
   3a990:	1f 93       	push	r17
   3a992:	cf 93       	push	r28
   3a994:	df 93       	push	r29
   3a996:	10 92 dc 03 	sts	0x03DC, r1	; 0x8003dc <lcd_timeoutToStatus>
    static constexpr _menu_tune_data_t * const _md = (_menu_tune_data_t*)&(menu_data[0]);

    // Do not timeout the screen, otherwise there will be FW crash (menu recursion)
    lcd_timeoutToStatus.stop();
    if (_md->status == 0)
   3a99a:	80 91 b6 03 	lds	r24, 0x03B6	; 0x8003b6 <menu_data+0xd>
   3a99e:	81 11       	cpse	r24, r1
   3a9a0:	23 c0       	rjmp	.+70     	; 0x3a9e8 <MMU2::tuneIdlerStallguardThresholdMenu()+0x5e>
    {
        _md->status = 1; // Menu entered for the first time
   3a9a2:	81 e0       	ldi	r24, 0x01	; 1
   3a9a4:	80 93 b6 03 	sts	0x03B6, r24	; 0x8003b6 <menu_data+0xd>

        // Fetch the TuneItem from PROGMEM
        const uint8_t offset = (mmu2.MMUCurrentErrorCode() == ErrorCode::HOMING_IDLER_FAILED) ? 1 : 0;
   3a9a8:	81 e0       	ldi	r24, 0x01	; 1
   3a9aa:	90 e0       	ldi	r25, 0x00	; 0
   3a9ac:	20 91 8b 13 	lds	r18, 0x138B	; 0x80138b <MMU2::mmu2+0x40>
   3a9b0:	30 91 8c 13 	lds	r19, 0x138C	; 0x80138c <MMU2::mmu2+0x41>
   3a9b4:	27 30       	cpi	r18, 0x07	; 7
   3a9b6:	31 48       	sbci	r19, 0x81	; 129
   3a9b8:	11 f0       	breq	.+4      	; 0x3a9be <MMU2::tuneIdlerStallguardThresholdMenu()+0x34>
   3a9ba:	90 e0       	ldi	r25, 0x00	; 0
   3a9bc:	80 e0       	ldi	r24, 0x00	; 0
        memcpy_P(&(_md->item), &TuneItems[offset], sizeof(TuneItem));
   3a9be:	bc 01       	movw	r22, r24
   3a9c0:	66 0f       	add	r22, r22
   3a9c2:	77 1f       	adc	r23, r23
   3a9c4:	68 0f       	add	r22, r24
   3a9c6:	79 1f       	adc	r23, r25
   3a9c8:	63 5e       	subi	r22, 0xE3	; 227
   3a9ca:	74 45       	sbci	r23, 0x54	; 84
   3a9cc:	43 e0       	ldi	r20, 0x03	; 3
   3a9ce:	50 e0       	ldi	r21, 0x00	; 0
   3a9d0:	88 eb       	ldi	r24, 0xB8	; 184
   3a9d2:	93 e0       	ldi	r25, 0x03	; 3
   3a9d4:	0f 94 f5 d9 	call	0x3b3ea	; 0x3b3ea <memcpy_P>

        // Fetch the value which is currently in MMU EEPROM
        mmu2.ReadRegister(_md->item.address);
   3a9d8:	80 91 b8 03 	lds	r24, 0x03B8	; 0x8003b8 <menu_data+0xf>
   3a9dc:	0f 94 a7 10 	call	0x2214e	; 0x2214e <MMU2::MMU2::ReadRegister(unsigned char) [clone .constprop.31]>
        _md->currentValue = mmu2.GetLastReadRegisterValue();
   3a9e0:	80 91 b6 13 	lds	r24, 0x13B6	; 0x8013b6 <MMU2::mmu2+0x6b>
   3a9e4:	80 93 b7 03 	sts	0x03B7, r24	; 0x8003b7 <menu_data+0xe>
    }

    MENU_BEGIN();
   3a9e8:	0f 94 d5 d1 	call	0x3a3aa	; 0x3a3aa <menu_start()>
   3a9ec:	10 92 12 05 	sts	0x0512, r1	; 0x800512 <menu_row>
   3a9f0:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   3a9f4:	84 30       	cpi	r24, 0x04	; 4
   3a9f6:	e0 f5       	brcc	.+120    	; 0x3aa70 <MMU2::tuneIdlerStallguardThresholdMenu()+0xe6>
   3a9f8:	10 92 15 05 	sts	0x0515, r1	; 0x800515 <menu_item>
    ON_MENU_LEAVE(
   3a9fc:	0f 94 55 d0 	call	0x3a0aa	; 0x3a0aa <menu_item_leave()>
   3aa00:	88 23       	and	r24, r24
   3aa02:	89 f0       	breq	.+34     	; 0x3aa26 <MMU2::tuneIdlerStallguardThresholdMenu()+0x9c>
   3aa04:	60 91 b7 03 	lds	r22, 0x03B7	; 0x8003b7 <menu_data+0xe>
   3aa08:	70 e0       	ldi	r23, 0x00	; 0
   3aa0a:	80 91 b8 03 	lds	r24, 0x03B8	; 0x8003b8 <menu_data+0xf>
   3aa0e:	0e 94 29 e9 	call	0x1d252	; 0x1d252 <MMU2::MMU2::WriteRegister(unsigned char, unsigned int) [clone .constprop.29]>
   3aa12:	10 92 ad 0d 	sts	0x0DAD, r1	; 0x800dad <_ZN4MMU2L21putErrorScreenToSleepE.lto_priv.498>
        &_md->currentValue,
        _md->item.minValue,
        _md->item.maxValue
    );
    MENU_END();
}
   3aa16:	df 91       	pop	r29
   3aa18:	cf 91       	pop	r28
   3aa1a:	1f 91       	pop	r17
   3aa1c:	0f 91       	pop	r16
   3aa1e:	ff 90       	pop	r15
   3aa20:	ef 90       	pop	r14
        mmu2.ReadRegister(_md->item.address);
        _md->currentValue = mmu2.GetLastReadRegisterValue();
    }

    MENU_BEGIN();
    ON_MENU_LEAVE(
   3aa22:	0d 94 b2 1f 	jmp	0x23f64	; 0x23f64 <lcd_return_to_status()>
        mmu2.WriteRegister(_md->item.address, (uint16_t)_md->currentValue);
        putErrorScreenToSleep = false;
        lcd_return_to_status();
        return;
    );
    MENU_ITEM_BACK_P(_T(MSG_DONE));
   3aa26:	80 ef       	ldi	r24, 0xF0	; 240
   3aa28:	93 e6       	ldi	r25, 0x63	; 99
   3aa2a:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3aa2e:	0f 94 a0 d4 	call	0x3a940	; 0x3a940 <menu_item_back_P(char const*)>
    MENU_ITEM_EDIT_int3_P(
   3aa32:	00 91 ba 03 	lds	r16, 0x03BA	; 0x8003ba <menu_data+0x11>
   3aa36:	10 e0       	ldi	r17, 0x00	; 0
   3aa38:	c0 91 b9 03 	lds	r28, 0x03B9	; 0x8003b9 <menu_data+0x10>
   3aa3c:	d0 e0       	ldi	r29, 0x00	; 0
   3aa3e:	82 ee       	ldi	r24, 0xE2	; 226
   3aa40:	93 e6       	ldi	r25, 0x63	; 99
   3aa42:	0e 94 33 72 	call	0xe466	; 0xe466 <lang_get_translation>
   3aa46:	f1 2c       	mov	r15, r1
   3aa48:	e1 2c       	mov	r14, r1
   3aa4a:	9e 01       	movw	r18, r28
   3aa4c:	48 e0       	ldi	r20, 0x08	; 8
   3aa4e:	67 eb       	ldi	r22, 0xB7	; 183
   3aa50:	73 e0       	ldi	r23, 0x03	; 3
   3aa52:	0f 94 25 d2 	call	0x3a44a	; 0x3a44a <menu_item_edit_P(char const*, void*, unsigned char, int, int, int)>
        _T(MSG_MMU_SENSITIVITY),
        &_md->currentValue,
        _md->item.minValue,
        _md->item.maxValue
    );
    MENU_END();
   3aa56:	0f 94 a9 d1 	call	0x3a352	; 0x3a352 <menu_end()>
        // Fetch the value which is currently in MMU EEPROM
        mmu2.ReadRegister(_md->item.address);
        _md->currentValue = mmu2.GetLastReadRegisterValue();
    }

    MENU_BEGIN();
   3aa5a:	80 91 12 05 	lds	r24, 0x0512	; 0x800512 <menu_row>
   3aa5e:	8f 5f       	subi	r24, 0xFF	; 255
   3aa60:	80 93 12 05 	sts	0x0512, r24	; 0x800512 <menu_row>
   3aa64:	80 91 14 05 	lds	r24, 0x0514	; 0x800514 <menu_line>
   3aa68:	8f 5f       	subi	r24, 0xFF	; 255
   3aa6a:	80 93 14 05 	sts	0x0514, r24	; 0x800514 <menu_line>
   3aa6e:	c0 cf       	rjmp	.-128    	; 0x3a9f0 <MMU2::tuneIdlerStallguardThresholdMenu()+0x66>
        &_md->currentValue,
        _md->item.minValue,
        _md->item.maxValue
    );
    MENU_END();
}
   3aa70:	df 91       	pop	r29
   3aa72:	cf 91       	pop	r28
   3aa74:	1f 91       	pop	r17
   3aa76:	0f 91       	pop	r16
   3aa78:	ff 90       	pop	r15
   3aa7a:	ef 90       	pop	r14
   3aa7c:	08 95       	ret

0003aa7e <menu_back_if_clicked()>:
	}
}

void menu_back_if_clicked(void)
{
	if (lcd_clicked())
   3aa7e:	0e 94 84 70 	call	0xe108	; 0xe108 <lcd_clicked()>
   3aa82:	81 11       	cpse	r24, r1
		menu_back();
   3aa84:	0d 94 9d d4 	jmp	0x3a93a	; 0x3a93a <menu_back()>
}
   3aa88:	08 95       	ret

0003aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>:
}

// Private Methods /////////////////////////////////////////////////////////////

void MarlinSerial::printNumber(unsigned long n, uint8_t base)
{
   3aa8a:	8f 92       	push	r8
   3aa8c:	9f 92       	push	r9
   3aa8e:	af 92       	push	r10
   3aa90:	bf 92       	push	r11
   3aa92:	ef 92       	push	r14
   3aa94:	ff 92       	push	r15
   3aa96:	0f 93       	push	r16
   3aa98:	1f 93       	push	r17
   3aa9a:	cf 93       	push	r28
   3aa9c:	df 93       	push	r29
   3aa9e:	cd b7       	in	r28, 0x3d	; 61
   3aaa0:	de b7       	in	r29, 0x3e	; 62
   3aaa2:	a0 97       	sbiw	r28, 0x20	; 32
   3aaa4:	0f b6       	in	r0, 0x3f	; 63
   3aaa6:	f8 94       	cli
   3aaa8:	de bf       	out	0x3e, r29	; 62
   3aaaa:	0f be       	out	0x3f, r0	; 63
   3aaac:	cd bf       	out	0x3d, r28	; 61
  unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
  uint8_t i = 0;

  if (n == 0) {
   3aaae:	61 15       	cp	r22, r1
   3aab0:	71 05       	cpc	r23, r1
   3aab2:	81 05       	cpc	r24, r1
   3aab4:	91 05       	cpc	r25, r1
   3aab6:	99 f4       	brne	.+38     	; 0x3aade <MarlinSerial::printNumber(unsigned long, unsigned char)+0x54>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3aab8:	80 e3       	ldi	r24, 0x30	; 48

  for (; i > 0; i--)
    print((char) (buf[i - 1] < 10 ?
      '0' + buf[i - 1] :
      'A' + buf[i - 1] - 10));
}
   3aaba:	a0 96       	adiw	r28, 0x20	; 32
   3aabc:	0f b6       	in	r0, 0x3f	; 63
   3aabe:	f8 94       	cli
   3aac0:	de bf       	out	0x3e, r29	; 62
   3aac2:	0f be       	out	0x3f, r0	; 63
   3aac4:	cd bf       	out	0x3d, r28	; 61
   3aac6:	df 91       	pop	r29
   3aac8:	cf 91       	pop	r28
   3aaca:	1f 91       	pop	r17
   3aacc:	0f 91       	pop	r16
   3aace:	ff 90       	pop	r15
   3aad0:	ef 90       	pop	r14
   3aad2:	bf 90       	pop	r11
   3aad4:	af 90       	pop	r10
   3aad6:	9f 90       	pop	r9
   3aad8:	8f 90       	pop	r8
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3aada:	0c 94 be 76 	jmp	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
// Private Methods /////////////////////////////////////////////////////////////

void MarlinSerial::printNumber(unsigned long n, uint8_t base)
{
  unsigned char buf[8 * sizeof(long)]; // Assumes 8-bit chars.
  uint8_t i = 0;
   3aade:	00 e0       	ldi	r16, 0x00	; 0
    print('0');
    return;
  }

  while (n > 0) {
    buf[i++] = n % base;
   3aae0:	84 2e       	mov	r8, r20
   3aae2:	91 2c       	mov	r9, r1
   3aae4:	b1 2c       	mov	r11, r1
   3aae6:	a1 2c       	mov	r10, r1
   3aae8:	9e 01       	movw	r18, r28
   3aaea:	2f 5f       	subi	r18, 0xFF	; 255
   3aaec:	3f 4f       	sbci	r19, 0xFF	; 255
   3aaee:	79 01       	movw	r14, r18
   3aaf0:	a5 01       	movw	r20, r10
   3aaf2:	94 01       	movw	r18, r8
   3aaf4:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   3aaf8:	f7 01       	movw	r30, r14
   3aafa:	e0 0f       	add	r30, r16
   3aafc:	f1 1d       	adc	r31, r1
   3aafe:	60 83       	st	Z, r22
    n /= base;
   3ab00:	b9 01       	movw	r22, r18
   3ab02:	ca 01       	movw	r24, r20
    print('0');
    return;
  }

  while (n > 0) {
    buf[i++] = n % base;
   3ab04:	0f 5f       	subi	r16, 0xFF	; 255
  if (n == 0) {
    print('0');
    return;
  }

  while (n > 0) {
   3ab06:	61 15       	cp	r22, r1
   3ab08:	71 05       	cpc	r23, r1
   3ab0a:	81 05       	cpc	r24, r1
   3ab0c:	91 05       	cpc	r25, r1
   3ab0e:	81 f7       	brne	.-32     	; 0x3aaf0 <MarlinSerial::printNumber(unsigned long, unsigned char)+0x66>
   3ab10:	0e 0d       	add	r16, r14
   3ab12:	1f 2d       	mov	r17, r15
   3ab14:	11 1d       	adc	r17, r1
    buf[i++] = n % base;
    n /= base;
  }

  for (; i > 0; i--)
   3ab16:	e0 16       	cp	r14, r16
   3ab18:	f1 06       	cpc	r15, r17
   3ab1a:	59 f0       	breq	.+22     	; 0x3ab32 <MarlinSerial::printNumber(unsigned long, unsigned char)+0xa8>
    print((char) (buf[i - 1] < 10 ?
   3ab1c:	f8 01       	movw	r30, r16
   3ab1e:	82 91       	ld	r24, -Z
   3ab20:	8f 01       	movw	r16, r30
   3ab22:	8a 30       	cpi	r24, 0x0A	; 10
   3ab24:	20 f4       	brcc	.+8      	; 0x3ab2e <MarlinSerial::printNumber(unsigned long, unsigned char)+0xa4>
      '0' + buf[i - 1] :
   3ab26:	80 5d       	subi	r24, 0xD0	; 208
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3ab28:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
   3ab2c:	f4 cf       	rjmp	.-24     	; 0x3ab16 <MarlinSerial::printNumber(unsigned long, unsigned char)+0x8c>
  }

  for (; i > 0; i--)
    print((char) (buf[i - 1] < 10 ?
      '0' + buf[i - 1] :
      'A' + buf[i - 1] - 10));
   3ab2e:	89 5c       	subi	r24, 0xC9	; 201
   3ab30:	fb cf       	rjmp	.-10     	; 0x3ab28 <MarlinSerial::printNumber(unsigned long, unsigned char)+0x9e>
}
   3ab32:	a0 96       	adiw	r28, 0x20	; 32
   3ab34:	0f b6       	in	r0, 0x3f	; 63
   3ab36:	f8 94       	cli
   3ab38:	de bf       	out	0x3e, r29	; 62
   3ab3a:	0f be       	out	0x3f, r0	; 63
   3ab3c:	cd bf       	out	0x3d, r28	; 61
   3ab3e:	df 91       	pop	r29
   3ab40:	cf 91       	pop	r28
   3ab42:	1f 91       	pop	r17
   3ab44:	0f 91       	pop	r16
   3ab46:	ff 90       	pop	r15
   3ab48:	ef 90       	pop	r14
   3ab4a:	bf 90       	pop	r11
   3ab4c:	af 90       	pop	r10
   3ab4e:	9f 90       	pop	r9
   3ab50:	8f 90       	pop	r8
   3ab52:	08 95       	ret

0003ab54 <MarlinSerial::print(long, int) [clone .part.1]>:
void MarlinSerial::print(unsigned int n, int base)
{
  print((unsigned long) n, base);
}

void MarlinSerial::print(long n, int base)
   3ab54:	cf 92       	push	r12
   3ab56:	df 92       	push	r13
   3ab58:	ef 92       	push	r14
   3ab5a:	ff 92       	push	r15
   3ab5c:	6b 01       	movw	r12, r22
   3ab5e:	7c 01       	movw	r14, r24
{
  if (base == 0) {
    write(n);
  } else if (base == 10) {
    if (n < 0) {
   3ab60:	f7 fe       	sbrs	r15, 7
   3ab62:	0b c0       	rjmp	.+22     	; 0x3ab7a <MarlinSerial::print(long, int) [clone .part.1]+0x26>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3ab64:	8d e2       	ldi	r24, 0x2D	; 45
   3ab66:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
  } else if (base == 10) {
    if (n < 0) {
      print('-');
      n = -n;
   3ab6a:	f0 94       	com	r15
   3ab6c:	e0 94       	com	r14
   3ab6e:	d0 94       	com	r13
   3ab70:	c0 94       	com	r12
   3ab72:	c1 1c       	adc	r12, r1
   3ab74:	d1 1c       	adc	r13, r1
   3ab76:	e1 1c       	adc	r14, r1
   3ab78:	f1 1c       	adc	r15, r1
    }
    printNumber(n, 10);
   3ab7a:	4a e0       	ldi	r20, 0x0A	; 10
   3ab7c:	c7 01       	movw	r24, r14
   3ab7e:	b6 01       	movw	r22, r12
  } else {
    printNumber(n, base);
  }
}
   3ab80:	ff 90       	pop	r15
   3ab82:	ef 90       	pop	r14
   3ab84:	df 90       	pop	r13
   3ab86:	cf 90       	pop	r12
  } else if (base == 10) {
    if (n < 0) {
      print('-');
      n = -n;
    }
    printNumber(n, 10);
   3ab88:	0d 94 45 d5 	jmp	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>

0003ab8c <MarlinSerial::printFloat(double, unsigned char)>:
      '0' + buf[i - 1] :
      'A' + buf[i - 1] - 10));
}

void MarlinSerial::printFloat(double number, uint8_t digits)
{
   3ab8c:	8f 92       	push	r8
   3ab8e:	9f 92       	push	r9
   3ab90:	af 92       	push	r10
   3ab92:	bf 92       	push	r11
   3ab94:	cf 92       	push	r12
   3ab96:	df 92       	push	r13
   3ab98:	ef 92       	push	r14
   3ab9a:	ff 92       	push	r15
   3ab9c:	cf 93       	push	r28
   3ab9e:	6b 01       	movw	r12, r22
   3aba0:	7c 01       	movw	r14, r24
   3aba2:	b4 2e       	mov	r11, r20
  // Handle negative numbers
  if (number < 0.0)
   3aba4:	20 e0       	ldi	r18, 0x00	; 0
   3aba6:	30 e0       	ldi	r19, 0x00	; 0
   3aba8:	a9 01       	movw	r20, r18
   3abaa:	0f 94 78 de 	call	0x3bcf0	; 0x3bcf0 <__cmpsf2>
   3abae:	87 ff       	sbrs	r24, 7
   3abb0:	07 c0       	rjmp	.+14     	; 0x3abc0 <MarlinSerial::printFloat(double, unsigned char)+0x34>
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3abb2:	8d e2       	ldi	r24, 0x2D	; 45
   3abb4:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
{
  // Handle negative numbers
  if (number < 0.0)
  {
     print('-');
     number = -number;
   3abb8:	f7 fa       	bst	r15, 7
   3abba:	f0 94       	com	r15
   3abbc:	f7 f8       	bld	r15, 7
   3abbe:	f0 94       	com	r15
  }

  // Round correctly so that print(1.999, 2) prints as "2.00"
  double rounding = 0.5;
  for (uint8_t i=0; i<digits; ++i)
   3abc0:	c0 e0       	ldi	r28, 0x00	; 0
     print('-');
     number = -number;
  }

  // Round correctly so that print(1.999, 2) prints as "2.00"
  double rounding = 0.5;
   3abc2:	60 e0       	ldi	r22, 0x00	; 0
   3abc4:	70 e0       	ldi	r23, 0x00	; 0
   3abc6:	80 e0       	ldi	r24, 0x00	; 0
   3abc8:	9f e3       	ldi	r25, 0x3F	; 63
  for (uint8_t i=0; i<digits; ++i)
   3abca:	cb 15       	cp	r28, r11
   3abcc:	41 f0       	breq	.+16     	; 0x3abde <MarlinSerial::printFloat(double, unsigned char)+0x52>
    rounding /= 10.0;
   3abce:	20 e0       	ldi	r18, 0x00	; 0
   3abd0:	30 e0       	ldi	r19, 0x00	; 0
   3abd2:	40 e2       	ldi	r20, 0x20	; 32
   3abd4:	51 e4       	ldi	r21, 0x41	; 65
   3abd6:	0f 94 82 de 	call	0x3bd04	; 0x3bd04 <__divsf3>
     number = -number;
  }

  // Round correctly so that print(1.999, 2) prints as "2.00"
  double rounding = 0.5;
  for (uint8_t i=0; i<digits; ++i)
   3abda:	cf 5f       	subi	r28, 0xFF	; 255
   3abdc:	f6 cf       	rjmp	.-20     	; 0x3abca <MarlinSerial::printFloat(double, unsigned char)+0x3e>
    rounding /= 10.0;

  number += rounding;
   3abde:	9b 01       	movw	r18, r22
   3abe0:	ac 01       	movw	r20, r24
   3abe2:	c7 01       	movw	r24, r14
   3abe4:	b6 01       	movw	r22, r12
   3abe6:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3abea:	6b 01       	movw	r12, r22
   3abec:	7c 01       	movw	r14, r24

  // Extract the integer part of the number and print it
  unsigned long int_part = (unsigned long)number;
   3abee:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   3abf2:	4b 01       	movw	r8, r22
   3abf4:	5c 01       	movw	r10, r24
}

void MarlinSerial::print(unsigned long n, int base)
{
  if (base == 0) write(n);
  else printNumber(n, base);
   3abf6:	4a e0       	ldi	r20, 0x0A	; 10
   3abf8:	0f 94 45 d5 	call	0x3aa8a	; 0x3aa8a <MarlinSerial::printNumber(unsigned long, unsigned char)>
  unsigned long int_part = (unsigned long)number;
  double remainder = number - (double)int_part;
  print(int_part);

  // Print the decimal point, but only if there are digits beyond
  if (digits > 0)
   3abfc:	cc 23       	and	r28, r28
   3abfe:	91 f1       	breq	.+100    	; 0x3ac64 <MarlinSerial::printFloat(double, unsigned char)+0xd8>

  number += rounding;

  // Extract the integer part of the number and print it
  unsigned long int_part = (unsigned long)number;
  double remainder = number - (double)int_part;
   3ac00:	c5 01       	movw	r24, r10
   3ac02:	b4 01       	movw	r22, r8
   3ac04:	0f 94 e7 d6 	call	0x3adce	; 0x3adce <__floatunsisf>
   3ac08:	9b 01       	movw	r18, r22
   3ac0a:	ac 01       	movw	r20, r24
   3ac0c:	c7 01       	movw	r24, r14
   3ac0e:	b6 01       	movw	r22, r12
   3ac10:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3ac14:	6b 01       	movw	r12, r22
   3ac16:	7c 01       	movw	r14, r24
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3ac18:	8e e2       	ldi	r24, 0x2E	; 46
   3ac1a:	0e 94 be 76 	call	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>
  // Print the decimal point, but only if there are digits beyond
  if (digits > 0)
    print('.');

  // Extract digits from the remainder one at a time
  while (digits-- > 0)
   3ac1e:	c1 50       	subi	r28, 0x01	; 1
   3ac20:	08 f1       	brcs	.+66     	; 0x3ac64 <MarlinSerial::printFloat(double, unsigned char)+0xd8>
  {
    remainder *= 10.0;
   3ac22:	20 e0       	ldi	r18, 0x00	; 0
   3ac24:	30 e0       	ldi	r19, 0x00	; 0
   3ac26:	40 e2       	ldi	r20, 0x20	; 32
   3ac28:	51 e4       	ldi	r21, 0x41	; 65
   3ac2a:	c7 01       	movw	r24, r14
   3ac2c:	b6 01       	movw	r22, r12
   3ac2e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3ac32:	4b 01       	movw	r8, r22
   3ac34:	5c 01       	movw	r10, r24
    int toPrint = int(remainder);
   3ac36:	0f 94 f4 de 	call	0x3bde8	; 0x3bde8 <__fixsfsi>
  print((unsigned long) b, base);
}

void MarlinSerial::print(int n, int base)
{
  print((long) n, base);
   3ac3a:	6b 01       	movw	r12, r22
   3ac3c:	77 0f       	add	r23, r23
   3ac3e:	ee 08       	sbc	r14, r14
   3ac40:	ff 08       	sbc	r15, r15
   3ac42:	c7 01       	movw	r24, r14
   3ac44:	b6 01       	movw	r22, r12
   3ac46:	0f 94 aa d5 	call	0x3ab54	; 0x3ab54 <MarlinSerial::print(long, int) [clone .part.1]>
  while (digits-- > 0)
  {
    remainder *= 10.0;
    int toPrint = int(remainder);
    print(toPrint);
    remainder -= toPrint;
   3ac4a:	c7 01       	movw	r24, r14
   3ac4c:	b6 01       	movw	r22, r12
   3ac4e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   3ac52:	9b 01       	movw	r18, r22
   3ac54:	ac 01       	movw	r20, r24
   3ac56:	c5 01       	movw	r24, r10
   3ac58:	b4 01       	movw	r22, r8
   3ac5a:	0f 94 82 dd 	call	0x3bb04	; 0x3bb04 <__subsf3>
   3ac5e:	6b 01       	movw	r12, r22
   3ac60:	7c 01       	movw	r14, r24
   3ac62:	dd cf       	rjmp	.-70     	; 0x3ac1e <MarlinSerial::printFloat(double, unsigned char)+0x92>
  }
}
   3ac64:	cf 91       	pop	r28
   3ac66:	ff 90       	pop	r15
   3ac68:	ef 90       	pop	r14
   3ac6a:	df 90       	pop	r13
   3ac6c:	cf 90       	pop	r12
   3ac6e:	bf 90       	pop	r11
   3ac70:	af 90       	pop	r10
   3ac72:	9f 90       	pop	r9
   3ac74:	8f 90       	pop	r8
   3ac76:	08 95       	ret

0003ac78 <MarlinSerial::println()>:
}

void MarlinSerial::print(long n, int base)
{
  if (base == 0) {
    write(n);
   3ac78:	8a e0       	ldi	r24, 0x0A	; 10
   3ac7a:	0c 94 be 76 	jmp	0xed7c	; 0xed7c <MarlinSerial::write(unsigned char)>

0003ac7e <MarlinSerial::println(char const*)>:
   3ac7e:	0e 94 9b 87 	call	0x10f36	; 0x10f36 <MarlinSerial::write(char const*)>
}*/

void MarlinSerial::println(const char c[])
{
  print(c);
  println();
   3ac82:	0d 94 3c d6 	jmp	0x3ac78	; 0x3ac78 <MarlinSerial::println()>

0003ac86 <MarlinSerial::read()>:
}

int MarlinSerial::read(void)
{
  // if the head isn't ahead of the tail, we don't have any characters
  if (rx_buffer.head == rx_buffer.tail) {
   3ac86:	20 91 9b 04 	lds	r18, 0x049B	; 0x80049b <rx_buffer+0x82>
   3ac8a:	30 91 9c 04 	lds	r19, 0x049C	; 0x80049c <rx_buffer+0x83>
   3ac8e:	80 91 99 04 	lds	r24, 0x0499	; 0x800499 <rx_buffer+0x80>
   3ac92:	90 91 9a 04 	lds	r25, 0x049A	; 0x80049a <rx_buffer+0x81>
   3ac96:	82 17       	cp	r24, r18
   3ac98:	93 07       	cpc	r25, r19
   3ac9a:	71 f0       	breq	.+28     	; 0x3acb8 <MarlinSerial::read()+0x32>
    return -1;
  } else {
    unsigned char c = rx_buffer.buffer[rx_buffer.tail];
   3ac9c:	f9 01       	movw	r30, r18
   3ac9e:	e7 5e       	subi	r30, 0xE7	; 231
   3aca0:	fb 4f       	sbci	r31, 0xFB	; 251
   3aca2:	80 81       	ld	r24, Z
    rx_buffer.tail = (unsigned int)(rx_buffer.tail + 1) % RX_BUFFER_SIZE;
   3aca4:	2f 5f       	subi	r18, 0xFF	; 255
   3aca6:	3f 4f       	sbci	r19, 0xFF	; 255
   3aca8:	2f 77       	andi	r18, 0x7F	; 127
   3acaa:	33 27       	eor	r19, r19
   3acac:	30 93 9c 04 	sts	0x049C, r19	; 0x80049c <rx_buffer+0x83>
   3acb0:	20 93 9b 04 	sts	0x049B, r18	; 0x80049b <rx_buffer+0x82>
    return c;
   3acb4:	90 e0       	ldi	r25, 0x00	; 0
   3acb6:	08 95       	ret

int MarlinSerial::read(void)
{
  // if the head isn't ahead of the tail, we don't have any characters
  if (rx_buffer.head == rx_buffer.tail) {
    return -1;
   3acb8:	8f ef       	ldi	r24, 0xFF	; 255
   3acba:	9f ef       	ldi	r25, 0xFF	; 255
  } else {
    unsigned char c = rx_buffer.buffer[rx_buffer.tail];
    rx_buffer.tail = (unsigned int)(rx_buffer.tail + 1) % RX_BUFFER_SIZE;
    return c;
  }
}
   3acbc:	08 95       	ret

0003acbe <__vector_36>:
#endif //DEBUG_DUMP_TO_2ND_SERIAL
	}
}

ISR(USART1_RX_vect)
{
   3acbe:	1f 92       	push	r1
   3acc0:	0f 92       	push	r0
   3acc2:	0f b6       	in	r0, 0x3f	; 63
   3acc4:	0f 92       	push	r0
   3acc6:	11 24       	eor	r1, r1
   3acc8:	0b b6       	in	r0, 0x3b	; 59
   3acca:	0f 92       	push	r0
   3accc:	2f 93       	push	r18
   3acce:	3f 93       	push	r19
   3acd0:	4f 93       	push	r20
   3acd2:	6f 93       	push	r22
   3acd4:	7f 93       	push	r23
   3acd6:	8f 93       	push	r24
   3acd8:	9f 93       	push	r25
   3acda:	ef 93       	push	r30
   3acdc:	ff 93       	push	r31
	// Test for a framing error.
	if (UCSR1A & (1<<FE1))
   3acde:	80 91 c8 00 	lds	r24, 0x00C8	; 0x8000c8 <__TEXT_REGION_LENGTH__+0x7c20c8>
   3ace2:	84 ff       	sbrs	r24, 4
   3ace4:	12 c0       	rjmp	.+36     	; 0x3ad0a <__vector_36+0x4c>
	{
		// Characters received with the framing errors will be ignored.
		// Dummy register read (discard)
		(void)(*(char *)UDR1);
   3ace6:	80 91 ce 00 	lds	r24, 0x00CE	; 0x8000ce <__TEXT_REGION_LENGTH__+0x7c20ce>
			store_char(c);
#ifdef DEBUG_DUMP_TO_2ND_SERIAL
		M_UDRx = c;
#endif //DEBUG_DUMP_TO_2ND_SERIAL
	}
}
   3acea:	ff 91       	pop	r31
   3acec:	ef 91       	pop	r30
   3acee:	9f 91       	pop	r25
   3acf0:	8f 91       	pop	r24
   3acf2:	7f 91       	pop	r23
   3acf4:	6f 91       	pop	r22
   3acf6:	4f 91       	pop	r20
   3acf8:	3f 91       	pop	r19
   3acfa:	2f 91       	pop	r18
   3acfc:	0f 90       	pop	r0
   3acfe:	0b be       	out	0x3b, r0	; 59
   3ad00:	0f 90       	pop	r0
   3ad02:	0f be       	out	0x3f, r0	; 63
   3ad04:	0f 90       	pop	r0
   3ad06:	1f 90       	pop	r1
   3ad08:	18 95       	reti
		(void)(*(char *)UDR1);
	}
	else
	{
		// Read the input register.
		unsigned char c = UDR1;
   3ad0a:	40 91 ce 00 	lds	r20, 0x00CE	; 0x8000ce <__TEXT_REGION_LENGTH__+0x7c20ce>
		if (selectedSerialPort == 1)
   3ad0e:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   3ad12:	81 30       	cpi	r24, 0x01	; 1
   3ad14:	51 f7       	brne	.-44     	; 0x3acea <__vector_36+0x2c>
  ring_buffer rx_buffer  =  { { 0 }, 0, 0 };
#endif

FORCE_INLINE void store_char(unsigned char c)
{
  int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
   3ad16:	20 91 99 04 	lds	r18, 0x0499	; 0x800499 <rx_buffer+0x80>
   3ad1a:	30 91 9a 04 	lds	r19, 0x049A	; 0x80049a <rx_buffer+0x81>
   3ad1e:	c9 01       	movw	r24, r18
   3ad20:	01 96       	adiw	r24, 0x01	; 1
   3ad22:	8f 77       	andi	r24, 0x7F	; 127
   3ad24:	99 27       	eor	r25, r25

  // if we should be storing the received character into the location
  // just before the tail (meaning that the head would advance to the
  // current location of the tail), we're about to overflow the buffer
  // and so we don't write the character or advance the head.
  if (i != rx_buffer.tail) {
   3ad26:	60 91 9b 04 	lds	r22, 0x049B	; 0x80049b <rx_buffer+0x82>
   3ad2a:	70 91 9c 04 	lds	r23, 0x049C	; 0x80049c <rx_buffer+0x83>
   3ad2e:	86 17       	cp	r24, r22
   3ad30:	97 07       	cpc	r25, r23
   3ad32:	d9 f2       	breq	.-74     	; 0x3acea <__vector_36+0x2c>
    rx_buffer.buffer[rx_buffer.head] = c;
   3ad34:	27 5e       	subi	r18, 0xE7	; 231
   3ad36:	3b 4f       	sbci	r19, 0xFB	; 251
   3ad38:	f9 01       	movw	r30, r18
   3ad3a:	40 83       	st	Z, r20
    rx_buffer.head = i;
   3ad3c:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
   3ad40:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>
   3ad44:	d2 cf       	rjmp	.-92     	; 0x3acea <__vector_36+0x2c>

0003ad46 <__vector_25>:
// ticks at maximum 11.76 kHz and blocks for 2.688 us at each tick.
// If the serial line is fully utilized, this corresponds to 3.16%
// loading of the CPU (the interrupt invocation overhead not taken into account).
// As the serial line is not fully utilized, the CPU load is likely around 1%.
ISR(M_USARTx_RX_vect)
{
   3ad46:	1f 92       	push	r1
   3ad48:	0f 92       	push	r0
   3ad4a:	0f b6       	in	r0, 0x3f	; 63
   3ad4c:	0f 92       	push	r0
   3ad4e:	11 24       	eor	r1, r1
   3ad50:	0b b6       	in	r0, 0x3b	; 59
   3ad52:	0f 92       	push	r0
   3ad54:	2f 93       	push	r18
   3ad56:	3f 93       	push	r19
   3ad58:	4f 93       	push	r20
   3ad5a:	6f 93       	push	r22
   3ad5c:	7f 93       	push	r23
   3ad5e:	8f 93       	push	r24
   3ad60:	9f 93       	push	r25
   3ad62:	ef 93       	push	r30
   3ad64:	ff 93       	push	r31
	// Test for a framing error.
	if (M_UCSRxA & (1<<M_FEx))
   3ad66:	80 91 c0 00 	lds	r24, 0x00C0	; 0x8000c0 <__TEXT_REGION_LENGTH__+0x7c20c0>
   3ad6a:	84 ff       	sbrs	r24, 4
   3ad6c:	12 c0       	rjmp	.+36     	; 0x3ad92 <__vector_25+0x4c>
	{
		// Characters received with the framing errors will be ignored.
		// Dummy register read (discard)
		(void)(*(char *)M_UDRx);
   3ad6e:	80 91 c6 00 	lds	r24, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
			store_char(c);
#ifdef DEBUG_DUMP_TO_2ND_SERIAL
		UDR1 = c;
#endif //DEBUG_DUMP_TO_2ND_SERIAL
	}
}
   3ad72:	ff 91       	pop	r31
   3ad74:	ef 91       	pop	r30
   3ad76:	9f 91       	pop	r25
   3ad78:	8f 91       	pop	r24
   3ad7a:	7f 91       	pop	r23
   3ad7c:	6f 91       	pop	r22
   3ad7e:	4f 91       	pop	r20
   3ad80:	3f 91       	pop	r19
   3ad82:	2f 91       	pop	r18
   3ad84:	0f 90       	pop	r0
   3ad86:	0b be       	out	0x3b, r0	; 59
   3ad88:	0f 90       	pop	r0
   3ad8a:	0f be       	out	0x3f, r0	; 63
   3ad8c:	0f 90       	pop	r0
   3ad8e:	1f 90       	pop	r1
   3ad90:	18 95       	reti
		(void)(*(char *)M_UDRx);
	}
	else
	{
		// Read the input register.
		unsigned char c = M_UDRx;
   3ad92:	40 91 c6 00 	lds	r20, 0x00C6	; 0x8000c6 <__TEXT_REGION_LENGTH__+0x7c20c6>
		if (selectedSerialPort == 0)
   3ad96:	80 91 39 05 	lds	r24, 0x0539	; 0x800539 <selectedSerialPort>
   3ad9a:	81 11       	cpse	r24, r1
   3ad9c:	ea cf       	rjmp	.-44     	; 0x3ad72 <__vector_25+0x2c>
  ring_buffer rx_buffer  =  { { 0 }, 0, 0 };
#endif

FORCE_INLINE void store_char(unsigned char c)
{
  int i = (unsigned int)(rx_buffer.head + 1) % RX_BUFFER_SIZE;
   3ad9e:	20 91 99 04 	lds	r18, 0x0499	; 0x800499 <rx_buffer+0x80>
   3ada2:	30 91 9a 04 	lds	r19, 0x049A	; 0x80049a <rx_buffer+0x81>
   3ada6:	c9 01       	movw	r24, r18
   3ada8:	01 96       	adiw	r24, 0x01	; 1
   3adaa:	8f 77       	andi	r24, 0x7F	; 127
   3adac:	99 27       	eor	r25, r25

  // if we should be storing the received character into the location
  // just before the tail (meaning that the head would advance to the
  // current location of the tail), we're about to overflow the buffer
  // and so we don't write the character or advance the head.
  if (i != rx_buffer.tail) {
   3adae:	60 91 9b 04 	lds	r22, 0x049B	; 0x80049b <rx_buffer+0x82>
   3adb2:	70 91 9c 04 	lds	r23, 0x049C	; 0x80049c <rx_buffer+0x83>
   3adb6:	86 17       	cp	r24, r22
   3adb8:	97 07       	cpc	r25, r23
   3adba:	d9 f2       	breq	.-74     	; 0x3ad72 <__vector_25+0x2c>
    rx_buffer.buffer[rx_buffer.head] = c;
   3adbc:	27 5e       	subi	r18, 0xE7	; 231
   3adbe:	3b 4f       	sbci	r19, 0xFB	; 251
   3adc0:	f9 01       	movw	r30, r18
   3adc2:	40 83       	st	Z, r20
    rx_buffer.head = i;
   3adc4:	90 93 9a 04 	sts	0x049A, r25	; 0x80049a <rx_buffer+0x81>
   3adc8:	80 93 99 04 	sts	0x0499, r24	; 0x800499 <rx_buffer+0x80>
   3adcc:	d2 cf       	rjmp	.-92     	; 0x3ad72 <__vector_25+0x2c>

0003adce <__floatunsisf>:
   3adce:	e8 94       	clt
   3add0:	09 c0       	rjmp	.+18     	; 0x3ade4 <__floatsisf+0x12>

0003add2 <__floatsisf>:
   3add2:	97 fb       	bst	r25, 7
   3add4:	3e f4       	brtc	.+14     	; 0x3ade4 <__floatsisf+0x12>
   3add6:	90 95       	com	r25
   3add8:	80 95       	com	r24
   3adda:	70 95       	com	r23
   3addc:	61 95       	neg	r22
   3adde:	7f 4f       	sbci	r23, 0xFF	; 255
   3ade0:	8f 4f       	sbci	r24, 0xFF	; 255
   3ade2:	9f 4f       	sbci	r25, 0xFF	; 255
   3ade4:	99 23       	and	r25, r25
   3ade6:	a9 f0       	breq	.+42     	; 0x3ae12 <__floatsisf+0x40>
   3ade8:	f9 2f       	mov	r31, r25
   3adea:	96 e9       	ldi	r25, 0x96	; 150
   3adec:	bb 27       	eor	r27, r27
   3adee:	93 95       	inc	r25
   3adf0:	f6 95       	lsr	r31
   3adf2:	87 95       	ror	r24
   3adf4:	77 95       	ror	r23
   3adf6:	67 95       	ror	r22
   3adf8:	b7 95       	ror	r27
   3adfa:	f1 11       	cpse	r31, r1
   3adfc:	f8 cf       	rjmp	.-16     	; 0x3adee <__floatsisf+0x1c>
   3adfe:	fa f4       	brpl	.+62     	; 0x3ae3e <__floatsisf+0x6c>
   3ae00:	bb 0f       	add	r27, r27
   3ae02:	11 f4       	brne	.+4      	; 0x3ae08 <__floatsisf+0x36>
   3ae04:	60 ff       	sbrs	r22, 0
   3ae06:	1b c0       	rjmp	.+54     	; 0x3ae3e <__floatsisf+0x6c>
   3ae08:	6f 5f       	subi	r22, 0xFF	; 255
   3ae0a:	7f 4f       	sbci	r23, 0xFF	; 255
   3ae0c:	8f 4f       	sbci	r24, 0xFF	; 255
   3ae0e:	9f 4f       	sbci	r25, 0xFF	; 255
   3ae10:	16 c0       	rjmp	.+44     	; 0x3ae3e <__floatsisf+0x6c>
   3ae12:	88 23       	and	r24, r24
   3ae14:	11 f0       	breq	.+4      	; 0x3ae1a <__floatsisf+0x48>
   3ae16:	96 e9       	ldi	r25, 0x96	; 150
   3ae18:	11 c0       	rjmp	.+34     	; 0x3ae3c <__floatsisf+0x6a>
   3ae1a:	77 23       	and	r23, r23
   3ae1c:	21 f0       	breq	.+8      	; 0x3ae26 <__floatsisf+0x54>
   3ae1e:	9e e8       	ldi	r25, 0x8E	; 142
   3ae20:	87 2f       	mov	r24, r23
   3ae22:	76 2f       	mov	r23, r22
   3ae24:	05 c0       	rjmp	.+10     	; 0x3ae30 <__floatsisf+0x5e>
   3ae26:	66 23       	and	r22, r22
   3ae28:	71 f0       	breq	.+28     	; 0x3ae46 <__floatsisf+0x74>
   3ae2a:	96 e8       	ldi	r25, 0x86	; 134
   3ae2c:	86 2f       	mov	r24, r22
   3ae2e:	70 e0       	ldi	r23, 0x00	; 0
   3ae30:	60 e0       	ldi	r22, 0x00	; 0
   3ae32:	2a f0       	brmi	.+10     	; 0x3ae3e <__floatsisf+0x6c>
   3ae34:	9a 95       	dec	r25
   3ae36:	66 0f       	add	r22, r22
   3ae38:	77 1f       	adc	r23, r23
   3ae3a:	88 1f       	adc	r24, r24
   3ae3c:	da f7       	brpl	.-10     	; 0x3ae34 <__floatsisf+0x62>
   3ae3e:	88 0f       	add	r24, r24
   3ae40:	96 95       	lsr	r25
   3ae42:	87 95       	ror	r24
   3ae44:	97 f9       	bld	r25, 7
   3ae46:	08 95       	ret

0003ae48 <square>:
   3ae48:	9b 01       	movw	r18, r22
   3ae4a:	ac 01       	movw	r20, r24
   3ae4c:	0d 94 28 d7 	jmp	0x3ae50	; 0x3ae50 <__mulsf3>

0003ae50 <__mulsf3>:
   3ae50:	0f 94 3b d7 	call	0x3ae76	; 0x3ae76 <__mulsf3x>
   3ae54:	0d 94 ac d7 	jmp	0x3af58	; 0x3af58 <__fp_round>
   3ae58:	0f 94 9e d7 	call	0x3af3c	; 0x3af3c <__fp_pscA>
   3ae5c:	38 f0       	brcs	.+14     	; 0x3ae6c <__mulsf3+0x1c>
   3ae5e:	0f 94 a5 d7 	call	0x3af4a	; 0x3af4a <__fp_pscB>
   3ae62:	20 f0       	brcs	.+8      	; 0x3ae6c <__mulsf3+0x1c>
   3ae64:	95 23       	and	r25, r21
   3ae66:	11 f0       	breq	.+4      	; 0x3ae6c <__mulsf3+0x1c>
   3ae68:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3ae6c:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3ae70:	11 24       	eor	r1, r1
   3ae72:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>

0003ae76 <__mulsf3x>:
   3ae76:	0f 94 bd d7 	call	0x3af7a	; 0x3af7a <__fp_split3>
   3ae7a:	70 f3       	brcs	.-36     	; 0x3ae58 <__mulsf3+0x8>

0003ae7c <__mulsf3_pse>:
   3ae7c:	95 9f       	mul	r25, r21
   3ae7e:	c1 f3       	breq	.-16     	; 0x3ae70 <__mulsf3+0x20>
   3ae80:	95 0f       	add	r25, r21
   3ae82:	50 e0       	ldi	r21, 0x00	; 0
   3ae84:	55 1f       	adc	r21, r21
   3ae86:	62 9f       	mul	r22, r18
   3ae88:	f0 01       	movw	r30, r0
   3ae8a:	72 9f       	mul	r23, r18
   3ae8c:	bb 27       	eor	r27, r27
   3ae8e:	f0 0d       	add	r31, r0
   3ae90:	b1 1d       	adc	r27, r1
   3ae92:	63 9f       	mul	r22, r19
   3ae94:	aa 27       	eor	r26, r26
   3ae96:	f0 0d       	add	r31, r0
   3ae98:	b1 1d       	adc	r27, r1
   3ae9a:	aa 1f       	adc	r26, r26
   3ae9c:	64 9f       	mul	r22, r20
   3ae9e:	66 27       	eor	r22, r22
   3aea0:	b0 0d       	add	r27, r0
   3aea2:	a1 1d       	adc	r26, r1
   3aea4:	66 1f       	adc	r22, r22
   3aea6:	82 9f       	mul	r24, r18
   3aea8:	22 27       	eor	r18, r18
   3aeaa:	b0 0d       	add	r27, r0
   3aeac:	a1 1d       	adc	r26, r1
   3aeae:	62 1f       	adc	r22, r18
   3aeb0:	73 9f       	mul	r23, r19
   3aeb2:	b0 0d       	add	r27, r0
   3aeb4:	a1 1d       	adc	r26, r1
   3aeb6:	62 1f       	adc	r22, r18
   3aeb8:	83 9f       	mul	r24, r19
   3aeba:	a0 0d       	add	r26, r0
   3aebc:	61 1d       	adc	r22, r1
   3aebe:	22 1f       	adc	r18, r18
   3aec0:	74 9f       	mul	r23, r20
   3aec2:	33 27       	eor	r19, r19
   3aec4:	a0 0d       	add	r26, r0
   3aec6:	61 1d       	adc	r22, r1
   3aec8:	23 1f       	adc	r18, r19
   3aeca:	84 9f       	mul	r24, r20
   3aecc:	60 0d       	add	r22, r0
   3aece:	21 1d       	adc	r18, r1
   3aed0:	82 2f       	mov	r24, r18
   3aed2:	76 2f       	mov	r23, r22
   3aed4:	6a 2f       	mov	r22, r26
   3aed6:	11 24       	eor	r1, r1
   3aed8:	9f 57       	subi	r25, 0x7F	; 127
   3aeda:	50 40       	sbci	r21, 0x00	; 0
   3aedc:	9a f0       	brmi	.+38     	; 0x3af04 <__mulsf3_pse+0x88>
   3aede:	f1 f0       	breq	.+60     	; 0x3af1c <__mulsf3_pse+0xa0>
   3aee0:	88 23       	and	r24, r24
   3aee2:	4a f0       	brmi	.+18     	; 0x3aef6 <__mulsf3_pse+0x7a>
   3aee4:	ee 0f       	add	r30, r30
   3aee6:	ff 1f       	adc	r31, r31
   3aee8:	bb 1f       	adc	r27, r27
   3aeea:	66 1f       	adc	r22, r22
   3aeec:	77 1f       	adc	r23, r23
   3aeee:	88 1f       	adc	r24, r24
   3aef0:	91 50       	subi	r25, 0x01	; 1
   3aef2:	50 40       	sbci	r21, 0x00	; 0
   3aef4:	a9 f7       	brne	.-22     	; 0x3aee0 <__mulsf3_pse+0x64>
   3aef6:	9e 3f       	cpi	r25, 0xFE	; 254
   3aef8:	51 05       	cpc	r21, r1
   3aefa:	80 f0       	brcs	.+32     	; 0x3af1c <__mulsf3_pse+0xa0>
   3aefc:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3af00:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3af04:	5f 3f       	cpi	r21, 0xFF	; 255
   3af06:	e4 f3       	brlt	.-8      	; 0x3af00 <__mulsf3_pse+0x84>
   3af08:	98 3e       	cpi	r25, 0xE8	; 232
   3af0a:	d4 f3       	brlt	.-12     	; 0x3af00 <__mulsf3_pse+0x84>
   3af0c:	86 95       	lsr	r24
   3af0e:	77 95       	ror	r23
   3af10:	67 95       	ror	r22
   3af12:	b7 95       	ror	r27
   3af14:	f7 95       	ror	r31
   3af16:	e7 95       	ror	r30
   3af18:	9f 5f       	subi	r25, 0xFF	; 255
   3af1a:	c1 f7       	brne	.-16     	; 0x3af0c <__mulsf3_pse+0x90>
   3af1c:	fe 2b       	or	r31, r30
   3af1e:	88 0f       	add	r24, r24
   3af20:	91 1d       	adc	r25, r1
   3af22:	96 95       	lsr	r25
   3af24:	87 95       	ror	r24
   3af26:	97 f9       	bld	r25, 7
   3af28:	08 95       	ret

0003af2a <__fp_inf>:
   3af2a:	97 f9       	bld	r25, 7
   3af2c:	9f 67       	ori	r25, 0x7F	; 127
   3af2e:	80 e8       	ldi	r24, 0x80	; 128
   3af30:	70 e0       	ldi	r23, 0x00	; 0
   3af32:	60 e0       	ldi	r22, 0x00	; 0
   3af34:	08 95       	ret

0003af36 <__fp_nan>:
   3af36:	9f ef       	ldi	r25, 0xFF	; 255
   3af38:	80 ec       	ldi	r24, 0xC0	; 192
   3af3a:	08 95       	ret

0003af3c <__fp_pscA>:
   3af3c:	00 24       	eor	r0, r0
   3af3e:	0a 94       	dec	r0
   3af40:	16 16       	cp	r1, r22
   3af42:	17 06       	cpc	r1, r23
   3af44:	18 06       	cpc	r1, r24
   3af46:	09 06       	cpc	r0, r25
   3af48:	08 95       	ret

0003af4a <__fp_pscB>:
   3af4a:	00 24       	eor	r0, r0
   3af4c:	0a 94       	dec	r0
   3af4e:	12 16       	cp	r1, r18
   3af50:	13 06       	cpc	r1, r19
   3af52:	14 06       	cpc	r1, r20
   3af54:	05 06       	cpc	r0, r21
   3af56:	08 95       	ret

0003af58 <__fp_round>:
   3af58:	09 2e       	mov	r0, r25
   3af5a:	03 94       	inc	r0
   3af5c:	00 0c       	add	r0, r0
   3af5e:	11 f4       	brne	.+4      	; 0x3af64 <__fp_round+0xc>
   3af60:	88 23       	and	r24, r24
   3af62:	52 f0       	brmi	.+20     	; 0x3af78 <__fp_round+0x20>
   3af64:	bb 0f       	add	r27, r27
   3af66:	40 f4       	brcc	.+16     	; 0x3af78 <__fp_round+0x20>
   3af68:	bf 2b       	or	r27, r31
   3af6a:	11 f4       	brne	.+4      	; 0x3af70 <__fp_round+0x18>
   3af6c:	60 ff       	sbrs	r22, 0
   3af6e:	04 c0       	rjmp	.+8      	; 0x3af78 <__fp_round+0x20>
   3af70:	6f 5f       	subi	r22, 0xFF	; 255
   3af72:	7f 4f       	sbci	r23, 0xFF	; 255
   3af74:	8f 4f       	sbci	r24, 0xFF	; 255
   3af76:	9f 4f       	sbci	r25, 0xFF	; 255
   3af78:	08 95       	ret

0003af7a <__fp_split3>:
   3af7a:	57 fd       	sbrc	r21, 7
   3af7c:	90 58       	subi	r25, 0x80	; 128
   3af7e:	44 0f       	add	r20, r20
   3af80:	55 1f       	adc	r21, r21
   3af82:	59 f0       	breq	.+22     	; 0x3af9a <__fp_splitA+0x10>
   3af84:	5f 3f       	cpi	r21, 0xFF	; 255
   3af86:	71 f0       	breq	.+28     	; 0x3afa4 <__fp_splitA+0x1a>
   3af88:	47 95       	ror	r20

0003af8a <__fp_splitA>:
   3af8a:	88 0f       	add	r24, r24
   3af8c:	97 fb       	bst	r25, 7
   3af8e:	99 1f       	adc	r25, r25
   3af90:	61 f0       	breq	.+24     	; 0x3afaa <__fp_splitA+0x20>
   3af92:	9f 3f       	cpi	r25, 0xFF	; 255
   3af94:	79 f0       	breq	.+30     	; 0x3afb4 <__fp_splitA+0x2a>
   3af96:	87 95       	ror	r24
   3af98:	08 95       	ret
   3af9a:	12 16       	cp	r1, r18
   3af9c:	13 06       	cpc	r1, r19
   3af9e:	14 06       	cpc	r1, r20
   3afa0:	55 1f       	adc	r21, r21
   3afa2:	f2 cf       	rjmp	.-28     	; 0x3af88 <__fp_split3+0xe>
   3afa4:	46 95       	lsr	r20
   3afa6:	f1 df       	rcall	.-30     	; 0x3af8a <__fp_splitA>
   3afa8:	08 c0       	rjmp	.+16     	; 0x3afba <__fp_splitA+0x30>
   3afaa:	16 16       	cp	r1, r22
   3afac:	17 06       	cpc	r1, r23
   3afae:	18 06       	cpc	r1, r24
   3afb0:	99 1f       	adc	r25, r25
   3afb2:	f1 cf       	rjmp	.-30     	; 0x3af96 <__fp_splitA+0xc>
   3afb4:	86 95       	lsr	r24
   3afb6:	71 05       	cpc	r23, r1
   3afb8:	61 05       	cpc	r22, r1
   3afba:	08 94       	sec
   3afbc:	08 95       	ret

0003afbe <__fp_zero>:
   3afbe:	e8 94       	clt

0003afc0 <__fp_szero>:
   3afc0:	bb 27       	eor	r27, r27
   3afc2:	66 27       	eor	r22, r22
   3afc4:	77 27       	eor	r23, r23
   3afc6:	cb 01       	movw	r24, r22
   3afc8:	97 f9       	bld	r25, 7
   3afca:	08 95       	ret

0003afcc <strtol>:
   3afcc:	3f 92       	push	r3
   3afce:	4f 92       	push	r4
   3afd0:	5f 92       	push	r5
   3afd2:	6f 92       	push	r6
   3afd4:	7f 92       	push	r7
   3afd6:	8f 92       	push	r8
   3afd8:	9f 92       	push	r9
   3afda:	af 92       	push	r10
   3afdc:	bf 92       	push	r11
   3afde:	cf 92       	push	r12
   3afe0:	df 92       	push	r13
   3afe2:	ef 92       	push	r14
   3afe4:	ff 92       	push	r15
   3afe6:	0f 93       	push	r16
   3afe8:	1f 93       	push	r17
   3afea:	cf 93       	push	r28
   3afec:	df 93       	push	r29
   3afee:	5c 01       	movw	r10, r24
   3aff0:	6b 01       	movw	r12, r22
   3aff2:	7a 01       	movw	r14, r20
   3aff4:	61 15       	cp	r22, r1
   3aff6:	71 05       	cpc	r23, r1
   3aff8:	19 f0       	breq	.+6      	; 0x3b000 <strtol+0x34>
   3affa:	fb 01       	movw	r30, r22
   3affc:	91 83       	std	Z+1, r25	; 0x01
   3affe:	80 83       	st	Z, r24
   3b000:	e1 14       	cp	r14, r1
   3b002:	f1 04       	cpc	r15, r1
   3b004:	51 f0       	breq	.+20     	; 0x3b01a <strtol+0x4e>
   3b006:	c7 01       	movw	r24, r14
   3b008:	02 97       	sbiw	r24, 0x02	; 2
   3b00a:	83 97       	sbiw	r24, 0x23	; 35
   3b00c:	30 f0       	brcs	.+12     	; 0x3b01a <strtol+0x4e>
   3b00e:	40 e0       	ldi	r20, 0x00	; 0
   3b010:	30 e0       	ldi	r19, 0x00	; 0
   3b012:	20 e0       	ldi	r18, 0x00	; 0
   3b014:	90 e0       	ldi	r25, 0x00	; 0
   3b016:	6b c0       	rjmp	.+214    	; 0x3b0ee <strtol+0x122>
   3b018:	5e 01       	movw	r10, r28
   3b01a:	e5 01       	movw	r28, r10
   3b01c:	21 96       	adiw	r28, 0x01	; 1
   3b01e:	f5 01       	movw	r30, r10
   3b020:	10 81       	ld	r17, Z
   3b022:	81 2f       	mov	r24, r17
   3b024:	90 e0       	ldi	r25, 0x00	; 0
   3b026:	0f 94 ec d9 	call	0x3b3d8	; 0x3b3d8 <isspace>
   3b02a:	89 2b       	or	r24, r25
   3b02c:	a9 f7       	brne	.-22     	; 0x3b018 <strtol+0x4c>
   3b02e:	1d 32       	cpi	r17, 0x2D	; 45
   3b030:	01 f5       	brne	.+64     	; 0x3b072 <strtol+0xa6>
   3b032:	21 96       	adiw	r28, 0x01	; 1
   3b034:	f5 01       	movw	r30, r10
   3b036:	11 81       	ldd	r17, Z+1	; 0x01
   3b038:	01 e0       	ldi	r16, 0x01	; 1
   3b03a:	e1 14       	cp	r14, r1
   3b03c:	f1 04       	cpc	r15, r1
   3b03e:	09 f4       	brne	.+2      	; 0x3b042 <strtol+0x76>
   3b040:	e6 c0       	rjmp	.+460    	; 0x3b20e <strtol+0x242>
   3b042:	f0 e1       	ldi	r31, 0x10	; 16
   3b044:	ef 16       	cp	r14, r31
   3b046:	f1 04       	cpc	r15, r1
   3b048:	09 f0       	breq	.+2      	; 0x3b04c <strtol+0x80>
   3b04a:	88 c0       	rjmp	.+272    	; 0x3b15c <strtol+0x190>
   3b04c:	10 33       	cpi	r17, 0x30	; 48
   3b04e:	59 f4       	brne	.+22     	; 0x3b066 <strtol+0x9a>
   3b050:	88 81       	ld	r24, Y
   3b052:	8f 7d       	andi	r24, 0xDF	; 223
   3b054:	88 35       	cpi	r24, 0x58	; 88
   3b056:	09 f0       	breq	.+2      	; 0x3b05a <strtol+0x8e>
   3b058:	7c c0       	rjmp	.+248    	; 0x3b152 <strtol+0x186>
   3b05a:	19 81       	ldd	r17, Y+1	; 0x01
   3b05c:	22 96       	adiw	r28, 0x02	; 2
   3b05e:	02 60       	ori	r16, 0x02	; 2
   3b060:	f0 e1       	ldi	r31, 0x10	; 16
   3b062:	ef 2e       	mov	r14, r31
   3b064:	f1 2c       	mov	r15, r1
   3b066:	81 2c       	mov	r8, r1
   3b068:	91 2c       	mov	r9, r1
   3b06a:	a1 2c       	mov	r10, r1
   3b06c:	88 e0       	ldi	r24, 0x08	; 8
   3b06e:	b8 2e       	mov	r11, r24
   3b070:	92 c0       	rjmp	.+292    	; 0x3b196 <strtol+0x1ca>
   3b072:	1b 32       	cpi	r17, 0x2B	; 43
   3b074:	21 f4       	brne	.+8      	; 0x3b07e <strtol+0xb2>
   3b076:	e5 01       	movw	r28, r10
   3b078:	22 96       	adiw	r28, 0x02	; 2
   3b07a:	f5 01       	movw	r30, r10
   3b07c:	11 81       	ldd	r17, Z+1	; 0x01
   3b07e:	00 e0       	ldi	r16, 0x00	; 0
   3b080:	dc cf       	rjmp	.-72     	; 0x3b03a <strtol+0x6e>
   3b082:	ea e0       	ldi	r30, 0x0A	; 10
   3b084:	ee 16       	cp	r14, r30
   3b086:	f1 04       	cpc	r15, r1
   3b088:	09 f4       	brne	.+2      	; 0x3b08c <strtol+0xc0>
   3b08a:	c7 c0       	rjmp	.+398    	; 0x3b21a <strtol+0x24e>
   3b08c:	f0 e1       	ldi	r31, 0x10	; 16
   3b08e:	ef 16       	cp	r14, r31
   3b090:	f1 04       	cpc	r15, r1
   3b092:	09 f0       	breq	.+2      	; 0x3b096 <strtol+0xca>
   3b094:	73 c0       	rjmp	.+230    	; 0x3b17c <strtol+0x1b0>
   3b096:	e7 cf       	rjmp	.-50     	; 0x3b066 <strtol+0x9a>
   3b098:	78 e0       	ldi	r23, 0x08	; 8
   3b09a:	e7 2e       	mov	r14, r23
   3b09c:	f1 2c       	mov	r15, r1
   3b09e:	81 2c       	mov	r8, r1
   3b0a0:	91 2c       	mov	r9, r1
   3b0a2:	a1 2c       	mov	r10, r1
   3b0a4:	60 e1       	ldi	r22, 0x10	; 16
   3b0a6:	b6 2e       	mov	r11, r22
   3b0a8:	76 c0       	rjmp	.+236    	; 0x3b196 <strtol+0x1ca>
   3b0aa:	21 e0       	ldi	r18, 0x01	; 1
   3b0ac:	ad c0       	rjmp	.+346    	; 0x3b208 <strtol+0x23c>
   3b0ae:	30 2f       	mov	r19, r16
   3b0b0:	31 70       	andi	r19, 0x01	; 1
   3b0b2:	c1 14       	cp	r12, r1
   3b0b4:	d1 04       	cpc	r13, r1
   3b0b6:	31 f0       	breq	.+12     	; 0x3b0c4 <strtol+0xf8>
   3b0b8:	22 23       	and	r18, r18
   3b0ba:	71 f1       	breq	.+92     	; 0x3b118 <strtol+0x14c>
   3b0bc:	21 97       	sbiw	r28, 0x01	; 1
   3b0be:	f6 01       	movw	r30, r12
   3b0c0:	d1 83       	std	Z+1, r29	; 0x01
   3b0c2:	c0 83       	st	Z, r28
   3b0c4:	27 ff       	sbrs	r18, 7
   3b0c6:	2e c0       	rjmp	.+92     	; 0x3b124 <strtol+0x158>
   3b0c8:	60 e0       	ldi	r22, 0x00	; 0
   3b0ca:	70 e0       	ldi	r23, 0x00	; 0
   3b0cc:	80 e0       	ldi	r24, 0x00	; 0
   3b0ce:	90 e8       	ldi	r25, 0x80	; 128
   3b0d0:	31 11       	cpse	r19, r1
   3b0d2:	04 c0       	rjmp	.+8      	; 0x3b0dc <strtol+0x110>
   3b0d4:	6f ef       	ldi	r22, 0xFF	; 255
   3b0d6:	7f ef       	ldi	r23, 0xFF	; 255
   3b0d8:	8f ef       	ldi	r24, 0xFF	; 255
   3b0da:	9f e7       	ldi	r25, 0x7F	; 127
   3b0dc:	22 e2       	ldi	r18, 0x22	; 34
   3b0de:	30 e0       	ldi	r19, 0x00	; 0
   3b0e0:	30 93 15 18 	sts	0x1815, r19	; 0x801815 <errno+0x1>
   3b0e4:	20 93 14 18 	sts	0x1814, r18	; 0x801814 <errno>
   3b0e8:	46 2f       	mov	r20, r22
   3b0ea:	37 2f       	mov	r19, r23
   3b0ec:	28 2f       	mov	r18, r24
   3b0ee:	64 2f       	mov	r22, r20
   3b0f0:	73 2f       	mov	r23, r19
   3b0f2:	82 2f       	mov	r24, r18
   3b0f4:	df 91       	pop	r29
   3b0f6:	cf 91       	pop	r28
   3b0f8:	1f 91       	pop	r17
   3b0fa:	0f 91       	pop	r16
   3b0fc:	ff 90       	pop	r15
   3b0fe:	ef 90       	pop	r14
   3b100:	df 90       	pop	r13
   3b102:	cf 90       	pop	r12
   3b104:	bf 90       	pop	r11
   3b106:	af 90       	pop	r10
   3b108:	9f 90       	pop	r9
   3b10a:	8f 90       	pop	r8
   3b10c:	7f 90       	pop	r7
   3b10e:	6f 90       	pop	r6
   3b110:	5f 90       	pop	r5
   3b112:	4f 90       	pop	r4
   3b114:	3f 90       	pop	r3
   3b116:	08 95       	ret
   3b118:	01 ff       	sbrs	r16, 1
   3b11a:	04 c0       	rjmp	.+8      	; 0x3b124 <strtol+0x158>
   3b11c:	22 97       	sbiw	r28, 0x02	; 2
   3b11e:	f6 01       	movw	r30, r12
   3b120:	d1 83       	std	Z+1, r29	; 0x01
   3b122:	c0 83       	st	Z, r28
   3b124:	33 23       	and	r19, r19
   3b126:	41 f0       	breq	.+16     	; 0x3b138 <strtol+0x16c>
   3b128:	90 95       	com	r25
   3b12a:	80 95       	com	r24
   3b12c:	70 95       	com	r23
   3b12e:	61 95       	neg	r22
   3b130:	7f 4f       	sbci	r23, 0xFF	; 255
   3b132:	8f 4f       	sbci	r24, 0xFF	; 255
   3b134:	9f 4f       	sbci	r25, 0xFF	; 255
   3b136:	d8 cf       	rjmp	.-80     	; 0x3b0e8 <strtol+0x11c>
   3b138:	97 ff       	sbrs	r25, 7
   3b13a:	d6 cf       	rjmp	.-84     	; 0x3b0e8 <strtol+0x11c>
   3b13c:	82 e2       	ldi	r24, 0x22	; 34
   3b13e:	90 e0       	ldi	r25, 0x00	; 0
   3b140:	90 93 15 18 	sts	0x1815, r25	; 0x801815 <errno+0x1>
   3b144:	80 93 14 18 	sts	0x1814, r24	; 0x801814 <errno>
   3b148:	6f ef       	ldi	r22, 0xFF	; 255
   3b14a:	7f ef       	ldi	r23, 0xFF	; 255
   3b14c:	8f ef       	ldi	r24, 0xFF	; 255
   3b14e:	9f e7       	ldi	r25, 0x7F	; 127
   3b150:	cb cf       	rjmp	.-106    	; 0x3b0e8 <strtol+0x11c>
   3b152:	10 e3       	ldi	r17, 0x30	; 48
   3b154:	e1 14       	cp	r14, r1
   3b156:	f1 04       	cpc	r15, r1
   3b158:	09 f4       	brne	.+2      	; 0x3b15c <strtol+0x190>
   3b15a:	9e cf       	rjmp	.-196    	; 0x3b098 <strtol+0xcc>
   3b15c:	28 e0       	ldi	r18, 0x08	; 8
   3b15e:	e2 16       	cp	r14, r18
   3b160:	f1 04       	cpc	r15, r1
   3b162:	09 f4       	brne	.+2      	; 0x3b166 <strtol+0x19a>
   3b164:	9c cf       	rjmp	.-200    	; 0x3b09e <strtol+0xd2>
   3b166:	0c f0       	brlt	.+2      	; 0x3b16a <strtol+0x19e>
   3b168:	8c cf       	rjmp	.-232    	; 0x3b082 <strtol+0xb6>
   3b16a:	81 2c       	mov	r8, r1
   3b16c:	91 2c       	mov	r9, r1
   3b16e:	a1 2c       	mov	r10, r1
   3b170:	e0 e4       	ldi	r30, 0x40	; 64
   3b172:	be 2e       	mov	r11, r30
   3b174:	82 e0       	ldi	r24, 0x02	; 2
   3b176:	e8 16       	cp	r14, r24
   3b178:	f1 04       	cpc	r15, r1
   3b17a:	69 f0       	breq	.+26     	; 0x3b196 <strtol+0x1ca>
   3b17c:	60 e0       	ldi	r22, 0x00	; 0
   3b17e:	70 e0       	ldi	r23, 0x00	; 0
   3b180:	80 e0       	ldi	r24, 0x00	; 0
   3b182:	90 e8       	ldi	r25, 0x80	; 128
   3b184:	97 01       	movw	r18, r14
   3b186:	0f 2c       	mov	r0, r15
   3b188:	00 0c       	add	r0, r0
   3b18a:	44 0b       	sbc	r20, r20
   3b18c:	55 0b       	sbc	r21, r21
   3b18e:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   3b192:	49 01       	movw	r8, r18
   3b194:	5a 01       	movw	r10, r20
   3b196:	20 e0       	ldi	r18, 0x00	; 0
   3b198:	60 e0       	ldi	r22, 0x00	; 0
   3b19a:	70 e0       	ldi	r23, 0x00	; 0
   3b19c:	cb 01       	movw	r24, r22
   3b19e:	27 01       	movw	r4, r14
   3b1a0:	0f 2c       	mov	r0, r15
   3b1a2:	00 0c       	add	r0, r0
   3b1a4:	66 08       	sbc	r6, r6
   3b1a6:	77 08       	sbc	r7, r7
   3b1a8:	fe 01       	movw	r30, r28
   3b1aa:	50 ed       	ldi	r21, 0xD0	; 208
   3b1ac:	35 2e       	mov	r3, r21
   3b1ae:	31 0e       	add	r3, r17
   3b1b0:	39 e0       	ldi	r19, 0x09	; 9
   3b1b2:	33 15       	cp	r19, r3
   3b1b4:	70 f4       	brcc	.+28     	; 0x3b1d2 <strtol+0x206>
   3b1b6:	3f eb       	ldi	r19, 0xBF	; 191
   3b1b8:	31 0f       	add	r19, r17
   3b1ba:	49 ec       	ldi	r20, 0xC9	; 201
   3b1bc:	34 2e       	mov	r3, r20
   3b1be:	3a 31       	cpi	r19, 0x1A	; 26
   3b1c0:	38 f0       	brcs	.+14     	; 0x3b1d0 <strtol+0x204>
   3b1c2:	3f e9       	ldi	r19, 0x9F	; 159
   3b1c4:	31 0f       	add	r19, r17
   3b1c6:	3a 31       	cpi	r19, 0x1A	; 26
   3b1c8:	08 f0       	brcs	.+2      	; 0x3b1cc <strtol+0x200>
   3b1ca:	71 cf       	rjmp	.-286    	; 0x3b0ae <strtol+0xe2>
   3b1cc:	39 ea       	ldi	r19, 0xA9	; 169
   3b1ce:	33 2e       	mov	r3, r19
   3b1d0:	31 0e       	add	r3, r17
   3b1d2:	3e 14       	cp	r3, r14
   3b1d4:	1f 04       	cpc	r1, r15
   3b1d6:	0c f0       	brlt	.+2      	; 0x3b1da <strtol+0x20e>
   3b1d8:	6a cf       	rjmp	.-300    	; 0x3b0ae <strtol+0xe2>
   3b1da:	27 fd       	sbrc	r18, 7
   3b1dc:	15 c0       	rjmp	.+42     	; 0x3b208 <strtol+0x23c>
   3b1de:	86 16       	cp	r8, r22
   3b1e0:	97 06       	cpc	r9, r23
   3b1e2:	a8 06       	cpc	r10, r24
   3b1e4:	b9 06       	cpc	r11, r25
   3b1e6:	78 f0       	brcs	.+30     	; 0x3b206 <strtol+0x23a>
   3b1e8:	a3 01       	movw	r20, r6
   3b1ea:	92 01       	movw	r18, r4
   3b1ec:	0f 94 be dc 	call	0x3b97c	; 0x3b97c <__mulsi3>
   3b1f0:	63 0d       	add	r22, r3
   3b1f2:	71 1d       	adc	r23, r1
   3b1f4:	81 1d       	adc	r24, r1
   3b1f6:	91 1d       	adc	r25, r1
   3b1f8:	61 30       	cpi	r22, 0x01	; 1
   3b1fa:	71 05       	cpc	r23, r1
   3b1fc:	81 05       	cpc	r24, r1
   3b1fe:	20 e8       	ldi	r18, 0x80	; 128
   3b200:	92 07       	cpc	r25, r18
   3b202:	08 f4       	brcc	.+2      	; 0x3b206 <strtol+0x23a>
   3b204:	52 cf       	rjmp	.-348    	; 0x3b0aa <strtol+0xde>
   3b206:	2f ef       	ldi	r18, 0xFF	; 255
   3b208:	21 96       	adiw	r28, 0x01	; 1
   3b20a:	10 81       	ld	r17, Z
   3b20c:	cd cf       	rjmp	.-102    	; 0x3b1a8 <strtol+0x1dc>
   3b20e:	10 33       	cpi	r17, 0x30	; 48
   3b210:	09 f4       	brne	.+2      	; 0x3b214 <strtol+0x248>
   3b212:	1e cf       	rjmp	.-452    	; 0x3b050 <strtol+0x84>
   3b214:	2a e0       	ldi	r18, 0x0A	; 10
   3b216:	e2 2e       	mov	r14, r18
   3b218:	f1 2c       	mov	r15, r1
   3b21a:	9c ec       	ldi	r25, 0xCC	; 204
   3b21c:	89 2e       	mov	r8, r25
   3b21e:	98 2c       	mov	r9, r8
   3b220:	a8 2c       	mov	r10, r8
   3b222:	9c e0       	ldi	r25, 0x0C	; 12
   3b224:	b9 2e       	mov	r11, r25
   3b226:	b7 cf       	rjmp	.-146    	; 0x3b196 <strtol+0x1ca>

0003b228 <__ftoa_engine>:
   3b228:	28 30       	cpi	r18, 0x08	; 8
   3b22a:	08 f0       	brcs	.+2      	; 0x3b22e <__ftoa_engine+0x6>
   3b22c:	27 e0       	ldi	r18, 0x07	; 7
   3b22e:	33 27       	eor	r19, r19
   3b230:	da 01       	movw	r26, r20
   3b232:	99 0f       	add	r25, r25
   3b234:	31 1d       	adc	r19, r1
   3b236:	87 fd       	sbrc	r24, 7
   3b238:	91 60       	ori	r25, 0x01	; 1
   3b23a:	00 96       	adiw	r24, 0x00	; 0
   3b23c:	61 05       	cpc	r22, r1
   3b23e:	71 05       	cpc	r23, r1
   3b240:	39 f4       	brne	.+14     	; 0x3b250 <__ftoa_engine+0x28>
   3b242:	32 60       	ori	r19, 0x02	; 2
   3b244:	2e 5f       	subi	r18, 0xFE	; 254
   3b246:	3d 93       	st	X+, r19
   3b248:	30 e3       	ldi	r19, 0x30	; 48
   3b24a:	2a 95       	dec	r18
   3b24c:	e1 f7       	brne	.-8      	; 0x3b246 <__ftoa_engine+0x1e>
   3b24e:	08 95       	ret
   3b250:	9f 3f       	cpi	r25, 0xFF	; 255
   3b252:	30 f0       	brcs	.+12     	; 0x3b260 <__ftoa_engine+0x38>
   3b254:	80 38       	cpi	r24, 0x80	; 128
   3b256:	71 05       	cpc	r23, r1
   3b258:	61 05       	cpc	r22, r1
   3b25a:	09 f0       	breq	.+2      	; 0x3b25e <__ftoa_engine+0x36>
   3b25c:	3c 5f       	subi	r19, 0xFC	; 252
   3b25e:	3c 5f       	subi	r19, 0xFC	; 252
   3b260:	3d 93       	st	X+, r19
   3b262:	91 30       	cpi	r25, 0x01	; 1
   3b264:	08 f0       	brcs	.+2      	; 0x3b268 <__ftoa_engine+0x40>
   3b266:	80 68       	ori	r24, 0x80	; 128
   3b268:	91 1d       	adc	r25, r1
   3b26a:	df 93       	push	r29
   3b26c:	cf 93       	push	r28
   3b26e:	1f 93       	push	r17
   3b270:	0f 93       	push	r16
   3b272:	ff 92       	push	r15
   3b274:	ef 92       	push	r14
   3b276:	19 2f       	mov	r17, r25
   3b278:	98 7f       	andi	r25, 0xF8	; 248
   3b27a:	96 95       	lsr	r25
   3b27c:	e9 2f       	mov	r30, r25
   3b27e:	96 95       	lsr	r25
   3b280:	96 95       	lsr	r25
   3b282:	e9 0f       	add	r30, r25
   3b284:	ff 27       	eor	r31, r31
   3b286:	e2 50       	subi	r30, 0x02	; 2
   3b288:	fa 48       	sbci	r31, 0x8A	; 138
   3b28a:	99 27       	eor	r25, r25
   3b28c:	33 27       	eor	r19, r19
   3b28e:	ee 24       	eor	r14, r14
   3b290:	ff 24       	eor	r15, r15
   3b292:	a7 01       	movw	r20, r14
   3b294:	e7 01       	movw	r28, r14
   3b296:	05 90       	lpm	r0, Z+
   3b298:	08 94       	sec
   3b29a:	07 94       	ror	r0
   3b29c:	28 f4       	brcc	.+10     	; 0x3b2a8 <__ftoa_engine+0x80>
   3b29e:	36 0f       	add	r19, r22
   3b2a0:	e7 1e       	adc	r14, r23
   3b2a2:	f8 1e       	adc	r15, r24
   3b2a4:	49 1f       	adc	r20, r25
   3b2a6:	51 1d       	adc	r21, r1
   3b2a8:	66 0f       	add	r22, r22
   3b2aa:	77 1f       	adc	r23, r23
   3b2ac:	88 1f       	adc	r24, r24
   3b2ae:	99 1f       	adc	r25, r25
   3b2b0:	06 94       	lsr	r0
   3b2b2:	a1 f7       	brne	.-24     	; 0x3b29c <__ftoa_engine+0x74>
   3b2b4:	05 90       	lpm	r0, Z+
   3b2b6:	07 94       	ror	r0
   3b2b8:	28 f4       	brcc	.+10     	; 0x3b2c4 <__ftoa_engine+0x9c>
   3b2ba:	e7 0e       	add	r14, r23
   3b2bc:	f8 1e       	adc	r15, r24
   3b2be:	49 1f       	adc	r20, r25
   3b2c0:	56 1f       	adc	r21, r22
   3b2c2:	c1 1d       	adc	r28, r1
   3b2c4:	77 0f       	add	r23, r23
   3b2c6:	88 1f       	adc	r24, r24
   3b2c8:	99 1f       	adc	r25, r25
   3b2ca:	66 1f       	adc	r22, r22
   3b2cc:	06 94       	lsr	r0
   3b2ce:	a1 f7       	brne	.-24     	; 0x3b2b8 <__ftoa_engine+0x90>
   3b2d0:	05 90       	lpm	r0, Z+
   3b2d2:	07 94       	ror	r0
   3b2d4:	28 f4       	brcc	.+10     	; 0x3b2e0 <__ftoa_engine+0xb8>
   3b2d6:	f8 0e       	add	r15, r24
   3b2d8:	49 1f       	adc	r20, r25
   3b2da:	56 1f       	adc	r21, r22
   3b2dc:	c7 1f       	adc	r28, r23
   3b2de:	d1 1d       	adc	r29, r1
   3b2e0:	88 0f       	add	r24, r24
   3b2e2:	99 1f       	adc	r25, r25
   3b2e4:	66 1f       	adc	r22, r22
   3b2e6:	77 1f       	adc	r23, r23
   3b2e8:	06 94       	lsr	r0
   3b2ea:	a1 f7       	brne	.-24     	; 0x3b2d4 <__ftoa_engine+0xac>
   3b2ec:	05 90       	lpm	r0, Z+
   3b2ee:	07 94       	ror	r0
   3b2f0:	20 f4       	brcc	.+8      	; 0x3b2fa <__ftoa_engine+0xd2>
   3b2f2:	49 0f       	add	r20, r25
   3b2f4:	56 1f       	adc	r21, r22
   3b2f6:	c7 1f       	adc	r28, r23
   3b2f8:	d8 1f       	adc	r29, r24
   3b2fa:	99 0f       	add	r25, r25
   3b2fc:	66 1f       	adc	r22, r22
   3b2fe:	77 1f       	adc	r23, r23
   3b300:	88 1f       	adc	r24, r24
   3b302:	06 94       	lsr	r0
   3b304:	a9 f7       	brne	.-22     	; 0x3b2f0 <__ftoa_engine+0xc8>
   3b306:	84 91       	lpm	r24, Z
   3b308:	10 95       	com	r17
   3b30a:	17 70       	andi	r17, 0x07	; 7
   3b30c:	41 f0       	breq	.+16     	; 0x3b31e <__ftoa_engine+0xf6>
   3b30e:	d6 95       	lsr	r29
   3b310:	c7 95       	ror	r28
   3b312:	57 95       	ror	r21
   3b314:	47 95       	ror	r20
   3b316:	f7 94       	ror	r15
   3b318:	e7 94       	ror	r14
   3b31a:	1a 95       	dec	r17
   3b31c:	c1 f7       	brne	.-16     	; 0x3b30e <__ftoa_engine+0xe6>
   3b31e:	e4 ea       	ldi	r30, 0xA4	; 164
   3b320:	f5 e7       	ldi	r31, 0x75	; 117
   3b322:	68 94       	set
   3b324:	15 90       	lpm	r1, Z+
   3b326:	15 91       	lpm	r17, Z+
   3b328:	35 91       	lpm	r19, Z+
   3b32a:	65 91       	lpm	r22, Z+
   3b32c:	95 91       	lpm	r25, Z+
   3b32e:	05 90       	lpm	r0, Z+
   3b330:	7f e2       	ldi	r23, 0x2F	; 47
   3b332:	73 95       	inc	r23
   3b334:	e1 18       	sub	r14, r1
   3b336:	f1 0a       	sbc	r15, r17
   3b338:	43 0b       	sbc	r20, r19
   3b33a:	56 0b       	sbc	r21, r22
   3b33c:	c9 0b       	sbc	r28, r25
   3b33e:	d0 09       	sbc	r29, r0
   3b340:	c0 f7       	brcc	.-16     	; 0x3b332 <__ftoa_engine+0x10a>
   3b342:	e1 0c       	add	r14, r1
   3b344:	f1 1e       	adc	r15, r17
   3b346:	43 1f       	adc	r20, r19
   3b348:	56 1f       	adc	r21, r22
   3b34a:	c9 1f       	adc	r28, r25
   3b34c:	d0 1d       	adc	r29, r0
   3b34e:	7e f4       	brtc	.+30     	; 0x3b36e <__ftoa_engine+0x146>
   3b350:	70 33       	cpi	r23, 0x30	; 48
   3b352:	11 f4       	brne	.+4      	; 0x3b358 <__ftoa_engine+0x130>
   3b354:	8a 95       	dec	r24
   3b356:	e6 cf       	rjmp	.-52     	; 0x3b324 <__ftoa_engine+0xfc>
   3b358:	e8 94       	clt
   3b35a:	01 50       	subi	r16, 0x01	; 1
   3b35c:	30 f0       	brcs	.+12     	; 0x3b36a <__ftoa_engine+0x142>
   3b35e:	08 0f       	add	r16, r24
   3b360:	0a f4       	brpl	.+2      	; 0x3b364 <__ftoa_engine+0x13c>
   3b362:	00 27       	eor	r16, r16
   3b364:	02 17       	cp	r16, r18
   3b366:	08 f4       	brcc	.+2      	; 0x3b36a <__ftoa_engine+0x142>
   3b368:	20 2f       	mov	r18, r16
   3b36a:	23 95       	inc	r18
   3b36c:	02 2f       	mov	r16, r18
   3b36e:	7a 33       	cpi	r23, 0x3A	; 58
   3b370:	28 f0       	brcs	.+10     	; 0x3b37c <__ftoa_engine+0x154>
   3b372:	79 e3       	ldi	r23, 0x39	; 57
   3b374:	7d 93       	st	X+, r23
   3b376:	2a 95       	dec	r18
   3b378:	e9 f7       	brne	.-6      	; 0x3b374 <__ftoa_engine+0x14c>
   3b37a:	10 c0       	rjmp	.+32     	; 0x3b39c <__ftoa_engine+0x174>
   3b37c:	7d 93       	st	X+, r23
   3b37e:	2a 95       	dec	r18
   3b380:	89 f6       	brne	.-94     	; 0x3b324 <__ftoa_engine+0xfc>
   3b382:	06 94       	lsr	r0
   3b384:	97 95       	ror	r25
   3b386:	67 95       	ror	r22
   3b388:	37 95       	ror	r19
   3b38a:	17 95       	ror	r17
   3b38c:	17 94       	ror	r1
   3b38e:	e1 18       	sub	r14, r1
   3b390:	f1 0a       	sbc	r15, r17
   3b392:	43 0b       	sbc	r20, r19
   3b394:	56 0b       	sbc	r21, r22
   3b396:	c9 0b       	sbc	r28, r25
   3b398:	d0 09       	sbc	r29, r0
   3b39a:	98 f0       	brcs	.+38     	; 0x3b3c2 <__ftoa_engine+0x19a>
   3b39c:	23 95       	inc	r18
   3b39e:	7e 91       	ld	r23, -X
   3b3a0:	73 95       	inc	r23
   3b3a2:	7a 33       	cpi	r23, 0x3A	; 58
   3b3a4:	08 f0       	brcs	.+2      	; 0x3b3a8 <__ftoa_engine+0x180>
   3b3a6:	70 e3       	ldi	r23, 0x30	; 48
   3b3a8:	7c 93       	st	X, r23
   3b3aa:	20 13       	cpse	r18, r16
   3b3ac:	b8 f7       	brcc	.-18     	; 0x3b39c <__ftoa_engine+0x174>
   3b3ae:	7e 91       	ld	r23, -X
   3b3b0:	70 61       	ori	r23, 0x10	; 16
   3b3b2:	7d 93       	st	X+, r23
   3b3b4:	30 f0       	brcs	.+12     	; 0x3b3c2 <__ftoa_engine+0x19a>
   3b3b6:	83 95       	inc	r24
   3b3b8:	71 e3       	ldi	r23, 0x31	; 49
   3b3ba:	7d 93       	st	X+, r23
   3b3bc:	70 e3       	ldi	r23, 0x30	; 48
   3b3be:	2a 95       	dec	r18
   3b3c0:	e1 f7       	brne	.-8      	; 0x3b3ba <__ftoa_engine+0x192>
   3b3c2:	11 24       	eor	r1, r1
   3b3c4:	ef 90       	pop	r14
   3b3c6:	ff 90       	pop	r15
   3b3c8:	0f 91       	pop	r16
   3b3ca:	1f 91       	pop	r17
   3b3cc:	cf 91       	pop	r28
   3b3ce:	df 91       	pop	r29
   3b3d0:	99 27       	eor	r25, r25
   3b3d2:	87 fd       	sbrc	r24, 7
   3b3d4:	90 95       	com	r25
   3b3d6:	08 95       	ret

0003b3d8 <isspace>:
   3b3d8:	91 11       	cpse	r25, r1
   3b3da:	0d 94 48 dc 	jmp	0x3b890	; 0x3b890 <__ctype_isfalse>
   3b3de:	80 32       	cpi	r24, 0x20	; 32
   3b3e0:	19 f0       	breq	.+6      	; 0x3b3e8 <isspace+0x10>
   3b3e2:	89 50       	subi	r24, 0x09	; 9
   3b3e4:	85 50       	subi	r24, 0x05	; 5
   3b3e6:	c8 f7       	brcc	.-14     	; 0x3b3da <isspace+0x2>
   3b3e8:	08 95       	ret

0003b3ea <memcpy_P>:
   3b3ea:	fb 01       	movw	r30, r22
   3b3ec:	dc 01       	movw	r26, r24
   3b3ee:	02 c0       	rjmp	.+4      	; 0x3b3f4 <memcpy_P+0xa>
   3b3f0:	05 90       	lpm	r0, Z+
   3b3f2:	0d 92       	st	X+, r0
   3b3f4:	41 50       	subi	r20, 0x01	; 1
   3b3f6:	50 40       	sbci	r21, 0x00	; 0
   3b3f8:	d8 f7       	brcc	.-10     	; 0x3b3f0 <memcpy_P+0x6>
   3b3fa:	08 95       	ret

0003b3fc <strcat_P>:
   3b3fc:	fb 01       	movw	r30, r22
   3b3fe:	dc 01       	movw	r26, r24
   3b400:	0d 90       	ld	r0, X+
   3b402:	00 20       	and	r0, r0
   3b404:	e9 f7       	brne	.-6      	; 0x3b400 <strcat_P+0x4>
   3b406:	11 97       	sbiw	r26, 0x01	; 1
   3b408:	05 90       	lpm	r0, Z+
   3b40a:	0d 92       	st	X+, r0
   3b40c:	00 20       	and	r0, r0
   3b40e:	e1 f7       	brne	.-8      	; 0x3b408 <strcat_P+0xc>
   3b410:	08 95       	ret

0003b412 <strcmp_P>:
   3b412:	fb 01       	movw	r30, r22
   3b414:	dc 01       	movw	r26, r24
   3b416:	8d 91       	ld	r24, X+
   3b418:	05 90       	lpm	r0, Z+
   3b41a:	80 19       	sub	r24, r0
   3b41c:	01 10       	cpse	r0, r1
   3b41e:	d9 f3       	breq	.-10     	; 0x3b416 <strcmp_P+0x4>
   3b420:	99 0b       	sbc	r25, r25
   3b422:	08 95       	ret

0003b424 <strcpy_P>:
   3b424:	fb 01       	movw	r30, r22
   3b426:	dc 01       	movw	r26, r24
   3b428:	05 90       	lpm	r0, Z+
   3b42a:	0d 92       	st	X+, r0
   3b42c:	00 20       	and	r0, r0
   3b42e:	e1 f7       	brne	.-8      	; 0x3b428 <strcpy_P+0x4>
   3b430:	08 95       	ret

0003b432 <__strlen_P>:
   3b432:	fc 01       	movw	r30, r24
   3b434:	05 90       	lpm	r0, Z+
   3b436:	00 20       	and	r0, r0
   3b438:	e9 f7       	brne	.-6      	; 0x3b434 <__strlen_P+0x2>
   3b43a:	80 95       	com	r24
   3b43c:	90 95       	com	r25
   3b43e:	8e 0f       	add	r24, r30
   3b440:	9f 1f       	adc	r25, r31
   3b442:	08 95       	ret

0003b444 <strncasecmp_P>:
   3b444:	fb 01       	movw	r30, r22
   3b446:	dc 01       	movw	r26, r24
   3b448:	41 50       	subi	r20, 0x01	; 1
   3b44a:	50 40       	sbci	r21, 0x00	; 0
   3b44c:	88 f0       	brcs	.+34     	; 0x3b470 <strncasecmp_P+0x2c>
   3b44e:	8d 91       	ld	r24, X+
   3b450:	81 34       	cpi	r24, 0x41	; 65
   3b452:	1c f0       	brlt	.+6      	; 0x3b45a <strncasecmp_P+0x16>
   3b454:	8b 35       	cpi	r24, 0x5B	; 91
   3b456:	0c f4       	brge	.+2      	; 0x3b45a <strncasecmp_P+0x16>
   3b458:	80 5e       	subi	r24, 0xE0	; 224
   3b45a:	65 91       	lpm	r22, Z+
   3b45c:	61 34       	cpi	r22, 0x41	; 65
   3b45e:	1c f0       	brlt	.+6      	; 0x3b466 <strncasecmp_P+0x22>
   3b460:	6b 35       	cpi	r22, 0x5B	; 91
   3b462:	0c f4       	brge	.+2      	; 0x3b466 <strncasecmp_P+0x22>
   3b464:	60 5e       	subi	r22, 0xE0	; 224
   3b466:	86 1b       	sub	r24, r22
   3b468:	61 11       	cpse	r22, r1
   3b46a:	71 f3       	breq	.-36     	; 0x3b448 <strncasecmp_P+0x4>
   3b46c:	99 0b       	sbc	r25, r25
   3b46e:	08 95       	ret
   3b470:	88 1b       	sub	r24, r24
   3b472:	fc cf       	rjmp	.-8      	; 0x3b46c <strncasecmp_P+0x28>

0003b474 <strncmp_P>:
   3b474:	fb 01       	movw	r30, r22
   3b476:	dc 01       	movw	r26, r24
   3b478:	41 50       	subi	r20, 0x01	; 1
   3b47a:	50 40       	sbci	r21, 0x00	; 0
   3b47c:	30 f0       	brcs	.+12     	; 0x3b48a <strncmp_P+0x16>
   3b47e:	8d 91       	ld	r24, X+
   3b480:	05 90       	lpm	r0, Z+
   3b482:	80 19       	sub	r24, r0
   3b484:	19 f4       	brne	.+6      	; 0x3b48c <strncmp_P+0x18>
   3b486:	00 20       	and	r0, r0
   3b488:	b9 f7       	brne	.-18     	; 0x3b478 <strncmp_P+0x4>
   3b48a:	88 1b       	sub	r24, r24
   3b48c:	99 0b       	sbc	r25, r25
   3b48e:	08 95       	ret

0003b490 <strncpy_P>:
   3b490:	fb 01       	movw	r30, r22
   3b492:	dc 01       	movw	r26, r24
   3b494:	41 50       	subi	r20, 0x01	; 1
   3b496:	50 40       	sbci	r21, 0x00	; 0
   3b498:	48 f0       	brcs	.+18     	; 0x3b4ac <strncpy_P+0x1c>
   3b49a:	05 90       	lpm	r0, Z+
   3b49c:	0d 92       	st	X+, r0
   3b49e:	00 20       	and	r0, r0
   3b4a0:	c9 f7       	brne	.-14     	; 0x3b494 <strncpy_P+0x4>
   3b4a2:	01 c0       	rjmp	.+2      	; 0x3b4a6 <strncpy_P+0x16>
   3b4a4:	1d 92       	st	X+, r1
   3b4a6:	41 50       	subi	r20, 0x01	; 1
   3b4a8:	50 40       	sbci	r21, 0x00	; 0
   3b4aa:	e0 f7       	brcc	.-8      	; 0x3b4a4 <strncpy_P+0x14>
   3b4ac:	08 95       	ret

0003b4ae <strnlen_P>:
   3b4ae:	fc 01       	movw	r30, r24
   3b4b0:	05 90       	lpm	r0, Z+
   3b4b2:	61 50       	subi	r22, 0x01	; 1
   3b4b4:	70 40       	sbci	r23, 0x00	; 0
   3b4b6:	01 10       	cpse	r0, r1
   3b4b8:	d8 f7       	brcc	.-10     	; 0x3b4b0 <strnlen_P+0x2>
   3b4ba:	80 95       	com	r24
   3b4bc:	90 95       	com	r25
   3b4be:	8e 0f       	add	r24, r30
   3b4c0:	9f 1f       	adc	r25, r31
   3b4c2:	08 95       	ret

0003b4c4 <strstr_P>:
   3b4c4:	fb 01       	movw	r30, r22
   3b4c6:	55 91       	lpm	r21, Z+
   3b4c8:	55 23       	and	r21, r21
   3b4ca:	a9 f0       	breq	.+42     	; 0x3b4f6 <strstr_P+0x32>
   3b4cc:	bf 01       	movw	r22, r30
   3b4ce:	dc 01       	movw	r26, r24
   3b4d0:	4d 91       	ld	r20, X+
   3b4d2:	45 17       	cp	r20, r21
   3b4d4:	41 11       	cpse	r20, r1
   3b4d6:	e1 f7       	brne	.-8      	; 0x3b4d0 <strstr_P+0xc>
   3b4d8:	59 f4       	brne	.+22     	; 0x3b4f0 <strstr_P+0x2c>
   3b4da:	cd 01       	movw	r24, r26
   3b4dc:	05 90       	lpm	r0, Z+
   3b4de:	00 20       	and	r0, r0
   3b4e0:	49 f0       	breq	.+18     	; 0x3b4f4 <strstr_P+0x30>
   3b4e2:	4d 91       	ld	r20, X+
   3b4e4:	40 15       	cp	r20, r0
   3b4e6:	41 11       	cpse	r20, r1
   3b4e8:	c9 f3       	breq	.-14     	; 0x3b4dc <strstr_P+0x18>
   3b4ea:	fb 01       	movw	r30, r22
   3b4ec:	41 11       	cpse	r20, r1
   3b4ee:	ef cf       	rjmp	.-34     	; 0x3b4ce <strstr_P+0xa>
   3b4f0:	81 e0       	ldi	r24, 0x01	; 1
   3b4f2:	90 e0       	ldi	r25, 0x00	; 0
   3b4f4:	01 97       	sbiw	r24, 0x01	; 1
   3b4f6:	08 95       	ret

0003b4f8 <strnlen>:
   3b4f8:	fc 01       	movw	r30, r24
   3b4fa:	61 50       	subi	r22, 0x01	; 1
   3b4fc:	70 40       	sbci	r23, 0x00	; 0
   3b4fe:	01 90       	ld	r0, Z+
   3b500:	01 10       	cpse	r0, r1
   3b502:	d8 f7       	brcc	.-10     	; 0x3b4fa <strnlen+0x2>
   3b504:	80 95       	com	r24
   3b506:	90 95       	com	r25
   3b508:	8e 0f       	add	r24, r30
   3b50a:	9f 1f       	adc	r25, r31
   3b50c:	08 95       	ret

0003b50e <fgetc>:
   3b50e:	cf 93       	push	r28
   3b510:	df 93       	push	r29
   3b512:	ec 01       	movw	r28, r24
   3b514:	2b 81       	ldd	r18, Y+3	; 0x03
   3b516:	20 ff       	sbrs	r18, 0
   3b518:	1a c0       	rjmp	.+52     	; 0x3b54e <fgetc+0x40>
   3b51a:	26 ff       	sbrs	r18, 6
   3b51c:	0c c0       	rjmp	.+24     	; 0x3b536 <fgetc+0x28>
   3b51e:	2f 7b       	andi	r18, 0xBF	; 191
   3b520:	2b 83       	std	Y+3, r18	; 0x03
   3b522:	8e 81       	ldd	r24, Y+6	; 0x06
   3b524:	9f 81       	ldd	r25, Y+7	; 0x07
   3b526:	01 96       	adiw	r24, 0x01	; 1
   3b528:	9f 83       	std	Y+7, r25	; 0x07
   3b52a:	8e 83       	std	Y+6, r24	; 0x06
   3b52c:	8a 81       	ldd	r24, Y+2	; 0x02
   3b52e:	90 e0       	ldi	r25, 0x00	; 0
   3b530:	df 91       	pop	r29
   3b532:	cf 91       	pop	r28
   3b534:	08 95       	ret
   3b536:	22 ff       	sbrs	r18, 2
   3b538:	18 c0       	rjmp	.+48     	; 0x3b56a <fgetc+0x5c>
   3b53a:	e8 81       	ld	r30, Y
   3b53c:	f9 81       	ldd	r31, Y+1	; 0x01
   3b53e:	80 81       	ld	r24, Z
   3b540:	08 2e       	mov	r0, r24
   3b542:	00 0c       	add	r0, r0
   3b544:	99 0b       	sbc	r25, r25
   3b546:	00 97       	sbiw	r24, 0x00	; 0
   3b548:	29 f4       	brne	.+10     	; 0x3b554 <fgetc+0x46>
   3b54a:	20 62       	ori	r18, 0x20	; 32
   3b54c:	2b 83       	std	Y+3, r18	; 0x03
   3b54e:	8f ef       	ldi	r24, 0xFF	; 255
   3b550:	9f ef       	ldi	r25, 0xFF	; 255
   3b552:	ee cf       	rjmp	.-36     	; 0x3b530 <fgetc+0x22>
   3b554:	31 96       	adiw	r30, 0x01	; 1
   3b556:	f9 83       	std	Y+1, r31	; 0x01
   3b558:	e8 83       	st	Y, r30
   3b55a:	2e 81       	ldd	r18, Y+6	; 0x06
   3b55c:	3f 81       	ldd	r19, Y+7	; 0x07
   3b55e:	2f 5f       	subi	r18, 0xFF	; 255
   3b560:	3f 4f       	sbci	r19, 0xFF	; 255
   3b562:	3f 83       	std	Y+7, r19	; 0x07
   3b564:	2e 83       	std	Y+6, r18	; 0x06
   3b566:	99 27       	eor	r25, r25
   3b568:	e3 cf       	rjmp	.-58     	; 0x3b530 <fgetc+0x22>
   3b56a:	ea 85       	ldd	r30, Y+10	; 0x0a
   3b56c:	fb 85       	ldd	r31, Y+11	; 0x0b
   3b56e:	19 95       	eicall
   3b570:	97 ff       	sbrs	r25, 7
   3b572:	f3 cf       	rjmp	.-26     	; 0x3b55a <fgetc+0x4c>
   3b574:	2b 81       	ldd	r18, Y+3	; 0x03
   3b576:	01 96       	adiw	r24, 0x01	; 1
   3b578:	21 f0       	breq	.+8      	; 0x3b582 <fgetc+0x74>
   3b57a:	80 e2       	ldi	r24, 0x20	; 32
   3b57c:	82 2b       	or	r24, r18
   3b57e:	8b 83       	std	Y+3, r24	; 0x03
   3b580:	e6 cf       	rjmp	.-52     	; 0x3b54e <fgetc+0x40>
   3b582:	80 e1       	ldi	r24, 0x10	; 16
   3b584:	fb cf       	rjmp	.-10     	; 0x3b57c <fgetc+0x6e>

0003b586 <fputc>:
   3b586:	0f 93       	push	r16
   3b588:	1f 93       	push	r17
   3b58a:	cf 93       	push	r28
   3b58c:	df 93       	push	r29
   3b58e:	18 2f       	mov	r17, r24
   3b590:	09 2f       	mov	r16, r25
   3b592:	eb 01       	movw	r28, r22
   3b594:	8b 81       	ldd	r24, Y+3	; 0x03
   3b596:	81 fd       	sbrc	r24, 1
   3b598:	09 c0       	rjmp	.+18     	; 0x3b5ac <fputc+0x26>
   3b59a:	1f ef       	ldi	r17, 0xFF	; 255
   3b59c:	0f ef       	ldi	r16, 0xFF	; 255
   3b59e:	81 2f       	mov	r24, r17
   3b5a0:	90 2f       	mov	r25, r16
   3b5a2:	df 91       	pop	r29
   3b5a4:	cf 91       	pop	r28
   3b5a6:	1f 91       	pop	r17
   3b5a8:	0f 91       	pop	r16
   3b5aa:	08 95       	ret
   3b5ac:	82 ff       	sbrs	r24, 2
   3b5ae:	14 c0       	rjmp	.+40     	; 0x3b5d8 <fputc+0x52>
   3b5b0:	2e 81       	ldd	r18, Y+6	; 0x06
   3b5b2:	3f 81       	ldd	r19, Y+7	; 0x07
   3b5b4:	8c 81       	ldd	r24, Y+4	; 0x04
   3b5b6:	9d 81       	ldd	r25, Y+5	; 0x05
   3b5b8:	28 17       	cp	r18, r24
   3b5ba:	39 07       	cpc	r19, r25
   3b5bc:	3c f4       	brge	.+14     	; 0x3b5cc <fputc+0x46>
   3b5be:	e8 81       	ld	r30, Y
   3b5c0:	f9 81       	ldd	r31, Y+1	; 0x01
   3b5c2:	cf 01       	movw	r24, r30
   3b5c4:	01 96       	adiw	r24, 0x01	; 1
   3b5c6:	99 83       	std	Y+1, r25	; 0x01
   3b5c8:	88 83       	st	Y, r24
   3b5ca:	10 83       	st	Z, r17
   3b5cc:	8e 81       	ldd	r24, Y+6	; 0x06
   3b5ce:	9f 81       	ldd	r25, Y+7	; 0x07
   3b5d0:	01 96       	adiw	r24, 0x01	; 1
   3b5d2:	9f 83       	std	Y+7, r25	; 0x07
   3b5d4:	8e 83       	std	Y+6, r24	; 0x06
   3b5d6:	e3 cf       	rjmp	.-58     	; 0x3b59e <fputc+0x18>
   3b5d8:	e8 85       	ldd	r30, Y+8	; 0x08
   3b5da:	f9 85       	ldd	r31, Y+9	; 0x09
   3b5dc:	81 2f       	mov	r24, r17
   3b5de:	19 95       	eicall
   3b5e0:	89 2b       	or	r24, r25
   3b5e2:	a1 f3       	breq	.-24     	; 0x3b5cc <fputc+0x46>
   3b5e4:	da cf       	rjmp	.-76     	; 0x3b59a <fputc+0x14>

0003b5e6 <fputs_P>:
   3b5e6:	ef 92       	push	r14
   3b5e8:	ff 92       	push	r15
   3b5ea:	0f 93       	push	r16
   3b5ec:	1f 93       	push	r17
   3b5ee:	cf 93       	push	r28
   3b5f0:	df 93       	push	r29
   3b5f2:	8c 01       	movw	r16, r24
   3b5f4:	7b 01       	movw	r14, r22
   3b5f6:	db 01       	movw	r26, r22
   3b5f8:	13 96       	adiw	r26, 0x03	; 3
   3b5fa:	8c 91       	ld	r24, X
   3b5fc:	d0 e0       	ldi	r29, 0x00	; 0
   3b5fe:	c0 e0       	ldi	r28, 0x00	; 0
   3b600:	81 fd       	sbrc	r24, 1
   3b602:	0f c0       	rjmp	.+30     	; 0x3b622 <fputs_P+0x3c>
   3b604:	cf ef       	ldi	r28, 0xFF	; 255
   3b606:	df ef       	ldi	r29, 0xFF	; 255
   3b608:	10 c0       	rjmp	.+32     	; 0x3b62a <fputs_P+0x44>
   3b60a:	d7 01       	movw	r26, r14
   3b60c:	18 96       	adiw	r26, 0x08	; 8
   3b60e:	ed 91       	ld	r30, X+
   3b610:	fc 91       	ld	r31, X
   3b612:	b7 01       	movw	r22, r14
   3b614:	19 95       	eicall
   3b616:	89 2b       	or	r24, r25
   3b618:	11 f0       	breq	.+4      	; 0x3b61e <fputs_P+0x38>
   3b61a:	cf ef       	ldi	r28, 0xFF	; 255
   3b61c:	df ef       	ldi	r29, 0xFF	; 255
   3b61e:	0f 5f       	subi	r16, 0xFF	; 255
   3b620:	1f 4f       	sbci	r17, 0xFF	; 255
   3b622:	f8 01       	movw	r30, r16
   3b624:	84 91       	lpm	r24, Z
   3b626:	81 11       	cpse	r24, r1
   3b628:	f0 cf       	rjmp	.-32     	; 0x3b60a <fputs_P+0x24>
   3b62a:	ce 01       	movw	r24, r28
   3b62c:	df 91       	pop	r29
   3b62e:	cf 91       	pop	r28
   3b630:	1f 91       	pop	r17
   3b632:	0f 91       	pop	r16
   3b634:	ff 90       	pop	r15
   3b636:	ef 90       	pop	r14
   3b638:	08 95       	ret

0003b63a <printf_P>:
   3b63a:	0f 93       	push	r16
   3b63c:	1f 93       	push	r17
   3b63e:	cf 93       	push	r28
   3b640:	df 93       	push	r29
   3b642:	cd b7       	in	r28, 0x3d	; 61
   3b644:	de b7       	in	r29, 0x3e	; 62
   3b646:	ae 01       	movw	r20, r28
   3b648:	48 5f       	subi	r20, 0xF8	; 248
   3b64a:	5f 4f       	sbci	r21, 0xFF	; 255
   3b64c:	da 01       	movw	r26, r20
   3b64e:	6d 91       	ld	r22, X+
   3b650:	7d 91       	ld	r23, X+
   3b652:	ad 01       	movw	r20, r26
   3b654:	0a e1       	ldi	r16, 0x1A	; 26
   3b656:	18 e1       	ldi	r17, 0x18	; 24
   3b658:	f8 01       	movw	r30, r16
   3b65a:	82 81       	ldd	r24, Z+2	; 0x02
   3b65c:	93 81       	ldd	r25, Z+3	; 0x03
   3b65e:	dc 01       	movw	r26, r24
   3b660:	13 96       	adiw	r26, 0x03	; 3
   3b662:	2c 91       	ld	r18, X
   3b664:	13 97       	sbiw	r26, 0x03	; 3
   3b666:	28 60       	ori	r18, 0x08	; 8
   3b668:	13 96       	adiw	r26, 0x03	; 3
   3b66a:	2c 93       	st	X, r18
   3b66c:	0e 94 70 56 	call	0xace0	; 0xace0 <vfprintf>
   3b670:	d8 01       	movw	r26, r16
   3b672:	12 96       	adiw	r26, 0x02	; 2
   3b674:	ed 91       	ld	r30, X+
   3b676:	fc 91       	ld	r31, X
   3b678:	23 81       	ldd	r18, Z+3	; 0x03
   3b67a:	27 7f       	andi	r18, 0xF7	; 247
   3b67c:	23 83       	std	Z+3, r18	; 0x03
   3b67e:	df 91       	pop	r29
   3b680:	cf 91       	pop	r28
   3b682:	1f 91       	pop	r17
   3b684:	0f 91       	pop	r16
   3b686:	08 95       	ret

0003b688 <puts_P>:
   3b688:	0f 93       	push	r16
   3b68a:	1f 93       	push	r17
   3b68c:	cf 93       	push	r28
   3b68e:	df 93       	push	r29
   3b690:	8c 01       	movw	r16, r24
   3b692:	e0 91 1c 18 	lds	r30, 0x181C	; 0x80181c <__iob+0x2>
   3b696:	f0 91 1d 18 	lds	r31, 0x181D	; 0x80181d <__iob+0x3>
   3b69a:	83 81       	ldd	r24, Z+3	; 0x03
   3b69c:	d0 e0       	ldi	r29, 0x00	; 0
   3b69e:	c0 e0       	ldi	r28, 0x00	; 0
   3b6a0:	81 fd       	sbrc	r24, 1
   3b6a2:	0a c0       	rjmp	.+20     	; 0x3b6b8 <puts_P+0x30>
   3b6a4:	cf ef       	ldi	r28, 0xFF	; 255
   3b6a6:	df ef       	ldi	r29, 0xFF	; 255
   3b6a8:	17 c0       	rjmp	.+46     	; 0x3b6d8 <puts_P+0x50>
   3b6aa:	19 95       	eicall
   3b6ac:	89 2b       	or	r24, r25
   3b6ae:	11 f0       	breq	.+4      	; 0x3b6b4 <puts_P+0x2c>
   3b6b0:	cf ef       	ldi	r28, 0xFF	; 255
   3b6b2:	df ef       	ldi	r29, 0xFF	; 255
   3b6b4:	0f 5f       	subi	r16, 0xFF	; 255
   3b6b6:	1f 4f       	sbci	r17, 0xFF	; 255
   3b6b8:	f8 01       	movw	r30, r16
   3b6ba:	84 91       	lpm	r24, Z
   3b6bc:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
   3b6c0:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
   3b6c4:	db 01       	movw	r26, r22
   3b6c6:	18 96       	adiw	r26, 0x08	; 8
   3b6c8:	ed 91       	ld	r30, X+
   3b6ca:	fc 91       	ld	r31, X
   3b6cc:	81 11       	cpse	r24, r1
   3b6ce:	ed cf       	rjmp	.-38     	; 0x3b6aa <puts_P+0x22>
   3b6d0:	8a e0       	ldi	r24, 0x0A	; 10
   3b6d2:	19 95       	eicall
   3b6d4:	89 2b       	or	r24, r25
   3b6d6:	31 f7       	brne	.-52     	; 0x3b6a4 <puts_P+0x1c>
   3b6d8:	ce 01       	movw	r24, r28
   3b6da:	df 91       	pop	r29
   3b6dc:	cf 91       	pop	r28
   3b6de:	1f 91       	pop	r17
   3b6e0:	0f 91       	pop	r16
   3b6e2:	08 95       	ret

0003b6e4 <sprintf_P>:
   3b6e4:	0f 93       	push	r16
   3b6e6:	1f 93       	push	r17
   3b6e8:	cf 93       	push	r28
   3b6ea:	df 93       	push	r29
   3b6ec:	cd b7       	in	r28, 0x3d	; 61
   3b6ee:	de b7       	in	r29, 0x3e	; 62
   3b6f0:	2e 97       	sbiw	r28, 0x0e	; 14
   3b6f2:	0f b6       	in	r0, 0x3f	; 63
   3b6f4:	f8 94       	cli
   3b6f6:	de bf       	out	0x3e, r29	; 62
   3b6f8:	0f be       	out	0x3f, r0	; 63
   3b6fa:	cd bf       	out	0x3d, r28	; 61
   3b6fc:	0e 89       	ldd	r16, Y+22	; 0x16
   3b6fe:	1f 89       	ldd	r17, Y+23	; 0x17
   3b700:	8e e0       	ldi	r24, 0x0E	; 14
   3b702:	8c 83       	std	Y+4, r24	; 0x04
   3b704:	1a 83       	std	Y+2, r17	; 0x02
   3b706:	09 83       	std	Y+1, r16	; 0x01
   3b708:	8f ef       	ldi	r24, 0xFF	; 255
   3b70a:	9f e7       	ldi	r25, 0x7F	; 127
   3b70c:	9e 83       	std	Y+6, r25	; 0x06
   3b70e:	8d 83       	std	Y+5, r24	; 0x05
   3b710:	ae 01       	movw	r20, r28
   3b712:	46 5e       	subi	r20, 0xE6	; 230
   3b714:	5f 4f       	sbci	r21, 0xFF	; 255
   3b716:	68 8d       	ldd	r22, Y+24	; 0x18
   3b718:	79 8d       	ldd	r23, Y+25	; 0x19
   3b71a:	ce 01       	movw	r24, r28
   3b71c:	01 96       	adiw	r24, 0x01	; 1
   3b71e:	0e 94 70 56 	call	0xace0	; 0xace0 <vfprintf>
   3b722:	2f 81       	ldd	r18, Y+7	; 0x07
   3b724:	38 85       	ldd	r19, Y+8	; 0x08
   3b726:	02 0f       	add	r16, r18
   3b728:	13 1f       	adc	r17, r19
   3b72a:	f8 01       	movw	r30, r16
   3b72c:	10 82       	st	Z, r1
   3b72e:	2e 96       	adiw	r28, 0x0e	; 14
   3b730:	0f b6       	in	r0, 0x3f	; 63
   3b732:	f8 94       	cli
   3b734:	de bf       	out	0x3e, r29	; 62
   3b736:	0f be       	out	0x3f, r0	; 63
   3b738:	cd bf       	out	0x3d, r28	; 61
   3b73a:	df 91       	pop	r29
   3b73c:	cf 91       	pop	r28
   3b73e:	1f 91       	pop	r17
   3b740:	0f 91       	pop	r16
   3b742:	08 95       	ret

0003b744 <vfprintf_P>:
   3b744:	cf 93       	push	r28
   3b746:	df 93       	push	r29
   3b748:	ec 01       	movw	r28, r24
   3b74a:	8b 81       	ldd	r24, Y+3	; 0x03
   3b74c:	88 60       	ori	r24, 0x08	; 8
   3b74e:	8b 83       	std	Y+3, r24	; 0x03
   3b750:	ce 01       	movw	r24, r28
   3b752:	0e 94 70 56 	call	0xace0	; 0xace0 <vfprintf>
   3b756:	2b 81       	ldd	r18, Y+3	; 0x03
   3b758:	27 7f       	andi	r18, 0xF7	; 247
   3b75a:	2b 83       	std	Y+3, r18	; 0x03
   3b75c:	df 91       	pop	r29
   3b75e:	cf 91       	pop	r28
   3b760:	08 95       	ret

0003b762 <vsnprintf_P>:
   3b762:	0f 93       	push	r16
   3b764:	1f 93       	push	r17
   3b766:	cf 93       	push	r28
   3b768:	df 93       	push	r29
   3b76a:	cd b7       	in	r28, 0x3d	; 61
   3b76c:	de b7       	in	r29, 0x3e	; 62
   3b76e:	2e 97       	sbiw	r28, 0x0e	; 14
   3b770:	0f b6       	in	r0, 0x3f	; 63
   3b772:	f8 94       	cli
   3b774:	de bf       	out	0x3e, r29	; 62
   3b776:	0f be       	out	0x3f, r0	; 63
   3b778:	cd bf       	out	0x3d, r28	; 61
   3b77a:	8c 01       	movw	r16, r24
   3b77c:	fa 01       	movw	r30, r20
   3b77e:	8e e0       	ldi	r24, 0x0E	; 14
   3b780:	8c 83       	std	Y+4, r24	; 0x04
   3b782:	1a 83       	std	Y+2, r17	; 0x02
   3b784:	09 83       	std	Y+1, r16	; 0x01
   3b786:	77 ff       	sbrs	r23, 7
   3b788:	02 c0       	rjmp	.+4      	; 0x3b78e <vsnprintf_P+0x2c>
   3b78a:	60 e0       	ldi	r22, 0x00	; 0
   3b78c:	70 e8       	ldi	r23, 0x80	; 128
   3b78e:	61 50       	subi	r22, 0x01	; 1
   3b790:	71 09       	sbc	r23, r1
   3b792:	7e 83       	std	Y+6, r23	; 0x06
   3b794:	6d 83       	std	Y+5, r22	; 0x05
   3b796:	a9 01       	movw	r20, r18
   3b798:	bf 01       	movw	r22, r30
   3b79a:	ce 01       	movw	r24, r28
   3b79c:	01 96       	adiw	r24, 0x01	; 1
   3b79e:	0e 94 70 56 	call	0xace0	; 0xace0 <vfprintf>
   3b7a2:	4d 81       	ldd	r20, Y+5	; 0x05
   3b7a4:	5e 81       	ldd	r21, Y+6	; 0x06
   3b7a6:	57 fd       	sbrc	r21, 7
   3b7a8:	0a c0       	rjmp	.+20     	; 0x3b7be <vsnprintf_P+0x5c>
   3b7aa:	2f 81       	ldd	r18, Y+7	; 0x07
   3b7ac:	38 85       	ldd	r19, Y+8	; 0x08
   3b7ae:	42 17       	cp	r20, r18
   3b7b0:	53 07       	cpc	r21, r19
   3b7b2:	0c f4       	brge	.+2      	; 0x3b7b6 <vsnprintf_P+0x54>
   3b7b4:	9a 01       	movw	r18, r20
   3b7b6:	02 0f       	add	r16, r18
   3b7b8:	13 1f       	adc	r17, r19
   3b7ba:	f8 01       	movw	r30, r16
   3b7bc:	10 82       	st	Z, r1
   3b7be:	2e 96       	adiw	r28, 0x0e	; 14
   3b7c0:	0f b6       	in	r0, 0x3f	; 63
   3b7c2:	f8 94       	cli
   3b7c4:	de bf       	out	0x3e, r29	; 62
   3b7c6:	0f be       	out	0x3f, r0	; 63
   3b7c8:	cd bf       	out	0x3d, r28	; 61
   3b7ca:	df 91       	pop	r29
   3b7cc:	cf 91       	pop	r28
   3b7ce:	1f 91       	pop	r17
   3b7d0:	0f 91       	pop	r16
   3b7d2:	08 95       	ret

0003b7d4 <__ultoa_invert>:
   3b7d4:	fa 01       	movw	r30, r20
   3b7d6:	aa 27       	eor	r26, r26
   3b7d8:	28 30       	cpi	r18, 0x08	; 8
   3b7da:	51 f1       	breq	.+84     	; 0x3b830 <__ultoa_invert+0x5c>
   3b7dc:	20 31       	cpi	r18, 0x10	; 16
   3b7de:	81 f1       	breq	.+96     	; 0x3b840 <__ultoa_invert+0x6c>
   3b7e0:	e8 94       	clt
   3b7e2:	6f 93       	push	r22
   3b7e4:	6e 7f       	andi	r22, 0xFE	; 254
   3b7e6:	6e 5f       	subi	r22, 0xFE	; 254
   3b7e8:	7f 4f       	sbci	r23, 0xFF	; 255
   3b7ea:	8f 4f       	sbci	r24, 0xFF	; 255
   3b7ec:	9f 4f       	sbci	r25, 0xFF	; 255
   3b7ee:	af 4f       	sbci	r26, 0xFF	; 255
   3b7f0:	b1 e0       	ldi	r27, 0x01	; 1
   3b7f2:	3e d0       	rcall	.+124    	; 0x3b870 <__ultoa_invert+0x9c>
   3b7f4:	b4 e0       	ldi	r27, 0x04	; 4
   3b7f6:	3c d0       	rcall	.+120    	; 0x3b870 <__ultoa_invert+0x9c>
   3b7f8:	67 0f       	add	r22, r23
   3b7fa:	78 1f       	adc	r23, r24
   3b7fc:	89 1f       	adc	r24, r25
   3b7fe:	9a 1f       	adc	r25, r26
   3b800:	a1 1d       	adc	r26, r1
   3b802:	68 0f       	add	r22, r24
   3b804:	79 1f       	adc	r23, r25
   3b806:	8a 1f       	adc	r24, r26
   3b808:	91 1d       	adc	r25, r1
   3b80a:	a1 1d       	adc	r26, r1
   3b80c:	6a 0f       	add	r22, r26
   3b80e:	71 1d       	adc	r23, r1
   3b810:	81 1d       	adc	r24, r1
   3b812:	91 1d       	adc	r25, r1
   3b814:	a1 1d       	adc	r26, r1
   3b816:	20 d0       	rcall	.+64     	; 0x3b858 <__ultoa_invert+0x84>
   3b818:	09 f4       	brne	.+2      	; 0x3b81c <__ultoa_invert+0x48>
   3b81a:	68 94       	set
   3b81c:	3f 91       	pop	r19
   3b81e:	2a e0       	ldi	r18, 0x0A	; 10
   3b820:	26 9f       	mul	r18, r22
   3b822:	11 24       	eor	r1, r1
   3b824:	30 19       	sub	r19, r0
   3b826:	30 5d       	subi	r19, 0xD0	; 208
   3b828:	31 93       	st	Z+, r19
   3b82a:	de f6       	brtc	.-74     	; 0x3b7e2 <__ultoa_invert+0xe>
   3b82c:	cf 01       	movw	r24, r30
   3b82e:	08 95       	ret
   3b830:	46 2f       	mov	r20, r22
   3b832:	47 70       	andi	r20, 0x07	; 7
   3b834:	40 5d       	subi	r20, 0xD0	; 208
   3b836:	41 93       	st	Z+, r20
   3b838:	b3 e0       	ldi	r27, 0x03	; 3
   3b83a:	0f d0       	rcall	.+30     	; 0x3b85a <__ultoa_invert+0x86>
   3b83c:	c9 f7       	brne	.-14     	; 0x3b830 <__ultoa_invert+0x5c>
   3b83e:	f6 cf       	rjmp	.-20     	; 0x3b82c <__ultoa_invert+0x58>
   3b840:	46 2f       	mov	r20, r22
   3b842:	4f 70       	andi	r20, 0x0F	; 15
   3b844:	40 5d       	subi	r20, 0xD0	; 208
   3b846:	4a 33       	cpi	r20, 0x3A	; 58
   3b848:	18 f0       	brcs	.+6      	; 0x3b850 <__ultoa_invert+0x7c>
   3b84a:	49 5d       	subi	r20, 0xD9	; 217
   3b84c:	31 fd       	sbrc	r19, 1
   3b84e:	40 52       	subi	r20, 0x20	; 32
   3b850:	41 93       	st	Z+, r20
   3b852:	02 d0       	rcall	.+4      	; 0x3b858 <__ultoa_invert+0x84>
   3b854:	a9 f7       	brne	.-22     	; 0x3b840 <__ultoa_invert+0x6c>
   3b856:	ea cf       	rjmp	.-44     	; 0x3b82c <__ultoa_invert+0x58>
   3b858:	b4 e0       	ldi	r27, 0x04	; 4
   3b85a:	a6 95       	lsr	r26
   3b85c:	97 95       	ror	r25
   3b85e:	87 95       	ror	r24
   3b860:	77 95       	ror	r23
   3b862:	67 95       	ror	r22
   3b864:	ba 95       	dec	r27
   3b866:	c9 f7       	brne	.-14     	; 0x3b85a <__ultoa_invert+0x86>
   3b868:	00 97       	sbiw	r24, 0x00	; 0
   3b86a:	61 05       	cpc	r22, r1
   3b86c:	71 05       	cpc	r23, r1
   3b86e:	08 95       	ret
   3b870:	9b 01       	movw	r18, r22
   3b872:	ac 01       	movw	r20, r24
   3b874:	0a 2e       	mov	r0, r26
   3b876:	06 94       	lsr	r0
   3b878:	57 95       	ror	r21
   3b87a:	47 95       	ror	r20
   3b87c:	37 95       	ror	r19
   3b87e:	27 95       	ror	r18
   3b880:	ba 95       	dec	r27
   3b882:	c9 f7       	brne	.-14     	; 0x3b876 <__ultoa_invert+0xa2>
   3b884:	62 0f       	add	r22, r18
   3b886:	73 1f       	adc	r23, r19
   3b888:	84 1f       	adc	r24, r20
   3b88a:	95 1f       	adc	r25, r21
   3b88c:	a0 1d       	adc	r26, r0
   3b88e:	08 95       	ret

0003b890 <__ctype_isfalse>:
   3b890:	99 27       	eor	r25, r25
   3b892:	88 27       	eor	r24, r24

0003b894 <__ctype_istrue>:
   3b894:	08 95       	ret

0003b896 <eeprom_read_block>:
   3b896:	dc 01       	movw	r26, r24
   3b898:	cb 01       	movw	r24, r22

0003b89a <eeprom_read_blraw>:
   3b89a:	fc 01       	movw	r30, r24
   3b89c:	f9 99       	sbic	0x1f, 1	; 31
   3b89e:	fe cf       	rjmp	.-4      	; 0x3b89c <eeprom_read_blraw+0x2>
   3b8a0:	06 c0       	rjmp	.+12     	; 0x3b8ae <eeprom_read_blraw+0x14>
   3b8a2:	f2 bd       	out	0x22, r31	; 34
   3b8a4:	e1 bd       	out	0x21, r30	; 33
   3b8a6:	f8 9a       	sbi	0x1f, 0	; 31
   3b8a8:	31 96       	adiw	r30, 0x01	; 1
   3b8aa:	00 b4       	in	r0, 0x20	; 32
   3b8ac:	0d 92       	st	X+, r0
   3b8ae:	41 50       	subi	r20, 0x01	; 1
   3b8b0:	50 40       	sbci	r21, 0x00	; 0
   3b8b2:	b8 f7       	brcc	.-18     	; 0x3b8a2 <eeprom_read_blraw+0x8>
   3b8b4:	08 95       	ret

0003b8b6 <eeprom_read_byte>:
   3b8b6:	f9 99       	sbic	0x1f, 1	; 31
   3b8b8:	fe cf       	rjmp	.-4      	; 0x3b8b6 <eeprom_read_byte>
   3b8ba:	92 bd       	out	0x22, r25	; 34
   3b8bc:	81 bd       	out	0x21, r24	; 33
   3b8be:	f8 9a       	sbi	0x1f, 0	; 31
   3b8c0:	99 27       	eor	r25, r25
   3b8c2:	80 b5       	in	r24, 0x20	; 32
   3b8c4:	08 95       	ret

0003b8c6 <eeprom_read_dword>:
   3b8c6:	a6 e1       	ldi	r26, 0x16	; 22
   3b8c8:	b0 e0       	ldi	r27, 0x00	; 0
   3b8ca:	44 e0       	ldi	r20, 0x04	; 4
   3b8cc:	50 e0       	ldi	r21, 0x00	; 0
   3b8ce:	0d 94 4d dc 	jmp	0x3b89a	; 0x3b89a <eeprom_read_blraw>

0003b8d2 <eeprom_read_word>:
   3b8d2:	a8 e1       	ldi	r26, 0x18	; 24
   3b8d4:	b0 e0       	ldi	r27, 0x00	; 0
   3b8d6:	42 e0       	ldi	r20, 0x02	; 2
   3b8d8:	50 e0       	ldi	r21, 0x00	; 0
   3b8da:	0d 94 4d dc 	jmp	0x3b89a	; 0x3b89a <eeprom_read_blraw>

0003b8de <eeprom_update_block>:
   3b8de:	dc 01       	movw	r26, r24
   3b8e0:	a4 0f       	add	r26, r20
   3b8e2:	b5 1f       	adc	r27, r21
   3b8e4:	41 50       	subi	r20, 0x01	; 1
   3b8e6:	50 40       	sbci	r21, 0x00	; 0
   3b8e8:	48 f0       	brcs	.+18     	; 0x3b8fc <eeprom_update_block+0x1e>
   3b8ea:	cb 01       	movw	r24, r22
   3b8ec:	84 0f       	add	r24, r20
   3b8ee:	95 1f       	adc	r25, r21
   3b8f0:	2e 91       	ld	r18, -X
   3b8f2:	0f 94 80 dc 	call	0x3b900	; 0x3b900 <eeprom_update_r18>
   3b8f6:	41 50       	subi	r20, 0x01	; 1
   3b8f8:	50 40       	sbci	r21, 0x00	; 0
   3b8fa:	d0 f7       	brcc	.-12     	; 0x3b8f0 <eeprom_update_block+0x12>
   3b8fc:	08 95       	ret

0003b8fe <eeprom_update_byte>:
   3b8fe:	26 2f       	mov	r18, r22

0003b900 <eeprom_update_r18>:
   3b900:	f9 99       	sbic	0x1f, 1	; 31
   3b902:	fe cf       	rjmp	.-4      	; 0x3b900 <eeprom_update_r18>
   3b904:	92 bd       	out	0x22, r25	; 34
   3b906:	81 bd       	out	0x21, r24	; 33
   3b908:	f8 9a       	sbi	0x1f, 0	; 31
   3b90a:	01 97       	sbiw	r24, 0x01	; 1
   3b90c:	00 b4       	in	r0, 0x20	; 32
   3b90e:	02 16       	cp	r0, r18
   3b910:	39 f0       	breq	.+14     	; 0x3b920 <eeprom_update_r18+0x20>
   3b912:	1f ba       	out	0x1f, r1	; 31
   3b914:	20 bd       	out	0x20, r18	; 32
   3b916:	0f b6       	in	r0, 0x3f	; 63
   3b918:	f8 94       	cli
   3b91a:	fa 9a       	sbi	0x1f, 2	; 31
   3b91c:	f9 9a       	sbi	0x1f, 1	; 31
   3b91e:	0f be       	out	0x3f, r0	; 63
   3b920:	08 95       	ret

0003b922 <eeprom_update_dword>:
   3b922:	03 96       	adiw	r24, 0x03	; 3
   3b924:	27 2f       	mov	r18, r23
   3b926:	0f 94 80 dc 	call	0x3b900	; 0x3b900 <eeprom_update_r18>
   3b92a:	0f 94 7f dc 	call	0x3b8fe	; 0x3b8fe <eeprom_update_byte>
   3b92e:	25 2f       	mov	r18, r21
   3b930:	0f 94 80 dc 	call	0x3b900	; 0x3b900 <eeprom_update_r18>
   3b934:	24 2f       	mov	r18, r20
   3b936:	0d 94 80 dc 	jmp	0x3b900	; 0x3b900 <eeprom_update_r18>

0003b93a <eeprom_update_word>:
   3b93a:	01 96       	adiw	r24, 0x01	; 1
   3b93c:	27 2f       	mov	r18, r23
   3b93e:	0f 94 80 dc 	call	0x3b900	; 0x3b900 <eeprom_update_r18>
   3b942:	0d 94 7f dc 	jmp	0x3b8fe	; 0x3b8fe <eeprom_update_byte>

0003b946 <eeprom_write_byte>:
   3b946:	26 2f       	mov	r18, r22

0003b948 <eeprom_write_r18>:
   3b948:	f9 99       	sbic	0x1f, 1	; 31
   3b94a:	fe cf       	rjmp	.-4      	; 0x3b948 <eeprom_write_r18>
   3b94c:	1f ba       	out	0x1f, r1	; 31
   3b94e:	92 bd       	out	0x22, r25	; 34
   3b950:	81 bd       	out	0x21, r24	; 33
   3b952:	20 bd       	out	0x20, r18	; 32
   3b954:	0f b6       	in	r0, 0x3f	; 63
   3b956:	f8 94       	cli
   3b958:	fa 9a       	sbi	0x1f, 2	; 31
   3b95a:	f9 9a       	sbi	0x1f, 1	; 31
   3b95c:	0f be       	out	0x3f, r0	; 63
   3b95e:	01 96       	adiw	r24, 0x01	; 1
   3b960:	08 95       	ret

0003b962 <eeprom_write_dword>:
   3b962:	24 2f       	mov	r18, r20
   3b964:	0f 94 a4 dc 	call	0x3b948	; 0x3b948 <eeprom_write_r18>
   3b968:	25 2f       	mov	r18, r21
   3b96a:	0f 94 a4 dc 	call	0x3b948	; 0x3b948 <eeprom_write_r18>
   3b96e:	0d 94 b9 dc 	jmp	0x3b972	; 0x3b972 <eeprom_write_word>

0003b972 <eeprom_write_word>:
   3b972:	0f 94 a3 dc 	call	0x3b946	; 0x3b946 <eeprom_write_byte>
   3b976:	27 2f       	mov	r18, r23
   3b978:	0d 94 a4 dc 	jmp	0x3b948	; 0x3b948 <eeprom_write_r18>

0003b97c <__mulsi3>:
   3b97c:	db 01       	movw	r26, r22
   3b97e:	8f 93       	push	r24
   3b980:	9f 93       	push	r25
   3b982:	0f 94 f0 dc 	call	0x3b9e0	; 0x3b9e0 <__muluhisi3>
   3b986:	bf 91       	pop	r27
   3b988:	af 91       	pop	r26
   3b98a:	a2 9f       	mul	r26, r18
   3b98c:	80 0d       	add	r24, r0
   3b98e:	91 1d       	adc	r25, r1
   3b990:	a3 9f       	mul	r26, r19
   3b992:	90 0d       	add	r25, r0
   3b994:	b2 9f       	mul	r27, r18
   3b996:	90 0d       	add	r25, r0
   3b998:	11 24       	eor	r1, r1
   3b99a:	08 95       	ret

0003b99c <__udivmodsi4>:
   3b99c:	a1 e2       	ldi	r26, 0x21	; 33
   3b99e:	1a 2e       	mov	r1, r26
   3b9a0:	aa 1b       	sub	r26, r26
   3b9a2:	bb 1b       	sub	r27, r27
   3b9a4:	fd 01       	movw	r30, r26
   3b9a6:	0d c0       	rjmp	.+26     	; 0x3b9c2 <__udivmodsi4_ep>

0003b9a8 <__udivmodsi4_loop>:
   3b9a8:	aa 1f       	adc	r26, r26
   3b9aa:	bb 1f       	adc	r27, r27
   3b9ac:	ee 1f       	adc	r30, r30
   3b9ae:	ff 1f       	adc	r31, r31
   3b9b0:	a2 17       	cp	r26, r18
   3b9b2:	b3 07       	cpc	r27, r19
   3b9b4:	e4 07       	cpc	r30, r20
   3b9b6:	f5 07       	cpc	r31, r21
   3b9b8:	20 f0       	brcs	.+8      	; 0x3b9c2 <__udivmodsi4_ep>
   3b9ba:	a2 1b       	sub	r26, r18
   3b9bc:	b3 0b       	sbc	r27, r19
   3b9be:	e4 0b       	sbc	r30, r20
   3b9c0:	f5 0b       	sbc	r31, r21

0003b9c2 <__udivmodsi4_ep>:
   3b9c2:	66 1f       	adc	r22, r22
   3b9c4:	77 1f       	adc	r23, r23
   3b9c6:	88 1f       	adc	r24, r24
   3b9c8:	99 1f       	adc	r25, r25
   3b9ca:	1a 94       	dec	r1
   3b9cc:	69 f7       	brne	.-38     	; 0x3b9a8 <__udivmodsi4_loop>
   3b9ce:	60 95       	com	r22
   3b9d0:	70 95       	com	r23
   3b9d2:	80 95       	com	r24
   3b9d4:	90 95       	com	r25
   3b9d6:	9b 01       	movw	r18, r22
   3b9d8:	ac 01       	movw	r20, r24
   3b9da:	bd 01       	movw	r22, r26
   3b9dc:	cf 01       	movw	r24, r30
   3b9de:	08 95       	ret

0003b9e0 <__muluhisi3>:
   3b9e0:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   3b9e4:	a5 9f       	mul	r26, r21
   3b9e6:	90 0d       	add	r25, r0
   3b9e8:	b4 9f       	mul	r27, r20
   3b9ea:	90 0d       	add	r25, r0
   3b9ec:	a4 9f       	mul	r26, r20
   3b9ee:	80 0d       	add	r24, r0
   3b9f0:	91 1d       	adc	r25, r1
   3b9f2:	11 24       	eor	r1, r1
   3b9f4:	08 95       	ret

0003b9f6 <__umulhisi3>:
   3b9f6:	a2 9f       	mul	r26, r18
   3b9f8:	b0 01       	movw	r22, r0
   3b9fa:	b3 9f       	mul	r27, r19
   3b9fc:	c0 01       	movw	r24, r0
   3b9fe:	a3 9f       	mul	r26, r19
   3ba00:	70 0d       	add	r23, r0
   3ba02:	81 1d       	adc	r24, r1
   3ba04:	11 24       	eor	r1, r1
   3ba06:	91 1d       	adc	r25, r1
   3ba08:	b2 9f       	mul	r27, r18
   3ba0a:	70 0d       	add	r23, r0
   3ba0c:	81 1d       	adc	r24, r1
   3ba0e:	11 24       	eor	r1, r1
   3ba10:	91 1d       	adc	r25, r1
   3ba12:	08 95       	ret

0003ba14 <__udivmodqi4>:
   3ba14:	99 1b       	sub	r25, r25
   3ba16:	79 e0       	ldi	r23, 0x09	; 9
   3ba18:	04 c0       	rjmp	.+8      	; 0x3ba22 <__udivmodqi4_ep>

0003ba1a <__udivmodqi4_loop>:
   3ba1a:	99 1f       	adc	r25, r25
   3ba1c:	96 17       	cp	r25, r22
   3ba1e:	08 f0       	brcs	.+2      	; 0x3ba22 <__udivmodqi4_ep>
   3ba20:	96 1b       	sub	r25, r22

0003ba22 <__udivmodqi4_ep>:
   3ba22:	88 1f       	adc	r24, r24
   3ba24:	7a 95       	dec	r23
   3ba26:	c9 f7       	brne	.-14     	; 0x3ba1a <__udivmodqi4_loop>
   3ba28:	80 95       	com	r24
   3ba2a:	08 95       	ret

0003ba2c <__divmodqi4>:
   3ba2c:	87 fb       	bst	r24, 7
   3ba2e:	08 2e       	mov	r0, r24
   3ba30:	06 26       	eor	r0, r22
   3ba32:	87 fd       	sbrc	r24, 7
   3ba34:	81 95       	neg	r24
   3ba36:	67 fd       	sbrc	r22, 7
   3ba38:	61 95       	neg	r22
   3ba3a:	0f 94 0a dd 	call	0x3ba14	; 0x3ba14 <__udivmodqi4>
   3ba3e:	0e f4       	brtc	.+2      	; 0x3ba42 <__divmodqi4_1>
   3ba40:	91 95       	neg	r25

0003ba42 <__divmodqi4_1>:
   3ba42:	07 fc       	sbrc	r0, 7
   3ba44:	81 95       	neg	r24

0003ba46 <__divmodqi4_exit>:
   3ba46:	08 95       	ret

0003ba48 <__udivmodhi4>:
   3ba48:	aa 1b       	sub	r26, r26
   3ba4a:	bb 1b       	sub	r27, r27
   3ba4c:	51 e1       	ldi	r21, 0x11	; 17
   3ba4e:	07 c0       	rjmp	.+14     	; 0x3ba5e <__udivmodhi4_ep>

0003ba50 <__udivmodhi4_loop>:
   3ba50:	aa 1f       	adc	r26, r26
   3ba52:	bb 1f       	adc	r27, r27
   3ba54:	a6 17       	cp	r26, r22
   3ba56:	b7 07       	cpc	r27, r23
   3ba58:	10 f0       	brcs	.+4      	; 0x3ba5e <__udivmodhi4_ep>
   3ba5a:	a6 1b       	sub	r26, r22
   3ba5c:	b7 0b       	sbc	r27, r23

0003ba5e <__udivmodhi4_ep>:
   3ba5e:	88 1f       	adc	r24, r24
   3ba60:	99 1f       	adc	r25, r25
   3ba62:	5a 95       	dec	r21
   3ba64:	a9 f7       	brne	.-22     	; 0x3ba50 <__udivmodhi4_loop>
   3ba66:	80 95       	com	r24
   3ba68:	90 95       	com	r25
   3ba6a:	bc 01       	movw	r22, r24
   3ba6c:	cd 01       	movw	r24, r26
   3ba6e:	08 95       	ret

0003ba70 <__divmodhi4>:
   3ba70:	97 fb       	bst	r25, 7
   3ba72:	07 2e       	mov	r0, r23
   3ba74:	16 f4       	brtc	.+4      	; 0x3ba7a <__divmodhi4+0xa>
   3ba76:	00 94       	com	r0
   3ba78:	07 d0       	rcall	.+14     	; 0x3ba88 <__divmodhi4_neg1>
   3ba7a:	77 fd       	sbrc	r23, 7
   3ba7c:	09 d0       	rcall	.+18     	; 0x3ba90 <__divmodhi4_neg2>
   3ba7e:	0f 94 24 dd 	call	0x3ba48	; 0x3ba48 <__udivmodhi4>
   3ba82:	07 fc       	sbrc	r0, 7
   3ba84:	05 d0       	rcall	.+10     	; 0x3ba90 <__divmodhi4_neg2>
   3ba86:	3e f4       	brtc	.+14     	; 0x3ba96 <__divmodhi4_exit>

0003ba88 <__divmodhi4_neg1>:
   3ba88:	90 95       	com	r25
   3ba8a:	81 95       	neg	r24
   3ba8c:	9f 4f       	sbci	r25, 0xFF	; 255
   3ba8e:	08 95       	ret

0003ba90 <__divmodhi4_neg2>:
   3ba90:	70 95       	com	r23
   3ba92:	61 95       	neg	r22
   3ba94:	7f 4f       	sbci	r23, 0xFF	; 255

0003ba96 <__divmodhi4_exit>:
   3ba96:	08 95       	ret

0003ba98 <__divmodsi4>:
   3ba98:	05 2e       	mov	r0, r21
   3ba9a:	97 fb       	bst	r25, 7
   3ba9c:	1e f4       	brtc	.+6      	; 0x3baa4 <__divmodsi4+0xc>
   3ba9e:	00 94       	com	r0
   3baa0:	0f 94 63 dd 	call	0x3bac6	; 0x3bac6 <__negsi2>
   3baa4:	57 fd       	sbrc	r21, 7
   3baa6:	07 d0       	rcall	.+14     	; 0x3bab6 <__divmodsi4_neg2>
   3baa8:	0f 94 ce dc 	call	0x3b99c	; 0x3b99c <__udivmodsi4>
   3baac:	07 fc       	sbrc	r0, 7
   3baae:	03 d0       	rcall	.+6      	; 0x3bab6 <__divmodsi4_neg2>
   3bab0:	4e f4       	brtc	.+18     	; 0x3bac4 <__divmodsi4_exit>
   3bab2:	0d 94 63 dd 	jmp	0x3bac6	; 0x3bac6 <__negsi2>

0003bab6 <__divmodsi4_neg2>:
   3bab6:	50 95       	com	r21
   3bab8:	40 95       	com	r20
   3baba:	30 95       	com	r19
   3babc:	21 95       	neg	r18
   3babe:	3f 4f       	sbci	r19, 0xFF	; 255
   3bac0:	4f 4f       	sbci	r20, 0xFF	; 255
   3bac2:	5f 4f       	sbci	r21, 0xFF	; 255

0003bac4 <__divmodsi4_exit>:
   3bac4:	08 95       	ret

0003bac6 <__negsi2>:
   3bac6:	90 95       	com	r25
   3bac8:	80 95       	com	r24
   3baca:	70 95       	com	r23
   3bacc:	61 95       	neg	r22
   3bace:	7f 4f       	sbci	r23, 0xFF	; 255
   3bad0:	8f 4f       	sbci	r24, 0xFF	; 255
   3bad2:	9f 4f       	sbci	r25, 0xFF	; 255
   3bad4:	08 95       	ret

0003bad6 <__tablejump2__>:
   3bad6:	ee 0f       	add	r30, r30
   3bad8:	ff 1f       	adc	r31, r31
   3bada:	88 1f       	adc	r24, r24
   3badc:	8b bf       	out	0x3b, r24	; 59
   3bade:	07 90       	elpm	r0, Z+
   3bae0:	f6 91       	elpm	r31, Z
   3bae2:	e0 2d       	mov	r30, r0
   3bae4:	19 94       	eijmp

0003bae6 <__mulhisi3>:
   3bae6:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>
   3baea:	33 23       	and	r19, r19
   3baec:	12 f4       	brpl	.+4      	; 0x3baf2 <__mulhisi3+0xc>
   3baee:	8a 1b       	sub	r24, r26
   3baf0:	9b 0b       	sbc	r25, r27
   3baf2:	0d 94 7d dd 	jmp	0x3bafa	; 0x3bafa <__usmulhisi3_tail>

0003baf6 <__usmulhisi3>:
   3baf6:	0f 94 fb dc 	call	0x3b9f6	; 0x3b9f6 <__umulhisi3>

0003bafa <__usmulhisi3_tail>:
   3bafa:	b7 ff       	sbrs	r27, 7
   3bafc:	08 95       	ret
   3bafe:	82 1b       	sub	r24, r18
   3bb00:	93 0b       	sbc	r25, r19
   3bb02:	08 95       	ret

0003bb04 <__subsf3>:
   3bb04:	50 58       	subi	r21, 0x80	; 128

0003bb06 <__addsf3>:
   3bb06:	bb 27       	eor	r27, r27
   3bb08:	aa 27       	eor	r26, r26
   3bb0a:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3bb0e:	0d 94 ac d7 	jmp	0x3af58	; 0x3af58 <__fp_round>
   3bb12:	0f 94 9e d7 	call	0x3af3c	; 0x3af3c <__fp_pscA>
   3bb16:	38 f0       	brcs	.+14     	; 0x3bb26 <__addsf3+0x20>
   3bb18:	0f 94 a5 d7 	call	0x3af4a	; 0x3af4a <__fp_pscB>
   3bb1c:	20 f0       	brcs	.+8      	; 0x3bb26 <__addsf3+0x20>
   3bb1e:	39 f4       	brne	.+14     	; 0x3bb2e <__addsf3+0x28>
   3bb20:	9f 3f       	cpi	r25, 0xFF	; 255
   3bb22:	19 f4       	brne	.+6      	; 0x3bb2a <__addsf3+0x24>
   3bb24:	26 f4       	brtc	.+8      	; 0x3bb2e <__addsf3+0x28>
   3bb26:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3bb2a:	0e f4       	brtc	.+2      	; 0x3bb2e <__addsf3+0x28>
   3bb2c:	e0 95       	com	r30
   3bb2e:	e7 fb       	bst	r30, 7
   3bb30:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>

0003bb34 <__addsf3x>:
   3bb34:	e9 2f       	mov	r30, r25
   3bb36:	0f 94 bd d7 	call	0x3af7a	; 0x3af7a <__fp_split3>
   3bb3a:	58 f3       	brcs	.-42     	; 0x3bb12 <__addsf3+0xc>
   3bb3c:	ba 17       	cp	r27, r26
   3bb3e:	62 07       	cpc	r22, r18
   3bb40:	73 07       	cpc	r23, r19
   3bb42:	84 07       	cpc	r24, r20
   3bb44:	95 07       	cpc	r25, r21
   3bb46:	20 f0       	brcs	.+8      	; 0x3bb50 <__addsf3x+0x1c>
   3bb48:	79 f4       	brne	.+30     	; 0x3bb68 <__addsf3x+0x34>
   3bb4a:	a6 f5       	brtc	.+104    	; 0x3bbb4 <__addsf3x+0x80>
   3bb4c:	0d 94 df d7 	jmp	0x3afbe	; 0x3afbe <__fp_zero>
   3bb50:	0e f4       	brtc	.+2      	; 0x3bb54 <__addsf3x+0x20>
   3bb52:	e0 95       	com	r30
   3bb54:	0b 2e       	mov	r0, r27
   3bb56:	ba 2f       	mov	r27, r26
   3bb58:	a0 2d       	mov	r26, r0
   3bb5a:	0b 01       	movw	r0, r22
   3bb5c:	b9 01       	movw	r22, r18
   3bb5e:	90 01       	movw	r18, r0
   3bb60:	0c 01       	movw	r0, r24
   3bb62:	ca 01       	movw	r24, r20
   3bb64:	a0 01       	movw	r20, r0
   3bb66:	11 24       	eor	r1, r1
   3bb68:	ff 27       	eor	r31, r31
   3bb6a:	59 1b       	sub	r21, r25
   3bb6c:	99 f0       	breq	.+38     	; 0x3bb94 <__addsf3x+0x60>
   3bb6e:	59 3f       	cpi	r21, 0xF9	; 249
   3bb70:	50 f4       	brcc	.+20     	; 0x3bb86 <__addsf3x+0x52>
   3bb72:	50 3e       	cpi	r21, 0xE0	; 224
   3bb74:	68 f1       	brcs	.+90     	; 0x3bbd0 <__addsf3x+0x9c>
   3bb76:	1a 16       	cp	r1, r26
   3bb78:	f0 40       	sbci	r31, 0x00	; 0
   3bb7a:	a2 2f       	mov	r26, r18
   3bb7c:	23 2f       	mov	r18, r19
   3bb7e:	34 2f       	mov	r19, r20
   3bb80:	44 27       	eor	r20, r20
   3bb82:	58 5f       	subi	r21, 0xF8	; 248
   3bb84:	f3 cf       	rjmp	.-26     	; 0x3bb6c <__addsf3x+0x38>
   3bb86:	46 95       	lsr	r20
   3bb88:	37 95       	ror	r19
   3bb8a:	27 95       	ror	r18
   3bb8c:	a7 95       	ror	r26
   3bb8e:	f0 40       	sbci	r31, 0x00	; 0
   3bb90:	53 95       	inc	r21
   3bb92:	c9 f7       	brne	.-14     	; 0x3bb86 <__addsf3x+0x52>
   3bb94:	7e f4       	brtc	.+30     	; 0x3bbb4 <__addsf3x+0x80>
   3bb96:	1f 16       	cp	r1, r31
   3bb98:	ba 0b       	sbc	r27, r26
   3bb9a:	62 0b       	sbc	r22, r18
   3bb9c:	73 0b       	sbc	r23, r19
   3bb9e:	84 0b       	sbc	r24, r20
   3bba0:	ba f0       	brmi	.+46     	; 0x3bbd0 <__addsf3x+0x9c>
   3bba2:	91 50       	subi	r25, 0x01	; 1
   3bba4:	a1 f0       	breq	.+40     	; 0x3bbce <__addsf3x+0x9a>
   3bba6:	ff 0f       	add	r31, r31
   3bba8:	bb 1f       	adc	r27, r27
   3bbaa:	66 1f       	adc	r22, r22
   3bbac:	77 1f       	adc	r23, r23
   3bbae:	88 1f       	adc	r24, r24
   3bbb0:	c2 f7       	brpl	.-16     	; 0x3bba2 <__addsf3x+0x6e>
   3bbb2:	0e c0       	rjmp	.+28     	; 0x3bbd0 <__addsf3x+0x9c>
   3bbb4:	ba 0f       	add	r27, r26
   3bbb6:	62 1f       	adc	r22, r18
   3bbb8:	73 1f       	adc	r23, r19
   3bbba:	84 1f       	adc	r24, r20
   3bbbc:	48 f4       	brcc	.+18     	; 0x3bbd0 <__addsf3x+0x9c>
   3bbbe:	87 95       	ror	r24
   3bbc0:	77 95       	ror	r23
   3bbc2:	67 95       	ror	r22
   3bbc4:	b7 95       	ror	r27
   3bbc6:	f7 95       	ror	r31
   3bbc8:	9e 3f       	cpi	r25, 0xFE	; 254
   3bbca:	08 f0       	brcs	.+2      	; 0x3bbce <__addsf3x+0x9a>
   3bbcc:	b0 cf       	rjmp	.-160    	; 0x3bb2e <__addsf3+0x28>
   3bbce:	93 95       	inc	r25
   3bbd0:	88 0f       	add	r24, r24
   3bbd2:	08 f0       	brcs	.+2      	; 0x3bbd6 <__addsf3x+0xa2>
   3bbd4:	99 27       	eor	r25, r25
   3bbd6:	ee 0f       	add	r30, r30
   3bbd8:	97 95       	ror	r25
   3bbda:	87 95       	ror	r24
   3bbdc:	08 95       	ret
   3bbde:	0f 94 9e d7 	call	0x3af3c	; 0x3af3c <__fp_pscA>
   3bbe2:	60 f0       	brcs	.+24     	; 0x3bbfc <__addsf3x+0xc8>
   3bbe4:	80 e8       	ldi	r24, 0x80	; 128
   3bbe6:	91 e0       	ldi	r25, 0x01	; 1
   3bbe8:	09 f4       	brne	.+2      	; 0x3bbec <__addsf3x+0xb8>
   3bbea:	9e ef       	ldi	r25, 0xFE	; 254
   3bbec:	0f 94 a5 d7 	call	0x3af4a	; 0x3af4a <__fp_pscB>
   3bbf0:	28 f0       	brcs	.+10     	; 0x3bbfc <__addsf3x+0xc8>
   3bbf2:	40 e8       	ldi	r20, 0x80	; 128
   3bbf4:	51 e0       	ldi	r21, 0x01	; 1
   3bbf6:	71 f4       	brne	.+28     	; 0x3bc14 <atan2+0x10>
   3bbf8:	5e ef       	ldi	r21, 0xFE	; 254
   3bbfa:	0c c0       	rjmp	.+24     	; 0x3bc14 <atan2+0x10>
   3bbfc:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3bc00:	0d 94 df d7 	jmp	0x3afbe	; 0x3afbe <__fp_zero>

0003bc04 <atan2>:
   3bc04:	e9 2f       	mov	r30, r25
   3bc06:	e0 78       	andi	r30, 0x80	; 128
   3bc08:	0f 94 bd d7 	call	0x3af7a	; 0x3af7a <__fp_split3>
   3bc0c:	40 f3       	brcs	.-48     	; 0x3bbde <__addsf3x+0xaa>
   3bc0e:	09 2e       	mov	r0, r25
   3bc10:	05 2a       	or	r0, r21
   3bc12:	b1 f3       	breq	.-20     	; 0x3bc00 <__addsf3x+0xcc>
   3bc14:	26 17       	cp	r18, r22
   3bc16:	37 07       	cpc	r19, r23
   3bc18:	48 07       	cpc	r20, r24
   3bc1a:	59 07       	cpc	r21, r25
   3bc1c:	38 f0       	brcs	.+14     	; 0x3bc2c <atan2+0x28>
   3bc1e:	0e 2e       	mov	r0, r30
   3bc20:	07 f8       	bld	r0, 7
   3bc22:	e0 25       	eor	r30, r0
   3bc24:	69 f0       	breq	.+26     	; 0x3bc40 <atan2+0x3c>
   3bc26:	e0 25       	eor	r30, r0
   3bc28:	e0 64       	ori	r30, 0x40	; 64
   3bc2a:	0a c0       	rjmp	.+20     	; 0x3bc40 <atan2+0x3c>
   3bc2c:	ef 63       	ori	r30, 0x3F	; 63
   3bc2e:	07 f8       	bld	r0, 7
   3bc30:	00 94       	com	r0
   3bc32:	07 fa       	bst	r0, 7
   3bc34:	db 01       	movw	r26, r22
   3bc36:	b9 01       	movw	r22, r18
   3bc38:	9d 01       	movw	r18, r26
   3bc3a:	dc 01       	movw	r26, r24
   3bc3c:	ca 01       	movw	r24, r20
   3bc3e:	ad 01       	movw	r20, r26
   3bc40:	ef 93       	push	r30
   3bc42:	0f 94 99 de 	call	0x3bd32	; 0x3bd32 <__divsf3_pse>
   3bc46:	0f 94 ac d7 	call	0x3af58	; 0x3af58 <__fp_round>
   3bc4a:	0f 94 32 de 	call	0x3bc64	; 0x3bc64 <atan>
   3bc4e:	5f 91       	pop	r21
   3bc50:	55 23       	and	r21, r21
   3bc52:	39 f0       	breq	.+14     	; 0x3bc62 <atan2+0x5e>
   3bc54:	2b ed       	ldi	r18, 0xDB	; 219
   3bc56:	3f e0       	ldi	r19, 0x0F	; 15
   3bc58:	49 e4       	ldi	r20, 0x49	; 73
   3bc5a:	50 fd       	sbrc	r21, 0
   3bc5c:	49 ec       	ldi	r20, 0xC9	; 201
   3bc5e:	0d 94 83 dd 	jmp	0x3bb06	; 0x3bb06 <__addsf3>
   3bc62:	08 95       	ret

0003bc64 <atan>:
   3bc64:	df 93       	push	r29
   3bc66:	dd 27       	eor	r29, r29
   3bc68:	b9 2f       	mov	r27, r25
   3bc6a:	bf 77       	andi	r27, 0x7F	; 127
   3bc6c:	40 e8       	ldi	r20, 0x80	; 128
   3bc6e:	5f e3       	ldi	r21, 0x3F	; 63
   3bc70:	16 16       	cp	r1, r22
   3bc72:	17 06       	cpc	r1, r23
   3bc74:	48 07       	cpc	r20, r24
   3bc76:	5b 07       	cpc	r21, r27
   3bc78:	18 f4       	brcc	.+6      	; 0x3bc80 <atan+0x1c>
   3bc7a:	d9 2f       	mov	r29, r25
   3bc7c:	0f 94 7e e0 	call	0x3c0fc	; 0x3c0fc <inverse>
   3bc80:	9f 93       	push	r25
   3bc82:	8f 93       	push	r24
   3bc84:	7f 93       	push	r23
   3bc86:	6f 93       	push	r22
   3bc88:	0f 94 24 d7 	call	0x3ae48	; 0x3ae48 <square>
   3bc8c:	e3 ea       	ldi	r30, 0xA3	; 163
   3bc8e:	f0 e7       	ldi	r31, 0x70	; 112
   3bc90:	0f 94 8e df 	call	0x3bf1c	; 0x3bf1c <__fp_powser>
   3bc94:	0f 94 ac d7 	call	0x3af58	; 0x3af58 <__fp_round>
   3bc98:	2f 91       	pop	r18
   3bc9a:	3f 91       	pop	r19
   3bc9c:	4f 91       	pop	r20
   3bc9e:	5f 91       	pop	r21
   3bca0:	0f 94 3b d7 	call	0x3ae76	; 0x3ae76 <__mulsf3x>
   3bca4:	dd 23       	and	r29, r29
   3bca6:	51 f0       	breq	.+20     	; 0x3bcbc <atan+0x58>
   3bca8:	90 58       	subi	r25, 0x80	; 128
   3bcaa:	a2 ea       	ldi	r26, 0xA2	; 162
   3bcac:	2a ed       	ldi	r18, 0xDA	; 218
   3bcae:	3f e0       	ldi	r19, 0x0F	; 15
   3bcb0:	49 ec       	ldi	r20, 0xC9	; 201
   3bcb2:	5f e3       	ldi	r21, 0x3F	; 63
   3bcb4:	d0 78       	andi	r29, 0x80	; 128
   3bcb6:	5d 27       	eor	r21, r29
   3bcb8:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3bcbc:	df 91       	pop	r29
   3bcbe:	0d 94 ac d7 	jmp	0x3af58	; 0x3af58 <__fp_round>

0003bcc2 <ceil>:
   3bcc2:	0f 94 f4 df 	call	0x3bfe8	; 0x3bfe8 <__fp_trunc>
   3bcc6:	90 f0       	brcs	.+36     	; 0x3bcec <ceil+0x2a>
   3bcc8:	9f 37       	cpi	r25, 0x7F	; 127
   3bcca:	48 f4       	brcc	.+18     	; 0x3bcde <ceil+0x1c>
   3bccc:	91 11       	cpse	r25, r1
   3bcce:	16 f4       	brtc	.+4      	; 0x3bcd4 <ceil+0x12>
   3bcd0:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3bcd4:	60 e0       	ldi	r22, 0x00	; 0
   3bcd6:	70 e0       	ldi	r23, 0x00	; 0
   3bcd8:	80 e8       	ldi	r24, 0x80	; 128
   3bcda:	9f e3       	ldi	r25, 0x3F	; 63
   3bcdc:	08 95       	ret
   3bcde:	26 f0       	brts	.+8      	; 0x3bce8 <ceil+0x26>
   3bce0:	1b 16       	cp	r1, r27
   3bce2:	61 1d       	adc	r22, r1
   3bce4:	71 1d       	adc	r23, r1
   3bce6:	81 1d       	adc	r24, r1
   3bce8:	0d 94 65 df 	jmp	0x3beca	; 0x3beca <__fp_mintl>
   3bcec:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>

0003bcf0 <__cmpsf2>:
   3bcf0:	0f 94 41 df 	call	0x3be82	; 0x3be82 <__fp_cmp>
   3bcf4:	08 f4       	brcc	.+2      	; 0x3bcf8 <__cmpsf2+0x8>
   3bcf6:	81 e0       	ldi	r24, 0x01	; 1
   3bcf8:	08 95       	ret

0003bcfa <cos>:
   3bcfa:	0f 94 b7 df 	call	0x3bf6e	; 0x3bf6e <__fp_rempio2>
   3bcfe:	e3 95       	inc	r30
   3bd00:	0d 94 e0 df 	jmp	0x3bfc0	; 0x3bfc0 <__fp_sinus>

0003bd04 <__divsf3>:
   3bd04:	0f 94 96 de 	call	0x3bd2c	; 0x3bd2c <__divsf3x>
   3bd08:	0d 94 ac d7 	jmp	0x3af58	; 0x3af58 <__fp_round>
   3bd0c:	0f 94 a5 d7 	call	0x3af4a	; 0x3af4a <__fp_pscB>
   3bd10:	58 f0       	brcs	.+22     	; 0x3bd28 <__divsf3+0x24>
   3bd12:	0f 94 9e d7 	call	0x3af3c	; 0x3af3c <__fp_pscA>
   3bd16:	40 f0       	brcs	.+16     	; 0x3bd28 <__divsf3+0x24>
   3bd18:	29 f4       	brne	.+10     	; 0x3bd24 <__divsf3+0x20>
   3bd1a:	5f 3f       	cpi	r21, 0xFF	; 255
   3bd1c:	29 f0       	breq	.+10     	; 0x3bd28 <__divsf3+0x24>
   3bd1e:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3bd22:	51 11       	cpse	r21, r1
   3bd24:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3bd28:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>

0003bd2c <__divsf3x>:
   3bd2c:	0f 94 bd d7 	call	0x3af7a	; 0x3af7a <__fp_split3>
   3bd30:	68 f3       	brcs	.-38     	; 0x3bd0c <__divsf3+0x8>

0003bd32 <__divsf3_pse>:
   3bd32:	99 23       	and	r25, r25
   3bd34:	b1 f3       	breq	.-20     	; 0x3bd22 <__divsf3+0x1e>
   3bd36:	55 23       	and	r21, r21
   3bd38:	91 f3       	breq	.-28     	; 0x3bd1e <__divsf3+0x1a>
   3bd3a:	95 1b       	sub	r25, r21
   3bd3c:	55 0b       	sbc	r21, r21
   3bd3e:	bb 27       	eor	r27, r27
   3bd40:	aa 27       	eor	r26, r26
   3bd42:	62 17       	cp	r22, r18
   3bd44:	73 07       	cpc	r23, r19
   3bd46:	84 07       	cpc	r24, r20
   3bd48:	38 f0       	brcs	.+14     	; 0x3bd58 <__divsf3_pse+0x26>
   3bd4a:	9f 5f       	subi	r25, 0xFF	; 255
   3bd4c:	5f 4f       	sbci	r21, 0xFF	; 255
   3bd4e:	22 0f       	add	r18, r18
   3bd50:	33 1f       	adc	r19, r19
   3bd52:	44 1f       	adc	r20, r20
   3bd54:	aa 1f       	adc	r26, r26
   3bd56:	a9 f3       	breq	.-22     	; 0x3bd42 <__divsf3_pse+0x10>
   3bd58:	35 d0       	rcall	.+106    	; 0x3bdc4 <__divsf3_pse+0x92>
   3bd5a:	0e 2e       	mov	r0, r30
   3bd5c:	3a f0       	brmi	.+14     	; 0x3bd6c <__divsf3_pse+0x3a>
   3bd5e:	e0 e8       	ldi	r30, 0x80	; 128
   3bd60:	32 d0       	rcall	.+100    	; 0x3bdc6 <__divsf3_pse+0x94>
   3bd62:	91 50       	subi	r25, 0x01	; 1
   3bd64:	50 40       	sbci	r21, 0x00	; 0
   3bd66:	e6 95       	lsr	r30
   3bd68:	00 1c       	adc	r0, r0
   3bd6a:	ca f7       	brpl	.-14     	; 0x3bd5e <__divsf3_pse+0x2c>
   3bd6c:	2b d0       	rcall	.+86     	; 0x3bdc4 <__divsf3_pse+0x92>
   3bd6e:	fe 2f       	mov	r31, r30
   3bd70:	29 d0       	rcall	.+82     	; 0x3bdc4 <__divsf3_pse+0x92>
   3bd72:	66 0f       	add	r22, r22
   3bd74:	77 1f       	adc	r23, r23
   3bd76:	88 1f       	adc	r24, r24
   3bd78:	bb 1f       	adc	r27, r27
   3bd7a:	26 17       	cp	r18, r22
   3bd7c:	37 07       	cpc	r19, r23
   3bd7e:	48 07       	cpc	r20, r24
   3bd80:	ab 07       	cpc	r26, r27
   3bd82:	b0 e8       	ldi	r27, 0x80	; 128
   3bd84:	09 f0       	breq	.+2      	; 0x3bd88 <__divsf3_pse+0x56>
   3bd86:	bb 0b       	sbc	r27, r27
   3bd88:	80 2d       	mov	r24, r0
   3bd8a:	bf 01       	movw	r22, r30
   3bd8c:	ff 27       	eor	r31, r31
   3bd8e:	93 58       	subi	r25, 0x83	; 131
   3bd90:	5f 4f       	sbci	r21, 0xFF	; 255
   3bd92:	3a f0       	brmi	.+14     	; 0x3bda2 <__divsf3_pse+0x70>
   3bd94:	9e 3f       	cpi	r25, 0xFE	; 254
   3bd96:	51 05       	cpc	r21, r1
   3bd98:	78 f0       	brcs	.+30     	; 0x3bdb8 <__divsf3_pse+0x86>
   3bd9a:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3bd9e:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3bda2:	5f 3f       	cpi	r21, 0xFF	; 255
   3bda4:	e4 f3       	brlt	.-8      	; 0x3bd9e <__divsf3_pse+0x6c>
   3bda6:	98 3e       	cpi	r25, 0xE8	; 232
   3bda8:	d4 f3       	brlt	.-12     	; 0x3bd9e <__divsf3_pse+0x6c>
   3bdaa:	86 95       	lsr	r24
   3bdac:	77 95       	ror	r23
   3bdae:	67 95       	ror	r22
   3bdb0:	b7 95       	ror	r27
   3bdb2:	f7 95       	ror	r31
   3bdb4:	9f 5f       	subi	r25, 0xFF	; 255
   3bdb6:	c9 f7       	brne	.-14     	; 0x3bdaa <__divsf3_pse+0x78>
   3bdb8:	88 0f       	add	r24, r24
   3bdba:	91 1d       	adc	r25, r1
   3bdbc:	96 95       	lsr	r25
   3bdbe:	87 95       	ror	r24
   3bdc0:	97 f9       	bld	r25, 7
   3bdc2:	08 95       	ret
   3bdc4:	e1 e0       	ldi	r30, 0x01	; 1
   3bdc6:	66 0f       	add	r22, r22
   3bdc8:	77 1f       	adc	r23, r23
   3bdca:	88 1f       	adc	r24, r24
   3bdcc:	bb 1f       	adc	r27, r27
   3bdce:	62 17       	cp	r22, r18
   3bdd0:	73 07       	cpc	r23, r19
   3bdd2:	84 07       	cpc	r24, r20
   3bdd4:	ba 07       	cpc	r27, r26
   3bdd6:	20 f0       	brcs	.+8      	; 0x3bde0 <__divsf3_pse+0xae>
   3bdd8:	62 1b       	sub	r22, r18
   3bdda:	73 0b       	sbc	r23, r19
   3bddc:	84 0b       	sbc	r24, r20
   3bdde:	ba 0b       	sbc	r27, r26
   3bde0:	ee 1f       	adc	r30, r30
   3bde2:	88 f7       	brcc	.-30     	; 0x3bdc6 <__divsf3_pse+0x94>
   3bde4:	e0 95       	com	r30
   3bde6:	08 95       	ret

0003bde8 <__fixsfsi>:
   3bde8:	0f 94 fb de 	call	0x3bdf6	; 0x3bdf6 <__fixunssfsi>
   3bdec:	68 94       	set
   3bdee:	b1 11       	cpse	r27, r1
   3bdf0:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3bdf4:	08 95       	ret

0003bdf6 <__fixunssfsi>:
   3bdf6:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3bdfa:	88 f0       	brcs	.+34     	; 0x3be1e <__fixunssfsi+0x28>
   3bdfc:	9f 57       	subi	r25, 0x7F	; 127
   3bdfe:	98 f0       	brcs	.+38     	; 0x3be26 <__fixunssfsi+0x30>
   3be00:	b9 2f       	mov	r27, r25
   3be02:	99 27       	eor	r25, r25
   3be04:	b7 51       	subi	r27, 0x17	; 23
   3be06:	b0 f0       	brcs	.+44     	; 0x3be34 <__fixunssfsi+0x3e>
   3be08:	e1 f0       	breq	.+56     	; 0x3be42 <__fixunssfsi+0x4c>
   3be0a:	66 0f       	add	r22, r22
   3be0c:	77 1f       	adc	r23, r23
   3be0e:	88 1f       	adc	r24, r24
   3be10:	99 1f       	adc	r25, r25
   3be12:	1a f0       	brmi	.+6      	; 0x3be1a <__fixunssfsi+0x24>
   3be14:	ba 95       	dec	r27
   3be16:	c9 f7       	brne	.-14     	; 0x3be0a <__fixunssfsi+0x14>
   3be18:	14 c0       	rjmp	.+40     	; 0x3be42 <__fixunssfsi+0x4c>
   3be1a:	b1 30       	cpi	r27, 0x01	; 1
   3be1c:	91 f0       	breq	.+36     	; 0x3be42 <__fixunssfsi+0x4c>
   3be1e:	0f 94 df d7 	call	0x3afbe	; 0x3afbe <__fp_zero>
   3be22:	b1 e0       	ldi	r27, 0x01	; 1
   3be24:	08 95       	ret
   3be26:	0d 94 df d7 	jmp	0x3afbe	; 0x3afbe <__fp_zero>
   3be2a:	67 2f       	mov	r22, r23
   3be2c:	78 2f       	mov	r23, r24
   3be2e:	88 27       	eor	r24, r24
   3be30:	b8 5f       	subi	r27, 0xF8	; 248
   3be32:	39 f0       	breq	.+14     	; 0x3be42 <__fixunssfsi+0x4c>
   3be34:	b9 3f       	cpi	r27, 0xF9	; 249
   3be36:	cc f3       	brlt	.-14     	; 0x3be2a <__fixunssfsi+0x34>
   3be38:	86 95       	lsr	r24
   3be3a:	77 95       	ror	r23
   3be3c:	67 95       	ror	r22
   3be3e:	b3 95       	inc	r27
   3be40:	d9 f7       	brne	.-10     	; 0x3be38 <__fixunssfsi+0x42>
   3be42:	3e f4       	brtc	.+14     	; 0x3be52 <__fixunssfsi+0x5c>
   3be44:	90 95       	com	r25
   3be46:	80 95       	com	r24
   3be48:	70 95       	com	r23
   3be4a:	61 95       	neg	r22
   3be4c:	7f 4f       	sbci	r23, 0xFF	; 255
   3be4e:	8f 4f       	sbci	r24, 0xFF	; 255
   3be50:	9f 4f       	sbci	r25, 0xFF	; 255
   3be52:	08 95       	ret

0003be54 <floor>:
   3be54:	0f 94 f4 df 	call	0x3bfe8	; 0x3bfe8 <__fp_trunc>
   3be58:	90 f0       	brcs	.+36     	; 0x3be7e <floor+0x2a>
   3be5a:	9f 37       	cpi	r25, 0x7F	; 127
   3be5c:	48 f4       	brcc	.+18     	; 0x3be70 <floor+0x1c>
   3be5e:	91 11       	cpse	r25, r1
   3be60:	16 f0       	brts	.+4      	; 0x3be66 <floor+0x12>
   3be62:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3be66:	60 e0       	ldi	r22, 0x00	; 0
   3be68:	70 e0       	ldi	r23, 0x00	; 0
   3be6a:	80 e8       	ldi	r24, 0x80	; 128
   3be6c:	9f eb       	ldi	r25, 0xBF	; 191
   3be6e:	08 95       	ret
   3be70:	26 f4       	brtc	.+8      	; 0x3be7a <floor+0x26>
   3be72:	1b 16       	cp	r1, r27
   3be74:	61 1d       	adc	r22, r1
   3be76:	71 1d       	adc	r23, r1
   3be78:	81 1d       	adc	r24, r1
   3be7a:	0d 94 65 df 	jmp	0x3beca	; 0x3beca <__fp_mintl>
   3be7e:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>

0003be82 <__fp_cmp>:
   3be82:	99 0f       	add	r25, r25
   3be84:	00 08       	sbc	r0, r0
   3be86:	55 0f       	add	r21, r21
   3be88:	aa 0b       	sbc	r26, r26
   3be8a:	e0 e8       	ldi	r30, 0x80	; 128
   3be8c:	fe ef       	ldi	r31, 0xFE	; 254
   3be8e:	16 16       	cp	r1, r22
   3be90:	17 06       	cpc	r1, r23
   3be92:	e8 07       	cpc	r30, r24
   3be94:	f9 07       	cpc	r31, r25
   3be96:	c0 f0       	brcs	.+48     	; 0x3bec8 <__fp_cmp+0x46>
   3be98:	12 16       	cp	r1, r18
   3be9a:	13 06       	cpc	r1, r19
   3be9c:	e4 07       	cpc	r30, r20
   3be9e:	f5 07       	cpc	r31, r21
   3bea0:	98 f0       	brcs	.+38     	; 0x3bec8 <__fp_cmp+0x46>
   3bea2:	62 1b       	sub	r22, r18
   3bea4:	73 0b       	sbc	r23, r19
   3bea6:	84 0b       	sbc	r24, r20
   3bea8:	95 0b       	sbc	r25, r21
   3beaa:	39 f4       	brne	.+14     	; 0x3beba <__fp_cmp+0x38>
   3beac:	0a 26       	eor	r0, r26
   3beae:	61 f0       	breq	.+24     	; 0x3bec8 <__fp_cmp+0x46>
   3beb0:	23 2b       	or	r18, r19
   3beb2:	24 2b       	or	r18, r20
   3beb4:	25 2b       	or	r18, r21
   3beb6:	21 f4       	brne	.+8      	; 0x3bec0 <__fp_cmp+0x3e>
   3beb8:	08 95       	ret
   3beba:	0a 26       	eor	r0, r26
   3bebc:	09 f4       	brne	.+2      	; 0x3bec0 <__fp_cmp+0x3e>
   3bebe:	a1 40       	sbci	r26, 0x01	; 1
   3bec0:	a6 95       	lsr	r26
   3bec2:	8f ef       	ldi	r24, 0xFF	; 255
   3bec4:	81 1d       	adc	r24, r1
   3bec6:	81 1d       	adc	r24, r1
   3bec8:	08 95       	ret

0003beca <__fp_mintl>:
   3beca:	88 23       	and	r24, r24
   3becc:	71 f4       	brne	.+28     	; 0x3beea <__fp_mintl+0x20>
   3bece:	77 23       	and	r23, r23
   3bed0:	21 f0       	breq	.+8      	; 0x3beda <__fp_mintl+0x10>
   3bed2:	98 50       	subi	r25, 0x08	; 8
   3bed4:	87 2b       	or	r24, r23
   3bed6:	76 2f       	mov	r23, r22
   3bed8:	07 c0       	rjmp	.+14     	; 0x3bee8 <__fp_mintl+0x1e>
   3beda:	66 23       	and	r22, r22
   3bedc:	11 f4       	brne	.+4      	; 0x3bee2 <__fp_mintl+0x18>
   3bede:	99 27       	eor	r25, r25
   3bee0:	0d c0       	rjmp	.+26     	; 0x3befc <__fp_mintl+0x32>
   3bee2:	90 51       	subi	r25, 0x10	; 16
   3bee4:	86 2b       	or	r24, r22
   3bee6:	70 e0       	ldi	r23, 0x00	; 0
   3bee8:	60 e0       	ldi	r22, 0x00	; 0
   3beea:	2a f0       	brmi	.+10     	; 0x3bef6 <__fp_mintl+0x2c>
   3beec:	9a 95       	dec	r25
   3beee:	66 0f       	add	r22, r22
   3bef0:	77 1f       	adc	r23, r23
   3bef2:	88 1f       	adc	r24, r24
   3bef4:	da f7       	brpl	.-10     	; 0x3beec <__fp_mintl+0x22>
   3bef6:	88 0f       	add	r24, r24
   3bef8:	96 95       	lsr	r25
   3befa:	87 95       	ror	r24
   3befc:	97 f9       	bld	r25, 7
   3befe:	08 95       	ret

0003bf00 <__fp_mpack>:
   3bf00:	9f 3f       	cpi	r25, 0xFF	; 255
   3bf02:	31 f0       	breq	.+12     	; 0x3bf10 <__fp_mpack_finite+0xc>

0003bf04 <__fp_mpack_finite>:
   3bf04:	91 50       	subi	r25, 0x01	; 1
   3bf06:	20 f4       	brcc	.+8      	; 0x3bf10 <__fp_mpack_finite+0xc>
   3bf08:	87 95       	ror	r24
   3bf0a:	77 95       	ror	r23
   3bf0c:	67 95       	ror	r22
   3bf0e:	b7 95       	ror	r27
   3bf10:	88 0f       	add	r24, r24
   3bf12:	91 1d       	adc	r25, r1
   3bf14:	96 95       	lsr	r25
   3bf16:	87 95       	ror	r24
   3bf18:	97 f9       	bld	r25, 7
   3bf1a:	08 95       	ret

0003bf1c <__fp_powser>:
   3bf1c:	df 93       	push	r29
   3bf1e:	cf 93       	push	r28
   3bf20:	1f 93       	push	r17
   3bf22:	0f 93       	push	r16
   3bf24:	ff 92       	push	r15
   3bf26:	ef 92       	push	r14
   3bf28:	df 92       	push	r13
   3bf2a:	7b 01       	movw	r14, r22
   3bf2c:	8c 01       	movw	r16, r24
   3bf2e:	68 94       	set
   3bf30:	06 c0       	rjmp	.+12     	; 0x3bf3e <__fp_powser+0x22>
   3bf32:	da 2e       	mov	r13, r26
   3bf34:	ef 01       	movw	r28, r30
   3bf36:	0f 94 3b d7 	call	0x3ae76	; 0x3ae76 <__mulsf3x>
   3bf3a:	fe 01       	movw	r30, r28
   3bf3c:	e8 94       	clt
   3bf3e:	a5 91       	lpm	r26, Z+
   3bf40:	25 91       	lpm	r18, Z+
   3bf42:	35 91       	lpm	r19, Z+
   3bf44:	45 91       	lpm	r20, Z+
   3bf46:	55 91       	lpm	r21, Z+
   3bf48:	a6 f3       	brts	.-24     	; 0x3bf32 <__fp_powser+0x16>
   3bf4a:	ef 01       	movw	r28, r30
   3bf4c:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3bf50:	fe 01       	movw	r30, r28
   3bf52:	97 01       	movw	r18, r14
   3bf54:	a8 01       	movw	r20, r16
   3bf56:	da 94       	dec	r13
   3bf58:	69 f7       	brne	.-38     	; 0x3bf34 <__fp_powser+0x18>
   3bf5a:	df 90       	pop	r13
   3bf5c:	ef 90       	pop	r14
   3bf5e:	ff 90       	pop	r15
   3bf60:	0f 91       	pop	r16
   3bf62:	1f 91       	pop	r17
   3bf64:	cf 91       	pop	r28
   3bf66:	df 91       	pop	r29
   3bf68:	08 95       	ret
   3bf6a:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>

0003bf6e <__fp_rempio2>:
   3bf6e:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3bf72:	d8 f3       	brcs	.-10     	; 0x3bf6a <__fp_powser+0x4e>
   3bf74:	e8 94       	clt
   3bf76:	e0 e0       	ldi	r30, 0x00	; 0
   3bf78:	bb 27       	eor	r27, r27
   3bf7a:	9f 57       	subi	r25, 0x7F	; 127
   3bf7c:	f0 f0       	brcs	.+60     	; 0x3bfba <__fp_rempio2+0x4c>
   3bf7e:	2a ed       	ldi	r18, 0xDA	; 218
   3bf80:	3f e0       	ldi	r19, 0x0F	; 15
   3bf82:	49 ec       	ldi	r20, 0xC9	; 201
   3bf84:	06 c0       	rjmp	.+12     	; 0x3bf92 <__fp_rempio2+0x24>
   3bf86:	ee 0f       	add	r30, r30
   3bf88:	bb 0f       	add	r27, r27
   3bf8a:	66 1f       	adc	r22, r22
   3bf8c:	77 1f       	adc	r23, r23
   3bf8e:	88 1f       	adc	r24, r24
   3bf90:	28 f0       	brcs	.+10     	; 0x3bf9c <__fp_rempio2+0x2e>
   3bf92:	b2 3a       	cpi	r27, 0xA2	; 162
   3bf94:	62 07       	cpc	r22, r18
   3bf96:	73 07       	cpc	r23, r19
   3bf98:	84 07       	cpc	r24, r20
   3bf9a:	28 f0       	brcs	.+10     	; 0x3bfa6 <__fp_rempio2+0x38>
   3bf9c:	b2 5a       	subi	r27, 0xA2	; 162
   3bf9e:	62 0b       	sbc	r22, r18
   3bfa0:	73 0b       	sbc	r23, r19
   3bfa2:	84 0b       	sbc	r24, r20
   3bfa4:	e3 95       	inc	r30
   3bfa6:	9a 95       	dec	r25
   3bfa8:	72 f7       	brpl	.-36     	; 0x3bf86 <__fp_rempio2+0x18>
   3bfaa:	80 38       	cpi	r24, 0x80	; 128
   3bfac:	30 f4       	brcc	.+12     	; 0x3bfba <__fp_rempio2+0x4c>
   3bfae:	9a 95       	dec	r25
   3bfb0:	bb 0f       	add	r27, r27
   3bfb2:	66 1f       	adc	r22, r22
   3bfb4:	77 1f       	adc	r23, r23
   3bfb6:	88 1f       	adc	r24, r24
   3bfb8:	d2 f7       	brpl	.-12     	; 0x3bfae <__fp_rempio2+0x40>
   3bfba:	90 48       	sbci	r25, 0x80	; 128
   3bfbc:	0d 94 82 df 	jmp	0x3bf04	; 0x3bf04 <__fp_mpack_finite>

0003bfc0 <__fp_sinus>:
   3bfc0:	ef 93       	push	r30
   3bfc2:	e0 ff       	sbrs	r30, 0
   3bfc4:	07 c0       	rjmp	.+14     	; 0x3bfd4 <__fp_sinus+0x14>
   3bfc6:	a2 ea       	ldi	r26, 0xA2	; 162
   3bfc8:	2a ed       	ldi	r18, 0xDA	; 218
   3bfca:	3f e0       	ldi	r19, 0x0F	; 15
   3bfcc:	49 ec       	ldi	r20, 0xC9	; 201
   3bfce:	5f eb       	ldi	r21, 0xBF	; 191
   3bfd0:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3bfd4:	0f 94 ac d7 	call	0x3af58	; 0x3af58 <__fp_round>
   3bfd8:	0f 90       	pop	r0
   3bfda:	03 94       	inc	r0
   3bfdc:	01 fc       	sbrc	r0, 1
   3bfde:	90 58       	subi	r25, 0x80	; 128
   3bfe0:	e0 ed       	ldi	r30, 0xD0	; 208
   3bfe2:	f0 e7       	ldi	r31, 0x70	; 112
   3bfe4:	0d 94 d7 e1 	jmp	0x3c3ae	; 0x3c3ae <__fp_powsodd>

0003bfe8 <__fp_trunc>:
   3bfe8:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3bfec:	a0 f0       	brcs	.+40     	; 0x3c016 <__fp_trunc+0x2e>
   3bfee:	be e7       	ldi	r27, 0x7E	; 126
   3bff0:	b9 17       	cp	r27, r25
   3bff2:	88 f4       	brcc	.+34     	; 0x3c016 <__fp_trunc+0x2e>
   3bff4:	bb 27       	eor	r27, r27
   3bff6:	9f 38       	cpi	r25, 0x8F	; 143
   3bff8:	60 f4       	brcc	.+24     	; 0x3c012 <__fp_trunc+0x2a>
   3bffa:	16 16       	cp	r1, r22
   3bffc:	b1 1d       	adc	r27, r1
   3bffe:	67 2f       	mov	r22, r23
   3c000:	78 2f       	mov	r23, r24
   3c002:	88 27       	eor	r24, r24
   3c004:	98 5f       	subi	r25, 0xF8	; 248
   3c006:	f7 cf       	rjmp	.-18     	; 0x3bff6 <__fp_trunc+0xe>
   3c008:	86 95       	lsr	r24
   3c00a:	77 95       	ror	r23
   3c00c:	67 95       	ror	r22
   3c00e:	b1 1d       	adc	r27, r1
   3c010:	93 95       	inc	r25
   3c012:	96 39       	cpi	r25, 0x96	; 150
   3c014:	c8 f3       	brcs	.-14     	; 0x3c008 <__fp_trunc+0x20>
   3c016:	08 95       	ret

0003c018 <__gesf2>:
   3c018:	0f 94 41 df 	call	0x3be82	; 0x3be82 <__fp_cmp>
   3c01c:	08 f4       	brcc	.+2      	; 0x3c020 <__gesf2+0x8>
   3c01e:	8f ef       	ldi	r24, 0xFF	; 255
   3c020:	08 95       	ret
   3c022:	0f 94 9e d7 	call	0x3af3c	; 0x3af3c <__fp_pscA>
   3c026:	29 f0       	breq	.+10     	; 0x3c032 <__gesf2+0x1a>
   3c028:	0f 94 a5 d7 	call	0x3af4a	; 0x3af4a <__fp_pscB>
   3c02c:	11 f0       	breq	.+4      	; 0x3c032 <__gesf2+0x1a>
   3c02e:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3c032:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3c036:	b9 01       	movw	r22, r18
   3c038:	ca 01       	movw	r24, r20
   3c03a:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>

0003c03e <hypot>:
   3c03e:	9f 77       	andi	r25, 0x7F	; 127
   3c040:	5f 77       	andi	r21, 0x7F	; 127
   3c042:	0f 94 bd d7 	call	0x3af7a	; 0x3af7a <__fp_split3>
   3c046:	68 f3       	brcs	.-38     	; 0x3c022 <__gesf2+0xa>
   3c048:	99 23       	and	r25, r25
   3c04a:	a9 f3       	breq	.-22     	; 0x3c036 <__gesf2+0x1e>
   3c04c:	55 23       	and	r21, r21
   3c04e:	a9 f3       	breq	.-22     	; 0x3c03a <__gesf2+0x22>
   3c050:	ff 27       	eor	r31, r31
   3c052:	95 17       	cp	r25, r21
   3c054:	58 f4       	brcc	.+22     	; 0x3c06c <hypot+0x2e>
   3c056:	e5 2f       	mov	r30, r21
   3c058:	e9 1b       	sub	r30, r25
   3c05a:	ed 30       	cpi	r30, 0x0D	; 13
   3c05c:	60 f7       	brcc	.-40     	; 0x3c036 <__gesf2+0x1e>
   3c05e:	5e 3b       	cpi	r21, 0xBE	; 190
   3c060:	10 f0       	brcs	.+4      	; 0x3c066 <hypot+0x28>
   3c062:	f1 e4       	ldi	r31, 0x41	; 65
   3c064:	1c c0       	rjmp	.+56     	; 0x3c09e <hypot+0x60>
   3c066:	90 34       	cpi	r25, 0x40	; 64
   3c068:	e0 f4       	brcc	.+56     	; 0x3c0a2 <hypot+0x64>
   3c06a:	0a c0       	rjmp	.+20     	; 0x3c080 <hypot+0x42>
   3c06c:	e9 2f       	mov	r30, r25
   3c06e:	e5 1b       	sub	r30, r21
   3c070:	ed 30       	cpi	r30, 0x0D	; 13
   3c072:	18 f7       	brcc	.-58     	; 0x3c03a <__gesf2+0x22>
   3c074:	9e 3b       	cpi	r25, 0xBE	; 190
   3c076:	10 f0       	brcs	.+4      	; 0x3c07c <hypot+0x3e>
   3c078:	f1 e4       	ldi	r31, 0x41	; 65
   3c07a:	11 c0       	rjmp	.+34     	; 0x3c09e <hypot+0x60>
   3c07c:	50 34       	cpi	r21, 0x40	; 64
   3c07e:	88 f4       	brcc	.+34     	; 0x3c0a2 <hypot+0x64>
   3c080:	f9 ea       	ldi	r31, 0xA9	; 169
   3c082:	88 23       	and	r24, r24
   3c084:	2a f0       	brmi	.+10     	; 0x3c090 <hypot+0x52>
   3c086:	9a 95       	dec	r25
   3c088:	66 0f       	add	r22, r22
   3c08a:	77 1f       	adc	r23, r23
   3c08c:	88 1f       	adc	r24, r24
   3c08e:	da f7       	brpl	.-10     	; 0x3c086 <hypot+0x48>
   3c090:	44 23       	and	r20, r20
   3c092:	2a f0       	brmi	.+10     	; 0x3c09e <hypot+0x60>
   3c094:	5a 95       	dec	r21
   3c096:	22 0f       	add	r18, r18
   3c098:	33 1f       	adc	r19, r19
   3c09a:	44 1f       	adc	r20, r20
   3c09c:	da f7       	brpl	.-10     	; 0x3c094 <hypot+0x56>
   3c09e:	9f 1b       	sub	r25, r31
   3c0a0:	5f 1b       	sub	r21, r31
   3c0a2:	ff 93       	push	r31
   3c0a4:	1f 93       	push	r17
   3c0a6:	0f 93       	push	r16
   3c0a8:	ff 92       	push	r15
   3c0aa:	ef 92       	push	r14
   3c0ac:	79 01       	movw	r14, r18
   3c0ae:	8a 01       	movw	r16, r20
   3c0b0:	bb 27       	eor	r27, r27
   3c0b2:	ab 2f       	mov	r26, r27
   3c0b4:	9b 01       	movw	r18, r22
   3c0b6:	ac 01       	movw	r20, r24
   3c0b8:	0f 94 3e d7 	call	0x3ae7c	; 0x3ae7c <__mulsf3_pse>
   3c0bc:	97 01       	movw	r18, r14
   3c0be:	a8 01       	movw	r20, r16
   3c0c0:	bf 93       	push	r27
   3c0c2:	7b 01       	movw	r14, r22
   3c0c4:	8c 01       	movw	r16, r24
   3c0c6:	aa 27       	eor	r26, r26
   3c0c8:	ba 2f       	mov	r27, r26
   3c0ca:	b9 01       	movw	r22, r18
   3c0cc:	ca 01       	movw	r24, r20
   3c0ce:	0f 94 3e d7 	call	0x3ae7c	; 0x3ae7c <__mulsf3_pse>
   3c0d2:	af 91       	pop	r26
   3c0d4:	97 01       	movw	r18, r14
   3c0d6:	a8 01       	movw	r20, r16
   3c0d8:	ef 90       	pop	r14
   3c0da:	ff 90       	pop	r15
   3c0dc:	0f 91       	pop	r16
   3c0de:	1f 91       	pop	r17
   3c0e0:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3c0e4:	0f 94 ac d7 	call	0x3af58	; 0x3af58 <__fp_round>
   3c0e8:	0f 94 51 e1 	call	0x3c2a2	; 0x3c2a2 <sqrt>
   3c0ec:	4f 91       	pop	r20
   3c0ee:	40 ff       	sbrs	r20, 0
   3c0f0:	08 95       	ret
   3c0f2:	55 27       	eor	r21, r21
   3c0f4:	47 fd       	sbrc	r20, 7
   3c0f6:	50 95       	com	r21
   3c0f8:	0d 94 8a e0 	jmp	0x3c114	; 0x3c114 <ldexp>

0003c0fc <inverse>:
   3c0fc:	9b 01       	movw	r18, r22
   3c0fe:	ac 01       	movw	r20, r24
   3c100:	60 e0       	ldi	r22, 0x00	; 0
   3c102:	70 e0       	ldi	r23, 0x00	; 0
   3c104:	80 e8       	ldi	r24, 0x80	; 128
   3c106:	9f e3       	ldi	r25, 0x3F	; 63
   3c108:	0d 94 82 de 	jmp	0x3bd04	; 0x3bd04 <__divsf3>
   3c10c:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3c110:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>

0003c114 <ldexp>:
   3c114:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3c118:	d8 f3       	brcs	.-10     	; 0x3c110 <inverse+0x14>
   3c11a:	99 23       	and	r25, r25
   3c11c:	c9 f3       	breq	.-14     	; 0x3c110 <inverse+0x14>
   3c11e:	94 0f       	add	r25, r20
   3c120:	51 1d       	adc	r21, r1
   3c122:	a3 f3       	brvs	.-24     	; 0x3c10c <inverse+0x10>
   3c124:	91 50       	subi	r25, 0x01	; 1
   3c126:	50 40       	sbci	r21, 0x00	; 0
   3c128:	94 f0       	brlt	.+36     	; 0x3c14e <ldexp+0x3a>
   3c12a:	59 f0       	breq	.+22     	; 0x3c142 <ldexp+0x2e>
   3c12c:	88 23       	and	r24, r24
   3c12e:	32 f0       	brmi	.+12     	; 0x3c13c <ldexp+0x28>
   3c130:	66 0f       	add	r22, r22
   3c132:	77 1f       	adc	r23, r23
   3c134:	88 1f       	adc	r24, r24
   3c136:	91 50       	subi	r25, 0x01	; 1
   3c138:	50 40       	sbci	r21, 0x00	; 0
   3c13a:	c1 f7       	brne	.-16     	; 0x3c12c <ldexp+0x18>
   3c13c:	9e 3f       	cpi	r25, 0xFE	; 254
   3c13e:	51 05       	cpc	r21, r1
   3c140:	2c f7       	brge	.-54     	; 0x3c10c <inverse+0x10>
   3c142:	88 0f       	add	r24, r24
   3c144:	91 1d       	adc	r25, r1
   3c146:	96 95       	lsr	r25
   3c148:	87 95       	ror	r24
   3c14a:	97 f9       	bld	r25, 7
   3c14c:	08 95       	ret
   3c14e:	5f 3f       	cpi	r21, 0xFF	; 255
   3c150:	ac f0       	brlt	.+42     	; 0x3c17c <ldexp+0x68>
   3c152:	98 3e       	cpi	r25, 0xE8	; 232
   3c154:	9c f0       	brlt	.+38     	; 0x3c17c <ldexp+0x68>
   3c156:	bb 27       	eor	r27, r27
   3c158:	86 95       	lsr	r24
   3c15a:	77 95       	ror	r23
   3c15c:	67 95       	ror	r22
   3c15e:	b7 95       	ror	r27
   3c160:	08 f4       	brcc	.+2      	; 0x3c164 <ldexp+0x50>
   3c162:	b1 60       	ori	r27, 0x01	; 1
   3c164:	93 95       	inc	r25
   3c166:	c1 f7       	brne	.-16     	; 0x3c158 <ldexp+0x44>
   3c168:	bb 0f       	add	r27, r27
   3c16a:	58 f7       	brcc	.-42     	; 0x3c142 <ldexp+0x2e>
   3c16c:	11 f4       	brne	.+4      	; 0x3c172 <ldexp+0x5e>
   3c16e:	60 ff       	sbrs	r22, 0
   3c170:	e8 cf       	rjmp	.-48     	; 0x3c142 <ldexp+0x2e>
   3c172:	6f 5f       	subi	r22, 0xFF	; 255
   3c174:	7f 4f       	sbci	r23, 0xFF	; 255
   3c176:	8f 4f       	sbci	r24, 0xFF	; 255
   3c178:	9f 4f       	sbci	r25, 0xFF	; 255
   3c17a:	e3 cf       	rjmp	.-58     	; 0x3c142 <ldexp+0x2e>
   3c17c:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>

0003c180 <lround>:
   3c180:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3c184:	58 f1       	brcs	.+86     	; 0x3c1dc <lround+0x5c>
   3c186:	9e 57       	subi	r25, 0x7E	; 126
   3c188:	60 f1       	brcs	.+88     	; 0x3c1e2 <lround+0x62>
   3c18a:	98 51       	subi	r25, 0x18	; 24
   3c18c:	a0 f0       	brcs	.+40     	; 0x3c1b6 <lround+0x36>
   3c18e:	e9 f0       	breq	.+58     	; 0x3c1ca <lround+0x4a>
   3c190:	98 30       	cpi	r25, 0x08	; 8
   3c192:	20 f5       	brcc	.+72     	; 0x3c1dc <lround+0x5c>
   3c194:	09 2e       	mov	r0, r25
   3c196:	99 27       	eor	r25, r25
   3c198:	66 0f       	add	r22, r22
   3c19a:	77 1f       	adc	r23, r23
   3c19c:	88 1f       	adc	r24, r24
   3c19e:	99 1f       	adc	r25, r25
   3c1a0:	0a 94       	dec	r0
   3c1a2:	d1 f7       	brne	.-12     	; 0x3c198 <lround+0x18>
   3c1a4:	12 c0       	rjmp	.+36     	; 0x3c1ca <lround+0x4a>
   3c1a6:	06 2e       	mov	r0, r22
   3c1a8:	67 2f       	mov	r22, r23
   3c1aa:	78 2f       	mov	r23, r24
   3c1ac:	88 27       	eor	r24, r24
   3c1ae:	98 5f       	subi	r25, 0xF8	; 248
   3c1b0:	11 f4       	brne	.+4      	; 0x3c1b6 <lround+0x36>
   3c1b2:	00 0c       	add	r0, r0
   3c1b4:	07 c0       	rjmp	.+14     	; 0x3c1c4 <lround+0x44>
   3c1b6:	99 3f       	cpi	r25, 0xF9	; 249
   3c1b8:	b4 f3       	brlt	.-20     	; 0x3c1a6 <lround+0x26>
   3c1ba:	86 95       	lsr	r24
   3c1bc:	77 95       	ror	r23
   3c1be:	67 95       	ror	r22
   3c1c0:	93 95       	inc	r25
   3c1c2:	d9 f7       	brne	.-10     	; 0x3c1ba <lround+0x3a>
   3c1c4:	61 1d       	adc	r22, r1
   3c1c6:	71 1d       	adc	r23, r1
   3c1c8:	81 1d       	adc	r24, r1
   3c1ca:	3e f4       	brtc	.+14     	; 0x3c1da <lround+0x5a>
   3c1cc:	90 95       	com	r25
   3c1ce:	80 95       	com	r24
   3c1d0:	70 95       	com	r23
   3c1d2:	61 95       	neg	r22
   3c1d4:	7f 4f       	sbci	r23, 0xFF	; 255
   3c1d6:	8f 4f       	sbci	r24, 0xFF	; 255
   3c1d8:	9f 4f       	sbci	r25, 0xFF	; 255
   3c1da:	08 95       	ret
   3c1dc:	68 94       	set
   3c1de:	0d 94 e0 d7 	jmp	0x3afc0	; 0x3afc0 <__fp_szero>
   3c1e2:	0d 94 df d7 	jmp	0x3afbe	; 0x3afbe <__fp_zero>

0003c1e6 <pow>:
   3c1e6:	fa 01       	movw	r30, r20
   3c1e8:	ee 0f       	add	r30, r30
   3c1ea:	ff 1f       	adc	r31, r31
   3c1ec:	30 96       	adiw	r30, 0x00	; 0
   3c1ee:	21 05       	cpc	r18, r1
   3c1f0:	31 05       	cpc	r19, r1
   3c1f2:	a1 f1       	breq	.+104    	; 0x3c25c <pow+0x76>
   3c1f4:	61 15       	cp	r22, r1
   3c1f6:	71 05       	cpc	r23, r1
   3c1f8:	61 f4       	brne	.+24     	; 0x3c212 <pow+0x2c>
   3c1fa:	80 38       	cpi	r24, 0x80	; 128
   3c1fc:	bf e3       	ldi	r27, 0x3F	; 63
   3c1fe:	9b 07       	cpc	r25, r27
   3c200:	49 f1       	breq	.+82     	; 0x3c254 <pow+0x6e>
   3c202:	68 94       	set
   3c204:	90 38       	cpi	r25, 0x80	; 128
   3c206:	81 05       	cpc	r24, r1
   3c208:	61 f0       	breq	.+24     	; 0x3c222 <pow+0x3c>
   3c20a:	80 38       	cpi	r24, 0x80	; 128
   3c20c:	bf ef       	ldi	r27, 0xFF	; 255
   3c20e:	9b 07       	cpc	r25, r27
   3c210:	41 f0       	breq	.+16     	; 0x3c222 <pow+0x3c>
   3c212:	99 23       	and	r25, r25
   3c214:	4a f5       	brpl	.+82     	; 0x3c268 <pow+0x82>
   3c216:	ff 3f       	cpi	r31, 0xFF	; 255
   3c218:	e1 05       	cpc	r30, r1
   3c21a:	31 05       	cpc	r19, r1
   3c21c:	21 05       	cpc	r18, r1
   3c21e:	19 f1       	breq	.+70     	; 0x3c266 <pow+0x80>
   3c220:	e8 94       	clt
   3c222:	08 94       	sec
   3c224:	e7 95       	ror	r30
   3c226:	d9 01       	movw	r26, r18
   3c228:	aa 23       	and	r26, r26
   3c22a:	29 f4       	brne	.+10     	; 0x3c236 <pow+0x50>
   3c22c:	ab 2f       	mov	r26, r27
   3c22e:	be 2f       	mov	r27, r30
   3c230:	f8 5f       	subi	r31, 0xF8	; 248
   3c232:	d0 f3       	brcs	.-12     	; 0x3c228 <pow+0x42>
   3c234:	10 c0       	rjmp	.+32     	; 0x3c256 <pow+0x70>
   3c236:	ff 5f       	subi	r31, 0xFF	; 255
   3c238:	70 f4       	brcc	.+28     	; 0x3c256 <pow+0x70>
   3c23a:	a6 95       	lsr	r26
   3c23c:	e0 f7       	brcc	.-8      	; 0x3c236 <pow+0x50>
   3c23e:	f7 39       	cpi	r31, 0x97	; 151
   3c240:	50 f0       	brcs	.+20     	; 0x3c256 <pow+0x70>
   3c242:	19 f0       	breq	.+6      	; 0x3c24a <pow+0x64>
   3c244:	ff 3a       	cpi	r31, 0xAF	; 175
   3c246:	38 f4       	brcc	.+14     	; 0x3c256 <pow+0x70>
   3c248:	9f 77       	andi	r25, 0x7F	; 127
   3c24a:	9f 93       	push	r25
   3c24c:	0d d0       	rcall	.+26     	; 0x3c268 <pow+0x82>
   3c24e:	0f 90       	pop	r0
   3c250:	07 fc       	sbrc	r0, 7
   3c252:	90 58       	subi	r25, 0x80	; 128
   3c254:	08 95       	ret
   3c256:	46 f0       	brts	.+16     	; 0x3c268 <pow+0x82>
   3c258:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3c25c:	60 e0       	ldi	r22, 0x00	; 0
   3c25e:	70 e0       	ldi	r23, 0x00	; 0
   3c260:	80 e8       	ldi	r24, 0x80	; 128
   3c262:	9f e3       	ldi	r25, 0x3F	; 63
   3c264:	08 95       	ret
   3c266:	4f e7       	ldi	r20, 0x7F	; 127
   3c268:	9f 77       	andi	r25, 0x7F	; 127
   3c26a:	5f 93       	push	r21
   3c26c:	4f 93       	push	r20
   3c26e:	3f 93       	push	r19
   3c270:	2f 93       	push	r18
   3c272:	0f 94 f3 e1 	call	0x3c3e6	; 0x3c3e6 <log>
   3c276:	2f 91       	pop	r18
   3c278:	3f 91       	pop	r19
   3c27a:	4f 91       	pop	r20
   3c27c:	5f 91       	pop	r21
   3c27e:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3c282:	0d 94 9e e1 	jmp	0x3c33c	; 0x3c33c <exp>

0003c286 <sin>:
   3c286:	9f 93       	push	r25
   3c288:	0f 94 b7 df 	call	0x3bf6e	; 0x3bf6e <__fp_rempio2>
   3c28c:	0f 90       	pop	r0
   3c28e:	07 fc       	sbrc	r0, 7
   3c290:	ee 5f       	subi	r30, 0xFE	; 254
   3c292:	0d 94 e0 df 	jmp	0x3bfc0	; 0x3bfc0 <__fp_sinus>
   3c296:	19 f4       	brne	.+6      	; 0x3c29e <sin+0x18>
   3c298:	16 f4       	brtc	.+4      	; 0x3c29e <sin+0x18>
   3c29a:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3c29e:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>

0003c2a2 <sqrt>:
   3c2a2:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3c2a6:	b8 f3       	brcs	.-18     	; 0x3c296 <sin+0x10>
   3c2a8:	99 23       	and	r25, r25
   3c2aa:	c9 f3       	breq	.-14     	; 0x3c29e <sin+0x18>
   3c2ac:	b6 f3       	brts	.-20     	; 0x3c29a <sin+0x14>
   3c2ae:	9f 57       	subi	r25, 0x7F	; 127
   3c2b0:	55 0b       	sbc	r21, r21
   3c2b2:	87 ff       	sbrs	r24, 7
   3c2b4:	0f 94 d0 e1 	call	0x3c3a0	; 0x3c3a0 <__fp_norm2>
   3c2b8:	00 24       	eor	r0, r0
   3c2ba:	a0 e6       	ldi	r26, 0x60	; 96
   3c2bc:	40 ea       	ldi	r20, 0xA0	; 160
   3c2be:	90 01       	movw	r18, r0
   3c2c0:	80 58       	subi	r24, 0x80	; 128
   3c2c2:	56 95       	lsr	r21
   3c2c4:	97 95       	ror	r25
   3c2c6:	28 f4       	brcc	.+10     	; 0x3c2d2 <sqrt+0x30>
   3c2c8:	80 5c       	subi	r24, 0xC0	; 192
   3c2ca:	66 0f       	add	r22, r22
   3c2cc:	77 1f       	adc	r23, r23
   3c2ce:	88 1f       	adc	r24, r24
   3c2d0:	20 f0       	brcs	.+8      	; 0x3c2da <sqrt+0x38>
   3c2d2:	26 17       	cp	r18, r22
   3c2d4:	37 07       	cpc	r19, r23
   3c2d6:	48 07       	cpc	r20, r24
   3c2d8:	30 f4       	brcc	.+12     	; 0x3c2e6 <sqrt+0x44>
   3c2da:	62 1b       	sub	r22, r18
   3c2dc:	73 0b       	sbc	r23, r19
   3c2de:	84 0b       	sbc	r24, r20
   3c2e0:	20 29       	or	r18, r0
   3c2e2:	31 29       	or	r19, r1
   3c2e4:	4a 2b       	or	r20, r26
   3c2e6:	a6 95       	lsr	r26
   3c2e8:	17 94       	ror	r1
   3c2ea:	07 94       	ror	r0
   3c2ec:	20 25       	eor	r18, r0
   3c2ee:	31 25       	eor	r19, r1
   3c2f0:	4a 27       	eor	r20, r26
   3c2f2:	58 f7       	brcc	.-42     	; 0x3c2ca <sqrt+0x28>
   3c2f4:	66 0f       	add	r22, r22
   3c2f6:	77 1f       	adc	r23, r23
   3c2f8:	88 1f       	adc	r24, r24
   3c2fa:	20 f0       	brcs	.+8      	; 0x3c304 <sqrt+0x62>
   3c2fc:	26 17       	cp	r18, r22
   3c2fe:	37 07       	cpc	r19, r23
   3c300:	48 07       	cpc	r20, r24
   3c302:	30 f4       	brcc	.+12     	; 0x3c310 <sqrt+0x6e>
   3c304:	62 0b       	sbc	r22, r18
   3c306:	73 0b       	sbc	r23, r19
   3c308:	84 0b       	sbc	r24, r20
   3c30a:	20 0d       	add	r18, r0
   3c30c:	31 1d       	adc	r19, r1
   3c30e:	41 1d       	adc	r20, r1
   3c310:	a0 95       	com	r26
   3c312:	81 f7       	brne	.-32     	; 0x3c2f4 <sqrt+0x52>
   3c314:	b9 01       	movw	r22, r18
   3c316:	84 2f       	mov	r24, r20
   3c318:	91 58       	subi	r25, 0x81	; 129
   3c31a:	88 0f       	add	r24, r24
   3c31c:	96 95       	lsr	r25
   3c31e:	87 95       	ror	r24
   3c320:	08 95       	ret

0003c322 <__unordsf2>:
   3c322:	0f 94 41 df 	call	0x3be82	; 0x3be82 <__fp_cmp>
   3c326:	88 0b       	sbc	r24, r24
   3c328:	99 0b       	sbc	r25, r25
   3c32a:	08 95       	ret
   3c32c:	29 f4       	brne	.+10     	; 0x3c338 <__unordsf2+0x16>
   3c32e:	16 f0       	brts	.+4      	; 0x3c334 <__unordsf2+0x12>
   3c330:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>
   3c334:	0d 94 df d7 	jmp	0x3afbe	; 0x3afbe <__fp_zero>
   3c338:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>

0003c33c <exp>:
   3c33c:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3c340:	a8 f3       	brcs	.-22     	; 0x3c32c <__unordsf2+0xa>
   3c342:	96 38       	cpi	r25, 0x86	; 134
   3c344:	a0 f7       	brcc	.-24     	; 0x3c32e <__unordsf2+0xc>
   3c346:	07 f8       	bld	r0, 7
   3c348:	0f 92       	push	r0
   3c34a:	e8 94       	clt
   3c34c:	2b e3       	ldi	r18, 0x3B	; 59
   3c34e:	3a ea       	ldi	r19, 0xAA	; 170
   3c350:	48 eb       	ldi	r20, 0xB8	; 184
   3c352:	5f e7       	ldi	r21, 0x7F	; 127
   3c354:	0f 94 3e d7 	call	0x3ae7c	; 0x3ae7c <__mulsf3_pse>
   3c358:	0f 92       	push	r0
   3c35a:	0f 92       	push	r0
   3c35c:	0f 92       	push	r0
   3c35e:	4d b7       	in	r20, 0x3d	; 61
   3c360:	5e b7       	in	r21, 0x3e	; 62
   3c362:	0f 92       	push	r0
   3c364:	0f 94 3b e2 	call	0x3c476	; 0x3c476 <modf>
   3c368:	ee ee       	ldi	r30, 0xEE	; 238
   3c36a:	f0 e7       	ldi	r31, 0x70	; 112
   3c36c:	0f 94 8e df 	call	0x3bf1c	; 0x3bf1c <__fp_powser>
   3c370:	4f 91       	pop	r20
   3c372:	5f 91       	pop	r21
   3c374:	ef 91       	pop	r30
   3c376:	ff 91       	pop	r31
   3c378:	e5 95       	asr	r30
   3c37a:	ee 1f       	adc	r30, r30
   3c37c:	ff 1f       	adc	r31, r31
   3c37e:	49 f0       	breq	.+18     	; 0x3c392 <exp+0x56>
   3c380:	fe 57       	subi	r31, 0x7E	; 126
   3c382:	e0 68       	ori	r30, 0x80	; 128
   3c384:	44 27       	eor	r20, r20
   3c386:	ee 0f       	add	r30, r30
   3c388:	44 1f       	adc	r20, r20
   3c38a:	fa 95       	dec	r31
   3c38c:	e1 f7       	brne	.-8      	; 0x3c386 <exp+0x4a>
   3c38e:	41 95       	neg	r20
   3c390:	55 0b       	sbc	r21, r21
   3c392:	0f 94 8a e0 	call	0x3c114	; 0x3c114 <ldexp>
   3c396:	0f 90       	pop	r0
   3c398:	07 fe       	sbrs	r0, 7
   3c39a:	0d 94 7e e0 	jmp	0x3c0fc	; 0x3c0fc <inverse>
   3c39e:	08 95       	ret

0003c3a0 <__fp_norm2>:
   3c3a0:	91 50       	subi	r25, 0x01	; 1
   3c3a2:	50 40       	sbci	r21, 0x00	; 0
   3c3a4:	66 0f       	add	r22, r22
   3c3a6:	77 1f       	adc	r23, r23
   3c3a8:	88 1f       	adc	r24, r24
   3c3aa:	d2 f7       	brpl	.-12     	; 0x3c3a0 <__fp_norm2>
   3c3ac:	08 95       	ret

0003c3ae <__fp_powsodd>:
   3c3ae:	9f 93       	push	r25
   3c3b0:	8f 93       	push	r24
   3c3b2:	7f 93       	push	r23
   3c3b4:	6f 93       	push	r22
   3c3b6:	ff 93       	push	r31
   3c3b8:	ef 93       	push	r30
   3c3ba:	9b 01       	movw	r18, r22
   3c3bc:	ac 01       	movw	r20, r24
   3c3be:	0f 94 28 d7 	call	0x3ae50	; 0x3ae50 <__mulsf3>
   3c3c2:	ef 91       	pop	r30
   3c3c4:	ff 91       	pop	r31
   3c3c6:	0f 94 8e df 	call	0x3bf1c	; 0x3bf1c <__fp_powser>
   3c3ca:	2f 91       	pop	r18
   3c3cc:	3f 91       	pop	r19
   3c3ce:	4f 91       	pop	r20
   3c3d0:	5f 91       	pop	r21
   3c3d2:	0d 94 28 d7 	jmp	0x3ae50	; 0x3ae50 <__mulsf3>
   3c3d6:	16 f0       	brts	.+4      	; 0x3c3dc <__fp_powsodd+0x2e>
   3c3d8:	0d 94 80 df 	jmp	0x3bf00	; 0x3bf00 <__fp_mpack>
   3c3dc:	0d 94 9b d7 	jmp	0x3af36	; 0x3af36 <__fp_nan>
   3c3e0:	68 94       	set
   3c3e2:	0d 94 95 d7 	jmp	0x3af2a	; 0x3af2a <__fp_inf>

0003c3e6 <log>:
   3c3e6:	0f 94 c5 d7 	call	0x3af8a	; 0x3af8a <__fp_splitA>
   3c3ea:	a8 f3       	brcs	.-22     	; 0x3c3d6 <__fp_powsodd+0x28>
   3c3ec:	99 23       	and	r25, r25
   3c3ee:	c1 f3       	breq	.-16     	; 0x3c3e0 <__fp_powsodd+0x32>
   3c3f0:	ae f3       	brts	.-22     	; 0x3c3dc <__fp_powsodd+0x2e>
   3c3f2:	df 93       	push	r29
   3c3f4:	cf 93       	push	r28
   3c3f6:	1f 93       	push	r17
   3c3f8:	0f 93       	push	r16
   3c3fa:	ff 92       	push	r15
   3c3fc:	c9 2f       	mov	r28, r25
   3c3fe:	dd 27       	eor	r29, r29
   3c400:	88 23       	and	r24, r24
   3c402:	2a f0       	brmi	.+10     	; 0x3c40e <log+0x28>
   3c404:	21 97       	sbiw	r28, 0x01	; 1
   3c406:	66 0f       	add	r22, r22
   3c408:	77 1f       	adc	r23, r23
   3c40a:	88 1f       	adc	r24, r24
   3c40c:	da f7       	brpl	.-10     	; 0x3c404 <log+0x1e>
   3c40e:	20 e0       	ldi	r18, 0x00	; 0
   3c410:	30 e0       	ldi	r19, 0x00	; 0
   3c412:	40 e8       	ldi	r20, 0x80	; 128
   3c414:	5f eb       	ldi	r21, 0xBF	; 191
   3c416:	9f e3       	ldi	r25, 0x3F	; 63
   3c418:	88 39       	cpi	r24, 0x98	; 152
   3c41a:	20 f0       	brcs	.+8      	; 0x3c424 <log+0x3e>
   3c41c:	80 3e       	cpi	r24, 0xE0	; 224
   3c41e:	38 f0       	brcs	.+14     	; 0x3c42e <log+0x48>
   3c420:	21 96       	adiw	r28, 0x01	; 1
   3c422:	8f 77       	andi	r24, 0x7F	; 127
   3c424:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3c428:	e6 e1       	ldi	r30, 0x16	; 22
   3c42a:	f1 e7       	ldi	r31, 0x71	; 113
   3c42c:	04 c0       	rjmp	.+8      	; 0x3c436 <log+0x50>
   3c42e:	0f 94 83 dd 	call	0x3bb06	; 0x3bb06 <__addsf3>
   3c432:	e3 e4       	ldi	r30, 0x43	; 67
   3c434:	f1 e7       	ldi	r31, 0x71	; 113
   3c436:	0f 94 8e df 	call	0x3bf1c	; 0x3bf1c <__fp_powser>
   3c43a:	8b 01       	movw	r16, r22
   3c43c:	be 01       	movw	r22, r28
   3c43e:	ec 01       	movw	r28, r24
   3c440:	fb 2e       	mov	r15, r27
   3c442:	6f 57       	subi	r22, 0x7F	; 127
   3c444:	71 09       	sbc	r23, r1
   3c446:	75 95       	asr	r23
   3c448:	77 1f       	adc	r23, r23
   3c44a:	88 0b       	sbc	r24, r24
   3c44c:	99 0b       	sbc	r25, r25
   3c44e:	0f 94 e9 d6 	call	0x3add2	; 0x3add2 <__floatsisf>
   3c452:	28 e1       	ldi	r18, 0x18	; 24
   3c454:	32 e7       	ldi	r19, 0x72	; 114
   3c456:	41 e3       	ldi	r20, 0x31	; 49
   3c458:	5f e3       	ldi	r21, 0x3F	; 63
   3c45a:	0f 94 3b d7 	call	0x3ae76	; 0x3ae76 <__mulsf3x>
   3c45e:	af 2d       	mov	r26, r15
   3c460:	98 01       	movw	r18, r16
   3c462:	ae 01       	movw	r20, r28
   3c464:	ff 90       	pop	r15
   3c466:	0f 91       	pop	r16
   3c468:	1f 91       	pop	r17
   3c46a:	cf 91       	pop	r28
   3c46c:	df 91       	pop	r29
   3c46e:	0f 94 9a dd 	call	0x3bb34	; 0x3bb34 <__addsf3x>
   3c472:	0d 94 ac d7 	jmp	0x3af58	; 0x3af58 <__fp_round>

0003c476 <modf>:
   3c476:	fa 01       	movw	r30, r20
   3c478:	dc 01       	movw	r26, r24
   3c47a:	aa 0f       	add	r26, r26
   3c47c:	bb 1f       	adc	r27, r27
   3c47e:	9b 01       	movw	r18, r22
   3c480:	ac 01       	movw	r20, r24
   3c482:	bf 57       	subi	r27, 0x7F	; 127
   3c484:	28 f4       	brcc	.+10     	; 0x3c490 <modf+0x1a>
   3c486:	22 27       	eor	r18, r18
   3c488:	33 27       	eor	r19, r19
   3c48a:	44 27       	eor	r20, r20
   3c48c:	50 78       	andi	r21, 0x80	; 128
   3c48e:	20 c0       	rjmp	.+64     	; 0x3c4d0 <modf+0x5a>
   3c490:	b7 51       	subi	r27, 0x17	; 23
   3c492:	90 f4       	brcc	.+36     	; 0x3c4b8 <modf+0x42>
   3c494:	ab 2f       	mov	r26, r27
   3c496:	00 24       	eor	r0, r0
   3c498:	46 95       	lsr	r20
   3c49a:	37 95       	ror	r19
   3c49c:	27 95       	ror	r18
   3c49e:	01 1c       	adc	r0, r1
   3c4a0:	a3 95       	inc	r26
   3c4a2:	d2 f3       	brmi	.-12     	; 0x3c498 <modf+0x22>
   3c4a4:	00 20       	and	r0, r0
   3c4a6:	71 f0       	breq	.+28     	; 0x3c4c4 <modf+0x4e>
   3c4a8:	22 0f       	add	r18, r18
   3c4aa:	33 1f       	adc	r19, r19
   3c4ac:	44 1f       	adc	r20, r20
   3c4ae:	b3 95       	inc	r27
   3c4b0:	da f3       	brmi	.-10     	; 0x3c4a8 <modf+0x32>
   3c4b2:	0e d0       	rcall	.+28     	; 0x3c4d0 <modf+0x5a>
   3c4b4:	0d 94 82 dd 	jmp	0x3bb04	; 0x3bb04 <__subsf3>
   3c4b8:	61 30       	cpi	r22, 0x01	; 1
   3c4ba:	71 05       	cpc	r23, r1
   3c4bc:	a0 e8       	ldi	r26, 0x80	; 128
   3c4be:	8a 07       	cpc	r24, r26
   3c4c0:	b9 46       	sbci	r27, 0x69	; 105
   3c4c2:	30 f4       	brcc	.+12     	; 0x3c4d0 <modf+0x5a>
   3c4c4:	9b 01       	movw	r18, r22
   3c4c6:	ac 01       	movw	r20, r24
   3c4c8:	66 27       	eor	r22, r22
   3c4ca:	77 27       	eor	r23, r23
   3c4cc:	88 27       	eor	r24, r24
   3c4ce:	90 78       	andi	r25, 0x80	; 128
   3c4d0:	30 96       	adiw	r30, 0x00	; 0
   3c4d2:	21 f0       	breq	.+8      	; 0x3c4dc <modf+0x66>
   3c4d4:	20 83       	st	Z, r18
   3c4d6:	31 83       	std	Z+1, r19	; 0x01
   3c4d8:	42 83       	std	Z+2, r20	; 0x02
   3c4da:	53 83       	std	Z+3, r21	; 0x03
   3c4dc:	08 95       	ret

0003c4de <tolower>:
   3c4de:	91 11       	cpse	r25, r1
   3c4e0:	08 95       	ret
   3c4e2:	81 54       	subi	r24, 0x41	; 65
   3c4e4:	8a 51       	subi	r24, 0x1A	; 26
   3c4e6:	08 f4       	brcc	.+2      	; 0x3c4ea <tolower+0xc>
   3c4e8:	80 5e       	subi	r24, 0xE0	; 224
   3c4ea:	85 5a       	subi	r24, 0xA5	; 165
   3c4ec:	08 95       	ret

0003c4ee <memcmp>:
   3c4ee:	fb 01       	movw	r30, r22
   3c4f0:	dc 01       	movw	r26, r24
   3c4f2:	04 c0       	rjmp	.+8      	; 0x3c4fc <memcmp+0xe>
   3c4f4:	8d 91       	ld	r24, X+
   3c4f6:	01 90       	ld	r0, Z+
   3c4f8:	80 19       	sub	r24, r0
   3c4fa:	21 f4       	brne	.+8      	; 0x3c504 <memcmp+0x16>
   3c4fc:	41 50       	subi	r20, 0x01	; 1
   3c4fe:	50 40       	sbci	r21, 0x00	; 0
   3c500:	c8 f7       	brcc	.-14     	; 0x3c4f4 <memcmp+0x6>
   3c502:	88 1b       	sub	r24, r24
   3c504:	99 0b       	sbc	r25, r25
   3c506:	08 95       	ret

0003c508 <memcpy>:
   3c508:	fb 01       	movw	r30, r22
   3c50a:	dc 01       	movw	r26, r24
   3c50c:	02 c0       	rjmp	.+4      	; 0x3c512 <memcpy+0xa>
   3c50e:	01 90       	ld	r0, Z+
   3c510:	0d 92       	st	X+, r0
   3c512:	41 50       	subi	r20, 0x01	; 1
   3c514:	50 40       	sbci	r21, 0x00	; 0
   3c516:	d8 f7       	brcc	.-10     	; 0x3c50e <memcpy+0x6>
   3c518:	08 95       	ret

0003c51a <memset>:
   3c51a:	dc 01       	movw	r26, r24
   3c51c:	01 c0       	rjmp	.+2      	; 0x3c520 <memset+0x6>
   3c51e:	6d 93       	st	X+, r22
   3c520:	41 50       	subi	r20, 0x01	; 1
   3c522:	50 40       	sbci	r21, 0x00	; 0
   3c524:	e0 f7       	brcc	.-8      	; 0x3c51e <memset+0x4>
   3c526:	08 95       	ret

0003c528 <strcasecmp>:
   3c528:	fb 01       	movw	r30, r22
   3c52a:	dc 01       	movw	r26, r24
   3c52c:	8d 91       	ld	r24, X+
   3c52e:	81 34       	cpi	r24, 0x41	; 65
   3c530:	1c f0       	brlt	.+6      	; 0x3c538 <strcasecmp+0x10>
   3c532:	8b 35       	cpi	r24, 0x5B	; 91
   3c534:	0c f4       	brge	.+2      	; 0x3c538 <strcasecmp+0x10>
   3c536:	80 5e       	subi	r24, 0xE0	; 224
   3c538:	61 91       	ld	r22, Z+
   3c53a:	61 34       	cpi	r22, 0x41	; 65
   3c53c:	1c f0       	brlt	.+6      	; 0x3c544 <strcasecmp+0x1c>
   3c53e:	6b 35       	cpi	r22, 0x5B	; 91
   3c540:	0c f4       	brge	.+2      	; 0x3c544 <strcasecmp+0x1c>
   3c542:	60 5e       	subi	r22, 0xE0	; 224
   3c544:	86 1b       	sub	r24, r22
   3c546:	61 11       	cpse	r22, r1
   3c548:	89 f3       	breq	.-30     	; 0x3c52c <strcasecmp+0x4>
   3c54a:	99 0b       	sbc	r25, r25
   3c54c:	08 95       	ret

0003c54e <strcat>:
   3c54e:	fb 01       	movw	r30, r22
   3c550:	dc 01       	movw	r26, r24
   3c552:	0d 90       	ld	r0, X+
   3c554:	00 20       	and	r0, r0
   3c556:	e9 f7       	brne	.-6      	; 0x3c552 <strcat+0x4>
   3c558:	11 97       	sbiw	r26, 0x01	; 1
   3c55a:	01 90       	ld	r0, Z+
   3c55c:	0d 92       	st	X+, r0
   3c55e:	00 20       	and	r0, r0
   3c560:	e1 f7       	brne	.-8      	; 0x3c55a <strcat+0xc>
   3c562:	08 95       	ret

0003c564 <strchr>:
   3c564:	fc 01       	movw	r30, r24
   3c566:	81 91       	ld	r24, Z+
   3c568:	86 17       	cp	r24, r22
   3c56a:	21 f0       	breq	.+8      	; 0x3c574 <strchr+0x10>
   3c56c:	88 23       	and	r24, r24
   3c56e:	d9 f7       	brne	.-10     	; 0x3c566 <strchr+0x2>
   3c570:	99 27       	eor	r25, r25
   3c572:	08 95       	ret
   3c574:	31 97       	sbiw	r30, 0x01	; 1
   3c576:	cf 01       	movw	r24, r30
   3c578:	08 95       	ret

0003c57a <strcmp>:
   3c57a:	fb 01       	movw	r30, r22
   3c57c:	dc 01       	movw	r26, r24
   3c57e:	8d 91       	ld	r24, X+
   3c580:	01 90       	ld	r0, Z+
   3c582:	80 19       	sub	r24, r0
   3c584:	01 10       	cpse	r0, r1
   3c586:	d9 f3       	breq	.-10     	; 0x3c57e <strcmp+0x4>
   3c588:	99 0b       	sbc	r25, r25
   3c58a:	08 95       	ret

0003c58c <strcpy>:
   3c58c:	fb 01       	movw	r30, r22
   3c58e:	dc 01       	movw	r26, r24
   3c590:	01 90       	ld	r0, Z+
   3c592:	0d 92       	st	X+, r0
   3c594:	00 20       	and	r0, r0
   3c596:	e1 f7       	brne	.-8      	; 0x3c590 <strcpy+0x4>
   3c598:	08 95       	ret

0003c59a <strncmp>:
   3c59a:	fb 01       	movw	r30, r22
   3c59c:	dc 01       	movw	r26, r24
   3c59e:	41 50       	subi	r20, 0x01	; 1
   3c5a0:	50 40       	sbci	r21, 0x00	; 0
   3c5a2:	30 f0       	brcs	.+12     	; 0x3c5b0 <strncmp+0x16>
   3c5a4:	8d 91       	ld	r24, X+
   3c5a6:	01 90       	ld	r0, Z+
   3c5a8:	80 19       	sub	r24, r0
   3c5aa:	19 f4       	brne	.+6      	; 0x3c5b2 <strncmp+0x18>
   3c5ac:	00 20       	and	r0, r0
   3c5ae:	b9 f7       	brne	.-18     	; 0x3c59e <strncmp+0x4>
   3c5b0:	88 1b       	sub	r24, r24
   3c5b2:	99 0b       	sbc	r25, r25
   3c5b4:	08 95       	ret

0003c5b6 <strncpy>:
   3c5b6:	fb 01       	movw	r30, r22
   3c5b8:	dc 01       	movw	r26, r24
   3c5ba:	41 50       	subi	r20, 0x01	; 1
   3c5bc:	50 40       	sbci	r21, 0x00	; 0
   3c5be:	48 f0       	brcs	.+18     	; 0x3c5d2 <strncpy+0x1c>
   3c5c0:	01 90       	ld	r0, Z+
   3c5c2:	0d 92       	st	X+, r0
   3c5c4:	00 20       	and	r0, r0
   3c5c6:	c9 f7       	brne	.-14     	; 0x3c5ba <strncpy+0x4>
   3c5c8:	01 c0       	rjmp	.+2      	; 0x3c5cc <strncpy+0x16>
   3c5ca:	1d 92       	st	X+, r1
   3c5cc:	41 50       	subi	r20, 0x01	; 1
   3c5ce:	50 40       	sbci	r21, 0x00	; 0
   3c5d0:	e0 f7       	brcc	.-8      	; 0x3c5ca <strncpy+0x14>
   3c5d2:	08 95       	ret

0003c5d4 <puts>:
   3c5d4:	0f 93       	push	r16
   3c5d6:	1f 93       	push	r17
   3c5d8:	cf 93       	push	r28
   3c5da:	df 93       	push	r29
   3c5dc:	e0 91 1c 18 	lds	r30, 0x181C	; 0x80181c <__iob+0x2>
   3c5e0:	f0 91 1d 18 	lds	r31, 0x181D	; 0x80181d <__iob+0x3>
   3c5e4:	23 81       	ldd	r18, Z+3	; 0x03
   3c5e6:	ec 01       	movw	r28, r24
   3c5e8:	10 e0       	ldi	r17, 0x00	; 0
   3c5ea:	00 e0       	ldi	r16, 0x00	; 0
   3c5ec:	21 fd       	sbrc	r18, 1
   3c5ee:	08 c0       	rjmp	.+16     	; 0x3c600 <puts+0x2c>
   3c5f0:	0f ef       	ldi	r16, 0xFF	; 255
   3c5f2:	1f ef       	ldi	r17, 0xFF	; 255
   3c5f4:	14 c0       	rjmp	.+40     	; 0x3c61e <puts+0x4a>
   3c5f6:	19 95       	eicall
   3c5f8:	89 2b       	or	r24, r25
   3c5fa:	11 f0       	breq	.+4      	; 0x3c600 <puts+0x2c>
   3c5fc:	0f ef       	ldi	r16, 0xFF	; 255
   3c5fe:	1f ef       	ldi	r17, 0xFF	; 255
   3c600:	89 91       	ld	r24, Y+
   3c602:	60 91 1c 18 	lds	r22, 0x181C	; 0x80181c <__iob+0x2>
   3c606:	70 91 1d 18 	lds	r23, 0x181D	; 0x80181d <__iob+0x3>
   3c60a:	db 01       	movw	r26, r22
   3c60c:	18 96       	adiw	r26, 0x08	; 8
   3c60e:	ed 91       	ld	r30, X+
   3c610:	fc 91       	ld	r31, X
   3c612:	81 11       	cpse	r24, r1
   3c614:	f0 cf       	rjmp	.-32     	; 0x3c5f6 <puts+0x22>
   3c616:	8a e0       	ldi	r24, 0x0A	; 10
   3c618:	19 95       	eicall
   3c61a:	89 2b       	or	r24, r25
   3c61c:	49 f7       	brne	.-46     	; 0x3c5f0 <puts+0x1c>
   3c61e:	c8 01       	movw	r24, r16
   3c620:	df 91       	pop	r29
   3c622:	cf 91       	pop	r28
   3c624:	1f 91       	pop	r17
   3c626:	0f 91       	pop	r16
   3c628:	08 95       	ret

0003c62a <__do_global_dtors>:
   3c62a:	16 e5       	ldi	r17, 0x56	; 86
   3c62c:	cc e3       	ldi	r28, 0x3C	; 60
   3c62e:	d6 e5       	ldi	r29, 0x56	; 86
   3c630:	00 e0       	ldi	r16, 0x00	; 0
   3c632:	06 c0       	rjmp	.+12     	; 0x3c640 <__do_global_dtors+0x16>
   3c634:	80 2f       	mov	r24, r16
   3c636:	fe 01       	movw	r30, r28
   3c638:	0f 94 6b dd 	call	0x3bad6	; 0x3bad6 <__tablejump2__>
   3c63c:	21 96       	adiw	r28, 0x01	; 1
   3c63e:	01 1d       	adc	r16, r1
   3c640:	cd 33       	cpi	r28, 0x3D	; 61
   3c642:	d1 07       	cpc	r29, r17
   3c644:	80 e0       	ldi	r24, 0x00	; 0
   3c646:	08 07       	cpc	r16, r24
   3c648:	a9 f7       	brne	.-22     	; 0x3c634 <__do_global_dtors+0xa>
   3c64a:	f8 94       	cli

0003c64c <__stop_program>:
   3c64c:	ff cf       	rjmp	.-2      	; 0x3c64c <__stop_program>
