	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bio_read
_bio_read:                              ## @bio_read
	.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
	movl	%edx, %ebx
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_BIO_clear_retry_flags
	xorl	%r14d, %r14d
	cmpl	$0, 8(%r12)
	je	LBB0_14
## %bb.1:
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	(%r12), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	setne	%dil
	callq	_assert
	movq	48(%rbx), %rax
	movq	(%rax), %r13
	xorl	%edi, %edi
	testq	%r13, %r13
	setne	%dil
	callq	_assert
	xorl	%edi, %edi
	cmpq	$0, 32(%r13)
	setne	%dil
	callq	_assert
	movq	$0, (%r13)
	testq	%r15, %r15
	je	LBB0_14
## %bb.2:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, %eax
	je	LBB0_14
## %bb.3:
	movslq	%eax, %rbx
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	setne	%dil
	callq	_assert
	movq	%rbx, %r12
	movq	%rbx, %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_7 Depth=1
	xorl	%edi, %edi
	cmpq	%rbx, %r14
	sete	%dil
	callq	_assert
	movq	$0, 24(%r13)
	subq	%rbx, %r14
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpq	8(%r13), %r14
	setbe	%dil
	callq	_assert
	movq	16(%r13), %rax
	movq	24(%r13), %rcx
	leaq	(%rcx,%r14), %rdx
	movq	%rax, %rbx
	subq	%rcx, %rbx
	cmpq	%rax, %rdx
	cmovbeq	%r14, %rbx
	addq	%rbx, %rcx
	xorl	%edi, %edi
	cmpq	%rax, %rcx
	setbe	%dil
	callq	_assert
	movq	24(%r13), %rsi
	shlq	$2, %rsi
	addq	32(%r13), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	subq	%rbx, 8(%r13)
	je	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	24(%r13), %rax
	addq	%rbx, %rax
	movq	%rax, 24(%r13)
	xorl	%edi, %edi
	cmpq	16(%r13), %rax
	setbe	%dil
	callq	_assert
	movq	24(%r13), %rax
	cmpq	16(%r13), %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	$0, 24(%r13)
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	addq	%rbx, %r15
	subq	%rbx, %r14
	jne	LBB0_7
LBB0_13:
	movl	%r12d, %r14d
	jmp	LBB0_14
LBB0_4:
	cmpq	$0, 40(%r13)
	jne	LBB0_14
## %bb.5:
	movq	%r12, %rdi
	callq	_BIO_set_retry_read
	movq	16(%r13), %rax
	cmpq	%rbx, %rax
	cmovbq	%rax, %rbx
	movq	%rbx, (%r13)
	movl	$-1, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_bio_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bio_read
_bio_read:                              ; @bio_read
	.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	x22, x2
	mov	x19, x1
	mov	x21, x0
	bl	_BIO_clear_retry_flags
	ldr	w8, [x21, #8]
	cbz	w8, LBB0_11
; %bb.1:
	ldr	x20, [x21]
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #48]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x20, #48]
	ldr	x23, [x8]
	cmp	x23, #0
	cset	w0, ne
	bl	_assert
	ldr	x8, [x23, #32]
	cmp	x8, #0
	cset	w0, ne
	bl	_assert
	mov	w20, #0
	str	xzr, [x23]
	cbz	x19, LBB0_12
; %bb.2:
	cbz	w22, LBB0_12
; %bb.3:
	sxtw	x20, w22
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_10
; %bb.4:
	cmp	x8, x20
	csel	x20, x8, x20, lo
	cmp	x20, #0
	cset	w0, ne
	bl	_assert
	mov	x22, x20
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x22, x21
	cset	w0, eq
	bl	_assert
	str	xzr, [x23, #24]
	subs	x22, x22, x21
	b.eq	LBB0_12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23, #8]
	cmp	x22, x8
	cset	w0, ls
	bl	_assert
	ldp	x9, x8, [x23, #16]
	sub	x10, x9, x8
	add	x11, x8, x22
	cmp	x11, x9
	csel	x21, x10, x22, hi
	add	x8, x21, x8
	cmp	x8, x9
	cset	w0, ls
	bl	_assert
	ldp	x9, x8, [x23, #24]
	add	x1, x8, x9, lsl #2
	mov	x0, x19
	mov	x2, x21
	bl	_memcpy
	ldr	x8, [x23, #8]
	subs	x8, x8, x21
	str	x8, [x23, #8]
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldp	x9, x8, [x23, #16]
	add	x8, x8, x21
	cmp	x8, x9
	str	x8, [x23, #24]
	cset	w0, ls
	bl	_assert
	ldp	x9, x8, [x23, #16]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	xzr, [x23, #24]
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x19, x19, x21
	subs	x22, x22, x21
	b.ne	LBB0_6
	b	LBB0_12
LBB0_10:
	ldr	x8, [x23, #40]
	cbz	x8, LBB0_13
LBB0_11:
	mov	w20, #0
LBB0_12:
	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
LBB0_13:
	mov	x0, x21
	bl	_BIO_set_retry_read
	ldr	x8, [x23, #16]
	cmp	x8, x20
	csel	x8, x8, x20, lo
	str	x8, [x23]
	mov	w20, #-1
	b	LBB0_12
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_bio_read
.subsections_via_symbols
