	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_tsi
_read_tsi:                              ## @read_tsi
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	movq	_DA9034_TSI_X_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-20(%rbp), %rdx
	callq	_da903x_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	8(%rbx), %edi
	movq	_DA9034_TSI_Y_MSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-16(%rbp), %rdx
	callq	_da903x_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movl	8(%rbx), %edi
	movq	_DA9034_TSI_XY_LSB@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-12(%rbp), %rdx
	callq	_da903x_read
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	-20(%rbp), %eax
	movzbl	%al, %eax
	movl	-12(%rbp), %ecx
	movl	%ecx, %edx
	andl	$3, %edx
	leal	(%rdx,%rax,4), %eax
	movl	%eax, (%rbx)
	movl	-16(%rbp), %eax
	movzbl	%al, %eax
	shrl	$2, %ecx
	andl	$3, %ecx
	leal	(%rcx,%rax,4), %eax
	movl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9034_TSI_X_MSB,4,2           ## @DA9034_TSI_X_MSB
	.comm	_DA9034_TSI_Y_MSB,4,2           ## @DA9034_TSI_Y_MSB
	.comm	_DA9034_TSI_XY_LSB,4,2          ## @DA9034_TSI_XY_LSB
	.no_dead_strip	_read_tsi
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_tsi
_read_tsi:                              ; @read_tsi
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x8, _DA9034_TSI_X_MSB@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9034_TSI_X_MSB@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_da903x_read
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x8, _DA9034_TSI_Y_MSB@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DA9034_TSI_Y_MSB@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	bl	_da903x_read
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x8, _DA9034_TSI_XY_LSB@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DA9034_TSI_XY_LSB@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #4
	bl	_da903x_read
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w8, [sp, #12]
	ldr	w9, [sp, #4]
	and	w10, w9, #0x3
	bfi	w10, w8, #2, #8
	ldr	w8, [sp, #8]
	ubfx	w9, w9, #2, #2
	bfi	w9, w8, #2, #8
	stp	w10, w9, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9034_TSI_X_MSB,4,2           ; @DA9034_TSI_X_MSB
	.comm	_DA9034_TSI_Y_MSB,4,2           ; @DA9034_TSI_Y_MSB
	.comm	_DA9034_TSI_XY_LSB,4,2          ; @DA9034_TSI_XY_LSB
	.no_dead_strip	_read_tsi
.subsections_via_symbols
