	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_nread0
_bio_nread0:                            ## @bio_nread0
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_BIO_clear_retry_flags
	cmpl	$0, 8(%r12)
	je	LBB0_1
## %bb.2:
	movq	(%r12), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	setne	%dil
	callq	_assert
	movq	40(%rbx), %rax
	movq	(%rax), %r15
	xorl	%edi, %edi
	testq	%r15, %r15
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	setne	%dil
	callq	_assert
	movq	$0, 32(%r15)
	movq	8(%r15), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	16(%r15), %rcx
	movq	24(%r15), %rdx
	movq	%rcx, %rbx
	subq	%rdx, %rbx
	addq	%rax, %rdx
	cmpq	%rdx, %rcx
	cmovgeq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setg	%dil
	callq	_assert
	testq	%r14, %r14
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	addq	24(%r15), %rax
	movq	%rax, (%r14)
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	leaq	-33(%rbp), %rsi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_bio_read
	movq	%rax, %rbx
LBB0_6:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bio_nread0
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_nread0
_bio_nread0:                            ; @bio_nread0
	.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, x1
	mov	x20, x0
	bl	_BIO_clear_retry_flags
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
; %bb.1:
	ldr	x21, [x20]
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21, #40]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21, #40]
	ldr	x21, [x8]
	cmp	x21, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x21]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	str	xzr, [x21, #32]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldp	x9, x10, [x21, #16]
	sub	x11, x9, x10
	add	x10, x10, x8
	cmp	x9, x10
	csel	x20, x11, x8, lt
	cmp	x20, #0
	cset	w0, gt
	bl	_assert
	cbz	x19, LBB0_6
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x21, #24]
	add	x8, x8, x9
	str	x8, [x19]
	b	LBB0_6
LBB0_4:
	mov	x20, #0
	b	LBB0_6
LBB0_5:
	add	x1, sp, #15
	mov	x0, x20
	mov	w2, #1
	bl	_bio_read
	mov	x20, x0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bio_nread0
.subsections_via_symbols
