	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lgdt3306a_set_if
_lgdt3306a_set_if:                      ## @lgdt3306a_set_if
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rsi), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_1
## %bb.4:
	movq	(%r14), %rax
	addq	$4, %rax
	jmp	LBB0_5
LBB0_1:
	cmpl	$128, %eax
	jne	LBB0_3
## %bb.2:
	movq	(%r14), %rax
LBB0_5:
	movl	(%rax), %ebx
	xorl	%r15d, %r15d
	movl	$52, %r12d
	cmpl	$3999, %ebx                     ## imm = 0xF9F
	jle	LBB0_6
## %bb.9:
	cmpl	$4000, %ebx                     ## imm = 0xFA0
	je	LBB0_13
## %bb.10:
	cmpl	$5000, %ebx                     ## imm = 0x1388
	je	LBB0_14
## %bb.11:
	cmpl	$5380, %ebx                     ## imm = 0x1504
	jne	LBB0_12
## %bb.15:
	movl	$20, %r15d
	movl	$86, %r12d
	jmp	LBB0_16
LBB0_6:
	cmpl	$3250, %ebx                     ## imm = 0xCB2
	je	LBB0_16
## %bb.7:
	cmpl	$3500, %ebx                     ## imm = 0xDAC
	jne	LBB0_12
## %bb.8:
	movl	$56, %r12d
	jmp	LBB0_16
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_19
LBB0_13:
	movl	$64, %r12d
	jmp	LBB0_16
LBB0_14:
	movl	$80, %r12d
	jmp	LBB0_16
LBB0_12:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_pr_warn
LBB0_16:
	movq	%r14, %rdi
	movl	$16, %esi
	movl	%r12d, %edx
	callq	_lgdt3306a_write_reg
	testl	%eax, %eax
	jne	LBB0_19
## %bb.17:
	movq	%r14, %rdi
	movl	$17, %esi
	movl	%r15d, %edx
	callq	_lgdt3306a_write_reg
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	shll	$8, %r12d
	orl	%r15d, %r12d
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_dbg_info
	xorl	%eax, %eax
LBB0_19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"IF=%d KHz is not supported, 3250 assumed\n"

L_.str.1:                               ## @.str.1
	.asciz	"if_freq=%d KHz->[%04x]\n"

	.no_dead_strip	_lgdt3306a_set_if
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lgdt3306a_set_if
_lgdt3306a_set_if:                      ; @lgdt3306a_set_if
	.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	x19, x0
	ldr	w8, [x1]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_2
; %bb.1:
	ldr	x8, [x19]
	add	x8, x8, #4
	b	LBB0_4
LBB0_2:
	cmp	w8, #128
	b.ne	LBB0_12
; %bb.3:
	ldr	x8, [x19]
LBB0_4:
	ldr	w20, [x8]
	cmp	w20, #3999
	b.le	LBB0_9
; %bb.5:
	cmp	w20, #4000
	b.eq	LBB0_13
; %bb.6:
	mov	w8, #5000
	cmp	w20, w8
	b.eq	LBB0_14
; %bb.7:
	mov	w8, #5380
	cmp	w20, w8
	b.ne	LBB0_15
; %bb.8:
	mov	w21, #20
	mov	w22, #86
	b	LBB0_17
LBB0_9:
	cmp	w20, #3250
	b.eq	LBB0_16
; %bb.10:
	cmp	w20, #3500
	b.ne	LBB0_15
; %bb.11:
	mov	w21, #0
	mov	w22, #56
	b	LBB0_17
LBB0_12:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_20
LBB0_13:
	mov	w21, #0
	mov	w22, #64
	b	LBB0_17
LBB0_14:
	mov	w21, #0
	mov	w22, #80
	b	LBB0_17
LBB0_15:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_pr_warn
LBB0_16:
	mov	w21, #0
	mov	w22, #52
LBB0_17:
	mov	x0, x19
	mov	w1, #16
	mov	x2, x22
	bl	_lgdt3306a_write_reg
	cbnz	w0, LBB0_20
; %bb.18:
	mov	x0, x19
	mov	w1, #17
	mov	x2, x21
	bl	_lgdt3306a_write_reg
	cbnz	w0, LBB0_20
; %bb.19:
	bfi	w21, w22, #8, #7
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_dbg_info
	mov	w0, #0
LBB0_20:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"IF=%d KHz is not supported, 3250 assumed\n"

l_.str.1:                               ; @.str.1
	.asciz	"if_freq=%d KHz->[%04x]\n"

	.no_dead_strip	_lgdt3306a_set_if
.subsections_via_symbols
