	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_ts_data_irq
_wm831x_ts_data_irq:                    ## @wm831x_ts_data_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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpq	$1, 16(%rsi)
	movq	32(%rsi), %r14
	movl	$3, %r15d
	sbbl	$0, %r15d
	movq	_WM831X_INTERRUPT_STATUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM831X_TCHDATA_EINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_wm831x_set_bits
	movq	_WM831X_TOUCH_DATA_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rcx
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_wm831x_bulk_read
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_2:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	$1, (%rbx)
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	movl	%r15d, %r13d
	shlq	$2, %r13
	xorl	%r12d, %r12d
	movq	_WM831X_TCH_PD@GOTPCREL(%rip), %r14
	movq	_WM831X_TCH_DATA_MASK@GOTPCREL(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%rbx), %edi
	leaq	_wm831x_ts_data_irq.data_types(%rip), %rax
	movl	(%r12,%rax), %esi
	andl	(%r15), %edx
	callq	_input_report_abs
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r12
	cmpq	%r12, %r13
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	-60(%rbp,%r12), %edx
	testl	%edx, (%r14)
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$0, (%rbx)
	jmp	LBB0_6
LBB0_7:
	cmpl	$0, (%rbx)
	je	LBB0_8
## %bb.11:
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_input_report_key
	jmp	LBB0_12
LBB0_8:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movl	24(%rbx), %edi
	callq	_disable_irq_nosync
	movq	_WM831X_TOUCH_CONTROL_1@GOTPCREL(%rip), %rax
	movq	_WM831X_TCH_X_ENA@GOTPCREL(%rip), %rcx
	movq	_WM831X_TCH_Y_ENA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_WM831X_TCH_Z_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r14, %rdi
	xorl	%ecx, %ecx
	callq	_wm831x_set_bits
	movq	_WM831X_INTERRUPT_STATUS_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_WM831X_TCHDATA_EINT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_wm831x_set_bits
	movq	_WM831X_TOUCH_DATA_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-60(%rbp), %rcx
	movq	%r14, %rdi
	movl	-64(%rbp), %edx                 ## 4-byte Reload
	callq	_wm831x_bulk_read
	cmpq	$0, 16(%rbx)
	je	LBB0_10
## %bb.9:
	movl	4(%rbx), %edi
	movl	$130, %esi
	xorl	%edx, %edx
	callq	_input_report_abs
LBB0_10:
	movl	4(%rbx), %edi
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_input_report_key
	leaq	8(%rbx), %rdi
	callq	_schedule_work
LBB0_12:
	movl	4(%rbx), %edi
	callq	_input_sync
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_13:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
	.p2align	2                               ## @wm831x_ts_data_irq.data_types
_wm831x_ts_data_irq.data_types:
	.long	129                             ## 0x81
	.long	128                             ## 0x80
	.long	130                             ## 0x82

	.comm	_WM831X_INTERRUPT_STATUS_1,4,2  ## @WM831X_INTERRUPT_STATUS_1
	.comm	_WM831X_TCHDATA_EINT,4,2        ## @WM831X_TCHDATA_EINT
	.comm	_WM831X_TOUCH_DATA_X,4,2        ## @WM831X_TOUCH_DATA_X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to read touch data: %d\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_WM831X_TCH_PD,4,2              ## @WM831X_TCH_PD
	.comm	_WM831X_TCH_DATA_MASK,4,2       ## @WM831X_TCH_DATA_MASK
L_.str.1:                               ## @.str.1
	.asciz	"IRQ DATA->PD\n"

	.comm	_WM831X_TOUCH_CONTROL_1,4,2     ## @WM831X_TOUCH_CONTROL_1
	.comm	_WM831X_TCH_X_ENA,4,2           ## @WM831X_TCH_X_ENA
	.comm	_WM831X_TCH_Y_ENA,4,2           ## @WM831X_TCH_Y_ENA
	.comm	_WM831X_TCH_Z_ENA,4,2           ## @WM831X_TCH_Z_ENA
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_wm831x_ts_data_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_ts_data_irq
_wm831x_ts_data_irq:                    ; @wm831x_ts_data_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x20, [x1, #32]
	ldr	x25, [x1, #16]
	cmp	x25, #0
	mov	w8, #2
	cinc	w21, w8, ne
Lloh3:
	adrp	x22, _WM831X_INTERRUPT_STATUS_1@GOTPAGE
Lloh4:
	ldr	x22, [x22, _WM831X_INTERRUPT_STATUS_1@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh5:
	adrp	x23, _WM831X_TCHDATA_EINT@GOTPAGE
Lloh6:
	ldr	x23, [x23, _WM831X_TCHDATA_EINT@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x2
	bl	_wm831x_set_bits
Lloh7:
	adrp	x24, _WM831X_TOUCH_DATA_X@GOTPAGE
Lloh8:
	ldr	x24, [x24, _WM831X_TOUCH_DATA_X@GOTPAGEOFF]
	ldr	w1, [x24]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_wm831x_bulk_read
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x20]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh11:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_17
LBB0_2:
	mov	w8, #1
	str	w8, [x19]
	ldr	w8, [sp, #12]
Lloh13:
	adrp	x27, _WM831X_TCH_PD@GOTPAGE
Lloh14:
	ldr	x27, [x27, _WM831X_TCH_PD@GOTPAGEOFF]
	ldr	w9, [x27]
Lloh15:
	adrp	x26, _WM831X_TCH_DATA_MASK@GOTPAGE
Lloh16:
	ldr	x26, [x26, _WM831X_TCH_DATA_MASK@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x19, #4]
	ldr	w9, [x26]
	and	w2, w9, w8
	mov	w1, #129
	bl	_input_report_abs
	b	LBB0_5
LBB0_4:
	str	wzr, [x19]
LBB0_5:
	ldr	w8, [sp, #16]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #4]
	ldr	w9, [x26]
	and	w2, w9, w8
	mov	w1, #128
	bl	_input_report_abs
	cbnz	x25, LBB0_8
	b	LBB0_10
LBB0_7:
	str	wzr, [x19]
	cbz	x25, LBB0_10
LBB0_8:
	ldr	w8, [sp, #20]
	ldr	w9, [x27]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.9:
	ldr	w0, [x19, #4]
	ldr	w9, [x26]
	and	w2, w9, w8
	mov	w1, #130
	bl	_input_report_abs
LBB0_10:
	ldr	w8, [x19]
	cbz	w8, LBB0_13
LBB0_11:
	ldr	w0, [x19, #4]
Lloh17:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_input_report_key
	b	LBB0_16
LBB0_12:
	str	wzr, [x19]
	ldr	w8, [x19]
	cbnz	w8, LBB0_11
LBB0_13:
	ldr	w0, [x20]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
	ldr	w0, [x19, #24]
	bl	_disable_irq_nosync
Lloh22:
	adrp	x8, _WM831X_TOUCH_CONTROL_1@GOTPAGE
Lloh23:
	ldr	x8, [x8, _WM831X_TOUCH_CONTROL_1@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _WM831X_TCH_X_ENA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM831X_TCH_X_ENA@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _WM831X_TCH_Y_ENA@GOTPAGE
Lloh29:
	ldr	x9, [x9, _WM831X_TCH_Y_ENA@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh31:
	adrp	x9, _WM831X_TCH_Z_ENA@GOTPAGE
Lloh32:
	ldr	x9, [x9, _WM831X_TCH_Z_ENA@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x20
	mov	w3, #0
	bl	_wm831x_set_bits
	ldr	w1, [x22]
	ldr	w2, [x23]
	mov	x0, x20
	mov	x3, x2
	bl	_wm831x_set_bits
	ldr	w1, [x24]
	add	x3, sp, #12
	mov	x0, x20
	mov	x2, x21
	bl	_wm831x_bulk_read
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w0, [x19, #4]
	mov	w1, #130
	mov	w2, #0
	bl	_input_report_abs
LBB0_15:
	ldr	w0, [x19, #4]
Lloh34:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh35:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_input_report_key
	add	x0, x19, #8
	bl	_schedule_work
LBB0_16:
	ldr	w0, [x19, #4]
	bl	_input_sync
Lloh37:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_17:
	ldr	w0, [x8]
	ldr	x8, [sp, #24]
Lloh39:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh40:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_INTERRUPT_STATUS_1,4,2  ; @WM831X_INTERRUPT_STATUS_1
	.comm	_WM831X_TCHDATA_EINT,4,2        ; @WM831X_TCHDATA_EINT
	.comm	_WM831X_TOUCH_DATA_X,4,2        ; @WM831X_TOUCH_DATA_X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to read touch data: %d\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_WM831X_TCH_PD,4,2              ; @WM831X_TCH_PD
	.comm	_WM831X_TCH_DATA_MASK,4,2       ; @WM831X_TCH_DATA_MASK
l_.str.1:                               ; @.str.1
	.asciz	"IRQ DATA->PD\n"

	.comm	_WM831X_TOUCH_CONTROL_1,4,2     ; @WM831X_TOUCH_CONTROL_1
	.comm	_WM831X_TCH_X_ENA,4,2           ; @WM831X_TCH_X_ENA
	.comm	_WM831X_TCH_Y_ENA,4,2           ; @WM831X_TCH_Y_ENA
	.comm	_WM831X_TCH_Z_ENA,4,2           ; @WM831X_TCH_Z_ENA
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_wm831x_ts_data_irq
.subsections_via_symbols
