	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iser_drain_tx_cq
_iser_drain_tx_cq:                      ## @iser_drain_tx_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
	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), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %r14
	leaq	-80(%rbp), %rdx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_ib_poll_cq
	xorl	%ebx, %ebx
	cmpl	$1, %eax
	jne	LBB0_8
## %bb.1:
	leaq	-80(%rbp), %r12
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-64(%rbp), %ecx
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_iser_err
	movq	%r13, %rdi
	callq	_atomic_dec
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_iser_handle_comp_error
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%ebx
	movq	%r14, %rdi
	movl	$1, %esi
	movq	%r12, %rdx
	callq	_ib_poll_cq
	cmpl	$1, %eax
	jne	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-80(%rbp), %rdx
	movq	-56(%rbp), %r15
	movq	-48(%rbp), %rax
	movq	(%rax), %r13
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-72(%rbp), %rdx
	movq	_IB_WC_SEND@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rsi, %rdx
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_iser_snd_completion
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_iser_err
	jmp	LBB0_7
LBB0_8:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_WC_SEND,8,3                 ## @IB_WC_SEND
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"expected opcode %d got %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"tx id %llx status %d vend_err %x\n"

	.no_dead_strip	_iser_drain_tx_cq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iser_drain_tx_cq
_iser_drain_tx_cq:                      ; @iser_drain_tx_cq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	x8, [x0]
	ldr	x19, [x8, w1, sxtw #3]
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.1:
	mov	w20, #0
Lloh0:
	adrp	x25, _IB_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x26, _IB_WC_SEND@GOTPAGE
Lloh3:
	ldr	x26, [x26, _IB_WC_SEND@GOTPAGEOFF]
Lloh4:
	adrp	x21, l_.str@PAGE
Lloh5:
	add	x21, x21, l_.str@PAGEOFF
Lloh6:
	adrp	x22, l_.str.1@PAGE
Lloh7:
	add	x22, x22, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [sp, #24]
	str	x8, [sp]
	mov	x0, x22
	mov	x1, x24
	bl	_iser_err
	mov	x0, x23
	bl	_atomic_dec
	mov	x0, x24
	mov	x1, x23
	bl	_iser_handle_comp_error
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w20, w20, #1
	add	x2, sp, #8
	mov	x0, x19
	mov	w1, #1
	bl	_ib_poll_cq
	cmp	w0, #1
	b.ne	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x24, x8, [sp, #32]
	ldr	x23, [x8]
	ldr	x2, [sp, #8]
	ldr	x8, [x25]
	cmp	x2, x8
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x2, [sp, #16]
	ldr	x1, [x26]
	cmp	x2, x1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	mov	x1, x23
	bl	_iser_snd_completion
	b	LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_iser_err
	b	LBB0_3
LBB0_8:
	mov	w20, #0
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_WC_SEND,8,3                 ; @IB_WC_SEND
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"expected opcode %d got %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"tx id %llx status %d vend_err %x\n"

	.no_dead_strip	_iser_drain_tx_cq
.subsections_via_symbols
