	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elantech_get_resolution_v4
_elantech_get_resolution_v4:            ## @elantech_get_resolution_v4
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	_ETP_RESOLUTION_QUERY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-27(%rbp), %rdx
	callq	_elantech_send_cmd
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	movzbl	-26(%rbp), %edi
	andl	$15, %edi
	callq	_elantech_convert_res
	movl	%eax, (%rbx)
	movb	-26(%rbp), %al
	shrb	$4, %al
	movzbl	%al, %edi
	callq	_elantech_convert_res
	movl	%eax, (%r15)
	movzbl	-25(%rbp), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ETP_RESOLUTION_QUERY,4,2       ## @ETP_RESOLUTION_QUERY
	.no_dead_strip	_elantech_get_resolution_v4
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elantech_get_resolution_v4
_elantech_get_resolution_v4:            ; @elantech_get_resolution_v4
	.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, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _ETP_RESOLUTION_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ETP_RESOLUTION_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #13
	bl	_elantech_send_cmd
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_3
LBB0_2:
	ldrb	w8, [sp, #14]
	and	w0, w8, #0xf
	bl	_elantech_convert_res
	str	w0, [x21]
	ldrb	w8, [sp, #14]
	lsr	w0, w8, #4
	bl	_elantech_convert_res
	mov	x8, x0
	mov	w0, #0
	str	w8, [x20]
	ldrb	w8, [sp, #15]
	str	w8, [x19]
LBB0_3:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ETP_RESOLUTION_QUERY,4,2       ; @ETP_RESOLUTION_QUERY
	.no_dead_strip	_elantech_get_resolution_v4
.subsections_via_symbols
