	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmfts_sysfs_hover_enable_write
_stmfts_sysfs_hover_enable_write:       ## @stmfts_sysfs_hover_enable_write
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_11
LBB0_2:
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-40(%rbp), %rax
	testq	%rax, (%r14)
	jne	LBB0_10
## %bb.3:
	cmpq	$0, 16(%r14)
	je	LBB0_9
## %bb.4:
	movl	12(%r14), %edi
	testq	%rax, %rax
	jne	LBB0_5
## %bb.6:
	movq	_STMFTS_SS_HOVER_SENSE_OFF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_STMFTS_SS_HOVER_SENSE_ON@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movq	-40(%rbp), %rax
LBB0_9:
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%rcx, (%r14)
LBB0_10:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r12, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_STMFTS_SS_HOVER_SENSE_ON,4,2   ## @STMFTS_SS_HOVER_SENSE_ON
	.comm	_STMFTS_SS_HOVER_SENSE_OFF,4,2  ## @STMFTS_SS_HOVER_SENSE_OFF
	.no_dead_strip	_stmfts_sysfs_hover_enable_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmfts_sysfs_hover_enable_write
_stmfts_sysfs_hover_enable_write:       ; @stmfts_sysfs_hover_enable_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #0
	bl	_kstrtoul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_8
LBB0_2:
	add	x21, x20, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	tst	x9, x8
	b.ne	LBB0_7
; %bb.3:
	ldr	x9, [x20, #16]
	cbz	x9, LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _STMFTS_SS_HOVER_SENSE_ON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _STMFTS_SS_HOVER_SENSE_ON@GOTPAGEOFF]
	ldr	w0, [x20, #12]
Lloh5:
	adrp	x10, _STMFTS_SS_HOVER_SENSE_OFF@GOTPAGE
Lloh6:
	ldr	x10, [x10, _STMFTS_SS_HOVER_SENSE_OFF@GOTPAGEOFF]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w1, [x8]
	bl	_i2c_smbus_write_byte
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	x8, [sp, #8]
LBB0_6:
	cmp	x8, #0
	cset	w8, ne
	str	x8, [x20]
LBB0_7:
	mov	x0, x21
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_STMFTS_SS_HOVER_SENSE_ON,4,2   ; @STMFTS_SS_HOVER_SENSE_ON
	.comm	_STMFTS_SS_HOVER_SENSE_OFF,4,2  ; @STMFTS_SS_HOVER_SENSE_OFF
	.no_dead_strip	_stmfts_sysfs_hover_enable_write
.subsections_via_symbols
