	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_check_oper_mode
_lgdt3306a_check_oper_mode:             ## @lgdt3306a_check_oper_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$0, -12(%rbp)
	leaq	-12(%rbp), %rdx
	movl	$129, %esi
	callq	_lgdt3306a_read_reg
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_warn
	movq	_LG3306_UNKNOWN_MODE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movl	-12(%rbp), %eax
	testb	$-128, %al
	jne	LBB0_2
## %bb.3:
	testb	$8, %al
	je	LBB0_8
## %bb.4:
	leaq	-12(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$166, %esi
	callq	_lgdt3306a_read_reg
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	-12(%rbp), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, -12(%rbp)
	testb	$4, %al
	jne	LBB0_6
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	callq	_dbg_info
	movq	_LG3306_QAM64@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_dbg_info
	movq	_LG3306_VSB@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	callq	_dbg_info
	movq	_LG3306_QAM256@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"VSB\n"

	.comm	_LG3306_VSB,4,2                 ## @LG3306_VSB
L_.str.1:                               ## @.str.1
	.asciz	"QAM256\n"

	.comm	_LG3306_QAM256,4,2              ## @LG3306_QAM256
L_.str.2:                               ## @.str.2
	.asciz	"QAM64\n"

	.comm	_LG3306_QAM64,4,2               ## @LG3306_QAM64
L_.str.3:                               ## @.str.3
	.asciz	"UNKNOWN\n"

	.comm	_LG3306_UNKNOWN_MODE,4,2        ## @LG3306_UNKNOWN_MODE
	.no_dead_strip	_lgdt3306a_check_oper_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_check_oper_mode
_lgdt3306a_check_oper_mode:             ; @lgdt3306a_check_oper_mode
	.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
	mov	x19, x0
	str	wzr, [sp, #12]
	add	x2, sp, #12
	mov	w1, #129
	bl	_lgdt3306a_read_reg
	cbz	w0, LBB0_3
LBB0_1:
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_warn
Lloh2:
	adrp	x8, _LG3306_UNKNOWN_MODE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LG3306_UNKNOWN_MODE@GOTPAGEOFF]
LBB0_2:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_3:
	ldr	w8, [sp, #12]
	tbnz	w8, #7, LBB0_8
; %bb.4:
	tbz	w8, #3, LBB0_1
; %bb.5:
	add	x2, sp, #12
	mov	x0, x19
	mov	w1, #166
	bl	_lgdt3306a_read_reg
	cbnz	w0, LBB0_1
; %bb.6:
	ldr	w8, [sp, #12]
	asr	w9, w8, #2
	str	w9, [sp, #12]
	tbnz	w8, #2, LBB0_9
; %bb.7:
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dbg_info
Lloh6:
	adrp	x8, _LG3306_QAM64@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LG3306_QAM64@GOTPAGEOFF]
	b	LBB0_2
LBB0_8:
Lloh8:
	adrp	x0, l_.str@PAGE
Lloh9:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dbg_info
Lloh10:
	adrp	x8, _LG3306_VSB@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LG3306_VSB@GOTPAGEOFF]
	b	LBB0_2
LBB0_9:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dbg_info
Lloh14:
	adrp	x8, _LG3306_QAM256@GOTPAGE
Lloh15:
	ldr	x8, [x8, _LG3306_QAM256@GOTPAGEOFF]
	b	LBB0_2
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"VSB\n"

	.comm	_LG3306_VSB,4,2                 ; @LG3306_VSB
l_.str.1:                               ; @.str.1
	.asciz	"QAM256\n"

	.comm	_LG3306_QAM256,4,2              ; @LG3306_QAM256
l_.str.2:                               ; @.str.2
	.asciz	"QAM64\n"

	.comm	_LG3306_QAM64,4,2               ; @LG3306_QAM64
l_.str.3:                               ; @.str.3
	.asciz	"UNKNOWN\n"

	.comm	_LG3306_UNKNOWN_MODE,4,2        ; @LG3306_UNKNOWN_MODE
	.no_dead_strip	_lgdt3306a_check_oper_mode
.subsections_via_symbols
