	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rohm_ts_manual_calibration
_rohm_ts_manual_calibration:            ## @rohm_ts_manual_calibration
	.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
	subq	$200, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r15
	movq	_CALIBRATION_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r14d
	testl	%eax, %eax
	js	LBB0_10
## %bb.1:
	movq	_CALIBRATION_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_8
## %bb.2:
	movq	_CALIBRATION_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	testl	%eax, %eax
	js	LBB0_9
## %bb.3:
	movl	%ebx, -228(%rbp)                ## 4-byte Spill
	movl	%eax, -224(%rbp)                ## 4-byte Spill
	movq	_COORD_UPDATE@GOTPCREL(%rip), %rax
	movq	_SLEEP_IN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	movq	_SLEEP_OUT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	(%r12), %esi
	movq	_PROGRAM_LOAD_DONE@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DUALTOUCH_STABILIZE_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_12
LBB0_5:
	movl	(%r12), %esi
	movq	_INT_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:
	movq	_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r14d
LBB0_7:
	testl	%r13d, %r13d
	cmovnel	%r13d, %r14d
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %r14d
	jmp	LBB0_10
LBB0_9:
	movl	%eax, %r14d
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_78
## %bb.11:
	movl	%r14d, %eax
	addq	$200, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movq	%r15, -200(%rbp)                ## 8-byte Spill
	movq	_CALIBRATION_RETRY_MAX@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_58
## %bb.13:
	movl	$1, %r15d
	xorl	%ecx, %ecx
	movq	_PRM1_X_H@GOTPCREL(%rip), %rbx
	xorl	%eax, %eax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -216(%rbp)                ## 8-byte Spill
	jmp	LBB0_15
LBB0_14:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	-232(%rbp), %ecx                ## 4-byte Reload
	incl	%ecx
	movq	_CALIBRATION_RETRY_MAX@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	movq	_PRM1_X_H@GOTPCREL(%rip), %rbx
	jge	LBB0_58
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -232(%rbp)                ## 4-byte Spill
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	callq	_mdelay
	movl	(%rbx), %esi
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	leaq	-192(%rbp), %rdx
	movl	$132, %ecx
	callq	_rohm_i2c_burst_read
	testl	%eax, %eax
	jne	LBB0_63
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_TOUCH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rcx
	movslq	(%rbx), %rax
	subq	%rax, %rcx
	movq	_TOUCH_DETECT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, -192(%rbp,%rcx,4)
	jne	LBB0_14
## %bb.17:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	-192(%rbp), %esi
	testl	%r15d, %r15d
	movq	-216(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%esi, -216(%rbp)                ## 4-byte Spill
	movq	_PRM1_X_L@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rax, %rcx
	movl	-192(%rbp,%rcx,4), %ebx
	movq	_AXIS_OFFSET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -220(%rbp)                ## 4-byte Spill
	movq	_PRM1_Y_H@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rax, %rcx
	movl	-192(%rbp,%rcx,4), %r15d
	movq	_PRM1_Y_L@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rax, %rcx
	movl	-192(%rbp,%rcx,4), %r12d
	movq	_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DUALTOUCH_REG_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DUALTOUCH_STABILIZE_ON@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	-200(%rbp), %rdi                ## 8-byte Reload
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_63
## %bb.19:                              ##   in Loop: Header=BB0_15 Depth=1
	shll	$2, %r15d
	orl	%r15d, %r12d
	movl	-220(%rbp), %ecx                ## 4-byte Reload
	subl	%ecx, %r12d
	movq	%r12, -208(%rbp)                ## 8-byte Spill
	movl	-216(%rbp), %eax                ## 4-byte Reload
	shll	$2, %eax
	orl	%eax, %ebx
	subl	%ecx, %ebx
	movq	_CALIBRATION_REG1@GOTPCREL(%rip), %rsi
	jmp	LBB0_29
LBB0_20:                                ##   in Loop: Header=BB0_15 Depth=1
	shll	$2, %esi
	movq	_PRM1_X_L@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rax, %rcx
	orl	-192(%rbp,%rcx,4), %esi
	movq	_PRM1_Y_H@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	subq	%rax, %rcx
	movl	-192(%rbp,%rcx,4), %ecx
	shll	$2, %ecx
	movq	_PRM1_Y_L@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rdx
	subq	%rax, %rdx
	orl	-192(%rbp,%rdx,4), %ecx
	cmpl	$4, %esi
	jg	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_AXIS_ADJUST@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movq	_CALIBRATION_REG1@GOTPCREL(%rip), %rsi
	jmp	LBB0_24
LBB0_22:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$60, %esi
	movq	_CALIBRATION_REG1@GOTPCREL(%rip), %rsi
	jb	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_AXIS_ADJUST@GOTPCREL(%rip), %rax
	addl	(%rax), %ebx
LBB0_24:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	-208(%rbp), %rdx                ## 8-byte Reload
	cmpl	$4, %ecx
	jg	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_AXIS_ADJUST@GOTPCREL(%rip), %rax
	subl	(%rax), %edx
	jmp	LBB0_28
LBB0_26:                                ##   in Loop: Header=BB0_15 Depth=1
	cmpl	$60, %ecx
	jb	LBB0_29
## %bb.27:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_AXIS_ADJUST@GOTPCREL(%rip), %rax
	addl	(%rax), %edx
LBB0_28:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	%rdx, -208(%rbp)                ## 8-byte Spill
LBB0_29:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	%ebx, %eax
	andl	$512, %eax                      ## imm = 0x200
	movq	%rbx, -216(%rbp)                ## 8-byte Spill
	leal	(%rbx,%rax,2), %r15d
	movl	%r15d, %edx
	sarl	$3, %edx
	movl	(%rsi), %esi
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_66
## %bb.30:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	-208(%rbp), %rcx                ## 8-byte Reload
	movl	%ecx, %eax
	andl	$512, %eax                      ## imm = 0x200
	leal	(%rcx,%rax,2), %r12d
	movl	%r12d, %eax
	shll	$4, %eax
	andl	$112, %eax
	andl	$7, %r15d
	orl	%eax, %r15d
	movq	_CALIBRATION_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r15d, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_66
## %bb.31:                              ##   in Loop: Header=BB0_15 Depth=1
	sarl	$3, %r12d
	movq	_CALIBRATION_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	%r12d, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_67
## %bb.32:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_FORCE_CALIBRATION@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_FORCE_CALIBRATION_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	movq	%rbx, %r15
	jne	LBB0_65
## %bb.33:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r12), %esi
	movq	_FORCE_CALIBRATION_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_65
## %bb.34:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_INT_CLEAR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	$255, %edx
	callq	_i2c_smbus_write_byte_data
	testl	%eax, %eax
	jne	LBB0_65
## %bb.35:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.36:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.37:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.38:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.39:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.40:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.41:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.42:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.43:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.44:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.45:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.46:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.47:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.48:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.49:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.50:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.51:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.52:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_70
## %bb.53:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_mdelay
	movq	_TOUCH_GESTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_MASK@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_56
## %bb.54:                              ##   in Loop: Header=BB0_15 Depth=1
	testl	%r13d, %r13d
	js	LBB0_64
## %bb.55:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r15, %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	xorl	%r15d, %r15d
	jmp	LBB0_14
LBB0_56:                                ##   in Loop: Header=BB0_15 Depth=1
	movq	_INT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_i2c_smbus_read_byte_data
	movl	%eax, %r13d
	movq	_CALIBRATION_DONE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	je	LBB0_68
## %bb.57:                              ##   in Loop: Header=BB0_15 Depth=1
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	jns	LBB0_14
	jmp	LBB0_64
LBB0_58:
	movq	_CALIBRATION_REG1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-200(%rbp), %rbx                ## 8-byte Reload
	movq	%rbx, %rdi
	movl	%r14d, %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	movq	%rbx, %r15
	movq	_DUALTOUCH_STABILIZE_ON@GOTPCREL(%rip), %rbx
	jne	LBB0_5
## %bb.59:
	movq	_CALIBRATION_REG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-228(%rbp), %edx                ## 4-byte Reload
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.60:
	movq	_CALIBRATION_REG3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	movl	-224(%rbp), %edx                ## 4-byte Reload
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.61:
	movq	_TEST1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DUALTOUCH_REG_ON@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	orl	(%rbx), %edx
	movq	%r15, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.62:
	movq	_SAMPLING_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %edi
	callq	_mdelay
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_5
LBB0_63:
	movl	%eax, %r13d
LBB0_64:
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	movq	-200(%rbp), %r15                ## 8-byte Reload
	jmp	LBB0_5
LBB0_65:
	movl	%eax, %r13d
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_66:
	movl	%eax, %r13d
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	movq	%rbx, %r15
	jmp	LBB0_5
LBB0_67:
	movl	%eax, %r13d
	movq	%rbx, %r15
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_68:
	xorl	%r13d, %r13d
LBB0_70:
	movq	_INT_MASK@GOTPCREL(%rip), %r12
	jmp	LBB0_5
LBB0_78:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CALIBRATION_REG1,4,2           ## @CALIBRATION_REG1
	.comm	_CALIBRATION_REG2,4,2           ## @CALIBRATION_REG2
	.comm	_CALIBRATION_REG3,4,2           ## @CALIBRATION_REG3
	.comm	_INT_MASK,4,2                   ## @INT_MASK
	.comm	_COORD_UPDATE,4,2               ## @COORD_UPDATE
	.comm	_SLEEP_IN,4,2                   ## @SLEEP_IN
	.comm	_SLEEP_OUT,4,2                  ## @SLEEP_OUT
	.comm	_PROGRAM_LOAD_DONE,4,2          ## @PROGRAM_LOAD_DONE
	.comm	_TEST1,4,2                      ## @TEST1
	.comm	_DUALTOUCH_STABILIZE_ON,4,2     ## @DUALTOUCH_STABILIZE_ON
	.comm	_CALIBRATION_RETRY_MAX,4,2      ## @CALIBRATION_RETRY_MAX
	.comm	_SAMPLING_DELAY,4,2             ## @SAMPLING_DELAY
	.comm	_PRM1_X_H,4,2                   ## @PRM1_X_H
	.comm	_TOUCH,4,2                      ## @TOUCH
	.comm	_TOUCH_DETECT,4,2               ## @TOUCH_DETECT
	.comm	_PRM1_X_L,4,2                   ## @PRM1_X_L
	.comm	_AXIS_OFFSET,4,2                ## @AXIS_OFFSET
	.comm	_PRM1_Y_H,4,2                   ## @PRM1_Y_H
	.comm	_PRM1_Y_L,4,2                   ## @PRM1_Y_L
	.comm	_DUALTOUCH_REG_ON,4,2           ## @DUALTOUCH_REG_ON
	.comm	_AXIS_ADJUST,8,3                ## @AXIS_ADJUST
	.comm	_FORCE_CALIBRATION,4,2          ## @FORCE_CALIBRATION
	.comm	_FORCE_CALIBRATION_OFF,4,2      ## @FORCE_CALIBRATION_OFF
	.comm	_FORCE_CALIBRATION_ON,4,2       ## @FORCE_CALIBRATION_ON
	.comm	_INT_CLEAR,4,2                  ## @INT_CLEAR
	.comm	_TOUCH_GESTURE,4,2              ## @TOUCH_GESTURE
	.comm	_CALIBRATION_MASK,4,2           ## @CALIBRATION_MASK
	.comm	_INT_STATUS,4,2                 ## @INT_STATUS
	.comm	_CALIBRATION_DONE,4,2           ## @CALIBRATION_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"calibration timeout\n"

	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_INT_ALL,4,2                    ## @INT_ALL
	.no_dead_strip	_rohm_ts_manual_calibration
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rohm_ts_manual_calibration
_rohm_ts_manual_calibration:            ; @rohm_ts_manual_calibration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x19, [x0]
Lloh3:
	adrp	x8, _CALIBRATION_REG1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CALIBRATION_REG1@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x20, x0
	tbnz	w0, #31, LBB0_10
; %bb.1:
Lloh6:
	adrp	x21, _CALIBRATION_REG2@GOTPAGE
Lloh7:
	ldr	x21, [x21, _CALIBRATION_REG2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x22, x0
	tbnz	w0, #31, LBB0_8
; %bb.2:
Lloh8:
	adrp	x26, _CALIBRATION_REG3@GOTPAGE
Lloh9:
	ldr	x26, [x26, _CALIBRATION_REG3@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
	mov	x27, x0
	tbnz	w0, #31, LBB0_9
; %bb.3:
Lloh10:
	adrp	x28, _INT_MASK@GOTPAGE
Lloh11:
	ldr	x28, [x28, _INT_MASK@GOTPAGEOFF]
	ldr	w1, [x28]
Lloh12:
	adrp	x8, _COORD_UPDATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _COORD_UPDATE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SLEEP_IN@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SLEEP_IN@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _SLEEP_OUT@GOTPAGE
Lloh19:
	ldr	x9, [x9, _SLEEP_OUT@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _PROGRAM_LOAD_DONE@GOTPAGE
Lloh22:
	ldr	x9, [x9, _PROGRAM_LOAD_DONE@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.4:
Lloh24:
	adrp	x8, _TEST1@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TEST1@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _DUALTOUCH_STABILIZE_ON@GOTPAGE
Lloh28:
	ldr	x8, [x8, _DUALTOUCH_STABILIZE_ON@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbz	w0, LBB0_12
LBB0_5:
	ldr	w1, [x28]
Lloh30:
	adrp	x8, _INT_ALL@GOTPAGE
Lloh31:
	ldr	x8, [x8, _INT_ALL@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_7
; %bb.6:
Lloh33:
	adrp	x8, _INT_CLEAR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _INT_CLEAR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
LBB0_7:
	cmp	w24, #0
	csel	w20, w0, w24, eq
	b	LBB0_10
LBB0_8:
	mov	x20, x22
	b	LBB0_10
LBB0_9:
	mov	x20, x27
LBB0_10:
	ldur	x8, [x29, #-96]
Lloh36:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh37:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh38:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_67
; %bb.11:
	mov	x0, x20
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_12:
Lloh39:
	adrp	x23, _CALIBRATION_RETRY_MAX@GOTPAGE
Lloh40:
	ldr	x23, [x23, _CALIBRATION_RETRY_MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_59
; %bb.13:
	mov	w9, #0
	str	xzr, [sp, #16]                  ; 8-byte Folded Spill
Lloh41:
	adrp	x24, _PRM1_X_H@GOTPAGE
Lloh42:
	ldr	x24, [x24, _PRM1_X_H@GOTPAGEOFF]
	mov	w25, #1
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x11
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w9, w9, #1
	ldr	w8, [x23]
	cmp	w9, w8
	b.ge	LBB0_59
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	w9, [sp, #24]                   ; 4-byte Folded Spill
Lloh43:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh44:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh45:
	ldr	w8, [x8]
	lsl	w0, w8, #1
	bl	_mdelay
	ldr	w1, [x24]
	add	x2, sp, #28
	mov	x0, x19
	mov	w3, #132
	bl	_rohm_i2c_burst_read
	cbnz	w0, LBB0_64
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x11, x24
Lloh46:
	adrp	x8, _TOUCH@GOTPAGE
Lloh47:
	ldr	x8, [x8, _TOUCH@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x8]
	ldr	w8, [x24]
	sub	w9, w9, w8
	add	x10, sp, #28
	ldr	w9, [x10, w9, sxtw #2]
Lloh49:
	adrp	x10, _TOUCH_DETECT@GOTPAGE
Lloh50:
	ldr	x10, [x10, _TOUCH_DETECT@GOTPAGEOFF]
Lloh51:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_14
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w11, [sp, #28]
	cbz	w25, LBB0_21
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x28, x11
Lloh52:
	adrp	x9, _PRM1_X_L@GOTPAGE
Lloh53:
	ldr	x9, [x9, _PRM1_X_L@GOTPAGEOFF]
Lloh54:
	ldr	w9, [x9]
	sub	w9, w9, w8
	add	x10, sp, #28
	ldr	w25, [x10, w9, sxtw #2]
Lloh55:
	adrp	x9, _AXIS_OFFSET@GOTPAGE
Lloh56:
	ldr	x9, [x9, _AXIS_OFFSET@GOTPAGEOFF]
Lloh57:
	ldr	w27, [x9]
Lloh58:
	adrp	x9, _PRM1_Y_H@GOTPAGE
Lloh59:
	ldr	x9, [x9, _PRM1_Y_H@GOTPAGEOFF]
Lloh60:
	ldr	w9, [x9]
	sub	w9, w9, w8
	ldr	w21, [x10, w9, sxtw #2]
Lloh61:
	adrp	x9, _PRM1_Y_L@GOTPAGE
Lloh62:
	ldr	x9, [x9, _PRM1_Y_L@GOTPAGEOFF]
Lloh63:
	ldr	w9, [x9]
	sub	w8, w9, w8
	ldr	w23, [x10, w8, sxtw #2]
Lloh64:
	adrp	x8, _TEST1@GOTPAGE
Lloh65:
	ldr	x8, [x8, _TEST1@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
Lloh67:
	adrp	x8, _DUALTOUCH_STABILIZE_ON@GOTPAGE
Lloh68:
	ldr	x8, [x8, _DUALTOUCH_STABILIZE_ON@GOTPAGEOFF]
Lloh69:
	ldr	w8, [x8]
Lloh70:
	adrp	x9, _DUALTOUCH_REG_ON@GOTPAGE
Lloh71:
	ldr	x9, [x9, _DUALTOUCH_REG_ON@GOTPAGEOFF]
Lloh72:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_66
; %bb.20:                               ;   in Loop: Header=BB0_16 Depth=1
	orr	w8, w23, w21, lsl #2
	sub	w23, w8, w27
	orr	w8, w25, w28, lsl #2
	sub	w12, w8, w27
Lloh73:
	adrp	x28, _INT_MASK@GOTPAGE
Lloh74:
	ldr	x28, [x28, _INT_MASK@GOTPAGEOFF]
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
Lloh75:
	adrp	x11, _CALIBRATION_REG1@GOTPAGE
Lloh76:
	ldr	x11, [x11, _CALIBRATION_REG1@GOTPAGEOFF]
Lloh77:
	adrp	x25, _TOUCH_GESTURE@GOTPAGE
Lloh78:
	ldr	x25, [x25, _TOUCH_GESTURE@GOTPAGEOFF]
	b	LBB0_29
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh79:
	adrp	x9, _PRM1_X_L@GOTPAGE
Lloh80:
	ldr	x9, [x9, _PRM1_X_L@GOTPAGEOFF]
Lloh81:
	ldr	w9, [x9]
	sub	w9, w9, w8
	add	x10, sp, #28
	ldr	w9, [x10, w9, sxtw #2]
	orr	w10, w9, w11, lsl #2
Lloh82:
	adrp	x9, _PRM1_Y_H@GOTPAGE
Lloh83:
	ldr	x9, [x9, _PRM1_Y_H@GOTPAGEOFF]
Lloh84:
	ldr	w9, [x9]
	sub	w9, w9, w8
Lloh85:
	adrp	x11, _PRM1_Y_L@GOTPAGE
Lloh86:
	ldr	x11, [x11, _PRM1_Y_L@GOTPAGEOFF]
Lloh87:
	ldr	w11, [x11]
	sub	w8, w11, w8
	cmp	w10, #4
	b.gt	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh88:
	adrp	x10, _AXIS_ADJUST@GOTPAGE
Lloh89:
	ldr	x10, [x10, _AXIS_ADJUST@GOTPAGEOFF]
Lloh90:
	ldr	w10, [x10]
	ldp	w23, w12, [sp, #16]             ; 8-byte Folded Reload
	sub	w12, w12, w10
Lloh91:
	adrp	x11, _CALIBRATION_REG1@GOTPAGE
Lloh92:
	ldr	x11, [x11, _CALIBRATION_REG1@GOTPAGEOFF]
Lloh93:
	adrp	x25, _TOUCH_GESTURE@GOTPAGE
Lloh94:
	ldr	x25, [x25, _TOUCH_GESTURE@GOTPAGEOFF]
	b	LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w10, #60
Lloh95:
	adrp	x11, _CALIBRATION_REG1@GOTPAGE
Lloh96:
	ldr	x11, [x11, _CALIBRATION_REG1@GOTPAGEOFF]
Lloh97:
	adrp	x25, _TOUCH_GESTURE@GOTPAGE
Lloh98:
	ldr	x25, [x25, _TOUCH_GESTURE@GOTPAGEOFF]
	ldp	w23, w12, [sp, #16]             ; 8-byte Folded Reload
	b.lo	LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh99:
	adrp	x10, _AXIS_ADJUST@GOTPAGE
Lloh100:
	ldr	x10, [x10, _AXIS_ADJUST@GOTPAGEOFF]
Lloh101:
	ldr	w10, [x10]
	add	w12, w12, w10
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x10, sp, #28
	ldr	w9, [x10, w9, sxtw #2]
	ldr	w8, [x10, w8, sxtw #2]
	orr	w8, w8, w9, lsl #2
	cmp	w8, #4
	b.gt	LBB0_27
; %bb.26:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh102:
	adrp	x8, _AXIS_ADJUST@GOTPAGE
Lloh103:
	ldr	x8, [x8, _AXIS_ADJUST@GOTPAGEOFF]
Lloh104:
	ldr	w8, [x8]
	sub	w23, w23, w8
	b	LBB0_29
LBB0_27:                                ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #60
	b.lo	LBB0_29
; %bb.28:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh105:
	adrp	x8, _AXIS_ADJUST@GOTPAGE
Lloh106:
	ldr	x8, [x8, _AXIS_ADJUST@GOTPAGEOFF]
Lloh107:
	ldr	w8, [x8]
	add	w23, w23, w8
LBB0_29:                                ;   in Loop: Header=BB0_16 Depth=1
	lsl	w8, w12, #1
	and	w8, w8, #0x400
	str	w12, [sp, #20]                  ; 4-byte Folded Spill
	add	w21, w8, w12
	asr	w2, w21, #3
	ldr	w1, [x11]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.30:                               ;   in Loop: Header=BB0_16 Depth=1
	lsl	w8, w23, #1
	and	w8, w8, #0x400
	str	w23, [sp, #16]                  ; 4-byte Folded Spill
	add	w23, w8, w23
	and	w2, w21, #0x7
	bfi	w2, w23, #4, #3
Lloh108:
	adrp	x21, _CALIBRATION_REG2@GOTPAGE
Lloh109:
	ldr	x21, [x21, _CALIBRATION_REG2@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.31:                               ;   in Loop: Header=BB0_16 Depth=1
	asr	w2, w23, #3
	ldr	w1, [x26]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.32:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh110:
	adrp	x23, _FORCE_CALIBRATION@GOTPAGE
Lloh111:
	ldr	x23, [x23, _FORCE_CALIBRATION@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh112:
	adrp	x8, _FORCE_CALIBRATION_OFF@GOTPAGE
Lloh113:
	ldr	x8, [x8, _FORCE_CALIBRATION_OFF@GOTPAGEOFF]
Lloh114:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.33:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w1, [x23]
Lloh115:
	adrp	x8, _FORCE_CALIBRATION_ON@GOTPAGE
Lloh116:
	ldr	x8, [x8, _FORCE_CALIBRATION_ON@GOTPAGEOFF]
Lloh117:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.34:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh118:
	adrp	x8, _INT_CLEAR@GOTPAGE
Lloh119:
	ldr	x8, [x8, _INT_CLEAR@GOTPAGEOFF]
Lloh120:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #255
	bl	_i2c_smbus_write_byte_data
	cbnz	w0, LBB0_64
; %bb.35:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh121:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh122:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh123:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh124:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh125:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh126:
	ldr	w8, [x8]
	tst	w8, w0
Lloh127:
	adrp	x23, _CALIBRATION_RETRY_MAX@GOTPAGE
Lloh128:
	ldr	x23, [x23, _CALIBRATION_RETRY_MAX@GOTPAGEOFF]
	b.eq	LBB0_56
; %bb.36:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.37:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh129:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh130:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh131:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh132:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh133:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh134:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.38:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.39:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh135:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh136:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh137:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh138:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh139:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh140:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.40:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.41:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh141:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh142:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh143:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh144:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh145:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh146:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.42:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.43:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh147:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh148:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh149:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh150:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh151:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh152:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.44:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.45:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh153:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh154:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh155:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh156:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh157:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh158:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.46:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.47:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh159:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh160:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh161:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh162:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh163:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh164:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.48:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.49:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh165:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh166:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh167:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh168:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh169:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh170:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.50:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.51:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh171:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh172:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh173:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh174:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh175:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh176:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.52:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.53:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh177:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh178:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh179:
	ldr	w0, [x8]
	bl	_mdelay
	ldr	w1, [x25]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh180:
	adrp	x8, _CALIBRATION_MASK@GOTPAGE
Lloh181:
	ldr	x8, [x8, _CALIBRATION_MASK@GOTPAGEOFF]
Lloh182:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_56
; %bb.54:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
; %bb.55:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
Lloh183:
	adrp	x1, l_.str@PAGE
Lloh184:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	b	LBB0_58
LBB0_56:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh185:
	adrp	x8, _INT_STATUS@GOTPAGE
Lloh186:
	ldr	x8, [x8, _INT_STATUS@GOTPAGEOFF]
Lloh187:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_i2c_smbus_read_byte_data
Lloh188:
	adrp	x8, _CALIBRATION_DONE@GOTPAGE
Lloh189:
	ldr	x8, [x8, _CALIBRATION_DONE@GOTPAGEOFF]
Lloh190:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_65
; %bb.57:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, x0
	tbnz	w0, #31, LBB0_5
LBB0_58:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w25, #0
	ldr	w9, [sp, #24]                   ; 4-byte Folded Reload
Lloh191:
	adrp	x24, _PRM1_X_H@GOTPAGE
Lloh192:
	ldr	x24, [x24, _PRM1_X_H@GOTPAGEOFF]
	b	LBB0_15
LBB0_59:
Lloh193:
	adrp	x8, _CALIBRATION_REG1@GOTPAGE
Lloh194:
	ldr	x8, [x8, _CALIBRATION_REG1@GOTPAGEOFF]
Lloh195:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.60:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, x22
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.61:
	ldr	w1, [x26]
	mov	x0, x19
	mov	x2, x27
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.62:
Lloh196:
	adrp	x8, _TEST1@GOTPAGE
Lloh197:
	ldr	x8, [x8, _TEST1@GOTPAGEOFF]
Lloh198:
	ldr	w1, [x8]
Lloh199:
	adrp	x8, _DUALTOUCH_STABILIZE_ON@GOTPAGE
Lloh200:
	ldr	x8, [x8, _DUALTOUCH_STABILIZE_ON@GOTPAGEOFF]
Lloh201:
	ldr	w8, [x8]
Lloh202:
	adrp	x9, _DUALTOUCH_REG_ON@GOTPAGE
Lloh203:
	ldr	x9, [x9, _DUALTOUCH_REG_ON@GOTPAGEOFF]
Lloh204:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x24, x0
	cbnz	w0, LBB0_5
; %bb.63:
Lloh205:
	adrp	x8, _SAMPLING_DELAY@GOTPAGE
Lloh206:
	ldr	x8, [x8, _SAMPLING_DELAY@GOTPAGEOFF]
Lloh207:
	ldr	w8, [x8]
	add	w8, w8, w8, lsl #2
	lsl	w0, w8, #1
	bl	_mdelay
Lloh208:
	adrp	x8, _EBUSY@GOTPAGE
Lloh209:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh210:
	ldr	w8, [x8]
	neg	w24, w8
	b	LBB0_5
LBB0_64:
	mov	x24, x0
	b	LBB0_5
LBB0_65:
	mov	w24, #0
	b	LBB0_5
LBB0_66:
	mov	x24, x0
Lloh211:
	adrp	x28, _INT_MASK@GOTPAGE
Lloh212:
	ldr	x28, [x28, _INT_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_67:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh70, Lloh71, Lloh72
	.loh AdrpLdrGotLdr	Lloh67, Lloh68, Lloh69
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGotLdr	Lloh61, Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh58, Lloh59, Lloh60
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGot	Lloh75, Lloh76
	.loh AdrpLdrGot	Lloh73, Lloh74
	.loh AdrpLdrGotLdr	Lloh85, Lloh86, Lloh87
	.loh AdrpLdrGotLdr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGotLdr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGot	Lloh93, Lloh94
	.loh AdrpLdrGot	Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh88, Lloh89, Lloh90
	.loh AdrpLdrGot	Lloh97, Lloh98
	.loh AdrpLdrGot	Lloh95, Lloh96
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGot	Lloh127, Lloh128
	.loh AdrpLdrGotLdr	Lloh124, Lloh125, Lloh126
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh132, Lloh133, Lloh134
	.loh AdrpLdrGotLdr	Lloh129, Lloh130, Lloh131
	.loh AdrpLdrGotLdr	Lloh138, Lloh139, Lloh140
	.loh AdrpLdrGotLdr	Lloh135, Lloh136, Lloh137
	.loh AdrpLdrGotLdr	Lloh144, Lloh145, Lloh146
	.loh AdrpLdrGotLdr	Lloh141, Lloh142, Lloh143
	.loh AdrpLdrGotLdr	Lloh150, Lloh151, Lloh152
	.loh AdrpLdrGotLdr	Lloh147, Lloh148, Lloh149
	.loh AdrpLdrGotLdr	Lloh156, Lloh157, Lloh158
	.loh AdrpLdrGotLdr	Lloh153, Lloh154, Lloh155
	.loh AdrpLdrGotLdr	Lloh162, Lloh163, Lloh164
	.loh AdrpLdrGotLdr	Lloh159, Lloh160, Lloh161
	.loh AdrpLdrGotLdr	Lloh168, Lloh169, Lloh170
	.loh AdrpLdrGotLdr	Lloh165, Lloh166, Lloh167
	.loh AdrpLdrGotLdr	Lloh174, Lloh175, Lloh176
	.loh AdrpLdrGotLdr	Lloh171, Lloh172, Lloh173
	.loh AdrpLdrGotLdr	Lloh180, Lloh181, Lloh182
	.loh AdrpLdrGotLdr	Lloh177, Lloh178, Lloh179
	.loh AdrpAdd	Lloh183, Lloh184
	.loh AdrpLdrGotLdr	Lloh188, Lloh189, Lloh190
	.loh AdrpLdrGotLdr	Lloh185, Lloh186, Lloh187
	.loh AdrpLdrGot	Lloh191, Lloh192
	.loh AdrpLdrGotLdr	Lloh193, Lloh194, Lloh195
	.loh AdrpLdrGotLdr	Lloh202, Lloh203, Lloh204
	.loh AdrpLdrGotLdr	Lloh199, Lloh200, Lloh201
	.loh AdrpLdrGotLdr	Lloh196, Lloh197, Lloh198
	.loh AdrpLdrGotLdr	Lloh208, Lloh209, Lloh210
	.loh AdrpLdrGotLdr	Lloh205, Lloh206, Lloh207
	.loh AdrpLdrGot	Lloh211, Lloh212
	.cfi_endproc
                                        ; -- End function
	.comm	_CALIBRATION_REG1,4,2           ; @CALIBRATION_REG1
	.comm	_CALIBRATION_REG2,4,2           ; @CALIBRATION_REG2
	.comm	_CALIBRATION_REG3,4,2           ; @CALIBRATION_REG3
	.comm	_INT_MASK,4,2                   ; @INT_MASK
	.comm	_COORD_UPDATE,4,2               ; @COORD_UPDATE
	.comm	_SLEEP_IN,4,2                   ; @SLEEP_IN
	.comm	_SLEEP_OUT,4,2                  ; @SLEEP_OUT
	.comm	_PROGRAM_LOAD_DONE,4,2          ; @PROGRAM_LOAD_DONE
	.comm	_TEST1,4,2                      ; @TEST1
	.comm	_DUALTOUCH_STABILIZE_ON,4,2     ; @DUALTOUCH_STABILIZE_ON
	.comm	_CALIBRATION_RETRY_MAX,4,2      ; @CALIBRATION_RETRY_MAX
	.comm	_SAMPLING_DELAY,4,2             ; @SAMPLING_DELAY
	.comm	_PRM1_X_H,4,2                   ; @PRM1_X_H
	.comm	_TOUCH,4,2                      ; @TOUCH
	.comm	_TOUCH_DETECT,4,2               ; @TOUCH_DETECT
	.comm	_PRM1_X_L,4,2                   ; @PRM1_X_L
	.comm	_AXIS_OFFSET,4,2                ; @AXIS_OFFSET
	.comm	_PRM1_Y_H,4,2                   ; @PRM1_Y_H
	.comm	_PRM1_Y_L,4,2                   ; @PRM1_Y_L
	.comm	_DUALTOUCH_REG_ON,4,2           ; @DUALTOUCH_REG_ON
	.comm	_AXIS_ADJUST,8,3                ; @AXIS_ADJUST
	.comm	_FORCE_CALIBRATION,4,2          ; @FORCE_CALIBRATION
	.comm	_FORCE_CALIBRATION_OFF,4,2      ; @FORCE_CALIBRATION_OFF
	.comm	_FORCE_CALIBRATION_ON,4,2       ; @FORCE_CALIBRATION_ON
	.comm	_INT_CLEAR,4,2                  ; @INT_CLEAR
	.comm	_TOUCH_GESTURE,4,2              ; @TOUCH_GESTURE
	.comm	_CALIBRATION_MASK,4,2           ; @CALIBRATION_MASK
	.comm	_INT_STATUS,4,2                 ; @INT_STATUS
	.comm	_CALIBRATION_DONE,4,2           ; @CALIBRATION_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"calibration timeout\n"

	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_INT_ALL,4,2                    ; @INT_ALL
	.no_dead_strip	_rohm_ts_manual_calibration
.subsections_via_symbols
