	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_sendpage                   ## -- Begin function tcp_sendpage
	.p2align	4, 0x90
_tcp_sendpage:                          ## @tcp_sendpage
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, %r14d
	movq	%rcx, %r15
	movl	%edx, %r12d
	movq	%rsi, -40(%rbp)
	movq	(%rdi), %rbx
	movl	(%rbx), %eax
	movq	_NETIF_F_SG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_NETIF_F_ALL_CSUM@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	callq	_TCP_CHECK_TIMER
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_do_tcp_sendpages
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_TCP_CHECK_TIMER
	movq	%rbx, %rdi
	callq	_release_sock
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_no_sendpage               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_SG,4,2                 ## @NETIF_F_SG
	.comm	_NETIF_F_ALL_CSUM,4,2           ## @NETIF_F_ALL_CSUM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_sendpage                   ; -- Begin function tcp_sendpage
	.p2align	2
_tcp_sendpage:                          ; @tcp_sendpage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x4
	mov	x21, x3
	mov	x22, x2
	str	x1, [sp, #8]
	ldr	x20, [x0]
	ldr	w8, [x20]
Lloh0:
	adrp	x9, _NETIF_F_SG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_SG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _NETIF_F_ALL_CSUM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_F_ALL_CSUM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_lock_sock
	mov	x0, x20
	bl	_TCP_CHECK_TIMER
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	bl	_do_tcp_sendpages
	mov	x19, x0
	mov	x0, x20
	bl	_TCP_CHECK_TIMER
	mov	x0, x20
	bl	_release_sock
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_3:
	mov	x2, x22
	mov	x3, x21
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_sock_no_sendpage
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_SG,4,2                 ; @NETIF_F_SG
	.comm	_NETIF_F_ALL_CSUM,4,2           ; @NETIF_F_ALL_CSUM
.subsections_via_symbols
