	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetPowerActionFromPolicy       ## -- Begin function GetPowerActionFromPolicy
	.p2align	4, 0x90
_GetPowerActionFromPolicy:              ## @GetPowerActionFromPolicy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_PowerActionNone@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rdi), %rax
	cmpq	%rcx, %rax
	jne	LBB0_6
## %bb.1:
	movq	_POWER_ACTION_UI_ALLOWED@GOTPCREL(%rip), %rax
	movq	_POWER_ACTION_QUERY_ALLOWED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	cmpl	%edx, 8(%rdi)
	jne	LBB0_16
## %bb.2:
	movq	16(%rdi), %rax
	movq	_POWER_FORCE_TRIGGER_RESET@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	je	LBB0_16
## %bb.3:
	movq	_POWER_USER_NOTIFY_BUTTON@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_5
## %bb.4:
	movq	_PowerActionWarmEject@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	popq	%rbp
	retq
LBB0_6:
	movq	_PowerActionHibernate@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_10
## %bb.7:
	cmpq	$0, 32(%rsi)
	je	LBB0_9
## %bb.8:
	cmpq	$0, 24(%rsi)
	jne	LBB0_10
LBB0_9:
	movq	_PowerActionSleep@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	movq	_PowerActionSleep@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	jne	LBB0_17
## %bb.11:
	cmpq	$0, 16(%rsi)
	je	LBB0_12
LBB0_17:
	popq	%rbp
	retq
LBB0_12:
	cmpq	$0, 8(%rsi)
	jne	LBB0_17
## %bb.13:
	cmpq	$0, (%rsi)
	jne	LBB0_17
## %bb.14:
	testq	%rdx, %rdx
	je	LBB0_15
	jmp	LBB0_16
LBB0_5:
	movq	_POWER_USER_NOTIFY_SHUTDOWN@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	jne	LBB0_16
LBB0_15:
	movq	_PowerActionShutdown@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
LBB0_16:
	movq	%rcx, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PowerActionNone,8,3            ## @PowerActionNone
	.comm	_POWER_ACTION_UI_ALLOWED,4,2    ## @POWER_ACTION_UI_ALLOWED
	.comm	_POWER_ACTION_QUERY_ALLOWED,4,2 ## @POWER_ACTION_QUERY_ALLOWED
	.comm	_POWER_FORCE_TRIGGER_RESET,8,3  ## @POWER_FORCE_TRIGGER_RESET
	.comm	_POWER_USER_NOTIFY_BUTTON,8,3   ## @POWER_USER_NOTIFY_BUTTON
	.comm	_PowerActionWarmEject,8,3       ## @PowerActionWarmEject
	.comm	_POWER_USER_NOTIFY_SHUTDOWN,8,3 ## @POWER_USER_NOTIFY_SHUTDOWN
	.comm	_PowerActionShutdown,8,3        ## @PowerActionShutdown
	.comm	_PowerActionHibernate,8,3       ## @PowerActionHibernate
	.comm	_PowerActionSleep,8,3           ## @PowerActionSleep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetPowerActionFromPolicy       ; -- Begin function GetPowerActionFromPolicy
	.p2align	2
_GetPowerActionFromPolicy:              ; @GetPowerActionFromPolicy
	.cfi_startproc
; %bb.0:
	mov	x8, x0
Lloh0:
	adrp	x9, _PowerActionNone@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PowerActionNone@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x0, [x0]
	cmp	x0, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w10, [x8, #8]
Lloh3:
	adrp	x11, _POWER_ACTION_UI_ALLOWED@GOTPAGE
Lloh4:
	ldr	x11, [x11, _POWER_ACTION_UI_ALLOWED@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
Lloh6:
	adrp	x12, _POWER_ACTION_QUERY_ALLOWED@GOTPAGE
Lloh7:
	ldr	x12, [x12, _POWER_ACTION_QUERY_ALLOWED@GOTPAGEOFF]
Lloh8:
	ldr	w12, [x12]
	orr	w11, w12, w11
	cmp	w10, w11
	b.ne	LBB0_12
; %bb.2:
	ldr	x8, [x8, #16]
Lloh9:
	adrp	x10, _POWER_FORCE_TRIGGER_RESET@GOTPAGE
Lloh10:
	ldr	x10, [x10, _POWER_FORCE_TRIGGER_RESET@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	mov	x0, x9
	cmp	x8, x10
	b.eq	LBB0_11
; %bb.3:
Lloh12:
	adrp	x10, _POWER_USER_NOTIFY_BUTTON@GOTPAGE
Lloh13:
	ldr	x10, [x10, _POWER_USER_NOTIFY_BUTTON@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_16
; %bb.4:
Lloh15:
	adrp	x8, _PowerActionWarmEject@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PowerActionWarmEject@GOTPAGEOFF]
Lloh17:
	ldr	x0, [x8]
	ret
LBB0_5:
Lloh18:
	adrp	x8, _PowerActionHibernate@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PowerActionHibernate@GOTPAGEOFF]
Lloh20:
	ldr	x10, [x8]
Lloh21:
	adrp	x8, _PowerActionSleep@GOTPAGE
Lloh22:
	ldr	x8, [x8, _PowerActionSleep@GOTPAGEOFF]
	cmp	x0, x10
	b.ne	LBB0_9
; %bb.6:
	ldr	x10, [x1, #32]
	cbz	x10, LBB0_8
; %bb.7:
	ldr	x10, [x1, #24]
	cbnz	x10, LBB0_9
LBB0_8:
	ldr	x0, [x8]
LBB0_9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_13
LBB0_11:
	ret
LBB0_12:
	mov	x0, x9
	ret
LBB0_13:
	ldr	x8, [x1, #8]
	cbnz	x8, LBB0_11
; %bb.14:
	ldr	x8, [x1]
	cbnz	x8, LBB0_11
; %bb.15:
Lloh23:
	adrp	x8, _PowerActionShutdown@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PowerActionShutdown@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	cmp	x2, #0
	csel	x0, x8, x9, eq
	ret
LBB0_16:
Lloh26:
	adrp	x10, _POWER_USER_NOTIFY_SHUTDOWN@GOTPAGE
Lloh27:
	ldr	x10, [x10, _POWER_USER_NOTIFY_SHUTDOWN@GOTPAGEOFF]
Lloh28:
	ldr	x10, [x10]
Lloh29:
	adrp	x11, _PowerActionShutdown@GOTPAGE
Lloh30:
	ldr	x11, [x11, _PowerActionShutdown@GOTPAGEOFF]
Lloh31:
	ldr	x11, [x11]
	cmp	x8, x10
	csel	x0, x11, x9, eq
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_PowerActionNone,8,3            ; @PowerActionNone
	.comm	_POWER_ACTION_UI_ALLOWED,4,2    ; @POWER_ACTION_UI_ALLOWED
	.comm	_POWER_ACTION_QUERY_ALLOWED,4,2 ; @POWER_ACTION_QUERY_ALLOWED
	.comm	_POWER_FORCE_TRIGGER_RESET,8,3  ; @POWER_FORCE_TRIGGER_RESET
	.comm	_POWER_USER_NOTIFY_BUTTON,8,3   ; @POWER_USER_NOTIFY_BUTTON
	.comm	_PowerActionWarmEject,8,3       ; @PowerActionWarmEject
	.comm	_POWER_USER_NOTIFY_SHUTDOWN,8,3 ; @POWER_USER_NOTIFY_SHUTDOWN
	.comm	_PowerActionShutdown,8,3        ; @PowerActionShutdown
	.comm	_PowerActionHibernate,8,3       ; @PowerActionHibernate
	.comm	_PowerActionSleep,8,3           ; @PowerActionSleep
.subsections_via_symbols
