	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ll_device_want_to_wakeup
_ll_device_want_to_wakeup:              ## @ll_device_want_to_wakeup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_BT_DBG
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r15), %esi
	cmpl	$129, %esi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_DBG
LBB0_3:
	movq	_HCILL_WAKE_UP_ACK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_send_hcill_cmd
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_BT_ERR
LBB0_6:
	movq	%r15, %rdi
	callq	___ll_do_awake
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hci_uart_tx_wakeup             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hu %p"

L_.str.1:                               ## @.str.1
	.asciz	"dual wake-up-indication"

	.comm	_HCILL_WAKE_UP_ACK,4,2          ## @HCILL_WAKE_UP_ACK
L_.str.2:                               ## @.str.2
	.asciz	"cannot acknowledge device wake up"

L_.str.3:                               ## @.str.3
	.asciz	"received HCILL_WAKE_UP_IND in state %ld"

	.no_dead_strip	_ll_device_want_to_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ll_device_want_to_wakeup
_ll_device_want_to_wakeup:              ; @ll_device_want_to_wakeup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x21, [x0]
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_BT_DBG
	add	x20, x21, #4
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.2:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BT_DBG
LBB0_3:
Lloh4:
	adrp	x8, _HCILL_WAKE_UP_ACK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCILL_WAKE_UP_ACK@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_send_hcill_cmd
	tbz	w0, #31, LBB0_6
; %bb.4:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BT_ERR
	b	LBB0_7
LBB0_5:
	str	x8, [sp]
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_BT_ERR
LBB0_6:
	mov	x0, x21
	bl	___ll_do_awake
LBB0_7:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_hci_uart_tx_wakeup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hu %p"

l_.str.1:                               ; @.str.1
	.asciz	"dual wake-up-indication"

	.comm	_HCILL_WAKE_UP_ACK,4,2          ; @HCILL_WAKE_UP_ACK
l_.str.2:                               ; @.str.2
	.asciz	"cannot acknowledge device wake up"

l_.str.3:                               ; @.str.3
	.asciz	"received HCILL_WAKE_UP_IND in state %ld"

	.no_dead_strip	_ll_device_want_to_wakeup
.subsections_via_symbols
