	.file	"extr_manager.c_wifi_prov_mgr_get_wifi_disconnect_reason.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Provisioning manager not initialized"
	.text
	.p2align 4
	.globl	wifi_prov_mgr_get_wifi_disconnect_reason
	.type	wifi_prov_mgr_get_wifi_disconnect_reason, @function
wifi_prov_mgr_get_wifi_disconnect_reason:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR prov_ctx_lock[rip]
	test	edi, edi
	je	.L9
	call	ACQUIRE_LOCK@PLT
	mov	rax, QWORD PTR prov_ctx[rip]
	test	rax, rax
	je	.L6
	test	rbx, rbx
	je	.L6
	mov	rdx, QWORD PTR WIFI_PROV_STA_DISCONNECTED[rip]
	cmp	QWORD PTR [rax], rdx
	jne	.L6
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR [rbx], eax
	mov	edi, DWORD PTR prov_ctx_lock[rip]
	call	RELEASE_LOCK@PLT
	mov	eax, DWORD PTR ESP_OK[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR prov_ctx_lock[rip]
	call	RELEASE_LOCK@PLT
	mov	eax, DWORD PTR ESP_FAIL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGE@PLT
	mov	eax, DWORD PTR ESP_ERR_INVALID_STATE[rip]
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	wifi_prov_mgr_get_wifi_disconnect_reason, .-wifi_prov_mgr_get_wifi_disconnect_reason
	.comm	prov_ctx_lock,4,4
	.comm	prov_ctx,8,8
	.comm	WIFI_PROV_STA_DISCONNECTED,8,8
	.comm	TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_STATE,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_manager.c_wifi_prov_mgr_get_wifi_disconnect_reason.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Provisioning manager not initialized\000"
	.text
	.align	2
	.global	wifi_prov_mgr_get_wifi_disconnect_reason
	.syntax unified
	.arm
	.fpu softvfp
	.type	wifi_prov_mgr_get_wifi_disconnect_reason, %function
wifi_prov_mgr_get_wifi_disconnect_reason:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r5, .L9
	mov	r4, r0
	ldr	r0, [r5]
	cmp	r0, #0
	beq	.L8
	bl	ACQUIRE_LOCK
	ldr	r3, .L9+4
	ldr	r3, [r3]
	cmp	r4, #0
	cmpne	r3, #0
	beq	.L5
	ldr	r2, .L9+8
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	bne	.L5
	ldr	r3, [r3, #4]
	str	r3, [r4]
	ldr	r0, [r5]
	bl	RELEASE_LOCK
	ldr	r3, .L9+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r0, [r5]
	bl	RELEASE_LOCK
	ldr	r3, .L9+16
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r3, .L9+20
	ldr	r1, .L9+24
	ldr	r0, [r3]
	bl	ESP_LOGE
	ldr	r3, .L9+28
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L10:
	.align	2
.L9:
	.word	prov_ctx_lock
	.word	prov_ctx
	.word	WIFI_PROV_STA_DISCONNECTED
	.word	ESP_OK
	.word	ESP_FAIL
	.word	TAG
	.word	.LC0
	.word	ESP_ERR_INVALID_STATE
	.size	wifi_prov_mgr_get_wifi_disconnect_reason, .-wifi_prov_mgr_get_wifi_disconnect_reason
	.comm	prov_ctx_lock,4,4
	.comm	prov_ctx,4,4
	.comm	WIFI_PROV_STA_DISCONNECTED,4,4
	.comm	TAG,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_ERR_INVALID_STATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
