	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_send_common                ## -- Begin function svc_send_common
	.p2align	4, 0x90
_svc_send_common:                       ## @svc_send_common
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -88(%rbp)                  ## 8-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rsi), %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	24(%rsi), %rax
	movl	(%rax), %eax
	xorl	%r8d, %r8d
	movl	%edi, %r15d
	cmpl	%eax, %edi
	je	LBB0_2
## %bb.1:
	movq	_MSG_MORE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
LBB0_2:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %r13d
	movq	32(%r14), %rbx
	movq	(%r14), %r12
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rdx, %rsi
	movq	%rcx, %rdx
	movl	%eax, %ecx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	callq	_kernel_sendpage
	movl	%eax, %edx
	movq	24(%r14), %rax
	cmpl	(%rax), %edx
	jne	LBB0_14
## %bb.3:
	movl	%r15d, %eax
	subl	%edx, %eax
	je	LBB0_14
## %bb.4:
	testl	%r13d, %r13d
	je	LBB0_12
## %bb.5:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r14
	subq	%r12, %r14
	cmpq	%r13, %r14
	cmovaeq	%r13, %r14
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	$0, %r15d
	subl	%r14d, %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %r15d
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	(%rbx), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rdx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_kernel_sendpage
	movl	%eax, %ecx
	testl	%eax, %eax
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	addl	%ecx, %edx
	cmpl	%r14d, %eax
	jne	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	subl	%r14d, %r13d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r13, %r14
	cmovaeq	%r13, %r14
	addq	$8, %rbx
	movl	%r15d, %ecx
	movl	$0, %r12d
	testl	%r13d, %r13d
	movl	-60(%rbp), %eax                 ## 4-byte Reload
	jne	LBB0_6
LBB0_12:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rax
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	xorl	%ebx, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%edx, %r14d
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	xorl	%r8d, %r8d
	callq	_kernel_sendpage
	movl	%r14d, %edx
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	addl	%ebx, %edx
LBB0_14:
	movl	%edx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_MORE,4,2                   ## @MSG_MORE
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_svc_send_common                ; -- Begin function svc_send_common
	.p2align	2
_svc_send_common:                       ; @svc_send_common
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x26, x5
	mov	x28, x4
	mov	x8, x3
	mov	x23, x1
	mov	x22, x0
	ldr	x25, [x1]
Lloh0:
	adrp	x9, _MSG_MORE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MSG_MORE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldp	w21, w19, [x1, #8]
	ldp	x10, x27, [x1, #24]
	ldr	w3, [x10]
	cmp	w19, w3
	csel	w24, wzr, w9, eq
	mov	x1, x2
	mov	x2, x8
	mov	x4, x24
	bl	_kernel_sendpage
	mov	x20, x0
	ldr	x8, [x23, #24]
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.1:
	str	x28, [sp, #8]                   ; 8-byte Folded Spill
	subs	w28, w19, w20
	b.eq	LBB0_8
; %bb.2:
	str	x26, [sp]                       ; 8-byte Folded Spill
	cbz	w21, LBB0_6
; %bb.3:
Lloh3:
	adrp	x19, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x19, [x19, _PAGE_SIZE@GOTPAGEOFF]
	ldr	x8, [x19]
	sub	x8, x8, x25
	cmp	x8, x21
	csel	x26, x8, x21, lo
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	subs	w28, w28, w26
	csel	w24, wzr, w24, eq
	ldr	x1, [x27]
	mov	x0, x22
	mov	x2, x25
	mov	x3, x26
	mov	x4, x24
	bl	_kernel_sendpage
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	add	w20, w8, w20
	cmp	w0, w26
	b.ne	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, #0
	ldr	x8, [x19]
	sub	w21, w21, w26
	cmp	x8, x21
	csel	x26, x8, x21, lo
	add	x27, x27, #8
	cbnz	w21, LBB0_4
LBB0_6:
	ldr	x8, [x23, #16]
	ldr	w3, [x8]
	cbz	w3, LBB0_8
; %bb.7:
	mov	x0, x22
	ldp	x2, x1, [sp]                    ; 16-byte Folded Reload
	mov	w4, #0
	bl	_kernel_sendpage
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	add	w20, w8, w20
LBB0_8:
	mov	x0, x20
	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
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_MORE,4,2                   ; @MSG_MORE
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
.subsections_via_symbols
