	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BTE_Init                       ## -- Begin function BTE_Init
	.p2align	4, 0x90
_BTE_Init:                              ## @BTE_Init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	leaq	L_.str(%rip), %rdi
	callq	_LOG
	movq	_btstate@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorl	%eax, %eax
	callq	_hci_init
	xorl	%eax, %eax
	callq	_l2cap_init
	xorl	%eax, %eax
	callq	_physbusif_init
	leaq	4(%rbx), %rdi
	callq	_LWP_InitQueue
	movq	%rbx, %rdi
	callq	_SYS_CreateAlarm
	callq	__CPU_ISR_Disable
	xorl	%eax, %eax
	callq	_bte_reset_all
	xorl	%eax, %eax
	callq	_hci_reset_all
	xorl	%eax, %eax
	callq	_l2cap_reset_all
	xorl	%eax, %eax
	callq	_physbusif_reset_all
	movq	_acl_wlp_completed@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hci_wlp_complete
	movq	_acl_conn_complete@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hci_connection_complete
	callq	__CPU_ISR_Restore
	movl	$1, -24(%rbp)
	movq	$0, -16(%rbp)
	movl	(%rbx), %edi
	movq	_bt_alarmhandler@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-24(%rbp), %rdx
	movq	%rdx, %rsi
	xorl	%r8d, %r8d
	callq	_SYS_SetPeriodicAlarm
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BTE_Init()\n"

	.comm	_btstate,8,2                    ## @btstate
	.comm	_acl_wlp_completed,4,2          ## @acl_wlp_completed
	.comm	_acl_conn_complete,4,2          ## @acl_conn_complete
	.comm	_bt_alarmhandler,4,2            ## @bt_alarmhandler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_BTE_Init                       ; -- Begin function BTE_Init
	.p2align	2
_BTE_Init:                              ; @BTE_Init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_LOG
Lloh2:
	adrp	x19, _btstate@GOTPAGE
Lloh3:
	ldr	x19, [x19, _btstate@GOTPAGEOFF]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	bl	_hci_init
	bl	_l2cap_init
	bl	_physbusif_init
	add	x0, x19, #4
	bl	_LWP_InitQueue
	mov	x0, x19
	bl	_SYS_CreateAlarm
	bl	__CPU_ISR_Disable
	bl	_bte_reset_all
	bl	_hci_reset_all
	bl	_l2cap_reset_all
	bl	_physbusif_reset_all
Lloh4:
	adrp	x8, _acl_wlp_completed@GOTPAGE
Lloh5:
	ldr	x8, [x8, _acl_wlp_completed@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_hci_wlp_complete
Lloh7:
	adrp	x8, _acl_conn_complete@GOTPAGE
Lloh8:
	ldr	x8, [x8, _acl_conn_complete@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_hci_connection_complete
	bl	__CPU_ISR_Restore
	mov	w8, #1
	str	w8, [sp]
	str	xzr, [sp, #8]
	ldr	w0, [x19]
Lloh10:
	adrp	x8, _bt_alarmhandler@GOTPAGE
Lloh11:
	ldr	x8, [x8, _bt_alarmhandler@GOTPAGEOFF]
Lloh12:
	ldr	w3, [x8]
	mov	x1, sp
	mov	x2, sp
	mov	x4, #0
	bl	_SYS_SetPeriodicAlarm
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BTE_Init()\n"

	.comm	_btstate,8,2                    ; @btstate
	.comm	_acl_wlp_completed,4,2          ; @acl_wlp_completed
	.comm	_acl_conn_complete,4,2          ; @acl_conn_complete
	.comm	_bt_alarmhandler,4,2            ; @bt_alarmhandler
.subsections_via_symbols
