	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdmasniff_read
_rdmasniff_read:                        ## @rdmasniff_read
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	32(%rdi), %r13
	cmpl	$0, (%r13)
	je	LBB0_1
LBB0_7:
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	jl	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r15d, %edi
	callq	_PACKET_COUNT_IS_UNLIMITED
	testq	%rax, %rax
	je	LBB0_20
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	8(%r13), %edi
	movl	$1, %esi
	leaq	-88(%rbp), %rdx
	callq	_ibv_poll_cq
	cmpl	$1, %eax
	jne	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rbx
	movq	_IBV_WC_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movslq	-80(%rbp), %r14
	movq	%rbx, %rdi
	callq	_ibv_wc_status_str
	movl	%r12d, %edi
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdx
	movq	%rbx, %rcx
	movl	%eax, %r8d
	callq	_fprintf
	jmp	LBB0_8
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-76(%rbp), %edi
	movl	%edi, -68(%rbp)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	24(%rbx), %esi
	callq	_min
	movl	%eax, -72(%rbp)
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	callq	_gettimeofday
	movslq	-80(%rbp), %rax
	movq	_RDMASNIFF_RECEIVE_SIZE@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %r12
	imulq	%rax, %r12
	shlq	$2, %r12
	addq	16(%rbx), %r12
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-72(%rbp), %ecx
	movl	-68(%rbp), %edx
	movq	%r12, %rsi
	callq	_bpf_filter
	testq	%rax, %rax
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	movq	%r12, %rdx
	callq	*-96(%rbp)                      ## 8-byte Folded Reload
	incl	4(%r13)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-80(%rbp), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_rdmasniff_post_recv
	cmpq	$0, (%rbx)
	je	LBB0_8
	jmp	LBB0_18
LBB0_11:
	movl	$0, (%r13)
	jmp	LBB0_20
LBB0_1:
	leaq	-112(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %r12
	movq	_EINTR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	12(%r13), %edi
	leaq	-120(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_ibv_get_cq_event
	testq	%rax, %rax
	jns	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	cmpq	(%r14), %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_2
LBB0_18:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_PCAP_ERROR_BREAK@GOTPCREL(%rip), %rax
	jmp	LBB0_19
LBB0_6:
	movl	8(%r13), %edi
	movl	$1, %esi
	callq	_ibv_ack_cq_events
	movl	8(%r13), %edi
	xorl	%esi, %esi
	callq	_ibv_req_notify_cq
	movl	$1, (%r13)
	jmp	LBB0_7
LBB0_4:
	movq	_PCAP_ERROR@GOTPCREL(%rip), %rax
LBB0_19:
	movl	(%rax), %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_PCAP_ERROR,4,2                 ## @PCAP_ERROR
	.comm	_PCAP_ERROR_BREAK,4,2           ## @PCAP_ERROR_BREAK
	.comm	_IBV_WC_SUCCESS,8,3             ## @IBV_WC_SUCCESS
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed WC wr_id %lld status %d/%s\n"

	.comm	_RDMASNIFF_RECEIVE_SIZE,4,2     ## @RDMASNIFF_RECEIVE_SIZE
	.no_dead_strip	_rdmasniff_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdmasniff_read
_rdmasniff_read:                        ; @rdmasniff_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	x2, x3, [sp, #16]               ; 16-byte Folded Spill
	mov	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #32]
	ldr	w8, [x20]
	cbz	w8, LBB0_12
LBB0_1:
	mov	w23, #0
	add	x8, sp, #32
	add	x8, x8, #8
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x21, _IBV_WC_SUCCESS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _IBV_WC_SUCCESS@GOTPAGEOFF]
Lloh2:
	adrp	x24, _stderr@GOTPAGE
Lloh3:
	ldr	x24, [x24, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x25, l_.str@PAGE
Lloh5:
	add	x25, x25, l_.str@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, w22
	b.lt	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_PACKET_COUNT_IS_UNLIMITED
	cbz	x0, LBB0_20
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x20, #8]
	add	x2, sp, #48
	mov	w1, #1
	bl	_ibv_poll_cq
	cmp	w0, #1
	b.ne	LBB0_11
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x26, [sp, #48]
	ldr	x8, [x21]
	cmp	x26, x8
	b.eq	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w27, [x24]
	ldrsw	x28, [sp, #56]
	mov	x0, x26
	bl	_ibv_wc_status_str
	mov	x4, x0
	mov	x0, x27
	mov	x1, x25
	mov	x2, x28
	mov	x3, x26
	bl	_fprintf
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [sp, #60]
	str	w0, [sp, #36]
	ldr	w1, [x19, #24]
	bl	_min
	str	w0, [sp, #32]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, #0
	bl	_gettimeofday
	ldr	w8, [sp, #56]
Lloh6:
	adrp	x9, _RDMASNIFF_RECEIVE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RDMASNIFF_RECEIVE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w8, w9, w8
	ldp	x0, x9, [x19, #8]
	add	x26, x9, w8, sxtw #2
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w3, w2, [sp, #32]
	mov	x1, x26
	bl	_bpf_filter
	cbz	x0, LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #32
	ldp	x8, x0, [sp, #16]               ; 16-byte Folded Reload
	mov	x2, x26
	blr	x8
	ldr	w8, [x20, #4]
	add	w8, w8, #1
	str	w8, [x20, #4]
	add	w23, w23, #1
LBB0_10:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w1, [sp, #56]
	mov	x0, x19
	bl	_rdmasniff_post_recv
	ldr	x8, [x19]
	cbz	x8, LBB0_2
	b	LBB0_16
LBB0_11:
	str	wzr, [x20]
	b	LBB0_20
LBB0_12:
Lloh9:
	adrp	x21, _errno@GOTPAGE
Lloh10:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh11:
	adrp	x23, _EINTR@GOTPAGE
Lloh12:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #12]
	add	x1, sp, #72
	add	x2, sp, #64
	bl	_ibv_get_cq_event
	tbz	x0, #63, LBB0_17
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x21]
	ldr	x9, [x23]
	cmp	x8, x9
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	x8, [x19]
	cbz	x8, LBB0_13
LBB0_16:
	str	xzr, [x19]
Lloh13:
	adrp	x8, _PCAP_ERROR_BREAK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PCAP_ERROR_BREAK@GOTPAGEOFF]
	b	LBB0_19
LBB0_17:
	ldr	w0, [x20, #8]
	mov	w21, #1
	mov	w1, #1
	bl	_ibv_ack_cq_events
	ldr	w0, [x20, #8]
	mov	w1, #0
	bl	_ibv_req_notify_cq
	str	w21, [x20]
	b	LBB0_1
LBB0_18:
Lloh15:
	adrp	x8, _PCAP_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCAP_ERROR@GOTPAGEOFF]
LBB0_19:
	ldr	w23, [x8]
LBB0_20:
	mov	x0, x23
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_PCAP_ERROR,4,2                 ; @PCAP_ERROR
	.comm	_PCAP_ERROR_BREAK,4,2           ; @PCAP_ERROR_BREAK
	.comm	_IBV_WC_SUCCESS,8,3             ; @IBV_WC_SUCCESS
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed WC wr_id %lld status %d/%s\n"

	.comm	_RDMASNIFF_RECEIVE_SIZE,4,2     ; @RDMASNIFF_RECEIVE_SIZE
	.no_dead_strip	_rdmasniff_read
.subsections_via_symbols
