	.file	"extr_ipw2200.c_ipw_add_station.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Adding AdHoc station: %pM\n"
	.text
	.p2align 4
	.type	ipw_add_station, @function
ipw_add_station:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jle	.L8
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	lea	r12d, 1[rbx]
	add	rbx, 1
	cmp	DWORD PTR 0[rbp], ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR 8[rbp]
	mov	rsi, r13
	mov	r12d, ebx
	mov	edi, DWORD PTR [rax+rbx*4]
	call	ether_addr_equal@PLT
	test	rax, rax
	je	.L3
	mov	QWORD PTR 16[rbp], 0
	mov	edx, DWORD PTR 4[rbp]
	test	DWORD PTR CFG_STATIC_CHANNEL[rip], edx
	jne	.L1
	mov	eax, DWORD PTR CFG_ADHOC_PERSIST[rip]
	not	eax
	and	eax, edx
	mov	DWORD PTR 4[rbp], eax
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L8:
	.cfi_restore_state
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	DWORD PTR MAX_STATIONS[rip], r12d
	je	.L13
	mov	rsi, r13
	lea	rdi, .LC0[rip]
	movsx	rbx, r12d
	call	IPW_DEBUG_SCAN@PLT
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	edi, DWORD PTR [rsp]
	mov	rsi, r13
	mov	QWORD PTR 16[rsp], 0
	mov	QWORD PTR 8[rsp], 0
	call	memcpy@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	edx, DWORD PTR ETH_ALEN[rip]
	mov	rsi, r13
	mov	edi, DWORD PTR [rax+rbx*4]
	call	memcpy@PLT
	lea	rcx, [rbx+rbx*2]
	mov	rdx, rsp
	mov	rdi, rbp
	mov	rax, QWORD PTR IPW_STATION_TABLE_LOWER[rip]
	lea	rsi, [rax+rcx*8]
	mov	ecx, 24
	call	ipw_write_direct@PLT
	add	DWORD PTR 0[rbp], 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L13:
	mov	r12d, DWORD PTR IPW_INVALID_STATION[rip]
	jmp	.L1
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ipw_add_station, .-ipw_add_station
	.comm	MAX_STATIONS,4,4
	.comm	IPW_STATION_TABLE_LOWER,8,8
	.comm	IPW_INVALID_STATION,4,4
	.comm	ETH_ALEN,4,4
	.comm	CFG_STATIC_CHANNEL,4,4
	.comm	CFG_ADHOC_PERSIST,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_ipw2200.c_ipw_add_station.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Adding AdHoc station: %pM\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipw_add_station, %function
ipw_add_station:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, [r0]
	sub	sp, sp, #20
	cmp	r3, #0
	ldr	r3, .L14
	mov	r5, r0
	mov	r6, r1
	mov	r4, #0
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bgt	.L5
	b	.L2
.L3:
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L2
.L5:
	ldr	r3, [r5, #8]
	mov	r1, r6
	ldr	r0, [r3, r4, lsl #2]
	bl	ether_addr_equal
	cmp	r0, #0
	beq	.L3
	mov	r1, #0
	ldr	r2, .L14+4
	ldr	r3, [r5, #4]
	ldr	r2, [r2]
	str	r1, [r5, #12]
	tst	r3, r2
	ldreq	r2, .L14+8
	ldreq	r2, [r2]
	biceq	r3, r3, r2
	streq	r3, [r5, #4]
.L1:
	ldr	r3, .L14
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	ldr	r3, .L14+12
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L13
	mov	r1, r6
	ldr	r0, .L14+16
	bl	IPW_DEBUG_SCAN
	mov	r3, #0
	ldr	r7, .L14+20
	mov	r1, r6
	ldr	r2, [r7]
	ldr	r0, [sp]
	str	r3, [sp, #8]
	str	r3, [sp, #4]
	bl	memcpy
	ldr	r3, [r5, #8]
	mov	r1, r6
	ldr	r2, [r7]
	ldr	r0, [r3, r4, lsl #2]
	bl	memcpy
	ldr	r3, .L14+24
	add	r2, r4, r4, lsl #1
	ldr	r1, [r3]
	mov	r0, r5
	mov	r3, #12
	add	r1, r1, r2, lsl #2
	mov	r2, sp
	bl	ipw_write_direct
	ldr	r3, [r5]
	add	r3, r3, #1
	str	r3, [r5]
	b	.L1
.L13:
	ldr	r3, .L14+28
	ldr	r4, [r3]
	b	.L1
.L12:
	bl	__stack_chk_fail
.L15:
	.align	2
.L14:
	.word	.LC1
	.word	CFG_STATIC_CHANNEL
	.word	CFG_ADHOC_PERSIST
	.word	MAX_STATIONS
	.word	.LC0
	.word	ETH_ALEN
	.word	IPW_STATION_TABLE_LOWER
	.word	IPW_INVALID_STATION
	.size	ipw_add_station, .-ipw_add_station
	.comm	MAX_STATIONS,4,4
	.comm	IPW_STATION_TABLE_LOWER,4,4
	.comm	IPW_INVALID_STATION,4,4
	.comm	ETH_ALEN,4,4
	.comm	CFG_STATIC_CHANNEL,4,4
	.comm	CFG_ADHOC_PERSIST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
