Symbol table:

serdes_pcs_wait_bits.isra.0/44 (serdes_pcs_wait_bits.isra.0) @06db9ee0
  Type: function definition analyzed
  Visibility: prevailing_def_ironly artificial
  References: 
  Referring: 
  Availability: local
  Function flags: count:114863532 (estimated locally) body local optimize_size
  Called by: serdes_pma_wait_link/23 (1073741824 (estimated locally),1.00 per call) serdes_pcs_wait_for_vreset/7 (1073741824 (estimated locally),1.00 per call) serdes_pcs_wait_for_power_good/5 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit/38 (116930485 (estimated locally),0.11 per call) serdes_bifurcation_pll_transit/38 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),9.35 per call) 
serdes_pcs_reset_finalize/43 (serdes_pcs_reset_finalize) @06c289a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_pma_issue_rx_reset/25 (12733730 (estimated locally),0.01 per call) serdes_pma_issue_rx_reset/25 (12733730 (estimated locally),0.01 per call) serdes_pcs_wait_for_power_good/5 (38587060 (estimated locally),0.04 per call) serdes_pcs_wait_for_vreset/7 (116930485 (estimated locally),0.11 per call) serdes_pcs_wait_for_power_good/5 (354334802 (estimated locally),0.33 per call) serdes_pcs_wait_for_vreset/7 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_reset_issue/42 (serdes_pcs_reset_issue) @06c28700
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_pcs_issue_vreset/6 (1073741824 (estimated locally),1.00 per call) serdes_pcs_issue_vreset/6 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_pma_init_gen2/41 (serdes_pcs_pma_init_gen2) @06c28460
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_pma_lane_disable/26 (354334802 (estimated locally),0.33 per call) serdes_pma_lane_disable/26 (354334802 (estimated locally),0.33 per call) serdes_pma_1250Mhz_prepare/30 (237404317 (estimated locally),0.22 per call) serdes_pma_3125Mhz_prepare/31 (354334802 (estimated locally),0.33 per call) serdes_pma_1250Mhz_prepare/30 (237404317 (estimated locally),0.22 per call) serdes_pma_3125Mhz_prepare/31 (354334802 (estimated locally),0.33 per call) serdes_pma_mpllb_stop_cal/35 (177167401 (estimated locally),0.17 per call) serdes_pma_mplla_stop_cal/34 (177167401 (estimated locally),0.17 per call) serdes_pma_mpllb_start_cal/33 (177167401 (estimated locally),0.17 per call) serdes_pma_mplla_start_cal/32 (177167401 (estimated locally),0.17 per call) serdes_xpcs_write_gen2/1 (295869560 (estimated locally),0.28 per call) serdes_xpcs_read_gen2/0 (295869560 (estimated locally),0.28 per call) serdes_xpcs_write_gen2/1 (177167401 (estimated locally),0.17 per call) serdes_xpcs_read_gen2/0 (177167401 (estimated locally),0.17 per call) serdes_pma_select_plla_ref/36 (237404317 (estimated locally),0.22 per call) serdes_pcs_set_1000M_mode/9 (237404317 (estimated locally),0.22 per call) serdes_pma_configure_tx_ctr/24 (237404317 (estimated locally),0.22 per call) serdes_pma_select_pllb_ref/37 (354334802 (estimated locally),0.33 per call) serdes_pcs_set_2500M_mode/8 (354334802 (estimated locally),0.33 per call) serdes_pma_configure_tx_ctr/24 (354334802 (estimated locally),0.33 per call) serdes_pma_select_plla_ref/36 (237404317 (estimated locally),0.22 per call) serdes_pcs_set_1000M_mode/9 (237404317 (estimated locally),0.22 per call) serdes_pma_configure_tx_ctr/24 (237404317 (estimated locally),0.22 per call) serdes_pma_select_pllb_ref/37 (354334802 (estimated locally),0.33 per call) serdes_pcs_set_2500M_mode/8 (354334802 (estimated locally),0.33 per call) serdes_pma_configure_tx_ctr/24 (354334802 (estimated locally),0.33 per call) 
serdes_bifurcation_pll_transit_to_1250Mhz/40 (serdes_bifurcation_pll_transit_to_1250Mhz) @06c281c0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_1000M_mode/9 (1073741824 (estimated locally),1.00 per call) 
serdes_bifurcation_pll_transit_to_3125Mhz/39 (serdes_bifurcation_pll_transit_to_3125Mhz) @06c21e00
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_2500M_mode/8 (1073741824 (estimated locally),1.00 per call) 
serdes_bifurcation_pll_transit/38 (serdes_bifurcation_pll_transit) @06c21d20
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_bifurcation_pll_transit_to_1250Mhz/40 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit_to_3125Mhz/39 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_pcs_wait_bits.isra.0/44 (116930485 (estimated locally),0.11 per call) serdes_xpcs_write_gen2/1 (116930485 (estimated locally),0.11 per call) serdes_xpcs_read_gen2/0 (116930485 (estimated locally),0.11 per call) serdes_xpcs_write_gen2/1 (116930485 (estimated locally),0.11 per call) serdes_xpcs_read_gen2/0 (116930485 (estimated locally),0.11 per call) serdes_pcs_wait_bits.isra.0/44 (354334802 (estimated locally),0.33 per call) serdes_xpcs_write_gen2/1 (354334802 (estimated locally),0.33 per call) serdes_xpcs_read_gen2/0 (354334802 (estimated locally),0.33 per call) serdes_pcs_wait_bits.isra.0/44 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_pllb_ref/37 (708669605 (estimated locally),0.66 per call) serdes_pma_select_plla_ref/36 (365072220 (estimated locally),0.34 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_select_pllb_ref/37 (serdes_pma_select_pllb_ref) @06c21a80
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit/38 (708669605 (estimated locally),0.66 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_select_plla_ref/36 (serdes_pma_select_plla_ref) @06c217e0
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_bifurcation_pll_transit/38 (365072220 (estimated locally),0.34 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_mpllb_stop_cal/35 (serdes_pma_mpllb_stop_cal) @06c21540
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_mplla_stop_cal/34 (serdes_pma_mplla_stop_cal) @06c212a0
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_mpllb_start_cal/33 (serdes_pma_mpllb_start_cal) @06c21000
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) 
  Calls: serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) 
serdes_pma_mplla_start_cal/32 (serdes_pma_mplla_start_cal) @06c0fc40
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) 
  Calls: serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) serdes_xpcs_write_gen2/1 (536870913 (estimated locally),0.50 per call) serdes_xpcs_read_gen2/0 (536870913 (estimated locally),0.50 per call) 
serdes_pma_3125Mhz_prepare/31 (serdes_pma_3125Mhz_prepare) @06c0f7e0
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit_to_3125Mhz/39 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_1250Mhz_prepare/30 (serdes_pma_1250Mhz_prepare) @06c0f540
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_bifurcation_pll_transit_to_1250Mhz/40 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_loopback_disable/29 (serdes_pma_loopback_disable) @06c0f2a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_loopback_enable/28 (serdes_pma_loopback_enable) @06c0f000
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_lane_enable/27 (serdes_pma_lane_enable) @06c05540
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_lane_disable/26 (serdes_pma_lane_disable) @06c05ee0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_issue_rx_reset/25 (serdes_pma_issue_rx_reset) @06c05c40
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_reset_finalize/43 (12733730 (estimated locally),0.01 per call) serdes_pcs_reset_finalize/43 (12733730 (estimated locally),0.01 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_configure_tx_ctr/24 (serdes_pma_configure_tx_ctr) @06c059a0
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_wait_link/23 (serdes_pma_wait_link) @06c05700
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_pcs_wait_bits.isra.0/44 (1073741824 (estimated locally),1.00 per call) 
serdes_pma_high_freq_recovery/22 (serdes_pma_high_freq_recovery) @06c05460
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_decode/21 (serdes_pcs_an_decode) @06c051c0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_set_link_timer/20 (serdes_pcs_an_set_link_timer) @06bfae00
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_auto_sw_disable/19 (serdes_pcs_an_auto_sw_disable) @06bfa620
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_auto_sw_enable/18 (serdes_pcs_an_auto_sw_enable) @06bfa0e0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_restart/17 (serdes_pcs_an_restart) @06bfad20
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_disable/16 (serdes_pcs_an_disable) @06bfaa80
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_an_enable/15 (serdes_pcs_an_enable) @06bfa7e0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_mii_bus_control_enable/14 (serdes_pcs_mii_bus_control_enable) @06bfa540
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_mii_bus_control_disable/13 (serdes_pcs_mii_bus_control_disable) @06bfa2a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_set_hd/12 (serdes_pcs_set_hd) @06bfa000
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_set_fd/11 (serdes_pcs_set_fd) @06bf5620
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_speed_select/10 (serdes_pcs_speed_select) @06bf50e0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (805306369 (estimated locally),0.75 per call) serdes_xpcs_read_gen2/0 (805306369 (estimated locally),0.75 per call) 
serdes_pcs_set_1000M_mode/9 (serdes_pcs_set_1000M_mode) @06bf5d20
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_pcs_pma_init_gen2/41 (237404317 (estimated locally),0.22 per call) serdes_bifurcation_pll_transit_to_1250Mhz/40 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_set_2500M_mode/8 (serdes_pcs_set_2500M_mode) @06bf5a80
  Type: function definition analyzed
  Visibility: prevailing_def_ironly
  References: 
  Referring: 
  Availability: local
  Function flags: count:1073741824 (estimated locally) body local optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_pcs_pma_init_gen2/41 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit_to_3125Mhz/39 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_wait_for_vreset/7 (serdes_pcs_wait_for_vreset) @06bf57e0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_reset_finalize/43 (116930485 (estimated locally),0.11 per call) serdes_pcs_reset_finalize/43 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_pcs_wait_bits.isra.0/44 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_issue_vreset/6 (serdes_pcs_issue_vreset) @06bf5540
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_reset_issue/42 (1073741824 (estimated locally),1.00 per call) serdes_pcs_reset_issue/42 (1073741824 (estimated locally),1.00 per call) 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_wait_for_power_good/5 (serdes_pcs_wait_for_power_good) @06bf52a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_reset_finalize/43 (38587060 (estimated locally),0.04 per call) serdes_pcs_reset_finalize/43 (354334802 (estimated locally),0.33 per call) 
  Calls: serdes_pcs_wait_bits.isra.0/44 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_loopback_disable/4 (serdes_pcs_loopback_disable) @06bf5000
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_pcs_loopback_enable/3 (serdes_pcs_loopback_enable) @06c4aee0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: 
  Calls: serdes_xpcs_write_gen2/1 (1073741824 (estimated locally),1.00 per call) serdes_xpcs_read_gen2/0 (1073741824 (estimated locally),1.00 per call) 
serdes_xpcs_write_gen2/1 (serdes_xpcs_write_gen2) @06c4a620
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (295869560 (estimated locally),0.28 per call) serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) serdes_pma_loopback_disable/29 (1073741824 (estimated locally),1.00 per call) serdes_pma_loopback_enable/28 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_enable/27 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_enable/27 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_disable/26 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_disable/26 (1073741824 (estimated locally),1.00 per call) serdes_pma_issue_rx_reset/25 (1073741824 (estimated locally),1.00 per call) serdes_pma_issue_rx_reset/25 (1073741824 (estimated locally),1.00 per call) serdes_pma_high_freq_recovery/22 (1073741824 (estimated locally),1.00 per call) serdes_pma_high_freq_recovery/22 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_set_link_timer/20 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_set_link_timer/20 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_set_link_timer/20 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_auto_sw_disable/19 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_auto_sw_enable/18 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_restart/17 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_disable/16 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_disable/16 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_enable/15 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_enable/15 (1073741824 (estimated locally),1.00 per call) serdes_pcs_mii_bus_control_enable/14 (1073741824 (estimated locally),1.00 per call) serdes_pcs_mii_bus_control_disable/13 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_hd/12 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_fd/11 (1073741824 (estimated locally),1.00 per call) serdes_pcs_speed_select/10 (805306369 (estimated locally),0.75 per call) serdes_pcs_issue_vreset/6 (1073741824 (estimated locally),1.00 per call) serdes_pcs_loopback_disable/4 (1073741824 (estimated locally),1.00 per call) serdes_pcs_loopback_enable/3 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_stop_cal/35 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_stop_cal/34 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_start_cal/32 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_configure_tx_ctr/24 (1073741824 (estimated locally),1.00 per call) serdes_pma_configure_tx_ctr/24 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_1000M_mode/9 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit/38 (116930485 (estimated locally),0.11 per call) serdes_bifurcation_pll_transit/38 (116930485 (estimated locally),0.11 per call) serdes_bifurcation_pll_transit/38 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_pllb_ref/37 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_pllb_ref/37 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_plla_ref/36 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_plla_ref/36 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_2500M_mode/8 (1073741824 (estimated locally),1.00 per call) 
  Calls: 
serdes_xpcs_read_gen2/0 (serdes_xpcs_read_gen2) @06c4a2a0
  Type: function definition analyzed
  Visibility: externally_visible public
  References: 
  Referring: 
  Availability: available
  Function flags: count:1073741824 (estimated locally) body optimize_size
  Called by: serdes_pcs_pma_init_gen2/41 (295869560 (estimated locally),0.28 per call) serdes_pcs_pma_init_gen2/41 (177167401 (estimated locally),0.17 per call) serdes_pma_loopback_disable/29 (1073741824 (estimated locally),1.00 per call) serdes_pma_loopback_enable/28 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_enable/27 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_enable/27 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_disable/26 (1073741824 (estimated locally),1.00 per call) serdes_pma_lane_disable/26 (1073741824 (estimated locally),1.00 per call) serdes_pma_issue_rx_reset/25 (1073741824 (estimated locally),1.00 per call) serdes_pma_issue_rx_reset/25 (1073741824 (estimated locally),1.00 per call) serdes_pma_high_freq_recovery/22 (1073741824 (estimated locally),1.00 per call) serdes_pma_high_freq_recovery/22 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_decode/21 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_set_link_timer/20 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_set_link_timer/20 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_auto_sw_disable/19 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_auto_sw_enable/18 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_restart/17 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_disable/16 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_disable/16 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_enable/15 (1073741824 (estimated locally),1.00 per call) serdes_pcs_an_enable/15 (1073741824 (estimated locally),1.00 per call) serdes_pcs_mii_bus_control_enable/14 (1073741824 (estimated locally),1.00 per call) serdes_pcs_mii_bus_control_disable/13 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_hd/12 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_fd/11 (1073741824 (estimated locally),1.00 per call) serdes_pcs_speed_select/10 (805306369 (estimated locally),0.75 per call) serdes_pcs_issue_vreset/6 (1073741824 (estimated locally),1.00 per call) serdes_pcs_loopback_disable/4 (1073741824 (estimated locally),1.00 per call) serdes_pcs_loopback_enable/3 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_stop_cal/35 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_stop_cal/34 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (1073741824 (estimated locally),1.00 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mpllb_start_cal/33 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_start_cal/32 (1073741824 (estimated locally),1.00 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_mplla_start_cal/32 (536870913 (estimated locally),0.50 per call) serdes_pma_configure_tx_ctr/24 (1073741824 (estimated locally),1.00 per call) serdes_pma_configure_tx_ctr/24 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pma_1250Mhz_prepare/30 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_1000M_mode/9 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit/38 (116930485 (estimated locally),0.11 per call) serdes_bifurcation_pll_transit/38 (116930485 (estimated locally),0.11 per call) serdes_bifurcation_pll_transit/38 (354334802 (estimated locally),0.33 per call) serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_bifurcation_pll_transit/38 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_pllb_ref/37 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_pllb_ref/37 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_plla_ref/36 (1073741824 (estimated locally),1.00 per call) serdes_pma_select_plla_ref/36 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pma_3125Mhz_prepare/31 (1073741824 (estimated locally),1.00 per call) serdes_pcs_set_2500M_mode/8 (1073741824 (estimated locally),1.00 per call) serdes_pcs_wait_bits.isra.0/44 (1073741824 (estimated locally),9.35 per call) 
  Calls: 
serdes_pcs_wait_bits.isra.0 (void * base, uint32 xpcs, uint32 reg, uint16 mask, uint16 val)
{
  volatile uint32 tmp;
  Std_ReturnType ret;
  short unsigned int _4;
  short unsigned int _6;
  long unsigned int tmp.6_8;
  long unsigned int _9;
  long unsigned int tmp.7_10;
  long unsigned int tmp.8_11;

  <bb 9> [local count: 114863532]:
  # DEBUG us s=> us
  # DEBUG cnt s=> cnt

  <bb 2> [local count: 114863532]:
  # DEBUG BEGIN_STMT
  tmp ={v} 1000000;

  <bb 3> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _4 = serdes_xpcs_read_gen2 (base_1(D), xpcs_2(D), reg_3(D));
  _6 = _4 & mask_5(D);
  if (_6 == val_7(D))
    goto <bb 6>; [5.50%]
  else
    goto <bb 4>; [94.50%]

  <bb 4> [local count: 1014686025]:
  # DEBUG BEGIN_STMT
  tmp.6_8 ={v} tmp;
  _9 = tmp.6_8 + 4294967295;
  tmp ={v} _9;
  # DEBUG BEGIN_STMT
  tmp.7_10 ={v} tmp;
  if (tmp.7_10 != 0)
    goto <bb 5>; [94.50%]
  else
    goto <bb 6>; [5.50%]

  <bb 5> [local count: 958878293]:
  goto <bb 3>; [100.00%]

  <bb 6> [local count: 114863532]:
  # DEBUG BEGIN_STMT
  tmp.8_11 ={v} tmp;
  if (tmp.8_11 != 0)
    goto <bb 8>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 7> [local count: 57431766]:
  # DEBUG BEGIN_STMT
  # DEBUG ret => 1

  <bb 8> [local count: 114863532]:
  # ret_12 = PHI <0(6), 1(7)>
  # DEBUG ret => ret_12
  # DEBUG BEGIN_STMT
  return ret_12;

}


serdes_pcs_reset_finalize (void * serdes_base, uint32 xpcs0_base, uint32 xpcs1_base)
{
  Std_ReturnType ret;
  unsigned char _1;
  unsigned char _2;
  unsigned char _3;
  unsigned char _4;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG BEGIN_STMT
  _1 = serdes_pcs_wait_for_vreset (serdes_base_8(D), xpcs1_base_9(D));
  if (_1 != 0)
    goto <bb 7>; [67.00%]
  else
    goto <bb 3>; [33.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  _2 = serdes_pcs_wait_for_power_good (serdes_base_8(D), xpcs1_base_9(D));
  if (_2 != 0)
    goto <bb 7>; [67.00%]
  else
    goto <bb 4>; [33.00%]

  <bb 4> [local count: 116930485]:
  # DEBUG BEGIN_STMT
  _3 = serdes_pcs_wait_for_vreset (serdes_base_8(D), xpcs0_base_12(D));
  if (_3 != 0)
    goto <bb 7>; [67.00%]
  else
    goto <bb 5>; [33.00%]

  <bb 5> [local count: 38587060]:
  # DEBUG BEGIN_STMT
  _4 = serdes_pcs_wait_for_power_good (serdes_base_8(D), xpcs0_base_12(D));
  if (_4 != 0)
    goto <bb 7>; [67.00%]
  else
    goto <bb 6>; [33.00%]

  <bb 6> [local count: 12733730]:
  # DEBUG BEGIN_STMT
  serdes_pma_issue_rx_reset (serdes_base_8(D), xpcs1_base_9(D));
  # DEBUG BEGIN_STMT
  serdes_pma_issue_rx_reset (serdes_base_8(D), xpcs0_base_12(D));

  <bb 7> [local count: 1073741824]:
  # ret_5 = PHI <1(2), 1(3), 1(4), 1(5), 0(6)>
  # DEBUG ret => ret_5
  # DEBUG BEGIN_STMT
  return ret_5;

}


serdes_pcs_reset_issue (void * serdes_base, uint32 xpcs0_base, uint32 xpcs1_base)
{
  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  serdes_pcs_issue_vreset (serdes_base_2(D), xpcs1_base_3(D));
  # DEBUG BEGIN_STMT
  serdes_pcs_issue_vreset (serdes_base_2(D), xpcs0_base_5(D));
  return;

}


serdes_pcs_pma_init_gen2 (void * base, serdes_clock_fmhz fmhz, uint32 init_flags)
{
  uint16 tmp;
  uint16 tmp;
  uint32 xpcs_phy_ctr;
  long unsigned int _1;
  long unsigned int _2;
  long unsigned int _3;
  long unsigned int _4;
  long unsigned int _5;
  short unsigned int _6;
  long unsigned int _7;
  short unsigned int _8;
  short unsigned int _9;
  long unsigned int _10;
  short unsigned int _11;
  long unsigned int _12;
  short unsigned int _13;
  short unsigned int _14;
  long unsigned int _15;
  long unsigned int _16;
  long unsigned int _17;
  long unsigned int _18;
  short unsigned int _19;
  short unsigned int _20;
  long unsigned int _21;
  long unsigned int _22;
  long unsigned int _23;
  long unsigned int _24;
  long unsigned int _25;
  long unsigned int _26;
  long unsigned int _27;
  short unsigned int _28;
  long unsigned int _29;
  short unsigned int _30;
  long unsigned int _31;
  short unsigned int _32;
  long unsigned int _33;
  short unsigned int _34;
  long unsigned int _83;
  long unsigned int base.1_84;
  long unsigned int _85;
  long unsigned int _86;
  volatile uint32 * _87;
  volatile uint32 * _88;
  long unsigned int _89;
  short unsigned int _90;
  long unsigned int _91;
  long unsigned int base.1_92;
  long unsigned int _93;
  long unsigned int _94;
  volatile uint32 * _95;
  volatile uint32 * _96;
  long unsigned int _97;
  short unsigned int _98;
  long unsigned int _99;
  long unsigned int base.1_100;
  long unsigned int _101;
  long unsigned int _102;
  volatile uint32 * _103;
  volatile uint32 * _104;
  long unsigned int _105;
  short unsigned int _106;
  long unsigned int _107;
  long unsigned int base.1_108;
  long unsigned int _109;
  long unsigned int _110;
  volatile uint32 * _111;
  volatile uint32 * _112;
  long unsigned int _113;
  short unsigned int _114;
  long unsigned int _115;
  long unsigned int base.1_116;
  long unsigned int _117;
  long unsigned int _118;
  volatile uint32 * _119;
  volatile uint32 * _120;
  long unsigned int _121;
  short unsigned int _122;
  long unsigned int _123;
  long unsigned int base.1_124;
  long unsigned int _125;
  long unsigned int _126;
  volatile uint32 * _127;
  volatile uint32 * _128;
  long unsigned int _129;
  short unsigned int _130;
  long unsigned int _131;
  long unsigned int base.1_132;
  long unsigned int _133;
  long unsigned int _134;
  volatile uint32 * _135;
  volatile uint32 * _136;
  long unsigned int _137;
  short unsigned int _138;
  long unsigned int _139;
  long unsigned int base.1_140;
  long unsigned int _141;
  long unsigned int _142;
  volatile uint32 * _143;
  volatile uint32 * _144;
  long unsigned int _145;
  short unsigned int _146;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG xpcs_phy_ctr => 0
  # DEBUG BEGIN_STMT
  _1 = init_flags_51(D) & 6291456;
  if (_1 != 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _2 = init_flags_51(D) & 2097152;
  if (_2 != 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  _3 = init_flags_51(D) & 4194304;
  if (_3 != 0)
    goto <bb 5>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 5> [local count: 134217728]:
  # DEBUG BEGIN_STMT
  # DEBUG xpcs_phy_ctr => 1

  <bb 6> [local count: 1073741824]:
  # xpcs_phy_ctr_35 = PHI <0(2), 0(3), 0(4), 1(5)>
  # DEBUG xpcs_phy_ctr => xpcs_phy_ctr_35
  # DEBUG BEGIN_STMT
  _4 = init_flags_51(D) & 1048576;
  if (_4 != 0)
    goto <bb 7>; [50.00%]
  else
    goto <bb 9>; [50.00%]

  <bb 7> [local count: 536870913]:
  _5 = init_flags_51(D) & 1792;
  if (_5 != 0)
    goto <bb 8>; [50.00%]
  else
    goto <bb 9>; [50.00%]

  <bb 8> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  base.1_84 = (long unsigned int) base_53(D);
  _85 = base.1_84 + 532480;
  _86 = base.1_84 + 533500;
  _87 = (volatile uint32 *) _86;
  *_87 ={v} 8064;
  # DEBUG BEGIN_STMT
  _88 = (volatile uint32 *) _85;
  _89 ={v} *_88;
  _90 = (short unsigned int) _89;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _90
  # DEBUG BEGIN_STMT
  _6 = _90 | 8194;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG val => _6
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  *_87 ={v} 8064;
  # DEBUG BEGIN_STMT
  _83 = (long unsigned int) _6;
  *_88 ={v} _83;
  goto <bb 11>; [100.00%]

  <bb 9> [local count: 805306369]:
  # DEBUG BEGIN_STMT
  _7 = init_flags_51(D) & 1792;
  if (_7 != 0)
    goto <bb 10>; [50.00%]
  else
    goto <bb 11>; [50.00%]

  <bb 10> [local count: 402653184]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  base.1_92 = (long unsigned int) base_53(D);
  _93 = base.1_92 + 532480;
  _94 = base.1_92 + 533500;
  _95 = (volatile uint32 *) _94;
  *_95 ={v} 8064;
  # DEBUG BEGIN_STMT
  _96 = (volatile uint32 *) _93;
  _97 ={v} *_96;
  _98 = (short unsigned int) _97;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _98
  # DEBUG BEGIN_STMT
  _8 = _98 & 57341;
  _9 = _8 | 8192;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG val => _9
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  *_95 ={v} 8064;
  # DEBUG BEGIN_STMT
  _91 = (long unsigned int) _9;
  *_96 ={v} _91;

  <bb 11> [local count: 1073741824]:
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (_4 != 0)
    goto <bb 12>; [50.00%]
  else
    goto <bb 14>; [50.00%]

  <bb 12> [local count: 536870913]:
  _10 = init_flags_51(D) & 458752;
  if (_10 != 0)
    goto <bb 13>; [50.00%]
  else
    goto <bb 14>; [50.00%]

  <bb 13> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  base.1_100 = (long unsigned int) base_53(D);
  _101 = base.1_100 + 534528;
  _102 = base.1_100 + 535548;
  _103 = (volatile uint32 *) _102;
  *_103 ={v} 8064;
  # DEBUG BEGIN_STMT
  _104 = (volatile uint32 *) _101;
  _105 ={v} *_104;
  _106 = (short unsigned int) _105;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _106
  # DEBUG BEGIN_STMT
  _11 = _106 | 8194;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG val => _11
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  *_103 ={v} 8064;
  # DEBUG BEGIN_STMT
  _99 = (long unsigned int) _11;
  *_104 ={v} _99;
  goto <bb 16>; [100.00%]

  <bb 14> [local count: 805306369]:
  # DEBUG BEGIN_STMT
  _12 = init_flags_51(D) & 458752;
  if (_12 != 0)
    goto <bb 15>; [50.00%]
  else
    goto <bb 16>; [50.00%]

  <bb 15> [local count: 402653184]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  base.1_108 = (long unsigned int) base_53(D);
  _109 = base.1_108 + 534528;
  _110 = base.1_108 + 535548;
  _111 = (volatile uint32 *) _110;
  *_111 ={v} 8064;
  # DEBUG BEGIN_STMT
  _112 = (volatile uint32 *) _109;
  _113 ={v} *_112;
  _114 = (short unsigned int) _113;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _114
  # DEBUG BEGIN_STMT
  _13 = _114 & 57341;
  _14 = _13 | 8192;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG val => _14
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  *_111 ={v} 8064;
  # DEBUG BEGIN_STMT
  _107 = (long unsigned int) _14;
  *_112 ={v} _107;

  <bb 16> [local count: 1073741824]:
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _15 = init_flags_51(D) & 512;
  if (_15 != 0)
    goto <bb 17>; [33.00%]
  else
    goto <bb 18>; [67.00%]

  <bb 17> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  serdes_pma_configure_tx_ctr (base_53(D), 0);
  # DEBUG BEGIN_STMT
  serdes_pcs_set_2500M_mode (base_53(D), 0);
  # DEBUG BEGIN_STMT
  serdes_pma_select_pllb_ref (base_53(D), 0);
  goto <bb 20>; [100.00%]

  <bb 18> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  _16 = init_flags_51(D) & 256;
  if (_16 != 0)
    goto <bb 19>; [33.00%]
  else
    goto <bb 20>; [67.00%]

  <bb 19> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  serdes_pma_configure_tx_ctr (base_53(D), 0);
  # DEBUG BEGIN_STMT
  serdes_pcs_set_1000M_mode (base_53(D), 0);
  # DEBUG BEGIN_STMT
  serdes_pma_select_plla_ref (base_53(D), 0);

  <bb 20> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _17 = init_flags_51(D) & 131072;
  if (_17 != 0)
    goto <bb 21>; [33.00%]
  else
    goto <bb 22>; [67.00%]

  <bb 21> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  serdes_pma_configure_tx_ctr (base_53(D), 1);
  # DEBUG BEGIN_STMT
  serdes_pcs_set_2500M_mode (base_53(D), 1);
  # DEBUG BEGIN_STMT
  serdes_pma_select_pllb_ref (base_53(D), 1);
  goto <bb 24>; [100.00%]

  <bb 22> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  _18 = init_flags_51(D) & 65536;
  if (_18 != 0)
    goto <bb 23>; [33.00%]
  else
    goto <bb 24>; [67.00%]

  <bb 23> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  serdes_pma_configure_tx_ctr (base_53(D), 1);
  # DEBUG BEGIN_STMT
  serdes_pcs_set_1000M_mode (base_53(D), 1);
  # DEBUG BEGIN_STMT
  serdes_pma_select_plla_ref (base_53(D), 1);

  <bb 24> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 25>; [50.00%]
  else
    goto <bb 27>; [50.00%]

  <bb 25> [local count: 536870913]:
  if (_4 == 0)
    goto <bb 26>; [33.00%]
  else
    goto <bb 27>; [67.00%]

  <bb 26> [local count: 177167401]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_67 = serdes_xpcs_read_gen2 (base_53(D), xpcs_phy_ctr_35, 2064529);
  # DEBUG tmp => tmp_67
  # DEBUG BEGIN_STMT
  _19 = tmp_67 | 2;
  serdes_xpcs_write_gen2 (base_53(D), xpcs_phy_ctr_35, 2064529, _19);
  # DEBUG BEGIN_STMT
  goto <bb 29>; [100.00%]

  <bb 27> [local count: 896574424]:
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 28>; [33.00%]
  else
    goto <bb 29>; [67.00%]

  <bb 28> [local count: 295869560]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_70 = serdes_xpcs_read_gen2 (base_53(D), xpcs_phy_ctr_35, 2064529);
  # DEBUG tmp => tmp_70
  # DEBUG BEGIN_STMT
  _20 = tmp_70 & 65533;
  serdes_xpcs_write_gen2 (base_53(D), xpcs_phy_ctr_35, 2064529, _20);

  <bb 29> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 30>; [50.00%]
  else
    goto <bb 32>; [50.00%]

  <bb 30> [local count: 536870913]:
  _21 = init_flags_51(D) & 1;
  if (_21 != 0)
    goto <bb 31>; [33.00%]
  else
    goto <bb 32>; [67.00%]

  <bb 31> [local count: 177167401]:
  # DEBUG BEGIN_STMT
  serdes_pma_mplla_start_cal (base_53(D), xpcs_phy_ctr_35, fmhz_72(D));

  <bb 32> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 33>; [50.00%]
  else
    goto <bb 35>; [50.00%]

  <bb 33> [local count: 536870913]:
  _22 = init_flags_51(D) & 4;
  if (_22 != 0)
    goto <bb 34>; [33.00%]
  else
    goto <bb 35>; [67.00%]

  <bb 34> [local count: 177167401]:
  # DEBUG BEGIN_STMT
  serdes_pma_mpllb_start_cal (base_53(D), xpcs_phy_ctr_35, fmhz_72(D));

  <bb 35> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 36>; [50.00%]
  else
    goto <bb 38>; [50.00%]

  <bb 36> [local count: 536870913]:
  _23 = init_flags_51(D) & 2;
  if (_23 != 0)
    goto <bb 37>; [33.00%]
  else
    goto <bb 38>; [67.00%]

  <bb 37> [local count: 177167401]:
  # DEBUG BEGIN_STMT
  serdes_pma_mplla_stop_cal (base_53(D), xpcs_phy_ctr_35);

  <bb 38> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_1 != 0)
    goto <bb 39>; [50.00%]
  else
    goto <bb 41>; [50.00%]

  <bb 39> [local count: 536870913]:
  _24 = init_flags_51(D) & 8;
  if (_24 != 0)
    goto <bb 40>; [33.00%]
  else
    goto <bb 41>; [67.00%]

  <bb 40> [local count: 177167401]:
  # DEBUG BEGIN_STMT
  serdes_pma_mpllb_stop_cal (base_53(D), xpcs_phy_ctr_35);

  <bb 41> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_15 != 0)
    goto <bb 42>; [33.00%]
  else
    goto <bb 43>; [67.00%]

  <bb 42> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  serdes_pma_3125Mhz_prepare (base_53(D), 0, fmhz_72(D));
  goto <bb 45>; [100.00%]

  <bb 43> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  _25 = init_flags_51(D) & 256;
  if (_25 != 0)
    goto <bb 44>; [33.00%]
  else
    goto <bb 45>; [67.00%]

  <bb 44> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  serdes_pma_1250Mhz_prepare (base_53(D), 0, fmhz_72(D));

  <bb 45> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_17 != 0)
    goto <bb 46>; [33.00%]
  else
    goto <bb 47>; [67.00%]

  <bb 46> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  serdes_pma_3125Mhz_prepare (base_53(D), 1, fmhz_72(D));
  goto <bb 49>; [100.00%]

  <bb 47> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  _26 = init_flags_51(D) & 65536;
  if (_26 != 0)
    goto <bb 48>; [33.00%]
  else
    goto <bb 49>; [67.00%]

  <bb 48> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  serdes_pma_1250Mhz_prepare (base_53(D), 1, fmhz_72(D));

  <bb 49> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _27 = init_flags_51(D) & 1024;
  if (_27 != 0)
    goto <bb 50>; [33.00%]
  else
    goto <bb 51>; [67.00%]

  <bb 50> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  base.1_116 = (long unsigned int) base_53(D);
  _117 = base.1_116 + 532480;
  _118 = base.1_116 + 533500;
  _119 = (volatile uint32 *) _118;
  *_119 ={v} 8064;
  # DEBUG BEGIN_STMT
  _120 = (volatile uint32 *) _117;
  _121 ={v} *_120;
  _122 = (short unsigned int) _121;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _122
  # DEBUG BEGIN_STMT
  _28 = _122 | 8194;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG val => _28
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  *_119 ={v} 8064;
  # DEBUG BEGIN_STMT
  _115 = (long unsigned int) _28;
  *_120 ={v} _115;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_pma_lane_disable (base_53(D), 0);

  <bb 51> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _29 = init_flags_51(D) & 262144;
  if (_29 != 0)
    goto <bb 52>; [33.00%]
  else
    goto <bb 53>; [67.00%]

  <bb 52> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  base.1_124 = (long unsigned int) base_53(D);
  _125 = base.1_124 + 534528;
  _126 = base.1_124 + 535548;
  _127 = (volatile uint32 *) _126;
  *_127 ={v} 8064;
  # DEBUG BEGIN_STMT
  _128 = (volatile uint32 *) _125;
  _129 ={v} *_128;
  _130 = (short unsigned int) _129;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _130
  # DEBUG BEGIN_STMT
  _30 = _130 | 8194;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG val => _30
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  *_127 ={v} 8064;
  # DEBUG BEGIN_STMT
  _123 = (long unsigned int) _30;
  *_128 ={v} _123;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_pma_lane_disable (base_53(D), 1);

  <bb 53> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (_4 != 0)
    goto <bb 54>; [50.00%]
  else
    goto <bb 57>; [50.00%]

  <bb 54> [local count: 536870913]:
  _31 = init_flags_51(D) & 1792;
  if (_31 != 0)
    goto <bb 55>; [50.00%]
  else
    goto <bb 57>; [50.00%]

  <bb 55> [local count: 268435456]:
  if (_27 == 0)
    goto <bb 56>; [50.00%]
  else
    goto <bb 57>; [50.00%]

  <bb 56> [local count: 134217728]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  base.1_132 = (long unsigned int) base_53(D);
  _133 = base.1_132 + 532480;
  _134 = base.1_132 + 533500;
  _135 = (volatile uint32 *) _134;
  *_135 ={v} 8064;
  # DEBUG BEGIN_STMT
  _136 = (volatile uint32 *) _133;
  _137 ={v} *_136;
  _138 = (short unsigned int) _137;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _138
  # DEBUG BEGIN_STMT
  _32 = _138 & 65533;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 0
  # DEBUG reg => 2064384
  # DEBUG val => _32
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 532480
  # DEBUG BEGIN_STMT
  *_135 ={v} 8064;
  # DEBUG BEGIN_STMT
  _131 = (long unsigned int) _32;
  *_136 ={v} _131;

  <bb 57> [local count: 1073741824]:
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (_4 != 0)
    goto <bb 58>; [50.00%]
  else
    goto <bb 61>; [50.00%]

  <bb 58> [local count: 536870913]:
  _33 = init_flags_51(D) & 458752;
  if (_33 != 0)
    goto <bb 59>; [50.00%]
  else
    goto <bb 61>; [50.00%]

  <bb 59> [local count: 268435456]:
  if (_29 == 0)
    goto <bb 60>; [50.00%]
  else
    goto <bb 61>; [50.00%]

  <bb 60> [local count: 134217728]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG INLINE_ENTRY serdes_xpcs_read_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  base.1_140 = (long unsigned int) base_53(D);
  _141 = base.1_140 + 534528;
  _142 = base.1_140 + 535548;
  _143 = (volatile uint32 *) _142;
  *_143 ={v} 8064;
  # DEBUG BEGIN_STMT
  _144 = (volatile uint32 *) _141;
  _145 ={v} *_144;
  _146 = (short unsigned int) _145;
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG tmp => _146
  # DEBUG BEGIN_STMT
  _34 = _146 & 65533;
  # DEBUG base => base_53(D)
  # DEBUG xpcs => 1
  # DEBUG reg => 2064384
  # DEBUG val => _34
  # DEBUG INLINE_ENTRY serdes_xpcs_write_gen2
  # DEBUG BEGIN_STMT
  # DEBUG ofsleft => 8064
  # DEBUG BEGIN_STMT
  # DEBUG ofsright => 0
  # DEBUG BEGIN_STMT
  # DEBUG pcs_off => 534528
  # DEBUG BEGIN_STMT
  *_143 ={v} 8064;
  # DEBUG BEGIN_STMT
  _139 = (long unsigned int) _34;
  *_144 ={v} _139;

  <bb 61> [local count: 1073741824]:
  # DEBUG base => NULL
  # DEBUG xpcs => NULL
  # DEBUG reg => NULL
  # DEBUG val => NULL
  # DEBUG ofsright => NULL
  # DEBUG ofsleft => NULL
  # DEBUG BEGIN_STMT
  return;

}


serdes_bifurcation_pll_transit_to_1250Mhz (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  Std_ReturnType _8;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  serdes_pcs_set_1000M_mode (base_2(D), xpcs_3(D));
  # DEBUG BEGIN_STMT
  serdes_pma_1250Mhz_prepare (base_2(D), xpcs_3(D), fmhz_5(D));
  # DEBUG BEGIN_STMT
  _8 = serdes_bifurcation_pll_transit (base_2(D), xpcs_3(D), 1);
  return _8;

}


serdes_bifurcation_pll_transit_to_3125Mhz (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  Std_ReturnType _8;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  serdes_pcs_set_2500M_mode (base_2(D), xpcs_3(D));
  # DEBUG BEGIN_STMT
  serdes_pma_3125Mhz_prepare (base_2(D), xpcs_3(D), fmhz_5(D));
  # DEBUG BEGIN_STMT
  _8 = serdes_bifurcation_pll_transit (base_2(D), xpcs_3(D), 0);
  return _8;

}


serdes_bifurcation_pll_transit (void * base, uint32 xpcs, bool_t plla)
{
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  Std_ReturnType ret;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;
  short unsigned int _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_13 = serdes_xpcs_read_gen2 (base_10(D), xpcs_11(D), 2064433);
  # DEBUG tmp => tmp_13
  # DEBUG BEGIN_STMT
  _1 = tmp_13 & 61439;
  serdes_xpcs_write_gen2 (base_10(D), xpcs_11(D), 2064433, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (plla_15(D) == 1)
    goto <bb 3>; [34.00%]
  else
    goto <bb 4>; [66.00%]

  <bb 3> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  serdes_pma_select_plla_ref (base_10(D), xpcs_11(D));
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  serdes_pma_select_pllb_ref (base_10(D), xpcs_11(D));

  <bb 5> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_19 = serdes_xpcs_read_gen2 (base_10(D), xpcs_11(D), 2064434);
  # DEBUG tmp => tmp_19
  # DEBUG BEGIN_STMT
  _2 = tmp_19 | 1;
  serdes_xpcs_write_gen2 (base_10(D), xpcs_11(D), 2064434, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 100
  # DEBUG D#2 => 100
  ret_22 = serdes_pcs_wait_bits.isra.0 (base_10(D), xpcs_11(D), 2064434, 1, 0);
  # DEBUG ret => ret_22
  # DEBUG BEGIN_STMT
  if (ret_22 == 0)
    goto <bb 6>; [33.00%]
  else
    goto <bb 8>; [67.00%]

  <bb 6> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_24 = serdes_xpcs_read_gen2 (base_10(D), xpcs_11(D), 2064466);
  # DEBUG tmp => tmp_24
  # DEBUG BEGIN_STMT
  _3 = tmp_24 | 1;
  serdes_xpcs_write_gen2 (base_10(D), xpcs_11(D), 2064466, _3);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 100
  # DEBUG D#2 => 100
  ret_27 = serdes_pcs_wait_bits.isra.0 (base_10(D), xpcs_11(D), 2064466, 1, 0);
  # DEBUG ret => ret_27
  # DEBUG BEGIN_STMT
  if (ret_27 == 0)
    goto <bb 7>; [33.00%]
  else
    goto <bb 8>; [67.00%]

  <bb 7> [local count: 116930485]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_29 = serdes_xpcs_read_gen2 (base_10(D), xpcs_11(D), 2064433);
  # DEBUG tmp => tmp_29
  # DEBUG BEGIN_STMT
  _4 = tmp_29 | 4096;
  serdes_xpcs_write_gen2 (base_10(D), xpcs_11(D), 2064433, _4);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_32 = serdes_xpcs_read_gen2 (base_10(D), xpcs_11(D), 2064384);
  # DEBUG tmp => tmp_32
  # DEBUG BEGIN_STMT
  _5 = tmp_32 | 256;
  serdes_xpcs_write_gen2 (base_10(D), xpcs_11(D), 2064384, _5);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 100
  # DEBUG D#2 => 100
  ret_35 = serdes_pcs_wait_bits.isra.0 (base_10(D), xpcs_11(D), 2064384, 256, 0);
  # DEBUG ret => ret_35

  <bb 8> [local count: 1073741824]:
  # ret_6 = PHI <ret_22(5), ret_27(6), ret_35(7)>
  # DEBUG ret => ret_6
  # DEBUG BEGIN_STMT
  return ret_6;

}


serdes_pma_select_pllb_ref (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064496);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 | 16;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064496, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064496);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 | 1;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064496, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_select_plla_ref (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064496);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 & 65519;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064496, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064496);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 | 1;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064496, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_mpllb_stop_cal (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064500);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 32768;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064500, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_mplla_stop_cal (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064497);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 32768;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064497, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_mpllb_start_cal (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;
  short unsigned int _5;
  short unsigned int _6;
  short unsigned int _7;
  short unsigned int _8;
  short unsigned int _9;
  short unsigned int _10;
  short unsigned int _11;
  short unsigned int _12;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (fmhz_15(D) == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_26 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064529);
  # DEBUG tmp => tmp_26
  # DEBUG BEGIN_STMT
  _1 = tmp_26 & 65346;
  _2 = _1 | 25;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064529, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_29 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064500);
  # DEBUG tmp => tmp_29
  # DEBUG BEGIN_STMT
  _3 = tmp_29 & 32512;
  _4 = _3 | 39;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064500, _4);
  # DEBUG BEGIN_STMT
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_20 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064529);
  # DEBUG tmp => tmp_20
  # DEBUG BEGIN_STMT
  _5 = tmp_20 & 65346;
  _6 = _5 | 149;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064529, _6);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_23 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064500);
  # DEBUG tmp => tmp_23
  # DEBUG BEGIN_STMT
  _7 = tmp_23 & 32512;
  _8 = _7 | 125;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064500, _8);

  <bb 5> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_32 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064501);
  # DEBUG tmp => tmp_32
  # DEBUG BEGIN_STMT
  _9 = tmp_32 & 31;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064501, _9);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_35 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064502);
  # DEBUG tmp => tmp_35
  # DEBUG BEGIN_STMT
  _10 = tmp_35 & 50687;
  _11 = _10 | 10752;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064502, _11);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (fmhz_15(D) == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_39 = serdes_xpcs_read_gen2 (base_17(D), xpcs_18(D), 2064501);
  # DEBUG tmp => tmp_39
  # DEBUG BEGIN_STMT
  _12 = tmp_39 | 33408;
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064501, _12);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064504, 102);
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 7> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_xpcs_write_gen2 (base_17(D), xpcs_18(D), 2064504, 68);

  <bb 8> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_mplla_start_cal (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;
  short unsigned int _5;
  short unsigned int _6;
  short unsigned int _7;
  short unsigned int _8;
  short unsigned int _9;
  short unsigned int _10;
  short unsigned int _11;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (fmhz_14(D) == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_25 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064529);
  # DEBUG tmp => tmp_25
  # DEBUG BEGIN_STMT
  _1 = tmp_25 & 65410;
  _2 = _1 | 25;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064529, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_28 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064497);
  # DEBUG tmp => tmp_28
  # DEBUG BEGIN_STMT
  _3 = tmp_28 & 32512;
  _4 = _3 | 25;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064497, _4);
  # DEBUG BEGIN_STMT
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_19 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064529);
  # DEBUG tmp => tmp_19
  # DEBUG BEGIN_STMT
  _5 = tmp_19 & 65410;
  _6 = _5 | 85;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064529, _6);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_22 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064497);
  # DEBUG tmp => tmp_22
  # DEBUG BEGIN_STMT
  _7 = tmp_22 & 32512;
  _8 = _7 | 80;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064497, _8);

  <bb 5> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_31 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064498);
  # DEBUG tmp => tmp_31
  # DEBUG BEGIN_STMT
  _9 = tmp_31 & 31;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064498, _9);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_34 = serdes_xpcs_read_gen2 (base_16(D), xpcs_17(D), 2064499);
  # DEBUG tmp => tmp_34
  # DEBUG BEGIN_STMT
  _10 = tmp_34 & 50687;
  _11 = _10 | 2560;
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064499, _11);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (fmhz_14(D) == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064503, 357);
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 7> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_xpcs_write_gen2 (base_16(D), xpcs_17(D), 2064503, 43);

  <bb 8> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_3125Mhz_prepare (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 vco_cal_ref;
  uint16 vco_cal_ld;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;
  short unsigned int _5;
  short unsigned int _6;
  short unsigned int _7;
  short unsigned int _8;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (fmhz_11(D) == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 3>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG vco_cal_ld => 1350
  # DEBUG BEGIN_STMT
  # DEBUG vco_cal_ref => 27

  <bb 4> [local count: 1073741824]:
  # vco_cal_ld_9 = PHI <1344(2), 1350(3)>
  # vco_cal_ref_10 = PHI <43(2), 27(3)>
  # DEBUG vco_cal_ref => vco_cal_ref_10
  # DEBUG vco_cal_ld => vco_cal_ld_9
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_16 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064530);
  # DEBUG tmp => tmp_16
  # DEBUG BEGIN_STMT
  _1 = tmp_16 & 57344;
  _2 = _1 | vco_cal_ld_9;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064530, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_19 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064534);
  # DEBUG tmp => tmp_19
  # DEBUG BEGIN_STMT
  _3 = tmp_19 & 65472;
  _4 = _3 | vco_cal_ref_10;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064534, _4);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_22 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064436);
  # DEBUG tmp => tmp_22
  # DEBUG BEGIN_STMT
  _5 = tmp_22 & 65528;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064436, _5);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_25 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064468);
  # DEBUG tmp => tmp_25
  # DEBUG BEGIN_STMT
  _6 = tmp_25 & 65532;
  _7 = _6 | 1;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064468, _7);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_28 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064470);
  # DEBUG tmp => tmp_28
  # DEBUG BEGIN_STMT
  _8 = tmp_28 | 256;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064470, _8);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_1250Mhz_prepare (void * base, uint32 xpcs, serdes_clock_fmhz fmhz)
{
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 tmp;
  uint16 vco_cal_ref;
  uint16 vco_cal_ld;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;
  short unsigned int _5;
  short unsigned int _6;
  short unsigned int _7;
  short unsigned int _8;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (fmhz_11(D) == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 3>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG vco_cal_ld => 1360
  # DEBUG BEGIN_STMT
  # DEBUG vco_cal_ref => 17

  <bb 4> [local count: 1073741824]:
  # vco_cal_ld_9 = PHI <1350(2), 1360(3)>
  # vco_cal_ref_10 = PHI <27(2), 17(3)>
  # DEBUG vco_cal_ref => vco_cal_ref_10
  # DEBUG vco_cal_ld => vco_cal_ld_9
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_16 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064530);
  # DEBUG tmp => tmp_16
  # DEBUG BEGIN_STMT
  _1 = tmp_16 & 57344;
  _2 = _1 | vco_cal_ld_9;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064530, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_19 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064534);
  # DEBUG tmp => tmp_19
  # DEBUG BEGIN_STMT
  _3 = tmp_19 & 65472;
  _4 = _3 | vco_cal_ref_10;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064534, _4);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_22 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064436);
  # DEBUG tmp => tmp_22
  # DEBUG BEGIN_STMT
  _5 = tmp_22 & 65528;
  _6 = _5 | 2;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064436, _6);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_25 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064468);
  # DEBUG tmp => tmp_25
  # DEBUG BEGIN_STMT
  _7 = tmp_25 | 3;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064468, _7);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_28 = serdes_xpcs_read_gen2 (base_13(D), xpcs_14(D), 2064470);
  # DEBUG tmp => tmp_28
  # DEBUG BEGIN_STMT
  _8 = tmp_28 & 65279;
  serdes_xpcs_write_gen2 (base_13(D), xpcs_14(D), 2064470, _8);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_loopback_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2031616);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 49151;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_loopback_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2031616);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 16384;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_lane_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064437);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 & 65279;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064437, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064469);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 & 65279;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064469, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_lane_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064437);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 | 256;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064437, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064469);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 | 256;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064469, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_issue_rx_reset (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064465);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 | 16;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064465, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064465);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 & 65519;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064465, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_configure_tx_ctr (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;
  short unsigned int _4;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_9 = serdes_xpcs_read_gen2 (base_6(D), xpcs_7(D), 2064438);
  # DEBUG tmp => tmp_9
  # DEBUG BEGIN_STMT
  _1 = tmp_9 & 49407;
  _2 = _1 | 3072;
  serdes_xpcs_write_gen2 (base_6(D), xpcs_7(D), 2064438, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_12 = serdes_xpcs_read_gen2 (base_6(D), xpcs_7(D), 2064444);
  # DEBUG tmp => tmp_12
  # DEBUG BEGIN_STMT
  _3 = tmp_12 & 65528;
  _4 = _3 | 4;
  serdes_xpcs_write_gen2 (base_6(D), xpcs_7(D), 2064444, _4);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pma_wait_link (void * base, uint32 xpcs, uint8 sec)
{
  Std_ReturnType _6;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG D#3 => (short unsigned int) sec_1(D)
  # DEBUG D#1 => 1000
  # DEBUG D#2 => D#3 * 1000
  _6 = serdes_pcs_wait_bits.isra.0 (base_3(D), xpcs_4(D), 2031617, 4, 4);
  return _6;

}


serdes_pma_high_freq_recovery (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064389);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 | 80;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064389, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064528);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 | 32768;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064528, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_decode (void * base, uint32 xpcs, bool_t * link, bool_t * fduplex, uint16 * speed)
{
  uint16 reg16;
  Std_ReturnType ret;
  int _1;
  int _2;
  int _3;
  short unsigned int _7;
  short unsigned int _15;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG BEGIN_STMT
  reg16_12 = serdes_xpcs_read_gen2 (base_9(D), xpcs_10(D), 2064386);
  # DEBUG reg16 => reg16_12
  # DEBUG BEGIN_STMT
  _7 = reg16_12 & 16;
  if (_7 != 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  *link_13(D) = 1;
  # DEBUG BEGIN_STMT
  *fduplex_17(D) = 0;
  # DEBUG BEGIN_STMT
  _15 = reg16_12 & 2;
  if (_15 != 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  *fduplex_17(D) = 1;

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _1 = (int) reg16_12;
  _2 = _1 >> 2;
  _3 = _2 & 3;
  switch (_3) <default: <L6> [25.00%], case 0: <L3> [25.00%], case 1: <L4> [25.00%], case 2: <L5> [25.00%]>

  <bb 6> [local count: 134217728]:
<L3>:
  # DEBUG BEGIN_STMT
  *speed_20(D) = 10;
  # DEBUG BEGIN_STMT
  goto <bb 11>; [100.00%]

  <bb 7> [local count: 134217728]:
<L4>:
  # DEBUG BEGIN_STMT
  *speed_20(D) = 100;
  # DEBUG BEGIN_STMT
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 134217728]:
<L5>:
  # DEBUG BEGIN_STMT
  *speed_20(D) = 1000;
  # DEBUG BEGIN_STMT
  goto <bb 11>; [100.00%]

  <bb 9> [local count: 134217728]:
<L6>:
  # DEBUG BEGIN_STMT
  *speed_20(D) = 0;
  # DEBUG BEGIN_STMT
  # DEBUG ret => 1
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  *link_13(D) = 0;
  # DEBUG BEGIN_STMT
  # DEBUG ret => 1

  <bb 11> [local count: 1073741824]:
  # ret_4 = PHI <0(7), 1(10), 0(6), 1(9), 0(8)>
  # DEBUG ret => ret_4
  # DEBUG BEGIN_STMT
  return ret_4;

}


serdes_pcs_an_set_link_timer (void * base, uint32 xpcs, uint16 link_timer)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064394, link_timer_6(D));
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_9 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064384);
  # DEBUG tmp => tmp_9
  # DEBUG BEGIN_STMT
  _1 = tmp_9 & 65527;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_12 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064384);
  # DEBUG tmp => tmp_12
  # DEBUG BEGIN_STMT
  _2 = tmp_12 | 8;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064384, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_auto_sw_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 65023;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_auto_sw_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 512;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_restart (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2031616);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 512;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_7 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2031616);
  # DEBUG tmp => tmp_7
  # DEBUG BEGIN_STMT
  _1 = tmp_7 & 61439;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_10 = serdes_xpcs_read_gen2 (base_4(D), xpcs_5(D), 2064385);
  # DEBUG tmp => tmp_10
  # DEBUG BEGIN_STMT
  _2 = tmp_10 & 65534;
  serdes_xpcs_write_gen2 (base_4(D), xpcs_5(D), 2064385, _2);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_an_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  uint16 tmp;
  short unsigned int _1;
  short unsigned int _2;
  short unsigned int _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_8 = serdes_xpcs_read_gen2 (base_5(D), xpcs_6(D), 2064385);
  # DEBUG tmp => tmp_8
  # DEBUG BEGIN_STMT
  _1 = tmp_8 & 65528;
  _2 = _1 | 5;
  serdes_xpcs_write_gen2 (base_5(D), xpcs_6(D), 2064385, _2);
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_11 = serdes_xpcs_read_gen2 (base_5(D), xpcs_6(D), 2031616);
  # DEBUG tmp => tmp_11
  # DEBUG BEGIN_STMT
  _3 = tmp_11 | 4096;
  serdes_xpcs_write_gen2 (base_5(D), xpcs_6(D), 2031616, _3);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_mii_bus_control_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064385);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 65279;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064385, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_mii_bus_control_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064385);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 256;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064385, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_set_hd (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2031616);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 65279;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_set_fd (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2031616);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 256;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2031616, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_speed_select (void * base, uint32 xpcs, uint32 div)
{
  uint16 tmp;
  Std_ReturnType ret;
  uint16 reg16;
  short unsigned int _1;
  short unsigned int _2;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG reg16 => 0
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG BEGIN_STMT
  switch (div_4(D)) <default: <L14> [25.00%], case 1: <L11> [25.00%], case 10: <L10> [25.00%], case 100: <L13> [25.00%]>

  <bb 3> [local count: 268435456]:
<L11>:
  # DEBUG BEGIN_STMT
  # DEBUG reg16 => 64
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG reg16 => 64
  # DEBUG BEGIN_STMT
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 268435456]:
<L10>:
  # DEBUG BEGIN_STMT
  # DEBUG reg16 => 8192
  # DEBUG BEGIN_STMT
  # DEBUG ret => 0
  # DEBUG reg16 => 8192
  # DEBUG BEGIN_STMT

  <bb 5> [local count: 805306369]:
  # reg16_11 = PHI <8192(4), 0(2), 64(3)>
<L13>:
  # DEBUG ret => NULL
  # DEBUG reg16 => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_9 = serdes_xpcs_read_gen2 (base_6(D), xpcs_7(D), 2031616);
  # DEBUG tmp => tmp_9
  # DEBUG BEGIN_STMT
  _1 = tmp_9 & 57279;
  _2 = _1 | reg16_11;
  serdes_xpcs_write_gen2 (base_6(D), xpcs_7(D), 2031616, _2);

  <bb 6> [local count: 1073741824]:
  # ret_12 = PHI <1(2), 0(5)>
<L14>:
  # DEBUG ret => NULL
  # DEBUG reg16 => NULL
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return ret_12;

}


serdes_pcs_set_1000M_mode (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 65531;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_set_2500M_mode (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 4;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_wait_for_vreset (void * base, uint32 xpcs)
{
  Std_ReturnType _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 1000
  # DEBUG D#2 => 1000
  _5 = serdes_pcs_wait_bits.isra.0 (base_2(D), xpcs_3(D), 2064384, 32768, 0);
  return _5;

}


serdes_pcs_issue_vreset (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 32768;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_wait_for_power_good (void * base, uint32 xpcs)
{
  Std_ReturnType _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 1000
  # DEBUG D#2 => 1000
  _5 = serdes_pcs_wait_bits.isra.0 (base_2(D), xpcs_3(D), 2064400, 28, 16);
  return _5;

}


serdes_pcs_loopback_disable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 & 49151;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_pcs_loopback_enable (void * base, uint32 xpcs)
{
  uint16 tmp;
  short unsigned int _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  tmp_6 = serdes_xpcs_read_gen2 (base_3(D), xpcs_4(D), 2064384);
  # DEBUG tmp => tmp_6
  # DEBUG BEGIN_STMT
  _1 = tmp_6 | 16384;
  serdes_xpcs_write_gen2 (base_3(D), xpcs_4(D), 2064384, _1);
  # DEBUG BEGIN_STMT
  return;

}


serdes_xpcs_write_gen2 (void * base, uint32 xpcs, uint32 reg, uint16 val)
{
  uint32 ofsright;
  uint32 ofsleft;
  long unsigned int _1;
  long unsigned int base.4_2;
  long unsigned int _3;
  long unsigned int _4;
  volatile uint32 * _5;
  long unsigned int _6;
  long unsigned int _7;
  volatile uint32 * _8;
  long unsigned int _9;
  uint32 iftmp.3_10;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = reg_11(D) >> 8;
  ofsleft_12 = _1 & 65535;
  # DEBUG ofsleft => ofsleft_12
  # DEBUG BEGIN_STMT
  ofsright_13 = reg_11(D) & 255;
  # DEBUG ofsright => ofsright_13
  # DEBUG BEGIN_STMT
  if (xpcs_14(D) == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 3>; [50.00%]

  <bb 3> [local count: 536870913]:

  <bb 4> [local count: 1073741824]:
  # iftmp.3_10 = PHI <532480(2), 534528(3)>
  # DEBUG pcs_off => iftmp.3_10
  # DEBUG BEGIN_STMT
  base.4_2 = (long unsigned int) base_15(D);
  _3 = base.4_2 + iftmp.3_10;
  _4 = _3 + 1020;
  _5 = (volatile uint32 *) _4;
  *_5 ={v} ofsleft_12;
  # DEBUG BEGIN_STMT
  _6 = ofsright_13 * 4;
  _7 = _3 + _6;
  _8 = (volatile uint32 *) _7;
  _9 = (long unsigned int) val_18(D);
  *_8 ={v} _9;
  return;

}


serdes_xpcs_read_gen2 (void * base, uint32 xpcs, uint32 reg)
{
  uint32 ofsright;
  uint32 ofsleft;
  long unsigned int _1;
  long unsigned int base.1_2;
  long unsigned int _3;
  long unsigned int _4;
  volatile uint32 * _5;
  long unsigned int _6;
  long unsigned int _7;
  volatile uint32 * _8;
  long unsigned int _9;
  uint32 iftmp.0_10;
  uint16 _18;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = reg_11(D) >> 8;
  ofsleft_12 = _1 & 65535;
  # DEBUG ofsleft => ofsleft_12
  # DEBUG BEGIN_STMT
  ofsright_13 = reg_11(D) & 255;
  # DEBUG ofsright => ofsright_13
  # DEBUG BEGIN_STMT
  if (xpcs_14(D) == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 3>; [50.00%]

  <bb 3> [local count: 536870913]:

  <bb 4> [local count: 1073741824]:
  # iftmp.0_10 = PHI <532480(2), 534528(3)>
  # DEBUG pcs_off => iftmp.0_10
  # DEBUG BEGIN_STMT
  base.1_2 = (long unsigned int) base_15(D);
  _3 = base.1_2 + iftmp.0_10;
  _4 = _3 + 1020;
  _5 = (volatile uint32 *) _4;
  *_5 ={v} ofsleft_12;
  # DEBUG BEGIN_STMT
  _6 = ofsright_13 * 4;
  _7 = _3 + _6;
  _8 = (volatile uint32 *) _7;
  _9 ={v} *_8;
  _18 = (uint16) _9;
  return _18;

}


