	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function radeon_vga_mode_valid
_radeon_vga_mode_valid:                 ## @radeon_vga_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	movq	(%rax), %rdi
	movslq	(%rsi), %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %r14
	cmpl	(%rdi), %eax
	jg	LBB0_4
## %bb.1:
	movq	%rsi, %rbx
	callq	_ASIC_IS_RN50
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_radeon_mode_bandwidth
	cmpl	$300, %eax                      ## imm = 0x12C
	jg	LBB0_4
LBB0_3:
	movq	_MODE_OK@GOTPCREL(%rip), %r14
LBB0_4:
	movl	(%r14), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_radeon_vga_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function radeon_vga_mode_valid
_radeon_vga_mode_valid:                 ; @radeon_vga_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
	ldr	x8, [x0]
	ldr	x0, [x8]
	ldrsw	x8, [x1]
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	ldr	w10, [x0]
	add	w8, w8, w9
	cmp	w8, w10
	b.gt	LBB0_3
; %bb.1:
	mov	x19, x1
	bl	_ASIC_IS_RN50
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x19
	mov	w1, #4
	bl	_radeon_mode_bandwidth
	cmp	w0, #300
	b.le	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _MODE_CLOCK_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_CLOCK_HIGH@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh2:
	adrp	x8, _MODE_OK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MODE_OK@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_radeon_vga_mode_valid
.subsections_via_symbols
