	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_input_mapping
_elan_input_mapping:                    ## @elan_input_mapping
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdx, %rbx
	callq	_is_not_elan_touchpad
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movq	_ELAN_SINGLE_FINGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_ELAN_MT_FIRST_FINGER@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%dl
	orb	%cl, %dl
	movq	_ELAN_MT_SECOND_FINGER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_ELAN_MT_I2C@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	sete	%al
	orb	%cl, %al
	orb	%dl, %al
	movzbl	%al, %eax
	negl	%eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_SINGLE_FINGER,8,3         ## @ELAN_SINGLE_FINGER
	.comm	_ELAN_MT_FIRST_FINGER,8,3       ## @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,8,3      ## @ELAN_MT_SECOND_FINGER
	.comm	_ELAN_MT_I2C,8,3                ## @ELAN_MT_I2C
	.no_dead_strip	_elan_input_mapping
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_input_mapping
_elan_input_mapping:                    ; @elan_input_mapping
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
	bl	_is_not_elan_touchpad
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	x8, [x19]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _ELAN_SINGLE_FINGER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ELAN_SINGLE_FINGER@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh3:
	adrp	x9, _ELAN_MT_FIRST_FINGER@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ELAN_MT_FIRST_FINGER@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x9, _ELAN_MT_SECOND_FINGER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ELAN_MT_SECOND_FINGER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
Lloh9:
	adrp	x9, _ELAN_MT_I2C@GOTPAGE
Lloh10:
	ldr	x9, [x9, _ELAN_MT_I2C@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	cset	w8, eq
	sbfx	w0, w8, #0, #1
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_SINGLE_FINGER,8,3         ; @ELAN_SINGLE_FINGER
	.comm	_ELAN_MT_FIRST_FINGER,8,3       ; @ELAN_MT_FIRST_FINGER
	.comm	_ELAN_MT_SECOND_FINGER,8,3      ; @ELAN_MT_SECOND_FINGER
	.comm	_ELAN_MT_I2C,8,3                ; @ELAN_MT_I2C
	.no_dead_strip	_elan_input_mapping
.subsections_via_symbols
