	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function icn8318_read_touch_data
_icn8318_read_touch_data:               ## @icn8318_read_touch_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movq	_ICN8318_REG_TOUCHDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movl	$1, -64(%rbp)
	leaq	-68(%rbp), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -48(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -44(%rbp)
	movl	$4, -40(%rbp)
	movq	%rsi, -32(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -24(%rbp)
	movl	%eax, -20(%rbp)
	movl	(%rdi), %edi
	leaq	-64(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ICN8318_REG_TOUCHDATA,4,2      ## @ICN8318_REG_TOUCHDATA
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.no_dead_strip	_icn8318_read_touch_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function icn8318_read_touch_data
_icn8318_read_touch_data:               ; @icn8318_read_touch_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
Lloh3:
	adrp	x8, _ICN8318_REG_TOUCHDATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ICN8318_REG_TOUCHDATA@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
	mov	w8, #1
	stp	w9, w8, [sp, #4]
	add	x8, sp, #4
	str	x8, [sp, #16]
	ldp	w0, w8, [x0]
	stp	wzr, w8, [sp, #24]
	mov	w9, #4
	str	w9, [sp, #32]
	str	x1, [sp, #40]
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	stp	w9, w8, [sp, #48]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
	ldur	x8, [x29, #-8]
Lloh9:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh10:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ICN8318_REG_TOUCHDATA,4,2      ; @ICN8318_REG_TOUCHDATA
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.no_dead_strip	_icn8318_read_touch_data
.subsections_via_symbols
