	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmi_2d_sensor_rel_report       ## -- Begin function rmi_2d_sensor_rel_report
	.p2align	4, 0x90
_rmi_2d_sensor_rel_report:              ## @rmi_2d_sensor_rel_report
	.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
	movl	%edx, %r12d
	movq	%rdi, %r14
	movq	_RMI_2D_REL_POS_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	_RMI_2D_REL_POS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_max
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %r15d
	movl	(%r13), %ebx
	movq	_RMI_2D_REL_POS_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_max
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_min
	movl	%eax, %ebx
	cmpq	$0, 24(%r14)
	je	LBB0_1
## %bb.2:
	movq	_RMI_2D_REL_POS_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	negl	%r15d
	movl	%r15d, %esi
	callq	_min
	movl	%eax, %r15d
	movq	%r12, %rax
	cmpq	$0, 16(%r14)
	je	LBB0_5
LBB0_4:
	movl	(%rax), %edi
	negl	%ebx
	movl	%ebx, %esi
	callq	_min
	movl	%eax, %ebx
LBB0_5:
	cmpq	$0, 8(%r14)
	je	LBB0_7
## %bb.6:
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_swap
LBB0_7:
	movl	%r15d, %eax
	orl	%ebx, %eax
	je	LBB0_8
## %bb.9:
	movl	(%r14), %edi
	movq	_REL_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	callq	_input_report_rel
	movl	(%r14), %edi
	movq	_REL_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_report_rel               ## TAILCALL
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	_RMI_2D_REL_POS_MAX@GOTPCREL(%rip), %rax
	cmpq	$0, 16(%r14)
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_RMI_2D_REL_POS_MAX,4,2         ## @RMI_2D_REL_POS_MAX
	.comm	_RMI_2D_REL_POS_MIN,4,2         ## @RMI_2D_REL_POS_MIN
	.comm	_REL_X,4,2                      ## @REL_X
	.comm	_REL_Y,4,2                      ## @REL_Y
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rmi_2d_sensor_rel_report       ; -- Begin function rmi_2d_sensor_rel_report
	.p2align	2
_rmi_2d_sensor_rel_report:              ; @rmi_2d_sensor_rel_report
	.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	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x23, _RMI_2D_REL_POS_MAX@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RMI_2D_REL_POS_MAX@GOTPAGEOFF]
	ldr	w20, [x23]
Lloh2:
	adrp	x24, _RMI_2D_REL_POS_MIN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _RMI_2D_REL_POS_MIN@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_max
	mov	x1, x0
	mov	x0, x20
	bl	_min
	mov	x20, x0
	ldr	w22, [x23]
	ldr	w0, [x24]
	mov	x1, x21
	bl	_max
	mov	x1, x0
	mov	x0, x22
	bl	_min
	mov	x21, x0
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x23]
	neg	w1, w20
	bl	_min
	mov	x20, x0
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	neg	w1, w21
	bl	_min
	mov	x21, x0
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x20
	mov	x1, x21
	bl	_swap
LBB0_6:
	orr	w8, w20, w21
	cbz	w8, LBB0_8
; %bb.7:
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _REL_X@GOTPAGE
Lloh5:
	ldr	x8, [x8, _REL_X@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x2, x20
	bl	_input_report_rel
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _REL_Y@GOTPAGE
Lloh8:
	ldr	x8, [x8, _REL_Y@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x2, x21
	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	_input_report_rel
LBB0_8:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_RMI_2D_REL_POS_MAX,4,2         ; @RMI_2D_REL_POS_MAX
	.comm	_RMI_2D_REL_POS_MIN,4,2         ; @RMI_2D_REL_POS_MIN
	.comm	_REL_X,4,2                      ; @REL_X
	.comm	_REL_Y,4,2                      ; @REL_Y
.subsections_via_symbols
