	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function dvbsky_s960c_attach
LCPI0_0:
	.long	27000000                        ## 0x19bfcc0
	.long	33                              ## 0x21
	.long	10000                           ## 0x2710
	.long	1                               ## 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_dvbsky_s960c_attach:                   ## @dvbsky_s960c_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	%r12
	pushq	%rbx
	subq	$336, %rsp                      ## imm = 0x150
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_adap_to_priv
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_adap_to_d
	movq	%rax, %r15
	xorps	%xmm0, %xmm0
	movups	%xmm0, -72(%rbp)
	movups	%xmm0, -88(%rbp)
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -120(%rbp)
	movq	$0, -56(%rbp)
	movaps	%xmm0, -288(%rbp)
	movaps	%xmm0, -304(%rbp)
	movaps	%xmm0, -320(%rbp)
	movaps	%xmm0, -336(%rbp)
	movaps	%xmm0, -352(%rbp)
	movaps	%xmm0, -368(%rbp)
	movq	$0, -272(%rbp)
	movaps	%xmm0, -176(%rbp)
	movaps	%xmm0, -192(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movq	$0, -160(%rbp)
	movq	$0, -48(%rbp)
	movq	_M88DS3103_TS_CI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [27000000,33,10000,1]
	movaps	%xmm0, -144(%rbp)
	movabsq	$4294967449, %rax               ## imm = 0x100000099
	movq	%rax, -128(%rbp)
	movq	$0, -64(%rbp)
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-144(%rbp), %r8
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$104, %ecx
	callq	_dvb_module_probe
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rdi
	callq	*-72(%rbp)
	movq	(%r12), %rcx
	movq	%rax, (%rcx)
	movq	8(%r14), %rdi
	callq	*-80(%rbp)
	movq	(%r12), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -312(%rbp)
	movq	_m88ds3103_get_agc_pwm@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -320(%rbp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-368(%rbp), %r8
	xorl	%esi, %esi
	movq	%rax, %rdx
	movl	$96, %ecx
	callq	_dvb_module_probe
	movq	%rax, 16(%r14)
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	8(%r12), %rax
	movq	%rax, -216(%rbp)
	movq	%r15, -224(%rbp)
	movq	_dvbsky_ci_ctrl@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -232(%rbp)
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-256(%rbp), %r8
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	$64, %ecx
	callq	_dvb_module_probe
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	movl	%edx, 12(%rax)
	movl	%ecx, 4(%r14)
	movq	_dvbsky_usb_read_status@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rax)
	movl	(%rax), %ecx
	movl	%ecx, (%r14)
	movq	_dvbsky_usb_ci_set_voltage@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	jmp	LBB0_8
LBB0_4:
	movq	8(%r14), %rdi
	callq	_dvb_module_release
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	16(%r14), %rdi
	callq	_dvb_module_release
	movq	8(%r14), %rdi
	callq	_dvb_module_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_7:
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$336, %rsp                      ## imm = 0x150
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M88DS3103_TS_CI,4,2            ## @M88DS3103_TS_CI
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"m88ds3103"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_m88ds3103_get_agc_pwm,4,2      ## @m88ds3103_get_agc_pwm
L_.str.1:                               ## @.str.1
	.asciz	"ts2020"

	.comm	_dvbsky_ci_ctrl,4,2             ## @dvbsky_ci_ctrl
L_.str.2:                               ## @.str.2
	.asciz	"sp2"

	.comm	_dvbsky_usb_read_status,4,2     ## @dvbsky_usb_read_status
	.comm	_dvbsky_usb_ci_set_voltage,4,2  ## @dvbsky_usb_ci_set_voltage
	.no_dead_strip	_dvbsky_s960c_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 dvbsky_s960c_attach
lCPI0_0:
	.long	27000000                        ; 0x19bfcc0
	.long	33                              ; 0x21
lCPI0_1:
	.long	10000                           ; 0x2710
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_dvbsky_s960c_attach:                   ; @dvbsky_s960c_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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 w27, -56
	.cfi_offset w28, -64
	mov	x20, x0
	sub	x22, x29, #152
	bl	_adap_to_priv
	mov	x19, x0
	mov	x0, x20
	bl	_adap_to_d
	mov	x21, x0
	movi.2d	v0, #0000000000000000
	stur	q0, [x22, #72]
	stur	xzr, [x29, #-64]
	stur	q0, [x22, #56]
	stur	q0, [x22, #40]
	stur	q0, [x22, #24]
	str	xzr, [sp, #208]
	stp	q0, q0, [sp, #176]
	stp	q0, q0, [sp, #144]
	stp	q0, q0, [sp, #112]
	str	xzr, [sp, #96]
	stp	q0, q0, [sp, #64]
	stp	q0, q0, [sp, #32]
	stp	q0, q0, [sp]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
Lloh2:
	adrp	x8, _M88DS3103_TS_CI@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M88DS3103_TS_CI@GOTPAGEOFF]
	stur	xzr, [x29, #-56]
Lloh4:
	ldr	w8, [x8]
	stur	w8, [x29, #-64]
Lloh5:
	adrp	x8, lCPI0_1@PAGE
Lloh6:
	ldr	d1, [x8, lCPI0_1@PAGEOFF]
	stp	d0, d1, [x29, #-152]
	mov	w8, #153
	stur	xzr, [x29, #-72]
	mov	w9, #1
	stp	w8, w9, [x29, #-136]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	sub	x4, x29, #152
	mov	x1, #0
	mov	x2, x21
	mov	w3, #104
	bl	_dvb_module_probe
	str	x0, [x19, #8]
	cbz	x0, LBB0_6
; %bb.1:
	ldur	x8, [x29, #-80]
	blr	x8
	ldr	x8, [x20]
	str	x0, [x8]
	ldur	x8, [x29, #-88]
	ldr	x0, [x19, #8]
	blr	x8
	mov	x2, x0
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x8, [sp, #168]
Lloh9:
	adrp	x8, _m88ds3103_get_agc_pwm@GOTPAGE
Lloh10:
	ldr	x8, [x8, _m88ds3103_get_agc_pwm@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	str	w8, [sp, #160]
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	add	x4, sp, #112
	mov	x1, #0
	mov	w3, #96
	bl	_dvb_module_probe
	str	x0, [x19, #16]
	cbz	x0, LBB0_5
; %bb.2:
	add	x8, x20, #8
	stp	x21, x8, [sp, #32]
Lloh14:
	adrp	x8, _dvbsky_ci_ctrl@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dvbsky_ci_ctrl@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x4, sp
	mov	x1, #0
	mov	x2, x21
	mov	w3, #64
	bl	_dvb_module_probe
	str	x0, [x19, #24]
	cbz	x0, LBB0_4
; %bb.3:
	mov	w0, #0
	ldr	x8, [x20]
	ldr	x8, [x8]
	ldr	w9, [x8, #8]
	str	w9, [x8, #12]
Lloh19:
	adrp	x9, _dvbsky_usb_read_status@GOTPAGE
Lloh20:
	ldr	x9, [x9, _dvbsky_usb_read_status@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	ldr	d0, [x8]
	str	w9, [x8, #4]
	str	d0, [x19]
Lloh22:
	adrp	x9, _dvbsky_usb_ci_set_voltage@GOTPAGE
Lloh23:
	ldr	x9, [x9, _dvbsky_usb_ci_set_voltage@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	str	w9, [x8]
	b	LBB0_7
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_dvb_module_release
LBB0_5:
	ldr	x0, [x19, #8]
	bl	_dvb_module_release
LBB0_6:
Lloh25:
	adrp	x8, _ENODEV@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #320]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_M88DS3103_TS_CI,4,2            ; @M88DS3103_TS_CI
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"m88ds3103"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_m88ds3103_get_agc_pwm,4,2      ; @m88ds3103_get_agc_pwm
l_.str.1:                               ; @.str.1
	.asciz	"ts2020"

	.comm	_dvbsky_ci_ctrl,4,2             ; @dvbsky_ci_ctrl
l_.str.2:                               ; @.str.2
	.asciz	"sp2"

	.comm	_dvbsky_usb_read_status,4,2     ; @dvbsky_usb_read_status
	.comm	_dvbsky_usb_ci_set_voltage,4,2  ; @dvbsky_usb_ci_set_voltage
	.no_dead_strip	_dvbsky_s960c_attach
.subsections_via_symbols
