	.file	"extr_eap_gpsk.c_eap_gpsk_send_gpsk_2.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-GPSK: Sending Response/GPSK-2"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"EAP-GPSK: ID_Peer"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"EAP-GPSK: Failed to get random data for RAND_Peer"
	.section	.rodata.str1.1
.LC3:
	.string	"EAP-GPSK: RAND_Peer"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"EAP-GPSK: Failed to derive keys"
	.align 8
.LC5:
	.string	"EAP-GPSK: Failed to derive Session-Id"
	.section	.rodata.str1.1
.LC6:
	.string	"EAP-GPSK: Derived Session-Id"
	.text
	.p2align 4
	.type	eap_gpsk_send_gpsk_2, @function
eap_gpsk_send_gpsk_2:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, esi
	lea	rsi, .LC0[rip]
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 16[rbp]
	call	eap_gpsk_mic_len@PLT
	mov	edx, DWORD PTR 0[rbp]
	mov	r8d, r12d
	mov	ecx, DWORD PTR EAP_CODE_RESPONSE[rip]
	mov	r14, rax
	mov	eax, DWORD PTR 4[rbp]
	mov	esi, DWORD PTR EAP_TYPE_GPSK[rip]
	mov	edi, DWORD PTR EAP_VENDOR_IETF[rip]
	lea	eax, 5[rdx+rax]
	mov	edx, DWORD PTR EAP_GPSK_RAND_LEN[rip]
	lea	eax, 2[rax+rdx*2]
	cdqe
	lea	rdx, 10[r13+rax]
	add	rdx, r14
	call	eap_msg_alloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR EAP_GPSK_OPCODE_GPSK_2[rip]
	mov	rdi, rax
	call	wpabuf_put_u8@PLT
	xor	esi, esi
	mov	rdi, r12
	call	wpabuf_put@PLT
	mov	ecx, DWORD PTR 0[rbp]
	mov	rdx, QWORD PTR 48[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rbx, rax
	call	wpa_hexdump_ascii@PLT
	movsx	rsi, DWORD PTR 0[rbp]
	mov	rdi, r12
	call	wpabuf_put_be16@PLT
	movsx	rdx, DWORD PTR 0[rbp]
	mov	rsi, QWORD PTR 48[rbp]
	mov	rdi, r12
	call	wpabuf_put_data@PLT
	movsx	rsi, DWORD PTR 4[rbp]
	mov	rdi, r12
	call	wpabuf_put_be16@PLT
	mov	rsi, QWORD PTR 40[rbp]
	movsx	rdx, DWORD PTR 4[rbp]
	mov	rdi, r12
	call	wpabuf_put_data@PLT
	mov	rdi, QWORD PTR 64[rbp]
	mov	esi, DWORD PTR EAP_GPSK_RAND_LEN[rip]
	call	random_get_bytes@PLT
	test	rax, rax
	jne	.L12
	mov	ecx, DWORD PTR EAP_GPSK_RAND_LEN[rip]
	mov	rdx, QWORD PTR 64[rbp]
	lea	rsi, .LC3[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_hexdump@PLT
	movsx	rdx, DWORD PTR EAP_GPSK_RAND_LEN[rip]
	mov	rsi, QWORD PTR 64[rbp]
	mov	rdi, r12
	call	wpabuf_put_data@PLT
	movsx	rdx, DWORD PTR EAP_GPSK_RAND_LEN[rip]
	mov	rsi, QWORD PTR 56[rbp]
	mov	rdi, r12
	call	wpabuf_put_data@PLT
	mov	rsi, r13
	mov	rdi, r12
	call	wpabuf_put_be16@PLT
	mov	rdx, r13
	mov	rsi, r15
	mov	rdi, r12
	call	wpabuf_put_data@PLT
	mov	esi, 8
	mov	rdi, r12
	call	wpabuf_put@PLT
	mov	esi, DWORD PTR 16[rbp]
	mov	edi, DWORD PTR 4[rax]
	mov	r13, rax
	call	WPA_PUT_BE32@PLT
	mov	esi, DWORD PTR 12[rbp]
	mov	edi, DWORD PTR 0[r13]
	call	WPA_PUT_BE16@PLT
	lea	rax, 80[rbp]
	mov	ecx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 72[rbp]
	mov	edi, DWORD PTR 76[rbp]
	push	rax
	.cfi_def_cfa_offset 72
	mov	eax, DWORD PTR 84[rbp]
	mov	r9, QWORD PTR 56[rbp]
	mov	r8, QWORD PTR 64[rbp]
	push	rax
	.cfi_def_cfa_offset 80
	lea	rax, 20[rbp]
	push	rax
	.cfi_def_cfa_offset 88
	mov	eax, DWORD PTR 24[rbp]
	push	rax
	.cfi_def_cfa_offset 96
	mov	eax, DWORD PTR 88[rbp]
	push	rax
	.cfi_def_cfa_offset 104
	mov	eax, DWORD PTR 92[rbp]
	push	rax
	.cfi_def_cfa_offset 112
	movsx	rax, DWORD PTR 4[rbp]
	push	rax
	.cfi_def_cfa_offset 120
	movsx	rax, DWORD PTR 0[rbp]
	push	QWORD PTR 40[rbp]
	.cfi_def_cfa_offset 128
	push	rax
	.cfi_def_cfa_offset 136
	push	QWORD PTR 48[rbp]
	.cfi_def_cfa_offset 144
	call	eap_gpsk_derive_keys@PLT
	add	rsp, 80
	.cfi_def_cfa_offset 64
	test	rax, rax
	js	.L13
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	lea	rax, 8[rbp]
	mov	ecx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 16[rbp]
	mov	esi, DWORD PTR 72[rbp]
	mov	edi, DWORD PTR 76[rbp]
	push	rax
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR EAP_TYPE_GPSK[rip]
	mov	r9, QWORD PTR 56[rbp]
	push	QWORD PTR 32[rbp]
	.cfi_def_cfa_offset 88
	mov	r8, QWORD PTR 64[rbp]
	push	rax
	.cfi_def_cfa_offset 96
	movsx	rax, DWORD PTR 4[rbp]
	push	rax
	.cfi_def_cfa_offset 104
	movsx	rax, DWORD PTR 0[rbp]
	push	QWORD PTR 40[rbp]
	.cfi_def_cfa_offset 112
	push	rax
	.cfi_def_cfa_offset 120
	push	QWORD PTR 48[rbp]
	.cfi_def_cfa_offset 128
	call	eap_gpsk_derive_session_id@PLT
	add	rsp, 64
	.cfi_def_cfa_offset 64
	test	rax, rax
	js	.L14
	mov	ecx, DWORD PTR 8[rbp]
	mov	rdx, QWORD PTR 32[rbp]
	lea	rsi, .LC6[rip]
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	call	wpa_hexdump@PLT
	xor	esi, esi
	mov	rdi, r12
	call	wpabuf_put_be16@PLT
	mov	rsi, r14
	mov	rdi, r12
	call	wpabuf_put@PLT
	sub	rsp, 8
	.cfi_def_cfa_offset 72
	mov	ecx, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR 16[rbp]
	push	rax
	.cfi_def_cfa_offset 80
	mov	r9, rax
	mov	esi, DWORD PTR 20[rbp]
	mov	r8, rbx
	mov	edi, DWORD PTR 24[rbp]
	sub	r9, rbx
	sar	r9, 2
	call	eap_gpsk_compute_mic@PLT
	pop	rdx
	.cfi_def_cfa_offset 72
	pop	rcx
	.cfi_def_cfa_offset 64
	test	rax, rax
	js	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
.L10:
	mov	esi, DWORD PTR FAILURE[rip]
	mov	rdi, rbp
	call	eap_gpsk_state@PLT
	mov	rdi, r12
	xor	r12d, r12d
	call	wpabuf_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	call	wpa_printf@PLT
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L14:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC5[rip]
	call	wpa_printf@PLT
	jmp	.L10
	.cfi_endproc
.LFE0:
	.size	eap_gpsk_send_gpsk_2, .-eap_gpsk_send_gpsk_2
	.comm	MSG_DEBUG,4,4
	.comm	FAILURE,4,4
	.comm	EAP_VENDOR_IETF,4,4
	.comm	EAP_TYPE_GPSK,4,4
	.comm	EAP_GPSK_RAND_LEN,4,4
	.comm	EAP_GPSK_OPCODE_GPSK_2,4,4
	.comm	EAP_CODE_RESPONSE,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_eap_gpsk.c_eap_gpsk_send_gpsk_2.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-GPSK: Sending Response/GPSK-2\000"
	.align	2
.LC1:
	.ascii	"EAP-GPSK: ID_Peer\000"
	.align	2
.LC2:
	.ascii	"EAP-GPSK: Failed to get random data for RAND_Peer\000"
	.align	2
.LC3:
	.ascii	"EAP-GPSK: RAND_Peer\000"
	.align	2
.LC4:
	.ascii	"EAP-GPSK: Failed to derive keys\000"
	.align	2
.LC5:
	.ascii	"EAP-GPSK: Failed to derive Session-Id\000"
	.align	2
.LC6:
	.ascii	"EAP-GPSK: Derived Session-Id\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_gpsk_send_gpsk_2, %function
eap_gpsk_send_gpsk_2:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r0
	ldr	r9, .L16
	sub	sp, sp, #60
	mov	r5, r1
	ldr	r0, [r9]
	ldr	r1, .L16+4
	mov	r6, r3
	mov	r10, r2
	bl	wpa_printf
	ldr	r1, [r4, #12]
	ldr	r0, [r4, #16]
	bl	eap_gpsk_mic_len
	mov	r8, r0
	ldr	r2, [r4]
	ldr	r7, .L16+8
	ldr	r1, [r4, #4]
	ldr	r3, [r7]
	add	r2, r2, #5
	add	r2, r2, r1
	add	r2, r2, r3, lsl #1
	add	r1, r6, #12
	ldr	r3, .L16+12
	ldr	fp, .L16+16
	ldr	r0, .L16+20
	str	r5, [sp]
	add	r2, r2, r1
	ldr	r3, [r3]
	ldr	r1, [fp]
	ldr	r0, [r0]
	add	r2, r2, r8
	bl	eap_msg_alloc
	subs	r5, r0, #0
	beq	.L1
	ldr	r3, .L16+24
	ldr	r1, [r3]
	bl	wpabuf_put_u8
	mov	r1, #0
	mov	r0, r5
	bl	wpabuf_put
	mov	ip, r0
	ldr	r3, [r4]
	ldr	r2, [r4, #36]
	ldr	r1, .L16+28
	ldr	r0, [r9]
	str	ip, [sp, #52]
	bl	wpa_hexdump_ascii
	ldr	r1, [r4]
	mov	r0, r5
	bl	wpabuf_put_be16
	ldr	r2, [r4]
	ldr	r1, [r4, #36]
	mov	r0, r5
	bl	wpabuf_put_data
	ldr	r1, [r4, #4]
	mov	r0, r5
	bl	wpabuf_put_be16
	ldr	r2, [r4, #4]
	ldr	r1, [r4, #32]
	mov	r0, r5
	bl	wpabuf_put_data
	ldr	r1, [r7]
	ldr	r0, [r4, #44]
	bl	random_get_bytes
	subs	r3, r0, #0
	str	r3, [sp, #48]
	bne	.L13
	ldr	r3, [r7]
	ldr	r2, [r4, #44]
	ldr	r1, .L16+32
	ldr	r0, [r9]
	bl	wpa_hexdump
	ldr	r2, [r7]
	ldr	r1, [r4, #44]
	mov	r0, r5
	bl	wpabuf_put_data
	ldr	r2, [r7]
	ldr	r1, [r4, #40]
	mov	r0, r5
	bl	wpabuf_put_data
	mov	r1, r6
	mov	r0, r5
	bl	wpabuf_put_be16
	mov	r2, r6
	mov	r1, r10
	mov	r0, r5
	bl	wpabuf_put_data
	mov	r1, #8
	mov	r0, r5
	bl	wpabuf_put
	mov	r6, r0
	ldr	r1, [r4, #16]
	ldr	r0, [r0, #4]
	bl	WPA_PUT_BE32
	ldr	r0, [r6]
	ldr	r1, [r4, #12]
	bl	WPA_PUT_BE16
	ldr	r7, [r4, #4]
	ldr	r6, [r4, #32]
	ldr	lr, [r4]
	ldr	ip, [r4, #36]
	ldr	r2, [r4, #40]
	ldr	r3, [r4, #44]
	ldr	r1, [r4, #60]
	ldr	r0, [r4, #24]
	str	r7, [sp, #20]
	ldr	r7, [r4, #64]
	str	r6, [sp, #16]
	ldr	r6, [r4, #68]
	stmib	sp, {r2, ip, lr}
	str	r3, [sp]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #16]
	str	r1, [sp, #40]
	ldr	r1, [r4, #48]
	str	r0, [sp, #32]
	ldr	r0, [r4, #52]
	add	lr, r4, #56
	add	ip, r4, #20
	str	r7, [sp, #28]
	str	r6, [sp, #24]
	str	lr, [sp, #44]
	str	ip, [sp, #36]
	bl	eap_gpsk_derive_keys
	cmp	r0, #0
	blt	.L14
	ldr	r0, [fp]
	ldr	r1, [r4, #28]
	ldr	r2, [r4, #4]
	ldr	r3, [r4, #32]
	ldr	ip, [r4]
	str	r0, [sp, #24]
	ldr	r0, [r4, #36]
	str	r1, [sp, #28]
	ldr	r1, [r4, #40]
	str	r2, [sp, #20]
	ldr	r2, [r4, #44]
	str	r3, [sp, #16]
	add	r3, r4, #8
	str	ip, [sp, #12]
	str	r0, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	str	r3, [sp, #32]
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #48]
	ldr	r0, [r4, #52]
	bl	eap_gpsk_derive_session_id
	cmp	r0, #0
	ldr	r0, [r9]
	blt	.L15
	ldr	r3, [r4, #8]
	ldr	r2, [r4, #28]
	ldr	r1, .L16+36
	bl	wpa_hexdump
	ldr	r1, [sp, #48]
	mov	r0, r5
	bl	wpabuf_put_be16
	mov	r1, r8
	mov	r0, r5
	bl	wpabuf_put
	ldr	r2, [sp, #52]
	str	r0, [sp, #8]
	sub	r3, r0, r2
	asr	r3, r3, #2
	stm	sp, {r2, r3}
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #20]
	ldr	r0, [r4, #24]
	bl	eap_gpsk_compute_mic
	cmp	r0, #0
	blt	.L11
.L1:
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	ldr	r1, .L16+40
	bl	wpa_printf
.L11:
	ldr	r3, .L16+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_gpsk_state
	mov	r0, r5
	bl	wpabuf_free
	ldr	r5, [sp, #48]
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	ldr	r0, [r9]
	ldr	r1, .L16+48
.L10:
	bl	wpa_printf
	ldr	r3, .L16+44
	mov	r0, r4
	ldr	r1, [r3]
	bl	eap_gpsk_state
	mov	r0, r5
	mov	r5, #0
	bl	wpabuf_free
	mov	r0, r5
	add	sp, sp, #60
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	ldr	r0, [r9]
	ldr	r1, .L16+52
	b	.L10
.L17:
	.align	2
.L16:
	.word	MSG_DEBUG
	.word	.LC0
	.word	EAP_GPSK_RAND_LEN
	.word	EAP_CODE_RESPONSE
	.word	EAP_TYPE_GPSK
	.word	EAP_VENDOR_IETF
	.word	EAP_GPSK_OPCODE_GPSK_2
	.word	.LC1
	.word	.LC3
	.word	.LC6
	.word	.LC5
	.word	FAILURE
	.word	.LC2
	.word	.LC4
	.size	eap_gpsk_send_gpsk_2, .-eap_gpsk_send_gpsk_2
	.comm	MSG_DEBUG,4,4
	.comm	FAILURE,4,4
	.comm	EAP_VENDOR_IETF,4,4
	.comm	EAP_TYPE_GPSK,4,4
	.comm	EAP_GPSK_RAND_LEN,4,4
	.comm	EAP_GPSK_OPCODE_GPSK_2,4,4
	.comm	EAP_CODE_RESPONSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
