	.file	"extr_r8185b_init.c_MgntDisconnect.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	MgntDisconnect
	.type	MgntDisconnect, @function
MgntDisconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	ieee80211_priv@PLT
	mov	rdi, QWORD PTR [rax]
	mov	rbx, rax
	call	IS_DOT11D_ENABLE@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR IEEE80211_LINKED[rip]
	cmp	QWORD PTR [rax], rdx
	je	.L13
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, QWORD PTR IW_MODE_ADHOC[rip]
	je	.L14
.L5:
	cmp	QWORD PTR IW_MODE_INFRA[rip], rax
	jne	.L4
	mov	esi, r12d
	mov	rdi, rbp
	call	MgntDisconnectAP@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR [rbx]
	call	Dot11d_Reset@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdi, rbp
	call	MgntDisconnectIBSS@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rax]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	MgntDisconnect, .-MgntDisconnect
	.comm	pMgntInfo,8,8
	.comm	eAwake,8,8
	.comm	IW_MODE_INFRA,8,8
	.comm	IW_MODE_ADHOC,8,8
	.comm	IEEE80211_LINKED,8,8
	.comm	Adapter,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_r8185b_init.c_MgntDisconnect.c"
	.text
	.align	2
	.global	MgntDisconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	MgntDisconnect, %function
MgntDisconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r6, r1
	mov	r5, r0
	bl	ieee80211_priv
	mov	r4, r0
	ldr	r0, [r0]
	bl	IS_DOT11D_ENABLE
	cmp	r0, #0
	bne	.L12
.L2:
	ldr	r3, [r4]
	ldr	r2, .L15
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	beq	.L13
.L4:
	mov	r0, #1
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, .L15+4
	ldr	r3, [r3, #4]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L14
.L5:
	ldr	r2, .L15+8
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L4
	mov	r1, r6
	mov	r0, r5
	bl	MgntDisconnectAP
	b	.L4
.L12:
	ldr	r0, [r4]
	bl	Dot11d_Reset
	b	.L2
.L14:
	mov	r0, r5
	bl	MgntDisconnectIBSS
	ldr	r3, [r4]
	ldr	r3, [r3, #4]
	b	.L5
.L16:
	.align	2
.L15:
	.word	IEEE80211_LINKED
	.word	IW_MODE_ADHOC
	.word	IW_MODE_INFRA
	.size	MgntDisconnect, .-MgntDisconnect
	.comm	pMgntInfo,4,4
	.comm	eAwake,4,4
	.comm	IW_MODE_INFRA,4,4
	.comm	IW_MODE_ADHOC,4,4
	.comm	IEEE80211_LINKED,4,4
	.comm	Adapter,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
