	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xs_sendpages
_xs_sendpages:                          ## @xs_sendpages
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	(%rcx), %r14d
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENOTSOCK@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_17
LBB0_2:
	subl	%ebx, %r14d
	movq	_SOCK_ASYNC_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %rsi
	callq	_clear_bit
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	movl	$0, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	cmovneq	%rcx, %r12
	movq	16(%r13), %rcx
	movl	(%rcx), %eax
	testq	%r12, %r12
	jne	LBB0_4
## %bb.3:
	cmpl	%ebx, %eax
	ja	LBB0_4
## %bb.6:
	subl	%eax, %ebx
	xorl	%r15d, %r15d
	movl	%ebx, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_7
LBB0_4:
	testl	%ebx, %ebx
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	movl	$0, %edi
	cmovnel	%edi, %edx
	subl	%ebx, %eax
	xorl	%r9d, %r9d
	cmpl	%eax, %r14d
	setne	%r9b
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movl	%eax, %r15d
	movl	%ebx, %r8d
	callq	_xs_send_kvec
	subl	%r15d, %r14d
	je	LBB0_17
## %bb.5:
	cmpl	%r15d, %eax
	jne	LBB0_17
LBB0_7:
	movl	4(%r13), %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %r8d
	subl	%ebx, %r8d
	jae	LBB0_11
## %bb.8:
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	subl	%edx, %ebx
	xorl	%ecx, %ecx
	cmpl	%ebx, %r14d
	setne	%cl
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	callq	_xs_send_pagedata
	cmpl	%ebx, %r14d
	je	LBB0_14
## %bb.9:
	cmpl	%ebx, %eax
	jne	LBB0_14
## %bb.10:
	addl	%eax, %r15d
	xorl	%r8d, %r8d
	jmp	LBB0_12
LBB0_11:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_12:
	movq	8(%r13), %rcx
	cmpl	(%rcx), %r8d
	jae	LBB0_16
## %bb.13:
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r15d, %ebx
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_xs_send_kvec
LBB0_14:
	testl	%r15d, %r15d
	je	LBB0_17
## %bb.15:
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovgl	%eax, %ecx
	addl	%ecx, %r15d
LBB0_16:
	movl	%r15d, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOTSOCK,4,2                   ## @ENOTSOCK
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ## @SOCK_ASYNC_NOSPACE
	.no_dead_strip	_xs_sendpages
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xs_sendpages
_xs_sendpages:                          ; @xs_sendpages
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x24, x1
	mov	x19, x0
	ldr	w25, [x3]
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENOTSOCK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOTSOCK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_13
LBB0_2:
	sub	w25, w25, w23
Lloh3:
	adrp	x8, _SOCK_ASYNC_NOSPACE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SOCK_ASYNC_NOSPACE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_clear_bit
	cmp	w23, #0
	csel	x1, x24, xzr, eq
	ldr	x3, [x20, #16]
	ldr	w8, [x3]
	cbnz	x1, LBB0_5
; %bb.3:
	cmp	w8, w23
	b.hi	LBB0_5
; %bb.4:
	mov	w21, #0
	sub	w2, w23, w8
	b	LBB0_7
LBB0_5:
	cmp	w23, #0
	csel	w2, w21, wzr, eq
	sub	w24, w8, w23
	subs	w25, w25, w24
	cset	w5, ne
	mov	x0, x19
	mov	x4, x23
	bl	_xs_send_kvec
	mov	x21, x0
	cmp	w25, #0
	ccmp	w0, w24, #0, ne
	b.ne	LBB0_13
; %bb.6:
	mov	w2, #0
	mov	x21, x24
LBB0_7:
	ldr	w8, [x20, #4]
	subs	w4, w2, w8
	b.hs	LBB0_10
; %bb.8:
	sub	w23, w8, w2
	cmp	w25, w23
	cset	w3, ne
	mov	x0, x19
	mov	x1, x20
	mov	x4, x22
	bl	_xs_send_pagedata
	cmp	w25, w23
	ccmp	w0, w23, #0, ne
	b.ne	LBB0_12
; %bb.9:
	mov	w4, #0
	add	w21, w0, w21
LBB0_10:
	ldr	x3, [x20, #8]
	ldr	w8, [x3]
	cmp	w4, w8
	b.hs	LBB0_13
; %bb.11:
	mov	x0, x19
	mov	x1, #0
	mov	w2, #0
	mov	w5, #0
	bl	_xs_send_kvec
LBB0_12:
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	add	w8, w21, w8
	cmp	w21, #0
	csel	w21, w0, w8, eq
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOTSOCK,4,2                   ; @ENOTSOCK
	.comm	_SOCK_ASYNC_NOSPACE,4,2         ; @SOCK_ASYNC_NOSPACE
	.no_dead_strip	_xs_sendpages
.subsections_via_symbols
