	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function acpi_system_sysfs_init
_acpi_system_sysfs_init:                ## @acpi_system_sysfs_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -48(%rbp)
	movq	_acpi_kobj@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_kobject_create_and_add
	movq	_tables_kobj@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_10
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_kobject_create_and_add
	movq	_dynamic_tables_kobj@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	leaq	-48(%rbp), %rsi
	xorl	%edi, %edi
	callq	_acpi_get_table_by_index
	testl	%eax, %eax
	je	LBB0_3
LBB0_8:
	movl	(%r14), %edi
	movq	_KOBJ_ADD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	callq	_kobject_uevent
	movq	_dynamic_tables_kobj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	callq	_kobject_uevent
	movq	_acpi_sysfs_table_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_acpi_install_table_handler
	movq	_AE_OK@GOTPCREL(%rip), %rcx
	movq	_EINVAL@GOTPCREL(%rip), %rdx
	xorl	%r13d, %r13d
	subl	(%rdx), %r13d
	cmpl	(%rcx), %eax
	movl	$0, %eax
	cmovel	%eax, %r13d
	jmp	LBB0_11
LBB0_9:
	movl	(%r14), %edi
	callq	_kobject_put
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
LBB0_11:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$1, %r12d
	movq	_GFP_KERNEL@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movl	$8, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %rbx
	movq	-48(%rbp), %rsi
	movq	%rax, %rdi
	callq	_acpi_table_attr_init
	movl	(%r14), %edi
	movq	%rbx, %rsi
	addq	$4, %rsi
	callq	_sysfs_create_bin_file
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, %rdi
	movq	_acpi_table_attr_list@GOTPCREL(%rip), %rsi
	callq	_list_add_tail
	movl	%r12d, %edi
	leaq	-48(%rbp), %rsi
	callq	_acpi_get_table_by_index
	incl	%r12d
	testl	%eax, %eax
	je	LBB0_4
	jmp	LBB0_8
LBB0_6:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_kfree
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"tables"

	.comm	_acpi_kobj,4,2                  ## @acpi_kobj
	.comm	_tables_kobj,4,2                ## @tables_kobj
L_.str.1:                               ## @.str.1
	.asciz	"dynamic"

	.comm	_dynamic_tables_kobj,4,2        ## @dynamic_tables_kobj
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_acpi_table_attr_list,4,2       ## @acpi_table_attr_list
	.comm	_KOBJ_ADD,4,2                   ## @KOBJ_ADD
	.comm	_acpi_sysfs_table_handler,4,2   ## @acpi_sysfs_table_handler
	.comm	_AE_OK,4,2                      ## @AE_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_acpi_system_sysfs_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function acpi_system_sysfs_init
_acpi_system_sysfs_init:                ; @acpi_system_sysfs_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _acpi_kobj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _acpi_kobj@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_kobject_create_and_add
Lloh5:
	adrp	x23, _tables_kobj@GOTPAGE
Lloh6:
	ldr	x23, [x23, _tables_kobj@GOTPAGEOFF]
	str	w0, [x23]
	cbz	w0, LBB0_5
; %bb.1:
	mov	x1, x0
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_kobject_create_and_add
Lloh9:
	adrp	x24, _dynamic_tables_kobj@GOTPAGE
Lloh10:
	ldr	x24, [x24, _dynamic_tables_kobj@GOTPAGEOFF]
	str	w0, [x24]
	cbz	w0, LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	w0, #0
	bl	_acpi_get_table_by_index
	cbz	w0, LBB0_7
LBB0_3:
	ldr	w0, [x23]
Lloh11:
	adrp	x19, _KOBJ_ADD@GOTPAGE
Lloh12:
	ldr	x19, [x19, _KOBJ_ADD@GOTPAGEOFF]
	ldr	w1, [x19]
	bl	_kobject_uevent
	ldr	w0, [x24]
	ldr	w1, [x19]
	bl	_kobject_uevent
Lloh13:
	adrp	x8, _acpi_sysfs_table_handler@GOTPAGE
Lloh14:
	ldr	x8, [x8, _acpi_sysfs_table_handler@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_acpi_install_table_handler
Lloh16:
	adrp	x8, _AE_OK@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AE_OK@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _EINVAL@GOTPAGE
Lloh20:
	ldr	x9, [x9, _EINVAL@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	cmp	w0, w8
	csneg	w22, wzr, w9, eq
	b	LBB0_6
LBB0_4:
	ldr	w0, [x23]
	bl	_kobject_put
LBB0_5:
Lloh22:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	w19, #1
Lloh25:
	adrp	x25, _GFP_KERNEL@GOTPAGE
Lloh26:
	ldr	x25, [x25, _GFP_KERNEL@GOTPAGEOFF]
Lloh27:
	adrp	x20, _acpi_table_attr_list@GOTPAGE
Lloh28:
	ldr	x20, [x20, _acpi_table_attr_list@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	w0, #8
	bl	_kzalloc
	cbz	x0, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x21, x0
	ldr	x1, [sp, #8]
	bl	_acpi_table_attr_init
	ldr	w0, [x23]
	add	x1, x21, #4
	bl	_sysfs_create_bin_file
	cbnz	w0, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_list_add_tail
	add	x1, sp, #8
	mov	x0, x19
	bl	_acpi_get_table_by_index
	add	w19, w19, #1
	cbz	w0, LBB0_8
	b	LBB0_3
LBB0_11:
	mov	x22, x0
	mov	x0, x21
	bl	_kfree
	b	LBB0_6
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"tables"

	.comm	_acpi_kobj,4,2                  ; @acpi_kobj
	.comm	_tables_kobj,4,2                ; @tables_kobj
l_.str.1:                               ; @.str.1
	.asciz	"dynamic"

	.comm	_dynamic_tables_kobj,4,2        ; @dynamic_tables_kobj
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_acpi_table_attr_list,4,2       ; @acpi_table_attr_list
	.comm	_KOBJ_ADD,4,2                   ; @KOBJ_ADD
	.comm	_acpi_sysfs_table_handler,4,2   ; @acpi_sysfs_table_handler
	.comm	_AE_OK,4,2                      ; @AE_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_acpi_system_sysfs_init
.subsections_via_symbols
