	.file	"extr_hci_request.c___hci_req_update_eir.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	__hci_req_update_eir
	.type	__hci_req_update_eir, @function
__hci_req_update_eir:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rbx, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdi, rbx
	call	hdev_is_powered@PLT
	test	eax, eax
	jne	.L19
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	rdi, rbx
	call	lmp_ext_inq_capable@PLT
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR HCI_SSP_ENABLED[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR HCI_SERVICE_CACHE[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	rax, rax
	jne	.L1
	lea	r12, 4[rsp]
	mov	edx, 4
	xor	esi, esi
	mov	rdi, r12
	call	memset@PLT
	mov	esi, DWORD PTR 4[rsp]
	mov	rdi, rbx
	call	create_eir@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR 4[rsp]
	mov	edx, 4
	call	memcmp@PLT
	test	rax, rax
	je	.L1
	mov	esi, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR [rbx]
	mov	edx, 4
	call	memcpy@PLT
	mov	rcx, r12
	mov	edx, 4
	mov	rdi, rbp
	mov	esi, DWORD PTR HCI_OP_WRITE_EIR[rip]
	call	hci_req_add@PLT
	jmp	.L1
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	__hci_req_update_eir, .-__hci_req_update_eir
	.comm	HCI_SSP_ENABLED,4,4
	.comm	HCI_SERVICE_CACHE,4,4
	.comm	HCI_OP_WRITE_EIR,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_hci_request.c___hci_req_update_eir.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	__hci_req_update_eir
	.syntax unified
	.arm
	.fpu softvfp
	.type	__hci_req_update_eir, %function
__hci_req_update_eir:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r5, [r0]
	ldr	r3, .L21
	sub	sp, sp, #12
	mov	r4, r0
	mov	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	hdev_is_powered
	cmp	r0, #0
	bne	.L19
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L19:
	mov	r0, r5
	bl	lmp_ext_inq_capable
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L21+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	beq	.L1
	ldr	r3, .L21+8
	mov	r0, r5
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	subs	r1, r0, #0
	bne	.L1
	mov	r0, r5
	str	r1, [sp]
	bl	create_eir
	mov	r2, #4
	ldr	r1, [r5]
	ldr	r0, [sp]
	bl	memcmp
	cmp	r0, #0
	beq	.L1
	ldr	r1, [sp]
	mov	r2, #4
	ldr	r0, [r5]
	bl	memcpy
	ldr	r2, .L21+12
	mov	r3, sp
	ldr	r1, [r2]
	mov	r0, r4
	mov	r2, #4
	bl	hci_req_add
	b	.L1
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	HCI_SSP_ENABLED
	.word	HCI_SERVICE_CACHE
	.word	HCI_OP_WRITE_EIR
	.size	__hci_req_update_eir, .-__hci_req_update_eir
	.comm	HCI_SSP_ENABLED,4,4
	.comm	HCI_SERVICE_CACHE,4,4
	.comm	HCI_OP_WRITE_EIR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
