	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_ipchksum_pbuf              ## -- Begin function uip_ipchksum_pbuf
	.p2align	4, 0x90
_uip_ipchksum_pbuf:                     ## @uip_ipchksum_pbuf
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.5:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_uip_chksum
	addl	%eax, %r14d
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	jne	LBB0_6
## %bb.2:
	cmpl	$65536, %r14d                   ## imm = 0x10000
	jb	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r14d, %eax
	sarl	$16, %eax
	movzwl	%r14w, %r14d
	addl	%eax, %r14d
	cmpl	$65535, %r14d                   ## imm = 0xFFFF
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r14d, %r14d
LBB0_4:
	notl	%r14d
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_ipchksum_pbuf              ; -- Begin function uip_ipchksum_pbuf
	.p2align	2
_uip_ipchksum_pbuf:                     ; @uip_ipchksum_pbuf
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	mov	w20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w1, w0, [x19]
	bl	_uip_chksum
	add	w20, w20, w0
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_2
; %bb.3:
	cmp	w20, #16, lsl #12               ; =65536
	b.lo	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	asr	w8, w20, #16
	add	w20, w8, w20, uxth
	lsr	w8, w20, #16
	cbnz	w8, LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mvn	w0, w20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
