	.file	"extr_handlers.c_apply_config_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Wi-Fi config not set"
.LC1:
	.string	"Wi-Fi Credentials Applied"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"Failed to apply Wi-Fi Credentials"
	.text
	.p2align 4
	.type	apply_config_handler, @function
apply_config_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	get_config@PLT
	test	rax, rax
	je	.L8
	mov	rdi, rax
	call	wifi_prov_mgr_configure_sta@PLT
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	r12, rax
	je	.L9
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC2[rip]
	call	ESP_LOGE@PLT
.L5:
	mov	rdi, rbp
	call	free_config@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC1[rip]
	call	ESP_LOGD@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGE@PLT
	mov	r12, QWORD PTR ESP_ERR_INVALID_STATE[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	apply_config_handler, .-apply_config_handler
	.comm	TAG,4,4
	.comm	ESP_OK,8,8
	.comm	ESP_ERR_INVALID_STATE,8,8
	.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_handlers.c_apply_config_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wi-Fi config not set\000"
	.align	2
.LC1:
	.ascii	"Wi-Fi Credentials Applied\000"
	.align	2
.LC2:
	.ascii	"Failed to apply Wi-Fi Credentials\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	apply_config_handler, %function
apply_config_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	bl	get_config
	cmp	r0, #0
	beq	.L8
	bl	wifi_prov_mgr_configure_sta
	ldr	r3, .L10
	mov	r4, r0
	ldr	r3, [r3]
	cmp	r3, r0
	ldr	r3, .L10+4
	beq	.L9
	ldr	r1, .L10+8
	ldr	r0, [r3]
	bl	ESP_LOGE
.L5:
	mov	r0, r5
	bl	free_config
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r1, .L10+12
	ldr	r0, [r3]
	bl	ESP_LOGD
	b	.L5
.L8:
	ldr	r3, .L10+4
	ldr	r1, .L10+16
	ldr	r0, [r3]
	bl	ESP_LOGE
	ldr	r3, .L10+20
	ldr	r4, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	ESP_OK
	.word	TAG
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.word	ESP_ERR_INVALID_STATE
	.size	apply_config_handler, .-apply_config_handler
	.comm	TAG,4,4
	.comm	ESP_OK,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
