	.file	"extr_mlx5_port.c_mlx5_query_port_eth_proto_oper.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx5_query_port_eth_proto_oper
	.type	mlx5_query_port_eth_proto_oper, @function
mlx5_query_port_eth_proto_oper:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	mov	edi, DWORD PTR ptys_reg[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	MLX5_ST_SZ_DW@PLT
	mov	rsi, rsp
	movsx	rdx, eax
	lea	rcx, 15[0+rdx*4]
	mov	rdx, rcx
	and	rcx, -4096
	sub	rsi, rcx
	and	rdx, -16
	mov	rcx, rsi
	cmp	rsp, rcx
	je	.L3
.L12:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rcx
	jne	.L12
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L13
.L4:
	mov	ecx, DWORD PTR MLX5_PTYS_EN[rip]
	mov	r14, rsp
	mov	rdi, r12
	mov	r8d, r13d
	lea	edx, 0[0+rax*4]
	mov	rsi, r14
	call	mlx5_query_port_ptys@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L14
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	lea	rsp, -32[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	edx, DWORD PTR eth_proto_oper[rip]
	mov	edi, DWORD PTR ptys_reg[rip]
	mov	rsi, r14
	call	MLX5_GET@PLT
	mov	DWORD PTR [rbx], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mlx5_query_port_eth_proto_oper, .-mlx5_query_port_eth_proto_oper
	.comm	ptys_reg,4,4
	.comm	eth_proto_oper,4,4
	.comm	MLX5_PTYS_EN,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_mlx5_port.c_mlx5_query_port_eth_proto_oper.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	mlx5_query_port_eth_proto_oper
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx5_query_port_eth_proto_oper, %function
mlx5_query_port_eth_proto_oper:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #20
	ldr	r6, .L7
	ldr	r3, .L7+4
	mov	r7, r0
	ldr	r0, [r6]
	mov	r4, r2
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	MLX5_ST_SZ_DW
	lsl	r2, r0, #2
	add	r3, r2, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L7+8
	str	r4, [sp]
	add	r8, sp, #8
	mov	r0, r7
	mov	r1, r8
	ldr	r3, [r3]
	bl	mlx5_query_port_ptys
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L7+12
	mov	r1, r8
	ldr	r0, [r6]
	ldr	r2, [r3]
	bl	MLX5_GET
	str	r0, [r5]
.L1:
	ldr	r3, .L7+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L6
	mov	r0, r4
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L6:
	bl	__stack_chk_fail
.L8:
	.align	2
.L7:
	.word	ptys_reg
	.word	.LC0
	.word	MLX5_PTYS_EN
	.word	eth_proto_oper
	.size	mlx5_query_port_eth_proto_oper, .-mlx5_query_port_eth_proto_oper
	.comm	ptys_reg,4,4
	.comm	eth_proto_oper,4,4
	.comm	MLX5_PTYS_EN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
