	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_resource_tracker     ## -- Begin function mlx4_init_resource_tracker
	.p2align	4, 0x90
_mlx4_init_resource_tracker:            ## @mlx4_init_resource_tracker
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_mlx4_priv
	movq	%rax, %r13
	movl	(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_62
## %bb.1:
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_8
## %bb.2:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	_MLX4_NUM_OF_RESOURCE_TYPE@GOTPCREL(%rip), %r14
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	shlq	$4, %rdi
	addq	24(%r12), %rdi
	callq	_mutex_init
	incq	%r15
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rdx
	cmpq	%rdx, %r15
	movq	%r12, %r13
	jge	LBB0_7
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	cmpl	$0, (%r14)
	movq	%r13, %r12
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	24(%r12), %rax
	movq	%r15, %rcx
	shlq	$4, %rcx
	movq	8(%rax,%rcx), %rdi
	addq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	incq	%rbx
	movslq	(%r14), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_5
	jmp	LBB0_6
LBB0_7:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_8:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_mlx4_dbg
	movq	_MLX4_NUM_OF_RESOURCE_TYPE@GOTPCREL(%rip), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_58
## %bb.9:
	movq	16(%r13), %rax
	xorl	%ecx, %ecx
	movq	_RB_ROOT@GOTPCREL(%rip), %rdx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx), %esi
	movl	%esi, (%rax,%rcx,4)
	incq	%rcx
	movslq	(%rdi), %rsi
	cmpq	%rsi, %rcx
	jl	LBB0_10
## %bb.11:
	testl	%esi, %esi
	jle	LBB0_58
## %bb.12:
	movq	96(%r12), %rax
	xorl	%r15d, %r15d
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_57:                                ##   in Loop: Header=BB0_13 Depth=1
	incq	%r15
	movq	_MLX4_NUM_OF_RESOURCE_TYPE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpq	%rcx, %r15
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	jge	LBB0_58
LBB0_13:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_23 Depth 2
                                        ##       Child Loop BB0_34 Depth 3
                                        ##       Child Loop BB0_37 Depth 3
                                        ##       Child Loop BB0_41 Depth 3
                                        ##       Child Loop BB0_50 Depth 3
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	(%r13), %r14
	movq	%r15, %rbx
	shlq	$6, %rbx
	leaq	(%r14,%rbx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, (%r14,%rbx)
	movq	96(%r12), %rax
	movl	(%rax), %edi
	incl	%edi
	movl	(%r15), %edx
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	$4, %esi
	callq	_kmalloc_array
	movq	%rax, 8(%r14,%rbx)
	cmpl	$133, %r15d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$128, %r15d
	jne	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	96(%r12), %rax
	movl	(%rax), %edi
	incl	%edi
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rax
	imull	(%rax), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14,%rbx)
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	96(%r12), %rax
	movl	(%rax), %edi
	incl	%edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_kcalloc
	movq	%rax, 16(%r14,%rbx)
	cmpq	$135, %r15
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	8(%r12), %ecx
	decl	%ecx
	movl	%ecx, 8664(%r14)
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, (%rcx)
	je	LBB0_59
## %bb.19:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r14,%rbx), %rcx
	addq	$8, %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpq	$0, (%rcx)
	je	LBB0_59
## %bb.20:                              ##   in Loop: Header=BB0_13 Depth=1
	testq	%rax, %rax
	je	LBB0_59
## %bb.21:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r14,%rbx), %rdi
	addq	$56, %rdi
	callq	_spin_lock_init
	movq	96(%r12), %rax
	cmpl	$0, (%rax)
	js	LBB0_57
## %bb.22:                              ##   in Loop: Header=BB0_13 Depth=1
	leaq	(%r14,%rbx), %rax
	addq	$32, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_23
LBB0_53:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	80(%r12), %r15
	movq	88(%r12), %rbx
	movq	%r12, %rdi
	callq	_mlx4_num_reserved_sqps
	addq	%r15, %rax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	subq	%rax, %rbx
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$130, %edx
	movl	%r14d, %ecx
	movq	%rbx, %r8
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_23 Depth=2
	callq	_initialize_res_quotas
LBB0_55:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	%eax, 8(%rcx)
LBB0_56:                                ##   in Loop: Header=BB0_23 Depth=2
	leaq	1(%r14), %rcx
	movq	96(%r12), %rax
	movslq	(%rax), %rdx
	cmpq	%rdx, %r14
	movq	%rcx, %r14
	jge	LBB0_57
LBB0_23:                                ##   Parent Loop BB0_13 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_34 Depth 3
                                        ##       Child Loop BB0_37 Depth 3
                                        ##       Child Loop BB0_41 Depth 3
                                        ##       Child Loop BB0_50 Depth 3
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_mlx4_get_active_ports
	movl	%eax, %r13d
	leal	-128(%r15), %eax
	cmpl	$7, %eax
	ja	LBB0_55
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=2
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_38:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	%r12, %rdi
	callq	_mlx4_master_func_num
	movl	%eax, %eax
	movq	_MLX4_MAX_VLAN_NUM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ecx
	cmpq	%rax, %r14
	jne	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ecx, (%rax,%r14,4)
	movl	(%rdx), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%edx, (%rcx,%r14,4)
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rcx
	cmpl	$0, (%rcx)
	jle	LBB0_48
## %bb.40:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_41:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	(%rax,%r14,4), %esi
	movl	%esi, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rdi), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_41
	jmp	LBB0_42
LBB0_27:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	56(%r12), %r8
	subq	48(%r12), %r8
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$129, %edx
	movl	%r14d, %ecx
	jmp	LBB0_54
LBB0_29:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	24(%r12), %r8
	subq	16(%r12), %r8
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$131, %edx
	movl	%r14d, %ecx
	jmp	LBB0_54
LBB0_28:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	40(%r12), %r8
	subq	32(%r12), %r8
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$132, %edx
	movl	%r14d, %ecx
	jmp	LBB0_54
LBB0_30:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	%r12, %rdi
	callq	_mlx4_master_func_num
	movl	%eax, %eax
	cmpq	%rax, %r14
	jne	LBB0_46
## %bb.31:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpl	$0, 12(%r12)
	jle	LBB0_32
## %bb.33:                              ##   in Loop: Header=BB0_23 Depth=2
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	incl	%r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_mlx4_phys_to_slaves_pport
	movl	12(%r12), %esi
	movl	%eax, %edi
	callq	_bitmap_weight
	decl	%eax
	cmpl	%eax, %ebx
	cmovbel	%eax, %ebx
	cmpl	12(%r12), %r15d
	jl	LBB0_34
	jmp	LBB0_35
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	72(%r12), %r8
	subq	64(%r12), %r8
	movq	%r12, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	$134, %edx
	movl	%r14d, %ecx
	jmp	LBB0_54
LBB0_45:                                ##   in Loop: Header=BB0_23 Depth=2
	movl	8(%r12), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	(%rsi), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	%r12, %rdi
	movl	%r14d, %edx
	callq	_mlx4_calc_res_counter_guaranteed
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	%eax, (%rcx,%r14,4)
	jmp	LBB0_55
LBB0_44:                                ##   in Loop: Header=BB0_23 Depth=2
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	xorl	%ecx, %ecx
	jmp	LBB0_47
LBB0_46:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	$2, %ecx
LBB0_47:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	%eax, (%rdx,%r14,4)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	%ecx, (%rax,%r14,4)
	jmp	LBB0_48
LBB0_32:                                ##   in Loop: Header=BB0_23 Depth=2
	xorl	%ebx, %ebx
LBB0_35:                                ##   in Loop: Header=BB0_23 Depth=2
	movq	_MLX4_MAX_MAC_NUM@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addl	%ebx, %ebx
	movl	%eax, %ecx
	subl	%ebx, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
	movl	%ecx, (%rdx,%r14,4)
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movl	$2, (%rcx,%r14,4)
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rdi
	cmpl	$0, (%rdi)
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_42
## %bb.36:                              ##   in Loop: Header=BB0_23 Depth=2
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_37:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%eax, (%rcx,%rdx,4)
	incq	%rdx
	movslq	(%rdi), %rsi
	cmpq	%rsi, %rdx
	jl	LBB0_37
LBB0_42:                                ##   in Loop: Header=BB0_23 Depth=2
	cmpl	$128, %r15d
	je	LBB0_48
## %bb.43:                              ##   in Loop: Header=BB0_23 Depth=2
	cmpl	$133, %r15d
	jne	LBB0_55
LBB0_48:                                ##   in Loop: Header=BB0_23 Depth=2
	cmpl	$0, 12(%r12)
	jle	LBB0_56
## %bb.49:                              ##   in Loop: Header=BB0_23 Depth=2
	xorl	%ebx, %ebx
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_52:                                ##   in Loop: Header=BB0_50 Depth=3
	incq	%rbx
	movslq	12(%r12), %rax
	cmpq	%rax, %rbx
	jge	LBB0_56
LBB0_50:                                ##   Parent Loop BB0_13 Depth=1
                                        ##     Parent Loop BB0_23 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=3
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	16(%rcx), %rcx
	addl	%eax, (%rcx,%rbx,4)
	jmp	LBB0_52
LBB0_58:
	addq	$8, %r13
	movq	%r13, %rdi
	callq	_spin_lock_init
	xorl	%eax, %eax
	jmp	LBB0_63
LBB0_59:
	movq	_MLX4_NUM_OF_RESOURCE_TYPE@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_62
## %bb.60:
	movq	(%r13), %rax
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_61:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%rax,%rbx), %rdi
	callq	_kfree
	movq	(%r13), %rax
	movq	$0, 16(%rax,%rbx)
	movq	8(%rax,%rbx), %rdi
	callq	_kfree
	movq	(%r13), %rax
	movq	$0, 8(%rax,%rbx)
	movq	(%rax,%rbx), %rdi
	callq	_kfree
	movq	(%r13), %rax
	movq	$0, (%rax,%rbx)
	incq	%r14
	movslq	(%r15), %rcx
	addq	$64, %rbx
	cmpq	%rcx, %r14
	jl	LBB0_61
LBB0_62:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_63:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_53, LBB0_53-LJTI0_0
.set L0_0_set_29, LBB0_29-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
.set L0_0_set_45, LBB0_45-LJTI0_0
LJTI0_0:
	.long	L0_0_set_38
	.long	L0_0_set_27
	.long	L0_0_set_53
	.long	L0_0_set_29
	.long	L0_0_set_28
	.long	L0_0_set_30
	.long	L0_0_set_25
	.long	L0_0_set_45
	.end_data_region
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX4_NUM_OF_RESOURCE_TYPE,4,2  ## @MLX4_NUM_OF_RESOURCE_TYPE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Started init_resource_tracker: %ld slaves\n"

	.comm	_RB_ROOT,4,2                    ## @RB_ROOT
	.comm	_MLX4_MAX_PORTS,4,2             ## @MLX4_MAX_PORTS
	.comm	_MLX4_MAX_MAC_NUM,8,3           ## @MLX4_MAX_MAC_NUM
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ## @MLX4_MAX_VLAN_NUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_init_resource_tracker     ; -- Begin function mlx4_init_resource_tracker
	.p2align	2
_mlx4_init_resource_tracker:            ; @mlx4_init_resource_tracker
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	bl	_mlx4_priv
	mov	x19, x0
	ldr	w0, [x20]
Lloh0:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_60
; %bb.1:
	ldr	w2, [x20]
Lloh2:
	adrp	x25, _MLX4_NUM_OF_RESOURCE_TYPE@GOTPAGE
Lloh3:
	ldr	x25, [x25, _MLX4_NUM_OF_RESOURCE_TYPE@GOTPAGEOFF]
	cmp	w2, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x21, lsl #4
	bl	_mutex_init
	add	x21, x21, #1
	ldrsw	x2, [x20]
	cmp	x21, x2
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, #0
	mov	x23, #0
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	add	x8, x8, x21, lsl #4
	ldr	x8, [x8, #8]
	add	x0, x8, x22
	bl	_INIT_LIST_HEAD
	add	x23, x23, #1
	ldrsw	x8, [x25]
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_6
	b	LBB0_3
LBB0_7:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_mlx4_dbg
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.8:
	mov	x8, #0
	ldr	x9, [x19, #16]
Lloh6:
	adrp	x10, _RB_ROOT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RB_ROOT@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	str	w11, [x9, x8, lsl #2]
	add	x8, x8, #1
	ldrsw	x11, [x25]
	cmp	x8, x11
	b.lt	LBB0_9
; %bb.10:
	cmp	w11, #1
	b.lt	LBB0_56
; %bb.11:
	mov	x27, #0
	ldr	x8, [x20, #96]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh8:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x27, x27, #1
	ldrsw	x9, [x25]
	cmp	x27, x9
	b.ge	LBB0_56
LBB0_14:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_27 Depth 2
                                        ;       Child Loop BB0_40 Depth 3
                                        ;       Child Loop BB0_48 Depth 3
                                        ;       Child Loop BB0_32 Depth 3
                                        ;       Child Loop BB0_54 Depth 3
	ldr	x22, [x19]
	add	x26, x22, x27, lsl #6
	ldr	w8, [x8]
	add	w0, w8, #1
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kmalloc_array
	str	x0, [x26]
	ldr	x8, [x20, #96]
	ldr	w8, [x8]
	add	w0, w8, #1
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kmalloc_array
	mov	x21, x26
	str	x0, [x21, #8]!
	cmp	w27, #133
	b.eq	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	cmp	w27, #128
	b.ne	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=1
Lloh10:
	adrp	x8, _MLX4_MAX_PORTS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	x9, [x20, #96]
	ldr	w9, [x9]
	madd	w0, w8, w9, w8
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	str	x0, [x26, #16]
	b	LBB0_19
LBB0_17:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x20, #96]
	ldr	w8, [x8]
	add	w0, w8, #1
	ldr	w2, [x24]
	mov	w1, #4
	bl	_kcalloc
	add	x8, x22, x27, lsl #6
	str	x0, [x8, #16]
	cmp	x27, #135
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x22, #8664]
LBB0_19:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x26]
	cbz	x8, LBB0_57
; %bb.20:                               ;   in Loop: Header=BB0_14 Depth=1
	ldr	x8, [x21]
	cmp	x8, #0
	ccmp	x0, #0, #4, ne
	b.eq	LBB0_57
; %bb.21:                               ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x22, x27, lsl #6
	add	x0, x23, #56
	bl	_spin_lock_init
	ldr	x8, [x20, #96]
	ldr	w9, [x8]
	tbnz	w9, #31, LBB0_13
; %bb.22:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x22, #0
	add	x8, x23, #32
	stp	x8, x26, [sp, #16]              ; 16-byte Folded Spill
	add	x28, x23, #48
	add	x26, x23, #40
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_27
LBB0_23:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x9, x8, [x20, #64]
	sub	x4, x8, x9
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #134
LBB0_24:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x3, x22
	bl	_initialize_res_quotas
LBB0_25:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	ldr	w9, [x26]
	add	w8, w9, w8
	str	w8, [x26]
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=2
	add	x9, x22, #1
	ldr	x8, [x20, #96]
	ldrsw	x10, [x8]
	cmp	x22, x10
	mov	x22, x9
	b.ge	LBB0_12
LBB0_27:                                ;   Parent Loop BB0_14 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_40 Depth 3
                                        ;       Child Loop BB0_48 Depth 3
                                        ;       Child Loop BB0_32 Depth 3
                                        ;       Child Loop BB0_54 Depth 3
	mov	x0, x20
	mov	x1, x22
	bl	_mlx4_get_active_ports
	sub	w8, w27, #128
	cmp	w8, #7
	b.hi	LBB0_25
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x23, x0
Lloh13:
	adrp	x11, lJTI0_0@PAGE
Lloh14:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_23
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_29:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x20
	bl	_mlx4_master_func_num
Lloh15:
	adrp	x11, _MLX4_MAX_VLAN_NUM@GOTPAGE
Lloh16:
	ldr	x11, [x11, _MLX4_MAX_VLAN_NUM@GOTPAGEOFF]
	ldr	w9, [x11]
	cmp	x22, w0, uxtw
	b.ne	LBB0_42
; %bb.30:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	lsl	x10, x22, #2
	str	w9, [x8, x10]
	ldr	w9, [x11]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	ldr	x11, [x21]
	str	w9, [x11, x10]
Lloh17:
	adrp	x9, _MLX4_MAX_PORTS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MLX4_MAX_PORTS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w9, #1
	b.lt	LBB0_51
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x9, #0
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
Lloh20:
	adrp	x12, _MLX4_MAX_PORTS@GOTPAGE
Lloh21:
	ldr	x12, [x12, _MLX4_MAX_PORTS@GOTPAGEOFF]
LBB0_32:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x8, x22, lsl #2]
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x12]
	cmp	x9, x11
	b.lt	LBB0_32
	b	LBB0_49
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x9, x8, [x20, #48]
	sub	x4, x8, x9
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #129
	b	LBB0_24
LBB0_34:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x24, x23, [x20, #80]
	mov	x0, x20
	bl	_mlx4_num_reserved_sqps
	add	x8, x24, x0
	sub	x4, x23, x8
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #130
	b	LBB0_24
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x9, x8, [x20, #16]
	sub	x4, x8, x9
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #131
	b	LBB0_24
LBB0_36:                                ;   in Loop: Header=BB0_27 Depth=2
	ldp	x9, x8, [x20, #32]
	sub	x4, x8, x9
	mov	x0, x20
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	mov	w2, #132
	b	LBB0_24
LBB0_37:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	x0, x20
	bl	_mlx4_master_func_num
	cmp	x22, w0, uxtw
	b.ne	LBB0_43
; %bb.38:                               ;   in Loop: Header=BB0_27 Depth=2
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.39:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	w27, #0
	mov	w24, #0
LBB0_40:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	w24, w24, #1
	mov	x0, x20
	mov	x1, x24
	bl	_mlx4_phys_to_slaves_pport
	ldr	w1, [x20, #12]
	bl	_bitmap_weight
	sub	w8, w0, #1
	cmp	w27, w8
	csel	w27, w27, w8, hi
	ldr	w8, [x20, #12]
	cmp	w24, w8
	b.lt	LBB0_40
	b	LBB0_46
LBB0_41:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	w8, [x20, #8]
	ldr	x1, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x9, [x1]
	lsl	x23, x22, #2
	str	w8, [x9, x23]
	mov	x0, x20
	mov	x2, x22
	bl	_mlx4_calc_res_counter_guaranteed
	ldr	x8, [x21]
	str	w0, [x8, x23]
	b	LBB0_25
LBB0_42:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	w8, #0
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_27 Depth=2
Lloh22:
	adrp	x8, _MLX4_MAX_MAC_NUM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MLX4_MAX_MAC_NUM@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x8]
	mov	w8, #2
LBB0_44:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	lsl	x11, x22, #2
	str	w9, [x10, x11]
	ldr	x9, [x21]
	str	w8, [x9, x11]
	b	LBB0_51
LBB0_45:                                ;   in Loop: Header=BB0_27 Depth=2
	mov	w27, #0
LBB0_46:                                ;   in Loop: Header=BB0_27 Depth=2
Lloh25:
	adrp	x8, _MLX4_MAX_MAC_NUM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX4_MAX_MAC_NUM@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	sub	w9, w8, w27, lsl #1
	ldr	x10, [sp, #24]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
	lsl	x11, x22, #2
	str	w9, [x10, x11]
	ldr	x9, [x21]
	mov	w10, #2
	str	w10, [x9, x11]
Lloh28:
	adrp	x12, _MLX4_MAX_PORTS@GOTPAGE
Lloh29:
	ldr	x12, [x12, _MLX4_MAX_PORTS@GOTPAGEOFF]
	ldr	w9, [x12]
	cmp	w9, #1
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	b.lt	LBB0_49
; %bb.47:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x9, #0
	ldr	x10, [sp, #16]                  ; 8-byte Folded Reload
	ldr	x10, [x10]
LBB0_48:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	str	w8, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x11, [x12]
	cmp	x9, x11
	b.lt	LBB0_48
LBB0_49:                                ;   in Loop: Header=BB0_27 Depth=2
	cmp	w27, #128
	b.eq	LBB0_51
; %bb.50:                               ;   in Loop: Header=BB0_27 Depth=2
	cmp	w27, #133
	b.ne	LBB0_25
LBB0_51:                                ;   in Loop: Header=BB0_27 Depth=2
	ldr	w8, [x20, #12]
	cmp	w8, #1
	b.lt	LBB0_26
; %bb.52:                               ;   in Loop: Header=BB0_27 Depth=2
	mov	x24, #0
	b	LBB0_54
LBB0_53:                                ;   in Loop: Header=BB0_54 Depth=3
	add	x24, x24, #1
	ldrsw	x8, [x20, #12]
	cmp	x24, x8
	b.ge	LBB0_26
LBB0_54:                                ;   Parent Loop BB0_14 Depth=1
                                        ;     Parent Loop BB0_27 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x24
	mov	x1, x23
	bl	_test_bit
	cbz	x0, LBB0_53
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=3
	ldr	x8, [x21]
	ldr	w8, [x8, x22, lsl #2]
	ldr	x9, [x28]
	lsl	x10, x24, #2
	ldr	w11, [x9, x10]
	add	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_53
LBB0_56:
	add	x0, x19, #8
	bl	_spin_lock_init
	mov	w0, #0
	b	LBB0_61
LBB0_57:
	ldr	w8, [x25]
	cmp	w8, #1
	b.lt	LBB0_60
; %bb.58:
	mov	x20, #0
	mov	x21, #0
	ldr	x8, [x19]
LBB0_59:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x20
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, x20
	str	xzr, [x8, #16]
	ldr	x0, [x8, #8]
	bl	_kfree
	ldr	x8, [x19]
	add	x8, x8, x20
	str	xzr, [x8, #8]
	ldr	x0, [x8]
	bl	_kfree
	ldr	x8, [x19]
	str	xzr, [x8, x20]
	add	x21, x21, #1
	ldrsw	x9, [x25]
	add	x20, x20, #64
	cmp	x21, x9
	b.lt	LBB0_59
LBB0_60:
Lloh30:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_61:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_29-LBB0_23)>>2
	.byte	(LBB0_33-LBB0_23)>>2
	.byte	(LBB0_34-LBB0_23)>>2
	.byte	(LBB0_35-LBB0_23)>>2
	.byte	(LBB0_36-LBB0_23)>>2
	.byte	(LBB0_37-LBB0_23)>>2
	.byte	(LBB0_23-LBB0_23)>>2
	.byte	(LBB0_41-LBB0_23)>>2
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_NUM_OF_RESOURCE_TYPE,4,2  ; @MLX4_NUM_OF_RESOURCE_TYPE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Started init_resource_tracker: %ld slaves\n"

	.comm	_RB_ROOT,4,2                    ; @RB_ROOT
	.comm	_MLX4_MAX_PORTS,4,2             ; @MLX4_MAX_PORTS
	.comm	_MLX4_MAX_MAC_NUM,8,3           ; @MLX4_MAX_MAC_NUM
	.comm	_MLX4_MAX_VLAN_NUM,4,2          ; @MLX4_MAX_VLAN_NUM
.subsections_via_symbols
