	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_process_rx                 ## -- Begin function sdp_process_rx
	.p2align	4, 0x90
_sdp_process_rx:                        ## @sdp_process_rx
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_rx_ring_trylock
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_tx_credits
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_sdp_poll_rx_cq
	movl	%eax, %r14d
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rdx
	xorl	%esi, %esi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_sdp_prf
	testl	%r14d, %r14d
	je	LBB0_4
## %bb.3:
	movl	8(%rbx), %r12d
	movq	%rbx, %rdi
	callq	_tx_credits
	leaq	L_.str.2(%rip), %rdx
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%r15d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_sdp_prf
	movq	_rx_comp_wq@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%rbx), %rsi
	callq	_queue_work
LBB0_4:
	movq	%rbx, %rdi
	callq	_sdp_arm_rx_cq
	movq	%rbx, %rdi
	callq	_rx_ring_unlock
	jmp	LBB0_5
LBB0_1:
	movl	8(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sdp_dbg
	xorl	%r14d, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ring destroyed. not polling it\n"

L_.str.1:                               ## @.str.1
	.asciz	"processed %d"

L_.str.2:                               ## @.str.2
	.asciz	"credits:  %d -> %d"

	.comm	_rx_comp_wq,4,2                 ## @rx_comp_wq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sdp_process_rx                 ; -- Begin function sdp_process_rx
	.p2align	2
_sdp_process_rx:                        ; @sdp_process_rx
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_rx_ring_trylock
	cbz	w0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_tx_credits
	mov	x21, x0
	mov	x0, x19
	bl	_sdp_poll_rx_cq
	mov	x20, x0
	ldr	w0, [x19, #8]
Lloh0:
	adrp	x2, l_.str.1@PAGE
Lloh1:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, #0
	mov	x3, x20
	bl	_sdp_prf
	cbz	w20, LBB0_3
; %bb.2:
	ldr	w22, [x19, #8]
	mov	x0, x19
	bl	_tx_credits
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh2:
	adrp	x2, l_.str.2@PAGE
Lloh3:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x22
	mov	x1, #0
	mov	x3, x21
	bl	_sdp_prf
Lloh4:
	adrp	x8, _rx_comp_wq@GOTPAGE
Lloh5:
	ldr	x8, [x8, _rx_comp_wq@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_queue_work
LBB0_3:
	mov	x0, x19
	bl	_sdp_arm_rx_cq
	mov	x0, x19
	bl	_rx_ring_unlock
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sdp_dbg
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ring destroyed. not polling it\n"

l_.str.1:                               ; @.str.1
	.asciz	"processed %d"

l_.str.2:                               ; @.str.2
	.asciz	"credits:  %d -> %d"

	.comm	_rx_comp_wq,4,2                 ; @rx_comp_wq
.subsections_via_symbols
