	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wm97xx_ts_input_close
_wm97xx_ts_input_close:                 ## @wm97xx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_input_get_drvdata
	movq	%rax, %rbx
	movq	48(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_WM9705_ID2@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	16(%rbx), %rax
	xorl	%edi, %edi
	cmpl	$0, (%rax)
	sete	%dil
	callq	_BUG_ON
	movq	_AC97_MISC_AFE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_wm97xx_reg_read
	movl	(%r14), %esi
	movq	16(%rbx), %rcx
	orl	(%rcx), %eax
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_wm97xx_reg_write
	movq	48(%rbx), %rdi
LBB0_3:
	movq	%rbx, %rsi
	callq	_free_irq
LBB0_4:
	movq	$0, 40(%rbx)
	leaq	32(%rbx), %rdi
	callq	_cancel_work_sync
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	*16(%rax)
LBB0_6:
	movq	%rbx, %rdi
	addq	$28, %rdi
	callq	_cancel_delayed_work_sync
	movl	24(%rbx), %edi
	callq	_destroy_workqueue
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	*8(%rax)
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	cmpq	$0, 8(%rax)
	je	LBB0_8
## %bb.9:
	movq	8(%rbx), %rax
	movq	(%rax), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WM9705_ID2,8,3                 ## @WM9705_ID2
	.comm	_AC97_MISC_AFE,4,2              ## @AC97_MISC_AFE
	.no_dead_strip	_wm97xx_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 wm97xx_ts_input_close
_wm97xx_ts_input_close:                 ; @wm97xx_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, #48]
	cbz	x0, LBB0_4
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _WM9705_ID2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WM9705_ID2@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
Lloh3:
	adrp	x20, _AC97_MISC_AFE@GOTPAGE
Lloh4:
	ldr	x20, [x20, _AC97_MISC_AFE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_wm97xx_reg_read
	ldr	w1, [x20]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_wm97xx_reg_write
	ldr	x0, [x19, #48]
LBB0_3:
	mov	x1, x19
	bl	_free_irq
LBB0_4:
	str	xzr, [x19, #40]
	add	x0, x19, #32
	bl	_cancel_work_sync
	cbz	x0, LBB0_6
; %bb.5:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	mov	x0, x19
	mov	w1, #1
	blr	x8
LBB0_6:
	add	x0, x19, #28
	bl	_cancel_delayed_work_sync
	ldr	w0, [x19, #24]
	bl	_destroy_workqueue
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #8]
	mov	x0, x19
	mov	w1, #0
	blr	x8
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x2, [x8]
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x2
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WM9705_ID2,8,3                 ; @WM9705_ID2
	.comm	_AC97_MISC_AFE,4,2              ; @AC97_MISC_AFE
	.no_dead_strip	_wm97xx_ts_input_close
.subsections_via_symbols
