	.file	"extr_sense.c_mlx4_do_sense_ports.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_do_sense_ports
	.type	mlx4_do_sense_ports, @function
mlx4_do_sense_ports:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	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
	call	mlx4_priv@PLT
	mov	edx, DWORD PTR [r12]
	test	edx, edx
	jle	.L1
	mov	r14, rax
	mov	rbp, r13
	mov	ebx, 1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r14]
	mov	DWORD PTR 0[rbp], 0
	lea	rdx, 0[0+rbx*8]
	cmp	QWORD PTR [rax+rbx*8], 0
	je	.L3
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR [rax+rbx*8], 0
	je	.L3
	mov	rax, QWORD PTR 8[r12]
	mov	rcx, QWORD PTR MLX4_PORT_TYPE_AUTO[rip]
	cmp	QWORD PTR [rax+rdx], rcx
	je	.L17
.L3:
	mov	eax, DWORD PTR -4[r15+rbx*4]
	mov	DWORD PTR 0[rbp], eax
.L4:
	mov	eax, DWORD PTR [r12]
	add	rbx, 1
	add	rbp, 4
	cmp	eax, ebx
	jge	.L5
	test	eax, eax
	jle	.L1
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edx, DWORD PTR 0[r13+rax*4]
	test	edx, edx
	jne	.L7
	mov	edx, DWORD PTR [r15+rax*4]
.L7:
	mov	DWORD PTR 0[r13+rax*4], edx
	add	rax, 1
	cmp	DWORD PTR [r12], eax
	jg	.L8
.L1:
	add	rsp, 8
	.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
.L17:
	.cfi_restore_state
	mov	rdx, rbp
	mov	esi, ebx
	mov	rdi, r12
	call	mlx4_SENSE_PORT@PLT
	test	eax, eax
	je	.L4
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	mlx4_do_sense_ports, .-mlx4_do_sense_ports
	.comm	MLX4_PORT_TYPE_AUTO,8,8
	.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_sense.c_mlx4_do_sense_ports.c"
	.text
	.align	2
	.global	mlx4_do_sense_ports
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_do_sense_ports, %function
mlx4_do_sense_ports:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	mov	r6, r1
	mov	r9, r2
	bl	mlx4_priv
	ldr	r3, [r7]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r8, r0
	mov	r5, r6
	mov	r4, #1
	mov	r10, #0
	ldr	r3, .L23
	sub	fp, r9, #4
.L5:
	ldr	r1, [r8, #4]
	mov	r2, r5
	ldr	r1, [r1, r4, lsl #2]
	str	r10, [r5], #4
	cmp	r1, #0
	lsl	r1, r4, #2
	beq	.L3
	ldr	r0, [r8]
	ldr	r0, [r0, r4, lsl #2]
	cmp	r0, #0
	beq	.L3
	ldr	ip, [r7, #4]
	ldr	r0, [r3]
	ldr	r1, [ip, r1]
	cmp	r1, r0
	beq	.L22
.L3:
	ldr	r2, [fp, r4, lsl #2]
	str	r2, [r5, #-4]
.L4:
	ldr	r2, [r7]
	add	r4, r4, #1
	cmp	r2, r4
	bge	.L5
	cmp	r2, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r3, #0
	sub	ip, r6, #4
.L8:
	ldr	r1, [ip, #4]!
	cmp	r1, #0
	ldreq	r1, [r9, r3, lsl #2]
	add	r3, r3, #1
	str	r1, [ip]
	ldr	r2, [r7]
	cmp	r2, r3
	bgt	.L8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L22:
	mov	r1, r4
	mov	r0, r7
	bl	mlx4_SENSE_PORT
	cmp	r0, #0
	ldr	r3, .L23
	beq	.L4
	b	.L3
.L24:
	.align	2
.L23:
	.word	MLX4_PORT_TYPE_AUTO
	.size	mlx4_do_sense_ports, .-mlx4_do_sense_ports
	.comm	MLX4_PORT_TYPE_AUTO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
