	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxt_set_up_as_touchpad
_mxt_set_up_as_touchpad:                ## @mxt_set_up_as_touchpad
	.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	%rsi, %r15
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rdi)
	movq	_INPUT_PROP_BUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	___set_bit
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MXT_PIXELS_PER_MM@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_abs_set_res
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_abs_set_res
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_abs_set_res
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%r14, %rdi
	callq	_input_abs_set_res
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_KEY_RESERVED@GOTPCREL(%rip), %r12
	movq	_EV_KEY@GOTPCREL(%rip), %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rcx
	movq	(%rcx,%rbx,8), %rdx
	cmpq	(%r12), %rdx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_input_set_capability
	movl	(%r15), %eax
	jmp	LBB0_4
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Atmel maXTouch Touchpad"

	.comm	_INPUT_PROP_BUTTONPAD,4,2       ## @INPUT_PROP_BUTTONPAD
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_MXT_PIXELS_PER_MM,4,2          ## @MXT_PIXELS_PER_MM
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_KEY_RESERVED,8,3               ## @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.no_dead_strip	_mxt_set_up_as_touchpad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxt_set_up_as_touchpad
_mxt_set_up_as_touchpad:                ; @mxt_set_up_as_touchpad
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh2:
	adrp	x8, _INPUT_PROP_BUTTONPAD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INPUT_PROP_BUTTONPAD@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	___set_bit
Lloh5:
	adrp	x8, _ABS_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x21, _MXT_PIXELS_PER_MM@GOTPAGE
Lloh9:
	ldr	x21, [x21, _MXT_PIXELS_PER_MM@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_input_abs_set_res
Lloh10:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_input_abs_set_res
Lloh13:
	adrp	x8, _ABS_MT_POSITION_X@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_input_abs_set_res
Lloh16:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x20
	bl	_input_abs_set_res
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
Lloh19:
	adrp	x22, _KEY_RESERVED@GOTPAGE
Lloh20:
	ldr	x22, [x22, _KEY_RESERVED@GOTPAGEOFF]
Lloh21:
	adrp	x23, _EV_KEY@GOTPAGE
Lloh22:
	ldr	x23, [x23, _EV_KEY@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1
	cmp	x21, w8, sxtw
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x2, [x9, x21, lsl #3]
	ldr	x9, [x22]
	cmp	x2, x9
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w1, [x23]
	mov	x0, x20
	bl	_input_set_capability
	ldr	w8, [x19]
	b	LBB0_2
LBB0_5:
	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 AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Atmel maXTouch Touchpad"

	.comm	_INPUT_PROP_BUTTONPAD,4,2       ; @INPUT_PROP_BUTTONPAD
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_MXT_PIXELS_PER_MM,4,2          ; @MXT_PIXELS_PER_MM
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_KEY_RESERVED,8,3               ; @KEY_RESERVED
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.no_dead_strip	_mxt_set_up_as_touchpad
.subsections_via_symbols
