(command.CommandList children: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'bblen='> name:bblen) op: assign_op.Equal rhs: {<7680>} spids: [79] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rdlen='> name:rdlen) op: assign_op.Equal rhs: {<256>} spids: [82] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'totlen='> name:totlen) op: assign_op.Equal rhs: {<7680>} spids: [85] ) ] redirects: [] ) (command.WhileUntil keyword: <Id.KW_While while> cond: (condition.Shell commands: [ (command.Sentence child: (C {<getopts>} {<b> <Id.Lit_Colon ':'> <r> <Id.Lit_Colon ':'> <e> <Id.Lit_Colon ':'>} {<a>} ) terminator: <Id.Op_Semi _> ) ] ) body: (command.DoGroup children: [ (command.Case to_match: {($ Id.VSub_DollarName a)} arms: [ (case_arm pat_list: [{<b>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'bblen='> name:bblen) op: assign_op.Equal rhs: {($ Id.VSub_DollarName OPTARG)} spids: [116] ) ] redirects: [] ) ] spids: [113 114 118 -1] ) (case_arm pat_list: [{<r>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rdlen='> name:rdlen) op: assign_op.Equal rhs: {($ Id.VSub_DollarName OPTARG)} spids: [124] ) ] redirects: [] ) ] spids: [121 122 126 -1] ) (case_arm pat_list: [{<e>}] action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'extra='> name:extra) op: assign_op.Equal rhs: {($ Id.VSub_DollarName OPTARG)} spids: [132] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'totlen='> name:totlen) op: assign_op.Equal rhs: {<15872>} spids: [136] ) ] redirects: [] ) ] spids: [129 130 138 -1] ) (case_arm pat_list: [{<Id.Lit_QMark '?'>}] action: [ (C {<printf>} { (DQ < 'Usage: %s: [ -b bb_len ] [ -r rd_len ] boot_fcode ramdisk_fcode bootblk' > <Id.Lit_BadBackslash '\\'> <n> ) } {($ Id.VSub_Number 0)} ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<-1>} ) ] spids: [141 142 158 -1] ) ] redirects: [] ) ] ) redirects: [] ) (C {<shift>} { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: {($ Id.VSub_DollarName OPTIND)} right: {<Id.Lit_Digits 1>} ) ) } ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rdoff='> name:rdoff) op: assign_op.Equal rhs: { (word_part.ArithSub anode: (arith_expr.Binary op_id: Id.Arith_Minus left: {($ Id.VSub_DollarName bblen)} right: {($ Id.VSub_DollarName rdlen)} ) ) } spids: [186] ) ] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'bbsize='> name:bbsize) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<ls>} {<-l>} {($ Id.VSub_Number 1)}) (C {<awk>} {<-e>} {(SQ <'{ print $5 }'>)}) ] negated: F stderr_indices: [] ) right: <Id.Eof_RParen _> ) } spids: [197] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName bbsize)} {<-gt>} {($ Id.VSub_DollarName rdoff)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<printf>} { (DQ ($ Id.VSub_Number 1) <' must be smaller than '> ($ Id.VSub_DollarName rdoff) <Id.Lit_BadBackslash '\\'> <n> ) } ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<-1>}) ] spids: [216 229] ) ] else_action: [] redirects: [] ) (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'rdsize='> name:rdsize) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<ls>} {<-l>} {($ Id.VSub_Number 2)}) (C {<awk>} {<-e>} {(SQ <'{ print $5 }'>)}) ] negated: F stderr_indices: [] ) right: <Id.Eof_RParen _> ) } spids: [250] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName rdsize)} {<-gt>} {($ Id.VSub_DollarName rdlen)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<printf>} { (DQ ($ Id.VSub_Number 1) <' must be smaller than '> ($ Id.VSub_DollarName rdlen) <Id.Lit_BadBackslash '\\'> <n> ) } ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<-1>}) ] spids: [269 282] ) ] else_action: [] redirects: [] ) (C {<mkfile>} {<-n>} {($ Id.VSub_DollarName totlen)} {($ Id.VSub_Number 3)}) (C {<chmod>} {<644>} {($ Id.VSub_Number 3)}) (C {<dd>} {<Id.Lit_VarLike 'if='> ($ Id.VSub_Number 1)} {<Id.Lit_VarLike 'of='> ($ Id.VSub_Number 3)} {<Id.Lit_VarLike 'conv='> <notrunc>} {<Id.Lit_VarLike 'bs='> <1>} ) (C {<dd>} {<Id.Lit_VarLike 'if='> ($ Id.VSub_Number 2)} {<Id.Lit_VarLike 'of='> ($ Id.VSub_Number 3)} {<Id.Lit_VarLike 'conv='> <notrunc>} {<Id.Lit_VarLike 'bs='> <1>} {<Id.Lit_VarLike 'oseek='> ($ Id.VSub_DollarName rdoff)} ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName totlen)} {<-gt>} {($ Id.VSub_DollarName bblen)} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (command.ShAssignment pairs: [ (assign_pair lhs: (sh_lhs_expr.Name left:<Id.Lit_VarLike 'extsize='> name:extsize) op: assign_op.Equal rhs: { (command_sub left_token: <Id.Left_DollarParen '$('> child: (command.Pipeline children: [ (C {<ls>} {<-l>} {($ Id.VSub_DollarName extra)}) (C {<awk>} {<-e>} {(SQ <'{ print $5 }'>)}) ] negated: F stderr_indices: [] ) right: <Id.Eof_RParen _> ) } spids: [383] ) ] redirects: [] ) (command.If arms: [ (if_arm cond: (condition.Shell commands: [ (command.Sentence child: (C {<Id.Lit_LBracket '['>} {($ Id.VSub_DollarName extsize)} {<-gt>} {<16384>} {<Id.Lit_RBracket ']'>} ) terminator: <Id.Op_Semi _> ) ] ) action: [ (C {<printf>} { (DQ ($ Id.VSub_Number 1) <' must be smaller than 16k'> <Id.Lit_BadBackslash '\\'> <n> ) } ) (command.ControlFlow token: <Id.ControlFlow_Exit exit> arg_word: {<-1>} ) ] spids: [403 416] ) ] else_action: [] redirects: [] ) (C {<dd>} {<Id.Lit_VarLike 'if='> ($ Id.VSub_DollarName extra)} {<Id.Lit_VarLike 'of='> ($ Id.VSub_Number 3)} {<Id.Lit_VarLike 'conv='> <notrunc>} {<Id.Lit_VarLike 'bs='> <1>} {<Id.Lit_VarLike 'oseek='> ($ Id.VSub_DollarName bblen)} ) ] spids: [367 380] ) ] else_action: [] redirects: [] ) (command.ControlFlow token:<Id.ControlFlow_Exit exit> arg_word:{<0>}) ] )