	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv740_get_dll_speed            ## -- Begin function rv740_get_dll_speed
	.p2align	4, 0x90
_rv740_get_dll_speed:                   ## @rv740_get_dll_speed
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	testl	%edi, %edi
	setne	%al
	addl	%eax, %eax
	addl	$2, %eax
	imull	%esi, %eax
	cltq
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movslq	%eax, %rcx
	movq	_dll_speed_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rcx, (%rax)
	jle	LBB0_34
## %bb.1:
	cmpq	%rcx, 8(%rax)
	jge	LBB0_4
## %bb.2:
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_4:
	cmpq	%rcx, 32(%rax)
	jge	LBB0_6
## %bb.5:
	movl	$1, %edx
	cmpq	%rcx, 24(%rax)
	jge	LBB0_3
LBB0_6:
	cmpq	%rcx, 56(%rax)
	jge	LBB0_8
## %bb.7:
	movl	$2, %edx
	cmpq	%rcx, 48(%rax)
	jge	LBB0_3
LBB0_8:
	cmpq	%rcx, 80(%rax)
	jge	LBB0_10
## %bb.9:
	movl	$3, %edx
	cmpq	%rcx, 72(%rax)
	jge	LBB0_3
LBB0_10:
	cmpq	%rcx, 104(%rax)
	jge	LBB0_12
## %bb.11:
	movl	$4, %edx
	cmpq	%rcx, 96(%rax)
	jge	LBB0_3
LBB0_12:
	cmpq	%rcx, 128(%rax)
	jge	LBB0_14
## %bb.13:
	movl	$5, %edx
	cmpq	%rcx, 120(%rax)
	jge	LBB0_3
LBB0_14:
	cmpq	%rcx, 152(%rax)
	jge	LBB0_16
## %bb.15:
	movl	$6, %edx
	cmpq	%rcx, 144(%rax)
	jge	LBB0_3
LBB0_16:
	cmpq	%rcx, 176(%rax)
	jge	LBB0_18
## %bb.17:
	movl	$7, %edx
	cmpq	%rcx, 168(%rax)
	jge	LBB0_3
LBB0_18:
	cmpq	%rcx, 200(%rax)
	jge	LBB0_20
## %bb.19:
	movl	$8, %edx
	cmpq	%rcx, 192(%rax)
	jge	LBB0_3
LBB0_20:
	cmpq	%rcx, 224(%rax)
	jge	LBB0_22
## %bb.21:
	movl	$9, %edx
	cmpq	%rcx, 216(%rax)
	jge	LBB0_3
LBB0_22:
	cmpq	%rcx, 248(%rax)
	jge	LBB0_24
## %bb.23:
	movl	$10, %edx
	cmpq	%rcx, 240(%rax)
	jge	LBB0_3
LBB0_24:
	cmpq	%rcx, 272(%rax)
	jge	LBB0_26
## %bb.25:
	movl	$11, %edx
	cmpq	%rcx, 264(%rax)
	jge	LBB0_3
LBB0_26:
	cmpq	%rcx, 296(%rax)
	jge	LBB0_28
## %bb.27:
	movl	$12, %edx
	cmpq	%rcx, 288(%rax)
	jge	LBB0_3
LBB0_28:
	cmpq	%rcx, 320(%rax)
	jge	LBB0_30
## %bb.29:
	movl	$13, %edx
	cmpq	%rcx, 312(%rax)
	jge	LBB0_3
LBB0_30:
	cmpq	%rcx, 344(%rax)
	jge	LBB0_32
## %bb.31:
	movl	$14, %edx
	cmpq	%rcx, 336(%rax)
	jge	LBB0_3
LBB0_32:
	cmpq	%rcx, 368(%rax)
	jge	LBB0_34
## %bb.33:
	movl	$15, %edx
	cmpq	%rcx, 360(%rax)
	jge	LBB0_3
LBB0_34:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
	movl	$15, %eax
	popq	%rbp
	retq
LBB0_3:
	leaq	(%rdx,%rdx,2), %rcx
	movl	16(%rax,%rcx,8), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dll_speed_table,8,3            ## @dll_speed_table
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Target MCLK greater than largest MCLK in DLL speed table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv740_get_dll_speed            ; -- Begin function rv740_get_dll_speed
	.p2align	2
_rv740_get_dll_speed:                   ; @rv740_get_dll_speed
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	w8, #4
	mov	w9, #2
	cmp	w0, #0
	csel	w8, w9, w8, eq
	mul	w8, w8, w1
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	sxtw	x9, w8
Lloh0:
	adrp	x8, _dll_speed_table@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dll_speed_table@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x10, [x8]
	cmp	x10, x9
	b.le	LBB0_34
; %bb.1:
	ldr	x10, [x8, #8]
	cmp	x10, x9
	b.ge	LBB0_4
; %bb.2:
	mov	x9, #0
LBB0_3:
	mov	w10, #24
	madd	x8, x9, x10, x8
	ldr	w0, [x8, #16]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x10, [x8, #32]
	cmp	x10, x9
	b.ge	LBB0_6
; %bb.5:
	ldr	x10, [x8, #24]
	cmp	x10, x9
	b.ge	LBB0_35
LBB0_6:
	ldr	x10, [x8, #56]
	cmp	x10, x9
	b.ge	LBB0_8
; %bb.7:
	ldr	x10, [x8, #48]
	cmp	x10, x9
	b.ge	LBB0_36
LBB0_8:
	ldr	x10, [x8, #80]
	cmp	x10, x9
	b.ge	LBB0_10
; %bb.9:
	ldr	x10, [x8, #72]
	cmp	x10, x9
	b.ge	LBB0_37
LBB0_10:
	ldr	x10, [x8, #104]
	cmp	x10, x9
	b.ge	LBB0_12
; %bb.11:
	ldr	x10, [x8, #96]
	cmp	x10, x9
	b.ge	LBB0_38
LBB0_12:
	ldr	x10, [x8, #128]
	cmp	x10, x9
	b.ge	LBB0_14
; %bb.13:
	ldr	x10, [x8, #120]
	cmp	x10, x9
	b.ge	LBB0_39
LBB0_14:
	ldr	x10, [x8, #152]
	cmp	x10, x9
	b.ge	LBB0_16
; %bb.15:
	ldr	x10, [x8, #144]
	cmp	x10, x9
	b.ge	LBB0_40
LBB0_16:
	ldr	x10, [x8, #176]
	cmp	x10, x9
	b.ge	LBB0_18
; %bb.17:
	ldr	x10, [x8, #168]
	cmp	x10, x9
	b.ge	LBB0_41
LBB0_18:
	ldr	x10, [x8, #200]
	cmp	x10, x9
	b.ge	LBB0_20
; %bb.19:
	ldr	x10, [x8, #192]
	cmp	x10, x9
	b.ge	LBB0_42
LBB0_20:
	ldr	x10, [x8, #224]
	cmp	x10, x9
	b.ge	LBB0_22
; %bb.21:
	ldr	x10, [x8, #216]
	cmp	x10, x9
	b.ge	LBB0_43
LBB0_22:
	ldr	x10, [x8, #248]
	cmp	x10, x9
	b.ge	LBB0_24
; %bb.23:
	ldr	x10, [x8, #240]
	cmp	x10, x9
	b.ge	LBB0_44
LBB0_24:
	ldr	x10, [x8, #272]
	cmp	x10, x9
	b.ge	LBB0_26
; %bb.25:
	ldr	x10, [x8, #264]
	cmp	x10, x9
	b.ge	LBB0_45
LBB0_26:
	ldr	x10, [x8, #296]
	cmp	x10, x9
	b.ge	LBB0_28
; %bb.27:
	ldr	x10, [x8, #288]
	cmp	x10, x9
	b.ge	LBB0_46
LBB0_28:
	ldr	x10, [x8, #320]
	cmp	x10, x9
	b.ge	LBB0_30
; %bb.29:
	ldr	x10, [x8, #312]
	cmp	x10, x9
	b.ge	LBB0_47
LBB0_30:
	ldr	x10, [x8, #344]
	cmp	x10, x9
	b.ge	LBB0_32
; %bb.31:
	ldr	x10, [x8, #336]
	cmp	x10, x9
	b.ge	LBB0_48
LBB0_32:
	ldr	x10, [x8, #368]
	cmp	x10, x9
	b.ge	LBB0_34
; %bb.33:
	ldr	x10, [x8, #360]
	cmp	x10, x9
	b.ge	LBB0_49
LBB0_34:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
	mov	w0, #15
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_35:
	mov	w9, #1
	b	LBB0_3
LBB0_36:
	mov	w9, #2
	b	LBB0_3
LBB0_37:
	mov	w9, #3
	b	LBB0_3
LBB0_38:
	mov	w9, #4
	b	LBB0_3
LBB0_39:
	mov	w9, #5
	b	LBB0_3
LBB0_40:
	mov	w9, #6
	b	LBB0_3
LBB0_41:
	mov	w9, #7
	b	LBB0_3
LBB0_42:
	mov	w9, #8
	b	LBB0_3
LBB0_43:
	mov	w9, #9
	b	LBB0_3
LBB0_44:
	mov	w9, #10
	b	LBB0_3
LBB0_45:
	mov	w9, #11
	b	LBB0_3
LBB0_46:
	mov	w9, #12
	b	LBB0_3
LBB0_47:
	mov	w9, #13
	b	LBB0_3
LBB0_48:
	mov	w9, #14
	b	LBB0_3
LBB0_49:
	mov	w9, #15
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_dll_speed_table,8,3            ; @dll_speed_table
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Target MCLK greater than largest MCLK in DLL speed table\n"

.subsections_via_symbols
