	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dib0090_fw_identify
_dib0090_fw_identify:                   ## @dib0090_fw_identify
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	movq	%r15, %rdi
	movl	$26, %esi
	callq	_dib0090_fw_read_reg
	movl	%eax, %ebx
	movq	$0, (%r15)
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_dprintk
	movq	_KROSUS_PLL_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%ebx, %eax
	movzbl	%al, %ecx
	movl	%ecx, 8(%r15)
	movl	%eax, %ecx
	shrl	$8, %ecx
	andl	$15, %ecx
	movl	%ecx, 12(%r15)
	movq	_KROSUS@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.1:
	movl	%eax, %ecx
	andl	$3, %ecx
	movq	_SOC@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	jne	LBB0_9
## %bb.2:
	movl	$1, 4(%r15)
	addb	$-128, %al
	cmpb	$3, %al
	ja	LBB0_9
## %bb.3:
	movzbl	%al, %eax
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_5
LBB0_9:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_5
LBB0_7:
	leaq	L_.str.3(%rip), %rdi
LBB0_5:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_dprintk
	movl	$1, (%r15)
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_6
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"FE: Tuner identification (Version = 0x%04x)\n"

	.comm	_KROSUS_PLL_LOCKED,4,2          ## @KROSUS_PLL_LOCKED
	.comm	_KROSUS,4,2                     ## @KROSUS
	.comm	_SOC,4,2                        ## @SOC
L_.str.1:                               ## @.str.1
	.asciz	"SOC 8090 P1-G11R1 Has been detected\n"

L_.str.2:                               ## @.str.2
	.asciz	"SOC 8090 P1-G21R1 Has been detected\n"

L_.str.3:                               ## @.str.3
	.asciz	"SOC 7090 P1-G11R1 Has been detected\n"

L_.str.4:                               ## @.str.4
	.asciz	"SOC 7090 P1-G21R1 Has been detected\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_dib0090_fw_identify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dib0090_fw_identify
_dib0090_fw_identify:                   ; @dib0090_fw_identify
	.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
	ldr	x19, [x0]
	mov	x0, x19
	mov	w1, #26
	bl	_dib0090_fw_read_reg
	mov	x20, x0
	str	xzr, [x19]
	str	x20, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
Lloh2:
	adrp	x8, _KROSUS_PLL_LOCKED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _KROSUS_PLL_LOCKED@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w8, w20, w8
	and	w9, w8, #0xff
	ubfx	w10, w8, #8, #4
	stp	w9, w10, [x19, #8]
Lloh5:
	adrp	x9, _KROSUS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _KROSUS@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w10, w9
	b.ne	LBB0_5
; %bb.1:
	and	w9, w8, #0x3
Lloh8:
	adrp	x10, _SOC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _SOC@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	cmp	w9, w10
	b.ne	LBB0_5
; %bb.2:
	mov	w9, #1
	str	w9, [x19, #4]
	and	w8, w8, #0xff
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_5
; %bb.3:
Lloh11:
	adrp	x9, lJTI0_0@PAGE
Lloh12:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_5:
Lloh15:
	adrp	x8, _EIO@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_6:
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh20:
	adrp	x0, l_.str.4@PAGE
Lloh21:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh22:
	adrp	x0, l_.str.3@PAGE
Lloh23:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	bl	_dprintk
	mov	w0, #0
	mov	w8, #1
	str	w8, [x19]
LBB0_10:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"FE: Tuner identification (Version = 0x%04x)\n"

	.comm	_KROSUS_PLL_LOCKED,4,2          ; @KROSUS_PLL_LOCKED
	.comm	_KROSUS,4,2                     ; @KROSUS
	.comm	_SOC,4,2                        ; @SOC
l_.str.1:                               ; @.str.1
	.asciz	"SOC 8090 P1-G11R1 Has been detected\n"

l_.str.2:                               ; @.str.2
	.asciz	"SOC 8090 P1-G21R1 Has been detected\n"

l_.str.3:                               ; @.str.3
	.asciz	"SOC 7090 P1-G11R1 Has been detected\n"

l_.str.4:                               ; @.str.4
	.asciz	"SOC 7090 P1-G21R1 Has been detected\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_dib0090_fw_identify
.subsections_via_symbols
