	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_setup_hca
_mlx4_setup_hca:                        ## @mlx4_setup_hca
	.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, %r15
	callq	_mlx4_priv
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_mlx4_init_uar_table
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_63
LBB0_2:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx4_uar_alloc
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_62
LBB0_4:
	movl	(%r14), %edi
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ioremap
	movl	%eax, 8(%r14)
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_mlx4_init_pd_table
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_60
LBB0_5:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_61
LBB0_8:
	movq	%r15, %rdi
	callq	_mlx4_init_xrcd_table
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_59
LBB0_10:
	movq	%r15, %rdi
	callq	_mlx4_init_mr_table
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_58
LBB0_12:
	movq	%r15, %rdi
	callq	_mlx4_init_eq_table
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_57
LBB0_14:
	movq	%r15, %rdi
	callq	_mlx4_cmd_use_events
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_56
LBB0_16:
	movq	%r15, %rdi
	callq	_mlx4_NOP
	testl	%eax, %eax
	je	LBB0_20
## %bb.17:
	movl	%eax, %ebx
	movq	_MLX4_FLAG_MSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r14), %rcx
	movq	8(%r15), %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%eax, (%r15)
	je	LBB0_19
## %bb.18:
	leaq	L_.str.8(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	jmp	LBB0_55
LBB0_20:
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx4_dbg
	movq	%r15, %rdi
	callq	_mlx4_init_cq_table
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_22
LBB0_19:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	leaq	L_.str.11(%rip), %rsi
LBB0_22:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_55
LBB0_23:
	movq	%r15, %rdi
	callq	_mlx4_init_srq_table
	testl	%eax, %eax
	je	LBB0_25
## %bb.24:
	movl	%eax, %ebx
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_54
LBB0_25:
	movq	%r15, %rdi
	callq	_mlx4_init_qp_table
	testl	%eax, %eax
	je	LBB0_27
## %bb.26:
	movl	%eax, %ebx
	leaq	L_.str.15(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_53
LBB0_27:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	testl	%eax, %eax
	je	LBB0_28
LBB0_30:
	movq	%r15, %rdi
	callq	_mlx4_init_counters_table
	testl	%eax, %eax
	je	LBB0_33
## %bb.31:
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_32
LBB0_33:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_63
## %bb.34:
	cmpl	$0, 16(%r15)
	jle	LBB0_63
## %bb.35:
	movl	$1, %r12d
	movq	_IB_MTU_2048@GOTPCREL(%rip), %r13
LBB0_36:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_41 Depth 2
	movq	$0, -48(%rbp)
	movq	%r15, %rdi
	movl	%r12d, %esi
	leaq	-48(%rbp), %rdx
	callq	_mlx4_get_port_ib_caps
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.18(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx4_warn
LBB0_38:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	-48(%rbp), %rax
	movq	40(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	%r15, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_44
## %bb.39:                              ##   in Loop: Header=BB0_36 Depth=1
	cmpl	$0, 4(%r15)
	jle	LBB0_44
## %bb.40:                              ##   in Loop: Header=BB0_36 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_43:                                ##   in Loop: Header=BB0_41 Depth=2
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_44
LBB0_41:                                ##   Parent Loop BB0_36 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_mlx4_master_func_num
	movl	%eax, %eax
	cmpq	%rax, %rbx
	je	LBB0_43
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=2
	movq	-48(%rbp), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx,%r12,8)
	jmp	LBB0_43
LBB0_44:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	%r15, %rdi
	callq	_mlx4_is_mfunc
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_46
## %bb.45:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rcx
LBB0_46:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	(%rcx), %eax
	movq	32(%r15), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	%r15, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_47
## %bb.48:                              ##   in Loop: Header=BB0_36 Depth=1
	movq	24(%r15), %rax
	movl	(%rax,%r12,4), %edx
	jmp	LBB0_49
LBB0_47:                                ##   in Loop: Header=BB0_36 Depth=1
	movl	$-1, %edx
LBB0_49:                                ##   in Loop: Header=BB0_36 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlx4_SET_PORT
	testl	%eax, %eax
	jne	LBB0_50
## %bb.64:                              ##   in Loop: Header=BB0_36 Depth=1
	leaq	1(%r12), %rax
	movslq	16(%r15), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jl	LBB0_36
	jmp	LBB0_63
LBB0_28:
	movq	%r15, %rdi
	callq	_mlx4_init_mcg_table
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	leaq	L_.str.16(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_52
LBB0_32:
	leaq	L_.str.17(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_51
LBB0_50:
	movl	%eax, %ebx
	leaq	L_.str.19(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	%r15, %rdi
	callq	_mlx4_cleanup_counters_table
LBB0_51:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_mcg_table
LBB0_52:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_qp_table
LBB0_53:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_srq_table
LBB0_54:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_cq_table
LBB0_55:
	movq	%r15, %rdi
	callq	_mlx4_cmd_use_polling
LBB0_56:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_eq_table
LBB0_57:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_mr_table
LBB0_58:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_xrcd_table
LBB0_59:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_pd_table
LBB0_60:
	movl	8(%r14), %edi
	callq	_iounmap
LBB0_61:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx4_uar_free
LBB0_62:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_uar_table
LBB0_63:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to initialize user access region table, aborting.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to allocate driver access region, aborting.\n"

	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't map kernel access region, aborting.\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"Failed to initialize protection domain table, aborting.\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to initialize reliable connection domain table, aborting.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to initialize memory region table, aborting.\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to initialize event queue table, aborting.\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to switch to event-driven firmware commands, aborting.\n"

	.comm	_MLX4_FLAG_MSI_X,4,2            ## @MLX4_FLAG_MSI_X
L_.str.8:                               ## @.str.8
	.asciz	"NOP command failed to generate MSI-X interrupt IRQ %d).\n"

L_.str.9:                               ## @.str.9
	.asciz	"Trying again without MSI-X.\n"

L_.str.10:                              ## @.str.10
	.asciz	"NOP command failed to generate interrupt (IRQ %d), aborting.\n"

L_.str.11:                              ## @.str.11
	.asciz	"BIOS or ACPI interrupt routing problem?\n"

L_.str.12:                              ## @.str.12
	.asciz	"NOP command IRQ test passed\n"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to initialize completion queue table, aborting.\n"

L_.str.14:                              ## @.str.14
	.asciz	"Failed to initialize shared receive queue table, aborting.\n"

L_.str.15:                              ## @.str.15
	.asciz	"Failed to initialize queue pair table, aborting.\n"

L_.str.16:                              ## @.str.16
	.asciz	"Failed to initialize multicast group table, aborting.\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
L_.str.17:                              ## @.str.17
	.asciz	"Failed to initialize counters table, aborting.\n"

L_.str.18:                              ## @.str.18
	.asciz	"failed to get port %d default ib capabilities (%d). Continuing with caps = 0\n"

	.comm	_IB_MTU_2048,4,2                ## @IB_MTU_2048
	.comm	_IB_MTU_4096,4,2                ## @IB_MTU_4096
L_.str.19:                              ## @.str.19
	.asciz	"Failed to set port %d, aborting\n"

	.no_dead_strip	_mlx4_setup_hca
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_setup_hca
_mlx4_setup_hca:                        ; @mlx4_setup_hca
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x19, x0
	bl	_mlx4_priv
	mov	x20, x0
	mov	x0, x19
	bl	_mlx4_init_uar_table
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_63
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_uar_alloc
	cbz	w0, LBB0_4
; %bb.3:
	mov	x21, x0
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_62
LBB0_4:
Lloh4:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh6:
	ldr	w8, [x8]
	lsl	w0, w9, w8
Lloh7:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_ioremap
	str	w0, [x20, #8]
	cbz	w0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_mlx4_init_pd_table
	cbz	w0, LBB0_8
; %bb.6:
	mov	x21, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_60
LBB0_7:
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_61
LBB0_8:
	mov	x0, x19
	bl	_mlx4_init_xrcd_table
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_59
LBB0_10:
	mov	x0, x19
	bl	_mlx4_init_mr_table
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_58
LBB0_12:
	mov	x0, x19
	bl	_mlx4_init_eq_table
	cbz	w0, LBB0_14
; %bb.13:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_57
LBB0_14:
	mov	x0, x19
	bl	_mlx4_cmd_use_events
	cbz	w0, LBB0_16
; %bb.15:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_56
LBB0_16:
	mov	x0, x19
	bl	_mlx4_NOP
	cbz	w0, LBB0_19
; %bb.17:
	mov	x21, x0
	ldr	w9, [x19]
Lloh25:
	adrp	x8, _MLX4_FLAG_MSI_X@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MLX4_FLAG_MSI_X@GOTPAGEOFF]
Lloh27:
	ldr	w10, [x8]
	ldr	x8, [x20, #24]
	ldr	x11, [x19, #8]
	ldr	w8, [x8, x11, lsl #2]
	tst	w10, w9
	b.eq	LBB0_21
; %bb.18:
	str	x8, [sp]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
	b	LBB0_55
LBB0_19:
Lloh32:
	adrp	x1, l_.str.12@PAGE
Lloh33:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
	mov	x0, x19
	bl	_mlx4_init_cq_table
	cbz	w0, LBB0_23
; %bb.20:
	mov	x21, x0
Lloh34:
	adrp	x1, l_.str.13@PAGE
Lloh35:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_22
LBB0_21:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.10@PAGE
Lloh37:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh38:
	adrp	x1, l_.str.11@PAGE
Lloh39:
	add	x1, x1, l_.str.11@PAGEOFF
LBB0_22:
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_55
LBB0_23:
	mov	x0, x19
	bl	_mlx4_init_srq_table
	cbz	w0, LBB0_25
; %bb.24:
	mov	x21, x0
Lloh40:
	adrp	x1, l_.str.14@PAGE
Lloh41:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_54
LBB0_25:
	mov	x0, x19
	bl	_mlx4_init_qp_table
	cbz	w0, LBB0_27
; %bb.26:
	mov	x21, x0
Lloh42:
	adrp	x1, l_.str.15@PAGE
Lloh43:
	add	x1, x1, l_.str.15@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_53
LBB0_27:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	w0, LBB0_32
LBB0_28:
	mov	x0, x19
	bl	_mlx4_init_counters_table
	cbz	w0, LBB0_30
; %bb.29:
	mov	x21, x0
Lloh44:
	adrp	x8, _ENOENT@GOTPAGE
Lloh45:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_34
LBB0_30:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	w0, LBB0_35
LBB0_31:
	mov	w21, #0
	b	LBB0_63
LBB0_32:
	mov	x0, x19
	bl	_mlx4_init_mcg_table
	cbz	w0, LBB0_28
; %bb.33:
	mov	x21, x0
Lloh47:
	adrp	x1, l_.str.16@PAGE
Lloh48:
	add	x1, x1, l_.str.16@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_52
LBB0_34:
Lloh49:
	adrp	x1, l_.str.17@PAGE
Lloh50:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_51
LBB0_35:
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_31
; %bb.36:
	mov	w8, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh51:
	adrp	x23, _IB_MTU_4096@GOTPAGE
Lloh52:
	ldr	x23, [x23, _IB_MTU_4096@GOTPAGEOFF]
Lloh53:
	adrp	x24, _IB_MTU_2048@GOTPAGE
Lloh54:
	ldr	x24, [x24, _IB_MTU_2048@GOTPAGEOFF]
Lloh55:
	adrp	x22, l_.str.18@PAGE
Lloh56:
	add	x22, x22, l_.str.18@PAGEOFF
LBB0_37:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_43 Depth 2
	str	xzr, [sp, #24]
	add	x2, sp, #24
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_mlx4_get_port_ib_caps
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_39
; %bb.38:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	stp	x8, x0, [sp]
	mov	x0, x19
	mov	x1, x22
	bl	_mlx4_warn
LBB0_39:                                ;   in Loop: Header=BB0_37 Depth=1
	ldp	x21, x8, [sp, #16]              ; 8-byte Folded Reload
	ldr	x9, [x19, #40]
	str	x8, [x9, x21, lsl #3]
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_45
; %bb.40:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_45
; %bb.41:                               ;   in Loop: Header=BB0_37 Depth=1
	mov	x25, #0
	b	LBB0_43
LBB0_42:                                ;   in Loop: Header=BB0_43 Depth=2
	add	x25, x25, #1
	ldrsw	x8, [x19, #4]
	cmp	x25, x8
	b.ge	LBB0_45
LBB0_43:                                ;   Parent Loop BB0_37 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_mlx4_master_func_num
	cmp	x25, w0, uxtw
	b.eq	LBB0_42
; %bb.44:                               ;   in Loop: Header=BB0_43 Depth=2
	ldr	x8, [sp, #24]
	ldr	x9, [x20, #16]
	ldr	x9, [x9, x25, lsl #3]
	str	x8, [x9, x21, lsl #3]
	b	LBB0_42
LBB0_45:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	x0, x19
	bl	_mlx4_is_mfunc
	cmp	x0, #0
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	ldr	x9, [x19, #32]
	str	w8, [x9, x21, lsl #2]
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_47
; %bb.46:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	x9, [x19, #24]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x9, x8, lsl #2]
	b	LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	w2, #-1
LBB0_48:                                ;   in Loop: Header=BB0_37 Depth=1
	mov	x0, x19
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_mlx4_SET_PORT
	mov	x21, x0
	cbnz	w0, LBB0_50
; %bb.49:                               ;   in Loop: Header=BB0_37 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x9, x8, #1
	ldrsw	x10, [x19, #16]
	cmp	x8, x10
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	b.lt	LBB0_37
	b	LBB0_63
LBB0_50:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh57:
	adrp	x1, l_.str.19@PAGE
Lloh58:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	x0, x19
	bl	_mlx4_cleanup_counters_table
LBB0_51:
	mov	x0, x19
	bl	_mlx4_cleanup_mcg_table
LBB0_52:
	mov	x0, x19
	bl	_mlx4_cleanup_qp_table
LBB0_53:
	mov	x0, x19
	bl	_mlx4_cleanup_srq_table
LBB0_54:
	mov	x0, x19
	bl	_mlx4_cleanup_cq_table
LBB0_55:
	mov	x0, x19
	bl	_mlx4_cmd_use_polling
LBB0_56:
	mov	x0, x19
	bl	_mlx4_cleanup_eq_table
LBB0_57:
	mov	x0, x19
	bl	_mlx4_cleanup_mr_table
LBB0_58:
	mov	x0, x19
	bl	_mlx4_cleanup_xrcd_table
LBB0_59:
	mov	x0, x19
	bl	_mlx4_cleanup_pd_table
LBB0_60:
	ldr	w0, [x20, #8]
	bl	_iounmap
LBB0_61:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_uar_free
LBB0_62:
	mov	x0, x19
	bl	_mlx4_cleanup_uar_table
LBB0_63:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpAdd	Lloh57, Lloh58
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to initialize user access region table, aborting.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to allocate driver access region, aborting.\n"

	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't map kernel access region, aborting.\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"Failed to initialize protection domain table, aborting.\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to initialize reliable connection domain table, aborting.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to initialize memory region table, aborting.\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to initialize event queue table, aborting.\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to switch to event-driven firmware commands, aborting.\n"

	.comm	_MLX4_FLAG_MSI_X,4,2            ; @MLX4_FLAG_MSI_X
l_.str.8:                               ; @.str.8
	.asciz	"NOP command failed to generate MSI-X interrupt IRQ %d).\n"

l_.str.9:                               ; @.str.9
	.asciz	"Trying again without MSI-X.\n"

l_.str.10:                              ; @.str.10
	.asciz	"NOP command failed to generate interrupt (IRQ %d), aborting.\n"

l_.str.11:                              ; @.str.11
	.asciz	"BIOS or ACPI interrupt routing problem?\n"

l_.str.12:                              ; @.str.12
	.asciz	"NOP command IRQ test passed\n"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to initialize completion queue table, aborting.\n"

l_.str.14:                              ; @.str.14
	.asciz	"Failed to initialize shared receive queue table, aborting.\n"

l_.str.15:                              ; @.str.15
	.asciz	"Failed to initialize queue pair table, aborting.\n"

l_.str.16:                              ; @.str.16
	.asciz	"Failed to initialize multicast group table, aborting.\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
l_.str.17:                              ; @.str.17
	.asciz	"Failed to initialize counters table, aborting.\n"

l_.str.18:                              ; @.str.18
	.asciz	"failed to get port %d default ib capabilities (%d). Continuing with caps = 0\n"

	.comm	_IB_MTU_2048,4,2                ; @IB_MTU_2048
	.comm	_IB_MTU_4096,4,2                ; @IB_MTU_4096
l_.str.19:                              ; @.str.19
	.asciz	"Failed to set port %d, aborting\n"

	.no_dead_strip	_mlx4_setup_hca
.subsections_via_symbols
