	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdlcd_crtc_mode_valid
_hdlcd_crtc_mode_valid:                 ## @hdlcd_crtc_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	_crtc_to_hdlcd_priv
	movslq	(%rbx), %rcx
	imulq	$1000, %rcx, %rbx               ## imm = 0x3E8
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_clk_round_rate
	subq	%rbx, %rax
	movq	%rax, %rdi
	callq	_abs
	imull	$1000, %eax, %eax               ## imm = 0x3E8
	cmpl	%ebx, %eax
	jle	LBB0_1
## %bb.2:
	movq	_MODE_NOCLOCK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_NOCLOCK,4,2               ## @MODE_NOCLOCK
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_hdlcd_crtc_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdlcd_crtc_mode_valid
_hdlcd_crtc_mode_valid:                 ; @hdlcd_crtc_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	_crtc_to_hdlcd_priv
	ldrsw	x8, [x19]
	mov	w20, #1000
	mul	x19, x8, x20
	ldr	w0, [x0]
	mov	x1, x19
	bl	_clk_round_rate
	sub	x0, x0, x19
	bl	_abs
	mul	w8, w0, w20
Lloh0:
	adrp	x9, _MODE_NOCLOCK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MODE_NOCLOCK@GOTPAGEOFF]
Lloh2:
	adrp	x10, _MODE_OK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _MODE_OK@GOTPAGEOFF]
	cmp	w8, w19
	csel	x8, x9, x10, gt
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_NOCLOCK,4,2               ; @MODE_NOCLOCK
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_hdlcd_crtc_mode_valid
.subsections_via_symbols
