	.file	"extr_protocomm_nimble.c_ble_gatt_add_primary_svcs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Memory allocation for GATT characteristics failed"
	.text
	.p2align 4
	.type	ble_gatt_add_primary_svcs, @function
ble_gatt_add_primary_svcs:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR BLE_GATT_SVC_TYPE_PRIMARY[rip]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	DWORD PTR num_chr_dsc[rip], esi
	mov	DWORD PTR 8[rdi], eax
	lea	edi, 1[rsi]
	mov	esi, 4
	call	calloc@PLT
	xor	r8d, r8d
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L7
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR TAG[rip]
	lea	rsi, .LC0[rip]
	call	ESP_LOGE@PLT
	mov	r8d, DWORD PTR ESP_ERR_NO_MEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	ble_gatt_add_primary_svcs, .-ble_gatt_add_primary_svcs
	.comm	num_chr_dsc,4,4
	.comm	TAG,4,4
	.comm	ESP_ERR_NO_MEM,4,4
	.comm	BLE_GATT_SVC_TYPE_PRIMARY,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_protocomm_nimble.c_ble_gatt_add_primary_svcs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Memory allocation for GATT characteristics failed\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ble_gatt_add_primary_svcs, %function
ble_gatt_add_primary_svcs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	push	{r4, lr}
	mov	r4, r0
	ldr	r1, .L7
	ldr	r2, .L7+4
	ldr	r1, [r1]
	add	r0, r3, #1
	str	r1, [r4, #4]
	mov	r1, #4
	str	r3, [r2]
	bl	calloc
	cmp	r0, #0
	str	r0, [r4]
	beq	.L6
	mov	r0, #0
	pop	{r4, pc}
.L6:
	ldr	r3, .L7+8
	ldr	r1, .L7+12
	ldr	r0, [r3]
	bl	ESP_LOGE
	ldr	r3, .L7+16
	ldr	r0, [r3]
	pop	{r4, pc}
.L8:
	.align	2
.L7:
	.word	BLE_GATT_SVC_TYPE_PRIMARY
	.word	num_chr_dsc
	.word	TAG
	.word	.LC0
	.word	ESP_ERR_NO_MEM
	.size	ble_gatt_add_primary_svcs, .-ble_gatt_add_primary_svcs
	.comm	num_chr_dsc,4,4
	.comm	TAG,4,4
	.comm	ESP_ERR_NO_MEM,4,4
	.comm	BLE_GATT_SVC_TYPE_PRIMARY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
