	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function silead_ts_init
_silead_ts_init:                        ## @silead_ts_init
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	_SILEAD_REG_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_SILEAD_CMD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	_SILEAD_CMD_SLEEP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SILEAD_CMD_SLEEP_MAX@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_usleep_range
	movq	_SILEAD_REG_TOUCH_NR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r15), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movq	_SILEAD_CMD_SLEEP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_usleep_range
	movq	_SILEAD_REG_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SILEAD_CLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	_SILEAD_CMD_SLEEP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_usleep_range
	movl	(%r12), %esi
	movq	_SILEAD_CMD_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_4
LBB0_5:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_SILEAD_CMD_SLEEP_MIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	callq	_usleep_range
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_SILEAD_REG_RESET,4,2           ## @SILEAD_REG_RESET
	.comm	_SILEAD_CMD_RESET,4,2           ## @SILEAD_CMD_RESET
	.comm	_SILEAD_CMD_SLEEP_MIN,4,2       ## @SILEAD_CMD_SLEEP_MIN
	.comm	_SILEAD_CMD_SLEEP_MAX,4,2       ## @SILEAD_CMD_SLEEP_MAX
	.comm	_SILEAD_REG_TOUCH_NR,4,2        ## @SILEAD_REG_TOUCH_NR
	.comm	_SILEAD_REG_CLOCK,4,2           ## @SILEAD_REG_CLOCK
	.comm	_SILEAD_CLOCK,4,2               ## @SILEAD_CLOCK
	.comm	_SILEAD_CMD_START,4,2           ## @SILEAD_CMD_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Registers clear error %d\n"

	.no_dead_strip	_silead_ts_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function silead_ts_init
_silead_ts_init:                        ; @silead_ts_init
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
Lloh0:
	adrp	x22, _SILEAD_REG_RESET@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SILEAD_REG_RESET@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _SILEAD_CMD_RESET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _SILEAD_CMD_RESET@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x23, _SILEAD_CMD_SLEEP_MIN@GOTPAGE
Lloh6:
	ldr	x23, [x23, _SILEAD_CMD_SLEEP_MIN@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh7:
	adrp	x24, _SILEAD_CMD_SLEEP_MAX@GOTPAGE
Lloh8:
	ldr	x24, [x24, _SILEAD_CMD_SLEEP_MAX@GOTPAGEOFF]
	ldr	w1, [x24]
	bl	_usleep_range
Lloh9:
	adrp	x8, _SILEAD_REG_TOUCH_NR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SILEAD_REG_TOUCH_NR@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_usleep_range
Lloh12:
	adrp	x8, _SILEAD_REG_CLOCK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SILEAD_REG_CLOCK@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x8, _SILEAD_CLOCK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _SILEAD_CLOCK@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_usleep_range
	ldr	w1, [x22]
Lloh18:
	adrp	x8, _SILEAD_CMD_START@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SILEAD_CMD_START@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbz	w0, LBB0_6
LBB0_4:
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_5:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_6:
	ldr	w0, [x23]
	ldr	w1, [x24]
	bl	_usleep_range
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_SILEAD_REG_RESET,4,2           ; @SILEAD_REG_RESET
	.comm	_SILEAD_CMD_RESET,4,2           ; @SILEAD_CMD_RESET
	.comm	_SILEAD_CMD_SLEEP_MIN,4,2       ; @SILEAD_CMD_SLEEP_MIN
	.comm	_SILEAD_CMD_SLEEP_MAX,4,2       ; @SILEAD_CMD_SLEEP_MAX
	.comm	_SILEAD_REG_TOUCH_NR,4,2        ; @SILEAD_REG_TOUCH_NR
	.comm	_SILEAD_REG_CLOCK,4,2           ; @SILEAD_REG_CLOCK
	.comm	_SILEAD_CLOCK,4,2               ; @SILEAD_CLOCK
	.comm	_SILEAD_CMD_START,4,2           ; @SILEAD_CMD_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Registers clear error %d\n"

	.no_dead_strip	_silead_ts_init
.subsections_via_symbols
