	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_led_init
_eeepc_led_init:                        ## @eeepc_led_init
	.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	%rdi, %rbx
	movq	_CM_ASL_TPD@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	callq	_get_acpi
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%r14d, %r14d
	addl	(%rcx), %eax
	je	LBB0_7
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_create_singlethread_workqueue
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	leaq	40(%rbx), %rdi
	movq	_tpd_led_update@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_INIT_WORK
	leaq	8(%rbx), %r15
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_tpd_led_set@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_get_acpi
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:
	movq	_tpd_led_get@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
LBB0_5:
	movl	$1, 16(%rbx)
	movq	32(%rbx), %rdi
	movq	%r15, %rsi
	callq	_led_classdev_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r15d
	movl	(%rbx), %edi
	callq	_destroy_workqueue
	movl	%r15d, %r14d
	jmp	LBB0_7
LBB0_2:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CM_ASL_TPD,4,2                 ## @CM_ASL_TPD
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_tpd_led_update,4,2             ## @tpd_led_update
L_.str.1:                               ## @.str.1
	.asciz	"eeepc::touchpad"

	.comm	_tpd_led_set,4,2                ## @tpd_led_set
	.comm	_tpd_led_get,4,2                ## @tpd_led_get
	.no_dead_strip	_eeepc_led_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_led_init
_eeepc_led_init:                        ; @eeepc_led_init
	.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	x19, x0
Lloh0:
	adrp	x21, _CM_ASL_TPD@GOTPAGE
Lloh1:
	ldr	x21, [x21, _CM_ASL_TPD@GOTPAGEOFF]
	ldr	w1, [x21]
	bl	_get_acpi
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_8
LBB0_2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_create_singlethread_workqueue
	str	w0, [x19]
	cbz	w0, LBB0_7
; %bb.3:
	add	x0, x19, #40
Lloh7:
	adrp	x8, _tpd_led_update@GOTPAGE
Lloh8:
	ldr	x8, [x8, _tpd_led_update@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	bl	_INIT_WORK
Lloh10:
	adrp	x8, l_.str.1@PAGE
Lloh11:
	add	x8, x8, l_.str.1@PAGEOFF
	mov	x20, x19
	str	x8, [x20, #8]!
Lloh12:
	adrp	x8, _tpd_led_set@GOTPAGE
Lloh13:
	ldr	x8, [x8, _tpd_led_set@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_get_acpi
	tbnz	w0, #31, LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _tpd_led_get@GOTPAGE
Lloh16:
	ldr	x8, [x8, _tpd_led_get@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #20]
LBB0_5:
	mov	w8, #1
	str	w8, [x19, #16]
	ldr	x0, [x19, #32]
	mov	x1, x20
	bl	_led_classdev_register
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.6:
	ldr	w0, [x19]
	bl	_destroy_workqueue
	b	LBB0_8
LBB0_7:
Lloh18:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_8:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_CM_ASL_TPD,4,2                 ; @CM_ASL_TPD
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"led_workqueue"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_tpd_led_update,4,2             ; @tpd_led_update
l_.str.1:                               ; @.str.1
	.asciz	"eeepc::touchpad"

	.comm	_tpd_led_set,4,2                ; @tpd_led_set
	.comm	_tpd_led_get,4,2                ; @tpd_led_get
	.no_dead_strip	_eeepc_led_init
.subsections_via_symbols
