	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_cq_resize_copy_cqes      ## -- Begin function mthca_cq_resize_copy_cqes
	.p2align	4, 0x90
_mthca_cq_resize_copy_cqes:             ## @mthca_cq_resize_copy_cqes
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	8(%rdi), %edi
	callq	_to_mdev
	movl	%eax, %edi
	callq	_mthca_is_memfree
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	4(%r14), %esi
	movq	16(%r14), %rax
	cmpl	(%rax), %esi
	jge	LBB0_4
## %bb.2:
	andl	%esi, (%r14)
	movq	%r14, %rdi
	callq	_get_cqe
	movl	%eax, %edi
	callq	_cqe_sw
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	4(%r14), %eax
	notl	%eax
	addl	%eax, (%r14)
LBB0_4:
	movl	(%r14), %ebx
	movl	4(%r14), %esi
	andl	%ebx, %esi
	movq	%r14, %rdi
	callq	_get_cqe
	movl	%eax, %edi
	callq	_cqe_sw
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	_MTHCA_CQ_ENTRY_SIZE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rdi
	movl	(%rdi), %esi
	andl	%ebx, %esi
	addq	$4, %rdi
	callq	_get_cqe_from_buf
	movl	%eax, %r15d
	movl	4(%r14), %esi
	andl	%ebx, %esi
	movq	%r14, %rdi
	callq	_get_cqe
	movl	(%r12), %edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_memcpy
	incl	%ebx
	movl	4(%r14), %esi
	andl	%ebx, %esi
	movq	%r14, %rdi
	callq	_get_cqe
	movl	%eax, %edi
	callq	_cqe_sw
	testq	%rax, %rax
	jne	LBB0_6
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MTHCA_CQ_ENTRY_SIZE,4,2        ## @MTHCA_CQ_ENTRY_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mthca_cq_resize_copy_cqes      ; -- Begin function mthca_cq_resize_copy_cqes
	.p2align	2
_mthca_cq_resize_copy_cqes:             ; @mthca_cq_resize_copy_cqes
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	w0, [x0, #8]
	bl	_to_mdev
	bl	_mthca_is_memfree
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w1, [x19, #4]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w1, w8
	b.ge	LBB0_4
; %bb.2:
	ldr	w8, [x19]
	and	w8, w8, w1
	str	w8, [x19]
	mov	x0, x19
	bl	_get_cqe
	bl	_cqe_sw
	cbz	x0, LBB0_4
; %bb.3:
	ldp	w9, w8, [x19]
	mvn	w8, w8
	add	w8, w9, w8
	str	w8, [x19]
LBB0_4:
	ldp	w21, w8, [x19]
	and	w1, w8, w21
	mov	x0, x19
	bl	_get_cqe
	bl	_cqe_sw
	cbz	x0, LBB0_7
; %bb.5:
Lloh0:
	adrp	x22, _MTHCA_CQ_ENTRY_SIZE@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MTHCA_CQ_ENTRY_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #16]
	ldr	w8, [x0], #4
	and	w1, w8, w21
	bl	_get_cqe_from_buf
	mov	x20, x0
	ldr	w8, [x19, #4]
	and	w1, w8, w21
	mov	x0, x19
	bl	_get_cqe
	mov	x1, x0
	ldr	w2, [x22]
	mov	x0, x20
	bl	_memcpy
	add	w21, w21, #1
	ldr	w8, [x19, #4]
	and	w1, w8, w21
	mov	x0, x19
	bl	_get_cqe
	bl	_cqe_sw
	cbnz	x0, LBB0_6
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MTHCA_CQ_ENTRY_SIZE,4,2        ; @MTHCA_CQ_ENTRY_SIZE
.subsections_via_symbols
