	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt330x_init
_lgdt330x_init:                         ## @lgdt330x_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, %r15
	movq	48(%rdi), %r14
	movl	16(%r14), %eax
	cmpl	$132, %eax
	je	LBB0_3
## %bb.1:
	cmpl	$133, %eax
	jne	LBB0_10
## %bb.2:
	leaq	_lgdt330x_init.lgdt3302_init_data(%rip), %rsi
	movq	%r14, %rdi
	movl	$112, %edx
	callq	_i2c_write_demod_bytes
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_11
LBB0_3:
	movl	20(%r14), %eax
	cmpl	$1, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$2, %eax
	jne	LBB0_9
## %bb.5:
	leaq	_lgdt330x_init.flip_2_lgdt3303_init_data(%rip), %rsi
	jmp	LBB0_6
LBB0_10:
	movq	8(%r14), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_warn
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_11
LBB0_8:
	leaq	_lgdt330x_init.flip_1_lgdt3303_init_data(%rip), %rsi
LBB0_6:
	movq	%r14, %rdi
	movl	$16, %edx
	jmp	LBB0_7
LBB0_9:
	leaq	_lgdt330x_init.lgdt3303_init_data(%rip), %rsi
	movq	%r14, %rdi
	movl	$8, %edx
LBB0_7:
	callq	_i2c_write_demod_bytes
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdx
LBB0_11:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dprintk
	testl	%ebx, %ebx
	js	LBB0_12
## %bb.13:
	movl	$1, 32(%r15)
	movq	_FE_SCALE_NOT_AVAILABLE@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	40(%r15), %rdx
	movq	%rcx, (%rdx)
	movl	$1, 16(%r15)
	movq	(%rax), %rcx
	movq	24(%r15), %rdx
	movq	%rcx, (%rdx)
	movl	$1, (%r15)
	movq	(%rax), %rax
	movq	8(%r15), %rcx
	movq	%rax, (%rcx)
	movq	$0, (%r14)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lgdt330x_sw_reset              ## TAILCALL
LBB0_12:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	4                               ## @lgdt330x_init.lgdt3302_init_data
_lgdt330x_init.lgdt3302_init_data:
	.long	131                             ## 0x83
	.long	0                               ## 0x0
	.long	130                             ## 0x82
	.long	135                             ## 0x87
	.long	129                             ## 0x81
	.long	142                             ## 0x8e
	.long	128                             ## 0x80
	.long	1                               ## 0x1
	.long	134                             ## 0x86
	.long	251                             ## 0xfb
	.long	137                             ## 0x89
	.long	64                              ## 0x40
	.long	136                             ## 0x88
	.long	147                             ## 0x93
	.long	135                             ## 0x87
	.long	0                               ## 0x0
	.long	141                             ## 0x8d
	.long	198                             ## 0xc6
	.long	140                             ## 0x8c
	.long	64                              ## 0x40
	.long	143                             ## 0x8f
	.long	7                               ## 0x7
	.long	142                             ## 0x8e
	.long	254                             ## 0xfe
	.long	139                             ## 0x8b
	.long	8                               ## 0x8
	.long	138                             ## 0x8a
	.long	154                             ## 0x9a

	.p2align	2                               ## @lgdt330x_init.lgdt3303_init_data
_lgdt330x_init.lgdt3303_init_data:
	.long	76                              ## 0x4c
	.long	20                              ## 0x14

	.p2align	4                               ## @lgdt330x_init.flip_1_lgdt3303_init_data
_lgdt330x_init.flip_1_lgdt3303_init_data:
	.long	76                              ## 0x4c
	.long	20                              ## 0x14
	.long	135                             ## 0x87
	.long	243                             ## 0xf3

	.p2align	4                               ## @lgdt330x_init.flip_2_lgdt3303_init_data
_lgdt330x_init.flip_2_lgdt3303_init_data:
	.long	76                              ## 0x4c
	.long	20                              ## 0x14
	.long	135                             ## 0x87
	.long	218                             ## 0xda

	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"LGDT3302"

L_.str.1:                               ## @.str.1
	.asciz	"LGDT3303"

L_.str.2:                               ## @.str.2
	.asciz	"undefined"

L_.str.3:                               ## @.str.3
	.asciz	"Only LGDT3302 and LGDT3303 are supported chips.\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.4:                               ## @.str.4
	.asciz	"Initialized the %s chip\n"

	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ## @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_lgdt330x_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt330x_init
_lgdt330x_init:                         ; @lgdt330x_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x0
	ldr	x19, [x0, #48]
	ldr	w8, [x19, #16]
	cmp	w8, #132
	b.eq	LBB0_3
; %bb.1:
	cmp	w8, #133
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x1, _lgdt330x_init.lgdt3302_init_data@PAGE
Lloh1:
	add	x1, x1, _lgdt330x_init.lgdt3302_init_data@PAGEOFF
	mov	x0, x19
	mov	w2, #112
	bl	_i2c_write_demod_bytes
	mov	x21, x0
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_11
LBB0_3:
	ldr	w8, [x19, #20]
	cmp	w8, #1
	b.eq	LBB0_7
; %bb.4:
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.5:
Lloh4:
	adrp	x1, _lgdt330x_init.flip_2_lgdt3303_init_data@PAGE
Lloh5:
	add	x1, x1, _lgdt330x_init.flip_2_lgdt3303_init_data@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_warn
Lloh8:
	adrp	x8, _ENODEV@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_11
LBB0_7:
Lloh13:
	adrp	x1, _lgdt330x_init.flip_1_lgdt3303_init_data@PAGE
Lloh14:
	add	x1, x1, _lgdt330x_init.flip_1_lgdt3303_init_data@PAGEOFF
LBB0_8:
	mov	x0, x19
	mov	w2, #16
	b	LBB0_10
LBB0_9:
Lloh15:
	adrp	x1, _lgdt330x_init.lgdt3303_init_data@PAGE
Lloh16:
	add	x1, x1, _lgdt330x_init.lgdt3303_init_data@PAGEOFF
	mov	x0, x19
	mov	w2, #8
LBB0_10:
	bl	_i2c_write_demod_bytes
	mov	x21, x0
Lloh17:
	adrp	x2, l_.str.1@PAGE
Lloh18:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_11:
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_dprintk
	tbnz	w21, #31, LBB0_13
; %bb.12:
	mov	w8, #1
	str	w8, [x20, #32]
Lloh21:
	adrp	x9, _FE_SCALE_NOT_AVAILABLE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _FE_SCALE_NOT_AVAILABLE@GOTPAGEOFF]
	ldr	x10, [x9]
	ldr	x11, [x20, #40]
	str	x10, [x11]
	str	w8, [x20, #16]
	ldr	x10, [x9]
	ldr	x11, [x20, #24]
	str	x10, [x11]
	str	w8, [x20]
	ldr	x8, [x9]
	ldr	x9, [x20, #8]
	str	x8, [x9]
	str	xzr, [x19]
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_lgdt330x_sw_reset
LBB0_13:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
	.p2align	2                               ; @lgdt330x_init.lgdt3302_init_data
_lgdt330x_init.lgdt3302_init_data:
	.long	131                             ; 0x83
	.long	0                               ; 0x0
	.long	130                             ; 0x82
	.long	135                             ; 0x87
	.long	129                             ; 0x81
	.long	142                             ; 0x8e
	.long	128                             ; 0x80
	.long	1                               ; 0x1
	.long	134                             ; 0x86
	.long	251                             ; 0xfb
	.long	137                             ; 0x89
	.long	64                              ; 0x40
	.long	136                             ; 0x88
	.long	147                             ; 0x93
	.long	135                             ; 0x87
	.long	0                               ; 0x0
	.long	141                             ; 0x8d
	.long	198                             ; 0xc6
	.long	140                             ; 0x8c
	.long	64                              ; 0x40
	.long	143                             ; 0x8f
	.long	7                               ; 0x7
	.long	142                             ; 0x8e
	.long	254                             ; 0xfe
	.long	139                             ; 0x8b
	.long	8                               ; 0x8
	.long	138                             ; 0x8a
	.long	154                             ; 0x9a

	.p2align	2                               ; @lgdt330x_init.lgdt3303_init_data
_lgdt330x_init.lgdt3303_init_data:
	.long	76                              ; 0x4c
	.long	20                              ; 0x14

	.p2align	2                               ; @lgdt330x_init.flip_1_lgdt3303_init_data
_lgdt330x_init.flip_1_lgdt3303_init_data:
	.long	76                              ; 0x4c
	.long	20                              ; 0x14
	.long	135                             ; 0x87
	.long	243                             ; 0xf3

	.p2align	2                               ; @lgdt330x_init.flip_2_lgdt3303_init_data
_lgdt330x_init.flip_2_lgdt3303_init_data:
	.long	76                              ; 0x4c
	.long	20                              ; 0x14
	.long	135                             ; 0x87
	.long	218                             ; 0xda

	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"LGDT3302"

l_.str.1:                               ; @.str.1
	.asciz	"LGDT3303"

l_.str.2:                               ; @.str.2
	.asciz	"undefined"

l_.str.3:                               ; @.str.3
	.asciz	"Only LGDT3302 and LGDT3303 are supported chips.\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.4:                               ; @.str.4
	.asciz	"Initialized the %s chip\n"

	.comm	_FE_SCALE_NOT_AVAILABLE,8,3     ; @FE_SCALE_NOT_AVAILABLE
	.no_dead_strip	_lgdt330x_init
.subsections_via_symbols
