	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function __read
___read:                                ## @__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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %eax
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.1:
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.2:
	movq	(%rsi), %r12
	testq	%r12, %r12
	je	LBB0_7
## %bb.3:
	movl	%ecx, %r14d
	movq	(%r12), %rax
	movq	8(%r12), %r15
	movslq	%ecx, %rbx
	leaq	(%rax,%rbx), %rcx
	cmpq	%r15, %rcx
	jle	LBB0_5
## %bb.4:
	subl	%eax, %r15d
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%r15d, %edx
	callq	_memset
	movq	8(%r12), %rbx
	movl	%r15d, %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%rdx, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_memset
	addq	(%r12), %rbx
LBB0_6:
	movq	%rbx, (%r12)
	movl	%r14d, %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	___read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function __read
___read:                                ; @__read
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	w0, #-1
	cbz	x1, LBB0_7
; %bb.1:
	cbz	x2, LBB0_7
; %bb.2:
	ldr	x20, [x1]
	cbz	x20, LBB0_7
; %bb.3:
	mov	x19, x3
	sxtw	x21, w19
	ldp	x8, x9, [x20]
	add	x10, x8, x21
	cmp	x10, x9
	b.le	LBB0_5
; %bb.4:
	sub	w19, w9, w8
	mov	x0, x2
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x8, [x20, #8]
	b	LBB0_6
LBB0_5:
	mov	x0, x2
	mov	w1, #0
	mov	x2, x19
	bl	_memset
	ldr	x8, [x20]
	add	x8, x8, x21
LBB0_6:
	str	x8, [x20]
	mov	x0, x19
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	___read
.subsections_via_symbols
