	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function st1232_ts_read_data
_st1232_ts_read_data:                   ## @st1232_ts_read_data
	.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	%rbx
	subq	$88, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movq	24(%rdi), %rax
	movq	32(%rdi), %r15
	movq	16(%rdi), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -100(%rbp)
	movq	(%rdi), %rbx
	movl	4(%rax), %ecx
	movl	%ecx, -72(%rbp)
	movq	$0, -80(%rbp)
	movl	$1, -96(%rbp)
	leaq	-100(%rbp), %rdx
	movq	%rdx, -88(%rbp)
	movl	%ecx, -40(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)
	movl	8(%rdi), %ecx
	movl	%ecx, -64(%rbp)
	movq	%rbx, -56(%rbp)
	movl	(%rax), %edi
	leaq	-96(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	16(%r14), %rax
	movl	4(%rax), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.2:
	shlq	$2, %rcx
	xorl	%edx, %edx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %rdx
	cmpq	%rdx, %rcx
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx,%rdx,4), %esi
	movl	%esi, %edi
	sarl	$7, %edi
	movl	%edi, (%r15,%rdx,4)
	cmpl	$128, %esi
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%rbx,%rdx,4), %esi
	andl	$112, %esi
	shll	$4, %esi
	orl	4(%rbx,%rdx,4), %esi
	movl	%esi, 4(%r15,%rdx,4)
	movl	(%rbx,%rdx,4), %esi
	andl	$7, %esi
	shll	$8, %esi
	orl	8(%rbx,%rdx,4), %esi
	movl	%esi, 8(%r15,%rdx,4)
	cmpq	$0, 8(%rax)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	24(%rbx,%rdx), %esi
	movl	%esi, 12(%r15,%rdx,4)
	jmp	LBB0_6
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-32(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
	.no_dead_strip	_st1232_ts_read_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function st1232_ts_read_data
_st1232_ts_read_data:                   ; @st1232_ts_read_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	ldp	x8, x21, [x0, #24]
	ldr	x9, [x0, #16]
	ldr	w11, [x9]
	ldr	x20, [x0]
	ldr	w9, [x8, #4]
	mov	w10, #1
	stp	w11, w10, [sp, #4]
	add	x10, sp, #4
	stp	x10, xzr, [sp, #16]
	str	w9, [sp, #64]
Lloh3:
	adrp	x10, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x10, [x10, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w11, [x0, #8]
	str	w9, [sp, #32]
	str	w11, [sp, #40]
	stp	x20, x10, [sp, #48]
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [x19, #16]
	ldr	w12, [x8, #4]
	cmp	w12, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x9, #0
	add	x10, x20, #24
	add	x11, x21, #8
	add	x12, x12, x12, lsl #1
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x9, #3
	add	x20, x20, #16
	add	x10, x10, #4
	add	x11, x11, #16
	cmp	x12, x9
	b.eq	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x20]
	asr	w14, w13, #7
	stur	w14, [x11, #-8]
	cmp	w13, #128
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w13, w14, [x20]
	lsl	w13, w13, #4
	and	w13, w13, #0x700
	orr	w13, w13, w14
	stur	w13, [x11, #-4]
	ldr	w13, [x20]
	ubfiz	w13, w13, #8, #3
	ldr	w14, [x20, #8]
	orr	w13, w13, w14
	str	w13, [x11]
	ldr	x13, [x8, #8]
	cbz	x13, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w13, [x10]
	str	w13, [x11, #4]
	b	LBB0_3
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldur	x8, [x29, #-40]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
	.no_dead_strip	_st1232_ts_read_data
.subsections_via_symbols
