	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib9000_set_frontend
_dib9000_set_frontend:                  ## @dib9000_set_frontend
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	8(%rdi), %r13
	movq	16(%r13), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.1:
	cmpq	$0, 8(%rax)
	je	LBB0_9
## %bb.2:
	movq	%rdi, %rbx
	movl	$-1, (%r13)
	leaq	24(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	testq	%rax, %rax
	js	LBB0_10
## %bb.3:
	movq	_SYS_DVBT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	16(%r13), %rax
	movq	(%rax), %rdx
	movq	16(%rdx), %rsi
	movq	_TRANSMISSION_MODE_AUTO@GOTPCREL(%rip), %rdi
	movq	_CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rdi), %rsi
	je	LBB0_14
## %bb.4:
	movq	24(%rdx), %rsi
	movq	_GUARD_INTERVAL_AUTO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_14
## %bb.5:
	movq	32(%rdx), %rsi
	movq	_QAM_AUTO@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rsi
	je	LBB0_14
## %bb.6:
	movq	40(%rdx), %rcx
	movq	_FEC_AUTO@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_13
## %bb.7:
	movq	_CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_8:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_11
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_11
LBB0_10:
	leaq	L_.str.2(%rip), %rdi
LBB0_11:
	xorl	%eax, %eax
	callq	_dprintk
LBB0_12:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_CHANNEL_STATUS_PARAMETERS_SET@GOTPCREL(%rip), %rcx
LBB0_14:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	(%rcx), %rcx
	movq	%rcx, 32(%r13)
	movq	_MAX_NUMBER_OF_FRONTENDS@GOTPCREL(%rip), %r14
	cmpq	$0, (%r14)
	je	LBB0_19
## %bb.15:
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_19
## %bb.16:
	leaq	32(%r13), %r15
	movl	$1, %r12d
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %esi
	callq	_dib9000_fw_set_diversity_in
	movq	16(%r13), %rax
	movq	-8(%rax,%r12,8), %rdi
	movq	%rbx, %rsi
	movl	$4, %edx
	callq	_memcpy
	movq	_SYS_DVBT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	16(%r13), %rcx
	movq	-8(%rcx,%r12,8), %rdx
	movq	%rax, 48(%rdx)
	movq	-8(%rcx,%r12,8), %rdi
	movq	_OUTMODE_HIGH_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dib9000_fw_set_output_mode
	movq	16(%r13), %rax
	movq	-8(%rax,%r12,8), %rdi
	movq	%r15, %rsi
	callq	_dib9000_set_channel_status
	movq	16(%r13), %rax
	movq	-8(%rax,%r12,8), %rdi
	movq	_CT_DEMOD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dib9000_set_tune_state
	cmpq	(%r14), %r12
	jae	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	incq	%r12
	testq	%rdi, %rdi
	jne	LBB0_17
LBB0_19:
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##     Child Loop BB0_29 Depth 2
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	callq	_dib9000_fw_tune
	movl	%eax, %r15d
	cmpq	$2, (%r14)
	jb	LBB0_25
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_25
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	callq	_dib9000_fw_tune
	cmpl	%r15d, %eax
	movl	%r15d, %ecx
	cmovgl	%eax, %ecx
	movq	_FE_CALLBACK_TIME_NEVER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpl	%edx, %eax
	cmovel	%r15d, %ecx
	cmpl	%edx, %r15d
	cmovel	%eax, %ecx
	incq	%rbx
	movl	%ecx, %r15d
	cmpq	(%r14), %rbx
	jb	LBB0_22
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r15d, %ecx
LBB0_26:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	_FE_CALLBACK_TIME_NEVER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	je	LBB0_38
## %bb.27:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	%ecx, %rax
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
	movb	$1, %bl
	cmpq	$0, (%r14)
	je	LBB0_32
## %bb.28:                              ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%r12,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_33
## %bb.30:                              ##   in Loop: Header=BB0_29 Depth=2
	callq	_dib9000_get_status
	movq	_FE_STATUS_TUNE_PENDING@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jg	LBB0_34
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=2
	sete	%al
	movzbl	%al, %eax
	addq	%rax, %r15
	incq	%r12
	cmpq	(%r14), %r12
	jb	LBB0_29
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_32:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%r15d, %r15d
LBB0_33:                                ##   in Loop: Header=BB0_20 Depth=1
	xorl	%eax, %eax
	xorl	%r12d, %r12d
	jmp	LBB0_35
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$2, %eax
	xorl	%ebx, %ebx
LBB0_35:                                ##   in Loop: Header=BB0_20 Depth=1
	testq	%r15, %r15
	movq	%rax, %rcx
	movl	$1, %edx
	cmoveq	%rdx, %rcx
	testb	%bl, %bl
	cmoveq	%rax, %rcx
	testq	%rcx, %rcx
	je	LBB0_20
## %bb.36:
	cmpl	$1, %ecx
	jne	LBB0_38
## %bb.37:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	$-1, (%r13)
	jmp	LBB0_12
LBB0_38:
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1, 4(%r13)
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	movq	%rdi, %rsi
	callq	_dib9000_get_frontend
	movl	$0, 4(%r13)
	movq	_CHANNEL_STATUS_PARAMETERS_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_44
## %bb.39:
	xorl	%ebx, %ebx
	movq	_CT_DEMOD_START@GOTPCREL(%rip), %r15
	jmp	LBB0_41
	.p2align	4, 0x90
LBB0_40:                                ##   in Loop: Header=BB0_41 Depth=1
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_46
LBB0_41:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_46
## %bb.42:                              ##   in Loop: Header=BB0_41 Depth=1
	cmpq	%rbx, %r12
	je	LBB0_40
## %bb.43:                              ##   in Loop: Header=BB0_41 Depth=1
	leaq	-56(%rbp), %rsi
	callq	_dib9000_set_channel_status
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	movl	(%r15), %esi
	callq	_dib9000_set_tune_state
	movq	(%r14), %rax
	jmp	LBB0_40
LBB0_44:
	xorl	%eax, %eax
	jmp	LBB0_46
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_46 Depth=1
	testq	%r15, %r15
	je	LBB0_63
LBB0_46:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_50 Depth 2
                                        ##     Child Loop BB0_60 Depth 2
	testq	%rax, %rax
	je	LBB0_63
## %bb.47:                              ##   in Loop: Header=BB0_46 Depth=1
	movq	_FE_CALLBACK_TIME_NEVER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%ebx, %ebx
	movl	%ecx, %r15d
	jmp	LBB0_50
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_50 Depth=2
	movl	%r15d, %eax
LBB0_49:                                ##   in Loop: Header=BB0_50 Depth=2
	incq	%rbx
	movl	%eax, %r15d
	cmpq	(%r14), %rbx
	jae	LBB0_56
LBB0_50:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_55
## %bb.51:                              ##   in Loop: Header=BB0_50 Depth=2
	cmpq	%rbx, %r12
	je	LBB0_48
## %bb.52:                              ##   in Loop: Header=BB0_50 Depth=2
	callq	_dib9000_fw_tune
	movq	_FE_CALLBACK_TIME_NEVER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%ecx, %r15d
	jne	LBB0_54
## %bb.53:                              ##   in Loop: Header=BB0_50 Depth=2
	movl	%r15d, %ecx
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_50 Depth=2
	cmpl	%r15d, %eax
	movl	%r15d, %edx
	cmovgl	%eax, %edx
	cmpl	%ecx, %eax
	cmovel	%r15d, %edx
	movl	%edx, %eax
	jmp	LBB0_49
	.p2align	4, 0x90
LBB0_55:                                ##   in Loop: Header=BB0_46 Depth=1
	movl	%r15d, %eax
LBB0_56:                                ##   in Loop: Header=BB0_46 Depth=1
	cmpl	%ecx, %eax
	je	LBB0_63
## %bb.57:                              ##   in Loop: Header=BB0_46 Depth=1
	cltq
	imulq	$1717986919, %rax, %rdi         ## imm = 0x66666667
	movq	%rdi, %rax
	shrq	$63, %rax
	sarq	$34, %rdi
	addl	%eax, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_msleep
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_63
## %bb.58:                              ##   in Loop: Header=BB0_46 Depth=1
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_60
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_60 Depth=2
	incq	%rbx
	cmpq	%rax, %rbx
	jae	LBB0_45
LBB0_60:                                ##   Parent Loop BB0_46 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	16(%r13), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_45
## %bb.61:                              ##   in Loop: Header=BB0_60 Depth=2
	cmpq	%rbx, %r12
	je	LBB0_59
## %bb.62:                              ##   in Loop: Header=BB0_60 Depth=2
	callq	_dib9000_get_status
	xorl	%ecx, %ecx
	movq	_FE_STATUS_TUNE_PENDING@GOTPCREL(%rip), %rdx
	cmpl	%eax, (%rdx)
	sete	%cl
	addq	%rcx, %r15
	movq	(%r14), %rax
	jmp	LBB0_59
LBB0_63:
	movq	16(%r13), %rax
	movq	(%rax), %rdi
	movl	28(%r13), %esi
	callq	_dib9000_fw_set_output_mode
	movl	$1, %ebx
	cmpq	$2, (%r14)
	jb	LBB0_67
## %bb.64:
	movl	$1, %ebx
	movq	_OUTMODE_DIVERSITY@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_65:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %rax
	movq	(%rax,%rbx,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_67
## %bb.66:                              ##   in Loop: Header=BB0_65 Depth=1
	movl	(%r15), %esi
	callq	_dib9000_fw_set_output_mode
	incq	%rbx
	cmpq	(%r14), %rbx
	jb	LBB0_65
LBB0_67:
	movq	16(%r13), %rax
	movq	-8(%rax,%rbx,8), %rdi
	xorl	%esi, %esi
	callq	_dib9000_fw_set_diversity_in
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	(%r13), %eax
	testl	%eax, %eax
	js	LBB0_74
## %bb.68:
	movl	$-2, (%r13)
	leaq	(%rax,%rax,2), %rax
	leaq	24(,%rax,8), %r14
	xorl	%ebx, %ebx
	movq	_DIB9000_PID_FILTER_CTRL@GOTPCREL(%rip), %r15
	movq	_DIB9000_PID_FILTER@GOTPCREL(%rip), %r12
	jmp	LBB0_71
	.p2align	4, 0x90
LBB0_69:                                ##   in Loop: Header=BB0_71 Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx), %rdi
	movl	8(%rax,%rbx), %esi
	callq	_dib9000_fw_pid_filter_ctrl
LBB0_70:                                ##   in Loop: Header=BB0_71 Depth=1
	addq	$24, %rbx
	cmpq	%rbx, %r14
	je	LBB0_74
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rax
	movq	(%rax,%rbx), %rcx
	cmpq	(%r15), %rcx
	je	LBB0_69
## %bb.72:                              ##   in Loop: Header=BB0_71 Depth=1
	cmpq	(%r12), %rcx
	jne	LBB0_70
## %bb.73:                              ##   in Loop: Header=BB0_71 Depth=1
	movq	16(%r13), %rcx
	movq	(%rcx), %rdi
	movl	16(%rax,%rbx), %esi
	movl	8(%rax,%rbx), %ecx
	movl	12(%rax,%rbx), %edx
	callq	_dib9000_fw_pid_filter
	jmp	LBB0_70
LBB0_74:
	movl	$-2, (%r13)
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"dib9000: must specify frequency\n"

L_.str.1:                               ## @.str.1
	.asciz	"dib9000: must specify bandwidth\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not get the lock\n"

	.comm	_SYS_DVBT,8,3                   ## @SYS_DVBT
	.comm	_TRANSMISSION_MODE_AUTO,8,3     ## @TRANSMISSION_MODE_AUTO
	.comm	_GUARD_INTERVAL_AUTO,8,3        ## @GUARD_INTERVAL_AUTO
	.comm	_QAM_AUTO,8,3                   ## @QAM_AUTO
	.comm	_FEC_AUTO,8,3                   ## @FEC_AUTO
	.comm	_CHANNEL_STATUS_PARAMETERS_UNKNOWN,8,3 ## @CHANNEL_STATUS_PARAMETERS_UNKNOWN
	.comm	_CHANNEL_STATUS_PARAMETERS_SET,8,3 ## @CHANNEL_STATUS_PARAMETERS_SET
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ## @MAX_NUMBER_OF_FRONTENDS
	.comm	_OUTMODE_HIGH_Z,4,2             ## @OUTMODE_HIGH_Z
	.comm	_CT_DEMOD_START,4,2             ## @CT_DEMOD_START
	.comm	_FE_CALLBACK_TIME_NEVER,4,2     ## @FE_CALLBACK_TIME_NEVER
	.comm	_FE_STATUS_TUNE_PENDING,4,2     ## @FE_STATUS_TUNE_PENDING
L_.str.3:                               ## @.str.3
	.asciz	"tune failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"tune success on frontend%i\n"

	.comm	_OUTMODE_DIVERSITY,4,2          ## @OUTMODE_DIVERSITY
	.comm	_DIB9000_PID_FILTER_CTRL,8,3    ## @DIB9000_PID_FILTER_CTRL
	.comm	_DIB9000_PID_FILTER,8,3         ## @DIB9000_PID_FILTER
	.no_dead_strip	_dib9000_set_frontend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib9000_set_frontend
_dib9000_set_frontend:                  ; @dib9000_set_frontend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	ldr	x22, [x0, #8]
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldr	x9, [x8]
	cbz	x9, LBB0_29
; %bb.1:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_30
; %bb.2:
	mov	x20, x0
	mov	w8, #-1
	mov	x19, x22
	str	w8, [x19], #24
	mov	x0, x19
	bl	_mutex_lock_interruptible
	tbnz	x0, #63, LBB0_65
; %bb.3:
Lloh0:
	adrp	x24, _SYS_DVBT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _SYS_DVBT@GOTPAGEOFF]
	ldr	x8, [x24]
	str	x8, [x20]
	ldr	x8, [x22, #16]
	ldr	x9, [x8]
	ldr	x10, [x9, #16]
Lloh2:
	adrp	x11, _TRANSMISSION_MODE_AUTO@GOTPAGE
Lloh3:
	ldr	x11, [x11, _TRANSMISSION_MODE_AUTO@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.eq	LBB0_5
; %bb.4:
	ldr	x10, [x9, #24]
Lloh5:
	adrp	x11, _GUARD_INTERVAL_AUTO@GOTPAGE
Lloh6:
	ldr	x11, [x11, _GUARD_INTERVAL_AUTO@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_67
LBB0_5:
Lloh8:
	adrp	x10, _CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPAGE
Lloh9:
	ldr	x10, [x10, _CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPAGEOFF]
LBB0_6:
	ldr	x9, [x10]
	str	x9, [x22, #32]
Lloh10:
	adrp	x23, _MAX_NUMBER_OF_FRONTENDS@GOTPAGE
Lloh11:
	ldr	x23, [x23, _MAX_NUMBER_OF_FRONTENDS@GOTPAGEOFF]
	ldr	x9, [x23]
	cbz	x9, LBB0_11
; %bb.7:
	ldr	x0, [x8]
	cbz	x0, LBB0_11
; %bb.8:
	mov	x25, #0
	add	x21, x22, #32
Lloh12:
	adrp	x26, _OUTMODE_HIGH_Z@GOTPAGE
Lloh13:
	ldr	x26, [x26, _OUTMODE_HIGH_Z@GOTPAGEOFF]
Lloh14:
	adrp	x27, _CT_DEMOD_START@GOTPAGE
Lloh15:
	ldr	x27, [x27, _CT_DEMOD_START@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	mov	w1, #1
	bl	_dib9000_fw_set_diversity_in
	ldr	x8, [x22, #16]
	lsl	x28, x25, #3
	ldr	x0, [x8, x28]
	mov	x1, x20
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [x24]
	ldr	x9, [x22, #16]
	ldr	x10, [x9, x28]
	str	x8, [x10, #48]
	ldr	x0, [x9, x28]
	ldr	w1, [x26]
	bl	_dib9000_fw_set_output_mode
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x28]
	mov	x1, x21
	bl	_dib9000_set_channel_status
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x28]
	ldr	w1, [x27]
	bl	_dib9000_set_tune_state
	add	x8, x25, #1
	ldr	x9, [x23]
	cmp	x8, x9
	b.hs	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x22, #16]
	add	x9, x9, x25, lsl #3
	ldr	x0, [x9, #8]
	mov	x25, x8
	cbnz	x0, LBB0_9
LBB0_11:
	mov	x25, #0
Lloh16:
	adrp	x21, _FE_CALLBACK_TIME_NEVER@GOTPAGE
Lloh17:
	ldr	x21, [x21, _FE_CALLBACK_TIME_NEVER@GOTPAGEOFF]
	mov	w26, #26215
	movk	w26, #26214, lsl #16
Lloh18:
	adrp	x24, _FE_STATUS_TUNE_PENDING@GOTPAGE
Lloh19:
	ldr	x24, [x24, _FE_STATUS_TUNE_PENDING@GOTPAGEOFF]
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;     Child Loop BB0_19 Depth 2
	ldr	x8, [x22, #16]
	ldr	x0, [x8]
	bl	_dib9000_fw_tune
	mov	x20, x0
	ldr	x8, [x23]
	cmp	x8, #2
	b.lo	LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w27, #1
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x27, lsl #3]
	cbz	x0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	bl	_dib9000_fw_tune
	ldr	w8, [x21]
	cmp	w0, w20
	ccmp	w0, w8, #4, gt
	ccmp	w20, w8, #4, eq
	csel	w20, w0, w20, eq
	add	x27, x27, #1
	ldr	x8, [x23]
	cmp	x27, x8
	b.lo	LBB0_14
LBB0_16:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w8, [x21]
	cmp	w20, w8
	b.eq	LBB0_31
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	smull	x8, w20, w26
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_msleep
	ldr	x8, [x23]
	cbz	x8, LBB0_23
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, #0
	mov	x20, #0
LBB0_19:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x25, lsl #3]
	cbz	x0, LBB0_22
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=2
	bl	_dib9000_get_status
	ldr	w8, [x24]
	cmp	w8, w0
	b.gt	LBB0_25
; %bb.21:                               ;   in Loop: Header=BB0_19 Depth=2
	cinc	x20, x20, eq
	add	x25, x25, #1
	ldr	x8, [x23]
	cmp	x25, x8
	b.lo	LBB0_19
LBB0_22:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x8, #0
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x20, #0
LBB0_24:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	x25, #0
	mov	w9, #1
	b	LBB0_26
LBB0_25:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w9, #0
	mov	w8, #2
LBB0_26:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	x20, #0
	cset	w10, eq
	tst	w9, w10
	csinc	x8, x8, xzr, eq
	cbz	x8, LBB0_12
; %bb.27:
	cmp	x8, #1
	b.ne	LBB0_31
; %bb.28:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	bl	_mutex_unlock
	mov	w8, #-1
	b	LBB0_64
LBB0_29:
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	b	LBB0_66
LBB0_30:
Lloh24:
	adrp	x0, l_.str.1@PAGE
Lloh25:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	b	LBB0_66
LBB0_31:
	str	x25, [sp]
Lloh26:
	adrp	x0, l_.str.4@PAGE
Lloh27:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dprintk
	mov	w8, #1
	str	w8, [x22, #4]
	ldr	x8, [x22, #16]
	ldr	x0, [x8]
	mov	x1, x0
	bl	_dib9000_get_frontend
	str	wzr, [x22, #4]
Lloh28:
	adrp	x8, _CHANNEL_STATUS_PARAMETERS_SET@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CHANNEL_STATUS_PARAMETERS_SET@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x23]
	cbz	x8, LBB0_37
; %bb.32:
	mov	x20, #0
Lloh31:
	adrp	x26, _CT_DEMOD_START@GOTPAGE
Lloh32:
	ldr	x26, [x26, _CT_DEMOD_START@GOTPAGEOFF]
	b	LBB0_34
LBB0_33:                                ;   in Loop: Header=BB0_34 Depth=1
	add	x20, x20, #1
	cmp	x20, x8
	b.hs	LBB0_37
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22, #16]
	ldr	x0, [x9, x20, lsl #3]
	cbz	x0, LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_34 Depth=1
	cmp	x25, x20
	b.eq	LBB0_33
; %bb.36:                               ;   in Loop: Header=BB0_34 Depth=1
	add	x1, sp, #8
	bl	_dib9000_set_channel_status
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x20, lsl #3]
	ldr	w1, [x26]
	bl	_dib9000_set_tune_state
	ldr	x8, [x23]
	b	LBB0_33
LBB0_37:
	mov	w20, #26215
	movk	w20, #26214, lsl #16
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_39 Depth=1
	cbz	x26, LBB0_52
LBB0_39:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_42 Depth 2
                                        ;     Child Loop BB0_49 Depth 2
	cbz	x8, LBB0_52
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x27, #0
	ldr	w8, [x21]
	mov	x26, x8
	b	LBB0_42
LBB0_41:                                ;   in Loop: Header=BB0_42 Depth=2
	add	x27, x27, #1
	ldr	x9, [x23]
	cmp	x27, x9
	b.hs	LBB0_45
LBB0_42:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22, #16]
	ldr	x0, [x9, x27, lsl #3]
	cbz	x0, LBB0_45
; %bb.43:                               ;   in Loop: Header=BB0_42 Depth=2
	cmp	x25, x27
	b.eq	LBB0_41
; %bb.44:                               ;   in Loop: Header=BB0_42 Depth=2
	bl	_dib9000_fw_tune
	ldr	w8, [x21]
	cmp	w0, w26
	ccmp	w0, w8, #4, gt
	csel	w9, w0, w26, ne
	cmp	w26, w8
	csel	w8, w26, w8, eq
	csel	w26, w0, w9, eq
	b	LBB0_41
LBB0_45:                                ;   in Loop: Header=BB0_39 Depth=1
	cmp	w26, w8
	b.eq	LBB0_52
; %bb.46:                               ;   in Loop: Header=BB0_39 Depth=1
	smull	x8, w26, w20
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w0, w8, w9
	bl	_msleep
	ldr	x8, [x23]
	cbz	x8, LBB0_52
; %bb.47:                               ;   in Loop: Header=BB0_39 Depth=1
	mov	x27, #0
	mov	x26, #0
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=2
	add	x27, x27, #1
	cmp	x27, x8
	b.hs	LBB0_38
LBB0_49:                                ;   Parent Loop BB0_39 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22, #16]
	ldr	x0, [x9, x27, lsl #3]
	cbz	x0, LBB0_38
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=2
	cmp	x25, x27
	b.eq	LBB0_48
; %bb.51:                               ;   in Loop: Header=BB0_49 Depth=2
	bl	_dib9000_get_status
	ldr	w8, [x24]
	cmp	w8, w0
	cinc	x26, x26, eq
	ldr	x8, [x23]
	b	LBB0_48
LBB0_52:
	ldr	x8, [x22, #16]
	ldr	x0, [x8]
	ldr	w1, [x22, #28]
	bl	_dib9000_fw_set_output_mode
	ldr	x8, [x23]
	mov	w20, #1
	cmp	x8, #2
	b.lo	LBB0_56
; %bb.53:
Lloh33:
	adrp	x21, _OUTMODE_DIVERSITY@GOTPAGE
Lloh34:
	ldr	x21, [x21, _OUTMODE_DIVERSITY@GOTPAGEOFF]
LBB0_54:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #16]
	ldr	x0, [x8, x20, lsl #3]
	cbz	x0, LBB0_56
; %bb.55:                               ;   in Loop: Header=BB0_54 Depth=1
	ldr	w1, [x21]
	bl	_dib9000_fw_set_output_mode
	add	x20, x20, #1
	ldr	x8, [x23]
	cmp	x20, x8
	b.lo	LBB0_54
LBB0_56:
	ldr	x8, [x22, #16]
	add	x8, x8, x20, lsl #3
	ldur	x0, [x8, #-8]
	mov	w1, #0
	bl	_dib9000_fw_set_diversity_in
	mov	x0, x19
	bl	_mutex_unlock
	ldr	w8, [x22]
	tbnz	w8, #31, LBB0_63
; %bb.57:
	mov	x19, #0
	mov	w9, #-2
	str	w9, [x22]
	mov	w9, #24
	orr	x10, xzr, #0x18
	madd	x20, x8, x9, x10
Lloh35:
	adrp	x21, _DIB9000_PID_FILTER_CTRL@GOTPAGE
Lloh36:
	ldr	x21, [x21, _DIB9000_PID_FILTER_CTRL@GOTPAGEOFF]
Lloh37:
	adrp	x23, _DIB9000_PID_FILTER@GOTPAGE
Lloh38:
	ldr	x23, [x23, _DIB9000_PID_FILTER@GOTPAGEOFF]
	b	LBB0_60
LBB0_58:                                ;   in Loop: Header=BB0_60 Depth=1
	ldr	x9, [x22, #16]
	ldr	x0, [x9]
	add	x8, x8, x19
	ldr	w1, [x8, #8]
	bl	_dib9000_fw_pid_filter_ctrl
LBB0_59:                                ;   in Loop: Header=BB0_60 Depth=1
	add	x19, x19, #24
	cmp	x20, x19
	b.eq	LBB0_63
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x8, x19]
	ldr	x10, [x21]
	cmp	x9, x10
	b.eq	LBB0_58
; %bb.61:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	x10, [x23]
	cmp	x9, x10
	b.ne	LBB0_59
; %bb.62:                               ;   in Loop: Header=BB0_60 Depth=1
	ldr	x9, [x22, #16]
	ldr	x0, [x9]
	add	x8, x8, x19
	ldp	w2, w1, [x8, #12]
	ldr	w3, [x8, #8]
	bl	_dib9000_fw_pid_filter
	b	LBB0_59
LBB0_63:
	mov	w8, #-2
LBB0_64:
	str	w8, [x22]
	b	LBB0_66
LBB0_65:
Lloh39:
	adrp	x0, l_.str.2@PAGE
Lloh40:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dprintk
LBB0_66:
	mov	w0, #0
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_67:
	ldr	x11, [x9, #32]
Lloh41:
	adrp	x10, _QAM_AUTO@GOTPAGE
Lloh42:
	ldr	x10, [x10, _QAM_AUTO@GOTPAGEOFF]
Lloh43:
	ldr	x12, [x10]
Lloh44:
	adrp	x10, _CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPAGE
Lloh45:
	ldr	x10, [x10, _CHANNEL_STATUS_PARAMETERS_UNKNOWN@GOTPAGEOFF]
	cmp	x11, x12
	b.eq	LBB0_6
; %bb.68:
Lloh46:
	adrp	x11, _FEC_AUTO@GOTPAGE
Lloh47:
	ldr	x11, [x11, _FEC_AUTO@GOTPAGEOFF]
	ldr	x9, [x9, #40]
Lloh48:
	ldr	x11, [x11]
Lloh49:
	adrp	x12, _CHANNEL_STATUS_PARAMETERS_SET@GOTPAGE
Lloh50:
	ldr	x12, [x12, _CHANNEL_STATUS_PARAMETERS_SET@GOTPAGEOFF]
	cmp	x9, x11
	csel	x10, x10, x12, eq
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"dib9000: must specify frequency\n"

l_.str.1:                               ; @.str.1
	.asciz	"dib9000: must specify bandwidth\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not get the lock\n"

	.comm	_SYS_DVBT,8,3                   ; @SYS_DVBT
	.comm	_TRANSMISSION_MODE_AUTO,8,3     ; @TRANSMISSION_MODE_AUTO
	.comm	_GUARD_INTERVAL_AUTO,8,3        ; @GUARD_INTERVAL_AUTO
	.comm	_QAM_AUTO,8,3                   ; @QAM_AUTO
	.comm	_FEC_AUTO,8,3                   ; @FEC_AUTO
	.comm	_CHANNEL_STATUS_PARAMETERS_UNKNOWN,8,3 ; @CHANNEL_STATUS_PARAMETERS_UNKNOWN
	.comm	_CHANNEL_STATUS_PARAMETERS_SET,8,3 ; @CHANNEL_STATUS_PARAMETERS_SET
	.comm	_MAX_NUMBER_OF_FRONTENDS,8,3    ; @MAX_NUMBER_OF_FRONTENDS
	.comm	_OUTMODE_HIGH_Z,4,2             ; @OUTMODE_HIGH_Z
	.comm	_CT_DEMOD_START,4,2             ; @CT_DEMOD_START
	.comm	_FE_CALLBACK_TIME_NEVER,4,2     ; @FE_CALLBACK_TIME_NEVER
	.comm	_FE_STATUS_TUNE_PENDING,4,2     ; @FE_STATUS_TUNE_PENDING
l_.str.3:                               ; @.str.3
	.asciz	"tune failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"tune success on frontend%i\n"

	.comm	_OUTMODE_DIVERSITY,4,2          ; @OUTMODE_DIVERSITY
	.comm	_DIB9000_PID_FILTER_CTRL,8,3    ; @DIB9000_PID_FILTER_CTRL
	.comm	_DIB9000_PID_FILTER,8,3         ; @DIB9000_PID_FILTER
	.no_dead_strip	_dib9000_set_frontend
.subsections_via_symbols
