	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eeepc_acpi_init
_eeepc_acpi_init:                       ## @eeepc_acpi_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	callq	_acpi_bus_get_status
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_2
## %bb.4:
	movq	_DISABLE_ASL_WLAN@GOTPCREL(%rip), %rax
	movq	_DISABLE_ASL_DISPLAYSWITCH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r14d
	orl	(%rax), %r14d
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	callq	_pr_notice
	movl	4(%rbx), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%r14d, %edx
	callq	_write_acpi_int
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_6:
	movl	4(%rbx), %edi
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdx
	callq	_read_acpi_int
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	leaq	L_.str.5(%rip), %rdi
LBB0_3:
	callq	_pr_err
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	callq	_cmsg_quirks
	movl	(%rbx), %esi
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_info
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Hotkey device not present, aborting\n"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_DISABLE_ASL_WLAN,4,2           ## @DISABLE_ASL_WLAN
	.comm	_DISABLE_ASL_DISPLAYSWITCH,4,2  ## @DISABLE_ASL_DISPLAYSWITCH
L_.str.1:                               ## @.str.1
	.asciz	"Hotkey init flags 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"INIT"

L_.str.3:                               ## @.str.3
	.asciz	"Hotkey initialization failed\n"

L_.str.4:                               ## @.str.4
	.asciz	"CMSG"

L_.str.5:                               ## @.str.5
	.asciz	"Get control methods supported failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"Get control methods supported: 0x%x\n"

	.no_dead_strip	_eeepc_acpi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eeepc_acpi_init
_eeepc_acpi_init:                       ; @eeepc_acpi_init
	.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	x0, [x0, #8]
	bl	_acpi_bus_get_status
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _DISABLE_ASL_WLAN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DISABLE_ASL_WLAN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DISABLE_ASL_DISPLAYSWITCH@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DISABLE_ASL_DISPLAYSWITCH@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w20, w9, w8
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_pr_notice
	ldr	w0, [x19, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x20
	bl	_write_acpi_int
	cbz	x0, LBB0_5
; %bb.3:
Lloh10:
	adrp	x0, l_.str.3@PAGE
Lloh11:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	w0, [x19, #4]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x2, x19
	bl	_read_acpi_int
	cbz	x0, LBB0_9
; %bb.6:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_7:
	bl	_pr_err
Lloh18:
	adrp	x8, _ENODEV@GOTPAGE
Lloh19:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x19
	bl	_cmsg_quirks
	ldr	w1, [x19]
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_pr_info
	mov	w0, #0
	b	LBB0_8
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Hotkey device not present, aborting\n"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_DISABLE_ASL_WLAN,4,2           ; @DISABLE_ASL_WLAN
	.comm	_DISABLE_ASL_DISPLAYSWITCH,4,2  ; @DISABLE_ASL_DISPLAYSWITCH
l_.str.1:                               ; @.str.1
	.asciz	"Hotkey init flags 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"INIT"

l_.str.3:                               ; @.str.3
	.asciz	"Hotkey initialization failed\n"

l_.str.4:                               ; @.str.4
	.asciz	"CMSG"

l_.str.5:                               ; @.str.5
	.asciz	"Get control methods supported failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"Get control methods supported: 0x%x\n"

	.no_dead_strip	_eeepc_acpi_init
.subsections_via_symbols
