	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sti_hda_connector_mode_valid
_sti_hda_connector_mode_valid:          ## @sti_hda_connector_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	imull	$1000, (%rsi), %r15d            ## imm = 0x3E8
	movq	_CLK_TOLERANCE_HZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	callq	_to_sti_hda_connector
	movq	(%rax), %r13
	movl	(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_hda_get_mode_idx
	movq	_MODE_BAD@GOTPCREL(%rip), %rcx
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	%r15d, %r14d
	subl	%r12d, %r14d
	movl	(%r13), %edi
	movl	%r15d, %esi
	callq	_clk_round_rate
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	cmpl	%r14d, %ebx
	jl	LBB0_4
## %bb.2:
	addl	%r15d, %r12d
	cmpl	%r12d, %ebx
	jg	LBB0_4
## %bb.3:
	movq	_MODE_OK@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	xorl	%eax, %eax
	callq	_DRM_DEBUG_DRIVER
	movq	_MODE_BAD@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CLK_TOLERANCE_HZ,4,2           ## @CLK_TOLERANCE_HZ
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target rate = %d => available rate = %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"hda pixclk=%d not supported\n"

	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_sti_hda_connector_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sti_hda_connector_mode_valid
_sti_hda_connector_mode_valid:          ; @sti_hda_connector_mode_valid
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	w21, [x1]
Lloh0:
	adrp	x8, _CLK_TOLERANCE_HZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CLK_TOLERANCE_HZ@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	bl	_to_sti_hda_connector
	ldr	x22, [x0]
	ldr	w0, [x19]
	add	x1, sp, #12
	bl	_hda_get_mode_idx
	cbz	w0, LBB0_3
; %bb.1:
	mov	w8, #1000
	mul	w19, w21, w8
	add	w21, w19, w20
	sub	w23, w19, w20
	ldr	w0, [x22]
	mov	x1, x19
	bl	_clk_round_rate
	mov	x20, x0
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
	cmp	w20, w23
	ccmp	w20, w21, #0, ge
	b.le	LBB0_4
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_DRM_DEBUG_DRIVER
LBB0_3:
Lloh7:
	adrp	x8, _MODE_BAD@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MODE_BAD@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_CLK_TOLERANCE_HZ,4,2           ; @CLK_TOLERANCE_HZ
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target rate = %d => available rate = %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"hda pixclk=%d not supported\n"

	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_sti_hda_connector_mode_valid
.subsections_via_symbols
