	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_force_ready_bytes              ## -- Begin function force_ready_bytes
	.p2align	4, 0x90
_force_ready_bytes:                     ## @force_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	%rdi, %rbx
	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
	movl	%esi, %r15d
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_assert
	movl	%r15d, %edi
	notl	%edi
	shrl	$31, %edi
	callq	_assert
	movslq	8(%rbx), %r14
	movslq	12(%rbx), %rax
	movq	16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.1:
	cmpq	%r14, %rcx
	jne	LBB0_2
LBB0_3:
	subl	%eax, %r14d
	cmpl	%r15d, %r14d
	jge	LBB0_26
## %bb.4:
	movq	56(%rbx), %rcx
	cmpq	%rbx, %rcx
	je	LBB0_26
## %bb.5:
	movq	_NET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r15d, %eax
	cmovll	%eax, %r15d
	movq	16(%rcx), %r12
	testq	%r12, %r12
	jne	LBB0_7
## %bb.6:
	movl	8(%rcx), %r12d
LBB0_7:
	movl	12(%rcx), %edx
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
                                        ## kill: def $r12d killed $r12d killed $r12 def $r12
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	subl	%edx, %r12d
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpl	%eax, %r12d
	setbe	%dil
	callq	_assert
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leal	(%r12,%r14), %r13d
	cmpl	%r15d, %r13d
	jge	LBB0_9
## %bb.8:
	cmpq	%rbx, 56(%rdx)
	je	LBB0_9
## %bb.20:
	testl	%r14d, %r14d
	jle	LBB0_22
## %bb.21:
	movl	12(%rbx), %esi
	movl	24(%rbx), %edi
	movl	%r14d, %edx
	callq	_memmove
LBB0_22:
	movslq	24(%rbx), %rsi
	movl	%esi, 8(%rbx)
	movl	%esi, 12(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_24
## %bb.23:
	movq	%rsi, 16(%rbx)
LBB0_24:
	movl	28(%rbx), %edx
	subl	%esi, %edx
	cmpl	%edx, %r15d
	cmovll	%r15d, %edx
	addl	%r14d, %esi
	subl	%r14d, %edx
	movq	%rbx, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_read_in
	addl	%eax, 40(%rbx)
	addl	%eax, %r14d
	movslq	8(%rbx), %rcx
	movslq	%r14d, %rax
	addq	%rcx, %rax
	movl	%eax, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_26
## %bb.25:
	movq	%rax, 16(%rbx)
	jmp	LBB0_26
LBB0_2:
	cmpq	%rax, %rcx
	setge	%al
	cmpq	%r14, %rcx
	setl	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_assert
	movl	16(%rbx), %r13d
	subl	12(%rbx), %r13d
	jmp	LBB0_27
LBB0_9:
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	cmpl	-64(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_10
LBB0_26:
	movl	%r14d, %r13d
LBB0_27:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	12(%rdx), %eax
	movl	%eax, %ecx
	subl	24(%rdx), %ecx
	cmpl	%ecx, %r14d
	jle	LBB0_11
## %bb.13:
	subl	%r14d, %r15d
	cmpl	%r15d, %r12d
	cmovll	%r12d, %r15d
	movl	8(%rbx), %edi
	movl	28(%rbx), %r13d
	subl	%edi, %r13d
	cmpl	%r13d, %r15d
	jle	LBB0_15
## %bb.14:
	movl	12(%rbx), %esi
	movl	24(%rbx), %edi
	movl	%r14d, %edx
	callq	_memmove
	movl	24(%rbx), %edi
	movl	28(%rbx), %r13d
	movl	%edi, 12(%rbx)
	addl	%r14d, %edi
	movl	%edi, 8(%rbx)
	subl	%edi, %r13d
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax), %eax
LBB0_15:
	cmpl	%r13d, %r15d
	cmovll	%r15d, %r13d
	movl	%eax, %esi
	movl	%r13d, %edx
	callq	_memcpy
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	12(%r12), %eax
	addl	%r13d, %eax
	movl	%eax, 12(%r12)
	movslq	8(%rbx), %rdx
	movslq	%r13d, %rcx
	addq	%rdx, %rcx
	movl	%ecx, 8(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_17
## %bb.16:
	movq	%rcx, 16(%rbx)
LBB0_17:
	cmpl	8(%r12), %eax
	jne	LBB0_19
## %bb.18:
	movq	56(%r12), %r15
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	setg	%dil
	callq	_assert
	movq	%r15, 56(%rbx)
	movq	%rbx, 48(%r15)
	movq	%r12, %rdi
	callq	_free_buffer
	decq	32(%rbx)
LBB0_19:
	addl	%r14d, %r13d
	jmp	LBB0_27
LBB0_11:
	subl	%r14d, %eax
	movl	%eax, 12(%rdx)
	movl	12(%rbx), %esi
	movl	%eax, %edi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	24(%rbx), %rax
	movl	%eax, 8(%rbx)
	movl	%eax, 12(%rbx)
	cmpq	$0, 16(%rbx)
	je	LBB0_27
## %bb.12:
	movq	%rax, 16(%rbx)
	jmp	LBB0_27
	.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	_force_ready_bytes              ; -- Begin function force_ready_bytes
	.p2align	2
_force_ready_bytes:                     ; @force_ready_bytes
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x1
	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
	mvn	w8, w22
	lsr	w0, w8, #31
	bl	_assert
	ldpsw	x8, x9, [x19, #8]
	ldr	x10, [x19, #16]
	cmp	x10, #0
	ccmp	x10, x8, #4, ne
	b.ne	LBB0_12
; %bb.1:
	sub	w20, w8, w9
	cmp	w20, w22
	b.ge	LBB0_14
; %bb.2:
	ldr	x21, [x19, #56]
	cmp	x21, x19
	b.eq	LBB0_14
; %bb.3:
Lloh6:
	adrp	x8, _NET_BUFFER_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NET_BUFFER_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w22
	csel	w23, w8, w22, lt
	ldr	x25, [x21, #16]
	cbnz	x25, LBB0_5
; %bb.4:
	ldr	w25, [x21, #8]
LBB0_5:
	ldr	w26, [x21, #12]
	sub	w24, w25, w26
	cmp	w24, w8
	cset	w0, ls
	bl	_assert
	add	w22, w24, w20
	cmp	w22, w23
	b.ge	LBB0_13
; %bb.6:
	ldr	x8, [x21, #56]
	cmp	x8, x19
	b.eq	LBB0_13
; %bb.7:
	cmp	w20, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #12]
	mov	x2, x20
	bl	_memmove
LBB0_9:
	ldrsw	x8, [x19, #24]
	stp	w8, w8, [x19, #8]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_11
; %bb.10:
	str	x8, [x19, #16]
LBB0_11:
	ldr	w9, [x19, #28]
	sub	w9, w9, w8
	cmp	w23, w9
	csel	w9, w23, w9, lt
	add	w1, w8, w20
	sub	w2, w9, w20
	mov	x0, x19
	bl	_read_in
	add	w22, w0, w20
	ldr	w8, [x19, #40]
	add	w8, w8, w0
	str	w8, [x19, #40]
	ldrsw	x8, [x19, #8]
	add	x8, x8, w22, sxtw
	str	w8, [x19, #8]
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_25
	b	LBB0_15
LBB0_12:
	cmp	x10, x9
	ccmp	x10, x8, #0, ge
	cset	w0, lt
	bl	_assert
	ldp	w9, w8, [x19, #12]
	sub	w22, w8, w9
	b	LBB0_15
LBB0_13:
	cmp	w26, w25
	b.ne	LBB0_16
LBB0_14:
	mov	x22, x20
LBB0_15:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_16:
	ldr	w1, [x21, #12]
	ldr	w8, [x21, #24]
	sub	w8, w1, w8
	cmp	w20, w8
	b.le	LBB0_24
; %bb.17:
	sub	w8, w23, w20
	cmp	w24, w8
	csel	w22, w24, w8, lt
	ldr	w8, [x19, #28]
	ldr	w0, [x19, #8]
	sub	w8, w8, w0
	cmp	w22, w8
	b.le	LBB0_19
; %bb.18:
	ldr	w0, [x19, #24]
	ldr	w1, [x19, #12]
	mov	x2, x20
	bl	_memmove
	ldp	w9, w8, [x19, #24]
	add	w0, w9, w20
	sub	w8, w8, w0
	stp	w0, w9, [x19, #8]
	ldr	w1, [x21, #12]
LBB0_19:
	cmp	w22, w8
	csel	w22, w22, w8, lt
	mov	x2, x22
	bl	_memcpy
	ldr	w8, [x21, #12]
	add	w8, w8, w22
	str	w8, [x21, #12]
	ldrsw	x9, [x19, #8]
	add	x9, x9, w22, sxtw
	str	w9, [x19, #8]
	ldr	x10, [x19, #16]
	cbz	x10, LBB0_21
; %bb.20:
	str	x9, [x19, #16]
LBB0_21:
	ldr	w9, [x21, #8]
	cmp	w8, w9
	b.ne	LBB0_23
; %bb.22:
	ldr	x23, [x21, #56]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w0, gt
	bl	_assert
	str	x23, [x19, #56]
	str	x19, [x23, #48]
	mov	x0, x21
	bl	_free_buffer
	ldr	x8, [x19, #32]
	sub	x8, x8, #1
	str	x8, [x19, #32]
LBB0_23:
	add	w22, w22, w20
	b	LBB0_15
LBB0_24:
	sub	w0, w1, w20
	str	w0, [x21, #12]
	ldr	w1, [x19, #12]
	mov	x2, x20
	bl	_memcpy
	ldrsw	x8, [x19, #24]
	stp	w8, w8, [x19, #8]
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_15
LBB0_25:
	str	x8, [x19, #16]
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
