	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stv090x_sleep
_stv090x_sleep:                         ## @stv090x_sleep
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r12
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_stv090x_i2c_gate_ctrl
	testq	%rax, %rax
	js	LBB0_27
## %bb.1:
	movq	24(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	*%rax
	testq	%rax, %rax
	js	LBB0_26
LBB0_3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_stv090x_i2c_gate_ctrl
	testq	%rax, %rax
	js	LBB0_27
## %bb.4:
	movq	_FE_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r12), %rax
	movq	_STV0900@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%rax, %rcx
	movl	8(%r12), %r8d
	leaq	L_.str(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	16(%r12), %rdi
	callq	_mutex_lock
	movl	8(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_18
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_24
## %bb.6:
	movq	_STV090x_TSTTNR1@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_ADC1_PON_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.7:
	movq	_STV090x_TSTTNR2@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_DISEQC1_PON_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.8:
	movq	_STV090x_TSTTNR3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movq	_ADC2_PON_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD
	movl	%eax, %r14d
	movq	_STV090x_STOPCLK1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %r15d
	movq	_STOP_CLKPKDT1_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movq	_STOP_CLKADCI1_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	testl	%r14d, %r14d
	sete	%r13b
	jne	LBB0_10
## %bb.9:
	movq	_STOP_CLKFEC_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
LBB0_10:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.11:
	movq	_STV090x_STOPCLK2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %r15d
	movq	_STOP_CLKSAMP1_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movq	_STOP_CLKVIT1_FIELD@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_26:
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_stv090x_i2c_gate_ctrl
	jmp	LBB0_27
LBB0_18:
	movq	_STV090x_TSTTNR3@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_ADC2_PON_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.19:
	movq	_STV090x_TSTTNR4@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_DISEQC2_PON_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	callq	_STV090x_SETFIELD
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.20:
	movq	_STV090x_TSTTNR1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movq	_ADC1_PON_FIELD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_STV090x_GETFIELD
	movl	%eax, %r14d
	movq	_STV090x_STOPCLK1@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %r15d
	movq	_STOP_CLKPKDT2_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movq	_STOP_CLKADCI2_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	testl	%r14d, %r14d
	sete	%r13b
	jne	LBB0_22
## %bb.21:
	movq	_STOP_CLKFEC_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
LBB0_22:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.23:
	movq	_STV090x_STOPCLK2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %r15d
	movq	_STOP_CLKSAMP2_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movq	_STOP_CLKVIT2_FIELD@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	testl	%r14d, %r14d
	jne	LBB0_14
## %bb.13:
	movq	_STOP_CLKTS_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
LBB0_14:
	movl	(%rbx), %esi
	movq	%r12, %rdi
	movl	%r15d, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	js	LBB0_17
## %bb.15:
	testb	%r13b, %r13b
	je	LBB0_25
## %bb.16:
	movq	_STV090x_SYNTCTRL@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_stv090x_read_reg
	movl	%eax, %ebx
	movq	_STANDBY_FIELD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	movl	$1, %edx
	callq	_STV090x_SETFIELD
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_stv090x_write_reg
	testq	%rax, %rax
	jns	LBB0_25
LBB0_17:
	movq	16(%r12), %rdi
	callq	_mutex_unlock
LBB0_27:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.4(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$-1, %eax
LBB0_28:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_24:
	movq	_FE_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rdx
	movl	$1, %esi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_25:
	movq	16(%r12), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_28
	.cfi_endproc
                                        ## -- End function
	.comm	_FE_DEBUG,4,2                   ## @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set %s(%d) to sleep"

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

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

	.comm	_STV090x_TSTTNR1,4,2            ## @STV090x_TSTTNR1
	.comm	_ADC1_PON_FIELD,4,2             ## @ADC1_PON_FIELD
	.comm	_STV090x_TSTTNR2,4,2            ## @STV090x_TSTTNR2
	.comm	_DISEQC1_PON_FIELD,4,2          ## @DISEQC1_PON_FIELD
	.comm	_STV090x_TSTTNR3,4,2            ## @STV090x_TSTTNR3
	.comm	_ADC2_PON_FIELD,4,2             ## @ADC2_PON_FIELD
	.comm	_STV090x_STOPCLK1,4,2           ## @STV090x_STOPCLK1
	.comm	_STOP_CLKPKDT1_FIELD,4,2        ## @STOP_CLKPKDT1_FIELD
	.comm	_STOP_CLKADCI1_FIELD,4,2        ## @STOP_CLKADCI1_FIELD
	.comm	_STOP_CLKFEC_FIELD,4,2          ## @STOP_CLKFEC_FIELD
	.comm	_STV090x_STOPCLK2,4,2           ## @STV090x_STOPCLK2
	.comm	_STOP_CLKSAMP1_FIELD,4,2        ## @STOP_CLKSAMP1_FIELD
	.comm	_STOP_CLKVIT1_FIELD,4,2         ## @STOP_CLKVIT1_FIELD
	.comm	_STOP_CLKTS_FIELD,4,2           ## @STOP_CLKTS_FIELD
	.comm	_STV090x_TSTTNR4,4,2            ## @STV090x_TSTTNR4
	.comm	_DISEQC2_PON_FIELD,4,2          ## @DISEQC2_PON_FIELD
	.comm	_STOP_CLKPKDT2_FIELD,4,2        ## @STOP_CLKPKDT2_FIELD
	.comm	_STOP_CLKADCI2_FIELD,4,2        ## @STOP_CLKADCI2_FIELD
	.comm	_STOP_CLKSAMP2_FIELD,4,2        ## @STOP_CLKSAMP2_FIELD
	.comm	_STOP_CLKVIT2_FIELD,4,2         ## @STOP_CLKVIT2_FIELD
	.comm	_FE_ERROR,4,2                   ## @FE_ERROR
L_.str.3:                               ## @.str.3
	.asciz	"Wrong demodulator!"

	.comm	_STV090x_SYNTCTRL,4,2           ## @STV090x_SYNTCTRL
	.comm	_STANDBY_FIELD,4,2              ## @STANDBY_FIELD
L_.str.4:                               ## @.str.4
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_sleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stv090x_sleep
_stv090x_sleep:                         ; @stv090x_sleep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #1
	bl	_stv090x_i2c_gate_ctrl
	tbnz	x0, #63, LBB0_25
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x20
	blr	x8
	tbnz	x0, #63, LBB0_12
LBB0_3:
	mov	x0, x19
	mov	w1, #0
	bl	_stv090x_i2c_gate_ctrl
	tbnz	x0, #63, LBB0_25
; %bb.4:
Lloh0:
	adrp	x8, _FE_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FE_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _STV0900@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STV0900@GOTPAGEOFF]
Lloh5:
	adrp	x10, l_.str.2@PAGE
Lloh6:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh7:
	ldr	x9, [x9]
Lloh8:
	adrp	x11, l_.str.1@PAGE
Lloh9:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w9, [x19, #8]
	stp	x8, x9, [sp]
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	ldr	x0, [x19, #16]
	bl	_mutex_lock
	ldr	w8, [x19, #8]
	cmp	w8, #128
	b.eq	LBB0_13
; %bb.5:
	cmp	w8, #129
	b.ne	LBB0_27
; %bb.6:
Lloh12:
	adrp	x21, _STV090x_TSTTNR1@GOTPAGE
Lloh13:
	ldr	x21, [x21, _STV090x_TSTTNR1@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh14:
	adrp	x8, _ADC1_PON_FIELD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ADC1_PON_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_24
; %bb.7:
Lloh17:
	adrp	x21, _STV090x_TSTTNR2@GOTPAGE
Lloh18:
	ldr	x21, [x21, _STV090x_TSTTNR2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh19:
	adrp	x8, _DISEQC1_PON_FIELD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DISEQC1_PON_FIELD@GOTPAGEOFF]
Lloh21:
	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_24
; %bb.8:
Lloh22:
	adrp	x8, _STV090x_TSTTNR3@GOTPAGE
Lloh23:
	ldr	x8, [x8, _STV090x_TSTTNR3@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv090x_read_reg
Lloh25:
	adrp	x8, _ADC2_PON_FIELD@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ADC2_PON_FIELD@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD
	mov	x20, x0
	cmp	w0, #0
	cset	w22, eq
Lloh28:
	adrp	x23, _STV090x_STOPCLK1@GOTPAGE
Lloh29:
	ldr	x23, [x23, _STV090x_STOPCLK1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh30:
	adrp	x8, _STOP_CLKPKDT1_FIELD@GOTPAGE
Lloh31:
	ldr	x8, [x8, _STOP_CLKPKDT1_FIELD@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
Lloh33:
	adrp	x8, _STOP_CLKADCI1_FIELD@GOTPAGE
Lloh34:
	ldr	x8, [x8, _STOP_CLKADCI1_FIELD@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
	cbnz	w20, LBB0_10
; %bb.9:
Lloh36:
	adrp	x8, _STOP_CLKFEC_FIELD@GOTPAGE
Lloh37:
	ldr	x8, [x8, _STOP_CLKFEC_FIELD@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
LBB0_10:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_24
; %bb.11:
Lloh39:
	adrp	x23, _STV090x_STOPCLK2@GOTPAGE
Lloh40:
	ldr	x23, [x23, _STV090x_STOPCLK2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh41:
	adrp	x8, _STOP_CLKSAMP1_FIELD@GOTPAGE
Lloh42:
	ldr	x8, [x8, _STOP_CLKSAMP1_FIELD@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
Lloh44:
	adrp	x8, _STOP_CLKVIT1_FIELD@GOTPAGE
Lloh45:
	ldr	x8, [x8, _STOP_CLKVIT1_FIELD@GOTPAGEOFF]
	b	LBB0_19
LBB0_12:
	mov	x0, x19
	mov	w1, #0
	bl	_stv090x_i2c_gate_ctrl
	b	LBB0_25
LBB0_13:
Lloh46:
	adrp	x21, _STV090x_TSTTNR3@GOTPAGE
Lloh47:
	ldr	x21, [x21, _STV090x_TSTTNR3@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh48:
	adrp	x8, _ADC2_PON_FIELD@GOTPAGE
Lloh49:
	ldr	x8, [x8, _ADC2_PON_FIELD@GOTPAGEOFF]
Lloh50:
	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_24
; %bb.14:
Lloh51:
	adrp	x21, _STV090x_TSTTNR4@GOTPAGE
Lloh52:
	ldr	x21, [x21, _STV090x_TSTTNR4@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh53:
	adrp	x8, _DISEQC2_PON_FIELD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _DISEQC2_PON_FIELD@GOTPAGEOFF]
Lloh55:
	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_24
; %bb.15:
Lloh56:
	adrp	x8, _STV090x_TSTTNR1@GOTPAGE
Lloh57:
	ldr	x8, [x8, _STV090x_TSTTNR1@GOTPAGEOFF]
Lloh58:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_stv090x_read_reg
Lloh59:
	adrp	x8, _ADC1_PON_FIELD@GOTPAGE
Lloh60:
	ldr	x8, [x8, _ADC1_PON_FIELD@GOTPAGEOFF]
Lloh61:
	ldr	w1, [x8]
	bl	_STV090x_GETFIELD
	mov	x20, x0
	cmp	w0, #0
	cset	w22, eq
Lloh62:
	adrp	x23, _STV090x_STOPCLK1@GOTPAGE
Lloh63:
	ldr	x23, [x23, _STV090x_STOPCLK1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh64:
	adrp	x8, _STOP_CLKPKDT2_FIELD@GOTPAGE
Lloh65:
	ldr	x8, [x8, _STOP_CLKPKDT2_FIELD@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
Lloh67:
	adrp	x8, _STOP_CLKADCI2_FIELD@GOTPAGE
Lloh68:
	ldr	x8, [x8, _STOP_CLKADCI2_FIELD@GOTPAGEOFF]
Lloh69:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
	cbnz	w20, LBB0_17
; %bb.16:
Lloh70:
	adrp	x8, _STOP_CLKFEC_FIELD@GOTPAGE
Lloh71:
	ldr	x8, [x8, _STOP_CLKFEC_FIELD@GOTPAGEOFF]
Lloh72:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
LBB0_17:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_24
; %bb.18:
Lloh73:
	adrp	x23, _STV090x_STOPCLK2@GOTPAGE
Lloh74:
	ldr	x23, [x23, _STV090x_STOPCLK2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x21, x0
Lloh75:
	adrp	x8, _STOP_CLKSAMP2_FIELD@GOTPAGE
Lloh76:
	ldr	x8, [x8, _STOP_CLKSAMP2_FIELD@GOTPAGEOFF]
Lloh77:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
Lloh78:
	adrp	x8, _STOP_CLKVIT2_FIELD@GOTPAGE
Lloh79:
	ldr	x8, [x8, _STOP_CLKVIT2_FIELD@GOTPAGEOFF]
LBB0_19:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
	cbnz	w20, LBB0_21
; %bb.20:
Lloh80:
	adrp	x8, _STOP_CLKTS_FIELD@GOTPAGE
Lloh81:
	ldr	x8, [x8, _STOP_CLKTS_FIELD@GOTPAGEOFF]
Lloh82:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #1
	bl	_STV090x_SETFIELD
LBB0_21:
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_stv090x_write_reg
	tbnz	x0, #63, LBB0_24
; %bb.22:
	cbz	w22, LBB0_28
; %bb.23:
Lloh83:
	adrp	x21, _STV090x_SYNTCTRL@GOTPAGE
Lloh84:
	ldr	x21, [x21, _STV090x_SYNTCTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_stv090x_read_reg
	mov	x20, x0
Lloh85:
	adrp	x8, _STANDBY_FIELD@GOTPAGE
Lloh86:
	ldr	x8, [x8, _STANDBY_FIELD@GOTPAGEOFF]
Lloh87:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_STV090x_SETFIELD
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x20
	bl	_stv090x_write_reg
	tbz	x0, #63, LBB0_28
LBB0_24:
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
LBB0_25:
Lloh88:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh89:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh90:
	ldr	w0, [x8]
Lloh91:
	adrp	x2, l_.str.4@PAGE
Lloh92:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	w1, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_26:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_27:
Lloh93:
	adrp	x8, _FE_ERROR@GOTPAGE
Lloh94:
	ldr	x8, [x8, _FE_ERROR@GOTPAGEOFF]
Lloh95:
	ldr	w0, [x8]
Lloh96:
	adrp	x2, l_.str.3@PAGE
Lloh97:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	w1, #1
	bl	_dprintk
LBB0_28:
	ldr	x0, [x19, #16]
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_26
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGot	Lloh78, Lloh79
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh80, Lloh81, Lloh82
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGot	Lloh83, Lloh84
	.loh AdrpAdd	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpAdd	Lloh96, Lloh97
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.cfi_endproc
                                        ; -- End function
	.comm	_FE_DEBUG,4,2                   ; @FE_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set %s(%d) to sleep"

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

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

	.comm	_STV090x_TSTTNR1,4,2            ; @STV090x_TSTTNR1
	.comm	_ADC1_PON_FIELD,4,2             ; @ADC1_PON_FIELD
	.comm	_STV090x_TSTTNR2,4,2            ; @STV090x_TSTTNR2
	.comm	_DISEQC1_PON_FIELD,4,2          ; @DISEQC1_PON_FIELD
	.comm	_STV090x_TSTTNR3,4,2            ; @STV090x_TSTTNR3
	.comm	_ADC2_PON_FIELD,4,2             ; @ADC2_PON_FIELD
	.comm	_STV090x_STOPCLK1,4,2           ; @STV090x_STOPCLK1
	.comm	_STOP_CLKPKDT1_FIELD,4,2        ; @STOP_CLKPKDT1_FIELD
	.comm	_STOP_CLKADCI1_FIELD,4,2        ; @STOP_CLKADCI1_FIELD
	.comm	_STOP_CLKFEC_FIELD,4,2          ; @STOP_CLKFEC_FIELD
	.comm	_STV090x_STOPCLK2,4,2           ; @STV090x_STOPCLK2
	.comm	_STOP_CLKSAMP1_FIELD,4,2        ; @STOP_CLKSAMP1_FIELD
	.comm	_STOP_CLKVIT1_FIELD,4,2         ; @STOP_CLKVIT1_FIELD
	.comm	_STOP_CLKTS_FIELD,4,2           ; @STOP_CLKTS_FIELD
	.comm	_STV090x_TSTTNR4,4,2            ; @STV090x_TSTTNR4
	.comm	_DISEQC2_PON_FIELD,4,2          ; @DISEQC2_PON_FIELD
	.comm	_STOP_CLKPKDT2_FIELD,4,2        ; @STOP_CLKPKDT2_FIELD
	.comm	_STOP_CLKADCI2_FIELD,4,2        ; @STOP_CLKADCI2_FIELD
	.comm	_STOP_CLKSAMP2_FIELD,4,2        ; @STOP_CLKSAMP2_FIELD
	.comm	_STOP_CLKVIT2_FIELD,4,2         ; @STOP_CLKVIT2_FIELD
	.comm	_FE_ERROR,4,2                   ; @FE_ERROR
l_.str.3:                               ; @.str.3
	.asciz	"Wrong demodulator!"

	.comm	_STV090x_SYNTCTRL,4,2           ; @STV090x_SYNTCTRL
	.comm	_STANDBY_FIELD,4,2              ; @STANDBY_FIELD
l_.str.4:                               ; @.str.4
	.asciz	"I/O error"

	.no_dead_strip	_stv090x_sleep
.subsections_via_symbols
