	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dm04_lme2510_frontend_attach
_dm04_lme2510_frontend_attach:          ## @dm04_lme2510_frontend_attach
	.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, %r12
	callq	_adap_to_d
	movq	%rax, %r14
	movq	24(%rax), %rbx
	movl	$1, (%rbx)
	movq	16(%rax), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	xorl	%r13d, %r13d
	cmpl	$4384, %eax                     ## imm = 0x1120
	je	LBB0_3
## %bb.1:
	cmpl	$8944, %eax                     ## imm = 0x22F0
	je	LBB0_11
## %bb.2:
	cmpl	$4386, %eax                     ## imm = 0x1122
	jne	LBB0_13
LBB0_3:
	movl	$4, 4(%rbx)
	movq	_tda10086_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%r14), %r15
	movq	_tda10086_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_dvb_attach
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.4:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 8(%rbx)
	movl	$96, 16(%rbx)
	movq	_TUNER_LG@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movl	$4, 4(%rbx)
	movq	_stv0299_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_sharp_z0194_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_dvb_attach
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	movabsq	$21474836484, %rax              ## imm = 0x500000004
	movq	%rax, 8(%rbx)
	movl	$96, 16(%rbx)
	movq	_TUNER_S0194@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_9:
	movl	$5, 4(%rbx)
	movq	_stv0288_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_lme_config@GOTPCREL(%rip), %rsi
	movq	%r15, %rdx
	callq	_dvb_attach
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	callq	_info
	movabsq	$21474836484, %rax              ## imm = 0x500000004
	movq	%rax, 8(%rbx)
	movl	$96, 16(%rbx)
	movq	_TUNER_S7395@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	cmpq	%rax, 24(%rbx)
	je	LBB0_13
## %bb.6:
	movq	%rax, 24(%rbx)
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lme_firmware_switch
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%r13d, %r13d
	subl	(%rcx), %r13d
	xorl	%ecx, %ecx
	testl	%eax, %eax
	cmovnel	%ecx, %r13d
	jmp	LBB0_13
LBB0_11:
	movl	$5, 4(%rbx)
	movq	_m88rs2000_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rdx
	addq	$8, %rdx
	movq	_m88rs2000_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	leaq	L_.str.3(%rip), %rdi
	callq	_info
	movabsq	$21474836485, %rax              ## imm = 0x500000005
	movq	%rax, 8(%rbx)
	movl	$96, 16(%rbx)
	movq	_TUNER_RS2000@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 56(%rbx)
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 52(%rbx)
LBB0_13:
	movq	(%r12), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.16:
	testl	%r13d, %r13d
	je	LBB0_18
## %bb.17:
	callq	_dvb_frontend_detach
	movq	(%r12), %rax
	movq	$0, (%rax)
	movq	$0, (%r14)
	jmp	LBB0_15
LBB0_14:
	leaq	L_.str.4(%rip), %rdi
	callq	_info
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movl	20(%rdi), %eax
	movl	%eax, 48(%rbx)
	movups	4(%rdi), %xmm0
	movups	%xmm0, 32(%rbx)
	movq	_dm04_read_status@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rdi)
	movq	_dm04_read_signal_strength@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rdi)
	movq	_dm04_read_snr@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rdi)
	movq	_dm04_read_ber@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%rdi)
	movq	_dm04_read_ucblocks@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rdi)
	movq	_dm04_lme2510_set_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	%r12, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lme_name                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_tda10086_attach,4,2            ## @tda10086_attach
	.comm	_tda10086_config,4,2            ## @tda10086_config
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TUN Found Frontend TDA10086"

	.comm	_TUNER_LG,8,3                   ## @TUNER_LG
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_stv0299_attach,4,2             ## @stv0299_attach
	.comm	_sharp_z0194_config,4,2         ## @sharp_z0194_config
L_.str.1:                               ## @.str.1
	.asciz	"FE Found Stv0299"

	.comm	_TUNER_S0194,8,3                ## @TUNER_S0194
	.comm	_stv0288_attach,4,2             ## @stv0288_attach
	.comm	_lme_config,4,2                 ## @lme_config
L_.str.2:                               ## @.str.2
	.asciz	"FE Found Stv0288"

	.comm	_TUNER_S7395,8,3                ## @TUNER_S7395
	.comm	_m88rs2000_attach,4,2           ## @m88rs2000_attach
	.comm	_m88rs2000_config,4,2           ## @m88rs2000_config
L_.str.3:                               ## @.str.3
	.asciz	"FE Found M88RS2000"

	.comm	_TUNER_RS2000,8,3               ## @TUNER_RS2000
L_.str.4:                               ## @.str.4
	.asciz	"DM04/QQBOX Not Powered up or not Supported"

	.comm	_dm04_read_status,4,2           ## @dm04_read_status
	.comm	_dm04_read_signal_strength,4,2  ## @dm04_read_signal_strength
	.comm	_dm04_read_snr,4,2              ## @dm04_read_snr
	.comm	_dm04_read_ber,4,2              ## @dm04_read_ber
	.comm	_dm04_read_ucblocks,4,2         ## @dm04_read_ucblocks
	.comm	_dm04_lme2510_set_voltage,4,2   ## @dm04_lme2510_set_voltage
	.no_dead_strip	_dm04_lme2510_frontend_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function dm04_lme2510_frontend_attach
lCPI0_0:
	.long	4                               ; 0x4
	.long	5                               ; 0x5
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dm04_lme2510_frontend_attach:          ; @dm04_lme2510_frontend_attach
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_adap_to_d
	mov	x20, x0
	mov	w8, #1
	ldp	x9, x22, [x0, #16]
	str	w8, [x22]
	ldr	w0, [x9]
	bl	_le16_to_cpu
	mov	w8, #4384
	cmp	w0, w8
	b.eq	LBB0_3
; %bb.1:
	mov	w8, #8944
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.2:
	mov	w8, #4386
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_3:
	mov	w23, #4
	str	w23, [x22, #4]
Lloh0:
	adrp	x8, _tda10086_attach@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tda10086_attach@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x21, x20, #8
Lloh3:
	adrp	x1, _tda10086_config@GOTPAGE
Lloh4:
	ldr	x1, [x1, _tda10086_config@GOTPAGEOFF]
	mov	x2, x21
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
	movi.2s	v0, #4
	str	d0, [x22, #8]
	mov	w8, #96
	str	w8, [x22, #16]
Lloh7:
	adrp	x8, _TUNER_LG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TUNER_LG@GOTPAGEOFF]
	b	LBB0_9
LBB0_5:
	str	w23, [x22, #4]
Lloh9:
	adrp	x8, _stv0299_attach@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stv0299_attach@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, _sharp_z0194_config@GOTPAGE
Lloh13:
	ldr	x1, [x1, _sharp_z0194_config@GOTPAGEOFF]
	mov	x2, x21
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_7
; %bb.6:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
Lloh16:
	adrp	x8, lCPI0_0@PAGE
Lloh17:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22, #8]
	mov	w8, #96
	str	w8, [x22, #16]
Lloh18:
	adrp	x8, _TUNER_S0194@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TUNER_S0194@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	w8, #5
	str	w8, [x22, #4]
Lloh20:
	adrp	x8, _stv0288_attach@GOTPAGE
Lloh21:
	ldr	x8, [x8, _stv0288_attach@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
Lloh23:
	adrp	x1, _lme_config@GOTPAGE
Lloh24:
	ldr	x1, [x1, _lme_config@GOTPAGEOFF]
	mov	x2, x21
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_12
; %bb.8:
Lloh25:
	adrp	x0, l_.str.2@PAGE
Lloh26:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
Lloh27:
	adrp	x8, lCPI0_0@PAGE
Lloh28:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x22, #8]
	mov	w8, #96
	str	w8, [x22, #16]
Lloh29:
	adrp	x8, _TUNER_S7395@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TUNER_S7395@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x22, #56]
	ldr	x9, [x22, #24]
	cmp	x9, x8
	b.eq	LBB0_11
; %bb.10:
	str	x8, [x22, #24]
	mov	x0, x20
	mov	w1, #1
	bl	_lme_firmware_switch
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	cmp	w0, #0
	csneg	w8, wzr, w8, ne
	b	LBB0_14
LBB0_11:
	mov	w8, #0
	b	LBB0_14
LBB0_12:
	mov	w8, #5
	str	w8, [x22, #4]
Lloh34:
	adrp	x8, _m88rs2000_attach@GOTPAGE
Lloh35:
	ldr	x8, [x8, _m88rs2000_attach@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
	add	x2, x20, #8
Lloh37:
	adrp	x1, _m88rs2000_config@GOTPAGE
Lloh38:
	ldr	x1, [x1, _m88rs2000_config@GOTPAGEOFF]
	bl	_dvb_attach
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_14
; %bb.13:
Lloh39:
	adrp	x0, l_.str.3@PAGE
Lloh40:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_info
	mov	w8, #0
	movi.2s	v0, #5
	str	d0, [x22, #8]
	mov	w9, #96
	str	w9, [x22, #16]
Lloh41:
	adrp	x9, _TUNER_RS2000@GOTPAGE
Lloh42:
	ldr	x9, [x9, _TUNER_RS2000@GOTPAGEOFF]
Lloh43:
	ldr	x9, [x9]
	str	x9, [x22, #56]
	ldr	x9, [x19]
	ldr	x9, [x9]
	ldr	w9, [x9]
	str	w9, [x22, #52]
LBB0_14:
	ldr	x9, [x19]
	ldr	x0, [x9]
	cbz	x0, LBB0_17
; %bb.15:
	cbz	w8, LBB0_19
; %bb.16:
	bl	_dvb_frontend_detach
	ldr	x8, [x19]
	str	xzr, [x8]
	str	xzr, [x20]
	b	LBB0_18
LBB0_17:
Lloh44:
	adrp	x0, l_.str.4@PAGE
Lloh45:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_info
LBB0_18:
Lloh46:
	adrp	x8, _ENODEV@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	neg	w0, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_19:
	ldr	w8, [x0, #20]
	str	w8, [x22, #48]
	ldur	q0, [x0, #4]
Lloh49:
	adrp	x8, _dm04_read_status@GOTPAGE
Lloh50:
	ldr	x8, [x8, _dm04_read_status@GOTPAGEOFF]
	str	q0, [x22, #32]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _dm04_read_signal_strength@GOTPAGE
Lloh53:
	ldr	x9, [x9, _dm04_read_signal_strength@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #16]
Lloh55:
	adrp	x8, _dm04_read_snr@GOTPAGE
Lloh56:
	ldr	x8, [x8, _dm04_read_snr@GOTPAGEOFF]
Lloh57:
	ldr	w8, [x8]
Lloh58:
	adrp	x9, _dm04_read_ber@GOTPAGE
Lloh59:
	ldr	x9, [x9, _dm04_read_ber@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	stp	w9, w8, [x0, #8]
Lloh61:
	adrp	x8, _dm04_read_ucblocks@GOTPAGE
Lloh62:
	ldr	x8, [x8, _dm04_read_ucblocks@GOTPAGEOFF]
Lloh63:
	ldr	w8, [x8]
Lloh64:
	adrp	x9, _dm04_lme2510_set_voltage@GOTPAGE
Lloh65:
	ldr	x9, [x9, _dm04_lme2510_set_voltage@GOTPAGEOFF]
Lloh66:
	ldr	w9, [x9]
	stp	w9, w8, [x0]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_lme_name
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdr	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdr	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.cfi_endproc
                                        ; -- End function
	.comm	_tda10086_attach,4,2            ; @tda10086_attach
	.comm	_tda10086_config,4,2            ; @tda10086_config
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TUN Found Frontend TDA10086"

	.comm	_TUNER_LG,8,3                   ; @TUNER_LG
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_stv0299_attach,4,2             ; @stv0299_attach
	.comm	_sharp_z0194_config,4,2         ; @sharp_z0194_config
l_.str.1:                               ; @.str.1
	.asciz	"FE Found Stv0299"

	.comm	_TUNER_S0194,8,3                ; @TUNER_S0194
	.comm	_stv0288_attach,4,2             ; @stv0288_attach
	.comm	_lme_config,4,2                 ; @lme_config
l_.str.2:                               ; @.str.2
	.asciz	"FE Found Stv0288"

	.comm	_TUNER_S7395,8,3                ; @TUNER_S7395
	.comm	_m88rs2000_attach,4,2           ; @m88rs2000_attach
	.comm	_m88rs2000_config,4,2           ; @m88rs2000_config
l_.str.3:                               ; @.str.3
	.asciz	"FE Found M88RS2000"

	.comm	_TUNER_RS2000,8,3               ; @TUNER_RS2000
l_.str.4:                               ; @.str.4
	.asciz	"DM04/QQBOX Not Powered up or not Supported"

	.comm	_dm04_read_status,4,2           ; @dm04_read_status
	.comm	_dm04_read_signal_strength,4,2  ; @dm04_read_signal_strength
	.comm	_dm04_read_snr,4,2              ; @dm04_read_snr
	.comm	_dm04_read_ber,4,2              ; @dm04_read_ber
	.comm	_dm04_read_ucblocks,4,2         ; @dm04_read_ucblocks
	.comm	_dm04_lme2510_set_voltage,4,2   ; @dm04_lme2510_set_voltage
	.no_dead_strip	_dm04_lme2510_frontend_attach
.subsections_via_symbols
