	.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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rdx
	movq	8(%rdx), %rbx
	movabsq	$17179869185, %rax              ## imm = 0x400000001
	movq	%rax, (%rbx)
	movq	_tda10086_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$4, %rdx
	movq	_tda10086_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_info
	movabsq	$17179869188, %rax              ## imm = 0x400000004
	movq	%rax, 8(%rbx)
	movl	$192, 16(%rbx)
	movq	_TUNER_LG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_dvb_usb_lme2510_firmware@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpl	$1, (%rcx)
	jne	LBB0_6
## %bb.2:
	movl	$0, (%rcx)
	jmp	LBB0_3
LBB0_4:
	movl	$5, 4(%rbx)
	movq	_stv0288_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rdx
	addq	$4, %rdx
	movq	_lme_config@GOTPCREL(%rip), %rsi
	callq	_dvb_attach
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_info
	movabsq	$21474836484, %rax              ## imm = 0x500000004
	movq	%rax, 8(%rbx)
	movl	$192, 16(%rbx)
	movq	_TUNER_S7395@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_dvb_usb_lme2510_firmware@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	je	LBB0_3
LBB0_6:
	movq	_dvb_usb_lme2510_firmware@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	$1, %esi
	callq	_lme_firmware_switch
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	(%r14), %rdi
	callq	_kfree
	movq	$0, (%r14)
	jmp	LBB0_9
LBB0_3:
	movq	_dm04_lme2510_set_voltage@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%r14), %rcx
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_lme_name                       ## TAILCALL
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	_info
LBB0_9:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.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,4,2                   ## @TUNER_LG
	.comm	_dvb_usb_lme2510_firmware,4,2   ## @dvb_usb_lme2510_firmware
	.comm	_stv0288_attach,4,2             ## @stv0288_attach
	.comm	_lme_config,4,2                 ## @lme_config
L_.str.1:                               ## @.str.1
	.asciz	"FE Found Stv0288"

	.comm	_TUNER_S7395,4,2                ## @TUNER_S7395
L_.str.2:                               ## @.str.2
	.asciz	"DM04 Not Supported"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.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	1                               ; 0x1
	.long	4                               ; 0x4
lCPI0_1:
	.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	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x21, [x8, #8]
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	str	d0, [x21]
Lloh2:
	adrp	x9, _tda10086_attach@GOTPAGE
Lloh3:
	ldr	x9, [x9, _tda10086_attach@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x9]
	add	x2, x8, #4
Lloh5:
	adrp	x1, _tda10086_config@GOTPAGE
Lloh6:
	ldr	x1, [x1, _tda10086_config@GOTPAGEOFF]
	bl	_dvb_attach
	str	x0, [x19]
Lloh7:
	adrp	x20, _dvb_usb_lme2510_firmware@GOTPAGE
Lloh8:
	ldr	x20, [x20, _dvb_usb_lme2510_firmware@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_info
	movi.2s	v0, #4
	str	d0, [x21, #8]
Lloh11:
	adrp	x8, _TUNER_LG@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TUNER_LG@GOTPAGEOFF]
	mov	w9, #192
Lloh13:
	ldr	w8, [x8]
	stp	w9, w8, [x21, #16]
	ldr	w8, [x20]
	cmp	w8, #1
	b.ne	LBB0_6
; %bb.2:
	str	wzr, [x20]
	b	LBB0_9
LBB0_3:
	mov	w8, #5
	str	w8, [x21, #4]
Lloh14:
	adrp	x8, _stv0288_attach@GOTPAGE
Lloh15:
	ldr	x8, [x8, _stv0288_attach@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldr	x8, [x19, #8]
	add	x2, x8, #4
Lloh17:
	adrp	x1, _lme_config@GOTPAGE
Lloh18:
	ldr	x1, [x1, _lme_config@GOTPAGEOFF]
	bl	_dvb_attach
	str	x0, [x19]
	cbz	x0, LBB0_10
; %bb.4:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_info
Lloh21:
	adrp	x8, lCPI0_1@PAGE
Lloh22:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x21, #8]
	mov	w8, #192
Lloh23:
	adrp	x9, _TUNER_S7395@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TUNER_S7395@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	stp	w8, w9, [x21, #16]
	ldr	w8, [x20]
	cbz	w8, LBB0_9
; %bb.5:
	mov	w8, #0
	b	LBB0_7
LBB0_6:
	mov	w8, #1
LBB0_7:
	str	w8, [x20]
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	mov	w1, #1
	bl	_lme_firmware_switch
	cbz	w0, LBB0_9
; %bb.8:
	ldr	x0, [x19]
	bl	_kfree
	str	xzr, [x19]
	b	LBB0_11
LBB0_9:
Lloh26:
	adrp	x8, _dm04_lme2510_set_voltage@GOTPAGE
Lloh27:
	ldr	x8, [x8, _dm04_lme2510_set_voltage@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	ldr	x9, [x19]
	str	w8, [x9]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lme_name
LBB0_10:
Lloh29:
	adrp	x0, l_.str.2@PAGE
Lloh30:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_info
LBB0_11:
Lloh31:
	adrp	x8, _ENODEV@GOTPAGE
Lloh32:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdr	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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,4,2                   ; @TUNER_LG
	.comm	_dvb_usb_lme2510_firmware,4,2   ; @dvb_usb_lme2510_firmware
	.comm	_stv0288_attach,4,2             ; @stv0288_attach
	.comm	_lme_config,4,2                 ; @lme_config
l_.str.1:                               ; @.str.1
	.asciz	"FE Found Stv0288"

	.comm	_TUNER_S7395,4,2                ; @TUNER_S7395
l_.str.2:                               ; @.str.2
	.asciz	"DM04 Not Supported"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_dm04_lme2510_set_voltage,4,2   ; @dm04_lme2510_set_voltage
	.no_dead_strip	_dm04_lme2510_frontend_attach
.subsections_via_symbols
