	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function velocity_rx_srv
_velocity_rx_srv:                       ## @velocity_rx_srv
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	testl	%esi, %esi
	jle	LBB0_17
## %bb.1:
	movq	%rdi, %r15
	movl	(%rdi), %ebx
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	(%rax)
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_RX_INTEN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14,%r13,4)
	incl	%ebx
	cmpl	24(%r15), %ebx
	movl	$0, %eax
	cmovgel	%eax, %ebx
	incl	%r12d
	cmpl	%r12d, -44(%rbp)                ## 4-byte Folded Reload
	je	LBB0_13
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movslq	%ebx, %rax
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	16(%r15), %r14
	leaq	(%rax,%rax,2), %r13
	movq	_OWNED_BY_NIC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r14,%r13,4)
	jne	LBB0_14
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
	callq	_rmb
	movq	_RSR_CE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_RSR_RXOK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	8(%r14,%r13,4), %eax
	movq	_RSR_RL@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	testl	%eax, %ecx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_velocity_receive_frame
	testq	%rax, %rax
	jns	LBB0_3
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	_RSR_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	incl	8(%rcx)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_RSR_FAE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	4(%rax)
	jmp	LBB0_2
LBB0_13:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
LBB0_14:
	movl	%ebx, (%r15)
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.15:
	movq	%r15, %rdi
	callq	_velocity_rx_refill
	testq	%rax, %rax
	jle	LBB0_18
## %bb.16:
	movq	%r15, %rdi
	callq	_velocity_give_many_rx_descs
	jmp	LBB0_18
LBB0_17:
	xorl	%r12d, %r12d
LBB0_18:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_VAR_USED
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OWNED_BY_NIC,4,2               ## @OWNED_BY_NIC
	.comm	_RSR_RXOK,4,2                   ## @RSR_RXOK
	.comm	_RSR_CE,4,2                     ## @RSR_CE
	.comm	_RSR_RL,4,2                     ## @RSR_RL
	.comm	_RSR_CRC,4,2                    ## @RSR_CRC
	.comm	_RSR_FAE,4,2                    ## @RSR_FAE
	.comm	_RX_INTEN,4,2                   ## @RX_INTEN
	.no_dead_strip	_velocity_rx_srv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function velocity_rx_srv
_velocity_rx_srv:                       ; @velocity_rx_srv
	.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
	ldr	x19, [x0, #32]
	cmp	w1, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x23, x1
	mov	x21, x0
	mov	w20, #0
	ldr	w22, [x0]
	mov	w24, #12
Lloh0:
	adrp	x25, _OWNED_BY_NIC@GOTPAGE
Lloh1:
	ldr	x25, [x25, _OWNED_BY_NIC@GOTPAGEOFF]
Lloh2:
	adrp	x26, _RX_INTEN@GOTPAGE
Lloh3:
	ldr	x26, [x26, _RX_INTEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	mul	x9, x28, x24
	ldr	w10, [x27, x9]
	orr	w8, w10, w8
	str	w8, [x27, x9]
	add	w8, w22, #1
	ldr	w9, [x21, #24]
	cmp	w8, w9
	csinc	w22, wzr, w22, ge
	add	w20, w20, #1
	cmp	w23, w20
	b.eq	LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	ldr	w8, [x8, w22, sxtw #2]
	cbz	w8, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x27, [x21, #16]
	sxtw	x28, w22
	madd	x8, x28, x24, x27
	ldr	w8, [x8, #4]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_rmb
	madd	x8, x28, x24, x27
	ldr	w8, [x8, #8]
Lloh4:
	adrp	x9, _RSR_RXOK@GOTPAGE
Lloh5:
	ldr	x9, [x9, _RSR_RXOK@GOTPAGEOFF]
Lloh6:
	ldr	w9, [x9]
Lloh7:
	adrp	x10, _RSR_CE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RSR_CE@GOTPAGEOFF]
Lloh9:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh10:
	adrp	x10, _RSR_RL@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RSR_RL@GOTPAGEOFF]
Lloh12:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_velocity_receive_frame
	tbz	x0, #63, LBB0_3
	b	LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh13:
	adrp	x9, _RSR_CRC@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RSR_CRC@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x19, #8]
	add	w9, w9, #1
	str	w9, [x19, #8]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh16:
	adrp	x9, _RSR_FAE@GOTPAGE
Lloh17:
	ldr	x9, [x9, _RSR_FAE@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	b	LBB0_2
LBB0_12:
	mov	w20, #0
	b	LBB0_17
LBB0_13:
	mov	x20, x23
LBB0_14:
	str	w22, [x21]
	cbz	w20, LBB0_17
; %bb.15:
	mov	x0, x21
	bl	_velocity_rx_refill
	cmp	x0, #1
	b.lt	LBB0_17
; %bb.16:
	mov	x0, x21
	bl	_velocity_give_many_rx_descs
LBB0_17:
	mov	x0, x19
	bl	_VAR_USED
	mov	x0, x20
	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
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_OWNED_BY_NIC,4,2               ; @OWNED_BY_NIC
	.comm	_RSR_RXOK,4,2                   ; @RSR_RXOK
	.comm	_RSR_CE,4,2                     ; @RSR_CE
	.comm	_RSR_RL,4,2                     ; @RSR_RL
	.comm	_RSR_CRC,4,2                    ; @RSR_CRC
	.comm	_RSR_FAE,4,2                    ; @RSR_FAE
	.comm	_RX_INTEN,4,2                   ; @RX_INTEN
	.no_dead_strip	_velocity_rx_srv
.subsections_via_symbols
