	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextproto4_cksum               ## -- Begin function nextproto4_cksum
	.p2align	4, 0x90
_nextproto4_cksum:                      ## @nextproto4_cksum
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movq	%r8, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rcx, %rdi
	callq	_htons
	movq	%rax, -88(%rbp)
	movq	$0, -104(%rbp)
	movq	%r12, -96(%rbp)
	leaq	4(%rbx), %rsi
	leaq	-112(%rbp), %r12
	movq	%r12, %rdi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	movq	%rbx, %rdi
	callq	_IP_HL
	cmpl	$5, %eax
	jne	LBB0_2
## %bb.1:
	leaq	-108(%rbp), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_UNALIGNED_MEMCPY
	jmp	LBB0_3
LBB0_2:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_ip_finddst
	movl	%eax, -108(%rbp)
LBB0_3:
	movq	%r12, -72(%rbp)
	movl	$32, -80(%rbp)
	movq	%r15, -56(%rbp)
	movl	%r14d, -64(%rbp)
	leaq	-80(%rbp), %rdi
	movl	$2, %esi
	callq	_in_cksum
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_nextproto4_cksum               ; -- Begin function nextproto4_cksum
	.p2align	2
_nextproto4_cksum:                      ; @nextproto4_cksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x23, x5
	mov	x19, x4
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	mov	x0, x3
	bl	_htons
	stp	x23, x0, [sp, #24]
	str	xzr, [sp, #16]
	add	x1, x21, #4
	add	x23, sp, #8
	add	x0, sp, #8
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	mov	x0, x21
	bl	_IP_HL
	cmp	w0, #5
	b.ne	LBB0_2
; %bb.1:
	orr	x0, x23, #0x4
	mov	x1, x21
	mov	w2, #4
	bl	_UNALIGNED_MEMCPY
	b	LBB0_3
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_ip_finddst
	str	w0, [sp, #12]
LBB0_3:
	add	x8, sp, #8
	str	x8, [sp, #48]
	mov	w8, #32
	str	w8, [sp, #40]
	str	x20, [sp, #64]
	str	w19, [sp, #56]
	add	x0, sp, #40
	mov	w1, #2
	bl	_in_cksum
	ldur	x8, [x29, #-56]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
