	.file	"extr_hostapd.c_hostapd_interface_init_bss.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	" --> new PHY"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Configuration file: %s (phy %s)%s"
	.align 8
.LC2:
	.string	"Multiple BSSes specified in BSS-config"
	.align 8
.LC3:
	.string	"Interface name %s already in use"
	.align 8
.LC4:
	.string	"Interface name not specified in %s"
	.section	.rodata.str1.1
.LC5:
	.string	""
	.text
	.p2align 4
	.globl	hostapd_interface_init_bss
	.type	hostapd_interface_init_bss, @function
hostapd_interface_init_bss:
.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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rsi, rsi
	je	.L49
	cmp	BYTE PTR [rsi], 0
	mov	r15, rsi
	je	.L49
	xor	ebx, ebx
	cmp	QWORD PTR [rdi], 0
	mov	rbp, rdi
	mov	r13, rdx
	mov	r12d, ecx
	jne	.L5
	jmp	.L48
	.p2align 4,,10
	.p2align 3
.L7:
	add	rbx, 1
	cmp	QWORD PTR 0[rbp], rbx
	jbe	.L48
.L5:
	mov	rax, QWORD PTR 16[rbp]
	mov	rsi, r15
	lea	r14, 0[0+rbx*8]
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	edi, DWORD PTR 32[rax]
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L7
	mov	rax, QWORD PTR 16[rbp]
	mov	edi, DWORD PTR MSG_INFO[rip]
	mov	r14, QWORD PTR [rax+r14]
	test	r14, r14
	je	.L9
	mov	rcx, r15
	lea	r8, .LC5[rip]
	mov	rdx, r13
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	mov	rdi, r13
	call	[QWORD PTR 8[rbp]]
	mov	r15, rax
	test	rax, rax
	je	.L49
	cmp	DWORD PTR [r15], 1
	jg	.L52
	mov	rax, QWORD PTR 8[r15]
	mov	rax, QWORD PTR [rax]
	mov	rbx, QWORD PTR [rax]
	cmp	BYTE PTR [rbx], 0
	je	.L11
	mov	rsi, rbx
	mov	rdi, rbp
	call	ifname_in_use@PLT
	test	rax, rax
	jne	.L53
.L11:
	mov	rax, QWORD PTR 16[r14]
	mov	edx, 8
	mov	ecx, DWORD PTR [rax]
	mov	rdi, QWORD PTR 8[rax]
	lea	esi, 1[rcx]
	call	os_realloc_array@PLT
	mov	rdi, QWORD PTR 8[r14]
	mov	edx, 8
	mov	rbx, rax
	mov	eax, DWORD PTR [r14]
	lea	esi, 1[rax]
	call	os_realloc_array@PLT
	test	rax, rax
	je	.L12
	mov	QWORD PTR 8[r14], rax
	test	rbx, rbx
	je	.L50
	mov	rsi, QWORD PTR 16[r14]
	mov	rax, QWORD PTR [rbx]
	mov	rdi, r14
	mov	rdx, QWORD PTR 8[r15]
	mov	QWORD PTR 16[rsi], rax
	mov	eax, DWORD PTR [rsi]
	mov	rbp, QWORD PTR [rdx]
	mov	QWORD PTR 8[rsi], rbx
	movsx	rdx, eax
	add	eax, 1
	mov	QWORD PTR [rbx+rdx*8], rbp
	mov	rdx, rbp
	mov	DWORD PTR [rsi], eax
	call	hostapd_alloc_bss_data@PLT
	test	rax, rax
	je	.L54
	movsx	rcx, DWORD PTR [r14]
	mov	rdx, QWORD PTR 16[r14]
	mov	rdi, r15
	xor	ebx, ebx
	mov	rsi, QWORD PTR 8[r14]
	mov	QWORD PTR 16[rdx], rbp
	mov	rdx, rcx
	lea	rbp, 0[0+rcx*8]
	mov	QWORD PTR [rsi+rcx*8], rax
	add	edx, 1
	mov	QWORD PTR 16[rax], rax
	mov	rax, QWORD PTR 8[r15]
	mov	DWORD PTR [r14], edx
	sub	DWORD PTR [r15], 1
	mov	QWORD PTR [rax], 0
	call	hostapd_config_free@PLT
.L16:
	test	r12d, r12d
	jle	.L21
	mov	rax, QWORD PTR 8[r14]
	xor	edx, edx
	mov	rax, QWORD PTR [rax+rbp]
	mov	rcx, QWORD PTR 8[rax]
	.p2align 4,,10
	.p2align 3
.L20:
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	jle	.L19
	sub	rax, 1
	mov	QWORD PTR [rcx], rax
.L19:
	add	edx, 1
	cmp	r12d, edx
	jne	.L20
.L21:
	mov	rax, QWORD PTR 16[r14]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax+rbp]
	mov	rax, QWORD PTR [rax]
	cmp	BYTE PTR [rax], 0
	je	.L55
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r14
	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
.L12:
	.cfi_restore_state
	test	rbx, rbx
	je	.L50
	mov	rax, QWORD PTR 16[r14]
	mov	rdx, QWORD PTR [rbx]
	mov	QWORD PTR 8[rax], rbx
	mov	QWORD PTR 16[rax], rdx
.L50:
	mov	rdi, r15
	call	hostapd_config_free@PLT
.L49:
	xor	r14d, r14d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	edi, DWORD PTR MSG_INFO[rip]
.L9:
	lea	r8, .LC0[rip]
	mov	rcx, r15
	mov	rdx, r13
	xor	eax, eax
	lea	rsi, .LC1[rip]
	call	wpa_printf@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	hostapd_init@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L49
	mov	edi, DWORD PTR 32[rax]
	mov	edx, 4
	mov	rsi, r15
	mov	r14, rbx
	call	os_strlcpy@PLT
	mov	QWORD PTR 24[rbx], rbp
	xor	ebp, ebp
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L52:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC2[rip]
	xor	eax, eax
	xor	r14d, r14d
	call	wpa_printf@PLT
	mov	rdi, r15
	call	hostapd_config_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L55:
	mov	rax, QWORD PTR 8[r14]
	mov	rdi, QWORD PTR [rax+rbp]
	call	hostapd_drv_none@PLT
	test	eax, eax
	jne	.L1
	mov	edi, DWORD PTR MSG_ERROR[rip]
	mov	rdx, r13
	lea	rsi, .LC4[rip]
	call	wpa_printf@PLT
	test	rbx, rbx
	je	.L49
	mov	rdi, rbx
	xor	r14d, r14d
	call	hostapd_interface_deinit_free@PLT
	jmp	.L1
.L54:
	mov	rax, QWORD PTR 16[r14]
	sub	DWORD PTR [rax], 1
	jmp	.L50
.L53:
	mov	edi, DWORD PTR MSG_ERROR[rip]
	mov	rdx, rbx
	xor	eax, eax
	xor	r14d, r14d
	lea	rsi, .LC3[rip]
	call	wpa_printf@PLT
	mov	rdi, r15
	call	hostapd_config_free@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	hostapd_interface_init_bss, .-hostapd_interface_init_bss
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,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_hostapd.c_hostapd_interface_init_bss.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Configuration file: %s (phy %s)%s\000"
	.align	2
.LC1:
	.ascii	" --> new PHY\000"
	.align	2
.LC2:
	.ascii	"Multiple BSSes specified in BSS-config\000"
	.align	2
.LC3:
	.ascii	"Interface name %s already in use\000"
	.align	2
.LC4:
	.ascii	"Interface name not specified in %s\000"
	.align	2
.LC5:
	.ascii	"\000"
	.text
	.align	2
	.global	hostapd_interface_init_bss
	.syntax unified
	.arm
	.fpu softvfp
	.type	hostapd_interface_init_bss, %function
hostapd_interface_init_bss:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	subs	r10, r1, #0
	sub	sp, sp, #8
	beq	.L56
	mov	r7, r3
	ldrb	r3, [r10]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L56
	ldr	r3, [r0]
	mov	r6, r0
	cmp	r3, #0
	mov	r8, r2
	beq	.L5
	mov	r4, #0
	b	.L9
.L6:
	ldr	r3, [r6]
	cmp	r3, r4
	bls	.L5
.L9:
	ldr	r3, [r6, #8]
	mov	r1, r10
	ldr	r2, [r3, r4, lsl #2]
	lsl	r9, r4, #2
	ldr	r0, [r2, #16]
	bl	os_strcmp
	subs	r5, r0, #0
	add	r4, r4, #1
	bne	.L6
	ldr	r2, [r6, #8]
	ldr	r3, .L62
	ldr	r4, [r2, r9]
	ldr	r0, [r3]
	cmp	r4, #0
	beq	.L8
	ldr	r2, .L62+4
	mov	r3, r10
	ldr	r1, .L62+8
	str	r2, [sp]
	mov	r2, r8
	bl	wpa_printf
	mov	r0, r8
	ldr	r3, [r6, #4]
	blx	r3
	subs	r10, r0, #0
	beq	.L56
	ldr	r3, [r10]
	cmp	r3, #1
	bgt	.L58
	ldr	r3, [r10, #4]
	ldr	r3, [r3]
	ldr	r9, [r3]
	ldrb	r3, [r9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L12
	mov	r0, r6
	mov	r1, r9
	bl	ifname_in_use
	cmp	r0, #0
	bne	.L59
.L12:
	ldr	r3, [r4, #8]
	mov	r2, #4
	ldr	r1, [r3]
	ldr	r0, [r3, #4]
	add	r1, r1, #1
	bl	os_realloc_array
	ldr	r1, [r4]
	mov	r5, r0
	mov	r2, #4
	ldr	r0, [r4, #4]
	add	r1, r1, #1
	bl	os_realloc_array
	cmp	r0, #0
	beq	.L13
	cmp	r5, #0
	str	r0, [r4, #4]
	beq	.L15
	ldr	r1, [r4, #8]
	ldr	r3, [r5]
	ldr	r2, [r10, #4]
	str	r3, [r1, #8]
	ldr	r3, [r1]
	ldr	r6, [r2]
	add	r2, r3, #1
	str	r5, [r1, #4]
	mov	r0, r4
	str	r6, [r5, r3, lsl #2]
	str	r2, [r1]
	mov	r2, r6
	bl	hostapd_alloc_bss_data
	subs	r3, r0, #0
	beq	.L60
	mov	r5, #0
	ldr	r9, [r4]
	ldr	r2, [r4, #8]
	ldr	r1, [r4, #4]
	str	r6, [r2, #8]
	ldr	r2, [r10]
	str	r3, [r1, r9, lsl #2]
	str	r3, [r3, #8]
	add	r3, r9, #1
	str	r3, [r4]
	ldr	r3, [r10, #4]
	sub	r2, r2, #1
	str	r2, [r10]
	mov	r0, r10
	str	r5, [r3]
	lsl	r9, r9, #2
	bl	hostapd_config_free
.L17:
	cmp	r7, #0
	ble	.L22
	mov	r3, #0
	ldr	r2, [r4, #4]
	ldr	r2, [r2, r9]
	ldr	r2, [r2, #4]
.L21:
	ldr	r1, [r2]
	add	r3, r3, #1
	cmp	r1, #0
	subgt	r1, r1, #1
	strgt	r1, [r2]
	cmp	r7, r3
	bne	.L21
.L22:
	ldr	r3, [r4, #8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, r9]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L61
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L13:
	cmp	r5, #0
	ldrne	r3, [r4, #8]
	ldrne	r2, [r5]
	strne	r5, [r3, #4]
	strne	r2, [r3, #8]
.L15:
	mov	r0, r10
	bl	hostapd_config_free
.L56:
	mov	r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, .L62
	ldr	r0, [r3]
.L8:
	ldr	r3, .L62+12
	mov	r2, r8
	ldr	r1, .L62+8
	str	r3, [sp]
	mov	r3, r10
	bl	wpa_printf
	mov	r1, r8
	mov	r0, r6
	bl	hostapd_init
	subs	r5, r0, #0
	beq	.L56
	mov	r1, r10
	mov	r2, #4
	ldr	r0, [r5, #16]
	bl	os_strlcpy
	mov	r4, r5
	mov	r9, #0
	str	r6, [r5, #12]
	b	.L17
.L58:
	ldr	r3, .L62+16
	ldr	r1, .L62+20
	ldr	r0, [r3]
	bl	wpa_printf
	mov	r0, r10
	mov	r4, r5
	bl	hostapd_config_free
	b	.L1
.L61:
	ldr	r3, [r4, #4]
	ldr	r0, [r3, r9]
	bl	hostapd_drv_none
	subs	r6, r0, #0
	bne	.L1
	ldr	r3, .L62+16
	mov	r2, r8
	ldr	r0, [r3]
	ldr	r1, .L62+24
	bl	wpa_printf
	cmp	r5, #0
	beq	.L56
	mov	r0, r5
	bl	hostapd_interface_deinit_free
	mov	r4, r6
	b	.L1
.L60:
	ldr	r1, [r4, #8]
	mov	r4, r3
	ldr	r2, [r1]
	mov	r0, r10
	sub	r3, r2, #1
	str	r3, [r1]
	bl	hostapd_config_free
	b	.L1
.L59:
	ldr	r3, .L62+16
	mov	r2, r9
	ldr	r0, [r3]
	ldr	r1, .L62+28
	bl	wpa_printf
	mov	r0, r10
	mov	r4, r5
	bl	hostapd_config_free
	b	.L1
.L63:
	.align	2
.L62:
	.word	MSG_INFO
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	MSG_ERROR
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	hostapd_interface_init_bss, .-hostapd_interface_init_bss
	.comm	MSG_INFO,4,4
	.comm	MSG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
