	.file	"extr_ikev2.c_ikev2_initiator_process.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"IKEV2: Received message (len %lu)"
	.align 8
.LC1:
	.string	"IKEV2: Too short frame to include HDR"
	.align 8
.LC2:
	.string	"IKEV2:   IKE_SA Initiator's SPI"
	.align 8
.LC3:
	.string	"IKEV2:   Next Payload: %u  Version: 0x%x  Exchange Type: %u"
	.align 8
.LC4:
	.string	"IKEV2:   Message ID: %u  Length: %u"
	.align 8
.LC5:
	.string	"IKEV2: Unsupported HDR version 0x%x (expected 0x%x)"
	.align 8
.LC6:
	.string	"IKEV2: Invalid length (HDR: %lu != RX: %lu)"
	.align 8
.LC7:
	.string	"IKEV2: Unexpected Flags value 0x%x"
	.align 8
.LC8:
	.string	"IKEV2: Unexpected IKE_SA Initiator's SPI"
	.align 8
.LC9:
	.string	"IKEV2: Unexpected IKE_SA Responder's SPI"
	.text
	.p2align 4
	.globl	ikev2_initiator_process
	.type	ikev2_initiator_process, @function
ikev2_initiator_process:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	mov	rdi, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_MSGDUMP[rip]
	lea	rsi, .LC0[rip]
	movsx	rdx, eax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	rdi, r12
	call	wpabuf_len@PLT
	cmp	eax, 31
	jbe	.L21
	mov	rdi, r12
	call	wpabuf_head@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	wpabuf_head_u8@PLT
	mov	rdi, r12
	mov	rbx, rax
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR 28[rbp]
	cdqe
	lea	r15, [rbx+rax*4]
	call	WPA_GET_BE32@PLT
	mov	edi, DWORD PTR 24[rbp]
	mov	r14d, eax
	call	WPA_GET_BE32@PLT
	mov	edx, DWORD PTR 12[rbp]
	mov	ecx, DWORD PTR IKEV2_SPI_LEN[rip]
	lea	rsi, .LC2[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ebx, eax
	call	wpa_hexdump@PLT
	mov	edx, DWORD PTR 8[rbp]
	mov	ecx, DWORD PTR IKEV2_SPI_LEN[rip]
	lea	rsi, .LC2[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_hexdump@PLT
	mov	ecx, DWORD PTR 20[rbp]
	mov	edx, DWORD PTR 4[rbp]
	xor	eax, eax
	mov	r8d, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, ebx
	mov	edx, r14d
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edx, DWORD PTR 20[rbp]
	mov	ecx, DWORD PTR IKEV2_VERSION[rip]
	cmp	edx, ecx
	jne	.L22
	mov	rdi, r12
	call	wpabuf_len@PLT
	cmp	eax, ebx
	jne	.L23
	mov	esi, DWORD PTR 16[rbp]
	mov	edx, r14d
	mov	rdi, r13
	call	ikev2_validate_rx_state@PLT
	test	rax, rax
	js	.L19
	mov	edx, DWORD PTR IKEV2_HDR_RESPONSE[rip]
	mov	eax, DWORD PTR IKEV2_HDR_INITIATOR[rip]
	mov	r8d, DWORD PTR 0[rbp]
	or	eax, edx
	and	eax, r8d
	cmp	edx, eax
	jne	.L24
	cmp	DWORD PTR 0[r13], 128
	je	.L8
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 12[r13]
	mov	edx, DWORD PTR IKEV2_SPI_LEN[rip]
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L25
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 8[r13]
	mov	edx, DWORD PTR IKEV2_SPI_LEN[rip]
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L26
.L8:
	lea	r14, 4[rsp]
	mov	esi, DWORD PTR 4[rbp]
	lea	rdx, 32[rbp]
	mov	rcx, r15
	mov	rdi, r14
	call	ikev2_parse_payloads@PLT
	test	rax, rax
	js	.L19
	mov	eax, DWORD PTR 0[r13]
	cmp	eax, 128
	je	.L11
	cmp	eax, 129
	je	.L12
.L18:
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L27
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r13
	call	ikev2_process_sa_auth@PLT
	sar	eax, 31
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdx, r14
	mov	rsi, rbp
	mov	rdi, r13
	call	ikev2_process_sa_init@PLT
	test	eax, eax
	js	.L19
	mov	edi, DWORD PTR 4[r13]
	call	wpabuf_free@PLT
	mov	rdi, r12
	call	wpabuf_dup@PLT
	mov	DWORD PTR 4[r13], eax
	jmp	.L18
.L24:
	mov	edi, DWORD PTR MSG_INFO[rip]
	mov	edx, r8d
	lea	rsi, .LC7[rip]
	xor	eax, eax
	call	wpa_printf@PLT
.L19:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, r12
	call	wpabuf_len@PLT
	mov	edi, DWORD PTR MSG_INFO[rip]
	movsx	rdx, ebx
	lea	rsi, .LC6[rip]
	movsx	rcx, eax
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L25:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC8[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L26:
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC9[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	mov	eax, -1
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ikev2_initiator_process, .-ikev2_initiator_process
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	IKEV2_VERSION,4,4
	.comm	IKEV2_SPI_LEN,4,4
	.comm	IKEV2_HDR_RESPONSE,4,4
	.comm	IKEV2_HDR_INITIATOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ikev2.c_ikev2_initiator_process.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IKEV2: Received message (len %lu)\000"
	.align	2
.LC1:
	.ascii	"IKEV2: Too short frame to include HDR\000"
	.align	2
.LC2:
	.ascii	"IKEV2:   IKE_SA Initiator's SPI\000"
	.align	2
.LC3:
	.ascii	"IKEV2:   Next Payload: %u  Version: 0x%x  Exchange "
	.ascii	"Type: %u\000"
	.align	2
.LC4:
	.ascii	"IKEV2:   Message ID: %u  Length: %u\000"
	.align	2
.LC5:
	.ascii	"IKEV2: Unsupported HDR version 0x%x (expected 0x%x)"
	.ascii	"\000"
	.align	2
.LC6:
	.ascii	"IKEV2: Invalid length (HDR: %lu != RX: %lu)\000"
	.align	2
.LC7:
	.ascii	"IKEV2: Unexpected Flags value 0x%x\000"
	.align	2
.LC8:
	.ascii	"IKEV2: Unexpected IKE_SA Initiator's SPI\000"
	.align	2
.LC9:
	.ascii	"IKEV2: Unexpected IKE_SA Responder's SPI\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ikev2_initiator_process
	.syntax unified
	.arm
	.fpu softvfp
	.type	ikev2_initiator_process, %function
ikev2_initiator_process:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L31
	sub	sp, sp, #20
	ldr	r4, [r3]
	ldr	r3, .L31+4
	mov	r6, r0
	mov	r0, r1
	mov	r5, r1
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	wpabuf_len
	ldr	r1, .L31+8
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	mov	r0, r5
	bl	wpabuf_len
	cmp	r0, #31
	bls	.L23
	mov	r0, r5
	bl	wpabuf_head
	mov	r4, r0
	mov	r0, r5
	bl	wpabuf_head_u8
	mov	r7, r0
	mov	r0, r5
	bl	wpabuf_len
	mov	r3, r0
	ldr	r0, [r4, #28]
	add	r7, r7, r3, lsl #2
	bl	WPA_GET_BE32
	mov	fp, r0
	ldr	r0, [r4, #24]
	bl	WPA_GET_BE32
	mov	r10, r0
	ldr	r9, .L31+12
	ldr	r8, .L31+16
	ldr	r2, [r4, #12]
	ldr	r3, [r8]
	ldr	r1, .L31+20
	ldr	r0, [r9]
	bl	wpa_hexdump
	ldr	r2, [r4, #8]
	ldr	r3, [r8]
	ldr	r1, .L31+20
	ldr	r0, [r9]
	bl	wpa_hexdump
	ldr	r1, [r4, #16]
	ldr	r3, [r4, #20]
	ldr	r2, [r4, #4]
	ldr	r0, [r9]
	str	r1, [sp]
	ldr	r1, .L31+24
	bl	wpa_printf
	mov	r3, r10
	mov	r2, fp
	ldr	r0, [r9]
	ldr	r1, .L31+28
	bl	wpa_printf
	ldr	r3, .L31+32
	ldr	r2, [r4, #20]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L24
	mov	r0, r5
	bl	wpabuf_len
	cmp	r0, r10
	bne	.L25
	mov	r2, fp
	mov	r0, r6
	ldr	r1, [r4, #16]
	bl	ikev2_validate_rx_state
	cmp	r0, #0
	blt	.L21
	ldr	r2, .L31+36
	ldr	r3, .L31+40
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	orr	r3, r1, r3
	and	r3, r3, r2
	cmp	r1, r3
	bne	.L26
	ldr	r3, [r6]
	cmp	r3, #128
	beq	.L8
	ldr	r2, [r8]
	ldr	r1, [r4, #12]
	ldr	r0, [r6, #12]
	bl	os_memcmp
	cmp	r0, #0
	bne	.L27
	ldr	r2, [r8]
	ldr	r1, [r4, #8]
	ldr	r0, [r6, #8]
	bl	os_memcmp
	cmp	r0, #0
	bne	.L28
.L8:
	mov	r3, r7
	ldr	r1, [r4, #4]
	add	r0, sp, #8
	add	r2, r4, #32
	bl	ikev2_parse_payloads
	cmp	r0, #0
	blt	.L21
	ldr	r3, [r6]
	cmp	r3, #128
	beq	.L11
	cmp	r3, #129
	movne	r0, #0
	beq	.L29
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L29:
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #8
	bl	ikev2_process_sa_auth
	asr	r0, r0, #31
	b	.L1
.L11:
	mov	r1, r4
	mov	r0, r6
	add	r2, sp, #8
	bl	ikev2_process_sa_init
	cmp	r0, #0
	blt	.L21
	ldr	r0, [r6, #4]
	bl	wpabuf_free
	mov	r0, r5
	bl	wpabuf_dup
	mov	r3, r0
	mov	r0, #0
	str	r3, [r6, #4]
	b	.L1
.L26:
	ldr	r3, .L31+44
	ldr	r1, .L31+48
	ldr	r0, [r3]
	bl	wpa_printf
.L21:
	mvn	r0, #0
	b	.L1
.L24:
	ldr	r1, .L31+44
	ldr	r0, [r1]
	ldr	r1, .L31+52
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L25:
	ldr	r3, .L31+44
	mov	r0, r5
	ldr	r4, [r3]
	bl	wpabuf_len
	mov	r2, r10
	mov	r3, r0
	ldr	r1, .L31+56
	mov	r0, r4
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L23:
	ldr	r3, .L31+44
	ldr	r1, .L31+60
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L27:
	ldr	r3, .L31+44
	ldr	r1, .L31+64
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L28:
	ldr	r3, .L31+44
	ldr	r1, .L31+68
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r0, #0
	b	.L1
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MSG_MSGDUMP
	.word	.LC10
	.word	.LC0
	.word	MSG_DEBUG
	.word	IKEV2_SPI_LEN
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	IKEV2_VERSION
	.word	IKEV2_HDR_RESPONSE
	.word	IKEV2_HDR_INITIATOR
	.word	MSG_INFO
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.word	.LC1
	.word	.LC8
	.word	.LC9
	.size	ikev2_initiator_process, .-ikev2_initiator_process
	.comm	MSG_MSGDUMP,4,4
	.comm	MSG_INFO,4,4
	.comm	MSG_DEBUG,4,4
	.comm	IKEV2_VERSION,4,4
	.comm	IKEV2_SPI_LEN,4,4
	.comm	IKEV2_HDR_RESPONSE,4,4
	.comm	IKEV2_HDR_INITIATOR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
