	.file	"extr_port.c_mlx5_query_dscp2prio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5_query_dscp2prio
	.type	mlx5_query_dscp2prio, @function
mlx5_query_dscp2prio:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	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
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR qpdpm_reg[rip]
	call	MLX5_ST_SZ_BYTES@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, eax
	mov	r13d, eax
	call	kzalloc@PLT
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	edi, r13d
	mov	rbp, rax
	call	kzalloc@PLT
	mov	r14, rax
	test	rbp, rbp
	je	.L8
	test	rax, rax
	je	.L8
	mov	edx, DWORD PTR local_port[rip]
	mov	edi, DWORD PTR qpdpm_reg[rip]
	mov	ecx, 1
	mov	rsi, rbp
	call	MLX5_SET@PLT
	push	0
	.cfi_def_cfa_offset 72
	mov	edx, r13d
	mov	r8d, r13d
	push	0
	.cfi_def_cfa_offset 80
	mov	r9d, DWORD PTR MLX5_REG_QPDPM[rip]
	mov	rcx, r14
	mov	rsi, rbp
	mov	rdi, r15
	call	mlx5_core_access_reg@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	mov	r13d, eax
	test	eax, eax
	jne	.L4
	mov	eax, DWORD PTR MLX5E_SUPPORTED_DSCP[rip]
	xor	ebx, ebx
	test	eax, eax
	jle	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR dscp[rip]
	mov	edi, DWORD PTR qpdpm_reg[rip]
	mov	rsi, r14
	mov	edx, DWORD PTR [rax+rbx*4]
	call	MLX5_ADDR_OF@PLT
	mov	edx, DWORD PTR prio[rip]
	mov	edi, DWORD PTR qpdpm_dscp_reg[rip]
	mov	rsi, rax
	call	MLX5_GET16@PLT
	mov	DWORD PTR [r12+rbx*4], eax
	add	rbx, 1
	cmp	DWORD PTR MLX5E_SUPPORTED_DSCP[rip], ebx
	jg	.L5
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
.L4:
	mov	rdi, rbp
	call	kfree@PLT
	mov	rdi, r14
	call	kfree@PLT
	add	rsp, 8
	.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
	.cfi_endproc
.LFE0:
	.size	mlx5_query_dscp2prio, .-mlx5_query_dscp2prio
	.comm	qpdpm_reg,4,4
	.comm	qpdpm_dscp_reg,4,4
	.comm	prio,4,4
	.comm	local_port,4,4
	.comm	dscp,8,8
	.comm	MLX5_REG_QPDPM,4,4
	.comm	MLX5E_SUPPORTED_DSCP,4,4
	.comm	GFP_KERNEL,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_port.c_mlx5_query_dscp2prio.c"
	.text
	.align	2
	.global	mlx5_query_dscp2prio
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_query_dscp2prio, %function
mlx5_query_dscp2prio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r8, .L10
	sub	sp, sp, #20
	mov	r10, r0
	ldr	r0, [r8]
	mov	r5, r1
	bl	MLX5_ST_SZ_BYTES
	ldr	r4, .L10+4
	mov	r9, r0
	ldr	r1, [r4]
	bl	kzalloc
	ldr	r1, [r4]
	mov	r7, r0
	mov	r0, r9
	bl	kzalloc
	clz	r3, r0
	cmp	r7, #0
	lsr	r3, r3, #5
	movne	r4, r3
	moveq	r4, #1
	cmp	r4, #0
	mov	r6, r0
	beq	.L2
	ldr	r3, .L10+8
	ldr	r9, [r3]
	rsb	r9, r9, #0
.L3:
	mov	r0, r7
	bl	kfree
	mov	r0, r6
	bl	kfree
	mov	r0, r9
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	ldr	r2, .L10+12
	mov	r3, #1
	mov	r1, r7
	ldr	r2, [r2]
	ldr	r0, [r8]
	bl	MLX5_SET
	ldr	r3, .L10+16
	str	r4, [sp, #12]
	ldr	r3, [r3]
	mov	r2, r9
	str	r9, [sp]
	str	r3, [sp, #4]
	mov	r0, r10
	mov	r3, r6
	mov	r1, r7
	str	r4, [sp, #8]
	bl	mlx5_core_access_reg
	subs	r9, r0, #0
	bne	.L3
	ldr	r10, .L10+20
	ldr	r3, [r10]
	cmp	r3, #0
	ble	.L3
	mov	r4, r9
	ldr	fp, .L10+24
	sub	r5, r5, #4
.L5:
	ldr	r3, [fp]
	mov	r1, r6
	ldr	r2, [r3, r4, lsl #2]
	ldr	r0, [r8]
	bl	MLX5_ADDR_OF
	ldr	r3, .L10+28
	mov	r1, r0
	ldr	r2, [r3]
	ldr	r3, .L10+32
	add	r4, r4, #1
	ldr	r0, [r3]
	bl	MLX5_GET16
	str	r0, [r5, #4]!
	ldr	r3, [r10]
	cmp	r3, r4
	bgt	.L5
	b	.L3
.L11:
	.align	2
.L10:
	.word	qpdpm_reg
	.word	GFP_KERNEL
	.word	ENOMEM
	.word	local_port
	.word	MLX5_REG_QPDPM
	.word	MLX5E_SUPPORTED_DSCP
	.word	dscp
	.word	prio
	.word	qpdpm_dscp_reg
	.size	mlx5_query_dscp2prio, .-mlx5_query_dscp2prio
	.comm	qpdpm_reg,4,4
	.comm	qpdpm_dscp_reg,4,4
	.comm	prio,4,4
	.comm	local_port,4,4
	.comm	dscp,4,4
	.comm	MLX5_REG_QPDPM,4,4
	.comm	MLX5E_SUPPORTED_DSCP,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
