	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_init
_lgdt3306a_init:                        ## @lgdt3306a_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	leaq	L_.str(%rip), %rdi
	callq	_dbg_info
	movq	%r14, %rdi
	movl	$1, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_lgdt3306a_set_reg_bit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.1:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_lgdt3306a_set_inversion_auto
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.2:
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lgdt3306a_set_inversion
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.3:
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$7, %edx
	movl	$1, %ecx
	callq	_lgdt3306a_set_reg_bit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.4:
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$2, %edx
	xorl	%ecx, %ecx
	callq	_lgdt3306a_set_reg_bit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.5:
	movq	%r14, %rdi
	movl	$4, %esi
	movl	$3, %edx
	xorl	%ecx, %ecx
	callq	_lgdt3306a_set_reg_bit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.6:
	movq	%r14, %rdi
	movl	$5, %esi
	movl	$6, %edx
	xorl	%ecx, %ecx
	callq	_lgdt3306a_set_reg_bit
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	je	LBB0_7
LBB0_22:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r14), %rax
	movl	(%rax), %esi
	cmpl	$25, %esi
	je	LBB0_15
## %bb.8:
	cmpl	$24, %esi
	jne	LBB0_20
## %bb.9:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.10:
	movl	$192, %edx
	andl	-28(%rbp), %edx
	orl	$37, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.11:
	movq	%r14, %rdi
	movl	$6, %esi
	movl	$100, %edx
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.12:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.13:
	movl	$192, %edx
	andl	-28(%rbp), %edx
	orl	$24, %edx
	jmp	LBB0_14
LBB0_15:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.16:
	movl	$192, %edx
	andl	-28(%rbp), %edx
	orl	$37, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$5, %esi
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.17:
	movq	%r14, %rdi
	movl	$6, %esi
	movl	$100, %edx
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.18:
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_lgdt3306a_read_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
## %bb.19:
	movl	$192, %edx
	andl	-28(%rbp), %edx
	orl	$25, %edx
LBB0_14:
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$13, %esi
	callq	_lgdt3306a_write_reg
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	testq	%rax, %rax
	jne	LBB0_22
	jmp	LBB0_21
LBB0_20:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_21:
	movq	%r14, %rdi
	movl	$16, %esi
	movl	$52, %edx
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$17, %esi
	xorl	%edx, %edx
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$20, %esi
	xorl	%edx, %edx
	callq	_lgdt3306a_write_reg
	leaq	-28(%rbp), %r15
	movq	%r14, %rdi
	movl	$4156, %esi                     ## imm = 0x103C
	movq	%r15, %rdx
	callq	_lgdt3306a_read_reg
	movl	-28(%rbp), %edx
	andl	$15, %edx
	orl	$32, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$4156, %esi                     ## imm = 0x103C
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$4157, %esi                     ## imm = 0x103D
	movq	%r15, %rdx
	callq	_lgdt3306a_read_reg
	movzbl	-28(%rbp), %edx
	orl	$3, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$4157, %esi                     ## imm = 0x103D
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$4150, %esi                     ## imm = 0x1036
	movq	%r15, %rdx
	callq	_lgdt3306a_read_reg
	movl	$240, %edx
	andl	-28(%rbp), %edx
	orl	$12, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$4150, %esi                     ## imm = 0x1036
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$8479, %esi                     ## imm = 0x211F
	movq	%r15, %rdx
	callq	_lgdt3306a_read_reg
	movl	$239, %ebx
	movl	-28(%rbp), %edx
	andl	%ebx, %edx
	movl	%edx, -28(%rbp)
	movq	%r14, %rdi
	movl	$8479, %esi                     ## imm = 0x211F
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	movl	$10313, %esi                    ## imm = 0x2849
	movq	%r15, %rdx
	callq	_lgdt3306a_read_reg
	andl	-28(%rbp), %ebx
	movl	%ebx, -28(%rbp)
	movq	%r14, %rdi
	movl	$10313, %esi                    ## imm = 0x2849
	movl	%ebx, %edx
	callq	_lgdt3306a_write_reg
	movq	%r14, %rdi
	callq	_lgdt3306a_set_vsb
	movq	(%r14), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	callq	_lgdt3306a_mpeg_mode
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_lgdt3306a_mpeg_tristate
	movq	%r14, %rdi
	callq	_lgdt3306a_sleep
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_lg_chkerr
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n"

L_.str.1:                               ## @.str.1
	.asciz	"Bad xtalMHz=%d\n"

	.no_dead_strip	_lgdt3306a_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_init
_lgdt3306a_init:                        ; @lgdt3306a_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x19, [x0]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_info
	mov	x0, x19
	mov	w1, #1
	mov	w2, #0
	mov	w3, #1
	bl	_lgdt3306a_set_reg_bit
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.1:
	mov	x0, x19
	mov	w1, #0
	bl	_lgdt3306a_set_inversion_auto
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.2:
	mov	x0, x19
	mov	w1, #1
	bl	_lgdt3306a_set_inversion
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.3:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #7
	mov	w3, #1
	bl	_lgdt3306a_set_reg_bit
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #2
	mov	w3, #0
	bl	_lgdt3306a_set_reg_bit
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	mov	w1, #4
	mov	w2, #3
	mov	w3, #0
	bl	_lgdt3306a_set_reg_bit
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #5
	mov	w2, #6
	mov	w3, #0
	bl	_lgdt3306a_set_reg_bit
	mov	x20, x0
	bl	_lg_chkerr
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_8:
	ldr	x8, [x19]
	ldr	w1, [x8]
	cmp	w1, #25
	b.eq	LBB0_15
; %bb.9:
	cmp	w1, #24
	b.ne	LBB0_21
; %bb.10:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #5
	bl	_lgdt3306a_read_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.11:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xc0
	mov	w9, #37
	orr	w2, w8, w9
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #5
	bl	_lgdt3306a_write_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.12:
	mov	x0, x19
	mov	w1, #6
	mov	w2, #100
	bl	_lgdt3306a_write_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.13:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #13
	bl	_lgdt3306a_read_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.14:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xc0
	orr	w2, w8, #0x18
	b	LBB0_20
LBB0_15:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #5
	bl	_lgdt3306a_read_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.16:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xc0
	mov	w9, #37
	orr	w2, w8, w9
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #5
	bl	_lgdt3306a_write_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.17:
	mov	x0, x19
	mov	w1, #6
	mov	w2, #100
	bl	_lgdt3306a_write_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.18:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #13
	bl	_lgdt3306a_read_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
; %bb.19:
	ldr	w8, [sp, #12]
	and	w8, w8, #0xc0
	mov	w9, #25
	orr	w2, w8, w9
LBB0_20:
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #13
	bl	_lgdt3306a_write_reg
	mov	x20, x0
	bl	_lg_chkerr
	cbnz	x0, LBB0_7
	b	LBB0_22
LBB0_21:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
LBB0_22:
	mov	x0, x19
	mov	w1, #16
	mov	w2, #52
	bl	_lgdt3306a_write_reg
	mov	x0, x19
	mov	w1, #17
	mov	w2, #0
	bl	_lgdt3306a_write_reg
	mov	x0, x19
	mov	w1, #20
	mov	w2, #0
	bl	_lgdt3306a_write_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4156
	bl	_lgdt3306a_read_reg
	ldr	w8, [sp, #12]
	mov	w2, #32
	bfxil	w2, w8, #0, #4
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #4156
	bl	_lgdt3306a_write_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4157
	bl	_lgdt3306a_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, #0xfc
	orr	w2, w8, #0x3
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #4157
	bl	_lgdt3306a_write_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #4150
	bl	_lgdt3306a_read_reg
	ldr	w8, [sp, #12]
	and	w8, w8, #0xf0
	orr	w2, w8, #0xc
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #4150
	bl	_lgdt3306a_write_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #8479
	bl	_lgdt3306a_read_reg
	ldr	w8, [sp, #12]
	mov	w20, #239
	and	w2, w8, w20
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #8479
	bl	_lgdt3306a_write_reg
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #10313
	bl	_lgdt3306a_read_reg
	ldr	w8, [sp, #12]
	and	w2, w8, w20
	str	w2, [sp, #12]
	mov	x0, x19
	mov	w1, #10313
	bl	_lgdt3306a_write_reg
	mov	x0, x19
	bl	_lgdt3306a_set_vsb
	ldr	x8, [x19]
	ldr	w1, [x8, #4]
	mov	x0, x19
	bl	_lgdt3306a_mpeg_mode
	mov	x0, x19
	mov	w1, #1
	bl	_lgdt3306a_mpeg_tristate
	mov	x0, x19
	bl	_lgdt3306a_sleep
	mov	x20, x0
	bl	_lg_chkerr
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n"

l_.str.1:                               ; @.str.1
	.asciz	"Bad xtalMHz=%d\n"

	.no_dead_strip	_lgdt3306a_init
.subsections_via_symbols
