	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_query_device_info
_elan_query_device_info:                ## @elan_query_device_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	16(%rdi), %rdi
	movq	32(%r14), %rax
	leaq	48(%r14), %rdx
	xorl	%esi, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	16(%r14), %rdi
	movq	32(%r14), %rax
	leaq	44(%r14), %rdx
	xorl	%esi, %esi
	callq	*8(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.2:
	movq	16(%r14), %rdi
	movq	32(%r14), %rax
	leaq	8(%r14), %rdx
	movl	$1, %esi
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.3:
	movq	16(%r14), %rdi
	movq	32(%r14), %rax
	leaq	40(%r14), %rsi
	callq	*16(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:
	movq	16(%r14), %rdi
	movq	32(%r14), %rax
	movq	%r14, %rsi
	callq	*24(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_7
## %bb.5:
	xorl	%eax, %eax
	cmpl	$1, (%r14)
	setne	%al
	movl	4(%r14,%rax,4), %edi
	leaq	28(%r14), %rsi
	leaq	24(%r14), %rdx
	callq	_elan_get_fwinfo
	xorl	%ebx, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	16(%r14), %rdi
	movl	4(%r14), %ecx
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unexpected iap version %#04x (ic type: %#04x), firmware update will not work\n"

	.no_dead_strip	_elan_query_device_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_query_device_info
_elan_query_device_info:                ; @elan_query_device_info
	.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
	mov	x19, x0
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	x0, [x0, #16]
	add	x2, x19, #48
	mov	w1, #0
	blr	x8
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	ldr	x0, [x19, #16]
	add	x2, x19, #44
	mov	w1, #0
	blr	x8
	cbnz	w0, LBB0_7
; %bb.2:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x19, #16]
	add	x2, x19, #8
	mov	w1, #1
	blr	x8
	cbnz	w0, LBB0_7
; %bb.3:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #16]
	ldr	x0, [x19, #16]
	add	x1, x19, #40
	blr	x8
	cbnz	w0, LBB0_7
; %bb.4:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #24]
	ldr	x0, [x19, #16]
	mov	x1, x19
	blr	x8
	cbnz	w0, LBB0_7
; %bb.5:
	ldr	w8, [x19]
	cmp	w8, #1
	mov	w8, #8
	mov	w9, #4
	csel	x8, x9, x8, eq
	ldr	w0, [x19, x8]
	add	x1, x19, #28
	add	x2, x19, #24
	bl	_elan_get_fwinfo
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x19, #16]
	ldp	w3, w2, [x19, #4]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unexpected iap version %#04x (ic type: %#04x), firmware update will not work\n"

	.no_dead_strip	_elan_query_device_info
.subsections_via_symbols
