	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_total_ready_bytes          ## -- Begin function get_total_ready_bytes
	.p2align	4, 0x90
_get_total_ready_bytes:                 ## @get_total_ready_bytes
	.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	%rdi, %r14
	movq	(%rdi), %rax
	movq	_NB_MAGIC_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_NB_MAGIC_BUSYHEAD@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	8(%r14), %r12d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movl	12(%r14), %r12d
LBB0_2:
	subl	16(%r14), %r12d
	movl	%r12d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movq	%r14, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %r13
	cmpq	%r14, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13), %eax
	movl	12(%r13), %ebx
	testl	%eax, %eax
	setne	%cl
	cmpl	%ebx, %eax
	setl	%r15b
	andb	%cl, %r15b
	cmovnel	%eax, %ebx
	subl	16(%r13), %ebx
	setns	%al
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %ebx
	setle	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	addl	%ebx, %r12d
	cmpb	$1, %r15b
	jne	LBB0_3
LBB0_5:
	xorl	%edi, %edi
	cmpl	20(%r14), %r12d
	sete	%dil
	callq	_assert
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ## @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ## @NB_MAGIC_BUSYHEAD
	.comm	_NET_BUFFER_SIZE,4,2            ## @NET_BUFFER_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_total_ready_bytes          ; -- Begin function get_total_ready_bytes
	.p2align	2
_get_total_ready_bytes:                 ; @get_total_ready_bytes
	.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
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NB_MAGIC_HEAD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NB_MAGIC_HEAD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _NB_MAGIC_BUSYHEAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NB_MAGIC_BUSYHEAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_assert
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #12]
LBB0_2:
	ldr	w9, [x19, #16]
	sub	w20, w8, w9
	mvn	w8, w20
	lsr	w0, w8, #31
	bl	_assert
Lloh6:
	adrp	x21, _NET_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _NET_BUFFER_SIZE@GOTPAGEOFF]
	mov	x22, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x22, #24]
	cmp	x22, x19
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	w9, w8, [x22, #12]
	ldr	w10, [x22, #8]
	cmp	w10, #0
	cset	w11, ne
	cmp	w10, w9
	cset	w12, lt
	ands	w23, w11, w12
	csel	w9, w10, w9, ne
	sub	w24, w9, w8
	cmp	w24, #0
	ldr	w8, [x21]
	ccmp	w24, w8, #0, ge
	cset	w0, le
	bl	_assert
	add	w20, w24, w20
	cmp	w23, #1
	b.ne	LBB0_3
LBB0_5:
	ldr	w8, [x19, #20]
	cmp	w20, w8
	cset	w0, eq
	bl	_assert
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ; @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
	.comm	_NET_BUFFER_SIZE,4,2            ; @NET_BUFFER_SIZE
.subsections_via_symbols
