	.file	"extr_btm_ble_batchscan.c_btm_ble_set_batchscan_param.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"btm_ble_set_batchscan_param %d"
	.text
	.p2align 4
	.globl	btm_ble_set_batchscan_param
	.type	btm_ble_set_batchscan_param, @function
btm_ble_set_batchscan_param:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15d, edi
	push	r14
	.cfi_offset 14, -32
	mov	r14d, edx
	push	r13
	.cfi_offset 13, -40
	mov	r13d, esi
	push	r12
	.cfi_offset 12, -48
	mov	r12d, r8d
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN[rip]
	mov	rcx, rsp
	mov	r8, rax
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L12:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L12
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L13
.L4:
	mov	rbx, rsp
	mov	edx, r8d
	xor	esi, esi
	mov	rdi, rbx
	call	memset@PLT
	mov	r8d, DWORD PTR btm_cb[rip]
	mov	esi, DWORD PTR BTM_BLE_BATCH_SCAN_SET_PARAMS[rip]
	mov	rdi, rbx
	mov	DWORD PTR -68[rbp], r8d
	call	UINT8_TO_STREAM@PLT
	mov	esi, r15d
	mov	rdi, rbx
	call	UINT8_TO_STREAM@PLT
	mov	esi, r14d
	mov	rdi, rbx
	call	UINT32_TO_STREAM@PLT
	mov	esi, r13d
	mov	rdi, rbx
	call	UINT32_TO_STREAM@PLT
	mov	r8d, DWORD PTR -68[rbp]
	mov	rdi, rbx
	mov	esi, r8d
	call	UINT8_TO_STREAM@PLT
	mov	esi, r12d
	mov	rdi, rbx
	call	UINT8_TO_STREAM@PLT
	mov	ecx, DWORD PTR btm_ble_batchscan_vsc_cmpl_cback[rip]
	mov	esi, DWORD PTR BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN[rip]
	mov	rdx, rbx
	mov	edi, DWORD PTR HCI_BLE_BATCH_SCAN_OCF[rip]
	call	BTM_VendorSpecificCommand@PLT
	cmp	DWORD PTR BTM_CMD_STARTED[rip], eax
	je	.L1
	mov	esi, eax
	lea	rdi, .LC0[rip]
	call	BTM_TRACE_ERROR@PLT
	mov	eax, DWORD PTR BTM_ILLEGAL_VALUE[rip]
.L1:
	mov	rbx, QWORD PTR -56[rbp]
	xor	rbx, QWORD PTR fs:40
	jne	.L14
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L14:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	btm_ble_set_batchscan_param, .-btm_ble_set_batchscan_param
	.comm	btm_cb,4,4
	.comm	btm_ble_batchscan_vsc_cmpl_cback,4,4
	.comm	HCI_BLE_BATCH_SCAN_OCF,4,4
	.comm	BTM_NO_RESOURCES,4,4
	.comm	BTM_ILLEGAL_VALUE,4,4
	.comm	BTM_CMD_STARTED,4,4
	.comm	BTM_BLE_BATCH_SCAN_SET_PARAMS,4,4
	.comm	BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN,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_btm_ble_batchscan.c_btm_ble_set_batchscan_param.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"btm_ble_set_batchscan_param %d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	btm_ble_set_batchscan_param
	.syntax unified
	.arm
	.fpu softvfp
	.type	btm_ble_set_batchscan_param, %function
btm_ble_set_batchscan_param:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	ldr	r7, .L8
	mov	r8, r0
	ldr	ip, [r7]
	mov	r6, r2
	lsl	r3, ip, #2
	add	r3, r3, #7
	bic	r3, r3, #7
	sub	sp, sp, r3
	mov	r4, sp
	mov	r5, r1
	ldr	r3, .L8+4
	mov	r2, ip
	mov	r1, #0
	mov	r0, r4
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	bl	memset
	ldr	r2, .L8+8
	ldr	r3, .L8+12
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r9, [r3]
	bl	UINT8_TO_STREAM
	mov	r1, r8
	mov	r0, r4
	bl	UINT8_TO_STREAM
	mov	r1, r6
	mov	r0, r4
	bl	UINT32_TO_STREAM
	mov	r1, r5
	mov	r0, r4
	bl	UINT32_TO_STREAM
	mov	r1, r9
	mov	r0, r4
	bl	UINT8_TO_STREAM
	ldr	r1, [fp, #4]
	mov	r0, r4
	bl	UINT8_TO_STREAM
	ldr	r3, .L8+16
	ldr	r0, .L8+20
	ldr	r3, [r3]
	mov	r2, r4
	ldr	r1, [r7]
	ldr	r0, [r0]
	bl	BTM_VendorSpecificCommand
	ldr	r3, .L8+24
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L6
.L1:
	ldr	r3, .L8+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L6:
	mov	r1, r0
	ldr	r0, .L8+28
	bl	BTM_TRACE_ERROR
	ldr	r3, .L8+32
	ldr	r0, [r3]
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN
	.word	.LC1
	.word	BTM_BLE_BATCH_SCAN_SET_PARAMS
	.word	btm_cb
	.word	btm_ble_batchscan_vsc_cmpl_cback
	.word	HCI_BLE_BATCH_SCAN_OCF
	.word	BTM_CMD_STARTED
	.word	.LC0
	.word	BTM_ILLEGAL_VALUE
	.size	btm_ble_set_batchscan_param, .-btm_ble_set_batchscan_param
	.comm	btm_cb,4,4
	.comm	btm_ble_batchscan_vsc_cmpl_cback,4,4
	.comm	HCI_BLE_BATCH_SCAN_OCF,4,4
	.comm	BTM_NO_RESOURCES,4,4
	.comm	BTM_ILLEGAL_VALUE,4,4
	.comm	BTM_CMD_STARTED,4,4
	.comm	BTM_BLE_BATCH_SCAN_SET_PARAMS,4,4
	.comm	BTM_BLE_BATCH_SCAN_PARAM_CONFIG_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
