	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3305_spectral_inversion
_lgdt3305_spectral_inversion:           ## @lgdt3305_spectral_inversion
	.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
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	callq	_lg_dbg
	movl	(%rbx), %eax
	leal	-129(%rax), %ecx
	cmpl	$2, %ecx
	jae	LBB0_1
## %bb.3:
	movq	_LGDT3305_FEC_BLOCK_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%r15d, %r15d
	sete	%al
	leal	(%rax,%rax), %edx
	addl	$253, %edx
	jmp	LBB0_4
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_5
## %bb.2:
	movq	_LGDT3305_CR_CTRL_7@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	testl	%r15d, %r15d
	setne	%dl
	shll	$7, %edx
	orl	$121, %edx
LBB0_4:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_lgdt3305_write_reg             ## TAILCALL
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"(%d)\n"

	.comm	_LGDT3305_CR_CTRL_7,4,2         ## @LGDT3305_CR_CTRL_7
	.comm	_LGDT3305_FEC_BLOCK_CTRL,4,2    ## @LGDT3305_FEC_BLOCK_CTRL
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_lgdt3305_spectral_inversion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3305_spectral_inversion
_lgdt3305_spectral_inversion:           ; @lgdt3305_spectral_inversion
	.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, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x2
	bl	_lg_dbg
	ldr	w8, [x21]
	sub	w9, w8, #129
	cmp	w9, #2
	b.hs	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _LGDT3305_FEC_BLOCK_CTRL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LGDT3305_FEC_BLOCK_CTRL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w8, #253
	mov	w9, #255
	b	LBB0_4
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.3:
Lloh5:
	adrp	x8, _LGDT3305_CR_CTRL_7@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LGDT3305_CR_CTRL_7@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w8, #249
	mov	w9, #121
LBB0_4:
	cmp	w20, #0
	csel	w2, w9, w8, eq
	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	_lgdt3305_write_reg
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"(%d)\n"

	.comm	_LGDT3305_CR_CTRL_7,4,2         ; @LGDT3305_CR_CTRL_7
	.comm	_LGDT3305_FEC_BLOCK_CTRL,4,2    ; @LGDT3305_FEC_BLOCK_CTRL
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_lgdt3305_spectral_inversion
.subsections_via_symbols
