	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyttsp_set_sysinfo_mode
_cyttsp_set_sysinfo_mode:               ## @cyttsp_set_sysinfo_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	_CY_SYSINFO_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ttsp_send_command
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	_CY_DELAY_DFLT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msleep
	movq	_CY_REG_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$8, %edx
	movq	%rbx, %rcx
	callq	_ttsp_read_block_data
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	movq	%rbx, %rdi
	callq	_cyttsp_handshake
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	cmpl	$0, 4(%rbx)
	jne	LBB0_6
## %bb.4:
	cmpl	$0, (%rbx)
	jne	LBB0_6
## %bb.5:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CY_SYSINFO_MODE,4,2            ## @CY_SYSINFO_MODE
	.comm	_CY_DELAY_DFLT,4,2              ## @CY_DELAY_DFLT
	.comm	_CY_REG_BASE,4,2                ## @CY_REG_BASE
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_cyttsp_set_sysinfo_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyttsp_set_sysinfo_mode
_cyttsp_set_sysinfo_mode:               ; @cyttsp_set_sysinfo_mode
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x8, _CY_SYSINFO_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CY_SYSINFO_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ttsp_send_command
	cbnz	w0, LBB0_6
; %bb.1:
Lloh3:
	adrp	x8, _CY_DELAY_DFLT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CY_DELAY_DFLT@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_msleep
Lloh6:
	adrp	x8, _CY_REG_BASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CY_REG_BASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #8
	mov	x3, x19
	bl	_ttsp_read_block_data
	cbnz	w0, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_cyttsp_handshake
	cbnz	w0, LBB0_6
; %bb.3:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_CY_SYSINFO_MODE,4,2            ; @CY_SYSINFO_MODE
	.comm	_CY_DELAY_DFLT,4,2              ; @CY_DELAY_DFLT
	.comm	_CY_REG_BASE,4,2                ; @CY_REG_BASE
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_cyttsp_set_sysinfo_mode
.subsections_via_symbols
