	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stmpe_keypad_altfunc_init
_stmpe_keypad_altfunc_init:             ## @stmpe_keypad_altfunc_init
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rsi
	movl	4(%rsi), %r13d
	movq	(%rdx), %rax
	movq	_STMPE_IDX_GPPUR_LSB@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, 8(%rsi)
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.10:
	movl	(%rsi), %r15d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movl	%r15d, %edi
	callq	___ffs
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %edx
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	btl	%r12d, %edx
	movl	$0, %ecx
	cmovael	%ecx, %esi
	orl	%esi, %r14d
	orl	%esi, %ebx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	btrl	%eax, %r15d
	incl	%r12d
	cmpl	8(%rsi), %r12d
	jl	LBB0_11
	jmp	LBB0_2
LBB0_1:
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
LBB0_2:
	cmpl	$0, 12(%rsi)
	movl	%ebx, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_5
## %bb.3:
	xorl	%r15d, %r15d
	xorl	%ebx, %ebx
	movq	%rsi, %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	callq	___ffs
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rcx), %edx
	movl	$1, %esi
	movl	%eax, %ecx
	shll	%cl, %esi
	btl	%ebx, %edx
	cmovael	%r15d, %esi
	orl	%esi, %r14d
	btrl	%eax, %r13d
	incl	%ebx
	cmpl	12(%r12), %ebx
	jl	LBB0_4
LBB0_5:
	movq	_STMPE_BLOCK_KEYPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_stmpe_set_altfunc
	testl	%eax, %eax
	je	LBB0_6
LBB0_9:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	xorl	%eax, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	$0, 16(%rcx)
	je	LBB0_9
## %bb.7:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_stmpe_reg_read
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	callq	_stmpe_reg_write
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_STMPE_IDX_GPPUR_LSB,8,3        ## @STMPE_IDX_GPPUR_LSB
	.comm	_STMPE_BLOCK_KEYPAD,4,2         ## @STMPE_BLOCK_KEYPAD
	.no_dead_strip	_stmpe_keypad_altfunc_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stmpe_keypad_altfunc_init
_stmpe_keypad_altfunc_init:             ; @stmpe_keypad_altfunc_init
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x0
	ldp	x19, x26, [x0, #8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _STMPE_IDX_GPPUR_LSB@GOTPAGE
Lloh1:
	ldr	x9, [x9, _STMPE_IDX_GPPUR_LSB@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w20, [x8, x9, lsl #2]
	ldp	w24, w8, [x26, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w27, #0
	mov	w21, #0
	mov	w23, #0
	ldr	w25, [x26]
	mov	w28, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x25
	bl	___ffs
	ldr	w8, [x22]
	lsl	w9, w28, w0
	lsr	w8, w8, w27
	sbfx	w8, w8, #0, #1
	and	w8, w8, w9
	orr	w23, w8, w23
	orr	w21, w8, w21
	bic	w25, w25, w9
	add	w27, w27, #1
	ldr	w8, [x26, #8]
	cmp	w27, w8
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w23, #0
	mov	w21, #0
LBB0_4:
	ldr	w8, [x26, #12]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	w25, #0
	mov	w27, #1
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	___ffs
	ldr	w8, [x22, #4]
	lsl	w9, w27, w0
	lsr	w8, w8, w25
	sbfx	w8, w8, #0, #1
	and	w8, w8, w9
	orr	w23, w8, w23
	bic	w24, w24, w9
	add	w25, w25, #1
	ldr	w8, [x26, #12]
	cmp	w25, w8
	b.lt	LBB0_6
LBB0_7:
Lloh3:
	adrp	x8, _STMPE_BLOCK_KEYPAD@GOTPAGE
Lloh4:
	ldr	x8, [x8, _STMPE_BLOCK_KEYPAD@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_stmpe_set_altfunc
	cbnz	w0, LBB0_12
; %bb.8:
	ldr	x8, [x26, #16]
	cbz	x8, LBB0_11
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	bl	_stmpe_reg_read
	cbnz	w0, LBB0_12
; %bb.10:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_stmpe_reg_write
LBB0_11:
	mov	w0, #0
LBB0_12:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_STMPE_IDX_GPPUR_LSB,8,3        ; @STMPE_IDX_GPPUR_LSB
	.comm	_STMPE_BLOCK_KEYPAD,4,2         ; @STMPE_BLOCK_KEYPAD
	.no_dead_strip	_stmpe_keypad_altfunc_init
.subsections_via_symbols
