	.file	"extr_mlx4_cmd.c_mlx4_comm_cmd_poll.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Communication channel is not idle - my toggle is %d (cmd:0x%x)\n"
	.align 8
.LC1:
	.string	"Communication channel command 0x%x timed out\n"
	.text
	.p2align 4
	.type	mlx4_comm_cmd_poll, @function
mlx4_comm_cmd_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, edx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mlx4_priv@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	comm_pending@PLT
	test	eax, eax
	jne	.L17
	mov	rdi, r12
	call	down@PLT
	mov	edx, r14d
	mov	esi, r13d
	mov	rdi, rbp
	call	mlx4_comm_cmd_post@PLT
	test	rax, rax
	jne	.L18
	mov	rdi, r15
	call	msecs_to_jiffies@PLT
	add	rax, QWORD PTR jiffies[rip]
	mov	rbx, rax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR jiffies[rip]
	mov	rsi, rbx
	call	time_before@PLT
	test	rax, rax
	je	.L10
	xor	eax, eax
	call	cond_resched@PLT
.L6:
	mov	rdi, rbp
	call	comm_pending@PLT
	test	eax, eax
	jne	.L7
.L10:
	mov	rdi, rbp
	call	comm_pending@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L5
	cmp	DWORD PTR MLX4_COMM_CMD_RESET[rip], r13d
	mov	r14d, DWORD PTR MLX4_DELAY_RESET_SLAVE[rip]
	je	.L5
	mov	edx, r13d
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	mlx4_warn@PLT
	mov	edi, DWORD PTR CMD_STAT_INTERNAL_ERR[rip]
	call	mlx4_status_to_errno@PLT
	mov	r14d, eax
	test	eax, eax
	je	.L5
	mov	edi, DWORD PTR 0[rbp]
	call	mlx4_enter_error_state@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	edi, DWORD PTR CMD_STAT_INTERNAL_ERR[rip]
	call	mlx4_status_to_errno@PLT
	mov	r14d, eax
.L5:
	mov	rdi, r12
	call	up@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
.L17:
	.cfi_restore_state
	mov	edx, DWORD PTR 4[r12]
	mov	ecx, r13d
	mov	rdi, rbp
	xor	eax, eax
	lea	rsi, .LC0[rip]
	call	mlx4_warn@PLT
	mov	r14d, DWORD PTR EAGAIN[rip]
	neg	r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_comm_cmd_poll, .-mlx4_comm_cmd_poll
	.comm	jiffies,8,8
	.comm	MLX4_DELAY_RESET_SLAVE,4,4
	.comm	MLX4_COMM_CMD_RESET,4,4
	.comm	EAGAIN,4,4
	.comm	CMD_STAT_INTERNAL_ERR,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_mlx4_cmd.c_mlx4_comm_cmd_poll.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Communication channel is not idle - my toggle is %d"
	.ascii	" (cmd:0x%x)\012\000"
	.align	2
.LC1:
	.ascii	"Communication channel command 0x%x timed out\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_comm_cmd_poll, %function
mlx4_comm_cmd_poll:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	mov	r7, r1
	mov	r5, r2
	mov	r8, r3
	bl	mlx4_priv
	mov	r6, r0
	mov	r0, r4
	bl	comm_pending
	cmp	r0, #0
	bne	.L17
	mov	r0, r6
	bl	down
	mov	r2, r5
	mov	r1, r7
	mov	r0, r4
	bl	mlx4_comm_cmd_post
	cmp	r0, #0
	bne	.L18
	mov	r0, r8
	bl	msecs_to_jiffies
	ldr	r8, .L20
	ldr	r5, [r8]
	add	r5, r0, r5
	b	.L6
.L7:
	mov	r1, r5
	ldr	r0, [r8]
	bl	time_before
	cmp	r0, #0
	beq	.L10
	bl	cond_resched
.L6:
	mov	r0, r4
	bl	comm_pending
	cmp	r0, #0
	bne	.L7
.L10:
	mov	r0, r4
	bl	comm_pending
	subs	r5, r0, #0
	beq	.L5
	ldr	r3, .L20+4
	ldr	r3, [r3]
	cmp	r3, r7
	beq	.L19
	mov	r2, r7
	ldr	r1, .L20+8
	mov	r0, r4
	bl	mlx4_warn
	ldr	r3, .L20+12
	ldr	r0, [r3]
	bl	mlx4_status_to_errno
	subs	r5, r0, #0
	beq	.L5
	ldr	r0, [r4]
	bl	mlx4_enter_error_state
	b	.L5
.L18:
	ldr	r3, .L20+12
	ldr	r0, [r3]
	bl	mlx4_status_to_errno
	mov	r5, r0
.L5:
	mov	r0, r6
	bl	up
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r3, r7
	mov	r0, r4
	ldr	r2, [r6, #4]
	ldr	r1, .L20+16
	bl	mlx4_warn
	ldr	r3, .L20+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	ldr	r3, .L20+24
	ldr	r5, [r3]
	b	.L5
.L21:
	.align	2
.L20:
	.word	jiffies
	.word	MLX4_COMM_CMD_RESET
	.word	.LC1
	.word	CMD_STAT_INTERNAL_ERR
	.word	.LC0
	.word	EAGAIN
	.word	MLX4_DELAY_RESET_SLAVE
	.size	mlx4_comm_cmd_poll, .-mlx4_comm_cmd_poll
	.comm	jiffies,4,4
	.comm	MLX4_DELAY_RESET_SLAVE,4,4
	.comm	MLX4_COMM_CMD_RESET,4,4
	.comm	EAGAIN,4,4
	.comm	CMD_STAT_INTERNAL_ERR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
