	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cyttsp_parse_properties
_cyttsp_parse_properties:               ## @cyttsp_parse_properties
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	movq	_CY_NUM_BL_KEYS@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_devm_kzalloc
	movl	%eax, 20(%rbx)
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	$0, (%rbx)
	movq	_CY_ACT_DIST_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 4(%rbx)
	movq	_CY_ACT_INTRVL_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	movq	_CY_TCH_TMOUT_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 12(%rbx)
	movq	_CY_LP_INTRVL_DFLT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%rbx)
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%eax, %edx
	callq	_device_property_read_u8_array
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_21
LBB0_3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_property_present
	movl	%eax, (%rbx)
	leaq	L_.str.3(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	jne	LBB0_8
## %bb.5:
	movl	-28(%rbp), %edx
	cmpl	$16, %edx
	jl	LBB0_7
## %bb.6:
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_19
LBB0_7:
	movq	_CY_ACT_DIST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	4(%rbx), %eax
	orl	%edx, %eax
	movl	%eax, 4(%rbx)
LBB0_8:
	leaq	L_.str.5(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	jne	LBB0_12
## %bb.9:
	movl	-28(%rbp), %edx
	cmpl	$256, %edx                      ## imm = 0x100
	jl	LBB0_11
## %bb.10:
	leaq	L_.str.6(%rip), %rsi
	jmp	LBB0_19
LBB0_11:
	movl	%edx, 8(%rbx)
LBB0_12:
	leaq	L_.str.7(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	testl	%eax, %eax
	jne	LBB0_16
## %bb.13:
	movl	-28(%rbp), %edx
	cmpl	$2551, %edx                     ## imm = 0x9F7
	jl	LBB0_15
## %bb.14:
	leaq	L_.str.8(%rip), %rsi
	jmp	LBB0_19
LBB0_15:
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 16(%rbx)
LBB0_16:
	leaq	L_.str.9(%rip), %rsi
	leaq	-28(%rbp), %rdx
	movq	%r14, %rdi
	callq	_device_property_read_u32
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_21
## %bb.17:
	movl	-28(%rbp), %edx
	cmpl	$2551, %edx                     ## imm = 0x9F7
	jl	LBB0_22
## %bb.18:
	leaq	L_.str.10(%rip), %rsi
LBB0_19:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_20:
	subl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax         ## imm = 0x66666667
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$34, %rax
	addl	%ecx, %eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_CY_NUM_BL_KEYS,4,2             ## @CY_NUM_BL_KEYS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CY_ACT_DIST_DFLT,4,2           ## @CY_ACT_DIST_DFLT
	.comm	_CY_ACT_INTRVL_DFLT,4,2         ## @CY_ACT_INTRVL_DFLT
	.comm	_CY_TCH_TMOUT_DFLT,4,2          ## @CY_TCH_TMOUT_DFLT
	.comm	_CY_LP_INTRVL_DFLT,4,2          ## @CY_LP_INTRVL_DFLT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bootloader-key"

L_.str.1:                               ## @.str.1
	.asciz	"bootloader-key property could not be retrieved\n"

L_.str.2:                               ## @.str.2
	.asciz	"use-handshake"

L_.str.3:                               ## @.str.3
	.asciz	"active-distance"

L_.str.4:                               ## @.str.4
	.asciz	"active-distance (%u) must be [0-15]\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CY_ACT_DIST_MASK,4,2           ## @CY_ACT_DIST_MASK
L_.str.5:                               ## @.str.5
	.asciz	"active-interval-ms"

L_.str.6:                               ## @.str.6
	.asciz	"active-interval-ms (%u) must be [0-255]\n"

L_.str.7:                               ## @.str.7
	.asciz	"lowpower-interval-ms"

L_.str.8:                               ## @.str.8
	.asciz	"lowpower-interval-ms (%u) must be [0-2550]\n"

L_.str.9:                               ## @.str.9
	.asciz	"touch-timeout-ms"

L_.str.10:                              ## @.str.10
	.asciz	"touch-timeout-ms (%u) must be [0-2550]\n"

	.no_dead_strip	_cyttsp_parse_properties
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cyttsp_parse_properties
_cyttsp_parse_properties:               ; @cyttsp_parse_properties
	.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	x20, x0
	ldr	x19, [x0, #24]
Lloh0:
	adrp	x21, _CY_NUM_BL_KEYS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CY_NUM_BL_KEYS@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh2:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_devm_kzalloc
	str	w0, [x20, #20]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x2, x0
	str	wzr, [x20]
Lloh5:
	adrp	x8, _CY_ACT_DIST_DFLT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CY_ACT_DIST_DFLT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _CY_ACT_INTRVL_DFLT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _CY_ACT_INTRVL_DFLT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #4]
Lloh11:
	adrp	x8, _CY_TCH_TMOUT_DFLT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _CY_TCH_TMOUT_DFLT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _CY_LP_INTRVL_DFLT@GOTPAGE
Lloh15:
	ldr	x9, [x9, _CY_LP_INTRVL_DFLT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w8, w9, [x20, #12]
	ldr	w3, [x21]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_device_property_read_u8_array
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_22
LBB0_3:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_21
LBB0_4:
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_device_property_present
	str	w0, [x20]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbnz	w0, LBB0_8
; %bb.5:
	ldr	w8, [sp, #12]
	cmp	w8, #16
	b.lt	LBB0_7
; %bb.6:
	str	x8, [sp]
Lloh27:
	adrp	x1, l_.str.4@PAGE
Lloh28:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_20
LBB0_7:
Lloh29:
	adrp	x9, _CY_ACT_DIST_MASK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CY_ACT_DIST_MASK@GOTPAGEOFF]
Lloh31:
	ldr	w9, [x9]
	ldr	w10, [x20, #4]
	bic	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x20, #4]
LBB0_8:
Lloh32:
	adrp	x1, l_.str.5@PAGE
Lloh33:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbnz	w0, LBB0_12
; %bb.9:
	ldr	w8, [sp, #12]
	cmp	w8, #256
	b.lt	LBB0_11
; %bb.10:
	str	x8, [sp]
Lloh34:
	adrp	x1, l_.str.6@PAGE
Lloh35:
	add	x1, x1, l_.str.6@PAGEOFF
	b	LBB0_20
LBB0_11:
	str	w8, [x20, #8]
LBB0_12:
Lloh36:
	adrp	x1, l_.str.7@PAGE
Lloh37:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbnz	w0, LBB0_16
; %bb.13:
	ldr	w8, [sp, #12]
	cmp	w8, #2551
	b.lt	LBB0_15
; %bb.14:
	str	x8, [sp]
Lloh38:
	adrp	x1, l_.str.8@PAGE
Lloh39:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_20
LBB0_15:
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x20, #16]
LBB0_16:
Lloh40:
	adrp	x1, l_.str.9@PAGE
Lloh41:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #12
	mov	x0, x19
	bl	_device_property_read_u32
	cbz	w0, LBB0_18
; %bb.17:
	mov	w21, #0
	b	LBB0_22
LBB0_18:
	ldr	w8, [sp, #12]
	cmp	w8, #2551
	b.lt	LBB0_23
; %bb.19:
	str	x8, [sp]
Lloh42:
	adrp	x1, l_.str.10@PAGE
Lloh43:
	add	x1, x1, l_.str.10@PAGEOFF
LBB0_20:
	mov	x0, x19
	bl	_dev_err
Lloh44:
	adrp	x8, _EINVAL@GOTPAGE
Lloh45:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_22:
	mov	x0, x21
	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_23:
	mov	w21, #0
	mov	w9, #26215
	movk	w9, #26214, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #34
	add	w8, w8, w9
	str	w8, [x20, #12]
	b	LBB0_22
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpAdd	Lloh40, Lloh41
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_CY_NUM_BL_KEYS,4,2             ; @CY_NUM_BL_KEYS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CY_ACT_DIST_DFLT,4,2           ; @CY_ACT_DIST_DFLT
	.comm	_CY_ACT_INTRVL_DFLT,4,2         ; @CY_ACT_INTRVL_DFLT
	.comm	_CY_TCH_TMOUT_DFLT,4,2          ; @CY_TCH_TMOUT_DFLT
	.comm	_CY_LP_INTRVL_DFLT,4,2          ; @CY_LP_INTRVL_DFLT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bootloader-key"

l_.str.1:                               ; @.str.1
	.asciz	"bootloader-key property could not be retrieved\n"

l_.str.2:                               ; @.str.2
	.asciz	"use-handshake"

l_.str.3:                               ; @.str.3
	.asciz	"active-distance"

l_.str.4:                               ; @.str.4
	.asciz	"active-distance (%u) must be [0-15]\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CY_ACT_DIST_MASK,4,2           ; @CY_ACT_DIST_MASK
l_.str.5:                               ; @.str.5
	.asciz	"active-interval-ms"

l_.str.6:                               ; @.str.6
	.asciz	"active-interval-ms (%u) must be [0-255]\n"

l_.str.7:                               ; @.str.7
	.asciz	"lowpower-interval-ms"

l_.str.8:                               ; @.str.8
	.asciz	"lowpower-interval-ms (%u) must be [0-2550]\n"

l_.str.9:                               ; @.str.9
	.asciz	"touch-timeout-ms"

l_.str.10:                              ; @.str.10
	.asciz	"touch-timeout-ms (%u) must be [0-2550]\n"

	.no_dead_strip	_cyttsp_parse_properties
.subsections_via_symbols
