	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2060_probe
_mt2060_probe:                          ## @mt2060_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
	pushq	%rax
	.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), %r13
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_dbg
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$48, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:
	movq	%rax, %r15
	movq	24(%r13), %r12
	movl	12(%r14), %eax
	movq	%r15, %rcx
	addq	$28, %rcx
	movl	%eax, 32(%r15)
	movl	16(%r13), %eax
	movl	%eax, 28(%r15)
	movq	%rcx, 40(%r15)
	movl	8(%r14), %eax
	movl	%eax, 24(%r15)
	movl	(%r13), %eax
	testl	%eax, %eax
	movl	$1220, %ecx                     ## imm = 0x4C4
	cmovnel	%eax, %ecx
	movl	%ecx, (%r15)
	movq	%r14, 16(%r15)
	movq	8(%r13), %rax
	decq	%rax
	movq	%rax, 8(%r15)
	movl	$1, 4(%r15)
	movq	_REG_PART_REV@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	callq	_mt2060_readreg
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_7:
	movq	-48(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	-48(%rbp), %rax
	movq	_PART_REV@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.11:
	movq	_REG_MISC_CTRL@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_mt2060_writereg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.12:
	movq	%r15, %rdi
	callq	_mt2060_calibrate
	movl	(%r13), %esi
	movq	%r15, %rdi
	movl	$232, %edx
	callq	_mt2060_writereg
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.13:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	leaq	8(%r12), %rdi
	movq	_mt2060_tuner_ops@GOTPCREL(%rip), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	$0, 8(%r12)
	movq	%r15, (%r12)
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_i2c_set_clientdata
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_8:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_9:
	subl	(%rax), %ebx
LBB0_10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_14:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Cannot proceed without platform data\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_REG_PART_REV,4,2               ## @REG_PART_REV
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.2:                               ## @.str.2
	.asciz	"chip id=%02x\n"

	.comm	_PART_REV,8,3                   ## @PART_REV
	.comm	_REG_MISC_CTRL,4,2              ## @REG_MISC_CTRL
L_.str.3:                               ## @.str.3
	.asciz	"Microtune MT2060 successfully identified\n"

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

	.no_dead_strip	_mt2060_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2060_probe
_mt2060_probe:                          ; @mt2060_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	x21, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	cbz	x21, LBB0_7
; %bb.1:
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #48
	bl	_devm_kzalloc
	cbz	x0, LBB0_9
; %bb.2:
	mov	x20, x0
	ldr	w8, [x21, #16]
	mov	x9, x0
	str	w8, [x9, #28]!
	ldp	w10, w8, [x19, #8]
	str	w8, [x0, #32]
	ldr	x22, [x21, #24]
	str	x9, [x0, #40]
	str	w10, [x0, #24]
	ldr	w8, [x21]
	mov	w9, #1220
	cmp	w8, #0
	csel	w8, w9, w8, eq
	ldr	x9, [x21, #8]
	sub	x9, x9, #1
	stp	x9, x19, [x0, #8]
	mov	w9, #1
	stp	w8, w9, [x0]
Lloh5:
	adrp	x8, _REG_PART_REV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REG_PART_REV@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_mt2060_readreg
	cbnz	w0, LBB0_8
; %bb.3:
	ldr	x8, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
	ldr	x8, [sp, #8]
Lloh10:
	adrp	x9, _PART_REV@GOTPAGE
Lloh11:
	ldr	x9, [x9, _PART_REV@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.4:
Lloh13:
	adrp	x23, _REG_MISC_CTRL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _REG_MISC_CTRL@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #32
	bl	_mt2060_writereg
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.5:
	mov	x0, x20
	bl	_mt2060_calibrate
	ldr	w1, [x23]
	mov	x0, x20
	mov	w2, #232
	bl	_mt2060_writereg
	mov	x21, x0
	cbnz	w0, LBB0_11
; %bb.6:
Lloh15:
	adrp	x1, l_.str.3@PAGE
Lloh16:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_dev_info
	add	x0, x22, #8
Lloh17:
	adrp	x1, _mt2060_tuner_ops@GOTPAGE
Lloh18:
	ldr	x1, [x1, _mt2060_tuner_ops@GOTPAGEOFF]
	mov	w2, #8
	bl	_memcpy
	stp	x20, xzr, [x22]
	mov	x0, x19
	mov	x1, x20
	bl	_i2c_set_clientdata
	b	LBB0_12
LBB0_7:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
Lloh23:
	adrp	x8, _ENODEV@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh25:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	str	x21, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dev_dbg
LBB0_12:
	mov	x0, x21
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Cannot proceed without platform data\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_REG_PART_REV,4,2               ; @REG_PART_REV
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.2:                               ; @.str.2
	.asciz	"chip id=%02x\n"

	.comm	_PART_REV,8,3                   ; @PART_REV
	.comm	_REG_MISC_CTRL,4,2              ; @REG_MISC_CTRL
l_.str.3:                               ; @.str.3
	.asciz	"Microtune MT2060 successfully identified\n"

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

	.no_dead_strip	_mt2060_probe
.subsections_via_symbols
