	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cq_resize_copy_cqes       ## -- Begin function mlx5_cq_resize_copy_cqes
	.p2align	4, 0x90
_mlx5_cq_resize_copy_cqes:              ## @mlx5_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	%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
	movl	(%rdi), %r13d
	movl	4(%rdi), %r15d
	xorl	%r14d, %r14d
	cmpl	$64, %r13d
	setne	%r14b
	movl	8(%rdi), %r12d
	movl	20(%rdi), %edi
	movl	12(%rbx), %esi
	andl	%r12d, %esi
	movl	%r13d, %edx
	callq	_get_buf_cqe
	shlq	$6, %r14
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax,%r14), %edi
	movl	12(%rbx), %edx
	movl	%r12d, %esi
	callq	_is_hw
	testq	%rax, %rax
	je	LBB0_1
LBB0_4:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_5:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fprintf                        ## TAILCALL
LBB0_1:
	movl	%r13d, -48(%rbp)                ## 4-byte Spill
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r14), %rax
	xorl	%ecx, %ecx
	cmpl	$64, %r15d
	setne	%cl
	shlq	$6, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	incl	%r12d
	movq	%rdx, %r13
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %eax
	sarl	$4, %eax
	movq	_MLX5_CQE_RESIZE_CQ@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %eax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rbx), %esi
	movl	24(%rbx), %edi
	decl	%esi
	andl	%r12d, %esi
	movl	%r15d, %edx
	callq	_get_buf_cqe
	movq	%rax, %r15
	movl	16(%rbx), %esi
	movl	%r12d, %edi
	callq	_sw_ownership_bit
	movq	%r14, %rbx
	movl	%eax, %r14d
	movq	%r15, %rdi
	movq	%r13, %rsi
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %edx
	callq	_memcpy
	movq	_MLX5_CQE_OWNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	andl	(%r15,%rcx), %eax
	orl	%r14d, %eax
	movq	%rbx, %r14
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, (%r15,%rcx)
	movl	20(%rbx), %edi
	movl	12(%rbx), %esi
	andl	%r12d, %esi
	movl	%r13d, %edx
	callq	_get_buf_cqe
	movq	%rax, %r13
	movl	(%rax,%r14), %edi
	movl	12(%rbx), %edx
	movl	%r12d, %esi
	callq	_is_hw
	testq	%rax, %rax
	jne	LBB0_4
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	(%r14,%r13), %rax
	incl	%r12d
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r13
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	jne	LBB0_2
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_5
LBB0_8:
	incl	8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected cqe in sw ownership\n"

	.comm	_MLX5_CQE_RESIZE_CQ,4,2         ## @MLX5_CQE_RESIZE_CQ
	.comm	_MLX5_CQE_OWNER_MASK,4,2        ## @MLX5_CQE_OWNER_MASK
L_.str.1:                               ## @.str.1
	.asciz	"resize CQ failed to get resize CQE\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx5_cq_resize_copy_cqes       ; -- Begin function mlx5_cq_resize_copy_cqes
	.p2align	2
_mlx5_cq_resize_copy_cqes:              ; @mlx5_cq_resize_copy_cqes
	.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
	mov	x19, x0
	ldp	w20, w21, [x0]
	cmp	w20, #64
	cset	w24, ne
	ldr	w0, [x0, #20]
	ldp	w23, w8, [x19, #8]
	and	w1, w8, w23
	mov	x2, x20
	bl	_get_buf_cqe
	mov	x22, x0
	lsl	x27, x24, #6
	add	x25, x0, x27
	ldr	w0, [x25]
	ldr	w2, [x19, #12]
	mov	x1, x23
	bl	_is_hw
	cbz	x0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x8, _stderr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	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
	b	_fprintf
LBB0_3:
	cmp	w21, #64
	cset	w8, ne
	lsl	x28, x8, #6
	add	w23, w23, #1
	mov	x24, x22
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
Lloh5:
	adrp	x9, _MLX5_CQE_RESIZE_CQ@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MLX5_CQE_RESIZE_CQ@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w9, w8, asr #4
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19, #24]
	ldr	w8, [x19, #16]
	sub	w8, w8, #1
	and	w1, w8, w23
	mov	x2, x21
	bl	_get_buf_cqe
	mov	x25, x0
	ldr	w1, [x19, #16]
	mov	x0, x23
	bl	_sw_ownership_bit
	mov	x26, x0
	mov	x0, x25
	mov	x1, x24
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x25, x28]
Lloh8:
	adrp	x9, _MLX5_CQE_OWNER_MASK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MLX5_CQE_OWNER_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	bic	w8, w8, w9
	orr	w8, w8, w26
	str	w8, [x25, x28]
	ldr	w0, [x19, #20]
	ldr	w8, [x19, #12]
	and	w1, w8, w23
	mov	x2, x20
	bl	_get_buf_cqe
	mov	x24, x0
	add	x25, x0, x27
	ldr	w0, [x25]
	ldr	w2, [x19, #12]
	mov	x1, x23
	bl	_is_hw
	cbnz	x0, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w23, w23, #1
	cmp	x24, x22
	b.ne	LBB0_4
; %bb.7:
Lloh11:
	adrp	x8, _stderr@GOTPAGE
Lloh12:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_8:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	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
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected cqe in sw ownership\n"

	.comm	_MLX5_CQE_RESIZE_CQ,4,2         ; @MLX5_CQE_RESIZE_CQ
	.comm	_MLX5_CQE_OWNER_MASK,4,2        ; @MLX5_CQE_OWNER_MASK
l_.str.1:                               ; @.str.1
	.asciz	"resize CQ failed to get resize CQE\n"

.subsections_via_symbols
