	.file	"extr_stack_user.c_ocfs2_control_do_down_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ocfs2_control_do_down_msg, @function
ocfs2_control_do_down_msg:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	QWORD PTR [rsp], 0
	call	ocfs2_control_get_handshake_state@PLT
	cmp	rax, QWORD PTR OCFS2_CONTROL_HANDSHAKE_VALID[rip]
	je	.L2
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L17
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR OCFS2_CONTROL_MESSAGE_OP_LEN[rip]
	mov	esi, DWORD PTR OCFS2_CONTROL_MESSAGE_DOWN_OP[rip]
	call	strncmp@PLT
	test	rax, rax
	jne	.L6
	cmp	WORD PTR [rbx], 8224
	jne	.L6
	cmp	BYTE PTR 2[rbx], 10
	jne	.L6
	xor	eax, eax
	mov	BYTE PTR 2[rbx], 0
	mov	edi, DWORD PTR 8[rbx]
	mov	rsi, rsp
	mov	WORD PTR [rbx], ax
	mov	edx, 16
	call	simple_strtol@PLT
	mov	rsi, rax
	mov	rax, QWORD PTR [rsp]
	test	rax, rax
	je	.L6
	cmp	BYTE PTR [rax], 0
	jne	.L6
	cmp	QWORD PTR LONG_MIN[rip], rsi
	je	.L8
	cmp	QWORD PTR LONG_MAX[rip], rsi
	je	.L8
	cmp	QWORD PTR INT_MAX[rip], rsi
	jl	.L8
	test	rsi, rsi
	js	.L8
	mov	edi, DWORD PTR 4[rbx]
	call	ocfs2_control_send_down@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR ERANGE[rip]
	neg	eax
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ocfs2_control_do_down_msg, .-ocfs2_control_do_down_msg
	.comm	OCFS2_CONTROL_MESSAGE_OP_LEN,4,4
	.comm	OCFS2_CONTROL_MESSAGE_DOWN_OP,4,4
	.comm	OCFS2_CONTROL_HANDSHAKE_VALID,8,8
	.comm	LONG_MIN,8,8
	.comm	LONG_MAX,8,8
	.comm	INT_MAX,8,8
	.comm	ERANGE,4,4
	.comm	EINVAL,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_stack_user.c_ocfs2_control_do_down_msg.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ocfs2_control_do_down_msg, %function
ocfs2_control_do_down_msg:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, lr}
	ldr	r2, .L17
	sub	sp, sp, #12
	ldr	r2, [r2]
	str	r2, [sp, #4]
	mov	r2,#0
	mov	r5, r1
	str	r3, [sp]
	bl	ocfs2_control_get_handshake_state
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L2
.L6:
	ldr	r3, .L17+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	ldr	r3, .L17+12
	ldr	r2, .L17+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [r5, #12]
	bl	strncmp
	subs	r4, r0, #0
	bne	.L6
	ldrh	r2, [r5]
	ldr	r3, .L17+20
	cmp	r2, r3
	bne	.L6
	ldrb	r3, [r5, #2]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L6
	mov	r2, #16
	mov	r1, sp
	ldr	r0, [r5, #8]
	strh	r4, [r5]	@ movhi
	strb	r4, [r5, #2]
	bl	simple_strtol
	ldr	r3, [sp]
	cmp	r3, #0
	beq	.L6
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L6
	ldr	r3, .L17+24
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
	ldr	r3, .L17+28
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L8
	ldr	r3, .L17+32
	ldr	r3, [r3]
	cmp	r3, r0
	movge	r3, #0
	movlt	r3, #1
	orrs	r3, r3, r0, lsr #31
	beq	.L9
.L8:
	ldr	r3, .L17+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L9:
	mov	r1, r0
	ldr	r0, [r5, #4]
	bl	ocfs2_control_send_down
	b	.L1
.L16:
	bl	__stack_chk_fail
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	OCFS2_CONTROL_HANDSHAKE_VALID
	.word	EINVAL
	.word	OCFS2_CONTROL_MESSAGE_DOWN_OP
	.word	OCFS2_CONTROL_MESSAGE_OP_LEN
	.word	8224
	.word	LONG_MIN
	.word	LONG_MAX
	.word	INT_MAX
	.word	ERANGE
	.size	ocfs2_control_do_down_msg, .-ocfs2_control_do_down_msg
	.comm	OCFS2_CONTROL_MESSAGE_OP_LEN,4,4
	.comm	OCFS2_CONTROL_MESSAGE_DOWN_OP,4,4
	.comm	OCFS2_CONTROL_HANDSHAKE_VALID,4,4
	.comm	LONG_MIN,4,4
	.comm	LONG_MAX,4,4
	.comm	INT_MAX,4,4
	.comm	ERANGE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
