	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_device_wakeup
_cw1200_device_wakeup:                  ## @cw1200_device_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	_ST90TDS_TSET_GEN_R_W_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	(%r14), %edi
	callq	_cw1200_dpll_from_clk
	movq	%r14, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_cw1200_reg_write_32
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	_ST90TDS_CONTROL_REG_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ST90TDS_CONT_WUP_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_cw1200_reg_write_16
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.2:
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_cw1200_bh_read_ctrl_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	movq	_ST90TDS_CONT_RDY_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, -20(%rbp)
	je	LBB0_4
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_debug
	movl	$1, %ebx
	jmp	LBB0_6
LBB0_4:
	xorl	%ebx, %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[BH] Device wakeup.\n"

	.comm	_ST90TDS_TSET_GEN_R_W_REG_ID,4,2 ## @ST90TDS_TSET_GEN_R_W_REG_ID
	.comm	_ST90TDS_CONTROL_REG_ID,4,2     ## @ST90TDS_CONTROL_REG_ID
	.comm	_ST90TDS_CONT_WUP_BIT,4,2       ## @ST90TDS_CONT_WUP_BIT
	.comm	_ST90TDS_CONT_RDY_BIT,4,2       ## @ST90TDS_CONT_RDY_BIT
L_.str.1:                               ## @.str.1
	.asciz	"[BH] Device awake.\n"

	.no_dead_strip	_cw1200_device_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_device_wakeup
_cw1200_device_wakeup:                  ; @cw1200_device_wakeup
	.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
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
Lloh2:
	adrp	x8, _ST90TDS_TSET_GEN_R_W_REG_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ST90TDS_TSET_GEN_R_W_REG_ID@GOTPAGEOFF]
Lloh4:
	ldr	w20, [x8]
	ldr	w0, [x19]
	bl	_cw1200_dpll_from_clk
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_cw1200_reg_write_32
	mov	x20, x0
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.1:
Lloh5:
	adrp	x8, _ST90TDS_CONTROL_REG_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ST90TDS_CONTROL_REG_ID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _ST90TDS_CONT_WUP_BIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ST90TDS_CONT_WUP_BIT@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_cw1200_reg_write_16
	mov	x20, x0
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_cw1200_bh_read_ctrl_reg
	mov	x20, x0
	bl	_WARN_ON
	cbnz	x0, LBB0_6
; %bb.3:
	ldr	w8, [sp, #12]
Lloh11:
	adrp	x9, _ST90TDS_CONT_RDY_BIT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _ST90TDS_CONT_RDY_BIT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
	mov	w20, #1
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[BH] Device wakeup.\n"

	.comm	_ST90TDS_TSET_GEN_R_W_REG_ID,4,2 ; @ST90TDS_TSET_GEN_R_W_REG_ID
	.comm	_ST90TDS_CONTROL_REG_ID,4,2     ; @ST90TDS_CONTROL_REG_ID
	.comm	_ST90TDS_CONT_WUP_BIT,4,2       ; @ST90TDS_CONT_WUP_BIT
	.comm	_ST90TDS_CONT_RDY_BIT,4,2       ; @ST90TDS_CONT_RDY_BIT
l_.str.1:                               ; @.str.1
	.asciz	"[BH] Device awake.\n"

	.no_dead_strip	_cw1200_device_wakeup
.subsections_via_symbols
