	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tps6507x_ts_poll
_tps6507x_ts_poll:                      ## @tps6507x_ts_poll
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r14
	movq	8(%rdi), %rbx
	movq	_TPS6507X_TSCMODE_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	16(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_tps6507x_adc_conversion
	testq	%rax, %rax
	jne	LBB0_12
## %bb.1:
	movq	(%rbx), %r15
	movq	16(%rbx), %r12
	xorl	%edi, %edi
	cmpq	%r15, %r12
	jg	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	cmpl	$0, 8(%rbx)
	setne	%dil
LBB0_3:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	40(%rbx), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_dbg
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_key
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_input_report_abs
	movq	%r14, %rdi
	callq	_input_sync
	movl	$0, 8(%rbx)
LBB0_5:
	cmpq	%r15, %r12
	jle	LBB0_12
## %bb.6:
	cmpl	$0, 8(%rbx)
	movl	40(%rbx), %edi
	je	LBB0_7
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_dbg
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
LBB0_9:
	movq	_TPS6507X_TSCMODE_X_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_tps6507x_adc_conversion
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_TPS6507X_TSCMODE_Y_POSITION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	32(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_tps6507x_adc_conversion
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	32(%rbx), %rdx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	16(%rbx), %rdx
	movq	%r14, %rdi
	callq	_input_report_abs
	movq	%r14, %rdi
	callq	_input_sync
	movl	$1, 8(%rbx)
LBB0_12:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tps6507x_adc_standby           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TPS6507X_TSCMODE_PRESSURE,4,2  ## @TPS6507X_TSCMODE_PRESSURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"UP\n"

	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
L_.str.1:                               ## @.str.1
	.asciz	"DOWN\n"

L_.str.2:                               ## @.str.2
	.asciz	"still down\n"

	.comm	_TPS6507X_TSCMODE_X_POSITION,4,2 ## @TPS6507X_TSCMODE_X_POSITION
	.comm	_TPS6507X_TSCMODE_Y_POSITION,4,2 ## @TPS6507X_TSCMODE_Y_POSITION
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.no_dead_strip	_tps6507x_ts_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tps6507x_ts_poll
_tps6507x_ts_poll:                      ; @tps6507x_ts_poll
	.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
	ldp	x20, x19, [x0]
Lloh0:
	adrp	x8, _TPS6507X_TSCMODE_PRESSURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TPS6507X_TSCMODE_PRESSURE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, x19, #16
	mov	x0, x19
	bl	_tps6507x_adc_conversion
	cbnz	x0, LBB0_12
; %bb.1:
	ldr	x21, [x19, #16]
	ldr	x22, [x19]
	cmp	x21, x22
	b.le	LBB0_3
; %bb.2:
	mov	w0, #0
	bl	_unlikely
	cbnz	x0, LBB0_4
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_5
LBB0_4:
	ldr	w0, [x19, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
Lloh5:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_report_key
Lloh8:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_input_report_abs
	mov	x0, x20
	bl	_input_sync
	str	wzr, [x19, #8]
LBB0_5:
	cmp	x21, x22
	b.le	LBB0_12
; %bb.6:
	ldr	w8, [x19, #8]
	ldr	w0, [x19, #40]
	cbz	w8, LBB0_8
; %bb.7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
Lloh15:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
	bl	_input_report_key
LBB0_9:
Lloh18:
	adrp	x8, _TPS6507X_TSCMODE_X_POSITION@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TPS6507X_TSCMODE_X_POSITION@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	add	x2, x19, #24
	mov	x0, x19
	bl	_tps6507x_adc_conversion
	cbnz	x0, LBB0_12
; %bb.10:
Lloh21:
	adrp	x8, _TPS6507X_TSCMODE_Y_POSITION@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TPS6507X_TSCMODE_Y_POSITION@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	add	x2, x19, #32
	mov	x0, x19
	bl	_tps6507x_adc_conversion
	cbnz	x0, LBB0_12
; %bb.11:
Lloh24:
	adrp	x8, _ABS_X@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	mov	x0, x20
	bl	_input_report_abs
Lloh27:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
	ldr	x2, [x19, #32]
	mov	x0, x20
	bl	_input_report_abs
Lloh30:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x8]
	ldr	x2, [x19, #16]
	mov	x0, x20
	bl	_input_report_abs
	mov	x0, x20
	bl	_input_sync
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_12:
	mov	x0, x19
	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
	b	_tps6507x_adc_standby
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_TPS6507X_TSCMODE_PRESSURE,4,2  ; @TPS6507X_TSCMODE_PRESSURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"UP\n"

	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
l_.str.1:                               ; @.str.1
	.asciz	"DOWN\n"

l_.str.2:                               ; @.str.2
	.asciz	"still down\n"

	.comm	_TPS6507X_TSCMODE_X_POSITION,4,2 ; @TPS6507X_TSCMODE_X_POSITION
	.comm	_TPS6507X_TSCMODE_Y_POSITION,4,2 ; @TPS6507X_TSCMODE_Y_POSITION
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.no_dead_strip	_tps6507x_ts_poll
.subsections_via_symbols
