	.file	"extr_dlmmaster.c_dlm_migrate_request_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Got a migrate request, but the lockres is marked as recovering!"
	.text
	.p2align 4
	.globl	dlm_migrate_request_handler
	.type	dlm_migrate_request_handler, @function
dlm_migrate_request_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rbx, QWORD PTR [rdi]
	mov	rdi, rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rsp], 0
	call	dlm_grab@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L27
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	r12, QWORD PTR [rbx]
	mov	r15d, DWORD PTR 8[rbx]
	mov	rdi, r12
	mov	esi, r15d
	call	dlm_lockid_hash@PLT
	mov	esi, DWORD PTR GFP_NOFS[rip]
	mov	edi, DWORD PTR dlm_mle_cache[rip]
	mov	r13d, eax
	call	kmem_cache_alloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L29
	mov	rdi, rbp
	call	spin_lock@PLT
	mov	ecx, r13d
	mov	edx, r15d
	mov	rsi, r12
	mov	rdi, rbp
	call	__dlm_lookup_lockres@PLT
	mov	r13, rax
	test	rax, rax
	je	.L5
	lea	rdi, 4[rax]
	mov	QWORD PTR 8[rsp], rdi
	call	spin_lock@PLT
	mov	eax, DWORD PTR 0[r13]
	test	DWORD PTR DLM_LOCK_RES_RECOVERING[rip], eax
	mov	rdi, QWORD PTR 8[rsp]
	jne	.L30
	or	eax, DWORD PTR DLM_LOCK_RES_MIGRATING[rip]
	mov	DWORD PTR 0[r13], eax
	call	spin_unlock@PLT
.L5:
	lea	r10, 4[rbp]
	mov	rdi, r10
	mov	QWORD PTR 8[rsp], r10
	call	spin_lock@PLT
	mov	eax, DWORD PTR 12[rbx]
	lea	rcx, 16[rsp]
	mov	r8, r12
	mov	rdx, r14
	mov	r9d, r15d
	mov	rsi, r13
	mov	rdi, rbp
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 16[rbx]
	push	rax
	.cfi_def_cfa_offset 112
	call	dlm_add_migration_mle@PLT
	mov	r12d, eax
	pop	rax
	.cfi_def_cfa_offset 104
	pop	rdx
	.cfi_def_cfa_offset 96
	test	r12d, r12d
	mov	r10, QWORD PTR 8[rsp]
	js	.L31
.L9:
	mov	rdi, r10
	call	spin_unlock@PLT
	mov	rdi, rbp
	call	spin_unlock@PLT
	mov	rsi, QWORD PTR 16[rsp]
	test	rsi, rsi
	je	.L10
.L7:
	mov	rdi, rbp
	call	dlm_mle_detach_hb_events@PLT
	mov	rdi, QWORD PTR 16[rsp]
	call	dlm_put_mle@PLT
.L10:
	test	r13, r13
	jne	.L8
.L4:
	endbr64
	mov	rdi, rbp
	call	dlm_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	call	spin_unlock@PLT
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC0[rip]
	call	mlog@PLT
	mov	edi, DWORD PTR dlm_mle_cache[rip]
	mov	rsi, r14
	call	kmem_cache_free@PLT
	mov	rdi, rbp
	mov	r12d, DWORD PTR EINVAL[rip]
	call	spin_unlock@PLT
	mov	rsi, QWORD PTR 16[rsp]
	neg	r12d
	test	rsi, rsi
	jne	.L7
.L8:
	mov	rdi, r13
	call	dlm_lockres_put@PLT
	mov	rdi, rbp
	call	dlm_put@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	edi, DWORD PTR dlm_mle_cache[rip]
	mov	rsi, r14
	call	kmem_cache_free@PLT
	mov	r10, QWORD PTR 8[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L29:
	mov	r12d, DWORD PTR ENOMEM[rip]
	mov	rdi, rbp
	neg	r12d
	call	dlm_put@PLT
	jmp	.L1
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dlm_migrate_request_handler, .-dlm_migrate_request_handler
	.comm	dlm_mle_cache,4,4
	.comm	ML_ERROR,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DLM_LOCK_RES_RECOVERING,4,4
	.comm	DLM_LOCK_RES_MIGRATING,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_dlmmaster.c_dlm_migrate_request_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Got a migrate request, but the lockres is marked as"
	.ascii	" recovering!\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dlm_migrate_request_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlm_migrate_request_handler, %function
dlm_migrate_request_handler:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	mov	r2, r0
	mov	r3, #0
	ldr	r7, [r2]
	ldr	r2, .L31
	sub	sp, sp, #28
	mov	r0, r5
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [sp, #16]
	bl	dlm_grab
	subs	r4, r0, #0
	bne	.L26
.L1:
	ldr	r3, .L31
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L27
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldm	r7, {r4, fp}
	mov	r1, fp
	mov	r0, r4
	bl	dlm_lockid_hash
	ldr	r9, .L31+4
	ldr	r2, .L31+8
	mov	r6, r0
	ldr	r1, [r2]
	ldr	r0, [r9]
	bl	kmem_cache_alloc
	subs	r8, r0, #0
	beq	.L28
	mov	r0, r5
	bl	spin_lock
	mov	r3, r6
	mov	r2, fp
	mov	r1, r4
	mov	r0, r5
	bl	__dlm_lookup_lockres
	subs	r6, r0, #0
	beq	.L5
	add	r10, r6, #4
	mov	r0, r10
	bl	spin_lock
	ldr	r2, .L31+12
	ldr	r3, [r6]
	ldr	r2, [r2]
	tst	r3, r2
	bne	.L29
	ldr	r2, .L31+16
	mov	r0, r10
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r6]
	bl	spin_unlock
.L5:
	add	r10, r5, #4
	mov	r0, r10
	bl	spin_lock
	ldr	r2, [r7, #8]
	mov	r1, r6
	str	r2, [sp, #12]
	ldr	r2, [r7, #12]
	mov	r0, r5
	str	r2, [sp, #8]
	str	r4, [sp]
	mov	r2, r8
	add	r3, sp, #16
	str	fp, [sp, #4]
	bl	dlm_add_migration_mle
	subs	r4, r0, #0
	blt	.L30
.L9:
	mov	r0, r10
	bl	spin_unlock
	mov	r0, r5
	bl	spin_unlock
	ldr	r1, [sp, #16]
	cmp	r1, #0
	beq	.L10
.L7:
	mov	r0, r5
	bl	dlm_mle_detach_hb_events
	ldr	r0, [sp, #16]
	bl	dlm_put_mle
.L10:
	cmp	r6, #0
	bne	.L8
.L4:
	mov	r0, r5
	bl	dlm_put
	b	.L1
.L29:
	mov	r0, r10
	bl	spin_unlock
	ldr	r3, .L31+20
	ldr	r1, .L31+24
	ldr	r0, [r3]
	bl	mlog
	mov	r1, r8
	ldr	r0, [r9]
	bl	kmem_cache_free
	ldr	r3, .L31+28
	mov	r0, r5
	ldr	r4, [r3]
	bl	spin_unlock
	ldr	r1, [sp, #16]
	rsb	r4, r4, #0
	cmp	r1, #0
	bne	.L7
.L8:
	mov	r0, r6
	bl	dlm_lockres_put
	mov	r0, r5
	bl	dlm_put
	b	.L1
.L30:
	mov	r1, r8
	ldr	r0, [r9]
	bl	kmem_cache_free
	b	.L9
.L28:
	ldr	r3, .L31+32
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r5
	bl	dlm_put
	b	.L1
.L27:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	.LC1
	.word	dlm_mle_cache
	.word	GFP_NOFS
	.word	DLM_LOCK_RES_RECOVERING
	.word	DLM_LOCK_RES_MIGRATING
	.word	ML_ERROR
	.word	.LC0
	.word	EINVAL
	.word	ENOMEM
	.size	dlm_migrate_request_handler, .-dlm_migrate_request_handler
	.comm	dlm_mle_cache,4,4
	.comm	ML_ERROR,4,4
	.comm	GFP_NOFS,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DLM_LOCK_RES_RECOVERING,4,4
	.comm	DLM_LOCK_RES_MIGRATING,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
