	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psm_set_user_performance_state ## -- Begin function psm_set_user_performance_state
	.p2align	4, 0x90
_psm_set_user_performance_state:        ## @psm_set_user_performance_state
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r10
	xorl	%eax, %eax
	testq	%r10, %r10
	je	LBB0_8
## %bb.1:
	movl	(%rdi), %r8d
	movq	%r10, (%rdx)
	movq	_PP_StateUILabel_Performance@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	andl	$-2, %esi
	cmpl	$128, %esi
	movl	%r9d, %esi
	jne	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r8d, %r8d
	jle	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testl	%esi, (%r10)
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	addq	8(%rdi), %r10
	movq	%r10, (%rdx)
	decl	%ecx
	jne	LBB0_4
	jmp	LBB0_6
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_StateUILabel_Performance,4,2 ## @PP_StateUILabel_Performance
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_psm_set_user_performance_state ; -- Begin function psm_set_user_performance_state
	.p2align	2
_psm_set_user_performance_state:        ; @psm_set_user_performance_state
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_7
; %bb.1:
	ldr	w9, [x0]
	str	x8, [x2]
Lloh0:
	adrp	x10, _PP_StateUILabel_Performance@GOTPAGE
Lloh1:
	ldr	x10, [x10, _PP_StateUILabel_Performance@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	and	w11, w1, #0xfffffffe
	mov	x1, x10
	cmp	w11, #128
	b.ne	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w9, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, x9
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w12, [x8]
	tst	w12, w1
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	ldr	x12, [x0, #8]
	add	x8, x12, x8
	str	x8, [x2]
	subs	w11, w11, #1
	b.ne	LBB0_5
	b	LBB0_2
LBB0_7:
	mov	w0, #0
	ret
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_StateUILabel_Performance,4,2 ; @PP_StateUILabel_Performance
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
