	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_ikev2_process_icv
_eap_ikev2_process_icv:                 ## @eap_ikev2_process_icv
	.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
	movq	%r8, %r14
	movq	%rcx, %r8
	movq	%rsi, %rcx
	movq	%rdi, %rsi
	movq	_IKEV2_FLAGS_ICV_INCLUDED@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	movl	12(%rsi), %edi
	addq	$8, %rsi
	movq	(%r14), %r9
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	_eap_ikev2_validate_icv
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movl	%eax, %eax
	shlq	$2, %rax
	subq	%rax, (%r14)
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
	testl	%r9d, %r9d
	jne	LBB0_7
## %bb.4:
	cmpq	$0, (%rsi)
	je	LBB0_7
## %bb.5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wpa_printf
LBB0_6:
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IKEV2_FLAGS_ICV_INCLUDED,4,2   ## @IKEV2_FLAGS_ICV_INCLUDED
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"EAP-IKEV2: The message should have included integrity checksum"

	.no_dead_strip	_eap_ikev2_process_icv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_ikev2_process_icv
_eap_ikev2_process_icv:                 ; @eap_ikev2_process_icv
	.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
	mov	x8, x0
Lloh0:
	adrp	x9, _IKEV2_FLAGS_ICV_INCLUDED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IKEV2_FLAGS_ICV_INCLUDED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w2
	b.eq	LBB0_3
; %bb.1:
	mov	x19, x4
	mov	x4, x3
	mov	x3, x1
	add	x1, x8, #8
	ldr	w0, [x8, #12]
	ldr	x5, [x19]
	mov	w2, #0
	bl	_eap_ikev2_validate_icv
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x8, x0
	mov	w0, #0
	ldr	x9, [x19]
	sub	x8, x9, w8, uxtw #2
	str	x8, [x19]
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	cbnz	w5, LBB0_7
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wpa_printf
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_IKEV2_FLAGS_ICV_INCLUDED,4,2   ; @IKEV2_FLAGS_ICV_INCLUDED
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"EAP-IKEV2: The message should have included integrity checksum"

	.no_dead_strip	_eap_ikev2_process_icv
.subsections_via_symbols
