	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlx4_ib_cq_resize_copy_cqes
_mlx4_ib_cq_resize_copy_cqes:           ## @mlx4_ib_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	%rdi, %r15
	movl	(%rdi), %ebx
	movl	16(%rdi), %eax
	xorl	%r14d, %r14d
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$64, %eax
	sete	%r14b
	movl	4(%rdi), %esi
	andl	%ebx, %esi
	callq	_get_cqe
	movq	_MLX4_CQE_OPCODE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	andl	(%rax,%r14,4), %ecx
	movq	_MLX4_CQE_OPCODE_RESIZE@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_3
## %bb.1:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rax,%rcx,4), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rdi
	leal	1(%rbx), %r14d
	movl	(%rdi), %esi
	andl	%r14d, %esi
	addq	$4, %rdi
	callq	_get_cqe_from_buf
	movq	%rax, %r12
	andl	4(%r15), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_get_cqe
	movq	%r12, %rdi
	movq	%rax, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	_MLX4_CQE_OWNER_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	notl	%ecx
	andl	(%r13), %ecx
	movq	8(%r15), %rdx
	movl	(%rdx), %edx
	incl	%edx
	andl	%r14d, %edx
	cmovnel	%eax, %edx
	orl	%ecx, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	%edx, (%r12,%rbx,4)
	movl	4(%r15), %esi
	andl	%r14d, %esi
	movq	%r15, %rdi
	callq	_get_cqe
	movq	_MLX4_CQE_OPCODE_RESIZE@GOTPCREL(%rip), %rdx
	movq	_MLX4_CQE_OPCODE_MASK@GOTPCREL(%rip), %rcx
	leaq	(%rax,%rbx,4), %r13
	movl	(%rcx), %ecx
	andl	(%rax,%rbx,4), %ecx
	movl	%r14d, %ebx
	cmpl	(%rdx), %ecx
	jne	LBB0_2
LBB0_3:
	incl	(%r15)
	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
	.no_dead_strip	_mlx4_ib_cq_resize_copy_cqes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlx4_ib_cq_resize_copy_cqes
_mlx4_ib_cq_resize_copy_cqes:           ; @mlx4_ib_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
	ldr	w20, [x0, #16]
	cmp	w20, #64
	cset	w21, eq
	ldp	w27, w8, [x0]
	and	w1, w8, w27
	bl	_get_cqe
	add	x26, x0, w21, uxtw #2
	ldr	w8, [x26]
Lloh0:
	adrp	x22, _MLX4_CQE_OPCODE_MASK@GOTPAGE
Lloh1:
	ldr	x22, [x22, _MLX4_CQE_OPCODE_MASK@GOTPAGEOFF]
	ldr	w9, [x22]
	and	w8, w9, w8
Lloh2:
	adrp	x23, _MLX4_CQE_OPCODE_RESIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _MLX4_CQE_OPCODE_RESIZE@GOTPAGEOFF]
	ldr	w9, [x23]
	cmp	w8, w9
	b.eq	LBB0_3
; %bb.1:
Lloh4:
	adrp	x24, _MLX4_CQE_OWNER_MASK@GOTPAGE
Lloh5:
	ldr	x24, [x24, _MLX4_CQE_OWNER_MASK@GOTPAGEOFF]
	lsl	x25, x21, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x19, #8]
	add	w28, w27, #1
	ldr	w8, [x0], #4
	and	w1, w8, w28
	bl	_get_cqe_from_buf
	mov	x21, x0
	ldr	w8, [x19, #4]
	and	w1, w8, w27
	mov	x0, x19
	bl	_get_cqe
	mov	x1, x0
	mov	x0, x21
	mov	x2, x20
	bl	_memcpy
	ldr	w8, [x26]
	ldr	w9, [x24]
	bic	w8, w8, w9
	ldr	x10, [x19, #8]
	ldr	w10, [x10]
	add	w10, w10, #1
	tst	w10, w28
	csel	w9, wzr, w9, eq
	orr	w8, w9, w8
	str	w8, [x21, x25]
	ldr	w8, [x19, #4]
	and	w1, w8, w28
	mov	x0, x19
	bl	_get_cqe
	add	x26, x0, x25
	ldr	w8, [x26]
	ldr	w9, [x22]
	and	w8, w9, w8
	ldr	w9, [x23]
	mov	x27, x28
	cmp	w8, w9
	b.ne	LBB0_2
LBB0_3:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	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
	.no_dead_strip	_mlx4_ib_cq_resize_copy_cqes
.subsections_via_symbols
