	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_program_power_levels_0_to_n
_trinity_program_power_levels_0_to_n:   ## @trinity_program_power_levels_0_to_n
	.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	%rdx, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	callq	_trinity_get_ps
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_trinity_get_ps
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%rax), %r12
	cmpl	$0, (%r15)
	je	LBB0_4
LBB0_9:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r13, %rsi
	movq	%r14, %rdi
	movq	%r12, %rdx
	callq	_trinity_program_power_level
	movq	%r14, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_trinity_power_level_enable_disable
	incq	%r12
	movslq	(%r15), %rbx
	addq	$4, %r13
	cmpq	%rbx, %r12
	jb	LBB0_10
## %bb.5:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	cmpq	%rbx, %r12
	jbe	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_trinity_power_level_enable_disable
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_7
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	$1, %r12d
	cmpl	$0, (%r15)
	jne	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	%rbx, %r12
	ja	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_trinity_program_power_levels_0_to_n
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trinity_program_power_levels_0_to_n
_trinity_program_power_levels_0_to_n:   ; @trinity_program_power_levels_0_to_n
	.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	x21, x2
	mov	x19, x0
	mov	x0, x1
	bl	_trinity_get_ps
	mov	x20, x0
	mov	x0, x21
	bl	_trinity_get_ps
	cbz	x0, LBB0_7
; %bb.1:
	ldrsw	x23, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_8
LBB0_2:
	mov	x24, #0
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	add	x1, x8, x24
	mov	x0, x19
	mov	x2, x22
	bl	_trinity_program_power_level
	mov	x0, x19
	mov	x1, x22
	mov	w2, #1
	bl	_trinity_power_level_enable_disable
	add	x22, x22, #1
	ldrsw	x21, [x20]
	add	x24, x24, #4
	cmp	x22, x21
	b.lo	LBB0_3
; %bb.4:
	cmp	x23, x21
	b.ls	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x21
	mov	w2, #0
	bl	_trinity_power_level_enable_disable
	add	x21, x21, #1
	cmp	x23, x21
	b.ne	LBB0_5
LBB0_6:
	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
LBB0_7:
	mov	w23, #1
	ldr	w8, [x20]
	cbnz	w8, LBB0_2
LBB0_8:
	mov	x21, #0
	cmp	x23, x21
	b.hi	LBB0_5
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_trinity_program_power_levels_0_to_n
.subsections_via_symbols
