	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sci_update
_sci_update:                            ## @sci_update
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_pm1_enable@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PM1_TMR_EN@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	_pm1_status@GOTPCREL(%rip), %rdx
	movq	_PM1_TMR_STS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%eax, %eax
	testl	%esi, (%rdx)
	setne	%al
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	_PM1_GBL_EN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_pm1_status@GOTPCREL(%rip), %rdx
	movq	_PM1_GBL_STS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	movl	$1, %edx
	cmovnel	%edx, %eax
LBB0_5:
	movq	_PM1_PWRBTN_EN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.6:
	movq	_pm1_status@GOTPCREL(%rip), %rdx
	movq	_PM1_PWRBTN_STS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	movl	$1, %edx
	cmovnel	%edx, %eax
LBB0_7:
	movq	_PM1_SLPBTN_EN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_9
## %bb.8:
	movq	_pm1_status@GOTPCREL(%rip), %rdx
	movq	_PM1_SLPBTN_STS@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%esi, (%rdx)
	movl	$1, %edx
	cmovnel	%edx, %eax
LBB0_9:
	movq	_PM1_RTC_EN@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_12
## %bb.10:
	movq	_pm1_status@GOTPCREL(%rip), %rcx
	movq	_PM1_RTC_STS@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	(%rcx), %edx
	orl	%eax, %edx
	jne	LBB0_13
LBB0_11:
	popq	%rbp
	jmp	_sci_deassert                   ## TAILCALL
LBB0_12:
	testl	%eax, %eax
	je	LBB0_11
LBB0_13:
	popq	%rbp
	jmp	_sci_assert                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_pm1_enable,4,2                 ## @pm1_enable
	.comm	_PM1_TMR_EN,4,2                 ## @PM1_TMR_EN
	.comm	_pm1_status,4,2                 ## @pm1_status
	.comm	_PM1_TMR_STS,4,2                ## @PM1_TMR_STS
	.comm	_PM1_GBL_EN,4,2                 ## @PM1_GBL_EN
	.comm	_PM1_GBL_STS,4,2                ## @PM1_GBL_STS
	.comm	_PM1_PWRBTN_EN,4,2              ## @PM1_PWRBTN_EN
	.comm	_PM1_PWRBTN_STS,4,2             ## @PM1_PWRBTN_STS
	.comm	_PM1_SLPBTN_EN,4,2              ## @PM1_SLPBTN_EN
	.comm	_PM1_SLPBTN_STS,4,2             ## @PM1_SLPBTN_STS
	.comm	_PM1_RTC_EN,4,2                 ## @PM1_RTC_EN
	.comm	_PM1_RTC_STS,4,2                ## @PM1_RTC_STS
	.no_dead_strip	_sci_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sci_update
_sci_update:                            ; @sci_update
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _pm1_enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pm1_enable@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _PM1_TMR_EN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PM1_TMR_EN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x9]
Lloh6:
	adrp	x9, _pm1_status@GOTPAGE
Lloh7:
	ldr	x9, [x9, _pm1_status@GOTPAGEOFF]
	tst	w10, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w10, [x9]
Lloh8:
	adrp	x11, _PM1_TMR_STS@GOTPAGE
Lloh9:
	ldr	x11, [x11, _PM1_TMR_STS@GOTPAGEOFF]
Lloh10:
	ldr	w11, [x11]
	tst	w11, w10
	cset	w10, ne
	b	LBB0_3
LBB0_2:
	mov	w10, #0
LBB0_3:
Lloh11:
	adrp	x11, _PM1_GBL_EN@GOTPAGE
Lloh12:
	ldr	x11, [x11, _PM1_GBL_EN@GOTPAGEOFF]
Lloh13:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_5
; %bb.4:
	ldr	w11, [x9]
Lloh14:
	adrp	x12, _PM1_GBL_STS@GOTPAGE
Lloh15:
	ldr	x12, [x12, _PM1_GBL_STS@GOTPAGEOFF]
Lloh16:
	ldr	w12, [x12]
	tst	w12, w11
	csinc	w10, w10, wzr, eq
LBB0_5:
Lloh17:
	adrp	x11, _PM1_PWRBTN_EN@GOTPAGE
Lloh18:
	ldr	x11, [x11, _PM1_PWRBTN_EN@GOTPAGEOFF]
Lloh19:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w11, [x9]
Lloh20:
	adrp	x12, _PM1_PWRBTN_STS@GOTPAGE
Lloh21:
	ldr	x12, [x12, _PM1_PWRBTN_STS@GOTPAGEOFF]
Lloh22:
	ldr	w12, [x12]
	tst	w12, w11
	csinc	w10, w10, wzr, eq
LBB0_7:
Lloh23:
	adrp	x11, _PM1_SLPBTN_EN@GOTPAGE
Lloh24:
	ldr	x11, [x11, _PM1_SLPBTN_EN@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_9
; %bb.8:
	ldr	w11, [x9]
Lloh26:
	adrp	x12, _PM1_SLPBTN_STS@GOTPAGE
Lloh27:
	ldr	x12, [x12, _PM1_SLPBTN_STS@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	tst	w12, w11
	csinc	w10, w10, wzr, eq
LBB0_9:
Lloh29:
	adrp	x11, _PM1_RTC_EN@GOTPAGE
Lloh30:
	ldr	x11, [x11, _PM1_RTC_EN@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
	tst	w11, w8
	b.eq	LBB0_12
; %bb.10:
	ldr	w8, [x9]
Lloh32:
	adrp	x9, _PM1_RTC_STS@GOTPAGE
Lloh33:
	ldr	x9, [x9, _PM1_RTC_STS@GOTPAGEOFF]
Lloh34:
	ldr	w9, [x9]
	and	w8, w9, w8
	orr	w8, w8, w10
	cbnz	w8, LBB0_13
LBB0_11:
	b	_sci_deassert
LBB0_12:
	cbz	w10, LBB0_11
LBB0_13:
	b	_sci_assert
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_pm1_enable,4,2                 ; @pm1_enable
	.comm	_PM1_TMR_EN,4,2                 ; @PM1_TMR_EN
	.comm	_pm1_status,4,2                 ; @pm1_status
	.comm	_PM1_TMR_STS,4,2                ; @PM1_TMR_STS
	.comm	_PM1_GBL_EN,4,2                 ; @PM1_GBL_EN
	.comm	_PM1_GBL_STS,4,2                ; @PM1_GBL_STS
	.comm	_PM1_PWRBTN_EN,4,2              ; @PM1_PWRBTN_EN
	.comm	_PM1_PWRBTN_STS,4,2             ; @PM1_PWRBTN_STS
	.comm	_PM1_SLPBTN_EN,4,2              ; @PM1_SLPBTN_EN
	.comm	_PM1_SLPBTN_STS,4,2             ; @PM1_SLPBTN_STS
	.comm	_PM1_RTC_EN,4,2                 ; @PM1_RTC_EN
	.comm	_PM1_RTC_STS,4,2                ; @PM1_RTC_STS
	.no_dead_strip	_sci_update
.subsections_via_symbols
