	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_device_setup_files
_acpi_device_setup_files:               ## @acpi_device_setup_files
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_dev_attr_path@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_8
LBB0_2:
	movq	_dev_attr_hid@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_8
## %bb.3:
	movq	_dev_attr_modalias@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	je	LBB0_4
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-24(%rbp), %rcx
	xorl	%edx, %edx
	callq	_acpi_evaluate_integer
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	_dev_attr_sun@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	testl	%eax, %eax
	jne	LBB0_8
LBB0_6:
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	leaq	-12(%rbp), %rdx
	callq	_acpi_get_handle
	movl	%eax, %edi
	callq	_ACPI_SUCCESS
	movq	%rax, %rcx
	movl	$0, %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:
	movq	_dev_attr_eject@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_device_create_file
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_path,4,2              ## @dev_attr_path
	.comm	_dev_attr_hid,4,2               ## @dev_attr_hid
	.comm	_dev_attr_modalias,4,2          ## @dev_attr_modalias
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_SUN"

	.comm	_dev_attr_sun,4,2               ## @dev_attr_sun
L_.str.1:                               ## @.str.1
	.asciz	"_EJ0"

	.comm	_dev_attr_eject,4,2             ## @dev_attr_eject
	.no_dead_strip	_acpi_device_setup_files
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_device_setup_files
_acpi_device_setup_files:               ; @acpi_device_setup_files
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x1, _dev_attr_path@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_path@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_4
LBB0_2:
Lloh2:
	adrp	x1, _dev_attr_hid@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dev_attr_hid@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x1, _dev_attr_modalias@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_modalias@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
	ldr	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, sp
	mov	x2, #0
	bl	_acpi_evaluate_integer
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, _dev_attr_sun@GOTPAGE
Lloh9:
	ldr	x1, [x1, _dev_attr_sun@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	cbnz	w0, LBB0_4
LBB0_7:
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	bl	_acpi_get_handle
	bl	_ACPI_SUCCESS
	cbz	x0, LBB0_4
; %bb.8:
Lloh12:
	adrp	x1, _dev_attr_eject@GOTPAGE
Lloh13:
	ldr	x1, [x1, _dev_attr_eject@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_create_file
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_path,4,2              ; @dev_attr_path
	.comm	_dev_attr_hid,4,2               ; @dev_attr_hid
	.comm	_dev_attr_modalias,4,2          ; @dev_attr_modalias
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_SUN"

	.comm	_dev_attr_sun,4,2               ; @dev_attr_sun
l_.str.1:                               ; @.str.1
	.asciz	"_EJ0"

	.comm	_dev_attr_eject,4,2             ; @dev_attr_eject
	.no_dead_strip	_acpi_device_setup_files
.subsections_via_symbols
