	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _set_required_opps
__set_required_opps:                    ## @_set_required_opps
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 16(%rsi)
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r15
	movq	8(%rsi), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.7:
	leaq	4(%r13), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	$0, (%r13)
	jle	LBB0_8
## %bb.9:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r15
	movslq	(%r13), %rax
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_likely
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%r12), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax), %r14d
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	%r14d, %esi
	callq	_dev_pm_genpd_set_performance_state
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %ebx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r15,8), %rdi
	callq	_dev_name
	leaq	L_.str.1(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%ebx, %r8d
	callq	_dev_err
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_19
LBB0_3:
	movq	%r12, %rdi
	callq	_likely
	xorl	%ebx, %ebx
	movl	$0, %r14d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	movq	(%rax), %rax
	movl	(%rax), %r14d
LBB0_5:
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_dev_pm_genpd_set_performance_state
	testl	%eax, %eax
	je	LBB0_19
## %bb.6:
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_dev_name
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%eax, %edx
	movl	%r14d, %ecx
	movl	%r12d, %r8d
	callq	_dev_err
	movl	%r12d, %ebx
	jmp	LBB0_19
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_18:
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_19:
	movl	%ebx, %eax
	addq	$24, %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	"Failed to set performance state of %s: %d (%d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"Failed to set performance rate of %s: %d (%d)\n"

	.no_dead_strip	__set_required_opps
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _set_required_opps
__set_required_opps:                    ; @_set_required_opps
	.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
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_10
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x25, [x1, #8]
	cbz	x25, LBB0_13
; %bb.2:
	add	x20, x22, #4
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x26, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #1
	ldrsw	x8, [x22]
	cmp	x26, x8
	b.ge	LBB0_11
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8, x26, lsl #3]
	ldr	w24, [x8]
	ldr	x0, [x25, x26, lsl #3]
	cbnz	x0, LBB0_8
	b	LBB0_4
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w24, #0
	ldr	x0, [x25, x26, lsl #3]
	cbz	x0, LBB0_4
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x1, x24
	bl	_dev_pm_genpd_set_performance_state
	cbz	w0, LBB0_4
; %bb.9:
	mov	x23, x0
	ldr	x0, [x25, x26, lsl #3]
	bl	_dev_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x3, x24
	mov	x4, x23
	bl	_dev_err
	b	LBB0_12
LBB0_10:
	mov	w23, #0
	b	LBB0_18
LBB0_11:
	mov	w23, #0
LBB0_12:
	mov	x0, x20
	bl	_mutex_unlock
	b	LBB0_18
LBB0_13:
	mov	x0, x21
	bl	_likely
	cbz	x0, LBB0_15
; %bb.14:
	ldr	x8, [x21]
	ldr	x8, [x8]
	ldr	w20, [x8]
	b	LBB0_16
LBB0_15:
	mov	w20, #0
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_pm_genpd_set_performance_state
	mov	x23, x0
	cbz	w0, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_dev_name
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x3, x20
	mov	x4, x23
	bl	_dev_err
LBB0_18:
	mov	x0, x23
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to set performance state of %s: %d (%d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"Failed to set performance rate of %s: %d (%d)\n"

	.no_dead_strip	__set_required_opps
.subsections_via_symbols
