	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_poll_cq                ## -- Begin function ibv_cmd_poll_cq
	.p2align	4, 0x90
_ibv_cmd_poll_cq:                       ## @ibv_cmd_poll_cq
	.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	%rdx, %rbx
	movl	%esi, %r13d
	movq	%rdi, %r15
	leal	16(,%r13,4), %r12d
	movl	%r12d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r14
	movq	_POLL_CQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rdi
	movl	$8, %esi
	movq	%r14, %rcx
	movl	%r12d, %r8d
	callq	_IBV_INIT_CMD_RESP
	movl	8(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	%r13d, -48(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$8, %edx
	callq	_write
	movl	$-1, %r15d
	cmpl	$8, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_VALGRIND_MAKE_MEM_DEFINED
	movl	(%r14), %r15d
	testl	%r15d, %r15d
	jle	LBB0_6
## %bb.4:
	movq	8(%r14), %rax
	imulq	$52, %r15, %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	48(%rax,%rdx), %esi
	movl	%esi, 48(%rbx,%rdx)
	movups	32(%rax,%rdx), %xmm0
	movups	%xmm0, 32(%rbx,%rdx)
	movups	16(%rax,%rdx), %xmm0
	movups	%xmm0, 16(%rbx,%rdx)
	movups	(%rax,%rdx), %xmm0
	movups	%xmm0, (%rbx,%rdx)
	addq	$52, %rdx
	cmpq	%rdx, %rcx
	jne	LBB0_5
LBB0_6:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %r15d
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_POLL_CQ,4,2                    ## @POLL_CQ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ibv_cmd_poll_cq                ; -- Begin function ibv_cmd_poll_cq
	.p2align	2
_ibv_cmd_poll_cq:                       ; @ibv_cmd_poll_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x2
	mov	x23, x1
	mov	x22, x0
	lsl	w8, w1, #2
	add	w20, w8, #16
	mov	x0, x20
	bl	_malloc
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x8, _POLL_CQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POLL_CQ@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	w1, #8
	mov	x3, x19
	mov	x4, x20
	bl	_IBV_INIT_CMD_RESP
	ldr	w8, [x22, #8]
	stp	w23, w8, [sp, #8]
	ldr	x8, [x22]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #8
	bl	_write
	cmp	w0, #8
	b.ne	LBB0_6
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_VALGRIND_MAKE_MEM_DEFINED
	ldr	w20, [x19]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.3:
	ldr	x8, [x19, #8]
	add	x8, x8, #32
	add	x9, x21, #32
	mov	x10, x20
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8, #16]
	str	w11, [x9, #16]
	ldr	q0, [x8]
	str	q0, [x9]
	ldur	q0, [x8, #-16]
	stur	q0, [x9, #-16]
	ldur	q0, [x8, #-32]
	stur	q0, [x9, #-32]
	add	x8, x8, #52
	add	x9, x9, #52
	subs	x10, x10, #1
	b.ne	LBB0_4
	b	LBB0_7
LBB0_5:
	mov	w20, #-1
	b	LBB0_8
LBB0_6:
	mov	w20, #-1
LBB0_7:
	mov	x0, x19
	bl	_free
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POLL_CQ,4,2                    ; @POLL_CQ
.subsections_via_symbols
