	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_process_ni
_ikev2_process_ni:                      ## @ikev2_process_ni
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	_IKEV2_NONCE_MIN_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	ja	LBB0_5
## %bb.2:
	movq	_IKEV2_NONCE_MAX_LEN@GOTPCREL(%rip), %rax
	cmpq	%rdx, (%rax)
	jb	LBB0_5
## %bb.3:
	movq	%rdi, %rbx
	movq	%rdx, (%rdi)
	movl	8(%rdi), %edi
	callq	_os_memcpy
	movq	_MSG_MSGDUMP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movq	(%rbx), %rcx
	leaq	L_.str.2(%rip), %rsi
	callq	_wpa_hexdump
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_4:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_6
LBB0_5:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_6:
	movl	$-1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: Ni not received"

	.comm	_IKEV2_NONCE_MIN_LEN,8,3        ## @IKEV2_NONCE_MIN_LEN
	.comm	_IKEV2_NONCE_MAX_LEN,8,3        ## @IKEV2_NONCE_MAX_LEN
L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Invalid Ni length %ld"

	.comm	_MSG_MSGDUMP,4,2                ## @MSG_MSGDUMP
L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: Ni"

	.no_dead_strip	_ikev2_process_ni
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_process_ni
_ikev2_process_ni:                      ; @ikev2_process_ni
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	cbz	x1, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _IKEV2_NONCE_MIN_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IKEV2_NONCE_MIN_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _IKEV2_NONCE_MAX_LEN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IKEV2_NONCE_MAX_LEN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x2
	ccmp	x9, x2, #0, ls
	b.hs	LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	str	x2, [sp]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
	mov	w0, #-1
	b	LBB0_6
LBB0_5:
	mov	x19, x0
	str	x2, [x0]
	ldr	w0, [x0, #8]
	bl	_os_memcpy
Lloh16:
	adrp	x8, _MSG_MSGDUMP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MSG_MSGDUMP@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldr	w2, [x19, #8]
	ldr	x3, [x19]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_hexdump
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: Ni not received"

	.comm	_IKEV2_NONCE_MIN_LEN,8,3        ; @IKEV2_NONCE_MIN_LEN
	.comm	_IKEV2_NONCE_MAX_LEN,8,3        ; @IKEV2_NONCE_MAX_LEN
l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Invalid Ni length %ld"

	.comm	_MSG_MSGDUMP,4,2                ; @MSG_MSGDUMP
l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: Ni"

	.no_dead_strip	_ikev2_process_ni
.subsections_via_symbols
