	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dvbsky_mygica_t230c_attach
_dvbsky_mygica_t230c_attach:            ## @dvbsky_mygica_t230c_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	$80, %rsp
	.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
	movaps	%xmm0, -80(%rbp)
	movq	$0, -64(%rbp)
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	leaq	-40(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	(%r12), %rax
	movq	%rax, -72(%rbp)
	movq	_SI2168_TS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, -64(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_MYGICA_T230C2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_SI2168_TS_CLK_MANUAL@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movl	%ebx, -64(%rbp)
LBB0_2:
	movl	$1, -80(%rbp)
	leaq	8(%r15), %rdx
	leaq	L_.str(%rip), %rdi
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r8
	xorl	%esi, %esi
	movl	$100, %ecx
	callq	_dvb_module_probe
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movq	%rax, -104(%rbp)
	movq	(%r15), %rax
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	_USB_PID_MYGICA_T230@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movl	$1, -108(%rbp)
	movq	-40(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	leaq	-112(%rbp), %r8
	xorl	%esi, %esi
	jmp	LBB0_7
LBB0_3:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movl	$0, -108(%rbp)
	movq	-40(%rbp), %rdx
	leaq	L_.str.1(%rip), %rdi
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %r8
LBB0_7:
	movl	$96, %ecx
	callq	_dvb_module_probe
	movq	%rax, 8(%r14)
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:
	movq	(%r14), %rdi
	callq	_dvb_module_release
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SI2168_TS_PARALLEL,4,2         ## @SI2168_TS_PARALLEL
	.comm	_USB_PID_MYGICA_T230C2,8,3      ## @USB_PID_MYGICA_T230C2
	.comm	_SI2168_TS_CLK_MANUAL,4,2       ## @SI2168_TS_CLK_MANUAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"si2168"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_USB_PID_MYGICA_T230,8,3        ## @USB_PID_MYGICA_T230
L_.str.1:                               ## @.str.1
	.asciz	"si2157"

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

	.no_dead_strip	_dvbsky_mygica_t230c_attach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dvbsky_mygica_t230c_attach
_dvbsky_mygica_t230c_attach:            ; @dvbsky_mygica_t230c_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x20, x0
	bl	_adap_to_priv
	mov	x19, x0
	mov	x0, x20
	bl	_adap_to_d
	mov	x21, x0
	stp	xzr, xzr, [sp, #40]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp]
	sub	x8, x29, #40
	stp	xzr, x8, [sp, #56]
	ldr	x8, [x20]
	str	x8, [sp, #48]
Lloh0:
	adrp	x8, _SI2168_TS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SI2168_TS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	str	w22, [sp, #56]
	ldr	x8, [x0]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh3:
	adrp	x8, _USB_PID_MYGICA_T230C2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _USB_PID_MYGICA_T230C2@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _SI2168_TS_CLK_MANUAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SI2168_TS_CLK_MANUAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w22, w8
	str	w8, [sp, #56]
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #40]
	add	x2, x21, #8
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	add	x4, sp, #40
	mov	x1, #0
	mov	w3, #100
	bl	_dvb_module_probe
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.3:
	ldr	x8, [x20]
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x21]
	ldr	w0, [x8]
	bl	_le16_to_cpu
Lloh11:
	adrp	x8, _USB_PID_MYGICA_T230@GOTPAGE
Lloh12:
	ldr	x8, [x8, _USB_PID_MYGICA_T230@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [sp, #4]
	ldur	x2, [x29, #-40]
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x4, sp
	mov	x1, #0
	b	LBB0_6
LBB0_5:
	str	wzr, [sp, #4]
	ldur	x2, [x29, #-40]
Lloh16:
	adrp	x0, l_.str.1@PAGE
Lloh17:
	add	x0, x0, l_.str.1@PAGEOFF
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x4, sp
LBB0_6:
	mov	w3, #96
	bl	_dvb_module_probe
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	ldr	x0, [x19]
	bl	_dvb_module_release
LBB0_9:
Lloh20:
	adrp	x8, _ENODEV@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SI2168_TS_PARALLEL,4,2         ; @SI2168_TS_PARALLEL
	.comm	_USB_PID_MYGICA_T230C2,8,3      ; @USB_PID_MYGICA_T230C2
	.comm	_SI2168_TS_CLK_MANUAL,4,2       ; @SI2168_TS_CLK_MANUAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"si2168"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_USB_PID_MYGICA_T230,8,3        ; @USB_PID_MYGICA_T230
l_.str.1:                               ; @.str.1
	.asciz	"si2157"

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

	.no_dead_strip	_dvbsky_mygica_t230c_attach
.subsections_via_symbols
