	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mlx4_init_qp_table
LCPI0_0:
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	4                               ## 0x4
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.long	8                               ## 0x8
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.long	12                              ## 0xc
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.long	16                              ## 0x10
LCPI0_5:
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
	.long	20                              ## 0x14
LCPI0_6:
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
	.long	24                              ## 0x18
LCPI0_7:
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
	.long	28                              ## 0x1c
LCPI0_8:
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.long	32                              ## 0x20
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx4_init_qp_table
	.p2align	4, 0x90
_mlx4_init_qp_table:                    ## @mlx4_init_qp_table
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_mlx4_priv
	movl	4(%rbx), %r12d
	addl	(%rbx), %r12d
	movq	%rax, %rdi
	callq	_spin_lock_init
	leaq	72(%rbx), %rdi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_RADIX_TREE
	movq	%rbx, %rdi
	callq	_mlx4_is_slave
	xorl	%r15d, %r15d
	testq	%rax, %rax
	jne	LBB0_49
## %bb.1:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	_MLX4_QP_REGION_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	movl	%eax, %edx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rcx
	incq	%rax
	cmpl	$3, %edx
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_5:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rsi
	movq	%rsi, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%r8, %rsi
	andq	$-2, %rsi
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	movdqu	32(%rcx,%rdi,8), %xmm4
	movdqu	48(%rcx,%rdi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %r8b
	je	LBB0_11
LBB0_10:
	movdqu	(%rcx,%rdi,8), %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_11:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %ebx
	cmpq	%rax, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx,8), %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_12
LBB0_13:
	cmpl	%r12d, %ebx
	cmovlel	%r12d, %ebx
	leal	1(%rbx), %edi
	callq	_roundup_pow_of_two
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	movl	$8, %esi
	callq	_ALIGN
	movq	%rsp, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, 48(%r15)
	movq	_MLX4_NUM_QP_REGION@GOTPCREL(%rip), %r14
	movl	(%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	movslq	(%r14), %r14
	cmpq	$2, %r14
	jl	LBB0_25
## %bb.14:
	movl	%r14d, %eax
	leaq	-1(%rax), %r8
	movl	$1, %ecx
	cmpq	$8, %r8
	jb	LBB0_24
## %bb.15:
	movq	%r8, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rdi
	movq	%rdi, %rsi
	shrq	$3, %rsi
	incq	%rsi
	movl	%esi, %edx
	andl	$3, %edx
	cmpq	$24, %rdi
	jae	LBB0_17
## %bb.16:
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,3,4]
	xorl	%edi, %edi
	jmp	LBB0_19
LBB0_17:
	andq	$-4, %rsi
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,2,3,4]
	xorl	%edi, %edi
	movdqa	LCPI0_1(%rip), %xmm8            ## xmm8 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm9            ## xmm9 = [8,8,8,8]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [12,12,12,12]
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = [16,16,16,16]
	movdqa	LCPI0_5(%rip), %xmm5            ## xmm5 = [20,20,20,20]
	movdqa	LCPI0_6(%rip), %xmm6            ## xmm6 = [24,24,24,24]
	movdqa	LCPI0_7(%rip), %xmm7            ## xmm7 = [28,28,28,28]
	movdqa	LCPI0_8(%rip), %xmm1            ## xmm1 = [32,32,32,32]
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm2
	paddd	%xmm8, %xmm2
	movdqu	%xmm0, 4(%r13,%rdi,4)
	movdqu	%xmm2, 20(%r13,%rdi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm9, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm10, %xmm3
	movdqu	%xmm2, 36(%r13,%rdi,4)
	movdqu	%xmm3, 52(%r13,%rdi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm4, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm5, %xmm3
	movdqu	%xmm2, 68(%r13,%rdi,4)
	movdqu	%xmm3, 84(%r13,%rdi,4)
	movdqa	%xmm0, %xmm2
	paddd	%xmm6, %xmm2
	movdqa	%xmm0, %xmm3
	paddd	%xmm7, %xmm3
	movdqu	%xmm2, 100(%r13,%rdi,4)
	movdqu	%xmm3, 116(%r13,%rdi,4)
	addq	$32, %rdi
	paddd	%xmm1, %xmm0
	addq	$-4, %rsi
	jne	LBB0_18
LBB0_19:
	testq	%rdx, %rdx
	je	LBB0_22
## %bb.20:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = [4,4,4,4]
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm3
	paddd	%xmm1, %xmm3
	leaq	(,%rdi,4), %rsi
	orq	$4, %rsi
	movdqu	%xmm0, (%r13,%rsi)
	movdqu	%xmm3, 16(%r13,%rsi)
	addq	$8, %rdi
	paddd	%xmm2, %xmm0
	decq	%rdx
	jne	LBB0_21
LBB0_22:
	cmpq	%rcx, %r8
	je	LBB0_25
## %bb.23:
	orq	$1, %rcx
	.p2align	4, 0x90
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, (%r13,%rcx,4)
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_24
LBB0_25:
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	movl	16(%r15), %r12d
	movq	_MLX4_QP_REGION_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r14d
	jle	LBB0_34
## %bb.26:
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_27 Depth=1
	movq	_MLX4_QP_REGION_BOTTOM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_32:                                ##   in Loop: Header=BB0_27 Depth=1
	decq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jle	LBB0_33
LBB0_27:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_28 Depth 2
	leal	2(%rax), %ecx
	movslq	%ecx, %rbx
	cmpq	%rbx, %r14
	jg	LBB0_28
	jmp	LBB0_32
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_28 Depth=2
	incq	%rbx
	cmpq	%r14, %rbx
	jge	LBB0_31
LBB0_28:                                ##   Parent Loop BB0_27 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	8(%r15), %rax
	movslq	(%r13,%rbx,4), %rdi
	movq	(%rax,%rdi,8), %rcx
	movslq	-4(%r13,%rbx,4), %rsi
	cmpq	(%rax,%rsi,8), %rcx
	jle	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_28 Depth=2
                                        ## kill: def $edi killed $edi killed $rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_swap
	jmp	LBB0_30
LBB0_33:
	movq	_MLX4_NUM_QP_REGION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
LBB0_34:
	incl	%eax
	xorl	%r15d, %r15d
	cmpl	%r14d, %eax
	movq	_MLX4_NUM_QP_REGION@GOTPCREL(%rip), %r8
	jge	LBB0_37
## %bb.35:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	8(%rdx), %rcx
	movq	24(%rdx), %rdx
	cltq
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r13,%rax,4), %rsi
	movl	(%rcx,%rsi,8), %edi
	subl	%edi, %r12d
	movl	%r12d, (%rdx,%rsi,4)
	addl	%edi, %r15d
	incq	%rax
	movslq	(%r8), %rsi
	cmpq	%rsi, %rax
	jl	LBB0_36
LBB0_37:
	movq	-80(%rbp), %rsp                 ## 8-byte Reload
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_mlx4_num_reserved_sqps
	addl	%eax, %r15d
	cmpl	16(%r12), %r15d
	jle	LBB0_39
## %bb.38:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	callq	_mlx4_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_49
LBB0_39:
	movq	%r12, %rdi
	movl	%eax, %esi
	movl	%eax, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	movl	-64(%rbp), %r9d                 ## 4-byte Reload
	callq	_mlx4_create_zones
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_49
## %bb.40:
	movq	%r12, %rdi
	callq	_mlx4_is_mfunc
	testq	%rax, %rax
	je	LBB0_45
## %bb.41:
	movq	48(%r12), %rax
	leaq	8(%rax), %rcx
	movq	%rcx, 56(%r12)
	movq	_MLX4_MFUNC_MAX@GOTPCREL(%rip), %r14
	movslq	(%r14), %rcx
	leaq	8(%rax,%rcx,8), %rax
	movq	%rax, 64(%r12)
	movl	32(%r12), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$32, %esi
	callq	_kcalloc
	movq	%rax, 40(%r12)
	testq	%rax, %rax
	je	LBB0_51
## %bb.42:
	cmpl	$0, 32(%r12)
	jle	LBB0_45
## %bb.43:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_44:                                ## =>This Inner Loop Header: Depth=1
	movq	56(%r12), %rbx
	movq	%r12, %rdi
	callq	_mlx4_master_func_num
	shll	$3, %eax
	cltq
	addq	%rbx, %rax
	leaq	(%rax,%r13), %rcx
	movq	40(%r12), %rdx
	movq	%rcx, 16(%rdx,%r15)
	movslq	(%r14), %rcx
	leaq	(%rax,%rcx,8), %rax
	addq	%r13, %rax
	movq	%rax, 24(%rdx,%r15)
	movq	56(%r12), %rbx
	movq	%r12, %rdi
	callq	_mlx4_master_func_num
	shll	$3, %eax
	cltq
	movq	_MLX4_MAX_PORTS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rbx
	addq	%rax, %rbx
	leaq	(%rbx,%r13), %rax
	movq	40(%r12), %rcx
	movq	%rax, (%rcx,%r15)
	movslq	(%r14), %rax
	leaq	(%rbx,%rax,8), %rax
	addq	%r13, %rax
	movq	%rax, 8(%rcx,%r15)
	incq	%r13
	movslq	32(%r12), %rax
	addq	$32, %r15
	cmpq	%rax, %r13
	jl	LBB0_44
LBB0_45:
	movq	48(%r12), %rsi
	movq	%r12, %rdi
	callq	_mlx4_CONF_SPECIAL_QP
	testl	%eax, %eax
	je	LBB0_46
## %bb.47:
	movl	%eax, %r15d
	movq	40(%r12), %rdi
	jmp	LBB0_48
LBB0_6:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	testb	$1, %r8b
	jne	LBB0_10
	jmp	LBB0_11
LBB0_46:
	xorl	%r15d, %r15d
	jmp	LBB0_49
LBB0_51:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_48:
	callq	_kfree
	movq	$0, 40(%r12)
	movq	%r12, %rdi
	callq	_mlx4_cleanup_qp_zones
LBB0_49:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_52
## %bb.50:
	movl	%r15d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_52:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_MLX4_QP_REGION_BOTTOM,4,2      ## @MLX4_QP_REGION_BOTTOM
	.comm	_MLX4_NUM_QP_REGION,4,2         ## @MLX4_NUM_QP_REGION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Number of reserved QPs is higher than number of QPs\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_MLX4_MFUNC_MAX,4,2             ## @MLX4_MFUNC_MAX
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MLX4_MAX_PORTS,8,3             ## @MLX4_MAX_PORTS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function mlx4_init_qp_table
lCPI0_0:
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mlx4_init_qp_table
	.p2align	2
_mlx4_init_qp_table:                    ; @mlx4_init_qp_table
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	bl	_mlx4_priv
	ldp	w20, w21, [x19]
	bl	_spin_lock_init
	add	x0, x19, #72
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_INIT_RADIX_TREE
	mov	x0, x19
	bl	_mlx4_is_slave
	cbz	x0, LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_43
LBB0_2:
	add	w20, w21, w20
Lloh6:
	adrp	x23, _MLX4_QP_REGION_BOTTOM@GOTPAGE
Lloh7:
	ldr	x23, [x23, _MLX4_QP_REGION_BOTTOM@GOTPAGEOFF]
	ldr	w10, [x23]
	tbnz	w10, #31, LBB0_5
; %bb.3:
	ldr	x9, [x19, #8]
	add	x8, x10, #1
	cmp	w10, #7
	b.hs	LBB0_6
; %bb.4:
	mov	x10, #0
	mov	w11, #0
	b	LBB0_9
LBB0_5:
	mov	w11, #0
	b	LBB0_11
LBB0_6:
	and	x10, x8, #0xfffffff8
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w11, s0
	cmp	x10, x8
	b.eq	LBB0_11
LBB0_9:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9], #8
	add	w11, w11, w10
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	cmp	w11, w20
	csel	w21, w11, w20, gt
	add	w0, w21, #1
	bl	_roundup_pow_of_two
	mov	x22, x0
	mov	w1, #8
	bl	_ALIGN
	mov	x1, sp
	str	x0, [x19, #48]
Lloh8:
	adrp	x25, _MLX4_NUM_QP_REGION@GOTPAGE
Lloh9:
	ldr	x25, [x25, _MLX4_NUM_QP_REGION@GOTPAGEOFF]
	ldr	w8, [x25]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh10:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh11:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x26, x9, x8
	mov	sp, x26
	ldr	w8, [x25]
	cmp	w8, #2
	b.lt	LBB0_18
; %bb.12:
	sub	x10, x8, #1
	cmp	x10, #16
	b.hs	LBB0_14
; %bb.13:
	mov	w9, #1
	b	LBB0_17
LBB0_14:
	and	x11, x10, #0xfffffffffffffff0
	orr	x9, x11, #0x1
Lloh12:
	adrp	x12, lCPI0_0@PAGE
Lloh13:
	ldr	q0, [x12, lCPI0_0@PAGEOFF]
	add	x12, x26, #36
	movi.4s	v1, #4
	movi.4s	v2, #8
	movi.4s	v3, #12
	movi.4s	v4, #16
	mov	x13, x11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v5, v0, v1
	add.4s	v6, v0, v2
	add.4s	v7, v0, v3
	stp	q0, q5, [x12, #-32]
	stp	q6, q7, [x12], #64
	add.4s	v0, v0, v4
	subs	x13, x13, #16
	b.ne	LBB0_15
; %bb.16:
	cmp	x10, x11
	b.eq	LBB0_18
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [x26, x9, lsl #2]
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_17
LBB0_18:
	ldr	w27, [x19, #16]
	ldr	w9, [x23]
	cmp	w8, w9
	b.le	LBB0_27
; %bb.19:
	stur	w22, [x29, #-92]                ; 4-byte Folded Spill
	mov	x22, x21
	mov	x21, x20
	mov	x20, x1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x28, w8
	b	LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_22 Depth=1
	ldr	w9, [x23]
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	sub	x28, x28, #1
	cmp	x28, w9, sxtw
	b.le	LBB0_26
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	add	w8, w9, #2
	sxtw	x24, w8
	cmp	x28, x24
	b.gt	LBB0_24
	b	LBB0_21
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x24, x24, #1
	cmp	x24, x28
	b.ge	LBB0_20
LBB0_24:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #8]
	add	x9, x26, x24, lsl #2
	ldpsw	x1, x0, [x9, #-4]
	ldr	x10, [x8, x0, lsl #3]
	ldr	x8, [x8, x1, lsl #3]
	cmp	x10, x8
	b.le	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
                                        ; kill: def $w0 killed $w0 killed $x0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_swap
	b	LBB0_23
LBB0_26:
	ldr	w8, [x25]
	mov	x1, x20
	mov	x20, x21
	mov	x21, x22
	ldur	w22, [x29, #-92]                ; 4-byte Folded Reload
LBB0_27:
	add	w10, w9, #1
	cmp	w10, w8
	b.ge	LBB0_30
; %bb.28:
	mov	w23, #0
	ldr	x8, [x19, #8]
	ldr	x9, [x19, #24]
	sxtw	x10, w10
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x11, [x26, x10, lsl #2]
	ldr	x12, [x8, x11, lsl #3]
	sub	w27, w27, w12
	str	w27, [x9, x11, lsl #2]
	add	w23, w23, w12
	add	x10, x10, #1
	ldrsw	x11, [x25]
	cmp	x10, x11
	b.lt	LBB0_29
	b	LBB0_31
LBB0_30:
	mov	w23, #0
LBB0_31:
	mov	sp, x1
	mov	x0, x19
	bl	_mlx4_num_reserved_sqps
	ldr	w8, [x19, #16]
	add	w9, w0, w23
	cmp	w9, w8
	b.le	LBB0_33
; %bb.32:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_mlx4_err
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_43
LBB0_33:
	mov	x1, x0
	mov	x0, x19
	mov	x2, x1
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_mlx4_create_zones
	mov	x20, x0
	cbnz	w0, LBB0_43
; %bb.34:
	mov	x0, x19
	bl	_mlx4_is_mfunc
	cbz	x0, LBB0_39
; %bb.35:
	ldr	x8, [x19, #48]
	add	x8, x8, #8
Lloh19:
	adrp	x20, _MLX4_MFUNC_MAX@GOTPAGE
Lloh20:
	ldr	x20, [x20, _MLX4_MFUNC_MAX@GOTPAGEOFF]
	ldrsw	x9, [x20]
	add	x9, x8, x9, lsl #3
	stp	x8, x9, [x19, #56]
	ldr	w0, [x19, #32]
Lloh21:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	w1, #32
	bl	_kcalloc
	str	x0, [x19, #40]
	cbz	x0, LBB0_41
; %bb.36:
	ldr	w8, [x19, #32]
	cmp	w8, #1
	b.lt	LBB0_39
; %bb.37:
	mov	x21, #0
	mov	x22, #0
Lloh24:
	adrp	x23, _MLX4_MAX_PORTS@GOTPAGE
Lloh25:
	ldr	x23, [x23, _MLX4_MAX_PORTS@GOTPAGEOFF]
LBB0_38:                                ; =>This Inner Loop Header: Depth=1
	ldr	x24, [x19, #56]
	mov	x0, x19
	bl	_mlx4_master_func_num
	lsl	w8, w0, #3
	add	x8, x24, w8, sxtw
	add	x9, x22, x8
	ldr	x10, [x19, #40]
	add	x10, x10, x21
	ldrsw	x11, [x20]
	add	x8, x8, x11, lsl #3
	add	x8, x22, x8
	stp	x9, x8, [x10, #16]
	ldr	x24, [x19, #56]
	mov	x0, x19
	bl	_mlx4_master_func_num
	lsl	w8, w0, #3
	ldr	x9, [x23]
	add	x9, x24, x9
	add	x8, x9, w8, sxtw
	add	x9, x22, x8
	ldrsw	x10, [x20]
	add	x8, x8, x10, lsl #3
	ldr	x10, [x19, #40]
	add	x10, x10, x21
	add	x8, x22, x8
	stp	x9, x8, [x10]
	add	x22, x22, #1
	ldrsw	x8, [x19, #32]
	add	x21, x21, #32
	cmp	x22, x8
	b.lt	LBB0_38
LBB0_39:
	ldr	x1, [x19, #48]
	mov	x0, x19
	bl	_mlx4_CONF_SPECIAL_QP
	mov	x20, x0
	cbz	w0, LBB0_43
; %bb.40:
	ldr	x0, [x19, #40]
	b	LBB0_42
LBB0_41:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_42:
	bl	_kfree
	str	xzr, [x19, #40]
	mov	x0, x19
	bl	_mlx4_cleanup_qp_zones
LBB0_43:
	ldur	x8, [x29, #-88]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_45
; %bb.44:
	mov	x0, x20
	sub	sp, x29, #80
	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
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_45:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_MLX4_QP_REGION_BOTTOM,4,2      ; @MLX4_QP_REGION_BOTTOM
	.comm	_MLX4_NUM_QP_REGION,4,2         ; @MLX4_NUM_QP_REGION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Number of reserved QPs is higher than number of QPs\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_MLX4_MFUNC_MAX,4,2             ; @MLX4_MFUNC_MAX
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MLX4_MAX_PORTS,8,3             ; @MLX4_MAX_PORTS
.subsections_via_symbols
