	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function adxl34x_irq
_adxl34x_irq:                           ## @adxl34x_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	_TAP_X_EN@GOTPCREL(%rip), %rax
	movq	_TAP_Y_EN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_TAP_Z_EN@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	testl	%ecx, 32(%rsi)
	je	LBB0_1
## %bb.2:
	movq	_ACT_TAP_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_AC_READ
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_1:
	xorl	%r15d, %r15d
LBB0_3:
	movq	_INT_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_AC_READ
	movl	%eax, %r14d
	movq	_FREE_FALL@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.4:
	movl	8(%r12), %edi
	movl	72(%r12), %esi
	callq	_adxl34x_report_key_single
LBB0_5:
	movq	_OVERRUN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
## %bb.6:
	movl	24(%r12), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
LBB0_7:
	movq	_SINGLE_TAP@GOTPCREL(%rip), %rax
	movq	_DOUBLE_TAP@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_10
## %bb.8:
	leaq	32(%r12), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_adxl34x_do_tap
	testl	%r14d, (%r13)
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r15d, %edx
	callq	_adxl34x_do_tap
LBB0_10:
	movq	64(%r12), %rsi
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.11:
	movq	_ACTIVITY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.12:
	movl	8(%r12), %edi
	movl	$1, %edx
	callq	_input_report_key
LBB0_13:
	movq	_INACTIVITY@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_15
## %bb.14:
	movl	8(%r12), %edi
	movq	64(%r12), %rsi
	xorl	%edx, %edx
	callq	_input_report_key
LBB0_15:
	cmpl	$0, 36(%r12)
	je	LBB0_24
## %bb.16:
	movq	_ORIENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_AC_READ
	movl	%eax, %r15d
	movq	_ADXL_EN_ORIENTATION_2D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 36(%r12)
	je	LBB0_20
## %bb.17:
	movq	_ADXL346_2D_VALID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_20
## %bb.18:
	movl	%r15d, %edi
	callq	_ADXL346_2D_ORIENT
	cmpl	%eax, (%r12)
	je	LBB0_20
## %bb.19:
	movl	%eax, (%r12)
	movl	8(%r12), %edi
	movq	56(%r12), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	callq	_adxl34x_report_key_single
LBB0_20:
	movq	_ADXL_EN_ORIENTATION_3D@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 36(%r12)
	je	LBB0_24
## %bb.21:
	movq	_ADXL346_3D_VALID@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_24
## %bb.22:
	movl	%r15d, %edi
	callq	_ADXL346_3D_ORIENT
	decl	%eax
	cmpl	%eax, 4(%r12)
	je	LBB0_24
## %bb.23:
	movl	%eax, 4(%r12)
	movl	8(%r12), %edi
	movq	48(%r12), %rcx
	cltq
	movl	(%rcx,%rax,4), %esi
	callq	_adxl34x_report_key_single
LBB0_24:
	movq	_DATA_READY@GOTPCREL(%rip), %rax
	movq	_WATERMARK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_34
## %bb.25:
	cmpq	$0, 40(%r12)
	je	LBB0_26
## %bb.27:
	movq	_FIFO_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_AC_READ
	movl	%eax, %edi
	callq	_ENTRIES
	testl	%eax, %eax
	js	LBB0_34
## %bb.28:
	movl	%eax, %ebx
	incl	%ebx
	jmp	LBB0_29
LBB0_26:
	movl	$1, %ebx
LBB0_29:
	incl	%ebx
	jmp	LBB0_30
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_30 Depth=1
	decl	%ebx
	cmpl	$1, %ebx
	jle	LBB0_34
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	callq	_adxl34x_service_ev_fifo
	cmpq	$0, 16(%r12)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_30 Depth=1
	cmpl	$2, %ebx
	je	LBB0_33
## %bb.32:                              ##   in Loop: Header=BB0_30 Depth=1
	movl	$3, %edi
	callq	_udelay
	jmp	LBB0_33
LBB0_34:
	movl	8(%r12), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAP_X_EN,4,2                   ## @TAP_X_EN
	.comm	_TAP_Y_EN,4,2                   ## @TAP_Y_EN
	.comm	_TAP_Z_EN,4,2                   ## @TAP_Z_EN
	.comm	_ACT_TAP_STATUS,4,2             ## @ACT_TAP_STATUS
	.comm	_INT_SOURCE,4,2                 ## @INT_SOURCE
	.comm	_FREE_FALL,4,2                  ## @FREE_FALL
	.comm	_OVERRUN,4,2                    ## @OVERRUN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"OVERRUN\n"

	.comm	_SINGLE_TAP,4,2                 ## @SINGLE_TAP
	.comm	_DOUBLE_TAP,4,2                 ## @DOUBLE_TAP
	.comm	_ACTIVITY,4,2                   ## @ACTIVITY
	.comm	_INACTIVITY,4,2                 ## @INACTIVITY
	.comm	_ORIENT,4,2                     ## @ORIENT
	.comm	_ADXL_EN_ORIENTATION_2D,4,2     ## @ADXL_EN_ORIENTATION_2D
	.comm	_ADXL346_2D_VALID,4,2           ## @ADXL346_2D_VALID
	.comm	_ADXL_EN_ORIENTATION_3D,4,2     ## @ADXL_EN_ORIENTATION_3D
	.comm	_ADXL346_3D_VALID,4,2           ## @ADXL346_3D_VALID
	.comm	_DATA_READY,4,2                 ## @DATA_READY
	.comm	_WATERMARK,4,2                  ## @WATERMARK
	.comm	_FIFO_STATUS,4,2                ## @FIFO_STATUS
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_adxl34x_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function adxl34x_irq
_adxl34x_irq:                           ; @adxl34x_irq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x1
	ldr	w8, [x21, #32]!
Lloh0:
	adrp	x9, _TAP_X_EN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TAP_X_EN@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _TAP_Y_EN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TAP_Y_EN@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _TAP_Z_EN@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TAP_Z_EN@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _ACT_TAP_STATUS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ACT_TAP_STATUS@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AC_READ
	mov	x22, x0
	b	LBB0_3
LBB0_2:
	mov	w22, #0
LBB0_3:
Lloh12:
	adrp	x8, _INT_SOURCE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _INT_SOURCE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AC_READ
	mov	x20, x0
Lloh15:
	adrp	x8, _FREE_FALL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FREE_FALL@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_5
; %bb.4:
	ldr	w0, [x19, #8]
	ldr	w1, [x19, #72]
	bl	_adxl34x_report_key_single
LBB0_5:
Lloh18:
	adrp	x8, _OVERRUN@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OVERRUN@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #24]
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
LBB0_7:
Lloh23:
	adrp	x8, _SINGLE_TAP@GOTPAGE
Lloh24:
	ldr	x8, [x8, _SINGLE_TAP@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
Lloh26:
	adrp	x23, _DOUBLE_TAP@GOTPAGE
Lloh27:
	ldr	x23, [x23, _DOUBLE_TAP@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_10
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_adxl34x_do_tap
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_adxl34x_do_tap
LBB0_10:
	ldr	x1, [x19, #64]
	cbz	x1, LBB0_15
; %bb.11:
Lloh28:
	adrp	x8, _ACTIVITY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ACTIVITY@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.12:
	ldr	w0, [x19, #8]
	mov	w2, #1
	bl	_input_report_key
LBB0_13:
Lloh31:
	adrp	x8, _INACTIVITY@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INACTIVITY@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_15
; %bb.14:
	ldr	w0, [x19, #8]
	ldr	x1, [x19, #64]
	mov	w2, #0
	bl	_input_report_key
LBB0_15:
	ldr	w8, [x19, #36]
	cbz	w8, LBB0_24
; %bb.16:
Lloh34:
	adrp	x8, _ORIENT@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ORIENT@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AC_READ
	mov	x21, x0
	ldr	w8, [x19, #36]
Lloh37:
	adrp	x9, _ADXL_EN_ORIENTATION_2D@GOTPAGE
Lloh38:
	ldr	x9, [x9, _ADXL_EN_ORIENTATION_2D@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.17:
Lloh40:
	adrp	x8, _ADXL346_2D_VALID@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ADXL346_2D_VALID@GOTPAGEOFF]
Lloh42:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_20
; %bb.18:
	mov	x0, x21
	bl	_ADXL346_2D_ORIENT
	ldr	w8, [x19]
	cmp	w8, w0
	b.eq	LBB0_20
; %bb.19:
	str	w0, [x19]
	ldr	w8, [x19, #8]
	ldr	x9, [x19, #56]
	ldr	w1, [x9, w0, sxtw #2]
	mov	x0, x8
	bl	_adxl34x_report_key_single
LBB0_20:
	ldr	w8, [x19, #36]
Lloh43:
	adrp	x9, _ADXL_EN_ORIENTATION_3D@GOTPAGE
Lloh44:
	ldr	x9, [x9, _ADXL_EN_ORIENTATION_3D@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_24
; %bb.21:
Lloh46:
	adrp	x8, _ADXL346_3D_VALID@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ADXL346_3D_VALID@GOTPAGEOFF]
Lloh48:
	ldr	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_24
; %bb.22:
	mov	x0, x21
	bl	_ADXL346_3D_ORIENT
	sub	w8, w0, #1
	ldr	w9, [x19, #4]
	cmp	w9, w8
	b.eq	LBB0_24
; %bb.23:
	str	w8, [x19, #4]
	ldr	w0, [x19, #8]
	ldr	x9, [x19, #48]
	ldr	w1, [x9, w8, sxtw #2]
	bl	_adxl34x_report_key_single
LBB0_24:
Lloh49:
	adrp	x8, _DATA_READY@GOTPAGE
Lloh50:
	ldr	x8, [x8, _DATA_READY@GOTPAGEOFF]
Lloh51:
	ldr	w8, [x8]
Lloh52:
	adrp	x9, _WATERMARK@GOTPAGE
Lloh53:
	ldr	x9, [x9, _WATERMARK@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_33
; %bb.25:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_28
; %bb.26:
Lloh55:
	adrp	x8, _FIFO_STATUS@GOTPAGE
Lloh56:
	ldr	x8, [x8, _FIFO_STATUS@GOTPAGEOFF]
Lloh57:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_AC_READ
	bl	_ENTRIES
	tbnz	w0, #31, LBB0_33
; %bb.27:
	add	w8, w0, #1
	b	LBB0_29
LBB0_28:
	mov	w8, #1
LBB0_29:
	add	w20, w8, #1
	b	LBB0_31
LBB0_30:                                ;   in Loop: Header=BB0_31 Depth=1
	sub	w20, w20, #1
	cmp	w20, #1
	b.le	LBB0_33
LBB0_31:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_adxl34x_service_ev_fifo
	ldr	x8, [x19, #16]
	cmp	x8, #0
	ccmp	w20, #2, #4, ne
	b.eq	LBB0_30
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=1
	mov	w0, #3
	bl	_udelay
	b	LBB0_30
LBB0_33:
	ldr	w0, [x19, #8]
	bl	_input_sync
Lloh58:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh59:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh60:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.cfi_endproc
                                        ; -- End function
	.comm	_TAP_X_EN,4,2                   ; @TAP_X_EN
	.comm	_TAP_Y_EN,4,2                   ; @TAP_Y_EN
	.comm	_TAP_Z_EN,4,2                   ; @TAP_Z_EN
	.comm	_ACT_TAP_STATUS,4,2             ; @ACT_TAP_STATUS
	.comm	_INT_SOURCE,4,2                 ; @INT_SOURCE
	.comm	_FREE_FALL,4,2                  ; @FREE_FALL
	.comm	_OVERRUN,4,2                    ; @OVERRUN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"OVERRUN\n"

	.comm	_SINGLE_TAP,4,2                 ; @SINGLE_TAP
	.comm	_DOUBLE_TAP,4,2                 ; @DOUBLE_TAP
	.comm	_ACTIVITY,4,2                   ; @ACTIVITY
	.comm	_INACTIVITY,4,2                 ; @INACTIVITY
	.comm	_ORIENT,4,2                     ; @ORIENT
	.comm	_ADXL_EN_ORIENTATION_2D,4,2     ; @ADXL_EN_ORIENTATION_2D
	.comm	_ADXL346_2D_VALID,4,2           ; @ADXL346_2D_VALID
	.comm	_ADXL_EN_ORIENTATION_3D,4,2     ; @ADXL_EN_ORIENTATION_3D
	.comm	_ADXL346_3D_VALID,4,2           ; @ADXL346_3D_VALID
	.comm	_DATA_READY,4,2                 ; @DATA_READY
	.comm	_WATERMARK,4,2                  ; @WATERMARK
	.comm	_FIFO_STATUS,4,2                ; @FIFO_STATUS
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_adxl34x_irq
.subsections_via_symbols
