	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adp5589_irq
_adp5589_irq:                           ## @adp5589_irq
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	8(%rsi), %r14
	movq	_ADP5589_5_INT_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_adp5589_read
	movl	%eax, %ebx
	movq	_OVRFLOW_INT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
LBB0_2:
	movq	_EVENT_INT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_5
## %bb.3:
	movq	_ADP5589_5_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adp5589_read
	movq	_KEC@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	je	LBB0_5
## %bb.4:
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_adp5589_report_events
	movl	(%r15), %edi
	callq	_input_sync
LBB0_5:
	movl	(%r12), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_adp5589_write
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ADP5589_5_INT_STATUS,4,2       ## @ADP5589_5_INT_STATUS
	.comm	_OVRFLOW_INT,4,2                ## @OVRFLOW_INT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Event Overflow Error\n"

	.comm	_EVENT_INT,4,2                  ## @EVENT_INT
	.comm	_ADP5589_5_STATUS,4,2           ## @ADP5589_5_STATUS
	.comm	_KEC,4,2                        ## @KEC
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_adp5589_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adp5589_irq
_adp5589_irq:                           ; @adp5589_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	ldr	x19, [x1, #8]
Lloh0:
	adrp	x22, _ADP5589_5_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ADP5589_5_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_adp5589_read
	mov	x20, x0
Lloh2:
	adrp	x8, _OVRFLOW_INT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _OVRFLOW_INT@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
; %bb.1:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
LBB0_2:
Lloh7:
	adrp	x8, _EVENT_INT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EVENT_INT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.3:
Lloh10:
	adrp	x8, _ADP5589_5_STATUS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ADP5589_5_STATUS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adp5589_read
Lloh13:
	adrp	x8, _KEC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _KEC@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	ands	w1, w8, w0
	b.eq	LBB0_5
; %bb.4:
	mov	x0, x21
	bl	_adp5589_report_events
	ldr	w0, [x21]
	bl	_input_sync
LBB0_5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	_adp5589_write
Lloh16:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_ADP5589_5_INT_STATUS,4,2       ; @ADP5589_5_INT_STATUS
	.comm	_OVRFLOW_INT,4,2                ; @OVRFLOW_INT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Event Overflow Error\n"

	.comm	_EVENT_INT,4,2                  ; @EVENT_INT
	.comm	_ADP5589_5_STATUS,4,2           ; @ADP5589_5_STATUS
	.comm	_KEC,4,2                        ; @KEC
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_adp5589_irq
.subsections_via_symbols
