	.file	"extr_host_controller_baseband.c_hci_read_encryption_mode.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Status: %s [%#02x]\n"
.LC1:
	.string	"Encryption mode: %s [%#02x]\n"
	.text
	.p2align 4
	.type	hci_read_encryption_mode, @function
hci_read_encryption_mode:
.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	ebp, edi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	esi, DWORD PTR NG_HCI_OCF_READ_ENCRYPTION_MODE[rip]
	mov	edi, DWORD PTR NG_HCI_OGF_HC_BASEBAND[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 12[rsp], 8
	call	NG_HCI_OPCODE@PLT
	lea	rcx, 12[rsp]
	lea	rdx, 16[rsp]
	mov	edi, ebp
	mov	esi, eax
	call	hci_simple_request@PLT
	cmp	rax, QWORD PTR ERROR[rip]
	je	.L1
	mov	r12d, DWORD PTR 16[rsp]
	test	r12d, r12d
	jne	.L8
	mov	r12d, DWORD PTR 20[rsp]
	xor	esi, esi
	mov	edi, r12d
	call	hci_encrypt2str@PLT
	mov	edi, DWORD PTR stdout[rip]
	mov	ecx, r12d
	lea	rsi, .LC1[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	eax, DWORD PTR OK[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L9
	add	rsp, 40
	.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
.L8:
	.cfi_restore_state
	mov	edi, r12d
	call	hci_status2str@PLT
	mov	edi, DWORD PTR stdout[rip]
	mov	ecx, r12d
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	call	fprintf@PLT
	mov	eax, DWORD PTR FAILED[rip]
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hci_read_encryption_mode, .-hci_read_encryption_mode
	.comm	stdout,4,4
	.comm	OK,4,4
	.comm	NG_HCI_OGF_HC_BASEBAND,4,4
	.comm	NG_HCI_OCF_READ_ENCRYPTION_MODE,4,4
	.comm	FAILED,4,4
	.comm	ERROR,8,8
	.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_host_controller_baseband.c_hci_read_encryption_mode.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Status: %s [%#02x]\012\000"
	.align	2
.LC1:
	.ascii	"Encryption mode: %s [%#02x]\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hci_read_encryption_mode, %function
hci_read_encryption_mode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #8
	push	{r4, lr}
	ldr	r2, .L9
	ldr	r1, .L9+4
	mov	r4, r0
	ldr	r0, [r2]
	ldr	r2, .L9+8
	sub	sp, sp, #16
	ldr	r1, [r1]
	ldr	r2, [r2]
	str	r2, [sp, #12]
	mov	r2,#0
	str	r3, [sp]
	bl	NG_HCI_OPCODE
	mov	r3, sp
	mov	r1, r0
	add	r2, sp, #4
	mov	r0, r4
	bl	hci_simple_request
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L1
	ldr	r1, [sp, #4]
	ldr	r3, .L9+16
	cmp	r1, #0
	ldr	r4, [r3]
	bne	.L7
	ldr	r0, [sp, #8]
	bl	hci_encrypt2str
	ldr	r3, [sp, #8]
	mov	r2, r0
	ldr	r1, .L9+20
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L9+24
	ldr	r3, [r3]
.L1:
	ldr	r2, .L9+8
	ldr	r1, [r2]
	ldr	r2, [sp, #12]
	eors	r1, r2, r1
	mov	r2, #0
	bne	.L8
	mov	r0, r3
	add	sp, sp, #16
	@ sp needed
	pop	{r4, pc}
.L7:
	mov	r0, r1
	bl	hci_status2str
	ldr	r3, [sp, #4]
	mov	r2, r0
	ldr	r1, .L9+28
	mov	r0, r4
	bl	fprintf
	ldr	r3, .L9+32
	ldr	r3, [r3]
	b	.L1
.L8:
	bl	__stack_chk_fail
.L10:
	.align	2
.L9:
	.word	NG_HCI_OGF_HC_BASEBAND
	.word	NG_HCI_OCF_READ_ENCRYPTION_MODE
	.word	.LC2
	.word	ERROR
	.word	stdout
	.word	.LC1
	.word	OK
	.word	.LC0
	.word	FAILED
	.size	hci_read_encryption_mode, .-hci_read_encryption_mode
	.comm	stdout,4,4
	.comm	OK,4,4
	.comm	NG_HCI_OGF_HC_BASEBAND,4,4
	.comm	NG_HCI_OCF_READ_ENCRYPTION_MODE,4,4
	.comm	FAILED,4,4
	.comm	ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
