	.file	"extr_mlx4_mcg.c_mlx4_trans_to_dmfs_attach.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_trans_to_dmfs_attach
	.type	mlx4_trans_to_dmfs_attach, @function
mlx4_trans_to_dmfs_attach:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	pxor	xmm0, xmm0
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 120
	.cfi_def_cfa_offset 176
	mov	edi, DWORD PTR MLX4_MAC_MASK[rip]
	mov	DWORD PTR 12[rsp], r8d
	mov	r15, QWORD PTR 176[rsp]
	sal	edi, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 48[rsp], xmm0
	call	cpu_to_be64@PLT
	mov	r8d, DWORD PTR 12[rsp]
	pxor	xmm0, xmm0
	mov	DWORD PTR 88[rsp], 0
	mov	DWORD PTR 28[rsp], eax
	mov	eax, DWORD PTR MLX4_DOMAIN_NIC[rip]
	movaps	XMMWORD PTR 64[rsp], xmm0
	mov	DWORD PTR 80[rsp], eax
	mov	eax, DWORD PTR MLX4_FS_REGULAR[rip]
	mov	DWORD PTR 76[rsp], r13d
	mov	DWORD PTR 84[rsp], eax
	mov	eax, DWORD PTR MLX4_NET_TRANS_Q_FIFO[rip]
	mov	DWORD PTR 92[rsp], eax
	xor	eax, eax
	test	r8d, r8d
	sete	al
	mov	DWORD PTR 64[rsp], eax
	mov	eax, DWORD PTR [r12]
	lea	r12, 68[rsp]
	mov	rdi, r12
	mov	DWORD PTR 72[rsp], eax
	call	INIT_LIST_HEAD@PLT
	cmp	ebx, 128
	je	.L2
	cmp	ebx, 129
	jne	.L3
	mov	eax, DWORD PTR MLX4_NET_TRANS_RULE_ID_ETH[rip]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	lea	rsi, 40[rbp]
	mov	edi, DWORD PTR 52[rsp]
	mov	DWORD PTR 44[rsp], eax
	call	memcpy@PLT
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	edi, DWORD PTR 48[rsp]
	lea	rsi, 28[rsp]
	call	memcpy@PLT
.L4:
	lea	rdi, 32[rsp]
	mov	rsi, r12
	lea	rbp, 64[rsp]
	call	list_add_tail@PLT
	mov	rdx, r15
	mov	rsi, rbp
	mov	rdi, r14
	call	mlx4_flow_attach@PLT
.L1:
	mov	rcx, QWORD PTR 104[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 40[rsp]
	mov	eax, DWORD PTR MLX4_NET_TRANS_RULE_ID_IB[rip]
	mov	rsi, rbp
	mov	edx, 16
	mov	DWORD PTR 44[rsp], eax
	call	memcpy@PLT
	lea	rdi, 36[rsp]
	mov	edx, 16
	mov	esi, 255
	call	memset@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx4_trans_to_dmfs_attach, .-mlx4_trans_to_dmfs_attach
	.comm	MLX4_NET_TRANS_RULE_ID_IB,4,4
	.comm	MLX4_NET_TRANS_RULE_ID_ETH,4,4
	.comm	MLX4_NET_TRANS_Q_FIFO,4,4
	.comm	MLX4_MAC_MASK,4,4
	.comm	MLX4_FS_REGULAR,4,4
	.comm	MLX4_DOMAIN_NIC,4,4
	.comm	ETH_ALEN,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_mlx4_mcg.c_mlx4_trans_to_dmfs_attach.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx4_trans_to_dmfs_attach
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_trans_to_dmfs_attach, %function
mlx4_trans_to_dmfs_attach:
	@ args = 12, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, #0
	mov	r8, r0
	ldr	r0, .L10
	sub	sp, sp, #76
	ldr	r0, [r0]
	mov	r6, r3
	ldr	r5, [sp, #112]
	ldr	r3, .L10+4
	mov	r7, r1
	lsl	r0, r0, #16
	ldr	r3, [r3]
	str	r3, [sp, #68]
	mov	r3,#0
	mov	fp, r2
	ldr	r9, [sp, #116]
	ldr	r10, [sp, #120]
	str	r4, [sp, #8]
	str	r4, [sp, #12]
	str	r4, [sp, #16]
	str	r4, [sp, #20]
	str	r4, [sp, #24]
	str	r4, [sp, #28]
	str	r4, [sp, #32]
	bl	cpu_to_be64
	clz	ip, r5
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r1, [r2]
	ldr	r2, [r3]
	ldr	r3, .L10+16
	ldr	lr, [r7]
	ldr	r3, [r3]
	lsr	ip, ip, #5
	str	r0, [sp, #4]
	add	r0, sp, #40
	str	r6, [sp, #48]
	str	lr, [sp, #44]
	str	ip, [sp, #36]
	str	r4, [sp, #40]
	str	r4, [sp, #60]
	str	r1, [sp, #52]
	str	r2, [sp, #56]
	str	r3, [sp, #64]
	bl	INIT_LIST_HEAD
	cmp	r9, #128
	beq	.L2
	cmp	r9, #129
	bne	.L3
	ldr	r3, .L10+20
	ldr	r4, .L10+24
	ldr	r3, [r3]
	ldr	r2, [r4]
	add	r1, fp, #40
	ldr	r0, [sp, #28]
	str	r3, [sp, #20]
	bl	memcpy
	ldr	r2, [r4]
	ldr	r0, [sp, #24]
	add	r1, sp, #4
	bl	memcpy
.L4:
	add	r1, sp, #40
	add	r0, sp, #8
	bl	list_add_tail
	mov	r2, r10
	mov	r0, r8
	add	r1, sp, #36
	bl	mlx4_flow_attach
.L1:
	ldr	r3, .L10+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #76
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r3, .L10+28
	mov	r1, fp
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r0, [sp, #16]
	str	r3, [sp, #20]
	bl	memcpy
	mvn	r3, #0
	str	r3, [sp, #12]
	str	r3, [sp, #16]
	str	r3, [sp, #20]
	str	r3, [sp, #24]
	b	.L4
.L3:
	ldr	r3, .L10+32
	ldr	r0, [r3]
	rsb	r0, r0, #0
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	MLX4_MAC_MASK
	.word	.LC0
	.word	MLX4_DOMAIN_NIC
	.word	MLX4_FS_REGULAR
	.word	MLX4_NET_TRANS_Q_FIFO
	.word	MLX4_NET_TRANS_RULE_ID_ETH
	.word	ETH_ALEN
	.word	MLX4_NET_TRANS_RULE_ID_IB
	.word	EINVAL
	.size	mlx4_trans_to_dmfs_attach, .-mlx4_trans_to_dmfs_attach
	.comm	MLX4_NET_TRANS_RULE_ID_IB,4,4
	.comm	MLX4_NET_TRANS_RULE_ID_ETH,4,4
	.comm	MLX4_NET_TRANS_Q_FIFO,4,4
	.comm	MLX4_MAC_MASK,4,4
	.comm	MLX4_FS_REGULAR,4,4
	.comm	MLX4_DOMAIN_NIC,4,4
	.comm	ETH_ALEN,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
