	.file	"extr_cfg_srv.c_heartbeat_sub_set.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"src 0x%04x"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"sub_src 0x%04x sub_dst 0x%04x period 0x%02x"
	.section	.rodata.str1.1
.LC2:
	.string	"Prohibited source address"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"Prohibited destination address"
	.align 8
.LC4:
	.string	"Prohibited subscription period 0x%02x"
	.section	.rodata.str1.1
.LC5:
	.string	"period_ms %u"
	.text
	.p2align 4
	.type	heartbeat_sub_set, @function
heartbeat_sub_set:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	eax, eax
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR [rsi]
	mov	r15, QWORD PTR [rdi]
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	rdi, rbp
	call	net_buf_simple_pull_le16@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	net_buf_simple_pull_le16@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	net_buf_simple_pull_u8@PLT
	mov	rdx, rbx
	mov	esi, r12d
	lea	rdi, .LC1[rip]
	mov	ecx, eax
	mov	ebp, eax
	xor	eax, eax
	call	BT_DBG@PLT
	cmp	QWORD PTR BLE_MESH_ADDR_UNASSIGNED[rip], r12
	je	.L2
	mov	rdi, r12
	call	BLE_MESH_ADDR_IS_UNICAST@PLT
	lea	rdi, .LC2[rip]
	test	rax, rax
	je	.L20
.L2:
	mov	rdi, rbx
	call	BLE_MESH_ADDR_IS_VIRTUAL@PLT
	test	rax, rax
	jne	.L4
	mov	rdi, rbx
	call	BLE_MESH_ADDR_IS_RFU@PLT
	test	rax, rax
	je	.L22
.L4:
	lea	rdi, .LC3[rip]
	xor	eax, eax
.L20:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	BT_WARN@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rdi, rbx
	call	BLE_MESH_ADDR_IS_UNICAST@PLT
	test	rax, rax
	jne	.L23
.L5:
	cmp	ebp, 17
	jg	.L24
	mov	rdi, QWORD PTR BLE_MESH_ADDR_UNASSIGNED[rip]
	cmp	rdi, r12
	je	.L7
	test	ebp, ebp
	je	.L11
	cmp	rdi, rbx
	jne	.L25
.L7:
	mov	rax, QWORD PTR BLE_MESH_TTL_MAX[rip]
	mov	QWORD PTR 32[r15], rdi
	mov	QWORD PTR 24[r15], rdi
	mov	DWORD PTR [r15], eax
	mov	QWORD PTR 4[r15], 0
.L19:
	call	bt_mesh_set_hb_sub_dst@PLT
	xor	esi, esi
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	BT_DBG@PLT
.L10:
	mov	QWORD PTR 16[r15], 0
	mov	edx, DWORD PTR STATUS_SUCCESS[rip]
	mov	rsi, r14
	mov	rdi, r13
	call	hb_sub_send_status@PLT
	mov	DWORD PTR [r15], 0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	xor	eax, eax
	call	bt_mesh_primary_addr@PLT
	cmp	rax, rbx
	jne	.L4
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	cmp	rdi, rbx
	je	.L7
	mov	rdi, QWORD PTR 24[r15]
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L24:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, ebp
	lea	rdi, .LC4[rip]
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	BT_WARN@PLT
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	rax, QWORD PTR BLE_MESH_TTL_MAX[rip]
	mov	QWORD PTR 24[r15], rbx
	mov	esi, 1
	mov	edi, ebp
	mov	QWORD PTR 32[r15], r12
	mov	DWORD PTR [r15], eax
	mov	QWORD PTR 4[r15], 0
	call	hb_pwr2@PLT
	mov	rdi, QWORD PTR 24[r15]
	imul	ebx, eax, 1000
	call	bt_mesh_set_hb_sub_dst@PLT
	xor	eax, eax
	lea	rdi, .LC5[rip]
	mov	esi, ebx
	call	BT_DBG@PLT
	test	ebx, ebx
	je	.L10
	xor	eax, eax
	movsx	rbx, ebx
	call	k_uptime_get@PLT
	mov	edx, DWORD PTR STATUS_SUCCESS[rip]
	mov	rsi, r14
	mov	rdi, r13
	add	rbx, rax
	mov	QWORD PTR 16[r15], rbx
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	hb_sub_send_status@PLT
	.cfi_endproc
.LFE0:
	.size	heartbeat_sub_set, .-heartbeat_sub_set
	.comm	STATUS_SUCCESS,4,4
	.comm	BLE_MESH_TTL_MAX,8,8
	.comm	BLE_MESH_ADDR_UNASSIGNED,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_cfg_srv.c_heartbeat_sub_set.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"src 0x%04x\000"
	.align	2
.LC1:
	.ascii	"sub_src 0x%04x sub_dst 0x%04x period 0x%02x\000"
	.align	2
.LC2:
	.ascii	"Prohibited source address\000"
	.align	2
.LC3:
	.ascii	"Prohibited destination address\000"
	.align	2
.LC4:
	.ascii	"Prohibited subscription period 0x%02x\000"
	.align	2
.LC5:
	.ascii	"period_ms %u\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	heartbeat_sub_set, %function
heartbeat_sub_set:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r5, r2
	mov	r7, r0
	mov	r8, r1
	ldr	r0, .L22
	ldr	r1, [r1]
	ldr	r9, [r7]
	bl	BT_DBG
	mov	r0, r5
	bl	net_buf_simple_pull_le16
	mov	r6, r0
	mov	r0, r5
	bl	net_buf_simple_pull_le16
	mov	r4, r0
	mov	r0, r5
	bl	net_buf_simple_pull_u8
	ldr	r10, .L22+4
	mov	r3, r0
	mov	r5, r0
	mov	r2, r4
	mov	r1, r6
	ldr	r0, .L22+8
	bl	BT_DBG
	ldr	r3, [r10]
	cmp	r3, r6
	beq	.L2
	mov	r0, r6
	bl	BLE_MESH_ADDR_IS_UNICAST
	cmp	r0, #0
	beq	.L18
.L2:
	mov	r0, r4
	bl	BLE_MESH_ADDR_IS_VIRTUAL
	cmp	r0, #0
	bne	.L4
	mov	r0, r4
	bl	BLE_MESH_ADDR_IS_RFU
	cmp	r0, #0
	beq	.L19
.L4:
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L22+12
	b	BT_WARN
.L19:
	mov	r0, r4
	bl	BLE_MESH_ADDR_IS_UNICAST
	cmp	r0, #0
	bne	.L20
.L5:
	cmp	r5, #17
	bgt	.L21
	ldr	r0, [r10]
	cmp	r0, r6
	beq	.L7
	sub	r3, r0, r4
	clz	r3, r3
	cmp	r5, #0
	lsr	r3, r3, #5
	moveq	r3, #1
	cmp	r3, #0
	beq	.L8
	cmp	r0, r4
	beq	.L7
	ldr	r0, [r9, #16]
	bl	bt_mesh_set_hb_sub_dst
	mov	r1, #0
	ldr	r0, .L22+16
	bl	BT_DBG
.L9:
	mov	r4, #0
	ldr	r3, .L22+20
	mov	r1, r8
	mov	r0, r7
	ldr	r2, [r3]
	str	r4, [r9, #12]
	bl	hb_sub_send_status
	str	r4, [r9]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L20:
	bl	bt_mesh_primary_addr
	cmp	r0, r4
	bne	.L4
	b	.L5
.L18:
	ldr	r0, .L22+24
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	BT_WARN
.L7:
	mov	r4, #0
	ldr	r3, .L22+28
	str	r0, [r9, #20]
	ldr	r3, [r3]
	str	r0, [r9, #16]
	stm	r9, {r3, r4}
	str	r4, [r9, #8]
	bl	bt_mesh_set_hb_sub_dst
	mov	r1, r4
	ldr	r0, .L22+16
	bl	BT_DBG
	b	.L9
.L21:
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, .L22+32
	b	BT_WARN
.L8:
	ldr	r2, .L22+28
	mov	r1, #1
	ldr	r2, [r2]
	str	r3, [r9, #4]
	str	r3, [r9, #8]
	str	r2, [r9]
	str	r4, [r9, #16]
	mov	r0, r5
	str	r6, [r9, #20]
	bl	hb_pwr2
	rsb	r4, r0, r0, lsl #5
	add	r0, r0, r4, lsl #2
	lsl	r4, r0, #3
	ldr	r0, [r9, #16]
	bl	bt_mesh_set_hb_sub_dst
	mov	r1, r4
	ldr	r0, .L22+16
	bl	BT_DBG
	cmp	r4, #0
	beq	.L9
	bl	k_uptime_get
	ldr	r3, .L22+20
	add	r4, r0, r4
	mov	r1, r8
	mov	r0, r7
	str	r4, [r9, #12]
	ldr	r2, [r3]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	hb_sub_send_status
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	BLE_MESH_ADDR_UNASSIGNED
	.word	.LC1
	.word	.LC3
	.word	.LC5
	.word	STATUS_SUCCESS
	.word	.LC2
	.word	BLE_MESH_TTL_MAX
	.word	.LC4
	.size	heartbeat_sub_set, .-heartbeat_sub_set
	.comm	STATUS_SUCCESS,4,4
	.comm	BLE_MESH_TTL_MAX,4,4
	.comm	BLE_MESH_ADDR_UNASSIGNED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
