	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_input_close
_stmfts_input_close:                    ## @stmfts_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	%rax, %r14
	movq	8(%rax), %rdi
	movq	_STMFTS_MS_MT_SENSE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_2:
	addq	$24, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movl	$0, (%r14)
	cmpq	$0, 32(%r14)
	je	LBB0_5
## %bb.3:
	movq	8(%r14), %rdi
	movq	_STMFTS_SS_HOVER_SENSE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	8(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_5:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	cmpq	$0, 16(%r14)
	je	LBB0_8
## %bb.6:
	movq	8(%r14), %rdi
	movq	_STMFTS_MS_KEY_SENSE_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_warn
LBB0_8:
	movq	8(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pm_runtime_put_sync            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_STMFTS_MS_MT_SENSE_OFF,4,2     ## @STMFTS_MS_MT_SENSE_OFF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to disable touchscreen: %d\n"

	.comm	_STMFTS_SS_HOVER_SENSE_OFF,4,2  ## @STMFTS_SS_HOVER_SENSE_OFF
L_.str.1:                               ## @.str.1
	.asciz	"failed to disable hover: %d\n"

	.comm	_STMFTS_MS_KEY_SENSE_OFF,4,2    ## @STMFTS_MS_KEY_SENSE_OFF
L_.str.2:                               ## @.str.2
	.asciz	"failed to disable touchkey: %d\n"

	.no_dead_strip	_stmfts_input_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_input_close
_stmfts_input_close:                    ; @stmfts_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, #8]
Lloh0:
	adrp	x8, _STMFTS_MS_MT_SENSE_OFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STMFTS_MS_MT_SENSE_OFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
LBB0_2:
	add	x20, x19, #24
	mov	x0, x20
	bl	_mutex_lock
	str	wzr, [x19]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x8, _STMFTS_SS_HOVER_SENSE_OFF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _STMFTS_SS_HOVER_SENSE_OFF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_5
; %bb.4:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.6:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x8, _STMFTS_MS_KEY_SENSE_OFF@GOTPAGE
Lloh11:
	ldr	x8, [x8, _STMFTS_MS_KEY_SENSE_OFF@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	cbz	w0, LBB0_8
; %bb.7:
	mov	x2, x0
	ldr	x0, [x19, #8]
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
LBB0_8:
	ldr	x0, [x19, #8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put_sync
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_STMFTS_MS_MT_SENSE_OFF,4,2     ; @STMFTS_MS_MT_SENSE_OFF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to disable touchscreen: %d\n"

	.comm	_STMFTS_SS_HOVER_SENSE_OFF,4,2  ; @STMFTS_SS_HOVER_SENSE_OFF
l_.str.1:                               ; @.str.1
	.asciz	"failed to disable hover: %d\n"

	.comm	_STMFTS_MS_KEY_SENSE_OFF,4,2    ; @STMFTS_MS_KEY_SENSE_OFF
l_.str.2:                               ; @.str.2
	.asciz	"failed to disable touchkey: %d\n"

	.no_dead_strip	_stmfts_input_close
.subsections_via_symbols
