	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frontend_win32_get_powerstate  ## -- Begin function frontend_win32_get_powerstate
	.p2align	4, 0x90
_frontend_win32_get_powerstate:         ## @frontend_win32_get_powerstate
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_FRONTEND_POWERSTATE_NONE@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	leaq	-56(%rbp), %rdi
	callq	_GetSystemPowerStatus
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	movl	-56(%rbp), %eax
	cmpl	$255, %eax
	je	LBB0_9
## %bb.2:
	testb	$-128, %al
	jne	LBB0_3
## %bb.4:
	testb	$8, %al
	jne	LBB0_5
## %bb.6:
	cmpl	$1, -52(%rbp)
	jne	LBB0_7
## %bb.8:
	movq	_FRONTEND_POWERSTATE_CHARGED@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_3:
	movq	_FRONTEND_POWERSTATE_NO_SOURCE@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_5:
	movq	_FRONTEND_POWERSTATE_CHARGING@GOTPCREL(%rip), %r12
	jmp	LBB0_9
LBB0_7:
	movq	_FRONTEND_POWERSTATE_ON_POWER_SOURCE@GOTPCREL(%rip), %r12
LBB0_9:
	movl	(%r12), %ebx
	movl	-40(%rbp), %eax
	movl	%eax, (%r15)
	movl	-48(%rbp), %eax
	movl	%eax, (%r14)
LBB0_10:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FRONTEND_POWERSTATE_NONE,4,2   ## @FRONTEND_POWERSTATE_NONE
	.comm	_FRONTEND_POWERSTATE_NO_SOURCE,4,2 ## @FRONTEND_POWERSTATE_NO_SOURCE
	.comm	_FRONTEND_POWERSTATE_CHARGING,4,2 ## @FRONTEND_POWERSTATE_CHARGING
	.comm	_FRONTEND_POWERSTATE_CHARGED,4,2 ## @FRONTEND_POWERSTATE_CHARGED
	.comm	_FRONTEND_POWERSTATE_ON_POWER_SOURCE,4,2 ## @FRONTEND_POWERSTATE_ON_POWER_SOURCE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_frontend_win32_get_powerstate  ; -- Begin function frontend_win32_get_powerstate
	.p2align	2
_frontend_win32_get_powerstate:         ; @frontend_win32_get_powerstate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _FRONTEND_POWERSTATE_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FRONTEND_POWERSTATE_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	add	x0, sp, #8
	bl	_GetSystemPowerStatus
	cbz	w0, LBB0_9
; %bb.1:
	ldr	w8, [sp, #8]
	cmp	w8, #255
	b.ne	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _FRONTEND_POWERSTATE_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FRONTEND_POWERSTATE_NONE@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
	tbnz	w8, #7, LBB0_6
; %bb.4:
	tbnz	w8, #3, LBB0_7
; %bb.5:
	ldr	w8, [sp, #12]
Lloh5:
	adrp	x9, _FRONTEND_POWERSTATE_ON_POWER_SOURCE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FRONTEND_POWERSTATE_ON_POWER_SOURCE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _FRONTEND_POWERSTATE_CHARGED@GOTPAGE
Lloh8:
	ldr	x10, [x10, _FRONTEND_POWERSTATE_CHARGED@GOTPAGEOFF]
	cmp	w8, #1
	csel	x8, x10, x9, eq
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x8, _FRONTEND_POWERSTATE_NO_SOURCE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _FRONTEND_POWERSTATE_NO_SOURCE@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x8, _FRONTEND_POWERSTATE_CHARGING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FRONTEND_POWERSTATE_CHARGING@GOTPAGEOFF]
LBB0_8:
	ldr	w21, [x8]
	ldp	x9, x8, [sp, #16]
	str	w8, [x20]
	str	w9, [x19]
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_FRONTEND_POWERSTATE_NONE,4,2   ; @FRONTEND_POWERSTATE_NONE
	.comm	_FRONTEND_POWERSTATE_NO_SOURCE,4,2 ; @FRONTEND_POWERSTATE_NO_SOURCE
	.comm	_FRONTEND_POWERSTATE_CHARGING,4,2 ; @FRONTEND_POWERSTATE_CHARGING
	.comm	_FRONTEND_POWERSTATE_CHARGED,4,2 ; @FRONTEND_POWERSTATE_CHARGED
	.comm	_FRONTEND_POWERSTATE_ON_POWER_SOURCE,4,2 ; @FRONTEND_POWERSTATE_ON_POWER_SOURCE
.subsections_via_symbols
