	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ili210x_calibrate
_ili210x_calibrate:                     ## @ili210x_calibrate
	.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	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	_REG_CALIBRATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	-40(%rbp), %rax
	cmpq	$2, %rax
	jb	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%r15d, %r15d
	subq	(%rax), %r15
LBB0_7:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:
	movl	(%r14), %edi
	leaq	-28(%rbp), %rsi
	movl	$4, %edx
	callq	_i2c_master_send
	cmpl	$4, %eax
	je	LBB0_7
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_CALIBRATE,4,2              ## @REG_CALIBRATE
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_EIO,8,3                        ## @EIO
	.no_dead_strip	_ili210x_calibrate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ili210x_calibrate
_ili210x_calibrate:                     ; @ili210x_calibrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	bl	_to_i2c_client
	bl	_i2c_get_clientdata
	mov	x20, x0
Lloh0:
	adrp	x8, _REG_CALIBRATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_CALIBRATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #4]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	cbnz	x0, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.lo	LBB0_5
LBB0_2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_3:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_4:
	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
	add	sp, sp, #64
	ret
LBB0_5:
	cbz	x8, LBB0_4
; %bb.6:
	ldr	w0, [x20]
	add	x1, sp, #4
	mov	w2, #4
	bl	_i2c_master_send
	cmp	w0, #4
	b.eq	LBB0_4
; %bb.7:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_CALIBRATE,4,2              ; @REG_CALIBRATE
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_EIO,8,3                        ; @EIO
	.no_dead_strip	_ili210x_calibrate
.subsections_via_symbols
