	.file	"extr_esp_gap_ble_api.c_esp_ble_gap_stop_advertising.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	esp_ble_gap_stop_advertising
	.type	esp_ble_gap_stop_advertising, @function
esp_ble_gap_stop_advertising:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 40
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR ESP_BLUEDROID_STATUS_ENABLED[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	ESP_BLUEDROID_STATUS_CHECK@PLT
	mov	eax, DWORD PTR BTC_SIG_API_CALL[rip]
	xor	ecx, ecx
	xor	edx, edx
	xor	esi, esi
	lea	rdi, 12[rsp]
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR BTC_PID_GAP_BLE[rip]
	mov	DWORD PTR 16[rsp], eax
	mov	eax, DWORD PTR BTC_GAP_BLE_ACT_STOP_ADV[rip]
	mov	DWORD PTR 12[rsp], eax
	call	btc_transfer_context@PLT
	mov	r8, rax
	cmp	r8, QWORD PTR BT_STATUS_SUCCESS[rip]
	mov	eax, DWORD PTR ESP_FAIL[rip]
	jne	.L1
	mov	eax, DWORD PTR ESP_OK[rip]
.L1:
	mov	rdx, QWORD PTR 24[rsp]
	xor	rdx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L7:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	esp_ble_gap_stop_advertising, .-esp_ble_gap_stop_advertising
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_BLUEDROID_STATUS_ENABLED,4,4
	.comm	BT_STATUS_SUCCESS,8,8
	.comm	BTC_SIG_API_CALL,4,4
	.comm	BTC_PID_GAP_BLE,4,4
	.comm	BTC_GAP_BLE_ACT_STOP_ADV,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_esp_gap_ble_api.c_esp_ble_gap_stop_advertising.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	esp_ble_gap_stop_advertising
	.syntax unified
	.arm
	.fpu softvfp
	.type	esp_ble_gap_stop_advertising, %function
esp_ble_gap_stop_advertising:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	str	lr, [sp, #-4]!
	ldr	r3, .L8
	ldr	r2, .L8+4
	sub	sp, sp, #20
	ldr	r0, [r3]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	bl	ESP_BLUEDROID_STATUS_CHECK
	mov	r3, #0
	ldr	r0, .L8+8
	ldr	r1, .L8+12
	ldr	r2, .L8+16
	ldr	r0, [r0]
	ldr	lr, [r1]
	ldr	ip, [r2]
	mov	r1, r3
	mov	r2, r3
	str	r0, [sp, #8]
	mov	r0, sp
	stm	sp, {ip, lr}
	bl	btc_transfer_context
	ldr	r3, .L8+20
	ldr	r3, [r3]
	cmp	r0, r3
	ldreq	r3, .L8+24
	ldrne	r3, .L8+28
	ldr	r0, [r3]
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	ldr	pc, [sp], #4
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	ESP_BLUEDROID_STATUS_ENABLED
	.word	.LC0
	.word	BTC_SIG_API_CALL
	.word	BTC_PID_GAP_BLE
	.word	BTC_GAP_BLE_ACT_STOP_ADV
	.word	BT_STATUS_SUCCESS
	.word	ESP_OK
	.word	ESP_FAIL
	.size	esp_ble_gap_stop_advertising, .-esp_ble_gap_stop_advertising
	.comm	ESP_OK,4,4
	.comm	ESP_FAIL,4,4
	.comm	ESP_BLUEDROID_STATUS_ENABLED,4,4
	.comm	BT_STATUS_SUCCESS,4,4
	.comm	BTC_SIG_API_CALL,4,4
	.comm	BTC_PID_GAP_BLE,4,4
	.comm	BTC_GAP_BLE_ACT_STOP_ADV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
