	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ikev2_process_kei
_ikev2_process_kei:                     ## @ikev2_process_kei
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r15
	cmpq	$99, %rdx
	ja	LBB0_7
## %bb.2:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_4
LBB0_3:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_4:
	xorl	%eax, %eax
	callq	_wpa_printf
LBB0_5:
	movl	$-1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_WPA_GET_BE16
	movq	%rax, %r12
	movq	_MSG_DEBUG@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	movq	%rax, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	24(%r14), %rcx
	cmpq	%rcx, %r12
	jne	LBB0_12
## %bb.8:
	movq	8(%r14), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	addq	$-4, %r15
	movq	(%rax), %rcx
	cmpq	%rcx, %r15
	jne	LBB0_14
## %bb.10:
	movq	(%r14), %rdi
	callq	_wpabuf_free
	movq	%r15, %rdi
	callq	_wpabuf_alloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.11:
	addq	$16, %rbx
	movq	%rax, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_wpabuf_put_data
	movl	(%r13), %edi
	movq	(%r14), %rdx
	leaq	L_.str.6(%rip), %rsi
	callq	_wpa_hexdump_buf
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_12:
	movl	(%r13), %edi
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	movq	_INVALID_KE_PAYLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movq	_NOTIFY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	jmp	LBB0_5
LBB0_13:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_4
LBB0_14:
	movq	_MSG_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_wpa_printf
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_MSG_INFO,4,2                   ## @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IKEV2: KEi not received"

L_.str.1:                               ## @.str.1
	.asciz	"IKEV2: Too short Key Exchange Payload"

	.comm	_MSG_DEBUG,4,2                  ## @MSG_DEBUG
L_.str.2:                               ## @.str.2
	.asciz	"IKEV2: KEi DH Group #%u"

L_.str.3:                               ## @.str.3
	.asciz	"IKEV2: KEi DH Group #%u does not match with the selected proposal (%u)"

	.comm	_INVALID_KE_PAYLOAD,4,2         ## @INVALID_KE_PAYLOAD
	.comm	_NOTIFY,4,2                     ## @NOTIFY
L_.str.4:                               ## @.str.4
	.asciz	"IKEV2: Unsupported DH group"

L_.str.5:                               ## @.str.5
	.asciz	"IKEV2: Invalid DH public value length %ld (expected %ld)"

L_.str.6:                               ## @.str.6
	.asciz	"IKEV2: KEi Diffie-Hellman Public Value"

	.no_dead_strip	_ikev2_process_kei
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ikev2_process_kei
_ikev2_process_kei:                     ; @ikev2_process_kei
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	cbz	x1, LBB0_3
; %bb.1:
	mov	x21, x2
	cmp	x2, #99
	b.hi	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh5:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	bl	_wpa_printf
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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
	add	sp, sp, #80
	ret
LBB0_7:
	mov	x20, x1
	mov	x19, x0
	mov	x0, x1
	bl	_WPA_GET_BE16
	mov	x22, x0
Lloh10:
	adrp	x23, _MSG_DEBUG@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MSG_DEBUG@GOTPAGEOFF]
	ldr	w0, [x23]
	str	x22, [sp]
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wpa_printf
	ldr	x8, [x19, #24]
	cmp	x22, x8
	b.ne	LBB0_12
; %bb.8:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_13
; %bb.9:
	sub	x21, x21, #4
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_14
; %bb.10:
	ldr	x0, [x19]
	bl	_wpabuf_free
	mov	x0, x21
	bl	_wpabuf_alloc
	str	x0, [x19]
	cbz	x0, LBB0_5
; %bb.11:
	add	x1, x20, #16
	mov	x2, x21
	bl	_wpabuf_put_data
	ldr	w0, [x23]
	ldr	x2, [x19]
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_wpa_hexdump_buf
	mov	w0, #0
	b	LBB0_6
LBB0_12:
	ldr	w0, [x23]
	stp	x22, x8, [sp]
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_wpa_printf
Lloh18:
	adrp	x8, _INVALID_KE_PAYLOAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _INVALID_KE_PAYLOAD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _NOTIFY@GOTPAGE
Lloh22:
	ldr	x9, [x9, _NOTIFY@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #16]
	b	LBB0_5
LBB0_13:
Lloh24:
	adrp	x8, _MSG_INFO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _MSG_INFO@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_4
LBB0_14:
Lloh29:
	adrp	x9, _MSG_INFO@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MSG_INFO@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x9]
	stp	x21, x8, [sp]
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_4
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_MSG_INFO,4,2                   ; @MSG_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IKEV2: KEi not received"

l_.str.1:                               ; @.str.1
	.asciz	"IKEV2: Too short Key Exchange Payload"

	.comm	_MSG_DEBUG,4,2                  ; @MSG_DEBUG
l_.str.2:                               ; @.str.2
	.asciz	"IKEV2: KEi DH Group #%u"

l_.str.3:                               ; @.str.3
	.asciz	"IKEV2: KEi DH Group #%u does not match with the selected proposal (%u)"

	.comm	_INVALID_KE_PAYLOAD,4,2         ; @INVALID_KE_PAYLOAD
	.comm	_NOTIFY,4,2                     ; @NOTIFY
l_.str.4:                               ; @.str.4
	.asciz	"IKEV2: Unsupported DH group"

l_.str.5:                               ; @.str.5
	.asciz	"IKEV2: Invalid DH public value length %ld (expected %ld)"

l_.str.6:                               ; @.str.6
	.asciz	"IKEV2: KEi Diffie-Hellman Public Value"

	.no_dead_strip	_ikev2_process_kei
.subsections_via_symbols
