	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function tt_s2_4600_frontend_attach
LCPI0_0:
	.long	27000000                        ## 0x19bfcc0
	.long	33                              ## 0x21
	.long	16000                           ## 0x3e80
	.long	153                             ## 0x99
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_tt_s2_4600_frontend_attach:            ## @tt_s2_4600_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
	subq	$248, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	8(%r13), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	%xmm0, -112(%rbp)
	movaps	%xmm0, -128(%rbp)
	movaps	%xmm0, -144(%rbp)
	movaps	%xmm0, -160(%rbp)
	movaps	%xmm0, -176(%rbp)
	movq	$0, -80(%rbp)
	movaps	%xmm0, -208(%rbp)
	movaps	%xmm0, -224(%rbp)
	movaps	%xmm0, -240(%rbp)
	movaps	%xmm0, -256(%rbp)
	movaps	%xmm0, -272(%rbp)
	movaps	%xmm0, -288(%rbp)
	movq	$0, -192(%rbp)
	leaq	4(%r13), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rcx
	movabsq	$549755813902, %rax             ## imm = 0x800000000E
	movq	%rax, (%rcx)
	movl	$0, 8(%rcx)
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$3, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_2:
	movq	(%r14), %rcx
	movabsq	$8589934606, %rax               ## imm = 0x20000000E
	movq	%rax, (%rcx)
	movl	$1, 8(%rcx)
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$3, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_4:
	movl	$300, %edi                      ## imm = 0x12C
	callq	_msleep
	movq	(%r14), %rcx
	movabsq	$562640715790, %rbx             ## imm = 0x830000000E
	movq	%rbx, (%rcx)
	movl	$0, 8(%rcx)
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$3, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_6:
	movq	(%r14), %rcx
	movq	%rbx, (%rcx)
	movl	$1, 8(%rcx)
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$3, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_err
LBB0_8:
	movq	(%r14), %rcx
	movl	$81, (%rcx)
	movq	%r13, %rdi
	movq	%rcx, %rsi
	movl	$1, %edx
	movl	$1, %r8d
	xorl	%r9d, %r9d
	callq	_dvb_usb_generic_rw
	testq	%rax, %rax
	jns	LBB0_10
## %bb.9:
	leaq	L_.str.1(%rip), %rdi
	callq	_err
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	_M88DS3103_TS_CI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -96(%rbp)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [27000000,33,16000,153]
	movaps	%xmm1, -176(%rbp)
	movq	$0, -104(%rbp)
	movq	_M88DS3103_CLOCK_OUT_ENABLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movl	$1, -160(%rbp)
	movaps	%xmm0, -128(%rbp)
	leaq	-64(%rbp), %r12
	xorl	%r15d, %r15d
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.2(%rip), %rbx
	movq	%rbx, %rsi
	callq	_strscpy
	movl	$104, -64(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	callq	_request_module
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_18
## %bb.11:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_18
## %bb.12:
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_21
## %bb.13:
	movq	%rbx, %rdi
	callq	*-136(%rbp)
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	*-144(%rbp)
	movq	%rax, %r12
	movq	%rbx, 32(%r14)
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -264(%rbp)
	leaq	-64(%rbp), %rbx
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$24, %edx
	callq	_memset
	movl	-48(%rbp), %edi
	movq	_I2C_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.3(%rip), %rsi
	callq	_strscpy
	movl	$96, -64(%rbp)
	leaq	-288(%rbp), %rax
	movq	%rax, -56(%rbp)
	leaq	L_.str.4(%rip), %rdi
	callq	_request_module
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_i2c_new_device
	testq	%rax, %rax
	je	LBB0_17
## %bb.14:
	movq	%rax, %rbx
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_17
## %bb.15:
	movl	(%rax), %edi
	callq	_try_module_get
	testl	%eax, %eax
	je	LBB0_22
## %bb.16:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, 8(%rax)
	movq	%rbx, 24(%r14)
	movl	(%rax), %ecx
	movl	%ecx, 16(%r14)
	movq	_tt_s2_4600_read_status@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	movq	$0, 8(%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_17:
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_dvb_frontend_detach
LBB0_18:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_19:
	subl	(%rax), %r15d
LBB0_20:
	movl	%r15d, %eax
	addq	$248, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
	jmp	LBB0_23
LBB0_22:
	movq	%rbx, %rdi
	callq	_i2c_unregister_device
	movq	(%r13), %rax
	movq	(%rax), %rdi
	callq	_dvb_frontend_detach
LBB0_23:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"command 0x0e transfer failed."

L_.str.1:                               ## @.str.1
	.asciz	"command 0x51 transfer failed."

	.comm	_M88DS3103_TS_CI,4,2            ## @M88DS3103_TS_CI
	.comm	_M88DS3103_CLOCK_OUT_ENABLED,4,2 ## @M88DS3103_CLOCK_OUT_ENABLED
L_.str.2:                               ## @.str.2
	.asciz	"m88ds3103"

	.comm	_I2C_NAME_SIZE,4,2              ## @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.3:                               ## @.str.3
	.asciz	"ts2022"

L_.str.4:                               ## @.str.4
	.asciz	"ts2020"

	.comm	_tt_s2_4600_read_status,4,2     ## @tt_s2_4600_read_status
	.no_dead_strip	_tt_s2_4600_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 tt_s2_4600_frontend_attach
lCPI0_0:
	.long	14                              ; 0xe
	.long	128                             ; 0x80
lCPI0_1:
	.long	14                              ; 0xe
	.long	2                               ; 0x2
lCPI0_2:
	.long	14                              ; 0xe
	.long	131                             ; 0x83
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4
lCPI0_3:
	.long	27000000                        ; 0x19bfcc0
	.long	33                              ; 0x21
	.long	16000                           ; 0x3e80
	.long	153                             ; 0x99
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_tt_s2_4600_frontend_attach:            ; @tt_s2_4600_frontend_attach
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #320
	.cfi_def_cfa_offset 320
	stp	d9, d8, [sp, #240]              ; 16-byte Folded Spill
	stp	x24, x23, [sp, #256]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #272]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #288]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #304]            ; 16-byte Folded Spill
	add	x29, sp, #304
	.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 b8, -72
	.cfi_offset b9, -80
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x22, [x20, #8]
	str	xzr, [sp, #208]
	movi.2d	v0, #0000000000000000
	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]
	add	x21, x20, #4
	stp	q0, q0, [sp]
	mov	x0, x21
	bl	_mutex_lock
	ldr	x1, [x22]
Lloh0:
	adrp	x8, lCPI0_0@PAGE
Lloh1:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x1]
	str	wzr, [x1, #8]
	mov	w23, #1
	mov	x0, x20
	mov	w2, #3
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbz	x0, #63, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_2:
	ldr	x1, [x22]
Lloh4:
	adrp	x8, lCPI0_1@PAGE
Lloh5:
	ldr	d0, [x8, lCPI0_1@PAGEOFF]
	str	d0, [x1]
	str	w23, [x1, #8]
	mov	x0, x20
	mov	w2, #3
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_4:
	mov	w0, #300
	bl	_msleep
	ldr	x1, [x22]
Lloh8:
	adrp	x8, lCPI0_2@PAGE
Lloh9:
	ldr	d8, [x8, lCPI0_2@PAGEOFF]
	str	d8, [x1]
	str	wzr, [x1, #8]
	mov	w23, #1
	mov	x0, x20
	mov	w2, #3
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_6:
	ldr	x1, [x22]
	str	d8, [x1]
	str	w23, [x1, #8]
	mov	x0, x20
	mov	w2, #3
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_err
LBB0_8:
	ldr	x1, [x22]
	mov	w8, #81
	str	w8, [x1]
	mov	w23, #1
	mov	x0, x20
	mov	w2, #1
	mov	x3, x1
	mov	w4, #1
	mov	w5, #0
	bl	_dvb_usb_generic_rw
	tbz	x0, #63, LBB0_10
; %bb.9:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_err
LBB0_10:
	mov	x0, x21
	bl	_mutex_unlock
Lloh16:
	adrp	x8, _M88DS3103_TS_CI@GOTPAGE
Lloh17:
	ldr	x8, [x8, _M88DS3103_TS_CI@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	str	w8, [sp, #208]
	str	xzr, [sp, #200]
Lloh19:
	adrp	x8, lCPI0_3@PAGE
Lloh20:
	ldr	q0, [x8, lCPI0_3@PAGEOFF]
	str	q0, [sp, #112]
Lloh21:
	adrp	x8, _M88DS3103_CLOCK_OUT_ENABLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _M88DS3103_CLOCK_OUT_ENABLED@GOTPAGEOFF]
	stp	xzr, xzr, [sp, #184]
Lloh23:
	ldr	w8, [x8]
	str	w8, [sp, #176]
	str	w23, [sp, #128]
	stp	xzr, xzr, [sp, #160]
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldur	w0, [x29, #-72]
Lloh24:
	adrp	x23, _I2C_NAME_SIZE@GOTPAGE
Lloh25:
	ldr	x23, [x23, _I2C_NAME_SIZE@GOTPAGEOFF]
	ldr	w2, [x23]
Lloh26:
	adrp	x21, l_.str.2@PAGE
Lloh27:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	x1, x21
	bl	_strscpy
	mov	w8, #104
	stur	w8, [x29, #-88]
	add	x8, sp, #112
	stur	x8, [x29, #-80]
	mov	x0, x21
	bl	_request_module
	sub	x1, x29, #88
	mov	x0, x20
	bl	_i2c_new_device
	cbz	x0, LBB0_20
; %bb.11:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.12:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_17
; %bb.13:
	ldr	x8, [sp, #152]
	mov	x0, x20
	blr	x8
	ldr	x8, [x19]
	str	x0, [x8]
	ldr	x8, [sp, #144]
	mov	x0, x20
	blr	x8
	mov	x21, x0
	str	x20, [x22, #32]
	ldr	x8, [x19]
	ldr	x8, [x8]
	str	x8, [sp, #24]
	sub	x0, x29, #88
	mov	w1, #0
	mov	w2, #24
	bl	_memset
	ldur	w0, [x29, #-72]
	ldr	w2, [x23]
Lloh28:
	adrp	x1, l_.str.3@PAGE
Lloh29:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_strscpy
	mov	w8, #96
	stur	w8, [x29, #-88]
	mov	x8, sp
	stur	x8, [x29, #-80]
Lloh30:
	adrp	x0, l_.str.4@PAGE
Lloh31:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_request_module
	sub	x1, x29, #88
	mov	x0, x21
	bl	_i2c_new_device
	cbz	x0, LBB0_19
; %bb.14:
	mov	x20, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_19
; %bb.15:
	ldr	w0, [x8]
	bl	_try_module_get
	cbz	w0, LBB0_18
; %bb.16:
	mov	w0, #0
	ldr	x8, [x19]
	ldr	x8, [x8]
	ldr	w9, [x8, #4]
	str	w9, [x8, #8]
	str	x20, [x22, #24]
	ldr	w9, [x8]
	str	w9, [x22, #16]
Lloh32:
	adrp	x9, _tt_s2_4600_read_status@GOTPAGE
Lloh33:
	ldr	x9, [x9, _tt_s2_4600_read_status@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	str	w9, [x8]
	str	xzr, [x22, #8]
	b	LBB0_21
LBB0_17:
	mov	x0, x20
	bl	_i2c_unregister_device
	b	LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_i2c_unregister_device
LBB0_19:
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_dvb_frontend_detach
LBB0_20:
Lloh35:
	adrp	x8, _ENODEV@GOTPAGE
Lloh36:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_21:
	ldp	x29, x30, [sp, #304]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #288]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #272]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #256]            ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #240]              ; 16-byte Folded Reload
	add	sp, sp, #320
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdr	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdrp	Lloh19, Lloh21
	.loh AdrpLdr	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"command 0x0e transfer failed."

l_.str.1:                               ; @.str.1
	.asciz	"command 0x51 transfer failed."

	.comm	_M88DS3103_TS_CI,4,2            ; @M88DS3103_TS_CI
	.comm	_M88DS3103_CLOCK_OUT_ENABLED,4,2 ; @M88DS3103_CLOCK_OUT_ENABLED
l_.str.2:                               ; @.str.2
	.asciz	"m88ds3103"

	.comm	_I2C_NAME_SIZE,4,2              ; @I2C_NAME_SIZE
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.3:                               ; @.str.3
	.asciz	"ts2022"

l_.str.4:                               ; @.str.4
	.asciz	"ts2020"

	.comm	_tt_s2_4600_read_status,4,2     ; @tt_s2_4600_read_status
	.no_dead_strip	_tt_s2_4600_frontend_attach
.subsections_via_symbols
