	.file	"extr_hostap_ap.c_prism2_hostapd_add_sta.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	prism2_hostapd_add_sta, @function
prism2_hostapd_add_sta:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	spin_lock_bh@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r13
	call	ap_get_sta@PLT
	test	rax, rax
	je	.L2
	lea	r12, 16[rax]
	mov	rbp, rax
	mov	rdi, r12
	call	atomic_inc@PLT
	mov	rdi, r13
	call	spin_unlock_bh@PLT
.L9:
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR WLAN_STA_ASSOC[rip]
	test	eax, edx
	jne	.L3
	mov	ecx, DWORD PTR 40[rbp]
	test	ecx, ecx
	jne	.L3
	mov	rcx, QWORD PTR 32[rbp]
	test	rcx, rcx
	je	.L3
	mov	edi, DWORD PTR [rcx]
	mov	rsi, rbp
	call	hostap_event_new_sta@PLT
	mov	eax, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR WLAN_STA_ASSOC[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	or	eax, edx
	or	eax, DWORD PTR WLAN_STA_AUTH[rip]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR jiffies[rip]
	mov	DWORD PTR 28[rbp], eax
	mov	eax, DWORD PTR 8[rbx]
	mov	DWORD PTR 24[rbp], eax
	mov	eax, DWORD PTR 4[rbx]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR [rbx]
	mov	DWORD PTR 4[rbp], eax
	test	DWORD PTR WLAN_RATE_1M[rip], eax
	je	.L4
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR [rax], 2
	mov	eax, DWORD PTR 4[rbp]
.L4:
	test	DWORD PTR WLAN_RATE_2M[rip], eax
	je	.L5
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 4[rax], 4
	mov	eax, DWORD PTR 4[rbp]
.L5:
	test	DWORD PTR WLAN_RATE_5M5[rip], eax
	je	.L6
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 8[rax], 11
	mov	eax, DWORD PTR 4[rbp]
.L6:
	test	DWORD PTR WLAN_RATE_11M[rip], eax
	jne	.L28
.L7:
	mov	rdi, rbp
	call	prism2_check_tx_rates@PLT
	mov	rdi, r12
	call	atomic_dec@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbp]
	mov	DWORD PTR 12[rax], 22
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rdi, r13
	call	spin_unlock_bh@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	rdi, r13
	call	ap_add_sta@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L10
	lea	r12, 16[rax]
	jmp	.L9
.L10:
	or	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	prism2_hostapd_add_sta, .-prism2_hostapd_add_sta
	.comm	jiffies,4,4
	.comm	WLAN_STA_AUTH,4,4
	.comm	WLAN_STA_ASSOC,4,4
	.comm	WLAN_RATE_5M5,4,4
	.comm	WLAN_RATE_2M,4,4
	.comm	WLAN_RATE_1M,4,4
	.comm	WLAN_RATE_11M,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_hostap_ap.c_prism2_hostapd_add_sta.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prism2_hostapd_add_sta, %function
prism2_hostapd_add_sta:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r1
	mov	r6, r0
	bl	spin_lock_bh
	mov	r0, r6
	ldr	r1, [r5, #12]
	bl	ap_get_sta
	subs	r4, r0, #0
	beq	.L2
	add	r7, r4, #12
	mov	r0, r7
	bl	atomic_inc
	mov	r0, r6
	bl	spin_unlock_bh
.L9:
	ldr	r6, .L28
	ldr	r3, [r4]
	ldr	r1, [r6]
	tst	r3, r1
	bne	.L3
	ldr	r2, [r4, #32]
	cmp	r2, #0
	bne	.L3
	ldr	r2, [r4, #28]
	cmp	r2, #0
	beq	.L3
	mov	r1, r4
	ldr	r0, [r2]
	bl	hostap_event_new_sta
	ldr	r1, [r6]
	ldr	r3, [r4]
.L3:
	ldr	r2, .L28+4
	ldr	r0, .L28+8
	ldr	r2, [r2]
	orr	r3, r3, r1
	ldr	r1, .L28+12
	ldr	ip, [r0]
	orr	r2, r2, r3
	ldr	r3, [r5]
	ldr	r0, [r1]
	str	r2, [r4]
	ldr	r2, [r5, #4]
	tst	r3, ip
	ldr	r1, [r5, #8]
	str	r2, [r4, #16]
	movne	r2, #2
	str	r3, [r4, #4]
	ldrne	r3, [r4, #8]
	str	r0, [r4, #24]
	str	r1, [r4, #20]
	strne	r2, [r3]
	ldr	r2, .L28+16
	ldrne	r3, [r4, #4]
	ldr	r2, [r2]
	mov	r0, r4
	tst	r3, r2
	movne	r2, #4
	ldrne	r3, [r4, #8]
	strne	r2, [r3, #4]
	ldr	r2, .L28+20
	ldrne	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	movne	r2, #11
	ldrne	r3, [r4, #8]
	strne	r2, [r3, #8]
	ldr	r2, .L28+24
	ldrne	r3, [r4, #4]
	ldr	r2, [r2]
	tst	r3, r2
	movne	r2, #22
	ldrne	r3, [r4, #8]
	strne	r2, [r3, #12]
	bl	prism2_check_tx_rates
	mov	r0, r7
	bl	atomic_dec
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, r6
	bl	spin_unlock_bh
	mov	r0, r6
	ldr	r1, [r5, #12]
	bl	ap_add_sta
	subs	r4, r0, #0
	addne	r7, r4, #12
	bne	.L9
.L10:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L29:
	.align	2
.L28:
	.word	WLAN_STA_ASSOC
	.word	WLAN_STA_AUTH
	.word	WLAN_RATE_1M
	.word	jiffies
	.word	WLAN_RATE_2M
	.word	WLAN_RATE_5M5
	.word	WLAN_RATE_11M
	.size	prism2_hostapd_add_sta, .-prism2_hostapd_add_sta
	.comm	jiffies,4,4
	.comm	WLAN_STA_AUTH,4,4
	.comm	WLAN_STA_ASSOC,4,4
	.comm	WLAN_RATE_5M5,4,4
	.comm	WLAN_RATE_2M,4,4
	.comm	WLAN_RATE_1M,4,4
	.comm	WLAN_RATE_11M,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
