	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function scmi_pd_power
_scmi_pd_power:                         ## @scmi_pd_power
	.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
	callq	_to_scmi_pd
	movq	%rax, %rbx
	movq	8(%rax), %rdi
	movq	(%rdi), %r15
	testl	%r14d, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_SCMI_POWER_STATE_GENERIC_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_SCMI_POWER_STATE_GENERIC_ON@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r14
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	*(%r15)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
                                        ## implicit-def: $rdx
	jmp	LBB0_6
LBB0_5:
	movq	8(%rbx), %rdi
	movl	(%rbx), %esi
	leaq	-32(%rbp), %rdx
	callq	*8(%r15)
	movq	-32(%rbp), %rdx
LBB0_6:
	movq	_EIO@GOTPCREL(%rip), %rsi
	xorl	%ecx, %ecx
	subl	(%rsi), %ecx
	cmpq	%rdx, %r14
	cmovel	%eax, %ecx
	testl	%eax, %eax
	cmovnel	%eax, %ecx
	movl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCMI_POWER_STATE_GENERIC_ON,8,3 ## @SCMI_POWER_STATE_GENERIC_ON
	.comm	_SCMI_POWER_STATE_GENERIC_OFF,8,3 ## @SCMI_POWER_STATE_GENERIC_OFF
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_scmi_pd_power
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function scmi_pd_power
_scmi_pd_power:                         ; @scmi_pd_power
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	bl	_to_scmi_pd
	mov	x20, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x8, _SCMI_POWER_STATE_GENERIC_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCMI_POWER_STATE_GENERIC_OFF@GOTPAGEOFF]
Lloh2:
	adrp	x9, _SCMI_POWER_STATE_GENERIC_ON@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCMI_POWER_STATE_GENERIC_ON@GOTPAGEOFF]
	ldr	x21, [x0]
	cmp	w19, #0
	csel	x8, x8, x9, eq
	ldr	x19, [x8]
	ldr	x8, [x21]
	ldr	w1, [x20]
	mov	x2, x19
	blr	x8
	cbz	w0, LBB0_2
; %bb.1:
                                        ; implicit-def: $x8
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21, #8]
	ldr	x0, [x20, #8]
	ldr	w1, [x20]
	add	x2, sp, #8
	blr	x8
	ldr	x8, [sp, #8]
LBB0_3:
	cmp	x19, x8
	ccmp	w0, #0, #0, ne
Lloh4:
	adrp	x8, _EIO@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	csneg	w0, w0, w8, ne
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_SCMI_POWER_STATE_GENERIC_ON,8,3 ; @SCMI_POWER_STATE_GENERIC_ON
	.comm	_SCMI_POWER_STATE_GENERIC_OFF,8,3 ; @SCMI_POWER_STATE_GENERIC_OFF
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_scmi_pd_power
.subsections_via_symbols
