	.file	"24741.c"
	.intel_syntax noprefix
	.text
	.globl	C_CONNECTED
	.bss
	.align 8
	.type	C_CONNECTED, @object
	.size	C_CONNECTED, 8
C_CONNECTED:
	.zero	8
	.globl	C_PAUSED_SYNC_S
	.align 8
	.type	C_PAUSED_SYNC_S, @object
	.size	C_PAUSED_SYNC_S, 8
C_PAUSED_SYNC_S:
	.zero	8
	.globl	C_STARTING_SYNC_S
	.align 8
	.type	C_STARTING_SYNC_S, @object
	.size	C_STARTING_SYNC_S, 8
C_STARTING_SYNC_S:
	.zero	8
	.globl	C_STARTING_SYNC_T
	.align 8
	.type	C_STARTING_SYNC_T, @object
	.size	C_STARTING_SYNC_T, 8
C_STARTING_SYNC_T:
	.zero	8
	.globl	C_SYNC_SOURCE
	.align 8
	.type	C_SYNC_SOURCE, @object
	.size	C_SYNC_SOURCE, 8
C_SYNC_SOURCE:
	.zero	8
	.globl	C_VERIFY_S
	.align 8
	.type	C_VERIFY_S, @object
	.size	C_VERIFY_S, 8
C_VERIFY_S:
	.zero	8
	.globl	C_VERIFY_T
	.align 8
	.type	C_VERIFY_T, @object
	.size	C_VERIFY_T, 8
C_VERIFY_T:
	.zero	8
	.globl	C_WF_BITMAP_S
	.align 8
	.type	C_WF_BITMAP_S, @object
	.size	C_WF_BITMAP_S, 8
C_WF_BITMAP_S:
	.zero	8
	.globl	D_INCONSISTENT
	.align 8
	.type	D_INCONSISTENT, @object
	.size	D_INCONSISTENT, 8
D_INCONSISTENT:
	.zero	8
	.globl	D_OUTDATED
	.align 8
	.type	D_OUTDATED, @object
	.size	D_OUTDATED, 8
D_OUTDATED:
	.zero	8
	.globl	D_UNKNOWN
	.align 8
	.type	D_UNKNOWN, @object
	.size	D_UNKNOWN, 8
D_UNKNOWN:
	.zero	8
	.globl	D_UP_TO_DATE
	.align 8
	.type	D_UP_TO_DATE, @object
	.size	D_UP_TO_DATE, 8
D_UP_TO_DATE:
	.zero	8
	.globl	FP_DONT_CARE
	.align 4
	.type	FP_DONT_CARE, @object
	.size	FP_DONT_CARE, 4
FP_DONT_CARE:
	.zero	4
	.globl	FP_RESOURCE
	.align 4
	.type	FP_RESOURCE, @object
	.size	FP_RESOURCE, 4
FP_RESOURCE:
	.zero	4
	.globl	R_PRIMARY
	.align 8
	.type	R_PRIMARY, @object
	.size	R_PRIMARY, 8
R_PRIMARY:
	.zero	8
	.globl	R_SECONDARY
	.align 8
	.type	R_SECONDARY, @object
	.size	R_SECONDARY, 8
R_SECONDARY:
	.zero	8
	.globl	SS_CONNECTED_OUTDATES
	.align 4
	.type	SS_CONNECTED_OUTDATES, @object
	.size	SS_CONNECTED_OUTDATES, 4
SS_CONNECTED_OUTDATES:
	.zero	4
	.globl	SS_DEVICE_IN_USE
	.align 4
	.type	SS_DEVICE_IN_USE, @object
	.size	SS_DEVICE_IN_USE, 4
SS_DEVICE_IN_USE:
	.zero	4
	.globl	SS_NEED_CONNECTION
	.align 4
	.type	SS_NEED_CONNECTION, @object
	.size	SS_NEED_CONNECTION, 4
SS_NEED_CONNECTION:
	.zero	4
	.globl	SS_NOT_SUPPORTED
	.align 4
	.type	SS_NOT_SUPPORTED, @object
	.size	SS_NOT_SUPPORTED, 4
SS_NOT_SUPPORTED:
	.zero	4
	.globl	SS_NO_LOCAL_DISK
	.align 4
	.type	SS_NO_LOCAL_DISK, @object
	.size	SS_NO_LOCAL_DISK, 4
SS_NO_LOCAL_DISK:
	.zero	4
	.globl	SS_NO_REMOTE_DISK
	.align 4
	.type	SS_NO_REMOTE_DISK, @object
	.size	SS_NO_REMOTE_DISK, 4
SS_NO_REMOTE_DISK:
	.zero	4
	.globl	SS_NO_UP_TO_DATE_DISK
	.align 4
	.type	SS_NO_UP_TO_DATE_DISK, @object
	.size	SS_NO_UP_TO_DATE_DISK, 4
SS_NO_UP_TO_DATE_DISK:
	.zero	4
	.globl	SS_NO_VERIFY_ALG
	.align 4
	.type	SS_NO_VERIFY_ALG, @object
	.size	SS_NO_VERIFY_ALG, 4
SS_NO_VERIFY_ALG:
	.zero	4
	.globl	SS_O_VOL_PEER_PRI
	.align 4
	.type	SS_O_VOL_PEER_PRI, @object
	.size	SS_O_VOL_PEER_PRI, 4
SS_O_VOL_PEER_PRI:
	.zero	4
	.globl	SS_PRIMARY_NOP
	.align 4
	.type	SS_PRIMARY_NOP, @object
	.size	SS_PRIMARY_NOP, 4
SS_PRIMARY_NOP:
	.zero	4
	.globl	SS_SUCCESS
	.align 4
	.type	SS_SUCCESS, @object
	.size	SS_SUCCESS, 4
SS_SUCCESS:
	.zero	4
	.globl	SS_TWO_PRIMARIES
	.align 4
	.type	SS_TWO_PRIMARIES, @object
	.size	SS_TWO_PRIMARIES, 4
SS_TWO_PRIMARIES:
	.zero	4
	.text
	.type	is_valid_state, @function
is_valid_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR SS_SUCCESS[rip]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, 0
	call	rcu_read_lock@PLT
	mov	eax, DWORD PTR FP_DONT_CARE[rip]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	get_ldev@PLT
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	rcu_dereference@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	put_ldev@PLT
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	first_peer_device@PLT
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	rcu_dereference@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	test	eax, eax
	jne	.L3
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L3
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L4
	mov	eax, DWORD PTR SS_TWO_PRIMARIES[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L3
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	first_peer_device@PLT
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	conn_highest_peer@PLT
	mov	rdx, QWORD PTR R_PRIMARY[rip]
	cmp	rax, rdx
	jne	.L3
	mov	eax, DWORD PTR SS_O_VOL_PEER_PRI[rip]
	mov	DWORD PTR -12[rbp], eax
.L3:
	cmp	DWORD PTR -12[rbp], 0
	je	.L24
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_SECONDARY[rip]
	cmp	rdx, rax
	jne	.L7
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L7
	mov	eax, DWORD PTR SS_DEVICE_IN_USE[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L8
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jge	.L8
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UP_TO_DATE[rip]
	cmp	rdx, rax
	jge	.L8
	mov	eax, DWORD PTR SS_NO_UP_TO_DATE_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L8:
	mov	eax, DWORD PTR FP_RESOURCE[rip]
	cmp	DWORD PTR -16[rbp], eax
	jb	.L9
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L9
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jge	.L9
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UNKNOWN[rip]
	cmp	rdx, rax
	jl	.L9
	mov	eax, DWORD PTR SS_PRIMARY_NOP[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L9:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L10
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_INCONSISTENT[rip]
	cmp	rdx, rax
	jg	.L10
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_INCONSISTENT[rip]
	cmp	rdx, rax
	jg	.L10
	mov	eax, DWORD PTR SS_NO_UP_TO_DATE_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L10:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jle	.L11
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_INCONSISTENT[rip]
	cmp	rdx, rax
	jge	.L11
	mov	eax, DWORD PTR SS_NO_LOCAL_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L11:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jle	.L12
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_INCONSISTENT[rip]
	cmp	rdx, rax
	jge	.L12
	mov	eax, DWORD PTR SS_NO_REMOTE_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L12:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jle	.L13
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UP_TO_DATE[rip]
	cmp	rdx, rax
	jge	.L13
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UP_TO_DATE[rip]
	cmp	rdx, rax
	jge	.L13
	mov	eax, DWORD PTR SS_NO_UP_TO_DATE_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L13:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	je	.L14
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_WF_BITMAP_S[rip]
	cmp	rdx, rax
	je	.L14
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_SYNC_SOURCE[rip]
	cmp	rdx, rax
	je	.L14
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_PAUSED_SYNC_S[rip]
	cmp	rdx, rax
	jne	.L15
.L14:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_OUTDATED[rip]
	cmp	rdx, rax
	jne	.L15
	mov	eax, DWORD PTR SS_CONNECTED_OUTDATES[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L15:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_VERIFY_S[rip]
	cmp	rdx, rax
	je	.L16
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_VERIFY_T[rip]
	cmp	rdx, rax
	jne	.L17
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR SS_NO_VERIFY_ALG[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L17:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_VERIFY_S[rip]
	cmp	rdx, rax
	je	.L18
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_VERIFY_T[rip]
	cmp	rdx, rax
	jne	.L19
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	first_peer_device@PLT
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 87
	jg	.L19
	mov	eax, DWORD PTR SS_NOT_SUPPORTED[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L19:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR R_PRIMARY[rip]
	cmp	rdx, rax
	jne	.L20
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UP_TO_DATE[rip]
	cmp	rdx, rax
	jge	.L20
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UP_TO_DATE[rip]
	cmp	rdx, rax
	jge	.L20
	mov	eax, DWORD PTR SS_NO_UP_TO_DATE_DISK[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L20:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_STARTING_SYNC_S[rip]
	cmp	rdx, rax
	je	.L21
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_STARTING_SYNC_T[rip]
	cmp	rdx, rax
	jne	.L22
.L21:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UNKNOWN[rip]
	cmp	rdx, rax
	jne	.L22
	mov	eax, DWORD PTR SS_NEED_CONNECTION[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L22:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR C_CONNECTED[rip]
	cmp	rdx, rax
	jl	.L25
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR D_UNKNOWN[rip]
	cmp	rdx, rax
	jne	.L25
	mov	eax, DWORD PTR SS_CONNECTED_OUTDATES[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L6
.L24:
	nop
	jmp	.L6
.L25:
	nop
.L6:
	mov	eax, 0
	call	rcu_read_unlock@PLT
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	is_valid_state, .-is_valid_state
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"24741.c"
	.text
	.comm	C_CONNECTED,4,4
	.comm	C_PAUSED_SYNC_S,4,4
	.comm	C_STARTING_SYNC_S,4,4
	.comm	C_STARTING_SYNC_T,4,4
	.comm	C_SYNC_SOURCE,4,4
	.comm	C_VERIFY_S,4,4
	.comm	C_VERIFY_T,4,4
	.comm	C_WF_BITMAP_S,4,4
	.comm	D_INCONSISTENT,4,4
	.comm	D_OUTDATED,4,4
	.comm	D_UNKNOWN,4,4
	.comm	D_UP_TO_DATE,4,4
	.comm	FP_DONT_CARE,4,4
	.comm	FP_RESOURCE,4,4
	.comm	R_PRIMARY,4,4
	.comm	R_SECONDARY,4,4
	.comm	SS_CONNECTED_OUTDATES,4,4
	.comm	SS_DEVICE_IN_USE,4,4
	.comm	SS_NEED_CONNECTION,4,4
	.comm	SS_NOT_SUPPORTED,4,4
	.comm	SS_NO_LOCAL_DISK,4,4
	.comm	SS_NO_REMOTE_DISK,4,4
	.comm	SS_NO_UP_TO_DATE_DISK,4,4
	.comm	SS_NO_VERIFY_ALG,4,4
	.comm	SS_O_VOL_PEER_PRI,4,4
	.comm	SS_PRIMARY_NOP,4,4
	.comm	SS_SUCCESS,4,4
	.comm	SS_TWO_PRIMARIES,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid_state, %function
is_valid_state:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	bl	rcu_read_lock
	ldr	r3, .L26+4
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	get_ldev
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r0, r3
	bl	rcu_dereference
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	put_ldev
.L2:
	ldr	r0, [fp, #-24]
	bl	first_peer_device
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	rcu_dereference
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L3
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r3, .L26+12
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L3
.L4:
	ldr	r0, [fp, #-24]
	bl	first_peer_device
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	conn_highest_peer
	mov	r2, r0
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L3
	ldr	r3, .L26+16
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L3:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L24
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L26+24
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L8
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L8
	ldr	r3, .L26+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L8:
	ldr	r3, .L26+40
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	cmp	r3, r2
	bcc	.L9
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L9
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+44
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L9
	ldr	r3, .L26+48
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L9:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L10
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+52
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L10
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+52
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L10
	ldr	r3, .L26+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L10:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L11
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+52
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L11
	ldr	r3, .L26+56
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L11:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L12
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+52
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L12
	ldr	r3, .L26+60
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L12:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L13
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L13
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L13
	ldr	r3, .L26+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L13:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+64
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+68
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L14
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+72
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
.L14:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+76
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r3, .L26+80
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L15:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+84
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L16
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+88
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L17
.L16:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, .L26+92
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L17:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+84
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L18
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+88
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L19
.L18:
	ldr	r0, [fp, #-24]
	bl	first_peer_device
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #87
	bgt	.L19
	ldr	r3, .L26+96
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L19:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L20
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+32
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L20
	ldr	r3, .L26+36
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L20:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+100
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L21
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+104
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
.L21:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+44
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
	ldr	r3, .L26+108
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L22:
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+28
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L25
	ldr	r2, [fp, #-28]
	ldr	r3, .L26+44
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L25
	ldr	r3, .L26+80
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L24:
	nop
	b	.L6
.L25:
	nop
.L6:
	bl	rcu_read_unlock
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	SS_SUCCESS
	.word	FP_DONT_CARE
	.word	R_PRIMARY
	.word	SS_TWO_PRIMARIES
	.word	SS_O_VOL_PEER_PRI
	.word	R_SECONDARY
	.word	SS_DEVICE_IN_USE
	.word	C_CONNECTED
	.word	D_UP_TO_DATE
	.word	SS_NO_UP_TO_DATE_DISK
	.word	FP_RESOURCE
	.word	D_UNKNOWN
	.word	SS_PRIMARY_NOP
	.word	D_INCONSISTENT
	.word	SS_NO_LOCAL_DISK
	.word	SS_NO_REMOTE_DISK
	.word	C_WF_BITMAP_S
	.word	C_SYNC_SOURCE
	.word	C_PAUSED_SYNC_S
	.word	D_OUTDATED
	.word	SS_CONNECTED_OUTDATES
	.word	C_VERIFY_S
	.word	C_VERIFY_T
	.word	SS_NO_VERIFY_ALG
	.word	SS_NOT_SUPPORTED
	.word	C_STARTING_SYNC_S
	.word	C_STARTING_SYNC_T
	.word	SS_NEED_CONNECTION
	.size	is_valid_state, .-is_valid_state
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
