	.file	"extr_dlmmaster.c_dlm_do_master_request.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"TCP stack not ready!\n"
.LC1:
	.string	"bad args passed to o2net!\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"out of memory while trying to send network message!  retrying\n"
	.section	.rodata.str1.1
.LC3:
	.string	"unhandled error!"
.LC4:
	.string	"link to %d went down!\n"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"node %u is the master, response=YES\n"
	.align 8
.LC6:
	.string	"%s:%.*s: master node %u now knows I have a reference\n"
	.align 8
.LC7:
	.string	"node %u not master, response=NO\n"
	.align 8
.LC8:
	.string	"node %u not master, response=MAYBE\n"
	.align 8
.LC9:
	.string	"node %u hit an error, resending\n"
	.section	.rodata.str1.1
.LC10:
	.string	"bad response! %u\n"
	.text
	.p2align 4
	.type	dlm_do_master_request, @function
dlm_do_master_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rsi
	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
	lea	r12, 12[r15]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edx
	mov	edx, 16
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 72
	.cfi_def_cfa_offset 128
	mov	rbx, QWORD PTR 40[rsi]
	xor	esi, esi
	mov	QWORD PTR 8[rsp], rdi
	lea	r13, 32[rsp]
	lea	r14, 28[rsp]
	mov	rdi, r13
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 28[rsp], 0
	call	memset@PLT
	mov	eax, DWORD PTR 8[rbx]
	xor	edi, edi
	mov	DWORD PTR 44[rsp], eax
	mov	rax, QWORD PTR DLM_MLE_MIGRATION[rip]
	cmp	QWORD PTR [r15], rax
	sete	dil
	call	BUG_ON@PLT
	mov	rdx, QWORD PTR 32[r15]
	mov	esi, DWORD PTR 24[r15]
	mov	edi, DWORD PTR 40[rsp]
	mov	QWORD PTR 32[rsp], rdx
	call	memcpy@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR DLM_MASTER_REQUEST_MSG[rip]
	mov	r8d, ebp
	mov	r9, r14
	mov	ecx, 16
	mov	rdx, r13
	call	o2net_send_message@PLT
	mov	r8d, eax
	test	eax, eax
	jns	.L3
	add	eax, DWORD PTR ESRCH[rip]
	je	.L21
	mov	eax, r8d
	add	eax, DWORD PTR EINVAL[rip]
	je	.L22
	mov	eax, r8d
	add	eax, DWORD PTR ENOMEM[rip]
	jne	.L7
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	mlog@PLT
	mov	edi, 50
	call	msleep@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r12
	call	spin_lock@PLT
	mov	edx, DWORD PTR 28[rsp]
	cmp	edx, 130
	je	.L10
	jg	.L11
	cmp	edx, 128
	je	.L12
	cmp	edx, 129
	jne	.L14
	lea	rsi, .LC7[rip]
	mov	edx, ebp
	xor	edi, edi
	xor	eax, eax
	call	mlog@PLT
	mov	esi, DWORD PTR 20[r15]
.L19:
	mov	edi, ebp
	call	set_bit@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	xor	r8d, r8d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L23
	add	rsp, 72
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r8d
	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
.L11:
	.cfi_restore_state
	cmp	edx, 131
	jne	.L14
	mov	edx, ebp
	lea	rsi, .LC9[rip]
	xor	edi, edi
	xor	eax, eax
	call	mlog@PLT
	mov	rdi, r12
	mov	DWORD PTR 28[rsp], 0
	call	spin_unlock@PLT
	mov	edi, 50
	call	msleep@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edx, ebp
	lea	rsi, .LC8[rip]
	xor	edi, edi
	xor	eax, eax
	call	mlog@PLT
	mov	esi, DWORD PTR 20[r15]
	mov	edi, ebp
	call	set_bit@PLT
	mov	esi, DWORD PTR 16[r15]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L14:
.L9:
	endbr64
	mov	edi, DWORD PTR ML_ERROR[rip]
	lea	rsi, .LC10[rip]
	xor	eax, eax
	call	mlog@PLT
	xor	eax, eax
	call	BUG@PLT
	mov	rdi, r12
	call	spin_unlock@PLT
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR 20[r15]
	mov	edi, ebp
	call	set_bit@PLT
	mov	edx, ebp
	lea	rsi, .LC5[rip]
	xor	edi, edi
	xor	eax, eax
	call	mlog@PLT
	mov	rax, QWORD PTR 8[rsp]
	mov	edx, DWORD PTR [rbx]
	mov	r9d, ebp
	lea	rsi, .LC6[rip]
	xor	edi, edi
	mov	r8d, DWORD PTR [rax]
	mov	ecx, DWORD PTR 4[rax]
	xor	eax, eax
	call	mlog@PLT
	mov	DWORD PTR 8[r15], ebp
	mov	rdi, r12
	call	spin_unlock@PLT
	xor	r8d, r8d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	DWORD PTR 8[rsp], r8d
	lea	rsi, .LC0[rip]
.L18:
	mov	edi, DWORD PTR ML_ERROR[rip]
	xor	eax, eax
	call	mlog@PLT
	xor	eax, eax
	call	BUG@PLT
	mov	r8d, DWORD PTR 8[rsp]
.L5:
	mov	edi, DWORD PTR ML_ERROR[rip]
	mov	edx, ebp
	xor	eax, eax
	mov	DWORD PTR 8[rsp], r8d
	lea	rsi, .LC4[rip]
	call	mlog@PLT
	mov	r8d, DWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	DWORD PTR 8[rsp], r8d
	lea	rsi, .LC1[rip]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, r8d
	mov	DWORD PTR 8[rsp], r8d
	call	dlm_is_host_down@PLT
	mov	r8d, DWORD PTR 8[rsp]
	test	eax, eax
	jne	.L5
	mov	edi, r8d
	call	mlog_errno@PLT
	lea	rsi, .LC3[rip]
	jmp	.L18
.L23:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	dlm_do_master_request, .-dlm_do_master_request
	.comm	ML_ERROR,4,4
	.comm	ESRCH,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DLM_MLE_MIGRATION,8,8
	.comm	DLM_MASTER_REQUEST_MSG,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_do_master_request.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"TCP stack not ready!\012\000"
	.align	2
.LC1:
	.ascii	"bad args passed to o2net!\012\000"
	.align	2
.LC2:
	.ascii	"out of memory while trying to send network message!"
	.ascii	"  retrying\012\000"
	.align	2
.LC3:
	.ascii	"unhandled error!\000"
	.align	2
.LC4:
	.ascii	"link to %d went down!\012\000"
	.align	2
.LC5:
	.ascii	"node %u is the master, response=YES\012\000"
	.align	2
.LC6:
	.ascii	"%s:%.*s: master node %u now knows I have a referenc"
	.ascii	"e\012\000"
	.align	2
.LC7:
	.ascii	"node %u not master, response=NO\012\000"
	.align	2
.LC8:
	.ascii	"node %u not master, response=MAYBE\012\000"
	.align	2
.LC9:
	.ascii	"node %u hit an error, resending\012\000"
	.align	2
.LC10:
	.ascii	"bad response! %u\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dlm_do_master_request, %function
dlm_do_master_request:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	ldr	r1, .L25
	mov	ip, r0
	ldr	lr, [r6]
	ldr	r0, [r1]
	mov	r3, #0
	sub	r0, lr, r0
	clz	r0, r0
	sub	sp, sp, #44
	ldr	r7, [r6, #28]
	str	r3, [sp, #32]
	str	r3, [sp, #24]
	str	r3, [sp, #28]
	ldr	r1, [r7, #8]
	mov	r4, r2
	ldr	r2, .L25+4
	str	ip, [sp, #12]
	lsr	r0, r0, #5
	ldr	r2, [r2]
	str	r2, [sp, #36]
	mov	r2,#0
	str	r3, [sp, #20]
	str	r1, [sp, #32]
	bl	BUG_ON
	ldr	r2, [r6, #24]
	ldr	r1, [r6, #20]
	ldr	r0, [sp, #28]
	str	r2, [sp, #24]
	bl	memcpy
	ldr	r8, .L25+8
	ldr	r9, .L25+12
	ldr	r10, .L25+16
	ldr	fp, .L25+20
.L2:
	add	r2, sp, #20
	ldr	r1, [r7, #4]
	mov	r3, #12
	str	r2, [sp, #4]
	ldr	r0, [r8]
	str	r4, [sp]
	add	r2, sp, #24
	bl	o2net_send_message
	subs	r5, r0, #0
	bge	.L3
	ldr	r3, [r9]
	cmn	r5, r3
	beq	.L22
	ldr	r3, [r10]
	cmn	r5, r3
	beq	.L23
	ldr	r3, [fp]
	cmn	r5, r3
	bne	.L7
	ldr	r3, .L25+24
	ldr	r1, .L25+28
	ldr	r0, [r3]
	bl	mlog
	mov	r0, #50
	bl	msleep
	b	.L2
.L3:
	add	r5, r6, #8
	mov	r0, r5
	bl	spin_lock
	ldr	r2, [sp, #20]
	sub	r3, r2, #128
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L10
.L12:
	.word	.L15
	.word	.L14
	.word	.L13
	.word	.L11
.L11:
	mov	r2, r4
	ldr	r1, .L25+32
	mov	r0, #0
	bl	mlog
	mov	r3, #0
	mov	r0, r5
	str	r3, [sp, #20]
	bl	spin_unlock
	mov	r0, #50
	bl	msleep
	b	.L2
.L13:
	mov	r2, r4
	ldr	r1, .L25+36
	mov	r0, #0
	bl	mlog
	ldr	r1, [r6, #16]
	mov	r0, r4
	bl	set_bit
	ldr	r1, [r6, #12]
.L20:
	mov	r0, r4
	bl	set_bit
	mov	r0, r5
	bl	spin_unlock
	mov	r5, #0
.L1:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r5
	add	sp, sp, #44
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r1, .L25+40
	mov	r2, r4
	mov	r0, #0
	bl	mlog
	ldr	r1, [r6, #16]
	b	.L20
.L15:
	ldr	r1, [r6, #16]
	mov	r0, r4
	bl	set_bit
	mov	r2, r4
	ldr	r1, .L25+44
	mov	r0, #0
	bl	mlog
	ldr	r1, [sp, #12]
	ldr	r2, [r7]
	ldr	r3, [r1]
	mov	r0, #0
	stm	sp, {r3, r4}
	ldr	r3, [r1, #4]
	ldr	r1, .L25+48
	bl	mlog
	mov	r0, r5
	str	r4, [r6, #4]
	bl	spin_unlock
	mov	r5, #0
	b	.L1
.L22:
	ldr	r6, .L25+24
	ldr	r1, .L25+52
	ldr	r0, [r6]
	bl	mlog
	bl	BUG
.L5:
	mov	r2, r4
	ldr	r0, [r6]
	ldr	r1, .L25+56
	bl	mlog
	b	.L1
.L23:
	ldr	r6, .L25+24
	ldr	r1, .L25+60
	ldr	r0, [r6]
	bl	mlog
	bl	BUG
	b	.L5
.L7:
	bl	dlm_is_host_down
	cmp	r0, #0
	ldr	r6, .L25+24
	bne	.L5
	mov	r0, r5
	bl	mlog_errno
	ldr	r1, .L25+64
	ldr	r0, [r6]
	bl	mlog
	bl	BUG
	b	.L5
.L24:
	bl	__stack_chk_fail
.L10:
.L9:
	ldr	r3, .L25+24
	ldr	r1, .L25+68
	ldr	r0, [r3]
	bl	mlog
	bl	BUG
	mov	r0, r5
	bl	spin_unlock
	mov	r5, #0
	b	.L1
.L26:
	.align	2
.L25:
	.word	DLM_MLE_MIGRATION
	.word	.LC11
	.word	DLM_MASTER_REQUEST_MSG
	.word	ESRCH
	.word	EINVAL
	.word	ENOMEM
	.word	ML_ERROR
	.word	.LC2
	.word	.LC9
	.word	.LC8
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	.LC4
	.word	.LC1
	.word	.LC3
	.word	.LC10
	.size	dlm_do_master_request, .-dlm_do_master_request
	.comm	ML_ERROR,4,4
	.comm	ESRCH,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DLM_MLE_MIGRATION,4,4
	.comm	DLM_MASTER_REQUEST_MSG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
