	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm04_lme2510_tuner
_dm04_lme2510_tuner:                    ## @dm04_lme2510_tuner
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	8(%rcx), %rbx
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.2:
	movq	_tda826x_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	addq	$4, %rcx
	movl	$192, %edx
	movl	$1, %r8d
	xorl	%eax, %eax
	callq	_dvb_attach
	testl	%eax, %eax
	jne	LBB0_5
	jmp	LBB0_6
LBB0_3:
	movq	_ix2505v_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	addq	$4, %rcx
	movl	_lme_tuner@GOTPCREL(%rip), %edx
	xorl	%eax, %eax
	callq	_dvb_attach
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	movslq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	leaq	l_reltable.dm04_lme2510_tuner(%rip), %rcx
	movslq	(%rcx,%rax,4), %rsi
	addq	%rcx, %rsi
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_info
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lme2510_int_service            ## TAILCALL
LBB0_6:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_info
	movq	(%r14), %rax
	movl	(%rax), %edi
	callq	_lme_coldreset
	movq	_ENODEV@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"TDA8263"

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

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.dm04_lme2510_tuner
l_reltable.dm04_lme2510_tuner:
	.long	L_.str-l_reltable.dm04_lme2510_tuner
	.long	L_.str.1-l_reltable.dm04_lme2510_tuner
	.long	L_.str.2-l_reltable.dm04_lme2510_tuner

	.comm	_tda826x_attach,4,2             ## @tda826x_attach
	.comm	_ix2505v_attach,4,2             ## @ix2505v_attach
	.comm	_lme_tuner,4,2                  ## @lme_tuner
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"TUN Found %s tuner"

L_.str.4:                               ## @.str.4
	.asciz	"TUN No tuner found --- reseting device"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.no_dead_strip	_dm04_lme2510_tuner
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dm04_lme2510_tuner
_dm04_lme2510_tuner:                    ; @dm04_lme2510_tuner
	.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
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8, #8]
	ldr	w9, [x20]
	cmp	w9, #128
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #129
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x9, _tda826x_attach@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tda826x_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x9]
	ldr	w1, [x19, #8]
	add	x3, x8, #4
	mov	w8, #1
	str	x8, [sp]
	mov	w2, #192
	bl	_dvb_attach
	cbnz	w0, LBB0_4
	b	LBB0_6
LBB0_3:
Lloh3:
	adrp	x9, _ix2505v_attach@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ix2505v_attach@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x9]
	ldr	w1, [x19, #8]
	add	x3, x8, #4
Lloh6:
	adrp	x2, _lme_tuner@GOTPAGE
Lloh7:
	ldr	x2, [x2, _lme_tuner@GOTPAGEOFF]
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_dvb_attach
	cbz	w0, LBB0_6
LBB0_4:
	ldrsw	x8, [x20]
	cbz	w8, LBB0_6
; %bb.5:
Lloh8:
	adrp	x9, l___const.dm04_lme2510_tuner.tun_msg@PAGE
Lloh9:
	add	x9, x9, l___const.dm04_lme2510_tuner.tun_msg@PAGEOFF
	ldr	x8, [x9, x8, lsl #3]
	str	x8, [sp]
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_info
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_lme2510_int_service
LBB0_6:
Lloh12:
	adrp	x0, l_.str.4@PAGE
Lloh13:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_info
	ldr	x8, [x19]
	ldr	w0, [x8]
	bl	_lme_coldreset
Lloh14:
	adrp	x8, _ENODEV@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"TDA8263"

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

	.section	__DATA,__const
	.p2align	3                               ; @__const.dm04_lme2510_tuner.tun_msg
l___const.dm04_lme2510_tuner.tun_msg:
	.quad	l_.str
	.quad	l_.str.1
	.quad	l_.str.2

	.comm	_tda826x_attach,4,2             ; @tda826x_attach
	.comm	_ix2505v_attach,4,2             ; @ix2505v_attach
	.comm	_lme_tuner,4,2                  ; @lme_tuner
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"TUN Found %s tuner"

l_.str.4:                               ; @.str.4
	.asciz	"TUN No tuner found --- reseting device"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.no_dead_strip	_dm04_lme2510_tuner
.subsections_via_symbols
