	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uip_chksum_pseudo              ## -- Begin function uip_chksum_pseudo
	.p2align	4, 0x90
_uip_chksum_pseudo:                     ## @uip_chksum_pseudo
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	testq	%r15, %r15
	jle	LBB0_5
## %bb.2:
	movq	%rdi, %rbx
	xorl	%eax, %eax
	movq	%r15, %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r12
	movq	(%rbx), %r14
	cmpq	%r14, %r13
	cmovlq	%r13, %r14
	movl	8(%rbx), %edi
	movq	%r14, %rsi
	callq	_uip_chksum
	addq	%r12, %rax
	movq	16(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	subq	%r14, %r13
	testq	%r13, %r13
	jg	LBB0_3
LBB0_5:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r14d
	movzwl	%r14w, %ecx
	addq	%rax, %rcx
	shrq	$16, %r14
	addq	%rcx, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r12d
	movzwl	%r12w, %r13d
	shrq	$16, %r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_htons
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_htons
	addq	%r14, %rbx
	addq	%r13, %rbx
	addq	%r12, %rbx
	addq	%rax, %rbx
	cmpq	$65536, %rbx                    ## imm = 0x10000
	jb	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rax
	sarq	$16, %rax
	movzwl	%bx, %ebx
	addq	%rax, %rbx
	cmpq	$65535, %rbx                    ## imm = 0xFFFF
	ja	LBB0_6
LBB0_7:
	notq	%rbx
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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_chksum_pseudo              ; -- Begin function uip_chksum_pseudo
	.p2align	2
_uip_chksum_pseudo:                     ; @uip_chksum_pseudo
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x25, #0
	cbz	x0, LBB0_4
; %bb.1:
	cmp	x19, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x23, x0
	mov	x25, #0
	mov	x26, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	cmp	x26, x8
	csel	x24, x26, x8, lt
	ldr	w0, [x23, #8]
	mov	x1, x24
	bl	_uip_chksum
	add	x25, x0, x25
	sub	x26, x26, x24
	ldr	x23, [x23, #16]
	cmp	x23, #0
	ccmp	x26, #0, #4, ne
	b.gt	LBB0_3
LBB0_4:
	ldr	w8, [x22]
	add	x9, x25, w8, uxth
	add	x22, x9, x8, lsr #16
	ldr	w21, [x21]
	mov	x0, x20
	bl	_htons
	mov	x20, x0
	mov	x0, x19
	bl	_htons
	add	x8, x22, x20
	add	x8, x8, w21, uxth
	add	x8, x8, x21, lsr #16
	add	x8, x8, x0
	cmp	x8, #16, lsl #12                ; =65536
	b.lo	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	asr	x9, x8, #16
	add	x8, x9, w8, uxth
	lsr	x9, x8, #16
	cbnz	x9, LBB0_5
LBB0_6:
	mvn	x0, x8
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
