	.file	"extr_eap_sim_common.c_eap_sim_msg_add_full.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	eap_sim_msg_add_full
	.type	eap_sim_msg_add_full, @function
eap_sim_msg_add_full:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L12
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14d, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	lea	ebp, 2[rcx]
	mov	r12d, ebp
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	neg	r12d
	and	r12d, 3
	add	ebp, r12d
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, ebp
	call	wpabuf_resize@PLT
	xor	r8d, r8d
	test	rax, rax
	jne	.L1
	mov	edi, DWORD PTR [rbx]
	xor	esi, esi
	call	wpabuf_put@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, r14d
	mov	QWORD PTR 8[rsp], rax
	call	wpabuf_put_u8@PLT
	test	ebp, ebp
	lea	esi, 3[rbp]
	mov	edi, DWORD PTR [rbx]
	cmovns	esi, ebp
	sar	esi, 2
	call	wpabuf_put_u8@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rdx, r15
	mov	rsi, r13
	call	wpabuf_put_data@PLT
	test	r12d, r12d
	mov	r8, QWORD PTR 8[rsp]
	jne	.L13
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	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
.L13:
	.cfi_restore_state
	mov	edi, DWORD PTR [rbx]
	mov	esi, r12d
	call	wpabuf_put@PLT
	mov	edx, r12d
	xor	esi, esi
	mov	rdi, rax
	call	os_memset@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	xor	r8d, r8d
	mov	rax, r8
	ret
	.cfi_endproc
.LFE0:
	.size	eap_sim_msg_add_full, .-eap_sim_msg_add_full
	.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_add_full.c"
	.text
	.align	2
	.global	eap_sim_msg_add_full
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_sim_msg_add_full, %function
eap_sim_msg_add_full:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r5, r0, #0
	beq	.L4
	add	lr, r3, #2
	mov	r6, r3
	rsbs	r3, lr, #0
	and	r3, r3, #3
	and	ip, lr, #3
	rsbpl	ip, r3, #0
	rsb	ip, ip, #4
	and	r9, ip, #3
	add	r4, lr, r9
	mov	r8, r1
	mov	r1, r4
	mov	r7, r2
	bl	wpabuf_resize
	subs	r10, r0, #0
	bne	.L4
	mov	r1, r10
	ldr	r0, [r5]
	bl	wpabuf_put
	mov	r3, r0
	mov	r1, r8
	ldr	r0, [r5]
	mov	r8, r3
	bl	wpabuf_put_u8
	cmp	r4, #0
	add	r1, r4, #3
	movge	r1, r4
	ldr	r0, [r5]
	asr	r1, r1, #2
	bl	wpabuf_put_u8
	mov	r2, r6
	mov	r1, r7
	ldr	r0, [r5]
	bl	wpabuf_put_data
	cmp	r9, #0
	bne	.L10
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L4:
	mov	r8, #0
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L10:
	mov	r1, r9
	ldr	r0, [r5]
	bl	wpabuf_put
	mov	r2, r9
	mov	r1, r10
	bl	os_memset
	mov	r0, r8
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
	.size	eap_sim_msg_add_full, .-eap_sim_msg_add_full
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
