	.file	"extr_drbd_nl.c_drbd_adm_disconnect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	drbd_adm_disconnect
	.type	drbd_adm_disconnect, @function
drbd_adm_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	rdx, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	mov	rsi, rdi
	sub	rsp, 56
	.cfi_def_cfa_offset 96
	mov	ecx, DWORD PTR DRBD_ADM_NEED_CONNECTION[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 16[rsp]
	mov	rdi, r13
	call	drbd_adm_prepare@PLT
	mov	r12d, eax
	mov	eax, DWORD PTR 24[rsp]
	test	eax, eax
	je	.L1
	cmp	r12d, DWORD PTR NO_ERROR[rip]
	je	.L12
.L3:
	mov	edx, r12d
	mov	rsi, rbp
	mov	rdi, r13
	xor	r12d, r12d
	call	drbd_adm_finish@PLT
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	r12, 12[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	r14, QWORD PTR 32[rsp]
	mov	rdi, r12
	call	memset@PLT
	mov	rax, QWORD PTR 0[rbp]
	mov	rdx, QWORD PTR DRBD_NLA_DISCONNECT_PARMS[rip]
	cmp	QWORD PTR [rax+rdx*8], 0
	jne	.L14
.L4:
	mov	rdi, QWORD PTR 16[rsp]
	call	mutex_lock@PLT
	mov	esi, DWORD PTR 12[rsp]
	mov	rdi, r14
	call	conn_try_disconnect@PLT
	cmp	DWORD PTR SS_SUCCESS[rip], eax
	mov	r12d, eax
	ja	.L5
	mov	r12d, DWORD PTR NO_ERROR[rip]
.L5:
	mov	rdi, QWORD PTR 16[rsp]
	call	mutex_unlock@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rsi, rbp
	mov	rdi, r12
	call	disconnect_parms_from_attrs@PLT
	test	eax, eax
	je	.L4
	mov	edi, eax
	mov	r12d, DWORD PTR ERR_MANDATORY_TAG[rip]
	call	from_attrs_err_to_txt@PLT
	mov	edi, DWORD PTR 24[rsp]
	mov	esi, eax
	call	drbd_msg_put_info@PLT
	jmp	.L3
.L13:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	drbd_adm_disconnect, .-drbd_adm_disconnect
	.comm	SS_SUCCESS,4,4
	.comm	NO_ERROR,4,4
	.comm	ERR_MANDATORY_TAG,4,4
	.comm	DRBD_NLA_DISCONNECT_PARMS,8,8
	.comm	DRBD_ADM_NEED_CONNECTION,4,4
	.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_nl.c_drbd_adm_disconnect.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	drbd_adm_disconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	drbd_adm_disconnect, %function
drbd_adm_disconnect:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r3, .L21
	sub	sp, sp, #24
	ldr	ip, .L21+4
	mov	r1, r0
	ldr	r3, [r3]
	mov	r2, r5
	add	r0, sp, #8
	ldr	ip, [ip]
	str	ip, [sp, #20]
	mov	ip,#0
	bl	drbd_adm_prepare
	ldr	r3, [sp, #12]
	mov	r4, r0
	cmp	r3, #0
	beq	.L1
	ldr	r6, .L21+8
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L18
.L3:
	mov	r2, r4
	mov	r1, r5
	add	r0, sp, #8
	bl	drbd_adm_finish
	mov	r4, #0
.L1:
	ldr	r3, .L21+4
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, pc}
.L18:
	mov	r1, #0
	ldr	r2, .L21+12
	ldr	r3, [r5]
	ldr	r2, [r2]
	str	r1, [sp, #4]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r4, [sp, #16]
	cmp	r3, r1
	beq	.L4
	mov	r1, r5
	add	r0, sp, #4
	bl	disconnect_parms_from_attrs
	cmp	r0, #0
	bne	.L20
.L4:
	ldr	r0, [sp, #8]
	bl	mutex_lock
	mov	r0, r4
	ldr	r1, [sp, #4]
	bl	conn_try_disconnect
	ldr	r3, .L21+16
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	ldr	r0, [sp, #8]
	ldrls	r4, [r6]
	bl	mutex_unlock
	b	.L3
.L20:
	ldr	r3, .L21+20
	ldr	r6, [sp, #12]
	ldr	r4, [r3]
	bl	from_attrs_err_to_txt
	mov	r1, r0
	mov	r0, r6
	bl	drbd_msg_put_info
	b	.L3
.L19:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	DRBD_ADM_NEED_CONNECTION
	.word	.LC0
	.word	NO_ERROR
	.word	DRBD_NLA_DISCONNECT_PARMS
	.word	SS_SUCCESS
	.word	ERR_MANDATORY_TAG
	.size	drbd_adm_disconnect, .-drbd_adm_disconnect
	.comm	SS_SUCCESS,4,4
	.comm	NO_ERROR,4,4
	.comm	ERR_MANDATORY_TAG,4,4
	.comm	DRBD_NLA_DISCONNECT_PARMS,4,4
	.comm	DRBD_ADM_NEED_CONNECTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
