	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sirfsoc_pwrc_isr
_sirfsoc_pwrc_isr:                      ## @sirfsoc_pwrc_isr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_PWRC_INT_STATUS@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rsi), %rdi
	callq	_sirfsoc_rtc_iobrg_readl
	movq	_PWRC_ON_KEY_BIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	callq	_sirfsoc_rtc_iobrg_writel
	movl	4(%rbx), %edi
	movq	_EV_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_KEY_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$1, %ecx
	callq	_input_event
	movl	4(%rbx), %edi
	callq	_input_sync
	movq	_PWRC_KEY_DETECT_UP_TIME@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msecs_to_jiffies
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_schedule_delayed_work
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWRC_INT_STATUS,8,3            ## @PWRC_INT_STATUS
	.comm	_PWRC_ON_KEY_BIT,4,2            ## @PWRC_ON_KEY_BIT
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_KEY_POWER,4,2                  ## @KEY_POWER
	.comm	_PWRC_KEY_DETECT_UP_TIME,4,2    ## @PWRC_KEY_DETECT_UP_TIME
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_sirfsoc_pwrc_isr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sirfsoc_pwrc_isr
_sirfsoc_pwrc_isr:                      ; @sirfsoc_pwrc_isr
	.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	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x20, _PWRC_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x20, [x20, _PWRC_INT_STATUS@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_sirfsoc_rtc_iobrg_readl
Lloh2:
	adrp	x8, _PWRC_ON_KEY_BIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PWRC_ON_KEY_BIT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_sirfsoc_rtc_iobrg_writel
	ldr	w0, [x19, #4]
Lloh5:
	adrp	x8, _EV_KEY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EV_KEY@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x8, _KEY_POWER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KEY_POWER@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	w3, #1
	bl	_input_event
	ldr	w0, [x19, #4]
	bl	_input_sync
Lloh11:
	adrp	x8, _PWRC_KEY_DETECT_UP_TIME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PWRC_KEY_DETECT_UP_TIME@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	bl	_msecs_to_jiffies
	mov	x1, x0
	mov	x0, x19
	bl	_schedule_delayed_work
Lloh14:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PWRC_INT_STATUS,8,3            ; @PWRC_INT_STATUS
	.comm	_PWRC_ON_KEY_BIT,4,2            ; @PWRC_ON_KEY_BIT
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_KEY_POWER,4,2                  ; @KEY_POWER
	.comm	_PWRC_KEY_DETECT_UP_TIME,4,2    ; @PWRC_KEY_DETECT_UP_TIME
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_sirfsoc_pwrc_isr
.subsections_via_symbols
