	.file	"extr_preauth_test.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"usage: preauth_test <conf> <target MAC address> <ifname>"
	.align 8
.LC1:
	.string	"Failed to parse target address '%s'.\n"
	.align 8
.LC2:
	.string	"Failed to register EAP methods"
	.align 8
.LC3:
	.string	"Failed to initialize event loop"
	.align 8
.LC4:
	.string	"Failed to parse configuration file '%s'.\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC5:
	.string	"No networks defined."
	.section	.rodata.str1.8
	.align 8
.LC6:
	.ascii	"Fai"
	.string	"led to initialize control interface '%s'.\nYou may have another preauth_test process already running or the file was\nleft by an unclean termination of preauth_test in which case you will need\nto manually remove this file before starting preauth_test again.\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	mov	r12d, edi
	push	rbx
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR ETH_ALEN[rip]
	mov	rcx, rsp
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L25:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L25
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L26
.L4:
	xor	eax, eax
	mov	r14, rsp
	call	os_program_init@PLT
	test	rax, rax
	jne	.L23
	lea	r13, -80[rbp]
	mov	edx, 32
	xor	esi, esi
	mov	rdi, r13
	call	os_memset@PLT
	mov	QWORD PTR wpa_debug_level[rip], 0
	mov	DWORD PTR wpa_debug_show_keys[rip], 1
	cmp	r12d, 4
	jne	.L27
	mov	rdi, QWORD PTR 16[rbx]
	mov	rsi, r14
	call	hwaddr_aton@PLT
	test	rax, rax
	jne	.L28
	xor	eax, eax
	call	eap_register_methods@PLT
	test	rax, rax
	jne	.L29
	xor	eax, eax
	call	eloop_init@PLT
	test	rax, rax
	jne	.L30
	lea	r12, -112[rbp]
	mov	edx, 32
	xor	esi, esi
	mov	rdi, r12
	call	os_memset@PLT
	mov	rdi, QWORD PTR 8[rbx]
	xor	esi, esi
	call	wpa_config_read@PLT
	mov	QWORD PTR -96[rbp], rax
	test	rax, rax
	je	.L31
	cmp	QWORD PTR 8[rax], 0
	je	.L32
	mov	rsi, QWORD PTR 24[rbx]
	mov	rdi, r12
	call	wpa_init_conf@PLT
	mov	rdi, r12
	call	wpa_supplicant_ctrl_iface_init@PLT
	test	rax, rax
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	je	.L33
	mov	rsi, QWORD PTR 8[rax]
	mov	rdi, r12
	call	wpa_supplicant_scard_init@PLT
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR -96[rbp]
	mov	edi, DWORD PTR -112[rbp]
	mov	rsi, r14
	mov	rdx, QWORD PTR 8[rax]
	call	rsn_preauth_init@PLT
	test	rax, rax
	jne	.L23
	mov	edx, DWORD PTR eapol_test_timeout[rip]
	xor	r8d, r8d
	mov	rcx, r13
	xor	esi, esi
	mov	edi, 30
	mov	r13d, -2
	call	eloop_register_timeout@PLT
	mov	edx, DWORD PTR eapol_test_poll[rip]
	xor	r8d, r8d
	xor	edi, edi
	mov	rcx, r12
	mov	esi, 100000
	call	eloop_register_timeout@PLT
	mov	edi, DWORD PTR eapol_test_terminate[rip]
	mov	rsi, r12
	call	eloop_register_signal_terminate@PLT
	mov	edi, DWORD PTR eapol_test_terminate[rip]
	mov	rsi, r12
	call	eloop_register_signal_reconfig@PLT
	xor	eax, eax
	call	eloop_run@PLT
	cmp	QWORD PTR -72[rbp], 0
	je	.L34
.L15:
	mov	rdi, r12
	call	test_eapol_clean@PLT
	xor	eax, eax
	call	eap_peer_unregister_methods@PLT
	xor	eax, eax
	call	eloop_destroy@PLT
	xor	eax, eax
	call	os_program_deinit@PLT
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L35
	lea	rsp, -32[rbp]
	mov	eax, r13d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
.L34:
	.cfi_restore_state
	push	rax
	mov	edi, DWORD PTR -112[rbp]
	xor	ecx, ecx
	xor	r9d, r9d
	push	0
	xor	r8d, r8d
	mov	rdx, r14
	xor	esi, esi
	call	pmksa_cache_set_current@PLT
	pop	rdx
	pop	rcx
	cmp	rax, 1
	sbb	r13d, r13d
	and	r13d, -3
	jmp	.L15
.L26:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L32:
	lea	rdi, .LC5[rip]
	call	puts@PLT
.L23:
	or	r13d, -1
	jmp	.L1
.L27:
	lea	rdi, .LC0[rip]
	or	r13d, -1
	call	puts@PLT
	jmp	.L1
.L28:
	mov	rsi, QWORD PTR 16[rbx]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	or	r13d, -1
	call	printf@PLT
	jmp	.L1
.L29:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC2[rip]
	or	r13d, -1
	call	wpa_printf@PLT
	jmp	.L1
.L30:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC3[rip]
	or	r13d, -1
	call	wpa_printf@PLT
	jmp	.L1
.L33:
	mov	rsi, QWORD PTR [rax]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	or	r13d, -1
	call	printf@PLT
	jmp	.L1
.L31:
	mov	rsi, QWORD PTR 8[rbx]
	lea	rdi, .LC4[rip]
	or	r13d, -1
	call	printf@PLT
	jmp	.L1
.L35:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	wpa_debug_show_keys,4,4
	.comm	wpa_debug_level,8,8
	.comm	eapol_test_timeout,4,4
	.comm	eapol_test_terminate,4,4
	.comm	eapol_test_poll,4,4
	.comm	MSG_ERROR,4,4
	.comm	ETH_ALEN,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_preauth_test.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usage: preauth_test <conf> <target MAC address> <if"
	.ascii	"name>\000"
	.align	2
.LC1:
	.ascii	"Failed to parse target address '%s'.\012\000"
	.align	2
.LC2:
	.ascii	"Failed to register EAP methods\000"
	.align	2
.LC3:
	.ascii	"Failed to initialize event loop\000"
	.align	2
.LC4:
	.ascii	"Failed to parse configuration file '%s'.\012\000"
	.align	2
.LC5:
	.ascii	"No networks defined.\000"
	.align	2
.LC6:
	.ascii	"Failed to initialize control interface '%s'.\012You"
	.ascii	" may have another preauth_test process already runn"
	.ascii	"ing or the file was\012left by an unclean terminati"
	.ascii	"on of preauth_test in which case you will need\012t"
	.ascii	"o manually remove this file before starting preauth"
	.ascii	"_test again.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #56
	ldr	r3, .L27
	mov	r5, r0
	ldr	r3, [r3]
	mov	r4, r1
	lsl	r3, r3, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	ldr	r3, .L27+4
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	os_program_init
	subs	r6, r0, #0
	bne	.L16
	mov	r2, #16
	mov	r1, r6
	sub	r0, fp, #40
	bl	os_memset
	mov	r1, #1
	ldr	r2, .L27+8
	ldr	r3, .L27+12
	cmp	r5, #4
	str	r1, [r2]
	str	r6, [r3]
	bne	.L18
	add	r7, sp, #16
	mov	r1, r7
	ldr	r0, [r4, #8]
	bl	hwaddr_aton
	cmp	r0, #0
	bne	.L19
	bl	eap_register_methods
	cmp	r0, #0
	bne	.L20
	bl	eloop_init
	subs	r5, r0, #0
	bne	.L21
	mov	r2, #16
	mov	r1, r5
	sub	r0, fp, #56
	bl	os_memset
	mov	r1, r5
	ldr	r0, [r4, #4]
	bl	wpa_config_read
	cmp	r0, #0
	str	r0, [fp, #-48]
	beq	.L22
	ldr	r3, [r0, #4]
	cmp	r3, #0
	beq	.L23
	ldr	r1, [r4, #12]
	sub	r0, fp, #56
	bl	wpa_init_conf
	sub	r0, fp, #56
	bl	wpa_supplicant_ctrl_iface_init
	cmp	r0, #0
	ldr	r3, [fp, #-48]
	str	r0, [fp, #-44]
	beq	.L24
	ldr	r1, [r3, #4]
	sub	r0, fp, #56
	bl	wpa_supplicant_scard_init
	cmp	r0, #0
	bne	.L16
	ldr	r3, [fp, #-48]
	mov	r1, r7
	ldr	r2, [r3, #4]
	ldr	r0, [fp, #-56]
	bl	rsn_preauth_init
	cmp	r0, #0
	bne	.L16
	mov	r4, #0
	ldr	r2, .L27+16
	str	r4, [sp]
	mov	r1, r4
	ldr	r2, [r2]
	sub	r3, fp, #40
	mov	r0, #30
	bl	eloop_register_timeout
	ldr	r3, .L27+20
	str	r4, [sp]
	ldr	r5, .L27+24
	ldr	r2, [r3]
	mov	r0, r4
	sub	r3, fp, #56
	ldr	r1, .L27+28
	bl	eloop_register_timeout
	sub	r1, fp, #56
	ldr	r0, [r5]
	bl	eloop_register_signal_terminate
	sub	r1, fp, #56
	ldr	r0, [r5]
	bl	eloop_register_signal_reconfig
	bl	eloop_run
	ldr	r4, [fp, #-36]
	cmp	r4, #0
	mvnne	r4, #1
	beq	.L25
.L12:
	sub	r0, fp, #56
	bl	test_eapol_clean
	bl	eap_peer_unregister_methods
	bl	eloop_destroy
	bl	os_program_deinit
.L1:
	ldr	r3, .L27+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	mov	r0, r4
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L25:
	mov	r3, r4
	mov	r1, r4
	str	r4, [sp, #8]
	str	r4, [sp, #4]
	str	r4, [sp]
	mov	r2, r7
	ldr	r0, [fp, #-56]
	bl	pmksa_cache_set_current
	cmp	r0, #0
	mvneq	r4, #2
	b	.L12
.L23:
	ldr	r0, .L27+32
	bl	puts
.L16:
	mvn	r4, #0
	b	.L1
.L18:
	ldr	r0, .L27+36
	bl	puts
	mvn	r4, #0
	b	.L1
.L19:
	ldr	r1, [r4, #8]
	ldr	r0, .L27+40
	bl	printf
	mvn	r4, #0
	b	.L1
.L20:
	ldr	r3, .L27+44
	ldr	r1, .L27+48
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L21:
	ldr	r3, .L27+44
	ldr	r1, .L27+52
	ldr	r0, [r3]
	bl	wpa_printf
	mvn	r4, #0
	b	.L1
.L24:
	ldr	r0, .L27+56
	ldr	r1, [r3]
	bl	printf
	mvn	r4, #0
	b	.L1
.L22:
	ldr	r1, [r4, #4]
	ldr	r0, .L27+60
	bl	printf
	mvn	r4, #0
	b	.L1
.L26:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	ETH_ALEN
	.word	.LC7
	.word	wpa_debug_show_keys
	.word	wpa_debug_level
	.word	eapol_test_timeout
	.word	eapol_test_poll
	.word	eapol_test_terminate
	.word	100000
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	MSG_ERROR
	.word	.LC2
	.word	.LC3
	.word	.LC6
	.word	.LC4
	.size	main, .-main
	.comm	wpa_debug_show_keys,4,4
	.comm	wpa_debug_level,4,4
	.comm	eapol_test_timeout,4,4
	.comm	eapol_test_terminate,4,4
	.comm	eapol_test_poll,4,4
	.comm	MSG_ERROR,4,4
	.comm	ETH_ALEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
