	.file	"extr_osm_state_mgr.c_do_sweep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERR 331A: osm_subn_rescan_conf_file failed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"LIGHT SWEEP COMPLETE"
.LC2:
	.string	"REROUTE FAILED"
.LC3:
	.string	"REROUTE COMPLETE"
.LC4:
	.string	"SM port is down\n"
.LC5:
	.string	"SM PORT DOWN"
.LC6:
	.string	"SM port is up\n"
.LC7:
	.string	"SM PORT UP"
.LC8:
	.string	"ENTERING STANDBY STATE"
.LC9:
	.string	"HEAVY SWEEP COMPLETE"
	.section	.rodata.str1.8
	.align 8
.LC10:
	.string	"PKEY setup completed - STARTING SM LID CONFIG"
	.align 8
.LC11:
	.string	"SM LID ASSIGNMENT COMPLETE - STARTING SUBNET LID CONFIG"
	.align 8
.LC12:
	.string	"LID ASSIGNMENT COMPLETE - STARTING SWITCH TABLE CONFIG"
	.align 8
.LC13:
	.string	"SWITCHES CONFIGURED FOR UNICAST"
	.align 8
.LC14:
	.string	"SWITCHES CONFIGURED FOR MULTICAST"
	.section	.rodata.str1.1
.LC15:
	.string	"ALIAS GUIDS CONFIGURED"
	.section	.rodata.str1.8
	.align 8
.LC16:
	.string	"LINKS PORTS CONFIGURED - SET LINKS TO ARMED STATE"
	.align 8
.LC17:
	.string	"LINKS ARMED - SET LINKS TO ACTIVE STATE"
	.section	.rodata.str1.1
.LC18:
	.string	"Errors during initialization\n"
.LC19:
	.string	"ERRORS DURING INITIALIZATION"
	.text
	.p2align 4
	.type	do_sweep, @function
do_sweep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR [rdi]
	cmp	QWORD PTR 160[rdi], 0
	je	.L2
	mov	rax, QWORD PTR TRUE[rip]
	mov	QWORD PTR [rdi], rax
	mov	QWORD PTR 112[rdi], rax
	mov	QWORD PTR 104[rdi], rax
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR 160[rdi], rax
.L2:
	cmp	QWORD PTR 8[rdi], 0
	jne	.L3
	mov	rax, QWORD PTR [rdi]
	xor	ebx, ebx
	test	rax, rax
	jne	.L57
.L5:
	mov	rax, QWORD PTR 16[rdi]
	cmp	rax, QWORD PTR IB_SMINFO_STATE_MASTER[rip]
	je	.L7
	cmp	rax, QWORD PTR IB_SMINFO_STATE_DISCOVERING[rip]
	je	.L7
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	cmp	QWORD PTR 112[rdi], 0
	jne	.L58
.L9:
	mov	QWORD PTR 40[rbp], 0
	add	rdi, 120
	call	cl_qmap_count@PLT
	mov	rdi, QWORD PTR 0[rbp]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR IB_SMINFO_STATE_DISCOVERING[rip]
	cmp	QWORD PTR 16[rdi], rax
	je	.L11
	mov	rax, QWORD PTR FALSE[rip]
	cmp	QWORD PTR 56[rdi], rax
	je	.L59
.L11:
	cmp	QWORD PTR 88[rdi], 0
	je	.L17
	cmp	QWORD PTR 32[rdi], 0
	jne	.L18
	cmp	QWORD PTR 112[rdi], 0
	je	.L17
.L18:
	lea	rdi, 16[rbp]
	call	osm_ucast_cache_invalidate@PLT
	mov	rdi, QWORD PTR 0[rbp]
.L17:
	add	rdi, 120
	call	cl_qmap_count@PLT
	test	rax, rax
	mov	rax, QWORD PTR 0[rbp]
	je	.L20
	mov	rcx, QWORD PTR IB_SMINFO_STATE_DISCOVERING[rip]
	cmp	QWORD PTR 16[rax], rcx
	je	.L20
	mov	rdx, QWORD PTR FALSE[rip]
	cmp	QWORD PTR 56[rax], rdx
	je	.L60
.L20:
	mov	rdi, QWORD PTR 48[rax]
	mov	esi, DWORD PTR OSM_EVENT_ID_HEAVY_SWEEP_START[rip]
	xor	edx, edx
	call	osm_opensm_report_event@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR IB_SMINFO_STATE_MASTER[rip]
	cmp	QWORD PTR 16[rdi], rax
	je	.L25
	mov	DWORD PTR 24[rdi], 1
.L25:
	mov	rdi, rbp
	call	state_mgr_sweep_hop_0@PLT
	cmp	QWORD PTR IB_SUCCESS[rip], rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	state_mgr_is_sm_port_down@PLT
	cmp	rax, QWORD PTR TRUE[rip]
	mov	rax, QWORD PTR 0[rbp]
	je	.L61
	mov	ecx, DWORD PTR 40[rax]
	test	ecx, ecx
	je	.L62
.L29:
	mov	rdi, rbp
	call	state_mgr_sweep_hop_1@PLT
	cmp	QWORD PTR IB_SUCCESS[rip], rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	cmp	QWORD PTR 40[rbp], 0
	jne	.L63
	mov	rdi, QWORD PTR 0[rbp]
	xor	ebx, ebx
	cmp	QWORD PTR [rdi], 0
	je	.L64
.L22:
	mov	rax, QWORD PTR FALSE[rip]
	mov	QWORD PTR [rdi], rax
	mov	QWORD PTR 32[rdi], rax
	mov	QWORD PTR 8[rdi], rax
	mov	eax, DWORD PTR IB_MAX_MTU[rip]
	mov	DWORD PTR 156[rdi], eax
	mov	eax, DWORD PTR IB_PATH_RECORD_RATE_300_GBS[rip]
	mov	DWORD PTR 152[rdi], eax
	mov	rax, QWORD PTR IB_MAX_NUM_VLS[rip]
	sub	rax, 1
	mov	QWORD PTR 144[rdi], rax
	mov	QWORD PTR 136[rdi], rax
	test	ebx, ebx
	jne	.L23
	call	osm_subn_rescan_conf_files@PLT
	test	rax, rax
	js	.L24
.L52:
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L62:
	mov	edi, DWORD PTR 12[rbp]
	mov	DWORD PTR 40[rax], 1
	lea	rcx, .LC6[rip]
	mov	edx, DWORD PTR FILE_ID[rip]
	mov	esi, DWORD PTR OSM_LOG_SYS[rip]
	call	osm_log_v2@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC7[rip]
	call	OSM_LOG_MSG_BOX@PLT
	jmp	.L29
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR TRUE[rip]
	xor	ebx, ebx
	mov	QWORD PTR [rdi], rax
	test	rax, rax
	je	.L5
.L57:
	call	osm_subn_rescan_conf_files@PLT
	test	rax, rax
	js	.L6
	mov	rdi, QWORD PTR 0[rbp]
	mov	ebx, 1
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L58:
	mov	rdi, rbp
	call	state_mgr_clean_known_lids@PLT
	mov	rdi, rbp
	call	state_mgr_sa_clean@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	DWORD PTR 24[rdi], 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	OSM_LOG@PLT
	jmp	.L52
	.p2align 4,,10
	.p2align 3
.L60:
	cmp	rdx, QWORD PTR [rax]
	jne	.L20
	mov	rcx, QWORD PTR TRUE[rip]
	cmp	QWORD PTR 32[rax], rcx
	jne	.L20
	cmp	rdx, QWORD PTR 8[rax]
	jne	.L20
	mov	QWORD PTR 32[rax], rdx
	lea	rdi, 16[rbp]
	mov	QWORD PTR 128[rax], rcx
	call	osm_ucast_mgr_process@PLT
	test	rax, rax
	jne	.L65
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_qos_setup@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR FALSE[rip]
	mov	QWORD PTR 128[rax], rdx
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_congestion_control_setup@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_congestion_control_wait_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR 8[rax], 0
	jne	.L20
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC3[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR UCAST_ROUTING_REROUTE[rip]
	mov	esi, DWORD PTR OSM_EVENT_ID_UCAST_ROUTING_DONE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, QWORD PTR 48[rax]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	osm_opensm_report_event@PLT
	.p2align 4,,10
	.p2align 3
.L59:
	.cfi_restore_state
	cmp	rax, QWORD PTR [rdi]
	jne	.L11
	cmp	rax, QWORD PTR 32[rdi]
	jne	.L11
	cmp	rax, QWORD PTR 8[rdi]
	jne	.L11
	mov	rdi, rbp
	call	state_mgr_light_sweep_start@PLT
	cmp	rax, QWORD PTR IB_SUCCESS[rip]
	je	.L12
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L61:
	mov	esi, DWORD PTR 40[rax]
	test	esi, esi
	jne	.L66
.L27:
	mov	rdi, rbp
	call	osm_drop_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rcx, QWORD PTR IB_SMINFO_STATE_DISCOVERING[rip]
	cmp	QWORD PTR 16[rax], rcx
	jne	.L67
.L28:
	mov	rdi, QWORD PTR 48[rax]
	mov	esi, DWORD PTR OSM_EVENT_ID_STATE_CHANGE[rip]
	xor	edx, edx
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	osm_opensm_report_event@PLT
	.p2align 4,,10
	.p2align 3
.L63:
	.cfi_restore_state
	mov	esi, DWORD PTR OSM_SM_SIGNAL_MASTER_OR_HIGHER_SM_DETECTED[rip]
	mov	rdi, rbp
	call	osm_sm_state_mgr_process@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC8[rip]
	call	OSM_LOG_MSG_BOX@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	osm_send_trap144@PLT
.L54:
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L64:
	mov	rdi, QWORD PTR 48[rdi]
	mov	esi, DWORD PTR OSM_EVENT_ID_HEAVY_SWEEP_DONE[rip]
	xor	edx, edx
	call	osm_opensm_report_event@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC9[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	rdi, rbp
	call	osm_drop_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 16[rax]
	cmp	rdx, QWORD PTR IB_SMINFO_STATE_MASTER[rip]
	je	.L68
.L31:
	cmp	QWORD PTR IB_SMINFO_STATE_DISCOVERING[rip], rdx
	je	.L69
.L35:
	mov	rdi, QWORD PTR 48[rax]
	call	osm_reset_switch_state_change_bit@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_pkey_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_sa_db_file_load@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC10[rip]
	lea	r12, 20[rbp]
	call	OSM_LOG_MSG_BOX@PLT
	mov	rdi, r12
	call	osm_lid_mgr_process_sm@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	mov	edi, DWORD PTR 12[rbp]
	lea	rdx, .LC11[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	rdi, rbp
	call	state_mgr_notify_lid_change@PLT
	mov	rdi, r12
	call	osm_lid_mgr_process_subnet@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	lea	r12, 16[rbp]
	call	state_mgr_check_tbl_consistency@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC12[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	edx, DWORD PTR 16[rbp]
	test	edx, edx
	je	.L39
	mov	rdi, r12
	call	osm_ucast_cache_process@PLT
	test	rax, rax
	je	.L38
.L39:
	mov	rdi, r12
	call	osm_ucast_mgr_process@PLT
	test	rax, rax
	jne	.L70
.L38:
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_qos_setup@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rdx, QWORD PTR FALSE[rip]
	mov	rax, QWORD PTR 0[rbp]
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	mov	QWORD PTR 128[rax], rdx
	lea	rdx, .LC13[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR UCAST_ROUTING_HEAVY_SWEEP[rip]
	mov	esi, DWORD PTR OSM_EVENT_ID_UCAST_ROUTING_DONE[rip]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_opensm_report_event@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	eax, DWORD PTR 80[rax]
	test	eax, eax
	jne	.L40
	mov	rsi, QWORD PTR TRUE[rip]
	mov	rdi, rbp
	call	osm_mcast_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC14[rip]
	call	OSM_LOG_MSG_BOX@PLT
.L40:
	mov	rdi, rbp
	call	osm_guid_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC15[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	esi, DWORD PTR IB_LINK_NO_CHANGE[rip]
	mov	rdi, rbp
	call	osm_link_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC16[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	esi, DWORD PTR IB_LINK_ARMED[rip]
	mov	rdi, rbp
	call	osm_link_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC17[rip]
	call	OSM_LOG_MSG_BOX@PLT
	mov	esi, DWORD PTR IB_LINK_ACTIVE[rip]
	mov	rdi, rbp
	call	osm_link_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_congestion_control_setup@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	osm_congestion_control_wait_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, rbp
	call	state_mgr_report_new_ports@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	edx, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR check_switch_lft[rip]
	lea	rdi, 120[rax]
	call	cl_qmap_apply_func@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR FALSE[rip]
	mov	rcx, QWORD PTR TRUE[rip]
	mov	QWORD PTR 112[rax], rdx
	mov	QWORD PTR 104[rax], rdx
	cmp	QWORD PTR 8[rax], rcx
	je	.L71
	mov	DWORD PTR 24[rax], 0
	mov	rdi, QWORD PTR 48[rax]
	call	osm_dump_all@PLT
	mov	rdi, rbp
	call	state_mgr_up_msg@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	call	OSM_LOG_IS_ACTIVE_V2@PLT
	test	rax, rax
	mov	rax, QWORD PTR 0[rbp]
	jne	.L43
	cmp	QWORD PTR 72[rax], 0
	je	.L42
.L43:
	mov	rdi, QWORD PTR 48[rax]
	call	osm_sa_db_file_dump@PLT
	test	eax, eax
	je	.L72
.L42:
	lea	rdi, 8[rbp]
	call	cl_event_signal@PLT
	mov	rax, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rax], 0
	jne	.L73
.L45:
	mov	esi, DWORD PTR 64[rax]
	mov	edi, DWORD PTR 100[rax]
	call	osm_db_store@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR 64[rax]
	mov	edi, DWORD PTR 96[rax]
	call	osm_db_store@PLT
	mov	rax, QWORD PTR 0[rbp]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	edx, edx
	mov	esi, DWORD PTR OSM_EVENT_ID_SUBNET_UP[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rdi, QWORD PTR 48[rax]
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	osm_opensm_report_event@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	call	OSM_LOG@PLT
	mov	rdi, QWORD PTR 0[rbp]
	jmp	.L5
.L67:
	mov	esi, DWORD PTR OSM_SM_SIGNAL_DISCOVER[rip]
	mov	rdi, rbp
	call	osm_sm_state_mgr_process@PLT
	jmp	.L54
.L66:
	mov	DWORD PTR 40[rax], 0
	mov	rdi, rbp
	call	state_mgr_sa_clean@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR FILE_ID[rip]
	lea	rcx, .LC4[rip]
	mov	esi, DWORD PTR OSM_LOG_SYS[rip]
	call	osm_log_v2@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	lea	rdx, .LC5[rip]
	call	OSM_LOG_MSG_BOX@PLT
	jmp	.L27
.L68:
	mov	rdi, rbp
	call	state_mgr_get_highest_sm@PLT
	mov	rdi, rbp
	mov	r12, rax
	test	rax, rax
	je	.L32
	call	state_mgr_report_new_ports@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	state_mgr_send_handover@PLT
	mov	esi, DWORD PTR OSM_SM_SIGNAL_HANDOVER_SENT[rip]
.L55:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	osm_sm_state_mgr_process@PLT
.L69:
	.cfi_restore_state
	mov	esi, DWORD PTR OSM_SM_SIGNAL_DISCOVERY_COMPLETED[rip]
	mov	rdi, rbp
	call	osm_sm_state_mgr_process@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L35
.L32:
	call	state_mgr_exists_other_master_sm@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L74
	cmp	QWORD PTR 24[rbp], 0
	jne	.L34
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 16[rax]
	jmp	.L31
.L74:
	mov	edi, DWORD PTR 32[rbp]
	call	CL_PLOCK_EXCL_ACQUIRE@PLT
	mov	rax, QWORD PTR [rbx]
	mov	edi, DWORD PTR 32[rbp]
	mov	QWORD PTR 24[rbp], rax
	call	CL_PLOCK_RELEASE@PLT
	mov	esi, DWORD PTR OSM_SM_SIGNAL_WAIT_FOR_HANDOVER[rip]
	jmp	.L55
.L34:
	mov	esi, DWORD PTR OSM_SM_SIGNAL_POLLING_TIMEOUT[rip]
	jmp	.L55
.L65:
	mov	edi, DWORD PTR 12[rbp]
	lea	rdx, .LC2[rip]
.L53:
	mov	esi, DWORD PTR OSM_LOG_VERBOSE[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	OSM_LOG_MSG_BOX@PLT
.L12:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, QWORD PTR 48[rax]
	call	wait_for_pending_transactions@PLT
	test	rax, rax
	jne	.L1
	mov	rdi, QWORD PTR 0[rbp]
	cmp	QWORD PTR [rdi], 0
	jne	.L11
	cmp	QWORD PTR 72[rdi], 0
	jne	.L75
.L15:
	mov	edi, DWORD PTR 12[rbp]
	lea	rdx, .LC1[rip]
	jmp	.L53
.L70:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	osm_ucast_cache_invalidate@PLT
.L72:
	.cfi_restore_state
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR OSM_EVENT_ID_SA_DB_DUMPED[rip]
	xor	edx, edx
	mov	rdi, QWORD PTR 48[rax]
	call	osm_opensm_report_event@PLT
	jmp	.L42
.L71:
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR FILE_ID[rip]
	lea	rcx, .LC18[rip]
	mov	esi, DWORD PTR OSM_LOG_SYS[rip]
	call	osm_log_v2@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	esi, DWORD PTR OSM_LOG_ERROR[rip]
	lea	rdx, .LC19[rip]
	call	OSM_LOG_MSG_BOX@PLT
	jmp	.L42
.L73:
	mov	esi, DWORD PTR OSM_SIGNAL_SWEEP[rip]
	mov	rdi, rbp
	call	osm_sm_signal@PLT
	mov	rax, QWORD PTR 0[rbp]
	jmp	.L45
.L75:
	mov	rdi, QWORD PTR 48[rdi]
	call	osm_sa_db_file_dump@PLT
	test	eax, eax
	jne	.L15
	mov	rax, QWORD PTR 0[rbp]
	mov	esi, DWORD PTR OSM_EVENT_ID_SA_DB_DUMPED[rip]
	xor	edx, edx
	mov	rdi, QWORD PTR 48[rax]
	call	osm_opensm_report_event@PLT
	jmp	.L15
	.cfi_endproc
.LFE0:
	.size	do_sweep, .-do_sweep
	.comm	check_switch_lft,4,4
	.comm	UCAST_ROUTING_REROUTE,8,8
	.comm	UCAST_ROUTING_HEAVY_SWEEP,8,8
	.comm	TRUE,8,8
	.comm	OSM_SM_SIGNAL_WAIT_FOR_HANDOVER,4,4
	.comm	OSM_SM_SIGNAL_POLLING_TIMEOUT,4,4
	.comm	OSM_SM_SIGNAL_MASTER_OR_HIGHER_SM_DETECTED,4,4
	.comm	OSM_SM_SIGNAL_HANDOVER_SENT,4,4
	.comm	OSM_SM_SIGNAL_DISCOVERY_COMPLETED,4,4
	.comm	OSM_SM_SIGNAL_DISCOVER,4,4
	.comm	OSM_SIGNAL_SWEEP,4,4
	.comm	OSM_LOG_VERBOSE,4,4
	.comm	OSM_LOG_SYS,4,4
	.comm	OSM_LOG_ERROR,4,4
	.comm	OSM_EVENT_ID_UCAST_ROUTING_DONE,4,4
	.comm	OSM_EVENT_ID_SUBNET_UP,4,4
	.comm	OSM_EVENT_ID_STATE_CHANGE,4,4
	.comm	OSM_EVENT_ID_SA_DB_DUMPED,4,4
	.comm	OSM_EVENT_ID_HEAVY_SWEEP_START,4,4
	.comm	OSM_EVENT_ID_HEAVY_SWEEP_DONE,4,4
	.comm	IB_SUCCESS,8,8
	.comm	IB_SMINFO_STATE_MASTER,8,8
	.comm	IB_SMINFO_STATE_DISCOVERING,8,8
	.comm	IB_PATH_RECORD_RATE_300_GBS,4,4
	.comm	IB_MAX_NUM_VLS,8,8
	.comm	IB_MAX_MTU,4,4
	.comm	IB_LINK_NO_CHANGE,4,4
	.comm	IB_LINK_ARMED,4,4
	.comm	IB_LINK_ACTIVE,4,4
	.comm	FILE_ID,4,4
	.comm	FALSE,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_osm_state_mgr.c_do_sweep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERR 331A: osm_subn_rescan_conf_file failed\012\000"
	.align	2
.LC1:
	.ascii	"LIGHT SWEEP COMPLETE\000"
	.align	2
.LC2:
	.ascii	"REROUTE FAILED\000"
	.align	2
.LC3:
	.ascii	"REROUTE COMPLETE\000"
	.align	2
.LC4:
	.ascii	"SM port is down\012\000"
	.align	2
.LC5:
	.ascii	"SM PORT DOWN\000"
	.align	2
.LC6:
	.ascii	"SM port is up\012\000"
	.align	2
.LC7:
	.ascii	"SM PORT UP\000"
	.align	2
.LC8:
	.ascii	"ENTERING STANDBY STATE\000"
	.align	2
.LC9:
	.ascii	"HEAVY SWEEP COMPLETE\000"
	.align	2
.LC10:
	.ascii	"PKEY setup completed - STARTING SM LID CONFIG\000"
	.align	2
.LC11:
	.ascii	"SM LID ASSIGNMENT COMPLETE - STARTING SUBNET LID CO"
	.ascii	"NFIG\000"
	.align	2
.LC12:
	.ascii	"LID ASSIGNMENT COMPLETE - STARTING SWITCH TABLE CON"
	.ascii	"FIG\000"
	.align	2
.LC13:
	.ascii	"SWITCHES CONFIGURED FOR UNICAST\000"
	.align	2
.LC14:
	.ascii	"SWITCHES CONFIGURED FOR MULTICAST\000"
	.align	2
.LC15:
	.ascii	"ALIAS GUIDS CONFIGURED\000"
	.align	2
.LC16:
	.ascii	"LINKS PORTS CONFIGURED - SET LINKS TO ARMED STATE\000"
	.align	2
.LC17:
	.ascii	"LINKS ARMED - SET LINKS TO ACTIVE STATE\000"
	.align	2
.LC18:
	.ascii	"Errors during initialization\012\000"
	.align	2
.LC19:
	.ascii	"ERRORS DURING INITIALIZATION\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_sweep, %function
do_sweep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r0, [r0]
	sub	sp, sp, #12
	ldr	r3, [r0, #88]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L96
	ldr	r7, .L96+4
	ldr	r3, [r3]
	ldr	r2, [r7]
	str	r3, [r0, #60]
	str	r3, [r0]
	str	r3, [r0, #56]
	str	r2, [r0, #88]
.L2:
	ldr	r3, [r0, #4]
	cmp	r3, #0
	ldrne	r3, .L96
	ldreq	r5, [r0]
	ldrne	r5, [r3]
	strne	r5, [r0]
	cmp	r5, #0
	bne	.L77
.L5:
	ldr	r8, .L96+8
	ldr	r3, [r0, #8]
	ldr	r2, [r8]
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L96+12
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L7:
	ldr	r3, [r0, #60]
	cmp	r3, #0
	bne	.L78
.L9:
	mov	r3, #0
	add	r0, r0, #64
	str	r3, [r4, #28]
	bl	cl_qmap_count
	cmp	r0, #0
	ldr	r0, [r4]
	bne	.L79
	ldr	r7, .L96+4
.L11:
	ldr	r3, [r0, #44]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [r0, #16]
	cmp	r3, #0
	bne	.L18
	ldr	r3, [r0, #60]
	cmp	r3, #0
	bne	.L18
.L17:
	add	r0, r0, #64
	bl	cl_qmap_count
	cmp	r0, #0
	ldr	r3, [r4]
	beq	.L20
	ldr	r2, .L96+12
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L20
	ldr	r1, [r7]
	ldr	r2, [r3, #28]
	cmp	r2, r1
	beq	.L80
.L20:
	ldr	r2, .L96+16
	ldr	r0, [r3, #24]
	ldr	r1, [r2]
	mov	r2, #0
	bl	osm_opensm_report_event
	ldr	r6, .L96+20
	ldr	r0, [r4]
	ldr	r10, .L96+24
	ldr	r9, .L96+28
	ldr	fp, .L96
	b	.L22
.L23:
	ldr	r3, [r8]
	ldr	r2, [r0, #8]
	cmp	r2, r3
	movne	r3, #1
	strne	r3, [r0, #12]
	mov	r0, r4
	bl	state_mgr_sweep_hop_0
	ldr	r3, [r6]
	cmp	r3, r0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	state_mgr_is_sm_port_down
	ldr	r3, [fp]
	cmp	r0, r3
	beq	.L81
	ldr	r2, [r4]
	ldr	r3, [r2, #20]
	cmp	r3, #0
	beq	.L82
.L29:
	mov	r0, r4
	bl	state_mgr_sweep_hop_1
	ldr	r3, [r6]
	cmp	r3, r0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r5, [r4, #28]
	cmp	r5, #0
	bne	.L83
	ldr	r0, [r4]
	ldr	r2, [r0]
	cmp	r2, #0
	beq	.L84
.L22:
	ldr	r3, [r9]
	ldr	r1, .L96+32
	sub	r3, r3, #1
	ldr	r2, [r7]
	ldr	r1, [r1]
	str	r3, [r0, #76]
	str	r3, [r0, #72]
	ldr	r3, [r10]
	cmp	r5, #0
	str	r2, [r0]
	str	r2, [r0, #16]
	str	r2, [r0, #4]
	str	r1, [r0, #84]
	str	r3, [r0, #80]
	bne	.L23
	bl	osm_subn_rescan_conf_files
	cmp	r0, #0
	blt	.L24
.L71:
	ldr	r0, [r4]
	b	.L23
.L79:
	ldr	r3, .L96+12
	ldr	r2, [r0, #8]
	ldr	r3, [r3]
	ldr	r7, .L96+4
	cmp	r2, r3
	beq	.L11
	ldr	r3, [r0, #28]
	ldr	r2, [r7]
	cmp	r3, r2
	bne	.L11
	ldr	r2, [r0]
	cmp	r3, r2
	bne	.L11
	ldr	r2, [r0, #16]
	cmp	r3, r2
	bne	.L11
	ldr	r2, [r0, #4]
	cmp	r3, r2
	bne	.L11
	mov	r0, r4
	bl	state_mgr_light_sweep_start
	ldr	r6, .L96+20
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L12
	ldr	r0, [r4]
	b	.L11
.L78:
	mov	r0, r4
	bl	state_mgr_clean_known_lids
	mov	r0, r4
	bl	state_mgr_sa_clean
	mov	r3, #1
	ldr	r0, [r4]
	str	r3, [r0, #12]
	b	.L9
.L18:
	add	r0, r4, #12
	bl	osm_ucast_cache_invalidate
	ldr	r0, [r4]
	b	.L17
.L82:
	mov	r1, #1
	str	r1, [r2, #20]
	ldr	r2, .L96+36
	ldr	r1, .L96+40
	ldr	r3, .L96+44
	ldr	r2, [r2]
	ldr	r1, [r1]
	ldr	r0, [r4, #8]
	bl	osm_log_v2
	ldr	r3, .L96+48
	ldr	r2, .L96+52
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	b	.L29
.L24:
	ldr	r3, .L96+56
	ldr	r2, .L96+60
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG
	b	.L71
.L77:
	bl	osm_subn_rescan_conf_files
	cmp	r0, #0
	blt	.L6
	mov	r5, #1
	ldr	r0, [r4]
	b	.L5
.L80:
	ldr	r1, [r3]
	cmp	r2, r1
	bne	.L20
	ldr	r0, .L96
	ldr	r1, [r3, #16]
	ldr	r0, [r0]
	cmp	r1, r0
	bne	.L20
	ldr	r0, [r3, #4]
	cmp	r2, r0
	bne	.L20
	str	r2, [r3, #16]
	str	r1, [r3, #68]
	add	r0, r4, #12
	bl	osm_ucast_mgr_process
	cmp	r0, #0
	bne	.L85
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_qos_setup
	ldr	r3, [r4]
	ldr	r2, [r7]
	ldr	r0, [r3, #24]
	str	r2, [r3, #68]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_congestion_control_setup
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_congestion_control_wait_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r2, [r3, #4]
	cmp	r2, #0
	bne	.L20
	ldr	r3, .L96+48
	ldr	r2, .L96+64
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r1, [r4]
	ldr	r2, .L96+68
	ldr	r3, .L96+72
	ldr	r0, [r1, #24]
	ldr	r2, [r2]
	ldr	r1, [r3]
	b	.L73
.L81:
	ldr	r3, [r4]
	ldr	r2, [r3, #20]
	cmp	r2, #0
	bne	.L86
.L27:
	mov	r0, r4
	bl	osm_drop_mgr_process
	ldr	r3, [r4]
	ldr	r2, .L96+12
	ldr	r1, [r3, #8]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L87
.L28:
	ldr	r2, .L96+76
	ldr	r0, [r3, #24]
	ldr	r1, [r2]
.L74:
	mov	r2, #0
.L73:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	osm_opensm_report_event
.L83:
	ldr	r2, .L96+80
	str	r0, [sp, #4]
	ldr	r1, [r2]
	mov	r0, r4
	bl	osm_sm_state_mgr_process
	ldr	r1, .L96+48
	ldr	r2, .L96+84
	ldr	r1, [r1]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, [sp, #4]
	mov	r0, r4
	mov	r1, r3
	bl	osm_send_trap144
	ldr	r2, [r4]
	ldr	r1, .L96+76
	ldr	r3, [sp, #4]
	ldr	r0, [r2, #24]
	ldr	r1, [r1]
	mov	r2, r3
	b	.L73
.L84:
	ldr	r3, .L96+88
	ldr	r5, .L96+48
	ldr	r1, [r3]
	ldr	r0, [r0, #24]
	bl	osm_opensm_report_event
	ldr	r1, [r5]
	ldr	r2, .L96+92
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	mov	r0, r4
	bl	osm_drop_mgr_process
	ldr	r3, [r4]
	ldr	r1, [r8]
	ldr	r2, [r3, #8]
	cmp	r2, r1
	beq	.L88
.L31:
	ldr	r1, .L96+12
	ldr	r1, [r1]
	cmp	r1, r2
	beq	.L89
.L35:
	ldr	r0, [r3, #24]
	bl	osm_reset_switch_state_change_bit
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_pkey_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_sa_db_file_load
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+96
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	add	r6, r4, #16
	bl	OSM_LOG_MSG_BOX
	mov	r0, r6
	bl	osm_lid_mgr_process_sm
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+100
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	mov	r0, r4
	bl	state_mgr_notify_lid_change
	mov	r0, r6
	bl	osm_lid_mgr_process_subnet
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	mov	r0, r4
	bl	state_mgr_check_tbl_consistency
	ldr	r2, .L96+104
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, [r4, #12]
	add	r6, r4, #12
	cmp	r3, #0
	beq	.L39
	mov	r0, r6
	bl	osm_ucast_cache_process
	cmp	r0, #0
	beq	.L38
.L39:
	mov	r0, r6
	bl	osm_ucast_mgr_process
	cmp	r0, #0
	bne	.L90
.L38:
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_qos_setup
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r1, [r7]
	ldr	r2, .L96+108
	str	r1, [r3, #68]
	ldr	r0, [r4, #8]
	ldr	r1, [r5]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, [r4]
	ldr	r2, .L96+112
	ldr	r1, .L96+72
	ldr	r0, [r3, #24]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	osm_opensm_report_event
	ldr	r3, [r4]
	ldr	r3, [r3, #40]
	cmp	r3, #0
	bne	.L40
	ldr	r1, [fp]
	mov	r0, r4
	bl	osm_mcast_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+116
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
.L40:
	mov	r0, r4
	bl	osm_guid_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+120
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, .L96+124
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_link_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+128
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, .L96+132
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_link_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r2, .L96+136
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	ldr	r3, .L96+140
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_link_mgr_process
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_congestion_control_setup
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	osm_congestion_control_wait_pending_transactions
	subs	r6, r0, #0
	bne	.L1
	mov	r0, r4
	bl	state_mgr_report_new_ports
	ldr	r3, .L96+144
	ldr	r0, [r4]
	ldr	r1, [r3]
	ldr	r2, [r4, #8]
	add	r0, r0, #64
	bl	cl_qmap_apply_func
	ldr	r3, [r4]
	ldr	r1, [fp]
	ldr	r0, [r3, #4]
	ldr	r2, [r7]
	cmp	r0, r1
	str	r2, [r3, #60]
	str	r2, [r3, #56]
	beq	.L91
	ldr	r0, [r3, #24]
	str	r6, [r3, #12]
	bl	osm_dump_all
	mov	r0, r4
	bl	state_mgr_up_msg
	ldr	r1, [r5]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_IS_ACTIVE_V2
	cmp	r0, #0
	ldr	r3, [r4]
	bne	.L43
	ldr	r2, [r3, #36]
	cmp	r2, #0
	beq	.L42
.L43:
	ldr	r0, [r3, #24]
	bl	osm_sa_db_file_dump
	subs	r2, r0, #0
	beq	.L92
.L42:
	add	r0, r4, #4
	bl	cl_event_signal
	ldr	r3, [r4]
	ldr	r2, [r3]
	cmp	r2, #0
	bne	.L93
.L45:
	ldr	r1, [r3, #32]
	ldr	r0, [r3, #52]
	bl	osm_db_store
	ldr	r3, [r4]
	ldr	r1, [r3, #32]
	ldr	r0, [r3, #48]
	bl	osm_db_store
	ldr	r2, [r4]
	ldr	r3, .L96+148
	ldr	r0, [r2, #24]
	ldr	r1, [r3]
	b	.L74
.L6:
	ldr	r3, .L96+56
	ldr	r2, .L96+60
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG
	mov	r5, #0
	ldr	r0, [r4]
	b	.L5
.L87:
	ldr	r3, .L96+152
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_sm_state_mgr_process
	ldr	r3, [r4]
	b	.L28
.L86:
	str	r5, [r3, #20]
	mov	r0, r4
	bl	state_mgr_sa_clean
	ldr	r3, .L96+40
	ldr	r2, .L96+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L96+156
	ldr	r0, [r4, #8]
	bl	osm_log_v2
	ldr	r3, .L96+48
	ldr	r2, .L96+160
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	b	.L27
.L88:
	mov	r0, r4
	bl	state_mgr_get_highest_sm
	subs	r6, r0, #0
	mov	r0, r4
	beq	.L32
	bl	state_mgr_report_new_ports
	mov	r1, r6
	mov	r0, r4
	bl	state_mgr_send_handover
	ldr	r3, .L96+164
.L75:
	mov	r0, r4
	ldr	r1, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	osm_sm_state_mgr_process
.L89:
	ldr	r3, .L96+168
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_sm_state_mgr_process
	ldr	r3, [r4]
	b	.L35
.L32:
	bl	state_mgr_exists_other_master_sm
	subs	r6, r0, #0
	bne	.L94
	ldr	r3, [r4, #20]
	cmp	r3, #0
	bne	.L34
	ldr	r3, [r4]
	ldr	r2, [r3, #8]
	b	.L31
.L94:
	ldr	r0, [r4, #24]
	bl	CL_PLOCK_EXCL_ACQUIRE
	ldr	r3, [r6]
	ldr	r0, [r4, #24]
	str	r3, [r4, #20]
	bl	CL_PLOCK_RELEASE
	ldr	r3, .L96+172
	b	.L75
.L34:
	ldr	r3, .L96+176
	b	.L75
.L85:
	ldr	r3, .L96+48
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	ldr	r2, .L96+180
.L72:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	OSM_LOG_MSG_BOX
.L12:
	ldr	r3, [r4]
	ldr	r0, [r3, #24]
	bl	wait_for_pending_transactions
	cmp	r0, #0
	bne	.L1
	ldr	r0, [r4]
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [r0, #36]
	cmp	r3, #0
	bne	.L95
.L15:
	ldr	r3, .L96+48
	ldr	r0, [r4, #8]
	ldr	r1, [r3]
	ldr	r2, .L96+184
	b	.L72
.L90:
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	osm_ucast_cache_invalidate
.L92:
	ldr	r3, [r4]
	ldr	r1, .L96+188
	ldr	r0, [r3, #24]
	ldr	r1, [r1]
	bl	osm_opensm_report_event
	b	.L42
.L91:
	ldr	r3, .L96+40
	ldr	r2, .L96+36
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r3, .L96+192
	ldr	r0, [r4, #8]
	bl	osm_log_v2
	ldr	r3, .L96+56
	ldr	r2, .L96+196
	ldr	r1, [r3]
	ldr	r0, [r4, #8]
	bl	OSM_LOG_MSG_BOX
	b	.L42
.L93:
	ldr	r3, .L96+200
	mov	r0, r4
	ldr	r1, [r3]
	bl	osm_sm_signal
	ldr	r3, [r4]
	b	.L45
.L95:
	ldr	r0, [r0, #24]
	bl	osm_sa_db_file_dump
	subs	r2, r0, #0
	bne	.L15
	ldr	r3, [r4]
	ldr	r1, .L96+188
	ldr	r0, [r3, #24]
	ldr	r1, [r1]
	bl	osm_opensm_report_event
	b	.L15
.L97:
	.align	2
.L96:
	.word	TRUE
	.word	FALSE
	.word	IB_SMINFO_STATE_MASTER
	.word	IB_SMINFO_STATE_DISCOVERING
	.word	OSM_EVENT_ID_HEAVY_SWEEP_START
	.word	IB_SUCCESS
	.word	IB_PATH_RECORD_RATE_300_GBS
	.word	IB_MAX_NUM_VLS
	.word	IB_MAX_MTU
	.word	FILE_ID
	.word	OSM_LOG_SYS
	.word	.LC6
	.word	OSM_LOG_VERBOSE
	.word	.LC7
	.word	OSM_LOG_ERROR
	.word	.LC0
	.word	.LC3
	.word	UCAST_ROUTING_REROUTE
	.word	OSM_EVENT_ID_UCAST_ROUTING_DONE
	.word	OSM_EVENT_ID_STATE_CHANGE
	.word	OSM_SM_SIGNAL_MASTER_OR_HIGHER_SM_DETECTED
	.word	.LC8
	.word	OSM_EVENT_ID_HEAVY_SWEEP_DONE
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	UCAST_ROUTING_HEAVY_SWEEP
	.word	.LC14
	.word	.LC15
	.word	IB_LINK_NO_CHANGE
	.word	.LC16
	.word	IB_LINK_ARMED
	.word	.LC17
	.word	IB_LINK_ACTIVE
	.word	check_switch_lft
	.word	OSM_EVENT_ID_SUBNET_UP
	.word	OSM_SM_SIGNAL_DISCOVER
	.word	.LC4
	.word	.LC5
	.word	OSM_SM_SIGNAL_HANDOVER_SENT
	.word	OSM_SM_SIGNAL_DISCOVERY_COMPLETED
	.word	OSM_SM_SIGNAL_WAIT_FOR_HANDOVER
	.word	OSM_SM_SIGNAL_POLLING_TIMEOUT
	.word	.LC2
	.word	.LC1
	.word	OSM_EVENT_ID_SA_DB_DUMPED
	.word	.LC18
	.word	.LC19
	.word	OSM_SIGNAL_SWEEP
	.size	do_sweep, .-do_sweep
	.comm	check_switch_lft,4,4
	.comm	UCAST_ROUTING_REROUTE,4,4
	.comm	UCAST_ROUTING_HEAVY_SWEEP,4,4
	.comm	TRUE,4,4
	.comm	OSM_SM_SIGNAL_WAIT_FOR_HANDOVER,4,4
	.comm	OSM_SM_SIGNAL_POLLING_TIMEOUT,4,4
	.comm	OSM_SM_SIGNAL_MASTER_OR_HIGHER_SM_DETECTED,4,4
	.comm	OSM_SM_SIGNAL_HANDOVER_SENT,4,4
	.comm	OSM_SM_SIGNAL_DISCOVERY_COMPLETED,4,4
	.comm	OSM_SM_SIGNAL_DISCOVER,4,4
	.comm	OSM_SIGNAL_SWEEP,4,4
	.comm	OSM_LOG_VERBOSE,4,4
	.comm	OSM_LOG_SYS,4,4
	.comm	OSM_LOG_ERROR,4,4
	.comm	OSM_EVENT_ID_UCAST_ROUTING_DONE,4,4
	.comm	OSM_EVENT_ID_SUBNET_UP,4,4
	.comm	OSM_EVENT_ID_STATE_CHANGE,4,4
	.comm	OSM_EVENT_ID_SA_DB_DUMPED,4,4
	.comm	OSM_EVENT_ID_HEAVY_SWEEP_START,4,4
	.comm	OSM_EVENT_ID_HEAVY_SWEEP_DONE,4,4
	.comm	IB_SUCCESS,4,4
	.comm	IB_SMINFO_STATE_MASTER,4,4
	.comm	IB_SMINFO_STATE_DISCOVERING,4,4
	.comm	IB_PATH_RECORD_RATE_300_GBS,4,4
	.comm	IB_MAX_NUM_VLS,4,4
	.comm	IB_MAX_MTU,4,4
	.comm	IB_LINK_NO_CHANGE,4,4
	.comm	IB_LINK_ARMED,4,4
	.comm	IB_LINK_ACTIVE,4,4
	.comm	FILE_ID,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
