	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atp_detect_size
_atp_detect_size:                       ## @atp_detect_size
	.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), %rax
	movslq	(%rax), %rax
	movq	_ATP_XSENSORS@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	cmpl	%ecx, %eax
	jge	LBB0_5
## %bb.1:
	movq	%rdi, %rbx
	movq	24(%rdi), %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx,%rax,8)
	jne	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	movl	8(%rbx), %edi
	movq	_ABS_X@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%rbx), %rax
	movl	4(%rax), %ecx
	decl	%ecx
	imull	8(%rax), %ecx
	movl	12(%rax), %r8d
	decl	%ecx
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_input_set_abs_params           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ATP_XSENSORS,4,2               ## @ATP_XSENSORS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"appletouch: 17\" model detected.\n"

	.comm	_ABS_X,4,2                      ## @ABS_X
	.no_dead_strip	_atp_detect_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atp_detect_size
_atp_detect_size:                       ; @atp_detect_size
	.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
	ldr	x8, [x0]
	ldrsw	x9, [x8]
Lloh0:
	adrp	x8, _ATP_XSENSORS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ATP_XSENSORS@GOTPAGEOFF]
Lloh2:
	ldrsw	x10, [x8]
	cmp	w9, w10
	b.ge	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #24]
	add	x8, x8, x9, lsl #3
	sub	x9, x10, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x8]
	cbnz	x10, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #8
	subs	x9, x9, #1
	b.ne	LBB0_2
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
	ldr	w0, [x19, #8]
Lloh5:
	adrp	x8, _ABS_X@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ABS_X@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	x8, [x19]
	ldp	w9, w10, [x8, #4]
	sub	w9, w9, #1
	mul	w9, w9, w10
	sub	w3, w9, #1
	ldr	w4, [x8, #12]
	mov	w2, #0
	mov	w5, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_input_set_abs_params
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ATP_XSENSORS,4,2               ; @ATP_XSENSORS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"appletouch: 17\" model detected.\n"

	.comm	_ABS_X,4,2                      ; @ABS_X
	.no_dead_strip	_atp_detect_size
.subsections_via_symbols
