	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum_partial_copy_to_xdr       ## -- Begin function csum_partial_copy_to_xdr
	.p2align	4, 0x90
_csum_partial_copy_to_xdr:              ## @csum_partial_copy_to_xdr
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	%rsi, -32(%rbp)
	movl	$4, -48(%rbp)
	movl	(%rsi), %eax
	addl	$-4, %eax
	movl	%eax, -44(%rbp)
	movq	%rsi, %rdi
	callq	_skb_csum_unnecessary
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	_xdr_skb_read_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r14d, %r14d
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_xdr_partial_copy_from_skb
	testq	%rax, %rax
	js	LBB0_9
## %bb.10:
	cmpl	-44(%rbp), %r14d
	sbbl	%r14d, %r14d
	jmp	LBB0_11
LBB0_1:
	movl	20(%rbx), %edx
	movl	24(%rbx), %edi
	movl	$4, %esi
	callq	_csum_partial
	movl	%eax, -40(%rbp)
	movq	_xdr_skb_read_and_csum_bits@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_xdr_partial_copy_from_skb
	movl	$-1, %r14d
	testq	%rax, %rax
	js	LBB0_11
## %bb.2:
	movl	-48(%rbp), %esi
	movl	(%rbx), %edx
	subl	%esi, %edx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_skb_checksum
	movl	-48(%rbp), %edx
	movl	-40(%rbp), %edi
	movl	%eax, %esi
	callq	_csum_block_add
	movl	%eax, -40(%rbp)
LBB0_4:
	cmpl	$0, -44(%rbp)
	jne	LBB0_11
## %bb.5:
	movl	-40(%rbp), %edi
	callq	_csum_fold
	testq	%rax, %rax
	jne	LBB0_11
## %bb.6:
	movq	8(%rbx), %rax
	movq	_CHECKSUM_COMPLETE@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	sete	%dil
	callq	_unlikely
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	16(%rbx), %edi
	callq	_netdev_rx_csum_fault
	jmp	LBB0_11
LBB0_9:
	movl	$-1, %r14d
LBB0_11:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xdr_skb_read_and_csum_bits,4,2 ## @xdr_skb_read_and_csum_bits
	.comm	_CHECKSUM_COMPLETE,8,3          ## @CHECKSUM_COMPLETE
	.comm	_xdr_skb_read_bits,4,2          ## @xdr_skb_read_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_csum_partial_copy_to_xdr       ; -- Begin function csum_partial_copy_to_xdr
	.p2align	2
_csum_partial_copy_to_xdr:              ; @csum_partial_copy_to_xdr
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x1
	mov	x20, x0
	str	x1, [sp, #24]
	mov	w8, #4
	ldr	w9, [x1]
	sub	w9, w9, #4
	stp	w8, w9, [sp, #8]
	mov	x0, x1
	bl	_skb_csum_unnecessary
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _xdr_skb_read_bits@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xdr_skb_read_bits@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_xdr_partial_copy_from_skb
	tbnz	x0, #63, LBB0_8
; %bb.2:
	ldr	w8, [sp, #12]
	cmp	w8, #0
	csetm	w0, ne
	b	LBB0_9
LBB0_3:
	ldp	w2, w0, [x19, #20]
	mov	w1, #4
	bl	_csum_partial
	str	w0, [sp, #16]
Lloh3:
	adrp	x8, _xdr_skb_read_and_csum_bits@GOTPAGE
Lloh4:
	ldr	x8, [x8, _xdr_skb_read_and_csum_bits@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	add	x2, sp, #8
	mov	x0, x20
	mov	w1, #0
	bl	_xdr_partial_copy_from_skb
	tbnz	x0, #63, LBB0_8
; %bb.4:
	ldr	w1, [sp, #8]
	ldr	w8, [x19]
	subs	w2, w8, w1
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	mov	w3, #0
	bl	_skb_checksum
	mov	x1, x0
	ldr	w0, [sp, #16]
	ldr	w2, [sp, #8]
	bl	_csum_block_add
	str	w0, [sp, #16]
LBB0_6:
	ldr	w8, [sp, #12]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	w0, [sp, #16]
	bl	_csum_fold
	cbz	x0, LBB0_10
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_10:
	ldr	x8, [x19, #8]
Lloh6:
	adrp	x9, _CHECKSUM_COMPLETE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHECKSUM_COMPLETE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_9
; %bb.11:
	ldr	w0, [x19, #16]
	bl	_netdev_rx_csum_fault
	mov	w0, #0
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_xdr_skb_read_and_csum_bits,4,2 ; @xdr_skb_read_and_csum_bits
	.comm	_CHECKSUM_COMPLETE,8,3          ; @CHECKSUM_COMPLETE
	.comm	_xdr_skb_read_bits,4,2          ; @xdr_skb_read_bits
.subsections_via_symbols
