	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function at91_adc_probe_dt_ts
_at91_adc_probe_dt_ts:                  ## @at91_adc_probe_dt_ts
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-36(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_info
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_2:
	movl	-36(%rbp), %edx
	movl	%edx, %eax
	andl	$-2, %eax
	cmpl	$4, %eax
	jne	LBB0_8
## %bb.3:
	movl	%edx, (%r15)
	movq	8(%r15), %rax
	xorl	%r12d, %r12d
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.4:
	movl	$0, -36(%rbp)
	leaq	L_.str.3(%rip), %rsi
	leaq	-36(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	movl	-36(%rbp), %eax
	movl	%eax, 4(%r15)
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.4(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.2(%rip), %rsi
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
LBB0_7:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"atmel,adc-ts-wires"

L_.str.1:                               ## @.str.1
	.asciz	"ADC Touch screen is disabled.\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported number of touchscreen wires (%d). Should be 4 or 5.\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.3:                               ## @.str.3
	.asciz	"atmel,adc-ts-pressure-threshold"

L_.str.4:                               ## @.str.4
	.asciz	"Invalid pressure threshold for the touchscreen\n"

	.no_dead_strip	_at91_adc_probe_dt_ts
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function at91_adc_probe_dt_ts
_at91_adc_probe_dt_ts:                  ; @at91_adc_probe_dt_ts
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	bl	_of_property_read_u32
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_info
LBB0_2:
	mov	w0, #0
	b	LBB0_9
LBB0_3:
	ldr	w8, [sp, #12]
	and	w9, w8, #0xfffffffe
	cmp	w9, #4
	b.ne	LBB0_7
; %bb.4:
	str	w8, [x20]
	ldr	x8, [x20, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_2
; %bb.5:
	str	wzr, [sp, #12]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #12
	mov	x0, x21
	bl	_of_property_read_u32
	mov	w0, #0
	ldr	w8, [sp, #12]
	str	w8, [x20, #4]
	cbnz	w8, LBB0_9
; %bb.6:
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_8:
	mov	x0, x19
	bl	_dev_err
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"atmel,adc-ts-wires"

l_.str.1:                               ; @.str.1
	.asciz	"ADC Touch screen is disabled.\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported number of touchscreen wires (%d). Should be 4 or 5.\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.3:                               ; @.str.3
	.asciz	"atmel,adc-ts-pressure-threshold"

l_.str.4:                               ; @.str.4
	.asciz	"Invalid pressure threshold for the touchscreen\n"

	.no_dead_strip	_at91_adc_probe_dt_ts
.subsections_via_symbols
