	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gemini_powerbutton_interrupt
_gemini_powerbutton_interrupt:          ## @gemini_powerbutton_interrupt
	.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	_GEMINI_PWC_CTRLREG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	8(%rsi), %rdi
	callq	_readl
	movq	_GEMINI_CTRL_IRQ_CLR@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	_GEMINI_PWC_STATREG@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	(%rbx), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_info
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEMINI_PWC_CTRLREG,8,3         ## @GEMINI_PWC_CTRLREG
	.comm	_GEMINI_CTRL_IRQ_CLR,4,2        ## @GEMINI_CTRL_IRQ_CLR
	.comm	_GEMINI_PWC_STATREG,8,3         ## @GEMINI_PWC_STATREG
	.section	__TEXT,__cstring,cstring_literals
L_.str.3:                               ## @.str.3
	.asciz	"other power management IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_gemini_powerbutton_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gemini_powerbutton_interrupt
_gemini_powerbutton_interrupt:          ; @gemini_powerbutton_interrupt
	.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, _GEMINI_PWC_CTRLREG@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GEMINI_PWC_CTRLREG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh2:
	adrp	x8, _GEMINI_CTRL_IRQ_CLR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GEMINI_CTRL_IRQ_CLR@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x9, _GEMINI_PWC_STATREG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GEMINI_PWC_STATREG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	ldr	w0, [x19]
Lloh8:
	adrp	x1, l_.str.3@PAGE
Lloh9:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_info
Lloh10:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GEMINI_PWC_CTRLREG,8,3         ; @GEMINI_PWC_CTRLREG
	.comm	_GEMINI_CTRL_IRQ_CLR,4,2        ; @GEMINI_CTRL_IRQ_CLR
	.comm	_GEMINI_PWC_STATREG,8,3         ; @GEMINI_PWC_STATREG
	.section	__TEXT,__cstring,cstring_literals
l_.str.3:                               ; @.str.3
	.asciz	"other power management IRQ\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_gemini_powerbutton_interrupt
.subsections_via_symbols
