	.file	"extr_le.c_le_set_scan_param.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"active"
.LC1:
	.string	"passive"
.LC3:
	.string	"public"
.LC4:
	.string	"random"
.LC5:
	.string	"all"
.LC6:
	.string	"whitelist"
	.text
	.p2align 4
	.type	le_set_scan_param, @function
le_set_scan_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	esi, 5
	je	.L2
.L20:
	mov	eax, DWORD PTR USAGE[rip]
.L1:
	mov	rcx, QWORD PTR 40[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 56
	.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
.L2:
	.cfi_restore_state
	mov	ebp, edi
	mov	rdi, QWORD PTR [rdx]
	lea	rsi, .LC0[rip]
	mov	rbx, rdx
	call	strcmp@PLT
	test	rax, rax
	je	.L9
	mov	rdi, QWORD PTR [rbx]
	lea	rsi, .LC1[rip]
	xor	r13d, r13d
	call	strcmp@PLT
	test	rax, rax
	jne	.L20
.L4:
	mov	rdi, QWORD PTR 8[rbx]
	mov	r14d, 4
	call	atof@PLT
	divsd	xmm0, QWORD PTR .LC2[rip]
	cvttsd2si	eax, xmm0
	mov	rdi, QWORD PTR 16[rbx]
	cmp	eax, 4
	cmovl	eax, r14d
	mov	r12d, eax
	call	atof@PLT
	mov	rdi, QWORD PTR 24[rbx]
	divsd	xmm0, QWORD PTR .LC2[rip]
	cvttsd2si	eax, xmm0
	lea	rsi, .LC3[rip]
	cmp	eax, 3
	cmovg	r14d, r12d
	call	strcmp@PLT
	test	rax, rax
	je	.L12
	mov	rdi, QWORD PTR 24[rbx]
	lea	rsi, .LC4[rip]
	mov	r15d, 1
	call	strcmp@PLT
	test	rax, rax
	jne	.L20
.L6:
	mov	rdi, QWORD PTR 32[rbx]
	lea	rsi, .LC5[rip]
	call	strcmp@PLT
	test	rax, rax
	je	.L14
	mov	rdi, QWORD PTR 32[rbx]
	lea	rsi, .LC6[rip]
	call	strcmp@PLT
	mov	r8, rax
	mov	eax, 1
	test	r8, r8
	jne	.L20
.L7:
	mov	esi, DWORD PTR NG_HCI_OCF_LE_SET_SCAN_PARAMETERS[rip]
	mov	edi, DWORD PTR NG_HCI_OGF_LE[rip]
	mov	DWORD PTR 16[rsp], r13d
	mov	DWORD PTR 20[rsp], r12d
	mov	DWORD PTR 24[rsp], r15d
	mov	DWORD PTR 28[rsp], r14d
	mov	DWORD PTR 32[rsp], eax
	mov	DWORD PTR 8[rsp], 4
	call	NG_HCI_OPCODE@PLT
	lea	rdx, 16[rsp]
	lea	r9, 8[rsp]
	mov	edi, ebp
	mov	esi, eax
	lea	r8, 12[rsp]
	mov	ecx, 20
	call	hci_request@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r13d, 1
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L12:
	xor	r15d, r15d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L14:
	xor	eax, eax
	jmp	.L7
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	le_set_scan_param, .-le_set_scan_param
	.comm	USAGE,4,4
	.comm	NG_HCI_OGF_LE,4,4
	.comm	NG_HCI_OCF_LE_SET_SCAN_PARAMETERS,4,4
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC2:
	.long	0
	.long	1071906816
	.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_le.c_le_set_scan_param.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"active\000"
	.align	2
.LC1:
	.ascii	"passive\000"
	.global	__aeabi_ddiv
	.global	__aeabi_d2iz
	.align	2
.LC2:
	.ascii	"public\000"
	.align	2
.LC3:
	.ascii	"random\000"
	.align	2
.LC4:
	.ascii	"all\000"
	.align	2
.LC5:
	.ascii	"whitelist\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	le_set_scan_param, %function
le_set_scan_param:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L24
	sub	sp, sp, #40
	cmp	r1, #5
	ldr	r3, [r3]
	str	r3, [sp, #36]
	mov	r3,#0
	bne	.L9
	ldr	r5, [r2]
	mov	r6, r0
	ldr	r1, .L24+4
	mov	r0, r5
	mov	r4, r2
	bl	strcmp
	cmp	r0, #0
	beq	.L11
	mov	r0, r5
	ldr	r1, .L24+8
	bl	strcmp
	subs	r7, r0, #0
	bne	.L9
.L4:
	ldr	r0, [r4, #4]
	bl	atof
	mov	r2, #0
	ldr	r3, .L24+12
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	mov	r5, r0
	ldr	r0, [r4, #8]
	cmp	r5, #4
	movlt	r5, #4
	bl	atof
	mov	r2, #0
	ldr	r3, .L24+12
	bl	__aeabi_ddiv
	bl	__aeabi_d2iz
	ldr	r10, [r4, #12]
	cmp	r0, #3
	ldr	r1, .L24+16
	mov	r0, r10
	movgt	r8, r5
	movle	r8, #4
	bl	strcmp
	subs	r9, r0, #0
	bne	.L22
.L7:
	ldr	r4, [r4, #16]
	ldr	r1, .L24+20
	mov	r0, r4
	bl	strcmp
	subs	r3, r0, #0
	beq	.L8
	mov	r0, r4
	ldr	r1, .L24+24
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	mov	r3, #1
.L8:
	mov	r2, #4
	ldr	r1, .L24+28
	ldr	r0, .L24+32
	ldr	r1, [r1]
	ldr	r0, [r0]
	str	r3, [sp, #32]
	str	r2, [sp, #8]
	str	r7, [sp, #16]
	str	r5, [sp, #20]
	str	r9, [sp, #24]
	str	r8, [sp, #28]
	bl	NG_HCI_OPCODE
	add	r2, sp, #8
	add	r3, sp, #12
	mov	r1, r0
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r0, r6
	mov	r3, #20
	add	r2, sp, #16
	bl	hci_request
	mov	r0, #0
	b	.L1
.L22:
	mov	r0, r10
	ldr	r1, .L24+36
	bl	strcmp
	cmp	r0, #0
	moveq	r9, #1
	beq	.L7
.L9:
	ldr	r3, .L24+40
	ldr	r0, [r3]
.L1:
	ldr	r3, .L24
	ldr	r2, [r3]
	ldr	r3, [sp, #36]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L23
	add	sp, sp, #40
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	mov	r7, #1
	b	.L4
.L23:
	bl	__stack_chk_fail
.L25:
	.align	2
.L24:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	1071906816
	.word	.LC2
	.word	.LC4
	.word	.LC5
	.word	NG_HCI_OCF_LE_SET_SCAN_PARAMETERS
	.word	NG_HCI_OGF_LE
	.word	.LC3
	.word	USAGE
	.size	le_set_scan_param, .-le_set_scan_param
	.comm	USAGE,4,4
	.comm	NG_HCI_OGF_LE,4,4
	.comm	NG_HCI_OCF_LE_SET_SCAN_PARAMETERS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
