	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_setup_trackpoint_input_device
_elan_setup_trackpoint_input_device:    ## @elan_setup_trackpoint_input_device
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	callq	_devm_input_allocate_device
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rax
	movq	%rax, (%rbx)
	movq	_BUS_I2C@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_ELAN_VENDOR_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_input_set_drvdata
	movq	_EV_REL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movl	(%r15), %esi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_EV_KEY@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BTN_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movl	(%r15), %esi
	movq	_BTN_RIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movl	(%r15), %esi
	movq	_BTN_MIDDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_input_set_capability
	movq	_INPUT_PROP_POINTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	_INPUT_PROP_POINTING_STICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	___set_bit
	movq	%rbx, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Elan TrackPoint"

	.comm	_BUS_I2C,4,2                    ## @BUS_I2C
	.comm	_ELAN_VENDOR_ID,4,2             ## @ELAN_VENDOR_ID
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_EV_KEY,4,2                     ## @EV_KEY
	.comm	_BTN_LEFT,4,2                   ## @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ## @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ## @BTN_MIDDLE
	.comm	_INPUT_PROP_POINTER,4,2         ## @INPUT_PROP_POINTER
	.comm	_INPUT_PROP_POINTING_STICK,4,2  ## @INPUT_PROP_POINTING_STICK
	.no_dead_strip	_elan_setup_trackpoint_input_device
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_setup_trackpoint_input_device
_elan_setup_trackpoint_input_device:    ; @elan_setup_trackpoint_input_device
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
	ldr	x0, [x0, #16]
	bl	_devm_input_allocate_device
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x0]
Lloh2:
	adrp	x8, _BUS_I2C@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BUS_I2C@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0, #20]
Lloh5:
	adrp	x8, _ELAN_VENDOR_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ELAN_VENDOR_ID@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	stp	w9, w8, [x0, #12]
	mov	x1, x19
	bl	_input_set_drvdata
Lloh8:
	adrp	x21, _EV_REL@GOTPAGE
Lloh9:
	ldr	x21, [x21, _EV_REL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh10:
	adrp	x8, _REL_X@GOTPAGE
Lloh11:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
	ldr	w1, [x21]
Lloh13:
	adrp	x8, _REL_Y@GOTPAGE
Lloh14:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
Lloh16:
	adrp	x21, _EV_KEY@GOTPAGE
Lloh17:
	ldr	x21, [x21, _EV_KEY@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh18:
	adrp	x8, _BTN_LEFT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BTN_LEFT@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
	ldr	w1, [x21]
Lloh21:
	adrp	x8, _BTN_RIGHT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _BTN_RIGHT@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
	ldr	w1, [x21]
Lloh24:
	adrp	x8, _BTN_MIDDLE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BTN_MIDDLE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x20
	bl	_input_set_capability
Lloh27:
	adrp	x8, _INPUT_PROP_POINTER@GOTPAGE
Lloh28:
	ldr	x8, [x8, _INPUT_PROP_POINTER@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	___set_bit
Lloh30:
	adrp	x8, _INPUT_PROP_POINTING_STICK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INPUT_PROP_POINTING_STICK@GOTPAGEOFF]
Lloh32:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	___set_bit
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_3
LBB0_2:
Lloh33:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh35:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.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 AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Elan TrackPoint"

	.comm	_BUS_I2C,4,2                    ; @BUS_I2C
	.comm	_ELAN_VENDOR_ID,4,2             ; @ELAN_VENDOR_ID
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_EV_KEY,4,2                     ; @EV_KEY
	.comm	_BTN_LEFT,4,2                   ; @BTN_LEFT
	.comm	_BTN_RIGHT,4,2                  ; @BTN_RIGHT
	.comm	_BTN_MIDDLE,4,2                 ; @BTN_MIDDLE
	.comm	_INPUT_PROP_POINTER,4,2         ; @INPUT_PROP_POINTER
	.comm	_INPUT_PROP_POINTING_STICK,4,2  ; @INPUT_PROP_POINTING_STICK
	.no_dead_strip	_elan_setup_trackpoint_input_device
.subsections_via_symbols
