	.file	"extr_sim800.c_sim800_power_down.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"AT+CPOWD=1\r"
.LC1:
	.string	"send command failed"
.LC2:
	.string	"power down failed"
.LC3:
	.string	"power down ok"
	.text
	.p2align 4
	.type	sim800_power_down, @function
sim800_power_down:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rsi, .LC0[rip]
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR sim800_handle_power_down[rip]
	mov	rax, QWORD PTR 16[rdi]
	mov	r12d, DWORD PTR err[rip]
	mov	DWORD PTR 8[rdi], edx
	mov	edx, DWORD PTR MODEM_COMMAND_TIMEOUT_POWEROFF[rip]
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	xor	edi, edi
	cmp	QWORD PTR ESP_OK[rip], rax
	mov	edx, r12d
	sete	dil
	lea	rsi, .LC1[rip]
	call	DCE_CHECK@PLT
	mov	rax, QWORD PTR MODEM_STATE_SUCCESS[rip]
	xor	edi, edi
	mov	edx, DWORD PTR err[rip]
	cmp	QWORD PTR [rbx], rax
	lea	rsi, .LC2[rip]
	sete	dil
	call	DCE_CHECK@PLT
	mov	edi, DWORD PTR DCE_TAG[rip]
	lea	rsi, .LC3[rip]
	call	ESP_LOGD@PLT
	mov	rax, QWORD PTR ESP_OK[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sim800_power_down, .-sim800_power_down
	.comm	sim800_handle_power_down,4,4
	.comm	err,4,4
	.comm	MODEM_STATE_SUCCESS,8,8
	.comm	MODEM_COMMAND_TIMEOUT_POWEROFF,4,4
	.comm	ESP_OK,8,8
	.comm	ESP_FAIL,8,8
	.comm	DCE_TAG,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_sim800.c_sim800_power_down.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"AT+CPOWD=1\015\000"
	.align	2
.LC1:
	.ascii	"send command failed\000"
	.align	2
.LC2:
	.ascii	"power down failed\000"
	.align	2
.LC3:
	.ascii	"power down ok\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sim800_power_down, %function
sim800_power_down:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, .L4
	ldr	r0, [r0, #8]
	ldr	r3, [r3]
	ldr	r2, .L4+4
	str	r3, [r4, #4]
	ldr	r2, [r2]
	ldr	r3, [r0]
	ldr	r1, .L4+8
	blx	r3
	ldr	r5, .L4+12
	ldr	r6, .L4+16
	ldr	r3, [r5]
	ldr	r2, [r6]
	sub	r0, r3, r0
	clz	r0, r0
	ldr	r1, .L4+20
	lsr	r0, r0, #5
	bl	DCE_CHECK
	ldr	r3, .L4+24
	ldr	r0, [r4]
	ldr	r3, [r3]
	ldr	r2, [r6]
	sub	r0, r0, r3
	clz	r0, r0
	ldr	r1, .L4+28
	lsr	r0, r0, #5
	bl	DCE_CHECK
	ldr	r3, .L4+32
	ldr	r1, .L4+36
	ldr	r0, [r3]
	bl	ESP_LOGD
	ldr	r0, [r5]
	pop	{r4, r5, r6, pc}
.L5:
	.align	2
.L4:
	.word	sim800_handle_power_down
	.word	MODEM_COMMAND_TIMEOUT_POWEROFF
	.word	.LC0
	.word	ESP_OK
	.word	err
	.word	.LC1
	.word	MODEM_STATE_SUCCESS
	.word	.LC2
	.word	DCE_TAG
	.word	.LC3
	.size	sim800_power_down, .-sim800_power_down
	.comm	sim800_handle_power_down,4,4
	.comm	err,4,4
	.comm	MODEM_STATE_SUCCESS,4,4
	.comm	MODEM_COMMAND_TIMEOUT_POWEROFF,4,4
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	DCE_TAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
