	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pimv2_check_checksum
_pimv2_check_checksum:                  ## @pimv2_check_checksum
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	movl	(%rsi), %edi
	movq	%rcx, %rsi
	callq	_ND_TTEST2
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%r15, %rdi
	callq	_IP_V
	cmpl	$4, %eax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, -56(%rbp)
	movq	%r14, -64(%rbp)
	leaq	-64(%rbp), %rdi
	movl	$1, %esi
	callq	_in_cksum
	testq	%rax, %rax
	jne	LBB0_9
LBB0_3:
	movq	_CORRECT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movq	%r15, %rdi
	callq	_IP_V
	cmpl	$6, %eax
	jne	LBB0_7
## %bb.5:
	movq	_IPPROTO_PIM@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r12, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movq	%r14, %r8
	callq	_nextproto6_cksum
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movq	_INCORRECT@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	movq	_UNVERIFIED@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-40(%rbp), %rcx
	jne	LBB0_12
## %bb.11:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_UNVERIFIED,4,2                 ## @UNVERIFIED
	.comm	_INCORRECT,4,2                  ## @INCORRECT
	.comm	_CORRECT,4,2                    ## @CORRECT
	.comm	_IPPROTO_PIM,4,2                ## @IPPROTO_PIM
	.no_dead_strip	_pimv2_check_checksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pimv2_check_checksum
_pimv2_check_checksum:                  ; @pimv2_check_checksum
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	w0, [x1]
	mov	x1, x3
	bl	_ND_TTEST2
	cbz	w0, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_IP_V
	cmp	w0, #4
	b.ne	LBB0_3
; %bb.2:
	stp	x19, x20, [sp, #8]
	add	x0, sp, #8
	mov	w1, #1
	bl	_in_cksum
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_IP_V
	cmp	w0, #6
	b.ne	LBB0_6
; %bb.4:
Lloh3:
	adrp	x8, _IPPROTO_PIM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPPROTO_PIM@GOTPAGEOFF]
Lloh5:
	ldr	w5, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	mov	x4, x19
	bl	_nextproto6_cksum
LBB0_5:
Lloh6:
	adrp	x8, _INCORRECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _INCORRECT@GOTPAGEOFF]
Lloh8:
	adrp	x9, _CORRECT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CORRECT@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _UNVERIFIED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _UNVERIFIED@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #80
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_UNVERIFIED,4,2                 ; @UNVERIFIED
	.comm	_INCORRECT,4,2                  ; @INCORRECT
	.comm	_CORRECT,4,2                    ; @CORRECT
	.comm	_IPPROTO_PIM,4,2                ; @IPPROTO_PIM
	.no_dead_strip	_pimv2_check_checksum
.subsections_via_symbols
