	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ci_enable_ds_master_switch
_ci_enable_ds_master_switch:            ## @ci_enable_ds_master_switch
	.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, %ebx
	movq	%rdi, %r15
	callq	_ci_get_pi
	movq	(%rax), %rax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_PPSMC_MSG_MASTER_DeepSleep_ON@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_5:
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	_PPSMC_MSG_MASTER_DeepSleep_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
	jmp	LBB0_9
LBB0_4:
	movq	_PPSMC_MSG_MASTER_DeepSleep_OFF@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_ci_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_MASTER_DeepSleep_ON,4,2 ## @PPSMC_MSG_MASTER_DeepSleep_ON
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_MASTER_DeepSleep_OFF,4,2 ## @PPSMC_MSG_MASTER_DeepSleep_OFF
	.no_dead_strip	_ci_enable_ds_master_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ci_enable_ds_master_switch
_ci_enable_ds_master_switch:            ; @ci_enable_ds_master_switch
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_ci_get_pi
	ldr	x8, [x0]
	cbz	w20, LBB0_3
; %bb.1:
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _PPSMC_MSG_MASTER_DeepSleep_ON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_MASTER_DeepSleep_ON@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:
	cbz	x8, LBB0_6
LBB0_4:
Lloh2:
	adrp	x8, _PPSMC_MSG_MASTER_DeepSleep_OFF@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PPSMC_MSG_MASTER_DeepSleep_OFF@GOTPAGEOFF]
LBB0_5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ci_send_msg_to_smc
Lloh4:
	adrp	x8, _PPSMC_Result_OK@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PPSMC_Result_OK@GOTPAGEOFF]
Lloh6:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_7
LBB0_6:
	mov	w0, #0
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_MASTER_DeepSleep_ON,4,2 ; @PPSMC_MSG_MASTER_DeepSleep_ON
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_MASTER_DeepSleep_OFF,4,2 ; @PPSMC_MSG_MASTER_DeepSleep_OFF
	.no_dead_strip	_ci_enable_ds_master_switch
.subsections_via_symbols
