	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function elan_probe
_elan_probe:                            ## @elan_probe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$4, %esi
	callq	_devm_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_hid_set_drvdata
	movq	%r14, %rdi
	callq	_hid_parse
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	%eax, %r12d
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_14
LBB0_5:
	movq	_HID_CONNECT_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_hid_hw_start
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r12d
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r14, %rdi
	callq	_hid_err
LBB0_14:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	callq	_is_not_elan_touchpad
	xorl	%r12d, %r12d
	testq	%rax, %rax
	jne	LBB0_14
## %bb.8:
	cmpl	$0, (%rbx)
	je	LBB0_9
## %bb.10:
	movq	%r14, %rdi
	callq	_elan_start_multitouch
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.11:
	movq	_ELAN_HAS_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	je	LBB0_14
## %bb.12:
	movq	%r14, %rdi
	callq	_elan_init_mute_led
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
	jmp	LBB0_14
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_hid_err
	movq	_ENAVAIL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_13:
	movq	%r14, %rdi
	callq	_hid_hw_stop
	movl	%ebx, %r12d
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hid Parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ## @HID_CONNECT_DEFAULT
L_.str.1:                               ## @.str.1
	.asciz	"Hid hw start failed\n"

L_.str.2:                               ## @.str.2
	.asciz	"Input device is not registered\n"

	.comm	_ENAVAIL,4,2                    ## @ENAVAIL
	.comm	_ELAN_HAS_LED,4,2               ## @ELAN_HAS_LED
	.no_dead_strip	_elan_probe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function elan_probe
_elan_probe:                            ; @elan_probe
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #4
	bl	_devm_kzalloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
	mov	x0, x19
	mov	x1, x22
	bl	_hid_set_drvdata
	mov	x0, x19
	bl	_hid_parse
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_3:
Lloh5:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
Lloh8:
	adrp	x8, _HID_CONNECT_DEFAULT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HID_CONNECT_DEFAULT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hid_hw_start
	cbz	w0, LBB0_8
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x0, x19
	bl	_hid_err
LBB0_7:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	bl	_is_not_elan_touchpad
	cbz	x0, LBB0_10
LBB0_9:
	mov	w21, #0
	b	LBB0_7
LBB0_10:
	ldr	w8, [x22]
	cbz	w8, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_elan_start_multitouch
	mov	x21, x0
	cbnz	w0, LBB0_15
; %bb.12:
	ldr	w8, [x20]
Lloh13:
	adrp	x9, _ELAN_HAS_LED@GOTPAGE
Lloh14:
	ldr	x9, [x9, _ELAN_HAS_LED@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.13:
	mov	x0, x19
	bl	_elan_init_mute_led
	mov	x21, x0
	cbnz	w0, LBB0_15
	b	LBB0_7
LBB0_14:
Lloh16:
	adrp	x1, l_.str.2@PAGE
Lloh17:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_hid_err
Lloh18:
	adrp	x8, _ENAVAIL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENAVAIL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_15:
	mov	x0, x19
	bl	_hid_hw_stop
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hid Parse failed\n"

	.comm	_HID_CONNECT_DEFAULT,4,2        ; @HID_CONNECT_DEFAULT
l_.str.1:                               ; @.str.1
	.asciz	"Hid hw start failed\n"

l_.str.2:                               ; @.str.2
	.asciz	"Input device is not registered\n"

	.comm	_ENAVAIL,4,2                    ; @ENAVAIL
	.comm	_ELAN_HAS_LED,4,2               ; @ELAN_HAS_LED
	.no_dead_strip	_elan_probe
.subsections_via_symbols
