	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm831x_ts_input_close
_wm831x_ts_input_close:                 ## @wm831x_ts_input_close
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	16(%rax), %rdi
	movq	_WM831X_TCH_ENA@GOTPCREL(%rip), %rax
	movq	_WM831X_TCH_X_ENA@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_WM831X_TOUCH_CONTROL_1@GOTPCREL(%rip), %rax
	movq	_WM831X_TCH_Y_ENA@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_WM831X_TCH_Z_ENA@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	xorl	%ecx, %ecx
	callq	_wm831x_set_bits
	movl	8(%rbx), %edi
	callq	_synchronize_irq
	movl	4(%rbx), %edi
	callq	_synchronize_irq
	leaq	12(%rbx), %rdi
	callq	_flush_work
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	callq	_disable_irq
	movl	4(%rbx), %edi
	callq	_enable_irq
	movl	$0, (%rbx)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM831X_TOUCH_CONTROL_1,4,2     ## @WM831X_TOUCH_CONTROL_1
	.comm	_WM831X_TCH_ENA,4,2             ## @WM831X_TCH_ENA
	.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
	.no_dead_strip	_wm831x_ts_input_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wm831x_ts_input_close
_wm831x_ts_input_close:                 ; @wm831x_ts_input_close
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_input_get_drvdata
	mov	x19, x0
	ldr	x0, [x0, #16]
Lloh0:
	adrp	x8, _WM831X_TOUCH_CONTROL_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WM831X_TOUCH_CONTROL_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _WM831X_TCH_ENA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WM831X_TCH_ENA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _WM831X_TCH_X_ENA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _WM831X_TCH_X_ENA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _WM831X_TCH_Y_ENA@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WM831X_TCH_Y_ENA@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _WM831X_TCH_Z_ENA@GOTPAGE
Lloh13:
	ldr	x9, [x9, _WM831X_TCH_Z_ENA@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	w3, #0
	bl	_wm831x_set_bits
	ldr	w0, [x19, #8]
	bl	_synchronize_irq
	ldr	w0, [x19, #4]
	bl	_synchronize_irq
	add	x0, x19, #12
	bl	_flush_work
	ldr	w8, [x19]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w0, [x19, #8]
	bl	_disable_irq
	ldr	w0, [x19, #4]
	bl	_enable_irq
	str	wzr, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_WM831X_TOUCH_CONTROL_1,4,2     ; @WM831X_TOUCH_CONTROL_1
	.comm	_WM831X_TCH_ENA,4,2             ; @WM831X_TCH_ENA
	.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
	.no_dead_strip	_wm831x_ts_input_close
.subsections_via_symbols
