	.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	%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	$-1, %r13d
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	cmpl	$0, (%rsi)
	je	LBB0_4
## %bb.2:
	movl	%ecx, %r12d
	movq	%rdi, %r15
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_RIOTCP_SZ
	movl	(%r15), %ecx
	movl	%eax, %r14d
	subl	%ecx, %r14d
	jbe	LBB0_4
## %bb.3:
	addl	%r12d, %ecx
	cmpl	%eax, %ecx
	cmovbl	%r12d, %r14d
	movq	%rbx, %rdi
	callq	_RIOTCP_BUF
	movl	(%r15), %esi
	addq	%rax, %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r14d, %edx
	callq	_memcpy
	movl	%r14d, %r13d
LBB0_4:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	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
	cbz	x1, LBB0_4
; %bb.1:
	mov	x22, x1
	ldr	w8, [x1]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	mov	x0, x22
	bl	_RIOTCP_SZ
	ldr	w9, [x21]
	subs	w8, w0, w9
	b.ls	LBB0_4
; %bb.3:
	add	w9, w9, w19
	cmp	w9, w0
	csel	w19, w19, w8, lo
	mov	x0, x22
	bl	_RIOTCP_BUF
	ldr	w8, [x21]
	add	x1, x0, x8
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	b	LBB0_5
LBB0_4:
	mov	w19, #-1
LBB0_5:
	mov	x0, x19
	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
