	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_reset
_stmpe_reset:                           ## @stmpe_reset
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %rcx
	movq	(%rcx), %rcx
	movq	_STMPE811_ID@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_STMPE811_SYS_CTRL_RESET@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_STMPE_SYS_CTRL_RESET@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %r14d
	movq	_STMPE_IDX_SYS_CTRL@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	movl	%r14d, %edx
	movl	%r14d, %ecx
	callq	___stmpe_set_bits
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movl	$10, %edi
	callq	_msleep
	movq	_jiffies@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	movl	$100, %edi
	callq	_msecs_to_jiffies
	movq	%rax, %r15
	addq	%r12, %r15
	movq	_STMPE_IDX_SYS_CTRL@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rdi
	movq	%r15, %rsi
	callq	_time_before
	testq	%rax, %rax
	je	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%rbx), %rax
	movq	(%r12), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%rbx, %rdi
	callq	___stmpe_reg_read
	testl	%eax, %eax
	js	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	testl	%r14d, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$100, %edi
	movl	$200, %esi
	callq	_usleep_range
	jmp	LBB0_5
LBB0_10:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_8:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STMPE811_ID,8,3                ## @STMPE811_ID
	.comm	_STMPE811_SYS_CTRL_RESET,4,2    ## @STMPE811_SYS_CTRL_RESET
	.comm	_STMPE_SYS_CTRL_RESET,4,2       ## @STMPE_SYS_CTRL_RESET
	.comm	_STMPE_IDX_SYS_CTRL,8,3         ## @STMPE_IDX_SYS_CTRL
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_stmpe_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_reset
_stmpe_reset:                           ; @stmpe_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldp	x9, x8, [x0]
	ldr	x8, [x8]
Lloh0:
	adrp	x10, _STMPE811_ID@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STMPE811_ID@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _STMPE811_SYS_CTRL_RESET@GOTPAGE
Lloh4:
	ldr	x11, [x11, _STMPE811_SYS_CTRL_RESET@GOTPAGEOFF]
Lloh5:
	adrp	x12, _STMPE_SYS_CTRL_RESET@GOTPAGE
Lloh6:
	ldr	x12, [x12, _STMPE_SYS_CTRL_RESET@GOTPAGEOFF]
	cmp	x8, x10
	csel	x8, x11, x12, eq
	ldr	w20, [x8]
Lloh7:
	adrp	x22, _STMPE_IDX_SYS_CTRL@GOTPAGE
Lloh8:
	ldr	x22, [x22, _STMPE_IDX_SYS_CTRL@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	w1, [x9, x8, lsl #2]
	mov	x2, x20
	mov	x3, x20
	bl	___stmpe_set_bits
	tbnz	w0, #31, LBB0_8
; %bb.1:
	mov	w0, #10
	bl	_msleep
Lloh9:
	adrp	x23, _jiffies@GOTPAGE
Lloh10:
	ldr	x23, [x23, _jiffies@GOTPAGEOFF]
	ldr	x21, [x23]
	mov	w0, #100
	bl	_msecs_to_jiffies
	add	x21, x0, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x23]
	mov	x1, x21
	bl	_time_before
	cbz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	ldr	x9, [x22]
	ldr	w1, [x8, x9, lsl #2]
	mov	x0, x19
	bl	___stmpe_reg_read
	tbnz	w0, #31, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	tst	w0, w20
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	mov	w1, #200
	bl	_usleep_range
	b	LBB0_2
LBB0_6:
Lloh11:
	adrp	x8, _EIO@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_STMPE811_ID,8,3                ; @STMPE811_ID
	.comm	_STMPE811_SYS_CTRL_RESET,4,2    ; @STMPE811_SYS_CTRL_RESET
	.comm	_STMPE_SYS_CTRL_RESET,4,2       ; @STMPE_SYS_CTRL_RESET
	.comm	_STMPE_IDX_SYS_CTRL,8,3         ; @STMPE_IDX_SYS_CTRL
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_stmpe_reset
.subsections_via_symbols
