	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __ib_drain_rq
___ib_drain_rq:                         ## @__ib_drain_rq
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	movq	_IB_QPS_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	movq	_IB_QP_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-40(%rbp), %rsi
	callq	_ib_modify_qp
	testl	%eax, %eax
	jne	LBB0_1
## %bb.2:
	leaq	-28(%rbp), %rax
	movq	%rax, -48(%rbp)
	movq	_ib_drain_qp_done@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-32(%rbp), %rdi
	callq	_init_completion
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_ib_post_recv
	testl	%eax, %eax
	je	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	movl	%eax, %edx
	callq	_WARN_ONCE
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%r14), %rax
	movq	_IB_POLL_DIRECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.4:
	movq	_HZ@GOTPCREL(%rip), %r15
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	leaq	-32(%rbp), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	jg	LBB0_8
## %bb.5:
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$-1, %esi
	callq	_ib_process_cq_direct
	movslq	(%r15), %rax
	imulq	$1717986919, %rax, %rsi         ## imm = 0x66666667
	movq	%rsi, %rax
	shrq	$63, %rax
	sarq	$34, %rsi
	addl	%eax, %esi
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_wait_for_completion_timeout
	testq	%rax, %rax
	jle	LBB0_6
	jmp	LBB0_8
LBB0_7:
	leaq	-32(%rbp), %rdi
	callq	_wait_for_completion
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_IB_QPS_ERR,4,2                 ## @IB_QPS_ERR
	.comm	_IB_QP_STATE,4,2                ## @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to drain recv queue: %d\n"

	.comm	_ib_drain_qp_done,4,2           ## @ib_drain_qp_done
	.comm	_IB_POLL_DIRECT,8,3             ## @IB_POLL_DIRECT
	.comm	_HZ,4,2                         ## @HZ
	.no_dead_strip	___ib_drain_rq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __ib_drain_rq
___ib_drain_rq:                         ; @__ib_drain_rq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
Lloh0:
	adrp	x8, _IB_QPS_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IB_QPS_ERR@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh3:
	adrp	x8, _IB_QP_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IB_QP_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x1, sp, #24
	bl	_ib_modify_qp
	cbnz	w0, LBB0_2
; %bb.1:
	add	x8, sp, #16
	orr	x8, x8, #0x4
	str	x8, [sp, #8]
Lloh6:
	adrp	x8, _ib_drain_qp_done@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ib_drain_qp_done@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [sp, #20]
	add	x0, sp, #16
	bl	_init_completion
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, #0
	bl	_ib_post_recv
	cbz	w0, LBB0_4
LBB0_2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x0
	bl	_WARN_ONCE
LBB0_3:
	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
	add	sp, sp, #80
	ret
LBB0_4:
	ldr	x8, [x19]
Lloh11:
	adrp	x9, _IB_POLL_DIRECT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IB_POLL_DIRECT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
Lloh14:
	adrp	x20, _HZ@GOTPAGE
Lloh15:
	ldr	x20, [x20, _HZ@GOTPAGEOFF]
	ldrsw	x8, [x20]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	add	x0, sp, #16
	bl	_wait_for_completion_timeout
	cmp	x0, #0
	b.gt	LBB0_3
; %bb.6:
	mov	w21, #26215
	movk	w21, #26214, lsl #16
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	w1, #-1
	bl	_ib_process_cq_direct
	ldrsw	x8, [x20]
	mul	x8, x8, x21
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w1, w8, w9
	add	x0, sp, #16
	bl	_wait_for_completion_timeout
	cmp	x0, #1
	b.lt	LBB0_7
	b	LBB0_3
LBB0_8:
	add	x0, sp, #16
	bl	_wait_for_completion
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_IB_QPS_ERR,4,2                 ; @IB_QPS_ERR
	.comm	_IB_QP_STATE,4,2                ; @IB_QP_STATE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to drain recv queue: %d\n"

	.comm	_ib_drain_qp_done,4,2           ; @ib_drain_qp_done
	.comm	_IB_POLL_DIRECT,8,3             ; @IB_POLL_DIRECT
	.comm	_HZ,4,2                         ; @HZ
	.no_dead_strip	___ib_drain_rq
.subsections_via_symbols
