	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r600_set_thermal_temperature_range
_r600_set_thermal_temperature_range:    ## @r600_set_thermal_temperature_range
	.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
	movl	%esi, %ebx
	xorl	%r14d, %r14d
	testl	%esi, %esi
	cmovlel	%r14d, %ebx
	cmpl	$255000, %edx                   ## imm = 0x3E418
	movl	$255000, %r12d                  ## imm = 0x3E418
	cmovll	%edx, %r12d
	cmpl	%ebx, %r12d
	jge	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movl	%r12d, %edx
	callq	_DRM_ERROR
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_3
LBB0_2:
	movq	_CG_THERMAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movslq	%r12d, %rax
	imulq	$274877907, %rax, %r13          ## imm = 0x10624DD3
	movq	%r13, %rax
	shrq	$63, %rax
	sarq	$38, %r13
	addl	%eax, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	callq	_DIG_THERM_INTH
	movq	_DIG_THERM_INTH_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_CG_THERMAL_INT@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%ebx, %eax
	imulq	$274877907, %rax, %rdi          ## imm = 0x10624DD3
	shrq	$38, %rdi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_DIG_THERM_INTL
	movq	_DIG_THERM_INTL_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_CG_THERMAL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_DIG_THERM_DPM
	movq	_DIG_THERM_DPM_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax)
	movl	%r12d, 4(%rax)
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid thermal range: %d - %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CG_THERMAL_INT,4,2             ## @CG_THERMAL_INT
	.comm	_DIG_THERM_INTH_MASK,4,2        ## @DIG_THERM_INTH_MASK
	.comm	_DIG_THERM_INTL_MASK,4,2        ## @DIG_THERM_INTL_MASK
	.comm	_CG_THERMAL_CTRL,4,2            ## @CG_THERMAL_CTRL
	.comm	_DIG_THERM_DPM_MASK,4,2         ## @DIG_THERM_DPM_MASK
	.no_dead_strip	_r600_set_thermal_temperature_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r600_set_thermal_temperature_range
_r600_set_thermal_temperature_range:    ; @r600_set_thermal_temperature_range
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cmp	w1, #0
	csel	w19, w1, wzr, gt
	mov	w8, #58392
	movk	w8, #3, lsl #16
	cmp	w2, w8
	csel	w21, w2, w8, lt
	cmp	w21, w19
	b.ge	LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x21
	bl	_DRM_ERROR
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x20, x0
Lloh5:
	adrp	x24, _CG_THERMAL_INT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _CG_THERMAL_INT@GOTPAGEOFF]
	ldr	w22, [x24]
	mov	w25, #19923
	movk	w25, #4194, lsl #16
	smull	x8, w21, w25
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w23, w8, w9
	mov	x0, x23
	bl	_DIG_THERM_INTH
	mov	x1, x0
Lloh7:
	adrp	x8, _DIG_THERM_INTH_MASK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DIG_THERM_INTH_MASK@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x22
	bl	_WREG32_P
	ldr	w22, [x24]
	umull	x8, w19, w25
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_DIG_THERM_INTL
	mov	x1, x0
Lloh10:
	adrp	x8, _DIG_THERM_INTL_MASK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DIG_THERM_INTL_MASK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x22
	bl	_WREG32_P
Lloh13:
	adrp	x8, _CG_THERMAL_CTRL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CG_THERMAL_CTRL@GOTPAGEOFF]
Lloh15:
	ldr	w22, [x8]
	mov	x0, x23
	bl	_DIG_THERM_DPM
	mov	x1, x0
Lloh16:
	adrp	x8, _DIG_THERM_DPM_MASK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DIG_THERM_DPM_MASK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x22
	bl	_WREG32_P
	mov	w0, #0
	stp	w19, w21, [x20]
LBB0_3:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid thermal range: %d - %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CG_THERMAL_INT,4,2             ; @CG_THERMAL_INT
	.comm	_DIG_THERM_INTH_MASK,4,2        ; @DIG_THERM_INTH_MASK
	.comm	_DIG_THERM_INTL_MASK,4,2        ; @DIG_THERM_INTL_MASK
	.comm	_CG_THERMAL_CTRL,4,2            ; @CG_THERMAL_CTRL
	.comm	_DIG_THERM_DPM_MASK,4,2         ; @DIG_THERM_DPM_MASK
	.no_dead_strip	_r600_set_thermal_temperature_range
.subsections_via_symbols
