	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_touchscreen_parse_properties   ## -- Begin function touchscreen_parse_properties
	.p2align	4, 0x90
_touchscreen_parse_properties:          ## @touchscreen_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r15
	movq	8(%rdi), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	callq	_input_alloc_absinfo
	cmpq	$0, (%r15)
	je	LBB0_26
## %bb.1:
	testl	%ebx, %ebx
	movl	%ebx, -68(%rbp)                 ## 4-byte Spill
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_2
## %bb.3:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_2:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_min
	leaq	L_.str(%rip), %rsi
	leaq	-52(%rbp), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_max
	leaq	1(%rax), %rdx
	leaq	L_.str.1(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%rbx, %rdi
	callq	_touchscreen_get_prop_u32
	movl	%eax, %r12d
	orl	%r14d, %r12d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_fuzz
	leaq	L_.str.2(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	orl	%r12d, %eax
	je	LBB0_6
## %bb.5:
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	decl	%ecx
	movl	-44(%rbp), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_touchscreen_set_params
LBB0_6:
	cmpl	$0, -68(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.8:
	movq	_ABS_Y@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_7:
	movq	_ABS_MT_POSITION_Y@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_min
	leaq	L_.str.3(%rip), %rsi
	leaq	-52(%rbp), %rcx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_max
	leaq	1(%rax), %rdx
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	%r12, %rdi
	callq	_touchscreen_get_prop_u32
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_fuzz
	leaq	L_.str.5(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%r12, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	orl	%ebx, %eax
	je	LBB0_11
## %bb.10:
	movl	-52(%rbp), %edx
	movl	-48(%rbp), %ecx
	decl	%ecx
	movl	-44(%rbp), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_touchscreen_set_params
LBB0_11:
	movl	-68(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.13:
	movq	_ABS_PRESSURE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_ABS_MT_PRESSURE@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %r13d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_max
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rcx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	movl	%eax, %r14d
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_input_abs_get_fuzz
	leaq	L_.str.7(%rip), %rsi
	leaq	-44(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%rax, %rdx
	callq	_touchscreen_get_prop_u32
	orl	%r14d, %eax
	je	LBB0_16
## %bb.15:
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %r8d
	movq	%r15, %rdi
	movl	%r13d, %esi
	xorl	%edx, %edx
	callq	_touchscreen_set_params
LBB0_16:
	movq	-80(%rbp), %r13                 ## 8-byte Reload
	testq	%r13, %r13
	je	LBB0_26
## %bb.17:
	testl	%r12d, %r12d
	jne	LBB0_18
## %bb.19:
	movq	_ABS_X@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	movq	_ABS_MT_POSITION_X@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %ebx
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_input_abs_get_max
	movq	%rax, 32(%r13)
	leal	1(%rbx), %r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_input_abs_get_max
	movq	%rax, 24(%r13)
	leaq	L_.str.8(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_property_read_bool
	movq	%rax, 16(%r13)
	movl	%ebx, %r14d
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movq	(%r15), %rax
	movq	%r14, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	subl	%edx, 8(%rax,%rcx)
	movq	$0, (%rax,%rcx)
LBB0_22:
	leaq	L_.str.9(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_property_read_bool
	movq	%rax, 8(%r13)
	movl	%r12d, %ebx
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movq	(%r15), %rax
	movq	%rbx, %rcx
	shlq	$4, %rcx
	movl	(%rax,%rcx), %edx
	subl	%edx, 8(%rax,%rcx)
	movq	$0, (%rax,%rcx)
LBB0_24:
	leaq	L_.str.10(%rip), %rsi
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_device_property_read_bool
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_26
## %bb.25:
	movq	(%r15), %rax
	shlq	$4, %r14
	movq	(%rax,%r14), %rdi
	movl	8(%rax,%r14), %esi
	shlq	$4, %rbx
	movq	(%rax,%rbx), %rdx
	movl	8(%rax,%rbx), %ecx
	callq	_swap
LBB0_26:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ABS_MT_POSITION_X,4,2          ## @ABS_MT_POSITION_X
	.comm	_ABS_X,4,2                      ## @ABS_X
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"touchscreen-min-x"

L_.str.1:                               ## @.str.1
	.asciz	"touchscreen-size-x"

L_.str.2:                               ## @.str.2
	.asciz	"touchscreen-fuzz-x"

	.comm	_ABS_MT_POSITION_Y,4,2          ## @ABS_MT_POSITION_Y
	.comm	_ABS_Y,4,2                      ## @ABS_Y
L_.str.3:                               ## @.str.3
	.asciz	"touchscreen-min-y"

L_.str.4:                               ## @.str.4
	.asciz	"touchscreen-size-y"

L_.str.5:                               ## @.str.5
	.asciz	"touchscreen-fuzz-y"

	.comm	_ABS_MT_PRESSURE,4,2            ## @ABS_MT_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ## @ABS_PRESSURE
L_.str.6:                               ## @.str.6
	.asciz	"touchscreen-max-pressure"

L_.str.7:                               ## @.str.7
	.asciz	"touchscreen-fuzz-pressure"

L_.str.8:                               ## @.str.8
	.asciz	"touchscreen-inverted-x"

L_.str.9:                               ## @.str.9
	.asciz	"touchscreen-inverted-y"

L_.str.10:                              ## @.str.10
	.asciz	"touchscreen-swapped-x-y"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_touchscreen_parse_properties   ; -- Begin function touchscreen_parse_properties
	.p2align	2
_touchscreen_parse_properties:          ; @touchscreen_parse_properties
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x21, [x0, #8]
	bl	_input_alloc_absinfo
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.1:
Lloh0:
	adrp	x25, _ABS_MT_POSITION_X@GOTPAGE
Lloh1:
	ldr	x25, [x25, _ABS_MT_POSITION_X@GOTPAGEOFF]
Lloh2:
	adrp	x26, _ABS_X@GOTPAGE
Lloh3:
	ldr	x26, [x26, _ABS_X@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x26, x25, eq
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_min
	mov	x2, x0
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_max
	add	x2, x0, #1
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x3, sp, #8
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	orr	w24, w0, w24
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_fuzz
	mov	x2, x0
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x3, sp, #4
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	orr	w8, w24, w0
	cbz	w8, LBB0_3
; %bb.2:
	ldp	w8, w2, [sp, #8]
	sub	w3, w8, #1
	ldr	w4, [sp, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_touchscreen_set_params
LBB0_3:
Lloh10:
	adrp	x8, _ABS_MT_POSITION_Y@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ABS_MT_POSITION_Y@GOTPAGEOFF]
Lloh12:
	adrp	x9, _ABS_Y@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ABS_Y@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_min
	mov	x2, x0
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x3, sp, #12
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_max
	add	x2, x0, #1
Lloh16:
	adrp	x1, l_.str.4@PAGE
Lloh17:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x3, sp, #8
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	orr	w24, w0, w24
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_fuzz
	mov	x2, x0
Lloh18:
	adrp	x1, l_.str.5@PAGE
Lloh19:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x3, sp, #4
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	orr	w8, w24, w0
	cbz	w8, LBB0_5
; %bb.4:
	ldp	w8, w2, [sp, #8]
	sub	w3, w8, #1
	ldr	w4, [sp, #4]
	mov	x0, x19
	mov	x1, x23
	bl	_touchscreen_set_params
LBB0_5:
Lloh20:
	adrp	x8, _ABS_MT_PRESSURE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ABS_MT_PRESSURE@GOTPAGEOFF]
Lloh22:
	adrp	x9, _ABS_PRESSURE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ABS_PRESSURE@GOTPAGEOFF]
	cmp	w22, #0
	csel	x8, x9, x8, eq
	ldr	w23, [x8]
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_max
	mov	x2, x0
Lloh24:
	adrp	x1, l_.str.6@PAGE
Lloh25:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x3, sp, #8
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	mov	x24, x0
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_fuzz
	mov	x2, x0
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x3, sp, #4
	mov	x0, x21
	bl	_touchscreen_get_prop_u32
	orr	w8, w0, w24
	cbz	w8, LBB0_7
; %bb.6:
	ldp	w4, w3, [sp, #4]
	mov	x0, x19
	mov	x1, x23
	mov	w2, #0
	bl	_touchscreen_set_params
LBB0_7:
	cbz	x20, LBB0_14
; %bb.8:
	cmp	w22, #0
	csel	x8, x26, x25, eq
	ldr	w22, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_input_abs_get_max
	str	x0, [x20, #32]
	add	w23, w22, #1
	mov	x0, x19
	mov	x1, x23
	bl	_input_abs_get_max
	str	x0, [x20, #24]
Lloh28:
	adrp	x1, l_.str.8@PAGE
Lloh29:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x21
	bl	_device_property_read_bool
	str	x0, [x20, #16]
	cbz	x0, LBB0_10
; %bb.9:
	ldr	x8, [x19]
	add	x8, x8, w22, uxtw #4
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	sub	w9, w10, w9
	str	w9, [x8, #8]
	str	xzr, [x8]
LBB0_10:
Lloh30:
	adrp	x1, l_.str.9@PAGE
Lloh31:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x21
	bl	_device_property_read_bool
	str	x0, [x20, #8]
	cbz	x0, LBB0_12
; %bb.11:
	ldr	x8, [x19]
	add	x8, x8, w23, uxtw #4
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	sub	w9, w10, w9
	str	w9, [x8, #8]
	str	xzr, [x8]
LBB0_12:
Lloh32:
	adrp	x1, l_.str.10@PAGE
Lloh33:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x21
	bl	_device_property_read_bool
	str	x0, [x20]
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19]
	add	x9, x8, w22, uxtw #4
	ldp	x0, x1, [x9]
	add	x8, x8, w23, uxtw #4
	ldp	x2, x3, [x8]
	bl	_swap
LBB0_14:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_ABS_MT_POSITION_X,4,2          ; @ABS_MT_POSITION_X
	.comm	_ABS_X,4,2                      ; @ABS_X
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"touchscreen-min-x"

l_.str.1:                               ; @.str.1
	.asciz	"touchscreen-size-x"

l_.str.2:                               ; @.str.2
	.asciz	"touchscreen-fuzz-x"

	.comm	_ABS_MT_POSITION_Y,4,2          ; @ABS_MT_POSITION_Y
	.comm	_ABS_Y,4,2                      ; @ABS_Y
l_.str.3:                               ; @.str.3
	.asciz	"touchscreen-min-y"

l_.str.4:                               ; @.str.4
	.asciz	"touchscreen-size-y"

l_.str.5:                               ; @.str.5
	.asciz	"touchscreen-fuzz-y"

	.comm	_ABS_MT_PRESSURE,4,2            ; @ABS_MT_PRESSURE
	.comm	_ABS_PRESSURE,4,2               ; @ABS_PRESSURE
l_.str.6:                               ; @.str.6
	.asciz	"touchscreen-max-pressure"

l_.str.7:                               ; @.str.7
	.asciz	"touchscreen-fuzz-pressure"

l_.str.8:                               ; @.str.8
	.asciz	"touchscreen-inverted-x"

l_.str.9:                               ; @.str.9
	.asciz	"touchscreen-inverted-y"

l_.str.10:                              ; @.str.10
	.asciz	"touchscreen-swapped-x-y"

.subsections_via_symbols
