	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_get_device_param
_elan_get_device_param:                 ## @elan_get_device_param
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	_ELAN_FEATURE_REPORT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %al
	movb	%al, (%rsi)
	movw	$773, 1(%rsi)                   ## imm = 0x305
	movb	%r14b, 3(%rsi)
	movb	$1, 4(%rsi)
	movzbl	(%rcx), %esi
	movq	_ELAN_FEATURE_SIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_SET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%rbx, %rdx
	callq	_hid_hw_raw_request
	movl	%eax, %r12d
	cmpl	(%r13), %eax
	jne	LBB0_1
## %bb.2:
	movq	_ELAN_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movzbl	(%rax), %esi
	movq	_HID_FEATURE_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_HID_REQ_GET_REPORT@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_hid_hw_raw_request
	movl	%eax, %ebx
	xorl	%r12d, %r12d
	movq	_ELAN_FEATURE_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	je	LBB0_4
## %bb.3:
	movzbl	%r14b, %edx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movl	%ebx, %ecx
	callq	_hid_err
	movl	%ebx, %r12d
	jmp	LBB0_4
LBB0_1:
	movzbl	%r14b, %edx
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	movl	%r12d, %ecx
	callq	_hid_err
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ELAN_FEATURE_REPORT,1,0        ## @ELAN_FEATURE_REPORT
	.comm	_ELAN_FEATURE_SIZE,4,2          ## @ELAN_FEATURE_SIZE
	.comm	_HID_FEATURE_REPORT,4,2         ## @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ## @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Set report error for parm %d: %d\n"

	.comm	_HID_REQ_GET_REPORT,4,2         ## @HID_REQ_GET_REPORT
L_.str.1:                               ## @.str.1
	.asciz	"Get report error for parm %d: %d\n"

	.no_dead_strip	_elan_get_device_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_get_device_param
_elan_get_device_param:                 ; @elan_get_device_param
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _ELAN_FEATURE_REPORT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _ELAN_FEATURE_REPORT@GOTPAGEOFF]
	ldrb	w8, [x24]
	strb	w8, [x1]
	mov	w8, #773
	sturh	w8, [x1, #1]
	strb	w2, [x1, #3]
	mov	w8, #1
	strb	w8, [x1, #4]
	ldrb	w1, [x24]
Lloh2:
	adrp	x23, _ELAN_FEATURE_SIZE@GOTPAGE
Lloh3:
	ldr	x23, [x23, _ELAN_FEATURE_SIZE@GOTPAGEOFF]
	ldr	w3, [x23]
Lloh4:
	adrp	x25, _HID_FEATURE_REPORT@GOTPAGE
Lloh5:
	ldr	x25, [x25, _HID_FEATURE_REPORT@GOTPAGEOFF]
	ldr	w4, [x25]
Lloh6:
	adrp	x8, _HID_REQ_SET_REPORT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HID_REQ_SET_REPORT@GOTPAGEOFF]
Lloh8:
	ldr	w5, [x8]
	mov	x2, x22
	bl	_hid_hw_raw_request
	mov	x21, x0
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldrb	w1, [x24]
	ldr	w4, [x25]
Lloh9:
	adrp	x8, _HID_REQ_GET_REPORT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HID_REQ_GET_REPORT@GOTPAGEOFF]
Lloh11:
	ldr	w5, [x8]
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	bl	_hid_hw_raw_request
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_4
; %bb.2:
	mov	w21, #0
	b	LBB0_6
LBB0_3:
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_5
LBB0_4:
	mov	x21, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_5:
	mov	x0, x20
	mov	x2, x19
	mov	x3, x21
	bl	_hid_err
LBB0_6:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ELAN_FEATURE_REPORT,1,0        ; @ELAN_FEATURE_REPORT
	.comm	_ELAN_FEATURE_SIZE,4,2          ; @ELAN_FEATURE_SIZE
	.comm	_HID_FEATURE_REPORT,4,2         ; @HID_FEATURE_REPORT
	.comm	_HID_REQ_SET_REPORT,4,2         ; @HID_REQ_SET_REPORT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Set report error for parm %d: %d\n"

	.comm	_HID_REQ_GET_REPORT,4,2         ; @HID_REQ_GET_REPORT
l_.str.1:                               ; @.str.1
	.asciz	"Get report error for parm %d: %d\n"

	.no_dead_strip	_elan_get_device_param
.subsections_via_symbols
