	.file	"extr_cmd.c_mlx4_slave_cmd.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"response expected whileoutput mailbox is NULL for command 0x%x\n"
	.align 8
.LC1:
	.string	"failed execution of VHCR_POST commandopcode 0x%x\n"
	.text
	.p2align 4
	.type	mlx4_slave_cmd, @function
mlx4_slave_cmd:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdx
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, r9
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	DWORD PTR 8[rsp], esi
	mov	DWORD PTR 12[rsp], ecx
	call	mlx4_priv@PLT
	mov	rdi, rax
	mov	rbx, QWORD PTR 8[rax]
	mov	r12, rax
	call	mutex_lock@PLT
	mov	r10d, DWORD PTR 8[rsp]
	mov	edi, r10d
	call	cpu_to_be64@PLT
	mov	QWORD PTR 48[rbx], rax
	xor	eax, eax
	test	r14, r14
	je	.L2
	mov	edi, DWORD PTR [r14]
	call	cpu_to_be64@PLT
.L2:
	mov	QWORD PTR 16[rbx], rax
	mov	edi, r15d
	sal	ebp, 12
	call	cpu_to_be32@PLT
	mov	edi, DWORD PTR 80[rsp]
	mov	DWORD PTR 40[rbx], eax
	and	edi, 4095
	or	edi, ebp
	call	cpu_to_be16@PLT
	mov	edi, DWORD PTR CMD_POLL_TOKEN[rip]
	mov	QWORD PTR 32[rbx], rax
	call	cpu_to_be16@PLT
	mov	edx, 64
	mov	QWORD PTR 8[rbx], 0
	mov	rdi, r13
	mov	QWORD PTR 24[rbx], rax
	mov	eax, DWORD PTR 4[r12]
	test	eax, eax
	cmovne	eax, edx
	mov	DWORD PTR [rbx], eax
	call	mlx4_is_master@PLT
	test	rax, rax
	je	.L4
	mov	esi, DWORD PTR 0[r13]
	mov	rdx, rbx
	mov	rdi, r13
	call	mlx4_master_process_vhcr@PLT
	mov	r15d, eax
	test	eax, eax
	jne	.L5
.L22:
	mov	eax, DWORD PTR 12[rsp]
	test	eax, eax
	je	.L19
	test	r14, r14
	je	.L12
	mov	rdi, QWORD PTR 16[rbx]
	call	be64_to_cpu@PLT
	mov	DWORD PTR [r14], eax
.L19:
	mov	rdi, QWORD PTR 8[rbx]
.L11:
	call	mlx4_status_to_errno@PLT
	mov	r15d, eax
.L5:
	mov	rdi, r12
	call	mutex_unlock@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r15d
	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
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR MLX4_COMM_CMD_VHCR_POST[rip]
	mov	rcx, QWORD PTR 88[rsp]
	xor	edx, edx
	mov	rdi, r13
	add	rcx, QWORD PTR MLX4_COMM_TIME[rip]
	call	mlx4_comm_cmd@PLT
	mov	r15d, eax
	test	eax, eax
	je	.L22
	mov	edx, DWORD PTR 80[rsp]
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	call	mlx4_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, DWORD PTR 80[rsp]
	mov	rdi, r13
	lea	rsi, .LC0[rip]
	call	mlx4_err@PLT
	mov	rdi, QWORD PTR CMD_STAT_BAD_PARAM[rip]
	mov	QWORD PTR 8[rbx], rdi
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	mlx4_slave_cmd, .-mlx4_slave_cmd
	.comm	MLX4_COMM_TIME,8,8
	.comm	MLX4_COMM_CMD_VHCR_POST,4,4
	.comm	CMD_STAT_BAD_PARAM,8,8
	.comm	CMD_POLL_TOKEN,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_cmd.c_mlx4_slave_cmd.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"response expected whileoutput mailbox is NULL for c"
	.ascii	"ommand 0x%x\012\000"
	.align	2
.LC1:
	.ascii	"failed execution of VHCR_POST commandopcode 0x%x\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_slave_cmd, %function
mlx4_slave_cmd:
	@ args = 16, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, [sp, #44]
	mov	r8, r2
	mov	fp, r1
	mov	r9, r3
	mov	r7, r0
	ldr	r10, [sp, #48]
	bl	mlx4_priv
	ldr	r4, [r0, #8]
	mov	r6, r0
	bl	mutex_lock
	mov	r0, fp
	bl	cpu_to_be64
	cmp	r8, #0
	str	r0, [r4, #24]
	moveq	r0, r8
	beq	.L2
	ldr	r0, [r8]
	bl	cpu_to_be64
.L2:
	str	r0, [r4, #8]
	ldr	r0, [sp, #40]
	bl	cpu_to_be32
	lsl	r3, r10, #20
	lsr	r3, r3, #20
	str	r0, [r4, #20]
	orr	r0, r3, r5, lsl #12
	bl	cpu_to_be16
	ldr	r3, .L23
	str	r0, [r4, #16]
	ldr	r0, [r3]
	bl	cpu_to_be16
	ldr	r3, [r6, #4]
	mov	r2, #0
	cmp	r3, #0
	movne	r3, #64
	str	r0, [r4, #12]
	str	r2, [r4, #4]
	mov	r0, r7
	str	r3, [r4]
	bl	mlx4_is_master
	subs	r2, r0, #0
	beq	.L4
	mov	r2, r4
	mov	r0, r7
	ldr	r1, [r7]
	bl	mlx4_master_process_vhcr
	subs	r5, r0, #0
	bne	.L5
.L20:
	cmp	r9, #0
	beq	.L22
	cmp	r8, #0
	beq	.L12
	ldr	r0, [r4, #8]
	bl	be64_to_cpu
	mov	r3, r0
	ldr	r0, [r4, #4]
	str	r3, [r8]
	bl	mlx4_status_to_errno
	mov	r5, r0
.L5:
	mov	r0, r6
	bl	mutex_unlock
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	ldr	r0, [r4, #4]
.L11:
	bl	mlx4_status_to_errno
	mov	r5, r0
	b	.L5
.L4:
	ldr	r3, .L23+4
	ldr	r0, [sp, #52]
	ldr	r3, [r3]
	ldr	r1, .L23+8
	add	r3, r0, r3
	ldr	r1, [r1]
	mov	r0, r7
	bl	mlx4_comm_cmd
	subs	r5, r0, #0
	beq	.L20
	mov	r2, r10
	mov	r0, r7
	ldr	r1, .L23+12
	bl	mlx4_err
	b	.L5
.L12:
	mov	r2, r10
	mov	r0, r7
	ldr	r1, .L23+16
	bl	mlx4_err
	ldr	r3, .L23+20
	ldr	r0, [r3]
	str	r0, [r4, #4]
	b	.L11
.L24:
	.align	2
.L23:
	.word	CMD_POLL_TOKEN
	.word	MLX4_COMM_TIME
	.word	MLX4_COMM_CMD_VHCR_POST
	.word	.LC1
	.word	.LC0
	.word	CMD_STAT_BAD_PARAM
	.size	mlx4_slave_cmd, .-mlx4_slave_cmd
	.comm	MLX4_COMM_TIME,4,4
	.comm	MLX4_COMM_CMD_VHCR_POST,4,4
	.comm	CMD_STAT_BAD_PARAM,4,4
	.comm	CMD_POLL_TOKEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
