	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parse_single_wc
_parse_single_wc:                       ## @parse_single_wc
	.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	%r9, %r15
	movl	16(%rbp), %r12d
	movq	_IBV_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	cmpl	$129, %r15d
	je	LBB0_5
## %bb.3:
	cmpl	$128, %r15d
	jne	LBB0_16
## %bb.4:
	incl	(%rsi)
	jmp	LBB0_18
LBB0_1:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%r12d, %edi
	callq	_ibv_wc_status_str
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edi
	movq	%rax, %rdx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_5:
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movl	(%rcx), %ecx
	leal	-1(%rcx), %eax
	movl	%eax, (%rbx)
	cmpl	$2, %ecx
	jg	LBB0_9
## %bb.6:
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movl	(%r14), %esi
	subl	%eax, %esi
	movq	%r14, %rdi
	movl	%r8d, %r12d
	callq	_pp_post_recv
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %r8d
	addl	(%rbx), %eax
	movl	%eax, (%rbx)
	cmpl	(%r14), %eax
	jge	LBB0_9
## %bb.7:
	movq	_stderr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	jmp	LBB0_8
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r15d, %edx
LBB0_8:
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_9:
	incl	(%r13)
	movq	32(%rbp), %rbx
	movq	_use_ts@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_17
## %bb.10:
	movq	24(%rbp), %rdx
	cmpl	$0, (%rbx)
	je	LBB0_15
## %bb.11:
	movq	8(%rbx), %rax
	cmpq	%rdx, %rax
	jle	LBB0_12
## %bb.13:
	movq	8(%r14), %rcx
	subq	%rax, %rdx
	leaq	(%rdx,%rcx), %r12
	incq	%r12
	jmp	LBB0_14
LBB0_17:
	movl	$0, (%rbx)
	jmp	LBB0_18
LBB0_12:
	movq	%rdx, %r12
	subq	%rax, %r12
LBB0_14:
	movl	36(%rbx), %edi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	movl	%r8d, %r13d
	callq	_MAX
	movl	%eax, 36(%rbx)
	movl	32(%rbx), %edi
	movq	%r12, %rsi
	callq	_MIN
	movq	24(%rbp), %rdx
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%r13d, %r8d
	movl	%eax, 32(%rbx)
	addq	%r12, 24(%rbx)
	incl	16(%rbx)
LBB0_15:
	movq	%rdx, 8(%rbx)
	movl	$1, (%rbx)
LBB0_18:
	notl	%r15d
	andl	4(%r14), %r15d
	movl	%r15d, 4(%r14)
	xorl	%ebx, %ebx
	cmpl	%r8d, (%rsi)
	jge	LBB0_23
## %bb.19:
	testl	%r15d, %r15d
	jne	LBB0_23
## %bb.20:
	movq	%r14, %rdi
	callq	_pp_post_send
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_fprintf
	movl	$1, %ebx
	jmp	LBB0_23
LBB0_22:
	movl	$129, 4(%r14)
LBB0_23:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IBV_WC_SUCCESS,4,2             ## @IBV_WC_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed status %s (%d) for wr_id %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Couldn't post receive (%d)\n"

	.comm	_use_ts,4,2                     ## @use_ts
L_.str.2:                               ## @.str.2
	.asciz	"Completion for unknown wr_id %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Couldn't post send\n"

	.no_dead_strip	_parse_single_wc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parse_single_wc
_parse_single_wc:                       ; @parse_single_wc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x5
Lloh0:
	adrp	x8, _IBV_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IBV_WC_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w6
	b.ne	LBB0_4
; %bb.1:
	mov	x21, x4
	mov	x22, x1
	mov	x19, x0
	cmp	w20, #129
	b.eq	LBB0_5
; %bb.2:
	cmp	w20, #128
	b.ne	LBB0_8
; %bb.3:
	ldr	w8, [x22]
	add	w8, w8, #1
	str	w8, [x22]
	b	LBB0_17
LBB0_4:
	mov	x26, x6
Lloh3:
	adrp	x8, _stderr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	mov	x0, x6
	bl	_ibv_wc_status_str
	stp	x26, x20, [sp, #8]
	str	x0, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	b	LBB0_21
LBB0_5:
	mov	x23, x7
	mov	x25, x3
	mov	x24, x2
	ldr	w9, [x3]
	sub	w8, w9, #1
	str	w8, [x3]
	cmp	w9, #2
	b.gt	LBB0_9
; %bb.6:
	ldr	w9, [x19]
	sub	w1, w9, w8
	mov	x0, x19
	bl	_pp_post_recv
	ldr	w8, [x25]
	add	w8, w8, w0
	str	w8, [x25]
	ldr	w9, [x19]
	cmp	w8, w9
	b.ge	LBB0_9
; %bb.7:
Lloh8:
	adrp	x9, _stderr@GOTPAGE
Lloh9:
	ldr	x9, [x9, _stderr@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x9]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_8:
Lloh13:
	adrp	x8, _stderr@GOTPAGE
Lloh14:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
                                        ; kill: def $w20 killed $w20 killed $x20 def $x20
	str	x20, [sp]
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_9:
	ldr	x25, [x29, #16]
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
Lloh18:
	adrp	x8, _use_ts@GOTPAGE
Lloh19:
	ldr	x8, [x8, _use_ts@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	cbz	w8, LBB0_13
; %bb.10:
	ldr	w8, [x25]
	cbz	w8, LBB0_16
; %bb.11:
	ldr	x8, [x25, #8]
	cmp	x8, x23
	b.le	LBB0_14
; %bb.12:
	ldr	x9, [x19, #8]
	sub	x8, x23, x8
	add	x8, x8, x9
	add	x24, x8, #1
	b	LBB0_15
LBB0_13:
	str	wzr, [x25]
	b	LBB0_17
LBB0_14:
	sub	x24, x23, x8
LBB0_15:
	ldr	w0, [x25, #36]
	mov	x1, x24
	bl	_MAX
	str	w0, [x25, #36]
	ldr	w0, [x25, #32]
	mov	x1, x24
	bl	_MIN
	str	w0, [x25, #32]
	ldr	x8, [x25, #24]
	add	x8, x8, x24
	str	x8, [x25, #24]
	ldr	w8, [x25, #16]
	add	w8, w8, #1
	str	w8, [x25, #16]
LBB0_16:
	str	x23, [x25, #8]
	mov	w8, #1
	str	w8, [x25]
LBB0_17:
	mov	w0, #0
	ldr	w8, [x19, #4]
	bic	w8, w8, w20
	str	w8, [x19, #4]
	ldr	w9, [x22]
	cmp	w9, w21
	b.ge	LBB0_22
; %bb.18:
	cbnz	w8, LBB0_22
; %bb.19:
	mov	x0, x19
	bl	_pp_post_send
	cbz	x0, LBB0_23
; %bb.20:
Lloh21:
	adrp	x8, _stderr@GOTPAGE
Lloh22:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x1, l_.str.3@PAGE
Lloh25:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_21:
	bl	_fprintf
	mov	w0, #1
LBB0_22:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_23:
	mov	w8, #129
	str	w8, [x19, #4]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IBV_WC_SUCCESS,4,2             ; @IBV_WC_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed status %s (%d) for wr_id %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Couldn't post receive (%d)\n"

	.comm	_use_ts,4,2                     ; @use_ts
l_.str.2:                               ; @.str.2
	.asciz	"Completion for unknown wr_id %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Couldn't post send\n"

	.no_dead_strip	_parse_single_wc
.subsections_via_symbols
