	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function demod_attach_stv0910
_demod_attach_stv0910:                  ## @demod_attach_stv0910
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	movq	16(%rax), %r15
	movq	(%rax), %rcx
	movq	8(%rax), %r13
	movl	(%rdi), %r14d
	movq	(%rcx), %rdi
	movq	_stv0910_p@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	_stv0910_single@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movl	$1, -64(%rbp)
LBB0_2:
	andl	$1, %r14d
	testl	%esi, %esi
	je	LBB0_4
## %bb.3:
	movl	$2, -60(%rbp)
LBB0_4:
	testl	%edx, %edx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	$16, -56(%rbp)
	movl	(%rbx), %ecx
	andl	$1, %ecx
	jmp	LBB0_7
LBB0_5:
	movl	%r14d, %ecx
LBB0_7:
	movq	_stv0910_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r12d, %r12d
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%r13,%r14,8)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movl	$108, -52(%rbp)
	movq	_stv0910_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %ecx
	andl	$1, %ecx
	leaq	-64(%rbp), %rdx
	movq	%r15, %rsi
	xorl	%eax, %eax
	callq	_dvb_attach
	movq	%rax, (%r13,%r14,8)
	testq	%rax, %rax
	je	LBB0_9
LBB0_10:
	movq	%r15, %rdi
	movl	$13, %esi
	callq	_has_lnbh25
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movl	(%rbx), %eax
	addl	%eax, %eax
	andl	$2, %eax
	leal	(%rax,%rcx,8), %eax
	addl	$16, %eax
	movl	%eax, -48(%rbp)
	movq	_lnbh25_attach@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r13,%r14,8), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_dvb_attach
	testq	%rax, %rax
	jne	LBB0_13
## %bb.11:
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
	movq	(%r13,%r14,8), %rdi
	callq	_dvb_frontend_detach
	jmp	LBB0_12
LBB0_9:
	leaq	L_.str.1(%rip), %rsi
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_dev_err
LBB0_12:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_13:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stv0910_p,16,2                 ## @stv0910_p
	.comm	_lnbh25_cfg,4,2                 ## @lnbh25_cfg
	.comm	_stv0910_single,8,3             ## @stv0910_single
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Enabling stv0910 higher speed TS\n"

	.comm	_stv0910_attach,4,2             ## @stv0910_attach
L_.str.1:                               ## @.str.1
	.asciz	"No STV0910 found!\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_lnbh25_attach,4,2              ## @lnbh25_attach
L_.str.2:                               ## @.str.2
	.asciz	"No LNBH25 found!\n"

	.no_dead_strip	_demod_attach_stv0910
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function demod_attach_stv0910
_demod_attach_stv0910:                  ; @demod_attach_stv0910
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x0
	ldr	x9, [x0, #8]
	ldp	x22, x20, [x9, #8]
	ldr	w8, [x0]
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _stv0910_p@GOTPAGE
Lloh1:
	ldr	x10, [x10, _stv0910_p@GOTPAGEOFF]
	ldr	x19, [x9]
Lloh2:
	ldr	q0, [x10]
	str	q0, [sp, #32]
Lloh3:
	adrp	x9, _stv0910_single@GOTPAGE
Lloh4:
	ldr	x9, [x9, _stv0910_single@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cbz	x9, LBB0_2
; %bb.1:
	mov	w9, #1
	str	w9, [sp, #32]
LBB0_2:
	and	x23, x8, #0x1
	cbz	w1, LBB0_4
; %bb.3:
	mov	w8, #2
	str	w8, [sp, #36]
LBB0_4:
	cbz	w2, LBB0_6
; %bb.5:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	mov	w8, #16
	str	w8, [sp, #40]
	ldr	w8, [x21]
	and	w8, w8, #0x1
	b	LBB0_7
LBB0_6:
	mov	x8, x23
LBB0_7:
Lloh8:
	adrp	x25, _stv0910_attach@GOTPAGE
Lloh9:
	ldr	x25, [x25, _stv0910_attach@GOTPAGEOFF]
	ldr	w0, [x25]
	add	x24, sp, #32
	stp	x24, x8, [sp]
	mov	x1, x20
	bl	_dvb_attach
	str	x0, [x22, x23, lsl #3]
	cbnz	x0, LBB0_9
; %bb.8:
	mov	w8, #108
	str	w8, [sp, #44]
	ldr	w0, [x25]
	ldr	w8, [x21]
	and	w8, w8, #0x1
	stp	x24, x8, [sp]
	mov	x1, x20
	bl	_dvb_attach
	str	x0, [x22, x23, lsl #3]
	cbz	x0, LBB0_12
LBB0_9:
	mov	x0, x20
	mov	w1, #13
	bl	_has_lnbh25
	ldr	w8, [x21]
	cmp	x0, #0
	mov	w9, #24
	mov	w10, #16
	csel	w9, w10, w9, eq
	bfi	w9, w8, #1, #1
	str	w9, [sp, #24]
Lloh10:
	adrp	x8, _lnbh25_attach@GOTPAGE
Lloh11:
	ldr	x8, [x8, _lnbh25_attach@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldr	x1, [x22, x23, lsl #3]
	add	x8, sp, #24
	stp	x8, x20, [sp]
	bl	_dvb_attach
	cbz	x0, LBB0_11
; %bb.10:
	mov	w0, #0
	b	LBB0_14
LBB0_11:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	ldr	x0, [x22, x23, lsl #3]
	bl	_dvb_frontend_detach
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_13:
Lloh17:
	adrp	x8, _ENODEV@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_stv0910_p,16,2                 ; @stv0910_p
	.comm	_lnbh25_cfg,4,2                 ; @lnbh25_cfg
	.comm	_stv0910_single,8,3             ; @stv0910_single
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Enabling stv0910 higher speed TS\n"

	.comm	_stv0910_attach,4,2             ; @stv0910_attach
l_.str.1:                               ; @.str.1
	.asciz	"No STV0910 found!\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_lnbh25_attach,4,2              ; @lnbh25_attach
l_.str.2:                               ; @.str.2
	.asciz	"No LNBH25 found!\n"

	.no_dead_strip	_demod_attach_stv0910
.subsections_via_symbols
