	.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_72
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_71
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_69
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_70
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_68
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_67
LBB0_12:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	testl	%eax, %eax
	je	LBB0_13
LBB0_18:
	movq	%r15, %rdi
	callq	_mlx4_init_eq_table
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_64
LBB0_13:
	movq	%r15, %rdi
	callq	_mlx4_init_mcg_table
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_66
LBB0_20:
	movq	%r15, %rdi
	callq	_mlx4_cmd_use_events
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_63
LBB0_15:
	movq	%r15, %rdi
	callq	_mlx4_config_mad_demux
	testl	%eax, %eax
	je	LBB0_18
## %bb.16:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_17
LBB0_22:
	movq	%r15, %rdi
	callq	_mlx4_NOP
	testl	%eax, %eax
	je	LBB0_26
## %bb.23:
	movl	%eax, %ebx
	movq	_MLX4_FLAG_MSI_X@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	24(%r14), %rcx
	movq	_MLX4_EQ_ASYNC@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rcx,%rdx,4), %edx
	testl	%eax, (%r15)
	je	LBB0_25
## %bb.24:
	leaq	L_.str.10(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	leaq	L_.str.11(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_warn
	jmp	LBB0_62
LBB0_26:
	leaq	L_.str.14(%rip), %rsi
	movq	%r15, %rdi
	callq	_mlx4_dbg
	movq	%r15, %rdi
	callq	_mlx4_init_cq_table
	testl	%eax, %eax
	je	LBB0_29
## %bb.27:
	movl	%eax, %ebx
	leaq	L_.str.15(%rip), %rsi
	jmp	LBB0_28
LBB0_25:
	leaq	L_.str.12(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	leaq	L_.str.13(%rip), %rsi
LBB0_28:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_62
LBB0_29:
	movq	%r15, %rdi
	callq	_mlx4_init_srq_table
	testl	%eax, %eax
	je	LBB0_31
## %bb.30:
	movl	%eax, %ebx
	leaq	L_.str.16(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_61
LBB0_31:
	movq	%r15, %rdi
	callq	_mlx4_init_qp_table
	testl	%eax, %eax
	je	LBB0_33
## %bb.32:
	movl	%eax, %ebx
	leaq	L_.str.17(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
	jmp	LBB0_60
LBB0_33:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	testl	%eax, %eax
	je	LBB0_34
LBB0_37:
	movq	%r15, %rdi
	callq	_mlx4_allocate_default_counters
	testl	%eax, %eax
	je	LBB0_39
## %bb.38:
	movl	%eax, %ebx
	leaq	L_.str.19(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
LBB0_57:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	testl	%eax, %eax
	jne	LBB0_59
## %bb.58:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_counters_table
	jmp	LBB0_59
LBB0_34:
	movq	%r15, %rdi
	callq	_mlx4_init_counters_table
	testl	%eax, %eax
	je	LBB0_37
## %bb.35:
	movl	%eax, %ebx
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_37
## %bb.36:
	leaq	L_.str.18(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_mlx4_err
LBB0_59:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_qp_table
LBB0_60:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_srq_table
LBB0_61:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_cq_table
LBB0_62:
	movq	%r15, %rdi
	callq	_mlx4_cmd_use_polling
LBB0_63:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_eq_table
LBB0_64:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	testl	%eax, %eax
	jne	LBB0_66
## %bb.65:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_mcg_table
LBB0_66:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_mr_table
LBB0_67:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_xrcd_table
LBB0_68:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_pd_table
LBB0_69:
	movl	8(%r14), %edi
	callq	_iounmap
LBB0_70:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx4_uar_free
LBB0_71:
	movq	%r15, %rdi
	callq	_mlx4_cleanup_uar_table
LBB0_72:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_39:
	movq	%r15, %rdi
	callq	_mlx4_is_slave
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jne	LBB0_72
## %bb.40:
	cmpl	$0, 8(%r15)
	jle	LBB0_72
## %bb.41:
	movl	$1, %r12d
	movq	_IB_MTU_2048@GOTPCREL(%rip), %r13
LBB0_42:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_47 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_44
## %bb.43:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	%r15, %rdi
	leaq	L_.str.20(%rip), %rsi
	movl	%r12d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_mlx4_warn
LBB0_44:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	-48(%rbp), %rax
	movq	32(%r15), %rcx
	movq	%rax, (%rcx,%r12,8)
	movq	%r15, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_50
## %bb.45:                              ##   in Loop: Header=BB0_42 Depth=1
	cmpl	$0, 4(%r15)
	jle	LBB0_50
## %bb.46:                              ##   in Loop: Header=BB0_42 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_47
LBB0_49:                                ##   in Loop: Header=BB0_47 Depth=2
	incq	%rbx
	movslq	4(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_50
LBB0_47:                                ##   Parent Loop BB0_42 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r15, %rdi
	callq	_mlx4_master_func_num
	movl	%eax, %eax
	cmpq	%rax, %rbx
	je	LBB0_49
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=2
	movq	-48(%rbp), %rax
	movq	16(%r14), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movq	%rax, (%rcx,%r12,8)
	jmp	LBB0_49
LBB0_50:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	%r15, %rdi
	callq	_mlx4_is_mfunc
	movq	%r13, %rcx
	testq	%rax, %rax
	jne	LBB0_52
## %bb.51:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	_IB_MTU_4096@GOTPCREL(%rip), %rcx
LBB0_52:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	(%rcx), %eax
	movq	24(%r15), %rcx
	movl	%eax, (%rcx,%r12,4)
	movq	%r15, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_53
## %bb.54:                              ##   in Loop: Header=BB0_42 Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r12,4), %edx
	jmp	LBB0_55
LBB0_53:                                ##   in Loop: Header=BB0_42 Depth=1
	movl	$-1, %edx
LBB0_55:                                ##   in Loop: Header=BB0_42 Depth=1
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_mlx4_SET_PORT
	testl	%eax, %eax
	jne	LBB0_56
## %bb.73:                              ##   in Loop: Header=BB0_42 Depth=1
	leaq	1(%r12), %rax
	movslq	8(%r15), %rcx
	xorl	%ebx, %ebx
	cmpq	%rcx, %r12
	movq	%rax, %r12
	jl	LBB0_42
	jmp	LBB0_72
LBB0_56:
	movl	%eax, %ebx
	leaq	L_.str.21(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	xorl	%eax, %eax
	callq	_mlx4_err
	movq	%r15, %rdi
	callq	_mlx4_cleanup_default_counters
	jmp	LBB0_57
	.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 multicast group table, aborting\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed in config_mad_demux, aborting\n"

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

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

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

	.comm	_MLX4_EQ_ASYNC,8,3              ## @MLX4_EQ_ASYNC
L_.str.11:                              ## @.str.11
	.asciz	"Trying again without MSI-X\n"

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

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

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

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

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

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

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

L_.str.19:                              ## @.str.19
	.asciz	"Failed to allocate default counters, aborting\n"

L_.str.20:                              ## @.str.20
	.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.21:                              ## @.str.21
	.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_54
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_53
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_51
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_52
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_50
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_49
LBB0_12:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	w0, LBB0_16
LBB0_13:
	mov	x0, x19
	bl	_mlx4_init_eq_table
	cbz	w0, LBB0_18
; %bb.14:
	mov	x21, x0
Lloh21:
	adrp	x1, l_.str.8@PAGE
Lloh22:
	add	x1, x1, l_.str.8@PAGEOFF
LBB0_15:
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_46
LBB0_16:
	mov	x0, x19
	bl	_mlx4_init_mcg_table
	cbz	w0, LBB0_20
; %bb.17:
	mov	x21, x0
Lloh23:
	adrp	x1, l_.str.6@PAGE
Lloh24:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_48
LBB0_18:
	mov	x0, x19
	bl	_mlx4_cmd_use_events
	cbz	w0, LBB0_22
; %bb.19:
	mov	x21, x0
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_45
LBB0_20:
	mov	x0, x19
	bl	_mlx4_config_mad_demux
	cbz	w0, LBB0_13
; %bb.21:
	mov	x21, x0
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_22:
	mov	x0, x19
	bl	_mlx4_NOP
	cbz	w0, LBB0_25
; %bb.23:
	mov	x21, x0
	ldr	w9, [x19]
Lloh29:
	adrp	x8, _MLX4_FLAG_MSI_X@GOTPAGE
Lloh30:
	ldr	x8, [x8, _MLX4_FLAG_MSI_X@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x8]
	ldr	x8, [x20, #24]
Lloh32:
	adrp	x11, _MLX4_EQ_ASYNC@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MLX4_EQ_ASYNC@GOTPAGEOFF]
Lloh34:
	ldr	x11, [x11]
	ldr	w8, [x8, x11, lsl #2]
	tst	w10, w9
	b.eq	LBB0_27
; %bb.24:
	str	x8, [sp]
Lloh35:
	adrp	x1, l_.str.10@PAGE
Lloh36:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
Lloh37:
	adrp	x1, l_.str.11@PAGE
Lloh38:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
	b	LBB0_44
LBB0_25:
Lloh39:
	adrp	x1, l_.str.14@PAGE
Lloh40:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
	mov	x0, x19
	bl	_mlx4_init_cq_table
	cbz	w0, LBB0_29
; %bb.26:
	mov	x21, x0
Lloh41:
	adrp	x1, l_.str.15@PAGE
Lloh42:
	add	x1, x1, l_.str.15@PAGEOFF
	b	LBB0_28
LBB0_27:
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	str	x8, [sp]
Lloh43:
	adrp	x1, l_.str.12@PAGE
Lloh44:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh45:
	adrp	x1, l_.str.13@PAGE
Lloh46:
	add	x1, x1, l_.str.13@PAGEOFF
LBB0_28:
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_44
LBB0_29:
	mov	x0, x19
	bl	_mlx4_init_srq_table
	cbz	w0, LBB0_31
; %bb.30:
	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_43
LBB0_31:
	mov	x0, x19
	bl	_mlx4_init_qp_table
	cbz	w0, LBB0_33
; %bb.32:
	mov	x21, x0
Lloh49:
	adrp	x1, l_.str.17@PAGE
Lloh50:
	add	x1, x1, l_.str.17@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_42
LBB0_33:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	w0, LBB0_38
LBB0_34:
	mov	x0, x19
	bl	_mlx4_allocate_default_counters
	cbz	w0, LBB0_55
; %bb.35:
	mov	x21, x0
Lloh51:
	adrp	x1, l_.str.19@PAGE
Lloh52:
	add	x1, x1, l_.str.19@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
LBB0_36:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbnz	w0, LBB0_41
; %bb.37:
	mov	x0, x19
	bl	_mlx4_cleanup_counters_table
	b	LBB0_41
LBB0_38:
	mov	x0, x19
	bl	_mlx4_init_counters_table
	cbz	w0, LBB0_34
; %bb.39:
	mov	x21, x0
Lloh53:
	adrp	x8, _ENOENT@GOTPAGE
Lloh54:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh55:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_34
; %bb.40:
Lloh56:
	adrp	x1, l_.str.18@PAGE
Lloh57:
	add	x1, x1, l_.str.18@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
LBB0_41:
	mov	x0, x19
	bl	_mlx4_cleanup_qp_table
LBB0_42:
	mov	x0, x19
	bl	_mlx4_cleanup_srq_table
LBB0_43:
	mov	x0, x19
	bl	_mlx4_cleanup_cq_table
LBB0_44:
	mov	x0, x19
	bl	_mlx4_cmd_use_polling
LBB0_45:
	mov	x0, x19
	bl	_mlx4_cleanup_eq_table
LBB0_46:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbnz	w0, LBB0_48
; %bb.47:
	mov	x0, x19
	bl	_mlx4_cleanup_mcg_table
LBB0_48:
	mov	x0, x19
	bl	_mlx4_cleanup_mr_table
LBB0_49:
	mov	x0, x19
	bl	_mlx4_cleanup_xrcd_table
LBB0_50:
	mov	x0, x19
	bl	_mlx4_cleanup_pd_table
LBB0_51:
	ldr	w0, [x20, #8]
	bl	_iounmap
LBB0_52:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_uar_free
LBB0_53:
	mov	x0, x19
	bl	_mlx4_cleanup_uar_table
LBB0_54:
	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
LBB0_55:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	w0, LBB0_57
LBB0_56:
	mov	w21, #0
	b	LBB0_54
LBB0_57:
	ldr	w8, [x19, #8]
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.58:
	mov	w8, #1
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
Lloh58:
	adrp	x23, _IB_MTU_4096@GOTPAGE
Lloh59:
	ldr	x23, [x23, _IB_MTU_4096@GOTPAGEOFF]
Lloh60:
	adrp	x24, _IB_MTU_2048@GOTPAGE
Lloh61:
	ldr	x24, [x24, _IB_MTU_2048@GOTPAGEOFF]
Lloh62:
	adrp	x25, l_.str.20@PAGE
Lloh63:
	add	x25, x25, l_.str.20@PAGEOFF
LBB0_59:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_65 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_61
; %bb.60:                               ;   in Loop: Header=BB0_59 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, x25
	bl	_mlx4_warn
LBB0_61:                                ;   in Loop: Header=BB0_59 Depth=1
	ldp	x21, x8, [sp, #16]              ; 8-byte Folded Reload
	ldr	x9, [x19, #32]
	str	x8, [x9, x21, lsl #3]
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_67
; %bb.62:                               ;   in Loop: Header=BB0_59 Depth=1
	ldr	w8, [x19, #4]
	cmp	w8, #1
	b.lt	LBB0_67
; %bb.63:                               ;   in Loop: Header=BB0_59 Depth=1
	mov	x22, #0
	b	LBB0_65
LBB0_64:                                ;   in Loop: Header=BB0_65 Depth=2
	add	x8, x8, #1
	ldrsw	x9, [x19, #4]
	mov	x22, x8
	cmp	x8, x9
	b.ge	LBB0_67
LBB0_65:                                ;   Parent Loop BB0_59 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x19
	bl	_mlx4_master_func_num
	mov	x8, x22
	cmp	x22, w0, uxtw
	b.eq	LBB0_64
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=2
	ldr	x9, [sp, #24]
	ldr	x10, [x20, #16]
	ldr	x10, [x10, x8, lsl #3]
	str	x9, [x10, x21, lsl #3]
	b	LBB0_64
LBB0_67:                                ;   in Loop: Header=BB0_59 Depth=1
	mov	x0, x19
	bl	_mlx4_is_mfunc
	cmp	x0, #0
	csel	x8, x23, x24, eq
	ldr	w8, [x8]
	ldr	x9, [x19, #24]
	str	w8, [x9, x21, lsl #2]
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_69
; %bb.68:                               ;   in Loop: Header=BB0_59 Depth=1
	ldr	x9, [x19, #16]
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w2, [x9, x8, lsl #2]
	b	LBB0_70
LBB0_69:                                ;   in Loop: Header=BB0_59 Depth=1
	mov	w2, #-1
LBB0_70:                                ;   in Loop: Header=BB0_59 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_72
; %bb.71:                               ;   in Loop: Header=BB0_59 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	add	x9, x8, #1
	ldrsw	x10, [x19, #8]
	cmp	x8, x10
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	b.lt	LBB0_59
	b	LBB0_54
LBB0_72:
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	str	x8, [sp]
Lloh64:
	adrp	x1, l_.str.21@PAGE
Lloh65:
	add	x1, x1, l_.str.21@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	x0, x19
	bl	_mlx4_cleanup_default_counters
	b	LBB0_36
	.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 AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpAdd	Lloh56, Lloh57
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpLdrGot	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpAdd	Lloh64, Lloh65
	.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 multicast group table, aborting\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed in config_mad_demux, aborting\n"

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

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

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

	.comm	_MLX4_EQ_ASYNC,8,3              ; @MLX4_EQ_ASYNC
l_.str.11:                              ; @.str.11
	.asciz	"Trying again without MSI-X\n"

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

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

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

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

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

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

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

l_.str.19:                              ; @.str.19
	.asciz	"Failed to allocate default counters, aborting\n"

l_.str.20:                              ; @.str.20
	.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.21:                              ; @.str.21
	.asciz	"Failed to set port %d, aborting\n"

	.no_dead_strip	_mlx4_setup_hca
.subsections_via_symbols
