	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_init_icm
_mlx4_init_icm:                         ## @mlx4_init_icm
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %rbx
	callq	_mlx4_priv
	movq	%rax, %r12
	leaq	-104(%rbp), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_mlx4_SET_ICM_SIZE
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_err
	jmp	LBB0_40
LBB0_2:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	shrq	$10, %r14
	movq	-104(%rbp), %rcx
	shlq	$2, %rcx
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_mlx4_dbg
	movq	-104(%rbp), %rsi
	movq	_GFP_HIGHUSER@GOTPCREL(%rip), %rax
	movq	___GFP_NOWARN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	xorl	%ebx, %ebx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_mlx4_alloc_icm
	movl	%eax, (%r12)
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_mlx4_MAP_ICM_AUX
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_39
LBB0_3:
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_40
LBB0_6:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	40(%r14), %esi
	movq	%r13, %rdi
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movl	32(%r13), %edx
	callq	_mlx4_init_cmpt_table
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rsi
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_38
LBB0_8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	56(%rax), %r8d
	leaq	48(%r12), %r15
	movl	36(%r14), %edx
	movl	(%r13), %ecx
	movq	%rax, %r13
	movq	%rax, %rdi
	movq	%r15, %rsi
	movl	%r8d, %r9d
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	leaq	L_.str.5(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_37
LBB0_10:
	movl	4(%r13), %ebx
	imull	(%r13), %ebx
	xorl	%eax, %eax
	callq	_dma_get_cache_alignment
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_ALIGN
	movl	4(%r13), %ecx
	movl	8(%r13), %r8d
	cltd
	idivl	%ecx
	movl	%eax, (%r13)
	movq	%r14, %rdx
	leaq	52(%r12), %r14
	movl	32(%rdx), %edx
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %r9d
	pushq	$0
	pushq	$1
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_12
## %bb.11:
	movl	%eax, %ebx
	leaq	L_.str.6(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_36
LBB0_12:
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	56(%r12), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %ecx
	movl	12(%r13), %r8d
	movl	16(%r13), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	pushq	$1
	pushq	$1
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:
	movl	%eax, %ebx
	leaq	L_.str.7(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_35
LBB0_14:
	movq	%r14, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -88(%rbp)                 ## 8-byte Spill
	leaq	12(%r12), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	24(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ecx
	movl	20(%r13), %r8d
	movq	24(%r13), %rax
	movq	_MLX4_QP_REGION_FW@GOTPCREL(%rip), %r15
	movq	(%r15), %rsi
	movl	(%rax,%rsi,4), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_16
## %bb.15:
	movl	%eax, %ebx
	leaq	L_.str.8(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_34
LBB0_16:
	movq	%r14, -128(%rbp)                ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	20(%rax), %edx
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %ecx
	movl	20(%r13), %r8d
	movq	24(%r13), %rax
	movq	(%r15), %rsi
	movl	(%rax,%rsi,4), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %ebx
	leaq	L_.str.9(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_33
LBB0_18:
	movq	%r14, -120(%rbp)                ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	20(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %edx
	movl	16(%r12), %ecx
	movl	20(%r13), %r8d
	movq	24(%r13), %rax
	movq	(%r15), %rdi
	movl	(%rax,%rdi,4), %r9d
	movq	%r13, %rdi
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %ebx
	leaq	L_.str.10(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_32
LBB0_20:
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	24(%rcx), %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %edx
	movl	20(%r12), %eax
	movb	4(%rcx), %cl
	shll	%cl, %eax
	movl	20(%r13), %r8d
	movq	24(%r13), %rcx
	movq	(%r15), %rsi
	movl	(%rcx,%rsi,4), %r9d
	movq	%r13, %rdi
	movq	%r14, %rsi
	movl	%eax, %ecx
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %ebx
	leaq	L_.str.11(%rip), %rsi
	movq	%r13, %rdi
	callq	_mlx4_err
	jmp	LBB0_31
LBB0_22:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	40(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	movl	24(%r12), %ecx
	movl	32(%r13), %r8d
	movl	36(%r13), %r9d
	movq	%r13, %rdi
	movq	%rsi, %r13
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_24
## %bb.23:
	movl	%eax, %ebx
	leaq	L_.str.12(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_err
	jmp	LBB0_30
LBB0_24:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	32(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax), %edx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	28(%rax), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	40(%rdi), %r8d
	movl	44(%rdi), %r9d
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %ebx
	leaq	L_.str.13(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mlx4_err
	jmp	LBB0_29
LBB0_26:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	60(%rax), %r12
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r15d
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_mlx4_get_mgm_entry_size
	movl	52(%rbx), %r8d
	addl	48(%rbx), %r8d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	movl	%eax, %ecx
	movl	%r8d, %r9d
	pushq	$0
	pushq	$0
	callq	_mlx4_init_icm_table
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_27
## %bb.28:
	movl	%eax, %ebx
	leaq	L_.str.14(%rip), %rsi
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdi
	callq	_mlx4_err
	movq	%r15, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_mlx4_cleanup_icm_table
LBB0_29:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_mlx4_cleanup_icm_table
LBB0_30:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx4_cleanup_icm_table
LBB0_31:
	movq	%r13, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_cleanup_icm_table
LBB0_32:
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movq	%r13, %rdi
	movq	-120(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_cleanup_icm_table
	movq	-64(%rbp), %r12                 ## 8-byte Reload
LBB0_33:
	movq	%r13, %rdi
	movq	-128(%rbp), %rsi                ## 8-byte Reload
	callq	_mlx4_cleanup_icm_table
LBB0_34:
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
LBB0_35:
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	_mlx4_cleanup_icm_table
LBB0_36:
	movq	%r15, %rsi
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
LBB0_37:
	leaq	44(%r12), %rsi
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
	leaq	36(%r12), %rsi
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
	leaq	28(%r12), %rsi
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
	movq	%r12, %rsi
	addq	$8, %rsi
	movq	%r13, %rdi
	callq	_mlx4_cleanup_icm_table
LBB0_38:
	movq	%r13, %rdi
	callq	_mlx4_UNMAP_ICM_AUX
LBB0_39:
	movl	(%r12), %esi
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_mlx4_free_icm
LBB0_40:
	movl	%ebx, %eax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_27:
	xorl	%ebx, %ebx
	jmp	LBB0_40
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SET_ICM_SIZE command failed, aborting\n"

L_.str.1:                               ## @.str.1
	.asciz	"%lld KB of HCA context requires %lld KB aux memory\n"

	.comm	_GFP_HIGHUSER,4,2               ## @GFP_HIGHUSER
	.comm	___GFP_NOWARN,4,2               ## @__GFP_NOWARN
L_.str.2:                               ## @.str.2
	.asciz	"Couldn't allocate aux memory, aborting\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.3:                               ## @.str.3
	.asciz	"MAP_ICM_AUX command failed, aborting\n"

L_.str.4:                               ## @.str.4
	.asciz	"Failed to map cMPT context memory, aborting\n"

L_.str.5:                               ## @.str.5
	.asciz	"Failed to map EQ context memory, aborting\n"

L_.str.6:                               ## @.str.6
	.asciz	"Failed to map MTT context memory, aborting\n"

L_.str.7:                               ## @.str.7
	.asciz	"Failed to map dMPT context memory, aborting\n"

	.comm	_MLX4_QP_REGION_FW,8,3          ## @MLX4_QP_REGION_FW
L_.str.8:                               ## @.str.8
	.asciz	"Failed to map QP context memory, aborting\n"

L_.str.9:                               ## @.str.9
	.asciz	"Failed to map AUXC context memory, aborting\n"

L_.str.10:                              ## @.str.10
	.asciz	"Failed to map ALTC context memory, aborting\n"

L_.str.11:                              ## @.str.11
	.asciz	"Failed to map RDMARC context memory, aborting\n"

L_.str.12:                              ## @.str.12
	.asciz	"Failed to map CQ context memory, aborting\n"

L_.str.13:                              ## @.str.13
	.asciz	"Failed to map SRQ context memory, aborting\n"

L_.str.14:                              ## @.str.14
	.asciz	"Failed to map MCG context memory, aborting\n"

	.no_dead_strip	_mlx4_init_icm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_init_icm
_mlx4_init_icm:                         ; @mlx4_init_icm
	.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	x21, x3
	mov	x25, x2
	mov	x27, x1
	mov	x19, x0
	bl	_mlx4_priv
	mov	x20, x0
	add	x2, sp, #24
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_SET_ICM_SIZE
	cbz	w0, LBB0_2
; %bb.1:
	mov	x24, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_39
LBB0_2:
	lsr	x2, x21, #10
	ldr	x8, [sp, #24]
	lsl	x3, x8, #2
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_mlx4_dbg
Lloh4:
	adrp	x8, _GFP_HIGHUSER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _GFP_HIGHUSER@GOTPAGEOFF]
	ldr	x1, [sp, #24]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, ___GFP_NOWARN@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___GFP_NOWARN@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	mov	w3, #0
	bl	_mlx4_alloc_icm
	str	w0, [x20]
	cbz	w0, LBB0_5
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_mlx4_MAP_ICM_AUX
	cbz	w0, LBB0_6
; %bb.4:
	mov	x24, x0
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_38
LBB0_5:
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	w24, w8
	b	LBB0_39
LBB0_6:
	ldr	w1, [x25, #40]
	ldr	w2, [x27, #32]
	mov	x0, x19
	bl	_mlx4_init_cmpt_table
	cbz	w0, LBB0_8
; %bb.7:
	mov	x24, x0
Lloh17:
	adrp	x1, l_.str.4@PAGE
Lloh18:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_37
LBB0_8:
	ldr	w4, [x19, #56]
	add	x21, x20, #48
	ldr	w2, [x25, #36]
	ldr	w3, [x27]
	mov	x0, x19
	mov	x1, x21
	mov	x5, x4
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_10
; %bb.9:
	mov	x24, x0
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_36
LBB0_10:
	ldp	w8, w9, [x19]
	mul	w22, w9, w8
	bl	_dma_get_cache_alignment
	mov	x1, x0
	mov	x0, x22
	bl	_ALIGN
	ldp	w3, w4, [x19, #4]
	sdiv	w5, w0, w3
	str	w5, [x19]
	add	x22, x20, #52
	ldr	w2, [x25, #32]
	mov	x0, x19
	mov	x1, x22
	mov	w6, #1
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_12
; %bb.11:
	mov	x24, x0
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_35
LBB0_12:
	add	x23, x20, #56
	ldr	w2, [x25, #28]
	ldr	w3, [x27, #4]
	ldp	w4, w5, [x19, #12]
	mov	x0, x19
	mov	x1, x23
	mov	w6, #1
	mov	w7, #1
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_14
; %bb.13:
	mov	x24, x0
Lloh23:
	adrp	x1, l_.str.7@PAGE
Lloh24:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_34
LBB0_14:
	add	x26, x20, #12
	ldr	w2, [x25, #24]
	ldr	w3, [x27, #8]
	ldr	w4, [x19, #20]
	ldr	x8, [x19, #24]
Lloh25:
	adrp	x28, _MLX4_QP_REGION_FW@GOTPAGE
Lloh26:
	ldr	x28, [x28, _MLX4_QP_REGION_FW@GOTPAGEOFF]
	ldr	x9, [x28]
	ldr	w5, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x26
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_16
; %bb.15:
	mov	x24, x0
Lloh27:
	adrp	x1, l_.str.8@PAGE
Lloh28:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_33
LBB0_16:
	str	x26, [sp, #16]                  ; 8-byte Folded Spill
	add	x26, x20, #16
	ldr	w2, [x25, #20]
	ldr	w3, [x27, #12]
	ldr	w4, [x19, #20]
	ldr	x8, [x19, #24]
	ldr	x9, [x28]
	ldr	w5, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x26
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_18
; %bb.17:
	mov	x24, x0
Lloh29:
	adrp	x1, l_.str.9@PAGE
Lloh30:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	b	LBB0_32
LBB0_18:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	add	x26, x20, #20
	ldr	w2, [x25, #16]
	ldr	w3, [x27, #16]
	ldr	w4, [x19, #20]
	ldr	x8, [x19, #24]
	ldr	x9, [x28]
	ldr	w5, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x1, x26
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_20
; %bb.19:
	mov	x24, x0
Lloh31:
	adrp	x1, l_.str.10@PAGE
Lloh32:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_31
LBB0_20:
	add	x1, x20, #24
	ldr	w2, [x25, #12]
	ldr	w8, [x27, #20]
	ldr	w9, [x20, #4]
	lsl	w3, w8, w9
	ldr	w4, [x19, #20]
	ldr	x8, [x19, #24]
	ldr	x9, [x28]
	ldr	w5, [x8, x9, lsl #2]
	mov	x0, x19
	mov	x28, x1
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_22
; %bb.21:
	mov	x24, x0
Lloh33:
	adrp	x1, l_.str.11@PAGE
Lloh34:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_30
LBB0_22:
	add	x1, x20, #40
	ldr	w2, [x25, #8]
	ldr	w3, [x27, #24]
	ldp	w4, w5, [x19, #32]
	mov	x0, x19
	str	x1, [sp]                        ; 8-byte Folded Spill
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_24
; %bb.23:
	mov	x24, x0
Lloh35:
	adrp	x1, l_.str.12@PAGE
Lloh36:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_29
LBB0_24:
	add	x1, x20, #32
	ldr	w2, [x25, #4]
	ldr	w3, [x27, #28]
	ldp	w4, w5, [x19, #40]
	mov	x0, x19
	mov	x27, x1
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	cbz	w0, LBB0_26
; %bb.25:
	mov	x24, x0
Lloh37:
	adrp	x1, l_.str.13@PAGE
Lloh38:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	b	LBB0_28
LBB0_26:
	add	x24, x20, #60
	ldr	w25, [x25]
	mov	x0, x19
	bl	_mlx4_get_mgm_entry_size
	mov	x3, x0
	ldp	w8, w9, [x19, #48]
	add	w4, w9, w8
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	x5, x4
	mov	w6, #0
	mov	w7, #0
	bl	_mlx4_init_icm_table
	mov	x24, x0
	cbz	w0, LBB0_39
; %bb.27:
Lloh39:
	adrp	x1, l_.str.14@PAGE
Lloh40:
	add	x1, x1, l_.str.14@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
	mov	x0, x19
	mov	x1, x27
	bl	_mlx4_cleanup_icm_table
LBB0_28:
	mov	x0, x19
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_mlx4_cleanup_icm_table
LBB0_29:
	mov	x0, x19
	mov	x1, x28
	bl	_mlx4_cleanup_icm_table
LBB0_30:
	mov	x0, x19
	mov	x1, x26
	bl	_mlx4_cleanup_icm_table
LBB0_31:
	ldp	x1, x25, [sp, #8]               ; 16-byte Folded Reload
	mov	x0, x19
	bl	_mlx4_cleanup_icm_table
LBB0_32:
	mov	x0, x19
	mov	x1, x25
	bl	_mlx4_cleanup_icm_table
LBB0_33:
	mov	x0, x19
	mov	x1, x23
	bl	_mlx4_cleanup_icm_table
LBB0_34:
	mov	x0, x19
	mov	x1, x22
	bl	_mlx4_cleanup_icm_table
LBB0_35:
	mov	x0, x19
	mov	x1, x21
	bl	_mlx4_cleanup_icm_table
LBB0_36:
	add	x1, x20, #44
	mov	x0, x19
	bl	_mlx4_cleanup_icm_table
	add	x1, x20, #36
	mov	x0, x19
	bl	_mlx4_cleanup_icm_table
	add	x1, x20, #28
	mov	x0, x19
	bl	_mlx4_cleanup_icm_table
	add	x1, x20, #8
	mov	x0, x19
	bl	_mlx4_cleanup_icm_table
LBB0_37:
	mov	x0, x19
	bl	_mlx4_UNMAP_ICM_AUX
LBB0_38:
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #0
	bl	_mlx4_free_icm
LBB0_39:
	mov	x0, x24
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.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 AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SET_ICM_SIZE command failed, aborting\n"

l_.str.1:                               ; @.str.1
	.asciz	"%lld KB of HCA context requires %lld KB aux memory\n"

	.comm	_GFP_HIGHUSER,4,2               ; @GFP_HIGHUSER
	.comm	___GFP_NOWARN,4,2               ; @__GFP_NOWARN
l_.str.2:                               ; @.str.2
	.asciz	"Couldn't allocate aux memory, aborting\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.3:                               ; @.str.3
	.asciz	"MAP_ICM_AUX command failed, aborting\n"

l_.str.4:                               ; @.str.4
	.asciz	"Failed to map cMPT context memory, aborting\n"

l_.str.5:                               ; @.str.5
	.asciz	"Failed to map EQ context memory, aborting\n"

l_.str.6:                               ; @.str.6
	.asciz	"Failed to map MTT context memory, aborting\n"

l_.str.7:                               ; @.str.7
	.asciz	"Failed to map dMPT context memory, aborting\n"

	.comm	_MLX4_QP_REGION_FW,8,3          ; @MLX4_QP_REGION_FW
l_.str.8:                               ; @.str.8
	.asciz	"Failed to map QP context memory, aborting\n"

l_.str.9:                               ; @.str.9
	.asciz	"Failed to map AUXC context memory, aborting\n"

l_.str.10:                              ; @.str.10
	.asciz	"Failed to map ALTC context memory, aborting\n"

l_.str.11:                              ; @.str.11
	.asciz	"Failed to map RDMARC context memory, aborting\n"

l_.str.12:                              ; @.str.12
	.asciz	"Failed to map CQ context memory, aborting\n"

l_.str.13:                              ; @.str.13
	.asciz	"Failed to map SRQ context memory, aborting\n"

l_.str.14:                              ; @.str.14
	.asciz	"Failed to map MCG context memory, aborting\n"

	.no_dead_strip	_mlx4_init_icm
.subsections_via_symbols
