	.file	"extr_eap_sim_common.c_eap_sim_msg_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	eap_sim_msg_init
	.type	eap_sim_msg_init, @function
eap_sim_msg_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, edi
	mov	edi, 8
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	ebx, ecx
	call	os_zalloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR EAP_SIM_INIT_LEN[rip]
	call	wpabuf_alloc@PLT
	mov	QWORD PTR [r12], rax
	mov	rdi, rax
	test	rax, rax
	je	.L9
	mov	esi, 8
	call	wpabuf_put@PLT
	mov	rdi, QWORD PTR [r12]
	mov	esi, 4
	mov	DWORD PTR [rax], r14d
	mov	DWORD PTR 4[rax], r13d
	call	wpabuf_put@PLT
	mov	DWORD PTR [rax], ebp
	mov	DWORD PTR 4[rax], ebx
	mov	QWORD PTR 8[rax], 0
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	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
.L9:
	.cfi_restore_state
	mov	rdi, r12
	xor	r12d, r12d
	call	os_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	eap_sim_msg_init, .-eap_sim_msg_init
	.comm	EAP_SIM_INIT_LEN,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_sim_common.c_eap_sim_msg_init.c"
	.text
	.align	2
	.global	eap_sim_msg_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_sim_msg_init, %function
eap_sim_msg_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	mov	r0, #4
	mov	r8, r1
	mov	r7, r2
	mov	r6, r3
	bl	os_zalloc
	subs	r4, r0, #0
	beq	.L1
	ldr	r3, .L10
	ldr	r0, [r3]
	bl	wpabuf_alloc
	cmp	r0, #0
	mov	r5, r0
	str	r0, [r4]
	beq	.L9
	mov	r1, #8
	bl	wpabuf_put
	mov	r1, #4
	str	r9, [r0]
	str	r8, [r0, #4]
	ldr	r0, [r4]
	bl	wpabuf_put
	mov	r3, #0
	str	r7, [r0]
	str	r6, [r0, #4]
	str	r3, [r0, #8]
	str	r3, [r0, #12]
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L9:
	mov	r0, r4
	bl	os_free
	mov	r4, r5
	b	.L1
.L11:
	.align	2
.L10:
	.word	EAP_SIM_INIT_LEN
	.size	eap_sim_msg_init, .-eap_sim_msg_init
	.comm	EAP_SIM_INIT_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
