	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9052_ts_read
_da9052_ts_read:                        ## @da9052_ts_read
	.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	8(%rdi), %r14
	movl	(%rdi), %edi
	movq	_DA9052_TSI_X_MSB_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_reg_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.1:
	movl	%eax, %r12d
	movl	(%rbx), %edi
	movq	_DA9052_TSI_Y_MSB_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_reg_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	movq	_DA9052_TSI_Z_MSB_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_reg_read
	testl	%eax, %eax
	js	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movl	(%rbx), %edi
	movq	_DA9052_TSI_LSB_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_da9052_reg_read
                                        ## kill: def $eax killed $eax def $rax
	testl	%eax, %eax
	js	LBB0_4
## %bb.5:
	movzbl	%r12b, %ecx
	movl	%eax, %edx
	andl	$3, %edx
	leal	(%rdx,%rcx,4), %r12d
	movzbl	%r15b, %ecx
	movl	%eax, %edx
	shrl	$2, %edx
	andl	$3, %edx
	leal	(%rdx,%rcx,4), %r15d
	movzbl	%r13b, %ecx
	shrl	$4, %eax
	andl	$3, %eax
	leal	(%rax,%rcx,4), %ebx
	movq	_BTN_TOUCH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_input_report_key
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	callq	_input_report_abs
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_input_report_abs
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_input_report_abs
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_input_sync                     ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9052_TSI_X_MSB_REG,4,2       ## @DA9052_TSI_X_MSB_REG
	.comm	_DA9052_TSI_Y_MSB_REG,4,2       ## @DA9052_TSI_Y_MSB_REG
	.comm	_DA9052_TSI_Z_MSB_REG,4,2       ## @DA9052_TSI_Z_MSB_REG
	.comm	_DA9052_TSI_LSB_REG,4,2         ## @DA9052_TSI_LSB_REG
	.comm	_BTN_TOUCH,4,2                  ## @BTN_TOUCH
	.comm	_ABS_X,4,2                      ## @ABS_X
	.comm	_ABS_Y,4,2                      ## @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
	.no_dead_strip	_da9052_ts_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9052_ts_read
_da9052_ts_read:                        ; @da9052_ts_read
	.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, x0
	ldr	x19, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _DA9052_TSI_X_MSB_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9052_TSI_X_MSB_REG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_da9052_reg_read
	tbnz	w0, #31, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w0, [x21]
Lloh3:
	adrp	x8, _DA9052_TSI_Y_MSB_REG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9052_TSI_Y_MSB_REG@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_da9052_reg_read
	tbnz	w0, #31, LBB0_5
; %bb.2:
	mov	x22, x0
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _DA9052_TSI_Z_MSB_REG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9052_TSI_Z_MSB_REG@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	bl	_da9052_reg_read
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x23, x0
	ldr	w0, [x21]
Lloh9:
	adrp	x8, _DA9052_TSI_LSB_REG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DA9052_TSI_LSB_REG@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	bl	_da9052_reg_read
	tbnz	w0, #31, LBB0_5
; %bb.4:
	and	w21, w0, #0x3
	bfi	w21, w20, #2, #8
	ubfiz	w20, w22, #2, #8
	bfxil	w20, w0, #2, #2
	ubfiz	w22, w23, #2, #8
	bfxil	w22, w0, #4, #2
Lloh12:
	adrp	x8, _BTN_TOUCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BTN_TOUCH@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #1
	bl	_input_report_key
Lloh15:
	adrp	x8, _ABS_X@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x21
	bl	_input_report_abs
Lloh18:
	adrp	x8, _ABS_Y@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ABS_Y@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_input_report_abs
Lloh21:
	adrp	x8, _ABS_PRESSURE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ABS_PRESSURE@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x22
	bl	_input_report_abs
	mov	x0, 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	_input_sync
LBB0_5:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9052_TSI_X_MSB_REG,4,2       ; @DA9052_TSI_X_MSB_REG
	.comm	_DA9052_TSI_Y_MSB_REG,4,2       ; @DA9052_TSI_Y_MSB_REG
	.comm	_DA9052_TSI_Z_MSB_REG,4,2       ; @DA9052_TSI_Z_MSB_REG
	.comm	_DA9052_TSI_LSB_REG,4,2         ; @DA9052_TSI_LSB_REG
	.comm	_BTN_TOUCH,4,2                  ; @BTN_TOUCH
	.comm	_ABS_X,4,2                      ; @ABS_X
	.comm	_ABS_Y,4,2                      ; @ABS_Y
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
	.no_dead_strip	_da9052_ts_read
.subsections_via_symbols
