	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_cpu_raise
_ips_cpu_raise:                         ## @ips_cpu_raise
	.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
	cmpl	$0, 4(%rdi)
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	_TURBO_POWER_CURRENT_LIMIT@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_rdmsrl
	xorl	%eax, %eax
	cmpl	$10, (%rbx)
	setge	%al
	leal	(,%rax,8), %ebx
	movq	_THM_MPCPC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	shll	$4, %eax
	leal	(%rax,%rax,4), %esi
	shrl	$3, %esi
	callq	_thm_writew
	movl	(%r14), %edi
	movl	$-1, %esi
	callq	_wrmsrl
	movq	_TURBO_TDP_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	notl	%esi
	orl	%ebx, %esi
	movl	(%r14), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wrmsrl                         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TURBO_POWER_CURRENT_LIMIT,4,2  ## @TURBO_POWER_CURRENT_LIMIT
	.comm	_TURBO_TDP_MASK,4,2             ## @TURBO_TDP_MASK
	.comm	_THM_MPCPC,4,2                  ## @THM_MPCPC
	.comm	_TURBO_TDC_OVR_EN,4,2           ## @TURBO_TDC_OVR_EN
	.comm	_TURBO_TDP_OVR_EN,4,2           ## @TURBO_TDP_OVR_EN
	.no_dead_strip	_ips_cpu_raise
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_cpu_raise
_ips_cpu_raise:                         ; @ips_cpu_raise
	.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	w8, [x0, #4]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _TURBO_POWER_CURRENT_LIMIT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _TURBO_POWER_CURRENT_LIMIT@GOTPAGEOFF]
	ldr	w0, [x20]
	bl	_rdmsrl
	ldr	w8, [x19]
	cmp	w8, #9
	cset	w19, gt
Lloh2:
	adrp	x8, _THM_MPCPC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _THM_MPCPC@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x8, x19
	bfi	w8, w19, #2, #1
	ubfiz	w1, w8, #1, #28
	bl	_thm_writew
	ldr	w0, [x20]
	mov	w1, #-1
	bl	_wrmsrl
Lloh5:
	adrp	x8, _TURBO_TDP_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TURBO_TDP_MASK@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	mvn	w8, w8
	orr	w1, w8, w19, lsl #3
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wrmsrl
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_TURBO_POWER_CURRENT_LIMIT,4,2  ; @TURBO_POWER_CURRENT_LIMIT
	.comm	_TURBO_TDP_MASK,4,2             ; @TURBO_TDP_MASK
	.comm	_THM_MPCPC,4,2                  ; @THM_MPCPC
	.comm	_TURBO_TDC_OVR_EN,4,2           ; @TURBO_TDC_OVR_EN
	.comm	_TURBO_TDP_OVR_EN,4,2           ; @TURBO_TDP_OVR_EN
	.no_dead_strip	_ips_cpu_raise
.subsections_via_symbols
