	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stb0899_wakeup
_stb0899_wakeup:                        ## @stb0899_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rbx
	movq	_STB0899_SYNTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_STB0899_SELOSCI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_stb0899_write_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_STB0899_STOPCLK1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stb0899_write_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_STB0899_STOPCLK2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_stb0899_write_reg
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_STB0899_POSTPROC_GPIO_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_stb0899_postproc
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STB0899_SYNTCTRL,4,2           ## @STB0899_SYNTCTRL
	.comm	_STB0899_SELOSCI,4,2            ## @STB0899_SELOSCI
	.comm	_STB0899_STOPCLK1,4,2           ## @STB0899_STOPCLK1
	.comm	_STB0899_STOPCLK2,4,2           ## @STB0899_STOPCLK2
	.comm	_STB0899_POSTPROC_GPIO_POWER,4,2 ## @STB0899_POSTPROC_GPIO_POWER
	.no_dead_strip	_stb0899_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stb0899_wakeup
_stb0899_wakeup:                        ; @stb0899_wakeup
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x8, _STB0899_SYNTCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STB0899_SYNTCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _STB0899_SELOSCI@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STB0899_SELOSCI@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_stb0899_write_reg
	cbnz	w0, LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _STB0899_STOPCLK1@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STB0899_STOPCLK1@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stb0899_write_reg
	cbnz	w0, LBB0_4
; %bb.2:
Lloh9:
	adrp	x8, _STB0899_STOPCLK2@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STB0899_STOPCLK2@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_stb0899_write_reg
	cbnz	w0, LBB0_4
; %bb.3:
Lloh12:
	adrp	x8, _STB0899_POSTPROC_GPIO_POWER@GOTPAGE
Lloh13:
	ldr	x8, [x8, _STB0899_POSTPROC_GPIO_POWER@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_stb0899_postproc
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STB0899_SYNTCTRL,4,2           ; @STB0899_SYNTCTRL
	.comm	_STB0899_SELOSCI,4,2            ; @STB0899_SELOSCI
	.comm	_STB0899_STOPCLK1,4,2           ; @STB0899_STOPCLK1
	.comm	_STB0899_STOPCLK2,4,2           ; @STB0899_STOPCLK2
	.comm	_STB0899_POSTPROC_GPIO_POWER,4,2 ; @STB0899_POSTPROC_GPIO_POWER
	.no_dead_strip	_stb0899_wakeup
.subsections_via_symbols
