	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdp_post_recvs_needed
_sdp_post_recvs_needed:                 ## @sdp_post_recvs_needed
	.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
	xorl	%r15d, %r15d
	cmpl	$0, 16(%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_5
## %bb.2:
	movq	%rbx, %rdi
	callq	_rx_ring_posted
	movl	%eax, %r14d
	movq	_SDP_RX_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_5
## %bb.3:
	movq	_SDP_MIN_TX_CREDITS@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	$1, %r15d
	cmpl	%esi, %r14d
	jl	LBB0_5
## %bb.4:
	movl	(%rbx), %r15d
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	incl	%esi
	imull	%r15d, %esi
	callq	_max
	movq	%rax, %r12
	movq	_rcvbuf_scale@GOTPCREL(%rip), %rax
	imulq	(%rax), %r12
	subl	(%r13), %r14d
	imull	%r15d, %r14d
	movslq	%r14d, %r14
	movq	8(%rbx), %rdi
	callq	_sbused
	addq	%r14, %rax
	xorl	%r15d, %r15d
	cmpq	%r12, %rax
	setb	%r15b
LBB0_5:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SDP_RX_SIZE,4,2                ## @SDP_RX_SIZE
	.comm	_SDP_MIN_TX_CREDITS,4,2         ## @SDP_MIN_TX_CREDITS
	.comm	_rcvbuf_scale,8,3               ## @rcvbuf_scale
	.no_dead_strip	_sdp_post_recvs_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdp_post_recvs_needed
_sdp_post_recvs_needed:                 ; @sdp_post_recvs_needed
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0, #16]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_5
; %bb.2:
	mov	x0, x19
	bl	_rx_ring_posted
Lloh0:
	adrp	x8, _SDP_RX_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SDP_RX_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ge	LBB0_5
; %bb.3:
	mov	x20, x0
Lloh3:
	adrp	x21, _SDP_MIN_TX_CREDITS@GOTPAGE
Lloh4:
	ldr	x21, [x21, _SDP_MIN_TX_CREDITS@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ge	LBB0_7
; %bb.4:
	mov	w0, #1
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w22, [x19]
	ldr	x9, [x19, #8]
	ldr	w0, [x9]
	madd	w1, w22, w8, w22
	bl	_max
Lloh5:
	adrp	x8, _rcvbuf_scale@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rcvbuf_scale@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	mul	x23, x8, x0
	ldr	w8, [x21]
	sub	w8, w20, w8
	mul	w20, w8, w22
	ldr	x0, [x19, #8]
	bl	_sbused
	add	x8, x0, w20, sxtw
	cmp	x8, x23
	cset	w0, lo
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SDP_RX_SIZE,4,2                ; @SDP_RX_SIZE
	.comm	_SDP_MIN_TX_CREDITS,4,2         ; @SDP_MIN_TX_CREDITS
	.comm	_rcvbuf_scale,8,3               ; @rcvbuf_scale
	.no_dead_strip	_sdp_post_recvs_needed
.subsections_via_symbols
