	.file	"extr_mgmt.c_append_eir_data_to_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	append_eir_data_to_buf, @function
append_eir_data_to_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	mov	esi, DWORD PTR HCI_BREDR_ENABLED[rip]
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L12
.L2:
	mov	esi, DWORD PTR HCI_LE_ENABLED[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L13
.L3:
	mov	edi, DWORD PTR 4[rbx]
	call	strlen@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	esi, r12d
	mov	rdi, rbp
	mov	edx, DWORD PTR EIR_NAME_COMPLETE[rip]
	mov	r8, rax
	call	eir_append_data@PLT
	mov	edi, DWORD PTR [rbx]
	mov	r12d, eax
	call	strlen@PLT
	mov	ecx, DWORD PTR [rbx]
	mov	edx, DWORD PTR EIR_NAME_SHORT[rip]
	mov	esi, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	mov	r8, rax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	eir_append_data@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	ecx, DWORD PTR 12[rbx]
	mov	edx, DWORD PTR EIR_CLASS_OF_DEV[rip]
	xor	esi, esi
	mov	rdi, rbp
	mov	r8d, 3
	call	eir_append_data@PLT
	mov	r12d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L13:
	mov	ecx, DWORD PTR 8[rbx]
	mov	edx, DWORD PTR EIR_APPEARANCE[rip]
	mov	esi, r12d
	mov	rdi, rbp
	call	eir_append_le16@PLT
	mov	r12d, eax
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	append_eir_data_to_buf, .-append_eir_data_to_buf
	.comm	HCI_LE_ENABLED,4,4
	.comm	HCI_BREDR_ENABLED,4,4
	.comm	EIR_NAME_SHORT,4,4
	.comm	EIR_NAME_COMPLETE,4,4
	.comm	EIR_CLASS_OF_DEV,4,4
	.comm	EIR_APPEARANCE,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_mgmt.c_append_eir_data_to_buf.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	append_eir_data_to_buf, %function
append_eir_data_to_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L14
	mov	r6, r1
	sub	sp, sp, #8
	ldr	r1, [r3]
	mov	r4, r0
	bl	hci_dev_test_flag
	subs	r5, r0, #0
	bne	.L12
.L2:
	ldr	r3, .L14+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	bne	.L13
.L3:
	ldr	r0, [r4, #4]
	bl	strlen
	ldr	r3, .L14+8
	str	r0, [sp]
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r6
	ldr	r3, [r4, #4]
	bl	eir_append_data
	mov	r5, r0
	ldr	r0, [r4]
	bl	strlen
	ldr	r2, .L14+12
	str	r0, [sp]
	mov	r1, r5
	mov	r0, r6
	ldr	r3, [r4]
	ldr	r2, [r2]
	bl	eir_append_data
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L12:
	mov	r2, #3
	ldr	r3, .L14+16
	str	r2, [sp]
	ldr	r2, [r3]
	mov	r1, #0
	mov	r0, r6
	ldr	r3, [r4, #12]
	bl	eir_append_data
	mov	r5, r0
	b	.L2
.L13:
	ldr	r3, .L14+20
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r6
	ldr	r3, [r4, #8]
	bl	eir_append_le16
	mov	r5, r0
	b	.L3
.L15:
	.align	2
.L14:
	.word	HCI_BREDR_ENABLED
	.word	HCI_LE_ENABLED
	.word	EIR_NAME_COMPLETE
	.word	EIR_NAME_SHORT
	.word	EIR_CLASS_OF_DEV
	.word	EIR_APPEARANCE
	.size	append_eir_data_to_buf, .-append_eir_data_to_buf
	.comm	HCI_LE_ENABLED,4,4
	.comm	HCI_BREDR_ENABLED,4,4
	.comm	EIR_NAME_SHORT,4,4
	.comm	EIR_NAME_COMPLETE,4,4
	.comm	EIR_CLASS_OF_DEV,4,4
	.comm	EIR_APPEARANCE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
