	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_alloc_fast_reg_page_list ## -- Begin function mlx4_ib_alloc_fast_reg_page_list
	.p2align	4, 0x90
_mlx4_ib_alloc_fast_reg_page_list:      ## @mlx4_ib_alloc_fast_reg_page_list
	.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
	movl	%esi, %ebx
	callq	_to_mdev
	movq	%rax, %r15
	movq	_MLX4_MAX_FAST_REG_PAGES@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jge	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$24, %edi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.3:
	movq	%rax, %r14
	shll	$2, %ebx
	movl	(%r13), %esi
	movl	%ebx, %edi
	callq	_kmalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	%r14, %r12
	addq	$8, %r12
	movq	(%r15), %rax
	movq	(%rax), %rdi
	movl	(%r13), %ecx
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_dma_alloc_coherent
	movl	%eax, 16(%r14)
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:
	movl	(%r14), %edi
	andl	$63, %edi
	callq	_WARN_ON
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r12), %rax
LBB0_8:
	movq	%rax, %rdi
	callq	_kfree
	movq	%r14, %rdi
	callq	_kfree
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%edi, %edi
	subl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ERR_PTR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_MAX_FAST_REG_PAGES,4,2    ## @MLX4_MAX_FAST_REG_PAGES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_ib_alloc_fast_reg_page_list ; -- Begin function mlx4_ib_alloc_fast_reg_page_list
	.p2align	2
_mlx4_ib_alloc_fast_reg_page_list:      ; @mlx4_ib_alloc_fast_reg_page_list
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x21, x1
	bl	_to_mdev
Lloh0:
	adrp	x8, _MLX4_MAX_FAST_REG_PAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MLX4_MAX_FAST_REG_PAGES@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w21
	b.ge	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x23, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x23, [x23, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	w0, #24
	bl	_kmalloc
	cbz	x0, LBB0_8
; %bb.3:
	mov	x19, x0
	lsl	w22, w21, #2
	ldr	w1, [x23]
	mov	x0, x22
	bl	_kmalloc
	mov	x21, x19
	str	x0, [x21, #8]!
	cbz	x0, LBB0_7
; %bb.4:
	ldr	x8, [x20]
	ldr	x0, [x8]
	ldr	w3, [x23]
	mov	x1, x22
	mov	x2, x19
	bl	_dma_alloc_coherent
	str	w0, [x19, #16]
	cbz	w0, LBB0_6
; %bb.5:
	ldr	w8, [x19]
	and	w0, w8, #0x3f
	bl	_WARN_ON
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	x0, [x21]
LBB0_7:
	bl	_kfree
	mov	x0, x19
	bl	_kfree
LBB0_8:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ERR_PTR
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_MAX_FAST_REG_PAGES,4,2    ; @MLX4_MAX_FAST_REG_PAGES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
