	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad7879_report
_ad7879_report:                         ## @ad7879_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	(%rdi), %rax
	movq	40(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_AD7879_SEQ_XPOS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_MAX_12BIT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	movl	(%rax,%rcx,4), %r15d
	andl	%ebx, %r15d
	movq	_AD7879_SEQ_YPOS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r14d
	andl	%ebx, %r14d
	movq	_AD7879_SEQ_Z1@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r12d
	andl	%ebx, %r12d
	movq	_AD7879_SEQ_Z2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andl	(%rax,%rcx,4), %ebx
	cmpq	$0, 32(%rdi)
	je	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movl	%r14d, %esi
	callq	_swap
LBB0_2:
	testl	%r15d, %r15d
	setne	%al
	testl	%r12d, %r12d
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %edi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	subl	%r12d, %ebx
	imull	%r15d, %ebx
	imull	8(%r13), %ebx
	xorl	%r14d, %r14d
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%r12d
	movl	%eax, %ebx
	addl	$2047, %ebx                     ## imm = 0x7FF
	shrl	$12, %ebx
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_input_abs_get_max
	cmpl	%eax, %ebx
	jbe	LBB0_5
## %bb.4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
LBB0_9:
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %r14
	leaq	24(%r13), %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	12(%r13), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	16(%r13), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movl	(%r14), %esi
	movl	20(%r13), %edx
	movq	%r12, %rdi
	callq	_input_report_abs
	movq	%r12, %rdi
	callq	_input_sync
LBB0_7:
	movl	%r15d, 12(%r13)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 16(%r13)
	movl	%ebx, 20(%r13)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AD7879_SEQ_XPOS,8,3            ## @AD7879_SEQ_XPOS
	.comm	_MAX_12BIT,4,2                  ## @MAX_12BIT
	.comm	_AD7879_SEQ_YPOS,8,3            ## @AD7879_SEQ_YPOS
	.comm	_AD7879_SEQ_Z1,8,3              ## @AD7879_SEQ_Z1
	.comm	_AD7879_SEQ_Z2,8,3              ## @AD7879_SEQ_Z2
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_ad7879_report
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad7879_report
_ad7879_report:                         ; @ad7879_report
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _AD7879_SEQ_XPOS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AD7879_SEQ_XPOS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh3:
	adrp	x10, _MAX_12BIT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MAX_12BIT@GOTPAGEOFF]
Lloh5:
	ldr	w23, [x10]
Lloh6:
	adrp	x10, _AD7879_SEQ_YPOS@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AD7879_SEQ_YPOS@GOTPAGEOFF]
	and	w20, w23, w9
Lloh8:
	ldr	x9, [x10]
	ldr	w9, [x8, x9, lsl #2]
Lloh9:
	adrp	x10, _AD7879_SEQ_Z1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _AD7879_SEQ_Z1@GOTPAGEOFF]
	and	w21, w9, w23
Lloh11:
	ldr	x9, [x10]
	ldr	w9, [x8, x9, lsl #2]
Lloh12:
	adrp	x10, _AD7879_SEQ_Z2@GOTPAGE
Lloh13:
	ldr	x10, [x10, _AD7879_SEQ_Z2@GOTPAGEOFF]
	and	w24, w9, w23
Lloh14:
	ldr	x9, [x10]
	ldr	w25, [x8, x9, lsl #2]
	ldp	x8, x22, [x0, #32]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	x1, x21
	bl	_swap
LBB0_2:
	cmp	w20, #0
	ccmp	w24, #0, #4, ne
	cset	w0, ne
	bl	_likely
	cbz	x0, LBB0_4
; %bb.3:
	and	w8, w25, w23
	sub	w8, w8, w24
	mul	w8, w8, w20
	ldr	w9, [x19, #8]
	mul	w8, w8, w9
	udiv	w8, w8, w24
	add	w8, w8, #2047
	lsr	w23, w8, #12
Lloh15:
	adrp	x24, _ABS_PRESSURE@GOTPAGE
Lloh16:
	ldr	x24, [x24, _ABS_PRESSURE@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x22
	bl	_input_abs_get_max
	cmp	w23, w0
	b.ls	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_5:
	add	x0, x19, #24
	bl	_timer_pending
	cbz	x0, LBB0_7
; %bb.6:
Lloh20:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh21:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x22
	mov	w2, #1
	bl	_input_report_key
Lloh23:
	adrp	x8, _ABS_X@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x19, #12]
	mov	x0, x22
	bl	_input_report_abs
Lloh26:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x19, #16]
	mov	x0, x22
	bl	_input_report_abs
	ldr	w1, [x24]
	ldr	w2, [x19, #20]
	mov	x0, x22
	bl	_input_report_abs
	mov	x0, x22
	bl	_input_sync
LBB0_7:
	mov	w0, #0
	stp	w20, w21, [x19, #12]
	str	w23, [x19, #20]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_AD7879_SEQ_XPOS,8,3            ; @AD7879_SEQ_XPOS
	.comm	_MAX_12BIT,4,2                  ; @MAX_12BIT
	.comm	_AD7879_SEQ_YPOS,8,3            ; @AD7879_SEQ_YPOS
	.comm	_AD7879_SEQ_Z1,8,3              ; @AD7879_SEQ_Z1
	.comm	_AD7879_SEQ_Z2,8,3              ; @AD7879_SEQ_Z2
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_ad7879_report
.subsections_via_symbols
