	.file	"extr_drbd_state.c_is_valid_soft_transition.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	is_valid_soft_transition, @function
is_valid_soft_transition:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, DWORD PTR SS_SUCCESS[rip]
	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	rbx, rsi
	cmp	QWORD PTR C_STARTING_SYNC_T[rip], rbx
	mov	rsi, rdx
	je	.L2
	cmp	QWORD PTR C_STARTING_SYNC_S[rip], rbx
	je	.L2
.L3:
	mov	rax, QWORD PTR C_DISCONNECTING[rip]
	cmp	rax, rbx
	je	.L44
.L4:
	mov	rcx, QWORD PTR D_ATTACHING[rip]
	cmp	rcx, rbx
	jge	.L5
	cmp	QWORD PTR D_DISKLESS[rip], rbp
	je	.L45
.L5:
	cmp	QWORD PTR C_WF_CONNECTION[rip], rbx
	je	.L46
.L6:
	mov	rdx, QWORD PTR D_OUTDATED[rip]
	cmp	rdx, rbx
	sete	dil
	cmp	rdx, rbp
	setg	dl
	test	dil, dl
	je	.L7
	cmp	rcx, rbp
	cmovne	r12d, DWORD PTR SS_LOWER_THAN_OUTDATED[rip]
.L7:
	cmp	rax, rbx
	je	.L47
.L8:
	mov	edi, DWORD PTR STATE_SENT[rip]
	call	test_bit@PLT
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR C_WF_REPORT_PARAMS[rip]
	cmp	rax, rbx
	je	.L48
.L10:
	cmp	QWORD PTR C_CONNECTED[rip], rbx
	jg	.L24
	cmp	rax, rbp
	je	.L9
.L24:
	mov	r12d, DWORD PTR SS_IN_TRANSIENT_STATE[rip]
.L9:
	cmp	QWORD PTR C_VERIFY_S[rip], rbx
	mov	rax, QWORD PTR C_STARTING_SYNC_S[rip]
	je	.L12
	cmp	QWORD PTR C_VERIFY_T[rip], rbx
	je	.L12
.L14:
	cmp	rbx, rax
	je	.L17
	cmp	QWORD PTR C_STARTING_SYNC_T[rip], rbx
	je	.L17
.L15:
	cmp	QWORD PTR C_SYNC_TARGET[rip], rbx
	je	.L18
	cmp	QWORD PTR C_SYNC_SOURCE[rip], rbx
	je	.L18
.L19:
	cmp	QWORD PTR C_DISCONNECTING[rip], rbx
	je	.L49
.L1:
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	cmp	QWORD PTR C_CONNECTED[rip], rbp
	jge	.L3
	mov	rax, QWORD PTR C_DISCONNECTING[rip]
	mov	r12d, DWORD PTR SS_RESYNC_RUNNING[rip]
	cmp	rax, rbx
	jne	.L4
.L44:
	cmp	QWORD PTR C_STANDALONE[rip], rbp
	jne	.L4
	mov	r12d, DWORD PTR SS_ALREADY_STANDALONE[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	cmp	QWORD PTR C_WF_REPORT_PARAMS[rip], rbp
	jle	.L19
	cmp	QWORD PTR C_DISCONNECTING[rip], rbx
	mov	r12d, DWORD PTR SS_NEED_CONNECTION[rip]
	jne	.L1
.L49:
	cmp	QWORD PTR D_OUTDATED[rip], rbx
	jne	.L1
	cmp	QWORD PTR C_CONNECTED[rip], rbp
	jle	.L1
	cmp	rbx, rbp
	cmovl	r12d, DWORD PTR SS_OUTDATE_WO_CONN[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	cmp	rbp, QWORD PTR C_CONNECTED[rip]
	jge	.L22
	mov	r12d, DWORD PTR SS_NEED_CONNECTION[rip]
.L22:
	cmp	rbp, rbx
	je	.L14
	cmp	QWORD PTR C_CONNECTED[rip], rbp
	jge	.L14
	mov	r12d, DWORD PTR SS_RESYNC_RUNNING[rip]
	cmp	rbx, rax
	je	.L15
	cmp	QWORD PTR C_STARTING_SYNC_T[rip], rbx
	jne	.L15
	.p2align 4,,10
	.p2align 3
.L17:
	cmp	QWORD PTR C_CONNECTED[rip], rbp
	jle	.L15
	mov	r12d, DWORD PTR SS_NEED_CONNECTION[rip]
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L46:
	cmp	QWORD PTR C_UNCONNECTED[rip], rbp
	jle	.L6
	mov	r12d, DWORD PTR SS_NO_NET_CONFIG[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L47:
	cmp	QWORD PTR C_UNCONNECTED[rip], rbp
	jne	.L8
	mov	r12d, DWORD PTR SS_IN_TRANSIENT_STATE[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L48:
	cmp	QWORD PTR C_WF_CONNECTION[rip], rbp
	jne	.L10
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L45:
	mov	r12d, DWORD PTR SS_IS_DISKLESS[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	is_valid_soft_transition, .-is_valid_soft_transition
	.comm	STATE_SENT,4,4
	.comm	SS_SUCCESS,4,4
	.comm	SS_RESYNC_RUNNING,4,4
	.comm	SS_OUTDATE_WO_CONN,4,4
	.comm	SS_NO_NET_CONFIG,4,4
	.comm	SS_NEED_CONNECTION,4,4
	.comm	SS_LOWER_THAN_OUTDATED,4,4
	.comm	SS_IS_DISKLESS,4,4
	.comm	SS_IN_TRANSIENT_STATE,4,4
	.comm	SS_ALREADY_STANDALONE,4,4
	.comm	R_PRIMARY,8,8
	.comm	D_UP_TO_DATE,8,8
	.comm	D_OUTDATED,8,8
	.comm	D_DISKLESS,8,8
	.comm	D_ATTACHING,8,8
	.comm	C_WF_SYNC_UUID,8,8
	.comm	C_WF_REPORT_PARAMS,8,8
	.comm	C_WF_CONNECTION,8,8
	.comm	C_VERIFY_T,8,8
	.comm	C_VERIFY_S,8,8
	.comm	C_UNCONNECTED,8,8
	.comm	C_SYNC_TARGET,8,8
	.comm	C_SYNC_SOURCE,8,8
	.comm	C_STARTING_SYNC_T,8,8
	.comm	C_STARTING_SYNC_S,8,8
	.comm	C_STANDALONE,8,8
	.comm	C_DISCONNECTING,8,8
	.comm	C_CONNECTED,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_drbd_state.c_is_valid_soft_transition.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_valid_soft_transition, %function
is_valid_soft_transition:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r1
	ldr	r8, .L42
	ldr	r3, .L42+4
	ldr	r1, [r8]
	mov	r5, r0
	cmp	r1, r4
	ldr	r9, .L42+8
	mov	r1, r2
	ldr	r6, [r3]
	beq	.L2
	ldr	r3, [r9]
	cmp	r3, r4
	beq	.L2
.L3:
	ldr	r7, .L42+12
	ldr	r2, [r7]
	cmp	r2, r4
	bne	.L4
	ldr	r3, .L42+16
	ldr	r3, [r3]
	cmp	r3, r5
	ldreq	r3, .L42+20
	ldreq	r6, [r3]
.L4:
	ldr	r3, .L42+24
	ldr	r0, [r3]
	cmp	r0, r4
	bge	.L5
	ldr	r3, .L42+28
	ldr	r3, [r3]
	cmp	r3, r5
	ldreq	r3, .L42+32
	ldreq	r6, [r3]
.L5:
	ldr	fp, .L42+36
	ldr	r3, [fp]
	cmp	r3, r4
	bne	.L6
	ldr	r3, .L42+40
	ldr	r3, [r3]
	cmp	r3, r5
	ldrgt	r3, .L42+44
	ldrgt	r6, [r3]
.L6:
	ldr	r10, .L42+48
	ldr	ip, [r10]
	sub	r3, ip, r4
	clz	r3, r3
	cmp	ip, r5
	lsr	r3, r3, #5
	movle	r3, #0
	cmp	r0, r5
	moveq	r3, #0
	andne	r3, r3, #1
	cmp	r3, #0
	ldrne	r3, .L42+52
	ldrne	r6, [r3]
	cmp	r2, r4
	bne	.L8
	ldr	r3, .L42+40
	ldr	r3, [r3]
	cmp	r3, r5
	ldreq	r3, .L42+56
	ldreq	r6, [r3]
.L8:
	ldr	r3, .L42+60
	ldr	r0, [r3]
	bl	test_bit
	cmp	r0, #0
	beq	.L9
	ldr	r3, .L42+64
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L40
.L10:
	ldr	r2, .L42+68
	ldr	r2, [r2]
	cmp	r2, r4
	cmple	r3, r5
	ldrne	r3, .L42+56
	ldrne	r6, [r3]
.L9:
	ldr	r3, .L42+72
	ldr	r2, [r9]
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L11
	ldr	r3, .L42+76
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L11
.L13:
	cmp	r4, r2
	beq	.L16
	ldr	r3, [r8]
	cmp	r3, r4
	beq	.L16
.L14:
	ldr	r3, .L42+80
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L17
	ldr	r3, .L42+84
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L17
	ldr	r3, [r7]
	cmp	r3, r4
	beq	.L41
.L1:
	mov	r0, r6
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L42+68
	ldr	r3, [r3]
	cmp	r3, r5
	ldrlt	r3, .L42+88
	ldrlt	r6, [r3]
	b	.L3
.L17:
	ldr	r3, .L42+64
	ldr	r3, [r3]
	cmp	r3, r5
	ldrgt	r3, .L42+92
	ldrgt	r6, [r3]
	ldr	r3, [r7]
	cmp	r3, r4
	bne	.L1
.L41:
	ldr	r3, [r10]
	cmp	r3, r4
	bne	.L1
	ldr	r3, .L42+68
	ldr	r3, [r3]
	cmp	r3, r5
	movle	r3, #0
	movgt	r3, #1
	cmp	r4, r5
	movge	r3, #0
	cmp	r3, #0
	ldrne	r3, .L42+96
	ldrne	r6, [r3]
	b	.L1
.L11:
	ldr	r3, .L42+68
	ldr	r1, [r3]
	cmp	r5, r1
	ldrlt	r1, .L42+92
	ldrlt	r6, [r1]
	cmp	r5, r4
	beq	.L13
	ldr	r3, [r3]
	cmp	r3, r5
	bge	.L13
	ldr	r3, .L42+88
	cmp	r4, r2
	ldr	r6, [r3]
	beq	.L14
	ldr	r3, [r8]
	cmp	r3, r4
	bne	.L14
.L16:
	ldr	r3, .L42+68
	ldr	r3, [r3]
	cmp	r3, r5
	ldrgt	r3, .L42+92
	ldrgt	r6, [r3]
	b	.L14
.L40:
	ldr	r2, [fp]
	cmp	r2, r5
	bne	.L10
	b	.L9
.L43:
	.align	2
.L42:
	.word	C_STARTING_SYNC_T
	.word	SS_SUCCESS
	.word	C_STARTING_SYNC_S
	.word	C_DISCONNECTING
	.word	C_STANDALONE
	.word	SS_ALREADY_STANDALONE
	.word	D_ATTACHING
	.word	D_DISKLESS
	.word	SS_IS_DISKLESS
	.word	C_WF_CONNECTION
	.word	C_UNCONNECTED
	.word	SS_NO_NET_CONFIG
	.word	D_OUTDATED
	.word	SS_LOWER_THAN_OUTDATED
	.word	SS_IN_TRANSIENT_STATE
	.word	STATE_SENT
	.word	C_WF_REPORT_PARAMS
	.word	C_CONNECTED
	.word	C_VERIFY_S
	.word	C_VERIFY_T
	.word	C_SYNC_TARGET
	.word	C_SYNC_SOURCE
	.word	SS_RESYNC_RUNNING
	.word	SS_NEED_CONNECTION
	.word	SS_OUTDATE_WO_CONN
	.size	is_valid_soft_transition, .-is_valid_soft_transition
	.comm	STATE_SENT,4,4
	.comm	SS_SUCCESS,4,4
	.comm	SS_RESYNC_RUNNING,4,4
	.comm	SS_OUTDATE_WO_CONN,4,4
	.comm	SS_NO_NET_CONFIG,4,4
	.comm	SS_NEED_CONNECTION,4,4
	.comm	SS_LOWER_THAN_OUTDATED,4,4
	.comm	SS_IS_DISKLESS,4,4
	.comm	SS_IN_TRANSIENT_STATE,4,4
	.comm	SS_ALREADY_STANDALONE,4,4
	.comm	R_PRIMARY,4,4
	.comm	D_UP_TO_DATE,4,4
	.comm	D_OUTDATED,4,4
	.comm	D_DISKLESS,4,4
	.comm	D_ATTACHING,4,4
	.comm	C_WF_SYNC_UUID,4,4
	.comm	C_WF_REPORT_PARAMS,4,4
	.comm	C_WF_CONNECTION,4,4
	.comm	C_VERIFY_T,4,4
	.comm	C_VERIFY_S,4,4
	.comm	C_UNCONNECTED,4,4
	.comm	C_SYNC_TARGET,4,4
	.comm	C_SYNC_SOURCE,4,4
	.comm	C_STARTING_SYNC_T,4,4
	.comm	C_STARTING_SYNC_S,4,4
	.comm	C_STANDALONE,4,4
	.comm	C_DISCONNECTING,4,4
	.comm	C_CONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
