	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gt215_clk_info
_gt215_clk_info:                        ## @gt215_clk_info
	.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	%rcx, %r14
	movl	%edx, %ebx
	movl	%esi, %r15d
	callq	_gt215_clk
	movl	$0, (%r14)
	cmpl	$108000, %ebx                   ## imm = 0x1A5E0
	je	LBB0_5
## %bb.1:
	cmpl	$100000, %ebx                   ## imm = 0x186A0
	je	LBB0_4
## %bb.2:
	cmpl	$27000, %ebx                    ## imm = 0x6978
	jne	LBB0_6
## %bb.3:
	movl	$256, (%r14)                    ## imm = 0x100
	movl	$27000, %eax                    ## imm = 0x6978
	jmp	LBB0_11
LBB0_5:
	movl	$8512, (%r14)                   ## imm = 0x2140
	movl	$108000, %eax                   ## imm = 0x1A5E0
	jmp	LBB0_11
LBB0_4:
	movl	$8448, (%r14)                   ## imm = 0x2100
	movl	$100000, %eax                   ## imm = 0x186A0
	jmp	LBB0_11
LBB0_6:
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_read_vco
	movl	%eax, %r15d
	addl	%eax, %r15d
	movl	%r15d, %eax
	cltd
	idivl	%ebx
	movl	%eax, %edi
	movl	$65, %esi
	callq	_min
	movl	%eax, %ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
	addl	$3000, %ebx                     ## imm = 0xBB8
	cmpl	%eax, %ebx
	jge	LBB0_8
## %bb.7:
	incl	%ecx
	movl	%r15d, %eax
	cltd
	idivl	%ecx
LBB0_8:
	cmpl	$5, %ecx
	jl	LBB0_10
## %bb.9:
	shll	$16, %ecx
	addl	$-118528, %ecx                  ## imm = 0xFFFE3100
	movl	%ecx, (%r14)
	jmp	LBB0_11
LBB0_10:
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERANGE,4,2                     ## @ERANGE
	.no_dead_strip	_gt215_clk_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gt215_clk_info
_gt215_clk_info:                        ; @gt215_clk_info
	.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, x3
	mov	x20, x2
	mov	x21, x1
	bl	_gt215_clk
	str	wzr, [x19]
	sub	w8, w20, #26, lsl #12           ; =106496
	cmp	w8, #1504
	b.eq	LBB0_4
; %bb.1:
	mov	w8, #34464
	movk	w8, #1, lsl #16
	cmp	w20, w8
	b.eq	LBB0_5
; %bb.2:
	mov	w8, #27000
	cmp	w20, w8
	b.ne	LBB0_6
; %bb.3:
	mov	w8, #256
	str	w8, [x19]
	mov	w0, #27000
	b	LBB0_9
LBB0_4:
	mov	w8, #8512
	str	w8, [x19]
	mov	w0, #42464
	movk	w0, #1, lsl #16
	b	LBB0_9
LBB0_5:
	mov	w8, #8448
	str	w8, [x19]
	mov	w0, #34464
	movk	w0, #1, lsl #16
	b	LBB0_9
LBB0_6:
	mov	x1, x21
	bl	_read_vco
	lsl	w21, w0, #1
	sdiv	w0, w21, w20
	mov	w1, #65
	bl	_min
	mov	x8, x0
	sdiv	w9, w21, w0
	add	w10, w20, #3000
	add	w11, w0, #1
	sdiv	w11, w21, w11
	cmp	w10, w9
	csel	w0, w9, w11, ge
	cinc	w8, w8, lt
	cmp	w8, #5
	b.lt	LBB0_8
; %bb.7:
	mov	w9, #12544
	movk	w9, #65534, lsl #16
	add	w8, w9, w8, lsl #16
	str	w8, [x19]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _ERANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERANGE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_ERANGE,4,2                     ; @ERANGE
	.no_dead_strip	_gt215_clk_info
.subsections_via_symbols
