	.file	"extr_port.c_mlx4_set_port_mac_table.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_set_port_mac_table, @function
mlx4_set_port_mac_table:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	mlx4_alloc_cmd_mailbox@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L5
	mov	edi, DWORD PTR 4[rbp]
	mov	edx, DWORD PTR MLX4_MAC_TABLE_SIZE[rip]
	mov	rsi, r13
	call	memcpy@PLT
	mov	eax, DWORD PTR MLX4_CMD_NATIVE[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 56
	mov	edx, DWORD PTR MLX4_SET_PORT_MAC_TABLE[rip]
	mov	r9d, DWORD PTR MLX4_CMD_TIME_CLASS_B[rip]
	mov	r8d, DWORD PTR MLX4_CMD_SET_PORT[rip]
	mov	rdi, r12
	mov	ecx, 1
	push	rax
	.cfi_def_cfa_offset 64
	sal	edx, 8
	mov	esi, DWORD PTR 0[rbp]
	or	edx, ebx
	call	mlx4_cmd@PLT
	mov	rsi, rbp
	mov	rdi, r12
	mov	r13d, eax
	call	mlx4_free_cmd_mailbox@PLT
	add	rsp, 24
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_def_cfa_offset 48
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_set_port_mac_table, .-mlx4_set_port_mac_table
	.comm	MLX4_SET_PORT_MAC_TABLE,4,4
	.comm	MLX4_MAC_TABLE_SIZE,4,4
	.comm	MLX4_CMD_TIME_CLASS_B,4,4
	.comm	MLX4_CMD_SET_PORT,4,4
	.comm	MLX4_CMD_NATIVE,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_port.c_mlx4_set_port_mac_table.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_set_port_mac_table, %function
mlx4_set_port_mac_table:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #20
	mov	r7, r1
	mov	r5, r2
	mov	r6, r0
	bl	mlx4_alloc_cmd_mailbox
	mov	r4, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L5
	ldr	r3, .L6
	mov	r1, r5
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	bl	memcpy
	ldr	r0, .L6+4
	ldr	r1, .L6+8
	ldr	r2, .L6+12
	ldr	r3, .L6+16
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r3, [r3]
	ldr	r1, [r4]
	orr	r2, r7, r2, lsl #8
	stmib	sp, {r0, ip}
	str	r3, [sp]
	mov	r0, r6
	mov	r3, #1
	bl	mlx4_cmd
	mov	r1, r4
	mov	r4, r0
	mov	r0, r6
	bl	mlx4_free_cmd_mailbox
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	PTR_ERR
.L7:
	.align	2
.L6:
	.word	MLX4_MAC_TABLE_SIZE
	.word	MLX4_CMD_NATIVE
	.word	MLX4_CMD_TIME_CLASS_B
	.word	MLX4_SET_PORT_MAC_TABLE
	.word	MLX4_CMD_SET_PORT
	.size	mlx4_set_port_mac_table, .-mlx4_set_port_mac_table
	.comm	MLX4_SET_PORT_MAC_TABLE,4,4
	.comm	MLX4_MAC_TABLE_SIZE,4,4
	.comm	MLX4_CMD_TIME_CLASS_B,4,4
	.comm	MLX4_CMD_SET_PORT,4,4
	.comm	MLX4_CMD_NATIVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
