	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rmi_2d_sensor_set_input_params
_rmi_2d_sensor_set_input_params:        ## @rmi_2d_sensor_set_input_params
	.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	%rdi, %rbx
	movq	112(%rdi), %r14
	cmpq	$0, 104(%rdi)
	je	LBB0_19
## %bb.1:
	movl	72(%rbx), %eax
	movl	%eax, (%rbx)
	movq	96(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	callq	_min
	movl	%eax, 4(%rbx)
LBB0_3:
	movl	76(%rbx), %eax
	movl	%eax, 8(%rbx)
	movq	88(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_5
## %bb.4:
	movl	12(%rbx), %edi
	callq	_min
	movl	%eax, 12(%rbx)
LBB0_5:
	movq	_EV_ABS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_set_bit
	movl	4(%rbx), %r13d
	movl	12(%rbx), %r12d
	cmpq	$0, 80(%rbx)
	je	LBB0_7
## %bb.6:
	movl	%r13d, %edi
	movl	%r12d, %esi
	callq	_swap
LBB0_7:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r13d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movl	16(%rbx), %edi
	testl	%edi, %edi
	je	LBB0_13
## %bb.8:
	movl	20(%rbx), %esi
	testl	%esi, %esi
	je	LBB0_13
## %bb.9:
	movl	4(%rbx), %eax
	movl	12(%rbx), %ecx
	subl	(%rbx), %eax
	cltd
	idivl	%edi
	movl	%eax, %r12d
	subl	8(%rbx), %ecx
	movl	%ecx, %eax
	cltd
	idivl	%esi
	movl	%eax, %r13d
	cmpq	$0, 80(%rbx)
	je	LBB0_11
## %bb.10:
	movl	%r12d, %edi
	movl	%r13d, %esi
	callq	_swap
LBB0_11:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_abs_set_res
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_input_abs_set_res
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_abs_set_res
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r13d, %edx
	callq	_input_abs_set_res
	cmpl	$0, 24(%rbx)
	jne	LBB0_13
## %bb.12:
	movq	_DMAX@GOTPCREL(%rip), %rax
	imull	(%rax), %r12d
	movl	%r12d, 24(%rbx)
LBB0_13:
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$255, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TOUCH_MAJOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TOUCH_MINOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$15, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_ORIENTATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	_ABS_MT_TOOL_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MT_TOOL_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_input_set_abs_params
	movq	32(%rbx), %rax
	movq	_rmi_sensor_touchpad@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.15:
	movq	_INPUT_MT_POINTER@GOTPCREL(%rip), %rax
	cmpq	$0, 64(%rbx)
	jne	LBB0_17
	jmp	LBB0_18
LBB0_14:
	movq	_INPUT_MT_DIRECT@GOTPCREL(%rip), %rax
	cmpq	$0, 64(%rbx)
	je	LBB0_18
LBB0_17:
	movq	_INPUT_MT_TRACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_18:
	orl	(%rax), %r15d
	movl	56(%rbx), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_mt_init_slots
LBB0_19:
	cmpq	$0, 48(%rbx)
	je	LBB0_21
## %bb.20:
	movq	_EV_REL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%r14), %esi
	callq	_set_bit
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_set_bit
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	4(%r14), %esi
	callq	_set_bit
LBB0_21:
	cmpq	$0, 40(%rbx)
	je	LBB0_22
## %bb.23:
	movq	_INPUT_PROP_TOPBUTTONPAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r14), %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_bit                        ## TAILCALL
LBB0_22:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EV_ABS,4,2                     ## @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_DMAX,4,2                       ## @DMAX
	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ## @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ## @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ## @ABS_MT_ORIENTATION
	.comm	_ABS_MT_TOOL_TYPE,4,2           ## @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ## @MT_TOOL_MAX
	.comm	_rmi_sensor_touchpad,8,3        ## @rmi_sensor_touchpad
	.comm	_INPUT_MT_POINTER,4,2           ## @INPUT_MT_POINTER
	.comm	_INPUT_MT_DIRECT,4,2            ## @INPUT_MT_DIRECT
	.comm	_INPUT_MT_TRACK,4,2             ## @INPUT_MT_TRACK
	.comm	_EV_REL,4,2                     ## @EV_REL
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
	.comm	_INPUT_PROP_TOPBUTTONPAD,4,2    ## @INPUT_PROP_TOPBUTTONPAD
	.no_dead_strip	_rmi_2d_sensor_set_input_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rmi_2d_sensor_set_input_params
_rmi_2d_sensor_set_input_params:        ; @rmi_2d_sensor_set_input_params
	.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	x20, x0
	ldp	x8, x19, [x0, #104]
	cbz	x8, LBB0_14
; %bb.1:
	ldr	w8, [x20, #72]
	str	w8, [x20]
	ldr	x1, [x20, #96]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_min
	str	w0, [x20, #4]
LBB0_3:
	ldr	w8, [x20, #76]
	str	w8, [x20, #8]
	ldr	x1, [x20, #88]
	cbz	x1, LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
	bl	_min
	str	w0, [x20, #12]
LBB0_5:
Lloh0:
	adrp	x8, _EV_ABS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EV_ABS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_set_bit
	ldr	w22, [x20, #4]
	ldr	w21, [x20, #12]
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_7
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	bl	_swap
LBB0_7:
Lloh3:
	adrp	x23, _ABS_MT_POSITION_X@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ABS_MT_POSITION_X@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x22
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh5:
	adrp	x24, _ABS_MT_POSITION_Y@GOTPAGE
Lloh6:
	ldr	x24, [x24, _ABS_MT_POSITION_Y@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	mov	w2, #0
	mov	x3, x21
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	w9, [x20, #16]
	cbz	w9, LBB0_13
; %bb.8:
	ldr	w8, [x20, #20]
	cbz	w8, LBB0_13
; %bb.9:
	ldp	w11, w10, [x20]
	sub	w10, w10, w11
	sdiv	w21, w10, w9
	ldp	w10, w9, [x20, #8]
	sub	w9, w9, w10
	ldr	x10, [x20, #80]
	sdiv	w22, w9, w8
	cbz	x10, LBB0_11
; %bb.10:
	mov	x0, x21
	mov	x1, x22
	bl	_swap
LBB0_11:
Lloh7:
	adrp	x8, _ABS_X@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_abs_set_res
Lloh10:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_abs_set_res
	ldr	w1, [x23]
	mov	x0, x19
	mov	x2, x21
	bl	_input_abs_set_res
	ldr	w1, [x24]
	mov	x0, x19
	mov	x2, x22
	bl	_input_abs_set_res
	ldr	w8, [x20, #24]
	cbnz	w8, LBB0_13
; %bb.12:
Lloh13:
	adrp	x8, _DMAX@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DMAX@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	mul	w8, w8, w21
	str	w8, [x20, #24]
LBB0_13:
Lloh16:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #255
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh19:
	adrp	x8, _ABS_MT_TOUCH_MAJOR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ABS_MT_TOUCH_MAJOR@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #15
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh22:
	adrp	x8, _ABS_MT_TOUCH_MINOR@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ABS_MT_TOUCH_MINOR@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #15
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh25:
	adrp	x8, _ABS_MT_ORIENTATION@GOTPAGE
Lloh26:
	ldr	x8, [x8, _ABS_MT_ORIENTATION@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
Lloh28:
	adrp	x8, _ABS_MT_TOOL_TYPE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ABS_MT_TOOL_TYPE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _MT_TOOL_MAX@GOTPAGE
Lloh32:
	ldr	x8, [x8, _MT_TOOL_MAX@GOTPAGEOFF]
Lloh33:
	ldr	w3, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w4, #0
	mov	w5, #0
	bl	_input_set_abs_params
	ldr	x8, [x20, #32]
Lloh34:
	adrp	x9, _rmi_sensor_touchpad@GOTPAGE
Lloh35:
	ldr	x9, [x9, _rmi_sensor_touchpad@GOTPAGEOFF]
Lloh36:
	adrp	x10, _INPUT_MT_POINTER@GOTPAGE
Lloh37:
	ldr	x10, [x10, _INPUT_MT_POINTER@GOTPAGEOFF]
Lloh38:
	adrp	x11, _INPUT_MT_DIRECT@GOTPAGE
Lloh39:
	ldr	x11, [x11, _INPUT_MT_DIRECT@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
Lloh41:
	adrp	x9, _INPUT_MT_TRACK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _INPUT_MT_TRACK@GOTPAGEOFF]
	ldr	x10, [x20, #64]
Lloh43:
	ldr	w9, [x9]
	cmp	x10, #0
	csel	w9, wzr, w9, eq
	orr	w2, w9, w8
	ldr	w1, [x20, #56]
	mov	x0, x19
	bl	_input_mt_init_slots
LBB0_14:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_16
; %bb.15:
Lloh44:
	adrp	x8, _EV_REL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EV_REL@GOTPAGEOFF]
Lloh46:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	bl	_set_bit
Lloh47:
	adrp	x8, _REL_X@GOTPAGE
Lloh48:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh49:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_set_bit
Lloh50:
	adrp	x8, _REL_Y@GOTPAGE
Lloh51:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldr	w1, [x19, #4]
	bl	_set_bit
LBB0_16:
	ldr	x8, [x20, #40]
	cbz	x8, LBB0_18
; %bb.17:
Lloh53:
	adrp	x8, _INPUT_PROP_TOPBUTTONPAD@GOTPAGE
Lloh54:
	ldr	x8, [x8, _INPUT_PROP_TOPBUTTONPAD@GOTPAGEOFF]
Lloh55:
	ldr	w0, [x8]
	ldr	w1, [x19]
	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
	b	_set_bit
LBB0_18:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh38, Lloh39
	.loh AdrpLdrGot	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh40
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.cfi_endproc
                                        ; -- End function
	.comm	_EV_ABS,4,2                     ; @EV_ABS
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_DMAX,4,2                       ; @DMAX
	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_MT_TOUCH_MAJOR,4,2         ; @ABS_MT_TOUCH_MAJOR
	.comm	_ABS_MT_TOUCH_MINOR,4,2         ; @ABS_MT_TOUCH_MINOR
	.comm	_ABS_MT_ORIENTATION,4,2         ; @ABS_MT_ORIENTATION
	.comm	_ABS_MT_TOOL_TYPE,4,2           ; @ABS_MT_TOOL_TYPE
	.comm	_MT_TOOL_MAX,4,2                ; @MT_TOOL_MAX
	.comm	_rmi_sensor_touchpad,8,3        ; @rmi_sensor_touchpad
	.comm	_INPUT_MT_POINTER,4,2           ; @INPUT_MT_POINTER
	.comm	_INPUT_MT_DIRECT,4,2            ; @INPUT_MT_DIRECT
	.comm	_INPUT_MT_TRACK,4,2             ; @INPUT_MT_TRACK
	.comm	_EV_REL,4,2                     ; @EV_REL
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
	.comm	_INPUT_PROP_TOPBUTTONPAD,4,2    ; @INPUT_PROP_TOPBUTTONPAD
	.no_dead_strip	_rmi_2d_sensor_set_input_params
.subsections_via_symbols
