	.file	"extr_eap_fast_pac.c_eap_fast_save_pac_bin.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"EAP-FAST: Wrote %lu PAC entries into '%s' (bin)"
	.text
	.p2align 4
	.globl	eap_fast_save_pac_bin
	.type	eap_fast_save_pac_bin, @function
eap_fast_save_pac_bin:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rdi
	test	rsi, rsi
	je	.L2
	mov	eax, DWORD PTR EAP_FAST_PAC_KEY_LEN[rip]
	mov	rbx, rsi
	mov	rdx, rsi
	mov	r13d, 6
	lea	edi, 4[rax]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	mov	esi, DWORD PTR 4[rdx]
	cmp	esi, 65535
	jg	.L25
	lea	eax, 2[rcx+rdi]
	mov	rdx, QWORD PTR 16[rdx]
	add	eax, esi
	cdqe
	add	r13, rax
	test	rdx, rdx
	je	.L27
.L6:
	mov	ecx, DWORD PTR [rdx]
	cmp	ecx, 65535
	jle	.L3
.L25:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, -1
	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
.L27:
	.cfi_restore_state
	mov	rdi, r13
	call	os_malloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L25
	mov	esi, DWORD PTR EAP_FAST_PAC_BINARY_MAGIC[rip]
	mov	rdi, r15
	lea	rbp, 24[r15]
	xor	r14d, r14d
	call	WPA_PUT_BE32@PLT
	mov	esi, DWORD PTR EAP_FAST_PAC_BINARY_FORMAT_VERSION[rip]
	lea	rdi, 16[r15]
	call	WPA_PUT_BE16@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR 8[rbx]
	mov	rdi, rbp
	add	rbp, 8
	add	r14, 1
	call	WPA_PUT_BE16@PLT
	mov	esi, DWORD PTR 32[rbx]
	mov	edx, DWORD PTR EAP_FAST_PAC_KEY_LEN[rip]
	mov	rdi, rbp
	call	os_memcpy@PLT
	movsx	rax, DWORD PTR EAP_FAST_PAC_KEY_LEN[rip]
	mov	esi, DWORD PTR [rbx]
	lea	rbp, 0[rbp+rax*4]
	mov	rdi, rbp
	add	rbp, 8
	call	WPA_PUT_BE16@PLT
	mov	edx, DWORD PTR [rbx]
	mov	esi, DWORD PTR 28[rbx]
	mov	rdi, rbp
	call	os_memcpy@PLT
	movsx	rax, DWORD PTR [rbx]
	mov	esi, DWORD PTR 4[rbx]
	lea	rbp, 0[rbp+rax*4]
	mov	rdi, rbp
	add	rbp, 8
	call	WPA_PUT_BE16@PLT
	mov	edx, DWORD PTR 4[rbx]
	mov	esi, DWORD PTR 24[rbx]
	mov	rdi, rbp
	call	os_memcpy@PLT
	movsx	rax, DWORD PTR 4[rbx]
	mov	rbx, QWORD PTR 16[rbx]
	lea	rbp, 0[rbp+rax*4]
	test	rbx, rbx
	jne	.L8
.L11:
	mov	rdi, QWORD PTR 8[rsp]
	mov	rcx, r13
	mov	rdx, r15
	mov	rsi, r12
	call	eap_fast_write_pac@PLT
	test	rax, rax
	jne	.L28
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	mov	rcx, r12
	mov	rdx, r14
	lea	rsi, .LC0[rip]
	call	wpa_printf@PLT
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L2:
	.cfi_restore_state
	mov	edi, 6
	call	os_malloc@PLT
	mov	r15, rax
	test	rax, rax
	je	.L25
	mov	esi, DWORD PTR EAP_FAST_PAC_BINARY_MAGIC[rip]
	mov	rdi, r15
	mov	r13d, 6
	xor	r14d, r14d
	call	WPA_PUT_BE32@PLT
	mov	esi, DWORD PTR EAP_FAST_PAC_BINARY_FORMAT_VERSION[rip]
	lea	rdi, 16[r15]
	call	WPA_PUT_BE16@PLT
	jmp	.L11
.L28:
	mov	rdi, r15
	call	os_free@PLT
	jmp	.L25
	.cfi_endproc
.LFE0:
	.size	eap_fast_save_pac_bin, .-eap_fast_save_pac_bin
	.comm	MSG_DEBUG,4,4
	.comm	EAP_FAST_PAC_KEY_LEN,4,4
	.comm	EAP_FAST_PAC_BINARY_MAGIC,4,4
	.comm	EAP_FAST_PAC_BINARY_FORMAT_VERSION,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_fast_pac.c_eap_fast_save_pac_bin.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"EAP-FAST: Wrote %lu PAC entries into '%s' (bin)\000"
	.text
	.align	2
	.global	eap_fast_save_pac_bin
	.syntax unified
	.arm
	.fpu softvfp
	.type	eap_fast_save_pac_bin, %function
eap_fast_save_pac_bin:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r1, #0
	mov	r8, r0
	mov	r7, r2
	beq	.L2
	ldr	r6, .L29
	mov	r4, r5
	ldr	r2, [r6]
	mov	r9, #6
	add	r2, r2, #4
	b	.L6
.L3:
	ldr	r3, [r4, #4]
	cmp	r3, #65536
	add	ip, ip, r3
	bge	.L25
	ldr	r4, [r4, #12]
	add	r9, r9, ip
	cmp	r4, #0
	beq	.L27
.L6:
	ldr	r3, [r4]
	add	ip, r3, r2
	cmp	r3, #65536
	add	ip, ip, #2
	blt	.L3
.L25:
	mvn	r5, #0
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	mov	r0, r9
	bl	os_malloc
	subs	fp, r0, #0
	beq	.L25
	ldr	r3, .L29+4
	ldr	r1, [r3]
	bl	WPA_PUT_BE32
	ldr	r3, .L29+8
	add	r0, fp, #16
	ldr	r1, [r3]
	bl	WPA_PUT_BE16
	add	r0, fp, #24
.L8:
	add	r10, r0, #8
	ldr	r1, [r5, #8]
	bl	WPA_PUT_BE16
	ldr	r2, [r6]
	ldr	r1, [r5, #24]
	mov	r0, r10
	bl	os_memcpy
	ldr	r0, [r6]
	ldr	r1, [r5]
	add	r0, r10, r0, lsl #2
	add	r10, r0, #8
	bl	WPA_PUT_BE16
	ldr	r2, [r5]
	ldr	r1, [r5, #20]
	mov	r0, r10
	bl	os_memcpy
	ldm	r5, {r0, r1}
	add	r0, r10, r0, lsl #2
	add	r10, r0, #8
	bl	WPA_PUT_BE16
	ldr	r2, [r5, #4]
	ldr	r1, [r5, #16]
	mov	r0, r10
	bl	os_memcpy
	ldr	r0, [r5, #4]
	ldr	r5, [r5, #12]
	add	r4, r4, #1
	cmp	r5, #0
	add	r0, r10, r0, lsl #2
	bne	.L8
.L11:
	mov	r3, r9
	mov	r0, r8
	mov	r2, fp
	mov	r1, r7
	bl	eap_fast_write_pac
	subs	r5, r0, #0
	bne	.L28
	ldr	r1, .L29+12
	mov	r3, r7
	mov	r2, r4
	ldr	r0, [r1]
	ldr	r1, .L29+16
	bl	wpa_printf
	mov	r0, r5
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L2:
	mov	r0, #6
	bl	os_malloc
	subs	fp, r0, #0
	beq	.L25
	ldr	r3, .L29+4
	mov	r4, r5
	ldr	r1, [r3]
	bl	WPA_PUT_BE32
	ldr	r3, .L29+8
	add	r0, fp, #16
	ldr	r1, [r3]
	bl	WPA_PUT_BE16
	mov	r9, #6
	b	.L11
.L28:
	mov	r0, fp
	bl	os_free
	b	.L25
.L30:
	.align	2
.L29:
	.word	EAP_FAST_PAC_KEY_LEN
	.word	EAP_FAST_PAC_BINARY_MAGIC
	.word	EAP_FAST_PAC_BINARY_FORMAT_VERSION
	.word	MSG_DEBUG
	.word	.LC0
	.size	eap_fast_save_pac_bin, .-eap_fast_save_pac_bin
	.comm	MSG_DEBUG,4,4
	.comm	EAP_FAST_PAC_KEY_LEN,4,4
	.comm	EAP_FAST_PAC_BINARY_MAGIC,4,4
	.comm	EAP_FAST_PAC_BINARY_FORMAT_VERSION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
