	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_cq_resize_copy_cqes       ## -- Begin function mlx4_cq_resize_copy_cqes
	.p2align	4, 0x90
_mlx4_cq_resize_copy_cqes:              ## @mlx4_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	movl	4(%rdi), %ebx
	xorl	%r13d, %r13d
	cmpl	$64, (%rdi)
	sete	%r13b
	movl	%ebx, %esi
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	andl	%edx, %esi
	callq	_get_cqe
	movl	(%rax,%r13,4), %ecx
	movq	_MLX4_CQE_OPCODE_MASK@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	andl	%ecx, %edx
	movq	_MLX4_CQE_OPCODE_RESIZE@GOTPCREL(%rip), %r15
	cmpl	(%r15), %edx
	je	LBB0_3
## %bb.1:
	movq	%r13, %rdx
	negq	%rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	incl	%ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rax,%r13,4), %r8
	movq	_MLX4_CQE_OWNER_MASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, %edi
	notl	%edi
	andl	%ecx, %edi
	movl	8(%r12), %ecx
	leal	1(%rcx), %esi
	andl	%ebx, %esi
	cmovnel	%edx, %esi
	orl	%edi, %esi
	movl	%esi, (%rax,%r13,4)
	andl	%ebx, %ecx
	movl	(%r12), %edx
	imull	%edx, %ecx
	movslq	%ecx, %rdi
	addq	-64(%rbp), %rdi                 ## 8-byte Folded Reload
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r8,%rax,4), %rsi
	callq	_memcpy
	movl	%ebx, %esi
	andl	-44(%rbp), %esi                 ## 4-byte Folded Reload
	movq	%r12, %rdi
	callq	_get_cqe
	movl	(%rax,%r13,4), %ecx
	movl	(%r14), %edx
	andl	%ecx, %edx
	incl	%ebx
	cmpl	(%r15), %edx
	jne	LBB0_2
LBB0_3:
	incl	4(%r12)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MLX4_CQE_OPCODE_MASK,4,2       ## @MLX4_CQE_OPCODE_MASK
	.comm	_MLX4_CQE_OPCODE_RESIZE,4,2     ## @MLX4_CQE_OPCODE_RESIZE
	.comm	_MLX4_CQE_OWNER_MASK,4,2        ## @MLX4_CQE_OWNER_MASK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mlx4_cq_resize_copy_cqes       ; -- Begin function mlx4_cq_resize_copy_cqes
	.p2align	2
_mlx4_cq_resize_copy_cqes:              ; @mlx4_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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldp	w22, w25, [x0]
	and	w1, w25, w2
	bl	_get_cqe
	cmp	w22, #64
	cset	w9, eq
	csetm	x22, eq
	ldr	w8, [x0, w9, uxtw #2]
Lloh0:
	adrp	x23, _MLX4_CQE_OPCODE_MASK@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MLX4_CQE_OPCODE_MASK@GOTPAGEOFF]
	ldr	w10, [x23]
	and	w10, w10, w8
Lloh2:
	adrp	x24, _MLX4_CQE_OPCODE_RESIZE@GOTPAGE
Lloh3:
	ldr	x24, [x24, _MLX4_CQE_OPCODE_RESIZE@GOTPAGEOFF]
	ldr	w11, [x24]
	cmp	w10, w11
	b.eq	LBB0_3
; %bb.1:
	add	w25, w25, #1
	lsl	x26, x9, #2
Lloh4:
	adrp	x27, _MLX4_CQE_OWNER_MASK@GOTPAGE
Lloh5:
	ldr	x27, [x27, _MLX4_CQE_OWNER_MASK@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x9, x0, x26
	ldr	w10, [x27]
	bic	w8, w8, w10
	ldr	w11, [x19, #8]
	add	w12, w11, #1
	tst	w12, w25
	csel	w10, wzr, w10, eq
	orr	w8, w10, w8
	str	w8, [x9]
	and	w8, w11, w25
	ldr	w2, [x19]
	mul	w8, w2, w8
	add	x0, x21, w8, sxtw
	add	x1, x9, x22, lsl #2
	bl	_memcpy
	and	w1, w25, w20
	mov	x0, x19
	bl	_get_cqe
	ldr	w8, [x0, x26]
	ldr	w9, [x23]
	and	w9, w9, w8
	ldr	w10, [x24]
	add	w25, w25, #1
	cmp	w9, w10
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MLX4_CQE_OPCODE_MASK,4,2       ; @MLX4_CQE_OPCODE_MASK
	.comm	_MLX4_CQE_OPCODE_RESIZE,4,2     ; @MLX4_CQE_OPCODE_RESIZE
	.comm	_MLX4_CQE_OWNER_MASK,4,2        ; @MLX4_CQE_OWNER_MASK
.subsections_via_symbols
