	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lis3lv02d_add
_lis3lv02d_add:                         ## @lis3lv02d_add
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %r14
	movq	_lis3_dev@GOTPCREL(%rip), %rbx
	movq	%rdi, 40(%rbx)
	movq	_lis3lv02d_acpi_init@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_lis3lv02d_acpi_read@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_lis3lv02d_acpi_write@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	callq	_acpi_device_name
	movq	_DRIVER_NAME@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%r14, %rdi
	callq	_acpi_device_class
	movq	_ACPI_MDPS_CLASS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_strcpy
	movq	%rbx, 8(%r14)
	movq	%r14, %rdi
	callq	_lis3lv02d_enum_resources
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.3:
	movq	8(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_6
## %bb.4:
	movq	(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.5:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_8
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_13
LBB0_6:
	movq	_lis3lv02d_dmi_ids@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_dmi_check_system
	testq	%rax, %rax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	movq	_lis3lv02d_axis_normal@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movups	%xmm0, (%rbx)
	movq	16(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_8:
	movq	_lis3_dev@GOTPCREL(%rip), %rdi
	callq	_lis3lv02d_init_device
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_13
## %bb.9:
	movq	%r14, %rdi
	callq	_dev_name
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_strstr
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	_hp_accel_i8042_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i8042_install_filter
LBB0_11:
	movq	_delayed_set_status_worker@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_hpled_led@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_INIT_WORK
	addq	$4, %r14
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	movq	%r14, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r14d
	movq	_lis3_dev@GOTPCREL(%rip), %rbx
	movq	%rbx, %rdi
	callq	_lis3lv02d_joystick_disable
	movq	%rbx, %rdi
	callq	_lis3lv02d_poweroff
	movq	_hpled_led@GOTPCREL(%rip), %rdi
	callq	_flush_work
	movl	%r14d, %ebx
LBB0_13:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_lis3_dev,48,3                  ## @lis3_dev
	.comm	_lis3lv02d_acpi_init,4,2        ## @lis3lv02d_acpi_init
	.comm	_lis3lv02d_acpi_read,4,2        ## @lis3lv02d_acpi_read
	.comm	_lis3lv02d_acpi_write,4,2       ## @lis3lv02d_acpi_write
	.comm	_DRIVER_NAME,4,2                ## @DRIVER_NAME
	.comm	_ACPI_MDPS_CLASS,4,2            ## @ACPI_MDPS_CLASS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using custom axes %d,%d,%d\n"

	.comm	_lis3lv02d_dmi_ids,4,2          ## @lis3lv02d_dmi_ids
L_.str.1:                               ## @.str.1
	.asciz	"laptop model unknown, using default axes configuration\n"

	.comm	_lis3lv02d_axis_normal,24,3     ## @lis3lv02d_axis_normal
L_.str.2:                               ## @.str.2
	.asciz	"HPQ6000"

	.comm	_hp_accel_i8042_filter,4,2      ## @hp_accel_i8042_filter
	.comm	_hpled_led,8,2                  ## @hpled_led
	.comm	_delayed_set_status_worker,4,2  ## @delayed_set_status_worker
	.no_dead_strip	_lis3lv02d_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lis3lv02d_add
_lis3lv02d_add:                         ; @lis3lv02d_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x20, _lis3_dev@GOTPAGE
Lloh1:
	ldr	x20, [x20, _lis3_dev@GOTPAGEOFF]
	str	x0, [x20, #40]
Lloh2:
	adrp	x8, _lis3lv02d_acpi_init@GOTPAGE
Lloh3:
	ldr	x8, [x8, _lis3lv02d_acpi_init@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #32]
Lloh5:
	adrp	x8, _lis3lv02d_acpi_read@GOTPAGE
Lloh6:
	ldr	x8, [x8, _lis3lv02d_acpi_read@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _lis3lv02d_acpi_write@GOTPAGE
Lloh9:
	ldr	x9, [x9, _lis3lv02d_acpi_write@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #24]
	bl	_acpi_device_name
Lloh11:
	adrp	x8, _DRIVER_NAME@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DRIVER_NAME@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_strcpy
	mov	x0, x19
	bl	_acpi_device_class
Lloh14:
	adrp	x8, _ACPI_MDPS_CLASS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ACPI_MDPS_CLASS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_strcpy
	str	x20, [x19, #8]
	mov	x0, x19
	bl	_lis3lv02d_enum_resources
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_6
; %bb.2:
	ldr	x9, [x20, #8]
	cbz	x9, LBB0_6
; %bb.3:
	ldr	x10, [x20]
	cbz	x10, LBB0_6
; %bb.4:
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_info
	b	LBB0_8
LBB0_5:
Lloh19:
	adrp	x8, _EINVAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_13
LBB0_6:
Lloh22:
	adrp	x8, _lis3lv02d_dmi_ids@GOTPAGE
Lloh23:
	ldr	x8, [x8, _lis3lv02d_dmi_ids@GOTPAGEOFF]
Lloh24:
	ldr	w0, [x8]
	bl	_dmi_check_system
	cbnz	x0, LBB0_8
; %bb.7:
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_info
Lloh27:
	adrp	x8, _lis3lv02d_axis_normal@GOTPAGE
Lloh28:
	ldr	x8, [x8, _lis3lv02d_axis_normal@GOTPAGEOFF]
	ldr	q0, [x8]
	str	q0, [x20]
	ldr	x8, [x8, #16]
	str	x8, [x20, #16]
LBB0_8:
Lloh29:
	adrp	x0, _lis3_dev@GOTPAGE
Lloh30:
	ldr	x0, [x0, _lis3_dev@GOTPAGEOFF]
	bl	_lis3lv02d_init_device
	mov	x20, x0
	cbnz	w0, LBB0_13
; %bb.9:
	mov	x0, x19
	bl	_dev_name
Lloh31:
	adrp	x1, l_.str.2@PAGE
Lloh32:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_strstr
	cbz	x0, LBB0_11
; %bb.10:
Lloh33:
	adrp	x8, _hp_accel_i8042_filter@GOTPAGE
Lloh34:
	ldr	x8, [x8, _hp_accel_i8042_filter@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	bl	_i8042_install_filter
LBB0_11:
Lloh36:
	adrp	x8, _delayed_set_status_worker@GOTPAGE
Lloh37:
	ldr	x8, [x8, _delayed_set_status_worker@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x19, _hpled_led@GOTPAGE
Lloh40:
	ldr	x19, [x19, _hpled_led@GOTPAGEOFF]
	mov	x0, x19
	bl	_INIT_WORK
	add	x1, x19, #4
	mov	x0, #0
	bl	_led_classdev_register
	mov	x20, x0
	cbz	w0, LBB0_13
; %bb.12:
Lloh41:
	adrp	x19, _lis3_dev@GOTPAGE
Lloh42:
	ldr	x19, [x19, _lis3_dev@GOTPAGEOFF]
	mov	x0, x19
	bl	_lis3lv02d_joystick_disable
	mov	x0, x19
	bl	_lis3lv02d_poweroff
Lloh43:
	adrp	x0, _hpled_led@GOTPAGE
Lloh44:
	ldr	x0, [x0, _hpled_led@GOTPAGEOFF]
	bl	_flush_work
LBB0_13:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_lis3_dev,48,3                  ; @lis3_dev
	.comm	_lis3lv02d_acpi_init,4,2        ; @lis3lv02d_acpi_init
	.comm	_lis3lv02d_acpi_read,4,2        ; @lis3lv02d_acpi_read
	.comm	_lis3lv02d_acpi_write,4,2       ; @lis3lv02d_acpi_write
	.comm	_DRIVER_NAME,4,2                ; @DRIVER_NAME
	.comm	_ACPI_MDPS_CLASS,4,2            ; @ACPI_MDPS_CLASS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using custom axes %d,%d,%d\n"

	.comm	_lis3lv02d_dmi_ids,4,2          ; @lis3lv02d_dmi_ids
l_.str.1:                               ; @.str.1
	.asciz	"laptop model unknown, using default axes configuration\n"

	.comm	_lis3lv02d_axis_normal,24,3     ; @lis3lv02d_axis_normal
l_.str.2:                               ; @.str.2
	.asciz	"HPQ6000"

	.comm	_hp_accel_i8042_filter,4,2      ; @hp_accel_i8042_filter
	.comm	_hpled_led,8,2                  ; @hpled_led
	.comm	_delayed_set_status_worker,4,2  ; @delayed_set_status_worker
	.no_dead_strip	_lis3lv02d_add
.subsections_via_symbols
