	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function silead_ts_reset
_silead_ts_reset:                       ## @silead_ts_reset
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_SILEAD_REG_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SILEAD_CMD_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_i2c_smbus_write_byte_data
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_SILEAD_CMD_SLEEP_MIN@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_SILEAD_CMD_SLEEP_MAX@GOTPCREL(%rip), %r12
	movl	(%r12), %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_4
## %bb.2:
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_usleep_range
	movq	_SILEAD_REG_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %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_3
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_usleep_range
	xorl	%ebx, %ebx
	jmp	LBB0_5
	.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_CLOCK,4,2           ## @SILEAD_REG_CLOCK
	.comm	_SILEAD_CLOCK,4,2               ## @SILEAD_CLOCK
	.comm	_SILEAD_REG_POWER,4,2           ## @SILEAD_REG_POWER
	.comm	_SILEAD_CMD_START,4,2           ## @SILEAD_CMD_START
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Chip reset error %d\n"

	.no_dead_strip	_silead_ts_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function silead_ts_reset
_silead_ts_reset:                       ; @silead_ts_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, _SILEAD_REG_RESET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SILEAD_REG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SILEAD_CMD_RESET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SILEAD_CMD_RESET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.1:
Lloh6:
	adrp	x21, _SILEAD_CMD_SLEEP_MIN@GOTPAGE
Lloh7:
	ldr	x21, [x21, _SILEAD_CMD_SLEEP_MIN@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh8:
	adrp	x22, _SILEAD_CMD_SLEEP_MAX@GOTPAGE
Lloh9:
	ldr	x22, [x22, _SILEAD_CMD_SLEEP_MAX@GOTPAGEOFF]
	ldr	w1, [x22]
	bl	_usleep_range
Lloh10:
	adrp	x8, _SILEAD_REG_CLOCK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _SILEAD_REG_CLOCK@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
Lloh13:
	adrp	x8, _SILEAD_CLOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SILEAD_CLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_usleep_range
Lloh16:
	adrp	x8, _SILEAD_REG_POWER@GOTPAGE
Lloh17:
	ldr	x8, [x8, _SILEAD_REG_POWER@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _SILEAD_CMD_START@GOTPAGE
Lloh20:
	ldr	x8, [x8, _SILEAD_CMD_START@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_smbus_write_byte_data
	mov	x20, x0
	cbz	w0, LBB0_5
LBB0_3:
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_dev_err
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w0, [x21]
	ldr	w1, [x22]
	bl	_usleep_range
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.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_CLOCK,4,2           ; @SILEAD_REG_CLOCK
	.comm	_SILEAD_CLOCK,4,2               ; @SILEAD_CLOCK
	.comm	_SILEAD_REG_POWER,4,2           ; @SILEAD_REG_POWER
	.comm	_SILEAD_CMD_START,4,2           ; @SILEAD_CMD_START
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Chip reset error %d\n"

	.no_dead_strip	_silead_ts_reset
.subsections_via_symbols
