	.file	"extr_ikev2.c_ikev2_build_sai.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"IKEV2: Adding SAi payload"
	.text
	.p2align 4
	.type	ikev2_build_sai, @function
ikev2_build_sai:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rsi
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_printf@PLT
	mov	esi, 24
	mov	rdi, rbp
	call	wpabuf_put@PLT
	mov	esi, 16
	mov	rdi, rbp
	mov	DWORD PTR 16[rax], r12d
	mov	r14, rax
	mov	QWORD PTR 8[rax], 0
	call	wpabuf_put@PLT
	mov	esi, 16
	mov	rdi, rbp
	mov	r12, rax
	mov	eax, DWORD PTR 32[rbx]
	mov	DWORD PTR 12[r12], eax
	mov	eax, DWORD PTR IKEV2_PROTOCOL_IKE[rip]
	mov	DWORD PTR [r12], 4
	mov	DWORD PTR 8[r12], eax
	call	wpabuf_put@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	DWORD PTR [rax], 3
	mov	r13, rax
	mov	eax, DWORD PTR IKEV2_TRANSFORM_ENCR[rip]
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 8[r13], eax
	call	WPA_PUT_BE16@PLT
	mov	rax, QWORD PTR ENCR_AES_CBC[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L5
.L2:
	mov	rdi, rbp
	xor	esi, esi
	call	wpabuf_put@PLT
	mov	edi, DWORD PTR 12[r13]
	sub	rax, r13
	mov	rsi, rax
	sar	rsi, 2
	call	WPA_PUT_BE16@PLT
	mov	rdi, rbp
	mov	esi, 16
	call	wpabuf_put@PLT
	mov	esi, 16
	mov	DWORD PTR [rax], 3
	mov	edi, DWORD PTR 12[rax]
	mov	r13, rax
	call	WPA_PUT_BE16@PLT
	mov	eax, DWORD PTR IKEV2_TRANSFORM_PRF[rip]
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 8[r13], eax
	call	WPA_PUT_BE16@PLT
	mov	rdi, rbp
	mov	esi, 16
	call	wpabuf_put@PLT
	mov	esi, 16
	mov	DWORD PTR [rax], 3
	mov	edi, DWORD PTR 12[rax]
	mov	r13, rax
	call	WPA_PUT_BE16@PLT
	mov	eax, DWORD PTR IKEV2_TRANSFORM_INTEG[rip]
	mov	rsi, QWORD PTR 16[rbx]
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 8[r13], eax
	call	WPA_PUT_BE16@PLT
	mov	rdi, rbp
	mov	esi, 16
	call	wpabuf_put@PLT
	mov	esi, 16
	mov	edi, DWORD PTR 12[rax]
	mov	r13, rax
	call	WPA_PUT_BE16@PLT
	mov	eax, DWORD PTR IKEV2_TRANSFORM_DH[rip]
	mov	rsi, QWORD PTR 24[rbx]
	mov	edi, DWORD PTR 4[r13]
	mov	DWORD PTR 8[r13], eax
	call	WPA_PUT_BE16@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	wpabuf_put@PLT
	mov	edi, DWORD PTR 4[r12]
	sub	rax, r12
	mov	rsi, rax
	sar	rsi, 2
	call	WPA_PUT_BE16@PLT
	mov	rdi, rbp
	xor	esi, esi
	call	wpabuf_put@PLT
	mov	edi, DWORD PTR [r14]
	sub	rax, r14
	mov	rsi, rax
	sar	rsi, 2
	call	WPA_PUT_BE16@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	mov	esi, 32782
	call	wpabuf_put_be16@PLT
	mov	esi, 128
	mov	rdi, rbp
	call	wpabuf_put_be16@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ikev2_build_sai, .-ikev2_build_sai
	.comm	MSG_DEBUG,4,4
	.comm	IKEV2_TRANSFORM_PRF,4,4
	.comm	IKEV2_TRANSFORM_INTEG,4,4
	.comm	IKEV2_TRANSFORM_ENCR,4,4
	.comm	IKEV2_TRANSFORM_DH,4,4
	.comm	IKEV2_PROTOCOL_IKE,4,4
	.comm	ENCR_AES_CBC,8,8
	.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_build_sai.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"IKEV2: Adding SAi payload\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ikev2_build_sai, %function
ikev2_build_sai:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r3, .L6
	mov	r5, r0
	ldr	r1, .L6+4
	ldr	r0, [r3]
	mov	r6, r2
	bl	wpa_printf
	mov	r1, #12
	mov	r0, r4
	bl	wpabuf_put
	mov	r3, #0
	mov	r8, r0
	mov	r1, #16
	stmib	r8, {r3, r6}
	mov	r0, r4
	bl	wpabuf_put
	mov	r3, #4
	ldr	r2, .L6+8
	ldr	r1, [r5, #16]
	ldr	r2, [r2]
	str	r1, [r0, #12]
	str	r2, [r0, #8]
	str	r3, [r0]
	mov	r1, #16
	mov	r6, r0
	mov	r0, r4
	bl	wpabuf_put
	mov	r2, #3
	ldr	r3, .L6+12
	str	r2, [r0]
	ldr	r3, [r3]
	ldr	r1, [r5]
	mov	r7, r0
	str	r3, [r0, #8]
	ldr	r0, [r0, #4]
	bl	WPA_PUT_BE16
	ldr	r3, .L6+16
	ldr	r2, [r5]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L2:
	mov	r1, #0
	mov	r0, r4
	bl	wpabuf_put
	sub	r1, r0, r7
	asr	r1, r1, #2
	ldr	r0, [r7, #12]
	bl	WPA_PUT_BE16
	mov	r1, #16
	mov	r0, r4
	bl	wpabuf_put
	mov	r9, #3
	mov	r7, r0
	str	r9, [r0]
	mov	r1, #16
	ldr	r0, [r0, #12]
	bl	WPA_PUT_BE16
	ldr	r3, .L6+20
	ldr	r1, [r5, #4]
	ldr	r3, [r3]
	ldr	r0, [r7, #4]
	str	r3, [r7, #8]
	bl	WPA_PUT_BE16
	mov	r1, #16
	mov	r0, r4
	bl	wpabuf_put
	mov	r7, r0
	str	r9, [r0]
	mov	r1, #16
	ldr	r0, [r0, #12]
	bl	WPA_PUT_BE16
	ldr	r3, .L6+24
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	ldr	r0, [r7, #4]
	str	r3, [r7, #8]
	bl	WPA_PUT_BE16
	mov	r1, #16
	mov	r0, r4
	bl	wpabuf_put
	mov	r7, r0
	mov	r1, #16
	ldr	r0, [r0, #12]
	bl	WPA_PUT_BE16
	ldr	r3, .L6+28
	ldr	r1, [r5, #12]
	ldr	r3, [r3]
	ldr	r0, [r7, #4]
	str	r3, [r7, #8]
	bl	WPA_PUT_BE16
	mov	r1, #0
	mov	r0, r4
	bl	wpabuf_put
	sub	r1, r0, r6
	asr	r1, r1, #2
	ldr	r0, [r6, #4]
	bl	WPA_PUT_BE16
	mov	r0, r4
	mov	r1, #0
	bl	wpabuf_put
	sub	r1, r0, r8
	asr	r1, r1, #2
	ldr	r0, [r8]
	bl	WPA_PUT_BE16
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	mov	r0, r4
	ldr	r1, .L6+32
	bl	wpabuf_put_be16
	mov	r1, #128
	mov	r0, r4
	bl	wpabuf_put_be16
	b	.L2
.L7:
	.align	2
.L6:
	.word	MSG_DEBUG
	.word	.LC0
	.word	IKEV2_PROTOCOL_IKE
	.word	IKEV2_TRANSFORM_ENCR
	.word	ENCR_AES_CBC
	.word	IKEV2_TRANSFORM_PRF
	.word	IKEV2_TRANSFORM_INTEG
	.word	IKEV2_TRANSFORM_DH
	.word	32782
	.size	ikev2_build_sai, .-ikev2_build_sai
	.comm	MSG_DEBUG,4,4
	.comm	IKEV2_TRANSFORM_PRF,4,4
	.comm	IKEV2_TRANSFORM_INTEG,4,4
	.comm	IKEV2_TRANSFORM_ENCR,4,4
	.comm	IKEV2_TRANSFORM_DH,4,4
	.comm	IKEV2_PROTOCOL_IKE,4,4
	.comm	ENCR_AES_CBC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
