	.file	"extr_bta_dm_pm.c_bta_dm_pm_set_sniff_policy.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bta_dm_pm_set_sniff_policy, @function
bta_dm_pm_set_sniff_policy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L1
	mov	rbx, rdi
	mov	edx, DWORD PTR bta_dm_cb[rip]
	mov	edi, DWORD PTR 4[rdi]
	test	rsi, rsi
	jne	.L9
	mov	DWORD PTR 4[rsp], edx
.L5:
	mov	DWORD PTR [rbx], edx
	lea	rsi, 4[rsp]
	call	BTM_SetLinkPolicy@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR HCI_ENABLE_MASTER_SLAVE_SWITCH[rip]
	or	eax, DWORD PTR HCI_ENABLE_HOLD_MODE[rip]
	or	eax, DWORD PTR HCI_ENABLE_PARK_MODE[rip]
	and	eax, edx
	mov	DWORD PTR 4[rsp], eax
	call	bta_dm_pm_active@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	edi, DWORD PTR 4[rbx]
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	bta_dm_pm_set_sniff_policy, .-bta_dm_pm_set_sniff_policy
	.comm	bta_dm_cb,4,4
	.comm	HCI_ENABLE_PARK_MODE,4,4
	.comm	HCI_ENABLE_MASTER_SLAVE_SWITCH,4,4
	.comm	HCI_ENABLE_HOLD_MODE,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_bta_dm_pm.c_bta_dm_pm_set_sniff_policy.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bta_dm_pm_set_sniff_policy, %function
bta_dm_pm_set_sniff_policy:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L1
	ldr	r3, .L11+4
	cmp	r1, #0
	ldr	r2, [r3]
	ldr	r0, [r4, #4]
	streq	r2, [sp]
	bne	.L9
.L5:
	mov	r1, sp
	str	r2, [r4]
	bl	BTM_SetLinkPolicy
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L9:
	ldr	r3, .L11+8
	ldr	ip, .L11+12
	ldr	r1, .L11+16
	ldr	r3, [r3]
	ldr	ip, [ip]
	ldr	r1, [r1]
	orr	r3, r3, ip
	orr	r3, r3, r1
	and	r3, r3, r2
	str	r3, [sp]
	bl	bta_dm_pm_active
	ldr	r2, [sp]
	ldr	r0, [r4, #4]
	b	.L5
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	bta_dm_cb
	.word	HCI_ENABLE_MASTER_SLAVE_SWITCH
	.word	HCI_ENABLE_HOLD_MODE
	.word	HCI_ENABLE_PARK_MODE
	.size	bta_dm_pm_set_sniff_policy, .-bta_dm_pm_set_sniff_policy
	.comm	bta_dm_cb,4,4
	.comm	HCI_ENABLE_PARK_MODE,4,4
	.comm	HCI_ENABLE_MASTER_SLAVE_SWITCH,4,4
	.comm	HCI_ENABLE_HOLD_MODE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
