	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cap11xx_thread_func
_cap11xx_thread_func:                   ## @cap11xx_thread_func
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	16(%rsi), %edi
	movq	_CAP11XX_REG_MAIN_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	xorl	%ecx, %ecx
	callq	_regmap_update_bits
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	16(%r14), %edi
	movq	_CAP11XX_REG_SENSOR_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_6
## %bb.2:
	movq	(%r14), %rdi
	cmpl	$0, (%rdi)
	jle	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	movq	8(%r14), %rax
	movl	(%rax,%rbx,4), %esi
	andl	-20(%rbp), %edx
	callq	_input_report_key
	incq	%rbx
	movq	(%r14), %rdi
	movslq	(%rdi), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
LBB0_5:
	callq	_input_sync
LBB0_6:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAP11XX_REG_MAIN_CONTROL,4,2   ## @CAP11XX_REG_MAIN_CONTROL
	.comm	_CAP11XX_REG_SENSOR_INPUT,4,2   ## @CAP11XX_REG_SENSOR_INPUT
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_cap11xx_thread_func
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cap11xx_thread_func
_cap11xx_thread_func:                   ; @cap11xx_thread_func
	.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, x1
	ldr	w0, [x1, #16]
Lloh0:
	adrp	x8, _CAP11XX_REG_MAIN_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CAP11XX_REG_MAIN_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w2, #1
	mov	w3, #0
	bl	_regmap_update_bits
	tbnz	w0, #31, LBB0_6
; %bb.1:
	ldr	w0, [x19, #16]
Lloh3:
	adrp	x8, _CAP11XX_REG_SENSOR_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP11XX_REG_SENSOR_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_regmap_read
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	x0, [x19]
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x20, #0
	mov	w21, #1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #8]
	ldr	w1, [x8, x20, lsl #2]
	ldr	w8, [sp, #12]
	lsl	w9, w21, w20
	and	w2, w8, w9
	bl	_input_report_key
	add	x20, x20, #1
	ldr	x0, [x19]
	ldrsw	x8, [x0]
	cmp	x20, x8
	b.lt	LBB0_4
LBB0_5:
	bl	_input_sync
LBB0_6:
Lloh6:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CAP11XX_REG_MAIN_CONTROL,4,2   ; @CAP11XX_REG_MAIN_CONTROL
	.comm	_CAP11XX_REG_SENSOR_INPUT,4,2   ; @CAP11XX_REG_SENSOR_INPUT
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_cap11xx_thread_func
.subsections_via_symbols
