	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_drain_cq                 ## -- Begin function ipoib_drain_cq
	.p2align	4, 0x90
_ipoib_drain_cq:                        ## @ipoib_drain_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	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_local_bh_disable
	movq	_IPOIB_NUM_WC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_IPOIB_OP_RECV@GOTPCREL(%rip), %r15
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_IPOIB_NUM_WC@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	cmpl	(%rax), %esi
	jne	LBB0_12
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movl	8(%rbx), %edi
	movq	(%rbx), %rdx
	callq	_ib_poll_cq
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	shlq	$4, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_ipoib_cm_handle_tx_wc
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=2
	addq	$16, %r13
	cmpq	%r13, %r12
	je	LBB0_11
LBB0_3:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%rbx), %rsi
	movq	(%rsi,%r13), %rax
	movq	_IB_WC_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_IB_WC_WR_FLUSH_ERR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rsi,%r13)
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=2
	movl	8(%rsi,%r13), %eax
	addq	%r13, %rsi
	testl	%eax, (%r15)
	je	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	_IPOIB_OP_CM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_ipoib_cm_handle_rx_wc
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=2
	movq	%r14, %rdi
	callq	_ipoib_ib_handle_rx_wc
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_poll_tx
	testq	%rax, %rax
	jne	LBB0_12
## %bb.13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_local_bh_enable                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IPOIB_NUM_WC,4,2               ## @IPOIB_NUM_WC
	.comm	_IB_WC_SUCCESS,8,3              ## @IB_WC_SUCCESS
	.comm	_IB_WC_WR_FLUSH_ERR,8,3         ## @IB_WC_WR_FLUSH_ERR
	.comm	_IPOIB_OP_RECV,4,2              ## @IPOIB_OP_RECV
	.comm	_IPOIB_OP_CM,4,2                ## @IPOIB_OP_CM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipoib_drain_cq                 ; -- Begin function ipoib_drain_cq
	.p2align	2
_ipoib_drain_cq:                        ; @ipoib_drain_cq
	.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, x0
	bl	_netdev_priv
	mov	x19, x0
	bl	_local_bh_disable
Lloh0:
	adrp	x22, _IPOIB_NUM_WC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IPOIB_NUM_WC@GOTPAGEOFF]
	ldr	w21, [x22]
Lloh2:
	adrp	x23, _IB_WC_SUCCESS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IB_WC_SUCCESS@GOTPAGEOFF]
Lloh4:
	adrp	x24, _IB_WC_WR_FLUSH_ERR@GOTPAGE
Lloh5:
	ldr	x24, [x24, _IB_WC_WR_FLUSH_ERR@GOTPAGEOFF]
Lloh6:
	adrp	x25, _IPOIB_OP_RECV@GOTPAGE
Lloh7:
	ldr	x25, [x25, _IPOIB_OP_RECV@GOTPAGEOFF]
Lloh8:
	adrp	x26, _IPOIB_OP_CM@GOTPAGE
Lloh9:
	ldr	x26, [x26, _IPOIB_OP_CM@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22]
	cmp	w21, w8
	b.ne	LBB0_12
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x19, #8]
	ldr	x2, [x19]
	mov	x1, x21
	bl	_ib_poll_cq
	mov	x21, x0
	cmp	w0, #1
	b.lt	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, #0
	mov	w8, w21
	lsl	x28, x8, #4
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x20
	bl	_ipoib_cm_handle_tx_wc
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x27, x27, #16
	cmp	x28, x27
	b.eq	LBB0_1
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	ldr	x9, [x8, x27]
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	x9, [x24]
	str	x9, [x8, x27]
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=2
	add	x1, x8, x27
	ldr	w8, [x1, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x26]
	mov	x0, x20
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	bl	_ipoib_cm_handle_rx_wc
	b	LBB0_5
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=2
	bl	_ipoib_ib_handle_rx_wc
	b	LBB0_5
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_poll_tx
	cbnz	x0, LBB0_12
; %bb.13:
	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	_local_bh_enable
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_IPOIB_NUM_WC,4,2               ; @IPOIB_NUM_WC
	.comm	_IB_WC_SUCCESS,8,3              ; @IB_WC_SUCCESS
	.comm	_IB_WC_WR_FLUSH_ERR,8,3         ; @IB_WC_WR_FLUSH_ERR
	.comm	_IPOIB_OP_RECV,4,2              ; @IPOIB_OP_RECV
	.comm	_IPOIB_OP_CM,4,2                ; @IPOIB_OP_CM
.subsections_via_symbols
