	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_power_level_set_watermark_id ## -- Begin function r600_power_level_set_watermark_id
	.p2align	4, 0x90
_r600_power_level_set_watermark_id:     ## @r600_power_level_set_watermark_id
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_R600_DISPLAY_WATERMARK_HIGH@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	%edx, (%rcx)
	movq	_CTXSW_FREQ_DISPLAY_WATERMARK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	cmovel	%edx, %eax
                                        ## kill: def $esi killed $esi def $rsi
	movq	_CTXSW_PROFILE_INDEX@GOTPCREL(%rip), %rcx
	leal	(,%rsi,4), %edi
	notl	%edi
	andl	$12, %edi
	addq	(%rcx), %rdi
	notl	%edx
	movl	%eax, %esi
	popq	%rbp
	jmp	_WREG32_P                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_DISPLAY_WATERMARK_HIGH,4,2 ## @R600_DISPLAY_WATERMARK_HIGH
	.comm	_CTXSW_FREQ_DISPLAY_WATERMARK,4,2 ## @CTXSW_FREQ_DISPLAY_WATERMARK
	.comm	_CTXSW_PROFILE_INDEX,8,3        ## @CTXSW_PROFILE_INDEX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r600_power_level_set_watermark_id ; -- Begin function r600_power_level_set_watermark_id
	.p2align	2
_r600_power_level_set_watermark_id:     ; @r600_power_level_set_watermark_id
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _R600_DISPLAY_WATERMARK_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _R600_DISPLAY_WATERMARK_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _CTXSW_FREQ_DISPLAY_WATERMARK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CTXSW_FREQ_DISPLAY_WATERMARK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w2
	csel	w8, w9, wzr, eq
Lloh6:
	adrp	x10, _CTXSW_PROFILE_INDEX@GOTPAGE
Lloh7:
	ldr	x10, [x10, _CTXSW_PROFILE_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	mov	w11, #12
	bic	w11, w11, w1, lsl #2
	add	x0, x10, x11
	mvn	w2, w9
	mov	x1, x8
	b	_WREG32_P
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_DISPLAY_WATERMARK_HIGH,4,2 ; @R600_DISPLAY_WATERMARK_HIGH
	.comm	_CTXSW_FREQ_DISPLAY_WATERMARK,4,2 ; @CTXSW_FREQ_DISPLAY_WATERMARK
	.comm	_CTXSW_PROFILE_INDEX,8,3        ; @CTXSW_PROFILE_INDEX
.subsections_via_symbols
