	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt2032_init
_mt2032_init:                           ## @mt2032_init
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	leaq	-79(%rbp), %rsi
	movl	$521142018, -79(%rbp)           ## imm = 0x1F0FFF02
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	4(%rax), %r15
	movq	%r15, %rdi
	movl	$4, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-75(%rbp), %rsi
	movl	$-1013980154, -75(%rbp)         ## imm = 0xC38FE406
	movw	$-5042, -71(%rbp)               ## imm = 0xEC4E
	movq	%r15, %rdi
	movl	$6, %edx
	callq	_tuner_i2c_xfer_send
	leaq	-68(%rbp), %rsi
	movw	$12813, -68(%rbp)               ## imm = 0x320D
	movq	%r15, %rdi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	movl	$7, %r14d
	leaq	L_.str(%rip), %rbx
	leaq	-80(%rbp), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r13d, %r14d
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_tuner_dbg
	movl	$10, %edi
	callq	_mdelay
	movb	$14, -80(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_tuner_i2c_xfer_send
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_tuner_i2c_xfer_recv
	movq	%rbx, %r13
	movzbl	-80(%rbp), %ebx
	andl	$1, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_tuner_dbg
	testl	%ebx, %ebx
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rbx
	leal	-1(%r14), %r13d
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_tuner_dbg
	cmpl	$4, %r14d
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movb	$7, -80(%rbp)
	addb	$-121, %r14b
	movb	%r14b, -79(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$2, %edx
	callq	_tuner_i2c_xfer_send
	cmpl	$2, %eax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	callq	_tuner_warn
	movl	%r13d, %r14d
	jmp	LBB0_1
LBB0_6:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	movq	_mt2032_tuner_ops@GOTPCREL(%rip), %rsi
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	movl	$4, %edx
	callq	_memcpy
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	$1, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mt2032: xogc = 0x%02x\n"

L_.str.1:                               ## @.str.1
	.asciz	"mt2032: xok = 0x%02x\n"

L_.str.2:                               ## @.str.2
	.asciz	"i2c i/o error: rc == %d (should be 2)\n"

	.comm	_mt2032_tuner_ops,4,2           ## @mt2032_tuner_ops
	.no_dead_strip	_mt2032_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt2032_init
_mt2032_init:                           ; @mt2032_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x26, [x0, #8]
	add	x21, sp, #3
	add	x1, x21, #1
	mov	w8, #65282
	movk	w8, #7951, lsl #16
	stur	w8, [sp, #4]
	add	x20, x26, #4
	mov	x0, x20
	mov	w2, #4
	bl	_tuner_i2c_xfer_send
	add	x1, x21, #5
	mov	w8, #58374
	movk	w8, #50063, lsl #16
	stur	w8, [sp, #8]
	mov	w8, #60494
	sturh	w8, [sp, #12]
	mov	x0, x20
	mov	w2, #6
	bl	_tuner_i2c_xfer_send
	add	x1, x21, #12
	mov	w8, #12813
	sturh	w8, [sp, #15]
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	mov	w27, #7
Lloh3:
	adrp	x21, l_.str@PAGE
Lloh4:
	add	x21, x21, l_.str@PAGEOFF
	mov	w28, #14
Lloh5:
	adrp	x22, l_.str.1@PAGE
Lloh6:
	add	x22, x22, l_.str.1@PAGEOFF
	mov	w24, #7
Lloh7:
	adrp	x23, l_.str.2@PAGE
Lloh8:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x24, x25
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x24
	bl	_tuner_dbg
	mov	w0, #10
	bl	_mdelay
	strb	w28, [sp, #3]
	add	x1, sp, #3
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_i2c_xfer_send
	add	x1, sp, #3
	mov	x0, x20
	mov	w2, #1
	bl	_tuner_i2c_xfer_recv
	ldrb	w25, [sp, #3]
	and	w1, w25, #0x1
	mov	x0, x22
	bl	_tuner_dbg
	tbnz	w25, #0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w25, w24, #1
	mov	x0, x21
	mov	x1, x25
	bl	_tuner_dbg
	cmp	w24, #4
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	strb	w27, [sp, #3]
	sub	w8, w24, #121
	strb	w8, [sp, #4]
	add	x1, sp, #3
	mov	x0, x20
	mov	w2, #2
	bl	_tuner_i2c_xfer_send
	cmp	w0, #2
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x1, x0
	mov	x0, x23
	bl	_tuner_warn
	mov	x24, x25
	b	LBB0_2
LBB0_6:
	str	w24, [x26]
Lloh9:
	adrp	x1, _mt2032_tuner_ops@GOTPAGE
Lloh10:
	ldr	x1, [x1, _mt2032_tuner_ops@GOTPAGEOFF]
	mov	x0, x19
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.7:
	mov	w0, #1
	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
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mt2032: xogc = 0x%02x\n"

l_.str.1:                               ; @.str.1
	.asciz	"mt2032: xok = 0x%02x\n"

l_.str.2:                               ; @.str.2
	.asciz	"i2c i/o error: rc == %d (should be 2)\n"

	.comm	_mt2032_tuner_ops,4,2           ; @mt2032_tuner_ops
	.no_dead_strip	_mt2032_init
.subsections_via_symbols
