	.file	"496210.c"
	.intel_syntax noprefix
	.text
	.globl	g_apThread
	.bss
	.align 8
	.type	g_apThread, @object
	.size	g_apThread, 8
g_apThread:
	.zero	8
	.globl	g_apArg
	.align 32
	.type	g_apArg, @object
	.size	g_apArg, 160
g_apArg:
	.zero	160
	.globl	g_apArgc
	.align 4
	.type	g_apArgc, @object
	.size	g_apArgc, 4
g_apArgc:
	.zero	4
	.section	.rodata
.LC0:
	.string	"[HostapdSample]init hostapd."
.LC1:
	.string	"/usr/lib/libwpa.so"
	.align 8
.LC2:
	.string	"[HostapdSample]dlopen libwpa failed."
.LC3:
	.string	"ap_main"
	.align 8
.LC4:
	.string	"[HostapdSample]dlsym ap_main failed."
	.align 8
.LC5:
	.string	"[HostapdSample]run ap_main failed, ret:%d.\n"
.LC6:
	.string	"[HostapdSample]arg %d:%s.\n"
	.align 8
.LC7:
	.string	"[HostapdSample]dlclose libwpa failed."
	.text
	.type	ThreadMain, @function
ThreadMain:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	esi, 2
	lea	rdi, .LC1[rip]
	call	dlopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L2
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L2:
	mov	QWORD PTR -8[rbp], 0
	mov	rax, QWORD PTR -16[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	dlsym@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L4
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlclose@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR g_apArgc[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, g_apArg[rip]
	mov	edi, eax
	call	rdx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -24[rbp], 0
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_apArg[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -24[rbp], 1
.L5:
	mov	eax, DWORD PTR g_apArgc[rip]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L6
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	dlclose@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L3
.L7:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ThreadMain, .-ThreadMain
	.section	.rodata
	.align 8
.LC8:
	.string	"[HostapdSample]create thread failed error:%s.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR g_apArgc[rip], eax
	mov	DWORD PTR -8[rbp], 0
	jmp	.L9
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, g_apArg[rip]
	mov	QWORD PTR [rcx+rdx], rax
	add	DWORD PTR -8[rbp], 1
.L9:
	mov	eax, DWORD PTR g_apArgc[rip]
	cmp	DWORD PTR -8[rbp], eax
	jl	.L10
	mov	ecx, 0
	lea	rdx, ThreadMain[rip]
	mov	esi, 0
	lea	rdi, g_apThread[rip]
	call	pthread_create@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L11
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 1
	jmp	.L12
.L11:
	mov	rax, QWORD PTR g_apThread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_join@PLT
	mov	eax, 0
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"496210.c"
	.text
	.comm	g_apThread,4,4
	.global	g_apArg
	.bss
	.align	2
	.type	g_apArg, %object
	.size	g_apArg, 80
g_apArg:
	.space	80
	.global	g_apArgc
	.align	2
	.type	g_apArgc, %object
	.size	g_apArgc, 4
g_apArgc:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"[HostapdSample]init hostapd.\000"
	.align	2
.LC1:
	.ascii	"/usr/lib/libwpa.so\000"
	.align	2
.LC2:
	.ascii	"[HostapdSample]dlopen libwpa failed.\000"
	.align	2
.LC3:
	.ascii	"ap_main\000"
	.align	2
.LC4:
	.ascii	"[HostapdSample]dlsym ap_main failed.\000"
	.align	2
.LC5:
	.ascii	"[HostapdSample]run ap_main failed, ret:%d.\012\000"
	.align	2
.LC6:
	.ascii	"[HostapdSample]arg %d:%s.\012\000"
	.align	2
.LC7:
	.ascii	"[HostapdSample]dlclose libwpa failed.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ThreadMain, %function
ThreadMain:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r0, .L8
	bl	puts
	mov	r1, #2
	ldr	r0, .L8+4
	bl	dlopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L8+8
	bl	puts
	mov	r3, #0
	b	.L3
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r1, .L8+12
	ldr	r0, [fp, #-16]
	bl	dlsym
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-16]
	bl	dlclose
	ldr	r0, .L8+16
	bl	puts
	mov	r3, #0
	b	.L3
.L4:
	ldr	r3, .L8+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r1, .L8+24
	mov	r0, r2
	blx	r3
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L8+28
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L5
.L6:
	ldr	r2, .L8+24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+32
	bl	printf
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L5:
	ldr	r3, .L8+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L6
	ldr	r0, [fp, #-16]
	bl	dlclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L8+36
	bl	puts
	mov	r3, #0
	b	.L3
.L7:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	g_apArgc
	.word	g_apArg
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	ThreadMain, .-ThreadMain
	.section	.rodata
	.align	2
.LC8:
	.ascii	"[HostapdSample]create thread failed error:%s.\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r2, .L15
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L11
.L12:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r1, .L15+4
	ldr	r3, [fp, #-12]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L11:
	ldr	r3, .L15
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L12
	mov	r3, #0
	ldr	r2, .L15+8
	mov	r1, #0
	ldr	r0, .L15+12
	bl	pthread_create
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L13
	ldr	r0, [fp, #-8]
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	mov	r3, #1
	b	.L14
.L13:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	pthread_join
	mov	r3, #0
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	g_apArgc
	.word	g_apArg
	.word	ThreadMain
	.word	g_apThread
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
