	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function thc63_mode_valid
_thc63_mode_valid:                      ## @thc63_mode_valid
	.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	%rsi, %rbx
	callq	_to_thc63
	cmpq	$0, (%rax)
	movl	$8000, %ecx                     ## imm = 0x1F40
	movl	$40000, %eax                    ## imm = 0x9C40
	cmovel	%ecx, %eax
	movl	$135000, %ecx                   ## imm = 0x20F58
	movl	$150000, %esi                   ## imm = 0x249F0
	cmovel	%ecx, %esi
	movl	(%rbx), %edx
	cmpl	%esi, %edx
	jbe	LBB0_1
## %bb.2:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rcx
	cmpl	%eax, %edx
	jb	LBB0_4
	jmp	LBB0_5
LBB0_1:
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	cmpl	%eax, %edx
	jae	LBB0_5
LBB0_4:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_thc63_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function thc63_mode_valid
_thc63_mode_valid:                      ; @thc63_mode_valid
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_to_thc63
	ldr	x8, [x0]
	cmp	x8, #0
	mov	w8, #40000
	mov	w9, #8000
	csel	w8, w9, w8, eq
	mov	w9, #18928
	movk	w9, #2, lsl #16
	mov	w10, #3928
	movk	w10, #2, lsl #16
	csel	w9, w10, w9, eq
	ldr	w10, [x19]
Lloh0:
	adrp	x11, _MODE_CLOCK_LOW@GOTPAGE
Lloh1:
	ldr	x11, [x11, _MODE_CLOCK_LOW@GOTPAGEOFF]
Lloh2:
	adrp	x12, _MODE_CLOCK_HIGH@GOTPAGE
Lloh3:
	ldr	x12, [x12, _MODE_CLOCK_HIGH@GOTPAGEOFF]
Lloh4:
	adrp	x13, _MODE_OK@GOTPAGE
Lloh5:
	ldr	x13, [x13, _MODE_OK@GOTPAGEOFF]
	cmp	w10, w9
	csel	x9, x12, x13, hi
	cmp	w10, w8
	csel	x8, x11, x9, lo
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_thc63_mode_valid
.subsections_via_symbols
