	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_wakeup
_stv090x_wakeup:                        ## @stv090x_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rax
	movq	_STV0900@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	leaq	L_.str(%rip), %rdx
	xorl	%r14d, %r14d
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_STV090x_SYNTCTRL@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_STANDBY_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_STV090x_TSTTNR1@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r15, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_ADC1_PON_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movl	(%r12), %esi
	movq	%r15, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wake %s from standby"

	.comm	_STV0900,8,3                    ## @STV0900
L_.str.1:                               ## @.str.1
	.asciz	"STV0900"

L_.str.2:                               ## @.str.2
	.asciz	"STV0903"

	.comm	_STV090x_SYNTCTRL,4,2           ## @STV090x_SYNTCTRL
	.comm	_STANDBY_FIELD,4,2              ## @STANDBY_FIELD
	.comm	_STV090x_TSTTNR1,4,2            ## @STV090x_TSTTNR1
	.comm	_ADC1_PON_FIELD,4,2             ## @ADC1_PON_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_wakeup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_wakeup
_stv090x_wakeup:                        ; @stv090x_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
Lloh0:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _STV0900@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STV0900@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, l_.str.2@PAGE
Lloh7:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	str	x8, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
Lloh12:
	adrp	x21, _STV090x_SYNTCTRL@GOTPAGE
Lloh13:
	ldr	x21, [x21, _STV090x_SYNTCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh14:
	adrp	x8, _STANDBY_FIELD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STANDBY_FIELD@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_STV090x_SETFIELD
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_3
; %bb.1:
Lloh17:
	adrp	x21, _STV090x_TSTTNR1@GOTPAGE
Lloh18:
	ldr	x21, [x21, _STV090x_TSTTNR1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh19:
	adrp	x8, _ADC1_PON_FIELD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ADC1_PON_FIELD@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
Lloh22:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
Lloh25:
	adrp	x2, l_.str.3@PAGE
Lloh26:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_4:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wake %s from standby"

	.comm	_STV0900,8,3                    ; @STV0900
l_.str.1:                               ; @.str.1
	.asciz	"STV0900"

l_.str.2:                               ; @.str.2
	.asciz	"STV0903"

	.comm	_STV090x_SYNTCTRL,4,2           ; @STV090x_SYNTCTRL
	.comm	_STANDBY_FIELD,4,2              ; @STANDBY_FIELD
	.comm	_STV090x_TSTTNR1,4,2            ; @STV090x_TSTTNR1
	.comm	_ADC1_PON_FIELD,4,2             ; @ADC1_PON_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_wakeup
.subsections_via_symbols
