	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_get_max_engine_clock_in_mhz ## -- Begin function amdgpu_amdkfd_get_max_engine_clock_in_mhz
	.p2align	4, 0x90
_amdgpu_amdkfd_get_max_engine_clock_in_mhz: ## @amdgpu_amdkfd_get_max_engine_clock_in_mhz
	.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	%rdi, %rbx
	callq	_amdgpu_sriov_vf
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movslq	8(%rbx), %rax
	jmp	LBB0_5
LBB0_2:
	cmpq	$0, (%rbx)
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_amdgpu_dpm_get_sclk
	cltq
LBB0_5:
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_3:
	movl	$100, %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_amdkfd_get_max_engine_clock_in_mhz ; -- Begin function amdgpu_amdkfd_get_max_engine_clock_in_mhz
	.p2align	2
_amdgpu_amdkfd_get_max_engine_clock_in_mhz: ; @amdgpu_amdkfd_get_max_engine_clock_in_mhz
	.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, x0
	bl	_amdgpu_sriov_vf
	cbz	x0, LBB0_2
; %bb.1:
	ldrsw	x8, [x19, #8]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	b	LBB0_4
LBB0_2:
	ldr	x8, [x19]
	cbz	x8, LBB0_6
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_amdgpu_dpm_get_sclk
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
LBB0_4:
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w0, w8, w9
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
	mov	w0, #100
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
