	.file	"extr_en_ethtool.c_mlx4_en_set_priv_flags.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Enabled"
.LC1:
	.string	"Disabled"
.LC2:
	.string	"BlueFlame is not supported\n"
.LC3:
	.string	"BlueFlame %s\n"
.LC4:
	.string	"PHV bit %s\n"
	.text
	.p2align 4
	.type	mlx4_en_set_priv_flags, @function
mlx4_en_set_priv_flags:
.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
	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	ebx, esi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	call	netdev_priv@PLT
	mov	r11d, DWORD PTR MLX4_EN_PRIV_FLAGS_BLUEFLAME[rip]
	xor	edi, edi
	mov	rbp, rax
	mov	rax, QWORD PTR 32[rax]
	mov	r15d, r11d
	mov	r13d, DWORD PTR 0[rbp]
	mov	QWORD PTR [rsp], rax
	mov	eax, DWORD PTR MLX4_EN_PRIV_FLAGS_PHV[rip]
	and	r15d, ebx
	setne	dil
	and	ebx, eax
	setne	r12b
	mov	DWORD PTR 12[rsp], ebx
	xor	ebx, ebx
	test	r13d, eax
	setne	bl
	xor	eax, eax
	test	r11d, r13d
	movzx	r12d, r12b
	setne	al
	cmp	edi, eax
	je	.L2
	mov	r10d, DWORD PTR MLX4_EN_NUM_TX_TYPES[rip]
	test	r15d, r15d
	jne	.L32
	not	r11d
	and	r13d, r11d
	mov	DWORD PTR 0[rbp], r13d
	test	r10d, r10d
	jle	.L19
	mov	rdx, QWORD PTR 8[rbp]
.L13:
	xor	r8d, r8d
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR [rdx]
	test	esi, esi
	jle	.L18
	mov	rax, QWORD PTR 24[rbp]
	mov	rsi, QWORD PTR [rax+r8*8]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rcx, QWORD PTR [rsi+rax*8]
	add	rax, 1
	mov	DWORD PTR 4[rcx], edi
	cmp	DWORD PTR [rdx], eax
	jg	.L15
.L18:
	add	r8, 1
	add	rdx, 4
	cmp	r10d, r8d
	jg	.L12
	test	r15d, r15d
	je	.L19
.L22:
	lea	rdx, .LC0[rip]
.L14:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	en_info@PLT
.L2:
	xor	r13d, r13d
	cmp	r12d, ebx
	jne	.L33
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r13d
	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
.L33:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsp]
	mov	esi, DWORD PTR 16[rbp]
	mov	edx, r12d
	mov	edi, DWORD PTR [rax]
	call	set_phv_bit@PLT
	mov	r13d, eax
	test	eax, eax
	jne	.L1
	mov	ecx, DWORD PTR 12[rsp]
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR MLX4_EN_PRIV_FLAGS_PHV[rip]
	test	ecx, ecx
	jne	.L34
	not	edx
	and	eax, edx
	lea	rdx, .LC1[rip]
.L21:
	mov	DWORD PTR 0[rbp], eax
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	en_info@PLT
	jmp	.L1
.L32:
	test	r10d, r10d
	jle	.L4
	mov	rdx, QWORD PTR 8[rbp]
	lea	r14d, -1[r10]
	xor	r9d, r9d
	mov	ecx, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, DWORD PTR [rdx+r9*4]
	test	esi, esi
	jle	.L9
	mov	rax, QWORD PTR 24[rbp]
	sub	esi, 1
	mov	rax, QWORD PTR [rax+r9*8]
	lea	r8, [rax+rsi*8]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rsi, QWORD PTR [rax]
	and	ecx, DWORD PTR [rsi]
	mov	rsi, rax
	add	rax, 8
	cmp	rsi, r8
	jne	.L6
.L9:
	lea	rax, 1[r9]
	cmp	r9, r14
	je	.L7
	mov	r9, rax
	jmp	.L5
.L19:
	lea	rdx, .LC1[rip]
	jmp	.L14
.L7:
	test	ecx, ecx
	je	.L35
	or	r11d, r13d
	mov	DWORD PTR 0[rbp], r11d
	jmp	.L13
.L34:
	or	eax, edx
	lea	rdx, .LC0[rip]
	jmp	.L21
.L35:
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	en_err@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	jmp	.L1
.L4:
	or	r11d, r13d
	mov	DWORD PTR 0[rbp], r11d
	jmp	.L22
	.cfi_endproc
.LFE0:
	.size	mlx4_en_set_priv_flags, .-mlx4_en_set_priv_flags
	.comm	MLX4_EN_PRIV_FLAGS_PHV,4,4
	.comm	MLX4_EN_PRIV_FLAGS_BLUEFLAME,4,4
	.comm	MLX4_EN_NUM_TX_TYPES,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_en_ethtool.c_mlx4_en_set_priv_flags.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Enabled\000"
	.align	2
.LC1:
	.ascii	"Disabled\000"
	.align	2
.LC2:
	.ascii	"BlueFlame is not supported\012\000"
	.align	2
.LC3:
	.ascii	"BlueFlame %s\012\000"
	.align	2
.LC4:
	.ascii	"PHV bit %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_en_set_priv_flags, %function
mlx4_en_set_priv_flags:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #28
	mov	r5, r1
	bl	netdev_priv
	ldr	r3, .L34
	ldr	r6, .L34+4
	ldr	r8, [r3]
	ldr	r3, [r6]
	ands	r2, r8, r5
	ldr	r9, [r0]
	movne	ip, #1
	moveq	ip, #0
	ands	r1, r3, r5
	movne	r5, #1
	moveq	r5, #0
	tst	r9, r3
	movne	r3, #1
	moveq	r3, #0
	tst	r8, r9
	str	r3, [sp, #4]
	movne	r3, #1
	moveq	r3, #0
	cmp	ip, r3
	ldr	r3, [r0, #16]
	mov	r4, r0
	str	r2, [sp, #8]
	str	r1, [sp, #16]
	str	r3, [sp, #12]
	beq	.L2
	ldr	r3, .L34+8
	cmp	r2, #0
	ldr	r7, [r3]
	bne	.L32
	bic	r8, r9, r8
	cmp	r7, #0
	str	r8, [r0]
	ble	.L19
	ldr	r3, [r0, #4]
	str	r3, [sp, #20]
.L13:
	mov	lr, #0
	ldr	r3, [sp, #20]
	sub	r0, r3, #4
.L12:
	ldr	r3, [r0, #4]!
	cmp	r3, #0
	ble	.L18
	mov	r3, #0
	ldr	r2, [r4, #12]
	ldr	r2, [r2, lr, lsl #2]
	sub	r2, r2, #4
.L15:
	ldr	r1, [r2, #4]!
	add	r3, r3, #1
	str	ip, [r1, #4]
	ldr	r1, [r0]
	cmp	r1, r3
	bgt	.L15
.L18:
	add	lr, lr, #1
	cmp	r7, lr
	bgt	.L12
	ldr	r3, [sp, #8]
	cmp	r3, #0
	beq	.L19
.L22:
	ldr	r2, .L34+12
.L14:
	mov	r0, r4
	ldr	r1, .L34+16
	bl	en_info
.L2:
	ldr	r3, [sp, #4]
	cmp	r5, r3
	moveq	r5, #0
	bne	.L33
.L1:
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L33:
	ldr	r3, [sp, #12]
	mov	r2, r5
	ldr	r0, [r3]
	ldr	r1, [r4, #8]
	bl	set_phv_bit
	subs	r5, r0, #0
	bne	.L1
	ldr	r3, [sp, #16]
	ldr	r1, [r6]
	cmp	r3, #0
	ldr	r3, [r4]
	mov	r0, r4
	orrne	r3, r3, r1
	biceq	r3, r3, r1
	ldrne	r2, .L34+12
	ldreq	r2, .L34+20
	ldr	r1, .L34+24
	str	r3, [r4]
	bl	en_info
	mov	r0, r5
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L32:
	cmp	r7, #0
	ble	.L4
	mov	r2, #1
	ldr	r3, [r0, #4]
	add	r10, r3, r7, lsl #2
	str	r3, [sp, #20]
	sub	r10, r10, #4
	sub	r0, r3, #4
	rsb	fp, r3, #4
.L5:
	add	r3, fp, r0
	ldr	lr, [r0, #4]!
	cmp	lr, #0
	ble	.L9
	ldr	r1, [r4, #12]
	ldr	r3, [r1, r3]
	add	lr, r3, lr, lsl #2
	sub	lr, lr, #4
	sub	r3, r3, #4
.L6:
	ldr	r1, [r3, #4]!
	ldr	r1, [r1]
	cmp	r3, lr
	and	r2, r2, r1
	bne	.L6
.L9:
	cmp	r0, r10
	bne	.L5
	cmp	r2, #0
	orrne	r8, r8, r9
	strne	r8, [r4]
	bne	.L13
	mov	r0, r4
	ldr	r1, .L34+28
	bl	en_err
	ldr	r3, .L34+32
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L19:
	ldr	r2, .L34+20
	b	.L14
.L4:
	orr	r8, r8, r9
	str	r8, [r0]
	b	.L22
.L35:
	.align	2
.L34:
	.word	MLX4_EN_PRIV_FLAGS_BLUEFLAME
	.word	MLX4_EN_PRIV_FLAGS_PHV
	.word	MLX4_EN_NUM_TX_TYPES
	.word	.LC0
	.word	.LC3
	.word	.LC1
	.word	.LC4
	.word	.LC2
	.word	EINVAL
	.size	mlx4_en_set_priv_flags, .-mlx4_en_set_priv_flags
	.comm	MLX4_EN_PRIV_FLAGS_PHV,4,4
	.comm	MLX4_EN_PRIV_FLAGS_BLUEFLAME,4,4
	.comm	MLX4_EN_NUM_TX_TYPES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
