	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ts2020_probe
_ts2020_probe:                          ## @ts2020_probe
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %r12
	movq	32(%r12), %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$120, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r13
	leaq	112(%rax), %rdi
	callq	_mutex_init
	leaq	88(%r13), %rsi
	movabsq	$34359738376, %rax              ## imm = 0x800000008
	movq	%rax, 88(%r13)
	movq	_ts2020_regmap_lock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 108(%r13)
	movq	_ts2020_regmap_unlock@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 104(%r13)
	movq	%r13, 96(%r13)
	movq	%r14, %rdi
	callq	_regmap_init_i2c
	movl	%eax, 24(%r13)
	movl	%eax, %edi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movl	24(%r13), %edi
	callq	_PTR_ERR
	movl	%eax, %ebx
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_5
LBB0_6:
	movl	12(%r14), %eax
	movl	%eax, 80(%r13)
	movl	8(%r14), %eax
	movl	%eax, 76(%r13)
	movq	24(%r12), %rax
	movq	%rax, 32(%r13)
	movl	(%r12), %eax
	movl	%eax, (%r13)
	movl	4(%r12), %eax
	movl	%eax, 4(%r13)
	movl	20(%r12), %eax
	movl	%eax, 72(%r13)
	movl	8(%r12), %eax
	movl	%eax, 8(%r13)
	movq	%r15, 64(%r13)
	movl	16(%r12), %eax
	movl	%eax, 56(%r13)
	movq	%r13, 8(%r15)
	movq	%r14, 48(%r13)
	movq	%r13, %rdi
	addq	$40, %rdi
	movq	_ts2020_stat_work@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_DELAYED_WORK
	movl	24(%r13), %edi
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.7:
	testb	$3, -44(%rbp)
	je	LBB0_8
LBB0_10:
	movl	24(%r13), %edi
	xorl	%esi, %esi
	movl	$3, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.11:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	movl	24(%r13), %edi
	leaq	-44(%rbp), %rdx
	xorl	%esi, %esi
	callq	_regmap_read
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.12:
	movl	-44(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_dbg
	movl	-44(%rbp), %eax
	cmpl	$128, %eax
	jle	LBB0_13
## %bb.18:
	cmpl	$195, %eax
	je	LBB0_23
## %bb.19:
	cmpl	$131, %eax
	je	LBB0_23
## %bb.20:
	cmpl	$129, %eax
	je	LBB0_21
	jmp	LBB0_15
LBB0_8:
	movl	24(%r13), %edi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_9
LBB0_17:
	movl	24(%r13), %edi
	callq	_regmap_exit
LBB0_4:
	movq	%r13, %rdi
	callq	_kfree
LBB0_5:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_dbg
LBB0_41:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$50000, %esi                    ## imm = 0xC350
	callq	_usleep_range
	jmp	LBB0_10
LBB0_13:
	cmpl	$1, %eax
	je	LBB0_21
## %bb.14:
	cmpl	$65, %eax
	jne	LBB0_15
LBB0_21:
	movq	_TS2020_M88TS2020@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	leaq	L_.str.1(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r13)
	jne	LBB0_26
## %bb.22:
	movl	$1060000, %ecx                  ## imm = 0x102CA0
	jmp	LBB0_25
LBB0_23:
	movq	_TS2020_M88TS2022@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r13)
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	cmpl	$0, 8(%r13)
	jne	LBB0_26
## %bb.24:
	movl	$1103000, %ecx                  ## imm = 0x10D498
LBB0_25:
	movl	%ecx, 8(%r13)
LBB0_26:
	movq	_TS2020_M88TS2022@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_37
## %bb.27:
	movl	(%r13), %eax
	cmpl	$128, %eax
	je	LBB0_34
## %bb.28:
	cmpl	$130, %eax
	je	LBB0_29
## %bb.30:
	cmpl	$129, %eax
	jne	LBB0_33
## %bb.31:
	movl	4(%r13), %edx
	movl	24(%r13), %edi
	movl	$5, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.32:
	movl	$112, %edx
	jmp	LBB0_35
LBB0_15:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_34:
	movl	$108, %edx
	jmp	LBB0_35
LBB0_29:
	movl	$96, %edx
LBB0_35:
	movl	24(%r13), %edi
	movl	$66, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.36:
	xorl	%edx, %edx
	cmpq	$0, 32(%r13)
	setne	%dl
	shll	$7, %edx
	orl	$108, %edx
	movl	24(%r13), %edi
	movl	$98, %esi
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
LBB0_37:
	movl	24(%r13), %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_regmap_write
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_17
## %bb.38:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_dev_info
	movq	_ts2020_tuner_ops@GOTPCREL(%rip), %rsi
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_memcpy
	cmpl	$0, 12(%r12)
	jne	LBB0_40
## %bb.39:
	movq	$0, (%r15)
LBB0_40:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_41
LBB0_33:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_16:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ts2020_regmap_lock,4,2         ## @ts2020_regmap_lock
	.comm	_ts2020_regmap_unlock,4,2       ## @ts2020_regmap_unlock
	.comm	_ts2020_stat_work,4,2           ## @ts2020_stat_work
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"chip_id=%02x\n"

	.comm	_TS2020_M88TS2020,8,3           ## @TS2020_M88TS2020
L_.str.1:                               ## @.str.1
	.asciz	"TS2020"

	.comm	_TS2020_M88TS2022,8,3           ## @TS2020_M88TS2022
L_.str.2:                               ## @.str.2
	.asciz	"TS2022"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"Montage Technology %s successfully identified\n"

	.comm	_ts2020_tuner_ops,4,2           ## @ts2020_tuner_ops
L_.str.4:                               ## @.str.4
	.asciz	"failed=%d\n"

	.no_dead_strip	_ts2020_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ts2020_probe
_ts2020_probe:                          ; @ts2020_probe
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	ldr	x24, [x0]
	ldr	x21, [x24, #32]
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #120
	bl	_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	add	x0, x0, #112
	bl	_mutex_init
	movi.2s	v0, #8
	mov	x1, x20
	str	d0, [x1, #88]!
Lloh3:
	adrp	x8, _ts2020_regmap_lock@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ts2020_regmap_lock@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ts2020_regmap_unlock@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ts2020_regmap_unlock@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #104]
	str	x20, [x20, #96]
	mov	x0, x19
	bl	_regmap_init_i2c
	str	w0, [x20, #24]
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #24]
	bl	_PTR_ERR
	mov	x23, x0
	b	LBB0_14
LBB0_3:
Lloh9:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_15
LBB0_4:
	ldr	d0, [x19, #8]
	stur	d0, [x20, #76]
	ldr	x8, [x24, #24]
	str	x8, [x20, #32]
	ldr	d0, [x24]
	str	d0, [x20]
	ldp	w9, w8, [x24, #16]
	str	w8, [x20, #72]
	ldr	w8, [x24, #8]
	str	w8, [x20, #8]
	str	x21, [x20, #64]
	str	w9, [x20, #56]
	str	x20, [x21, #8]
	str	x19, [x20, #48]
	add	x0, x20, #40
Lloh12:
	adrp	x8, _ts2020_stat_work@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ts2020_stat_work@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_INIT_DELAYED_WORK
	ldr	w0, [x20, #24]
	add	x2, sp, #12
	mov	w1, #0
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.5:
	ldrb	w8, [sp, #12]
	tst	w8, #0x3
	b.eq	LBB0_12
LBB0_6:
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #3
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.7:
	mov	w0, #2000
	mov	w1, #50000
	bl	_usleep_range
	ldr	w0, [x20, #24]
	add	x2, sp, #12
	mov	w1, #0
	bl	_regmap_read
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.8:
	ldr	w2, [sp, #12]
Lloh15:
	adrp	x1, l_.str@PAGE
Lloh16:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	w9, [sp, #12]
Lloh17:
	adrp	x8, _TS2020_M88TS2022@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TS2020_M88TS2022@GOTPAGEOFF]
	cmp	w9, #128
	b.le	LBB0_18
; %bb.9:
	cmp	w9, #195
	b.eq	LBB0_22
; %bb.10:
	cmp	w9, #131
	b.eq	LBB0_22
; %bb.11:
	cmp	w9, #129
	b.eq	LBB0_20
	b	LBB0_31
LBB0_12:
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #1
	bl	_regmap_write
	mov	x23, x0
	cbz	w0, LBB0_17
LBB0_13:
	ldr	w0, [x20, #24]
	bl	_regmap_exit
LBB0_14:
	mov	x0, x20
	bl	_kfree
LBB0_15:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	mov	x2, x23
	bl	_dev_dbg
LBB0_16:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_17:
	mov	w0, #2000
	mov	w1, #50000
	bl	_usleep_range
	b	LBB0_6
LBB0_18:
	cmp	w9, #1
	b.eq	LBB0_20
; %bb.19:
	cmp	w9, #65
	b.ne	LBB0_31
LBB0_20:
Lloh21:
	adrp	x9, _TS2020_M88TS2020@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TS2020_M88TS2020@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
	str	x9, [x20, #16]
	ldr	w10, [x20, #8]
Lloh24:
	adrp	x22, l_.str.1@PAGE
Lloh25:
	add	x22, x22, l_.str.1@PAGEOFF
	cbnz	w10, LBB0_25
; %bb.21:
	mov	w10, #11424
	b	LBB0_24
LBB0_22:
	ldr	x9, [x8]
	str	x9, [x20, #16]
	ldr	w10, [x20, #8]
Lloh26:
	adrp	x22, l_.str.2@PAGE
Lloh27:
	add	x22, x22, l_.str.2@PAGEOFF
	cbnz	w10, LBB0_25
; %bb.23:
	mov	w10, #54424
LBB0_24:
	movk	w10, #16, lsl #16
	str	w10, [x20, #8]
LBB0_25:
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_36
; %bb.26:
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_32
; %bb.27:
	cmp	w8, #130
	b.eq	LBB0_33
; %bb.28:
	cmp	w8, #129
	b.ne	LBB0_40
; %bb.29:
	ldr	w0, [x20, #24]
	ldr	w2, [x20, #4]
	mov	w1, #5
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.30:
	mov	w2, #112
	b	LBB0_34
LBB0_31:
Lloh28:
	adrp	x8, _ENODEV@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_41
LBB0_32:
	mov	w2, #108
	b	LBB0_34
LBB0_33:
	mov	w2, #96
LBB0_34:
	ldr	w0, [x20, #24]
	mov	w1, #66
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.35:
	ldr	x8, [x20, #32]
	cmp	x8, #0
	mov	w8, #236
	mov	w9, #108
	csel	w2, w9, w8, eq
	ldr	w0, [x20, #24]
	mov	w1, #98
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
LBB0_36:
	ldr	w0, [x20, #24]
	mov	w1, #0
	mov	w2, #0
	bl	_regmap_write
	mov	x23, x0
	cbnz	w0, LBB0_13
; %bb.37:
Lloh30:
	adrp	x1, l_.str.3@PAGE
Lloh31:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_dev_info
Lloh32:
	adrp	x1, _ts2020_tuner_ops@GOTPAGE
Lloh33:
	ldr	x1, [x1, _ts2020_tuner_ops@GOTPAGEOFF]
	mov	x0, x21
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [x24, #12]
	cbnz	w8, LBB0_39
; %bb.38:
	str	xzr, [x21]
LBB0_39:
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	mov	w23, #0
	b	LBB0_16
LBB0_40:
Lloh34:
	adrp	x8, _EINVAL@GOTPAGE
Lloh35:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_41:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ts2020_regmap_lock,4,2         ; @ts2020_regmap_lock
	.comm	_ts2020_regmap_unlock,4,2       ; @ts2020_regmap_unlock
	.comm	_ts2020_stat_work,4,2           ; @ts2020_stat_work
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"chip_id=%02x\n"

	.comm	_TS2020_M88TS2020,8,3           ; @TS2020_M88TS2020
l_.str.1:                               ; @.str.1
	.asciz	"TS2020"

	.comm	_TS2020_M88TS2022,8,3           ; @TS2020_M88TS2022
l_.str.2:                               ; @.str.2
	.asciz	"TS2022"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"Montage Technology %s successfully identified\n"

	.comm	_ts2020_tuner_ops,4,2           ; @ts2020_tuner_ops
l_.str.4:                               ; @.str.4
	.asciz	"failed=%d\n"

	.no_dead_strip	_ts2020_probe
.subsections_via_symbols
