	.file	"extr_smp.c_smp_register.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
.LC1:
	.string	"le_min_key_size"
.LC2:
	.string	"le_max_key_size"
.LC3:
	.string	"force_bredr_smp"
	.text
	.p2align 4
	.globl	smp_register
	.type	smp_register, @function
smp_register:
.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
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 20[rdi]
	mov	rbx, rdi
	lea	rdi, .LC0[rip]
	call	BT_DBG@PLT
	mov	rdi, rbx
	call	lmp_le_capable@PLT
	test	eax, eax
	jne	.L2
.L19:
	xor	r12d, r12d
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.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
.L2:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L21
.L4:
	mov	esi, DWORD PTR L2CAP_CID_SMP[rip]
	mov	rdi, rbx
	call	smp_add_cid@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L22
	mov	QWORD PTR 8[rbx], rbp
	mov	edx, DWORD PTR 16[rbx]
	mov	rcx, rbx
	mov	esi, 420
	lea	r8, le_min_key_size_fops[rip]
	lea	rdi, .LC1[rip]
	call	debugfs_create_file@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	rcx, rbx
	mov	esi, 420
	lea	rdi, .LC2[rip]
	lea	r8, le_max_key_size_fops[rip]
	call	debugfs_create_file@PLT
	mov	rdi, rbx
	call	lmp_sc_capable@PLT
	test	eax, eax
	jne	.L10
	mov	edx, DWORD PTR 16[rbx]
	mov	esi, 420
	mov	rcx, rbx
	lea	rdi, .LC3[rip]
	lea	r8, force_bredr_smp_fops[rip]
	call	debugfs_create_file@PLT
	mov	esi, DWORD PTR HCI_FORCE_BREDR_SMP[rip]
	mov	rdi, rbx
	call	hci_dev_test_flag@PLT
	test	eax, eax
	je	.L19
.L10:
	mov	rdi, QWORD PTR [rbx]
	call	WARN_ON@PLT
	test	rax, rax
	jne	.L23
.L8:
	mov	esi, DWORD PTR L2CAP_CID_SMP_BREDR[rip]
	mov	rdi, rbx
	call	smp_add_cid@PLT
	mov	rdi, rax
	mov	rbp, rax
	call	IS_ERR@PLT
	test	rax, rax
	jne	.L24
	mov	QWORD PTR [rbx], rbp
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rdi, QWORD PTR [rbx]
	mov	QWORD PTR [rbx], 0
	call	smp_del_chan@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	PTR_ERR@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbx], 0
	call	smp_del_chan@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	call	PTR_ERR@PLT
	mov	rdi, QWORD PTR 8[rbx]
	mov	QWORD PTR 8[rbx], 0
	mov	r12d, eax
	call	smp_del_chan@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	smp_register, .-smp_register
	.comm	le_min_key_size_fops,4,4
	.comm	le_max_key_size_fops,4,4
	.comm	force_bredr_smp_fops,4,4
	.comm	L2CAP_CID_SMP_BREDR,4,4
	.comm	L2CAP_CID_SMP,4,4
	.comm	HCI_FORCE_BREDR_SMP,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_smp.c_smp_register.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.align	2
.LC1:
	.ascii	"le_min_key_size\000"
	.align	2
.LC2:
	.ascii	"le_max_key_size\000"
	.align	2
.LC3:
	.ascii	"force_bredr_smp\000"
	.text
	.align	2
	.global	smp_register
	.syntax unified
	.arm
	.fpu softvfp
	.type	smp_register, %function
smp_register:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	sub	sp, sp, #8
	ldr	r1, [r4, #12]
	ldr	r0, .L23
	bl	BT_DBG
	mov	r0, r4
	bl	lmp_le_capable
	cmp	r0, #0
	bne	.L2
.L9:
	mov	r5, #0
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r4, #4]
	bl	WARN_ON
	cmp	r0, #0
	bne	.L20
.L4:
	ldr	r3, .L23+4
	mov	r0, r4
	ldr	r1, [r3]
	bl	smp_add_cid
	mov	r5, r0
	bl	IS_ERR
	cmp	r0, #0
	bne	.L21
	ldr	r3, .L23+8
	str	r5, [r4, #4]
	str	r3, [sp]
	mov	r1, #420
	mov	r3, r4
	ldr	r2, [r4, #8]
	ldr	r0, .L23+12
	bl	debugfs_create_file
	ldr	r2, .L23+16
	mov	r3, r4
	str	r2, [sp]
	mov	r1, #420
	ldr	r2, [r4, #8]
	ldr	r0, .L23+20
	bl	debugfs_create_file
	mov	r0, r4
	bl	lmp_sc_capable
	cmp	r0, #0
	bne	.L10
	ldr	r2, .L23+24
	mov	r3, r4
	str	r2, [sp]
	mov	r1, #420
	ldr	r2, [r4, #8]
	ldr	r0, .L23+28
	bl	debugfs_create_file
	ldr	r3, .L23+32
	mov	r0, r4
	ldr	r1, [r3]
	bl	hci_dev_test_flag
	cmp	r0, #0
	beq	.L9
.L10:
	ldr	r0, [r4]
	bl	WARN_ON
	cmp	r0, #0
	bne	.L22
.L8:
	ldr	r3, .L23+36
	mov	r0, r4
	ldr	r1, [r3]
	bl	smp_add_cid
	mov	r6, r0
	bl	IS_ERR
	subs	r5, r0, #0
	streq	r6, [r4]
	beq	.L1
	mov	r0, r6
	bl	PTR_ERR
	mov	r3, #0
	mov	r5, r0
	ldr	r0, [r4, #4]
	str	r3, [r4, #4]
	bl	smp_del_chan
	b	.L1
.L22:
	mov	r3, #0
	ldr	r0, [r4]
	str	r3, [r4]
	bl	smp_del_chan
	b	.L8
.L21:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	PTR_ERR
.L20:
	mov	r3, #0
	ldr	r0, [r4, #4]
	str	r3, [r4, #4]
	bl	smp_del_chan
	b	.L4
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	L2CAP_CID_SMP
	.word	le_min_key_size_fops
	.word	.LC1
	.word	le_max_key_size_fops
	.word	.LC2
	.word	force_bredr_smp_fops
	.word	.LC3
	.word	HCI_FORCE_BREDR_SMP
	.word	L2CAP_CID_SMP_BREDR
	.size	smp_register, .-smp_register
	.comm	le_min_key_size_fops,4,4
	.comm	le_max_key_size_fops,4,4
	.comm	force_bredr_smp_fops,4,4
	.comm	L2CAP_CID_SMP_BREDR,4,4
	.comm	L2CAP_CID_SMP,4,4
	.comm	HCI_FORCE_BREDR_SMP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
