	.file	"extr_eap_server_aka.c_eap_aka_build_challenge.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"EAP-AKA: Generating Challenge"
.LC1:
	.string	"   AT_RAND"
.LC2:
	.string	"   AT_AUTN"
.LC3:
	.string	"   AT_KDF"
.LC4:
	.string	"   AT_KDF_INPUT"
.LC5:
	.string	"   AT_RESULT_IND"
.LC6:
	.string	"   AT_MAC"
	.text
	.p2align 4
	.type	eap_aka_build_challenge, @function
eap_aka_build_challenge:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	mov	ecx, DWORD PTR EAP_AKA_SUBTYPE_CHALLENGE[rip]
	mov	rdx, QWORD PTR [rbx]
	mov	esi, ebp
	mov	edi, DWORD PTR EAP_CODE_REQUEST[rip]
	call	eap_sim_msg_init@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	mov	rbp, rax
	call	wpa_printf@PLT
	mov	rcx, QWORD PTR 48[rbx]
	xor	edx, edx
	mov	rdi, rbp
	mov	r8, QWORD PTR EAP_AKA_RAND_LEN[rip]
	mov	esi, DWORD PTR EAP_SIM_AT_RAND[rip]
	call	eap_sim_msg_add@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC2[rip]
	call	wpa_printf@PLT
	mov	rcx, QWORD PTR 40[rbx]
	xor	edx, edx
	mov	rdi, rbp
	mov	r8, QWORD PTR EAP_AKA_AUTN_LEN[rip]
	mov	esi, DWORD PTR EAP_SIM_AT_AUTN[rip]
	call	eap_sim_msg_add@PLT
	mov	rax, QWORD PTR EAP_TYPE_AKA_PRIME[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L11
.L2:
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdx, rbp
	mov	rsi, rbx
	mov	rdi, r12
	call	eap_aka_build_encr@PLT
	test	rax, rax
	jne	.L8
	mov	rsi, rbp
	mov	rdi, rbx
	call	eap_aka_add_checkcode@PLT
	cmp	QWORD PTR 8[r12], 0
	jne	.L12
.L6:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC6[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR EAP_SIM_AT_MAC[rip]
	mov	rdi, rbp
	call	eap_sim_msg_add_mac@PLT
	mov	edx, DWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	r8d, r8d
	pop	rbp
	.cfi_def_cfa_offset 16
	xor	ecx, ecx
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	eap_sim_msg_finish@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	cmp	QWORD PTR 32[rbx], 0
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	jne	.L13
.L3:
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR EAP_SIM_AT_KDF[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	mov	rdx, QWORD PTR EAP_AKA_PRIME_KDF[rip]
	mov	rdi, rbp
	call	eap_sim_msg_add@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	call	wpa_printf@PLT
	mov	rdx, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR 24[rbx]
	mov	rdi, rbp
	mov	esi, DWORD PTR EAP_SIM_AT_KDF_INPUT[rip]
	mov	r8, rdx
	call	eap_sim_msg_add@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC5[rip]
	call	wpa_printf@PLT
	mov	esi, DWORD PTR EAP_SIM_AT_RESULT_IND[rip]
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, rbp
	call	eap_sim_msg_add@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, rbp
	call	eap_sim_msg_free@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	mov	rdx, QWORD PTR 32[rbx]
	mov	rdi, rbp
	xor	r8d, r8d
	mov	esi, DWORD PTR EAP_SIM_AT_KDF[rip]
	xor	ecx, ecx
	call	eap_sim_msg_add@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	eap_aka_build_challenge, .-eap_aka_build_challenge
	.comm	MSG_DEBUG,4,4
	.comm	EAP_VENDOR_IETF,8,8
	.comm	EAP_TYPE_NONE,8,8
	.comm	EAP_TYPE_AKA_PRIME,8,8
	.comm	EAP_TYPE_AKA,8,8
	.comm	EAP_SIM_AT_RESULT_IND,4,4
	.comm	EAP_SIM_AT_RAND,4,4
	.comm	EAP_SIM_AT_MAC,4,4
	.comm	EAP_SIM_AT_KDF_INPUT,4,4
	.comm	EAP_SIM_AT_KDF,4,4
	.comm	EAP_SIM_AT_BIDDING,4,4
	.comm	EAP_SIM_AT_AUTN,4,4
	.comm	EAP_MAX_METHODS,4,4
	.comm	EAP_CODE_REQUEST,4,4
	.comm	EAP_AKA_SUBTYPE_CHALLENGE,4,4
	.comm	EAP_AKA_RAND_LEN,8,8
	.comm	EAP_AKA_PRIME_KDF,8,8
	.comm	EAP_AKA_BIDDING_FLAG_D,8,8
	.comm	EAP_AKA_AUTN_LEN,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_eap_server_aka.c_eap_aka_build_challenge.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-AKA: Generating Challenge\000"
	.align	2
.LC1:
	.ascii	"   AT_RAND\000"
	.align	2
.LC2:
	.ascii	"   AT_AUTN\000"
	.align	2
.LC3:
	.ascii	"   AT_KDF\000"
	.align	2
.LC4:
	.ascii	"   AT_KDF_INPUT\000"
	.align	2
.LC5:
	.ascii	"   AT_RESULT_IND\000"
	.align	2
.LC6:
	.ascii	"   AT_MAC\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_aka_build_challenge, %function
eap_aka_build_challenge:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, r1
	mov	r5, r2
	ldr	r7, .L18
	sub	sp, sp, #12
	ldr	r1, .L18+4
	mov	r8, r0
	ldr	r0, [r7]
	bl	wpa_printf
	ldr	r3, .L18+8
	ldr	r0, .L18+12
	mov	r1, r5
	ldr	r2, [r4]
	ldr	r3, [r3]
	ldr	r0, [r0]
	bl	eap_sim_msg_init
	mov	r5, r0
	ldr	r1, .L18+16
	ldr	r0, [r7]
	bl	wpa_printf
	ldr	r3, .L18+20
	ldr	r2, .L18+24
	ldr	r1, [r3]
	ldr	r3, [r4, #24]
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	bl	eap_sim_msg_add
	ldr	r1, .L18+28
	ldr	r0, [r7]
	bl	wpa_printf
	ldr	r3, .L18+32
	ldr	r2, .L18+36
	ldr	r1, [r3]
	ldr	r3, [r4, #20]
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	mov	r2, #0
	bl	eap_sim_msg_add
	ldr	r3, .L18+40
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L15
.L2:
	mov	r6, #0
	mov	r2, r5
	mov	r3, r6
	mov	r1, r4
	mov	r0, r8
	str	r6, [sp]
	bl	eap_aka_build_encr
	subs	r9, r0, #0
	bne	.L16
	mov	r1, r5
	mov	r0, r4
	bl	eap_aka_add_checkcode
	ldr	r3, [r8, #4]
	cmp	r3, #0
	bne	.L17
.L6:
	ldr	r0, [r7]
	ldr	r1, .L18+44
	bl	wpa_printf
	ldr	r3, .L18+48
	mov	r0, r5
	ldr	r1, [r3]
	bl	eap_sim_msg_add_mac
	mov	r3, #0
	str	r3, [sp]
	mov	r0, r5
	ldm	r4, {r1, r2}
	bl	eap_sim_msg_finish
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L15:
	ldr	r3, [r4, #16]
	ldr	r0, [r7]
	cmp	r3, #0
	bne	.L12
	ldr	r6, .L18+52
.L3:
	ldr	r1, .L18+56
	bl	wpa_printf
	mov	r3, #0
	ldr	r2, .L18+60
	ldr	r1, [r6]
	str	r3, [sp]
	ldr	r2, [r2]
	mov	r0, r5
	bl	eap_sim_msg_add
	ldr	r1, .L18+64
	ldr	r0, [r7]
	bl	wpa_printf
	ldr	r2, [r4, #8]
	ldr	r3, .L18+68
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r0, r5
	ldr	r3, [r4, #12]
	bl	eap_sim_msg_add
	b	.L2
.L17:
	ldr	r1, .L18+72
	ldr	r0, [r7]
	bl	wpa_printf
	ldr	r3, .L18+76
	str	r9, [sp]
	ldr	r1, [r3]
	mov	r2, r9
	mov	r3, r9
	mov	r0, r5
	bl	eap_sim_msg_add
	b	.L6
.L16:
	mov	r0, r5
	bl	eap_sim_msg_free
	mov	r0, r6
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L12:
	ldr	r1, .L18+56
	bl	wpa_printf
	mov	r3, #0
	ldr	r6, .L18+52
	str	r3, [sp]
	mov	r0, r5
	ldr	r1, [r6]
	ldr	r2, [r4, #16]
	bl	eap_sim_msg_add
	ldr	r0, [r7]
	b	.L3
.L19:
	.align	2
.L18:
	.word	MSG_DEBUG
	.word	.LC0
	.word	EAP_AKA_SUBTYPE_CHALLENGE
	.word	EAP_CODE_REQUEST
	.word	.LC1
	.word	EAP_AKA_RAND_LEN
	.word	EAP_SIM_AT_RAND
	.word	.LC2
	.word	EAP_AKA_AUTN_LEN
	.word	EAP_SIM_AT_AUTN
	.word	EAP_TYPE_AKA_PRIME
	.word	.LC6
	.word	EAP_SIM_AT_MAC
	.word	EAP_SIM_AT_KDF
	.word	.LC3
	.word	EAP_AKA_PRIME_KDF
	.word	.LC4
	.word	EAP_SIM_AT_KDF_INPUT
	.word	.LC5
	.word	EAP_SIM_AT_RESULT_IND
	.size	eap_aka_build_challenge, .-eap_aka_build_challenge
	.comm	MSG_DEBUG,4,4
	.comm	EAP_VENDOR_IETF,4,4
	.comm	EAP_TYPE_NONE,4,4
	.comm	EAP_TYPE_AKA_PRIME,4,4
	.comm	EAP_TYPE_AKA,4,4
	.comm	EAP_SIM_AT_RESULT_IND,4,4
	.comm	EAP_SIM_AT_RAND,4,4
	.comm	EAP_SIM_AT_MAC,4,4
	.comm	EAP_SIM_AT_KDF_INPUT,4,4
	.comm	EAP_SIM_AT_KDF,4,4
	.comm	EAP_SIM_AT_BIDDING,4,4
	.comm	EAP_SIM_AT_AUTN,4,4
	.comm	EAP_MAX_METHODS,4,4
	.comm	EAP_CODE_REQUEST,4,4
	.comm	EAP_AKA_SUBTYPE_CHALLENGE,4,4
	.comm	EAP_AKA_RAND_LEN,4,4
	.comm	EAP_AKA_PRIME_KDF,4,4
	.comm	EAP_AKA_BIDDING_FLAG_D,4,4
	.comm	EAP_AKA_AUTN_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
