	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tca8418_irq_handler
_tca8418_irq_handler:                   ## @tca8418_irq_handler
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_REG_INT_STAT@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	-28(%rbp), %rdx
	movq	%r15, %rdi
	callq	_tca8418_read_byte
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	leaq	L_.str(%rip), %rsi
LBB0_10:
	movq	(%r15), %rdi
	callq	_dev_err
LBB0_11:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_INT_STAT_OVR_FLOW_INT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_warn
	movl	-28(%rbp), %eax
LBB0_6:
	movq	_INT_STAT_K_INT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_tca8418_read_keypad
LBB0_8:
	movl	$255, -28(%rbp)
	movl	(%r14), %esi
	movq	%r15, %rdi
	movl	$255, %edx
	callq	_tca8418_write_byte
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testl	%eax, %eax
	je	LBB0_11
## %bb.9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_3:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_STAT,4,2               ## @REG_INT_STAT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to read REG_INT_STAT\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_INT_STAT_OVR_FLOW_INT,4,2      ## @INT_STAT_OVR_FLOW_INT
L_.str.1:                               ## @.str.1
	.asciz	"overflow occurred\n"

	.comm	_INT_STAT_K_INT,4,2             ## @INT_STAT_K_INT
L_.str.2:                               ## @.str.2
	.asciz	"unable to clear REG_INT_STAT\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tca8418_irq_handler
_tca8418_irq_handler:                   ; @tca8418_irq_handler
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x1
Lloh0:
	adrp	x20, _REG_INT_STAT@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_INT_STAT@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	mov	x0, x19
	bl	_tca8418_read_byte
	cbz	w0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	ldr	x0, [x19]
	bl	_dev_err
LBB0_3:
	ldr	w0, [x20]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_4:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_11
; %bb.5:
Lloh6:
	adrp	x9, _INT_STAT_OVR_FLOW_INT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _INT_STAT_OVR_FLOW_INT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x19]
Lloh9:
	adrp	x1, l_.str.1@PAGE
Lloh10:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
	ldr	w8, [sp, #12]
LBB0_7:
Lloh11:
	adrp	x9, _INT_STAT_K_INT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _INT_STAT_K_INT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_tca8418_read_keypad
LBB0_9:
	mov	w8, #255
	str	w8, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #255
	bl	_tca8418_write_byte
Lloh14:
	adrp	x20, _IRQ_HANDLED@GOTPAGE
Lloh15:
	ldr	x20, [x20, _IRQ_HANDLED@GOTPAGEOFF]
	cbz	w0, LBB0_3
; %bb.10:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_11:
Lloh18:
	adrp	x20, _IRQ_NONE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_STAT,4,2               ; @REG_INT_STAT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to read REG_INT_STAT\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_INT_STAT_OVR_FLOW_INT,4,2      ; @INT_STAT_OVR_FLOW_INT
l_.str.1:                               ; @.str.1
	.asciz	"overflow occurred\n"

	.comm	_INT_STAT_K_INT,4,2             ; @INT_STAT_K_INT
l_.str.2:                               ; @.str.2
	.asciz	"unable to clear REG_INT_STAT\n"

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