	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ips_adjust
_ips_adjust:                            ## @ips_adjust
	.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
	movq	%rdi, %rbx
	movl	(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	leaq	24(%rbx), %r14
	movq	_IPS_ADJUST_PERIOD@GOTPCREL(%rip), %r13
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_ips_cpu_lower
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_gpu_lower
LBB0_19:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	(%r13), %edi
	callq	_msecs_to_jiffies
	movl	%eax, %edi
	callq	_schedule_timeout_interruptible
	xorl	%eax, %eax
	callq	_kthread_should_stop
	testl	%eax, %eax
	jne	LBB0_20
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_ips_cpu_busy
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_ips_gpu_busy
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	cmpq	$0, 32(%rbx)
	je	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_update_turbo_limits
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	cmpq	$0, 16(%rbx)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_enable_cpu_turbo
	cmpq	$0, 8(%rbx)
	je	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_enable_gpu_turbo
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_disable_cpu_turbo
	cmpq	$0, 8(%rbx)
	jne	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_disable_gpu_turbo
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mcp_exceeded
	movq	%rbx, %rdi
	testq	%rax, %rax
	jne	LBB0_10
## %bb.12:                              ##   in Loop: Header=BB0_1 Depth=1
	xorl	%esi, %esi
	callq	_cpu_exceeded
	testl	%eax, %eax
	jne	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r12d, %r12d
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_cpu_raise
	jmp	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_cpu_lower
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_mch_exceeded
	testl	%eax, %eax
	jne	LBB0_11
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.18:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_ips_gpu_raise
	jmp	LBB0_19
LBB0_20:
	movl	(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	xorl	%eax, %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	"starting ips-adjust thread\n"

	.comm	_IPS_ADJUST_PERIOD,4,2          ## @IPS_ADJUST_PERIOD
L_.str.1:                               ## @.str.1
	.asciz	"ips-adjust thread stopped\n"

	.no_dead_strip	_ips_adjust
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ips_adjust
_ips_adjust:                            ; @ips_adjust
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	mov	x20, x0
	ldr	w0, [x20], #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh2:
	adrp	x23, _IPS_ADJUST_PERIOD@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IPS_ADJUST_PERIOD@GOTPAGEOFF]
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_cpu_lower
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_gpu_lower
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x23]
	bl	_msecs_to_jiffies
	bl	_schedule_timeout_interruptible
	bl	_kthread_should_stop
	cbnz	w0, LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_ips_cpu_busy
	mov	x22, x0
	mov	x0, x19
	bl	_ips_gpu_busy
	mov	x21, x0
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_update_turbo_limits
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_enable_cpu_turbo
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_enable_gpu_turbo
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_disable_cpu_turbo
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_8
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_disable_gpu_turbo
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_mcp_exceeded
	cbnz	x0, LBB0_1
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	mov	w1, #0
	bl	_cpu_exceeded
	cbnz	w0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w22, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_cpu_raise
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_cpu_lower
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_mch_exceeded
	cbnz	w0, LBB0_2
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
	cbz	w21, LBB0_2
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x19
	bl	_ips_gpu_raise
	b	LBB0_3
LBB0_19:
	ldr	w0, [x19]
Lloh4:
	adrp	x1, l_.str.1@PAGE
Lloh5:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"starting ips-adjust thread\n"

	.comm	_IPS_ADJUST_PERIOD,4,2          ; @IPS_ADJUST_PERIOD
l_.str.1:                               ; @.str.1
	.asciz	"ips-adjust thread stopped\n"

	.no_dead_strip	_ips_adjust
.subsections_via_symbols
