	.file	"extr_mlx4_ib_main.c_mlx4_ib_update_gids_v1.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mlx4_ib_update_gids_v1, @function
mlx4_ib_update_gids_v1:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR [rsi]
	mov	rdi, r13
	call	mlx4_alloc_cmd_mailbox@PLT
	mov	rdi, rax
	mov	r12, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L13
	mov	edi, DWORD PTR MLX4_MAX_PORT_GIDS[rip]
	mov	rbp, QWORD PTR 8[r12]
	test	edi, edi
	jle	.L4
	xor	r15d, r15d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, rbx
	mov	rdi, rbp
	mov	edx, 4
	add	r15d, 1
	call	memcpy@PLT
	add	rbp, 4
	add	rbx, 4
	cmp	DWORD PTR MLX4_MAX_PORT_GIDS[rip], r15d
	jg	.L5
.L4:
	mov	eax, DWORD PTR MLX4_CMD_WRAPPED[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR MLX4_SET_PORT_GID_TABLE[rip]
	mov	ecx, 1
	mov	r9d, DWORD PTR MLX4_CMD_TIME_CLASS_B[rip]
	mov	r8d, DWORD PTR MLX4_CMD_SET_PORT[rip]
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 80
	sal	edx, 8
	mov	esi, DWORD PTR [r12]
	or	edx, r14d
	call	mlx4_cmd@PLT
	mov	rdi, r13
	mov	r14d, eax
	call	mlx4_is_bonded@PLT
	pop	rcx
	.cfi_def_cfa_offset 72
	pop	rsi
	.cfi_def_cfa_offset 64
	test	rax, rax
	jne	.L14
.L6:
	mov	rsi, r12
	mov	rdi, r13
	call	mlx4_free_cmd_mailbox@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
.L14:
	.cfi_restore_state
	mov	eax, DWORD PTR MLX4_CMD_WRAPPED[rip]
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	edx, DWORD PTR MLX4_SET_PORT_GID_TABLE[rip]
	mov	ecx, 1
	mov	r9d, DWORD PTR MLX4_CMD_TIME_CLASS_B[rip]
	mov	r8d, DWORD PTR MLX4_CMD_SET_PORT[rip]
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 80
	sal	edx, 8
	mov	esi, DWORD PTR [r12]
	or	edx, 2
	call	mlx4_cmd@PLT
	add	r14d, eax
	pop	rax
	.cfi_def_cfa_offset 72
	pop	rdx
	.cfi_def_cfa_offset 64
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r14d, DWORD PTR ENOMEM[rip]
	neg	r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	mlx4_ib_update_gids_v1, .-mlx4_ib_update_gids_v1
	.comm	MLX4_SET_PORT_GID_TABLE,4,4
	.comm	MLX4_MAX_PORT_GIDS,4,4
	.comm	MLX4_CMD_WRAPPED,4,4
	.comm	MLX4_CMD_TIME_CLASS_B,4,4
	.comm	MLX4_CMD_SET_PORT,4,4
	.comm	ENOMEM,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_ib_main.c_mlx4_ib_update_gids_v1.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_ib_update_gids_v1, %function
mlx4_ib_update_gids_v1:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r7, [r1]
	sub	sp, sp, #20
	mov	r4, r0
	mov	r0, r7
	mov	r8, r2
	bl	mlx4_alloc_cmd_mailbox
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	bne	.L13
	ldr	r9, .L15
	ldr	r3, [r6, #4]
	ldr	r2, [r9]
	cmp	r2, #0
	ble	.L4
.L5:
	mov	r2, #4
	mov	r1, r4
	mov	r0, r3
	bl	memcpy
	ldr	r2, [r9]
	add	r5, r5, #1
	cmp	r2, r5
	add	r4, r4, #4
	add	r3, r0, #4
	bgt	.L5
.L4:
	ldr	fp, .L15+4
	ldr	r10, .L15+8
	ldr	r9, .L15+12
	ldr	r5, .L15+16
	ldr	r0, [r9]
	ldr	r3, [r5]
	ldr	ip, [r10]
	ldr	r2, [fp]
	ldr	r1, [r6]
	orr	r2, r8, r2, lsl #8
	stmib	sp, {r0, ip}
	str	r3, [sp]
	mov	r0, r7
	mov	r3, #1
	bl	mlx4_cmd
	mov	r4, r0
	mov	r0, r7
	bl	mlx4_is_bonded
	cmp	r0, #0
	bne	.L14
.L6:
	mov	r1, r6
	mov	r0, r7
	bl	mlx4_free_cmd_mailbox
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r2, [fp]
	ldr	r0, [r9]
	ldr	r3, [r5]
	ldr	ip, [r10]
	lsl	r2, r2, #8
	ldr	r1, [r6]
	orr	r2, r2, #2
	stmib	sp, {r0, ip}
	str	r3, [sp]
	mov	r0, r7
	mov	r3, #1
	bl	mlx4_cmd
	add	r4, r4, r0
	b	.L6
.L13:
	ldr	r3, .L15+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L16:
	.align	2
.L15:
	.word	MLX4_MAX_PORT_GIDS
	.word	MLX4_SET_PORT_GID_TABLE
	.word	MLX4_CMD_WRAPPED
	.word	MLX4_CMD_TIME_CLASS_B
	.word	MLX4_CMD_SET_PORT
	.word	ENOMEM
	.size	mlx4_ib_update_gids_v1, .-mlx4_ib_update_gids_v1
	.comm	MLX4_SET_PORT_GID_TABLE,4,4
	.comm	MLX4_MAX_PORT_GIDS,4,4
	.comm	MLX4_CMD_WRAPPED,4,4
	.comm	MLX4_CMD_TIME_CLASS_B,4,4
	.comm	MLX4_CMD_SET_PORT,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
