	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_exceeded
_cpu_exceeded:                          ## @cpu_exceeded
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	20(%rdi), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	xorl	%eax, %eax
	testl	%r14d, %r14d
	sete	%al
	movq	24(%rbx), %rcx
	imull	$100, (%rcx), %ecx
	cmpl	%ecx, (%rbx,%rax,4)
	setg	%al
	imull	$100, 12(%rbx), %ecx
	cmpl	%ecx, 8(%rbx)
	setg	%r14b
	orb	%al, %r14b
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	cmpb	$1, %r14b
	jne	LBB0_2
## %bb.1:
	movl	16(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
LBB0_2:
	movzbl	%r14b, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPU power or thermal limit exceeded\n"

	.no_dead_strip	_cpu_exceeded
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_exceeded
_cpu_exceeded:                          ; @cpu_exceeded
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	cmp	w1, #0
	cset	w20, eq
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19, w20, uxtw #2]
	ldr	x9, [x19, #24]
	ldr	w9, [x9]
	mov	w10, #100
	mul	w9, w9, w10
	ldp	w11, w12, [x19, #8]
	mul	w10, w12, w10
	cmp	w11, w10
	ccmp	w8, w9, #0, le
	cset	w20, gt
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	cmp	w20, #1
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_2:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPU power or thermal limit exceeded\n"

	.no_dead_strip	_cpu_exceeded
.subsections_via_symbols
