	.file	"extr_mlx4_cmd.c_mlx4_phys_to_slaves_pport.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	mlx4_phys_to_slaves_pport
	.type	mlx4_phys_to_slaves_pport, @function
mlx4_phys_to_slaves_pport:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r8d, r8d
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, esi
	mov	esi, DWORD PTR MLX4_MFUNC_MAX[rip]
	mov	edi, r8d
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	bitmap_zero@PLT
	test	ebp, ebp
	jle	.L7
	cmp	DWORD PTR 8[r12], ebp
	jl	.L7
	mov	rax, QWORD PTR [r12]
	sub	ebp, 1
	xor	ebx, ebx
	cmp	DWORD PTR [rax], -1
	jne	.L5
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r12]
	add	ebx, 1
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	eax, ebx
	jbe	.L7
.L5:
	mov	esi, ebx
	mov	rdi, r12
	call	mlx4_get_active_ports@PLT
	mov	edi, ebp
	mov	esi, eax
	call	test_bit@PLT
	test	rax, rax
	je	.L4
	xor	r8d, r8d
	mov	edi, ebx
	add	ebx, 1
	mov	esi, r8d
	call	set_bit@PLT
	mov	rax, QWORD PTR [r12]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	cmp	eax, ebx
	ja	.L5
.L7:
	xor	r8d, r8d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	eax, r8d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mlx4_phys_to_slaves_pport, .-mlx4_phys_to_slaves_pport
	.comm	MLX4_MFUNC_MAX,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_cmd.c_mlx4_phys_to_slaves_pport.c"
	.text
	.align	2
	.global	mlx4_phys_to_slaves_pport
	.syntax unified
	.arm
	.fpu softvfp
	.type	mlx4_phys_to_slaves_pport, %function
mlx4_phys_to_slaves_pport:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	ldr	r3, .L13
	mov	r5, r0
	ldr	r1, [r3]
	mov	r0, #0
	bl	bitmap_zero
	cmp	r6, #0
	ble	.L7
	ldr	r3, [r5, #4]
	cmp	r3, r6
	blt	.L7
	ldr	r3, [r5]
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L7
	mov	r4, #0
	sub	r6, r6, #1
	b	.L5
.L4:
	ldr	r3, [r5]
	add	r4, r4, #1
	ldr	r3, [r3]
	add	r3, r3, #1
	cmp	r3, r4
	bls	.L7
.L5:
	mov	r1, r4
	mov	r0, r5
	bl	mlx4_get_active_ports
	mov	r1, r0
	mov	r0, r6
	bl	test_bit
	cmp	r0, #0
	beq	.L4
	mov	r1, #0
	mov	r0, r4
	bl	set_bit
	b	.L4
.L7:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	MLX4_MFUNC_MAX
	.size	mlx4_phys_to_slaves_pport, .-mlx4_phys_to_slaves_pport
	.comm	MLX4_MFUNC_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
