	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_init_hca
_mlx4_init_hca:                         ## @mlx4_init_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	callq	_mlx4_priv
	movq	%rax, %r12
	movq	%r13, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_1
## %bb.50:
	movq	%r13, %rdi
	callq	_mlx4_init_slave
	testl	%eax, %eax
	je	LBB0_53
## %bb.51:
	movl	%eax, %ebx
	movq	_EPROBE_DEFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_71
## %bb.52:
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_71
LBB0_1:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r15
	movl	(%rbx), %esi
	movl	$40, %edi
	callq	_kzalloc
	movq	%rax, %r14
	testq	%r15, %r15
	je	LBB0_3
## %bb.2:
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mlx4_dev_cap
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_70
LBB0_53:
	movq	%r13, %rdi
	callq	_mlx4_slave_cap
	testl	%eax, %eax
	je	LBB0_54
## %bb.72:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_73:
	movq	%r13, %rdi
	callq	_mlx4_is_slave
	movq	%r13, %rdi
	testq	%rax, %rax
	je	LBB0_67
## %bb.74:
	callq	_mlx4_slave_exit
	jmp	LBB0_68
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_70
LBB0_54:
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
LBB0_55:
	movq	%r13, %rdi
	callq	_map_bf_area
	testq	%rax, %rax
	je	LBB0_57
## %bb.56:
	leaq	L_.str.12(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_dbg
LBB0_57:
	movq	%r13, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	jne	LBB0_59
## %bb.58:
	movq	%r13, %rdi
	callq	_mlx4_set_port_mask
LBB0_59:
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mlx4_QUERY_ADAPTER
	testl	%eax, %eax
	je	LBB0_62
## %bb.60:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movq	%r13, %rdi
	callq	_unmap_internal_clock
	movq	%r13, %rdi
	callq	_unmap_bf_area
	movq	%r13, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	je	LBB0_73
## %bb.61:
	movq	%r13, %rdi
	callq	_mlx4_slave_destroy_special_qp_cap
	jmp	LBB0_73
LBB0_67:
	xorl	%esi, %esi
	callq	_mlx4_CLOSE_HCA
LBB0_68:
	movq	%r13, %rdi
	callq	_mlx4_is_slave
	testq	%rax, %rax
	jne	LBB0_70
## %bb.69:
	movq	%r13, %rdi
	callq	_mlx4_free_icms
	jmp	LBB0_70
LBB0_6:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_choose_steering_mode
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_choose_tunnel_offload_mode
	movq	8(%r13), %rax
	movq	_MLX4_STEERING_DMFS_A0_STATIC@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.7:
	movq	%r13, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_MLX4_FUNC_CAP_DMFS_A0_STATIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 92(%r13)
LBB0_9:
	movq	%r13, %rdi
	callq	_mlx4_get_phys_port_id
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.1(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
LBB0_11:
	movq	%r13, %rdi
	callq	_mlx4_is_master
	testq	%rax, %rax
	je	LBB0_13
## %bb.12:
	movq	%r13, %rdi
	callq	_mlx4_parav_master_pf_caps
LBB0_13:
	xorl	%eax, %eax
	callq	_mlx4_low_memory_profile
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	xorl	%eax, %eax
	callq	_mlx4_info
	movq	_low_mem_profile@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_62:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_mlx4_config_dev_retrieval
	testl	%eax, %eax
	je	LBB0_65
## %bb.63:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	je	LBB0_66
## %bb.64:
	leaq	L_.str.14(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_66
LBB0_14:
	movq	_default_profile@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	16(%r13), %rax
	movq	_MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.17:
	movq	_MLX4_FS_NUM_MCG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_18:
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	movq	%r15, %rdx
	movq	%r14, %rcx
	callq	_mlx4_make_profile
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_70
## %bb.19:
	movl	88(%r13), %edi
	callq	_ilog2
	negb	%al
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	movl	%edx, 24(%r13)
	movq	_enable_4k_uar@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_20
LBB0_21:
	movl	84(%r13), %edi
	callq	_ilog2
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	addl	(%rcx), %eax
	movq	_DEFAULT_UAR_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	subl	%ecx, %eax
	movl	%eax, (%r14)
	jmp	LBB0_23
LBB0_20:
	movq	96(%r13), %rax
	cmpl	$0, (%rax)
	je	LBB0_21
## %bb.22:
	movl	84(%r13), %edi
	callq	_ilog2
	movl	%eax, (%r14)
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_23:
	addq	$-12, %rcx
	movq	%rcx, 32(%r14)
	movq	$0, 24(%r14)
	movq	_MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 28(%r13)
	jne	LBB0_25
## %bb.24:
	movq	_MLX4_BMME_FLAG_TYPE_2_WIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 32(%r13)
	je	LBB0_26
LBB0_25:
	movq	_INIT_HCA_TPT_MW_ENABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%r14)
LBB0_26:
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	callq	_mlx4_init_icm
	testl	%eax, %eax
	je	LBB0_28
## %bb.27:
	movl	%eax, %ebx
	jmp	LBB0_70
LBB0_28:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx4_INIT_HCA
	testl	%eax, %eax
	je	LBB0_30
## %bb.29:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_68
LBB0_65:
	movl	-52(%rbp), %eax
	movq	40(%r13), %rcx
	movl	%eax, 4(%rcx)
	movl	-56(%rbp), %eax
	movl	%eax, 8(%rcx)
LBB0_66:
	movl	-60(%rbp), %eax
	movl	%eax, (%r12)
	movl	(%r13), %edi
	movl	-64(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	xorl	%ebx, %ebx
LBB0_70:
	movq	%r15, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
LBB0_71:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_30:
	movq	_MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_35
## %bb.31:
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_mlx4_query_func
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_32
## %bb.33:
	movq	_MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_35
## %bb.34:
	movl	20(%r15), %eax
	movl	%eax, 80(%r13)
	movl	16(%r15), %eax
	movl	%eax, 76(%r13)
	movl	12(%r15), %eax
	movl	%eax, 72(%r13)
LBB0_35:
	movq	_MLX4_DEV_CAP_FLAG2_TS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %eax
	testl	%eax, 36(%r13)
	je	LBB0_44
## %bb.36:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx4_QUERY_HCA
	testl	%eax, %eax
	je	LBB0_38
## %bb.37:
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 36(%r13)
	movl	68(%r13), %eax
	jmp	LBB0_39
LBB0_32:
	leaq	L_.str.4(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_73
LBB0_38:
	movl	8(%r14), %eax
	movl	%eax, 68(%r13)
LBB0_39:
	testl	%eax, %eax
	je	LBB0_40
## %bb.41:
	movq	%r13, %rdi
	callq	_map_internal_clock
	testq	%rax, %rax
	je	LBB0_44
## %bb.42:
	leaq	L_.str.7(%rip), %rsi
	jmp	LBB0_43
LBB0_40:
	leaq	L_.str.6(%rip), %rsi
LBB0_43:
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, 36(%r13)
	movq	%r13, %rdi
	callq	_mlx4_err
LBB0_44:
	movq	8(%r13), %rax
	movq	_MLX4_STEERING_DMFS_A0_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_55
## %bb.45:
	movq	%r13, %rdi
	callq	_mlx4_validate_optimized_steering
	testq	%rax, %rax
	je	LBB0_47
## %bb.46:
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_warn
LBB0_47:
	movq	8(%r13), %rdi
	movq	_MLX4_STEERING_DMFS_A0_DISABLE@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jne	LBB0_49
## %bb.48:
	movq	56(%r13), %rax
	movq	_MLX4_QP_REGION_FW@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, 64(%r13)
	movq	_MLX4_A0_STEERING_TABLE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r13)
LBB0_49:
	callq	_dmfs_high_rate_steering_mode_str
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_mlx4_info
	jmp	LBB0_55
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"QUERY_DEV_CAP command failed, aborting\n"

	.comm	_MLX4_STEERING_DMFS_A0_STATIC,8,3 ## @MLX4_STEERING_DMFS_A0_STATIC
	.comm	_MLX4_FUNC_CAP_DMFS_A0_STATIC,4,2 ## @MLX4_FUNC_CAP_DMFS_A0_STATIC
L_.str.1:                               ## @.str.1
	.asciz	"Fail to get physical port id\n"

L_.str.2:                               ## @.str.2
	.asciz	"Running from within kdump kernel. Using low memory profile\n"

	.comm	_low_mem_profile,4,2            ## @low_mem_profile
	.comm	_default_profile,4,2            ## @default_profile
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ## @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_MLX4_FS_NUM_MCG,4,2            ## @MLX4_FS_NUM_MCG
	.comm	_enable_4k_uar,8,3              ## @enable_4k_uar
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_DEFAULT_UAR_PAGE_SHIFT,8,3     ## @DEFAULT_UAR_PAGE_SHIFT
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ## @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ## @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_INIT_HCA_TPT_MW_ENABLE,8,3     ## @INIT_HCA_TPT_MW_ENABLE
L_.str.3:                               ## @.str.3
	.asciz	"INIT_HCA command failed, aborting\n"

	.comm	_MLX4_DEV_CAP_FLAG2_SYS_EQS,4,2 ## @MLX4_DEV_CAP_FLAG2_SYS_EQS
L_.str.4:                               ## @.str.4
	.asciz	"QUERY_FUNC command failed, aborting.\n"

	.comm	_MLX4_QUERY_FUNC_NUM_SYS_EQS,4,2 ## @MLX4_QUERY_FUNC_NUM_SYS_EQS
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ## @MLX4_DEV_CAP_FLAG2_TS
L_.str.5:                               ## @.str.5
	.asciz	"QUERY_HCA command failed, disable timestamp\n"

L_.str.6:                               ## @.str.6
	.asciz	"HCA frequency is 0 - timestamping is not supported\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to map internal clock. Timestamping is not supported\n"

	.comm	_MLX4_STEERING_DMFS_A0_NOT_SUPPORTED,8,3 ## @MLX4_STEERING_DMFS_A0_NOT_SUPPORTED
L_.str.8:                               ## @.str.8
	.asciz	"Optimized steering validation failed\n"

	.comm	_MLX4_STEERING_DMFS_A0_DISABLE,8,3 ## @MLX4_STEERING_DMFS_A0_DISABLE
	.comm	_MLX4_QP_REGION_FW,8,3          ## @MLX4_QP_REGION_FW
	.comm	_MLX4_A0_STEERING_TABLE_SIZE,4,2 ## @MLX4_A0_STEERING_TABLE_SIZE
L_.str.9:                               ## @.str.9
	.asciz	"DMFS high rate steer mode is: %s\n"

	.comm	_EPROBE_DEFER,4,2               ## @EPROBE_DEFER
L_.str.10:                              ## @.str.10
	.asciz	"Failed to initialize slave\n"

L_.str.11:                              ## @.str.11
	.asciz	"Failed to obtain slave caps\n"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to map blue flame area\n"

L_.str.13:                              ## @.str.13
	.asciz	"QUERY_ADAPTER command failed, aborting\n"

	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
L_.str.14:                              ## @.str.14
	.asciz	"Failed to query CONFIG_DEV parameters\n"

	.no_dead_strip	_mlx4_init_hca
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_init_hca
_mlx4_init_hca:                         ; @mlx4_init_hca
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	bl	_mlx4_priv
	mov	x22, x0
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mlx4_init_slave
	cbz	w0, LBB0_6
; %bb.2:
	mov	x23, x0
Lloh0:
	adrp	x8, _EPROBE_DEFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EPROBE_DEFER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_53
; %bb.3:
Lloh3:
	adrp	x1, l_.str.10@PAGE
Lloh4:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_53
LBB0_4:
Lloh5:
	adrp	x21, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kzalloc
	mov	x20, x0
	ldr	w1, [x21]
	mov	w0, #40
	bl	_kzalloc
	mov	x21, x0
	cmp	x20, #0
	ccmp	x0, #0, #4, ne
	b.ne	LBB0_10
; %bb.5:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_52
LBB0_6:
	mov	x0, x19
	bl	_mlx4_slave_cap
	cbz	w0, LBB0_12
; %bb.7:
	mov	x23, x0
Lloh10:
	adrp	x1, l_.str.11@PAGE
Lloh11:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	x21, #0
	mov	x20, #0
LBB0_8:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	x0, LBB0_20
; %bb.9:
	mov	x0, x19
	bl	_mlx4_slave_exit
	b	LBB0_21
LBB0_10:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_dev_cap
	cbz	w0, LBB0_23
; %bb.11:
	mov	x23, x0
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_52
LBB0_12:
	mov	x21, #0
	mov	x20, #0
LBB0_13:
	mov	x0, x19
	bl	_map_bf_area
	cbz	x0, LBB0_15
; %bb.14:
Lloh14:
	adrp	x1, l_.str.12@PAGE
Lloh15:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
LBB0_15:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbnz	x0, LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_mlx4_set_port_mask
LBB0_17:
	add	x1, sp, #24
	mov	x0, x19
	bl	_mlx4_QUERY_ADAPTER
	cbz	w0, LBB0_32
; %bb.18:
	mov	x23, x0
Lloh16:
	adrp	x1, l_.str.13@PAGE
Lloh17:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	x0, x19
	bl	_unmap_internal_clock
	mov	x0, x19
	bl	_unmap_bf_area
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	x0, LBB0_8
; %bb.19:
	mov	x0, x19
	bl	_mlx4_slave_destroy_special_qp_cap
	b	LBB0_8
LBB0_20:
	mov	x0, x19
	mov	w1, #0
	bl	_mlx4_CLOSE_HCA
LBB0_21:
	mov	x0, x19
	bl	_mlx4_is_slave
	cbnz	x0, LBB0_52
; %bb.22:
	mov	x0, x19
	bl	_mlx4_free_icms
	b	LBB0_52
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	bl	_choose_steering_mode
	mov	x0, x19
	mov	x1, x20
	bl	_choose_tunnel_offload_mode
	ldr	x8, [x19, #8]
Lloh18:
	adrp	x9, _MLX4_STEERING_DMFS_A0_STATIC@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MLX4_STEERING_DMFS_A0_STATIC@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_26
; %bb.24:
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_26
; %bb.25:
Lloh21:
	adrp	x8, _MLX4_FUNC_CAP_DMFS_A0_STATIC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MLX4_FUNC_CAP_DMFS_A0_STATIC@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	ldr	w9, [x19, #92]
	orr	w8, w9, w8
	str	w8, [x19, #92]
LBB0_26:
	mov	x0, x19
	bl	_mlx4_get_phys_port_id
	cbz	w0, LBB0_28
; %bb.27:
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
LBB0_28:
	mov	x0, x19
	bl	_mlx4_is_master
	cbz	x0, LBB0_30
; %bb.29:
	mov	x0, x19
	bl	_mlx4_parav_master_pf_caps
LBB0_30:
	bl	_mlx4_low_memory_profile
	cbz	x0, LBB0_35
; %bb.31:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
Lloh28:
	adrp	x8, _low_mem_profile@GOTPAGE
Lloh29:
	ldr	x8, [x8, _low_mem_profile@GOTPAGEOFF]
	b	LBB0_36
LBB0_32:
	add	x1, sp, #8
	mov	x0, x19
	bl	_mlx4_config_dev_retrieval
	cbz	w0, LBB0_50
; %bb.33:
Lloh30:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmn	w0, w8
	b.eq	LBB0_51
; %bb.34:
Lloh33:
	adrp	x1, l_.str.14@PAGE
Lloh34:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_51
LBB0_35:
Lloh35:
	adrp	x8, _default_profile@GOTPAGE
Lloh36:
	ldr	x8, [x8, _default_profile@GOTPAGEOFF]
LBB0_36:
	ldr	w8, [x8]
	str	w8, [sp, #16]
	ldr	x8, [x19, #16]
Lloh37:
	adrp	x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGE
Lloh38:
	ldr	x9, [x9, _MLX4_STEERING_MODE_DEVICE_MANAGED@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_38
; %bb.37:
Lloh40:
	adrp	x8, _MLX4_FS_NUM_MCG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _MLX4_FS_NUM_MCG@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	str	w8, [sp, #16]
LBB0_38:
	add	x1, sp, #16
	mov	x0, x19
	mov	x2, x20
	mov	x3, x21
	bl	_mlx4_make_profile
	mov	x23, x0
	tbnz	w0, #31, LBB0_52
; %bb.39:
	ldr	w0, [x19, #88]
	bl	_ilog2
	neg	w8, w0
	mov	w9, #-1
	lsl	w8, w9, w8
	mvn	w8, w8
	str	w8, [x19, #24]
Lloh43:
	adrp	x8, _enable_4k_uar@GOTPAGE
Lloh44:
	ldr	x8, [x8, _enable_4k_uar@GOTPAGEOFF]
Lloh45:
	ldr	x8, [x8]
	cbz	x8, LBB0_41
LBB0_40:
	ldr	w0, [x19, #84]
	bl	_ilog2
Lloh46:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh47:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x8]
Lloh49:
	adrp	x8, _DEFAULT_UAR_PAGE_SHIFT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DEFAULT_UAR_PAGE_SHIFT@GOTPAGEOFF]
Lloh51:
	ldr	x8, [x8]
	add	w9, w9, w0
	sub	w9, w9, w8
	str	w9, [x21]
	b	LBB0_43
LBB0_41:
	ldr	x8, [x19, #96]
	ldr	w8, [x8]
	cbz	w8, LBB0_40
; %bb.42:
	ldr	w0, [x19, #84]
	bl	_ilog2
	str	w0, [x21]
Lloh52:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh53:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh54:
	ldr	x8, [x8]
LBB0_43:
	sub	x8, x8, #12
	stp	xzr, x8, [x21, #24]
	ldr	w8, [x19, #28]
Lloh55:
	adrp	x9, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGE
Lloh56:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG_MEM_WINDOW@GOTPAGEOFF]
Lloh57:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_45
; %bb.44:
	ldr	w8, [x19, #32]
Lloh58:
	adrp	x9, _MLX4_BMME_FLAG_TYPE_2_WIN@GOTPAGE
Lloh59:
	ldr	x9, [x9, _MLX4_BMME_FLAG_TYPE_2_WIN@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_46
LBB0_45:
Lloh61:
	adrp	x8, _INIT_HCA_TPT_MW_ENABLE@GOTPAGE
Lloh62:
	ldr	x8, [x8, _INIT_HCA_TPT_MW_ENABLE@GOTPAGEOFF]
Lloh63:
	ldr	x8, [x8]
	str	x8, [x21, #24]
LBB0_46:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x23
	bl	_mlx4_init_icm
	cbz	w0, LBB0_48
; %bb.47:
	mov	x23, x0
	b	LBB0_52
LBB0_48:
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_INIT_HCA
	cbz	w0, LBB0_54
; %bb.49:
	mov	x23, x0
Lloh64:
	adrp	x1, l_.str.3@PAGE
Lloh65:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_21
LBB0_50:
	ldr	x8, [x19, #40]
	ldr	d0, [sp, #8]
	rev64.2s	v0, v0
	stur	d0, [x8, #4]
LBB0_51:
	ldr	w8, [sp, #28]
	str	w8, [x22]
	ldr	w0, [x19]
	ldr	w1, [sp, #24]
	mov	w2, #4
	bl	_memcpy
	mov	w23, #0
LBB0_52:
	mov	x0, x20
	bl	_kfree
	mov	x0, x21
	bl	_kfree
LBB0_53:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_54:
	ldr	w8, [x20, #4]
Lloh66:
	adrp	x9, _MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPAGE
Lloh67:
	ldr	x9, [x9, _MLX4_DEV_CAP_FLAG2_SYS_EQS@GOTPAGEOFF]
Lloh68:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_58
; %bb.55:
	mov	x0, x19
	mov	x1, x20
	bl	_mlx4_query_func
	mov	x23, x0
	tbnz	w0, #31, LBB0_61
; %bb.56:
Lloh69:
	adrp	x8, _MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPAGE
Lloh70:
	ldr	x8, [x8, _MLX4_QUERY_FUNC_NUM_SYS_EQS@GOTPAGEOFF]
Lloh71:
	ldr	w8, [x8]
	tst	w8, w23
	b.eq	LBB0_58
; %bb.57:
	ldr	w8, [x20, #20]
	str	w8, [x19, #80]
	ldur	d0, [x20, #12]
	str	d0, [x19, #72]
LBB0_58:
	ldr	w8, [x19, #36]
Lloh72:
	adrp	x23, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGE
Lloh73:
	ldr	x23, [x23, _MLX4_DEV_CAP_FLAG2_TS@GOTPAGEOFF]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_68
; %bb.59:
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_QUERY_HCA
	cbz	w0, LBB0_62
; %bb.60:
Lloh74:
	adrp	x1, l_.str.5@PAGE
Lloh75:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	ldr	w8, [x23]
	ldr	w9, [x19, #36]
	bic	w8, w9, w8
	str	w8, [x19, #36]
	ldr	w8, [x19, #68]
	b	LBB0_63
LBB0_61:
Lloh76:
	adrp	x1, l_.str.4@PAGE
Lloh77:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_8
LBB0_62:
	ldr	w8, [x21, #8]
	str	w8, [x19, #68]
LBB0_63:
	cbz	w8, LBB0_66
; %bb.64:
	mov	x0, x19
	bl	_map_internal_clock
	cbz	x0, LBB0_68
; %bb.65:
Lloh78:
	adrp	x1, l_.str.7@PAGE
Lloh79:
	add	x1, x1, l_.str.7@PAGEOFF
	b	LBB0_67
LBB0_66:
Lloh80:
	adrp	x1, l_.str.6@PAGE
Lloh81:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_67:
	ldr	w8, [x23]
	ldr	w9, [x19, #36]
	bic	w8, w9, w8
	str	w8, [x19, #36]
	mov	x0, x19
	bl	_mlx4_err
LBB0_68:
	ldr	x8, [x19, #8]
Lloh82:
	adrp	x9, _MLX4_STEERING_DMFS_A0_NOT_SUPPORTED@GOTPAGE
Lloh83:
	ldr	x9, [x9, _MLX4_STEERING_DMFS_A0_NOT_SUPPORTED@GOTPAGEOFF]
Lloh84:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_13
; %bb.69:
	mov	x0, x19
	bl	_mlx4_validate_optimized_steering
	cbz	x0, LBB0_71
; %bb.70:
Lloh85:
	adrp	x1, l_.str.8@PAGE
Lloh86:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_mlx4_warn
LBB0_71:
	ldr	x0, [x19, #8]
Lloh87:
	adrp	x8, _MLX4_STEERING_DMFS_A0_DISABLE@GOTPAGE
Lloh88:
	ldr	x8, [x8, _MLX4_STEERING_DMFS_A0_DISABLE@GOTPAGEOFF]
Lloh89:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_73
; %bb.72:
	ldr	x8, [x19, #56]
Lloh90:
	adrp	x9, _MLX4_QP_REGION_FW@GOTPAGE
Lloh91:
	ldr	x9, [x9, _MLX4_QP_REGION_FW@GOTPAGEOFF]
Lloh92:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	str	w8, [x19, #64]
Lloh93:
	adrp	x8, _MLX4_A0_STEERING_TABLE_SIZE@GOTPAGE
Lloh94:
	ldr	x8, [x8, _MLX4_A0_STEERING_TABLE_SIZE@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	str	w8, [x19, #48]
LBB0_73:
	bl	_dmfs_high_rate_steering_mode_str
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh96:
	adrp	x1, l_.str.9@PAGE
Lloh97:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mlx4_info
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGot	Lloh72, Lloh73
	.loh AdrpAdd	Lloh74, Lloh75
	.loh AdrpAdd	Lloh76, Lloh77
	.loh AdrpAdd	Lloh78, Lloh79
	.loh AdrpAdd	Lloh80, Lloh81
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpAdd	Lloh85, Lloh86
	.loh AdrpLdrGotLdr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpAdd	Lloh96, Lloh97
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"QUERY_DEV_CAP command failed, aborting\n"

	.comm	_MLX4_STEERING_DMFS_A0_STATIC,8,3 ; @MLX4_STEERING_DMFS_A0_STATIC
	.comm	_MLX4_FUNC_CAP_DMFS_A0_STATIC,4,2 ; @MLX4_FUNC_CAP_DMFS_A0_STATIC
l_.str.1:                               ; @.str.1
	.asciz	"Fail to get physical port id\n"

l_.str.2:                               ; @.str.2
	.asciz	"Running from within kdump kernel. Using low memory profile\n"

	.comm	_low_mem_profile,4,2            ; @low_mem_profile
	.comm	_default_profile,4,2            ; @default_profile
	.comm	_MLX4_STEERING_MODE_DEVICE_MANAGED,8,3 ; @MLX4_STEERING_MODE_DEVICE_MANAGED
	.comm	_MLX4_FS_NUM_MCG,4,2            ; @MLX4_FS_NUM_MCG
	.comm	_enable_4k_uar,8,3              ; @enable_4k_uar
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_DEFAULT_UAR_PAGE_SHIFT,8,3     ; @DEFAULT_UAR_PAGE_SHIFT
	.comm	_MLX4_DEV_CAP_FLAG_MEM_WINDOW,4,2 ; @MLX4_DEV_CAP_FLAG_MEM_WINDOW
	.comm	_MLX4_BMME_FLAG_TYPE_2_WIN,4,2  ; @MLX4_BMME_FLAG_TYPE_2_WIN
	.comm	_INIT_HCA_TPT_MW_ENABLE,8,3     ; @INIT_HCA_TPT_MW_ENABLE
l_.str.3:                               ; @.str.3
	.asciz	"INIT_HCA command failed, aborting\n"

	.comm	_MLX4_DEV_CAP_FLAG2_SYS_EQS,4,2 ; @MLX4_DEV_CAP_FLAG2_SYS_EQS
l_.str.4:                               ; @.str.4
	.asciz	"QUERY_FUNC command failed, aborting.\n"

	.comm	_MLX4_QUERY_FUNC_NUM_SYS_EQS,4,2 ; @MLX4_QUERY_FUNC_NUM_SYS_EQS
	.comm	_MLX4_DEV_CAP_FLAG2_TS,4,2      ; @MLX4_DEV_CAP_FLAG2_TS
l_.str.5:                               ; @.str.5
	.asciz	"QUERY_HCA command failed, disable timestamp\n"

l_.str.6:                               ; @.str.6
	.asciz	"HCA frequency is 0 - timestamping is not supported\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to map internal clock. Timestamping is not supported\n"

	.comm	_MLX4_STEERING_DMFS_A0_NOT_SUPPORTED,8,3 ; @MLX4_STEERING_DMFS_A0_NOT_SUPPORTED
l_.str.8:                               ; @.str.8
	.asciz	"Optimized steering validation failed\n"

	.comm	_MLX4_STEERING_DMFS_A0_DISABLE,8,3 ; @MLX4_STEERING_DMFS_A0_DISABLE
	.comm	_MLX4_QP_REGION_FW,8,3          ; @MLX4_QP_REGION_FW
	.comm	_MLX4_A0_STEERING_TABLE_SIZE,4,2 ; @MLX4_A0_STEERING_TABLE_SIZE
l_.str.9:                               ; @.str.9
	.asciz	"DMFS high rate steer mode is: %s\n"

	.comm	_EPROBE_DEFER,4,2               ; @EPROBE_DEFER
l_.str.10:                              ; @.str.10
	.asciz	"Failed to initialize slave\n"

l_.str.11:                              ; @.str.11
	.asciz	"Failed to obtain slave caps\n"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to map blue flame area\n"

l_.str.13:                              ; @.str.13
	.asciz	"QUERY_ADAPTER command failed, aborting\n"

	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
l_.str.14:                              ; @.str.14
	.asciz	"Failed to query CONFIG_DEV parameters\n"

	.no_dead_strip	_mlx4_init_hca
.subsections_via_symbols
