	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elants_i2c_query_ts_info
_elants_i2c_query_ts_info:              ## @elants_i2c_query_ts_info
	.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	$216, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	32(%rdi), %r12
	xorpd	%xmm0, %xmm0
	movapd	%xmm0, -160(%rbp)
	movq	$0, -144(%rbp)
	movq	_CMD_HEADER_6B_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -160(%rbp)
	movq	_CMD_HEADER_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -176(%rbp)
	movq	_E_INFO_OSR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -172(%rbp)
	movabsq	$4294967296, %rcx               ## imm = 0x100000000
	movq	%rcx, -168(%rbp)
	movl	%eax, -192(%rbp)
	movq	_E_INFO_PHY_SCAN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -188(%rbp)
	movq	%rcx, -184(%rbp)
	movl	%eax, -208(%rbp)
	movq	_E_INFO_PHY_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -204(%rbp)
	movq	%rcx, -200(%rbp)
	leaq	-160(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	movl	$24, %edx
	movl	$68, %r8d
	callq	_elants_i2c_execute_command
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movsd	-120(%rbp), %xmm0               ## xmm0 = mem[0],zero
	movaps	%xmm0, -240(%rbp)               ## 16-byte Spill
	movsd	-104(%rbp), %xmm0               ## xmm0 = mem[0],zero
	movaps	%xmm0, -256(%rbp)               ## 16-byte Spill
	movsd	-88(%rbp), %xmm0                ## xmm0 = mem[0],zero
	movapd	%xmm0, -224(%rbp)               ## 16-byte Spill
	leaq	-176(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movl	$68, %r8d
	callq	_elants_i2c_execute_command
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_2
LBB0_5:
	movslq	-116(%rbp), %r15
	leaq	-192(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movl	$68, %r8d
	callq	_elants_i2c_execute_command
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_2
LBB0_7:
	leaq	-120(%rbp), %rdi
	callq	_get_unaligned_be16
	movq	%rax, %r13
	leaq	-208(%rbp), %rsi
	leaq	-128(%rbp), %rcx
	movq	%r12, %rdi
	movl	$16, %edx
	movl	$68, %r8d
	callq	_elants_i2c_execute_command
	testl	%eax, %eax
	je	LBB0_9
## %bb.8:
	movl	%eax, %ebx
	leaq	L_.str.3(%rip), %rsi
LBB0_2:
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.16:
	movl	%ebx, %eax
	addq	$216, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movdqa	-256(%rbp), %xmm0               ## 16-byte Reload
	paddd	-240(%rbp), %xmm0               ## 16-byte Folded Reload
	paddd	-224(%rbp), %xmm0               ## 16-byte Folded Reload
	movdqa	%xmm0, -256(%rbp)               ## 16-byte Spill
	pextrd	$1, %xmm0, %eax
	movd	%xmm0, %ecx
	movslq	%ecx, %rcx
	movq	%rcx, -224(%rbp)                ## 8-byte Spill
	cltq
	movq	%rax, -240(%rbp)                ## 8-byte Spill
	leaq	-120(%rbp), %rdi
	callq	_get_unaligned_be16
	movq	%rax, %rbx
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_dev_dbg
	pxor	%xmm0, %xmm0
	pcmpeqd	-256(%rbp), %xmm0               ## 16-byte Folded Reload
	pmovsxdq	%xmm0, %xmm0
	movmskpd	%xmm0, %eax
	testb	$1, %al
	jne	LBB0_12
## %bb.10:
	shrb	%al
	jne	LBB0_12
## %bb.11:
	testl	%r15d, %r15d
	je	LBB0_12
## %bb.13:
	movq	-224(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ELAN_TS_RESOLUTION
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, 24(%r14)
	movq	-240(%rbp), %rdi                ## 8-byte Reload
	movq	%r15, %rsi
	callq	_ELAN_TS_RESOLUTION
	movq	%rax, (%r14)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_DIV_ROUND_CLOSEST
	movq	%rax, 8(%r14)
	jmp	LBB0_14
LBB0_12:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	movq	-224(%rbp), %rdx                ## 8-byte Reload
	movq	-240(%rbp), %rcx                ## 8-byte Reload
	movq	%r15, %r8
	callq	_dev_warn
LBB0_14:
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_HEADER_6B_READ,4,2         ## @CMD_HEADER_6B_READ
	.comm	_CMD_HEADER_READ,4,2            ## @CMD_HEADER_READ
	.comm	_E_INFO_OSR,4,2                 ## @E_INFO_OSR
	.comm	_E_INFO_PHY_SCAN,4,2            ## @E_INFO_PHY_SCAN
	.comm	_E_INFO_PHY_DRIVER,4,2          ## @E_INFO_PHY_DRIVER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get resolution command failed: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"get osr command failed: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"get physical scan command failed: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"get physical drive command failed: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"phy_x=%d, phy_y=%d\n"

L_.str.5:                               ## @.str.5
	.asciz	"invalid trace number data: %d, %d, %d\n"

	.no_dead_strip	_elants_i2c_query_ts_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function elants_i2c_query_ts_info
lCPI0_0:
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_elants_i2c_query_ts_info:              ; @elants_i2c_query_ts_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #272
	.cfi_def_cfa_offset 272
	stp	x28, x27, [sp, #176]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #192]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #208]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #224]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #240]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #256]            ; 16-byte Folded Spill
	add	x29, sp, #256
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x20, [x0, #32]
	stp	xzr, xzr, [sp, #72]
	str	wzr, [sp, #88]
Lloh3:
	adrp	x8, _CMD_HEADER_6B_READ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_HEADER_6B_READ@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #68]
Lloh6:
	adrp	x8, _CMD_HEADER_READ@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_HEADER_READ@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _E_INFO_OSR@GOTPAGE
Lloh10:
	ldr	x9, [x9, _E_INFO_OSR@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #52]
Lloh12:
	adrp	x9, lCPI0_0@PAGE
Lloh13:
	ldr	d0, [x9, lCPI0_0@PAGEOFF]
	stur	d0, [sp, #60]
Lloh14:
	adrp	x9, _E_INFO_PHY_SCAN@GOTPAGE
Lloh15:
	ldr	x9, [x9, _E_INFO_PHY_SCAN@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #36]
	stur	d0, [sp, #44]
Lloh17:
	adrp	x9, _E_INFO_PHY_DRIVER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _E_INFO_PHY_DRIVER@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	stp	w8, w9, [sp, #20]
	stur	d0, [sp, #28]
	add	x24, sp, #92
	add	x1, sp, #68
	add	x3, sp, #92
	mov	x0, x20
	mov	w2, #24
	mov	w4, #68
	bl	_elants_i2c_execute_command
	cbz	w0, LBB0_2
; %bb.1:
	mov	x22, x0
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_2:
	ldpsw	x25, x26, [sp, #100]
	ldpsw	x23, x27, [sp, #116]
	ldpsw	x21, x28, [sp, #132]
	add	x1, sp, #52
	add	x3, sp, #92
	mov	x0, x20
	mov	w2, #16
	mov	w4, #68
	bl	_elants_i2c_execute_command
	cbz	w0, LBB0_4
; %bb.3:
	mov	x22, x0
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	str	x26, [sp, #8]                   ; 8-byte Folded Spill
	ldrsw	x26, [sp, #104]
	add	x1, sp, #36
	add	x3, sp, #92
	mov	x0, x20
	mov	w2, #16
	mov	w4, #68
	bl	_elants_i2c_execute_command
	cbz	w0, LBB0_6
; %bb.5:
	mov	x22, x0
Lloh24:
	adrp	x1, l_.str.2@PAGE
Lloh25:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	str	x26, [sp]                       ; 8-byte Folded Spill
	add	x24, x24, #8
	mov	x0, x24
	bl	_get_unaligned_be16
	mov	x26, x0
	add	x1, sp, #20
	add	x3, sp, #92
	mov	x0, x20
	mov	w2, #16
	mov	w4, #68
	bl	_elants_i2c_execute_command
	cbz	w0, LBB0_11
; %bb.7:
	mov	x22, x0
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_8:
	mov	x0, x20
	mov	x2, x22
	bl	_dev_err
LBB0_9:
	ldur	x8, [x29, #-96]
Lloh28:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh29:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_16
; %bb.10:
	mov	x0, x22
	ldp	x29, x30, [sp, #256]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #240]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #224]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #208]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #192]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #272
	ret
LBB0_11:
	add	x8, x23, x25
	add	x25, x8, x21
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x27, x8
	add	x22, x8, x28
	mov	x0, x24
	bl	_get_unaligned_be16
	mov	x24, x0
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x26
	mov	x3, x24
	bl	_dev_dbg
	ldr	x21, [sp]                       ; 8-byte Folded Reload
	cbz	w25, LBB0_15
; %bb.12:
	cbz	w22, LBB0_15
; %bb.13:
	cbz	w21, LBB0_15
; %bb.14:
	mov	x0, x25
	mov	x1, x21
	bl	_ELAN_TS_RESOLUTION
	str	x0, [x19, #16]
	mov	x1, x26
	bl	_DIV_ROUND_CLOSEST
	str	x0, [x19, #24]
	mov	x0, x22
	mov	x1, x21
	bl	_ELAN_TS_RESOLUTION
	str	x0, [x19]
	mov	x1, x24
	bl	_DIV_ROUND_CLOSEST
	mov	w22, #0
	str	x0, [x19, #8]
	b	LBB0_9
LBB0_15:
Lloh33:
	adrp	x1, l_.str.5@PAGE
Lloh34:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	mov	x3, x22
	mov	x4, x21
	bl	_dev_warn
	mov	w22, #0
	b	LBB0_9
LBB0_16:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdrp	Lloh12, Lloh14
	.loh AdrpLdr	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_HEADER_6B_READ,4,2         ; @CMD_HEADER_6B_READ
	.comm	_CMD_HEADER_READ,4,2            ; @CMD_HEADER_READ
	.comm	_E_INFO_OSR,4,2                 ; @E_INFO_OSR
	.comm	_E_INFO_PHY_SCAN,4,2            ; @E_INFO_PHY_SCAN
	.comm	_E_INFO_PHY_DRIVER,4,2          ; @E_INFO_PHY_DRIVER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get resolution command failed: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"get osr command failed: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"get physical scan command failed: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"get physical drive command failed: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"phy_x=%d, phy_y=%d\n"

l_.str.5:                               ; @.str.5
	.asciz	"invalid trace number data: %d, %d, %d\n"

	.no_dead_strip	_elants_i2c_query_ts_info
.subsections_via_symbols
