	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atlas_acpi_button_remove
_atlas_acpi_button_remove:              ## @atlas_acpi_button_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %edi
	movq	_acpi_atlas_button_handler@GOTPCREL(%rip), %rdx
	movl	$129, %esi
	callq	_acpi_remove_address_space_handler
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_2:
	movq	_input_dev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_input_unregister_device
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_acpi_atlas_button_handler,4,2  ## @acpi_atlas_button_handler
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error removing addr spc handler\n"

	.comm	_input_dev,4,2                  ## @input_dev
	.no_dead_strip	_atlas_acpi_button_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atlas_acpi_button_remove
_atlas_acpi_button_remove:              ; @atlas_acpi_button_remove
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	w0, [x0]
Lloh0:
	adrp	x2, _acpi_atlas_button_handler@GOTPAGE
Lloh1:
	ldr	x2, [x2, _acpi_atlas_button_handler@GOTPAGEOFF]
	mov	w1, #129
	bl	_acpi_remove_address_space_handler
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_2:
Lloh4:
	adrp	x8, _input_dev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _input_dev@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_input_unregister_device
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_acpi_atlas_button_handler,4,2  ; @acpi_atlas_button_handler
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error removing addr spc handler\n"

	.comm	_input_dev,4,2                  ; @input_dev
	.no_dead_strip	_atlas_acpi_button_remove
.subsections_via_symbols
