	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function mthca_buf_alloc
LCPI0_0:
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	3                               ## 0x3
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
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mthca_buf_alloc
	.p2align	4, 0x90
_mthca_buf_alloc:                       ## @mthca_buf_alloc
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r15
	movl	%esi, %r12d
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	cmpl	%edx, %esi
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	jle	LBB0_15
## %bb.1:
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movl	$0, (%r8)
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leal	(%r12,%rcx), %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%ebx, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_19
## %bb.2:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	(%r14), %edx
	movl	%ebx, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_20
## %bb.3:
	testl	%ebx, %ebx
	jle	LBB0_35
## %bb.4:
	movq	%rbx, %rcx
	movl	%ecx, %ebx
	movq	$0, (%rax)
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	cmpl	$1, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	je	LBB0_11
## %bb.5:
	leaq	-1(%rbx), %rdx
	leaq	-2(%rbx), %rsi
	movl	%edx, %eax
	andl	$3, %eax
	movl	$1, %ecx
	cmpq	$3, %rsi
	jb	LBB0_9
## %bb.6:
	andq	$-4, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	movq	$0, 8(%rsi,%rcx,8)
	movq	(%r14), %rsi
	movq	$0, 16(%rsi,%rcx,8)
	movq	(%r14), %rsi
	movq	$0, 24(%rsi,%rcx,8)
	movq	(%r14), %rsi
	movq	$0, 32(%rsi,%rcx,8)
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_7
## %bb.8:
	incq	%rcx
LBB0_9:
	testq	%rax, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdx
	movq	$0, (%rdx,%rcx,8)
	incq	%rcx
	decq	%rax
	jne	LBB0_10
LBB0_11:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r8, %r12
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	callq	_dma_alloc_coherent
	movq	(%r14), %rcx
	movq	%rax, (%rcx,%r15)
	movq	(%r14), %rax
	cmpq	$0, (%rax,%r15)
	je	LBB0_42
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movl	-48(%rbp), %eax
	movl	%eax, (%r12)
	movq	(%r14), %rdi
	addq	%r15, %rdi
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	callq	_dma_unmap_addr_set
	movq	(%r14), %rax
	movq	(%rax,%r15), %rdi
	callq	_clear_page
	addq	$8, %r15
	addq	$4, %r12
	decq	%rbx
	jne	LBB0_12
## %bb.14:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_37
LBB0_15:
	movq	%rdi, %rbx
	movl	$1, (%r8)
	movl	%r12d, %edi
	callq	_get_order
	movl	%eax, %r14d
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	(%rbx), %rdi
	movq	%r12, %rsi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	leaq	-48(%rbp), %rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_dma_alloc_coherent
	movq	%rax, (%r15)
	testq	%rax, %rax
	je	LBB0_19
## %bb.16:
	addl	%r14d, %r13d
	movq	_mapping@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-48(%rbp), %edx
	movq	%r15, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdi
	callq	_dma_unmap_addr_set
	movl	$-1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	movl	-48(%rbp), %eax
	notl	%edx
	movl	$1, %r15d
	testl	%edx, %eax
	je	LBB0_21
## %bb.17:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	decl	%r13d
	movl	$-1, %edx
	movl	%r13d, %ecx
	shll	%cl, %edx
	addl	%r15d, %r15d
	notl	%edx
	testl	%edx, %eax
	jne	LBB0_18
	jmp	LBB0_22
LBB0_19:
	xorl	%ebx, %ebx
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_46
LBB0_20:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_45
LBB0_21:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_22:
	movl	(%r12), %edx
	movl	%r15d, %edi
	movl	$4, %esi
	callq	_kmalloc_array
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_34
## %bb.23:
	movq	%rax, %rdx
	testl	%r15d, %r15d
	je	LBB0_36
## %bb.24:
	movl	%r15d, %r9d
	cmpl	$8, %r15d
	jb	LBB0_27
## %bb.25:
	leaq	-44(%rbp), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_47
## %bb.26:
	leaq	(%rdx,%r9,4), %rcx
	leaq	-48(%rbp), %rax
	cmpq	%rax, %rcx
	jbe	LBB0_47
LBB0_27:
	xorl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
LBB0_28:
	movq	%rax, %rsi
	notq	%rsi
	addq	%r9, %rsi
	movq	%r9, %rdi
	andq	$3, %rdi
	je	LBB0_30
	.p2align	4, 0x90
LBB0_29:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	addl	-48(%rbp), %ebx
	movl	%ebx, (%rdx,%rax,4)
	incq	%rax
	decq	%rdi
	jne	LBB0_29
LBB0_30:
	cmpq	$3, %rsi
	jb	LBB0_31
	.p2align	4, 0x90
LBB0_32:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %esi
	movl	%r13d, %ecx
	shll	%cl, %esi
	addl	-48(%rbp), %esi
	leal	1(%rax), %edi
	shll	%cl, %edi
	movl	%esi, (%rdx,%rax,4)
	addl	-48(%rbp), %edi
	leal	2(%rax), %esi
	shll	%cl, %esi
	movl	%edi, 4(%rdx,%rax,4)
	addl	-48(%rbp), %esi
	leal	3(%rax), %edi
	shll	%cl, %edi
	movl	%esi, 8(%rdx,%rax,4)
	addl	-48(%rbp), %edi
	movl	%edi, 12(%rdx,%rax,4)
	addq	$4, %rax
	cmpq	%r9, %rax
	jne	LBB0_32
	jmp	LBB0_31
LBB0_34:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_43
LBB0_35:
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_36:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	jmp	LBB0_37
LBB0_42:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-88(%rbp), %r14                 ## 8-byte Reload
LBB0_43:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_44
LBB0_47:
	movl	%r9d, %eax
	andl	$-8, %eax
	pshufd	$0, -48(%rbp), %xmm0            ## xmm0 = mem[0,0,0,0]
	movd	%r13d, %xmm3
	leaq	(,%r9,4), %rcx
	andq	$-32, %rcx
	movdqa	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,1,2,3]
	xorl	%esi, %esi
	movdqa	LCPI0_1(%rip), %xmm2            ## xmm2 = [4,4,4,4]
	pmovzxdq	%xmm3, %xmm3                    ## xmm3 = xmm3[0],zero,xmm3[1],zero
	movdqa	LCPI0_2(%rip), %xmm4            ## xmm4 = [8,8,8,8]
	.p2align	4, 0x90
LBB0_48:                                ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm1, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm1, %xmm6
	pslld	%xmm3, %xmm6
	pslld	%xmm3, %xmm5
	paddd	%xmm0, %xmm6
	paddd	%xmm0, %xmm5
	movdqu	%xmm6, (%rdx,%rsi)
	movdqu	%xmm5, 16(%rdx,%rsi)
	paddd	%xmm4, %xmm1
	addq	$32, %rsi
	cmpq	%rsi, %rcx
	jne	LBB0_48
## %bb.49:
	cmpq	%r9, %rax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-80(%rbp), %r11                 ## 8-byte Reload
	jne	LBB0_28
LBB0_31:
	movl	%r15d, %ebx
LBB0_37:
	movq	%rbx, %r8
	movq	24(%rbp), %r10
	movl	16(%rbp), %eax
	movl	(%r11), %esi
	movq	_MTHCA_MPT_FLAG_LOCAL_READ@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_39
## %bb.38:
	movq	_MTHCA_MPT_FLAG_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_39:
	orl	(%rcx), %eax
	subq	$8, %rsp
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%r13d, %ecx
                                        ## kill: def $r8d killed $r8d killed $r8
	movq	%rdx, %r15
	xorl	%r9d, %r9d
	pushq	%r10
	pushq	%rax
	pushq	%r12
	callq	_mthca_mr_alloc_phys
	addq	$32, %rsp
	testl	%eax, %eax
	je	LBB0_41
## %bb.40:
	movl	%eax, %r13d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rax                 ## 8-byte Reload
LBB0_44:
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r12d, %esi
	movq	-104(%rbp), %rdx                ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_mthca_buf_free
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
LBB0_45:
	callq	_kfree
	movl	%r13d, %ebx
LBB0_46:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_41:
	movq	%r15, %rdi
	callq	_kfree
	jmp	LBB0_46
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_mapping,4,2                    ## @mapping
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_MTHCA_MPT_FLAG_LOCAL_READ,4,2  ## @MTHCA_MPT_FLAG_LOCAL_READ
	.comm	_MTHCA_MPT_FLAG_LOCAL_WRITE,4,2 ## @MTHCA_MPT_FLAG_LOCAL_WRITE
.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 mthca_buf_alloc
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mthca_buf_alloc
	.p2align	2
_mthca_buf_alloc:                       ; @mthca_buf_alloc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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	x20, x7
	mov	x23, x6
	mov	x22, x5
	mov	x25, x4
	mov	x19, x3
	mov	x27, x1
	mov	x28, x0
Lloh0:
	adrp	x21, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x21, [x21, _ENOMEM@GOTPAGEOFF]
	ldr	w8, [x21]
	neg	w26, w8
	cmp	w1, w2
	b.le	LBB0_11
; %bb.1:
	str	w26, [sp, #20]                  ; 4-byte Folded Spill
	str	x22, [sp, #48]                  ; 8-byte Folded Spill
	str	x25, [sp, #24]                  ; 8-byte Folded Spill
	str	wzr, [x25]
Lloh2:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	add	w9, w27, w8
	sub	w9, w9, #1
	sdiv	w22, w9, w8
Lloh5:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w26, [x8]
Lloh8:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh9:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #4
	bl	_kmalloc_array
	cbz	x0, LBB0_18
; %bb.2:
	mov	x24, x0
	ldr	w2, [x25]
	mov	x0, x22
	mov	w1, #8
	bl	_kmalloc_array
	str	x0, [x19]
	cbz	x0, LBB0_19
; %bb.3:
	cmp	w22, #1
	b.lt	LBB0_21
; %bb.4:
	str	w23, [sp, #36]                  ; 4-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	str	w27, [sp, #16]                  ; 4-byte Folded Spill
	str	xzr, [x0]
	cmp	w22, #1
	b.eq	LBB0_7
; %bb.5:
	mov	w8, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19]
	str	xzr, [x9, x8, lsl #3]
	add	x8, x8, #1
	cmp	x22, x8
	b.ne	LBB0_6
LBB0_7:
	mov	x21, #0
Lloh10:
	adrp	x20, _mapping@GOTPAGE
Lloh11:
	ldr	x20, [x20, _mapping@GOTPAGEOFF]
	mov	x23, x22
	mov	x27, x24
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x28]
Lloh12:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w3, [x25]
	add	x2, sp, #60
	bl	_dma_alloc_coherent
	ldr	x8, [x19]
	str	x0, [x8, x21]
	ldr	x8, [x19]
	ldr	x8, [x8, x21]
	cbz	x8, LBB0_23
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [sp, #60]
	str	w8, [x27], #4
	ldr	x8, [x19]
	add	x0, x8, x21
	ldr	w1, [x20]
	ldr	w2, [sp, #60]
	bl	_dma_unmap_addr_set
	ldr	x8, [x19]
	ldr	x0, [x8, x21]
	bl	_clear_page
	add	x21, x21, #8
	subs	x23, x23, #1
	b.ne	LBB0_8
; %bb.10:
	ldr	w27, [sp, #16]                  ; 4-byte Folded Reload
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_31
LBB0_11:
	str	w23, [sp, #36]                  ; 4-byte Folded Spill
	str	x20, [sp, #40]                  ; 8-byte Folded Spill
	mov	w8, #1
	str	w8, [x25]
	mov	x0, x27
	bl	_get_order
	mov	x23, x0
Lloh15:
	adrp	x8, _PAGE_SHIFT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PAGE_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w20, [x8]
	ldr	x0, [x28]
Lloh18:
	adrp	x24, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x24, [x24, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w3, [x24]
	add	x2, sp, #60
	mov	x1, x27
	bl	_dma_alloc_coherent
	str	x0, [x19]
	cbz	x0, LBB0_18
; %bb.12:
	mov	x21, x26
	add	w26, w20, w23
Lloh20:
	adrp	x8, _mapping@GOTPAGE
Lloh21:
	ldr	x8, [x8, _mapping@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [sp, #60]
	mov	x0, x19
	bl	_dma_unmap_addr_set
	ldr	w8, [sp, #60]
	mov	w9, #-1
	lsl	w10, w9, w26
	mov	w23, #1
	bics	wzr, w8, w10
	b.eq	LBB0_14
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	sub	w26, w26, #1
	lsl	w23, w23, #1
	lsl	w10, w9, w26
	bics	wzr, w8, w10
	b.ne	LBB0_13
LBB0_14:
	ldr	w2, [x24]
	mov	x0, x23
	mov	w1, #4
	bl	_kmalloc_array
	mov	x24, x0
	cbz	x0, LBB0_20
; %bb.15:
	mov	w23, w23
	str	x22, [sp, #48]                  ; 8-byte Folded Spill
	cbz	w23, LBB0_22
; %bb.16:
	cmp	w23, #16
	b.hs	LBB0_24
; %bb.17:
	mov	x8, #0
	b	LBB0_29
LBB0_18:
	ldr	w8, [x21]
	neg	w20, w8
	b	LBB0_35
LBB0_19:
	ldr	w20, [sp, #20]                  ; 4-byte Folded Reload
	b	LBB0_34
LBB0_20:
	mov	x20, x21
	b	LBB0_33
LBB0_21:
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_32
LBB0_22:
	mov	w22, #0
	b	LBB0_31
LBB0_23:
	ldp	w27, w20, [sp, #16]             ; 8-byte Folded Reload
	ldr	x25, [sp, #24]                  ; 8-byte Folded Reload
	b	LBB0_33
LBB0_24:
	add	x8, x24, x23, lsl #2
	add	x9, sp, #60
	add	x10, x9, #4
	cmp	x24, x10
	ccmp	x8, x9, #0, lo
	b.hi	LBB0_28
; %bb.25:
	and	x8, x23, #0xfffffff0
	dup.4s	v0, w26
	ld1r.4s	{ v1 }, [x9]
Lloh23:
	adrp	x9, lCPI0_0@PAGE
Lloh24:
	ldr	q2, [x9, lCPI0_0@PAGEOFF]
	add	x9, x24, #32
	movi.4s	v3, #4
	movi.4s	v4, #8
	movi.4s	v5, #12
	movi.4s	v6, #16
	mov	x10, x8
LBB0_26:                                ; =>This Inner Loop Header: Depth=1
	add.4s	v7, v2, v3
	add.4s	v16, v2, v4
	add.4s	v17, v2, v5
	ushl.4s	v18, v2, v0
	ushl.4s	v7, v7, v0
	ushl.4s	v16, v16, v0
	ushl.4s	v17, v17, v0
	add.4s	v18, v1, v18
	add.4s	v7, v1, v7
	add.4s	v16, v1, v16
	add.4s	v17, v1, v17
	stp	q18, q7, [x9, #-32]
	stp	q16, q17, [x9], #64
	add.4s	v2, v2, v6
	subs	x10, x10, #16
	b.ne	LBB0_26
; %bb.27:
	cmp	x8, x23
	b.ne	LBB0_29
	b	LBB0_30
LBB0_28:
	mov	x8, #0
LBB0_29:                                ; =>This Inner Loop Header: Depth=1
	ldr	w9, [sp, #60]
	lsl	w10, w8, w26
	add	w9, w9, w10
	str	w9, [x24, x8, lsl #2]
	add	x8, x8, #1
	cmp	x23, x8
	b.ne	LBB0_29
LBB0_30:
	mov	x22, x23
LBB0_31:
	ldr	x20, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w23, [sp, #36]                  ; 4-byte Folded Reload
LBB0_32:
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _MTHCA_MPT_FLAG_LOCAL_READ@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MTHCA_MPT_FLAG_LOCAL_READ@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _MTHCA_MPT_FLAG_LOCAL_WRITE@GOTPAGE
Lloh29:
	ldr	x9, [x9, _MTHCA_MPT_FLAG_LOCAL_WRITE@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	cmp	w23, #0
	csel	w9, wzr, w9, eq
	orr	w7, w9, w8
	str	x20, [sp]
	mov	x0, x28
	mov	x2, x24
	mov	x3, x26
	mov	x4, x22
	mov	w5, #0
	mov	x6, x27
	bl	_mthca_mr_alloc_phys
	mov	x20, x0
	cbz	w0, LBB0_34
LBB0_33:
	ldr	w3, [x25]
	mov	x0, x28
	mov	x1, x27
	mov	x2, x19
	mov	x4, #0
	bl	_mthca_buf_free
LBB0_34:
	mov	x0, x24
	bl	_kfree
LBB0_35:
	mov	x0, x20
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdr	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_mapping,4,2                    ; @mapping
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_MTHCA_MPT_FLAG_LOCAL_READ,4,2  ; @MTHCA_MPT_FLAG_LOCAL_READ
	.comm	_MTHCA_MPT_FLAG_LOCAL_WRITE,4,2 ; @MTHCA_MPT_FLAG_LOCAL_WRITE
.subsections_via_symbols
