	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cma3000_thread_irq
_cma3000_thread_irq:                    ## @cma3000_thread_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	_CMA3000_INTSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_CMA3000_READ
	movq	_IRQ_NONE@GOTPCREL(%rip), %r14
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	_CMA3000_INTSTATUS_FFDET@GOTPCREL(%rip), %rcx
	movl	8(%rbx), %edi
	movq	_ABS_MISC@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.2:
	movl	$1, %edx
	callq	_input_report_abs
	movl	8(%rbx), %edi
	callq	_input_sync
	jmp	LBB0_4
LBB0_3:
	xorl	%edx, %edx
	callq	_input_report_abs
LBB0_4:
	movq	_CMA3000_DOUTX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_CMA3000_READ
	movl	%eax, -28(%rbp)
	movq	_CMA3000_DOUTY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rdi
	callq	_CMA3000_READ
	movl	%eax, -24(%rbp)
	movq	_CMA3000_DOUTZ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rdi
	callq	_CMA3000_READ
	movl	%eax, -20(%rbp)
	movq	_CMA3000_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rdi
	callq	_CMA3000_READ
	movq	_CMA3000_MODEMASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	sarl	%ecx
	movq	_CMA3000_GRANGEMASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	sarl	$7, %eax
	movq	_mode_to_mg@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movslq	%ecx, %rcx
	movq	(%rdx,%rcx,8), %rcx
	cltq
	movq	(%rcx,%rax,8), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	-28(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	leaq	-20(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_decode_mg
	movl	8(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-28(%rbp), %edx
	callq	_input_report_abs
	movl	8(%rbx), %edi
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-24(%rbp), %edx
	callq	_input_report_abs
	movl	8(%rbx), %edi
	movq	_ABS_Z@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-20(%rbp), %edx
	callq	_input_report_abs
	movl	8(%rbx), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r14
LBB0_6:
	movl	(%r14), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMA3000_INTSTATUS,4,2          ## @CMA3000_INTSTATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt status"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_CMA3000_INTSTATUS_FFDET,4,2    ## @CMA3000_INTSTATUS_FFDET
	.comm	_ABS_MISC,4,2                   ## @ABS_MISC
	.comm	_CMA3000_DOUTX,4,2              ## @CMA3000_DOUTX
L_.str.1:                               ## @.str.1
	.asciz	"X"

	.comm	_CMA3000_DOUTY,4,2              ## @CMA3000_DOUTY
L_.str.2:                               ## @.str.2
	.asciz	"Y"

	.comm	_CMA3000_DOUTZ,4,2              ## @CMA3000_DOUTZ
L_.str.3:                               ## @.str.3
	.asciz	"Z"

	.comm	_CMA3000_CTRL,4,2               ## @CMA3000_CTRL
L_.str.4:                               ## @.str.4
	.asciz	"ctrl"

	.comm	_CMA3000_MODEMASK,4,2           ## @CMA3000_MODEMASK
	.comm	_CMA3000_GRANGEMASK,4,2         ## @CMA3000_GRANGEMASK
	.comm	_mode_to_mg,8,3                 ## @mode_to_mg
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_Z,4,2                      ## @ABS_Z
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cma3000_thread_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cma3000_thread_irq
_cma3000_thread_irq:                    ; @cma3000_thread_irq
	.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	x8, _CMA3000_INTSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMA3000_INTSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x8, x0
Lloh5:
	adrp	x9, _CMA3000_INTSTATUS_FFDET@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CMA3000_INTSTATUS_FFDET@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ldr	w0, [x19, #8]
Lloh8:
	adrp	x10, _ABS_MISC@GOTPAGE
Lloh9:
	ldr	x10, [x10, _ABS_MISC@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x10]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	mov	w2, #1
	bl	_input_report_abs
	ldr	w0, [x19, #8]
	bl	_input_sync
	b	LBB0_4
LBB0_3:
	mov	w2, #0
	bl	_input_report_abs
LBB0_4:
Lloh11:
	adrp	x8, _CMA3000_DOUTX@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CMA3000_DOUTX@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
	str	w0, [sp, #12]
Lloh16:
	adrp	x8, _CMA3000_DOUTY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMA3000_DOUTY@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
	str	w0, [sp, #8]
Lloh21:
	adrp	x8, _CMA3000_DOUTZ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMA3000_DOUTZ@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
	str	w0, [sp, #4]
Lloh26:
	adrp	x8, _CMA3000_CTRL@GOTPAGE
Lloh27:
	ldr	x8, [x8, _CMA3000_CTRL@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
Lloh29:
	adrp	x2, l_.str.4@PAGE
Lloh30:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_CMA3000_READ
Lloh31:
	adrp	x8, _CMA3000_MODEMASK@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CMA3000_MODEMASK@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh34:
	adrp	x9, _CMA3000_GRANGEMASK@GOTPAGE
Lloh35:
	ldr	x9, [x9, _CMA3000_GRANGEMASK@GOTPAGEOFF]
	asr	w8, w8, #1
Lloh36:
	ldr	w9, [x9]
	and	w9, w9, w0
	asr	w9, w9, #7
Lloh37:
	adrp	x10, _mode_to_mg@GOTPAGE
Lloh38:
	ldr	x10, [x10, _mode_to_mg@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	ldr	x8, [x10, w8, sxtw #3]
	ldr	x8, [x8, w9, sxtw #3]
	str	x8, [x19]
	cbz	x8, LBB0_6
; %bb.5:
	add	x1, sp, #12
	add	x2, sp, #8
	add	x3, sp, #4
	mov	x0, x19
	bl	_decode_mg
	ldr	w0, [x19, #8]
Lloh40:
	adrp	x8, _ABS_X@GOTPAGE
Lloh41:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	ldr	w2, [sp, #12]
	bl	_input_report_abs
	ldr	w0, [x19, #8]
Lloh43:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh44:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh45:
	ldr	w1, [x8]
	ldr	w2, [sp, #8]
	bl	_input_report_abs
	ldr	w0, [x19, #8]
Lloh46:
	adrp	x8, _ABS_Z@GOTPAGE
Lloh47:
	ldr	x8, [x8, _ABS_Z@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
	ldr	w2, [sp, #4]
	bl	_input_report_abs
	ldr	w0, [x19, #8]
	bl	_input_sync
Lloh49:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh51:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_CMA3000_INTSTATUS,4,2          ; @CMA3000_INTSTATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt status"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_CMA3000_INTSTATUS_FFDET,4,2    ; @CMA3000_INTSTATUS_FFDET
	.comm	_ABS_MISC,4,2                   ; @ABS_MISC
	.comm	_CMA3000_DOUTX,4,2              ; @CMA3000_DOUTX
l_.str.1:                               ; @.str.1
	.asciz	"X"

	.comm	_CMA3000_DOUTY,4,2              ; @CMA3000_DOUTY
l_.str.2:                               ; @.str.2
	.asciz	"Y"

	.comm	_CMA3000_DOUTZ,4,2              ; @CMA3000_DOUTZ
l_.str.3:                               ; @.str.3
	.asciz	"Z"

	.comm	_CMA3000_CTRL,4,2               ; @CMA3000_CTRL
l_.str.4:                               ; @.str.4
	.asciz	"ctrl"

	.comm	_CMA3000_MODEMASK,4,2           ; @CMA3000_MODEMASK
	.comm	_CMA3000_GRANGEMASK,4,2         ; @CMA3000_GRANGEMASK
	.comm	_mode_to_mg,8,3                 ; @mode_to_mg
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_Z,4,2                      ; @ABS_Z
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cma3000_thread_irq
.subsections_via_symbols
