	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_splice_read                ## -- Begin function tcp_splice_read
	.p2align	4, 0x90
_tcp_splice_read:                       ## @tcp_splice_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	%rcx, -72(%rbp)
	movl	%r8d, -64(%rbp)
	movq	%rdx, -56(%rbp)
	movl	(%rsi), %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ESPIPE@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_30
LBB0_2:
	movq	%r14, %rdi
	callq	_lock_sock
	movq	(%rbx), %rax
	movq	_O_NONBLOCK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	andl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_rcvtimeo
	movq	%rax, -48(%rbp)
	xorl	%r13d, %r13d
	testq	%r15, %r15
	je	LBB0_29
## %bb.3:
	leaq	-72(%rbp), %r15
	movq	_TCP_CLOSE@GOTPCREL(%rip), %r12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	___tcp_splice_read
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_25
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	je	LBB0_6
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%ebx, %eax
	subq	%rax, -72(%rbp)
	addl	%ebx, %r13d
	cmpq	$0, -48(%rbp)
	je	LBB0_25
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	callq	_release_sock
	movq	%r14, %rdi
	callq	_lock_sock
	cmpq	$0, 16(%r14)
	jne	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_25
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -72(%rbp)
	jne	LBB0_4
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	testl	%r13d, %r13d
	jne	LBB0_25
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_SOCK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_29
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%r14)
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_RCV_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	jne	LBB0_29
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_12
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -48(%rbp)
	je	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_sk_wait_data
	movq	_current@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_signal_pending
	testq	%rax, %rax
	jne	LBB0_27
## %bb.18:                              ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r13d, %r13d
	cmpq	$0, -72(%rbp)
	jne	LBB0_4
	jmp	LBB0_29
LBB0_25:
	movq	%r14, %rdi
	callq	_release_sock
	testl	%r13d, %r13d
	jne	LBB0_30
## %bb.26:
	movl	%ebx, %r13d
	jmp	LBB0_30
LBB0_9:
	movq	%r14, %rdi
	callq	_sock_error
	jmp	LBB0_28
LBB0_12:
	movq	_SOCK_DONE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_sock_flag
	testq	%rax, %rax
	jne	LBB0_29
## %bb.13:
	movq	_ENOTCONN@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_16:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_14:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_29
LBB0_27:
	movq	-48(%rbp), %rdi
	callq	_sock_intr_errno
LBB0_28:
	movl	%eax, %r13d
LBB0_29:
	movq	%r14, %rdi
	callq	_release_sock
LBB0_30:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ESPIPE,4,2                     ## @ESPIPE
	.comm	_O_NONBLOCK,4,2                 ## @O_NONBLOCK
	.comm	_SOCK_DONE,4,2                  ## @SOCK_DONE
	.comm	_RCV_SHUTDOWN,4,2               ## @RCV_SHUTDOWN
	.comm	_TCP_CLOSE,8,3                  ## @TCP_CLOSE
	.comm	_ENOTCONN,4,2                   ## @ENOTCONN
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_current,4,2                    ## @current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_splice_read                ; -- Begin function tcp_splice_read
	.p2align	2
_tcp_splice_read:                       ; @tcp_splice_read
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x21, x0
	ldr	x19, [x0, #8]
	str	x3, [sp, #8]
	str	w4, [sp, #16]
	str	x2, [sp, #24]
	ldr	w0, [x1]
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ESPIPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ESPIPE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_30
LBB0_2:
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x21]
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _O_NONBLOCK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _O_NONBLOCK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w1, w9, w8
	mov	x0, x19
	bl	_sock_rcvtimeo
	str	x0, [sp]
	cbz	x20, LBB0_28
; %bb.3:
	mov	w21, #0
Lloh6:
	adrp	x22, _SOCK_DONE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SOCK_DONE@GOTPAGEOFF]
Lloh8:
	adrp	x23, _RCV_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x23, [x23, _RCV_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	adrp	x24, _TCP_CLOSE@GOTPAGE
Lloh11:
	ldr	x24, [x24, _TCP_CLOSE@GOTPAGEOFF]
Lloh12:
	adrp	x25, _current@GOTPAGE
Lloh13:
	ldr	x25, [x25, _current@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	___tcp_splice_read
	mov	x20, x0
	tbnz	w0, #31, LBB0_19
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	w20, LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	sub	x8, x8, w20, uxtw
	str	x8, [sp, #8]
	add	w21, w20, w21
	ldr	x8, [sp]
	cbz	x8, LBB0_19
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_release_sock
	mov	x0, x19
	bl	_lock_sock
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_19
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x25]
	bl	_signal_pending
	ldr	x8, [sp, #8]
	cmp	x0, #0
	ccmp	x8, #0, #4, eq
	b.ne	LBB0_4
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w21, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sock_flag
	cbnz	x0, LBB0_22
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_20
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	ldr	x9, [x24]
	cmp	x8, x9
	b.eq	LBB0_21
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp]
	cbz	x8, LBB0_23
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, sp
	mov	x0, x19
	bl	_sk_wait_data
	ldr	w0, [x25]
	bl	_signal_pending
	cbnz	x0, LBB0_24
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	mov	w20, #0
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_4
	b	LBB0_28
LBB0_19:
	mov	x0, x19
	bl	_release_sock
	cbnz	w21, LBB0_30
	b	LBB0_29
LBB0_20:
	mov	x0, x19
	bl	_sock_error
	b	LBB0_25
LBB0_21:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_sock_flag
	cbz	x0, LBB0_26
LBB0_22:
	mov	w20, #0
	b	LBB0_28
LBB0_23:
Lloh14:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_27
LBB0_24:
	ldr	x0, [sp]
	bl	_sock_intr_errno
LBB0_25:
	mov	x20, x0
	b	LBB0_28
LBB0_26:
Lloh16:
	adrp	x8, _ENOTCONN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ENOTCONN@GOTPAGEOFF]
LBB0_27:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_28:
	mov	x0, x19
	bl	_release_sock
LBB0_29:
	mov	x21, x20
LBB0_30:
	mov	x0, x21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_ESPIPE,4,2                     ; @ESPIPE
	.comm	_O_NONBLOCK,4,2                 ; @O_NONBLOCK
	.comm	_SOCK_DONE,4,2                  ; @SOCK_DONE
	.comm	_RCV_SHUTDOWN,4,2               ; @RCV_SHUTDOWN
	.comm	_TCP_CLOSE,8,3                  ; @TCP_CLOSE
	.comm	_ENOTCONN,4,2                   ; @ENOTCONN
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_current,4,2                    ; @current
.subsections_via_symbols
