	.file	"extr_btstack_hid.c_btstack_thread_func.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"[BTstack]: Thread started"
.LC1:
	.string	"[BTstack]: Turning on...\n"
.LC2:
	.string	"BTstack: Thread running...\n"
.LC3:
	.string	"[BTstack]: Thread done.\n"
	.text
	.p2align 4
	.type	btstack_thread_func, @function
btstack_thread_func:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	lea	rdi, .LC0[rip]
	call	RARCH_LOG@PLT
	xor	eax, eax
	call	bt_open_ptr@PLT
	test	rax, rax
	je	.L5
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	call	RARCH_LOG@PLT
	mov	esi, DWORD PTR HCI_POWER_ON[rip]
	mov	edi, DWORD PTR btstack_set_power_mode_ptr[rip]
	call	bt_send_cmd_ptr@PLT
	lea	rdi, .LC2[rip]
	call	RARCH_LOG@PLT
	lea	rdi, .LC3[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	RARCH_LOG@PLT
	.cfi_endproc
.LFE0:
	.size	btstack_thread_func, .-btstack_thread_func
	.comm	kCFRunLoopCommonModes,4,4
	.comm	btstack_thread_stop,4,4
	.comm	btstack_set_power_mode_ptr,4,4
	.comm	btstack_quit_source,4,4
	.comm	HCI_POWER_ON,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_btstack_hid.c_btstack_thread_func.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[BTstack]: Thread started\000"
	.align	2
.LC1:
	.ascii	"[BTstack]: Turning on...\012\000"
	.align	2
.LC2:
	.ascii	"BTstack: Thread running...\012\000"
	.align	2
.LC3:
	.ascii	"[BTstack]: Thread done.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	btstack_thread_func, %function
btstack_thread_func:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r0, .L5
	bl	RARCH_LOG
	bl	bt_open_ptr
	cmp	r0, #0
	popne	{r4, pc}
	ldr	r0, .L5+4
	bl	RARCH_LOG
	ldr	r2, .L5+8
	ldr	r3, .L5+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	bt_send_cmd_ptr
	ldr	r0, .L5+16
	bl	RARCH_LOG
	pop	{r4, lr}
	ldr	r0, .L5+20
	b	RARCH_LOG
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	HCI_POWER_ON
	.word	btstack_set_power_mode_ptr
	.word	.LC2
	.word	.LC3
	.size	btstack_thread_func, .-btstack_thread_func
	.comm	kCFRunLoopCommonModes,4,4
	.comm	btstack_thread_stop,4,4
	.comm	btstack_set_power_mode_ptr,4,4
	.comm	btstack_quit_source,4,4
	.comm	HCI_POWER_ON,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
