	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx5_ib_stage_init_init
_mlx5_ib_stage_init_init:               ## @mlx5_ib_stage_init_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	80(%rdi), %r14
	cmpl	$0, (%rdi)
	jle	LBB0_3
## %bb.1:
	movq	72(%r12), %rax
	movl	$16, %ebx
	xorl	%r15d, %r15d
	movq	_IB_PORT_DOWN@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%rbx), %rdi
	addq	$8, %rdi
	callq	_spin_lock_init
	movq	72(%r12), %rdi
	addq	%rbx, %rdi
	callq	_rwlock_init
	movq	72(%r12), %rax
	movq	%r12, -8(%rax,%rbx)
	incq	%r15
	movl	%r15d, -16(%rax,%rbx)
	movl	(%r13), %ecx
	movl	%ecx, -12(%rax,%rbx)
	movslq	(%r12), %rcx
	addq	$32, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_2
LBB0_3:
	movq	%r12, %rdi
	callq	_mlx5_ib_internal_fill_odp_caps
	movq	%r12, %rdi
	callq	_mlx5_ib_init_multiport_master
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.4:
	movq	%r12, %rdi
	callq	_set_has_smi_cap
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_16
## %bb.5:
	movq	%r14, %rdi
	callq	_mlx5_core_mp_enabled
	testl	%eax, %eax
	je	LBB0_6
## %bb.10:
	movq	%r14, %rdi
	callq	_mlx5_core_native_port_num
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_get_port_caps
	testl	%eax, %eax
	jne	LBB0_15
	jmp	LBB0_11
LBB0_6:
	cmpl	$0, (%r12)
	jle	LBB0_11
## %bb.7:
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incl	%r15d
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_get_port_caps
	testl	%eax, %eax
	jne	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_9 Depth=1
	cmpl	(%r12), %r15d
	jl	LBB0_9
LBB0_11:
	movq	%r12, %rdi
	callq	_mlx5_use_mad_ifc
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_get_ext_port_caps
LBB0_13:
	movq	_RDMA_NODE_IB_CA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
	movq	$0, 56(%r12)
	movl	(%r12), %eax
	movl	%eax, 40(%r12)
	movq	%r14, %rdi
	callq	_mlx5_comp_vectors_count
	movl	%eax, 48(%r12)
	movl	(%r14), %eax
	movl	%eax, 44(%r12)
	leaq	32(%r12), %rdi
	callq	_mutex_init
	leaq	28(%r12), %rdi
	callq	_INIT_LIST_HEAD
	leaq	24(%r12), %rdi
	callq	_spin_lock_init
	leaq	16(%r12), %rdi
	callq	_spin_lock_init
	movq	%r14, 8(%r12)
	movq	_CONFIG_INFINIBAND_ON_DEMAND_PAGING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_IS_ENABLED
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_16
## %bb.14:
	leaq	4(%r12), %rdi
	callq	_init_srcu_struct
	testl	%eax, %eax
	je	LBB0_16
LBB0_15:
	movq	%r12, %rdi
	callq	_mlx5_ib_cleanup_multiport_master
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_16:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_PORT_DOWN,4,2               ## @IB_PORT_DOWN
	.comm	_RDMA_NODE_IB_CA,4,2            ## @RDMA_NODE_IB_CA
	.comm	_CONFIG_INFINIBAND_ON_DEMAND_PAGING,4,2 ## @CONFIG_INFINIBAND_ON_DEMAND_PAGING
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_mlx5_ib_stage_init_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx5_ib_stage_init_init
_mlx5_ib_stage_init_init:               ; @mlx5_ib_stage_init_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	ldr	x20, [x0, #80]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
	mov	x22, #0
	ldr	x8, [x19, #72]
Lloh0:
	adrp	x23, _IB_PORT_DOWN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IB_PORT_DOWN@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x8, x21
	add	x0, x8, #24
	bl	_spin_lock_init
	ldr	x8, [x19, #72]
	add	x8, x8, x21
	add	x0, x8, #16
	bl	_rwlock_init
	ldr	x8, [x19, #72]
	add	x9, x8, x21
	str	x19, [x9, #8]
	add	x22, x22, #1
	str	w22, [x9]
	ldr	w10, [x23]
	str	w10, [x9, #4]
	ldrsw	x9, [x19]
	add	x21, x21, #32
	cmp	x22, x9
	b.lt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_mlx5_ib_internal_fill_odp_caps
	mov	x0, x19
	bl	_mlx5_ib_init_multiport_master
	cbnz	w0, LBB0_16
; %bb.4:
	mov	x0, x19
	bl	_set_has_smi_cap
	cbnz	w0, LBB0_16
; %bb.5:
	mov	x0, x20
	bl	_mlx5_core_mp_enabled
	cbz	w0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_mlx5_core_native_port_num
	mov	x1, x0
	mov	x0, x19
	bl	_get_port_caps
	cbnz	w0, LBB0_15
	b	LBB0_11
LBB0_7:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.8:
	mov	w21, #0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	w21, w21, #1
	mov	x0, x19
	mov	x1, x21
	bl	_get_port_caps
	cbnz	w0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w8, [x19]
	cmp	w21, w8
	b.lt	LBB0_9
LBB0_11:
	mov	x0, x19
	bl	_mlx5_use_mad_ifc
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x19
	bl	_get_ext_port_caps
LBB0_13:
Lloh2:
	adrp	x8, _RDMA_NODE_IB_CA@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RDMA_NODE_IB_CA@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #64]
	str	xzr, [x19, #56]
	ldr	w8, [x19]
	str	w8, [x19, #40]
	mov	x0, x20
	bl	_mlx5_comp_vectors_count
	ldr	w8, [x20]
	stp	w8, w0, [x19, #44]
	add	x0, x19, #32
	bl	_mutex_init
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	bl	_spin_lock_init
	add	x0, x19, #16
	bl	_spin_lock_init
	str	x20, [x19, #8]
Lloh5:
	adrp	x8, _CONFIG_INFINIBAND_ON_DEMAND_PAGING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CONFIG_INFINIBAND_ON_DEMAND_PAGING@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_IS_ENABLED
	cbz	x0, LBB0_16
; %bb.14:
	add	x0, x19, #4
	bl	_init_srcu_struct
	cbz	w0, LBB0_16
LBB0_15:
	mov	x0, x19
	bl	_mlx5_ib_cleanup_multiport_master
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_PORT_DOWN,4,2               ; @IB_PORT_DOWN
	.comm	_RDMA_NODE_IB_CA,4,2            ; @RDMA_NODE_IB_CA
	.comm	_CONFIG_INFINIBAND_ON_DEMAND_PAGING,4,2 ; @CONFIG_INFINIBAND_ON_DEMAND_PAGING
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_mlx5_ib_stage_init_init
.subsections_via_symbols
