	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_get_cq_umem
_mlx4_ib_get_cq_umem:                   ## @mlx4_ib_get_cq_umem
	.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
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rax
	imull	(%rax), %r9d
	movq	_IB_ACCESS_LOCAL_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, %rdi
	movl	%r8d, %esi
	movl	%r9d, %edx
	movl	$1, %r8d
	callq	_ib_umem_get
	movq	%rax, (%rbx)
	movq	%rax, %rdi
	callq	_IS_ERR
	movq	(%rbx), %rdi
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_PTR_ERR                        ## TAILCALL
LBB0_1:
	callq	_ib_umem_page_count
	movl	%eax, -44(%rbp)
	movq	(%rbx), %rdi
	xorl	%r12d, %r12d
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_mlx4_ib_umem_calc_optimal_mtt_size
	movq	(%r15), %rdi
	movl	-44(%rbp), %esi
	movl	%eax, %edx
	movq	%r14, %rcx
	callq	_mlx4_mtt_init
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	(%rbx), %rdx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_mlx4_ib_umem_write_mtt
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r13d
	movq	(%r15), %rdi
	movq	%r14, %rsi
	callq	_mlx4_mtt_cleanup
LBB0_4:
	movq	(%rbx), %rdi
	callq	_ib_umem_release
	movl	%r13d, %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ## @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_mlx4_ib_get_cq_umem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_get_cq_umem
_mlx4_ib_get_cq_umem:                   ; @mlx4_ib_get_cq_umem
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	x8, [x0]
	ldr	w8, [x8]
	mul	w2, w8, w5
Lloh0:
	adrp	x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_ACCESS_LOCAL_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x1
	mov	x1, x4
	mov	w4, #1
	bl	_ib_umem_get
	str	x0, [x19]
	bl	_IS_ERR
	mov	x8, x0
	ldr	x0, [x19]
	cbz	x8, LBB0_2
; %bb.1:
	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
	add	sp, sp, #64
	b	_PTR_ERR
LBB0_2:
	bl	_ib_umem_page_count
	str	w0, [sp, #12]
	ldr	x0, [x19]
	add	x2, sp, #12
	mov	w1, #0
	bl	_mlx4_ib_umem_calc_optimal_mtt_size
	mov	x2, x0
	ldr	x0, [x21]
	ldr	w1, [sp, #12]
	mov	x3, x20
	bl	_mlx4_mtt_init
	mov	x22, x0
	cbnz	w0, LBB0_5
; %bb.3:
	ldr	x2, [x19]
	mov	x0, x21
	mov	x1, x20
	bl	_mlx4_ib_umem_write_mtt
	mov	x22, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x21]
	mov	x1, x20
	bl	_mlx4_mtt_cleanup
LBB0_5:
	ldr	x0, [x19]
	bl	_ib_umem_release
LBB0_6:
	mov	x0, x22
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_ACCESS_LOCAL_WRITE,4,2      ; @IB_ACCESS_LOCAL_WRITE
	.no_dead_strip	_mlx4_ib_get_cq_umem
.subsections_via_symbols
