	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nbit_ready_bytes               ## -- Begin function nbit_ready_bytes
	.p2align	4, 0x90
_nbit_ready_bytes:                      ## @nbit_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movq	8(%rdi), %r13
	movq	(%r13), %rax
	xorl	%edi, %edi
	cmpq	8(%r13), %rax
	setle	%dil
	callq	_assert
	movq	(%r12), %rax
	xorl	%edi, %edi
	cmpq	%rax, (%r13)
	jg	LBB0_4
## %bb.3:
	xorl	%edi, %edi
	cmpq	8(%r13), %rax
	setle	%dil
LBB0_4:
	callq	_assert
	movq	(%r12), %rax
	movq	8(%r13), %r15
	cmpq	%r15, %rax
	jge	LBB0_7
## %bb.5:
	movl	16(%r13), %ecx
	testl	%ecx, %ecx
	cmovnel	%ecx, %r15d
LBB0_6:
	subl	%eax, %r15d
	jmp	LBB0_13
LBB0_1:
	xorl	%r15d, %r15d
	jmp	LBB0_13
LBB0_7:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	24(%rcx), %rax
	movq	%rcx, %rbx
	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	32(%rbx), %r14d
	movq	_NET_BUFFERS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	$12, %eax
	xorl	%edi, %edi
	cmpl	%eax, %r14d
	setl	%dil
	callq	_assert
	movq	40(%r13), %rbx
	xorl	%r15d, %r15d
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	je	LBB0_13
## %bb.8:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	incl	%r14d
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	testl	%r14d, %r14d
	setg	%dil
	callq	_assert
	movq	8(%rbx), %r12
	subq	(%rbx), %r12
	xorl	%edi, %edi
	cmpl	%r12d, (%r13)
	setae	%dil
	callq	_assert
	testl	%r12d, %r12d
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_10 Depth=1
	decl	%r14d
	movq	40(%rbx), %rbx
	cmpq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	jne	LBB0_10
	jmp	LBB0_13
LBB0_11:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rbx, 8(%rcx)
	movq	(%rbx), %rax
	movq	%rax, (%rcx)
	movl	16(%rbx), %r15d
	testl	%r15d, %r15d
	jne	LBB0_6
## %bb.12:
	movl	%r12d, %r15d
LBB0_13:
	movl	%r15d, %eax
	addq	$24, %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_BUFFERS,4,2                ## @NET_BUFFERS
	.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	_nbit_ready_bytes               ; -- Begin function nbit_ready_bytes
	.p2align	2
_nbit_ready_bytes:                      ; @nbit_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
	ldr	x20, [x0, #16]
	cbz	x20, LBB0_10
; %bb.1:
	mov	x19, x0
	ldr	x21, [x0, #8]
	ldp	x8, x9, [x21]
	cmp	x8, x9
	cset	w0, le
	bl	_assert
	ldr	x9, [x21]
	ldr	x8, [x19]
	cmp	x9, x8
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x9, [x21, #8]
	cmp	x8, x9
	cset	w0, le
LBB0_4:
	bl	_assert
	ldr	x8, [x19]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ge	LBB0_6
; %bb.5:
	ldr	w10, [x21, #16]
	cmp	w10, #0
	csel	w9, w9, w10, eq
	sub	w0, w9, w8
	b	LBB0_11
LBB0_6:
	ldr	x8, [x20, #24]
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	w22, [x20, #32]
Lloh6:
	adrp	x8, _NET_BUFFERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NET_BUFFERS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w8, w8, #12
	cmp	w22, w8
	cset	w0, lt
	bl	_assert
	ldr	x21, [x21, #40]
	cmp	x21, x20
	b.eq	LBB0_10
; %bb.7:
	add	w22, w22, #1
Lloh9:
	adrp	x23, _NET_BUFFER_SIZE@GOTPAGE
Lloh10:
	ldr	x23, [x23, _NET_BUFFER_SIZE@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w22, #0
	cset	w0, gt
	bl	_assert
	ldp	x9, x8, [x21]
	ldr	w10, [x23]
	sub	x24, x8, x9
	cmp	w10, w24
	cset	w0, hs
	bl	_assert
	cbnz	w24, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	sub	w22, w22, #1
	ldr	x21, [x21, #40]
	cmp	x21, x20
	b.ne	LBB0_8
LBB0_10:
	mov	w0, #0
LBB0_11:
	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_12:
	ldr	x8, [x21]
	stp	x8, x21, [x19]
	ldr	w9, [x21, #16]
	sub	w8, w9, w8
	cmp	w9, #0
	csel	w0, w24, w8, eq
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NB_MAGIC_HEAD,8,3              ; @NB_MAGIC_HEAD
	.comm	_NB_MAGIC_BUSYHEAD,8,3          ; @NB_MAGIC_BUSYHEAD
	.comm	_NET_BUFFERS,4,2                ; @NET_BUFFERS
	.comm	_NET_BUFFER_SIZE,4,2            ; @NET_BUFFER_SIZE
.subsections_via_symbols
