	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_sock_read
_do_sock_read:                          ## @do_sock_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rsi, %r10
	movq	%rdi, %r9
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	cmpq	$4, %r8
	jae	LBB0_4
## %bb.3:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_4:
	movq	%r8, %rsi
	andq	$-4, %rsi
	leaq	-4(%rsi), %rdi
	movq	%rdi, %rax
	shrq	$2, %rax
	incq	%rax
	movl	%eax, %r11d
	andl	$3, %r11d
	cmpq	$12, %rdi
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rax
	pxor	%xmm0, %xmm0
	xorl	%edi, %edi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rcx,%rdi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rcx,%rdi,8), %xmm1
	movdqu	48(%rcx,%rdi,8), %xmm3
	movdqu	64(%rcx,%rdi,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rcx,%rdi,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rcx,%rdi,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rcx,%rdi,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rdi
	addq	$-4, %rax
	jne	LBB0_7
LBB0_8:
	testq	%r11, %r11
	je	LBB0_11
## %bb.9:
	leaq	(%rcx,%rdi,8), %rax
	addq	$16, %rax
	shlq	$5, %r11
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdi), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rax,%rdi), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_10
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rax
	cmpq	%r8, %rsi
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rsi,8), %rax
	incq	%rsi
	cmpq	%rsi, %r8
	jne	LBB0_12
LBB0_13:
	movq	8(%rdx), %rsi
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 40(%r9)
	movdqu	%xmm0, 24(%r9)
	movq	%rcx, 16(%r9)
	movq	%r8, (%r9)
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	andl	(%rdx), %r8d
	je	LBB0_15
## %bb.14:
	movq	_MSG_DONTWAIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
LBB0_15:
	movl	%r8d, 8(%r9)
	movq	%r10, %rdi
	movq	%r9, %rdx
	movq	%rax, %rcx
	popq	%rbp
	jmp	___sock_recvmsg                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_MSG_DONTWAIT,4,2               ## @MSG_DONTWAIT
	.no_dead_strip	_do_sock_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_sock_read
_do_sock_read:                          ; @do_sock_read
	.cfi_startproc
; %bb.0:
	mov	x8, x1
	mov	x9, x0
	ldr	x1, [x2, #8]
	cbz	x4, LBB0_3
; %bb.1:
	cmp	x4, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x11, #0
	mov	x10, #0
	b	LBB0_7
LBB0_3:
	mov	x10, #0
	b	LBB0_9
LBB0_4:
	and	x11, x4, #0xfffffffffffffff8
	add	x10, x3, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x10, #-32]
	ldp	q6, q7, [x10], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x10, d0
	cmp	x11, x4
	b.eq	LBB0_9
LBB0_7:
	add	x12, x3, x11, lsl #3
	sub	x11, x4, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x12], #8
	add	x10, x13, x10
	subs	x11, x11, #1
	b.ne	LBB0_8
LBB0_9:
	movi.2d	v0, #0000000000000000
	stur	q0, [x9, #40]
	stur	q0, [x9, #24]
	str	x3, [x9, #16]
	str	x4, [x9]
	ldr	w11, [x2]
Lloh0:
	adrp	x12, _O_NONBLOCK@GOTPAGE
Lloh1:
	ldr	x12, [x12, _O_NONBLOCK@GOTPAGEOFF]
Lloh2:
	ldr	w12, [x12]
Lloh3:
	adrp	x13, _MSG_DONTWAIT@GOTPAGE
Lloh4:
	ldr	x13, [x13, _MSG_DONTWAIT@GOTPAGEOFF]
Lloh5:
	ldr	w13, [x13]
	tst	w12, w11
	csel	w4, wzr, w13, eq
	str	w4, [x9, #8]
	mov	x0, x8
	mov	x2, x9
	mov	x3, x10
	b	___sock_recvmsg
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_MSG_DONTWAIT,4,2               ; @MSG_DONTWAIT
	.no_dead_strip	_do_sock_read
.subsections_via_symbols
