	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_chksum_pbuf               ## -- Begin function inet_chksum_pbuf
	.p2align	4, 0x90
_inet_chksum_pbuf:                      ## @inet_chksum_pbuf
	.cfi_startproc
## %bb.0:
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.1:
	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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %ecx
	subq	%r14, %rcx
	testb	$1, (%rbx)
	cmovneq	%rcx, %r14
	movq	8(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, %r15d
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	callq	_chksum
	addl	%r15d, %eax
	cmpl	$65536, %eax                    ## imm = 0x10000
	jb	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, %ecx
	sarl	$16, %ecx
	movzwl	%ax, %eax
	addl	%ecx, %eax
	cmpl	$65535, %eax                    ## imm = 0xFFFF
	ja	LBB0_4
	jmp	LBB0_2
LBB0_5:
	testq	%r14, %r14
	leaq	8(%rsp), %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	je	LBB0_7
## %bb.6:
	rolw	$8, %ax
	movzwl	%ax, %eax
LBB0_7:
	notl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	retq
LBB0_8:
	xorl	%eax, %eax
	notl	%eax
                                        ## kill: def $eax killed $eax killed $rax
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_inet_chksum_pbuf               ; -- Begin function inet_chksum_pbuf
	.p2align	2
_inet_chksum_pbuf:                      ; @inet_chksum_pbuf
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	x21, #0
	mov	w20, #0
	mov	w22, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	x8, x22, x21
	ldrb	w9, [x19]
	tst	w9, #0x1
	csel	x21, x21, x8, eq
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_5
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldp	w1, w0, [x19]
	bl	_chksum
	add	w20, w20, w0
	cmp	w20, #16, lsl #12               ; =65536
	b.lo	LBB0_2
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	asr	w8, w20, #16
	add	w20, w8, w20, uxth
	lsr	w8, w20, #16
	cbnz	w8, LBB0_4
	b	LBB0_2
LBB0_5:
	cbz	x21, LBB0_8
; %bb.6:
	rev	w8, w20
	lsr	w20, w8, #16
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mvn	w0, w20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
