	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_phys_to_slaves_pport      ## -- Begin function mlx4_phys_to_slaves_pport
	.p2align	4, 0x90
_mlx4_phys_to_slaves_pport:             ## @mlx4_phys_to_slaves_pport
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r15
	movq	_MLX4_MFUNC_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bitmap_zero
	testl	%r14d, %r14d
	jle	LBB0_7
## %bb.1:
	cmpl	%r14d, 8(%r15)
	jl	LBB0_7
## %bb.2:
	movq	(%r15), %rax
	cmpl	$-1, (%rax)
	je	LBB0_7
## %bb.3:
	decl	%r14d
	xorl	%ebx, %ebx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incl	%ebx
	movq	(%r15), %rax
	movl	(%rax), %eax
	incl	%eax
	cmpl	%eax, %ebx
	jae	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_mlx4_get_active_ports
	movl	%r14d, %edi
	movl	%eax, %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %edi
	callq	_set_bit
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MFUNC_MAX,4,2             ## @MLX4_MFUNC_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_phys_to_slaves_pport      ; -- Begin function mlx4_phys_to_slaves_pport
	.p2align	2
_mlx4_phys_to_slaves_pport:             ; @mlx4_phys_to_slaves_pport
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MLX4_MFUNC_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MFUNC_MAX@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bitmap_zero
	subs	w20, w21, #1
	b.lt	LBB0_7
; %bb.1:
	ldr	w8, [x19, #8]
	cmp	w8, w21
	b.lt	LBB0_7
; %bb.2:
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmn	w8, #1
	b.eq	LBB0_7
; %bb.3:
	mov	w21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	w21, w21, #1
	ldr	x8, [x19]
	ldr	w8, [x8]
	add	w8, w8, #1
	cmp	w21, w8
	b.hs	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_get_active_ports
	mov	x1, x0
	mov	x0, x20
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x21
	bl	_set_bit
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MFUNC_MAX,4,2             ; @MLX4_MFUNC_MAX
.subsections_via_symbols
